@fileverse-dev/dsheet 2.1.1-remove-1 → 2.1.1-test-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.
@@ -4,8 +4,8 @@ var Ye = (e, t, r) => Hl(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import h, { isPlainObject as uo } from "lodash";
5
5
  import fo from "dayjs";
6
6
  import * as rr from "@fileverse-dev/formulajs";
7
- import { F as zl } from "./crypto-constants-CqpCRs86.js";
8
- var Ul = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
+ import { F as Ul } from "./crypto-constants-CqpCRs86.js";
8
+ var zl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
9
  function Yo(e) {
10
10
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
11
11
  }
@@ -59,7 +59,7 @@ var jo = { exports: {} };
59
59
  (function(e) {
60
60
  (function(t, r) {
61
61
  e.exports ? e.exports = r() : t.numeral = r();
62
- })(Ul, function() {
62
+ })(zl, function() {
63
63
  var t, r, a = "2.0.6", n = {}, o = {}, i = {
64
64
  currentLocale: "en",
65
65
  zeroFormat: null,
@@ -599,7 +599,7 @@ const ts = Object.keys(rr), Qo = {
599
599
  cannotSelectMultiple: "Cannot select multiple selections"
600
600
  },
601
601
  functionlist: [
602
- ...zl,
602
+ ...Ul,
603
603
  {
604
604
  n: "SUMIF",
605
605
  t: 0,
@@ -12175,19 +12175,6 @@ If the value is FALSE, return the accrued interest from the first interest accru
12175
12175
  allowOptionText: "Optional",
12176
12176
  selectCategory: "Or select a category"
12177
12177
  },
12178
- removeDuplicates: {
12179
- title: "Remove duplicates",
12180
- dataHasHeaderRow: "Data has header row",
12181
- columnsToAnalyze: "Columns to analyze",
12182
- selectAll: "Select all",
12183
- removeDuplicates: "Remove duplicates",
12184
- result: "{removed} duplicate rows found and removed. {remaining} unique rows remain.",
12185
- noMulti: "Cannot perform this operation on multiple selection areas, please select a single area",
12186
- noMerge: "This operation cannot be performed on merged cells",
12187
- noColumns: "Select at least one column to analyze",
12188
- noSelection: "Please select the scope of the operation",
12189
- readOnly: "Cannot remove duplicates in read-only mode"
12190
- },
12191
12178
  drag: {
12192
12179
  noMerge: "Cannot perform this operation on merged cells",
12193
12180
  affectPivot: "This change cannot be made to the selected cell because it will affect the pivot table!",
@@ -12371,15 +12358,15 @@ function sr(e) {
12371
12358
  sr.isFactory = !0;
12372
12359
  sr.SYMBOL = rs;
12373
12360
  const as = ">";
12374
- function zr(e, t) {
12361
+ function Ur(e, t) {
12375
12362
  return e > t;
12376
12363
  }
12377
- zr.SYMBOL = as;
12364
+ Ur.SYMBOL = as;
12378
12365
  const is = ">=";
12379
- function Ur(e, t) {
12366
+ function zr(e, t) {
12380
12367
  return e >= t;
12381
12368
  }
12382
- Ur.SYMBOL = is;
12369
+ zr.SYMBOL = is;
12383
12370
  const os = "<";
12384
12371
  function Wr(e, t) {
12385
12372
  return e < t;
@@ -12442,8 +12429,8 @@ _t(Pr.SYMBOL, Pr);
12442
12429
  _t(Hr.SYMBOL, Hr);
12443
12430
  _t(Xr.SYMBOL, Xr);
12444
12431
  _t(sr.SYMBOL, sr);
12445
- _t(zr.SYMBOL, zr);
12446
12432
  _t(Ur.SYMBOL, Ur);
12433
+ _t(zr.SYMBOL, zr);
12447
12434
  _t(Wr.SYMBOL, Wr);
12448
12435
  _t(Vr.SYMBOL, Vr);
12449
12436
  _t(Yr.SYMBOL, Yr);
@@ -14034,7 +14021,7 @@ function Hf(e, t, r) {
14034
14021
  u.setStart(o, i), u.setEnd(l, c), a.removeAllRanges(), a.addRange(u);
14035
14022
  }
14036
14023
  }
14037
- function zf(e, t, r) {
14024
+ function Uf(e, t, r) {
14038
14025
  if (t >= r) return [];
14039
14026
  let a = 0, n = null, o = 0, i = null, l = 0;
14040
14027
  function c(f) {
@@ -14072,7 +14059,7 @@ const wo = {
14072
14059
  fc: "color",
14073
14060
  cl: "text-decoration",
14074
14061
  un: "border-bottom"
14075
- }, Uf = {
14062
+ }, zf = {
14076
14063
  bl: 1,
14077
14064
  it: 1,
14078
14065
  ff: 1,
@@ -14159,7 +14146,7 @@ function Hs(e) {
14159
14146
  function Vf(e) {
14160
14147
  typeof e.fc == "string" && Hs(e.fc) && delete e.fc, e.un === 1 && delete e.un;
14161
14148
  }
14162
- function zs(e, t) {
14149
+ function Us(e, t) {
14163
14150
  var o, i, l, c;
14164
14151
  const r = [];
14165
14152
  let a = null, n = null;
@@ -14209,7 +14196,7 @@ function _o(e, t) {
14209
14196
  }
14210
14197
  return "";
14211
14198
  }
14212
- function Us(e, t, r) {
14199
+ function zs(e, t, r) {
14213
14200
  const a = e.split(";");
14214
14201
  let n = "";
14215
14202
  if (t == null || t.length === 0)
@@ -14253,7 +14240,7 @@ function Wt(e, t, r) {
14253
14240
  if (e = Ws(e, t), h.isEmpty(n))
14254
14241
  return e;
14255
14242
  const o = h.kebabCase(Object.keys(n)[0]), i = Object.values(n)[0];
14256
- return e = Us(e, o, i), e;
14243
+ return e = zs(e, o, i), e;
14257
14244
  }
14258
14245
  function pn(e, t, r = !0) {
14259
14246
  const a = e.split(";"), n = t.split(";");
@@ -15242,11 +15229,11 @@ function tc(e, t, r, a, n) {
15242
15229
  continue;
15243
15230
  let ve = 0, we = 0, Te = 0, Se = 0, me = 0, fe = 0;
15244
15231
  for (let He = 0; He < te.length; He += 1) {
15245
- const ze = te[He];
15246
- ve += ze.width, we = Math.max(
15232
+ const Ue = te[He];
15233
+ ve += Ue.width, we = Math.max(
15247
15234
  we,
15248
- ze.height - (V ? ze.desc : 0)
15249
- ), Te = Math.max(Te, V ? ze.desc : 0), Se = Math.max(Se, ze.asc), fe += 1;
15235
+ Ue.height - (V ? Ue.desc : 0)
15236
+ ), Te = Math.max(Te, V ? Ue.desc : 0), Se = Math.max(Se, Ue.asc), fe += 1;
15250
15237
  }
15251
15238
  me = we / 2, g !== 0 ? (we += me, Q = Math.max(Q, ve), G += we) : (we += me, ne = Math.max(ne, ve), G += we), q.push({
15252
15239
  width: ve,
@@ -15260,9 +15247,9 @@ function tc(e, t, r, a, n) {
15260
15247
  let A = 0, B = 0;
15261
15248
  const x = g * Math.PI / 180, Y = q[$ - 1], E = Y.lineHeight;
15262
15249
  G = G - E + Y.desc;
15263
- const z = G / Math.sin(x) + Q * Math.cos(x), L = Q * Math.sin(x);
15250
+ const U = G / Math.sin(x) + Q * Math.cos(x), L = Q * Math.sin(x);
15264
15251
  let pe = 0;
15265
- if (g !== 0 ? ($ === 1 ? (ne = Q + 2 * (G / Math.tan(x)), pe = G / Math.tan(x)) : ne = Q + G / Math.tan(x), w.textWidthAll = z, w.textHeightAll = L) : (w.textWidthAll = ne, w.textHeightAll = G), l === "onlyWidth")
15252
+ if (g !== 0 ? ($ === 1 ? (ne = Q + 2 * (G / Math.tan(x)), pe = G / Math.tan(x)) : ne = Q + G / Math.tan(x), w.textWidthAll = U, w.textHeightAll = L) : (w.textWidthAll = ne, w.textHeightAll = G), l === "onlyWidth")
15266
15253
  return w;
15267
15254
  if (g !== 0 && Number(b) === 1) {
15268
15255
  t.textAlign = "end";
@@ -15277,7 +15264,7 @@ function tc(e, t, r, a, n) {
15277
15264
  let Se, me;
15278
15265
  if (g !== 0) {
15279
15266
  const fe = A + ve.asc, He = A / Math.tan(x) - B + Q;
15280
- m === "0" ? d === "0" ? (Se = He + o / 2 - ne / 2 + E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He + o / 2 - ne / 2, me = fe - (G / 2 - L / 2)) : d === "2" && (Se = He + o / 2 - ne / 2 + E * Math.cos(x), me = fe + i - L / 2 - G / 2 - E * Math.cos(x)) : m === "1" ? d === "0" ? (Se = He - L * Math.sin(x) / 2 + E * Math.cos(x) / 2, me = fe + i / 2 + L * Math.cos(x) / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He - L * Math.sin(x), me = fe + L * Math.cos(x)) : d === "2" && (Se = He + E * Math.cos(x), me = fe + i - E * Math.cos(x)) : m === "2" && (d === "0" ? (Se = He + o - z / 2 - (Q / 2 + G / 2 / Math.tan(x)) + E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He + o - ne + pe, me = fe - G) : d === "2" && (Se = He + o - z * Math.cos(x) + E * Math.cos(x), me = fe + i - z * Math.sin(x) - E * Math.cos(x)));
15267
+ m === "0" ? d === "0" ? (Se = He + o / 2 - ne / 2 + E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He + o / 2 - ne / 2, me = fe - (G / 2 - L / 2)) : d === "2" && (Se = He + o / 2 - ne / 2 + E * Math.cos(x), me = fe + i - L / 2 - G / 2 - E * Math.cos(x)) : m === "1" ? d === "0" ? (Se = He - L * Math.sin(x) / 2 + E * Math.cos(x) / 2, me = fe + i / 2 + L * Math.cos(x) / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He - L * Math.sin(x), me = fe + L * Math.cos(x)) : d === "2" && (Se = He + E * Math.cos(x), me = fe + i - E * Math.cos(x)) : m === "2" && (d === "0" ? (Se = He + o - U / 2 - (Q / 2 + G / 2 / Math.tan(x)) + E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He + o - ne + pe, me = fe - G) : d === "2" && (Se = He + o - U * Math.cos(x) + E * Math.cos(x), me = fe + i - U * Math.sin(x) - E * Math.cos(x)));
15281
15268
  }
15282
15269
  Te.left = Se, Te.top = me, qn(Te, T, v, {
15283
15270
  width: Te.width,
@@ -15303,7 +15290,7 @@ function tc(e, t, r, a, n) {
15303
15290
  let Se, me;
15304
15291
  if (g !== 0) {
15305
15292
  const fe = A + ve.asc, He = (G - A) / Math.tan(x) + B;
15306
- m === "0" ? d === "0" ? (Se = He + o / 2 - ne / 2 - E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 + E * Math.cos(x) / 2) : d === "1" ? (Se = He + o / 2 - ne / 2 - E * Math.cos(x) / 2, me = fe - (G / 2 - L / 2) + E * Math.cos(x) / 2) : d === "2" && (Se = He + o / 2 - ne / 2 - E * Math.cos(x), me = fe + i - L / 2 - G / 2 - E * Math.cos(x)) : m === "1" ? d === "0" ? (Se = He - L * Math.sin(x) / 2 - E * Math.cos(x) / 2, me = fe - G + i / 2 - L * Math.cos(x) / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He, me = fe - G) : d === "2" && (Se = He - L * Math.sin(x) - E * Math.cos(x), me = fe - G + i - L * Math.cos(x) - E * Math.cos(x)) : m === "2" && (d === "0" ? (Se = He + o - z / 2 - ne / 2 - E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He + o - z * Math.cos(x), me = fe + L * Math.cos(x)) : d === "2" && (Se = He + o - ne - E * Math.cos(x) + pe, me = fe + i - E * Math.cos(x))), qn(Te, T, v, {
15293
+ m === "0" ? d === "0" ? (Se = He + o / 2 - ne / 2 - E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 + E * Math.cos(x) / 2) : d === "1" ? (Se = He + o / 2 - ne / 2 - E * Math.cos(x) / 2, me = fe - (G / 2 - L / 2) + E * Math.cos(x) / 2) : d === "2" && (Se = He + o / 2 - ne / 2 - E * Math.cos(x), me = fe + i - L / 2 - G / 2 - E * Math.cos(x)) : m === "1" ? d === "0" ? (Se = He - L * Math.sin(x) / 2 - E * Math.cos(x) / 2, me = fe - G + i / 2 - L * Math.cos(x) / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He, me = fe - G) : d === "2" && (Se = He - L * Math.sin(x) - E * Math.cos(x), me = fe - G + i - L * Math.cos(x) - E * Math.cos(x)) : m === "2" && (d === "0" ? (Se = He + o - U / 2 - ne / 2 - E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He + o - U * Math.cos(x), me = fe + L * Math.cos(x)) : d === "2" && (Se = He + o - ne - E * Math.cos(x) + pe, me = fe + i - E * Math.cos(x))), qn(Te, T, v, {
15307
15294
  width: Te.width,
15308
15295
  height: Te.height,
15309
15296
  left: Se,
@@ -15326,7 +15313,7 @@ function tc(e, t, r, a, n) {
15326
15313
  }
15327
15314
  A += ve.height;
15328
15315
  }
15329
- w.type = "plainWrap", g !== 0 && (m === "0" ? (w.textLeftAll = o / 2, d === "0" ? w.textTopAll = i / 2 : d === "1" ? w.textTopAll = L / 2 : d === "2" && (w.textTopAll = i - L / 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 - z / 2, w.textTopAll = i / 2) : d === "1" ? (w.textLeftAll = o, w.textTopAll = 0) : d === "2" && (w.textLeftAll = o, w.textTopAll = i)));
15316
+ w.type = "plainWrap", g !== 0 && (m === "0" ? (w.textLeftAll = o / 2, d === "0" ? w.textTopAll = i / 2 : d === "1" ? w.textTopAll = L / 2 : d === "2" && (w.textTopAll = i - L / 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 - U / 2, w.textTopAll = i / 2) : d === "1" ? (w.textLeftAll = o, w.textTopAll = 0) : d === "2" && (w.textLeftAll = o, w.textTopAll = i)));
15330
15317
  } else {
15331
15318
  const ne = un(D, t, r), G = ne.width, Q = ne.actualBoundingBoxDescent + ne.actualBoundingBoxAscent;
15332
15319
  w.rotate = g, g = Math.abs(g);
@@ -15431,7 +15418,7 @@ const gt = {
15431
15418
  oct: 10,
15432
15419
  nov: 11,
15433
15420
  dec: 12
15434
- }, fn = "january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|jun|jul|aug|sep|oct|nov|dec", Ut = "jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec", vn = new Set(Ut.split("|")), qr = "monday|tuesday|wednesday|thursday|friday|saturday|sunday", er = "mon|tue|wed|thu|fri|sat|sun";
15421
+ }, fn = "january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|jun|jul|aug|sep|oct|nov|dec", zt = "jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec", vn = new Set(zt.split("|")), qr = "monday|tuesday|wednesday|thursday|friday|saturday|sunday", er = "mon|tue|wed|thu|fri|sat|sun";
15435
15422
  function tr(e) {
15436
15423
  return 2e3 + Number(e);
15437
15424
  }
@@ -15608,7 +15595,7 @@ function pa(e) {
15608
15595
  };
15609
15596
  }
15610
15597
  }
15611
- if (n = new RegExp(`^(${Ut})-(\\d{1,2})-(\\d{4})$`, "i").exec(t), n) {
15598
+ if (n = new RegExp(`^(${zt})-(\\d{1,2})-(\\d{4})$`, "i").exec(t), n) {
15612
15599
  const o = gt[n[1].toLowerCase()], i = +n[2], l = +n[3];
15613
15600
  if (o && Ve(l, o, i))
15614
15601
  return {
@@ -15621,7 +15608,7 @@ function pa(e) {
15621
15608
  formatType: "named-abbr-dashes"
15622
15609
  };
15623
15610
  }
15624
- if (n = new RegExp(`^(\\d{1,2})-(${Ut})-(\\d{4})$`, "i").exec(t), n) {
15611
+ if (n = new RegExp(`^(\\d{1,2})-(${zt})-(\\d{4})$`, "i").exec(t), n) {
15625
15612
  const o = +n[1], i = gt[n[2].toLowerCase()], l = +n[3];
15626
15613
  if (i && Ve(l, i, o))
15627
15614
  return {
@@ -15634,7 +15621,7 @@ function pa(e) {
15634
15621
  formatType: "d-mmm-yyyy"
15635
15622
  };
15636
15623
  }
15637
- if (n = new RegExp(`^(\\d{1,2})-(${Ut})-(\\d{2})$`, "i").exec(t), n) {
15624
+ if (n = new RegExp(`^(\\d{1,2})-(${zt})-(\\d{2})$`, "i").exec(t), n) {
15638
15625
  const o = +n[1], i = gt[n[2].toLowerCase()], l = tr(n[3]);
15639
15626
  if (i && Ve(l, i, o))
15640
15627
  return {
@@ -15718,7 +15705,7 @@ function pa(e) {
15718
15705
  };
15719
15706
  }
15720
15707
  }
15721
- if (n = new RegExp(`^(${Ut})[-\\s](\\d{2})$`, "i").exec(t), n) {
15708
+ if (n = new RegExp(`^(${zt})[-\\s](\\d{2})$`, "i").exec(t), n) {
15722
15709
  const o = gt[n[1].toLowerCase()], i = tr(n[2]);
15723
15710
  if (o && Ve(i, o, 1))
15724
15711
  return {
@@ -15788,7 +15775,7 @@ function pa(e) {
15788
15775
  }
15789
15776
  }
15790
15777
  if (n = new RegExp(
15791
- `^(${Ut})\\s+(\\d{1,2}),\\s*(\\d{4})\\s+(\\d{1,2}):(\\d{2})\\s?(AM|PM)$`,
15778
+ `^(${zt})\\s+(\\d{1,2}),\\s*(\\d{4})\\s+(\\d{1,2}):(\\d{2})\\s?(AM|PM)$`,
15792
15779
  "i"
15793
15780
  ).exec(t), n) {
15794
15781
  const o = gt[n[1].toLowerCase()], i = +n[2], l = +n[3], c = +n[4], s = +n[5], u = n[6].toUpperCase();
@@ -15806,7 +15793,7 @@ function pa(e) {
15806
15793
  }
15807
15794
  }
15808
15795
  if (n = new RegExp(
15809
- `^(\\d{1,2})-(${Ut})-(\\d{4})\\s+(\\d{1,2}):(\\d{2})\\s?(AM|PM)$`,
15796
+ `^(\\d{1,2})-(${zt})-(\\d{4})\\s+(\\d{1,2}):(\\d{2})\\s?(AM|PM)$`,
15810
15797
  "i"
15811
15798
  ).exec(t), n) {
15812
15799
  const o = +n[1], i = gt[n[2].toLowerCase()], l = +n[3], c = +n[4], s = +n[5], u = n[6].toUpperCase();
@@ -15906,7 +15893,7 @@ function pa(e) {
15906
15893
  };
15907
15894
  }
15908
15895
  if (n = new RegExp(
15909
- `^(?:${er}),?\\s+(${Ut})\\s+(\\d{1,2}),\\s*(\\d{4})$`,
15896
+ `^(?:${er}),?\\s+(${zt})\\s+(\\d{1,2}),\\s*(\\d{4})$`,
15910
15897
  "i"
15911
15898
  ).exec(t), n) {
15912
15899
  const o = gt[n[1].toLowerCase()], i = +n[2], l = +n[3];
@@ -15922,7 +15909,7 @@ function pa(e) {
15922
15909
  };
15923
15910
  }
15924
15911
  if (n = new RegExp(
15925
- `^(?:${er}),\\s+(${Ut})\\s+(\\d{1,2})$`,
15912
+ `^(?:${er}),\\s+(${zt})\\s+(\\d{1,2})$`,
15926
15913
  "i"
15927
15914
  ).exec(t), n) {
15928
15915
  const o = gt[n[1].toLowerCase()], i = +n[2];
@@ -15938,7 +15925,7 @@ function pa(e) {
15938
15925
  };
15939
15926
  }
15940
15927
  if (n = new RegExp(
15941
- `^(?:${er}),\\s+(\\d{1,2})\\s+(${Ut})\\s+(\\d{4})$`,
15928
+ `^(?:${er}),\\s+(\\d{1,2})\\s+(${zt})\\s+(\\d{4})$`,
15942
15929
  "i"
15943
15930
  ).exec(t), n) {
15944
15931
  const o = +n[1], i = gt[n[2].toLowerCase()], l = +n[3];
@@ -16088,15 +16075,15 @@ const sc = function(t) {
16088
16075
  var w = [];
16089
16076
  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\\);_("$"* "-"??_);_(@_)';
16090
16077
  function _(q, $, A) {
16091
- for (var B = q < 0 ? -1 : 1, x = q * B, Y = 0, E = 1, z = 0, L = 1, pe = 0, de = 0, te = Math.floor(x); pe < $ && (te = Math.floor(x), z = te * E + Y, de = te * pe + L, !(x - te < 5e-8)); )
16092
- x = 1 / (x - te), Y = E, E = z, L = pe, pe = de;
16093
- if (de > $ && (pe > $ ? (de = L, z = Y) : (de = pe, z = E)), !A) return [0, B * z, de];
16094
- var ve = Math.floor(B * z / de);
16095
- return [ve, B * z - ve * de, de];
16078
+ for (var B = q < 0 ? -1 : 1, x = q * B, Y = 0, E = 1, U = 0, L = 1, pe = 0, de = 0, te = Math.floor(x); pe < $ && (te = Math.floor(x), U = te * E + Y, de = te * pe + L, !(x - te < 5e-8)); )
16079
+ x = 1 / (x - te), Y = E, E = U, L = pe, pe = de;
16080
+ if (de > $ && (pe > $ ? (de = L, U = Y) : (de = pe, U = E)), !A) return [0, B * U, de];
16081
+ var ve = Math.floor(B * U / de);
16082
+ return [ve, B * U - ve * de, de];
16096
16083
  }
16097
16084
  function T(q, $, A) {
16098
16085
  if (q > 2958465 || q < 0) return null;
16099
- var B = q | 0, x = Math.floor(86400 * (q - B)), Y = 0, E = [], z = {
16086
+ var B = q | 0, x = Math.floor(86400 * (q - B)), Y = 0, E = [], U = {
16100
16087
  D: B,
16101
16088
  T: x,
16102
16089
  u: 86400 * (q - B) - x,
@@ -16108,7 +16095,7 @@ const sc = function(t) {
16108
16095
  S: 0,
16109
16096
  q: 0
16110
16097
  };
16111
- if (Math.abs(z.u) < 1e-6 && (z.u = 0), $ && $.date1904 && (B += 1462), z.u > 0.9999 && (z.u = 0, ++x == 86400 && (z.T = x = 0, ++B, ++z.D)), B === 60)
16098
+ if (Math.abs(U.u) < 1e-6 && (U.u = 0), $ && $.date1904 && (B += 1462), U.u > 0.9999 && (U.u = 0, ++x == 86400 && (U.T = x = 0, ++B, ++U.D)), B === 60)
16112
16099
  E = A ? [1317, 10, 29] : [1900, 2, 29], Y = 3;
16113
16100
  else if (B === 0)
16114
16101
  E = A ? [1317, 8, 29] : [1900, 1, 0], Y = 6;
@@ -16117,7 +16104,7 @@ const sc = function(t) {
16117
16104
  var L = new Date(1900, 0, 1);
16118
16105
  L.setDate(L.getDate() + B - 1), E = [L.getFullYear(), L.getMonth() + 1, L.getDate()], Y = L.getDay(), B < 60 && (Y = (Y + 6) % 7), A && (Y = j(L, E));
16119
16106
  }
16120
- return z.y = E[0], z.m = E[1], z.d = E[2], z.S = x % 60, x = Math.floor(x / 60), z.M = x % 60, x = Math.floor(x / 60), z.H = x, z.q = Y, z;
16107
+ return U.y = E[0], U.m = E[1], U.d = E[2], U.S = x % 60, x = Math.floor(x / 60), U.M = x % 60, x = Math.floor(x / 60), U.H = x, U.q = Y, U;
16121
16108
  }
16122
16109
  t.parse_date_code = T;
16123
16110
  var v = new Date(1899, 11, 31, 0, 0, 0), N = v.getTime(), C = new Date(1900, 2, 1, 0, 0, 0);
@@ -16138,10 +16125,10 @@ const sc = function(t) {
16138
16125
  function Y(te) {
16139
16126
  return te.indexOf("E") == -1 ? te : te.replace(B, "$1E").replace(x, "$10$2");
16140
16127
  }
16141
- var E = 999999999999997, z = 1e15;
16128
+ var E = 999999999999997, U = 1e15;
16142
16129
  function L(te) {
16143
16130
  var ve = te < 0 ? 12 : 11, we = Math.abs(te);
16144
- if (we <= E || we >= z) {
16131
+ if (we <= E || we >= U) {
16145
16132
  var Te = A(te.toFixed(12));
16146
16133
  return Te.length <= ve || (Te = te.toPrecision(10), Te.length <= ve) ? Te : A(te.toFixed(12));
16147
16134
  }
@@ -16150,7 +16137,7 @@ const sc = function(t) {
16150
16137
  }
16151
16138
  function pe(te) {
16152
16139
  var ve = Math.abs(te), we = A(te.toFixed(11));
16153
- return ve <= E || ve >= z ? we : we.length > (te < 0 ? 12 : 11) || we === "0" || we === "-0" ? te.toPrecision(6) : we;
16140
+ return ve <= E || ve >= U ? we : we.length > (te < 0 ? 12 : 11) || we === "0" || we === "-0" ? te.toPrecision(6) : we;
16154
16141
  }
16155
16142
  function de(te) {
16156
16143
  var ve = Math.floor(Math.log(Math.abs(te)) * Math.LOG10E), we;
@@ -16183,18 +16170,18 @@ const sc = function(t) {
16183
16170
  return q < 60 && (A = (A + 6) % 7), A;
16184
16171
  }
16185
16172
  function V(q, $, A, B) {
16186
- var x = "", Y = 0, E = 0, z = A.y, L, pe = 0;
16173
+ var x = "", Y = 0, E = 0, U = A.y, L, pe = 0;
16187
16174
  switch (q) {
16188
16175
  case 98:
16189
- z = A.y + 543;
16176
+ U = A.y + 543;
16190
16177
  case 121:
16191
16178
  switch ($.length) {
16192
16179
  case 1:
16193
16180
  case 2:
16194
- L = z % 100, pe = 2;
16181
+ L = U % 100, pe = 2;
16195
16182
  break;
16196
16183
  default:
16197
- L = z % 1e4, pe = 4;
16184
+ L = U % 1e4, pe = 4;
16198
16185
  break;
16199
16186
  }
16200
16187
  break;
@@ -16278,7 +16265,7 @@ const sc = function(t) {
16278
16265
  pe = $.length === 3 ? 1 : 2;
16279
16266
  break;
16280
16267
  case 101:
16281
- L = z, pe = 1;
16268
+ L = U, pe = 1;
16282
16269
  break;
16283
16270
  }
16284
16271
  var de = pe > 0 ? n(L, pe) : "";
@@ -16312,27 +16299,27 @@ const sc = function(t) {
16312
16299
  if (I < 0) return "-" + x(ge, -I);
16313
16300
  var H = ge.indexOf(".");
16314
16301
  H === -1 && (H = ge.indexOf("E"));
16315
- var U = Math.floor(Math.log(I) * Math.LOG10E) % H;
16316
- if (U < 0 && (U += H), R = (I / Math.pow(10, U)).toPrecision(
16317
- X + 1 + (H + U) % H
16302
+ var z = Math.floor(Math.log(I) * Math.LOG10E) % H;
16303
+ if (z < 0 && (z += H), R = (I / Math.pow(10, z)).toPrecision(
16304
+ X + 1 + (H + z) % H
16318
16305
  ), R.indexOf("e") === -1) {
16319
16306
  var he = Math.floor(Math.log(I) * Math.LOG10E);
16320
- for (R.indexOf(".") === -1 ? R = R.charAt(0) + "." + R.substr(1) + "E+" + (he - R.length + U) : R += "E+" + (he - U); R.substr(0, 2) === "0."; )
16307
+ for (R.indexOf(".") === -1 ? R = R.charAt(0) + "." + R.substr(1) + "E+" + (he - R.length + z) : R += "E+" + (he - z); R.substr(0, 2) === "0."; )
16321
16308
  R = R.charAt(0) + R.substr(2, H) + "." + R.substr(2 + H), R = R.replace(/^0+([1-9])/, "$1").replace(/^0+\./, "0.");
16322
16309
  R = R.replace(/\+-/, "-");
16323
16310
  }
16324
16311
  R = R.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/, function(_e, Ne, Z, le) {
16325
- return Ne + Z + le.substr(0, (H + U) % H) + "." + le.substr(U) + "E";
16312
+ return Ne + Z + le.substr(0, (H + z) % H) + "." + le.substr(z) + "E";
16326
16313
  });
16327
16314
  } else R = Number(I).toExponential(X);
16328
16315
  return ge.match(/E\+00$/) && R.match(/e[+-]\d$/) && (R = R.substr(0, R.length - 1) + "0" + R.charAt(R.length - 1)), ge.match(/E\-/) && R.match(/e\+/) && (R = R.replace(/e\+/, "e")), R.replace("e", "E");
16329
16316
  }
16330
16317
  var Y = /# (\?+)( ?)\/( ?)(\d+)/;
16331
16318
  function E(ge, I, R) {
16332
- var X = parseInt(ge[4], 10), H = Math.round(I * X), U = Math.floor(H / X), he = H - U * X, _e = X;
16333
- return R + (U === 0 ? "" : "" + U) + " " + (he === 0 ? a(" ", ge[1].length + 1 + ge[4].length) : o(he, ge[1].length) + ge[2] + "/" + ge[3] + n(_e, ge[4].length));
16319
+ var X = parseInt(ge[4], 10), H = Math.round(I * X), z = Math.floor(H / X), he = H - z * X, _e = X;
16320
+ return R + (z === 0 ? "" : "" + z) + " " + (he === 0 ? a(" ", ge[1].length + 1 + ge[4].length) : o(he, ge[1].length) + ge[2] + "/" + ge[3] + n(_e, ge[4].length));
16334
16321
  }
16335
- function z(ge, I, R) {
16322
+ function U(ge, I, R) {
16336
16323
  return R + (I === 0 ? "" : "" + I) + a(" ", ge[1].length + 2 + ge[4].length);
16337
16324
  }
16338
16325
  var L = /^#*0*\.([0#]+)/, pe = /\).*[0#]/, de = /\(###\) ###\\?-####/;
@@ -16377,26 +16364,26 @@ const sc = function(t) {
16377
16364
  if (I.indexOf("E") !== -1) return x(I, R);
16378
16365
  if (I.charCodeAt(0) === 36)
16379
16366
  return "$" + me(ge, I.substr(I.charAt(1) == " " ? 2 : 1), R);
16380
- var H, U, he, _e, Ne = Math.abs(R), Z = R < 0 ? "-" : "";
16367
+ var H, z, he, _e, Ne = Math.abs(R), Z = R < 0 ? "-" : "";
16381
16368
  if (I.match(/^00+$/)) return Z + u(Ne, I.length);
16382
16369
  if (I.match(/^[#?]+$/))
16383
16370
  return H = u(R, 0), H === "0" && (H = ""), H.length > I.length ? H : te(I.substr(0, I.length - H.length)) + H;
16384
- if (U = I.match(Y)) return E(U, Ne, Z);
16371
+ if (z = I.match(Y)) return E(z, Ne, Z);
16385
16372
  if (I.match(/^#+0+$/))
16386
16373
  return Z + u(Ne, I.length - I.indexOf("0"));
16387
- if (U = I.match(L))
16388
- return H = ve(R, U[1].length).replace(/^([^\.]+)$/, "$1." + te(U[1])).replace(/\.$/, "." + te(U[1])).replace(/\.(\d*)$/, function(ke, We) {
16389
- return "." + We + a("0", te(U[1]).length - We.length);
16374
+ if (z = I.match(L))
16375
+ return H = ve(R, z[1].length).replace(/^([^\.]+)$/, "$1." + te(z[1])).replace(/\.$/, "." + te(z[1])).replace(/\.(\d*)$/, function(ke, We) {
16376
+ return "." + We + a("0", te(z[1]).length - We.length);
16390
16377
  }), I.indexOf("0.") !== -1 ? H : H.replace(/^0\./, ".");
16391
- if (I = I.replace(/^#+([0.])/, "$1"), U = I.match(/^(0*)\.(#*)$/))
16392
- return Z + ve(Ne, U[2].length).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, U[1].length ? "0." : ".");
16393
- if (U = I.match(/^#{1,3},##0(\.?)$/))
16378
+ if (I = I.replace(/^#+([0.])/, "$1"), z = I.match(/^(0*)\.(#*)$/))
16379
+ return Z + ve(Ne, z[2].length).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, z[1].length ? "0." : ".");
16380
+ if (z = I.match(/^#{1,3},##0(\.?)$/))
16394
16381
  return Z + ne(u(Ne, 0));
16395
- if (U = I.match(/^#,##0\.([#0]*0)$/))
16396
- return R < 0 ? "-" + me(ge, I, -R) : ne("" + (Math.floor(R) + Te(R, U[1].length))) + "." + n(we(R, U[1].length), U[1].length);
16397
- if (U = I.match(/^#,#*,#0/))
16382
+ if (z = I.match(/^#,##0\.([#0]*0)$/))
16383
+ return R < 0 ? "-" + me(ge, I, -R) : ne("" + (Math.floor(R) + Te(R, z[1].length))) + "." + n(we(R, z[1].length), z[1].length);
16384
+ if (z = I.match(/^#,#*,#0/))
16398
16385
  return me(ge, I.replace(/^#,#*,/, ""), R);
16399
- if (U = I.match(/^([0#]+)(\\?-([0#]+))+$/))
16386
+ if (z = I.match(/^([0#]+)(\\?-([0#]+))+$/))
16400
16387
  return H = r(me(ge, I.replace(/[\\-]/g, ""), R)), he = 0, r(
16401
16388
  r(I.replace(/\\/g, "")).replace(/[0#]/g, function(ke) {
16402
16389
  return he < H.length ? H.charAt(he++) : ke === "0" ? "0" : "";
@@ -16405,21 +16392,21 @@ const sc = function(t) {
16405
16392
  if (I.match(de))
16406
16393
  return H = me(ge, "##########", R), "(" + H.substr(0, 3) + ") " + H.substr(3, 3) + "-" + H.substr(6);
16407
16394
  var le = "";
16408
- if (U = I.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
16409
- return he = Math.min(U[4].length, 7), _e = _(Ne, Math.pow(10, he) - 1, !1), H = "" + Z, le = G("n", U[1], _e[1]), le.charAt(le.length - 1) == " " && (le = le.substr(0, le.length - 1) + "0"), H += le + U[2] + "/" + U[3], le = i(_e[2], he), le.length < U[4].length && (le = te(U[4].substr(U[4].length - le.length)) + le), H += le, H;
16410
- if (U = I.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
16411
- return he = Math.min(Math.max(U[1].length, U[4].length), 7), _e = _(Ne, Math.pow(10, he) - 1, !0), Z + (_e[0] || (_e[1] ? "" : "0")) + " " + (_e[1] ? o(_e[1], he) + U[2] + "/" + U[3] + i(_e[2], he) : a(" ", 2 * he + 1 + U[2].length + U[3].length));
16412
- if (U = I.match(/^[#0?]+$/))
16395
+ if (z = I.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
16396
+ return he = Math.min(z[4].length, 7), _e = _(Ne, Math.pow(10, he) - 1, !1), H = "" + Z, le = G("n", z[1], _e[1]), le.charAt(le.length - 1) == " " && (le = le.substr(0, le.length - 1) + "0"), H += le + z[2] + "/" + z[3], le = i(_e[2], he), le.length < z[4].length && (le = te(z[4].substr(z[4].length - le.length)) + le), H += le, H;
16397
+ if (z = I.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
16398
+ return he = Math.min(Math.max(z[1].length, z[4].length), 7), _e = _(Ne, Math.pow(10, he) - 1, !0), Z + (_e[0] || (_e[1] ? "" : "0")) + " " + (_e[1] ? o(_e[1], he) + z[2] + "/" + z[3] + i(_e[2], he) : a(" ", 2 * he + 1 + z[2].length + z[3].length));
16399
+ if (z = I.match(/^[#0?]+$/))
16413
16400
  return H = u(R, 0), I.length <= H.length ? H : te(I.substr(0, I.length - H.length)) + H;
16414
- if (U = I.match(/^([#0?]+)\.([#0]+)$/)) {
16415
- H = "" + R.toFixed(Math.min(U[2].length, 10)).replace(/([^0])0+$/, "$1"), he = H.indexOf(".");
16401
+ if (z = I.match(/^([#0?]+)\.([#0]+)$/)) {
16402
+ H = "" + R.toFixed(Math.min(z[2].length, 10)).replace(/([^0])0+$/, "$1"), he = H.indexOf(".");
16416
16403
  var Re = I.indexOf(".") - he, Ae = I.length - H.length - Re;
16417
16404
  return te(I.substr(0, Re) + H + I.substr(I.length - Ae));
16418
16405
  }
16419
- if (U = I.match(/^00,000\.([#0]*0)$/))
16420
- return he = we(R, U[1].length), R < 0 ? "-" + me(ge, I, -R) : ne(Se(R)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(ke) {
16406
+ if (z = I.match(/^00,000\.([#0]*0)$/))
16407
+ return he = we(R, z[1].length), R < 0 ? "-" + me(ge, I, -R) : ne(Se(R)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(ke) {
16421
16408
  return "00," + (ke.length < 3 ? n(0, 3 - ke.length) : "") + ke;
16422
- }) + "." + n(he, U[1].length);
16409
+ }) + "." + n(he, z[1].length);
16423
16410
  switch (I) {
16424
16411
  case "###,##0.00":
16425
16412
  return me(ge, "#,##0.00", R);
@@ -16447,22 +16434,22 @@ const sc = function(t) {
16447
16434
  var X = I.replace($, ""), H = I.length - X.length;
16448
16435
  return G(ge, X, R * Math.pow(10, 2 * H)) + a("%", H);
16449
16436
  }
16450
- function ze(ge, I) {
16437
+ function Ue(ge, I) {
16451
16438
  var R, X = ge.indexOf("E") - ge.indexOf(".") - 1;
16452
16439
  if (ge.match(/^#+0.0E\+0$/)) {
16453
16440
  if (I == 0) return "0.0E+0";
16454
- if (I < 0) return "-" + ze(ge, -I);
16441
+ if (I < 0) return "-" + Ue(ge, -I);
16455
16442
  var H = ge.indexOf(".");
16456
16443
  H === -1 && (H = ge.indexOf("E"));
16457
- var U = Math.floor(Math.log(I) * Math.LOG10E) % H;
16458
- if (U < 0 && (U += H), R = (I / Math.pow(10, U)).toPrecision(
16459
- X + 1 + (H + U) % H
16444
+ var z = Math.floor(Math.log(I) * Math.LOG10E) % H;
16445
+ if (z < 0 && (z += H), R = (I / Math.pow(10, z)).toPrecision(
16446
+ X + 1 + (H + z) % H
16460
16447
  ), !R.match(/[Ee]/)) {
16461
16448
  var he = Math.floor(Math.log(I) * Math.LOG10E);
16462
- R.indexOf(".") === -1 ? R = R.charAt(0) + "." + R.substr(1) + "E+" + (he - R.length + U) : R += "E+" + (he - U), R = R.replace(/\+-/, "-");
16449
+ R.indexOf(".") === -1 ? R = R.charAt(0) + "." + R.substr(1) + "E+" + (he - R.length + z) : R += "E+" + (he - z), R = R.replace(/\+-/, "-");
16463
16450
  }
16464
16451
  R = R.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/, function(_e, Ne, Z, le) {
16465
- return Ne + Z + le.substr(0, (H + U) % H) + "." + le.substr(U) + "E";
16452
+ return Ne + Z + le.substr(0, (H + z) % H) + "." + le.substr(z) + "E";
16466
16453
  });
16467
16454
  } else R = Number(I).toExponential(X);
16468
16455
  return ge.match(/E\+00$/) && R.match(/e[+-]\d$/) && (R = R.substr(0, R.length - 1) + "0" + R.charAt(R.length - 1)), ge.match(/E\-/) && R.match(/e\+/) && (R = R.replace(/e\+/, "e")), R.replace("e", "E");
@@ -16475,29 +16462,29 @@ const sc = function(t) {
16475
16462
  if (I.charCodeAt(I.length - 1) === 44)
16476
16463
  return fe(ge, I, R);
16477
16464
  if (I.indexOf("%") !== -1) return He(ge, I, R);
16478
- if (I.indexOf("E") !== -1) return ze(I, R);
16465
+ if (I.indexOf("E") !== -1) return Ue(I, R);
16479
16466
  if (I.charCodeAt(0) === 36)
16480
16467
  return "$" + qe(ge, I.substr(I.charAt(1) == " " ? 2 : 1), R);
16481
- var H, U, he, _e, Ne = Math.abs(R), Z = R < 0 ? "-" : "";
16468
+ var H, z, he, _e, Ne = Math.abs(R), Z = R < 0 ? "-" : "";
16482
16469
  if (I.match(/^00+$/)) return Z + n(Ne, I.length);
16483
16470
  if (I.match(/^[#?]+$/))
16484
16471
  return H = "" + R, R === 0 && (H = ""), H.length > I.length ? H : te(I.substr(0, I.length - H.length)) + H;
16485
- if (U = I.match(Y)) return z(U, Ne, Z);
16472
+ if (z = I.match(Y)) return U(z, Ne, Z);
16486
16473
  if (I.match(/^#+0+$/))
16487
16474
  return Z + n(Ne, I.length - I.indexOf("0"));
16488
- if (U = I.match(L))
16489
- return H = ("" + R).replace(/^([^\.]+)$/, "$1." + te(U[1])).replace(/\.$/, "." + te(U[1])), H = H.replace(/\.(\d*)$/, function(ke, We) {
16490
- return "." + We + a("0", te(U[1]).length - We.length);
16475
+ if (z = I.match(L))
16476
+ return H = ("" + R).replace(/^([^\.]+)$/, "$1." + te(z[1])).replace(/\.$/, "." + te(z[1])), H = H.replace(/\.(\d*)$/, function(ke, We) {
16477
+ return "." + We + a("0", te(z[1]).length - We.length);
16491
16478
  }), I.indexOf("0.") !== -1 ? H : H.replace(/^0\./, ".");
16492
- if (I = I.replace(/^#+([0.])/, "$1"), U = I.match(/^(0*)\.(#*)$/))
16493
- return Z + ("" + Ne).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, U[1].length ? "0." : ".");
16494
- if (U = I.match(/^#{1,3},##0(\.?)$/))
16479
+ if (I = I.replace(/^#+([0.])/, "$1"), z = I.match(/^(0*)\.(#*)$/))
16480
+ return Z + ("" + Ne).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, z[1].length ? "0." : ".");
16481
+ if (z = I.match(/^#{1,3},##0(\.?)$/))
16495
16482
  return Z + ne("" + Ne);
16496
- if (U = I.match(/^#,##0\.([#0]*0)$/))
16497
- return R < 0 ? "-" + qe(ge, I, -R) : ne("" + R) + "." + a("0", U[1].length);
16498
- if (U = I.match(/^#,#*,#0/))
16483
+ if (z = I.match(/^#,##0\.([#0]*0)$/))
16484
+ return R < 0 ? "-" + qe(ge, I, -R) : ne("" + R) + "." + a("0", z[1].length);
16485
+ if (z = I.match(/^#,#*,#0/))
16499
16486
  return qe(ge, I.replace(/^#,#*,/, ""), R);
16500
- if (U = I.match(/^([0#]+)(\\?-([0#]+))+$/))
16487
+ if (z = I.match(/^([0#]+)(\\?-([0#]+))+$/))
16501
16488
  return H = r(qe(ge, I.replace(/[\\-]/g, ""), R)), he = 0, r(
16502
16489
  r(I.replace(/\\/g, "")).replace(/[0#]/g, function(ke) {
16503
16490
  return he < H.length ? H.charAt(he++) : ke === "0" ? "0" : "";
@@ -16506,21 +16493,21 @@ const sc = function(t) {
16506
16493
  if (I.match(de))
16507
16494
  return H = qe(ge, "##########", R), "(" + H.substr(0, 3) + ") " + H.substr(3, 3) + "-" + H.substr(6);
16508
16495
  var le = "";
16509
- if (U = I.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
16510
- return he = Math.min(U[4].length, 7), _e = _(Ne, Math.pow(10, he) - 1, !1), H = "" + Z, le = G("n", U[1], _e[1]), le.charAt(le.length - 1) == " " && (le = le.substr(0, le.length - 1) + "0"), H += le + U[2] + "/" + U[3], le = i(_e[2], he), le.length < U[4].length && (le = te(U[4].substr(U[4].length - le.length)) + le), H += le, H;
16511
- if (U = I.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
16512
- return he = Math.min(Math.max(U[1].length, U[4].length), 7), _e = _(Ne, Math.pow(10, he) - 1, !0), Z + (_e[0] || (_e[1] ? "" : "0")) + " " + (_e[1] ? o(_e[1], he) + U[2] + "/" + U[3] + i(_e[2], he) : a(" ", 2 * he + 1 + U[2].length + U[3].length));
16513
- if (U = I.match(/^[#0?]+$/))
16496
+ if (z = I.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
16497
+ return he = Math.min(z[4].length, 7), _e = _(Ne, Math.pow(10, he) - 1, !1), H = "" + Z, le = G("n", z[1], _e[1]), le.charAt(le.length - 1) == " " && (le = le.substr(0, le.length - 1) + "0"), H += le + z[2] + "/" + z[3], le = i(_e[2], he), le.length < z[4].length && (le = te(z[4].substr(z[4].length - le.length)) + le), H += le, H;
16498
+ if (z = I.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
16499
+ return he = Math.min(Math.max(z[1].length, z[4].length), 7), _e = _(Ne, Math.pow(10, he) - 1, !0), Z + (_e[0] || (_e[1] ? "" : "0")) + " " + (_e[1] ? o(_e[1], he) + z[2] + "/" + z[3] + i(_e[2], he) : a(" ", 2 * he + 1 + z[2].length + z[3].length));
16500
+ if (z = I.match(/^[#0?]+$/))
16514
16501
  return H = "" + R, I.length <= H.length ? H : te(I.substr(0, I.length - H.length)) + H;
16515
- if (U = I.match(/^([#0]+)\.([#0]+)$/)) {
16516
- H = "" + R.toFixed(Math.min(U[2].length, 10)).replace(/([^0])0+$/, "$1"), he = H.indexOf(".");
16502
+ if (z = I.match(/^([#0]+)\.([#0]+)$/)) {
16503
+ H = "" + R.toFixed(Math.min(z[2].length, 10)).replace(/([^0])0+$/, "$1"), he = H.indexOf(".");
16517
16504
  var Re = I.indexOf(".") - he, Ae = I.length - H.length - Re;
16518
16505
  return te(I.substr(0, Re) + H + I.substr(I.length - Ae));
16519
16506
  }
16520
- if (U = I.match(/^00,000\.([#0]*0)$/))
16507
+ if (z = I.match(/^00,000\.([#0]*0)$/))
16521
16508
  return R < 0 ? "-" + qe(ge, I, -R) : ne("" + R).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(ke) {
16522
16509
  return "00," + (ke.length < 3 ? n(0, 3 - ke.length) : "") + ke;
16523
- }) + "." + n(0, U[1].length);
16510
+ }) + "." + n(0, z[1].length);
16524
16511
  switch (I) {
16525
16512
  case "###,###":
16526
16513
  case "##,###":
@@ -16652,11 +16639,11 @@ const sc = function(t) {
16652
16639
  }
16653
16640
  t.is_date = ae;
16654
16641
  function se(q, $, A, B) {
16655
- for (var x = [], Y = "", E = 0, z = "", L = "t", pe, de, te, ve = "H"; E < q.length; )
16656
- switch (z = q.charAt(E)) {
16642
+ for (var x = [], Y = "", E = 0, U = "", L = "t", pe, de, te, ve = "H"; E < q.length; )
16643
+ switch (U = q.charAt(E)) {
16657
16644
  case "G":
16658
16645
  if (!f(q, E))
16659
- throw new Error("unrecognized character " + z + " in " + q);
16646
+ throw new Error("unrecognized character " + U + " in " + q);
16660
16647
  x[x.length] = {
16661
16648
  t: "G",
16662
16649
  v: "General"
@@ -16697,7 +16684,7 @@ const sc = function(t) {
16697
16684
  x[x.length] = {
16698
16685
  t: "X",
16699
16686
  v: q.substr(E, 2)
16700
- }, L = z, E += 2;
16687
+ }, L = U, E += 2;
16701
16688
  break;
16702
16689
  }
16703
16690
  case "M":
@@ -16706,7 +16693,7 @@ const sc = function(t) {
16706
16693
  case "H":
16707
16694
  case "S":
16708
16695
  case "E":
16709
- z = z.toLowerCase();
16696
+ U = U.toLowerCase();
16710
16697
  case "m":
16711
16698
  case "d":
16712
16699
  case "y":
@@ -16717,24 +16704,24 @@ const sc = function(t) {
16717
16704
  if ($ < 0) return "";
16718
16705
  if (pe == null && (pe = T($, A), pe == null))
16719
16706
  return $;
16720
- for (Y = z; ++E < q.length && q.charAt(E).toLowerCase() === z; ) Y += z;
16721
- z === "m" && L.toLowerCase() === "h" && (z = "M"), z === "h" && (z = ve), x[x.length] = {
16722
- t: z,
16707
+ for (Y = U; ++E < q.length && q.charAt(E).toLowerCase() === U; ) Y += U;
16708
+ U === "m" && L.toLowerCase() === "h" && (U = "M"), U === "h" && (U = ve), x[x.length] = {
16709
+ t: U,
16723
16710
  v: Y
16724
- }, L = z;
16711
+ }, L = U;
16725
16712
  break;
16726
16713
  case "A":
16727
16714
  case "a":
16728
16715
  case "上":
16729
16716
  var Se = {
16730
- t: z,
16731
- v: z
16717
+ t: U,
16718
+ v: U
16732
16719
  };
16733
16720
  if (pe == null && (pe = T($, A)), q.substr(E, 3).toUpperCase() === "A/P" ? (pe != null && (Se.v = pe.H >= 12 ? "P" : "A"), Se.t = "T", ve = "h", E += 3) : q.substr(E, 5).toUpperCase() === "AM/PM" ? (pe != null && (Se.v = pe.H >= 12 ? "PM" : "AM"), Se.t = "T", E += 5, ve = "h") : q.substr(E, 5).toUpperCase() === "上午/下午" ? (pe != null && (Se.v = pe.H >= 12 ? "下午" : "上午"), Se.t = "T", E += 5, ve = "h") : (Se.t = "t", ++E), pe == null && Se.t === "T") return "";
16734
- x[x.length] = Se, L = z;
16721
+ x[x.length] = Se, L = U;
16735
16722
  break;
16736
16723
  case "[":
16737
- for (Y = z; q.charAt(E++) !== "]" && E < q.length; ) Y += q.charAt(E);
16724
+ for (Y = U; q.charAt(E++) !== "]" && E < q.length; ) Y += q.charAt(E);
16738
16725
  if (Y.slice(-1) !== "]") throw 'unterminated "[" block: |' + Y + "|";
16739
16726
  if (Y.match(F)) {
16740
16727
  if (pe == null && (pe = T($, A), pe == null))
@@ -16750,7 +16737,7 @@ const sc = function(t) {
16750
16737
  break;
16751
16738
  case ".":
16752
16739
  if (pe != null) {
16753
- for (Y = z; ++E < q.length && (z = q.charAt(E)) === "0"; ) Y += z;
16740
+ for (Y = U; ++E < q.length && (U = q.charAt(E)) === "0"; ) Y += U;
16754
16741
  x[x.length] = {
16755
16742
  t: "s",
16756
16743
  v: Y
@@ -16759,19 +16746,19 @@ const sc = function(t) {
16759
16746
  }
16760
16747
  case "0":
16761
16748
  case "#":
16762
- for (Y = z; ++E < q.length && "0#?.,E+-%".indexOf(z = q.charAt(E)) > -1; )
16763
- Y += z;
16749
+ for (Y = U; ++E < q.length && "0#?.,E+-%".indexOf(U = q.charAt(E)) > -1; )
16750
+ Y += U;
16764
16751
  x[x.length] = {
16765
16752
  t: "n",
16766
16753
  v: Y
16767
16754
  };
16768
16755
  break;
16769
16756
  case "?":
16770
- for (Y = z; q.charAt(++E) === z; ) Y += z;
16757
+ for (Y = U; q.charAt(++E) === U; ) Y += U;
16771
16758
  x[x.length] = {
16772
- t: z,
16759
+ t: U,
16773
16760
  v: Y
16774
- }, L = z;
16761
+ }, L = U;
16775
16762
  break;
16776
16763
  case "*":
16777
16764
  ++E, (q.charAt(E) == " " || q.charAt(E) == "*") && ++E;
@@ -16779,8 +16766,8 @@ const sc = function(t) {
16779
16766
  case "(":
16780
16767
  case ")":
16781
16768
  x[x.length] = {
16782
- t: B === 1 ? "t" : z,
16783
- v: z
16769
+ t: B === 1 ? "t" : U,
16770
+ v: U
16784
16771
  }, ++E;
16785
16772
  break;
16786
16773
  case "1":
@@ -16792,7 +16779,7 @@ const sc = function(t) {
16792
16779
  case "7":
16793
16780
  case "8":
16794
16781
  case "9":
16795
- for (Y = z; E < q.length && "0123456789".indexOf(q.charAt(++E)) > -1; )
16782
+ for (Y = U; E < q.length && "0123456789".indexOf(q.charAt(++E)) > -1; )
16796
16783
  Y += q.charAt(E);
16797
16784
  x[x.length] = {
16798
16785
  t: "D",
@@ -16801,8 +16788,8 @@ const sc = function(t) {
16801
16788
  break;
16802
16789
  case " ":
16803
16790
  x[x.length] = {
16804
- t: z,
16805
- v: z
16791
+ t: U,
16792
+ v: U
16806
16793
  }, ++E;
16807
16794
  break;
16808
16795
  case "$":
@@ -16813,12 +16800,12 @@ const sc = function(t) {
16813
16800
  break;
16814
16801
  default:
16815
16802
  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(
16816
- z
16803
+ U
16817
16804
  ) === -1)
16818
- throw new Error("unrecognized character " + z + " in " + q);
16805
+ throw new Error("unrecognized character " + U + " in " + q);
16819
16806
  x[x.length] = {
16820
16807
  t: "t",
16821
- v: z
16808
+ v: U
16822
16809
  }, ++E;
16823
16810
  break;
16824
16811
  }
@@ -16855,7 +16842,7 @@ const sc = function(t) {
16855
16842
  pe.u >= 0.5 && (pe.u = 0, ++pe.S), pe.S >= 60 && (pe.S = 0, ++pe.M);
16856
16843
  break;
16857
16844
  }
16858
- var ze = "", qe;
16845
+ var Ue = "", qe;
16859
16846
  for (E = 0; E < x.length; ++E)
16860
16847
  switch (x[E].t) {
16861
16848
  case "t":
@@ -16880,20 +16867,20 @@ const sc = function(t) {
16880
16867
  break;
16881
16868
  case "n":
16882
16869
  case "?":
16883
- for (qe = E + 1; x[qe] != null && ((z = x[qe].t) === "?" || z === "D" || (z === " " || z === "t") && x[qe + 1] != null && (x[qe + 1].t === "?" || x[qe + 1].t === "t" && x[qe + 1].v === "/") || x[E].t === "(" && (z === " " || z === "n" || z === ")") || z === "t" && (x[qe].v === "/" || x[qe].v === " " && x[qe + 1] != null && x[qe + 1].t == "?")); )
16870
+ for (qe = E + 1; x[qe] != null && ((U = x[qe].t) === "?" || U === "D" || (U === " " || U === "t") && x[qe + 1] != null && (x[qe + 1].t === "?" || x[qe + 1].t === "t" && x[qe + 1].v === "/") || x[E].t === "(" && (U === " " || U === "n" || U === ")") || U === "t" && (x[qe].v === "/" || x[qe].v === " " && x[qe + 1] != null && x[qe + 1].t == "?")); )
16884
16871
  x[E].v += x[qe].v, x[qe] = {
16885
16872
  v: "",
16886
16873
  t: ";"
16887
16874
  }, ++qe;
16888
- ze += x[E].v, E = qe - 1;
16875
+ Ue += x[E].v, E = qe - 1;
16889
16876
  break;
16890
16877
  case "G":
16891
16878
  x[E].t = "t", x[E].v = P($, A);
16892
16879
  break;
16893
16880
  }
16894
16881
  var ge = "", I, R;
16895
- if (ze.length > 0) {
16896
- ze.charCodeAt(0) == 40 ? (I = $ < 0 && ze.charCodeAt(0) === 45 ? -$ : $, R = G("n", ze, I)) : (I = $ < 0 && B > 1 ? -$ : $, R = G("n", ze, I), I < 0 && x[0] && x[0].t == "t" && (R = R.substr(1), x[0].v = "-" + x[0].v)), qe = R.length - 1;
16882
+ if (Ue.length > 0) {
16883
+ Ue.charCodeAt(0) == 40 ? (I = $ < 0 && Ue.charCodeAt(0) === 45 ? -$ : $, R = G("n", Ue, I)) : (I = $ < 0 && B > 1 ? -$ : $, R = G("n", Ue, I), I < 0 && x[0] && x[0].t == "t" && (R = R.substr(1), x[0].v = "-" + x[0].v)), qe = R.length - 1;
16897
16884
  var X = x.length;
16898
16885
  for (E = 0; E < x.length; ++E)
16899
16886
  if (x[E] != null && x[E].t != "t" && x[E].v.indexOf(".") > -1) {
@@ -16922,9 +16909,9 @@ const sc = function(t) {
16922
16909
  }
16923
16910
  for (E = 0; E < x.length; ++E)
16924
16911
  x[E] != null && "n?".indexOf(x[E].t) > -1 && (I = B > 1 && $ < 0 && E > 0 && x[E - 1].v === "-" ? -$ : $, x[E].v = G(x[E].t, x[E].v, I), x[E].t = "t");
16925
- var U = "";
16926
- for (E = 0; E !== x.length; ++E) x[E] != null && (U += x[E].v);
16927
- return U;
16912
+ var z = "";
16913
+ for (E = 0; E !== x.length; ++E) x[E] != null && (z += x[E].v);
16914
+ return z;
16928
16915
  }
16929
16916
  t._eval = se;
16930
16917
  var ue = /\[[=<>]/, be = /\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;
@@ -16974,8 +16961,8 @@ const sc = function(t) {
16974
16961
  if (A[0].indexOf("[") === -1 && A[1].indexOf("[") === -1)
16975
16962
  return [B, Y];
16976
16963
  if (A[0].match(ue) != null || A[1].match(ue) != null) {
16977
- var E = A[0].match(be), z = A[1].match(be);
16978
- return J($, E) ? [B, A[0]] : J($, z) ? [B, A[1]] : [B, A[E != null && z != null ? 2 : 1]];
16964
+ var E = A[0].match(be), U = A[1].match(be);
16965
+ return J($, E) ? [B, A[0]] : J($, U) ? [B, A[1]] : [B, A[E != null && U != null ? 2 : 1]];
16979
16966
  }
16980
16967
  return [B, Y];
16981
16968
  }
@@ -17003,8 +16990,8 @@ const sc = function(t) {
17003
16990
  if (B.match(Y)) {
17004
16991
  if (isNaN($))
17005
16992
  return $;
17006
- var E = B.slice(1), z = !1;
17007
- !isNaN($) && Number($) < 0 && (z = !0, $ = Math.abs($));
16993
+ var E = B.slice(1), U = !1;
16994
+ !isNaN($) && Number($) < 0 && (U = !0, $ = Math.abs($));
17008
16995
  var L = parseInt($), pe = L.toString().length;
17009
16996
  if (pe > 4) {
17010
16997
  if (pe > 8) {
@@ -17076,7 +17063,7 @@ const sc = function(t) {
17076
17063
  }
17077
17064
  } else
17078
17065
  E != "" && ($ = Ft($).format(E));
17079
- return z ? "-" + $ : $;
17066
+ return U ? "-" + $ : $;
17080
17067
  }
17081
17068
  if (f(B, 0)) return P($, A);
17082
17069
  $ instanceof Date && ($ = D($, A.date1904));
@@ -17531,7 +17518,7 @@ function $a(e, t) {
17531
17518
  let r = h.sortedIndex(t, e);
17532
17519
  return r >= t.length && e > 0 ? r = t.length - 1 : r === -1 && e <= 0 && (r = 0), $c(r, t);
17533
17520
  }
17534
- let Kt = 0, zn = [];
17521
+ let Kt = 0, Un = [];
17535
17522
  const Cc = {
17536
17523
  "^": 0,
17537
17524
  "%": 1,
@@ -18045,7 +18032,7 @@ function Hc(e) {
18045
18032
  }
18046
18033
  return o -= l, i -= c, o === i;
18047
18034
  }
18048
- function zc(e, t, r, a, n) {
18035
+ function Uc(e, t, r, a, n) {
18049
18036
  h.isNil(a) && (a = e.currentSheetId);
18050
18037
  const { luckysheetfile: o } = e, i = Fe(e, a);
18051
18038
  if (h.isNil(i))
@@ -18067,7 +18054,7 @@ function zc(e, t, r, a, n) {
18067
18054
  };
18068
18055
  c.push(s), l.calcChain = c, e.luckysheetfile = o;
18069
18056
  }
18070
- function Uc(e) {
18057
+ function zc(e) {
18071
18058
  if (!e.startsWith("=")) return e;
18072
18059
  const t = e.indexOf("(");
18073
18060
  return t === -1 ? e : `=${e.substring(1, t).replace(/\./g, "_")}${e.substring(t)}`;
@@ -18075,7 +18062,7 @@ function Uc(e) {
18075
18062
  function Tn(e, t, r, a, n, o, i, l) {
18076
18063
  var N;
18077
18064
  const c = t;
18078
- if ((t != null && t.toUpperCase().includes("NETWORKDAYS.INTL") || t != null && t.toUpperCase().includes("WORKDAY.INTL")) && (t = Uc(t)), t.indexOf(Nn.r) > -1)
18065
+ if ((t != null && t.toUpperCase().includes("NETWORKDAYS.INTL") || t != null && t.toUpperCase().includes("WORKDAY.INTL")) && (t = zc(t)), t.indexOf(Nn.r) > -1)
18079
18066
  return [!1, Nn.r, t];
18080
18067
  Hc(t) || (t += ")"), h.isNil(n) && (n = e.currentSheetId), e.calculateSheetId = n;
18081
18068
  const s = n || e.currentSheetId, u = `${s}:${r}:${a}`, f = /* @__PURE__ */ new Set();
@@ -18131,7 +18118,7 @@ function Tn(e, t, r, a, n, o, i, l) {
18131
18118
  n
18132
18119
  );
18133
18120
  }
18134
- l || zc(e, r, a, n, o);
18121
+ l || Uc(e, r, a, n, o);
18135
18122
  }
18136
18123
  let w = b;
18137
18124
  e.formulaCache.parser.cryptoDenomination && e.formulaCache.parser.cryptoDenomination !== "" && (typeof b == "number" || typeof b == "string") && (w = `${Number(b).toFixed(
@@ -18726,7 +18713,7 @@ function dn(e) {
18726
18713
  n += s;
18727
18714
  }
18728
18715
  if (vt(h.trim(l))) {
18729
- const d = zn.length > Kt ? zn[Kt] : Kt;
18716
+ const d = Un.length > Kt ? Un[Kt] : Kt;
18730
18717
  n += `<span class="fortune-formula-functionrange-cell" rangeindex="${d}" dir="auto" style="color:${_a[d]};">${l}</span>`, Kt += 1;
18731
18718
  } else if (c > 0)
18732
18719
  n += `${l}</span>`;
@@ -19026,7 +19013,7 @@ function ou(e, t, r, a, n, o = !0) {
19026
19013
  let b = y(r);
19027
19014
  if ((a === 8 || a === 46) && (b = b.replace(/\n{2,}$/, `
19028
19015
  `)), b = hf(b), b.length > 0 && b.substring(0, 1) === "=" && (a !== 229 || b.length === 1)) {
19029
- if (o || (zn = dl(r)), b = ta(b), !o && Kt < zn.length && (o = !0), p = ta(g), zn = [], window.getSelection) {
19016
+ if (o || (Un = dl(r)), b = ta(b), !o && Kt < Un.length && (o = !0), p = ta(g), Un = [], window.getSelection) {
19030
19017
  const w = window.getSelection();
19031
19018
  if (!w) return;
19032
19019
  if (((i = w.anchorNode) == null ? void 0 : i.nodeName.toLowerCase()) === "div") {
@@ -20018,7 +20005,7 @@ function hd(e, t, r, a, n, o, i) {
20018
20005
  const l = n.rulesType, c = [], s = [];
20019
20006
  if (l === "greaterThan" || l === "greaterThanOrEqual" || l === "lessThan" || l === "lessThanOrEqual" || l === "equal" || l === "notEqual" || l === "textContains" || l === "textDoesNotContain" || l === "textStartsWith" || l === "textEndsWith" || l === "textExactly") {
20020
20007
  let _ = n.rulesValue;
20021
- const T = Un(e, _);
20008
+ const T = zn(e, _);
20022
20009
  if (T.length > 1) {
20023
20010
  const v = T[0].row[0], N = T[0].row[1], C = T[0].column[0], D = T[0].column[1];
20024
20011
  if (v === N && C === D) {
@@ -20043,7 +20030,7 @@ function hd(e, t, r, a, n, o, i) {
20043
20030
  }
20044
20031
  } else if (l === "between" || l === "notBetween") {
20045
20032
  let _ = n.betweenValue.value1, T = n.betweenValue.value2;
20046
- const v = Un(e, _);
20033
+ const v = zn(e, _);
20047
20034
  if (v.length > 1) {
20048
20035
  e.warnDialog = a.onlySingleCell;
20049
20036
  return;
@@ -20068,7 +20055,7 @@ function hd(e, t, r, a, n, o, i) {
20068
20055
  }
20069
20056
  s.push(_);
20070
20057
  }
20071
- const N = Un(e, T);
20058
+ const N = zn(e, T);
20072
20059
  if (N.length > 1) {
20073
20060
  e.warnDialog = a.onlySingleCell;
20074
20061
  return;
@@ -21151,7 +21138,7 @@ function gd(e, t, r) {
21151
21138
  }
21152
21139
  function yd(e, t, r) {
21153
21140
  var p, y;
21154
- const a = Un(
21141
+ const a = zn(
21155
21142
  e,
21156
21143
  (y = (p = e.dataVerification) == null ? void 0 : p.dataRegulation) == null ? void 0 : y.rangeTxt
21157
21144
  );
@@ -21821,7 +21808,7 @@ function tn(e, t, r, a) {
21821
21808
  }
21822
21809
  return null;
21823
21810
  }
21824
- function zu(e, t, r, a, n, o, i, l, c) {
21811
+ function Uu(e, t, r, a, n, o, i, l, c) {
21825
21812
  const s = t.r, u = t.r + t.rs - 1, f = t.c, m = t.c + t.cs - 1;
21826
21813
  let d = !1;
21827
21814
  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] >= u || !(r[1] < f || r[0] > m) && !(a[1] < s || a[0] > u)) {
@@ -21849,7 +21836,7 @@ function Yn(e, t, r, a, n, o, i, l) {
21849
21836
  const d = s[m], p = c[d];
21850
21837
  if (d in f)
21851
21838
  continue;
21852
- const y = zu(
21839
+ const y = Uu(
21853
21840
  e,
21854
21841
  p,
21855
21842
  t,
@@ -21871,7 +21858,7 @@ function xl(e) {
21871
21858
  function jt(e) {
21872
21859
  xl(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;
21873
21860
  }
21874
- function Uu(e) {
21861
+ function zu(e) {
21875
21862
  return typeof e == "number" ? Number.isFinite(e) : typeof e != "string" ? !1 : /^[\d.,]+$/.test(e.replace(/\s/g, ""));
21876
21863
  }
21877
21864
  function Wu(e) {
@@ -21903,7 +21890,7 @@ function Vu(e, t, r, a, n, o) {
21903
21890
  ye != null && ye.startsWith("=") && (ye = be(ye).replace(/[\r\n]/g, ""));
21904
21891
  const q = a == null ? void 0 : a.innerHTML, $ = !!q && (/<br\s*\/?>/i.test(q) || /[\r\n]/.test(q)), A = !!se && /[\r\n]/.test(se), B = !!q && !!se && ue.startsWith("=") && ($ || A), x = Ie(e);
21905
21892
  if (!x) return;
21906
- const Y = Fe(e, e.currentSheetId), { dataVerification: E } = e.luckysheetfile[Y], z = e.luckysheetfile[Y];
21893
+ const Y = Fe(e, e.currentSheetId), { dataVerification: E } = e.luckysheetfile[Y], U = e.luckysheetfile[Y];
21907
21894
  if (!h.isNil(E)) {
21908
21895
  const Z = E[`${t}_${r}`];
21909
21896
  if (!h.isNil(Z) && Z.prohibitInput && !vl(e, Z, ye)) {
@@ -21928,7 +21915,7 @@ function Vu(e, t, r, a, n, o) {
21928
21915
  else if (we) {
21929
21916
  h.isPlainObject(L) || (L = {}), L || (L = {});
21930
21917
  const Z = L.fs || 10;
21931
- L.ct || (L.ct = {}, L.ct.fa = "General", L.tb = "1"), L.ct.t = "inlineStr", Hu(a), L.ct.s = zs(
21918
+ L.ct || (L.ct = {}, L.ct.fa = "General", L.tb = "1"), L.ct.t = "inlineStr", Hu(a), L.ct.s = Us(
21932
21919
  a.querySelectorAll("span"),
21933
21920
  L
21934
21921
  ), delete L.fs, delete L.f, delete L._formulaEditHtml, delete L.v, delete L.m, L.fs = Z, Te && (L.ct.s = [
@@ -21974,13 +21961,13 @@ function Vu(e, t, r, a, n, o) {
21974
21961
  h.isString(n) && n.slice(0, 1) === "=" && n.length > 1 || h.isPlainObject(L) && L && L.ct && L.ct.fa && L.ct.fa !== "@" && !Je(n) && (delete L.m, L.f && (delete L.f, delete L._formulaEditHtml, delete L.spl));
21975
21962
  }
21976
21963
  let He = !0;
21977
- const ze = x;
21964
+ const Ue = x;
21978
21965
  let qe = null;
21979
21966
  if (h.isPlainObject(L)) {
21980
21967
  if (!we)
21981
21968
  if (h.isString(n) && n.slice(0, 1) === "=" && n.length > 1) {
21982
21969
  const Z = Tn(e, n, t, r, void 0, void 0, !0);
21983
- if (He = !1, L = h.cloneDeep(((d = ze == null ? void 0 : ze[t]) == null ? void 0 : d[r]) || {}), [, L.v, L.f] = Z, L.ct || (L.ct = {}), B ? (L.ct.s = [
21970
+ if (He = !1, L = h.cloneDeep(((d = Ue == null ? void 0 : Ue[t]) == null ? void 0 : d[r]) || {}), [, L.v, L.f] = Z, L.ct || (L.ct = {}), B ? (L.ct.s = [
21984
21971
  {
21985
21972
  v: ce(L.f),
21986
21973
  fs: L.fs || 10
@@ -22002,7 +21989,7 @@ function Vu(e, t, r, a, n, o) {
22002
21989
  void 0,
22003
21990
  !0
22004
21991
  );
22005
- if (He = !1, L = h.cloneDeep(((p = ze == null ? void 0 : ze[t]) == null ? void 0 : p[r]) || {}), [, L.v, L.f] = le, L.ct || (L.ct = {}), B ? (L.ct.s = [
21992
+ if (He = !1, L = h.cloneDeep(((p = Ue == null ? void 0 : Ue[t]) == null ? void 0 : p[r]) || {}), [, L.v, L.f] = le, L.ct || (L.ct = {}), B ? (L.ct.s = [
22006
21993
  {
22007
21994
  v: ce(L.f),
22008
21995
  fs: L.fs || 10
@@ -22017,7 +22004,7 @@ function Vu(e, t, r, a, n, o) {
22017
22004
  L[le] = n[le];
22018
22005
  }), en(e, t, r);
22019
22006
  } else {
22020
- en(e, t, r), ea(e, t, r), L = h.cloneDeep(((y = ze == null ? void 0 : ze[t]) == null ? void 0 : y[r]) || {}), L.v = n, delete L.f, delete L._formulaEditHtml, delete L.spl;
22007
+ en(e, t, r), ea(e, t, r), L = h.cloneDeep(((y = Ue == null ? void 0 : Ue[t]) == null ? void 0 : y[r]) || {}), L.v = n, delete L.f, delete L._formulaEditHtml, delete L.spl;
22021
22008
  const Z = (g = te == null ? void 0 : te.m) != null && g.toString().includes(".") ? (w = (b = te == null ? void 0 : te.m) == null ? void 0 : b.toString().split(" ")[0].split(".")[1]) == null ? void 0 : w.length : 0, le = (_ = te == null ? void 0 : te.m) == null ? void 0 : _.toString().split(" ")[1];
22022
22009
  typeof L == "object" && (L != null && L.baseValue) && (te != null && te.baseCurrencyPrice) && (L.m = `${(parseFloat(n) / te.baseCurrencyPrice).toFixed(Z || 2)} ${le}`, L.baseValue = n), Vn(e, t, r, L), He = !1, L.qp === 1 && `${n}`.substring(0, 1) !== "'" && (L.qp = 0, L.ct && (L.ct.fa = "General", L.ct.t = "n"));
22023
22010
  }
@@ -22032,8 +22019,8 @@ function Vu(e, t, r, a, n, o) {
22032
22019
  v: ce(n.f),
22033
22020
  fs: n.fs || 10
22034
22021
  }
22035
- ], K(n)) : (T = n.ct) == null || delete T.s, Uu(n.v)) {
22036
- const le = (v = Il(n == null ? void 0 : n.f)) == null ? void 0 : v.split(","), Re = le == null ? void 0 : le.map((Ee) => Ee.trim().toUpperCase()), Ae = Dl(Re, ze, x);
22022
+ ], K(n)) : (T = n.ct) == null || delete T.s, zu(n.v)) {
22023
+ const le = (v = Il(n == null ? void 0 : n.f)) == null ? void 0 : v.split(","), Re = le == null ? void 0 : le.map((Ee) => Ee.trim().toUpperCase()), Ae = Dl(Re, Ue, x);
22037
22024
  if (Ae) {
22038
22025
  const Ee = typeof n.v == "number" ? n.v : Number(String(n.v).replace(/,/g, ""));
22039
22026
  n.m = Number.isFinite(Ee) ? String(kt(Ae, Ee)) : String(n.v), n.ct = {
@@ -22089,9 +22076,9 @@ function Vu(e, t, r, a, n, o) {
22089
22076
  } : typeof n == "object" && !n.tb && (n.tb = "1");
22090
22077
  const R = Array.isArray((P = n == null ? void 0 : n.v) == null ? void 0 : P[0]);
22091
22078
  try {
22092
- if (R && Cl(e, t, r, n, ze)) {
22079
+ if (R && Cl(e, t, r, n, Ue)) {
22093
22080
  if (jt(e), e.hooks.afterUpdateCell) {
22094
- const Z = h.cloneDeep(ze[t][r]);
22081
+ const Z = h.cloneDeep(Ue[t][r]);
22095
22082
  (V = (j = e.hooks).onLocalCellEdit) == null || V.call(j), setTimeout(
22096
22083
  () => {
22097
22084
  var le, Re;
@@ -22104,15 +22091,15 @@ function Vu(e, t, r, a, n, o) {
22104
22091
  }
22105
22092
  } catch {
22106
22093
  }
22107
- const X = `${t}_${r}`, H = (ne = z.hyperlink) == null ? void 0 : ne[X];
22094
+ const X = `${t}_${r}`, H = (ne = U.hyperlink) == null ? void 0 : ne[X];
22108
22095
  if (typeof n == "object" && n && ((G = n.ct) == null ? void 0 : G.t) === "inlineStr") {
22109
22096
  const Z = Bs(n);
22110
- z.hyperlink || (z.hyperlink = {}), Z.length === 0 ? delete z.hyperlink[X] : z.hyperlink[X] = Z.length === 1 ? Z[0] : Z, typeof n == "object" && n && "hl" in n && delete n.hl;
22097
+ U.hyperlink || (U.hyperlink = {}), Z.length === 0 ? delete U.hyperlink[X] : U.hyperlink[X] = Z.length === 1 ? Z[0] : Z, typeof n == "object" && n && "hl" in n && delete n.hl;
22111
22098
  } else
22112
- H && z.hyperlink && delete z.hyperlink[X], typeof n == "object" && n && "hl" in n && delete n.hl;
22113
- bn(e, t, r, ze, n), jt(e);
22114
- const U = e.luckysheetfile[Fe(e, e.currentSheetId)].config || {}, he = (te == null ? void 0 : te.tb) === "2" && !h.isNil(te == null ? void 0 : te.v) && (te == null ? void 0 : te.v) !== "" || Vt(te), _e = ze[t][r], Ne = (_e == null ? void 0 : _e.tb) === "2" && !h.isNil(_e == null ? void 0 : _e.v) && (_e == null ? void 0 : _e.v) !== "" || Vt(_e);
22115
- if ((he || Ne) && !((Q = U.customHeight) != null && Q[t]) && o && Nl(e, t, ze, o), e.hooks.afterUpdateCell) {
22099
+ H && U.hyperlink && delete U.hyperlink[X], typeof n == "object" && n && "hl" in n && delete n.hl;
22100
+ bn(e, t, r, Ue, n), jt(e);
22101
+ const z = e.luckysheetfile[Fe(e, e.currentSheetId)].config || {}, he = (te == null ? void 0 : te.tb) === "2" && !h.isNil(te == null ? void 0 : te.v) && (te == null ? void 0 : te.v) !== "" || Vt(te), _e = Ue[t][r], Ne = (_e == null ? void 0 : _e.tb) === "2" && !h.isNil(_e == null ? void 0 : _e.v) && (_e == null ? void 0 : _e.v) !== "" || Vt(_e);
22102
+ if ((he || Ne) && !((Q = z.customHeight) != null && Q[t]) && o && Nl(e, t, Ue, o), e.hooks.afterUpdateCell) {
22116
22103
  const Z = h.cloneDeep(x[t][r]), { afterUpdateCell: le } = e.hooks;
22117
22104
  (ae = (F = e.hooks).onLocalCellEdit) == null || ae.call(F), setTimeout(() => {
22118
22105
  le == null || le(t, r, te, Z);
@@ -22168,7 +22155,7 @@ function Io(e, t, r, a) {
22168
22155
  c
22169
22156
  )}` : l == null && c == null ? `${n + (o + 1)}:${i + 1}` : l === c && o === i ? n + Ze(l) + (o + 1) : `${n + Ze(l) + (o + 1)}:${Ze(c)}${i + 1}`;
22170
22157
  }
22171
- function Un(e, t) {
22158
+ function zn(e, t) {
22172
22159
  let r = [];
22173
22160
  if (t.indexOf(",") !== -1) {
22174
22161
  const a = t.split(",");
@@ -22202,7 +22189,7 @@ function Xu(e) {
22202
22189
  }
22203
22190
  function Td(e, t) {
22204
22191
  const r = (t ?? "").trim();
22205
- return r === "" ? !0 : Xu(r) ? !1 : Un(e, r).length > 0;
22192
+ return r === "" ? !0 : Xu(r) ? !1 : zn(e, r).length > 0;
22206
22193
  }
22207
22194
  function $d(e, t, r) {
22208
22195
  if (!h.isEmpty(e.luckysheetCellUpdate)) {
@@ -22985,7 +22972,7 @@ function Ht(e, t, r, a) {
22985
22972
  l = o;
22986
22973
  return [i, l];
22987
22974
  }
22988
- function zt(e, t, r, a) {
22975
+ function Ut(e, t, r, a) {
22989
22976
  const n = Ie(e);
22990
22977
  if (h.isNil(n))
22991
22978
  return [null, null];
@@ -23147,16 +23134,16 @@ function Pd(e, t, r, a) {
23147
23134
  f >= g && (f = g - 1), f < 0 && (f = 0), u >= g && (u = g - 1), u < 0 && (u = 0);
23148
23135
  } else {
23149
23136
  if (Et(e, y, u, f)) {
23150
- const v = zt(e, y, u, f), N = v[0], C = v[1];
23137
+ const v = Ut(e, y, u, f), N = v[0], C = v[1];
23151
23138
  if (!h.isNil(N) && N > m && C === d) {
23152
23139
  if (r > 0 && Et(e, m, u, f)) {
23153
- const D = zt(e, m, u, f)[1];
23140
+ const D = Ut(e, m, u, f)[1];
23154
23141
  h.isNil(D) || (m = D), m += r;
23155
23142
  }
23156
23143
  m += r;
23157
23144
  } else if (!h.isNil(C) && C < d && N === m) {
23158
23145
  if (r < 0 && Et(e, d, u, f)) {
23159
- const D = zt(e, d, u, f)[0];
23146
+ const D = Ut(e, d, u, f)[0];
23160
23147
  h.isNil(D) || (d = D);
23161
23148
  }
23162
23149
  d += r;
@@ -23164,13 +23151,13 @@ function Pd(e, t, r, a) {
23164
23151
  r > 0 ? d += r : m += r;
23165
23152
  } else if (y > m && y === d) {
23166
23153
  if (r > 0 && Et(e, m, u, f)) {
23167
- const v = zt(e, m, u, f)[1];
23154
+ const v = Ut(e, m, u, f)[1];
23168
23155
  h.isNil(v) || (m = v), m += r;
23169
23156
  }
23170
23157
  m += r;
23171
23158
  } else if (y < d && y === m) {
23172
23159
  if (r < 0 && Et(e, d, u, f)) {
23173
- const v = zt(e, d, u, f)[0];
23160
+ const v = Ut(e, d, u, f)[0];
23174
23161
  h.isNil(v) || (d = v);
23175
23162
  }
23176
23163
  d += r;
@@ -23233,16 +23220,16 @@ function Pd(e, t, r, a) {
23233
23220
  f >= g && (f = g - 1), f < 0 && (f = 0), u >= g && (u = g - 1), u < 0 && (u = 0);
23234
23221
  } else {
23235
23222
  if (!h.isNil(y) && Et(e, y, u, f)) {
23236
- const k = zt(e, y, u, f), O = k[0], P = k[1];
23223
+ const k = Ut(e, y, u, f), O = k[0], P = k[1];
23237
23224
  if (!h.isNil(O) && O > m && P === d) {
23238
23225
  if (r > 0 && Et(e, m, u, f)) {
23239
- const j = zt(e, m, u, f)[1];
23226
+ const j = Ut(e, m, u, f)[1];
23240
23227
  h.isNil(j) || (m = j);
23241
23228
  }
23242
23229
  m += r;
23243
23230
  } else if (!h.isNil(P) && P < d && O === m) {
23244
23231
  if (r < 0 && Et(e, d, u, f)) {
23245
- const j = zt(e, d, u, f)[0];
23232
+ const j = Ut(e, d, u, f)[0];
23246
23233
  h.isNil(j) || (d = j);
23247
23234
  }
23248
23235
  d += r;
@@ -23250,13 +23237,13 @@ function Pd(e, t, r, a) {
23250
23237
  r > 0 ? d += r : m += r;
23251
23238
  } else if (!h.isNil(y) && y > m && y === d) {
23252
23239
  if (r > 0 && Et(e, m, u, f)) {
23253
- const k = zt(e, m, u, f)[1];
23240
+ const k = Ut(e, m, u, f)[1];
23254
23241
  h.isNil(k) || (m = k);
23255
23242
  }
23256
23243
  m += r;
23257
23244
  } else if (!h.isNil(y) && y < d && y === m) {
23258
23245
  if (r < 0 && Et(e, d, u, f)) {
23259
- const k = zt(e, d, u, f)[0];
23246
+ const k = Ut(e, d, u, f)[0];
23260
23247
  h.isNil(k) || (d = k);
23261
23248
  }
23262
23249
  d += r;
@@ -23564,7 +23551,7 @@ function Hd(e) {
23564
23551
  let p = !1;
23565
23552
  f && u && f.length > nf && (p = !0, f = f.replace(/\sdata-fortune-cell="[^"]*"/g, "")), f && (e.iscopyself = !0, e.lastInternalCopyHtmlMetadataStripped = p, ef.writeHtml(f));
23566
23553
  }
23567
- function zd(e) {
23554
+ function Ud(e) {
23568
23555
  var a, n, o, i, l, c, s, u;
23569
23556
  if (Gt(e) === !1 || e.isFlvReadOnly)
23570
23557
  return "allowEdit";
@@ -23617,7 +23604,7 @@ function zd(e) {
23617
23604
  }
23618
23605
  return "success";
23619
23606
  }
23620
- function Ud(e) {
23607
+ function zd(e) {
23621
23608
  var a;
23622
23609
  if (Gt(e) === !1)
23623
23610
  return "allowEdit";
@@ -24475,7 +24462,7 @@ function lm(e, t, r) {
24475
24462
  );
24476
24463
  }
24477
24464
  function cf(e, t, r, a, n, o) {
24478
- var f, m, d, p, y, g, b, w, _, T, v, N, C, D, k, O, P, j, V, ne, G, Q, F, ae, se, ue, be, J, K, W, ce, ye, q, $, A, B, x, Y, E, z, L, pe, de, te, ve, we, Te, Se, me, fe, He, ze, qe, ge, I, R, X, H, U, he, _e, Ne, Z, le, Re, Ae, Ee, ke, We, Be, Ge, Pt, Yt, Ot, ka, Ma, qa, 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, Ei, ki, Mi, qi, 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, io, oo, lo, so;
24465
+ var f, m, d, p, y, g, b, w, _, T, v, N, C, D, k, O, P, j, V, ne, G, Q, F, ae, se, ue, be, J, K, W, ce, ye, q, $, A, B, x, Y, E, U, L, pe, de, te, ve, we, Te, Se, me, fe, He, Ue, qe, ge, I, R, X, H, z, he, _e, Ne, Z, le, Re, Ae, Ee, ke, We, Be, Ge, Pt, Yt, Ot, ka, Ma, qa, Ra, Ia, Da, Oa, La, Fa, Ba, Pa, Ha, Ua, za, 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, Ei, ki, Mi, qi, Ri, Ii, Di, Oi, Li, Fi, Bi, Pi, Hi, Ui, zi, Wi, Vi, Gi, Yi, ji, Xi, Zi, Ki, Qi, Ji, eo, to, no, ro, ao, io, oo, lo, so;
24479
24466
  const i = {}, l = Ie(e);
24480
24467
  let c, s;
24481
24468
  if (!o)
@@ -24495,8 +24482,8 @@ function cf(e, t, r, a, n, o) {
24495
24482
  if (co === "range") {
24496
24483
  const { borderType: Ce } = u[Tt], ie = u[Tt].color, oe = u[Tt].style, De = u[Tt].range;
24497
24484
  for (let Oe = 0; Oe < De.length; Oe += 1) {
24498
- let $e = De[Oe].row[0], xe = De[Oe].row[1], Pe = De[Oe].column[0], Ue = De[Oe].column[1];
24499
- if ($e < t && ($e = t), xe > r && (xe = r), Pe < a && (Pe = a), Ue > n && (Ue = n), Ce === "border-slash") {
24485
+ let $e = De[Oe].row[0], xe = De[Oe].row[1], Pe = De[Oe].column[0], ze = De[Oe].column[1];
24486
+ if ($e < t && ($e = t), xe > r && (xe = r), Pe < a && (Pe = a), ze > n && (ze = n), Ce === "border-slash") {
24500
24487
  const S = De[0].row_focus, M = De[0].column_focus;
24501
24488
  if (!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S]) || M < a || M > n || S < t || S > r) continue;
24502
24489
  i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].s = {
@@ -24536,11 +24523,11 @@ function cf(e, t, r, a, n, o) {
24536
24523
  for (let S = $e; S <= xe; S += 1) {
24537
24524
  if (!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S]))
24538
24525
  continue;
24539
- i[`${S}_${Ue}`] === void 0 && (i[`${S}_${Ue}`] = {}), i[`${S}_${Ue}`].r = {
24526
+ i[`${S}_${ze}`] === void 0 && (i[`${S}_${ze}`] = {}), i[`${S}_${ze}`].r = {
24540
24527
  color: ie,
24541
24528
  style: oe
24542
24529
  };
24543
- const M = Ue + 1;
24530
+ const M = ze + 1;
24544
24531
  if (M < s[0].length && i[`${S}_${M}`])
24545
24532
  if (h.isNil((b = (g = s[S]) == null ? void 0 : g[M]) == null ? void 0 : b.mc))
24546
24533
  i[`${S}_${M}`].l = {
@@ -24557,13 +24544,13 @@ function cf(e, t, r, a, n, o) {
24557
24544
  const re = c.merge || {};
24558
24545
  Object.keys(re).forEach((ee) => {
24559
24546
  const { c: Me, r: Lt, cs: on, rs: ln } = re[ee];
24560
- Ue < Me + on - 1 && Ue >= Me && S >= Lt && S <= Lt + ln - 1 && (i[`${S}_${Ue}`].r = null);
24547
+ ze < Me + on - 1 && ze >= Me && S >= Lt && S <= Lt + ln - 1 && (i[`${S}_${ze}`].r = null);
24561
24548
  });
24562
24549
  }
24563
24550
  else if (Ce === "border-top") {
24564
24551
  if (!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[$e]))
24565
24552
  continue;
24566
- for (let S = Pe; S <= Ue; S += 1) {
24553
+ for (let S = Pe; S <= ze; S += 1) {
24567
24554
  i[`${$e}_${S}`] === void 0 && (i[`${$e}_${S}`] = {}), i[`${$e}_${S}`].t = {
24568
24555
  color: ie,
24569
24556
  style: oe
@@ -24591,7 +24578,7 @@ function cf(e, t, r, a, n, o) {
24591
24578
  } else if (Ce === "border-bottom") {
24592
24579
  if (!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[xe]))
24593
24580
  continue;
24594
- for (let S = Pe; S <= Ue; S += 1) {
24581
+ for (let S = Pe; S <= ze; S += 1) {
24595
24582
  i[`${xe}_${S}`] === void 0 && (i[`${xe}_${S}`] = {}), i[`${xe}_${S}`].b = {
24596
24583
  color: ie,
24597
24584
  style: oe
@@ -24619,7 +24606,7 @@ function cf(e, t, r, a, n, o) {
24619
24606
  } else if (Ce === "border-all") {
24620
24607
  for (let S = $e; S <= xe; S += 1)
24621
24608
  if (!(!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S])))
24622
- for (let M = Pe; M <= Ue; M += 1) {
24609
+ for (let M = Pe; M <= ze; M += 1) {
24623
24610
  if (h.isNil((Q = (G = s[S]) == null ? void 0 : G[M]) == null ? void 0 : Q.mc))
24624
24611
  i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24625
24612
  color: ie,
@@ -24691,15 +24678,15 @@ function cf(e, t, r, a, n, o) {
24691
24678
  style: oe
24692
24679
  };
24693
24680
  else {
24694
- const ee = s[S][re], Me = (z = c.merge) == null ? void 0 : z[`${(Y = ee == null ? void 0 : ee.mc) == null ? void 0 : Y.r}_${(E = ee == null ? void 0 : ee.mc) == null ? void 0 : E.c}`];
24681
+ const ee = s[S][re], Me = (U = c.merge) == null ? void 0 : U[`${(Y = ee == null ? void 0 : ee.mc) == null ? void 0 : Y.r}_${(E = ee == null ? void 0 : ee.mc) == null ? void 0 : E.c}`];
24695
24682
  Me && Me.c + Me.cs - 1 === re && (i[`${S}_${re}`].r = {
24696
24683
  color: ie,
24697
24684
  style: oe
24698
24685
  });
24699
24686
  }
24700
24687
  }
24701
- if (M === Ue) {
24702
- const re = Ue + 1;
24688
+ if (M === ze) {
24689
+ const re = ze + 1;
24703
24690
  if (re < s[0].length && i[`${S}_${re}`])
24704
24691
  if (h.isNil((pe = (L = s[S]) == null ? void 0 : L[re]) == null ? void 0 : pe.mc))
24705
24692
  i[`${S}_${re}`].l = {
@@ -24718,8 +24705,8 @@ function cf(e, t, r, a, n, o) {
24718
24705
  } else if (Ce === "border-outside") {
24719
24706
  for (let S = $e; S <= xe; S += 1)
24720
24707
  if (!(!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S]))) {
24721
- for (let M = Pe; M <= Ue; M += 1)
24722
- if (S === $e || S === xe || M === Pe || M === Ue) {
24708
+ for (let M = Pe; M <= ze; M += 1)
24709
+ if (S === $e || S === xe || M === Pe || M === ze) {
24723
24710
  if (S === $e) {
24724
24711
  i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24725
24712
  color: ie,
@@ -24747,7 +24734,7 @@ function cf(e, t, r, a, n, o) {
24747
24734
  };
24748
24735
  const re = xe + 1;
24749
24736
  if (re < s.length && i[`${re}_${M}`])
24750
- if (h.isNil((ze = (He = s[re]) == null ? void 0 : He[M]) == null ? void 0 : ze.mc))
24737
+ if (h.isNil((Ue = (He = s[re]) == null ? void 0 : He[M]) == null ? void 0 : Ue.mc))
24751
24738
  i[`${re}_${M}`].t = {
24752
24739
  color: ie,
24753
24740
  style: oe
@@ -24773,19 +24760,19 @@ function cf(e, t, r, a, n, o) {
24773
24760
  style: oe
24774
24761
  };
24775
24762
  else {
24776
- const ee = s[S][re], Me = (he = c.merge) == null ? void 0 : he[`${(H = ee == null ? void 0 : ee.mc) == null ? void 0 : H.r}_${(U = ee == null ? void 0 : ee.mc) == null ? void 0 : U.c}`];
24763
+ const ee = s[S][re], Me = (he = c.merge) == null ? void 0 : he[`${(H = ee == null ? void 0 : ee.mc) == null ? void 0 : H.r}_${(z = ee == null ? void 0 : ee.mc) == null ? void 0 : z.c}`];
24777
24764
  Me && Me.c + Me.cs - 1 === re && (i[`${S}_${re}`].r = {
24778
24765
  color: ie,
24779
24766
  style: oe
24780
24767
  });
24781
24768
  }
24782
24769
  }
24783
- if (M === Ue) {
24770
+ if (M === ze) {
24784
24771
  i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].r = {
24785
24772
  color: ie,
24786
24773
  style: oe
24787
24774
  };
24788
- const re = Ue + 1;
24775
+ const re = ze + 1;
24789
24776
  if (re < s[0].length && i[`${S}_${re}`])
24790
24777
  if (h.isNil((Ne = (_e = s[S]) == null ? void 0 : _e[re]) == null ? void 0 : Ne.mc))
24791
24778
  i[`${S}_${re}`].l = {
@@ -24805,12 +24792,12 @@ function cf(e, t, r, a, n, o) {
24805
24792
  } else if (Ce === "border-inside") {
24806
24793
  for (let S = $e; S <= xe; S += 1)
24807
24794
  if (!(!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S])))
24808
- for (let M = Pe; M <= Ue; M += 1)
24795
+ for (let M = Pe; M <= ze; M += 1)
24809
24796
  if (S === $e && M === Pe)
24810
24797
  h.isNil((Ee = (Ae = s[S]) == null ? void 0 : Ae[M]) == null ? void 0 : Ee.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !S === xe && (i[`${S}_${M}`].r = {
24811
24798
  color: ie,
24812
24799
  style: oe
24813
- }), !M === Ue && (i[`${S}_${M}`].b = {
24800
+ }), !M === ze && (i[`${S}_${M}`].b = {
24814
24801
  color: ie,
24815
24802
  style: oe
24816
24803
  }));
@@ -24822,15 +24809,15 @@ function cf(e, t, r, a, n, o) {
24822
24809
  color: ie,
24823
24810
  style: oe
24824
24811
  });
24825
- else if (S === $e && M === Ue)
24812
+ else if (S === $e && M === ze)
24826
24813
  h.isNil((Ge = (Be = s[S]) == null ? void 0 : Be[M]) == null ? void 0 : Ge.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24827
24814
  color: ie,
24828
24815
  style: oe
24829
- }, !M === Ue && (i[`${S}_${M}`].b = {
24816
+ }, !M === ze && (i[`${S}_${M}`].b = {
24830
24817
  color: ie,
24831
24818
  style: oe
24832
24819
  }));
24833
- else if (S === xe && M === Ue)
24820
+ else if (S === xe && M === ze)
24834
24821
  h.isNil((Yt = (Pt = s[S]) == null ? void 0 : Pt[M]) == null ? void 0 : Yt.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24835
24822
  color: ie,
24836
24823
  style: oe
@@ -24846,7 +24833,7 @@ function cf(e, t, r, a, n, o) {
24846
24833
  }, !S === xe && (i[`${S}_${M}`].r = {
24847
24834
  color: ie,
24848
24835
  style: oe
24849
- }), !M === Ue && (i[`${S}_${M}`].b = {
24836
+ }), !M === ze && (i[`${S}_${M}`].b = {
24850
24837
  color: ie,
24851
24838
  style: oe
24852
24839
  });
@@ -24890,21 +24877,21 @@ function cf(e, t, r, a, n, o) {
24890
24877
  }), i[`${S}_${M}`].t = {
24891
24878
  color: ie,
24892
24879
  style: oe
24893
- }, !M === Ue && (i[`${S}_${M}`].b = {
24880
+ }, !M === ze && (i[`${S}_${M}`].b = {
24894
24881
  color: ie,
24895
24882
  style: oe
24896
24883
  });
24897
24884
  else {
24898
- const re = s[S][M], ee = (Ua = c.merge) == null ? void 0 : Ua[`${(Ha = re == null ? void 0 : re.mc) == null ? void 0 : Ha.r}_${(za = re == null ? void 0 : re.mc) == null ? void 0 : za.c}`];
24885
+ const re = s[S][M], ee = (za = c.merge) == null ? void 0 : za[`${(Ha = re == null ? void 0 : re.mc) == null ? void 0 : Ha.r}_${(Ua = re == null ? void 0 : re.mc) == null ? void 0 : Ua.c}`];
24899
24886
  (ee == null ? void 0 : ee.r) === S ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24900
24887
  color: ie,
24901
24888
  style: oe
24902
- }) : ee && ee.r + ee.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !M === Ue && (i[`${S}_${M}`].b = {
24889
+ }) : ee && ee.r + ee.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !M === ze && (i[`${S}_${M}`].b = {
24903
24890
  color: ie,
24904
24891
  style: oe
24905
24892
  }));
24906
24893
  }
24907
- else if (M === Ue)
24894
+ else if (M === ze)
24908
24895
  if (h.isNil((Va = (Wa = s[S]) == null ? void 0 : Wa[M]) == null ? void 0 : Va.mc))
24909
24896
  i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24910
24897
  color: ie,
@@ -24912,7 +24899,7 @@ function cf(e, t, r, a, n, o) {
24912
24899
  }, i[`${S}_${M}`].t = {
24913
24900
  color: ie,
24914
24901
  style: oe
24915
- }, !M === Ue && (i[`${S}_${M}`].b = {
24902
+ }, !M === ze && (i[`${S}_${M}`].b = {
24916
24903
  color: ie,
24917
24904
  style: oe
24918
24905
  });
@@ -24921,7 +24908,7 @@ function cf(e, t, r, a, n, o) {
24921
24908
  (ee == null ? void 0 : ee.r) === S ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24922
24909
  color: ie,
24923
24910
  style: oe
24924
- }) : ee && ee.r + ee.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !M === Ue && (i[`${S}_${M}`].b = {
24911
+ }) : ee && ee.r + ee.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !M === ze && (i[`${S}_${M}`].b = {
24925
24912
  color: ie,
24926
24913
  style: oe
24927
24914
  }));
@@ -24936,7 +24923,7 @@ function cf(e, t, r, a, n, o) {
24936
24923
  }), i[`${S}_${M}`].t = {
24937
24924
  color: ie,
24938
24925
  style: oe
24939
- }, !M === Ue && (i[`${S}_${M}`].b = {
24926
+ }, !M === ze && (i[`${S}_${M}`].b = {
24940
24927
  color: ie,
24941
24928
  style: oe
24942
24929
  });
@@ -24945,7 +24932,7 @@ function cf(e, t, r, a, n, o) {
24945
24932
  (ee == null ? void 0 : ee.r) === S ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24946
24933
  color: ie,
24947
24934
  style: oe
24948
- }) : ee && ee.r + ee.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !M === Ue && (i[`${S}_${M}`].b = {
24935
+ }) : ee && ee.r + ee.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !M === ze && (i[`${S}_${M}`].b = {
24949
24936
  color: ie,
24950
24937
  style: oe
24951
24938
  })), (ee == null ? void 0 : ee.c) === M ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
@@ -24959,7 +24946,7 @@ function cf(e, t, r, a, n, o) {
24959
24946
  } else if (Ce === "border-horizontal") {
24960
24947
  for (let S = $e; S <= xe; S += 1)
24961
24948
  if (!(!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S])))
24962
- for (let M = Pe; M <= Ue; M += 1)
24949
+ for (let M = Pe; M <= ze; M += 1)
24963
24950
  if (S === $e)
24964
24951
  h.isNil((ti = (ei = s[S]) == null ? void 0 : ei[M]) == null ? void 0 : ti.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].b = {
24965
24952
  color: ie,
@@ -24991,13 +24978,13 @@ function cf(e, t, r, a, n, o) {
24991
24978
  } else if (Ce === "border-vertical") {
24992
24979
  for (let S = $e; S <= xe; S += 1)
24993
24980
  if (!(!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S])))
24994
- for (let M = Pe; M <= Ue; M += 1)
24981
+ for (let M = Pe; M <= ze; M += 1)
24995
24982
  if (M === Pe)
24996
24983
  h.isNil((ui = (ci = s[S]) == null ? void 0 : ci[M]) == null ? void 0 : ui.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].r = {
24997
24984
  color: ie,
24998
24985
  style: oe
24999
24986
  });
25000
- else if (M === Ue)
24987
+ else if (M === ze)
25001
24988
  h.isNil((di = (fi = s[S]) == null ? void 0 : fi[M]) == null ? void 0 : di.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
25002
24989
  color: ie,
25003
24990
  style: oe
@@ -25023,7 +25010,7 @@ function cf(e, t, r, a, n, o) {
25023
25010
  } else if (Ce === "border-none") {
25024
25011
  for (let S = $e; S <= xe; S += 1)
25025
25012
  if (!(!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S])))
25026
- for (let M = Pe; M <= Ue; M += 1) {
25013
+ for (let M = Pe; M <= ze; M += 1) {
25027
25014
  if (h.isNil(i[`${S}_${M}`]) || delete i[`${S}_${M}`], S === $e) {
25028
25015
  const re = $e - 1;
25029
25016
  re >= 0 && i[`${re}_${M}`] && delete i[`${re}_${M}`].b;
@@ -25036,8 +25023,8 @@ function cf(e, t, r, a, n, o) {
25036
25023
  const re = Pe - 1;
25037
25024
  re >= 0 && i[`${S}_${re}`] && delete i[`${S}_${re}`].r;
25038
25025
  }
25039
- if (M === Ue) {
25040
- const re = Ue + 1;
25026
+ if (M === ze) {
25027
+ const re = ze + 1;
25041
25028
  re < s[0].length && i[`${S}_${re}`] && delete i[`${S}_${re}`].l;
25042
25029
  }
25043
25030
  }
@@ -25058,7 +25045,7 @@ function cf(e, t, r, a, n, o) {
25058
25045
  };
25059
25046
  const De = oe - 1;
25060
25047
  if (De >= 0 && i[`${ie}_${De}`])
25061
- if (h.isNil((Wi = (Ui = s[ie]) == null ? void 0 : Ui[De]) == null ? void 0 : Wi.mc))
25048
+ if (h.isNil((Wi = (zi = s[ie]) == null ? void 0 : zi[De]) == null ? void 0 : Wi.mc))
25062
25049
  i[`${ie}_${De}`].r = {
25063
25050
  color: Ce.l.color,
25064
25051
  style: Ce.l.style
@@ -25214,7 +25201,7 @@ function cf(e, t, r, a, n, o) {
25214
25201
  style: Ce.b.style
25215
25202
  };
25216
25203
  else {
25217
- const xe = s[$e][oe], Pe = (zi = c.merge) == null ? void 0 : zi[`${(Pi = xe == null ? void 0 : xe.mc) == null ? void 0 : Pi.r}_${(Hi = xe == null ? void 0 : xe.mc) == null ? void 0 : Hi.c}`];
25204
+ const xe = s[$e][oe], Pe = (Ui = c.merge) == null ? void 0 : Ui[`${(Pi = xe == null ? void 0 : xe.mc) == null ? void 0 : Pi.r}_${(Hi = xe == null ? void 0 : xe.mc) == null ? void 0 : Hi.c}`];
25218
25205
  (Pe == null ? void 0 : Pe.r) === $e && (i[`${$e}_${oe}`].t = {
25219
25206
  color: Ce.b.color,
25220
25207
  style: Ce.b.style
@@ -25388,7 +25375,7 @@ const Ml = (e) => {
25388
25375
  }
25389
25376
  };
25390
25377
  function df(e, t, r = !0) {
25391
- var J, K, W, ce, ye, q, $, A, B, x, Y, E, z, L, pe, de, te, ve, we, Te, Se, me, fe, He, ze, qe, ge;
25378
+ var J, K, W, ce, ye, q, $, A, B, x, Y, E, U, L, pe, de, te, ve, we, Te, Se, me, fe, He, Ue, qe, ge;
25392
25379
  let { count: a, id: n } = t;
25393
25380
  const { type: o, index: i, direction: l, templateSourceRows: c, templateSourceColumns: s } = t;
25394
25381
  n = n || e.currentSheetId;
@@ -25426,36 +25413,36 @@ function df(e, t, r = !0) {
25426
25413
  const _ = y && f.dataVerification != null ? [b].map((I) => {
25427
25414
  const R = {};
25428
25415
  return h.forEach(f.dataVerification, (X, H) => {
25429
- const U = Number(H.split("_")[0]), he = Number(H.split("_")[1]);
25430
- U === I && (R[he] = h.cloneDeep(X));
25416
+ const z = Number(H.split("_")[0]), he = Number(H.split("_")[1]);
25417
+ z === I && (R[he] = h.cloneDeep(X));
25431
25418
  }), R;
25432
25419
  }) : null, T = g && f.dataVerification != null ? [w].map((I) => {
25433
25420
  const R = {};
25434
25421
  return h.forEach(f.dataVerification, (X, H) => {
25435
- const U = Number(H.split("_")[0]);
25436
- Number(H.split("_")[1]) === I && (R[U] = h.cloneDeep(X));
25422
+ const z = Number(H.split("_")[0]);
25423
+ Number(H.split("_")[1]) === I && (R[z] = h.cloneDeep(X));
25437
25424
  }), R;
25438
25425
  }) : null;
25439
25426
  d.merge == null && (d.merge = {});
25440
25427
  const v = {};
25441
25428
  h.forEach(d.merge, (I) => {
25442
- const { r: R, c: X, rs: H, cs: U } = I;
25443
- o === "row" ? i < R ? v[`${R + a}_${X}`] = { r: R + a, c: X, rs: H, cs: U } : i === R ? l === "lefttop" ? v[`${R + a}_${X}`] = {
25429
+ const { r: R, c: X, rs: H, cs: z } = I;
25430
+ o === "row" ? i < R ? v[`${R + a}_${X}`] = { r: R + a, c: X, rs: H, cs: z } : i === R ? l === "lefttop" ? v[`${R + a}_${X}`] = {
25444
25431
  r: R + a,
25445
25432
  c: X,
25446
25433
  rs: H,
25447
- cs: U
25448
- } : v[`${R}_${X}`] = { r: R, c: X, rs: H + a, cs: U } : i < R + H - 1 ? v[`${R}_${X}`] = { r: R, c: X, rs: H + a, cs: U } : i === R + H - 1 ? l === "lefttop" ? v[`${R}_${X}`] = { r: R, c: X, rs: H + a, cs: U } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: U } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: U } : o === "column" && (i < X ? v[`${R}_${X + a}`] = {
25434
+ cs: z
25435
+ } : v[`${R}_${X}`] = { r: R, c: X, rs: H + a, cs: z } : i < R + H - 1 ? v[`${R}_${X}`] = { r: R, c: X, rs: H + a, cs: z } : i === R + H - 1 ? l === "lefttop" ? v[`${R}_${X}`] = { r: R, c: X, rs: H + a, cs: z } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: z } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: z } : o === "column" && (i < X ? v[`${R}_${X + a}`] = {
25449
25436
  r: R,
25450
25437
  c: X + a,
25451
25438
  rs: H,
25452
- cs: U
25439
+ cs: z
25453
25440
  } : i === X ? l === "lefttop" ? v[`${R}_${X + a}`] = {
25454
25441
  r: R,
25455
25442
  c: X + a,
25456
25443
  rs: H,
25457
- cs: U
25458
- } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: U + a } : i < X + U - 1 ? v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: U + a } : i === X + U - 1 ? l === "lefttop" ? v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: U + a } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: U } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: U });
25444
+ cs: z
25445
+ } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: z + a } : i < X + z - 1 ? v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: z + a } : i === X + z - 1 ? l === "lefttop" ? v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: z + a } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: z } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: z });
25459
25446
  }), d.merge = v;
25460
25447
  const N = [];
25461
25448
  for (let I = 0; I < e.luckysheetfile.length; I += 1) {
@@ -25463,7 +25450,7 @@ function df(e, t, r = !0) {
25463
25450
  continue;
25464
25451
  const { calcChain: R } = e.luckysheetfile[I], { data: X } = e.luckysheetfile[I];
25465
25452
  for (let H = 0; H < R.length; H += 1) {
25466
- const U = h.cloneDeep(R[H]), he = U.r, _e = U.c, Ne = U.id, Z = Aa(e, he, _e, Ne);
25453
+ const z = h.cloneDeep(R[H]), he = z.r, _e = z.c, Ne = z.id, Z = Aa(e, he, _e, Ne);
25467
25454
  if (o === "row" && I === u) {
25468
25455
  const le = `=${bt(
25469
25456
  Z,
@@ -25473,7 +25460,7 @@ function df(e, t, r = !0) {
25473
25460
  i,
25474
25461
  a
25475
25462
  )}`;
25476
- ((q = (ye = m[he]) == null ? void 0 : ye[_e]) == null ? void 0 : q.f) === Z && (m[he][_e].f = le), l === "lefttop" ? he >= i && (U.r += a) : l === "rightbottom" && he > i && (U.r += a), N.push(U);
25463
+ ((q = (ye = m[he]) == null ? void 0 : ye[_e]) == null ? void 0 : q.f) === Z && (m[he][_e].f = le), l === "lefttop" ? he >= i && (z.r += a) : l === "rightbottom" && he > i && (z.r += a), N.push(z);
25477
25464
  } else if (o === "row") {
25478
25465
  const le = `=${bt(
25479
25466
  Z,
@@ -25493,7 +25480,7 @@ function df(e, t, r = !0) {
25493
25480
  i,
25494
25481
  a
25495
25482
  )}`;
25496
- ((x = (B = m[he]) == null ? void 0 : B[_e]) == null ? void 0 : x.f) === Z && (m[he][_e].f = le), l === "lefttop" ? _e >= i && (U.c += a) : l === "rightbottom" && _e > i && (U.c += a), N.push(U);
25483
+ ((x = (B = m[he]) == null ? void 0 : B[_e]) == null ? void 0 : x.f) === Z && (m[he][_e].f = le), l === "lefttop" ? _e >= i && (z.c += a) : l === "rightbottom" && _e > i && (z.c += a), N.push(z);
25497
25484
  } else if (o === "column") {
25498
25485
  const le = `=${bt(
25499
25486
  Z,
@@ -25521,13 +25508,13 @@ function df(e, t, r = !0) {
25521
25508
  if (!h.isEmpty(C) && C != null) {
25522
25509
  k = { filter_select: null, filter: null };
25523
25510
  let I = C.row[0], R = C.row[1], X = C.column[0], H = C.column[1];
25524
- o === "row" ? (I < i ? (R === i && l === "lefttop" || R > i) && (R += a) : I === i ? l === "lefttop" ? (I += a, R += a) : l === "rightbottom" && R > i && (R += a) : (I += a, R += a), D != null && (k.filter = {}, h.forEach(D, (U, he) => {
25511
+ o === "row" ? (I < i ? (R === i && l === "lefttop" || R > i) && (R += a) : I === i ? l === "lefttop" ? (I += a, R += a) : l === "rightbottom" && R > i && (R += a) : (I += a, R += a), D != null && (k.filter = {}, h.forEach(D, (z, he) => {
25525
25512
  const _e = D[he].rowhidden, Ne = {};
25526
25513
  h.forEach(_e, (Z, le) => {
25527
25514
  const Re = parseFloat(le);
25528
25515
  Re < i ? Ne[Re] = 0 : Re === i ? l === "lefttop" ? Ne[Re + a] = 0 : l === "rightbottom" && (Ne[Re] = 0) : Ne[Re + a] = 0;
25529
25516
  }), k.filter[he] = h.cloneDeep(D[he]), k.filter[he].rowhidden = Ne, k.filter[he].str = I, k.filter[he].edr = R;
25530
- }))) : o === "column" && (X < i ? (H === i && l === "lefttop" || H > i) && (H += a) : X === i ? l === "lefttop" ? (X += a, H += a) : l === "rightbottom" && H > i && (H += a) : (X += a, H += a), D != null && (k.filter = {}, h.forEach(D, (U, he) => {
25517
+ }))) : o === "column" && (X < i ? (H === i && l === "lefttop" || H > i) && (H += a) : X === i ? l === "lefttop" ? (X += a, H += a) : l === "rightbottom" && H > i && (H += a) : (X += a, H += a), D != null && (k.filter = {}, h.forEach(D, (z, he) => {
25531
25518
  let _e = D[he].cindex;
25532
25519
  (_e === i && l === "lefttop" || _e > i) && (_e += a), k.filter[_e - X] = h.cloneDeep(D[he]), k.filter[_e - X].cindex = _e, k.filter[_e - X].stc = X, k.filter[_e - X].edc = H;
25533
25520
  }))), k.filter_select = { row: [I, R], column: [X, H] };
@@ -25542,8 +25529,8 @@ function df(e, t, r = !0) {
25542
25529
  if (P != null && P.length > 0)
25543
25530
  for (let I = 0; I < P.length; I += 1) {
25544
25531
  const R = P[I].cellrange, X = [];
25545
- for (let U = 0; U < R.length; U += 1) {
25546
- let he = R[U].row[0], _e = R[U].row[1], Ne = R[U].column[0], Z = R[U].column[1];
25532
+ for (let z = 0; z < R.length; z += 1) {
25533
+ let he = R[z].row[0], _e = R[z].row[1], Ne = R[z].column[0], Z = R[z].column[1];
25547
25534
  o === "row" ? he < i ? (_e === i && l === "lefttop" || _e > i) && (_e += a) : he === i ? (l === "lefttop" || l === "rightbottom" && _e >= i) && (_e += a) : (he += a, _e += a) : o === "column" && (Ne < i ? (Z === i && l === "lefttop" || Z > i) && (Z += a) : Ne === i ? (l === "lefttop" || l === "rightbottom" && Z >= i) && (Z += a) : (Ne += a, Z += a)), X.push({ row: [he, _e], column: [Ne, Z] });
25548
25535
  }
25549
25536
  const H = h.clone(P[I]);
@@ -25552,53 +25539,53 @@ function df(e, t, r = !0) {
25552
25539
  const V = f.luckysheet_alternateformat_save, ne = [];
25553
25540
  if (V != null && V.length > 0)
25554
25541
  for (let I = 0; I < V.length; I += 1) {
25555
- let R = V[I].cellrange.row[0], X = V[I].cellrange.row[1], H = V[I].cellrange.column[0], U = V[I].cellrange.column[1];
25542
+ let R = V[I].cellrange.row[0], X = V[I].cellrange.row[1], H = V[I].cellrange.column[0], z = V[I].cellrange.column[1];
25556
25543
  const he = h.clone(V[I]);
25557
- o === "row" ? R < i ? (X === i && l === "lefttop" || X > i) && (X += a) : R === i ? (l === "lefttop" || l === "rightbottom" && X >= i) && (X += a) : (R += a, X += a) : o === "column" && (H < i ? (U === i && l === "lefttop" || U > i) && (U += a) : H === i ? (l === "lefttop" || l === "rightbottom" && U >= i) && (U += a) : (H += a, U += a)), he.cellrange = { row: [R, X], column: [H, U] }, ne.push(he);
25544
+ o === "row" ? R < i ? (X === i && l === "lefttop" || X > i) && (X += a) : R === i ? (l === "lefttop" || l === "rightbottom" && X >= i) && (X += a) : (R += a, X += a) : o === "column" && (H < i ? (z === i && l === "lefttop" || z > i) && (z += a) : H === i ? (l === "lefttop" || l === "rightbottom" && z >= i) && (z += a) : (H += a, z += a)), he.cellrange = { row: [R, X], column: [H, z] }, ne.push(he);
25558
25545
  }
25559
25546
  const { frozen: G } = f;
25560
25547
  if (G) {
25561
25548
  const I = l === "lefttop" ? i - 1 : i;
25562
- o === "row" && (G.type === "rangeRow" || G.type === "rangeBoth") && (((z = G.range) == null ? void 0 : z.row_focus) ?? -1) > I && (G.range.row_focus += a), o === "column" && (G.type === "rangeColumn" || G.type === "rangeBoth") && (((L = G.range) == null ? void 0 : L.column_focus) ?? -1) > I && (G.range.column_focus += a);
25549
+ o === "row" && (G.type === "rangeRow" || G.type === "rangeBoth") && (((U = G.range) == null ? void 0 : U.row_focus) ?? -1) > I && (G.range.row_focus += a), o === "column" && (G.type === "rangeColumn" || G.type === "rangeBoth") && (((L = G.range) == null ? void 0 : L.column_focus) ?? -1) > I && (G.range.column_focus += a);
25563
25550
  }
25564
25551
  const { dataVerification: Q } = f, F = {};
25565
25552
  Q != null && h.forEach(Q, (I, R) => {
25566
- const X = Number(R.split("_")[0]), H = Number(R.split("_")[1]), U = Q[R];
25553
+ const X = Number(R.split("_")[0]), H = Number(R.split("_")[1]), z = Q[R];
25567
25554
  if (o === "row")
25568
25555
  if (i < X)
25569
- F[`${X + a}_${H}`] = h.cloneDeep(U);
25556
+ F[`${X + a}_${H}`] = h.cloneDeep(z);
25570
25557
  else if (i === X) {
25571
25558
  if (l === "lefttop") {
25572
- if (F[`${X + a}_${H}`] = h.cloneDeep(U), !_)
25559
+ if (F[`${X + a}_${H}`] = h.cloneDeep(z), !_)
25573
25560
  for (let he = 0; he < a; he += 1)
25574
- F[`${X + he}_${H}`] = h.cloneDeep(U);
25575
- } else if (F[`${X}_${H}`] = h.cloneDeep(U), !_)
25561
+ F[`${X + he}_${H}`] = h.cloneDeep(z);
25562
+ } else if (F[`${X}_${H}`] = h.cloneDeep(z), !_)
25576
25563
  for (let he = 0; he < a; he += 1)
25577
- F[`${X + he + 1}_${H}`] = h.cloneDeep(U);
25564
+ F[`${X + he + 1}_${H}`] = h.cloneDeep(z);
25578
25565
  } else
25579
- F[`${X}_${H}`] = h.cloneDeep(U);
25566
+ F[`${X}_${H}`] = h.cloneDeep(z);
25580
25567
  else if (o === "column")
25581
25568
  if (i < H)
25582
- F[`${X}_${H + a}`] = h.cloneDeep(U);
25569
+ F[`${X}_${H + a}`] = h.cloneDeep(z);
25583
25570
  else if (i === H) {
25584
25571
  if (l === "lefttop") {
25585
- if (F[`${X}_${H + a}`] = h.cloneDeep(U), !T)
25572
+ if (F[`${X}_${H + a}`] = h.cloneDeep(z), !T)
25586
25573
  for (let he = 0; he < a; he += 1)
25587
- F[`${X}_${H + he}`] = h.cloneDeep(U);
25588
- } else if (F[`${X}_${H}`] = h.cloneDeep(U), !T)
25574
+ F[`${X}_${H + he}`] = h.cloneDeep(z);
25575
+ } else if (F[`${X}_${H}`] = h.cloneDeep(z), !T)
25589
25576
  for (let he = 0; he < a; he += 1)
25590
- F[`${X}_${H + he + 1}`] = h.cloneDeep(U);
25577
+ F[`${X}_${H + he + 1}`] = h.cloneDeep(z);
25591
25578
  } else
25592
- F[`${X}_${H}`] = h.cloneDeep(U);
25579
+ F[`${X}_${H}`] = h.cloneDeep(z);
25593
25580
  });
25594
25581
  const { hyperlink: ae } = f, se = {};
25595
25582
  if (ae != null && h.forEach(ae, (I, R) => {
25596
- const X = Number(R.split("_")[0]), H = Number(R.split("_")[1]), U = ae[R];
25597
- o === "row" ? i < X ? se[`${X + a}_${H}`] = U : i === X ? l === "lefttop" ? se[`${X + a}_${H}`] = U : se[`${X}_${H}`] = U : se[`${X}_${H}`] = U : o === "column" && (i < H ? se[`${X}_${H + a}`] = U : i === H ? l === "lefttop" ? se[`${X}_${H + a}`] = U : se[`${X}_${H}`] = U : se[`${X}_${H}`] = U);
25583
+ const X = Number(R.split("_")[0]), H = Number(R.split("_")[1]), z = ae[R];
25584
+ o === "row" ? i < X ? se[`${X + a}_${H}`] = z : i === X ? l === "lefttop" ? se[`${X + a}_${H}`] = z : se[`${X}_${H}`] = z : se[`${X}_${H}`] = z : o === "column" && (i < H ? se[`${X}_${H + a}`] = z : i === H ? l === "lefttop" ? se[`${X}_${H + a}`] = z : se[`${X}_${H}`] = z : se[`${X}_${H}`] = z);
25598
25585
  }), o === "row") {
25599
25586
  const I = h.cloneDeep(d.borderInfo || []), R = y ? [
25600
25587
  ((pe = d.rowlen) == null ? void 0 : pe[b]) ?? f.defaultRowHeight ?? e.defaultrowlen
25601
- ] : null, X = y ? [(de = d.customHeight) == null ? void 0 : de[b]] : null, H = ((te = d.rowlen) == null ? void 0 : te[i]) ?? f.defaultRowHeight ?? e.defaultrowlen, U = (ve = d.customHeight) == null ? void 0 : ve[i];
25588
+ ] : null, X = y ? [(de = d.customHeight) == null ? void 0 : de[b]] : null, H = ((te = d.rowlen) == null ? void 0 : te[i]) ?? f.defaultRowHeight ?? e.defaultrowlen, z = (ve = d.customHeight) == null ? void 0 : ve[i];
25602
25589
  if (d.rowlen != null) {
25603
25590
  const Ee = {}, ke = {};
25604
25591
  h.forEach(d.rowlen, (We, Be) => {
@@ -25625,7 +25612,7 @@ function df(e, t, r = !0) {
25625
25612
  d.customHeight || (d.customHeight = {});
25626
25613
  for (let ke = 0; ke < a; ke += 1)
25627
25614
  X[0] === 1 && (d.customHeight[Ee + ke] = 1);
25628
- } else if (U === 1) {
25615
+ } else if (z === 1) {
25629
25616
  d.customHeight || (d.customHeight = {});
25630
25617
  for (let ke = 0; ke < a; ke += 1)
25631
25618
  d.customHeight[Ee + ke] = 1;
@@ -25690,7 +25677,7 @@ function df(e, t, r = !0) {
25690
25677
  } else {
25691
25678
  const I = h.cloneDeep(d.borderInfo || []), R = g ? [
25692
25679
  ((Te = d.columnlen) == null ? void 0 : Te[w]) ?? f.defaultColWidth ?? e.defaultcollen
25693
- ] : null, X = g ? [(Se = d.customWidth) == null ? void 0 : Se[w]] : null, H = ((me = d.columnlen) == null ? void 0 : me[i]) ?? f.defaultColWidth ?? e.defaultcollen, U = (fe = d.customWidth) == null ? void 0 : fe[i];
25680
+ ] : null, X = g ? [(Se = d.customWidth) == null ? void 0 : Se[w]] : null, H = ((me = d.columnlen) == null ? void 0 : me[i]) ?? f.defaultColWidth ?? e.defaultcollen, z = (fe = d.customWidth) == null ? void 0 : fe[i];
25694
25681
  if (d.columnlen != null) {
25695
25682
  const Z = {}, le = {};
25696
25683
  h.forEach(d.columnlen, (Re, Ae) => {
@@ -25717,7 +25704,7 @@ function df(e, t, r = !0) {
25717
25704
  d.customWidth || (d.customWidth = {});
25718
25705
  for (let le = 0; le < a; le += 1)
25719
25706
  X[0] === 1 && (d.customWidth[Z + le] = 1);
25720
- } else if (U === 1) {
25707
+ } else if (z === 1) {
25721
25708
  d.customWidth || (d.customWidth = {});
25722
25709
  for (let le = 0; le < a; le += 1)
25723
25710
  d.customWidth[Z + le] = 1;
@@ -25788,8 +25775,8 @@ function df(e, t, r = !0) {
25788
25775
  const I = l === "lefttop" ? i : i + 1;
25789
25776
  for (let R = 0; R < a; R += 1) {
25790
25777
  const X = I + R;
25791
- h.forEach(_[0], (H, U) => {
25792
- const he = Number(U);
25778
+ h.forEach(_[0], (H, z) => {
25779
+ const he = Number(z);
25793
25780
  F[`${X}_${he}`] = h.cloneDeep(H);
25794
25781
  });
25795
25782
  }
@@ -25798,8 +25785,8 @@ function df(e, t, r = !0) {
25798
25785
  const I = l === "lefttop" ? i : i + 1;
25799
25786
  for (let R = 0; R < a; R += 1) {
25800
25787
  const X = I + R;
25801
- h.forEach(T[0], (H, U) => {
25802
- const he = Number(U);
25788
+ h.forEach(T[0], (H, z) => {
25789
+ const he = Number(z);
25803
25790
  F[`${he}_${X}`] = h.cloneDeep(H);
25804
25791
  });
25805
25792
  }
@@ -25808,8 +25795,8 @@ function df(e, t, r = !0) {
25808
25795
  const I = l === "lefttop" ? i : i + 1;
25809
25796
  for (let R = 0; R < a; R += 1) {
25810
25797
  const X = b, H = I + R;
25811
- for (let U = 0; U < P.length; U += 1) {
25812
- const he = P[U], _e = (he.cellrange || []).filter((Ne) => X >= Ne.row[0] && X <= Ne.row[1]).map((Ne) => ({
25798
+ for (let z = 0; z < P.length; z += 1) {
25799
+ const he = P[z], _e = (he.cellrange || []).filter((Ne) => X >= Ne.row[0] && X <= Ne.row[1]).map((Ne) => ({
25813
25800
  row: [H, H],
25814
25801
  column: [Ne.column[0], Ne.column[1]]
25815
25802
  }));
@@ -25824,8 +25811,8 @@ function df(e, t, r = !0) {
25824
25811
  const I = l === "lefttop" ? i : i + 1;
25825
25812
  for (let R = 0; R < a; R += 1) {
25826
25813
  const X = w, H = I + R;
25827
- for (let U = 0; U < P.length; U += 1) {
25828
- const he = P[U], _e = (he.cellrange || []).filter((Ne) => X >= Ne.column[0] && X <= Ne.column[1]).map((Ne) => ({
25814
+ for (let z = 0; z < P.length; z += 1) {
25815
+ const he = P[z], _e = (he.cellrange || []).filter((Ne) => X >= Ne.column[0] && X <= Ne.column[1]).map((Ne) => ({
25829
25816
  row: [Ne.row[0], Ne.row[1]],
25830
25817
  column: [H, H]
25831
25818
  }));
@@ -25842,7 +25829,7 @@ function df(e, t, r = !0) {
25842
25829
  { row: [i, i + a - 1], column: [0, m[0].length - 1] }
25843
25830
  ] : ue = [
25844
25831
  { row: [i + 1, i + a], column: [0, m[0].length - 1] }
25845
- ], f.row = f.data.length) : (l === "lefttop" ? ue = [{ row: [0, m.length - 1], column: [i, i + a - 1] }] : ue = [{ row: [0, m.length - 1], column: [i + 1, i + a] }], f.column = (ze = f.data[0]) == null ? void 0 : ze.length), r && (f.luckysheet_select_save = ue, f.id === e.currentSheetId && (e.luckysheet_select_save = ue)), kl(v, f);
25832
+ ], f.row = f.data.length) : (l === "lefttop" ? ue = [{ row: [0, m.length - 1], column: [i, i + a - 1] }] : ue = [{ row: [0, m.length - 1], column: [i + 1, i + a] }], f.column = (Ue = f.data[0]) == null ? void 0 : Ue.length), r && (f.luckysheet_select_save = ue, f.id === e.currentSheetId && (e.luckysheet_select_save = ue)), kl(v, f);
25846
25833
  const be = Ml(d.merge);
25847
25834
  if (o === "row") {
25848
25835
  const I = l === "lefttop" ? i : i + 1, R = be ? Math.min(I, be.minR) : I;
@@ -25945,7 +25932,7 @@ function Rl(e, t) {
25945
25932
  continue;
25946
25933
  const { calcChain: A } = e.luckysheetfile[$], { data: B } = e.luckysheetfile[$];
25947
25934
  for (let x = 0; x < A.length; x += 1) {
25948
- const Y = h.cloneDeep(A[x]), E = Y.r, z = Y.c, L = Y.id, pe = Aa(e, E, z, L);
25935
+ const Y = h.cloneDeep(A[x]), E = Y.r, U = Y.c, L = Y.id, pe = Aa(e, E, U, L);
25949
25936
  if (r === "row" && $ === i) {
25950
25937
  if (E < a || E > n) {
25951
25938
  const de = `=${bt(
@@ -25956,7 +25943,7 @@ function Rl(e, t) {
25956
25943
  a,
25957
25944
  f
25958
25945
  )}`;
25959
- ((Q = (G = B[E]) == null ? void 0 : G[z]) == null ? void 0 : Q.f) === pe && (B[E][z].f = de, de.includes("#REF!") && Dn(B[E][z])), E > n && (Y.r = E - f), d.push(Y);
25946
+ ((Q = (G = B[E]) == null ? void 0 : G[U]) == null ? void 0 : Q.f) === pe && (B[E][U].f = de, de.includes("#REF!") && Dn(B[E][U])), E > n && (Y.r = E - f), d.push(Y);
25960
25947
  }
25961
25948
  } else if (r === "row") {
25962
25949
  const de = `=${bt(
@@ -25967,9 +25954,9 @@ function Rl(e, t) {
25967
25954
  a,
25968
25955
  f
25969
25956
  )}`;
25970
- ((ae = (F = B[E]) == null ? void 0 : F[z]) == null ? void 0 : ae.f) === pe && (B[E][z].f = de, de === "=#REF!" && Dn(B[E][z]));
25957
+ ((ae = (F = B[E]) == null ? void 0 : F[U]) == null ? void 0 : ae.f) === pe && (B[E][U].f = de, de === "=#REF!" && Dn(B[E][U]));
25971
25958
  } else if (r === "column" && $ === i) {
25972
- if (z < a || z > n) {
25959
+ if (U < a || U > n) {
25973
25960
  const de = `=${bt(
25974
25961
  pe,
25975
25962
  "del",
@@ -25978,7 +25965,7 @@ function Rl(e, t) {
25978
25965
  a,
25979
25966
  f
25980
25967
  )}`;
25981
- ((ue = (se = B[E]) == null ? void 0 : se[z]) == null ? void 0 : ue.f) === pe && (B[E][z].f = de, de.includes("#REF!") && Dn(B[E][z])), z > n && (Y.c = z - f), d.push(Y);
25968
+ ((ue = (se = B[E]) == null ? void 0 : se[U]) == null ? void 0 : ue.f) === pe && (B[E][U].f = de, de.includes("#REF!") && Dn(B[E][U])), U > n && (Y.c = U - f), d.push(Y);
25982
25969
  }
25983
25970
  } else if (r === "column") {
25984
25971
  const de = `=${bt(
@@ -25989,7 +25976,7 @@ function Rl(e, t) {
25989
25976
  a,
25990
25977
  f
25991
25978
  )}`;
25992
- ((J = (be = B[E]) == null ? void 0 : be[z]) == null ? void 0 : J.f) === pe && (B[E][z].f = de, de === "=#REF!" && Dn(B[E][z]));
25979
+ ((J = (be = B[E]) == null ? void 0 : be[U]) == null ? void 0 : J.f) === pe && (B[E][U].f = de, de === "=#REF!" && Dn(B[E][U]));
25993
25980
  }
25994
25981
  }
25995
25982
  ql(
@@ -26014,8 +26001,8 @@ function Rl(e, t) {
26014
26001
  row: [$, A],
26015
26002
  column: [B, x]
26016
26003
  }), g.filter_select != null && y != null && h.forEach(y, (Y, E) => {
26017
- const z = y[E].rowhidden, L = {};
26018
- h.forEach(z, (pe, de) => {
26004
+ const U = y[E].rowhidden, L = {};
26005
+ h.forEach(U, (pe, de) => {
26019
26006
  const te = parseFloat(de);
26020
26007
  te < a ? L[te] = 0 : te > n && (L[te - f] = 0);
26021
26008
  }), h.isEmpty(L) || (g.filter == null && (g.filter = {}), g.filter[E] = h.cloneDeep(y[E]), g.filter[E].rowhidden = L, g.filter[E].str = $, g.filter[E].edr = A);
@@ -26029,8 +26016,8 @@ function Rl(e, t) {
26029
26016
  row: [$, A],
26030
26017
  column: [B, x]
26031
26018
  }), g.filter_select != null && y != null && h.forEach(y, (Y, E) => {
26032
- let z = y[E].cindex;
26033
- z < a ? (g.filter == null && (g.filter = {}), g.filter[z - B] = h.cloneDeep(y[E]), g.filter[z - B].edc = x) : z > n && (z -= f, g.filter == null && (g.filter = {}), g.filter[z - B] = h.cloneDeep(y[E]), g.filter[z - B].cindex = z, g.filter[z - B].stc = B, g.filter[z - B].edc = x);
26019
+ let U = y[E].cindex;
26020
+ U < a ? (g.filter == null && (g.filter = {}), g.filter[U - B] = h.cloneDeep(y[E]), g.filter[U - B].edc = x) : U > n && (U -= f, g.filter == null && (g.filter = {}), g.filter[U - B] = h.cloneDeep(y[E]), g.filter[U - B].cindex = U, g.filter[U - B].stc = B, g.filter[U - B].edc = x);
26034
26021
  }));
26035
26022
  }
26036
26023
  const b = (g == null ? void 0 : g.filter) != null ? qt(g.filter) : qt(y);
@@ -26044,8 +26031,8 @@ function Rl(e, t) {
26044
26031
  for (let $ = 0; $ < w.length; $ += 1) {
26045
26032
  const A = w[$].cellrange, B = [];
26046
26033
  for (let x = 0; x < A.length; x += 1) {
26047
- let Y = A[x].row[0], E = A[x].row[1], z = A[x].column[0], L = A[x].column[1];
26048
- r === "row" ? Y >= a && E <= n || (Y > n ? (Y -= f, E -= f) : Y < a ? E < a || (E <= n ? E = a - 1 : E -= f) : E > n && (Y = a, E -= f), B.push({ row: [Y, E], column: [z, L] })) : r === "column" && (z >= a && L <= n || (z > n ? (z -= f, L -= f) : z < a ? L < a || (L <= n ? L = a - 1 : L -= f) : L > n && (z = a, L -= f), B.push({ row: [Y, E], column: [z, L] })));
26034
+ let Y = A[x].row[0], E = A[x].row[1], U = A[x].column[0], L = A[x].column[1];
26035
+ r === "row" ? Y >= a && E <= n || (Y > n ? (Y -= f, E -= f) : Y < a ? E < a || (E <= n ? E = a - 1 : E -= f) : E > n && (Y = a, E -= f), B.push({ row: [Y, E], column: [U, L] })) : r === "column" && (U >= a && L <= n || (U > n ? (U -= f, L -= f) : U < a ? L < a || (L <= n ? L = a - 1 : L -= f) : L > n && (U = a, L -= f), B.push({ row: [Y, E], column: [U, L] })));
26049
26036
  }
26050
26037
  if (B.length > 0) {
26051
26038
  const x = h.clone(w[$]);
@@ -26081,39 +26068,39 @@ function Rl(e, t) {
26081
26068
  c.rowlen == null && (c.rowlen = {});
26082
26069
  const $ = {}, A = {};
26083
26070
  h.forEach(c.rowlen, (Y, E) => {
26084
- const z = parseFloat(E);
26085
- z < a ? $[z] = c.rowlen[z] : z > n && ($[z - f] = c.rowlen[z]);
26071
+ const U = parseFloat(E);
26072
+ U < a ? $[U] = c.rowlen[U] : U > n && ($[U - f] = c.rowlen[U]);
26086
26073
  }), h.forEach(c.rowReadOnly, (Y, E) => {
26087
- const z = parseFloat(E);
26088
- z < a ? A[z] = c.rowReadOnly[z] : z > n && (A[z - f] = c.rowReadOnly[z]);
26074
+ const U = parseFloat(E);
26075
+ U < a ? A[U] = c.rowReadOnly[U] : U > n && (A[U - f] = c.rowReadOnly[U]);
26089
26076
  }), c.rowlen = $, c.rowReadOnly = A;
26090
26077
  const B = {};
26091
26078
  h.forEach(c.rowhidden_manual || {}, (Y, E) => {
26092
- const z = parseFloat(E);
26093
- z < a ? B[z] = c.rowhidden_manual[z] : z > n && (B[z - f] = c.rowhidden_manual[z]);
26079
+ const U = parseFloat(E);
26080
+ U < a ? B[U] = c.rowhidden_manual[U] : U > n && (B[U - f] = c.rowhidden_manual[U]);
26094
26081
  }), c.rowhidden_manual = B;
26095
26082
  const x = (g == null ? void 0 : g.filter) != null ? qt(g.filter) : qt(y);
26096
26083
  if (c.rowhidden_filter = x, c.rowhidden = h.assign({}, c.rowhidden_manual, x), c.customHeight == null) {
26097
26084
  c.customHeight = {};
26098
26085
  const Y = {};
26099
- h.forEach(c.customHeight, (E, z) => {
26100
- const L = parseFloat(z);
26086
+ h.forEach(c.customHeight, (E, U) => {
26087
+ const L = parseFloat(U);
26101
26088
  L < a ? Y[L] = c.customHeight[L] : L > n && (Y[L - f] = c.customHeight[L]);
26102
26089
  }), c.customHeight = Y;
26103
26090
  }
26104
26091
  if (c.customHeight == null) {
26105
26092
  c.customHeight = {};
26106
26093
  const Y = {};
26107
- h.forEach(c.customHeight, (E, z) => {
26108
- const L = parseFloat(z);
26094
+ h.forEach(c.customHeight, (E, U) => {
26095
+ const L = parseFloat(U);
26109
26096
  L < a ? Y[L] = c.customHeight[L] : L > n && (Y[L - f] = c.customHeight[L]);
26110
26097
  }), c.customHeight = Y;
26111
26098
  }
26112
26099
  if (c.borderInfo && c.borderInfo.length > 0) {
26113
26100
  const Y = [];
26114
26101
  for (let E = 0; E < c.borderInfo.length; E += 1) {
26115
- const { rangeType: z } = c.borderInfo[E];
26116
- if (z === "range") {
26102
+ const { rangeType: U } = c.borderInfo[E];
26103
+ if (U === "range") {
26117
26104
  const L = c.borderInfo[E].range, pe = [];
26118
26105
  for (let de = 0; de < L.length; de += 1) {
26119
26106
  let te = L[de].row[0], ve = L[de].row[1];
@@ -26134,7 +26121,7 @@ function Rl(e, t) {
26134
26121
  };
26135
26122
  Y.push(de);
26136
26123
  }
26137
- } else if (z === "cell") {
26124
+ } else if (U === "cell") {
26138
26125
  const { row_index: L } = c.borderInfo[E].value;
26139
26126
  L < a ? Y.push(c.borderInfo[E]) : L > n && (c.borderInfo[E].value.row_index = L - (n - a + 1), Y.push(c.borderInfo[E]));
26140
26127
  }
@@ -26155,8 +26142,8 @@ function Rl(e, t) {
26155
26142
  c.customWidth = {};
26156
26143
  const x = {};
26157
26144
  h.forEach(c.customWidth, (Y, E) => {
26158
- const z = parseFloat(E);
26159
- z < a ? x[z] = c.customWidth[z] : z > n && (x[z - f] = c.customWidth[z]);
26145
+ const U = parseFloat(E);
26146
+ U < a ? x[U] = c.customWidth[U] : U > n && (x[U - f] = c.customWidth[U]);
26160
26147
  }), c.customWidth = x;
26161
26148
  }
26162
26149
  c.colReadOnly = A, c.colhidden == null && (c.colhidden = {});
@@ -26169,13 +26156,13 @@ function Rl(e, t) {
26169
26156
  for (let Y = 0; Y < c.borderInfo.length; Y += 1) {
26170
26157
  const { rangeType: E } = c.borderInfo[Y];
26171
26158
  if (E === "range") {
26172
- const z = c.borderInfo[Y].range, L = [];
26173
- for (let pe = 0; pe < z.length; pe += 1) {
26174
- let de = z[pe].column[0], te = z[pe].column[1];
26159
+ const U = c.borderInfo[Y].range, L = [];
26160
+ for (let pe = 0; pe < U.length; pe += 1) {
26161
+ let de = U[pe].column[0], te = U[pe].column[1];
26175
26162
  for (let ve = a; ve <= n; ve += 1)
26176
- ve < z[pe].column[0] ? (de -= 1, te -= 1) : ve <= z[pe].column[1] && (te -= 1);
26163
+ ve < U[pe].column[0] ? (de -= 1, te -= 1) : ve <= U[pe].column[1] && (te -= 1);
26177
26164
  te >= de && L.push({
26178
- row: z[pe].row,
26165
+ row: U[pe].row,
26179
26166
  column: [de, te]
26180
26167
  });
26181
26168
  }
@@ -26190,8 +26177,8 @@ function Rl(e, t) {
26190
26177
  x.push(pe);
26191
26178
  }
26192
26179
  } else if (E === "cell") {
26193
- const { col_index: z } = c.borderInfo[Y].value;
26194
- z < a ? x.push(c.borderInfo[Y]) : z > n && (c.borderInfo[Y].value.col_index = z - (n - a + 1), x.push(c.borderInfo[Y]));
26180
+ const { col_index: U } = c.borderInfo[Y].value;
26181
+ U < a ? x.push(c.borderInfo[Y]) : U > n && (c.borderInfo[Y].value.col_index = U - (n - a + 1), x.push(c.borderInfo[Y]));
26195
26182
  }
26196
26183
  }
26197
26184
  c.borderInfo = x;
@@ -26683,7 +26670,7 @@ function Tf(e) {
26683
26670
  function $f(e) {
26684
26671
  return /^0x?[a-fA-F0-9]+$/.test(e);
26685
26672
  }
26686
- const Ho = "#f3f3f3", zo = 5;
26673
+ const Ho = "#f3f3f3", Uo = 5;
26687
26674
  function Ol(e) {
26688
26675
  return typeof e != "string" ? !1 : ["price", "fully_diluted_value"].includes(e) || e.toLowerCase().includes("usd") || e.toLowerCase().includes("price_in");
26689
26676
  }
@@ -26692,7 +26679,7 @@ const Ll = `$#,##0.${"0".repeat(2)}`, Cf = (e, t, r, a) => {
26692
26679
  if (!r.length) return e;
26693
26680
  const n = r.map((i) => {
26694
26681
  const l = [];
26695
- for (let c = 0; c < zo; c += 1)
26682
+ for (let c = 0; c < Uo; c += 1)
26696
26683
  l.push(
26697
26684
  c === 0 ? { m: i, v: i, tb: "1", bg: Ho } : { bg: Ho }
26698
26685
  );
@@ -26702,7 +26689,7 @@ const Ll = `$#,##0.${"0".repeat(2)}`, Cf = (e, t, r, a) => {
26702
26689
  n,
26703
26690
  {
26704
26691
  row: [e, e + r.length - 1],
26705
- column: [t, t + zo - 1]
26692
+ column: [t, t + Uo - 1]
26706
26693
  },
26707
26694
  {},
26708
26695
  !1
@@ -26780,7 +26767,7 @@ const Ll = `$#,##0.${"0".repeat(2)}`, Cf = (e, t, r, a) => {
26780
26767
  ), { m: G, ct: Q, ...F } = ne || {}, ae = oa(j);
26781
26768
  P.push({
26782
26769
  ...F,
26783
- ...Uo(ne, ae),
26770
+ ...zo(ne, ae),
26784
26771
  // move color from styles to cell-level 'fc' when becoming numeric
26785
26772
  v: j,
26786
26773
  ct: Ln(j, ne.ct),
@@ -26837,7 +26824,7 @@ const Ll = `$#,##0.${"0".repeat(2)}`, Cf = (e, t, r, a) => {
26837
26824
  ), { m: G, ct: Q, ...F } = ne || {}, ae = oa(V), se = {};
26838
26825
  ae && Ol(P) && !o ? (se.m = kt(Ll, V), se.ht = 2) : V && (se.m = String(V)), O.push({
26839
26826
  ...F,
26840
- ...Uo(ne, ae),
26827
+ ...zo(ne, ae),
26841
26828
  // move color from styles to cell-level 'fc' when becoming numeric
26842
26829
  v: V,
26843
26830
  ct: Ln(V, ne.ct, P),
@@ -26865,7 +26852,7 @@ const Ll = `$#,##0.${"0".repeat(2)}`, Cf = (e, t, r, a) => {
26865
26852
  }
26866
26853
  const n = Zt({ ct: t, v: e }) && t.fa ? t.fa : "General", { s: o, ...i } = t || {};
26867
26854
  return { ...i, t: "n", fa: n };
26868
- }, Uo = (e, t) => {
26855
+ }, zo = (e, t) => {
26869
26856
  var n, o;
26870
26857
  if (!t) return {};
26871
26858
  const r = (n = e == null ? void 0 : e.ct) == null ? void 0 : n.s;
@@ -27059,7 +27046,7 @@ function kf(e) {
27059
27046
  }
27060
27047
  export {
27061
27048
  vd as $,
27062
- zs as A,
27049
+ Us as A,
27063
27050
  jt as B,
27064
27051
  Vt as C,
27065
27052
  Vn as D,
@@ -27069,7 +27056,7 @@ export {
27069
27056
  Ys as H,
27070
27057
  Jt as I,
27071
27058
  bd as J,
27072
- Uf as K,
27059
+ zf as K,
27073
27060
  Yf as L,
27074
27061
  Qf as M,
27075
27062
  va as N,
@@ -27087,7 +27074,7 @@ export {
27087
27074
  $d as Z,
27088
27075
  ml as _,
27089
27076
  Fe as a,
27090
- Zd as a$,
27077
+ Hd as a$,
27091
27078
  vc as a0,
27092
27079
  Rr as a1,
27093
27080
  wc as a2,
@@ -27098,33 +27085,33 @@ export {
27098
27085
  Na as a7,
27099
27086
  ed as a8,
27100
27087
  Js as a9,
27101
- jn as aA,
27102
- Nr as aB,
27103
- mf as aC,
27104
- $l as aD,
27105
- sl as aE,
27106
- Qu as aF,
27107
- Rn as aG,
27108
- om as aH,
27109
- an as aI,
27110
- Po as aJ,
27111
- ta as aK,
27112
- Mt as aL,
27113
- Vu as aM,
27114
- rn as aN,
27115
- lf as aO,
27116
- gm as aP,
27117
- vm as aQ,
27118
- bm as aR,
27119
- _f as aS,
27120
- ym as aT,
27121
- _m as aU,
27122
- wm as aV,
27123
- Ed as aW,
27124
- ia as aX,
27125
- $m as aY,
27126
- vf as aZ,
27127
- Tm as a_,
27088
+ sl as aA,
27089
+ Qu as aB,
27090
+ Rn as aC,
27091
+ om as aD,
27092
+ Ke as aE,
27093
+ an as aF,
27094
+ ea as aG,
27095
+ Po as aH,
27096
+ ta as aI,
27097
+ Mt as aJ,
27098
+ Vu as aK,
27099
+ rn as aL,
27100
+ lf as aM,
27101
+ gm as aN,
27102
+ en as aO,
27103
+ vm as aP,
27104
+ bm as aQ,
27105
+ _f as aR,
27106
+ ym as aS,
27107
+ _m as aT,
27108
+ wm as aU,
27109
+ Ed as aV,
27110
+ ia as aW,
27111
+ $m as aX,
27112
+ vf as aY,
27113
+ Tm as aZ,
27114
+ Zd as a_,
27128
27115
  un as aa,
27129
27116
  Ze as ab,
27130
27117
  wl as ac,
@@ -27142,81 +27129,81 @@ export {
27142
27129
  It as ao,
27143
27130
  Mu as ap,
27144
27131
  Tl as aq,
27145
- Rl as ar,
27146
- Ke as as,
27147
- ea as at,
27148
- en as au,
27149
- Kf as av,
27150
- Un as aw,
27151
- Cn as ax,
27152
- pm as ay,
27153
- hm as az,
27132
+ Kf as ar,
27133
+ zn as as,
27134
+ Cn as at,
27135
+ pm as au,
27136
+ hm as av,
27137
+ jn as aw,
27138
+ Nr as ax,
27139
+ mf as ay,
27140
+ $l as az,
27154
27141
  $c as b,
27155
27142
  Qd as b$,
27156
- Hd as b0,
27157
- tm as b1,
27158
- nm as b2,
27159
- sm as b3,
27160
- Gd as b4,
27161
- Xd as b5,
27162
- jd as b6,
27163
- Yd as b7,
27164
- Wd as b8,
27165
- Vd as b9,
27166
- Gc as bA,
27167
- Zc as bB,
27168
- fd as bC,
27169
- dd as bD,
27170
- rf as bE,
27171
- Oo as bF,
27172
- ld as bG,
27173
- Ld as bH,
27174
- sd as bI,
27175
- ud as bJ,
27176
- cd as bK,
27177
- tf as bL,
27178
- ef as bM,
27179
- dr as bN,
27180
- Lc as bO,
27181
- em as bP,
27182
- Sd as bQ,
27183
- Ad as bR,
27184
- xd as bS,
27185
- yd as bT,
27186
- rm as bU,
27187
- Id as bV,
27143
+ tm as b0,
27144
+ nm as b1,
27145
+ sm as b2,
27146
+ Gd as b3,
27147
+ Xd as b4,
27148
+ jd as b5,
27149
+ Yd as b6,
27150
+ Wd as b7,
27151
+ Vd as b8,
27152
+ Kd as b9,
27153
+ Zc as bA,
27154
+ fd as bB,
27155
+ dd as bC,
27156
+ rf as bD,
27157
+ Oo as bE,
27158
+ ld as bF,
27159
+ Ld as bG,
27160
+ sd as bH,
27161
+ ud as bI,
27162
+ cd as bJ,
27163
+ tf as bK,
27164
+ ef as bL,
27165
+ dr as bM,
27166
+ Lc as bN,
27167
+ em as bO,
27168
+ Sd as bP,
27169
+ Ad as bQ,
27170
+ xd as bR,
27171
+ yd as bS,
27172
+ rm as bT,
27173
+ Id as bU,
27174
+ Rl as bV,
27188
27175
  xt as bW,
27189
27176
  am as bX,
27190
27177
  Wn as bY,
27191
27178
  hf as bZ,
27192
27179
  Jd as b_,
27193
- Kd as ba,
27194
- id as bb,
27195
- Bd as bc,
27196
- fm as bd,
27197
- ru as be,
27198
- rd as bf,
27199
- iu as bg,
27200
- zd as bh,
27201
- td as bi,
27202
- ou as bj,
27203
- Ff as bk,
27204
- Md as bl,
27205
- ad as bm,
27206
- mm as bn,
27207
- Ud as bo,
27208
- od as bp,
27209
- Pd as bq,
27210
- vr as br,
27211
- Ca as bs,
27212
- Jf as bt,
27213
- kd as bu,
27214
- Cd as bv,
27215
- Nd as bw,
27216
- pd as bx,
27217
- Yn as by,
27218
- xl as bz,
27219
- Ul as c,
27180
+ id as ba,
27181
+ Bd as bb,
27182
+ fm as bc,
27183
+ ru as bd,
27184
+ rd as be,
27185
+ iu as bf,
27186
+ Ud as bg,
27187
+ td as bh,
27188
+ ou as bi,
27189
+ Ff as bj,
27190
+ Md as bk,
27191
+ ad as bl,
27192
+ mm as bm,
27193
+ zd as bn,
27194
+ od as bo,
27195
+ Pd as bp,
27196
+ vr as bq,
27197
+ Ca as br,
27198
+ Jf as bs,
27199
+ kd as bt,
27200
+ Cd as bu,
27201
+ Nd as bv,
27202
+ pd as bw,
27203
+ Yn as bx,
27204
+ xl as by,
27205
+ Gc as bz,
27206
+ zl as c,
27220
27207
  na as c0,
27221
27208
  el as c1,
27222
27209
  qs as c2,
@@ -27244,7 +27231,7 @@ export {
27244
27231
  Sf as cO,
27245
27232
  Ll as cP,
27246
27233
  Wf as ca,
27247
- zf as cb,
27234
+ Uf as cb,
27248
27235
  aa as cc,
27249
27236
  Xc as cd,
27250
27237
  im as ce,
@@ -27274,7 +27261,7 @@ export {
27274
27261
  Nf as f,
27275
27262
  Yo as g,
27276
27263
  Ie as h,
27277
- zc as i,
27264
+ Uc as i,
27278
27265
  wf as j,
27279
27266
  dm as k,
27280
27267
  Rt as l,