@sheetxl/sdk 0.7.21 → 0.7.22
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/browser/cjs/{CdLUUmZCUY5uWnq5.cjs → 4ehQu8sjj5Pnrysi.cjs} +1 -1
- package/browser/cjs/{Bm_Mc6TDFCZ1OJNj.cjs → 8P123x_psu0vZSU9.cjs} +1 -1
- package/browser/cjs/{BLBAZ-Bmj0EAhunn.cjs → B8W9RuhDKmuIzhpX.cjs} +1 -1
- package/browser/cjs/{DMfUZBX5dMS-QcFB.cjs → BF-zwvT-2M-AV0hY.cjs} +1 -1
- package/browser/cjs/{DUbyVNEdEpgkjI-U.cjs → BG81a_nQI23GJS2e.cjs} +1 -1
- package/browser/cjs/{BP8dBZEDNeacQUNp.cjs → BG_oucq-hFgpN3c_.cjs} +3 -3
- package/browser/cjs/{Btp8A0kzb6cHSEMD.cjs → BPqqnIrbiWknh9gL.cjs} +1 -1
- package/browser/cjs/{DK27kwlwz0N4_IpD.cjs → BWVgq2uGlV4ae5C1.cjs} +1 -1
- package/browser/cjs/{BvS2Hclafqxj6DCP.cjs → BjtI3uBzEXjY1mkq.cjs} +1 -1
- package/browser/cjs/{CnlnOI_NWWeETB4i.cjs → Bwdp2MZZ_KMUSHFP.cjs} +1 -1
- package/browser/cjs/{DzZ_6y4OF7HzFZLT.cjs → BwnUVVFNWZGHfNoa.cjs} +1 -1
- package/browser/cjs/{D0Qme7PcsKfdtShi.cjs → BzeCA_-fu9cCwq8D.cjs} +1 -1
- package/browser/cjs/{CphmaCdyCfgLRsS0.cjs → C9c-bLrS-ABA59Nt.cjs} +1 -1
- package/browser/cjs/{DUiZ8WcVcUyjfILT.cjs → CKxBDw1KEkPQauXM.cjs} +1 -1
- package/browser/cjs/CY9eCFSjX4vHL2wh.cjs +55 -0
- package/browser/cjs/{DTrbxLKRbIsj3mPI.cjs → Crp9TU9-MK3650CN.cjs} +1 -1
- package/browser/cjs/{CASsDxt2bA8JHiEW.cjs → DAsr1dw3BvkcVNSg.cjs} +1 -1
- package/browser/cjs/{Cegi9isUAUZKUYFl.cjs → DLiId6Hk_ia6LkL1.cjs} +1 -1
- package/browser/cjs/{B6GPcN051NmcYcIT.cjs → DWBmsvMLywwdyxBk.cjs} +2 -2
- package/browser/cjs/{B1wkCHMcDuFkMcC_.cjs → DXR0dXDjeEBxAu4n.cjs} +1 -1
- package/browser/cjs/{BhNultME1o9xbmcX.cjs → DaENj_w2AIRp0Mqp.cjs} +2 -2
- package/browser/cjs/{CNw4tHphpF3kplDH.cjs → DtIDwaFB44U_fs6n.cjs} +1 -1
- package/browser/cjs/{vQgVD2EniUvkeXnq.cjs → Prn8RKUoSRnLhv0l.cjs} +1 -1
- package/browser/cjs/{Bo1CE3hgxUD5DGqu.cjs → RCfQ4lI4PRIrMC8x.cjs} +1 -1
- package/browser/cjs/{DFQA35q7KQ-zS2eo.cjs → eNn-ZEASuspyp1hx.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{CO7SAK1ru6qnh7fr.cjs → kPuyJm8mZoWTYS_E.cjs} +1 -1
- package/browser/cjs/{D74bWkyzhU8E2TDh.cjs → rh6SPofhK2I4u0wE.cjs} +1 -1
- package/browser/esm/{B8depZMfw4f8vJ6H.mjs → B7pD0rGUnhHtNaJF.mjs} +1 -1
- package/browser/esm/{D6VvBNUOfq8QUBY5.mjs → BDSR4TWQKSu4MJs5.mjs} +1 -1
- package/browser/esm/{BgKy-xWSJeSV_EyO.mjs → BLLhl3k63e5tEJYP.mjs} +1 -1
- package/{node/esm/C4EnSMaP8fTEJmhu.mjs → browser/esm/BeNiW7K89qdTHcyZ.mjs} +1 -1
- package/browser/esm/{Cd2b3Z4DxOR0M3qa.mjs → C4B6ieQfBNQ8NWT8.mjs} +3 -3
- package/browser/esm/{DORXFXgRUsjkR1kA.mjs → C4mqQtlHSj_kEvZt.mjs} +1 -1
- package/browser/esm/{D0Mb17_7UFEFNmkU.mjs → C95Fv6Jcx41y7Ojk.mjs} +2 -2
- package/{node/esm/DE0iHIHhP7sczC_y.mjs → browser/esm/CQc0tnp5lxsTPGdY.mjs} +1 -1
- package/browser/esm/{DbK0GAKpj9hwwFwY.mjs → CRdl_Q0yPGAfPz6h.mjs} +1 -1
- package/browser/esm/{DTPLUnlOvF2feqR4.mjs → CVZfQjAdTLHiHG6R.mjs} +1 -1
- package/browser/esm/{Cg7YNnt2uhmFG_3d.mjs → CYEygIjH4EBxGCp5.mjs} +1 -1
- package/browser/esm/{C39Yfk__mPOF8auo.mjs → Ccad_NL38ZuzsOuN.mjs} +1 -1
- package/browser/esm/{oRsIla0R_H7slM9k.mjs → Ckwnr4G6FNOBxUKU.mjs} +1 -1
- package/browser/esm/{DrIkV6ixO7gbuv7Q.mjs → Cx9SZZloPWCEjdF7.mjs} +1 -1
- package/browser/esm/{BDSqdyFcw4FRrODg.mjs → DBrBKxntXAS4EBsJ.mjs} +5883 -5889
- package/{node/esm/DoMqoQP6F7OPue_g.mjs → browser/esm/DHzDNjbwGeV557ui.mjs} +1 -1
- package/browser/esm/{CWj2Ts01muSR6zp-.mjs → DNCwOd97er-oE4i-.mjs} +1 -1
- package/browser/esm/{Bi2_8iLEY_M-v_34.mjs → DSq_gbos0Y_f1e79.mjs} +1 -1
- package/browser/esm/{Bzs_r45vqhZAtTZK.mjs → DgV8M1pBIWVXUkDT.mjs} +1 -1
- package/browser/esm/{D_lQo-PErOoj-8tN.mjs → DhJTZCn3Uv0UfNlL.mjs} +1 -1
- package/browser/esm/{B9z2sURkI9ThbLxE.mjs → DtMc3NKUQdBlPqjH.mjs} +1 -1
- package/browser/esm/{mxYovIi79sCzcZtQ.mjs → DxDSAU2V0O76Q2g9.mjs} +1 -1
- package/browser/esm/{DflesN5VzS43jsHK.mjs → DzXpNzto_AaLbLeR.mjs} +2 -2
- package/browser/esm/{CkU9J_RtpNfpxh0y.mjs → E1JJ_668Lc6gmWHk.mjs} +1 -1
- package/browser/esm/{BLoU0uz84A8fWYom.mjs → JFehdQ_Sk02CZY_O.mjs} +1 -1
- package/{node/esm/DTzUiMAnLD_Zuf0f.mjs → browser/esm/eQPdjMXubhwL38RR.mjs} +1 -1
- package/browser/esm/{u5XTTNCFdsbCZ-ud.mjs → iaNS1GssHrDrrGa9.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/node/esm/{BE2XMKirjoBI9zkt.mjs → 5ncGZrnXLJWZdlAS.mjs} +1 -1
- package/node/esm/{CS080xy3HgmgAFgx.mjs → B3pPsPOxXfjIbpBc.mjs} +1 -1
- package/node/esm/{D6VvBNUOfq8QUBY5.mjs → BDSR4TWQKSu4MJs5.mjs} +1 -1
- package/node/esm/{BgKy-xWSJeSV_EyO.mjs → BLLhl3k63e5tEJYP.mjs} +1 -1
- package/node/esm/{D7cm1_99nK7c_-6L.mjs → BS2w8nLO6jwewlIh.mjs} +1 -1
- package/{browser/esm/C4EnSMaP8fTEJmhu.mjs → node/esm/BeNiW7K89qdTHcyZ.mjs} +1 -1
- package/node/esm/{DORXFXgRUsjkR1kA.mjs → C4mqQtlHSj_kEvZt.mjs} +1 -1
- package/node/esm/{BNoPG6CBaybfp_G7.mjs → C5z5W2VKCDZxZErS.mjs} +1 -1
- package/node/esm/{3vOMW8PI4UI73pTa.mjs → C8SJyJrK7wauvaYH.mjs} +1 -1
- package/{browser/esm/DE0iHIHhP7sczC_y.mjs → node/esm/CQc0tnp5lxsTPGdY.mjs} +1 -1
- package/node/esm/{DbK0GAKpj9hwwFwY.mjs → CRdl_Q0yPGAfPz6h.mjs} +1 -1
- package/node/esm/{Cg7YNnt2uhmFG_3d.mjs → CYEygIjH4EBxGCp5.mjs} +1 -1
- package/node/esm/{oRsIla0R_H7slM9k.mjs → Ckwnr4G6FNOBxUKU.mjs} +1 -1
- package/node/esm/{BL_7m0SH43tASZc8.mjs → D5GT8lL2mkHYYpEm.mjs} +1 -1
- package/node/esm/{DP7a0Jrz8vTZnv2W.mjs → D6vgNmNn2sa8Zo2E.mjs} +1 -1
- package/{browser/esm/DoMqoQP6F7OPue_g.mjs → node/esm/DHzDNjbwGeV557ui.mjs} +1 -1
- package/node/esm/{Bi2_8iLEY_M-v_34.mjs → DSq_gbos0Y_f1e79.mjs} +1 -1
- package/node/esm/{D_lQo-PErOoj-8tN.mjs → DhJTZCn3Uv0UfNlL.mjs} +1 -1
- package/node/esm/{sVuz1UjytOtK5gck.mjs → DlH4gSCmCWHrZ5KA.mjs} +2 -2
- package/node/esm/{B9z2sURkI9ThbLxE.mjs → DtMc3NKUQdBlPqjH.mjs} +1 -1
- package/node/esm/{DElHitSTYjDdkUx1.mjs → DtMeBzYnl2ofA3SU.mjs} +1 -1
- package/node/esm/{mxYovIi79sCzcZtQ.mjs → DxDSAU2V0O76Q2g9.mjs} +1 -1
- package/node/esm/{BLoU0uz84A8fWYom.mjs → JFehdQ_Sk02CZY_O.mjs} +1 -1
- package/{browser/esm/DTzUiMAnLD_Zuf0f.mjs → node/esm/eQPdjMXubhwL38RR.mjs} +1 -1
- package/node/esm/{u5XTTNCFdsbCZ-ud.mjs → iaNS1GssHrDrrGa9.mjs} +1 -1
- package/node/esm/index.mjs +827 -824
- package/package.json +4 -4
- package/types/index.d.ts +0 -1
- package/types/scripting.d.ts +0 -1
- package/browser/cjs/CI7HTC82ehwZZ7G9.cjs +0 -55
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.22
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -18,8 +18,8 @@ const N = (t2, e2) => {
|
|
|
18
18
|
e2.get(r2) !== t3 && n2.set(r2, t3);
|
|
19
19
|
}), n2;
|
|
20
20
|
};
|
|
21
|
-
let
|
|
22
|
-
class
|
|
21
|
+
let k = false;
|
|
22
|
+
class F {
|
|
23
23
|
constructor(t2) {
|
|
24
24
|
this._record = t2;
|
|
25
25
|
}
|
|
@@ -44,15 +44,15 @@ class k {
|
|
|
44
44
|
}
|
|
45
45
|
class O {
|
|
46
46
|
constructor(t2) {
|
|
47
|
-
this._listeners = /* @__PURE__ */ new Set(), this._listenersState = /* @__PURE__ */ new Map(), this._commits = /* @__PURE__ */ new Map(), this._locked = false, this._current = null, this._pending = null, this._isSync = t2?.sync ??
|
|
48
|
-
const e2 = { id: "0", description: "initial", meta: {}, author: this._author, timestamp: Date.now(), states: /* @__PURE__ */ new Map(), version: 0, previousId: null }, n2 = { record: e2, commit: new
|
|
47
|
+
this._listeners = /* @__PURE__ */ new Set(), this._listenersState = /* @__PURE__ */ new Map(), this._commits = /* @__PURE__ */ new Map(), this._locked = false, this._current = null, this._pending = null, this._isSync = t2?.sync ?? k, this._isTransient = t2?.transient ?? false, this._author = t2?.author;
|
|
48
|
+
const e2 = { id: "0", description: "initial", meta: {}, author: this._author, timestamp: Date.now(), states: /* @__PURE__ */ new Map(), version: 0, previousId: null }, n2 = { record: e2, commit: new F(e2) };
|
|
49
49
|
this._current = n2, this._cacheModel = null, this._cacheState = null, this._states = e2.states, this._transactionStack = [], this._transactionOpen = false;
|
|
50
50
|
const r2 = /* @__PURE__ */ new Map();
|
|
51
51
|
r2.set(e2.id, n2), this._commits = r2;
|
|
52
52
|
}
|
|
53
53
|
static {
|
|
54
54
|
this.setDefaultSync = (t2) => {
|
|
55
|
-
|
|
55
|
+
k = t2;
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
getLog(t2, e2 = 100) {
|
|
@@ -132,7 +132,7 @@ class O {
|
|
|
132
132
|
};
|
|
133
133
|
let l2;
|
|
134
134
|
if (0 === n2.length) {
|
|
135
|
-
const e3 = this._current.record, n3 = { states: /* @__PURE__ */ new Map(), id: o.uuidV4(), description: "string" == typeof t2 ? t2 : t2?.description ?? null, meta: {}, timestamp: Date.now(), author: null, version: e3.version + 1, previousId: e3.id, viewBefore: null, viewAfter: {}, operation: t2?.operation }, r3 = { record: n3, commit: new
|
|
135
|
+
const e3 = this._current.record, n3 = { states: /* @__PURE__ */ new Map(), id: o.uuidV4(), description: "string" == typeof t2 ? t2 : t2?.description ?? null, meta: {}, timestamp: Date.now(), author: null, version: e3.version + 1, previousId: e3.id, viewBefore: null, viewAfter: {}, operation: t2?.operation }, r3 = { record: n3, commit: new F(n3) };
|
|
136
136
|
this._pending = r3, this._notify("onCommitStart", r3.commit), l2 = new B(this, r3, e3?.states, t2, a2);
|
|
137
137
|
} else {
|
|
138
138
|
l2 = n2[n2.length - 1].beginTransaction(t2, a2);
|
|
@@ -377,18 +377,18 @@ class z extends s {
|
|
|
377
377
|
}
|
|
378
378
|
const P = () => {
|
|
379
379
|
try {
|
|
380
|
-
return "0.7.
|
|
380
|
+
return "0.7.22";
|
|
381
381
|
} catch (t2) {
|
|
382
382
|
return "";
|
|
383
383
|
}
|
|
384
|
-
},
|
|
384
|
+
}, H = Object.freeze(Object.defineProperty({ __proto__: null, getBuildDate: () => {
|
|
385
385
|
try {
|
|
386
|
-
return "
|
|
386
|
+
return "Sun Oct 19 2025";
|
|
387
387
|
} catch (t2) {
|
|
388
388
|
return "";
|
|
389
389
|
}
|
|
390
|
-
}, getBuildVersion: P }, Symbol.toStringTag, { value: "Module" })),
|
|
391
|
-
https://www.sheetxl.com ${P()}`,
|
|
390
|
+
}, getBuildVersion: P }, Symbol.toStringTag, { value: "Module" })), W = "\n███████╗██╗ ██╗███████╗███████╗████████╗ ██╗ ██╗██╗\n██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝ ╚██╗██╔╝██║\n███████╗███████║█████╗ █████╗ ██║ ╚███╔╝ ██║\n╚════██║██╔══██║██╔══╝ ██╔══╝ ██║ ██╔██╗ ██║\n███████║██║ ██║███████╗███████╗ ██║ ██╔╝ ██╗███████╗\n╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝", V = `
|
|
391
|
+
https://www.sheetxl.com ${P()}`, j = "#1976d2", $ = "#FFA726", G = Object.freeze(Object.defineProperty({ __proto__: null, generateNodeId: async () => {
|
|
392
392
|
if (!o.isNode()) return null;
|
|
393
393
|
const t2 = await import(
|
|
394
394
|
/* @vite-ignore */
|
|
@@ -412,10 +412,10 @@ const P = () => {
|
|
|
412
412
|
"chalk"
|
|
413
413
|
)).default;
|
|
414
414
|
t3.level = 2;
|
|
415
|
-
const e2 = t3.hex(
|
|
416
|
-
return console.log(e2(
|
|
415
|
+
const e2 = t3.hex(j), n2 = t3.hex($);
|
|
416
|
+
return console.log(e2(W) + n2(V));
|
|
417
417
|
} catch (t3) {
|
|
418
|
-
return console.log(
|
|
418
|
+
return console.log(W + "\n" + V + "\n");
|
|
419
419
|
}
|
|
420
420
|
}, printDetails: async (t2, e2 = false, n2 = false, r2 = false) => {
|
|
421
421
|
let o2;
|
|
@@ -425,7 +425,7 @@ const P = () => {
|
|
|
425
425
|
"chalk"
|
|
426
426
|
)).default;
|
|
427
427
|
s2.level = 2;
|
|
428
|
-
const i2 = s2.red, a2 = s2.hex(
|
|
428
|
+
const i2 = s2.red, a2 = s2.hex(j), l2 = s2.hex($), c2 = t2.isEval();
|
|
429
429
|
if (c2) o2 = "Evaluation Only", console.log(i2(o2)), o2 = "Please visit https://my.sheetxl.com to register.", console.log(a2(o2)), o2 = null;
|
|
430
430
|
else {
|
|
431
431
|
o2 = `Licensee: ${t2.getLicensee() ?? "Invalid License"}`;
|
|
@@ -471,173 +471,198 @@ Cpus: ${r3}`), console.log(a2(o2)), o2 = null;
|
|
|
471
471
|
return r2.join("");
|
|
472
472
|
})(t2, n2 - e2), J = (t2) => "object" == typeof window ? window.atob(t2) : Buffer.from(t2, "base64").toString("ascii");
|
|
473
473
|
function q(t2, e2, n2, r2, o2) {
|
|
474
|
-
return
|
|
474
|
+
return st(e2 - 882, r2);
|
|
475
475
|
}
|
|
476
476
|
function K(t2, e2, n2, r2, o2) {
|
|
477
|
-
return
|
|
478
|
-
}
|
|
479
|
-
function X(t2, e2, n2, r2, o2) {
|
|
480
|
-
return Y(o2 - -942, e2);
|
|
481
|
-
}
|
|
482
|
-
function Y(t2, e2) {
|
|
483
|
-
const n2 = dt();
|
|
484
|
-
return Y = function(e3, r2) {
|
|
485
|
-
let o2 = n2[e3 -= 390];
|
|
486
|
-
if (void 0 === Y.AJfvrL) {
|
|
487
|
-
const e4 = function(t3, e5) {
|
|
488
|
-
let n3, r3, o3 = [], s3 = 0, i3 = "";
|
|
489
|
-
for (t3 = (function(t4) {
|
|
490
|
-
let e6 = "", n4 = "";
|
|
491
|
-
for (let n5, r4, o4 = 0, s4 = 0; r4 = t4.charAt(s4++); ~r4 && (n5 = o4 % 4 ? 64 * n5 + r4 : r4, o4++ % 4) ? e6 += String.fromCharCode(255 & n5 >> (-2 * o4 & 6)) : 0) r4 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r4);
|
|
492
|
-
for (let t5 = 0, r4 = e6.length; t5 < r4; t5++) n4 += "%" + ("00" + e6.charCodeAt(t5).toString(16)).slice(-2);
|
|
493
|
-
return decodeURIComponent(n4);
|
|
494
|
-
})(t3), r3 = 0; r3 < 256; r3++) o3[r3] = r3;
|
|
495
|
-
for (r3 = 0; r3 < 256; r3++) s3 = (s3 + o3[r3] + e5.charCodeAt(r3 % e5.length)) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3;
|
|
496
|
-
r3 = 0, s3 = 0;
|
|
497
|
-
for (let e6 = 0; e6 < t3.length; e6++) r3 = (r3 + 1) % 256, s3 = (s3 + o3[r3]) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3, i3 += String.fromCharCode(t3.charCodeAt(e6) ^ o3[(o3[r3] + o3[s3]) % 256]);
|
|
498
|
-
return i3;
|
|
499
|
-
};
|
|
500
|
-
Y.FugEMR = e4, t2 = arguments, Y.AJfvrL = true;
|
|
501
|
-
}
|
|
502
|
-
const s2 = e3 + n2[0], i2 = t2[s2];
|
|
503
|
-
return i2 ? o2 = i2 : (void 0 === Y.CyVWpk && (Y.CyVWpk = true), o2 = Y.FugEMR(o2, r2), t2[s2] = o2), o2;
|
|
504
|
-
}, Y(t2, e2);
|
|
477
|
+
return st(e2 - 299, t2);
|
|
505
478
|
}
|
|
506
479
|
!(function() {
|
|
507
|
-
const t2 = "
|
|
508
|
-
function
|
|
509
|
-
return
|
|
480
|
+
const t2 = "SSfl", e2 = "UosF", n2 = 774, r2 = "EnBH", o2 = 829, s2 = "P!XI", i2 = 879, a2 = 577, l2 = "DwwS", c2 = "ps*x", h2 = "u965", d2 = 615, u2 = 770;
|
|
481
|
+
function g2(t3, e3, n3, r3, o3) {
|
|
482
|
+
return st(r3 - u2, e3);
|
|
510
483
|
}
|
|
511
|
-
function
|
|
512
|
-
return
|
|
484
|
+
function m2(t3, e3, n3, r3, o3) {
|
|
485
|
+
return st(e3 - 641, t3);
|
|
513
486
|
}
|
|
514
|
-
function
|
|
515
|
-
return
|
|
487
|
+
function f2(t3, e3, n3, r3, o3) {
|
|
488
|
+
return st(e3 - -715, r3);
|
|
516
489
|
}
|
|
517
|
-
function
|
|
518
|
-
return
|
|
490
|
+
function p2(t3, e3, n3, r3, o3) {
|
|
491
|
+
return st(o3 - d2, r3);
|
|
519
492
|
}
|
|
520
|
-
function
|
|
521
|
-
return
|
|
493
|
+
function _2(t3, e3, n3, r3, o3) {
|
|
494
|
+
return st(t3 - -110, r3);
|
|
522
495
|
}
|
|
496
|
+
const S2 = ht();
|
|
523
497
|
for (; ; ) try {
|
|
524
|
-
if (
|
|
525
|
-
|
|
498
|
+
if (422799 === -parseInt(m2(t2, 908)) / 1 * (parseInt(f2(0, -487, 0, "yTkX")) / 2) + -parseInt(f2(0, -453, 0, "D@ku")) / 3 * (-parseInt(m2(e2, n2)) / 4) + -parseInt(m2(r2, o2)) / 5 * (parseInt(_2(94, 0, 0, "DwwS")) / 6) + parseInt(m2(s2, i2)) / 7 + parseInt(f2(0, -a2, 0, l2)) / 8 * (-parseInt(f2(0, -586, 0, "wqa9")) / 9) + -parseInt(p2(0, 0, 0, c2, 922)) / 10 + -parseInt(g2(0, "JEJ5", 0, 946)) / 11 * (-parseInt(_2(142, 0, 0, h2)) / 12)) break;
|
|
499
|
+
S2.push(S2.shift());
|
|
526
500
|
} catch (t3) {
|
|
527
|
-
|
|
501
|
+
S2.push(S2.shift());
|
|
528
502
|
}
|
|
529
503
|
})();
|
|
530
|
-
const
|
|
531
|
-
|
|
532
|
-
|
|
504
|
+
const X = () => {
|
|
505
|
+
const t2 = "&C7^", e2 = "]#[p";
|
|
506
|
+
if (typeof window === n2("#Um(", 776)) return window[n2(t2, 793)][n2("1NDV", 845)];
|
|
507
|
+
function n2(t3, e3, n3, r2, o2) {
|
|
508
|
+
return st(e3 - 603, t3);
|
|
509
|
+
}
|
|
510
|
+
return o[n2(e2, 722)]();
|
|
511
|
+
}, Y = () => {
|
|
512
|
+
const t2 = "1NDV", e2 = 305, n2 = 863;
|
|
513
|
+
function r2(t3, n3, r3, o2, s2) {
|
|
514
|
+
return st(r3 - e2, t3);
|
|
515
|
+
}
|
|
516
|
+
return X()[r2("zHPK", 0, 564)](st(1040 - n2, t2)) || X() === r2("hWvx", 0, 441);
|
|
517
|
+
};
|
|
518
|
+
function Q(t2, e2, n2, r2, o2) {
|
|
519
|
+
return st(o2 - -829, e2);
|
|
520
|
+
}
|
|
521
|
+
function Z(t2, e2, n2, r2, o2) {
|
|
522
|
+
return st(e2 - 350, n2);
|
|
523
|
+
}
|
|
524
|
+
const tt = (t2, e2, n2, r2) => {
|
|
525
|
+
const o2 = 756, s2 = "(nX5", i2 = "PbeI", a2 = 652, l2 = 624;
|
|
526
|
+
function c2(t3, e3, n3, r3, o3) {
|
|
527
|
+
return st(o3 - l2, r3);
|
|
533
528
|
}
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
function s2(t3, e3, n3, r3, s3) {
|
|
546
|
-
return Y(n3 - o2, t3);
|
|
547
|
-
}
|
|
548
|
-
return { getLicensee: () => null, getExpiration: () => null, getDomains: () => [], getDeveloperCount: () => 0, getCpuCount: () => 0, getType: () => s2("wZ8T", 0, 1526), getExceptions: () => {
|
|
549
|
-
return [(e3 = 1027, n3 = r2, s2(n3, 0, e3 - -343) + t2 + "'")];
|
|
529
|
+
function h2(t3, e3, n3, r3, o3) {
|
|
530
|
+
return st(t3 - 960, e3);
|
|
531
|
+
}
|
|
532
|
+
function d2(t3, e3, n3, r3, o3) {
|
|
533
|
+
return st(r3 - a2, o3);
|
|
534
|
+
}
|
|
535
|
+
function u2(t3, e3, n3, r3, o3) {
|
|
536
|
+
return st(t3 - -34, r3);
|
|
537
|
+
}
|
|
538
|
+
return { getLicensee: () => t2[h2(1109, "YoGQ")], getExpiration: () => new Date(t2[h2(1169, "]#[p")]), getDomains: () => t2[c2(0, 0, 0, "rn4K", 853)] ?? [], getDeveloperCount: () => t2[d2(0, 0, 0, 838, "eckh")] ?? 1, getCpuCount: () => t2[d2(0, 0, 0, 893, "EGKx")] ?? 0, getType: () => {
|
|
539
|
+
return t2[e3 = "]#[p", n3 = -563, st(n3 - -708, e3)] ?? h2(1179, "3SR*");
|
|
550
540
|
var e3, n3;
|
|
551
|
-
},
|
|
552
|
-
return
|
|
553
|
-
var t3,
|
|
554
|
-
},
|
|
555
|
-
|
|
541
|
+
}, getExceptions: () => e2, hasExceptions() {
|
|
542
|
+
return !!e2 && e2[t3 = i2, n3 = 570, h2(n3 - -588, t3)] > 0;
|
|
543
|
+
var t3, n3;
|
|
544
|
+
}, isValidFor: (t3) => {
|
|
545
|
+
const n3 = 192;
|
|
546
|
+
if (e2?.[r3 = "PbeI", o3 = 356, u2(o3 - n3, 0, 0, r3)] > 0) return false;
|
|
547
|
+
var r3, o3;
|
|
548
|
+
return true;
|
|
549
|
+
}, isValid: () => true, isEval: () => false, getFeatures: () => Object[u2(278, 0, 0, "CD5q")](t2[h2(1205, "G(f&")] ?? {}), getKeyFrom: () => n2, getBuildVersion: H[c2(0, 0, 0, "CD5q", o2)], getBuildDate: H[u2(147, 0, 0, s2)] };
|
|
556
550
|
}, et = (t2) => {
|
|
557
|
-
const e2 =
|
|
558
|
-
|
|
559
|
-
|
|
551
|
+
const e2 = 309, n2 = 397, r2 = 418, s2 = 1011, i2 = 402, a2 = 444, l2 = 441, c2 = "ps*x", h2 = "4b8y", d2 = 102;
|
|
552
|
+
let u2 = o[g2(1011, 891, 988, 910, "m*^!")];
|
|
553
|
+
function g2(t3, e3, n3, r3, o2) {
|
|
554
|
+
return st(n3 - 867, o2);
|
|
560
555
|
}
|
|
561
|
-
function
|
|
562
|
-
return
|
|
556
|
+
function m2(t3, e3, n3, r3, o2) {
|
|
557
|
+
return st(r3 - -858, e3);
|
|
563
558
|
}
|
|
564
|
-
function
|
|
565
|
-
return
|
|
559
|
+
function f2(t3, e3, n3, r3, o2) {
|
|
560
|
+
return st(o2 - -642, n3);
|
|
566
561
|
}
|
|
567
|
-
|
|
568
|
-
|
|
562
|
+
if (Y() || o[_2(500, e2, "Lp#5", n2)]()) {
|
|
563
|
+
const t3 = H[_2(488, 373, "1v1Q", r2)](), e3 = new Date(t3), n3 = /* @__PURE__ */ new Date(), o2 = 864e5;
|
|
564
|
+
Math[g2(0, 0, s2, 0, "GY47")]((n3[_2(i2, a2, "q10S", l2)]() - e3[f2(0, 0, "G(f&", 0, -323)]()) / o2) >= 120 && (u2 = [_2(421, 278, c2, 365)]);
|
|
565
|
+
} else u2 = [];
|
|
566
|
+
function p2(t3, e3, n3, r3, o2) {
|
|
567
|
+
return st(n3 - d2, t3);
|
|
569
568
|
}
|
|
570
|
-
function
|
|
571
|
-
return
|
|
569
|
+
function _2(t3, e3, n3, r3, o2) {
|
|
570
|
+
return st(r3 - 215, n3);
|
|
572
571
|
}
|
|
573
|
-
|
|
574
|
-
if (Z() || o[l2("4Jti", e2)]()) {
|
|
575
|
-
const t3 = W[u2(n2, 0, 0, "UJ!Y")](), e3 = new Date(t3), o2 = /* @__PURE__ */ new Date(), i3 = 864e5;
|
|
576
|
-
Math[u2(r2, 0, 0, "xbw%")]((o2[d2(s2, 0, 598)]() - e3[c2("j6qd", 0, 0, -56)]()) / i3) >= 120 && (g2 = [c2("e(eo", 0, 0, -65)]);
|
|
577
|
-
} else g2 = [];
|
|
578
|
-
return { getLicensee: () => l2("mgC%", 689), getExpiration: () => null, getDomains: () => [Q()], getDeveloperCount: () => 1, getCpuCount: () => 0, getType: () => h2(0, "xbw%", 0, -319), isEval: () => true, getExceptions: () => g2, hasExceptions: () => g2[h2(0, "vMdK", 0, -292)] > 0, isValidFor: () => 0 === g2[c2("4Jti", 0, 0, -115)], isValid: () => false, getFeatures: () => Object[l2("VlqO", 722)]({}), getKeyFrom: () => t2, getBuildVersion: W[u2(i2, 0, 0, "2^w*")], getBuildDate: W[d2("]]sa", 0, a2)] };
|
|
572
|
+
return { getLicensee: () => f2(0, 0, "m*^!", 0, -449), getExpiration: () => null, getDomains: () => [X()], getDeveloperCount: () => 1, getCpuCount: () => 0, getType: () => p2("@7gi", 0, 287), isEval: () => true, getExceptions: () => u2, hasExceptions: () => u2[p2("#Um(", 0, 378)] > 0, isValidFor: () => 0 === u2[p2("GY47", 0, 224)], isValid: () => false, getFeatures: () => Object[m2(0, "m*^!", 0, -740)]({}), getKeyFrom: () => t2, getBuildVersion: H[m2(0, h2, 0, -641)], getBuildDate: H[f2(0, 0, "f9o0", 0, -331)] };
|
|
579
573
|
}, nt = () => {
|
|
580
|
-
const t2 =
|
|
581
|
-
if (rt[
|
|
582
|
-
var
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
var d2, u2;
|
|
586
|
-
function g2(t3, e3, n3, r3, o3) {
|
|
587
|
-
return Y(o3 - s2, r3);
|
|
574
|
+
const t2 = "rn4K";
|
|
575
|
+
if (rt[e2 = 432, n2 = "&C7^", st(e2 - 230, n2)] && rt[r2(-674, -581, -643, -488, "rn4K")]) return false;
|
|
576
|
+
var e2, n2;
|
|
577
|
+
function r2(t3, e3, n3, r3, o3) {
|
|
578
|
+
return st(e3 - -803, o3);
|
|
588
579
|
}
|
|
589
|
-
|
|
580
|
+
const o2 = rt[r2(0, -560, 0, 0, "]#[p")];
|
|
581
|
+
var s2, i2;
|
|
582
|
+
return !!(o2[r2(0, -606, 0, 0, "BnOa")]() || o2[r2(0, -620, 0, 0, t2)]() || o2[s2 = -666, i2 = "&C7^", st(s2 - -922, i2)]()?.pb);
|
|
590
583
|
}, rt = { promise: null, printNeeded: false, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
584
|
+
function ot(t2, e2, n2, r2, o2) {
|
|
585
|
+
return st(r2 - 210, e2);
|
|
586
|
+
}
|
|
587
|
+
function st(t2, e2) {
|
|
588
|
+
const n2 = ht();
|
|
589
|
+
return st = function(e3, r2) {
|
|
590
|
+
let o2 = n2[e3 -= 117];
|
|
591
|
+
if (void 0 === st.HRzRBa) {
|
|
592
|
+
const e4 = function(t3, e5) {
|
|
593
|
+
let n3, r3, o3 = [], s3 = 0, i3 = "";
|
|
594
|
+
for (t3 = (function(t4) {
|
|
595
|
+
let e6 = "", n4 = "";
|
|
596
|
+
for (let n5, r4, o4 = 0, s4 = 0; r4 = t4.charAt(s4++); ~r4 && (n5 = o4 % 4 ? 64 * n5 + r4 : r4, o4++ % 4) ? e6 += String.fromCharCode(255 & n5 >> (-2 * o4 & 6)) : 0) r4 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r4);
|
|
597
|
+
for (let t5 = 0, r4 = e6.length; t5 < r4; t5++) n4 += "%" + ("00" + e6.charCodeAt(t5).toString(16)).slice(-2);
|
|
598
|
+
return decodeURIComponent(n4);
|
|
599
|
+
})(t3), r3 = 0; r3 < 256; r3++) o3[r3] = r3;
|
|
600
|
+
for (r3 = 0; r3 < 256; r3++) s3 = (s3 + o3[r3] + e5.charCodeAt(r3 % e5.length)) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3;
|
|
601
|
+
r3 = 0, s3 = 0;
|
|
602
|
+
for (let e6 = 0; e6 < t3.length; e6++) r3 = (r3 + 1) % 256, s3 = (s3 + o3[r3]) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3, i3 += String.fromCharCode(t3.charCodeAt(e6) ^ o3[(o3[r3] + o3[s3]) % 256]);
|
|
603
|
+
return i3;
|
|
604
|
+
};
|
|
605
|
+
st.bQbJuZ = e4, t2 = arguments, st.HRzRBa = true;
|
|
606
|
+
}
|
|
607
|
+
const s2 = e3 + n2[0], i2 = t2[s2];
|
|
608
|
+
return i2 ? o2 = i2 : (void 0 === st.wHrFKZ && (st.wHrFKZ = true), o2 = st.bQbJuZ(o2, r2), t2[s2] = o2), o2;
|
|
609
|
+
}, st(t2, e2);
|
|
595
610
|
}
|
|
596
|
-
|
|
611
|
+
let it = false, at = false;
|
|
612
|
+
const lt = Q(0, "&S2e", 0, 0, -649)[Q(0, "rn4K", 0, 0, -593)]("")[ot(0, "XwHR", 0, 476)]((t2, e2) => e2 + t2, "");
|
|
613
|
+
class ct {
|
|
597
614
|
constructor() {
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
if (
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
At2 = t3;
|
|
635
|
-
});
|
|
636
|
-
let Mt2, Tt2 = null;
|
|
637
|
-
function Nt2(t3, e3, n3, r3, o2) {
|
|
638
|
-
return at(0, n3, t3 - -112);
|
|
615
|
+
function t2(t3, e2, n2, r2, o2) {
|
|
616
|
+
return ot(0, r2, 0, e2 - -753);
|
|
617
|
+
}
|
|
618
|
+
this[t2(0, -369, 0, "zHPK")][t2(0, -234, 0, "G(f&")] = null;
|
|
619
|
+
}
|
|
620
|
+
async [K("u965", 554)](t2, e2 = false) {
|
|
621
|
+
const n2 = 904, r2 = 930, s2 = "i07%", i2 = 1146, a2 = 937, l2 = 958, c2 = "yTkX", h2 = 1224, d2 = 984, u2 = 1046, g2 = 1044, m2 = 283, f2 = "mWS6", p2 = "#Um(", _2 = 869, S2 = "YoGQ", w2 = 305, y2 = 379, E2 = 424, C2 = 313, b2 = 396, v2 = 304, x2 = 222, I2 = "BnOa", R2 = "u965", A2 = 822, M2 = 1008, T2 = 1089, N2 = 998, k2 = 942, F2 = 892, O2 = "E^H#", D2 = 890, B2 = 838, L2 = 855, z2 = 934, P2 = "&C7^", H2 = "BnOa", W2 = "FJKy", V2 = 1007, j2 = 967, $2 = "wqa9", U2 = 1183, J2 = 1090, q2 = 1166, K2 = "zHPK", X2 = "PbeI", Y2 = 1120, Z2 = 1099, tt2 = 683, et2 = 1515;
|
|
622
|
+
if (!t2 || t2[at2(437, 427, 374, "m*^!")](lt2(939, n2, r2, s2)) || t2[ht2("BnOa", i2, 1058, 1111)](lt2(a2, 933, l2, "ps*x")) || t2[ht2(c2, h2, 1106, 1157)](st2("1v1Q", d2, u2, g2)) || t2[nt2(-137, -154, "0mxY", -82)](at2(249, m2, 259, f2))) return it = true, o[nt2(8, -94, p2, -80)]() && await G[lt2(_2, 958, 891, S2)](t2, e2), await this[at2(w2, y2, E2, "G(f&")](true);
|
|
623
|
+
if (it = false, !e2 && rt[at2(368, C2, b2, "YoGQ")]) {
|
|
624
|
+
const t3 = await this[at2(x2, v2, 350, I2)]();
|
|
625
|
+
if (t3[lt2(844, 875, 923, R2)]() && !t3[lt2(A2, 869, 898, "yTkX")]()) return t3;
|
|
626
|
+
}
|
|
627
|
+
function nt2(t3, e3, n3, r3, o2) {
|
|
628
|
+
return Q(0, n3, 0, 0, t3 - 569);
|
|
629
|
+
}
|
|
630
|
+
function st2(t3, e3, n3, r3, o2) {
|
|
631
|
+
return Q(0, t3, 0, 0, n3 - 1577);
|
|
632
|
+
}
|
|
633
|
+
function at2(t3, e3, n3, r3, o2) {
|
|
634
|
+
return ot(0, r3, 0, e3 - -64);
|
|
635
|
+
}
|
|
636
|
+
function lt2(t3, e3, n3, r3, o2) {
|
|
637
|
+
return Q(0, r3, 0, 0, n3 - et2);
|
|
638
|
+
}
|
|
639
|
+
rt[ht2("PbeI", 1077, M2, T2)] = t2, rt[lt2(N2, k2, 970, "ghdM")] = lt2(853, F2, 839, O2), rt[lt2(D2, 909, B2, "i07%")] = null, rt[lt2(L2, 857, z2, P2)] = null;
|
|
640
|
+
const ct2 = await this[nt2(-102, 0, H2)]();
|
|
641
|
+
if (!ct2[ht2(W2, V2, j2, 1024)]()) throw await this[ht2($2, U2, J2, q2)](true), new Error(st2(K2, 0, 947));
|
|
642
|
+
function ht2(t3, e3, n3, r3, o2) {
|
|
643
|
+
return ot(0, t3, 0, r3 - tt2);
|
|
644
|
+
}
|
|
645
|
+
return await G[ht2(X2, Y2, 1063, Z2)](t2, e2), ct2;
|
|
646
|
+
}
|
|
647
|
+
async [ot(0, "CD5q", 0, 485)](t2 = false) {
|
|
648
|
+
const e2 = "@7gi", n2 = "#Um(", r2 = "0mxY", s2 = 22, i2 = "&S2e", a2 = 0, l2 = "EGKx", c2 = 491, h2 = "PbeI", d2 = "DwwS", u2 = "eckh", g2 = "UosF", m2 = "rn4K", f2 = "BnOa", p2 = ")MR]", _2 = 450, S2 = 482, w2 = 473, y2 = "UosF", E2 = 580, C2 = 816, b2 = 747, v2 = 156, x2 = 122, I2 = "i07%", R2 = 282, A2 = "CD5q", M2 = "f9o0", T2 = "E^H#", N2 = 3, k2 = "4b8y", F2 = "D@ku", O2 = "@7gi", D2 = 511, B2 = "ak3b";
|
|
649
|
+
function L2(t3, e3, n3, r3, o2) {
|
|
650
|
+
return K(t3, e3 - -1019);
|
|
639
651
|
}
|
|
640
|
-
|
|
652
|
+
function z2(t3, e3, n3, r3, o2) {
|
|
653
|
+
return Z(0, r3 - -31, e3);
|
|
654
|
+
}
|
|
655
|
+
function P2(t3, e3, n3, r3, o2) {
|
|
656
|
+
return Z(0, t3 - -948, o2);
|
|
657
|
+
}
|
|
658
|
+
if (t2 && (rt[L2("wqa9", -551)] && !rt[at2(-674, e2, -619, -657)] && this[L2(n2, -426)](), rt[at2(-719, ")MR]", -725, -819)] = true), rt[ct2(-78, -152, r2, -4)]) return rt[ct2(-12, s2, "&S2e", -111)];
|
|
659
|
+
if (!this[P2(-441, 0, 0, 0, "rn4K")][z2(0, "FJKy", 0, 610)] && (this[P2(-303, 0, 0, 0, i2)][ct2(a2, 51, l2, -4)] = new Error("FV")), rt[P2(-292, 0, 0, 0, "&S2e")]) return rt[z2(0, l2, 0, c2)];
|
|
660
|
+
let W2 = null;
|
|
661
|
+
rt[at2(-740, h2, -732, -735)] = new Promise((t3) => {
|
|
662
|
+
W2 = t3;
|
|
663
|
+
});
|
|
664
|
+
let V2, j2 = null;
|
|
665
|
+
const $2 = async (t3, e3) => {
|
|
641
666
|
try {
|
|
642
667
|
const i3 = ((t4) => {
|
|
643
668
|
let e4 = t4;
|
|
@@ -651,215 +676,193 @@ class lt {
|
|
|
651
676
|
} catch (t5) {
|
|
652
677
|
throw new Error("Invalid license key.");
|
|
653
678
|
}
|
|
654
|
-
})(e3), a3 = ((t4
|
|
655
|
-
const
|
|
656
|
-
function
|
|
657
|
-
return
|
|
679
|
+
})(e3), a3 = await (async (t4) => {
|
|
680
|
+
const e4 = "EnBH", n4 = "&S2e", r4 = 911, s4 = "P!XI", i4 = "zHPK", a4 = 1248, l4 = "UosF", c3 = 233, h3 = 907, d3 = "mWS6", u3 = "1v1Q", g3 = "wqa9", m3 = 1024, f3 = 98, p3 = "mWS6", _3 = 942, S3 = 423, w3 = 777, y3 = t4[R3(139, e4)];
|
|
681
|
+
function E3(t5, e5, n5, r5, o2) {
|
|
682
|
+
return st(r5 - w3, o2);
|
|
658
683
|
}
|
|
659
|
-
|
|
660
|
-
|
|
684
|
+
const C3 = t4[R3(235, n4)] ? new Date(t4[E3(0, 0, 0, r4, s4)]) : null;
|
|
685
|
+
t4[I3(1196, i4, 1117, a4, 1174)];
|
|
686
|
+
const b3 = [];
|
|
687
|
+
function v3(t5, e5, n5, r5, o2) {
|
|
688
|
+
return st(n5 - -592, e5);
|
|
661
689
|
}
|
|
662
|
-
function
|
|
663
|
-
return
|
|
690
|
+
function x3(t5, e5, n5, r5, o2) {
|
|
691
|
+
return st(e5 - S3, t5);
|
|
664
692
|
}
|
|
665
|
-
function
|
|
666
|
-
return
|
|
667
|
-
}
|
|
668
|
-
function u3(t5, e5, n5, r5, o3) {
|
|
669
|
-
return Y(t5 - -772, o3);
|
|
670
|
-
}
|
|
671
|
-
return { getLicensee: () => t4[l3(0, 1317, "!i@9")], getExpiration: () => new Date(t4[d3(0, 469, "[ctp")]), getDomains: () => t4[l3(0, 1160, "wZ8T")] ?? [], getDeveloperCount: () => t4[h3(0, "UJ!Y", 0, 1081)] ?? 1, getCpuCount: () => t4[d3(0, 466, "61W4")] ?? 0, getType: () => t4[u3(-233, 0, 0, 0, "VlqO")] ?? u3(-292, 0, 0, 0, "4Jti"), getExceptions: () => e4, hasExceptions() {
|
|
672
|
-
return !!e4 && e4[t5 = "4Jti", n5 = s4, c3(0, t5, 0, 0, n5 - -625)] > 0;
|
|
673
|
-
var t5, n5;
|
|
674
|
-
}, isValidFor: (t5) => {
|
|
675
|
-
return !(e4?.[n5 = "J5ac", r5 = 246, h3(0, n5, 0, r5 - -902)] > 0);
|
|
676
|
-
var n5, r5;
|
|
677
|
-
}, isValid: () => true, isEval: () => false, getFeatures: () => Object[c3(0, "aQfJ", 0, 0, 1043)](t4[d3(0, 615, "7Ob]")] ?? {}), getKeyFrom: () => n4, getBuildVersion: W[h3(0, r4, 0, 1116)], getBuildDate: W[u3(-329, 0, 0, 0, o2)] };
|
|
678
|
-
})(i3, await (async (t4) => {
|
|
679
|
-
const e4 = "qO*m", n4 = 523, r4 = "J5ac", s4 = ")OFU", i4 = 474, a4 = 569, l3 = "]Gej", c3 = 545, h3 = "]Gej", d3 = 534, u3 = 556, g3 = "I^^f", m3 = "wZ8T", f3 = "ZmEm", p3 = "03Y[", _3 = 821, S3 = 852, w3 = "]oaW", y3 = 614, E3 = 996, C3 = 420, b3 = "yczW", v3 = 538, x3 = 1, I3 = 426;
|
|
680
|
-
function R3(t5, e5, n5, r5, o2) {
|
|
681
|
-
return Y(e5 - -547, t5);
|
|
693
|
+
function I3(t5, e5, n5, r5, o2) {
|
|
694
|
+
return st(o2 - _3, e5);
|
|
682
695
|
}
|
|
683
|
-
|
|
684
|
-
function M3(t5, e5, n5, r5, o2) {
|
|
685
|
-
return Y(o2 - I3, t5);
|
|
686
|
-
}
|
|
687
|
-
const T3 = t4[R3("j6qd", -94)] ? new Date(t4[R3(e4, -59)]) : null;
|
|
688
|
-
function N3(t5, e5, n5, r5, o2) {
|
|
689
|
-
return Y(t5 - x3, e5);
|
|
690
|
-
}
|
|
691
|
-
t4[N3(n4, r4)];
|
|
692
|
-
const F3 = [];
|
|
693
|
-
function k3(t5, e5, n5, r5, o2) {
|
|
694
|
-
return Y(r5 - 79, t5);
|
|
695
|
-
}
|
|
696
|
-
if (T3 ? isNaN(T3) ? F3[N3(c3, h3)](N3(395, ")OFU")) : T3 < /* @__PURE__ */ new Date() && F3[k3(r4, 575, 527, d3)](N3(u3, g3) + T3[M3(m3, 0, 0, 0, 976)]()) : F3[k3(s4, i4, a4, 531)](k3(l3, 382, 471, 475)), o[N3(534, f3)]()) ;
|
|
696
|
+
if (C3 ? isNaN(C3) ? b3[E3(0, 0, 0, h3, "1NDV")](R3(155, "zHPK")) : C3 < /* @__PURE__ */ new Date() && b3[I3(0, d3, 0, 0, 1108)](R3(102, "0mxY") + C3[v3(0, u3, -341)]()) : b3[x3(l4, 725)](R3(c3, "f9o0")), o[x3(e4, 684)]()) ;
|
|
697
697
|
else {
|
|
698
|
-
if (
|
|
699
|
-
if (
|
|
698
|
+
if (Y()) return b3;
|
|
699
|
+
if (y3 && 0 !== y3[I3(0, "EnBH", 0, 0, 1136)]) {
|
|
700
700
|
let t5 = false;
|
|
701
|
-
const
|
|
702
|
-
for (let
|
|
703
|
-
!t5 &&
|
|
704
|
-
} else
|
|
701
|
+
const n5 = X();
|
|
702
|
+
for (let r5 = 0; !t5 && r5 < y3[E3(0, 0, 0, 964, g3)]; r5++) t5 = n5[E3(0, 0, 0, m3, e4)](y3[r5]);
|
|
703
|
+
!t5 && b3[R3(f3, p3)](v3(0, "4Z&Y", -299));
|
|
704
|
+
} else b3[R3(159, "ak3b")](x3("(Cwj", 549));
|
|
705
|
+
}
|
|
706
|
+
function R3(t5, e5, n5, r5, o2) {
|
|
707
|
+
return st(t5 - -68, e5);
|
|
705
708
|
}
|
|
706
|
-
return
|
|
707
|
-
})(i3), t3);
|
|
708
|
-
return
|
|
709
|
+
return b3;
|
|
710
|
+
})(i3), l3 = tt(i3, a3, t3);
|
|
711
|
+
return l3[n3 = -487, r3 = B2, s3 = -468, ct2(s3 - -408, n3 - 338, r3, s3 - 340)]() && (V2 = l3), l3;
|
|
709
712
|
} catch (e4) {
|
|
710
|
-
|
|
713
|
+
V2 = ((t4) => {
|
|
714
|
+
const e5 = "]#[p", n4 = "EnBH", r4 = 217, o2 = 944;
|
|
715
|
+
function s4(t5, e6, n5, r5, s5) {
|
|
716
|
+
return st(r5 - o2, s5);
|
|
717
|
+
}
|
|
718
|
+
return { getLicensee: () => null, getExpiration: () => null, getDomains: () => [], getDeveloperCount: () => 0, getCpuCount: () => 0, getType: () => s4(0, 0, 0, 1061, ")MR]"), getExceptions: () => {
|
|
719
|
+
return [(e6 = n4, r5 = 635, s4(0, 0, 0, r5 - -623, e6) + t4 + "'")];
|
|
720
|
+
var e6, r5;
|
|
721
|
+
}, hasExceptions: () => true, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, getFeatures: () => Object[s4(0, 0, 0, 1109, "D@ku")]({}), getKeyFrom: () => t4, getBuildVersion: H[s4(0, 0, 0, 1227, "#Um(")], getBuildDate: H[i3 = e5, a3 = 451, st(a3 - r4, i3)] };
|
|
722
|
+
var i3, a3;
|
|
723
|
+
})(t3);
|
|
711
724
|
}
|
|
712
725
|
var n3, r3, s3;
|
|
713
726
|
};
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
let Dt2 = false;
|
|
722
|
-
function Bt2(t3, e3, n3, r3, o2) {
|
|
723
|
-
return X(0, e3, 0, 0, t3 - 457);
|
|
724
|
-
}
|
|
725
|
-
if (ot && (Dt2 = true, Tt2 = et(Ot2(R2, 0, 502, v2))), !Tt2) {
|
|
726
|
-
if (o[Bt2(A2, "UJ!Y")]()) {
|
|
727
|
-
if (!Tt2) {
|
|
728
|
-
const t3 = process[kt2(0, M2, 0, T2)], e3 = t3[Lt2(-6, N2, 77)] || t3[Ot2(F2, 0, k2, O2)] || t3[Bt2(D2, B2)] || t3[Lt2(58, "d*BM", 65)];
|
|
729
|
-
e3 && (Tt2 = await Ft2(Bt2(x2, "*7ZF"), e3));
|
|
727
|
+
rt[z2(0, d2, 0, 569)] && (j2 = await $2(rt[L2(u2, -504)], rt[z2(0, "PbeI", 0, 515)]));
|
|
728
|
+
let q2 = false;
|
|
729
|
+
if (it && (q2 = true, j2 = et(P2(-463, 0, 0, 0, g2))), !j2) {
|
|
730
|
+
if (o[ct2(-21, -27, "rn4K", -33)]()) {
|
|
731
|
+
if (!j2) {
|
|
732
|
+
const t3 = process[P2(-276, 0, 0, 0, "#Um(")], e3 = t3[at2(-804, u2, -712, -710)] || t3[z2(0, m2, 0, 460)] || t3[L2("@7gi", -421)] || t3[P2(-452, 0, 0, 0, f2)];
|
|
733
|
+
e3 && (j2 = await $2(ct2(-190, -145, "JEJ5", -108), e3));
|
|
730
734
|
}
|
|
731
|
-
if (!
|
|
732
|
-
const t3 = await G[
|
|
733
|
-
t3 && (
|
|
735
|
+
if (!j2) {
|
|
736
|
+
const t3 = await G[L2(p2, -403)]();
|
|
737
|
+
t3 && (j2 = await $2(at2(-789, "JEJ5", -741, -749), t3));
|
|
734
738
|
}
|
|
735
|
-
!
|
|
739
|
+
!j2 && (q2 = true);
|
|
736
740
|
} else {
|
|
737
|
-
if (!
|
|
741
|
+
if (!j2) {
|
|
738
742
|
let t3 = false;
|
|
739
743
|
try {
|
|
740
|
-
const e3 = await fetch("./" +
|
|
744
|
+
const e3 = await fetch("./" + lt);
|
|
741
745
|
let n3 = null;
|
|
742
|
-
if (200 === e3[
|
|
743
|
-
const r3 = (await e3[
|
|
746
|
+
if (200 === e3[z2(0, "yTkX", 0, S2)]) {
|
|
747
|
+
const r3 = (await e3[P2(-w2, 0, 0, 0, "eckh")]())[L2(y2, -428)]("\n"), o2 = r3[L2("ps*x", -E2)];
|
|
744
748
|
for (let e4 = 0; !n3 && e4 < o2; e4++) {
|
|
745
|
-
const o3 = r3[e4][
|
|
746
|
-
0 !== o3[
|
|
749
|
+
const o3 = r3[e4][at2(-736, "SSfl", -846, -C2, -b2)]();
|
|
750
|
+
0 !== o3[P2(-_2, 0, 0, 0, "eckh")] && (o3[ct2(-v2, -x2, "wqa9", -84, -252)](P2(-290, 0, 0, 0, I2)) ? t3 = true : n3 = o3);
|
|
747
751
|
}
|
|
748
752
|
}
|
|
749
753
|
if (t3 && n3) {
|
|
750
|
-
const t4 =
|
|
751
|
-
|
|
754
|
+
const t4 = P2(-R2, 0, 0, 0, A2) + lt + "')";
|
|
755
|
+
j2 = await $2(t4, n3);
|
|
752
756
|
}
|
|
753
757
|
} catch (t4) {
|
|
754
758
|
}
|
|
755
759
|
}
|
|
756
|
-
!
|
|
760
|
+
!j2 && Y() && (q2 = true);
|
|
757
761
|
}
|
|
758
762
|
}
|
|
759
|
-
function
|
|
760
|
-
return
|
|
763
|
+
function at2(t3, e3, n3, r3, o2) {
|
|
764
|
+
return ot(0, e3, 0, r3 - -1180);
|
|
765
|
+
}
|
|
766
|
+
function ct2(t3, e3, n3, r3, o2) {
|
|
767
|
+
return Q(0, n3, 0, 0, t3 - D2);
|
|
761
768
|
}
|
|
762
|
-
return !
|
|
769
|
+
return !j2 && q2 && (j2 = et(ct2(-147, 0, "u965"))), !j2 && V2 && (j2 = V2), !j2 && (j2 = { getLicensee: () => null, getExpiration: () => null, getDomains: () => [], getDeveloperCount: () => 0, getCpuCount: () => 0, getType: () => null, isEval: () => false, getExceptions: () => [P2(-283, 0, 0, 0, "#Um(")], hasExceptions: () => true, isValidFor: (t3) => false, isValid: () => false, getFeatures: () => Object[at2(0, "BnOa", 0, -691)]({}), getKeyFrom: () => z2(0, "D@ku", 0, 494), getBuildVersion: H[z2(0, M2, 0, 544)], getBuildDate: H[L2(T2, -416)] }), rt[ct2(N2, 0, k2)] = j2, rt[L2("EnBH", -430)] = t2 && nt(), W2(j2), rt[ct2(-87, 0, F2)] && this[at2(0, O2, 0, -757)](), rt[at2(0, "i07%", 0, -818)];
|
|
763
770
|
}
|
|
764
|
-
async [
|
|
765
|
-
const e2 =
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
function _2(t3, e3, n3, r3, o3) {
|
|
769
|
-
return K(0, o3, n3 - f2);
|
|
771
|
+
async [Z(0, 621, "yTkX")](t2) {
|
|
772
|
+
const e2 = 222, n2 = ")MR]", r2 = 983, o2 = "m*^!", s2 = "ElB4", i2 = "GY47", a2 = 576, l2 = "DwwS", c2 = 206, h2 = 1057, d2 = 127, u2 = 444;
|
|
773
|
+
function g2(t3, e3, n3, r3, o3) {
|
|
774
|
+
return Z(0, t3 - -374, e3);
|
|
770
775
|
}
|
|
771
|
-
|
|
772
|
-
|
|
776
|
+
rt[p2(-422, -349, -425, "q10S")] = true;
|
|
777
|
+
const m2 = await this[g2(154, "rn4K")]();
|
|
778
|
+
function f2(t3, e3, n3, r3, o3) {
|
|
779
|
+
return Z(0, r3 - u2, o3);
|
|
773
780
|
}
|
|
774
|
-
function
|
|
775
|
-
return
|
|
781
|
+
function p2(t3, e3, n3, r3, o3) {
|
|
782
|
+
return K(r3, t3 - -916);
|
|
776
783
|
}
|
|
777
|
-
return await G[
|
|
778
|
-
var
|
|
784
|
+
return await G[g2(e2, n2)](t2), !t2 && !rt[f2(0, 0, 0, r2, o2)] && (m2[p2(-425, 0, 0, s2)]() || m2[_2 = i2, S2 = a2, ot(0, _2, 0, S2 - d2)]()) && await this[g2(276, l2)](t2, m2[g2(c2, "f9o0")]()), Promise[f2(0, 0, 0, h2, "4b8y")]();
|
|
785
|
+
var _2, S2;
|
|
779
786
|
}
|
|
780
|
-
async [
|
|
781
|
-
const r2 =
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
787
|
+
async [Z(0, 620, "E^H#")](t2 = false, e2 = false, n2 = false) {
|
|
788
|
+
const r2 = "u965", o2 = 683, s2 = "XwHR", i2 = 130, a2 = 174, l2 = 678, c2 = 177, h2 = "eckh", d2 = 795;
|
|
789
|
+
function u2(t3, e3, n3, r3, o3) {
|
|
790
|
+
return q(0, t3 - -486, 0, n3);
|
|
791
|
+
}
|
|
792
|
+
rt[u2(645, 597, "i07%")] = true;
|
|
793
|
+
const g2 = await this[m2 = r2, f2 = -692, K(m2, f2 - -1182)]();
|
|
794
|
+
var m2, f2;
|
|
795
|
+
function p2(t3, e3, n3, r3, o3) {
|
|
796
|
+
return Q(0, r3, 0, 0, t3 - d2);
|
|
789
797
|
}
|
|
798
|
+
rt[u2(o2, 0, s2)] || !g2[p2(i2, 0, 0, "ps*x")]() && !g2[p2(a2, 0, 0, "XwHR")]() ? await G[p2(c2, 0, 0, h2)](g2, t2, e2, n2) : await this[u2(l2, 0, "D@ku")](t2);
|
|
790
799
|
}
|
|
791
|
-
async [K(
|
|
792
|
-
const t2 = "
|
|
800
|
+
async [K("E^H#", 573)]() {
|
|
801
|
+
const t2 = "E^H#", e2 = ")MR]", n2 = 14;
|
|
793
802
|
if (nt()) {
|
|
794
|
-
if (
|
|
795
|
-
var t3,
|
|
796
|
-
this[t3 =
|
|
803
|
+
if (at) return void setTimeout(() => {
|
|
804
|
+
var t3, r3;
|
|
805
|
+
this[t3 = e2, r3 = n2, st(r3 - -142, t3)](false, false);
|
|
797
806
|
}, 8e3);
|
|
798
|
-
await this[
|
|
807
|
+
await this[r2 = -288, o2 = t2, q(0, r2 - -1349, 0, o2)](false, false);
|
|
799
808
|
}
|
|
800
|
-
var
|
|
809
|
+
var r2, o2;
|
|
801
810
|
}
|
|
802
|
-
async [
|
|
803
|
-
const n2 =
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
return ht(t3 - S2, e3 - w2, n3 - y2, r3);
|
|
811
|
+
async [Q(0, "mWS6", 0, 0, -709)](t2, e2) {
|
|
812
|
+
const n2 = 165, r2 = 276, s2 = 255, i2 = 271, a2 = 143, l2 = "EnBH", c2 = 78, h2 = "CD5q", d2 = 86;
|
|
813
|
+
function u2(t3, e3, n3, r3, o2) {
|
|
814
|
+
return q(0, t3 - -1358, 0, n3);
|
|
807
815
|
}
|
|
808
|
-
|
|
809
|
-
|
|
816
|
+
if (!t2 && (rt[g2(296, 234, "G(f&", 297)] || rt[g2(n2, r2, "wqa9", s2)])) return;
|
|
817
|
+
function g2(t3, e3, n3, r3, o2) {
|
|
818
|
+
return Q(0, n3, 0, 0, r3 - 830);
|
|
810
819
|
}
|
|
811
|
-
rt[
|
|
812
|
-
const
|
|
813
|
-
function
|
|
814
|
-
return
|
|
820
|
+
rt[g2(i2, a2, "u965", 225)] = true, rt[u2(-222, 0, "wqa9")] = true, await this[f2(l2, 152, c2)](t2);
|
|
821
|
+
const m2 = o[u2(-207, 0, "ElB4")]();
|
|
822
|
+
function f2(t3, e3, n3, r3, o2) {
|
|
823
|
+
return Z(0, n3 - -411, t3);
|
|
815
824
|
}
|
|
816
|
-
|
|
825
|
+
const p2 = t2 || m2 ? console[f2(h2, 0, d2)] : o[u2(-196, 0, "rn4K")];
|
|
826
|
+
m2 && p2(""), await this[u2(-190, 0, "1v1Q")](t2, e2), p2("");
|
|
817
827
|
}
|
|
818
|
-
[
|
|
819
|
-
return this[t2 =
|
|
820
|
-
var t2, e2
|
|
828
|
+
[K("EnBH", 458)]() {
|
|
829
|
+
return this[t2 = "&C7^", e2 = -455, Q(0, t2, 0, 0, e2 - 154)](true);
|
|
830
|
+
var t2, e2;
|
|
821
831
|
}
|
|
822
|
-
[
|
|
823
|
-
return this[e2 =
|
|
832
|
+
[Q(0, "@7gi", 0, 0, -628)](t2) {
|
|
833
|
+
return this[e2 = "]]jQ", n2 = 683, ot(0, e2, 0, n2 - 305)](true, t2);
|
|
824
834
|
var e2, n2;
|
|
825
835
|
}
|
|
826
|
-
[
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
var e2, n2, r2, o2, s2;
|
|
836
|
+
[K("1NDV", 499)]() {
|
|
837
|
+
return rt[n2 = -692, r2 = "zHPK", Z(0, n2 - -1185, r2)] || rt[t2 = -90, e2 = "eZ9i", Z(0, t2 - -760, e2)];
|
|
838
|
+
var t2, e2, n2, r2;
|
|
830
839
|
}
|
|
831
|
-
[
|
|
832
|
-
|
|
840
|
+
[Z(0, 607, "CD5q")](t2) {
|
|
841
|
+
at = true;
|
|
833
842
|
}
|
|
834
|
-
async [
|
|
835
|
-
return this[t2 = "
|
|
843
|
+
async [q(0, 1006, 0, "XwHR")]() {
|
|
844
|
+
return this[t2 = "PbeI", e2 = -704, Q(0, t2, 0, 0, e2 - -30)](true);
|
|
836
845
|
var t2, e2;
|
|
837
846
|
}
|
|
838
|
-
async [
|
|
839
|
-
const n2 =
|
|
840
|
-
function
|
|
841
|
-
return
|
|
847
|
+
async [ot(0, "YoGQ", 0, 352)](t2, e2) {
|
|
848
|
+
const n2 = 111, r2 = 166, o2 = "1v1Q", s2 = 58, i2 = 142, a2 = "0mxY", l2 = await this[c2(212, n2, 252, r2, o2)]();
|
|
849
|
+
function c2(t3, e3, n3, r3, o3) {
|
|
850
|
+
return Z(0, r3 - -473, o3);
|
|
842
851
|
}
|
|
843
|
-
|
|
844
|
-
return await this[r2(0, 0, "2^w*", 459)](true, t2, e2), o2;
|
|
852
|
+
return await this[c2(113, 202, s2, i2, a2)](true, t2, e2), l2;
|
|
845
853
|
}
|
|
846
|
-
async [
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
return await G[e2 = t2, n2 = 1398, q(0, 0, 0, n2 - 432, e2)]();
|
|
854
|
+
async [K("f9o0", 576)]() {
|
|
855
|
+
var t2, e2;
|
|
856
|
+
return await G[t2 = -151, e2 = "UosF", ot(0, e2, 0, t2 - -488)]();
|
|
850
857
|
}
|
|
851
858
|
}
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
return
|
|
855
|
-
}
|
|
856
|
-
function dt() {
|
|
857
|
-
const t2 = ["W5e8xqe8ocqbWPO5", "WQNdPCoBWQi1y8op", "dLXUqmoIbq", "W6qsDmohomo0g8oM", "W7pdICk3W689W5PYka", "WP7dOCoDC8ohWOS", "l8kUcXL5AaJdLG", "FctdNd3dJCoXFa", "W54PW6GVEwtcSq", "pufqWOWswenawCkh", "WQCgpCkiaHZdJHLiWOO", "W4ddVCovmsG5WOK3W7WiWPRcSCot", "WP9Cz1JdQMG0W40QW40lymkxfG", "WPZcRCkFrcKSWQiSW4yQ", "W61cWQtcNSomWPfCW5dcJb0qW4hdOY4", "WO4clSkzfs7dMq4", "WOHnCKVdT3CqW7qSW4W", "WPufWPZcSc1QlKH0W7jcWQPwWPJcQq", "W5i8xsqWidy", "qCooywldGhG", "ECoBz0ddI3u", "W5pdLGfYWOVdVb8", "W77cHg4IxcxdHmo5WOzU", "zsxcICkaW5xcNZNdMmo/WQpdVSoC", "BCoKWPddVmoKWOi1WOpdQCkpmmoHovfCa8oFh8o6", "W5e8xqCSjsKmWRiRWQKp", "kSkgW53dNM3cLX5qWPdcRmkNW4XL", "lSkLgWThBq8", "lSkyemokbCoisdZcSJyeedu", "W4vThchcNCoDW7GRWR4", "WPufWPZcSc1QlKHMW7zeWRW", "WOldTSoCECoAWPbh", "W6ZcKSkccCkBeq", "WQpcNZybr1r7briuDeT5", "i1JdJcm", "W4GdA8oNomo4bSoHW4BdNsbCjW", "W7Kmy8oPW6LBW4DWbSkMrqK", "lcFcUmkoraGAWRimW40", "kSkDW6HkuXy2ACoEW79tqSk0tcOPzu85zSontmkyFCkPWRZdMG", "iL95smoIthNcIt57WQ15z2SFWPFcPge", "tmoPfNHYW5G", "WQVdQCkrjCouWPdcMXVcJmo2rSotBq", "WRJdICoazSojuSkVWOfFvYv1", "WQlcJqaYxLS", "WP1Cz1RdQYXGWRn3", "emkhW79zsWWfimoMW74", "WQKJttFcN8o8W7W3WQe", "owddNahdGSoiDmkw", "WOzSmZGnWOJdN3SB", "t8kcW4dcUXGJwMyqWRZcN8oYW7m", "WRLXBmkqWRLkW50/WPBdQNRcTCkJ", "WOddQ8kbW5XiW7DwW7f9kCkbWQhdUmkOWOq", "WRLKDmk1WQq", "dM3dISoDWORdKG/dVmo2WPRdOSoc", "WR0DlmkqeJNdNr9m", "B3jT", "WPDzmqCxAWddQaDJzCoaW64", "W4GikW/cTuOfW7KUW4aS", "ACoExL4xWPNcIb3dICkvWOpcJmoJagbuCrW", "yg1/WQZdO8owW4ldSa", "me/dKqZcPH5Ei2vWW6FdIG", "W6tdGuraW59Cu3Drp8ke", "W6ZcNw0Bxdu", "tmoaW53dI8owW7BcKa3cHSk3WRJdG8o+W7VcTuC", "W6pdLSktW6a", "W5upW53cMNSydYDFp8k8", "zSoVtdrBwwSTWRrNBIO/W4m", "W5VcVwNdMMlcGmkd", "t8oyuf/dHg0", "FCoUWORdHmoUWPC", "WRJcLIaHs09YkGOuEebKW618swZdQ1y", "W5JdQCovha", "yc/cJ8kAW5tcIh3cS8kP", "lmkYcG9uza", "z3jNWO7dPConW58", "jSkPda9aCHNdTCoycq", "WQFcKmosWR4glhvyW7BcJSoOzSoi", "qCooywFdIMvXW5hdMW", "WOhdSmoszSohWPb1W7NcON8", "y8kZW5uX", "W5e8xqOk", "W7NcJSkDmCko", "W6urBaanfaK3WROdWP4VBXK6W4NcMmkvWOe", "l8kcW4FdSN3cJcjgWQ/cP8kHW5POk8km", "DSkaW5FcTWWY", "m8kBW5RcUCkFAtpdJt4", "W6BdS8kged83WO0UW6ysW5xcRmoqW7W7WOeCWQ7cVHW", "W7ZdKL5RW5n9v2Llm8kzr1i", "W4/dUCosnIuZWOaJW4WaWOhcUG", "ESotWOVcHZRcQGzrWPZcLSkz", "W5BcGxiIxcxdHmo5", "B8oeW5NdGSkmW58", "WQ/cPCk/vmoUWRhcVIi6eq", "W4COW5CGyu/cTe1wxui", "W4mOW5CVEq", "W4ezzCoeW6jBW6r4bmk7", "W79Thce", "g0r8qq", "WQVdUmoFWP8UDW", "FmoUWO3dOmoNWPG1", "WRPHA8k0", "omkvW5RdNNZcOsTwWPJcQ8k/W5O", "WPjkxvBdP2e", "CSoeuCkixmkqfZC", "W4dcKSkcpSkwcSkHW7z4yqbrWPhcTW", "WRtcPNudW67cNsDKW5JdPSorWOK", "W5efW4FcUNCEkczckmkQ", "W6dcJ8kIpSkwcSkH", "FhJdPCoeAXGCWOm", "W5vxWRJcKSoqWOrSW5dcTHmDW4JdMq", "ivPCWOqvwem", "l8kAg8ofsSkicaVcRIC", "nuVdIYdcTGvInuH/W6FdIIK", "vSogW47dJSkyW44", "W5nDbSk4iHhdJWa", "W5m/W4OVFghcPNnkuv7dR3CP", "CSkxW6vFW4lcIGVdPaJcH1tcR8o/", "W6PPeIdcNCokW7W", "WOhdSmosymogWPa", "WOvknGCgvZxdVWPODq", "b8kwW6HouXaIlmoGW5vFuSk0sW", "wqu3hSk8ALxdMJ5xWPC", "W7FdG8owbJ8UWOmyW5C", "ydpdNtFdKmoQ", "WQ0qWPRcMZz3bKLwW7zzWRvm", "eKDEWOqjru9/rq", "W7LxWQBcKSok", "fmk9qs9/W4yEc15L", "ybH4WRGmq2Dg", "WRHXFmkPWRnm", "WPtdQ8kbW5juW71FW7TykCk4WRFdQa", "FSoovSkDw8kDcqlcPqKRjZGq", "W75+csZcNCovW6O", "W6xdPJrEWQ3dNq", "bmkwW6PPsHy+lCowW7DeqG", "W4dcKSkcpSkwcSkHW7zWzW5vWPBcQItcUxJcK8kJW6a", "ECoXv1WytZ7dMSolfgq", "W4ZdK8ksW6fFyqntW6FcUCoasCot", "WOnVrHq/bIGF", "W7RcLmkroSkog8kP", "WP4pWOVcKYXQlui", "W6KeW5ZcRgawmIC", "WOZdQ8kmW5HpW7fx", "WPjkvK/dOMG", "W5aRtcaJkq", "W7NcS8kyWOeMDmooyey", "mIG+W5BcV8ksW4BdKYNcJsBcNq", "EJ/dGdNdKmkI", "WOeciCosfYxdIa5mWPSD", "gevUw8o6vKRdGc9R", "W7X3eIlcHG", "pu1DWO4iqW", "W61cWR7cV8oBWOrjW5ZcRGe", "WRlcJCkvW4uqW5HKjSkvW63cPq", "WR7dSSogWPGOsSopv1hdKmocWQ4", "zhH+WQ3dUCokW4ddOdZcSrZcQXJdJ0y", "kmkHaqrlCYZdJmouhLNdSCoN", "WOvkmaqBAJu", "WQ97pIebWQRdIa", "W5/dRJzEWRhdKbfaW5hdN8onWPC", "ofT9WOyytG", "W47dSwrCWRRdNq", "WPStWQBcNtXM", "W4ldVmoiWQ/cV8k9j3O", "WOBdOColya", "cSkaW5bewXO", "pmkfW79hvHSZpCo3", "WQr7Fmk5WPLn", "ySotW4xdOCkeW5xcLa", "WO4oi8kBdZu", "W5yyeWarFd7dQqSTwSoaW7m", "FYldKIldKmoXtSkiW4BdNq", "WR0uW73cJmoeWOPmW7BcTa", "wCkAW4qVW7hcHCkMW6pdPa", "nK1hWR0vrKm", "WQNcNYSQwKvobW8tB0bU", "DCkGW4awW7VcIa", "W7JdNe5pW4D2xwPl", "WO7dVCk7W7fzW7S", "WOxcKwuOvLr7gXuyo1v4W7fVF2pdQ0S", "WQ7cMSksW4WqW74", "W5aDFCo1W6jPW7m", "WQZcK8oZWOZcOmkHcwJdLa", "WQdcOCk4vCoZWQBcUJSIc8kdW7y6", "FCopW4ZdGG", "WRT7pdObWP7dRN0xwgpcLSo4", "W7FdHSkuW6LyEtq", "WQzXDSk7WQrb", "dM3dISoDWORdKG", "WPxdS8ocka", "zSkxW6DeW4lcVI0", "AtJdHq", "W4tdTCofet4PWOKmW60y", "WPfDkWGBDsm", "W5BcVhldMMFcH8ku", "W4VcVuJdLgJcJ8kCW6BcPrRdIqrvuSocWPFcV8oB", "vSozEKtdJhjX", "z8o4WRVdUCoQWOi", "WPfDkWGBDspdIHXKF8orW6/dTa", "W7ddRc1zWQVdQJzeW5VdLmom", "qSoIWP3dQSoLWP01W7tdPCkdkmogjgDxvSoceSk/", "xgddOmoBsraCWOiAW6tcS8oQW7ZcR8oZjqm0fv3dVrRcPSo9za", "WPrBEvZdOha", "ySohh34lWPVcMrRdLCkEWOpcI8oVgG", "FmkBW5hcTXGKE0GbWQq", "wCk1W4y0W7dcHCklW53dLCkUfSkL", "WOzQid0kWPG", "yHadWPmxBKnJrG", "WR9/mYarWP7dM3W"];
|
|
858
|
-
return (dt = function() {
|
|
859
|
+
function ht() {
|
|
860
|
+
const t2 = ["W6/cSIFcP8kzW73dImkNwCksW4JdPq", "W71hEsLzWOm", "W4pcUCkvWONdVmoxW753zc7dLe07", "WOHAxCkkmsTFCSk7WQNcUxSOu8oCaCosfgVcTNyGW4FdMCoqWOhdQG", "WRPMWOm6W4DtB8o7W5pdQmoDW4P+WRFcRH4kkbK", "W71qAc9lW44/W53cMG", "WOLdWQqjuSoB", "ydTVjqJdOSoi", "i8oTaSkggmkcFG", "BH52W6ZdSCorW4iPW6lcN8kfWPv4W4m", "W75rW7C5WOLWWRG", "WPfNW5u", "WODiWQyJw8olW7W", "FW/dLcP3WPy", "W4RcPmkXrv8", "WOOjW7ZcPc7cTG", "xbddGtT0WRjvEmkjkW", "WRyJlmoIWRbi", "WRvWzZb0WRX1BY8t", "W6XinhtdJhlcTCkLWQeoW4K", "i8k8yCo1", "ALldO8ooWRHNuNWJWRtcHrmoWQurbNTXW5JdGG", "wSkKxCkjDmkjv8oCEXnWWQZcPCky", "W7jgWRxdSIa2", "W7vbESkYWR/cK0SRd8k1ba0", "pfyCW6y", "qdmqimohwCot", "W7XqAa5wWO90WPFdOYC0taBcN8kf", "dmo5c8kEq8kjqmoHEW", "amkXwI/dSHq", "Emk3uSkajSkKsSoAubjNWQZdJmk3WQmX", "WQm9W7v0WPtcI1xdPYe", "WRapW6/cOq", "WO3dObfJW4JdV8kQsa", "WP5ewCkcmZz5m8kzWQ7cV2W", "W7pdPbLFWONdVG", "W7zSW6tcLmkqdHK", "eCkjW4nOW7TzWPiXA8k5W4no", "FrxcRCkyW6hcHHBdVh/cJLTtW40", "WRWQlCoQWRy", "W5NcUmk1BW", "fhnYaI7cV8omt2m7WRRcRuZcLmoQDL7cSCo/", "W7DAEW", "o8k8D8oMW4NcVW", "dCksW4LJW6fUWPiG", "W5RdTXzuWOJdT0GaWOaTkSoQiGuJWR4Hx3lcIfW8f8kPda", "WP5uWRKSq8oSW71Nawu5", "WPtdGbrmW78Qmq", "W4hcSHWcrIurjmoUb8kEW6pcGW", "sYFcG8oa", "WP/cGuKrAgP0WP/cJmorAKy", "WRfwWQiRwCow", "W7P7W5hcO8kRiJODWOS", "og12cZpcO8obzgO", "WQzrx8kVodzAo8kBWRm", "WQa7W7zIWP3dGbdcKx8WiG", "WRtcISoUvmkTWQrdDfy", "WRimkSoYW7/dL3e4nSk1", "W7ldJ8k4ECkVWR8", "W7BdSJjoWPZdUG", "WQqWcueexq", "WQumW73cPq", "dCksW4LJW6fUWPioB8kP", "cCkjWPNcT8kYWRO", "WQuDp8oHW6ldIfu", "WOPTzsDUWRXhjJ4dWPxdJJHJW5SwASo3ba", "AYvxDmkdW5jFrmkHFqiAg1a", "zIHSpqtdL8oB", "WPTRW4KZW41e", "qcVcS8keW6VcGcNdKuK", "WOWTte8Bqq", "WQizW7tdVtySWQ5KW78", "ieWmW69PWQRcJmkiW7S", "W4jbW5xcLCkHiJqRWRJdTW", "W63cPXONqti", "W40zACkIh8ofq0XaW54q", "xGddGSouW77cMbJcG8kFW43cQ8kr", "EhiKkar4", "W41fW5lcLmk8ntaYWQddRCo/f3q", "k03dSSoeWRddGYVdTfVcIhTF", "W4tcRSkAWOS", "m8k8B8oKW5hcUmkAvfVcHmkRWOZdS8kZ", "WQ0DjCoNW7/dJa", "W7ich8oDBhD2fCkJWQpcTKy", "FrJdHs5KWP9uwSkAoW3cNSksva", "vZjbW5BcLsVdImkf", "qI8dFmkpW4vBq8k+AW", "hCkLy8odWPFdNq", "xaVdKcn4WPjty8khpepcPSkEuXCoWQtcOG", "WQ1rrCkmksO", "WQWki8oiW6BdTXWZjWiot8kw", "WQZcMfGDAg1tWRxcH8og", "dMHsetVcQW", "WQZcLfuFCNy", "vHRcTCkxW6JcNslcRNRcIuXtW4CqoXFdUJxdVSoo", "o0iCW553WQVcJCkpW6PC", "W5hcQSksWONdRq", "wtXmW5NcHdddT8kzWOqGoMpcNW", "W6iFW4meW6a9WQlcL3eDBLy", "WOZdPbXwW6hdO8kvrW", "eSkEW55nW6PK", "WRpcLe8Zy2C", "WQvBrSkkncXi", "W7rBlL/dGfpcSCk7WRScW5rTWO0", "W4JcUCk1y37dSW", "W4tcNfKBWQj1E2T3hmkntH8", "j8kRCmoVW4NcK8kpruJcRSkOWOO", "W6JdImkCE8k7WQa", "W77cVmkuWRFdQ8omW4bX", "WQGlAINcGaddPmkIWPuXW5zIWQG", "WPpdOmodW57cOmkrW6rFEZRdQwu", "pmk8ymohW4/cUmkh", "W71rW7CAWPv1WQFcRe4hxuWOWRpcTW", "fg92fs7cTmo3ExS6", "WRxcUmoRru3dNJToEG", "zcTdW5VcIcBdHSkFWOG", "W7rhWQ3dGIGJWOPgW4NdIIC", "W4fbW5xcSmkToIysWQBdRCo+dwldKW", "vHRcTCkxW6JcNslcRNpcMf9FW5SckL7dVJ4", "rYSzvSkpW4nQwmk7DLy0gG", "W6/cSIFcP8kzW73dImkNs8kwW47dSYldLmoL", "WQKooCoYW6RdQcK", "WOj4c8os", "WRpdSmkDEmkOWQPJ", "W4flW4ZcSmkTocy", "W6dcTIdcOmkuW7FdGCkZACkAW5pdRJG", "WRiWbuOkDSo9hCkoWQpdJa", "CrVcP8ktW43cKa", "g8o+f8k+gmklENFdUG", "W4RcPmkXshNdOYJcQrlcOXVcRa", "WRdcG1qvB21t", "W5zuW43cUmkW", "tdKHwCkgW5HE", "uCoWe3dcTf7cQJiwFuGknq", "WRiNmCoaWRXdkmoltCoWk8oAla", "WRz2As9PWRXh", "DsP2eWldKCoqCW", "jeWCW7PRWQpcJSkE", "W4NcPmkXA2xdPJC", "WOBdJbneW6jM", "iSoTf8kMbmkDFNa", "WP5uWRKSq8oGW7LSc2uV", "WQrAt8kycITpoG", "sY9nW5RcIdhdGG", "WPtdGbrmW78Qmw9SjCkoDHib", "W5pcVrfdW5ZdVSkDz8ksbq", "W7evW7SPW7y1WQlcLNeDBLBdM8oZW6vpb1i", "fh5ecmoAWOvJt8kMD00L", "W4hcNvHFW5mNiwDq", "WQuDp8oHW6ldIfubmmk0pHdcUZm", "vI8dDmkdW5jFrmkHFwK0bW", "xdHwW7hcHcpdK8kEWP8Rpq", "W6HaBdXrWOnRWOddPtaVurS", "WPPSc8o/W7ZcQJC9bs05b3S", "EHRcP8kfW5pcNtldPG", "bmkrxmoeW6NcJ8kMBMxcJSkhWRZdK8kuW5NcRXFdLmob", "WQHhzCkeosC", "W7b2wbXhxCoTimkfWRldVq", "W6HrW7a3WOXQWQ4", "W7ldJ8k4F8kUWR9Js3VdLG", "WPL0DcTUWRTMyY8AWOZdIZK", "W65Fow/dM1u", "dw3dKSkuzmkWASkBju3cOZi", "WP16W605W4Pv", "hCkLAmoAWPldLa", "W63cPXONqtiWl8oPa8k8W6RcIq", "W57dI8kRzmk0WRH2q2hdKhP+", "W7RdRbzrWPhcTG", "WP4ioCoPW6xdKa", "W63cSWCExs8ApG", "W4rdFsbkWOj5WOFdKa", "WPHSW40XW5Py", "W6/cSIFcQ8kdW7ddGCkkEq", "gNzYD8kAbCo6fmkObcZdKq", "awLYaIdcOG", "W4zlW4/cOSkRoJavWR3dSmo4n2JdPf1Engf7", "AGNdKd15WObWy8kCoG", "WP0YhK0qtmoAgCkeWQJdJCky", "WPnSW5CuW5TzzSoXW7BdQmkpW4LLWRFcTG", "vSoFW7tcImoFjmoY", "W7qWzqD6WR1WyG", "W5OkW4uVW7SGWORcLKeDC1/dUW", "W75Bm3tdNulcHmk5WQyfW49MWPO", "WRRcNbFcKmkEW7ldSW", "W6iFW4mcW7aGWQ/cMLKp", "WRfgqSkfkqXEn8ktWQxcVG", "xYeQnmooDSob", "tSkXx8kfCG", "W4uNrdhdLYZdOrP/WPjIW5/dGSoC", "WQTTW4WgW5XzzmoH", "W7eVDCo+hmojwhz6", "jSoPgmk8fmkDs3hdTSkyW4qIoG", "W4XxW6/cVSkGmW", "W7eiW54NW7K", "W5lcSmkEWOldRCoDW4i", "W6dcPabpW5ZdUCk8sCkdhqxcMmoE", "W4BcUhpcGmkuW6tdJCkXFmkhW5xdRYu", "tCk0qmke", "W4SiDCoLaCoe", "W5xcSHWmwI8ylSoza8kHW6m", "WPZdTCo2oJZcVH3cQclcRqdcVq", "W54cASoHgSoouG", "WQVcSealW4xcPGWaWRuzz8o7eq", "W5pcHsXeW7uJleX7BmkRzW4", "mSoPgSkNfmkPBq", "W7jijCoWW5JdIKS6"];
|
|
861
|
+
return (ht = function() {
|
|
859
862
|
return t2;
|
|
860
863
|
})();
|
|
861
864
|
}
|
|
862
|
-
const ut = (t2, e2) => {
|
|
865
|
+
const dt = new ct(), ut = (t2, e2) => {
|
|
863
866
|
const n2 = [];
|
|
864
867
|
for (let r2 = 0; r2 < t2.length; r2++) {
|
|
865
868
|
const o2 = t2[r2];
|
|
@@ -1629,11 +1632,11 @@ const Rt = [], At = Object.freeze({ done: true, value: void 0 }), Mt = (function
|
|
|
1629
1632
|
})(), Tt = [], Nt = (t2, ...e2) => {
|
|
1630
1633
|
if (!t2) throw e2.unshift("SortedMap:"), new Error(e2.join(" "));
|
|
1631
1634
|
};
|
|
1632
|
-
var
|
|
1633
|
-
(
|
|
1634
|
-
const t2 = new
|
|
1635
|
+
var kt;
|
|
1636
|
+
(kt = bt || (bt = {})).DeleteValue = Object.freeze({ delete: true }), kt.Break = Object.freeze({ break: true }), kt.DeleteRange = () => kt.DeleteValue, kt.EmptySortedMap = (() => {
|
|
1637
|
+
const t2 = new kt();
|
|
1635
1638
|
return t2.freeze(), t2;
|
|
1636
|
-
})(),
|
|
1639
|
+
})(), kt.defaultComparator = function(t2, e2) {
|
|
1637
1640
|
if (Number.isFinite(t2) && Number.isFinite(e2)) return t2 - e2;
|
|
1638
1641
|
let n2 = typeof t2, r2 = typeof e2;
|
|
1639
1642
|
if (n2 !== r2) return n2 < r2 ? -1 : 1;
|
|
@@ -1643,10 +1646,10 @@ var Ft;
|
|
|
1643
1646
|
if (n2 = typeof (t2 = t2.valueOf()), r2 = typeof (e2 = e2.valueOf()), n2 !== r2) return n2 < r2 ? -1 : 1;
|
|
1644
1647
|
}
|
|
1645
1648
|
return t2 < e2 ? -1 : t2 > e2 ? 1 : t2 === e2 ? 0 : Number.isNaN(t2) ? Number.isNaN(e2) ? 0 : -1 : Number.isNaN(e2) ? 1 : Array.isArray(t2) ? 0 : Number.NaN;
|
|
1646
|
-
},
|
|
1649
|
+
}, kt.simpleComparator = function(t2, e2) {
|
|
1647
1650
|
return t2 > e2 ? 1 : t2 < e2 ? -1 : 0;
|
|
1648
1651
|
};
|
|
1649
|
-
const
|
|
1652
|
+
const Ft = [-1, null], Ot = { done: false, value: [-1, null] };
|
|
1650
1653
|
var Dt;
|
|
1651
1654
|
((t2) => {
|
|
1652
1655
|
t2.Builder = class {
|
|
@@ -1724,7 +1727,7 @@ var Dt;
|
|
|
1724
1727
|
if (r3) {
|
|
1725
1728
|
let t4;
|
|
1726
1729
|
const i3 = r3.minor;
|
|
1727
|
-
r3 && r3.minor === n2 ? (s2 = r3, o2 = s2.span) : t4 = i3 > n2 ? e3.getPairOrNextHigher(n2,
|
|
1730
|
+
r3 && r3.minor === n2 ? (s2 = r3, o2 = s2.span) : t4 = i3 > n2 ? e3.getPairOrNextHigher(n2, Ft) : e3.getPairOrNextLower(n2, Ft), t4 && (s2 = t4[1], t4[0] === n2 && (o2 = s2.span));
|
|
1728
1731
|
}
|
|
1729
1732
|
if (!o2) {
|
|
1730
1733
|
this._majorMin = Math.min(this._majorMin, t3), o2 = [n2, [[t3, []]]];
|
|
@@ -1768,7 +1771,7 @@ function Lt(t2) {
|
|
|
1768
1771
|
};
|
|
1769
1772
|
}
|
|
1770
1773
|
const zt = { date: Lt({ formats: { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" }, defaultWidth: "full" }), time: Lt({ formats: { full: "h:mm:ss a zzzz", long: "h:mm:ss a z", medium: "h:mm:ss a", short: "h:mm a" }, defaultWidth: "full" }), dateTime: Lt({ formats: { full: "{{date}} 'at' {{time}}", long: "{{date}} 'at' {{time}}", medium: "{{date}}, {{time}}", short: "{{date}}, {{time}}" }, defaultWidth: "full" }) }, Pt = { lastWeek: "'last' eeee 'at' p", yesterday: "'yesterday at' p", today: "'today at' p", tomorrow: "'tomorrow at' p", nextWeek: "eeee 'at' p", other: "P" };
|
|
1771
|
-
function
|
|
1774
|
+
function Ht(t2) {
|
|
1772
1775
|
return (e2, n2) => {
|
|
1773
1776
|
let r2;
|
|
1774
1777
|
if ("formatting" === (n2?.context ? String(n2.context) : "standalone") && t2.formattingValues) {
|
|
@@ -1781,7 +1784,7 @@ function Wt(t2) {
|
|
|
1781
1784
|
return r2[t2.argumentCallback ? t2.argumentCallback(e2) : e2];
|
|
1782
1785
|
};
|
|
1783
1786
|
}
|
|
1784
|
-
function
|
|
1787
|
+
function Wt(t2) {
|
|
1785
1788
|
return (e2, n2 = {}) => {
|
|
1786
1789
|
const r2 = n2.width, o2 = r2 && t2.matchPatterns[r2] || t2.matchPatterns[t2.defaultMatchWidth], s2 = e2.match(o2);
|
|
1787
1790
|
if (!s2) return null;
|
|
@@ -1798,7 +1801,7 @@ function Ht(t2) {
|
|
|
1798
1801
|
};
|
|
1799
1802
|
}
|
|
1800
1803
|
var Vt;
|
|
1801
|
-
const
|
|
1804
|
+
const jt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
1802
1805
|
let r2;
|
|
1803
1806
|
const o2 = Bt[t2];
|
|
1804
1807
|
return r2 = "string" == typeof o2 ? o2 : 1 === e2 ? o2.one : o2.other.replace("{{count}}", e2.toString()), n2?.addSuffix ? n2.comparison && n2.comparison > 0 ? "in " + r2 : r2 + " ago" : r2;
|
|
@@ -1813,14 +1816,14 @@ const $t = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1813
1816
|
return n2 + "rd";
|
|
1814
1817
|
}
|
|
1815
1818
|
return n2 + "th";
|
|
1816
|
-
}, era:
|
|
1819
|
+
}, era: Ht({ values: { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] }, defaultWidth: "wide" }), quarter: Ht({ values: { narrow: ["1", "2", "3", "4"], abbreviated: ["Q1", "Q2", "Q3", "Q4"], wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] }, defaultWidth: "wide", argumentCallback: (t2) => t2 - 1 }), month: Ht({ values: { narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] }, defaultWidth: "wide" }), day: Ht({ values: { narrow: ["S", "M", "T", "W", "T", "F", "S"], short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] }, defaultWidth: "wide" }), dayPeriod: Ht({ values: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" } }, defaultWidth: "wide", formattingValues: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" } }, defaultFormattingWidth: "wide" }) }, match: { ordinalNumber: (Vt = { matchPattern: /^(\d+)(th|st|nd|rd)?/i, parsePattern: /\d+/i, valueCallback: (t2) => parseInt(t2, 10) }, (t2, e2 = {}) => {
|
|
1817
1820
|
const n2 = t2.match(Vt.matchPattern);
|
|
1818
1821
|
if (!n2) return null;
|
|
1819
1822
|
const r2 = n2[0], o2 = t2.match(Vt.parsePattern);
|
|
1820
1823
|
if (!o2) return null;
|
|
1821
1824
|
let s2 = Vt.valueCallback ? Vt.valueCallback(o2[0]) : o2[0];
|
|
1822
1825
|
return s2 = e2.valueCallback ? e2.valueCallback(s2) : s2, { value: s2, rest: t2.slice(r2.length) };
|
|
1823
|
-
}), era:
|
|
1826
|
+
}), era: Wt({ matchPatterns: { narrow: /^(b|a)/i, abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, wide: /^(before christ|before common era|anno domini|common era)/i }, defaultMatchWidth: "wide", parsePatterns: { any: [/^b/i, /^(a|c)/i] }, defaultParseWidth: "any" }), quarter: Wt({ matchPatterns: { narrow: /^[1234]/i, abbreviated: /^q[1234]/i, wide: /^[1234](th|st|nd|rd)? quarter/i }, defaultMatchWidth: "wide", parsePatterns: { any: [/1/i, /2/i, /3/i, /4/i] }, defaultParseWidth: "any", valueCallback: (t2) => t2 + 1 }), month: Wt({ matchPatterns: { narrow: /^[jfmasond]/i, abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i }, defaultMatchWidth: "wide", parsePatterns: { narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] }, defaultParseWidth: "any" }), day: Wt({ matchPatterns: { narrow: /^[smtwf]/i, short: /^(su|mo|tu|we|th|fr|sa)/i, abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i }, defaultMatchWidth: "wide", parsePatterns: { narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] }, defaultParseWidth: "any" }), dayPeriod: Wt({ matchPatterns: { narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i }, defaultMatchWidth: "any", parsePatterns: { any: { am: /^a/i, pm: /^p/i, midnight: /^mi/i, noon: /^no/i, morning: /morning/i, afternoon: /afternoon/i, evening: /evening/i, night: /night/i } }, defaultParseWidth: "any" }) }, options: { weekStartsOn: 0, firstWeekContainsDate: 1 } }, $t = (t2, e2) => {
|
|
1824
1827
|
switch (t2) {
|
|
1825
1828
|
case "P":
|
|
1826
1829
|
return e2.date({ width: "short" });
|
|
@@ -1844,7 +1847,7 @@ const $t = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1844
1847
|
}
|
|
1845
1848
|
}, Ut = { p: Gt, P: (t2, e2) => {
|
|
1846
1849
|
const n2 = t2.match(/(P+)(p+)?/) || [], r2 = n2[1], o2 = n2[2];
|
|
1847
|
-
if (!o2) return
|
|
1850
|
+
if (!o2) return $t(t2, e2);
|
|
1848
1851
|
let s2;
|
|
1849
1852
|
switch (r2) {
|
|
1850
1853
|
case "P":
|
|
@@ -1859,7 +1862,7 @@ const $t = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1859
1862
|
default:
|
|
1860
1863
|
s2 = e2.dateTime({ width: "full" });
|
|
1861
1864
|
}
|
|
1862
|
-
return s2.replace("{{date}}",
|
|
1865
|
+
return s2.replace("{{date}}", $t(r2, e2)).replace("{{time}}", Gt(o2, e2));
|
|
1863
1866
|
} }, Jt = /^D+$/, qt = /^Y+$/, Kt = ["D", "DD", "YY", "YYYY"];
|
|
1864
1867
|
function Xt(t2) {
|
|
1865
1868
|
return Jt.test(t2);
|
|
@@ -2069,7 +2072,7 @@ const Ee = { y: new class extends ae {
|
|
|
2069
2072
|
}
|
|
2070
2073
|
}() }, Ce = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, be = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ve = /^'([^]*?)'?$/, xe = /''/g, Ie = /\S/, Re = /[a-zA-Z]/;
|
|
2071
2074
|
function Ae(t2, e2, n2, r2) {
|
|
2072
|
-
const o2 = () => te(r2?.in || n2, NaN), s2 = Object.assign({}, ne()), i2 = r2?.locale ?? s2.locale ??
|
|
2075
|
+
const o2 = () => te(r2?.in || n2, NaN), s2 = Object.assign({}, ne()), i2 = r2?.locale ?? s2.locale ?? jt, a2 = r2?.firstWeekContainsDate ?? r2?.locale?.options?.firstWeekContainsDate ?? s2.firstWeekContainsDate ?? s2.locale?.options?.firstWeekContainsDate ?? 1, l2 = r2?.weekStartsOn ?? r2?.locale?.options?.weekStartsOn ?? s2.weekStartsOn ?? s2.locale?.options?.weekStartsOn ?? 0;
|
|
2073
2076
|
if (!e2) return t2 ? o2() : re(n2, r2?.in);
|
|
2074
2077
|
const c2 = { firstWeekContainsDate: a2, weekStartsOn: l2, locale: i2 }, h2 = [new ie(r2?.in, n2)], d2 = e2.match(be).map((t3) => {
|
|
2075
2078
|
const e3 = t3[0];
|
|
@@ -2122,40 +2125,40 @@ function Ne(t2, e2, n2) {
|
|
|
2122
2125
|
}
|
|
2123
2126
|
return r2;
|
|
2124
2127
|
}
|
|
2125
|
-
function
|
|
2128
|
+
function ke(t2, e2) {
|
|
2126
2129
|
for (var n2 = ""; n2.length < e2; ) n2 += t2;
|
|
2127
2130
|
return n2;
|
|
2128
2131
|
}
|
|
2129
|
-
function
|
|
2132
|
+
function Fe(t2) {
|
|
2130
2133
|
for (var e2 = "", n2 = t2.length - 1; n2 >= 0; ) e2 += t2.charAt(n2--);
|
|
2131
2134
|
return e2;
|
|
2132
2135
|
}
|
|
2133
2136
|
function Oe(t2, e2) {
|
|
2134
2137
|
var n2 = "" + t2;
|
|
2135
|
-
return n2.length >= e2 ? n2 :
|
|
2138
|
+
return n2.length >= e2 ? n2 : ke("0", e2 - n2.length) + n2;
|
|
2136
2139
|
}
|
|
2137
2140
|
function De(t2, e2) {
|
|
2138
2141
|
var n2 = "" + t2;
|
|
2139
|
-
return n2.length >= e2 ? n2 :
|
|
2142
|
+
return n2.length >= e2 ? n2 : ke(" ", e2 - n2.length) + n2;
|
|
2140
2143
|
}
|
|
2141
2144
|
function Be(t2, e2) {
|
|
2142
2145
|
var n2 = "" + t2;
|
|
2143
|
-
return n2.length >= e2 ? n2 : n2 +
|
|
2146
|
+
return n2.length >= e2 ? n2 : n2 + ke(" ", e2 - n2.length);
|
|
2144
2147
|
}
|
|
2145
2148
|
var Le = Math.pow(2, 32);
|
|
2146
2149
|
function ze(t2, e2) {
|
|
2147
2150
|
return t2 > Le || t2 < -Le ? (function(t3, e3) {
|
|
2148
2151
|
var n2 = "" + Math.round(t3);
|
|
2149
|
-
return n2.length >= e3 ? n2 :
|
|
2152
|
+
return n2.length >= e3 ? n2 : ke("0", e3 - n2.length) + n2;
|
|
2150
2153
|
})(t2, e2) : (function(t3, e3) {
|
|
2151
2154
|
var n2 = "" + t3;
|
|
2152
|
-
return n2.length >= e3 ? n2 :
|
|
2155
|
+
return n2.length >= e3 ? n2 : ke("0", e3 - n2.length) + n2;
|
|
2153
2156
|
})(Math.round(t2), e2);
|
|
2154
2157
|
}
|
|
2155
2158
|
function Pe(t2, e2) {
|
|
2156
2159
|
return e2 = e2 || 0, t2.length >= 7 + e2 && 103 == (32 | t2.charCodeAt(e2)) && 101 == (32 | t2.charCodeAt(e2 + 1)) && 110 == (32 | t2.charCodeAt(e2 + 2)) && 101 == (32 | t2.charCodeAt(e2 + 3)) && 114 == (32 | t2.charCodeAt(e2 + 4)) && 97 == (32 | t2.charCodeAt(e2 + 5)) && 108 == (32 | t2.charCodeAt(e2 + 6));
|
|
2157
2160
|
}
|
|
2158
|
-
var
|
|
2161
|
+
var He = [["Sun", "Sunday"], ["Mon", "Monday"], ["Tue", "Tuesday"], ["Wed", "Wednesday"], ["Thu", "Thursday"], ["Fri", "Friday"], ["Sat", "Saturday"]], We = [["J", "Jan", "January"], ["F", "Feb", "February"], ["M", "Mar", "March"], ["A", "Apr", "April"], ["M", "May", "May"], ["J", "Jun", "June"], ["J", "Jul", "July"], ["A", "Aug", "August"], ["S", "Sep", "September"], ["O", "Oct", "October"], ["N", "Nov", "November"], ["D", "Dec", "December"]], Ve = { 0: "General", 1: "0", 2: "0.00", 3: "#,##0", 4: "#,##0.00", 5: "$#,##0_);($#,##0)", 6: "$#,##0_);[Red]($#,##0)", 7: "$#,##0.00_);($#,##0.00)", 8: "$#,##0.00_);[Red]($#,##0.00)", 9: "0%", 10: "0.00%", 11: "0.00E+00", 12: "# ?/?", 13: "# ??/??", 14: "m/d/yy", 15: "d-mmm-yy", 16: "d-mmm", 17: "mmm-yy", 18: "h:mm AM/PM", 19: "h:mm:ss AM/PM", 20: "h:mm", 21: "h:mm:ss", 22: "m/d/yy h:mm", 23: "General", 24: "General", 25: "General", 26: "General", 27: "m/d/yyyy", 28: "m/d/yyyy", 29: "m/d/yyyy", 30: "m/d/yyyy", 32: "h:mm:ss", 31: "m/d/yyyy", 33: "h:mm:ss", 34: "h:mm:ss", 35: "h:mm:ss", 36: "m/d/yyyy", 37: "#,##0_);(#,##0)", 38: "#,##0_);[Red](#,##0)", 39: "#,##0.00_);(#,##0.00)", 40: "#,##0.00_);[Red](#,##0.00)", 41: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)', 42: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)', 43: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)', 44: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)', 45: "mm:ss", 46: "[h]:mm:ss", 47: "mmss.0", 48: "##0.0E+0", 49: "@", 50: "m/d/yyyy", 51: "m/d/yyyy", 52: "m/d/yyyy", 53: "m/d/yyyy", 54: "m/d/yyyy", 55: "m/d/yyyy", 56: '"上午/下午 "hh"時"mm"分"ss"秒 "' }, je = { 5: 37, 6: 38, 7: 39, 8: 40, 23: 0, 24: 0, 25: 0, 26: 0, 27: 14, 28: 14, 29: 14, 30: 14, 31: 14, 50: 14, 51: 14, 52: 14, 53: 14, 54: 14, 55: 14, 56: 14, 57: 14, 58: 14, 59: 1, 60: 2, 61: 3, 62: 4, 67: 9, 68: 10, 69: 12, 70: 13, 71: 14, 72: 14, 73: 15, 74: 16, 75: 17, 76: 20, 77: 21, 78: 22, 79: 45, 80: 46, 81: 47, 82: 0 }, $e = { 5: '"$"#,##0_);\\("$"#,##0\\)', 63: '"$"#,##0_);\\("$"#,##0\\)', 6: '"$"#,##0_);[Red]\\("$"#,##0\\)', 64: '"$"#,##0_);[Red]\\("$"#,##0\\)', 7: '"$"#,##0.00_);\\("$"#,##0.00\\)', 65: '"$"#,##0.00_);\\("$"#,##0.00\\)', 8: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', 66: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', 41: '_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)', 42: '_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)', 43: '_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)', 44: '_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)' };
|
|
2159
2162
|
function Ge(t2, e2, n2) {
|
|
2160
2163
|
for (var r2 = t2 < 0 ? -1 : 1, o2 = t2 * r2, s2 = 0, i2 = 1, a2 = 0, l2 = 1, c2 = 0, h2 = 0, d2 = Math.floor(o2); c2 < e2 && (a2 = (d2 = Math.floor(o2)) * i2 + s2, h2 = d2 * c2 + l2, !(o2 - d2 < 5e-8)); ) o2 = 1 / (o2 - d2), s2 = i2, i2 = a2, l2 = c2, c2 = h2;
|
|
2161
2164
|
if (h2 > e2 && (c2 > e2 ? (h2 = l2, a2 = s2) : (h2 = c2, a2 = i2)), !n2) return [0, r2 * a2, h2];
|
|
@@ -2237,11 +2240,11 @@ function tn(t2, e2, n2, r2) {
|
|
|
2237
2240
|
o2 = n2.m, c2 = e2.length;
|
|
2238
2241
|
break;
|
|
2239
2242
|
case 3:
|
|
2240
|
-
return
|
|
2243
|
+
return We[n2.m - 1][1];
|
|
2241
2244
|
case 5:
|
|
2242
|
-
return
|
|
2245
|
+
return We[n2.m - 1][0];
|
|
2243
2246
|
default:
|
|
2244
|
-
return
|
|
2247
|
+
return We[n2.m - 1][2];
|
|
2245
2248
|
}
|
|
2246
2249
|
break;
|
|
2247
2250
|
case 100:
|
|
@@ -2251,9 +2254,9 @@ function tn(t2, e2, n2, r2) {
|
|
|
2251
2254
|
o2 = n2.d, c2 = e2.length;
|
|
2252
2255
|
break;
|
|
2253
2256
|
case 3:
|
|
2254
|
-
return
|
|
2257
|
+
return He[n2.q][0];
|
|
2255
2258
|
default:
|
|
2256
|
-
return
|
|
2259
|
+
return He[n2.q][1];
|
|
2257
2260
|
}
|
|
2258
2261
|
break;
|
|
2259
2262
|
case 104:
|
|
@@ -2384,7 +2387,7 @@ function gn(t2, e2, n2) {
|
|
|
2384
2387
|
})(t2, e2, n2);
|
|
2385
2388
|
if (-1 !== e2.indexOf("%")) return (function(t3, e3, n3) {
|
|
2386
2389
|
let r3 = e3.replace(nn, ""), o3 = e3.length - r3.length;
|
|
2387
|
-
return pn(t3, r3, n3 * Math.pow(10, 2 * o3)) +
|
|
2390
|
+
return pn(t3, r3, n3 * Math.pow(10, 2 * o3)) + ke("%", o3);
|
|
2388
2391
|
})(t2, e2, n2);
|
|
2389
2392
|
if (-1 !== e2.indexOf("E")) return rn(e2, n2);
|
|
2390
2393
|
if (36 === e2.charCodeAt(0)) return "$" + gn(t2, e2.substr(" " === e2.charAt(1) ? 2 : 1), n2);
|
|
@@ -2393,7 +2396,7 @@ function gn(t2, e2, n2) {
|
|
|
2393
2396
|
if (e2.match(/^[#?]+$/)) return "0" === (o2 = ze(n2, 0)) && (o2 = ""), o2.length > e2.length ? o2 : cn(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2394
2397
|
if (s2 = e2.match(on)) return (function(t3, e3, n3) {
|
|
2395
2398
|
var r3 = parseInt(t3[4], 10), o3 = Math.round(e3 * r3), s3 = Math.floor(o3 / r3), i3 = o3 - s3 * r3, a3 = r3;
|
|
2396
|
-
return n3 + (0 === s3 ? "" : "" + s3) + " " + (0 === i3 ?
|
|
2399
|
+
return n3 + (0 === s3 ? "" : "" + s3) + " " + (0 === i3 ? ke(" ", t3[1].length + 1 + t3[4].length) : De(i3, t3[1].length) + t3[2] + "/" + t3[3] + Oe(a3, t3[4].length));
|
|
2397
2400
|
})(s2, l2, c2);
|
|
2398
2401
|
if (e2.match(/^#+0+$/)) return c2 + ze(l2, e2.length - e2.indexOf("0"));
|
|
2399
2402
|
if (s2 = e2.match(sn)) return i2 = Math.trunc(hn(n2, s2[2].length)), a2 = dn(Math.abs(i2 - n2), s2[2].length), a2 = (a2 = "" + dn(a2, (function(t3) {
|
|
@@ -2407,13 +2410,13 @@ function gn(t2, e2, n2) {
|
|
|
2407
2410
|
return e3 < ("" + Math.round((t3 - Math.floor(t3)) * Math.pow(10, e3))).length ? 1 : 0;
|
|
2408
2411
|
})(n2, s2[1].length))) + "." + Oe(un(n2, s2[1].length), s2[1].length);
|
|
2409
2412
|
if (s2 = e2.match(/^#,#*,#0/)) return gn(t2, e2.replace(/^#,#*,/, ""), n2);
|
|
2410
|
-
if (s2 = e2.match(/^([0#]+)(\\?-([0#]+))+$/)) return o2 =
|
|
2413
|
+
if (s2 = e2.match(/^([0#]+)(\\?-([0#]+))+$/)) return o2 = Fe(gn(t2, e2.replace(/[\\-]/g, ""), n2)), i2 = 0, Fe(Fe(e2.replace(/\\/g, "")).replace(/[0#]/g, function(t3) {
|
|
2411
2414
|
return i2 < o2.length ? o2.charAt(i2++) : "0" === t3 ? "0" : "";
|
|
2412
2415
|
}));
|
|
2413
2416
|
if (e2.match(ln)) return "(" + (o2 = gn(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
|
|
2414
2417
|
var h2 = "";
|
|
2415
2418
|
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 = Ge(l2, Math.pow(10, i2) - 1, false), o2 = "" + c2, " " === (h2 = pn("n", s2[1], a2[1])).charAt(h2.length - 1) && (h2 = h2.substr(0, h2.length - 1) + "0"), o2 += h2 + s2[2] + "/" + s2[3], (h2 = Be(a2[2], i2)).length < s2[4].length && (h2 = cn(s2[4].substr(s2[4].length - h2.length)) + h2), o2 += h2;
|
|
2416
|
-
if (s2 = e2.match(/[#0?] ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), a2 = Ge(l2, Math.pow(10, i2) - 1, true), c2 + gn(t2, e2.substring(0, s2.index + 1), a2[0]) + " " + (a2[1] ? De(a2[1], i2) + s2[2] + "/" + s2[3] + Be(a2[2], i2) :
|
|
2419
|
+
if (s2 = e2.match(/[#0?] ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), a2 = Ge(l2, Math.pow(10, i2) - 1, true), c2 + gn(t2, e2.substring(0, s2.index + 1), a2[0]) + " " + (a2[1] ? De(a2[1], i2) + s2[2] + "/" + s2[3] + Be(a2[2], i2) : ke(" ", 2 * i2 + 1 + s2[2].length + s2[3].length));
|
|
2417
2420
|
if (s2 = e2.match(/^[#0?]+$/)) return o2 = ze(n2, 0), e2.length <= o2.length ? o2 : cn(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2418
2421
|
if (s2 = e2.match(/^([#0?]+)\.([#0]+)$/)) {
|
|
2419
2422
|
o2 = "" + n2.toFixed(Math.min(s2[2].length, 10)).replace(/([^0])0+$/, "$1"), i2 = o2.indexOf(".");
|
|
@@ -2469,7 +2472,7 @@ function fn(t2, e2, n2) {
|
|
|
2469
2472
|
})(t2, e2, n2);
|
|
2470
2473
|
if (-1 !== e2.indexOf("%")) return (function(t3, e3, n3) {
|
|
2471
2474
|
var r3 = e3.replace(nn, ""), o3 = e3.length - r3.length;
|
|
2472
|
-
return pn(t3, r3, n3 * Math.pow(10, 2 * o3)) +
|
|
2475
|
+
return pn(t3, r3, n3 * Math.pow(10, 2 * o3)) + ke("%", o3);
|
|
2473
2476
|
})(t2, e2, n2);
|
|
2474
2477
|
if (-1 !== e2.indexOf("E")) return mn(e2, n2);
|
|
2475
2478
|
if (36 === e2.charCodeAt(0)) return "$" + fn(t2, e2.substr(" " === e2.charAt(1) ? 2 : 1), n2);
|
|
@@ -2477,23 +2480,23 @@ function fn(t2, e2, n2) {
|
|
|
2477
2480
|
if (e2.match(/^00+$/)) return c2 + Oe(l2, e2.length);
|
|
2478
2481
|
if (e2.match(/^[#?]+$/)) return o2 = "" + n2, 0 === n2 && (o2 = ""), o2.length > e2.length ? o2 : cn(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2479
2482
|
if (s2 = e2.match(on)) return (function(t3, e3, n3) {
|
|
2480
|
-
return n3 + (0 === e3 ? "" : "" + e3) +
|
|
2483
|
+
return n3 + (0 === e3 ? "" : "" + e3) + ke(" ", t3[1].length + 2 + t3[4].length);
|
|
2481
2484
|
})(s2, l2, c2);
|
|
2482
2485
|
if (e2.match(/^#+0+$/)) return c2 + Oe(l2, e2.length - e2.indexOf("0"));
|
|
2483
2486
|
if (s2 = e2.match(sn)) return o2 = ("" + n2).replace(/^([^.]+)$/, "." + cn(s2[2])).replace(/\.$/, "." + cn(s2[2])), o2 = Oe(Math.abs(n2), s2[1].length) + o2.replace(/\.(\d*)$/, function(t3, e3) {
|
|
2484
|
-
return "." + e3 +
|
|
2487
|
+
return "." + e3 + ke("0", cn(s2[2]).length - e3.length);
|
|
2485
2488
|
}), o2 = -1 !== e2.indexOf("0.") ? o2 : o2.replace(/^0\./, "."), n2 < 0 ? "-" + o2 : o2;
|
|
2486
2489
|
if (e2 = e2.replace(/^#+([0.])/, "$1"), s2 = e2.match(/^(0*)\.(#*)$/)) return c2 + ("" + l2).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, s2[1].length ? "0." : ".");
|
|
2487
2490
|
if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + en("" + l2);
|
|
2488
|
-
if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + fn(t2, e2, -n2) : en("" + n2) + "." +
|
|
2491
|
+
if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + fn(t2, e2, -n2) : en("" + n2) + "." + ke("0", s2[1].length);
|
|
2489
2492
|
if (s2 = e2.match(/^#,#*,#0/)) return fn(t2, e2.replace(/^#,#*,/, ""), n2);
|
|
2490
|
-
if (s2 = e2.match(/^([0#]+)(\\?-([0#]+))+$/)) return o2 =
|
|
2493
|
+
if (s2 = e2.match(/^([0#]+)(\\?-([0#]+))+$/)) return o2 = Fe(fn(t2, e2.replace(/[\\-]/g, ""), n2)), i2 = 0, Fe(Fe(e2.replace(/\\/g, "")).replace(/[0#]/g, function(t3) {
|
|
2491
2494
|
return i2 < o2.length ? o2.charAt(i2++) : "0" === t3 ? "0" : "";
|
|
2492
2495
|
}));
|
|
2493
2496
|
if (e2.match(ln)) return "(" + (o2 = fn(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
|
|
2494
2497
|
var h2 = "";
|
|
2495
2498
|
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 = Ge(l2, Math.pow(10, i2) - 1, false), o2 = "" + c2, " " === (h2 = pn("n", s2[1], a2[1])).charAt(h2.length - 1) && (h2 = h2.substr(0, h2.length - 1) + "0"), o2 += h2 + s2[2] + "/" + s2[3], (h2 = Be(a2[2], i2)).length < s2[4].length && (h2 = cn(s2[4].substr(s2[4].length - h2.length)) + h2), o2 += h2;
|
|
2496
|
-
if (s2 = e2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), c2 + ((a2 = Ge(l2, Math.pow(10, i2) - 1, true))[0] || (a2[1] ? "" : "0")) + " " + (a2[1] ? De(a2[1], i2) + s2[2] + "/" + s2[3] + Be(a2[2], i2) :
|
|
2499
|
+
if (s2 = e2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), c2 + ((a2 = Ge(l2, Math.pow(10, i2) - 1, true))[0] || (a2[1] ? "" : "0")) + " " + (a2[1] ? De(a2[1], i2) + s2[2] + "/" + s2[3] + Be(a2[2], i2) : ke(" ", 2 * i2 + 1 + s2[2].length + s2[3].length));
|
|
2497
2500
|
if (s2 = e2.match(/^[#0?]+$/)) return o2 = "" + n2, e2.length <= o2.length ? o2 : cn(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2498
2501
|
if (s2 = e2.match(/^([#0]+)\.([#0]+)$/)) {
|
|
2499
2502
|
o2 = "" + n2.toFixed(Math.min(s2[2].length, 10)).replace(/([^0])0+$/, "$1"), i2 = o2.indexOf(".");
|
|
@@ -2645,7 +2648,7 @@ function Cn(t2, e2, n2) {
|
|
|
2645
2648
|
r2 = "m/d/yy" === t2 && n2.dateNF ? n2.dateNF : t2;
|
|
2646
2649
|
break;
|
|
2647
2650
|
case "number":
|
|
2648
|
-
null == (r2 = 14 === t2 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : Ve)[t2]) && (r2 = n2.table && n2.table[
|
|
2651
|
+
null == (r2 = 14 === t2 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : Ve)[t2]) && (r2 = n2.table && n2.table[je[t2]] || Ve[je[t2]]), null == r2 && (r2 = $e[t2] || "General");
|
|
2649
2652
|
}
|
|
2650
2653
|
if (Pe(r2, 0)) return Ze(e2, n2);
|
|
2651
2654
|
Te(e2) && (e2 = Xe(e2, n2.date1904));
|
|
@@ -2896,7 +2899,7 @@ const vn = { format: Cn, dateNumLocal: Xe, load: bn, split_fmt: _n, _table: Ve,
|
|
|
2896
2899
|
for (var e2 = 0; 392 !== e2; ++e2) void 0 !== t2[e2] && bn(t2[e2], e2);
|
|
2897
2900
|
}, parse_date_code: Ue, is_date: wn, get_table: function() {
|
|
2898
2901
|
return vn._table = Ve;
|
|
2899
|
-
} }, xn = "\\s*([-]?[0-9e]*[.]?[0-9]+)", In = new RegExp(`^rgb\\(${xn},${xn},${xn}\\)$`), Rn = new RegExp(`^rgba\\(${xn},${xn},${xn},${xn}\\)$`), An = new RegExp(`^lrgb\\(${xn},${xn},${xn}\\)$`), Mn = new RegExp(`^lrgba\\(${xn},${xn},${xn},${xn}\\)$`), Tn = new RegExp(`^hsl\\(${xn},${xn},${xn}\\)$`), Nn = new RegExp(`^hsla\\(${xn},${xn},${xn},${xn}\\)$`),
|
|
2902
|
+
} }, xn = "\\s*([-]?[0-9e]*[.]?[0-9]+)", In = new RegExp(`^rgb\\(${xn},${xn},${xn}\\)$`), Rn = new RegExp(`^rgba\\(${xn},${xn},${xn},${xn}\\)$`), An = new RegExp(`^lrgb\\(${xn},${xn},${xn}\\)$`), Mn = new RegExp(`^lrgba\\(${xn},${xn},${xn},${xn}\\)$`), Tn = new RegExp(`^hsl\\(${xn},${xn},${xn}\\)$`), Nn = new RegExp(`^hsla\\(${xn},${xn},${xn},${xn}\\)$`), kn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), Fn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), On = new RegExp("^index(\\d+)$", "i"), Dn = (t2, e2, n2) => [parseFloat(t2), parseFloat(e2), parseFloat(n2)], Bn = (t2, e2 = 255) => {
|
|
2900
2903
|
const n2 = [...t2];
|
|
2901
2904
|
for (var r2 = 0; r2 < t2.length; r2++) n2[r2] = t2[r2] / e2;
|
|
2902
2905
|
return n2;
|
|
@@ -2908,15 +2911,15 @@ const vn = { format: Cn, dateNumLocal: Xe, load: bn, split_fmt: _n, _table: Ve,
|
|
|
2908
2911
|
const n2 = [...t2], r2 = e2 ? 1 : 255;
|
|
2909
2912
|
for (var o2 = 0; o2 < t2.length; o2++) n2[o2] = Math.max(0, Math.min(r2, t2[o2]));
|
|
2910
2913
|
return n2;
|
|
2911
|
-
}, Pn = (t2) => Math.max(0, Math.min(1, t2)),
|
|
2914
|
+
}, Pn = (t2) => Math.max(0, Math.min(1, t2)), Hn = (t2) => ((t2 %= 360) < 0 && (t2 -= 360), t2), Wn = (t2) => {
|
|
2912
2915
|
const e2 = [...t2];
|
|
2913
|
-
for (var n2 = 0; n2 < t2.length; n2++) e2[n2] =
|
|
2916
|
+
for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = jn(t2[n2]);
|
|
2914
2917
|
return e2;
|
|
2915
2918
|
}, Vn = (t2) => {
|
|
2916
2919
|
const e2 = [...t2];
|
|
2917
|
-
for (var n2 = 0; n2 < t2.length; n2++) e2[n2] =
|
|
2920
|
+
for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = $n(t2[n2]);
|
|
2918
2921
|
return e2;
|
|
2919
|
-
},
|
|
2922
|
+
}, jn = (t2) => t2 < 0.04045 ? t2 / 12.92 : Math.pow((t2 + 0.055) / 1.055, 2.4), $n = (t2) => t2 < 31308e-7 ? 12.92 * t2 : 1.055 * Math.pow(t2, 1 / 2.4) - 0.055, Gn = (t2) => {
|
|
2920
2923
|
let e2 = t2[0], n2 = t2[1], r2 = t2[2];
|
|
2921
2924
|
e2 %= 360, e2 /= 360, n2 /= 100, r2 /= 100;
|
|
2922
2925
|
let o2 = r2 < 0.5 ? r2 * (1 + n2) : r2 + n2 - n2 * r2, s2 = 2 * r2 - o2;
|
|
@@ -2930,7 +2933,7 @@ const vn = { format: Cn, dateNumLocal: Xe, load: bn, split_fmt: _n, _table: Ve,
|
|
|
2930
2933
|
}, qn = 0, Kn = 1, Xn = 2, Yn = 0, Qn = 1, Zn = 2, tr = 0, er = 1, nr = 2, rr = (t2, e2) => {
|
|
2931
2934
|
let n2 = e2 / 100;
|
|
2932
2935
|
return ((t3, e3) => {
|
|
2933
|
-
let n3 =
|
|
2936
|
+
let n3 = Wn(t3);
|
|
2934
2937
|
n3[0] = e3(n3[0], n3), n3[1] = e3(n3[1], n3), n3[2] = e3(n3[2], n3);
|
|
2935
2938
|
let r2 = Vn(n3);
|
|
2936
2939
|
return r2 = zn(r2), r2;
|
|
@@ -2942,13 +2945,13 @@ const vn = { format: Cn, dateNumLocal: Xe, load: bn, split_fmt: _n, _table: Ve,
|
|
|
2942
2945
|
let l2 = Gn(n2);
|
|
2943
2946
|
return l2 = zn(l2), l2;
|
|
2944
2947
|
}, ir = (t2, e2) => {
|
|
2945
|
-
let n2 =
|
|
2948
|
+
let n2 = Wn(t2), r2 = e2 / 100;
|
|
2946
2949
|
for (var o2 = 0; o2 < 3; o2++) n2[o2] = n2[o2] * r2 + (1 - r2);
|
|
2947
2950
|
let s2 = Vn(n2);
|
|
2948
2951
|
return s2 = zn(s2), s2;
|
|
2949
2952
|
}, ar = (t2, e2, n2) => {
|
|
2950
2953
|
let r2 = Jn(e2), o2 = n2 / 1;
|
|
2951
|
-
t2 === qn && (o2 =
|
|
2954
|
+
t2 === qn && (o2 = Hn(n2)), r2[t2] = o2;
|
|
2952
2955
|
let s2 = Gn(r2);
|
|
2953
2956
|
return s2 = zn(s2), s2;
|
|
2954
2957
|
}, lr = (t2, e2, n2) => {
|
|
@@ -2964,16 +2967,16 @@ const vn = { format: Cn, dateNumLocal: Xe, load: bn, split_fmt: _n, _table: Ve,
|
|
|
2964
2967
|
return o2 = zn(o2), o2;
|
|
2965
2968
|
}, cr = (t2, e2, n2) => {
|
|
2966
2969
|
let r2 = Jn(e2), o2 = n2 / 100;
|
|
2967
|
-
r2[t2] = r2[t2] * o2, t2 === qn && (r2[qn] =
|
|
2970
|
+
r2[t2] = r2[t2] * o2, t2 === qn && (r2[qn] = Hn(r2[qn]));
|
|
2968
2971
|
let s2 = Gn(r2);
|
|
2969
2972
|
return s2 = zn(s2), s2;
|
|
2970
2973
|
}, hr = (t2, e2, n2, r2) => {
|
|
2971
|
-
let o2 =
|
|
2974
|
+
let o2 = Wn(e2), s2 = n2 / 100;
|
|
2972
2975
|
r2 === tr ? o2[t2] = s2 : r2 === er ? o2[t2] += s2 : r2 === nr && (o2[t2] *= s2);
|
|
2973
2976
|
let i2 = Vn(o2);
|
|
2974
2977
|
return i2 = zn(i2), i2;
|
|
2975
2978
|
}, dr = (t2) => {
|
|
2976
|
-
let e2 =
|
|
2979
|
+
let e2 = Wn(t2), n2 = 0.213 * e2[Yn] + 0.715 * e2[Qn] + 0.072 * e2[Zn];
|
|
2977
2980
|
e2[0] = n2, e2[1] = n2, e2[2] = n2;
|
|
2978
2981
|
let r2 = Vn(e2);
|
|
2979
2982
|
return r2 = zn(r2), r2;
|
|
@@ -2983,16 +2986,16 @@ const vn = { format: Cn, dateNumLocal: Xe, load: bn, split_fmt: _n, _table: Ve,
|
|
|
2983
2986
|
let n2 = Gn(e2);
|
|
2984
2987
|
return n2 = zn(n2), n2;
|
|
2985
2988
|
}, gr = (t2, e2 = true) => {
|
|
2986
|
-
let n2 = e2 ?
|
|
2989
|
+
let n2 = e2 ? Wn(t2) : [...t2];
|
|
2987
2990
|
const r2 = e2 ? 1 : 255;
|
|
2988
2991
|
return n2[0] = r2 - n2[0], n2[1] = r2 - n2[1], n2[2] = r2 - n2[2], e2 && (n2 = Vn(n2)), n2 = zn(n2, e2), n2;
|
|
2989
2992
|
}, mr = (t2) => {
|
|
2990
2993
|
const e2 = [0, 0, 0];
|
|
2991
|
-
e2[0] =
|
|
2994
|
+
e2[0] = $n(t2[0]), e2[1] = $n(t2[1]), e2[2] = $n(t2[2]);
|
|
2992
2995
|
return zn(e2);
|
|
2993
2996
|
}, fr = (t2) => {
|
|
2994
2997
|
const e2 = [0, 0, 0];
|
|
2995
|
-
e2[0] =
|
|
2998
|
+
e2[0] = jn(t2[0]), e2[1] = jn(t2[1]), e2[2] = jn(t2[2]);
|
|
2996
2999
|
return zn(e2);
|
|
2997
3000
|
}, pr = (t2, e2, n2, r2 = null) => {
|
|
2998
3001
|
const o2 = (t3) => {
|
|
@@ -3078,7 +3081,7 @@ for (let t2 = 0; t2 < vr.length; t2++) xr.set(t2, br(vr[t2]));
|
|
|
3078
3081
|
xr.set(-4105, null), xr.set(-4142, null), xr.set(64, br("000000")), xr.set(65, br("FFFFFF")), xr.set(81, br("FFFFFF"));
|
|
3079
3082
|
const Ir = (t2) => xr.get(t2), Rr = { General: "General", Number: "Number", Currency: "Currency", Accounting: "Accounting", ShortDate: "Short Date", LongDate: "Long Date", MediumDate: "Medium Date", ShortTime: "Short Time", MediumTime: "Medium Time", LongTime: "Long Time", Comma: "Comma", Percentage: "Percentage", Fraction: "Fraction", Scientific: "Scientific", Text: "Text", Special: "Special", Custom: "Custom" };
|
|
3080
3083
|
let Ar = null;
|
|
3081
|
-
const Mr = () => Ar || (Ar = Intl.DateTimeFormat().resolvedOptions().locale ?? "en-US", Ar), Tr = /^\[\$-(.*?)\]/i, Nr = /^[0-9a-fA-F]+$/,
|
|
3084
|
+
const Mr = () => Ar || (Ar = Intl.DateTimeFormat().resolvedOptions().locale ?? "en-US", Ar), Tr = /^\[\$-(.*?)\]/i, Nr = /^[0-9a-fA-F]+$/, kr = vn.split_fmt, Fr = (t2, e2, n2) => {
|
|
3082
3085
|
const r2 = Tr.exec(t2);
|
|
3083
3086
|
let o2 = Mr();
|
|
3084
3087
|
if (r2 && r2[1]) {
|
|
@@ -3130,8 +3133,8 @@ const Mr = () => Ar || (Ar = Intl.DateTimeFormat().resolvedOptions().locale ?? "
|
|
|
3130
3133
|
void 0 !== n2 && (e2 = Ir(n2).toString());
|
|
3131
3134
|
}
|
|
3132
3135
|
return e2;
|
|
3133
|
-
}, zr = "=", Pr = "<>",
|
|
3134
|
-
|
|
3136
|
+
}, zr = "=", Pr = "<>", Hr = ">", Wr = "<", Vr = ">=", jr = "<=", $r = /* @__PURE__ */ new Map();
|
|
3137
|
+
$r.set(zr, (t2, e2) => t2 === e2), $r.set(Pr, (t2, e2) => t2 !== e2), $r.set(Hr, (t2, e2) => t2 > e2), $r.set(Wr, (t2, e2) => t2 < e2), $r.set(Vr, (t2, e2) => t2 >= e2), $r.set(jr, (t2, e2) => t2 <= e2);
|
|
3135
3138
|
const Gr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Ur = /(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)/i, Jr = /\[(.*?)\]/g, qr = (t2, e2) => {
|
|
3136
3139
|
const n2 = { color: null, condition: null };
|
|
3137
3140
|
let r2 = null, o2 = new RegExp(Jr);
|
|
@@ -3149,7 +3152,7 @@ const Gr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Ur =
|
|
|
3149
3152
|
if (!e3) return n2;
|
|
3150
3153
|
}
|
|
3151
3154
|
return n2.condition || (n2.condition = e2), n2;
|
|
3152
|
-
}, Kr = Object.freeze({ op: Vr, comp: 0 }), Xr = Object.freeze({ op:
|
|
3155
|
+
}, Kr = Object.freeze({ op: Vr, comp: 0 }), Xr = Object.freeze({ op: Wr, comp: 0 }), Yr = Object.freeze({ op: Hr, comp: 0 }), Qr = Object.freeze({ op: zr, comp: 0 }), Zr = (t2, e2) => {
|
|
3153
3156
|
let n2 = ((t3) => {
|
|
3154
3157
|
if (!t3) return o.EmptyArray;
|
|
3155
3158
|
const e3 = [], n3 = t3.split(";"), r3 = n3.length;
|
|
@@ -3170,7 +3173,7 @@ const Gr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Ur =
|
|
|
3170
3173
|
let r3 = s2?.condition ?? void 0;
|
|
3171
3174
|
if (3 === t3) return "string" == typeof e2 && s2?.color ? s2.color : null;
|
|
3172
3175
|
if (r3 && "number" == typeof e2) {
|
|
3173
|
-
if (
|
|
3176
|
+
if ($r.get(r3.op)(e2, r3.comp)) return s2?.color ?? null;
|
|
3174
3177
|
}
|
|
3175
3178
|
}
|
|
3176
3179
|
}, to = (t2) => {
|
|
@@ -3307,7 +3310,7 @@ const Gr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Ur =
|
|
|
3307
3310
|
c2.setFullYear(t4);
|
|
3308
3311
|
}
|
|
3309
3312
|
if (uo[t3].todaysYear && c2.setFullYear(o2), h2 = vn.dateNumLocal(c2, e2), uo[t3].parseFormat.indexOf("EEE") > -1) {
|
|
3310
|
-
const t4 =
|
|
3313
|
+
const t4 = Fr("ddd", h2, { date1904: e2 });
|
|
3311
3314
|
if (!n3.toLowerCase().includes(t4.toLowerCase())) return null;
|
|
3312
3315
|
}
|
|
3313
3316
|
let r3 = uo[t3].numberFormat;
|
|
@@ -3353,14 +3356,14 @@ const Mo = (t2, e2, n2 = 1e3) => {
|
|
|
3353
3356
|
if (!t2 || "string" != typeof t2) return "";
|
|
3354
3357
|
const e2 = t2.split(/[\\/]/).pop() || "", n2 = e2.lastIndexOf(".");
|
|
3355
3358
|
return "" === e2 || n2 < 1 ? "" : e2.slice(n2 + 1);
|
|
3356
|
-
},
|
|
3359
|
+
}, ko = (t2) => t2.toLowerCase().replace(/([-_][a-z])/g, (t3) => t3.toUpperCase().replace("-", "").replace("_", "")), Fo = (t2, e2 = 36) => t2.substring(0, 36) + (t2.length > e2 ? "…" : ""), Oo = (t2) => {
|
|
3357
3360
|
if (void 0 === t2) return 0;
|
|
3358
3361
|
let e2 = t2.toString().split(".");
|
|
3359
3362
|
return e2.length <= 1 ? 0 : e2[1].length || 0;
|
|
3360
|
-
}, Do = new RegExp(/^["|'|`](.*)["|'|`]$/), Bo = new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$", "i"), Lo = (t2 = ",", e2 = "'") => new RegExp(`\\s*${t2}\\s*(?=(?:[^${e2}]*${e2}[^${e2}]*${e2})*[^${e2}]*$)`, "g"), zo = Lo(), Po = (t2) => t2 && t2.length > 1 && Do.test(t2) && t2[0] === t2[t2.length - 1],
|
|
3363
|
+
}, Do = new RegExp(/^["|'|`](.*)["|'|`]$/), Bo = new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$", "i"), Lo = (t2 = ",", e2 = "'") => new RegExp(`\\s*${t2}\\s*(?=(?:[^${e2}]*${e2}[^${e2}]*${e2})*[^${e2}]*$)`, "g"), zo = Lo(), Po = (t2) => t2 && t2.length > 1 && Do.test(t2) && t2[0] === t2[t2.length - 1], Ho = (t2) => t2.replace(Do, "$1"), Wo = (t2, e2 = "'") => `${e2}${t2}${e2}`, Vo = (t2, e2 = void 0, n2 = void 0) => {
|
|
3361
3364
|
let r2 = zo;
|
|
3362
3365
|
return void 0 === e2 && void 0 === n2 || (r2 = Lo(e2, n2)), t2.split(r2);
|
|
3363
|
-
},
|
|
3366
|
+
}, jo = (t2) => {
|
|
3364
3367
|
let e2;
|
|
3365
3368
|
try {
|
|
3366
3369
|
e2 = new URL(t2);
|
|
@@ -3368,13 +3371,13 @@ const Mo = (t2, e2, n2 = 1e3) => {
|
|
|
3368
3371
|
return false;
|
|
3369
3372
|
}
|
|
3370
3373
|
return ("http:" === e2.protocol || "https:" === e2.protocol) && Bo.test(t2);
|
|
3371
|
-
},
|
|
3374
|
+
}, $o = new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/i), Go = (t2) => !!t2.toLowerCase().startsWith("mailto:") || $o.test(t2), Uo = (t2) => ((t2 >= 26 ? Uo((t2 / 26 | 0) - 1) : "") + "abcdefghijklmnopqrstuvwxyz"[t2 % 26 | 0]).toUpperCase(), Jo = Object.freeze(Object.defineProperty({ __proto__: null, DefaultUnQuoteRegEx: zo, camelToSnake: (t2) => t2 ? t2.replace(/[A-Z]/g, (t3) => `_${t3.toLowerCase()}`) : t2, capitalize: To, clampString: Fo, countDecimals: Oo, findValidTextValue: Mo, getBaseName: (t2, e2 = false) => {
|
|
3372
3375
|
if (!t2 || "string" != typeof t2) return "";
|
|
3373
3376
|
const n2 = t2.split(/[\\/]/).pop() || "";
|
|
3374
3377
|
if ("" === n2) return "";
|
|
3375
3378
|
const r2 = No(n2), o2 = 0 === r2.length ? n2 : n2.slice(0, n2.length - r2.length - 1);
|
|
3376
3379
|
return e2 ? To(o2, true) : o2;
|
|
3377
|
-
}, getFileNameExtension: No, isQuoted: Po, isValidEmail: Go, isValidHttpUrl:
|
|
3380
|
+
}, getFileNameExtension: No, isQuoted: Po, isValidEmail: Go, isValidHttpUrl: jo, numberToAlphabet: Uo, quote: Wo, snakeToCamel: ko, splitUnquoted: Vo, unquote: Ho }, Symbol.toStringTag, { value: "Module" })), qo = (t2, e2, n2, r2 = null) => {
|
|
3378
3381
|
const o2 = (e2 || 11 * rs.getDeviceScale()) / rs.getDeviceScale(), s2 = r2?.letterSpacing || 0, i2 = t2.length;
|
|
3379
3382
|
const a2 = i2 * (0.55 * o2) - (t2.match(/[il.,;!|]/g) || []).length * o2 * 0.15 + (t2.match(/[mwMW]/g) || []).length * o2 * 0.1 + (i2 > 0 ? (i2 - 1) * s2 : 0), l2 = Math.ceil(1.2 * o2), c2 = Math.ceil(0.8 * o2), h2 = Math.ceil(0.2 * o2), d2 = Math.ceil(0.45 * o2), u2 = Math.ceil(1.1 * o2), g2 = Math.max(1, Math.ceil(0.08 * o2));
|
|
3380
3383
|
return { width: a2, lineHeight: l2, baseline: c2, lineGap: h2, strikePosition: d2, underlinePosition: u2, strikeThickness: g2, underlineThickness: g2, actualBoundingBoxLeft: 0, actualBoundingBoxRight: a2, actualBoundingBoxAscent: c2, actualBoundingBoxDescent: l2 - c2, fontBoundingBoxAscent: c2, fontBoundingBoxDescent: l2 - c2, emHeightAscent: c2, emHeightDescent: l2 - c2, hangingBaseline: 0.8 * c2, alphabeticBaseline: c2, ideographicBaseline: l2 };
|
|
@@ -3857,7 +3860,7 @@ function Ts(t2, e2, n2, r2) {
|
|
|
3857
3860
|
function Ns(t2) {
|
|
3858
3861
|
return null == t2;
|
|
3859
3862
|
}
|
|
3860
|
-
function
|
|
3863
|
+
function ks(t2, e2, n2 = 1, r2) {
|
|
3861
3864
|
if (0 === n2) return { preceding: t2 ? [...t2] : [], modified: [], trailing: [] };
|
|
3862
3865
|
const s2 = (function(t3, e3, n3 = 1) {
|
|
3863
3866
|
let r3 = o.findEqualOrGreater(t3, e3, (t4) => t4.max);
|
|
@@ -3870,7 +3873,7 @@ function Fs(t2, e2, n2 = 1, r2) {
|
|
|
3870
3873
|
i2.length > 0 && l2.push(i2.pop()), l2 = l2.concat(s2.modified), a2.length > 0 && l2.push(a2.shift());
|
|
3871
3874
|
return { preceding: i2, modified: Ds(l2, { onMerge: Ts }).modified, trailing: a2 };
|
|
3872
3875
|
}
|
|
3873
|
-
function
|
|
3876
|
+
function Fs(t2, e2, n2) {
|
|
3874
3877
|
if (!t2) throw new Error("runs can not be null");
|
|
3875
3878
|
if (!e2) return { preceding: [], modified: t2 ? [...t2] : [], trailing: [] };
|
|
3876
3879
|
const r2 = (function(t3, e3, n3, r3, s3 = false) {
|
|
@@ -3947,7 +3950,7 @@ const Ls = (t2, e2 = false) => {
|
|
|
3947
3950
|
}, zs = (t2, e2) => t2 ? e2 ? t2 || e2 ? t2.min > e2.max || t2.max < e2.min ? null : { min: Math.max(t2.min, e2.min), max: Math.min(t2.max, e2.max) } : null : { ...t2 } : { ...e2 }, Ps = (t2) => {
|
|
3948
3951
|
const e2 = 0 === t2.length;
|
|
3949
3952
|
return { runs: t2, run: { min: e2 ? Number.MIN_SAFE_INTEGER : Number.MAX_SAFE_INTEGER, max: e2 ? Number.MAX_SAFE_INTEGER : Number.MIN_SAFE_INTEGER, value: null }, index: Number.MAX_SAFE_INTEGER };
|
|
3950
|
-
},
|
|
3953
|
+
}, Hs = (t2, e2) => {
|
|
3951
3954
|
const n2 = e2.run, r2 = n2.min, s2 = n2.max;
|
|
3952
3955
|
if (t2 >= r2 && t2 <= s2) return n2.value;
|
|
3953
3956
|
let i2 = e2.index;
|
|
@@ -3970,7 +3973,7 @@ const Ls = (t2, e2 = false) => {
|
|
|
3970
3973
|
return n2.value = t3, t3;
|
|
3971
3974
|
}
|
|
3972
3975
|
return i2--, e2.index = i2, n2.min = i2 >= 0 ? a2[i2].max + 1 : Number.MIN_SAFE_INTEGER, n2.max = c2 - 1, n2.value = null, null;
|
|
3973
|
-
},
|
|
3976
|
+
}, Ws = function(t2, e2, n2, r2) {
|
|
3974
3977
|
if (0 === t2.length) {
|
|
3975
3978
|
if (null != n2 || null != r2) {
|
|
3976
3979
|
const t3 = e2({ min: n2 ?? r2, max: r2 ?? n2 });
|
|
@@ -3994,7 +3997,7 @@ const Ls = (t2, e2 = false) => {
|
|
|
3994
3997
|
if (t3 && t3.break) return t3;
|
|
3995
3998
|
}
|
|
3996
3999
|
}, Vs = new RegExp("([0-9]+)$");
|
|
3997
|
-
var $s,
|
|
4000
|
+
var js, $s, Gs, Us, Js, qs;
|
|
3998
4001
|
((t2) => {
|
|
3999
4002
|
t2.Date = class {
|
|
4000
4003
|
constructor(t3) {
|
|
@@ -4246,7 +4249,7 @@ var $s, js, Gs, Us, Js, qs;
|
|
|
4246
4249
|
}
|
|
4247
4250
|
const f2 = Ps(a2);
|
|
4248
4251
|
return (t4) => {
|
|
4249
|
-
const e4 = t4 >= 0, n4 = Math.abs(t4), o4 =
|
|
4252
|
+
const e4 = t4 >= 0, n4 = Math.abs(t4), o4 = Hs(n4 % r3, f2);
|
|
4250
4253
|
if (!o4) return null;
|
|
4251
4254
|
const s4 = Math.floor(n4 / r3), i4 = o4.length, a3 = o4.start, l3 = (s4 + (e4 ? 1 : 0)) * a3 + (s4 + (e4 ? 0 : 1)) * (r3 - (a3 + i4));
|
|
4252
4255
|
let c3 = t4 + (e4 ? -l3 : l3);
|
|
@@ -4265,7 +4268,7 @@ var $s, js, Gs, Us, Js, qs;
|
|
|
4265
4268
|
for (let t4 = s3; t4 < n3; t4++) o3.push(i3(t4));
|
|
4266
4269
|
return o3;
|
|
4267
4270
|
};
|
|
4268
|
-
})(
|
|
4271
|
+
})(js || (js = {})), $s || ($s = {}), (Us = Gs || (Gs = {})).Type = { None: "none", Solid: "solid", Gradient: "gradient", Pattern: "pattern", Image: "pattern", Background: "background", Group: "group", Custom: "custom" }, Us.GradientType = { Linear: "linear", Path: "path", Circular: "circular", Rect: "rect" }, Us.TileMirror = { None: "none", Vertical: "v", Horizontal: "h", Both: "b" }, Us.BuiltInSheetPattern = { None: "none", Solid: "solid", DarkGray: "darkGray", MediumGray: "mediumGray", LightGray: "lightGray", Gray0625: "gray0625", Gray125: "gray125", DarkHorizontal: "darkHorizontal", DarkVertical: "darkVertical", DarkDown: "darkDown", DarkUp: "darkUp", DarkGrid: "darkGrid", DarkTrellis: "darkTrellis", LightHorizontal: "lightHorizontal", LightVertical: "lightVertical", LightDown: "lightDown", LightUp: "lightUp", LightGrid: "lightGrid", LightTrellis: "lightTrellis", Custom: "custom" }, (qs = Js || (Js = {})).AdjustmentType = { Alpha: "alpha", AlphaOff: "alphaOff", AlphaMod: "alphaMod", Hue: "hue", Sat: "sat", Lum: "lum", HueOff: "hueOff", SatOff: "satOff", LumOff: "lumOff", HueMod: "hueMod", SatMod: "satMod", LumMod: "lumMod", Red: "red", Green: "green", Blue: "blue", RedOff: "redOff", GreenOff: "greenOff", BlueOff: "blueOff", RedMod: "redMod", GreenMod: "greenMod", BlueMod: "blueMod", Shade: "shade", Tint: "tint", ETint: "eTint", Gray: "gray", Comp: "comp", Inv: "inv", Gamma: "gamma", InvGamma: "invGamma" }, qs.Named = { ActiveBorder: "activeBorder", ActiveCaption: "activeCaption", CaptionText: "captionText", AppWorkspace: "appWorkspace", BtnFace: "btnFace", BtnShadow: "btnShadow", DkShadow3d: "3dDkShadow", BtnHighlight: "btnHighlight", Light3d: "3dLight", BtnText: "btnText", Background: "background", GrayText: "grayText", Highlight: "highlight", HighlightText: "highlightText", HotLight: "hotLight", InactiveBorder: "inactiveBorder", InactiveCaption: "inactiveCaption", InactiveCaptionText: "inactiveCaptionText", InfoBk: "infoBk", InfoText: "infoText", Menu: "menu", MenuText: "menuText", ScrollBar: "scrollBar", Window: "window", WindowFrame: "windowFrame", WindowText: "windowText", Transparent: "transparent", AliceBlue: "aliceBlue", AntiqueWhite: "antiqueWhite", Aqua: "aqua", Aquamarine: "aquamarine", Azure: "azure", Beige: "beige", Bisque: "bisque", Black: "black", BlanchedAlmond: "blanchedAlmond", Blue: "blue", BlueViolet: "blueViolet", Brown: "brown", BurlyWood: "burlyWood", CadetBlue: "cadetBlue", Chartreuse: "chartreuse", Chocolate: "chocolate", Coral: "coral", CornflowerBlue: "cornflowerBlue", Cornsilk: "cornsilk", Crimson: "crimson", Cyan: "cyan", DkBlue: "dkBlue", DkCyan: "dkCyan", DkGoldenrod: "dkGoldenrod", DkGray: "dkGray", DkGreen: "dkGreen", DkKhaki: "dkKhaki", DkMagenta: "dkMagenta", DkOliveGreen: "dkOliveGreen", DkOrange: "dkOrange", DkOrchid: "dkOrchid", DkRed: "dkRed", DkSalmon: "dkSalmon", DkSeaGreen: "dkSeaGreen", DkSlateBlue: "dkSlateBlue", DkSlateGray: "dkSlateGray", DkTurquoise: "dkTurquoise", DkViolet: "dkViolet", DeepPink: "deepPink", DeepSkyBlue: "deepSkyBlue", DimGray: "dimGray", DodgerBlue: "dodgerBlue", Firebrick: "firebrick", FloralWhite: "floralWhite", ForestGreen: "forestGreen", Fuchsia: "fuchsia", Gainsboro: "gainsboro", GhostWhite: "ghostWhite", Gold: "gold", Goldenrod: "goldenrod", Gray: "gray", Green: "green", GreenYellow: "greenYellow", Honeydew: "honeydew", HotPink: "hotPink", IndianRed: "indianRed", Indigo: "indigo", Ivory: "ivory", Khaki: "khaki", Lavender: "lavender", LavenderBlush: "lavenderBlush", LawnGreen: "lawnGreen", LemonChiffon: "lemonChiffon", LtBlue: "ltBlue", LtCoral: "ltCoral", LtCyan: "ltCyan", LtGoldenrodYellow: "ltGoldenrodYellow", LtGray: "ltGray", LtGreen: "ltGreen", LtPink: "ltPink", LtSalmon: "ltSalmon", LtSeaGreen: "ltSeaGreen", LtSkyBlue: "ltSkyBlue", LtSlateGray: "ltSlateGray", LtSteelBlue: "ltSteelBlue", LtYellow: "ltYellow", Lime: "lime", LimeGreen: "limeGreen", Linen: "linen", Magenta: "magenta", Maroon: "maroon", MedAquamarine: "medAquamarine", MedBlue: "medBlue", MedOrchid: "medOrchid", MedPurple: "medPurple", MedSeaGreen: "medSeaGreen", MedSlateBlue: "medSlateBlue", MedSpringGreen: "medSpringGreen", MedTurquoise: "medTurquoise", MedVioletRed: "medVioletRed", MidnightBlue: "midnightBlue", MintCream: "mintCream", MistyRose: "mistyRose", Moccasin: "moccasin", NavajoWhite: "navajoWhite", Navy: "navy", OldLace: "oldLace", Olive: "olive", OliveDrab: "oliveDrab", Orange: "orange", OrangeRed: "orangeRed", Orchid: "orchid", PaleGoldenrod: "paleGoldenrod", PaleGreen: "paleGreen", PaleTurquoise: "paleTurquoise", PaleVioletRed: "paleVioletRed", PapayaWhip: "papayaWhip", PeachPuff: "peachPuff", Peru: "peru", Pink: "pink", Plum: "plum", PowderBlue: "powderBlue", Purple: "purple", Red: "red", RosyBrown: "rosyBrown", RoyalBlue: "royalBlue", SaddleBrown: "saddleBrown", Salmon: "salmon", SandyBrown: "sandyBrown", SeaGreen: "seaGreen", SeaShell: "seaShell", Sienna: "sienna", Silver: "silver", SkyBlue: "skyBlue", SlateBlue: "slateBlue", SlateGray: "slateGray", Snow: "snow", SpringGreen: "springGreen", SteelBlue: "steelBlue", Tan: "tan", Teal: "teal", Thistle: "thistle", Tomato: "tomato", Turquoise: "turquoise", Violet: "violet", Wheat: "wheat", White: "white", WhiteSmoke: "whiteSmoke", Yellow: "yellow", YellowGreen: "yellowGreen", ButtonFace: "buttonFace", ButtonHighlight: "buttonHighlight", ButtonShadow: "buttonShadow", GradientActiveCaption: "gradientActiveCaption", GradientInactiveCaption: "gradientInactiveCaption", MenuBar: "menuBar", MenuHighlight: "menuHighlight" }, qs.Scheme = { Bg1: "bg1", Bg2: "bg2", Tx1: "tx1", Tx2: "tx2", Accent1: "accent1", Accent2: "accent2", Accent3: "accent3", Accent4: "accent4", Accent5: "accent5", Accent6: "accent6", Hlink: "hlink", FolHlink: "folHlink" }, qs.Type = { Scheme: "scheme", Named: "named", Index: "index", HSL: "hsl", RGB: "rgb", LRGB: "lrgb", Hex: "hex" };
|
|
4269
4272
|
const Ks = [[4290032820, 1, Js.Named.ActiveBorder, true], [4288263377, 2, Js.Named.ActiveCaption, true], [4278190080, 3, Js.Named.CaptionText, true], [4289440683, 4, Js.Named.AppWorkspace, true], [4293980400, 5, Js.Named.BtnFace, true], [4285098345, 6, Js.Named.BtnShadow, true], [4278190080, 7, Js.Named.DkShadow3d, true], [4293125091, 8, Js.Named.BtnHighlight, true], [4293125091, 9, Js.Named.Light3d, true], [4278190080, 10, Js.Named.BtnText, true], [4278190080, 11, Js.Named.Background, true], [4285361517, 12, Js.Named.GrayText, true], [4281571839, 13, Js.Named.Highlight, true], [4294967295, 14, Js.Named.HighlightText, true], [4278216396, 15, Js.Named.HotLight, true], [4294244348, 16, Js.Named.InactiveBorder, true], [4290760155, 17, Js.Named.InactiveCaption, true], [4278190080, 18, Js.Named.InactiveCaptionText, true], [4294967265, 19, Js.Named.InfoBk, true], [4278190080, 20, Js.Named.InfoText, true], [4293980400, 21, Js.Named.Menu, true], [4278190080, 22, Js.Named.MenuText, true], [4291348680, 23, Js.Named.ScrollBar, true], [4294967295, 24, Js.Named.Window, true], [4284769380, 25, Js.Named.WindowFrame, true], [4278190080, 26, Js.Named.WindowText, true], [16777215, 27, Js.Named.Transparent], [4293982463, 28, Js.Named.AliceBlue], [4294634455, 29, Js.Named.AntiqueWhite], [4278255615, 30, Js.Named.Aqua], [4286578644, 31, Js.Named.Aquamarine], [4293984255, 32, Js.Named.Azure], [4294309340, 33, Js.Named.Beige], [4294960324, 34, Js.Named.Bisque], [4278190080, 35, Js.Named.Black], [4294962125, 36, Js.Named.BlanchedAlmond], [4278190335, 37, Js.Named.Blue], [4287245282, 38, Js.Named.BlueViolet], [4289014314, 39, Js.Named.Brown], [4292786311, 40, Js.Named.BurlyWood], [4284456608, 41, Js.Named.CadetBlue], [4286578432, 42, Js.Named.Chartreuse], [4291979550, 43, Js.Named.Chocolate], [4294934352, 44, Js.Named.Coral], [4284782061, 45, Js.Named.CornflowerBlue], [4294965468, 46, Js.Named.Cornsilk], [4292613180, 47, Js.Named.Crimson], [4278255615, 48, Js.Named.Cyan], [4278190219, 49, Js.Named.DkBlue], [4278225803, 50, Js.Named.DkCyan], [4290283019, 51, Js.Named.DkGoldenrod], [4289309097, 52, Js.Named.DkGray], [4278215680, 53, Js.Named.DkGreen], [4290623339, 54, Js.Named.DkKhaki], [4287299723, 55, Js.Named.DkMagenta], [4283788079, 56, Js.Named.DkOliveGreen], [4294937600, 57, Js.Named.DkOrange], [4288230092, 58, Js.Named.DkOrchid], [4287299584, 59, Js.Named.DkRed], [4293498490, 60, Js.Named.DkSalmon], [4287609995, 61, Js.Named.DkSeaGreen], [4282924427, 62, Js.Named.DkSlateBlue], [4281290575, 63, Js.Named.DkSlateGray], [4278243025, 64, Js.Named.DkTurquoise], [4287889619, 65, Js.Named.DkViolet], [4294907027, 66, Js.Named.DeepPink], [4278239231, 67, Js.Named.DeepSkyBlue], [4285098345, 68, Js.Named.DimGray], [4280193279, 69, Js.Named.DodgerBlue], [4289864226, 70, Js.Named.Firebrick], [4294966e3, 71, Js.Named.FloralWhite], [4280453922, 72, Js.Named.ForestGreen], [4294902015, 73, Js.Named.Fuchsia], [4292664540, 74, Js.Named.Gainsboro], [4294506751, 75, Js.Named.GhostWhite], [4294956800, 76, Js.Named.Gold], [4292519200, 77, Js.Named.Goldenrod], [4286611584, 78, Js.Named.Gray], [4278222848, 79, Js.Named.Green], [4289593135, 80, Js.Named.GreenYellow], [4293984240, 81, Js.Named.Honeydew], [4294928820, 82, Js.Named.HotPink], [4291648604, 83, Js.Named.IndianRed], [4283105410, 84, Js.Named.Indigo], [4294967280, 85, Js.Named.Ivory], [4293977740, 86, Js.Named.Khaki], [4293322490, 87, Js.Named.Lavender], [4294963445, 88, Js.Named.LavenderBlush], [4286381056, 89, Js.Named.LawnGreen], [4294965965, 90, Js.Named.LemonChiffon], [4289583334, 91, Js.Named.LtBlue], [4293951616, 92, Js.Named.LtCoral], [4292935679, 93, Js.Named.LtCyan], [4294638200, 94, Js.Named.LtGoldenrodYellow], [4292072403, 95, Js.Named.LtGray], [4287688336, 96, Js.Named.LtGreen], [4294948545, 97, Js.Named.LtPink], [4294942842, 98, Js.Named.LtSalmon], [4280332970, 99, Js.Named.LtSeaGreen], [4287090426, 100, Js.Named.LtSkyBlue], [4286023833, 101, Js.Named.LtSlateGray], [4289774814, 102, Js.Named.LtSteelBlue], [4294967264, 103, Js.Named.LtYellow], [4278255360, 104, Js.Named.Lime], [4281519410, 105, Js.Named.LimeGreen], [4294635750, 106, Js.Named.Linen], [4294902015, 107, Js.Named.Magenta], [4286578688, 108, Js.Named.Maroon], [4284927402, 109, Js.Named.MedAquamarine], [4278190285, 110, Js.Named.MedBlue], [4290401747, 111, Js.Named.MedOrchid], [4287852763, 112, Js.Named.MedPurple], [4282168177, 113, Js.Named.MedSeaGreen], [4286277870, 114, Js.Named.MedSlateBlue], [4278254234, 115, Js.Named.MedSpringGreen], [4282962380, 116, Js.Named.MedTurquoise], [4291237253, 117, Js.Named.MedVioletRed], [4279834992, 118, Js.Named.MidnightBlue], [4294311930, 119, Js.Named.MintCream], [4294960353, 120, Js.Named.MistyRose], [4294960309, 121, Js.Named.Moccasin], [4294958765, 122, Js.Named.NavajoWhite], [4278190208, 123, Js.Named.Navy], [4294833638, 124, Js.Named.OldLace], [4286611456, 125, Js.Named.Olive], [4285238819, 126, Js.Named.OliveDrab], [4294944e3, 127, Js.Named.Orange], [4294919424, 128, Js.Named.OrangeRed], [4292505814, 129, Js.Named.Orchid], [4293847210, 130, Js.Named.PaleGoldenrod], [4288215960, 131, Js.Named.PaleGreen], [4289720046, 132, Js.Named.PaleTurquoise], [4292571283, 133, Js.Named.PaleVioletRed], [4294963157, 134, Js.Named.PapayaWhip], [4294957753, 135, Js.Named.PeachPuff], [4291659071, 136, Js.Named.Peru], [4294951115, 137, Js.Named.Pink], [4292714717, 138, Js.Named.Plum], [4289781990, 139, Js.Named.PowderBlue], [4286578816, 140, Js.Named.Purple], [4294901760, 141, Js.Named.Red], [4290547599, 142, Js.Named.RosyBrown], [4282477025, 143, Js.Named.RoyalBlue], [4287317267, 144, Js.Named.SaddleBrown], [4294606962, 145, Js.Named.Salmon], [4294222944, 146, Js.Named.SandyBrown], [4281240407, 147, Js.Named.SeaGreen], [4294964718, 148, Js.Named.SeaShell], [4288696877, 149, Js.Named.Sienna], [4290822336, 150, Js.Named.Silver], [4287090411, 151, Js.Named.SkyBlue], [4285160141, 152, Js.Named.SlateBlue], [4285563024, 153, Js.Named.SlateGray], [4294966010, 154, Js.Named.Snow], [4278255487, 155, Js.Named.SpringGreen], [4282811060, 156, Js.Named.SteelBlue], [4291998860, 157, Js.Named.Tan], [4278222976, 158, Js.Named.Teal], [4292394968, 159, Js.Named.Thistle], [4294927175, 160, Js.Named.Tomato], [4282441936, 161, Js.Named.Turquoise], [4293821166, 162, Js.Named.Violet], [4294303411, 163, Js.Named.Wheat], [4294967295, 164, Js.Named.White], [4294309365, 165, Js.Named.WhiteSmoke], [4294967040, 166, Js.Named.Yellow], [4288335154, 167, Js.Named.YellowGreen], [4293980400, 168, Js.Named.ButtonFace], [4294967295, 169, Js.Named.ButtonHighlight], [4288716960, 170, Js.Named.ButtonShadow], [4290367978, 171, Js.Named.GradientActiveCaption], [4292338930, 172, Js.Named.GradientInactiveCaption], [4293980400, 173, Js.Named.MenuBar], [4281571839, 174, Js.Named.MenuHighlight]];
|
|
4270
4273
|
const Xs = new class {
|
|
4271
4274
|
constructor() {
|
|
@@ -4291,7 +4294,7 @@ const Zs = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
|
|
|
4291
4294
|
}
|
|
4292
4295
|
var l2;
|
|
4293
4296
|
if (null === o2) {
|
|
4294
|
-
let e3 = t2.match(
|
|
4297
|
+
let e3 = t2.match(kn) || t2.match(Fn);
|
|
4295
4298
|
if (e3) {
|
|
4296
4299
|
let t3, n3 = 1;
|
|
4297
4300
|
4 === e3.length ? t3 = [parseInt(e3[1], 16), parseInt(e3[2], 16), parseInt(e3[3], 16)] : (t3 = [parseInt(e3[2], 16), parseInt(e3[3], 16), parseInt(e3[4], 16)], n3 = Pn(parseInt(e3[1], 16) / 255)), t3 = Bn(t3), t3 = zn(t3), o2 = { srgb: t3, alpha: n3 }, a2 = Js.Type.Hex;
|
|
@@ -4380,10 +4383,10 @@ class li {
|
|
|
4380
4383
|
const s3 = (t4) => Math.round(Math.max(0, Math.min(255, t4))), i2 = t3[0], a2 = t3[1], l2 = t3[2];
|
|
4381
4384
|
return [s3(n3[0] * i2 + n3[1] * a2 + n3[2] * l2), s3(n3[3] * i2 + n3[4] * a2 + n3[5] * l2), s3(n3[6] * i2 + n3[7] * a2 + n3[8] * l2)];
|
|
4382
4385
|
})(n2, 180), n2 = gr(n2, false);
|
|
4383
|
-
let r2 =
|
|
4386
|
+
let r2 = Wn(n2);
|
|
4384
4387
|
const o2 = Jn(r2);
|
|
4385
4388
|
if (o2[Xn] = 0.95 * o2[Xn], r2 = Gn(o2), n2 = Vn(r2), n2 = Ln(n2), n2 = zn(n2, false), t2) return new yr.RGBA(n2[0], n2[1], n2[2], e2.alpha);
|
|
4386
|
-
const s2 = Jn(
|
|
4389
|
+
const s2 = Jn(Wn(n2));
|
|
4387
4390
|
return new yr.HSLA(s2[0], s2[1], s2[2], e2.alpha);
|
|
4388
4391
|
}
|
|
4389
4392
|
_resolve() {
|
|
@@ -4519,7 +4522,7 @@ for (let t2 = 0; t2 < gi.length; t2++) {
|
|
|
4519
4522
|
((t2) => {
|
|
4520
4523
|
t2.isEqualStrokes = (t3, e2) => !(t3 && !e2 || e2 && !t3) && (t3 === e2 || t3.getStyle() === e2.getStyle() && t3.getColor().isEqual(e2.getColor())), t2.oppositeEdge = (e2) => e2 === t2.Edge.Left ? t2.Edge.Right : e2 === t2.Edge.Right ? t2.Edge.Left : e2 === t2.Edge.Top ? t2.Edge.Bottom : e2 === t2.Edge.Bottom ? t2.Edge.Top : e2, t2.BuiltInDefinitionsArray = di, t2.BuiltInDefinitions = ui;
|
|
4521
4524
|
})(ci || (ci = {}));
|
|
4522
|
-
const mi = { Text: "text", Repeat: "repeat", Spacing: "spacing" }, fi = (t2) => !(!t2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/) && !t2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)), pi = Object.freeze({ formatValue:
|
|
4525
|
+
const mi = { Text: "text", Repeat: "repeat", Spacing: "spacing" }, fi = (t2) => !(!t2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/) && !t2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)), pi = Object.freeze({ formatValue: Fr, isFractionFormat: fi, adjustDecimalPlaces: (t2, e2) => {
|
|
4523
4526
|
if (!t2) return "";
|
|
4524
4527
|
const n2 = (t3, e3) => {
|
|
4525
4528
|
let n3 = t3 || "";
|
|
@@ -4540,7 +4543,7 @@ const mi = { Text: "text", Repeat: "repeat", Spacing: "spacing" }, fi = (t2) =>
|
|
|
4540
4543
|
}
|
|
4541
4544
|
return -1 === o3 ? t3 : (r3 = n2(r3, e3), t3.substring(0, o3) + r3 + t3.substring(s3, t3.length));
|
|
4542
4545
|
}, o2 = [];
|
|
4543
|
-
let s2 =
|
|
4546
|
+
let s2 = kr(t2);
|
|
4544
4547
|
for (let t3 = 0; t3 < s2.length; t3++) o2.push(r2(s2[t3].trim(), e2));
|
|
4545
4548
|
return o2.join(";");
|
|
4546
4549
|
} }), _i = vn._table, Si = (t2) => 14 === t2 ? "Short Date" : _i[t2] ?? null, wi = [{ numberFormat: "General", formatType: Rr.General, primary: 1 }, { numberFormat: "0", formatType: Rr.Number, regMatch: /^0[.]{0,1}[0]*$/, args: { decimalPlaces: 0, separator: false } }, { numberFormat: "#,##0.00", formatType: Rr.Number, regMatch: /^#,##0[.]{0,1}[0]*$/, primary: 2, args: { decimalPlaces: 2, separator: true } }, { numberFormat: "#,##0_);(#,##0)", formatType: Rr.Number, args: { decimalPlaces: 0, separator: true } }, { numberFormat: "#,##0_);[Red](#,##0)", formatType: Rr.Number, args: { decimalPlaces: 0, separator: true } }, { numberFormat: "#,##0.00_);(#,##0.00)", formatType: Rr.Number, args: { decimalPlaces: 2, separator: true } }, { numberFormat: "#,##0.00_);[Red](#,##0.00)", formatType: Rr.Number, args: { decimalPlaces: 2, separator: true } }, { numberFormat: "$#,##0.00", formatType: Rr.Currency, primary: 3, args: { decimalPlaces: 2, currencySymbol: "$" } }, { numberFormat: "$#,##0_);($#,##0)", formatType: Rr.Currency, args: { decimalPlaces: 0, currencySymbol: "$" } }, { numberFormat: "$#,##0_);[Red]($#,##0)", formatType: Rr.Currency, args: { decimalPlaces: 0, currencySymbol: "$" } }, { numberFormat: "$#,##0.00_);($#,##0.00)", formatType: Rr.Currency, args: { decimalPlaces: 2, currencySymbol: "$" } }, { numberFormat: "$#,##0.00_);[Red]($#,##0.00)", formatType: Rr.Currency, args: { decimalPlaces: 2, currencySymbol: "$" } }, { numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)', primary: 4, formatType: Rr.Accounting }, { numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)', formatType: Rr.Accounting }, { numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)', formatType: Rr.Accounting }, { numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)', formatType: Rr.Accounting }, { numberFormat: "Short Date", formatType: Rr.ShortDate, primary: 5 }, { numberFormat: "d-mmm-yy", formatType: Rr.MediumDate, primary: 5.5 }, { numberFormat: "Long Date", formatType: Rr.LongDate, primary: 6 }, { numberFormat: "h:mm", formatType: Rr.ShortTime, primary: 7 }, { numberFormat: "h:mm AM/PM", formatType: Rr.MediumTime, primary: 7.5 }, { numberFormat: "Long Time", formatType: Rr.LongTime, primary: 8 }, { numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)', formatType: Rr.Comma, primary: 9 }, { numberFormat: "0.00%", formatType: Rr.Percentage, primary: 10, args: { decimalPlaces: 2 }, regMatch: /^^[0#?]*[.]{0,1}[0#?]*%*$/ }, { numberFormat: "0%", formatType: Rr.Percentage, args: { decimalPlaces: 0 } }, { numberFormat: "# ?/?", formatType: Rr.Fraction, primary: 11 }, { numberFormat: "# ??/??", formatType: Rr.Fraction }, { numberFormat: "0.00E+00", formatType: Rr.Scientific, primary: 12, args: { decimalPlaces: 2 }, regMatch: /^[0#?]*[.]{0,1}[0#?]*E\+[0#?]*$/ }, { numberFormat: "##0.0E+0", formatType: Rr.Custom, args: { decimalPlaces: 0 } }, { numberFormat: "@", formatType: Rr.Text, primary: 13 }, { numberFormat: "d-mmm", formatType: Rr.Custom }, { numberFormat: "mmm-yy", formatType: Rr.Custom }, { numberFormat: "h:mm:ss", formatType: Rr.Custom }, { numberFormat: "m/d/yyyy h:mm", formatType: Rr.Custom }, { numberFormat: "mm:ss", formatType: Rr.Custom }, { numberFormat: "mm:ss.0", formatType: Rr.Custom }, { numberFormat: "[h]:mm:ss", formatType: Rr.Custom }], yi = [{ numberFormat: "00000", formatType: Rr.Special, primary: 11 }, { numberFormat: "00000-0000", formatType: Rr.Special }, { numberFormat: "[<=9999999]###-####;(###) ###-####", formatType: Rr.Special }, { numberFormat: "000-00-0000", formatType: Rr.Special }], Ei = /* @__PURE__ */ new Map(), Ci = [];
|
|
@@ -4589,7 +4592,7 @@ const Ni = (t2, e2, n2, r2, o2) => {
|
|
|
4589
4592
|
r2?.set(h2, c2);
|
|
4590
4593
|
const d2 = c2.toRGBA().toString();
|
|
4591
4594
|
return o2?.set(d2, c2), { description: t2.description + ", " + i2, definition: s2 };
|
|
4592
|
-
},
|
|
4595
|
+
}, ki = (t2, e2, n2, r2) => {
|
|
4593
4596
|
let o2 = [];
|
|
4594
4597
|
for (let s2 = 0; s2 < t2.length; s2++) {
|
|
4595
4598
|
let i2 = [];
|
|
@@ -4602,9 +4605,9 @@ const Ni = (t2, e2, n2, r2, o2) => {
|
|
|
4602
4605
|
}
|
|
4603
4606
|
return o2;
|
|
4604
4607
|
};
|
|
4605
|
-
var
|
|
4606
|
-
(
|
|
4607
|
-
const Di = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E97132", "196B24", "0F9ED5", "A02B93", "4EA72E", "467886", "96607D"], ["Office 2013-2022", "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"], ["Office 2007-2010", "windowText", "window", "1F497D", "EEECE1", "4F81BD", "C0504D", "9BBB59", "8064A2", "4BACC6", "F79646", "0000FF", "800080"], ["Grayscale", "windowText", "window", "000000", "F8F8F8", "DDDDDD", "B2B2B2", "969696", "808080", "5F5F5F", "4D4D4D", "5F5F5F", "919191"], ["Atlas", "windowText", "window", "454545", "E0E0E0", "F81B02", "FC7715", "AFBF41", "50C49F", "3B95C4", "B560D4", "FC5A1A", "B49E74"], ["Banded", "2C2C2C", "FFFFFF", "099BDD", "F2F2F2", "FFC000", "A5D028", "08CC78", "F24099", "828288", "F56617", "005DBA", "6C606A"], ["Basis", "000000", "FFFFFF", "565349", "DDDDDD", "A6B727", "DF5327", "FE9E00", "418AB3", "D7D447", "818183", "F59E00", "B2B2B2"], ["Berlin", "windowText", "window", "9D360E", "E7E6E6", "F09415", "C1B56B", "4BAF73", "5AA6C0", "D17DF9", "FA7E5C", "FFAE3E", "FCC77E"], ["Celestial", "windowText", "window", "18276C", "EBEBEB", "AC3EC1", "477BD1", "46B298", "90BA4C", "DD9D31", "E25247", "C573D2", "CCAEE8"], ["Circuit", "windowText", "window", "134770", "82FFFF", "9ACD4C", "FAA93A", "D35940", "B258D3", "63A0CC", "8AC4A7", "B8FA56", "7AF8CC"], ["Damask", "windowText", "window", "2A5B7F", "ABDAFC", "9EC544", "50BEA3", "4A9CCC", "9A66CA", "C54F71", "DE9C3C", "6BA9DA", "A0BCD3"], ["Depth", "windowText", "window", "455F51", "94D7E4", "41AEBD", "97E9D5", "A2CF49", "608F3D", "F4DE3A", "FCB11C", "FBCA98", "D3B86D"], ["Dividend", "windowText", "window", "3D3D3D", "EBEBEB", "4D1434", "903163", "B2324B", "969FA7", "66B1CE", "40619D", "828282", "A5A5A5"], ["Droplet", "windowText", "window", "355071", "AABED7", "2FA3EE", "4BCAAD", "86C157", "D99C3F", "CE6633", "A35DD1", "56BCFE", "97C5E3"], ["Facet", "windowText", "window", "2C3C43", "EBEBEB", "90C226", "54A021", "E6B91E", "E76618", "C42F1A", "918655", "99CA3C", "B9D181"], ["Frame", "000000", "FFFFFF", "545454", "BFBFBF", "40BAD2", "FAB900", "90BB23", "EE7008", "1AB39F", "D5393D", "90BB23", "EE7008"], ["Gallery", "windowText", "window", "454545", "DFDBD5", "B71E42", "DE478E", "BC72F0", "795FAF", "586EA6", "6892A0", "FA2B5C", "BC658E"], ["Integral", "windowText", "window", "335B74", "DFE3E5", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "6B9F25", "B26B02"], ["Ion Boardroom", "windowText", "window", "3B3059", "EBEBEB", "B31166", "E33D6F", "E45F3C", "E9943A", "9B6BF2", "D53DD0", "8F8F8F", "A5A5A5"], ["Ion", "windowText", "window", "1E5155", "EBEBEB", "B01513", "EA6312", "E6B729", "6AAC90", "54849A", "9E5E9B", "58C1BA", "9DFFCB"], ["Madison", "windowText", "window", "1F2D29", "C5FAEB", "A1D68B", "5EC795", "4DADCF", "CDB756", "E29C36", "8EC0C1", "6D9D9B", "6D8583"], ["Main Event", "windowText", "window", "424242", "C8C8C8", "B80E0F", "A6987D", "7F9A71", "64969F", "9B75B2", "80737A", "F21213", "B6A394"], ["Mesh", "windowText", "window", "363D46", "EBEBEB", "6F6F6F", "BFBFA5", "DCD084", "E7BF5F", "E9A039", "CF7133", "F28943", "F1B76C"], ["Metropolitan", "windowText", "window", "162F33", "EAF0E0", "50B4C8", "A8B97F", "9B9256", "657689", "7A855D", "84AC9D", "2370CD", "877589"], ["Organic", "windowText", "window", "212121", "DADADA", "83992A", "3C9770", "44709D", "A23C33", "D97828", "DEB340", "A8BF4D", "B4CA80"], ["Parallax", "windowText", "window", "212121", "CDD0D1", "30ACEC", "80C34F", "E29D3E", "D64A3B", "D64787", "A666E1", "3085ED", "82B6F4"], ["Parcel", "000000", "FFFFFF", "4A5356", "E8E3CE", "F6A21D", "9BAFB5", "C96731", "9CA383", "87795D", "A0988C", "00B0F0", "738F97"], ["Quotable", "windowText", "window", "212121", "636363", "00C6BB", "6FEBA0", "B6DF5E", "EFB251", "EF755F", "ED515C", "8F8F8F", "A5A5A5"], ["Retrospect", "000000", "window", "637052", "CCDDEA", "E48312", "BD582C", "865640", "9B8357", "C2BC80", "94A088", "2998E3", "8C8C8C"], ["Savon", "windowText", "window", "1485A4", "E3DED1", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "F49100", "739D9B"], ["Slate", "windowText", "window", "212123", "DADADA", "BC451B", "D3BA68", "BB8640", "AD9277", "A55A43", "AD9D7B", "E98052", "F4B69B"], ["Slice", "windowText", "window", "146194", "76DBF4", "052F61", "A50E82", "14967C", "6A9E1F", "E87D37", "C62324", "0D2E46", "356A95"], ["Vapor Trail", "windowText", "window", "454545", "DADADA", "DF2E28", "FE801A", "E9BF35", "81BB42", "32C7A9", "4A9BDC", "F0532B", "F38B53"], ["View", "000000", "FFFFFF", "46464A", "D6D3CC", "6F6F74", "92A9B9", "A7B789", "B9A489", "8D6374", "9B7362", "67AABF", "ABAFA5"], ["Wisp", "windowText", "window", "766F54", "E3EACF", "A53010", "DE7E18", "9F8351", "728653", "92AA4C", "6AAC91", "FB4A18", "FB9318"], ["Wood Type", "windowText", "window", "696464", "E9E5DC", "D34817", "9B2D1F", "A28E6A", "956251", "918485", "855D5D", "CC9900", "96A9A9"]], Bi = [["Office", "Calibri Light", "Calibri"], ["Office 2013-2022", "Calibri Light", "Calibri"], ["Office 2007-2010", "Calibri Light", "Calibri"], ["Grayscale", "Calibri Light", "Calibri"], ["Atlas", "Calibri Light", "Rockwell"], ["Banded", "Corbel", "Corbel"], ["Basis", "Corbel", "Corbel"], ["Berlin", "Trebuchet MS", "Trebuchet MS"], ["Celestial", "Calibri Light", "Calibri"], ["Circuit", "Tw Cen MT", "Tw Cen MT"], ["Damask", "Bookman Old Style", "Rockwell"], ["Depth", "Corbel", "Corbel"], ["Madison", "Arial", "Arial"], ["Main Event", "Impact", "Impact"], ["Mesh", "Century Gothic", "Century Gothic"], ["Metropolitan", "Calibri Light", "Calibri Light"], ["Organic", "Garamond", "Garamond"], ["Parallax", "Corbel", "Corbel"], ["Parcel", "Gill Sans MT", "Gill Sans MT"], ["Quotable", "Century Gothic", "Century Gothic"], ["Retrospect", "Calibri Light", "Calibri"], ["Savon", "Century Gothic", "Century Gothic"], ["Slate", "Calisto MT", "Calisto MT"], ["Slice", "Century Gothic", "Century Gothic"], ["Vapor Trail", "Century Gothic", "Century Gothic"], ["View", "Century Schoolbook", "Century Schoolbook"], ["Wisp", "Century Gothic", "Century Gothic"], ["Wood Type", "Rockwell Condensed", "Rockwell"]], Li = [["Office", "Office", "Office"], ["2013-2022", "Office 2013-2022", "Office 2013-2022"], ["Atlas", "Atlas", "Atlas"], ["Banded", "Banded", "Banded"], ["Basis", "Basis", "Basis"], ["Berlin", "Berlin", "Berlin"], ["Celestial", "Celestial", "Celestial"], ["Circuit", "Circuit", "Circuit"], ["Damask", "Damask", "Damask"], ["Depth", "Depth", "Depth"], ["Dividend", "Dividend", "Dividend"], ["Droplet", "Droplet", "Droplet"], ["Facet", "Facet", "Facet"], ["Frame", "Frame", "Frame"], ["Gallery", "Gallery", "Gallery"], ["Grayscale", "Grayscale", "Grayscale"], ["Integral", "Integral", "Integral"], ["Ion Boardroom", "Ion Boardroom", "Ion Boardroom"], ["Ion", "Ion", "Ion"], ["Madison", "Madison", "Madison"], ["Main Event", "Main Event", "Main Event"], ["Mesh", "Mesh", "Mesh"], ["Metropolitan", "Metropolitan", "Metropolitan"], ["Organic", "Organic", "Organic"], ["Parallax", "Parallax", "Parallax"], ["Parcel", "Parcel", "Parcel"], ["Quotable", "Quotable", "Quotable"], ["Retrospect", "Retrospect", "Retrospect"], ["Savon", "Savon", "Savon"], ["Slate", "Slate", "Slate"], ["Slice", "Slice", "Slice"], ["Vapor Trail", "Vapor Trail", "Vapor Trail"], ["View", "View", "View"], ["Wisp", "Wisp", "Wisp"], ["Wood Type", "Wood Type", "Wood Type"], ["Office 2007-2010", "Office 2007-2010", "Office 2007-2010"]], zi = "Themes is readonly. To make modifications create a new DocsThemes instance.", Pi = { [Js.Scheme.Bg1]: "lt1", [Js.Scheme.Bg2]: "lt2", [Js.Scheme.Tx1]: "dk1", [Js.Scheme.Tx2]: "dk2", [Js.Scheme.Accent1]: "accent1", [Js.Scheme.Accent2]: "accent2", [Js.Scheme.Accent3]: "accent3", [Js.Scheme.Accent4]: "accent4", [Js.Scheme.Accent5]: "accent5", [Js.Scheme.Accent6]: "accent6", [Js.Scheme.Hlink]: "hlink", [Js.Scheme.FolHlink]: "folHlink" },
|
|
4608
|
+
var Fi, Oi;
|
|
4609
|
+
(Fi || (Fi = {})).buildPalette = ki, (Oi || (Oi = {})).BuiltInFilterType = { BuiltIn: "builtIn", All: "all", Custom: "custom" };
|
|
4610
|
+
const Di = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E97132", "196B24", "0F9ED5", "A02B93", "4EA72E", "467886", "96607D"], ["Office 2013-2022", "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"], ["Office 2007-2010", "windowText", "window", "1F497D", "EEECE1", "4F81BD", "C0504D", "9BBB59", "8064A2", "4BACC6", "F79646", "0000FF", "800080"], ["Grayscale", "windowText", "window", "000000", "F8F8F8", "DDDDDD", "B2B2B2", "969696", "808080", "5F5F5F", "4D4D4D", "5F5F5F", "919191"], ["Atlas", "windowText", "window", "454545", "E0E0E0", "F81B02", "FC7715", "AFBF41", "50C49F", "3B95C4", "B560D4", "FC5A1A", "B49E74"], ["Banded", "2C2C2C", "FFFFFF", "099BDD", "F2F2F2", "FFC000", "A5D028", "08CC78", "F24099", "828288", "F56617", "005DBA", "6C606A"], ["Basis", "000000", "FFFFFF", "565349", "DDDDDD", "A6B727", "DF5327", "FE9E00", "418AB3", "D7D447", "818183", "F59E00", "B2B2B2"], ["Berlin", "windowText", "window", "9D360E", "E7E6E6", "F09415", "C1B56B", "4BAF73", "5AA6C0", "D17DF9", "FA7E5C", "FFAE3E", "FCC77E"], ["Celestial", "windowText", "window", "18276C", "EBEBEB", "AC3EC1", "477BD1", "46B298", "90BA4C", "DD9D31", "E25247", "C573D2", "CCAEE8"], ["Circuit", "windowText", "window", "134770", "82FFFF", "9ACD4C", "FAA93A", "D35940", "B258D3", "63A0CC", "8AC4A7", "B8FA56", "7AF8CC"], ["Damask", "windowText", "window", "2A5B7F", "ABDAFC", "9EC544", "50BEA3", "4A9CCC", "9A66CA", "C54F71", "DE9C3C", "6BA9DA", "A0BCD3"], ["Depth", "windowText", "window", "455F51", "94D7E4", "41AEBD", "97E9D5", "A2CF49", "608F3D", "F4DE3A", "FCB11C", "FBCA98", "D3B86D"], ["Dividend", "windowText", "window", "3D3D3D", "EBEBEB", "4D1434", "903163", "B2324B", "969FA7", "66B1CE", "40619D", "828282", "A5A5A5"], ["Droplet", "windowText", "window", "355071", "AABED7", "2FA3EE", "4BCAAD", "86C157", "D99C3F", "CE6633", "A35DD1", "56BCFE", "97C5E3"], ["Facet", "windowText", "window", "2C3C43", "EBEBEB", "90C226", "54A021", "E6B91E", "E76618", "C42F1A", "918655", "99CA3C", "B9D181"], ["Frame", "000000", "FFFFFF", "545454", "BFBFBF", "40BAD2", "FAB900", "90BB23", "EE7008", "1AB39F", "D5393D", "90BB23", "EE7008"], ["Gallery", "windowText", "window", "454545", "DFDBD5", "B71E42", "DE478E", "BC72F0", "795FAF", "586EA6", "6892A0", "FA2B5C", "BC658E"], ["Integral", "windowText", "window", "335B74", "DFE3E5", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "6B9F25", "B26B02"], ["Ion Boardroom", "windowText", "window", "3B3059", "EBEBEB", "B31166", "E33D6F", "E45F3C", "E9943A", "9B6BF2", "D53DD0", "8F8F8F", "A5A5A5"], ["Ion", "windowText", "window", "1E5155", "EBEBEB", "B01513", "EA6312", "E6B729", "6AAC90", "54849A", "9E5E9B", "58C1BA", "9DFFCB"], ["Madison", "windowText", "window", "1F2D29", "C5FAEB", "A1D68B", "5EC795", "4DADCF", "CDB756", "E29C36", "8EC0C1", "6D9D9B", "6D8583"], ["Main Event", "windowText", "window", "424242", "C8C8C8", "B80E0F", "A6987D", "7F9A71", "64969F", "9B75B2", "80737A", "F21213", "B6A394"], ["Mesh", "windowText", "window", "363D46", "EBEBEB", "6F6F6F", "BFBFA5", "DCD084", "E7BF5F", "E9A039", "CF7133", "F28943", "F1B76C"], ["Metropolitan", "windowText", "window", "162F33", "EAF0E0", "50B4C8", "A8B97F", "9B9256", "657689", "7A855D", "84AC9D", "2370CD", "877589"], ["Organic", "windowText", "window", "212121", "DADADA", "83992A", "3C9770", "44709D", "A23C33", "D97828", "DEB340", "A8BF4D", "B4CA80"], ["Parallax", "windowText", "window", "212121", "CDD0D1", "30ACEC", "80C34F", "E29D3E", "D64A3B", "D64787", "A666E1", "3085ED", "82B6F4"], ["Parcel", "000000", "FFFFFF", "4A5356", "E8E3CE", "F6A21D", "9BAFB5", "C96731", "9CA383", "87795D", "A0988C", "00B0F0", "738F97"], ["Quotable", "windowText", "window", "212121", "636363", "00C6BB", "6FEBA0", "B6DF5E", "EFB251", "EF755F", "ED515C", "8F8F8F", "A5A5A5"], ["Retrospect", "000000", "window", "637052", "CCDDEA", "E48312", "BD582C", "865640", "9B8357", "C2BC80", "94A088", "2998E3", "8C8C8C"], ["Savon", "windowText", "window", "1485A4", "E3DED1", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "F49100", "739D9B"], ["Slate", "windowText", "window", "212123", "DADADA", "BC451B", "D3BA68", "BB8640", "AD9277", "A55A43", "AD9D7B", "E98052", "F4B69B"], ["Slice", "windowText", "window", "146194", "76DBF4", "052F61", "A50E82", "14967C", "6A9E1F", "E87D37", "C62324", "0D2E46", "356A95"], ["Vapor Trail", "windowText", "window", "454545", "DADADA", "DF2E28", "FE801A", "E9BF35", "81BB42", "32C7A9", "4A9BDC", "F0532B", "F38B53"], ["View", "000000", "FFFFFF", "46464A", "D6D3CC", "6F6F74", "92A9B9", "A7B789", "B9A489", "8D6374", "9B7362", "67AABF", "ABAFA5"], ["Wisp", "windowText", "window", "766F54", "E3EACF", "A53010", "DE7E18", "9F8351", "728653", "92AA4C", "6AAC91", "FB4A18", "FB9318"], ["Wood Type", "windowText", "window", "696464", "E9E5DC", "D34817", "9B2D1F", "A28E6A", "956251", "918485", "855D5D", "CC9900", "96A9A9"]], Bi = [["Office", "Calibri Light", "Calibri"], ["Office 2013-2022", "Calibri Light", "Calibri"], ["Office 2007-2010", "Calibri Light", "Calibri"], ["Grayscale", "Calibri Light", "Calibri"], ["Atlas", "Calibri Light", "Rockwell"], ["Banded", "Corbel", "Corbel"], ["Basis", "Corbel", "Corbel"], ["Berlin", "Trebuchet MS", "Trebuchet MS"], ["Celestial", "Calibri Light", "Calibri"], ["Circuit", "Tw Cen MT", "Tw Cen MT"], ["Damask", "Bookman Old Style", "Rockwell"], ["Depth", "Corbel", "Corbel"], ["Madison", "Arial", "Arial"], ["Main Event", "Impact", "Impact"], ["Mesh", "Century Gothic", "Century Gothic"], ["Metropolitan", "Calibri Light", "Calibri Light"], ["Organic", "Garamond", "Garamond"], ["Parallax", "Corbel", "Corbel"], ["Parcel", "Gill Sans MT", "Gill Sans MT"], ["Quotable", "Century Gothic", "Century Gothic"], ["Retrospect", "Calibri Light", "Calibri"], ["Savon", "Century Gothic", "Century Gothic"], ["Slate", "Calisto MT", "Calisto MT"], ["Slice", "Century Gothic", "Century Gothic"], ["Vapor Trail", "Century Gothic", "Century Gothic"], ["View", "Century Schoolbook", "Century Schoolbook"], ["Wisp", "Century Gothic", "Century Gothic"], ["Wood Type", "Rockwell Condensed", "Rockwell"]], Li = [["Office", "Office", "Office"], ["2013-2022", "Office 2013-2022", "Office 2013-2022"], ["Atlas", "Atlas", "Atlas"], ["Banded", "Banded", "Banded"], ["Basis", "Basis", "Basis"], ["Berlin", "Berlin", "Berlin"], ["Celestial", "Celestial", "Celestial"], ["Circuit", "Circuit", "Circuit"], ["Damask", "Damask", "Damask"], ["Depth", "Depth", "Depth"], ["Dividend", "Dividend", "Dividend"], ["Droplet", "Droplet", "Droplet"], ["Facet", "Facet", "Facet"], ["Frame", "Frame", "Frame"], ["Gallery", "Gallery", "Gallery"], ["Grayscale", "Grayscale", "Grayscale"], ["Integral", "Integral", "Integral"], ["Ion Boardroom", "Ion Boardroom", "Ion Boardroom"], ["Ion", "Ion", "Ion"], ["Madison", "Madison", "Madison"], ["Main Event", "Main Event", "Main Event"], ["Mesh", "Mesh", "Mesh"], ["Metropolitan", "Metropolitan", "Metropolitan"], ["Organic", "Organic", "Organic"], ["Parallax", "Parallax", "Parallax"], ["Parcel", "Parcel", "Parcel"], ["Quotable", "Quotable", "Quotable"], ["Retrospect", "Retrospect", "Retrospect"], ["Savon", "Savon", "Savon"], ["Slate", "Slate", "Slate"], ["Slice", "Slice", "Slice"], ["Vapor Trail", "Vapor Trail", "Vapor Trail"], ["View", "View", "View"], ["Wisp", "Wisp", "Wisp"], ["Wood Type", "Wood Type", "Wood Type"], ["Office 2007-2010", "Office 2007-2010", "Office 2007-2010"]], zi = "Themes is readonly. To make modifications create a new DocsThemes instance.", Pi = { [Js.Scheme.Bg1]: "lt1", [Js.Scheme.Bg2]: "lt2", [Js.Scheme.Tx1]: "dk1", [Js.Scheme.Tx2]: "dk2", [Js.Scheme.Accent1]: "accent1", [Js.Scheme.Accent2]: "accent2", [Js.Scheme.Accent3]: "accent3", [Js.Scheme.Accent4]: "accent4", [Js.Scheme.Accent5]: "accent5", [Js.Scheme.Accent6]: "accent6", [Js.Scheme.Hlink]: "hlink", [Js.Scheme.FolHlink]: "folHlink" }, Hi = "Office", Wi = [Hi, "Calibri Light", "Calibri"], Vi = ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], ji = (t2) => {
|
|
4608
4611
|
const e2 = {};
|
|
4609
4612
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4610
4613
|
const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
|
|
@@ -4617,14 +4620,14 @@ const Di = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E9
|
|
|
4617
4620
|
}
|
|
4618
4621
|
}
|
|
4619
4622
|
return e2;
|
|
4620
|
-
},
|
|
4623
|
+
}, $i = (t2) => {
|
|
4621
4624
|
const e2 = {};
|
|
4622
4625
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4623
4626
|
const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
|
|
4624
|
-
e2[o2] = s2, s2.majorFont = r2[1] ??
|
|
4627
|
+
e2[o2] = s2, s2.majorFont = r2[1] ?? Wi[1], s2.minorFont = r2[2] ?? Wi[2];
|
|
4625
4628
|
}
|
|
4626
4629
|
return e2;
|
|
4627
|
-
}, Gi =
|
|
4630
|
+
}, Gi = ji([[Hi, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), Ui = $i([Wi]), Ji = Gi[Hi], qi = Ui[Hi];
|
|
4628
4631
|
let Ki = null;
|
|
4629
4632
|
const Xi = new class {
|
|
4630
4633
|
constructor() {
|
|
@@ -4801,7 +4804,7 @@ class ta {
|
|
|
4801
4804
|
const n3 = Ki ? Ki.get(t2.name.toLowerCase()) : null;
|
|
4802
4805
|
n3 && (e2 = n3);
|
|
4803
4806
|
}
|
|
4804
|
-
if (!e2 && Ki && (e2 = Ki.get(
|
|
4807
|
+
if (!e2 && Ki && (e2 = Ki.get(Hi.toLowerCase())), this._name = t2?.name ?? e2?.getName(), !this._name) throw new Error("Theme must have a name.");
|
|
4805
4808
|
this._builtInID = n2, this._delegate = e2, this._colors = new Yi(t2?.colors, this._delegate?.getColorScheme()), this._fonts = new Zi(t2?.fonts, this._delegate?.getFontScheme());
|
|
4806
4809
|
const r2 = Pi, o2 = {}, s2 = Object.keys(r2);
|
|
4807
4810
|
for (let t3 = 0; t3 < s2.length; t3++) {
|
|
@@ -4846,7 +4849,7 @@ class ta {
|
|
|
4846
4849
|
const t2 = { name: this.getName() }, e2 = this._colors.toJSON();
|
|
4847
4850
|
e2 && (Object.keys(e2).length > 1 || e2.name && e2.name !== t2.name) && (t2.colors = e2);
|
|
4848
4851
|
const n2 = this._fonts.toJSON();
|
|
4849
|
-
return n2 && (Object.keys(n2).length > 1 || n2.name && n2.name !== t2.name) && (t2.fonts = n2), 1 === Object.keys(t2).length && t2.name ===
|
|
4852
|
+
return n2 && (Object.keys(n2).length > 1 || n2.name && n2.name !== t2.name) && (t2.fonts = n2), 1 === Object.keys(t2).length && t2.name === Hi ? null : t2;
|
|
4850
4853
|
}
|
|
4851
4854
|
}
|
|
4852
4855
|
const ea = () => {
|
|
@@ -4858,7 +4861,7 @@ const ea = () => {
|
|
|
4858
4861
|
r2.push({ name: i2, colors: a2, fonts: l2 });
|
|
4859
4862
|
}
|
|
4860
4863
|
return r2;
|
|
4861
|
-
})(Li,
|
|
4864
|
+
})(Li, ji(Di), $i(Bi)), e2 = /* @__PURE__ */ new Map();
|
|
4862
4865
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4863
4866
|
const r2 = new ta(t2[n2]), o2 = new ta(null, r2, n2 + 1);
|
|
4864
4867
|
e2.set(o2.getName().toLowerCase(), o2);
|
|
@@ -5707,7 +5710,7 @@ class Aa {
|
|
|
5707
5710
|
const g2 = u2.min, m2 = u2.max;
|
|
5708
5711
|
if (o2 && g2 > r2 || !o2 && m2 < n2) return pa;
|
|
5709
5712
|
let f2 = c3[1];
|
|
5710
|
-
return s2 || (m2 > r2 && (f2 = f2.slice(0, f2.length - (m2 - r2)), u2 = { ...u2 }, u2.max = r2), g2 < n2 && (f2 = f2.slice(n2 - g2), u2 === h2 && (u2 = { ...u2 }), u2.min = n2)),
|
|
5713
|
+
return s2 || (m2 > r2 && (f2 = f2.slice(0, f2.length - (m2 - r2)), u2 = { ...u2 }, u2.max = r2), g2 < n2 && (f2 = f2.slice(n2 - g2), u2 === h2 && (u2 = { ...u2 }), u2.min = n2)), ka(u2, f2, e2);
|
|
5711
5714
|
}, return: (t3) => null, throw: (t3) => null };
|
|
5712
5715
|
return l2(o2 ? n2 : r2), c2;
|
|
5713
5716
|
}
|
|
@@ -5716,8 +5719,8 @@ class Aa {
|
|
|
5716
5719
|
if (void 0 === e2 && (e2 = o2 + 1), 0 === this._count || t2 <= r2 && e2 - 1 >= o2) return this.clone();
|
|
5717
5720
|
const s2 = Math.max(r2, t2), i2 = Math.min(o2, e2 - 1), a2 = i2 - s2, l2 = [];
|
|
5718
5721
|
let c2 = 0;
|
|
5719
|
-
|
|
5720
|
-
const h2 = this.runs(
|
|
5722
|
+
Wa.bounds.min = s2, Wa.bounds.max = i2;
|
|
5723
|
+
const h2 = this.runs(Wa);
|
|
5721
5724
|
let d2 = h2.next();
|
|
5722
5725
|
for (; !d2.done; ) {
|
|
5723
5726
|
const t3 = d2.value;
|
|
@@ -5757,7 +5760,7 @@ class Aa {
|
|
|
5757
5760
|
toArray(t2 = Number.MAX_SAFE_INTEGER, e2 = true) {
|
|
5758
5761
|
if (0 === this.length) return o.EmptyArray;
|
|
5759
5762
|
const n2 = e2 ? 0 : Number.MIN_SAFE_INTEGER, r2 = Math.min(this._runs.maxKey().max, t2);
|
|
5760
|
-
return La.bounds.min = Number.MIN_SAFE_INTEGER, La.bounds.max = r2,
|
|
5763
|
+
return La.bounds.min = Number.MIN_SAFE_INTEGER, La.bounds.max = r2, Fa(this.entries(La), e2, r2, n2);
|
|
5761
5764
|
}
|
|
5762
5765
|
get isIReadableList() {
|
|
5763
5766
|
return true;
|
|
@@ -5840,7 +5843,7 @@ class Aa {
|
|
|
5840
5843
|
if (n3 <= t2 && e2.max >= t2) return this._lastListRead.at(t2 - n3);
|
|
5841
5844
|
}
|
|
5842
5845
|
let n2, r2;
|
|
5843
|
-
const o2 = this._runs.getPairOrNextHigher(za,
|
|
5846
|
+
const o2 = this._runs.getPairOrNextHigher(za, Ha);
|
|
5844
5847
|
if (o2 && (n2 = o2[0], r2 = o2[1]), this._lastRunsRead = n2, this._lastListRead = r2, !(!n2 || t2 < n2.min || t2 > n2.max)) return r2.at(t2 - n2.min);
|
|
5845
5848
|
}
|
|
5846
5849
|
[Symbol.iterator]() {
|
|
@@ -5868,10 +5871,10 @@ Aa || (Aa = {});
|
|
|
5868
5871
|
const Ma = (t2) => "boolean" != typeof t2 ? (t2 && !t2.value && (t2.value = [-1, null]), t2) : true === t2 ? Da : void 0, Ta = (t2, e2, n2) => {
|
|
5869
5872
|
const r2 = n2 ?? { done: false, value: [-1, null] }, o2 = r2.value;
|
|
5870
5873
|
return o2[0] = t2, o2[1] = e2, r2;
|
|
5871
|
-
}, Na = (t2) => "boolean" != typeof t2 ? (t2 && !t2.value && (t2.value = [null, null]), t2) : true === t2 ? Oa : void 0,
|
|
5874
|
+
}, Na = (t2) => "boolean" != typeof t2 ? (t2 && !t2.value && (t2.value = [null, null]), t2) : true === t2 ? Oa : void 0, ka = (t2, e2, n2) => {
|
|
5872
5875
|
const r2 = n2 ?? { done: false, value: [null, null] }, o2 = r2.value;
|
|
5873
5876
|
return o2[0] = t2, o2[1] = e2, r2;
|
|
5874
|
-
},
|
|
5877
|
+
}, Fa = (t2, e2 = false, n2 = Number.MIN_SAFE_INTEGER, r2 = Number.MAX_SAFE_INTEGER) => {
|
|
5875
5878
|
const o2 = [];
|
|
5876
5879
|
let s2 = t2.next(), i2 = Math.max(r2, 0) - 1;
|
|
5877
5880
|
for (; !s2.done; ) {
|
|
@@ -5884,7 +5887,7 @@ const Ma = (t2) => "boolean" != typeof t2 ? (t2 && !t2.value && (t2.value = [-1,
|
|
|
5884
5887
|
}
|
|
5885
5888
|
if (e2) for (let t3 = i2; t3 < n2; t3++) o2.push(void 0);
|
|
5886
5889
|
return o2;
|
|
5887
|
-
}, Oa = Object.seal({ done: false, value: [{ min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, null] }), Da = Object.seal({ done: false, value: [-1, null] }), Ba = { reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: Da }, La = Object.freeze({ reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: Da }), za = { min: 0, max: Number.MAX_SAFE_INTEGER }, Pa = { min: 0, max: Number.MAX_SAFE_INTEGER },
|
|
5890
|
+
}, Oa = Object.seal({ done: false, value: [{ min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, null] }), Da = Object.seal({ done: false, value: [-1, null] }), Ba = { reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: Da }, La = Object.freeze({ reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: Da }), za = { min: 0, max: Number.MAX_SAFE_INTEGER }, Pa = { min: 0, max: Number.MAX_SAFE_INTEGER }, Ha = [null, null], Wa = { bounds: { min: 0, max: 0 }, overflowRun: true };
|
|
5888
5891
|
class Va {
|
|
5889
5892
|
constructor(t2 = 9) {
|
|
5890
5893
|
this._maxEntries = Math.max(4, t2), this._minEntries = Math.max(2, Math.ceil(0.4 * this._maxEntries)), this.clear();
|
|
@@ -5958,7 +5961,7 @@ class Va {
|
|
|
5958
5961
|
let i2, a2, l2;
|
|
5959
5962
|
for (; n2 || o2.length; ) {
|
|
5960
5963
|
if (n2 || (n2 = o2.pop(), a2 = o2[o2.length - 1], i2 = s2.pop(), l2 = true), n2.leaf) {
|
|
5961
|
-
const r3 =
|
|
5964
|
+
const r3 = ja(t2, n2.children, e2);
|
|
5962
5965
|
if (-1 !== r3) return n2.children.splice(r3, 1), o2.push(n2), this._condense(o2), this;
|
|
5963
5966
|
}
|
|
5964
5967
|
l2 || n2.leaf || !Za(n2, r2) ? a2 ? (i2++, n2 = a2.children[i2], l2 = false) : n2 = null : (o2.push(n2), s2.push(i2), i2 = 0, a2 = n2, n2 = n2.children[0]);
|
|
@@ -5988,7 +5991,7 @@ class Va {
|
|
|
5988
5991
|
_build(t2, e2, n2, r2) {
|
|
5989
5992
|
const o2 = n2 - e2 + 1;
|
|
5990
5993
|
let s2, i2 = this._maxEntries;
|
|
5991
|
-
if (o2 <= i2) return s2 = el(t2.slice(e2, n2 + 1)),
|
|
5994
|
+
if (o2 <= i2) return s2 = el(t2.slice(e2, n2 + 1)), $a(s2, this.toBBox), s2;
|
|
5992
5995
|
r2 || (r2 = Math.ceil(Math.log(o2) / Math.log(i2)), i2 = Math.ceil(o2 / Math.pow(i2, r2 - 1))), s2 = el([]), s2.leaf = false, s2.height = r2;
|
|
5993
5996
|
const a2 = Math.ceil(o2 / i2), l2 = a2 * Math.ceil(Math.sqrt(i2));
|
|
5994
5997
|
nl(t2, e2, n2, l2, this.compareMinX);
|
|
@@ -6000,7 +6003,7 @@ class Va {
|
|
|
6000
6003
|
s2.children.push(this._build(t2, n3, o4, r2 - 1));
|
|
6001
6004
|
}
|
|
6002
6005
|
}
|
|
6003
|
-
return
|
|
6006
|
+
return $a(s2, this.toBBox), s2;
|
|
6004
6007
|
}
|
|
6005
6008
|
_chooseSubtree(t2, e2, n2, r2) {
|
|
6006
6009
|
for (; r2.push(e2), !e2.leaf && r2.length - 1 !== n2; ) {
|
|
@@ -6022,10 +6025,10 @@ class Va {
|
|
|
6022
6025
|
const n2 = t2[e2], r2 = n2.children.length, o2 = this._minEntries;
|
|
6023
6026
|
this._chooseSplitAxis(n2, o2, r2);
|
|
6024
6027
|
const s2 = this._chooseSplitIndex(n2, o2, r2), i2 = el(n2.children.splice(s2, n2.children.length - s2));
|
|
6025
|
-
i2.height = n2.height, i2.leaf = n2.leaf,
|
|
6028
|
+
i2.height = n2.height, i2.leaf = n2.leaf, $a(n2, this.toBBox), $a(i2, this.toBBox), e2 ? t2[e2 - 1].children.push(i2) : this._splitRoot(n2, i2);
|
|
6026
6029
|
}
|
|
6027
6030
|
_splitRoot(t2, e2) {
|
|
6028
|
-
this.data = el([t2, e2]), this.data.height = t2.height + 1, this.data.leaf = false,
|
|
6031
|
+
this.data = el([t2, e2]), this.data.height = t2.height + 1, this.data.leaf = false, $a(this.data, this.toBBox);
|
|
6029
6032
|
}
|
|
6030
6033
|
_chooseSplitIndex(t2, e2, n2) {
|
|
6031
6034
|
let r2 = -1, o2 = 1 / 0, s2 = 1 / 0;
|
|
@@ -6057,15 +6060,15 @@ class Va {
|
|
|
6057
6060
|
for (let r2 = n2; r2 >= 0; r2--) Ua(e2[r2], t2);
|
|
6058
6061
|
}
|
|
6059
6062
|
_condense(t2) {
|
|
6060
|
-
for (let e2, n2 = t2.length - 1; n2 >= 0; n2--) 0 === t2[n2].children.length ? n2 > 0 ? (e2 = t2[n2 - 1].children, e2.splice(e2.indexOf(t2[n2]), 1)) : this.clear() :
|
|
6063
|
+
for (let e2, n2 = t2.length - 1; n2 >= 0; n2--) 0 === t2[n2].children.length ? n2 > 0 ? (e2 = t2[n2 - 1].children, e2.splice(e2.indexOf(t2[n2]), 1)) : this.clear() : $a(t2[n2], this.toBBox);
|
|
6061
6064
|
}
|
|
6062
6065
|
}
|
|
6063
|
-
function
|
|
6066
|
+
function ja(t2, e2, n2) {
|
|
6064
6067
|
if (!n2) return e2.indexOf(t2);
|
|
6065
6068
|
for (let r2 = 0; r2 < e2.length; r2++) if (n2(t2, e2[r2])) return r2;
|
|
6066
6069
|
return -1;
|
|
6067
6070
|
}
|
|
6068
|
-
function
|
|
6071
|
+
function $a(t2, e2) {
|
|
6069
6072
|
Ga(t2, 0, t2.children.length, e2, t2);
|
|
6070
6073
|
}
|
|
6071
6074
|
function Ga(t2, e2, n2, r2, o2 = null) {
|
|
@@ -6204,7 +6207,7 @@ class il {
|
|
|
6204
6207
|
let _2 = null;
|
|
6205
6208
|
const S2 = this.getBoundingCoords();
|
|
6206
6209
|
if (!S2) return this;
|
|
6207
|
-
const w2 = n2 === h.Up || n2 === h.Left ? h.Right : h.Left, y2 = /* @__PURE__ */ new Map(), E2 = /* @__PURE__ */ new Map(), C2 = this._options?.updateEntryOptions, b2 = C2?.isMergeOnShift ?? false, v2 = C2?.isSplitOnExpand ?? false, x2 = C2?.isTrailingEdge ?? false, I2 = n2 === h.Left || n2 === h.Up, R2 = C2?.getSplit ?? ml, A2 = C2?.getShifted, M2 = C2?.onShifted, T2 = C2?.onRemoved, N2 = C2?.onMerged,
|
|
6210
|
+
const w2 = n2 === h.Up || n2 === h.Left ? h.Right : h.Left, y2 = /* @__PURE__ */ new Map(), E2 = /* @__PURE__ */ new Map(), C2 = this._options?.updateEntryOptions, b2 = C2?.isMergeOnShift ?? false, v2 = C2?.isSplitOnExpand ?? false, x2 = C2?.isTrailingEdge ?? false, I2 = n2 === h.Left || n2 === h.Up, R2 = C2?.getSplit ?? ml, A2 = C2?.getShifted, M2 = C2?.onShifted, T2 = C2?.onRemoved, N2 = C2?.onMerged, k2 = C2?.onUpdated, F2 = M2 ? [] : null, O2 = T2 ? [] : null, D2 = k2 ? [] : null;
|
|
6208
6211
|
this.visitRanges({ colStart: e2.colStart - (a2 ? 1 : 0), rowStart: e2.rowStart - (a2 ? 0 : 1), colEnd: a2 ? S2.colEnd : e2.colEnd, rowEnd: a2 ? e2.rowEnd : S2.rowEnd }, (t3) => {
|
|
6209
6212
|
if ((a2 ? t3.colEnd < e2.colStart : t3.rowEnd < e2.rowStart) && !x2) return;
|
|
6210
6213
|
const r3 = pl(e2, t3, a2 ? g.Column : g.Row), o2 = t3.group;
|
|
@@ -6227,7 +6230,7 @@ class il {
|
|
|
6227
6230
|
o2 ? (y2.set(o2.uuid, o2), e3 = [], E2.set(t3.uuid, e3)) : f2.push(t3);
|
|
6228
6231
|
for (let n3 = 0; n3 < w3; n3++) {
|
|
6229
6232
|
const r4 = S3[n3];
|
|
6230
|
-
_2 = c.unionRanges(_2, r4), o2 ? e3.push(r4) : (p2.push(r4),
|
|
6233
|
+
_2 = c.unionRanges(_2, r4), o2 ? e3.push(r4) : (p2.push(r4), F2 && F2.push(r4), D2 && D2.push(t3));
|
|
6231
6234
|
}
|
|
6232
6235
|
}
|
|
6233
6236
|
}, w2);
|
|
@@ -6241,7 +6244,7 @@ class il {
|
|
|
6241
6244
|
N2 && (L2 = B2._mergeNodes(t4, false));
|
|
6242
6245
|
}
|
|
6243
6246
|
}
|
|
6244
|
-
return
|
|
6247
|
+
return k2 && D2.length > 0 && k2(D2), M2 && F2.length > 0 && M2(F2), N2 && L2.length > 0 && N2(L2), T2 && O2.length > 0 && T2(O2), B2;
|
|
6245
6248
|
}
|
|
6246
6249
|
insertNonOverlapping(t2, e2) {
|
|
6247
6250
|
const n2 = e2?.onIntersect ?? ((t3, e3) => ({ ...t3, value: e3.value })), r2 = this.search(t2), s2 = /* @__PURE__ */ new Map(), i2 = /* @__PURE__ */ new Map(), a2 = this._options?.updateEntryOptions, h2 = a2?.onUpdated, d2 = a2?.onRemoved, u2 = a2?.onMerged, g2 = a2?.getSplit, m2 = a2?.getIntersect, f2 = a2?.getUpdate;
|
|
@@ -6917,9 +6920,9 @@ const Al = "Must be an array of arrays.", Ml = (t2, e2, n2) => {
|
|
|
6917
6920
|
return l2.build();
|
|
6918
6921
|
}, Nl = (t2, e2, n2) => {
|
|
6919
6922
|
if (t2 === e2) return e2;
|
|
6920
|
-
},
|
|
6923
|
+
}, kl = (t2, e2, n2) => {
|
|
6921
6924
|
if (t2[0].value === t2[1].value) return e2;
|
|
6922
|
-
},
|
|
6925
|
+
}, Fl = [null, null], Ol = (t2 = true, e2 = Nl) => {
|
|
6923
6926
|
const n2 = [];
|
|
6924
6927
|
let r2, o2, s2 = Number.MIN_SAFE_INTEGER, i2 = Number.MIN_SAFE_INTEGER;
|
|
6925
6928
|
return { append: (a2, l2, c2) => {
|
|
@@ -6932,7 +6935,7 @@ const Al = "Must be an array of arrays.", Ml = (t2, e2, n2) => {
|
|
|
6932
6935
|
r2 && n2.push(r2);
|
|
6933
6936
|
const d2 = t2 ? a2 : l2, u2 = t2 ? l2 : a2;
|
|
6934
6937
|
r2 = { colStart: d2, rowStart: u2, colEnd: d2, rowEnd: u2, value: c2 }, s2 = a2, i2 = l2, o2 = c2;
|
|
6935
|
-
}, done: (e3 = false) => (r2 && (n2.push(r2), r2 = null), e3 ? ul(n2, t2 ? l.Column : l.Row, 2,
|
|
6938
|
+
}, done: (e3 = false) => (r2 && (n2.push(r2), r2 = null), e3 ? ul(n2, t2 ? l.Column : l.Row, 2, kl, Fl) : n2) };
|
|
6936
6939
|
};
|
|
6937
6940
|
class Dl {
|
|
6938
6941
|
constructor(t2) {
|
|
@@ -6983,8 +6986,8 @@ class Dl {
|
|
|
6983
6986
|
p2 = t2.reverse ?? false, h2 = /* @__PURE__ */ ((t3) => "boolean" != typeof t3 ? t3 : true === t3 ? { done: false, value: [{ colIndex: -1, rowIndex: -1 }, null] } : void 0)(t2.reuseResult), a2 = e2 ? t2.processColumnSkip : t2.processRowSkip, a2 && (p2 ? u2 = a2(u2, p2) : d2 = a2(d2, p2)), c2 = e2 ? t2.processRowSkip : t2.processColumnSkip, c2 && (p2 ? f2 = c2(u2, p2) : g2 = c2(g2, p2));
|
|
6984
6987
|
}
|
|
6985
6988
|
if (!s2) return _a;
|
|
6986
|
-
r2 || d2 !== u2 || (r2 = true),
|
|
6987
|
-
let _2 = this._major.entries(
|
|
6989
|
+
r2 || d2 !== u2 || (r2 = true), Wl.bounds.min = d2, Wl.bounds.max = u2, Wl.reverse = p2, Wl.processSkip = a2, Wl.reuseResult = Pl;
|
|
6990
|
+
let _2 = this._major.entries(Wl), S2 = Vl();
|
|
6988
6991
|
const w2 = (t3) => {
|
|
6989
6992
|
if (!t3.nextActive) return;
|
|
6990
6993
|
const e3 = (e4) => {
|
|
@@ -6999,8 +7002,8 @@ class Dl {
|
|
|
6999
7002
|
const e3 = _2.next();
|
|
7000
7003
|
if (e3.done) return void (_2 = void 0);
|
|
7001
7004
|
const n3 = e3.value, r3 = n3[1];
|
|
7002
|
-
r3 || console.warn("issue", r3), t3.majorIndex = n3[0], t3.active = true, t3.nextActive = false,
|
|
7003
|
-
const o3 = r3.entries(
|
|
7005
|
+
r3 || console.warn("issue", r3), t3.majorIndex = n3[0], t3.active = true, t3.nextActive = false, Hl.bounds.min = g2, Hl.bounds.max = f2, Hl.reverse = p2, Hl.processSkip = c2, Hl.reuseResult = zl;
|
|
7006
|
+
const o3 = r3.entries(Hl), s3 = o3.next();
|
|
7004
7007
|
if (!s3.done) {
|
|
7005
7008
|
const e4 = s3.value;
|
|
7006
7009
|
return t3.nextMinorIndex = e4[0], t3.nextMinorValue = e4[1], t3.minorIterator = o3, t3.nextActive = true, w2(t3);
|
|
@@ -7122,8 +7125,8 @@ class Dl {
|
|
|
7122
7125
|
const e3 = t2[_2], n3 = e3[0], r3 = e3[1], o3 = new Aa(p2);
|
|
7123
7126
|
m2(o3, r3, n3);
|
|
7124
7127
|
}, w2 = this._major;
|
|
7125
|
-
|
|
7126
|
-
const y2 = w2.entries(
|
|
7128
|
+
Wl.bounds.min = e2, Wl.bounds.max = n2, Wl.reverse = false, Wl.processSkip = null, Wl.reuseResult = Pl;
|
|
7129
|
+
const y2 = w2.entries(Wl);
|
|
7127
7130
|
let E2 = y2.next();
|
|
7128
7131
|
for (; !E2.done; ) {
|
|
7129
7132
|
const e3 = E2.value, n3 = e3[0];
|
|
@@ -7169,8 +7172,8 @@ class Dl {
|
|
|
7169
7172
|
let f2 = false, p2 = 0;
|
|
7170
7173
|
const _2 = this._major;
|
|
7171
7174
|
if (l2 <= g2 && h2 >= m2) {
|
|
7172
|
-
|
|
7173
|
-
const t3 = _2.entries(
|
|
7175
|
+
Wl.bounds.min = i2, Wl.bounds.max = a2;
|
|
7176
|
+
const t3 = _2.entries(Wl);
|
|
7174
7177
|
let e3 = t3.next();
|
|
7175
7178
|
for (; !e3.done; ) {
|
|
7176
7179
|
p2 -= e3.value[1].getCount(), e3 = t3.next();
|
|
@@ -7178,8 +7181,8 @@ class Dl {
|
|
|
7178
7181
|
return _2.delete(i2, a2 - i2 + 1), this._count += p2, this._dataCoords = null, 0 !== p2;
|
|
7179
7182
|
}
|
|
7180
7183
|
const S2 = [], w2 = this._isShared, y2 = [];
|
|
7181
|
-
|
|
7182
|
-
const E2 = _2.entries(
|
|
7184
|
+
Wl.bounds.min = i2, Wl.bounds.max = a2, Hl.reverse = false, Hl.processSkip = null, Hl.reuseResult = Pl;
|
|
7185
|
+
const E2 = _2.entries(Wl);
|
|
7183
7186
|
let C2 = E2.next();
|
|
7184
7187
|
for (; !C2.done; ) {
|
|
7185
7188
|
const t3 = C2.value, e3 = t3[0];
|
|
@@ -7222,10 +7225,10 @@ class Dl {
|
|
|
7222
7225
|
if (!o2 && (C2 *= -1, c.isRangeWithinRange(f2, t2))) return this.clear(), true;
|
|
7223
7226
|
let b2 = 0;
|
|
7224
7227
|
const v2 = this._major, x2 = [];
|
|
7225
|
-
if (
|
|
7228
|
+
if (Wl.bounds.min = a2, Wl.bounds.max = E2 ? Number.MAX_SAFE_INTEGER : l2, Hl.reverse = !o2, Hl.processSkip = null, Hl.reuseResult = Pl, E2 && y2) {
|
|
7226
7229
|
if (!o2) {
|
|
7227
|
-
|
|
7228
|
-
const t4 = v2.entries(
|
|
7230
|
+
Wl.bounds.max = l2;
|
|
7231
|
+
const t4 = v2.entries(Wl);
|
|
7229
7232
|
let e3 = t4.next();
|
|
7230
7233
|
for (; !e3.done; ) {
|
|
7231
7234
|
b2 -= e3.value[1].getCount(), e3 = t4.next();
|
|
@@ -7239,16 +7242,16 @@ class Dl {
|
|
|
7239
7242
|
o2 || (A2 = Number.MAX_SAFE_INTEGER, M2 = Number.MIN_SAFE_INTEGER);
|
|
7240
7243
|
let T2 = Number.MAX_SAFE_INTEGER;
|
|
7241
7244
|
r2 && (T2 = s2 ? r2.colEnd : r2.rowEnd);
|
|
7242
|
-
const N2 = /* @__PURE__ */ new Set(),
|
|
7245
|
+
const N2 = /* @__PURE__ */ new Set(), k2 = E2 ? /* @__PURE__ */ new Map() : null, F2 = [], O2 = v2.entries(Wl), D2 = { bounds: { min: g2, max: m2 } };
|
|
7243
7246
|
let B2 = O2.next();
|
|
7244
7247
|
for (; !B2.done; ) {
|
|
7245
7248
|
const t3 = B2.value, e3 = t3[0], n3 = t3[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
|
|
7246
|
-
if (E2 &&
|
|
7249
|
+
if (E2 && k2.set(e3, n3), g2 <= s3) {
|
|
7247
7250
|
const t4 = n3.getCount();
|
|
7248
7251
|
E2 ? (e3 >= a2 - C2 && ga(n3.runs(D2), (t5, n4) => {
|
|
7249
7252
|
const r5 = n4.min, o4 = n4.max;
|
|
7250
7253
|
let s4 = t5;
|
|
7251
|
-
r5 - 1 <= m2 && o4 > m2 && (s4 = s4.slice(0, m2 + 1 - r5)), r5 < g2 && o4 + 1 >= g2 && (s4 = s4.slice(g2 - r5)),
|
|
7254
|
+
r5 - 1 <= m2 && o4 > m2 && (s4 = s4.slice(0, m2 + 1 - r5)), r5 < g2 && o4 + 1 >= g2 && (s4 = s4.slice(g2 - r5)), F2.push({ majorIndex: e3 + C2, minorIndex: Math.max(r5, g2), run: s4 });
|
|
7252
7255
|
}), n3.delete(g2, m2 - g2 + 1)) : n3.shift(g2, C2);
|
|
7253
7256
|
const r4 = n3.getCount();
|
|
7254
7257
|
if (0 === r4) N2.add(e3), A2 = Math.min(A2, s3), M2 = Math.max(M2, o3);
|
|
@@ -7262,10 +7265,10 @@ class Dl {
|
|
|
7262
7265
|
}
|
|
7263
7266
|
const L2 = this._optionsMinor;
|
|
7264
7267
|
let z2 = false;
|
|
7265
|
-
for (let t3 = 0; t3 <
|
|
7266
|
-
const e3 =
|
|
7267
|
-
let o3 =
|
|
7268
|
-
o3 || (o3 = new Aa(L2),
|
|
7268
|
+
for (let t3 = 0; t3 < F2.length; t3++) {
|
|
7269
|
+
const e3 = F2[t3], n3 = e3.majorIndex, r3 = e3.run;
|
|
7270
|
+
let o3 = k2.get(n3);
|
|
7271
|
+
o3 || (o3 = new Aa(L2), k2.set(n3, o3), x2.push([n3, o3]), z2 = true), o3.setRunAt(e3.minorIndex, r3), b2 += r3.length, I2 = Math.min(I2, n3), R2 = Math.max(R2, n3), N2 && N2.delete(n3);
|
|
7269
7272
|
}
|
|
7270
7273
|
if (this._updateMajorSpan(x2, z2), N2 && N2.size > 0) {
|
|
7271
7274
|
const t3 = Array.from(N2.values()), e3 = Ls(t3);
|
|
@@ -7357,8 +7360,8 @@ class Dl {
|
|
|
7357
7360
|
Dl || (Dl = {});
|
|
7358
7361
|
const Bl = 12;
|
|
7359
7362
|
Object.seal({ done: false, value: null });
|
|
7360
|
-
const Ll = [-1, -1, null], zl = Object.seal({ done: false, value: [-1, null] }), Pl = Object.seal({ done: false, value: [-1, null] }),
|
|
7361
|
-
class
|
|
7363
|
+
const Ll = [-1, -1, null], zl = Object.seal({ done: false, value: [-1, null] }), Pl = Object.seal({ done: false, value: [-1, null] }), Hl = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: zl }, Wl = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Pl }, Vl = () => ({ majorIndex: -1, minorIndex: -1, value: null, active: false, nextMinorIndex: -1, nextActive: false, nextMinorValue: null, minorIterator: null, nextMajorCursor: null, prevMajorCursor: null });
|
|
7364
|
+
class jl {
|
|
7362
7365
|
constructor(t2) {
|
|
7363
7366
|
if (this._l = 0, this._at = null, this._dt = ic.Undefined, this._a32 = null, this._a64 = null, this._cv = null, this._vt = null, this._vi32 = null, this._vi64 = null, this._vf32 = null, this._vf64 = null, !t2) throw new Error("options is required");
|
|
7364
7367
|
const e2 = t2.length;
|
|
@@ -7433,9 +7436,9 @@ class $l {
|
|
|
7433
7436
|
}
|
|
7434
7437
|
return new ArrayBuffer(t2);
|
|
7435
7438
|
}
|
|
7436
|
-
static fromArray(t2, e2, n2, r2, o2 =
|
|
7439
|
+
static fromArray(t2, e2, n2, r2, o2 = $l) {
|
|
7437
7440
|
const s2 = t2.length;
|
|
7438
|
-
if (0 === s2) return new
|
|
7441
|
+
if (0 === s2) return new jl({ type: ic.Undefined, length: s2, getCoercedValue: n2 });
|
|
7439
7442
|
let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 = ac(t2[0], r2);
|
|
7440
7443
|
for (let e3 = 0; e3 < s2; e3++) {
|
|
7441
7444
|
const n3 = t2[e3], o3 = ac(n3, r2);
|
|
@@ -7500,10 +7503,10 @@ class $l {
|
|
|
7500
7503
|
}
|
|
7501
7504
|
}
|
|
7502
7505
|
}
|
|
7503
|
-
return new
|
|
7506
|
+
return new jl({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
|
|
7504
7507
|
}
|
|
7505
7508
|
}
|
|
7506
|
-
const
|
|
7509
|
+
const $l = 0.1, Gl = 1, Ul = 2, Jl = 3, ql = 4, Kl = 5, Xl = 6, Yl = 7, Ql = 8, Zl = 9, tc = 10, ec = 11, nc = 12, rc = 13, oc = 14, sc = 127, ic = { Undefined: oc }, ac = (t2, e2) => {
|
|
7507
7510
|
switch (typeof t2) {
|
|
7508
7511
|
case "number":
|
|
7509
7512
|
const n2 = t2;
|
|
@@ -7813,12 +7816,12 @@ class pc {
|
|
|
7813
7816
|
const t2 = { ...M2 };
|
|
7814
7817
|
1 === p2 && (t2.colEnd = t2.colStart), 1 === _2 && (t2.rowEnd = t2.rowStart), A2 = new Il({ delegate: g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: t2, reuseResult: false }), bounds: t2, orientation: x2, dims: { major: I2 ? S2 : w2, minor: I2 ? w2 : S2 } });
|
|
7815
7818
|
} else A2 = g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: M2, reuseResult: false });
|
|
7816
|
-
const T2 = i2.colStart, N2 = i2.rowStart,
|
|
7819
|
+
const T2 = i2.colStart, N2 = i2.rowStart, k2 = T2 - M2.colStart, F2 = N2 - M2.rowStart, O2 = x2 === v2 ? new Dt.Builder() : new Dt.TransposedBuilder(), D2 = new Rl({ ...s2, bounds: i2, comparator: (I2 ? uc : gc)(i2, M2) }, R2, A2);
|
|
7817
7820
|
let B2, L2 = D2.next();
|
|
7818
7821
|
for (; !L2.done; ) {
|
|
7819
7822
|
const t2 = L2.value;
|
|
7820
7823
|
let e2 = t2[1], r3 = t2[3];
|
|
7821
|
-
const s3 = t2[0], i3 = t2[2], a3 = s3 ? s3.colIndex : i3.colIndex +
|
|
7824
|
+
const s3 = t2[0], i3 = t2[2], a3 = s3 ? s3.colIndex : i3.colIndex + k2, l3 = s3 ? s3.rowIndex : i3.rowIndex + F2;
|
|
7822
7825
|
let c2, u3;
|
|
7823
7826
|
e2 instanceof n.Value ? c2 = e2 : r3 instanceof n.Value && (c2 = r3), u3 = c2 || o2(e2 ?? h2, r3 ?? d2, { colIndex: a3 - T2, rowIndex: l3 - N2 }, this);
|
|
7824
7827
|
const g3 = I2 ? a3 : l3, m3 = I2 ? l3 : a3;
|
|
@@ -8196,9 +8199,9 @@ const _c = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
|
|
|
8196
8199
|
const i2 = n2.getOrientation() === e.Orientation.Column, a2 = Tl(s2, i2, El(r2?.colStart ?? 0, r2?.rowStart ?? 0, void 0, void 0, i2), true), l2 = Cl(a2.bounds, i2);
|
|
8197
8200
|
n2.setValues(a2.tuples);
|
|
8198
8201
|
return new pc(n2, l2, o2, !r2);
|
|
8199
|
-
},
|
|
8200
|
-
let Vc,
|
|
8201
|
-
const
|
|
8202
|
+
}, kc = new RegExp(/^([$]?[a-zA-Z]*[$]?[0-9]*)[:]?([$]?[a-zA-Z]*[$]?[0-9]*)?$/), Fc = new RegExp(/^(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?)(:(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?))?$/, "i"), Oc = new RegExp(/^(R?)(\[?[-+]?\d+\]?|\d+)?(C?)(\[?[-+]?\d+\]?|\d+)?$/, "i"), Dc = new RegExp("(?:'[^']+'|[A-Za-z0-9_\\-.]+?!)?(\\$?[A-Za-z]+\\$?\\d+(?::\\$?[A-Za-z]+\\$?\\d+)?|\\$?[A-Za-z]+:\\$?[A-Za-z]+|\\$?\\d+:\\$?\\d+)", "g"), Bc = /\s+/g, Lc = /"(?:[^"]|"")*"|\[[^[\]]+\]/g, zc = /[\uE000-\uF8FF]/g, Pc = "#REF!", Hc = Math.pow(2, 14), Wc = Math.pow(2, 20);
|
|
8203
|
+
let Vc, jc;
|
|
8204
|
+
const $c = (t2) => (Vc === t2 || (jc = "" + (t2 + 1), Vc = t2), jc);
|
|
8202
8205
|
let Gc, Uc;
|
|
8203
8206
|
const Jc = (t2) => {
|
|
8204
8207
|
if (Gc === t2) return Uc;
|
|
@@ -8208,15 +8211,15 @@ const Jc = (t2) => {
|
|
|
8208
8211
|
return Uc = e2, Uc;
|
|
8209
8212
|
}, qc = /[^a-zA-Z0-9]/, Kc = (t2) => {
|
|
8210
8213
|
if (!t2) return null;
|
|
8211
|
-
return Jc(t2.colIndex) +
|
|
8214
|
+
return Jc(t2.colIndex) + $c(t2.rowIndex);
|
|
8212
8215
|
}, Xc = (t2) => {
|
|
8213
8216
|
if (!t2) return Pc;
|
|
8214
|
-
const e2 = Jc(t2.colIndex), n2 =
|
|
8217
|
+
const e2 = Jc(t2.colIndex), n2 = $c(t2.rowIndex);
|
|
8215
8218
|
return (t2.$colIndex ? "$" + e2 : e2) + (t2.$rowIndex ? "$" + n2 : n2);
|
|
8216
8219
|
}, Yc = (t2, e2) => {
|
|
8217
8220
|
let n2 = t2 ?? e2;
|
|
8218
8221
|
var r2;
|
|
8219
|
-
return n2 && (n2 =
|
|
8222
|
+
return n2 && (n2 = Ho(n2), n2 = n2.replace(/'/g, "''"), r2 = n2, qc.test(r2) && (n2 = Wo(n2))), n2;
|
|
8220
8223
|
}, Qc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Pc, Zc = (t2, e2, n2 = Kc) => {
|
|
8221
8224
|
if (!t2) return null;
|
|
8222
8225
|
const r2 = t2.colStart, o2 = t2.rowStart, s2 = t2.colEnd, i2 = t2.rowEnd;
|
|
@@ -8224,14 +8227,14 @@ const Jc = (t2) => {
|
|
|
8224
8227
|
t2 = { ...e2, ...t2 };
|
|
8225
8228
|
const a2 = r2 === Number.MIN_SAFE_INTEGER || e2 && r2 <= e2.colStart && s2 >= e2.colEnd, l2 = o2 === Number.MIN_SAFE_INTEGER || e2 && o2 <= e2.rowStart && i2 >= e2.rowEnd;
|
|
8226
8229
|
let c2 = null;
|
|
8227
|
-
c2 = l2 ? Jc(r2) : a2 ?
|
|
8230
|
+
c2 = l2 ? Jc(r2) : a2 ? $c(o2) : n2({ colIndex: r2, rowIndex: o2 });
|
|
8228
8231
|
let h2 = null;
|
|
8229
|
-
return h2 = l2 ? Jc(s2) : a2 ?
|
|
8232
|
+
return h2 = l2 ? Jc(s2) : a2 ? $c(i2) : n2({ colIndex: s2, rowIndex: i2 }), c2 + ":" + h2;
|
|
8230
8233
|
}, th = (t2, e2, n2 = Xc) => {
|
|
8231
8234
|
if (!t2) return Pc;
|
|
8232
8235
|
const r2 = t2.colIndex, o2 = t2.rowIndex, s2 = r2 === Number.MIN_SAFE_INTEGER;
|
|
8233
8236
|
let i2 = null;
|
|
8234
|
-
if (o2 === Number.MIN_SAFE_INTEGER ? (i2 = Jc(r2), t2.$colIndex && (i2 = "$" + i2)) : s2 ? (i2 =
|
|
8237
|
+
if (o2 === Number.MIN_SAFE_INTEGER ? (i2 = Jc(r2), t2.$colIndex && (i2 = "$" + i2)) : s2 ? (i2 = $c(o2), t2.$rowIndex && (i2 = "$" + i2)) : i2 = n2(t2), t2.sheetName || e2) {
|
|
8235
8238
|
const n3 = Yc(t2.sheetName, e2);
|
|
8236
8239
|
i2 = Qc(n3, i2);
|
|
8237
8240
|
}
|
|
@@ -8243,9 +8246,9 @@ const Jc = (t2) => {
|
|
|
8243
8246
|
t2 = { ...e2, ...t2 };
|
|
8244
8247
|
const o2 = e2 && t2.rowStart <= e2.rowStart && t2.rowEnd >= e2.rowEnd, s2 = e2 && t2.colStart <= e2.colStart && t2.colEnd >= e2.colEnd;
|
|
8245
8248
|
let i2 = null;
|
|
8246
|
-
o2 ? (i2 = Jc(t2.colStart), i2 = t2.$colStart ? "$" + i2 : i2) : s2 ? (i2 =
|
|
8249
|
+
o2 ? (i2 = Jc(t2.colStart), i2 = t2.$colStart ? "$" + i2 : i2) : s2 ? (i2 = $c(t2.rowStart), i2 = t2.$rowStart ? "$" + i2 : i2) : i2 = n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
|
|
8247
8250
|
let a2 = null;
|
|
8248
|
-
return o2 ? (a2 = Jc(t2.colEnd), a2 = t2.$colEnd ? "$" + a2 : a2) : s2 ? (a2 =
|
|
8251
|
+
return o2 ? (a2 = Jc(t2.colEnd), a2 = t2.$colEnd ? "$" + a2 : a2) : s2 ? (a2 = $c(t2.rowEnd), a2 = t2.$rowEnd ? "$" + a2 : a2) : a2 = n2({ colIndex: t2.colEnd, rowIndex: t2.rowEnd, $colIndex: t2.$colEnd, $rowIndex: t2.$rowEnd }), i2 + ":" + a2;
|
|
8249
8252
|
}, nh = (t2, e2, n2 = Xc) => {
|
|
8250
8253
|
const r2 = eh(t2, e2, n2), o2 = Yc(t2?.sheetName, e2?.sheetName);
|
|
8251
8254
|
return Qc(o2, r2);
|
|
@@ -8292,7 +8295,7 @@ const Jc = (t2) => {
|
|
|
8292
8295
|
const e3 = t3.lastIndexOf("!");
|
|
8293
8296
|
if (-1 === e3) return null;
|
|
8294
8297
|
let n3 = t3.slice(0, e3);
|
|
8295
|
-
return n3 =
|
|
8298
|
+
return n3 = Ho(n3), n3 = n3.replace(/''/g, "'"), [n3, t3.slice(e3 + 1)];
|
|
8296
8299
|
})(t2);
|
|
8297
8300
|
let o2;
|
|
8298
8301
|
if (r2) {
|
|
@@ -8418,9 +8421,9 @@ const Jc = (t2) => {
|
|
|
8418
8421
|
}
|
|
8419
8422
|
return n2.rowEnd = --r2, n2;
|
|
8420
8423
|
}, fh = (t2, e2 = false) => {
|
|
8421
|
-
const n2 = t2.match(e2 ?
|
|
8424
|
+
const n2 = t2.match(e2 ? Fc : kc);
|
|
8422
8425
|
return t2.endsWith(":") ? null : n2;
|
|
8423
|
-
}, ph = { rowIndex: -1, colIndex: -1, $colIndex: false, $rowIndex: false }, _h = (t2, e2, n2, r2 =
|
|
8426
|
+
}, ph = { rowIndex: -1, colIndex: -1, $colIndex: false, $rowIndex: false }, _h = (t2, e2, n2, r2 = Hc) => {
|
|
8424
8427
|
let o2 = t2.lastIndexOf("!"), s2 = "";
|
|
8425
8428
|
-1 !== o2 && (s2 = t2.slice(0, o2) + "!", t2 = t2.slice(o2 + 1));
|
|
8426
8429
|
let i2 = null;
|
|
@@ -8471,7 +8474,7 @@ const Jc = (t2) => {
|
|
|
8471
8474
|
const o2 = t2.colIndex;
|
|
8472
8475
|
o2 !== Number.MIN_SAFE_INTEGER && (t2.$colIndex ? r2 += "$" + Jc(o2) : r2 += Jc(o2 + n2));
|
|
8473
8476
|
const s2 = t2.rowIndex;
|
|
8474
|
-
return s2 !== Number.MIN_SAFE_INTEGER && (t2.$rowIndex ? r2 += "$" +
|
|
8477
|
+
return s2 !== Number.MIN_SAFE_INTEGER && (t2.$rowIndex ? r2 += "$" + $c(s2) : r2 += $c(s2 + e2)), r2;
|
|
8475
8478
|
}, vh = (t2, e2, n2, r2) => {
|
|
8476
8479
|
let o2 = t2.colStart, s2 = t2.rowStart, i2 = t2.colEnd, a2 = t2.rowEnd;
|
|
8477
8480
|
const l2 = t2.$colStart ?? false, c2 = t2.$rowStart ?? false, h2 = t2.$colEnd ?? false, d2 = t2.$rowEnd ?? false;
|
|
@@ -8510,7 +8513,7 @@ const Jc = (t2) => {
|
|
|
8510
8513
|
}, Ih = "Must specify an address.", Rh = "Only a single range is allowed for this operation. Use 'getRanges' instead.", Ah = "Only a single cell is allowed.", Mh = "Invalid range. The Range must be specified as '{ TOP_LEFT:BOTTOM_RIGHT }'.", Th = (t2) => `Invalid address. Can not parse ${"string" == typeof t2 ? `'${t2}' ` : ""}as an address or named item.`, Nh = () => {
|
|
8511
8514
|
throw new Error("Invalid range.");
|
|
8512
8515
|
};
|
|
8513
|
-
class
|
|
8516
|
+
class kh {
|
|
8514
8517
|
constructor(t2, e2, n2 = false) {
|
|
8515
8518
|
this._c = t2, this._cycleId = e2, this._e = n2;
|
|
8516
8519
|
}
|
|
@@ -8525,20 +8528,20 @@ class Fh {
|
|
|
8525
8528
|
}
|
|
8526
8529
|
setError(t2, e2) {
|
|
8527
8530
|
const n2 = this._c;
|
|
8528
|
-
return { ...n2, value: new
|
|
8531
|
+
return { ...n2, value: new kh(n2, e2, t2) };
|
|
8529
8532
|
}
|
|
8530
8533
|
getShifted(t2) {
|
|
8531
8534
|
const e2 = t2.after;
|
|
8532
8535
|
if (!e2) return null;
|
|
8533
8536
|
const n2 = c.sanitizeRange(e2);
|
|
8534
|
-
return { ...n2, value: new
|
|
8537
|
+
return { ...n2, value: new kh(n2, this._cycleId, this._e) };
|
|
8535
8538
|
}
|
|
8536
8539
|
getMerged(t2, e2, n2) {
|
|
8537
8540
|
}
|
|
8538
8541
|
getSplit(t2, e2) {
|
|
8539
8542
|
}
|
|
8540
8543
|
}
|
|
8541
|
-
class
|
|
8544
|
+
class Fh {
|
|
8542
8545
|
constructor(t2, e2) {
|
|
8543
8546
|
this._c = t2, this._o = e2;
|
|
8544
8547
|
}
|
|
@@ -8549,15 +8552,15 @@ class kh {
|
|
|
8549
8552
|
return this._o;
|
|
8550
8553
|
}
|
|
8551
8554
|
getShifted(t2) {
|
|
8552
|
-
return t2.after ? { ...t2.after, value: new
|
|
8555
|
+
return t2.after ? { ...t2.after, value: new Fh(t2.after, this._o) } : null;
|
|
8553
8556
|
}
|
|
8554
8557
|
getMerged(t2, e2, n2) {
|
|
8555
8558
|
const r2 = this._o;
|
|
8556
|
-
return new
|
|
8559
|
+
return new Fh(e2, r2);
|
|
8557
8560
|
}
|
|
8558
8561
|
getSplit(t2, e2) {
|
|
8559
8562
|
const n2 = this._o;
|
|
8560
|
-
return [new
|
|
8563
|
+
return [new Fh(t2[0], n2), new Fh(t2[1], n2)];
|
|
8561
8564
|
}
|
|
8562
8565
|
getState() {
|
|
8563
8566
|
return this._c;
|
|
@@ -8569,7 +8572,7 @@ const Oh = (t2, n2) => {
|
|
|
8569
8572
|
for (let e2 = 0; e2 < t2.length; e2++) {
|
|
8570
8573
|
const o2 = t2[e2], i2 = o2[0], a2 = o2[1];
|
|
8571
8574
|
for (let t3 = 0; t3 < a2.length; t3++) {
|
|
8572
|
-
const e3 = a2[t3], o3 = e3[0], l2 = e3[1].length - 1, c2 = { colStart: n2 ? i2 : o3, rowStart: n2 ? o3 : i2, colEnd: n2 ? i2 : o3 + l2, rowEnd: n2 ? o3 + l2 : i2, value: new
|
|
8575
|
+
const e3 = a2[t3], o3 = e3[0], l2 = e3[1].length - 1, c2 = { colStart: n2 ? i2 : o3, rowStart: n2 ? o3 : i2, colEnd: n2 ? i2 : o3 + l2, rowEnd: n2 ? o3 + l2 : i2, value: new Fh({ colStart: n2 ? i2 : o3, rowStart: n2 ? o3 : i2, colEnd: n2 ? i2 : o3 + l2, rowEnd: n2 ? o3 + l2 : i2 }, s2) };
|
|
8573
8576
|
r2.push(c2);
|
|
8574
8577
|
}
|
|
8575
8578
|
}
|
|
@@ -8665,9 +8668,9 @@ class Lh {
|
|
|
8665
8668
|
const zh = Object.freeze({ break: true });
|
|
8666
8669
|
var Ph;
|
|
8667
8670
|
(Ph || (Ph = {})).Type = { Style: "style", Table: "table", Merge: "merge", Hyperlink: "hyperlink", Comments: "comments", Unlock: "unlock", Contentful: "contentful", Conditional: "conditional", Formula: "formula", Spill: "spill", Continuous: "continuous", Pending: "pending", CalcError: "calcError" };
|
|
8668
|
-
const
|
|
8671
|
+
const Hh = Object.freeze({ [Ph.Type.Style]: false, [Ph.Type.Table]: false, [Ph.Type.Merge]: false, [Ph.Type.Hyperlink]: false, [Ph.Type.Comments]: false, [Ph.Type.Unlock]: false, [Ph.Type.Formula]: false, [Ph.Type.Spill]: false, [Ph.Type.Pending]: false, [Ph.Type.CalcError]: false, [Ph.Type.Contentful]: false, [Ph.Type.Conditional]: false, [Ph.Type.Continuous]: false }), Wh = Object.freeze({ [Ph.Type.Style]: false, [Ph.Type.Table]: false, [Ph.Type.Merge]: false, [Ph.Type.Hyperlink]: false, [Ph.Type.Comments]: false, [Ph.Type.Unlock]: false, [Ph.Type.Formula]: false, [Ph.Type.Spill]: false, [Ph.Type.Pending]: false, [Ph.Type.CalcError]: false, [Ph.Type.Conditional]: false, [Ph.Type.Continuous]: false }), Vh = Object.freeze({ [Ph.Type.Style]: false, [Ph.Type.Table]: true, [Ph.Type.Merge]: false, [Ph.Type.Hyperlink]: false, [Ph.Type.Comments]: false, [Ph.Type.Unlock]: false, [Ph.Type.Formula]: false });
|
|
8669
8672
|
Object.freeze({ [Ph.Type.Style]: false, [Ph.Type.Table]: false, [Ph.Type.Hyperlink]: false, [Ph.Type.Comments]: false, [Ph.Type.Unlock]: false, [Ph.Type.Contentful]: false, [Ph.Type.Formula]: false });
|
|
8670
|
-
const
|
|
8673
|
+
const jh = Object.freeze({ [Ph.Type.Style]: false, [Ph.Type.Hyperlink]: false, [Ph.Type.Continuous]: false, [Ph.Type.Contentful]: false }), $h = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", Gh = (t2 = "update") => `Unable to ${t2}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, Uh = "The range is outside of the bounds of the sheet.", Jh = "Listener can not be null", qh = "We can't insert items. The sheet is protected.", Kh = (t2) => `We can't create a ${t2} that overlaps with another table or merge.`, Xh = "Overlapping ranges can not be merged.", Yh = "We can't insert cells because this would push values off the end of the worksheet. These cells may appear empty but they have some formatting or formulas. Delete enough rows or columns and try again.", Qh = "Unable to partially fill over merged cells.", Zh = "Unable to sort merged cells unless they are all the same size.", td = "Sheet has been closed. No further operations are allowed.", ed = "IteratorContext can only be used during visit.", nd = "When using addresses directly from the sheet do not include the sheet name.", rd = (t2) => `Unable to return more than ${t2} values. To access values in a more scalable solution use 'ICellRange.forEach' or an iterator.`, od = "'setValue' expects a single value; when working with an array use 'setValue'.", sd = "Multiple selection ranges can not be copied.", id = "Unable to determine source.", ad = "When pasting before or after the cut area both areas must align.";
|
|
8671
8674
|
var ld, cd;
|
|
8672
8675
|
(cd = ld || (ld = {})).CalcStatus = { Ready: "ready", Stale: "stale", Pending: "pending", Streaming: "streaming" }, cd.Content = { Values: "values", Formats: "formats", Formulas: "formula", Hyperlinks: "hyperlinks", Tables: "tables", Notes: "notes", Comments: "comments", Warnings: "warnings", Errors: "errors", Merges: "merges" };
|
|
8673
8676
|
class hd {
|
|
@@ -8723,10 +8726,10 @@ const dd = (t2) => {
|
|
|
8723
8726
|
n2 && "]" !== s2 && '"' !== s2 ? e2 += s2 : '"' === s2 ? (e2 += "\\0022", n2 = !n2) : ["[", "]", ",", "#", ".", "@", "/", ":", ";", "-", " "].includes(s2) ? (e2 += "\\" + s2, "[" === s2 ? n2 = true : "]" === s2 && (n2 = false)) : ["(", ")"].includes(s2) ? e2 += "_" === r2 ? "\\" + s2 : "\\\\\\" + s2 : ["$"].includes(s2) ? e2 += "\\0022" + s2 + "\\0022" : e2 += s2, r2 = s2;
|
|
8724
8727
|
}
|
|
8725
8728
|
return '"' + e2 + '"';
|
|
8726
|
-
}, Ed = "Thin", Cd = "Hairline", bd = "Extra Light", vd = "Ultra Light", xd = "Light", Id = "Normal", Rd = "Regular", Ad = "Medium", Md = "Semi Bold", Td = "Demi Bold", Nd = "Bold",
|
|
8727
|
-
Vd.set(o.textToKey(Ed), 100), Vd.set(o.textToKey(Cd), 100), Vd.set(o.textToKey(bd), 200), Vd.set(o.textToKey(vd), 200), Vd.set(o.textToKey(xd), 300), Vd.set(o.textToKey(Id), 400), Vd.set(o.textToKey(Rd), 400), Vd.set(o.textToKey(Ad), 500), Vd.set(o.textToKey(Md), 600), Vd.set(o.textToKey(Td), 600), Vd.set(o.textToKey(Id), 400), Vd.set(o.textToKey(Nd), 700), Vd.set(o.textToKey(
|
|
8728
|
-
const
|
|
8729
|
-
eu.set(o.textToKey(
|
|
8729
|
+
}, Ed = "Thin", Cd = "Hairline", bd = "Extra Light", vd = "Ultra Light", xd = "Light", Id = "Normal", Rd = "Regular", Ad = "Medium", Md = "Semi Bold", Td = "Demi Bold", Nd = "Bold", kd = "Extra Bold", Fd = "Ultra Bold", Od = "Black", Dd = "Heavy", Bd = "Extra Black", Ld = "Ultra Black", zd = "lighter", Pd = "normal", Hd = "bold", Wd = "bolder", Vd = /* @__PURE__ */ new Map();
|
|
8730
|
+
Vd.set(o.textToKey(Ed), 100), Vd.set(o.textToKey(Cd), 100), Vd.set(o.textToKey(bd), 200), Vd.set(o.textToKey(vd), 200), Vd.set(o.textToKey(xd), 300), Vd.set(o.textToKey(Id), 400), Vd.set(o.textToKey(Rd), 400), Vd.set(o.textToKey(Ad), 500), Vd.set(o.textToKey(Md), 600), Vd.set(o.textToKey(Td), 600), Vd.set(o.textToKey(Id), 400), Vd.set(o.textToKey(Nd), 700), Vd.set(o.textToKey(kd), 800), Vd.set(o.textToKey(Fd), 800), Vd.set(o.textToKey(Od), 900), Vd.set(o.textToKey(Dd), 900), Vd.set(o.textToKey(Bd), 950), Vd.set(o.textToKey(Ld), 950), Vd.set(o.textToKey(zd), 100), Vd.set(o.textToKey(Pd), 400), Vd.set(o.textToKey(Hd), 700), Vd.set(o.textToKey(Wd), 700);
|
|
8731
|
+
const jd = "xx-small", $d = "x-small", Gd = "small", Ud = "medium", Jd = "large", qd = "x-large", Kd = "xx-large", Xd = "xxx-large", Yd = "smaller", Qd = "larger", Zd = "math", tu = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), eu = /* @__PURE__ */ new Map();
|
|
8732
|
+
eu.set(o.textToKey(jd), (t2) => 0.4 * t2), eu.set(o.textToKey($d), (t2) => 0.5 * t2), eu.set(o.textToKey(Gd), (t2) => 0.6 * t2), eu.set(o.textToKey(Ud), (t2) => t2), eu.set(o.textToKey(Jd), (t2) => 1.1 * t2), eu.set(o.textToKey(qd), (t2) => 1.25 * t2), eu.set(o.textToKey(Kd), (t2) => 1.5 * t2), eu.set(o.textToKey(Xd), (t2) => 2 * t2), eu.set(o.textToKey(Yd), (t2) => 0.9 * t2), eu.set(o.textToKey(Qd), (t2) => 1.1 * t2), eu.set(o.textToKey(Zd), (t2) => t2);
|
|
8730
8733
|
const nu = (t2, e2 = 11, n2 = "pt") => {
|
|
8731
8734
|
if (!t2) return null;
|
|
8732
8735
|
let r2 = e2;
|
|
@@ -8836,10 +8839,10 @@ const Su = new RegExp(`(\\s*(?:${pu}))`, "g"), wu = new RegExp("(\\s*[0-9]*[.]?[
|
|
|
8836
8839
|
const a2 = n2 ? n2.trim() : null;
|
|
8837
8840
|
let l2 = null === i2 ? s2 : `${i2.toString()} ${s2}`, c2 = gu.get(l2);
|
|
8838
8841
|
return c2 || (c2 = gu.get(s2)), c2 ? { color: a2, style: c2 } : null;
|
|
8839
|
-
}, Eu = "start", Cu = "end", bu = "left", vu = "right", xu = "center", Iu = "justify", Ru = "justify-all", Au = "baseline", Mu = "top", Tu = "middle", Nu = "bottom",
|
|
8842
|
+
}, Eu = "start", Cu = "end", bu = "left", vu = "right", xu = "center", Iu = "justify", Ru = "justify-all", Au = "baseline", Mu = "top", Tu = "middle", Nu = "bottom", ku = "sub", Fu = "text-top", Ou = "justify", Du = "distributed", Bu = /* @__PURE__ */ new Map();
|
|
8840
8843
|
Bu.set(o.textToKey(Eu), Ro.HorizontalAlignment.Left), Bu.set(o.textToKey(bu), Ro.HorizontalAlignment.Left), Bu.set(o.textToKey(Cu), Ro.HorizontalAlignment.Right), Bu.set(o.textToKey(vu), Ro.HorizontalAlignment.Right), Bu.set(o.textToKey(xu), Ro.HorizontalAlignment.Center), Bu.set(o.textToKey(Iu), Ro.HorizontalAlignment.Justify), Bu.set(o.textToKey(Ru), Ro.HorizontalAlignment.Justify);
|
|
8841
8844
|
const Lu = /* @__PURE__ */ new Map();
|
|
8842
|
-
Lu.set(o.textToKey(Au), Ro.VerticalAlignment.Bottom), Lu.set(o.textToKey(Mu), Ro.VerticalAlignment.Top), Lu.set(o.textToKey(Tu), Ro.VerticalAlignment.Center), Lu.set(o.textToKey(Nu), Ro.VerticalAlignment.Bottom), Lu.set(o.textToKey(
|
|
8845
|
+
Lu.set(o.textToKey(Au), Ro.VerticalAlignment.Bottom), Lu.set(o.textToKey(Mu), Ro.VerticalAlignment.Top), Lu.set(o.textToKey(Tu), Ro.VerticalAlignment.Center), Lu.set(o.textToKey(Nu), Ro.VerticalAlignment.Bottom), Lu.set(o.textToKey(ku), Ro.VerticalAlignment.Bottom), Lu.set(o.textToKey(Fu), Ro.VerticalAlignment.Top), Lu.set(o.textToKey(Ou), Ro.VerticalAlignment.Justify), Lu.set(o.textToKey(Du), Ro.VerticalAlignment.Distributed);
|
|
8843
8846
|
const zu = (t2) => {
|
|
8844
8847
|
if (t2 instanceof li) return { color: t2.toString() };
|
|
8845
8848
|
if ("string" == typeof t2) try {
|
|
@@ -8856,7 +8859,7 @@ const zu = (t2) => {
|
|
|
8856
8859
|
console.warn("error", t3);
|
|
8857
8860
|
}
|
|
8858
8861
|
return t2;
|
|
8859
|
-
}, merge: (t2, e2, n2) => t2 },
|
|
8862
|
+
}, merge: (t2, e2, n2) => t2 }, Hu = { shorthand: (t2, e2) => {
|
|
8860
8863
|
if (t2.isIStroke) return t2.getProperties();
|
|
8861
8864
|
if ("string" == typeof t2 && (t2 = yu(t2, (t3) => {
|
|
8862
8865
|
try {
|
|
@@ -8867,7 +8870,7 @@ const zu = (t2) => {
|
|
|
8867
8870
|
})), !t2) return null;
|
|
8868
8871
|
const n2 = {};
|
|
8869
8872
|
return t2.style && (n2.style = t2.style), t2.color && (n2.color = t2.color), n2;
|
|
8870
|
-
}, properties: { color: Pu } },
|
|
8873
|
+
}, properties: { color: Pu } }, Wu = { shorthand: (t2, e2) => {
|
|
8871
8874
|
if (t2.isIBorder) return t2.getProperties();
|
|
8872
8875
|
if ("string" == typeof t2) {
|
|
8873
8876
|
const n2 = yu(t2, (t3) => {
|
|
@@ -8880,7 +8883,7 @@ const zu = (t2) => {
|
|
|
8880
8883
|
return { left: n2, right: n2, top: n2, bottom: n2, horizontal: null, vertical: null, diagonalUp: null, diagonalDown: null };
|
|
8881
8884
|
}
|
|
8882
8885
|
return t2;
|
|
8883
|
-
}, properties: { top:
|
|
8886
|
+
}, properties: { top: Hu, left: Hu, right: Hu, bottom: Hu, horizontal: Hu, vertical: Hu, diagonalUp: Hu, diagonalDown: Hu } }, Vu = { shorthand: (t2, e2) => {
|
|
8884
8887
|
if ("string" == typeof t2) {
|
|
8885
8888
|
let e3 = Ri.Styles.lookupDefault(t2);
|
|
8886
8889
|
return void 0 !== e3 ? e3 : t2;
|
|
@@ -8889,7 +8892,7 @@ const zu = (t2) => {
|
|
|
8889
8892
|
return Si(t2);
|
|
8890
8893
|
}
|
|
8891
8894
|
return null;
|
|
8892
|
-
} },
|
|
8895
|
+
} }, ju = { shorthand: (t2, e2) => {
|
|
8893
8896
|
if (t2.isIStyledFont) return t2.toJSON();
|
|
8894
8897
|
if ("string" == typeof t2) {
|
|
8895
8898
|
const e3 = dd(t2);
|
|
@@ -8920,7 +8923,7 @@ const zu = (t2) => {
|
|
|
8920
8923
|
return e3;
|
|
8921
8924
|
})(t2);
|
|
8922
8925
|
return isNaN(n2) || "number" != typeof n2 ? null : n2;
|
|
8923
|
-
} }, underline: { shorthand: (t2, e2) => t2 ? true === t2 ? rs.UnderlineStyle.Single : pd(t2) : rs.UnderlineStyle.None } } },
|
|
8926
|
+
} }, underline: { shorthand: (t2, e2) => t2 ? true === t2 ? rs.UnderlineStyle.Single : pd(t2) : rs.UnderlineStyle.None } } }, $u = { properties: { indent: { shorthand: (t2, e2) => {
|
|
8924
8927
|
let n2 = t2;
|
|
8925
8928
|
return "string" == typeof t2 && (n2 = parseFloat(t2)), isNaN(n2) || "number" != typeof n2 ? null : n2;
|
|
8926
8929
|
} }, rotation: { shorthand: (t2, e2) => {
|
|
@@ -8946,21 +8949,21 @@ for (let t2 = 0; t2 < Ku.length; t2++) {
|
|
|
8946
8949
|
const e2 = Ku[t2]?.shorthand;
|
|
8947
8950
|
Xu.push(e2);
|
|
8948
8951
|
}
|
|
8949
|
-
const Yu = Xu.length, Qu = { properties: { font:
|
|
8952
|
+
const Yu = Xu.length, Qu = { properties: { font: ju, fill: { shorthand: (t2, e2) => {
|
|
8950
8953
|
t2.isIFill && (t2 = t2.toJSON());
|
|
8951
8954
|
for (let n2 = 0; n2 < Yu; n2++) {
|
|
8952
8955
|
let r2 = Xu[n2](t2, e2);
|
|
8953
8956
|
if (r2?.type) return r2;
|
|
8954
8957
|
}
|
|
8955
8958
|
return t2;
|
|
8956
|
-
}, getSubType: (t2) => t2.type === Gs.Type.None ? Gu : t2.type === Gs.Type.Solid ? Uu : t2.type === Gs.Type.Gradient ? Ju : t2.type === Gs.Type.Pattern ? qu : null }, alignment:
|
|
8959
|
+
}, getSubType: (t2) => t2.type === Gs.Type.None ? Gu : t2.type === Gs.Type.Solid ? Uu : t2.type === Gs.Type.Gradient ? Ju : t2.type === Gs.Type.Pattern ? qu : null }, alignment: $u, border: Wu, numberFormat: Vu } }, Zu = { properties: { style: Qu } }, tg = Object.freeze({ displayText: "", conditionalColor: null, repeatChars: o.EmptyArray, spacingChars: o.EmptyArray, repeatPlaceholder: null, formattedRuns: Object.freeze({ runs: o.EmptyArray, length: 0, width: 0, lastRepeatIndex: -1 }), canWrap: false, asDate: null, isDateFormat: false, isTimeFormat: false, isDate1904: false }), eg = (e2, n2, r2, s2, i2, a2 = false) => {
|
|
8957
8960
|
if (null == e2) return tg;
|
|
8958
8961
|
let l2 = "", c2 = null, h2 = null, d2 = null;
|
|
8959
8962
|
if (r2 === t.Error) l2 = e2.getLabel();
|
|
8960
8963
|
else if (r2 === t.RichData) l2 = "(Rich Object)";
|
|
8961
8964
|
else if (r2 === t.Boolean) l2 = e2 ? "TRUE" : "FALSE";
|
|
8962
8965
|
else if (s2) try {
|
|
8963
|
-
l2 =
|
|
8966
|
+
l2 = Fr(s2, e2, { date1904: a2, spacingCharacter: "", digitCharacter: "", onRepeatChar: (t2, e3) => {
|
|
8964
8967
|
h2 || (h2 = []), h2.push({ offset: t2, char: e3 });
|
|
8965
8968
|
}, onSpacingChar: (t2, e3) => {
|
|
8966
8969
|
d2 || (d2 = []), d2.push({ offset: t2, char: e3 });
|
|
@@ -9821,7 +9824,7 @@ class Ag {
|
|
|
9821
9824
|
return o.toSafeJSON(this._p);
|
|
9822
9825
|
}
|
|
9823
9826
|
}
|
|
9824
|
-
const Mg = Object.freeze({ value: null, style: null, hyperlink: null, formula: null, type: t.Null, stringToParse: null }), Tg = Object.seal({ value: void 0, style: void 0, hyperlink: void 0, formula: void 0, type: void 0, stringToParse: void 0 }), Ng = Object.seal({ value: void 0, style: void 0, hyperlink: void 0, formula: void 0 }),
|
|
9827
|
+
const Mg = Object.freeze({ value: null, style: null, hyperlink: null, formula: null, type: t.Null, stringToParse: null }), Tg = Object.seal({ value: void 0, style: void 0, hyperlink: void 0, formula: void 0, type: void 0, stringToParse: void 0 }), Ng = Object.seal({ value: void 0, style: void 0, hyperlink: void 0, formula: void 0 }), kg = Object.freeze({ width: 1, height: 1 }), Fg = new I({ max: 1e3 });
|
|
9825
9828
|
const Og = new class {
|
|
9826
9829
|
isEditAllowed() {
|
|
9827
9830
|
return true;
|
|
@@ -9902,7 +9905,7 @@ const Og = new class {
|
|
|
9902
9905
|
}, Pg = (e2, n2) => {
|
|
9903
9906
|
const r2 = n2.getAlignment(), o2 = r2.getRotation(), s2 = r2.getHorizontal();
|
|
9904
9907
|
return 0 !== o2 && s2 === Ro.HorizontalAlignment.General ? o2 > 0 && o2 < 90 || o2 > 180 && o2 <= 270 ? Ro.HorizontalAlignment.Right : Ro.HorizontalAlignment.Left : s2 === Ro.HorizontalAlignment.General ? e2 === t.Null ? Ro.HorizontalAlignment.Left : e2 === t.Boolean || e2 === t.Error ? Ro.HorizontalAlignment.Center : "@" === n2.getNumberFormat() ? Ro.HorizontalAlignment.Left : e2 === t.Number ? Ro.HorizontalAlignment.Right : Ro.HorizontalAlignment.Left : s2;
|
|
9905
|
-
},
|
|
9908
|
+
}, Hg = (e2, n2, r2, o2, s2, i2, a2, l2, c2) => {
|
|
9906
9909
|
if (r2 === t.Null || "" === s2) return null;
|
|
9907
9910
|
const h2 = n2;
|
|
9908
9911
|
if (!((e3, n3, r3 = false, o3 = false) => {
|
|
@@ -9917,7 +9920,7 @@ const Og = new class {
|
|
|
9917
9920
|
const a3 = s3.getVertical();
|
|
9918
9921
|
return a3 !== Ro.VerticalAlignment.Justify && a3 !== Ro.VerticalAlignment.Distributed;
|
|
9919
9922
|
})(r2, o2, null !== i2 && i2.colIndex + 1 === h2, null !== a2 && a2.colIndex - 1 === h2)) return null;
|
|
9920
|
-
const d2 =
|
|
9923
|
+
const d2 = $g(r2, o2, s2, c2), u2 = o2.getAlignment(), g2 = u2.getHorizontal(), m2 = u2.getOverflow() === Ro.Overflow.Wrap || r2 === t.String && (g2 === Ro.HorizontalAlignment.Justify || g2 === Ro.HorizontalAlignment.Distributed || u2.getVertical() === Ro.VerticalAlignment.Justify || u2.getVertical() === Ro.VerticalAlignment.Distributed), f2 = g2 === Ro.HorizontalAlignment.Fill, _2 = g2 === Ro.HorizontalAlignment.CenterContinuous || f2;
|
|
9921
9924
|
if (!d2 && !_2) return null;
|
|
9922
9925
|
const S2 = ((t2) => t2 === Ro.HorizontalAlignment.Center || t2 === Ro.HorizontalAlignment.CenterContinuous ? p.Center : t2 === Ro.HorizontalAlignment.Right ? p.Right : p.Left)(Pg(r2, o2));
|
|
9923
9926
|
let w2 = 0, y2 = 0, E2 = 0, C2 = 0, b2 = 1;
|
|
@@ -9929,14 +9932,14 @@ const Og = new class {
|
|
|
9929
9932
|
const v2 = c2.colHeaders, x2 = v2.findOffset.bind(v2), I2 = v2.findIndex.bind(v2);
|
|
9930
9933
|
let R2 = x2(h2);
|
|
9931
9934
|
const A2 = R2;
|
|
9932
|
-
let M2 = x2(h2 + b2), T2 = M2 - R2, N2 = h2,
|
|
9933
|
-
const
|
|
9935
|
+
let M2 = x2(h2 + b2), T2 = M2 - R2, N2 = h2, k2 = h2;
|
|
9936
|
+
const F2 = { x: 0, y: 0, width: T2, height: d2?.height ?? 0 };
|
|
9934
9937
|
const O2 = h2 - h2 + b2;
|
|
9935
|
-
let D2 = d2 ? d2.width - T2 : 0, B2 =
|
|
9936
|
-
T2 > 0 && D2 > 0 && !m2 && (S2 === p.Center && (D2 /= 2), S2 !== p.Left && S2 !== p.Center || (
|
|
9937
|
-
return { anchorBounds:
|
|
9938
|
+
let D2 = d2 ? d2.width - T2 : 0, B2 = F2;
|
|
9939
|
+
T2 > 0 && D2 > 0 && !m2 && (S2 === p.Center && (D2 /= 2), S2 !== p.Left && S2 !== p.Center || (k2 = I2(M2 + D2), null !== a2 && (k2 = Math.min(k2, a2.colIndex - 1)), M2 = x2(k2), C2 = D2, y2 = k2 - h2), S2 !== p.Right && S2 !== p.Center || (N2 = I2(R2 - D2), null !== i2 && (N2 = Math.max(N2, i2.colIndex + 1)), R2 = x2(N2), E2 = D2, w2 = h2 - N2), F2.x = A2 - R2, B2.x = F2.x), b2 > 1 && (y2 = S2 === p.Center ? Math.max(O2 - 1, y2) : b2 - 1, M2 = x2(h2 + 1), F2.width = M2 - R2, B2 = { ...F2 }, B2.width = T2);
|
|
9940
|
+
return { anchorBounds: F2, leftIndex: w2, rightIndex: y2, leftOffset: E2, rightOffset: C2, colSpan: O2, colBounds: B2 };
|
|
9938
9941
|
};
|
|
9939
|
-
class
|
|
9942
|
+
class Wg {
|
|
9940
9943
|
constructor(t2, e2) {
|
|
9941
9944
|
this._styles = t2, this._ri = e2;
|
|
9942
9945
|
const n2 = e2?.table;
|
|
@@ -9980,8 +9983,8 @@ class Hg {
|
|
|
9980
9983
|
}
|
|
9981
9984
|
const Vg = (t2, e2, n2, r2) => {
|
|
9982
9985
|
const o2 = r2.styles;
|
|
9983
|
-
return vg(o2, n2 ? new
|
|
9984
|
-
},
|
|
9986
|
+
return vg(o2, n2 ? new Wg(o2, n2) : null, e2, r2.styleUpdater);
|
|
9987
|
+
}, jg = (e2, n2, r2, s2, i2, a2, l2, c2 = null, h2 = Fg) => {
|
|
9985
9988
|
if (null === r2) return n2 ? n2.getBestFit() : null;
|
|
9986
9989
|
const d2 = e2 === t.String, u2 = n2.getFont(), g2 = u2.getWeight(), m2 = u2.getSize(), f2 = u2.getFamily(), p2 = n2.getAlignment(), _2 = p2.getOverflow(), S2 = p2.getRotation(), w2 = p2.getVertical(), y2 = n2.getNumberFormat(), E2 = d2 && _2 === Ro.Overflow.Visible, C2 = d2 && (_2 === Ro.Overflow.Wrap || w2 === Ro.VerticalAlignment.Justify || w2 === Ro.VerticalAlignment.Distributed), b2 = (c2 ?? "") + "\0" + m2 + f2 + g2 + y2 + S2 + E2 + C2 + a2 + l2 + (c2 ? "" : r2), v2 = h2.get(b2);
|
|
9987
9990
|
if (v2) return v2;
|
|
@@ -9989,7 +9992,7 @@ const Vg = (t2, e2, n2, r2) => {
|
|
|
9989
9992
|
const R2 = zg(e2, n2), A2 = R2.top + R2.bottom + +um(n2);
|
|
9990
9993
|
let M2 = false, T2 = false;
|
|
9991
9994
|
l2 && (T2 = true, (0 !== S2 || C2) && (T2 = false));
|
|
9992
|
-
const N2 = T2 ? void 0 : Lg(e2, n2, r2, s2),
|
|
9995
|
+
const N2 = T2 ? void 0 : Lg(e2, n2, r2, s2), k2 = R2.left + R2.right + 2;
|
|
9993
9996
|
if (N2) {
|
|
9994
9997
|
if (e2 === t.Number && "General" === y2 && a2) {
|
|
9995
9998
|
let t2 = r2, e3 = o.splitNumber(t2), s3 = "";
|
|
@@ -9998,11 +10001,11 @@ const Vg = (t2, e2, n2, r2) => {
|
|
|
9998
10001
|
x2 = i3.width, I2 = i3.lineHeight;
|
|
9999
10002
|
} else {
|
|
10000
10003
|
let t2 = null;
|
|
10001
|
-
C2 && (t2 = { width: Math.max(1, i2 -
|
|
10004
|
+
C2 && (t2 = { width: Math.max(1, i2 - k2) });
|
|
10002
10005
|
const e3 = N2.layout(t2);
|
|
10003
10006
|
x2 = e3.bounds.width, I2 = e3.bounds.height;
|
|
10004
10007
|
}
|
|
10005
|
-
if (null !== x2 && (x2 +=
|
|
10008
|
+
if (null !== x2 && (x2 += k2), null !== I2 && (I2 += A2), M2 = e2 === t.String, S2) {
|
|
10006
10009
|
M2 && _2 === Ro.Overflow.Wrap && (M2 = false);
|
|
10007
10010
|
const t2 = ((t3, e3) => {
|
|
10008
10011
|
const { x: n3, y: r3, width: o2, height: s3 } = t3, i3 = e3 * Math.PI / 180, a3 = Math.sin(i3), l3 = Math.cos(i3), c3 = o2 / 2, h3 = s3 / 2, d3 = Is(-c3, -h3, a3, l3), u3 = Is(c3, -h3, a3, l3), g3 = Is(-c3, h3, a3, l3), m3 = Is(c3, h3, a3, l3);
|
|
@@ -10013,13 +10016,13 @@ const Vg = (t2, e2, n2, r2) => {
|
|
|
10013
10016
|
}
|
|
10014
10017
|
} else I2 = n2.getBestFit().height;
|
|
10015
10018
|
a2 && M2 && (x2 = 0);
|
|
10016
|
-
const
|
|
10019
|
+
const F2 = { width: x2, height: I2 }, O2 = Object.freeze(F2);
|
|
10017
10020
|
return h2.set(b2, O2), O2;
|
|
10018
|
-
},
|
|
10021
|
+
}, $g = (t2, e2, n2, r2) => {
|
|
10019
10022
|
const o2 = zg(t2, e2), s2 = Pg(t2, e2);
|
|
10020
10023
|
let i2 = o2.left + o2.right;
|
|
10021
10024
|
s2 === Ro.HorizontalAlignment.Left ? i2 = o2.right : s2 === Ro.HorizontalAlignment.Right ? i2 = o2.left : s2 === Ro.HorizontalAlignment.Center && (i2 = o2.left + o2.right);
|
|
10022
|
-
const a2 =
|
|
10025
|
+
const a2 = jg(t2, e2, n2, r2, Number.MAX_SAFE_INTEGER, false, false);
|
|
10023
10026
|
return { width: Math.ceil(a2.width - i2), height: Math.ceil(a2.height) };
|
|
10024
10027
|
};
|
|
10025
10028
|
class Gg {
|
|
@@ -10073,7 +10076,7 @@ class Gg {
|
|
|
10073
10076
|
let o2 = null;
|
|
10074
10077
|
if (r2 === t.String || n2 && n2.continuous) {
|
|
10075
10078
|
const t2 = this.getStyle(), e3 = this._coords;
|
|
10076
|
-
o2 =
|
|
10079
|
+
o2 = Hg(e3.rowIndex, e3.colIndex, r2, t2, this._v, this._p, this._n, n2?.continuous?.getCoords() ?? null, this._options);
|
|
10077
10080
|
}
|
|
10078
10081
|
return null === o2 || 0 === o2.leftIndex && 0 === o2.rightIndex && o2.colSpan <= 1 ? (this._to = null, null) : (this._to = o2, this._to);
|
|
10079
10082
|
}
|
|
@@ -10107,7 +10110,7 @@ class Gg {
|
|
|
10107
10110
|
return null !== this._v;
|
|
10108
10111
|
}
|
|
10109
10112
|
getBestFit(t2, e2 = false) {
|
|
10110
|
-
return void 0 === t2 && (t2 = this._options.sheet.getColumnHeaders().getSpanSize(this._coords.colIndex) ?? 64),
|
|
10113
|
+
return void 0 === t2 && (t2 = this._options.sheet.getColumnHeaders().getSpanSize(this._coords.colIndex) ?? 64), jg(this._t, this.getStyle(), this._v, this._options, t2, e2, false);
|
|
10111
10114
|
}
|
|
10112
10115
|
getInsets() {
|
|
10113
10116
|
if (null === this._v) return this.getStyle().getInsets();
|
|
@@ -10226,7 +10229,7 @@ class Gg {
|
|
|
10226
10229
|
}
|
|
10227
10230
|
getSpans() {
|
|
10228
10231
|
const t2 = this._ri?.merge;
|
|
10229
|
-
if (!t2) return
|
|
10232
|
+
if (!t2) return kg;
|
|
10230
10233
|
const e2 = t2.getCoords();
|
|
10231
10234
|
return Object.freeze({ width: e2.colEnd - e2.colStart + 1, height: e2.rowEnd - e2.rowStart + 1 });
|
|
10232
10235
|
}
|
|
@@ -10481,7 +10484,7 @@ const hm = /^[\\+-]?[0-9]*\.?[0-9]*$/, dm = (t2, e2, r2) => {
|
|
|
10481
10484
|
return f2 && (t3 += f2.asOADate), p2 && (t3 += p2.parsed.oaDateTime), s2.value = t3, s2;
|
|
10482
10485
|
}
|
|
10483
10486
|
const _2 = n.getBuiltInByLabel(t2);
|
|
10484
|
-
return _2 ? (s2.value = _2, s2) : (s2.value = t2,
|
|
10487
|
+
return _2 ? (s2.value = _2, s2) : (s2.value = t2, jo(t2) ? s2.hyperlink = t2 : Go(t2) && (s2.hyperlink = t2, s2.hyperlink.toLowerCase().startsWith("mailto:") || (s2.hyperlink = `mailto:${s2.hyperlink}`)), t2.includes("\n") && (s2.style = { ...s2?.style, alignment: { overflow: Ro.Overflow.Wrap } }), s2);
|
|
10485
10488
|
}, um = (t2) => {
|
|
10486
10489
|
const e2 = t2.getFont().getUnderline() === rs.UnderlineStyle.SingleAccounting, n2 = t2.getFont().getUnderline() === rs.UnderlineStyle.DoubleAccounting;
|
|
10487
10490
|
let r2 = 0;
|
|
@@ -10521,7 +10524,7 @@ const hm = /^[\\+-]?[0-9]*\.?[0-9]*$/, dm = (t2, e2, r2) => {
|
|
|
10521
10524
|
}, fm = (t2, n2, r2, o2) => {
|
|
10522
10525
|
const s2 = o2?.asJSDate;
|
|
10523
10526
|
let i2;
|
|
10524
|
-
r2 ? i2 =
|
|
10527
|
+
r2 ? i2 = Wh : (s2 || o2?.includeMergeOverflow) && (i2 = {}, s2 && (i2[Ph.Type.Style] = false, i2[Ph.Type.Table] = false), o2.includeMergeOverflow && (i2[Ph.Type.Merge] = false));
|
|
10525
10528
|
const a2 = o2?.orientation ?? e.Orientation.Row, l2 = o2?.maxSize ?? 1e4, c2 = t2({ includeEmpty: true, orientation: a2, reverse: o2?.reverse, ignoreHidden: o2?.ignoreHidden, includeMergeOverflow: o2?.includeMergeOverflow, includeRangeTypes: i2, bounds: n2, ignoreCellDetails: !s2 }), h2 = a2 !== e.Orientation.Row, d2 = [];
|
|
10526
10529
|
let u2, g2 = -1, m2 = null, f2 = 0;
|
|
10527
10530
|
for (u2 = c2.next(); !u2.done; ) {
|
|
@@ -10638,7 +10641,7 @@ const wm = (t2, e2) => {
|
|
|
10638
10641
|
for (let e2 = 0; e2 < s2; e2++) {
|
|
10639
10642
|
const s3 = t2[e2], i2 = s3[0], a2 = s3[1], l2 = a2.length;
|
|
10640
10643
|
for (let t3 = 0; t3 < l2; t3++) {
|
|
10641
|
-
const e3 = a2[t3], s4 = e3[0], l3 = e3[1].length - 1, c2 = { colStart: n2 ? i2 : s4, rowStart: n2 ? s4 : i2, colEnd: n2 ? i2 : s4 + l3, rowEnd: n2 ? s4 + l3 : i2, value: new
|
|
10644
|
+
const e3 = a2[t3], s4 = e3[0], l3 = e3[1].length - 1, c2 = { colStart: n2 ? i2 : s4, rowStart: n2 ? s4 : i2, colEnd: n2 ? i2 : s4 + l3, rowEnd: n2 ? s4 + l3 : i2, value: new Fh({ colStart: n2 ? i2 : s4, rowStart: n2 ? s4 : i2, colEnd: n2 ? i2 : s4 + l3, rowEnd: n2 ? s4 + l3 : i2 }, o2) };
|
|
10642
10645
|
r2.push(c2);
|
|
10643
10646
|
}
|
|
10644
10647
|
}
|
|
@@ -10839,13 +10842,13 @@ class Tm extends xm {
|
|
|
10839
10842
|
return n2.length > 0 && (t2.fields = n2), 0 === Object.keys(t2).length ? null : t2;
|
|
10840
10843
|
}
|
|
10841
10844
|
}
|
|
10842
|
-
const Nm = (t2, e2) => t2.offset - e2.offset,
|
|
10845
|
+
const Nm = (t2, e2) => t2.offset - e2.offset, km = (t2) => {
|
|
10843
10846
|
if (!t2 || 0 === t2.size) return [];
|
|
10844
10847
|
let e2 = [];
|
|
10845
10848
|
return t2.forEach((t3, n2) => {
|
|
10846
10849
|
t3 && 0 !== Object.keys(t3).length && e2.push({ ...t3, offset: n2 });
|
|
10847
10850
|
}), e2.sort(Nm);
|
|
10848
|
-
},
|
|
10851
|
+
}, Fm = (t2, e2 = /* @__PURE__ */ new Map()) => {
|
|
10849
10852
|
if (!t2 || 0 === t2.length) return e2;
|
|
10850
10853
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
10851
10854
|
const r2 = { ...t2[n2] }, o2 = r2.offset;
|
|
@@ -10883,7 +10886,7 @@ class Dm extends xm {
|
|
|
10883
10886
|
}
|
|
10884
10887
|
apply(t2) {
|
|
10885
10888
|
const e2 = this._getState().byOffset, n2 = new Map(e2);
|
|
10886
|
-
return
|
|
10889
|
+
return Fm(t2, n2), this._updateState({ byOffset: n2, hiddenCount: Om(n2) }, { description: "Set Filter Criteria" }), this.reapply();
|
|
10887
10890
|
}
|
|
10888
10891
|
setFieldAt(t2, e2) {
|
|
10889
10892
|
const n2 = this._getState(), r2 = n2.anchor.colEnd - n2.anchor.colStart + 1;
|
|
@@ -10900,7 +10903,7 @@ class Dm extends xm {
|
|
|
10900
10903
|
setShowFilterButton(t2) {
|
|
10901
10904
|
const e2 = this.getAnchorCoords(), n2 = e2.colEnd - e2.colStart + 1;
|
|
10902
10905
|
let r2 = Array(n2);
|
|
10903
|
-
const o2 = this._getState().byOffset, s2 =
|
|
10906
|
+
const o2 = this._getState().byOffset, s2 = km(o2);
|
|
10904
10907
|
for (let e3 = 0; s2 && e3 < s2.length; e3++) {
|
|
10905
10908
|
const n3 = { ...s2[e3] };
|
|
10906
10909
|
r2[n3.offset] = n3, t2 ? delete n3.hiddenButton : n3.hiddenButton = true;
|
|
@@ -10929,7 +10932,7 @@ class Dm extends xm {
|
|
|
10929
10932
|
return super._processContainerShift(t2);
|
|
10930
10933
|
}
|
|
10931
10934
|
reapply() {
|
|
10932
|
-
const t2 = this._getState(), e2 =
|
|
10935
|
+
const t2 = this._getState(), e2 = km(t2.byOffset);
|
|
10933
10936
|
return this._apply?.(e2), this;
|
|
10934
10937
|
}
|
|
10935
10938
|
clear() {
|
|
@@ -10937,12 +10940,12 @@ class Dm extends xm {
|
|
|
10937
10940
|
}
|
|
10938
10941
|
_fromJSON(t2) {
|
|
10939
10942
|
const e2 = t2 ?? {}, n2 = { byOffset: /* @__PURE__ */ new Map(), hiddenCount: 0 };
|
|
10940
|
-
e2.fields && (
|
|
10943
|
+
e2.fields && (Fm(e2.fields, n2.byOffset), n2.hiddenCount = Om(n2.byOffset)), e2.sort, this._updateState(n2, { description: "Load" });
|
|
10941
10944
|
}
|
|
10942
10945
|
toJSON() {
|
|
10943
10946
|
const t2 = {}, e2 = this._getState();
|
|
10944
10947
|
e2.anchor && (t2.ref = Zc(e2.anchor, this._options.maxRangeCoords));
|
|
10945
|
-
const n2 =
|
|
10948
|
+
const n2 = km(e2.byOffset);
|
|
10946
10949
|
return n2.length > 0 && (t2.fields = n2), e2.sort, 0 === Object.keys(t2).length ? null : t2;
|
|
10947
10950
|
}
|
|
10948
10951
|
}
|
|
@@ -10981,7 +10984,7 @@ const Bm = "A table must have a least one row for the data.", Lm = "Table1", zm
|
|
|
10981
10984
|
}
|
|
10982
10985
|
return a2 > 0;
|
|
10983
10986
|
};
|
|
10984
|
-
class
|
|
10987
|
+
class Hm {
|
|
10985
10988
|
constructor(t2, e2, n2, r2) {
|
|
10986
10989
|
this._name = t2, this._filter = e2, this._sort = n2, this._offset = r2;
|
|
10987
10990
|
}
|
|
@@ -11010,7 +11013,7 @@ class Wm {
|
|
|
11010
11013
|
return this._filter?.getFieldAt(this._offset)?.hiddenButton ?? false;
|
|
11011
11014
|
}
|
|
11012
11015
|
}
|
|
11013
|
-
class
|
|
11016
|
+
class Wm extends ca {
|
|
11014
11017
|
constructor(t2, e2, n2, r2) {
|
|
11015
11018
|
super({ ...r2, type: "namedTable" }), this._names = t2, this._sheet = e2, this._table = n2;
|
|
11016
11019
|
const o2 = this;
|
|
@@ -11320,7 +11323,7 @@ class Vm extends xm {
|
|
|
11320
11323
|
if (!e2) return null;
|
|
11321
11324
|
const n2 = this.getSort();
|
|
11322
11325
|
let r2 = null;
|
|
11323
|
-
return r2 = this._getState()?.columns[t2], null === r2 ? null : new
|
|
11326
|
+
return r2 = this._getState()?.columns[t2], null === r2 ? null : new Hm(r2.name, e2, n2, t2);
|
|
11324
11327
|
}
|
|
11325
11328
|
getVisibleRefRangeCoords() {
|
|
11326
11329
|
return this._visibleRange ? this._visibleRange : this.getAnchorCoords();
|
|
@@ -11510,7 +11513,7 @@ class Vm extends xm {
|
|
|
11510
11513
|
}
|
|
11511
11514
|
_createNamed() {
|
|
11512
11515
|
const t2 = this._sheet?.getName();
|
|
11513
|
-
return t2 && this._names ? new
|
|
11516
|
+
return t2 && this._names ? new Wm(this._names, this._sheet, this, { transactions: this._getTransactions(), json: { name: this.getName() } }) : null;
|
|
11514
11517
|
}
|
|
11515
11518
|
_fromJSON(t2) {
|
|
11516
11519
|
const e2 = t2 ?? {}, n2 = { headerRowCount: 1, totalsRowCount: 0 };
|
|
@@ -11532,8 +11535,8 @@ class Vm extends xm {
|
|
|
11532
11535
|
return true;
|
|
11533
11536
|
}
|
|
11534
11537
|
}
|
|
11535
|
-
let
|
|
11536
|
-
const
|
|
11538
|
+
let jm = null;
|
|
11539
|
+
const $m = "TableStyleMedium2", Gm = (t2, e2, n2) => {
|
|
11537
11540
|
if (!t2.border) return t2;
|
|
11538
11541
|
let r2 = ((t3, e3, n3) => {
|
|
11539
11542
|
if (!t3) return t3;
|
|
@@ -11811,8 +11814,8 @@ class Qm {
|
|
|
11811
11814
|
}
|
|
11812
11815
|
_initializeTableStyles() {
|
|
11813
11816
|
const t2 = (() => {
|
|
11814
|
-
if (
|
|
11815
|
-
|
|
11817
|
+
if (jm) return jm;
|
|
11818
|
+
jm = /* @__PURE__ */ new Map();
|
|
11816
11819
|
const t3 = (t4, e4) => {
|
|
11817
11820
|
if (0 === e4) return "TableStyleNone";
|
|
11818
11821
|
let n3 = "Custom";
|
|
@@ -11827,49 +11830,49 @@ class Qm {
|
|
|
11827
11830
|
a2.push(["dk1", e3("bg1", -15), "dk1"]), s2(a2, (t4) => [e3(t4, -25), e3(t4, 80), t4]), i2 = 1;
|
|
11828
11831
|
for (let e4 = 0; e4 < 7; e4++) {
|
|
11829
11832
|
const s3 = t3("l", e4 + i2), l2 = a2[e4][0], c2 = a2[e4][1] ?? l2, h2 = a2[e4][2] ?? l2;
|
|
11830
|
-
|
|
11833
|
+
jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { top: o2(h2), bottom: o2(h2) } }, headerRow: { font: r2(l2, true), border: { bottom: o2(h2) } }, totalRow: { font: r2(l2, true), border: { top: o2(h2) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(c2) }, firstColumnStripe: { fill: n2(c2) } }));
|
|
11831
11834
|
}
|
|
11832
11835
|
i2 += 7, a2 = [], a2.push(["dk1", "dk1", "lt1"]), s2(a2, (t4) => ["dk1", t4, "lt1"]);
|
|
11833
11836
|
for (let e4 = 0; e4 < 7; e4++) {
|
|
11834
11837
|
const s3 = t3("l", e4 + i2), l2 = a2[e4][0], c2 = a2[e4][1], h2 = a2[e4][2];
|
|
11835
|
-
|
|
11838
|
+
jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2) } }, headerRow: { font: r2(h2, true), fill: n2(c2) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, ci.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { border: { top: o2(c2) } }, secondRowStripe: { border: { top: o2(c2) } }, firstColumnStripe: { border: { left: o2(c2) } }, secondColumnStripe: { border: { left: o2(c2) } } }));
|
|
11836
11839
|
}
|
|
11837
11840
|
i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15)]), s2(a2, (t4) => [t4, e3(t4, 80)]);
|
|
11838
11841
|
for (let e4 = 0; e4 < 7; e4++) {
|
|
11839
11842
|
const s3 = t3("l", e4 + i2), l2 = "dk1", c2 = a2[e4][0], h2 = a2[e4][1];
|
|
11840
|
-
|
|
11843
|
+
jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2), horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(l2, true) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, ci.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(h2) }, firstColumnStripe: { fill: n2(h2) } }));
|
|
11841
11844
|
}
|
|
11842
11845
|
i2 = 1, a2 = [], a2.push(["dk1", "dk1", e3("bg1", -15)]), s2(a2, (t4) => [t4, e3(t4, 40), e3(t4, 80)]);
|
|
11843
11846
|
for (let e4 = 0; e4 < 7; e4++) {
|
|
11844
11847
|
const s3 = t3("m", e4 + i2), l2 = "dk1", c2 = "lt1", h2 = a2[e4][0], d2 = a2[e4][1], u2 = a2[e4][2];
|
|
11845
|
-
|
|
11848
|
+
jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(d2), right: o2(d2), top: o2(d2), bottom: o2(d2), horizontal: o2(d2) } }, headerRow: { font: r2(c2, true), fill: n2(h2) }, totalRow: { font: r2(l2, true), border: { top: o2(h2, ci.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
|
|
11846
11849
|
}
|
|
11847
11850
|
i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15), e3("bg1", -35)]), s2(a2, (t4) => [t4, e3(t4, 80), e3(t4, 60)]);
|
|
11848
11851
|
for (let e4 = 0; e4 < 7; e4++) {
|
|
11849
11852
|
const s3 = t3("m", e4 + i2), l2 = "dk1", c2 = "lt1", h2 = a2[e4][0], d2 = a2[e4][1], u2 = a2[e4][2];
|
|
11850
|
-
|
|
11853
|
+
jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(d2), border: { horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(c2, true), fill: n2(h2), border: { bottom: o2(c2, ci.StrokeStyle.Thick) } }, totalRow: { font: r2(c2, true), fill: n2(h2), border: { top: o2(c2, ci.StrokeStyle.Thick) } }, firstColumn: { font: r2(c2, true), fill: n2(h2) }, lastColumn: { font: r2(c2, true), fill: n2(h2) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
|
|
11851
11854
|
}
|
|
11852
11855
|
i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15), e3("bg1", -35)]), s2(a2, (t4) => [t4, e3(t4, 80), e3(t4, 60)]);
|
|
11853
11856
|
for (let s3 = 0; s3 < 7; s3++) {
|
|
11854
11857
|
const l2 = t3("m", s3 + i2), c2 = "dk1", h2 = "lt1", d2 = a2[s3][0], u2 = e3("bg1", -15);
|
|
11855
|
-
|
|
11858
|
+
jm.set(l2.toLocaleLowerCase(), Object.freeze({ name: l2, wholeTable: { font: r2(c2), border: { top: o2(c2, ci.StrokeStyle.Medium), bottom: o2(c2, ci.StrokeStyle.Medium), left: 0 === s3 ? o2(c2, ci.StrokeStyle.Thin) : void 0, right: 0 === s3 ? o2(c2, ci.StrokeStyle.Thin) : void 0, horizontal: 0 === s3 ? o2(c2, ci.StrokeStyle.Thin) : void 0, vertical: 0 === s3 ? o2(c2, ci.StrokeStyle.Thin) : void 0 } }, headerRow: { font: r2(h2, true), fill: n2(d2), border: { bottom: o2(c2, ci.StrokeStyle.Medium) } }, totalRow: { border: { top: o2(c2, ci.StrokeStyle.Double) } }, firstColumn: { font: r2(h2, true), fill: n2(d2) }, lastColumn: { font: r2(h2, true), fill: n2(d2) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
|
|
11856
11859
|
}
|
|
11857
11860
|
i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15), e3("bg1", -35), "dk1"]), s2(a2, (t4) => [t4, e3(t4, 80), e3(t4, 60), e3(t4, 40)]);
|
|
11858
11861
|
for (let e4 = 0; e4 < 7; e4++) {
|
|
11859
11862
|
const s3 = t3("m", e4 + i2), l2 = "dk1", c2 = a2[e4][0], h2 = a2[e4][1], d2 = a2[e4][2], u2 = a2[e4][3];
|
|
11860
|
-
|
|
11863
|
+
jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2), border: { top: o2(u2), right: o2(u2), left: o2(u2), bottom: o2(u2), vertical: o2(u2), horizontal: o2(u2) } }, headerRow: { font: r2(l2), fill: n2(h2) }, totalRow: { font: r2(l2), border: { top: o2(c2, ci.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
|
|
11861
11864
|
}
|
|
11862
11865
|
i2 = 1, a2 = [], a2.push(["dk1", e3("dk1", 15), e3("dk1", 25), e3("dk1", 50)]), s2(a2, (t4) => ["dk1", e3(t4, -50), e3(t4, -25), t4]);
|
|
11863
11866
|
for (let e4 = 0; e4 < 7; e4++) {
|
|
11864
11867
|
const s3 = t3("d", e4 + i2), l2 = "lt1", c2 = a2[e4][0], h2 = a2[e4][1], d2 = a2[e4][2], u2 = a2[e4][3];
|
|
11865
|
-
|
|
11868
|
+
jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(u2) }, headerRow: { font: r2(l2, true), fill: n2(c2), border: { bottom: o2(l2, ci.StrokeStyle.Medium) } }, totalRow: { font: r2(l2, true), fill: n2(h2), border: { top: o2(l2, ci.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true), fill: n2(d2), border: { right: o2(l2, ci.StrokeStyle.Medium) } }, lastColumn: { font: r2(l2, true), fill: n2(d2), border: { left: o2(l2, ci.StrokeStyle.Medium) } }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
|
|
11866
11869
|
}
|
|
11867
11870
|
i2 += 7, a2 = [], a2.push([e3("bg1", -15), "dk1", e3("bg1", -35)]), a2.push([e3("accent1", 80), "accent2", e3("accent1", 60)]), a2.push([e3("accent3", 80), "accent4", e3("accent3", 60)]), a2.push([e3("accent5", 80), "accent6", e3("accent5", 60)]);
|
|
11868
11871
|
for (let e4 = 0; e4 < 4; e4++) {
|
|
11869
11872
|
const s3 = t3("d", e4 + i2), l2 = "dk1", c2 = "lt1", h2 = a2[e4][0], d2 = a2[e4][1], u2 = a2[e4][2];
|
|
11870
|
-
|
|
11873
|
+
jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2) }, headerRow: { font: r2(c2, true), fill: n2(d2) }, totalRow: { font: r2(l2, true), border: { top: o2(l2, ci.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
|
|
11871
11874
|
}
|
|
11872
|
-
return
|
|
11875
|
+
return jm;
|
|
11873
11876
|
})(), e2 = /* @__PURE__ */ new Map();
|
|
11874
11877
|
return t2.forEach((t3, n2) => {
|
|
11875
11878
|
const r2 = t3.name.toLowerCase(), o2 = new Jm(this, t3, true);
|
|
@@ -11961,14 +11964,14 @@ class Qm {
|
|
|
11961
11964
|
}
|
|
11962
11965
|
setDefaultTableStyle(t2) {
|
|
11963
11966
|
const e2 = t2?.toLowerCase();
|
|
11964
|
-
return this._defaultTableStyle = this._customTableStyles.get(e2) ?? this._builtInsTableStyles.get(e2) ?? this._builtInsTableStyles.get(
|
|
11967
|
+
return this._defaultTableStyle = this._customTableStyles.get(e2) ?? this._builtInsTableStyles.get(e2) ?? this._builtInsTableStyles.get($m.toLowerCase()), this._emitter.notify("onTableStylesChange"), this._emitter.notify("onAnyChange"), t2 === this._defaultTableStyle.getName();
|
|
11965
11968
|
}
|
|
11966
11969
|
getDefaultTableStyle() {
|
|
11967
|
-
return this._defaultTableStyle || (this._defaultTableStyle = this._builtInsTableStyles.get(
|
|
11970
|
+
return this._defaultTableStyle || (this._defaultTableStyle = this._builtInsTableStyles.get($m.toLowerCase())), this._defaultTableStyle;
|
|
11968
11971
|
}
|
|
11969
11972
|
_deleteCustomTableStyle(t2) {
|
|
11970
11973
|
const e2 = this._customTableStyles.get(t2?.toLowerCase());
|
|
11971
|
-
return !!e2 && (this._customTableStyles.delete(t2.toLowerCase()), this._defaultTableStyle?.getName() === e2.getName() && (this._defaultTableStyle = this._builtInsTableStyles.get(
|
|
11974
|
+
return !!e2 && (this._customTableStyles.delete(t2.toLowerCase()), this._defaultTableStyle?.getName() === e2.getName() && (this._defaultTableStyle = this._builtInsTableStyles.get($m.toLowerCase())), this._emitter.notify("onTableStylesChange"), this._emitter.notify("onAnyChange"), true);
|
|
11972
11975
|
}
|
|
11973
11976
|
setCustomTableStyle(t2, e2) {
|
|
11974
11977
|
const n2 = this._setCustomTableStyleInternal(t2, e2);
|
|
@@ -12040,7 +12043,7 @@ class Qm {
|
|
|
12040
12043
|
}
|
|
12041
12044
|
o2.length > 0 && (e2.named = o2);
|
|
12042
12045
|
const s2 = {};
|
|
12043
|
-
this._defaultTableStyle && this._defaultTableStyle.getName() !==
|
|
12046
|
+
this._defaultTableStyle && this._defaultTableStyle.getName() !== $m && (s2.defaultTableStyle = this._defaultTableStyle.getName());
|
|
12044
12047
|
const i2 = {}, a2 = this.getCustomTableStyles(), l2 = a2.length;
|
|
12045
12048
|
for (let t3 = 0; t3 < l2; t3++) {
|
|
12046
12049
|
const e3 = a2[t3], n3 = e3.toJSON();
|
|
@@ -12078,7 +12081,7 @@ class Qm {
|
|
|
12078
12081
|
this._indexedColors = this._fromJSONIndexedColors(t2.indexedColors);
|
|
12079
12082
|
const e2 = t2.named;
|
|
12080
12083
|
for (let n3 = 0; e2 && n3 < e2.length; n3++) this._setCustomCellStyleInternal(t2.named[n3]);
|
|
12081
|
-
let n2 =
|
|
12084
|
+
let n2 = $m;
|
|
12082
12085
|
if (this._defaultTableStyle = null, t2.tables) {
|
|
12083
12086
|
t2.tables.defaultTableStyle && (n2 = t2.tables.defaultTableStyle);
|
|
12084
12087
|
const e3 = t2.tables.styles, r3 = e3 ? Object.keys(e3) : null, o3 = r3 ? r3.length : 0;
|
|
@@ -12465,13 +12468,13 @@ const df = (t2, e2) => {
|
|
|
12465
12468
|
const e3 = E2[r3], s3 = e3.value.setError(true, t2);
|
|
12466
12469
|
h2?.insert(s3), n3[r3] = s3, _2 = c.unionRanges(_2, e3);
|
|
12467
12470
|
const i3 = { colStart: e3.colStart, rowStart: e3.rowStart, colEnd: e3.colStart, rowEnd: e3.rowStart };
|
|
12468
|
-
o2.insertNonOverlapping({ colStart: e3.colStart, rowStart: e3.rowStart, colEnd: e3.colStart, rowEnd: e3.rowStart, value: new
|
|
12471
|
+
o2.insertNonOverlapping({ colStart: e3.colStart, rowStart: e3.rowStart, colEnd: e3.colStart, rowEnd: e3.rowStart, value: new Fh(e3, b2) }), a2?.push(i3);
|
|
12469
12472
|
}
|
|
12470
12473
|
s2.load(n3);
|
|
12471
12474
|
}
|
|
12472
12475
|
for (let t3 = 0; t3 < y2; t3++) {
|
|
12473
12476
|
const e2 = c.sanitizeRange(r2[t3]);
|
|
12474
|
-
o2.insertNonOverlapping({ colStart: e2.colStart, rowStart: e2.rowStart, colEnd: e2.colEnd, rowEnd: e2.rowEnd, value: new
|
|
12477
|
+
o2.insertNonOverlapping({ colStart: e2.colStart, rowStart: e2.rowStart, colEnd: e2.colEnd, rowEnd: e2.rowEnd, value: new Fh(e2, b2) }), m2 && l2?.insertNonOverlapping(e2), a2?.push(e2), _2 = c.unionRanges(_2, e2);
|
|
12475
12478
|
}
|
|
12476
12479
|
return _2;
|
|
12477
12480
|
}, _f = (t2, e2, n2) => {
|
|
@@ -12506,8 +12509,8 @@ class Sf {
|
|
|
12506
12509
|
const e3 = n2.length;
|
|
12507
12510
|
for (let r4 = 0; r4 < e3; r4++) {
|
|
12508
12511
|
const e4 = n2[r4];
|
|
12509
|
-
|
|
12510
|
-
const l2 =
|
|
12512
|
+
$f.length = 0;
|
|
12513
|
+
const l2 = $f;
|
|
12511
12514
|
s3.search(e4, false, l2), o2.search(e4, false, l2);
|
|
12512
12515
|
const c2 = l2.length;
|
|
12513
12516
|
if (0 === c2) continue;
|
|
@@ -12740,7 +12743,7 @@ class Sf {
|
|
|
12740
12743
|
if (r3 < a2 || r3 > c2) continue;
|
|
12741
12744
|
if (e3.value.getError()) continue;
|
|
12742
12745
|
const o3 = d2 + (e3.colEnd - r3), m3 = u2 + (e3.rowEnd - n3), f2 = { colStart: d2, rowStart: u2, colEnd: o3, rowEnd: m3 };
|
|
12743
|
-
s2.push({ colStart: d2, rowStart: u2, colEnd: o3, rowEnd: m3, value: new
|
|
12746
|
+
s2.push({ colStart: d2, rowStart: u2, colEnd: o3, rowEnd: m3, value: new kh(f2, 0, false) });
|
|
12744
12747
|
}
|
|
12745
12748
|
return { removes: i2, inserts: s2 };
|
|
12746
12749
|
}
|
|
@@ -12919,7 +12922,7 @@ class Sf {
|
|
|
12919
12922
|
let n5 = e3[t4];
|
|
12920
12923
|
if (mf(i4.rowStart, i4.colStart, n5) && a3.getCycleId() === o2) {
|
|
12921
12924
|
r3 || (r3 = [], s3 = /* @__PURE__ */ new Set());
|
|
12922
|
-
const t5 = Jc(n5.colStart) +
|
|
12925
|
+
const t5 = Jc(n5.colStart) + $c(n5.rowStart);
|
|
12923
12926
|
if (s3.has(t5)) continue;
|
|
12924
12927
|
s3.add(t5), r3.push({ colStart: i4.colStart, rowStart: i4.rowStart, colEnd: i4.colEnd, rowEnd: i4.rowEnd, value: n5.value.getError() });
|
|
12925
12928
|
}
|
|
@@ -13032,7 +13035,7 @@ class Sf {
|
|
|
13032
13035
|
}
|
|
13033
13036
|
_markAndPlan(t2, e2, n2) {
|
|
13034
13037
|
let r2;
|
|
13035
|
-
Df = 0,
|
|
13038
|
+
Df = 0, Hf = 0, Wf = 0, jf = 0;
|
|
13036
13039
|
const s2 = this._precedentSpatial, i2 = this._formulaSpatial;
|
|
13037
13040
|
Lf = 0, zf = 0;
|
|
13038
13041
|
const a2 = this._cycleId, l2 = e2.length;
|
|
@@ -13081,14 +13084,14 @@ class Sf {
|
|
|
13081
13084
|
}
|
|
13082
13085
|
}
|
|
13083
13086
|
}
|
|
13084
|
-
e3.inDegree = l3, 0 === e3.inDegree && (Pf[
|
|
13087
|
+
e3.inDegree = l3, 0 === e3.inDegree && (Pf[Wf++] = e3);
|
|
13085
13088
|
}
|
|
13086
13089
|
const d2 = (t3) => {
|
|
13087
|
-
t3.markId === n2 && (t3.inDegree--, 0 === t3.inDegree && (Pf[
|
|
13090
|
+
t3.markId === n2 && (t3.inDegree--, 0 === t3.inDegree && (Pf[Wf++] = t3));
|
|
13088
13091
|
};
|
|
13089
|
-
for (;
|
|
13090
|
-
const t3 = Pf[
|
|
13091
|
-
Vf[
|
|
13092
|
+
for (; Hf < Wf; ) {
|
|
13093
|
+
const t3 = Pf[Hf++];
|
|
13094
|
+
Vf[jf++] = t3;
|
|
13092
13095
|
const e3 = t3.colIndex, n3 = t3.rowIndex;
|
|
13093
13096
|
bf.colStart = e3, bf.rowStart = n3, bf.colEnd = e3, bf.rowEnd = n3;
|
|
13094
13097
|
const r3 = s2.search(bf), o2 = r3.length;
|
|
@@ -13097,12 +13100,12 @@ class Sf {
|
|
|
13097
13100
|
s3 ? c2(s3, o3, d2) : Ef(o3, n3, e3, d2);
|
|
13098
13101
|
}
|
|
13099
13102
|
}
|
|
13100
|
-
return
|
|
13103
|
+
return jf < Df ? { completed: false, onces: r2 } : { completed: true, onces: r2 };
|
|
13101
13104
|
}
|
|
13102
13105
|
_evaluate(t2) {
|
|
13103
13106
|
const r2 = this._calculation._getContext(), o2 = this._calculation._getScope();
|
|
13104
13107
|
o2.sheetName = this._options.getSheetName?.();
|
|
13105
|
-
let s2 =
|
|
13108
|
+
let s2 = kf;
|
|
13106
13109
|
s2.length = 0;
|
|
13107
13110
|
let i2 = 0, a2 = true;
|
|
13108
13111
|
const l2 = this._cycleId, h2 = this._invalidations, d2 = this._contentfulSpatial, u2 = this._notifyValues, g2 = this._notifySpills, m2 = this._precedentSpatial, f2 = this._spillSpatial, p2 = this._values, _2 = p2.getOrientation(), S2 = _2 === e.Orientation.Column;
|
|
@@ -13110,7 +13113,7 @@ class Sf {
|
|
|
13110
13113
|
o2.spillSpatial = this._spillSpatial, o2.values = p2;
|
|
13111
13114
|
const y2 = r2.getEntireCoords.bind(r2);
|
|
13112
13115
|
let E2;
|
|
13113
|
-
for (let e2 = 0; e2 <
|
|
13116
|
+
for (let e2 = 0; e2 < jf; e2++) {
|
|
13114
13117
|
const C2 = Vf[e2];
|
|
13115
13118
|
if (C2.state === Bh && l2 === C2.cycleId) {
|
|
13116
13119
|
C2.state = Dh;
|
|
@@ -13147,15 +13150,15 @@ class Sf {
|
|
|
13147
13150
|
}
|
|
13148
13151
|
const T2 = S2 ? v2 : x2, N2 = S2 ? x2 : v2;
|
|
13149
13152
|
o2.node = C2, o2.colIndex = v2, o2.rowIndex = x2;
|
|
13150
|
-
const
|
|
13151
|
-
let
|
|
13153
|
+
const k2 = b2.formula;
|
|
13154
|
+
let F2, O2;
|
|
13152
13155
|
const D2 = C2.pending;
|
|
13153
13156
|
let B2 = D2;
|
|
13154
|
-
if ((A2 || C2.pendingPromise) && (B2 = true,
|
|
13157
|
+
if ((A2 || C2.pendingPromise) && (B2 = true, F2 = C2.cachedValue ?? null, C2.pendingPromise && (C2.pendingResolved ? (C2.pendingPromise = null, C2.pendingResolved = false, B2 = false) : (C2.pendingPromise.cancelled = true, F2 = void 0))), void 0 === F2 && (o2.formula = k2, o2.colIndex = v2, o2.rowIndex = x2, F2 = k2.evaluate(r2, void 0, C2.inputs), o2.formula = null, O2 = F2 && F2.then ? F2 : null, B2 = !!O2), B2 !== D2 && (C2.pending = B2, w2 || (w2 = Ol(S2)), w2.append(T2, N2, B2)), O2 && (F2 = C2.cachedValue ?? null, !O2.__originator)) {
|
|
13155
13158
|
O2.__originator = l2;
|
|
13156
13159
|
const t3 = C2;
|
|
13157
|
-
|
|
13158
|
-
if (
|
|
13160
|
+
Ff.add(t3), t3.pendingPromise = O2, t3.pendingResolved = false, O2.then((e3) => {
|
|
13161
|
+
if (Ff.delete(t3), O2.cancelled) return;
|
|
13159
13162
|
t3.pendingPromise = O2, t3.pendingResolved = true;
|
|
13160
13163
|
let n2 = Tc(e3, r2);
|
|
13161
13164
|
null === n2 && (n2 = 0), t3.cachedValue = n2, this._scheduleRecalculation(t3);
|
|
@@ -13164,30 +13167,30 @@ class Sf {
|
|
|
13164
13167
|
}
|
|
13165
13168
|
let L2 = 1, z2 = 1;
|
|
13166
13169
|
const P2 = I2 instanceof pc;
|
|
13167
|
-
let
|
|
13168
|
-
const
|
|
13169
|
-
if (P2 ||
|
|
13170
|
+
let H2;
|
|
13171
|
+
const W2 = I2 instanceof n.Spill;
|
|
13172
|
+
if (P2 || W2) {
|
|
13170
13173
|
Rf.colStart = v2, Rf.rowStart = x2, Rf.colEnd = v2, Rf.rowEnd = x2;
|
|
13171
13174
|
const t3 = f2.search(Rf);
|
|
13172
|
-
for (let e3 = 0; !
|
|
13175
|
+
for (let e3 = 0; !H2 && e3 < t3.length; e3++) {
|
|
13173
13176
|
const n2 = t3[e3];
|
|
13174
|
-
n2.colStart === v2 && n2.rowStart === x2 && (
|
|
13177
|
+
n2.colStart === v2 && n2.rowStart === x2 && (H2 = n2);
|
|
13175
13178
|
}
|
|
13176
|
-
if (
|
|
13179
|
+
if (H2) {
|
|
13177
13180
|
if (P2) {
|
|
13178
13181
|
const t5 = I2;
|
|
13179
13182
|
L2 = t5.getWidth(), z2 = t5.getHeight();
|
|
13180
13183
|
}
|
|
13181
13184
|
const t4 = { colStart: v2, rowStart: x2, colEnd: v2 + L2 - 1, rowEnd: x2 + z2 - 1 };
|
|
13182
|
-
f2.remove(
|
|
13185
|
+
f2.remove(H2), H2 && H2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
|
|
13183
13186
|
}
|
|
13184
13187
|
}
|
|
13185
|
-
let V2 = 1,
|
|
13186
|
-
const
|
|
13187
|
-
let U2, J2 =
|
|
13188
|
-
if (G2 &&
|
|
13189
|
-
V2 =
|
|
13190
|
-
const t3 = { colStart: v2, rowStart: x2, colEnd: v2 + V2 - 1, rowEnd: x2 +
|
|
13188
|
+
let V2 = 1, j2 = 1;
|
|
13189
|
+
const $2 = F2, G2 = $2?.isIRange;
|
|
13190
|
+
let U2, J2 = F2 instanceof n.Spill;
|
|
13191
|
+
if (G2 && $2.size > 1) {
|
|
13192
|
+
V2 = $2.getWidth(), j2 = $2.getHeight();
|
|
13193
|
+
const t3 = { colStart: v2, rowStart: x2, colEnd: v2 + V2 - 1, rowEnd: x2 + j2 - 1 }, e3 = r2.getEntireCoords(), o3 = !c.isRangeWithinRange(t3, e3);
|
|
13191
13194
|
if (o3 && (t3.colEnd = Math.min(t3.colEnd, e3.colEnd), t3.rowEnd = Math.min(t3.rowEnd, e3.rowEnd)), J2 = o3, !J2) {
|
|
13192
13195
|
const e4 = d2.search(t3);
|
|
13193
13196
|
if (J2 = e4.length > 1, !J2 && 1 === e4.length) {
|
|
@@ -13197,23 +13200,23 @@ class Sf {
|
|
|
13197
13200
|
}
|
|
13198
13201
|
let s3, i3;
|
|
13199
13202
|
if (J2) {
|
|
13200
|
-
|
|
13201
|
-
s3 = [[T2, [[N2, [
|
|
13203
|
+
F2 = n.BuiltIn.Spill, V2 = 1, j2 = 1;
|
|
13204
|
+
s3 = [[T2, [[N2, [F2]]]]], p2.setValues(s3), i3 = { colStart: v2, rowStart: x2, colEnd: v2, rowEnd: x2 };
|
|
13202
13205
|
} else {
|
|
13203
|
-
const e4 = ff(
|
|
13206
|
+
const e4 = ff($2, T2, N2);
|
|
13204
13207
|
e4 && (s3 = e4.tuples), s3 && p2.setValues(s3), i3 = t3;
|
|
13205
13208
|
}
|
|
13206
|
-
U2 = { ...t3, value: new
|
|
13209
|
+
U2 = { ...t3, value: new kh(t3, l2, J2) }, f2.insert(U2), E2 = _f(E2, C2, t3), u2.insertNonOverlapping(i3), h2.insertNonOverlapping(i3), d2.insertNonOverlapping({ ...i3, value: new Fh(i3, _2) });
|
|
13207
13210
|
}
|
|
13208
|
-
(!c.isEqualRanges(
|
|
13209
|
-
let q2 =
|
|
13210
|
-
|
|
13211
|
+
(!c.isEqualRanges(H2, U2) || J2 || W2) && (H2 && g2.insert(H2), U2 && g2.insert(U2)), V2 === L2 && j2 === z2 || (C2.state = Bh, h2.insertNonOverlapping({ colStart: v2, rowStart: x2, colEnd: v2 + Math.max(V2, L2) - 1, rowEnd: x2 + Math.max(j2, z2) - 1 }), a2 = false);
|
|
13212
|
+
let q2 = F2 && F2.isFormulaError ? F2 : null;
|
|
13213
|
+
k2.getError() && (q2 = k2.getError()), (q2 || R2 && !t2) && (q2 && !q2.equals(R2) || R2 && R2.equals(q2)), C2.cachedValue = F2, s2[i2++] = C2;
|
|
13211
13214
|
}
|
|
13212
13215
|
if (o2.node = null, o2.colIndex = Number.MAX_SAFE_INTEGER, o2.rowIndex = Number.MAX_SAFE_INTEGER, w2) {
|
|
13213
13216
|
const t3 = w2.done(true);
|
|
13214
13217
|
this._notifyPending.load(t3);
|
|
13215
13218
|
}
|
|
13216
|
-
return i2 > 0 && (s2.length = i2, wf(s2, p2, u2, S2), i2 = 0), { completed: a2, dynamic: E2, count:
|
|
13219
|
+
return i2 > 0 && (s2.length = i2, wf(s2, p2, u2, S2), i2 = 0), { completed: a2, dynamic: E2, count: jf };
|
|
13217
13220
|
}
|
|
13218
13221
|
async calculate(t2) {
|
|
13219
13222
|
const e2 = this._calculation.getStatus();
|
|
@@ -13223,9 +13226,9 @@ class Sf {
|
|
|
13223
13226
|
n2 || ("boolean" == typeof t2 ? n2 = t2 : t2 && (n2 = t2.full ?? false));
|
|
13224
13227
|
const r2 = this._invalidations;
|
|
13225
13228
|
if (this._formulaSpatial.isEmpty()) {
|
|
13226
|
-
if (r2.clear(),
|
|
13229
|
+
if (r2.clear(), Ff.size > 0) {
|
|
13227
13230
|
const t3 = ++Mf;
|
|
13228
|
-
|
|
13231
|
+
Ff.forEach((e3) => {
|
|
13229
13232
|
e3.markId = t3;
|
|
13230
13233
|
});
|
|
13231
13234
|
}
|
|
@@ -13360,7 +13363,7 @@ class Sf {
|
|
|
13360
13363
|
const t4 = new pc(a3, g3);
|
|
13361
13364
|
v2.cachedValue = t4;
|
|
13362
13365
|
}
|
|
13363
|
-
d3.value = new
|
|
13366
|
+
d3.value = new kh(g3, 0, u3), s3.push(d3);
|
|
13364
13367
|
const x2 = { colStart: m3, rowStart: f3, colEnd: p3, rowEnd: _2, value: u3 };
|
|
13365
13368
|
c.isSingleCell(x2) || t3.push(x2), _f(i3, v2, g3);
|
|
13366
13369
|
}
|
|
@@ -13490,15 +13493,15 @@ const wf = (t2, e2, n2, r2) => {
|
|
|
13490
13493
|
new n.Calc("Cyclical dependency");
|
|
13491
13494
|
const Af = (t2) => new wa(t2);
|
|
13492
13495
|
let Mf = 0;
|
|
13493
|
-
const Tf = 1e4, Nf = new Array(Tf),
|
|
13496
|
+
const Tf = 1e4, Nf = new Array(Tf), kf = new Array(Tf), Ff = /* @__PURE__ */ new Set(), Of = new Array(Tf);
|
|
13494
13497
|
let Df = 0;
|
|
13495
13498
|
const Bf = new Array(Tf);
|
|
13496
13499
|
let Lf = 0, zf = 0;
|
|
13497
13500
|
const Pf = new Array(Tf);
|
|
13498
|
-
let
|
|
13501
|
+
let Hf = 0, Wf = 0;
|
|
13499
13502
|
const Vf = new Array(Tf);
|
|
13500
|
-
let
|
|
13501
|
-
const
|
|
13503
|
+
let jf = 0;
|
|
13504
|
+
const $f = new Array(Tf), Gf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Uf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Jf = [null, null], qf = Object.freeze({ inserts: o.EmptyArray, removes: o.EmptyArray });
|
|
13502
13505
|
function Kf(t2, e2, n2, r2) {
|
|
13503
13506
|
const o2 = t2;
|
|
13504
13507
|
if (o2?.getSplit) {
|
|
@@ -13517,9 +13520,9 @@ class Yf {
|
|
|
13517
13520
|
this._instanceScope = t2;
|
|
13518
13521
|
}
|
|
13519
13522
|
async _initialize() {
|
|
13520
|
-
const t2 = await
|
|
13523
|
+
const t2 = await dt._validate(true), e2 = Zf();
|
|
13521
13524
|
this._calcScope = e2, this._runtime = new Qf(this._options, t2);
|
|
13522
|
-
const { initializeBuiltIns: n2 } = await import("./
|
|
13525
|
+
const { initializeBuiltIns: n2 } = await import("./DlH4gSCmCWHrZ5KA.mjs"), r2 = this;
|
|
13523
13526
|
return this._builtInFunctions = Object.freeze(n2(() => r2)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
|
|
13524
13527
|
}
|
|
13525
13528
|
getBuiltInFunctions() {
|
|
@@ -13692,7 +13695,7 @@ class Qf {
|
|
|
13692
13695
|
}
|
|
13693
13696
|
getVersion() {
|
|
13694
13697
|
try {
|
|
13695
|
-
const t2 = "0.7.
|
|
13698
|
+
const t2 = "0.7.22";
|
|
13696
13699
|
if (-1 === t2.indexOf(".env.")) return `${t2}`;
|
|
13697
13700
|
} catch (t2) {
|
|
13698
13701
|
return "local";
|
|
@@ -14242,7 +14245,7 @@ class vp extends la {
|
|
|
14242
14245
|
this._context = r2;
|
|
14243
14246
|
const o2 = await r2._initialize(), s2 = o2.builtInFunctions;
|
|
14244
14247
|
this._functions = new bp({ transactions: this._transactions, context: r2, readonlyFunctions: s2 });
|
|
14245
|
-
const i2 = await import("./
|
|
14248
|
+
const i2 = await import("./5ncGZrnXLJWZdlAS.mjs");
|
|
14246
14249
|
this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status = lf.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
|
|
14247
14250
|
} catch (t2) {
|
|
14248
14251
|
throw this._status = lf.Status.Off, this._emitter.notify("onError", t2), this._emitter.notify("onStatusChange"), t2;
|
|
@@ -14301,8 +14304,8 @@ const xp = Promise.resolve();
|
|
|
14301
14304
|
var Ip, Rp;
|
|
14302
14305
|
Ip || (Ip = {}), Rp || (Rp = {});
|
|
14303
14306
|
const Ap = Object.freeze(Object.defineProperty({ __proto__: null, nowWithPrecision: (t2 = 6e4) => new Date(Math.floor(Date.now() / t2) * t2) }, Symbol.toStringTag, { value: "Module" }));
|
|
14304
|
-
var Mp, Tp, Np,
|
|
14305
|
-
Mp || (Mp = {}), (Np = Tp || (Tp = {})).NumberFilterOperatorType = { Equal: "equal", GreaterThan: "greaterThan", GreaterThanOrEqual: "greaterThanOrEqual", LessThan: "lessThan", LessThanOrEqual: "lessThanOrEqual", NotEqual: "notEqual" }, Np.Type = { Color: "color", Custom: "custom", Dynamic: "dynamic", Items: "items", Icon: "icon", Top10: "top10" }, Np.DynamicType = { AboveAverage: "aboveAverage", BelowAverage: "belowAverage", LastMonth: "lastMonth", LastQuarter: "lastQuarter", LastWeek: "lastWeek", LastYear: "lastYear", M1: "M1", M2: "M2", M3: "M3", M4: "M4", M5: "M5", M6: "M6", M7: "M7", M8: "M8", M9: "M9", M10: "M10", M11: "M11", M12: "M12", NextMonth: "nextMonth", NextQuarter: "nextQuarter", NextWeek: "nextWeek", Null: "null", Q1: "Q1", Q2: "Q2", Q3: "Q3", Q4: "Q4", ThisMonth: "thisMonth", ThisQuarter: "thisQuarter", ThisWeek: "thisWeek", Today: "today", Tomorrow: "tomorrow", YearToDate: "yearToDate", Yesterday: "yesterday" }, Np.DateItemGroupingType = { Day: "day", Hour: "hour", Minute: "minute", Month: "month", Second: "Second", Year: "year" }, (
|
|
14307
|
+
var Mp, Tp, Np, kp, Fp, Op;
|
|
14308
|
+
Mp || (Mp = {}), (Np = Tp || (Tp = {})).NumberFilterOperatorType = { Equal: "equal", GreaterThan: "greaterThan", GreaterThanOrEqual: "greaterThanOrEqual", LessThan: "lessThan", LessThanOrEqual: "lessThanOrEqual", NotEqual: "notEqual" }, Np.Type = { Color: "color", Custom: "custom", Dynamic: "dynamic", Items: "items", Icon: "icon", Top10: "top10" }, Np.DynamicType = { AboveAverage: "aboveAverage", BelowAverage: "belowAverage", LastMonth: "lastMonth", LastQuarter: "lastQuarter", LastWeek: "lastWeek", LastYear: "lastYear", M1: "M1", M2: "M2", M3: "M3", M4: "M4", M5: "M5", M6: "M6", M7: "M7", M8: "M8", M9: "M9", M10: "M10", M11: "M11", M12: "M12", NextMonth: "nextMonth", NextQuarter: "nextQuarter", NextWeek: "nextWeek", Null: "null", Q1: "Q1", Q2: "Q2", Q3: "Q3", Q4: "Q4", ThisMonth: "thisMonth", ThisQuarter: "thisQuarter", ThisWeek: "thisWeek", Today: "today", Tomorrow: "tomorrow", YearToDate: "yearToDate", Yesterday: "yesterday" }, Np.DateItemGroupingType = { Day: "day", Hour: "hour", Minute: "minute", Month: "month", Second: "Second", Year: "year" }, (Fp = kp || (kp = {})).Type = { AboveAverage: "aboveAverage", BeginsWith: "beginsWith", CellIs: "cellIs", ColorScale: "colorScale", ContainsBlanks: "containsBlanks", ContainsErrors: "containsErrors", ContainsText: "containsText", DataBar: "dataBar", DuplicateValues: "duplicateValues", EndsWith: "endsWith", Expression: "expression", IconSet: "iconSet", NotContainsBlanks: "notContainsBlanks", NotContainsErrors: "notContainsErrors", NotContainsText: "notContainsText", TimePeriod: "timePeriod", Top10: "top10", UniqueValues: "uniqueValues" }, Fp.OperatorType = { BeginsWith: "beginsWith", Between: "between", ContainsText: "containsText", EndsWith: "endsWith", Equal: "equal", GreaterThan: "greaterThan", GreaterThanOrEqual: "greaterThanOrEqual", LessThan: "lessThan", LessThanOrEqual: "lessThanOrEqual", NotBetween: "notBetween", NotContains: "notContains", NotEqual: "notEqual" }, Fp.TimePeriod = { Last7Days: "last7Days", LastMonth: "lastMonth", LastWeek: "lastWeek", NextMonth: "nextMonth", NextWeek: "nextWeek", ThisMonth: "thisMonth", ThisWeek: "thisWeek", Today: "today", Tomorrow: "tomorrow", Yesterday: "yesterday" }, Fp.ConditionalBoundsType = { Formula: "formula", Max: "max", Min: "min", Num: "num", Percent: "percent", Percentile: "percentile" }, (Op || (Op = {})).HeaderTextStyle = { A1: "a1", Zero: "zero", One: "one" };
|
|
14306
14309
|
class Dp {
|
|
14307
14310
|
constructor(t2, e2, n2, r2) {
|
|
14308
14311
|
this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = t2, this._topLeft = r2 ?? { rowIndex: 0, colIndex: 0 }, this._sheet = new dS({ styles: this._styles, date1904: e2, container: { getName: () => n2, getIndex: () => 1 } }), this._cellUpdater = this._sheet.getEntireRange().startIncrementalUpdates();
|
|
@@ -14445,7 +14448,7 @@ const zp = (t2) => {
|
|
|
14445
14448
|
const s2 = new RegExp(':(?=([^"]*"[^"]*")*[^"]*$)', "gsm");
|
|
14446
14449
|
let i2, a2, l2;
|
|
14447
14450
|
for (; null !== (l2 = s2.exec(n3)); ) i2 = unescape(n3.substring(0, l2.index)).trim(), a2 = unescape(n3.substring(l2.index + 1, n3.length)).trim();
|
|
14448
|
-
null !== a2 && "null" !== a2 && (i2 && (i2 =
|
|
14451
|
+
null !== a2 && "null" !== a2 && (i2 && (i2 = ko(i2)), e2[i2] = a2);
|
|
14449
14452
|
} catch (t3) {
|
|
14450
14453
|
console.warn(t3);
|
|
14451
14454
|
}
|
|
@@ -14464,7 +14467,7 @@ const zp = (t2) => {
|
|
|
14464
14467
|
}
|
|
14465
14468
|
}
|
|
14466
14469
|
return n2;
|
|
14467
|
-
},
|
|
14470
|
+
}, Hp = (t2, e2, n2) => {
|
|
14468
14471
|
try {
|
|
14469
14472
|
let r2 = null, o2 = null;
|
|
14470
14473
|
const s2 = (t3) => ((t4, e3) => {
|
|
@@ -14614,7 +14617,7 @@ const zp = (t2) => {
|
|
|
14614
14617
|
throw console.warn(t3), t3;
|
|
14615
14618
|
}
|
|
14616
14619
|
};
|
|
14617
|
-
class
|
|
14620
|
+
class Wp {
|
|
14618
14621
|
constructor(t2) {
|
|
14619
14622
|
if (!t2) throw new u("snapshot is required.");
|
|
14620
14623
|
this._snapshot = t2;
|
|
@@ -14698,7 +14701,7 @@ class Vp {
|
|
|
14698
14701
|
});
|
|
14699
14702
|
}))(e2) : [[]]);
|
|
14700
14703
|
let s2;
|
|
14701
|
-
if (
|
|
14704
|
+
if (Hp(n2, o2, r2) ? (t2 = r2.sheet(), s2 = t2.getUsedRange()) : n2 = null, s2) return this._parsed = { async copyTo(t3, e3) {
|
|
14702
14705
|
const n3 = await t3.copyFrom(s2, e3);
|
|
14703
14706
|
return n3?.getCoords() ?? null;
|
|
14704
14707
|
}, getCoords: () => s2.getCoords(), getSource: () => t2, getName: () => t2.getName() }, true;
|
|
@@ -14718,9 +14721,9 @@ class Vp {
|
|
|
14718
14721
|
return true;
|
|
14719
14722
|
}
|
|
14720
14723
|
}
|
|
14721
|
-
var
|
|
14722
|
-
(
|
|
14723
|
-
class
|
|
14724
|
+
var jp;
|
|
14725
|
+
(jp || (jp = {})).Visibility = { Visible: "visible", Hidden: "hidden", VeryHidden: "veryHidden" };
|
|
14726
|
+
class $p extends xm {
|
|
14724
14727
|
static {
|
|
14725
14728
|
this.instanceCounter = 0;
|
|
14726
14729
|
}
|
|
@@ -14773,7 +14776,7 @@ class jp extends xm {
|
|
|
14773
14776
|
return this._optionsMovable.unselect?.(), t2;
|
|
14774
14777
|
}
|
|
14775
14778
|
_clone() {
|
|
14776
|
-
const t2 = this.isSelected(), e2 = this.getZIndex(), n2 = this._optionsMovable.getMaxBounds, r2 = this._options.maxRangeCoords, o2 = this.getContent(), s2 = { beginPersistResource: this._optionsMovable.beginPersistResource, getBoundsAtCoords: this._optionsMovable.getBoundsAtCoords, getCoordsAtBounds: this._optionsMovable.getCoordsAtBounds, isSelected: () => t2, getZIndex: () => e2, getMaxBounds: n2, maxRangeCoords: r2, transactions: new O({ transient: true }), json: this.toJSON(), initialAnchor: this.getAnchorCoords(), content: o2 }, i2 = new
|
|
14779
|
+
const t2 = this.isSelected(), e2 = this.getZIndex(), n2 = this._optionsMovable.getMaxBounds, r2 = this._options.maxRangeCoords, o2 = this.getContent(), s2 = { beginPersistResource: this._optionsMovable.beginPersistResource, getBoundsAtCoords: this._optionsMovable.getBoundsAtCoords, getCoordsAtBounds: this._optionsMovable.getCoordsAtBounds, isSelected: () => t2, getZIndex: () => e2, getMaxBounds: n2, maxRangeCoords: r2, transactions: new O({ transient: true }), json: this.toJSON(), initialAnchor: this.getAnchorCoords(), content: o2 }, i2 = new $p(s2), a2 = this._getState();
|
|
14777
14780
|
return i2._updateState({ ...a2 }), i2;
|
|
14778
14781
|
}
|
|
14779
14782
|
getSnapshot(t2, e2) {
|
|
@@ -14951,7 +14954,7 @@ class jp extends xm {
|
|
|
14951
14954
|
const e2 = { tl: { x: 0, y: 0 }, br: { x: 0, y: 0 } }, n2 = { ...c.EmptyRange };
|
|
14952
14955
|
t2.anchor && (e2.tl.x = t2.anchor.tl?.x ?? 0, e2.tl.y = t2.anchor.tl?.y ?? 0, e2.br.x = t2.anchor.br?.x ?? 0, e2.br.y = t2.anchor.br?.y ?? 0, n2.colStart = t2.anchor.tl?.c ?? 0, n2.rowStart = t2.anchor.tl?.r ?? 0, n2.colEnd = Math.max(n2.colStart, (t2.anchor.br?.c ?? 0) + (e2.br.x > 0 ? 0 : -1)), n2.rowEnd = Math.max(n2.rowStart, (t2.anchor.br?.r ?? 0) + (e2.br.y > 0 ? 0 : -1)));
|
|
14953
14956
|
const r2 = this._beginCommit("Load Movable"), o2 = t2.content.json, s2 = { offsets: e2, name: o2.name ?? null, description: o2.name ?? null, hidden: o2.hidden ?? false, rotation: o2.rotation ?? 0, lockAspectRatio: o2.lockAspect ?? null };
|
|
14954
|
-
t2.anchorType && (s2.anchorType = t2.anchorType), s2.name || (s2.name = `${this._content.getTypeDescription()} ${
|
|
14957
|
+
t2.anchorType && (s2.anchorType = t2.anchorType), s2.name || (s2.name = `${this._content.getTypeDescription()} ${++$p.instanceCounter}`), s2.bounds = this._calcAbsoluteBounds(n2, e2), this._updateState(s2, { description: "Load Movable" }), this._optionsMovable.setContainerCoords?.(n2), r2.commit();
|
|
14955
14958
|
}
|
|
14956
14959
|
toJSON(t2) {
|
|
14957
14960
|
const e2 = this._getState(), n2 = e2.anchor, r2 = e2.offsets, s2 = { tl: { c: n2.colStart, r: n2.rowStart }, br: { c: n2.colEnd + (r2.br.x ? 0 : 1), r: n2.rowEnd + (r2.br.y ? 0 : 1) } };
|
|
@@ -15208,7 +15211,7 @@ class t_ {
|
|
|
15208
15211
|
if (new RegExp(Qp).test(r2[0])) throw new Error("First letter must be either a letter, an underscore, or a backslash.");
|
|
15209
15212
|
if (new RegExp(Zp).test(o2)) throw new Error("Name must be either letters, numbers, periods or underscores.");
|
|
15210
15213
|
if (1 === r2.length && ("r" === r2[0] || "c" === r2[0])) throw new Error("Name can not be 'r' or 'c'.");
|
|
15211
|
-
if (((t3, e3 =
|
|
15214
|
+
if (((t3, e3 = Wc, n3 = Hc, r3 = false) => {
|
|
15212
15215
|
let o3 = fh(t3, r3);
|
|
15213
15216
|
if (!o3) return false;
|
|
15214
15217
|
if (o3[2]) return false;
|
|
@@ -16004,7 +16007,7 @@ class f_ extends la {
|
|
|
16004
16007
|
}
|
|
16005
16008
|
_fromJSON(t2) {
|
|
16006
16009
|
const e2 = {};
|
|
16007
|
-
e2.type = t2.type ??
|
|
16010
|
+
e2.type = t2.type ?? kp.Type.CellIs, e2.priority = t2.priority ?? 0, e2.stopIfTrue = t2.stopIfTrue ?? false, e2.style = t2.style ?? null, e2.colorScale = t2.colorScale ?? null, e2.dataBar = t2.dataBar ?? null, e2.iconSet = t2.iconSet ?? null, e2.aboveAverage = t2.aboveAverage ?? false, e2.equalAverage = t2.equalAverage ?? false, e2.stdDev = t2.stdDev ?? 0, e2.bottom = t2.bottom ?? false, e2.percent = t2.percent ?? false, e2.rank = t2.rank ?? 0, e2.operator = t2.operator ?? null, e2.formulas = t2.formulas ?? null, e2.text = t2.text ?? null, e2.timePeriod = t2.timePeriod ?? null, this._updateState(e2, { description: "Initialize Conditional Format" });
|
|
16008
16011
|
}
|
|
16009
16012
|
close() {
|
|
16010
16013
|
super.close(), this.isClosed() || (this._updateState({}, { description: "Close Conditional" }), this._stylesRemoveListener?.());
|
|
@@ -16358,7 +16361,7 @@ class T_ {
|
|
|
16358
16361
|
return true;
|
|
16359
16362
|
}
|
|
16360
16363
|
}
|
|
16361
|
-
const N_ = "The columns are protected. To make a change, unprotect the sheet. You might be requested to enter a password.",
|
|
16364
|
+
const N_ = "The columns are protected. To make a change, unprotect the sheet. You might be requested to enter a password.", k_ = "The rows are protected. To make a change, unprotect the sheet. You might be requested to enter a password.", F_ = "Rows", O_ = "Columns";
|
|
16362
16365
|
class D_ {
|
|
16363
16366
|
constructor(t2, e2) {
|
|
16364
16367
|
this._header = t2, this._coords = e2;
|
|
@@ -16380,7 +16383,7 @@ class D_ {
|
|
|
16380
16383
|
forEachVisibleSpan(t2, e2) {
|
|
16381
16384
|
const n2 = this._coords, r2 = n2?.min ?? null, o2 = n2?.max ?? null;
|
|
16382
16385
|
let s2;
|
|
16383
|
-
if (s2 = e2?.includeHidden ? t2(r2, o2) :
|
|
16386
|
+
if (s2 = e2?.includeHidden ? t2(r2, o2) : Ws(this._header._indexedHidden, (e3) => {
|
|
16384
16387
|
if (e3.value) return;
|
|
16385
16388
|
const n3 = t2(e3.min, e3.max);
|
|
16386
16389
|
return n3 && n3.break ? n3 : void 0;
|
|
@@ -16397,7 +16400,7 @@ class D_ {
|
|
|
16397
16400
|
}
|
|
16398
16401
|
updateHeaders(t2, e2) {
|
|
16399
16402
|
const n2 = this._header;
|
|
16400
|
-
return n2._updateHeaderPairs([{ address: this._coords, update: t2 }], { description: e2?.description ?? `Update ${n2._isColumn ? O_ :
|
|
16403
|
+
return n2._updateHeaderPairs([{ address: this._coords, update: t2 }], { description: e2?.description ?? `Update ${n2._isColumn ? O_ : F_} ${toString()}`, ...e2 }), this;
|
|
16401
16404
|
}
|
|
16402
16405
|
getCoords() {
|
|
16403
16406
|
return { ...this._coords };
|
|
@@ -16467,7 +16470,7 @@ class B_ {
|
|
|
16467
16470
|
}
|
|
16468
16471
|
updateHeaders(t2, e2) {
|
|
16469
16472
|
const n2 = this._header;
|
|
16470
|
-
return n2.updateHeaderPairs([{ address: this._coords, update: t2 }], { description: e2?.description ?? `Update ${n2._isColumn ? O_ :
|
|
16473
|
+
return n2.updateHeaderPairs([{ address: this._coords, update: t2 }], { description: e2?.description ?? `Update ${n2._isColumn ? O_ : F_} ${toString()}`, ...e2 }), this;
|
|
16471
16474
|
}
|
|
16472
16475
|
getCoords() {
|
|
16473
16476
|
return { ...this._coords };
|
|
@@ -16643,7 +16646,7 @@ class L_ {
|
|
|
16643
16646
|
}, getA1(t3) {
|
|
16644
16647
|
if (!_2) throw new Error(ed);
|
|
16645
16648
|
return this._parseHeaderRangeAddress({ min: i2 + t3, end: i2 + t3 }) ?? _2;
|
|
16646
|
-
} }, w2 =
|
|
16649
|
+
} }, w2 = Ws(e2, (e3) => {
|
|
16647
16650
|
const n3 = e3.value;
|
|
16648
16651
|
if (!l2 && !n3) return;
|
|
16649
16652
|
let r3 = l2;
|
|
@@ -16697,13 +16700,13 @@ class L_ {
|
|
|
16697
16700
|
at(t2) {
|
|
16698
16701
|
if (t2 < 0 || t2 > this._maxDataIndex) return this._emptyHeader;
|
|
16699
16702
|
if (this._lastHeaderRead?.offset === t2) return this._lastHeaderRead.header;
|
|
16700
|
-
const e2 =
|
|
16703
|
+
const e2 = Hs(t2, this._readCache);
|
|
16701
16704
|
if (!e2) return this._emptyHeader;
|
|
16702
16705
|
const n2 = this._options.getTextAt?.(t2) ?? t2 + "", r2 = this._options.createCellHeader(this, e2, { value: n2 });
|
|
16703
16706
|
return this._lastHeaderRead = { offset: t2, header: r2 }, r2;
|
|
16704
16707
|
}
|
|
16705
16708
|
updateHeaderPairs(t2, e2) {
|
|
16706
|
-
if (this.isProtected()) throw new Error(this._isColumn ? N_ :
|
|
16709
|
+
if (this.isProtected()) throw new Error(this._isColumn ? N_ : k_);
|
|
16707
16710
|
return this._updatePairsInternal(t2, e2);
|
|
16708
16711
|
}
|
|
16709
16712
|
_parseHeaderRangeAddress(t2) {
|
|
@@ -16727,11 +16730,11 @@ class L_ {
|
|
|
16727
16730
|
}
|
|
16728
16731
|
_setSize(t2, e2 = null, n2) {
|
|
16729
16732
|
(n2?.relativeSize ?? false) || "number" != typeof e2 || (e2 += "px");
|
|
16730
|
-
const r2 = { size: e2, autoSize: n2?.autoSize ?? false }, o2 = `Resize ${this._isColumn ? O_ :
|
|
16733
|
+
const r2 = { size: e2, autoSize: n2?.autoSize ?? false }, o2 = `Resize ${this._isColumn ? O_ : F_}`;
|
|
16731
16734
|
return this._update(t2, r2, { description: o2, ...n2 }), this;
|
|
16732
16735
|
}
|
|
16733
16736
|
_setHidden(t2, e2 = null) {
|
|
16734
|
-
const n2 = { hidden: e2 }, r2 = `${e2 ? "Unhide" : "Hide"} ${this._isColumn ? O_ :
|
|
16737
|
+
const n2 = { hidden: e2 }, r2 = `${e2 ? "Unhide" : "Hide"} ${this._isColumn ? O_ : F_}`;
|
|
16735
16738
|
return this._update(t2, n2, { description: r2 }), this;
|
|
16736
16739
|
}
|
|
16737
16740
|
_clear(t2, e2) {
|
|
@@ -16777,14 +16780,14 @@ class L_ {
|
|
|
16777
16780
|
}
|
|
16778
16781
|
_updatePairsInternal(t2, e2) {
|
|
16779
16782
|
if (!t2 || 0 === t2.length) return null;
|
|
16780
|
-
const n2 = e2?.skipCustomSize ?? false, r2 = this._isColumn, o2 = this.getSheet().getStyles(), s2 = this._beginCommit({ description: e2?.description ?? `Update ${r2 ? O_ :
|
|
16783
|
+
const n2 = e2?.skipCustomSize ?? false, r2 = this._isColumn, o2 = this.getSheet().getStyles(), s2 = this._beginCommit({ description: e2?.description ?? `Update ${r2 ? O_ : F_}` });
|
|
16781
16784
|
let i2 = [...this._getState().headers], a2 = false, l2 = false;
|
|
16782
16785
|
const c2 = r2 ? ci.Edge.Top : ci.Edge.Left;
|
|
16783
16786
|
ci.oppositeEdge(c2);
|
|
16784
16787
|
const h2 = r2 ? ci.Edge.Right : ci.Edge.Bottom;
|
|
16785
16788
|
ci.oppositeEdge(h2);
|
|
16786
16789
|
const u2 = this, g2 = (t3, e3) => {
|
|
16787
|
-
if (this.isProtected()) throw new Error(this._isColumn ? N_ :
|
|
16790
|
+
if (this.isProtected()) throw new Error(this._isColumn ? N_ : k_);
|
|
16788
16791
|
l2 = l2 || null === e3, !l2 && e3 && (l2 = !!e3.isICellHeader || (void 0 !== e3?.size || void 0 !== e3?.hidden)), a2 = a2 || null === e3 || void 0 !== e3?.style || e3?.isICellHeader;
|
|
16789
16792
|
const r3 = { onUpdate: (t4, e4) => {
|
|
16790
16793
|
if (n2 && t4 && t4.csz) return t4;
|
|
@@ -16792,7 +16795,7 @@ class L_ {
|
|
|
16792
16795
|
}, onSplit: (t4) => [t4.value, t4.value], onMerge: (t4, e4, n3, r4) => {
|
|
16793
16796
|
if (!(t4 && !e4 || !t4 && e4 || !t4 && !e4) && t4.sz === e4.sz && t4.csz === e4.csz && t4.h === e4.h && t4.cs === e4.cs) return t4;
|
|
16794
16797
|
}, isCull: (t4, e4, n3) => void 0 === t4 };
|
|
16795
|
-
i2 = Os(
|
|
16798
|
+
i2 = Os(Fs(i2, { min: t3.min, max: t3.max, value: e3 }, r3));
|
|
16796
16799
|
}, m2 = t2.length, f2 = new Array(m2);
|
|
16797
16800
|
for (let e3 = 0; e3 < m2; e3++) {
|
|
16798
16801
|
const n3 = t2[e3], r3 = this._parseHeaderRangeAddress(n3.address);
|
|
@@ -16929,7 +16932,7 @@ class L_ {
|
|
|
16929
16932
|
const i2 = t3.getOrientation() === e.Orientation.Column, a2 = o2.length;
|
|
16930
16933
|
for (let t4 = 0; o2 && t4 < a2; t4++) {
|
|
16931
16934
|
const e2 = o2[t4], n3 = i2 ? e2.colStart : e2.rowStart, a3 = i2 ? e2.colEnd : e2.rowEnd, l2 = i2 ? e2.rowStart : e2.colStart, c2 = i2 ? e2.rowEnd : e2.colEnd, h2 = i2 ? r2.rowStart : r2.colStart, d2 = i2 ? r2.rowEnd : r2.colEnd, u2 = l2 <= h2 && c2 >= d2;
|
|
16932
|
-
s2 = Os(
|
|
16935
|
+
s2 = Os(Fs(s2, { min: n3, max: a3, value: { isSelectedAll: false } }, { onUpdate: (t5, e3) => {
|
|
16933
16936
|
const n4 = As(t5, e3);
|
|
16934
16937
|
return n4.isSelectedAll = t5?.isSelectedAll || u2, n4;
|
|
16935
16938
|
} }));
|
|
@@ -16943,9 +16946,9 @@ class L_ {
|
|
|
16943
16946
|
return !r2 || 0 !== r2.spanSize || r2.indexMin > t2 || r2.indexMax < t2 ? 0 : e2 ? t2 - r2.indexMin + 1 : r2.indexMax - t2 + 1;
|
|
16944
16947
|
}
|
|
16945
16948
|
_insertHeaders(t2, e2) {
|
|
16946
|
-
if (this.isProtected()) throw new Error(this._isColumn ? N_ :
|
|
16949
|
+
if (this.isProtected()) throw new Error(this._isColumn ? N_ : k_);
|
|
16947
16950
|
if (e2 <= 0) return;
|
|
16948
|
-
const n2 = this._beginCommit({ description: `Insert ${this._isColumn ? O_ :
|
|
16951
|
+
const n2 = this._beginCommit({ description: `Insert ${this._isColumn ? O_ : F_}` }), r2 = this._getState();
|
|
16949
16952
|
let s2 = [...r2.headers];
|
|
16950
16953
|
s2 = Os(((t3, e3, n3 = 1) => {
|
|
16951
16954
|
const r3 = o.findEqualOrGreater(t3, e3, (t4) => t4.max), s3 = t3.slice(0, r3), i3 = [], a2 = [];
|
|
@@ -16958,10 +16961,10 @@ class L_ {
|
|
|
16958
16961
|
this._updateState({ headers: s2, runs: Os(Ds([...r2?.runs ?? [], ...i2])) }), n2.commit();
|
|
16959
16962
|
}
|
|
16960
16963
|
_deleteHeaders(t2, e2) {
|
|
16961
|
-
if (this.isProtected()) throw new Error(this._isColumn ? N_ :
|
|
16962
|
-
const n2 = this._beginCommit({ description: `Delete ${this._isColumn ? O_ :
|
|
16964
|
+
if (this.isProtected()) throw new Error(this._isColumn ? N_ : k_);
|
|
16965
|
+
const n2 = this._beginCommit({ description: `Delete ${this._isColumn ? O_ : F_}` }), r2 = this._getState();
|
|
16963
16966
|
let o2 = [...r2.headers];
|
|
16964
|
-
o2 = Os(
|
|
16967
|
+
o2 = Os(ks(o2, t2, e2));
|
|
16965
16968
|
const s2 = [{ min: t2, max: t2 + e2 }];
|
|
16966
16969
|
this._updateState({ headers: o2, runs: Os(Ds([...r2?.runs ?? [], ...s2])) }), n2.commit();
|
|
16967
16970
|
}
|
|
@@ -17052,7 +17055,7 @@ const P_ = (t2) => {
|
|
|
17052
17055
|
}
|
|
17053
17056
|
}
|
|
17054
17057
|
return e2;
|
|
17055
|
-
},
|
|
17058
|
+
}, H_ = (t2, e2 = 0, n2 = 0) => {
|
|
17056
17059
|
let r2 = "";
|
|
17057
17060
|
const o2 = bh, s2 = t2.length;
|
|
17058
17061
|
for (let i2 = 0; i2 < s2; i2++) {
|
|
@@ -17065,12 +17068,12 @@ const P_ = (t2) => {
|
|
|
17065
17068
|
}
|
|
17066
17069
|
return r2;
|
|
17067
17070
|
};
|
|
17068
|
-
class
|
|
17071
|
+
class W_ {
|
|
17069
17072
|
constructor(t2, e2, n2) {
|
|
17070
17073
|
this._c = t2, this._tokens = e2, this._references = n2 || o.EmptyArray;
|
|
17071
17074
|
}
|
|
17072
17075
|
getFormulaTextAt(t2, e2, n2 = false) {
|
|
17073
|
-
return n2 ? P_(this._tokens) :
|
|
17076
|
+
return n2 ? P_(this._tokens) : H_(this._tokens, t2, e2);
|
|
17074
17077
|
}
|
|
17075
17078
|
getTokensAt(t2, e2, n2) {
|
|
17076
17079
|
let r2 = this._tokens;
|
|
@@ -17149,7 +17152,7 @@ class V_ {
|
|
|
17149
17152
|
return false;
|
|
17150
17153
|
}
|
|
17151
17154
|
}
|
|
17152
|
-
class
|
|
17155
|
+
class j_ {
|
|
17153
17156
|
constructor(t2, e2, n2, r2, o2, s2, i2, a2, l2, c2) {
|
|
17154
17157
|
this.uuid = t2, this.spatialsIds = e2, this.isRanges = r2, this.coords = n2, this.sheet = o2, this.generation = s2, this.handler = i2, this.handlerW = a2, this.removeListener = l2, this.options = c2;
|
|
17155
17158
|
}
|
|
@@ -17179,20 +17182,20 @@ class $_ {
|
|
|
17179
17182
|
const e2 = this.spatialsIds, n2 = e2.indexOf(t2.value.uuid);
|
|
17180
17183
|
console.assert(-1 !== n2, "invalid uuid");
|
|
17181
17184
|
const r2 = this.coords, o2 = r2.slice(0, n2).concat(r2.slice(n2 + 1)), s2 = e2.slice(0, n2).concat(e2.slice(n2 + 1));
|
|
17182
|
-
return new
|
|
17185
|
+
return new j_(this.uuid, s2, o2, this.isRanges, this.sheet, this.generation, this.handler, this.handlerW, this.removeListener, this.options);
|
|
17183
17186
|
}
|
|
17184
17187
|
processShift(t2) {
|
|
17185
17188
|
const e2 = this.spatialsIds.indexOf(t2.value.uuid);
|
|
17186
17189
|
console.assert(-1 !== e2, "invalid uuid");
|
|
17187
17190
|
const n2 = [...this.coords];
|
|
17188
|
-
return n2[e2] = { ...n2[e2], ...c.sanitizeRange(t2) }, new
|
|
17191
|
+
return n2[e2] = { ...n2[e2], ...c.sanitizeRange(t2) }, new j_(this.uuid, this.spatialsIds, n2, this.isRanges, this.sheet, this.generation, this.handler, this.handlerW, this.removeListener, this.options);
|
|
17189
17192
|
}
|
|
17190
17193
|
processSplit(t2) {
|
|
17191
17194
|
}
|
|
17192
17195
|
processMerge(t2) {
|
|
17193
17196
|
}
|
|
17194
17197
|
}
|
|
17195
|
-
const
|
|
17198
|
+
const $_ = Object.freeze({ coords: c.EmptyCell, topLeft: a.EmptyTopLeft }), G_ = Object.freeze({ cell: c.EmptyCell, ranges: o.EmptyArray, rangeIndex: 0 }), U_ = Object.freeze({ selection: G_, topLeft: a.EmptyTopLeft, freezePanes: $_, showRowHeaders: true, showColumnHeaders: true, showRowGridlines: true, showColumnGridlines: true, rowHeaderStyle: Op.HeaderTextStyle.One, columnHeaderStyle: Op.HeaderTextStyle.A1, showFormulas: false, showZeros: true, zoomScale: 100, gridLineColor: null });
|
|
17196
17199
|
class J_ {
|
|
17197
17200
|
constructor(t2) {
|
|
17198
17201
|
if (this._emitter = null, !t2?.sheet) throw new Error("SheetView requires a sheet.");
|
|
@@ -17216,7 +17219,7 @@ class J_ {
|
|
|
17216
17219
|
return this._state.freezePanes = this._mergeFreezePanes(t2), this._emitter.notify("onFreezeSplitChange"), this;
|
|
17217
17220
|
}
|
|
17218
17221
|
_mergeFreezePanes(t2) {
|
|
17219
|
-
return t2 ? { ...this._state.freezePanes, coords: { colIndex: t2?.coords?.colIndex ?? this._state.freezePanes.coords.colIndex, rowIndex: t2?.coords?.rowIndex ?? this._state.freezePanes.coords.rowIndex }, topLeft: { left: t2?.topLeft?.left ?? this._state.topLeft.left, top: t2?.topLeft?.top ?? this._state.topLeft.top } } :
|
|
17222
|
+
return t2 ? { ...this._state.freezePanes, coords: { colIndex: t2?.coords?.colIndex ?? this._state.freezePanes.coords.colIndex, rowIndex: t2?.coords?.rowIndex ?? this._state.freezePanes.coords.rowIndex }, topLeft: { left: t2?.topLeft?.left ?? this._state.topLeft.left, top: t2?.topLeft?.top ?? this._state.topLeft.top } } : $_;
|
|
17220
17223
|
}
|
|
17221
17224
|
isShowRowHeaders() {
|
|
17222
17225
|
return this._state.showRowHeaders;
|
|
@@ -17383,7 +17386,7 @@ class J_ {
|
|
|
17383
17386
|
}
|
|
17384
17387
|
}
|
|
17385
17388
|
async function q_() {
|
|
17386
|
-
const { getCrypto: t2 } = await import("./
|
|
17389
|
+
const { getCrypto: t2 } = await import("./BS2w8nLO6jwewlIh.mjs");
|
|
17387
17390
|
return t2();
|
|
17388
17391
|
}
|
|
17389
17392
|
const K_ = async (t2, e2, ...n2) => {
|
|
@@ -18227,7 +18230,7 @@ class dS {
|
|
|
18227
18230
|
constructor(t2) {
|
|
18228
18231
|
this._lastTransactionUUID = null, this._emitter = null, this._initializing = true, this._emitterMovables = null, this._rangesListenerSorted = null, this._lastCellDecoded = { address: null, coords: null }, this._lastCellSelected = { coords: null, cell: null }, this._lastCellRead = { coords: null, cell: null }, this._lastValueRead = { range: null, isDateOrTime: null }, this._lastGetRangeRead = {}, this._lastUsedCoordsRead = { coords: null, range: null }, this._lastActiveRead = { selection: null, range: null, ranges: null }, this._lastRangeRead = { address: null, range: null, ranges: null }, this._isDataColumn = true, this._isDate1904 = false, this._colHeaders = null, this._colHeadersShiftCallback = null, this._colHeadersListener = null, this._colHeadersRemoveListener = null, this._rowHeaders = null, this._rowHeadersShiftCallback = null, this._rowHeadersListener = null, this._rowHeadersRemoveListener = null, this._closed = false;
|
|
18229
18232
|
const e2 = Object.freeze({ ...t2 });
|
|
18230
|
-
|
|
18233
|
+
dt._validate(true), this._transactions = e2.transactions ?? new O(), this._ownTransactions = !e2.transactions;
|
|
18231
18234
|
const n2 = this._beginCommit({ description: "New Sheet" }), r2 = this;
|
|
18232
18235
|
try {
|
|
18233
18236
|
this._entireCoords = Object.freeze({ colStart: 0, rowStart: 0, colEnd: (e2.maxColumns ?? oS.width) - 1, rowEnd: (e2.maxRows ?? oS.height) - 1 }), this._strings = e2.strings ?? new sf(), this._ownStrings = !e2.strings;
|
|
@@ -18359,7 +18362,7 @@ class dS {
|
|
|
18359
18362
|
e2 && !Array.isArray(e2) && (e2 = [e2]);
|
|
18360
18363
|
const r2 = t2(e2), o2 = this.getProtection(), s2 = o2?.getProperties();
|
|
18361
18364
|
if (s2) {
|
|
18362
|
-
if (0 === r2.length) throw new C(
|
|
18365
|
+
if (0 === r2.length) throw new C($h);
|
|
18363
18366
|
if (r2) {
|
|
18364
18367
|
const t3 = r2.length;
|
|
18365
18368
|
for (let e3 = 0; e3 < t3; e3++) {
|
|
@@ -18455,7 +18458,7 @@ class dS {
|
|
|
18455
18458
|
if (!n2 || !t2 || !t2.includeRangeTypes) return _a;
|
|
18456
18459
|
const r2 = t2?.bounds ?? this._getUsedCoords() ?? this._entireCoords;
|
|
18457
18460
|
let s2 = null;
|
|
18458
|
-
true === t2.includeRangeTypes ? s2 =
|
|
18461
|
+
true === t2.includeRangeTypes ? s2 = Hh : o.isObject(t2.includeRangeTypes) && (s2 = t2.includeRangeTypes);
|
|
18459
18462
|
const i2 = t2?.ignoreHidden, a2 = true === i2 || i2 === e.Orientation.Row, l2 = true === i2 || i2 === e.Orientation.Column, c2 = t2?.includeMergeOverflow ?? false, h2 = [], d2 = this, u2 = { includeHidden: !l2 }, g2 = { min: r2.colStart, max: r2.colEnd }, m2 = { includeHidden: !a2 }, f2 = { min: r2.rowStart, max: r2.rowEnd };
|
|
18460
18463
|
this._rowHeaders.getRange(f2).forEachVisibleSpan((t3, e2) => {
|
|
18461
18464
|
this._colHeaders.getRange(g2).forEachVisibleSpan((r3, o2) => {
|
|
@@ -18487,7 +18490,7 @@ class dS {
|
|
|
18487
18490
|
if (!o2 || !n2) return null;
|
|
18488
18491
|
let s2 = this._entireCoords;
|
|
18489
18492
|
r2 && (s2 = { colStart: Math.max(s2.colStart - r2, s2.colStart), rowStart: s2.rowStart, colEnd: Math.min(s2.colEnd + r2, s2.colEnd), rowEnd: s2.rowEnd });
|
|
18490
|
-
const i2 = { rowStart: n2.rowStart, colStart: s2.colStart, rowEnd: n2.rowEnd, colEnd: s2.colEnd }, a2 = { bounds: i2, includeRangeTypes:
|
|
18493
|
+
const i2 = { rowStart: n2.rowStart, colStart: s2.colStart, rowEnd: n2.rowEnd, colEnd: s2.colEnd }, a2 = { bounds: i2, includeRangeTypes: jh, orientation: e.Orientation.Row, ignoreHidden: true, byCell: false }, l2 = n2.colStart, h2 = n2.colEnd;
|
|
18491
18494
|
let d2, u2, g2 = -1;
|
|
18492
18495
|
const m2 = (t2, e2) => {
|
|
18493
18496
|
let n3 = t2.next();
|
|
@@ -18520,7 +18523,7 @@ class dS {
|
|
|
18520
18523
|
vS.colStart = o3, vS.rowStart = r3, vS.colEnd = o3, vS.rowEnd = r3;
|
|
18521
18524
|
const e3 = Vg(0, vS, n3.intersection, _2);
|
|
18522
18525
|
n3.style = e3;
|
|
18523
|
-
const a3 =
|
|
18526
|
+
const a3 = Hg(r3, o3, t.String, e3, s3, null, null, i3?.getCoords(), _2);
|
|
18524
18527
|
if (a3) {
|
|
18525
18528
|
const t2 = a3.leftIndex, e4 = a3.rightIndex;
|
|
18526
18529
|
n3.leftIndex = t2, n3.rightIndex = e4, (e4 > 0 && o3 < l2 || t2 > 0 && o3 > h2) && (n3.overflow = a3);
|
|
@@ -18547,7 +18550,7 @@ class dS {
|
|
|
18547
18550
|
}
|
|
18548
18551
|
const u2 = a2 || !t2?.ignoreEmptyIntersections;
|
|
18549
18552
|
let g2 = t2.includeRangeTypes;
|
|
18550
|
-
true === g2 && (g2 =
|
|
18553
|
+
true === g2 && (g2 = Wh);
|
|
18551
18554
|
const m2 = t2?.includeMergeOverflow ?? false, f2 = g2 ? this._rangeStateIterator({ bounds: o2, orientation: s2, reverse: i2, includeRangeTypes: g2, includeMergeOverflow: m2, ignoreHidden: t2.ignoreHidden, byCell: true }) : _a;
|
|
18552
18555
|
let p2, _2;
|
|
18553
18556
|
if (m2 && r2) {
|
|
@@ -18561,23 +18564,23 @@ class dS {
|
|
|
18561
18564
|
v2.done || (x2 = v2.value[0], I2 = v2.value[1]);
|
|
18562
18565
|
let A2 = p2?.[y2++], M2 = f2.next(), T2 = null;
|
|
18563
18566
|
const N2 = s2 !== e.Orientation.Row;
|
|
18564
|
-
let
|
|
18565
|
-
const
|
|
18567
|
+
let k2;
|
|
18568
|
+
const F2 = c.createCellComparator(s2, i2);
|
|
18566
18569
|
let O2;
|
|
18567
18570
|
if (!M2.done) {
|
|
18568
18571
|
const t3 = M2.value;
|
|
18569
18572
|
T2 = t3.intersection, O2 = t3.start;
|
|
18570
18573
|
}
|
|
18571
|
-
|
|
18574
|
+
k2 = (t3) => {
|
|
18572
18575
|
let e2 = null, n3 = null, r3 = null, o3 = false, s3 = false, i3 = null, a3 = null, l3 = false;
|
|
18573
18576
|
if (A2) if (x2) {
|
|
18574
|
-
|
|
18577
|
+
F2(A2, x2) < 0 && (l3 = true);
|
|
18575
18578
|
} else if (O2) {
|
|
18576
|
-
|
|
18579
|
+
F2(A2, O2) < 0 && (l3 = true);
|
|
18577
18580
|
} else y2 <= S2 && (l3 = true);
|
|
18578
18581
|
if (l3) e2 = { colIndex: A2.colIndex, rowIndex: A2.rowIndex }, n3 = A2.scalar, r3 = A2.intersection, A2 = p2[y2++];
|
|
18579
18582
|
else if (x2 && O2) {
|
|
18580
|
-
const t4 =
|
|
18583
|
+
const t4 = F2(x2, O2);
|
|
18581
18584
|
t4 < 0 ? (e2 = x2, n3 = I2, o3 = true) : t4 > 0 ? (e2 = O2, r3 = T2, s3 = true) : (e2 = x2, n3 = I2, r3 = T2, o3 = true, s3 = true);
|
|
18582
18585
|
} else if (x2) e2 = x2, n3 = I2, o3 = true;
|
|
18583
18586
|
else {
|
|
@@ -18614,7 +18617,7 @@ class dS {
|
|
|
18614
18617
|
}
|
|
18615
18618
|
return (o3 || l3) && (R2 = e2), { done: false, value: [e2, n3, r3, i3, a3] };
|
|
18616
18619
|
};
|
|
18617
|
-
let D2 = { next:
|
|
18620
|
+
let D2 = { next: k2, return: (t3) => null, throw: (t3) => null };
|
|
18618
18621
|
return a2 && (D2 = new xl(D2, l2)), D2;
|
|
18619
18622
|
}
|
|
18620
18623
|
_indexMerges(t2, e2 = null) {
|
|
@@ -18722,26 +18725,26 @@ class dS {
|
|
|
18722
18725
|
let x2 = false;
|
|
18723
18726
|
m2 && this._hasRangedEntries("unlockSpatial", E2) && (v2[Ph.Type.Unlock] = false, x2 = true), this._hasRangedEntries("mergeSpatial", E2) && (v2[Ph.Type.Merge] = false, x2 = true);
|
|
18724
18727
|
const I2 = this._rangeStateIterator({ bounds: E2, orientation: g2, includeRangeTypes: v2 });
|
|
18725
|
-
let R2 = I2.next(), A2 = -1, M2 = -1, T2 = -1, N2 = -1,
|
|
18728
|
+
let R2 = I2.next(), A2 = -1, M2 = -1, T2 = -1, N2 = -1, k2 = null;
|
|
18726
18729
|
if (!R2.done) {
|
|
18727
18730
|
const t3 = R2.value, e2 = t3.start, n3 = t3.end;
|
|
18728
|
-
A2 = u2 ? e2.colIndex : e2.rowIndex, M2 = u2 ? n3.colIndex : n3.rowIndex, T2 = u2 ? e2.rowIndex : e2.colIndex, N2 = u2 ? n3.rowIndex : n3.colIndex,
|
|
18731
|
+
A2 = u2 ? e2.colIndex : e2.rowIndex, M2 = u2 ? n3.colIndex : n3.rowIndex, T2 = u2 ? e2.rowIndex : e2.colIndex, N2 = u2 ? n3.rowIndex : n3.colIndex, k2 = t3.intersection;
|
|
18729
18732
|
}
|
|
18730
|
-
let
|
|
18733
|
+
let F2 = (t3, e2) => {
|
|
18731
18734
|
do {
|
|
18732
|
-
if (!
|
|
18733
|
-
if (t3 >= A2 && e2 >= T2 && t3 <= M2 && e2 <= N2) return
|
|
18734
|
-
if (R2 = I2.next(), R2.done)
|
|
18735
|
+
if (!k2 || t3 <= T2 && e2 < T2) return null;
|
|
18736
|
+
if (t3 >= A2 && e2 >= T2 && t3 <= M2 && e2 <= N2) return k2;
|
|
18737
|
+
if (R2 = I2.next(), R2.done) k2 = null, F2 = null, x2 = false;
|
|
18735
18738
|
else {
|
|
18736
18739
|
const t4 = R2.value;
|
|
18737
|
-
A2 = u2 ? t4.start.colIndex : t4.start.rowIndex, M2 = u2 ? t4.end.colIndex : t4.end.rowIndex, T2 = u2 ? t4.start.rowIndex : t4.start.colIndex, N2 = u2 ? t4.end.rowIndex : t4.end.colIndex,
|
|
18740
|
+
A2 = u2 ? t4.start.colIndex : t4.start.rowIndex, M2 = u2 ? t4.end.colIndex : t4.end.rowIndex, T2 = u2 ? t4.start.rowIndex : t4.start.colIndex, N2 = u2 ? t4.end.rowIndex : t4.end.colIndex, k2 = t4.intersection;
|
|
18738
18741
|
}
|
|
18739
|
-
} while (
|
|
18740
|
-
return
|
|
18742
|
+
} while (k2);
|
|
18743
|
+
return k2;
|
|
18741
18744
|
};
|
|
18742
|
-
const O2 = c2.getState(this), D2 = O2.cellValuesGrid.clone(), B2 = O2.calcGraph.clone(), L2 = O2.formulaSpatial.clone(), z2 = O2.spillSpatial.clone(), P2 = O2.pendingSpatial.clone(),
|
|
18745
|
+
const O2 = c2.getState(this), D2 = O2.cellValuesGrid.clone(), B2 = O2.calcGraph.clone(), L2 = O2.formulaSpatial.clone(), z2 = O2.spillSpatial.clone(), P2 = O2.pendingSpatial.clone(), H2 = O2.calcErrorsSpatial.clone(), W2 = O2.contentfulSpatial.clone(), V2 = Ol(u2), j2 = Ol(u2, (t3, e2) => {
|
|
18743
18746
|
if (t3 === e2) return e2;
|
|
18744
|
-
}),
|
|
18747
|
+
}), $2 = Ol(u2, (t3, e2) => {
|
|
18745
18748
|
if (t3 === e2) return e2;
|
|
18746
18749
|
}), G2 = Ol(u2, (t3, e2) => {
|
|
18747
18750
|
if (t3 === e2) return e2;
|
|
@@ -18752,7 +18755,7 @@ class dS {
|
|
|
18752
18755
|
q2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t3 }, J2 = new Sm(p2, null, this._cellOptions);
|
|
18753
18756
|
}
|
|
18754
18757
|
const K2 = [], X2 = this._cellOptions, Y2 = /* @__PURE__ */ new Map(), Q2 = Em, Z2 = (t3, e2, n3) => {
|
|
18755
|
-
const r3 =
|
|
18758
|
+
const r3 = F2?.(e2, n3);
|
|
18756
18759
|
if (r3?.merge) {
|
|
18757
18760
|
const t4 = r3.merge.getCoords(), o4 = u2 ? t4.colStart : t4.rowStart, s3 = u2 ? t4.rowStart : t4.colStart;
|
|
18758
18761
|
if (o4 !== e2 || s3 !== n3) return;
|
|
@@ -18774,14 +18777,14 @@ class dS {
|
|
|
18774
18777
|
void 0 !== s3 && (o3 = { ...s3 });
|
|
18775
18778
|
}
|
|
18776
18779
|
if (m2) {
|
|
18777
|
-
if (m2 && (null === t3 || void 0 !== o3.value)) throw new C(
|
|
18778
|
-
if (!f2 && void 0 !== o3.style) throw new C(
|
|
18780
|
+
if (m2 && (null === t3 || void 0 !== o3.value)) throw new C($h);
|
|
18781
|
+
if (!f2 && void 0 !== o3.style) throw new C($h);
|
|
18779
18782
|
}
|
|
18780
18783
|
if (!i2) {
|
|
18781
18784
|
const t4 = o3.style;
|
|
18782
|
-
void 0 === t4 || null === t4 && !s2 ||
|
|
18785
|
+
void 0 === t4 || null === t4 && !s2 || j2.append(e2, n3, t4);
|
|
18783
18786
|
const r4 = o3.hyperlink;
|
|
18784
|
-
void 0 === r4 || null === r4 && !s2 ||
|
|
18787
|
+
void 0 === r4 || null === r4 && !s2 || $2.append(e2, n3, r4);
|
|
18785
18788
|
}
|
|
18786
18789
|
const l3 = o3.formula;
|
|
18787
18790
|
return void 0 === l3 || null === l3 && !s2 || G2.append(e2, n3, l3), a3;
|
|
@@ -18822,7 +18825,7 @@ class dS {
|
|
|
18822
18825
|
const r3 = V2.done(), o3 = r3.length;
|
|
18823
18826
|
for (let t4 = 0; t4 < o3; t4++) {
|
|
18824
18827
|
const e2 = r3[t4];
|
|
18825
|
-
D2.delete(r3[t4]),
|
|
18828
|
+
D2.delete(r3[t4]), W2.insertNonOverlapping({ ...e2, value: null });
|
|
18826
18829
|
const n3 = B2.delete(e2);
|
|
18827
18830
|
this._updateFormulaSpatial(L2, null, n3);
|
|
18828
18831
|
}
|
|
@@ -18834,11 +18837,11 @@ class dS {
|
|
|
18834
18837
|
g3 = this._updateFormulaSpatial(L2, t4.inserts, t4.removes, O2.directStyleSpatial);
|
|
18835
18838
|
}
|
|
18836
18839
|
const f3 = Cm(K2, u2), C2 = f3.length;
|
|
18837
|
-
for (let t4 = 0; t4 < C2; t4++)
|
|
18838
|
-
const b3 =
|
|
18840
|
+
for (let t4 = 0; t4 < C2; t4++) W2.insertNonOverlapping(f3[t4]);
|
|
18841
|
+
const b3 = j2.done();
|
|
18839
18842
|
b3.length > 0 && this._updateStyles(b3), U2.length > 0 && this._merge(U2);
|
|
18840
|
-
const v3 =
|
|
18841
|
-
if (v3.length > 0 && this._setHyperlinks(v3), this._updateState({ cellValuesGrid: D2, contentfulSpatial:
|
|
18843
|
+
const v3 = $2.done();
|
|
18844
|
+
if (v3.length > 0 && this._setHyperlinks(v3), this._updateState({ cellValuesGrid: D2, contentfulSpatial: W2, calcGraph: B2, formulaSpatial: L2, spillSpatial: z2, pendingSpatial: P2, calcErrorsSpatial: H2 }), g3 && g3.length > 0 && this._updateStyles(g3, void 0, {}, true), n2?.autoFit) {
|
|
18842
18845
|
const t4 = "boolean" == typeof n2.autoFit ? CS : n2.autoFit;
|
|
18843
18846
|
this._autoFit([E2], t4);
|
|
18844
18847
|
}
|
|
@@ -18910,8 +18913,8 @@ class dS {
|
|
|
18910
18913
|
}
|
|
18911
18914
|
if (!y2) return;
|
|
18912
18915
|
if (0 === w2.length) return;
|
|
18913
|
-
const N2 = /* @__PURE__ */ new Map(),
|
|
18914
|
-
for (let t3 = 0; t3 < O2; t3++) N2.set(
|
|
18916
|
+
const N2 = /* @__PURE__ */ new Map(), k2 = /* @__PURE__ */ new Map(), F2 = n2?.collators ?? da.DefaultCollators, O2 = F2.length;
|
|
18917
|
+
for (let t3 = 0; t3 < O2; t3++) N2.set(F2[t3].type, F2[t3].compare), k2.set(F2[t3].type, t3);
|
|
18915
18918
|
let D2 = null, B2 = null, L2 = null;
|
|
18916
18919
|
w2.sort((t3, e2) => {
|
|
18917
18920
|
const n3 = p2.length;
|
|
@@ -18924,14 +18927,14 @@ class dS {
|
|
|
18924
18927
|
const h3 = o3.getType(), d2 = s3.getType();
|
|
18925
18928
|
let u3 = 0;
|
|
18926
18929
|
if (h3 !== d2) {
|
|
18927
|
-
let t4 =
|
|
18928
|
-
u3 =
|
|
18930
|
+
let t4 = k2.get(h3);
|
|
18931
|
+
u3 = k2.get(d2) - t4;
|
|
18929
18932
|
} else {
|
|
18930
18933
|
let t4 = B2;
|
|
18931
18934
|
if (D2 !== h3) {
|
|
18932
18935
|
t4 = N2.get(h3), B2 = t4, D2 = h3;
|
|
18933
|
-
let e3 =
|
|
18934
|
-
const r4 =
|
|
18936
|
+
let e3 = k2.get(d2);
|
|
18937
|
+
const r4 = F2[e3].defaultOptions;
|
|
18935
18938
|
L2 = { ...r4, ...n4.collatorOptions };
|
|
18936
18939
|
}
|
|
18937
18940
|
u3 = t4(i3, a3, L2);
|
|
@@ -18943,21 +18946,21 @@ class dS {
|
|
|
18943
18946
|
const z2 = this._beginCommit({ description: r2 });
|
|
18944
18947
|
let P2 = [u2];
|
|
18945
18948
|
I2 || (P2 = this._getVisible(P2, { orientations: c2 ? e.Orientations.Row : e.Orientations.Column })), this._clear(P2, void 0, void 0, true);
|
|
18946
|
-
const
|
|
18947
|
-
let
|
|
18949
|
+
const H2 = this._createIncrementalUpdater({ orientation: l2 });
|
|
18950
|
+
let W2 = c2 ? u2.rowStart : u2.colStart;
|
|
18948
18951
|
const V2 = w2.length;
|
|
18949
18952
|
for (let t3 = 0; t3 < V2; t3++) {
|
|
18950
18953
|
const e2 = w2[t3];
|
|
18951
|
-
if (x2 && (
|
|
18954
|
+
if (x2 && (W2 = x2(W2)), e2) {
|
|
18952
18955
|
const t4 = e2.values, n3 = t4.length;
|
|
18953
18956
|
for (let e3 = 0; e3 < n3; e3++) {
|
|
18954
|
-
const n4 = t4[e3], r3 = c2 ?
|
|
18955
|
-
|
|
18957
|
+
const n4 = t4[e3], r3 = c2 ? W2 : n4.getCoords().rowIndex, o3 = c2 ? n4.getCoords().colIndex : W2;
|
|
18958
|
+
H2.pushAt(r3, o3, n4);
|
|
18956
18959
|
}
|
|
18957
18960
|
}
|
|
18958
|
-
|
|
18961
|
+
W2 += A2;
|
|
18959
18962
|
}
|
|
18960
|
-
return
|
|
18963
|
+
return H2.apply(), z2.commit(), u2;
|
|
18961
18964
|
}
|
|
18962
18965
|
_autoFill(t2, n2, r2) {
|
|
18963
18966
|
const { direction: o2, amount: s2 } = ((t3, n3) => {
|
|
@@ -18967,7 +18970,7 @@ class dS {
|
|
|
18967
18970
|
return { direction: r3, amount: o3 };
|
|
18968
18971
|
})(t2, n2);
|
|
18969
18972
|
if (s2 <= 0) return false;
|
|
18970
|
-
const i2 = o2 === e.Direction.Up || o2 === e.Direction.Down, a2 = this.getSelection().getCoords(), l2 = [], h2 = r2?.previewOnly, d2 = r2?.contentsOnly, u2 = r2?.filler ??
|
|
18973
|
+
const i2 = o2 === e.Direction.Up || o2 === e.Direction.Down, a2 = this.getSelection().getCoords(), l2 = [], h2 = r2?.previewOnly, d2 = r2?.contentsOnly, u2 = r2?.filler ?? js.Types.Series, g2 = { ...r2?.fillerOptions };
|
|
18971
18974
|
let m2 = null, f2 = null;
|
|
18972
18975
|
try {
|
|
18973
18976
|
const p2 = { ...t2 };
|
|
@@ -18986,7 +18989,7 @@ class dS {
|
|
|
18986
18989
|
if (s2 % E2 !== 0) throw new C(((t3) => `When filling with merged cells the amount to fill must be a multiple of the input range [${t3}].`)(E2));
|
|
18987
18990
|
const b2 = i2 ? "rowIndex" : "colIndex", v2 = i2 ? "colIndex" : "rowIndex", I2 = i2 ? t2.rowEnd + 1 - t2.rowStart : t2.colEnd + 1 - t2.colStart, R2 = i2 ? t2.rowStart : t2.colStart, A2 = i2 ? t2.rowEnd : t2.colEnd, M2 = i2 ? n2.rowStart : n2.colStart, T2 = i2 ? n2.rowEnd : n2.colEnd, N2 = i2 ? o2 === e.Direction.Down : o2 === e.Direction.Right;
|
|
18988
18991
|
N2 || (g2.reverse = true);
|
|
18989
|
-
const
|
|
18992
|
+
const k2 = N2 ? A2 + 1 : M2, F2 = (N2 ? T2 : R2 - 1) - k2 + 1, O2 = i2 ? t2.colEnd : t2.rowEnd;
|
|
18990
18993
|
l2.push(c.unionRanges(p2, t2));
|
|
18991
18994
|
const D2 = [];
|
|
18992
18995
|
let B2 = null;
|
|
@@ -19013,19 +19016,19 @@ class dS {
|
|
|
19013
19016
|
const e2 = D2[t3].values;
|
|
19014
19017
|
for (let t4 = e2.length; t4 < I2; t4++) e2.push(null);
|
|
19015
19018
|
}
|
|
19016
|
-
const
|
|
19019
|
+
const H2 = (t3, e2) => {
|
|
19017
19020
|
if (t3.canFill(e2[0], [])) {
|
|
19018
19021
|
const n3 = t3.createFillAt(e2, g2);
|
|
19019
19022
|
if (n3) return n3;
|
|
19020
19023
|
}
|
|
19021
|
-
return
|
|
19022
|
-
},
|
|
19024
|
+
return js.Types.Copy.createFillAt(e2);
|
|
19025
|
+
}, W2 = this;
|
|
19023
19026
|
if (h2) {
|
|
19024
19027
|
const t3 = D2[D2.length - 1];
|
|
19025
19028
|
if (D2[D2.length - 1]?.oppositeIndex !== O2) return null;
|
|
19026
|
-
const n3 =
|
|
19029
|
+
const n3 = H2(u2, t3.values);
|
|
19027
19030
|
return h2((t4) => {
|
|
19028
|
-
const r3 =
|
|
19031
|
+
const r3 = W2._rangeToCoords(t4);
|
|
19029
19032
|
let s3;
|
|
19030
19033
|
o2 === e.Direction.Down || o2 === e.Direction.Right ? s3 = { rowIndex: r3.rowEnd, colIndex: r3.colEnd } : o2 === e.Direction.Left ? s3 = { rowIndex: r3.rowEnd, colIndex: r3.colStart } : o2 === e.Direction.Up && (s3 = { rowIndex: r3.rowStart, colIndex: r3.colEnd });
|
|
19031
19034
|
const a3 = i2 ? s3.rowIndex : s3.colIndex, l3 = { value: n3(N2 ? a3 - R2 : R2 - a3 + I2 - 1) };
|
|
@@ -19033,35 +19036,35 @@ class dS {
|
|
|
19033
19036
|
return c2 = d2 ? this.createTemporaryCell(l3, s3) : this.createTemporaryCell(null, s3).createTemporaryCell(l3), c2;
|
|
19034
19037
|
}), false;
|
|
19035
19038
|
}
|
|
19036
|
-
const V2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }),
|
|
19039
|
+
const V2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }), j2 = D2.length;
|
|
19037
19040
|
D2.sort((t3, e2) => t3.oppositeIndex - e2.oppositeIndex);
|
|
19038
|
-
for (let t3 = 0; t3 <
|
|
19039
|
-
const e2 = t3, n3 =
|
|
19040
|
-
for (let t4 = 0; t4 <
|
|
19041
|
+
for (let t3 = 0; t3 < j2; t3++) {
|
|
19042
|
+
const e2 = t3, n3 = H2(u2, D2[e2].values), r3 = D2[e2].oppositeIndex, o3 = N2 ? I2 : I2 + F2 - 1, s3 = this.isDate1904();
|
|
19043
|
+
for (let t4 = 0; t4 < F2; t4++) {
|
|
19041
19044
|
let e3 = n3(o3 + (N2 ? t4 : -t4));
|
|
19042
19045
|
no(e3) && (e3 = co(e3, s3));
|
|
19043
|
-
const a3 =
|
|
19046
|
+
const a3 = k2 + t4;
|
|
19044
19047
|
i2 ? V2.pushAt(a3, r3, e3) : V2.pushAt(r3, a3, e3);
|
|
19045
19048
|
}
|
|
19046
19049
|
}
|
|
19047
19050
|
this._clear([p2], r2?.contentsOnly ? ld.Content.Formats : void 0), V2.apply();
|
|
19048
|
-
const
|
|
19049
|
-
if (
|
|
19050
|
-
if (
|
|
19051
|
+
const $2 = this._getMerges([_2]), G2 = c.unionRangesArrays($2);
|
|
19052
|
+
if ($2.length > 0 && !c.isRangeWithinRange(G2, _2)) throw new C(Qh);
|
|
19053
|
+
if ($2.length > 0) {
|
|
19051
19054
|
const n3 = [], r3 = s2 / E2;
|
|
19052
19055
|
if (i2) {
|
|
19053
|
-
const s3 = t2.rowEnd - t2.rowStart + 1, i3 = o2 === e.Direction.Up ? p2.rowStart : t2.rowEnd + 1, a3 =
|
|
19056
|
+
const s3 = t2.rowEnd - t2.rowStart + 1, i3 = o2 === e.Direction.Up ? p2.rowStart : t2.rowEnd + 1, a3 = $2.length;
|
|
19054
19057
|
for (let e2 = 0; e2 < a3; e2++) {
|
|
19055
|
-
const o3 =
|
|
19058
|
+
const o3 = $2[e2], a4 = o3.rowStart - t2.rowStart, l3 = o3.rowEnd - o3.rowStart + 1;
|
|
19056
19059
|
for (let t3 = 0; t3 < r3; t3++) {
|
|
19057
19060
|
const e3 = t3 * s3;
|
|
19058
19061
|
n3.push({ colStart: o3.colStart, rowStart: i3 + e3 + a4, colEnd: o3.colEnd, rowEnd: i3 + e3 + a4 + l3 - 1 });
|
|
19059
19062
|
}
|
|
19060
19063
|
}
|
|
19061
19064
|
} else {
|
|
19062
|
-
const s3 = t2.colEnd - t2.colStart + 1, i3 = o2 === e.Direction.Left ? p2.colStart : t2.colEnd + 1, a3 =
|
|
19065
|
+
const s3 = t2.colEnd - t2.colStart + 1, i3 = o2 === e.Direction.Left ? p2.colStart : t2.colEnd + 1, a3 = $2.length;
|
|
19063
19066
|
for (let e2 = 0; e2 < a3; e2++) {
|
|
19064
|
-
const o3 =
|
|
19067
|
+
const o3 = $2[e2], a4 = o3.colStart - t2.colStart, l3 = o3.colEnd - o3.colStart + 1;
|
|
19065
19068
|
for (let t3 = 0; t3 < r3; t3++) {
|
|
19066
19069
|
const e3 = t3 * s3;
|
|
19067
19070
|
n3.push({ colStart: i3 + e3 + a4, rowStart: o3.rowStart, colEnd: i3 + e3 + a4 + l3 - 1, rowEnd: o3.rowEnd });
|
|
@@ -19162,7 +19165,7 @@ class dS {
|
|
|
19162
19165
|
if (e2) {
|
|
19163
19166
|
const n3 = [], s2 = e2.length;
|
|
19164
19167
|
for (let t3 = 0; t3 < s2; t3++) {
|
|
19165
|
-
const s3 = e2[t3], i2 = c.sanitizeRange(s3), a2 = new
|
|
19168
|
+
const s3 = e2[t3], i2 = c.sanitizeRange(s3), a2 = new W_(i2, s3.value.tokens, s3.value.references);
|
|
19166
19169
|
if (n3.push({ colStart: i2.colStart, rowStart: i2.rowStart, colEnd: i2.colEnd, rowEnd: i2.rowEnd, value: a2 }), !r2) continue;
|
|
19167
19170
|
const l2 = s3.value.precedents;
|
|
19168
19171
|
let h2, d2, u2 = false;
|
|
@@ -19234,7 +19237,7 @@ class dS {
|
|
|
19234
19237
|
const n3 = t3[e2], r3 = n3[0], i3 = n3[1], l4 = i3.length;
|
|
19235
19238
|
for (let t4 = 0; t4 < l4; t4++) {
|
|
19236
19239
|
const e3 = i3[t4], n4 = e3[0], l5 = n4 + e3[1].length - 1, c2 = { colStart: o3 ? r3 : n4, rowStart: o3 ? n4 : r3, colEnd: o3 ? r3 : l5, rowEnd: o3 ? l5 : r3 };
|
|
19237
|
-
a3.insertNonOverlapping({ colStart: c2.colStart, rowStart: c2.rowStart, colEnd: c2.colEnd, rowEnd: c2.rowEnd, value: new
|
|
19240
|
+
a3.insertNonOverlapping({ colStart: c2.colStart, rowStart: c2.rowStart, colEnd: c2.colEnd, rowEnd: c2.rowEnd, value: new Fh(c2, s3) });
|
|
19238
19241
|
}
|
|
19239
19242
|
}
|
|
19240
19243
|
}
|
|
@@ -19243,7 +19246,7 @@ class dS {
|
|
|
19243
19246
|
const t3 = d2.length;
|
|
19244
19247
|
for (let e2 = 0; e2 < t3; e2++) {
|
|
19245
19248
|
const t4 = d2[e2], n3 = t4.value;
|
|
19246
|
-
t4.value = new
|
|
19249
|
+
t4.value = new kh(c.sanitizeRange(t4), 0, n3);
|
|
19247
19250
|
}
|
|
19248
19251
|
n2.spillSpatial.load(d2);
|
|
19249
19252
|
}
|
|
@@ -19714,11 +19717,11 @@ class dS {
|
|
|
19714
19717
|
r4(e2, n4.rowIndex - o3.rowIndex, n4.colIndex - o3.colIndex), u3 = l3.next();
|
|
19715
19718
|
}
|
|
19716
19719
|
}
|
|
19717
|
-
const
|
|
19718
|
-
g2 && (
|
|
19719
|
-
const D2 = l2, B2 = D2._getState(), L2 = Object.keys(
|
|
19720
|
+
const k2 = n2._getState(), F2 = {}, O2 = { transpose: s3 ?? false };
|
|
19721
|
+
g2 && (F2.directStyleSpatial = k2.directStyleSpatial, F2.continuousFillSpatial = k2.continuousFillSpatial, F2.mergeSpatial = k2.mergeSpatial), u2 && (t2._clear([d2], void 0, void 0, false, true), E2.push(d2), F2.rangesListenerSpatial2 = k2.rangesListenerSpatial2);
|
|
19722
|
+
const D2 = l2, B2 = D2._getState(), L2 = Object.keys(F2), z2 = L2.length;
|
|
19720
19723
|
for (let t3 = 0; t3 < z2; t3++) {
|
|
19721
|
-
const e2 = L2[t3], n3 =
|
|
19724
|
+
const e2 = L2[t3], n3 = F2[e2].createCopiedEntries(d2, x2, O2), r4 = B2[e2].clone(), o2 = n3.removes, s4 = o2.length;
|
|
19722
19725
|
for (let t4 = 0; t4 < s4; t4++) r4.remove(o2[t4]);
|
|
19723
19726
|
r4.load(n3.inserts), B2[e2] = r4;
|
|
19724
19727
|
}
|
|
@@ -19855,8 +19858,8 @@ class dS {
|
|
|
19855
19858
|
I2 === m2.rangesListenerMap && (I2 = new Map(I2)), this._processListenerShift(I2, R2, m2.rangesListenerMap, t4);
|
|
19856
19859
|
} }), v2 = v2.shift({ range: e2, direction: f2, cloneIfUpdate: v2 === m2.rangesListenerSpatial2, coordValidator: r2 });
|
|
19857
19860
|
}
|
|
19858
|
-
let T2 = m2.formulaSpatial, N2 = m2.spillSpatial,
|
|
19859
|
-
b2 !== m2.calcGraph && (T2 = T2.clone(), N2 = N2.clone(),
|
|
19861
|
+
let T2 = m2.formulaSpatial, N2 = m2.spillSpatial, k2 = m2.pendingSpatial;
|
|
19862
|
+
b2 !== m2.calcGraph && (T2 = T2.clone(), N2 = N2.clone(), k2 = k2.clone()), this._updateState({ contentfulSpatial: s3, unlockSpatial: i3, mergeSpatial: d2, directStyleSpatial: p2, continuousFillSpatial: _2, conditionalSpatial: S2, hyperlinkSpatial: w2, commentsSpatial: y2, movableSpatial: E2, tableSpatial: C2, calcGraph: b2, formulaSpatial: T2, spillSpatial: N2, pendingSpatial: k2, rangesListenerSpatial2: v2, rangeListenerSpatial: x2, rangesListenerMap: I2 }), this._commitAndAutoSelect(g2, u2, n2?.autoSelect, { viewAfter: { ranges: A2, listeners: R2 } }, a2 ? e.Orientation.Column : e.Orientation.Row);
|
|
19860
19863
|
} catch (t3) {
|
|
19861
19864
|
if (g2.rollback(), t3 instanceof d) throw new C(t3.message ?? Yh);
|
|
19862
19865
|
throw t3;
|
|
@@ -19894,7 +19897,7 @@ class dS {
|
|
|
19894
19897
|
const o2 = "Autofit";
|
|
19895
19898
|
let s2;
|
|
19896
19899
|
const i2 = Zg(n2, this._entireCoords, true), a2 = Qg(n2, this._entireCoords, true);
|
|
19897
|
-
s2 = !i2 && a2 ? `${o2} ${O_}` : !a2 && i2 ? `${o2} ${
|
|
19900
|
+
s2 = !i2 && a2 ? `${o2} ${O_}` : !a2 && i2 ? `${o2} ${F_}` : a2 && i2 ? `${o2} All` : `${o2}`;
|
|
19898
19901
|
let l2 = r2.orientations !== e.Orientations.Row;
|
|
19899
19902
|
this._colHeaders.isProtected() && (l2 = false);
|
|
19900
19903
|
let h2 = r2.orientations !== e.Orientations.Column;
|
|
@@ -19910,19 +19913,19 @@ class dS {
|
|
|
19910
19913
|
let o3 = Number.MAX_SAFE_INTEGER, s3 = Number.MIN_SAFE_INTEGER, i3 = false, a3 = "", _2 = -1, S2 = false, w2 = false, y2 = false, E2 = Number.MAX_SAFE_INTEGER, C2 = Number.MIN_SAFE_INTEGER;
|
|
19911
19914
|
const b2 = this._styles.getNormal(), v2 = this._cellOptions, x2 = r2.orientations === e.Orientations.Row, I2 = /* @__PURE__ */ new Map(), R2 = gl(n2, 1);
|
|
19912
19915
|
R2.sort(c.createRangeComparator(e.Orientation.Column));
|
|
19913
|
-
const A2 = R2.length, M2 = { skipCustomSize: r2.skipCustomSize }, T2 = rs.getDeviceScale(), N2 = this._defaultRowHeight() * T2,
|
|
19916
|
+
const A2 = R2.length, M2 = { skipCustomSize: r2.skipCustomSize }, T2 = rs.getDeviceScale(), N2 = this._defaultRowHeight() * T2, k2 = this._defaultColWidth(), F2 = (t2, e2 = 1) => {
|
|
19914
19917
|
if (0 !== t2 && !(e2 > 1)) return t2 = Math.max(t2, N2), (e3) => u2 ? t2 : Math.max(e3, t2 ?? N2);
|
|
19915
19918
|
}, O2 = (t2, e2 = 1) => {
|
|
19916
|
-
if (0 !== t2 && !(e2 > 1)) return (e3) => d2 ? t2 : Math.max(e3, t2 ??
|
|
19919
|
+
if (0 !== t2 && !(e2 > 1)) return (e3) => d2 ? t2 : Math.max(e3, t2 ?? k2);
|
|
19917
19920
|
};
|
|
19918
19921
|
for (let n3 = 0; n3 < A2; n3++) {
|
|
19919
19922
|
const r3 = [];
|
|
19920
|
-
let f3 = -1, p3 = false, A3 = b2, T3 = 1, N3 = 1,
|
|
19923
|
+
let f3 = -1, p3 = false, A3 = b2, T3 = 1, N3 = 1, k3 = 1;
|
|
19921
19924
|
const D2 = R2[n3];
|
|
19922
19925
|
let B2 = D2.colStart, L2 = D2.rowStart, z2 = D2.colEnd, P2 = D2.rowEnd;
|
|
19923
|
-
const
|
|
19924
|
-
(u2 || d2) &&
|
|
19925
|
-
const
|
|
19926
|
+
const H2 = this._getUsedCoords();
|
|
19927
|
+
(u2 || d2) && H2 && (B2 = u2 ? H2.colStart : D2.colStart, L2 = d2 ? H2.rowStart : D2.rowStart, z2 = u2 ? H2.colEnd : D2.colEnd, P2 = d2 ? H2.rowEnd : D2.rowEnd);
|
|
19928
|
+
const W2 = { includeRangeTypes: { [Ph.Type.Style]: false, [Ph.Type.Merge]: false, [Ph.Type.Continuous]: false, [Ph.Type.Contentful]: false }, ignoreHidden: false, bounds: { colStart: B2, rowStart: L2, colEnd: z2, rowEnd: P2 }, orientation: e.Orientation.Column }, V2 = h2 ? [] : void 0, j2 = l2 ? [] : void 0, $2 = (t2, e2, n4) => {
|
|
19926
19929
|
if (t2 > e2) return null;
|
|
19927
19930
|
const r4 = [];
|
|
19928
19931
|
let o4 = t2;
|
|
@@ -19941,23 +19944,23 @@ class dS {
|
|
|
19941
19944
|
r4.push(t3);
|
|
19942
19945
|
}
|
|
19943
19946
|
return r4;
|
|
19944
|
-
}, G2 = this._rangeStateIterator(
|
|
19947
|
+
}, G2 = this._rangeStateIterator(W2);
|
|
19945
19948
|
let U2 = G2.next();
|
|
19946
19949
|
for (; !U2.done; ) {
|
|
19947
19950
|
const t2 = U2.value, e2 = t2.intersection, n4 = t2.start, r4 = t2.end;
|
|
19948
19951
|
mS.colStart = n4.colIndex, mS.rowStart = n4.rowIndex, mS.colEnd = r4.colIndex, mS.rowEnd = r4.rowIndex;
|
|
19949
19952
|
const o4 = c.intersectRanges(mS, D2, gS), s4 = Vg(0, o4, e2, v2).getBestFit();
|
|
19950
19953
|
if (h2) {
|
|
19951
|
-
const t3 = Math.max(n4.rowIndex, L2), e3 = Math.min(r4.rowIndex, P2), o5 = s4.height, i4 = { address: { min: t3, max: e3 }, update: { size:
|
|
19954
|
+
const t3 = Math.max(n4.rowIndex, L2), e3 = Math.min(r4.rowIndex, P2), o5 = s4.height, i4 = { address: { min: t3, max: e3 }, update: { size: F2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
|
|
19952
19955
|
V2.push(i4);
|
|
19953
19956
|
}
|
|
19954
19957
|
if (l2) {
|
|
19955
19958
|
const t3 = Math.max(n4.colIndex, B2), e3 = Math.min(r4.colIndex, z2), o5 = s4.width, i4 = { address: { min: t3, max: e3 }, update: { size: O2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
|
|
19956
|
-
|
|
19959
|
+
j2.push(i4);
|
|
19957
19960
|
}
|
|
19958
19961
|
U2 = G2.next();
|
|
19959
19962
|
}
|
|
19960
|
-
const J2 = this._cellStateIterator({ ...
|
|
19963
|
+
const J2 = this._cellStateIterator({ ...W2, includeRangeTypes: { [Ph.Type.Merge]: false, [Ph.Type.Table]: false, [Ph.Type.Style]: false, [Ph.Type.Continuous]: false }, ignoreEmptyIntersections: true });
|
|
19961
19964
|
let q2, K2, X2, Y2 = J2.next(), Q2 = 1, Z2 = 1;
|
|
19962
19965
|
for (; !Y2.done; ) {
|
|
19963
19966
|
const e2 = Y2.value, n4 = e2[0], l3 = e2[2];
|
|
@@ -19974,12 +19977,12 @@ class dS {
|
|
|
19974
19977
|
} else u3 = 1, g3 = 1;
|
|
19975
19978
|
Q2 = u3, Z2 = g3;
|
|
19976
19979
|
}
|
|
19977
|
-
const x3 = n4.colIndex, I3 = n4.rowIndex, R3 = e2[1], M3 = Cc(R3),
|
|
19980
|
+
const x3 = n4.colIndex, I3 = n4.rowIndex, R3 = e2[1], M3 = Cc(R3), F3 = c.isCellWithinRange(n4, D2), O3 = l3?.continuous ?? null;
|
|
19978
19981
|
if (O3) {
|
|
19979
|
-
|
|
19982
|
+
k3 = O3.getCoords().colEnd - x3 + 1;
|
|
19980
19983
|
}
|
|
19981
19984
|
let B3 = false, L3 = false;
|
|
19982
|
-
if (q2 === d3 && u3 === T3 && g3 === N3 && M3 !== t.String && M3 !== t.Error &&
|
|
19985
|
+
if (q2 === d3 && u3 === T3 && g3 === N3 && M3 !== t.String && M3 !== t.Error && F3 === p3 || (B3 = true, M3 === t.RichData && (L3 = true), L3 && (B3 = false)), q2 = d3, X2 = m3, (f3 !== x3 || B3) && (-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: u3, spanHeight: g3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), measureWidth: -1, measureHeight: -1, colSpan: k3, isFit: p3 }), f3 = x3, A3 = h3, p3 = F3, T3 = u3, N3 = g3, o3 = Number.MAX_SAFE_INTEGER, s3 = Number.MIN_SAFE_INTEGER, i3 = false, a3 = "", _2 = -1, w2 = false, S2 = false, y2 = false, E2 = I3), C2 = I3, !L3) if (null === R3) y2 = true;
|
|
19983
19986
|
else switch (M3) {
|
|
19984
19987
|
case t.Number:
|
|
19985
19988
|
0 === R3 && (i3 = true), o3 = Math.min(o3, R3), s3 = Math.max(s3, R3);
|
|
@@ -19995,36 +19998,36 @@ class dS {
|
|
|
19995
19998
|
}
|
|
19996
19999
|
Y2 = J2.next();
|
|
19997
20000
|
}
|
|
19998
|
-
-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: T3, spanHeight: N3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), colSpan:
|
|
20001
|
+
-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: T3, spanHeight: N3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), colSpan: k3, measureWidth: -1, measureHeight: -1, isFit: p3 });
|
|
19999
20002
|
let tt2 = -1, et2 = -1;
|
|
20000
20003
|
const nt2 = r3.length;
|
|
20001
20004
|
for (let e2 = 0; e2 < nt2; e2++) {
|
|
20002
20005
|
const n4 = r3[e2], o4 = x2 || !n4.isFit, s4 = n4.maxVal, i4 = n4.style, a4 = n4.colSpan;
|
|
20003
20006
|
let l3 = n4.colWidth;
|
|
20004
20007
|
if (a4 > 1 && (l3 = this._colHeaders.getSpanSize(f3, f3 + a4)), tt2 = 0, et2 = 0, s4 !== Number.MIN_SAFE_INTEGER) {
|
|
20005
|
-
const e3 =
|
|
20008
|
+
const e3 = jg(t.Number, i4, s4, v2, l3, g2, o4);
|
|
20006
20009
|
tt2 = e3.width, et2 = e3.height;
|
|
20007
20010
|
const r4 = n4.minVal;
|
|
20008
20011
|
if (r4 * s4 < 0) {
|
|
20009
|
-
const e4 =
|
|
20012
|
+
const e4 = jg(t.Number, i4, r4, v2, l3, g2, o4);
|
|
20010
20013
|
tt2 = Math.max(tt2, e4.width), et2 = Math.max(et2, e4.height);
|
|
20011
20014
|
}
|
|
20012
20015
|
if (n4.hasZero && 0 !== r4 && 0 !== s4) {
|
|
20013
|
-
const e4 =
|
|
20016
|
+
const e4 = jg(t.Number, i4, 0, v2, l3, g2, o4);
|
|
20014
20017
|
tt2 = Math.max(tt2, e4.width), et2 = Math.max(et2, e4.height);
|
|
20015
20018
|
}
|
|
20016
20019
|
}
|
|
20017
20020
|
const c2 = n4.text;
|
|
20018
20021
|
if (c2.length > 0) {
|
|
20019
|
-
const e3 =
|
|
20022
|
+
const e3 = jg(t.String, i4, c2, v2, l3, g2, o4, void 0, I2);
|
|
20020
20023
|
tt2 = Math.max(tt2, e3.width), et2 = Math.max(et2, e3.height);
|
|
20021
20024
|
}
|
|
20022
20025
|
if (n4.hasTrue || n4.hasFalse) {
|
|
20023
|
-
const e3 =
|
|
20026
|
+
const e3 = jg(t.Boolean, i4, !n4.hasFalse, v2, l3, g2, o4);
|
|
20024
20027
|
tt2 = Math.max(tt2, e3.width), et2 = Math.max(et2, e3.height);
|
|
20025
20028
|
}
|
|
20026
20029
|
if (n4.hasEmpty) {
|
|
20027
|
-
const e3 =
|
|
20030
|
+
const e3 = jg(t.Boolean, i4, null, v2, l3, g2, o4);
|
|
20028
20031
|
tt2 = Math.max(tt2, e3.width), et2 = Math.max(et2, e3.height);
|
|
20029
20032
|
}
|
|
20030
20033
|
n4.measureWidth = tt2, n4.measureHeight = et2;
|
|
@@ -20037,25 +20040,25 @@ class dS {
|
|
|
20037
20040
|
for (; o4 && o4.col === n4; ) o4.measureWidth && (s4 = Math.max(o4.measureWidth ?? 0, s4)), t3++, e3 = r3[t3], o4 = r3[t3 + 1];
|
|
20038
20041
|
0 === s4 && (s4 = null);
|
|
20039
20042
|
const i4 = O2(s4, e3.spanWidth);
|
|
20040
|
-
|
|
20043
|
+
j2.push({ address: { min: n4, max: n4 }, update: { size: i4, autoSize: true }, sizeSet: null === s4 ? -1 : s4 });
|
|
20041
20044
|
}
|
|
20042
|
-
|
|
20043
|
-
let t2 = this._colHeaders.updateHeaderPairs(
|
|
20045
|
+
j2.sort(m2);
|
|
20046
|
+
let t2 = this._colHeaders.updateHeaderPairs(j2, M2);
|
|
20044
20047
|
t2 = Os(Ds(Bs(t2)));
|
|
20045
|
-
const e2 =
|
|
20048
|
+
const e2 = $2(D2.colStart, D2.colEnd, t2);
|
|
20046
20049
|
e2 && this._colHeaders.updateHeaderPairs(e2, M2);
|
|
20047
20050
|
}
|
|
20048
20051
|
if (h2) {
|
|
20049
20052
|
for (let t3 = 0; t3 < nt2; t3++) {
|
|
20050
20053
|
let e3 = r3[t3], n4 = e3.measureHeight ?? 0;
|
|
20051
20054
|
0 === n4 && (n4 = null);
|
|
20052
|
-
const o4 =
|
|
20055
|
+
const o4 = F2(n4, e3.spanHeight);
|
|
20053
20056
|
V2.push({ address: { min: e3.minRow, max: e3.maxRow }, update: { size: o4, autoSize: true }, sizeSet: null === n4 ? -1 : n4 });
|
|
20054
20057
|
}
|
|
20055
20058
|
V2.sort(m2);
|
|
20056
20059
|
let t2 = this._rowHeaders.updateHeaderPairs(V2, M2);
|
|
20057
20060
|
t2 = Os(Ds(Bs(t2)));
|
|
20058
|
-
const e2 =
|
|
20061
|
+
const e2 = $2(D2.rowStart, D2.rowEnd, t2);
|
|
20059
20062
|
e2 && this._rowHeaders.updateHeaderPairs(e2, M2);
|
|
20060
20063
|
}
|
|
20061
20064
|
}
|
|
@@ -20244,7 +20247,7 @@ class dS {
|
|
|
20244
20247
|
p2.push(l3);
|
|
20245
20248
|
}
|
|
20246
20249
|
d2.load(p2), n2 = { ...n2 };
|
|
20247
|
-
const y2 = new
|
|
20250
|
+
const y2 = new j_(a2, S2, _2, r2, this, l2, m2, f2, h2, n2), E2 = new Map(g2.rangesListenerMap2);
|
|
20248
20251
|
return E2.set(a2, y2), this._updateState({ rangesListenerSpatial2: d2, rangesListenerMap2: E2 }), s2 || this._rangesListenerSorted.set(l2, y2), u2.commit({ forceAmend: true }), h2;
|
|
20249
20252
|
}
|
|
20250
20253
|
_getUsedCoords(t2) {
|
|
@@ -20891,7 +20894,7 @@ class dS {
|
|
|
20891
20894
|
const s2 = [t2];
|
|
20892
20895
|
for (let e3 = 0; e3 < t2; e3++) s2.push(e3);
|
|
20893
20896
|
e2 && console.profileEnd("nativeArray"), window.noLoseArray = s2, o2 = performance.now(), console.log(`NativeArray: ${t2} records in ${o2 - r2} milliseconds`), r2 = performance.now(), e2 && console.profile("mixedType");
|
|
20894
|
-
const i2 =
|
|
20897
|
+
const i2 = jl.fromArray(n2);
|
|
20895
20898
|
e2 && console.profileEnd("mixedType"), window.noLoseList = i2, o2 = performance.now(), console.log(`MixedTypedList: ${t2} records in ${o2 - r2} milliseconds`);
|
|
20896
20899
|
}
|
|
20897
20900
|
_validateOrRemoveOverlaps(t2, e2, n2 = null, r2 = false) {
|
|
@@ -21204,7 +21207,7 @@ class dS {
|
|
|
21204
21207
|
};
|
|
21205
21208
|
this._transactionsRemoveListener = this._transactions.addStateListener(this, { onBeforeCommitStart(e2, n3, r3) {
|
|
21206
21209
|
if (!t2._initializing && !n3?.skipProtectionCheck) {
|
|
21207
|
-
if (t2.getProtection().isLocked()) throw new C(
|
|
21210
|
+
if (t2.getProtection().isLocked()) throw new C($h);
|
|
21208
21211
|
}
|
|
21209
21212
|
}, async onBeforeCommitEnd(e2, n3, r3) {
|
|
21210
21213
|
if (n3?.ranges) {
|
|
@@ -21672,7 +21675,7 @@ class dS {
|
|
|
21672
21675
|
if ("graphicFrame" !== d2) throw new C(((t3) => `Unsupported float type: ${t3}`)(d2));
|
|
21673
21676
|
w2 = new r_(S2);
|
|
21674
21677
|
}
|
|
21675
|
-
return o2.model = new
|
|
21678
|
+
return o2.model = new $p({ ...p2, content: w2 }), u2 = false, s2;
|
|
21676
21679
|
}
|
|
21677
21680
|
_fromJSON(n2) {
|
|
21678
21681
|
this._initializing = true, this._emitter.notify("onBeforeLoad", { params: n2 }), this._clearState();
|
|
@@ -21806,19 +21809,19 @@ class dS {
|
|
|
21806
21809
|
}
|
|
21807
21810
|
T2.load(e2);
|
|
21808
21811
|
}
|
|
21809
|
-
const
|
|
21812
|
+
const k2 = m2.movableMapModel, F2 = m2.movableSpatial;
|
|
21810
21813
|
if (s2.movables) {
|
|
21811
21814
|
const t2 = [], e2 = s2.movables, n3 = e2.length;
|
|
21812
21815
|
for (let r3 = 0; r3 < n3; r3++) {
|
|
21813
21816
|
const n4 = e2[r3];
|
|
21814
21817
|
try {
|
|
21815
21818
|
const e3 = this._createMovableEntry(n4, r3, l2.fromResourceId.bind(l2));
|
|
21816
|
-
|
|
21819
|
+
k2.set(e3.value.model, e3), t2.push(e3);
|
|
21817
21820
|
} catch (t3) {
|
|
21818
21821
|
console.warn("Unable to load movable", r3, n4, t3);
|
|
21819
21822
|
}
|
|
21820
21823
|
}
|
|
21821
|
-
|
|
21824
|
+
F2.load(t2);
|
|
21822
21825
|
}
|
|
21823
21826
|
const O2 = m2.tableMapModel, D2 = m2.tableMapName, B2 = m2.tableSpatial, L2 = s2.tables;
|
|
21824
21827
|
if (L2) {
|
|
@@ -21829,18 +21832,18 @@ class dS {
|
|
|
21829
21832
|
}
|
|
21830
21833
|
B2.load(t2);
|
|
21831
21834
|
}
|
|
21832
|
-
const z2 = m2.conditionalSpatial, P2 = m2.conditionalModels,
|
|
21833
|
-
if (
|
|
21834
|
-
const t2 =
|
|
21835
|
+
const z2 = m2.conditionalSpatial, P2 = m2.conditionalModels, H2 = s2.conditionals;
|
|
21836
|
+
if (H2) {
|
|
21837
|
+
const t2 = H2.length;
|
|
21835
21838
|
for (let e2 = 0; e2 < t2; e2++) {
|
|
21836
|
-
const t3 =
|
|
21839
|
+
const t3 = H2[e2];
|
|
21837
21840
|
this._createConditionalEntries(t3, z2, P2);
|
|
21838
21841
|
}
|
|
21839
21842
|
}
|
|
21840
|
-
const
|
|
21841
|
-
m2 = this._updateState({ hyperlinkSpatial: A2, commentsSpatial: T2, movableSpatial:
|
|
21842
|
-
const
|
|
21843
|
-
|
|
21843
|
+
const W2 = m2.calcGraph, V2 = W2.fromJSON({ formulas: s2.formulas, data: y2, dynamic: s2.dynamicArray, volatile: s2.volatile });
|
|
21844
|
+
m2 = this._updateState({ hyperlinkSpatial: A2, commentsSpatial: T2, movableSpatial: F2, movableMapModel: k2, tableSpatial: B2, tableMapModel: O2, tableMapName: D2, conditionalSpatial: z2, conditionalModels: P2, calcGraph: W2 });
|
|
21845
|
+
const j2 = this._getUsedCoords();
|
|
21846
|
+
j2 && this._autoFit([j2], { orientations: e.Orientations.Row, skipCustomSize: true }), r2.commit(), V2 && this._realizeCalcedValues(V2), s2.protection && this._protection.fromJSON(s2.protection), this._emitter.notify("onLoad");
|
|
21844
21847
|
} finally {
|
|
21845
21848
|
h2.endPersist(), l2.endPersist(), a2.endPersist();
|
|
21846
21849
|
}
|
|
@@ -21856,14 +21859,14 @@ class dS {
|
|
|
21856
21859
|
return e2(t2), this;
|
|
21857
21860
|
}
|
|
21858
21861
|
getVisibility() {
|
|
21859
|
-
return this._closed ?
|
|
21862
|
+
return this._closed ? jp.Visibility.VeryHidden : this._options.container?.getVisibility?.() ?? jp.Visibility.Hidden;
|
|
21860
21863
|
}
|
|
21861
21864
|
setVisibility(t2 = true) {
|
|
21862
21865
|
if (this._closed) throw new Error(td);
|
|
21863
21866
|
const e2 = this._options.container?.setVisibility;
|
|
21864
21867
|
if (!e2) throw new C("Unable to set visibility for sheet.");
|
|
21865
21868
|
let n2;
|
|
21866
|
-
return n2 = true === t2 ?
|
|
21869
|
+
return n2 = true === t2 ? jp.Visibility.Visible : false === t2 ? jp.Visibility.Hidden : t2, e2(n2), this;
|
|
21867
21870
|
}
|
|
21868
21871
|
async select(t2) {
|
|
21869
21872
|
return await this._options.container?.requestSelect?.(t2), this;
|
|
@@ -22071,9 +22074,9 @@ class AS {
|
|
|
22071
22074
|
}
|
|
22072
22075
|
}
|
|
22073
22076
|
let MS;
|
|
22074
|
-
const TS = "SheetXL", NS = MS || (MS = o.deepFreeze({ ISheet: { Visibility:
|
|
22075
|
-
let
|
|
22076
|
-
class
|
|
22077
|
+
const TS = "SheetXL", NS = MS || (MS = o.deepFreeze({ ISheet: { Visibility: jp.Visibility }, ICell: { Content: ld.Content, CalcStatus: ld.CalcStatus }, IColor: { Named: Js.Named, Scheme: Js.Scheme, Type: Js.Type, AdjustmentType: Js.AdjustmentType }, Direction: h }), MS);
|
|
22078
|
+
let kS;
|
|
22079
|
+
class FS extends gp {
|
|
22077
22080
|
constructor(t2, e2, n2, r2 = null, o2 = false) {
|
|
22078
22081
|
super(t2, e2, n2, r2, o2);
|
|
22079
22082
|
}
|
|
@@ -22121,9 +22124,9 @@ class kS extends gp {
|
|
|
22121
22124
|
})({});
|
|
22122
22125
|
}
|
|
22123
22126
|
try {
|
|
22124
|
-
hp({ getPosition: () => n4.getCell().getCoords() }),
|
|
22127
|
+
hp({ getPosition: () => n4.getCell().getCoords() }), kS = globalThis[TS], globalThis[TS] = NS;
|
|
22125
22128
|
const e3 = this._fn;
|
|
22126
|
-
o2 = e3.call(s2, ...t3),
|
|
22129
|
+
o2 = e3.call(s2, ...t3), kS ? (globalThis[TS] = kS, kS = void 0) : delete globalThis[TS], dp();
|
|
22127
22130
|
} catch (t4) {
|
|
22128
22131
|
throw t4;
|
|
22129
22132
|
} finally {
|
|
@@ -22202,7 +22205,7 @@ const DS = async (t2, e2) => {
|
|
|
22202
22205
|
const s2 = r2[t3], i2 = s2[0], a2 = s2[1];
|
|
22203
22206
|
let l2, c2 = n2 ? () => {
|
|
22204
22207
|
} : await DS(e2, i2);
|
|
22205
|
-
l2 = i2.context && i2.context !== up.Context.Calculation ? new
|
|
22208
|
+
l2 = i2.context && i2.context !== up.Context.Calculation ? new FS(i2, c2, () => null, a2) : new gp(i2, c2, () => null, a2), o2.set(i2.name.toUpperCase(), l2);
|
|
22206
22209
|
}
|
|
22207
22210
|
return new OS({ json: e2, readonlyFunctions: o2, name: t2 });
|
|
22208
22211
|
};
|
|
@@ -22322,7 +22325,7 @@ class PS extends Z_ {
|
|
|
22322
22325
|
return super._toJSON(t2);
|
|
22323
22326
|
}
|
|
22324
22327
|
}
|
|
22325
|
-
const
|
|
22328
|
+
const HS = (t2) => `Invalid SheetKey: ${t2}`, WS = "A workbook must contain at least one visible worksheet.", VS = "Internal error no visible sheetRefs", jS = "Workbook has been closed. No further operations are allowed.", $S = "This workbook structure is protected. To make a change, unprotect the workbook. You might be requested to enter a password.", GS = "A sheet name", US = `${GS} can not be blank.`, JS = `${GS} can not be longer than 31 characters.`, qS = `${GS} can not begin or end with a "'" (single quote).`;
|
|
22326
22329
|
class KS {
|
|
22327
22330
|
constructor(t2, e2) {
|
|
22328
22331
|
this._add = t2, this._get = e2;
|
|
@@ -22371,7 +22374,7 @@ class ew extends nS {
|
|
|
22371
22374
|
}
|
|
22372
22375
|
_createRange(t2, e2) {
|
|
22373
22376
|
const n2 = t2 ? { ...t2 } : null;
|
|
22374
|
-
if (!(n2 ? this._workbook._getSheetRef(n2.sheetName,
|
|
22377
|
+
if (!(n2 ? this._workbook._getSheetRef(n2.sheetName, jp.Visibility.VeryHidden) : null)) {
|
|
22375
22378
|
const t3 = this._workbook.getSelectedSheet();
|
|
22376
22379
|
return delete n2?.sheetName, ZS(n2, n2 ? { sheetName: Pc, ...t3.getEntireRange().getCoords() } : null);
|
|
22377
22380
|
}
|
|
@@ -22447,7 +22450,7 @@ class rw {
|
|
|
22447
22450
|
t3 || (t3 = (t4) => new dS(t4)), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (n3, r3, o3, s3, i2) => {
|
|
22448
22451
|
let a2 = null;
|
|
22449
22452
|
const l2 = { date1904: e2.isDate1904(), readonly: e2._options.readonly ?? false, transactions: e2._transactions, styles: e2._styles, strings: e2._strings, resources: e2._resources, names: e2._names, workbook: e2, calculation: e2._calculation, resolveRange: (t4) => e2._options.resolveRange?.(t4) ?? e2.getRange(t4), container: { beforeFromJSON: (t4) => {
|
|
22450
|
-
a2 = t4, e2._addSheetRef({ name: r3, id: n3, visibility: o3 ??
|
|
22453
|
+
a2 = t4, e2._addSheetRef({ name: r3, id: n3, visibility: o3 ?? jp.Visibility.Visible, sheet: t4 }, s3);
|
|
22451
22454
|
}, getName: () => {
|
|
22452
22455
|
const t4 = e2._getSheetRef(a2);
|
|
22453
22456
|
return t4 ? t4.name : e2._createSheetName(1);
|
|
@@ -22455,20 +22458,20 @@ class rw {
|
|
|
22455
22458
|
e2._getSheetRef(a2) && e2._setSheetName(a2, t4);
|
|
22456
22459
|
}, getIndex: () => {
|
|
22457
22460
|
const t4 = e2._getSheetRef(a2);
|
|
22458
|
-
return t4 ? e2._findOffsetForId(t4.id, e2._getSheetRefs(
|
|
22461
|
+
return t4 ? e2._findOffsetForId(t4.id, e2._getSheetRefs(jp.Visibility.VeryHidden)) : -1;
|
|
22459
22462
|
}, setIndexCallback: (t4) => {
|
|
22460
22463
|
e2._sheetOnIndexChange.set(n3, t4);
|
|
22461
22464
|
}, setNameChangeCallback: (t4) => {
|
|
22462
22465
|
e2._sheetOnNameChange.set(n3, t4);
|
|
22463
22466
|
}, getVisibility: () => {
|
|
22464
22467
|
const t4 = e2._getSheetRef(a2);
|
|
22465
|
-
return t4 ? t4.visibility :
|
|
22468
|
+
return t4 ? t4.visibility : jp.Visibility.Visible;
|
|
22466
22469
|
}, setVisibility: (t4) => {
|
|
22467
22470
|
e2._setSheetVisibility(a2, t4);
|
|
22468
22471
|
}, setVisibilityCallback: (t4) => {
|
|
22469
22472
|
e2._sheetOnVisibilityChange.set(n3, t4);
|
|
22470
22473
|
}, duplicate: () => e2._duplicateSheet(a2), setPosition: (t4) => {
|
|
22471
|
-
const n4 = e2._getSheetRef(a2,
|
|
22474
|
+
const n4 = e2._getSheetRef(a2, jp.Visibility.VeryHidden);
|
|
22472
22475
|
return !!n4 && (e2._moveSheet(n4, t4), true);
|
|
22473
22476
|
}, requestSelect: async () => (e2._setSelectedSheet(a2), await this._emitter.notify("onRequestSelect", { source: e2, params: a2, async: true }), e2.getSelectedSheet() === a2) } };
|
|
22474
22477
|
return i2 && (l2.json = i2), a2 = t3(l2, r3, s3, o3), a2;
|
|
@@ -22482,7 +22485,7 @@ class rw {
|
|
|
22482
22485
|
}
|
|
22483
22486
|
}, getSheetIndex: (t4) => {
|
|
22484
22487
|
if (void 0 === t4) return e2.getSelectedSheetIndex();
|
|
22485
|
-
const n3 = this._getSheetRefs(
|
|
22488
|
+
const n3 = this._getSheetRefs(jp.Visibility.Hidden);
|
|
22486
22489
|
t4 = t4.toLowerCase();
|
|
22487
22490
|
const r3 = n3.length;
|
|
22488
22491
|
for (let e3 = 0; e3 < r3; e3++) if (n3[e3].name.toLowerCase() === t4) return e3;
|
|
@@ -22493,7 +22496,7 @@ class rw {
|
|
|
22493
22496
|
const n4 = e3[0].getRanges().getCoords()?.[0];
|
|
22494
22497
|
let r4 = n4?.sheetName;
|
|
22495
22498
|
if (!r4) return -1;
|
|
22496
|
-
const o3 = this._getSheetRefs(
|
|
22499
|
+
const o3 = this._getSheetRefs(jp.Visibility.Hidden);
|
|
22497
22500
|
r4 = r4.toLowerCase();
|
|
22498
22501
|
const s3 = o3.length;
|
|
22499
22502
|
for (let t5 = 0; t5 < s3; t5++) if (o3[t5].name.toLowerCase() === r4) return t5;
|
|
@@ -22541,7 +22544,7 @@ class rw {
|
|
|
22541
22544
|
return this._closed ? null : this._getState().name;
|
|
22542
22545
|
}
|
|
22543
22546
|
setName(t2) {
|
|
22544
|
-
if (this._closed) throw new Error(
|
|
22547
|
+
if (this._closed) throw new Error(jS);
|
|
22545
22548
|
if (null !== t2) try {
|
|
22546
22549
|
const e2 = this._options.validateWorkbookName?.(t2);
|
|
22547
22550
|
void 0 !== e2 && (t2 = e2);
|
|
@@ -22554,7 +22557,7 @@ class rw {
|
|
|
22554
22557
|
return this._view;
|
|
22555
22558
|
}
|
|
22556
22559
|
setView(t2) {
|
|
22557
|
-
if (this._closed) throw new Error(
|
|
22560
|
+
if (this._closed) throw new Error(jS);
|
|
22558
22561
|
if (!t2) throw new C("View can not be empty.");
|
|
22559
22562
|
this._listenerWorkbookView?.();
|
|
22560
22563
|
const e2 = this;
|
|
@@ -22568,7 +22571,7 @@ class rw {
|
|
|
22568
22571
|
return this._isDate1904;
|
|
22569
22572
|
}
|
|
22570
22573
|
setDate1904(t2) {
|
|
22571
|
-
if (this._closed) throw new Error(
|
|
22574
|
+
if (this._closed) throw new Error(jS);
|
|
22572
22575
|
return this._isDate1904 = t2, this._notifyAllChange(), this;
|
|
22573
22576
|
}
|
|
22574
22577
|
getStyles() {
|
|
@@ -22587,7 +22590,7 @@ class rw {
|
|
|
22587
22590
|
return this._theme;
|
|
22588
22591
|
}
|
|
22589
22592
|
setTheme(t2) {
|
|
22590
|
-
if (this._closed) throw new Error(
|
|
22593
|
+
if (this._closed) throw new Error(jS);
|
|
22591
22594
|
if (!t2) throw new C("A value must be provided.");
|
|
22592
22595
|
const e2 = this._theme;
|
|
22593
22596
|
return this._theme = t2, this.getStyles().setTheme(t2), this._emitter.notify("onThemeChange"), e2;
|
|
@@ -22599,12 +22602,12 @@ class rw {
|
|
|
22599
22602
|
const t2 = this._getSheetRef(this.getSelectedSheetIndex());
|
|
22600
22603
|
return t2 ? t2?.sheet : null;
|
|
22601
22604
|
}
|
|
22602
|
-
getSheet(t2, e2 =
|
|
22605
|
+
getSheet(t2, e2 = jp.Visibility.Visible) {
|
|
22603
22606
|
const n2 = this._getSheetRef(t2, e2);
|
|
22604
22607
|
if (!n2) throw new d(`Sheet '${t2}' not found.`);
|
|
22605
22608
|
return n2.sheet;
|
|
22606
22609
|
}
|
|
22607
|
-
getSheetAt(t2, e2 =
|
|
22610
|
+
getSheetAt(t2, e2 = jp.Visibility.Visible) {
|
|
22608
22611
|
const n2 = this._getSheetRef(t2, e2);
|
|
22609
22612
|
if (!n2) throw new d(((t3) => `No sheet found at ${t3}.`)(t2));
|
|
22610
22613
|
return n2.sheet;
|
|
@@ -22615,17 +22618,17 @@ class rw {
|
|
|
22615
22618
|
addSheet(t2) {
|
|
22616
22619
|
return this.getSheets().add(t2);
|
|
22617
22620
|
}
|
|
22618
|
-
_getSheets(t2 =
|
|
22621
|
+
_getSheets(t2 = jp.Visibility.Visible) {
|
|
22619
22622
|
const e2 = this._getSheetRefs(t2), n2 = [], r2 = e2.length;
|
|
22620
22623
|
for (let t3 = 0; t3 < r2; t3++) n2.push(e2[t3].sheet);
|
|
22621
22624
|
return n2;
|
|
22622
22625
|
}
|
|
22623
|
-
_getSheetRefs(t2 =
|
|
22626
|
+
_getSheetRefs(t2 = jp.Visibility.Visible) {
|
|
22624
22627
|
if (this._closed) return o.EmptyArray;
|
|
22625
22628
|
const e2 = this._getState();
|
|
22626
|
-
return e2 ? t2 ===
|
|
22629
|
+
return e2 ? t2 === jp.Visibility.Visible ? e2.sheetRefsVisible : t2 === jp.Visibility.Hidden ? e2.sheetRefsVisibleAndHidden : t2 === jp.Visibility.VeryHidden ? e2.sheetRefsAll : o.EmptyArray : [];
|
|
22627
22630
|
}
|
|
22628
|
-
_getSheetRef(t2, e2 =
|
|
22631
|
+
_getSheetRef(t2, e2 = jp.Visibility.Visible) {
|
|
22629
22632
|
if (this._closed) return null;
|
|
22630
22633
|
let n2 = null;
|
|
22631
22634
|
if ("number" == typeof t2) {
|
|
@@ -22665,8 +22668,8 @@ class rw {
|
|
|
22665
22668
|
return !XS.test(t2);
|
|
22666
22669
|
}
|
|
22667
22670
|
_addSheetOptions(t2) {
|
|
22668
|
-
if (this._closed) throw new Error(
|
|
22669
|
-
if (!this.getProtection().isStructureAllowed()) throw new C(
|
|
22671
|
+
if (this._closed) throw new Error(jS);
|
|
22672
|
+
if (!this.getProtection().isStructureAllowed()) throw new C($S);
|
|
22670
22673
|
let e2, n2 = null;
|
|
22671
22674
|
e2 = "string" == typeof t2 ? { name: t2 } : "number" == typeof t2 ? { index: t2 } : t2, e2 = { ...e2, description: e2?.description ?? "Add Sheet" };
|
|
22672
22675
|
const r2 = this.beginCommit(e2);
|
|
@@ -22702,15 +22705,15 @@ class rw {
|
|
|
22702
22705
|
}
|
|
22703
22706
|
_addSheet(t2, e2 = null, n2 = null) {
|
|
22704
22707
|
e2 = this._nextSheetName(e2);
|
|
22705
|
-
const r2 = this._getState(), o2 = this._createSheet(r2.lastId, e2,
|
|
22708
|
+
const r2 = this._getState(), o2 = this._createSheet(r2.lastId, e2, jp.Visibility.Visible, n2, null);
|
|
22706
22709
|
if (!o2) throw new C(US);
|
|
22707
22710
|
return t2 && this._emitter.notify("onSheetsChange"), o2;
|
|
22708
22711
|
}
|
|
22709
22712
|
_updateSheetRefStates(t2) {
|
|
22710
|
-
if (this._closed) throw new Error(
|
|
22711
|
-
if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new C(
|
|
22713
|
+
if (this._closed) throw new Error(jS);
|
|
22714
|
+
if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new C($S);
|
|
22712
22715
|
const e2 = t2, n2 = [], r2 = [], o2 = e2.length;
|
|
22713
|
-
for (let t3 = 0; t3 < o2; t3++) e2[t3].visibility ===
|
|
22716
|
+
for (let t3 = 0; t3 < o2; t3++) e2[t3].visibility === jp.Visibility.Visible ? (n2.push(e2[t3]), r2.push(e2[t3])) : e2[t3].visibility === jp.Visibility.Hidden && r2.push(e2[t3]);
|
|
22714
22717
|
this._updateState({ sheetRefsAll: e2, sheetRefsVisible: n2, sheetRefsVisibleAndHidden: r2 });
|
|
22715
22718
|
}
|
|
22716
22719
|
_addSheetRef(t2, e2 = null) {
|
|
@@ -22733,7 +22736,7 @@ class rw {
|
|
|
22733
22736
|
const e3 = i2.addListeners({ onBeforeDelete: (t3) => {
|
|
22734
22737
|
g2._validateDeleteSheet(t3);
|
|
22735
22738
|
}, onDelete(t3) {
|
|
22736
|
-
let e4 = g2._getSheetRef(t3,
|
|
22739
|
+
let e4 = g2._getSheetRef(t3, jp.Visibility.VeryHidden);
|
|
22737
22740
|
if (!e4) return;
|
|
22738
22741
|
const n3 = g2._beginCommit({ description: `Remove Sheet ${e4.name}` });
|
|
22739
22742
|
try {
|
|
@@ -22782,15 +22785,15 @@ class rw {
|
|
|
22782
22785
|
if (-1 === e2) return;
|
|
22783
22786
|
let n2 = this._view.getActiveSheetId();
|
|
22784
22787
|
null == n2 && (this._view.setActiveSheetId(e2), n2 = e2);
|
|
22785
|
-
t2.refsById.get(n2).visibility ===
|
|
22788
|
+
t2.refsById.get(n2).visibility === jp.Visibility.Visible && (this._activeSheetOffset = this._findOffsetForId(n2, t2.sheetRefsVisible));
|
|
22786
22789
|
}
|
|
22787
22790
|
_validateDeleteSheet(t2) {
|
|
22788
|
-
if (this._closed) throw new Error(
|
|
22789
|
-
if (!this.getProtection().isStructureAllowed()) throw new C(
|
|
22791
|
+
if (this._closed) throw new Error(jS);
|
|
22792
|
+
if (!this.getProtection().isStructureAllowed()) throw new C($S);
|
|
22790
22793
|
let e2 = this._getSheetRef(t2);
|
|
22791
22794
|
if (!e2) throw new C(((t3) => `Invalid reference for delete: ${t3}`)(t2));
|
|
22792
22795
|
const n2 = this._getState().sheetRefsVisible;
|
|
22793
|
-
if (1 === n2.length && n2[0].id === e2.id) throw new C(
|
|
22796
|
+
if (1 === n2.length && n2[0].id === e2.id) throw new C(WS);
|
|
22794
22797
|
}
|
|
22795
22798
|
_findOffsetForId(t2, e2) {
|
|
22796
22799
|
const n2 = e2.length;
|
|
@@ -22798,7 +22801,7 @@ class rw {
|
|
|
22798
22801
|
throw new C(VS);
|
|
22799
22802
|
}
|
|
22800
22803
|
find(t2) {
|
|
22801
|
-
if (this._closed) throw new Error(
|
|
22804
|
+
if (this._closed) throw new Error(jS);
|
|
22802
22805
|
const e2 = this._getSheets();
|
|
22803
22806
|
if (1 === e2.length) return e2[0].find(t2);
|
|
22804
22807
|
"string" == typeof t2 && (t2 = { text: t2 });
|
|
@@ -22837,7 +22840,7 @@ class rw {
|
|
|
22837
22840
|
let r2 = 0, o2 = null;
|
|
22838
22841
|
const s2 = "function" == typeof e2, i2 = n2?.maxCount ?? Number.MAX_SAFE_INTEGER;
|
|
22839
22842
|
let a2 = n2.maxCount ? "" : "All";
|
|
22840
|
-
const l2 = "string" == typeof e2 ? ` with '${
|
|
22843
|
+
const l2 = "string" == typeof e2 ? ` with '${Fo(e2)}'` : "";
|
|
22841
22844
|
let c2 = n2?.description ?? "Replace";
|
|
22842
22845
|
const h2 = this._transactions.beginCommit({ description: c2 });
|
|
22843
22846
|
try {
|
|
@@ -22863,22 +22866,22 @@ class rw {
|
|
|
22863
22866
|
return 1 === n2 ? 0 : (void 0 === t2 && (t2 = this.getSelectedSheetIndex()), (t2 = Math.max(0, Math.min(t2, n2 - 1))) <= 0 ? n2 - 1 : t2 - 1);
|
|
22864
22867
|
}
|
|
22865
22868
|
getNextSheet(t2) {
|
|
22866
|
-
if (this._closed) throw new Error(
|
|
22869
|
+
if (this._closed) throw new Error(jS);
|
|
22867
22870
|
const e2 = this._getSheetRefs();
|
|
22868
22871
|
return e2[this._nextSheetIndex(t2, e2)]?.sheet ?? null;
|
|
22869
22872
|
}
|
|
22870
22873
|
getPreviousSheet(t2) {
|
|
22871
|
-
if (this._closed) throw new Error(
|
|
22874
|
+
if (this._closed) throw new Error(jS);
|
|
22872
22875
|
const e2 = this._getSheetRefs();
|
|
22873
22876
|
return e2[this._prevSheetIndex(t2, e2)]?.sheet ?? null;
|
|
22874
22877
|
}
|
|
22875
22878
|
async _duplicateSheet(t2) {
|
|
22876
|
-
if (this._closed) throw new Error(
|
|
22877
|
-
if (!this.getProtection().isStructureAllowed()) throw new C(
|
|
22879
|
+
if (this._closed) throw new Error(jS);
|
|
22880
|
+
if (!this.getProtection().isStructureAllowed()) throw new C($S);
|
|
22878
22881
|
const e2 = this._getSheetRefs(), n2 = this.getSelectedSheetIndex();
|
|
22879
22882
|
let r2 = null;
|
|
22880
22883
|
if (t2) {
|
|
22881
|
-
if (r2 = this._getSheetRef(t2), !r2) throw new C(
|
|
22884
|
+
if (r2 = this._getSheetRef(t2), !r2) throw new C(HS(r2));
|
|
22882
22885
|
} else r2 = e2[n2];
|
|
22883
22886
|
if (!r2) return null;
|
|
22884
22887
|
const o2 = r2.sheet, s2 = this._strings.beginPersist(), i2 = this.getResources().beginPersist(), a2 = this.getStyles().beginPersist();
|
|
@@ -22896,7 +22899,7 @@ class rw {
|
|
|
22896
22899
|
}
|
|
22897
22900
|
_createRange(t2, e2) {
|
|
22898
22901
|
const n2 = t2 ? { ...t2 } : null;
|
|
22899
|
-
if (!(n2 ? this._getSheetRef(n2.sheetName,
|
|
22902
|
+
if (!(n2 ? this._getSheetRef(n2.sheetName, jp.Visibility.VeryHidden) : null)) {
|
|
22900
22903
|
const t3 = this.getSelectedSheet();
|
|
22901
22904
|
return t3 ? (delete n2?.sheetName, ZS(n2, n2 ? { sheetName: Pc, ...t3.getEntireRange().getCoords() } : null)) : void console.warn(VS);
|
|
22902
22905
|
}
|
|
@@ -22938,7 +22941,7 @@ class rw {
|
|
|
22938
22941
|
getSelectedCell() {
|
|
22939
22942
|
return this.getSelectedSheet().getSelectedCell();
|
|
22940
22943
|
}
|
|
22941
|
-
_rangesAddressToCoords(t2, e2 = true, n2 =
|
|
22944
|
+
_rangesAddressToCoords(t2, e2 = true, n2 = jp.Visibility.Hidden) {
|
|
22942
22945
|
if (!t2) throw new C(Ih);
|
|
22943
22946
|
const r2 = this.getSelectedSheet(), o2 = r2?.getEntireRange().getCoords(), s2 = { ...o2 }, i2 = r2?.getName();
|
|
22944
22947
|
if (i2 && (s2.sheetName = i2), "string" == typeof t2) {
|
|
@@ -22959,7 +22962,7 @@ class rw {
|
|
|
22959
22962
|
for (let t3 = 0; t3 < c2; t3++) this._validateCoords(l2[t3], n2);
|
|
22960
22963
|
return l2;
|
|
22961
22964
|
}
|
|
22962
|
-
_validateCoords(t2, e2 =
|
|
22965
|
+
_validateCoords(t2, e2 = jp.Visibility.Visible, n2 = Uh) {
|
|
22963
22966
|
if (null === t2) return;
|
|
22964
22967
|
const r2 = this.getSheet(t2.sheetName, e2).getEntireRange().getCoords();
|
|
22965
22968
|
if (!c.isRangeWithinRange(t2, r2)) throw new d(n2);
|
|
@@ -22980,10 +22983,10 @@ class rw {
|
|
|
22980
22983
|
return h2.set(c2, e2), this._updateState({ refsById: o2, refsByLowerCaseName: a2, sheetsByLowerCaseName: l2, refsByInstance: h2 }), e2;
|
|
22981
22984
|
}
|
|
22982
22985
|
_setSheetName(t2, e2) {
|
|
22983
|
-
if (this._closed) throw new Error(
|
|
22984
|
-
if (!this.getProtection().isStructureAllowed()) throw new C(
|
|
22986
|
+
if (this._closed) throw new Error(jS);
|
|
22987
|
+
if (!this.getProtection().isStructureAllowed()) throw new C($S);
|
|
22985
22988
|
const n2 = this._getSheetRef(t2);
|
|
22986
|
-
if (!n2) throw new C(
|
|
22989
|
+
if (!n2) throw new C(HS(t2));
|
|
22987
22990
|
if (e2 === n2.name) return n2.sheet;
|
|
22988
22991
|
e2 = this._validateNewSheetName(e2);
|
|
22989
22992
|
const r2 = Object.freeze({ ...n2, name: e2 });
|
|
@@ -22999,23 +23002,23 @@ class rw {
|
|
|
22999
23002
|
}
|
|
23000
23003
|
return o2;
|
|
23001
23004
|
}
|
|
23002
|
-
_setSheetVisibility(t2, e2 =
|
|
23003
|
-
if (this._closed) throw new Error(
|
|
23004
|
-
if (!this.getProtection().isStructureAllowed()) throw new C(
|
|
23005
|
-
const n2 = this._getSheetRef(t2,
|
|
23005
|
+
_setSheetVisibility(t2, e2 = jp.Visibility.Visible) {
|
|
23006
|
+
if (this._closed) throw new Error(jS);
|
|
23007
|
+
if (!this.getProtection().isStructureAllowed()) throw new C($S);
|
|
23008
|
+
const n2 = this._getSheetRef(t2, jp.Visibility.VeryHidden);
|
|
23006
23009
|
if (!n2) return null;
|
|
23007
23010
|
if (e2 === n2.visibility) return;
|
|
23008
23011
|
let r2 = null, o2 = "";
|
|
23009
|
-
e2 ===
|
|
23012
|
+
e2 === jp.Visibility.Visible ? o2 = "Unhide Sheet" : e2 === jp.Visibility.Hidden ? o2 = "Hide Sheet" : e2 === jp.Visibility.VeryHidden && (o2 = "Very Hide Sheet");
|
|
23010
23013
|
const s2 = this.beginCommit(o2);
|
|
23011
23014
|
try {
|
|
23012
23015
|
const t3 = this._getState().sheetRefsVisible;
|
|
23013
|
-
if (e2 !==
|
|
23016
|
+
if (e2 !== jp.Visibility.Visible && 1 === t3.length && t3[0].id === n2.id) throw new C(WS);
|
|
23014
23017
|
const o3 = { ...n2, visibility: e2 };
|
|
23015
23018
|
let i2 = -1;
|
|
23016
|
-
e2 !==
|
|
23019
|
+
e2 !== jp.Visibility.Visible && (i2 = this._findOffsetForId(n2.id, t3));
|
|
23017
23020
|
const a2 = this._updateSheetRef(n2, o3);
|
|
23018
|
-
e2 !==
|
|
23021
|
+
e2 !== jp.Visibility.Visible && this._adjustRemoveSelectionIfRequired(i2, n2.id), r2 = a2.sheet, this._adjustSheetNamesIfRequired(), s2.commit();
|
|
23019
23022
|
} catch (t3) {
|
|
23020
23023
|
throw s2.rollback(), t3;
|
|
23021
23024
|
}
|
|
@@ -23024,8 +23027,8 @@ class rw {
|
|
|
23024
23027
|
}), this._emitter.notify("onSheetsChange"), r2;
|
|
23025
23028
|
}
|
|
23026
23029
|
_moveSheet(t2, e2) {
|
|
23027
|
-
if (this._closed) throw new Error(
|
|
23028
|
-
if (!this.getProtection().isStructureAllowed()) throw new C(
|
|
23030
|
+
if (this._closed) throw new Error(jS);
|
|
23031
|
+
if (!this.getProtection().isStructureAllowed()) throw new C($S);
|
|
23029
23032
|
let n2 = null;
|
|
23030
23033
|
const r2 = this.beginCommit(`Move Sheet '${t2.name}'`);
|
|
23031
23034
|
try {
|
|
@@ -23044,11 +23047,11 @@ class rw {
|
|
|
23044
23047
|
return n2;
|
|
23045
23048
|
}
|
|
23046
23049
|
_setSelectedSheet(t2) {
|
|
23047
|
-
if (this._closed) throw new Error(
|
|
23050
|
+
if (this._closed) throw new Error(jS);
|
|
23048
23051
|
const e2 = this._getSheetRef(t2);
|
|
23049
|
-
if (!e2) throw new C(
|
|
23052
|
+
if (!e2) throw new C(HS(t2));
|
|
23050
23053
|
let n2 = null;
|
|
23051
|
-
return e2.visibility !==
|
|
23054
|
+
return e2.visibility !== jp.Visibility.Visible && this._setSheetVisibility(e2, jp.Visibility.Visible), this._view.setActiveSheetId(e2.id), n2 = e2.sheet, n2;
|
|
23052
23055
|
}
|
|
23053
23056
|
getProtection() {
|
|
23054
23057
|
return this._protection;
|
|
@@ -23090,7 +23093,7 @@ class rw {
|
|
|
23090
23093
|
};
|
|
23091
23094
|
}
|
|
23092
23095
|
_fromJSON(t2) {
|
|
23093
|
-
if (this._emitter.notify("onBeforeLoad", { params: t2 }), this._initState(), !t2.sheets || 0 === t2.sheets.length) throw new C(
|
|
23096
|
+
if (this._emitter.notify("onBeforeLoad", { params: t2 }), this._initState(), !t2.sheets || 0 === t2.sheets.length) throw new C(WS);
|
|
23094
23097
|
t2.theme && (this._theme = new ta(t2.theme), this._styles.setTheme(this._theme));
|
|
23095
23098
|
const e2 = this._strings.beginPersist(), n2 = this._resources.beginPersist(), r2 = this._styles.beginPersist();
|
|
23096
23099
|
try {
|
|
@@ -23100,8 +23103,8 @@ class rw {
|
|
|
23100
23103
|
null !== i2 && (i2 = Math.min(Math.max(1, i2), s2));
|
|
23101
23104
|
let a2 = null;
|
|
23102
23105
|
for (let t3 = 0; t3 < s2; t3++) {
|
|
23103
|
-
const e3 = o2[t3], n3 = e3.visibility ||
|
|
23104
|
-
n3 ===
|
|
23106
|
+
const e3 = o2[t3], n3 = e3.visibility || jp.Visibility.Visible, r3 = t3 + 1;
|
|
23107
|
+
n3 === jp.Visibility.Visible ? a2 = r3 : null !== i2 && i2 === r3 && (i2 = null), this._createSheet(r3, e3.name, n3, void 0, e3.sheet);
|
|
23105
23108
|
}
|
|
23106
23109
|
this._updateState({ lastId: a2 }), t2.names && this._names.fromJSON(t2.names), t2.view.activeSheetId = i2 ?? a2, this.setView(new RS({ json: t2.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
|
|
23107
23110
|
const l2 = this;
|
|
@@ -23127,7 +23130,7 @@ class rw {
|
|
|
23127
23130
|
} });
|
|
23128
23131
|
}
|
|
23129
23132
|
async toJSON(t2 = false) {
|
|
23130
|
-
if (this._closed) throw new Error(
|
|
23133
|
+
if (this._closed) throw new Error(jS);
|
|
23131
23134
|
await this._emitter.notify("onBeforeSave", { async: true });
|
|
23132
23135
|
const e2 = { sheets: [] };
|
|
23133
23136
|
await Promise.resolve(this._starting);
|
|
@@ -23140,7 +23143,7 @@ class rw {
|
|
|
23140
23143
|
const l2 = this._getState(), c2 = l2.sheetRefsAll, h2 = l2.sheetsById, d2 = c2.length;
|
|
23141
23144
|
for (let r3 = 0; r3 < d2; r3++) {
|
|
23142
23145
|
const o3 = c2[r3], s3 = r3 + 1, l3 = await h2.get(o3.id).toJSON(t2), d3 = { name: o3.name, sheet: l3 };
|
|
23143
|
-
o3.visibility ===
|
|
23146
|
+
o3.visibility === jp.Visibility.Visible ? a2 = s3 : d3.visibility = o3.visibility, o3.id === n3 && (i2 = s3), e2.sheets.push(d3);
|
|
23144
23147
|
}
|
|
23145
23148
|
const u2 = s2.toJSON();
|
|
23146
23149
|
u2 && Object.keys(u2).length > 0 && (e2.styles = u2);
|
|
@@ -23182,7 +23185,7 @@ class rw {
|
|
|
23182
23185
|
this._ownResources, this._ownNames && this._names.close(), this._ownsCalculation && this._calculation.close(), this._ownStyles, this._transactionsRemoveListener?.(), this._closed = true;
|
|
23183
23186
|
}
|
|
23184
23187
|
beginCommit(t2) {
|
|
23185
|
-
if (this._closed) throw new Error(
|
|
23188
|
+
if (this._closed) throw new Error(jS);
|
|
23186
23189
|
return this._beginCommit("string" == typeof t2 ? { description: t2 } : t2);
|
|
23187
23190
|
}
|
|
23188
23191
|
doBatch(t2, e2) {
|
|
@@ -23222,10 +23225,10 @@ class rw {
|
|
|
23222
23225
|
return true;
|
|
23223
23226
|
}
|
|
23224
23227
|
}
|
|
23225
|
-
const ow = { address: null, scope: null }, sw = "0.7.
|
|
23228
|
+
const ow = { address: null, scope: null }, sw = "0.7.22", iw = "Sun Oct 19 2025";
|
|
23226
23229
|
export {
|
|
23227
23230
|
Im as AddressUtils,
|
|
23228
|
-
|
|
23231
|
+
js as AutoFill,
|
|
23229
23232
|
iw as BUILD_DATE,
|
|
23230
23233
|
vp as Calculation,
|
|
23231
23234
|
li as Color,
|
|
@@ -23242,26 +23245,26 @@ export {
|
|
|
23242
23245
|
Rp as ICellHeaderRange,
|
|
23243
23246
|
Ip as ICellRange,
|
|
23244
23247
|
Js as IColor,
|
|
23245
|
-
|
|
23248
|
+
kp as IConditionalFormat,
|
|
23246
23249
|
Gs as IFill,
|
|
23247
23250
|
rs as IFont,
|
|
23248
23251
|
gs as IFontCollection,
|
|
23249
23252
|
Mp as IMovable,
|
|
23250
23253
|
af as IPicture,
|
|
23251
|
-
|
|
23252
|
-
|
|
23254
|
+
$s as IPrint,
|
|
23255
|
+
jp as ISheet,
|
|
23253
23256
|
Op as ISheetView,
|
|
23254
23257
|
ha as ISort,
|
|
23255
23258
|
Mi as IStyle,
|
|
23256
23259
|
ra as ITableStyle,
|
|
23257
23260
|
xo as IText,
|
|
23258
23261
|
Ro as ITextFrame,
|
|
23259
|
-
|
|
23262
|
+
Fi as ITheme,
|
|
23260
23263
|
Oi as IThemeCollection,
|
|
23261
|
-
|
|
23264
|
+
dt as LicenseManager,
|
|
23262
23265
|
Ri as NumberFormat,
|
|
23263
23266
|
cf as Picture,
|
|
23264
|
-
|
|
23267
|
+
Wp as RangeClipboardItem,
|
|
23265
23268
|
ef as Resource,
|
|
23266
23269
|
rf as ResourceCollection,
|
|
23267
23270
|
dS as Sheet,
|
|
@@ -23280,7 +23283,7 @@ export {
|
|
|
23280
23283
|
sw as VERSION,
|
|
23281
23284
|
rw as Workbook,
|
|
23282
23285
|
RS as WorkbookView,
|
|
23283
|
-
|
|
23286
|
+
H_ as a,
|
|
23284
23287
|
P_ as b,
|
|
23285
23288
|
Ic as c,
|
|
23286
23289
|
vh as d,
|
|
@@ -23288,6 +23291,6 @@ export {
|
|
|
23288
23291
|
Ec as f,
|
|
23289
23292
|
Nc as g,
|
|
23290
23293
|
Tc as m,
|
|
23291
|
-
|
|
23294
|
+
$c as r,
|
|
23292
23295
|
Cc as t
|
|
23293
23296
|
};
|