@fileverse-dev/dsheet 2.0.33-comment → 2.0.33-rtc
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/components/collab-status-chip.d.ts +8 -0
- package/dist/editor/contexts/editor-context.d.ts +9 -5
- package/dist/editor/dsheet-editor.d.ts +1 -1
- package/dist/editor/hooks/use-collab-awareness.d.ts +11 -0
- package/dist/editor/hooks/use-editor-data.d.ts +1 -1
- package/dist/editor/hooks/use-editor-sync.d.ts +9 -6
- package/dist/editor/types.d.ts +2 -2
- package/dist/{executeStringFunction-CqY9CxQI.js → executeStringFunction-9cGLblM5.js} +221 -201
- package/dist/formula.js +1 -1
- package/dist/index-DkB-BZN7.js +50679 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +4 -4
- package/dist/sheet-engine/core/index.d.ts +1 -1
- package/dist/sheet-engine/core/modules/index.d.ts +1 -1
- package/dist/sheet-engine/core/settings.d.ts +1 -1
- package/dist/sheet-engine/core/types.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/sync-local/SyncManager.d.ts +67 -0
- package/dist/sync-local/collabStateMachine.d.ts +23 -0
- package/dist/sync-local/constants.d.ts +1 -0
- package/dist/sync-local/crypto/index.d.ts +6 -0
- package/dist/sync-local/index.d.ts +3 -0
- package/dist/sync-local/socketClient.d.ts +68 -0
- package/dist/sync-local/types/index.d.ts +208 -0
- package/dist/sync-local/useSyncManager.d.ts +12 -0
- package/dist/sync-local/utils/createAwarenessUpdateHandler.d.ts +8 -0
- package/dist/sync-local/utils/objectToFile.d.ts +1 -0
- package/dist/{use-xlsx-import-impl-DgedLtO_.js → use-xlsx-import-impl-DUEM4eBB.js} +2 -2
- package/dist/{xlsx-export-impl-1HOQoC6f.js → xlsx-export-impl-BLwdk5y1.js} +293 -295
- package/package.json +7 -3
- package/dist/editor/hooks/use-editor-collaboration.d.ts +0 -9
- package/dist/index-D9nJayaD.js +0 -40174
|
@@ -9,6 +9,25 @@ var Bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
9
9
|
function Wo(e) {
|
|
10
10
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
11
11
|
}
|
|
12
|
+
function Sf(e) {
|
|
13
|
+
if (e.__esModule) return e;
|
|
14
|
+
var t = e.default;
|
|
15
|
+
if (typeof t == "function") {
|
|
16
|
+
var r = function a() {
|
|
17
|
+
return this instanceof a ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
|
|
18
|
+
};
|
|
19
|
+
r.prototype = t.prototype;
|
|
20
|
+
} else r = {};
|
|
21
|
+
return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(a) {
|
|
22
|
+
var n = Object.getOwnPropertyDescriptor(e, a);
|
|
23
|
+
Object.defineProperty(r, a, n.get ? n : {
|
|
24
|
+
enumerable: !0,
|
|
25
|
+
get: function() {
|
|
26
|
+
return e[a];
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}), r;
|
|
30
|
+
}
|
|
12
31
|
const Ln = {}, Ar = {
|
|
13
32
|
en: () => Promise.resolve().then(() => Ql),
|
|
14
33
|
zh: () => import("./zh-BfQYzoDQ.js"),
|
|
@@ -16,7 +35,7 @@ const Ln = {}, Ar = {
|
|
|
16
35
|
hi: () => import("./hi-Ca55EZ4A.js"),
|
|
17
36
|
"zh-TW": () => import("./zh_tw-CINWHD2H.js")
|
|
18
37
|
};
|
|
19
|
-
async function
|
|
38
|
+
async function kf(e) {
|
|
20
39
|
const t = e in Ar ? e : e.split("-")[0], r = t in Ar ? t : "en";
|
|
21
40
|
if (Ln[r]) return;
|
|
22
41
|
const a = await Ar[r]();
|
|
@@ -13876,7 +13895,7 @@ let ma = "uk";
|
|
|
13876
13895
|
function As(e) {
|
|
13877
13896
|
return e === "us" ? "us" : "uk";
|
|
13878
13897
|
}
|
|
13879
|
-
function
|
|
13898
|
+
function Ef(e) {
|
|
13880
13899
|
ma = As(e);
|
|
13881
13900
|
}
|
|
13882
13901
|
function Ss() {
|
|
@@ -13910,7 +13929,7 @@ function qs(e) {
|
|
|
13910
13929
|
function Ms(e, t) {
|
|
13911
13930
|
return qs(e) ? e : Ko(t);
|
|
13912
13931
|
}
|
|
13913
|
-
function
|
|
13932
|
+
function qf(e) {
|
|
13914
13933
|
if (document.createRange)
|
|
13915
13934
|
if (e.innerHTML !== e.innerText || e.innerHTML === "") {
|
|
13916
13935
|
e.focus();
|
|
@@ -13952,7 +13971,7 @@ function Kr(e) {
|
|
|
13952
13971
|
`).replace(/\r/g, `
|
|
13953
13972
|
`);
|
|
13954
13973
|
}
|
|
13955
|
-
function
|
|
13974
|
+
function Mf(e) {
|
|
13956
13975
|
const t = window.getSelection();
|
|
13957
13976
|
if (!t || t.rangeCount === 0) return null;
|
|
13958
13977
|
const r = t.focusNode;
|
|
@@ -13960,7 +13979,7 @@ function qf(e) {
|
|
|
13960
13979
|
const a = document.createRange();
|
|
13961
13980
|
return a.selectNodeContents(e), a.setEnd(r, t.focusOffset), Kr(a.toString()).length;
|
|
13962
13981
|
}
|
|
13963
|
-
function
|
|
13982
|
+
function Rf(e) {
|
|
13964
13983
|
const t = window.getSelection();
|
|
13965
13984
|
if (!t || t.rangeCount === 0) return null;
|
|
13966
13985
|
const r = t.getRangeAt(0);
|
|
@@ -13971,7 +13990,7 @@ function Mf(e) {
|
|
|
13971
13990
|
const n = Kr(a.toString()).length, o = Kr(r.toString());
|
|
13972
13991
|
return { start: n, end: n + o.length };
|
|
13973
13992
|
}
|
|
13974
|
-
function
|
|
13993
|
+
function If(e, t, r) {
|
|
13975
13994
|
e.focus({ preventScroll: !0 });
|
|
13976
13995
|
const a = window.getSelection();
|
|
13977
13996
|
if (!a) return;
|
|
@@ -14002,7 +14021,7 @@ function Rf(e, t, r) {
|
|
|
14002
14021
|
u.setStart(o, i), u.setEnd(l, c), a.removeAllRanges(), a.addRange(u);
|
|
14003
14022
|
}
|
|
14004
14023
|
}
|
|
14005
|
-
function
|
|
14024
|
+
function Df(e, t, r) {
|
|
14006
14025
|
if (t >= r) return [];
|
|
14007
14026
|
let a = 0, n = null, o = 0, i = null, l = 0;
|
|
14008
14027
|
function c(f) {
|
|
@@ -14040,7 +14059,7 @@ const wo = {
|
|
|
14040
14059
|
fc: "color",
|
|
14041
14060
|
cl: "text-decoration",
|
|
14042
14061
|
un: "border-bottom"
|
|
14043
|
-
},
|
|
14062
|
+
}, Of = {
|
|
14044
14063
|
bl: 1,
|
|
14045
14064
|
it: 1,
|
|
14046
14065
|
ff: 1,
|
|
@@ -14065,7 +14084,7 @@ function br(e) {
|
|
|
14065
14084
|
var t;
|
|
14066
14085
|
return (e == null ? void 0 : e.t) === "inlineStr" && (((t = e == null ? void 0 : e.s) == null ? void 0 : t.length) ?? 0) > 0;
|
|
14067
14086
|
}
|
|
14068
|
-
function
|
|
14087
|
+
function Lf(e, t, r) {
|
|
14069
14088
|
const a = Ke(e, t, r, "ct");
|
|
14070
14089
|
if (br(a)) {
|
|
14071
14090
|
const n = a.s;
|
|
@@ -14124,7 +14143,7 @@ function Ls(e) {
|
|
|
14124
14143
|
const t = Os(e);
|
|
14125
14144
|
return t === "rgb(0,0,255)" || t === "#0000ff" || t === "#00f" || t === "blue";
|
|
14126
14145
|
}
|
|
14127
|
-
function
|
|
14146
|
+
function Ff(e) {
|
|
14128
14147
|
typeof e.fc == "string" && Ls(e.fc) && delete e.fc, e.un === 1 && delete e.un;
|
|
14129
14148
|
}
|
|
14130
14149
|
function Fs(e, t) {
|
|
@@ -14153,7 +14172,7 @@ function Fs(e, t) {
|
|
|
14153
14172
|
}
|
|
14154
14173
|
return r;
|
|
14155
14174
|
}
|
|
14156
|
-
function
|
|
14175
|
+
function Bf(e, t, r) {
|
|
14157
14176
|
if (h.isNil(e.ct))
|
|
14158
14177
|
return;
|
|
14159
14178
|
const { s: a } = e.ct;
|
|
@@ -14258,7 +14277,7 @@ function pn(e, t, r = !0) {
|
|
|
14258
14277
|
function Ye(e) {
|
|
14259
14278
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
14260
14279
|
}
|
|
14261
|
-
function
|
|
14280
|
+
function Pf(e, t, r, a) {
|
|
14262
14281
|
var d, p, y;
|
|
14263
14282
|
const n = window.getSelection();
|
|
14264
14283
|
if (!n || n.rangeCount === 0) return;
|
|
@@ -14462,7 +14481,7 @@ function Jn(e, t, r) {
|
|
|
14462
14481
|
}
|
|
14463
14482
|
return a + r;
|
|
14464
14483
|
}
|
|
14465
|
-
function
|
|
14484
|
+
function Hf(e, t, r) {
|
|
14466
14485
|
var d, p, y, g, b, w;
|
|
14467
14486
|
const a = window.getSelection();
|
|
14468
14487
|
if (!a || a.rangeCount === 0) return;
|
|
@@ -14608,7 +14627,7 @@ function Us(e) {
|
|
|
14608
14627
|
if (!(!a || !n) && !(a.linkType !== n.linkType || a.linkAddress !== n.linkAddress))
|
|
14609
14628
|
return a;
|
|
14610
14629
|
}
|
|
14611
|
-
function
|
|
14630
|
+
function zf(e) {
|
|
14612
14631
|
const t = window.getSelection();
|
|
14613
14632
|
if (!(t != null && t.rangeCount) || !t.anchorNode || !e.contains(t.anchorNode))
|
|
14614
14633
|
return;
|
|
@@ -14647,7 +14666,7 @@ function Ys(e, t, r, a, n) {
|
|
|
14647
14666
|
const u = a.measureText(o).width, f = a.measureText(s).width, m = Math.max(1, a.measureText(" ").width || 1), d = r - n - u - f, p = Math.floor(d / m);
|
|
14648
14667
|
return p <= 1 ? e : `${`${c}${o}`}${" ".repeat(p)}${s}`;
|
|
14649
14668
|
}
|
|
14650
|
-
function
|
|
14669
|
+
function Uf() {
|
|
14651
14670
|
jt = {}, or = 0, tl = {};
|
|
14652
14671
|
for (const e in mn) delete mn[e];
|
|
14653
14672
|
ir = 0;
|
|
@@ -17435,7 +17454,7 @@ function gc(e) {
|
|
|
17435
17454
|
let r = 1, a = e.replace(/([\d]),([\d])/g, "$1$2").replace(/[$]/g, "").replace(/[%]/g, () => (r *= 100, ""));
|
|
17436
17455
|
return t = Number(a), !Number.isNaN(t) || (a = a.replace(/[(](.*)[)]/, (n, o) => (r = -r, o)), t = Number(a), !Number.isNaN(t)) ? t / r : t;
|
|
17437
17456
|
}
|
|
17438
|
-
function
|
|
17457
|
+
function Wf(e, t, r) {
|
|
17439
17458
|
var n, o, i, l, c, s;
|
|
17440
17459
|
let a = Ke(e, t, r, "m");
|
|
17441
17460
|
return a == null ? a = Ke(e, t, r, "v") : Number.isNaN(gc(a)) ? ((i = (o = (n = r[e]) == null ? void 0 : n[t]) == null ? void 0 : o.ct) == null ? void 0 : i.t) === "d" || ((s = (c = (l = r[e]) == null ? void 0 : l[t]) == null ? void 0 : c.ct) == null ? void 0 : s.t) === "b" || (a = Ke(e, t, r, "v")) : h.isString(a) && a.indexOf("%") > -1 || (a = Ke(e, t, r, "v")), a;
|
|
@@ -18130,7 +18149,7 @@ function Bc(e, t) {
|
|
|
18130
18149
|
}
|
|
18131
18150
|
return c.push(t), c;
|
|
18132
18151
|
}
|
|
18133
|
-
function
|
|
18152
|
+
function Vf(e) {
|
|
18134
18153
|
var r, a;
|
|
18135
18154
|
const { luckysheetfile: t } = e;
|
|
18136
18155
|
if (e.groupValuesRefreshData.length > 0) {
|
|
@@ -18428,7 +18447,7 @@ function Pc(e, t, r) {
|
|
|
18428
18447
|
}
|
|
18429
18448
|
return null;
|
|
18430
18449
|
}
|
|
18431
|
-
function
|
|
18450
|
+
function Gf(e) {
|
|
18432
18451
|
var a, n;
|
|
18433
18452
|
if (e.formulaCache.func_selectedrange) return !0;
|
|
18434
18453
|
const t = e.luckysheet_select_save;
|
|
@@ -18450,7 +18469,7 @@ function Vf(e) {
|
|
|
18450
18469
|
moveXY: r.moveXY
|
|
18451
18470
|
}, !0);
|
|
18452
18471
|
}
|
|
18453
|
-
function
|
|
18472
|
+
function Yf(e, t) {
|
|
18454
18473
|
e.formulaRangeSelect = t;
|
|
18455
18474
|
}
|
|
18456
18475
|
function Hc(e, t, r = -1) {
|
|
@@ -18832,7 +18851,7 @@ function vr(e) {
|
|
|
18832
18851
|
const i = parseInt(o, 10);
|
|
18833
18852
|
return Number.isNaN(i) ? null : i;
|
|
18834
18853
|
}
|
|
18835
|
-
function
|
|
18854
|
+
function jf(e, t) {
|
|
18836
18855
|
e.formulaCache.formulaEditorOwner = t;
|
|
18837
18856
|
}
|
|
18838
18857
|
function cl(e) {
|
|
@@ -18921,7 +18940,7 @@ function Jc(e) {
|
|
|
18921
18940
|
function eu(e) {
|
|
18922
18941
|
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;
|
|
18923
18942
|
}
|
|
18924
|
-
function
|
|
18943
|
+
function Xf(e) {
|
|
18925
18944
|
const t = vr(e);
|
|
18926
18945
|
if (t !== null) return t;
|
|
18927
18946
|
const r = Yc(e);
|
|
@@ -19047,7 +19066,7 @@ function nu(e) {
|
|
|
19047
19066
|
}
|
|
19048
19067
|
return Dr(t);
|
|
19049
19068
|
}
|
|
19050
|
-
function
|
|
19069
|
+
function Zf(e, t, r) {
|
|
19051
19070
|
if (!r) return !1;
|
|
19052
19071
|
const a = window.getSelection();
|
|
19053
19072
|
if (!a || a.rangeCount === 0 || !a.anchorNode || !r.contains(a.anchorNode)) return !1;
|
|
@@ -19152,7 +19171,7 @@ function So(e, t, r) {
|
|
|
19152
19171
|
}
|
|
19153
19172
|
return !1;
|
|
19154
19173
|
}
|
|
19155
|
-
function
|
|
19174
|
+
function Kf(e) {
|
|
19156
19175
|
return !!e.formulaCache.rangestart || !!e.formulaCache.rangedrag_column_start || !!e.formulaCache.rangedrag_row_start || e.formulaCache.rangeSelectionActive === !0 || _r(e);
|
|
19157
19176
|
}
|
|
19158
19177
|
function _r(e, t) {
|
|
@@ -19226,11 +19245,11 @@ function _r(e, t) {
|
|
|
19226
19245
|
}
|
|
19227
19246
|
return !1;
|
|
19228
19247
|
}
|
|
19229
|
-
function
|
|
19248
|
+
function Qf(e) {
|
|
19230
19249
|
const t = ul(e), r = ((t == null ? void 0 : t.innerText) || "").trim(), a = !!e.formulaCache.rangestart || !!e.formulaCache.rangedrag_column_start || !!e.formulaCache.rangedrag_row_start, n = !!t && Ca(t), o = a || e.formulaCache.rangeSelectionActive === !0;
|
|
19231
19250
|
return r.startsWith("=") ? e.formulaCache.rangeSelectionActive === !0 && t && vr(t) !== null ? !0 : /^=\s*[A-Za-z_][A-Za-z0-9_]*$/.test(r) || e.formulaCache.rangeSelectionActive === !1 ? !1 : o ? a ? !0 : n : n ? !0 : _r(e) : !1;
|
|
19232
19251
|
}
|
|
19233
|
-
function
|
|
19252
|
+
function Jf(e) {
|
|
19234
19253
|
if (e.formulaCache.rangeSelectionActive !== !1)
|
|
19235
19254
|
return !1;
|
|
19236
19255
|
const t = ul(e);
|
|
@@ -19361,7 +19380,7 @@ function Na(e, t, r, a) {
|
|
|
19361
19380
|
}
|
|
19362
19381
|
u && (u.innerHTML = s.innerHTML);
|
|
19363
19382
|
}
|
|
19364
|
-
function
|
|
19383
|
+
function ed(e) {
|
|
19365
19384
|
if (e.formulaCache.func_selectedrange) {
|
|
19366
19385
|
const {
|
|
19367
19386
|
left_move: t,
|
|
@@ -19385,7 +19404,7 @@ function xa(e, t, r, a, n) {
|
|
|
19385
19404
|
);
|
|
19386
19405
|
o != null && (o.style.left = `${t}px`, o.style.top = `${r}px`, o.style.height = `${a}px`, o.style.width = `${n}px`);
|
|
19387
19406
|
}
|
|
19388
|
-
function
|
|
19407
|
+
function td(e, t, r, a, n, o, i) {
|
|
19389
19408
|
e.formulaCache.rangeSelectionActive = !0;
|
|
19390
19409
|
const { func_selectedrange: l } = e.formulaCache;
|
|
19391
19410
|
if (!l || l.left == null || l.height == null || l.top == null || l.width == null)
|
|
@@ -19415,7 +19434,7 @@ function ed(e, t, r, a, n, o, i) {
|
|
|
19415
19434
|
i
|
|
19416
19435
|
), xa(o, $, b, w, _), t.preventDefault();
|
|
19417
19436
|
}
|
|
19418
|
-
function
|
|
19437
|
+
function nd(e, t, r, a, n, o, i) {
|
|
19419
19438
|
e.formulaCache.rangeSelectionActive = !0;
|
|
19420
19439
|
const { func_selectedrange: l } = e.formulaCache;
|
|
19421
19440
|
if (!l || l.left == null || l.height == null || l.top == null || l.width == null)
|
|
@@ -19443,7 +19462,7 @@ function td(e, t, r, a, n, o, i) {
|
|
|
19443
19462
|
i
|
|
19444
19463
|
), xa(o, b, d, m - d - 1, w);
|
|
19445
19464
|
}
|
|
19446
|
-
function
|
|
19465
|
+
function rd(e, t, r, a, n, o, i) {
|
|
19447
19466
|
e.formulaCache.rangeSelectionActive = !0;
|
|
19448
19467
|
const { func_selectedrange: l } = e.formulaCache;
|
|
19449
19468
|
if (!l || l.left == null || l.height == null || l.top == null || l.width == null)
|
|
@@ -19702,7 +19721,7 @@ function dl(e, t, r, a) {
|
|
|
19702
19721
|
const l = (u = n.config) == null ? void 0 : u.authority;
|
|
19703
19722
|
return !(h.isNil(l) || h.isNil(l.sheet) || l.sheet === 0);
|
|
19704
19723
|
}
|
|
19705
|
-
function
|
|
19724
|
+
function ad(e, t, r, a) {
|
|
19706
19725
|
var c;
|
|
19707
19726
|
const n = xr(e, a);
|
|
19708
19727
|
if (h.isNil(n) || h.isNil(n.config) || h.isNil(n.config.authority))
|
|
@@ -19713,7 +19732,7 @@ function rd(e, t, r, a) {
|
|
|
19713
19732
|
const { data: i } = n, l = (c = i == null ? void 0 : i[t]) == null ? void 0 : c[r];
|
|
19714
19733
|
return l && l.lo === 0 ? !!(o.selectunLockedCells === 1 || h.isNil(o.selectunLockedCells)) : !!(o.selectLockedCells === 1 || h.isNil(o.selectLockedCells));
|
|
19715
19734
|
}
|
|
19716
|
-
function
|
|
19735
|
+
function id(e, t) {
|
|
19717
19736
|
const r = xr(e, t);
|
|
19718
19737
|
if (h.isNil(r) || h.isNil(r.config) || h.isNil(r.config.authority))
|
|
19719
19738
|
return !0;
|
|
@@ -19845,7 +19864,7 @@ function na(e) {
|
|
|
19845
19864
|
return _n(t);
|
|
19846
19865
|
}
|
|
19847
19866
|
}
|
|
19848
|
-
function
|
|
19867
|
+
function od(e) {
|
|
19849
19868
|
const t = dr;
|
|
19850
19869
|
if (!e || e.length === 0)
|
|
19851
19870
|
return {
|
|
@@ -19972,7 +19991,7 @@ function ra(e) {
|
|
|
19972
19991
|
let n = String(e.dateValue ?? "").trim();
|
|
19973
19992
|
return r !== "exact" && (n = n || na(r)), [`preset:${r}`, n, a];
|
|
19974
19993
|
}
|
|
19975
|
-
function
|
|
19994
|
+
function ld(e, t, r, a, n, o, i) {
|
|
19976
19995
|
var y, g, b, w;
|
|
19977
19996
|
if (!hu(e))
|
|
19978
19997
|
return;
|
|
@@ -21027,7 +21046,7 @@ function Eu(e, t) {
|
|
|
21027
21046
|
}
|
|
21028
21047
|
return r;
|
|
21029
21048
|
}
|
|
21030
|
-
function
|
|
21049
|
+
function sd(e, t, r, a) {
|
|
21031
21050
|
const n = nn(e), o = cf(e);
|
|
21032
21051
|
if (!n || o) return;
|
|
21033
21052
|
const i = document.getElementById(
|
|
@@ -21060,7 +21079,7 @@ function ld(e, t, r, a) {
|
|
|
21060
21079
|
x === "en" ? _ = '<span style="color:#f72626;">Failure: </span>' : x === "zh" || x === "zh-CN" || x === "zh-TW" ? _ = '<span style="color:#f72626;">失效:</span>' : x === "es" ? _ = '<span style="color:#f72626;">Caducidad: </span>' : x === "hi" && (_ = '<span style="color:#f72626;">असफलता: </span>'), _ = N + _ + yl(e, u), i.innerHTML = _, i.style.display = "block", i.style.left = `${g}px`, i.style.top = `${d}px`;
|
|
21061
21080
|
}
|
|
21062
21081
|
}
|
|
21063
|
-
function
|
|
21082
|
+
function cd(e, t, r) {
|
|
21064
21083
|
var p, y;
|
|
21065
21084
|
if (!e.luckysheet_select_save) return;
|
|
21066
21085
|
const a = Re(e);
|
|
@@ -21110,7 +21129,7 @@ function sd(e, t, r) {
|
|
|
21110
21129
|
[String(o)]: d
|
|
21111
21130
|
}), bl(e, null, void 0);
|
|
21112
21131
|
}
|
|
21113
|
-
function
|
|
21132
|
+
function ud(e, t, r) {
|
|
21114
21133
|
var p, y;
|
|
21115
21134
|
const a = zn(
|
|
21116
21135
|
e,
|
|
@@ -21247,7 +21266,7 @@ function wl(e, t, r, a, n, o, i, l, c) {
|
|
|
21247
21266
|
b.length > 0 && e.hooks.updateCellYdoc(b);
|
|
21248
21267
|
}
|
|
21249
21268
|
}
|
|
21250
|
-
function
|
|
21269
|
+
function fd(e, t, r = 0) {
|
|
21251
21270
|
var d;
|
|
21252
21271
|
if (e.allowEdit === !1 || e.luckysheet_select_save == null || e.luckysheet_select_save.length > 1)
|
|
21253
21272
|
return;
|
|
@@ -21287,7 +21306,7 @@ function ud(e, t, r = 0) {
|
|
|
21287
21306
|
f || wl(e, n, m, r, t, s, u, l, c);
|
|
21288
21307
|
}
|
|
21289
21308
|
}
|
|
21290
|
-
function
|
|
21309
|
+
function dd(e, t) {
|
|
21291
21310
|
var f, m, d;
|
|
21292
21311
|
if (e.allowEdit === !1) return;
|
|
21293
21312
|
const r = Re(e);
|
|
@@ -21449,7 +21468,7 @@ function yt(e, t, r = 10) {
|
|
|
21449
21468
|
} else t === "fs" ? n || (n = r.toString()) : (t === "tb" || t === "tr") && (n || (n = "0"));
|
|
21450
21469
|
return n;
|
|
21451
21470
|
}
|
|
21452
|
-
function
|
|
21471
|
+
function md(e, t, r, a) {
|
|
21453
21472
|
if (!e || !e[t])
|
|
21454
21473
|
return null;
|
|
21455
21474
|
const n = e[t][r];
|
|
@@ -21743,7 +21762,7 @@ function bn(e, t, r, a, n) {
|
|
|
21743
21762
|
}
|
|
21744
21763
|
h.isNil(o.f) || (c ? (o.ct || (o.ct = { fa: "General", t: "g" }), o.ct.s = c) : o != null && o.ct && h.isPlainObject(n) && Object.prototype.hasOwnProperty.call(n, "ct") && delete o.ct.s), a[t][r] = o, e.luckysheet_selection_range && (e.luckysheet_selection_range = []);
|
|
21745
21764
|
}
|
|
21746
|
-
function
|
|
21765
|
+
function hd(e, t, r, a) {
|
|
21747
21766
|
let n = Ke(e, t, r, "m");
|
|
21748
21767
|
if (h.isNil(n) && (n = Ke(e, t, r, a), h.isNil(n))) {
|
|
21749
21768
|
const o = Ke(e, t, r, "ct");
|
|
@@ -21841,7 +21860,7 @@ function Bu(e) {
|
|
|
21841
21860
|
const t = e[0];
|
|
21842
21861
|
return Array.isArray(t) && e.every((r) => Array.isArray(r)) ? e.map((r) => r.map((a) => String(a ?? "")).join(", ")).join("; ") : e.map((r) => String(r ?? "")).join(", ");
|
|
21843
21862
|
}
|
|
21844
|
-
function
|
|
21863
|
+
function pd(e, t, r, a, n, o) {
|
|
21845
21864
|
var i, l, c, s, u, f, m, d, p, y, g, b, w, T, $, _, x, N, O, E, B, W, Q, Y, J;
|
|
21846
21865
|
try {
|
|
21847
21866
|
if (e.allowEdit === !1 || e.isFlvReadOnly) return;
|
|
@@ -22161,11 +22180,11 @@ function Uu(e) {
|
|
|
22161
22180
|
}
|
|
22162
22181
|
return !1;
|
|
22163
22182
|
}
|
|
22164
|
-
function
|
|
22183
|
+
function gd(e, t) {
|
|
22165
22184
|
const r = (t ?? "").trim();
|
|
22166
22185
|
return r === "" ? !0 : Uu(r) ? !1 : zn(e, r).length > 0;
|
|
22167
22186
|
}
|
|
22168
|
-
function
|
|
22187
|
+
function yd(e, t, r) {
|
|
22169
22188
|
if (!h.isEmpty(e.luckysheetCellUpdate)) {
|
|
22170
22189
|
const o = window.getSelection();
|
|
22171
22190
|
if (!o || o.rangeCount === 0) return !1;
|
|
@@ -22315,7 +22334,7 @@ function $l(e, t, r, a) {
|
|
|
22315
22334
|
}
|
|
22316
22335
|
return "";
|
|
22317
22336
|
}
|
|
22318
|
-
function
|
|
22337
|
+
function bd(e, t, r) {
|
|
22319
22338
|
let a = "";
|
|
22320
22339
|
if (e.toString().indexOf("pt") > -1) {
|
|
22321
22340
|
const o = parseFloat(e);
|
|
@@ -22344,7 +22363,7 @@ function Gu(e, t, r) {
|
|
|
22344
22363
|
}
|
|
22345
22364
|
return o;
|
|
22346
22365
|
}
|
|
22347
|
-
function
|
|
22366
|
+
function wd(e, t, r) {
|
|
22348
22367
|
var o;
|
|
22349
22368
|
const a = Re(e), n = (o = a == null ? void 0 : a[t]) == null ? void 0 : o[r];
|
|
22350
22369
|
(n == null ? void 0 : n.f) != null && String(n.f).trim() !== "" && Qc(e), e.luckysheetCellUpdate = [t, r];
|
|
@@ -22393,7 +22412,7 @@ function ka(e) {
|
|
|
22393
22412
|
...n != null && typeof n == "object" ? { ct: n } : {}
|
|
22394
22413
|
} : null;
|
|
22395
22414
|
}
|
|
22396
|
-
function
|
|
22415
|
+
function vd(e) {
|
|
22397
22416
|
var i;
|
|
22398
22417
|
const t = Le(e, e.currentSheetId);
|
|
22399
22418
|
if (t == null) return;
|
|
@@ -22422,7 +22441,7 @@ function wd(e) {
|
|
|
22422
22441
|
}
|
|
22423
22442
|
}), (i = e == null ? void 0 : e.hooks) != null && i.updateCellYdoc && r.size > 0 && e.hooks.updateCellYdoc(Array.from(r.values()));
|
|
22424
22443
|
}
|
|
22425
|
-
function
|
|
22444
|
+
function _d(e) {
|
|
22426
22445
|
var l, c;
|
|
22427
22446
|
const t = Le(e, e.currentSheetId);
|
|
22428
22447
|
if (t == null) return;
|
|
@@ -22451,7 +22470,7 @@ function vd(e) {
|
|
|
22451
22470
|
}
|
|
22452
22471
|
}), (c = e == null ? void 0 : e.hooks) != null && c.updateCellYdoc && r.size > 0 && e.hooks.updateCellYdoc(Array.from(r.values()));
|
|
22453
22472
|
}
|
|
22454
|
-
function
|
|
22473
|
+
function Td(e) {
|
|
22455
22474
|
var l;
|
|
22456
22475
|
const t = Le(e, e.currentSheetId);
|
|
22457
22476
|
if (t == null) return;
|
|
@@ -22498,7 +22517,7 @@ class ju {
|
|
|
22498
22517
|
}
|
|
22499
22518
|
}
|
|
22500
22519
|
}
|
|
22501
|
-
function
|
|
22520
|
+
function $d(e, t, r, a, n) {
|
|
22502
22521
|
var Q, Y, J, H, X;
|
|
22503
22522
|
const o = Re(e);
|
|
22504
22523
|
if (!o) return;
|
|
@@ -22547,7 +22566,7 @@ function Xu(e) {
|
|
|
22547
22566
|
});
|
|
22548
22567
|
});
|
|
22549
22568
|
}
|
|
22550
|
-
const
|
|
22569
|
+
const Cd = {
|
|
22551
22570
|
isPasteAction: !1,
|
|
22552
22571
|
isPasteValuesOnly: !1
|
|
22553
22572
|
}, Zu = 14e5;
|
|
@@ -22616,7 +22635,7 @@ function Oo(e, t) {
|
|
|
22616
22635
|
e.primaryCellActive = { r: o, c: i };
|
|
22617
22636
|
}
|
|
22618
22637
|
}
|
|
22619
|
-
function
|
|
22638
|
+
function Nd(e, t = !0) {
|
|
22620
22639
|
const r = e.luckysheet_select_save;
|
|
22621
22640
|
if (!(r != null && r.length)) return !1;
|
|
22622
22641
|
const a = r[r.length - 1], n = a.row[0], o = a.row[1], i = a.column[0], l = a.column[1];
|
|
@@ -22628,10 +22647,10 @@ function Cd(e, t = !0) {
|
|
|
22628
22647
|
let g, b;
|
|
22629
22648
|
return t ? d < s ? (g = d + 1, b = p) : p < f ? (g = c, b = p + 1) : (g = c, b = u) : d > c ? (g = d - 1, b = p) : p > u ? (g = s, b = p - 1) : (g = s, b = f), a.row_focus = g, a.column_focus = b, Jt(e, r), !0;
|
|
22630
22649
|
}
|
|
22631
|
-
function
|
|
22650
|
+
function xd(e, t, r) {
|
|
22632
22651
|
e.primaryCellActive = { r: t, c: r };
|
|
22633
22652
|
}
|
|
22634
|
-
function
|
|
22653
|
+
function Ad(e, t, r) {
|
|
22635
22654
|
const a = e.luckysheet_select_save, n = a == null ? void 0 : a[a.length - 1];
|
|
22636
22655
|
if (!(n != null && n.row) || n.row.length < 2 || !n.column || n.column.length < 2) {
|
|
22637
22656
|
e.luckysheet_select_save = [
|
|
@@ -22654,7 +22673,7 @@ function xd(e, t, r) {
|
|
|
22654
22673
|
}
|
|
22655
22674
|
], Jt(e, e.luckysheet_select_save));
|
|
22656
22675
|
}
|
|
22657
|
-
function
|
|
22676
|
+
function Sd(e) {
|
|
22658
22677
|
var t, r, a, n;
|
|
22659
22678
|
return (r = (t = e == null ? void 0 : e[0]) == null ? void 0 : t[0]) != null && r.mc && !h.isNil((a = e[0][0].mc) == null ? void 0 : a.rs) && !h.isNil((n = e[0][0].mc) == null ? void 0 : n.cs) ? [
|
|
22660
22679
|
{
|
|
@@ -22681,13 +22700,13 @@ function Jt(e, t) {
|
|
|
22681
22700
|
}
|
|
22682
22701
|
return Oo(e, t), t;
|
|
22683
22702
|
}
|
|
22684
|
-
function
|
|
22703
|
+
function kd(e, t, r) {
|
|
22685
22704
|
const a = e || {};
|
|
22686
22705
|
for (let n = t; n <= r; n += 1)
|
|
22687
22706
|
n in a || (a[n] = 0);
|
|
22688
22707
|
return a;
|
|
22689
22708
|
}
|
|
22690
|
-
function
|
|
22709
|
+
function Ed(e) {
|
|
22691
22710
|
const t = Object.keys(e).map(Number);
|
|
22692
22711
|
t.sort((n, o) => n - o);
|
|
22693
22712
|
let r, a = [];
|
|
@@ -22707,7 +22726,7 @@ function Lo(e) {
|
|
|
22707
22726
|
const t = h.cloneDeep(e);
|
|
22708
22727
|
return delete t.cellrange, JSON.stringify(t);
|
|
22709
22728
|
}
|
|
22710
|
-
function
|
|
22729
|
+
function qd(e, t) {
|
|
22711
22730
|
var F, te;
|
|
22712
22731
|
const r = e.config;
|
|
22713
22732
|
if (r.merge == null && (r.merge = {}), !t) return;
|
|
@@ -22876,7 +22895,7 @@ function Ed(e, t) {
|
|
|
22876
22895
|
}
|
|
22877
22896
|
Xu(e);
|
|
22878
22897
|
}
|
|
22879
|
-
function
|
|
22898
|
+
function Md(e, t) {
|
|
22880
22899
|
e == null && (e = t.luckysheet_selection_range), e = JSON.parse(JSON.stringify(e));
|
|
22881
22900
|
}
|
|
22882
22901
|
function St(e, t, r, a) {
|
|
@@ -22987,7 +23006,7 @@ function zt(e, t, r, a) {
|
|
|
22987
23006
|
l = o;
|
|
22988
23007
|
return [i, l];
|
|
22989
23008
|
}
|
|
22990
|
-
function
|
|
23009
|
+
function Rd(e, t, r, a) {
|
|
22991
23010
|
var y;
|
|
22992
23011
|
const n = Re(e);
|
|
22993
23012
|
if (!n) return;
|
|
@@ -23065,7 +23084,7 @@ function Md(e, t, r, a) {
|
|
|
23065
23084
|
}, Un(e, s, d);
|
|
23066
23085
|
}
|
|
23067
23086
|
}
|
|
23068
|
-
function
|
|
23087
|
+
function Id(e, t, r, a) {
|
|
23069
23088
|
let n, o, i, l;
|
|
23070
23089
|
const c = Re(e);
|
|
23071
23090
|
if (!h.isNil(c) && !h.isNil(e.luckysheet_select_save)) {
|
|
@@ -23442,7 +23461,7 @@ function ef(e, t, r, a) {
|
|
|
23442
23461
|
}
|
|
23443
23462
|
return `<table data-type="fortune-copy-action-table">${g}${p}</table>`;
|
|
23444
23463
|
}
|
|
23445
|
-
function
|
|
23464
|
+
function Dd(e) {
|
|
23446
23465
|
var y, g, b, w;
|
|
23447
23466
|
const t = Re(e);
|
|
23448
23467
|
e.lastInternalCopyHtmlMetadataStripped = !1, e.luckysheet_selection_range = [];
|
|
@@ -23525,7 +23544,7 @@ function Id(e) {
|
|
|
23525
23544
|
let p = !1;
|
|
23526
23545
|
f && u && f.length > Zu && (p = !0, f = f.replace(/\sdata-fortune-cell="[^"]*"/g, "")), f && (e.iscopyself = !0, e.lastInternalCopyHtmlMetadataStripped = p, ju.writeHtml(f));
|
|
23527
23546
|
}
|
|
23528
|
-
function
|
|
23547
|
+
function Od(e) {
|
|
23529
23548
|
var a, n, o, i, l, c, s, u;
|
|
23530
23549
|
if (nn(e) === !1 || e.isFlvReadOnly)
|
|
23531
23550
|
return "allowEdit";
|
|
@@ -23578,7 +23597,7 @@ function Dd(e) {
|
|
|
23578
23597
|
}
|
|
23579
23598
|
return "success";
|
|
23580
23599
|
}
|
|
23581
|
-
function
|
|
23600
|
+
function Ld(e) {
|
|
23582
23601
|
var a;
|
|
23583
23602
|
if (nn(e) === !1)
|
|
23584
23603
|
return "allowEdit";
|
|
@@ -23616,7 +23635,7 @@ function Od(e) {
|
|
|
23616
23635
|
}
|
|
23617
23636
|
return "success";
|
|
23618
23637
|
}
|
|
23619
|
-
function
|
|
23638
|
+
function Fd(e) {
|
|
23620
23639
|
var a, n, o;
|
|
23621
23640
|
if (nn(e) === !1)
|
|
23622
23641
|
return "allowEdit";
|
|
@@ -23723,7 +23742,7 @@ function Ld(e) {
|
|
|
23723
23742
|
}
|
|
23724
23743
|
return "success";
|
|
23725
23744
|
}
|
|
23726
|
-
function
|
|
23745
|
+
function Bd(e) {
|
|
23727
23746
|
var a, n, o;
|
|
23728
23747
|
if (nn(e) === !1)
|
|
23729
23748
|
return "allowEdit";
|
|
@@ -23830,7 +23849,7 @@ function Fd(e) {
|
|
|
23830
23849
|
}
|
|
23831
23850
|
return "success";
|
|
23832
23851
|
}
|
|
23833
|
-
function
|
|
23852
|
+
function Pd(e, t) {
|
|
23834
23853
|
var n;
|
|
23835
23854
|
if (nn(e) === !1)
|
|
23836
23855
|
return "allowEdit";
|
|
@@ -23868,7 +23887,7 @@ function Bd(e, t) {
|
|
|
23868
23887
|
}
|
|
23869
23888
|
return "success";
|
|
23870
23889
|
}
|
|
23871
|
-
function
|
|
23890
|
+
function Hd(e) {
|
|
23872
23891
|
var a;
|
|
23873
23892
|
if (nn(e) === !1)
|
|
23874
23893
|
return "allowEdit";
|
|
@@ -23911,7 +23930,7 @@ function Pd(e) {
|
|
|
23911
23930
|
}
|
|
23912
23931
|
return "success";
|
|
23913
23932
|
}
|
|
23914
|
-
function
|
|
23933
|
+
function zd(e) {
|
|
23915
23934
|
var a;
|
|
23916
23935
|
if (nn(e) === !1)
|
|
23917
23936
|
return "allowEdit";
|
|
@@ -23953,10 +23972,10 @@ function Hd(e) {
|
|
|
23953
23972
|
}
|
|
23954
23973
|
return "success";
|
|
23955
23974
|
}
|
|
23956
|
-
function
|
|
23975
|
+
function Ud(e, t) {
|
|
23957
23976
|
return !1;
|
|
23958
23977
|
}
|
|
23959
|
-
function
|
|
23978
|
+
function Wd(e) {
|
|
23960
23979
|
const t = Re(e);
|
|
23961
23980
|
t && (e.luckysheet_select_status = !1, e.luckysheet_select_save = [
|
|
23962
23981
|
{
|
|
@@ -23969,7 +23988,7 @@ function Ud(e) {
|
|
|
23969
23988
|
}
|
|
23970
23989
|
], Jt(e, e.luckysheet_select_save));
|
|
23971
23990
|
}
|
|
23972
|
-
function
|
|
23991
|
+
function Vd(e, t, r, a) {
|
|
23973
23992
|
var c;
|
|
23974
23993
|
if (!a) return {};
|
|
23975
23994
|
const n = {}, { scrollTop: o } = e, i = (c = a.horizontal) == null ? void 0 : c.freezenhorizontaldata;
|
|
@@ -23980,7 +23999,7 @@ function Wd(e, t, r, a) {
|
|
|
23980
23999
|
}
|
|
23981
24000
|
return l || (n.display = "none"), n;
|
|
23982
24001
|
}
|
|
23983
|
-
function
|
|
24002
|
+
function Gd(e, t, r, a) {
|
|
23984
24003
|
var c;
|
|
23985
24004
|
if (!a) return {};
|
|
23986
24005
|
const n = {}, { scrollLeft: o } = e, i = (c = a.vertical) == null ? void 0 : c.freezenverticaldata;
|
|
@@ -23991,7 +24010,7 @@ function Vd(e, t, r, a) {
|
|
|
23991
24010
|
}
|
|
23992
24011
|
return l || (n.display = "none"), n;
|
|
23993
24012
|
}
|
|
23994
|
-
function
|
|
24013
|
+
function Yd(e) {
|
|
23995
24014
|
var c, s, u, f, m, d, p, y, g, b, w, T, $, _, x, N, O, E;
|
|
23996
24015
|
const t = e.luckysheet_select_save;
|
|
23997
24016
|
let r = 0, a = 0, n = 0, o = -1 / 0, i = 1 / 0;
|
|
@@ -24010,7 +24029,7 @@ function Gd(e) {
|
|
|
24010
24029
|
const l = String(n / r);
|
|
24011
24030
|
return { numberC: r, count: a, sum: n, max: o, min: i, average: l };
|
|
24012
24031
|
}
|
|
24013
|
-
function
|
|
24032
|
+
function jd(e) {
|
|
24014
24033
|
return {
|
|
24015
24034
|
luckysheetfile: [],
|
|
24016
24035
|
defaultcolumnNum: 60,
|
|
@@ -24323,7 +24342,7 @@ function tf(e, t, r) {
|
|
|
24323
24342
|
}
|
|
24324
24343
|
e.ch_width += a;
|
|
24325
24344
|
}
|
|
24326
|
-
function
|
|
24345
|
+
function Xd(e, t) {
|
|
24327
24346
|
if ((e == null ? void 0 : e.length) > 0) {
|
|
24328
24347
|
let r = !1;
|
|
24329
24348
|
const a = [];
|
|
@@ -24332,7 +24351,7 @@ function jd(e, t) {
|
|
|
24332
24351
|
}), r || (e[0].status = 1);
|
|
24333
24352
|
}
|
|
24334
24353
|
}
|
|
24335
|
-
function
|
|
24354
|
+
function Zd(e) {
|
|
24336
24355
|
const t = e.luckysheetfile.filter(
|
|
24337
24356
|
(r) => h.isUndefined(r.hide) || r.hide !== 1
|
|
24338
24357
|
);
|
|
@@ -24343,11 +24362,11 @@ function Xd(e) {
|
|
|
24343
24362
|
break;
|
|
24344
24363
|
}
|
|
24345
24364
|
}
|
|
24346
|
-
function
|
|
24365
|
+
function Kd(e, t) {
|
|
24347
24366
|
const r = t.length, a = r === 0 ? 0 : t[0].length;
|
|
24348
24367
|
tf(e, r, a), Jt(e, e.luckysheet_select_save);
|
|
24349
24368
|
}
|
|
24350
|
-
function
|
|
24369
|
+
function Qd(e, t, r) {
|
|
24351
24370
|
e.luckysheetTableContentHW = [
|
|
24352
24371
|
r.clientWidth,
|
|
24353
24372
|
r.clientHeight
|
|
@@ -26118,7 +26137,7 @@ function kl(e, t) {
|
|
|
26118
26137
|
C.length > 0 && (e.formulaCache.execFunctionExist = C, Vn(e, null, null, null, null, Re(e)), e.formulaCache.execFunctionExist = void 0);
|
|
26119
26138
|
}
|
|
26120
26139
|
}
|
|
26121
|
-
function
|
|
26140
|
+
function Jd(e, t) {
|
|
26122
26141
|
if (!e.luckysheet_select_save || e.luckysheet_select_save.length > 1)
|
|
26123
26142
|
return "noMulti";
|
|
26124
26143
|
const r = Le(e, e.currentSheetId);
|
|
@@ -26140,7 +26159,7 @@ function Qd(e, t) {
|
|
|
26140
26159
|
}
|
|
26141
26160
|
return e.luckysheetfile[r].config = e.config, "";
|
|
26142
26161
|
}
|
|
26143
|
-
function
|
|
26162
|
+
function em(e, t) {
|
|
26144
26163
|
if (!e.luckysheet_select_save || e.luckysheet_select_save.length > 1)
|
|
26145
26164
|
return "noMulti";
|
|
26146
26165
|
const r = Le(e, e.currentSheetId);
|
|
@@ -26158,7 +26177,7 @@ function Jd(e, t) {
|
|
|
26158
26177
|
}
|
|
26159
26178
|
return e.luckysheetfile[r].config = e.config, "";
|
|
26160
26179
|
}
|
|
26161
|
-
function
|
|
26180
|
+
function tm(e) {
|
|
26162
26181
|
var t, r, a, n;
|
|
26163
26182
|
if (!e.luckysheet_select_save || !e.config.colhidden && !e.config.rowhidden)
|
|
26164
26183
|
return !1;
|
|
@@ -26174,7 +26193,7 @@ function em(e) {
|
|
|
26174
26193
|
}
|
|
26175
26194
|
return !1;
|
|
26176
26195
|
}
|
|
26177
|
-
function
|
|
26196
|
+
function nm(e, t) {
|
|
26178
26197
|
let r = 1;
|
|
26179
26198
|
if (!e.luckysheet_select_save) return 0;
|
|
26180
26199
|
const a = e.luckysheet_select_save[0], n = e.config.rowhidden ?? {}, o = e.config.colhidden ?? {};
|
|
@@ -26219,7 +26238,7 @@ function tm(e, t) {
|
|
|
26219
26238
|
}
|
|
26220
26239
|
return r;
|
|
26221
26240
|
}
|
|
26222
|
-
function
|
|
26241
|
+
function rm(e, t, r) {
|
|
26223
26242
|
let a = e.length;
|
|
26224
26243
|
const n = Rt(r).pivotTable, { title: o } = n;
|
|
26225
26244
|
for (let i = 0; i < e.length; i += 1)
|
|
@@ -26276,7 +26295,7 @@ function xr(e, t) {
|
|
|
26276
26295
|
const r = Le(e, t);
|
|
26277
26296
|
return h.isNil(r) ? null : e.luckysheetfile[r];
|
|
26278
26297
|
}
|
|
26279
|
-
function
|
|
26298
|
+
function am(e) {
|
|
26280
26299
|
const t = /* @__PURE__ */ new Date(), r = t.getFullYear();
|
|
26281
26300
|
let a = t.getMonth(), n = t.getDate(), o = t.getHours(), i = t.getMinutes(), l = t.getSeconds();
|
|
26282
26301
|
a += 1, a < 10 && (a = `0${a}`), n < 10 && (n = `0${n}`), o < 10 && (o = `0${o}`), i < 10 && (i = `0${i}`), l < 10 && (l = `0${l}`);
|
|
@@ -26289,10 +26308,10 @@ function Bo(e, t) {
|
|
|
26289
26308
|
return typeof n < "u" ? n : r;
|
|
26290
26309
|
});
|
|
26291
26310
|
}
|
|
26292
|
-
function
|
|
26311
|
+
function im(e) {
|
|
26293
26312
|
return e.replace("~*", "\\*").replace("~?", "\\?").replace(".", "\\.").replace("*", ".*").replace("?", ".");
|
|
26294
26313
|
}
|
|
26295
|
-
function
|
|
26314
|
+
function om(e) {
|
|
26296
26315
|
let n = "";
|
|
26297
26316
|
for (; e >= 0; )
|
|
26298
26317
|
n = String.fromCharCode(e % 26 + 97) + n, e = Math.floor(e / 26) - 1;
|
|
@@ -26420,7 +26439,7 @@ const rn = new Error("invalid params"), Po = new Error("sheet not found"), mf =
|
|
|
26420
26439
|
n != null && t.push({ r, c: a, v: n });
|
|
26421
26440
|
}
|
|
26422
26441
|
return t;
|
|
26423
|
-
},
|
|
26442
|
+
}, lm = (e, t, r) => {
|
|
26424
26443
|
const a = h.maxBy(e, "r"), n = h.maxBy(e, "c");
|
|
26425
26444
|
let o = ((a == null ? void 0 : a.r) ?? 0) + 1, i = ((n == null ? void 0 : n.c) ?? 0) + 1;
|
|
26426
26445
|
if (t != null && r != null && t > 0 && r > 0 && (o = Math.max(o, t), i = Math.max(i, r)), o && i) {
|
|
@@ -26443,11 +26462,11 @@ function an(e, t = {}) {
|
|
|
26443
26462
|
throw Po;
|
|
26444
26463
|
return a;
|
|
26445
26464
|
}
|
|
26446
|
-
function
|
|
26465
|
+
function sm(e, t = {}) {
|
|
26447
26466
|
const r = an(e, t);
|
|
26448
26467
|
return { ...r, celldata: mf(r.data) };
|
|
26449
26468
|
}
|
|
26450
|
-
function
|
|
26469
|
+
function cm(e, t, r, a = {}) {
|
|
26451
26470
|
const n = an(e, a), i = {
|
|
26452
26471
|
row: "rangeRow",
|
|
26453
26472
|
column: "rangeColumn",
|
|
@@ -26462,7 +26481,7 @@ function sm(e, t, r, a = {}) {
|
|
|
26462
26481
|
}
|
|
26463
26482
|
};
|
|
26464
26483
|
}
|
|
26465
|
-
function
|
|
26484
|
+
function um(e, t, r, a, n, o = {}) {
|
|
26466
26485
|
if (!["row", "column"].includes(t) || !h.isNumber(r) || !h.isNumber(a) || !["lefttop", "rightbottom"].includes(n))
|
|
26467
26486
|
throw rn;
|
|
26468
26487
|
const i = an(e, o);
|
|
@@ -26478,13 +26497,13 @@ function cm(e, t, r, a, n, o = {}) {
|
|
|
26478
26497
|
console.error(l);
|
|
26479
26498
|
}
|
|
26480
26499
|
}
|
|
26481
|
-
function
|
|
26500
|
+
function fm(e, t, r, a, n = {}) {
|
|
26482
26501
|
if (!["row", "column"].includes(t) || !h.isNumber(r) || !h.isNumber(a))
|
|
26483
26502
|
throw rn;
|
|
26484
26503
|
const o = an(e, n);
|
|
26485
26504
|
kl(e, { type: t, start: r, end: a, id: o.id });
|
|
26486
26505
|
}
|
|
26487
|
-
function
|
|
26506
|
+
function dm(e, t, r) {
|
|
26488
26507
|
if (!["row", "column"].includes(r))
|
|
26489
26508
|
throw rn;
|
|
26490
26509
|
if (!e || !e.config) return;
|
|
@@ -26503,7 +26522,7 @@ function fm(e, t, r) {
|
|
|
26503
26522
|
}
|
|
26504
26523
|
e.luckysheetfile[a].config = e.config;
|
|
26505
26524
|
}
|
|
26506
|
-
function
|
|
26525
|
+
function mm(e, t, r) {
|
|
26507
26526
|
if (!["row", "column"].includes(r))
|
|
26508
26527
|
throw rn;
|
|
26509
26528
|
if (!e || !e.config) return;
|
|
@@ -26530,7 +26549,7 @@ function hf(e, t, r = {}, a = !1) {
|
|
|
26530
26549
|
Number(l) >= 0 && Number(i) >= 0 && (o.rowlen[Number(l)] = Number(i), a && h.isUndefined(o.customHeight) ? o.customHeight = { [l]: 1 } : a && (o.customHeight[l] = 1));
|
|
26531
26550
|
}), n.config = o, e.currentSheetId === n.id && (e.config = o);
|
|
26532
26551
|
}
|
|
26533
|
-
function
|
|
26552
|
+
function hm(e, t, r = {}, a = !1) {
|
|
26534
26553
|
if (!h.isPlainObject(t))
|
|
26535
26554
|
throw rn;
|
|
26536
26555
|
const n = an(e, r), o = n.config || {};
|
|
@@ -26549,7 +26568,7 @@ function pf(e, t, r = {}) {
|
|
|
26549
26568
|
}
|
|
26550
26569
|
}), i;
|
|
26551
26570
|
}
|
|
26552
|
-
function
|
|
26571
|
+
function pm(e, t, r = {}) {
|
|
26553
26572
|
if (!h.isArray(t) || t.length === 0)
|
|
26554
26573
|
throw rn;
|
|
26555
26574
|
const o = (an(e, r).config || {}).columnlen || {}, i = {};
|
|
@@ -26840,7 +26859,7 @@ const Rl = `$#,##0.${"0".repeat(2)}`, bf = ({
|
|
|
26840
26859
|
formulaResponseUiSync: bf
|
|
26841
26860
|
}, { callSignature: l } = e;
|
|
26842
26861
|
await t(i)(l);
|
|
26843
|
-
},
|
|
26862
|
+
}, gm = async ({
|
|
26844
26863
|
functionCallString: e,
|
|
26845
26864
|
sheetEditorRef: t,
|
|
26846
26865
|
dataBlockRow: r,
|
|
@@ -26971,36 +26990,36 @@ function $f(e) {
|
|
|
26971
26990
|
return c;
|
|
26972
26991
|
}
|
|
26973
26992
|
export {
|
|
26974
|
-
|
|
26993
|
+
md as $,
|
|
26975
26994
|
Fs as A,
|
|
26976
26995
|
Yt as B,
|
|
26977
26996
|
Vt as C,
|
|
26978
26997
|
Vn as D,
|
|
26979
|
-
|
|
26980
|
-
|
|
26981
|
-
|
|
26998
|
+
Md as E,
|
|
26999
|
+
Rf as F,
|
|
27000
|
+
Mf as G,
|
|
26982
27001
|
Us as H,
|
|
26983
27002
|
tn as I,
|
|
26984
|
-
|
|
26985
|
-
|
|
26986
|
-
|
|
26987
|
-
|
|
27003
|
+
fd as J,
|
|
27004
|
+
Of as K,
|
|
27005
|
+
Pf as L,
|
|
27006
|
+
Vf as M,
|
|
26988
27007
|
va as N,
|
|
26989
27008
|
Xe as O,
|
|
26990
27009
|
pa as P,
|
|
26991
27010
|
wr as Q,
|
|
26992
27011
|
Et as R,
|
|
26993
|
-
|
|
27012
|
+
Bf as S,
|
|
26994
27013
|
Ks as T,
|
|
26995
|
-
|
|
27014
|
+
Uf as U,
|
|
26996
27015
|
_l as V,
|
|
26997
27016
|
fr as W,
|
|
26998
27017
|
Je as X,
|
|
26999
27018
|
rc as Y,
|
|
27000
|
-
|
|
27019
|
+
yd as Z,
|
|
27001
27020
|
cl as _,
|
|
27002
27021
|
Le as a,
|
|
27003
|
-
|
|
27022
|
+
Pd as a$,
|
|
27004
27023
|
pc as a0,
|
|
27005
27024
|
Rr as a1,
|
|
27006
27025
|
Io as a2,
|
|
@@ -27008,42 +27027,42 @@ export {
|
|
|
27008
27027
|
_a as a4,
|
|
27009
27028
|
_r as a5,
|
|
27010
27029
|
Na as a6,
|
|
27011
|
-
|
|
27030
|
+
Yf as a7,
|
|
27012
27031
|
Xs as a8,
|
|
27013
27032
|
un as a9,
|
|
27014
27033
|
Gu as aA,
|
|
27015
27034
|
Mn as aB,
|
|
27016
|
-
|
|
27035
|
+
Kd as aC,
|
|
27017
27036
|
Ke as aD,
|
|
27018
27037
|
an as aE,
|
|
27019
27038
|
ea as aF,
|
|
27020
27039
|
Po as aG,
|
|
27021
27040
|
ta as aH,
|
|
27022
27041
|
qt as aI,
|
|
27023
|
-
|
|
27042
|
+
pd as aJ,
|
|
27024
27043
|
rn as aK,
|
|
27025
27044
|
ef as aL,
|
|
27026
|
-
|
|
27045
|
+
lm as aM,
|
|
27027
27046
|
Kt as aN,
|
|
27028
|
-
|
|
27029
|
-
|
|
27047
|
+
fm as aO,
|
|
27048
|
+
cm as aP,
|
|
27030
27049
|
pf as aQ,
|
|
27031
|
-
|
|
27032
|
-
|
|
27033
|
-
|
|
27034
|
-
|
|
27050
|
+
sm as aR,
|
|
27051
|
+
dm as aS,
|
|
27052
|
+
um as aT,
|
|
27053
|
+
$d as aU,
|
|
27035
27054
|
ia as aV,
|
|
27036
|
-
|
|
27055
|
+
hm as aW,
|
|
27037
27056
|
hf as aX,
|
|
27038
|
-
|
|
27039
|
-
|
|
27040
|
-
|
|
27057
|
+
mm as aY,
|
|
27058
|
+
Ud as aZ,
|
|
27059
|
+
Dd as a_,
|
|
27041
27060
|
Ze as aa,
|
|
27042
27061
|
pl as ab,
|
|
27043
|
-
|
|
27062
|
+
hd as ac,
|
|
27044
27063
|
nf as ad,
|
|
27045
27064
|
Nu as ae,
|
|
27046
|
-
|
|
27065
|
+
pm as af,
|
|
27047
27066
|
gl as ag,
|
|
27048
27067
|
Xt as ah,
|
|
27049
27068
|
$o as ai,
|
|
@@ -27054,11 +27073,11 @@ export {
|
|
|
27054
27073
|
It as an,
|
|
27055
27074
|
xu as ao,
|
|
27056
27075
|
bl as ap,
|
|
27057
|
-
|
|
27076
|
+
Wf as aq,
|
|
27058
27077
|
zn as ar,
|
|
27059
27078
|
Un as as,
|
|
27060
|
-
|
|
27061
|
-
|
|
27079
|
+
om as at,
|
|
27080
|
+
im as au,
|
|
27062
27081
|
jn as av,
|
|
27063
27082
|
Nr as aw,
|
|
27064
27083
|
lf as ax,
|
|
@@ -27066,124 +27085,125 @@ export {
|
|
|
27066
27085
|
al as az,
|
|
27067
27086
|
bc as b,
|
|
27068
27087
|
Nl as b$,
|
|
27069
|
-
|
|
27070
|
-
|
|
27071
|
-
|
|
27072
|
-
|
|
27073
|
-
|
|
27074
|
-
|
|
27075
|
-
|
|
27088
|
+
Hd as b0,
|
|
27089
|
+
zd as b1,
|
|
27090
|
+
Fd as b2,
|
|
27091
|
+
Bd as b3,
|
|
27092
|
+
Qf as b4,
|
|
27093
|
+
Rd as b5,
|
|
27094
|
+
nm as b6,
|
|
27076
27095
|
Qc as b7,
|
|
27077
|
-
|
|
27096
|
+
Zf as b8,
|
|
27078
27097
|
eu as b9,
|
|
27079
|
-
|
|
27080
|
-
|
|
27081
|
-
|
|
27082
|
-
|
|
27098
|
+
qd as bA,
|
|
27099
|
+
td as bB,
|
|
27100
|
+
rd as bC,
|
|
27101
|
+
nd as bD,
|
|
27083
27102
|
Xu as bE,
|
|
27084
27103
|
ju as bF,
|
|
27085
27104
|
dr as bG,
|
|
27086
27105
|
Mc as bH,
|
|
27087
|
-
|
|
27088
|
-
|
|
27089
|
-
|
|
27090
|
-
|
|
27091
|
-
|
|
27092
|
-
|
|
27093
|
-
|
|
27106
|
+
Yd as bI,
|
|
27107
|
+
Td as bJ,
|
|
27108
|
+
_d as bK,
|
|
27109
|
+
vd as bL,
|
|
27110
|
+
ud as bM,
|
|
27111
|
+
jd as bN,
|
|
27112
|
+
Sd as bO,
|
|
27094
27113
|
kl as bP,
|
|
27095
27114
|
xt as bQ,
|
|
27096
|
-
|
|
27115
|
+
Xd as bR,
|
|
27097
27116
|
Wn as bS,
|
|
27098
27117
|
sf as bT,
|
|
27099
|
-
|
|
27100
|
-
|
|
27118
|
+
Gd as bU,
|
|
27119
|
+
Vd as bV,
|
|
27101
27120
|
na as bW,
|
|
27102
27121
|
Ko as bX,
|
|
27103
27122
|
Ss as bY,
|
|
27104
27123
|
Ms as bZ,
|
|
27105
27124
|
Au as b_,
|
|
27106
|
-
|
|
27107
|
-
|
|
27125
|
+
Od as ba,
|
|
27126
|
+
jf as bb,
|
|
27108
27127
|
tu as bc,
|
|
27109
|
-
|
|
27110
|
-
|
|
27111
|
-
|
|
27112
|
-
|
|
27113
|
-
|
|
27114
|
-
|
|
27115
|
-
|
|
27116
|
-
|
|
27128
|
+
qf as bd,
|
|
27129
|
+
Nd as be,
|
|
27130
|
+
Kf as bf,
|
|
27131
|
+
am as bg,
|
|
27132
|
+
Ld as bh,
|
|
27133
|
+
Wd as bi,
|
|
27134
|
+
Jf as bj,
|
|
27135
|
+
Id as bk,
|
|
27117
27136
|
vr as bl,
|
|
27118
27137
|
Ca as bm,
|
|
27119
|
-
|
|
27120
|
-
|
|
27121
|
-
|
|
27122
|
-
|
|
27123
|
-
|
|
27138
|
+
Gf as bn,
|
|
27139
|
+
Cd as bo,
|
|
27140
|
+
bd as bp,
|
|
27141
|
+
wd as bq,
|
|
27142
|
+
sd as br,
|
|
27124
27143
|
Yn as bs,
|
|
27125
27144
|
Tl as bt,
|
|
27126
27145
|
Hc as bu,
|
|
27127
27146
|
Vc as bv,
|
|
27128
|
-
|
|
27129
|
-
|
|
27147
|
+
ad as bw,
|
|
27148
|
+
id as bx,
|
|
27130
27149
|
Oo as by,
|
|
27131
|
-
|
|
27150
|
+
ed as bz,
|
|
27132
27151
|
Bl as c,
|
|
27133
27152
|
Mt as c0,
|
|
27134
|
-
|
|
27135
|
-
|
|
27153
|
+
Xf as c1,
|
|
27154
|
+
zf as c2,
|
|
27136
27155
|
$l as c3,
|
|
27137
|
-
|
|
27138
|
-
|
|
27156
|
+
Lf as c4,
|
|
27157
|
+
Df as c5,
|
|
27139
27158
|
aa as c6,
|
|
27140
27159
|
Wc as c7,
|
|
27141
|
-
|
|
27142
|
-
|
|
27143
|
-
|
|
27144
|
-
|
|
27145
|
-
|
|
27146
|
-
|
|
27147
|
-
|
|
27148
|
-
|
|
27149
|
-
|
|
27150
|
-
|
|
27151
|
-
|
|
27152
|
-
|
|
27160
|
+
Jd as c8,
|
|
27161
|
+
Zd as c9,
|
|
27162
|
+
Qd as cA,
|
|
27163
|
+
Sf as cB,
|
|
27164
|
+
yf as cC,
|
|
27165
|
+
Tf as cD,
|
|
27166
|
+
Dl as cE,
|
|
27167
|
+
$f as cF,
|
|
27168
|
+
gr as cG,
|
|
27169
|
+
la as cH,
|
|
27170
|
+
vf as cI,
|
|
27171
|
+
_f as cJ,
|
|
27172
|
+
Rl as cK,
|
|
27153
27173
|
of as ca,
|
|
27154
27174
|
mc as cb,
|
|
27155
|
-
|
|
27175
|
+
tm as cc,
|
|
27156
27176
|
dc as cd,
|
|
27157
27177
|
ha as ce,
|
|
27158
|
-
|
|
27178
|
+
gd as cf,
|
|
27159
27179
|
Nn as cg,
|
|
27160
|
-
|
|
27180
|
+
kf as ch,
|
|
27161
27181
|
As as ci,
|
|
27162
27182
|
yt as cj,
|
|
27163
|
-
|
|
27183
|
+
od as ck,
|
|
27164
27184
|
Gn as cl,
|
|
27165
27185
|
cu as cm,
|
|
27166
27186
|
Bo as cn,
|
|
27167
|
-
|
|
27168
|
-
|
|
27187
|
+
kd as co,
|
|
27188
|
+
Ed as cp,
|
|
27169
27189
|
Qu as cq,
|
|
27170
27190
|
Ku as cr,
|
|
27171
|
-
|
|
27172
|
-
|
|
27173
|
-
|
|
27174
|
-
|
|
27191
|
+
ld as cs,
|
|
27192
|
+
Ef as ct,
|
|
27193
|
+
cd as cu,
|
|
27194
|
+
xd as cv,
|
|
27175
27195
|
qs as cw,
|
|
27176
|
-
|
|
27177
|
-
|
|
27178
|
-
|
|
27196
|
+
em as cx,
|
|
27197
|
+
Ad as cy,
|
|
27198
|
+
dd as cz,
|
|
27179
27199
|
Tn as d,
|
|
27180
|
-
|
|
27200
|
+
gm as e,
|
|
27181
27201
|
bf as f,
|
|
27182
27202
|
Wo as g,
|
|
27183
27203
|
Re as h,
|
|
27184
27204
|
Lc as i,
|
|
27185
27205
|
mf as j,
|
|
27186
|
-
|
|
27206
|
+
rm as k,
|
|
27187
27207
|
Rt as l,
|
|
27188
27208
|
br as m,
|
|
27189
27209
|
Ds as n,
|
|
@@ -27196,7 +27216,7 @@ export {
|
|
|
27196
27216
|
Jt as u,
|
|
27197
27217
|
vt as v,
|
|
27198
27218
|
nn as w,
|
|
27199
|
-
|
|
27200
|
-
|
|
27201
|
-
|
|
27219
|
+
Ff as x,
|
|
27220
|
+
If as y,
|
|
27221
|
+
Hf as z
|
|
27202
27222
|
};
|