@fileverse-dev/dsheet 2.1.2-dropIn-mri-4 → 2.1.2-dropIn-mri-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{executeStringFunction-CdefKC3n.js → executeStringFunction-BU-Q3JXP.js} +475 -465
- package/dist/formula.js +1 -1
- package/dist/{index-B8AinzRL.js → index-DfYO5xfL.js} +11519 -11492
- package/dist/index.es.js +2 -2
- package/dist/sheet-engine/core/modules/formula-async-eval.d.ts +6 -2
- package/dist/sheet-engine/core/modules/formula-worker-bridge.d.ts +3 -1
- package/dist/sheet-engine/core/modules/formula-worker-types.d.ts +9 -2
- package/dist/{use-xlsx-import-impl-BT9Bqynj.js → use-xlsx-import-impl-CHQzU9l2.js} +2 -2
- package/dist/{xlsx-export-impl-CvothH61.js → xlsx-export-impl-CC1y_nZm.js} +2 -2
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ var Xl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
9
9
|
function Qo(e) {
|
|
10
10
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Kf(e) {
|
|
13
13
|
if (e.__esModule) return e;
|
|
14
14
|
var t = e.default;
|
|
15
15
|
if (typeof t == "function") {
|
|
@@ -35,7 +35,7 @@ const Fn = {}, kr = {
|
|
|
35
35
|
hi: () => import("./hi-Ca55EZ4A.js"),
|
|
36
36
|
"zh-TW": () => import("./zh_tw-CINWHD2H.js")
|
|
37
37
|
};
|
|
38
|
-
async function
|
|
38
|
+
async function Qf(e) {
|
|
39
39
|
const t = e in kr ? e : e.split("-")[0], r = t in kr ? t : "en";
|
|
40
40
|
if (Fn[r]) return;
|
|
41
41
|
const a = await kr[r]();
|
|
@@ -13908,7 +13908,7 @@ let ya = "uk";
|
|
|
13908
13908
|
function Ls(e) {
|
|
13909
13909
|
return e === "us" ? "us" : "uk";
|
|
13910
13910
|
}
|
|
13911
|
-
function
|
|
13911
|
+
function Jf(e) {
|
|
13912
13912
|
ya = Ls(e);
|
|
13913
13913
|
}
|
|
13914
13914
|
function Fs() {
|
|
@@ -13942,7 +13942,7 @@ function Hs(e) {
|
|
|
13942
13942
|
function Us(e, t) {
|
|
13943
13943
|
return Hs(e) ? e : il(t);
|
|
13944
13944
|
}
|
|
13945
|
-
function
|
|
13945
|
+
function ed(e) {
|
|
13946
13946
|
if (document.createRange)
|
|
13947
13947
|
if (e.innerHTML !== e.innerText || e.innerHTML === "") {
|
|
13948
13948
|
e.focus();
|
|
@@ -13984,7 +13984,7 @@ function ta(e) {
|
|
|
13984
13984
|
`).replace(/\r/g, `
|
|
13985
13985
|
`);
|
|
13986
13986
|
}
|
|
13987
|
-
function
|
|
13987
|
+
function td(e) {
|
|
13988
13988
|
const t = window.getSelection();
|
|
13989
13989
|
if (!t || t.rangeCount === 0) return null;
|
|
13990
13990
|
const r = t.focusNode;
|
|
@@ -13992,7 +13992,7 @@ function Jf(e) {
|
|
|
13992
13992
|
const a = document.createRange();
|
|
13993
13993
|
return a.selectNodeContents(e), a.setEnd(r, t.focusOffset), ta(a.toString()).length;
|
|
13994
13994
|
}
|
|
13995
|
-
function
|
|
13995
|
+
function nd(e) {
|
|
13996
13996
|
const t = window.getSelection();
|
|
13997
13997
|
if (!t || t.rangeCount === 0) return null;
|
|
13998
13998
|
const r = t.getRangeAt(0);
|
|
@@ -14003,7 +14003,7 @@ function ed(e) {
|
|
|
14003
14003
|
const n = ta(a.toString()).length, o = ta(r.toString());
|
|
14004
14004
|
return { start: n, end: n + o.length };
|
|
14005
14005
|
}
|
|
14006
|
-
function
|
|
14006
|
+
function rd(e, t, r) {
|
|
14007
14007
|
e.focus({ preventScroll: !0 });
|
|
14008
14008
|
const a = window.getSelection();
|
|
14009
14009
|
if (!a) return;
|
|
@@ -14034,7 +14034,7 @@ function td(e, t, r) {
|
|
|
14034
14034
|
u.setStart(o, i), u.setEnd(l, c), a.removeAllRanges(), a.addRange(u);
|
|
14035
14035
|
}
|
|
14036
14036
|
}
|
|
14037
|
-
function
|
|
14037
|
+
function ad(e, t, r) {
|
|
14038
14038
|
if (t >= r) return [];
|
|
14039
14039
|
let a = 0, n = null, o = 0, i = null, l = 0;
|
|
14040
14040
|
function c(f) {
|
|
@@ -14072,7 +14072,7 @@ const Co = {
|
|
|
14072
14072
|
fc: "color",
|
|
14073
14073
|
cl: "text-decoration",
|
|
14074
14074
|
un: "border-bottom"
|
|
14075
|
-
},
|
|
14075
|
+
}, id = {
|
|
14076
14076
|
bl: 1,
|
|
14077
14077
|
it: 1,
|
|
14078
14078
|
ff: 1,
|
|
@@ -14097,7 +14097,7 @@ function vr(e) {
|
|
|
14097
14097
|
var t;
|
|
14098
14098
|
return (e == null ? void 0 : e.t) === "inlineStr" && (((t = e == null ? void 0 : e.s) == null ? void 0 : t.length) ?? 0) > 0;
|
|
14099
14099
|
}
|
|
14100
|
-
function
|
|
14100
|
+
function od(e, t, r) {
|
|
14101
14101
|
const a = Ke(e, t, r, "ct");
|
|
14102
14102
|
if (vr(a)) {
|
|
14103
14103
|
const n = a.s;
|
|
@@ -14156,7 +14156,7 @@ function Ys(e) {
|
|
|
14156
14156
|
const t = Gs(e);
|
|
14157
14157
|
return t === "rgb(0,0,255)" || t === "#0000ff" || t === "#00f" || t === "blue";
|
|
14158
14158
|
}
|
|
14159
|
-
function
|
|
14159
|
+
function ld(e) {
|
|
14160
14160
|
typeof e.fc == "string" && Ys(e.fc) && delete e.fc, e.un === 1 && delete e.un;
|
|
14161
14161
|
}
|
|
14162
14162
|
function js(e, t) {
|
|
@@ -14185,7 +14185,7 @@ function js(e, t) {
|
|
|
14185
14185
|
}
|
|
14186
14186
|
return r;
|
|
14187
14187
|
}
|
|
14188
|
-
function
|
|
14188
|
+
function sd(e, t, r) {
|
|
14189
14189
|
if (h.isNil(e.ct))
|
|
14190
14190
|
return;
|
|
14191
14191
|
const { s: a } = e.ct;
|
|
@@ -14290,7 +14290,7 @@ function pn(e, t, r = !0) {
|
|
|
14290
14290
|
function je(e) {
|
|
14291
14291
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
14292
14292
|
}
|
|
14293
|
-
function
|
|
14293
|
+
function cd(e, t, r, a) {
|
|
14294
14294
|
var d, p, g;
|
|
14295
14295
|
const n = window.getSelection();
|
|
14296
14296
|
if (!n || n.rangeCount === 0) return;
|
|
@@ -14494,7 +14494,7 @@ function nr(e, t, r) {
|
|
|
14494
14494
|
}
|
|
14495
14495
|
return a + r;
|
|
14496
14496
|
}
|
|
14497
|
-
function
|
|
14497
|
+
function ud(e, t, r) {
|
|
14498
14498
|
var d, p, g, y, b, w;
|
|
14499
14499
|
const a = window.getSelection();
|
|
14500
14500
|
if (!a || a.rangeCount === 0) return;
|
|
@@ -14640,7 +14640,7 @@ function Js(e) {
|
|
|
14640
14640
|
if (!(!a || !n) && !(a.linkType !== n.linkType || a.linkAddress !== n.linkAddress))
|
|
14641
14641
|
return a;
|
|
14642
14642
|
}
|
|
14643
|
-
function
|
|
14643
|
+
function fd(e) {
|
|
14644
14644
|
const t = window.getSelection();
|
|
14645
14645
|
if (!(t != null && t.rangeCount) || !t.anchorNode || !e.contains(t.anchorNode))
|
|
14646
14646
|
return;
|
|
@@ -14679,7 +14679,7 @@ function rc(e, t, r, a, n) {
|
|
|
14679
14679
|
const u = a.measureText(o).width, f = a.measureText(s).width, m = Math.max(1, a.measureText(" ").width || 1), d = r - n - u - f, p = Math.floor(d / m);
|
|
14680
14680
|
return p <= 1 ? e : `${`${c}${o}`}${" ".repeat(p)}${s}`;
|
|
14681
14681
|
}
|
|
14682
|
-
function
|
|
14682
|
+
function dd() {
|
|
14683
14683
|
Xt = {}, cr = 0, cl = {};
|
|
14684
14684
|
for (const e in mn) delete mn[e];
|
|
14685
14685
|
sr = 0;
|
|
@@ -17474,7 +17474,7 @@ function Sc(e) {
|
|
|
17474
17474
|
let r = 1, a = e.replace(/([\d]),([\d])/g, "$1$2").replace(/[$]/g, "").replace(/[%]/g, () => (r *= 100, ""));
|
|
17475
17475
|
return t = Number(a), !Number.isNaN(t) || (a = a.replace(/[(](.*)[)]/, (n, o) => (r = -r, o)), t = Number(a), !Number.isNaN(t)) ? t / r : t;
|
|
17476
17476
|
}
|
|
17477
|
-
function
|
|
17477
|
+
function md(e, t, r) {
|
|
17478
17478
|
var n, o, i, l, c, s;
|
|
17479
17479
|
let a = Ke(e, t, r, "m");
|
|
17480
17480
|
return a == null ? a = Ke(e, t, r, "v") : Number.isNaN(Sc(a)) ? ((i = (o = (n = r[e]) == null ? void 0 : n[t]) == null ? void 0 : o.ct) == null ? void 0 : i.t) === "d" || ((s = (c = (l = r[e]) == null ? void 0 : l[t]) == null ? void 0 : c.ct) == null ? void 0 : s.t) === "b" || (a = Ke(e, t, r, "v")) : h.isString(a) && a.indexOf("%") > -1 || (a = Ke(e, t, r, "v")), a;
|
|
@@ -17531,18 +17531,26 @@ function Sa(e, t) {
|
|
|
17531
17531
|
let r = h.sortedIndex(t, e);
|
|
17532
17532
|
return r >= t.length && e > 0 ? r = t.length - 1 : r === -1 && e <= 0 && (r = 0), Ec(r, t);
|
|
17533
17533
|
}
|
|
17534
|
-
const kc = 15, Rc =
|
|
17534
|
+
const kc = 15, Rc = 50, hd = 100, pd = 300, gd = 3e4, Mc = "fortune-formula-execution-debug";
|
|
17535
|
+
function yd() {
|
|
17536
|
+
if (typeof window > "u") return !1;
|
|
17537
|
+
try {
|
|
17538
|
+
return localStorage.getItem(Mc) === "true";
|
|
17539
|
+
} catch {
|
|
17540
|
+
return !1;
|
|
17541
|
+
}
|
|
17542
|
+
}
|
|
17535
17543
|
function aa(e) {
|
|
17536
17544
|
return !!(e.isFormulaCalculating && e.formulaAsyncEval);
|
|
17537
17545
|
}
|
|
17538
|
-
const
|
|
17539
|
-
function
|
|
17540
|
-
return
|
|
17546
|
+
const qc = /\b(SEQUENCE|FILTER|SORT|SORTBY|UNIQUE|TRANSPOSE|ARRAYFORMULA|INDIRECT|OFFSET|INDEX|SPARKLINE)\s*\(/i;
|
|
17547
|
+
function bd(e) {
|
|
17548
|
+
return qc.test(e);
|
|
17541
17549
|
}
|
|
17542
|
-
function
|
|
17550
|
+
function Ic(e, t, r, a, n) {
|
|
17543
17551
|
return `${e}:${t}:${r}:${a}:${n}`;
|
|
17544
17552
|
}
|
|
17545
|
-
function
|
|
17553
|
+
function Dc(e, t, r, a, n, o) {
|
|
17546
17554
|
const i = [];
|
|
17547
17555
|
for (let l = r; l <= a; l += 1)
|
|
17548
17556
|
for (let c = n; c <= o; c += 1) {
|
|
@@ -17565,13 +17573,13 @@ function Lr(e, t, r, a, n) {
|
|
|
17565
17573
|
}
|
|
17566
17574
|
return o;
|
|
17567
17575
|
}
|
|
17568
|
-
function
|
|
17576
|
+
function Oc(e) {
|
|
17569
17577
|
e.rangeValuePassCache = /* @__PURE__ */ new Map(), e.rangeValuePassCacheStats = { hits: 0, misses: 0 };
|
|
17570
17578
|
}
|
|
17571
17579
|
function hl(e) {
|
|
17572
17580
|
e.rangeValuePassCache = void 0, e.rangeValuePassCacheStats = void 0;
|
|
17573
17581
|
}
|
|
17574
|
-
function
|
|
17582
|
+
function Lc(e, t) {
|
|
17575
17583
|
const r = /* @__PURE__ */ new Set(), a = [e], n = /* @__PURE__ */ new Set([e]);
|
|
17576
17584
|
for (; a.length > 0; ) {
|
|
17577
17585
|
const o = a.shift(), i = t.get(o);
|
|
@@ -17581,8 +17589,8 @@ function Oc(e, t) {
|
|
|
17581
17589
|
}
|
|
17582
17590
|
return r;
|
|
17583
17591
|
}
|
|
17584
|
-
let Qt = 0, Un = [];
|
|
17585
|
-
const
|
|
17592
|
+
let Qt = 0, Fc = 0, Un = [];
|
|
17593
|
+
const Bc = {
|
|
17586
17594
|
"^": 0,
|
|
17587
17595
|
"%": 1,
|
|
17588
17596
|
"*": 1,
|
|
@@ -17592,10 +17600,10 @@ const Lc = {
|
|
|
17592
17600
|
}, Eo = "==|!=|<>|<=|>=|=|+|-|>|<|/|*|%|&|^".split("|"), et = {};
|
|
17593
17601
|
for (let e = 0; e < Eo.length; e += 1)
|
|
17594
17602
|
et[Eo[e].toString()] = 1;
|
|
17595
|
-
const Fr = "", Bt = (e) => (e || "").replace(/\u00a0/g, " ").replace(/\u200b/g, ""),
|
|
17603
|
+
const Fr = "", Bt = (e) => (e || "").replace(/\u00a0/g, " ").replace(/\u200b/g, ""), Pc = "[A-Za-z0-9_À-ʯ]+", Hc = "'(?:(?!').|'')*'", Uc = `(${Pc}|${Hc})!`, zc = "[$]?[A-Za-z]+[$]?[0-9]+", Wc = "[$]?[A-Za-z]+", Vc = "[$]?[0-9]+", Gc = `(?:${zc}|${Wc}|${Vc})`, ko = `(?:${Uc})?(${Gc})`, Yc = new RegExp(
|
|
17596
17604
|
`^${ko}(?:[:]${ko})?$`
|
|
17597
17605
|
);
|
|
17598
|
-
function
|
|
17606
|
+
function jc(e) {
|
|
17599
17607
|
if (!e) return e;
|
|
17600
17608
|
const t = new Date(1900, 2, 1, 0, 0, 0), r = (i) => {
|
|
17601
17609
|
let l = Date.UTC(
|
|
@@ -17619,7 +17627,7 @@ function Gc(e) {
|
|
|
17619
17627
|
(i, l, c, s) => `${l} ${c} ${String(s).toUpperCase() === "NOW" ? o : n}`
|
|
17620
17628
|
);
|
|
17621
17629
|
}
|
|
17622
|
-
function
|
|
17630
|
+
function Xc(e, t) {
|
|
17623
17631
|
if (typeof t != "number" || !Number.isFinite(t) || t <= 0 || t > 1e7)
|
|
17624
17632
|
return !1;
|
|
17625
17633
|
const r = e.replace(/^\s*=\s*/i, "").toUpperCase();
|
|
@@ -17651,7 +17659,7 @@ function pl(e, t) {
|
|
|
17651
17659
|
};
|
|
17652
17660
|
return i(e), r;
|
|
17653
17661
|
}
|
|
17654
|
-
function
|
|
17662
|
+
function Zc(e, t) {
|
|
17655
17663
|
const r = new Set(e), a = Array.from(e);
|
|
17656
17664
|
for (; a.length > 0; ) {
|
|
17657
17665
|
const n = a.shift(), o = t.get(n);
|
|
@@ -17661,7 +17669,7 @@ function jc(e, t) {
|
|
|
17661
17669
|
}
|
|
17662
17670
|
return r;
|
|
17663
17671
|
}
|
|
17664
|
-
function
|
|
17672
|
+
function Kc(e) {
|
|
17665
17673
|
const t = e.indexOf(":"), r = e.indexOf(":", t + 1);
|
|
17666
17674
|
if (t === -1 || r === -1) return null;
|
|
17667
17675
|
const a = e.slice(0, t), n = Number(e.slice(t + 1, r)), o = Number(e.slice(r + 1));
|
|
@@ -17673,7 +17681,7 @@ function Tr(e) {
|
|
|
17673
17681
|
function Wn(e, t, r, a, n) {
|
|
17674
17682
|
e.formulaCache.execFunctionGlobalData == null && Tr(e), e.formulaCache.execFunctionGlobalData[`${t}_${r}_${a}`] = n;
|
|
17675
17683
|
}
|
|
17676
|
-
class
|
|
17684
|
+
class Qc {
|
|
17677
17685
|
constructor() {
|
|
17678
17686
|
Ve(this, "parser");
|
|
17679
17687
|
Ve(this, "func_selectedrange");
|
|
@@ -17767,13 +17775,13 @@ class Zc {
|
|
|
17767
17775
|
const b = typeof i == "object" ? i.row : null, w = typeof i == "object" ? i.column : null, _ = b != null && w != null && b >= f && b <= m && w >= d && w <= p;
|
|
17768
17776
|
let T = null, v = "", x = 0;
|
|
17769
17777
|
if (t.rangeValuePassCache) {
|
|
17770
|
-
const C =
|
|
17778
|
+
const C = Ic(
|
|
17771
17779
|
s,
|
|
17772
17780
|
f,
|
|
17773
17781
|
m,
|
|
17774
17782
|
d,
|
|
17775
17783
|
p
|
|
17776
|
-
), I =
|
|
17784
|
+
), I = Dc(
|
|
17777
17785
|
c.formulaCache.execFunctionGlobalData ?? {},
|
|
17778
17786
|
s,
|
|
17779
17787
|
f,
|
|
@@ -17903,7 +17911,7 @@ function Sn(e, t, r) {
|
|
|
17903
17911
|
if (t.indexOf("!") > -1) {
|
|
17904
17912
|
if (t in e.formulaCache.cellTextToIndexList)
|
|
17905
17913
|
return e.formulaCache.cellTextToIndexList[t];
|
|
17906
|
-
const d = t.match(
|
|
17914
|
+
const d = t.match(Yc);
|
|
17907
17915
|
if (d == null)
|
|
17908
17916
|
return null;
|
|
17909
17917
|
const [, p, g, y, b] = d;
|
|
@@ -17943,7 +17951,7 @@ function Sn(e, t, r) {
|
|
|
17943
17951
|
};
|
|
17944
17952
|
return Ro(e, t, m), m;
|
|
17945
17953
|
}
|
|
17946
|
-
function
|
|
17954
|
+
function Jc(e) {
|
|
17947
17955
|
if (e.length === 0)
|
|
17948
17956
|
return "";
|
|
17949
17957
|
const t = [];
|
|
@@ -17957,7 +17965,7 @@ function Kc(e) {
|
|
|
17957
17965
|
}
|
|
17958
17966
|
return t.length > 0 ? t[0] : "";
|
|
17959
17967
|
}
|
|
17960
|
-
function
|
|
17968
|
+
function eu(e, t, r, a, n, o, i) {
|
|
17961
17969
|
if (t.substring(0, 30) === "luckysheet_getSpecialReference" || t.substring(0, 20) === "luckysheet_function.") {
|
|
17962
17970
|
if (t.substring(0, 20) === "luckysheet_function.") {
|
|
17963
17971
|
let l = t.split(".")[1];
|
|
@@ -18033,7 +18041,7 @@ function In(e, t, r, a, n, o, i) {
|
|
|
18033
18041
|
s += ",";
|
|
18034
18042
|
else if (y in et && f.squote === 0 && f.dquote === 0 && f.braces === 0) {
|
|
18035
18043
|
let b = "";
|
|
18036
|
-
const w =
|
|
18044
|
+
const w = Bc;
|
|
18037
18045
|
if (c + 1 < l.length && (b = l[c + 1]), y + b in et) {
|
|
18038
18046
|
if (p.length === 0) {
|
|
18039
18047
|
if (h.trim(s).length > 0 ? d.unshift(
|
|
@@ -18096,11 +18104,11 @@ function In(e, t, r, a, n, o, i) {
|
|
|
18096
18104
|
if (b.length > 0 && d.unshift(b), m.length > 0)
|
|
18097
18105
|
for (u.length > 0 && (d.unshift(u), u = ""); m.length > 0; )
|
|
18098
18106
|
d.unshift(m.shift());
|
|
18099
|
-
d.length > 0 ? u =
|
|
18107
|
+
d.length > 0 ? u = Jc(d) : u += b;
|
|
18100
18108
|
}
|
|
18101
18109
|
c += 1;
|
|
18102
18110
|
}
|
|
18103
|
-
return
|
|
18111
|
+
return eu(
|
|
18104
18112
|
e,
|
|
18105
18113
|
u,
|
|
18106
18114
|
r,
|
|
@@ -18110,7 +18118,7 @@ function In(e, t, r, a, n, o, i) {
|
|
|
18110
18118
|
i
|
|
18111
18119
|
), u;
|
|
18112
18120
|
}
|
|
18113
|
-
function
|
|
18121
|
+
function tu(e) {
|
|
18114
18122
|
const { luckysheetfile: t } = e;
|
|
18115
18123
|
let r = [];
|
|
18116
18124
|
for (let a = 0; a < t.length; a += 1) {
|
|
@@ -18165,7 +18173,7 @@ function ia(e, t, r, a) {
|
|
|
18165
18173
|
f && (i.dynamicArray = m);
|
|
18166
18174
|
}
|
|
18167
18175
|
}
|
|
18168
|
-
function
|
|
18176
|
+
function nu(e) {
|
|
18169
18177
|
const t = e.match(/\(/g), r = e.match(/\)/g), a = e.match(/(['"])(?:(?!\1).)*?\1/g), n = e.match(/(['"])(?:(?!\1).)*?\1/g);
|
|
18170
18178
|
let o = 0, i = 0;
|
|
18171
18179
|
h.isNil(t) || (o += t.length), h.isNil(r) || (i += r.length);
|
|
@@ -18182,7 +18190,7 @@ function eu(e) {
|
|
|
18182
18190
|
}
|
|
18183
18191
|
return o -= l, i -= c, o === i;
|
|
18184
18192
|
}
|
|
18185
|
-
function
|
|
18193
|
+
function ru(e, t, r, a, n) {
|
|
18186
18194
|
h.isNil(a) && (a = e.currentSheetId);
|
|
18187
18195
|
const { luckysheetfile: o } = e, i = Fe(e, a);
|
|
18188
18196
|
if (h.isNil(i))
|
|
@@ -18204,7 +18212,7 @@ function tu(e, t, r, a, n) {
|
|
|
18204
18212
|
};
|
|
18205
18213
|
c.push(s), l.calcChain = c, e.luckysheetfile = o;
|
|
18206
18214
|
}
|
|
18207
|
-
function
|
|
18215
|
+
function au(e) {
|
|
18208
18216
|
if (!e.startsWith("=")) return e;
|
|
18209
18217
|
const t = e.indexOf("(");
|
|
18210
18218
|
return t === -1 ? e : `=${e.substring(1, t).replace(/\./g, "_")}${e.substring(t)}`;
|
|
@@ -18212,16 +18220,16 @@ function nu(e) {
|
|
|
18212
18220
|
function Tn(e, t, r, a, n, o, i, l) {
|
|
18213
18221
|
var C, I;
|
|
18214
18222
|
const c = t;
|
|
18215
|
-
if (h.isNil(n) && (n = e.currentSheetId), (t != null && t.toUpperCase().includes("NETWORKDAYS.INTL") || t != null && t.toUpperCase().includes("WORKDAY.INTL")) && (t =
|
|
18223
|
+
if (h.isNil(n) && (n = e.currentSheetId), (t != null && t.toUpperCase().includes("NETWORKDAYS.INTL") || t != null && t.toUpperCase().includes("WORKDAY.INTL")) && (t = au(t)), t.indexOf(Nn.r) > -1)
|
|
18216
18224
|
return [!1, Nn.r, t];
|
|
18217
|
-
|
|
18225
|
+
nu(t) || (t += ")"), e.calculateSheetId = n;
|
|
18218
18226
|
const s = n || e.currentSheetId, u = `${s}:${r}:${a}`, f = /* @__PURE__ */ new Set();
|
|
18219
18227
|
e.formulaCache.formulasWithWideRangeDeps.delete(u), e.formulaCache.activeDepCollection = {
|
|
18220
18228
|
originKey: u,
|
|
18221
18229
|
deps: f,
|
|
18222
18230
|
hasWideRangeDep: !1
|
|
18223
18231
|
}, e.formulaCache.parser.context = e;
|
|
18224
|
-
const m =
|
|
18232
|
+
const m = jc(t.substring(1));
|
|
18225
18233
|
let d, p = !1;
|
|
18226
18234
|
try {
|
|
18227
18235
|
d = e.formulaCache.parser.parse(m, {
|
|
@@ -18249,7 +18257,7 @@ function Tn(e, t, r, a, n, o, i, l) {
|
|
|
18249
18257
|
})) : Kt(e, r, a), f.size > 0 && d.error !== yt)
|
|
18250
18258
|
for (const k of f) {
|
|
18251
18259
|
if (k === u) continue;
|
|
18252
|
-
const O =
|
|
18260
|
+
const O = Kc(k);
|
|
18253
18261
|
if (!O) continue;
|
|
18254
18262
|
const U = (I = e == null ? void 0 : e.formulaCache.execFunctionGlobalData) == null ? void 0 : I[`${O.r}_${O.c}_${O.sheetId}`];
|
|
18255
18263
|
if (h.isNil(U)) continue;
|
|
@@ -18273,7 +18281,7 @@ function Tn(e, t, r, a, n, o, i, l) {
|
|
|
18273
18281
|
n
|
|
18274
18282
|
);
|
|
18275
18283
|
}
|
|
18276
|
-
l ||
|
|
18284
|
+
l || ru(e, r, a, n, o);
|
|
18277
18285
|
}
|
|
18278
18286
|
let _ = w;
|
|
18279
18287
|
e.formulaCache.parser.cryptoDenomination && e.formulaCache.parser.cryptoDenomination !== "" && (typeof w == "number" || typeof w == "string") && (_ = `${Number(w).toFixed(
|
|
@@ -18295,7 +18303,7 @@ function Tn(e, t, r, a, n, o, i, l) {
|
|
|
18295
18303
|
}
|
|
18296
18304
|
];
|
|
18297
18305
|
}
|
|
18298
|
-
function
|
|
18306
|
+
function iu(e, t) {
|
|
18299
18307
|
const { r, c: a } = t;
|
|
18300
18308
|
let { id: n } = t;
|
|
18301
18309
|
h.isNil(n) && (n = e.currentSheetId);
|
|
@@ -18311,7 +18319,7 @@ function ru(e, t) {
|
|
|
18311
18319
|
}
|
|
18312
18320
|
return c.push(t), c;
|
|
18313
18321
|
}
|
|
18314
|
-
function
|
|
18322
|
+
function wd(e) {
|
|
18315
18323
|
var r, a;
|
|
18316
18324
|
const { luckysheetfile: t } = e;
|
|
18317
18325
|
if (e.groupValuesRefreshData.length > 0) {
|
|
@@ -18322,7 +18330,7 @@ function gd(e) {
|
|
|
18322
18330
|
if (h.isNil(c))
|
|
18323
18331
|
continue;
|
|
18324
18332
|
const s = {};
|
|
18325
|
-
h.isNil(o.spe) || (o.spe.type === "sparklines" ? s.spl = o.spe.data : o.spe.type === "dynamicArrayItem" && (l.dynamicArray =
|
|
18333
|
+
h.isNil(o.spe) || (o.spe.type === "sparklines" ? s.spl = o.spe.data : o.spe.type === "dynamicArrayItem" && (l.dynamicArray = iu(e, o.spe.data))), s.v = o.v, s.f = o.f, bn(e, o.r, o.c, c, s), (r = e == null ? void 0 : e.hooks) != null && r.updateCellYdoc && e.hooks.updateCellYdoc([
|
|
18326
18334
|
{
|
|
18327
18335
|
sheetId: o.id,
|
|
18328
18336
|
path: ["celldata"],
|
|
@@ -18417,7 +18425,7 @@ function xa(e, t, r, a, n, o) {
|
|
|
18417
18425
|
}
|
|
18418
18426
|
);
|
|
18419
18427
|
}
|
|
18420
|
-
function
|
|
18428
|
+
function ou(e, t, r) {
|
|
18421
18429
|
const a = new Set(r), n = e.formulaCache.depsByCell.get(t) ?? /* @__PURE__ */ new Set();
|
|
18422
18430
|
e.formulaCache.depsByCell.set(t, a), n.forEach((o) => {
|
|
18423
18431
|
if (a.has(o)) return;
|
|
@@ -18429,7 +18437,7 @@ function au(e, t, r) {
|
|
|
18429
18437
|
i.add(t), e.formulaCache.revDepsByCell.set(o, i);
|
|
18430
18438
|
});
|
|
18431
18439
|
}
|
|
18432
|
-
function
|
|
18440
|
+
function vd(e, t, r, a, n = [], o) {
|
|
18433
18441
|
Tr(e);
|
|
18434
18442
|
const i = new Set(n);
|
|
18435
18443
|
for (const l of t.results) {
|
|
@@ -18468,7 +18476,7 @@ function yd(e, t, r, a, n = [], o) {
|
|
|
18468
18476
|
);
|
|
18469
18477
|
continue;
|
|
18470
18478
|
}
|
|
18471
|
-
|
|
18479
|
+
ou(e, c, l.deps), l.isError ? Zn(e, l.r, l.c, {
|
|
18472
18480
|
row_column: `${l.r}_${l.c}`,
|
|
18473
18481
|
title: "Error",
|
|
18474
18482
|
message: String(l.v ?? "Unknown Error")
|
|
@@ -18484,7 +18492,7 @@ function yd(e, t, r, a, n = [], o) {
|
|
|
18484
18492
|
});
|
|
18485
18493
|
}
|
|
18486
18494
|
}
|
|
18487
|
-
function
|
|
18495
|
+
function _d(e, t, r = Rc) {
|
|
18488
18496
|
Tr(e);
|
|
18489
18497
|
const a = new Set(t.calcChainKeys), n = new Set(t.impactedByCircular), o = new Set(t.cycleNodes), i = Ie(e), l = Math.min(t.nextIndex + r, t.formulaRunList.length);
|
|
18490
18498
|
for (let s = t.nextIndex; s < l; s += 1) {
|
|
@@ -18503,8 +18511,8 @@ function bd(e, t, r = Rc) {
|
|
|
18503
18511
|
return c && (e.formulaCache.execFunctionExist = void 0, hl(e.formulaCache), e.formulaCache.execFunctionGlobalData = null), c;
|
|
18504
18512
|
}
|
|
18505
18513
|
function Yn(e, t, r, a, n, o, i = !1) {
|
|
18506
|
-
h.isNil(o) && (o = Ie(e)), h.isNil(n) && (n = e.currentSheetId), e.formulaCache.execFunctionGlobalData = {},
|
|
18507
|
-
const l = `${n}:${t}:${r}`, c = pl(l, e.formulaCache.depsByCell), s = c.size ?
|
|
18514
|
+
h.isNil(o) && (o = Ie(e)), h.isNil(n) && (n = e.currentSheetId), e.formulaCache.execFunctionGlobalData = {}, Oc(e.formulaCache);
|
|
18515
|
+
const l = `${n}:${t}:${r}`, c = pl(l, e.formulaCache.depsByCell), s = c.size ? Zc(c, e.formulaCache.revDepsByCell) : /* @__PURE__ */ new Set();
|
|
18508
18516
|
if (!h.isNil(a)) {
|
|
18509
18517
|
const C = [[{ v: void 0 }]];
|
|
18510
18518
|
bn(e, 0, 0, C, a), [
|
|
@@ -18513,10 +18521,10 @@ function Yn(e, t, r, a, n, o, i = !1) {
|
|
|
18513
18521
|
]
|
|
18514
18522
|
] = C;
|
|
18515
18523
|
}
|
|
18516
|
-
const u =
|
|
18524
|
+
const u = tu(e);
|
|
18517
18525
|
let f = u;
|
|
18518
18526
|
if (!i && !h.isNil(t) && !h.isNil(r) && !h.isNil(n) && e.formulaCache.revDepsByCell.size > 0) {
|
|
18519
|
-
const C =
|
|
18527
|
+
const C = Lc(
|
|
18520
18528
|
l,
|
|
18521
18529
|
e.formulaCache.revDepsByCell
|
|
18522
18530
|
);
|
|
@@ -18671,6 +18679,7 @@ function Yn(e, t, r, a, n, o, i = !1) {
|
|
|
18671
18679
|
calcChainKeys: Array.from(x),
|
|
18672
18680
|
impactedByCircular: Array.from(s),
|
|
18673
18681
|
cycleNodes: Array.from(c),
|
|
18682
|
+
workerSnapshotKey: `formula-job-${Fc += 1}`,
|
|
18674
18683
|
nextIndex: 0,
|
|
18675
18684
|
total: _.length,
|
|
18676
18685
|
debug: {
|
|
@@ -18702,7 +18711,7 @@ function Yn(e, t, r, a, n, o, i = !1) {
|
|
|
18702
18711
|
}
|
|
18703
18712
|
e.formulaCache.execFunctionExist = void 0, hl(e.formulaCache);
|
|
18704
18713
|
}
|
|
18705
|
-
function
|
|
18714
|
+
function lu(e, t, r) {
|
|
18706
18715
|
const a = /<span.*?>/g, n = t.replace(a, "").split("</span>"), o = r.replace(a, "").split("</span>");
|
|
18707
18716
|
n.pop(), o[o.length - 1] === "" && o.pop();
|
|
18708
18717
|
let i = e.formulaCache.functionRangeIndex;
|
|
@@ -18763,7 +18772,7 @@ function iu(e, t, r) {
|
|
|
18763
18772
|
}
|
|
18764
18773
|
return null;
|
|
18765
18774
|
}
|
|
18766
|
-
function
|
|
18775
|
+
function Td(e) {
|
|
18767
18776
|
var a, n;
|
|
18768
18777
|
if (e.formulaCache.func_selectedrange) return !0;
|
|
18769
18778
|
const t = e.luckysheet_select_save;
|
|
@@ -18785,17 +18794,17 @@ function wd(e) {
|
|
|
18785
18794
|
moveXY: r.moveXY
|
|
18786
18795
|
}, !0);
|
|
18787
18796
|
}
|
|
18788
|
-
function
|
|
18797
|
+
function $d(e, t) {
|
|
18789
18798
|
e.formulaRangeSelect = t;
|
|
18790
18799
|
}
|
|
18791
|
-
function
|
|
18800
|
+
function su(e, t, r = -1) {
|
|
18792
18801
|
const a = gl(`<div>${t}</div>`), n = [];
|
|
18793
18802
|
a.querySelectorAll("span.fortune-formula-functionrange-cell").forEach((o) => {
|
|
18794
18803
|
const i = parseInt(o.getAttribute("rangeindex") || "0", 10);
|
|
18795
18804
|
if (i === r) return;
|
|
18796
18805
|
const l = Sn(e, o.textContent || "");
|
|
18797
18806
|
if (!(i === e.formulaCache.selectingRangeIndex || l == null) && (l.sheetId === e.currentSheetId || l.sheetId === -1 && e.formulaCache.rangetosheet === e.currentSheetId)) {
|
|
18798
|
-
const c =
|
|
18807
|
+
const c = vf(
|
|
18799
18808
|
e,
|
|
18800
18809
|
l.row[0],
|
|
18801
18810
|
l.row[1],
|
|
@@ -18867,7 +18876,7 @@ function mr(e, t, r, a, n) {
|
|
|
18867
18876
|
n && n instanceof HTMLElement && yl(n);
|
|
18868
18877
|
}
|
|
18869
18878
|
}
|
|
18870
|
-
function
|
|
18879
|
+
function cu(e, t, r, a) {
|
|
18871
18880
|
if (window.getSelection) {
|
|
18872
18881
|
const n = window.getSelection();
|
|
18873
18882
|
if (!n) return;
|
|
@@ -18894,7 +18903,7 @@ function lu(e, t, r, a) {
|
|
|
18894
18903
|
l = [u, dr(o[u])];
|
|
18895
18904
|
}
|
|
18896
18905
|
} else {
|
|
18897
|
-
const c =
|
|
18906
|
+
const c = lu(e, r, a);
|
|
18898
18907
|
l = h.isNil(c) ? null : c;
|
|
18899
18908
|
}
|
|
18900
18909
|
h.isNil(l) ? (n.selectAllChildren(t), n.collapseToEnd()) : mr(
|
|
@@ -18906,7 +18915,7 @@ function lu(e, t, r, a) {
|
|
|
18906
18915
|
);
|
|
18907
18916
|
} else document.selection && (e.formulaCache.functionRangeIndex.moveToElementText(t), e.formulaCache.functionRangeIndex.collapse(!1), e.formulaCache.functionRangeIndex.select());
|
|
18908
18917
|
}
|
|
18909
|
-
function
|
|
18918
|
+
function uu(e, t) {
|
|
18910
18919
|
const { functionlist: r } = qt(e), a = [], n = [], o = [];
|
|
18911
18920
|
let i = 0;
|
|
18912
18921
|
for (let c = 0; c < r.length; c += 1) {
|
|
@@ -18917,7 +18926,7 @@ function su(e, t) {
|
|
|
18917
18926
|
const l = [...a, ...n, ...o];
|
|
18918
18927
|
l.length <= 0 || (e.functionCandidates = l);
|
|
18919
18928
|
}
|
|
18920
|
-
function
|
|
18929
|
+
function fu() {
|
|
18921
18930
|
var n, o, i, l, c;
|
|
18922
18931
|
const e = window.getSelection();
|
|
18923
18932
|
if (!e) return null;
|
|
@@ -18982,8 +18991,8 @@ function Mo(e, t, r) {
|
|
|
18982
18991
|
}
|
|
18983
18992
|
return s;
|
|
18984
18993
|
}
|
|
18985
|
-
function
|
|
18986
|
-
const r =
|
|
18994
|
+
function du(e, t) {
|
|
18995
|
+
const r = fu();
|
|
18987
18996
|
if (!r) return;
|
|
18988
18997
|
const a = h.trim(
|
|
18989
18998
|
(r.textContent || "").replace(/\u200b/g, "")
|
|
@@ -18996,7 +19005,7 @@ function uu(e, t) {
|
|
|
18996
19005
|
return;
|
|
18997
19006
|
}
|
|
18998
19007
|
if (a != null && a.match(/^[a-zA-Z_]+$/))
|
|
18999
|
-
e.defaultCandidates = [],
|
|
19008
|
+
e.defaultCandidates = [], uu(e, a.toUpperCase()), e.functionHint = null;
|
|
19000
19009
|
else {
|
|
19001
19010
|
const n = Mo(t, r, e);
|
|
19002
19011
|
e.functionHint = n == null ? void 0 : n.toUpperCase(), e.functionCandidates = [], e.defaultCandidates = [];
|
|
@@ -19108,7 +19117,7 @@ function bl(e) {
|
|
|
19108
19117
|
}
|
|
19109
19118
|
}), t;
|
|
19110
19119
|
}
|
|
19111
|
-
function
|
|
19120
|
+
function mu(e, t) {
|
|
19112
19121
|
if (!t.anchorNode || t.rangeCount === 0 || !e.contains(t.anchorNode)) return null;
|
|
19113
19122
|
let r = 0, a = !1;
|
|
19114
19123
|
const n = (o) => {
|
|
@@ -19139,7 +19148,7 @@ function fu(e, t) {
|
|
|
19139
19148
|
};
|
|
19140
19149
|
return n(e), a ? r : null;
|
|
19141
19150
|
}
|
|
19142
|
-
function
|
|
19151
|
+
function hu(e) {
|
|
19143
19152
|
const t = Array.from(e.querySelectorAll("span")).filter(
|
|
19144
19153
|
(o) => {
|
|
19145
19154
|
var i;
|
|
@@ -19167,7 +19176,7 @@ function $r(e) {
|
|
|
19167
19176
|
const i = parseInt(o, 10);
|
|
19168
19177
|
return Number.isNaN(i) ? null : i;
|
|
19169
19178
|
}
|
|
19170
|
-
function
|
|
19179
|
+
function Cd(e, t) {
|
|
19171
19180
|
e.formulaCache.formulaEditorOwner = t;
|
|
19172
19181
|
}
|
|
19173
19182
|
function wl(e) {
|
|
@@ -19187,27 +19196,27 @@ function vl(e) {
|
|
|
19187
19196
|
const n = (o = document.activeElement) == null ? void 0 : o.id;
|
|
19188
19197
|
return n === "luckysheet-functionbox-cell" ? r ?? t : t ?? r;
|
|
19189
19198
|
}
|
|
19190
|
-
function
|
|
19199
|
+
function pu(e, t) {
|
|
19191
19200
|
const a = Bt(
|
|
19192
19201
|
e.textContent || ""
|
|
19193
19202
|
).slice(0, t).split(/[=,(+\-*/&<>]/);
|
|
19194
19203
|
return h.trim(a[a.length - 1] || "");
|
|
19195
19204
|
}
|
|
19196
|
-
function
|
|
19205
|
+
function gu(e) {
|
|
19197
19206
|
const t = e.replace(/\s/g, "");
|
|
19198
19207
|
return t && /[A-Za-z]+\d+:[A-Za-z]*$/i.test(t) ? !/[A-Za-z]+\d+:[A-Za-z]+\d+$/i.test(t) : !1;
|
|
19199
19208
|
}
|
|
19200
|
-
function
|
|
19209
|
+
function yu(e, t) {
|
|
19201
19210
|
const r = Bt(e.textContent || ""), a = r.slice(0, t), n = r.slice(t), o = /[=,()+\-*/&<>%^]/, i = (a.split(o).pop() || "").trim(), l = (n.split(o)[0] || "").trim(), c = `${i}${l}`;
|
|
19202
|
-
return
|
|
19211
|
+
return gu(c);
|
|
19203
19212
|
}
|
|
19204
|
-
function
|
|
19213
|
+
function bu(e) {
|
|
19205
19214
|
const t = e.trim();
|
|
19206
19215
|
if (!t.startsWith("=")) return !1;
|
|
19207
19216
|
const r = t.slice(1).trim();
|
|
19208
19217
|
return !r || r.includes("(") || r.includes(")") ? !1 : _t(r);
|
|
19209
19218
|
}
|
|
19210
|
-
function
|
|
19219
|
+
function wu(e) {
|
|
19211
19220
|
e.formulaCache.rangeSelectionActive = !1, e.formulaCache.keyboardRangeSelectionLock = !0, e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1;
|
|
19212
19221
|
}
|
|
19213
19222
|
function Ea(e) {
|
|
@@ -19218,17 +19227,17 @@ function Ea(e) {
|
|
|
19218
19227
|
if (r && !e.contains(r))
|
|
19219
19228
|
return !1;
|
|
19220
19229
|
const a = Bt(e.innerText).trim();
|
|
19221
|
-
if (!a.startsWith("=") || /^=\s*[A-Za-z_][A-Za-z0-9_]*$/.test(a) ||
|
|
19230
|
+
if (!a.startsWith("=") || /^=\s*[A-Za-z_][A-Za-z0-9_]*$/.test(a) || bu(a))
|
|
19222
19231
|
return !1;
|
|
19223
19232
|
const n = t.getRangeAt(0).cloneRange(), o = document.createRange();
|
|
19224
19233
|
o.selectNodeContents(e), o.setEnd(n.endContainer, n.endOffset);
|
|
19225
19234
|
const i = Bt(
|
|
19226
19235
|
o.toString()
|
|
19227
|
-
).length, l =
|
|
19236
|
+
).length, l = pu(
|
|
19228
19237
|
e,
|
|
19229
19238
|
i
|
|
19230
19239
|
);
|
|
19231
|
-
if (
|
|
19240
|
+
if (yu(e, i) || l.length > 0 && !_t(l))
|
|
19232
19241
|
return !1;
|
|
19233
19242
|
const c = Bt(e.textContent || ""), u = c.slice(i).replace(/^\s+/, "");
|
|
19234
19243
|
if (u.length === 0) {
|
|
@@ -19240,7 +19249,7 @@ function Ea(e) {
|
|
|
19240
19249
|
const f = u[0];
|
|
19241
19250
|
return f === "," || f === ")" || f === "&" || f in et;
|
|
19242
19251
|
}
|
|
19243
|
-
function
|
|
19252
|
+
function vu(e) {
|
|
19244
19253
|
var r, a;
|
|
19245
19254
|
let t = e.nextSibling;
|
|
19246
19255
|
for (; t; ) {
|
|
@@ -19253,13 +19262,13 @@ function bu(e) {
|
|
|
19253
19262
|
}
|
|
19254
19263
|
return !1;
|
|
19255
19264
|
}
|
|
19256
|
-
function
|
|
19265
|
+
function _u(e) {
|
|
19257
19266
|
e.formulaCache.rangeSelectionActive = !1, e.formulaRangeHighlight = [], e.formulaRangeSelect = void 0, e.formulaCache.selectingRangeIndex = -1, e.formulaCache.func_selectedrange = void 0, e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, e.formulaCache.rangechangeindex = void 0;
|
|
19258
19267
|
}
|
|
19259
|
-
function
|
|
19268
|
+
function Nd(e) {
|
|
19260
19269
|
const t = $r(e);
|
|
19261
19270
|
if (t !== null) return t;
|
|
19262
|
-
const r =
|
|
19271
|
+
const r = hu(e);
|
|
19263
19272
|
if (r === null) return null;
|
|
19264
19273
|
const a = e.querySelector(
|
|
19265
19274
|
`span.fortune-formula-functionrange-cell[rangeindex="${r}"]`
|
|
@@ -19287,9 +19296,9 @@ function Td(e) {
|
|
|
19287
19296
|
} catch {
|
|
19288
19297
|
return r;
|
|
19289
19298
|
}
|
|
19290
|
-
return o.compareBoundaryPoints(Range.START_TO_START, l) >= 0 &&
|
|
19299
|
+
return o.compareBoundaryPoints(Range.START_TO_START, l) >= 0 && vu(a) ? null : r;
|
|
19291
19300
|
}
|
|
19292
|
-
function
|
|
19301
|
+
function Tu(e, t, r, a, n, o = !0) {
|
|
19293
19302
|
var i, l, c, s, u, f;
|
|
19294
19303
|
if (r)
|
|
19295
19304
|
try {
|
|
@@ -19297,7 +19306,7 @@ function vu(e, t, r, a, n, o = !0) {
|
|
|
19297
19306
|
const m = a === 8 || a === 46, d = a >= 48 && a <= 57 || // 0-9
|
|
19298
19307
|
a >= 65 && a <= 90 || // A-Z
|
|
19299
19308
|
a >= 97 && a <= 122;
|
|
19300
|
-
e.formulaCache.rangeSelectionActive === !0 && (m || d) &&
|
|
19309
|
+
e.formulaCache.rangeSelectionActive === !0 && (m || d) && _u(e);
|
|
19301
19310
|
let p;
|
|
19302
19311
|
const g = (w) => {
|
|
19303
19312
|
const _ = (v) => {
|
|
@@ -19321,7 +19330,7 @@ function vu(e, t, r, a, n, o = !0) {
|
|
|
19321
19330
|
}, y = n ?? g(r);
|
|
19322
19331
|
let b = g(r);
|
|
19323
19332
|
if ((a === 8 || a === 46) && (b = b.replace(/\n{2,}$/, `
|
|
19324
|
-
`)), b =
|
|
19333
|
+
`)), b = kf(b), b.length > 0 && b.substring(0, 1) === "=" && (a !== 229 || b.length === 1)) {
|
|
19325
19334
|
if (o || (Un = bl(r)), b = oa(b), !o && Qt < Un.length && (o = !0), p = oa(y), Un = [], window.getSelection) {
|
|
19326
19335
|
const w = window.getSelection();
|
|
19327
19336
|
if (!w) return;
|
|
@@ -19340,7 +19349,7 @@ function vu(e, t, r, a, n, o = !0) {
|
|
|
19340
19349
|
),
|
|
19341
19350
|
w.anchorOffset
|
|
19342
19351
|
];
|
|
19343
|
-
e.formulaCache.functionRangeGlobalOffset =
|
|
19352
|
+
e.formulaCache.functionRangeGlobalOffset = mu(
|
|
19344
19353
|
r,
|
|
19345
19354
|
w
|
|
19346
19355
|
);
|
|
@@ -19348,7 +19357,7 @@ function vu(e, t, r, a, n, o = !0) {
|
|
|
19348
19357
|
const w = document.selection.createRange();
|
|
19349
19358
|
e.formulaCache.functionRangeIndex = w, e.formulaCache.functionRangeGlobalOffset = null;
|
|
19350
19359
|
}
|
|
19351
|
-
r.innerHTML = b, t && (t.innerHTML = b),
|
|
19360
|
+
r.innerHTML = b, t && (t.innerHTML = b), cu(e, r, b, p), o && (Ml(e), su(e, b), e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, du(e, r));
|
|
19352
19361
|
} else if (h.startsWith(y, "=") && !h.startsWith(b, "="))
|
|
19353
19362
|
t && (t.innerHTML = b), r.innerHTML = Gn(b);
|
|
19354
19363
|
else if (!h.startsWith(y, "=")) {
|
|
@@ -19371,7 +19380,7 @@ function Br(e) {
|
|
|
19371
19380
|
let s = !1, u = !1;
|
|
19372
19381
|
return !l && !c ? (s = !0, u = !0) : l && c ? (s = !1, u = !0) : !l && c ? (s = !0, u = !1) : (s = !1, u = !1), `${r}${s ? "$" : ""}${n.toUpperCase()}${u ? "$" : ""}${i}`;
|
|
19373
19382
|
}
|
|
19374
|
-
function
|
|
19383
|
+
function $u(e) {
|
|
19375
19384
|
const t = e.trim();
|
|
19376
19385
|
if (t.length === 0) return null;
|
|
19377
19386
|
if (t.includes(":")) {
|
|
@@ -19382,7 +19391,7 @@ function _u(e) {
|
|
|
19382
19391
|
}
|
|
19383
19392
|
return Br(t);
|
|
19384
19393
|
}
|
|
19385
|
-
function
|
|
19394
|
+
function Ad(e, t, r) {
|
|
19386
19395
|
if (!r) return !1;
|
|
19387
19396
|
const a = window.getSelection();
|
|
19388
19397
|
if (!a || a.rangeCount === 0 || !a.anchorNode || !r.contains(a.anchorNode)) return !1;
|
|
@@ -19405,12 +19414,12 @@ function $d(e, t, r) {
|
|
|
19405
19414
|
u.parentElement === r && (i = o(u.previousSibling) || o(u.nextSibling));
|
|
19406
19415
|
}
|
|
19407
19416
|
if (!i || !r.contains(i)) return !1;
|
|
19408
|
-
const l = i.textContent || "", c =
|
|
19417
|
+
const l = i.textContent || "", c = $u(l);
|
|
19409
19418
|
if (!c || c === l) return !1;
|
|
19410
19419
|
const s = c.length;
|
|
19411
|
-
return i.textContent = c, mr(e, i, 0, s, r),
|
|
19420
|
+
return i.textContent = c, mr(e, i, 0, s, r), Tu(e, t, r, 115), !0;
|
|
19412
19421
|
}
|
|
19413
|
-
function
|
|
19422
|
+
function Cu(e, t, r, a, n, o) {
|
|
19414
19423
|
const i = e.split("!");
|
|
19415
19424
|
let l, c = "";
|
|
19416
19425
|
i.length > 1 ? ([, l] = i, c = `${i[0]}!`) : [l] = i;
|
|
@@ -19487,7 +19496,7 @@ function qo(e, t, r) {
|
|
|
19487
19496
|
}
|
|
19488
19497
|
return !1;
|
|
19489
19498
|
}
|
|
19490
|
-
function
|
|
19499
|
+
function Sd(e) {
|
|
19491
19500
|
return !!e.formulaCache.rangestart || !!e.formulaCache.rangedrag_column_start || !!e.formulaCache.rangedrag_row_start || e.formulaCache.rangeSelectionActive === !0 || Cr(e);
|
|
19492
19501
|
}
|
|
19493
19502
|
function Cr(e, t) {
|
|
@@ -19561,11 +19570,11 @@ function Cr(e, t) {
|
|
|
19561
19570
|
}
|
|
19562
19571
|
return !1;
|
|
19563
19572
|
}
|
|
19564
|
-
function
|
|
19573
|
+
function xd(e) {
|
|
19565
19574
|
const t = vl(e), r = ((t == null ? void 0 : t.innerText) || "").trim(), a = !!e.formulaCache.rangestart || !!e.formulaCache.rangedrag_column_start || !!e.formulaCache.rangedrag_row_start, n = !!t && Ea(t), o = a || e.formulaCache.rangeSelectionActive === !0;
|
|
19566
19575
|
return r.startsWith("=") ? e.formulaCache.rangeSelectionActive === !0 && t && $r(t) !== null ? !0 : /^=\s*[A-Za-z_][A-Za-z0-9_]*$/.test(r) || e.formulaCache.rangeSelectionActive === !1 ? !1 : o ? a ? !0 : n : n ? !0 : Cr(e) : !1;
|
|
19567
19576
|
}
|
|
19568
|
-
function
|
|
19577
|
+
function Ed(e) {
|
|
19569
19578
|
if (e.formulaCache.rangeSelectionActive !== !1)
|
|
19570
19579
|
return !1;
|
|
19571
19580
|
const t = vl(e);
|
|
@@ -19632,7 +19641,7 @@ function wt(e, t, r, a, n, o) {
|
|
|
19632
19641
|
f + m in et ? (c.length > 0 ? (s += wt(c, t, r, a, n, o) + f + m, c = "") : s += f + m, l += 1) : !/[^0-9]/.test(m) && f === "-" && (p === "(" || p == null || p === "," || p === " " || p in et) ? c += f : c.length > 0 ? (s += wt(c, t, r, a, n, o) + f, c = "") : s += f;
|
|
19633
19642
|
} else
|
|
19634
19643
|
c += f;
|
|
19635
|
-
l === i.length - 1 && (_t(h.trim(c)) ? s +=
|
|
19644
|
+
l === i.length - 1 && (_t(h.trim(c)) ? s += Cu(
|
|
19636
19645
|
h.trim(c),
|
|
19637
19646
|
t,
|
|
19638
19647
|
r,
|
|
@@ -19649,8 +19658,8 @@ function ka(e, t, r, a) {
|
|
|
19649
19658
|
`<div>${t.innerHTML}</div>`,
|
|
19650
19659
|
"text/html"
|
|
19651
19660
|
).querySelectorAll("span"), l = i[i.length - 1], c = ((y = l == null ? void 0 : l.classList) == null ? void 0 : y.contains("fortune-formula-functionrange-cell")) ?? !1;
|
|
19652
|
-
if (l &&
|
|
19653
|
-
const v =
|
|
19661
|
+
if (l && Mf(l == null ? void 0 : l.innerText) && !c) {
|
|
19662
|
+
const v = qf(t.innerHTML);
|
|
19654
19663
|
t.innerHTML = `${v}`, t.focus();
|
|
19655
19664
|
const x = t.childNodes;
|
|
19656
19665
|
e.formulaCache.rangeSetValueTo = x.length > 0 ? x[x.length - 1] : void 0;
|
|
@@ -19696,7 +19705,7 @@ function ka(e, t, r, a) {
|
|
|
19696
19705
|
}
|
|
19697
19706
|
u && (u.innerHTML = s.innerHTML);
|
|
19698
19707
|
}
|
|
19699
|
-
function
|
|
19708
|
+
function kd(e) {
|
|
19700
19709
|
if (e.formulaCache.func_selectedrange) {
|
|
19701
19710
|
const {
|
|
19702
19711
|
left_move: t,
|
|
@@ -19720,7 +19729,7 @@ function Ra(e, t, r, a, n) {
|
|
|
19720
19729
|
);
|
|
19721
19730
|
o != null && (o.style.left = `${t}px`, o.style.top = `${r}px`, o.style.height = `${a}px`, o.style.width = `${n}px`);
|
|
19722
19731
|
}
|
|
19723
|
-
function
|
|
19732
|
+
function Rd(e, t, r, a, n, o, i) {
|
|
19724
19733
|
e.formulaCache.rangeSelectionActive = !0;
|
|
19725
19734
|
const { func_selectedrange: l } = e.formulaCache;
|
|
19726
19735
|
if (!l || l.left == null || l.height == null || l.top == null || l.width == null)
|
|
@@ -19750,7 +19759,7 @@ function xd(e, t, r, a, n, o, i) {
|
|
|
19750
19759
|
i
|
|
19751
19760
|
), Ra(o, T, b, w, v), t.preventDefault();
|
|
19752
19761
|
}
|
|
19753
|
-
function
|
|
19762
|
+
function Md(e, t, r, a, n, o, i) {
|
|
19754
19763
|
e.formulaCache.rangeSelectionActive = !0;
|
|
19755
19764
|
const { func_selectedrange: l } = e.formulaCache;
|
|
19756
19765
|
if (!l || l.left == null || l.height == null || l.top == null || l.width == null)
|
|
@@ -19778,7 +19787,7 @@ function Ed(e, t, r, a, n, o, i) {
|
|
|
19778
19787
|
i
|
|
19779
19788
|
), Ra(o, b, d, m - d - 1, w);
|
|
19780
19789
|
}
|
|
19781
|
-
function
|
|
19790
|
+
function qd(e, t, r, a, n, o, i) {
|
|
19782
19791
|
e.formulaCache.rangeSelectionActive = !0;
|
|
19783
19792
|
const { func_selectedrange: l } = e.formulaCache;
|
|
19784
19793
|
if (!l || l.left == null || l.height == null || l.top == null || l.width == null)
|
|
@@ -19821,16 +19830,16 @@ function Nr(e, t, r) {
|
|
|
19821
19830
|
const c = $n(n[0]), s = $n(n[1]), u = c[0] ? "$" : "", f = c[1] ? "$" : "", m = s[0] ? "$" : "", d = s[1] ? "$" : "";
|
|
19822
19831
|
return e === "u" ? (c[0] || (i[0] -= r), s[0] || (i[1] -= r)) : e === "r" ? (c[1] || (l[0] += r), s[1] || (l[1] += r)) : e === "l" ? (c[1] || (l[0] -= r), s[1] || (l[1] -= r)) : e === "d" && (c[0] || (i[0] += r), s[0] || (i[1] += r)), i[0] < 0 || l[0] < 0 ? Nn.r : Number.isNaN(l[0]) && Number.isNaN(l[1]) ? `${o + u + i[0]}:${m}${i[1]}` : Number.isNaN(i[0]) && Number.isNaN(i[1]) ? `${o + f + Ze(l[0])}:${d}${Ze(l[1])}` : `${o + f + Ze(l[0]) + u + i[0]}:${d}${Ze(l[1])}${m}${i[1]}`;
|
|
19823
19832
|
}
|
|
19824
|
-
function
|
|
19833
|
+
function Nu(e, t) {
|
|
19825
19834
|
return Nr("d", e, t);
|
|
19826
19835
|
}
|
|
19827
|
-
function
|
|
19836
|
+
function Au(e, t) {
|
|
19828
19837
|
return Nr("u", e, t);
|
|
19829
19838
|
}
|
|
19830
|
-
function
|
|
19839
|
+
function Su(e, t) {
|
|
19831
19840
|
return Nr("l", e, t);
|
|
19832
19841
|
}
|
|
19833
|
-
function
|
|
19842
|
+
function xu(e, t) {
|
|
19834
19843
|
return Nr("r", e, t);
|
|
19835
19844
|
}
|
|
19836
19845
|
function hn(e, t, r, a) {
|
|
@@ -19865,18 +19874,18 @@ function hn(e, t, r, a) {
|
|
|
19865
19874
|
s + u in et ? (i.length > 0 ? (l += hn(e, i, r, a) + s + u, i = "") : l += s + u, o += 1) : !/[^0-9]/.test(u) && s === "-" && (m === "(" || m == null || m === "," || m === " " || m in et) ? i += s : i.length > 0 ? (l += hn(e, i, r, a) + s, i = "") : l += s;
|
|
19866
19875
|
} else
|
|
19867
19876
|
i += s;
|
|
19868
|
-
o === n.length - 1 && (_t(h.trim(i)) ? r === "down" ? l +=
|
|
19877
|
+
o === n.length - 1 && (_t(h.trim(i)) ? r === "down" ? l += Nu(h.trim(i), a) : r === "up" ? l += Au(h.trim(i), a) : r === "left" ? l += Su(h.trim(i), a) : r === "right" && (l += xu(h.trim(i), a)) : l += h.trim(i)), o += 1;
|
|
19869
19878
|
}
|
|
19870
19879
|
return l = l.replace(/NaN/g, ""), l;
|
|
19871
19880
|
}
|
|
19872
19881
|
function _l(e) {
|
|
19873
19882
|
return e.startsWith("'") && e.endsWith("'") ? e.slice(1, -1).replace(/''/g, "'") : e;
|
|
19874
19883
|
}
|
|
19875
|
-
const
|
|
19876
|
-
function
|
|
19884
|
+
const Eu = /((?:'(?:[^']|'')+'|[A-Za-z_][A-Za-z0-9_.]*)!)?(\$?)([A-Za-z]+)(\$?)(\d+)(?::(\$?)([A-Za-z]+)(\$?)(\d+))?/g;
|
|
19885
|
+
function ku(e, t, r, a) {
|
|
19877
19886
|
const { rowMap: n, colMap: o } = a;
|
|
19878
19887
|
return e && e.replace(
|
|
19879
|
-
|
|
19888
|
+
Eu,
|
|
19880
19889
|
(i, l, c, s, u, f, m, d, p, g) => {
|
|
19881
19890
|
if ((l ? _l(l.slice(0, -1)) : t) !== r) return i;
|
|
19882
19891
|
const b = (T, v) => {
|
|
@@ -19890,24 +19899,24 @@ function xu(e, t, r, a) {
|
|
|
19890
19899
|
}
|
|
19891
19900
|
);
|
|
19892
19901
|
}
|
|
19893
|
-
function
|
|
19902
|
+
function Ru(e) {
|
|
19894
19903
|
const t = e.match(/^(\$?)([A-Za-z]+)(\$?)(\d+)$/);
|
|
19895
19904
|
if (!t) return null;
|
|
19896
19905
|
const r = t[1] === "$", a = vt(t[2]), n = t[3] === "$", o = parseInt(t[4], 10) - 1;
|
|
19897
19906
|
return Number.isNaN(o) || Number.isNaN(a) ? null : { colAbs: r, rowAbs: n, col: a, row: o };
|
|
19898
19907
|
}
|
|
19899
|
-
function
|
|
19908
|
+
function Mu(e) {
|
|
19900
19909
|
return `${e.colAbs ? "$" : ""}${Ze(e.col)}${e.rowAbs ? "$" : ""}${e.row + 1}`;
|
|
19901
19910
|
}
|
|
19902
19911
|
function Pr(e, t, r, a) {
|
|
19903
|
-
const n =
|
|
19904
|
-
return !n || !(n.row >= t.rowStart && n.row <= t.rowEnd && n.col >= t.colStart && n.col <= t.colEnd) ? e :
|
|
19912
|
+
const n = Ru(e);
|
|
19913
|
+
return !n || !(n.row >= t.rowStart && n.row <= t.rowEnd && n.col >= t.colStart && n.col <= t.colEnd) ? e : Mu({
|
|
19905
19914
|
...n,
|
|
19906
19915
|
row: r + (n.row - t.rowStart),
|
|
19907
19916
|
col: a + (n.col - t.colStart)
|
|
19908
19917
|
});
|
|
19909
19918
|
}
|
|
19910
|
-
function
|
|
19919
|
+
function qu(e, t, r, a) {
|
|
19911
19920
|
const n = e.split(":");
|
|
19912
19921
|
if (n.length === 1)
|
|
19913
19922
|
return Pr(
|
|
@@ -19930,11 +19939,11 @@ function Ru(e, t, r, a) {
|
|
|
19930
19939
|
);
|
|
19931
19940
|
return `${o}:${i}`;
|
|
19932
19941
|
}
|
|
19933
|
-
function
|
|
19942
|
+
function Iu(e, t, r, a, n, o) {
|
|
19934
19943
|
const i = e.lastIndexOf("!");
|
|
19935
19944
|
let l = "", c = e, s = t;
|
|
19936
19945
|
if (i > -1 && (l = e.slice(0, i + 1), c = e.slice(i + 1), s = _l(l.slice(0, -1))), s !== r) return e;
|
|
19937
|
-
const u =
|
|
19946
|
+
const u = qu(
|
|
19938
19947
|
c,
|
|
19939
19948
|
a,
|
|
19940
19949
|
n,
|
|
@@ -20013,7 +20022,7 @@ function qn(e, t, r, a, n, o) {
|
|
|
20013
20022
|
c += f;
|
|
20014
20023
|
if (l === i.length - 1) {
|
|
20015
20024
|
const m = h.trim(c);
|
|
20016
|
-
_t(m) ? s +=
|
|
20025
|
+
_t(m) ? s += Iu(
|
|
20017
20026
|
m,
|
|
20018
20027
|
t,
|
|
20019
20028
|
r,
|
|
@@ -20037,7 +20046,7 @@ function Tl(e, t, r, a) {
|
|
|
20037
20046
|
const l = (u = n.config) == null ? void 0 : u.authority;
|
|
20038
20047
|
return !(h.isNil(l) || h.isNil(l.sheet) || l.sheet === 0);
|
|
20039
20048
|
}
|
|
20040
|
-
function
|
|
20049
|
+
function Id(e, t, r, a) {
|
|
20041
20050
|
var c;
|
|
20042
20051
|
const n = Er(e, a);
|
|
20043
20052
|
if (h.isNil(n) || h.isNil(n.config) || h.isNil(n.config.authority))
|
|
@@ -20048,7 +20057,7 @@ function Rd(e, t, r, a) {
|
|
|
20048
20057
|
const { data: i } = n, l = (c = i == null ? void 0 : i[t]) == null ? void 0 : c[r];
|
|
20049
20058
|
return l && l.lo === 0 ? !!(o.selectunLockedCells === 1 || h.isNil(o.selectunLockedCells)) : !!(o.selectLockedCells === 1 || h.isNil(o.selectLockedCells));
|
|
20050
20059
|
}
|
|
20051
|
-
function
|
|
20060
|
+
function Dd(e, t) {
|
|
20052
20061
|
const r = Er(e, t);
|
|
20053
20062
|
if (h.isNil(r) || h.isNil(r.config) || h.isNil(r.config.authority))
|
|
20054
20063
|
return !0;
|
|
@@ -20060,7 +20069,7 @@ function Md(e, t) {
|
|
|
20060
20069
|
let o = !1;
|
|
20061
20070
|
return (a.selectLockedCells === 1 || h.isNil(a.selectLockedCells)) && (o = !0), !!(n && o);
|
|
20062
20071
|
}
|
|
20063
|
-
function
|
|
20072
|
+
function Du(e) {
|
|
20064
20073
|
const t = Er(e, e.currentSheetId);
|
|
20065
20074
|
if (h.isNil(t) || h.isNil(t.config) || h.isNil(t.config.authority))
|
|
20066
20075
|
return !0;
|
|
@@ -20087,7 +20096,7 @@ function Do(e, t, r) {
|
|
|
20087
20096
|
const o = Number(e), i = Number(t);
|
|
20088
20097
|
return !Number.isNaN(o) && !Number.isNaN(i) && r === "<=" ? o <= i : !Number.isNaN(o) && !Number.isNaN(i) ? o < i : r === "<=" ? a.localeCompare(n) <= 0 : a.localeCompare(n) < 0;
|
|
20089
20098
|
}
|
|
20090
|
-
function
|
|
20099
|
+
function Ou(e, t, r) {
|
|
20091
20100
|
const a = String(e), n = String(t), o = String(r);
|
|
20092
20101
|
let i, l;
|
|
20093
20102
|
if (yn(t) || yn(r) || yn(e))
|
|
@@ -20121,13 +20130,13 @@ function Oo(e, t) {
|
|
|
20121
20130
|
function _n(e) {
|
|
20122
20131
|
return `${pr(e.getDate())}/${pr(e.getMonth() + 1)}/${e.getFullYear()}`;
|
|
20123
20132
|
}
|
|
20124
|
-
function
|
|
20133
|
+
function Lu(e) {
|
|
20125
20134
|
const t = e.trim().match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
|
20126
20135
|
if (!t) return e;
|
|
20127
20136
|
const r = Number(t[1]), a = Number(t[2]), n = Number(t[3]);
|
|
20128
20137
|
return `${pr(n)}/${pr(a)}/${r}`;
|
|
20129
20138
|
}
|
|
20130
|
-
function
|
|
20139
|
+
function Fu(e) {
|
|
20131
20140
|
const t = Math.floor(e), r = Date.UTC(1899, 11, 31, 0, 0, 0), a = t * 864e5 + r, n = new Date(a);
|
|
20132
20141
|
return new Date(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate());
|
|
20133
20142
|
}
|
|
@@ -20139,7 +20148,7 @@ function jn(e) {
|
|
|
20139
20148
|
const i = new Date(o, n, a);
|
|
20140
20149
|
return i.getFullYear() !== o || i.getMonth() !== n || i.getDate() !== a ? null : _r(i, 0);
|
|
20141
20150
|
}
|
|
20142
|
-
function
|
|
20151
|
+
function Bu(e) {
|
|
20143
20152
|
var t, r;
|
|
20144
20153
|
return e ? ((t = e.ct) == null ? void 0 : t.t) === "inlineStr" && Array.isArray((r = e.ct) == null ? void 0 : r.s) ? e.ct.s.map((a) => (a == null ? void 0 : a.v) != null ? String(a.v) : "").join("").trim() : e.m != null && String(e.m).trim() !== "" ? String(e.m).trim() : e.v != null && typeof e.v == "string" && !String(e.v).startsWith("=") ? String(e.v).trim() : "" : "";
|
|
20145
20154
|
}
|
|
@@ -20149,7 +20158,7 @@ function Lo(e) {
|
|
|
20149
20158
|
const t = e.v;
|
|
20150
20159
|
if (((a = e.ct) == null ? void 0 : a.t) === "d" && typeof t == "number" && Number.isFinite(t))
|
|
20151
20160
|
return Math.floor(t);
|
|
20152
|
-
const r =
|
|
20161
|
+
const r = Bu(e);
|
|
20153
20162
|
if (r && !r.startsWith("=")) {
|
|
20154
20163
|
const o = jn(r);
|
|
20155
20164
|
if (o != null) return Math.floor(o);
|
|
@@ -20180,7 +20189,7 @@ function la(e) {
|
|
|
20180
20189
|
return _n(t);
|
|
20181
20190
|
}
|
|
20182
20191
|
}
|
|
20183
|
-
function
|
|
20192
|
+
function Od(e) {
|
|
20184
20193
|
const t = hr;
|
|
20185
20194
|
if (!e || e.length === 0)
|
|
20186
20195
|
return {
|
|
@@ -20199,19 +20208,19 @@ function qd(e) {
|
|
|
20199
20208
|
if (/^\d{4}-\d{2}-\d{2}$/.test(a))
|
|
20200
20209
|
return {
|
|
20201
20210
|
preset: "exact",
|
|
20202
|
-
snapshotOrExact:
|
|
20211
|
+
snapshotOrExact: Lu(a),
|
|
20203
20212
|
format: t
|
|
20204
20213
|
};
|
|
20205
20214
|
const n = Ar(a);
|
|
20206
20215
|
return n != null ? {
|
|
20207
20216
|
preset: "exact",
|
|
20208
20217
|
snapshotOrExact: _n(
|
|
20209
|
-
|
|
20218
|
+
Fu(n)
|
|
20210
20219
|
),
|
|
20211
20220
|
format: t
|
|
20212
20221
|
} : { preset: "exact", snapshotOrExact: a, format: t };
|
|
20213
20222
|
}
|
|
20214
|
-
function
|
|
20223
|
+
function Pu(e, t, r) {
|
|
20215
20224
|
if (!(r != null && r.length)) return !1;
|
|
20216
20225
|
const a = String(r[0] ?? ""), n = Math.floor(e);
|
|
20217
20226
|
if (!a.startsWith("preset:")) {
|
|
@@ -20247,7 +20256,7 @@ const Sr = /* @__PURE__ */ new Set([
|
|
|
20247
20256
|
"yesterday",
|
|
20248
20257
|
"exact"
|
|
20249
20258
|
]);
|
|
20250
|
-
function
|
|
20259
|
+
function Hu(e) {
|
|
20251
20260
|
switch (e) {
|
|
20252
20261
|
case "containsText":
|
|
20253
20262
|
return "textContains";
|
|
@@ -20270,7 +20279,7 @@ function Bu(e) {
|
|
|
20270
20279
|
return e;
|
|
20271
20280
|
}
|
|
20272
20281
|
}
|
|
20273
|
-
function
|
|
20282
|
+
function Uu(e, t) {
|
|
20274
20283
|
if (!(t != null && t.length)) return !1;
|
|
20275
20284
|
const r = String(t[0] ?? ""), a = Math.floor(e);
|
|
20276
20285
|
if (!r.startsWith("preset:")) {
|
|
@@ -20307,9 +20316,9 @@ function sa(e) {
|
|
|
20307
20316
|
let n = String(e.dateValue ?? "").trim();
|
|
20308
20317
|
return r !== "exact" && (n = n || la(r)), [`preset:${r}`, n, a];
|
|
20309
20318
|
}
|
|
20310
|
-
function
|
|
20319
|
+
function Ld(e, t, r, a, n, o, i) {
|
|
20311
20320
|
var g, y, b, w;
|
|
20312
|
-
if (!
|
|
20321
|
+
if (!Du(e))
|
|
20313
20322
|
return;
|
|
20314
20323
|
const l = n.rulesType, c = [], s = [];
|
|
20315
20324
|
if (l === "greaterThan" || l === "greaterThanOrEqual" || l === "lessThan" || l === "lessThanOrEqual" || l === "equal" || l === "notEqual" || l === "textContains" || l === "textDoesNotContain" || l === "textStartsWith" || l === "textEndsWith" || l === "textExactly") {
|
|
@@ -20460,7 +20469,7 @@ function Hr(e, t, r, a, n) {
|
|
|
20460
20469
|
const o = e.split(","), i = parseInt(o[0].split("(")[1], 10), l = parseInt(o[1], 10), c = parseInt(o[2].split(")")[0], 10), s = t.split(","), u = parseInt(s[0].split("(")[1], 10), f = parseInt(s[1], 10), m = parseInt(s[2].split(")")[0], 10), d = r - a, p = r - n, g = Math.round(i - (i - u) / d * p), y = Math.round(l - (l - f) / d * p), b = Math.round(c - (c - m) / d * p);
|
|
20461
20470
|
return `rgb(${g}, ${y}, ${b})`;
|
|
20462
20471
|
}
|
|
20463
|
-
function
|
|
20472
|
+
function zu(e, t, r) {
|
|
20464
20473
|
h.isNil(t) && (t = []);
|
|
20465
20474
|
const a = {};
|
|
20466
20475
|
if (t.length > 0)
|
|
@@ -20590,7 +20599,7 @@ function Hu(e, t, r) {
|
|
|
20590
20599
|
}
|
|
20591
20600
|
}
|
|
20592
20601
|
} else if (o !== "icons") {
|
|
20593
|
-
const c =
|
|
20602
|
+
const c = Hu(
|
|
20594
20603
|
String(t[n].conditionName ?? "")
|
|
20595
20604
|
), s = t[n].conditionValue[0], u = t[n].conditionValue[1], { textColor: f, cellColor: m, bold: d, italic: p, underline: g, strikethrough: y } = l;
|
|
20596
20605
|
for (let b = 0; b < i.length; b += 1)
|
|
@@ -20713,7 +20722,7 @@ function Hu(e, t, r) {
|
|
|
20713
20722
|
const T = r[w][_];
|
|
20714
20723
|
if (h.isNil(T) || h.isNil(T.v) || Je(T.v))
|
|
20715
20724
|
continue;
|
|
20716
|
-
const v =
|
|
20725
|
+
const v = Ou(
|
|
20717
20726
|
T.v,
|
|
20718
20727
|
s,
|
|
20719
20728
|
u
|
|
@@ -20757,7 +20766,7 @@ function Hu(e, t, r) {
|
|
|
20757
20766
|
const v = Lo(r[_][T]);
|
|
20758
20767
|
if (v == null)
|
|
20759
20768
|
continue;
|
|
20760
|
-
|
|
20769
|
+
Pu(
|
|
20761
20770
|
v,
|
|
20762
20771
|
c,
|
|
20763
20772
|
w
|
|
@@ -20779,7 +20788,7 @@ function Hu(e, t, r) {
|
|
|
20779
20788
|
const v = Lo(r[_][T]);
|
|
20780
20789
|
if (v == null)
|
|
20781
20790
|
continue;
|
|
20782
|
-
|
|
20791
|
+
Uu(v, w) && !(`${_}_${T}` in a) && (a[`${_}_${T}`] = {
|
|
20783
20792
|
textColor: f,
|
|
20784
20793
|
cellColor: m,
|
|
20785
20794
|
bold: d,
|
|
@@ -20918,7 +20927,7 @@ function Hu(e, t, r) {
|
|
|
20918
20927
|
}
|
|
20919
20928
|
return a;
|
|
20920
20929
|
}
|
|
20921
|
-
function
|
|
20930
|
+
function Wu(e) {
|
|
20922
20931
|
var r, a;
|
|
20923
20932
|
if (!e) return !1;
|
|
20924
20933
|
const t = e.rulesType;
|
|
@@ -20933,7 +20942,7 @@ function Uu(e) {
|
|
|
20933
20942
|
}
|
|
20934
20943
|
return t === "occurrenceDate" ? String(e.dateValue ?? "").trim() !== "" : t === "between" || t === "notBetween" ? String(((r = e.betweenValue) == null ? void 0 : r.value1) ?? "").trim() !== "" && String(((a = e.betweenValue) == null ? void 0 : a.value2) ?? "").trim() !== "" : String(e.rulesValue ?? "").trim() !== "";
|
|
20935
20944
|
}
|
|
20936
|
-
function
|
|
20945
|
+
function Vu(e) {
|
|
20937
20946
|
if (!e) return [""];
|
|
20938
20947
|
const t = sa(e);
|
|
20939
20948
|
if (t) return t;
|
|
@@ -20945,7 +20954,7 @@ function Nl(e) {
|
|
|
20945
20954
|
const t = Fe(e, e.currentSheetId), r = (l = e.luckysheetfile[t]) != null && l.luckysheet_conditionformat_save ? [...(c = e.luckysheetfile[t]) == null ? void 0 : c.luckysheet_conditionformat_save] : [], { data: a } = e.luckysheetfile[t];
|
|
20946
20955
|
if (h.isNil(a)) return null;
|
|
20947
20956
|
const n = (s = e.luckysheetfile[t].conditionRules) == null ? void 0 : s.editKey, o = e.luckysheetfile[t].conditionRules;
|
|
20948
|
-
return e.conditionFormatDraftActive && e.luckysheet_select_save &&
|
|
20957
|
+
return e.conditionFormatDraftActive && e.luckysheet_select_save && Wu(o) && (n != null && r.splice(Number(n), 1), r.unshift({
|
|
20949
20958
|
type: "default",
|
|
20950
20959
|
cellrange: e.luckysheet_select_save,
|
|
20951
20960
|
format: {
|
|
@@ -20958,13 +20967,13 @@ function Nl(e) {
|
|
|
20958
20967
|
},
|
|
20959
20968
|
conditionName: (T = e.luckysheetfile[t].conditionRules) == null ? void 0 : T.rulesType,
|
|
20960
20969
|
conditionRange: [],
|
|
20961
|
-
conditionValue:
|
|
20962
|
-
})),
|
|
20970
|
+
conditionValue: Vu(o)
|
|
20971
|
+
})), zu(e, r, a);
|
|
20963
20972
|
}
|
|
20964
|
-
function
|
|
20973
|
+
function Gu(e, t, r) {
|
|
20965
20974
|
return !h.isNil(r) && `${e}_${t}` in r ? r[`${e}_${t}`] : null;
|
|
20966
20975
|
}
|
|
20967
|
-
function
|
|
20976
|
+
function Yu(e, t, r, a) {
|
|
20968
20977
|
let n = [];
|
|
20969
20978
|
const o = r.row[0] - t.row[0], i = r.column[0] - t.column[0], l = e.row[0], c = e.row[1], s = e.column[0], u = e.column[1];
|
|
20970
20979
|
return l >= t.row[0] && c <= t.row[1] && s >= t.column[0] && u <= t.column[1] ? a === "allPart" ? n = [
|
|
@@ -21224,7 +21233,7 @@ function Vu(e, t, r, a) {
|
|
|
21224
21233
|
}
|
|
21225
21234
|
]) : a === "allPart" ? n = [{ row: [l, c], column: [s, u] }] : a === "restPart" ? n = [{ row: [l, c], column: [s, u] }] : a === "operatePart" && (n = []), n;
|
|
21226
21235
|
}
|
|
21227
|
-
function
|
|
21236
|
+
function ju(e, t) {
|
|
21228
21237
|
const r = [];
|
|
21229
21238
|
if (_t(t)) {
|
|
21230
21239
|
const a = Sn(e, t), n = Fe(e, a.sheetId), o = e.luckysheetfile[n].data;
|
|
@@ -21248,7 +21257,7 @@ function Gu(e, t) {
|
|
|
21248
21257
|
}
|
|
21249
21258
|
return r;
|
|
21250
21259
|
}
|
|
21251
|
-
function
|
|
21260
|
+
function Xu(e, t) {
|
|
21252
21261
|
if (/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/.test(t)) {
|
|
21253
21262
|
if (t.length === 18) {
|
|
21254
21263
|
const a = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2], n = [1, 0, 10, 9, 8, 7, 6, 5, 4, 3, 2];
|
|
@@ -21266,7 +21275,7 @@ function Al(e, t, r) {
|
|
|
21266
21275
|
let { value1: a, value2: n } = t;
|
|
21267
21276
|
const { type: o, type2: i } = t;
|
|
21268
21277
|
if (o === "dropdown") {
|
|
21269
|
-
const l =
|
|
21278
|
+
const l = ju(e, a);
|
|
21270
21279
|
if (i && r)
|
|
21271
21280
|
return r.toString().split(",").every((s) => l.indexOf(s) !== -1);
|
|
21272
21281
|
let c = !1;
|
|
@@ -21290,12 +21299,12 @@ function Al(e, t, r) {
|
|
|
21290
21299
|
} else if (o === "date") {
|
|
21291
21300
|
if (!An(r) || i === "between" && (St(r, a) < 0 || St(r, n) > 0) || i === "notBetween" && St(r, a) >= 0 && St(r, n) <= 0 || i === "equal" && St(r, a) !== 0 || i === "notEqualTo" && St(r, a) === 0 || i === "earlierThan" && St(r, a) >= 0 || i === "noEarlierThan" && St(r, a) < 0 || i === "laterThan" && St(r, a) <= 0 || i === "noLaterThan" && St(r, a) > 0)
|
|
21292
21301
|
return !1;
|
|
21293
|
-
} else if (o === "validity" && (i === "identificationNumber" && !
|
|
21302
|
+
} else if (o === "validity" && (i === "identificationNumber" && !Xu(e, r) || i === "phoneNumber" && !/^1[3456789]\d{9}$/.test(r)))
|
|
21294
21303
|
return !1;
|
|
21295
21304
|
}
|
|
21296
21305
|
return !0;
|
|
21297
21306
|
}
|
|
21298
|
-
function
|
|
21307
|
+
function Zu(e, t, r) {
|
|
21299
21308
|
var c, s;
|
|
21300
21309
|
const a = Fe(e, e.currentSheetId), o = (e.luckysheetfile[a].dataVerification ?? {})[`${t}_${r}`];
|
|
21301
21310
|
o.checked = !o.checked;
|
|
@@ -21341,7 +21350,7 @@ function Sl(e, t) {
|
|
|
21341
21350
|
}
|
|
21342
21351
|
return r;
|
|
21343
21352
|
}
|
|
21344
|
-
function
|
|
21353
|
+
function Ku(e, t) {
|
|
21345
21354
|
var c, s, u, f;
|
|
21346
21355
|
let r = t.hintValue || "";
|
|
21347
21356
|
const { type: a, type2: n, value1: o, value2: i } = t, { lang: l } = e;
|
|
@@ -21362,8 +21371,8 @@ function Xu(e, t) {
|
|
|
21362
21371
|
}
|
|
21363
21372
|
return r;
|
|
21364
21373
|
}
|
|
21365
|
-
function
|
|
21366
|
-
const n = Gt(e), o =
|
|
21374
|
+
function Fd(e, t, r, a) {
|
|
21375
|
+
const n = Gt(e), o = Rf(e);
|
|
21367
21376
|
if (!n || o) return;
|
|
21368
21377
|
const i = document.getElementById(
|
|
21369
21378
|
"luckysheet-dataVerification-showHintBox"
|
|
@@ -21381,10 +21390,10 @@ function Dd(e, t, r, a) {
|
|
|
21381
21390
|
if (!b) return;
|
|
21382
21391
|
const w = tn(e, b, t, r);
|
|
21383
21392
|
if (w && ([m, f] = w.row, [g, p] = w.column), !u) return;
|
|
21384
|
-
if (u.type === "checkbox" &&
|
|
21393
|
+
if (u.type === "checkbox" && Zu(e, t, r), u.type === "dropdown" && (l.style.display = "block", l.style.maxWidth = `${p - g}px`, l.style.maxHeight = `${f - m}px`, l.style.left = `${p - 20}px`, l.style.top = `${m + (f - m - 20) / 2 - 2}px`), u.hintShow) {
|
|
21385
21394
|
let v = "";
|
|
21386
21395
|
const { lang: x } = e;
|
|
21387
|
-
x === "en" ? v = '<span style="color:#f5a623;">Hint: </span>' : x === "zh" || x === "zh-CN" || x === "zh-TW" ? v = '<span style="color:#f5a623;">提示:</span>' : x === "es" ? v = '<span style="color:#f5a623;">Consejos:</span>' : x === "hi" && (v = '<span style="color:#f5a623;">सुझाव: </span>'), v +=
|
|
21396
|
+
x === "en" ? v = '<span style="color:#f5a623;">Hint: </span>' : x === "zh" || x === "zh-CN" || x === "zh-TW" ? v = '<span style="color:#f5a623;">提示:</span>' : x === "es" ? v = '<span style="color:#f5a623;">Consejos:</span>' : x === "hi" && (v = '<span style="color:#f5a623;">सुझाव: </span>'), v += Ku(e, u), i.innerHTML = v, i.style.display = "block", i.style.left = `${g}px`, i.style.top = `${f}px`;
|
|
21388
21397
|
}
|
|
21389
21398
|
const _ = Ke(t, r, b);
|
|
21390
21399
|
if (Je(_))
|
|
@@ -21395,7 +21404,7 @@ function Dd(e, t, r, a) {
|
|
|
21395
21404
|
x === "en" ? v = '<span style="color:#f72626;">Failure: </span>' : x === "zh" || x === "zh-CN" || x === "zh-TW" ? v = '<span style="color:#f72626;">失效:</span>' : x === "es" ? v = '<span style="color:#f72626;">Caducidad: </span>' : x === "hi" && (v = '<span style="color:#f72626;">असफलता: </span>'), v = C + v + Sl(e, u), i.innerHTML = v, i.style.display = "block", i.style.left = `${y}px`, i.style.top = `${d}px`;
|
|
21396
21405
|
}
|
|
21397
21406
|
}
|
|
21398
|
-
function
|
|
21407
|
+
function Bd(e, t, r) {
|
|
21399
21408
|
var p, g;
|
|
21400
21409
|
if (!e.luckysheet_select_save) return;
|
|
21401
21410
|
const a = Ie(e);
|
|
@@ -21440,12 +21449,12 @@ function Od(e, t, r) {
|
|
|
21440
21449
|
type: "update"
|
|
21441
21450
|
}
|
|
21442
21451
|
]);
|
|
21443
|
-
const m =
|
|
21444
|
-
m < d &&
|
|
21452
|
+
const m = Lf(e, [o])[o], d = 22 * (t.split(",").length || (s == null ? void 0 : s.length)) || 22;
|
|
21453
|
+
m < d && Of(e, {
|
|
21445
21454
|
[String(o)]: d
|
|
21446
21455
|
}), xl(e, null, void 0);
|
|
21447
21456
|
}
|
|
21448
|
-
function
|
|
21457
|
+
function Pd(e, t, r) {
|
|
21449
21458
|
var p, g;
|
|
21450
21459
|
const a = Vn(
|
|
21451
21460
|
e,
|
|
@@ -21502,7 +21511,7 @@ function Ld(e, t, r) {
|
|
|
21502
21511
|
}
|
|
21503
21512
|
return !0;
|
|
21504
21513
|
}
|
|
21505
|
-
function
|
|
21514
|
+
function Qu(e, t, r, a) {
|
|
21506
21515
|
e.formulaCache.execFunctionExist = [];
|
|
21507
21516
|
for (let n = 0; n < t.length; n += 1)
|
|
21508
21517
|
for (let o = t[n].row[0]; o <= t[n].row[1]; o += 1)
|
|
@@ -21511,9 +21520,9 @@ function Zu(e, t, r, a) {
|
|
|
21511
21520
|
e.formulaCache.execFunctionExist.reverse(), Yn(e, null, null, null, null, a), aa(e) || (e.formulaCache.execFunctionGlobalData = null);
|
|
21512
21521
|
}
|
|
21513
21522
|
function xl(e, t, r, a = !0) {
|
|
21514
|
-
t == null && (t = Ie(e)), !(r == null && (r = e.luckysheet_select_save, r == null)) && a &&
|
|
21523
|
+
t == null && (t = Ie(e)), !(r == null && (r = e.luckysheet_select_save, r == null)) && a && Qu(e, r, e.currentSheetId, t);
|
|
21515
21524
|
}
|
|
21516
|
-
function
|
|
21525
|
+
function Ju(e, t, r) {
|
|
21517
21526
|
e == null && (e = !0);
|
|
21518
21527
|
const a = (c, s) => {
|
|
21519
21528
|
let u = c[t], f = s[t];
|
|
@@ -21540,7 +21549,7 @@ function Ku(e, t, r) {
|
|
|
21540
21549
|
}
|
|
21541
21550
|
function El(e, t, r, a, n, o, i, l, c) {
|
|
21542
21551
|
var g, y;
|
|
21543
|
-
const { sortedData: s, rowMap: u } =
|
|
21552
|
+
const { sortedData: s, rowMap: u } = Ju(n, a, r);
|
|
21544
21553
|
for (let b = o; b <= i; b += 1)
|
|
21545
21554
|
for (let w = l; w <= c; w += 1) {
|
|
21546
21555
|
const _ = s[b - o][w - l];
|
|
@@ -21558,7 +21567,7 @@ function El(e, t, r, a, n, o, i, l, c) {
|
|
|
21558
21567
|
if (w)
|
|
21559
21568
|
for (let _ = 0; _ < w.length; _ += 1) {
|
|
21560
21569
|
const T = w[_];
|
|
21561
|
-
T != null && T.f && (T.f =
|
|
21570
|
+
T != null && T.f && (T.f = ku(T.f, p, p, {
|
|
21562
21571
|
rowMap: f
|
|
21563
21572
|
}));
|
|
21564
21573
|
}
|
|
@@ -21582,7 +21591,7 @@ function El(e, t, r, a, n, o, i, l, c) {
|
|
|
21582
21591
|
b.length > 0 && e.hooks.updateCellYdoc(b);
|
|
21583
21592
|
}
|
|
21584
21593
|
}
|
|
21585
|
-
function
|
|
21594
|
+
function Hd(e, t, r = 0) {
|
|
21586
21595
|
var d;
|
|
21587
21596
|
if (e.allowEdit === !1 || e.luckysheet_select_save == null || e.luckysheet_select_save.length > 1)
|
|
21588
21597
|
return;
|
|
@@ -21622,7 +21631,7 @@ function Fd(e, t, r = 0) {
|
|
|
21622
21631
|
f || El(e, n, m, r, t, s, u, l, c);
|
|
21623
21632
|
}
|
|
21624
21633
|
}
|
|
21625
|
-
function
|
|
21634
|
+
function Ud(e, t) {
|
|
21626
21635
|
var f, m, d;
|
|
21627
21636
|
if (e.allowEdit === !1) return;
|
|
21628
21637
|
const r = Ie(e);
|
|
@@ -21665,7 +21674,7 @@ function Bd(e, t) {
|
|
|
21665
21674
|
c
|
|
21666
21675
|
);
|
|
21667
21676
|
}
|
|
21668
|
-
function
|
|
21677
|
+
function ef(e, t, r, a, n) {
|
|
21669
21678
|
var s;
|
|
21670
21679
|
const o = Ie(e);
|
|
21671
21680
|
if (!o) return;
|
|
@@ -21701,7 +21710,7 @@ function kl(e, t, r, a, n) {
|
|
|
21701
21710
|
if (typeof o != "string" || !(/= *SORT\s*\(/i.test(o) || /= *XLOOKUP\s*\(/i.test(o) || /= *SEQUENCE\s*\(/i.test(o)) || !Array.isArray(i)) return !1;
|
|
21702
21711
|
const l = Array.isArray(i[0]) ? i : i.map((m) => [m]), c = l.length, s = c && Array.isArray(l[0]) ? l[0].length : 0;
|
|
21703
21712
|
if (!c || !s) return !1;
|
|
21704
|
-
|
|
21713
|
+
ef(
|
|
21705
21714
|
e,
|
|
21706
21715
|
t,
|
|
21707
21716
|
r,
|
|
@@ -21744,7 +21753,7 @@ function kl(e, t, r, a, n) {
|
|
|
21744
21753
|
}
|
|
21745
21754
|
return !0;
|
|
21746
21755
|
}
|
|
21747
|
-
const
|
|
21756
|
+
const tf = 8;
|
|
21748
21757
|
function Rl(e, t, r, a) {
|
|
21749
21758
|
var s, u, f, m;
|
|
21750
21759
|
if (!a) return;
|
|
@@ -21763,7 +21772,7 @@ function Rl(e, t, r, a) {
|
|
|
21763
21772
|
});
|
|
21764
21773
|
y && (l = Math.max(
|
|
21765
21774
|
l,
|
|
21766
|
-
y.textHeightAll +
|
|
21775
|
+
y.textHeightAll + tf
|
|
21767
21776
|
));
|
|
21768
21777
|
}
|
|
21769
21778
|
h.isNil(o.rowlen) && (o.rowlen = {}), l > i ? o.rowlen[t] = l : h.isNil((m = o.rowlen) == null ? void 0 : m[t]) || delete o.rowlen[t], e.config = o;
|
|
@@ -21775,7 +21784,7 @@ function bt(e, t, r = 10) {
|
|
|
21775
21784
|
if (t in a || t === "fs" && Vt(e))
|
|
21776
21785
|
n || (n = "0");
|
|
21777
21786
|
else if (["fc", "bg", "bc"].includes(t))
|
|
21778
|
-
["fc", "bc"].includes(t) && (n || (n = "#000000")), (n == null ? void 0 : n.indexOf("rgba")) > -1 && (n =
|
|
21787
|
+
["fc", "bc"].includes(t) && (n || (n = "#000000")), (n == null ? void 0 : n.indexOf("rgba")) > -1 && (n = Ef(n));
|
|
21779
21788
|
else if (t.substring(0, 2) === "bs")
|
|
21780
21789
|
n || (n = "none");
|
|
21781
21790
|
else if (t === "ht" || t === "vt") {
|
|
@@ -21784,14 +21793,14 @@ function bt(e, t, r = 10) {
|
|
|
21784
21793
|
} else t === "fs" ? n || (n = r.toString()) : (t === "tb" || t === "tr") && (n || (n = "0"));
|
|
21785
21794
|
return n;
|
|
21786
21795
|
}
|
|
21787
|
-
function
|
|
21796
|
+
function zd(e, t, r, a) {
|
|
21788
21797
|
if (!e || !e[t])
|
|
21789
21798
|
return null;
|
|
21790
21799
|
const n = e[t][r];
|
|
21791
21800
|
if (n)
|
|
21792
21801
|
return bt(n, a);
|
|
21793
21802
|
}
|
|
21794
|
-
function
|
|
21803
|
+
function nf(e) {
|
|
21795
21804
|
return e ? e.replace(/\r\n|\r|\n/g, "<br />") : "";
|
|
21796
21805
|
}
|
|
21797
21806
|
function Fo(e) {
|
|
@@ -21812,7 +21821,7 @@ function Fo(e) {
|
|
|
21812
21821
|
}
|
|
21813
21822
|
return r <= 0 ? e : `${e}${")".repeat(r)}`;
|
|
21814
21823
|
}
|
|
21815
|
-
function
|
|
21824
|
+
function rf(e) {
|
|
21816
21825
|
if (!Array.from(e.childNodes).some(
|
|
21817
21826
|
(o) => !(o.nodeType === Node.ELEMENT_NODE && o.tagName === "SPAN")
|
|
21818
21827
|
)) return;
|
|
@@ -21892,7 +21901,7 @@ function Ke(e, t, r, a) {
|
|
|
21892
21901
|
} else
|
|
21893
21902
|
o = m.v;
|
|
21894
21903
|
else m && m.ct && m.ct.t === "d" && (o = m.m);
|
|
21895
|
-
m != null && m.ct && vr(m.ct) && (a === "v" || a === "m") && (o =
|
|
21904
|
+
m != null && m.ct && vr(m.ct) && (a === "v" || a === "m") && (o = nf((f = m.ct.s[0]) == null ? void 0 : f.v));
|
|
21896
21905
|
}
|
|
21897
21906
|
return o === void 0 && (o = null), o;
|
|
21898
21907
|
}
|
|
@@ -21942,7 +21951,7 @@ function bn(e, t, r, a, n) {
|
|
|
21942
21951
|
const X = m.trim().replace(/,/g, "");
|
|
21943
21952
|
o.m = X, o.v = X, ((v = o.ct) == null ? void 0 : v.fa) === "@" ? o.ct = { fa: "@", t: "s" } : o.ct = { fa: "General", t: "g" };
|
|
21944
21953
|
} else if (!h.isNil(o.f) && Array.isArray(l))
|
|
21945
|
-
o.v = l, h.isNil(o.ct) ? o.ct = { fa: "General", t: "g" } : (o.ct = { ...o.ct, fa: "General", t: "g" }, delete o.ct.dp), o.m =
|
|
21954
|
+
o.v = l, h.isNil(o.ct) ? o.ct = { fa: "General", t: "g" } : (o.ct = { ...o.ct, fa: "General", t: "g" }, delete o.ct.dp), o.m = lf(l);
|
|
21946
21955
|
else if (!h.isNil(o.f) && typeof l == "number" && Number.isFinite(l) && !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(
|
|
21947
21956
|
m
|
|
21948
21957
|
)) {
|
|
@@ -21966,7 +21975,7 @@ function bn(e, t, r, a, n) {
|
|
|
21966
21975
|
o.m = W.toString();
|
|
21967
21976
|
}
|
|
21968
21977
|
}
|
|
21969
|
-
if (
|
|
21978
|
+
if (Xc(o.f, o.v) && (((I = o.ct) == null ? void 0 : I.fa) === "General" || ((k = o.ct) == null ? void 0 : k.t) === "g" || ((O = o.ct) == null ? void 0 : O.t) === "n" && (!((U = o.ct) != null && U.fa) || ((Z = o.ct) == null ? void 0 : Z.fa) === "General"))) {
|
|
21970
21979
|
const K = /\bNOW\s*\(/i.test(o.f), W = il(K);
|
|
21971
21980
|
o.ct = { fa: W, t: "d" };
|
|
21972
21981
|
const ce = Math.round(o.v * 1e9) / 1e9;
|
|
@@ -22018,7 +22027,7 @@ function bn(e, t, r, a, n) {
|
|
|
22018
22027
|
M && (o.m = M[0].toString(), [, o.ct, o.v] = M);
|
|
22019
22028
|
}
|
|
22020
22029
|
else if (Xe(l)) {
|
|
22021
|
-
s && !X.includes(",") && (X =
|
|
22030
|
+
s && !X.includes(",") && (X = If(String(l), s)), l = parseFloat(l), X.includes("%") && !m.includes("%") && (!i || K) && (l /= 100), o != null && o.ct && (o.ct = { ...o.ct, fa: X, t: "n" });
|
|
22022
22031
|
const M = kt(X, l);
|
|
22023
22032
|
if (M === l) {
|
|
22024
22033
|
const $ = ir(
|
|
@@ -22078,7 +22087,7 @@ function bn(e, t, r, a, n) {
|
|
|
22078
22087
|
}
|
|
22079
22088
|
h.isNil(o.f) || (c ? (o.ct || (o.ct = { fa: "General", t: "g" }), o.ct.s = c) : o != null && o.ct && h.isPlainObject(n) && Object.prototype.hasOwnProperty.call(n, "ct") && delete o.ct.s), a[t][r] = o, e.luckysheet_selection_range && (e.luckysheet_selection_range = []);
|
|
22080
22089
|
}
|
|
22081
|
-
function
|
|
22090
|
+
function Wd(e, t, r, a) {
|
|
22082
22091
|
let n = Ke(e, t, r, "m");
|
|
22083
22092
|
if (h.isNil(n) && (n = Ke(e, t, r, a), h.isNil(n))) {
|
|
22084
22093
|
const o = Ke(e, t, r, "ct");
|
|
@@ -22117,7 +22126,7 @@ function tn(e, t, r, a) {
|
|
|
22117
22126
|
}
|
|
22118
22127
|
return null;
|
|
22119
22128
|
}
|
|
22120
|
-
function
|
|
22129
|
+
function af(e, t, r, a, n, o, i, l, c) {
|
|
22121
22130
|
const s = t.r, u = t.r + t.rs - 1, f = t.c, m = t.c + t.cs - 1;
|
|
22122
22131
|
let d = !1;
|
|
22123
22132
|
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)) {
|
|
@@ -22145,7 +22154,7 @@ function Xn(e, t, r, a, n, o, i, l) {
|
|
|
22145
22154
|
const d = s[m], p = c[d];
|
|
22146
22155
|
if (d in f)
|
|
22147
22156
|
continue;
|
|
22148
|
-
const g =
|
|
22157
|
+
const g = af(
|
|
22149
22158
|
e,
|
|
22150
22159
|
p,
|
|
22151
22160
|
t,
|
|
@@ -22167,16 +22176,16 @@ function Ml(e) {
|
|
|
22167
22176
|
function jt(e) {
|
|
22168
22177
|
Ml(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;
|
|
22169
22178
|
}
|
|
22170
|
-
function
|
|
22179
|
+
function of(e) {
|
|
22171
22180
|
return typeof e == "number" ? Number.isFinite(e) : typeof e != "string" ? !1 : /^[\d.,]+$/.test(e.replace(/\s/g, ""));
|
|
22172
22181
|
}
|
|
22173
|
-
function
|
|
22182
|
+
function lf(e) {
|
|
22174
22183
|
if (!Array.isArray(e) || e.length === 0)
|
|
22175
22184
|
return "";
|
|
22176
22185
|
const t = e[0];
|
|
22177
22186
|
return Array.isArray(t) && e.every((r) => Array.isArray(r)) ? e.map((r) => r.map((a) => String(a ?? "")).join(", ")).join("; ") : e.map((r) => String(r ?? "")).join(", ");
|
|
22178
22187
|
}
|
|
22179
|
-
function
|
|
22188
|
+
function sf(e, t, r, a, n, o) {
|
|
22180
22189
|
var i, l, c, s, u, f, m, d, p, g, y, b, w, _, T, v, x, C, I, k, O, U, Z, J, se, V, Q, B, re;
|
|
22181
22190
|
try {
|
|
22182
22191
|
if (e.allowEdit === !1 || e.isFlvReadOnly) return;
|
|
@@ -22224,7 +22233,7 @@ function of(e, t, r, a, n, o) {
|
|
|
22224
22233
|
else if (we) {
|
|
22225
22234
|
h.isPlainObject(L) || (L = {}), L || (L = {});
|
|
22226
22235
|
const j = L.fs || 10;
|
|
22227
|
-
L.ct || (L.ct = {}, L.ct.fa = "General", L.tb = "1"), L.ct.t = "inlineStr",
|
|
22236
|
+
L.ct || (L.ct = {}, L.ct.fa = "General", L.tb = "1"), L.ct.t = "inlineStr", rf(a), L.ct.s = js(
|
|
22228
22237
|
a.querySelectorAll("span"),
|
|
22229
22238
|
L
|
|
22230
22239
|
), delete L.fs, delete L.f, delete L._formulaEditHtml, delete L.v, delete L.m, L.fs = j, Te && (L.ct.s = [
|
|
@@ -22328,7 +22337,7 @@ function of(e, t, r, a, n, o) {
|
|
|
22328
22337
|
v: ce(n.f),
|
|
22329
22338
|
fs: n.fs || 10
|
|
22330
22339
|
}
|
|
22331
|
-
], K(n)) : (T = n.ct) == null || delete T.s,
|
|
22340
|
+
], K(n)) : (T = n.ct) == null || delete T.s, of(n.v)) {
|
|
22332
22341
|
const le = (v = Pl(n == null ? void 0 : n.f)) == null ? void 0 : v.split(","), qe = le == null ? void 0 : le.map((Ee) => Ee.trim().toUpperCase()), Se = Hl(qe, Ue, N);
|
|
22333
22342
|
if (Se) {
|
|
22334
22343
|
const Ee = typeof n.v == "number" ? n.v : Number(String(n.v).replace(/,/g, ""));
|
|
@@ -22419,15 +22428,15 @@ function of(e, t, r, a, n, o) {
|
|
|
22419
22428
|
console.error(oe), jt(e);
|
|
22420
22429
|
}
|
|
22421
22430
|
}
|
|
22422
|
-
function
|
|
22431
|
+
function cf(e, t, r, a) {
|
|
22423
22432
|
const n = Ie(e, a);
|
|
22424
22433
|
return h.isNil(t) || h.isNil(r) || !n || !n[t] || !n[t][r] ? null : n[t][r];
|
|
22425
22434
|
}
|
|
22426
22435
|
function Ma(e, t, r, a, n) {
|
|
22427
22436
|
let o;
|
|
22428
|
-
return h.isNil(n) ? o =
|
|
22437
|
+
return h.isNil(n) ? o = cf(e, t, r, a) : o = n[t][r], h.isNil(o) ? null : o.f;
|
|
22429
22438
|
}
|
|
22430
|
-
function
|
|
22439
|
+
function uf(e) {
|
|
22431
22440
|
const t = h.cloneDeep(e.luckysheet_select_save), r = [];
|
|
22432
22441
|
if (!t) return r;
|
|
22433
22442
|
for (let a = 0; a < t.length; a += 1) {
|
|
@@ -22439,8 +22448,8 @@ function sf(e) {
|
|
|
22439
22448
|
}
|
|
22440
22449
|
return r;
|
|
22441
22450
|
}
|
|
22442
|
-
function
|
|
22443
|
-
t = t ||
|
|
22451
|
+
function ff(e, t) {
|
|
22452
|
+
t = t || uf(e);
|
|
22444
22453
|
const r = [];
|
|
22445
22454
|
return t.forEach((a) => {
|
|
22446
22455
|
const n = a.row, o = a.column;
|
|
@@ -22479,7 +22488,7 @@ function Vn(e, t) {
|
|
|
22479
22488
|
_t(t) && r.push(Sn(e, t));
|
|
22480
22489
|
return r;
|
|
22481
22490
|
}
|
|
22482
|
-
function
|
|
22491
|
+
function df(e) {
|
|
22483
22492
|
const t = (e ?? "").split(",");
|
|
22484
22493
|
for (const r of t) {
|
|
22485
22494
|
const a = String(r).trim();
|
|
@@ -22496,11 +22505,11 @@ function uf(e) {
|
|
|
22496
22505
|
}
|
|
22497
22506
|
return !1;
|
|
22498
22507
|
}
|
|
22499
|
-
function
|
|
22508
|
+
function Vd(e, t) {
|
|
22500
22509
|
const r = (t ?? "").trim();
|
|
22501
|
-
return r === "" ? !0 :
|
|
22510
|
+
return r === "" ? !0 : df(r) ? !1 : Vn(e, r).length > 0;
|
|
22502
22511
|
}
|
|
22503
|
-
function
|
|
22512
|
+
function Gd(e, t, r) {
|
|
22504
22513
|
if (!h.isEmpty(e.luckysheetCellUpdate)) {
|
|
22505
22514
|
const o = window.getSelection();
|
|
22506
22515
|
if (!o || o.rangeCount === 0) return !1;
|
|
@@ -22532,7 +22541,7 @@ function zd(e, t, r) {
|
|
|
22532
22541
|
y.textContent && y.textContent.length > 0 && i.intersectsNode(y) && p.push(y);
|
|
22533
22542
|
}), p.length === 0 && (u && p.push(u), f && f !== u && p.push(f)), p.length === 0 ? !1 : h.every(p, (g) => d(g));
|
|
22534
22543
|
}
|
|
22535
|
-
const a =
|
|
22544
|
+
const a = ff(e), n = Ie(e);
|
|
22536
22545
|
return a.every(({ r: o, c: i }) => {
|
|
22537
22546
|
var c;
|
|
22538
22547
|
const l = (c = n == null ? void 0 : n[o]) == null ? void 0 : c[i];
|
|
@@ -22566,7 +22575,7 @@ function qa(e, t, r, a = !0) {
|
|
|
22566
22575
|
function ca(e, t, r, a, n) {
|
|
22567
22576
|
var u;
|
|
22568
22577
|
let o = {};
|
|
22569
|
-
const i = [], l = n ?? Nl(e), c =
|
|
22578
|
+
const i = [], l = n ?? Nl(e), c = Gu(r, a, l), s = (u = t == null ? void 0 : t[r]) == null ? void 0 : u[a];
|
|
22570
22579
|
if (!s) {
|
|
22571
22580
|
if (!c)
|
|
22572
22581
|
return {};
|
|
@@ -22587,7 +22596,7 @@ function ca(e, t, r, a, n) {
|
|
|
22587
22596
|
}
|
|
22588
22597
|
return o = h.assign(o, qa(s, i, c)), Po(o, c), o;
|
|
22589
22598
|
}
|
|
22590
|
-
function
|
|
22599
|
+
function mf(e) {
|
|
22591
22600
|
const t = /* @__PURE__ */ new Set(), r = {
|
|
22592
22601
|
color: e.color || "#000000",
|
|
22593
22602
|
fontFamily: e.fontFamily || "Arial",
|
|
@@ -22597,7 +22606,7 @@ function ff(e) {
|
|
|
22597
22606
|
}, a = e.backgroundColor || e.background;
|
|
22598
22607
|
return a && a !== "transparent" && a !== "rgba(0, 0, 0, 0)" && (r.backgroundColor = a), typeof e.textDecoration == "string" && e.textDecoration.split(/\s+/).filter(Boolean).forEach((n) => t.add(n)), e.borderBottom && (t.add("underline"), r.textDecorationSkipInk = "none"), t.size > 0 && (r.textDecoration = Array.from(t).join(" ")), r;
|
|
22599
22608
|
}
|
|
22600
|
-
function
|
|
22609
|
+
function hf(e, t) {
|
|
22601
22610
|
const a = e.replace(/\r\n/g, `
|
|
22602
22611
|
`).replace(/\r/g, `
|
|
22603
22612
|
`).split(`
|
|
@@ -22618,7 +22627,7 @@ function ql(e, t, r, a) {
|
|
|
22618
22627
|
const s = {
|
|
22619
22628
|
...a != null && a.useSemanticMarkup ? a.inheritedStyle ?? {} : {},
|
|
22620
22629
|
...qa(c)
|
|
22621
|
-
}, u = a != null && a.useSemanticMarkup ?
|
|
22630
|
+
}, u = a != null && a.useSemanticMarkup ? mf(s) : s;
|
|
22622
22631
|
u.fontWeight || (u.fontWeight = "400"), u.fontStyle || (u.fontStyle = "normal"), u.fontSize || (u.fontSize = "11pt"), u.fontFamily || (u.fontFamily = "Arial");
|
|
22623
22632
|
const { link: f } = c, m = c, d = Object.prototype.hasOwnProperty.call(
|
|
22624
22633
|
m,
|
|
@@ -22637,7 +22646,7 @@ function ql(e, t, r, a) {
|
|
|
22637
22646
|
)}'${w ? " data-link-plain='1'" : ""}` : "";
|
|
22638
22647
|
if (a != null && a.isRichTextCopy)
|
|
22639
22648
|
if (a != null && a.useSemanticMarkup)
|
|
22640
|
-
i +=
|
|
22649
|
+
i += hf(c.v, b);
|
|
22641
22650
|
else {
|
|
22642
22651
|
const T = c.v.replace(/\r\n/g, "<br>").replace(/\n/g, "<br>");
|
|
22643
22652
|
i += `<span class="luckysheet-input-span" index='${l}' style='${b}'${_}>${T}</span>`;
|
|
@@ -22650,7 +22659,7 @@ function ql(e, t, r, a) {
|
|
|
22650
22659
|
}
|
|
22651
22660
|
return "";
|
|
22652
22661
|
}
|
|
22653
|
-
function
|
|
22662
|
+
function Yd(e, t, r) {
|
|
22654
22663
|
let a = "";
|
|
22655
22664
|
if (e.toString().indexOf("pt") > -1) {
|
|
22656
22665
|
const o = parseFloat(e);
|
|
@@ -22662,7 +22671,7 @@ function Wd(e, t, r) {
|
|
|
22662
22671
|
let n = 0;
|
|
22663
22672
|
return t = t.toLowerCase(), t === "double" ? n = 2 : t === "dotted" ? a === "Medium" || a === "Thick" ? n = 3 : n = 10 : t === "dashed" ? a === "Medium" || a === "Thick" ? n = 4 : n = 9 : t === "solid" && (a === "Medium" ? n = 8 : a === "Thick" ? n = 13 : n = 1), [n, r];
|
|
22664
22673
|
}
|
|
22665
|
-
function
|
|
22674
|
+
function pf(e, t, r) {
|
|
22666
22675
|
if (t == null && e.luckysheet_select_save && ([t] = e.luckysheet_select_save), !t) return [];
|
|
22667
22676
|
if (t.row == null || t.row.length === 0)
|
|
22668
22677
|
return [];
|
|
@@ -22679,12 +22688,12 @@ function mf(e, t, r) {
|
|
|
22679
22688
|
}
|
|
22680
22689
|
return o;
|
|
22681
22690
|
}
|
|
22682
|
-
function
|
|
22691
|
+
function jd(e, t, r) {
|
|
22683
22692
|
var o;
|
|
22684
22693
|
const a = Ie(e), n = (o = a == null ? void 0 : a[t]) == null ? void 0 : o[r];
|
|
22685
|
-
(n == null ? void 0 : n.f) != null && String(n.f).trim() !== "" &&
|
|
22694
|
+
(n == null ? void 0 : n.f) != null && String(n.f).trim() !== "" && wu(e), e.luckysheetCellUpdate = [t, r];
|
|
22686
22695
|
}
|
|
22687
|
-
function
|
|
22696
|
+
function gf(e, t) {
|
|
22688
22697
|
if (!t || !t.row || t.row.length === 0) return [];
|
|
22689
22698
|
const r = [], a = Ie(e);
|
|
22690
22699
|
if (!a) return [];
|
|
@@ -22728,7 +22737,7 @@ function Ia(e) {
|
|
|
22728
22737
|
...n != null && typeof n == "object" ? { ct: n } : {}
|
|
22729
22738
|
} : null;
|
|
22730
22739
|
}
|
|
22731
|
-
function
|
|
22740
|
+
function Xd(e) {
|
|
22732
22741
|
var i;
|
|
22733
22742
|
const t = Fe(e, e.currentSheetId);
|
|
22734
22743
|
if (t == null) return;
|
|
@@ -22757,7 +22766,7 @@ function Gd(e) {
|
|
|
22757
22766
|
}
|
|
22758
22767
|
}), (i = e == null ? void 0 : e.hooks) != null && i.updateCellYdoc && r.size > 0 && e.hooks.updateCellYdoc(Array.from(r.values()));
|
|
22759
22768
|
}
|
|
22760
|
-
function
|
|
22769
|
+
function Zd(e) {
|
|
22761
22770
|
var l, c;
|
|
22762
22771
|
const t = Fe(e, e.currentSheetId);
|
|
22763
22772
|
if (t == null) return;
|
|
@@ -22786,7 +22795,7 @@ function Yd(e) {
|
|
|
22786
22795
|
}
|
|
22787
22796
|
}), (c = e == null ? void 0 : e.hooks) != null && c.updateCellYdoc && r.size > 0 && e.hooks.updateCellYdoc(Array.from(r.values()));
|
|
22788
22797
|
}
|
|
22789
|
-
function
|
|
22798
|
+
function Kd(e) {
|
|
22790
22799
|
var l;
|
|
22791
22800
|
const t = Fe(e, e.currentSheetId);
|
|
22792
22801
|
if (t == null) return;
|
|
@@ -22815,7 +22824,7 @@ function jd(e) {
|
|
|
22815
22824
|
}
|
|
22816
22825
|
}), (l = e == null ? void 0 : e.hooks) != null && l.updateCellYdoc && r.size > 0 && e.hooks.updateCellYdoc(Array.from(r.values()));
|
|
22817
22826
|
}
|
|
22818
|
-
class
|
|
22827
|
+
class yf {
|
|
22819
22828
|
static writeHtml(t) {
|
|
22820
22829
|
var r;
|
|
22821
22830
|
try {
|
|
@@ -22833,7 +22842,7 @@ class pf {
|
|
|
22833
22842
|
}
|
|
22834
22843
|
}
|
|
22835
22844
|
}
|
|
22836
|
-
function
|
|
22845
|
+
function Qd(e, t, r, a, n) {
|
|
22837
22846
|
var Z, J, se, V, Q;
|
|
22838
22847
|
const o = Ie(e);
|
|
22839
22848
|
if (!o) return;
|
|
@@ -22873,7 +22882,7 @@ function Kt(e, t, r) {
|
|
|
22873
22882
|
const a = Ie(e);
|
|
22874
22883
|
(n = a == null ? void 0 : a[t]) != null && n[r] && delete a[t][r].error;
|
|
22875
22884
|
}
|
|
22876
|
-
function
|
|
22885
|
+
function bf(e) {
|
|
22877
22886
|
const t = e.hooks;
|
|
22878
22887
|
!(t != null && t.dataVerificationChange) && !(t != null && t.conditionFormatChange) && !(t != null && t.hyperlinkChange) || requestAnimationFrame(() => {
|
|
22879
22888
|
requestAnimationFrame(() => {
|
|
@@ -22882,10 +22891,10 @@ function gf(e) {
|
|
|
22882
22891
|
});
|
|
22883
22892
|
});
|
|
22884
22893
|
}
|
|
22885
|
-
const
|
|
22894
|
+
const Jd = {
|
|
22886
22895
|
isPasteAction: !1,
|
|
22887
22896
|
isPasteValuesOnly: !1
|
|
22888
|
-
},
|
|
22897
|
+
}, wf = 14e5;
|
|
22889
22898
|
function Cn(e, t, r) {
|
|
22890
22899
|
var u, f, m, d;
|
|
22891
22900
|
const { scrollLeft: a, scrollTop: n } = e, o = e.cellmainHeight, i = e.cellmainWidth, l = Fe(e, e.currentSheetId), c = l == null ? null : e.luckysheetfile[l];
|
|
@@ -22910,7 +22919,7 @@ function Cn(e, t, r) {
|
|
|
22910
22919
|
}
|
|
22911
22920
|
}
|
|
22912
22921
|
}
|
|
22913
|
-
function
|
|
22922
|
+
function vf(e, t, r, a, n) {
|
|
22914
22923
|
const o = e.visibledatarow[r], i = t - 1 === -1 ? 0 : e.visibledatarow[t - 1], l = e.visibledatacolumn[n], c = a - 1 === -1 ? 0 : e.visibledatacolumn[a - 1];
|
|
22915
22924
|
return h.isNumber(o) && h.isNumber(i) && h.isNumber(l) && h.isNumber(c) ? {
|
|
22916
22925
|
left: c,
|
|
@@ -22919,7 +22928,7 @@ function bf(e, t, r, a, n) {
|
|
|
22919
22928
|
height: o - i - 1
|
|
22920
22929
|
} : null;
|
|
22921
22930
|
}
|
|
22922
|
-
function
|
|
22931
|
+
function _f(e, t) {
|
|
22923
22932
|
var c;
|
|
22924
22933
|
const r = Math.min(t.row[0], t.row[1]), a = Math.max(t.row[0], t.row[1]), n = Math.min(t.column[0], t.column[1]), o = Math.max(t.column[0], t.column[1]);
|
|
22925
22934
|
if (r === a && n === o)
|
|
@@ -22940,7 +22949,7 @@ function Ho(e, t) {
|
|
|
22940
22949
|
e.primaryCellActive = null;
|
|
22941
22950
|
return;
|
|
22942
22951
|
}
|
|
22943
|
-
if (
|
|
22952
|
+
if (_f(e, a)) {
|
|
22944
22953
|
e.primaryCellActive = null;
|
|
22945
22954
|
return;
|
|
22946
22955
|
}
|
|
@@ -22951,7 +22960,7 @@ function Ho(e, t) {
|
|
|
22951
22960
|
e.primaryCellActive = { r: o, c: i };
|
|
22952
22961
|
}
|
|
22953
22962
|
}
|
|
22954
|
-
function
|
|
22963
|
+
function em(e, t = !0) {
|
|
22955
22964
|
const r = e.luckysheet_select_save;
|
|
22956
22965
|
if (!(r != null && r.length)) return !1;
|
|
22957
22966
|
const a = r[r.length - 1], n = a.row[0], o = a.row[1], i = a.column[0], l = a.column[1];
|
|
@@ -22963,10 +22972,10 @@ function Kd(e, t = !0) {
|
|
|
22963
22972
|
let y, b;
|
|
22964
22973
|
return t ? d < s ? (y = d + 1, b = p) : p < f ? (y = c, b = p + 1) : (y = c, b = u) : d > c ? (y = d - 1, b = p) : p > u ? (y = s, b = p - 1) : (y = s, b = f), a.row_focus = y, a.column_focus = b, Jt(e, r), !0;
|
|
22965
22974
|
}
|
|
22966
|
-
function
|
|
22975
|
+
function tm(e, t, r) {
|
|
22967
22976
|
e.primaryCellActive = { r: t, c: r };
|
|
22968
22977
|
}
|
|
22969
|
-
function
|
|
22978
|
+
function nm(e, t, r) {
|
|
22970
22979
|
const a = e.luckysheet_select_save, n = a == null ? void 0 : a[a.length - 1];
|
|
22971
22980
|
if (!(n != null && n.row) || n.row.length < 2 || !n.column || n.column.length < 2) {
|
|
22972
22981
|
e.luckysheet_select_save = [
|
|
@@ -22989,7 +22998,7 @@ function Jd(e, t, r) {
|
|
|
22989
22998
|
}
|
|
22990
22999
|
], Jt(e, e.luckysheet_select_save));
|
|
22991
23000
|
}
|
|
22992
|
-
function
|
|
23001
|
+
function rm(e) {
|
|
22993
23002
|
var t, r, a, n;
|
|
22994
23003
|
return (r = (t = e == null ? void 0 : e[0]) == null ? void 0 : t[0]) != null && r.mc && !h.isNil((a = e[0][0].mc) == null ? void 0 : a.rs) && !h.isNil((n = e[0][0].mc) == null ? void 0 : n.cs) ? [
|
|
22995
23004
|
{
|
|
@@ -23016,13 +23025,13 @@ function Jt(e, t) {
|
|
|
23016
23025
|
}
|
|
23017
23026
|
return Ho(e, t), t;
|
|
23018
23027
|
}
|
|
23019
|
-
function
|
|
23028
|
+
function am(e, t, r) {
|
|
23020
23029
|
const a = e || {};
|
|
23021
23030
|
for (let n = t; n <= r; n += 1)
|
|
23022
23031
|
n in a || (a[n] = 0);
|
|
23023
23032
|
return a;
|
|
23024
23033
|
}
|
|
23025
|
-
function
|
|
23034
|
+
function im(e) {
|
|
23026
23035
|
const t = Object.keys(e).map(Number);
|
|
23027
23036
|
t.sort((n, o) => n - o);
|
|
23028
23037
|
let r, a = [];
|
|
@@ -23034,7 +23043,7 @@ function nm(e) {
|
|
|
23034
23043
|
r = [], r.push([t[0]]);
|
|
23035
23044
|
return r;
|
|
23036
23045
|
}
|
|
23037
|
-
function
|
|
23046
|
+
function Tf(e, t) {
|
|
23038
23047
|
return e.row[0] === t.row[0] && e.row[1] === t.row[1] && e.column[0] === t.column[0] && e.column[1] === t.column[1];
|
|
23039
23048
|
}
|
|
23040
23049
|
function Uo(e) {
|
|
@@ -23042,12 +23051,12 @@ function Uo(e) {
|
|
|
23042
23051
|
const t = h.cloneDeep(e);
|
|
23043
23052
|
return delete t.cellrange, JSON.stringify(t);
|
|
23044
23053
|
}
|
|
23045
|
-
function
|
|
23054
|
+
function om(e, t) {
|
|
23046
23055
|
var B, re;
|
|
23047
23056
|
const r = e.config;
|
|
23048
23057
|
if (r.merge == null && (r.merge = {}), !t) return;
|
|
23049
23058
|
const a = t.HasMC, n = t.dataSheetId, o = t.copyRange[0].row[0], i = t.copyRange[0].row[1], l = t.copyRange[0].column[0], c = t.copyRange[0].column[1], s = h.cloneDeep(
|
|
23050
|
-
|
|
23059
|
+
pf(
|
|
23051
23060
|
e,
|
|
23052
23061
|
{ row: [o, i], column: [l, c] },
|
|
23053
23062
|
n
|
|
@@ -23183,7 +23192,7 @@ function rm(e, t) {
|
|
|
23183
23192
|
const W = oe[K].cellrange;
|
|
23184
23193
|
let ce = [];
|
|
23185
23194
|
for (let ye = 0; ye < W.length; ye += 1) {
|
|
23186
|
-
const M =
|
|
23195
|
+
const M = Yu(
|
|
23187
23196
|
W[ye],
|
|
23188
23197
|
{ row: [o, i], column: [l, c] },
|
|
23189
23198
|
{ row: [f, m], column: [d, p] },
|
|
@@ -23198,7 +23207,7 @@ function rm(e, t) {
|
|
|
23198
23207
|
if ($ >= 0) {
|
|
23199
23208
|
const A = h.cloneDeep(X[$]);
|
|
23200
23209
|
Array.isArray(A.cellrange) || (A.cellrange = []), A.cellrange.some(
|
|
23201
|
-
(F) =>
|
|
23210
|
+
(F) => Tf(F, ye)
|
|
23202
23211
|
) || A.cellrange.push({ ...ye }), X[$] = A;
|
|
23203
23212
|
} else {
|
|
23204
23213
|
const A = h.cloneDeep(oe[K]);
|
|
@@ -23209,9 +23218,9 @@ function rm(e, t) {
|
|
|
23209
23218
|
V.luckysheet_conditionformat_save = X;
|
|
23210
23219
|
}
|
|
23211
23220
|
}
|
|
23212
|
-
|
|
23221
|
+
bf(e);
|
|
23213
23222
|
}
|
|
23214
|
-
function
|
|
23223
|
+
function lm(e, t) {
|
|
23215
23224
|
e == null && (e = t.luckysheet_selection_range), e = JSON.parse(JSON.stringify(e));
|
|
23216
23225
|
}
|
|
23217
23226
|
function xt(e, t, r, a) {
|
|
@@ -23322,7 +23331,7 @@ function Ut(e, t, r, a) {
|
|
|
23322
23331
|
l = o;
|
|
23323
23332
|
return [i, l];
|
|
23324
23333
|
}
|
|
23325
|
-
function
|
|
23334
|
+
function sm(e, t, r, a) {
|
|
23326
23335
|
var g;
|
|
23327
23336
|
const n = Ie(e);
|
|
23328
23337
|
if (!n) return;
|
|
@@ -23400,7 +23409,7 @@ function im(e, t, r, a) {
|
|
|
23400
23409
|
}, Cn(e, s, d);
|
|
23401
23410
|
}
|
|
23402
23411
|
}
|
|
23403
|
-
function
|
|
23412
|
+
function cm(e, t, r, a) {
|
|
23404
23413
|
let n, o, i, l;
|
|
23405
23414
|
const c = Ie(e);
|
|
23406
23415
|
if (!h.isNil(c) && !h.isNil(e.luckysheet_select_save)) {
|
|
@@ -23608,7 +23617,7 @@ function At(e, t) {
|
|
|
23608
23617
|
13: "Thick"
|
|
23609
23618
|
}[e.toString()], e.indexOf("Medium") > -1 ? r += "1pt " : e === "Thick" ? r += "1.5pt " : r += "0.5pt ", e === "Hair" ? r += "double " : e.indexOf("DashDotDot") > -1 ? r += "dotted " : e.indexOf("DashDot") > -1 ? r += "dashed " : e.indexOf("Dotted") > -1 ? r += "dotted " : e.indexOf("Dashed") > -1 ? r += "dashed " : r += "solid ", `${r + t};`;
|
|
23610
23619
|
}
|
|
23611
|
-
function
|
|
23620
|
+
function $f(e, t, r, a) {
|
|
23612
23621
|
var w, _;
|
|
23613
23622
|
const n = (a == null ? void 0 : a.includeCellMetadata) ?? !1, o = (a == null ? void 0 : a.preferRichText) ?? !1, i = (a == null ? void 0 : a.respectFilterHiddenRows) ?? !1, l = Nl(e), c = /* @__PURE__ */ new Set();
|
|
23614
23623
|
i && t === e.currentSheetId && !h.isNil(e.luckysheet_filter_save) && !h.isEmpty(e.filter) && Object.values(e.filter || {}).forEach((T) => {
|
|
@@ -23777,7 +23786,7 @@ function _f(e, t, r, a) {
|
|
|
23777
23786
|
}
|
|
23778
23787
|
return `<table data-type="fortune-copy-action-table">${y}${p}</table>`;
|
|
23779
23788
|
}
|
|
23780
|
-
function
|
|
23789
|
+
function um(e) {
|
|
23781
23790
|
var g, y, b, w;
|
|
23782
23791
|
const t = Ie(e);
|
|
23783
23792
|
e.lastInternalCopyHtmlMetadataStripped = !1, e.luckysheet_selection_range = [];
|
|
@@ -23847,7 +23856,7 @@ function lm(e) {
|
|
|
23847
23856
|
) : "";
|
|
23848
23857
|
f = `<table data-type="fortune-copy-action-table"><tr><td style="white-space: pre-line; ${Z}" data-fortune-cell="${se}">${J}</td></tr></table>`;
|
|
23849
23858
|
} else
|
|
23850
|
-
f =
|
|
23859
|
+
f = $f(
|
|
23851
23860
|
e,
|
|
23852
23861
|
e.currentSheetId,
|
|
23853
23862
|
e.luckysheet_select_save,
|
|
@@ -23858,9 +23867,9 @@ function lm(e) {
|
|
|
23858
23867
|
}
|
|
23859
23868
|
), f = f === null ? f : f.replace('<td style="', '<td style="white-space: pre-line; ');
|
|
23860
23869
|
let p = !1;
|
|
23861
|
-
f && u && f.length >
|
|
23870
|
+
f && u && f.length > wf && (p = !0, f = f.replace(/\sdata-fortune-cell="[^"]*"/g, "")), f && (e.iscopyself = !0, e.lastInternalCopyHtmlMetadataStripped = p, yf.writeHtml(f));
|
|
23862
23871
|
}
|
|
23863
|
-
function
|
|
23872
|
+
function fm(e) {
|
|
23864
23873
|
var a, n, o, i, l, c, s, u;
|
|
23865
23874
|
if (Gt(e) === !1 || e.isFlvReadOnly)
|
|
23866
23875
|
return "allowEdit";
|
|
@@ -23913,7 +23922,7 @@ function sm(e) {
|
|
|
23913
23922
|
}
|
|
23914
23923
|
return "success";
|
|
23915
23924
|
}
|
|
23916
|
-
function
|
|
23925
|
+
function dm(e) {
|
|
23917
23926
|
var a;
|
|
23918
23927
|
if (Gt(e) === !1)
|
|
23919
23928
|
return "allowEdit";
|
|
@@ -23951,7 +23960,7 @@ function cm(e) {
|
|
|
23951
23960
|
}
|
|
23952
23961
|
return "success";
|
|
23953
23962
|
}
|
|
23954
|
-
function
|
|
23963
|
+
function mm(e) {
|
|
23955
23964
|
var a, n, o;
|
|
23956
23965
|
if (Gt(e) === !1)
|
|
23957
23966
|
return "allowEdit";
|
|
@@ -24058,7 +24067,7 @@ function um(e) {
|
|
|
24058
24067
|
}
|
|
24059
24068
|
return "success";
|
|
24060
24069
|
}
|
|
24061
|
-
function
|
|
24070
|
+
function hm(e) {
|
|
24062
24071
|
var a, n, o;
|
|
24063
24072
|
if (Gt(e) === !1)
|
|
24064
24073
|
return "allowEdit";
|
|
@@ -24165,7 +24174,7 @@ function fm(e) {
|
|
|
24165
24174
|
}
|
|
24166
24175
|
return "success";
|
|
24167
24176
|
}
|
|
24168
|
-
function
|
|
24177
|
+
function pm(e, t) {
|
|
24169
24178
|
var n;
|
|
24170
24179
|
if (Gt(e) === !1)
|
|
24171
24180
|
return "allowEdit";
|
|
@@ -24203,7 +24212,7 @@ function dm(e, t) {
|
|
|
24203
24212
|
}
|
|
24204
24213
|
return "success";
|
|
24205
24214
|
}
|
|
24206
|
-
function
|
|
24215
|
+
function gm(e) {
|
|
24207
24216
|
var a;
|
|
24208
24217
|
if (Gt(e) === !1)
|
|
24209
24218
|
return "allowEdit";
|
|
@@ -24246,7 +24255,7 @@ function mm(e) {
|
|
|
24246
24255
|
}
|
|
24247
24256
|
return "success";
|
|
24248
24257
|
}
|
|
24249
|
-
function
|
|
24258
|
+
function ym(e) {
|
|
24250
24259
|
var a;
|
|
24251
24260
|
if (Gt(e) === !1)
|
|
24252
24261
|
return "allowEdit";
|
|
@@ -24288,7 +24297,7 @@ function hm(e) {
|
|
|
24288
24297
|
}
|
|
24289
24298
|
return "success";
|
|
24290
24299
|
}
|
|
24291
|
-
function
|
|
24300
|
+
function bm(e) {
|
|
24292
24301
|
var a;
|
|
24293
24302
|
if (Gt(e) === !1)
|
|
24294
24303
|
return "allowEdit";
|
|
@@ -24331,10 +24340,10 @@ function pm(e) {
|
|
|
24331
24340
|
}
|
|
24332
24341
|
return "success";
|
|
24333
24342
|
}
|
|
24334
|
-
function
|
|
24343
|
+
function wm(e, t) {
|
|
24335
24344
|
return !1;
|
|
24336
24345
|
}
|
|
24337
|
-
function
|
|
24346
|
+
function vm(e) {
|
|
24338
24347
|
const t = Ie(e);
|
|
24339
24348
|
t && (e.luckysheet_select_status = !1, e.luckysheet_select_save = [
|
|
24340
24349
|
{
|
|
@@ -24347,7 +24356,7 @@ function ym(e) {
|
|
|
24347
24356
|
}
|
|
24348
24357
|
], Jt(e, e.luckysheet_select_save));
|
|
24349
24358
|
}
|
|
24350
|
-
function
|
|
24359
|
+
function _m(e, t, r, a) {
|
|
24351
24360
|
var c;
|
|
24352
24361
|
if (!a) return {};
|
|
24353
24362
|
const n = {}, { scrollTop: o } = e, i = (c = a.horizontal) == null ? void 0 : c.freezenhorizontaldata;
|
|
@@ -24358,7 +24367,7 @@ function bm(e, t, r, a) {
|
|
|
24358
24367
|
}
|
|
24359
24368
|
return l || (n.display = "none"), n;
|
|
24360
24369
|
}
|
|
24361
|
-
function
|
|
24370
|
+
function Tm(e, t, r, a) {
|
|
24362
24371
|
var c;
|
|
24363
24372
|
if (!a) return {};
|
|
24364
24373
|
const n = {}, { scrollLeft: o } = e, i = (c = a.vertical) == null ? void 0 : c.freezenverticaldata;
|
|
@@ -24369,12 +24378,12 @@ function wm(e, t, r, a) {
|
|
|
24369
24378
|
}
|
|
24370
24379
|
return l || (n.display = "none"), n;
|
|
24371
24380
|
}
|
|
24372
|
-
function
|
|
24381
|
+
function $m(e) {
|
|
24373
24382
|
var c, s, u, f, m, d, p, g, y, b, w, _, T, v, x, C, I, k;
|
|
24374
24383
|
const t = e.luckysheet_select_save;
|
|
24375
24384
|
let r = 0, a = 0, n = 0, o = -1 / 0, i = 1 / 0;
|
|
24376
24385
|
for (let O = 0; O < t.length; O += 1) {
|
|
24377
|
-
const U =
|
|
24386
|
+
const U = gf(e, t[O]);
|
|
24378
24387
|
for (let Z = 0; Z < U.length; Z += 1)
|
|
24379
24388
|
for (let J = 0; J < U[0].length && !(Z >= U.length || J >= U[0].length); J += 1) {
|
|
24380
24389
|
const se = (s = (c = U[Z][J]) == null ? void 0 : c.ct) == null ? void 0 : s.t;
|
|
@@ -24388,7 +24397,7 @@ function vm(e) {
|
|
|
24388
24397
|
const l = String(n / r);
|
|
24389
24398
|
return { numberC: r, count: a, sum: n, max: o, min: i, average: l };
|
|
24390
24399
|
}
|
|
24391
|
-
function
|
|
24400
|
+
function Cm(e, t, r) {
|
|
24392
24401
|
var l, c;
|
|
24393
24402
|
const a = Ie(e);
|
|
24394
24403
|
if (!(a != null && a.length) || !((l = a[0]) != null && l.length)) return;
|
|
@@ -24397,12 +24406,12 @@ function _m(e, t, r) {
|
|
|
24397
24406
|
const o = Math.max(0, Math.min(t, a.length - 1)), i = Math.max(0, Math.min(r, a[0].length - 1));
|
|
24398
24407
|
n.row = [o, o], n.column = [i, i], n.row_focus = o, n.column_focus = i, n.moveXY = { x: o, y: i }, Jt(e, e.luckysheet_select_save), Cn(e, o, i);
|
|
24399
24408
|
}
|
|
24400
|
-
function
|
|
24409
|
+
function Nm(e, t, r) {
|
|
24401
24410
|
var s;
|
|
24402
24411
|
if (!Gt(e)) return !1;
|
|
24403
24412
|
const a = e.luckysheet_select_save;
|
|
24404
24413
|
if (!(a != null && a.length)) return !1;
|
|
24405
|
-
e.luckysheetCellUpdate.length > 0 &&
|
|
24414
|
+
e.luckysheetCellUpdate.length > 0 && sf(
|
|
24406
24415
|
e,
|
|
24407
24416
|
e.luckysheetCellUpdate[0],
|
|
24408
24417
|
e.luckysheetCellUpdate[1],
|
|
@@ -24423,7 +24432,7 @@ function Tm(e, t, r) {
|
|
|
24423
24432
|
}
|
|
24424
24433
|
return !0;
|
|
24425
24434
|
}
|
|
24426
|
-
function
|
|
24435
|
+
function Am(e) {
|
|
24427
24436
|
return {
|
|
24428
24437
|
luckysheetfile: [],
|
|
24429
24438
|
defaultcolumnNum: 60,
|
|
@@ -24693,7 +24702,7 @@ function $m(e) {
|
|
|
24693
24702
|
formulaAsyncEval: null,
|
|
24694
24703
|
isFormulaCalculating: !1,
|
|
24695
24704
|
formulaRangeNavRevision: 0,
|
|
24696
|
-
formulaCache: new
|
|
24705
|
+
formulaCache: new Qc(),
|
|
24697
24706
|
// class will not be frozen by immer, can be mutated at any time.
|
|
24698
24707
|
hooks: {},
|
|
24699
24708
|
showQuickSearch: !1,
|
|
@@ -24713,7 +24722,7 @@ function Ie(e, t) {
|
|
|
24713
24722
|
const r = Fe(e, t || e.currentSheetId);
|
|
24714
24723
|
return h.isNil(r) ? null : (n = (a = e.luckysheetfile) == null ? void 0 : a[r]) == null ? void 0 : n.data;
|
|
24715
24724
|
}
|
|
24716
|
-
function
|
|
24725
|
+
function Cf(e, t, r) {
|
|
24717
24726
|
var o, i, l, c, s, u, f, m, d, p, g;
|
|
24718
24727
|
e.visibledatarow = [], e.rh_height = 0;
|
|
24719
24728
|
for (let y = 0; y < t; y += 1) {
|
|
@@ -24738,7 +24747,7 @@ function Tf(e, t, r) {
|
|
|
24738
24747
|
}
|
|
24739
24748
|
e.ch_width += a;
|
|
24740
24749
|
}
|
|
24741
|
-
function
|
|
24750
|
+
function Sm(e, t) {
|
|
24742
24751
|
if ((e == null ? void 0 : e.length) > 0) {
|
|
24743
24752
|
let r = !1;
|
|
24744
24753
|
const a = [];
|
|
@@ -24747,7 +24756,7 @@ function Cm(e, t) {
|
|
|
24747
24756
|
}), r || (e[0].status = 1);
|
|
24748
24757
|
}
|
|
24749
24758
|
}
|
|
24750
|
-
function
|
|
24759
|
+
function xm(e) {
|
|
24751
24760
|
const t = e.luckysheetfile.filter(
|
|
24752
24761
|
(r) => h.isUndefined(r.hide) || r.hide !== 1
|
|
24753
24762
|
);
|
|
@@ -24758,11 +24767,11 @@ function Nm(e) {
|
|
|
24758
24767
|
break;
|
|
24759
24768
|
}
|
|
24760
24769
|
}
|
|
24761
|
-
function
|
|
24770
|
+
function Em(e, t) {
|
|
24762
24771
|
const r = t.length, a = r === 0 ? 0 : t[0].length;
|
|
24763
|
-
|
|
24772
|
+
Cf(e, r, a), Jt(e, e.luckysheet_select_save);
|
|
24764
24773
|
}
|
|
24765
|
-
function
|
|
24774
|
+
function km(e, t, r) {
|
|
24766
24775
|
e.luckysheetTableContentHW = [
|
|
24767
24776
|
r.clientWidth,
|
|
24768
24777
|
r.clientHeight
|
|
@@ -24772,7 +24781,7 @@ function Sm(e, t, r) {
|
|
|
24772
24781
|
e.luckysheetTableContentHW[1] * e.devicePixelRatio
|
|
24773
24782
|
);
|
|
24774
24783
|
}
|
|
24775
|
-
function
|
|
24784
|
+
function Nf(e, t, r, a, n, o) {
|
|
24776
24785
|
var f, m, d, p, g, y, b, w, _, T, v, x, C, I, k, O, U, Z, J, se, V, Q, B, re, oe, be, fe, X, K, W, ce, ye, M, $, A, F, N, G, E, H, L, pe, de, te, ve, we, Te, xe, me, ue, He, Ue, Me, ge, D, q, Y, P, z, he, _e, Ne, j, le, qe, Se, Ee, ke, We, Be, Ye, Pt, Yt, Ot, 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, Ai, Si, xi, Ei, ki, Ri, Mi, qi, 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, co, uo, fo, mo, ho;
|
|
24777
24786
|
const i = {}, l = Ie(e);
|
|
24778
24787
|
let c, s;
|
|
@@ -25540,7 +25549,7 @@ function Il(e, t) {
|
|
|
25540
25549
|
else
|
|
25541
25550
|
return r;
|
|
25542
25551
|
}
|
|
25543
|
-
return r =
|
|
25552
|
+
return r = Nf(
|
|
25544
25553
|
e,
|
|
25545
25554
|
0,
|
|
25546
25555
|
n.length,
|
|
@@ -25600,7 +25609,7 @@ const Ol = (e, t) => {
|
|
|
25600
25609
|
const t = { ...e };
|
|
25601
25610
|
return delete t.v, delete t.m, delete t.f, delete t.ps, delete t.hl, t;
|
|
25602
25611
|
};
|
|
25603
|
-
function
|
|
25612
|
+
function Af(e, t, r, a) {
|
|
25604
25613
|
var i, l, c;
|
|
25605
25614
|
const n = [], o = e[t];
|
|
25606
25615
|
if (!o || !e[0]) return n;
|
|
@@ -25620,7 +25629,7 @@ function Cf(e, t, r, a) {
|
|
|
25620
25629
|
}
|
|
25621
25630
|
return n;
|
|
25622
25631
|
}
|
|
25623
|
-
function
|
|
25632
|
+
function Sf(e, t, r, a) {
|
|
25624
25633
|
var o, i, l;
|
|
25625
25634
|
const n = [];
|
|
25626
25635
|
for (let c = 0; c < e.length; c += 1) {
|
|
@@ -25685,7 +25694,7 @@ const Ll = (e) => {
|
|
|
25685
25694
|
}
|
|
25686
25695
|
}
|
|
25687
25696
|
};
|
|
25688
|
-
function
|
|
25697
|
+
function xf(e, t, r = !0) {
|
|
25689
25698
|
var X, K, W, ce, ye, M, $, A, F, N, G, E, H, L, pe, de, te, ve, we, Te, xe, me, ue, He, Ue, Me, ge;
|
|
25690
25699
|
let { count: a, id: n } = t;
|
|
25691
25700
|
const { type: o, index: i, direction: l, templateSourceRows: c, templateSourceColumns: s } = t;
|
|
@@ -25973,7 +25982,7 @@ function Af(e, t, r = !0) {
|
|
|
25973
25982
|
}
|
|
25974
25983
|
const Se = [];
|
|
25975
25984
|
for (let Ee = 0; Ee < a; Ee += 1) {
|
|
25976
|
-
const ke = g ? b : i, We =
|
|
25985
|
+
const ke = g ? b : i, We = Af(m, ke, a, l);
|
|
25977
25986
|
Se.push(JSON.stringify(We));
|
|
25978
25987
|
let Be = [];
|
|
25979
25988
|
g ? Be = D.filter(
|
|
@@ -26032,7 +26041,7 @@ function Af(e, t, r = !0) {
|
|
|
26032
26041
|
for (let j = 0; j < a; j += 1) {
|
|
26033
26042
|
const le = y ? w : i;
|
|
26034
26043
|
_e.push(
|
|
26035
|
-
|
|
26044
|
+
Sf(m, le, a, l)
|
|
26036
26045
|
);
|
|
26037
26046
|
}
|
|
26038
26047
|
const Ne = [];
|
|
@@ -26533,7 +26542,7 @@ function Bl(e, t) {
|
|
|
26533
26542
|
$.length > 0 && (e.formulaCache.execFunctionExist = $, Yn(e, null, null, null, null, Ie(e)), e.formulaCache.execFunctionExist = void 0);
|
|
26534
26543
|
}
|
|
26535
26544
|
}
|
|
26536
|
-
function
|
|
26545
|
+
function Rm(e, t) {
|
|
26537
26546
|
if (!e.luckysheet_select_save || e.luckysheet_select_save.length > 1)
|
|
26538
26547
|
return "noMulti";
|
|
26539
26548
|
const r = Fe(e, e.currentSheetId);
|
|
@@ -26555,7 +26564,7 @@ function xm(e, t) {
|
|
|
26555
26564
|
}
|
|
26556
26565
|
return e.luckysheetfile[r].config = e.config, "";
|
|
26557
26566
|
}
|
|
26558
|
-
function
|
|
26567
|
+
function Mm(e, t) {
|
|
26559
26568
|
if (!e.luckysheet_select_save || e.luckysheet_select_save.length > 1)
|
|
26560
26569
|
return "noMulti";
|
|
26561
26570
|
const r = Fe(e, e.currentSheetId);
|
|
@@ -26573,7 +26582,7 @@ function Em(e, t) {
|
|
|
26573
26582
|
}
|
|
26574
26583
|
return e.luckysheetfile[r].config = e.config, "";
|
|
26575
26584
|
}
|
|
26576
|
-
function
|
|
26585
|
+
function qm(e) {
|
|
26577
26586
|
var t, r, a, n;
|
|
26578
26587
|
if (!e.luckysheet_select_save || !e.config.colhidden && !e.config.rowhidden)
|
|
26579
26588
|
return !1;
|
|
@@ -26589,7 +26598,7 @@ function km(e) {
|
|
|
26589
26598
|
}
|
|
26590
26599
|
return !1;
|
|
26591
26600
|
}
|
|
26592
|
-
function
|
|
26601
|
+
function Im(e, t) {
|
|
26593
26602
|
let r = 1;
|
|
26594
26603
|
if (!e.luckysheet_select_save) return 0;
|
|
26595
26604
|
const a = e.luckysheet_select_save[0], n = e.config.rowhidden ?? {}, o = e.config.colhidden ?? {};
|
|
@@ -26634,7 +26643,7 @@ function Rm(e, t) {
|
|
|
26634
26643
|
}
|
|
26635
26644
|
return r;
|
|
26636
26645
|
}
|
|
26637
|
-
function
|
|
26646
|
+
function Dm(e, t, r) {
|
|
26638
26647
|
let a = e.length;
|
|
26639
26648
|
const n = qt(r).pivotTable, { title: o } = n;
|
|
26640
26649
|
for (let i = 0; i < e.length; i += 1)
|
|
@@ -26646,7 +26655,7 @@ function Mm(e, t, r) {
|
|
|
26646
26655
|
}
|
|
26647
26656
|
return t ? o + (a + 1) : `Sheet${a + 1}`;
|
|
26648
26657
|
}
|
|
26649
|
-
function
|
|
26658
|
+
function Ef(e) {
|
|
26650
26659
|
let t;
|
|
26651
26660
|
e.indexOf("rgba") > -1 ? t = e.replace("rgba(", "").replace(")", "").split(",") : t = e.replace("rgb(", "").replace(")", "").split(",");
|
|
26652
26661
|
const r = Number(t[0]), a = Number(t[1]), n = Number(t[2]);
|
|
@@ -26667,7 +26676,7 @@ function vt(e) {
|
|
|
26667
26676
|
o = a(t[i]), n += o * 26 ** (r - i - 1);
|
|
26668
26677
|
return n === 0 ? NaN : n - 1;
|
|
26669
26678
|
}
|
|
26670
|
-
function
|
|
26679
|
+
function kf(e) {
|
|
26671
26680
|
return typeof e != "string" ? e : e.replace(/<script>/g, "<script>").replace(/<\/script>/, "</script>");
|
|
26672
26681
|
}
|
|
26673
26682
|
function Gn(e) {
|
|
@@ -26691,7 +26700,7 @@ function Er(e, t) {
|
|
|
26691
26700
|
const r = Fe(e, t);
|
|
26692
26701
|
return h.isNil(r) ? null : e.luckysheetfile[r];
|
|
26693
26702
|
}
|
|
26694
|
-
function
|
|
26703
|
+
function Om(e) {
|
|
26695
26704
|
const t = /* @__PURE__ */ new Date(), r = t.getFullYear();
|
|
26696
26705
|
let a = t.getMonth(), n = t.getDate(), o = t.getHours(), i = t.getMinutes(), l = t.getSeconds();
|
|
26697
26706
|
a += 1, a < 10 && (a = `0${a}`), n < 10 && (n = `0${n}`), o < 10 && (o = `0${o}`), i < 10 && (i = `0${i}`), l < 10 && (l = `0${l}`);
|
|
@@ -26704,10 +26713,10 @@ function Wo(e, t) {
|
|
|
26704
26713
|
return typeof n < "u" ? n : r;
|
|
26705
26714
|
});
|
|
26706
26715
|
}
|
|
26707
|
-
function
|
|
26716
|
+
function Lm(e) {
|
|
26708
26717
|
return e.replace("~*", "\\*").replace("~?", "\\?").replace(".", "\\.").replace("*", ".*").replace("?", ".");
|
|
26709
26718
|
}
|
|
26710
|
-
function
|
|
26719
|
+
function Fm(e) {
|
|
26711
26720
|
let n = "";
|
|
26712
26721
|
for (; e >= 0; )
|
|
26713
26722
|
n = String.fromCharCode(e % 26 + 97) + n, e = Math.floor(e / 26) - 1;
|
|
@@ -26730,7 +26739,7 @@ function Gt(e, t) {
|
|
|
26730
26739
|
return !0;
|
|
26731
26740
|
}) && (h.isUndefined(e.allowEdit) ? !0 : e.allowEdit) && !e.isFlvReadOnly;
|
|
26732
26741
|
}
|
|
26733
|
-
function
|
|
26742
|
+
function Rf(e, t) {
|
|
26734
26743
|
const r = e.config, a = h.isUndefined(t) ? e.luckysheet_select_save : t;
|
|
26735
26744
|
return h.every(a, (n) => {
|
|
26736
26745
|
var o, i;
|
|
@@ -26747,10 +26756,10 @@ function Ef(e, t) {
|
|
|
26747
26756
|
return !0;
|
|
26748
26757
|
}) && (h.isUndefined(e.isFlvReadOnly) ? !0 : e.isFlvReadOnly);
|
|
26749
26758
|
}
|
|
26750
|
-
function
|
|
26759
|
+
function Mf(e) {
|
|
26751
26760
|
return /^[a-zA-Z]\d+$/.test(e);
|
|
26752
26761
|
}
|
|
26753
|
-
function
|
|
26762
|
+
function qf(e) {
|
|
26754
26763
|
const t = document.createElement("div");
|
|
26755
26764
|
t.innerHTML = e;
|
|
26756
26765
|
const r = t.querySelectorAll("span");
|
|
@@ -26815,7 +26824,7 @@ function Hl(e, t, r) {
|
|
|
26815
26824
|
}
|
|
26816
26825
|
}), s || c;
|
|
26817
26826
|
}
|
|
26818
|
-
function
|
|
26827
|
+
function If(e, t) {
|
|
26819
26828
|
var o;
|
|
26820
26829
|
let r = "";
|
|
26821
26830
|
const a = e.includes("."), n = t;
|
|
@@ -26825,7 +26834,7 @@ function Mf(e, t) {
|
|
|
26825
26834
|
} else n ? r = "#,##0" : r = "General";
|
|
26826
26835
|
return r;
|
|
26827
26836
|
}
|
|
26828
|
-
const rn = new Error("invalid params"), Vo = new Error("sheet not found"),
|
|
26837
|
+
const rn = new Error("invalid params"), Vo = new Error("sheet not found"), Df = (e) => {
|
|
26829
26838
|
const t = [];
|
|
26830
26839
|
if (e == null)
|
|
26831
26840
|
return t;
|
|
@@ -26835,7 +26844,7 @@ const rn = new Error("invalid params"), Vo = new Error("sheet not found"), qf =
|
|
|
26835
26844
|
n != null && t.push({ r, c: a, v: n });
|
|
26836
26845
|
}
|
|
26837
26846
|
return t;
|
|
26838
|
-
},
|
|
26847
|
+
}, Bm = (e, t, r) => {
|
|
26839
26848
|
const a = h.maxBy(e, "r"), n = h.maxBy(e, "c");
|
|
26840
26849
|
let o = ((a == null ? void 0 : a.r) ?? 0) + 1, i = ((n == null ? void 0 : n.c) ?? 0) + 1;
|
|
26841
26850
|
if (t != null && r != null && t > 0 && r > 0 && (o = Math.max(o, t), i = Math.max(i, r)), o && i) {
|
|
@@ -26858,11 +26867,11 @@ function an(e, t = {}) {
|
|
|
26858
26867
|
throw Vo;
|
|
26859
26868
|
return a;
|
|
26860
26869
|
}
|
|
26861
|
-
function
|
|
26870
|
+
function Pm(e, t = {}) {
|
|
26862
26871
|
const r = an(e, t);
|
|
26863
|
-
return { ...r, celldata:
|
|
26872
|
+
return { ...r, celldata: Df(r.data) };
|
|
26864
26873
|
}
|
|
26865
|
-
function
|
|
26874
|
+
function Hm(e, t, r, a = {}) {
|
|
26866
26875
|
const n = an(e, a), i = {
|
|
26867
26876
|
row: "rangeRow",
|
|
26868
26877
|
column: "rangeColumn",
|
|
@@ -26877,12 +26886,12 @@ function Fm(e, t, r, a = {}) {
|
|
|
26877
26886
|
}
|
|
26878
26887
|
};
|
|
26879
26888
|
}
|
|
26880
|
-
function
|
|
26889
|
+
function Um(e, t, r, a, n, o = {}) {
|
|
26881
26890
|
if (!["row", "column"].includes(t) || !h.isNumber(r) || !h.isNumber(a) || !["lefttop", "rightbottom"].includes(n))
|
|
26882
26891
|
throw rn;
|
|
26883
26892
|
const i = an(e, o);
|
|
26884
26893
|
try {
|
|
26885
|
-
|
|
26894
|
+
xf(e, {
|
|
26886
26895
|
type: t,
|
|
26887
26896
|
index: r,
|
|
26888
26897
|
count: a,
|
|
@@ -26893,13 +26902,13 @@ function Bm(e, t, r, a, n, o = {}) {
|
|
|
26893
26902
|
console.error(l);
|
|
26894
26903
|
}
|
|
26895
26904
|
}
|
|
26896
|
-
function
|
|
26905
|
+
function zm(e, t, r, a, n = {}) {
|
|
26897
26906
|
if (!["row", "column"].includes(t) || !h.isNumber(r) || !h.isNumber(a))
|
|
26898
26907
|
throw rn;
|
|
26899
26908
|
const o = an(e, n);
|
|
26900
26909
|
Bl(e, { type: t, start: r, end: a, id: o.id });
|
|
26901
26910
|
}
|
|
26902
|
-
function
|
|
26911
|
+
function Wm(e, t, r) {
|
|
26903
26912
|
if (!["row", "column"].includes(r))
|
|
26904
26913
|
throw rn;
|
|
26905
26914
|
if (!e || !e.config) return;
|
|
@@ -26918,7 +26927,7 @@ function Hm(e, t, r) {
|
|
|
26918
26927
|
}
|
|
26919
26928
|
e.luckysheetfile[a].config = e.config;
|
|
26920
26929
|
}
|
|
26921
|
-
function
|
|
26930
|
+
function Vm(e, t, r) {
|
|
26922
26931
|
if (!["row", "column"].includes(r))
|
|
26923
26932
|
throw rn;
|
|
26924
26933
|
if (!e || !e.config) return;
|
|
@@ -26937,7 +26946,7 @@ function Um(e, t, r) {
|
|
|
26937
26946
|
}
|
|
26938
26947
|
e.luckysheetfile[a].config = e.config;
|
|
26939
26948
|
}
|
|
26940
|
-
function
|
|
26949
|
+
function Of(e, t, r = {}, a = !1) {
|
|
26941
26950
|
if (!h.isPlainObject(t))
|
|
26942
26951
|
throw rn;
|
|
26943
26952
|
const n = an(e, r), o = n.config || {};
|
|
@@ -26945,7 +26954,7 @@ function If(e, t, r = {}, a = !1) {
|
|
|
26945
26954
|
Number(l) >= 0 && Number(i) >= 0 && (o.rowlen[Number(l)] = Number(i), a && h.isUndefined(o.customHeight) ? o.customHeight = { [l]: 1 } : a && (o.customHeight[l] = 1));
|
|
26946
26955
|
}), n.config = o, e.currentSheetId === n.id && (e.config = o);
|
|
26947
26956
|
}
|
|
26948
|
-
function
|
|
26957
|
+
function Gm(e, t, r = {}, a = !1) {
|
|
26949
26958
|
if (!h.isPlainObject(t))
|
|
26950
26959
|
throw rn;
|
|
26951
26960
|
const n = an(e, r), o = n.config || {};
|
|
@@ -26953,7 +26962,7 @@ function zm(e, t, r = {}, a = !1) {
|
|
|
26953
26962
|
Number(l) >= 0 && Number(i) >= 0 && (o.columnlen[Number(l)] = Number(i), a && h.isUndefined(o.customWidth) ? o.customWidth = { [l]: 1 } : a && (o.customWidth[l] = 1));
|
|
26954
26963
|
}), n.config = o, e.currentSheetId === n.id && (e.config = o);
|
|
26955
26964
|
}
|
|
26956
|
-
function
|
|
26965
|
+
function Lf(e, t, r = {}) {
|
|
26957
26966
|
if (!h.isArray(t) || t.length === 0)
|
|
26958
26967
|
throw rn;
|
|
26959
26968
|
const o = (an(e, r).config || {}).rowlen || {}, i = {};
|
|
@@ -26964,7 +26973,7 @@ function Df(e, t, r = {}) {
|
|
|
26964
26973
|
}
|
|
26965
26974
|
}), i;
|
|
26966
26975
|
}
|
|
26967
|
-
function
|
|
26976
|
+
function Ym(e, t, r = {}) {
|
|
26968
26977
|
if (!h.isArray(t) || t.length === 0)
|
|
26969
26978
|
throw rn;
|
|
26970
26979
|
const o = (an(e, r).config || {}).columnlen || {}, i = {};
|
|
@@ -26975,17 +26984,17 @@ function Wm(e, t, r = {}) {
|
|
|
26975
26984
|
}
|
|
26976
26985
|
}), i;
|
|
26977
26986
|
}
|
|
26978
|
-
function
|
|
26987
|
+
function Ff(e) {
|
|
26979
26988
|
return Number.isFinite(Number(e)) && !Number.isNaN(Number(e));
|
|
26980
26989
|
}
|
|
26981
|
-
function
|
|
26990
|
+
function Bf(e) {
|
|
26982
26991
|
return /^0x?[a-fA-F0-9]+$/.test(e);
|
|
26983
26992
|
}
|
|
26984
26993
|
const Go = "#f3f3f3", Yo = 5;
|
|
26985
26994
|
function Ul(e) {
|
|
26986
26995
|
return typeof e != "string" ? !1 : ["price", "fully_diluted_value"].includes(e) || e.toLowerCase().includes("usd") || e.toLowerCase().includes("price_in");
|
|
26987
26996
|
}
|
|
26988
|
-
const zl = `$#,##0.${"0".repeat(2)}`,
|
|
26997
|
+
const zl = `$#,##0.${"0".repeat(2)}`, Pf = (e, t, r, a) => {
|
|
26989
26998
|
var o;
|
|
26990
26999
|
if (!r.length) return e;
|
|
26991
27000
|
const n = r.map((i) => {
|
|
@@ -27005,7 +27014,7 @@ const zl = `$#,##0.${"0".repeat(2)}`, Ff = (e, t, r, a) => {
|
|
|
27005
27014
|
{},
|
|
27006
27015
|
!1
|
|
27007
27016
|
), e + r.length;
|
|
27008
|
-
},
|
|
27017
|
+
}, Hf = ({
|
|
27009
27018
|
row: e,
|
|
27010
27019
|
column: t,
|
|
27011
27020
|
newValue: r,
|
|
@@ -27023,7 +27032,7 @@ const zl = `$#,##0.${"0".repeat(2)}`, Ff = (e, t, r, a) => {
|
|
|
27023
27032
|
return;
|
|
27024
27033
|
}
|
|
27025
27034
|
let l = e;
|
|
27026
|
-
i != null && i.length && (l =
|
|
27035
|
+
i != null && i.length && (l = Pf(
|
|
27027
27036
|
e,
|
|
27028
27037
|
t,
|
|
27029
27038
|
i,
|
|
@@ -27090,7 +27099,7 @@ const zl = `$#,##0.${"0".repeat(2)}`, Ff = (e, t, r, a) => {
|
|
|
27090
27099
|
}
|
|
27091
27100
|
}
|
|
27092
27101
|
} else {
|
|
27093
|
-
if (
|
|
27102
|
+
if (Uf({
|
|
27094
27103
|
row: l,
|
|
27095
27104
|
column: t,
|
|
27096
27105
|
apiData: a,
|
|
@@ -27149,7 +27158,7 @@ const zl = `$#,##0.${"0".repeat(2)}`, Ff = (e, t, r, a) => {
|
|
|
27149
27158
|
var o, i, l;
|
|
27150
27159
|
const a = (i = (o = r.current) == null ? void 0 : o.getSheet()) == null ? void 0 : i.data, n = (l = a == null ? void 0 : a[e]) == null ? void 0 : l[t];
|
|
27151
27160
|
return n == null ? {} : typeof n == "object" ? { ...n } : { v: n };
|
|
27152
|
-
}, ua = (e) =>
|
|
27161
|
+
}, ua = (e) => Ff(e) && !Bf(e), Wl = (e) => Array.isArray(e) ? e.map((t) => ({ ...t })) : e, Ln = (e, t, r) => {
|
|
27153
27162
|
const a = ua(e);
|
|
27154
27163
|
if (r && a && Ul(r)) {
|
|
27155
27164
|
const { s: l, ...c } = t || {};
|
|
@@ -27174,7 +27183,7 @@ const zl = `$#,##0.${"0".repeat(2)}`, Ff = (e, t, r, a) => {
|
|
|
27174
27183
|
if (!e || typeof e != "object") return e ?? {};
|
|
27175
27184
|
const t = e.ct;
|
|
27176
27185
|
return !t || !Array.isArray(t.s) ? { ...e } : { ...e, ct: { ...t, s: Wl(t.s) } };
|
|
27177
|
-
},
|
|
27186
|
+
}, Uf = ({
|
|
27178
27187
|
row: e,
|
|
27179
27188
|
column: t,
|
|
27180
27189
|
apiData: r,
|
|
@@ -27202,7 +27211,7 @@ const zl = `$#,##0.${"0".repeat(2)}`, Ff = (e, t, r, a) => {
|
|
|
27202
27211
|
{},
|
|
27203
27212
|
!0
|
|
27204
27213
|
), !0;
|
|
27205
|
-
},
|
|
27214
|
+
}, zf = (e) => e !== null && typeof e == "object" && !Array.isArray(e) && (e == null ? void 0 : e.responseType) === "smart-contract", Wf = async ({
|
|
27206
27215
|
result: e,
|
|
27207
27216
|
handleSmartContractQuery: t,
|
|
27208
27217
|
sheetEditorRef: r,
|
|
@@ -27217,7 +27226,7 @@ const zl = `$#,##0.${"0".repeat(2)}`, Ff = (e, t, r, a) => {
|
|
|
27217
27226
|
row: a,
|
|
27218
27227
|
column: n,
|
|
27219
27228
|
newValue: o,
|
|
27220
|
-
formulaResponseUiSync:
|
|
27229
|
+
formulaResponseUiSync: Hf
|
|
27221
27230
|
}, { callSignature: l } = e;
|
|
27222
27231
|
await t(i)(l);
|
|
27223
27232
|
}, Zo = (e, t, r) => {
|
|
@@ -27227,7 +27236,7 @@ const zl = `$#,##0.${"0".repeat(2)}`, Ff = (e, t, r, a) => {
|
|
|
27227
27236
|
} catch {
|
|
27228
27237
|
return;
|
|
27229
27238
|
}
|
|
27230
|
-
},
|
|
27239
|
+
}, jm = async ({
|
|
27231
27240
|
functionCallString: e,
|
|
27232
27241
|
sheetEditorRef: t,
|
|
27233
27242
|
dataBlockRow: r,
|
|
@@ -27239,9 +27248,9 @@ const zl = `$#,##0.${"0".repeat(2)}`, Ff = (e, t, r, a) => {
|
|
|
27239
27248
|
const i = await import("@fileverse-dev/formulajs"), l = e == null ? void 0 : e.match(/^(\w+)\((.*)\)$/);
|
|
27240
27249
|
if (!l)
|
|
27241
27250
|
throw new Error(`Invalid function call format: ${e}`);
|
|
27242
|
-
const c = l[1].toUpperCase(), s = l[2], f =
|
|
27251
|
+
const c = l[1].toUpperCase(), s = l[2], f = Vf(s).map((m) => {
|
|
27243
27252
|
if (Vl(m)) {
|
|
27244
|
-
const d =
|
|
27253
|
+
const d = Gf(m);
|
|
27245
27254
|
return d == null ? void 0 : d.map(
|
|
27246
27255
|
(g) => Zo(t, g == null ? void 0 : g.row, g == null ? void 0 : g.column)
|
|
27247
27256
|
);
|
|
@@ -27258,8 +27267,8 @@ const zl = `$#,##0.${"0".repeat(2)}`, Ff = (e, t, r, a) => {
|
|
|
27258
27267
|
});
|
|
27259
27268
|
if (typeof i[c] == "function") {
|
|
27260
27269
|
const m = await i[c](...f);
|
|
27261
|
-
if (
|
|
27262
|
-
await
|
|
27270
|
+
if (zf(m)) {
|
|
27271
|
+
await Wf({
|
|
27263
27272
|
result: m,
|
|
27264
27273
|
handleSmartContractQuery: n,
|
|
27265
27274
|
sheetEditorRef: t,
|
|
@@ -27280,7 +27289,7 @@ const zl = `$#,##0.${"0".repeat(2)}`, Ff = (e, t, r, a) => {
|
|
|
27280
27289
|
return;
|
|
27281
27290
|
}
|
|
27282
27291
|
};
|
|
27283
|
-
function
|
|
27292
|
+
function Vf(e) {
|
|
27284
27293
|
if (!(e != null && e.trim()))
|
|
27285
27294
|
return [];
|
|
27286
27295
|
const t = [];
|
|
@@ -27343,7 +27352,7 @@ function fa(e) {
|
|
|
27343
27352
|
column: n
|
|
27344
27353
|
};
|
|
27345
27354
|
}
|
|
27346
|
-
function
|
|
27355
|
+
function Gf(e) {
|
|
27347
27356
|
if (!Vl(e))
|
|
27348
27357
|
return null;
|
|
27349
27358
|
const t = e.split(":"), r = fa(t[0]), a = fa(t[1]);
|
|
@@ -27356,36 +27365,36 @@ function Wf(e) {
|
|
|
27356
27365
|
return c;
|
|
27357
27366
|
}
|
|
27358
27367
|
export {
|
|
27359
|
-
|
|
27368
|
+
zd as $,
|
|
27360
27369
|
js as A,
|
|
27361
27370
|
jt as B,
|
|
27362
27371
|
Vt as C,
|
|
27363
27372
|
Yn as D,
|
|
27364
|
-
|
|
27365
|
-
|
|
27366
|
-
|
|
27373
|
+
lm as E,
|
|
27374
|
+
nd as F,
|
|
27375
|
+
td as G,
|
|
27367
27376
|
Js as H,
|
|
27368
27377
|
en as I,
|
|
27369
|
-
|
|
27370
|
-
|
|
27371
|
-
|
|
27372
|
-
|
|
27378
|
+
Hd as J,
|
|
27379
|
+
id as K,
|
|
27380
|
+
cd as L,
|
|
27381
|
+
wd as M,
|
|
27373
27382
|
Ca as N,
|
|
27374
27383
|
Xe as O,
|
|
27375
27384
|
wa as P,
|
|
27376
27385
|
_r as Q,
|
|
27377
27386
|
kt as R,
|
|
27378
|
-
|
|
27387
|
+
sd as S,
|
|
27379
27388
|
lc as T,
|
|
27380
|
-
|
|
27389
|
+
dd as U,
|
|
27381
27390
|
Rl as V,
|
|
27382
27391
|
mr as W,
|
|
27383
27392
|
Je as X,
|
|
27384
27393
|
mc as Y,
|
|
27385
|
-
|
|
27394
|
+
Gd as Z,
|
|
27386
27395
|
wl as _,
|
|
27387
27396
|
Fe as a,
|
|
27388
|
-
|
|
27397
|
+
wm as a$,
|
|
27389
27398
|
Ac as a0,
|
|
27390
27399
|
Or as a1,
|
|
27391
27400
|
Nc as a2,
|
|
@@ -27394,197 +27403,198 @@ export {
|
|
|
27394
27403
|
Na as a5,
|
|
27395
27404
|
Cr as a6,
|
|
27396
27405
|
ka as a7,
|
|
27397
|
-
|
|
27406
|
+
$d as a8,
|
|
27398
27407
|
ic as a9,
|
|
27399
27408
|
Kn as aA,
|
|
27400
27409
|
xr as aB,
|
|
27401
|
-
|
|
27410
|
+
Ef as aC,
|
|
27402
27411
|
El as aD,
|
|
27403
27412
|
ml as aE,
|
|
27404
|
-
|
|
27413
|
+
pf as aF,
|
|
27405
27414
|
qn as aG,
|
|
27406
|
-
|
|
27415
|
+
Em as aH,
|
|
27407
27416
|
an as aI,
|
|
27408
27417
|
Vo as aJ,
|
|
27409
27418
|
oa as aK,
|
|
27410
27419
|
Rt as aL,
|
|
27411
|
-
|
|
27420
|
+
sf as aM,
|
|
27412
27421
|
rn as aN,
|
|
27413
|
-
|
|
27414
|
-
|
|
27415
|
-
|
|
27416
|
-
|
|
27417
|
-
|
|
27418
|
-
|
|
27419
|
-
|
|
27420
|
-
|
|
27421
|
-
|
|
27422
|
+
$f as aO,
|
|
27423
|
+
Bm as aP,
|
|
27424
|
+
zm as aQ,
|
|
27425
|
+
Hm as aR,
|
|
27426
|
+
Lf as aS,
|
|
27427
|
+
Pm as aT,
|
|
27428
|
+
Wm as aU,
|
|
27429
|
+
Um as aV,
|
|
27430
|
+
Qd as aW,
|
|
27422
27431
|
Zn as aX,
|
|
27423
|
-
|
|
27424
|
-
|
|
27425
|
-
|
|
27432
|
+
Gm as aY,
|
|
27433
|
+
Of as aZ,
|
|
27434
|
+
Vm as a_,
|
|
27426
27435
|
un as aa,
|
|
27427
27436
|
Ze as ab,
|
|
27428
27437
|
Nl as ac,
|
|
27429
|
-
|
|
27430
|
-
|
|
27431
|
-
|
|
27432
|
-
|
|
27438
|
+
Wd as ad,
|
|
27439
|
+
Nf as ae,
|
|
27440
|
+
Gu as af,
|
|
27441
|
+
Ym as ag,
|
|
27433
27442
|
Al as ah,
|
|
27434
27443
|
Zt as ai,
|
|
27435
27444
|
xo as aj,
|
|
27436
|
-
|
|
27445
|
+
Rf as ak,
|
|
27437
27446
|
Il as al,
|
|
27438
27447
|
hn as am,
|
|
27439
27448
|
yc as an,
|
|
27440
27449
|
It as ao,
|
|
27441
|
-
|
|
27450
|
+
Yu as ap,
|
|
27442
27451
|
xl as aq,
|
|
27443
27452
|
Bl as ar,
|
|
27444
27453
|
Ke as as,
|
|
27445
27454
|
ia as at,
|
|
27446
27455
|
Kt as au,
|
|
27447
|
-
|
|
27456
|
+
md as av,
|
|
27448
27457
|
Vn as aw,
|
|
27449
27458
|
Cn as ax,
|
|
27450
|
-
|
|
27451
|
-
|
|
27459
|
+
Fm as ay,
|
|
27460
|
+
Lm as az,
|
|
27452
27461
|
Ec as b,
|
|
27453
27462
|
St as b$,
|
|
27454
|
-
|
|
27455
|
-
|
|
27456
|
-
|
|
27457
|
-
|
|
27458
|
-
|
|
27459
|
-
|
|
27460
|
-
|
|
27461
|
-
|
|
27462
|
-
|
|
27463
|
-
|
|
27464
|
-
|
|
27465
|
-
|
|
27466
|
-
|
|
27467
|
-
|
|
27468
|
-
|
|
27463
|
+
um as b0,
|
|
27464
|
+
Cm as b1,
|
|
27465
|
+
Nm as b2,
|
|
27466
|
+
Rm as b3,
|
|
27467
|
+
pm as b4,
|
|
27468
|
+
bm as b5,
|
|
27469
|
+
ym as b6,
|
|
27470
|
+
gm as b7,
|
|
27471
|
+
mm as b8,
|
|
27472
|
+
hm as b9,
|
|
27473
|
+
su as bA,
|
|
27474
|
+
du as bB,
|
|
27475
|
+
Id as bC,
|
|
27476
|
+
Dd as bD,
|
|
27477
|
+
vf as bE,
|
|
27469
27478
|
Ho as bF,
|
|
27470
|
-
|
|
27471
|
-
|
|
27472
|
-
|
|
27473
|
-
|
|
27474
|
-
|
|
27475
|
-
|
|
27476
|
-
|
|
27479
|
+
kd as bG,
|
|
27480
|
+
om as bH,
|
|
27481
|
+
Rd as bI,
|
|
27482
|
+
qd as bJ,
|
|
27483
|
+
Md as bK,
|
|
27484
|
+
bf as bL,
|
|
27485
|
+
yf as bM,
|
|
27477
27486
|
hr as bN,
|
|
27478
27487
|
Rc as bO,
|
|
27479
27488
|
kc as bP,
|
|
27480
|
-
|
|
27481
|
-
|
|
27482
|
-
|
|
27483
|
-
|
|
27484
|
-
|
|
27485
|
-
|
|
27486
|
-
|
|
27487
|
-
|
|
27488
|
-
|
|
27489
|
-
|
|
27490
|
-
|
|
27491
|
-
|
|
27492
|
-
|
|
27493
|
-
|
|
27494
|
-
|
|
27495
|
-
|
|
27496
|
-
|
|
27497
|
-
|
|
27498
|
-
|
|
27499
|
-
|
|
27500
|
-
|
|
27501
|
-
|
|
27502
|
-
|
|
27503
|
-
|
|
27504
|
-
|
|
27505
|
-
|
|
27506
|
-
|
|
27507
|
-
|
|
27489
|
+
pd as bQ,
|
|
27490
|
+
hd as bR,
|
|
27491
|
+
Qc as bS,
|
|
27492
|
+
vd as bT,
|
|
27493
|
+
$m as bU,
|
|
27494
|
+
Kd as bV,
|
|
27495
|
+
Zd as bW,
|
|
27496
|
+
Xd as bX,
|
|
27497
|
+
Pd as bY,
|
|
27498
|
+
Am as bZ,
|
|
27499
|
+
rm as b_,
|
|
27500
|
+
vm as ba,
|
|
27501
|
+
xd as bb,
|
|
27502
|
+
sm as bc,
|
|
27503
|
+
Im as bd,
|
|
27504
|
+
wu as be,
|
|
27505
|
+
Ad as bf,
|
|
27506
|
+
_u as bg,
|
|
27507
|
+
fm as bh,
|
|
27508
|
+
Cd as bi,
|
|
27509
|
+
Tu as bj,
|
|
27510
|
+
ed as bk,
|
|
27511
|
+
em as bl,
|
|
27512
|
+
Sd as bm,
|
|
27513
|
+
Om as bn,
|
|
27514
|
+
dm as bo,
|
|
27515
|
+
Ed as bp,
|
|
27516
|
+
cm as bq,
|
|
27508
27517
|
$r as br,
|
|
27509
27518
|
Ea as bs,
|
|
27510
|
-
|
|
27511
|
-
|
|
27512
|
-
|
|
27513
|
-
|
|
27514
|
-
|
|
27519
|
+
Td as bt,
|
|
27520
|
+
Jd as bu,
|
|
27521
|
+
Yd as bv,
|
|
27522
|
+
jd as bw,
|
|
27523
|
+
Fd as bx,
|
|
27515
27524
|
Xn as by,
|
|
27516
27525
|
Ml as bz,
|
|
27517
27526
|
Xl as c,
|
|
27518
|
-
|
|
27527
|
+
Sm as c0,
|
|
27519
27528
|
Gn as c1,
|
|
27520
|
-
|
|
27521
|
-
|
|
27522
|
-
|
|
27529
|
+
kf as c2,
|
|
27530
|
+
Tm as c3,
|
|
27531
|
+
_m as c4,
|
|
27523
27532
|
la as c5,
|
|
27524
27533
|
il as c6,
|
|
27525
27534
|
Fs as c7,
|
|
27526
27535
|
Us as c8,
|
|
27527
|
-
|
|
27528
|
-
|
|
27529
|
-
|
|
27530
|
-
|
|
27531
|
-
|
|
27532
|
-
|
|
27533
|
-
|
|
27534
|
-
|
|
27535
|
-
|
|
27536
|
+
ju as c9,
|
|
27537
|
+
_d as cA,
|
|
27538
|
+
am as cB,
|
|
27539
|
+
im as cC,
|
|
27540
|
+
_f as cD,
|
|
27541
|
+
Ld as cE,
|
|
27542
|
+
Jf as cF,
|
|
27543
|
+
Bd as cG,
|
|
27544
|
+
tm as cH,
|
|
27536
27545
|
Hs as cI,
|
|
27537
|
-
|
|
27538
|
-
|
|
27539
|
-
|
|
27540
|
-
|
|
27541
|
-
|
|
27542
|
-
|
|
27543
|
-
|
|
27544
|
-
|
|
27545
|
-
|
|
27546
|
-
|
|
27547
|
-
|
|
27548
|
-
|
|
27549
|
-
|
|
27550
|
-
|
|
27551
|
-
|
|
27552
|
-
|
|
27553
|
-
|
|
27546
|
+
Mm as cJ,
|
|
27547
|
+
nm as cK,
|
|
27548
|
+
Ud as cL,
|
|
27549
|
+
km as cM,
|
|
27550
|
+
gd as cN,
|
|
27551
|
+
yd as cO,
|
|
27552
|
+
bd as cP,
|
|
27553
|
+
hl as cQ,
|
|
27554
|
+
Kf as cR,
|
|
27555
|
+
Bf as cS,
|
|
27556
|
+
Vf as cT,
|
|
27557
|
+
Vl as cU,
|
|
27558
|
+
Gf as cV,
|
|
27559
|
+
br as cW,
|
|
27560
|
+
fa as cX,
|
|
27561
|
+
zf as cY,
|
|
27562
|
+
Wf as cZ,
|
|
27563
|
+
zl as c_,
|
|
27554
27564
|
Dl as ca,
|
|
27555
27565
|
Mt as cb,
|
|
27556
|
-
|
|
27557
|
-
cd,
|
|
27566
|
+
Nd as cc,
|
|
27567
|
+
fd as cd,
|
|
27558
27568
|
ql as ce,
|
|
27559
|
-
|
|
27560
|
-
|
|
27569
|
+
od as cf,
|
|
27570
|
+
ad as cg,
|
|
27561
27571
|
ca as ch,
|
|
27562
|
-
|
|
27563
|
-
|
|
27564
|
-
|
|
27572
|
+
fu as ci,
|
|
27573
|
+
xm as cj,
|
|
27574
|
+
xf as ck,
|
|
27565
27575
|
$c as cl,
|
|
27566
27576
|
aa as cm,
|
|
27567
|
-
|
|
27577
|
+
qm as cn,
|
|
27568
27578
|
Tc as co,
|
|
27569
27579
|
ba as cp,
|
|
27570
|
-
|
|
27580
|
+
Vd as cq,
|
|
27571
27581
|
An as cr,
|
|
27572
|
-
|
|
27582
|
+
Qf as cs,
|
|
27573
27583
|
Ls as ct,
|
|
27574
27584
|
bt as cu,
|
|
27575
|
-
|
|
27585
|
+
Od as cv,
|
|
27576
27586
|
jn as cw,
|
|
27577
27587
|
dl as cx,
|
|
27578
|
-
|
|
27588
|
+
ku as cy,
|
|
27579
27589
|
Wo as cz,
|
|
27580
27590
|
Tn as d,
|
|
27581
|
-
|
|
27582
|
-
|
|
27591
|
+
jm as e,
|
|
27592
|
+
Hf as f,
|
|
27583
27593
|
Qo as g,
|
|
27584
27594
|
Ie as h,
|
|
27585
|
-
|
|
27586
|
-
|
|
27587
|
-
|
|
27595
|
+
ru as i,
|
|
27596
|
+
Df as j,
|
|
27597
|
+
Dm as k,
|
|
27588
27598
|
qt as l,
|
|
27589
27599
|
vr as m,
|
|
27590
27600
|
Vs as n,
|
|
@@ -27597,7 +27607,7 @@ export {
|
|
|
27597
27607
|
Jt as u,
|
|
27598
27608
|
_t as v,
|
|
27599
27609
|
Gt as w,
|
|
27600
|
-
|
|
27601
|
-
|
|
27602
|
-
|
|
27610
|
+
ld as x,
|
|
27611
|
+
rd as y,
|
|
27612
|
+
ud as z
|
|
27603
27613
|
};
|