@fileverse-dev/dsheet 4.1.23-stabilise-package-3 → 4.1.23-stabilise-package-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editor/contexts/editor-context.d.ts +2 -0
- package/dist/editor/hooks/use-celldata-compaction.d.ts +23 -2
- package/dist/editor/hooks/use-celldata-compaction.test.d.ts +1 -0
- package/dist/editor/utils/active-sheet-keeper.test.d.ts +1 -0
- package/dist/editor/utils/structural-edit-other-tabs.test.d.ts +1 -0
- package/dist/{executeStringFunction-D5BTPrXL.js → executeStringFunction-BsVLVYUB.js} +711 -691
- package/dist/formula.js +1 -1
- package/dist/{index-BXNWi7s5.js → index-YKT7Lz7Z.js} +18943 -18699
- package/dist/index.es.js +2 -2
- package/dist/sheet-engine/react/components/ContextMenu/FilterMenu.d.ts +2 -2
- package/dist/sheet-engine/react/components/ContextMenu/SheetTab.d.ts +2 -2
- package/dist/sheet-engine/react/components/ContextMenu/index.d.ts +2 -2
- package/dist/sheet-engine/react/components/NotationBoxes/shown-comments.d.ts +16 -0
- package/dist/sheet-engine/react/components/NotationBoxes/shown-comments.test.d.ts +1 -0
- package/dist/sheet-engine/react/components/SVGDefines.d.ts +2 -2
- package/dist/sheet-engine/react/components/SheetOverlay/editing-as-formula.d.ts +7 -0
- package/dist/sheet-engine/react/components/SheetOverlay/editing-as-formula.test.d.ts +1 -0
- package/dist/sheet-engine/react/components/SheetOverlay/hover-tracker.d.ts +40 -0
- package/dist/sheet-engine/react/components/SheetOverlay/hover-tracker.test.d.ts +1 -0
- package/dist/sheet-engine/react/components/SheetTab/index.d.ts +2 -2
- package/dist/sheet-engine/react/components/Toolbar/FunctionList/group-functions.d.ts +9 -0
- package/dist/sheet-engine/react/components/Toolbar/FunctionList/group-functions.test.d.ts +1 -0
- package/dist/sheet-engine/react/components/Toolbar/index.d.ts +2 -2
- package/dist/sheet-engine/react/components/Workbook/stable-handle.d.ts +8 -0
- package/dist/sheet-engine/react/components/Workbook/stable-handle.test.d.ts +1 -0
- package/dist/sheet-engine/react/context/index.d.ts +15 -0
- package/dist/sheet-engine/react/context/use-workbook-store.d.ts +30 -0
- package/dist/sheet-engine/react/context/workbook-store.d.ts +30 -0
- package/dist/sheet-engine/react/context/workbook-store.test.d.ts +1 -0
- package/dist/{use-xlsx-import-impl-gsG9w9qV.js → use-xlsx-import-impl-8Lojcck9.js} +4 -4
- package/dist/{xlsx-defined-names-dZveijsB.js → xlsx-defined-names-D3F23p2Z.js} +2 -2
- package/dist/{xlsx-export-impl-B10lK_L2.js → xlsx-export-impl-DXWvjnk5.js} +4 -4
- package/dist/{xlsx-hyperlink-inline-BFbPe75M.js → xlsx-hyperlink-inline-07QbQDEt.js} +2 -2
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ var yf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
10
10
|
function uu(e) {
|
|
11
11
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function C1(e) {
|
|
14
14
|
if (e.__esModule) return e;
|
|
15
15
|
var t = e.default;
|
|
16
16
|
if (typeof t == "function") {
|
|
@@ -36,13 +36,13 @@ const _r = {}, to = {
|
|
|
36
36
|
hi: () => import("./hi-CP0ta0Yk.js"),
|
|
37
37
|
"zh-TW": () => import("./zh_tw-BqyRw1gX.js")
|
|
38
38
|
};
|
|
39
|
-
async function
|
|
39
|
+
async function $1(e) {
|
|
40
40
|
const t = e in to ? e : e.split("-")[0], n = t in to ? t : "en";
|
|
41
41
|
if (_r[n]) return;
|
|
42
42
|
const r = await to[n]();
|
|
43
43
|
_r[n] = r.default;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function It(e) {
|
|
46
46
|
var n;
|
|
47
47
|
const t = [(e == null ? void 0 : e.lang) || "", ((n = e == null ? void 0 : e.lang) == null ? void 0 : n.split("-")[0]) || ""];
|
|
48
48
|
for (const r of t)
|
|
@@ -151,7 +151,7 @@ function Sf(e) {
|
|
|
151
151
|
(n) => Nf.has(n)
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function N1(e, t) {
|
|
155
155
|
if (e === t) return !0;
|
|
156
156
|
if (e == null || t == null) return !1;
|
|
157
157
|
const n = e, r = t;
|
|
@@ -267,7 +267,7 @@ function Mf(e) {
|
|
|
267
267
|
}
|
|
268
268
|
return n.push([r, a]), n;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function S1(e, t, n) {
|
|
271
271
|
if (!(e != null && e.length)) return [];
|
|
272
272
|
const r = [];
|
|
273
273
|
return e.forEach((a) => {
|
|
@@ -281,7 +281,7 @@ function N1(e, t, n) {
|
|
|
281
281
|
});
|
|
282
282
|
}), Un(r);
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function k1(e, t, n) {
|
|
285
285
|
if (!(e != null && e.length)) return [];
|
|
286
286
|
const r = { ...t }, a = n.row[0] - t.row[0], l = n.column[0] - t.column[0], o = [];
|
|
287
287
|
e.forEach((u) => {
|
|
@@ -375,7 +375,7 @@ function bu(e, t, n, r, a, l) {
|
|
|
375
375
|
}
|
|
376
376
|
return { ranges: o, changed: i };
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function A1(e, t, n) {
|
|
379
379
|
if (!(e != null && e.length)) return [];
|
|
380
380
|
const r = [];
|
|
381
381
|
return e.forEach((a) => {
|
|
@@ -451,7 +451,7 @@ function rl(e, t) {
|
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function E1(e) {
|
|
455
455
|
var u;
|
|
456
456
|
if (Array.isArray(e.data) && e.data.length > 0)
|
|
457
457
|
return e.data;
|
|
@@ -495,7 +495,7 @@ function Ff(e, t) {
|
|
|
495
495
|
return !0;
|
|
496
496
|
return !1;
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function R1(e) {
|
|
499
499
|
return e.luckysheetfile;
|
|
500
500
|
}
|
|
501
501
|
function vu(e, t, n) {
|
|
@@ -522,7 +522,7 @@ function _n(e, t = {}) {
|
|
|
522
522
|
const r = e.luckysheetfile[n];
|
|
523
523
|
return r ? (a = r.data) != null && a.length ? r.data : vu(e, n, r) : null;
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function M1(e, t) {
|
|
526
526
|
const n = ke(e, t);
|
|
527
527
|
e.luckysheetfile[n].hide = 1, e.luckysheetfile[n].status = 0;
|
|
528
528
|
const r = e.luckysheetfile.filter(
|
|
@@ -530,12 +530,12 @@ function R1(e, t) {
|
|
|
530
530
|
);
|
|
531
531
|
e.currentSheetId = r[0].id;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function I1(e, t) {
|
|
534
534
|
const n = ke(e, t);
|
|
535
535
|
e.luckysheetfile[n].hide = void 0;
|
|
536
536
|
}
|
|
537
537
|
function Lf(e, t) {
|
|
538
|
-
const { info: n } =
|
|
538
|
+
const { info: n } = It(e), r = `(${n.copy}`, a = ke(e, t);
|
|
539
539
|
let l = e.luckysheetfile[a].name;
|
|
540
540
|
const o = l.indexOf(r);
|
|
541
541
|
let i = 0;
|
|
@@ -558,10 +558,10 @@ function Lf(e, t) {
|
|
|
558
558
|
} while (u.indexOf(c) !== -1);
|
|
559
559
|
return c;
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function q1(e, t) {
|
|
562
562
|
var c, f, d, m, h;
|
|
563
563
|
const n = ke(e, t), r = e.luckysheetfile[n].order + 1, a = Lf(e, t), l = p.cloneDeep(e.luckysheetfile[n]);
|
|
564
|
-
e.formulaCache.markDepGraphIncomplete(), delete l.id, delete l.status, l.celldata = Ma(l.data), delete l.data,
|
|
564
|
+
e.formulaCache.markDepGraphIncomplete(), delete l.id, delete l.status, l.celldata = Ma(l.data), delete l.data, i1(
|
|
565
565
|
e,
|
|
566
566
|
void 0,
|
|
567
567
|
cu(),
|
|
@@ -581,7 +581,7 @@ function I1(e, t) {
|
|
|
581
581
|
(g) => g && typeof g == "object" && "id" in g ? { ...g, id: s } : g
|
|
582
582
|
));
|
|
583
583
|
const u = {};
|
|
584
|
-
if (u[s] = r,
|
|
584
|
+
if (u[s] = r, s1(e, u), rr(e, s), (m = e == null ? void 0 : e.hooks) != null && m.updateAllCell)
|
|
585
585
|
e.hooks.updateAllCell(s, "duplicateSheet");
|
|
586
586
|
else if ((h = e == null ? void 0 : e.hooks) != null && h.updateCellYdoc) {
|
|
587
587
|
const g = [], y = i.celldata || Ma(i.data);
|
|
@@ -598,7 +598,7 @@ function I1(e, t) {
|
|
|
598
598
|
}), g.length > 0 && e.hooks.updateCellYdoc(g);
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function D1(e, t) {
|
|
602
602
|
var r, a, l;
|
|
603
603
|
const n = ke(e, t);
|
|
604
604
|
if (e.luckysheetfile[n].data)
|
|
@@ -621,7 +621,7 @@ function q1(e, t) {
|
|
|
621
621
|
zr(e, o, i, t);
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function x1(e, t, n) {
|
|
625
625
|
var a, l, o, i, s;
|
|
626
626
|
const r = ke(e, t);
|
|
627
627
|
if (e.luckysheetfile[r].data)
|
|
@@ -1129,11 +1129,11 @@ function nn(e) {
|
|
|
1129
1129
|
function zf(e) {
|
|
1130
1130
|
return -1 * nn(e);
|
|
1131
1131
|
}
|
|
1132
|
-
const Tr = "ERROR", ll = "DIV/0",
|
|
1132
|
+
const Tr = "ERROR", ll = "DIV/0", er = "NAME", Wf = "N/A", Tu = "NULL", Cu = "NUM", Cr = "REF", An = "VALUE", $u = "CIRC", $r = {
|
|
1133
1133
|
"Error: lookup_range and result_range are required": "Lookup range and result range are required",
|
|
1134
1134
|
[Tr]: "Syntax error",
|
|
1135
1135
|
[ll]: "#DIV/0!",
|
|
1136
|
-
[
|
|
1136
|
+
[er]: "Wrong function name or parameter",
|
|
1137
1137
|
[Wf]: "#N/A",
|
|
1138
1138
|
[Tu]: "#NULL!",
|
|
1139
1139
|
[Cu]: "#NUM!",
|
|
@@ -12980,7 +12980,7 @@ function ya(e) {
|
|
|
12980
12980
|
s && (a = !0, ds[r[0]], l = s(...n));
|
|
12981
12981
|
}
|
|
12982
12982
|
if (!a)
|
|
12983
|
-
throw Error(
|
|
12983
|
+
throw Error(er);
|
|
12984
12984
|
return l;
|
|
12985
12985
|
};
|
|
12986
12986
|
}
|
|
@@ -13044,7 +13044,7 @@ Io.SYMBOL = ld;
|
|
|
13044
13044
|
const ba = /* @__PURE__ */ Object.create(null);
|
|
13045
13045
|
function ms(e, t = []) {
|
|
13046
13046
|
if (e = e.toUpperCase(), !ba[e])
|
|
13047
|
-
throw Error(
|
|
13047
|
+
throw Error(er);
|
|
13048
13048
|
return ba[e](...t);
|
|
13049
13049
|
}
|
|
13050
13050
|
function Ut(e, t) {
|
|
@@ -13084,7 +13084,7 @@ const sd = "[A-Za-z0-9_À-ʯ]+", ud = "'(?:(?!').|'')*'", Da = `(?:${sd}|${ud})!
|
|
|
13084
13084
|
var fa, ze = function(e, t, n, r) {
|
|
13085
13085
|
for (n = n || {}, r = e.length; r--; n[e[r]] = t) ;
|
|
13086
13086
|
return n;
|
|
13087
|
-
}, dt = [1, 5], mt = [1, 8], ht = [1, 6], pt = [1, 7], gt = [1, 9], yt = [1, 14], bt = [1, 15], wt = [1, 16], vt = [1, 12], _t = [1, 13], ut = [1, 17], Ct = [1, 19],
|
|
13087
|
+
}, dt = [1, 5], mt = [1, 8], ht = [1, 6], pt = [1, 7], gt = [1, 9], yt = [1, 14], bt = [1, 15], wt = [1, 16], vt = [1, 12], _t = [1, 13], ut = [1, 17], Ct = [1, 19], ur = [1, 20], Wt = [1, 21], Mn = [1, 22], In = [1, 23], Yn = [1, 24], Yt = [1, 25], kt = [1, 26], At = [1, 27], $t = [1, 28], it = [5, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 29, 30], hs = [5, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 29, 30, 32], ao = [5, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 29, 30, 34], Zr = [5, 10, 11, 13, 14, 15, 16, 17, 29, 30], cr = [5, 10, 13, 14, 15, 16, 29, 30], ps = [5, 10, 11, 13, 14, 15, 16, 17, 18, 19, 29, 30], Kr = [13, 29, 30], il = {
|
|
13088
13088
|
trace: function() {
|
|
13089
13089
|
},
|
|
13090
13090
|
yy: {},
|
|
@@ -13349,7 +13349,7 @@ var fa, ze = function(e, t, n, r) {
|
|
|
13349
13349
|
{
|
|
13350
13350
|
5: [1, 18],
|
|
13351
13351
|
9: Ct,
|
|
13352
|
-
10:
|
|
13352
|
+
10: ur,
|
|
13353
13353
|
11: Wt,
|
|
13354
13354
|
14: Mn,
|
|
13355
13355
|
15: In,
|
|
@@ -13613,7 +13613,7 @@ var fa, ze = function(e, t, n, r) {
|
|
|
13613
13613
|
ze(ao, [2, 46]),
|
|
13614
13614
|
{
|
|
13615
13615
|
9: Ct,
|
|
13616
|
-
10:
|
|
13616
|
+
10: ur,
|
|
13617
13617
|
11: Wt,
|
|
13618
13618
|
13: [1, 54],
|
|
13619
13619
|
14: Mn,
|
|
@@ -13701,7 +13701,7 @@ var fa, ze = function(e, t, n, r) {
|
|
|
13701
13701
|
33: _t,
|
|
13702
13702
|
35: ut
|
|
13703
13703
|
},
|
|
13704
|
-
ze(
|
|
13704
|
+
ze(cr, [2, 14], { 9: Ct, 11: Wt, 17: Yt, 18: kt, 19: At, 20: $t }),
|
|
13705
13705
|
{
|
|
13706
13706
|
2: 11,
|
|
13707
13707
|
4: 71,
|
|
@@ -13720,7 +13720,7 @@ var fa, ze = function(e, t, n, r) {
|
|
|
13720
13720
|
33: _t,
|
|
13721
13721
|
35: ut
|
|
13722
13722
|
},
|
|
13723
|
-
ze(
|
|
13723
|
+
ze(cr, [2, 13], { 9: Ct, 11: Wt, 17: Yt, 18: kt, 19: At, 20: $t }),
|
|
13724
13724
|
ze([5, 10, 13, 16, 29, 30], [2, 12], {
|
|
13725
13725
|
9: Ct,
|
|
13726
13726
|
11: Wt,
|
|
@@ -13741,7 +13741,7 @@ var fa, ze = function(e, t, n, r) {
|
|
|
13741
13741
|
{ 13: [1, 72], 29: [1, 73], 30: [1, 74] },
|
|
13742
13742
|
ze(Kr, [2, 38], {
|
|
13743
13743
|
9: Ct,
|
|
13744
|
-
10:
|
|
13744
|
+
10: ur,
|
|
13745
13745
|
11: Wt,
|
|
13746
13746
|
14: Mn,
|
|
13747
13747
|
15: In,
|
|
@@ -13762,9 +13762,9 @@ var fa, ze = function(e, t, n, r) {
|
|
|
13762
13762
|
ze(it, [2, 35]),
|
|
13763
13763
|
ze(it, [2, 36]),
|
|
13764
13764
|
ze(it, [2, 37]),
|
|
13765
|
-
ze(
|
|
13766
|
-
ze(
|
|
13767
|
-
ze(
|
|
13765
|
+
ze(cr, [2, 9], { 9: Ct, 11: Wt, 17: Yt, 18: kt, 19: At, 20: $t }),
|
|
13766
|
+
ze(cr, [2, 11], { 9: Ct, 11: Wt, 17: Yt, 18: kt, 19: At, 20: $t }),
|
|
13767
|
+
ze(cr, [2, 10], { 9: Ct, 11: Wt, 17: Yt, 18: kt, 19: At, 20: $t }),
|
|
13768
13768
|
ze(it, [2, 22]),
|
|
13769
13769
|
{
|
|
13770
13770
|
2: 11,
|
|
@@ -13804,7 +13804,7 @@ var fa, ze = function(e, t, n, r) {
|
|
|
13804
13804
|
},
|
|
13805
13805
|
ze(Kr, [2, 40], {
|
|
13806
13806
|
9: Ct,
|
|
13807
|
-
10:
|
|
13807
|
+
10: ur,
|
|
13808
13808
|
11: Wt,
|
|
13809
13809
|
14: Mn,
|
|
13810
13810
|
15: In,
|
|
@@ -13816,7 +13816,7 @@ var fa, ze = function(e, t, n, r) {
|
|
|
13816
13816
|
}),
|
|
13817
13817
|
ze(Kr, [2, 41], {
|
|
13818
13818
|
9: Ct,
|
|
13819
|
-
10:
|
|
13819
|
+
10: ur,
|
|
13820
13820
|
11: Wt,
|
|
13821
13821
|
14: Mn,
|
|
13822
13822
|
15: In,
|
|
@@ -14421,7 +14421,7 @@ class Nd extends Hf {
|
|
|
14421
14421
|
if (this.emit("callVariable", t, (r) => {
|
|
14422
14422
|
r !== void 0 && (n = r);
|
|
14423
14423
|
}), n === void 0)
|
|
14424
|
-
throw Error(
|
|
14424
|
+
throw Error(er);
|
|
14425
14425
|
return n;
|
|
14426
14426
|
}
|
|
14427
14427
|
/**
|
|
@@ -14470,7 +14470,7 @@ class Nd extends Hf {
|
|
|
14470
14470
|
const [n, r, a] = oo(t);
|
|
14471
14471
|
if ((r == null ? void 0 : r.index) === -1) {
|
|
14472
14472
|
if (n.isAbsolute || r.isAbsolute)
|
|
14473
|
-
throw Error(
|
|
14473
|
+
throw Error(er);
|
|
14474
14474
|
return n.index + 1;
|
|
14475
14475
|
} else if ((n == null ? void 0 : n.index) === -1) {
|
|
14476
14476
|
const o = a != null ? t.slice(t.lastIndexOf("!") + 1) : t;
|
|
@@ -14526,10 +14526,10 @@ let ul = "uk";
|
|
|
14526
14526
|
function Sd(e) {
|
|
14527
14527
|
return e === "us" ? "us" : "uk";
|
|
14528
14528
|
}
|
|
14529
|
-
function
|
|
14529
|
+
function O1(e) {
|
|
14530
14530
|
ul = Sd(e);
|
|
14531
14531
|
}
|
|
14532
|
-
function
|
|
14532
|
+
function F1() {
|
|
14533
14533
|
return ul;
|
|
14534
14534
|
}
|
|
14535
14535
|
function xa() {
|
|
@@ -14563,7 +14563,7 @@ function Rd(e) {
|
|
|
14563
14563
|
function Md(e, t) {
|
|
14564
14564
|
return Rd(e) ? e : ku(t);
|
|
14565
14565
|
}
|
|
14566
|
-
const Mr = "light",
|
|
14566
|
+
const Mr = "light", L1 = "#EFC703", Do = {
|
|
14567
14567
|
light: {
|
|
14568
14568
|
cellBg: "#FFFFFF",
|
|
14569
14569
|
gridLine: "#e8ebec",
|
|
@@ -14615,12 +14615,12 @@ const Mr = "light", F1 = "#EFC703", Do = {
|
|
|
14615
14615
|
freezeLine: "hsla(120, 8%, 30%, 1)"
|
|
14616
14616
|
}
|
|
14617
14617
|
}, Id = (e) => Do[e ?? Mr] ?? Do[Mr];
|
|
14618
|
-
let
|
|
14619
|
-
const
|
|
14618
|
+
let gr = Do[Mr], xo = Mr;
|
|
14619
|
+
const B1 = (e) => {
|
|
14620
14620
|
const t = e ?? Mr;
|
|
14621
|
-
return t === xo ? !1 : (xo = t,
|
|
14622
|
-
},
|
|
14623
|
-
function
|
|
14621
|
+
return t === xo ? !1 : (xo = t, gr = Id(t), !0);
|
|
14622
|
+
}, P1 = () => xo;
|
|
14623
|
+
function H1(e) {
|
|
14624
14624
|
if (document.createRange)
|
|
14625
14625
|
if (e.innerHTML !== e.innerText || e.innerHTML === "") {
|
|
14626
14626
|
e.focus();
|
|
@@ -14712,7 +14712,7 @@ function lo(e, t, n) {
|
|
|
14712
14712
|
c.setStart(l, o), c.setEnd(i, s), r.removeAllRanges(), r.addRange(c);
|
|
14713
14713
|
}
|
|
14714
14714
|
}
|
|
14715
|
-
function
|
|
14715
|
+
function U1(e, t, n) {
|
|
14716
14716
|
if (t >= n) return [];
|
|
14717
14717
|
let r = 0, a = null, l = 0, o = null, i = 0;
|
|
14718
14718
|
function s(f) {
|
|
@@ -14775,7 +14775,7 @@ function Sn(e) {
|
|
|
14775
14775
|
var t;
|
|
14776
14776
|
return (e == null ? void 0 : e.t) === "inlineStr" && (((t = e == null ? void 0 : e.s) == null ? void 0 : t.length) ?? 0) > 0;
|
|
14777
14777
|
}
|
|
14778
|
-
function
|
|
14778
|
+
function z1(e, t, n) {
|
|
14779
14779
|
const r = at(e, t, n, "ct");
|
|
14780
14780
|
if (Sn(r)) {
|
|
14781
14781
|
const a = r.s;
|
|
@@ -15120,13 +15120,13 @@ function Hd(e, t, n, r) {
|
|
|
15120
15120
|
}
|
|
15121
15121
|
}
|
|
15122
15122
|
}
|
|
15123
|
-
function
|
|
15123
|
+
function fr(e) {
|
|
15124
15124
|
var t, n;
|
|
15125
15125
|
return (t = e.dataset) != null && t.linkType && ((n = e.dataset) != null && n.linkAddress) ? ` data-link-type="${tt(
|
|
15126
15126
|
e.dataset.linkType
|
|
15127
15127
|
)}" data-link-address="${tt(e.dataset.linkAddress)}"` : "";
|
|
15128
15128
|
}
|
|
15129
|
-
function
|
|
15129
|
+
function dr(e) {
|
|
15130
15130
|
let t = gn(e, "fc", "rgb(0, 0, 255)");
|
|
15131
15131
|
return t = gn(t, "un", 1), t;
|
|
15132
15132
|
}
|
|
@@ -15187,7 +15187,7 @@ function Wd(e, t, n) {
|
|
|
15187
15187
|
);
|
|
15188
15188
|
N != null && (v = Bn(N.style.cssText, v));
|
|
15189
15189
|
}
|
|
15190
|
-
v =
|
|
15190
|
+
v = dr(v);
|
|
15191
15191
|
const T = document.createElement("span");
|
|
15192
15192
|
T.setAttribute("style", v), T.setAttribute("data-link-type", t), T.setAttribute("data-link-address", n);
|
|
15193
15193
|
const C = a.extractContents();
|
|
@@ -15197,7 +15197,7 @@ function Wd(e, t, n) {
|
|
|
15197
15197
|
if (i === o) {
|
|
15198
15198
|
const v = i.parentNode, T = ((g = v == null ? void 0 : v.dataset) == null ? void 0 : g.noLinkAnchor) === "1" ? (v == null ? void 0 : v.textContent) || "" : (v == null ? void 0 : v.innerHTML) || "", N = l.innerHTML.substring(0, 5) !== "<span", A = v ? Jr(v, i, u) : u, $ = v ? Jr(v, o, s) : s, S = T.substring(0, A), M = T.substring(A, $), U = T.substring($, T.length);
|
|
15199
15199
|
let G = "";
|
|
15200
|
-
const ie =
|
|
15200
|
+
const ie = fr(v);
|
|
15201
15201
|
if (S !== "") {
|
|
15202
15202
|
let { cssText: Y } = v.style;
|
|
15203
15203
|
if (N) {
|
|
@@ -15211,7 +15211,7 @@ function Wd(e, t, n) {
|
|
|
15211
15211
|
)}"${ie}>${S}</span>`;
|
|
15212
15212
|
}
|
|
15213
15213
|
if (M !== "") {
|
|
15214
|
-
let Y =
|
|
15214
|
+
let Y = dr(v.style.cssText);
|
|
15215
15215
|
if (N) {
|
|
15216
15216
|
const D = v.closest(
|
|
15217
15217
|
"#luckysheet-input-box"
|
|
@@ -15255,12 +15255,12 @@ function Wd(e, t, n) {
|
|
|
15255
15255
|
const he = K[pe];
|
|
15256
15256
|
W += `<span style="${tt(
|
|
15257
15257
|
he.style.cssText
|
|
15258
|
-
)}"${
|
|
15258
|
+
)}"${fr(he)}>${he.innerHTML}</span>`;
|
|
15259
15259
|
}
|
|
15260
15260
|
if (U !== "" && (W += `<span style="${tt(
|
|
15261
15261
|
v.style.cssText
|
|
15262
|
-
)}"${
|
|
15263
|
-
const pe =
|
|
15262
|
+
)}"${fr(v)}>${U}</span>`), G !== "") {
|
|
15263
|
+
const pe = dr(v.style.cssText);
|
|
15264
15264
|
W += `<span style="${tt(
|
|
15265
15265
|
pe
|
|
15266
15266
|
)}" data-link-type="${tt(
|
|
@@ -15269,7 +15269,7 @@ function Wd(e, t, n) {
|
|
|
15269
15269
|
}
|
|
15270
15270
|
if (C < N)
|
|
15271
15271
|
for (let pe = C + 1; pe < N; pe += 1) {
|
|
15272
|
-
const he = K[pe], Q =
|
|
15272
|
+
const he = K[pe], Q = dr(he.style.cssText);
|
|
15273
15273
|
W += `<span style="${tt(
|
|
15274
15274
|
Q
|
|
15275
15275
|
)}" data-link-type="${tt(
|
|
@@ -15277,7 +15277,7 @@ function Wd(e, t, n) {
|
|
|
15277
15277
|
)}" data-link-address="${tt(n)}">${he.innerHTML}</span>`;
|
|
15278
15278
|
}
|
|
15279
15279
|
if (ie !== "") {
|
|
15280
|
-
const pe =
|
|
15280
|
+
const pe = dr(_.style.cssText);
|
|
15281
15281
|
W += `<span style="${tt(
|
|
15282
15282
|
pe
|
|
15283
15283
|
)}" data-link-type="${tt(
|
|
@@ -15286,12 +15286,12 @@ function Wd(e, t, n) {
|
|
|
15286
15286
|
}
|
|
15287
15287
|
O !== "" && (W += `<span style="${tt(
|
|
15288
15288
|
_.style.cssText
|
|
15289
|
-
)}"${
|
|
15289
|
+
)}"${fr(_)}>${O}</span>`);
|
|
15290
15290
|
for (let pe = N + 1; pe < K.length; pe += 1) {
|
|
15291
15291
|
const he = K[pe];
|
|
15292
15292
|
W += `<span style="${tt(
|
|
15293
15293
|
he.style.cssText
|
|
15294
|
-
)}"${
|
|
15294
|
+
)}"${fr(he)}>${he.innerHTML}</span>`;
|
|
15295
15295
|
}
|
|
15296
15296
|
l.innerHTML = W, K = l.querySelectorAll("span");
|
|
15297
15297
|
const Y = U === "" ? C : C + 1, D = O === "" ? N : N + 1;
|
|
@@ -15318,7 +15318,7 @@ function Du(e) {
|
|
|
15318
15318
|
if (!(!r || !a) && !(r.linkType !== a.linkType || r.linkAddress !== a.linkAddress))
|
|
15319
15319
|
return r;
|
|
15320
15320
|
}
|
|
15321
|
-
function
|
|
15321
|
+
function W1(e) {
|
|
15322
15322
|
const t = window.getSelection();
|
|
15323
15323
|
if (!(t != null && t.rangeCount) || !t.anchorNode || !e.contains(t.anchorNode))
|
|
15324
15324
|
return;
|
|
@@ -15388,7 +15388,7 @@ function Cs(e, t, n) {
|
|
|
15388
15388
|
const a = '"Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif';
|
|
15389
15389
|
let l = a;
|
|
15390
15390
|
if (n) {
|
|
15391
|
-
const { fontarray: o } =
|
|
15391
|
+
const { fontarray: o } = It(n);
|
|
15392
15392
|
if (!e.ff)
|
|
15393
15393
|
l = `${Ts(o[0])}, ${a}`;
|
|
15394
15394
|
else {
|
|
@@ -15431,7 +15431,7 @@ function Qd(e) {
|
|
|
15431
15431
|
const t = e.measureText("田");
|
|
15432
15432
|
return !p.isNil(t.actualBoundingBoxAscent);
|
|
15433
15433
|
}
|
|
15434
|
-
function
|
|
15434
|
+
function mr(e, t, n, r) {
|
|
15435
15435
|
const { left: a } = r, { top: l } = r, { width: o } = r, { asc: i } = r, { desc: s } = r, { fs: u } = r;
|
|
15436
15436
|
if (e.wrap === !0)
|
|
15437
15437
|
return;
|
|
@@ -15488,7 +15488,7 @@ function Lu(e, t, n, r, a) {
|
|
|
15488
15488
|
if (Te === "" && fe !== V.length - 1)
|
|
15489
15489
|
$.push({
|
|
15490
15490
|
fontset: W,
|
|
15491
|
-
fc: Y ||
|
|
15491
|
+
fc: Y || gr.cellText,
|
|
15492
15492
|
cl: D || 0,
|
|
15493
15493
|
un: pe || 0,
|
|
15494
15494
|
wrap: !0,
|
|
@@ -15498,7 +15498,7 @@ function Lu(e, t, n, r, a) {
|
|
|
15498
15498
|
if (he)
|
|
15499
15499
|
$.push({
|
|
15500
15500
|
fontset: W,
|
|
15501
|
-
fc: Y ||
|
|
15501
|
+
fc: Y || gr.cellText,
|
|
15502
15502
|
cl: D || 0,
|
|
15503
15503
|
un: pe || 0,
|
|
15504
15504
|
v: Te,
|
|
@@ -15516,7 +15516,7 @@ function Lu(e, t, n, r, a) {
|
|
|
15516
15516
|
const H = q[E];
|
|
15517
15517
|
$.push({
|
|
15518
15518
|
fontset: W,
|
|
15519
|
-
fc: Y ||
|
|
15519
|
+
fc: Y || gr.cellText,
|
|
15520
15520
|
cl: D || 0,
|
|
15521
15521
|
un: pe || 0,
|
|
15522
15522
|
v: H,
|
|
@@ -15527,7 +15527,7 @@ function Lu(e, t, n, r, a) {
|
|
|
15527
15527
|
}
|
|
15528
15528
|
fe !== V.length - 1 && ($.push({
|
|
15529
15529
|
fontset: W,
|
|
15530
|
-
fc: Y ||
|
|
15530
|
+
fc: Y || gr.cellText,
|
|
15531
15531
|
cl: D || 0,
|
|
15532
15532
|
un: pe || 0,
|
|
15533
15533
|
wrap: !0,
|
|
@@ -15630,7 +15630,7 @@ function Lu(e, t, n, r, a) {
|
|
|
15630
15630
|
let E = c + pe;
|
|
15631
15631
|
d === "0" ? E = l / 2 + pe - G / 2 + c * Y.length : d === "2" && (E = l + pe - G + c);
|
|
15632
15632
|
let H = o - f + fe - Q;
|
|
15633
|
-
m === "0" ? H = o / 2 + fe - Q / 2 : m === "1" && (H = f + fe), fe += q.height, q.left = E, q.top = H,
|
|
15633
|
+
m === "0" ? H = o / 2 + fe - Q / 2 : m === "1" && (H = f + fe), fe += q.height, q.left = E, q.top = H, mr(q, _, T, {
|
|
15634
15634
|
width: z,
|
|
15635
15635
|
height: q.height,
|
|
15636
15636
|
left: E,
|
|
@@ -15968,7 +15968,7 @@ function Lu(e, t, n, r, a) {
|
|
|
15968
15968
|
const X = H + ee.asc, qe = H / Math.tan(P) - Ce + K;
|
|
15969
15969
|
d === "0" ? m === "0" ? (we = qe + l / 2 - ie / 2 + j * Math.cos(P) / 2, se = X + o / 2 - O / 2 - j * Math.cos(P) / 2) : m === "1" ? (we = qe + l / 2 - ie / 2, se = X - (O / 2 - x / 2)) : m === "2" && (we = qe + l / 2 - ie / 2 + j * Math.cos(P), se = X + o - x / 2 - O / 2 - j * Math.cos(P)) : d === "1" ? m === "0" ? (we = qe - x * Math.sin(P) / 2 + j * Math.cos(P) / 2, se = X + o / 2 + x * Math.cos(P) / 2 - j * Math.cos(P) / 2) : m === "1" ? (we = qe - x * Math.sin(P), se = X + x * Math.cos(P)) : m === "2" && (we = qe + j * Math.cos(P), se = X + o - j * Math.cos(P)) : d === "2" && (m === "0" ? (we = qe + l - J / 2 - (K / 2 + O / 2 / Math.tan(P)) + j * Math.cos(P) / 2, se = X + o / 2 - O / 2 - j * Math.cos(P) / 2) : m === "1" ? (we = qe + l - ie + te, se = X - O) : m === "2" && (we = qe + l - J * Math.cos(P) + j * Math.cos(P), se = X + o - J * Math.sin(P) - j * Math.cos(P)));
|
|
15970
15970
|
}
|
|
15971
|
-
ue.left = we, ue.top = se,
|
|
15971
|
+
ue.left = we, ue.top = se, mr(ue, _, T, {
|
|
15972
15972
|
width: ue.width,
|
|
15973
15973
|
height: ue.height,
|
|
15974
15974
|
left: (we || 0) - ue.width,
|
|
@@ -15992,7 +15992,7 @@ function Lu(e, t, n, r, a) {
|
|
|
15992
15992
|
let we, se;
|
|
15993
15993
|
if (y !== 0) {
|
|
15994
15994
|
const X = H + ee.asc, qe = (O - H) / Math.tan(P) + Ce;
|
|
15995
|
-
d === "0" ? m === "0" ? (we = qe + l / 2 - ie / 2 - j * Math.cos(P) / 2, se = X + o / 2 - O / 2 + j * Math.cos(P) / 2) : m === "1" ? (we = qe + l / 2 - ie / 2 - j * Math.cos(P) / 2, se = X - (O / 2 - x / 2) + j * Math.cos(P) / 2) : m === "2" && (we = qe + l / 2 - ie / 2 - j * Math.cos(P), se = X + o - x / 2 - O / 2 - j * Math.cos(P)) : d === "1" ? m === "0" ? (we = qe - x * Math.sin(P) / 2 - j * Math.cos(P) / 2, se = X - O + o / 2 - x * Math.cos(P) / 2 - j * Math.cos(P) / 2) : m === "1" ? (we = qe, se = X - O) : m === "2" && (we = qe - x * Math.sin(P) - j * Math.cos(P), se = X - O + o - x * Math.cos(P) - j * Math.cos(P)) : d === "2" && (m === "0" ? (we = qe + l - J / 2 - ie / 2 - j * Math.cos(P) / 2, se = X + o / 2 - O / 2 - j * Math.cos(P) / 2) : m === "1" ? (we = qe + l - J * Math.cos(P), se = X + x * Math.cos(P)) : m === "2" && (we = qe + l - ie - j * Math.cos(P) + te, se = X + o - j * Math.cos(P))),
|
|
15995
|
+
d === "0" ? m === "0" ? (we = qe + l / 2 - ie / 2 - j * Math.cos(P) / 2, se = X + o / 2 - O / 2 + j * Math.cos(P) / 2) : m === "1" ? (we = qe + l / 2 - ie / 2 - j * Math.cos(P) / 2, se = X - (O / 2 - x / 2) + j * Math.cos(P) / 2) : m === "2" && (we = qe + l / 2 - ie / 2 - j * Math.cos(P), se = X + o - x / 2 - O / 2 - j * Math.cos(P)) : d === "1" ? m === "0" ? (we = qe - x * Math.sin(P) / 2 - j * Math.cos(P) / 2, se = X - O + o / 2 - x * Math.cos(P) / 2 - j * Math.cos(P) / 2) : m === "1" ? (we = qe, se = X - O) : m === "2" && (we = qe - x * Math.sin(P) - j * Math.cos(P), se = X - O + o - x * Math.cos(P) - j * Math.cos(P)) : d === "2" && (m === "0" ? (we = qe + l - J / 2 - ie / 2 - j * Math.cos(P) / 2, se = X + o / 2 - O / 2 - j * Math.cos(P) / 2) : m === "1" ? (we = qe + l - J * Math.cos(P), se = X + x * Math.cos(P)) : m === "2" && (we = qe + l - ie - j * Math.cos(P) + te, se = X + o - j * Math.cos(P))), mr(ue, _, T, {
|
|
15996
15996
|
width: ue.width,
|
|
15997
15997
|
height: ue.height,
|
|
15998
15998
|
left: we,
|
|
@@ -16002,7 +16002,7 @@ function Lu(e, t, n, r, a) {
|
|
|
16002
16002
|
fs: ue.fs
|
|
16003
16003
|
});
|
|
16004
16004
|
} else
|
|
16005
|
-
we = c + Ce, d === "0" ? we = l / 2 + Ce - ee.width / 2 : d === "2" && (we = l + Ce - ee.width), se = o - f + H + ee.asc - O, m === "0" ? se = o / 2 + H - O / 2 + ee.asc : m === "1" && (se = f + H + ee.asc),
|
|
16005
|
+
we = c + Ce, d === "0" ? we = l / 2 + Ce - ee.width / 2 : d === "2" && (we = l + Ce - ee.width), se = o - f + H + ee.asc - O, m === "0" ? se = o / 2 + H - O / 2 + ee.asc : m === "1" && (se = f + H + ee.asc), mr(ue, _, T, {
|
|
16006
16006
|
width: ue.width,
|
|
16007
16007
|
height: ue.height,
|
|
16008
16008
|
left: we,
|
|
@@ -16035,7 +16035,7 @@ function Lu(e, t, n, r, a) {
|
|
|
16035
16035
|
left: fe,
|
|
16036
16036
|
top: Te
|
|
16037
16037
|
};
|
|
16038
|
-
|
|
16038
|
+
mr(q, _, T, {
|
|
16039
16039
|
width: O,
|
|
16040
16040
|
left: fe,
|
|
16041
16041
|
top: Te,
|
|
@@ -16047,7 +16047,7 @@ function Lu(e, t, n, r, a) {
|
|
|
16047
16047
|
}
|
|
16048
16048
|
return w;
|
|
16049
16049
|
}
|
|
16050
|
-
const
|
|
16050
|
+
const tr = {
|
|
16051
16051
|
v: "#VALUE!",
|
|
16052
16052
|
// 错误的参数或运算符
|
|
16053
16053
|
n: "#NAME?",
|
|
@@ -16068,7 +16068,7 @@ const er = {
|
|
|
16068
16068
|
// 循环引用
|
|
16069
16069
|
}, Jd = {
|
|
16070
16070
|
[ll]: "Invalid calculation: the divisor (second value) cannot be zero",
|
|
16071
|
-
[
|
|
16071
|
+
[er]: "Wrong function name or parameter",
|
|
16072
16072
|
[Tu]: "Formula returned null",
|
|
16073
16073
|
[Cu]: "Invalid number",
|
|
16074
16074
|
[Cr]: "Invalid reference",
|
|
@@ -16079,7 +16079,7 @@ const er = {
|
|
|
16079
16079
|
function em(e) {
|
|
16080
16080
|
return Jd[e];
|
|
16081
16081
|
}
|
|
16082
|
-
const tm = Object.values(
|
|
16082
|
+
const tm = Object.values(tr);
|
|
16083
16083
|
function Lo(e) {
|
|
16084
16084
|
return tm.includes(e);
|
|
16085
16085
|
}
|
|
@@ -16675,7 +16675,7 @@ function Oa(e) {
|
|
|
16675
16675
|
function rm(e) {
|
|
16676
16676
|
return Oa(e) !== null;
|
|
16677
16677
|
}
|
|
16678
|
-
function
|
|
16678
|
+
function nr(e) {
|
|
16679
16679
|
return e === null || e.toString().length < 5 ? !1 : !!rm(e);
|
|
16680
16680
|
}
|
|
16681
16681
|
function jt(e, t) {
|
|
@@ -16683,7 +16683,7 @@ function jt(e, t) {
|
|
|
16683
16683
|
}
|
|
16684
16684
|
function Bu(e) {
|
|
16685
16685
|
const t = {};
|
|
16686
|
-
return
|
|
16686
|
+
return nr(e) && (t.date = !0), !Number.isNaN(parseFloat(e)) && !xu(e) && (t.num = !0), t;
|
|
16687
16687
|
}
|
|
16688
16688
|
function cn(e, t, n, r, a, l) {
|
|
16689
16689
|
let o = !1;
|
|
@@ -17822,7 +17822,7 @@ function Pu(e) {
|
|
|
17822
17822
|
const t = e.trim().replace(/,/g, "");
|
|
17823
17823
|
return /^-?\d+$/.test(t) ? (t.startsWith("-") ? t.slice(1) : t).length >= 16 : !1;
|
|
17824
17824
|
}
|
|
17825
|
-
function
|
|
17825
|
+
function yr(e) {
|
|
17826
17826
|
const t = Math.abs(e);
|
|
17827
17827
|
if (e === 1 / 0 || e === -1 / 0) return String(e);
|
|
17828
17828
|
if (fl(t)) {
|
|
@@ -18208,7 +18208,7 @@ function pm(e) {
|
|
|
18208
18208
|
let n = 1, r = e.replace(/([\d]),([\d])/g, "$1$2").replace(/[$]/g, "").replace(/[%]/g, () => (n *= 100, ""));
|
|
18209
18209
|
return t = Number(r), !Number.isNaN(t) || (r = r.replace(/[(](.*)[)]/, (a, l) => (n = -n, l)), t = Number(r), !Number.isNaN(t)) ? t / n : t;
|
|
18210
18210
|
}
|
|
18211
|
-
function
|
|
18211
|
+
function Y1(e, t, n) {
|
|
18212
18212
|
var a, l, o, i, s, u;
|
|
18213
18213
|
let r = at(e, t, n, "m");
|
|
18214
18214
|
return r == null ? r = at(e, t, n, "v") : Number.isNaN(pm(r)) ? ((o = (l = (a = n[e]) == null ? void 0 : a[t]) == null ? void 0 : l.ct) == null ? void 0 : o.t) === "d" || ((u = (s = (i = n[e]) == null ? void 0 : i[t]) == null ? void 0 : s.ct) == null ? void 0 : u.t) === "b" || (r = at(e, t, n, "v")) : p.isString(r) && r.indexOf("%") > -1 || (r = at(e, t, n, "v")), r;
|
|
@@ -18270,8 +18270,8 @@ function Wn(e, t) {
|
|
|
18270
18270
|
let n = p.sortedIndex(t, e);
|
|
18271
18271
|
return n >= t.length && e > 0 ? n = t.length - 1 : n === -1 && e <= 0 && (n = 0), Po(n, t);
|
|
18272
18272
|
}
|
|
18273
|
-
const gm = 15, ym = 50,
|
|
18274
|
-
function
|
|
18273
|
+
const gm = 15, ym = 50, V1 = 100, G1 = 300, j1 = 3e4, bm = "fortune-formula-execution-debug";
|
|
18274
|
+
function X1() {
|
|
18275
18275
|
if (typeof window > "u") return !1;
|
|
18276
18276
|
try {
|
|
18277
18277
|
return localStorage.getItem(bm) === "true";
|
|
@@ -18283,7 +18283,7 @@ function Ho(e) {
|
|
|
18283
18283
|
return !!(e.isFormulaCalculating && e.formulaAsyncEval);
|
|
18284
18284
|
}
|
|
18285
18285
|
const wm = /\b(SEQUENCE|FILTER|SORT|SORTBY|UNIQUE|TRANSPOSE|ARRAYFORMULA|INDIRECT|OFFSET|INDEX|SPARKLINE)\s*\(/i;
|
|
18286
|
-
function
|
|
18286
|
+
function Z1(e) {
|
|
18287
18287
|
return wm.test(e);
|
|
18288
18288
|
}
|
|
18289
18289
|
function Ir(e, t) {
|
|
@@ -18319,7 +18319,7 @@ function _m(e) {
|
|
|
18319
18319
|
function Tm(e) {
|
|
18320
18320
|
_m(e);
|
|
18321
18321
|
}
|
|
18322
|
-
function
|
|
18322
|
+
function rr(e, t, n, r, a) {
|
|
18323
18323
|
var o, i, s, u;
|
|
18324
18324
|
if (t === e.currentSheetId)
|
|
18325
18325
|
return;
|
|
@@ -18333,7 +18333,7 @@ function Cm(e, t, n = void 0, r = !1, a = void 0, l = void 0) {
|
|
|
18333
18333
|
e.allowEdit === !1
|
|
18334
18334
|
)
|
|
18335
18335
|
return;
|
|
18336
|
-
const o = e.luckysheetfile.length, i = n ?? (t == null ? void 0 : t.generateSheetId()), s = a ||
|
|
18336
|
+
const o = e.luckysheetfile.length, i = n ?? (t == null ? void 0 : t.generateSheetId()), s = a || jg(e.luckysheetfile, r, e);
|
|
18337
18337
|
p.isNil(l) || (delete l.data, e.luckysheetfile.forEach((h) => (h.order = h.order < l.order ? h.order : h.order + 1, h)));
|
|
18338
18338
|
const u = p.isNil(l) ? {
|
|
18339
18339
|
name: a === void 0 ? s : a,
|
|
@@ -18393,7 +18393,7 @@ function Nm(e, t) {
|
|
|
18393
18393
|
} else n.celldata != null && vu(e, o, n);
|
|
18394
18394
|
});
|
|
18395
18395
|
}
|
|
18396
|
-
function
|
|
18396
|
+
function K1(e, t) {
|
|
18397
18397
|
var o, i;
|
|
18398
18398
|
const n = ke(e, e.currentSheetId);
|
|
18399
18399
|
if (e.allowEdit === !1) {
|
|
@@ -18401,7 +18401,7 @@ function Z1(e, t) {
|
|
|
18401
18401
|
t.innerText = e.luckysheetfile[n].name;
|
|
18402
18402
|
return;
|
|
18403
18403
|
}
|
|
18404
|
-
const { sheetconfig: r } =
|
|
18404
|
+
const { sheetconfig: r } = It(e), a = t.dataset.oldText || "", l = t.innerText;
|
|
18405
18405
|
if (((i = (o = e.hooks).beforeUpdateSheetName) == null ? void 0 : i.call(o, e.currentSheetId, a, l)) !== !1) {
|
|
18406
18406
|
if (l.length === 0)
|
|
18407
18407
|
throw t.innerText = a, new Error(r.sheetNamecannotIsEmptyError);
|
|
@@ -18420,7 +18420,7 @@ function Z1(e, t) {
|
|
|
18420
18420
|
}
|
|
18421
18421
|
}
|
|
18422
18422
|
}
|
|
18423
|
-
function
|
|
18423
|
+
function Q1(e, t, n) {
|
|
18424
18424
|
if (t <= 0 && n <= 0)
|
|
18425
18425
|
return e;
|
|
18426
18426
|
if (e.length + t >= 1e4)
|
|
@@ -18653,7 +18653,7 @@ function Vu(e, t) {
|
|
|
18653
18653
|
required: r
|
|
18654
18654
|
}, new Set(r);
|
|
18655
18655
|
}
|
|
18656
|
-
function
|
|
18656
|
+
function J1(e) {
|
|
18657
18657
|
const t = Vu(e, e.currentSheetId);
|
|
18658
18658
|
return e.luckysheetfile.forEach((n) => {
|
|
18659
18659
|
var r;
|
|
@@ -18672,7 +18672,7 @@ function xm(e, t) {
|
|
|
18672
18672
|
const r = e.luckysheetfile[n];
|
|
18673
18673
|
r != null && r.data && (r.celldata = Ma(r.data), delete r.data);
|
|
18674
18674
|
}
|
|
18675
|
-
function
|
|
18675
|
+
function ey(e, t, n) {
|
|
18676
18676
|
if (n && n !== t) {
|
|
18677
18677
|
En();
|
|
18678
18678
|
const a = ke(e, n);
|
|
@@ -18739,7 +18739,7 @@ function Gu(e) {
|
|
|
18739
18739
|
const t = e.trim();
|
|
18740
18740
|
return !(!t || !/^[A-Za-z_][A-Za-z0-9._]*$/.test(t) || /^[A-Za-z]+\d+$/i.test(t) || /^[A-Za-z]+\d+:[A-Za-z]+\d+$/i.test(t));
|
|
18741
18741
|
}
|
|
18742
|
-
function
|
|
18742
|
+
function ty(e, t) {
|
|
18743
18743
|
return Fr(
|
|
18744
18744
|
e,
|
|
18745
18745
|
t.sheetId,
|
|
@@ -18751,7 +18751,7 @@ function ey(e, t) {
|
|
|
18751
18751
|
"__named_range_list__"
|
|
18752
18752
|
) || "";
|
|
18753
18753
|
}
|
|
18754
|
-
function
|
|
18754
|
+
function ny(e) {
|
|
18755
18755
|
var r, a;
|
|
18756
18756
|
const t = p.last(e.luckysheet_select_save);
|
|
18757
18757
|
if (!((r = t == null ? void 0 : t.row) != null && r.length) || !((a = t == null ? void 0 : t.column) != null && a.length)) return null;
|
|
@@ -18781,7 +18781,7 @@ function Xu(e, t, n) {
|
|
|
18781
18781
|
}
|
|
18782
18782
|
return a.find((l) => l.scope !== "sheet") ?? a[0] ?? null;
|
|
18783
18783
|
}
|
|
18784
|
-
function
|
|
18784
|
+
function ry(e, t) {
|
|
18785
18785
|
const n = t.name.trim();
|
|
18786
18786
|
if (!Gu(n))
|
|
18787
18787
|
return {
|
|
@@ -18803,9 +18803,9 @@ function ny(e, t) {
|
|
|
18803
18803
|
scope: t.scope ?? "workbook",
|
|
18804
18804
|
localSheetId: t.localSheetId
|
|
18805
18805
|
};
|
|
18806
|
-
return e.definedNames || (e.definedNames = []), e.definedNames.push(r),
|
|
18806
|
+
return e.definedNames || (e.definedNames = []), e.definedNames.push(r), lr(e), { ok: !0, namedRange: r };
|
|
18807
18807
|
}
|
|
18808
|
-
function
|
|
18808
|
+
function ay(e, t, n) {
|
|
18809
18809
|
const r = e.definedNames || [], a = r.findIndex((c) => c.id === t);
|
|
18810
18810
|
if (a < 0) return { ok: !1, error: "Named range not found." };
|
|
18811
18811
|
const l = r[a], o = (n.name ?? l.name).trim();
|
|
@@ -18828,13 +18828,13 @@ function ry(e, t, n) {
|
|
|
18828
18828
|
column: [s.column[0], s.column[1]]
|
|
18829
18829
|
}
|
|
18830
18830
|
};
|
|
18831
|
-
return r[a] = u,
|
|
18831
|
+
return r[a] = u, lr(e), { ok: !0, namedRange: u };
|
|
18832
18832
|
}
|
|
18833
|
-
function
|
|
18833
|
+
function oy(e, t) {
|
|
18834
18834
|
const n = e.definedNames || [], r = n.filter((a) => a.id !== t);
|
|
18835
|
-
return r.length === n.length ? !1 : (e.definedNames = r,
|
|
18835
|
+
return r.length === n.length ? !1 : (e.definedNames = r, lr(e), !0);
|
|
18836
18836
|
}
|
|
18837
|
-
function
|
|
18837
|
+
function ly(e, t) {
|
|
18838
18838
|
const n = (e.definedNames || []).find((l) => l.id === t);
|
|
18839
18839
|
if (!n) return !1;
|
|
18840
18840
|
n.sheetId !== e.currentSheetId && (e.sheetScrollRecord[e.currentSheetId] = {
|
|
@@ -18843,7 +18843,7 @@ function oy(e, t) {
|
|
|
18843
18843
|
luckysheet_select_status: e.luckysheet_select_status,
|
|
18844
18844
|
luckysheet_select_save: e.luckysheet_select_save,
|
|
18845
18845
|
luckysheet_selection_range: e.luckysheet_selection_range
|
|
18846
|
-
},
|
|
18846
|
+
}, rr(e, n.sheetId));
|
|
18847
18847
|
const r = Ht(e, [
|
|
18848
18848
|
{
|
|
18849
18849
|
row: [n.range.row[0], n.range.row[1]],
|
|
@@ -18860,11 +18860,11 @@ function oy(e, t) {
|
|
|
18860
18860
|
luckysheet_select_status: !1
|
|
18861
18861
|
}, !0;
|
|
18862
18862
|
}
|
|
18863
|
-
function
|
|
18863
|
+
function iy() {
|
|
18864
18864
|
var e;
|
|
18865
18865
|
(e = document.getElementById("named-ranges-button")) == null || e.click();
|
|
18866
18866
|
}
|
|
18867
|
-
function
|
|
18867
|
+
function lr(e) {
|
|
18868
18868
|
var n;
|
|
18869
18869
|
const t = (n = e.hooks) == null ? void 0 : n.definedNamesChange;
|
|
18870
18870
|
t && requestAnimationFrame(() => {
|
|
@@ -18935,7 +18935,7 @@ function Um(e, t, n, r, a, l) {
|
|
|
18935
18935
|
);
|
|
18936
18936
|
f && (f.row[0] === c.range.row[0] && f.row[1] === c.range.row[1] && f.column[0] === c.range.column[0] && f.column[1] === c.range.column[1] || (o[u] = { ...c, range: f }, i.push(c.name), s = !0));
|
|
18937
18937
|
}
|
|
18938
|
-
return s &&
|
|
18938
|
+
return s && lr(e), i;
|
|
18939
18939
|
}
|
|
18940
18940
|
function zm(e, t, n, r, a) {
|
|
18941
18941
|
const l = e.definedNames || [];
|
|
@@ -18953,13 +18953,13 @@ function zm(e, t, n, r, a) {
|
|
|
18953
18953
|
}
|
|
18954
18954
|
u.row[0] !== s.range.row[0] || u.row[1] !== s.range.row[1] || u.column[0] !== s.range.column[0] || u.column[1] !== s.range.column[1] ? (o.push(s.name), i.push({ ...s, range: u })) : i.push(s);
|
|
18955
18955
|
}
|
|
18956
|
-
return (i.length !== l.length || o.length > 0) && (e.definedNames = i,
|
|
18956
|
+
return (i.length !== l.length || o.length > 0) && (e.definedNames = i, lr(e)), o;
|
|
18957
18957
|
}
|
|
18958
|
-
function
|
|
18958
|
+
function sy(e, t) {
|
|
18959
18959
|
const n = e.definedNames || [];
|
|
18960
18960
|
if (!n.length) return [];
|
|
18961
18961
|
const r = [], a = n.filter((l) => l.sheetId === t || l.localSheetId === t ? (r.push(l.name), !1) : !0);
|
|
18962
|
-
return r.length && (e.definedNames = a,
|
|
18962
|
+
return r.length && (e.definedNames = a, lr(e)), r;
|
|
18963
18963
|
}
|
|
18964
18964
|
let wn = 0, Wm = 0, Nr = [];
|
|
18965
18965
|
const Ym = {
|
|
@@ -19349,7 +19349,7 @@ class Qu {
|
|
|
19349
19349
|
function Ju(e) {
|
|
19350
19350
|
return new DOMParser().parseFromString(e, "text/html").body.childNodes[0];
|
|
19351
19351
|
}
|
|
19352
|
-
function
|
|
19352
|
+
function Mt(e) {
|
|
19353
19353
|
const t = e.split("!"), n = t[t.length - 1], r = /^(\$?[A-Za-z]+\$?\d+|\$?[A-Za-z]+|\$?\d+):(\$?[A-Za-z]+\$?\d+|\$?[A-Za-z]+|\$?\d+)$/;
|
|
19354
19354
|
if (n.includes(":") && !r.test(n))
|
|
19355
19355
|
return !1;
|
|
@@ -19439,12 +19439,12 @@ function ah(e, t, n, r, a, l, o) {
|
|
|
19439
19439
|
try {
|
|
19440
19440
|
e.calculateSheetId = a;
|
|
19441
19441
|
const i = t.split(",")[t.split(",").length - 1].split("'")[1].split("'")[0], s = p.trim(i);
|
|
19442
|
-
|
|
19442
|
+
Mt(s) && typeof o == "function" && o(s);
|
|
19443
19443
|
} catch {
|
|
19444
19444
|
}
|
|
19445
19445
|
}
|
|
19446
19446
|
}
|
|
19447
|
-
function
|
|
19447
|
+
function br(e, t, n, r, a, l, o) {
|
|
19448
19448
|
var g;
|
|
19449
19449
|
t.substring(0, 1) === "=" && (t = t.substring(1));
|
|
19450
19450
|
const i = t.split("");
|
|
@@ -19469,7 +19469,7 @@ function yr(e, t, n, r, a, l, o) {
|
|
|
19469
19469
|
} else h.length === 0 ? (c += "(", h.push(0), u = "") : (h.push(0), u += y);
|
|
19470
19470
|
else if (y === ")" && f.squote === 0 && f.dquote === 0 && f.braces === 0)
|
|
19471
19471
|
if (h.pop(), h.length === 0) {
|
|
19472
|
-
let b =
|
|
19472
|
+
let b = br(
|
|
19473
19473
|
e,
|
|
19474
19474
|
u,
|
|
19475
19475
|
n,
|
|
@@ -19491,7 +19491,7 @@ function yr(e, t, n, r, a, l, o) {
|
|
|
19491
19491
|
u += "'", f.squote > 0 ? s < i.length - 1 && i[s + 1] === "'" ? (s += 1, u += "'") : f.squote -= 1 : f.squote += 1;
|
|
19492
19492
|
else if (y === "," && f.squote === 0 && f.dquote === 0 && f.braces === 0)
|
|
19493
19493
|
if (h.length <= 1) {
|
|
19494
|
-
let b =
|
|
19494
|
+
let b = br(
|
|
19495
19495
|
e,
|
|
19496
19496
|
u,
|
|
19497
19497
|
n,
|
|
@@ -19509,7 +19509,7 @@ function yr(e, t, n, r, a, l, o) {
|
|
|
19509
19509
|
if (s + 1 < i.length && (b = i[s + 1]), y + b in st) {
|
|
19510
19510
|
if (h.length === 0) {
|
|
19511
19511
|
if (p.trim(u).length > 0 ? m.unshift(
|
|
19512
|
-
|
|
19512
|
+
br(
|
|
19513
19513
|
e,
|
|
19514
19514
|
p.trim(u),
|
|
19515
19515
|
n,
|
|
@@ -19529,7 +19529,7 @@ function yr(e, t, n, r, a, l, o) {
|
|
|
19529
19529
|
s += 1;
|
|
19530
19530
|
} else if (h.length === 0) {
|
|
19531
19531
|
if (p.trim(u).length > 0 ? m.unshift(
|
|
19532
|
-
|
|
19532
|
+
br(
|
|
19533
19533
|
e,
|
|
19534
19534
|
p.trim(u),
|
|
19535
19535
|
n,
|
|
@@ -19552,10 +19552,10 @@ function yr(e, t, n, r, a, l, o) {
|
|
|
19552
19552
|
f.dquote === 0 && f.squote === 0 ? u += p.trim(y) : u += y;
|
|
19553
19553
|
if (s === i.length - 1) {
|
|
19554
19554
|
let b = "", w = p.trim(u).replace(/'/g, "\\'");
|
|
19555
|
-
if (
|
|
19555
|
+
if (Mt(w) && w.substring(0, 1) !== ":")
|
|
19556
19556
|
b = `luckysheet_getcelldata('${w}')`;
|
|
19557
19557
|
else if (w.substring(0, 1) === ":")
|
|
19558
|
-
w = w.substring(1),
|
|
19558
|
+
w = w.substring(1), Mt(w) && (b = `luckysheet_getSpecialReference(false,${c},'${w}')`);
|
|
19559
19559
|
else {
|
|
19560
19560
|
u = p.trim(u);
|
|
19561
19561
|
const v = /{.*?}/;
|
|
@@ -19714,8 +19714,8 @@ const uh = /\b(INDIRECT|OFFSET)\s*\(/i;
|
|
|
19714
19714
|
function Ot(e, t, n, r, a, l, o, i) {
|
|
19715
19715
|
var N, A;
|
|
19716
19716
|
const s = t;
|
|
19717
|
-
if (p.isNil(a) && (a = e.currentSheetId), (t != null && t.toUpperCase().includes("NETWORKDAYS.INTL") || t != null && t.toUpperCase().includes("WORKDAY.INTL")) && (t = ih(t)), t.indexOf(
|
|
19718
|
-
return [!1,
|
|
19717
|
+
if (p.isNil(a) && (a = e.currentSheetId), (t != null && t.toUpperCase().includes("NETWORKDAYS.INTL") || t != null && t.toUpperCase().includes("WORKDAY.INTL")) && (t = ih(t)), t.indexOf(tr.r) > -1)
|
|
19718
|
+
return [!1, tr.r, t];
|
|
19719
19719
|
lh(t) || (t += ")"), e.calculateSheetId = a;
|
|
19720
19720
|
const u = a || e.currentSheetId, c = `${u}:${n}:${r}`, f = /* @__PURE__ */ new Set();
|
|
19721
19721
|
e.formulaCache.formulasWithWideRangeDeps.delete(c), e.formulaCache.activeDepCollection = {
|
|
@@ -20131,7 +20131,7 @@ function Bt(e, t, n, r, a, l, o = !1) {
|
|
|
20131
20131
|
continue;
|
|
20132
20132
|
const G = U.toUpperCase(), ie = G.indexOf("INDIRECT(") > -1 || G.indexOf("OFFSET(") > -1 || G.indexOf("INDEX(") > -1, O = [];
|
|
20133
20133
|
if (ie)
|
|
20134
|
-
|
|
20134
|
+
br(
|
|
20135
20135
|
e,
|
|
20136
20136
|
U,
|
|
20137
20137
|
null,
|
|
@@ -20163,7 +20163,7 @@ function Bt(e, t, n, r, a, l, o = !1) {
|
|
|
20163
20163
|
const V = pe[z];
|
|
20164
20164
|
if (V.length <= 1 || V.substring(0, 1) === '"' && V.substring(V.length - 1, 1) === '"')
|
|
20165
20165
|
continue;
|
|
20166
|
-
if (!
|
|
20166
|
+
if (!Mt(V)) {
|
|
20167
20167
|
const Te = Xu(
|
|
20168
20168
|
e.definedNames,
|
|
20169
20169
|
p.trim(V),
|
|
@@ -20416,7 +20416,7 @@ function va(e) {
|
|
|
20416
20416
|
n += va(a);
|
|
20417
20417
|
}), n;
|
|
20418
20418
|
}
|
|
20419
|
-
function
|
|
20419
|
+
function ar(e, t, n, r, a) {
|
|
20420
20420
|
var l, o, i, s;
|
|
20421
20421
|
try {
|
|
20422
20422
|
const u = t, c = document.createRange(), f = window.getSelection(), d = document.querySelector(".luckysheet-formula-text-string");
|
|
@@ -20485,7 +20485,7 @@ function gh(e, t, n, r) {
|
|
|
20485
20485
|
const s = hh(e, n, r);
|
|
20486
20486
|
i = p.isNil(s) ? null : s;
|
|
20487
20487
|
}
|
|
20488
|
-
p.isNil(i) ? (a.selectAllChildren(t), a.collapseToEnd()) :
|
|
20488
|
+
p.isNil(i) ? (a.selectAllChildren(t), a.collapseToEnd()) : ar(
|
|
20489
20489
|
e,
|
|
20490
20490
|
t.querySelectorAll("span")[i[0]],
|
|
20491
20491
|
0,
|
|
@@ -20495,7 +20495,7 @@ function gh(e, t, n, r) {
|
|
|
20495
20495
|
} else document.selection && (e.formulaCache.functionRangeIndex.moveToElementText(t), e.formulaCache.functionRangeIndex.collapse(!1), e.formulaCache.functionRangeIndex.select());
|
|
20496
20496
|
}
|
|
20497
20497
|
function yh(e, t) {
|
|
20498
|
-
const { functionlist: n } =
|
|
20498
|
+
const { functionlist: n } = It(e), r = [], a = [], l = [];
|
|
20499
20499
|
let o = 0;
|
|
20500
20500
|
for (let s = 0; s < n.length; s += 1) {
|
|
20501
20501
|
const u = n[s], { n: c } = u;
|
|
@@ -20537,7 +20537,7 @@ function lc() {
|
|
|
20537
20537
|
}
|
|
20538
20538
|
function Is(e, t, n) {
|
|
20539
20539
|
var c, f, d, m, h, g;
|
|
20540
|
-
const { functionlist: r } =
|
|
20540
|
+
const { functionlist: r } = It(n);
|
|
20541
20541
|
if (p.isEmpty(n.formulaCache.functionlistMap))
|
|
20542
20542
|
for (let y = 0; y < r.length; y += 1)
|
|
20543
20543
|
n.formulaCache.functionlistMap[r[y].n] = r[y];
|
|
@@ -20577,7 +20577,7 @@ function ic(e, t) {
|
|
|
20577
20577
|
(n.textContent || "").replace(/\u200b/g, "")
|
|
20578
20578
|
);
|
|
20579
20579
|
if (r === "=") {
|
|
20580
|
-
const { functionlist: a } =
|
|
20580
|
+
const { functionlist: a } = It(e);
|
|
20581
20581
|
e.defaultCandidates = a.filter((o) => o.t === 20).slice(0, 11);
|
|
20582
20582
|
const l = Is(t, n, e);
|
|
20583
20583
|
e.functionHint = l == null ? void 0 : l.toUpperCase();
|
|
@@ -20609,7 +20609,7 @@ function Fn(e) {
|
|
|
20609
20609
|
return;
|
|
20610
20610
|
a += c;
|
|
20611
20611
|
}
|
|
20612
|
-
if (
|
|
20612
|
+
if (Mt(p.trim(i))) {
|
|
20613
20613
|
const h = Nr.length > wn ? Nr[wn] : wn;
|
|
20614
20614
|
a += `<span class="fortune-formula-functionrange-cell" rangeindex="${h}" dir="auto" style="color:${hl(h)};">${i}</span>`, wn += 1;
|
|
20615
20615
|
} else if (s > 0)
|
|
@@ -20741,7 +20741,7 @@ function uc(e) {
|
|
|
20741
20741
|
const a = parseInt(r, 10);
|
|
20742
20742
|
return Number.isNaN(a) ? null : a;
|
|
20743
20743
|
}
|
|
20744
|
-
function
|
|
20744
|
+
function ir(e) {
|
|
20745
20745
|
const t = window.getSelection();
|
|
20746
20746
|
if (!t || t.rangeCount === 0) return null;
|
|
20747
20747
|
const { anchorNode: n } = t;
|
|
@@ -20789,7 +20789,7 @@ function Th(e, t) {
|
|
|
20789
20789
|
const n = cc(e);
|
|
20790
20790
|
n && Ha(e), vh(e), e.dataVerificationDropDownList = !1;
|
|
20791
20791
|
const r = ke(e, t), a = r != null ? e.luckysheetfile[r] : void 0;
|
|
20792
|
-
return
|
|
20792
|
+
return rr(e, t), (a == null ? void 0 : a.zoomRatio) != null && (e.zoomRatio = a.zoomRatio || 1), n ? (_h(e), "preserved-formula") : "cancel-edit";
|
|
20793
20793
|
}
|
|
20794
20794
|
function fc(e) {
|
|
20795
20795
|
const t = e.formulaCache.rangetosheet;
|
|
@@ -20800,7 +20800,7 @@ function fc(e) {
|
|
|
20800
20800
|
luckysheet_select_status: e.luckysheet_select_status,
|
|
20801
20801
|
luckysheet_select_save: e.luckysheet_select_save,
|
|
20802
20802
|
luckysheet_selection_range: e.luckysheet_selection_range
|
|
20803
|
-
},
|
|
20803
|
+
}, rr(e, t), _n(e, { id: t });
|
|
20804
20804
|
const n = e.sheetScrollRecord[t];
|
|
20805
20805
|
n && (e.scrollLeft = n.scrollLeft ?? 0, e.scrollTop = n.scrollTop ?? 0, e.luckysheet_select_status = n.luckysheet_select_status ?? !1, n.luckysheet_select_save && (e.luckysheet_select_save = n.luckysheet_select_save));
|
|
20806
20806
|
const r = e.luckysheetfile[ke(e, t)];
|
|
@@ -20836,7 +20836,7 @@ function Tl(e) {
|
|
|
20836
20836
|
const t = e.trim();
|
|
20837
20837
|
if (!t.startsWith("=")) return !1;
|
|
20838
20838
|
const n = t.slice(1).trim();
|
|
20839
|
-
return !n || n.includes("(") || n.includes(")") ? !1 :
|
|
20839
|
+
return !n || n.includes("(") || n.includes(")") ? !1 : Mt(n);
|
|
20840
20840
|
}
|
|
20841
20841
|
function dc(e) {
|
|
20842
20842
|
e.formulaCache.rangeSelectionActive = !1, e.formulaCache.keyboardRangeSelectionLock = !0, e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1;
|
|
@@ -20862,11 +20862,11 @@ function Ua(e) {
|
|
|
20862
20862
|
e,
|
|
20863
20863
|
o
|
|
20864
20864
|
);
|
|
20865
|
-
if (Nh(e, o) || s.length > 0 && !
|
|
20865
|
+
if (Nh(e, o) || s.length > 0 && !Mt(s))
|
|
20866
20866
|
return !1;
|
|
20867
20867
|
const c = i.slice(o).replace(/^\s+/, "");
|
|
20868
20868
|
if (c.length === 0) {
|
|
20869
|
-
if (
|
|
20869
|
+
if (ir(e) !== null)
|
|
20870
20870
|
return !0;
|
|
20871
20871
|
const h = Es(i, o);
|
|
20872
20872
|
return h ? !!/^[=,(+\-*/&%^<>]$/.test(h) : !1;
|
|
@@ -20891,7 +20891,7 @@ function mc(e) {
|
|
|
20891
20891
|
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;
|
|
20892
20892
|
}
|
|
20893
20893
|
function kh(e) {
|
|
20894
|
-
const t =
|
|
20894
|
+
const t = ir(e);
|
|
20895
20895
|
if (t !== null) return t;
|
|
20896
20896
|
const n = uc(e);
|
|
20897
20897
|
if (n === null) return null;
|
|
@@ -20966,7 +20966,7 @@ function hc(e, t, n, r, a, l = !0) {
|
|
|
20966
20966
|
}, y = a ?? g(n);
|
|
20967
20967
|
let b = g(n);
|
|
20968
20968
|
if ((r === 8 || r === 46) && (b = b.replace(/\n{2,}$/, `
|
|
20969
|
-
`)), b =
|
|
20969
|
+
`)), b = Zg(b), b.length > 0 && b.substring(0, 1) === "=" && (r !== 229 || b.length === 1)) {
|
|
20970
20970
|
if (Ha(e), l || (Nr = sc(n)), b = qr(b), !l && wn < Nr.length && (l = !0), h = qr(y), Nr = [], window.getSelection) {
|
|
20971
20971
|
const w = window.getSelection();
|
|
20972
20972
|
if (!w) return;
|
|
@@ -21003,7 +21003,7 @@ function hc(e, t, n, r, a, l = !0) {
|
|
|
21003
21003
|
} catch {
|
|
21004
21004
|
}
|
|
21005
21005
|
}
|
|
21006
|
-
function
|
|
21006
|
+
function Qn(e) {
|
|
21007
21007
|
const t = e.replace(/[^0-9]/g, ""), n = e.replace(/[^A-Za-z]/g, ""), r = e.substr(e.indexOf(t) - 1, 1), a = e.substr(e.indexOf(n) - 1, 1), l = [!1, !1];
|
|
21008
21008
|
return r === "$" && (l[0] = !0), a === "$" && (l[1] = !0), l;
|
|
21009
21009
|
}
|
|
@@ -21053,7 +21053,7 @@ function Eh(e, t, n) {
|
|
|
21053
21053
|
const i = o.textContent || "", s = Ah(i);
|
|
21054
21054
|
if (!s || s === i) return !1;
|
|
21055
21055
|
const u = s.length;
|
|
21056
|
-
return o.textContent = s,
|
|
21056
|
+
return o.textContent = s, ar(e, o, 0, u, n), hc(e, t, n, 115), !0;
|
|
21057
21057
|
}
|
|
21058
21058
|
function Rh(e) {
|
|
21059
21059
|
const t = e.trim();
|
|
@@ -21072,24 +21072,24 @@ function Ih(e, t, n, r, a, l, o) {
|
|
|
21072
21072
|
let f, d, m, h, g, y, b, w;
|
|
21073
21073
|
if (s.indexOf(":") === -1) {
|
|
21074
21074
|
f = parseInt(s.replace(/[^0-9]/g, ""), 10) - 1, d = f, m = Ft(s.replace(/[^A-Za-z]/g, "")), h = m;
|
|
21075
|
-
const v =
|
|
21075
|
+
const v = Qn(s);
|
|
21076
21076
|
g = v[0] ? "$" : "", y = g, b = v[1] ? "$" : "", w = b;
|
|
21077
21077
|
} else {
|
|
21078
21078
|
if (s = s.split(":"), f = parseInt(s[0].replace(/[^0-9]/g, ""), 10) - 1, d = parseInt(s[1].replace(/[^0-9]/g, ""), 10) - 1, f > d || (m = Ft(s[0].replace(/[^A-Za-z]/g, "")), h = Ft(s[1].replace(/[^A-Za-z]/g, "")), m > h))
|
|
21079
21079
|
return e;
|
|
21080
|
-
const v =
|
|
21080
|
+
const v = Qn(s[0]);
|
|
21081
21081
|
g = v[0] ? "$" : "", b = v[1] ? "$" : "";
|
|
21082
|
-
const _ =
|
|
21082
|
+
const _ = Qn(s[1]);
|
|
21083
21083
|
y = _[0] ? "$" : "", w = _[1] ? "$" : "";
|
|
21084
21084
|
}
|
|
21085
21085
|
if (t === "del") {
|
|
21086
21086
|
if (n === "row") {
|
|
21087
21087
|
if (f >= a && d <= a + l - 1)
|
|
21088
|
-
return
|
|
21088
|
+
return tr.r;
|
|
21089
21089
|
f > a + l - 1 ? f -= l : f >= a && (f = a), d > a + l - 1 ? d -= l : d >= a && (d = a - 1), f < 0 && (f = 0), d < f && (d = f);
|
|
21090
21090
|
} else if (n === "col") {
|
|
21091
21091
|
if (m >= a && h <= a + l - 1)
|
|
21092
|
-
return
|
|
21092
|
+
return tr.r;
|
|
21093
21093
|
m > a + l - 1 ? m -= l : m >= a && (m = a), h > a + l - 1 ? h -= l : h >= a && (h = a - 1), m < 0 && (m = 0), h < m && (h = m);
|
|
21094
21094
|
}
|
|
21095
21095
|
return f === d && m === h ? !Number.isNaN(f) && !Number.isNaN(m) ? u + b + rt(m) + g + (f + 1) : Number.isNaN(f) ? Number.isNaN(m) ? e : u + b + rt(m) : u + g + (f + 1) : Number.isNaN(m) && Number.isNaN(h) ? `${u + g + (f + 1)}:${y}${d + 1}` : Number.isNaN(f) && Number.isNaN(d) ? `${u + b + rt(m)}:${w}${rt(h)}` : `${u + b + rt(m) + g + (f + 1)}:${w}${rt(h)}${y}${d + 1}`;
|
|
@@ -21143,9 +21143,9 @@ function qs(e, t, n) {
|
|
|
21143
21143
|
return !1;
|
|
21144
21144
|
}
|
|
21145
21145
|
function qh(e) {
|
|
21146
|
-
return !!e.formulaCache.rangestart || !!e.formulaCache.rangedrag_column_start || !!e.formulaCache.rangedrag_row_start || e.formulaCache.rangeSelectionActive === !0 ||
|
|
21146
|
+
return !!e.formulaCache.rangestart || !!e.formulaCache.rangedrag_column_start || !!e.formulaCache.rangedrag_row_start || e.formulaCache.rangeSelectionActive === !0 || sr(e);
|
|
21147
21147
|
}
|
|
21148
|
-
function
|
|
21148
|
+
function sr(e, t) {
|
|
21149
21149
|
var s, u, c;
|
|
21150
21150
|
t == null && (t = !1);
|
|
21151
21151
|
const n = window.getSelection();
|
|
@@ -21165,7 +21165,7 @@ function ir(e, t) {
|
|
|
21165
21165
|
)) || document.getElementById(
|
|
21166
21166
|
"luckysheet-rich-text-editor"
|
|
21167
21167
|
);
|
|
21168
|
-
return f && (e.formulaCache.rangestart || e.formulaCache.rangedrag_column_start || e.formulaCache.rangedrag_row_start || e.formulaCache.rangeSelectionActive === !0) &&
|
|
21168
|
+
return f && (e.formulaCache.rangestart || e.formulaCache.rangedrag_column_start || e.formulaCache.rangedrag_row_start || e.formulaCache.rangeSelectionActive === !0) && ir(f) !== null ? !0 : Ua(f);
|
|
21169
21169
|
};
|
|
21170
21170
|
if (((s = r == null ? void 0 : r.parentNode) == null ? void 0 : s.nodeName.toLowerCase()) === "span" && a !== 0) {
|
|
21171
21171
|
let f = p.trim(sn(r.textContent ?? "")), d = "";
|
|
@@ -21216,7 +21216,7 @@ function ir(e, t) {
|
|
|
21216
21216
|
}
|
|
21217
21217
|
function Dh(e) {
|
|
21218
21218
|
const t = _l(e), n = ((t == null ? void 0 : t.innerText) || "").trim(), r = !!e.formulaCache.rangestart || !!e.formulaCache.rangedrag_column_start || !!e.formulaCache.rangedrag_row_start, a = !!t && Ua(t), l = r || e.formulaCache.rangeSelectionActive === !0;
|
|
21219
|
-
return n.startsWith("=") ? e.formulaCache.rangeSelectionActive === !0 && t &&
|
|
21219
|
+
return n.startsWith("=") ? e.formulaCache.rangeSelectionActive === !0 && t && ir(t) !== null || e.formulaCache.rangeSelectionActive === !0 && Tl(n) ? !0 : /^=\s*[A-Za-z_][A-Za-z0-9_]*$/.test(n) || e.formulaCache.rangeSelectionActive === !1 ? !1 : l ? r ? !0 : a : a ? !0 : sr(e) : !1;
|
|
21220
21220
|
}
|
|
21221
21221
|
function xh(e) {
|
|
21222
21222
|
if (e.formulaCache.rangeSelectionActive !== !1)
|
|
@@ -21224,10 +21224,10 @@ function xh(e) {
|
|
|
21224
21224
|
const t = _l(e);
|
|
21225
21225
|
if (!t)
|
|
21226
21226
|
return !1;
|
|
21227
|
-
const n = (t.innerText || "").trim(), r =
|
|
21227
|
+
const n = (t.innerText || "").trim(), r = ir(t), a = Ua(t), l = sr(e);
|
|
21228
21228
|
return n.startsWith("=") && r === null && a && l ? (e.formulaCache.rangeSelectionActive = null, !0) : !1;
|
|
21229
21229
|
}
|
|
21230
|
-
function
|
|
21230
|
+
function Rt(e, t, n, r, a, l, o) {
|
|
21231
21231
|
if (!e)
|
|
21232
21232
|
return "";
|
|
21233
21233
|
e.substring(0, 1) === "=" && (e = e.substring(1));
|
|
@@ -21250,7 +21250,7 @@ function It(e, t, n, r, a, l, o) {
|
|
|
21250
21250
|
else if (d === "(" && f.dquote === 0)
|
|
21251
21251
|
f.bracket += 1, u.length > 0 ? c += `${u}(` : c += "(", u = "";
|
|
21252
21252
|
else if (d === ")" && f.dquote === 0)
|
|
21253
|
-
f.bracket -= 1, c += `${
|
|
21253
|
+
f.bracket -= 1, c += `${Rt(
|
|
21254
21254
|
u,
|
|
21255
21255
|
t,
|
|
21256
21256
|
n,
|
|
@@ -21262,7 +21262,7 @@ function It(e, t, n, r, a, l, o) {
|
|
|
21262
21262
|
else if (d === '"' && f.squote === 0)
|
|
21263
21263
|
f.dquote > 0 ? (c += `${u}"`, f.dquote -= 1, u = "") : (f.dquote += 1, u += '"');
|
|
21264
21264
|
else if (d === "," && f.dquote === 0)
|
|
21265
|
-
c += `${
|
|
21265
|
+
c += `${Rt(
|
|
21266
21266
|
u,
|
|
21267
21267
|
t,
|
|
21268
21268
|
n,
|
|
@@ -21272,7 +21272,7 @@ function It(e, t, n, r, a, l, o) {
|
|
|
21272
21272
|
o
|
|
21273
21273
|
)},`, u = "";
|
|
21274
21274
|
else if (d === "&" && f.dquote === 0)
|
|
21275
|
-
u.length > 0 ? (c += `${
|
|
21275
|
+
u.length > 0 ? (c += `${Rt(
|
|
21276
21276
|
u,
|
|
21277
21277
|
t,
|
|
21278
21278
|
n,
|
|
@@ -21289,10 +21289,10 @@ function It(e, t, n, r, a, l, o) {
|
|
|
21289
21289
|
do
|
|
21290
21290
|
g = i[h -= 1];
|
|
21291
21291
|
while (h >= 0 && g === " ");
|
|
21292
|
-
d + m in st ? (u.length > 0 ? (c +=
|
|
21292
|
+
d + m in st ? (u.length > 0 ? (c += Rt(u, t, n, r, a, l, o) + d + m, u = "") : c += d + m, s += 1) : !/[^0-9]/.test(m) && d === "-" && (g === "(" || g == null || g === "," || g === " " || g in st) ? u += d : u.length > 0 ? (c += Rt(u, t, n, r, a, l, o) + d, u = "") : c += d;
|
|
21293
21293
|
} else
|
|
21294
21294
|
u += d;
|
|
21295
|
-
s === i.length - 1 && (
|
|
21295
|
+
s === i.length - 1 && (Mt(p.trim(u)) ? c += Ih(
|
|
21296
21296
|
p.trim(u),
|
|
21297
21297
|
t,
|
|
21298
21298
|
n,
|
|
@@ -21310,8 +21310,8 @@ function Wr(e, t, n, r) {
|
|
|
21310
21310
|
`<div>${t.innerHTML}</div>`,
|
|
21311
21311
|
"text/html"
|
|
21312
21312
|
).querySelectorAll("span"), i = o[o.length - 1], s = ((y = i == null ? void 0 : i.classList) == null ? void 0 : y.contains("fortune-formula-functionrange-cell")) ?? !1;
|
|
21313
|
-
if (i &&
|
|
21314
|
-
const T =
|
|
21313
|
+
if (i && Kg(i == null ? void 0 : i.innerText) && !s) {
|
|
21314
|
+
const T = Qg(t.innerHTML);
|
|
21315
21315
|
t.innerHTML = `${T}`, t.focus();
|
|
21316
21316
|
const C = t.childNodes;
|
|
21317
21317
|
e.formulaCache.rangeSetValueTo = C.length > 0 ? C[C.length - 1] : void 0;
|
|
@@ -21338,11 +21338,11 @@ function Wr(e, t, n, r) {
|
|
|
21338
21338
|
`span[rangeindex='${e.formulaCache.rangechangeindex}']`
|
|
21339
21339
|
);
|
|
21340
21340
|
if (h && g)
|
|
21341
|
-
g.innerHTML = f,
|
|
21341
|
+
g.innerHTML = f, ar(e, g, 0, f.length, u);
|
|
21342
21342
|
else {
|
|
21343
21343
|
const T = sc(u), C = T.length > 0 ? Math.max(...T) + 1 : wn, N = `<span class="fortune-formula-functionrange-cell" rangeindex="${C}" dir="auto" style="color:${hl(C)};">${f}</span>`, A = Ju(N);
|
|
21344
21344
|
let $ = e.formulaCache.rangeSetValueTo;
|
|
21345
|
-
if ($ && !$.parentNode && (
|
|
21345
|
+
if ($ && !$.parentNode && (sr(e), $ = e.formulaCache.rangeSetValueTo), $ && $.parentNode) {
|
|
21346
21346
|
const M = (b = document.getElementsByClassName(
|
|
21347
21347
|
"luckysheet-formula-text-lpar"
|
|
21348
21348
|
)) == null ? void 0 : b[0];
|
|
@@ -21353,7 +21353,7 @@ function Wr(e, t, n, r) {
|
|
|
21353
21353
|
u.appendChild(A);
|
|
21354
21354
|
e.formulaCache.rangechangeindex = C, wn = Math.max(wn, C + 1);
|
|
21355
21355
|
const S = A != null && A.parentNode ? A : null;
|
|
21356
|
-
S ?
|
|
21356
|
+
S ? ar(e, S, 0, f.length, u) : vl(u);
|
|
21357
21357
|
}
|
|
21358
21358
|
c && (c.innerHTML = u.innerHTML);
|
|
21359
21359
|
}
|
|
@@ -21472,15 +21472,15 @@ function za(e, t, n) {
|
|
|
21472
21472
|
let a, l = "";
|
|
21473
21473
|
if (r.length > 1 ? ([, a] = r, l = `${r[0]}!`) : [a] = r, a.indexOf(":") === -1) {
|
|
21474
21474
|
let h = parseInt(a.replace(/[^0-9]/g, ""), 10), g = Ft(a.replace(/[^A-Za-z]/g, ""));
|
|
21475
|
-
const y =
|
|
21475
|
+
const y = Qn(a), b = y[0] ? "$" : "", w = y[1] ? "$" : "";
|
|
21476
21476
|
return e === "u" && !y[0] ? h -= n : e === "r" && !y[1] ? g += n : e === "l" && !y[1] ? g -= n : e === "d" && !y[0] && (h += n), !Number.isNaN(h) && !Number.isNaN(g) ? l + w + rt(g) + b + h : Number.isNaN(h) ? Number.isNaN(g) ? t : l + w + rt(g) : l + b + h;
|
|
21477
21477
|
}
|
|
21478
21478
|
a = a.split(":");
|
|
21479
21479
|
const o = [], i = [];
|
|
21480
21480
|
if (o[0] = parseInt(a[0].replace(/[^0-9]/g, ""), 10), o[1] = parseInt(a[1].replace(/[^0-9]/g, ""), 10), o[0] > o[1] || (i[0] = Ft(a[0].replace(/[^A-Za-z]/g, "")), i[1] = Ft(a[1].replace(/[^A-Za-z]/g, "")), i[0] > i[1]))
|
|
21481
21481
|
return t;
|
|
21482
|
-
const s =
|
|
21483
|
-
return e === "u" ? (s[0] || (o[0] -= n), u[0] || (o[1] -= n)) : e === "r" ? (s[1] || (i[0] += n), u[1] || (i[1] += n)) : e === "l" ? (s[1] || (i[0] -= n), u[1] || (i[1] -= n)) : e === "d" && (s[0] || (o[0] += n), u[0] || (o[1] += n)), o[0] < 0 || i[0] < 0 ?
|
|
21482
|
+
const s = Qn(a[0]), u = Qn(a[1]), c = s[0] ? "$" : "", f = s[1] ? "$" : "", d = u[0] ? "$" : "", m = u[1] ? "$" : "";
|
|
21483
|
+
return e === "u" ? (s[0] || (o[0] -= n), u[0] || (o[1] -= n)) : e === "r" ? (s[1] || (i[0] += n), u[1] || (i[1] += n)) : e === "l" ? (s[1] || (i[0] -= n), u[1] || (i[1] -= n)) : e === "d" && (s[0] || (o[0] += n), u[0] || (o[1] += n)), o[0] < 0 || i[0] < 0 ? tr.r : Number.isNaN(i[0]) && Number.isNaN(i[1]) ? `${l + c + o[0]}:${d}${o[1]}` : Number.isNaN(o[0]) && Number.isNaN(o[1]) ? `${l + f + rt(i[0])}:${m}${rt(i[1])}` : `${l + f + rt(i[0]) + c + o[0]}:${m}${rt(i[1])}${d}${o[1]}`;
|
|
21484
21484
|
}
|
|
21485
21485
|
function Ph(e, t) {
|
|
21486
21486
|
return za("d", e, t);
|
|
@@ -21526,7 +21526,7 @@ function Jt(e, t, n, r) {
|
|
|
21526
21526
|
u + c in st ? (o.length > 0 ? (i += Jt(e, o, n, r) + u + c, o = "") : i += u + c, l += 1) : !/[^0-9]/.test(c) && u === "-" && (d === "(" || d == null || d === "," || d === " " || d in st) ? o += u : o.length > 0 ? (i += Jt(e, o, n, r) + u, o = "") : i += u;
|
|
21527
21527
|
} else
|
|
21528
21528
|
o += u;
|
|
21529
|
-
l === a.length - 1 && (
|
|
21529
|
+
l === a.length - 1 && (Mt(p.trim(o)) ? n === "down" ? i += Ph(p.trim(o), r) : n === "up" ? i += Hh(p.trim(o), r) : n === "left" ? i += Uh(p.trim(o), r) : n === "right" && (i += zh(p.trim(o), r)) : i += p.trim(o)), l += 1;
|
|
21530
21530
|
}
|
|
21531
21531
|
return i = i.replace(/NaN/g, ""), i;
|
|
21532
21532
|
}
|
|
@@ -21674,7 +21674,7 @@ function jn(e, t, n, r, a, l) {
|
|
|
21674
21674
|
s += f;
|
|
21675
21675
|
if (i === o.length - 1) {
|
|
21676
21676
|
const d = p.trim(s);
|
|
21677
|
-
|
|
21677
|
+
Mt(d) ? u += jh(
|
|
21678
21678
|
d,
|
|
21679
21679
|
t,
|
|
21680
21680
|
n,
|
|
@@ -21703,10 +21703,10 @@ const Xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21703
21703
|
functionCopy: Jt,
|
|
21704
21704
|
functionHTMLGenerate: qr,
|
|
21705
21705
|
functionMoveReference: jn,
|
|
21706
|
-
functionStrChange:
|
|
21706
|
+
functionStrChange: Rt,
|
|
21707
21707
|
getAllFunctionGroup: gl,
|
|
21708
21708
|
getFormulaEditorOwner: Pa,
|
|
21709
|
-
getFormulaRangeIndexAtCaret:
|
|
21709
|
+
getFormulaRangeIndexAtCaret: ir,
|
|
21710
21710
|
getFormulaRangeIndexForKeyboardSync: kh,
|
|
21711
21711
|
getLastFormulaRangeIndex: uc,
|
|
21712
21712
|
getcellrange: Cn,
|
|
@@ -21719,8 +21719,8 @@ const Xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21719
21719
|
isFormulaReferenceInputMode: Dh,
|
|
21720
21720
|
isLegacyFormulaRangeMode: qh,
|
|
21721
21721
|
isTodayNowPureArithmeticDateResult: Zu,
|
|
21722
|
-
iscelldata:
|
|
21723
|
-
israngeseleciton:
|
|
21722
|
+
iscelldata: Mt,
|
|
21723
|
+
israngeseleciton: sr,
|
|
21724
21724
|
markRangeSelectionDirty: mc,
|
|
21725
21725
|
maybeRecoverDirtyRangeSelection: xh,
|
|
21726
21726
|
moveCursorToEnd: vl,
|
|
@@ -21736,7 +21736,7 @@ const Xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21736
21736
|
returnToFormulaOriginSheet: fc,
|
|
21737
21737
|
runFormulaEvalChunk: mh,
|
|
21738
21738
|
seedFormulaFuncSelectedRangeFromLastSelection: ph,
|
|
21739
|
-
setCaretPosition:
|
|
21739
|
+
setCaretPosition: ar,
|
|
21740
21740
|
setFormulaEditorOwner: wh,
|
|
21741
21741
|
shouldPreserveFormulaEditOnSheetSwitch: cc,
|
|
21742
21742
|
suppressFormulaRangeSelectionForInitialEdit: dc,
|
|
@@ -21753,7 +21753,7 @@ function yc(e, t, n, r) {
|
|
|
21753
21753
|
const i = (c = a.config) == null ? void 0 : c.authority;
|
|
21754
21754
|
return !(p.isNil(i) || p.isNil(i.sheet) || i.sheet === 0);
|
|
21755
21755
|
}
|
|
21756
|
-
function
|
|
21756
|
+
function uy(e, t, n, r) {
|
|
21757
21757
|
var s;
|
|
21758
21758
|
const a = eo(e, r);
|
|
21759
21759
|
if (p.isNil(a) || p.isNil(a.config) || p.isNil(a.config.authority))
|
|
@@ -21764,7 +21764,7 @@ function sy(e, t, n, r) {
|
|
|
21764
21764
|
const { data: o } = a, i = (s = o == null ? void 0 : o[t]) == null ? void 0 : s[n];
|
|
21765
21765
|
return i && i.lo === 0 ? !!(l.selectunLockedCells === 1 || p.isNil(l.selectunLockedCells)) : !!(l.selectLockedCells === 1 || p.isNil(l.selectLockedCells));
|
|
21766
21766
|
}
|
|
21767
|
-
function
|
|
21767
|
+
function cy(e, t) {
|
|
21768
21768
|
const n = eo(e, t);
|
|
21769
21769
|
if (p.isNil(n) || p.isNil(n.config) || p.isNil(n.config.authority))
|
|
21770
21770
|
return !0;
|
|
@@ -21915,7 +21915,7 @@ function zo(e) {
|
|
|
21915
21915
|
return Xn(t);
|
|
21916
21916
|
}
|
|
21917
21917
|
}
|
|
21918
|
-
function
|
|
21918
|
+
function fy(e) {
|
|
21919
21919
|
const t = _a;
|
|
21920
21920
|
if (!e || e.length === 0)
|
|
21921
21921
|
return {
|
|
@@ -22042,7 +22042,7 @@ function Wo(e) {
|
|
|
22042
22042
|
let a = String(e.dateValue ?? "").trim();
|
|
22043
22043
|
return n !== "exact" && (a = a || zo(n)), [`preset:${n}`, a, r];
|
|
22044
22044
|
}
|
|
22045
|
-
function
|
|
22045
|
+
function dy(e, t, n, r, a, l, o) {
|
|
22046
22046
|
var g, y, b, w;
|
|
22047
22047
|
if (!Zh(e))
|
|
22048
22048
|
return;
|
|
@@ -22980,7 +22980,7 @@ function Tc(e, t, n, r) {
|
|
|
22980
22980
|
}
|
|
22981
22981
|
function go(e, t) {
|
|
22982
22982
|
const n = [];
|
|
22983
|
-
if (
|
|
22983
|
+
if (Mt(t)) {
|
|
22984
22984
|
const r = Cn(e, t);
|
|
22985
22985
|
if (!r) return n;
|
|
22986
22986
|
const a = ke(e, r.sheetId);
|
|
@@ -23011,7 +23011,7 @@ function ip(e, t) {
|
|
|
23011
23011
|
var a;
|
|
23012
23012
|
const n = aa.get(t);
|
|
23013
23013
|
if (n) return n;
|
|
23014
|
-
if (
|
|
23014
|
+
if (Mt(t)) {
|
|
23015
23015
|
const l = Cn(e, t), o = l ? ke(e, l.sheetId) : null, i = o == null ? null : (a = e.luckysheetfile[o]) == null ? void 0 : a.data;
|
|
23016
23016
|
if (!i || Jo(i)) return yo(go(e, t));
|
|
23017
23017
|
let s = Ps.get(i);
|
|
@@ -23024,7 +23024,7 @@ function ip(e, t) {
|
|
|
23024
23024
|
return aa.set(t, r), r;
|
|
23025
23025
|
}
|
|
23026
23026
|
const sp = 500, oa = /* @__PURE__ */ new Map();
|
|
23027
|
-
function
|
|
23027
|
+
function my(e) {
|
|
23028
23028
|
let t = oa.get(e);
|
|
23029
23029
|
return t || (oa.size >= sp && oa.clear(), t = e.split(","), oa.set(e, t)), t;
|
|
23030
23030
|
}
|
|
@@ -23060,7 +23060,7 @@ function Cc(e, t, n) {
|
|
|
23060
23060
|
if (n = n.toString().length, r = Number(r), a = Number(a), o === "between" && (n < r || n > a) || o === "notBetween" && n >= r && n <= a || o === "equal" && n !== r || o === "notEqualTo" && n === r || o === "moreThanThe" && n <= r || o === "lessThan" && n >= r || o === "greaterOrEqualTo" && n < r || o === "lessThanOrEqualTo" && n > r)
|
|
23061
23061
|
return !1;
|
|
23062
23062
|
} else if (l === "date") {
|
|
23063
|
-
if (!
|
|
23063
|
+
if (!nr(n) || o === "between" && (jt(n, r) < 0 || jt(n, a) > 0) || o === "notBetween" && jt(n, r) >= 0 && jt(n, a) <= 0 || o === "equal" && jt(n, r) !== 0 || o === "notEqualTo" && jt(n, r) === 0 || o === "earlierThan" && jt(n, r) >= 0 || o === "noEarlierThan" && jt(n, r) < 0 || o === "laterThan" && jt(n, r) <= 0 || o === "noLaterThan" && jt(n, r) > 0)
|
|
23064
23064
|
return !1;
|
|
23065
23065
|
} else if (l === "validity" && (o === "identificationNumber" && !up(e, n) || o === "phoneNumber" && !/^1[3456789]\d{9}$/.test(n)))
|
|
23066
23066
|
return !1;
|
|
@@ -23134,7 +23134,7 @@ function fp(e, t) {
|
|
|
23134
23134
|
}
|
|
23135
23135
|
return n;
|
|
23136
23136
|
}
|
|
23137
|
-
function
|
|
23137
|
+
function hy(e, t, n, r) {
|
|
23138
23138
|
const a = ft(e), l = of(e);
|
|
23139
23139
|
if (!a || l) return;
|
|
23140
23140
|
const o = document.getElementById(
|
|
@@ -23167,7 +23167,7 @@ function my(e, t, n, r) {
|
|
|
23167
23167
|
C === "en" ? T = '<span style="color:#f72626;">Failure: </span>' : C === "zh" || C === "zh-CN" || C === "zh-TW" ? T = '<span style="color:#f72626;">失效:</span>' : C === "es" ? T = '<span style="color:#f72626;">Caducidad: </span>' : C === "hi" && (T = '<span style="color:#f72626;">असफलता: </span>'), T = N + T + $c(e, c), o.innerHTML = T, o.style.display = "block", o.style.left = `${y}px`, o.style.top = `${m}px`;
|
|
23168
23168
|
}
|
|
23169
23169
|
}
|
|
23170
|
-
function
|
|
23170
|
+
function py(e, t, n, r) {
|
|
23171
23171
|
var h, g, y, b, w;
|
|
23172
23172
|
const a = Ae(e);
|
|
23173
23173
|
if (!a) return;
|
|
@@ -23220,12 +23220,12 @@ function hy(e, t, n, r) {
|
|
|
23220
23220
|
type: "update"
|
|
23221
23221
|
}
|
|
23222
23222
|
]);
|
|
23223
|
-
const d =
|
|
23224
|
-
d < m &&
|
|
23223
|
+
const d = l1(e, [l])[l], m = 22 * (t.split(",").length || (u == null ? void 0 : u.length)) || 22;
|
|
23224
|
+
d < m && o1(e, {
|
|
23225
23225
|
[String(l)]: m
|
|
23226
23226
|
}), Sl(e, null, void 0);
|
|
23227
23227
|
}
|
|
23228
|
-
function
|
|
23228
|
+
function gy(e, t, n) {
|
|
23229
23229
|
var h, g;
|
|
23230
23230
|
const r = Ar(
|
|
23231
23231
|
e,
|
|
@@ -23271,10 +23271,10 @@ function py(e, t, n) {
|
|
|
23271
23271
|
return e.warnDialog = n.tooltipInfo4, !1;
|
|
23272
23272
|
}
|
|
23273
23273
|
} else if (s === "date") {
|
|
23274
|
-
if (!
|
|
23274
|
+
if (!nr(u))
|
|
23275
23275
|
return e.warnDialog = n.tooltipInfo6, !1;
|
|
23276
23276
|
if (f === "between" || f === "notBetween") {
|
|
23277
|
-
if (!
|
|
23277
|
+
if (!nr(c))
|
|
23278
23278
|
return e.warnDialog = n.tooltipInfo6, !1;
|
|
23279
23279
|
if (jt(u, c) > 0)
|
|
23280
23280
|
return e.warnDialog = n.tooltipInfo7, !1;
|
|
@@ -23301,7 +23301,7 @@ function mp(e, t, n) {
|
|
|
23301
23301
|
return e ? 1 : -1;
|
|
23302
23302
|
if (ot(f))
|
|
23303
23303
|
return e ? -1 : 1;
|
|
23304
|
-
if (
|
|
23304
|
+
if (nr(c) && nr(f))
|
|
23305
23305
|
return jt(c, f);
|
|
23306
23306
|
if (Ze(c) && Ze(f)) {
|
|
23307
23307
|
const d = ln(f).value(), m = ln(c).value();
|
|
@@ -23403,7 +23403,7 @@ function hp(e, t, n = 0) {
|
|
|
23403
23403
|
f || Nc(e, a, d, n, t, u, c, i, s);
|
|
23404
23404
|
}
|
|
23405
23405
|
}
|
|
23406
|
-
function
|
|
23406
|
+
function yy(e, t) {
|
|
23407
23407
|
var f, d, m;
|
|
23408
23408
|
if (e.allowEdit === !1) return;
|
|
23409
23409
|
const n = Ae(e);
|
|
@@ -23556,7 +23556,7 @@ function Dt(e, t, n = 10) {
|
|
|
23556
23556
|
if (t in r || t === "fs" && un(e))
|
|
23557
23557
|
a || (a = "0");
|
|
23558
23558
|
else if (["fc", "bg", "bc"].includes(t))
|
|
23559
|
-
["fc", "bc"].includes(t) && (a || (a = "#000000")), (a == null ? void 0 : a.indexOf("rgba")) > -1 && (a =
|
|
23559
|
+
["fc", "bc"].includes(t) && (a || (a = "#000000")), (a == null ? void 0 : a.indexOf("rgba")) > -1 && (a = Xg(a));
|
|
23560
23560
|
else if (t.substring(0, 2) === "bs")
|
|
23561
23561
|
a || (a = "none");
|
|
23562
23562
|
else if (t === "ht" || t === "vt") {
|
|
@@ -23738,7 +23738,7 @@ function Pt(e, t, n, r, a) {
|
|
|
23738
23738
|
if (sm(z))
|
|
23739
23739
|
l.m = um(z);
|
|
23740
23740
|
else if (l.v.toString().toLowerCase().indexOf("e") > -1)
|
|
23741
|
-
l.m =
|
|
23741
|
+
l.m = yr(l.v);
|
|
23742
23742
|
else if (p.isNil(l.ct)) {
|
|
23743
23743
|
const V = Je(z);
|
|
23744
23744
|
V != null && (l.m = V[0].toString());
|
|
@@ -23794,18 +23794,18 @@ function Pt(e, t, n, r, a) {
|
|
|
23794
23794
|
const q = na(
|
|
23795
23795
|
d,
|
|
23796
23796
|
i,
|
|
23797
|
-
|
|
23797
|
+
It(e).currencyDetail
|
|
23798
23798
|
);
|
|
23799
23799
|
q && (l.m = q[0].toString(), [, l.ct, l.v] = q);
|
|
23800
23800
|
}
|
|
23801
23801
|
else if (Ze(i)) {
|
|
23802
|
-
u && !Q.includes(",") && (Q =
|
|
23802
|
+
u && !Q.includes(",") && (Q = Jg(String(i), u)), i = parseFloat(i), Q.includes("%") && !d.includes("%") && (!o || z) && (i /= 100), l != null && l.ct && (l.ct = { ...l.ct, fa: Q, t: "n" });
|
|
23803
23803
|
const q = ct(Q, i);
|
|
23804
23804
|
if (q === i) {
|
|
23805
23805
|
const E = na(
|
|
23806
23806
|
d,
|
|
23807
23807
|
i,
|
|
23808
|
-
|
|
23808
|
+
It(e).currencyDetail
|
|
23809
23809
|
);
|
|
23810
23810
|
if (E) {
|
|
23811
23811
|
const [H, Ce, P] = E;
|
|
@@ -23813,7 +23813,7 @@ function Pt(e, t, n, r, a) {
|
|
|
23813
23813
|
}
|
|
23814
23814
|
} else
|
|
23815
23815
|
a.m ? l.m = a.m : l.m = q.toString(), l.v = i;
|
|
23816
|
-
} else if (fm(Q,
|
|
23816
|
+
} else if (fm(Q, It(e).currencyDetail) && typeof i == "string" && !d.startsWith("=") && !Ze(i))
|
|
23817
23817
|
l.v = d, l.m = d, l.ct = { fa: Q, t: "s" };
|
|
23818
23818
|
else {
|
|
23819
23819
|
const q = ct(Q, i);
|
|
@@ -23821,7 +23821,7 @@ function Pt(e, t, n, r, a) {
|
|
|
23821
23821
|
const E = na(
|
|
23822
23822
|
d,
|
|
23823
23823
|
i,
|
|
23824
|
-
|
|
23824
|
+
It(e).currencyDetail
|
|
23825
23825
|
);
|
|
23826
23826
|
if (E) {
|
|
23827
23827
|
const [H, Ce, P] = E;
|
|
@@ -23840,7 +23840,7 @@ function Pt(e, t, n, r, a) {
|
|
|
23840
23840
|
const Q = na(
|
|
23841
23841
|
d,
|
|
23842
23842
|
i,
|
|
23843
|
-
|
|
23843
|
+
It(e).currencyDetail
|
|
23844
23844
|
);
|
|
23845
23845
|
Q && (l.m = Q[0].toString(), [, l.ct, l.v] = Q);
|
|
23846
23846
|
}
|
|
@@ -23859,7 +23859,7 @@ function Pt(e, t, n, r, a) {
|
|
|
23859
23859
|
}
|
|
23860
23860
|
p.isNil(l.f) || (s ? (l.ct || (l.ct = { fa: "General", t: "g" }), l.ct.s = s) : l != null && l.ct && p.isPlainObject(a) && Object.prototype.hasOwnProperty.call(a, "ct") && delete l.ct.s), r[t][n] = l, e.luckysheet_selection_range && (e.luckysheet_selection_range = []);
|
|
23861
23861
|
}
|
|
23862
|
-
function
|
|
23862
|
+
function by(e, t, n, r) {
|
|
23863
23863
|
let a = at(e, t, n, "m");
|
|
23864
23864
|
if (p.isNil(a) && (a = at(e, t, n, r), p.isNil(a))) {
|
|
23865
23865
|
const l = at(e, t, n, "ct");
|
|
@@ -24275,14 +24275,14 @@ function Ar(e, t) {
|
|
|
24275
24275
|
if (t.indexOf(",") !== -1) {
|
|
24276
24276
|
const r = t.split(",");
|
|
24277
24277
|
for (let a = 0; a < r.length; a += 1)
|
|
24278
|
-
if (
|
|
24278
|
+
if (Mt(r[a]))
|
|
24279
24279
|
n.push(Cn(e, r[a]));
|
|
24280
24280
|
else {
|
|
24281
24281
|
n = [];
|
|
24282
24282
|
break;
|
|
24283
24283
|
}
|
|
24284
24284
|
} else
|
|
24285
|
-
|
|
24285
|
+
Mt(t) && n.push(Cn(e, t));
|
|
24286
24286
|
return n;
|
|
24287
24287
|
}
|
|
24288
24288
|
function Np(e) {
|
|
@@ -24302,7 +24302,7 @@ function Np(e) {
|
|
|
24302
24302
|
}
|
|
24303
24303
|
return !1;
|
|
24304
24304
|
}
|
|
24305
|
-
function
|
|
24305
|
+
function wy(e, t) {
|
|
24306
24306
|
const n = (t ?? "").trim();
|
|
24307
24307
|
return n === "" ? !0 : Np(n) ? !1 : Ar(e, n).length > 0;
|
|
24308
24308
|
}
|
|
@@ -24384,7 +24384,7 @@ function Vo(e, t, n, r, a) {
|
|
|
24384
24384
|
Number(f) === 0 ? l.textAlign = "center" : Number(f) === 2 && (l.textAlign = "right", l.overflowWrap = "anywhere");
|
|
24385
24385
|
}
|
|
24386
24386
|
if ("tb" in u && Number(u.tb) === 2 && (l.overflowWrap = "anywhere"), "ff" in u) {
|
|
24387
|
-
const f = Dt(u, "ff"), { fontarray: d } =
|
|
24387
|
+
const f = Dt(u, "ff"), { fontarray: d } = It(e), m = parseInt(f, 10);
|
|
24388
24388
|
l.fontFamily = Number.isNaN(m) ? f : d[m] ?? f;
|
|
24389
24389
|
}
|
|
24390
24390
|
if ("vt" in u) {
|
|
@@ -24456,7 +24456,7 @@ function Ac(e, t, n, r) {
|
|
|
24456
24456
|
}
|
|
24457
24457
|
return "";
|
|
24458
24458
|
}
|
|
24459
|
-
function
|
|
24459
|
+
function vy(e, t, n) {
|
|
24460
24460
|
let r = "";
|
|
24461
24461
|
if (e.toString().indexOf("pt") > -1) {
|
|
24462
24462
|
const l = parseFloat(e);
|
|
@@ -24485,7 +24485,7 @@ function Ep(e, t, n) {
|
|
|
24485
24485
|
}
|
|
24486
24486
|
return l;
|
|
24487
24487
|
}
|
|
24488
|
-
function
|
|
24488
|
+
function _y(e, t, n) {
|
|
24489
24489
|
var l;
|
|
24490
24490
|
const r = Ae(e), a = (l = r == null ? void 0 : r[t]) == null ? void 0 : l[n];
|
|
24491
24491
|
(a == null ? void 0 : a.f) != null && String(a.f).trim() !== "" && (dc(e), Ha(e)), e.luckysheetCellUpdate = [t, n];
|
|
@@ -24534,7 +24534,7 @@ function El(e) {
|
|
|
24534
24534
|
...a != null && typeof a == "object" ? { ct: a } : {}
|
|
24535
24535
|
} : null;
|
|
24536
24536
|
}
|
|
24537
|
-
function
|
|
24537
|
+
function Ty(e) {
|
|
24538
24538
|
var o;
|
|
24539
24539
|
const t = ke(e, e.currentSheetId);
|
|
24540
24540
|
if (t == null) return;
|
|
@@ -24581,7 +24581,7 @@ function _y(e) {
|
|
|
24581
24581
|
})), i.length > 0 && e.hooks.updateCellYdoc(i);
|
|
24582
24582
|
}
|
|
24583
24583
|
}
|
|
24584
|
-
function
|
|
24584
|
+
function Cy(e) {
|
|
24585
24585
|
var i, s;
|
|
24586
24586
|
const t = ke(e, e.currentSheetId);
|
|
24587
24587
|
if (t == null) return;
|
|
@@ -24628,7 +24628,7 @@ function Ty(e) {
|
|
|
24628
24628
|
})), e.hooks.updateCellYdoc(u);
|
|
24629
24629
|
}
|
|
24630
24630
|
}
|
|
24631
|
-
function
|
|
24631
|
+
function $y(e) {
|
|
24632
24632
|
var i;
|
|
24633
24633
|
const t = ke(e, e.currentSheetId);
|
|
24634
24634
|
if (t == null) return;
|
|
@@ -24694,22 +24694,22 @@ class Mp {
|
|
|
24694
24694
|
}
|
|
24695
24695
|
}
|
|
24696
24696
|
let Ca = null, Ga = null, ja = null;
|
|
24697
|
-
function
|
|
24697
|
+
function Ny() {
|
|
24698
24698
|
return Ca ? { ...Ca } : null;
|
|
24699
24699
|
}
|
|
24700
|
-
function
|
|
24700
|
+
function Sy() {
|
|
24701
24701
|
return Ga;
|
|
24702
24702
|
}
|
|
24703
|
-
function
|
|
24703
|
+
function ky() {
|
|
24704
24704
|
return ja;
|
|
24705
24705
|
}
|
|
24706
|
-
function
|
|
24706
|
+
function Ay(e, t = !1, n = null) {
|
|
24707
24707
|
Ca = e ? { ...e } : null, Ga = t && e ? e.id : null, ja = t && e ? n : null;
|
|
24708
24708
|
}
|
|
24709
24709
|
function Ip() {
|
|
24710
24710
|
Ca = null, Ga = null, ja = null;
|
|
24711
24711
|
}
|
|
24712
|
-
function
|
|
24712
|
+
function Ey() {
|
|
24713
24713
|
Ga = null, ja = null;
|
|
24714
24714
|
}
|
|
24715
24715
|
function qp(e, t, n) {
|
|
@@ -24842,7 +24842,16 @@ function Ic(e) {
|
|
|
24842
24842
|
return (e.luckysheetfile ?? []).forEach((n) => {
|
|
24843
24843
|
var l;
|
|
24844
24844
|
const { data: r } = n;
|
|
24845
|
-
if (
|
|
24845
|
+
if (n.id == null) return;
|
|
24846
|
+
if (!r) {
|
|
24847
|
+
if (!Array.isArray(n.celldata)) return;
|
|
24848
|
+
const o = /* @__PURE__ */ new Map();
|
|
24849
|
+
n.celldata.forEach((i) => {
|
|
24850
|
+
var s;
|
|
24851
|
+
(s = i == null ? void 0 : i.v) != null && s.f && o.set(`${i.r}_${i.c}`, i.v.f);
|
|
24852
|
+
}), o.size > 0 && t.set(String(n.id), o);
|
|
24853
|
+
return;
|
|
24854
|
+
}
|
|
24846
24855
|
const a = /* @__PURE__ */ new Map();
|
|
24847
24856
|
for (let o = 0; o < r.length; o += 1) {
|
|
24848
24857
|
const i = r[o];
|
|
@@ -24861,18 +24870,20 @@ function qc(e, t, n, r, a, l) {
|
|
|
24861
24870
|
const o = [];
|
|
24862
24871
|
(e.luckysheetfile ?? []).forEach((s) => {
|
|
24863
24872
|
const u = t.get(String(s.id));
|
|
24864
|
-
if (!u || !s.data) return;
|
|
24865
|
-
const c = String(s.id) === String(n)
|
|
24866
|
-
|
|
24867
|
-
|
|
24868
|
-
|
|
24869
|
-
|
|
24870
|
-
const
|
|
24871
|
-
|
|
24873
|
+
if (!u || !s.data && !Array.isArray(s.celldata)) return;
|
|
24874
|
+
const c = String(s.id) === String(n), f = s.data ? null : new Map(
|
|
24875
|
+
s.celldata.map((d) => [`${d == null ? void 0 : d.r}_${d == null ? void 0 : d.c}`, d])
|
|
24876
|
+
);
|
|
24877
|
+
u.forEach((d, m) => {
|
|
24878
|
+
var w, v;
|
|
24879
|
+
const h = m.indexOf("_"), g = Number(m.slice(0, h)), y = Number(m.slice(h + 1));
|
|
24880
|
+
if (c && (g >= r || y >= a)) return;
|
|
24881
|
+
const b = s.data ? (w = s.data[g]) == null ? void 0 : w[y] : (v = f.get(m)) == null ? void 0 : v.v;
|
|
24882
|
+
!(b != null && b.f) || b.f === d || o.push({
|
|
24872
24883
|
sheetId: String(s.id),
|
|
24873
24884
|
path: ["celldata"],
|
|
24874
|
-
value: { r:
|
|
24875
|
-
key:
|
|
24885
|
+
value: { r: g, c: y, v: b },
|
|
24886
|
+
key: m,
|
|
24876
24887
|
type: "update"
|
|
24877
24888
|
});
|
|
24878
24889
|
});
|
|
@@ -24914,7 +24925,7 @@ function Bp(e, t, n, r, a) {
|
|
|
24914
24925
|
const i = a ? Math.min(t, a.minC) : t;
|
|
24915
24926
|
return { r1: 0, r2: l, c1: Math.max(0, i), c2: o };
|
|
24916
24927
|
}
|
|
24917
|
-
function
|
|
24928
|
+
function Ry(e, t, n, r, a) {
|
|
24918
24929
|
var U, G, ie, O, K;
|
|
24919
24930
|
const l = Ae(e);
|
|
24920
24931
|
if (!l) return;
|
|
@@ -24963,11 +24974,11 @@ function Pp(e) {
|
|
|
24963
24974
|
});
|
|
24964
24975
|
});
|
|
24965
24976
|
}
|
|
24966
|
-
const
|
|
24977
|
+
const My = {
|
|
24967
24978
|
isPasteAction: !1,
|
|
24968
24979
|
isPasteValuesOnly: !1
|
|
24969
24980
|
}, Hp = 14e5;
|
|
24970
|
-
function
|
|
24981
|
+
function Jn(e, t, n) {
|
|
24971
24982
|
var c, f, d, m;
|
|
24972
24983
|
const { scrollLeft: r, scrollTop: a } = e, l = e.cellmainHeight, o = e.cellmainWidth, i = ke(e, e.currentSheetId), s = i == null ? null : e.luckysheetfile[i];
|
|
24973
24984
|
if (!s) return;
|
|
@@ -25032,7 +25043,7 @@ function Ys(e, t) {
|
|
|
25032
25043
|
e.primaryCellActive = { r: l, c: o };
|
|
25033
25044
|
}
|
|
25034
25045
|
}
|
|
25035
|
-
function
|
|
25046
|
+
function Iy(e, t = !0) {
|
|
25036
25047
|
const n = e.luckysheet_select_save;
|
|
25037
25048
|
if (!(n != null && n.length)) return !1;
|
|
25038
25049
|
const r = n[n.length - 1], a = r.row[0], l = r.row[1], o = r.column[0], i = r.column[1];
|
|
@@ -25044,10 +25055,10 @@ function My(e, t = !0) {
|
|
|
25044
25055
|
let y, b;
|
|
25045
25056
|
return t ? m < u ? (y = m + 1, b = h) : h < f ? (y = s, b = h + 1) : (y = s, b = c) : m > s ? (y = m - 1, b = h) : h > c ? (y = u, b = h - 1) : (y = u, b = f), r.row_focus = y, r.column_focus = b, Ht(e, n), !0;
|
|
25046
25057
|
}
|
|
25047
|
-
function
|
|
25058
|
+
function qy(e, t, n) {
|
|
25048
25059
|
e.primaryCellActive = { r: t, c: n };
|
|
25049
25060
|
}
|
|
25050
|
-
function
|
|
25061
|
+
function Dy(e, t, n) {
|
|
25051
25062
|
const r = e.luckysheet_select_save, a = r == null ? void 0 : r[r.length - 1];
|
|
25052
25063
|
if (!(a != null && a.row) || a.row.length < 2 || !a.column || a.column.length < 2) {
|
|
25053
25064
|
e.luckysheet_select_save = [
|
|
@@ -25070,7 +25081,7 @@ function qy(e, t, n) {
|
|
|
25070
25081
|
}
|
|
25071
25082
|
], Ht(e, e.luckysheet_select_save));
|
|
25072
25083
|
}
|
|
25073
|
-
function
|
|
25084
|
+
function xy(e) {
|
|
25074
25085
|
var t, n, r, a;
|
|
25075
25086
|
return (n = (t = e == null ? void 0 : e[0]) == null ? void 0 : t[0]) != null && n.mc && !p.isNil((r = e[0][0].mc) == null ? void 0 : r.rs) && !p.isNil((a = e[0][0].mc) == null ? void 0 : a.cs) ? [
|
|
25076
25087
|
{
|
|
@@ -25111,13 +25122,13 @@ function Ht(e, t) {
|
|
|
25111
25122
|
}
|
|
25112
25123
|
return Ys(e, t), t;
|
|
25113
25124
|
}
|
|
25114
|
-
function
|
|
25125
|
+
function Oy(e, t, n) {
|
|
25115
25126
|
const r = e || {};
|
|
25116
25127
|
for (let a = t; a <= n; a += 1)
|
|
25117
25128
|
a in r || (r[a] = 0);
|
|
25118
25129
|
return r;
|
|
25119
25130
|
}
|
|
25120
|
-
function
|
|
25131
|
+
function Fy(e) {
|
|
25121
25132
|
const t = Object.keys(e).map(Number);
|
|
25122
25133
|
t.sort((a, l) => a - l);
|
|
25123
25134
|
let n, r = [];
|
|
@@ -25137,7 +25148,7 @@ function Vs(e) {
|
|
|
25137
25148
|
const t = p.cloneDeep(e);
|
|
25138
25149
|
return delete t.cellrange, JSON.stringify(t);
|
|
25139
25150
|
}
|
|
25140
|
-
function
|
|
25151
|
+
function Ly(e, t) {
|
|
25141
25152
|
var Y;
|
|
25142
25153
|
const n = e.config;
|
|
25143
25154
|
if (n.merge == null && (n.merge = {}), !t) return;
|
|
@@ -25432,7 +25443,7 @@ function mn(e, t, n, r) {
|
|
|
25432
25443
|
i = l;
|
|
25433
25444
|
return [o, i];
|
|
25434
25445
|
}
|
|
25435
|
-
function
|
|
25446
|
+
function By(e, t, n, r) {
|
|
25436
25447
|
var g;
|
|
25437
25448
|
const a = Ae(e);
|
|
25438
25449
|
if (!a) return;
|
|
@@ -25467,7 +25478,7 @@ function Ly(e, t, n, r) {
|
|
|
25467
25478
|
);
|
|
25468
25479
|
return;
|
|
25469
25480
|
}
|
|
25470
|
-
T && n === 0 ? (y.row_focus = u, y.column_focus = m, y.moveXY = { x: $, y: S }) : (y.row = [u, c], y.column = [m, h], y.row_focus = u, y.column_focus = m, y.moveXY = { x: $, y: S }), Ht(e, e.luckysheet_select_save),
|
|
25481
|
+
T && n === 0 ? (y.row_focus = u, y.column_focus = m, y.moveXY = { x: $, y: S }) : (y.row = [u, c], y.column = [m, h], y.row_focus = u, y.column_focus = m, y.moveXY = { x: $, y: S }), Ht(e, e.luckysheet_select_save), Jn(e, u, m);
|
|
25471
25482
|
} else if (r === "rangeOfFormula") {
|
|
25472
25483
|
const y = e.formulaCache.func_selectedrange;
|
|
25473
25484
|
if (!y) return;
|
|
@@ -25507,10 +25518,10 @@ function Ly(e, t, n, r) {
|
|
|
25507
25518
|
row_focus: u,
|
|
25508
25519
|
column_focus: m,
|
|
25509
25520
|
moveXY: { x: _, y: T }
|
|
25510
|
-
},
|
|
25521
|
+
}, Jn(e, u, m);
|
|
25511
25522
|
}
|
|
25512
25523
|
}
|
|
25513
|
-
function
|
|
25524
|
+
function Py(e, t, n, r) {
|
|
25514
25525
|
let a, l, o, i;
|
|
25515
25526
|
const s = Ae(e);
|
|
25516
25527
|
if (!p.isNil(s) && !p.isNil(e.luckysheet_select_save)) {
|
|
@@ -25597,10 +25608,10 @@ function By(e, t, n, r) {
|
|
|
25597
25608
|
);
|
|
25598
25609
|
if (p.isNil(_) || ([v, w] = _), u.row = w, u.column = v, Ht(e, e.luckysheet_select_save), t === "down") {
|
|
25599
25610
|
const T = u.row_focus === u.row[0] ? u.row[1] : u.row[0];
|
|
25600
|
-
|
|
25611
|
+
Jn(e, T, -1);
|
|
25601
25612
|
} else {
|
|
25602
25613
|
const T = u.column_focus === u.column[0] ? u.column[1] : u.column[0];
|
|
25603
|
-
|
|
25614
|
+
Jn(e, -1, T);
|
|
25604
25615
|
}
|
|
25605
25616
|
} else if (r === "rangeOfFormula") {
|
|
25606
25617
|
const u = e.formulaCache.func_selectedrange;
|
|
@@ -25695,7 +25706,7 @@ function By(e, t, n, r) {
|
|
|
25695
25706
|
column: v,
|
|
25696
25707
|
row_focus: h,
|
|
25697
25708
|
column_focus: g
|
|
25698
|
-
}, !p.isNil(h) && !p.isNil(g) &&
|
|
25709
|
+
}, !p.isNil(h) && !p.isNil(g) && Jn(e, h, g);
|
|
25699
25710
|
}
|
|
25700
25711
|
}
|
|
25701
25712
|
}
|
|
@@ -25910,7 +25921,7 @@ function Yp(e, t, n, r) {
|
|
|
25910
25921
|
}
|
|
25911
25922
|
return `<table data-type="fortune-copy-action-table">${y}${h}</table>`;
|
|
25912
25923
|
}
|
|
25913
|
-
function
|
|
25924
|
+
function Hy(e) {
|
|
25914
25925
|
var g, y, b, w;
|
|
25915
25926
|
const t = Ae(e);
|
|
25916
25927
|
e.lastInternalCopyHtmlMetadataStripped = !1, e.luckysheet_selection_range = [], Ip();
|
|
@@ -25949,7 +25960,7 @@ function Py(e) {
|
|
|
25949
25960
|
let f;
|
|
25950
25961
|
const d = e.luckysheet_select_save;
|
|
25951
25962
|
if ((d == null ? void 0 : d.length) === 1 && d[0].row[0] === d[0].row[1] && d[0].column[0] === d[0].column[1] && u) {
|
|
25952
|
-
const v = d[0].row[0], _ = d[0].column[0], { fontarray: T } =
|
|
25963
|
+
const v = d[0].row[0], _ = d[0].column[0], { fontarray: T } = It(e), C = {
|
|
25953
25964
|
color: "#000000",
|
|
25954
25965
|
fontFamily: T[0] ?? "Arial",
|
|
25955
25966
|
fontSize: "11pt",
|
|
@@ -25993,7 +26004,7 @@ function Py(e) {
|
|
|
25993
26004
|
let h = !1;
|
|
25994
26005
|
f && c && f.length > Hp && (h = !0, f = f.replace(/\sdata-fortune-cell="[^"]*"/g, "")), f && (e.iscopyself = !0, e.lastInternalCopyHtmlMetadataStripped = h, Mp.writeHtml(f));
|
|
25995
26006
|
}
|
|
25996
|
-
function
|
|
26007
|
+
function Uy(e) {
|
|
25997
26008
|
var r, a, l, o, i, s, u, c;
|
|
25998
26009
|
if (ft(e) === !1 || e.isFlvReadOnly)
|
|
25999
26010
|
return "allowEdit";
|
|
@@ -26046,7 +26057,7 @@ function Hy(e) {
|
|
|
26046
26057
|
}
|
|
26047
26058
|
return "success";
|
|
26048
26059
|
}
|
|
26049
|
-
function
|
|
26060
|
+
function zy(e) {
|
|
26050
26061
|
var r;
|
|
26051
26062
|
if (ft(e) === !1)
|
|
26052
26063
|
return "allowEdit";
|
|
@@ -26084,7 +26095,7 @@ function Uy(e) {
|
|
|
26084
26095
|
}
|
|
26085
26096
|
return "success";
|
|
26086
26097
|
}
|
|
26087
|
-
function
|
|
26098
|
+
function Wy(e) {
|
|
26088
26099
|
var r, a, l;
|
|
26089
26100
|
if (ft(e) === !1)
|
|
26090
26101
|
return "allowEdit";
|
|
@@ -26191,7 +26202,7 @@ function zy(e) {
|
|
|
26191
26202
|
}
|
|
26192
26203
|
return "success";
|
|
26193
26204
|
}
|
|
26194
|
-
function
|
|
26205
|
+
function Yy(e) {
|
|
26195
26206
|
var r, a, l;
|
|
26196
26207
|
if (ft(e) === !1)
|
|
26197
26208
|
return "allowEdit";
|
|
@@ -26298,7 +26309,7 @@ function Wy(e) {
|
|
|
26298
26309
|
}
|
|
26299
26310
|
return "success";
|
|
26300
26311
|
}
|
|
26301
|
-
function
|
|
26312
|
+
function Vy(e, t) {
|
|
26302
26313
|
var a;
|
|
26303
26314
|
if (ft(e) === !1)
|
|
26304
26315
|
return "allowEdit";
|
|
@@ -26336,7 +26347,7 @@ function Yy(e, t) {
|
|
|
26336
26347
|
}
|
|
26337
26348
|
return "success";
|
|
26338
26349
|
}
|
|
26339
|
-
function
|
|
26350
|
+
function Gy(e) {
|
|
26340
26351
|
var r;
|
|
26341
26352
|
if (ft(e) === !1)
|
|
26342
26353
|
return "allowEdit";
|
|
@@ -26379,7 +26390,7 @@ function Vy(e) {
|
|
|
26379
26390
|
}
|
|
26380
26391
|
return "success";
|
|
26381
26392
|
}
|
|
26382
|
-
function
|
|
26393
|
+
function jy(e) {
|
|
26383
26394
|
var r;
|
|
26384
26395
|
if (ft(e) === !1)
|
|
26385
26396
|
return "allowEdit";
|
|
@@ -26421,7 +26432,7 @@ function Gy(e) {
|
|
|
26421
26432
|
}
|
|
26422
26433
|
return "success";
|
|
26423
26434
|
}
|
|
26424
|
-
function
|
|
26435
|
+
function Xy(e) {
|
|
26425
26436
|
var r;
|
|
26426
26437
|
if (ft(e) === !1)
|
|
26427
26438
|
return "allowEdit";
|
|
@@ -26464,10 +26475,10 @@ function jy(e) {
|
|
|
26464
26475
|
}
|
|
26465
26476
|
return "success";
|
|
26466
26477
|
}
|
|
26467
|
-
function
|
|
26478
|
+
function Zy(e, t) {
|
|
26468
26479
|
return !1;
|
|
26469
26480
|
}
|
|
26470
|
-
function
|
|
26481
|
+
function Ky(e) {
|
|
26471
26482
|
const t = Ae(e);
|
|
26472
26483
|
t && (e.luckysheet_select_status = !1, e.luckysheet_select_save = [
|
|
26473
26484
|
{
|
|
@@ -26480,7 +26491,7 @@ function Zy(e) {
|
|
|
26480
26491
|
}
|
|
26481
26492
|
], Ht(e, e.luckysheet_select_save));
|
|
26482
26493
|
}
|
|
26483
|
-
function
|
|
26494
|
+
function Qy(e, t, n, r) {
|
|
26484
26495
|
var s;
|
|
26485
26496
|
if (!r) return {};
|
|
26486
26497
|
const a = {}, { scrollTop: l } = e, o = (s = r.horizontal) == null ? void 0 : s.freezenhorizontaldata;
|
|
@@ -26491,7 +26502,7 @@ function Ky(e, t, n, r) {
|
|
|
26491
26502
|
}
|
|
26492
26503
|
return i || (a.display = "none"), a;
|
|
26493
26504
|
}
|
|
26494
|
-
function
|
|
26505
|
+
function Jy(e, t, n, r) {
|
|
26495
26506
|
var s;
|
|
26496
26507
|
if (!r) return {};
|
|
26497
26508
|
const a = {}, { scrollLeft: l } = e, o = (s = r.vertical) == null ? void 0 : s.freezenverticaldata;
|
|
@@ -26502,7 +26513,7 @@ function Qy(e, t, n, r) {
|
|
|
26502
26513
|
}
|
|
26503
26514
|
return i || (a.display = "none"), a;
|
|
26504
26515
|
}
|
|
26505
|
-
function
|
|
26516
|
+
function e0(e) {
|
|
26506
26517
|
var s, u, c, f, d, m, h, g, y, b, w, v, _, T, C, N, A, $;
|
|
26507
26518
|
const t = e.luckysheet_select_save;
|
|
26508
26519
|
let n = 0, r = 0, a = 0, l = -1 / 0, o = 1 / 0;
|
|
@@ -26521,16 +26532,16 @@ function Jy(e) {
|
|
|
26521
26532
|
const i = String(a / n);
|
|
26522
26533
|
return { numberC: n, count: r, sum: a, max: l, min: o, average: i };
|
|
26523
26534
|
}
|
|
26524
|
-
function
|
|
26535
|
+
function t0(e, t, n) {
|
|
26525
26536
|
var i, s;
|
|
26526
26537
|
const r = Ae(e);
|
|
26527
26538
|
if (!(r != null && r.length) || !((i = r[0]) != null && i.length)) return;
|
|
26528
26539
|
const a = (s = e.luckysheet_select_save) == null ? void 0 : s[e.luckysheet_select_save.length - 1];
|
|
26529
26540
|
if (!a) return;
|
|
26530
26541
|
const l = Math.max(0, Math.min(t, r.length - 1)), o = Math.max(0, Math.min(n, r[0].length - 1));
|
|
26531
|
-
a.row = [l, l], a.column = [o, o], a.row_focus = l, a.column_focus = o, a.moveXY = { x: l, y: o }, Ht(e, e.luckysheet_select_save),
|
|
26542
|
+
a.row = [l, l], a.column = [o, o], a.row_focus = l, a.column_focus = o, a.moveXY = { x: l, y: o }, Ht(e, e.luckysheet_select_save), Jn(e, l, o);
|
|
26532
26543
|
}
|
|
26533
|
-
function
|
|
26544
|
+
function n0(e, t, n) {
|
|
26534
26545
|
var c;
|
|
26535
26546
|
if (!ft(e)) return !1;
|
|
26536
26547
|
const r = e.luckysheet_select_save;
|
|
@@ -26575,7 +26586,7 @@ function t0(e, t, n) {
|
|
|
26575
26586
|
);
|
|
26576
26587
|
}), !0;
|
|
26577
26588
|
}
|
|
26578
|
-
function
|
|
26589
|
+
function r0(e) {
|
|
26579
26590
|
return {
|
|
26580
26591
|
luckysheetfile: [],
|
|
26581
26592
|
defaultcolumnNum: 60,
|
|
@@ -26891,7 +26902,7 @@ function Vp(e, t, n) {
|
|
|
26891
26902
|
}
|
|
26892
26903
|
e.ch_width += r;
|
|
26893
26904
|
}
|
|
26894
|
-
function
|
|
26905
|
+
function a0(e, t) {
|
|
26895
26906
|
if ((e == null ? void 0 : e.length) > 0) {
|
|
26896
26907
|
let n = !1;
|
|
26897
26908
|
const r = [];
|
|
@@ -26900,7 +26911,7 @@ function r0(e, t) {
|
|
|
26900
26911
|
}), n || (e[0].status = 1);
|
|
26901
26912
|
}
|
|
26902
26913
|
}
|
|
26903
|
-
function
|
|
26914
|
+
function o0(e) {
|
|
26904
26915
|
const t = e.luckysheetfile.filter(
|
|
26905
26916
|
(n) => p.isUndefined(n.hide) || n.hide !== 1
|
|
26906
26917
|
);
|
|
@@ -26911,11 +26922,11 @@ function a0(e) {
|
|
|
26911
26922
|
break;
|
|
26912
26923
|
}
|
|
26913
26924
|
}
|
|
26914
|
-
function
|
|
26925
|
+
function l0(e, t) {
|
|
26915
26926
|
const n = t.length, r = n === 0 ? 0 : t[0].length;
|
|
26916
26927
|
Vp(e, n, r), Ht(e, e.luckysheet_select_save);
|
|
26917
26928
|
}
|
|
26918
|
-
function
|
|
26929
|
+
function i0(e, t, n) {
|
|
26919
26930
|
e.luckysheetTableContentHW = [
|
|
26920
26931
|
n.clientWidth,
|
|
26921
26932
|
n.clientHeight
|
|
@@ -27686,7 +27697,7 @@ function Go(e, t, n, r, a, l) {
|
|
|
27686
27697
|
return o;
|
|
27687
27698
|
}
|
|
27688
27699
|
const Xs = /* @__PURE__ */ new WeakMap();
|
|
27689
|
-
function
|
|
27700
|
+
function s0(e, t, n, r, a) {
|
|
27690
27701
|
var d;
|
|
27691
27702
|
const l = e.config, o = Ae(e);
|
|
27692
27703
|
if (!l || !o || Jo(l))
|
|
@@ -27780,7 +27791,7 @@ function Xa(e) {
|
|
|
27780
27791
|
});
|
|
27781
27792
|
}
|
|
27782
27793
|
}
|
|
27783
|
-
function
|
|
27794
|
+
function u0(e, t, n, r) {
|
|
27784
27795
|
if (e <= 0 || n <= 0) return {};
|
|
27785
27796
|
const a = Array.from({ length: e }, (s, u) => u), l = a.splice(t, n);
|
|
27786
27797
|
let o = r;
|
|
@@ -27896,11 +27907,24 @@ const Na = (e) => {
|
|
|
27896
27907
|
value: n.column,
|
|
27897
27908
|
type: "update"
|
|
27898
27909
|
}), a.length > 0 && (r ?? e.hooks.updateCellYdoc)(a);
|
|
27899
|
-
},
|
|
27910
|
+
}, Zn = (e) => {
|
|
27900
27911
|
e.v = "#REF!", e.m = "#REF!", e.error = { title: "#REF!", message: "Reference is not valid." }, e.ct ? e.ct.t = "e" : e.ct = { fa: "General", t: "e" };
|
|
27912
|
+
}, Xp = (e, t, n, r, a, l, o) => {
|
|
27913
|
+
Array.isArray(e.celldata) && e.celldata.forEach((i) => {
|
|
27914
|
+
const s = i == null ? void 0 : i.v;
|
|
27915
|
+
if (!(s != null && s.f)) return;
|
|
27916
|
+
const u = `=${Rt(s.f, t, n, r, a, l, {
|
|
27917
|
+
editedTab: o,
|
|
27918
|
+
formulaTab: e.name
|
|
27919
|
+
})}`;
|
|
27920
|
+
s.f = u, u.includes("#REF!") && Zn(s);
|
|
27921
|
+
});
|
|
27901
27922
|
}, Pc = (e, t, n, r, a, l, o, i) => {
|
|
27902
27923
|
const s = e.data;
|
|
27903
|
-
if (!s)
|
|
27924
|
+
if (!s) {
|
|
27925
|
+
Xp(e, n, r, a, l, o, i);
|
|
27926
|
+
return;
|
|
27927
|
+
}
|
|
27904
27928
|
const u = /* @__PURE__ */ new Set();
|
|
27905
27929
|
(t || []).forEach((c) => {
|
|
27906
27930
|
c && Number.isFinite(c.r) && Number.isFinite(c.c) && u.add(`${c.r}_${c.c}`);
|
|
@@ -27911,15 +27935,15 @@ const Na = (e) => {
|
|
|
27911
27935
|
for (let d = 0; d < f.length; d += 1) {
|
|
27912
27936
|
const m = f[d];
|
|
27913
27937
|
if (!(m != null && m.f) || u.has(`${c}_${d}`)) continue;
|
|
27914
|
-
const h = `=${
|
|
27938
|
+
const h = `=${Rt(m.f, n, r, a, l, o, {
|
|
27915
27939
|
editedTab: i,
|
|
27916
27940
|
formulaTab: e.name
|
|
27917
27941
|
})}`;
|
|
27918
|
-
m.f = h, h.includes("#REF!") &&
|
|
27942
|
+
m.f = h, h.includes("#REF!") && Zn(m);
|
|
27919
27943
|
}
|
|
27920
27944
|
}
|
|
27921
27945
|
};
|
|
27922
|
-
function
|
|
27946
|
+
function Zp(e, t, n = !0) {
|
|
27923
27947
|
var q, E, H, Ce, P, Ee, j, J, x, te, ne, F, ee, oe, ue, we, se, X, qe, De, Fe, _e, I, L, ye, re;
|
|
27924
27948
|
let { count: r, id: a } = t;
|
|
27925
27949
|
e.formulaCache.markDepGraphIncomplete();
|
|
@@ -28006,13 +28030,11 @@ function Xp(e, t, n = !0) {
|
|
|
28006
28030
|
}), h.merge = $;
|
|
28007
28031
|
const S = [];
|
|
28008
28032
|
for (let B = 0; B < e.luckysheetfile.length; B += 1) {
|
|
28009
|
-
|
|
28010
|
-
continue;
|
|
28011
|
-
const { calcChain: Z } = e.luckysheetfile[B], { data: le } = e.luckysheetfile[B];
|
|
28033
|
+
const Z = e.luckysheetfile[B].calcChain ?? [], { data: le } = e.luckysheetfile[B];
|
|
28012
28034
|
for (let de = 0; de < Z.length; de += 1) {
|
|
28013
28035
|
const ve = p.cloneDeep(Z[de]), Ne = ve.r, be = ve.c, Se = ve.id, Be = Or(e, Ne, be, Se);
|
|
28014
28036
|
if (l === "row" && B === f) {
|
|
28015
|
-
const Me = `=${
|
|
28037
|
+
const Me = `=${Rt(
|
|
28016
28038
|
Be,
|
|
28017
28039
|
"add",
|
|
28018
28040
|
"row",
|
|
@@ -28026,7 +28048,7 @@ function Xp(e, t, n = !0) {
|
|
|
28026
28048
|
)}`;
|
|
28027
28049
|
((j = (Ee = m[Ne]) == null ? void 0 : Ee[be]) == null ? void 0 : j.f) === Be && (m[Ne][be].f = Me), i === "lefttop" ? Ne >= o && (ve.r += r) : i === "rightbottom" && Ne > o && (ve.r += r), S.push(ve);
|
|
28028
28050
|
} else if (l === "row") {
|
|
28029
|
-
const Me = `=${
|
|
28051
|
+
const Me = `=${Rt(
|
|
28030
28052
|
Be,
|
|
28031
28053
|
"add",
|
|
28032
28054
|
"row",
|
|
@@ -28040,7 +28062,7 @@ function Xp(e, t, n = !0) {
|
|
|
28040
28062
|
)}`, xe = (J = le == null ? void 0 : le[Ne]) == null ? void 0 : J[be];
|
|
28041
28063
|
xe != null && xe.f === Be && (xe.f = Me);
|
|
28042
28064
|
} else if (l === "column" && B === f) {
|
|
28043
|
-
const Me = `=${
|
|
28065
|
+
const Me = `=${Rt(
|
|
28044
28066
|
Be,
|
|
28045
28067
|
"add",
|
|
28046
28068
|
"col",
|
|
@@ -28054,7 +28076,7 @@ function Xp(e, t, n = !0) {
|
|
|
28054
28076
|
)}`;
|
|
28055
28077
|
((te = (x = m[Ne]) == null ? void 0 : x[be]) == null ? void 0 : te.f) === Be && (m[Ne][be].f = Me), i === "lefttop" ? be >= o && (ve.c += r) : i === "rightbottom" && be > o && (ve.c += r), S.push(ve);
|
|
28056
28078
|
} else if (l === "column") {
|
|
28057
|
-
const Me = `=${
|
|
28079
|
+
const Me = `=${Rt(
|
|
28058
28080
|
Be,
|
|
28059
28081
|
"add",
|
|
28060
28082
|
"col",
|
|
@@ -28594,14 +28616,12 @@ function Hc(e, t) {
|
|
|
28594
28616
|
}), s.merge = g;
|
|
28595
28617
|
const y = [];
|
|
28596
28618
|
for (let J = 0; J < e.luckysheetfile.length; J += 1) {
|
|
28597
|
-
|
|
28598
|
-
continue;
|
|
28599
|
-
const { calcChain: x } = e.luckysheetfile[J], { data: te } = e.luckysheetfile[J];
|
|
28619
|
+
const x = e.luckysheetfile[J].calcChain ?? [], { data: te } = e.luckysheetfile[J];
|
|
28600
28620
|
for (let ne = 0; ne < x.length; ne += 1) {
|
|
28601
28621
|
const F = p.cloneDeep(x[ne]), ee = F.r, oe = F.c, ue = F.id, we = Or(e, ee, oe, ue);
|
|
28602
28622
|
if (n === "row" && J === o) {
|
|
28603
28623
|
if (ee < r || ee > a) {
|
|
28604
|
-
const se = `=${
|
|
28624
|
+
const se = `=${Rt(
|
|
28605
28625
|
we,
|
|
28606
28626
|
"del",
|
|
28607
28627
|
"row",
|
|
@@ -28613,10 +28633,10 @@ function Hc(e, t) {
|
|
|
28613
28633
|
formulaTab: e.luckysheetfile[J].name
|
|
28614
28634
|
}
|
|
28615
28635
|
)}`;
|
|
28616
|
-
((z = (Q = te[ee]) == null ? void 0 : Q[oe]) == null ? void 0 : z.f) === we && (te[ee][oe].f = se, se.includes("#REF!") &&
|
|
28636
|
+
((z = (Q = te[ee]) == null ? void 0 : Q[oe]) == null ? void 0 : z.f) === we && (te[ee][oe].f = se, se.includes("#REF!") && Zn(te[ee][oe])), ee > a && (F.r = ee - f), y.push(F);
|
|
28617
28637
|
}
|
|
28618
28638
|
} else if (n === "row") {
|
|
28619
|
-
const se = `=${
|
|
28639
|
+
const se = `=${Rt(
|
|
28620
28640
|
we,
|
|
28621
28641
|
"del",
|
|
28622
28642
|
"row",
|
|
@@ -28628,10 +28648,10 @@ function Hc(e, t) {
|
|
|
28628
28648
|
formulaTab: e.luckysheetfile[J].name
|
|
28629
28649
|
}
|
|
28630
28650
|
)}`, X = (V = te == null ? void 0 : te[ee]) == null ? void 0 : V[oe];
|
|
28631
|
-
X != null && X.f === we && (X.f = se, se
|
|
28651
|
+
X != null && X.f === we && (X.f = se, se.includes("#REF!") && Zn(X));
|
|
28632
28652
|
} else if (n === "column" && J === o) {
|
|
28633
28653
|
if (oe < r || oe > a) {
|
|
28634
|
-
const se = `=${
|
|
28654
|
+
const se = `=${Rt(
|
|
28635
28655
|
we,
|
|
28636
28656
|
"del",
|
|
28637
28657
|
"col",
|
|
@@ -28643,10 +28663,10 @@ function Hc(e, t) {
|
|
|
28643
28663
|
formulaTab: e.luckysheetfile[J].name
|
|
28644
28664
|
}
|
|
28645
28665
|
)}`;
|
|
28646
|
-
((Te = (fe = te[ee]) == null ? void 0 : fe[oe]) == null ? void 0 : Te.f) === we && (te[ee][oe].f = se, se.includes("#REF!") &&
|
|
28666
|
+
((Te = (fe = te[ee]) == null ? void 0 : fe[oe]) == null ? void 0 : Te.f) === we && (te[ee][oe].f = se, se.includes("#REF!") && Zn(te[ee][oe])), oe > a && (F.c = oe - f), y.push(F);
|
|
28647
28667
|
}
|
|
28648
28668
|
} else if (n === "column") {
|
|
28649
|
-
const se = `=${
|
|
28669
|
+
const se = `=${Rt(
|
|
28650
28670
|
we,
|
|
28651
28671
|
"del",
|
|
28652
28672
|
"col",
|
|
@@ -28658,7 +28678,7 @@ function Hc(e, t) {
|
|
|
28658
28678
|
formulaTab: e.luckysheetfile[J].name
|
|
28659
28679
|
}
|
|
28660
28680
|
)}`, X = (q = te == null ? void 0 : te[ee]) == null ? void 0 : q[oe];
|
|
28661
|
-
X != null && X.f === we && (X.f = se, se
|
|
28681
|
+
X != null && X.f === we && (X.f = se, se.includes("#REF!") && Zn(X));
|
|
28662
28682
|
}
|
|
28663
28683
|
}
|
|
28664
28684
|
Pc(
|
|
@@ -28944,7 +28964,7 @@ function Hc(e, t) {
|
|
|
28944
28964
|
J.length > 0 && (e.formulaCache.execFunctionExist = J, Bt(e, null, null, null, null, Ae(e)), e.formulaCache.execFunctionExist = void 0);
|
|
28945
28965
|
}
|
|
28946
28966
|
}
|
|
28947
|
-
function
|
|
28967
|
+
function c0(e, t) {
|
|
28948
28968
|
if (!e.luckysheet_select_save || e.luckysheet_select_save.length > 1)
|
|
28949
28969
|
return "noMulti";
|
|
28950
28970
|
const n = ke(e, e.currentSheetId);
|
|
@@ -28966,7 +28986,7 @@ function u0(e, t) {
|
|
|
28966
28986
|
}
|
|
28967
28987
|
return e.luckysheetfile[n].config = e.config, "";
|
|
28968
28988
|
}
|
|
28969
|
-
function
|
|
28989
|
+
function f0(e, t) {
|
|
28970
28990
|
if (!e.luckysheet_select_save || e.luckysheet_select_save.length > 1)
|
|
28971
28991
|
return "noMulti";
|
|
28972
28992
|
const n = ke(e, e.currentSheetId);
|
|
@@ -28984,7 +29004,7 @@ function c0(e, t) {
|
|
|
28984
29004
|
}
|
|
28985
29005
|
return e.luckysheetfile[n].config = e.config, "";
|
|
28986
29006
|
}
|
|
28987
|
-
function
|
|
29007
|
+
function d0(e) {
|
|
28988
29008
|
var t, n, r, a;
|
|
28989
29009
|
if (!e.luckysheet_select_save || !e.config.colhidden && !e.config.rowhidden)
|
|
28990
29010
|
return !1;
|
|
@@ -29000,7 +29020,7 @@ function f0(e) {
|
|
|
29000
29020
|
}
|
|
29001
29021
|
return !1;
|
|
29002
29022
|
}
|
|
29003
|
-
function
|
|
29023
|
+
function m0(e, t) {
|
|
29004
29024
|
let n = 1;
|
|
29005
29025
|
if (!e.luckysheet_select_save) return 0;
|
|
29006
29026
|
const r = e.luckysheet_select_save[0], a = e.config.rowhidden ?? {}, l = e.config.colhidden ?? {};
|
|
@@ -29045,12 +29065,12 @@ function d0(e, t) {
|
|
|
29045
29065
|
}
|
|
29046
29066
|
return n;
|
|
29047
29067
|
}
|
|
29048
|
-
function
|
|
29068
|
+
function Kp(e) {
|
|
29049
29069
|
var t;
|
|
29050
29070
|
return e == null ? !1 : Sn(e.ct) || !p.isEmpty(e.v) || e.f != null || // @ts-ignore
|
|
29051
29071
|
e.s != null || e.ct && ((t = e.ct.s) == null ? void 0 : t.length);
|
|
29052
29072
|
}
|
|
29053
|
-
function
|
|
29073
|
+
function h0(e) {
|
|
29054
29074
|
var n, r;
|
|
29055
29075
|
const t = Ae(e);
|
|
29056
29076
|
if (!t || !((n = e.luckysheet_select_save) != null && n.length)) return !1;
|
|
@@ -29058,11 +29078,11 @@ function m0(e) {
|
|
|
29058
29078
|
const l = e.luckysheet_select_save[a].row[0], o = e.luckysheet_select_save[a].row[1], i = e.luckysheet_select_save[a].column[0], s = e.luckysheet_select_save[a].column[1];
|
|
29059
29079
|
for (let u = l; u <= o; u += 1)
|
|
29060
29080
|
for (let c = i; c <= s; c += 1)
|
|
29061
|
-
if (
|
|
29081
|
+
if (Kp((r = t[u]) == null ? void 0 : r[c])) return !0;
|
|
29062
29082
|
}
|
|
29063
29083
|
return !1;
|
|
29064
29084
|
}
|
|
29065
|
-
function
|
|
29085
|
+
function Qp(e, t, n, r) {
|
|
29066
29086
|
var u, c, f, d, m, h;
|
|
29067
29087
|
const a = ke(e, t);
|
|
29068
29088
|
if (a == null) return;
|
|
@@ -29242,7 +29262,7 @@ function Br(e) {
|
|
|
29242
29262
|
`).replace(/\r/g, `
|
|
29243
29263
|
`);
|
|
29244
29264
|
}
|
|
29245
|
-
function
|
|
29265
|
+
function p0(e, t, n, r, a) {
|
|
29246
29266
|
const l = Ae(e);
|
|
29247
29267
|
if (l == null) return;
|
|
29248
29268
|
const { scrollLeft: o } = r, { scrollTop: i } = a, s = n.getBoundingClientRect();
|
|
@@ -29284,10 +29304,10 @@ function Vr(e, t, n) {
|
|
|
29284
29304
|
((s = (i = Ae(e)) == null ? void 0 : i[t]) == null ? void 0 : s[n]) ?? void 0
|
|
29285
29305
|
);
|
|
29286
29306
|
}
|
|
29287
|
-
function
|
|
29307
|
+
function g0(e, t, n) {
|
|
29288
29308
|
return Vr(e, t, n)[0];
|
|
29289
29309
|
}
|
|
29290
|
-
function
|
|
29310
|
+
function Jp(e, t) {
|
|
29291
29311
|
var n;
|
|
29292
29312
|
return ((n = e == null ? void 0 : e.ct) == null ? void 0 : n.t) !== "inlineStr" || !Array.isArray(e.ct.s) ? "" : e.ct.s.filter((r) => r.link && Tn(r.link, t)).map((r) => r.v ?? "").join("");
|
|
29293
29313
|
}
|
|
@@ -29296,7 +29316,7 @@ function ql(e) {
|
|
|
29296
29316
|
`).replace(/\r/g, `
|
|
29297
29317
|
`);
|
|
29298
29318
|
}
|
|
29299
|
-
function
|
|
29319
|
+
function y0(e, t) {
|
|
29300
29320
|
var l;
|
|
29301
29321
|
if (((l = e == null ? void 0 : e.ct) == null ? void 0 : l.t) !== "inlineStr" || !Array.isArray(e.ct.s))
|
|
29302
29322
|
return;
|
|
@@ -29312,7 +29332,7 @@ function g0(e, t) {
|
|
|
29312
29332
|
if (!(r == null || a == null || r === a))
|
|
29313
29333
|
return { start: r, end: a };
|
|
29314
29334
|
}
|
|
29315
|
-
function
|
|
29335
|
+
function eg(e, t, n) {
|
|
29316
29336
|
var l, o, i;
|
|
29317
29337
|
if (t >= n || ((l = e == null ? void 0 : e.ct) == null ? void 0 : l.t) !== "inlineStr" || !Array.isArray(e.ct.s))
|
|
29318
29338
|
return;
|
|
@@ -29330,7 +29350,7 @@ function Jp(e, t, n) {
|
|
|
29330
29350
|
}
|
|
29331
29351
|
return a;
|
|
29332
29352
|
}
|
|
29333
|
-
function
|
|
29353
|
+
function tg(e, t) {
|
|
29334
29354
|
var r, a, l;
|
|
29335
29355
|
if (((r = e == null ? void 0 : e.ct) == null ? void 0 : r.t) !== "inlineStr" || !Array.isArray(e.ct.s))
|
|
29336
29356
|
return;
|
|
@@ -29342,11 +29362,11 @@ function eg(e, t) {
|
|
|
29342
29362
|
n += s;
|
|
29343
29363
|
}
|
|
29344
29364
|
}
|
|
29345
|
-
function
|
|
29365
|
+
function or(e, t, n, r) {
|
|
29346
29366
|
const a = `${t}_${n}`;
|
|
29347
29367
|
e.hyperlink || (e.hyperlink = {}), r.length === 0 ? delete e.hyperlink[a] : r.length === 1 ? e.hyperlink[a] = r[0] : e.hyperlink[a] = r;
|
|
29348
29368
|
}
|
|
29349
|
-
function
|
|
29369
|
+
function ng(e) {
|
|
29350
29370
|
var t, n, r;
|
|
29351
29371
|
if (!(((t = e == null ? void 0 : e.ct) == null ? void 0 : t.t) !== "inlineStr" || !Array.isArray(e.ct.s)))
|
|
29352
29372
|
for (const a of e.ct.s) {
|
|
@@ -29361,13 +29381,13 @@ function Za(e) {
|
|
|
29361
29381
|
const t = e.ct.s.map((r) => r.v ?? "").join("");
|
|
29362
29382
|
e.v = t, e.m = t;
|
|
29363
29383
|
}
|
|
29364
|
-
function
|
|
29384
|
+
function rg(e) {
|
|
29365
29385
|
var t;
|
|
29366
29386
|
return ((t = e == null ? void 0 : e.ct) == null ? void 0 : t.t) === "inlineStr" && Array.isArray(e.ct.s) ? Br(
|
|
29367
29387
|
e.ct.s.map((n) => (n == null ? void 0 : n.v) ?? "").join("")
|
|
29368
29388
|
) : (e == null ? void 0 : e.v) == null || Array.isArray(e.v) ? "" : Br(`${e.v}`);
|
|
29369
29389
|
}
|
|
29370
|
-
function
|
|
29390
|
+
function ag(e, t, n, r, a) {
|
|
29371
29391
|
const l = [], o = { ...a }, i = (u) => {
|
|
29372
29392
|
u && l.push({ ...o, v: u });
|
|
29373
29393
|
}, s = (u) => {
|
|
@@ -29381,7 +29401,7 @@ function rg(e, t, n, r, a) {
|
|
|
29381
29401
|
};
|
|
29382
29402
|
return i(e.slice(0, t)), s(e.slice(t, n)), i(e.slice(n)), l;
|
|
29383
29403
|
}
|
|
29384
|
-
function
|
|
29404
|
+
function og(e, t, n, r, a, l, o, i) {
|
|
29385
29405
|
var ie, O;
|
|
29386
29406
|
const s = (ie = e.linkCard) == null ? void 0 : ie.selectionOffsets;
|
|
29387
29407
|
if (!s || !a || !l) return !1;
|
|
@@ -29390,12 +29410,12 @@ function ag(e, t, n, r, a, l, o, i) {
|
|
|
29390
29410
|
const c = u;
|
|
29391
29411
|
if (un(c) && Hn(c).length > 0)
|
|
29392
29412
|
return !1;
|
|
29393
|
-
const f = String(r ?? "").trim() || String(l ?? "").trim(), d = Br(f), m =
|
|
29413
|
+
const f = String(r ?? "").trim() || String(l ?? "").trim(), d = Br(f), m = rg(c), h = Math.max(0, Math.min(s.start, m.length)), g = Math.max(h, Math.min(s.end, m.length)), y = m.slice(h, g), b = d.length > 0 && d !== y, w = typeof ((O = e.linkCard) == null ? void 0 : O.linkInsertOffset) == "number" ? e.linkCard.linkInsertOffset : g, v = Math.max(0, Math.min(w, m.length));
|
|
29394
29414
|
let _, T, C;
|
|
29395
29415
|
if (b ? (_ = m.slice(0, v) + d + m.slice(v), T = v, C = v + d.length) : (_ = m, T = h, C = g), C <= T) return !1;
|
|
29396
29416
|
const N = { linkType: a, linkAddress: l }, $ = { fs: c.fs || 10 };
|
|
29397
29417
|
c.ff != null && ($.ff = c.ff), c.bl != null && ($.bl = c.bl), c.it != null && ($.it = c.it);
|
|
29398
|
-
const S =
|
|
29418
|
+
const S = ag(
|
|
29399
29419
|
_,
|
|
29400
29420
|
T,
|
|
29401
29421
|
C,
|
|
@@ -29407,7 +29427,7 @@ function ag(e, t, n, r, a, l, o, i) {
|
|
|
29407
29427
|
};
|
|
29408
29428
|
delete M.f, delete M.hl, delete M.fc, delete M.un, Za(M);
|
|
29409
29429
|
const U = e.luckysheetfile[o], G = Hn(M);
|
|
29410
|
-
return
|
|
29430
|
+
return or(U, t, n, G), i[t][n] = M, Ka(e, t, n, M, U), e.linkCard = void 0, !0;
|
|
29411
29431
|
}
|
|
29412
29432
|
function Ka(e, t, n, r, a) {
|
|
29413
29433
|
var i, s;
|
|
@@ -29445,10 +29465,10 @@ function ka(e, t, n) {
|
|
|
29445
29465
|
const i = (o.length > 0 ? o : a)[0];
|
|
29446
29466
|
e.linkCard.originType = i.linkType, e.linkCard.originAddress = i.linkAddress, e.linkCard.originText = (l == null ? void 0 : l.v) != null && !Array.isArray(l.v) ? `${l.v}` : "";
|
|
29447
29467
|
}
|
|
29448
|
-
function
|
|
29468
|
+
function b0(e, t, n, r, a, l, o) {
|
|
29449
29469
|
var c, f, d, m;
|
|
29450
29470
|
const i = ke(e, e.currentSheetId), s = Ae(e);
|
|
29451
|
-
if (o != null && o.applySelectionFromModel && i != null && s != null &&
|
|
29471
|
+
if (o != null && o.applySelectionFromModel && i != null && s != null && og(
|
|
29452
29472
|
e,
|
|
29453
29473
|
t,
|
|
29454
29474
|
n,
|
|
@@ -29489,7 +29509,7 @@ function y0(e, t, n, r, a, l, o) {
|
|
|
29489
29509
|
h
|
|
29490
29510
|
), delete h.f, delete h.hl, h.fs = v, Za(h);
|
|
29491
29511
|
const _ = e.luckysheetfile[i], T = Hn(h);
|
|
29492
|
-
|
|
29512
|
+
or(_, t, n, T), s[t][n] = h, Ka(e, t, n, h, _);
|
|
29493
29513
|
}
|
|
29494
29514
|
e.linkCard = void 0;
|
|
29495
29515
|
return;
|
|
@@ -29514,7 +29534,7 @@ function y0(e, t, n, r, a, l, o) {
|
|
|
29514
29534
|
]));
|
|
29515
29535
|
}
|
|
29516
29536
|
}
|
|
29517
|
-
function
|
|
29537
|
+
function lg(e, t, n) {
|
|
29518
29538
|
var i, s, u, c;
|
|
29519
29539
|
if (!ft(e)) return;
|
|
29520
29540
|
const a = ke(e, e.currentSheetId), l = Ae(e);
|
|
@@ -29526,7 +29546,7 @@ function og(e, t, n) {
|
|
|
29526
29546
|
);
|
|
29527
29547
|
p.set(e.luckysheetfile[a], "hyperlink", f);
|
|
29528
29548
|
const d = l[t][n];
|
|
29529
|
-
d != null && (
|
|
29549
|
+
d != null && (ng(d), (i = l[t][n]) == null || delete i.hl, (s = l[t][n]) == null || delete s.un, (u = l[t][n]) == null || delete u.fc, o = l[t][n]);
|
|
29530
29550
|
}
|
|
29531
29551
|
if (e.linkCard = void 0, (c = e == null ? void 0 : e.hooks) != null && c.updateCellYdoc) {
|
|
29532
29552
|
const f = [
|
|
@@ -29547,7 +29567,7 @@ function og(e, t, n) {
|
|
|
29547
29567
|
}), e.hooks.updateCellYdoc(f);
|
|
29548
29568
|
}
|
|
29549
29569
|
}
|
|
29550
|
-
function
|
|
29570
|
+
function w0(e, t, n, r) {
|
|
29551
29571
|
var d, m, h;
|
|
29552
29572
|
if (!ft(e)) return;
|
|
29553
29573
|
const l = ke(e, e.currentSheetId), o = Ae(e);
|
|
@@ -29559,16 +29579,16 @@ function b0(e, t, n, r) {
|
|
|
29559
29579
|
y.link && Tn(y.link, r) && (delete y.link, Iu(y));
|
|
29560
29580
|
Za(u);
|
|
29561
29581
|
const g = Hn(u);
|
|
29562
|
-
|
|
29582
|
+
or(i, t, n, g), Ka(e, t, n, u, i), ka(e, t, n);
|
|
29563
29583
|
return;
|
|
29564
29584
|
}
|
|
29565
29585
|
const c = Il((m = i.hyperlink) == null ? void 0 : m[s]), f = c.filter((g) => !Tn(g, r));
|
|
29566
29586
|
if (f.length !== c.length) {
|
|
29567
29587
|
if (f.length === 0) {
|
|
29568
|
-
|
|
29588
|
+
lg(e, t, n);
|
|
29569
29589
|
return;
|
|
29570
29590
|
}
|
|
29571
|
-
|
|
29591
|
+
or(i, t, n, f), (h = e == null ? void 0 : e.hooks) != null && h.updateCellYdoc && e.hooks.updateCellYdoc([
|
|
29572
29592
|
{
|
|
29573
29593
|
sheetId: e.currentSheetId,
|
|
29574
29594
|
path: ["hyperlink"],
|
|
@@ -29579,7 +29599,7 @@ function b0(e, t, n, r) {
|
|
|
29579
29599
|
]), ka(e, t, n);
|
|
29580
29600
|
}
|
|
29581
29601
|
}
|
|
29582
|
-
function
|
|
29602
|
+
function v0(e, t, n, r, a, l, o) {
|
|
29583
29603
|
var y, b, w;
|
|
29584
29604
|
if (!ft(e)) return;
|
|
29585
29605
|
const s = ke(e, e.currentSheetId), u = Ae(e);
|
|
@@ -29592,13 +29612,13 @@ function w0(e, t, n, r, a, l, o) {
|
|
|
29592
29612
|
C.link && Tn(C.link, r) && (C.link = _);
|
|
29593
29613
|
v.length === 1 && a.trim() && (v[0].v = a), Za(d);
|
|
29594
29614
|
const T = Hn(d);
|
|
29595
|
-
|
|
29615
|
+
or(c, t, n, T), Ka(e, t, n, d, c), ka(e, t, n);
|
|
29596
29616
|
return;
|
|
29597
29617
|
}
|
|
29598
29618
|
const m = Il((b = c.hyperlink) == null ? void 0 : b[f]), h = m.findIndex((v) => Tn(v, r));
|
|
29599
29619
|
if (h < 0) return;
|
|
29600
29620
|
const g = [...m];
|
|
29601
|
-
if (g[h] = { linkType: l, linkAddress: o },
|
|
29621
|
+
if (g[h] = { linkType: l, linkAddress: o }, or(c, t, n, g), d && typeof d == "object" && (d.v = a || o, d.m = a || o), (w = e == null ? void 0 : e.hooks) != null && w.updateCellYdoc) {
|
|
29602
29622
|
const v = [
|
|
29603
29623
|
{
|
|
29604
29624
|
sheetId: e.currentSheetId,
|
|
@@ -29618,7 +29638,7 @@ function w0(e, t, n, r, a, l, o) {
|
|
|
29618
29638
|
}
|
|
29619
29639
|
ka(e, t, n);
|
|
29620
29640
|
}
|
|
29621
|
-
function
|
|
29641
|
+
function ig(e, t, n, r, a = !1, l = !1) {
|
|
29622
29642
|
var h, g, y, b, w, v, _, T, C, N;
|
|
29623
29643
|
const o = (((h = e.luckysheetCellUpdate) == null ? void 0 : h.length) ?? 0) === 2 && e.luckysheetCellUpdate[0] === t && e.luckysheetCellUpdate[1] === n, i = r == null ? void 0 : r.caretViewLink;
|
|
29624
29644
|
if (o && !a && !i || (g = e.linkCard) != null && g.selectingCellRange && !a || `${t}_${n}` === ((y = e.linkCard) == null ? void 0 : y.rc) && !(r != null && r.applyToSelection) && !l && !a && !i)
|
|
@@ -29632,7 +29652,7 @@ function lg(e, t, n, r, a = !1, l = !1) {
|
|
|
29632
29652
|
const A = n - 1 === -1 ? 0 : e.visibledatacolumn[n - 1], $ = e.visibledatarow[t], S = (() => {
|
|
29633
29653
|
if ((r == null ? void 0 : r.originText) !== void 0) return r.originText;
|
|
29634
29654
|
if (i && c) {
|
|
29635
|
-
const G =
|
|
29655
|
+
const G = Jp(c, i);
|
|
29636
29656
|
if (G.length > 0) return G;
|
|
29637
29657
|
}
|
|
29638
29658
|
return (c == null ? void 0 : c.v) == null ? "" : `${c.v}`;
|
|
@@ -29658,7 +29678,7 @@ function lg(e, t, n, r, a = !1, l = !1) {
|
|
|
29658
29678
|
};
|
|
29659
29679
|
}
|
|
29660
29680
|
}
|
|
29661
|
-
function
|
|
29681
|
+
function _0(e, t, n, r, a, l, o) {
|
|
29662
29682
|
if (ke(e, e.currentSheetId) != null && Vr(e, t, n).length !== 0) {
|
|
29663
29683
|
if (r === "webpage") {
|
|
29664
29684
|
const s = String(a ?? "").trim();
|
|
@@ -29674,22 +29694,22 @@ function v0(e, t, n, r, a, l, o) {
|
|
|
29674
29694
|
let s;
|
|
29675
29695
|
p.forEach(e.luckysheetfile, (u) => {
|
|
29676
29696
|
a === u.name && (s = u.id);
|
|
29677
|
-
}), s != null &&
|
|
29697
|
+
}), s != null && rr(e, s);
|
|
29678
29698
|
} else {
|
|
29679
29699
|
const s = p.cloneDeep(Cn(e, a));
|
|
29680
29700
|
if (s == null) return;
|
|
29681
29701
|
const u = s.row[0] - 1 === -1 ? 0 : e.visibledatarow[s.row[0] - 1], c = s.column[0] - 1 === -1 ? 0 : e.visibledatacolumn[s.column[0] - 1];
|
|
29682
|
-
l.scrollLeft = c, o.scrollLeft = u, e.luckysheet_select_save = Ht(e, [s]),
|
|
29702
|
+
l.scrollLeft = c, o.scrollLeft = u, e.luckysheet_select_save = Ht(e, [s]), rr(e, s.sheetId);
|
|
29683
29703
|
}
|
|
29684
29704
|
e.linkCard = void 0;
|
|
29685
29705
|
}
|
|
29686
29706
|
}
|
|
29687
|
-
function
|
|
29707
|
+
function T0(e, t, n) {
|
|
29688
29708
|
if (!n) return { isValid: !1, tooltip: "" };
|
|
29689
|
-
const { insertLink: r } =
|
|
29690
|
-
return Uc(a) ? { isValid: !0, tooltip: "" } : (/^https?:\/\//i.test(n) || (n = `https://${n}`), /^(https?):\/\/[^\s$.?#].[^\s]*$/i.test(n) ? t === "cellrange" && !
|
|
29709
|
+
const { insertLink: r } = It(e), a = String(n ?? "").trim();
|
|
29710
|
+
return Uc(a) ? { isValid: !0, tooltip: "" } : (/^https?:\/\//i.test(n) || (n = `https://${n}`), /^(https?):\/\/[^\s$.?#].[^\s]*$/i.test(n) ? t === "cellrange" && !Mt(n) ? { isValid: !1, tooltip: r.invalidCellRangeTip } : { isValid: !0, tooltip: "" } : { isValid: !1, tooltip: r.tooltipInfo1 });
|
|
29691
29711
|
}
|
|
29692
|
-
function
|
|
29712
|
+
function C0(e, t) {
|
|
29693
29713
|
var s;
|
|
29694
29714
|
const n = (s = e.linkCard) == null ? void 0 : s.rangeSelectionModal;
|
|
29695
29715
|
if (n == null) return;
|
|
@@ -29699,10 +29719,10 @@ function T0(e, t) {
|
|
|
29699
29719
|
let { top: o, left: i } = n.initialPosition;
|
|
29700
29720
|
i += t.pageX - a, o += t.pageY - l, o < 0 && (o = 0), r.style.left = `${i}px`, r.style.top = `${o}px`;
|
|
29701
29721
|
}
|
|
29702
|
-
function
|
|
29722
|
+
function $0(e) {
|
|
29703
29723
|
p.set(e, "linkCard.rangeSelectionModal", void 0);
|
|
29704
29724
|
}
|
|
29705
|
-
function
|
|
29725
|
+
function sg(e, t, n, r) {
|
|
29706
29726
|
let a = [];
|
|
29707
29727
|
const l = n.row[0] - t.row[0], o = n.column[0] - t.column[0], i = e.row[0], s = e.row[1], u = e.column[0], c = e.column[1];
|
|
29708
29728
|
return i >= t.row[0] && s <= t.row[1] && u >= t.column[0] && c <= t.column[1] ? r === "allPart" ? a = [
|
|
@@ -29962,7 +29982,7 @@ function ig(e, t, n, r) {
|
|
|
29962
29982
|
}
|
|
29963
29983
|
]) : r === "allPart" ? a = [{ row: [i, s], column: [u, c] }] : r === "restPart" ? a = [{ row: [i, s], column: [u, c] }] : r === "operatePart" && (a = []), a;
|
|
29964
29984
|
}
|
|
29965
|
-
function
|
|
29985
|
+
function ug(e) {
|
|
29966
29986
|
const t = [];
|
|
29967
29987
|
if (e.length === 0) return t;
|
|
29968
29988
|
let n = e[0], r = e[0];
|
|
@@ -29976,7 +29996,7 @@ function sg(e) {
|
|
|
29976
29996
|
}
|
|
29977
29997
|
return t.push([n, r]), t;
|
|
29978
29998
|
}
|
|
29979
|
-
function
|
|
29999
|
+
function N0(e, t, n) {
|
|
29980
30000
|
if (!(e != null && e.length)) return [];
|
|
29981
30001
|
const r = [];
|
|
29982
30002
|
for (let a = 0; a < e.length; a += 1) {
|
|
@@ -30010,7 +30030,7 @@ function $0(e, t, n) {
|
|
|
30010
30030
|
const m = [];
|
|
30011
30031
|
for (let h = f; h <= d; h += 1)
|
|
30012
30032
|
m.push(n[h] ?? h);
|
|
30013
|
-
m.sort((h, g) => h - g),
|
|
30033
|
+
m.sort((h, g) => h - g), ug(m).forEach(([h, g]) => {
|
|
30014
30034
|
o.push(
|
|
30015
30035
|
t === "row" ? { row: [h, g], column: c } : { row: c, column: [h, g] }
|
|
30016
30036
|
);
|
|
@@ -30024,7 +30044,7 @@ function $0(e, t, n) {
|
|
|
30024
30044
|
}
|
|
30025
30045
|
return r;
|
|
30026
30046
|
}
|
|
30027
|
-
function
|
|
30047
|
+
function cg(e, t, n, r, a) {
|
|
30028
30048
|
if (!e.length) return [];
|
|
30029
30049
|
const l = [];
|
|
30030
30050
|
for (let o = 0; o < e.length; o += 1) {
|
|
@@ -30034,7 +30054,7 @@ function ug(e, t, n, r, a) {
|
|
|
30034
30054
|
let c = [];
|
|
30035
30055
|
for (let f = 0; f < u.length; f += 1)
|
|
30036
30056
|
c = c.concat(
|
|
30037
|
-
|
|
30057
|
+
sg(
|
|
30038
30058
|
u[f],
|
|
30039
30059
|
{ row: [t, n], column: [r, a] },
|
|
30040
30060
|
{ row: [t, n], column: [r, a] },
|
|
@@ -30052,7 +30072,7 @@ function ug(e, t, n, r, a) {
|
|
|
30052
30072
|
function Wc(e, t) {
|
|
30053
30073
|
let n = e ?? [];
|
|
30054
30074
|
return t.forEach((r) => {
|
|
30055
|
-
n =
|
|
30075
|
+
n = cg(
|
|
30056
30076
|
n,
|
|
30057
30077
|
r.row[0],
|
|
30058
30078
|
r.row[1],
|
|
@@ -30354,7 +30374,7 @@ function Ea(e) {
|
|
|
30354
30374
|
let t = e;
|
|
30355
30375
|
return p.isPlainObject(t) && (t = t.v), !!(!ot(t) && Bu(t).num && (e.ct == null || e.ct.t == null || e.ct.t === "n" || e.ct.t === "g"));
|
|
30356
30376
|
}
|
|
30357
|
-
function
|
|
30377
|
+
function fg(e) {
|
|
30358
30378
|
let t = e;
|
|
30359
30379
|
return p.isPlainObject(t) && (t = t.v), !ot(t);
|
|
30360
30380
|
}
|
|
@@ -30375,12 +30395,12 @@ function Er(e, t, n, r) {
|
|
|
30375
30395
|
}
|
|
30376
30396
|
return a;
|
|
30377
30397
|
}
|
|
30378
|
-
function
|
|
30398
|
+
function Kn(e, t, n, r, a, l, o, i, s, u) {
|
|
30379
30399
|
if (u == null && (u = !1), n.luckysheetCellUpdate = [r, a], s.doNotUpdateCell = !0, u) {
|
|
30380
30400
|
const g = `<span dir="auto" class="luckysheet-formula-text-color">=</span><span dir="auto" class="luckysheet-formula-text-color">${i.toUpperCase()}</span><span dir="auto" class="luckysheet-formula-text-color">(</span><span dir="auto" class="luckysheet-formula-text-color">)</span>`;
|
|
30381
30401
|
e.innerHTML = g;
|
|
30382
30402
|
const y = e.querySelectorAll("span");
|
|
30383
|
-
|
|
30403
|
+
ar(n, y[y.length - 2], 0, 1);
|
|
30384
30404
|
return;
|
|
30385
30405
|
}
|
|
30386
30406
|
const c = Bo(l[0], n.visibledatarow)[0], f = Bo(l[1], n.visibledatarow)[1], d = Po(o[0], n.visibledatacolumn)[0], m = Po(o[1], n.visibledatacolumn)[1], h = `<span dir="auto" class="luckysheet-formula-text-color">=</span><span dir="auto" class="luckysheet-formula-text-color">${i.toUpperCase()}</span><span dir="auto" class="luckysheet-formula-text-color">(</span><span class="fortune-formula-functionrange-cell" rangeindex="0" dir="auto" style="color:${pa[0]};">${Fr(
|
|
@@ -30389,7 +30409,7 @@ function Zn(e, t, n, r, a, l, o, i, s, u) {
|
|
|
30389
30409
|
{ row: l, column: o },
|
|
30390
30410
|
n.currentSheetId
|
|
30391
30411
|
)}</span><span dir="auto" class="luckysheet-formula-text-color">)</span>`;
|
|
30392
|
-
e.innerHTML = h,
|
|
30412
|
+
e.innerHTML = h, sr(n), n.formulaCache.rangestart = !0, n.formulaCache.rangedrag_column_start = !1, n.formulaCache.rangedrag_row_start = !1, n.formulaCache.rangechangeindex = 0, Wr(n, e, { row: l, column: o }, t), n.formulaCache.func_selectedrange = {
|
|
30393
30413
|
left: d,
|
|
30394
30414
|
width: m - d - 1,
|
|
30395
30415
|
top: c,
|
|
@@ -30435,12 +30455,12 @@ function ia(e, t, n, r, a, l, o, i, s, u, c, f, d) {
|
|
|
30435
30455
|
let m = !0, h = !1;
|
|
30436
30456
|
for (let g = o; g <= i; g += 1) {
|
|
30437
30457
|
let y = null;
|
|
30438
|
-
u === "c" ? y = r[g][l] : y = r[l][g], Ea(y) ? (m = !1, h = !0) :
|
|
30458
|
+
u === "c" ? y = r[g][l] : y = r[l][g], Ea(y) ? (m = !1, h = !0) : fg(y) && (m = !1);
|
|
30439
30459
|
}
|
|
30440
30460
|
if (m && d) {
|
|
30441
30461
|
let g = Er(r, a, l, u);
|
|
30442
30462
|
if (g == null)
|
|
30443
|
-
u === "c" ?
|
|
30463
|
+
u === "c" ? Kn(
|
|
30444
30464
|
e,
|
|
30445
30465
|
t,
|
|
30446
30466
|
n,
|
|
@@ -30451,7 +30471,7 @@ function ia(e, t, n, r, a, l, o, i, s, u, c, f, d) {
|
|
|
30451
30471
|
s,
|
|
30452
30472
|
c,
|
|
30453
30473
|
!0
|
|
30454
|
-
) :
|
|
30474
|
+
) : Kn(
|
|
30455
30475
|
e,
|
|
30456
30476
|
t,
|
|
30457
30477
|
n,
|
|
@@ -30537,7 +30557,7 @@ function ia(e, t, n, r, a, l, o, i, s, u, c, f, d) {
|
|
|
30537
30557
|
}
|
|
30538
30558
|
return !0;
|
|
30539
30559
|
}
|
|
30540
|
-
function
|
|
30560
|
+
function dg(e, t, n, r, a) {
|
|
30541
30561
|
if (!ft(e)) return;
|
|
30542
30562
|
const o = Ae(e);
|
|
30543
30563
|
if (o == null) return;
|
|
@@ -30545,7 +30565,7 @@ function fg(e, t, n, r, a) {
|
|
|
30545
30565
|
e.formulaCache.execFunctionExist = [];
|
|
30546
30566
|
function s(c, f, d, m, h, g) {
|
|
30547
30567
|
const y = Er(c, f, h, "c");
|
|
30548
|
-
y == null ?
|
|
30568
|
+
y == null ? Kn(
|
|
30549
30569
|
t,
|
|
30550
30570
|
n,
|
|
30551
30571
|
e,
|
|
@@ -30556,7 +30576,7 @@ function fg(e, t, n, r, a) {
|
|
|
30556
30576
|
g,
|
|
30557
30577
|
a,
|
|
30558
30578
|
!0
|
|
30559
|
-
) :
|
|
30579
|
+
) : Kn(
|
|
30560
30580
|
t,
|
|
30561
30581
|
n,
|
|
30562
30582
|
e,
|
|
@@ -30570,7 +30590,7 @@ function fg(e, t, n, r, a) {
|
|
|
30570
30590
|
}
|
|
30571
30591
|
function u(c, f, d, m, h, g) {
|
|
30572
30592
|
const y = Er(c, m, d, "r");
|
|
30573
|
-
y == null ? s(c, f, d, m, h, g) :
|
|
30593
|
+
y == null ? s(c, f, d, m, h, g) : Kn(
|
|
30574
30594
|
t,
|
|
30575
30595
|
n,
|
|
30576
30596
|
e,
|
|
@@ -30586,7 +30606,7 @@ function fg(e, t, n, r, a) {
|
|
|
30586
30606
|
const [f, d] = c.row, [m, h] = c.column, g = c.row_focus, y = c.column_focus;
|
|
30587
30607
|
if (f === d && m === h) {
|
|
30588
30608
|
if (d - 1 < 0 && h - 1 < 0) {
|
|
30589
|
-
|
|
30609
|
+
Kn(
|
|
30590
30610
|
t,
|
|
30591
30611
|
n,
|
|
30592
30612
|
e,
|
|
@@ -30669,7 +30689,7 @@ function fg(e, t, n, r, a) {
|
|
|
30669
30689
|
i = i && i;
|
|
30670
30690
|
}), i || (e.formulaCache.execFunctionExist.reverse(), Bt(e, null, null, null, null, o), e.formulaCache.execFunctionGlobalData = null));
|
|
30671
30691
|
}
|
|
30672
|
-
function
|
|
30692
|
+
function mg(e) {
|
|
30673
30693
|
var t;
|
|
30674
30694
|
if (e.luckysheet_copy_save !== null) {
|
|
30675
30695
|
if (((t = e.luckysheet_copy_save) == null ? void 0 : t.dataSheetId) === e.currentSheetId)
|
|
@@ -30688,7 +30708,7 @@ function dg(e) {
|
|
|
30688
30708
|
}, e.luckysheetPaintModelOn = !1;
|
|
30689
30709
|
}
|
|
30690
30710
|
}
|
|
30691
|
-
function
|
|
30711
|
+
function hg(e, t) {
|
|
30692
30712
|
const n = Ae(e);
|
|
30693
30713
|
if (!n) return;
|
|
30694
30714
|
const r = e.currency || "¥";
|
|
@@ -30700,11 +30720,11 @@ function mg(e, t) {
|
|
|
30700
30720
|
Wu(r, 2)
|
|
30701
30721
|
);
|
|
30702
30722
|
}
|
|
30703
|
-
function
|
|
30723
|
+
function pg(e, t) {
|
|
30704
30724
|
const n = Ae(e);
|
|
30705
30725
|
n && en(e, t, n, "ct", "0.00%");
|
|
30706
30726
|
}
|
|
30707
|
-
function
|
|
30727
|
+
function gg(e, t) {
|
|
30708
30728
|
const n = Ae(e);
|
|
30709
30729
|
if (!n || !e.luckysheet_select_save) return;
|
|
30710
30730
|
const r = e.luckysheet_select_save[0].row_focus, a = e.luckysheet_select_save[0].column_focus;
|
|
@@ -30765,7 +30785,7 @@ function pg(e, t) {
|
|
|
30765
30785
|
}
|
|
30766
30786
|
en(e, t, n, "ct", d);
|
|
30767
30787
|
}
|
|
30768
|
-
function
|
|
30788
|
+
function yg(e, t) {
|
|
30769
30789
|
const n = Ae(e);
|
|
30770
30790
|
if (!n || !e.luckysheet_select_save) return;
|
|
30771
30791
|
const r = e.luckysheet_select_save[0].row_focus, a = e.luckysheet_select_save[0].column_focus;
|
|
@@ -30811,32 +30831,32 @@ function gg(e, t) {
|
|
|
30811
30831
|
f.length > 0 ? d = `${u.replace(f, "")}.0${f}` : d = `${u}.0${f}`;
|
|
30812
30832
|
en(e, t, n, "ct", d);
|
|
30813
30833
|
}
|
|
30814
|
-
function
|
|
30834
|
+
function bg(e, t) {
|
|
30815
30835
|
Ja(e, t, "bl");
|
|
30816
30836
|
}
|
|
30817
|
-
function
|
|
30837
|
+
function wg(e, t) {
|
|
30818
30838
|
Ja(e, t, "it");
|
|
30819
30839
|
}
|
|
30820
|
-
function
|
|
30840
|
+
function vg(e, t) {
|
|
30821
30841
|
Ja(e, t, "cl");
|
|
30822
30842
|
}
|
|
30823
|
-
function
|
|
30843
|
+
function _g(e, t) {
|
|
30824
30844
|
Ja(e, t, "un");
|
|
30825
30845
|
}
|
|
30826
|
-
function
|
|
30846
|
+
function S0(e, t, n) {
|
|
30827
30847
|
Gr(e, t, "ht", n);
|
|
30828
30848
|
}
|
|
30829
|
-
function
|
|
30849
|
+
function k0(e, t, n) {
|
|
30830
30850
|
Gr(e, t, "vt", n);
|
|
30831
30851
|
}
|
|
30832
|
-
function
|
|
30852
|
+
function Tg(e) {
|
|
30833
30853
|
if (!ft(e) || e.luckysheet_select_save == null || e.luckysheet_select_save.length === 0 || e.luckysheet_select_save.length > 1)
|
|
30834
30854
|
return;
|
|
30835
30855
|
let n = !1;
|
|
30836
30856
|
const r = e.luckysheet_select_save[0].row[0], a = e.luckysheet_select_save[0].row[1], l = e.luckysheet_select_save[0].column[0], o = e.luckysheet_select_save[0].column[1];
|
|
30837
30857
|
if (n = cn(e, e.config, r, a, l, o), n)
|
|
30838
30858
|
return;
|
|
30839
|
-
|
|
30859
|
+
mg(e), e.luckysheet_selection_range = [
|
|
30840
30860
|
{
|
|
30841
30861
|
row: e.luckysheet_select_save[0].row,
|
|
30842
30862
|
column: e.luckysheet_select_save[0].column
|
|
@@ -30865,7 +30885,7 @@ function _g(e) {
|
|
|
30865
30885
|
HasMC: s
|
|
30866
30886
|
}, e.luckysheetPaintModelOn = !0, e.luckysheetPaintSingle = !0;
|
|
30867
30887
|
}
|
|
30868
|
-
function
|
|
30888
|
+
function Cg(e) {
|
|
30869
30889
|
var o, i, s, u, c, f, d;
|
|
30870
30890
|
if (e.allowEdit === !1) return;
|
|
30871
30891
|
const t = Ae(e);
|
|
@@ -30922,13 +30942,13 @@ function Tg(e) {
|
|
|
30922
30942
|
type: "update"
|
|
30923
30943
|
}), n.length > 0 && e.hooks.updateCellYdoc(n));
|
|
30924
30944
|
}
|
|
30925
|
-
function
|
|
30945
|
+
function A0(e, t, n) {
|
|
30926
30946
|
Gr(e, t, "fc", n);
|
|
30927
30947
|
}
|
|
30928
|
-
function
|
|
30948
|
+
function E0(e, t, n) {
|
|
30929
30949
|
Gr(e, t, "bg", n);
|
|
30930
30950
|
}
|
|
30931
|
-
function
|
|
30951
|
+
function $g(e, t, n, r) {
|
|
30932
30952
|
var c;
|
|
30933
30953
|
if (!ft(e)) return;
|
|
30934
30954
|
t == null && (t = "border-all");
|
|
@@ -30977,7 +30997,7 @@ function Cg(e, t, n, r) {
|
|
|
30977
30997
|
const u = ke(e, e.currentSheetId);
|
|
30978
30998
|
u != null && (Ir(e.luckysheetfile[u], e.config), e.config = e.luckysheetfile[u].config, jo(e, i.borderInfo));
|
|
30979
30999
|
}
|
|
30980
|
-
function
|
|
31000
|
+
function Ng(e, t) {
|
|
30981
31001
|
if (!ft(e)) return;
|
|
30982
31002
|
if (e.config.merge != null) {
|
|
30983
31003
|
let a = !1;
|
|
@@ -30990,12 +31010,12 @@ function $g(e, t) {
|
|
|
30990
31010
|
if (a)
|
|
30991
31011
|
return;
|
|
30992
31012
|
}
|
|
30993
|
-
Ae(e) && e.luckysheet_select_save &&
|
|
31013
|
+
Ae(e) && e.luckysheet_select_save && Qp(e, e.currentSheetId, e.luckysheet_select_save, t);
|
|
30994
31014
|
}
|
|
30995
|
-
function
|
|
31015
|
+
function Sg(e, t) {
|
|
30996
31016
|
hp(e, t);
|
|
30997
31017
|
}
|
|
30998
|
-
function
|
|
31018
|
+
function R0(e, t) {
|
|
30999
31019
|
var s, u;
|
|
31000
31020
|
if (!ft(e)) return;
|
|
31001
31021
|
const r = e.luckysheetfile[ke(e, e.currentSheetId)];
|
|
@@ -31011,18 +31031,18 @@ function E0(e, t) {
|
|
|
31011
31031
|
const i = (u = e.config.merge) == null ? void 0 : u[`${l}_${o}`];
|
|
31012
31032
|
i && (l = i.r + i.rs - 1, o = i.c + i.cs - 1), r.frozen = { type: "both", range: { row_focus: l, column_focus: o } }, t === "freeze-row" ? r.frozen.type = "rangeRow" : t === "freeze-col" && (r.frozen.type = "rangeColumn");
|
|
31013
31033
|
}
|
|
31014
|
-
function
|
|
31034
|
+
function M0(e, t, n, r) {
|
|
31015
31035
|
Gr(e, t, "fs", n, r);
|
|
31016
31036
|
}
|
|
31017
|
-
function
|
|
31018
|
-
|
|
31037
|
+
function I0(e, t, n, r) {
|
|
31038
|
+
dg(e, t, n, "SUM", r);
|
|
31019
31039
|
}
|
|
31020
31040
|
function Zc(e) {
|
|
31021
31041
|
return e.replace(/\r\n/g, `
|
|
31022
31042
|
`).replace(/\r/g, `
|
|
31023
31043
|
`);
|
|
31024
31044
|
}
|
|
31025
|
-
function
|
|
31045
|
+
function kg(e, t) {
|
|
31026
31046
|
var a;
|
|
31027
31047
|
if (!(((a = e.luckysheetCellUpdate) == null ? void 0 : a.length) === 2 && e.luckysheetCellUpdate[0] != null && e.luckysheetCellUpdate[1] != null)) return "";
|
|
31028
31048
|
if (Pa(e) === "fx") {
|
|
@@ -31033,16 +31053,16 @@ function Sg(e, t) {
|
|
|
31033
31053
|
}
|
|
31034
31054
|
return (t == null ? void 0 : t.innerText) ?? "";
|
|
31035
31055
|
}
|
|
31036
|
-
function
|
|
31056
|
+
function Ag(e, t) {
|
|
31037
31057
|
var u, c;
|
|
31038
31058
|
const n = (u = e.luckysheet_select_save) == null ? void 0 : u[0], r = Ae(e);
|
|
31039
31059
|
if (r == null || n == null) return !1;
|
|
31040
31060
|
const a = n.row[0], l = n.column[0], o = (c = r[a]) == null ? void 0 : c[l];
|
|
31041
31061
|
if ((o == null ? void 0 : o.f) != null && String(o.f).trim() !== "") return !0;
|
|
31042
|
-
const s =
|
|
31062
|
+
const s = kg(e, t);
|
|
31043
31063
|
return !!(s.length > 0 && s.trimStart().startsWith("="));
|
|
31044
31064
|
}
|
|
31045
|
-
function
|
|
31065
|
+
function q0(e, t, n) {
|
|
31046
31066
|
if (!n || !t) return;
|
|
31047
31067
|
if (e.luckysheetCellUpdate.length !== 2) {
|
|
31048
31068
|
delete n.linkEditorOpenSnapshot;
|
|
@@ -31068,10 +31088,10 @@ function I0(e, t, n) {
|
|
|
31068
31088
|
selectedPlain: u
|
|
31069
31089
|
};
|
|
31070
31090
|
}
|
|
31071
|
-
function
|
|
31091
|
+
function Eg(e, t, n) {
|
|
31072
31092
|
var g, y, b, w;
|
|
31073
31093
|
if (!ft(e)) return;
|
|
31074
|
-
if (
|
|
31094
|
+
if (Ag(e, t)) {
|
|
31075
31095
|
(g = n == null ? void 0 : n.onHyperlinkInsertBlocked) == null || g.call(n);
|
|
31076
31096
|
return;
|
|
31077
31097
|
}
|
|
@@ -31100,11 +31120,11 @@ function Ag(e, t, n) {
|
|
|
31100
31120
|
}
|
|
31101
31121
|
}
|
|
31102
31122
|
}
|
|
31103
|
-
f && h && v.substring(0, 1) !== "=" && (m = Du(t) ??
|
|
31123
|
+
f && h && v.substring(0, 1) !== "=" && (m = Du(t) ?? eg(
|
|
31104
31124
|
h,
|
|
31105
31125
|
f.start,
|
|
31106
31126
|
f.end
|
|
31107
|
-
) ??
|
|
31127
|
+
) ?? tg(
|
|
31108
31128
|
h,
|
|
31109
31129
|
f.start
|
|
31110
31130
|
));
|
|
@@ -31119,7 +31139,7 @@ function Ag(e, t, n) {
|
|
|
31119
31139
|
const N = Vr(e, o, i)[0];
|
|
31120
31140
|
T > 0 ? (f = { start: 0, end: T }, c = _, d = T) : (f = { start: 0, end: 0 }, c = "", d = 0), N && (m = N), e.luckysheetCellUpdate = [o, i];
|
|
31121
31141
|
}
|
|
31122
|
-
|
|
31142
|
+
ig(
|
|
31123
31143
|
e,
|
|
31124
31144
|
o,
|
|
31125
31145
|
i,
|
|
@@ -31134,36 +31154,36 @@ function Ag(e, t, n) {
|
|
|
31134
31154
|
!1
|
|
31135
31155
|
);
|
|
31136
31156
|
}
|
|
31137
|
-
const
|
|
31138
|
-
"currency-format":
|
|
31139
|
-
"percentage-format":
|
|
31140
|
-
"number-decrease":
|
|
31141
|
-
"number-increase":
|
|
31142
|
-
"sort-cell": (e) =>
|
|
31143
|
-
"merge-all": (e) =>
|
|
31144
|
-
"border-all": (e) =>
|
|
31145
|
-
bold:
|
|
31146
|
-
italic:
|
|
31147
|
-
"strike-through":
|
|
31148
|
-
underline:
|
|
31149
|
-
"clear-format":
|
|
31150
|
-
"format-painter":
|
|
31157
|
+
const Rg = {
|
|
31158
|
+
"currency-format": hg,
|
|
31159
|
+
"percentage-format": pg,
|
|
31160
|
+
"number-decrease": gg,
|
|
31161
|
+
"number-increase": yg,
|
|
31162
|
+
"sort-cell": (e) => Sg(e, !0),
|
|
31163
|
+
"merge-all": (e) => Ng(e, "merge-all"),
|
|
31164
|
+
"border-all": (e) => $g(e, "border-all"),
|
|
31165
|
+
bold: bg,
|
|
31166
|
+
italic: wg,
|
|
31167
|
+
"strike-through": vg,
|
|
31168
|
+
underline: _g,
|
|
31169
|
+
"clear-format": Cg,
|
|
31170
|
+
"format-painter": Tg,
|
|
31151
31171
|
search: (e) => {
|
|
31152
31172
|
e.showSearch = !0;
|
|
31153
31173
|
},
|
|
31154
|
-
link: (e, t, n) =>
|
|
31155
|
-
},
|
|
31174
|
+
link: (e, t, n) => Eg(e, t, n)
|
|
31175
|
+
}, Mg = {
|
|
31156
31176
|
bold: (e) => (e == null ? void 0 : e.bl) === 1,
|
|
31157
31177
|
italic: (e) => (e == null ? void 0 : e.it) === 1,
|
|
31158
31178
|
"strike-through": (e) => (e == null ? void 0 : e.cl) === 1,
|
|
31159
31179
|
underline: (e) => (e == null ? void 0 : e.un) === 1
|
|
31160
31180
|
};
|
|
31161
|
-
function q0(e) {
|
|
31162
|
-
return Eg[e];
|
|
31163
|
-
}
|
|
31164
31181
|
function D0(e) {
|
|
31165
31182
|
return Rg[e];
|
|
31166
31183
|
}
|
|
31184
|
+
function x0(e) {
|
|
31185
|
+
return Mg[e];
|
|
31186
|
+
}
|
|
31167
31187
|
function sa(e) {
|
|
31168
31188
|
return `${e}px`;
|
|
31169
31189
|
}
|
|
@@ -31213,7 +31233,7 @@ function on(e) {
|
|
|
31213
31233
|
}
|
|
31214
31234
|
return t + n;
|
|
31215
31235
|
}
|
|
31216
|
-
function
|
|
31236
|
+
function Ig(e) {
|
|
31217
31237
|
let t = "", n = "", r = 0, a = !0;
|
|
31218
31238
|
for (; e > 0; ) {
|
|
31219
31239
|
const l = e % 10;
|
|
@@ -31221,13 +31241,13 @@ function Mg(e) {
|
|
|
31221
31241
|
}
|
|
31222
31242
|
return n;
|
|
31223
31243
|
}
|
|
31224
|
-
function
|
|
31244
|
+
function qg(e) {
|
|
31225
31245
|
let t = "", n = "", r = 0, a = !1;
|
|
31226
31246
|
if (e === 0)
|
|
31227
31247
|
return Qe.chnNumChar2[0];
|
|
31228
31248
|
for (; e > 0; ) {
|
|
31229
31249
|
const l = e % 1e4;
|
|
31230
|
-
a && (n = Qe.chnNumChar2[0] + n), t =
|
|
31250
|
+
a && (n = Qe.chnNumChar2[0] + n), t = Ig(l), t += l !== 0 ? Qe.chnUnitSection[r] : Qe.chnUnitSection[0], n = t + n, a = l < 1e3 && l > 0, e = Math.floor(e / 1e4), r += 1;
|
|
31231
31251
|
}
|
|
31232
31252
|
return n;
|
|
31233
31253
|
}
|
|
@@ -31270,7 +31290,7 @@ function Jc(e) {
|
|
|
31270
31290
|
let t = !1;
|
|
31271
31291
|
return e !== void 0 && e.length === 3 && (e === "星期一" || e === "星期二" || e === "星期三" || e === "星期四" || e === "星期五" || e === "星期六" || e === "星期日") && (t = !0), t;
|
|
31272
31292
|
}
|
|
31273
|
-
function
|
|
31293
|
+
function hr(e) {
|
|
31274
31294
|
let t = !0;
|
|
31275
31295
|
const n = e[1] - e[0];
|
|
31276
31296
|
for (let r = 1; r < e.length; r += 1)
|
|
@@ -31280,7 +31300,7 @@ function mr(e) {
|
|
|
31280
31300
|
}
|
|
31281
31301
|
return t;
|
|
31282
31302
|
}
|
|
31283
|
-
function
|
|
31303
|
+
function Dg(e) {
|
|
31284
31304
|
let t = !0;
|
|
31285
31305
|
const n = e[1] / e[0];
|
|
31286
31306
|
for (let r = 1; r < e.length; r += 1)
|
|
@@ -31290,7 +31310,7 @@ function qg(e) {
|
|
|
31290
31310
|
}
|
|
31291
31311
|
return t;
|
|
31292
31312
|
}
|
|
31293
|
-
function
|
|
31313
|
+
function xg(e) {
|
|
31294
31314
|
const t = [];
|
|
31295
31315
|
for (let n = 1; n <= e; n += 1)
|
|
31296
31316
|
t.push(n);
|
|
@@ -31312,7 +31332,7 @@ function Ks(e, t, n) {
|
|
|
31312
31332
|
const u = l - s * a;
|
|
31313
31333
|
return Math.round((u + s * e) * 1e5) / 1e5;
|
|
31314
31334
|
}
|
|
31315
|
-
function
|
|
31335
|
+
function pr(e) {
|
|
31316
31336
|
var f, d, m, h, g, y, b, w;
|
|
31317
31337
|
let t = !0, n = !0, r = !0, a = !0, l = !0;
|
|
31318
31338
|
if (e[0] == null || e[1] == null)
|
|
@@ -31334,13 +31354,13 @@ function ef({ width: e, height: t, top: n, left: r }, a) {
|
|
|
31334
31354
|
);
|
|
31335
31355
|
l && (l.style.left = sa(r), l.style.width = sa(e), l.style.top = sa(n), l.style.height = sa(t), l.style.display = "block");
|
|
31336
31356
|
}
|
|
31337
|
-
function
|
|
31357
|
+
function Og(e) {
|
|
31338
31358
|
const t = e.querySelector(
|
|
31339
31359
|
".fortune-cell-selected-extend"
|
|
31340
31360
|
);
|
|
31341
31361
|
t && (t.style.display = "none");
|
|
31342
31362
|
}
|
|
31343
|
-
function
|
|
31363
|
+
function O0(e, t, n) {
|
|
31344
31364
|
e.luckysheet_cell_selected_extend = !0, e.luckysheet_scroll_status = !0;
|
|
31345
31365
|
const { scrollLeft: r, scrollTop: a } = e, l = n.getBoundingClientRect(), o = t.pageX - l.left - e.rowHeaderWidth + r, i = t.pageY - l.top - e.columnHeaderHeight + a, s = zn(i, e.visibledatarow), u = s[0], c = s[1], f = s[2], d = Wn(o, e.visibledatacolumn), m = d[0], h = d[1], g = d[2];
|
|
31346
31366
|
e.luckysheet_cell_selected_extend_index = [f, g], ef(
|
|
@@ -31353,7 +31373,7 @@ function x0(e, t, n) {
|
|
|
31353
31373
|
n
|
|
31354
31374
|
);
|
|
31355
31375
|
}
|
|
31356
|
-
function
|
|
31376
|
+
function F0(e, t, n, r, a) {
|
|
31357
31377
|
const { scrollLeft: l } = n, { scrollTop: o } = r, i = a.getBoundingClientRect(), s = t.pageX - i.left - e.rowHeaderWidth + l, u = t.pageY - i.top - e.columnHeaderHeight + o, c = zn(u, e.visibledatarow), f = c[1], d = c[0], m = c[2], h = Wn(s, e.visibledatacolumn), g = h[1], y = h[0], b = h[2], w = e.luckysheet_cell_selected_extend_index[0], v = e.luckysheet_cell_selected_extend_index[1];
|
|
31358
31378
|
if (!e.luckysheet_select_save) return;
|
|
31359
31379
|
let _ = e.luckysheet_select_save[0].row[0], T = e.luckysheet_select_save[0].row[1], C = e.luckysheet_select_save[0].column[0], N = e.luckysheet_select_save[0].column[1], A = e.luckysheet_select_save[0].top_move, $ = e.luckysheet_select_save[0].height_move, S = e.luckysheet_select_save[0].left_move, M = e.luckysheet_select_save[0].width_move;
|
|
@@ -31367,13 +31387,13 @@ function Gt(e, t) {
|
|
|
31367
31387
|
}
|
|
31368
31388
|
return n;
|
|
31369
31389
|
}
|
|
31370
|
-
function
|
|
31390
|
+
function Fg(e, t, n) {
|
|
31371
31391
|
const r = [], a = [];
|
|
31372
31392
|
for (let l = 0; l < e.length; l += 1) {
|
|
31373
31393
|
const o = p.cloneDeep(e[l]);
|
|
31374
31394
|
o != null && a.push(Number(o.v));
|
|
31375
31395
|
}
|
|
31376
|
-
if (e.length > 2 &&
|
|
31396
|
+
if (e.length > 2 && Dg(a) && e[0] != null && e[1] != null)
|
|
31377
31397
|
for (let l = 1; l <= t; l += 1) {
|
|
31378
31398
|
const o = (l - 1) % e.length, i = p.cloneDeep(e[o]);
|
|
31379
31399
|
if (i != null) {
|
|
@@ -31382,7 +31402,7 @@ function Og(e, t, n) {
|
|
|
31382
31402
|
}
|
|
31383
31403
|
}
|
|
31384
31404
|
else {
|
|
31385
|
-
const l =
|
|
31405
|
+
const l = xg(e.length);
|
|
31386
31406
|
for (let o = 1; o <= t; o += 1) {
|
|
31387
31407
|
const i = (o - 1) % e.length, s = p.cloneDeep(e[i]);
|
|
31388
31408
|
if (s != null) {
|
|
@@ -31393,7 +31413,7 @@ function Og(e, t, n) {
|
|
|
31393
31413
|
}
|
|
31394
31414
|
return r;
|
|
31395
31415
|
}
|
|
31396
|
-
function
|
|
31416
|
+
function Lg(e, t, n) {
|
|
31397
31417
|
var l;
|
|
31398
31418
|
const r = [], a = /0|([1-9]+[0-9]*)/g;
|
|
31399
31419
|
for (let o = 1; o <= t; o += 1) {
|
|
@@ -31444,7 +31464,7 @@ function Qs(e, t, n) {
|
|
|
31444
31464
|
}
|
|
31445
31465
|
return r;
|
|
31446
31466
|
}
|
|
31447
|
-
function
|
|
31467
|
+
function Bg(e, t, n) {
|
|
31448
31468
|
var a;
|
|
31449
31469
|
const r = [];
|
|
31450
31470
|
for (let l = 1; l <= t; l += 1) {
|
|
@@ -31459,7 +31479,7 @@ function Lg(e, t, n) {
|
|
|
31459
31479
|
}
|
|
31460
31480
|
return r;
|
|
31461
31481
|
}
|
|
31462
|
-
function
|
|
31482
|
+
function Pg(e, t, n) {
|
|
31463
31483
|
var a;
|
|
31464
31484
|
const r = [];
|
|
31465
31485
|
for (let l = 1; l <= t; l += 1) {
|
|
@@ -31481,7 +31501,7 @@ function Bg(e, t, n) {
|
|
|
31481
31501
|
}
|
|
31482
31502
|
return r;
|
|
31483
31503
|
}
|
|
31484
|
-
function
|
|
31504
|
+
function Hg(e, t, n) {
|
|
31485
31505
|
var a;
|
|
31486
31506
|
const r = [];
|
|
31487
31507
|
for (let l = 1; l <= t; l += 1) {
|
|
@@ -31511,7 +31531,7 @@ function Js(e, t, n) {
|
|
|
31511
31531
|
if (s != null && i != null) {
|
|
31512
31532
|
const u = on(`${s}`) + n * l;
|
|
31513
31533
|
let c;
|
|
31514
|
-
u <= 0 ? c = "零" : c =
|
|
31534
|
+
u <= 0 ? c = "零" : c = qg(u), i.v = c, i.m = c.toString(), r.push(i);
|
|
31515
31535
|
}
|
|
31516
31536
|
}
|
|
31517
31537
|
return r;
|
|
@@ -31565,21 +31585,21 @@ function Tt(e, t, n, r, a) {
|
|
|
31565
31585
|
(n === "up" || n === "left") && e.reverse(), l = Gt(e, t);
|
|
31566
31586
|
else if (r === "1")
|
|
31567
31587
|
if (a === "number")
|
|
31568
|
-
l =
|
|
31588
|
+
l = Fg(e, t, n);
|
|
31569
31589
|
else if (a === "extendNumber") {
|
|
31570
31590
|
const I = [];
|
|
31571
31591
|
for (let L = 0; L < e.length; L += 1) {
|
|
31572
31592
|
const ye = (o = e[L]) == null ? void 0 : o.m, re = Ra(ye);
|
|
31573
31593
|
re[0] && I.push(re[1]);
|
|
31574
31594
|
}
|
|
31575
|
-
if ((n === "up" || n === "left") && (e.reverse(), I.reverse()),
|
|
31595
|
+
if ((n === "up" || n === "left") && (e.reverse(), I.reverse()), hr(I)) {
|
|
31576
31596
|
const L = I[1] - I[0];
|
|
31577
|
-
l =
|
|
31597
|
+
l = Lg(e, t, L);
|
|
31578
31598
|
} else
|
|
31579
31599
|
l = Gt(e, t);
|
|
31580
31600
|
} else if (a === "date") {
|
|
31581
31601
|
(n === "up" || n === "left") && e.reverse();
|
|
31582
|
-
const I =
|
|
31602
|
+
const I = pr(e);
|
|
31583
31603
|
if (I[0] && I[3]) {
|
|
31584
31604
|
const L = $e((i = e[1]) == null ? void 0 : i.m).diff($e((s = e[0]) == null ? void 0 : s.m), "months");
|
|
31585
31605
|
l = ua(e, t, L);
|
|
@@ -31601,10 +31621,10 @@ function Tt(e, t, n, r, a) {
|
|
|
31601
31621
|
let B = (m = e[re]) == null ? void 0 : m.m;
|
|
31602
31622
|
B != null && (B = `${B}`, B === "日" ? re === 0 ? L.push(0) : (ye += 1, L.push(ye * 7)) : I && on(B) > 0 && on(B) < 7 ? L.push(on(B) + ye * 7) : L.push(on(B)));
|
|
31603
31623
|
}
|
|
31604
|
-
if ((n === "up" || n === "left") && (e.reverse(), L.reverse()),
|
|
31624
|
+
if ((n === "up" || n === "left") && (e.reverse(), L.reverse()), hr(L))
|
|
31605
31625
|
if (I || L[L.length - 1] < 6 && L[0] > 0 || L[0] < 6 && L[L.length - 1] > 0) {
|
|
31606
31626
|
const re = L[1] - L[0];
|
|
31607
|
-
l =
|
|
31627
|
+
l = Bg(e, t, re);
|
|
31608
31628
|
} else {
|
|
31609
31629
|
const re = L[1] - L[0];
|
|
31610
31630
|
l = Js(e, t, re);
|
|
@@ -31622,9 +31642,9 @@ function Tt(e, t, n, r, a) {
|
|
|
31622
31642
|
re === "周日" ? ye === 0 ? I.push(0) : (L += 1, I.push(L * 7)) : I.push(on(B) + L * 7);
|
|
31623
31643
|
}
|
|
31624
31644
|
}
|
|
31625
|
-
if ((n === "up" || n === "left") && (e.reverse(), I.reverse()),
|
|
31645
|
+
if ((n === "up" || n === "left") && (e.reverse(), I.reverse()), hr(I)) {
|
|
31626
31646
|
const ye = I[1] - I[0];
|
|
31627
|
-
l =
|
|
31647
|
+
l = Pg(e, t, ye);
|
|
31628
31648
|
} else
|
|
31629
31649
|
l = Gt(e, t);
|
|
31630
31650
|
} else if (a === "chnWeek3") {
|
|
@@ -31638,9 +31658,9 @@ function Tt(e, t, n, r, a) {
|
|
|
31638
31658
|
re === "星期日" ? ye === 0 ? I.push(0) : (L += 1, I.push(L * 7)) : I.push(on(B) + L * 7);
|
|
31639
31659
|
}
|
|
31640
31660
|
}
|
|
31641
|
-
if ((n === "up" || n === "left") && (e.reverse(), I.reverse()),
|
|
31661
|
+
if ((n === "up" || n === "left") && (e.reverse(), I.reverse()), hr(I)) {
|
|
31642
31662
|
const ye = I[1] - I[0];
|
|
31643
|
-
l =
|
|
31663
|
+
l = Hg(e, t, ye);
|
|
31644
31664
|
} else
|
|
31645
31665
|
l = Gt(e, t);
|
|
31646
31666
|
} else
|
|
@@ -31652,7 +31672,7 @@ function Tt(e, t, n, r, a) {
|
|
|
31652
31672
|
l = bo(e, t, I);
|
|
31653
31673
|
} else {
|
|
31654
31674
|
(n === "up" || n === "left") && e.reverse();
|
|
31655
|
-
const I =
|
|
31675
|
+
const I = pr(e);
|
|
31656
31676
|
if (I[0] && I[3]) {
|
|
31657
31677
|
const L = $e((w = e[1]) == null ? void 0 : w.m).diff($e((v = e[0]) == null ? void 0 : v.m), "months");
|
|
31658
31678
|
l = ua(e, t, L);
|
|
@@ -31705,7 +31725,7 @@ function Tt(e, t, n, r, a) {
|
|
|
31705
31725
|
}
|
|
31706
31726
|
}
|
|
31707
31727
|
else {
|
|
31708
|
-
const I =
|
|
31728
|
+
const I = pr(e);
|
|
31709
31729
|
if (I[0] && I[3]) {
|
|
31710
31730
|
(n === "up" || n === "left") && e.reverse();
|
|
31711
31731
|
const L = $e((Y = e[1]) == null ? void 0 : Y.m).diff($e((D = e[0]) == null ? void 0 : D.m), "months");
|
|
@@ -31771,7 +31791,7 @@ function Tt(e, t, n, r, a) {
|
|
|
31771
31791
|
}
|
|
31772
31792
|
}
|
|
31773
31793
|
else {
|
|
31774
|
-
const I =
|
|
31794
|
+
const I = pr(e);
|
|
31775
31795
|
if (I[0] && I[3]) {
|
|
31776
31796
|
(n === "up" || n === "left") && e.reverse();
|
|
31777
31797
|
const L = $e((j = e[1]) == null ? void 0 : j.m).diff($e((J = e[0]) == null ? void 0 : J.m), "months");
|
|
@@ -31813,7 +31833,7 @@ function Tt(e, t, n, r, a) {
|
|
|
31813
31833
|
}
|
|
31814
31834
|
}
|
|
31815
31835
|
else {
|
|
31816
|
-
const I =
|
|
31836
|
+
const I = pr(e);
|
|
31817
31837
|
if (I[0] && I[1] && I[4]) {
|
|
31818
31838
|
(n === "up" || n === "left") && e.reverse();
|
|
31819
31839
|
const L = $e((qe = e[1]) == null ? void 0 : qe.m).diff($e((De = e[0]) == null ? void 0 : De.m), "years");
|
|
@@ -31839,7 +31859,7 @@ function Tt(e, t, n, r, a) {
|
|
|
31839
31859
|
let ye = (_e = e[L]) == null ? void 0 : _e.m;
|
|
31840
31860
|
ye != null && (ye = `${ye}`, I.push(on(ye)));
|
|
31841
31861
|
}
|
|
31842
|
-
if ((n === "up" || n === "left") && (e.reverse(), I.reverse()),
|
|
31862
|
+
if ((n === "up" || n === "left") && (e.reverse(), I.reverse()), hr(I)) {
|
|
31843
31863
|
const L = I[1] - I[0];
|
|
31844
31864
|
l = Js(e, t, L);
|
|
31845
31865
|
} else
|
|
@@ -31849,7 +31869,7 @@ function Tt(e, t, n, r, a) {
|
|
|
31849
31869
|
I != null && delete I.ps;
|
|
31850
31870
|
}), l;
|
|
31851
31871
|
}
|
|
31852
|
-
function
|
|
31872
|
+
function Ug(e, t, n, r, a, l) {
|
|
31853
31873
|
const o = [];
|
|
31854
31874
|
let i, s, u, c;
|
|
31855
31875
|
l === "down" || l === "up" ? (i = r, s = a, u = t, c = n) : (i = t, s = n, u = r, c = a);
|
|
@@ -32026,7 +32046,7 @@ function nf(e) {
|
|
|
32026
32046
|
if (a == null) return;
|
|
32027
32047
|
const l = e.luckysheetfile[a], o = new Set(Object.keys(((S = l.config) == null ? void 0 : S.rowhidden) || {})), i = new Set(Object.keys(((M = l.config) == null ? void 0 : M.colhidden) || {})), s = p.cloneDeep(e.config);
|
|
32028
32048
|
s.borderInfo == null && (s.borderInfo = []);
|
|
32029
|
-
const u = Ml(e, e.currentSheetId), c = p.cloneDeep(l.dataVerification), { direction: f } = Qe, { copyRange: d } = Qe, m = d.row[0], h = d.row[1], g = d.column[0], y = d.column[1], b =
|
|
32049
|
+
const u = Ml(e, e.currentSheetId), c = p.cloneDeep(l.dataVerification), { direction: f } = Qe, { copyRange: d } = Qe, m = d.row[0], h = d.row[1], g = d.column[0], y = d.column[1], b = Ug(
|
|
32030
32050
|
t,
|
|
32031
32051
|
m,
|
|
32032
32052
|
h,
|
|
@@ -32068,7 +32088,7 @@ function nf(e) {
|
|
|
32068
32088
|
if (D.v === 1 / 0 || D.v === -1 / 0)
|
|
32069
32089
|
D.m = D.v.toString();
|
|
32070
32090
|
else if (D.v.toString().toLowerCase().indexOf("e") > -1)
|
|
32071
|
-
D.m =
|
|
32091
|
+
D.m = yr(
|
|
32072
32092
|
D.v
|
|
32073
32093
|
);
|
|
32074
32094
|
else {
|
|
@@ -32148,7 +32168,7 @@ function nf(e) {
|
|
|
32148
32168
|
if (D.v === 1 / 0 || D.v === -1 / 0)
|
|
32149
32169
|
D.m = D.v.toString();
|
|
32150
32170
|
else if (D.v.toString().toLowerCase().indexOf("e") > -1)
|
|
32151
|
-
D.m =
|
|
32171
|
+
D.m = yr(
|
|
32152
32172
|
D.v
|
|
32153
32173
|
);
|
|
32154
32174
|
else {
|
|
@@ -32232,7 +32252,7 @@ function nf(e) {
|
|
|
32232
32252
|
if (D.v === 1 / 0 || D.v === -1 / 0)
|
|
32233
32253
|
D.m = D.v.toString();
|
|
32234
32254
|
else if (D.v.toString().toLowerCase().indexOf("e") > -1)
|
|
32235
|
-
D.m =
|
|
32255
|
+
D.m = yr(
|
|
32236
32256
|
D.v
|
|
32237
32257
|
);
|
|
32238
32258
|
else {
|
|
@@ -32310,7 +32330,7 @@ function nf(e) {
|
|
|
32310
32330
|
if (D.v === 1 / 0 || D.v === -1 / 0)
|
|
32311
32331
|
D.m = D.v.toString();
|
|
32312
32332
|
else if (D.v.toString().toLowerCase().indexOf("e") > -1)
|
|
32313
|
-
D.m =
|
|
32333
|
+
D.m = yr(
|
|
32314
32334
|
D.v
|
|
32315
32335
|
);
|
|
32316
32336
|
else {
|
|
@@ -32391,9 +32411,9 @@ function nf(e) {
|
|
|
32391
32411
|
}
|
|
32392
32412
|
l.dataVerification = c, Sl(e, t, e.luckysheet_select_save);
|
|
32393
32413
|
}
|
|
32394
|
-
function
|
|
32414
|
+
function L0(e, t, n) {
|
|
32395
32415
|
var b, w, v;
|
|
32396
|
-
e.luckysheet_cell_selected_extend = !1,
|
|
32416
|
+
e.luckysheet_cell_selected_extend = !1, Og(n);
|
|
32397
32417
|
const { scrollLeft: r, scrollTop: a } = e, l = n.getBoundingClientRect(), o = t.pageX - l.left - e.rowHeaderWidth + r, i = t.pageY - l.top - e.columnHeaderHeight + a, s = zn(i, e.visibledatarow), u = s[0], c = s[2], f = Wn(o, e.visibledatacolumn), d = f[0], m = f[2], h = e.luckysheet_cell_selected_extend_index[0], g = e.luckysheet_cell_selected_extend_index[1], y = (b = e.luckysheet_select_save) == null ? void 0 : b[e.luckysheet_select_save.length - 1];
|
|
32398
32418
|
if (y && y.top != null && y.left != null && y.height != null && y.width != null && y.row_focus != null && y.column_focus != null) {
|
|
32399
32419
|
let _ = y.row[0], T = y.row[1], C = y.column[0], N = y.column[1];
|
|
@@ -32465,14 +32485,14 @@ function F0(e, t, n) {
|
|
|
32465
32485
|
U && (U.style.display = "none");
|
|
32466
32486
|
}
|
|
32467
32487
|
}
|
|
32468
|
-
const
|
|
32488
|
+
const zg = /^[A-Za-z_\u00C0-\u02AF][A-Za-z0-9_\u00C0-\u02AF]*$/, Wg = /^[A-Za-z]{1,3}[0-9]+$/, Yg = /^[Rr][0-9]*[Cc][0-9]*$/, Vg = /^(TRUE|FALSE)$/i;
|
|
32469
32489
|
function rf(e) {
|
|
32470
|
-
return !
|
|
32490
|
+
return !zg.test(e) || Wg.test(e) || Yg.test(e) || Vg.test(e);
|
|
32471
32491
|
}
|
|
32472
32492
|
function af(e) {
|
|
32473
32493
|
return rf(e) ? `'${e.replace(/'/g, "''")}'` : e;
|
|
32474
32494
|
}
|
|
32475
|
-
const
|
|
32495
|
+
const Gg = /[A-Za-z0-9_.$\u00C0-\u02AF]/;
|
|
32476
32496
|
function tu(e, t) {
|
|
32477
32497
|
if (!e || !e.startsWith("=") || e.indexOf("!") === -1)
|
|
32478
32498
|
return e;
|
|
@@ -32513,7 +32533,7 @@ function tu(e, t) {
|
|
|
32513
32533
|
continue;
|
|
32514
32534
|
}
|
|
32515
32535
|
const i = l > 0 ? e[l - 1] : "";
|
|
32516
|
-
if (l > 0 && !
|
|
32536
|
+
if (l > 0 && !Gg.test(i)) {
|
|
32517
32537
|
const s = n.filter(
|
|
32518
32538
|
(u) => r.startsWith(u.lower, l)
|
|
32519
32539
|
);
|
|
@@ -32527,9 +32547,9 @@ function tu(e, t) {
|
|
|
32527
32547
|
}
|
|
32528
32548
|
return a;
|
|
32529
32549
|
}
|
|
32530
|
-
function
|
|
32550
|
+
function jg(e, t, n) {
|
|
32531
32551
|
let r = e.length;
|
|
32532
|
-
const a =
|
|
32552
|
+
const a = It(n).pivotTable, { title: l } = a;
|
|
32533
32553
|
for (let o = 0; o < e.length; o += 1)
|
|
32534
32554
|
if (e[o].name.indexOf("Sheet") > -1 || e[o].name.indexOf(l) > -1) {
|
|
32535
32555
|
const i = parseFloat(
|
|
@@ -32539,7 +32559,7 @@ function Gg(e, t, n) {
|
|
|
32539
32559
|
}
|
|
32540
32560
|
return t ? l + (r + 1) : `Sheet${r + 1}`;
|
|
32541
32561
|
}
|
|
32542
|
-
function
|
|
32562
|
+
function Xg(e) {
|
|
32543
32563
|
let t;
|
|
32544
32564
|
e.indexOf("rgba") > -1 ? t = e.replace("rgba(", "").replace(")", "").split(",") : t = e.replace("rgb(", "").replace(")", "").split(",");
|
|
32545
32565
|
const n = Number(t[0]), r = Number(t[1]), a = Number(t[2]);
|
|
@@ -32560,7 +32580,7 @@ function Ft(e) {
|
|
|
32560
32580
|
l = r(t[o]), a += l * 26 ** (n - o - 1);
|
|
32561
32581
|
return a === 0 ? NaN : a - 1;
|
|
32562
32582
|
}
|
|
32563
|
-
function
|
|
32583
|
+
function Zg(e) {
|
|
32564
32584
|
return typeof e != "string" ? e : e.replace(/<script>/g, "<script>").replace(/<\/script>/, "</script>");
|
|
32565
32585
|
}
|
|
32566
32586
|
function Rr(e) {
|
|
@@ -32584,7 +32604,7 @@ function eo(e, t) {
|
|
|
32584
32604
|
const n = ke(e, t);
|
|
32585
32605
|
return p.isNil(n) ? null : e.luckysheetfile[n];
|
|
32586
32606
|
}
|
|
32587
|
-
function
|
|
32607
|
+
function B0(e) {
|
|
32588
32608
|
const t = /* @__PURE__ */ new Date(), n = t.getFullYear();
|
|
32589
32609
|
let r = t.getMonth(), a = t.getDate(), l = t.getHours(), o = t.getMinutes(), i = t.getSeconds();
|
|
32590
32610
|
r += 1, r < 10 && (r = `0${r}`), a < 10 && (a = `0${a}`), l < 10 && (l = `0${l}`), o < 10 && (o = `0${o}`), i < 10 && (i = `0${i}`);
|
|
@@ -32597,10 +32617,10 @@ function nu(e, t) {
|
|
|
32597
32617
|
return typeof a < "u" ? a : n;
|
|
32598
32618
|
});
|
|
32599
32619
|
}
|
|
32600
|
-
function
|
|
32620
|
+
function P0(e) {
|
|
32601
32621
|
return e.replace("~*", "\\*").replace("~?", "\\?").replace(".", "\\.").replace("*", ".*").replace("?", ".");
|
|
32602
32622
|
}
|
|
32603
|
-
function
|
|
32623
|
+
function H0(e) {
|
|
32604
32624
|
let a = "";
|
|
32605
32625
|
for (; e >= 0; )
|
|
32606
32626
|
a = String.fromCharCode(e % 26 + 97) + a, e = Math.floor(e / 26) - 1;
|
|
@@ -32640,10 +32660,10 @@ function of(e, t) {
|
|
|
32640
32660
|
return !0;
|
|
32641
32661
|
}) && (p.isUndefined(e.isFlvReadOnly) ? !0 : e.isFlvReadOnly);
|
|
32642
32662
|
}
|
|
32643
|
-
function
|
|
32663
|
+
function Kg(e) {
|
|
32644
32664
|
return /^[a-zA-Z]\d+$/.test(e);
|
|
32645
32665
|
}
|
|
32646
|
-
function
|
|
32666
|
+
function Qg(e) {
|
|
32647
32667
|
const t = document.createElement("div");
|
|
32648
32668
|
t.innerHTML = e;
|
|
32649
32669
|
const n = t.querySelectorAll("span");
|
|
@@ -32708,7 +32728,7 @@ function sf(e, t, n) {
|
|
|
32708
32728
|
}
|
|
32709
32729
|
}), u || s;
|
|
32710
32730
|
}
|
|
32711
|
-
function
|
|
32731
|
+
function Jg(e, t) {
|
|
32712
32732
|
var l;
|
|
32713
32733
|
let n = "";
|
|
32714
32734
|
const r = e.includes("."), a = t;
|
|
@@ -32728,7 +32748,7 @@ const tn = new Error("invalid params"), Zo = new Error("sheet not found"), Ma =
|
|
|
32728
32748
|
a != null && kn(a) && t.push({ r: n, c: r, v: a });
|
|
32729
32749
|
}
|
|
32730
32750
|
return t;
|
|
32731
|
-
},
|
|
32751
|
+
}, U0 = (e, t, n, r, a) => {
|
|
32732
32752
|
const l = p.maxBy(e, "r"), o = p.maxBy(e, "c");
|
|
32733
32753
|
let i = ((l == null ? void 0 : l.r) ?? 0) + 1, s = ((o == null ? void 0 : o.c) ?? 0) + 1;
|
|
32734
32754
|
t != null && n != null && t > 0 && n > 0 && (i = Math.max(i, t), s = Math.max(s, n));
|
|
@@ -32753,11 +32773,11 @@ function St(e, t = {}) {
|
|
|
32753
32773
|
throw Zo;
|
|
32754
32774
|
return r;
|
|
32755
32775
|
}
|
|
32756
|
-
function
|
|
32776
|
+
function z0(e, t = {}) {
|
|
32757
32777
|
const n = St(e, t);
|
|
32758
32778
|
return { ...n, celldata: Ma(n.data) };
|
|
32759
32779
|
}
|
|
32760
|
-
function
|
|
32780
|
+
function W0(e, t, n, r = {}) {
|
|
32761
32781
|
var u;
|
|
32762
32782
|
if (!p.isNumber(t) || !p.isNumber(n))
|
|
32763
32783
|
throw new Error("row or column cannot be null or undefined");
|
|
@@ -32835,7 +32855,7 @@ function uf(e, t, n, r, a, l = {}, o) {
|
|
|
32835
32855
|
r.toString().substr(0, 1) === "=" || r.toString().substr(0, 5) === "<span" ? Yo(e, t, n, a, r) : (xt(e, t, n), Pt(e, t, n, s, r));
|
|
32836
32856
|
o && ((d = (f = e.hooks).onLocalCellEdit) == null || d.call(f), e.hooks.afterUpdateCell && ((h = (m = e.hooks).afterUpdateCell) == null || h.call(m, t, n, null, r)));
|
|
32837
32857
|
}
|
|
32838
|
-
function
|
|
32858
|
+
function e1(e, t, n, r) {
|
|
32839
32859
|
e.celldata || (e.celldata = []);
|
|
32840
32860
|
const a = e.celldata.findIndex((s) => s.r === t && s.c === n);
|
|
32841
32861
|
if (r == null || typeof r == "string" && r.length === 0 || r instanceof Object && !kn(r)) {
|
|
@@ -32852,27 +32872,27 @@ function Jg(e, t, n, r) {
|
|
|
32852
32872
|
const i = { r: t, c: n, v: o };
|
|
32853
32873
|
a >= 0 ? e.celldata[a] = i : e.celldata.push(i);
|
|
32854
32874
|
}
|
|
32855
|
-
function
|
|
32875
|
+
function t1(e, t, n) {
|
|
32856
32876
|
var a, l, o;
|
|
32857
32877
|
const r = e.data ? (a = e.data[t]) == null ? void 0 : a[n] : (o = (l = e.celldata) == null ? void 0 : l.find((i) => i.r === t && i.c === n)) == null ? void 0 : o.v;
|
|
32858
32878
|
return r != null && typeof r == "object" && r.f != null ? String(r.f) : null;
|
|
32859
32879
|
}
|
|
32860
|
-
function
|
|
32880
|
+
function n1(e) {
|
|
32861
32881
|
if (e instanceof Object) return e.f != null ? String(e.f) : null;
|
|
32862
32882
|
if (e == null) return null;
|
|
32863
32883
|
const t = e.toString();
|
|
32864
32884
|
return t.substr(0, 1) === "=" || t.substr(0, 5) === "<span" ? t : null;
|
|
32865
32885
|
}
|
|
32866
|
-
function
|
|
32886
|
+
function r1(e, t, n, r, a, l) {
|
|
32867
32887
|
const o = e.luckysheetfile[ke(e, r)], i = a != null && a === l && ((o == null ? void 0 : o.calcChain) ?? []).some(
|
|
32868
32888
|
(s) => (s == null ? void 0 : s.r) === t && s.c === n && s.id === r
|
|
32869
32889
|
);
|
|
32870
32890
|
zr(e, t, n, r), i || e.formulaCache.markDepGraphIncomplete();
|
|
32871
32891
|
}
|
|
32872
|
-
function
|
|
32892
|
+
function a1(e, t, n, r, a = {}) {
|
|
32873
32893
|
if (!p.isNumber(t) || !p.isNumber(n))
|
|
32874
32894
|
throw new Error("row or column cannot be null or undefined");
|
|
32875
|
-
const l = St(e, a), o = a.id ?? l.id ?? e.currentSheetId, { data: i } = l, s =
|
|
32895
|
+
const l = St(e, a), o = a.id ?? l.id ?? e.currentSheetId, { data: i } = l, s = t1(l, t, n), u = n1(r), c = () => r1(
|
|
32876
32896
|
e,
|
|
32877
32897
|
t,
|
|
32878
32898
|
n,
|
|
@@ -32881,7 +32901,7 @@ function r1(e, t, n, r, a = {}) {
|
|
|
32881
32901
|
u
|
|
32882
32902
|
);
|
|
32883
32903
|
if (!i) {
|
|
32884
|
-
if (
|
|
32904
|
+
if (e1(l, t, n, r), r == null || r.toString().length === 0)
|
|
32885
32905
|
xt(e, t, n, o);
|
|
32886
32906
|
else if (r instanceof Object)
|
|
32887
32907
|
r.f != null ? c() : xt(e, t, n, o);
|
|
@@ -32903,28 +32923,28 @@ function r1(e, t, n, r, a = {}) {
|
|
|
32903
32923
|
const f = r.toString();
|
|
32904
32924
|
f.substr(0, 1) === "=" || f.substr(0, 5) === "<span" ? (Pt(e, t, n, i, { f }), c()) : (xt(e, t, n, o), Pt(e, t, n, i, r));
|
|
32905
32925
|
}
|
|
32906
|
-
function
|
|
32926
|
+
function Y0(e, t, n = {}) {
|
|
32907
32927
|
const r = St(e, n);
|
|
32908
32928
|
r.calcChain = (t ?? []).map(
|
|
32909
32929
|
(a) => a != null && typeof a == "object" ? { ...a } : a
|
|
32910
32930
|
), tc(e);
|
|
32911
32931
|
}
|
|
32912
|
-
function
|
|
32932
|
+
function V0(e, t, n = {}, r) {
|
|
32913
32933
|
for (const a of t)
|
|
32914
32934
|
try {
|
|
32915
|
-
|
|
32935
|
+
a1(e, a.r, a.c, a.v, n);
|
|
32916
32936
|
} catch (l) {
|
|
32917
32937
|
r == null || r(a, l);
|
|
32918
32938
|
}
|
|
32919
32939
|
}
|
|
32920
|
-
function
|
|
32940
|
+
function G0(e, t, n, r = {}) {
|
|
32921
32941
|
var o, i;
|
|
32922
32942
|
if (!p.isNumber(t) || !p.isNumber(n))
|
|
32923
32943
|
throw new Error("row or column cannot be null or undefined");
|
|
32924
32944
|
const a = St(e, r), l = (i = (o = a.data) == null ? void 0 : o[t]) == null ? void 0 : i[n];
|
|
32925
32945
|
l && p.isPlainObject(l) && (delete l.m, delete l.v, l.f != null && (delete l.f, xt(e, t, n, a.id), delete l.spl));
|
|
32926
32946
|
}
|
|
32927
|
-
function
|
|
32947
|
+
function j0(e, t, n, r, a, l = {}) {
|
|
32928
32948
|
var c;
|
|
32929
32949
|
if (!p.isNumber(t) || !p.isNumber(n))
|
|
32930
32950
|
throw new Error("row or column cannot be null or undefined");
|
|
@@ -32955,12 +32975,12 @@ function G0(e, t, n, r, a, l = {}) {
|
|
|
32955
32975
|
s[r] = a;
|
|
32956
32976
|
i[t][n] = s, o.config = u, e.config = u;
|
|
32957
32977
|
}
|
|
32958
|
-
function
|
|
32978
|
+
function X0(e, t, n, r) {
|
|
32959
32979
|
Qe.copyRange = t, Qe.applyRange = n, Qe.direction = r;
|
|
32960
32980
|
const a = tf(e);
|
|
32961
32981
|
!a[0] && !a[1] && !a[2] && !a[3] && !a[4] && !a[5] && !a[6] ? Qe.applyType = "0" : Qe.applyType = "1", nf(e);
|
|
32962
32982
|
}
|
|
32963
|
-
function
|
|
32983
|
+
function Z0(e, t, n, r = {}) {
|
|
32964
32984
|
const a = St(e, r), o = {
|
|
32965
32985
|
row: "rangeRow",
|
|
32966
32986
|
column: "rangeColumn",
|
|
@@ -32975,12 +32995,12 @@ function X0(e, t, n, r = {}) {
|
|
|
32975
32995
|
}
|
|
32976
32996
|
};
|
|
32977
32997
|
}
|
|
32978
|
-
function
|
|
32998
|
+
function K0(e, t, n, r, a, l = {}) {
|
|
32979
32999
|
if (!["row", "column"].includes(t) || !p.isNumber(n) || !p.isNumber(r) || !["lefttop", "rightbottom"].includes(a))
|
|
32980
33000
|
throw tn;
|
|
32981
33001
|
const o = St(e, l);
|
|
32982
33002
|
try {
|
|
32983
|
-
|
|
33003
|
+
Zp(e, {
|
|
32984
33004
|
type: t,
|
|
32985
33005
|
index: n,
|
|
32986
33006
|
count: r,
|
|
@@ -32991,13 +33011,13 @@ function Z0(e, t, n, r, a, l = {}) {
|
|
|
32991
33011
|
console.error(i);
|
|
32992
33012
|
}
|
|
32993
33013
|
}
|
|
32994
|
-
function
|
|
33014
|
+
function Q0(e, t, n, r, a = {}) {
|
|
32995
33015
|
if (!["row", "column"].includes(t) || !p.isNumber(n) || !p.isNumber(r))
|
|
32996
33016
|
throw tn;
|
|
32997
33017
|
const l = St(e, a);
|
|
32998
33018
|
Hc(e, { type: t, start: n, end: r, id: l.id });
|
|
32999
33019
|
}
|
|
33000
|
-
function
|
|
33020
|
+
function J0(e, t, n) {
|
|
33001
33021
|
if (!["row", "column"].includes(n))
|
|
33002
33022
|
throw tn;
|
|
33003
33023
|
if (!e || !e.config) return;
|
|
@@ -33016,7 +33036,7 @@ function Q0(e, t, n) {
|
|
|
33016
33036
|
}
|
|
33017
33037
|
e.luckysheetfile[r].config = e.config;
|
|
33018
33038
|
}
|
|
33019
|
-
function
|
|
33039
|
+
function eb(e, t, n) {
|
|
33020
33040
|
if (!["row", "column"].includes(n))
|
|
33021
33041
|
throw tn;
|
|
33022
33042
|
if (!e || !e.config) return;
|
|
@@ -33035,7 +33055,7 @@ function J0(e, t, n) {
|
|
|
33035
33055
|
}
|
|
33036
33056
|
e.luckysheetfile[r].config = e.config;
|
|
33037
33057
|
}
|
|
33038
|
-
function
|
|
33058
|
+
function o1(e, t, n = {}, r = !1) {
|
|
33039
33059
|
if (!p.isPlainObject(t))
|
|
33040
33060
|
throw tn;
|
|
33041
33061
|
const a = St(e, n), l = a.config || {};
|
|
@@ -33051,7 +33071,7 @@ function a1(e, t, n = {}, r = !1) {
|
|
|
33051
33071
|
}
|
|
33052
33072
|
}), a.config = l, e.currentSheetId === a.id && (e.config = l);
|
|
33053
33073
|
}
|
|
33054
|
-
function
|
|
33074
|
+
function tb(e, t, n = {}, r = !1) {
|
|
33055
33075
|
if (!p.isPlainObject(t))
|
|
33056
33076
|
throw tn;
|
|
33057
33077
|
const a = St(e, n), l = a.config || {};
|
|
@@ -33067,7 +33087,7 @@ function eb(e, t, n = {}, r = !1) {
|
|
|
33067
33087
|
}
|
|
33068
33088
|
}), a.config = l, e.currentSheetId === a.id && (e.config = l);
|
|
33069
33089
|
}
|
|
33070
|
-
function
|
|
33090
|
+
function l1(e, t, n = {}) {
|
|
33071
33091
|
if (!p.isArray(t) || t.length === 0)
|
|
33072
33092
|
throw tn;
|
|
33073
33093
|
const l = (St(e, n).config || {}).rowlen || {}, o = {};
|
|
@@ -33078,7 +33098,7 @@ function o1(e, t, n = {}) {
|
|
|
33078
33098
|
}
|
|
33079
33099
|
}), o;
|
|
33080
33100
|
}
|
|
33081
|
-
function
|
|
33101
|
+
function nb(e, t, n = {}) {
|
|
33082
33102
|
if (!p.isArray(t) || t.length === 0)
|
|
33083
33103
|
throw tn;
|
|
33084
33104
|
const l = (St(e, n).config || {}).columnlen || {}, o = {};
|
|
@@ -33089,7 +33109,7 @@ function tb(e, t, n = {}) {
|
|
|
33089
33109
|
}
|
|
33090
33110
|
}), o;
|
|
33091
33111
|
}
|
|
33092
|
-
function
|
|
33112
|
+
function i1(e, t, n, r = !1, a = void 0, l = void 0) {
|
|
33093
33113
|
Cm(
|
|
33094
33114
|
e,
|
|
33095
33115
|
t,
|
|
@@ -33099,22 +33119,22 @@ function l1(e, t, n, r = !1, a = void 0, l = void 0) {
|
|
|
33099
33119
|
l
|
|
33100
33120
|
);
|
|
33101
33121
|
}
|
|
33102
|
-
function
|
|
33122
|
+
function rb(e, t = {}) {
|
|
33103
33123
|
const n = St(e, t);
|
|
33104
33124
|
$m(e, n.id);
|
|
33105
33125
|
}
|
|
33106
|
-
function
|
|
33126
|
+
function ab(e, t) {
|
|
33107
33127
|
Nm(e, t);
|
|
33108
33128
|
}
|
|
33109
|
-
function
|
|
33129
|
+
function ob(e, t = {}) {
|
|
33110
33130
|
const n = St(e, t);
|
|
33111
33131
|
e.currentSheetId = n.id;
|
|
33112
33132
|
}
|
|
33113
|
-
function
|
|
33133
|
+
function lb(e, t, n = {}) {
|
|
33114
33134
|
const r = St(e, n);
|
|
33115
33135
|
r.name = t;
|
|
33116
33136
|
}
|
|
33117
|
-
function
|
|
33137
|
+
function s1(e, t) {
|
|
33118
33138
|
var n;
|
|
33119
33139
|
(n = e.luckysheetfile) == null || n.forEach((r) => {
|
|
33120
33140
|
r.id in t && (r.order = t[r.id]);
|
|
@@ -33122,7 +33142,7 @@ function i1(e, t) {
|
|
|
33122
33142
|
r.order = a;
|
|
33123
33143
|
});
|
|
33124
33144
|
}
|
|
33125
|
-
function
|
|
33145
|
+
function ib(e, t, n, r) {
|
|
33126
33146
|
if (r.scrollLeft != null) {
|
|
33127
33147
|
if (!p.isNumber(r.scrollLeft))
|
|
33128
33148
|
throw tn;
|
|
@@ -33144,17 +33164,17 @@ function lb(e, t, n, r) {
|
|
|
33144
33164
|
n && (n.scrollTop = a);
|
|
33145
33165
|
}
|
|
33146
33166
|
}
|
|
33147
|
-
function
|
|
33167
|
+
function u1(e) {
|
|
33148
33168
|
return Number.isFinite(Number(e)) && !Number.isNaN(Number(e));
|
|
33149
33169
|
}
|
|
33150
|
-
function
|
|
33170
|
+
function c1(e) {
|
|
33151
33171
|
return /^0x?[a-fA-F0-9]+$/.test(e);
|
|
33152
33172
|
}
|
|
33153
33173
|
const ru = "#f3f3f3", au = 5;
|
|
33154
33174
|
function cf(e) {
|
|
33155
33175
|
return typeof e != "string" ? !1 : ["price", "fully_diluted_value"].includes(e) || e.toLowerCase().includes("usd") || e.toLowerCase().includes("price_in");
|
|
33156
33176
|
}
|
|
33157
|
-
const ff = `$#,##0.${"0".repeat(2)}`,
|
|
33177
|
+
const ff = `$#,##0.${"0".repeat(2)}`, f1 = (e, t, n, r) => {
|
|
33158
33178
|
var l;
|
|
33159
33179
|
if (!n.length) return e;
|
|
33160
33180
|
const a = n.map((o) => {
|
|
@@ -33174,7 +33194,7 @@ const ff = `$#,##0.${"0".repeat(2)}`, c1 = (e, t, n, r) => {
|
|
|
33174
33194
|
{},
|
|
33175
33195
|
!1
|
|
33176
33196
|
), e + n.length;
|
|
33177
|
-
},
|
|
33197
|
+
}, d1 = ({
|
|
33178
33198
|
row: e,
|
|
33179
33199
|
column: t,
|
|
33180
33200
|
newValue: n,
|
|
@@ -33192,7 +33212,7 @@ const ff = `$#,##0.${"0".repeat(2)}`, c1 = (e, t, n, r) => {
|
|
|
33192
33212
|
return;
|
|
33193
33213
|
}
|
|
33194
33214
|
let i = e;
|
|
33195
|
-
o != null && o.length && (i =
|
|
33215
|
+
o != null && o.length && (i = f1(
|
|
33196
33216
|
e,
|
|
33197
33217
|
t,
|
|
33198
33218
|
o,
|
|
@@ -33259,7 +33279,7 @@ const ff = `$#,##0.${"0".repeat(2)}`, c1 = (e, t, n, r) => {
|
|
|
33259
33279
|
}
|
|
33260
33280
|
}
|
|
33261
33281
|
} else {
|
|
33262
|
-
if (
|
|
33282
|
+
if (m1({
|
|
33263
33283
|
row: i,
|
|
33264
33284
|
column: t,
|
|
33265
33285
|
apiData: r,
|
|
@@ -33320,7 +33340,7 @@ const ff = `$#,##0.${"0".repeat(2)}`, c1 = (e, t, n, r) => {
|
|
|
33320
33340
|
var l, o, i;
|
|
33321
33341
|
const r = (o = (l = n.current) == null ? void 0 : l.getSheet()) == null ? void 0 : o.data, a = (i = r == null ? void 0 : r[e]) == null ? void 0 : i[t];
|
|
33322
33342
|
return a == null ? {} : typeof a == "object" ? { ...a } : { v: a };
|
|
33323
|
-
}, Ko = (e) =>
|
|
33343
|
+
}, Ko = (e) => u1(e) && !c1(e), df = (e) => Array.isArray(e) ? e.map((t) => ({ ...t })) : e, vr = (e, t, n) => {
|
|
33324
33344
|
const r = Ko(e);
|
|
33325
33345
|
if (n && r && cf(n)) {
|
|
33326
33346
|
const { s: i, ...s } = t || {};
|
|
@@ -33345,7 +33365,7 @@ const ff = `$#,##0.${"0".repeat(2)}`, c1 = (e, t, n, r) => {
|
|
|
33345
33365
|
if (!e || typeof e != "object") return e ?? {};
|
|
33346
33366
|
const t = e.ct;
|
|
33347
33367
|
return !t || !Array.isArray(t.s) ? { ...e } : { ...e, ct: { ...t, s: df(t.s) } };
|
|
33348
|
-
},
|
|
33368
|
+
}, m1 = ({
|
|
33349
33369
|
row: e,
|
|
33350
33370
|
column: t,
|
|
33351
33371
|
apiData: n,
|
|
@@ -33373,7 +33393,7 @@ const ff = `$#,##0.${"0".repeat(2)}`, c1 = (e, t, n, r) => {
|
|
|
33373
33393
|
{},
|
|
33374
33394
|
!0
|
|
33375
33395
|
), (m = r.current) == null || m.clearCellError(e, t), !0;
|
|
33376
|
-
},
|
|
33396
|
+
}, h1 = (e) => e !== null && typeof e == "object" && !Array.isArray(e) && (e == null ? void 0 : e.responseType) === "smart-contract", p1 = async ({
|
|
33377
33397
|
result: e,
|
|
33378
33398
|
handleSmartContractQuery: t,
|
|
33379
33399
|
sheetEditorRef: n,
|
|
@@ -33388,7 +33408,7 @@ const ff = `$#,##0.${"0".repeat(2)}`, c1 = (e, t, n, r) => {
|
|
|
33388
33408
|
row: r,
|
|
33389
33409
|
column: a,
|
|
33390
33410
|
newValue: l,
|
|
33391
|
-
formulaResponseUiSync:
|
|
33411
|
+
formulaResponseUiSync: d1
|
|
33392
33412
|
}, { callSignature: i } = e;
|
|
33393
33413
|
await t(o)(i);
|
|
33394
33414
|
}, iu = (e, t, n) => {
|
|
@@ -33398,7 +33418,7 @@ const ff = `$#,##0.${"0".repeat(2)}`, c1 = (e, t, n, r) => {
|
|
|
33398
33418
|
} catch {
|
|
33399
33419
|
return;
|
|
33400
33420
|
}
|
|
33401
|
-
},
|
|
33421
|
+
}, sb = async ({
|
|
33402
33422
|
functionCallString: e,
|
|
33403
33423
|
sheetEditorRef: t,
|
|
33404
33424
|
dataBlockRow: n,
|
|
@@ -33410,9 +33430,9 @@ const ff = `$#,##0.${"0".repeat(2)}`, c1 = (e, t, n, r) => {
|
|
|
33410
33430
|
const o = await import("@fileverse-dev/formulajs"), i = e == null ? void 0 : e.match(/^(\w+)\((.*)\)$/);
|
|
33411
33431
|
if (!i)
|
|
33412
33432
|
throw new Error(`Invalid function call format: ${e}`);
|
|
33413
|
-
const s = i[1].toUpperCase(), u = i[2], f =
|
|
33433
|
+
const s = i[1].toUpperCase(), u = i[2], f = g1(u).map((d) => {
|
|
33414
33434
|
if (mf(d)) {
|
|
33415
|
-
const m =
|
|
33435
|
+
const m = y1(d);
|
|
33416
33436
|
return m == null ? void 0 : m.map(
|
|
33417
33437
|
(g) => iu(t, g == null ? void 0 : g.row, g == null ? void 0 : g.column)
|
|
33418
33438
|
);
|
|
@@ -33429,8 +33449,8 @@ const ff = `$#,##0.${"0".repeat(2)}`, c1 = (e, t, n, r) => {
|
|
|
33429
33449
|
});
|
|
33430
33450
|
if (typeof o[s] == "function") {
|
|
33431
33451
|
const d = await o[s](...f);
|
|
33432
|
-
if (
|
|
33433
|
-
await
|
|
33452
|
+
if (h1(d)) {
|
|
33453
|
+
await p1({
|
|
33434
33454
|
result: d,
|
|
33435
33455
|
handleSmartContractQuery: a,
|
|
33436
33456
|
sheetEditorRef: t,
|
|
@@ -33451,7 +33471,7 @@ const ff = `$#,##0.${"0".repeat(2)}`, c1 = (e, t, n, r) => {
|
|
|
33451
33471
|
return;
|
|
33452
33472
|
}
|
|
33453
33473
|
};
|
|
33454
|
-
function
|
|
33474
|
+
function g1(e) {
|
|
33455
33475
|
if (!(e != null && e.trim()))
|
|
33456
33476
|
return [];
|
|
33457
33477
|
const t = [];
|
|
@@ -33514,7 +33534,7 @@ function Qo(e) {
|
|
|
33514
33534
|
column: a
|
|
33515
33535
|
};
|
|
33516
33536
|
}
|
|
33517
|
-
function
|
|
33537
|
+
function y1(e) {
|
|
33518
33538
|
if (!mf(e))
|
|
33519
33539
|
return null;
|
|
33520
33540
|
const t = e.split(":"), n = Qo(t[0]), r = Qo(t[1]);
|
|
@@ -33527,74 +33547,74 @@ function g1(e) {
|
|
|
33527
33547
|
return s;
|
|
33528
33548
|
}
|
|
33529
33549
|
export {
|
|
33530
|
-
|
|
33550
|
+
Xg as $,
|
|
33531
33551
|
cn as A,
|
|
33532
33552
|
ft as B,
|
|
33533
33553
|
vn as C,
|
|
33534
|
-
|
|
33535
|
-
|
|
33536
|
-
|
|
33537
|
-
|
|
33538
|
-
|
|
33539
|
-
|
|
33554
|
+
Ay as D,
|
|
33555
|
+
Ny as E,
|
|
33556
|
+
Ey as F,
|
|
33557
|
+
Sy as G,
|
|
33558
|
+
ky as H,
|
|
33559
|
+
It as I,
|
|
33540
33560
|
Sl as J,
|
|
33541
33561
|
kl as K,
|
|
33542
33562
|
at as L,
|
|
33543
33563
|
ot as M,
|
|
33544
33564
|
xt as N,
|
|
33545
33565
|
bn as O,
|
|
33546
|
-
|
|
33566
|
+
Y1 as P,
|
|
33547
33567
|
Ar as Q,
|
|
33548
33568
|
Pt as R,
|
|
33549
|
-
|
|
33569
|
+
L1 as S,
|
|
33550
33570
|
Ht as T,
|
|
33551
|
-
|
|
33552
|
-
|
|
33553
|
-
|
|
33554
|
-
|
|
33571
|
+
Jn as U,
|
|
33572
|
+
H0 as V,
|
|
33573
|
+
rr as W,
|
|
33574
|
+
P0 as X,
|
|
33555
33575
|
Ot as Y,
|
|
33556
33576
|
Yr as Z,
|
|
33557
33577
|
Xa as _,
|
|
33558
33578
|
ke as a,
|
|
33559
|
-
|
|
33579
|
+
ab as a$,
|
|
33560
33580
|
ct as a0,
|
|
33561
33581
|
Nc as a1,
|
|
33562
33582
|
Yu as a2,
|
|
33563
33583
|
Ep as a3,
|
|
33564
33584
|
Ml as a4,
|
|
33565
|
-
|
|
33585
|
+
sg as a5,
|
|
33566
33586
|
Tc as a6,
|
|
33567
|
-
|
|
33587
|
+
k1 as a7,
|
|
33568
33588
|
Af as a8,
|
|
33569
33589
|
jn as a9,
|
|
33570
|
-
|
|
33571
|
-
|
|
33590
|
+
Q0 as aA,
|
|
33591
|
+
rb as aB,
|
|
33572
33592
|
xm as aC,
|
|
33573
33593
|
_n as aD,
|
|
33574
|
-
|
|
33575
|
-
|
|
33576
|
-
|
|
33577
|
-
|
|
33578
|
-
|
|
33579
|
-
|
|
33594
|
+
Z0 as aE,
|
|
33595
|
+
R1 as aF,
|
|
33596
|
+
W0 as aG,
|
|
33597
|
+
l1 as aH,
|
|
33598
|
+
z0 as aI,
|
|
33599
|
+
J1 as aJ,
|
|
33580
33600
|
Vu as aK,
|
|
33581
|
-
|
|
33582
|
-
|
|
33601
|
+
J0 as aL,
|
|
33602
|
+
M1 as aM,
|
|
33583
33603
|
vu as aN,
|
|
33584
|
-
|
|
33604
|
+
K0 as aO,
|
|
33585
33605
|
En as aP,
|
|
33586
|
-
|
|
33587
|
-
|
|
33606
|
+
Ry as aQ,
|
|
33607
|
+
ib as aR,
|
|
33588
33608
|
Lr as aS,
|
|
33589
|
-
|
|
33590
|
-
|
|
33591
|
-
|
|
33592
|
-
|
|
33593
|
-
|
|
33594
|
-
|
|
33595
|
-
|
|
33596
|
-
|
|
33597
|
-
|
|
33609
|
+
tb as aT,
|
|
33610
|
+
o1 as aU,
|
|
33611
|
+
Y0 as aV,
|
|
33612
|
+
lb as aW,
|
|
33613
|
+
s1 as aX,
|
|
33614
|
+
eb as aY,
|
|
33615
|
+
I1 as aZ,
|
|
33616
|
+
ey as a_,
|
|
33617
|
+
l0 as aa,
|
|
33598
33618
|
Fc as ab,
|
|
33599
33619
|
Oc as ac,
|
|
33600
33620
|
Wn as ad,
|
|
@@ -33605,134 +33625,134 @@ export {
|
|
|
33605
33625
|
tn as ai,
|
|
33606
33626
|
Yp as aj,
|
|
33607
33627
|
Fr as ak,
|
|
33608
|
-
|
|
33628
|
+
j0 as al,
|
|
33609
33629
|
uf as am,
|
|
33610
|
-
|
|
33611
|
-
|
|
33612
|
-
|
|
33613
|
-
|
|
33614
|
-
|
|
33615
|
-
|
|
33616
|
-
|
|
33617
|
-
|
|
33618
|
-
|
|
33619
|
-
|
|
33630
|
+
Qp as an,
|
|
33631
|
+
ob as ao,
|
|
33632
|
+
i1 as ap,
|
|
33633
|
+
a1 as aq,
|
|
33634
|
+
V0 as ar,
|
|
33635
|
+
X0 as as,
|
|
33636
|
+
x1 as at,
|
|
33637
|
+
D1 as au,
|
|
33638
|
+
U0 as av,
|
|
33639
|
+
G0 as aw,
|
|
33620
33640
|
La as ax,
|
|
33621
|
-
|
|
33641
|
+
q1 as ay,
|
|
33622
33642
|
Ma as az,
|
|
33623
|
-
|
|
33643
|
+
E1 as b,
|
|
33624
33644
|
qr as b$,
|
|
33625
33645
|
cu as b0,
|
|
33626
|
-
|
|
33627
|
-
|
|
33628
|
-
|
|
33646
|
+
mg as b1,
|
|
33647
|
+
Zy as b2,
|
|
33648
|
+
Hy as b3,
|
|
33629
33649
|
Th as b4,
|
|
33630
33650
|
pn as b5,
|
|
33631
|
-
|
|
33632
|
-
|
|
33633
|
-
|
|
33634
|
-
|
|
33651
|
+
t0 as b6,
|
|
33652
|
+
n0 as b7,
|
|
33653
|
+
vg as b8,
|
|
33654
|
+
$g as b9,
|
|
33635
33655
|
Ha as bA,
|
|
33636
33656
|
hc as bB,
|
|
33637
|
-
|
|
33638
|
-
|
|
33657
|
+
H1 as bC,
|
|
33658
|
+
Iy as bD,
|
|
33639
33659
|
qh as bE,
|
|
33640
|
-
|
|
33641
|
-
|
|
33642
|
-
|
|
33643
|
-
|
|
33644
|
-
|
|
33660
|
+
B0 as bF,
|
|
33661
|
+
bg as bG,
|
|
33662
|
+
wg as bH,
|
|
33663
|
+
_g as bI,
|
|
33664
|
+
zy as bJ,
|
|
33645
33665
|
xh as bK,
|
|
33646
|
-
|
|
33647
|
-
|
|
33666
|
+
Py as bL,
|
|
33667
|
+
ir as bM,
|
|
33648
33668
|
Tl as bN,
|
|
33649
33669
|
Ua as bO,
|
|
33650
33670
|
ph as bP,
|
|
33651
|
-
|
|
33652
|
-
|
|
33671
|
+
My as bQ,
|
|
33672
|
+
b0 as bR,
|
|
33653
33673
|
Je as bS,
|
|
33654
33674
|
Ze as bT,
|
|
33655
33675
|
qu as bU,
|
|
33656
|
-
|
|
33657
|
-
|
|
33658
|
-
|
|
33659
|
-
|
|
33660
|
-
|
|
33676
|
+
vy as bV,
|
|
33677
|
+
sr as bW,
|
|
33678
|
+
_y as bX,
|
|
33679
|
+
ig as bY,
|
|
33680
|
+
hy as bZ,
|
|
33661
33681
|
xr as b_,
|
|
33662
33682
|
en as ba,
|
|
33663
|
-
|
|
33664
|
-
|
|
33665
|
-
|
|
33666
|
-
|
|
33667
|
-
|
|
33668
|
-
|
|
33669
|
-
|
|
33670
|
-
|
|
33671
|
-
|
|
33672
|
-
|
|
33673
|
-
|
|
33674
|
-
|
|
33675
|
-
|
|
33683
|
+
yg as bb,
|
|
33684
|
+
gg as bc,
|
|
33685
|
+
c0 as bd,
|
|
33686
|
+
pg as be,
|
|
33687
|
+
hg as bf,
|
|
33688
|
+
Vy as bg,
|
|
33689
|
+
Eg as bh,
|
|
33690
|
+
Xy as bi,
|
|
33691
|
+
jy as bj,
|
|
33692
|
+
Gy as bk,
|
|
33693
|
+
Wy as bl,
|
|
33694
|
+
Yy as bm,
|
|
33695
|
+
Ky as bn,
|
|
33676
33696
|
Dh as bo,
|
|
33677
33697
|
Yo as bp,
|
|
33678
|
-
|
|
33679
|
-
|
|
33698
|
+
By as bq,
|
|
33699
|
+
m0 as br,
|
|
33680
33700
|
of as bs,
|
|
33681
33701
|
dc as bt,
|
|
33682
33702
|
Pa as bu,
|
|
33683
33703
|
Eh as bv,
|
|
33684
33704
|
fc as bw,
|
|
33685
33705
|
mc as bx,
|
|
33686
|
-
|
|
33706
|
+
Uy as by,
|
|
33687
33707
|
wh as bz,
|
|
33688
33708
|
yf as c,
|
|
33689
|
-
|
|
33709
|
+
Qy as c$,
|
|
33690
33710
|
kc as c0,
|
|
33691
33711
|
oc as c1,
|
|
33692
33712
|
ic as c2,
|
|
33693
33713
|
Wr as c3,
|
|
33694
33714
|
ac as c4,
|
|
33695
|
-
|
|
33696
|
-
|
|
33715
|
+
uy as c5,
|
|
33716
|
+
cy as c6,
|
|
33697
33717
|
Up as c7,
|
|
33698
33718
|
Ys as c8,
|
|
33699
|
-
|
|
33719
|
+
C0 as c9,
|
|
33700
33720
|
Wd as cA,
|
|
33701
33721
|
dh as cB,
|
|
33702
|
-
|
|
33722
|
+
dg as cC,
|
|
33703
33723
|
Wu as cD,
|
|
33704
|
-
|
|
33705
|
-
|
|
33706
|
-
|
|
33707
|
-
|
|
33708
|
-
|
|
33709
|
-
|
|
33710
|
-
|
|
33711
|
-
|
|
33712
|
-
|
|
33713
|
-
|
|
33724
|
+
e0 as cE,
|
|
33725
|
+
q0 as cF,
|
|
33726
|
+
$y as cG,
|
|
33727
|
+
Cy as cH,
|
|
33728
|
+
Ty as cI,
|
|
33729
|
+
gy as cJ,
|
|
33730
|
+
O0 as cK,
|
|
33731
|
+
r0 as cL,
|
|
33732
|
+
xy as cM,
|
|
33733
|
+
oy as cN,
|
|
33714
33734
|
Hc as cO,
|
|
33715
33735
|
$m as cP,
|
|
33716
33736
|
Oa as cQ,
|
|
33717
33737
|
jt as cR,
|
|
33718
|
-
|
|
33719
|
-
|
|
33738
|
+
K1 as cS,
|
|
33739
|
+
a0 as cT,
|
|
33720
33740
|
Rr as cU,
|
|
33721
|
-
|
|
33741
|
+
Zg as cV,
|
|
33722
33742
|
Bt as cW,
|
|
33723
33743
|
ju as cX,
|
|
33724
|
-
|
|
33744
|
+
ny as cY,
|
|
33725
33745
|
yl as cZ,
|
|
33726
|
-
|
|
33746
|
+
Jy as c_,
|
|
33727
33747
|
Oh as ca,
|
|
33728
|
-
|
|
33729
|
-
|
|
33730
|
-
|
|
33748
|
+
$0 as cb,
|
|
33749
|
+
Ly as cc,
|
|
33750
|
+
L0 as cd,
|
|
33731
33751
|
Fh as ce,
|
|
33732
33752
|
Bh as cf,
|
|
33733
33753
|
Lh as cg,
|
|
33734
|
-
|
|
33735
|
-
|
|
33754
|
+
F0 as ch,
|
|
33755
|
+
Q1 as ci,
|
|
33736
33756
|
kn as cj,
|
|
33737
33757
|
Ir as ck,
|
|
33738
33758
|
Va as cl,
|
|
@@ -33745,10 +33765,10 @@ export {
|
|
|
33745
33765
|
_a as cs,
|
|
33746
33766
|
ym as ct,
|
|
33747
33767
|
gm as cu,
|
|
33748
|
-
|
|
33749
|
-
|
|
33768
|
+
G1 as cv,
|
|
33769
|
+
V1 as cw,
|
|
33750
33770
|
Qu as cx,
|
|
33751
|
-
|
|
33771
|
+
ry as cy,
|
|
33752
33772
|
Cm as cz,
|
|
33753
33773
|
Po as d,
|
|
33754
33774
|
gc as d$,
|
|
@@ -33756,36 +33776,36 @@ export {
|
|
|
33756
33776
|
Go as d1,
|
|
33757
33777
|
kd as d2,
|
|
33758
33778
|
ku as d3,
|
|
33759
|
-
|
|
33779
|
+
g0 as d4,
|
|
33760
33780
|
Vr as d5,
|
|
33761
|
-
|
|
33762
|
-
|
|
33781
|
+
p0 as d6,
|
|
33782
|
+
F1 as d7,
|
|
33763
33783
|
Md as d8,
|
|
33764
|
-
|
|
33765
|
-
|
|
33766
|
-
|
|
33767
|
-
|
|
33768
|
-
|
|
33769
|
-
|
|
33784
|
+
ty as d9,
|
|
33785
|
+
A0 as dA,
|
|
33786
|
+
M0 as dB,
|
|
33787
|
+
k0 as dC,
|
|
33788
|
+
o0 as dD,
|
|
33789
|
+
Zp as dE,
|
|
33770
33790
|
fm as dF,
|
|
33771
33791
|
Ho as dG,
|
|
33772
|
-
|
|
33773
|
-
|
|
33774
|
-
|
|
33792
|
+
Ag as dH,
|
|
33793
|
+
T0 as dI,
|
|
33794
|
+
d0 as dJ,
|
|
33775
33795
|
cm as dK,
|
|
33776
33796
|
xa as dL,
|
|
33777
33797
|
Gu as dM,
|
|
33778
|
-
|
|
33798
|
+
wy as dN,
|
|
33779
33799
|
Fa as dO,
|
|
33780
|
-
|
|
33800
|
+
Mt as dP,
|
|
33781
33801
|
Bu as dQ,
|
|
33782
|
-
|
|
33783
|
-
|
|
33784
|
-
|
|
33802
|
+
nr as dR,
|
|
33803
|
+
$1 as dS,
|
|
33804
|
+
h0 as dT,
|
|
33785
33805
|
Sd as dU,
|
|
33786
33806
|
Dt as dV,
|
|
33787
|
-
|
|
33788
|
-
|
|
33807
|
+
iy as dW,
|
|
33808
|
+
fy as dX,
|
|
33789
33809
|
Dr as dY,
|
|
33790
33810
|
zu as dZ,
|
|
33791
33811
|
wl as d_,
|
|
@@ -33793,104 +33813,104 @@ export {
|
|
|
33793
33813
|
xc as db,
|
|
33794
33814
|
Kt as dc,
|
|
33795
33815
|
kh as dd,
|
|
33796
|
-
|
|
33797
|
-
|
|
33816
|
+
W1 as de,
|
|
33817
|
+
Jp as df,
|
|
33798
33818
|
Hn as dg,
|
|
33799
|
-
|
|
33819
|
+
y0 as dh,
|
|
33800
33820
|
Ac as di,
|
|
33801
|
-
|
|
33802
|
-
|
|
33821
|
+
z1 as dj,
|
|
33822
|
+
U1 as dk,
|
|
33803
33823
|
Vo as dl,
|
|
33804
|
-
|
|
33805
|
-
|
|
33824
|
+
tg as dm,
|
|
33825
|
+
eg as dn,
|
|
33806
33826
|
Du as dp,
|
|
33807
33827
|
Cn as dq,
|
|
33808
33828
|
lc as dr,
|
|
33809
|
-
|
|
33829
|
+
_0 as ds,
|
|
33810
33830
|
rc as dt,
|
|
33811
|
-
|
|
33812
|
-
|
|
33813
|
-
|
|
33814
|
-
|
|
33815
|
-
|
|
33816
|
-
|
|
33817
|
-
|
|
33818
|
-
|
|
33819
|
-
|
|
33820
|
-
|
|
33831
|
+
R0 as du,
|
|
33832
|
+
S0 as dv,
|
|
33833
|
+
Ng as dw,
|
|
33834
|
+
Sg as dx,
|
|
33835
|
+
I0 as dy,
|
|
33836
|
+
E0 as dz,
|
|
33837
|
+
sb as e,
|
|
33838
|
+
sy as e0,
|
|
33839
|
+
lg as e1,
|
|
33840
|
+
w0 as e2,
|
|
33821
33841
|
nu as e3,
|
|
33822
33842
|
tc as e4,
|
|
33823
33843
|
Xu as e5,
|
|
33824
33844
|
mh as e6,
|
|
33825
|
-
|
|
33826
|
-
|
|
33827
|
-
|
|
33828
|
-
|
|
33829
|
-
|
|
33845
|
+
lr as e7,
|
|
33846
|
+
ly as e8,
|
|
33847
|
+
Oy as e9,
|
|
33848
|
+
N0 as eA,
|
|
33849
|
+
P1 as eB,
|
|
33830
33850
|
tl as eC,
|
|
33831
33851
|
rl as eD,
|
|
33832
33852
|
fu as eE,
|
|
33833
|
-
|
|
33834
|
-
|
|
33835
|
-
|
|
33853
|
+
B1 as eF,
|
|
33854
|
+
X1 as eG,
|
|
33855
|
+
Z1 as eH,
|
|
33836
33856
|
Uo as eI,
|
|
33837
33857
|
du as eJ,
|
|
33838
33858
|
Un as eK,
|
|
33839
|
-
|
|
33859
|
+
A1 as eL,
|
|
33840
33860
|
Df as eM,
|
|
33841
|
-
|
|
33842
|
-
|
|
33843
|
-
|
|
33844
|
-
|
|
33861
|
+
N1 as eN,
|
|
33862
|
+
C1 as eO,
|
|
33863
|
+
c1 as eP,
|
|
33864
|
+
g1 as eQ,
|
|
33845
33865
|
mf as eR,
|
|
33846
|
-
|
|
33866
|
+
y1 as eS,
|
|
33847
33867
|
Ia as eT,
|
|
33848
33868
|
Qo as eU,
|
|
33849
|
-
|
|
33850
|
-
|
|
33869
|
+
h1 as eV,
|
|
33870
|
+
p1 as eW,
|
|
33851
33871
|
ff as eX,
|
|
33852
|
-
|
|
33872
|
+
Fy as ea,
|
|
33853
33873
|
zp as eb,
|
|
33854
|
-
|
|
33855
|
-
|
|
33856
|
-
|
|
33857
|
-
|
|
33858
|
-
|
|
33874
|
+
ar as ec,
|
|
33875
|
+
dy as ed,
|
|
33876
|
+
O1 as ee,
|
|
33877
|
+
py as ef,
|
|
33878
|
+
qy as eg,
|
|
33859
33879
|
zm as eh,
|
|
33860
33880
|
Um as ei,
|
|
33861
33881
|
Rd as ej,
|
|
33862
33882
|
cc as ek,
|
|
33863
|
-
|
|
33864
|
-
|
|
33883
|
+
f0 as el,
|
|
33884
|
+
Dy as em,
|
|
33865
33885
|
hp as en,
|
|
33866
|
-
|
|
33886
|
+
yy as eo,
|
|
33867
33887
|
ka as ep,
|
|
33868
|
-
|
|
33869
|
-
|
|
33870
|
-
|
|
33871
|
-
|
|
33872
|
-
|
|
33873
|
-
|
|
33888
|
+
D0 as eq,
|
|
33889
|
+
x0 as er,
|
|
33890
|
+
i0 as es,
|
|
33891
|
+
ay as et,
|
|
33892
|
+
v0 as eu,
|
|
33893
|
+
j1 as ev,
|
|
33874
33894
|
gl as ew,
|
|
33875
33895
|
Or as ex,
|
|
33876
|
-
|
|
33877
|
-
|
|
33878
|
-
|
|
33896
|
+
u0 as ey,
|
|
33897
|
+
S1 as ez,
|
|
33898
|
+
d1 as f,
|
|
33879
33899
|
uu as g,
|
|
33880
33900
|
Zd as h,
|
|
33881
33901
|
rt as i,
|
|
33882
|
-
|
|
33902
|
+
gr as j,
|
|
33883
33903
|
qn as k,
|
|
33884
33904
|
Ae as l,
|
|
33885
33905
|
vc as m,
|
|
33886
|
-
|
|
33887
|
-
|
|
33906
|
+
by as n,
|
|
33907
|
+
s0 as o,
|
|
33888
33908
|
Sc as p,
|
|
33889
33909
|
Lu as q,
|
|
33890
33910
|
Bo as r,
|
|
33891
33911
|
_c as s,
|
|
33892
|
-
|
|
33893
|
-
|
|
33912
|
+
nb as t,
|
|
33913
|
+
my as u,
|
|
33894
33914
|
Cc as v,
|
|
33895
33915
|
an as w,
|
|
33896
33916
|
Cs as x,
|