@fileverse-dev/dsheet 2.0.23-memory → 2.0.23-memory-1

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.
@@ -16,7 +16,7 @@ const On = {}, Cr = {
16
16
  hi: () => import("./hi-Ca55EZ4A.js"),
17
17
  "zh-TW": () => import("./zh_tw-CINWHD2H.js")
18
18
  };
19
- async function Nf(e) {
19
+ async function xf(e) {
20
20
  const t = e in Cr ? e : e.split("-")[0], r = t in Cr ? t : "en";
21
21
  if (On[r]) return;
22
22
  const a = await Cr[r]();
@@ -86,9 +86,9 @@ var Po = { exports: {} };
86
86
  }, t._ = r = {
87
87
  // formats numbers separators, decimals places, signs, abbreviations
88
88
  numberToFormat: function(s, c, f) {
89
- var m = o[t.options.currentLocale], d = !1, p = !1, y = 0, g = "", b = 1e12, w = 1e9, T = 1e6, $ = 1e3, N = "", x = !1, C, F, M, O, V, K, W;
90
- if (s = s || 0, F = Math.abs(s), t._.includes(c, "(") ? (d = !0, c = c.replace(/[\(|\)]/g, "")) : (t._.includes(c, "+") || t._.includes(c, "-")) && (V = t._.includes(c, "+") ? c.indexOf("+") : s < 0 ? c.indexOf("-") : -1, c = c.replace(/[\+|\-]/g, "")), t._.includes(c, "a") && (C = c.match(/a(k|m|b|t)?/), C = C ? C[1] : !1, t._.includes(c, " a") && (g = " "), c = c.replace(new RegExp(g + "a[kmbt]?"), ""), F >= b && !C || C === "t" ? (g += m.abbreviations.trillion, s = s / b) : F < b && F >= w && !C || C === "b" ? (g += m.abbreviations.billion, s = s / w) : F < w && F >= T && !C || C === "m" ? (g += m.abbreviations.million, s = s / T) : (F < T && F >= $ && !C || C === "k") && (g += m.abbreviations.thousand, s = s / $)), t._.includes(c, "[.]") && (p = !0, c = c.replace("[.]", ".")), M = s.toString().split(".")[0], O = c.split(".")[1], K = c.indexOf(","), y = (c.split(".")[0].split(",")[0].match(/0/g) || []).length, O ? (t._.includes(O, "[") ? (O = O.replace("]", ""), O = O.split("["), N = t._.toFixed(s, O[0].length + O[1].length, f, O[1].length)) : N = t._.toFixed(s, O.length, f), M = N.split(".")[0], t._.includes(N, ".") ? N = m.delimiters.decimal + N.split(".")[1] : N = "", p && Number(N.slice(1)) === 0 && (N = "")) : M = t._.toFixed(s, 0, f), g && !C && Number(M) >= 1e3 && g !== m.abbreviations.trillion)
91
- switch (M = String(Number(M) / 1e3), g) {
89
+ var m = o[t.options.currentLocale], d = !1, p = !1, y = 0, g = "", b = 1e12, w = 1e9, T = 1e6, $ = 1e3, N = "", x = !1, C, L, q, O, V, K, W;
90
+ if (s = s || 0, L = Math.abs(s), t._.includes(c, "(") ? (d = !0, c = c.replace(/[\(|\)]/g, "")) : (t._.includes(c, "+") || t._.includes(c, "-")) && (V = t._.includes(c, "+") ? c.indexOf("+") : s < 0 ? c.indexOf("-") : -1, c = c.replace(/[\+|\-]/g, "")), t._.includes(c, "a") && (C = c.match(/a(k|m|b|t)?/), C = C ? C[1] : !1, t._.includes(c, " a") && (g = " "), c = c.replace(new RegExp(g + "a[kmbt]?"), ""), L >= b && !C || C === "t" ? (g += m.abbreviations.trillion, s = s / b) : L < b && L >= w && !C || C === "b" ? (g += m.abbreviations.billion, s = s / w) : L < w && L >= T && !C || C === "m" ? (g += m.abbreviations.million, s = s / T) : (L < T && L >= $ && !C || C === "k") && (g += m.abbreviations.thousand, s = s / $)), t._.includes(c, "[.]") && (p = !0, c = c.replace("[.]", ".")), q = s.toString().split(".")[0], O = c.split(".")[1], K = c.indexOf(","), y = (c.split(".")[0].split(",")[0].match(/0/g) || []).length, O ? (t._.includes(O, "[") ? (O = O.replace("]", ""), O = O.split("["), N = t._.toFixed(s, O[0].length + O[1].length, f, O[1].length)) : N = t._.toFixed(s, O.length, f), q = N.split(".")[0], t._.includes(N, ".") ? N = m.delimiters.decimal + N.split(".")[1] : N = "", p && Number(N.slice(1)) === 0 && (N = "")) : q = t._.toFixed(s, 0, f), g && !C && Number(q) >= 1e3 && g !== m.abbreviations.trillion)
91
+ switch (q = String(Number(q) / 1e3), g) {
92
92
  case m.abbreviations.thousand:
93
93
  g = m.abbreviations.million;
94
94
  break;
@@ -99,10 +99,10 @@ var Po = { exports: {} };
99
99
  g = m.abbreviations.trillion;
100
100
  break;
101
101
  }
102
- if (t._.includes(M, "-") && (M = M.slice(1), x = !0), M.length < y)
103
- for (var Z = y - M.length; Z > 0; Z--)
104
- M = "0" + M;
105
- return K > -1 && (M = M.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + m.delimiters.thousands)), c.indexOf(".") === 0 && (M = ""), W = M + N + (g || ""), d ? W = (d && x ? "(" : "") + W + (d && x ? ")" : "") : V >= 0 ? W = V === 0 ? (x ? "-" : "+") + W : W + (x ? "-" : "+") : x && (W = "-" + W), W;
102
+ if (t._.includes(q, "-") && (q = q.slice(1), x = !0), q.length < y)
103
+ for (var Z = y - q.length; Z > 0; Z--)
104
+ q = "0" + q;
105
+ return K > -1 && (q = q.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + m.delimiters.thousands)), c.indexOf(".") === 0 && (q = ""), W = q + N + (g || ""), d ? W = (d && x ? "(" : "") + W + (d && x ? ")" : "") : V >= 0 ? W = V === 0 ? (x ? "-" : "+") + W : W + (x ? "-" : "+") : x && (W = "-" + W), W;
106
106
  },
107
107
  // unformats numbers separators, decimals places, signs, abbreviations
108
108
  stringToNumber: function(s) {
@@ -13203,8 +13203,8 @@ var rr, Oe = function(e, t, r, a) {
13203
13203
  for (var $ = function() {
13204
13204
  var B;
13205
13205
  return B = p.lex() || m, typeof B != "number" && (B = r.symbols_[B] || B), B;
13206
- }, N, x, C, F, M, O = {}, V, K, W, Z; ; ) {
13207
- if (rr = a, C = a[a.length - 1], this.defaultActions[C] ? F = this.defaultActions[C] : ((N === null || typeof N > "u") && (N = $()), F = i[C] && i[C][N]), typeof F > "u" || !F.length || !F[0]) {
13206
+ }, N, x, C, L, q, O = {}, V, K, W, Z; ; ) {
13207
+ if (rr = a, C = a[a.length - 1], this.defaultActions[C] ? L = this.defaultActions[C] : ((N === null || typeof N > "u") && (N = $()), L = i[C] && i[C][N]), typeof L > "u" || !L.length || !L[0]) {
13208
13208
  let B = function(ne) {
13209
13209
  for (var ie = a.length - 1, P = 0; ; ) {
13210
13210
  if (f.toString() in i[ne])
@@ -13243,18 +13243,18 @@ Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[N] || N) + "'" : ee =
13243
13243
  throw new Error(
13244
13244
  ee || "Parsing halted. No suitable error recovery rule available."
13245
13245
  );
13246
- T(H), x = N == f ? null : N, N = f, C = a[a.length - 1], F = i[C] && i[C][f], c = 3;
13246
+ T(H), x = N == f ? null : N, N = f, C = a[a.length - 1], L = i[C] && i[C][f], c = 3;
13247
13247
  }
13248
- if (F[0] instanceof Array && F.length > 1)
13248
+ if (L[0] instanceof Array && L.length > 1)
13249
13249
  throw new Error(
13250
13250
  "Parse Error: multiple actions possible at state: " + C + ", token: " + N
13251
13251
  );
13252
- switch (F[0]) {
13252
+ switch (L[0]) {
13253
13253
  case 1:
13254
- a.push(N), n.push(p.yytext), o.push(p.yylloc), a.push(F[1]), N = null, x ? (N = x, x = null) : (s = p.yyleng, l = p.yytext, u = p.yylineno, b = p.yylloc, c > 0 && c--);
13254
+ a.push(N), n.push(p.yytext), o.push(p.yylloc), a.push(L[1]), N = null, x ? (N = x, x = null) : (s = p.yyleng, l = p.yytext, u = p.yylineno, b = p.yylloc, c > 0 && c--);
13255
13255
  break;
13256
13256
  case 2:
13257
- if (K = this.productions_[F[1]][1], O.$ = n[n.length - K], O._$ = {
13257
+ if (K = this.productions_[L[1]][1], O.$ = n[n.length - K], O._$ = {
13258
13258
  first_line: o[o.length - (K || 1)].first_line,
13259
13259
  last_line: o[o.length - 1].last_line,
13260
13260
  first_column: o[o.length - (K || 1)].first_column,
@@ -13262,21 +13262,21 @@ Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[N] || N) + "'" : ee =
13262
13262
  }, w && (O._$.range = [
13263
13263
  o[o.length - (K || 1)].range[0],
13264
13264
  o[o.length - 1].range[1]
13265
- ]), M = this.performAction.apply(
13265
+ ]), q = this.performAction.apply(
13266
13266
  O,
13267
13267
  [
13268
13268
  l,
13269
13269
  s,
13270
13270
  u,
13271
13271
  y.yy,
13272
- F[1],
13272
+ L[1],
13273
13273
  n,
13274
13274
  o,
13275
13275
  t
13276
13276
  ].concat(d)
13277
- ), typeof M < "u")
13278
- return M;
13279
- K && (a = a.slice(0, -1 * K * 2), n = n.slice(0, -1 * K), o = o.slice(0, -1 * K)), a.push(this.productions_[F[1]][0]), n.push(O.$), o.push(O._$), W = i[a[a.length - 2]][a[a.length - 1]], a.push(W);
13277
+ ), typeof q < "u")
13278
+ return q;
13279
+ K && (a = a.slice(0, -1 * K * 2), n = n.slice(0, -1 * K), o = o.slice(0, -1 * K)), a.push(this.productions_[L[1]][0]), n.push(O.$), o.push(O._$), W = i[a[a.length - 2]][a[a.length - 1]], a.push(W);
13280
13280
  break;
13281
13281
  case 3:
13282
13282
  return !0;
@@ -13876,7 +13876,7 @@ let ca = "uk";
13876
13876
  function Cs(e) {
13877
13877
  return e === "us" ? "us" : "uk";
13878
13878
  }
13879
- function xf(e) {
13879
+ function Af(e) {
13880
13880
  ca = Cs(e);
13881
13881
  }
13882
13882
  function Ns() {
@@ -13910,7 +13910,7 @@ function Ss(e) {
13910
13910
  function ks(e, t) {
13911
13911
  return Ss(e) ? e : Go(t);
13912
13912
  }
13913
- function Af(e) {
13913
+ function Sf(e) {
13914
13914
  if (document.createRange)
13915
13915
  if (e.innerHTML !== e.innerText || e.innerHTML === "") {
13916
13916
  e.focus();
@@ -13952,7 +13952,7 @@ function Xr(e) {
13952
13952
  `).replace(/\r/g, `
13953
13953
  `);
13954
13954
  }
13955
- function Sf(e) {
13955
+ function kf(e) {
13956
13956
  const t = window.getSelection();
13957
13957
  if (!t || t.rangeCount === 0) return null;
13958
13958
  const r = t.focusNode;
@@ -13960,7 +13960,7 @@ function Sf(e) {
13960
13960
  const a = document.createRange();
13961
13961
  return a.selectNodeContents(e), a.setEnd(r, t.focusOffset), Xr(a.toString()).length;
13962
13962
  }
13963
- function kf(e) {
13963
+ function Ef(e) {
13964
13964
  const t = window.getSelection();
13965
13965
  if (!t || t.rangeCount === 0) return null;
13966
13966
  const r = t.getRangeAt(0);
@@ -13971,7 +13971,7 @@ function kf(e) {
13971
13971
  const n = Xr(a.toString()).length, o = Xr(r.toString());
13972
13972
  return { start: n, end: n + o.length };
13973
13973
  }
13974
- function Ef(e, t, r) {
13974
+ function qf(e, t, r) {
13975
13975
  e.focus({ preventScroll: !0 });
13976
13976
  const a = window.getSelection();
13977
13977
  if (!a) return;
@@ -14002,7 +14002,7 @@ function Ef(e, t, r) {
14002
14002
  c.setStart(o, i), c.setEnd(l, u), a.removeAllRanges(), a.addRange(c);
14003
14003
  }
14004
14004
  }
14005
- function qf(e, t, r) {
14005
+ function Mf(e, t, r) {
14006
14006
  if (t >= r) return [];
14007
14007
  let a = 0, n = null, o = 0, i = null, l = 0;
14008
14008
  function u(f) {
@@ -14040,7 +14040,7 @@ const po = {
14040
14040
  fc: "color",
14041
14041
  cl: "text-decoration",
14042
14042
  un: "border-bottom"
14043
- }, Mf = {
14043
+ }, Rf = {
14044
14044
  bl: 1,
14045
14045
  it: 1,
14046
14046
  ff: 1,
@@ -14065,7 +14065,7 @@ function pr(e) {
14065
14065
  var t;
14066
14066
  return (e == null ? void 0 : e.t) === "inlineStr" && (((t = e == null ? void 0 : e.s) == null ? void 0 : t.length) ?? 0) > 0;
14067
14067
  }
14068
- function Rf(e, t, r) {
14068
+ function If(e, t, r) {
14069
14069
  const a = Ze(e, t, r, "ct");
14070
14070
  if (pr(a)) {
14071
14071
  const n = a.s;
@@ -14124,7 +14124,7 @@ function Is(e) {
14124
14124
  const t = Rs(e);
14125
14125
  return t === "rgb(0,0,255)" || t === "#0000ff" || t === "#00f" || t === "blue";
14126
14126
  }
14127
- function If(e) {
14127
+ function Df(e) {
14128
14128
  typeof e.fc == "string" && Is(e.fc) && delete e.fc, e.un === 1 && delete e.un;
14129
14129
  }
14130
14130
  function Ds(e, t) {
@@ -14153,7 +14153,7 @@ function Ds(e, t) {
14153
14153
  }
14154
14154
  return r;
14155
14155
  }
14156
- function Df(e, t, r) {
14156
+ function Of(e, t, r) {
14157
14157
  if (h.isNil(e.ct))
14158
14158
  return;
14159
14159
  const { s: a } = e.ct;
@@ -14258,7 +14258,7 @@ function hn(e, t, r = !0) {
14258
14258
  function Ye(e) {
14259
14259
  return e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
14260
14260
  }
14261
- function Of(e, t, r, a) {
14261
+ function Lf(e, t, r, a) {
14262
14262
  var d, p, y;
14263
14263
  const n = window.getSelection();
14264
14264
  if (!n || n.rangeCount === 0) return;
@@ -14283,20 +14283,20 @@ function Of(e, t, r, a) {
14283
14283
  if (N.nodeType === Node.ELEMENT_NODE) {
14284
14284
  const C = N;
14285
14285
  if (C.tagName === "SPAN") {
14286
- const F = Wt(C.style.cssText, t, r);
14287
- C.setAttribute("style", F);
14286
+ const L = Wt(C.style.cssText, t, r);
14287
+ C.setAttribute("style", L);
14288
14288
  } else {
14289
- const F = C.querySelectorAll("span");
14290
- F.length > 0 ? F.forEach((M) => {
14291
- const O = Wt(M.style.cssText, t, r);
14292
- M.setAttribute("style", O);
14289
+ const L = C.querySelectorAll("span");
14290
+ L.length > 0 ? L.forEach((q) => {
14291
+ const O = Wt(q.style.cssText, t, r);
14292
+ q.setAttribute("style", O);
14293
14293
  }) : T = !0;
14294
14294
  }
14295
14295
  } else if (N.nodeType === Node.TEXT_NODE) {
14296
14296
  const C = N.textContent ?? "";
14297
14297
  if (C.length === 0) return;
14298
- const F = document.createElement("span"), M = Wt("", t, r);
14299
- F.setAttribute("style", M), F.textContent = C, (x = N.parentNode) == null || x.replaceChild(F, N);
14298
+ const L = document.createElement("span"), q = Wt("", t, r);
14299
+ L.setAttribute("style", q), L.textContent = C, (x = N.parentNode) == null || x.replaceChild(L, N);
14300
14300
  }
14301
14301
  }), T) {
14302
14302
  const N = i.innerText ?? i.textContent ?? "";
@@ -14317,14 +14317,14 @@ function Of(e, t, r, a) {
14317
14317
  let b, w = !1;
14318
14318
  const T = (g == null ? void 0 : g.innerHTML) || "";
14319
14319
  if (i.innerHTML.substring(0, 5) !== "<span" && (w = !0), g) {
14320
- let N = "", x = "", C = "", M = 0;
14320
+ let N = "", x = "", C = "", q = 0;
14321
14321
  if (c.nodeType === Node.TEXT_NODE && g.childNodes.length > 1)
14322
14322
  for (let H = 0; H < g.childNodes.length; H += 1) {
14323
14323
  const ee = g.childNodes[H];
14324
14324
  if (ee === c) break;
14325
- ee.nodeType === Node.TEXT_NODE ? M += (ee.textContent || "").length : ee.nodeType === Node.ELEMENT_NODE && (M += ee.outerHTML.length);
14325
+ ee.nodeType === Node.TEXT_NODE ? q += (ee.textContent || "").length : ee.nodeType === Node.ELEMENT_NODE && (q += ee.outerHTML.length);
14326
14326
  }
14327
- const O = M + m, V = M + f, K = T.length;
14327
+ const O = q + m, V = q + f, K = T.length;
14328
14328
  N = T.substring(0, O), x = T.substring(O, V), C = T.substring(V, K);
14329
14329
  let W = "";
14330
14330
  if (N !== "") {
@@ -14365,9 +14365,9 @@ function Of(e, t, r, a) {
14365
14365
  }
14366
14366
  } else if (((p = c.parentElement) == null ? void 0 : p.tagName) === "SPAN" && ((y = s.parentElement) == null ? void 0 : y.tagName) === "SPAN") {
14367
14367
  const g = c.parentNode, b = s.parentNode, w = i.querySelectorAll("span"), T = h.indexOf(w, g), $ = h.indexOf(w, b), N = (g == null ? void 0 : g.innerHTML) || "", x = (b == null ? void 0 : b.innerHTML) || "";
14368
- let C = "", F = "", M = "", O = "";
14368
+ let C = "", L = "", q = "", O = "";
14369
14369
  const V = 0, K = m, W = f, Z = x.length;
14370
- C = N.substring(V, K), F = N.substring(K, N.length), M = x.substring(0, W), O = x.substring(W, Z);
14370
+ C = N.substring(V, K), L = N.substring(K, N.length), q = x.substring(0, W), O = x.substring(W, Z);
14371
14371
  let H = i.querySelectorAll("span"), ee = "";
14372
14372
  for (let ie = 0; ie < T; ie += 1) {
14373
14373
  const P = H[ie], G = P.innerHTML;
@@ -14377,9 +14377,9 @@ function Of(e, t, r, a) {
14377
14377
  }
14378
14378
  if (C !== "" && (ee += `<span style="${Ye(
14379
14379
  g.style.cssText
14380
- )}">${C}</span>`), F !== "") {
14380
+ )}">${C}</span>`), L !== "") {
14381
14381
  const ie = Wt(g.style.cssText, t, r);
14382
- ee += `<span style="${Ye(ie)}">${F}</span>`;
14382
+ ee += `<span style="${Ye(ie)}">${L}</span>`;
14383
14383
  }
14384
14384
  if (T < $)
14385
14385
  for (let ie = T + 1; ie < $; ie += 1) {
@@ -14388,9 +14388,9 @@ function Of(e, t, r, a) {
14388
14388
  P.style.cssText
14389
14389
  )}">${G}</span>`;
14390
14390
  }
14391
- if (M !== "") {
14391
+ if (q !== "") {
14392
14392
  const ie = Wt(b.style.cssText, t, r);
14393
- ee += `<span style="${Ye(ie)}">${M}</span>`;
14393
+ ee += `<span style="${Ye(ie)}">${q}</span>`;
14394
14394
  }
14395
14395
  O !== "" && (ee += `<span style="${Ye(
14396
14396
  b.style.cssText
@@ -14462,7 +14462,7 @@ function Qn(e, t, r) {
14462
14462
  }
14463
14463
  return a + r;
14464
14464
  }
14465
- function Lf(e, t, r) {
14465
+ function Ff(e, t, r) {
14466
14466
  var d, p, y, g, b, w;
14467
14467
  const a = window.getSelection();
14468
14468
  if (!a || a.rangeCount === 0) return;
@@ -14483,7 +14483,7 @@ function Lf(e, t, r) {
14483
14483
  return;
14484
14484
  }
14485
14485
  if (l === i) {
14486
- const T = l.parentNode, N = ((y = T == null ? void 0 : T.dataset) == null ? void 0 : y.noLinkAnchor) === "1" ? (T == null ? void 0 : T.textContent) || "" : (T == null ? void 0 : T.innerHTML) || "", C = o.innerHTML.substring(0, 5) !== "<span", F = T ? Qn(T, l, s) : s, M = T ? Qn(T, i, u) : u, O = N.substring(0, F), V = N.substring(F, M), K = N.substring(M, N.length);
14486
+ const T = l.parentNode, N = ((y = T == null ? void 0 : T.dataset) == null ? void 0 : y.noLinkAnchor) === "1" ? (T == null ? void 0 : T.textContent) || "" : (T == null ? void 0 : T.innerHTML) || "", C = o.innerHTML.substring(0, 5) !== "<span", L = T ? Qn(T, l, s) : s, q = T ? Qn(T, i, u) : u, O = N.substring(0, L), V = N.substring(L, q), K = N.substring(q, N.length);
14487
14487
  let W = "";
14488
14488
  const Z = Sn(T);
14489
14489
  if (O !== "") {
@@ -14537,7 +14537,7 @@ function Lf(e, t, r) {
14537
14537
  }
14538
14538
  ee && Ar(ee), Sr(o);
14539
14539
  } else if (((b = l.parentElement) == null ? void 0 : b.tagName) === "SPAN" && ((w = i.parentElement) == null ? void 0 : w.tagName) === "SPAN") {
14540
- const T = l.parentNode, $ = i.parentNode, N = o.querySelectorAll("span"), x = h.indexOf(N, T), C = h.indexOf(N, $), F = (T == null ? void 0 : T.innerHTML) || "", M = ($ == null ? void 0 : $.innerHTML) || "", O = T ? Qn(T, l, s) : s, V = $ ? Qn($, i, u) : u, K = F.substring(0, O), W = F.substring(O, F.length), Z = M.substring(0, V), H = M.substring(V, M.length);
14540
+ const T = l.parentNode, $ = i.parentNode, N = o.querySelectorAll("span"), x = h.indexOf(N, T), C = h.indexOf(N, $), L = (T == null ? void 0 : T.innerHTML) || "", q = ($ == null ? void 0 : $.innerHTML) || "", O = T ? Qn(T, l, s) : s, V = $ ? Qn($, i, u) : u, K = L.substring(0, O), W = L.substring(O, L.length), Z = q.substring(0, V), H = q.substring(V, q.length);
14541
14541
  let ee = o.querySelectorAll("span"), B = "";
14542
14542
  for (let P = 0; P < x; P += 1) {
14543
14543
  const G = ee[P];
@@ -14606,7 +14606,7 @@ function Ps(e) {
14606
14606
  if (!(!a || !n) && !(a.linkType !== n.linkType || a.linkAddress !== n.linkAddress))
14607
14607
  return a;
14608
14608
  }
14609
- function Ff(e) {
14609
+ function Bf(e) {
14610
14610
  const t = window.getSelection();
14611
14611
  if (!(t != null && t.rangeCount) || !t.anchorNode || !e.contains(t.anchorNode))
14612
14612
  return;
@@ -14645,7 +14645,7 @@ function zs(e, t, r, a, n) {
14645
14645
  const c = a.measureText(o).width, f = a.measureText(s).width, m = Math.max(1, a.measureText(" ").width || 1), d = r - n - c - f, p = Math.floor(d / m);
14646
14646
  return p <= 1 ? e : `${`${u}${o}`}${" ".repeat(p)}${s}`;
14647
14647
  }
14648
- function Bf() {
14648
+ function Pf() {
14649
14649
  Zt = {}, Zo = {};
14650
14650
  }
14651
14651
  function Us(e, t) {
@@ -14743,8 +14743,8 @@ function Gs(e, t, r, a, n) {
14743
14743
  h.isNil(g) && (y === "0" ? g = 0 : y === "1" ? g = 45 : y === "4" ? g = 90 : y === "2" ? g = 135 : y === "5" && (g = 180), h.isNil(g) && (g = 0)), (g > 180 || g < 0) && (g = 0), g = parseInt(g, 10), g > 90 && (g = 90 - g, b = 0), t.textAlign = "start";
14744
14744
  const w = {};
14745
14745
  w.values = [];
14746
- let T, $ = "0", N = "0", x = 11, C = !1, F;
14747
- const M = [];
14746
+ let T, $ = "0", N = "0", x = 11, C = !1, L;
14747
+ const q = [];
14748
14748
  if (Xt(e)) {
14749
14749
  const W = e.ct.s;
14750
14750
  let Z = 0;
@@ -14757,7 +14757,7 @@ function Gs(e, t, r, a, n) {
14757
14757
  for (let pe = 0; pe < he.length; pe += 1) {
14758
14758
  const de = he[pe];
14759
14759
  if (de === "" && pe !== he.length - 1)
14760
- M.push({
14760
+ q.push({
14761
14761
  fontset: B,
14762
14762
  fc: ne || "#000",
14763
14763
  cl: ie || 0,
@@ -14767,7 +14767,7 @@ function Gs(e, t, r, a, n) {
14767
14767
  }), Z += 1;
14768
14768
  else {
14769
14769
  if (G)
14770
- M.push({
14770
+ q.push({
14771
14771
  fontset: B,
14772
14772
  fc: ne || "#000",
14773
14773
  cl: ie || 0,
@@ -14785,7 +14785,7 @@ function Gs(e, t, r, a, n) {
14785
14785
  );
14786
14786
  for (let _ = 0; _ < E.length; _ += 1) {
14787
14787
  const A = E[_];
14788
- M.push({
14788
+ q.push({
14789
14789
  fontset: B,
14790
14790
  fc: ne || "#000",
14791
14791
  cl: ie || 0,
@@ -14796,7 +14796,7 @@ function Gs(e, t, r, a, n) {
14796
14796
  });
14797
14797
  }
14798
14798
  }
14799
- pe !== he.length - 1 && (M.push({
14799
+ pe !== he.length - 1 && (q.push({
14800
14800
  fontset: B,
14801
14801
  fc: ne || "#000",
14802
14802
  cl: ie || 0,
@@ -14810,17 +14810,17 @@ function Gs(e, t, r, a, n) {
14810
14810
  }
14811
14811
  C = !0;
14812
14812
  } else {
14813
- if (T = wo(e, r.defaultFontSize, n), t.font = T, $ = yt(e, "cl"), N = yt(e, "un"), x = yt(e, "fs"), e instanceof Object ? (F = e.m, h.isNil(F) && (F = e.v)) : F = e, h.isEmpty(F))
14813
+ if (T = wo(e, r.defaultFontSize, n), t.font = T, $ = yt(e, "cl"), N = yt(e, "un"), x = yt(e, "fs"), e instanceof Object ? (L = e.m, h.isNil(L) && (L = e.v)) : L = e, h.isEmpty(L))
14814
14814
  return null;
14815
14815
  const W = (V = e == null ? void 0 : e.ct) == null ? void 0 : V.fa;
14816
- if (h.isString(F) && h.isString(W) && (F = zs(
14817
- F,
14816
+ if (h.isString(L) && h.isString(W) && (L = zs(
14817
+ L,
14818
14818
  W,
14819
14819
  o,
14820
14820
  t,
14821
14821
  c * 2
14822
14822
  )), !h.isNil(e) && h.isNil(e.ht)) {
14823
- const Z = ((K = e.ct) == null ? void 0 : K.fa) === "@", H = h.isNil(e.v) ? F : e.v;
14823
+ const Z = ((K = e.ct) == null ? void 0 : K.fa) === "@", H = h.isNil(e.v) ? L : e.v;
14824
14824
  !Z && Ke(H) && (m = "2");
14825
14825
  }
14826
14826
  }
@@ -14830,10 +14830,10 @@ function Gs(e, t, r, a, n) {
14830
14830
  const B = {}, ne = [];
14831
14831
  if (C) {
14832
14832
  let G = null;
14833
- for (let Q = 0; Q < M.length; Q += 1) {
14834
- const le = M[Q];
14833
+ for (let Q = 0; Q < q.length; Q += 1) {
14834
+ const le = q[Q];
14835
14835
  let he = le.v, pe = le.v;
14836
- if (le.wrap === !0 && (he = "M", pe = "", !h.isNil(G) && G.wrap !== !0 && Q < M.length - 1)) {
14836
+ if (le.wrap === !0 && (he = "M", pe = "", !h.isNil(G) && G.wrap !== !0 && Q < q.length - 1)) {
14837
14837
  ne.push(ee), ee = 0, H += 1, G = le;
14838
14838
  continue;
14839
14839
  }
@@ -14843,7 +14843,7 @@ function Gs(e, t, r, a, n) {
14843
14843
  r,
14844
14844
  le.fontset
14845
14845
  ), E = de.width + c, _ = de.actualBoundingBoxAscent + de.actualBoundingBoxDescent + f;
14846
- ee += _, p === "2" && !le.wrap && ee > i && !h.isNil(B[H]) && (ne.push(ee - _), ee = _, H += 1), Q === M.length - 1 && ne.push(ee), h.isNil(B[H]) && (B[H] = []);
14846
+ ee += _, p === "2" && !le.wrap && ee > i && !h.isNil(B[H]) && (ne.push(ee - _), ee = _, H += 1), Q === q.length - 1 && ne.push(ee), h.isNil(B[H]) && (B[H] = []);
14847
14847
  const A = {
14848
14848
  content: pe,
14849
14849
  style: le,
@@ -14860,10 +14860,10 @@ function Gs(e, t, r, a, n) {
14860
14860
  le.wrap === !0 && (A.wrap = !0), B[H].push(A), G = le;
14861
14861
  }
14862
14862
  } else {
14863
- const G = un(F, t, r), Q = G.actualBoundingBoxDescent + G.actualBoundingBoxAscent;
14864
- F = F.toString();
14863
+ const G = un(L, t, r), Q = G.actualBoundingBoxDescent + G.actualBoundingBoxAscent;
14864
+ L = L.toString();
14865
14865
  let le = [];
14866
- F.length > 1 ? le = F.split("") : le.push(F);
14866
+ L.length > 1 ? le = L.split("") : le.push(L);
14867
14867
  const he = un(le[0], t, r).width;
14868
14868
  for (let pe = 0; pe < le.length; pe += 1) {
14869
14869
  const de = he + c, E = Q + f;
@@ -14921,8 +14921,8 @@ function Gs(e, t, r, a, n) {
14921
14921
  w.rotate = g, g = Math.abs(g);
14922
14922
  let ie = 0, P, G, Q, le, he = 1, pe = null, de = null;
14923
14923
  if (C)
14924
- for (; he <= M.length; ) {
14925
- const ce = M.slice(ie, he);
14924
+ for (; he <= q.length; ) {
14925
+ const ce = q.slice(ie, he);
14926
14926
  if (ce[ce.length - 1].wrap === !0) {
14927
14927
  if (ie = he, ce.length > 1)
14928
14928
  for (let fe = 0; fe < ce.length - 1; fe += 1) {
@@ -15019,7 +15019,7 @@ function Gs(e, t, r, a, n) {
15019
15019
  }
15020
15020
  B += 1;
15021
15021
  }
15022
- else if (he === M.length) {
15022
+ else if (he === q.length) {
15023
15023
  h.isNil(ne[B]) && (ne[B] = []);
15024
15024
  for (let fe = 0; fe < ce.length; fe += 1) {
15025
15025
  const se = ce[fe];
@@ -15079,7 +15079,7 @@ function Gs(e, t, r, a, n) {
15079
15079
  }
15080
15080
  B += 1;
15081
15081
  }
15082
- else if (he === M.length) {
15082
+ else if (he === q.length) {
15083
15083
  h.isNil(ne[B]) && (ne[B] = []);
15084
15084
  for (let fe = 0; fe < ce.length; fe += 1) {
15085
15085
  const se = ce[fe];
@@ -15102,8 +15102,8 @@ function Gs(e, t, r, a, n) {
15102
15102
  h.isNil(ne[B]) && (ne[B] = []), he += 1;
15103
15103
  }
15104
15104
  else
15105
- for (F = F.toString(); he <= F.length; ) {
15106
- const ce = F.substring(ie, he), ue = un(ce, t, r), _e = ue.width, ve = ue.actualBoundingBoxAscent + ue.actualBoundingBoxDescent, Te = _e * Math.cos(g * Math.PI / 180) + ve * Math.sin(g * Math.PI / 180), Ce = _e * Math.sin(g * Math.PI / 180) + ve * Math.cos(g * Math.PI / 180), fe = ce.substr(ce.length - 1, 1);
15105
+ for (L = L.toString(); he <= L.length; ) {
15106
+ const ce = L.substring(ie, he), ue = un(ce, t, r), _e = ue.width, ve = ue.actualBoundingBoxAscent + ue.actualBoundingBoxDescent, Te = _e * Math.cos(g * Math.PI / 180) + ve * Math.sin(g * Math.PI / 180), Ce = _e * Math.sin(g * Math.PI / 180) + ve * Math.cos(g * Math.PI / 180), fe = ce.substr(ce.length - 1, 1);
15107
15107
  if ((fe === " " || bo(fe) === 2) && (pe = {
15108
15108
  index: he,
15109
15109
  str: ce,
@@ -15136,7 +15136,7 @@ function Gs(e, t, r, a, n) {
15136
15136
  desc: ue.actualBoundingBoxDescent,
15137
15137
  fs: x
15138
15138
  }), B += 1);
15139
- else if (he === F.length) {
15139
+ else if (he === L.length) {
15140
15140
  h.isNil(ne[B]) && (ne[B] = []), ne[B].push({
15141
15141
  content: ce,
15142
15142
  style: T,
@@ -15176,7 +15176,7 @@ function Gs(e, t, r, a, n) {
15176
15176
  desc: le.actualBoundingBoxDescent,
15177
15177
  fs: x
15178
15178
  }), B += 1);
15179
- else if (he === F.length) {
15179
+ else if (he === L.length) {
15180
15180
  h.isNil(ne[B]) && (ne[B] = []), ne[B].push({
15181
15181
  content: ce,
15182
15182
  style: T,
@@ -15220,9 +15220,9 @@ function Gs(e, t, r, a, n) {
15220
15220
  let A = 0, z = 0;
15221
15221
  const v = g * Math.PI / 180, j = E[_ - 1], k = j.lineHeight;
15222
15222
  H = H - k + j.desc;
15223
- const L = H / Math.sin(v) + ee * Math.cos(v), oe = ee * Math.sin(v);
15223
+ const F = H / Math.sin(v) + ee * Math.cos(v), oe = ee * Math.sin(v);
15224
15224
  let me = 0;
15225
- if (g !== 0 ? (_ === 1 ? (Z = ee + 2 * (H / Math.tan(v)), me = H / Math.tan(v)) : Z = ee + H / Math.tan(v), w.textWidthAll = L, w.textHeightAll = oe) : (w.textWidthAll = Z, w.textHeightAll = H), l === "onlyWidth")
15225
+ if (g !== 0 ? (_ === 1 ? (Z = ee + 2 * (H / Math.tan(v)), me = H / Math.tan(v)) : Z = ee + H / Math.tan(v), w.textWidthAll = F, w.textHeightAll = oe) : (w.textWidthAll = Z, w.textHeightAll = H), l === "onlyWidth")
15226
15226
  return w;
15227
15227
  if (g !== 0 && Number(b) === 1) {
15228
15228
  t.textAlign = "end";
@@ -15237,7 +15237,7 @@ function Gs(e, t, r, a, n) {
15237
15237
  let Ce, fe;
15238
15238
  if (g !== 0) {
15239
15239
  const se = A + _e.asc, Pe = A / Math.tan(v) - z + ee;
15240
- m === "0" ? d === "0" ? (Ce = Pe + o / 2 - Z / 2 + k * Math.cos(v) / 2, fe = se + i / 2 - H / 2 - k * Math.cos(v) / 2) : d === "1" ? (Ce = Pe + o / 2 - Z / 2, fe = se - (H / 2 - oe / 2)) : d === "2" && (Ce = Pe + o / 2 - Z / 2 + k * Math.cos(v), fe = se + i - oe / 2 - H / 2 - k * Math.cos(v)) : m === "1" ? d === "0" ? (Ce = Pe - oe * Math.sin(v) / 2 + k * Math.cos(v) / 2, fe = se + i / 2 + oe * Math.cos(v) / 2 - k * Math.cos(v) / 2) : d === "1" ? (Ce = Pe - oe * Math.sin(v), fe = se + oe * Math.cos(v)) : d === "2" && (Ce = Pe + k * Math.cos(v), fe = se + i - k * Math.cos(v)) : m === "2" && (d === "0" ? (Ce = Pe + o - L / 2 - (ee / 2 + H / 2 / Math.tan(v)) + k * Math.cos(v) / 2, fe = se + i / 2 - H / 2 - k * Math.cos(v) / 2) : d === "1" ? (Ce = Pe + o - Z + me, fe = se - H) : d === "2" && (Ce = Pe + o - L * Math.cos(v) + k * Math.cos(v), fe = se + i - L * Math.sin(v) - k * Math.cos(v)));
15240
+ m === "0" ? d === "0" ? (Ce = Pe + o / 2 - Z / 2 + k * Math.cos(v) / 2, fe = se + i / 2 - H / 2 - k * Math.cos(v) / 2) : d === "1" ? (Ce = Pe + o / 2 - Z / 2, fe = se - (H / 2 - oe / 2)) : d === "2" && (Ce = Pe + o / 2 - Z / 2 + k * Math.cos(v), fe = se + i - oe / 2 - H / 2 - k * Math.cos(v)) : m === "1" ? d === "0" ? (Ce = Pe - oe * Math.sin(v) / 2 + k * Math.cos(v) / 2, fe = se + i / 2 + oe * Math.cos(v) / 2 - k * Math.cos(v) / 2) : d === "1" ? (Ce = Pe - oe * Math.sin(v), fe = se + oe * Math.cos(v)) : d === "2" && (Ce = Pe + k * Math.cos(v), fe = se + i - k * Math.cos(v)) : m === "2" && (d === "0" ? (Ce = Pe + o - F / 2 - (ee / 2 + H / 2 / Math.tan(v)) + k * Math.cos(v) / 2, fe = se + i / 2 - H / 2 - k * Math.cos(v) / 2) : d === "1" ? (Ce = Pe + o - Z + me, fe = se - H) : d === "2" && (Ce = Pe + o - F * Math.cos(v) + k * Math.cos(v), fe = se + i - F * Math.sin(v) - k * Math.cos(v)));
15241
15241
  }
15242
15242
  Te.left = Ce, Te.top = fe, En(Te, $, N, {
15243
15243
  width: Te.width,
@@ -15263,7 +15263,7 @@ function Gs(e, t, r, a, n) {
15263
15263
  let Ce, fe;
15264
15264
  if (g !== 0) {
15265
15265
  const se = A + _e.asc, Pe = (H - A) / Math.tan(v) + z;
15266
- m === "0" ? d === "0" ? (Ce = Pe + o / 2 - Z / 2 - k * Math.cos(v) / 2, fe = se + i / 2 - H / 2 + k * Math.cos(v) / 2) : d === "1" ? (Ce = Pe + o / 2 - Z / 2 - k * Math.cos(v) / 2, fe = se - (H / 2 - oe / 2) + k * Math.cos(v) / 2) : d === "2" && (Ce = Pe + o / 2 - Z / 2 - k * Math.cos(v), fe = se + i - oe / 2 - H / 2 - k * Math.cos(v)) : m === "1" ? d === "0" ? (Ce = Pe - oe * Math.sin(v) / 2 - k * Math.cos(v) / 2, fe = se - H + i / 2 - oe * Math.cos(v) / 2 - k * Math.cos(v) / 2) : d === "1" ? (Ce = Pe, fe = se - H) : d === "2" && (Ce = Pe - oe * Math.sin(v) - k * Math.cos(v), fe = se - H + i - oe * Math.cos(v) - k * Math.cos(v)) : m === "2" && (d === "0" ? (Ce = Pe + o - L / 2 - Z / 2 - k * Math.cos(v) / 2, fe = se + i / 2 - H / 2 - k * Math.cos(v) / 2) : d === "1" ? (Ce = Pe + o - L * Math.cos(v), fe = se + oe * Math.cos(v)) : d === "2" && (Ce = Pe + o - Z - k * Math.cos(v) + me, fe = se + i - k * Math.cos(v))), En(Te, $, N, {
15266
+ m === "0" ? d === "0" ? (Ce = Pe + o / 2 - Z / 2 - k * Math.cos(v) / 2, fe = se + i / 2 - H / 2 + k * Math.cos(v) / 2) : d === "1" ? (Ce = Pe + o / 2 - Z / 2 - k * Math.cos(v) / 2, fe = se - (H / 2 - oe / 2) + k * Math.cos(v) / 2) : d === "2" && (Ce = Pe + o / 2 - Z / 2 - k * Math.cos(v), fe = se + i - oe / 2 - H / 2 - k * Math.cos(v)) : m === "1" ? d === "0" ? (Ce = Pe - oe * Math.sin(v) / 2 - k * Math.cos(v) / 2, fe = se - H + i / 2 - oe * Math.cos(v) / 2 - k * Math.cos(v) / 2) : d === "1" ? (Ce = Pe, fe = se - H) : d === "2" && (Ce = Pe - oe * Math.sin(v) - k * Math.cos(v), fe = se - H + i - oe * Math.cos(v) - k * Math.cos(v)) : m === "2" && (d === "0" ? (Ce = Pe + o - F / 2 - Z / 2 - k * Math.cos(v) / 2, fe = se + i / 2 - H / 2 - k * Math.cos(v) / 2) : d === "1" ? (Ce = Pe + o - F * Math.cos(v), fe = se + oe * Math.cos(v)) : d === "2" && (Ce = Pe + o - Z - k * Math.cos(v) + me, fe = se + i - k * Math.cos(v))), En(Te, $, N, {
15267
15267
  width: Te.width,
15268
15268
  height: Te.height,
15269
15269
  left: Ce,
@@ -15286,9 +15286,9 @@ function Gs(e, t, r, a, n) {
15286
15286
  }
15287
15287
  A += _e.height;
15288
15288
  }
15289
- w.type = "plainWrap", g !== 0 && (m === "0" ? (w.textLeftAll = o / 2, d === "0" ? w.textTopAll = i / 2 : d === "1" ? w.textTopAll = oe / 2 : d === "2" && (w.textTopAll = i - oe / 2)) : m === "1" ? d === "0" ? (w.textLeftAll = 0, w.textTopAll = i / 2) : d === "1" ? (w.textLeftAll = 0, w.textTopAll = 0) : d === "2" && (w.textLeftAll = 0, w.textTopAll = i) : m === "2" && (d === "0" ? (w.textLeftAll = o - L / 2, w.textTopAll = i / 2) : d === "1" ? (w.textLeftAll = o, w.textTopAll = 0) : d === "2" && (w.textLeftAll = o, w.textTopAll = i)));
15289
+ w.type = "plainWrap", g !== 0 && (m === "0" ? (w.textLeftAll = o / 2, d === "0" ? w.textTopAll = i / 2 : d === "1" ? w.textTopAll = oe / 2 : d === "2" && (w.textTopAll = i - oe / 2)) : m === "1" ? d === "0" ? (w.textLeftAll = 0, w.textTopAll = i / 2) : d === "1" ? (w.textLeftAll = 0, w.textTopAll = 0) : d === "2" && (w.textLeftAll = 0, w.textTopAll = i) : m === "2" && (d === "0" ? (w.textLeftAll = o - F / 2, w.textTopAll = i / 2) : d === "1" ? (w.textLeftAll = o, w.textTopAll = 0) : d === "2" && (w.textLeftAll = o, w.textTopAll = i)));
15290
15290
  } else {
15291
- const Z = un(F, t, r), H = Z.width, ee = Z.actualBoundingBoxDescent + Z.actualBoundingBoxAscent;
15291
+ const Z = un(L, t, r), H = Z.width, ee = Z.actualBoundingBoxDescent + Z.actualBoundingBoxAscent;
15292
15292
  w.rotate = g, g = Math.abs(g);
15293
15293
  const B = g * Math.PI / 180, ne = H * Math.cos(B) + ee * Math.sin(B), ie = H * Math.sin(B) + ee * Math.cos(B);
15294
15294
  if (g !== 0 ? w.textHeightAll = ie : w.textHeightAll = ie + ee / 2 - Z.actualBoundingBoxDescent - f, w.textWidthAll = ne, l === "onlyWidth")
@@ -15299,7 +15299,7 @@ function Gs(e, t, r, a, n) {
15299
15299
  let de = i - f - G + Z.actualBoundingBoxAscent * Math.cos(B) + H * Math.sin(B) * b;
15300
15300
  d === "0" ? de = i / 2 - G / 2 + Z.actualBoundingBoxAscent * Math.cos(B) + H * Math.sin(B) * b : d === "1" && (de = f + Z.actualBoundingBoxAscent * Math.cos(B) + H * Math.sin(B) * b), w.type = "plain";
15301
15301
  const E = {
15302
- content: F,
15302
+ content: L,
15303
15303
  style: T,
15304
15304
  width: P,
15305
15305
  height: G,
@@ -16038,15 +16038,15 @@ const Js = function(t) {
16038
16038
  var w = [];
16039
16039
  w[5] = w[63] = '"$"#,##0_);\\("$"#,##0\\)', w[6] = w[64] = '"$"#,##0_);[Red]\\("$"#,##0\\)', w[7] = w[65] = '"$"#,##0.00_);\\("$"#,##0.00\\)', w[8] = w[66] = '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', w[41] = '_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)', w[42] = '_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)', w[43] = '_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)', w[44] = '_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)';
16040
16040
  function T(E, _, A) {
16041
- for (var z = E < 0 ? -1 : 1, v = E * z, j = 0, k = 1, L = 0, oe = 1, me = 0, ce = 0, ue = Math.floor(v); me < _ && (ue = Math.floor(v), L = ue * k + j, ce = ue * me + oe, !(v - ue < 5e-8)); )
16042
- v = 1 / (v - ue), j = k, k = L, oe = me, me = ce;
16043
- if (ce > _ && (me > _ ? (ce = oe, L = j) : (ce = me, L = k)), !A) return [0, z * L, ce];
16044
- var _e = Math.floor(z * L / ce);
16045
- return [_e, z * L - _e * ce, ce];
16041
+ for (var z = E < 0 ? -1 : 1, v = E * z, j = 0, k = 1, F = 0, oe = 1, me = 0, ce = 0, ue = Math.floor(v); me < _ && (ue = Math.floor(v), F = ue * k + j, ce = ue * me + oe, !(v - ue < 5e-8)); )
16042
+ v = 1 / (v - ue), j = k, k = F, oe = me, me = ce;
16043
+ if (ce > _ && (me > _ ? (ce = oe, F = j) : (ce = me, F = k)), !A) return [0, z * F, ce];
16044
+ var _e = Math.floor(z * F / ce);
16045
+ return [_e, z * F - _e * ce, ce];
16046
16046
  }
16047
16047
  function $(E, _, A) {
16048
16048
  if (E > 2958465 || E < 0) return null;
16049
- var z = E | 0, v = Math.floor(86400 * (E - z)), j = 0, k = [], L = {
16049
+ var z = E | 0, v = Math.floor(86400 * (E - z)), j = 0, k = [], F = {
16050
16050
  D: z,
16051
16051
  T: v,
16052
16052
  u: 86400 * (E - z) - v,
@@ -16058,7 +16058,7 @@ const Js = function(t) {
16058
16058
  S: 0,
16059
16059
  q: 0
16060
16060
  };
16061
- if (Math.abs(L.u) < 1e-6 && (L.u = 0), _ && _.date1904 && (z += 1462), L.u > 0.9999 && (L.u = 0, ++v == 86400 && (L.T = v = 0, ++z, ++L.D)), z === 60)
16061
+ if (Math.abs(F.u) < 1e-6 && (F.u = 0), _ && _.date1904 && (z += 1462), F.u > 0.9999 && (F.u = 0, ++v == 86400 && (F.T = v = 0, ++z, ++F.D)), z === 60)
16062
16062
  k = A ? [1317, 10, 29] : [1900, 2, 29], j = 3;
16063
16063
  else if (z === 0)
16064
16064
  k = A ? [1317, 8, 29] : [1900, 1, 0], j = 6;
@@ -16067,18 +16067,18 @@ const Js = function(t) {
16067
16067
  var oe = new Date(1900, 0, 1);
16068
16068
  oe.setDate(oe.getDate() + z - 1), k = [oe.getFullYear(), oe.getMonth() + 1, oe.getDate()], j = oe.getDay(), z < 60 && (j = (j + 6) % 7), A && (j = K(oe, k));
16069
16069
  }
16070
- return L.y = k[0], L.m = k[1], L.d = k[2], L.S = v % 60, v = Math.floor(v / 60), L.M = v % 60, v = Math.floor(v / 60), L.H = v, L.q = j, L;
16070
+ return F.y = k[0], F.m = k[1], F.d = k[2], F.S = v % 60, v = Math.floor(v / 60), F.M = v % 60, v = Math.floor(v / 60), F.H = v, F.q = j, F;
16071
16071
  }
16072
16072
  t.parse_date_code = $;
16073
16073
  var N = new Date(1899, 11, 31, 0, 0, 0), x = N.getTime(), C = new Date(1900, 2, 1, 0, 0, 0);
16074
- function F(E, _) {
16074
+ function L(E, _) {
16075
16075
  var A = E.getTime();
16076
16076
  return _ ? A -= 1461 * 24 * 60 * 60 * 1e3 : E >= C && (A += 24 * 60 * 60 * 1e3), (A - (x + (E.getTimezoneOffset() - N.getTimezoneOffset()) * 6e4)) / (24 * 60 * 60 * 1e3);
16077
16077
  }
16078
- function M(E) {
16078
+ function q(E) {
16079
16079
  return E.toString(10);
16080
16080
  }
16081
- t._general_int = M;
16081
+ t._general_int = q;
16082
16082
  var O = /* @__PURE__ */ function() {
16083
16083
  var _ = /(?:\.0*|(\.\d*[1-9])0+)$/;
16084
16084
  function A(ue) {
@@ -16088,10 +16088,10 @@ const Js = function(t) {
16088
16088
  function j(ue) {
16089
16089
  return ue.indexOf("E") == -1 ? ue : ue.replace(z, "$1E").replace(v, "$10$2");
16090
16090
  }
16091
- var k = 999999999999997, L = 1e15;
16091
+ var k = 999999999999997, F = 1e15;
16092
16092
  function oe(ue) {
16093
16093
  var _e = ue < 0 ? 12 : 11, ve = Math.abs(ue);
16094
- if (ve <= k || ve >= L) {
16094
+ if (ve <= k || ve >= F) {
16095
16095
  var Te = A(ue.toFixed(12));
16096
16096
  return Te.length <= _e || (Te = ue.toPrecision(10), Te.length <= _e) ? Te : A(ue.toFixed(12));
16097
16097
  }
@@ -16100,7 +16100,7 @@ const Js = function(t) {
16100
16100
  }
16101
16101
  function me(ue) {
16102
16102
  var _e = Math.abs(ue), ve = A(ue.toFixed(11));
16103
- return _e <= k || _e >= L ? ve : ve.length > (ue < 0 ? 12 : 11) || ve === "0" || ve === "-0" ? ue.toPrecision(6) : ve;
16103
+ return _e <= k || _e >= F ? ve : ve.length > (ue < 0 ? 12 : 11) || ve === "0" || ve === "-0" ? ue.toPrecision(6) : ve;
16104
16104
  }
16105
16105
  function ce(ue) {
16106
16106
  var _e = Math.floor(Math.log(Math.abs(ue)) * Math.LOG10E), ve;
@@ -16122,7 +16122,7 @@ const Js = function(t) {
16122
16122
  case "object":
16123
16123
  if (E == null) return "";
16124
16124
  if (E instanceof Date)
16125
- return pe(14, F(E, _ && _.date1904), _);
16125
+ return pe(14, L(E, _ && _.date1904), _);
16126
16126
  }
16127
16127
  throw new Error("unsupported value in General format: " + E);
16128
16128
  }
@@ -16133,18 +16133,18 @@ const Js = function(t) {
16133
16133
  return E < 60 && (A = (A + 6) % 7), A;
16134
16134
  }
16135
16135
  function W(E, _, A, z) {
16136
- var v = "", j = 0, k = 0, L = A.y, oe, me = 0;
16136
+ var v = "", j = 0, k = 0, F = A.y, oe, me = 0;
16137
16137
  switch (E) {
16138
16138
  case 98:
16139
- L = A.y + 543;
16139
+ F = A.y + 543;
16140
16140
  case 121:
16141
16141
  switch (_.length) {
16142
16142
  case 1:
16143
16143
  case 2:
16144
- oe = L % 100, me = 2;
16144
+ oe = F % 100, me = 2;
16145
16145
  break;
16146
16146
  default:
16147
- oe = L % 1e4, me = 4;
16147
+ oe = F % 1e4, me = 4;
16148
16148
  break;
16149
16149
  }
16150
16150
  break;
@@ -16228,7 +16228,7 @@ const Js = function(t) {
16228
16228
  me = _.length === 3 ? 1 : 2;
16229
16229
  break;
16230
16230
  case 101:
16231
- oe = L, me = 1;
16231
+ oe = F, me = 1;
16232
16232
  break;
16233
16233
  }
16234
16234
  var ce = me > 0 ? n(oe, me) : "";
@@ -16282,7 +16282,7 @@ const Js = function(t) {
16282
16282
  var Y = parseInt(ge[4], 10), U = Math.round(D * Y), R = Math.floor(U / Y), J = U - R * Y, be = Y;
16283
16283
  return I + (R === 0 ? "" : "" + R) + " " + (J === 0 ? a(" ", ge[1].length + 1 + ge[4].length) : o(J, ge[1].length) + ge[2] + "/" + ge[3] + n(be, ge[4].length));
16284
16284
  }
16285
- function L(ge, D, I) {
16285
+ function F(ge, D, I) {
16286
16286
  return I + (D === 0 ? "" : "" + D) + a(" ", ge[1].length + 2 + ge[4].length);
16287
16287
  }
16288
16288
  var oe = /^#*0*\.([0#]+)/, me = /\).*[0#]/, ce = /\(###\) ###\\?-####/;
@@ -16432,7 +16432,7 @@ const Js = function(t) {
16432
16432
  if (D.match(/^00+$/)) return ye + n(xe, D.length);
16433
16433
  if (D.match(/^[#?]+$/))
16434
16434
  return U = "" + I, I === 0 && (U = ""), U.length > D.length ? U : ue(D.substr(0, D.length - U.length)) + U;
16435
- if (R = D.match(j)) return L(R, xe, ye);
16435
+ if (R = D.match(j)) return F(R, xe, ye);
16436
16436
  if (D.match(/^#+0+$/))
16437
16437
  return ye + n(xe, D.length - D.indexOf("0"));
16438
16438
  if (R = D.match(oe))
@@ -16602,11 +16602,11 @@ const Js = function(t) {
16602
16602
  }
16603
16603
  t.is_date = ne;
16604
16604
  function ie(E, _, A, z) {
16605
- for (var v = [], j = "", k = 0, L = "", oe = "t", me, ce, ue, _e = "H"; k < E.length; )
16606
- switch (L = E.charAt(k)) {
16605
+ for (var v = [], j = "", k = 0, F = "", oe = "t", me, ce, ue, _e = "H"; k < E.length; )
16606
+ switch (F = E.charAt(k)) {
16607
16607
  case "G":
16608
16608
  if (!f(E, k))
16609
- throw new Error("unrecognized character " + L + " in " + E);
16609
+ throw new Error("unrecognized character " + F + " in " + E);
16610
16610
  v[v.length] = {
16611
16611
  t: "G",
16612
16612
  v: "General"
@@ -16647,7 +16647,7 @@ const Js = function(t) {
16647
16647
  v[v.length] = {
16648
16648
  t: "X",
16649
16649
  v: E.substr(k, 2)
16650
- }, oe = L, k += 2;
16650
+ }, oe = F, k += 2;
16651
16651
  break;
16652
16652
  }
16653
16653
  case "M":
@@ -16656,7 +16656,7 @@ const Js = function(t) {
16656
16656
  case "H":
16657
16657
  case "S":
16658
16658
  case "E":
16659
- L = L.toLowerCase();
16659
+ F = F.toLowerCase();
16660
16660
  case "m":
16661
16661
  case "d":
16662
16662
  case "y":
@@ -16667,24 +16667,24 @@ const Js = function(t) {
16667
16667
  if (_ < 0) return "";
16668
16668
  if (me == null && (me = $(_, A), me == null))
16669
16669
  return _;
16670
- for (j = L; ++k < E.length && E.charAt(k).toLowerCase() === L; ) j += L;
16671
- L === "m" && oe.toLowerCase() === "h" && (L = "M"), L === "h" && (L = _e), v[v.length] = {
16672
- t: L,
16670
+ for (j = F; ++k < E.length && E.charAt(k).toLowerCase() === F; ) j += F;
16671
+ F === "m" && oe.toLowerCase() === "h" && (F = "M"), F === "h" && (F = _e), v[v.length] = {
16672
+ t: F,
16673
16673
  v: j
16674
- }, oe = L;
16674
+ }, oe = F;
16675
16675
  break;
16676
16676
  case "A":
16677
16677
  case "a":
16678
16678
  case "上":
16679
16679
  var Ce = {
16680
- t: L,
16681
- v: L
16680
+ t: F,
16681
+ v: F
16682
16682
  };
16683
16683
  if (me == null && (me = $(_, A)), E.substr(k, 3).toUpperCase() === "A/P" ? (me != null && (Ce.v = me.H >= 12 ? "P" : "A"), Ce.t = "T", _e = "h", k += 3) : E.substr(k, 5).toUpperCase() === "AM/PM" ? (me != null && (Ce.v = me.H >= 12 ? "PM" : "AM"), Ce.t = "T", k += 5, _e = "h") : E.substr(k, 5).toUpperCase() === "上午/下午" ? (me != null && (Ce.v = me.H >= 12 ? "下午" : "上午"), Ce.t = "T", k += 5, _e = "h") : (Ce.t = "t", ++k), me == null && Ce.t === "T") return "";
16684
- v[v.length] = Ce, oe = L;
16684
+ v[v.length] = Ce, oe = F;
16685
16685
  break;
16686
16686
  case "[":
16687
- for (j = L; E.charAt(k++) !== "]" && k < E.length; ) j += E.charAt(k);
16687
+ for (j = F; E.charAt(k++) !== "]" && k < E.length; ) j += E.charAt(k);
16688
16688
  if (j.slice(-1) !== "]") throw 'unterminated "[" block: |' + j + "|";
16689
16689
  if (j.match(B)) {
16690
16690
  if (me == null && (me = $(_, A), me == null))
@@ -16700,7 +16700,7 @@ const Js = function(t) {
16700
16700
  break;
16701
16701
  case ".":
16702
16702
  if (me != null) {
16703
- for (j = L; ++k < E.length && (L = E.charAt(k)) === "0"; ) j += L;
16703
+ for (j = F; ++k < E.length && (F = E.charAt(k)) === "0"; ) j += F;
16704
16704
  v[v.length] = {
16705
16705
  t: "s",
16706
16706
  v: j
@@ -16709,19 +16709,19 @@ const Js = function(t) {
16709
16709
  }
16710
16710
  case "0":
16711
16711
  case "#":
16712
- for (j = L; ++k < E.length && "0#?.,E+-%".indexOf(L = E.charAt(k)) > -1; )
16713
- j += L;
16712
+ for (j = F; ++k < E.length && "0#?.,E+-%".indexOf(F = E.charAt(k)) > -1; )
16713
+ j += F;
16714
16714
  v[v.length] = {
16715
16715
  t: "n",
16716
16716
  v: j
16717
16717
  };
16718
16718
  break;
16719
16719
  case "?":
16720
- for (j = L; E.charAt(++k) === L; ) j += L;
16720
+ for (j = F; E.charAt(++k) === F; ) j += F;
16721
16721
  v[v.length] = {
16722
- t: L,
16722
+ t: F,
16723
16723
  v: j
16724
- }, oe = L;
16724
+ }, oe = F;
16725
16725
  break;
16726
16726
  case "*":
16727
16727
  ++k, (E.charAt(k) == " " || E.charAt(k) == "*") && ++k;
@@ -16729,8 +16729,8 @@ const Js = function(t) {
16729
16729
  case "(":
16730
16730
  case ")":
16731
16731
  v[v.length] = {
16732
- t: z === 1 ? "t" : L,
16733
- v: L
16732
+ t: z === 1 ? "t" : F,
16733
+ v: F
16734
16734
  }, ++k;
16735
16735
  break;
16736
16736
  case "1":
@@ -16742,7 +16742,7 @@ const Js = function(t) {
16742
16742
  case "7":
16743
16743
  case "8":
16744
16744
  case "9":
16745
- for (j = L; k < E.length && "0123456789".indexOf(E.charAt(++k)) > -1; )
16745
+ for (j = F; k < E.length && "0123456789".indexOf(E.charAt(++k)) > -1; )
16746
16746
  j += E.charAt(k);
16747
16747
  v[v.length] = {
16748
16748
  t: "D",
@@ -16751,8 +16751,8 @@ const Js = function(t) {
16751
16751
  break;
16752
16752
  case " ":
16753
16753
  v[v.length] = {
16754
- t: L,
16755
- v: L
16754
+ t: F,
16755
+ v: F
16756
16756
  }, ++k;
16757
16757
  break;
16758
16758
  case "$":
@@ -16763,12 +16763,12 @@ const Js = function(t) {
16763
16763
  break;
16764
16764
  default:
16765
16765
  if ("¤฿BsBr₵₡₫ƒFtRs.₭kr£₤Lm₥₦₱PQRSkRp৲৳R$S/.〒₮₩¥NT¥zł₴₪៛руб€₹$,$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP$¥LekdinAf$dhAflRial?£BirrKzMOPPGKRsGsB/R$ррlevkrKMzBsPNuFBuKPkrRD$NfkCFA?CVEGMDFrCDHTGNAfLFdjKGSFGGHSRielKCFknKshLSLL£LtRFRONArRfMWKRMMURsMROS/KMDLMTnRC$kr€GELCHFSLLSCRDbSZLSDGSOSSomFCFPTShT$VUVQUGXгрнsomWSTNT$FtDramRpZMWFCFA".indexOf(
16766
- L
16766
+ F
16767
16767
  ) === -1)
16768
- throw new Error("unrecognized character " + L + " in " + E);
16768
+ throw new Error("unrecognized character " + F + " in " + E);
16769
16769
  v[v.length] = {
16770
16770
  t: "t",
16771
- v: L
16771
+ v: F
16772
16772
  }, ++k;
16773
16773
  break;
16774
16774
  }
@@ -16830,7 +16830,7 @@ const Js = function(t) {
16830
16830
  break;
16831
16831
  case "n":
16832
16832
  case "?":
16833
- for (Me = k + 1; v[Me] != null && ((L = v[Me].t) === "?" || L === "D" || (L === " " || L === "t") && v[Me + 1] != null && (v[Me + 1].t === "?" || v[Me + 1].t === "t" && v[Me + 1].v === "/") || v[k].t === "(" && (L === " " || L === "n" || L === ")") || L === "t" && (v[Me].v === "/" || v[Me].v === " " && v[Me + 1] != null && v[Me + 1].t == "?")); )
16833
+ for (Me = k + 1; v[Me] != null && ((F = v[Me].t) === "?" || F === "D" || (F === " " || F === "t") && v[Me + 1] != null && (v[Me + 1].t === "?" || v[Me + 1].t === "t" && v[Me + 1].v === "/") || v[k].t === "(" && (F === " " || F === "n" || F === ")") || F === "t" && (v[Me].v === "/" || v[Me].v === " " && v[Me + 1] != null && v[Me + 1].t == "?")); )
16834
16834
  v[k].v += v[Me].v, v[Me] = {
16835
16835
  v: "",
16836
16836
  t: ";"
@@ -16924,8 +16924,8 @@ const Js = function(t) {
16924
16924
  if (A[0].indexOf("[") === -1 && A[1].indexOf("[") === -1)
16925
16925
  return [z, j];
16926
16926
  if (A[0].match(P) != null || A[1].match(P) != null) {
16927
- var k = A[0].match(G), L = A[1].match(G);
16928
- return Q(_, k) ? [z, A[0]] : Q(_, L) ? [z, A[1]] : [z, A[k != null && L != null ? 2 : 1]];
16927
+ var k = A[0].match(G), F = A[1].match(G);
16928
+ return Q(_, k) ? [z, A[0]] : Q(_, F) ? [z, A[1]] : [z, A[k != null && F != null ? 2 : 1]];
16929
16929
  }
16930
16930
  return [z, j];
16931
16931
  }
@@ -16953,8 +16953,8 @@ const Js = function(t) {
16953
16953
  if (z.match(j)) {
16954
16954
  if (isNaN(_))
16955
16955
  return _;
16956
- var k = z.slice(1), L = !1;
16957
- !isNaN(_) && Number(_) < 0 && (L = !0, _ = Math.abs(_));
16956
+ var k = z.slice(1), F = !1;
16957
+ !isNaN(_) && Number(_) < 0 && (F = !0, _ = Math.abs(_));
16958
16958
  var oe = parseInt(_), me = oe.toString().length;
16959
16959
  if (me > 4) {
16960
16960
  if (me > 8) {
@@ -17026,10 +17026,10 @@ const Js = function(t) {
17026
17026
  }
17027
17027
  } else
17028
17028
  k != "" && (_ = Ft(_).format(k));
17029
- return L ? "-" + _ : _;
17029
+ return F ? "-" + _ : _;
17030
17030
  }
17031
17031
  if (f(z, 0)) return V(_, A);
17032
- _ instanceof Date && (_ = F(_, A.date1904));
17032
+ _ instanceof Date && (_ = L(_, A.date1904));
17033
17033
  var Ce = le(z, _);
17034
17034
  if (f(Ce[1])) return V(_, A);
17035
17035
  if (_ === !0) _ = "TRUE";
@@ -17408,7 +17408,7 @@ function fc(e) {
17408
17408
  let r = 1, a = e.replace(/([\d]),([\d])/g, "$1$2").replace(/[$]/g, "").replace(/[%]/g, () => (r *= 100, ""));
17409
17409
  return t = Number(a), !Number.isNaN(t) || (a = a.replace(/[(](.*)[)]/, (n, o) => (r = -r, o)), t = Number(a), !Number.isNaN(t)) ? t / r : t;
17410
17410
  }
17411
- function Pf(e, t, r) {
17411
+ function Hf(e, t, r) {
17412
17412
  var n, o, i, l, u, s;
17413
17413
  let a = Ze(e, t, r, "m");
17414
17414
  return a == null ? a = Ze(e, t, r, "v") : Number.isNaN(fc(a)) ? ((i = (o = (n = r[e]) == null ? void 0 : n[t]) == null ? void 0 : o.ct) == null ? void 0 : i.t) === "d" || ((s = (u = (l = r[e]) == null ? void 0 : l[t]) == null ? void 0 : u.ct) == null ? void 0 : s.t) === "b" || (a = Ze(e, t, r, "v")) : h.isString(a) && a.indexOf("%") > -1 || (a = Ze(e, t, r, "v")), a;
@@ -17618,7 +17618,7 @@ class Ac {
17618
17618
  ), this.parser.on(
17619
17619
  "callRangeValue",
17620
17620
  (n, o, i, l) => {
17621
- var $, N, x, C, F, M;
17621
+ var $, N, x, C, L, q;
17622
17622
  const u = t.parser.context, s = n.sheetName == null ? i.sheetId : Ro(u, n.sheetName);
17623
17623
  if (s == null) throw Error(Fn);
17624
17624
  const c = Re(u, s), f = [];
@@ -17640,9 +17640,9 @@ class Ac {
17640
17640
  if (typeof i == "object" && O === i.row && K === i.column)
17641
17641
  continue;
17642
17642
  const W = (($ = u == null ? void 0 : u.formulaCache.execFunctionGlobalData) == null ? void 0 : $[`${O}_${K}_${s}`]) || ((N = c == null ? void 0 : c[O]) == null ? void 0 : N[K]), Z = t.tryGetCellAsNumber(W);
17643
- if (((x = W == null ? void 0 : W.m) != null && x.includes("ETH") || (C = W == null ? void 0 : W.m) != null && C.includes("SOL") || (F = W == null ? void 0 : W.m) != null && F.includes("BTC")) && w !== "Error") {
17643
+ if (((x = W == null ? void 0 : W.m) != null && x.includes("ETH") || (C = W == null ? void 0 : W.m) != null && C.includes("SOL") || (L = W == null ? void 0 : W.m) != null && L.includes("BTC")) && w !== "Error") {
17644
17644
  const H = W == null ? void 0 : W.m.split(" ");
17645
- w !== "" && w !== H[1] ? w = "Error" : w = H[1], T = H[0].includes(".") ? (M = H[0].split(".")[1]) == null ? void 0 : M.length : 0;
17645
+ w !== "" && w !== H[1] ? w = "Error" : w = H[1], T = H[0].includes(".") ? (q = H[0].split(".")[1]) == null ? void 0 : q.length : 0;
17646
17646
  }
17647
17647
  V.push(Z);
17648
17648
  }
@@ -18028,12 +18028,12 @@ function _n(e, t, r, a, n, o, i, l) {
18028
18028
  const p = e.formulaCache.depsByCell.get(c) ?? /* @__PURE__ */ new Set();
18029
18029
  if (e.formulaCache.depsByCell.set(c, f), p.forEach((C) => {
18030
18030
  if (f.has(C)) return;
18031
- const F = e.formulaCache.revDepsByCell.get(C);
18032
- F && (F.delete(c), F.size === 0 && e.formulaCache.revDepsByCell.delete(C));
18031
+ const L = e.formulaCache.revDepsByCell.get(C);
18032
+ L && (L.delete(c), L.size === 0 && e.formulaCache.revDepsByCell.delete(C));
18033
18033
  }), f.forEach((C) => {
18034
18034
  if (p.has(C)) return;
18035
- const F = e.formulaCache.revDepsByCell.get(C) ?? /* @__PURE__ */ new Set();
18036
- F.add(c), e.formulaCache.revDepsByCell.set(C, F);
18035
+ const L = e.formulaCache.revDepsByCell.get(C) ?? /* @__PURE__ */ new Set();
18036
+ L.add(c), e.formulaCache.revDepsByCell.set(C, L);
18037
18037
  }), tl(c, e.formulaCache.depsByCell).has(c) ? (d.error = At, d.result = At, ta(e, r, a, {
18038
18038
  row_column: `${r}_${a}`,
18039
18039
  title: ar,
@@ -18041,11 +18041,11 @@ function _n(e, t, r, a, n, o, i, l) {
18041
18041
  })) : Kt(e, r, a), f.size > 0 && d.error !== At)
18042
18042
  for (const C of f) {
18043
18043
  if (C === c) continue;
18044
- const F = xc(C);
18045
- if (!F) continue;
18046
- const M = (x = e == null ? void 0 : e.formulaCache.execFunctionGlobalData) == null ? void 0 : x[`${F.r}_${F.c}_${F.sheetId}`];
18047
- if (h.isNil(M)) continue;
18048
- if (((M == null ? void 0 : M.v) ?? (M == null ? void 0 : M.m)) === At) {
18044
+ const L = xc(C);
18045
+ if (!L) continue;
18046
+ const q = (x = e == null ? void 0 : e.formulaCache.execFunctionGlobalData) == null ? void 0 : x[`${L.r}_${L.c}_${L.sheetId}`];
18047
+ if (h.isNil(q)) continue;
18048
+ if (((q == null ? void 0 : q.v) ?? (q == null ? void 0 : q.m)) === At) {
18049
18049
  d.error = At, d.result = At;
18050
18050
  break;
18051
18051
  }
@@ -18099,7 +18099,7 @@ function Ic(e, t) {
18099
18099
  }
18100
18100
  return u.push(t), u;
18101
18101
  }
18102
- function Hf(e) {
18102
+ function zf(e) {
18103
18103
  var r, a;
18104
18104
  const { luckysheetfile: t } = e;
18105
18105
  if (e.groupValuesRefreshData.length > 0) {
@@ -18149,46 +18149,46 @@ function Wn(e, t, r, a, n, o, i = !1) {
18149
18149
  p[x] = 1;
18150
18150
  } else
18151
18151
  for (let x = 0; x < e.formulaCache.execFunctionExist.length; x += 1) {
18152
- const C = e.formulaCache.execFunctionExist[x], F = `r${C.r}c${C.c}i${C.i}`;
18153
- p[F] = 1;
18152
+ const C = e.formulaCache.execFunctionExist[x], L = `r${C.r}c${C.c}i${C.i}`;
18153
+ p[L] = 1;
18154
18154
  }
18155
- const g = {}, b = (x, C, F, M) => {
18155
+ const g = {}, b = (x, C, L, q) => {
18156
18156
  for (let O = 0; O < x.length; O += 1) {
18157
18157
  const V = x[O], K = `r${V.row[0]}${V.row[1]}c${V.column[0]}${V.column[1]}id${V.sheetId}`;
18158
18158
  if (K in g)
18159
18159
  g[K].forEach((Z) => {
18160
- M(Z.key, Z.r, Z.c, Z.sheetId);
18160
+ q(Z.key, Z.r, Z.c, Z.sheetId);
18161
18161
  });
18162
18162
  else {
18163
18163
  const W = [];
18164
18164
  for (let Z = V.row[0]; Z <= V.row[1]; Z += 1)
18165
18165
  for (let H = V.column[0]; H <= V.column[1]; H += 1) {
18166
18166
  const ee = `r${Z}c${H}i${V.sheetId}`;
18167
- M(ee, Z, H, V.sheetId), (C && ee in C || F && ee in F) && W.push({
18167
+ q(ee, Z, H, V.sheetId), (C && ee in C || L && ee in L) && W.push({
18168
18168
  key: ee,
18169
18169
  r: Z,
18170
18170
  c: H,
18171
18171
  sheetId: V.sheetId
18172
18172
  });
18173
18173
  }
18174
- (C || F) && (g[K] = W);
18174
+ (C || L) && (g[K] = W);
18175
18175
  }
18176
18176
  }
18177
18177
  };
18178
18178
  for (let x = 0; x < c.length; x += 1) {
18179
- const C = c[x], F = `r${C.r}c${C.c}i${C.id}`, M = $a(
18179
+ const C = c[x], L = `r${C.r}c${C.c}i${C.id}`, q = $a(
18180
18180
  e,
18181
18181
  C.r,
18182
18182
  C.c,
18183
18183
  C.id
18184
18184
  );
18185
- if (h.isNil(M))
18185
+ if (h.isNil(q))
18186
18186
  continue;
18187
- const O = M.toUpperCase(), V = O.indexOf("INDIRECT(") > -1 || O.indexOf("OFFSET(") > -1 || O.indexOf("INDEX(") > -1, K = [];
18187
+ const O = q.toUpperCase(), V = O.indexOf("INDIRECT(") > -1 || O.indexOf("OFFSET(") > -1 || O.indexOf("INDEX(") > -1, K = [];
18188
18188
  if (V)
18189
18189
  Mn(
18190
18190
  e,
18191
- M,
18191
+ q,
18192
18192
  null,
18193
18193
  null,
18194
18194
  C.id,
@@ -18198,19 +18198,19 @@ function Wn(e, t, r, a, n, o, i = !1) {
18198
18198
  h.isNil(H) || K.push(H);
18199
18199
  }
18200
18200
  );
18201
- else if (!(M.substring(0, 2) === '="' && M.substring(M.length - 1, 1) === '"')) {
18201
+ else if (!(q.substring(0, 2) === '="' && q.substring(q.length - 1, 1) === '"')) {
18202
18202
  let Z = 0, H = -1, ee = -1;
18203
- const B = [], ne = [], ie = M.length;
18203
+ const B = [], ne = [], ie = q.length;
18204
18204
  for (let P = 0; P < ie; P += 1) {
18205
- const G = M.charAt(P);
18205
+ const G = q.charAt(P);
18206
18206
  G === "'" && ee === -1 && (H === -1 ? (Z !== P && B.push(
18207
- ...M.substring(Z, P).split(/==|!=|<>|<=|>=|[,()=+-/*%&^><]/)
18208
- ), H = P, Z = P) : P < ie - 1 && M.charAt(P + 1) === "'" ? P += 1 : (Z = P + 1, B.push(M.substring(H, Z)), ne.push(B.length - 1), H = -1)), G === '"' && H === -1 && (ee === -1 ? (Z !== P && B.push(
18209
- ...M.substring(Z, P).split(/==|!=|<>|<=|>=|[,()=+-/*%&^><]/)
18210
- ), ee = P, Z = P) : P < ie - 1 && M.charAt(P + 1) === '"' ? P += 1 : (Z = P + 1, B.push(M.substring(ee, Z)), ee = -1));
18207
+ ...q.substring(Z, P).split(/==|!=|<>|<=|>=|[,()=+-/*%&^><]/)
18208
+ ), H = P, Z = P) : P < ie - 1 && q.charAt(P + 1) === "'" ? P += 1 : (Z = P + 1, B.push(q.substring(H, Z)), ne.push(B.length - 1), H = -1)), G === '"' && H === -1 && (ee === -1 ? (Z !== P && B.push(
18209
+ ...q.substring(Z, P).split(/==|!=|<>|<=|>=|[,()=+-/*%&^><]/)
18210
+ ), ee = P, Z = P) : P < ie - 1 && q.charAt(P + 1) === '"' ? P += 1 : (Z = P + 1, B.push(q.substring(ee, Z)), ee = -1));
18211
18211
  }
18212
18212
  Z !== ie && B.push(
18213
- ...M.substring(Z, ie).split(/==|!=|<>|<=|>=|[,()=+-/*%&^><]/)
18213
+ ...q.substring(Z, ie).split(/==|!=|<>|<=|>=|[,()=+-/*%&^><]/)
18214
18214
  );
18215
18215
  for (let P = ne.length - 1; P >= 0; P -= 1)
18216
18216
  ne[P] !== B.length - 1 && (B[ne[P]] += B[ne[P] + 1], B.splice(ne[P] + 1, 1));
@@ -18224,8 +18224,8 @@ function Wn(e, t, r, a, n, o, i = !1) {
18224
18224
  }
18225
18225
  const W = {
18226
18226
  formulaArray: K,
18227
- calc_funcStr: M,
18228
- key: F,
18227
+ calc_funcStr: q,
18228
+ key: L,
18229
18229
  r: C.r,
18230
18230
  c: C.c,
18231
18231
  id: C.id,
@@ -18233,7 +18233,7 @@ function Wn(e, t, r, a, n, o, i = !1) {
18233
18233
  chidren: {},
18234
18234
  color: "w"
18235
18235
  };
18236
- f[F] = W;
18236
+ f[L] = W;
18237
18237
  }
18238
18238
  Object.keys(f).forEach((x) => {
18239
18239
  const C = f[x];
@@ -18241,12 +18241,12 @@ function Wn(e, t, r, a, n, o, i = !1) {
18241
18241
  C.formulaArray,
18242
18242
  f,
18243
18243
  p,
18244
- (F) => {
18245
- if (F in f) {
18246
- const M = f[F];
18247
- C.chidren[F] = 1, M.parents[x] = 1;
18244
+ (L) => {
18245
+ if (L in f) {
18246
+ const q = f[L];
18247
+ C.chidren[L] = 1, q.parents[x] = 1;
18248
18248
  }
18249
- !i && F in p && y.push(C);
18249
+ !i && L in p && y.push(C);
18250
18250
  }
18251
18251
  ), i && y.push(C);
18252
18252
  });
@@ -18262,9 +18262,9 @@ function Wn(e, t, r, a, n, o, i = !1) {
18262
18262
  continue;
18263
18263
  }
18264
18264
  const C = [];
18265
- Object.keys(x.parents).forEach((F) => {
18266
- const M = f[F];
18267
- h.isNil(M) || C.push(M);
18265
+ Object.keys(x.parents).forEach((L) => {
18266
+ const q = f[L];
18267
+ h.isNil(q) || C.push(q);
18268
18268
  }), C.length === 0 ? (w.push(x), $[x.key] = 1) : (x.color = "b", T.push(x), T = T.concat(C));
18269
18269
  }
18270
18270
  w.reverse();
@@ -18276,9 +18276,9 @@ function Wn(e, t, r, a, n, o, i = !1) {
18276
18276
  const C = w[x];
18277
18277
  if (C.level === Math.max)
18278
18278
  continue;
18279
- const { calc_funcStr: F } = C, M = `${C.id}:${C.r}:${C.c}`;
18280
- if (s.has(M)) {
18281
- const Z = u.has(M) ? "Circular dependency." : "Circular dependency (upstream).";
18279
+ const { calc_funcStr: L } = C, q = `${C.id}:${C.r}:${C.c}`;
18280
+ if (s.has(q)) {
18281
+ const Z = u.has(q) ? "Circular dependency." : "Circular dependency (upstream).";
18282
18282
  ta(e, C.r, C.c, {
18283
18283
  row_column: `${C.r}_${C.c}`,
18284
18284
  title: ar,
@@ -18287,17 +18287,17 @@ function Wn(e, t, r, a, n, o, i = !1) {
18287
18287
  r: C.r,
18288
18288
  c: C.c,
18289
18289
  v: At,
18290
- f: F,
18290
+ f: L,
18291
18291
  id: C.id
18292
18292
  }), e.formulaCache.execFunctionGlobalData[`${C.r}_${C.c}_${C.id}`] = {
18293
18293
  v: At,
18294
- f: F
18294
+ f: L
18295
18295
  };
18296
18296
  continue;
18297
18297
  }
18298
18298
  const O = _n(
18299
18299
  e,
18300
- F,
18300
+ L,
18301
18301
  C.r,
18302
18302
  C.c,
18303
18303
  C.id,
@@ -18397,7 +18397,7 @@ function Dc(e, t, r) {
18397
18397
  }
18398
18398
  return null;
18399
18399
  }
18400
- function zf(e) {
18400
+ function Uf(e) {
18401
18401
  var a, n;
18402
18402
  if (e.formulaCache.func_selectedrange) return !0;
18403
18403
  const t = e.luckysheet_select_save;
@@ -18419,7 +18419,7 @@ function zf(e) {
18419
18419
  moveXY: r.moveXY
18420
18420
  }, !0);
18421
18421
  }
18422
- function Uf(e, t) {
18422
+ function Wf(e, t) {
18423
18423
  e.formulaRangeSelect = t;
18424
18424
  }
18425
18425
  function Oc(e, t, r = -1) {
@@ -18429,7 +18429,7 @@ function Oc(e, t, r = -1) {
18429
18429
  if (i === r) return;
18430
18430
  const l = Nn(e, o.textContent || "");
18431
18431
  if (!(i === e.formulaCache.selectingRangeIndex || l == null) && (l.sheetId === e.currentSheetId || l.sheetId === -1 && e.formulaCache.rangetosheet === e.currentSheetId)) {
18432
- const u = ju(
18432
+ const u = Xu(
18433
18433
  e,
18434
18434
  l.row[0],
18435
18435
  l.row[1],
@@ -18799,7 +18799,7 @@ function yr(e) {
18799
18799
  const i = parseInt(o, 10);
18800
18800
  return Number.isNaN(i) ? null : i;
18801
18801
  }
18802
- function Wf(e, t) {
18802
+ function Vf(e, t) {
18803
18803
  e.formulaCache.formulaEditorOwner = t;
18804
18804
  }
18805
18805
  function il(e) {
@@ -18888,7 +18888,7 @@ function jc(e) {
18888
18888
  function Xc(e) {
18889
18889
  e.formulaCache.rangeSelectionActive = !1, e.formulaRangeHighlight = [], e.formulaRangeSelect = void 0, e.formulaCache.selectingRangeIndex = -1, e.formulaCache.func_selectedrange = void 0, e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, e.formulaCache.rangechangeindex = void 0;
18890
18890
  }
18891
- function Vf(e) {
18891
+ function Gf(e) {
18892
18892
  const t = yr(e);
18893
18893
  if (t !== null) return t;
18894
18894
  const r = zc(e);
@@ -18940,8 +18940,8 @@ function Zc(e, t, r, a, n, o = !0) {
18940
18940
  if (x.tagName.toLowerCase() === "br") return `
18941
18941
  `;
18942
18942
  let C = "";
18943
- return x.childNodes.forEach((F) => {
18944
- C += T(F);
18943
+ return x.childNodes.forEach((L) => {
18944
+ C += T(L);
18945
18945
  }), C;
18946
18946
  };
18947
18947
  let $ = "";
@@ -18953,7 +18953,7 @@ function Zc(e, t, r, a, n, o = !0) {
18953
18953
  }, g = n ?? y(r);
18954
18954
  let b = y(r);
18955
18955
  if ((a === 8 || a === 46) && (b = b.replace(/\n{2,}$/, `
18956
- `)), b = af(b), b.length > 0 && b.substring(0, 1) === "=" && (a !== 229 || b.length === 1)) {
18956
+ `)), b = of(b), b.length > 0 && b.substring(0, 1) === "=" && (a !== 229 || b.length === 1)) {
18957
18957
  if (o || (Pn = al(r)), b = Qr(b), !o && jt < Pn.length && (o = !0), p = Qr(g), Pn = [], window.getSelection) {
18958
18958
  const w = window.getSelection();
18959
18959
  if (!w) return;
@@ -19009,7 +19009,7 @@ function Kc(e) {
19009
19009
  }
19010
19010
  return Rr(t);
19011
19011
  }
19012
- function Gf(e, t, r) {
19012
+ function Yf(e, t, r) {
19013
19013
  if (!r) return !1;
19014
19014
  const a = window.getSelection();
19015
19015
  if (!a || a.rangeCount === 0 || !a.anchorNode || !r.contains(a.anchorNode)) return !1;
@@ -19114,7 +19114,7 @@ function Co(e, t, r) {
19114
19114
  }
19115
19115
  return !1;
19116
19116
  }
19117
- function Yf(e) {
19117
+ function jf(e) {
19118
19118
  return !!e.formulaCache.rangestart || !!e.formulaCache.rangedrag_column_start || !!e.formulaCache.rangedrag_row_start || e.formulaCache.rangeSelectionActive === !0 || br(e);
19119
19119
  }
19120
19120
  function br(e, t) {
@@ -19186,11 +19186,11 @@ function br(e, t) {
19186
19186
  }
19187
19187
  return !1;
19188
19188
  }
19189
- function jf(e) {
19189
+ function Xf(e) {
19190
19190
  const t = ol(e), r = ((t == null ? void 0 : t.innerText) || "").trim(), a = !!e.formulaCache.rangestart || !!e.formulaCache.rangedrag_column_start || !!e.formulaCache.rangedrag_row_start, n = !!t && va(t), o = a || e.formulaCache.rangeSelectionActive === !0;
19191
19191
  return r.startsWith("=") ? e.formulaCache.rangeSelectionActive === !0 && t && yr(t) !== null ? !0 : /^=\s*[A-Za-z_][A-Za-z0-9_]*$/.test(r) || e.formulaCache.rangeSelectionActive === !1 ? !1 : o ? a ? !0 : n : n ? !0 : br(e) : !1;
19192
19192
  }
19193
- function Xf(e) {
19193
+ function Zf(e) {
19194
19194
  if (e.formulaCache.rangeSelectionActive !== !1)
19195
19195
  return !1;
19196
19196
  const t = ol(e);
@@ -19274,8 +19274,8 @@ function _a(e, t, r, a) {
19274
19274
  `<div>${t.innerHTML}</div>`,
19275
19275
  "text/html"
19276
19276
  ).querySelectorAll("span"), l = i[i.length - 1], u = ((g = l == null ? void 0 : l.classList) == null ? void 0 : g.contains("fortune-formula-functionrange-cell")) ?? !1;
19277
- if (l && lf(l == null ? void 0 : l.innerText) && !u) {
19278
- const N = sf(t.innerHTML);
19277
+ if (l && sf(l == null ? void 0 : l.innerText) && !u) {
19278
+ const N = cf(t.innerHTML);
19279
19279
  t.innerHTML = `${N}`, t.focus();
19280
19280
  const x = t.childNodes;
19281
19281
  e.formulaCache.rangeSetValueTo = x.length > 0 ? x[x.length - 1] : void 0;
@@ -19304,24 +19304,24 @@ function _a(e, t, r, a) {
19304
19304
  if (p && y)
19305
19305
  y.innerHTML = f, sr(e, y, 0, f.length, s);
19306
19306
  else {
19307
- const N = al(s), x = N.length > 0 ? Math.max(...N) + 1 : jt, C = `<span class="fortune-formula-functionrange-cell" rangeindex="${x}" dir="auto" style="color:${ya[x]};">${f}</span>`, F = nl(C);
19308
- let M = e.formulaCache.rangeSetValueTo;
19309
- if (M && !M.parentNode && (br(e), M = e.formulaCache.rangeSetValueTo), M && M.parentNode) {
19307
+ const N = al(s), x = N.length > 0 ? Math.max(...N) + 1 : jt, C = `<span class="fortune-formula-functionrange-cell" rangeindex="${x}" dir="auto" style="color:${ya[x]};">${f}</span>`, L = nl(C);
19308
+ let q = e.formulaCache.rangeSetValueTo;
19309
+ if (q && !q.parentNode && (br(e), q = e.formulaCache.rangeSetValueTo), q && q.parentNode) {
19310
19310
  const V = (b = document.getElementsByClassName(
19311
19311
  "luckysheet-formula-text-lpar"
19312
19312
  )) == null ? void 0 : b[0];
19313
19313
  (w = V == null ? void 0 : V.parentElement) != null && w.classList.contains(
19314
19314
  "luckysheet-formula-text-color"
19315
- ) ? ($ = (T = document.getElementsByClassName("luckysheet-formula-text-lpar")) == null ? void 0 : T[0].parentNode) == null || $.appendChild(F) : M.parentNode.insertBefore(F, M.nextSibling);
19315
+ ) ? ($ = (T = document.getElementsByClassName("luckysheet-formula-text-lpar")) == null ? void 0 : T[0].parentNode) == null || $.appendChild(L) : q.parentNode.insertBefore(L, q.nextSibling);
19316
19316
  } else
19317
- s.appendChild(F);
19317
+ s.appendChild(L);
19318
19318
  e.formulaCache.rangechangeindex = x, jt = Math.max(jt, x + 1);
19319
- const O = F != null && F.parentNode ? F : null;
19319
+ const O = L != null && L.parentNode ? L : null;
19320
19320
  O ? sr(e, O, 0, f.length, s) : rl(s);
19321
19321
  }
19322
19322
  c && (c.innerHTML = s.innerHTML);
19323
19323
  }
19324
- function Zf(e) {
19324
+ function Kf(e) {
19325
19325
  if (e.formulaCache.func_selectedrange) {
19326
19326
  const {
19327
19327
  left_move: t,
@@ -19345,7 +19345,7 @@ function Ta(e, t, r, a, n) {
19345
19345
  );
19346
19346
  o != null && (o.style.left = `${t}px`, o.style.top = `${r}px`, o.style.height = `${a}px`, o.style.width = `${n}px`);
19347
19347
  }
19348
- function Kf(e, t, r, a, n, o, i) {
19348
+ function Qf(e, t, r, a, n, o, i) {
19349
19349
  e.formulaCache.rangeSelectionActive = !0;
19350
19350
  const { func_selectedrange: l } = e.formulaCache;
19351
19351
  if (!l || l.left == null || l.height == null || l.top == null || l.width == null)
@@ -19375,7 +19375,7 @@ function Kf(e, t, r, a, n, o, i) {
19375
19375
  i
19376
19376
  ), Ta(o, $, b, w, N), t.preventDefault();
19377
19377
  }
19378
- function Qf(e, t, r, a, n, o, i) {
19378
+ function Jf(e, t, r, a, n, o, i) {
19379
19379
  e.formulaCache.rangeSelectionActive = !0;
19380
19380
  const { func_selectedrange: l } = e.formulaCache;
19381
19381
  if (!l || l.left == null || l.height == null || l.top == null || l.width == null)
@@ -19403,7 +19403,7 @@ function Qf(e, t, r, a, n, o, i) {
19403
19403
  i
19404
19404
  ), Ta(o, b, d, m - d - 1, w);
19405
19405
  }
19406
- function Jf(e, t, r, a, n, o, i) {
19406
+ function ed(e, t, r, a, n, o, i) {
19407
19407
  e.formulaCache.rangeSelectionActive = !0;
19408
19408
  const { func_selectedrange: l } = e.formulaCache;
19409
19409
  if (!l || l.left == null || l.height == null || l.top == null || l.width == null)
@@ -19505,8 +19505,8 @@ function au(e, t, r, a) {
19505
19505
  (i, l, u, s, c, f, m, d, p, y) => {
19506
19506
  if ((l ? ll(l.slice(0, -1)) : t) !== r) return i;
19507
19507
  const b = ($, N) => {
19508
- const x = wt($), C = parseInt(N, 10) - 1, F = !Number.isNaN(x) && !h.isNil(o == null ? void 0 : o[x]) ? Xe(o[x]) : $, M = !Number.isNaN(C) && !h.isNil(n == null ? void 0 : n[C]) ? String(n[C] + 1) : N;
19509
- return { nextCol: F, nextRow: M };
19508
+ const x = wt($), C = parseInt(N, 10) - 1, L = !Number.isNaN(x) && !h.isNil(o == null ? void 0 : o[x]) ? Xe(o[x]) : $, q = !Number.isNaN(C) && !h.isNil(n == null ? void 0 : n[C]) ? String(n[C] + 1) : N;
19509
+ return { nextCol: L, nextRow: q };
19510
19510
  }, w = b(s, f);
19511
19511
  if (h.isNil(d) || h.isNil(y))
19512
19512
  return `${l || ""}${u}${w.nextCol}${c}${w.nextRow}`;
@@ -19662,7 +19662,7 @@ function sl(e, t, r, a) {
19662
19662
  const l = (c = n.config) == null ? void 0 : c.authority;
19663
19663
  return !(h.isNil(l) || h.isNil(l.sheet) || l.sheet === 0);
19664
19664
  }
19665
- function ed(e, t, r, a) {
19665
+ function td(e, t, r, a) {
19666
19666
  var u;
19667
19667
  const n = $r(e, a);
19668
19668
  if (h.isNil(n) || h.isNil(n.config) || h.isNil(n.config.authority))
@@ -19673,7 +19673,7 @@ function ed(e, t, r, a) {
19673
19673
  const { data: i } = n, l = (u = i == null ? void 0 : i[t]) == null ? void 0 : u[r];
19674
19674
  return l && l.lo === 0 ? !!(o.selectunLockedCells === 1 || h.isNil(o.selectunLockedCells)) : !!(o.selectLockedCells === 1 || h.isNil(o.selectLockedCells));
19675
19675
  }
19676
- function td(e, t) {
19676
+ function nd(e, t) {
19677
19677
  const r = $r(e, t);
19678
19678
  if (h.isNil(r) || h.isNil(r.config) || h.isNil(r.config.authority))
19679
19679
  return !0;
@@ -19805,7 +19805,7 @@ function Jr(e) {
19805
19805
  return vn(t);
19806
19806
  }
19807
19807
  }
19808
- function nd(e) {
19808
+ function rd(e) {
19809
19809
  const t = cr;
19810
19810
  if (!e || e.length === 0)
19811
19811
  return {
@@ -19872,7 +19872,30 @@ const _r = /* @__PURE__ */ new Set([
19872
19872
  "yesterday",
19873
19873
  "exact"
19874
19874
  ]);
19875
- function pu(e, t) {
19875
+ function pu(e) {
19876
+ switch (e) {
19877
+ case "containsText":
19878
+ return "textContains";
19879
+ case "notContainsText":
19880
+ case "notContains":
19881
+ return "textDoesNotContain";
19882
+ case "beginsWith":
19883
+ return "textStartsWith";
19884
+ case "endsWith":
19885
+ return "textEndsWith";
19886
+ case "containsBlanks":
19887
+ return "empty";
19888
+ case "notContainsBlanks":
19889
+ return "notEmpty";
19890
+ case "top10Percent":
19891
+ return "top10_percent";
19892
+ case "last10Percent":
19893
+ return "last10_percent";
19894
+ default:
19895
+ return e;
19896
+ }
19897
+ }
19898
+ function gu(e, t) {
19876
19899
  if (!(t != null && t.length)) return !1;
19877
19900
  const r = String(t[0] ?? ""), a = Math.floor(e);
19878
19901
  if (!r.startsWith("preset:")) {
@@ -19909,7 +19932,7 @@ function ea(e) {
19909
19932
  let n = String(e.dateValue ?? "").trim();
19910
19933
  return r !== "exact" && (n = n || Jr(r)), [`preset:${r}`, n, a];
19911
19934
  }
19912
- function rd(e, t, r, a, n, o, i) {
19935
+ function ad(e, t, r, a, n, o, i) {
19913
19936
  var y, g, b, w;
19914
19937
  if (!cu(e))
19915
19938
  return;
@@ -19918,11 +19941,11 @@ function rd(e, t, r, a, n, o, i) {
19918
19941
  let T = n.rulesValue;
19919
19942
  const $ = Hn(e, T);
19920
19943
  if ($.length > 1) {
19921
- const N = $[0].row[0], x = $[0].row[1], C = $[0].column[0], F = $[0].column[1];
19922
- if (N === x && C === F) {
19923
- const M = Re(e);
19924
- if (!M) return;
19925
- T = Ze(N, C, M), u.push({
19944
+ const N = $[0].row[0], x = $[0].row[1], C = $[0].column[0], L = $[0].column[1];
19945
+ if (N === x && C === L) {
19946
+ const q = Re(e);
19947
+ if (!q) return;
19948
+ T = Ze(N, C, q), u.push({
19926
19949
  row: $[0].row,
19927
19950
  column: $[0].column
19928
19951
  }), s.push(T);
@@ -19947,11 +19970,11 @@ function rd(e, t, r, a, n, o, i) {
19947
19970
  return;
19948
19971
  }
19949
19972
  if (N.length === 1) {
19950
- const C = N[0].row[0], F = N[0].row[1], M = N[0].column[0], O = N[0].column[1];
19951
- if (C === F && M === O) {
19973
+ const C = N[0].row[0], L = N[0].row[1], q = N[0].column[0], O = N[0].column[1];
19974
+ if (C === L && q === O) {
19952
19975
  const V = Re(e);
19953
19976
  if (!V) return;
19954
- T = Ze(C, M, V), u.push({
19977
+ T = Ze(C, q, V), u.push({
19955
19978
  row: N[0].row,
19956
19979
  column: N[0].column
19957
19980
  }), s.push(T);
@@ -19972,11 +19995,11 @@ function rd(e, t, r, a, n, o, i) {
19972
19995
  return;
19973
19996
  }
19974
19997
  if (x.length === 1) {
19975
- const C = x[0].row[0], F = x[0].row[1], M = x[0].column[0], O = x[0].column[1];
19976
- if (C === F && M === O) {
19998
+ const C = x[0].row[0], L = x[0].row[1], q = x[0].column[0], O = x[0].column[1];
19999
+ if (C === L && q === O) {
19977
20000
  const V = Re(e);
19978
20001
  if (!V) return;
19979
- $ = Ze(C, M, V), u.push({
20002
+ $ = Ze(C, q, V), u.push({
19980
20003
  row: x[0].row,
19981
20004
  column: x[0].column
19982
20005
  });
@@ -20062,7 +20085,7 @@ function Dr(e, t, r, a, n) {
20062
20085
  const o = e.split(","), i = parseInt(o[0].split("(")[1], 10), l = parseInt(o[1], 10), u = parseInt(o[2].split(")")[0], 10), s = t.split(","), c = parseInt(s[0].split("(")[1], 10), f = parseInt(s[1], 10), m = parseInt(s[2].split(")")[0], 10), d = r - a, p = r - n, y = Math.round(i - (i - c) / d * p), g = Math.round(l - (l - f) / d * p), b = Math.round(u - (u - m) / d * p);
20063
20086
  return `rgb(${y}, ${g}, ${b})`;
20064
20087
  }
20065
- function gu(e, t, r) {
20088
+ function yu(e, t, r) {
20066
20089
  h.isNil(t) && (t = []);
20067
20090
  const a = {};
20068
20091
  if (t.length > 0)
@@ -20192,78 +20215,87 @@ function gu(e, t, r) {
20192
20215
  }
20193
20216
  }
20194
20217
  } else if (o !== "icons") {
20195
- const { conditionName: u } = t[n], s = t[n].conditionValue[0], c = t[n].conditionValue[1], { textColor: f, cellColor: m, bold: d, italic: p, underline: y, strikethrough: g } = l;
20218
+ const u = pu(
20219
+ String(t[n].conditionName ?? "")
20220
+ ), s = t[n].conditionValue[0], c = t[n].conditionValue[1], { textColor: f, cellColor: m, bold: d, italic: p, underline: y, strikethrough: g } = l;
20196
20221
  for (let b = 0; b < i.length; b += 1)
20197
20222
  if (u === "greaterThan" || u === "greaterThanOrEqual" || u === "lessThan" || u === "lessThanOrEqual" || u === "equal" || u === "notEqual" || u === "textContains" || u === "textDoesNotContain" || u === "textStartsWith" || u === "textEndsWith" || u === "textExactly")
20198
20223
  for (let w = i[b].row[0]; w <= i[b].row[1]; w += 1)
20199
20224
  for (let T = i[b].column[0]; T <= i[b].column[1]; T += 1) {
20200
20225
  if (h.isNil(r[w]) || h.isNil(r[w][T]))
20201
20226
  continue;
20202
- const $ = r[w][T];
20203
- h.isNil($) || h.isNil($.v) || Je($.v) || (u === "greaterThan" && No($.v, s, ">") && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20227
+ const $ = r[w][T], N = h.isNil($) || h.isNil($.v) || Je($.v), x = N ? null : $.v, C = N ? "" : String($.v), L = s == null ? "" : String(s), q = C.toLowerCase(), O = L.toLowerCase();
20228
+ N && u !== "textDoesNotContain" || (u === "greaterThan" && No(x, s, ">") && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20229
+ textColor: f,
20230
+ cellColor: m,
20231
+ bold: d,
20232
+ italic: p,
20233
+ underline: y,
20234
+ strikethrough: g
20235
+ } : u === "greaterThanOrEqual" && No(x, s, ">=") && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20204
20236
  textColor: f,
20205
20237
  cellColor: m,
20206
20238
  bold: d,
20207
20239
  italic: p,
20208
20240
  underline: y,
20209
20241
  strikethrough: g
20210
- } : u === "greaterThanOrEqual" && No($.v, s, ">=") && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20242
+ } : u === "lessThan" && xo(x, s, "<") && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20211
20243
  textColor: f,
20212
20244
  cellColor: m,
20213
20245
  bold: d,
20214
20246
  italic: p,
20215
20247
  underline: y,
20216
20248
  strikethrough: g
20217
- } : u === "lessThan" && xo($.v, s, "<") && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20249
+ } : u === "lessThanOrEqual" && xo(x, s, "<=") && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20218
20250
  textColor: f,
20219
20251
  cellColor: m,
20220
20252
  bold: d,
20221
20253
  italic: p,
20222
20254
  underline: y,
20223
20255
  strikethrough: g
20224
- } : u === "lessThanOrEqual" && xo($.v, s, "<=") && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20256
+ } : u === "equal" && String(x) === s && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20225
20257
  textColor: f,
20226
20258
  cellColor: m,
20227
20259
  bold: d,
20228
20260
  italic: p,
20229
20261
  underline: y,
20230
20262
  strikethrough: g
20231
- } : (u === "equal" || u === "textExactly") && $.v.toString() === s && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20263
+ } : u === "textExactly" && q === O && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20232
20264
  textColor: f,
20233
20265
  cellColor: m,
20234
20266
  bold: d,
20235
20267
  italic: p,
20236
20268
  underline: y,
20237
20269
  strikethrough: g
20238
- } : u === "notEqual" && $.v.toString() !== s.toString() && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20270
+ } : u === "notEqual" && String(x) !== s.toString() && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20239
20271
  textColor: f,
20240
20272
  cellColor: m,
20241
20273
  bold: d,
20242
20274
  italic: p,
20243
20275
  underline: y,
20244
20276
  strikethrough: g
20245
- } : u === "textContains" && $.v.toString().indexOf(s) !== -1 && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20277
+ } : u === "textContains" && q.indexOf(O) !== -1 && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20246
20278
  textColor: f,
20247
20279
  cellColor: m,
20248
20280
  bold: d,
20249
20281
  italic: p,
20250
20282
  underline: y,
20251
20283
  strikethrough: g
20252
- } : u === "textDoesNotContain" && $.v.toString().indexOf(s) === -1 && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20284
+ } : u === "textDoesNotContain" && q.indexOf(O) === -1 && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20253
20285
  textColor: f,
20254
20286
  cellColor: m,
20255
20287
  bold: d,
20256
20288
  italic: p,
20257
20289
  underline: y,
20258
20290
  strikethrough: g
20259
- } : u === "textStartsWith" && $.v.toString().startsWith(s) && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20291
+ } : u === "textStartsWith" && q.startsWith(O) && !(`${w}_${T}` in a) ? a[`${w}_${T}`] = {
20260
20292
  textColor: f,
20261
20293
  cellColor: m,
20262
20294
  bold: d,
20263
20295
  italic: p,
20264
20296
  underline: y,
20265
20297
  strikethrough: g
20266
- } : u === "textEndsWith" && $.v.toString().endsWith(s) && !(`${w}_${T}` in a) && (a[`${w}_${T}`] = {
20298
+ } : u === "textEndsWith" && q.endsWith(O) && !(`${w}_${T}` in a) && (a[`${w}_${T}`] = {
20267
20299
  textColor: f,
20268
20300
  cellColor: m,
20269
20301
  bold: d,
@@ -20372,7 +20404,7 @@ function gu(e, t, r) {
20372
20404
  const N = So(r[T][$]);
20373
20405
  if (N == null)
20374
20406
  continue;
20375
- pu(N, w) && !(`${T}_${$}` in a) && (a[`${T}_${$}`] = {
20407
+ gu(N, w) && !(`${T}_${$}` in a) && (a[`${T}_${$}`] = {
20376
20408
  textColor: f,
20377
20409
  cellColor: m,
20378
20410
  bold: d,
@@ -20492,12 +20524,12 @@ function gu(e, t, r) {
20492
20524
  let x = s;
20493
20525
  s.toString().slice(0, 1) !== "=" && (x = `=${s}`);
20494
20526
  for (let C = w; C <= T; C += 1)
20495
- for (let F = $; F <= N; F += 1) {
20496
- let M = x;
20497
- const O = C - w, V = F - $;
20498
- O > 0 && (M = `=${mn(e, M, "down", O)}`), V > 0 && (M = `=${mn(e, M, "right", V)}`);
20499
- let W = _n(e, M, C, F)[1];
20500
- typeof W != "boolean" && (W = !!Number(W)), W && (`${C}_${F}` in a || (a[`${C}_${F}`] = {
20527
+ for (let L = $; L <= N; L += 1) {
20528
+ let q = x;
20529
+ const O = C - w, V = L - $;
20530
+ O > 0 && (q = `=${mn(e, q, "down", O)}`), V > 0 && (q = `=${mn(e, q, "right", V)}`);
20531
+ let W = _n(e, q, C, L)[1];
20532
+ typeof W != "boolean" && (W = !!Number(W)), W && (`${C}_${L}` in a || (a[`${C}_${L}`] = {
20501
20533
  textColor: f,
20502
20534
  cellColor: m,
20503
20535
  bold: d,
@@ -20511,7 +20543,7 @@ function gu(e, t, r) {
20511
20543
  }
20512
20544
  return a;
20513
20545
  }
20514
- function yu(e) {
20546
+ function bu(e) {
20515
20547
  var r, a;
20516
20548
  if (!e) return !1;
20517
20549
  const t = e.rulesType;
@@ -20526,19 +20558,19 @@ function yu(e) {
20526
20558
  }
20527
20559
  return t === "occurrenceDate" ? String(e.dateValue ?? "").trim() !== "" : t === "between" || t === "notBetween" ? String(((r = e.betweenValue) == null ? void 0 : r.value1) ?? "").trim() !== "" && String(((a = e.betweenValue) == null ? void 0 : a.value2) ?? "").trim() !== "" : String(e.rulesValue ?? "").trim() !== "";
20528
20560
  }
20529
- function bu(e) {
20561
+ function wu(e) {
20530
20562
  if (!e) return [""];
20531
20563
  const t = ea(e);
20532
20564
  if (t) return t;
20533
20565
  const r = e.rulesType;
20534
20566
  return r === "occurrenceDate" ? [e.dateValue || ""] : (r === "between" || r === "notBetween") && e.betweenValue ? [e.betweenValue.value1, e.betweenValue.value2] : [e.rulesValue || ""];
20535
20567
  }
20536
- function wu(e) {
20568
+ function vu(e) {
20537
20569
  var l, u, s, c, f, m, d, p, y, g, b, w, T, $;
20538
20570
  const t = Le(e, e.currentSheetId), r = (l = e.luckysheetfile[t]) != null && l.luckysheet_conditionformat_save ? [...(u = e.luckysheetfile[t]) == null ? void 0 : u.luckysheet_conditionformat_save] : [], { data: a } = e.luckysheetfile[t];
20539
20571
  if (h.isNil(a)) return null;
20540
20572
  const n = (s = e.luckysheetfile[t].conditionRules) == null ? void 0 : s.editKey, o = e.luckysheetfile[t].conditionRules;
20541
- return e.conditionFormatDraftActive && e.luckysheet_select_save && yu(o) && (n != null && r.splice(Number(n), 1), r.unshift({
20573
+ return e.conditionFormatDraftActive && e.luckysheet_select_save && bu(o) && (n != null && r.splice(Number(n), 1), r.unshift({
20542
20574
  type: "default",
20543
20575
  cellrange: e.luckysheet_select_save,
20544
20576
  format: {
@@ -20551,13 +20583,13 @@ function wu(e) {
20551
20583
  },
20552
20584
  conditionName: ($ = e.luckysheetfile[t].conditionRules) == null ? void 0 : $.rulesType,
20553
20585
  conditionRange: [],
20554
- conditionValue: bu(o)
20555
- })), gu(e, r, a);
20586
+ conditionValue: wu(o)
20587
+ })), yu(e, r, a);
20556
20588
  }
20557
- function vu(e, t, r) {
20589
+ function _u(e, t, r) {
20558
20590
  return !h.isNil(r) && `${e}_${t}` in r ? r[`${e}_${t}`] : null;
20559
20591
  }
20560
- function _u(e, t, r, a) {
20592
+ function Tu(e, t, r, a) {
20561
20593
  let n = [];
20562
20594
  const o = r.row[0] - t.row[0], i = r.column[0] - t.column[0], l = e.row[0], u = e.row[1], s = e.column[0], c = e.column[1];
20563
20595
  return l >= t.row[0] && u <= t.row[1] && s >= t.column[0] && c <= t.column[1] ? a === "allPart" ? n = [
@@ -20817,7 +20849,7 @@ function _u(e, t, r, a) {
20817
20849
  }
20818
20850
  ]) : a === "allPart" ? n = [{ row: [l, u], column: [s, c] }] : a === "restPart" ? n = [{ row: [l, u], column: [s, c] }] : a === "operatePart" && (n = []), n;
20819
20851
  }
20820
- function Tu(e, t) {
20852
+ function $u(e, t) {
20821
20853
  const r = [];
20822
20854
  if (vt(t)) {
20823
20855
  const a = Nn(e, t), n = Le(e, a.sheetId), o = e.luckysheetfile[n].data;
@@ -20841,7 +20873,7 @@ function Tu(e, t) {
20841
20873
  }
20842
20874
  return r;
20843
20875
  }
20844
- function $u(e, t) {
20876
+ function Cu(e, t) {
20845
20877
  if (/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/.test(t)) {
20846
20878
  if (t.length === 18) {
20847
20879
  const a = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2], n = [1, 0, 10, 9, 8, 7, 6, 5, 4, 3, 2];
@@ -20859,7 +20891,7 @@ function fl(e, t, r) {
20859
20891
  let { value1: a, value2: n } = t;
20860
20892
  const { type: o, type2: i } = t;
20861
20893
  if (o === "dropdown") {
20862
- const l = Tu(e, a);
20894
+ const l = $u(e, a);
20863
20895
  if (i && r)
20864
20896
  return r.toString().split(",").every((s) => l.indexOf(s) !== -1);
20865
20897
  let u = !1;
@@ -20883,12 +20915,12 @@ function fl(e, t, r) {
20883
20915
  } else if (o === "date") {
20884
20916
  if (!Cn(r) || i === "between" && (xt(r, a) < 0 || xt(r, n) > 0) || i === "notBetween" && xt(r, a) >= 0 && xt(r, n) <= 0 || i === "equal" && xt(r, a) !== 0 || i === "notEqualTo" && xt(r, a) === 0 || i === "earlierThan" && xt(r, a) >= 0 || i === "noEarlierThan" && xt(r, a) < 0 || i === "laterThan" && xt(r, a) <= 0 || i === "noLaterThan" && xt(r, a) > 0)
20885
20917
  return !1;
20886
- } else if (o === "validity" && (i === "identificationNumber" && !$u(e, r) || i === "phoneNumber" && !/^1[3456789]\d{9}$/.test(r)))
20918
+ } else if (o === "validity" && (i === "identificationNumber" && !Cu(e, r) || i === "phoneNumber" && !/^1[3456789]\d{9}$/.test(r)))
20887
20919
  return !1;
20888
20920
  }
20889
20921
  return !0;
20890
20922
  }
20891
- function Cu(e, t, r) {
20923
+ function Nu(e, t, r) {
20892
20924
  var u, s;
20893
20925
  const a = Le(e, e.currentSheetId), o = (e.luckysheetfile[a].dataVerification ?? {})[`${t}_${r}`];
20894
20926
  o.checked = !o.checked;
@@ -20934,7 +20966,7 @@ function dl(e, t) {
20934
20966
  }
20935
20967
  return r;
20936
20968
  }
20937
- function Nu(e, t) {
20969
+ function xu(e, t) {
20938
20970
  var u, s, c, f;
20939
20971
  let r = t.hintValue || "";
20940
20972
  const { type: a, type2: n, value1: o, value2: i } = t, { lang: l } = e;
@@ -20955,8 +20987,8 @@ function Nu(e, t) {
20955
20987
  }
20956
20988
  return r;
20957
20989
  }
20958
- function ad(e, t, r, a) {
20959
- const n = nn(e), o = of(e);
20990
+ function id(e, t, r, a) {
20991
+ const n = nn(e), o = lf(e);
20960
20992
  if (!n || o) return;
20961
20993
  const i = document.getElementById(
20962
20994
  "luckysheet-dataVerification-showHintBox"
@@ -20974,10 +21006,10 @@ function ad(e, t, r, a) {
20974
21006
  if (!b) return;
20975
21007
  const w = Qt(e, b, t, r);
20976
21008
  if (w && ([m, f] = w.row, [y, p] = w.column), !c) return;
20977
- if (c.type === "checkbox" && Cu(e, t, r), c.type === "dropdown" && (l.style.display = "block", l.style.maxWidth = `${p - y}px`, l.style.maxHeight = `${f - m}px`, l.style.left = `${p - 20}px`, l.style.top = `${m + (f - m - 20) / 2 - 2}px`), c.hintShow) {
21009
+ if (c.type === "checkbox" && Nu(e, t, r), c.type === "dropdown" && (l.style.display = "block", l.style.maxWidth = `${p - y}px`, l.style.maxHeight = `${f - m}px`, l.style.left = `${p - 20}px`, l.style.top = `${m + (f - m - 20) / 2 - 2}px`), c.hintShow) {
20978
21010
  let N = "";
20979
21011
  const { lang: x } = e;
20980
- x === "en" ? N = '<span style="color:#f5a623;">Hint: </span>' : x === "zh" || x === "zh-CN" || x === "zh-TW" ? N = '<span style="color:#f5a623;">提示:</span>' : x === "es" ? N = '<span style="color:#f5a623;">Consejos:</span>' : x === "hi" && (N = '<span style="color:#f5a623;">सुझाव: </span>'), N += Nu(e, c), i.innerHTML = N, i.style.display = "block", i.style.left = `${y}px`, i.style.top = `${f}px`;
21012
+ x === "en" ? N = '<span style="color:#f5a623;">Hint: </span>' : x === "zh" || x === "zh-CN" || x === "zh-TW" ? N = '<span style="color:#f5a623;">提示:</span>' : x === "es" ? N = '<span style="color:#f5a623;">Consejos:</span>' : x === "hi" && (N = '<span style="color:#f5a623;">सुझाव: </span>'), N += xu(e, c), i.innerHTML = N, i.style.display = "block", i.style.left = `${y}px`, i.style.top = `${f}px`;
20981
21013
  }
20982
21014
  const T = Ze(t, r, b);
20983
21015
  if (Je(T))
@@ -20988,7 +21020,7 @@ function ad(e, t, r, a) {
20988
21020
  x === "en" ? N = '<span style="color:#f72626;">Failure: </span>' : x === "zh" || x === "zh-CN" || x === "zh-TW" ? N = '<span style="color:#f72626;">失效:</span>' : x === "es" ? N = '<span style="color:#f72626;">Caducidad: </span>' : x === "hi" && (N = '<span style="color:#f72626;">असफलता: </span>'), N = C + N + dl(e, c), i.innerHTML = N, i.style.display = "block", i.style.left = `${g}px`, i.style.top = `${d}px`;
20989
21021
  }
20990
21022
  }
20991
- function id(e, t, r) {
21023
+ function od(e, t, r) {
20992
21024
  var p, y;
20993
21025
  if (!e.luckysheet_select_save) return;
20994
21026
  const a = Re(e);
@@ -21033,12 +21065,12 @@ function id(e, t, r) {
21033
21065
  type: "update"
21034
21066
  }
21035
21067
  ]);
21036
- const m = df(e, [o])[o], d = 22 * (t.split(",").length || (s == null ? void 0 : s.length)) || 22;
21037
- m < d && ff(e, {
21068
+ const m = mf(e, [o])[o], d = 22 * (t.split(",").length || (s == null ? void 0 : s.length)) || 22;
21069
+ m < d && df(e, {
21038
21070
  [String(o)]: d
21039
21071
  }), ml(e, null, void 0);
21040
21072
  }
21041
- function od(e, t, r) {
21073
+ function ld(e, t, r) {
21042
21074
  var p, y;
21043
21075
  const a = Hn(
21044
21076
  e,
@@ -21095,7 +21127,7 @@ function od(e, t, r) {
21095
21127
  }
21096
21128
  return !0;
21097
21129
  }
21098
- function xu(e, t, r, a) {
21130
+ function Au(e, t, r, a) {
21099
21131
  e.formulaCache.execFunctionExist = [];
21100
21132
  for (let n = 0; n < t.length; n += 1)
21101
21133
  for (let o = t[n].row[0]; o <= t[n].row[1]; o += 1)
@@ -21104,9 +21136,9 @@ function xu(e, t, r, a) {
21104
21136
  e.formulaCache.execFunctionExist.reverse(), Wn(e, null, null, null, null, a), e.formulaCache.execFunctionGlobalData = null;
21105
21137
  }
21106
21138
  function ml(e, t, r, a = !0) {
21107
- t == null && (t = Re(e)), !(r == null && (r = e.luckysheet_select_save, r == null)) && a && xu(e, r, e.currentSheetId, t);
21139
+ t == null && (t = Re(e)), !(r == null && (r = e.luckysheet_select_save, r == null)) && a && Au(e, r, e.currentSheetId, t);
21108
21140
  }
21109
- function Au(e, t, r) {
21141
+ function Su(e, t, r) {
21110
21142
  e == null && (e = !0);
21111
21143
  const a = (u, s) => {
21112
21144
  let c = u[t], f = s[t];
@@ -21133,7 +21165,7 @@ function Au(e, t, r) {
21133
21165
  }
21134
21166
  function hl(e, t, r, a, n, o, i, l, u) {
21135
21167
  var y, g;
21136
- const { sortedData: s, rowMap: c } = Au(n, a, r);
21168
+ const { sortedData: s, rowMap: c } = Su(n, a, r);
21137
21169
  for (let b = o; b <= i; b += 1)
21138
21170
  for (let w = l; w <= u; w += 1) {
21139
21171
  const T = s[b - o][w - l];
@@ -21175,7 +21207,7 @@ function hl(e, t, r, a, n, o, i, l, u) {
21175
21207
  b.length > 0 && e.hooks.updateCellYdoc(b);
21176
21208
  }
21177
21209
  }
21178
- function ld(e, t, r = 0) {
21210
+ function sd(e, t, r = 0) {
21179
21211
  var d;
21180
21212
  if (e.allowEdit === !1 || e.luckysheet_select_save == null || e.luckysheet_select_save.length > 1)
21181
21213
  return;
@@ -21215,7 +21247,7 @@ function ld(e, t, r = 0) {
21215
21247
  f || hl(e, n, m, r, t, s, c, l, u);
21216
21248
  }
21217
21249
  }
21218
- function sd(e, t) {
21250
+ function cd(e, t) {
21219
21251
  var f, m, d;
21220
21252
  if (e.allowEdit === !1) return;
21221
21253
  const r = Re(e);
@@ -21258,7 +21290,7 @@ function sd(e, t) {
21258
21290
  u
21259
21291
  );
21260
21292
  }
21261
- function Su(e, t, r, a, n) {
21293
+ function ku(e, t, r, a, n) {
21262
21294
  var s;
21263
21295
  const o = Re(e);
21264
21296
  if (!o) return;
@@ -21294,7 +21326,7 @@ function pl(e, t, r, a, n) {
21294
21326
  if (typeof o != "string" || !(/= *SORT\s*\(/i.test(o) || /= *XLOOKUP\s*\(/i.test(o) || /= *SEQUENCE\s*\(/i.test(o)) || !Array.isArray(i)) return !1;
21295
21327
  const l = Array.isArray(i[0]) ? i : i.map((m) => [m]), u = l.length, s = u && Array.isArray(l[0]) ? l[0].length : 0;
21296
21328
  if (!u || !s) return !1;
21297
- Su(
21329
+ ku(
21298
21330
  e,
21299
21331
  t,
21300
21332
  r,
@@ -21337,7 +21369,7 @@ function pl(e, t, r, a, n) {
21337
21369
  }
21338
21370
  return !0;
21339
21371
  }
21340
- const ku = 8;
21372
+ const Eu = 8;
21341
21373
  function gl(e, t, r, a) {
21342
21374
  var s, c, f, m;
21343
21375
  if (!a) return;
@@ -21356,7 +21388,7 @@ function gl(e, t, r, a) {
21356
21388
  });
21357
21389
  g && (l = Math.max(
21358
21390
  l,
21359
- g.textHeightAll + ku
21391
+ g.textHeightAll + Eu
21360
21392
  ));
21361
21393
  }
21362
21394
  h.isNil(o.rowlen) && (o.rowlen = {}), l > i ? o.rowlen[t] = l : h.isNil((m = o.rowlen) == null ? void 0 : m[t]) || delete o.rowlen[t], e.config = o;
@@ -21368,7 +21400,7 @@ function yt(e, t, r = 10) {
21368
21400
  if (t in a || t === "fs" && Xt(e))
21369
21401
  n || (n = "0");
21370
21402
  else if (["fc", "bg", "bc"].includes(t))
21371
- ["fc", "bc"].includes(t) && (n || (n = "#000000")), (n == null ? void 0 : n.indexOf("rgba")) > -1 && (n = rf(n));
21403
+ ["fc", "bc"].includes(t) && (n || (n = "#000000")), (n == null ? void 0 : n.indexOf("rgba")) > -1 && (n = af(n));
21372
21404
  else if (t.substring(0, 2) === "bs")
21373
21405
  n || (n = "none");
21374
21406
  else if (t === "ht" || t === "vt") {
@@ -21377,14 +21409,14 @@ function yt(e, t, r = 10) {
21377
21409
  } else t === "fs" ? n || (n = r.toString()) : (t === "tb" || t === "tr") && (n || (n = "0"));
21378
21410
  return n;
21379
21411
  }
21380
- function cd(e, t, r, a) {
21412
+ function ud(e, t, r, a) {
21381
21413
  if (!e || !e[t])
21382
21414
  return null;
21383
21415
  const n = e[t][r];
21384
21416
  if (n)
21385
21417
  return yt(n, a);
21386
21418
  }
21387
- function Eu(e) {
21419
+ function qu(e) {
21388
21420
  return e ? e.replace(/\r\n|\r|\n/g, "<br />") : "";
21389
21421
  }
21390
21422
  function ko(e) {
@@ -21405,7 +21437,7 @@ function ko(e) {
21405
21437
  }
21406
21438
  return r <= 0 ? e : `${e}${")".repeat(r)}`;
21407
21439
  }
21408
- function qu(e) {
21440
+ function Mu(e) {
21409
21441
  if (!Array.from(e.childNodes).some(
21410
21442
  (o) => !(o.nodeType === Node.ELEMENT_NODE && o.tagName === "SPAN")
21411
21443
  )) return;
@@ -21485,12 +21517,12 @@ function Ze(e, t, r, a) {
21485
21517
  } else
21486
21518
  o = m.v;
21487
21519
  else m && m.ct && m.ct.t === "d" && (o = m.m);
21488
- m != null && m.ct && pr(m.ct) && (a === "v" || a === "m") && (o = Eu((f = m.ct.s[0]) == null ? void 0 : f.v));
21520
+ m != null && m.ct && pr(m.ct) && (a === "v" || a === "m") && (o = qu((f = m.ct.s[0]) == null ? void 0 : f.v));
21489
21521
  }
21490
21522
  return o === void 0 && (o = null), o;
21491
21523
  }
21492
21524
  function yn(e, t, r, a, n) {
21493
- var d, p, y, g, b, w, T, $, N, x, C, F, M, O, V, K, W, Z, H, ee, B, ne, ie;
21525
+ var d, p, y, g, b, w, T, $, N, x, C, L, q, O, V, K, W, Z, H, ee, B, ne, ie;
21494
21526
  if (e.allowEdit === !1 || e.isFlvReadOnly || (h.isNil(a) && (a = Re(e)), !a)) return;
21495
21527
  let o = a[t][r];
21496
21528
  const i = !!o && !(Je(o.v) && Je(o.m) && Je(o.f));
@@ -21548,7 +21580,7 @@ function yn(e, t, r, a, n) {
21548
21580
  o.m = Q.toString();
21549
21581
  }
21550
21582
  }
21551
- if (Cc(o.f, o.v) && (((C = o.ct) == null ? void 0 : C.fa) === "General" || ((F = o.ct) == null ? void 0 : F.t) === "g" || ((M = o.ct) == null ? void 0 : M.t) === "n" && (!((O = o.ct) != null && O.fa) || ((V = o.ct) == null ? void 0 : V.fa) === "General"))) {
21583
+ if (Cc(o.f, o.v) && (((C = o.ct) == null ? void 0 : C.fa) === "General" || ((L = o.ct) == null ? void 0 : L.t) === "g" || ((q = o.ct) == null ? void 0 : q.t) === "n" && (!((O = o.ct) != null && O.fa) || ((V = o.ct) == null ? void 0 : V.fa) === "General"))) {
21552
21584
  const G = /\bNOW\s*\(/i.test(o.f), Q = Go(G);
21553
21585
  o.ct = { fa: Q, t: "d" };
21554
21586
  const le = Math.round(o.v * 1e9) / 1e9;
@@ -21600,7 +21632,7 @@ function yn(e, t, r, a, n) {
21600
21632
  pe && (o.m = pe[0].toString(), [, o.ct, o.v] = pe);
21601
21633
  }
21602
21634
  else if (Ke(l)) {
21603
- s && !P.includes(",") && (P = cf(String(l), s)), l = parseFloat(l), P.includes("%") && !m.includes("%") && (!i || G) && (l /= 100), o != null && o.ct && (o.ct = { ...o.ct, fa: P, t: "n" });
21635
+ s && !P.includes(",") && (P = uf(String(l), s)), l = parseFloat(l), P.includes("%") && !m.includes("%") && (!i || G) && (l /= 100), o != null && o.ct && (o.ct = { ...o.ct, fa: P, t: "n" });
21604
21636
  let pe = Lt(P, l);
21605
21637
  if (pe === l) {
21606
21638
  const de = tr(
@@ -21651,7 +21683,7 @@ function yn(e, t, r, a, n) {
21651
21683
  }
21652
21684
  h.isNil(o.f) || (u ? (o.ct || (o.ct = { fa: "General", t: "g" }), o.ct.s = u) : o != null && o.ct && h.isPlainObject(n) && Object.prototype.hasOwnProperty.call(n, "ct") && delete o.ct.s), a[t][r] = o, e.luckysheet_selection_range && (e.luckysheet_selection_range = []);
21653
21685
  }
21654
- function ud(e, t, r, a) {
21686
+ function fd(e, t, r, a) {
21655
21687
  let n = Ze(e, t, r, "m");
21656
21688
  if (h.isNil(n) && (n = Ze(e, t, r, a), h.isNil(n))) {
21657
21689
  const o = Ze(e, t, r, "ct");
@@ -21677,20 +21709,20 @@ function Qt(e, t, r, a) {
21677
21709
  let w, T, $, N;
21678
21710
  for (let O = r; O < b.rs + r; O += 1)
21679
21711
  O === 0 ? w = -1 : w = e.visibledatarow[O - 1] - 1, T = e.visibledatarow[O], N === void 0 ? (N = w, $ = T) : $ !== void 0 && ($ += T - w - 1);
21680
- let x, C, F, M;
21712
+ let x, C, L, q;
21681
21713
  for (let O = a; O < b.cs + a; O += 1)
21682
- O === 0 ? x = 0 : x = e.visibledatacolumn[O - 1], C = e.visibledatacolumn[O], M === void 0 ? (M = x, F = C) : F !== void 0 && (F += C - x);
21683
- return h.isNil(N) || h.isNil(M) || h.isNil($) || h.isNil(F) ? (console.warn(
21714
+ O === 0 ? x = 0 : x = e.visibledatacolumn[O - 1], C = e.visibledatacolumn[O], q === void 0 ? (q = x, L = C) : L !== void 0 && (L += C - x);
21715
+ return h.isNil(N) || h.isNil(q) || h.isNil($) || h.isNil(L) ? (console.warn(
21684
21716
  "Main merge info row_pre or col_pre or row or col is null",
21685
21717
  b
21686
21718
  ), null) : {
21687
21719
  row: [N, $, r, r + g - 1],
21688
- column: [M, F, a, a + y - 1]
21720
+ column: [q, L, a, a + y - 1]
21689
21721
  };
21690
21722
  }
21691
21723
  return null;
21692
21724
  }
21693
- function Mu(e, t, r, a, n, o, i, l, u) {
21725
+ function Ru(e, t, r, a, n, o, i, l, u) {
21694
21726
  const s = t.r, c = t.r + t.rs - 1, f = t.c, m = t.c + t.cs - 1;
21695
21727
  let d = !1;
21696
21728
  if (r[0] = Math.min(r[0], r[1]), a[0] = Math.min(a[0], a[1]), r[0] <= f && r[1] >= m && a[0] <= s && a[1] >= c || !(r[1] < f || r[0] > m) && !(a[1] < s || a[0] > c)) {
@@ -21718,7 +21750,7 @@ function Gn(e, t, r, a, n, o, i, l) {
21718
21750
  const d = s[m], p = u[d];
21719
21751
  if (d in f)
21720
21752
  continue;
21721
- const y = Mu(
21753
+ const y = Ru(
21722
21754
  e,
21723
21755
  p,
21724
21756
  t,
@@ -21740,8 +21772,8 @@ function yl(e) {
21740
21772
  function Gt(e) {
21741
21773
  yl(e), e.luckysheetCellUpdate = [], e.formulaRangeHighlight = [], e.functionHint = null, e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, e.formulaCache.rangeSelectionActive = null, e.formulaCache.keyboardRangeSelectionLock = !1, e.formulaCache.formulaEditorOwner = null;
21742
21774
  }
21743
- function fd(e, t, r, a, n, o) {
21744
- var i, l, u, s, c, f, m, d, p, y, g, b, w, T, $, N, x, C, F, M, O, V, K, W, Z;
21775
+ function dd(e, t, r, a, n, o) {
21776
+ var i, l, u, s, c, f, m, d, p, y, g, b, w, T, $, N, x, C, L, q, O, V, K, W, Z;
21745
21777
  try {
21746
21778
  if (e.allowEdit === !1 || e.isFlvReadOnly) return;
21747
21779
  const H = a == null ? void 0 : a.innerText, ee = (H || "").replace(/\u00a0/g, " ").replace(/\u200b/g, "").trimStart(), B = (R) => R.replace(/\u00a0/g, " ").replace(/\u200b/g, ""), ne = (R) => R.replace(/\r\n/g, `
@@ -21776,7 +21808,7 @@ function fd(e, t, r, a, n, o) {
21776
21808
  ((u = (l = (i = e.getRefs) == null ? void 0 : i.call(e)) == null ? void 0 : l.globalCache) == null ? void 0 : u.enteredEditByTyping) === !0 && typeof Q == "string" && Q.replace(/\r\n/g, `
21777
21809
  `).replace(/\r/g, `
21778
21810
  `).trim() === "%" && typeof ((s = v == null ? void 0 : v.ct) == null ? void 0 : s.fa) == "string" && String(v.ct.fa).includes("%") && (Q = "");
21779
- const L = h.cloneDeep(v), oe = Xt(v);
21811
+ const F = h.cloneDeep(v), oe = Xt(v);
21780
21812
  let me = (Q == null ? void 0 : Q.slice(0, 1)) !== "=" && (le == null ? void 0 : le.substring(0, 5)) === "<span", ce = !1;
21781
21813
  if (!me && Q && Q.length > 0) {
21782
21814
  const R = Q.replace(/\r\n/g, "_x000D_").replace(/&#13;&#10;/g, "_x000D_").replace(/\r/g, "_x000D_").replace(/\n/g, "_x000D_").split("_x000D_");
@@ -21788,7 +21820,7 @@ function fd(e, t, r, a, n, o) {
21788
21820
  else if (me) {
21789
21821
  h.isPlainObject(v) || (v = {}), v || (v = {});
21790
21822
  const R = v.fs || 10;
21791
- v.ct || (v.ct = {}, v.ct.fa = "General", v.tb = "1"), v.ct.t = "inlineStr", qu(a), v.ct.s = Ds(
21823
+ v.ct || (v.ct = {}, v.ct.fa = "General", v.tb = "1"), v.ct.t = "inlineStr", Mu(a), v.ct.s = Ds(
21792
21824
  a.querySelectorAll("span"),
21793
21825
  v
21794
21826
  ), delete v.fs, delete v.f, delete v._formulaEditHtml, delete v.v, delete v.m, v.fs = R, ce && (v.ct.s = [
@@ -21806,7 +21838,7 @@ function fd(e, t, r, a, n, o) {
21806
21838
  de && (H ?? "").startsWith("=") && J.length > R.length && (P = J.slice(R.length)), n.f = J;
21807
21839
  }
21808
21840
  const ue = de && P.length === 0;
21809
- if ((L != null && L.f ? L.f !== n : (L == null ? void 0 : L.v) !== n) && Kt(e, t, r), ((f = (c = e.hooks).beforeUpdateCell) == null ? void 0 : f.call(c, t, r, n)) === !1) {
21841
+ if ((F != null && F.f ? F.f !== n : (F == null ? void 0 : F.v) !== n) && Kt(e, t, r), ((f = (c = e.hooks).beforeUpdateCell) == null ? void 0 : f.call(c, t, r, n)) === !1) {
21810
21842
  Gt(e);
21811
21843
  return;
21812
21844
  }
@@ -21878,9 +21910,9 @@ function fd(e, t, r, a, n, o) {
21878
21910
  }), Kt(e, t, r);
21879
21911
  } else {
21880
21912
  Kt(e, t, r), Kr(e, t, r), v = h.cloneDeep(((y = Ce == null ? void 0 : Ce[t]) == null ? void 0 : y[r]) || {}), v.v = n, delete v.f, delete v._formulaEditHtml, delete v.spl;
21881
- const R = (g = L == null ? void 0 : L.m) != null && g.toString().includes(".") ? (w = (b = L == null ? void 0 : L.m) == null ? void 0 : b.toString().split(" ")[0].split(".")[1]) == null ? void 0 : w.length : 0, J = (T = L == null ? void 0 : L.m) == null ? void 0 : T.toString().split(" ")[1];
21882
- typeof v == "object" && (v != null && v.baseValue) && (L != null && L.baseCurrencyPrice) && (v.m = `${// eslint-disable-next-line no-unsafe-optional-chaining
21883
- (parseFloat(n) / L.baseCurrencyPrice).toFixed(R || 2)} ${J}`, v.baseValue = n), Wn(e, t, r, v), Te = !1, v.qp === 1 && `${n}`.substring(0, 1) !== "'" && (v.qp = 0, v.ct && (v.ct.fa = "General", v.ct.t = "n"));
21913
+ const R = (g = F == null ? void 0 : F.m) != null && g.toString().includes(".") ? (w = (b = F == null ? void 0 : F.m) == null ? void 0 : b.toString().split(" ")[0].split(".")[1]) == null ? void 0 : w.length : 0, J = (T = F == null ? void 0 : F.m) == null ? void 0 : T.toString().split(" ")[1];
21914
+ typeof v == "object" && (v != null && v.baseValue) && (F != null && F.baseCurrencyPrice) && (v.m = `${// eslint-disable-next-line no-unsafe-optional-chaining
21915
+ (parseFloat(n) / F.baseCurrencyPrice).toFixed(R || 2)} ${J}`, v.baseValue = n), Wn(e, t, r, v), Te = !1, v.qp === 1 && `${n}`.substring(0, 1) !== "'" && (v.qp = 0, v.ct && (v.ct.fa = "General", v.ct.t = "n"));
21884
21916
  }
21885
21917
  n = v;
21886
21918
  } else if (h.isString(n) && n.slice(0, 1) === "=" && n.length > 1) {
@@ -21933,10 +21965,10 @@ function fd(e, t, r, a, n, o) {
21933
21965
  }
21934
21966
  } else
21935
21967
  Kt(e, t, r), Kr(e, t, r), Wn(e, t, r, n), Te = !1;
21936
- const se = (C = L == null ? void 0 : L.m) != null && C.toString().includes(".") ? (M = (F = L == null ? void 0 : L.m) == null ? void 0 : F.toString().split(" ")[0].split(".")[1]) == null ? void 0 : M.length : 0, Pe = (O = L == null ? void 0 : L.m) == null ? void 0 : O.toString().split(" ")[1];
21968
+ const se = (C = F == null ? void 0 : F.m) != null && C.toString().includes(".") ? (q = (L = F == null ? void 0 : F.m) == null ? void 0 : L.toString().split(" ")[0].split(".")[1]) == null ? void 0 : q.length : 0, Pe = (O = F == null ? void 0 : F.m) == null ? void 0 : O.toString().split(" ")[1];
21937
21969
  typeof n == "object" && n.baseValue && !(n != null && n.m) && (n.m = `${// @ts-expect-error later
21938
21970
  // eslint-disable-next-line no-unsafe-optional-chaining
21939
- (parseFloat(n == null ? void 0 : n.v) / (L == null ? void 0 : L.baseCurrencyPrice)).toFixed(
21971
+ (parseFloat(n == null ? void 0 : n.v) / (F == null ? void 0 : F.baseCurrencyPrice)).toFixed(
21940
21972
  se || 2
21941
21973
  )} ${Pe}`), typeof n == "string" ? n = {
21942
21974
  ct: {
@@ -21954,7 +21986,7 @@ function fd(e, t, r, a, n, o) {
21954
21986
  setTimeout(
21955
21987
  () => {
21956
21988
  var J, be;
21957
- return (be = (J = e.hooks).afterUpdateCell) == null ? void 0 : be.call(J, t, r, L, R);
21989
+ return (be = (J = e.hooks).afterUpdateCell) == null ? void 0 : be.call(J, t, r, F, R);
21958
21990
  }
21959
21991
  );
21960
21992
  }
@@ -21970,11 +22002,11 @@ function fd(e, t, r, a, n, o) {
21970
22002
  } else
21971
22003
  ge && z.hyperlink && delete z.hyperlink[Me], typeof n == "object" && n && "hl" in n && delete n.hl;
21972
22004
  yn(e, t, r, Ce, n), Gt(e);
21973
- const D = e.luckysheetfile[Le(e, e.currentSheetId)].config || {}, I = (L == null ? void 0 : L.tb) === "2" && !h.isNil(L == null ? void 0 : L.v) && (L == null ? void 0 : L.v) !== "" || Xt(L), Y = Ce[t][r], U = (Y == null ? void 0 : Y.tb) === "2" && !h.isNil(Y == null ? void 0 : Y.v) && (Y == null ? void 0 : Y.v) !== "" || Xt(Y);
22005
+ const D = e.luckysheetfile[Le(e, e.currentSheetId)].config || {}, I = (F == null ? void 0 : F.tb) === "2" && !h.isNil(F == null ? void 0 : F.v) && (F == null ? void 0 : F.v) !== "" || Xt(F), Y = Ce[t][r], U = (Y == null ? void 0 : Y.tb) === "2" && !h.isNil(Y == null ? void 0 : Y.v) && (Y == null ? void 0 : Y.v) !== "" || Xt(Y);
21974
22006
  if ((I || U) && !((Z = D.customHeight) != null && Z[t]) && o && gl(e, t, Ce, o), e.hooks.afterUpdateCell) {
21975
22007
  const R = h.cloneDeep(E[t][r]), { afterUpdateCell: J } = e.hooks;
21976
22008
  setTimeout(() => {
21977
- J == null || J(t, r, L, R);
22009
+ J == null || J(t, r, F, R);
21978
22010
  });
21979
22011
  }
21980
22012
  e.formulaCache.execFunctionGlobalData = null;
@@ -21982,15 +22014,15 @@ function fd(e, t, r, a, n, o) {
21982
22014
  console.error(H), Gt(e);
21983
22015
  }
21984
22016
  }
21985
- function Ru(e, t, r, a) {
22017
+ function Iu(e, t, r, a) {
21986
22018
  const n = Re(e, a);
21987
22019
  return h.isNil(t) || h.isNil(r) || !n || !n[t] || !n[t][r] ? null : n[t][r];
21988
22020
  }
21989
22021
  function $a(e, t, r, a, n) {
21990
22022
  let o;
21991
- return h.isNil(n) ? o = Ru(e, t, r, a) : o = n[t][r], h.isNil(o) ? null : o.f;
22023
+ return h.isNil(n) ? o = Iu(e, t, r, a) : o = n[t][r], h.isNil(o) ? null : o.f;
21992
22024
  }
21993
- function Iu(e) {
22025
+ function Du(e) {
21994
22026
  const t = h.cloneDeep(e.luckysheet_select_save), r = [];
21995
22027
  if (!t) return r;
21996
22028
  for (let a = 0; a < t.length; a += 1) {
@@ -22002,8 +22034,8 @@ function Iu(e) {
22002
22034
  }
22003
22035
  return r;
22004
22036
  }
22005
- function Du(e, t) {
22006
- t = t || Iu(e);
22037
+ function Ou(e, t) {
22038
+ t = t || Du(e);
22007
22039
  const r = [];
22008
22040
  return t.forEach((a) => {
22009
22041
  const n = a.row, o = a.column;
@@ -22042,7 +22074,7 @@ function Hn(e, t) {
22042
22074
  vt(t) && r.push(Nn(e, t));
22043
22075
  return r;
22044
22076
  }
22045
- function Ou(e) {
22077
+ function Lu(e) {
22046
22078
  const t = (e ?? "").split(",");
22047
22079
  for (const r of t) {
22048
22080
  const a = String(r).trim();
@@ -22059,11 +22091,11 @@ function Ou(e) {
22059
22091
  }
22060
22092
  return !1;
22061
22093
  }
22062
- function dd(e, t) {
22094
+ function md(e, t) {
22063
22095
  const r = (t ?? "").trim();
22064
- return r === "" ? !0 : Ou(r) ? !1 : Hn(e, r).length > 0;
22096
+ return r === "" ? !0 : Lu(r) ? !1 : Hn(e, r).length > 0;
22065
22097
  }
22066
- function md(e, t, r) {
22098
+ function hd(e, t, r) {
22067
22099
  if (!h.isEmpty(e.luckysheetCellUpdate)) {
22068
22100
  const o = window.getSelection();
22069
22101
  if (!o || o.rangeCount === 0) return !1;
@@ -22095,7 +22127,7 @@ function md(e, t, r) {
22095
22127
  g.textContent && g.textContent.length > 0 && i.intersectsNode(g) && p.push(g);
22096
22128
  }), p.length === 0 && (c && p.push(c), f && f !== c && p.push(f)), p.length === 0 ? !1 : h.every(p, (y) => d(y));
22097
22129
  }
22098
- const a = Du(e), n = Re(e);
22130
+ const a = Ou(e), n = Re(e);
22099
22131
  return a.every(({ r: o, c: i }) => {
22100
22132
  var u;
22101
22133
  const l = (u = n == null ? void 0 : n[o]) == null ? void 0 : u[i];
@@ -22117,7 +22149,7 @@ function Ca(e, t, r, a = !0) {
22117
22149
  function bl(e, t, r, a) {
22118
22150
  var s;
22119
22151
  let n = {};
22120
- const o = [], i = wu(e), l = vu(r, a, i), u = (s = t == null ? void 0 : t[r]) == null ? void 0 : s[a];
22152
+ const o = [], i = vu(e), l = _u(r, a, i), u = (s = t == null ? void 0 : t[r]) == null ? void 0 : s[a];
22121
22153
  if (!u) return {};
22122
22154
  if ("bg" in u) {
22123
22155
  const c = yt(u, "bg");
@@ -22137,7 +22169,7 @@ function bl(e, t, r, a) {
22137
22169
  }
22138
22170
  return n = h.assign(n, Ca(u, o, l)), n;
22139
22171
  }
22140
- function Lu(e) {
22172
+ function Fu(e) {
22141
22173
  const t = /* @__PURE__ */ new Set(), r = {
22142
22174
  color: e.color || "#000000",
22143
22175
  fontFamily: e.fontFamily || "Arial",
@@ -22147,7 +22179,7 @@ function Lu(e) {
22147
22179
  }, a = e.backgroundColor || e.background;
22148
22180
  return a && a !== "transparent" && a !== "rgba(0, 0, 0, 0)" && (r.backgroundColor = a), typeof e.textDecoration == "string" && e.textDecoration.split(/\s+/).filter(Boolean).forEach((n) => t.add(n)), e.borderBottom && (t.add("underline"), r.textDecorationSkipInk = "none"), t.size > 0 && (r.textDecoration = Array.from(t).join(" ")), r;
22149
22181
  }
22150
- function Fu(e, t) {
22182
+ function Bu(e, t) {
22151
22183
  const a = e.replace(/\r\n/g, `
22152
22184
  `).replace(/\r/g, `
22153
22185
  `).split(`
@@ -22168,7 +22200,7 @@ function wl(e, t, r, a) {
22168
22200
  const s = {
22169
22201
  ...a != null && a.useSemanticMarkup ? a.inheritedStyle ?? {} : {},
22170
22202
  ...Ca(u)
22171
- }, c = a != null && a.useSemanticMarkup ? Lu(s) : s;
22203
+ }, c = a != null && a.useSemanticMarkup ? Fu(s) : s;
22172
22204
  c.fontWeight || (c.fontWeight = "400"), c.fontStyle || (c.fontStyle = "normal"), c.fontSize || (c.fontSize = "11pt"), c.fontFamily || (c.fontFamily = "Arial");
22173
22205
  const { link: f } = u, m = u, d = Object.prototype.hasOwnProperty.call(
22174
22206
  m,
@@ -22187,7 +22219,7 @@ function wl(e, t, r, a) {
22187
22219
  )}'${w ? " data-link-plain='1'" : ""}` : "";
22188
22220
  if (a != null && a.isRichTextCopy)
22189
22221
  if (a != null && a.useSemanticMarkup)
22190
- i += Fu(u.v, b);
22222
+ i += Bu(u.v, b);
22191
22223
  else {
22192
22224
  const $ = u.v.replace(/\r\n/g, "<br>").replace(/\n/g, "<br>");
22193
22225
  i += `<span class="luckysheet-input-span" index='${l}' style='${b}'${T}>${$}</span>`;
@@ -22200,7 +22232,7 @@ function wl(e, t, r, a) {
22200
22232
  }
22201
22233
  return "";
22202
22234
  }
22203
- function hd(e, t, r) {
22235
+ function pd(e, t, r) {
22204
22236
  let a = "";
22205
22237
  if (e.toString().indexOf("pt") > -1) {
22206
22238
  const o = parseFloat(e);
@@ -22212,7 +22244,7 @@ function hd(e, t, r) {
22212
22244
  let n = 0;
22213
22245
  return t = t.toLowerCase(), t === "double" ? n = 2 : t === "dotted" ? a === "Medium" || a === "Thick" ? n = 3 : n = 10 : t === "dashed" ? a === "Medium" || a === "Thick" ? n = 4 : n = 9 : t === "solid" && (a === "Medium" ? n = 8 : a === "Thick" ? n = 13 : n = 1), [n, r];
22214
22246
  }
22215
- function Bu(e, t, r) {
22247
+ function Pu(e, t, r) {
22216
22248
  if (t == null && e.luckysheet_select_save && ([t] = e.luckysheet_select_save), !t) return [];
22217
22249
  if (t.row == null || t.row.length === 0)
22218
22250
  return [];
@@ -22229,12 +22261,12 @@ function Bu(e, t, r) {
22229
22261
  }
22230
22262
  return o;
22231
22263
  }
22232
- function pd(e, t, r) {
22264
+ function gd(e, t, r) {
22233
22265
  var o;
22234
22266
  const a = Re(e), n = (o = a == null ? void 0 : a[t]) == null ? void 0 : o[r];
22235
22267
  (n == null ? void 0 : n.f) != null && String(n.f).trim() !== "" && Yc(e), e.luckysheetCellUpdate = [t, r];
22236
22268
  }
22237
- function Pu(e, t) {
22269
+ function Hu(e, t) {
22238
22270
  if (!t || !t.row || t.row.length === 0) return [];
22239
22271
  const r = [], a = Re(e);
22240
22272
  if (!a) return [];
@@ -22276,7 +22308,7 @@ function Na(e) {
22276
22308
  ...n != null && typeof n == "object" ? { ct: n } : {}
22277
22309
  } : null;
22278
22310
  }
22279
- function gd(e) {
22311
+ function yd(e) {
22280
22312
  var i;
22281
22313
  const t = Le(e, e.currentSheetId);
22282
22314
  if (t == null) return;
@@ -22305,7 +22337,7 @@ function gd(e) {
22305
22337
  }
22306
22338
  }), (i = e == null ? void 0 : e.hooks) != null && i.updateCellYdoc && r.size > 0 && e.hooks.updateCellYdoc(Array.from(r.values()));
22307
22339
  }
22308
- function yd(e) {
22340
+ function bd(e) {
22309
22341
  var l, u;
22310
22342
  const t = Le(e, e.currentSheetId);
22311
22343
  if (t == null) return;
@@ -22334,7 +22366,7 @@ function yd(e) {
22334
22366
  }
22335
22367
  }), (u = e == null ? void 0 : e.hooks) != null && u.updateCellYdoc && r.size > 0 && e.hooks.updateCellYdoc(Array.from(r.values()));
22336
22368
  }
22337
- function bd(e) {
22369
+ function wd(e) {
22338
22370
  var l;
22339
22371
  const t = Le(e, e.currentSheetId);
22340
22372
  if (t == null) return;
@@ -22372,16 +22404,16 @@ function vl(e) {
22372
22404
  return t.tagName === "BR" ? `
22373
22405
  ` : Array.from(t.childNodes).map((r) => vl(r)).join("");
22374
22406
  }
22375
- function Hu(e) {
22407
+ function zu(e) {
22376
22408
  return e.replace(/\r\n/g, `
22377
22409
  `).replace(/<br\s*\/?>/gi, `
22378
22410
  `);
22379
22411
  }
22380
- function zu(e) {
22381
- const t = Hu(e);
22412
+ function Uu(e) {
22413
+ const t = zu(e);
22382
22414
  return /["\n\t]/.test(t) ? `"${t.replace(/"/g, '""')}"` : t;
22383
22415
  }
22384
- function Uu(e) {
22416
+ function Wu(e) {
22385
22417
  const t = [];
22386
22418
  Array.from(e.rows).forEach((a, n) => {
22387
22419
  t[n] ?? (t[n] = []);
@@ -22401,33 +22433,33 @@ function Uu(e) {
22401
22433
  });
22402
22434
  const r = t.reduce((a, n) => Math.max(a, n.length), 0);
22403
22435
  return t.map(
22404
- (a) => Array.from({ length: r }, (n, o) => a[o] ?? "").map((n) => zu(n)).join(" ")
22436
+ (a) => Array.from({ length: r }, (n, o) => a[o] ?? "").map((n) => Uu(n)).join(" ")
22405
22437
  ).join(`
22406
22438
  `);
22407
22439
  }
22408
- function Wu(e) {
22440
+ function Vu(e) {
22409
22441
  return e.replace(/<br\s*\/?>/gi, `
22410
22442
  `).replace(/<[^>]*>/g, "");
22411
22443
  }
22412
- function Vu(e) {
22413
- const t = Wu(e);
22444
+ function Gu(e) {
22445
+ const t = Vu(e);
22414
22446
  if (typeof document > "u" || !/<table[\s>]/i.test(e))
22415
22447
  return t;
22416
22448
  const r = document.createElement("div");
22417
22449
  r.innerHTML = e;
22418
22450
  const a = r.querySelector("table");
22419
- return !a || a.rows.length === 0 ? t : Uu(a);
22451
+ return !a || a.rows.length === 0 ? t : Wu(a);
22420
22452
  }
22421
- function Gu(e, t = !1) {
22453
+ function Yu(e, t = !1) {
22422
22454
  return !t && e.includes(`
22423
22455
  `) && !e.includes(" ") ? `"${e.replace(/"/g, '""')}"` : e;
22424
22456
  }
22425
- class Yu {
22457
+ class ju {
22426
22458
  static writeHtml(t) {
22427
22459
  var r, a;
22428
22460
  if (typeof ((r = navigator == null ? void 0 : navigator.clipboard) == null ? void 0 : r.write) == "function") {
22429
- const n = t, o = new Blob([n], { type: "text/html" }), i = /<table[\s>]/i.test(t), l = Gu(
22430
- Vu(t),
22461
+ const n = t, o = new Blob([n], { type: "text/html" }), i = /<table[\s>]/i.test(t), l = Yu(
22462
+ Gu(t),
22431
22463
  i
22432
22464
  ), u = new Blob([l], { type: "text/plain" });
22433
22465
  navigator.clipboard.write([
@@ -22451,7 +22483,7 @@ class Yu {
22451
22483
  }
22452
22484
  }
22453
22485
  }
22454
- function wd(e, t, r, a, n) {
22486
+ function vd(e, t, r, a, n) {
22455
22487
  var K, W, Z, H, ee;
22456
22488
  const o = Re(e);
22457
22489
  if (!o) return;
@@ -22472,8 +22504,8 @@ function wd(e, t, r, a, n) {
22472
22504
  if (((Z = e.hoverErrorBox) == null ? void 0 : Z.row_column) === b) return;
22473
22505
  let N = f - 1 === -1 ? 0 : e.visibledatarow[f - 1], x = e.visibledatacolumn[m];
22474
22506
  d && ([N] = d.row, [, x] = d.column);
22475
- const C = x, F = N, M = e.zoomRatio, O = T.left == null ? C + 8 * M : T.left * M;
22476
- let V = T.top == null ? F - 2 * M : T.top * M;
22507
+ const C = x, L = N, q = e.zoomRatio, O = T.left == null ? C + 8 * q : T.left * q;
22508
+ let V = T.top == null ? L - 2 * q : T.top * q;
22477
22509
  V < 0 && (V = 2), e.hoverErrorBox = {
22478
22510
  row_column: b,
22479
22511
  left: O,
@@ -22491,7 +22523,7 @@ function Kt(e, t, r) {
22491
22523
  const a = Re(e);
22492
22524
  (n = a == null ? void 0 : a[t]) != null && n[r] && delete a[t][r].error;
22493
22525
  }
22494
- const vd = {
22526
+ const _d = {
22495
22527
  isPasteAction: !1,
22496
22528
  isPasteValuesOnly: !1
22497
22529
  };
@@ -22519,7 +22551,7 @@ function zn(e, t, r) {
22519
22551
  }
22520
22552
  }
22521
22553
  }
22522
- function ju(e, t, r, a, n) {
22554
+ function Xu(e, t, r, a, n) {
22523
22555
  const o = e.visibledatarow[r], i = t - 1 === -1 ? 0 : e.visibledatarow[t - 1], l = e.visibledatacolumn[n], u = a - 1 === -1 ? 0 : e.visibledatacolumn[a - 1];
22524
22556
  return h.isNumber(o) && h.isNumber(i) && h.isNumber(l) && h.isNumber(u) ? {
22525
22557
  left: u,
@@ -22528,7 +22560,7 @@ function ju(e, t, r, a, n) {
22528
22560
  height: o - i - 1
22529
22561
  } : null;
22530
22562
  }
22531
- function Xu(e, t) {
22563
+ function Zu(e, t) {
22532
22564
  var u;
22533
22565
  const r = Math.min(t.row[0], t.row[1]), a = Math.max(t.row[0], t.row[1]), n = Math.min(t.column[0], t.column[1]), o = Math.max(t.column[0], t.column[1]);
22534
22566
  if (r === a && n === o)
@@ -22549,7 +22581,7 @@ function qo(e, t) {
22549
22581
  e.primaryCellActive = null;
22550
22582
  return;
22551
22583
  }
22552
- if (Xu(e, a)) {
22584
+ if (Zu(e, a)) {
22553
22585
  e.primaryCellActive = null;
22554
22586
  return;
22555
22587
  }
@@ -22560,7 +22592,7 @@ function qo(e, t) {
22560
22592
  e.primaryCellActive = { r: o, c: i };
22561
22593
  }
22562
22594
  }
22563
- function _d(e, t = !0) {
22595
+ function Td(e, t = !0) {
22564
22596
  const r = e.luckysheet_select_save;
22565
22597
  if (!(r != null && r.length)) return !1;
22566
22598
  const a = r[r.length - 1], n = a.row[0], o = a.row[1], i = a.column[0], l = a.column[1];
@@ -22572,10 +22604,10 @@ function _d(e, t = !0) {
22572
22604
  let g, b;
22573
22605
  return t ? d < s ? (g = d + 1, b = p) : p < f ? (g = u, b = p + 1) : (g = u, b = c) : d > u ? (g = d - 1, b = p) : p > c ? (g = s, b = p - 1) : (g = s, b = f), a.row_focus = g, a.column_focus = b, Jt(e, r), !0;
22574
22606
  }
22575
- function Td(e, t, r) {
22607
+ function $d(e, t, r) {
22576
22608
  e.primaryCellActive = { r: t, c: r };
22577
22609
  }
22578
- function $d(e, t, r) {
22610
+ function Cd(e, t, r) {
22579
22611
  const a = e.luckysheet_select_save, n = a == null ? void 0 : a[a.length - 1];
22580
22612
  if (!(n != null && n.row) || n.row.length < 2 || !n.column || n.column.length < 2) {
22581
22613
  e.luckysheet_select_save = [
@@ -22616,13 +22648,13 @@ function Jt(e, t) {
22616
22648
  }
22617
22649
  return qo(e, t), t;
22618
22650
  }
22619
- function Cd(e, t, r) {
22651
+ function Nd(e, t, r) {
22620
22652
  const a = e || {};
22621
22653
  for (let n = t; n <= r; n += 1)
22622
22654
  n in a || (a[n] = 0);
22623
22655
  return a;
22624
22656
  }
22625
- function Nd(e) {
22657
+ function xd(e) {
22626
22658
  const t = Object.keys(e).map(Number);
22627
22659
  t.sort((n, o) => n - o);
22628
22660
  let r, a = [];
@@ -22634,7 +22666,7 @@ function Nd(e) {
22634
22666
  r = [], r.push([t[0]]);
22635
22667
  return r;
22636
22668
  }
22637
- function Zu(e, t) {
22669
+ function Ku(e, t) {
22638
22670
  return e.row[0] === t.row[0] && e.row[1] === t.row[1] && e.column[0] === t.column[0] && e.column[1] === t.column[1];
22639
22671
  }
22640
22672
  function Mo(e) {
@@ -22642,12 +22674,12 @@ function Mo(e) {
22642
22674
  const t = h.cloneDeep(e);
22643
22675
  return delete t.cellrange, JSON.stringify(t);
22644
22676
  }
22645
- function xd(e, t) {
22677
+ function Ad(e, t) {
22646
22678
  var ee;
22647
22679
  const r = e.config;
22648
22680
  if (r.merge == null && (r.merge = {}), !t) return;
22649
22681
  const a = t.HasMC, n = t.dataSheetId, o = t.copyRange[0].row[0], i = t.copyRange[0].row[1], l = t.copyRange[0].column[0], u = t.copyRange[0].column[1], s = h.cloneDeep(
22650
- Bu(
22682
+ Pu(
22651
22683
  e,
22652
22684
  { row: [o, i], column: [l, u] },
22653
22685
  n
@@ -22674,10 +22706,10 @@ function xd(e, t) {
22674
22706
  }
22675
22707
  const b = Math.ceil((m - f + 1) / y), w = Math.ceil((p - d + 1) / g), T = Re(e);
22676
22708
  if (T == null) return;
22677
- const $ = [], N = T[0].length, x = T.length, C = _l(e, n), F = h.cloneDeep(
22709
+ const $ = [], N = T[0].length, x = T.length, C = _l(e, n), L = h.cloneDeep(
22678
22710
  e.luckysheetfile[Le(e, n)].dataVerification
22679
22711
  ) || {};
22680
- let M = null, O = 0, V = 0, K = 0, W = 0;
22712
+ let q = null, O = 0, V = 0, K = 0, W = 0;
22681
22713
  for (let B = 1; B <= b; B += 1)
22682
22714
  for (let ne = 1; ne <= w; ne += 1) {
22683
22715
  O = f + (B - 1) * y, V = d + (ne - 1) * g, W = f + B * y > x ? x : f + B * y, W > m + 1 && (W = m + 1), K = d + ne * g > N ? N : d + ne * g, K > p + 1 && (K = p + 1);
@@ -22714,9 +22746,9 @@ function xd(e, t) {
22714
22746
  };
22715
22747
  r.borderInfo == null && (r.borderInfo = []), r.borderInfo.push(he);
22716
22748
  }
22717
- F[`${o + P - O}_${l + Q - V}`] && (M == null && (M = h.cloneDeep(
22749
+ L[`${o + P - O}_${l + Q - V}`] && (q == null && (q = h.cloneDeep(
22718
22750
  e.luckysheetfile[Le(e, e.currentSheetId)].dataVerification
22719
- )), M[`${P}_${Q}`] = F[`${o + P - O}_${l + Q - V}`]), oo(G[Q]) && G[Q].mc && (G[Q].mc.rs && delete r.merge[`${G[Q].mc.r}_${G[Q].mc.c}`], delete G[Q].mc);
22751
+ )), q[`${P}_${Q}`] = L[`${o + P - O}_${l + Q - V}`]), oo(G[Q]) && G[Q].mc && (G[Q].mc.rs && delete r.merge[`${G[Q].mc.r}_${G[Q].mc.c}`], delete G[Q].mc);
22720
22752
  let le = null;
22721
22753
  if (s[P - O] != null && s[P - O][Q - V] != null && (le = s[P - O][Q - V]), oo(G[Q]) ? G[Q].ct && G[Q].ct.t === "inlineStr" && le ? delete le.ct : [
22722
22754
  "bg",
@@ -22758,7 +22790,7 @@ function xd(e, t) {
22758
22790
  }
22759
22791
  $.length > 0 && ((ee = e == null ? void 0 : e.hooks) != null && ee.updateCellYdoc) && e.hooks.updateCellYdoc($);
22760
22792
  const Z = e.luckysheetfile[Le(e, e.currentSheetId)];
22761
- Z.config = r, M != null && (Z.dataVerification = M);
22793
+ Z.config = r, q != null && (Z.dataVerification = q);
22762
22794
  const H = Le(e, n);
22763
22795
  if (H != null) {
22764
22796
  const B = h.cloneDeep(
@@ -22770,7 +22802,7 @@ function xd(e, t) {
22770
22802
  const Q = B[G].cellrange;
22771
22803
  let le = [];
22772
22804
  for (let he = 0; he < Q.length; he += 1) {
22773
- const pe = _u(
22805
+ const pe = Tu(
22774
22806
  Q[he],
22775
22807
  { row: [o, i], column: [l, u] },
22776
22808
  { row: [f, m], column: [d, p] },
@@ -22785,7 +22817,7 @@ function xd(e, t) {
22785
22817
  if (de >= 0) {
22786
22818
  const E = h.cloneDeep(P[de]);
22787
22819
  Array.isArray(E.cellrange) || (E.cellrange = []), E.cellrange.some(
22788
- (_) => Zu(_, he)
22820
+ (_) => Ku(_, he)
22789
22821
  ) || E.cellrange.push({ ...he }), P[de] = E;
22790
22822
  } else {
22791
22823
  const E = h.cloneDeep(B[G]);
@@ -22797,7 +22829,7 @@ function xd(e, t) {
22797
22829
  }
22798
22830
  }
22799
22831
  }
22800
- function Ad(e, t) {
22832
+ function Sd(e, t) {
22801
22833
  e == null && (e = t.luckysheet_selection_range), e = JSON.parse(JSON.stringify(e));
22802
22834
  }
22803
22835
  function St(e, t, r, a) {
@@ -22908,7 +22940,7 @@ function zt(e, t, r, a) {
22908
22940
  l = o;
22909
22941
  return [i, l];
22910
22942
  }
22911
- function Sd(e, t, r, a) {
22943
+ function kd(e, t, r, a) {
22912
22944
  var y;
22913
22945
  const n = Re(e);
22914
22946
  if (!n) return;
@@ -22925,25 +22957,25 @@ function Sd(e, t, r, a) {
22925
22957
  h.isNil(g.row_focus) ? [x] = g.row : x = g.row_focus;
22926
22958
  let C;
22927
22959
  h.isNil(g.column_focus) ? [C] = g.column : C = g.column_focus;
22928
- const F = Qt(e, n, x, C);
22929
- if (F) {
22930
- const K = F.row[2], W = F.row[3], Z = F.column[2], H = F.column[3];
22960
+ const L = Qt(e, n, x, C);
22961
+ if (L) {
22962
+ const K = L.row[2], W = L.row[3], Z = L.column[2], H = L.column[3];
22931
22963
  r > 0 ? t === "down" ? (x = W, C = Z) : t === "right" && (x = K, C = H) : (x = K, C = Z);
22932
22964
  }
22933
22965
  if (h.isNil(x) || h.isNil(C)) {
22934
22966
  console.error("moveHighlightCell: curR or curC is nil");
22935
22967
  return;
22936
22968
  }
22937
- let M = h.isNil(g.moveXY) ? x : g.moveXY.x, O = h.isNil(g.moveXY) ? C : g.moveXY.y;
22938
- t === "down" ? (x += r, M = x) : t === "right" && (C += r, O = C), x >= o && (x = o - 1, M = x), x < 0 && (x = 0, M = x), C >= i && (C = i - 1, O = C), C < 0 && (C = 0, O = C);
22969
+ let q = h.isNil(g.moveXY) ? x : g.moveXY.x, O = h.isNil(g.moveXY) ? C : g.moveXY.y;
22970
+ t === "down" ? (x += r, q = x) : t === "right" && (C += r, O = C), x >= o && (x = o - 1, q = x), x < 0 && (x = 0, q = x), C >= i && (C = i - 1, O = C), C < 0 && (C = 0, O = C);
22939
22971
  const V = Qt(e, n, x, C);
22940
- if (V ? ([u, l, s, c] = V.row, [m, f, d, p] = V.column) : (l = e.visibledatarow[M], u = M - 1 === -1 ? 0 : e.visibledatarow[M - 1], f = e.visibledatacolumn[O], m = O - 1 === -1 ? 0 : e.visibledatacolumn[O - 1], s = x, c = x, d = C, p = C), h.isNil(s) || h.isNil(c) || h.isNil(d) || h.isNil(p)) {
22972
+ if (V ? ([u, l, s, c] = V.row, [m, f, d, p] = V.column) : (l = e.visibledatarow[q], u = q - 1 === -1 ? 0 : e.visibledatarow[q - 1], f = e.visibledatacolumn[O], m = O - 1 === -1 ? 0 : e.visibledatacolumn[O - 1], s = x, c = x, d = C, p = C), h.isNil(s) || h.isNil(c) || h.isNil(d) || h.isNil(p)) {
22941
22973
  console.error(
22942
22974
  "moveHighlightCell: row_index or row_index_ed or col_index or col_index_ed is nil"
22943
22975
  );
22944
22976
  return;
22945
22977
  }
22946
- N && r === 0 ? (g.row_focus = s, g.column_focus = d, g.moveXY = { x: M, y: O }) : (g.row = [s, c], g.column = [d, p], g.row_focus = s, g.column_focus = d, g.moveXY = { x: M, y: O }), Jt(e, e.luckysheet_select_save), zn(e, s, d);
22978
+ N && r === 0 ? (g.row_focus = s, g.column_focus = d, g.moveXY = { x: q, y: O }) : (g.row = [s, c], g.column = [d, p], g.row_focus = s, g.column_focus = d, g.moveXY = { x: q, y: O }), Jt(e, e.luckysheet_select_save), zn(e, s, d);
22947
22979
  } else if (a === "rangeOfFormula") {
22948
22980
  const g = e.formulaCache.func_selectedrange;
22949
22981
  if (!g) return;
@@ -22953,8 +22985,8 @@ function Sd(e, t, r, a) {
22953
22985
  h.isNil(g.column_focus) ? [w] = g.column : w = g.column_focus;
22954
22986
  const T = Qt(e, n, b, w);
22955
22987
  if (T) {
22956
- const C = T.row[2], F = T.row[3], M = T.column[2], O = T.column[3];
22957
- r > 0 ? t === "down" ? (b = F, w = M) : t === "right" && (b = C, w = O) : (b = C, w = M);
22988
+ const C = T.row[2], L = T.row[3], q = T.column[2], O = T.column[3];
22989
+ r > 0 ? t === "down" ? (b = L, w = q) : t === "right" && (b = C, w = O) : (b = C, w = q);
22958
22990
  }
22959
22991
  if (h.isNil(b) || h.isNil(w)) {
22960
22992
  console.error("moveHighlightCell: curR or curC is nil");
@@ -22986,7 +23018,7 @@ function Sd(e, t, r, a) {
22986
23018
  }, zn(e, s, d);
22987
23019
  }
22988
23020
  }
22989
- function kd(e, t, r, a) {
23021
+ function Ed(e, t, r, a) {
22990
23022
  let n, o, i, l;
22991
23023
  const u = Re(e);
22992
23024
  if (!h.isNil(u) && !h.isNil(e.luckysheet_select_save)) {
@@ -23001,14 +23033,14 @@ function kd(e, t, r, a) {
23001
23033
  const N = Ht(e, p, m, d), x = N[0], C = N[1];
23002
23034
  if (!h.isNil(x) && x > c && C === f) {
23003
23035
  if (r > 0 && St(e, c, m, d)) {
23004
- const F = Ht(e, c, m, d)[1];
23005
- h.isNil(F) || (c = F);
23036
+ const L = Ht(e, c, m, d)[1];
23037
+ h.isNil(L) || (c = L);
23006
23038
  }
23007
23039
  c += r;
23008
23040
  } else if (!h.isNil(C) && C < f && x === c) {
23009
23041
  if (r < 0 && St(e, f, m, d)) {
23010
- const F = Ht(e, c, m, d)[0];
23011
- h.isNil(F) || (f = F);
23042
+ const L = Ht(e, c, m, d)[0];
23043
+ h.isNil(L) || (f = L);
23012
23044
  }
23013
23045
  f += r;
23014
23046
  } else
@@ -23032,14 +23064,14 @@ function kd(e, t, r, a) {
23032
23064
  const N = zt(e, y, c, f), x = N[0], C = N[1];
23033
23065
  if (!h.isNil(x) && x > m && C === d) {
23034
23066
  if (r > 0 && kt(e, m, c, f)) {
23035
- const F = zt(e, m, c, f)[1];
23036
- h.isNil(F) || (m = F), m += r;
23067
+ const L = zt(e, m, c, f)[1];
23068
+ h.isNil(L) || (m = L), m += r;
23037
23069
  }
23038
23070
  m += r;
23039
23071
  } else if (!h.isNil(C) && C < d && x === m) {
23040
23072
  if (r < 0 && kt(e, d, c, f)) {
23041
- const F = zt(e, d, c, f)[0];
23042
- h.isNil(F) || (d = F);
23073
+ const L = zt(e, d, c, f)[0];
23074
+ h.isNil(L) || (d = L);
23043
23075
  }
23044
23076
  d += r;
23045
23077
  } else
@@ -23085,7 +23117,7 @@ function kd(e, t, r, a) {
23085
23117
  const p = s.row_focus, y = s.column_focus, g = u.length, b = u[0].length;
23086
23118
  if (t === "down") {
23087
23119
  if (!h.isNil(p) && St(e, p, m, d)) {
23088
- const M = Ht(e, p, m, d), O = M[0], V = M[1];
23120
+ const q = Ht(e, p, m, d), O = q[0], V = q[1];
23089
23121
  if (!h.isNil(O) && O > c && V === f) {
23090
23122
  if (r > 0 && St(e, c, m, d)) {
23091
23123
  const K = Ht(e, c, m, d)[1];
@@ -23101,21 +23133,21 @@ function kd(e, t, r, a) {
23101
23133
  r > 0 ? f += r : c += r;
23102
23134
  } else if (!h.isNil(p) && p > c && p === f) {
23103
23135
  if (r > 0 && St(e, c, m, d)) {
23104
- const M = Ht(e, c, m, d)[1];
23105
- h.isNil(M) || (c = M);
23136
+ const q = Ht(e, c, m, d)[1];
23137
+ h.isNil(q) || (c = q);
23106
23138
  }
23107
23139
  c += r;
23108
23140
  } else if (!h.isNil(p) && p < f && p === c) {
23109
23141
  if (r < 0 && St(e, f, m, d)) {
23110
- const M = Ht(e, f, m, d)[0];
23111
- h.isNil(M) || (f = M);
23142
+ const q = Ht(e, f, m, d)[0];
23143
+ h.isNil(q) || (f = q);
23112
23144
  }
23113
23145
  f += r;
23114
23146
  } else p === c && p === f && (r > 0 ? f += r : c += r);
23115
23147
  f >= g && (f = g - 1), f < 0 && (f = 0), c >= g && (c = g - 1), c < 0 && (c = 0);
23116
23148
  } else {
23117
23149
  if (!h.isNil(y) && kt(e, y, c, f)) {
23118
- const M = zt(e, y, c, f), O = M[0], V = M[1];
23150
+ const q = zt(e, y, c, f), O = q[0], V = q[1];
23119
23151
  if (!h.isNil(O) && O > m && V === d) {
23120
23152
  if (r > 0 && kt(e, m, c, f)) {
23121
23153
  const K = zt(e, m, c, f)[1];
@@ -23132,14 +23164,14 @@ function kd(e, t, r, a) {
23132
23164
  r > 0 ? d += r : m += r;
23133
23165
  } else if (!h.isNil(y) && y > m && y === d) {
23134
23166
  if (r > 0 && kt(e, m, c, f)) {
23135
- const M = zt(e, m, c, f)[1];
23136
- h.isNil(M) || (m = M);
23167
+ const q = zt(e, m, c, f)[1];
23168
+ h.isNil(q) || (m = q);
23137
23169
  }
23138
23170
  m += r;
23139
23171
  } else if (!h.isNil(y) && y < d && y === m) {
23140
23172
  if (r < 0 && kt(e, d, c, f)) {
23141
- const M = zt(e, d, c, f)[0];
23142
- h.isNil(M) || (d = M);
23173
+ const q = zt(e, d, c, f)[0];
23174
+ h.isNil(q) || (d = q);
23143
23175
  }
23144
23176
  d += r;
23145
23177
  } else y === m && y === d && (r > 0 ? d += r : m += r);
@@ -23148,7 +23180,7 @@ function kd(e, t, r, a) {
23148
23180
  let w = [c, f], T = [m, d];
23149
23181
  n = e.visibledatarow[f], o = c - 1 === -1 ? 0 : e.visibledatarow[c - 1], i = e.visibledatacolumn[d], l = m - 1 === -1 ? 0 : e.visibledatacolumn[m - 1];
23150
23182
  let $ = o, N = n - o - 1, x = l, C = i - l - 1;
23151
- const F = Gn(
23183
+ const L = Gn(
23152
23184
  e,
23153
23185
  T,
23154
23186
  w,
@@ -23158,7 +23190,7 @@ function kd(e, t, r, a) {
23158
23190
  x,
23159
23191
  C
23160
23192
  );
23161
- h.isNil(F) || ([T, w, $, N, x, C] = F), e.formulaCache.func_selectedrange = {
23193
+ h.isNil(L) || ([T, w, $, N, x, C] = L), e.formulaCache.func_selectedrange = {
23162
23194
  left: x,
23163
23195
  width: C,
23164
23196
  top: $,
@@ -23194,14 +23226,14 @@ function Nt(e, t) {
23194
23226
  13: "Thick"
23195
23227
  }[e.toString()], e.indexOf("Medium") > -1 ? r += "1pt " : e === "Thick" ? r += "1.5pt " : r += "0.5pt ", e === "Hair" ? r += "double " : e.indexOf("DashDotDot") > -1 ? r += "dotted " : e.indexOf("DashDot") > -1 ? r += "dashed " : e.indexOf("Dotted") > -1 ? r += "dotted " : e.indexOf("Dashed") > -1 ? r += "dashed " : r += "solid ", `${r + t};`;
23196
23228
  }
23197
- function Ku(e, t, r) {
23229
+ function Qu(e, t, r) {
23198
23230
  var p, y, g, b, w, T, $, N;
23199
23231
  const a = () => t !== e.currentSheetId ? !1 : !h.isNil(e.luckysheet_filter_save) && !h.isEmpty(e.filter), o = (() => {
23200
23232
  const x = /* @__PURE__ */ new Set();
23201
23233
  return a() && Object.values(e.filter || {}).forEach((C) => {
23202
- const F = C == null ? void 0 : C.rowhidden;
23203
- F && Object.keys(F).forEach((M) => {
23204
- const O = Number(M);
23234
+ const L = C == null ? void 0 : C.rowhidden;
23235
+ L && Object.keys(L).forEach((q) => {
23236
+ const O = Number(q);
23205
23237
  Number.isNaN(O) || x.add(O);
23206
23238
  });
23207
23239
  }), x;
@@ -23209,8 +23241,8 @@ function Ku(e, t, r) {
23209
23241
  if (i == null) return "";
23210
23242
  const l = e.luckysheetfile[i], u = [], s = [];
23211
23243
  for (let x = 0; x < ((r == null ? void 0 : r.length) ?? 0); x += 1) {
23212
- const C = r[x], F = C.row[0], M = C.row[1], O = C.column[0], V = C.column[1];
23213
- for (let K = F; K <= M; K += 1)
23244
+ const C = r[x], L = C.row[0], q = C.row[1], O = C.column[0], V = C.column[1];
23245
+ for (let K = L; K <= q; K += 1)
23214
23246
  if (!o.has(K)) {
23215
23247
  u.includes(K) || u.push(K);
23216
23248
  for (let W = O; W <= V; W += 1)
@@ -23224,10 +23256,10 @@ function Ku(e, t, r) {
23224
23256
  if (!m) return null;
23225
23257
  let d = "";
23226
23258
  for (let x = 0; x < u.length; x += 1) {
23227
- const C = u[x], F = ((g = (y = l.config) == null ? void 0 : y.rowlen) == null ? void 0 : g[C.toString()]) ?? l.defaultRowHeight;
23228
- f += `<tr height=${F}px >`;
23229
- for (let M = 0; M < s.length; M += 1) {
23230
- const O = s[M];
23259
+ const C = u[x], L = ((g = (y = l.config) == null ? void 0 : y.rowlen) == null ? void 0 : g[C.toString()]) ?? l.defaultRowHeight;
23260
+ f += `<tr height=${L}px >`;
23261
+ for (let q = 0; q < s.length; q += 1) {
23262
+ const O = s[q];
23231
23263
  let V = '<td ${span} style="${style}" data-fortune-cell="${cellData}">';
23232
23264
  const K = (b = m[C]) == null ? void 0 : b[O];
23233
23265
  if (K != null) {
@@ -23378,7 +23410,7 @@ function Ku(e, t, r) {
23378
23410
  }
23379
23411
  return `<table data-type="fortune-copy-action-table">${d}${f}</table>`;
23380
23412
  }
23381
- function Ed(e) {
23413
+ function qd(e) {
23382
23414
  var u, s, c, f;
23383
23415
  const t = Re(e);
23384
23416
  e.luckysheet_selection_range = [];
@@ -23420,10 +23452,10 @@ function Ed(e) {
23420
23452
  backgroundColor: "transparent"
23421
23453
  }, g = (f = t[m]) == null ? void 0 : f[d], b = g != null && Xt(g), w = bl(e, t, m, d);
23422
23454
  if (w.borderBottom) {
23423
- const F = w.textDecoration, M = new Set(
23424
- F ? F.split(/\s+/).filter(Boolean) : []
23455
+ const L = w.textDecoration, q = new Set(
23456
+ L ? L.split(/\s+/).filter(Boolean) : []
23425
23457
  );
23426
- M.add("underline"), w.textDecoration = Array.from(M).join(" "), w.textDecorationSkipInk = "none", delete w.borderBottom;
23458
+ q.add("underline"), w.textDecoration = Array.from(q).join(" "), w.textDecorationSkipInk = "none", delete w.borderBottom;
23427
23459
  }
23428
23460
  const T = { ...y, ...w }, $ = /* @__PURE__ */ new Set([
23429
23461
  "color",
@@ -23434,8 +23466,8 @@ function Ed(e) {
23434
23466
  "textDecoration",
23435
23467
  "textDecorationSkipInk"
23436
23468
  ]), N = h.toPairs(T).filter(
23437
- ([F, M]) => !h.isNil(M) && M !== "" && M !== "undefined" && !(b && $.has(F))
23438
- ).map(([F, M]) => `${h.kebabCase(F)}:${h.isNumber(M) ? `${M}px` : M};`).join(" ");
23469
+ ([L, q]) => !h.isNil(q) && q !== "" && q !== "undefined" && !(b && $.has(L))
23470
+ ).map(([L, q]) => `${h.kebabCase(L)}:${h.isNumber(q) ? `${q}px` : q};`).join(" ");
23439
23471
  let x;
23440
23472
  if (b)
23441
23473
  x = wl(m, d, t, {
@@ -23444,8 +23476,8 @@ function Ed(e) {
23444
23476
  isRichTextCopy: !0
23445
23477
  });
23446
23478
  else {
23447
- const F = Ze(m, d, t, "m") ?? Ze(m, d, t) ?? "";
23448
- x = Un(String(F)).replace(
23479
+ const L = Ze(m, d, t, "m") ?? Ze(m, d, t) ?? "";
23480
+ x = Un(String(L)).replace(
23449
23481
  /&lt;br\s*\/?&gt;/g,
23450
23482
  "<br>"
23451
23483
  );
@@ -23455,14 +23487,14 @@ function Ed(e) {
23455
23487
  );
23456
23488
  o = `<table data-type="fortune-copy-action-table"><tr><td style="white-space: pre-line; ${N}" data-fortune-cell="${C}">${x}</td></tr></table>`;
23457
23489
  } else
23458
- o = Ku(
23490
+ o = Qu(
23459
23491
  e,
23460
23492
  e.currentSheetId,
23461
23493
  e.luckysheet_select_save
23462
23494
  ), o = o === null ? o : o.replace('<td style="', '<td style="white-space: pre-line; ');
23463
- o && (e.iscopyself = !0, Yu.writeHtml(o));
23495
+ o && (e.iscopyself = !0, ju.writeHtml(o));
23464
23496
  }
23465
- function qd(e) {
23497
+ function Md(e) {
23466
23498
  var a, n, o, i, l, u, s, c;
23467
23499
  if (nn(e) === !1 || e.isFlvReadOnly)
23468
23500
  return "allowEdit";
@@ -23486,7 +23518,7 @@ function qd(e) {
23486
23518
  const w = r[b].row[0], T = r[b].row[1], $ = r[b].column[0], N = r[b].column[1];
23487
23519
  for (let x = w; x <= T; x += 1)
23488
23520
  for (let C = $; C <= N; C += 1) {
23489
- const F = Le(e, e.currentSheetId), M = f[x][C] != null ? h.cloneDeep(f[x][C]) : null, O = M != null && (M.tb === "2" && !h.isNil(M.v) && M.v !== "" || Xt(M)), { dataVerification: V } = e.luckysheetfile[F];
23521
+ const L = Le(e, e.currentSheetId), q = f[x][C] != null ? h.cloneDeep(f[x][C]) : null, O = q != null && (q.tb === "2" && !h.isNil(q.v) && q.v !== "" || Xt(q)), { dataVerification: V } = e.luckysheetfile[L];
23490
23522
  if (V && (V != null && V[`${x}_${C}`]) && (V == null || delete V[`${x}_${C}`]), h.isPlainObject(f[x][C])) {
23491
23523
  const W = f[x][C];
23492
23524
  delete W.m, delete W.v, delete W.fc, delete W.un, W.f != null && (delete W.f, Kr(e, x, C, e.currentSheetId), delete W.spl), W.ct != null && (W.ct.t === "inlineStr" || (a = W.ct.fa) != null && a.includes("BTC") || (n = W.ct.fa) != null && n.includes("ETH") || (o = W.ct.fa) != null && o.includes("SOL")) && (delete W.ct, W == null || delete W.baseValue, W == null || delete W.baseCurrency), Kt(e, x, C);
@@ -23494,7 +23526,7 @@ function qd(e) {
23494
23526
  f[x][C] = null;
23495
23527
  y && y[`${x}_${C}`] && delete y[`${x}_${C}`];
23496
23528
  const K = f[x][C] ?? null;
23497
- if (!h.isEqual(M, K)) {
23529
+ if (!h.isEqual(q, K)) {
23498
23530
  const W = `${x}_${C}`;
23499
23531
  d.set(W, {
23500
23532
  sheetId: e.currentSheetId,
@@ -23515,7 +23547,7 @@ function qd(e) {
23515
23547
  }
23516
23548
  return "success";
23517
23549
  }
23518
- function Md(e) {
23550
+ function Rd(e) {
23519
23551
  var a;
23520
23552
  if (nn(e) === !1)
23521
23553
  return "allowEdit";
@@ -23553,7 +23585,7 @@ function Md(e) {
23553
23585
  }
23554
23586
  return "success";
23555
23587
  }
23556
- function Rd(e) {
23588
+ function Id(e) {
23557
23589
  var a, n, o;
23558
23590
  if (nn(e) === !1)
23559
23591
  return "allowEdit";
@@ -23584,25 +23616,25 @@ function Rd(e) {
23584
23616
  key: `${c}_${m}`,
23585
23617
  type: "update"
23586
23618
  }), y != null) {
23587
- const C = `${$}_${N}`, F = `${c}_${m}`;
23619
+ const C = `${$}_${N}`, L = `${c}_${m}`;
23588
23620
  if (g != null) {
23589
- const M = g[C];
23590
- M != null && (y.dataVerification = {
23621
+ const q = g[C];
23622
+ q != null && (y.dataVerification = {
23591
23623
  ...y.dataVerification || {},
23592
- [F]: h.cloneDeep(M)
23624
+ [L]: h.cloneDeep(q)
23593
23625
  });
23594
23626
  }
23595
23627
  if (b != null && b[C] != null) {
23596
23628
  y.hyperlink = {
23597
23629
  ...y.hyperlink || {},
23598
- [F]: h.cloneDeep(b[C])
23630
+ [L]: h.cloneDeep(b[C])
23599
23631
  };
23600
- const M = i[c][m];
23601
- M != null && (M.hl = { r: c, c: m, id: e.currentSheetId });
23632
+ const q = i[c][m];
23633
+ q != null && (q.hl = { r: c, c: m, id: e.currentSheetId });
23602
23634
  }
23603
23635
  if (w != null && w.length > 0)
23604
- for (let M = 0; M < w.length; M += 1) {
23605
- const O = w[M].cellrange;
23636
+ for (let q = 0; q < w.length; q += 1) {
23637
+ const O = w[q].cellrange;
23606
23638
  if (O)
23607
23639
  for (let V = 0; V < O.length; V += 1) {
23608
23640
  const K = O[V];
@@ -23625,25 +23657,25 @@ function Rd(e) {
23625
23657
  key: `${$}_${x}`,
23626
23658
  type: "update"
23627
23659
  })), y != null) {
23628
- const C = `${$}_${m}`, F = `${$}_${x}`;
23660
+ const C = `${$}_${m}`, L = `${$}_${x}`;
23629
23661
  if (g != null) {
23630
- const M = g[C];
23631
- M != null && (y.dataVerification = {
23662
+ const q = g[C];
23663
+ q != null && (y.dataVerification = {
23632
23664
  ...y.dataVerification || {},
23633
- [F]: h.cloneDeep(M)
23665
+ [L]: h.cloneDeep(q)
23634
23666
  });
23635
23667
  }
23636
23668
  if (b != null && b[C] != null) {
23637
23669
  y.hyperlink = {
23638
23670
  ...y.hyperlink || {},
23639
- [F]: h.cloneDeep(b[C])
23671
+ [L]: h.cloneDeep(b[C])
23640
23672
  };
23641
- const M = (n = i[$]) == null ? void 0 : n[x];
23642
- M != null && (M.hl = { r: $, c: x, id: e.currentSheetId });
23673
+ const q = (n = i[$]) == null ? void 0 : n[x];
23674
+ q != null && (q.hl = { r: $, c: x, id: e.currentSheetId });
23643
23675
  }
23644
23676
  if (w != null && w.length > 0)
23645
- for (let M = 0; M < w.length; M += 1) {
23646
- const O = w[M].cellrange;
23677
+ for (let q = 0; q < w.length; q += 1) {
23678
+ const O = w[q].cellrange;
23647
23679
  if (O)
23648
23680
  for (let V = 0; V < O.length; V += 1) {
23649
23681
  const K = O[V];
@@ -23660,7 +23692,7 @@ function Rd(e) {
23660
23692
  }
23661
23693
  return "success";
23662
23694
  }
23663
- function Id(e) {
23695
+ function Dd(e) {
23664
23696
  var a, n, o;
23665
23697
  if (nn(e) === !1)
23666
23698
  return "allowEdit";
@@ -23691,25 +23723,25 @@ function Id(e) {
23691
23723
  key: `${c}_${m}`,
23692
23724
  type: "update"
23693
23725
  }), y != null) {
23694
- const C = `${$}_${N}`, F = `${c}_${m}`;
23726
+ const C = `${$}_${N}`, L = `${c}_${m}`;
23695
23727
  if (g != null) {
23696
- const M = g[C];
23697
- M != null && (y.dataVerification = {
23728
+ const q = g[C];
23729
+ q != null && (y.dataVerification = {
23698
23730
  ...y.dataVerification || {},
23699
- [F]: h.cloneDeep(M)
23731
+ [L]: h.cloneDeep(q)
23700
23732
  });
23701
23733
  }
23702
23734
  if (b != null && b[C] != null) {
23703
23735
  y.hyperlink = {
23704
23736
  ...y.hyperlink || {},
23705
- [F]: h.cloneDeep(b[C])
23737
+ [L]: h.cloneDeep(b[C])
23706
23738
  };
23707
- const M = i[c][m];
23708
- M != null && (M.hl = { r: c, c: m, id: e.currentSheetId });
23739
+ const q = i[c][m];
23740
+ q != null && (q.hl = { r: c, c: m, id: e.currentSheetId });
23709
23741
  }
23710
23742
  if (w != null && w.length > 0)
23711
- for (let M = 0; M < w.length; M += 1) {
23712
- const O = w[M].cellrange;
23743
+ for (let q = 0; q < w.length; q += 1) {
23744
+ const O = w[q].cellrange;
23713
23745
  if (O)
23714
23746
  for (let V = 0; V < O.length; V += 1) {
23715
23747
  const K = O[V];
@@ -23732,25 +23764,25 @@ function Id(e) {
23732
23764
  key: `${x}_${$}`,
23733
23765
  type: "update"
23734
23766
  }), y != null) {
23735
- const C = `${c}_${$}`, F = `${x}_${$}`;
23767
+ const C = `${c}_${$}`, L = `${x}_${$}`;
23736
23768
  if (g != null) {
23737
- const M = g[C];
23738
- M != null && (y.dataVerification = {
23769
+ const q = g[C];
23770
+ q != null && (y.dataVerification = {
23739
23771
  ...y.dataVerification || {},
23740
- [F]: h.cloneDeep(M)
23772
+ [L]: h.cloneDeep(q)
23741
23773
  });
23742
23774
  }
23743
23775
  if (b != null && b[C] != null) {
23744
23776
  y.hyperlink = {
23745
23777
  ...y.hyperlink || {},
23746
- [F]: h.cloneDeep(b[C])
23778
+ [L]: h.cloneDeep(b[C])
23747
23779
  };
23748
- const M = (n = i[x]) == null ? void 0 : n[$];
23749
- M != null && (M.hl = { r: x, c: $, id: e.currentSheetId });
23780
+ const q = (n = i[x]) == null ? void 0 : n[$];
23781
+ q != null && (q.hl = { r: x, c: $, id: e.currentSheetId });
23750
23782
  }
23751
23783
  if (w != null && w.length > 0)
23752
- for (let M = 0; M < w.length; M += 1) {
23753
- const O = w[M].cellrange;
23784
+ for (let q = 0; q < w.length; q += 1) {
23785
+ const O = w[q].cellrange;
23754
23786
  if (O)
23755
23787
  for (let V = 0; V < O.length; V += 1) {
23756
23788
  const K = O[V];
@@ -23767,7 +23799,7 @@ function Id(e) {
23767
23799
  }
23768
23800
  return "success";
23769
23801
  }
23770
- function Dd(e, t) {
23802
+ function Od(e, t) {
23771
23803
  var n;
23772
23804
  if (nn(e) === !1)
23773
23805
  return "allowEdit";
@@ -23805,7 +23837,7 @@ function Dd(e, t) {
23805
23837
  }
23806
23838
  return "success";
23807
23839
  }
23808
- function Od(e) {
23840
+ function Ld(e) {
23809
23841
  var a;
23810
23842
  if (nn(e) === !1)
23811
23843
  return "allowEdit";
@@ -23848,7 +23880,7 @@ function Od(e) {
23848
23880
  }
23849
23881
  return "success";
23850
23882
  }
23851
- function Ld(e) {
23883
+ function Fd(e) {
23852
23884
  var a;
23853
23885
  if (nn(e) === !1)
23854
23886
  return "allowEdit";
@@ -23890,10 +23922,10 @@ function Ld(e) {
23890
23922
  }
23891
23923
  return "success";
23892
23924
  }
23893
- function Fd(e, t) {
23925
+ function Bd(e, t) {
23894
23926
  return !1;
23895
23927
  }
23896
- function Bd(e) {
23928
+ function Pd(e) {
23897
23929
  const t = Re(e);
23898
23930
  t && (e.luckysheet_select_status = !1, e.luckysheet_select_save = [
23899
23931
  {
@@ -23906,7 +23938,7 @@ function Bd(e) {
23906
23938
  }
23907
23939
  ], Jt(e, e.luckysheet_select_save));
23908
23940
  }
23909
- function Pd(e, t, r, a) {
23941
+ function Hd(e, t, r, a) {
23910
23942
  var u;
23911
23943
  if (!a) return {};
23912
23944
  const n = {}, { scrollTop: o } = e, i = (u = a.horizontal) == null ? void 0 : u.freezenhorizontaldata;
@@ -23917,7 +23949,7 @@ function Pd(e, t, r, a) {
23917
23949
  }
23918
23950
  return l || (n.display = "none"), n;
23919
23951
  }
23920
- function Hd(e, t, r, a) {
23952
+ function zd(e, t, r, a) {
23921
23953
  var u;
23922
23954
  if (!a) return {};
23923
23955
  const n = {}, { scrollLeft: o } = e, i = (u = a.vertical) == null ? void 0 : u.freezenverticaldata;
@@ -23928,18 +23960,18 @@ function Hd(e, t, r, a) {
23928
23960
  }
23929
23961
  return l || (n.display = "none"), n;
23930
23962
  }
23931
- function zd(e) {
23932
- var u, s, c, f, m, d, p, y, g, b, w, T, $, N, x, C, F, M;
23963
+ function Ud(e) {
23964
+ var u, s, c, f, m, d, p, y, g, b, w, T, $, N, x, C, L, q;
23933
23965
  const t = e.luckysheet_select_save;
23934
23966
  let r = 0, a = 0, n = 0, o = -1 / 0, i = 1 / 0;
23935
23967
  for (let O = 0; O < t.length; O += 1) {
23936
- const V = Pu(e, t[O]);
23968
+ const V = Hu(e, t[O]);
23937
23969
  for (let K = 0; K < V.length; K += 1)
23938
23970
  for (let W = 0; W < V[0].length && !(K >= V.length || W >= V[0].length); W += 1) {
23939
23971
  const Z = (s = (u = V[K][W]) == null ? void 0 : u.ct) == null ? void 0 : s.t;
23940
23972
  let H = (c = V[K][W]) == null ? void 0 : c.m;
23941
- if ((d = (m = (f = V[K][W]) == null ? void 0 : f.ct) == null ? void 0 : m.fa) != null && d.includes("#,##0") && (H = (p = V[K][W]) == null ? void 0 : p.v), ((g = (y = V[K][W]) == null ? void 0 : y.ct) == null ? void 0 : g.t) === "inlineStr" && (H == null || H === "") && ((w = (b = V[K][W]) == null ? void 0 : b.ct) != null && w.s) && !((N = ($ = (T = V[K][W]) == null ? void 0 : T.ct) == null ? void 0 : $.s[0]) != null && N.v.includes("\r")) && (H = (F = (C = (x = V[K][W]) == null ? void 0 : x.ct) == null ? void 0 : C.s[0]) == null ? void 0 : F.v), Z === "n" || Z === "g" && parseFloat(H).toString() !== "NaN" || Z === "inlineStr" && parseFloat(H).toString() !== "NaN") {
23942
- const ee = ((M = String(H)) == null ? void 0 : M.replace(/,/g, "")) || "0", B = parseFloat(ee);
23973
+ if ((d = (m = (f = V[K][W]) == null ? void 0 : f.ct) == null ? void 0 : m.fa) != null && d.includes("#,##0") && (H = (p = V[K][W]) == null ? void 0 : p.v), ((g = (y = V[K][W]) == null ? void 0 : y.ct) == null ? void 0 : g.t) === "inlineStr" && (H == null || H === "") && ((w = (b = V[K][W]) == null ? void 0 : b.ct) != null && w.s) && !((N = ($ = (T = V[K][W]) == null ? void 0 : T.ct) == null ? void 0 : $.s[0]) != null && N.v.includes("\r")) && (H = (L = (C = (x = V[K][W]) == null ? void 0 : x.ct) == null ? void 0 : C.s[0]) == null ? void 0 : L.v), Z === "n" || Z === "g" && parseFloat(H).toString() !== "NaN" || Z === "inlineStr" && parseFloat(H).toString() !== "NaN") {
23974
+ const ee = ((q = String(H)) == null ? void 0 : q.replace(/,/g, "")) || "0", B = parseFloat(ee);
23943
23975
  a += 1, n += B, o = Math.max(B, o), i = Math.min(B, i), r += 1;
23944
23976
  } else H != null && (a += 1);
23945
23977
  }
@@ -23947,7 +23979,7 @@ function zd(e) {
23947
23979
  const l = String(n / r);
23948
23980
  return { numberC: r, count: a, sum: n, max: o, min: i, average: l };
23949
23981
  }
23950
- function Ud(e) {
23982
+ function Wd(e) {
23951
23983
  return {
23952
23984
  luckysheetfile: [],
23953
23985
  defaultcolumnNum: 60,
@@ -24234,7 +24266,7 @@ function Re(e, t) {
24234
24266
  const r = Le(e, t || e.currentSheetId);
24235
24267
  return h.isNil(r) ? null : (n = (a = e.luckysheetfile) == null ? void 0 : a[r]) == null ? void 0 : n.data;
24236
24268
  }
24237
- function Qu(e, t, r) {
24269
+ function Ju(e, t, r) {
24238
24270
  var o, i, l, u, s, c, f, m, d, p, y;
24239
24271
  e.visibledatarow = [], e.rh_height = 0;
24240
24272
  for (let g = 0; g < t; g += 1) {
@@ -24259,7 +24291,7 @@ function Qu(e, t, r) {
24259
24291
  }
24260
24292
  e.ch_width += a;
24261
24293
  }
24262
- function Wd(e, t) {
24294
+ function Vd(e, t) {
24263
24295
  if ((e == null ? void 0 : e.length) > 0) {
24264
24296
  let r = !1;
24265
24297
  const a = [];
@@ -24268,7 +24300,7 @@ function Wd(e, t) {
24268
24300
  }), r || (e[0].status = 1);
24269
24301
  }
24270
24302
  }
24271
- function Vd(e) {
24303
+ function Gd(e) {
24272
24304
  const t = e.luckysheetfile.filter(
24273
24305
  (r) => h.isUndefined(r.hide) || r.hide !== 1
24274
24306
  );
@@ -24279,11 +24311,11 @@ function Vd(e) {
24279
24311
  break;
24280
24312
  }
24281
24313
  }
24282
- function Gd(e, t) {
24314
+ function Yd(e, t) {
24283
24315
  const r = t.length, a = r === 0 ? 0 : t[0].length;
24284
- Qu(e, r, a), Jt(e, e.luckysheet_select_save);
24316
+ Ju(e, r, a), Jt(e, e.luckysheet_select_save);
24285
24317
  }
24286
- function Yd(e, t, r) {
24318
+ function jd(e, t, r) {
24287
24319
  e.luckysheetTableContentHW = [
24288
24320
  r.clientWidth,
24289
24321
  r.clientHeight
@@ -24293,8 +24325,8 @@ function Yd(e, t, r) {
24293
24325
  e.luckysheetTableContentHW[1] * e.devicePixelRatio
24294
24326
  );
24295
24327
  }
24296
- function Ju(e, t, r, a, n, o) {
24297
- var f, m, d, p, y, g, b, w, T, $, N, x, C, F, M, O, V, K, W, Z, H, ee, B, ne, ie, P, G, Q, le, he, pe, de, E, _, A, z, v, j, k, L, oe, me, ce, ue, _e, ve, Te, Ce, fe, se, Pe, je, Me, ge, D, I, Y, U, R, J, be, xe, ye, we, He, Se, qe, ke, Ue, Fe, Ve, Pt, Vt, Dt, xa, Aa, Sa, ka, Ea, qa, Ma, Ra, Ia, Da, Oa, La, Fa, Ba, Pa, Ha, za, Ua, Wa, Va, Ga, Ya, ja, Xa, Za, Ka, Qa, Ja, ei, ti, ni, ri, ai, ii, oi, li, si, ci, ui, fi, di, mi, hi, pi, gi, yi, bi, wi, vi, _i, Ti, $i, Ci, Ni, xi, Ai, Si, ki, Ei, qi, Mi, Ri, Ii, Di, Oi, Li, Fi, Bi, Pi, Hi, zi, Ui, Wi, Vi, Gi, Yi, ji, Xi, Zi, Ki, Qi, Ji, eo, to, no, ro, ao;
24328
+ function ef(e, t, r, a, n, o) {
24329
+ var f, m, d, p, y, g, b, w, T, $, N, x, C, L, q, O, V, K, W, Z, H, ee, B, ne, ie, P, G, Q, le, he, pe, de, E, _, A, z, v, j, k, F, oe, me, ce, ue, _e, ve, Te, Ce, fe, se, Pe, je, Me, ge, D, I, Y, U, R, J, be, xe, ye, we, He, Se, qe, ke, Ue, Fe, Ve, Pt, Vt, Dt, xa, Aa, Sa, ka, Ea, qa, Ma, Ra, Ia, Da, Oa, La, Fa, Ba, Pa, Ha, za, Ua, Wa, Va, Ga, Ya, ja, Xa, Za, Ka, Qa, Ja, ei, ti, ni, ri, ai, ii, oi, li, si, ci, ui, fi, di, mi, hi, pi, gi, yi, bi, wi, vi, _i, Ti, $i, Ci, Ni, xi, Ai, Si, ki, Ei, qi, Mi, Ri, Ii, Di, Oi, Li, Fi, Bi, Pi, Hi, zi, Ui, Wi, Vi, Gi, Yi, ji, Xi, Zi, Ki, Qi, Ji, eo, to, no, ro, ao;
24298
24330
  const i = {}, l = Re(e);
24299
24331
  let u, s;
24300
24332
  if (!o)
@@ -24316,9 +24348,9 @@ function Ju(e, t, r, a, n, o) {
24316
24348
  for (let De = 0; De < Ie.length; De += 1) {
24317
24349
  let $e = Ie[De].row[0], Ae = Ie[De].row[1], Be = Ie[De].column[0], ze = Ie[De].column[1];
24318
24350
  if ($e < t && ($e = t), Ae > r && (Ae = r), Be < a && (Be = a), ze > n && (ze = n), Ne === "border-slash") {
24319
- const S = Ie[0].row_focus, q = Ie[0].column_focus;
24320
- if (!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[S]) || q < a || q > n || S < t || S > r) continue;
24321
- i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].s = {
24351
+ const S = Ie[0].row_focus, M = Ie[0].column_focus;
24352
+ if (!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[S]) || M < a || M > n || S < t || S > r) continue;
24353
+ i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].s = {
24322
24354
  color: re,
24323
24355
  style: ae
24324
24356
  };
@@ -24331,16 +24363,16 @@ function Ju(e, t, r, a, n, o) {
24331
24363
  color: re,
24332
24364
  style: ae
24333
24365
  };
24334
- const q = Be - 1;
24335
- if (q >= 0 && i[`${S}_${q}`])
24336
- if (h.isNil((m = (f = s[S]) == null ? void 0 : f[q]) == null ? void 0 : m.mc))
24337
- i[`${S}_${q}`].r = {
24366
+ const M = Be - 1;
24367
+ if (M >= 0 && i[`${S}_${M}`])
24368
+ if (h.isNil((m = (f = s[S]) == null ? void 0 : f[M]) == null ? void 0 : m.mc))
24369
+ i[`${S}_${M}`].r = {
24338
24370
  color: re,
24339
24371
  style: ae
24340
24372
  };
24341
24373
  else {
24342
- const X = s[S][q], Ee = (y = u.merge) == null ? void 0 : y[`${(d = X == null ? void 0 : X.mc) == null ? void 0 : d.r}_${(p = X == null ? void 0 : X.mc) == null ? void 0 : p.c}`];
24343
- Ee && Ee.c + Ee.cs - 1 === q && (i[`${S}_${q}`].r = {
24374
+ const X = s[S][M], Ee = (y = u.merge) == null ? void 0 : y[`${(d = X == null ? void 0 : X.mc) == null ? void 0 : d.r}_${(p = X == null ? void 0 : X.mc) == null ? void 0 : p.c}`];
24375
+ Ee && Ee.c + Ee.cs - 1 === M && (i[`${S}_${M}`].r = {
24344
24376
  color: re,
24345
24377
  style: ae
24346
24378
  });
@@ -24359,16 +24391,16 @@ function Ju(e, t, r, a, n, o) {
24359
24391
  color: re,
24360
24392
  style: ae
24361
24393
  };
24362
- const q = ze + 1;
24363
- if (q < s[0].length && i[`${S}_${q}`])
24364
- if (h.isNil((b = (g = s[S]) == null ? void 0 : g[q]) == null ? void 0 : b.mc))
24365
- i[`${S}_${q}`].l = {
24394
+ const M = ze + 1;
24395
+ if (M < s[0].length && i[`${S}_${M}`])
24396
+ if (h.isNil((b = (g = s[S]) == null ? void 0 : g[M]) == null ? void 0 : b.mc))
24397
+ i[`${S}_${M}`].l = {
24366
24398
  color: re,
24367
24399
  style: ae
24368
24400
  };
24369
24401
  else {
24370
- const X = s[S][q], Ee = ($ = u.merge) == null ? void 0 : $[`${(w = X == null ? void 0 : X.mc) == null ? void 0 : w.r}_${(T = X == null ? void 0 : X.mc) == null ? void 0 : T.c}`];
24371
- Ee && Ee.c === q && (i[`${S}_${q}`].l = {
24402
+ const X = s[S][M], Ee = ($ = u.merge) == null ? void 0 : $[`${(w = X == null ? void 0 : X.mc) == null ? void 0 : w.r}_${(T = X == null ? void 0 : X.mc) == null ? void 0 : T.c}`];
24403
+ Ee && Ee.c === M && (i[`${S}_${M}`].l = {
24372
24404
  color: re,
24373
24405
  style: ae
24374
24406
  });
@@ -24387,16 +24419,16 @@ function Ju(e, t, r, a, n, o) {
24387
24419
  color: re,
24388
24420
  style: ae
24389
24421
  };
24390
- const q = $e - 1;
24391
- if (q >= 0 && i[`${q}_${S}`])
24392
- if (h.isNil((x = (N = s[q]) == null ? void 0 : N[S]) == null ? void 0 : x.mc))
24393
- i[`${q}_${S}`].b = {
24422
+ const M = $e - 1;
24423
+ if (M >= 0 && i[`${M}_${S}`])
24424
+ if (h.isNil((x = (N = s[M]) == null ? void 0 : N[S]) == null ? void 0 : x.mc))
24425
+ i[`${M}_${S}`].b = {
24394
24426
  color: re,
24395
24427
  style: ae
24396
24428
  };
24397
24429
  else {
24398
- const X = s[q][S], Ee = (M = u.merge) == null ? void 0 : M[`${(C = X == null ? void 0 : X.mc) == null ? void 0 : C.r}_${(F = X == null ? void 0 : X.mc) == null ? void 0 : F.c}`];
24399
- Ee && Ee.r + Ee.rs - 1 === q && (i[`${q}_${S}`].b = {
24430
+ const X = s[M][S], Ee = (q = u.merge) == null ? void 0 : q[`${(C = X == null ? void 0 : X.mc) == null ? void 0 : C.r}_${(L = X == null ? void 0 : X.mc) == null ? void 0 : L.c}`];
24431
+ Ee && Ee.r + Ee.rs - 1 === M && (i[`${M}_${S}`].b = {
24400
24432
  color: re,
24401
24433
  style: ae
24402
24434
  });
@@ -24415,16 +24447,16 @@ function Ju(e, t, r, a, n, o) {
24415
24447
  color: re,
24416
24448
  style: ae
24417
24449
  };
24418
- const q = Ae + 1;
24419
- if (q < s.length && i[`${q}_${S}`])
24420
- if (h.isNil((V = (O = s[q]) == null ? void 0 : O[S]) == null ? void 0 : V.mc))
24421
- i[`${q}_${S}`].t = {
24450
+ const M = Ae + 1;
24451
+ if (M < s.length && i[`${M}_${S}`])
24452
+ if (h.isNil((V = (O = s[M]) == null ? void 0 : O[S]) == null ? void 0 : V.mc))
24453
+ i[`${M}_${S}`].t = {
24422
24454
  color: re,
24423
24455
  style: ae
24424
24456
  };
24425
24457
  else {
24426
- const X = s[q][S], Ee = (Z = u.merge) == null ? void 0 : Z[`${(K = X == null ? void 0 : X.mc) == null ? void 0 : K.r}_${(W = X == null ? void 0 : X.mc) == null ? void 0 : W.c}`];
24427
- (Ee == null ? void 0 : Ee.r) === q && (i[`${q}_${S}`].t = {
24458
+ const X = s[M][S], Ee = (Z = u.merge) == null ? void 0 : Z[`${(K = X == null ? void 0 : X.mc) == null ? void 0 : K.r}_${(W = X == null ? void 0 : X.mc) == null ? void 0 : W.c}`];
24459
+ (Ee == null ? void 0 : Ee.r) === M && (i[`${M}_${S}`].t = {
24428
24460
  color: re,
24429
24461
  style: ae
24430
24462
  });
@@ -24438,48 +24470,48 @@ function Ju(e, t, r, a, n, o) {
24438
24470
  } else if (Ne === "border-all") {
24439
24471
  for (let S = $e; S <= Ae; S += 1)
24440
24472
  if (!(!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[S])))
24441
- for (let q = Be; q <= ze; q += 1) {
24442
- if (h.isNil((ee = (H = s[S]) == null ? void 0 : H[q]) == null ? void 0 : ee.mc))
24443
- i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].l = {
24473
+ for (let M = Be; M <= ze; M += 1) {
24474
+ if (h.isNil((ee = (H = s[S]) == null ? void 0 : H[M]) == null ? void 0 : ee.mc))
24475
+ i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24444
24476
  color: re,
24445
24477
  style: ae
24446
- }, i[`${S}_${q}`].r = {
24478
+ }, i[`${S}_${M}`].r = {
24447
24479
  color: re,
24448
24480
  style: ae
24449
- }, i[`${S}_${q}`].t = {
24481
+ }, i[`${S}_${M}`].t = {
24450
24482
  color: re,
24451
24483
  style: ae
24452
- }, i[`${S}_${q}`].b = {
24484
+ }, i[`${S}_${M}`].b = {
24453
24485
  color: re,
24454
24486
  style: ae
24455
24487
  };
24456
24488
  else {
24457
- const te = s[S][q], X = (ie = u.merge) == null ? void 0 : ie[`${(B = te == null ? void 0 : te.mc) == null ? void 0 : B.r}_${(ne = te == null ? void 0 : te.mc) == null ? void 0 : ne.c}`];
24458
- (X == null ? void 0 : X.r) === S && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].t = {
24489
+ const te = s[S][M], X = (ie = u.merge) == null ? void 0 : ie[`${(B = te == null ? void 0 : te.mc) == null ? void 0 : B.r}_${(ne = te == null ? void 0 : te.mc) == null ? void 0 : ne.c}`];
24490
+ (X == null ? void 0 : X.r) === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24459
24491
  color: re,
24460
24492
  style: ae
24461
- }), X && X.r + X.rs - 1 === S && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].b = {
24493
+ }), X && X.r + X.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].b = {
24462
24494
  color: re,
24463
24495
  style: ae
24464
- }), (X == null ? void 0 : X.c) === q && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].l = {
24496
+ }), (X == null ? void 0 : X.c) === M && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24465
24497
  color: re,
24466
24498
  style: ae
24467
- }), X && X.c + X.cs - 1 === q && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].r = {
24499
+ }), X && X.c + X.cs - 1 === M && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].r = {
24468
24500
  color: re,
24469
24501
  style: ae
24470
24502
  });
24471
24503
  }
24472
24504
  if (S === $e) {
24473
24505
  const te = $e - 1;
24474
- if (te >= 0 && i[`${te}_${q}`])
24475
- if (h.isNil((G = (P = s[te]) == null ? void 0 : P[q]) == null ? void 0 : G.mc))
24476
- i[`${te}_${q}`].b = {
24506
+ if (te >= 0 && i[`${te}_${M}`])
24507
+ if (h.isNil((G = (P = s[te]) == null ? void 0 : P[M]) == null ? void 0 : G.mc))
24508
+ i[`${te}_${M}`].b = {
24477
24509
  color: re,
24478
24510
  style: ae
24479
24511
  };
24480
24512
  else {
24481
- const X = s[te][q], Ee = (he = u.merge) == null ? void 0 : he[`${(Q = X == null ? void 0 : X.mc) == null ? void 0 : Q.r}_${(le = X == null ? void 0 : X.mc) == null ? void 0 : le.c}`];
24482
- Ee && Ee.r + Ee.rs - 1 === te && (i[`${te}_${q}`].b = {
24513
+ const X = s[te][M], Ee = (he = u.merge) == null ? void 0 : he[`${(Q = X == null ? void 0 : X.mc) == null ? void 0 : Q.r}_${(le = X == null ? void 0 : X.mc) == null ? void 0 : le.c}`];
24514
+ Ee && Ee.r + Ee.rs - 1 === te && (i[`${te}_${M}`].b = {
24483
24515
  color: re,
24484
24516
  style: ae
24485
24517
  });
@@ -24487,21 +24519,21 @@ function Ju(e, t, r, a, n, o) {
24487
24519
  }
24488
24520
  if (S === Ae) {
24489
24521
  const te = Ae + 1;
24490
- if (te < s.length && i[`${te}_${q}`])
24491
- if (h.isNil((de = (pe = s[te]) == null ? void 0 : pe[q]) == null ? void 0 : de.mc))
24492
- i[`${te}_${q}`].t = {
24522
+ if (te < s.length && i[`${te}_${M}`])
24523
+ if (h.isNil((de = (pe = s[te]) == null ? void 0 : pe[M]) == null ? void 0 : de.mc))
24524
+ i[`${te}_${M}`].t = {
24493
24525
  color: re,
24494
24526
  style: ae
24495
24527
  };
24496
24528
  else {
24497
- const X = s[te][q], Ee = (A = u.merge) == null ? void 0 : A[`${(E = X == null ? void 0 : X.mc) == null ? void 0 : E.r}_${(_ = X == null ? void 0 : X.mc) == null ? void 0 : _.c}`];
24498
- (Ee == null ? void 0 : Ee.r) === te && (i[`${te}_${q}`].t = {
24529
+ const X = s[te][M], Ee = (A = u.merge) == null ? void 0 : A[`${(E = X == null ? void 0 : X.mc) == null ? void 0 : E.r}_${(_ = X == null ? void 0 : X.mc) == null ? void 0 : _.c}`];
24530
+ (Ee == null ? void 0 : Ee.r) === te && (i[`${te}_${M}`].t = {
24499
24531
  color: re,
24500
24532
  style: ae
24501
24533
  });
24502
24534
  }
24503
24535
  }
24504
- if (q === Be) {
24536
+ if (M === Be) {
24505
24537
  const te = Be - 1;
24506
24538
  if (te >= 0 && i[`${S}_${te}`])
24507
24539
  if (h.isNil((v = (z = s[S]) == null ? void 0 : z[te]) == null ? void 0 : v.mc))
@@ -24510,14 +24542,14 @@ function Ju(e, t, r, a, n, o) {
24510
24542
  style: ae
24511
24543
  };
24512
24544
  else {
24513
- const X = s[S][te], Ee = (L = u.merge) == null ? void 0 : L[`${(j = X == null ? void 0 : X.mc) == null ? void 0 : j.r}_${(k = X == null ? void 0 : X.mc) == null ? void 0 : k.c}`];
24545
+ const X = s[S][te], Ee = (F = u.merge) == null ? void 0 : F[`${(j = X == null ? void 0 : X.mc) == null ? void 0 : j.r}_${(k = X == null ? void 0 : X.mc) == null ? void 0 : k.c}`];
24514
24546
  Ee && Ee.c + Ee.cs - 1 === te && (i[`${S}_${te}`].r = {
24515
24547
  color: re,
24516
24548
  style: ae
24517
24549
  });
24518
24550
  }
24519
24551
  }
24520
- if (q === ze) {
24552
+ if (M === ze) {
24521
24553
  const te = ze + 1;
24522
24554
  if (te < s[0].length && i[`${S}_${te}`])
24523
24555
  if (h.isNil((me = (oe = s[S]) == null ? void 0 : oe[te]) == null ? void 0 : me.mc))
@@ -24537,50 +24569,50 @@ function Ju(e, t, r, a, n, o) {
24537
24569
  } else if (Ne === "border-outside") {
24538
24570
  for (let S = $e; S <= Ae; S += 1)
24539
24571
  if (!(!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[S]))) {
24540
- for (let q = Be; q <= ze; q += 1)
24541
- if (S === $e || S === Ae || q === Be || q === ze) {
24572
+ for (let M = Be; M <= ze; M += 1)
24573
+ if (S === $e || S === Ae || M === Be || M === ze) {
24542
24574
  if (S === $e) {
24543
- i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].t = {
24575
+ i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24544
24576
  color: re,
24545
24577
  style: ae
24546
24578
  };
24547
24579
  const te = $e - 1;
24548
- if (te >= 0 && i[`${te}_${q}`])
24549
- if (h.isNil((Te = (ve = s[te]) == null ? void 0 : ve[q]) == null ? void 0 : Te.mc))
24550
- i[`${te}_${q}`].b = {
24580
+ if (te >= 0 && i[`${te}_${M}`])
24581
+ if (h.isNil((Te = (ve = s[te]) == null ? void 0 : ve[M]) == null ? void 0 : Te.mc))
24582
+ i[`${te}_${M}`].b = {
24551
24583
  color: re,
24552
24584
  style: ae
24553
24585
  };
24554
24586
  else {
24555
- const X = s[te][q], Ee = (se = u.merge) == null ? void 0 : se[`${(Ce = X == null ? void 0 : X.mc) == null ? void 0 : Ce.r}_${(fe = X == null ? void 0 : X.mc) == null ? void 0 : fe.c}`];
24556
- Ee && Ee.r + Ee.rs - 1 === te && (i[`${te}_${q}`].b = {
24587
+ const X = s[te][M], Ee = (se = u.merge) == null ? void 0 : se[`${(Ce = X == null ? void 0 : X.mc) == null ? void 0 : Ce.r}_${(fe = X == null ? void 0 : X.mc) == null ? void 0 : fe.c}`];
24588
+ Ee && Ee.r + Ee.rs - 1 === te && (i[`${te}_${M}`].b = {
24557
24589
  color: re,
24558
24590
  style: ae
24559
24591
  });
24560
24592
  }
24561
24593
  }
24562
24594
  if (S === Ae) {
24563
- i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].b = {
24595
+ i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].b = {
24564
24596
  color: re,
24565
24597
  style: ae
24566
24598
  };
24567
24599
  const te = Ae + 1;
24568
- if (te < s.length && i[`${te}_${q}`])
24569
- if (h.isNil((je = (Pe = s[te]) == null ? void 0 : Pe[q]) == null ? void 0 : je.mc))
24570
- i[`${te}_${q}`].t = {
24600
+ if (te < s.length && i[`${te}_${M}`])
24601
+ if (h.isNil((je = (Pe = s[te]) == null ? void 0 : Pe[M]) == null ? void 0 : je.mc))
24602
+ i[`${te}_${M}`].t = {
24571
24603
  color: re,
24572
24604
  style: ae
24573
24605
  };
24574
24606
  else {
24575
- const X = s[te][q], Ee = (D = u.merge) == null ? void 0 : D[`${(Me = X == null ? void 0 : X.mc) == null ? void 0 : Me.r}_${(ge = X == null ? void 0 : X.mc) == null ? void 0 : ge.c}`];
24576
- (Ee == null ? void 0 : Ee.r) === te && (i[`${te}_${q}`].t = {
24607
+ const X = s[te][M], Ee = (D = u.merge) == null ? void 0 : D[`${(Me = X == null ? void 0 : X.mc) == null ? void 0 : Me.r}_${(ge = X == null ? void 0 : X.mc) == null ? void 0 : ge.c}`];
24608
+ (Ee == null ? void 0 : Ee.r) === te && (i[`${te}_${M}`].t = {
24577
24609
  color: re,
24578
24610
  style: ae
24579
24611
  });
24580
24612
  }
24581
24613
  }
24582
- if (q === Be) {
24583
- i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].l = {
24614
+ if (M === Be) {
24615
+ i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24584
24616
  color: re,
24585
24617
  style: ae
24586
24618
  };
@@ -24599,8 +24631,8 @@ function Ju(e, t, r, a, n, o) {
24599
24631
  });
24600
24632
  }
24601
24633
  }
24602
- if (q === ze) {
24603
- i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].r = {
24634
+ if (M === ze) {
24635
+ i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].r = {
24604
24636
  color: re,
24605
24637
  style: ae
24606
24638
  };
@@ -24624,153 +24656,153 @@ function Ju(e, t, r, a, n, o) {
24624
24656
  } else if (Ne === "border-inside") {
24625
24657
  for (let S = $e; S <= Ae; S += 1)
24626
24658
  if (!(!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[S])))
24627
- for (let q = Be; q <= ze; q += 1)
24628
- if (S === $e && q === Be)
24629
- h.isNil((qe = (Se = s[S]) == null ? void 0 : Se[q]) == null ? void 0 : qe.mc) && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), !S === Ae && (i[`${S}_${q}`].r = {
24659
+ for (let M = Be; M <= ze; M += 1)
24660
+ if (S === $e && M === Be)
24661
+ h.isNil((qe = (Se = s[S]) == null ? void 0 : Se[M]) == null ? void 0 : qe.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !S === Ae && (i[`${S}_${M}`].r = {
24630
24662
  color: re,
24631
24663
  style: ae
24632
- }), !q === ze && (i[`${S}_${q}`].b = {
24664
+ }), !M === ze && (i[`${S}_${M}`].b = {
24633
24665
  color: re,
24634
24666
  style: ae
24635
24667
  }));
24636
- else if (S === Ae && q === Be)
24637
- h.isNil((Ue = (ke = s[S]) == null ? void 0 : ke[q]) == null ? void 0 : Ue.mc) && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), !S === Ae && (i[`${S}_${q}`].r = {
24668
+ else if (S === Ae && M === Be)
24669
+ h.isNil((Ue = (ke = s[S]) == null ? void 0 : ke[M]) == null ? void 0 : Ue.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !S === Ae && (i[`${S}_${M}`].r = {
24638
24670
  color: re,
24639
24671
  style: ae
24640
- }), i[`${S}_${q}`].t = {
24672
+ }), i[`${S}_${M}`].t = {
24641
24673
  color: re,
24642
24674
  style: ae
24643
24675
  });
24644
- else if (S === $e && q === ze)
24645
- h.isNil((Ve = (Fe = s[S]) == null ? void 0 : Fe[q]) == null ? void 0 : Ve.mc) && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].l = {
24676
+ else if (S === $e && M === ze)
24677
+ h.isNil((Ve = (Fe = s[S]) == null ? void 0 : Fe[M]) == null ? void 0 : Ve.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24646
24678
  color: re,
24647
24679
  style: ae
24648
- }, !q === ze && (i[`${S}_${q}`].b = {
24680
+ }, !M === ze && (i[`${S}_${M}`].b = {
24649
24681
  color: re,
24650
24682
  style: ae
24651
24683
  }));
24652
- else if (S === Ae && q === ze)
24653
- h.isNil((Vt = (Pt = s[S]) == null ? void 0 : Pt[q]) == null ? void 0 : Vt.mc) && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].l = {
24684
+ else if (S === Ae && M === ze)
24685
+ h.isNil((Vt = (Pt = s[S]) == null ? void 0 : Pt[M]) == null ? void 0 : Vt.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24654
24686
  color: re,
24655
24687
  style: ae
24656
- }, i[`${S}_${q}`].t = {
24688
+ }, i[`${S}_${M}`].t = {
24657
24689
  color: re,
24658
24690
  style: ae
24659
24691
  });
24660
24692
  else if (S === $e)
24661
- if (h.isNil((xa = (Dt = s[S]) == null ? void 0 : Dt[q]) == null ? void 0 : xa.mc))
24662
- i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].l = {
24693
+ if (h.isNil((xa = (Dt = s[S]) == null ? void 0 : Dt[M]) == null ? void 0 : xa.mc))
24694
+ i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24663
24695
  color: re,
24664
24696
  style: ae
24665
- }, !S === Ae && (i[`${S}_${q}`].r = {
24697
+ }, !S === Ae && (i[`${S}_${M}`].r = {
24666
24698
  color: re,
24667
24699
  style: ae
24668
- }), !q === ze && (i[`${S}_${q}`].b = {
24700
+ }), !M === ze && (i[`${S}_${M}`].b = {
24669
24701
  color: re,
24670
24702
  style: ae
24671
24703
  });
24672
24704
  else {
24673
- const te = s[S][q], X = (ka = u.merge) == null ? void 0 : ka[`${(Aa = te == null ? void 0 : te.mc) == null ? void 0 : Aa.r}_${(Sa = te == null ? void 0 : te.mc) == null ? void 0 : Sa.c}`];
24674
- (X == null ? void 0 : X.c) === q ? (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].l = {
24705
+ const te = s[S][M], X = (ka = u.merge) == null ? void 0 : ka[`${(Aa = te == null ? void 0 : te.mc) == null ? void 0 : Aa.r}_${(Sa = te == null ? void 0 : te.mc) == null ? void 0 : Sa.c}`];
24706
+ (X == null ? void 0 : X.c) === M ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24675
24707
  color: re,
24676
24708
  style: ae
24677
- }) : X && X.c + X.cs - 1 === q && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), !S === Ae && (i[`${S}_${q}`].r = {
24709
+ }) : X && X.c + X.cs - 1 === M && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !S === Ae && (i[`${S}_${M}`].r = {
24678
24710
  color: re,
24679
24711
  style: ae
24680
24712
  }));
24681
24713
  }
24682
24714
  else if (S === Ae)
24683
- if (h.isNil((qa = (Ea = s[S]) == null ? void 0 : Ea[q]) == null ? void 0 : qa.mc))
24684
- i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].l = {
24715
+ if (h.isNil((qa = (Ea = s[S]) == null ? void 0 : Ea[M]) == null ? void 0 : qa.mc))
24716
+ i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24685
24717
  color: re,
24686
24718
  style: ae
24687
- }, !S === Ae && (i[`${S}_${q}`].r = {
24719
+ }, !S === Ae && (i[`${S}_${M}`].r = {
24688
24720
  color: re,
24689
24721
  style: ae
24690
- }), i[`${S}_${q}`].t = {
24722
+ }), i[`${S}_${M}`].t = {
24691
24723
  color: re,
24692
24724
  style: ae
24693
24725
  };
24694
24726
  else {
24695
- const te = s[S][q], X = (Ia = u.merge) == null ? void 0 : Ia[`${(Ma = te == null ? void 0 : te.mc) == null ? void 0 : Ma.r}_${(Ra = te == null ? void 0 : te.mc) == null ? void 0 : Ra.c}`];
24696
- (X == null ? void 0 : X.c) === q ? (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].l = {
24727
+ const te = s[S][M], X = (Ia = u.merge) == null ? void 0 : Ia[`${(Ma = te == null ? void 0 : te.mc) == null ? void 0 : Ma.r}_${(Ra = te == null ? void 0 : te.mc) == null ? void 0 : Ra.c}`];
24728
+ (X == null ? void 0 : X.c) === M ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24697
24729
  color: re,
24698
24730
  style: ae
24699
- }) : X && X.c + X.cs - 1 === q && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), !S === Ae && (i[`${S}_${q}`].r = {
24731
+ }) : X && X.c + X.cs - 1 === M && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !S === Ae && (i[`${S}_${M}`].r = {
24700
24732
  color: re,
24701
24733
  style: ae
24702
24734
  }));
24703
24735
  }
24704
- else if (q === Be)
24705
- if (h.isNil((Oa = (Da = s[S]) == null ? void 0 : Da[q]) == null ? void 0 : Oa.mc))
24706
- i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), !S === Ae && (i[`${S}_${q}`].r = {
24736
+ else if (M === Be)
24737
+ if (h.isNil((Oa = (Da = s[S]) == null ? void 0 : Da[M]) == null ? void 0 : Oa.mc))
24738
+ i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !S === Ae && (i[`${S}_${M}`].r = {
24707
24739
  color: re,
24708
24740
  style: ae
24709
- }), i[`${S}_${q}`].t = {
24741
+ }), i[`${S}_${M}`].t = {
24710
24742
  color: re,
24711
24743
  style: ae
24712
- }, !q === ze && (i[`${S}_${q}`].b = {
24744
+ }, !M === ze && (i[`${S}_${M}`].b = {
24713
24745
  color: re,
24714
24746
  style: ae
24715
24747
  });
24716
24748
  else {
24717
- const te = s[S][q], X = (Ba = u.merge) == null ? void 0 : Ba[`${(La = te == null ? void 0 : te.mc) == null ? void 0 : La.r}_${(Fa = te == null ? void 0 : te.mc) == null ? void 0 : Fa.c}`];
24718
- (X == null ? void 0 : X.r) === S ? (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].t = {
24749
+ const te = s[S][M], X = (Ba = u.merge) == null ? void 0 : Ba[`${(La = te == null ? void 0 : te.mc) == null ? void 0 : La.r}_${(Fa = te == null ? void 0 : te.mc) == null ? void 0 : Fa.c}`];
24750
+ (X == null ? void 0 : X.r) === S ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24719
24751
  color: re,
24720
24752
  style: ae
24721
- }) : X && X.r + X.rs - 1 === S && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), !q === ze && (i[`${S}_${q}`].b = {
24753
+ }) : X && X.r + X.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !M === ze && (i[`${S}_${M}`].b = {
24722
24754
  color: re,
24723
24755
  style: ae
24724
24756
  }));
24725
24757
  }
24726
- else if (q === ze)
24727
- if (h.isNil((Ha = (Pa = s[S]) == null ? void 0 : Pa[q]) == null ? void 0 : Ha.mc))
24728
- i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].l = {
24758
+ else if (M === ze)
24759
+ if (h.isNil((Ha = (Pa = s[S]) == null ? void 0 : Pa[M]) == null ? void 0 : Ha.mc))
24760
+ i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24729
24761
  color: re,
24730
24762
  style: ae
24731
- }, i[`${S}_${q}`].t = {
24763
+ }, i[`${S}_${M}`].t = {
24732
24764
  color: re,
24733
24765
  style: ae
24734
- }, !q === ze && (i[`${S}_${q}`].b = {
24766
+ }, !M === ze && (i[`${S}_${M}`].b = {
24735
24767
  color: re,
24736
24768
  style: ae
24737
24769
  });
24738
24770
  else {
24739
- const te = s[S][q], X = (Wa = u.merge) == null ? void 0 : Wa[`${(za = te == null ? void 0 : te.mc) == null ? void 0 : za.r}_${(Ua = te == null ? void 0 : te.mc) == null ? void 0 : Ua.c}`];
24740
- (X == null ? void 0 : X.r) === S ? (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].t = {
24771
+ const te = s[S][M], X = (Wa = u.merge) == null ? void 0 : Wa[`${(za = te == null ? void 0 : te.mc) == null ? void 0 : za.r}_${(Ua = te == null ? void 0 : te.mc) == null ? void 0 : Ua.c}`];
24772
+ (X == null ? void 0 : X.r) === S ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24741
24773
  color: re,
24742
24774
  style: ae
24743
- }) : X && X.r + X.rs - 1 === S && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), !q === ze && (i[`${S}_${q}`].b = {
24775
+ }) : X && X.r + X.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !M === ze && (i[`${S}_${M}`].b = {
24744
24776
  color: re,
24745
24777
  style: ae
24746
24778
  }));
24747
24779
  }
24748
- else if (h.isNil((Ga = (Va = s[S]) == null ? void 0 : Va[q]) == null ? void 0 : Ga.mc))
24749
- i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].l = {
24780
+ else if (h.isNil((Ga = (Va = s[S]) == null ? void 0 : Va[M]) == null ? void 0 : Ga.mc))
24781
+ i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24750
24782
  color: re,
24751
24783
  style: ae
24752
- }, !S === Ae && (i[`${S}_${q}`].r = {
24784
+ }, !S === Ae && (i[`${S}_${M}`].r = {
24753
24785
  color: re,
24754
24786
  style: ae
24755
- }), i[`${S}_${q}`].t = {
24787
+ }), i[`${S}_${M}`].t = {
24756
24788
  color: re,
24757
24789
  style: ae
24758
- }, !q === ze && (i[`${S}_${q}`].b = {
24790
+ }, !M === ze && (i[`${S}_${M}`].b = {
24759
24791
  color: re,
24760
24792
  style: ae
24761
24793
  });
24762
24794
  else {
24763
- const te = s[S][q], X = (Xa = u.merge) == null ? void 0 : Xa[`${(Ya = te == null ? void 0 : te.mc) == null ? void 0 : Ya.r}_${(ja = te == null ? void 0 : te.mc) == null ? void 0 : ja.c}`];
24764
- (X == null ? void 0 : X.r) === S ? (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].t = {
24795
+ const te = s[S][M], X = (Xa = u.merge) == null ? void 0 : Xa[`${(Ya = te == null ? void 0 : te.mc) == null ? void 0 : Ya.r}_${(ja = te == null ? void 0 : te.mc) == null ? void 0 : ja.c}`];
24796
+ (X == null ? void 0 : X.r) === S ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24765
24797
  color: re,
24766
24798
  style: ae
24767
- }) : X && X.r + X.rs - 1 === S && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), !q === ze && (i[`${S}_${q}`].b = {
24799
+ }) : X && X.r + X.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !M === ze && (i[`${S}_${M}`].b = {
24768
24800
  color: re,
24769
24801
  style: ae
24770
- })), (X == null ? void 0 : X.c) === q ? (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].l = {
24802
+ })), (X == null ? void 0 : X.c) === M ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24771
24803
  color: re,
24772
24804
  style: ae
24773
- }) : X && X.c + X.cs - 1 === q && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), !S === Ae && (i[`${S}_${q}`].r = {
24805
+ }) : X && X.c + X.cs - 1 === M && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !S === Ae && (i[`${S}_${M}`].r = {
24774
24806
  color: re,
24775
24807
  style: ae
24776
24808
  }));
@@ -24778,31 +24810,31 @@ function Ju(e, t, r, a, n, o) {
24778
24810
  } else if (Ne === "border-horizontal") {
24779
24811
  for (let S = $e; S <= Ae; S += 1)
24780
24812
  if (!(!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[S])))
24781
- for (let q = Be; q <= ze; q += 1)
24813
+ for (let M = Be; M <= ze; M += 1)
24782
24814
  if (S === $e)
24783
- h.isNil((Ka = (Za = s[S]) == null ? void 0 : Za[q]) == null ? void 0 : Ka.mc) && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].b = {
24815
+ h.isNil((Ka = (Za = s[S]) == null ? void 0 : Za[M]) == null ? void 0 : Ka.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].b = {
24784
24816
  color: re,
24785
24817
  style: ae
24786
24818
  });
24787
24819
  else if (S === Ae)
24788
- h.isNil((Ja = (Qa = s[S]) == null ? void 0 : Qa[q]) == null ? void 0 : Ja.mc) && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].t = {
24820
+ h.isNil((Ja = (Qa = s[S]) == null ? void 0 : Qa[M]) == null ? void 0 : Ja.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24789
24821
  color: re,
24790
24822
  style: ae
24791
24823
  });
24792
- else if (h.isNil((ti = (ei = s[S]) == null ? void 0 : ei[q]) == null ? void 0 : ti.mc))
24793
- i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].t = {
24824
+ else if (h.isNil((ti = (ei = s[S]) == null ? void 0 : ei[M]) == null ? void 0 : ti.mc))
24825
+ i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24794
24826
  color: re,
24795
24827
  style: ae
24796
- }, i[`${S}_${q}`].b = {
24828
+ }, i[`${S}_${M}`].b = {
24797
24829
  color: re,
24798
24830
  style: ae
24799
24831
  };
24800
24832
  else {
24801
- const te = s[S][q], X = (ai = u.merge) == null ? void 0 : ai[`${(ni = te == null ? void 0 : te.mc) == null ? void 0 : ni.r}_${(ri = te == null ? void 0 : te.mc) == null ? void 0 : ri.c}`];
24802
- (X == null ? void 0 : X.r) === S ? (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].t = {
24833
+ const te = s[S][M], X = (ai = u.merge) == null ? void 0 : ai[`${(ni = te == null ? void 0 : te.mc) == null ? void 0 : ni.r}_${(ri = te == null ? void 0 : te.mc) == null ? void 0 : ri.c}`];
24834
+ (X == null ? void 0 : X.r) === S ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24803
24835
  color: re,
24804
24836
  style: ae
24805
- }) : X && X.r + X.rs - 1 === S && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].b = {
24837
+ }) : X && X.r + X.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].b = {
24806
24838
  color: re,
24807
24839
  style: ae
24808
24840
  });
@@ -24810,31 +24842,31 @@ function Ju(e, t, r, a, n, o) {
24810
24842
  } else if (Ne === "border-vertical") {
24811
24843
  for (let S = $e; S <= Ae; S += 1)
24812
24844
  if (!(!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[S])))
24813
- for (let q = Be; q <= ze; q += 1)
24814
- if (q === Be)
24815
- h.isNil((oi = (ii = s[S]) == null ? void 0 : ii[q]) == null ? void 0 : oi.mc) && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].r = {
24845
+ for (let M = Be; M <= ze; M += 1)
24846
+ if (M === Be)
24847
+ h.isNil((oi = (ii = s[S]) == null ? void 0 : ii[M]) == null ? void 0 : oi.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].r = {
24816
24848
  color: re,
24817
24849
  style: ae
24818
24850
  });
24819
- else if (q === ze)
24820
- h.isNil((si = (li = s[S]) == null ? void 0 : li[q]) == null ? void 0 : si.mc) && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].l = {
24851
+ else if (M === ze)
24852
+ h.isNil((si = (li = s[S]) == null ? void 0 : li[M]) == null ? void 0 : si.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24821
24853
  color: re,
24822
24854
  style: ae
24823
24855
  });
24824
- else if (h.isNil((ui = (ci = s[S]) == null ? void 0 : ci[q]) == null ? void 0 : ui.mc))
24825
- i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].l = {
24856
+ else if (h.isNil((ui = (ci = s[S]) == null ? void 0 : ci[M]) == null ? void 0 : ui.mc))
24857
+ i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24826
24858
  color: re,
24827
24859
  style: ae
24828
- }, i[`${S}_${q}`].r = {
24860
+ }, i[`${S}_${M}`].r = {
24829
24861
  color: re,
24830
24862
  style: ae
24831
24863
  };
24832
24864
  else {
24833
- const te = s[S][q], X = (mi = u.merge) == null ? void 0 : mi[`${(fi = te == null ? void 0 : te.mc) == null ? void 0 : fi.r}_${(di = te == null ? void 0 : te.mc) == null ? void 0 : di.c}`];
24834
- (X == null ? void 0 : X.c) === q ? (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].l = {
24865
+ const te = s[S][M], X = (mi = u.merge) == null ? void 0 : mi[`${(fi = te == null ? void 0 : te.mc) == null ? void 0 : fi.r}_${(di = te == null ? void 0 : te.mc) == null ? void 0 : di.c}`];
24866
+ (X == null ? void 0 : X.c) === M ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24835
24867
  color: re,
24836
24868
  style: ae
24837
- }) : X && X.c + X.cs - 1 === q && (i[`${S}_${q}`] === void 0 && (i[`${S}_${q}`] = {}), i[`${S}_${q}`].r = {
24869
+ }) : X && X.c + X.cs - 1 === M && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].r = {
24838
24870
  color: re,
24839
24871
  style: ae
24840
24872
  });
@@ -24842,20 +24874,20 @@ function Ju(e, t, r, a, n, o) {
24842
24874
  } else if (Ne === "border-none") {
24843
24875
  for (let S = $e; S <= Ae; S += 1)
24844
24876
  if (!(!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[S])))
24845
- for (let q = Be; q <= ze; q += 1) {
24846
- if (h.isNil(i[`${S}_${q}`]) || delete i[`${S}_${q}`], S === $e) {
24877
+ for (let M = Be; M <= ze; M += 1) {
24878
+ if (h.isNil(i[`${S}_${M}`]) || delete i[`${S}_${M}`], S === $e) {
24847
24879
  const te = $e - 1;
24848
- te >= 0 && i[`${te}_${q}`] && delete i[`${te}_${q}`].b;
24880
+ te >= 0 && i[`${te}_${M}`] && delete i[`${te}_${M}`].b;
24849
24881
  }
24850
24882
  if (S === Ae) {
24851
24883
  const te = Ae + 1;
24852
- te < s.length && i[`${te}_${q}`] && delete i[`${te}_${q}`].t;
24884
+ te < s.length && i[`${te}_${M}`] && delete i[`${te}_${M}`].t;
24853
24885
  }
24854
- if (q === Be) {
24886
+ if (M === Be) {
24855
24887
  const te = Be - 1;
24856
24888
  te >= 0 && i[`${S}_${te}`] && delete i[`${S}_${te}`].r;
24857
24889
  }
24858
- if (q === ze) {
24890
+ if (M === ze) {
24859
24891
  const te = ze + 1;
24860
24892
  te < s[0].length && i[`${S}_${te}`] && delete i[`${S}_${te}`].l;
24861
24893
  }
@@ -25061,7 +25093,7 @@ function _l(e, t) {
25061
25093
  else
25062
25094
  return r;
25063
25095
  }
25064
- return r = Ju(
25096
+ return r = ef(
25065
25097
  e,
25066
25098
  0,
25067
25099
  n.length,
@@ -25121,7 +25153,7 @@ const $l = (e, t) => {
25121
25153
  const t = { ...e };
25122
25154
  return delete t.v, delete t.m, delete t.f, delete t.ps, delete t.hl, t;
25123
25155
  };
25124
- function ef(e, t, r, a) {
25156
+ function tf(e, t, r, a) {
25125
25157
  var i, l, u;
25126
25158
  const n = [], o = e[t];
25127
25159
  if (!o || !e[0]) return n;
@@ -25141,7 +25173,7 @@ function ef(e, t, r, a) {
25141
25173
  }
25142
25174
  return n;
25143
25175
  }
25144
- function tf(e, t, r, a) {
25176
+ function nf(e, t, r, a) {
25145
25177
  var o, i, l;
25146
25178
  const n = [];
25147
25179
  for (let u = 0; u < e.length; u += 1) {
@@ -25206,8 +25238,8 @@ const Cl = (e) => {
25206
25238
  }
25207
25239
  }
25208
25240
  };
25209
- function nf(e, t, r = !0) {
25210
- var Q, le, he, pe, de, E, _, A, z, v, j, k, L, oe, me, ce, ue, _e, ve, Te, Ce, fe, se, Pe, je, Me, ge;
25241
+ function rf(e, t, r = !0) {
25242
+ var Q, le, he, pe, de, E, _, A, z, v, j, k, F, oe, me, ce, ue, _e, ve, Te, Ce, fe, se, Pe, je, Me, ge;
25211
25243
  let { count: a, id: n } = t;
25212
25244
  const { type: o, index: i, direction: l, templateSourceRows: u, templateSourceColumns: s } = t;
25213
25245
  n = n || e.currentSheetId;
@@ -25335,23 +25367,23 @@ function nf(e, t, r = !0) {
25335
25367
  a
25336
25368
  );
25337
25369
  }
25338
- const { filter_select: C } = f, { filter: F } = f;
25339
- let M = null;
25370
+ const { filter_select: C } = f, { filter: L } = f;
25371
+ let q = null;
25340
25372
  if (!h.isEmpty(C) && C != null) {
25341
- M = { filter_select: null, filter: null };
25373
+ q = { filter_select: null, filter: null };
25342
25374
  let D = C.row[0], I = C.row[1], Y = C.column[0], U = C.column[1];
25343
- o === "row" ? (D < i ? (I === i && l === "lefttop" || I > i) && (I += a) : D === i ? l === "lefttop" ? (D += a, I += a) : l === "rightbottom" && I > i && (I += a) : (D += a, I += a), F != null && (M.filter = {}, h.forEach(F, (R, J) => {
25344
- const be = F[J].rowhidden, xe = {};
25375
+ o === "row" ? (D < i ? (I === i && l === "lefttop" || I > i) && (I += a) : D === i ? l === "lefttop" ? (D += a, I += a) : l === "rightbottom" && I > i && (I += a) : (D += a, I += a), L != null && (q.filter = {}, h.forEach(L, (R, J) => {
25376
+ const be = L[J].rowhidden, xe = {};
25345
25377
  h.forEach(be, (ye, we) => {
25346
25378
  const He = parseFloat(we);
25347
25379
  He < i ? xe[He] = 0 : He === i ? l === "lefttop" ? xe[He + a] = 0 : l === "rightbottom" && (xe[He] = 0) : xe[He + a] = 0;
25348
- }), M.filter[J] = h.cloneDeep(F[J]), M.filter[J].rowhidden = xe, M.filter[J].str = D, M.filter[J].edr = I;
25349
- }))) : o === "column" && (Y < i ? (U === i && l === "lefttop" || U > i) && (U += a) : Y === i ? l === "lefttop" ? (Y += a, U += a) : l === "rightbottom" && U > i && (U += a) : (Y += a, U += a), F != null && (M.filter = {}, h.forEach(F, (R, J) => {
25350
- let be = F[J].cindex;
25351
- (be === i && l === "lefttop" || be > i) && (be += a), M.filter[be - Y] = h.cloneDeep(F[J]), M.filter[be - Y].cindex = be, M.filter[be - Y].stc = Y, M.filter[be - Y].edc = U;
25352
- }))), M.filter_select = { row: [D, I], column: [Y, U] };
25380
+ }), q.filter[J] = h.cloneDeep(L[J]), q.filter[J].rowhidden = xe, q.filter[J].str = D, q.filter[J].edr = I;
25381
+ }))) : o === "column" && (Y < i ? (U === i && l === "lefttop" || U > i) && (U += a) : Y === i ? l === "lefttop" ? (Y += a, U += a) : l === "rightbottom" && U > i && (U += a) : (Y += a, U += a), L != null && (q.filter = {}, h.forEach(L, (R, J) => {
25382
+ let be = L[J].cindex;
25383
+ (be === i && l === "lefttop" || be > i) && (be += a), q.filter[be - Y] = h.cloneDeep(L[J]), q.filter[be - Y].cindex = be, q.filter[be - Y].stc = Y, q.filter[be - Y].edc = U;
25384
+ }))), q.filter_select = { row: [D, I], column: [Y, U] };
25353
25385
  }
25354
- const O = (M == null ? void 0 : M.filter) != null ? qt(M.filter) : qt(F);
25386
+ const O = (q == null ? void 0 : q.filter) != null ? qt(q.filter) : qt(L);
25355
25387
  d.rowhidden_filter = O, d.rowhidden = h.assign(
25356
25388
  {},
25357
25389
  d.rowhidden_manual || {},
@@ -25378,7 +25410,7 @@ function nf(e, t, r = !0) {
25378
25410
  const { frozen: H } = f;
25379
25411
  if (H) {
25380
25412
  const D = l === "lefttop" ? i - 1 : i;
25381
- o === "row" && (H.type === "rangeRow" || H.type === "rangeBoth") && (((L = H.range) == null ? void 0 : L.row_focus) ?? -1) > D && (H.range.row_focus += a), o === "column" && (H.type === "rangeColumn" || H.type === "rangeBoth") && (((oe = H.range) == null ? void 0 : oe.column_focus) ?? -1) > D && (H.range.column_focus += a);
25413
+ o === "row" && (H.type === "rangeRow" || H.type === "rangeBoth") && (((F = H.range) == null ? void 0 : F.row_focus) ?? -1) > D && (H.range.row_focus += a), o === "column" && (H.type === "rangeColumn" || H.type === "rangeBoth") && (((oe = H.range) == null ? void 0 : oe.column_focus) ?? -1) > D && (H.range.column_focus += a);
25382
25414
  }
25383
25415
  const { dataVerification: ee } = f, B = {};
25384
25416
  ee != null && h.forEach(ee, (D, I) => {
@@ -25455,7 +25487,7 @@ function nf(e, t, r = !0) {
25455
25487
  const Ue = parseFloat(ke);
25456
25488
  Ue < i ? ye[Ue] = xe[Ue] : Ue === i ? l === "lefttop" ? ye[Ue + a] = xe[Ue] : l === "rightbottom" && (ye[Ue] = xe[Ue]) : ye[Ue + a] = xe[Ue];
25457
25489
  }), d.rowhidden_manual = ye;
25458
- const we = (M == null ? void 0 : M.filter) != null ? qt(M.filter) : qt(F);
25490
+ const we = (q == null ? void 0 : q.filter) != null ? qt(q.filter) : qt(L);
25459
25491
  d.rowhidden_filter = we, d.rowhidden = h.assign({}, d.rowhidden_manual, we);
25460
25492
  const He = [];
25461
25493
  if (d.borderInfo && d.borderInfo.length > 0) {
@@ -25492,7 +25524,7 @@ function nf(e, t, r = !0) {
25492
25524
  }
25493
25525
  const Se = [];
25494
25526
  for (let qe = 0; qe < a; qe += 1) {
25495
- const ke = y ? b : i, Ue = ef(m, ke, a, l);
25527
+ const ke = y ? b : i, Ue = tf(m, ke, a, l);
25496
25528
  Se.push(JSON.stringify(Ue));
25497
25529
  let Fe = [];
25498
25530
  y ? Fe = D.filter(
@@ -25549,7 +25581,7 @@ function nf(e, t, r = !0) {
25549
25581
  for (let ye = 0; ye < a; ye += 1) {
25550
25582
  const we = g ? w : i;
25551
25583
  be.push(
25552
- tf(m, we, a, l)
25584
+ nf(m, we, a, l)
25553
25585
  );
25554
25586
  }
25555
25587
  const xe = [];
@@ -25599,7 +25631,7 @@ function nf(e, t, r = !0) {
25599
25631
  l === "lefttop" ? we.splice(i, 0, ...He) : we.splice(i + 1, 0, ...He);
25600
25632
  }
25601
25633
  }
25602
- if (f.data = m, f.config = d, f.calcChain = x, M != null && (f.filter = M.filter, f.filter_select = M.filter_select), f.luckysheet_conditionformat_save = K, f.luckysheet_alternateformat_save = Z, T) {
25634
+ if (f.data = m, f.config = d, f.calcChain = x, q != null && (f.filter = q.filter, f.filter_select = q.filter_select), f.luckysheet_conditionformat_save = K, f.luckysheet_alternateformat_save = Z, T) {
25603
25635
  const D = l === "lefttop" ? i : i + 1;
25604
25636
  for (let I = 0; I < a; I += 1) {
25605
25637
  const Y = D + I;
@@ -25757,7 +25789,7 @@ function xl(e, t) {
25757
25789
  continue;
25758
25790
  const { calcChain: A } = e.luckysheetfile[_], { data: z } = e.luckysheetfile[_];
25759
25791
  for (let v = 0; v < A.length; v += 1) {
25760
- const j = h.cloneDeep(A[v]), k = j.r, L = j.c, oe = j.id, me = $a(e, k, L, oe);
25792
+ const j = h.cloneDeep(A[v]), k = j.r, F = j.c, oe = j.id, me = $a(e, k, F, oe);
25761
25793
  if (r === "row" && _ === i) {
25762
25794
  if (k < a || k > n) {
25763
25795
  const ce = `=${bt(
@@ -25768,7 +25800,7 @@ function xl(e, t) {
25768
25800
  a,
25769
25801
  f
25770
25802
  )}`;
25771
- ((ee = (H = z[k]) == null ? void 0 : H[L]) == null ? void 0 : ee.f) === me && (z[k][L].f = ce, ce.includes("#REF!") && Rn(z[k][L])), k > n && (j.r = k - f), d.push(j);
25803
+ ((ee = (H = z[k]) == null ? void 0 : H[F]) == null ? void 0 : ee.f) === me && (z[k][F].f = ce, ce.includes("#REF!") && Rn(z[k][F])), k > n && (j.r = k - f), d.push(j);
25772
25804
  }
25773
25805
  } else if (r === "row") {
25774
25806
  const ce = `=${bt(
@@ -25779,9 +25811,9 @@ function xl(e, t) {
25779
25811
  a,
25780
25812
  f
25781
25813
  )}`;
25782
- ((ne = (B = z[k]) == null ? void 0 : B[L]) == null ? void 0 : ne.f) === me && (z[k][L].f = ce, ce === "=#REF!" && Rn(z[k][L]));
25814
+ ((ne = (B = z[k]) == null ? void 0 : B[F]) == null ? void 0 : ne.f) === me && (z[k][F].f = ce, ce === "=#REF!" && Rn(z[k][F]));
25783
25815
  } else if (r === "column" && _ === i) {
25784
- if (L < a || L > n) {
25816
+ if (F < a || F > n) {
25785
25817
  const ce = `=${bt(
25786
25818
  me,
25787
25819
  "del",
@@ -25790,7 +25822,7 @@ function xl(e, t) {
25790
25822
  a,
25791
25823
  f
25792
25824
  )}`;
25793
- ((P = (ie = z[k]) == null ? void 0 : ie[L]) == null ? void 0 : P.f) === me && (z[k][L].f = ce, ce.includes("#REF!") && Rn(z[k][L])), L > n && (j.c = L - f), d.push(j);
25825
+ ((P = (ie = z[k]) == null ? void 0 : ie[F]) == null ? void 0 : P.f) === me && (z[k][F].f = ce, ce.includes("#REF!") && Rn(z[k][F])), F > n && (j.c = F - f), d.push(j);
25794
25826
  }
25795
25827
  } else if (r === "column") {
25796
25828
  const ce = `=${bt(
@@ -25801,7 +25833,7 @@ function xl(e, t) {
25801
25833
  a,
25802
25834
  f
25803
25835
  )}`;
25804
- ((Q = (G = z[k]) == null ? void 0 : G[L]) == null ? void 0 : Q.f) === me && (z[k][L].f = ce, ce === "=#REF!" && Rn(z[k][L]));
25836
+ ((Q = (G = z[k]) == null ? void 0 : G[F]) == null ? void 0 : Q.f) === me && (z[k][F].f = ce, ce === "=#REF!" && Rn(z[k][F]));
25805
25837
  }
25806
25838
  }
25807
25839
  Nl(
@@ -25826,8 +25858,8 @@ function xl(e, t) {
25826
25858
  row: [_, A],
25827
25859
  column: [z, v]
25828
25860
  }), g.filter_select != null && y != null && h.forEach(y, (j, k) => {
25829
- const L = y[k].rowhidden, oe = {};
25830
- h.forEach(L, (me, ce) => {
25861
+ const F = y[k].rowhidden, oe = {};
25862
+ h.forEach(F, (me, ce) => {
25831
25863
  const ue = parseFloat(ce);
25832
25864
  ue < a ? oe[ue] = 0 : ue > n && (oe[ue - f] = 0);
25833
25865
  }), h.isEmpty(oe) || (g.filter == null && (g.filter = {}), g.filter[k] = h.cloneDeep(y[k]), g.filter[k].rowhidden = oe, g.filter[k].str = _, g.filter[k].edr = A);
@@ -25841,8 +25873,8 @@ function xl(e, t) {
25841
25873
  row: [_, A],
25842
25874
  column: [z, v]
25843
25875
  }), g.filter_select != null && y != null && h.forEach(y, (j, k) => {
25844
- let L = y[k].cindex;
25845
- L < a ? (g.filter == null && (g.filter = {}), g.filter[L - z] = h.cloneDeep(y[k]), g.filter[L - z].edc = v) : L > n && (L -= f, g.filter == null && (g.filter = {}), g.filter[L - z] = h.cloneDeep(y[k]), g.filter[L - z].cindex = L, g.filter[L - z].stc = z, g.filter[L - z].edc = v);
25876
+ let F = y[k].cindex;
25877
+ F < a ? (g.filter == null && (g.filter = {}), g.filter[F - z] = h.cloneDeep(y[k]), g.filter[F - z].edc = v) : F > n && (F -= f, g.filter == null && (g.filter = {}), g.filter[F - z] = h.cloneDeep(y[k]), g.filter[F - z].cindex = F, g.filter[F - z].stc = z, g.filter[F - z].edc = v);
25846
25878
  }));
25847
25879
  }
25848
25880
  const b = (g == null ? void 0 : g.filter) != null ? qt(g.filter) : qt(y);
@@ -25852,8 +25884,8 @@ function xl(e, t) {
25852
25884
  for (let _ = 0; _ < w.length; _ += 1) {
25853
25885
  const A = w[_].cellrange, z = [];
25854
25886
  for (let v = 0; v < A.length; v += 1) {
25855
- let j = A[v].row[0], k = A[v].row[1], L = A[v].column[0], oe = A[v].column[1];
25856
- r === "row" ? j >= a && k <= n || (j > n ? (j -= f, k -= f) : j < a ? k < a || (k <= n ? k = a - 1 : k -= f) : k > n && (j = a, k -= f), z.push({ row: [j, k], column: [L, oe] })) : r === "column" && (L >= a && oe <= n || (L > n ? (L -= f, oe -= f) : L < a ? oe < a || (oe <= n ? oe = a - 1 : oe -= f) : oe > n && (L = a, oe -= f), z.push({ row: [j, k], column: [L, oe] })));
25887
+ let j = A[v].row[0], k = A[v].row[1], F = A[v].column[0], oe = A[v].column[1];
25888
+ r === "row" ? j >= a && k <= n || (j > n ? (j -= f, k -= f) : j < a ? k < a || (k <= n ? k = a - 1 : k -= f) : k > n && (j = a, k -= f), z.push({ row: [j, k], column: [F, oe] })) : r === "column" && (F >= a && oe <= n || (F > n ? (F -= f, oe -= f) : F < a ? oe < a || (oe <= n ? oe = a - 1 : oe -= f) : oe > n && (F = a, oe -= f), z.push({ row: [j, k], column: [F, oe] })));
25857
25889
  }
25858
25890
  if (z.length > 0) {
25859
25891
  const v = h.clone(w[_]);
@@ -25876,52 +25908,52 @@ function xl(e, t) {
25876
25908
  }
25877
25909
  const { frozen: x } = l;
25878
25910
  x && (r === "row" && (x.type === "rangeRow" || x.type === "rangeBoth") && (((le = x.range) == null ? void 0 : le.row_focus) ?? -1) >= a && (x.range.row_focus -= Math.min(n, x.range.row_focus) - a + 1), r === "column" && (x.type === "rangeColumn" || x.type === "rangeBoth") && (((he = x.range) == null ? void 0 : he.column_focus) ?? -1) >= a && (x.range.column_focus -= Math.min(n, x.range.column_focus) - a + 1));
25879
- const { dataVerification: C } = l, F = {};
25911
+ const { dataVerification: C } = l, L = {};
25880
25912
  C != null && h.forEach(C, (_, A) => {
25881
25913
  const z = Number(A.split("_")[0]), v = Number(A.split("_")[1]), j = C[A];
25882
- r === "row" ? z < a ? F[`${z}_${v}`] = j : z > n && (F[`${z - f}_${v}`] = j) : r === "column" && (v < a ? F[`${z}_${v}`] = j : v > n && (F[`${z}_${v - f}`] = j));
25914
+ r === "row" ? z < a ? L[`${z}_${v}`] = j : z > n && (L[`${z - f}_${v}`] = j) : r === "column" && (v < a ? L[`${z}_${v}`] = j : v > n && (L[`${z}_${v - f}`] = j));
25883
25915
  });
25884
- const { hyperlink: M } = l, O = {};
25885
- if (M != null && h.forEach(M, (_, A) => {
25886
- const z = Number(A.split("_")[0]), v = Number(A.split("_")[1]), j = M[A];
25916
+ const { hyperlink: q } = l, O = {};
25917
+ if (q != null && h.forEach(q, (_, A) => {
25918
+ const z = Number(A.split("_")[0]), v = Number(A.split("_")[1]), j = q[A];
25887
25919
  r === "row" ? z < a ? O[`${z}_${v}`] = j : z > n && (O[`${z - f}_${v}`] = j) : r === "column" && (v < a ? O[`${z}_${v}`] = j : v > n && (O[`${z}_${v - f}`] = j));
25888
25920
  }), r === "row") {
25889
25921
  u.rowlen == null && (u.rowlen = {});
25890
25922
  const _ = {}, A = {};
25891
25923
  h.forEach(u.rowlen, (j, k) => {
25892
- const L = parseFloat(k);
25893
- L < a ? _[L] = u.rowlen[L] : L > n && (_[L - f] = u.rowlen[L]);
25924
+ const F = parseFloat(k);
25925
+ F < a ? _[F] = u.rowlen[F] : F > n && (_[F - f] = u.rowlen[F]);
25894
25926
  }), h.forEach(u.rowReadOnly, (j, k) => {
25895
- const L = parseFloat(k);
25896
- L < a ? A[L] = u.rowReadOnly[L] : L > n && (A[L - f] = u.rowReadOnly[L]);
25927
+ const F = parseFloat(k);
25928
+ F < a ? A[F] = u.rowReadOnly[F] : F > n && (A[F - f] = u.rowReadOnly[F]);
25897
25929
  }), u.rowlen = _, u.rowReadOnly = A;
25898
25930
  const z = {};
25899
25931
  h.forEach(u.rowhidden_manual || {}, (j, k) => {
25900
- const L = parseFloat(k);
25901
- L < a ? z[L] = u.rowhidden_manual[L] : L > n && (z[L - f] = u.rowhidden_manual[L]);
25932
+ const F = parseFloat(k);
25933
+ F < a ? z[F] = u.rowhidden_manual[F] : F > n && (z[F - f] = u.rowhidden_manual[F]);
25902
25934
  }), u.rowhidden_manual = z;
25903
25935
  const v = (g == null ? void 0 : g.filter) != null ? qt(g.filter) : qt(y);
25904
25936
  if (u.rowhidden_filter = v, u.rowhidden = h.assign({}, u.rowhidden_manual, v), u.customHeight == null) {
25905
25937
  u.customHeight = {};
25906
25938
  const j = {};
25907
- h.forEach(u.customHeight, (k, L) => {
25908
- const oe = parseFloat(L);
25939
+ h.forEach(u.customHeight, (k, F) => {
25940
+ const oe = parseFloat(F);
25909
25941
  oe < a ? j[oe] = u.customHeight[oe] : oe > n && (j[oe - f] = u.customHeight[oe]);
25910
25942
  }), u.customHeight = j;
25911
25943
  }
25912
25944
  if (u.customHeight == null) {
25913
25945
  u.customHeight = {};
25914
25946
  const j = {};
25915
- h.forEach(u.customHeight, (k, L) => {
25916
- const oe = parseFloat(L);
25947
+ h.forEach(u.customHeight, (k, F) => {
25948
+ const oe = parseFloat(F);
25917
25949
  oe < a ? j[oe] = u.customHeight[oe] : oe > n && (j[oe - f] = u.customHeight[oe]);
25918
25950
  }), u.customHeight = j;
25919
25951
  }
25920
25952
  if (u.borderInfo && u.borderInfo.length > 0) {
25921
25953
  const j = [];
25922
25954
  for (let k = 0; k < u.borderInfo.length; k += 1) {
25923
- const { rangeType: L } = u.borderInfo[k];
25924
- if (L === "range") {
25955
+ const { rangeType: F } = u.borderInfo[k];
25956
+ if (F === "range") {
25925
25957
  const oe = u.borderInfo[k].range, me = [];
25926
25958
  for (let ce = 0; ce < oe.length; ce += 1) {
25927
25959
  let ue = oe[ce].row[0], _e = oe[ce].row[1];
@@ -25942,7 +25974,7 @@ function xl(e, t) {
25942
25974
  };
25943
25975
  j.push(ce);
25944
25976
  }
25945
- } else if (L === "cell") {
25977
+ } else if (F === "cell") {
25946
25978
  const { row_index: oe } = u.borderInfo[k].value;
25947
25979
  oe < a ? j.push(u.borderInfo[k]) : oe > n && (u.borderInfo[k].value.row_index = oe - (n - a + 1), j.push(u.borderInfo[k]));
25948
25980
  }
@@ -25963,8 +25995,8 @@ function xl(e, t) {
25963
25995
  u.customWidth = {};
25964
25996
  const v = {};
25965
25997
  h.forEach(u.customWidth, (j, k) => {
25966
- const L = parseFloat(k);
25967
- L < a ? v[L] = u.customWidth[L] : L > n && (v[L - f] = u.customWidth[L]);
25998
+ const F = parseFloat(k);
25999
+ F < a ? v[F] = u.customWidth[F] : F > n && (v[F - f] = u.customWidth[F]);
25968
26000
  }), u.customWidth = v;
25969
26001
  }
25970
26002
  u.colReadOnly = A, u.colhidden == null && (u.colhidden = {});
@@ -25977,13 +26009,13 @@ function xl(e, t) {
25977
26009
  for (let j = 0; j < u.borderInfo.length; j += 1) {
25978
26010
  const { rangeType: k } = u.borderInfo[j];
25979
26011
  if (k === "range") {
25980
- const L = u.borderInfo[j].range, oe = [];
25981
- for (let me = 0; me < L.length; me += 1) {
25982
- let ce = L[me].column[0], ue = L[me].column[1];
26012
+ const F = u.borderInfo[j].range, oe = [];
26013
+ for (let me = 0; me < F.length; me += 1) {
26014
+ let ce = F[me].column[0], ue = F[me].column[1];
25983
26015
  for (let _e = a; _e <= n; _e += 1)
25984
- _e < L[me].column[0] ? (ce -= 1, ue -= 1) : _e <= L[me].column[1] && (ue -= 1);
26016
+ _e < F[me].column[0] ? (ce -= 1, ue -= 1) : _e <= F[me].column[1] && (ue -= 1);
25985
26017
  ue >= ce && oe.push({
25986
- row: L[me].row,
26018
+ row: F[me].row,
25987
26019
  column: [ce, ue]
25988
26020
  });
25989
26021
  }
@@ -25998,8 +26030,8 @@ function xl(e, t) {
25998
26030
  v.push(me);
25999
26031
  }
26000
26032
  } else if (k === "cell") {
26001
- const { col_index: L } = u.borderInfo[j].value;
26002
- L < a ? v.push(u.borderInfo[j]) : L > n && (u.borderInfo[j].value.col_index = L - (n - a + 1), v.push(u.borderInfo[j]));
26033
+ const { col_index: F } = u.borderInfo[j].value;
26034
+ F < a ? v.push(u.borderInfo[j]) : F > n && (u.borderInfo[j].value.col_index = F - (n - a + 1), v.push(u.borderInfo[j]));
26003
26035
  }
26004
26036
  }
26005
26037
  u.borderInfo = v;
@@ -26008,7 +26040,7 @@ function xl(e, t) {
26008
26040
  c[v].splice(a, f);
26009
26041
  l.column = (pe = c[0]) == null ? void 0 : pe.length;
26010
26042
  }
26011
- e.luckysheet_select_save = void 0, l.data = c, l.config = u, l.calcChain = d, g != null && (l.filter = g.filter, l.filter_select = g.filter_select), l.luckysheet_conditionformat_save = T, l.luckysheet_alternateformat_save = N, l.dataVerification = F, l.hyperlink = O, $l(m, l);
26043
+ e.luckysheet_select_save = void 0, l.data = c, l.config = u, l.calcChain = d, g != null && (l.filter = g.filter, l.filter_select = g.filter_select), l.luckysheet_conditionformat_save = T, l.luckysheet_alternateformat_save = N, l.dataVerification = L, l.hyperlink = O, $l(m, l);
26012
26044
  const V = Cl(u.merge);
26013
26045
  if (r === "row") {
26014
26046
  const _ = V ? Math.min(a, V.minR) : a;
@@ -26043,7 +26075,7 @@ function xl(e, t) {
26043
26075
  _.length > 0 && (e.formulaCache.execFunctionExist = _, Wn(e, null, null, null, null, Re(e)), e.formulaCache.execFunctionExist = void 0);
26044
26076
  }
26045
26077
  }
26046
- function jd(e, t) {
26078
+ function Xd(e, t) {
26047
26079
  if (!e.luckysheet_select_save || e.luckysheet_select_save.length > 1)
26048
26080
  return "noMulti";
26049
26081
  const r = Le(e, e.currentSheetId);
@@ -26065,7 +26097,7 @@ function jd(e, t) {
26065
26097
  }
26066
26098
  return e.luckysheetfile[r].config = e.config, "";
26067
26099
  }
26068
- function Xd(e, t) {
26100
+ function Zd(e, t) {
26069
26101
  if (!e.luckysheet_select_save || e.luckysheet_select_save.length > 1)
26070
26102
  return "noMulti";
26071
26103
  const r = Le(e, e.currentSheetId);
@@ -26083,7 +26115,7 @@ function Xd(e, t) {
26083
26115
  }
26084
26116
  return e.luckysheetfile[r].config = e.config, "";
26085
26117
  }
26086
- function Zd(e) {
26118
+ function Kd(e) {
26087
26119
  var t, r, a, n;
26088
26120
  if (!e.luckysheet_select_save || !e.config.colhidden && !e.config.rowhidden)
26089
26121
  return !1;
@@ -26099,7 +26131,7 @@ function Zd(e) {
26099
26131
  }
26100
26132
  return !1;
26101
26133
  }
26102
- function Kd(e, t) {
26134
+ function Qd(e, t) {
26103
26135
  let r = 1;
26104
26136
  if (!e.luckysheet_select_save) return 0;
26105
26137
  const a = e.luckysheet_select_save[0], n = e.config.rowhidden ?? {}, o = e.config.colhidden ?? {};
@@ -26144,7 +26176,7 @@ function Kd(e, t) {
26144
26176
  }
26145
26177
  return r;
26146
26178
  }
26147
- function Qd(e, t, r) {
26179
+ function Jd(e, t, r) {
26148
26180
  let a = e.length;
26149
26181
  const n = Mt(r).pivotTable, { title: o } = n;
26150
26182
  for (let i = 0; i < e.length; i += 1)
@@ -26156,7 +26188,7 @@ function Qd(e, t, r) {
26156
26188
  }
26157
26189
  return t ? o + (a + 1) : `Sheet${a + 1}`;
26158
26190
  }
26159
- function rf(e) {
26191
+ function af(e) {
26160
26192
  let t;
26161
26193
  e.indexOf("rgba") > -1 ? t = e.replace("rgba(", "").replace(")", "").split(",") : t = e.replace("rgb(", "").replace(")", "").split(",");
26162
26194
  const r = Number(t[0]), a = Number(t[1]), n = Number(t[2]);
@@ -26177,7 +26209,7 @@ function wt(e) {
26177
26209
  o = a(t[i]), n += o * 26 ** (r - i - 1);
26178
26210
  return n === 0 ? NaN : n - 1;
26179
26211
  }
26180
- function af(e) {
26212
+ function of(e) {
26181
26213
  return typeof e != "string" ? e : e.replace(/<script>/g, "&lt;script&gt;").replace(/<\/script>/, "&lt;/script&gt;");
26182
26214
  }
26183
26215
  function Un(e) {
@@ -26201,7 +26233,7 @@ function $r(e, t) {
26201
26233
  const r = Le(e, t);
26202
26234
  return h.isNil(r) ? null : e.luckysheetfile[r];
26203
26235
  }
26204
- function Jd(e) {
26236
+ function em(e) {
26205
26237
  const t = /* @__PURE__ */ new Date(), r = t.getFullYear();
26206
26238
  let a = t.getMonth(), n = t.getDate(), o = t.getHours(), i = t.getMinutes(), l = t.getSeconds();
26207
26239
  a += 1, a < 10 && (a = `0${a}`), n < 10 && (n = `0${n}`), o < 10 && (o = `0${o}`), i < 10 && (i = `0${i}`), l < 10 && (l = `0${l}`);
@@ -26214,10 +26246,10 @@ function Io(e, t) {
26214
26246
  return typeof n < "u" ? n : r;
26215
26247
  });
26216
26248
  }
26217
- function em(e) {
26249
+ function tm(e) {
26218
26250
  return e.replace("~*", "\\*").replace("~?", "\\?").replace(".", "\\.").replace("*", ".*").replace("?", ".");
26219
26251
  }
26220
- function tm(e) {
26252
+ function nm(e) {
26221
26253
  let n = "";
26222
26254
  for (; e >= 0; )
26223
26255
  n = String.fromCharCode(e % 26 + 97) + n, e = Math.floor(e / 26) - 1;
@@ -26240,7 +26272,7 @@ function nn(e, t) {
26240
26272
  return !0;
26241
26273
  }) && (h.isUndefined(e.allowEdit) ? !0 : e.allowEdit) && !e.isFlvReadOnly;
26242
26274
  }
26243
- function of(e, t) {
26275
+ function lf(e, t) {
26244
26276
  const r = e.config, a = h.isUndefined(t) ? e.luckysheet_select_save : t;
26245
26277
  return h.every(a, (n) => {
26246
26278
  var o, i;
@@ -26257,10 +26289,10 @@ function of(e, t) {
26257
26289
  return !0;
26258
26290
  }) && (h.isUndefined(e.isFlvReadOnly) ? !0 : e.isFlvReadOnly);
26259
26291
  }
26260
- function lf(e) {
26292
+ function sf(e) {
26261
26293
  return /^[a-zA-Z]\d+$/.test(e);
26262
26294
  }
26263
- function sf(e) {
26295
+ function cf(e) {
26264
26296
  const t = document.createElement("div");
26265
26297
  t.innerHTML = e;
26266
26298
  const r = t.querySelectorAll("span");
@@ -26325,7 +26357,7 @@ function Sl(e, t, r) {
26325
26357
  }
26326
26358
  }), s || u;
26327
26359
  }
26328
- function cf(e, t) {
26360
+ function uf(e, t) {
26329
26361
  var o;
26330
26362
  let r = "";
26331
26363
  const a = e.includes("."), n = t;
@@ -26335,7 +26367,7 @@ function cf(e, t) {
26335
26367
  } else n ? r = "#,##0" : r = "General";
26336
26368
  return r;
26337
26369
  }
26338
- const rn = new Error("invalid params"), Do = new Error("sheet not found"), uf = (e) => {
26370
+ const rn = new Error("invalid params"), Do = new Error("sheet not found"), ff = (e) => {
26339
26371
  const t = [];
26340
26372
  if (e == null)
26341
26373
  return t;
@@ -26345,7 +26377,7 @@ const rn = new Error("invalid params"), Do = new Error("sheet not found"), uf =
26345
26377
  n != null && t.push({ r, c: a, v: n });
26346
26378
  }
26347
26379
  return t;
26348
- }, nm = (e, t, r) => {
26380
+ }, rm = (e, t, r) => {
26349
26381
  const a = h.maxBy(e, "r"), n = h.maxBy(e, "c");
26350
26382
  let o = ((a == null ? void 0 : a.r) ?? 0) + 1, i = ((n == null ? void 0 : n.c) ?? 0) + 1;
26351
26383
  if (t != null && r != null && t > 0 && r > 0 && (o = Math.max(o, t), i = Math.max(i, r)), o && i) {
@@ -26368,11 +26400,11 @@ function an(e, t = {}) {
26368
26400
  throw Do;
26369
26401
  return a;
26370
26402
  }
26371
- function rm(e, t = {}) {
26403
+ function am(e, t = {}) {
26372
26404
  const r = an(e, t);
26373
- return { ...r, celldata: uf(r.data) };
26405
+ return { ...r, celldata: ff(r.data) };
26374
26406
  }
26375
- function am(e, t, r, a = {}) {
26407
+ function im(e, t, r, a = {}) {
26376
26408
  const n = an(e, a), i = {
26377
26409
  row: "rangeRow",
26378
26410
  column: "rangeColumn",
@@ -26387,12 +26419,12 @@ function am(e, t, r, a = {}) {
26387
26419
  }
26388
26420
  };
26389
26421
  }
26390
- function im(e, t, r, a, n, o = {}) {
26422
+ function om(e, t, r, a, n, o = {}) {
26391
26423
  if (!["row", "column"].includes(t) || !h.isNumber(r) || !h.isNumber(a) || !["lefttop", "rightbottom"].includes(n))
26392
26424
  throw rn;
26393
26425
  const i = an(e, o);
26394
26426
  try {
26395
- nf(e, {
26427
+ rf(e, {
26396
26428
  type: t,
26397
26429
  index: r,
26398
26430
  count: a,
@@ -26403,13 +26435,13 @@ function im(e, t, r, a, n, o = {}) {
26403
26435
  console.error(l);
26404
26436
  }
26405
26437
  }
26406
- function om(e, t, r, a, n = {}) {
26438
+ function lm(e, t, r, a, n = {}) {
26407
26439
  if (!["row", "column"].includes(t) || !h.isNumber(r) || !h.isNumber(a))
26408
26440
  throw rn;
26409
26441
  const o = an(e, n);
26410
26442
  xl(e, { type: t, start: r, end: a, id: o.id });
26411
26443
  }
26412
- function lm(e, t, r) {
26444
+ function sm(e, t, r) {
26413
26445
  if (!["row", "column"].includes(r))
26414
26446
  throw rn;
26415
26447
  if (!e || !e.config) return;
@@ -26428,7 +26460,7 @@ function lm(e, t, r) {
26428
26460
  }
26429
26461
  e.luckysheetfile[a].config = e.config;
26430
26462
  }
26431
- function sm(e, t, r) {
26463
+ function cm(e, t, r) {
26432
26464
  if (!["row", "column"].includes(r))
26433
26465
  throw rn;
26434
26466
  if (!e || !e.config) return;
@@ -26447,7 +26479,7 @@ function sm(e, t, r) {
26447
26479
  }
26448
26480
  e.luckysheetfile[a].config = e.config;
26449
26481
  }
26450
- function ff(e, t, r = {}, a = !1) {
26482
+ function df(e, t, r = {}, a = !1) {
26451
26483
  if (!h.isPlainObject(t))
26452
26484
  throw rn;
26453
26485
  const n = an(e, r), o = n.config || {};
@@ -26455,7 +26487,7 @@ function ff(e, t, r = {}, a = !1) {
26455
26487
  Number(l) >= 0 && Number(i) >= 0 && (o.rowlen[Number(l)] = Number(i), a && h.isUndefined(o.customHeight) ? o.customHeight = { [l]: 1 } : a && (o.customHeight[l] = 1));
26456
26488
  }), n.config = o, e.currentSheetId === n.id && (e.config = o);
26457
26489
  }
26458
- function cm(e, t, r = {}, a = !1) {
26490
+ function um(e, t, r = {}, a = !1) {
26459
26491
  if (!h.isPlainObject(t))
26460
26492
  throw rn;
26461
26493
  const n = an(e, r), o = n.config || {};
@@ -26463,7 +26495,7 @@ function cm(e, t, r = {}, a = !1) {
26463
26495
  Number(l) >= 0 && Number(i) >= 0 && (o.columnlen[Number(l)] = Number(i), a && h.isUndefined(o.customWidth) ? o.customWidth = { [l]: 1 } : a && (o.customWidth[l] = 1));
26464
26496
  }), n.config = o, e.currentSheetId === n.id && (e.config = o);
26465
26497
  }
26466
- function df(e, t, r = {}) {
26498
+ function mf(e, t, r = {}) {
26467
26499
  if (!h.isArray(t) || t.length === 0)
26468
26500
  throw rn;
26469
26501
  const o = (an(e, r).config || {}).rowlen || {}, i = {};
@@ -26474,7 +26506,7 @@ function df(e, t, r = {}) {
26474
26506
  }
26475
26507
  }), i;
26476
26508
  }
26477
- function um(e, t, r = {}) {
26509
+ function fm(e, t, r = {}) {
26478
26510
  if (!h.isArray(t) || t.length === 0)
26479
26511
  throw rn;
26480
26512
  const o = (an(e, r).config || {}).columnlen || {}, i = {};
@@ -26485,16 +26517,16 @@ function um(e, t, r = {}) {
26485
26517
  }
26486
26518
  }), i;
26487
26519
  }
26488
- function mf(e) {
26520
+ function hf(e) {
26489
26521
  return Number.isFinite(Number(e)) && !Number.isNaN(Number(e));
26490
26522
  }
26491
- function hf(e) {
26523
+ function pf(e) {
26492
26524
  return /^0x?[a-fA-F0-9]+$/.test(e);
26493
26525
  }
26494
26526
  function kl(e) {
26495
26527
  return typeof e != "string" ? !1 : ["price", "fully_diluted_value"].includes(e) || e.toLowerCase().includes("usd") || e.toLowerCase().includes("price_in");
26496
26528
  }
26497
- const El = `$#,##0.${"0".repeat(2)}`, pf = ({
26529
+ const El = `$#,##0.${"0".repeat(2)}`, gf = ({
26498
26530
  row: e,
26499
26531
  column: t,
26500
26532
  newValue: r,
@@ -26502,7 +26534,7 @@ const El = `$#,##0.${"0".repeat(2)}`, pf = ({
26502
26534
  sheetEditorRef: n,
26503
26535
  shouldIgnoreUsdValue: o
26504
26536
  }) => {
26505
- var g, b, w, T, $, N, x, C, F, M, O, V, K;
26537
+ var g, b, w, T, $, N, x, C, L, q, O, V, K;
26506
26538
  if (!a || a.length === 0) {
26507
26539
  (g = n.current) == null || g.setCellError(e, t, {
26508
26540
  title: "No results",
@@ -26515,7 +26547,7 @@ const El = `$#,##0.${"0".repeat(2)}`, pf = ({
26515
26547
  "row",
26516
26548
  c - 1,
26517
26549
  m
26518
- )), d > 0 && ((F = n.current) == null || F.insertRowOrColumn(
26550
+ )), d > 0 && ((L = n.current) == null || L.insertRowOrColumn(
26519
26551
  "column",
26520
26552
  f - 1,
26521
26553
  d
@@ -26602,7 +26634,7 @@ const El = `$#,##0.${"0".repeat(2)}`, pf = ({
26602
26634
  }
26603
26635
  }
26604
26636
  } else {
26605
- if (gf({
26637
+ if (yf({
26606
26638
  row: e,
26607
26639
  column: t,
26608
26640
  apiData: a,
@@ -26686,7 +26718,7 @@ const El = `$#,##0.${"0".repeat(2)}`, pf = ({
26686
26718
  }
26687
26719
  }
26688
26720
  if (p) {
26689
- (M = n.current) == null || M.setCellValuesByRange(y, p, {}, !1);
26721
+ (q = n.current) == null || q.setCellValuesByRange(y, p, {}, !1);
26690
26722
  const W = (V = (O = n.current) == null ? void 0 : O.getWorkbookContext()) == null ? void 0 : V.hooks;
26691
26723
  (K = W == null ? void 0 : W.updateCellYdoc) == null || K.call(W, l);
26692
26724
  }
@@ -26694,7 +26726,7 @@ const El = `$#,##0.${"0".repeat(2)}`, pf = ({
26694
26726
  var o, i, l;
26695
26727
  const a = (i = (o = r.current) == null ? void 0 : o.getSheet()) == null ? void 0 : i.data, n = (l = a == null ? void 0 : a[e]) == null ? void 0 : l[t];
26696
26728
  return n == null ? {} : typeof n == "object" ? { ...n } : { v: n };
26697
- }, na = (e) => mf(e) && !hf(e), ql = (e) => Array.isArray(e) ? e.map((t) => ({ ...t })) : e, Dn = (e, t, r) => {
26729
+ }, na = (e) => hf(e) && !pf(e), ql = (e) => Array.isArray(e) ? e.map((t) => ({ ...t })) : e, Dn = (e, t, r) => {
26698
26730
  const a = na(e);
26699
26731
  if (r && a && kl(r)) {
26700
26732
  const { s: l, ...u } = t || {};
@@ -26719,7 +26751,7 @@ const El = `$#,##0.${"0".repeat(2)}`, pf = ({
26719
26751
  if (!e || typeof e != "object") return e ?? {};
26720
26752
  const t = e.ct;
26721
26753
  return !t || !Array.isArray(t.s) ? { ...e } : { ...e, ct: { ...t, s: ql(t.s) } };
26722
- }, gf = ({
26754
+ }, yf = ({
26723
26755
  row: e,
26724
26756
  column: t,
26725
26757
  apiData: r,
@@ -26747,7 +26779,7 @@ const El = `$#,##0.${"0".repeat(2)}`, pf = ({
26747
26779
  {},
26748
26780
  !0
26749
26781
  ), !0;
26750
- }, yf = (e) => e !== null && typeof e == "object" && !Array.isArray(e) && (e == null ? void 0 : e.responseType) === "smart-contract", bf = async ({
26782
+ }, bf = (e) => e !== null && typeof e == "object" && !Array.isArray(e) && (e == null ? void 0 : e.responseType) === "smart-contract", wf = async ({
26751
26783
  result: e,
26752
26784
  handleSmartContractQuery: t,
26753
26785
  sheetEditorRef: r,
@@ -26762,10 +26794,10 @@ const El = `$#,##0.${"0".repeat(2)}`, pf = ({
26762
26794
  row: a,
26763
26795
  column: n,
26764
26796
  newValue: o,
26765
- formulaResponseUiSync: pf
26797
+ formulaResponseUiSync: gf
26766
26798
  }, { callSignature: l } = e;
26767
26799
  await t(i)(l);
26768
- }, fm = async ({
26800
+ }, dm = async ({
26769
26801
  functionCallString: e,
26770
26802
  sheetEditorRef: t,
26771
26803
  dataBlockRow: r,
@@ -26777,10 +26809,10 @@ const El = `$#,##0.${"0".repeat(2)}`, pf = ({
26777
26809
  const i = await import("@fileverse-dev/formulajs"), l = e == null ? void 0 : e.match(/^(\w+)\((.*)\)$/);
26778
26810
  if (!l)
26779
26811
  throw new Error(`Invalid function call format: ${e}`);
26780
- const u = l[1].toUpperCase(), s = l[2], f = wf(s).map((m) => {
26812
+ const u = l[1].toUpperCase(), s = l[2], f = vf(s).map((m) => {
26781
26813
  var d;
26782
26814
  if (Ml(m)) {
26783
- const p = vf(m);
26815
+ const p = _f(m);
26784
26816
  return p == null ? void 0 : p.map((g) => {
26785
26817
  var b;
26786
26818
  return (b = t == null ? void 0 : t.current) == null ? void 0 : b.getCellValue(g == null ? void 0 : g.row, g == null ? void 0 : g.column);
@@ -26798,8 +26830,8 @@ const El = `$#,##0.${"0".repeat(2)}`, pf = ({
26798
26830
  });
26799
26831
  if (typeof i[u] == "function") {
26800
26832
  const m = await i[u](...f);
26801
- if (yf(m)) {
26802
- await bf({
26833
+ if (bf(m)) {
26834
+ await wf({
26803
26835
  result: m,
26804
26836
  handleSmartContractQuery: n,
26805
26837
  sheetEditorRef: t,
@@ -26820,7 +26852,7 @@ const El = `$#,##0.${"0".repeat(2)}`, pf = ({
26820
26852
  return;
26821
26853
  }
26822
26854
  };
26823
- function wf(e) {
26855
+ function vf(e) {
26824
26856
  if (!(e != null && e.trim()))
26825
26857
  return [];
26826
26858
  const t = [];
@@ -26883,7 +26915,7 @@ function ra(e) {
26883
26915
  column: n
26884
26916
  };
26885
26917
  }
26886
- function vf(e) {
26918
+ function _f(e) {
26887
26919
  if (!Ml(e))
26888
26920
  return null;
26889
26921
  const t = e.split(":"), r = ra(t[0]), a = ra(t[1]);
@@ -26900,212 +26932,212 @@ export {
26900
26932
  Gt as A,
26901
26933
  Xt as B,
26902
26934
  Wn as C,
26903
- Ad as D,
26904
- kf as E,
26905
- Sf as F,
26935
+ Sd as D,
26936
+ Ef as E,
26937
+ kf as F,
26906
26938
  Ps as G,
26907
26939
  tn as H,
26908
- ld as I,
26909
- Mf as J,
26910
- Of as K,
26940
+ sd as I,
26941
+ Rf as J,
26942
+ Lf as K,
26911
26943
  ga as L,
26912
26944
  Ke as M,
26913
26945
  fa as N,
26914
26946
  gr as O,
26915
26947
  Lt as P,
26916
- Df as Q,
26948
+ Of as Q,
26917
26949
  Gs as R,
26918
- Bf as S,
26950
+ Pf as S,
26919
26951
  gl as T,
26920
26952
  sr as U,
26921
26953
  Je as V,
26922
26954
  Qs as W,
26923
- md as X,
26955
+ hd as X,
26924
26956
  il as Y,
26925
- cd as Z,
26957
+ ud as Z,
26926
26958
  uc as _,
26927
26959
  Le as a,
26928
- Ld as a$,
26960
+ Fd as a$,
26929
26961
  Eo as a0,
26930
26962
  yn as a1,
26931
26963
  ya as a2,
26932
26964
  br as a3,
26933
26965
  _a as a4,
26934
- Uf as a5,
26966
+ Wf as a5,
26935
26967
  Ws as a6,
26936
26968
  un as a7,
26937
26969
  Xe as a8,
26938
- wu as a9,
26939
- Gd as aA,
26970
+ vu as a9,
26971
+ Yd as aA,
26940
26972
  Ze as aB,
26941
26973
  an as aC,
26942
26974
  Kr as aD,
26943
26975
  Do as aE,
26944
26976
  Qr as aF,
26945
26977
  Et as aG,
26946
- fd as aH,
26978
+ dd as aH,
26947
26979
  rn as aI,
26948
- Ku as aJ,
26949
- nm as aK,
26980
+ Qu as aJ,
26981
+ rm as aK,
26950
26982
  Kt as aL,
26951
- om as aM,
26952
- am as aN,
26953
- df as aO,
26954
- rm as aP,
26955
- lm as aQ,
26956
- im as aR,
26957
- wd as aS,
26983
+ lm as aM,
26984
+ im as aN,
26985
+ mf as aO,
26986
+ am as aP,
26987
+ sm as aQ,
26988
+ om as aR,
26989
+ vd as aS,
26958
26990
  ta as aT,
26959
- cm as aU,
26960
- ff as aV,
26961
- sm as aW,
26962
- Fd as aX,
26963
- Ed as aY,
26964
- Dd as aZ,
26965
- Od as a_,
26966
- ud as aa,
26967
- Ju as ab,
26968
- vu as ac,
26969
- um as ad,
26991
+ um as aU,
26992
+ df as aV,
26993
+ cm as aW,
26994
+ Bd as aX,
26995
+ qd as aY,
26996
+ Od as aZ,
26997
+ Ld as a_,
26998
+ fd as aa,
26999
+ ef as ab,
27000
+ _u as ac,
27001
+ fm as ad,
26970
27002
  fl as ae,
26971
27003
  Yt as af,
26972
27004
  wo as ag,
26973
- of as ah,
27005
+ lf as ah,
26974
27006
  _l as ai,
26975
27007
  mn as aj,
26976
27008
  nc as ak,
26977
27009
  Rt as al,
26978
- _u as am,
27010
+ Tu as am,
26979
27011
  ml as an,
26980
- Pf as ao,
27012
+ Hf as ao,
26981
27013
  Hn as ap,
26982
27014
  zn as aq,
26983
- tm as ar,
26984
- em as as,
27015
+ nm as ar,
27016
+ tm as as,
26985
27017
  Yn as at,
26986
27018
  Tr as au,
26987
- rf as av,
27019
+ af as av,
26988
27020
  hl as aw,
26989
27021
  el as ax,
26990
- Bu as ay,
27022
+ Pu as ay,
26991
27023
  qn as az,
26992
27024
  _n as b,
26993
27025
  wl as b$,
26994
- Rd as b0,
26995
- Id as b1,
26996
- jf as b2,
26997
- Sd as b3,
26998
- Kd as b4,
27026
+ Id as b0,
27027
+ Dd as b1,
27028
+ Xf as b2,
27029
+ kd as b3,
27030
+ Qd as b4,
26999
27031
  Yc as b5,
27000
- Gf as b6,
27032
+ Yf as b6,
27001
27033
  Xc as b7,
27002
- qd as b8,
27003
- Wf as b9,
27004
- Kf as bA,
27005
- Jf as bB,
27006
- Qf as bC,
27034
+ Md as b8,
27035
+ Vf as b9,
27036
+ Qf as bA,
27037
+ ed as bB,
27038
+ Jf as bC,
27007
27039
  cr as bD,
27008
27040
  Ac as bE,
27009
- zd as bF,
27010
- bd as bG,
27011
- yd as bH,
27012
- gd as bI,
27013
- od as bJ,
27014
- Ud as bK,
27041
+ Ud as bF,
27042
+ wd as bG,
27043
+ bd as bH,
27044
+ yd as bI,
27045
+ ld as bJ,
27046
+ Wd as bK,
27015
27047
  xl as bL,
27016
27048
  xt as bM,
27017
- Wd as bN,
27049
+ Vd as bN,
27018
27050
  Un as bO,
27019
- af as bP,
27020
- Hd as bQ,
27021
- Pd as bR,
27051
+ of as bP,
27052
+ zd as bQ,
27053
+ Hd as bR,
27022
27054
  Jr as bS,
27023
27055
  Go as bT,
27024
27056
  Ns as bU,
27025
27057
  ks as bV,
27026
- Tu as bW,
27058
+ $u as bW,
27027
27059
  Tl as bX,
27028
27060
  qt as bY,
27029
- Vf as bZ,
27030
- Ff as b_,
27061
+ Gf as bZ,
27062
+ Bf as b_,
27031
27063
  Zc as ba,
27032
- Af as bb,
27033
- _d as bc,
27034
- Yf as bd,
27035
- Jd as be,
27036
- Md as bf,
27037
- Bd as bg,
27038
- Xf as bh,
27039
- kd as bi,
27064
+ Sf as bb,
27065
+ Td as bc,
27066
+ jf as bd,
27067
+ em as be,
27068
+ Rd as bf,
27069
+ Pd as bg,
27070
+ Zf as bh,
27071
+ Ed as bi,
27040
27072
  yr as bj,
27041
27073
  va as bk,
27042
- zf as bl,
27043
- vd as bm,
27044
- Yu as bn,
27045
- hd as bo,
27046
- pd as bp,
27047
- ad as bq,
27074
+ Uf as bl,
27075
+ _d as bm,
27076
+ ju as bn,
27077
+ pd as bo,
27078
+ gd as bp,
27079
+ id as bq,
27048
27080
  Gn as br,
27049
27081
  yl as bs,
27050
27082
  Oc as bt,
27051
27083
  Pc as bu,
27052
- ed as bv,
27053
- td as bw,
27084
+ td as bv,
27085
+ nd as bw,
27054
27086
  qo as bx,
27055
- Zf as by,
27056
- xd as bz,
27087
+ Kf as by,
27088
+ Ad as bz,
27057
27089
  mc as c,
27058
- Rf as c0,
27059
- qf as c1,
27090
+ If as c0,
27091
+ Mf as c1,
27060
27092
  bl as c2,
27061
27093
  Bc as c3,
27062
- Hf as c4,
27063
- jd as c5,
27064
- Vd as c6,
27065
- nf as c7,
27094
+ zf as c4,
27095
+ Xd as c5,
27096
+ Gd as c6,
27097
+ rf as c7,
27066
27098
  sc as c8,
27067
- Zd as c9,
27068
- wf as cA,
27099
+ Kd as c9,
27100
+ vf as cA,
27069
27101
  Ml as cB,
27070
- vf as cC,
27102
+ _f as cC,
27071
27103
  mr as cD,
27072
27104
  ra as cE,
27073
- yf as cF,
27074
- bf as cG,
27105
+ bf as cF,
27106
+ wf as cG,
27075
27107
  El as cH,
27076
27108
  lc as ca,
27077
27109
  ua as cb,
27078
- dd as cc,
27110
+ md as cc,
27079
27111
  Cn as cd,
27080
- Nf as ce,
27112
+ xf as ce,
27081
27113
  Cs as cf,
27082
27114
  yt as cg,
27083
- nd as ch,
27115
+ rd as ch,
27084
27116
  Vn as ci,
27085
27117
  au as cj,
27086
27118
  Io as ck,
27087
- Cd as cl,
27088
- Nd as cm,
27089
- Xu as cn,
27090
- ju as co,
27091
- rd as cp,
27092
- xf as cq,
27093
- id as cr,
27094
- Td as cs,
27119
+ Nd as cl,
27120
+ xd as cm,
27121
+ Zu as cn,
27122
+ Xu as co,
27123
+ ad as cp,
27124
+ Af as cq,
27125
+ od as cr,
27126
+ $d as cs,
27095
27127
  Ss as ct,
27096
- Xd as cu,
27097
- $d as cv,
27098
- sd as cw,
27099
- Yd as cx,
27128
+ Zd as cu,
27129
+ Cd as cv,
27130
+ cd as cw,
27131
+ jd as cx,
27100
27132
  Ol as cy,
27101
- hf as cz,
27133
+ pf as cz,
27102
27134
  Re as d,
27103
- fm as e,
27104
- pf as f,
27135
+ dm as e,
27136
+ gf as f,
27105
27137
  Bo as g,
27106
- uf as h,
27138
+ ff as h,
27107
27139
  Mc as i,
27108
- Qd as j,
27140
+ Jd as j,
27109
27141
  pr as k,
27110
27142
  Mt as l,
27111
27143
  Ms as m,
@@ -27118,8 +27150,8 @@ export {
27118
27150
  Jt as t,
27119
27151
  vt as u,
27120
27152
  nn as v,
27121
- If as w,
27122
- Ef as x,
27123
- Lf as y,
27153
+ Df as w,
27154
+ qf as x,
27155
+ Ff as y,
27124
27156
  Ds as z
27125
27157
  };