@sheetxl/sdk 0.6.8 → 0.6.9
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/{CPrlT8ClOAOEVPLE.cjs → B-cq8iLXLtEx64K_.cjs} +1 -1
- package/browser/cjs/{CI2-oD4G_tFYtFLa.cjs → B5NVMCBMKfgbOTc4.cjs} +1 -1
- package/browser/cjs/{tOGoeR9yufCdzeBK.cjs → B5lDewVA1PK3TDqP.cjs} +1 -1
- package/browser/cjs/{CvxuA4OribKX0xTX.cjs → B9P689u0AgLxiPG8.cjs} +1 -1
- package/browser/cjs/{BLMXRt9wwJiAFaI7.cjs → Bc5uv_RCFvWQH2sX.cjs} +1 -1
- package/browser/cjs/{CNLel5In1H4jwhCc.cjs → Be5HciXCsM30cTR7.cjs} +1 -1
- package/browser/cjs/{DM6oJfKGt7FrjrlU.cjs → BiDzOTyDbSNj4VOt.cjs} +1 -1
- package/browser/cjs/{CrH5BaOboclMtZ4d.cjs → BqeQ2BMXQACCKLKR.cjs} +1 -1
- package/browser/cjs/{CQS0UR_lmBqd4JcZ.cjs → COrnzi7VyRdNGAtQ.cjs} +1 -1
- package/browser/cjs/{BVDYBTtLB8ZsvUP4.cjs → CSfNl6LDG8rDs7Vh.cjs} +1 -1
- package/browser/cjs/{EC2RA6Oa6v29QDW7.cjs → CZ-GKm79m2Dq1FIU.cjs} +1 -1
- package/browser/cjs/{DrbQ1mluJfQa8dTN.cjs → CfTRlNo_HTZZFEuN.cjs} +1 -1
- package/browser/cjs/{CeZnW6p71usfXr0J.cjs → CpNtJM9WpyI8y-5F.cjs} +1 -1
- package/browser/cjs/{y0ZuWWX8utA_EDbJ.cjs → CrrwQETWQp8gyGzt.cjs} +1 -1
- package/browser/cjs/{D50AwKqyBLJFX38-.cjs → CvAEOtGstfkPReLO.cjs} +1 -1
- package/browser/cjs/{vlcPHzK2WPzV2Xgt.cjs → DCowa-GHy4wrT3ny.cjs} +1 -1
- package/browser/cjs/{DJrlrUIL2pZ9GHaE.cjs → DDryg3xTKI0zp_Xv.cjs} +1 -1
- package/browser/cjs/{CQy7meDzNOoX_X46.cjs → DPj8_WpiUxzFwf_c.cjs} +1 -1
- package/browser/cjs/{BTlFwdrDwZameLdv.cjs → DVM3soyC-zbXgExo.cjs} +2 -2
- package/browser/cjs/{FTRIxvYSSu0U-rq4.cjs → DZZ_YfMpgcdWxp3p.cjs} +19 -19
- package/browser/cjs/{D-w9RCUQTT6LzhPr.cjs → Dg0yGkSIwxOYsqXc.cjs} +1 -1
- package/browser/cjs/{ClYuPNQkQpHGHZ_T.cjs → DmWwZQR-OyBY6PXa.cjs} +3 -3
- package/browser/cjs/{u2uBSZfQ54JOv_XF.cjs → JeoUZKrmKF_EKfRy.cjs} +1 -1
- package/browser/cjs/{BdX7STIJEyR-C9db.cjs → MCJHHxWHHzGpX5Pj.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{C9NesCgv9fmT5YZ4.cjs → mMPWgDE-9JGadTqF.cjs} +2 -2
- package/browser/cjs/{DtCuUh-dGD4DoBwf.cjs → rAtFUbahZLz4vcRK.cjs} +1 -1
- package/browser/cjs/{BrYJpuGpItHXDK3Q.cjs → u2A6V0lmQVlAKTB9.cjs} +1 -1
- package/browser/esm/{C0SYrcOWbCLV1hdr.mjs → 2iGVJwp0jZAb4sOo.mjs} +1 -1
- package/browser/esm/{FwCG0LN3sx8EbAhe.mjs → 3291c1rj8WenjX7h.mjs} +1 -1
- package/browser/esm/{BJnrxMZrwq-ELXq2.mjs → B-PN1LO9ZcekyJdD.mjs} +1 -1
- package/browser/esm/B-nJAhH1URIvWGvO.mjs +23109 -0
- package/{node/esm/DMSbBcnFJScK5nBu.mjs → browser/esm/B8_kh_q2PdM2s_22.mjs} +1 -1
- package/browser/esm/{DU0ewPZTDuyBByJ3.mjs → B8aidKjp_wIBO8SO.mjs} +1 -1
- package/browser/esm/{BdagunFigip5lLzW.mjs → BJmHQ5a4p2-U7UCO.mjs} +1 -1
- package/browser/esm/{Cy0d-pe4dHU9heyA.mjs → BQRt1YPdeVgJZLSD.mjs} +1 -1
- package/browser/esm/{ERFk7D1uArSqgAJy.mjs → BYNlf3D1JaCJT1Sm.mjs} +1 -1
- package/browser/esm/{DOBXCzRAmW5W3KmK.mjs → BfEcDIr0wlZYaVPt.mjs} +2 -2
- package/{node/esm/C15khDGhbvZW63CB.mjs → browser/esm/Bkxeex4nj_DniWxU.mjs} +1 -1
- package/{node/esm/ByqDeR4kFnbAnomd.mjs → browser/esm/ByzU5ZM-u2TxFUSV.mjs} +1 -1
- package/browser/esm/{C4-W_la16cA9EfP9.mjs → C4r37lDbEtNPTabo.mjs} +1 -1
- package/browser/esm/{BXeztFPb2KTw_Gwy.mjs → C6f9mZ_skWpYgtc1.mjs} +2 -2
- package/{node/esm/CchlWF0WIdpJ2ihz.mjs → browser/esm/CHVFSjWE79XfNsBY.mjs} +1 -1
- package/{node/esm/BLDUG5EtdEhw7UJ2.mjs → browser/esm/CdU8MYA3WzuNRY66.mjs} +1 -1
- package/browser/esm/{esqLrTm9jcVUtgzE.mjs → Cgl74-uOFxAcBYKC.mjs} +1 -1
- package/browser/esm/{qhxUd1U4-_uAr19o.mjs → D-yMpq564ZJynZm3.mjs} +3 -3
- package/browser/esm/{B37U-Nmjy_Ic6Bwd.mjs → D2i5gEJCwxxsj-ux.mjs} +1 -1
- package/{node/esm/Dexzv9NZGHABnlaC.mjs → browser/esm/DKgDWEkiu_qFCNma.mjs} +1 -1
- package/browser/esm/{Bb_Ijj8onxi_-JZG.mjs → DWyMAP1M0WvcP0Me.mjs} +1 -1
- package/browser/esm/{0S-AytvdRrcMKEfy.mjs → DXDuPqnIlaDg9Bsg.mjs} +1 -1
- package/browser/esm/{DQzF7RVKc8ppyxAD.mjs → DdYl5U0Hb2weaCX1.mjs} +1 -1
- package/browser/esm/{DR1divTfq_TFCCXR.mjs → HS-RJV_pVb3hMRGf.mjs} +1 -1
- package/{node/esm/CFa1MRnHqQ9liVjH.mjs → browser/esm/SzvXJcSKqCKp7MW7.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/{node/esm/CXFmdl5K8RuBS3df.mjs → browser/esm/mHgiqt2KqSX-_6UB.mjs} +1 -1
- package/{node/esm/Cc3AJ1qo_oG7_L0E.mjs → browser/esm/wYkvd6ZmjX2kqgxt.mjs} +1 -1
- package/node/esm/{FwCG0LN3sx8EbAhe.mjs → 3291c1rj8WenjX7h.mjs} +1 -1
- package/node/esm/{BJnrxMZrwq-ELXq2.mjs → B-PN1LO9ZcekyJdD.mjs} +1 -1
- package/{browser/esm/DMSbBcnFJScK5nBu.mjs → node/esm/B8_kh_q2PdM2s_22.mjs} +1 -1
- package/node/esm/{ERFk7D1uArSqgAJy.mjs → BYNlf3D1JaCJT1Sm.mjs} +1 -1
- package/{browser/esm/C15khDGhbvZW63CB.mjs → node/esm/Bkxeex4nj_DniWxU.mjs} +1 -1
- package/node/esm/{7LDUCFFEjGMjdIeB.mjs → BrZW_9j5VY1Ogh6W.mjs} +1 -1
- package/{browser/esm/ByqDeR4kFnbAnomd.mjs → node/esm/ByzU5ZM-u2TxFUSV.mjs} +1 -1
- package/node/esm/{BrV22-toqLYb5LkH.mjs → C3XutY3HQDbKs9_F.mjs} +1 -1
- package/{browser/esm/CchlWF0WIdpJ2ihz.mjs → node/esm/CHVFSjWE79XfNsBY.mjs} +1 -1
- package/{browser/esm/BLDUG5EtdEhw7UJ2.mjs → node/esm/CdU8MYA3WzuNRY66.mjs} +1 -1
- package/node/esm/{esqLrTm9jcVUtgzE.mjs → Cgl74-uOFxAcBYKC.mjs} +1 -1
- package/node/esm/{B7P-zw_wk4ERYAwf.mjs → CubvDf2FFABZy6aD.mjs} +1 -1
- package/{browser/esm/Dexzv9NZGHABnlaC.mjs → node/esm/DKgDWEkiu_qFCNma.mjs} +1 -1
- package/node/esm/{Bb_Ijj8onxi_-JZG.mjs → DWyMAP1M0WvcP0Me.mjs} +1 -1
- package/node/esm/{0S-AytvdRrcMKEfy.mjs → DXDuPqnIlaDg9Bsg.mjs} +1 -1
- package/node/esm/{KoFoApRQ-x4voQin.mjs → DhMkzgP5ZUGPbWt4.mjs} +1 -1
- package/node/esm/{lQwFvDr-SsCqhuIe.mjs → DpUupiDfq1Dyr_tQ.mjs} +1 -1
- package/node/esm/{DN_xpGsi7kf6YOuH.mjs → ECGQXemQN_h2Fa_I.mjs} +2 -2
- package/node/esm/{DR1divTfq_TFCCXR.mjs → HS-RJV_pVb3hMRGf.mjs} +1 -1
- package/{browser/esm/CFa1MRnHqQ9liVjH.mjs → node/esm/SzvXJcSKqCKp7MW7.mjs} +1 -1
- package/node/esm/{CEAukeJpSqsizA-i.mjs → TLURS9OWFDzxkOsy.mjs} +1 -1
- package/node/esm/index.mjs +898 -908
- package/{browser/esm/CXFmdl5K8RuBS3df.mjs → node/esm/mHgiqt2KqSX-_6UB.mjs} +1 -1
- package/node/esm/{ByYblFpwbl25hU7o.mjs → qFyAHaYnpXLqwfOQ.mjs} +1 -1
- package/{browser/esm/Cc3AJ1qo_oG7_L0E.mjs → node/esm/wYkvd6ZmjX2kqgxt.mjs} +1 -1
- package/node/esm/{C6PjmXgRjFnuGT5_.mjs → xwFWHagDYZrBek5N.mjs} +1 -1
- package/package.json +4 -4
- package/browser/esm/Dt3Cgmgc9CXA0z7y.mjs +0 -23120
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.9
|
|
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 M = (t2, e2) => {
|
|
|
18
18
|
e2.get(r2) !== t3 && n2.set(r2, t3);
|
|
19
19
|
}), n2;
|
|
20
20
|
};
|
|
21
|
-
let
|
|
22
|
-
class
|
|
21
|
+
let N = false;
|
|
22
|
+
class T {
|
|
23
23
|
constructor(t2) {
|
|
24
24
|
this._record = t2;
|
|
25
25
|
}
|
|
@@ -44,15 +44,15 @@ class N {
|
|
|
44
44
|
}
|
|
45
45
|
class k {
|
|
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 ?? N, 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 T(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
|
+
N = t2;
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
getLog(t2, e2 = 100) {
|
|
@@ -132,7 +132,7 @@ class k {
|
|
|
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 T(n3) };
|
|
136
136
|
this._pending = r3, this._notify("onCommitStart", r3.commit), l2 = new O(this, r3, e3?.states, t2, a2);
|
|
137
137
|
} else {
|
|
138
138
|
l2 = n2[n2.length - 1].beginTransaction(t2, a2);
|
|
@@ -358,7 +358,7 @@ class D extends F {
|
|
|
358
358
|
}), this._parent._removeChild(this), this._closed = true, this._onClose?.(this, true, null), this._parent ?? this;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
class
|
|
361
|
+
class L extends s {
|
|
362
362
|
constructor(t2, e2 = 50) {
|
|
363
363
|
super(e2), this._transactions = t2;
|
|
364
364
|
const n2 = this;
|
|
@@ -375,9 +375,9 @@ class B extends s {
|
|
|
375
375
|
this._removeLister();
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
const
|
|
378
|
+
const B = () => {
|
|
379
379
|
try {
|
|
380
|
-
return "0.6.
|
|
380
|
+
return "0.6.9";
|
|
381
381
|
} catch (t2) {
|
|
382
382
|
return "";
|
|
383
383
|
}
|
|
@@ -387,8 +387,8 @@ const L = () => {
|
|
|
387
387
|
} catch (t2) {
|
|
388
388
|
return "";
|
|
389
389
|
}
|
|
390
|
-
}, getBuildVersion:
|
|
391
|
-
https://www.sheetxl.com ${
|
|
390
|
+
}, getBuildVersion: B }, Symbol.toStringTag, { value: "Module" })), z = "\n███████╗██╗ ██╗███████╗███████╗████████╗ ██╗ ██╗██╗\n██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝ ╚██╗██╔╝██║\n███████╗███████║█████╗ █████╗ ██║ ╚███╔╝ ██║\n╚════██║██╔══██║██╔══╝ ██╔══╝ ██║ ██╔██╗ ██║\n███████║██║ ██║███████╗███████╗ ██║ ██╔╝ ██╗███████╗\n╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝", W = `
|
|
391
|
+
https://www.sheetxl.com ${B()}`, H = "#1976d2", V = "#FFA726", $ = 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 L = () => {
|
|
|
412
412
|
"chalk"
|
|
413
413
|
)).default;
|
|
414
414
|
t3.level = 2;
|
|
415
|
-
const e2 = t3.hex(
|
|
416
|
-
return console.log(e2(z) + n2(
|
|
415
|
+
const e2 = t3.hex(H), n2 = t3.hex(V);
|
|
416
|
+
return console.log(e2(z) + n2(W));
|
|
417
417
|
} catch (t3) {
|
|
418
|
-
return console.log(z + "\n" +
|
|
418
|
+
return console.log(z + "\n" + W + "\n");
|
|
419
419
|
}
|
|
420
420
|
}, printDetails: async (t2, e2 = false, n2 = false, r2 = false) => {
|
|
421
421
|
let o2;
|
|
@@ -425,7 +425,7 @@ const L = () => {
|
|
|
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(H), l2 = s2.hex(V), 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 = `Licensee: ${t2.licensee() ?? "Invalid License"}
|
|
430
430
|
`, o2 += `Expires: ${t2.expiration()?.toLocaleDateString() ?? "Never"}`, t2.domains() && t2.domains().length > 0 && (o2 += `
|
|
431
431
|
Domains: ${t2.domains().join(", ")}`), t2.cpuCount() > 0 && (o2 += `
|
|
@@ -457,191 +457,159 @@ KeyFrom: '${t2.keyFrom()}'`, console.log(l2(o2))), Promise.resolve();
|
|
|
457
457
|
return r2.join("");
|
|
458
458
|
})(t2, n2 - e2), G = (t2) => "object" == typeof window ? window.atob(t2) : Buffer.from(t2, "base64").toString("ascii");
|
|
459
459
|
function U(t2, e2, n2, r2, o2) {
|
|
460
|
-
return
|
|
460
|
+
return lt(o2 - 990, n2);
|
|
461
461
|
}
|
|
462
462
|
function J(t2, e2, n2, r2, o2) {
|
|
463
|
-
return
|
|
463
|
+
return lt(o2 - -281, r2);
|
|
464
464
|
}
|
|
465
|
-
function q(t2, e2) {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
return decodeURIComponent(n4);
|
|
477
|
-
})(t3), r3 = 0; r3 < 256; r3++) o3[r3] = r3;
|
|
478
|
-
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;
|
|
479
|
-
r3 = 0, s3 = 0;
|
|
480
|
-
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]);
|
|
481
|
-
return i3;
|
|
482
|
-
};
|
|
483
|
-
q.oBbnxU = e4, t2 = arguments, q.dilydG = true;
|
|
484
|
-
}
|
|
485
|
-
const s2 = e3 + n2[0], i2 = t2[s2];
|
|
486
|
-
return i2 ? o2 = i2 : (void 0 === q.JGudRM && (q.JGudRM = true), o2 = q.oBbnxU(o2, r2), t2[s2] = o2), o2;
|
|
487
|
-
}, q(t2, e2);
|
|
465
|
+
function q(t2, e2, n2, r2, o2) {
|
|
466
|
+
return lt(t2 - 94, e2);
|
|
467
|
+
}
|
|
468
|
+
function K() {
|
|
469
|
+
const t2 = ["WOmCW6ddV0i2EJBcISkH", "a8k6W5Cxs8kwnJVdV8k4jSo/B8oAsIVcMLbk", "rCkEvrfOCG", "qZJdGmosWO3cOW", "F8kwvXf0FW", "WQ4MW7JcLMdcNx8mj8kOWOu", "l8kUzmo/W5SsWQ3cP2SBeGvS", "FmkcsbD0", "utNdV8kTWQFdJSo3WPSb", "yYhdU2VdImon", "W6q9W7v7W4StmWO", "nmk0B8kfWOmdW4W", "urddRSkZWQhdNSo5WRa7", "W6vDW7NdISk7dSkbymo3xr7dICklwaddHb7dPG", "W73cG8osb8knW7XpWPFcO8kuW5vH", "W6lcVZO5W4pcTmozWPL9", "m8kGW7bG", "WRafW7hdS0iXxrZcGCk2rSob", "vcVcG8kenmkMWO5d", "W6D6y1z6WPtcGuG", "tSknW7NdMmkrW7ipWPP6wX9vWPxcRSo7WOjGCmkVcW", "DSoXmCkUWQTb", "FvzKpthcGa8", "m3dcOsOgW6FcUxmUW6jjWO09rgztiudcLSoGW6tcQCk/W7BdLa", "W7yMmSkKW7ZcTMqBD8oIbt4cW7zIW4DrlCkK", "WOi0WOOjxMaDW4jDWOG", "WPmWWPi4xLik", "W6RcK8ovlq", "W6ZcG2/cM3/dPW", "kmoAe082mSoZuZ3dJSkofG", "WRPVj3/dO0DZi3b2WPmS", "W63cI3RcK3RcQYrSCSoYW5FdVWhcQq", "ehtcPsmjW6m", "FmkaWPjWWRFcSZb1W5b1WPpdQgOI", "WRKQW6ZdJa", "dmo1WR7dI8k2la", "mvJcJJ5Xz8oA", "ANZdSSoLnmo3za", "W7X/WQtcJJ3dKJPFcCk5WOfpaJS", "jSkGW6itsCkmnW", "W4HwW7VdISk+c8kwemoGtaddLmkCxq", "F8kaWPjtWQVcTI9bW6z9WONdUq", "raqbW7hcVHRdHCkMeq/dLmoqEq", "iK/cGYC", "W6pdT3NcRmoMb3FdOKGQ", "WPSAuSkt", "k8k2W4attmkjieVdQmkPomoIEmoB", "W7eHW75LW7ujiG", "k1BcHq", "W4tcHHRdNCoWW6yPy8k5jG1Mfa", "WOqHW6ldMwdcJg9jlSkPWPvqiqurAYCvW7pdIG", "tZNdRgFdKSobW4xdRSonW4PPWQGcxSogW47cNSoaW4G", "CCoTa8kQWO5mW7e", "tZtdVu7dJ8oAW4ZdN8osW4zbWQGv", "WOqNwwRdMmkCkrW", "AsRdQSkkWQVdKW", "Dmo7o8kSWPzn", "owemWRqMW7PYWQCtda/dJG", "cCkMW6nLWRDLvG/dGmk2W6ddTSoY", "W7f6fmkngCoEW4CKW5dcOa", "nmorWR7cJSokWQ4QW7XErW5Q", "vX0qW73cVH3dPmoJcWhdICkCFmkif0/dKG80WQtdVhWxDvZcHrTspG", "W5ddGwRcU8oNah3dTNi", "W6JdU27cJCoTahpdGeeG", "egTyWPmRW6n3WRe2grldHmoA", "W6xcI2dcLwFcRW", "WPS0jmoqudKwmHrU", "ANZdQSoRpmo7", "WQD9AmoGWQpdRKOPE8o3gqO", "W6ddVhdcRmoRaa", "WOibv8kAyCkjnG", "f2OoWPC/W7P6W6mBbbJdJSoAohDTWRFcJmoCWPvsWOJdJYdcK0RdSW", "W4HwW7VdISk+c8kw", "BXS/W7FcSW/dRCkMiq/dICozwCkDcu/dMeG", "W455W7eAW4z7WRa", "W7z8hmks", "ESoyjMXedCk6W4NcPttcU2u", "WO04jSohvd4Ona51", "FCkluZPZB8ouuHZdJSkocq", "ySknW7NdR8kCW6K", "W6BdRvtcPSoSeq", "WPGBqmkjECktbvJcSay", "E8kcC1VdOG", "hwpcUqabW6NcOa", "W7eSkSkYW7/cTxePBmovaGudW5e", "ps9nW63cQt5k", "r8kvWPr4WRdcQWfeW4XYWPJdRG", "WP9MWQNdRmoEWPpcIa", "ASkCtHzYqSoDqJNdHSkwhW", "W6q+yapcUrnJk1K", "tGylWPFdJq", "W6/cNgVcL2NcOG", "tqqoWPddJq3cLq7dQ8ouW6O", "B8oHWQe9W6GJyqpdT8kVW67dQq", "WROHWOWKvwa", "W4HwWOZdMZRdPSoFksX1iCoRcSoo", "a3H4WRRdICk/zmkEWO0Ai1C", "F8o7iCkpWODrW7tcIguA", "WPmRWRvkWP4LWRbpjtVcKbG", "AIddS8kGWQFdHmoL", "nCo3WQNdH8kIpq", "BmkgW7BdV8kpW7qg", "zmkxCvxdONe", "WRS6jSozvsWlnbvZWQzYW7/dR8oTwSo3aG", "kSkpWPxcUdRcNmkoW7VdRu0", "WRFdRNpdSvyjmSkaWQlcH3BcMSkn", "W7j8gSksbmoEW7u", "WOKot8kvAmksaKpcRqa8W74Y", "W49YW6eiW7H+WRDo", "WP0JkCotssOSkrvVW6m", "hHvNW4xcLbvJW4hcVedcMmk4AtbZWQWxW44I", "vImOW6NcImoMFSkX", "WQ4/W6hdU2pcKguD", "WPtdK1/cQ8k8WRH9qCknmsX8fmkLWQq", "W51+b8kwa8ozW5qOW5dcQryacG", "WOGqW7FdNKKXFHtcG8kR", "W73cG8osb8knW7XpWPFcSCkqW5n3W4TMhW", "dCoIWRxdI8k+kdnnW5BcNbKKWRhcIa", "D8kwW7ZdKq", "AZFdRSkOWRZdKW", "ChVdHCo2lmoTv1/dPGe", "EmkpsrzJDmoOrdhdGCkocsW", "WPKuW6/dR0KdAq", "WPOPm8oussemdqH0W6HkW7pdQa", "WOSXDNhdICkl", "W4iIwq", "kebkWQVdPf7cSCkPiGhdJCoBFG", "WQ93eYxdPmo2W5ZdH8oQ", "xxTvnaZcUYBdLmoaWPqReWy", "W5BcNNZcM33cSXnzDmo6W5ddPXC", "a8kqWPFcSxtcO8kcW5pdRvP9n2xcHN14", "xxzehrhcOc8", "WQLKW7/cQmohW4e", "WOmqW63dVvGT", "vrTtW7tcUq3dPmkTfGVcNComEmkgdu/dKKO2", "WQyBW7xdU0aSE13cI8k3tSoseX4", "W75FW4DPDxu/", "WRldQMNdNuysdSkwWP3cJhdcJmkawSoY", "WPuJWPeGuMCz", "wIpcJSkpp8kNWRTuW7HeW5JcO8kE", "W4zmW5jrDxW7pwu", "WR0DsgZdGSkAiZddTa", "qCkCAvpdUNbOewqPbSoRW5ldIfbn", "xsK/W4RcICoMFCk7WPyTkf3cKYxdPG", "WQZdHLNcGmkNWQvtrmk1oJT9", "p8kLW5r6WRH9", "jmoOW7VdOSkLkIjgW6VcLL0kWP3cLq", "zgRdKmolcW", "W7vQW6qxW4zZWQjsaW", "WObSW6hcU8okW6G4W40ZW40", "WQddUwXLWOFdQCk+W544ha", "BSkqW4hdLSkzW74", "yhebeWdcOq", "sZFcKmkrkmkWWPHvW4fyW4xcQmko", "WR06W6FdKa", "A8oQnmk/WPDw", "W5C+rSoDWRu", "Dmo3nSkUWOXwW7dcQMWq", "WQtdRh5hWOhdS8khW4mPea", "gCkwWOtcTdRcMW", "WQXYW5/cOmoxW4W", "WRldQMNdI1OwbW", "W7nfW67dH8k+a8kenmo3", "jSkYCCknWP5n", "sgXehr/cVq", "CXSaW6ZcVG/dRmkM", "W5XbW6BdHCkJjCkelSo8qbW", "W7n6zLDSWOm", "W6yJzctcPa4", "gCoIWQ/dPCkPma", "WOzNWOpdT8owWOW", "sIxdJCoqWONcVZ7cS3iN", "WRiRoXe7W5BdLfhcJmo+WPiCyW", "WP8DsmkAyq", "WP0dW4JcJglcVCkDtXvLomoLiSoN", "WOaPWP0Os2avW4rFWOG", "bSoIWRxdICk4iq", "ktHwW6hcQsfC", "md3cLCkZB8kRqxddMHZdRCo5", "zNFdH8oHkmoQAvNdVbO", "kmk2W4aWumkmp3/dNSkHiSoZ", "WQFdTh1Y", "lIVdSCkKWR3cISo4WOaqWQOBW6xdLY0uWQi", "WRONWP8HuNaDW59u", "W6e6EIpcSWvwefrkWP4WW44", "bNpcSY4", "W6rRaCkCbCkfWRDJWOS", "W7vFW51AAha", "sCkmWQ/dNCksW7ykW5n4qvXdWOVcUmo9W4TTFmkZqq", "WO45nmoD", "lgelWPK/W6v7", "zSopiwveiq", "AWeaW7a", "W6mYW79MW7KifXdcIg3cQYTQ", "eITdW6ZcQsLoW6RcLq", "WR/dQgnWWOFdSG", "Cw5teqVcRahdM8oDWP8fba", "WRtdQgnYWOhdU8kDW5icg8oZq0FcKq", "B2ddH8oLnmo2B0xdPG", "WOWIWRS7wNG"];
|
|
470
|
+
return (K = function() {
|
|
471
|
+
return t2;
|
|
472
|
+
})();
|
|
473
|
+
}
|
|
474
|
+
function X(t2, e2, n2, r2, o2) {
|
|
475
|
+
return lt(t2 - 630, n2);
|
|
488
476
|
}
|
|
489
477
|
!(function() {
|
|
490
|
-
const t2 =
|
|
491
|
-
function
|
|
492
|
-
return
|
|
493
|
-
}
|
|
494
|
-
function p2(t3, e3, n3, r3, o3) {
|
|
495
|
-
return q(n3 - 47, r3);
|
|
496
|
-
}
|
|
497
|
-
function _2(t3, e3, n3, r3, o3) {
|
|
498
|
-
return q(r3 - -234, t3);
|
|
478
|
+
const t2 = 558, e2 = "JOSp", n2 = "q7Y4", r2 = 550, o2 = "izdb", s2 = 415, i2 = 412, a2 = "63Wf", l2 = "W!il", c2 = 735, h2 = 179;
|
|
479
|
+
function d2(t3, e3, n3, r3, o3) {
|
|
480
|
+
return lt(o3 - 497, t3);
|
|
499
481
|
}
|
|
500
|
-
function
|
|
501
|
-
return
|
|
482
|
+
function u2(t3, e3, n3, r3, o3) {
|
|
483
|
+
return lt(e3 - h2, r3);
|
|
502
484
|
}
|
|
503
|
-
function
|
|
504
|
-
return
|
|
485
|
+
function g2(t3, e3, n3, r3, o3) {
|
|
486
|
+
return lt(t3 - -682, n3);
|
|
505
487
|
}
|
|
488
|
+
const m2 = K();
|
|
506
489
|
for (; ; ) try {
|
|
507
|
-
if (
|
|
490
|
+
if (899759 === parseInt(g2(-t2, 0, e2)) / 1 + parseInt(g2(-388, 0, n2)) / 2 + -parseInt(g2(-r2, 0, "xSTM")) / 3 + -parseInt(u2(0, 341, 0, o2)) / 4 + parseInt(u2(0, s2, 0, "cYbA")) / 5 + parseInt(g2(-i2, 0, a2)) / 6 + -parseInt(d2(l2, 0, 0, 0, c2)) / 7) break;
|
|
508
491
|
m2.push(m2.shift());
|
|
509
492
|
} catch (t3) {
|
|
510
493
|
m2.push(m2.shift());
|
|
511
494
|
}
|
|
512
495
|
})();
|
|
513
|
-
const
|
|
514
|
-
const t2 = "
|
|
515
|
-
|
|
516
|
-
return q(o2 - -483, n3);
|
|
517
|
-
}
|
|
518
|
-
if (typeof window === q(243 - -9, "@4z!")) return window[n2(0, 0, "ena]", 0, -292)][n2(0, 0, t2, 0, -280)];
|
|
496
|
+
const Y = () => {
|
|
497
|
+
const t2 = "PEC]", e2 = "I7^T", n2 = "w!)L";
|
|
498
|
+
if (typeof window === lt(-833 - -966, "3JT#")) return window[i2(-256, -316, -145, -235, t2)][i2(-231, -146, -154, -181, e2)];
|
|
519
499
|
var r2, s2;
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
const t2 = 117, e2 = "gnXS";
|
|
523
|
-
function n2(t3, e3, n3, r2, o2) {
|
|
524
|
-
return q(t3 - -76, e3);
|
|
525
|
-
}
|
|
526
|
-
return K()[n2(t2, "t1sP")](q(-566 - -893, e2)) || K() === n2(269, "L$LG");
|
|
527
|
-
}, Y = (t2, e2, n2, r2) => {
|
|
528
|
-
const o2 = "%HH#", s2 = 292;
|
|
529
|
-
function i2(t3, e3, n3, r3, o3) {
|
|
530
|
-
return q(r3 - -323, t3);
|
|
500
|
+
function i2(t3, e3, n3, r3, o2) {
|
|
501
|
+
return lt(r3 - -410, o2);
|
|
531
502
|
}
|
|
532
|
-
|
|
533
|
-
|
|
503
|
+
return o[r2 = n2, s2 = 628, lt(s2 - 417, r2)]();
|
|
504
|
+
}, Q = () => {
|
|
505
|
+
const t2 = "w!)L", e2 = "y3ZP";
|
|
506
|
+
function n2(t3, e3, n3, r2, o2) {
|
|
507
|
+
return lt(o2 - -376, n3);
|
|
534
508
|
}
|
|
509
|
+
return Y()[n2(0, 0, "Te5m", 0, -102)](n2(0, 0, t2, 0, -114)) || Y() === lt(-63 - -342, e2);
|
|
510
|
+
}, Z = (t2, e2, n2, r2) => {
|
|
511
|
+
const o2 = 675, s2 = "uTpd", i2 = 825, a2 = 261;
|
|
535
512
|
function l2(t3, e3, n3, r3, o3) {
|
|
536
|
-
return
|
|
513
|
+
return lt(e3 - 617, o3);
|
|
537
514
|
}
|
|
538
515
|
function c2(t3, e3, n3, r3, o3) {
|
|
539
|
-
return
|
|
516
|
+
return lt(e3 - 370, n3);
|
|
517
|
+
}
|
|
518
|
+
function h2(t3, e3, n3, r3, o3) {
|
|
519
|
+
return lt(o3 - -620, n3);
|
|
540
520
|
}
|
|
541
|
-
return { licensee: () => t2[c2(0,
|
|
542
|
-
|
|
521
|
+
return { licensee: () => t2[c2(0, 652, "jDnd")], expiration: () => new Date(t2[c2(0, 553, "[*gH")]), domains: () => t2[c2(0, 645, "M3Ng")] ?? [], developerCount: () => t2[c2(0, 518, "xSTM")] ?? 1, cpuCount: () => t2[h2(0, 0, "dtQ1", 0, -444)] ?? 0, type: () => {
|
|
522
|
+
return t2[e3 = 506, n3 = "y3ZP", lt(e3 - a2, n3)] ?? h2(0, 0, "cJ&V", 0, -429);
|
|
523
|
+
var e3, n3;
|
|
524
|
+
}, exceptions: () => e2, isValidFor: (t3) => {
|
|
525
|
+
return !(e2?.[n3 = -731, r3 = s2, l2(0, n3 - -1599, 0, 0, r3)] > 0);
|
|
543
526
|
var n3, r3;
|
|
544
|
-
return true;
|
|
545
527
|
}, isValid: () => true, isEval: () => false, features: () => {
|
|
546
|
-
return Object[
|
|
528
|
+
return Object[l2(0, 913, 0, 0, "764x")](t2[e3 = "cYbA", n3 = 1108, lt(n3 - i2, e3)] ?? {});
|
|
547
529
|
var e3, n3;
|
|
548
|
-
}, keyFrom: () => n2, getBuildVersion: P[l2(
|
|
549
|
-
},
|
|
550
|
-
const e2 = "
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
if (X() || o[m2(761, e2, 771)]()) {
|
|
559
|
-
const t3 = P[c2(0, 0, "1P@C", -250)](), e3 = new Date(t3), o2 = /* @__PURE__ */ new Date(), a3 = 864e5;
|
|
560
|
-
Math[h2(0, "1P@C", 972)]((o2[h2(0, n2, 887)]() - e3[c2(0, 0, r2, -336)]()) / a3) >= 120 && (d2 = [(u2 = s2, g2 = i2, q(g2 - 703, u2))]);
|
|
561
|
-
} else d2 = [];
|
|
562
|
-
var u2, g2;
|
|
530
|
+
}, keyFrom: () => n2, getBuildVersion: P[l2(0, 794, 0, 0, "bPVE")], getBuildDate: P[c2(0, o2, "5U5W")] };
|
|
531
|
+
}, tt = (t2) => {
|
|
532
|
+
const e2 = "0E[U", n2 = 1055, r2 = "[Ujk", s2 = 1048, i2 = "gcXo", a2 = "xpjg", l2 = 978, c2 = "DVJ6", h2 = 777;
|
|
533
|
+
let d2 = o[u2(990, 1016, "P(b0")];
|
|
534
|
+
function u2(t3, e3, n3, r3, o2) {
|
|
535
|
+
return lt(t3 - h2, n3);
|
|
536
|
+
}
|
|
537
|
+
function g2(t3, e3, n3, r3, o2) {
|
|
538
|
+
return lt(e3 - -988, t3);
|
|
539
|
+
}
|
|
563
540
|
function m2(t3, e3, n3, r3, o2) {
|
|
564
|
-
return
|
|
541
|
+
return lt(o2 - -272, r3);
|
|
565
542
|
}
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
}
|
|
570
|
-
};
|
|
571
|
-
|
|
572
|
-
return q(n2 - -484, t2);
|
|
573
|
-
}
|
|
574
|
-
const tt = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
|
|
575
|
-
function et(t2, e2, n2, r2, o2) {
|
|
576
|
-
return q(e2 - -380, r2);
|
|
577
|
-
}
|
|
543
|
+
if (Q() || o[m2(0, 0, 0, e2, -84)]()) {
|
|
544
|
+
const t3 = P[u2(n2, 0, r2)](), e3 = new Date(t3), o2 = /* @__PURE__ */ new Date(), l3 = 864e5;
|
|
545
|
+
Math[u2(s2, 0, i2)]((o2[m2(0, 0, 0, "uTpd", -72)]() - e3[m2(0, 0, 0, a2, -47)]()) / l3) >= 120 && (d2 = [g2("764x", -701)]);
|
|
546
|
+
} else d2 = [];
|
|
547
|
+
return { licensee: () => lt(-569 - -736, "d!13"), expiration: () => null, domains: () => [Y()], developerCount: () => 1, cpuCount: () => 0, type: () => g2("(bNz", -708), isEval: () => true, exceptions: () => d2, isValidFor: () => 0 === d2[m2(0, 0, 0, "!#HU", -106)], isValid: () => false, features: () => Object[m2(0, 0, 0, "pJ5H", -44)]({}), keyFrom: () => t2, getBuildVersion: P[u2(l2, 0, "xpjg")], getBuildDate: P[g2(c2, -744)] };
|
|
548
|
+
}, et = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
|
|
578
549
|
let nt = false, rt = false;
|
|
579
|
-
const ot =
|
|
580
|
-
function st() {
|
|
581
|
-
|
|
582
|
-
return (st = function() {
|
|
583
|
-
return t2;
|
|
584
|
-
})();
|
|
550
|
+
const ot = X(899, 0, "dtQ1")[X(776, 0, "!#HU")]("")[q(325, "cYbA")]((t2, e2) => e2 + t2, "");
|
|
551
|
+
function st(t2, e2, n2, r2, o2) {
|
|
552
|
+
return lt(t2 - -499, o2);
|
|
585
553
|
}
|
|
586
554
|
class it {
|
|
587
555
|
constructor() {
|
|
588
556
|
function t2(t3, e2, n2, r2, o2) {
|
|
589
|
-
return J(
|
|
557
|
+
return J(0, 0, 0, n2, o2 - -228);
|
|
590
558
|
}
|
|
591
|
-
this[t2(0, 0, "
|
|
559
|
+
this[t2(0, 0, "3JT#", 0, -383)][t2(0, 0, "tWL#", 0, -209)] = null;
|
|
592
560
|
}
|
|
593
|
-
async [
|
|
594
|
-
const n2 =
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
const t3 = await this[O2("XcJ4", m2, 1019)]();
|
|
598
|
-
if (t3[F2(-117, -134, -20, f2)]() && !t3[O2("Tv&M", 862, p2)]()) return t3;
|
|
561
|
+
async [J(0, 0, 0, "pJ5H", -89)](t2, e2 = false) {
|
|
562
|
+
const n2 = "M3Ng", r2 = "d!13", s2 = 44, i2 = 95, a2 = 34, l2 = 246, c2 = "[*gH", h2 = "764x", d2 = 86, u2 = "izdb", g2 = 27, m2 = "w!)L", f2 = "o3fR", p2 = 172, _2 = "uTpd", S2 = 165, w2 = 438;
|
|
563
|
+
function y2(t3, e3, n3, r3, o2) {
|
|
564
|
+
return st(o2 - w2, 0, 0, 0, r3);
|
|
599
565
|
}
|
|
600
|
-
|
|
601
|
-
|
|
566
|
+
if (!t2 || t2[E2("9@3k", -189, -255, -188)](E2(n2, -107, -157, -118)) || t2[b2(-789, r2)](y2(0, 0, 0, "1o$7", 231)) || t2[x2(s2, "y3ZP", 19, i2)](x2(-25, "9@3k", 42, a2)) || t2[x2(-20, "w!)L", -11, -104)](y2(0, 0, 0, "tWL#", l2))) return nt = true, await this[E2(c2, -62, -65, -24)](true);
|
|
567
|
+
if (nt = false, !e2 && et[E2("63Wf", -113, -99, -45)]) {
|
|
568
|
+
const t3 = await this[y2(0, 0, 0, "$jmY", 197)]();
|
|
569
|
+
if (t3[C2(-364, -295, -327, "DVJ6")]() && !t3[E2("(bNz", -125, -143, -124)]()) return t3;
|
|
602
570
|
}
|
|
603
|
-
function
|
|
604
|
-
return
|
|
571
|
+
function E2(t3, e3, n3, r3, o2) {
|
|
572
|
+
return st(e3 - S2, 0, 0, 0, t3);
|
|
605
573
|
}
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
if (!D2[O2(v2, 0, 853)]()) throw await this[L2(-434, -402, -492, -405, "au#)")](true), new Error(B2(1147, "ZWc5", 1156, x2, I2));
|
|
609
|
-
function B2(t3, e3, n3, r3, o2) {
|
|
610
|
-
return J(o2 - N2, 0, 0, e3);
|
|
574
|
+
function C2(t3, e3, n3, r3, o2) {
|
|
575
|
+
return J(0, 0, 0, r3, t3 - -386);
|
|
611
576
|
}
|
|
612
|
-
function
|
|
613
|
-
return
|
|
577
|
+
function b2(t3, e3, n3, r3, o2) {
|
|
578
|
+
return q(t3 - -1024, e3);
|
|
614
579
|
}
|
|
615
|
-
|
|
616
|
-
|
|
580
|
+
et[E2("!9#N", -70)] = t2, et[y2(0, 0, 0, h2, d2)] = x2(-78, "9W3k", -78, -49), et[x2(-148, u2, -57, g2)] = null, et[y2(0, 0, 0, "$jmY", 88)] = null;
|
|
581
|
+
const v2 = await this[b2(-704, "QLoF")]();
|
|
582
|
+
function x2(t3, e3, n3, r3, o2) {
|
|
583
|
+
return st(n3 - 304, 0, 0, 0, e3);
|
|
617
584
|
}
|
|
618
|
-
if (
|
|
619
|
-
|
|
620
|
-
|
|
585
|
+
if (!v2[b2(-629, m2)]()) throw await this[y2(0, 0, 0, f2, 103)](true), new Error(b2(-646, "JOSp"));
|
|
586
|
+
if (o[b2(-799, "w!)L")]()) {
|
|
587
|
+
await $[y2(0, 0, 0, f2, p2)](t2, e2);
|
|
588
|
+
if (!(await this[y2(0, 0, 0, _2, 143)]())[x2(0, "63Wf", -79)]()) throw await this[C2(-394, 0, 0, "9W3k")](true), new Error(x2(0, "dtQ1", -81));
|
|
621
589
|
}
|
|
622
|
-
return
|
|
590
|
+
return v2;
|
|
623
591
|
}
|
|
624
|
-
async [
|
|
625
|
-
const e2 = "
|
|
626
|
-
if (
|
|
627
|
-
if (!this[
|
|
628
|
-
function
|
|
629
|
-
return
|
|
630
|
-
}
|
|
631
|
-
function Mt2(t3, e3, n3, r3, o2) {
|
|
632
|
-
return Z(r3, 0, e3 - xt2);
|
|
633
|
-
}
|
|
634
|
-
let Tt2 = null;
|
|
635
|
-
function Nt2(t3, e3, n3, r3, o2) {
|
|
636
|
-
return J(o2 - 1057, 0, 0, t3);
|
|
592
|
+
async [J(0, 0, 0, "izdb", -69)](t2 = false) {
|
|
593
|
+
const e2 = "phH7", n2 = "0E[U", r2 = 140, s2 = 206, i2 = 290, a2 = 225, l2 = "!9#N", c2 = "%U@3", h2 = 120, d2 = 39, u2 = "JOSp", g2 = "VLCo", m2 = "pJ5H", f2 = 396, p2 = "9W3k", _2 = "JOSp", S2 = 165, w2 = 108, y2 = "63Wf", E2 = 772, C2 = 829, b2 = 693, v2 = 97, x2 = 335, I2 = 235, R2 = 52, A2 = 245, M2 = 291, N2 = 191, T2 = 461, k2 = "[Ujk", F2 = 522, O2 = "$jmY", D2 = 484, L2 = "W!il", B2 = 48, z2 = "o3fR", W2 = 399, H2 = "JrNf", V2 = 417, q2 = "QLoF", K2 = "JrNf", it2 = 58, at2 = "d!13", ct2 = 90;
|
|
594
|
+
if (et[wt2("xok@", -840, -741, -820)]) return et[wt2(e2, -821, -814, -795)];
|
|
595
|
+
if (!this[St2(n2, 229, 91, r2)][St2("%U@3", s2, i2, a2)] && (this[wt2("[*gH", -715, -751, -813)][ht2(l2, -5, 27)] = new Error("FV")), et[_t2(c2, -147, -65, -87, -153)]) return et[ht2("Te5m", h2, d2)];
|
|
596
|
+
function ht2(t3, e3, n3, r3, o2) {
|
|
597
|
+
return J(0, 0, 0, t3, e3 - ct2);
|
|
637
598
|
}
|
|
638
|
-
|
|
639
|
-
|
|
599
|
+
let dt2 = null;
|
|
600
|
+
et[ht2("xok@", -40)] = new Promise((t3) => {
|
|
601
|
+
dt2 = t3;
|
|
640
602
|
});
|
|
641
|
-
let
|
|
642
|
-
|
|
603
|
+
let ut2, gt2 = null;
|
|
604
|
+
function mt2(t3, e3, n3, r3, o2) {
|
|
605
|
+
return st(e3 - 780, 0, 0, 0, o2);
|
|
606
|
+
}
|
|
607
|
+
const ft2 = async (t3, e3) => {
|
|
608
|
+
function n3(t4, e4, n4, r3, o2) {
|
|
609
|
+
return mt2(0, n4 - -353, 0, 0, r3);
|
|
610
|
+
}
|
|
643
611
|
try {
|
|
644
|
-
const
|
|
612
|
+
const r3 = ((t4) => {
|
|
645
613
|
let e4 = t4;
|
|
646
614
|
const n4 = e4[e4.length - 1], r4 = n4.charCodeAt(0) - 52;
|
|
647
615
|
if (e4 = e4.substring(0, e4.length - 1), e4 = e4.split("").reverse().join(""), e4 = G(e4), e4 = e4.trim(), e4[e4.length - 1] !== n4) throw new Error();
|
|
@@ -653,186 +621,208 @@ class it {
|
|
|
653
621
|
} catch (t5) {
|
|
654
622
|
throw new Error("Invalid license key.");
|
|
655
623
|
}
|
|
656
|
-
})(e3),
|
|
657
|
-
const e4 =
|
|
658
|
-
function
|
|
659
|
-
return
|
|
624
|
+
})(e3), s3 = await (async (t4) => {
|
|
625
|
+
const e4 = 106, n4 = 31, r4 = "q7Y4", s4 = "gcXo", i4 = "764x", a3 = 1231, l3 = 183, c3 = 1164, h3 = 139, d3 = "DVJ6", u3 = 11, g3 = "P(b0", m3 = "d!13", f3 = "I7^T", p3 = "y3ZP", _3 = "dtQ1", S3 = "P(b0", w3 = 1178, y3 = "!9#N", E3 = t4[I3(37, -20, 90, "[*gH")];
|
|
626
|
+
function C3(t5, e5, n5, r5, o2) {
|
|
627
|
+
return lt(o2 - -442, n5);
|
|
660
628
|
}
|
|
661
|
-
const
|
|
662
|
-
function
|
|
663
|
-
return
|
|
629
|
+
const b3 = t4[I3(e4, 193, n4, r4)] ? new Date(t4[x3(s4, -518, -484, -488)]) : null;
|
|
630
|
+
function v3(t5, e5, n5, r5, o2) {
|
|
631
|
+
return lt(r5 - 982, n5);
|
|
664
632
|
}
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
t5
|
|
633
|
+
function x3(t5, e5, n5, r5, o2) {
|
|
634
|
+
return lt(r5 - -756, t5);
|
|
635
|
+
}
|
|
636
|
+
function I3(t5, e5, n5, r5, o2) {
|
|
637
|
+
return lt(t5 - -126, r5);
|
|
638
|
+
}
|
|
639
|
+
const R3 = t4[C3(0, 0, "63Wf", 0, -157)], A3 = [];
|
|
640
|
+
if (b3 ? isNaN(b3) ? A3[I3(l3, 0, 0, "9@3k")](x3("QLoF", 0, 0, -479)) : b3 < /* @__PURE__ */ new Date() && A3[v3(0, 0, "JOSp", c3)](I3(h3, 0, 0, d3) + b3[I3(u3, 0, 0, "I7^T")]()) : A3[v3(0, 0, i4, a3)](I3(2, 0, 0, "q9s6")), o[x3(g3, 0, 0, -532)]()) {
|
|
641
|
+
if (!R3) return A3[x3(m3, 0, 0, -503)](M3(-549, -579, -486, -404, f3)), A3;
|
|
642
|
+
const t5 = await $[C3(0, 0, p3, 0, -181)]();
|
|
643
|
+
t5 !== R3 && A3[x3(_3, 0, 0, -538)](M3(-432, -466, -405, -371, "!#HU") + R3 + M3(-432, -295, -365, -448, "[*gH") + t5);
|
|
670
644
|
} else {
|
|
671
|
-
if (
|
|
672
|
-
if (
|
|
645
|
+
if (Q()) return A3;
|
|
646
|
+
if (E3 && 0 !== E3[I3(71, 0, 0, "!9#N")]) {
|
|
673
647
|
let t5 = false;
|
|
674
|
-
const e5 =
|
|
675
|
-
for (let n5 = 0; !t5 && n5 <
|
|
676
|
-
!t5 &&
|
|
677
|
-
} else
|
|
678
|
-
}
|
|
679
|
-
var G2, U2;
|
|
680
|
-
function J2(t5, e5, n5, r5, o2) {
|
|
681
|
-
return q(n5 - B3, r5);
|
|
648
|
+
const e5 = Y();
|
|
649
|
+
for (let n5 = 0; !t5 && n5 < E3[v3(0, 0, S3, w3)]; n5++) t5 = e5[M3(-414, -493, -439, -386, "izdb")](E3[n5]);
|
|
650
|
+
!t5 && A3[v3(0, 0, "I7^T", 1238)](x3(y3, 0, 0, -557));
|
|
651
|
+
} else A3[I3(165, 0, 0, "[Ujk")](C3(0, 0, "JOSp", 0, -190));
|
|
682
652
|
}
|
|
683
|
-
function
|
|
684
|
-
return
|
|
653
|
+
function M3(t5, e5, n5, r5, o2) {
|
|
654
|
+
return lt(n5 - -611, o2);
|
|
685
655
|
}
|
|
686
|
-
return
|
|
687
|
-
})(
|
|
688
|
-
return
|
|
656
|
+
return A3;
|
|
657
|
+
})(r3), i3 = Z(r3, s3, t3);
|
|
658
|
+
return i3[n3(0, 0, it2, at2)]()[n3(0, 0, 187, "y3ZP")] > 0 && (ut2 = i3), i3;
|
|
689
659
|
} catch (e4) {
|
|
690
|
-
|
|
691
|
-
const e5 = "
|
|
692
|
-
function
|
|
693
|
-
return
|
|
660
|
+
ut2 = ((t4) => {
|
|
661
|
+
const e5 = "q9s6", n4 = 73;
|
|
662
|
+
function r3(t5, e6, n5, r4, o2) {
|
|
663
|
+
return lt(o2 - -48, n5);
|
|
694
664
|
}
|
|
695
|
-
return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () =>
|
|
696
|
-
return [(
|
|
697
|
-
var
|
|
698
|
-
}, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[
|
|
699
|
-
var r4, o2, s4, i4;
|
|
665
|
+
return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => r3(0, 0, "9@3k", 0, 86), exceptions: () => {
|
|
666
|
+
return [(e6 = "q9s6", n5 = -31, r3(0, 0, e6, 0, n5 - -118) + t4 + "'")];
|
|
667
|
+
var e6, n5;
|
|
668
|
+
}, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[r3(0, 0, "1o$7", 0, 107)]({}), keyFrom: () => t4, getBuildVersion: P[r3(0, 0, "PEC]", 0, 159)], getBuildDate: P[r3(0, 0, e5, 0, n4)] };
|
|
700
669
|
})(t3);
|
|
701
670
|
}
|
|
702
|
-
var n3, r3, s3, i3, a3, l3;
|
|
703
671
|
};
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
}
|
|
712
|
-
if (nt && (Bt2 = true, Ft2 = Q(Nt2("tiPz", 0, 0, 0, _2))), !Ft2) {
|
|
713
|
-
if (o[At2(S2, w2, "BXop", 0, y2)]()) {
|
|
714
|
-
if (!Ft2) {
|
|
715
|
-
const t3 = process[Nt2(E2, 0, 0, 0, 1300)], e3 = t3[Nt2(C2, 0, 0, 0, b2)] || t3[Lt2(v2, x2)] || t3[At2(I2, 270, R2, 0, A2)] || t3[At2(M2, T2, "9t!%", 0, N2)];
|
|
716
|
-
e3 && (Ft2 = await Ot2(Mt2(0, k2, 0, F2), e3));
|
|
672
|
+
et[ht2("3JT#", 117)] && (gt2 = await ft2(et[ht2("JOSp", -26)], et[wt2("JrNf", -823, -867, -825)]));
|
|
673
|
+
let pt2 = false;
|
|
674
|
+
if (nt && (pt2 = true, gt2 = tt(wt2("JrNf", -797, -896, -735))), !gt2) {
|
|
675
|
+
if (o[_t2(u2, -157, -232, -71, -140)]()) {
|
|
676
|
+
if (!gt2) {
|
|
677
|
+
const t3 = process[_t2(g2, -265, -240, -129, -166)], e3 = t3[mt2(0, 455, 0, 0, "$jmY")] || t3[_t2("pJ5H", -127, -21, -136, -69)] || t3[_t2(m2, -196, -103, -134, -160)] || t3[mt2(0, f2, 0, 0, p2)];
|
|
678
|
+
e3 && (gt2 = await ft2(_t2(_2, -230, -263, -214, -212), e3));
|
|
717
679
|
}
|
|
718
|
-
if (!
|
|
719
|
-
const t3 = await
|
|
720
|
-
t3 && (
|
|
680
|
+
if (!gt2) {
|
|
681
|
+
const t3 = await $[ht2("[*gH", -72)]();
|
|
682
|
+
t3 && (gt2 = await ft2(St2("d!13", 86, S2, w2), t3));
|
|
721
683
|
}
|
|
722
|
-
!
|
|
684
|
+
!gt2 && (pt2 = true);
|
|
723
685
|
} else {
|
|
724
|
-
if (!
|
|
686
|
+
if (!gt2) try {
|
|
725
687
|
const t3 = await fetch("./" + ot);
|
|
726
|
-
let
|
|
727
|
-
if (200 === t3[
|
|
728
|
-
const
|
|
729
|
-
for (let t4 = 0; !
|
|
730
|
-
const
|
|
731
|
-
|
|
688
|
+
let n3 = null;
|
|
689
|
+
if (200 === t3[wt2(y2, -E2, -868, -C2, -813)]) {
|
|
690
|
+
const r3 = (await t3[wt2("dtQ1", -b2, -755, -622, -594)]())[St2("H4zy", v2, 98, 89, 140)]("\n");
|
|
691
|
+
for (let t4 = 0; !n3 && t4 < r3[_t2(y2, -x2, -322, -261, -I2)]; t4++) {
|
|
692
|
+
const o2 = r3[t4][ht2("phH7", -R2)]();
|
|
693
|
+
o2[_t2(e2, -192, -A2, -M2, -232)]("#") || 0 === o2[mt2(0, 536, 0, 0, "mhF6")] || (n3 = o2);
|
|
732
694
|
}
|
|
733
695
|
}
|
|
734
|
-
if (
|
|
735
|
-
const t4 =
|
|
736
|
-
|
|
696
|
+
if (n3) {
|
|
697
|
+
const t4 = _t2(e2, -124, -36, -N2, -105) + ot + "')";
|
|
698
|
+
gt2 = await ft2(t4, n3);
|
|
737
699
|
}
|
|
738
700
|
} catch (t3) {
|
|
739
701
|
}
|
|
740
|
-
!
|
|
702
|
+
!gt2 && Q() && (pt2 = true);
|
|
741
703
|
}
|
|
742
704
|
}
|
|
743
|
-
|
|
744
|
-
|
|
705
|
+
function _t2(t3, e3, n3, r3, o2) {
|
|
706
|
+
return X(o2 - -985, 0, t3);
|
|
707
|
+
}
|
|
708
|
+
function St2(t3, e3, n3, r3, o2) {
|
|
709
|
+
return U(0, 0, t3, 0, r3 - -1055);
|
|
710
|
+
}
|
|
711
|
+
function wt2(t3, e3, n3, r3, o2) {
|
|
712
|
+
return U(0, 0, t3, 0, e3 - -1981);
|
|
713
|
+
}
|
|
714
|
+
if (!gt2 && pt2 && (gt2 = tt(wt2("o3fR", -781, -851, -878))), !gt2 && ut2 && (gt2 = ut2), !gt2 && (gt2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [St2("I7^T", 0, 0, 133)], isValidFor: (t3) => false, isValid: () => false, features: () => Object[wt2("o3fR", -692, -645, -668)]({}), keyFrom: () => wt2("pJ5H", -775, -749, -804), getBuildVersion: P[mt2(0, T2, 0, 0, k2)], getBuildDate: P[wt2("gcXo", -849, -783, -819)] }), et[mt2(0, F2, 0, 0, O2)] = gt2, dt2(gt2), t2) {
|
|
715
|
+
if (!(et[mt2(0, D2, 0, 0, "jDnd")] && et[wt2(L2, -832)]) && (pt2 || gt2[ht2("%U@3", B2)]()[_t2(z2, 0, 0, 0, -115)] > 0 || gt2[mt2(0, W2, 0, 0, n2)]()?.pb)) {
|
|
745
716
|
if (rt) return void setTimeout(() => {
|
|
746
717
|
var t3, e3;
|
|
747
|
-
this[t3 =
|
|
718
|
+
this[t3 = 148, e3 = K2, wt2(e3, t3 - 916)](false, false);
|
|
748
719
|
}, 8e3);
|
|
749
|
-
await this[
|
|
720
|
+
await this[mt2(0, 504, 0, 0, H2)](false, false);
|
|
750
721
|
}
|
|
751
722
|
}
|
|
752
|
-
return
|
|
753
|
-
}
|
|
754
|
-
async [et(0, -49, 0, "@4z!")](t2) {
|
|
755
|
-
const e2 = 28, n2 = "L$LG", r2 = 665, o2 = "n^hx", s2 = 654, i2 = 432, a2 = 28;
|
|
756
|
-
tt[c2(-752, "33ga", -787)] = true;
|
|
757
|
-
const l2 = await this[c2(-590, ")n!5", -628)]();
|
|
758
|
-
function c2(t3, e3, n3, r3, o3) {
|
|
759
|
-
return et(0, t3 - -576, 0, e3);
|
|
760
|
-
}
|
|
761
|
-
var h2, d2, u2, g2, m2, f2;
|
|
762
|
-
function p2(t3, e3, n3, r3, o3) {
|
|
763
|
-
return J(r3 - i2, 0, 0, t3);
|
|
764
|
-
}
|
|
765
|
-
return await V[h2 = e2, d2 = "(C#g", J(h2 - -235, 0, 0, d2)](t2), !tt[c2(-598, n2)] && (l2[m2 = -590, f2 = "vC$4", et(0, m2 - -465, 0, f2)]() || l2[p2("xKPZ", 652, 752, r2)]()[u2 = o2, g2 = 273, J(g2 - a2, 0, 0, u2)] > 0) && await this[p2("XcJ4", 442, 460, 532)](t2), Promise[p2("ena]", 0, 0, s2)]();
|
|
723
|
+
return et[mt2(0, V2, 0, 0, q2)];
|
|
766
724
|
}
|
|
767
|
-
async [
|
|
768
|
-
const
|
|
769
|
-
function
|
|
770
|
-
return
|
|
725
|
+
async [U(0, 0, "5U5W", 0, 1140)](t2) {
|
|
726
|
+
const e2 = 732, n2 = "H4zy", r2 = 761, o2 = 279, s2 = "1o$7", i2 = "%U@3", a2 = 1096, l2 = "DLAx", c2 = 734, h2 = 106, d2 = 1115, u2 = "q9s6", g2 = 483, m2 = 767;
|
|
727
|
+
function f2(t3, e3, n3, r3, o3) {
|
|
728
|
+
return J(0, 0, 0, t3, n3 - 886);
|
|
771
729
|
}
|
|
772
|
-
|
|
773
|
-
|
|
730
|
+
et[f2("q7Y4", 894, 853)] = true;
|
|
731
|
+
const p2 = await this[f2("3JT#", 0, e2)]();
|
|
732
|
+
function _2(t3, e3, n3, r3, o3) {
|
|
733
|
+
return q(n3 - m2, r3);
|
|
774
734
|
}
|
|
775
|
-
function
|
|
776
|
-
return
|
|
735
|
+
function S2(t3, e3, n3, r3, o3) {
|
|
736
|
+
return st(e3 - g2, 0, 0, 0, o3);
|
|
777
737
|
}
|
|
778
|
-
|
|
779
|
-
const f2 = await this[u2(r2, 0, "$kIA")]();
|
|
780
|
-
var p2, _2, S2, w2, y2;
|
|
781
|
-
tt[g2(392, "!OE^")] || !(f2[w2 = -440, y2 = o2, U(0, w2 - -333, y2)]() || f2[m2(913, 895, "ena]")]()[m2(823, s2, "9t!%")] > 0) ? await V[g2(i2, "b&K0")](f2, t2, e2, n2) : await this[p2 = "(C#g", _2 = 577, S2 = 548, at(p2 - 302, _2 - a2, S2 - l2, p2)](t2);
|
|
738
|
+
return await $[f2(n2, 0, r2)](t2), !et[S2(0, o2, 0, 0, s2)] && (p2[f2(i2, 0, 868)]() || p2[_2(0, 0, a2, l2)]()[f2(s2, 0, c2)] > 0) && await this[S2(0, h2, 0, 0, "(bNz")](t2), Promise[_2(0, 0, d2, u2)]();
|
|
782
739
|
}
|
|
783
|
-
async [
|
|
784
|
-
const
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
return J(t3 - -431, 0, 0, o2);
|
|
788
|
-
}
|
|
789
|
-
tt[m2(-278, -267, -198, "rD&w")] = true, tt[i2(-279, -351, -183, -286, "33ga")] = true, await this[l2(-105, r2)](t2);
|
|
790
|
-
const a2 = o[l2(-113, "rD&w")]();
|
|
791
|
-
function l2(t3, e3, n3, r3, o2) {
|
|
792
|
-
return U(0, t3 - -46, e3);
|
|
740
|
+
async [J(0, 0, 0, "1o$7", -88)](t2 = false, e2 = false, n2 = false) {
|
|
741
|
+
const r2 = "!9#N", o2 = 862, s2 = 695, i2 = 1115, a2 = "w!)L", l2 = "DLAx", c2 = 1182, h2 = 1380;
|
|
742
|
+
function d2(t3, e3, n3, r3, o3) {
|
|
743
|
+
return st(o3 - h2, 0, 0, 0, e3);
|
|
793
744
|
}
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
function m2(t3, e3, n3, r3, o2) {
|
|
797
|
-
return U(0, e3 - -115, r3);
|
|
745
|
+
function u2(t3, e3, n3, r3, o3) {
|
|
746
|
+
return st(t3 - 1009, 0, 0, 0, n3);
|
|
798
747
|
}
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
748
|
+
function g2(t3, e3, n3, r3, o3) {
|
|
749
|
+
return st(r3 - c2, 0, 0, 0, e3);
|
|
750
|
+
}
|
|
751
|
+
et[g2(988, "DVJ6", 1003, 993)] = true;
|
|
752
|
+
const m2 = await this[g2(0, r2, 0, o2)]();
|
|
753
|
+
var f2, p2;
|
|
754
|
+
et[u2(s2, 0, "gcXo")] || !(m2[d2(0, "xok@", 0, 0, i2)]() || m2[g2(0, a2, 0, 926)]()[d2(0, l2, 0, 0, 1148)] > 0) ? await $[f2 = "mhF6", p2 = -832, J(0, 0, 0, f2, p2 - -691)](m2, t2, e2, n2) : await this[u2(718, 0, "bPVE")](t2);
|
|
755
|
+
}
|
|
756
|
+
async [U(0, 0, "gcXo", 0, 1256)](t2, e2) {
|
|
757
|
+
const n2 = "d!13", r2 = "xpjg", s2 = 751, i2 = 708, a2 = "tWL#", l2 = "xSTM", c2 = 470, h2 = 990;
|
|
758
|
+
if (!t2 && (et[f2(-368, -451, -547, "Te5m")] || et[f2(-453, -521, -561, n2)])) return;
|
|
759
|
+
var d2, u2, g2, m2;
|
|
760
|
+
function f2(t3, e3, n3, r3, o2) {
|
|
761
|
+
return U(0, 0, r3, 0, e3 - -1698);
|
|
762
|
+
}
|
|
763
|
+
et[g2 = r2, m2 = -355, q(m2 - -618, g2)] = true, et[f2(-376, -404, -324, "QLoF")] = true, await this[d2 = s2, u2 = "pJ5H", st(d2 - h2, 0, 0, 0, u2)](t2);
|
|
764
|
+
const p2 = o[S2 = i2, w2 = "3JT#", q(S2 - c2, w2)](), _2 = t2 || p2 ? console[f2(0, -396, 0, a2)] : o[f2(0, -420, 0, l2)];
|
|
765
|
+
var S2, w2;
|
|
766
|
+
p2 && _2(""), await this[f2(0, -402, 0, "I7^T")](t2, e2), _2("");
|
|
767
|
+
}
|
|
768
|
+
[J(0, 0, 0, "%U@3", 8)]() {
|
|
769
|
+
return this[t2 = 441, e2 = "%U@3", st(t2 - 693, 0, 0, 0, e2)]();
|
|
803
770
|
var t2, e2;
|
|
804
771
|
}
|
|
805
|
-
[
|
|
806
|
-
return this[e2 =
|
|
772
|
+
[q(314, "VLCo")](t2) {
|
|
773
|
+
return this[e2 = 375, n2 = "%U@3", st(e2 - 716, 0, 0, 0, n2)](true, t2);
|
|
807
774
|
var e2, n2;
|
|
808
775
|
}
|
|
809
|
-
[
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
776
|
+
[X(852, 0, "y3ZP")]() {
|
|
777
|
+
function t2(t3, e2, n2, r2, o2) {
|
|
778
|
+
return J(0, 0, 0, n2, r2 - -116);
|
|
779
|
+
}
|
|
780
|
+
return et[t2(0, 0, "9@3k", -226)] || et[t2(0, 0, "5U5W", -100)];
|
|
813
781
|
}
|
|
814
|
-
[
|
|
782
|
+
[U(0, 0, "jDnd", 0, 1207)](t2) {
|
|
815
783
|
rt = true;
|
|
816
784
|
}
|
|
817
|
-
async [
|
|
818
|
-
return this[t2 =
|
|
785
|
+
async [q(324, "QLoF")]() {
|
|
786
|
+
return this[t2 = -450, e2 = "!9#N", U(0, 0, e2, 0, t2 - -1721)](true);
|
|
819
787
|
var t2, e2;
|
|
820
788
|
}
|
|
821
|
-
async [
|
|
822
|
-
const n2 =
|
|
823
|
-
var a2, l2, c2, h2
|
|
824
|
-
return await this[
|
|
789
|
+
async [J(0, 0, 0, "gcXo", -129)](t2, e2) {
|
|
790
|
+
const n2 = "63Wf", r2 = 396, o2 = "phH7", s2 = 516, i2 = await this[a2 = n2, l2 = r2, J(0, 0, 0, a2, l2 - s2)]();
|
|
791
|
+
var a2, l2, c2, h2;
|
|
792
|
+
return await this[c2 = o2, h2 = -205, X(h2 - -1013, 0, c2)](true, t2, e2), i2;
|
|
825
793
|
}
|
|
826
|
-
async [
|
|
827
|
-
const t2 =
|
|
828
|
-
var
|
|
829
|
-
return await
|
|
794
|
+
async [J(0, 0, 0, "q7Y4", -128)]() {
|
|
795
|
+
const t2 = "o3fR";
|
|
796
|
+
var e2, n2;
|
|
797
|
+
return await $[e2 = 696, n2 = t2, st(e2 - 1014, 0, 0, 0, n2)]();
|
|
830
798
|
}
|
|
831
799
|
}
|
|
832
|
-
|
|
833
|
-
|
|
800
|
+
const at = new it();
|
|
801
|
+
function lt(t2, e2) {
|
|
802
|
+
const n2 = K();
|
|
803
|
+
return lt = function(e3, r2) {
|
|
804
|
+
let o2 = n2[e3 -= 113];
|
|
805
|
+
if (void 0 === lt.MLgGwf) {
|
|
806
|
+
const e4 = function(t3, e5) {
|
|
807
|
+
let n3, r3, o3 = [], s3 = 0, i3 = "";
|
|
808
|
+
for (t3 = (function(t4) {
|
|
809
|
+
let e6 = "", n4 = "";
|
|
810
|
+
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);
|
|
811
|
+
for (let t5 = 0, r4 = e6.length; t5 < r4; t5++) n4 += "%" + ("00" + e6.charCodeAt(t5).toString(16)).slice(-2);
|
|
812
|
+
return decodeURIComponent(n4);
|
|
813
|
+
})(t3), r3 = 0; r3 < 256; r3++) o3[r3] = r3;
|
|
814
|
+
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;
|
|
815
|
+
r3 = 0, s3 = 0;
|
|
816
|
+
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]);
|
|
817
|
+
return i3;
|
|
818
|
+
};
|
|
819
|
+
lt.oSoowG = e4, t2 = arguments, lt.MLgGwf = true;
|
|
820
|
+
}
|
|
821
|
+
const s2 = e3 + n2[0], i2 = t2[s2];
|
|
822
|
+
return i2 ? o2 = i2 : (void 0 === lt.Wcuuxr && (lt.Wcuuxr = true), o2 = lt.oSoowG(o2, r2), t2[s2] = o2), o2;
|
|
823
|
+
}, lt(t2, e2);
|
|
834
824
|
}
|
|
835
|
-
const
|
|
825
|
+
const ct = (t2, e2) => {
|
|
836
826
|
const n2 = [];
|
|
837
827
|
for (let r2 = 0; r2 < t2.length; r2++) {
|
|
838
828
|
const o2 = t2[r2];
|
|
@@ -1619,7 +1609,7 @@ var Mt;
|
|
|
1619
1609
|
}, Mt.simpleComparator = function(t2, e2) {
|
|
1620
1610
|
return t2 > e2 ? 1 : t2 < e2 ? -1 : 0;
|
|
1621
1611
|
};
|
|
1622
|
-
const
|
|
1612
|
+
const Nt = [-1, null], Tt = { done: false, value: [-1, null] };
|
|
1623
1613
|
var kt;
|
|
1624
1614
|
((t2) => {
|
|
1625
1615
|
t2.Builder = class {
|
|
@@ -1697,7 +1687,7 @@ var kt;
|
|
|
1697
1687
|
if (r3) {
|
|
1698
1688
|
let t4;
|
|
1699
1689
|
const i3 = r3.minor;
|
|
1700
|
-
r3 && r3.minor === n2 ? (s2 = r3, o2 = s2.span) : t4 = i3 > n2 ? e3.getPairOrNextHigher(n2,
|
|
1690
|
+
r3 && r3.minor === n2 ? (s2 = r3, o2 = s2.span) : t4 = i3 > n2 ? e3.getPairOrNextHigher(n2, Nt) : e3.getPairOrNextLower(n2, Nt), t4 && (s2 = t4[1], t4[0] === n2 && (o2 = s2.span));
|
|
1701
1691
|
}
|
|
1702
1692
|
if (!o2) {
|
|
1703
1693
|
this._majorMin = Math.min(this._majorMin, t3), o2 = [n2, [[t3, []]]];
|
|
@@ -1713,7 +1703,7 @@ var kt;
|
|
|
1713
1703
|
return h2 + d2.length !== t3 && (d2 = [], h2 = t3, l2.push([h2, d2])), d2.push(r2), this._majorMax = Math.max(this._majorMax, t3), this._minorIndex = n2, this;
|
|
1714
1704
|
}
|
|
1715
1705
|
build() {
|
|
1716
|
-
const t3 = [], e3 = this._createList, n2 = this._minors.entries(void 0,
|
|
1706
|
+
const t3 = [], e3 = this._createList, n2 = this._minors.entries(void 0, Tt);
|
|
1717
1707
|
let r2 = n2.next();
|
|
1718
1708
|
for (; !r2.done; ) {
|
|
1719
1709
|
const o2 = r2.value[1].span;
|
|
@@ -1737,8 +1727,8 @@ function Ot(t2) {
|
|
|
1737
1727
|
return t2.formats[n2] || t2.formats[t2.defaultWidth];
|
|
1738
1728
|
};
|
|
1739
1729
|
}
|
|
1740
|
-
const Dt = { date: Ot({ formats: { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" }, defaultWidth: "full" }), time: Ot({ 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: Ot({ formats: { full: "{{date}} 'at' {{time}}", long: "{{date}} 'at' {{time}}", medium: "{{date}}, {{time}}", short: "{{date}}, {{time}}" }, defaultWidth: "full" }) },
|
|
1741
|
-
function
|
|
1730
|
+
const Dt = { date: Ot({ formats: { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" }, defaultWidth: "full" }), time: Ot({ 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: Ot({ formats: { full: "{{date}} 'at' {{time}}", long: "{{date}} 'at' {{time}}", medium: "{{date}}, {{time}}", short: "{{date}}, {{time}}" }, defaultWidth: "full" }) }, Lt = { lastWeek: "'last' eeee 'at' p", yesterday: "'yesterday at' p", today: "'today at' p", tomorrow: "'tomorrow at' p", nextWeek: "eeee 'at' p", other: "P" };
|
|
1731
|
+
function Bt(t2) {
|
|
1742
1732
|
return (e2, n2) => {
|
|
1743
1733
|
let r2;
|
|
1744
1734
|
if ("formatting" === (n2?.context ? String(n2.context) : "standalone") && t2.formattingValues) {
|
|
@@ -1768,11 +1758,11 @@ function Pt(t2) {
|
|
|
1768
1758
|
};
|
|
1769
1759
|
}
|
|
1770
1760
|
var zt;
|
|
1771
|
-
const
|
|
1761
|
+
const Wt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
1772
1762
|
let r2;
|
|
1773
1763
|
const o2 = Ft[t2];
|
|
1774
1764
|
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;
|
|
1775
|
-
}, formatLong: Dt, formatRelative: (t2, e2, n2, r2) =>
|
|
1765
|
+
}, formatLong: Dt, formatRelative: (t2, e2, n2, r2) => Lt[t2], localize: { ordinalNumber: (t2, e2) => {
|
|
1776
1766
|
const n2 = Number(t2), r2 = n2 % 100;
|
|
1777
1767
|
if (r2 > 20 || r2 < 10) switch (r2 % 10) {
|
|
1778
1768
|
case 1:
|
|
@@ -1783,14 +1773,14 @@ const Ht = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1783
1773
|
return n2 + "rd";
|
|
1784
1774
|
}
|
|
1785
1775
|
return n2 + "th";
|
|
1786
|
-
}, era:
|
|
1776
|
+
}, era: Bt({ values: { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] }, defaultWidth: "wide" }), quarter: Bt({ 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: Bt({ 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: Bt({ 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: Bt({ 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: (zt = { matchPattern: /^(\d+)(th|st|nd|rd)?/i, parsePattern: /\d+/i, valueCallback: (t2) => parseInt(t2, 10) }, (t2, e2 = {}) => {
|
|
1787
1777
|
const n2 = t2.match(zt.matchPattern);
|
|
1788
1778
|
if (!n2) return null;
|
|
1789
1779
|
const r2 = n2[0], o2 = t2.match(zt.parsePattern);
|
|
1790
1780
|
if (!o2) return null;
|
|
1791
1781
|
let s2 = zt.valueCallback ? zt.valueCallback(o2[0]) : o2[0];
|
|
1792
1782
|
return s2 = e2.valueCallback ? e2.valueCallback(s2) : s2, { value: s2, rest: t2.slice(r2.length) };
|
|
1793
|
-
}), era: Pt({ 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: Pt({ 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: Pt({ 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: Pt({ 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: Pt({ 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 } },
|
|
1783
|
+
}), era: Pt({ 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: Pt({ 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: Pt({ 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: Pt({ 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: Pt({ 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 } }, Ht = (t2, e2) => {
|
|
1794
1784
|
switch (t2) {
|
|
1795
1785
|
case "P":
|
|
1796
1786
|
return e2.date({ width: "short" });
|
|
@@ -1801,7 +1791,7 @@ const Ht = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1801
1791
|
default:
|
|
1802
1792
|
return e2.date({ width: "full" });
|
|
1803
1793
|
}
|
|
1804
|
-
},
|
|
1794
|
+
}, Vt = (t2, e2) => {
|
|
1805
1795
|
switch (t2) {
|
|
1806
1796
|
case "p":
|
|
1807
1797
|
return e2.time({ width: "short" });
|
|
@@ -1812,9 +1802,9 @@ const Ht = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1812
1802
|
default:
|
|
1813
1803
|
return e2.time({ width: "full" });
|
|
1814
1804
|
}
|
|
1815
|
-
},
|
|
1805
|
+
}, $t = { p: Vt, P: (t2, e2) => {
|
|
1816
1806
|
const n2 = t2.match(/(P+)(p+)?/) || [], r2 = n2[1], o2 = n2[2];
|
|
1817
|
-
if (!o2) return
|
|
1807
|
+
if (!o2) return Ht(t2, e2);
|
|
1818
1808
|
let s2;
|
|
1819
1809
|
switch (r2) {
|
|
1820
1810
|
case "P":
|
|
@@ -1829,7 +1819,7 @@ const Ht = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1829
1819
|
default:
|
|
1830
1820
|
s2 = e2.dateTime({ width: "full" });
|
|
1831
1821
|
}
|
|
1832
|
-
return s2.replace("{{date}}",
|
|
1822
|
+
return s2.replace("{{date}}", Ht(r2, e2)).replace("{{time}}", Vt(o2, e2));
|
|
1833
1823
|
} }, jt = /^D+$/, Gt = /^Y+$/, Ut = ["D", "DD", "YY", "YYYY"];
|
|
1834
1824
|
function Jt(t2) {
|
|
1835
1825
|
return jt.test(t2);
|
|
@@ -2039,12 +2029,12 @@ const Se = { y: new class extends oe {
|
|
|
2039
2029
|
}
|
|
2040
2030
|
}() }, we = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ye = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ee = /^'([^]*?)'?$/, Ce = /''/g, be = /\S/, ve = /[a-zA-Z]/;
|
|
2041
2031
|
function xe(t2, e2, n2, r2) {
|
|
2042
|
-
const o2 = () => Yt(r2?.in || n2, NaN), s2 = Object.assign({}, Zt()), i2 = r2?.locale ?? s2.locale ??
|
|
2032
|
+
const o2 = () => Yt(r2?.in || n2, NaN), s2 = Object.assign({}, Zt()), i2 = r2?.locale ?? s2.locale ?? Wt, 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;
|
|
2043
2033
|
if (!e2) return t2 ? o2() : te(n2, r2?.in);
|
|
2044
2034
|
const c2 = { firstWeekContainsDate: a2, weekStartsOn: l2, locale: i2 }, h2 = [new re(r2?.in, n2)], d2 = e2.match(ye).map((t3) => {
|
|
2045
2035
|
const e3 = t3[0];
|
|
2046
|
-
if (e3 in
|
|
2047
|
-
return (0,
|
|
2036
|
+
if (e3 in $t) {
|
|
2037
|
+
return (0, $t[e3])(t3, i2.formatLong);
|
|
2048
2038
|
}
|
|
2049
2039
|
return t3;
|
|
2050
2040
|
}).join("").match(we), u2 = [];
|
|
@@ -2096,11 +2086,11 @@ function Me(t2, e2) {
|
|
|
2096
2086
|
for (var n2 = ""; n2.length < e2; ) n2 += t2;
|
|
2097
2087
|
return n2;
|
|
2098
2088
|
}
|
|
2099
|
-
function
|
|
2089
|
+
function Ne(t2) {
|
|
2100
2090
|
for (var e2 = "", n2 = t2.length - 1; n2 >= 0; ) e2 += t2.charAt(n2--);
|
|
2101
2091
|
return e2;
|
|
2102
2092
|
}
|
|
2103
|
-
function
|
|
2093
|
+
function Te(t2, e2) {
|
|
2104
2094
|
var n2 = "" + t2;
|
|
2105
2095
|
return n2.length >= e2 ? n2 : Me("0", e2 - n2.length) + n2;
|
|
2106
2096
|
}
|
|
@@ -2122,17 +2112,17 @@ function De(t2, e2) {
|
|
|
2122
2112
|
return n2.length >= e3 ? n2 : Me("0", e3 - n2.length) + n2;
|
|
2123
2113
|
})(Math.round(t2), e2);
|
|
2124
2114
|
}
|
|
2125
|
-
function
|
|
2115
|
+
function Le(t2, e2) {
|
|
2126
2116
|
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));
|
|
2127
2117
|
}
|
|
2128
|
-
var
|
|
2129
|
-
function
|
|
2118
|
+
var Be = [["Sun", "Sunday"], ["Mon", "Monday"], ["Tue", "Tuesday"], ["Wed", "Wednesday"], ["Thu", "Thursday"], ["Fri", "Friday"], ["Sat", "Saturday"]], Pe = [["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"]], ze = { 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"秒 "' }, We = { 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 }, He = { 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\\);_("$"* "-"??_);_(@_)' };
|
|
2119
|
+
function Ve(t2, e2, n2) {
|
|
2130
2120
|
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;
|
|
2131
2121
|
if (h2 > e2 && (c2 > e2 ? (h2 = l2, a2 = s2) : (h2 = c2, a2 = i2)), !n2) return [0, r2 * a2, h2];
|
|
2132
2122
|
var u2 = Math.floor(r2 * a2 / h2);
|
|
2133
2123
|
return [u2, r2 * a2 - u2 * h2, h2];
|
|
2134
2124
|
}
|
|
2135
|
-
function
|
|
2125
|
+
function $e(t2, e2, n2) {
|
|
2136
2126
|
if (t2 > 2958465 || t2 < 0) return null;
|
|
2137
2127
|
var r2 = 0 | t2, o2 = Math.floor(86400 * (t2 - r2)), s2 = 0, i2 = [], a2 = { D: r2, T: o2, u: 86400 * (t2 - r2) - o2, y: 0, m: 0, d: 0, H: 0, M: 0, S: 0, q: 0 };
|
|
2138
2128
|
if (Math.abs(a2.u) < 1e-6 && (a2.u = 0), e2 && e2.date1904 && (r2 += 1462), a2.u > 0.9999 && (a2.u = 0, 86400 === ++o2 && (a2.T = o2 = 0, ++r2, ++a2.D)), 60 === r2) i2 = n2 ? [1317, 10, 29] : [1900, 2, 29], s2 = 3;
|
|
@@ -2221,9 +2211,9 @@ function Ye(t2, e2, n2, r2) {
|
|
|
2221
2211
|
o2 = n2.d, c2 = e2.length;
|
|
2222
2212
|
break;
|
|
2223
2213
|
case 3:
|
|
2224
|
-
return
|
|
2214
|
+
return Be[n2.q][0];
|
|
2225
2215
|
default:
|
|
2226
|
-
return
|
|
2216
|
+
return Be[n2.q][1];
|
|
2227
2217
|
}
|
|
2228
2218
|
break;
|
|
2229
2219
|
case 104:
|
|
@@ -2258,7 +2248,7 @@ function Ye(t2, e2, n2, r2) {
|
|
|
2258
2248
|
break;
|
|
2259
2249
|
case 115:
|
|
2260
2250
|
if ("s" !== e2 && "ss" !== e2 && ".0" !== e2 && ".00" !== e2 && ".000" !== e2) throw new Error("bad second format: " + e2);
|
|
2261
|
-
return 0 !== n2.u || "s" !== e2 && "ss" !== e2 ? (a2 = r2 >= 2 ? 3 === r2 ? 1e3 : 100 : 1 === r2 ? 10 : 1, (i2 = Math.round(a2 * (n2.S + n2.u))) >= 60 * a2 && (i2 = 0), "s" === e2 ? 0 === i2 ? "0" : "" + i2 / a2 : (s2 =
|
|
2251
|
+
return 0 !== n2.u || "s" !== e2 && "ss" !== e2 ? (a2 = r2 >= 2 ? 3 === r2 ? 1e3 : 100 : 1 === r2 ? 10 : 1, (i2 = Math.round(a2 * (n2.S + n2.u))) >= 60 * a2 && (i2 = 0), "s" === e2 ? 0 === i2 ? "0" : "" + i2 / a2 : (s2 = Te(i2, 2 + r2), "ss" === e2 ? s2.substr(0, 2) : "." + s2.substr(2, e2.length - 1))) : Te(n2.S, e2.length);
|
|
2262
2252
|
case 90:
|
|
2263
2253
|
switch (e2) {
|
|
2264
2254
|
case "[h]":
|
|
@@ -2281,7 +2271,7 @@ function Ye(t2, e2, n2, r2) {
|
|
|
2281
2271
|
case 101:
|
|
2282
2272
|
o2 = l2, c2 = 1;
|
|
2283
2273
|
}
|
|
2284
|
-
return c2 > 0 ?
|
|
2274
|
+
return c2 > 0 ? Te(o2, c2) : "";
|
|
2285
2275
|
}
|
|
2286
2276
|
function Qe(t2) {
|
|
2287
2277
|
if (t2.length <= 3) return t2;
|
|
@@ -2363,7 +2353,7 @@ function hn(t2, e2, n2) {
|
|
|
2363
2353
|
if (e2.match(/^[#?]+$/)) return "0" === (o2 = De(n2, 0)) && (o2 = ""), o2.length > e2.length ? o2 : sn(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2364
2354
|
if (s2 = e2.match(en)) return (function(t3, e3, n3) {
|
|
2365
2355
|
var r3 = parseInt(t3[4], 10), o3 = Math.round(e3 * r3), s3 = Math.floor(o3 / r3), i3 = o3 - s3 * r3, a3 = r3;
|
|
2366
|
-
return n3 + (0 === s3 ? "" : "" + s3) + " " + (0 === i3 ? Me(" ", t3[1].length + 1 + t3[4].length) : ke(i3, t3[1].length) + t3[2] + "/" + t3[3] +
|
|
2356
|
+
return n3 + (0 === s3 ? "" : "" + s3) + " " + (0 === i3 ? Me(" ", t3[1].length + 1 + t3[4].length) : ke(i3, t3[1].length) + t3[2] + "/" + t3[3] + Te(a3, t3[4].length));
|
|
2367
2357
|
})(s2, l2, c2);
|
|
2368
2358
|
if (e2.match(/^#+0+$/)) return c2 + De(l2, e2.length - e2.indexOf("0"));
|
|
2369
2359
|
if (s2 = e2.match(nn)) return i2 = Math.trunc(an(n2, s2[2].length)), a2 = ln(Math.abs(i2 - n2), s2[2].length), a2 = (a2 = "" + ln(a2, (function(t3) {
|
|
@@ -2375,15 +2365,15 @@ function hn(t2, e2, n2) {
|
|
|
2375
2365
|
if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Qe(De(l2, 0));
|
|
2376
2366
|
if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + hn(t2, e2, -n2) : Qe("" + (Math.floor(n2) + (function(t3, e3) {
|
|
2377
2367
|
return e3 < ("" + Math.round((t3 - Math.floor(t3)) * Math.pow(10, e3))).length ? 1 : 0;
|
|
2378
|
-
})(n2, s2[1].length))) + "." +
|
|
2368
|
+
})(n2, s2[1].length))) + "." + Te(cn(n2, s2[1].length), s2[1].length);
|
|
2379
2369
|
if (s2 = e2.match(/^#,#*,#0/)) return hn(t2, e2.replace(/^#,#*,/, ""), n2);
|
|
2380
|
-
if (s2 = e2.match(/^([0#]+)(\\?-([0#]+))+$/)) return o2 =
|
|
2370
|
+
if (s2 = e2.match(/^([0#]+)(\\?-([0#]+))+$/)) return o2 = Ne(hn(t2, e2.replace(/[\\-]/g, ""), n2)), i2 = 0, Ne(Ne(e2.replace(/\\/g, "")).replace(/[0#]/g, function(t3) {
|
|
2381
2371
|
return i2 < o2.length ? o2.charAt(i2++) : "0" === t3 ? "0" : "";
|
|
2382
2372
|
}));
|
|
2383
2373
|
if (e2.match(on)) return "(" + (o2 = hn(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
|
|
2384
2374
|
var h2 = "";
|
|
2385
|
-
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 =
|
|
2386
|
-
if (s2 = e2.match(/[#0?] ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), a2 =
|
|
2375
|
+
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 = Ve(l2, Math.pow(10, i2) - 1, false), o2 = "" + c2, " " === (h2 = gn("n", s2[1], a2[1])).charAt(h2.length - 1) && (h2 = h2.substr(0, h2.length - 1) + "0"), o2 += h2 + s2[2] + "/" + s2[3], (h2 = Fe(a2[2], i2)).length < s2[4].length && (h2 = sn(s2[4].substr(s2[4].length - h2.length)) + h2), o2 += h2;
|
|
2376
|
+
if (s2 = e2.match(/[#0?] ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), a2 = Ve(l2, Math.pow(10, i2) - 1, true), c2 + hn(t2, e2.substring(0, s2.index + 1), a2[0]) + " " + (a2[1] ? ke(a2[1], i2) + s2[2] + "/" + s2[3] + Fe(a2[2], i2) : Me(" ", 2 * i2 + 1 + s2[2].length + s2[3].length));
|
|
2387
2377
|
if (s2 = e2.match(/^[#0?]+$/)) return o2 = De(n2, 0), e2.length <= o2.length ? o2 : sn(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2388
2378
|
if (s2 = e2.match(/^([#0?]+)\.([#0]+)$/)) {
|
|
2389
2379
|
o2 = "" + n2.toFixed(Math.min(s2[2].length, 10)).replace(/([^0])0+$/, "$1"), i2 = o2.indexOf(".");
|
|
@@ -2393,8 +2383,8 @@ function hn(t2, e2, n2) {
|
|
|
2393
2383
|
if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return i2 = cn(n2, s2[1].length), n2 < 0 ? "-" + hn(t2, e2, -n2) : Qe((function(t3) {
|
|
2394
2384
|
return t3 < 2147483647 && t3 > -2147483648 ? "" + (t3 >= 0 ? 0 | t3 : t3 - 1 | 0) : "" + Math.floor(t3);
|
|
2395
2385
|
})(n2)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(t3) {
|
|
2396
|
-
return "00," + (t3.length < 3 ?
|
|
2397
|
-
}) + "." +
|
|
2386
|
+
return "00," + (t3.length < 3 ? Te(0, 3 - t3.length) : "") + t3;
|
|
2387
|
+
}) + "." + Te(i2, s2[1].length);
|
|
2398
2388
|
switch (e2) {
|
|
2399
2389
|
case "###,##0.00":
|
|
2400
2390
|
return hn(t2, "#,##0.00", n2);
|
|
@@ -2444,26 +2434,26 @@ function un(t2, e2, n2) {
|
|
|
2444
2434
|
if (-1 !== e2.indexOf("E")) return dn(e2, n2);
|
|
2445
2435
|
if (36 === e2.charCodeAt(0)) return "$" + un(t2, e2.substr(" " === e2.charAt(1) ? 2 : 1), n2);
|
|
2446
2436
|
var o2, s2, i2, a2, l2 = Math.abs(n2), c2 = n2 < 0 ? "-" : "";
|
|
2447
|
-
if (e2.match(/^00+$/)) return c2 +
|
|
2437
|
+
if (e2.match(/^00+$/)) return c2 + Te(l2, e2.length);
|
|
2448
2438
|
if (e2.match(/^[#?]+$/)) return o2 = "" + n2, 0 === n2 && (o2 = ""), o2.length > e2.length ? o2 : sn(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2449
2439
|
if (s2 = e2.match(en)) return (function(t3, e3, n3) {
|
|
2450
2440
|
return n3 + (0 === e3 ? "" : "" + e3) + Me(" ", t3[1].length + 2 + t3[4].length);
|
|
2451
2441
|
})(s2, l2, c2);
|
|
2452
|
-
if (e2.match(/^#+0+$/)) return c2 +
|
|
2453
|
-
if (s2 = e2.match(nn)) return o2 = ("" + n2).replace(/^([^.]+)$/, "." + sn(s2[2])).replace(/\.$/, "." + sn(s2[2])), o2 =
|
|
2442
|
+
if (e2.match(/^#+0+$/)) return c2 + Te(l2, e2.length - e2.indexOf("0"));
|
|
2443
|
+
if (s2 = e2.match(nn)) return o2 = ("" + n2).replace(/^([^.]+)$/, "." + sn(s2[2])).replace(/\.$/, "." + sn(s2[2])), o2 = Te(Math.abs(n2), s2[1].length) + o2.replace(/\.(\d*)$/, function(t3, e3) {
|
|
2454
2444
|
return "." + e3 + Me("0", sn(s2[2]).length - e3.length);
|
|
2455
2445
|
}), o2 = -1 !== e2.indexOf("0.") ? o2 : o2.replace(/^0\./, "."), n2 < 0 ? "-" + o2 : o2;
|
|
2456
2446
|
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." : ".");
|
|
2457
2447
|
if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Qe("" + l2);
|
|
2458
2448
|
if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + un(t2, e2, -n2) : Qe("" + n2) + "." + Me("0", s2[1].length);
|
|
2459
2449
|
if (s2 = e2.match(/^#,#*,#0/)) return un(t2, e2.replace(/^#,#*,/, ""), n2);
|
|
2460
|
-
if (s2 = e2.match(/^([0#]+)(\\?-([0#]+))+$/)) return o2 =
|
|
2450
|
+
if (s2 = e2.match(/^([0#]+)(\\?-([0#]+))+$/)) return o2 = Ne(un(t2, e2.replace(/[\\-]/g, ""), n2)), i2 = 0, Ne(Ne(e2.replace(/\\/g, "")).replace(/[0#]/g, function(t3) {
|
|
2461
2451
|
return i2 < o2.length ? o2.charAt(i2++) : "0" === t3 ? "0" : "";
|
|
2462
2452
|
}));
|
|
2463
2453
|
if (e2.match(on)) return "(" + (o2 = un(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
|
|
2464
2454
|
var h2 = "";
|
|
2465
|
-
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 =
|
|
2466
|
-
if (s2 = e2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), c2 + ((a2 =
|
|
2455
|
+
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 = Ve(l2, Math.pow(10, i2) - 1, false), o2 = "" + c2, " " === (h2 = gn("n", s2[1], a2[1])).charAt(h2.length - 1) && (h2 = h2.substr(0, h2.length - 1) + "0"), o2 += h2 + s2[2] + "/" + s2[3], (h2 = Fe(a2[2], i2)).length < s2[4].length && (h2 = sn(s2[4].substr(s2[4].length - h2.length)) + h2), o2 += h2;
|
|
2456
|
+
if (s2 = e2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), c2 + ((a2 = Ve(l2, Math.pow(10, i2) - 1, true))[0] || (a2[1] ? "" : "0")) + " " + (a2[1] ? ke(a2[1], i2) + s2[2] + "/" + s2[3] + Fe(a2[2], i2) : Me(" ", 2 * i2 + 1 + s2[2].length + s2[3].length));
|
|
2467
2457
|
if (s2 = e2.match(/^[#0?]+$/)) return o2 = "" + n2, e2.length <= o2.length ? o2 : sn(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2468
2458
|
if (s2 = e2.match(/^([#0]+)\.([#0]+)$/)) {
|
|
2469
2459
|
o2 = "" + n2.toFixed(Math.min(s2[2].length, 10)).replace(/([^0])0+$/, "$1"), i2 = o2.indexOf(".");
|
|
@@ -2471,8 +2461,8 @@ function un(t2, e2, n2) {
|
|
|
2471
2461
|
return sn(e2.substr(0, d2) + o2 + e2.substr(e2.length - u2));
|
|
2472
2462
|
}
|
|
2473
2463
|
if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return n2 < 0 ? "-" + un(t2, e2, -n2) : Qe("" + n2).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(t3) {
|
|
2474
|
-
return "00," + (t3.length < 3 ?
|
|
2475
|
-
}) + "." +
|
|
2464
|
+
return "00," + (t3.length < 3 ? Te(0, 3 - t3.length) : "") + t3;
|
|
2465
|
+
}) + "." + Te(0, s2[1].length);
|
|
2476
2466
|
switch (e2) {
|
|
2477
2467
|
case "###,###":
|
|
2478
2468
|
case "##,###":
|
|
@@ -2509,7 +2499,7 @@ var fn = /\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;
|
|
|
2509
2499
|
function pn(t2) {
|
|
2510
2500
|
for (var e2 = 0, n2 = "", r2 = "", o2 = t2.length; e2 < o2; ) switch (n2 = t2.charAt(e2)) {
|
|
2511
2501
|
case "G":
|
|
2512
|
-
|
|
2502
|
+
Le(t2, e2) && (e2 += 6), e2++;
|
|
2513
2503
|
break;
|
|
2514
2504
|
case '"':
|
|
2515
2505
|
for (; 34 !== t2.charCodeAt(++e2) && e2 < t2.length; ) ;
|
|
@@ -2615,9 +2605,9 @@ function wn(t2, e2, n2) {
|
|
|
2615
2605
|
r2 = "m/d/yy" === t2 && n2.dateNF ? n2.dateNF : t2;
|
|
2616
2606
|
break;
|
|
2617
2607
|
case "number":
|
|
2618
|
-
null == (r2 = 14 === t2 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : ze)[t2]) && (r2 = n2.table && n2.table[
|
|
2608
|
+
null == (r2 = 14 === t2 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : ze)[t2]) && (r2 = n2.table && n2.table[We[t2]] || ze[We[t2]]), null == r2 && (r2 = He[t2] || "General");
|
|
2619
2609
|
}
|
|
2620
|
-
if (
|
|
2610
|
+
if (Le(r2, 0)) return Xe(e2, n2);
|
|
2621
2611
|
Re(e2) && (e2 = Je(e2, n2.date1904));
|
|
2622
2612
|
var s2 = (function(t3, e3) {
|
|
2623
2613
|
var n3 = mn(t3), r3 = n3.length, o2 = n3[r3 - 1].indexOf("@");
|
|
@@ -2641,7 +2631,7 @@ function wn(t2, e2, n2) {
|
|
|
2641
2631
|
}
|
|
2642
2632
|
return [r3, s3];
|
|
2643
2633
|
})(r2, e2);
|
|
2644
|
-
if (
|
|
2634
|
+
if (Le(s2[1])) return Xe(e2, n2);
|
|
2645
2635
|
if (true === e2) e2 = "TRUE";
|
|
2646
2636
|
else if (false === e2) e2 = "FALSE";
|
|
2647
2637
|
else if ("" === e2 || null == e2) return "";
|
|
@@ -2650,7 +2640,7 @@ function wn(t2, e2, n2) {
|
|
|
2650
2640
|
let g2 = t3.length;
|
|
2651
2641
|
for (; c2 < g2; ) switch (h2 = t3.charAt(c2)) {
|
|
2652
2642
|
case "G":
|
|
2653
|
-
if (!
|
|
2643
|
+
if (!Le(t3, c2)) throw new Error("unrecognized character " + h2 + " in " + t3);
|
|
2654
2644
|
a2[a2.length] = { t: "G", v: "General" }, c2 += 7;
|
|
2655
2645
|
break;
|
|
2656
2646
|
case '"':
|
|
@@ -2667,7 +2657,7 @@ function wn(t2, e2, n2) {
|
|
|
2667
2657
|
case "B":
|
|
2668
2658
|
case "b":
|
|
2669
2659
|
if ("1" === t3.charAt(c2 + 1) || "2" === t3.charAt(c2 + 1)) {
|
|
2670
|
-
if (null == o2 && null == (o2 =
|
|
2660
|
+
if (null == o2 && null == (o2 = $e(e3, n3, "2" === t3.charAt(c2 + 1)))) return "";
|
|
2671
2661
|
a2[a2.length] = { t: "X", v: t3.substr(c2, 2) }, d2 = h2, c2 += 2;
|
|
2672
2662
|
break;
|
|
2673
2663
|
}
|
|
@@ -2686,7 +2676,7 @@ function wn(t2, e2, n2) {
|
|
|
2686
2676
|
case "e":
|
|
2687
2677
|
case "g":
|
|
2688
2678
|
if (e3 < 0) return "";
|
|
2689
|
-
if (null == o2 && null == (o2 =
|
|
2679
|
+
if (null == o2 && null == (o2 = $e(e3, n3))) return "";
|
|
2690
2680
|
for (l2 = h2; ++c2 < t3.length && t3.charAt(c2).toLowerCase() === h2; ) l2 += h2;
|
|
2691
2681
|
"m" === h2 && "h" === d2.toLowerCase() && (h2 = "M"), "h" === h2 && (h2 = u2), a2[a2.length] = { t: h2, v: l2 }, d2 = h2;
|
|
2692
2682
|
break;
|
|
@@ -2694,14 +2684,14 @@ function wn(t2, e2, n2) {
|
|
|
2694
2684
|
case "a":
|
|
2695
2685
|
case "上":
|
|
2696
2686
|
var p2 = { t: h2, v: h2 };
|
|
2697
|
-
if (null == o2 && (o2 =
|
|
2687
|
+
if (null == o2 && (o2 = $e(e3, n3)), "A/P" === t3.substr(c2, 3).toUpperCase() ? (null != o2 && (p2.v = o2.H >= 12 ? "P" : "A"), p2.t = "T", u2 = "h", c2 += 3) : "AM/PM" === t3.substr(c2, 5).toUpperCase() ? (null != o2 && (p2.v = o2.H >= 12 ? "PM" : "AM"), p2.t = "T", c2 += 5, u2 = "h") : "上午/下午" === t3.substr(c2, 5).toUpperCase() ? (null != o2 && (p2.v = o2.H >= 12 ? "下午" : "上午"), p2.t = "T", c2 += 5, u2 = "h") : (p2.t = "t", ++c2), null == o2 && "T" === p2.t) return "";
|
|
2698
2688
|
a2[a2.length] = p2, d2 = h2;
|
|
2699
2689
|
break;
|
|
2700
2690
|
case "[":
|
|
2701
2691
|
for (l2 = h2; "]" !== t3.charAt(c2++) && c2 < t3.length; ) l2 += t3.charAt(c2);
|
|
2702
2692
|
if ("]" !== l2.slice(-1)) throw new Error('unterminated "[" block: |' + l2 + "|");
|
|
2703
2693
|
if (l2.match(fn)) {
|
|
2704
|
-
if (null == o2 && null == (o2 =
|
|
2694
|
+
if (null == o2 && null == (o2 = $e(e3, n3))) return "";
|
|
2705
2695
|
a2[a2.length] = { t: "Z", v: l2.toLowerCase() }, d2 = l2.charAt(1);
|
|
2706
2696
|
} else l2.indexOf("$") > -1 && (l2 = (l2.match(/\$([^-[\]]*)/) || [])[1] || "$", pn(t3) || (a2[a2.length] = { t: "t", v: l2 }));
|
|
2707
2697
|
break;
|
|
@@ -2864,9 +2854,9 @@ function yn(t2, e2) {
|
|
|
2864
2854
|
}
|
|
2865
2855
|
const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: ze, load_table: function(t2) {
|
|
2866
2856
|
for (var e2 = 0; 392 !== e2; ++e2) void 0 !== t2[e2] && yn(t2[e2], e2);
|
|
2867
|
-
}, parse_date_code:
|
|
2857
|
+
}, parse_date_code: $e, is_date: pn, get_table: function() {
|
|
2868
2858
|
return En._table = ze;
|
|
2869
|
-
} }, Cn = "\\s*([-]?[0-9e]*[.]?[0-9]+)", bn = new RegExp(`^rgb\\(${Cn},${Cn},${Cn}\\)$`), vn = new RegExp(`^rgba\\(${Cn},${Cn},${Cn},${Cn}\\)$`), xn = new RegExp(`^lrgb\\(${Cn},${Cn},${Cn}\\)$`), In = new RegExp(`^lrgba\\(${Cn},${Cn},${Cn},${Cn}\\)$`), Rn = new RegExp(`^hsl\\(${Cn},${Cn},${Cn}\\)$`), An = new RegExp(`^hsla\\(${Cn},${Cn},${Cn},${Cn}\\)$`), Mn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/),
|
|
2859
|
+
} }, Cn = "\\s*([-]?[0-9e]*[.]?[0-9]+)", bn = new RegExp(`^rgb\\(${Cn},${Cn},${Cn}\\)$`), vn = new RegExp(`^rgba\\(${Cn},${Cn},${Cn},${Cn}\\)$`), xn = new RegExp(`^lrgb\\(${Cn},${Cn},${Cn}\\)$`), In = new RegExp(`^lrgba\\(${Cn},${Cn},${Cn},${Cn}\\)$`), Rn = new RegExp(`^hsl\\(${Cn},${Cn},${Cn}\\)$`), An = new RegExp(`^hsla\\(${Cn},${Cn},${Cn},${Cn}\\)$`), Mn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), Nn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), Tn = new RegExp("^index(\\d+)$", "i"), kn = (t2, e2, n2) => [parseFloat(t2), parseFloat(e2), parseFloat(n2)], Fn = (t2, e2 = 255) => {
|
|
2870
2860
|
const n2 = [...t2];
|
|
2871
2861
|
for (var r2 = 0; r2 < t2.length; r2++) n2[r2] = t2[r2] / e2;
|
|
2872
2862
|
return n2;
|
|
@@ -2878,20 +2868,20 @@ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: ze,
|
|
|
2878
2868
|
const n2 = [...t2], r2 = e2 ? 1 : 255;
|
|
2879
2869
|
for (var o2 = 0; o2 < t2.length; o2++) n2[o2] = Math.max(0, Math.min(r2, t2[o2]));
|
|
2880
2870
|
return n2;
|
|
2881
|
-
},
|
|
2871
|
+
}, Ln = (t2) => Math.max(0, Math.min(1, t2)), Bn = (t2) => ((t2 %= 360) < 0 && (t2 -= 360), t2), Pn = (t2) => {
|
|
2882
2872
|
const e2 = [...t2];
|
|
2883
|
-
for (var n2 = 0; n2 < t2.length; n2++) e2[n2] =
|
|
2873
|
+
for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Wn(t2[n2]);
|
|
2884
2874
|
return e2;
|
|
2885
2875
|
}, zn = (t2) => {
|
|
2886
2876
|
const e2 = [...t2];
|
|
2887
|
-
for (var n2 = 0; n2 < t2.length; n2++) e2[n2] =
|
|
2877
|
+
for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Hn(t2[n2]);
|
|
2888
2878
|
return e2;
|
|
2889
|
-
},
|
|
2879
|
+
}, Wn = (t2) => t2 < 0.04045 ? t2 / 12.92 : Math.pow((t2 + 0.055) / 1.055, 2.4), Hn = (t2) => t2 < 31308e-7 ? 12.92 * t2 : 1.055 * Math.pow(t2, 1 / 2.4) - 0.055, Vn = (t2) => {
|
|
2890
2880
|
let e2 = t2[0], n2 = t2[1], r2 = t2[2];
|
|
2891
2881
|
e2 %= 360, e2 /= 360, n2 /= 100, r2 /= 100;
|
|
2892
2882
|
let o2 = r2 < 0.5 ? r2 * (1 + n2) : r2 + n2 - n2 * r2, s2 = 2 * r2 - o2;
|
|
2893
|
-
return [Math.max(0,
|
|
2894
|
-
},
|
|
2883
|
+
return [Math.max(0, $n(s2, o2, e2 + 1 / 3)), Math.max(0, $n(s2, o2, e2)), Math.max(0, $n(s2, o2, e2 - 1 / 3))];
|
|
2884
|
+
}, $n = (t2, e2, n2) => (n2 < 0 && (n2 += 1), n2 > 1 && (n2 -= 1), 6 * n2 < 1 ? t2 + 6 * (e2 - t2) * n2 : 2 * n2 < 1 ? e2 : 3 * n2 < 2 ? t2 + 6 * (e2 - t2) * (2 / 3 - n2) : t2), jn = (t2) => {
|
|
2895
2885
|
let e2 = t2[0], n2 = t2[1], r2 = t2[2], o2 = Math.min(e2, Math.min(n2, r2)), s2 = Math.max(e2, Math.max(n2, r2)), i2 = 0;
|
|
2896
2886
|
s2 === o2 ? i2 = 0 : s2 === e2 ? i2 = (60 * (n2 - r2) / (s2 - o2) + 360) % 360 : s2 === n2 ? i2 = 60 * (r2 - e2) / (s2 - o2) + 120 : s2 === r2 && (i2 = 60 * (e2 - n2) / (s2 - o2) + 240);
|
|
2897
2887
|
const a2 = (s2 + o2) / 2;
|
|
@@ -2909,7 +2899,7 @@ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: ze,
|
|
|
2909
2899
|
const n2 = jn(t2), r2 = n2[2], s2 = o.roundAccurately((i2 = r2, (a2 = e2) > 0 ? (i2 * er * (1 - a2) + (255 - 255 * (1 - a2))) / er : a2 < 0 ? i2 * er * (1 + a2) / er : i2), 3);
|
|
2910
2900
|
var i2, a2;
|
|
2911
2901
|
n2[2] = s2;
|
|
2912
|
-
let l2 =
|
|
2902
|
+
let l2 = Vn(n2);
|
|
2913
2903
|
return l2 = Dn(l2), l2;
|
|
2914
2904
|
}, rr = (t2, e2) => {
|
|
2915
2905
|
let n2 = Pn(t2), r2 = e2 / 100;
|
|
@@ -2918,8 +2908,8 @@ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: ze,
|
|
|
2918
2908
|
return s2 = Dn(s2), s2;
|
|
2919
2909
|
}, or = (t2, e2, n2) => {
|
|
2920
2910
|
let r2 = jn(e2), o2 = n2 / 1;
|
|
2921
|
-
t2 === Gn && (o2 =
|
|
2922
|
-
let s2 =
|
|
2911
|
+
t2 === Gn && (o2 = Bn(n2)), r2[t2] = o2;
|
|
2912
|
+
let s2 = Vn(r2);
|
|
2923
2913
|
return s2 = Dn(s2), s2;
|
|
2924
2914
|
}, sr = (t2, e2, n2) => {
|
|
2925
2915
|
let r2 = jn(e2);
|
|
@@ -2930,12 +2920,12 @@ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: ze,
|
|
|
2930
2920
|
let e3 = n2 / 0.1;
|
|
2931
2921
|
r2[t2] = 0.1 * (r2[t2] / 0.1 + e3);
|
|
2932
2922
|
}
|
|
2933
|
-
let o2 =
|
|
2923
|
+
let o2 = Vn(r2);
|
|
2934
2924
|
return o2 = Dn(o2), o2;
|
|
2935
2925
|
}, ir = (t2, e2, n2) => {
|
|
2936
2926
|
let r2 = jn(e2), o2 = n2 / 100;
|
|
2937
|
-
r2[t2] = r2[t2] * o2, t2 === Gn && (r2[Gn] =
|
|
2938
|
-
let s2 =
|
|
2927
|
+
r2[t2] = r2[t2] * o2, t2 === Gn && (r2[Gn] = Bn(r2[Gn]));
|
|
2928
|
+
let s2 = Vn(r2);
|
|
2939
2929
|
return s2 = Dn(s2), s2;
|
|
2940
2930
|
}, ar = (t2, e2, n2, r2) => {
|
|
2941
2931
|
let o2 = Pn(e2), s2 = n2 / 100;
|
|
@@ -2950,7 +2940,7 @@ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: ze,
|
|
|
2950
2940
|
}, cr = (t2) => {
|
|
2951
2941
|
let e2 = jn(t2);
|
|
2952
2942
|
e2[Gn] += 180, e2[Gn] %= 360, e2[Gn] < 0 && (e2[Gn] -= 360);
|
|
2953
|
-
let n2 =
|
|
2943
|
+
let n2 = Vn(e2);
|
|
2954
2944
|
return n2 = Dn(n2), n2;
|
|
2955
2945
|
}, hr = (t2, e2 = true) => {
|
|
2956
2946
|
let n2 = e2 ? Pn(t2) : [...t2];
|
|
@@ -2958,11 +2948,11 @@ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: ze,
|
|
|
2958
2948
|
return n2[0] = r2 - n2[0], n2[1] = r2 - n2[1], n2[2] = r2 - n2[2], e2 && (n2 = zn(n2)), n2 = Dn(n2, e2), n2;
|
|
2959
2949
|
}, dr = (t2) => {
|
|
2960
2950
|
const e2 = [0, 0, 0];
|
|
2961
|
-
e2[0] =
|
|
2951
|
+
e2[0] = Hn(t2[0]), e2[1] = Hn(t2[1]), e2[2] = Hn(t2[2]);
|
|
2962
2952
|
return Dn(e2);
|
|
2963
2953
|
}, ur = (t2) => {
|
|
2964
2954
|
const e2 = [0, 0, 0];
|
|
2965
|
-
e2[0] =
|
|
2955
|
+
e2[0] = Wn(t2[0]), e2[1] = Wn(t2[1]), e2[2] = Wn(t2[2]);
|
|
2966
2956
|
return Dn(e2);
|
|
2967
2957
|
}, gr = (t2, e2, n2, r2 = null) => {
|
|
2968
2958
|
const o2 = (t3) => {
|
|
@@ -3048,7 +3038,7 @@ for (let t2 = 0; t2 < Er.length; t2++) Cr.set(t2, yr(Er[t2]));
|
|
|
3048
3038
|
Cr.set(-4105, null), Cr.set(-4142, null), Cr.set(64, yr("000000")), Cr.set(65, yr("FFFFFF")), Cr.set(81, yr("FFFFFF"));
|
|
3049
3039
|
const br = (t2) => Cr.get(t2), vr = { 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" };
|
|
3050
3040
|
let xr = null;
|
|
3051
|
-
const Ir = () => xr || (xr = Intl.DateTimeFormat().resolvedOptions().locale ?? "en-US", xr), Rr = /^\[\$-(.*?)\]/i, Ar = /^[0-9a-fA-F]+$/, Mr = En.split_fmt,
|
|
3041
|
+
const Ir = () => xr || (xr = Intl.DateTimeFormat().resolvedOptions().locale ?? "en-US", xr), Rr = /^\[\$-(.*?)\]/i, Ar = /^[0-9a-fA-F]+$/, Mr = En.split_fmt, Nr = (t2, e2, n2) => {
|
|
3052
3042
|
const r2 = Rr.exec(t2);
|
|
3053
3043
|
let o2 = Ir();
|
|
3054
3044
|
if (r2 && r2[1]) {
|
|
@@ -3056,11 +3046,11 @@ const Ir = () => xr || (xr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
|
|
|
3056
3046
|
Ar.test(t3) || t3.includes("-");
|
|
3057
3047
|
}
|
|
3058
3048
|
if (kr[t2] && (t2 = kr[t2]), "number" == typeof e2) {
|
|
3059
|
-
const r3 =
|
|
3049
|
+
const r3 = Tr(t2, e2, { locale: o2, ...n2 });
|
|
3060
3050
|
if (null !== r3) return r3.fmt;
|
|
3061
3051
|
}
|
|
3062
3052
|
return En.format(t2, e2, n2);
|
|
3063
|
-
},
|
|
3053
|
+
}, Tr = (t2, e2, n2) => {
|
|
3064
3054
|
if ("number" != typeof e2) return null;
|
|
3065
3055
|
const r2 = eo(e2, n2?.date1904 ?? false), o2 = n2?.locale ?? Ir();
|
|
3066
3056
|
let s2 = false, i2 = t2, a2 = -1;
|
|
@@ -3100,18 +3090,18 @@ const Ir = () => xr || (xr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
|
|
|
3100
3090
|
void 0 !== n2 && (e2 = br(n2).toString());
|
|
3101
3091
|
}
|
|
3102
3092
|
return e2;
|
|
3103
|
-
}, Dr = "=",
|
|
3104
|
-
|
|
3105
|
-
const
|
|
3093
|
+
}, Dr = "=", Lr = "<>", Br = ">", Pr = "<", zr = ">=", Wr = "<=", Hr = /* @__PURE__ */ new Map();
|
|
3094
|
+
Hr.set(Dr, (t2, e2) => t2 === e2), Hr.set(Lr, (t2, e2) => t2 !== e2), Hr.set(Br, (t2, e2) => t2 > e2), Hr.set(Pr, (t2, e2) => t2 < e2), Hr.set(zr, (t2, e2) => t2 >= e2), Hr.set(Wr, (t2, e2) => t2 <= e2);
|
|
3095
|
+
const Vr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, $r = /(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)/i, jr = /\[(.*?)\]/g, Gr = (t2, e2) => {
|
|
3106
3096
|
const n2 = { color: null, condition: null };
|
|
3107
3097
|
let r2 = null, o2 = new RegExp(jr);
|
|
3108
3098
|
for (; null !== (r2 = o2.exec(t2)); ) {
|
|
3109
|
-
let e3 = false, o3 =
|
|
3099
|
+
let e3 = false, o3 = Vr.exec(r2[1]);
|
|
3110
3100
|
if (o3) {
|
|
3111
3101
|
if (e3 = true, n2.color) throw new Error(`format error, two colors specified: '${t2}' and '${n2.color}'.`);
|
|
3112
3102
|
n2.color = Or(o3[1]), n2.color || console.warn("Unable to parse LegacyColor", o3[1]);
|
|
3113
3103
|
}
|
|
3114
|
-
let s2 =
|
|
3104
|
+
let s2 = $r.exec(r2[1]);
|
|
3115
3105
|
if (s2) {
|
|
3116
3106
|
if (e3 = true, n2.condition) throw new Error(`Format error, two conditions specified: ' ${t2}'`);
|
|
3117
3107
|
n2.condition = { op: s2[1], comp: parseFloat(s2[2]) };
|
|
@@ -3126,7 +3116,7 @@ const $r = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Vr =
|
|
|
3126
3116
|
const n3 = t3.split(";");
|
|
3127
3117
|
for (let t4 = 0; t4 < n3.length; t4++) {
|
|
3128
3118
|
let r3 = null;
|
|
3129
|
-
2 === n3.length ? 0 === t4 ? r3 = { op: zr, comp: 0 } : 1 === t4 && (r3 = { op: Pr, comp: 0 }) : 3 !== n3.length && 4 !== n3.length || (r3 = 0 === t4 ? { op:
|
|
3119
|
+
2 === n3.length ? 0 === t4 ? r3 = { op: zr, comp: 0 } : 1 === t4 && (r3 = { op: Pr, comp: 0 }) : 3 !== n3.length && 4 !== n3.length || (r3 = 0 === t4 ? { op: Br, comp: 0 } : 1 === t4 ? { op: Pr, comp: 0 } : 2 === t4 ? { op: Dr, comp: 0 } : null);
|
|
3130
3120
|
const o2 = n3[t4], s2 = Gr(o2, r3);
|
|
3131
3121
|
e3.push({ format: o2, colorAndCondition: s2 });
|
|
3132
3122
|
}
|
|
@@ -3138,7 +3128,7 @@ const $r = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Vr =
|
|
|
3138
3128
|
let o2 = r2?.condition ?? void 0;
|
|
3139
3129
|
if (3 === t3) return "string" == typeof e2 && r2?.color ? r2.color : null;
|
|
3140
3130
|
if (o2 && "number" == typeof e2) {
|
|
3141
|
-
if (
|
|
3131
|
+
if (Hr.get(o2.op)(e2, o2.comp)) return r2?.color ?? null;
|
|
3142
3132
|
}
|
|
3143
3133
|
}
|
|
3144
3134
|
}, Jr = (t2) => {
|
|
@@ -3275,7 +3265,7 @@ const $r = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Vr =
|
|
|
3275
3265
|
c2.setFullYear(t4);
|
|
3276
3266
|
}
|
|
3277
3267
|
if (oo[t3].todaysYear && c2.setFullYear(o2), h2 = En.dateNumLocal(c2, e2), oo[t3].parseFormat.indexOf("EEE") > -1) {
|
|
3278
|
-
const t4 =
|
|
3268
|
+
const t4 = Nr("ddd", h2, { date1904: e2 });
|
|
3279
3269
|
if (!n3.toLowerCase().includes(t4.toLowerCase())) return null;
|
|
3280
3270
|
}
|
|
3281
3271
|
let r3 = oo[t3].numberFormat;
|
|
@@ -3325,9 +3315,9 @@ const Co = (t2, e2, n2 = 1e3) => {
|
|
|
3325
3315
|
if (void 0 === t2) return 0;
|
|
3326
3316
|
let e2 = t2.toString().split(".");
|
|
3327
3317
|
return e2.length <= 1 ? 0 : e2[1].length || 0;
|
|
3328
|
-
}, Ao = new RegExp(/^["|'|`](.*)["|'|`]$/), Mo = 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"),
|
|
3329
|
-
let r2 =
|
|
3330
|
-
return void 0 === e2 && void 0 === n2 || (r2 =
|
|
3318
|
+
}, Ao = new RegExp(/^["|'|`](.*)["|'|`]$/), Mo = 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"), No = (t2 = ",", e2 = "'") => new RegExp(`\\s*${t2}\\s*(?=(?:[^${e2}]*${e2}[^${e2}]*${e2})*[^${e2}]*$)`, "g"), To = No(), ko = (t2) => t2.replace(Ao, "$1"), Fo = (t2, e2 = "'") => `${e2}${t2}${e2}`, Oo = (t2, e2 = void 0, n2 = void 0) => {
|
|
3319
|
+
let r2 = To;
|
|
3320
|
+
return void 0 === e2 && void 0 === n2 || (r2 = No(e2, n2)), t2.split(r2);
|
|
3331
3321
|
}, Do = (t2) => {
|
|
3332
3322
|
let e2;
|
|
3333
3323
|
try {
|
|
@@ -3336,33 +3326,33 @@ const Co = (t2, e2, n2 = 1e3) => {
|
|
|
3336
3326
|
return false;
|
|
3337
3327
|
}
|
|
3338
3328
|
return ("http:" === e2.protocol || "https:" === e2.protocol) && Mo.test(t2);
|
|
3339
|
-
},
|
|
3329
|
+
}, Lo = new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/i), Bo = (t2) => !!t2.toLowerCase().startsWith("mailto:") || Lo.test(t2), Po = (t2) => ((t2 >= 26 ? Po((t2 / 26 | 0) - 1) : "") + "abcdefghijklmnopqrstuvwxyz"[t2 % 26 | 0]).toUpperCase(), zo = Object.freeze(Object.defineProperty({ __proto__: null, DefaultUnQuoteRegEx: To, camelToSnake: (t2) => t2 ? t2.replace(/[A-Z]/g, (t3) => `_${t3.toLowerCase()}`) : t2, capitalize: bo, clampString: Io, countDecimals: Ro, findValidTextValue: Co, getBaseName: (t2, e2 = false) => {
|
|
3340
3330
|
if (!t2 || "string" != typeof t2) return "";
|
|
3341
3331
|
const n2 = t2.split(/[\\/]/).pop() || "";
|
|
3342
3332
|
if ("" === n2) return "";
|
|
3343
3333
|
const r2 = vo(n2), o2 = 0 === r2.length ? n2 : n2.slice(0, n2.length - r2.length - 1);
|
|
3344
3334
|
return e2 ? bo(o2, true) : o2;
|
|
3345
|
-
}, getFileNameExtension: vo, isQuoted: (t2) => t2 && t2.length > 1 && Ao.test(t2) && t2[0] === t2[t2.length - 1], isValidEmail:
|
|
3335
|
+
}, getFileNameExtension: vo, isQuoted: (t2) => t2 && t2.length > 1 && Ao.test(t2) && t2[0] === t2[t2.length - 1], isValidEmail: Bo, isValidHttpUrl: Do, numberToAlphabet: Po, quote: Fo, snakeToCamel: xo, splitUnquoted: Oo, unquote: ko }, Symbol.toStringTag, { value: "Module" })), Wo = (t2, e2, n2, r2 = null) => {
|
|
3346
3336
|
const o2 = (e2 || 11 * Ko.getDeviceScale()) / Ko.getDeviceScale(), s2 = r2?.letterSpacing || 0, i2 = t2.length;
|
|
3347
3337
|
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));
|
|
3348
3338
|
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 };
|
|
3349
|
-
},
|
|
3350
|
-
let
|
|
3351
|
-
const
|
|
3352
|
-
const o2 = e2, s2 =
|
|
3339
|
+
}, Ho = () => Wo;
|
|
3340
|
+
let Vo = "./packages/sdk/src/__tests__/fonts/";
|
|
3341
|
+
const $o = /* @__PURE__ */ new Map(), jo = /* @__PURE__ */ new Set(), Go = (t2, e2, n2, r2 = null) => {
|
|
3342
|
+
const o2 = e2, s2 = Vo + n2.toLowerCase() + ".ttf";
|
|
3353
3343
|
let i2 = null;
|
|
3354
3344
|
try {
|
|
3355
3345
|
i2 = R(s2);
|
|
3356
3346
|
} catch (t3) {
|
|
3357
3347
|
}
|
|
3358
3348
|
if (!i2) try {
|
|
3359
|
-
i2 = R(
|
|
3349
|
+
i2 = R(Vo + "calibri.ttf");
|
|
3360
3350
|
} catch (t3) {
|
|
3361
3351
|
}
|
|
3362
|
-
if (!i2) return jo.has(s2) || jo.add(s2),
|
|
3352
|
+
if (!i2) return jo.has(s2) || jo.add(s2), Ho().call(null, t2, e2, n2, r2);
|
|
3363
3353
|
const a2 = `${s2}${t2}${o2}`;
|
|
3364
|
-
let l2 =
|
|
3365
|
-
l2 || (l2 = i2.layout(t2), t2.length < 2 &&
|
|
3354
|
+
let l2 = $o.get(a2);
|
|
3355
|
+
l2 || (l2 = i2.layout(t2), t2.length < 2 && $o.set(a2, l2));
|
|
3366
3356
|
const c2 = o2;
|
|
3367
3357
|
let h2 = Math.max(0, l2.bbox.width / i2.unitsPerEm * c2), d2 = i2.ascent || 0;
|
|
3368
3358
|
const u2 = d2 - (i2.descent || 0);
|
|
@@ -3387,7 +3377,7 @@ var Ko, Xo;
|
|
|
3387
3377
|
Uo = Go;
|
|
3388
3378
|
} catch {
|
|
3389
3379
|
}
|
|
3390
|
-
return Uo || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), Uo =
|
|
3380
|
+
return Uo || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), Uo = Ho()), Uo;
|
|
3391
3381
|
})(), qo), Xo.getDeviceScale = () => Jo(), Xo.getPanoseFallback = (t2) => {
|
|
3392
3382
|
const e2 = [], n2 = t2.length;
|
|
3393
3383
|
for (let r3 = 0; r3 < n2; r3 += 2) e2.push(parseInt(t2.substring(r3, r3 + 2), 16));
|
|
@@ -3908,7 +3898,7 @@ const Rs = (t2, e2 = false) => {
|
|
|
3908
3898
|
}, As = (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 }, Ms = (t2) => {
|
|
3909
3899
|
const e2 = 0 === t2.length;
|
|
3910
3900
|
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 };
|
|
3911
|
-
},
|
|
3901
|
+
}, Ns = (t2, e2) => {
|
|
3912
3902
|
const n2 = e2.run, r2 = n2.min, s2 = n2.max;
|
|
3913
3903
|
if (t2 >= r2 && t2 <= s2) return n2.value;
|
|
3914
3904
|
let i2 = e2.index;
|
|
@@ -3931,7 +3921,7 @@ const Rs = (t2, e2 = false) => {
|
|
|
3931
3921
|
return n2.value = t3, t3;
|
|
3932
3922
|
}
|
|
3933
3923
|
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;
|
|
3934
|
-
},
|
|
3924
|
+
}, Ts = function(t2, e2, n2, r2) {
|
|
3935
3925
|
if (0 === t2.length) {
|
|
3936
3926
|
if (null != n2 || null != r2) {
|
|
3937
3927
|
const t3 = e2({ min: n2 ?? r2, max: r2 ?? n2 });
|
|
@@ -3955,7 +3945,7 @@ const Rs = (t2, e2 = false) => {
|
|
|
3955
3945
|
if (t3 && t3.break) return t3;
|
|
3956
3946
|
}
|
|
3957
3947
|
}, ks = new RegExp("([0-9]+)$");
|
|
3958
|
-
var Fs, Os, Ds,
|
|
3948
|
+
var Fs, Os, Ds, Ls, Bs, Ps;
|
|
3959
3949
|
((t2) => {
|
|
3960
3950
|
t2.Date = class {
|
|
3961
3951
|
constructor(t3) {
|
|
@@ -4207,7 +4197,7 @@ var Fs, Os, Ds, Bs, Ls, Ps;
|
|
|
4207
4197
|
}
|
|
4208
4198
|
const f2 = Ms(a2);
|
|
4209
4199
|
return (t4) => {
|
|
4210
|
-
const e4 = t4 >= 0, n4 = Math.abs(t4), o4 =
|
|
4200
|
+
const e4 = t4 >= 0, n4 = Math.abs(t4), o4 = Ns(n4 % r3, f2);
|
|
4211
4201
|
if (!o4) return null;
|
|
4212
4202
|
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));
|
|
4213
4203
|
let c3 = t4 + (e4 ? -l3 : l3);
|
|
@@ -4226,9 +4216,9 @@ var Fs, Os, Ds, Bs, Ls, Ps;
|
|
|
4226
4216
|
for (let t4 = s3; t4 < n3; t4++) o3.push(i3(t4));
|
|
4227
4217
|
return o3;
|
|
4228
4218
|
};
|
|
4229
|
-
})(Fs || (Fs = {})), Os || (Os = {}), (
|
|
4230
|
-
const zs = [[4290032820, 1,
|
|
4231
|
-
const
|
|
4219
|
+
})(Fs || (Fs = {})), Os || (Os = {}), (Ls = Ds || (Ds = {})).Type = { None: "none", Solid: "solid", Gradient: "gradient", Pattern: "pattern", Image: "pattern", Background: "background", Group: "group", Custom: "custom" }, Ls.GradientType = { Linear: "linear", Path: "path", Circular: "circular", Rect: "rect" }, Ls.TileMirror = { None: "none", Vertical: "v", Horizontal: "h", Both: "b" }, Ls.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" }, (Ps = Bs || (Bs = {})).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" }, Ps.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" }, Ps.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" }, Ps.Type = { Scheme: "scheme", Named: "named", Index: "index", HSL: "hsl", RGB: "rgb", LRGB: "lrgb", Hex: "hex" };
|
|
4220
|
+
const zs = [[4290032820, 1, Bs.Named.ActiveBorder, true], [4288263377, 2, Bs.Named.ActiveCaption, true], [4278190080, 3, Bs.Named.CaptionText, true], [4289440683, 4, Bs.Named.AppWorkspace, true], [4293980400, 5, Bs.Named.BtnFace, true], [4285098345, 6, Bs.Named.BtnShadow, true], [4278190080, 7, Bs.Named.DkShadow3d, true], [4293125091, 8, Bs.Named.BtnHighlight, true], [4293125091, 9, Bs.Named.Light3d, true], [4278190080, 10, Bs.Named.BtnText, true], [4278190080, 11, Bs.Named.Background, true], [4285361517, 12, Bs.Named.GrayText, true], [4281571839, 13, Bs.Named.Highlight, true], [4294967295, 14, Bs.Named.HighlightText, true], [4278216396, 15, Bs.Named.HotLight, true], [4294244348, 16, Bs.Named.InactiveBorder, true], [4290760155, 17, Bs.Named.InactiveCaption, true], [4278190080, 18, Bs.Named.InactiveCaptionText, true], [4294967265, 19, Bs.Named.InfoBk, true], [4278190080, 20, Bs.Named.InfoText, true], [4293980400, 21, Bs.Named.Menu, true], [4278190080, 22, Bs.Named.MenuText, true], [4291348680, 23, Bs.Named.ScrollBar, true], [4294967295, 24, Bs.Named.Window, true], [4284769380, 25, Bs.Named.WindowFrame, true], [4278190080, 26, Bs.Named.WindowText, true], [16777215, 27, Bs.Named.Transparent], [4293982463, 28, Bs.Named.AliceBlue], [4294634455, 29, Bs.Named.AntiqueWhite], [4278255615, 30, Bs.Named.Aqua], [4286578644, 31, Bs.Named.Aquamarine], [4293984255, 32, Bs.Named.Azure], [4294309340, 33, Bs.Named.Beige], [4294960324, 34, Bs.Named.Bisque], [4278190080, 35, Bs.Named.Black], [4294962125, 36, Bs.Named.BlanchedAlmond], [4278190335, 37, Bs.Named.Blue], [4287245282, 38, Bs.Named.BlueViolet], [4289014314, 39, Bs.Named.Brown], [4292786311, 40, Bs.Named.BurlyWood], [4284456608, 41, Bs.Named.CadetBlue], [4286578432, 42, Bs.Named.Chartreuse], [4291979550, 43, Bs.Named.Chocolate], [4294934352, 44, Bs.Named.Coral], [4284782061, 45, Bs.Named.CornflowerBlue], [4294965468, 46, Bs.Named.Cornsilk], [4292613180, 47, Bs.Named.Crimson], [4278255615, 48, Bs.Named.Cyan], [4278190219, 49, Bs.Named.DkBlue], [4278225803, 50, Bs.Named.DkCyan], [4290283019, 51, Bs.Named.DkGoldenrod], [4289309097, 52, Bs.Named.DkGray], [4278215680, 53, Bs.Named.DkGreen], [4290623339, 54, Bs.Named.DkKhaki], [4287299723, 55, Bs.Named.DkMagenta], [4283788079, 56, Bs.Named.DkOliveGreen], [4294937600, 57, Bs.Named.DkOrange], [4288230092, 58, Bs.Named.DkOrchid], [4287299584, 59, Bs.Named.DkRed], [4293498490, 60, Bs.Named.DkSalmon], [4287609995, 61, Bs.Named.DkSeaGreen], [4282924427, 62, Bs.Named.DkSlateBlue], [4281290575, 63, Bs.Named.DkSlateGray], [4278243025, 64, Bs.Named.DkTurquoise], [4287889619, 65, Bs.Named.DkViolet], [4294907027, 66, Bs.Named.DeepPink], [4278239231, 67, Bs.Named.DeepSkyBlue], [4285098345, 68, Bs.Named.DimGray], [4280193279, 69, Bs.Named.DodgerBlue], [4289864226, 70, Bs.Named.Firebrick], [4294966e3, 71, Bs.Named.FloralWhite], [4280453922, 72, Bs.Named.ForestGreen], [4294902015, 73, Bs.Named.Fuchsia], [4292664540, 74, Bs.Named.Gainsboro], [4294506751, 75, Bs.Named.GhostWhite], [4294956800, 76, Bs.Named.Gold], [4292519200, 77, Bs.Named.Goldenrod], [4286611584, 78, Bs.Named.Gray], [4278222848, 79, Bs.Named.Green], [4289593135, 80, Bs.Named.GreenYellow], [4293984240, 81, Bs.Named.Honeydew], [4294928820, 82, Bs.Named.HotPink], [4291648604, 83, Bs.Named.IndianRed], [4283105410, 84, Bs.Named.Indigo], [4294967280, 85, Bs.Named.Ivory], [4293977740, 86, Bs.Named.Khaki], [4293322490, 87, Bs.Named.Lavender], [4294963445, 88, Bs.Named.LavenderBlush], [4286381056, 89, Bs.Named.LawnGreen], [4294965965, 90, Bs.Named.LemonChiffon], [4289583334, 91, Bs.Named.LtBlue], [4293951616, 92, Bs.Named.LtCoral], [4292935679, 93, Bs.Named.LtCyan], [4294638200, 94, Bs.Named.LtGoldenrodYellow], [4292072403, 95, Bs.Named.LtGray], [4287688336, 96, Bs.Named.LtGreen], [4294948545, 97, Bs.Named.LtPink], [4294942842, 98, Bs.Named.LtSalmon], [4280332970, 99, Bs.Named.LtSeaGreen], [4287090426, 100, Bs.Named.LtSkyBlue], [4286023833, 101, Bs.Named.LtSlateGray], [4289774814, 102, Bs.Named.LtSteelBlue], [4294967264, 103, Bs.Named.LtYellow], [4278255360, 104, Bs.Named.Lime], [4281519410, 105, Bs.Named.LimeGreen], [4294635750, 106, Bs.Named.Linen], [4294902015, 107, Bs.Named.Magenta], [4286578688, 108, Bs.Named.Maroon], [4284927402, 109, Bs.Named.MedAquamarine], [4278190285, 110, Bs.Named.MedBlue], [4290401747, 111, Bs.Named.MedOrchid], [4287852763, 112, Bs.Named.MedPurple], [4282168177, 113, Bs.Named.MedSeaGreen], [4286277870, 114, Bs.Named.MedSlateBlue], [4278254234, 115, Bs.Named.MedSpringGreen], [4282962380, 116, Bs.Named.MedTurquoise], [4291237253, 117, Bs.Named.MedVioletRed], [4279834992, 118, Bs.Named.MidnightBlue], [4294311930, 119, Bs.Named.MintCream], [4294960353, 120, Bs.Named.MistyRose], [4294960309, 121, Bs.Named.Moccasin], [4294958765, 122, Bs.Named.NavajoWhite], [4278190208, 123, Bs.Named.Navy], [4294833638, 124, Bs.Named.OldLace], [4286611456, 125, Bs.Named.Olive], [4285238819, 126, Bs.Named.OliveDrab], [4294944e3, 127, Bs.Named.Orange], [4294919424, 128, Bs.Named.OrangeRed], [4292505814, 129, Bs.Named.Orchid], [4293847210, 130, Bs.Named.PaleGoldenrod], [4288215960, 131, Bs.Named.PaleGreen], [4289720046, 132, Bs.Named.PaleTurquoise], [4292571283, 133, Bs.Named.PaleVioletRed], [4294963157, 134, Bs.Named.PapayaWhip], [4294957753, 135, Bs.Named.PeachPuff], [4291659071, 136, Bs.Named.Peru], [4294951115, 137, Bs.Named.Pink], [4292714717, 138, Bs.Named.Plum], [4289781990, 139, Bs.Named.PowderBlue], [4286578816, 140, Bs.Named.Purple], [4294901760, 141, Bs.Named.Red], [4290547599, 142, Bs.Named.RosyBrown], [4282477025, 143, Bs.Named.RoyalBlue], [4287317267, 144, Bs.Named.SaddleBrown], [4294606962, 145, Bs.Named.Salmon], [4294222944, 146, Bs.Named.SandyBrown], [4281240407, 147, Bs.Named.SeaGreen], [4294964718, 148, Bs.Named.SeaShell], [4288696877, 149, Bs.Named.Sienna], [4290822336, 150, Bs.Named.Silver], [4287090411, 151, Bs.Named.SkyBlue], [4285160141, 152, Bs.Named.SlateBlue], [4285563024, 153, Bs.Named.SlateGray], [4294966010, 154, Bs.Named.Snow], [4278255487, 155, Bs.Named.SpringGreen], [4282811060, 156, Bs.Named.SteelBlue], [4291998860, 157, Bs.Named.Tan], [4278222976, 158, Bs.Named.Teal], [4292394968, 159, Bs.Named.Thistle], [4294927175, 160, Bs.Named.Tomato], [4282441936, 161, Bs.Named.Turquoise], [4293821166, 162, Bs.Named.Violet], [4294303411, 163, Bs.Named.Wheat], [4294967295, 164, Bs.Named.White], [4294309365, 165, Bs.Named.WhiteSmoke], [4294967040, 166, Bs.Named.Yellow], [4288335154, 167, Bs.Named.YellowGreen], [4293980400, 168, Bs.Named.ButtonFace], [4294967295, 169, Bs.Named.ButtonHighlight], [4288716960, 170, Bs.Named.ButtonShadow], [4290367978, 171, Bs.Named.GradientActiveCaption], [4292338930, 172, Bs.Named.GradientInactiveCaption], [4293980400, 173, Bs.Named.MenuBar], [4281571839, 174, Bs.Named.MenuHighlight]];
|
|
4221
|
+
const Ws = new class {
|
|
4232
4222
|
constructor() {
|
|
4233
4223
|
this._lookupByName = /* @__PURE__ */ new Map();
|
|
4234
4224
|
for (let t2 = 0; t2 < zs.length; t2++) {
|
|
@@ -4239,61 +4229,61 @@ const Hs = new class {
|
|
|
4239
4229
|
valueOfName(t2) {
|
|
4240
4230
|
return this._lookupByName.get(t2 ? t2.toLowerCase() : "transparent");
|
|
4241
4231
|
}
|
|
4242
|
-
}(),
|
|
4243
|
-
for (let t2 = 0; t2 <
|
|
4244
|
-
const
|
|
4245
|
-
let o2 =
|
|
4246
|
-
let e3 =
|
|
4232
|
+
}(), Hs = [{ scheme: Bs.Scheme.Tx1, description: "First Text Color" }, { scheme: Bs.Scheme.Tx2, description: "Second Text Color" }, { scheme: Bs.Scheme.Bg1, description: "First Background Color" }, { scheme: Bs.Scheme.Bg2, description: "Second Background Color" }, { scheme: Bs.Scheme.Accent1, description: "Accent 1" }, { scheme: Bs.Scheme.Accent2, description: "Accent 2" }, { scheme: Bs.Scheme.Accent3, description: "Accent 3" }, { scheme: Bs.Scheme.Accent4, description: "Accent 4" }, { scheme: Bs.Scheme.Accent5, description: "Accent 5" }, { scheme: Bs.Scheme.Accent6, description: "Accent 6" }, { scheme: Bs.Scheme.Hlink, description: "Hyperlink" }, { scheme: Bs.Scheme.FolHlink, description: "Followed Hyperlink" }, { scheme: "dk1", description: "Text/Background - Dark 1" }, { scheme: "lt1", description: "Text/Background - Light 1" }, { scheme: "dk2", description: "Text/Background - Dark 2" }, { scheme: "lt2", description: "Text/Background - Light 2" }], Vs = /* @__PURE__ */ new Map();
|
|
4233
|
+
for (let t2 = 0; t2 < Hs.length; t2++) Vs.set(Hs[t2].scheme.toLowerCase(), Hs[t2]);
|
|
4234
|
+
const $s = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], alpha: void 0 !== t2.alpha ? t2.alpha : 1 } : null, js = function(t2, e2, n2, r2) {
|
|
4235
|
+
let o2 = $s(((t3) => {
|
|
4236
|
+
let e3 = Ws.valueOfName(t3);
|
|
4247
4237
|
return e3 ? new _r.RGBA(e3.rgbaColor.r, e3.rgbaColor.g, e3.rgbaColor.b, e3.rgbaColor.a) : null;
|
|
4248
4238
|
})(t2)), s2 = null, i2 = null, a2 = null;
|
|
4249
|
-
if (null === o2 && (l2 = t2,
|
|
4239
|
+
if (null === o2 && (l2 = t2, Vs.get(l2.toLowerCase()))) {
|
|
4250
4240
|
if (!e2) throw new Error("a scheme val was used but a schemeLookup was not provided");
|
|
4251
|
-
s2 = t2, i2 = e2(s2), o2 =
|
|
4241
|
+
s2 = t2, i2 = e2(s2), o2 = $s(i2), a2 = Bs.Type.Scheme;
|
|
4252
4242
|
}
|
|
4253
4243
|
var l2;
|
|
4254
4244
|
if (null === o2) {
|
|
4255
|
-
let e3 = t2.match(Mn) || t2.match(
|
|
4245
|
+
let e3 = t2.match(Mn) || t2.match(Nn);
|
|
4256
4246
|
if (e3) {
|
|
4257
4247
|
let t3, n3 = 1;
|
|
4258
|
-
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 =
|
|
4248
|
+
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 = Ln(parseInt(e3[1], 16) / 255)), t3 = Fn(t3), t3 = Dn(t3), o2 = { srgb: t3, alpha: n3 }, a2 = Bs.Type.Hex;
|
|
4259
4249
|
}
|
|
4260
4250
|
}
|
|
4261
4251
|
if (null === o2) {
|
|
4262
4252
|
let e3 = t2.match(bn) || t2.match(vn);
|
|
4263
4253
|
if (e3) {
|
|
4264
4254
|
let t3 = kn(e3[1], e3[2], e3[3]);
|
|
4265
|
-
t3 = Fn(t3), t3 = Dn(t3), o2 = { srgb: t3, alpha: e3[4] ?
|
|
4255
|
+
t3 = Fn(t3), t3 = Dn(t3), o2 = { srgb: t3, alpha: e3[4] ? Ln(parseFloat(e3[4])) : 1 }, a2 = Bs.Type.RGB;
|
|
4266
4256
|
}
|
|
4267
4257
|
}
|
|
4268
4258
|
if (null === o2) {
|
|
4269
4259
|
let e3 = t2.match(xn) || t2.match(In);
|
|
4270
4260
|
if (e3) {
|
|
4271
4261
|
let t3 = kn(e3[1], e3[2], e3[3]);
|
|
4272
|
-
t3 = Fn(t3, 100), t3 = zn(t3), t3 = Dn(t3), o2 = { srgb: t3, alpha: e3[4] ?
|
|
4262
|
+
t3 = Fn(t3, 100), t3 = zn(t3), t3 = Dn(t3), o2 = { srgb: t3, alpha: e3[4] ? Ln(parseFloat(e3[4])) : 1 }, a2 = Bs.Type.LRGB;
|
|
4273
4263
|
}
|
|
4274
4264
|
}
|
|
4275
4265
|
if (null === o2) {
|
|
4276
4266
|
let e3 = t2.match(Rn) || t2.match(An);
|
|
4277
4267
|
if (e3) {
|
|
4278
4268
|
let t3 = kn(e3[1], e3[2], e3[3]);
|
|
4279
|
-
t3 =
|
|
4269
|
+
t3 = Vn(t3), t3 = Dn(t3), o2 = { srgb: t3, alpha: e3[4] ? Ln(parseFloat(e3[4])) : 1 }, a2 = Bs.Type.HSL;
|
|
4280
4270
|
}
|
|
4281
4271
|
}
|
|
4282
4272
|
if (null === o2) {
|
|
4283
|
-
let e3 = t2.match(
|
|
4273
|
+
let e3 = t2.match(Tn);
|
|
4284
4274
|
if (e3) {
|
|
4285
4275
|
const t3 = parseInt(e3[1]);
|
|
4286
4276
|
let r3 = n2?.(t3) ?? br(t3);
|
|
4287
|
-
r3 && (o2 = { srgb: [r3.red / 255, r3.green / 255, r3.blue / 255], alpha: r3.alpha }, a2 =
|
|
4277
|
+
r3 && (o2 = { srgb: [r3.red / 255, r3.green / 255, r3.blue / 255], alpha: r3.alpha }, a2 = Bs.Type.Index);
|
|
4288
4278
|
}
|
|
4289
4279
|
}
|
|
4290
4280
|
if (null === o2) throw new Error("Not a valid color format: " + t2);
|
|
4291
4281
|
return { srgbAlpha: o2, key: s2, color: i2, type: a2 };
|
|
4292
|
-
}, Gs = /* @__PURE__ */ new Map(), Us = Object.keys(
|
|
4293
|
-
for (let t2 = 0; t2 < Us.length; t2++) Gs.set(
|
|
4282
|
+
}, Gs = /* @__PURE__ */ new Map(), Us = Object.keys(Bs.AdjustmentType);
|
|
4283
|
+
for (let t2 = 0; t2 < Us.length; t2++) Gs.set(Bs.AdjustmentType[Us[t2]].toLowerCase(), Bs.AdjustmentType[Us[t2]]);
|
|
4294
4284
|
const Js = new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), qs = new RegExp("\\s*[,]\\s*|\\s+");
|
|
4295
4285
|
let Ks = null;
|
|
4296
|
-
const Xs = { [
|
|
4286
|
+
const Xs = { [Bs.Scheme.Bg1]: "window", [Bs.Scheme.Bg2]: "E7E6E6", [Bs.Scheme.Tx1]: "windowText", [Bs.Scheme.Tx2]: "44546A", [Bs.Scheme.Accent1]: "4472C4", [Bs.Scheme.Accent2]: "ED7D31", [Bs.Scheme.Accent3]: "A5A5A5", [Bs.Scheme.Accent4]: "FFC000", [Bs.Scheme.Accent5]: "5B9BD5", [Bs.Scheme.Accent6]: "70AD47", [Bs.Scheme.Hlink]: "0563C1", [Bs.Scheme.FolHlink]: "954F72" };
|
|
4297
4287
|
class Ys {
|
|
4298
4288
|
constructor(t2, e2, n2, r2 = null) {
|
|
4299
4289
|
let o2 = null, s2 = null;
|
|
@@ -4316,7 +4306,7 @@ class Ys {
|
|
|
4316
4306
|
const n3 = Gs.get(e3.toLowerCase());
|
|
4317
4307
|
if (!n3) throw new Error("Invalid adjustment type:" + e3);
|
|
4318
4308
|
let r3 = null;
|
|
4319
|
-
if (n3 ===
|
|
4309
|
+
if (n3 === Bs.AdjustmentType.Gray || n3 === Bs.AdjustmentType.Comp || n3 === Bs.AdjustmentType.Inv || n3 === Bs.AdjustmentType.Gamma || n3 === Bs.AdjustmentType.InvGamma) ;
|
|
4320
4310
|
else {
|
|
4321
4311
|
t3++;
|
|
4322
4312
|
const n4 = s2[t3];
|
|
@@ -4340,7 +4330,7 @@ class Ys {
|
|
|
4340
4330
|
})(n2, 180), n2 = hr(n2, false);
|
|
4341
4331
|
let r2 = Pn(n2);
|
|
4342
4332
|
const o2 = jn(r2);
|
|
4343
|
-
if (o2[Jn] = 0.95 * o2[Jn], r2 =
|
|
4333
|
+
if (o2[Jn] = 0.95 * o2[Jn], r2 = Vn(o2), n2 = zn(r2), n2 = On(n2), n2 = Dn(n2, false), t2) return new _r.RGBA(n2[0], n2[1], n2[2], e2.alpha);
|
|
4344
4334
|
const s2 = jn(Pn(n2));
|
|
4345
4335
|
return new _r.HSLA(s2[0], s2[1], s2[2], e2.alpha);
|
|
4346
4336
|
}
|
|
@@ -4355,7 +4345,7 @@ class Ys {
|
|
|
4355
4345
|
let n3 = [...t3.srgb], r3 = void 0 !== t3.alpha ? t3.alpha : 1;
|
|
4356
4346
|
for (var o2 = 0; e3 && o2 < e3.length; o2++) {
|
|
4357
4347
|
const t4 = e3[o2], s2 = Object.keys(t4)[0], i2 = t4[s2];
|
|
4358
|
-
s2 ===
|
|
4348
|
+
s2 === Bs.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Bs.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Bs.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Bs.AdjustmentType.Hue ? n3 = or(Gn, n3, i2) : s2 === Bs.AdjustmentType.Sat ? n3 = or(Un, n3, i2) : s2 === Bs.AdjustmentType.Lum ? n3 = or(Jn, n3, i2) : s2 === Bs.AdjustmentType.HueOff ? n3 = sr(Gn, n3, i2) : s2 === Bs.AdjustmentType.SatOff ? n3 = sr(Un, n3, i2) : s2 === Bs.AdjustmentType.LumOff ? n3 = sr(Jn, n3, i2) : s2 === Bs.AdjustmentType.HueMod ? n3 = ir(Gn, n3, i2) : s2 === Bs.AdjustmentType.SatMod ? n3 = ir(Un, n3, i2) : s2 === Bs.AdjustmentType.LumMod ? n3 = ir(Jn, n3, i2) : s2 === Bs.AdjustmentType.Red ? n3 = ar(qn, n3, i2, Yn) : s2 === Bs.AdjustmentType.Green ? n3 = ar(Kn, n3, i2, Yn) : s2 === Bs.AdjustmentType.Blue ? n3 = ar(Xn, n3, i2, Yn) : s2 === Bs.AdjustmentType.RedOff ? n3 = ar(qn, n3, i2, Qn) : s2 === Bs.AdjustmentType.GreenOff ? n3 = ar(Kn, n3, i2, Qn) : s2 === Bs.AdjustmentType.BlueOff ? n3 = ar(Xn, n3, i2, Qn) : s2 === Bs.AdjustmentType.RedMod ? n3 = ar(qn, n3, i2, Zn) : s2 === Bs.AdjustmentType.GreenMod ? n3 = ar(Kn, n3, i2, Zn) : s2 === Bs.AdjustmentType.BlueMod ? n3 = ar(Xn, n3, i2, Zn) : s2 === Bs.AdjustmentType.Shade ? n3 = tr(n3, i2) : s2 === Bs.AdjustmentType.Tint ? n3 = rr(n3, i2) : s2 === Bs.AdjustmentType.ETint ? n3 = nr(n3, i2) : s2 === Bs.AdjustmentType.Gray ? n3 = lr(n3) : s2 === Bs.AdjustmentType.Comp ? n3 = cr(n3) : s2 === Bs.AdjustmentType.Inv ? n3 = hr(n3, i2) : s2 === Bs.AdjustmentType.Gamma ? n3 = dr(n3) : s2 === Bs.AdjustmentType.InvGamma ? n3 = ur(n3) : console.warn("unknown adjustmentType: " + s2);
|
|
4359
4349
|
}
|
|
4360
4350
|
return { srgb: n3, alpha: r3 };
|
|
4361
4351
|
})(t2.srgbAlpha, this._private.adjs), n2 = ((t3, e3 = 255) => {
|
|
@@ -4364,7 +4354,7 @@ class Ys {
|
|
|
4364
4354
|
return n3;
|
|
4365
4355
|
})(e2.srgb);
|
|
4366
4356
|
n2 = On(n2);
|
|
4367
|
-
let r2 =
|
|
4357
|
+
let r2 = Ln(e2.alpha);
|
|
4368
4358
|
this._private.adjusted = e2, this._private.parsedVal = t2, this._private.resolved = new _r.RGBA(n2[0], n2[1], n2[2], r2);
|
|
4369
4359
|
}
|
|
4370
4360
|
static parse(t2, e2, n2, r2 = null) {
|
|
@@ -4384,7 +4374,7 @@ class Ys {
|
|
|
4384
4374
|
const r3 = Gs.get(n3.toLowerCase());
|
|
4385
4375
|
if (!r3) throw new Error("Invalid adjustment type:" + n3);
|
|
4386
4376
|
let s3 = null;
|
|
4387
|
-
if (r3 ===
|
|
4377
|
+
if (r3 === Bs.AdjustmentType.Gray || r3 === Bs.AdjustmentType.Comp || r3 === Bs.AdjustmentType.Inv || r3 === Bs.AdjustmentType.Gamma || r3 === Bs.AdjustmentType.InvGamma) ;
|
|
4388
4378
|
else {
|
|
4389
4379
|
e3++;
|
|
4390
4380
|
const t4 = o3[e3];
|
|
@@ -4435,7 +4425,7 @@ class Ys {
|
|
|
4435
4425
|
toHSLA(t2 = false) {
|
|
4436
4426
|
if (this._resolve(), t2) return this._forceDark(false);
|
|
4437
4427
|
let e2 = jn(this._private.adjusted.srgb);
|
|
4438
|
-
return new _r.HSLA(e2[0], e2[1], e2[2],
|
|
4428
|
+
return new _r.HSLA(e2[0], e2[1], e2[2], Ln(this._private.adjusted.alpha ?? 1));
|
|
4439
4429
|
}
|
|
4440
4430
|
toHex(t2 = false) {
|
|
4441
4431
|
this._resolve();
|
|
@@ -4476,7 +4466,7 @@ for (let t2 = 0; t2 < ni.length; t2++) {
|
|
|
4476
4466
|
((t2) => {
|
|
4477
4467
|
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 = ti, t2.BuiltInDefinitions = ei;
|
|
4478
4468
|
})(Qs || (Qs = {}));
|
|
4479
|
-
const ri = { Text: "text", Repeat: "repeat", Spacing: "spacing" }, oi = (t2) => !(!t2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/) && !t2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)), si = Object.freeze({ formatValue:
|
|
4469
|
+
const ri = { Text: "text", Repeat: "repeat", Spacing: "spacing" }, oi = (t2) => !(!t2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/) && !t2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)), si = Object.freeze({ formatValue: Nr, isFractionFormat: oi, adjustDecimalPlaces: (t2, e2) => {
|
|
4480
4470
|
if (!t2) return "";
|
|
4481
4471
|
const n2 = (t3, e3) => {
|
|
4482
4472
|
let n3 = t3 || "";
|
|
@@ -4541,7 +4531,7 @@ const yi = (t2, e2, n2, r2, o2) => {
|
|
|
4541
4531
|
const s2 = JSON.parse(JSON.stringify(t2.definition));
|
|
4542
4532
|
s2.adjs || (s2.adjs = []);
|
|
4543
4533
|
let i2 = "", a2 = 0, l2 = 0;
|
|
4544
|
-
e2 > 0 ? (l2 = e2, a2 = 100 - e2, i2 = `Lighter ${e2}%`) : e2 < 0 && (a2 = 100 + e2, i2 = `Darker ${-e2}%`), a2 && s2.adjs.push({ [
|
|
4534
|
+
e2 > 0 ? (l2 = e2, a2 = 100 - e2, i2 = `Lighter ${e2}%`) : e2 < 0 && (a2 = 100 + e2, i2 = `Darker ${-e2}%`), a2 && s2.adjs.push({ [Bs.AdjustmentType.LumMod]: a2 }), l2 && s2.adjs.push({ [Bs.AdjustmentType.LumOff]: l2 });
|
|
4545
4535
|
const c2 = new Ys({ val: s2.val, adjs: s2.adjs }, n2), h2 = c2.toString();
|
|
4546
4536
|
r2?.set(h2, c2);
|
|
4547
4537
|
const d2 = c2.toRGBA().toString();
|
|
@@ -4561,13 +4551,13 @@ const yi = (t2, e2, n2, r2, o2) => {
|
|
|
4561
4551
|
};
|
|
4562
4552
|
var Ci, bi;
|
|
4563
4553
|
(Ci || (Ci = {})).buildPalette = Ei, (bi || (bi = {})).BuiltInFilterType = { BuiltIn: "builtIn", All: "all", Custom: "custom" };
|
|
4564
|
-
const vi = [["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"]], xi = [["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"]], Ii = [["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"]], Ri = "Themes is readonly. To make modifications create a new DocsThemes instance.", Ai = { [
|
|
4554
|
+
const vi = [["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"]], xi = [["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"]], Ii = [["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"]], Ri = "Themes is readonly. To make modifications create a new DocsThemes instance.", Ai = { [Bs.Scheme.Bg1]: "lt1", [Bs.Scheme.Bg2]: "lt2", [Bs.Scheme.Tx1]: "dk1", [Bs.Scheme.Tx2]: "dk2", [Bs.Scheme.Accent1]: "accent1", [Bs.Scheme.Accent2]: "accent2", [Bs.Scheme.Accent3]: "accent3", [Bs.Scheme.Accent4]: "accent4", [Bs.Scheme.Accent5]: "accent5", [Bs.Scheme.Accent6]: "accent6", [Bs.Scheme.Hlink]: "hlink", [Bs.Scheme.FolHlink]: "folHlink" }, Mi = "Office", Ni = [Mi, "Calibri Light", "Calibri"], Ti = ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], ki = (t2) => {
|
|
4565
4555
|
const e2 = {};
|
|
4566
4556
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4567
4557
|
const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
|
|
4568
4558
|
e2[o2] = s2;
|
|
4569
|
-
for (let t3 = 0; t3 <
|
|
4570
|
-
const e3 =
|
|
4559
|
+
for (let t3 = 0; t3 < Ti.length; t3++) {
|
|
4560
|
+
const e3 = Ti[t3], n3 = r2[t3 + 1];
|
|
4571
4561
|
if (!n3) continue;
|
|
4572
4562
|
const o3 = Ys.parse(n3);
|
|
4573
4563
|
n3 && (s2[e3] = o3.toString());
|
|
@@ -4578,21 +4568,21 @@ const vi = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E9
|
|
|
4578
4568
|
const e2 = {};
|
|
4579
4569
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4580
4570
|
const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
|
|
4581
|
-
e2[o2] = s2, s2.majorFont = r2[1] ??
|
|
4571
|
+
e2[o2] = s2, s2.majorFont = r2[1] ?? Ni[1], s2.minorFont = r2[2] ?? Ni[2];
|
|
4582
4572
|
}
|
|
4583
4573
|
return e2;
|
|
4584
|
-
}, Oi = ki([[Mi, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), Di = Fi([
|
|
4574
|
+
}, Oi = ki([[Mi, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), Di = Fi([Ni]), Li = Oi[Mi], Bi = Di[Mi];
|
|
4585
4575
|
let Pi = null;
|
|
4586
4576
|
const zi = new class {
|
|
4587
4577
|
constructor() {
|
|
4588
4578
|
this._colors = {};
|
|
4589
|
-
for (let t2 = 0; t2 <
|
|
4590
|
-
const e2 =
|
|
4579
|
+
for (let t2 = 0; t2 < Ti.length; t2++) {
|
|
4580
|
+
const e2 = Ti[t2], n2 = Ys.parse(Li[e2]);
|
|
4591
4581
|
this._colors[e2] = n2;
|
|
4592
4582
|
}
|
|
4593
4583
|
}
|
|
4594
4584
|
getName() {
|
|
4595
|
-
return
|
|
4585
|
+
return Li.name;
|
|
4596
4586
|
}
|
|
4597
4587
|
getDk1() {
|
|
4598
4588
|
return this._colors.dk1;
|
|
@@ -4634,7 +4624,7 @@ const zi = new class {
|
|
|
4634
4624
|
return null;
|
|
4635
4625
|
}
|
|
4636
4626
|
}();
|
|
4637
|
-
class
|
|
4627
|
+
class Wi {
|
|
4638
4628
|
constructor(t2, e2 = zi) {
|
|
4639
4629
|
this._delegate = e2, this._fromJSON(t2);
|
|
4640
4630
|
}
|
|
@@ -4693,32 +4683,32 @@ class Hi {
|
|
|
4693
4683
|
return e2 && (t2.name = e2), t2;
|
|
4694
4684
|
}
|
|
4695
4685
|
}
|
|
4696
|
-
const
|
|
4686
|
+
const Hi = new class {
|
|
4697
4687
|
constructor() {
|
|
4698
4688
|
this._colors = {};
|
|
4699
|
-
for (let t2 = 0; t2 <
|
|
4700
|
-
const e2 =
|
|
4689
|
+
for (let t2 = 0; t2 < Ti.length; t2++) {
|
|
4690
|
+
const e2 = Ti[t2], n2 = Ys.parse(Li[e2]);
|
|
4701
4691
|
this._colors[e2] = n2;
|
|
4702
4692
|
}
|
|
4703
4693
|
}
|
|
4704
4694
|
getName() {
|
|
4705
|
-
return
|
|
4695
|
+
return Bi.name;
|
|
4706
4696
|
}
|
|
4707
4697
|
getMajorFont() {
|
|
4708
|
-
return
|
|
4698
|
+
return Bi.majorFont;
|
|
4709
4699
|
}
|
|
4710
4700
|
getMinorFont() {
|
|
4711
|
-
return
|
|
4701
|
+
return Bi.minorFont;
|
|
4712
4702
|
}
|
|
4713
4703
|
getMajorFallbacks() {
|
|
4714
|
-
return
|
|
4704
|
+
return Bi.majorFallbacks;
|
|
4715
4705
|
}
|
|
4716
4706
|
getMinorFallbacks() {
|
|
4717
|
-
return
|
|
4707
|
+
return Bi.minorFallbacks;
|
|
4718
4708
|
}
|
|
4719
4709
|
}();
|
|
4720
|
-
class
|
|
4721
|
-
constructor(t2, e2 =
|
|
4710
|
+
class Vi {
|
|
4711
|
+
constructor(t2, e2 = Hi) {
|
|
4722
4712
|
this._delegate = e2, this._fromJSON(t2);
|
|
4723
4713
|
}
|
|
4724
4714
|
_fromJSON(t2) {
|
|
@@ -4752,14 +4742,14 @@ class $i {
|
|
|
4752
4742
|
return e2 && (t2.name = e2), t2;
|
|
4753
4743
|
}
|
|
4754
4744
|
}
|
|
4755
|
-
class
|
|
4745
|
+
class $i {
|
|
4756
4746
|
constructor(t2, e2 = null, n2 = null) {
|
|
4757
4747
|
if (this._cacheColors = /* @__PURE__ */ new Map(), !e2 && t2?.name) {
|
|
4758
4748
|
const n3 = Pi ? Pi.get(t2.name.toLowerCase()) : null;
|
|
4759
4749
|
n3 && (e2 = n3);
|
|
4760
4750
|
}
|
|
4761
4751
|
if (!e2 && Pi && (e2 = Pi.get(Mi.toLowerCase())), this._name = t2?.name ?? e2?.getName(), !this._name) throw new Error("Theme must have a name.");
|
|
4762
|
-
this._builtInID = n2, this._delegate = e2, this._colors = new
|
|
4752
|
+
this._builtInID = n2, this._delegate = e2, this._colors = new Wi(t2?.colors, this._delegate?.getColorScheme()), this._fonts = new Vi(t2?.fonts, this._delegate?.getFontScheme());
|
|
4763
4753
|
const r2 = Ai, o2 = {}, s2 = Object.keys(r2);
|
|
4764
4754
|
for (let t3 = 0; t3 < s2.length; t3++) {
|
|
4765
4755
|
const e3 = s2[t3];
|
|
@@ -4774,7 +4764,7 @@ class Vi {
|
|
|
4774
4764
|
if (!n3) throw new Error(`Invalid color scheme key: ${t3}`);
|
|
4775
4765
|
const r3 = i2.getColorScheme();
|
|
4776
4766
|
let o3 = r3[n3].bind(r3)();
|
|
4777
|
-
o3 || (o3 =
|
|
4767
|
+
o3 || (o3 = Li[Ai[t3] ?? t3]);
|
|
4778
4768
|
return e3 = new Ys(o3).toRGBA(), i2._cacheColors[t3] = e3, e3;
|
|
4779
4769
|
};
|
|
4780
4770
|
}
|
|
@@ -4811,13 +4801,13 @@ const ji = () => {
|
|
|
4811
4801
|
const t2 = ((t3, e3, n2) => {
|
|
4812
4802
|
const r2 = [];
|
|
4813
4803
|
for (let o2 = 0; o2 < t3.length; o2++) {
|
|
4814
|
-
const s2 = t3[o2], i2 = s2[0], a2 = e3[s2[1]] ??
|
|
4804
|
+
const s2 = t3[o2], i2 = s2[0], a2 = e3[s2[1]] ?? Li, l2 = n2[s2[2]] ?? Bi;
|
|
4815
4805
|
r2.push({ name: i2, colors: a2, fonts: l2 });
|
|
4816
4806
|
}
|
|
4817
4807
|
return r2;
|
|
4818
4808
|
})(Ii, ki(vi), Fi(xi)), e2 = /* @__PURE__ */ new Map();
|
|
4819
4809
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4820
|
-
const r2 = new
|
|
4810
|
+
const r2 = new $i(t2[n2]), o2 = new $i(null, r2, n2 + 1);
|
|
4821
4811
|
e2.set(o2.getName().toLowerCase(), o2);
|
|
4822
4812
|
}
|
|
4823
4813
|
return Pi = e2, e2;
|
|
@@ -5666,8 +5656,8 @@ class _a {
|
|
|
5666
5656
|
if (void 0 === e2 && (e2 = o2 + 1), 0 === this._count || t2 <= r2 && e2 - 1 >= o2) return this.clone();
|
|
5667
5657
|
const s2 = Math.max(r2, t2), i2 = Math.min(o2, e2 - 1), a2 = i2 - s2, l2 = [];
|
|
5668
5658
|
let c2 = 0;
|
|
5669
|
-
|
|
5670
|
-
const h2 = this.runs(
|
|
5659
|
+
Na.bounds.min = s2, Na.bounds.max = i2;
|
|
5660
|
+
const h2 = this.runs(Na);
|
|
5671
5661
|
let d2 = h2.next();
|
|
5672
5662
|
for (; !d2.done; ) {
|
|
5673
5663
|
const t3 = d2.value;
|
|
@@ -5834,8 +5824,8 @@ const Sa = (t2) => "boolean" != typeof t2 ? (t2 && !t2.value && (t2.value = [-1,
|
|
|
5834
5824
|
}
|
|
5835
5825
|
if (e2) for (let t3 = i2; t3 < n2; t3++) o2.push(void 0);
|
|
5836
5826
|
return o2;
|
|
5837
|
-
}, ba = Object.seal({ done: false, value: [{ min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, null] }), va = Object.seal({ done: false, value: [-1, null] }), xa = { reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: va }, Ia = Object.freeze({ reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: va }), Ra = { min: 0, max: Number.MAX_SAFE_INTEGER }, Aa = { min: 0, max: Number.MAX_SAFE_INTEGER }, Ma = [null, null],
|
|
5838
|
-
class
|
|
5827
|
+
}, ba = Object.seal({ done: false, value: [{ min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, null] }), va = Object.seal({ done: false, value: [-1, null] }), xa = { reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: va }, Ia = Object.freeze({ reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: va }), Ra = { min: 0, max: Number.MAX_SAFE_INTEGER }, Aa = { min: 0, max: Number.MAX_SAFE_INTEGER }, Ma = [null, null], Na = { bounds: { min: 0, max: 0 }, overflowRun: true };
|
|
5828
|
+
class Ta {
|
|
5839
5829
|
constructor(t2 = 9) {
|
|
5840
5830
|
this._maxEntries = Math.max(4, t2), this._minEntries = Math.max(2, Math.ceil(0.4 * this._maxEntries)), this.clear();
|
|
5841
5831
|
}
|
|
@@ -5848,13 +5838,13 @@ class Na {
|
|
|
5848
5838
|
search(t2, e2) {
|
|
5849
5839
|
let n2 = this.data;
|
|
5850
5840
|
if (0 === n2.children.length) return o.EmptyArray;
|
|
5851
|
-
if (
|
|
5841
|
+
if (!$a(t2, n2)) return o.EmptyArray;
|
|
5852
5842
|
const r2 = e2 ?? [], s2 = this.toBBox, i2 = [];
|
|
5853
5843
|
for (; n2; ) {
|
|
5854
5844
|
const e3 = n2.children, o2 = e3.length, a2 = n2.leaf;
|
|
5855
5845
|
for (let n3 = 0; n3 < o2; n3++) {
|
|
5856
5846
|
const o3 = e3[n3], l2 = a2 ? s2(o3) : o3;
|
|
5857
|
-
|
|
5847
|
+
$a(t2, l2) && (a2 ? r2.push(o3) : Va(t2, l2) ? this._all(o3, r2) : i2.push(o3));
|
|
5858
5848
|
}
|
|
5859
5849
|
n2 = i2.pop();
|
|
5860
5850
|
}
|
|
@@ -5862,13 +5852,13 @@ class Na {
|
|
|
5862
5852
|
}
|
|
5863
5853
|
collides(t2) {
|
|
5864
5854
|
let e2 = this.data;
|
|
5865
|
-
if (
|
|
5855
|
+
if (!$a(t2, e2)) return false;
|
|
5866
5856
|
const n2 = [];
|
|
5867
5857
|
for (; e2; ) {
|
|
5868
5858
|
for (let r2 = 0; r2 < e2.children.length; r2++) {
|
|
5869
5859
|
const o2 = e2.children[r2], s2 = e2.leaf ? this.toBBox(o2) : o2;
|
|
5870
|
-
if (
|
|
5871
|
-
if (e2.leaf ||
|
|
5860
|
+
if ($a(t2, s2)) {
|
|
5861
|
+
if (e2.leaf || Va(t2, s2)) return true;
|
|
5872
5862
|
n2.push(o2);
|
|
5873
5863
|
}
|
|
5874
5864
|
}
|
|
@@ -5911,7 +5901,7 @@ class Na {
|
|
|
5911
5901
|
const r3 = ka(t2, n2.children, e2);
|
|
5912
5902
|
if (-1 !== r3) return n2.children.splice(r3, 1), o2.push(n2), this._condense(o2), this;
|
|
5913
5903
|
}
|
|
5914
|
-
l2 || n2.leaf ||
|
|
5904
|
+
l2 || n2.leaf || !Va(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]);
|
|
5915
5905
|
}
|
|
5916
5906
|
return this;
|
|
5917
5907
|
}
|
|
@@ -5956,7 +5946,7 @@ class Na {
|
|
|
5956
5946
|
for (; r2.push(e2), !e2.leaf && r2.length - 1 !== n2; ) {
|
|
5957
5947
|
let n3, r3 = 1 / 0, o2 = 1 / 0;
|
|
5958
5948
|
for (let s2 = 0; s2 < e2.children.length; s2++) {
|
|
5959
|
-
const i2 = e2.children[s2], a2 = Pa(i2), l2 =
|
|
5949
|
+
const i2 = e2.children[s2], a2 = Pa(i2), l2 = Wa(t2, i2) - a2;
|
|
5960
5950
|
l2 < o2 ? (o2 = l2, r3 = a2 < r3 ? a2 : r3, n3 = i2) : l2 === o2 && a2 < r3 && (r3 = a2, n3 = i2);
|
|
5961
5951
|
}
|
|
5962
5952
|
e2 = n3 || e2.children[0];
|
|
@@ -5980,13 +5970,13 @@ class Na {
|
|
|
5980
5970
|
_chooseSplitIndex(t2, e2, n2) {
|
|
5981
5971
|
let r2 = -1, o2 = 1 / 0, s2 = 1 / 0;
|
|
5982
5972
|
for (let i2 = e2; i2 <= n2 - e2; i2++) {
|
|
5983
|
-
const e3 = Oa(t2, 0, i2, this.toBBox), a2 = Oa(t2, i2, n2, this.toBBox), l2 =
|
|
5973
|
+
const e3 = Oa(t2, 0, i2, this.toBBox), a2 = Oa(t2, i2, n2, this.toBBox), l2 = Ha(e3, a2), c2 = Pa(e3) + Pa(a2);
|
|
5984
5974
|
l2 < o2 ? (o2 = l2, r2 = i2, s2 = c2 < s2 ? c2 : s2) : l2 === o2 && c2 < s2 && (s2 = c2, r2 = i2);
|
|
5985
5975
|
}
|
|
5986
5976
|
return r2 || n2 - e2;
|
|
5987
5977
|
}
|
|
5988
5978
|
_chooseSplitAxis(t2, e2, n2) {
|
|
5989
|
-
const r2 = t2.leaf ? this.compareMinX :
|
|
5979
|
+
const r2 = t2.leaf ? this.compareMinX : La, o2 = t2.leaf ? this.compareMinY : Ba;
|
|
5990
5980
|
this._allDistMargin(t2, e2, n2, r2) < this._allDistMargin(t2, e2, n2, o2) && t2.children.sort(r2);
|
|
5991
5981
|
}
|
|
5992
5982
|
_allDistMargin(t2, e2, n2, r2) {
|
|
@@ -6029,10 +6019,10 @@ function Oa(t2, e2, n2, r2, o2 = null) {
|
|
|
6029
6019
|
function Da(t2, e2) {
|
|
6030
6020
|
return t2.minX = Math.min(t2.minX, e2.minX), t2.minY = Math.min(t2.minY, e2.minY), t2.maxX = Math.max(t2.maxX, e2.maxX), t2.maxY = Math.max(t2.maxY, e2.maxY), t2;
|
|
6031
6021
|
}
|
|
6032
|
-
function
|
|
6022
|
+
function La(t2, e2) {
|
|
6033
6023
|
return t2.minX - e2.minX;
|
|
6034
6024
|
}
|
|
6035
|
-
function
|
|
6025
|
+
function Ba(t2, e2) {
|
|
6036
6026
|
return t2.minY - e2.minY;
|
|
6037
6027
|
}
|
|
6038
6028
|
function Pa(t2) {
|
|
@@ -6041,17 +6031,17 @@ function Pa(t2) {
|
|
|
6041
6031
|
function za(t2) {
|
|
6042
6032
|
return t2.maxX - t2.minX + (t2.maxY - t2.minY);
|
|
6043
6033
|
}
|
|
6044
|
-
function
|
|
6034
|
+
function Wa(t2, e2) {
|
|
6045
6035
|
return (Math.max(e2.maxX, t2.maxX) - Math.min(e2.minX, t2.minX)) * (Math.max(e2.maxY, t2.maxY) - Math.min(e2.minY, t2.minY));
|
|
6046
6036
|
}
|
|
6047
|
-
function
|
|
6037
|
+
function Ha(t2, e2) {
|
|
6048
6038
|
const n2 = Math.max(t2.minX, e2.minX), r2 = Math.max(t2.minY, e2.minY), o2 = Math.min(t2.maxX, e2.maxX), s2 = Math.min(t2.maxY, e2.maxY);
|
|
6049
6039
|
return Math.max(0, o2 - n2) * Math.max(0, s2 - r2);
|
|
6050
6040
|
}
|
|
6051
|
-
function
|
|
6041
|
+
function Va(t2, e2) {
|
|
6052
6042
|
return t2.minX <= e2.minX && t2.minY <= e2.minY && e2.maxX <= t2.maxX && e2.maxY <= t2.maxY;
|
|
6053
6043
|
}
|
|
6054
|
-
function
|
|
6044
|
+
function $a(t2, e2) {
|
|
6055
6045
|
return e2.minX <= t2.maxX && e2.minY <= t2.maxY && e2.maxX >= t2.minX && e2.maxY >= t2.minY;
|
|
6056
6046
|
}
|
|
6057
6047
|
function ja(t2) {
|
|
@@ -6084,7 +6074,7 @@ function Ja(t2, e2, n2) {
|
|
|
6084
6074
|
const r2 = t2[e2];
|
|
6085
6075
|
t2[e2] = t2[n2], t2[n2] = r2;
|
|
6086
6076
|
}
|
|
6087
|
-
class qa extends
|
|
6077
|
+
class qa extends Ta {
|
|
6088
6078
|
toBBox(t2) {
|
|
6089
6079
|
return { minX: 10 * t2.colStart, minY: 10 * t2.rowStart, maxX: 10 * t2.colEnd + 5, maxY: 10 * t2.rowEnd + 5 };
|
|
6090
6080
|
}
|
|
@@ -6154,7 +6144,7 @@ class Ka {
|
|
|
6154
6144
|
let _2 = null;
|
|
6155
6145
|
const S2 = this.getBoundingCoords();
|
|
6156
6146
|
if (!S2) return this;
|
|
6157
|
-
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 ?? rl, A2 = C2?.getShifted, M2 = C2?.onShifted,
|
|
6147
|
+
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 ?? rl, A2 = C2?.getShifted, M2 = C2?.onShifted, N2 = C2?.onRemoved, T2 = C2?.onMerged, k2 = C2?.onUpdated, F2 = M2 ? [] : null, O2 = N2 ? [] : null, D2 = k2 ? [] : null;
|
|
6158
6148
|
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) => {
|
|
6159
6149
|
if ((a2 ? t3.colEnd < e2.colStart : t3.rowEnd < e2.rowStart) && !x2) return;
|
|
6160
6150
|
const r3 = sl(e2, t3, a2 ? g.Column : g.Row), o2 = t3.group;
|
|
@@ -6181,17 +6171,17 @@ class Ka {
|
|
|
6181
6171
|
}
|
|
6182
6172
|
}
|
|
6183
6173
|
}, w2);
|
|
6184
|
-
let
|
|
6185
|
-
|
|
6186
|
-
let
|
|
6174
|
+
let L2 = null;
|
|
6175
|
+
L2 = r2 && (f2.length > 0 || p2.length > 0 || E2.size > 0) ? this.clone() : this, L2._updateNodes(p2, f2), E2.size > 0 && L2._updateGroupedEntries(y2, E2);
|
|
6176
|
+
let B2 = o.EmptyArray;
|
|
6187
6177
|
if (b2 && S2 && _2) {
|
|
6188
6178
|
let t3 = true;
|
|
6189
6179
|
if (m2 > 0 && (t3 = a2 ? e2.rowStart > S2.rowStart || e2.rowEnd < S2.rowEnd : e2.colStart > S2.colStart || e2.colEnd < S2.colEnd), t3) {
|
|
6190
6180
|
const t4 = Xa(_2, c.unionRanges(S2, _2), a2 ? 0 : 1, a2 ? 1 : 0);
|
|
6191
|
-
|
|
6181
|
+
T2 && (B2 = L2._mergeNodes(t4, false));
|
|
6192
6182
|
}
|
|
6193
6183
|
}
|
|
6194
|
-
return k2 && D2.length > 0 && k2(D2), M2 && F2.length > 0 && M2(F2),
|
|
6184
|
+
return k2 && D2.length > 0 && k2(D2), M2 && F2.length > 0 && M2(F2), T2 && B2.length > 0 && T2(B2), N2 && O2.length > 0 && N2(O2), L2;
|
|
6195
6185
|
}
|
|
6196
6186
|
insertNonOverlapping(t2, e2) {
|
|
6197
6187
|
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;
|
|
@@ -6933,8 +6923,8 @@ class vl {
|
|
|
6933
6923
|
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));
|
|
6934
6924
|
}
|
|
6935
6925
|
if (!s2) return ia;
|
|
6936
|
-
r2 || d2 !== u2 || (r2 = true),
|
|
6937
|
-
let _2 = this._major.entries(
|
|
6926
|
+
r2 || d2 !== u2 || (r2 = true), Nl.bounds.min = d2, Nl.bounds.max = u2, Nl.reverse = p2, Nl.processSkip = a2, Nl.reuseResult = Al;
|
|
6927
|
+
let _2 = this._major.entries(Nl), S2 = Tl();
|
|
6938
6928
|
const w2 = (t3) => {
|
|
6939
6929
|
if (!t3.nextActive) return;
|
|
6940
6930
|
const e3 = (e4) => {
|
|
@@ -6974,7 +6964,7 @@ class vl {
|
|
|
6974
6964
|
for (; S2; ) {
|
|
6975
6965
|
let a3 = null;
|
|
6976
6966
|
if (s3) {
|
|
6977
|
-
let e4 = n3 ?
|
|
6967
|
+
let e4 = n3 ? Tl() : S2;
|
|
6978
6968
|
if (a3 = y2(e4), a3) {
|
|
6979
6969
|
n3 ? (e4.prevMajorCursor = S2, S2.nextMajorCursor = e4, S2 = e4) : n3 = S2, o3 = p2 ? Math.max(o3, S2.nextMinorIndex) : Math.min(o3, S2.nextMinorIndex);
|
|
6980
6970
|
const r4 = S2.minorIndex;
|
|
@@ -7072,8 +7062,8 @@ class vl {
|
|
|
7072
7062
|
const e3 = t2[_2], n3 = e3[0], r3 = e3[1], o3 = new _a(p2);
|
|
7073
7063
|
m2(o3, r3, n3);
|
|
7074
7064
|
}, w2 = this._major;
|
|
7075
|
-
|
|
7076
|
-
const y2 = w2.entries(
|
|
7065
|
+
Nl.bounds.min = e2, Nl.bounds.max = n2, Nl.reverse = false, Nl.processSkip = null, Nl.reuseResult = Al;
|
|
7066
|
+
const y2 = w2.entries(Nl);
|
|
7077
7067
|
let E2 = y2.next();
|
|
7078
7068
|
for (; !E2.done; ) {
|
|
7079
7069
|
const e3 = E2.value, n3 = e3[0];
|
|
@@ -7119,8 +7109,8 @@ class vl {
|
|
|
7119
7109
|
let f2 = false, p2 = 0;
|
|
7120
7110
|
const _2 = this._major;
|
|
7121
7111
|
if (l2 <= g2 && h2 >= m2) {
|
|
7122
|
-
|
|
7123
|
-
const t3 = _2.entries(
|
|
7112
|
+
Nl.bounds.min = i2, Nl.bounds.max = a2;
|
|
7113
|
+
const t3 = _2.entries(Nl);
|
|
7124
7114
|
let e3 = t3.next();
|
|
7125
7115
|
for (; !e3.done; ) {
|
|
7126
7116
|
p2 -= e3.value[1].getCount(), e3 = t3.next();
|
|
@@ -7128,8 +7118,8 @@ class vl {
|
|
|
7128
7118
|
return _2.delete(i2, a2 - i2 + 1), this._count += p2, this._dataCoords = null, 0 !== p2;
|
|
7129
7119
|
}
|
|
7130
7120
|
const S2 = [], w2 = this._isShared, y2 = [];
|
|
7131
|
-
|
|
7132
|
-
const E2 = _2.entries(
|
|
7121
|
+
Nl.bounds.min = i2, Nl.bounds.max = a2, Ml.reverse = false, Ml.processSkip = null, Ml.reuseResult = Al;
|
|
7122
|
+
const E2 = _2.entries(Nl);
|
|
7133
7123
|
let C2 = E2.next();
|
|
7134
7124
|
for (; !C2.done; ) {
|
|
7135
7125
|
const t3 = C2.value, e3 = t3[0];
|
|
@@ -7172,10 +7162,10 @@ class vl {
|
|
|
7172
7162
|
if (!o2 && (C2 *= -1, c.isRangeWithinRange(f2, t2))) return this.clear(), true;
|
|
7173
7163
|
let b2 = 0;
|
|
7174
7164
|
const v2 = this._major, x2 = [];
|
|
7175
|
-
if (
|
|
7165
|
+
if (Nl.bounds.min = a2, Nl.bounds.max = E2 ? Number.MAX_SAFE_INTEGER : l2, Ml.reverse = !o2, Ml.processSkip = null, Ml.reuseResult = Al, E2 && y2) {
|
|
7176
7166
|
if (!o2) {
|
|
7177
|
-
|
|
7178
|
-
const t4 = v2.entries(
|
|
7167
|
+
Nl.bounds.max = l2;
|
|
7168
|
+
const t4 = v2.entries(Nl);
|
|
7179
7169
|
let e3 = t4.next();
|
|
7180
7170
|
for (; !e3.done; ) {
|
|
7181
7171
|
b2 -= e3.value[1].getCount(), e3 = t4.next();
|
|
@@ -7187,12 +7177,12 @@ class vl {
|
|
|
7187
7177
|
}
|
|
7188
7178
|
let I2 = n2 ? f2.colStart : f2.rowStart, R2 = n2 ? f2.colEnd : f2.rowEnd, A2 = n2 ? f2.rowStart : f2.colStart, M2 = n2 ? f2.rowEnd : f2.colEnd;
|
|
7189
7179
|
o2 || (A2 = Number.MAX_SAFE_INTEGER, M2 = Number.MIN_SAFE_INTEGER);
|
|
7190
|
-
let
|
|
7191
|
-
r2 && (
|
|
7192
|
-
const
|
|
7193
|
-
let
|
|
7194
|
-
for (; !
|
|
7195
|
-
const t3 =
|
|
7180
|
+
let N2 = Number.MAX_SAFE_INTEGER;
|
|
7181
|
+
r2 && (N2 = s2 ? r2.colEnd : r2.rowEnd);
|
|
7182
|
+
const T2 = /* @__PURE__ */ new Set(), k2 = E2 ? /* @__PURE__ */ new Map() : null, F2 = [], O2 = v2.entries(Nl), D2 = { bounds: { min: g2, max: m2 } };
|
|
7183
|
+
let L2 = O2.next();
|
|
7184
|
+
for (; !L2.done; ) {
|
|
7185
|
+
const t3 = L2.value, e3 = t3[0], n3 = t3[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
|
|
7196
7186
|
if (E2 && k2.set(e3, n3), g2 <= s3) {
|
|
7197
7187
|
const t4 = n3.getCount();
|
|
7198
7188
|
E2 ? (e3 >= a2 - C2 && na(n3.runs(D2), (t5, n4) => {
|
|
@@ -7201,24 +7191,24 @@ class vl {
|
|
|
7201
7191
|
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 });
|
|
7202
7192
|
}), n3.delete(g2, m2 - g2 + 1)) : n3.shift(g2, C2);
|
|
7203
7193
|
const r4 = n3.getCount();
|
|
7204
|
-
if (0 === r4)
|
|
7194
|
+
if (0 === r4) T2.add(e3), A2 = Math.min(A2, s3), M2 = Math.max(M2, o3);
|
|
7205
7195
|
else {
|
|
7206
7196
|
const t5 = n3.getCoords();
|
|
7207
|
-
if (A2 = Math.min(A2, t5.min), M2 = Math.max(M2, t5.max), M2 >
|
|
7197
|
+
if (A2 = Math.min(A2, t5.min), M2 = Math.max(M2, t5.max), M2 > N2) throw new d();
|
|
7208
7198
|
}
|
|
7209
7199
|
b2 += r4 - t4, x2.push([e3, n3]);
|
|
7210
7200
|
}
|
|
7211
|
-
|
|
7201
|
+
L2 = O2.next();
|
|
7212
7202
|
}
|
|
7213
|
-
const
|
|
7203
|
+
const B2 = this._optionsMinor;
|
|
7214
7204
|
let P2 = false;
|
|
7215
7205
|
for (let t3 = 0; t3 < F2.length; t3++) {
|
|
7216
7206
|
const e3 = F2[t3], n3 = e3.majorIndex, r3 = e3.run;
|
|
7217
7207
|
let o3 = k2.get(n3);
|
|
7218
|
-
o3 || (o3 = new _a(
|
|
7208
|
+
o3 || (o3 = new _a(B2), k2.set(n3, o3), x2.push([n3, o3]), P2 = true), o3.setRunAt(e3.minorIndex, r3), b2 += r3.length, I2 = Math.min(I2, n3), R2 = Math.max(R2, n3), T2 && T2.delete(n3);
|
|
7219
7209
|
}
|
|
7220
|
-
if (this._updateMajorSpan(x2, P2),
|
|
7221
|
-
const t3 = Array.from(
|
|
7210
|
+
if (this._updateMajorSpan(x2, P2), T2 && T2.size > 0) {
|
|
7211
|
+
const t3 = Array.from(T2.values()), e3 = Rs(t3);
|
|
7222
7212
|
for (let t4 = 0; t4 < e3.length; t4++) {
|
|
7223
7213
|
const n4 = e3[t4];
|
|
7224
7214
|
v2.delete(n4.min, n4.max - n4.min + 1);
|
|
@@ -7307,7 +7297,7 @@ class vl {
|
|
|
7307
7297
|
vl || (vl = {});
|
|
7308
7298
|
const xl = 12;
|
|
7309
7299
|
Object.seal({ done: false, value: null });
|
|
7310
|
-
const Il = [-1, -1, null], Rl = Object.seal({ done: false, value: [-1, null] }), Al = Object.seal({ done: false, value: [-1, null] }), Ml = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Rl },
|
|
7300
|
+
const Il = [-1, -1, null], Rl = Object.seal({ done: false, value: [-1, null] }), Al = Object.seal({ done: false, value: [-1, null] }), Ml = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Rl }, Nl = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Al }, Tl = () => ({ majorIndex: -1, minorIndex: -1, value: null, active: false, nextMinorIndex: -1, nextActive: false, nextMinorValue: null, minorIterator: null, nextMajorCursor: null, prevMajorCursor: null });
|
|
7311
7301
|
class kl {
|
|
7312
7302
|
constructor(t2) {
|
|
7313
7303
|
if (this._l = 0, this._at = null, this._dt = Kl.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");
|
|
@@ -7332,24 +7322,24 @@ class kl {
|
|
|
7332
7322
|
return o2 ? Number(r2) : r2;
|
|
7333
7323
|
case Dl:
|
|
7334
7324
|
return o2 ? this._vf64[t2] : this._vf32[t2];
|
|
7335
|
-
case
|
|
7325
|
+
case Ll:
|
|
7336
7326
|
return !!r2;
|
|
7337
7327
|
case zl:
|
|
7338
|
-
case
|
|
7328
|
+
case Wl:
|
|
7339
7329
|
return this._cv(n2, o2 ? Number(r2) : r2);
|
|
7340
|
-
case
|
|
7330
|
+
case Bl:
|
|
7341
7331
|
return this._vi64[o2 ? t2 : r2];
|
|
7342
7332
|
case Pl:
|
|
7343
7333
|
return this._vf64[o2 ? t2 : r2];
|
|
7344
|
-
case
|
|
7334
|
+
case $l:
|
|
7345
7335
|
return Number.NaN;
|
|
7346
7336
|
case jl:
|
|
7347
7337
|
return Number.MAX_SAFE_INTEGER;
|
|
7348
7338
|
case Gl:
|
|
7349
7339
|
return Number.MIN_SAFE_INTEGER;
|
|
7350
|
-
case
|
|
7340
|
+
case Hl:
|
|
7351
7341
|
return 1 / 0;
|
|
7352
|
-
case
|
|
7342
|
+
case Vl:
|
|
7353
7343
|
return -1 / 0;
|
|
7354
7344
|
case Ul:
|
|
7355
7345
|
return null;
|
|
@@ -7389,7 +7379,7 @@ class kl {
|
|
|
7389
7379
|
let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 = Xl(t2[0], r2);
|
|
7390
7380
|
for (let e3 = 0; e3 < s2; e3++) {
|
|
7391
7381
|
const n3 = t2[e3], o3 = Xl(n3, r2);
|
|
7392
|
-
o3 !== Pl && o3 !==
|
|
7382
|
+
o3 !== Pl && o3 !== Bl || l2++, h2 !== o3 && (a2[e3] = o3, c2 = true);
|
|
7393
7383
|
}
|
|
7394
7384
|
c2 || (a2 = null, i2 = null);
|
|
7395
7385
|
let d2, u2, g2, m2, f2, p2, _2, S2, w2 = false;
|
|
@@ -7401,20 +7391,20 @@ class kl {
|
|
|
7401
7391
|
case Ol:
|
|
7402
7392
|
d2[n3] = BigInt(r3);
|
|
7403
7393
|
break;
|
|
7404
|
-
case
|
|
7394
|
+
case Ll:
|
|
7405
7395
|
d2[n3] = BigInt(r3 ? 1 : 0);
|
|
7406
7396
|
break;
|
|
7407
7397
|
case Dl:
|
|
7408
7398
|
u2[n3] = r3;
|
|
7409
7399
|
break;
|
|
7410
|
-
case
|
|
7400
|
+
case Bl:
|
|
7411
7401
|
d2[n3] = r3;
|
|
7412
7402
|
break;
|
|
7413
7403
|
case Pl:
|
|
7414
7404
|
u2[n3] = r3;
|
|
7415
7405
|
break;
|
|
7416
7406
|
case zl:
|
|
7417
|
-
case
|
|
7407
|
+
case Wl:
|
|
7418
7408
|
d2[n3] = BigInt(e2?.(y2, r3) ?? 0);
|
|
7419
7409
|
break;
|
|
7420
7410
|
default:
|
|
@@ -7429,20 +7419,20 @@ class kl {
|
|
|
7429
7419
|
case Ol:
|
|
7430
7420
|
d2[r3] = o3;
|
|
7431
7421
|
break;
|
|
7432
|
-
case
|
|
7422
|
+
case Ll:
|
|
7433
7423
|
d2[r3] = o3 ? 1 : 0;
|
|
7434
7424
|
break;
|
|
7435
7425
|
case Dl:
|
|
7436
7426
|
u2[r3] = o3;
|
|
7437
7427
|
break;
|
|
7438
|
-
case
|
|
7428
|
+
case Bl:
|
|
7439
7429
|
_2[r3] = n3, m2[n3] = o3, n3++;
|
|
7440
7430
|
break;
|
|
7441
7431
|
case Pl:
|
|
7442
7432
|
_2[r3] = n3, f2[n3] = o3, n3++;
|
|
7443
7433
|
break;
|
|
7444
7434
|
case zl:
|
|
7445
|
-
case
|
|
7435
|
+
case Wl:
|
|
7446
7436
|
d2[r3] = e2?.(y2, o3) ?? 0;
|
|
7447
7437
|
break;
|
|
7448
7438
|
default:
|
|
@@ -7453,13 +7443,13 @@ class kl {
|
|
|
7453
7443
|
return new kl({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
|
|
7454
7444
|
}
|
|
7455
7445
|
}
|
|
7456
|
-
const Fl = 0.1, Ol = 1, Dl = 2,
|
|
7446
|
+
const Fl = 0.1, Ol = 1, Dl = 2, Ll = 3, Bl = 4, Pl = 5, zl = 6, Wl = 7, Hl = 8, Vl = 9, $l = 10, jl = 11, Gl = 12, Ul = 13, Jl = 14, ql = 127, Kl = { Undefined: Jl }, Xl = (t2, e2) => {
|
|
7457
7447
|
switch (typeof t2) {
|
|
7458
7448
|
case "number":
|
|
7459
7449
|
const n2 = t2;
|
|
7460
|
-
if (Number.isNaN(n2)) return
|
|
7461
|
-
if (n2 === 1 / 0) return
|
|
7462
|
-
if (n2 === -1 / 0) return
|
|
7450
|
+
if (Number.isNaN(n2)) return $l;
|
|
7451
|
+
if (n2 === 1 / 0) return Hl;
|
|
7452
|
+
if (n2 === -1 / 0) return Vl;
|
|
7463
7453
|
if (Object.is(n2, -0)) return Dl;
|
|
7464
7454
|
if (n2 === Number.MAX_SAFE_INTEGER) return jl;
|
|
7465
7455
|
if (n2 === Number.MIN_SAFE_INTEGER) return Gl;
|
|
@@ -7468,16 +7458,16 @@ const Fl = 0.1, Ol = 1, Dl = 2, Bl = 3, Ll = 4, Pl = 5, zl = 6, Hl = 7, Wl = 8,
|
|
|
7468
7458
|
case "string":
|
|
7469
7459
|
return zl;
|
|
7470
7460
|
case "boolean":
|
|
7471
|
-
return
|
|
7461
|
+
return Ll;
|
|
7472
7462
|
case "object":
|
|
7473
7463
|
if (null === t2) return Ul;
|
|
7474
|
-
if (t2 instanceof Error) return
|
|
7464
|
+
if (t2 instanceof Error) return Wl;
|
|
7475
7465
|
if (!e2) return ql;
|
|
7476
7466
|
const r2 = e2(t2);
|
|
7477
7467
|
if (r2 < 128 || r2 > 255) throw new Error("Custom type must be between 128 and 255");
|
|
7478
7468
|
return r2;
|
|
7479
7469
|
case "bigint":
|
|
7480
|
-
return
|
|
7470
|
+
return Bl;
|
|
7481
7471
|
case "undefined":
|
|
7482
7472
|
return Jl;
|
|
7483
7473
|
case "symbol":
|
|
@@ -7762,30 +7752,30 @@ class oc {
|
|
|
7762
7752
|
const t2 = { ...M2 };
|
|
7763
7753
|
1 === p2 && (t2.colEnd = t2.colStart), 1 === _2 && (t2.rowEnd = t2.rowStart), A2 = new fl({ 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 } });
|
|
7764
7754
|
} else A2 = g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: M2, reuseResult: false });
|
|
7765
|
-
const
|
|
7766
|
-
let
|
|
7767
|
-
for (; !
|
|
7768
|
-
const t2 =
|
|
7755
|
+
const N2 = i2.colStart, T2 = i2.rowStart, k2 = N2 - M2.colStart, F2 = T2 - M2.rowStart, O2 = x2 === v2 ? new kt.Builder() : new kt.TransposedBuilder(), D2 = new pl({ ...s2, bounds: i2, comparator: (I2 ? tc : ec)(i2, M2) }, R2, A2);
|
|
7756
|
+
let L2, B2 = D2.next();
|
|
7757
|
+
for (; !B2.done; ) {
|
|
7758
|
+
const t2 = B2.value;
|
|
7769
7759
|
let e2 = t2[1], r3 = t2[3];
|
|
7770
7760
|
const s3 = t2[0], i3 = t2[2], a3 = s3 ? s3.colIndex : i3.colIndex + k2, l3 = s3 ? s3.rowIndex : i3.rowIndex + F2;
|
|
7771
7761
|
let c2, u3;
|
|
7772
|
-
e2 instanceof n.Value ? c2 = e2 : r3 instanceof n.Value && (c2 = r3), u3 = c2 || o2(e2 ?? h2, r3 ?? d2, { colIndex: a3 -
|
|
7762
|
+
e2 instanceof n.Value ? c2 = e2 : r3 instanceof n.Value && (c2 = r3), u3 = c2 || o2(e2 ?? h2, r3 ?? d2, { colIndex: a3 - N2, rowIndex: l3 - T2 }, this);
|
|
7773
7763
|
const g3 = I2 ? a3 : l3, m3 = I2 ? l3 : a3;
|
|
7774
|
-
O2.addValue(g3, m3, u3),
|
|
7764
|
+
O2.addValue(g3, m3, u3), B2 = D2.next();
|
|
7775
7765
|
}
|
|
7776
7766
|
if (C2 && y2 > S2 || E2 > w2) {
|
|
7777
7767
|
const t2 = this._values.clone();
|
|
7778
7768
|
if (this._applyBuilder(t2, O2), y2 > S2) {
|
|
7779
|
-
const e2 = hl(
|
|
7769
|
+
const e2 = hl(N2 + S2, T2, N2 + y2 - 1, T2 + E2 - 1, I2), n2 = Sl(C2, e2, I2);
|
|
7780
7770
|
t2.setValues(n2.tuples);
|
|
7781
7771
|
}
|
|
7782
7772
|
if (E2 > w2) {
|
|
7783
|
-
const e2 = hl(
|
|
7773
|
+
const e2 = hl(N2, T2 + w2, N2 + y2 - 1, T2 + E2 - 1, I2), n2 = Sl(C2, e2, I2);
|
|
7784
7774
|
t2.setValues(n2.tuples);
|
|
7785
7775
|
}
|
|
7786
|
-
|
|
7787
|
-
} else
|
|
7788
|
-
return
|
|
7776
|
+
L2 = new oc(t2, { colStart: N2, rowStart: T2, colEnd: N2 + y2 - 1, rowEnd: T2 + E2 - 1 }, this._type);
|
|
7777
|
+
} else L2 = this._cloneFromBuilder(O2, s2, y2, E2);
|
|
7778
|
+
return L2;
|
|
7789
7779
|
}
|
|
7790
7780
|
_fill(t2, n2, r2) {
|
|
7791
7781
|
if (null === r2) return void t2.delete(n2);
|
|
@@ -8145,44 +8135,44 @@ const sc = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
|
|
|
8145
8135
|
const i2 = n2.getOrientation() === e.Orientation.Column, a2 = wl(s2, i2, hl(r2?.colStart ?? 0, r2?.rowStart ?? 0, void 0, void 0, i2), true), l2 = dl(a2.bounds, i2);
|
|
8146
8136
|
n2.setValues(a2.tuples);
|
|
8147
8137
|
return new oc(n2, l2, o2, !r2);
|
|
8148
|
-
}, Ec = new RegExp(/^([$]?[a-zA-Z]*[$]?[0-9]*)[:]?([$]?[a-zA-Z]*[$]?[0-9]*)?$/), Cc = new RegExp(/^(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?)(:(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?))?$/, "i"), bc = new RegExp(/^(R?)(\[?[-+]?\d+\]?|\d+)?(C?)(\[?[-+]?\d+\]?|\d+)?$/, "i"), vc = new RegExp("(?:'[^']+'|[A-Za-z0-9_\\-.]+?!)?(\\$?[A-Za-z]+\\$?\\d+(?::\\$?[A-Za-z]+\\$?\\d+)?|\\$?[A-Za-z]+:\\$?[A-Za-z]+|\\$?\\d+:\\$?\\d+)", "g"), xc = /\s+/g, Ic = /"(?:[^"]|"")*"|\[[^[\]]+\]/g, Rc = /[\uE000-\uF8FF]/g, Ac = "#REF!", Mc = Math.pow(2, 14),
|
|
8149
|
-
let
|
|
8150
|
-
const Fc = (t2) => (
|
|
8138
|
+
}, Ec = new RegExp(/^([$]?[a-zA-Z]*[$]?[0-9]*)[:]?([$]?[a-zA-Z]*[$]?[0-9]*)?$/), Cc = new RegExp(/^(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?)(:(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?))?$/, "i"), bc = new RegExp(/^(R?)(\[?[-+]?\d+\]?|\d+)?(C?)(\[?[-+]?\d+\]?|\d+)?$/, "i"), vc = new RegExp("(?:'[^']+'|[A-Za-z0-9_\\-.]+?!)?(\\$?[A-Za-z]+\\$?\\d+(?::\\$?[A-Za-z]+\\$?\\d+)?|\\$?[A-Za-z]+:\\$?[A-Za-z]+|\\$?\\d+:\\$?\\d+)", "g"), xc = /\s+/g, Ic = /"(?:[^"]|"")*"|\[[^[\]]+\]/g, Rc = /[\uE000-\uF8FF]/g, Ac = "#REF!", Mc = Math.pow(2, 14), Nc = Math.pow(2, 20);
|
|
8139
|
+
let Tc, kc;
|
|
8140
|
+
const Fc = (t2) => (Tc === t2 || (kc = "" + (t2 + 1), Tc = t2), kc);
|
|
8151
8141
|
let Oc, Dc;
|
|
8152
|
-
const
|
|
8142
|
+
const Lc = (t2) => {
|
|
8153
8143
|
if (Oc === t2) return Dc;
|
|
8154
8144
|
if (Oc = t2, t2 < 0) throw new Error("invalid column " + t2);
|
|
8155
8145
|
let e2 = "";
|
|
8156
8146
|
for (++t2; t2; t2 = Math.floor((t2 - 1) / 26)) e2 = String.fromCharCode((t2 - 1) % 26 + 65) + e2;
|
|
8157
8147
|
return Dc = e2, Dc;
|
|
8158
|
-
},
|
|
8148
|
+
}, Bc = /[^a-zA-Z0-9]/, Pc = (t2) => {
|
|
8159
8149
|
if (!t2) return null;
|
|
8160
|
-
return
|
|
8150
|
+
return Lc(t2.colIndex) + Fc(t2.rowIndex);
|
|
8161
8151
|
}, zc = (t2) => {
|
|
8162
8152
|
if (!t2) return Ac;
|
|
8163
|
-
const e2 =
|
|
8153
|
+
const e2 = Lc(t2.colIndex), n2 = Fc(t2.rowIndex);
|
|
8164
8154
|
return (t2.$colIndex ? "$" + e2 : e2) + (t2.$rowIndex ? "$" + n2 : n2);
|
|
8165
|
-
},
|
|
8155
|
+
}, Wc = (t2, e2) => {
|
|
8166
8156
|
let n2 = t2 ?? e2;
|
|
8167
8157
|
var r2;
|
|
8168
|
-
return n2 && (n2 = ko(n2), n2 = n2.replace(/'/g, "''"), r2 = n2,
|
|
8169
|
-
},
|
|
8158
|
+
return n2 && (n2 = ko(n2), n2 = n2.replace(/'/g, "''"), r2 = n2, Bc.test(r2) && (n2 = Fo(n2))), n2;
|
|
8159
|
+
}, Hc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Ac, Vc = (t2, e2, n2 = Pc) => {
|
|
8170
8160
|
if (!t2) return null;
|
|
8171
8161
|
const r2 = t2.colStart, o2 = t2.rowStart, s2 = t2.colEnd, i2 = t2.rowEnd;
|
|
8172
8162
|
if (r2 === s2 && o2 === i2) return n2({ colIndex: r2, rowIndex: o2 });
|
|
8173
8163
|
t2 = { ...e2, ...t2 };
|
|
8174
8164
|
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;
|
|
8175
8165
|
let c2 = null;
|
|
8176
|
-
c2 = l2 ?
|
|
8166
|
+
c2 = l2 ? Lc(r2) : a2 ? Fc(o2) : n2({ colIndex: r2, rowIndex: o2 });
|
|
8177
8167
|
let h2 = null;
|
|
8178
|
-
return h2 = l2 ?
|
|
8179
|
-
},
|
|
8168
|
+
return h2 = l2 ? Lc(s2) : a2 ? Fc(i2) : n2({ colIndex: s2, rowIndex: i2 }), c2 + ":" + h2;
|
|
8169
|
+
}, $c = (t2, e2, n2 = zc) => {
|
|
8180
8170
|
if (!t2) return Ac;
|
|
8181
8171
|
const r2 = t2.colIndex, o2 = t2.rowIndex, s2 = r2 === Number.MIN_SAFE_INTEGER;
|
|
8182
8172
|
let i2 = null;
|
|
8183
|
-
if (o2 === Number.MIN_SAFE_INTEGER ? (i2 =
|
|
8184
|
-
const n3 =
|
|
8185
|
-
i2 =
|
|
8173
|
+
if (o2 === Number.MIN_SAFE_INTEGER ? (i2 = Lc(r2), t2.$colIndex && (i2 = "$" + i2)) : s2 ? (i2 = Fc(o2), t2.$rowIndex && (i2 = "$" + i2)) : i2 = n2(t2), t2.sheetName || e2) {
|
|
8174
|
+
const n3 = Wc(t2.sheetName, e2);
|
|
8175
|
+
i2 = Hc(n3, i2);
|
|
8186
8176
|
}
|
|
8187
8177
|
return i2;
|
|
8188
8178
|
}, jc = (t2, e2, n2 = zc) => {
|
|
@@ -8192,12 +8182,12 @@ const Bc = (t2) => {
|
|
|
8192
8182
|
t2 = { ...e2, ...t2 };
|
|
8193
8183
|
const o2 = e2 && t2.rowStart <= e2.rowStart && t2.rowEnd >= e2.rowEnd, s2 = e2 && t2.colStart <= e2.colStart && t2.colEnd >= e2.colEnd;
|
|
8194
8184
|
let i2 = null;
|
|
8195
|
-
o2 ? (i2 =
|
|
8185
|
+
o2 ? (i2 = Lc(t2.colStart), i2 = t2.$colStart ? "$" + i2 : i2) : s2 ? (i2 = Fc(t2.rowStart), i2 = t2.$rowStart ? "$" + i2 : i2) : i2 = n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
|
|
8196
8186
|
let a2 = null;
|
|
8197
|
-
return o2 ? (a2 =
|
|
8187
|
+
return o2 ? (a2 = Lc(t2.colEnd), a2 = t2.$colEnd ? "$" + a2 : a2) : s2 ? (a2 = Fc(t2.rowEnd), a2 = t2.$rowEnd ? "$" + a2 : a2) : a2 = n2({ colIndex: t2.colEnd, rowIndex: t2.rowEnd, $colIndex: t2.$colEnd, $rowIndex: t2.$rowEnd }), i2 + ":" + a2;
|
|
8198
8188
|
}, Gc = (t2, e2, n2 = zc) => {
|
|
8199
|
-
const r2 = jc(t2, e2, n2), o2 =
|
|
8200
|
-
return
|
|
8189
|
+
const r2 = jc(t2, e2, n2), o2 = Wc(t2?.sheetName, e2?.sheetName);
|
|
8190
|
+
return Hc(o2, r2);
|
|
8201
8191
|
}, Uc = (t2, e2 = false) => {
|
|
8202
8192
|
if (!t2) return null;
|
|
8203
8193
|
let n2 = 0, r2 = 0, o2 = false, s2 = false;
|
|
@@ -8414,11 +8404,11 @@ const Bc = (t2) => {
|
|
|
8414
8404
|
r2 !== Number.MIN_SAFE_INTEGER && (t2.$rowIndex ? n2 += `R${r2 + 1}` : n2 += 0 === r2 ? "R" : `R[${r2 + 1}]`);
|
|
8415
8405
|
let o2 = "";
|
|
8416
8406
|
const s2 = t2.colIndex;
|
|
8417
|
-
return s2 !== Number.MIN_SAFE_INTEGER && (t2.$colIndex ? o2 += `C${s2 + 1}` : o2 += 0 === s2 ? "C" : `C[${s2 + 1}]`), t2.sheetName && (n2 =
|
|
8407
|
+
return s2 !== Number.MIN_SAFE_INTEGER && (t2.$colIndex ? o2 += `C${s2 + 1}` : o2 += 0 === s2 ? "C" : `C[${s2 + 1}]`), t2.sheetName && (n2 = Wc(t2.sheetName, e2) + "!" + n2), n2 + o2;
|
|
8418
8408
|
}, uh = (t2, e2, n2) => {
|
|
8419
8409
|
let r2 = "";
|
|
8420
8410
|
const o2 = t2.colIndex;
|
|
8421
|
-
o2 !== Number.MIN_SAFE_INTEGER && (t2.$colIndex ? r2 += "$" +
|
|
8411
|
+
o2 !== Number.MIN_SAFE_INTEGER && (t2.$colIndex ? r2 += "$" + Lc(o2) : r2 += Lc(o2 + n2));
|
|
8422
8412
|
const s2 = t2.rowIndex;
|
|
8423
8413
|
return s2 !== Number.MIN_SAFE_INTEGER && (t2.$rowIndex ? r2 += "$" + Fc(s2) : r2 += Fc(s2 + e2)), r2;
|
|
8424
8414
|
}, gh = (t2, e2, n2, r2) => {
|
|
@@ -8552,7 +8542,7 @@ class Ih {
|
|
|
8552
8542
|
}
|
|
8553
8543
|
toJSON() {
|
|
8554
8544
|
const t2 = this.ref;
|
|
8555
|
-
return [
|
|
8545
|
+
return [Vc(t2), this.formula.getTextAt(t2.rowStart, t2.colStart)];
|
|
8556
8546
|
}
|
|
8557
8547
|
getCoords() {
|
|
8558
8548
|
return this.ref;
|
|
@@ -8614,9 +8604,9 @@ class Ih {
|
|
|
8614
8604
|
const Rh = Object.freeze({ break: true });
|
|
8615
8605
|
var Ah;
|
|
8616
8606
|
(Ah || (Ah = {})).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" };
|
|
8617
|
-
const Mh = Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Table]: false, [Ah.Type.Merge]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Comments]: false, [Ah.Type.Unlock]: false, [Ah.Type.Formula]: false, [Ah.Type.Spill]: false, [Ah.Type.Pending]: false, [Ah.Type.CalcError]: false, [Ah.Type.Contentful]: false, [Ah.Type.Conditional]: false, [Ah.Type.Continuous]: false }),
|
|
8607
|
+
const Mh = Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Table]: false, [Ah.Type.Merge]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Comments]: false, [Ah.Type.Unlock]: false, [Ah.Type.Formula]: false, [Ah.Type.Spill]: false, [Ah.Type.Pending]: false, [Ah.Type.CalcError]: false, [Ah.Type.Contentful]: false, [Ah.Type.Conditional]: false, [Ah.Type.Continuous]: false }), Nh = Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Table]: false, [Ah.Type.Merge]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Comments]: false, [Ah.Type.Unlock]: false, [Ah.Type.Formula]: false, [Ah.Type.Spill]: false, [Ah.Type.Pending]: false, [Ah.Type.CalcError]: false, [Ah.Type.Conditional]: false, [Ah.Type.Continuous]: false }), Th = Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Table]: true, [Ah.Type.Merge]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Comments]: false, [Ah.Type.Unlock]: false, [Ah.Type.Formula]: false });
|
|
8618
8608
|
Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Table]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Comments]: false, [Ah.Type.Unlock]: false, [Ah.Type.Contentful]: false, [Ah.Type.Formula]: false });
|
|
8619
|
-
const kh = Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Continuous]: false, [Ah.Type.Contentful]: false }), Fh = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", Oh = (t2 = "update") => `Unable to ${t2}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, Dh = "The range is outside of the bounds of the sheet.",
|
|
8609
|
+
const kh = Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Continuous]: false, [Ah.Type.Contentful]: false }), Fh = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", Oh = (t2 = "update") => `Unable to ${t2}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, Dh = "The range is outside of the bounds of the sheet.", Lh = "Listener can not be null", Bh = "We can't insert items. The sheet is protected.", Ph = (t2) => `We can't create a ${t2} that overlaps with another table or merge.`, zh = "Overlapping ranges can not be merged.", Wh = "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.", Hh = "Unable to partially fill over merged cells.", Vh = "Unable to sort merged cells unless they are all the same size.", $h = "Sheet has been closed. No further operations are allowed.", jh = "IteratorContext can only be used during visit.", Gh = "When using addresses directly from the sheet do not include the sheet name.", Uh = (t2) => `Unable to return more than ${t2} values. To access values in a more scalable solution use 'ICellRange.forEach' or an iterator.`, Jh = "'setValue' expects a single value; when working with an array use 'setValue'.", qh = "Multiple selection ranges can not be copied.", Kh = "Unable to determine source.", Xh = "When pasting before or after the cut area both areas must align.";
|
|
8620
8610
|
var Yh, Qh;
|
|
8621
8611
|
(Qh = Yh || (Yh = {})).CalcStatus = { Ready: "ready", Stale: "stale", Pending: "pending", Streaming: "streaming" }, Qh.Content = { Values: "values", Formats: "formats", Formulas: "formula", Hyperlinks: "hyperlinks", Tables: "tables", Notes: "notes", Comments: "comments", Warnings: "warnings", Errors: "errors", Merges: "merges" };
|
|
8622
8612
|
class Zh {
|
|
@@ -8672,16 +8662,16 @@ const td = (t2) => {
|
|
|
8672
8662
|
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;
|
|
8673
8663
|
}
|
|
8674
8664
|
return '"' + e2 + '"';
|
|
8675
|
-
}, hd = "Thin", dd = "Hairline", ud = "Extra Light", gd = "Ultra Light", md = "Light", fd = "Normal", pd = "Regular", _d = "Medium", Sd = "Semi Bold", wd = "Demi Bold", yd = "Bold", Ed = "Extra Bold", Cd = "Ultra Bold", bd = "Black", vd = "Heavy", xd = "Extra Black", Id = "Ultra Black", Rd = "lighter", Ad = "normal", Md = "bold",
|
|
8676
|
-
|
|
8677
|
-
const kd = "xx-small", Fd = "x-small", Od = "small", Dd = "medium",
|
|
8678
|
-
jd.set(o.textToKey(kd), (t2) => 0.4 * t2), jd.set(o.textToKey(Fd), (t2) => 0.5 * t2), jd.set(o.textToKey(Od), (t2) => 0.6 * t2), jd.set(o.textToKey(Dd), (t2) => t2), jd.set(o.textToKey(
|
|
8665
|
+
}, hd = "Thin", dd = "Hairline", ud = "Extra Light", gd = "Ultra Light", md = "Light", fd = "Normal", pd = "Regular", _d = "Medium", Sd = "Semi Bold", wd = "Demi Bold", yd = "Bold", Ed = "Extra Bold", Cd = "Ultra Bold", bd = "Black", vd = "Heavy", xd = "Extra Black", Id = "Ultra Black", Rd = "lighter", Ad = "normal", Md = "bold", Nd = "bolder", Td = /* @__PURE__ */ new Map();
|
|
8666
|
+
Td.set(o.textToKey(hd), 100), Td.set(o.textToKey(dd), 100), Td.set(o.textToKey(ud), 200), Td.set(o.textToKey(gd), 200), Td.set(o.textToKey(md), 300), Td.set(o.textToKey(fd), 400), Td.set(o.textToKey(pd), 400), Td.set(o.textToKey(_d), 500), Td.set(o.textToKey(Sd), 600), Td.set(o.textToKey(wd), 600), Td.set(o.textToKey(fd), 400), Td.set(o.textToKey(yd), 700), Td.set(o.textToKey(Ed), 800), Td.set(o.textToKey(Cd), 800), Td.set(o.textToKey(bd), 900), Td.set(o.textToKey(vd), 900), Td.set(o.textToKey(xd), 950), Td.set(o.textToKey(Id), 950), Td.set(o.textToKey(Rd), 100), Td.set(o.textToKey(Ad), 400), Td.set(o.textToKey(Md), 700), Td.set(o.textToKey(Nd), 700);
|
|
8667
|
+
const kd = "xx-small", Fd = "x-small", Od = "small", Dd = "medium", Ld = "large", Bd = "x-large", Pd = "xx-large", zd = "xxx-large", Wd = "smaller", Hd = "larger", Vd = "math", $d = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), jd = /* @__PURE__ */ new Map();
|
|
8668
|
+
jd.set(o.textToKey(kd), (t2) => 0.4 * t2), jd.set(o.textToKey(Fd), (t2) => 0.5 * t2), jd.set(o.textToKey(Od), (t2) => 0.6 * t2), jd.set(o.textToKey(Dd), (t2) => t2), jd.set(o.textToKey(Ld), (t2) => 1.1 * t2), jd.set(o.textToKey(Bd), (t2) => 1.25 * t2), jd.set(o.textToKey(Pd), (t2) => 1.5 * t2), jd.set(o.textToKey(zd), (t2) => 2 * t2), jd.set(o.textToKey(Wd), (t2) => 0.9 * t2), jd.set(o.textToKey(Hd), (t2) => 1.1 * t2), jd.set(o.textToKey(Vd), (t2) => t2);
|
|
8679
8669
|
const Gd = (t2, e2 = 11, n2 = "pt") => {
|
|
8680
8670
|
if (!t2) return null;
|
|
8681
8671
|
let r2 = e2;
|
|
8682
8672
|
t2 = t2.trim().toLowerCase();
|
|
8683
8673
|
const s2 = "pt" === n2 ? Ko.getDeviceScale() : 1, i2 = "pt" === n2 ? 1 : Ko.getDeviceScale();
|
|
8684
|
-
if (
|
|
8674
|
+
if ($d.test(t2)) {
|
|
8685
8675
|
const e3 = parseFloat(t2);
|
|
8686
8676
|
isNaN(e3) || (t2 = e3 + n2);
|
|
8687
8677
|
}
|
|
@@ -8805,7 +8795,7 @@ const Iu = (t2, e2) => {
|
|
|
8805
8795
|
if ("string" == typeof t2 && (t2 = lu(t2)), !t2) return null;
|
|
8806
8796
|
const n2 = {};
|
|
8807
8797
|
return t2.style && (n2.style = t2.style), t2.color && (n2.color = t2.color), t2.isIStroke ? t2.getProperties() : n2;
|
|
8808
|
-
}, properties: { color: Ru } }, Mu = { shorthand: (t2, e2) => "none" === t2 || "transparent" === t2 || "object" == typeof t2 && 0 === Object.keys(t2).length ? { type: Ds.Type.None } : (t2.getType?.(), Ds.Type.None, t2) },
|
|
8798
|
+
}, properties: { color: Ru } }, Mu = { shorthand: (t2, e2) => "none" === t2 || "transparent" === t2 || "object" == typeof t2 && 0 === Object.keys(t2).length ? { type: Ds.Type.None } : (t2.getType?.(), Ds.Type.None, t2) }, Nu = { shorthand: (t2, e2) => ("object" == typeof (t2 = Iu(t2, e2.parseColor.bind(e2))) && t2.color && (t2.type = Ds.Type.Solid), t2), merge: (t2, e2, n2) => t2.color ? t2 : (e2?.toJSON && (e2 = e2.toJSON()), e2?.type === Ds.Type.Solid ? { ...e2 } : e2?.type === Ds.Type.Gradient ? { type: Ds.Type.Solid, color: e2?.stops?.[0]?.color ?? n2.parseColor(Bs.Scheme.Bg1) } : e2?.type === Ds.Type.Pattern ? { type: Ds.Type.Solid, color: e2?.foreground ?? n2.parseColor(Bs.Scheme.Bg1) } : t2 ? { ...t2 } : null), properties: { color: Ru } }, Tu = { shorthand: (t2, e2) => ("object" == typeof t2 && t2.stops && (t2.type = Ds.Type.Gradient), t2), merge: (t2, e2, n2) => t2.stops ? t2 : (e2?.toJSON && (e2 = e2.toJSON()), e2?.type === Ds.Type.Gradient ? { ...e2 } : e2?.type === Ds.Type.Solid ? { type: Ds.Type.Gradient, stops: [{ offset: 0, color: e2?.color ?? Bs.Scheme.Accent1 }, { offset: 1, color: Bs.Scheme.Bg1 }] } : e2?.type === Ds.Type.Pattern ? { type: Ds.Type.Gradient, stops: [{ offset: 0, color: e2?.foreground ?? Bs.Scheme.Bg1 }, { offset: 1, color: e2?.background ?? Bs.Scheme.Accent1 }] } : t2 ? { ...t2 } : null), properties: { stops: { shorthand: (t2, e2) => t2, arrayType: { shorthand: (t2, e2) => t2 = Iu(t2, e2.parseColor.bind(e2)), properties: { color: Ru } } } } }, ku = { shorthand: (t2, e2) => {
|
|
8809
8799
|
if ("object" == typeof t2) {
|
|
8810
8800
|
const e3 = t2;
|
|
8811
8801
|
(e3.foreground || e3.background || e3.patternType) && (e3.type = Ds.Type.Pattern, e3.patternType = e3.patternType ?? Ds.BuiltInSheetPattern.Solid);
|
|
@@ -8815,7 +8805,7 @@ const Iu = (t2, e2) => {
|
|
|
8815
8805
|
if (t2.background && t2.foreground) return t2;
|
|
8816
8806
|
e2?.toJSON && (e2 = e2.toJSON());
|
|
8817
8807
|
const r2 = Ds.BuiltInSheetPattern.MediumGray;
|
|
8818
|
-
return e2?.type === Ds.Type.Pattern ? { ...e2, ...t2 } : e2?.type === Ds.Type.Solid ? { patternType: r2, ...t2, foreground: e2?.color ??
|
|
8808
|
+
return e2?.type === Ds.Type.Pattern ? { ...e2, ...t2 } : e2?.type === Ds.Type.Solid ? { patternType: r2, ...t2, foreground: e2?.color ?? Bs.Named.WindowText, background: Bs.Scheme.Bg1 } : e2?.type === Ds.Type.Gradient ? { patternType: r2, ...t2, foreground: e2?.stops?.[0]?.color ?? Bs.Named.WindowText, background: e2?.stops?.[1]?.color ?? Bs.Scheme.Bg1 } : t2 ? { type: Ds.Type.Pattern, patternType: Ds.BuiltInSheetPattern.Solid, foreground: Bs.Named.WindowText, background: Bs.Scheme.Bg1, ...t2 } : null;
|
|
8819
8809
|
}, properties: { foreground: Ru, background: Ru } }, Fu = { properties: { font: { shorthand: (t2, e2) => {
|
|
8820
8810
|
if ("string" == typeof t2) {
|
|
8821
8811
|
const e3 = td(t2);
|
|
@@ -8840,20 +8830,20 @@ const Iu = (t2, e2) => {
|
|
|
8840
8830
|
let e3 = 400;
|
|
8841
8831
|
if (e3 = "number" == typeof t3 ? t3 : parseFloat(t3), !isNaN(e3)) return e3;
|
|
8842
8832
|
if ("string" == typeof t3) {
|
|
8843
|
-
const e4 = o.textToKey(t3), n3 =
|
|
8833
|
+
const e4 = o.textToKey(t3), n3 = Td.get(e4);
|
|
8844
8834
|
if (n3) return n3;
|
|
8845
8835
|
}
|
|
8846
8836
|
return e3;
|
|
8847
8837
|
})(t2);
|
|
8848
8838
|
return isNaN(n2) || "number" != typeof n2 ? null : n2;
|
|
8849
8839
|
} }, underline: { shorthand: (t2, e2) => t2 ? true === t2 ? Ko.UnderlineStyle.Single : sd(t2) : Ko.UnderlineStyle.None } } }, fill: { shorthand: (t2, e2) => {
|
|
8850
|
-
const n2 = [Mu,
|
|
8840
|
+
const n2 = [Mu, Nu, Tu, ku];
|
|
8851
8841
|
for (let r2 = 0; r2 < n2.length; r2++) {
|
|
8852
8842
|
let o2 = n2[r2]?.shorthand?.(t2, e2);
|
|
8853
8843
|
if (o2?.type) return o2;
|
|
8854
8844
|
}
|
|
8855
8845
|
return t2;
|
|
8856
|
-
}, getSubType: (t2) => t2.type === Ds.Type.None ? Mu : t2.type === Ds.Type.Solid ?
|
|
8846
|
+
}, getSubType: (t2) => t2.type === Ds.Type.None ? Mu : t2.type === Ds.Type.Solid ? Nu : t2.type === Ds.Type.Gradient ? Tu : t2.type === Ds.Type.Pattern ? ku : null }, alignment: { properties: { indent: { shorthand: (t2, e2) => {
|
|
8857
8847
|
let n2 = t2;
|
|
8858
8848
|
return "string" == typeof t2 && (n2 = parseFloat(t2)), isNaN(n2) || "number" != typeof n2 ? null : n2;
|
|
8859
8849
|
} }, rotation: { shorthand: (t2, e2) => {
|
|
@@ -8874,14 +8864,14 @@ const Iu = (t2, e2) => {
|
|
|
8874
8864
|
return ai(t2);
|
|
8875
8865
|
}
|
|
8876
8866
|
return null;
|
|
8877
|
-
} } } }, Ou = { properties: { style: Fu } }, Du = 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 }),
|
|
8867
|
+
} } } }, Ou = { properties: { style: Fu } }, Du = 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 }), Lu = (e2, n2, r2, s2, i2, a2 = false) => {
|
|
8878
8868
|
if (null == e2) return Du;
|
|
8879
8869
|
let l2 = "", c2 = null, h2 = null, d2 = null;
|
|
8880
8870
|
if (r2 === t.Error) l2 = e2.getLabel();
|
|
8881
8871
|
else if (r2 === t.RichData) l2 = "(Rich Object)";
|
|
8882
8872
|
else if (r2 === t.Boolean) l2 = e2 ? "TRUE" : "FALSE";
|
|
8883
8873
|
else if (s2) try {
|
|
8884
|
-
l2 =
|
|
8874
|
+
l2 = Nr(s2, e2, { date1904: a2, spacingCharacter: "", digitCharacter: "", onRepeatChar: (t2, e3) => {
|
|
8885
8875
|
h2 || (h2 = []), h2.push({ offset: t2, char: e3 });
|
|
8886
8876
|
}, onSpacingChar: (t2, e3) => {
|
|
8887
8877
|
d2 || (d2 = []), d2.push({ offset: t2, char: e3 });
|
|
@@ -8933,12 +8923,12 @@ const Iu = (t2, e2) => {
|
|
|
8933
8923
|
}
|
|
8934
8924
|
const b2 = Ur(s2, e2), v2 = { displayText: l2 ?? "", conditionalColor: b2 ? i2(b2) : null, repeatChars: h2 ?? o.EmptyArray, spacingChars: d2 ?? o.EmptyArray, repeatPlaceholder: c2, formattedRuns: f2, canWrap: y2, asDate: m2, isDateFormat: u2, isTimeFormat: g2, isDate1904: a2 };
|
|
8935
8925
|
return Object.freeze(v2);
|
|
8936
|
-
},
|
|
8937
|
-
const t2 = [{ named: Si.BuiltInName.Normal }, { named: Si.BuiltInName.RowLevel }, { named: Si.BuiltInName.ColLevel }, { named: Si.BuiltInName.Comma, numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' }, { named: Si.BuiltInName.Currency, numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' }, { named: Si.BuiltInName.Percent, numberFormat: "0%" }, { named: Si.BuiltInName.Comma0, numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)' }, { named: Si.BuiltInName.Currency0, numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)' }, { named: Si.BuiltInName.Hyperlink, font: { ...
|
|
8926
|
+
}, Bu = Object.freeze({ fallbacks: o.EmptyArray, weight: 400, style: Ko.Style.Normal, fill: Bs.Scheme.Tx1, letterSpacing: null, underline: Ko.UnderlineStyle.None, strike: false, scheme: Ko.Scheme.Minor, verticalAlign: Ko.VerticalAlignment.Baseline, shadow: false, outline: false, extend: false }), Pu = Object.freeze({ style: Qs.StrokeStyle.None, color: Bs.Scheme.Tx1 }), zu = Object.freeze({ [Qs.Edge.Top]: Pu, [Qs.Edge.Left]: Pu, [Qs.Edge.Bottom]: Pu, [Qs.Edge.Right]: Pu, [Qs.Edge.Horizontal]: Pu, [Qs.Edge.Vertical]: Pu, [Qs.Edge.DiagonalUp]: Pu, [Qs.Edge.DiagonalDown]: Pu }), Wu = Object.freeze({ horizontal: yo.HorizontalAlignment.General, vertical: yo.VerticalAlignment.Bottom, indent: 0, relativeIndent: 0, overflow: yo.Overflow.Visible, rotation: 0, stacked: false, quotePrefix: false, justifyLastLine: false, readingOrder: yo.ReadingDirection.Auto, readingDirection: yo.ReadingDirection.Auto }), Hu = Object.freeze({ locked: false, formulaHidden: false }), Vu = Object.freeze({ fill: { type: Ds.Type.None }, numberFormat: "General", alignment: Wu, font: Bu, border: zu, protection: Hu, quotePrefix: false, namedStyle: null }), $u = (() => {
|
|
8927
|
+
const t2 = [{ named: Si.BuiltInName.Normal }, { named: Si.BuiltInName.RowLevel }, { named: Si.BuiltInName.ColLevel }, { named: Si.BuiltInName.Comma, numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' }, { named: Si.BuiltInName.Currency, numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' }, { named: Si.BuiltInName.Percent, numberFormat: "0%" }, { named: Si.BuiltInName.Comma0, numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)' }, { named: Si.BuiltInName.Currency0, numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)' }, { named: Si.BuiltInName.Hyperlink, font: { ...Bu, fill: Bs.Scheme.Hlink, underline: Ko.UnderlineStyle.Single } }, { named: Si.BuiltInName.FollowedHyperlink, font: { ...Bu, fill: Bs.Scheme.FolHlink, underline: Ko.UnderlineStyle.Single } }, { named: Si.BuiltInName.Note, fill: "FFFFFFCC", font: { ...Bu, style: Ko.Style.Normal, fill: Bs.Scheme.Tx1 }, border: { left: { style: Qs.StrokeStyle.Thin, color: "FFB2B2B2" }, top: { style: Qs.StrokeStyle.Thin, color: "FFB2B2B2" }, right: { style: Qs.StrokeStyle.Thin, color: "FFB2B2B2" }, bottom: { style: Qs.StrokeStyle.Thin, color: "FFB2B2B2" } } }, { named: Si.BuiltInName.WarningText, font: { ...Bu, fill: "FFFF0000" } }, { named: Si.BuiltInName.Unknown12 }, { named: Si.BuiltInName.Unknown13 }, { named: Si.BuiltInName.Unknown14 }, { named: Si.BuiltInName.Title, font: { ...Bu, size: 18, fill: Bs.Scheme.Tx2 } }, { named: Si.BuiltInName.Heading1, font: { ...Bu, size: 15, weight: "bold", fill: Bs.Scheme.Tx2 }, border: { bottom: { style: Qs.StrokeStyle.Thick, color: Bs.Scheme.Accent1 } } }, { named: Si.BuiltInName.Heading2, font: { ...Bu, size: 13, weight: "bold", fill: Bs.Scheme.Tx2 }, border: { bottom: { style: Qs.StrokeStyle.Thick, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Si.BuiltInName.Heading3, font: { ...Bu, weight: "bold", fill: Bs.Scheme.Tx2 }, border: { bottom: { style: Qs.StrokeStyle.Medium, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Si.BuiltInName.Heading4, font: { weight: "bold", fill: Bs.Scheme.Tx2, ...Bu } }, { named: Si.BuiltInName.Input, fill: "FFFFCC99", font: { ...Bu, fill: "FF3F3F76" }, border: { left: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Si.BuiltInName.Output, fill: "FFF2F2F2", font: { ...Bu, fill: "FF3F3F3F" }, border: { left: { style: Qs.StrokeStyle.Thin, color: "FF3F3F3F" }, top: { style: Qs.StrokeStyle.Thin, color: "FF3F3F3F" }, right: { style: Qs.StrokeStyle.Thin, color: "FF3F3F3F" }, bottom: { style: Qs.StrokeStyle.Thin, color: "FF3F3F3F" } } }, { named: Si.BuiltInName.Calculation, fill: "FFF2F2F2", font: { ...Bu, fill: "FFFA7D00" }, border: { left: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Si.BuiltInName.CheckCell, fill: "FFA5A5A5", font: { ...Bu, fill: Bs.Scheme.Bg1 }, border: { left: { style: Qs.StrokeStyle.Double, color: "FF3F3F3F" }, top: { style: Qs.StrokeStyle.Double, color: "FF3F3F3F" }, right: { style: Qs.StrokeStyle.Double, color: "FF3F3F3F" }, bottom: { style: Qs.StrokeStyle.Double, color: "FF3F3F3F" } } }, { named: Si.BuiltInName.LinkedCell, font: { ...Bu, fill: "FFFA7D00" }, border: { bottom: { style: Qs.StrokeStyle.Double, color: "FFFF8001" } } }, { named: Si.BuiltInName.Total, font: { ...Bu, weight: "bold", fill: Bs.Scheme.Tx1 }, border: { top: { style: Qs.StrokeStyle.Thin, color: Bs.Scheme.Accent1 }, bottom: { style: Qs.StrokeStyle.Double, color: Bs.Scheme.Accent1 } } }, { named: Si.BuiltInName.Good, fill: "FFC6EFCE", font: { ...Bu, fill: "FF006100" } }, { named: Si.BuiltInName.Bad, fill: "FFFFC7CE", font: { ...Bu, fill: "FF9C0006" } }, { named: Si.BuiltInName.Neutral, fill: "FFFFEB9C", font: { ...Bu, fill: "FF9C5700" } }, { named: Si.BuiltInName.Accent1 }, { named: Si.BuiltInName.Accent1_20 }, { named: Si.BuiltInName.Accent1_40 }, { named: Si.BuiltInName.Accent1_60 }, { named: Si.BuiltInName.Accent2 }, { named: Si.BuiltInName.Accent2_20 }, { named: Si.BuiltInName.Accent2_40 }, { named: Si.BuiltInName.Accent2_60 }, { named: Si.BuiltInName.Accent3 }, { named: Si.BuiltInName.Accent3_20 }, { named: Si.BuiltInName.Accent3_40 }, { named: Si.BuiltInName.Accent3_60 }, { named: Si.BuiltInName.Accent4 }, { named: Si.BuiltInName.Accent4_20 }, { named: Si.BuiltInName.Accent4_40 }, { named: Si.BuiltInName.Accent4_60 }, { named: Si.BuiltInName.Accent5 }, { named: Si.BuiltInName.Accent5_20 }, { named: Si.BuiltInName.Accent5_40 }, { named: Si.BuiltInName.Accent5_60 }, { named: Si.BuiltInName.Accent6 }, { named: Si.BuiltInName.Accent6_20 }, { named: Si.BuiltInName.Accent6_40 }, { named: Si.BuiltInName.Accent6_60 }, { named: Si.BuiltInName.ExplanatoryText, font: { ...Bu, style: Ko.Style.Italic, fill: "FF7F7F7F" } }];
|
|
8938
8928
|
for (let e2 = 29; e2 <= 52; e2++) {
|
|
8939
8929
|
const n2 = (e2 - 29) % 4, r2 = Math.floor((e2 - 29) / 4);
|
|
8940
8930
|
let o2 = "";
|
|
8941
|
-
1 === n2 ? o2 = " lumMod 20, lumOff 80" : 2 === n2 ? o2 = " lumMod 40, lumOff 60" : 3 === n2 && (o2 = " lumMod 60, lumOff 40"), t2[e2].fill = `accent${r2 + 1}${o2}`, t2[e2].font = { fill: 0 === n2 ?
|
|
8931
|
+
1 === n2 ? o2 = " lumMod 20, lumOff 80" : 2 === n2 ? o2 = " lumMod 40, lumOff 60" : 3 === n2 && (o2 = " lumMod 60, lumOff 40"), t2[e2].fill = `accent${r2 + 1}${o2}`, t2[e2].font = { fill: 0 === n2 ? Bs.Scheme.Bg1 : Bs.Scheme.Tx1, ...Bu };
|
|
8942
8932
|
}
|
|
8943
8933
|
return o.deepFreeze(t2);
|
|
8944
8934
|
})();
|
|
@@ -9160,7 +9150,7 @@ class Yu extends Ju {
|
|
|
9160
9150
|
}
|
|
9161
9151
|
getFill() {
|
|
9162
9152
|
const t2 = this._value("fill");
|
|
9163
|
-
return this._c.parseColor(t2 ??
|
|
9153
|
+
return this._c.parseColor(t2 ?? Bs.Scheme.Bg1);
|
|
9164
9154
|
}
|
|
9165
9155
|
getLetterSpacing() {
|
|
9166
9156
|
return this._value("letterSpacing") ?? this.getSize() / -25;
|
|
@@ -9207,7 +9197,7 @@ class tg extends Ju {
|
|
|
9207
9197
|
return Ds.Type.Solid;
|
|
9208
9198
|
}
|
|
9209
9199
|
getColor() {
|
|
9210
|
-
return this._c.parseColor(this._value("color") ??
|
|
9200
|
+
return this._c.parseColor(this._value("color") ?? Bs.Scheme.Bg1);
|
|
9211
9201
|
}
|
|
9212
9202
|
toCSS(t2) {
|
|
9213
9203
|
return { background: this.getColor().toCSS(t2) };
|
|
@@ -9221,7 +9211,7 @@ class eg extends Ju {
|
|
|
9221
9211
|
return this._value("offset") ?? 0;
|
|
9222
9212
|
}
|
|
9223
9213
|
getColor() {
|
|
9224
|
-
return this._c.parseColor(this._value("color") ??
|
|
9214
|
+
return this._c.parseColor(this._value("color") ?? Bs.Scheme.Bg1);
|
|
9225
9215
|
}
|
|
9226
9216
|
}
|
|
9227
9217
|
class ng extends Ju {
|
|
@@ -9264,11 +9254,11 @@ class rg extends Ju {
|
|
|
9264
9254
|
return Ds.Type.Pattern;
|
|
9265
9255
|
}
|
|
9266
9256
|
getBackground() {
|
|
9267
|
-
const t2 = this._value("background") ??
|
|
9257
|
+
const t2 = this._value("background") ?? Bs.Named.Window;
|
|
9268
9258
|
return this._c.parseColor(t2);
|
|
9269
9259
|
}
|
|
9270
9260
|
getForeground() {
|
|
9271
|
-
return this._c.parseColor(this._value("foreground") ??
|
|
9261
|
+
return this._c.parseColor(this._value("foreground") ?? Bs.Scheme.Tx1);
|
|
9272
9262
|
}
|
|
9273
9263
|
getPatternType() {
|
|
9274
9264
|
return this._value("patternType") ?? Ds.BuiltInSheetPattern.None;
|
|
@@ -9353,7 +9343,7 @@ class og {
|
|
|
9353
9343
|
}
|
|
9354
9344
|
}
|
|
9355
9345
|
const sg = (t2, e2, n2) => {
|
|
9356
|
-
const r2 = n2?.rowStart ?? c.EmptyCell.rowIndex, o2 = n2?.colStart ?? c.EmptyCell.colIndex, s2 = [
|
|
9346
|
+
const r2 = n2?.rowStart ?? c.EmptyCell.rowIndex, o2 = n2?.colStart ?? c.EmptyCell.colIndex, s2 = [Vu], i2 = t2.getNormalRanged(), a2 = i2.getPropertiesAt(r2, o2, null);
|
|
9357
9347
|
if (a2 && s2.push(a2), !e2) {
|
|
9358
9348
|
return new ig({ styles: t2, range: n2, properties: s2, layerTypes: null, direct: i2 });
|
|
9359
9349
|
}
|
|
@@ -9560,7 +9550,7 @@ const mg = new class {
|
|
|
9560
9550
|
} else p2 = g2;
|
|
9561
9551
|
let _2 = false;
|
|
9562
9552
|
return void 0 !== c2 && (null === c2 ? (a2.value = null, a2.type = t.Null) : (a2.value = c2, a2.type = l2), _2 = true), void 0 !== p2 && (a2.style = p2, _2 = true), void 0 !== d2 && (a2.hyperlink = d2, _2 = true), void 0 !== u2 && (a2.formula = u2, _2 = true), s2 || (a2.stringToParse = m2, _2 = true), _2 ? (a2.type = l2, a2) : void 0;
|
|
9563
|
-
}, pg = (t2, e2, n2, r2) =>
|
|
9553
|
+
}, pg = (t2, e2, n2, r2) => Lu(n2, e2, t2, e2.getNumberFormat(), (t3) => r2.styles.parseColor(t3), r2.date1904), _g = (e2, n2, r2, o2, s2 = false) => {
|
|
9564
9554
|
if (e2 === t.Null) return null;
|
|
9565
9555
|
let i2 = "";
|
|
9566
9556
|
if (s2) i2 = "" + r2;
|
|
@@ -9616,12 +9606,12 @@ const mg = new class {
|
|
|
9616
9606
|
const v2 = c2.colHeaders, x2 = v2.findOffset.bind(v2), I2 = v2.findIndex.bind(v2);
|
|
9617
9607
|
let R2 = x2(h2);
|
|
9618
9608
|
const A2 = R2;
|
|
9619
|
-
let M2 = x2(h2 + b2),
|
|
9620
|
-
const F2 = { x: 0, y: 0, width:
|
|
9609
|
+
let M2 = x2(h2 + b2), N2 = M2 - R2, T2 = h2, k2 = h2;
|
|
9610
|
+
const F2 = { x: 0, y: 0, width: N2, height: d2?.height ?? 0 };
|
|
9621
9611
|
const O2 = h2 - h2 + b2;
|
|
9622
|
-
let D2 = d2 ? d2.width -
|
|
9623
|
-
|
|
9624
|
-
return { anchorBounds: F2, leftIndex: w2, rightIndex: y2, leftOffset: E2, rightOffset: C2, colSpan: O2, colBounds:
|
|
9612
|
+
let D2 = d2 ? d2.width - N2 : 0, L2 = F2;
|
|
9613
|
+
N2 > 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 || (T2 = I2(R2 - D2), null !== i2 && (T2 = Math.max(T2, i2.colIndex + 1)), R2 = x2(T2), E2 = D2, w2 = h2 - T2), F2.x = A2 - R2, L2.x = F2.x), b2 > 1 && (y2 = S2 === p.Center ? Math.max(O2 - 1, y2) : b2 - 1, M2 = x2(h2 + 1), F2.width = M2 - R2, L2 = { ...F2 }, L2.width = N2);
|
|
9614
|
+
return { anchorBounds: F2, leftIndex: w2, rightIndex: y2, leftOffset: E2, rightOffset: C2, colSpan: O2, colBounds: L2 };
|
|
9625
9615
|
};
|
|
9626
9616
|
class Eg {
|
|
9627
9617
|
constructor(t2, e2) {
|
|
@@ -9674,10 +9664,10 @@ const Cg = (t2, e2, n2, r2) => {
|
|
|
9674
9664
|
if (v2) return v2;
|
|
9675
9665
|
let x2 = null, I2 = null;
|
|
9676
9666
|
const R2 = Sg(e2, n2), A2 = R2.top + R2.bottom + +Jg(n2);
|
|
9677
|
-
let M2 = false,
|
|
9678
|
-
l2 && (
|
|
9679
|
-
const
|
|
9680
|
-
if (
|
|
9667
|
+
let M2 = false, N2 = false;
|
|
9668
|
+
l2 && (N2 = true, (0 !== S2 || C2) && (N2 = false));
|
|
9669
|
+
const T2 = N2 ? void 0 : _g(e2, n2, r2, s2), k2 = R2.left + R2.right + 2;
|
|
9670
|
+
if (T2) {
|
|
9681
9671
|
if (e2 === t.Number && "General" === y2 && a2) {
|
|
9682
9672
|
let t2 = r2, e3 = o.splitNumber(t2), s3 = "";
|
|
9683
9673
|
s3 = Math.abs(t2) >= Math.pow(10, 12) || Math.abs(t2) <= Math.pow(10, -12) ? `0.${"0".repeat(Math.max(2, Math.min(e3.ipLength, 5)))}E+00` : 0 === Math.abs(e3.ipLength) ? "0.0" : Math.abs(e3.fpLength) > 0 ? "0".repeat(e3.ipLength) + ".0" : "0".repeat(e3.ipLength), t2 < 0 && (s3 = "-" + s3), s3 = "0".repeat(s3.length);
|
|
@@ -9686,7 +9676,7 @@ const Cg = (t2, e2, n2, r2) => {
|
|
|
9686
9676
|
} else {
|
|
9687
9677
|
let t2 = null;
|
|
9688
9678
|
C2 && (t2 = { width: Math.max(1, i2 - k2) });
|
|
9689
|
-
const e3 =
|
|
9679
|
+
const e3 = T2.layout(t2);
|
|
9690
9680
|
x2 = e3.bounds.width, I2 = e3.bounds.height;
|
|
9691
9681
|
}
|
|
9692
9682
|
if (null !== x2 && (x2 += k2), null !== I2 && (I2 += A2), M2 = e2 === t.String, S2) {
|
|
@@ -9853,7 +9843,7 @@ class xg {
|
|
|
9853
9843
|
getNumberFormat(t2) {
|
|
9854
9844
|
if (void 0 !== t2) {
|
|
9855
9845
|
const e2 = this._v;
|
|
9856
|
-
return
|
|
9846
|
+
return Lu(e2, this.getStyle(), this._t, t2, (t3) => this._options.styles.parseColor(t3), this._isDate1904());
|
|
9857
9847
|
}
|
|
9858
9848
|
return pg(this._t, this.getStyle(), this._v, this._options);
|
|
9859
9849
|
}
|
|
@@ -9877,14 +9867,14 @@ class xg {
|
|
|
9877
9867
|
const s3 = parseFloat(e3), a2 = s3 % 1 != 0, l2 = s3 >= 1;
|
|
9878
9868
|
if (s3 < 0) return o.castToString(e3);
|
|
9879
9869
|
if (!n2 || r4 || a2) if (!r4 || n2 || l2) {
|
|
9880
|
-
const e4 =
|
|
9870
|
+
const e4 = Tr("Short Date", t2, i2), n3 = Tr("Long Time", t2, i2);
|
|
9881
9871
|
if (e4 && n3) return e4.fmt + " " + n3.fmt;
|
|
9882
9872
|
} else {
|
|
9883
|
-
const e4 =
|
|
9873
|
+
const e4 = Tr("Long Time", t2, i2);
|
|
9884
9874
|
if (e4) return e4.fmt;
|
|
9885
9875
|
}
|
|
9886
9876
|
else {
|
|
9887
|
-
const e4 =
|
|
9877
|
+
const e4 = Tr("Short Date", t2, i2);
|
|
9888
9878
|
if (e4) return e4.fmt;
|
|
9889
9879
|
}
|
|
9890
9880
|
}
|
|
@@ -10011,8 +10001,8 @@ class Rg {
|
|
|
10011
10001
|
}
|
|
10012
10002
|
}
|
|
10013
10003
|
const Ag = [null], Mg = { colIndex: -1, rowIndex: -1 };
|
|
10014
|
-
let
|
|
10015
|
-
const
|
|
10004
|
+
let Ng;
|
|
10005
|
+
const Tg = (t2, n2, r2, o2 = false) => {
|
|
10016
10006
|
const s2 = r2 === e.Orientation.Row, i2 = t2.length, a2 = new Array(i2);
|
|
10017
10007
|
for (let e2 = 0; e2 < i2; e2++) {
|
|
10018
10008
|
const r3 = t2[e2];
|
|
@@ -10053,7 +10043,7 @@ const Ng = (t2, n2, r2, o2 = false) => {
|
|
|
10053
10043
|
if (t2.rowStart <= n2.rowStart && t2.rowEnd >= n2.rowEnd) return e.Orientation.Column;
|
|
10054
10044
|
}
|
|
10055
10045
|
return t2 ? ((t3) => t3.rowEnd - t3.rowStart > t3.colEnd - t3.colStart ? e.Orientation.Column : e.Orientation.Row)(t2) : e.Orientation.Row;
|
|
10056
|
-
},
|
|
10046
|
+
}, Lg = () => false, Bg = () => true, Pg = () => null, zg = () => ia, Wg = () => 0, Hg = new class extends xg {
|
|
10057
10047
|
constructor() {
|
|
10058
10048
|
super(null, null);
|
|
10059
10049
|
}
|
|
@@ -10067,15 +10057,15 @@ const Ng = (t2, n2, r2, o2 = false) => {
|
|
|
10067
10057
|
return [Ac];
|
|
10068
10058
|
}
|
|
10069
10059
|
getStyle(t2 = false) {
|
|
10070
|
-
return
|
|
10060
|
+
return Ng || (Ng = new Om().getNormal(), Ng);
|
|
10071
10061
|
}
|
|
10072
10062
|
toString() {
|
|
10073
10063
|
return `${this._coords ? Pc(this._coords) : Ac} => ${this._v ?? "{blank}"}`;
|
|
10074
10064
|
}
|
|
10075
|
-
}(),
|
|
10076
|
-
}, [Symbol.iterator]: zg, entries: zg, select: yh, find: yh, calculate: yh, getCell: () =>
|
|
10065
|
+
}(), Vg = () => $g, $g = { forEach: () => {
|
|
10066
|
+
}, [Symbol.iterator]: zg, entries: zg, select: yh, find: yh, calculate: yh, getCell: () => Hg, getValue: Pg, waitForCalcs: () => Promise.resolve($g), setValue: yh, setFormula: yh, setValues: yh, updateCells: yh, updateStyle: yh, getCells: () => [[Hg]], getStyleUpdater: yh, getValues: () => [[null]], getBounds: Pg, getIntersect: Vg, getUnion: Vg, getDifferences: yh, getResizeBy: Vg, getResizeTo: Vg, getOffsetBy: Vg, getOffsetTo: Vg, getFixed: Vg, getUsedRange: Vg, getEntireRows: Vg, getEntireColumns: Vg, getSurrounding: yh, getExtended: yh, isEntireRows: Lg, isEntireColumns: Lg, isEntireRange: Lg, getWidth: Wg, getHeight: Wg, size: 0, sort: yh, clear: yh, setHyperlink: yh, setComments: yh, merge: yh, unmerge: yh, getMerges: yh, insert: yh, insertFrom: yh, delete: yh, getDefaultShiftOrientation: yh, getDefaultSortCriteria: yh, autoFill: yh, autoFit: yh, getSnapshot: yh, copyFrom: yh, doBatch: yh, startIncrementalUpdates: yh, getRowHeaders: yh, getColumnHeaders: yh, getCounts: yh, getCount: Wg, isContentful: Lg, addListener: yh, getColumnStart: Wg, getRowStart: Wg, getColumnEnd: Wg, getRowEnd: Wg, getRowCount: Wg, getColumnCount: Wg, getVisible: yh, getCoords: Pg, isEmpty: Bg, toString: () => Ac, getA1: () => Ac, isInvalid: Bg, getSheet: Pg, isReadOnly: Bg, isICellRange: true };
|
|
10077
10067
|
function jg(t2, e2 = null, n2 = null, r2 = Ac) {
|
|
10078
|
-
return t2 || n2 ? Object.freeze({
|
|
10068
|
+
return t2 || n2 ? Object.freeze({ ...$g, getSheet: () => t2, bounds: () => n2, getA1: () => r2, toString: () => n2 ? Vc(n2, e2) : r2 }) : $g;
|
|
10079
10069
|
}
|
|
10080
10070
|
const Gg = /^[\\+-]?[0-9]*\.?[0-9]*$/, Ug = (t2, e2, r2) => {
|
|
10081
10071
|
if (void 0 === t2) throw new Error("A value is required to create a cell from a text.");
|
|
@@ -10176,7 +10166,7 @@ const Gg = /^[\\+-]?[0-9]*\.?[0-9]*$/, Ug = (t2, e2, r2) => {
|
|
|
10176
10166
|
return f2 && (t3 += f2.asOADate), p2 && (t3 += p2.parsed.oaDateTime), s2.value = t3, s2;
|
|
10177
10167
|
}
|
|
10178
10168
|
const _2 = n.getBuiltInByLabel(t2);
|
|
10179
|
-
return _2 ? (s2.value = _2, s2) : (s2.value = t2, Do(t2) ? s2.hyperlink = t2 :
|
|
10169
|
+
return _2 ? (s2.value = _2, s2) : (s2.value = t2, Do(t2) ? s2.hyperlink = t2 : Bo(t2) && (s2.hyperlink = t2, s2.hyperlink.toLowerCase().startsWith("mailto:") || (s2.hyperlink = `mailto:${s2.hyperlink}`)), t2.includes("\n") && (s2.style = { ...s2?.style, alignment: { overflow: yo.Overflow.Wrap } }), s2);
|
|
10180
10170
|
}, Jg = (t2) => {
|
|
10181
10171
|
const e2 = t2.getFont().getUnderline() === Ko.UnderlineStyle.SingleAccounting, n2 = t2.getFont().getUnderline() === Ko.UnderlineStyle.DoubleAccounting;
|
|
10182
10172
|
let r2 = 0;
|
|
@@ -10194,7 +10184,7 @@ const Gg = /^[\\+-]?[0-9]*\.?[0-9]*$/, Ug = (t2, e2, r2) => {
|
|
|
10194
10184
|
}, Kg = (t2, n2, r2, o2) => {
|
|
10195
10185
|
const s2 = o2?.asJSDate;
|
|
10196
10186
|
let i2;
|
|
10197
|
-
r2 ? i2 =
|
|
10187
|
+
r2 ? i2 = Nh : (s2 || o2?.includeMergeOverflow) && (i2 = {}, s2 && (i2[Ah.Type.Style] = false, i2[Ah.Type.Table] = false), o2.includeMergeOverflow && (i2[Ah.Type.Merge] = false));
|
|
10198
10188
|
const a2 = o2?.orientation ?? e.Orientation.Row, l2 = o2?.maxSize ?? 1e4, c2 = t2({ includeEmpty: true, orientation: a2, reverse: o2?.reverse, excludeHidden: o2?.excludeHidden, includeMergeOverflow: o2?.includeMergeOverflow, includeRangeTypes: i2, bounds: n2, excludeCellDetails: !s2 }), h2 = a2 !== e.Orientation.Row, d2 = [];
|
|
10199
10189
|
let u2, g2 = -1, m2 = null, f2 = 0;
|
|
10200
10190
|
for (u2 = c2.next(); !u2.done; ) {
|
|
@@ -10458,7 +10448,7 @@ class am {
|
|
|
10458
10448
|
}
|
|
10459
10449
|
}
|
|
10460
10450
|
var lm, cm;
|
|
10461
|
-
(cm = lm || (lm = {})).fastStringToCol = nh, cm.fastStringToCell = Zc, cm.fastStringToRange = rh, cm.rangeToString =
|
|
10451
|
+
(cm = lm || (lm = {})).fastStringToCol = nh, cm.fastStringToCell = Zc, cm.fastStringToRange = rh, cm.rangeToString = Vc, cm.cellToString = zc, cm.normalizeA1ToR1C1 = mh, cm.resolveRelativeToA1 = hh;
|
|
10462
10452
|
const hm = (t2, e2) => t2.offset - e2.offset, dm = (t2) => {
|
|
10463
10453
|
if (!t2 || 0 === t2.size) return [];
|
|
10464
10454
|
let e2 = [];
|
|
@@ -10624,7 +10614,7 @@ class _m extends am {
|
|
|
10624
10614
|
}
|
|
10625
10615
|
toJSON() {
|
|
10626
10616
|
const t2 = {}, e2 = this._getState();
|
|
10627
|
-
e2.anchor && (t2.ref =
|
|
10617
|
+
e2.anchor && (t2.ref = Vc(e2.anchor, this._options.maxRangeCoords));
|
|
10628
10618
|
const n2 = mm(e2.byOffset);
|
|
10629
10619
|
return n2.length > 0 && (t2.fields = n2), e2.sort, 0 === Object.keys(t2).length ? null : t2;
|
|
10630
10620
|
}
|
|
@@ -10884,7 +10874,7 @@ class vm extends am {
|
|
|
10884
10874
|
return this.getUsedRange().select(t2);
|
|
10885
10875
|
}
|
|
10886
10876
|
getRange() {
|
|
10887
|
-
return this._range ? this._range : this._getState() ? this._range = this._sheet.getRange(this._getState().anchor) :
|
|
10877
|
+
return this._range ? this._range : this._getState() ? this._range = this._sheet.getRange(this._getState().anchor) : $g;
|
|
10888
10878
|
}
|
|
10889
10879
|
_processRestoreOrRevert(t2, e2, n2) {
|
|
10890
10880
|
this._styleCache = null, super._processRestoreOrRevert(t2, e2, n2);
|
|
@@ -10894,7 +10884,7 @@ class vm extends am {
|
|
|
10894
10884
|
}
|
|
10895
10885
|
getUsedRange() {
|
|
10896
10886
|
const t2 = this._getUsedCoords();
|
|
10897
|
-
return t2 ? this._sheet.getRange(t2) :
|
|
10887
|
+
return t2 ? this._sheet.getRange(t2) : $g;
|
|
10898
10888
|
}
|
|
10899
10889
|
_getUsedCoords() {
|
|
10900
10890
|
const t2 = this._getState(), e2 = t2.headerRowCount, n2 = t2.totalsRowCount, r2 = t2.anchor;
|
|
@@ -10904,7 +10894,7 @@ class vm extends am {
|
|
|
10904
10894
|
}
|
|
10905
10895
|
getHeaderRange() {
|
|
10906
10896
|
const t2 = this._getHeaderCoords();
|
|
10907
|
-
return t2 ? this._sheet.getRange(t2) :
|
|
10897
|
+
return t2 ? this._sheet.getRange(t2) : $g;
|
|
10908
10898
|
}
|
|
10909
10899
|
_getHeaderCoords() {
|
|
10910
10900
|
const t2 = this._getState(), e2 = t2.headerRowCount;
|
|
@@ -10914,7 +10904,7 @@ class vm extends am {
|
|
|
10914
10904
|
}
|
|
10915
10905
|
getTotalRange() {
|
|
10916
10906
|
const t2 = this._getTotalCoords();
|
|
10917
|
-
return t2 ? this._sheet.getRange(t2) :
|
|
10907
|
+
return t2 ? this._sheet.getRange(t2) : $g;
|
|
10918
10908
|
}
|
|
10919
10909
|
_getTotalCoords() {
|
|
10920
10910
|
const t2 = this._getState(), e2 = t2.totalsRowCount;
|
|
@@ -11176,7 +11166,7 @@ class vm extends am {
|
|
|
11176
11166
|
toJSON() {
|
|
11177
11167
|
const t2 = {}, e2 = this._getState();
|
|
11178
11168
|
if (!e2) return null;
|
|
11179
|
-
if (e2.name && (t2.name = e2.name), e2.anchor && (t2.ref =
|
|
11169
|
+
if (e2.name && (t2.name = e2.name), e2.anchor && (t2.ref = Vc(e2.anchor, this._options.maxRangeCoords)), e2.description && (t2.description = e2.description), 1 !== e2.headerRowCount && (t2.headerRowCount = e2.headerRowCount), 0 !== e2.totalsRowCount && (t2.totalsRowCount = e2.totalsRowCount), e2.columns && (t2.columns = [...e2.columns]), e2.styleOptions) {
|
|
11180
11170
|
const n2 = o.diffValues(e2.styleOptions, { ...ym, name: null });
|
|
11181
11171
|
n2 && (t2.styleOptions = n2);
|
|
11182
11172
|
}
|
|
@@ -11239,8 +11229,8 @@ class Am {
|
|
|
11239
11229
|
}
|
|
11240
11230
|
getPropertiesAt(t2, e2) {
|
|
11241
11231
|
const n2 = this._table, r2 = this._styles, o2 = this._properties;
|
|
11242
|
-
|
|
11243
|
-
const s2 = n2.getVisibleCellCoords(
|
|
11232
|
+
Nm.rowIndex = t2, Nm.colIndex = e2;
|
|
11233
|
+
const s2 = n2.getVisibleCellCoords(Nm), i2 = n2.getVisibleRefRangeCoords();
|
|
11244
11234
|
if (!i2) return null;
|
|
11245
11235
|
const a2 = Math.max(0, i2.colEnd - i2.colStart) + 1, l2 = Math.max(0, i2.rowEnd - i2.rowStart) + 1, c2 = Math.max(0, s2.rowIndex - i2.rowStart), h2 = Math.max(0, s2.colIndex - i2.colStart), d2 = { rowIndex: c2, colIndex: h2 }, u2 = n2.getStyleOptions();
|
|
11246
11236
|
let g2 = {}, m2 = false, p2 = 0;
|
|
@@ -11359,8 +11349,8 @@ class Mm {
|
|
|
11359
11349
|
return true;
|
|
11360
11350
|
}
|
|
11361
11351
|
}
|
|
11362
|
-
const
|
|
11363
|
-
class
|
|
11352
|
+
const Nm = { rowIndex: 0, colIndex: 0 };
|
|
11353
|
+
class Tm extends lg {
|
|
11364
11354
|
constructor(t2, e2) {
|
|
11365
11355
|
super(t2, c.EmptyRange, e2);
|
|
11366
11356
|
}
|
|
@@ -11406,7 +11396,7 @@ class Nm extends lg {
|
|
|
11406
11396
|
}
|
|
11407
11397
|
class km {
|
|
11408
11398
|
constructor(t2, e2, n2, r2 = null) {
|
|
11409
|
-
this._name = e2.name, this._properties = e2, this._rangeStyle = new
|
|
11399
|
+
this._name = e2.name, this._properties = e2, this._rangeStyle = new Tm(t2, e2.style), this._doDelete = n2, this._builtInID = r2;
|
|
11410
11400
|
}
|
|
11411
11401
|
getRanged() {
|
|
11412
11402
|
return this._rangeStyle;
|
|
@@ -11555,7 +11545,7 @@ class Om {
|
|
|
11555
11545
|
}
|
|
11556
11546
|
_initializeBuiltIns() {
|
|
11557
11547
|
const t2 = /* @__PURE__ */ new Map();
|
|
11558
|
-
this._builtInsCellStyles = t2, this._initializeNamedStyles(
|
|
11548
|
+
this._builtInsCellStyles = t2, this._initializeNamedStyles($u, t2), this._builtInsTableStyles = this._initializeTableStyles(), this._emptyTableStyle = new Ui.Empty(this._normalStyle);
|
|
11559
11549
|
}
|
|
11560
11550
|
getNormal() {
|
|
11561
11551
|
return this._normalStyle;
|
|
@@ -11657,7 +11647,7 @@ class Om {
|
|
|
11657
11647
|
}
|
|
11658
11648
|
normalize(t2) {
|
|
11659
11649
|
if (!t2) return null;
|
|
11660
|
-
const e2 = f.resolveTypedUpdates(t2, Fu, this), n2 =
|
|
11650
|
+
const e2 = f.resolveTypedUpdates(t2, Fu, this), n2 = Vu;
|
|
11661
11651
|
let r2 = null;
|
|
11662
11652
|
if (r2 = e2.named ? this.getNamed(e2.named)?.getRanged().getPropertiesAt(0, 0, null) : this._normalRanged.getPropertiesAt(0, 0, null), r2) {
|
|
11663
11653
|
const t3 = { ...r2 };
|
|
@@ -11763,8 +11753,8 @@ class Om {
|
|
|
11763
11753
|
this._mruColors = r2;
|
|
11764
11754
|
}
|
|
11765
11755
|
}
|
|
11766
|
-
const Dm = "BinaryResource must have only one initial data value.",
|
|
11767
|
-
class
|
|
11756
|
+
const Dm = "BinaryResource must have only one initial data value.", Lm = "Resource is closed.";
|
|
11757
|
+
class Bm {
|
|
11768
11758
|
constructor(t2) {
|
|
11769
11759
|
if (this._listeners = /* @__PURE__ */ new Set(), this._type = t2.type, this._name = t2?.name, t2.base64) {
|
|
11770
11760
|
const e2 = t2.base64;
|
|
@@ -11820,11 +11810,11 @@ class Lm {
|
|
|
11820
11810
|
return this._type ? this._type : (await this.toBuffer(), this._type ?? S.DEFAULT_MIME_TYPE);
|
|
11821
11811
|
}
|
|
11822
11812
|
addReference(t2) {
|
|
11823
|
-
if (this._isClosed) throw new Error(
|
|
11813
|
+
if (this._isClosed) throw new Error(Lm);
|
|
11824
11814
|
this._refs.add(t2);
|
|
11825
11815
|
}
|
|
11826
11816
|
deleteReference(t2) {
|
|
11827
|
-
if (this._isClosed) throw new Error(
|
|
11817
|
+
if (this._isClosed) throw new Error(Lm);
|
|
11828
11818
|
if (0 === this._refs.size || !this._refs.has(t2)) return;
|
|
11829
11819
|
this._refs.delete(t2);
|
|
11830
11820
|
const e2 = this;
|
|
@@ -11836,7 +11826,7 @@ class Lm {
|
|
|
11836
11826
|
}
|
|
11837
11827
|
}
|
|
11838
11828
|
addUnloadListener(t2) {
|
|
11839
|
-
if (this._isClosed) throw new Error(
|
|
11829
|
+
if (this._isClosed) throw new Error(Lm);
|
|
11840
11830
|
this._listeners.add(t2);
|
|
11841
11831
|
}
|
|
11842
11832
|
get isIResource() {
|
|
@@ -11888,10 +11878,10 @@ class zm {
|
|
|
11888
11878
|
let e3 = false;
|
|
11889
11879
|
this._resources.forEach((n3) => {
|
|
11890
11880
|
n3.getName() === t2 && (e3 = true, t2 = n3);
|
|
11891
|
-
}), e3 || (t2 = new
|
|
11881
|
+
}), e3 || (t2 = new Bm({ name: t2, fetch: t2, type: null }));
|
|
11892
11882
|
}
|
|
11893
11883
|
let e2 = null;
|
|
11894
|
-
e2 = t2 instanceof
|
|
11884
|
+
e2 = t2 instanceof Bm ? t2 : new Bm({ ...t2 });
|
|
11895
11885
|
const n2 = this;
|
|
11896
11886
|
return this._resources.has(e2) || (e2.addUnloadListener({ onUnload: (t3) => {
|
|
11897
11887
|
n2._resources.delete(e2);
|
|
@@ -11916,7 +11906,7 @@ class zm {
|
|
|
11916
11906
|
});
|
|
11917
11907
|
}
|
|
11918
11908
|
}
|
|
11919
|
-
class
|
|
11909
|
+
class Wm {
|
|
11920
11910
|
constructor(t2, e2, n2) {
|
|
11921
11911
|
this._state = t2, this._fromJSON = e2, this._onLastEnd = n2, this._state.openScopes.add(this), this._isClosed = false;
|
|
11922
11912
|
}
|
|
@@ -11944,7 +11934,7 @@ class Hm {
|
|
|
11944
11934
|
}), Promise.all(t2);
|
|
11945
11935
|
}
|
|
11946
11936
|
}
|
|
11947
|
-
class
|
|
11937
|
+
class Hm {
|
|
11948
11938
|
constructor() {
|
|
11949
11939
|
this._nextId = 0, this._lastReadId = -1, this._lastReadValue = null, this._stringsByText = /* @__PURE__ */ new Map(), this._stringsById = /* @__PURE__ */ new Map();
|
|
11950
11940
|
}
|
|
@@ -11981,13 +11971,13 @@ class Wm {
|
|
|
11981
11971
|
beginPersist() {
|
|
11982
11972
|
this._persistOpen || (this._persistOpen = { byRefs: /* @__PURE__ */ new Map(), byIds: /* @__PURE__ */ new Map(), openScopes: /* @__PURE__ */ new Set() });
|
|
11983
11973
|
const t2 = this;
|
|
11984
|
-
return new
|
|
11974
|
+
return new Wm(this._persistOpen, (e2) => (Array.isArray(e2) ? t2.addMultiple(e2) : t2.add(e2), e2), () => {
|
|
11985
11975
|
t2._persistOpen = null;
|
|
11986
11976
|
});
|
|
11987
11977
|
}
|
|
11988
11978
|
}
|
|
11989
|
-
var $m
|
|
11990
|
-
|
|
11979
|
+
var Vm, $m;
|
|
11980
|
+
Vm || (Vm = {});
|
|
11991
11981
|
class jm extends Yi {
|
|
11992
11982
|
constructor(t2) {
|
|
11993
11983
|
super(t2), t2.json && (this._resource = t2.fromResourceId(t2.json.resId));
|
|
@@ -12037,7 +12027,7 @@ class jm extends Yi {
|
|
|
12037
12027
|
super._processDelete();
|
|
12038
12028
|
}
|
|
12039
12029
|
}
|
|
12040
|
-
(
|
|
12030
|
+
($m || ($m = {})).Status = { Ready: "ready", Error: "error", Starting: "starting", Stopping: "stopping", Off: "off" };
|
|
12041
12031
|
class Gm extends oc {
|
|
12042
12032
|
constructor(t2, e2 = null, n2, r2, o2) {
|
|
12043
12033
|
if (super(t2, n2, e2), this._sheetName = r2 || null, this._getEntireCoords = o2 ?? hc, this._coords = Um(n2, this._getEntireCoords()), !n2) throw new Error("ReferenceRange requires a coords");
|
|
@@ -12063,7 +12053,7 @@ class Gm extends oc {
|
|
|
12063
12053
|
return "[ReferenceRange]";
|
|
12064
12054
|
}
|
|
12065
12055
|
toString() {
|
|
12066
|
-
return `${
|
|
12056
|
+
return `${Vc(this._coords, this._getEntireCoords?.())}`;
|
|
12067
12057
|
}
|
|
12068
12058
|
}
|
|
12069
12059
|
const Um = (t2, e2) => {
|
|
@@ -12214,7 +12204,7 @@ class Zm {
|
|
|
12214
12204
|
}
|
|
12215
12205
|
return i2.length = a2, i2;
|
|
12216
12206
|
};
|
|
12217
|
-
const r2 = (t2 = { strings: new
|
|
12207
|
+
const r2 = (t2 = { strings: new Hm(), ...t2 }).getEntireCoords ?? hc;
|
|
12218
12208
|
if (this._getEntireCoords = r2, this._options = t2, this._strings = t2.strings, this._onCalculated = t2?.onCalculated ?? (() => {
|
|
12219
12209
|
}), this._cycleId = 1, this._values = new vl({ orientation: e.Orientation.Column }), this._getFormulaParser = t2.getFormulaParser, !this._getFormulaParser) throw new Error("Formula parser is not defined");
|
|
12220
12210
|
this._latest = { graph: this }, this._iterationId = 0;
|
|
@@ -12312,7 +12302,7 @@ class Zm {
|
|
|
12312
12302
|
const n3 = o3[t4];
|
|
12313
12303
|
if (n3 === l3) continue;
|
|
12314
12304
|
Mf[0] = { colStart: r3.ref.colStart, rowStart: l3, colEnd: r3.ref.colEnd, rowEnd: n3 - 1, value: r3 }, Mf[1] = { colStart: r3.ref.colStart, rowStart: n3, colEnd: r3.ref.colStart, rowEnd: r3.ref.rowEnd, value: r3 };
|
|
12315
|
-
const s4 =
|
|
12305
|
+
const s4 = Tf(r3, Mf, e.Orientation.Row, n3);
|
|
12316
12306
|
let i4 = s4[0];
|
|
12317
12307
|
_2(i4, a3), g2.push(i4), i4 = s4[1], _2(i4, a3), g2.push(i4), l3 = n3;
|
|
12318
12308
|
}
|
|
@@ -12582,7 +12572,7 @@ class Zm {
|
|
|
12582
12572
|
let n5 = e3[t4];
|
|
12583
12573
|
if (Km(i4.rowStart, i4.colStart, n5) && a3.getCycleId() === o2) {
|
|
12584
12574
|
r3 || (r3 = [], s3 = /* @__PURE__ */ new Set());
|
|
12585
|
-
const t5 =
|
|
12575
|
+
const t5 = Lc(n5.colStart) + Fc(n5.rowStart);
|
|
12586
12576
|
if (s3.has(t5)) continue;
|
|
12587
12577
|
s3.add(t5), r3.push({ colStart: i4.colStart, rowStart: i4.rowStart, colEnd: i4.colEnd, rowEnd: i4.rowEnd, value: n5.value.getError() });
|
|
12588
12578
|
}
|
|
@@ -12608,10 +12598,10 @@ class Zm {
|
|
|
12608
12598
|
});
|
|
12609
12599
|
}
|
|
12610
12600
|
_setInputs(t2, n2, r2) {
|
|
12611
|
-
if (this._calculation.getStatus() ===
|
|
12601
|
+
if (this._calculation.getStatus() === $m.Status.Starting) return this._addToPending(() => {
|
|
12612
12602
|
const e2 = this._setInputs(t2, n2, r2), s3 = { formulaInserts: e2.inserts ?? o.EmptyArray, formulaRemoves: e2.removes ?? o.EmptyArray, cycleId: this._cycleId, bounds: c.unionRanges(c.unionRangesArrays(e2.inserts), c.unionRangesArrays(e2.removes)) };
|
|
12613
12603
|
return Promise.resolve(s3);
|
|
12614
|
-
}),
|
|
12604
|
+
}), Nf;
|
|
12615
12605
|
const s2 = this._values.getOrientation() !== e.Orientation.Row, i2 = this._spillSpatial, a2 = this._errorSpatial, l2 = this._contentfulSpatial, h2 = [], d2 = this._formulaSpatial;
|
|
12616
12606
|
let u2, g2, m2 = !d2.isEmpty(), f2 = m2 ? [] : null, p2 = this._values;
|
|
12617
12607
|
if (t2 && t2.tuples) {
|
|
@@ -12805,13 +12795,13 @@ class Zm {
|
|
|
12805
12795
|
}
|
|
12806
12796
|
C2.pendingPrecedents = A2;
|
|
12807
12797
|
}
|
|
12808
|
-
const
|
|
12798
|
+
const N2 = S2 ? v2 : x2, T2 = S2 ? x2 : v2;
|
|
12809
12799
|
o2.node = C2, o2.colIndex = v2, o2.rowIndex = x2;
|
|
12810
12800
|
const k2 = b2.formula;
|
|
12811
12801
|
let F2, O2;
|
|
12812
12802
|
const D2 = C2.pending;
|
|
12813
|
-
let
|
|
12814
|
-
if ((A2 || C2.pendingPromise) && (
|
|
12803
|
+
let L2 = D2;
|
|
12804
|
+
if ((A2 || C2.pendingPromise) && (L2 = true, F2 = C2.cachedValue ?? null, C2.pendingPromise && (C2.pendingResolved ? (C2.pendingPromise = null, C2.pendingResolved = false, L2 = 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, L2 = !!O2), L2 !== D2 && (C2.pending = L2, w2 || (w2 = bl(S2)), w2.append(N2, T2, L2)), O2 && (F2 = C2.cachedValue ?? null, !O2.__originator)) {
|
|
12815
12805
|
O2.__originator = l2;
|
|
12816
12806
|
const t3 = C2;
|
|
12817
12807
|
ff.add(t3), t3.pendingPromise = O2, t3.pendingResolved = false, O2.then((e3) => {
|
|
@@ -12822,32 +12812,32 @@ class Zm {
|
|
|
12822
12812
|
}, (t4) => {
|
|
12823
12813
|
});
|
|
12824
12814
|
}
|
|
12825
|
-
let
|
|
12815
|
+
let B2 = 1, P2 = 1;
|
|
12826
12816
|
const z2 = I2 instanceof oc;
|
|
12827
|
-
let
|
|
12828
|
-
const
|
|
12829
|
-
if (z2 ||
|
|
12817
|
+
let W2;
|
|
12818
|
+
const H2 = I2 instanceof n.Spill;
|
|
12819
|
+
if (z2 || H2) {
|
|
12830
12820
|
cf.colStart = v2, cf.rowStart = x2, cf.colEnd = v2, cf.rowEnd = x2;
|
|
12831
12821
|
const t3 = f2.search(cf);
|
|
12832
|
-
for (let e3 = 0; !
|
|
12822
|
+
for (let e3 = 0; !W2 && e3 < t3.length; e3++) {
|
|
12833
12823
|
const n2 = t3[e3];
|
|
12834
|
-
n2.colStart === v2 && n2.rowStart === x2 && (
|
|
12824
|
+
n2.colStart === v2 && n2.rowStart === x2 && (W2 = n2);
|
|
12835
12825
|
}
|
|
12836
|
-
if (
|
|
12826
|
+
if (W2) {
|
|
12837
12827
|
if (z2) {
|
|
12838
12828
|
const t5 = I2;
|
|
12839
|
-
|
|
12829
|
+
B2 = t5.getWidth(), P2 = t5.getHeight();
|
|
12840
12830
|
}
|
|
12841
|
-
const t4 = { colStart: v2, rowStart: x2, colEnd: v2 +
|
|
12842
|
-
f2.remove(
|
|
12831
|
+
const t4 = { colStart: v2, rowStart: x2, colEnd: v2 + B2 - 1, rowEnd: x2 + P2 - 1 };
|
|
12832
|
+
f2.remove(W2), W2 && W2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
|
|
12843
12833
|
}
|
|
12844
12834
|
}
|
|
12845
|
-
let
|
|
12835
|
+
let V2 = 1, $2 = 1;
|
|
12846
12836
|
const j2 = F2, G2 = j2?.isIRange;
|
|
12847
12837
|
let U2, J2 = F2 instanceof n.Spill;
|
|
12848
12838
|
if (G2 && j2.size > 1) {
|
|
12849
|
-
|
|
12850
|
-
const t3 = { colStart: v2, rowStart: x2, colEnd: v2 +
|
|
12839
|
+
V2 = j2.getWidth(), $2 = j2.getHeight();
|
|
12840
|
+
const t3 = { colStart: v2, rowStart: x2, colEnd: v2 + V2 - 1, rowEnd: x2 + $2 - 1 }, e3 = r2.getEntireCoords(), o3 = !c.isRangeWithinRange(t3, e3);
|
|
12851
12841
|
if (o3 && (t3.colEnd = Math.min(t3.colEnd, e3.colEnd), t3.rowEnd = Math.min(t3.rowEnd, e3.rowEnd)), J2 = o3, !J2) {
|
|
12852
12842
|
const e4 = d2.search(t3);
|
|
12853
12843
|
if (J2 = e4.length > 1, !J2 && 1 === e4.length) {
|
|
@@ -12857,15 +12847,15 @@ class Zm {
|
|
|
12857
12847
|
}
|
|
12858
12848
|
let s3, i3;
|
|
12859
12849
|
if (J2) {
|
|
12860
|
-
F2 = n.BuiltIn.Spill,
|
|
12861
|
-
s3 = [[
|
|
12850
|
+
F2 = n.BuiltIn.Spill, V2 = 1, $2 = 1;
|
|
12851
|
+
s3 = [[N2, [[T2, [F2]]]]], p2.setValues(s3), i3 = { colStart: v2, rowStart: x2, colEnd: v2, rowEnd: x2 };
|
|
12862
12852
|
} else {
|
|
12863
|
-
const e4 = Xm(j2,
|
|
12853
|
+
const e4 = Xm(j2, N2, T2);
|
|
12864
12854
|
e4 && (s3 = e4.tuples), s3 && p2.setValues(s3), i3 = t3;
|
|
12865
12855
|
}
|
|
12866
12856
|
U2 = { ...t3, value: new Eh(t3, l2, J2) }, f2.insert(U2), E2 = Qm(E2, C2, t3), u2.insertNonOverlapping(i3), h2.insertNonOverlapping(i3), d2.insertNonOverlapping({ ...i3, value: new Ch(i3, _2) });
|
|
12867
12857
|
}
|
|
12868
|
-
(!c.isEqualRanges(
|
|
12858
|
+
(!c.isEqualRanges(W2, U2) || J2 || H2) && (W2 && g2.insert(W2), U2 && g2.insert(U2)), V2 === B2 && $2 === P2 || (C2.state = xh, h2.insertNonOverlapping({ colStart: v2, rowStart: x2, colEnd: v2 + Math.max(V2, B2) - 1, rowEnd: x2 + Math.max($2, P2) - 1 }), a2 = false);
|
|
12869
12859
|
let q2 = F2 && F2.isFormulaError ? F2 : null;
|
|
12870
12860
|
k2.getError() && (q2 = k2.getError()), (q2 || R2 && !t2) && (q2 && !q2.equals(R2) || R2 && R2.equals(q2)), C2.cachedValue = F2, s2[i2++] = C2;
|
|
12871
12861
|
}
|
|
@@ -12877,8 +12867,8 @@ class Zm {
|
|
|
12877
12867
|
}
|
|
12878
12868
|
async calculate(t2) {
|
|
12879
12869
|
const e2 = this._calculation.getStatus();
|
|
12880
|
-
if (e2 ===
|
|
12881
|
-
if (e2 !==
|
|
12870
|
+
if (e2 === $m.Status.Starting) return void this._addToPending(() => this.calculate(t2));
|
|
12871
|
+
if (e2 !== $m.Status.Ready) return;
|
|
12882
12872
|
let n2 = this._fullCalcRequired;
|
|
12883
12873
|
n2 || ("boolean" == typeof t2 ? n2 = t2 : t2 && (n2 = t2.full ?? false));
|
|
12884
12874
|
const r2 = this._invalidations;
|
|
@@ -12961,8 +12951,8 @@ class Zm {
|
|
|
12961
12951
|
}
|
|
12962
12952
|
fromJSON(t2) {
|
|
12963
12953
|
const r2 = this._calculation.getStatus();
|
|
12964
|
-
if (r2 ===
|
|
12965
|
-
if (r2 !==
|
|
12954
|
+
if (r2 === $m.Status.Starting) return void this._addToPending(() => Promise.resolve(this.fromJSON(t2)));
|
|
12955
|
+
if (r2 !== $m.Status.Ready) return;
|
|
12966
12956
|
this._clearAll();
|
|
12967
12957
|
const o2 = { cycleId: 0, isFull: true };
|
|
12968
12958
|
if (!t2) return o2;
|
|
@@ -13062,7 +13052,7 @@ class Zm {
|
|
|
13062
13052
|
if (i2 > 0) {
|
|
13063
13053
|
const t3 = this._getEntireCoords(), e2 = new Array(i2);
|
|
13064
13054
|
for (let n3 = 0; n3 < i2; n3++) {
|
|
13065
|
-
const r3 = s2[n3], o3 =
|
|
13055
|
+
const r3 = s2[n3], o3 = Vc(r3, t3);
|
|
13066
13056
|
e2[n3] = [o3, r3.value.getError()];
|
|
13067
13057
|
}
|
|
13068
13058
|
o2.dynamic = e2;
|
|
@@ -13089,7 +13079,7 @@ class Zm {
|
|
|
13089
13079
|
}
|
|
13090
13080
|
const i3 = s3.done(true), l2 = i3.length, c2 = new Array(l2);
|
|
13091
13081
|
for (let t4 = 0; t4 < l2; t4++) {
|
|
13092
|
-
const e2 = i3[t4], n4 =
|
|
13082
|
+
const e2 = i3[t4], n4 = Vc(e2, this._getEntireCoords());
|
|
13093
13083
|
c2[t4] = n4;
|
|
13094
13084
|
}
|
|
13095
13085
|
o2.volatile = c2;
|
|
@@ -13157,8 +13147,8 @@ const Ef = new Array(uf);
|
|
|
13157
13147
|
let Cf = 0, bf = 0;
|
|
13158
13148
|
const vf = new Array(uf);
|
|
13159
13149
|
let xf = 0;
|
|
13160
|
-
const If = new Array(uf), Rf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Af = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Mf = [null, null],
|
|
13161
|
-
function
|
|
13150
|
+
const If = new Array(uf), Rf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Af = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Mf = [null, null], Nf = Object.freeze({ inserts: o.EmptyArray, removes: o.EmptyArray });
|
|
13151
|
+
function Tf(t2, e2, n2, r2) {
|
|
13162
13152
|
const o2 = t2;
|
|
13163
13153
|
if (o2?.getSplit) {
|
|
13164
13154
|
const t3 = o2.getSplit(e2, n2, r2);
|
|
@@ -13175,9 +13165,9 @@ class kf {
|
|
|
13175
13165
|
this._instanceScope = t2;
|
|
13176
13166
|
}
|
|
13177
13167
|
async _initialize() {
|
|
13178
|
-
const t2 = await
|
|
13168
|
+
const t2 = await at._validate(true), e2 = Of();
|
|
13179
13169
|
this._calcScope = e2, this._runtime = new Ff(this._options, t2);
|
|
13180
|
-
const { initializeBuiltIns: n2 } = await import("./
|
|
13170
|
+
const { initializeBuiltIns: n2 } = await import("./ECGQXemQN_h2Fa_I.mjs"), r2 = this;
|
|
13181
13171
|
return this._builtInFunctions = Object.freeze(n2(() => r2)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
|
|
13182
13172
|
}
|
|
13183
13173
|
getBuiltInFunctions() {
|
|
@@ -13195,8 +13185,8 @@ class kf {
|
|
|
13195
13185
|
getFormulaAt(t2, e2) {
|
|
13196
13186
|
const n2 = this._calcScope.formulaSpatial;
|
|
13197
13187
|
if (!n2) return null;
|
|
13198
|
-
|
|
13199
|
-
const r2 = n2.search(
|
|
13188
|
+
Bf.colStart = e2, Bf.rowStart = t2, Bf.colEnd = e2, Bf.rowEnd = t2;
|
|
13189
|
+
const r2 = n2.search(Bf);
|
|
13200
13190
|
if (0 === r2.length) return null;
|
|
13201
13191
|
return r2[0].value.formula.getTextAt(t2, e2) ?? null;
|
|
13202
13192
|
}
|
|
@@ -13286,7 +13276,7 @@ class kf {
|
|
|
13286
13276
|
let l2;
|
|
13287
13277
|
if (a2) {
|
|
13288
13278
|
const e3 = a2.precedents;
|
|
13289
|
-
l2 =
|
|
13279
|
+
l2 = Lf(e3, t2);
|
|
13290
13280
|
}
|
|
13291
13281
|
if (l2) {
|
|
13292
13282
|
const e3 = l2.calc;
|
|
@@ -13297,7 +13287,7 @@ class kf {
|
|
|
13297
13287
|
getAddress(t2, e2 = false) {
|
|
13298
13288
|
t2 || (t2 = this.getPosition());
|
|
13299
13289
|
const n2 = this.getEntireCoords().sheetName;
|
|
13300
|
-
return void 0 !== t2.colIndex ? ((t3, e3, n3 = false) => n3 ? dh(t3, e3) :
|
|
13290
|
+
return void 0 !== t2.colIndex ? ((t3, e3, n3 = false) => n3 ? dh(t3, e3) : $c(t3, e3))(t2, n2, e2) : ((t3, e3, n3 = false) => (n3 ? dh({ colIndex: t3.colStart, rowIndex: t3.rowStart, $colIndex: t3.$colStart, $rowIndex: t3.$rowStart, sheetName: t3.sheetName }, e3) : $c({ colIndex: t3.colStart, rowIndex: t3.rowStart, $colIndex: t3.$colStart, $rowIndex: t3.$rowStart, sheetName: t3.sheetName }, e3)) + ":" + (n3 ? dh({ colIndex: t3.colEnd, rowIndex: t3.rowEnd, $colIndex: t3.$colEnd, $rowIndex: t3.$rowEnd }, null) : $c({ colIndex: t3.colEnd, rowIndex: t3.rowEnd, $colIndex: t3.$colEnd, $rowIndex: t3.$rowEnd }, null)))(t2, n2, e2);
|
|
13301
13291
|
}
|
|
13302
13292
|
parseAsDateTime(t2, e2 = false) {
|
|
13303
13293
|
return (function(t3, e3 = false, n2 = false) {
|
|
@@ -13350,7 +13340,7 @@ class Ff {
|
|
|
13350
13340
|
}
|
|
13351
13341
|
getVersion() {
|
|
13352
13342
|
try {
|
|
13353
|
-
const t2 = "0.6.
|
|
13343
|
+
const t2 = "0.6.9";
|
|
13354
13344
|
if (-1 === t2.indexOf(".env.")) return `${t2}`;
|
|
13355
13345
|
} catch (t2) {
|
|
13356
13346
|
return "local";
|
|
@@ -13363,7 +13353,7 @@ class Ff {
|
|
|
13363
13353
|
return this._license?.licensee?.() ?? null;
|
|
13364
13354
|
}
|
|
13365
13355
|
}
|
|
13366
|
-
const Of = () => ({ rowIndex: 0, colIndex: 0, sheetName: null, node: null, values: null, formulaSpatial: null, spillSpatial: null, volatile: null, conflatingFormats: null, dynamicPrecedentsInserts: null, formula: null, getEntireCoords: () => ac }), Df = { getSheetIndex: (t2) => -1, getSheetCount: () => 1, getSheetName: () => null, getEntireCoords: () => ac, getNamed: (t2, e2) => null, getFunction: (t2) => null, isDate1904: () => false },
|
|
13356
|
+
const Of = () => ({ rowIndex: 0, colIndex: 0, sheetName: null, node: null, values: null, formulaSpatial: null, spillSpatial: null, volatile: null, conflatingFormats: null, dynamicPrecedentsInserts: null, formula: null, getEntireCoords: () => ac }), Df = { getSheetIndex: (t2) => -1, getSheetCount: () => 1, getSheetName: () => null, getEntireCoords: () => ac, getNamed: (t2, e2) => null, getFunction: (t2) => null, isDate1904: () => false }, Lf = (t2, e2) => {
|
|
13367
13357
|
if (!t2) return;
|
|
13368
13358
|
const n2 = t2.length;
|
|
13369
13359
|
if (0 === n2) return;
|
|
@@ -13373,7 +13363,7 @@ const Of = () => ({ rowIndex: 0, colIndex: 0, sheetName: null, node: null, value
|
|
|
13373
13363
|
if (void 0 !== a2 && (n3.colStart === r2 && n3.rowStart === o2 && n3.colEnd === s2 && n3.rowEnd === i2)) return a2;
|
|
13374
13364
|
}
|
|
13375
13365
|
return null;
|
|
13376
|
-
},
|
|
13366
|
+
}, Bf = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Pf = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 };
|
|
13377
13367
|
class zf {
|
|
13378
13368
|
_setScope(t2) {
|
|
13379
13369
|
this._scope = t2;
|
|
@@ -13452,15 +13442,15 @@ class zf {
|
|
|
13452
13442
|
return t2 ? "" : "{NO SCOPE}";
|
|
13453
13443
|
}
|
|
13454
13444
|
}
|
|
13455
|
-
const
|
|
13456
|
-
let
|
|
13457
|
-
const
|
|
13445
|
+
const Wf = new zf(), Hf = "__SHEETXL";
|
|
13446
|
+
let Vf;
|
|
13447
|
+
const $f = { FormulaContext: Vf, ScalarType: t, IRange: e, FormulaError: n, Observable: r };
|
|
13458
13448
|
let jf;
|
|
13459
13449
|
function Gf(t2) {
|
|
13460
|
-
|
|
13450
|
+
Vf || (Vf = Wf, $f.FormulaContext = Vf), jf = globalThis[Hf], globalThis[Hf] = $f, Vf._setScope(t2);
|
|
13461
13451
|
}
|
|
13462
13452
|
function Uf() {
|
|
13463
|
-
jf ? (globalThis[
|
|
13453
|
+
jf ? (globalThis[Hf] = jf, jf = void 0) : delete globalThis[Hf], Vf && Vf._setScope(null);
|
|
13464
13454
|
}
|
|
13465
13455
|
var Jf;
|
|
13466
13456
|
(Jf || (Jf = {})).Context = { Workbook: "workbook", Sheet: "sheet", Ranges: "ranges", Range: "range", Calculation: "calculation" };
|
|
@@ -13878,7 +13868,7 @@ class op {
|
|
|
13878
13868
|
}
|
|
13879
13869
|
class sp extends Yi {
|
|
13880
13870
|
constructor(t2) {
|
|
13881
|
-
super(t2), this._status =
|
|
13871
|
+
super(t2), this._status = $m.Status.Off, this._statusTransition = null, this._emitter = new Xi(this);
|
|
13882
13872
|
}
|
|
13883
13873
|
_getContext() {
|
|
13884
13874
|
return this._context;
|
|
@@ -13888,16 +13878,16 @@ class sp extends Yi {
|
|
|
13888
13878
|
}
|
|
13889
13879
|
start() {
|
|
13890
13880
|
return this._statusTransition || (this._statusTransition = (async () => {
|
|
13891
|
-
if (this._status ===
|
|
13892
|
-
this._status =
|
|
13881
|
+
if (this._status === $m.Status.Off) try {
|
|
13882
|
+
this._status = $m.Status.Starting, this._emitter.notify("onStatusChange"), this._emitter.notify("onStarting");
|
|
13893
13883
|
const t2 = this, e2 = this._options, n2 = (n3) => t2.getFunctions().getByName(n3) ?? e2?.getFunction?.(n3), r2 = new kf({ ...e2, getFunction: n2 });
|
|
13894
13884
|
this._context = r2;
|
|
13895
13885
|
const o2 = await r2._initialize(), s2 = o2.builtInFunctions;
|
|
13896
13886
|
this._functions = new op({ transactions: this._transactions, context: r2, readonlyFunctions: s2 });
|
|
13897
|
-
const i2 = await import("./
|
|
13898
|
-
this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status =
|
|
13887
|
+
const i2 = await import("./xwFWHagDYZrBek5N.mjs");
|
|
13888
|
+
this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status = $m.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
|
|
13899
13889
|
} catch (t2) {
|
|
13900
|
-
throw this._status =
|
|
13890
|
+
throw this._status = $m.Status.Off, this._emitter.notify("onError", t2), this._emitter.notify("onStatusChange"), t2;
|
|
13901
13891
|
} finally {
|
|
13902
13892
|
this._statusTransition = null;
|
|
13903
13893
|
}
|
|
@@ -13908,13 +13898,13 @@ class sp extends Yi {
|
|
|
13908
13898
|
return new Zm({ ...e2, ...t2, getFormulaParser: () => this._formulaParser, calculation: this });
|
|
13909
13899
|
}
|
|
13910
13900
|
async stop() {
|
|
13911
|
-
this._status ===
|
|
13901
|
+
this._status === $m.Status.Ready && (this._status = $m.Status.Stopping, this._emitter.notify("onStatusChange"), this._emitter.notify("onStopping"), this._status = $m.Status.Off, this._emitter.notify("onStatusChange"), this._emitter.notify("onStop"));
|
|
13912
13902
|
}
|
|
13913
13903
|
getStatus() {
|
|
13914
13904
|
return this._status;
|
|
13915
13905
|
}
|
|
13916
13906
|
async waitForFinish() {
|
|
13917
|
-
return this._status ===
|
|
13907
|
+
return this._status === $m.Status.Starting && await this._statusTransition, ip;
|
|
13918
13908
|
}
|
|
13919
13909
|
getFunctions() {
|
|
13920
13910
|
return this._checkReady(), this._functions;
|
|
@@ -13923,15 +13913,15 @@ class sp extends Yi {
|
|
|
13923
13913
|
return this._checkReady(), this._runtime;
|
|
13924
13914
|
}
|
|
13925
13915
|
_checkReady() {
|
|
13926
|
-
if (this._status !==
|
|
13916
|
+
if (this._status !== $m.Status.Ready) throw new Error(this._statusMessage());
|
|
13927
13917
|
}
|
|
13928
13918
|
_statusMessage() {
|
|
13929
13919
|
switch (this._status) {
|
|
13930
|
-
case
|
|
13920
|
+
case $m.Status.Off:
|
|
13931
13921
|
return "Calculation is off";
|
|
13932
|
-
case
|
|
13922
|
+
case $m.Status.Starting:
|
|
13933
13923
|
return "Calculation is starting";
|
|
13934
|
-
case
|
|
13924
|
+
case $m.Status.Ready:
|
|
13935
13925
|
return "Calculation is ready";
|
|
13936
13926
|
default:
|
|
13937
13927
|
return "Unknown calculation status";
|
|
@@ -13943,7 +13933,7 @@ var ap, lp, cp, hp, dp, up, gp, mp;
|
|
|
13943
13933
|
ap || (ap = {}), lp || (lp = {}), cp || (cp = {}), (dp = hp || (hp = {})).NumberFilterOperatorType = { Equal: "equal", GreaterThan: "greaterThan", GreaterThanOrEqual: "greaterThanOrEqual", LessThan: "lessThan", LessThanOrEqual: "lessThanOrEqual", NotEqual: "notEqual" }, dp.Type = { Color: "color", Custom: "custom", Dynamic: "dynamic", Items: "items", Icon: "icon", Top10: "top10" }, dp.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" }, dp.DateItemGroupingType = { Day: "day", Hour: "hour", Minute: "minute", Month: "month", Second: "Second", Year: "year" }, (gp = up || (up = {})).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" }, gp.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" }, gp.TimePeriod = { Last7Days: "last7Days", LastMonth: "lastMonth", LastWeek: "lastWeek", NextMonth: "nextMonth", NextWeek: "nextWeek", ThisMonth: "thisMonth", ThisWeek: "thisWeek", Today: "today", Tomorrow: "tomorrow", Yesterday: "yesterday" }, gp.ConditionalBoundsType = { Formula: "formula", Max: "max", Min: "min", Num: "num", Percent: "percent", Percentile: "percentile" }, (mp || (mp = {})).HeaderTextStyle = { A1: "a1", Zero: "zero", One: "one" };
|
|
13944
13934
|
class fp {
|
|
13945
13935
|
constructor(t2, e2, n2, r2) {
|
|
13946
|
-
this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = t2, this._topLeft = r2 ?? { rowIndex: 0, colIndex: 0 }, this._sheet = new
|
|
13936
|
+
this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = t2, this._topLeft = r2 ?? { rowIndex: 0, colIndex: 0 }, this._sheet = new W_({ styles: this._styles, date1904: e2, container: { getName: () => n2, getIndex: () => 1 } }), this._cellUpdater = this._sheet.getEntireRange().startIncrementalUpdates();
|
|
13947
13937
|
}
|
|
13948
13938
|
applyCSSStyle(t2, e2) {
|
|
13949
13939
|
let n2 = false;
|
|
@@ -14703,7 +14693,7 @@ class Rp extends Qi {
|
|
|
14703
14693
|
t2 && t2.removeListener?.(), super._processDelete();
|
|
14704
14694
|
}
|
|
14705
14695
|
}
|
|
14706
|
-
const Ap = "Item must be specified.", Mp = "Name must be a non-empty string",
|
|
14696
|
+
const Ap = "Item must be specified.", Mp = "Name must be a non-empty string", Np = (t2, e2 = null) => `Named item '${t2}' already exists${e2 ? `in scope ${e2}` : ""}.`, Tp = (t2) => {
|
|
14707
14697
|
const e2 = [];
|
|
14708
14698
|
for (let n2 = 0; n2 < t2.getCount(); n2++) {
|
|
14709
14699
|
let r2 = null;
|
|
@@ -14779,7 +14769,7 @@ class Op {
|
|
|
14779
14769
|
const n2 = this._getState();
|
|
14780
14770
|
if (!n2) return null;
|
|
14781
14771
|
if (0 === n2.itemsByKey.size) return null;
|
|
14782
|
-
const r2 =
|
|
14772
|
+
const r2 = Tp(e2), o2 = n2.itemsByFullRange.get(r2);
|
|
14783
14773
|
if (!o2) return null;
|
|
14784
14774
|
const s2 = [];
|
|
14785
14775
|
return o2.forEach((t3) => {
|
|
@@ -14836,7 +14826,7 @@ class Op {
|
|
|
14836
14826
|
if (new RegExp(kp).test(r2[0])) throw new Error("First letter must be either a letter, an underscore, or a backslash.");
|
|
14837
14827
|
if (new RegExp(Fp).test(o2)) throw new Error("Name must be either letters, numbers, periods or underscores.");
|
|
14838
14828
|
if (1 === r2.length && ("r" === r2[0] || "c" === r2[0])) throw new Error("Name can not be 'r' or 'c'.");
|
|
14839
|
-
if (((t3, e3 =
|
|
14829
|
+
if (((t3, e3 = Nc, n3 = Mc, r3 = false) => {
|
|
14840
14830
|
let o3 = oh(t3, r3);
|
|
14841
14831
|
if (!o3) return false;
|
|
14842
14832
|
if (o3[2]) return false;
|
|
@@ -14853,7 +14843,7 @@ class Op {
|
|
|
14853
14843
|
const i2 = this._getState()?.itemsByKey.get(s2);
|
|
14854
14844
|
if (i2) {
|
|
14855
14845
|
const r3 = i2.item.getRanges();
|
|
14856
|
-
if (!n2 || r3 || r3.getCount() > 0) throw new Error(
|
|
14846
|
+
if (!n2 || r3 || r3.getCount() > 0) throw new Error(Np(t2, e2));
|
|
14857
14847
|
}
|
|
14858
14848
|
}
|
|
14859
14849
|
addReference(t2, e2, n2 = false) {
|
|
@@ -14862,7 +14852,7 @@ class Op {
|
|
|
14862
14852
|
const i2 = this._beginCommit(`${o2 && n2 ? "Update" : "Insert"} Named '${t2}'`);
|
|
14863
14853
|
try {
|
|
14864
14854
|
if (o2) {
|
|
14865
|
-
if (!n2) throw new Error(
|
|
14855
|
+
if (!n2) throw new Error(Np(t2));
|
|
14866
14856
|
this._delete(o2, { description: `Delete Named '${o2.getName()}'` });
|
|
14867
14857
|
}
|
|
14868
14858
|
s2 = new Rp({ value: r2, addressToRanges: this._options.addressToRanges, json: { name: t2, ref: r2.toString() }, transactions: this._transactions }), this.add(s2), i2.commit();
|
|
@@ -14935,7 +14925,7 @@ class Op {
|
|
|
14935
14925
|
const i2 = this._toKey(e2);
|
|
14936
14926
|
if (o2) {
|
|
14937
14927
|
const { asFullRange: a3, asPartialRanges: l3, asRanges: c3 } = ((t4) => {
|
|
14938
|
-
const e3 = t4.getCoords(), n3 =
|
|
14928
|
+
const e3 = t4.getCoords(), n3 = Tp(t4), r4 = n3.split(",");
|
|
14939
14929
|
return { asFullRange: n3, asPartialRanges: r4, asRanges: e3 };
|
|
14940
14930
|
})(o2);
|
|
14941
14931
|
if (r3 = a3, s2 = l3, c3) {
|
|
@@ -15076,7 +15066,7 @@ class Dp extends Yi {
|
|
|
15076
15066
|
return "Chart";
|
|
15077
15067
|
}
|
|
15078
15068
|
}
|
|
15079
|
-
class
|
|
15069
|
+
class Lp extends Yi {
|
|
15080
15070
|
constructor(t2) {
|
|
15081
15071
|
super(t2), t2.json && this._updateState({ data: t2.json });
|
|
15082
15072
|
}
|
|
@@ -15096,7 +15086,7 @@ class Bp extends Yi {
|
|
|
15096
15086
|
return "Shape";
|
|
15097
15087
|
}
|
|
15098
15088
|
}
|
|
15099
|
-
class
|
|
15089
|
+
class Bp extends Yi {
|
|
15100
15090
|
constructor(t2) {
|
|
15101
15091
|
super(t2), t2.json && this._updateState({ data: t2.json });
|
|
15102
15092
|
}
|
|
@@ -15159,7 +15149,7 @@ class zp {
|
|
|
15159
15149
|
return this._get(null, false, false).length;
|
|
15160
15150
|
}
|
|
15161
15151
|
}
|
|
15162
|
-
const
|
|
15152
|
+
const Wp = (t2, n2, r2) => {
|
|
15163
15153
|
if (!t2) return n2;
|
|
15164
15154
|
let o2 = n2;
|
|
15165
15155
|
const s2 = r2 === e.Direction.Right || r2 === e.Direction.Down;
|
|
@@ -15168,23 +15158,23 @@ const Hp = (t2, n2, r2) => {
|
|
|
15168
15158
|
if (0 === e2) return o2;
|
|
15169
15159
|
s2 ? o2 += e2 : o2 -= e2;
|
|
15170
15160
|
}
|
|
15171
|
-
},
|
|
15161
|
+
}, Hp = Object.freeze({ colIndex: 0, rowIndex: 0 }), Vp = Object.freeze([]), $p = Object.freeze({ cell: c.EmptyCell, ranges: Vp, rangeIndex: -1 }), jp = (t2, n2 = e.Direction.Right, r2, o2, s2, i2 = null) => {
|
|
15172
15162
|
if (i2 && c.isEqualSelectionCoords(i2, t2)) return t2;
|
|
15173
15163
|
const a2 = t2.ranges[t2.rangeIndex];
|
|
15174
15164
|
if (!c.isRangesIntersect({ rowStart: t2.cell.rowIndex, colStart: t2.cell.colIndex, rowEnd: t2.cell.rowIndex, colEnd: t2.cell.colIndex }, a2)) return t2;
|
|
15175
15165
|
let l2 = { ...t2.cell }, h2 = t2.rangeIndex;
|
|
15176
15166
|
switch (n2) {
|
|
15177
15167
|
case e.Direction.Right:
|
|
15178
|
-
l2.colIndex =
|
|
15168
|
+
l2.colIndex = Wp(s2, l2.colIndex + 1, n2);
|
|
15179
15169
|
break;
|
|
15180
15170
|
case e.Direction.Left:
|
|
15181
|
-
l2.colIndex =
|
|
15171
|
+
l2.colIndex = Wp(s2, l2.colIndex - 1, n2);
|
|
15182
15172
|
break;
|
|
15183
15173
|
case e.Direction.Down:
|
|
15184
|
-
l2.rowIndex =
|
|
15174
|
+
l2.rowIndex = Wp(o2, l2.rowIndex + 1, n2);
|
|
15185
15175
|
break;
|
|
15186
15176
|
case e.Direction.Up:
|
|
15187
|
-
l2.rowIndex =
|
|
15177
|
+
l2.rowIndex = Wp(o2, l2.rowIndex - 1, n2);
|
|
15188
15178
|
}
|
|
15189
15179
|
const d2 = (e2) => {
|
|
15190
15180
|
if (e2) {
|
|
@@ -15205,16 +15195,16 @@ const Hp = (t2, n2, r2) => {
|
|
|
15205
15195
|
let t3 = l2.rowIndex, r3 = l2.colIndex;
|
|
15206
15196
|
switch (n2) {
|
|
15207
15197
|
case e.Direction.Right:
|
|
15208
|
-
r3 > a2.colEnd && (t3 =
|
|
15198
|
+
r3 > a2.colEnd && (t3 = Wp(o2, t3 + 1, n2), r3 = a2.colStart, t3 > a2.rowEnd && (t3 = a2.rowStart));
|
|
15209
15199
|
break;
|
|
15210
15200
|
case e.Direction.Left:
|
|
15211
|
-
r3 < a2.colStart && (t3 =
|
|
15201
|
+
r3 < a2.colStart && (t3 = Wp(o2, t3 - 1, n2), r3 = a2.colEnd, t3 < a2.rowStart && (t3 = a2.rowEnd));
|
|
15212
15202
|
break;
|
|
15213
15203
|
case e.Direction.Down:
|
|
15214
|
-
t3 > a2.rowEnd && (r3 =
|
|
15204
|
+
t3 > a2.rowEnd && (r3 = Wp(s2, r3 + 1, n2), t3 = a2.rowStart, r3 > a2.colEnd && (r3 = a2.colStart));
|
|
15215
15205
|
break;
|
|
15216
15206
|
case e.Direction.Up:
|
|
15217
|
-
t3 < a2.rowStart && (r3 =
|
|
15207
|
+
t3 < a2.rowStart && (r3 = Wp(s2, r3 - 1, n2), t3 = a2.rowEnd, r3 < a2.colStart && (r3 = a2.colEnd));
|
|
15218
15208
|
}
|
|
15219
15209
|
l2 = { rowIndex: t3, colIndex: r3 };
|
|
15220
15210
|
}
|
|
@@ -15223,7 +15213,7 @@ const Hp = (t2, n2, r2) => {
|
|
|
15223
15213
|
const t3 = c.intersectRanges(u2, a2);
|
|
15224
15214
|
t3 && (u2 = t3);
|
|
15225
15215
|
}
|
|
15226
|
-
let g2 = { rowStart:
|
|
15216
|
+
let g2 = { rowStart: Wp(o2, u2.rowStart, e.Direction.Down), colStart: Wp(s2, u2.colStart, e.Direction.Right), rowEnd: Wp(o2, u2.rowEnd, e.Direction.Up), colEnd: Wp(s2, u2.colEnd, e.Direction.Left) };
|
|
15227
15217
|
if (g2.rowStart !== l2.rowIndex || g2.colStart !== l2.colIndex) {
|
|
15228
15218
|
switch (n2) {
|
|
15229
15219
|
case e.Direction.Right:
|
|
@@ -15244,7 +15234,7 @@ const Hp = (t2, n2, r2) => {
|
|
|
15244
15234
|
};
|
|
15245
15235
|
class Gp {
|
|
15246
15236
|
constructor(t2) {
|
|
15247
|
-
this._adjusting = null, this._emitter = null, this._coords =
|
|
15237
|
+
this._adjusting = null, this._emitter = null, this._coords = $p, this._sheet = t2.sheet, this._emitter = new Xi(this);
|
|
15248
15238
|
const n2 = t2.sheet;
|
|
15249
15239
|
this._adjusting = null, this._hiddenRowsAt = (t3, e2) => n2.getRowHeaders().hiddenHeadersAt(t3, e2), this._hiddenColumnsAt = (t3, e2) => n2.getColumnHeaders().hiddenHeadersAt(t3, e2), this._getCellCoordsAsRangeCoords = (t3) => {
|
|
15250
15240
|
const e2 = c.cellToRange(t3);
|
|
@@ -15304,16 +15294,16 @@ class Gp {
|
|
|
15304
15294
|
const n3 = this._getMaxRange();
|
|
15305
15295
|
switch (t2) {
|
|
15306
15296
|
case e.Direction.Up:
|
|
15307
|
-
h2 =
|
|
15297
|
+
h2 = Wp(this._hiddenRowsAt, Math.max(l2.rowStart - 1, n3.rowStart ?? 0), t2);
|
|
15308
15298
|
break;
|
|
15309
15299
|
case e.Direction.Down:
|
|
15310
|
-
h2 =
|
|
15300
|
+
h2 = Wp(this._hiddenRowsAt, Math.min(l2.rowEnd + 1, n3.rowEnd ?? Number.MAX_SAFE_INTEGER), t2);
|
|
15311
15301
|
break;
|
|
15312
15302
|
case e.Direction.Left:
|
|
15313
|
-
d2 =
|
|
15303
|
+
d2 = Wp(this._hiddenColumnsAt, Math.max(l2.colStart - 1, n3.colStart ?? 0), t2);
|
|
15314
15304
|
break;
|
|
15315
15305
|
case e.Direction.Right:
|
|
15316
|
-
d2 =
|
|
15306
|
+
d2 = Wp(this._hiddenColumnsAt, Math.min(l2.colEnd + 1, n3.colEnd ?? Number.MAX_SAFE_INTEGER), t2);
|
|
15317
15307
|
}
|
|
15318
15308
|
if (r2) {
|
|
15319
15309
|
const n4 = this._getMaxRange();
|
|
@@ -15355,7 +15345,7 @@ class Gp {
|
|
|
15355
15345
|
const e2 = this._coords;
|
|
15356
15346
|
if (c.isEqualSelectionCoords(e2, t2)) return;
|
|
15357
15347
|
const n2 = ((t3, e3, n3) => {
|
|
15358
|
-
if (!t3) return
|
|
15348
|
+
if (!t3) return $p;
|
|
15359
15349
|
let r2 = e3.cell;
|
|
15360
15350
|
c.isEqualCells(r2, t3?.cell) || (r2 = Object.freeze({ colIndex: Math.max(0, Math.min(t3?.cell?.colIndex ?? e3.cell?.colIndex ?? 0)), rowIndex: Math.max(0, Math.min(t3?.cell?.rowIndex ?? e3?.cell?.rowIndex ?? 0)) }));
|
|
15361
15351
|
const o2 = t3?.ranges ? [...t3.ranges] : [];
|
|
@@ -15368,7 +15358,7 @@ class Gp {
|
|
|
15368
15358
|
}
|
|
15369
15359
|
let l2 = e3?.ranges ?? [];
|
|
15370
15360
|
!s2 && c.isEqualRangesArrays(l2, o2) || (l2 = o2);
|
|
15371
|
-
let h2 = t3?.rangeIndex ?? e3?.rangeIndex ??
|
|
15361
|
+
let h2 = t3?.rangeIndex ?? e3?.rangeIndex ?? $p.rangeIndex;
|
|
15372
15362
|
if (h2 = Math.max(-1, Math.min(h2, l2.length - 1)), !a2) {
|
|
15373
15363
|
const t4 = l2[h2];
|
|
15374
15364
|
let e4 = r2.rowIndex;
|
|
@@ -15403,7 +15393,7 @@ class Gp {
|
|
|
15403
15393
|
this.updateCoords(i2);
|
|
15404
15394
|
}
|
|
15405
15395
|
clear() {
|
|
15406
|
-
this._setSelectionRanges(
|
|
15396
|
+
this._setSelectionRanges(Vp);
|
|
15407
15397
|
}
|
|
15408
15398
|
modify(t2, e2, n2) {
|
|
15409
15399
|
if ("single" === this._selectionPolicy) return;
|
|
@@ -15440,7 +15430,7 @@ class Gp {
|
|
|
15440
15430
|
}
|
|
15441
15431
|
_setSelectionRanges(t2) {
|
|
15442
15432
|
const e2 = this._coords;
|
|
15443
|
-
let n2 = "function" == typeof t2 ? t2(e2.ranges) : t2 ??
|
|
15433
|
+
let n2 = "function" == typeof t2 ? t2(e2.ranges) : t2 ?? Vp;
|
|
15444
15434
|
if (c.isEqualRangesArrays(n2, e2.ranges)) return;
|
|
15445
15435
|
let r2 = Math.max(n2.length ? 0 : -1, Math.min(e2.rangeIndex, n2.length - 1)), o2 = e2.cell;
|
|
15446
15436
|
-1 === r2 || c.isCellWithinRange(o2, n2[r2]) || (o2 = { rowIndex: n2[r2].rowStart, colIndex: n2[r2].colStart }), 1 === n2.length && c.isSingleCell(n2[0]) && c.isCellWithinRange(o2, n2[0]) && (n2 = [], r2 = -1);
|
|
@@ -15448,7 +15438,7 @@ class Gp {
|
|
|
15448
15438
|
c.isEqualSelectionCoords(s2, e2) || this.updateCoords(s2);
|
|
15449
15439
|
}
|
|
15450
15440
|
_setSelectionCell(t2) {
|
|
15451
|
-
const e2 = this._coords, n2 = t2 ??
|
|
15441
|
+
const e2 = this._coords, n2 = t2 ?? Hp, r2 = this._getCellCoordsAsRangeCoords(n2);
|
|
15452
15442
|
if (!c.isSingleCell(r2) && 0 === e2.ranges.length) return this.updateCoords({ ranges: [r2], rangeIndex: 0, cell: n2 });
|
|
15453
15443
|
if (c.isEqualCells(n2, e2.cell)) return;
|
|
15454
15444
|
let o2 = e2.ranges, s2 = e2.rangeIndex;
|
|
@@ -16021,7 +16011,7 @@ class d_ {
|
|
|
16021
16011
|
}, getA1(t3) {
|
|
16022
16012
|
if (!_2) throw new Error(jh);
|
|
16023
16013
|
return this._parseHeaderRangeAddress({ min: i2 + t3, end: i2 + t3 }) ?? _2;
|
|
16024
|
-
} }, w2 =
|
|
16014
|
+
} }, w2 = Ts(e2, (e3) => {
|
|
16025
16015
|
const n3 = e3.value;
|
|
16026
16016
|
if (!l2 && !n3) return;
|
|
16027
16017
|
let r3 = l2;
|
|
@@ -16061,7 +16051,7 @@ class d_ {
|
|
|
16061
16051
|
}, forEachSpan: (t3, e3) => o2(t3, e3, this._headers), forEachVisibleSpan: (t3, e3) => {
|
|
16062
16052
|
const n3 = r2?.min ?? null, o3 = r2?.max ?? null;
|
|
16063
16053
|
let s3;
|
|
16064
|
-
if (s3 = e3?.includeHidden ? t3(n3, o3) :
|
|
16054
|
+
if (s3 = e3?.includeHidden ? t3(n3, o3) : Ts(this._indexedHidden, (e4) => {
|
|
16065
16055
|
if (e4.value) return;
|
|
16066
16056
|
const n4 = t3(e4.min, e4.max);
|
|
16067
16057
|
return n4 && n4.break ? n4 : void 0;
|
|
@@ -16094,7 +16084,7 @@ class d_ {
|
|
|
16094
16084
|
at(t2) {
|
|
16095
16085
|
if (t2 < 0 || t2 > this._maxDataIndex) return this._emptyHeader;
|
|
16096
16086
|
if (this._lastHeaderRead?.offset === t2) return this._lastHeaderRead.header;
|
|
16097
|
-
const e2 =
|
|
16087
|
+
const e2 = Ns(t2, this._readCache);
|
|
16098
16088
|
if (!e2) return this._emptyHeader;
|
|
16099
16089
|
const n2 = this._options.getTextAt?.(t2) ?? t2 + "", r2 = this._options.createCellHeader(this, e2, { value: n2 });
|
|
16100
16090
|
return this._lastHeaderRead = { offset: t2, header: r2 }, r2;
|
|
@@ -16531,7 +16521,7 @@ class f_ {
|
|
|
16531
16521
|
}
|
|
16532
16522
|
toJSON() {
|
|
16533
16523
|
const t2 = this._c;
|
|
16534
|
-
return [
|
|
16524
|
+
return [Vc(t2), this.getFormulaTextAt(t2.rowStart, t2.colStart)];
|
|
16535
16525
|
}
|
|
16536
16526
|
getCoords() {
|
|
16537
16527
|
return this._c;
|
|
@@ -16790,7 +16780,7 @@ class E_ {
|
|
|
16790
16780
|
}
|
|
16791
16781
|
}
|
|
16792
16782
|
async function C_() {
|
|
16793
|
-
const { getCrypto: t2 } = await import("./
|
|
16783
|
+
const { getCrypto: t2 } = await import("./TLURS9OWFDzxkOsy.mjs");
|
|
16794
16784
|
return t2();
|
|
16795
16785
|
}
|
|
16796
16786
|
const b_ = async (t2, e2, ...n2) => {
|
|
@@ -17001,17 +16991,17 @@ class M_ extends R_ {
|
|
|
17001
16991
|
return super._toJSON(t2);
|
|
17002
16992
|
}
|
|
17003
16993
|
}
|
|
17004
|
-
class
|
|
16994
|
+
class N_ {
|
|
17005
16995
|
constructor(t2, e2, n2) {
|
|
17006
16996
|
this._coords = Object.freeze(t2), this._sheet = e2, this._readOnly = n2?.readOnly ?? null;
|
|
17007
16997
|
}
|
|
17008
16998
|
_createRanges(t2, e2) {
|
|
17009
16999
|
let n2 = this._options;
|
|
17010
|
-
return e2 && (n2 = { ...this._options, getOptions: Zg(this._options?.getOptions, e2) }), new
|
|
17000
|
+
return e2 && (n2 = { ...this._options, getOptions: Zg(this._options?.getOptions, e2) }), new N_(t2, this._sheet, n2);
|
|
17011
17001
|
}
|
|
17012
17002
|
_createRange(t2, e2) {
|
|
17013
17003
|
let n2 = this._options;
|
|
17014
|
-
return e2 && (n2 = { ...this._options, getOptions: Zg(this._options?.getOptions, e2) }), new
|
|
17004
|
+
return e2 && (n2 = { ...this._options, getOptions: Zg(this._options?.getOptions, e2) }), new T_(t2, this._sheet, n2);
|
|
17015
17005
|
}
|
|
17016
17006
|
_validateWrite() {
|
|
17017
17007
|
const t2 = this._readOnly;
|
|
@@ -17131,10 +17121,10 @@ class T_ {
|
|
|
17131
17121
|
return this._sheet._getSnapshot(this.getCoords(), t2);
|
|
17132
17122
|
}
|
|
17133
17123
|
getEntireRows(t2, n2) {
|
|
17134
|
-
return this._createRanges(
|
|
17124
|
+
return this._createRanges(Tg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Column, t2), n2);
|
|
17135
17125
|
}
|
|
17136
17126
|
getEntireColumns(t2, n2) {
|
|
17137
|
-
return this._createRanges(
|
|
17127
|
+
return this._createRanges(Tg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Row, t2), n2);
|
|
17138
17128
|
}
|
|
17139
17129
|
getDefaultShiftOrientation() {
|
|
17140
17130
|
return this._sheet._getDefaultShiftOrientation(this.getCoords()[0]);
|
|
@@ -17199,7 +17189,7 @@ class T_ {
|
|
|
17199
17189
|
return true;
|
|
17200
17190
|
}
|
|
17201
17191
|
}
|
|
17202
|
-
class
|
|
17192
|
+
class T_ {
|
|
17203
17193
|
constructor(t2, e2, n2) {
|
|
17204
17194
|
this._coords = Object.freeze(t2), this._sheet = e2, this._readOnly = n2?.readOnly ?? null;
|
|
17205
17195
|
}
|
|
@@ -17211,11 +17201,11 @@ class N_ {
|
|
|
17211
17201
|
if (!t2) return jg(n2, n2._entireCoords);
|
|
17212
17202
|
if (n2._validateCoords(t2), n2._closed) return jg(null, n2._entireCoords, t2);
|
|
17213
17203
|
let r2 = this._options;
|
|
17214
|
-
return e2 && (r2 = { ...this._options, getOptions: Zg(this._options?.getOptions, e2) }), new
|
|
17204
|
+
return e2 && (r2 = { ...this._options, getOptions: Zg(this._options?.getOptions, e2) }), new T_(t2, this._sheet, r2);
|
|
17215
17205
|
}
|
|
17216
17206
|
_createRanges(t2, e2) {
|
|
17217
17207
|
let n2 = this._options;
|
|
17218
|
-
return e2 && (n2 = { ...this._options, getOptions: Zg(this._options?.getOptions, e2) }), new
|
|
17208
|
+
return e2 && (n2 = { ...this._options, getOptions: Zg(this._options?.getOptions, e2) }), new N_(t2, this._sheet, n2);
|
|
17219
17209
|
}
|
|
17220
17210
|
_deriveRanges(t2, e2) {
|
|
17221
17211
|
const n2 = this.getCoords();
|
|
@@ -17380,11 +17370,11 @@ class N_ {
|
|
|
17380
17370
|
}
|
|
17381
17371
|
getEntireRows(t2, n2) {
|
|
17382
17372
|
const r2 = this._sheet;
|
|
17383
|
-
return this._createRange(
|
|
17373
|
+
return this._createRange(Tg([this.getCoords()], r2._entireCoords, e.Orientation.Column, t2)[0], n2);
|
|
17384
17374
|
}
|
|
17385
17375
|
getEntireColumns(t2, n2) {
|
|
17386
17376
|
const r2 = this._sheet;
|
|
17387
|
-
return this._createRange(
|
|
17377
|
+
return this._createRange(Tg([this.getCoords()], r2._entireCoords, e.Orientation.Row, t2)[0], n2);
|
|
17388
17378
|
}
|
|
17389
17379
|
getRowHeaders(t2) {
|
|
17390
17380
|
const e2 = this.getCoords();
|
|
@@ -17601,23 +17591,23 @@ class N_ {
|
|
|
17601
17591
|
return true;
|
|
17602
17592
|
}
|
|
17603
17593
|
}
|
|
17604
|
-
const k_ = Math.pow(2, 14), F_ = Math.pow(2, 20), O_ = (t2) => `${t2}`, D_ = (t2) =>
|
|
17605
|
-
let
|
|
17594
|
+
const k_ = Math.pow(2, 14), F_ = Math.pow(2, 20), O_ = (t2) => `${t2}`, D_ = (t2) => Lc(t2), L_ = (t2) => `${t2 + 1}`;
|
|
17595
|
+
let B_ = 0;
|
|
17606
17596
|
const P_ = () => [];
|
|
17607
17597
|
let z_ = 0;
|
|
17608
|
-
class
|
|
17598
|
+
class W_ {
|
|
17609
17599
|
constructor(t2) {
|
|
17610
17600
|
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;
|
|
17611
17601
|
const e2 = Object.freeze({ ...t2 });
|
|
17612
|
-
|
|
17602
|
+
at._validate(true), this._transactions = e2.transactions ?? new k(), this._ownTransactions = !e2.transactions;
|
|
17613
17603
|
const n2 = this._beginCommit({ description: "New Sheet" }), r2 = this;
|
|
17614
17604
|
try {
|
|
17615
|
-
this._entireCoords = Object.freeze({ colStart: 0, rowStart: 0, colEnd: (e2.maxColumns ?? k_) - 1, rowEnd: (e2.maxRows ?? F_) - 1 }), this._strings = e2.strings ?? new
|
|
17605
|
+
this._entireCoords = Object.freeze({ colStart: 0, rowStart: 0, colEnd: (e2.maxColumns ?? k_) - 1, rowEnd: (e2.maxRows ?? F_) - 1 }), this._strings = e2.strings ?? new Hm(), this._ownStrings = !e2.strings;
|
|
17616
17606
|
const t3 = e2.styles ?? new Om();
|
|
17617
17607
|
this._styles = t3, this._ownStyles = !e2.styles, this._names = e2.names ?? new Op({ addressToRanges: (t4) => r2.getRanges(t4), getCurrentScope: () => r2.getName(), isReadOnly: () => r2._options.readonly ?? false, transactions: r2._transactions }), this._ownNames = !e2.names, this._namesRemoveListener = this._names.addListeners({ onCollectionChange: (t4) => {
|
|
17618
17608
|
r2._calculateFull();
|
|
17619
17609
|
} }, { transactional: false }), this._calculation = e2.calculation ?? new sp({ getNamed: (t4, e3) => {
|
|
17620
|
-
|
|
17610
|
+
H_.address = t4, H_.scope = e3;
|
|
17621
17611
|
const n3 = this._names.getItems({ address: t4, scope: e3 });
|
|
17622
17612
|
return n3 && 0 !== n3.length ? n3[0].getRanges().getCoords() : null;
|
|
17623
17613
|
}, getSheetIndex: (t4) => void 0 === t4 || t4 === r2.getName() ? 1 : 0, getSheetCount: () => 1, isDate1904: () => r2.isDate1904(), strings: r2._strings, transactions: r2._transactions }), this._ownsCalculation = !e2.calculation, this._workbook = e2.workbook ?? null, this._normalStyleRanged = t3.getNamed(Si.BuiltInName.Normal).getRanged(), this._resources = e2.resources ?? new zm(), this._ownResources = !e2.resources;
|
|
@@ -17661,7 +17651,7 @@ class H_ {
|
|
|
17661
17651
|
if (this._validateCoords(t2), this._closed) return jg(null, this._entireCoords, t2);
|
|
17662
17652
|
null === n2 && this._options.readonly && (n2 = "Readonly sheet");
|
|
17663
17653
|
let r2 = null;
|
|
17664
|
-
return (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new
|
|
17654
|
+
return (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new T_(((t3) => {
|
|
17665
17655
|
if (!t3) return null;
|
|
17666
17656
|
const e3 = { colStart: t3.colIndex ?? t3.colStart ?? 0, rowStart: t3.rowIndex ?? t3.rowStart ?? 0, colEnd: t3.colIndex ?? t3.colEnd ?? 0, rowEnd: t3.rowIndex ?? t3.rowEnd ?? 0 };
|
|
17667
17657
|
return (t3.$colStart || t3.$colIndex) && (e3.$colStart = true), (t3.$colEnd || t3.$colIndex) && (e3.$colEnd = true), (t3.$rowStart || t3.$rowIndex) && (e3.$rowStart = true), (t3.$rowEnd || t3.$rowIndex) && (e3.$rowEnd = true), e3;
|
|
@@ -17669,7 +17659,7 @@ class H_ {
|
|
|
17669
17659
|
}
|
|
17670
17660
|
_createRanges(t2, e2, n2 = null) {
|
|
17671
17661
|
let r2 = null;
|
|
17672
|
-
return null === n2 && this._options.readonly && (n2 = "Readonly sheet"), (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new
|
|
17662
|
+
return null === n2 && this._options.readonly && (n2 = "Readonly sheet"), (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new N_(t2, this, r2);
|
|
17673
17663
|
}
|
|
17674
17664
|
getRange(t2, e2) {
|
|
17675
17665
|
let n2 = !e2 && t2 && (void 0 !== t2.rowStart || "string" == typeof t2);
|
|
@@ -17946,7 +17936,7 @@ class H_ {
|
|
|
17946
17936
|
}
|
|
17947
17937
|
const u2 = a2 || !t2?.ignoreEmptyIntersections;
|
|
17948
17938
|
let g2 = t2.includeRangeTypes;
|
|
17949
|
-
true === g2 && (g2 =
|
|
17939
|
+
true === g2 && (g2 = Nh);
|
|
17950
17940
|
const m2 = t2?.includeMergeOverflow ?? false, f2 = g2 ? this._rangeStateIterator({ bounds: o2, orientation: s2, reverse: i2, includeRangeTypes: g2, includeMergeOverflow: m2, excludeHidden: t2.excludeHidden, byCell: true }) : ia;
|
|
17951
17941
|
let p2, _2;
|
|
17952
17942
|
if (m2 && r2) {
|
|
@@ -17958,14 +17948,14 @@ class H_ {
|
|
|
17958
17948
|
const C2 = n2?.cellValuesGrid ?? null;
|
|
17959
17949
|
let b2 = C2 ? C2.entries(l2) : ia, v2 = b2.next(), x2 = null, I2 = null, R2 = null;
|
|
17960
17950
|
v2.done || (x2 = v2.value[0], I2 = v2.value[1]);
|
|
17961
|
-
let A2 = p2?.[y2++], M2 = f2.next(),
|
|
17962
|
-
const
|
|
17951
|
+
let A2 = p2?.[y2++], M2 = f2.next(), N2 = null;
|
|
17952
|
+
const T2 = s2 !== e.Orientation.Row;
|
|
17963
17953
|
let k2;
|
|
17964
17954
|
const F2 = c.createCellComparator(s2, i2);
|
|
17965
17955
|
let O2;
|
|
17966
17956
|
if (!M2.done) {
|
|
17967
17957
|
const t3 = M2.value;
|
|
17968
|
-
|
|
17958
|
+
N2 = t3.intersection, O2 = t3.start;
|
|
17969
17959
|
}
|
|
17970
17960
|
k2 = (t3) => {
|
|
17971
17961
|
let e2 = null, n3 = null, r3 = null, o3 = false, s3 = false, i3 = null, a3 = null, l3 = false;
|
|
@@ -17977,25 +17967,25 @@ class H_ {
|
|
|
17977
17967
|
if (l3) e2 = { colIndex: A2.colIndex, rowIndex: A2.rowIndex }, n3 = A2.scalar, r3 = A2.intersection, A2 = p2[y2++];
|
|
17978
17968
|
else if (x2 && O2) {
|
|
17979
17969
|
const t4 = F2(x2, O2);
|
|
17980
|
-
t4 < 0 ? (e2 = x2, n3 = I2, o3 = true) : t4 > 0 ? (e2 = O2, r3 =
|
|
17970
|
+
t4 < 0 ? (e2 = x2, n3 = I2, o3 = true) : t4 > 0 ? (e2 = O2, r3 = N2, s3 = true) : (e2 = x2, n3 = I2, r3 = N2, o3 = true, s3 = true);
|
|
17981
17971
|
} else if (x2) e2 = x2, n3 = I2, o3 = true;
|
|
17982
17972
|
else {
|
|
17983
17973
|
if (!O2 || !u2) return sa;
|
|
17984
|
-
e2 = O2, r3 =
|
|
17974
|
+
e2 = O2, r3 = N2, s3 = true;
|
|
17985
17975
|
}
|
|
17986
17976
|
if (o3 && (v2 = b2.next(), v2.done ? x2 = null : (x2 = v2.value[0], I2 = v2.value[1])), s3) {
|
|
17987
17977
|
const t4 = u2 ? void 0 : x2;
|
|
17988
|
-
if (M2 = f2.next(t4), M2.done) O2 = null,
|
|
17978
|
+
if (M2 = f2.next(t4), M2.done) O2 = null, N2 = null;
|
|
17989
17979
|
else {
|
|
17990
17980
|
const t5 = M2.value;
|
|
17991
|
-
|
|
17981
|
+
N2 = t5.intersection, O2 = t5.cell;
|
|
17992
17982
|
}
|
|
17993
17983
|
}
|
|
17994
17984
|
let c2 = false;
|
|
17995
17985
|
const h3 = e2.rowIndex, d3 = e2.colIndex;
|
|
17996
|
-
|
|
17986
|
+
T2 || (c2 = h3 === R2?.rowIndex);
|
|
17997
17987
|
let g3 = false;
|
|
17998
|
-
if (
|
|
17988
|
+
if (T2 || (g3 = h3 === x2?.rowIndex), c2) i3 = R2;
|
|
17999
17989
|
else if (m2) {
|
|
18000
17990
|
let t4 = false;
|
|
18001
17991
|
for (; !t4 && E2 < w2; ) {
|
|
@@ -18121,26 +18111,26 @@ class H_ {
|
|
|
18121
18111
|
let v2 = false;
|
|
18122
18112
|
m2 && this._hasRangedEntries("unlockSpatial", E2) && (b2[Ah.Type.Unlock] = false, v2 = true), this._hasRangedEntries("mergeSpatial", E2) && (b2[Ah.Type.Merge] = false, v2 = true);
|
|
18123
18113
|
const x2 = this._rangeStateIterator({ bounds: E2, orientation: g2, includeRangeTypes: b2, reuseIterator: { done: false, value: null } });
|
|
18124
|
-
let I2 = x2.next(), R2 = -1, A2 = -1, M2 = -1,
|
|
18114
|
+
let I2 = x2.next(), R2 = -1, A2 = -1, M2 = -1, N2 = -1, T2 = null;
|
|
18125
18115
|
if (!I2.done) {
|
|
18126
18116
|
const t3 = I2.value, e2 = t3.start, n3 = t3.end;
|
|
18127
|
-
R2 = u2 ? e2.colIndex : e2.rowIndex, A2 = u2 ? n3.colIndex : n3.rowIndex, M2 = u2 ? e2.rowIndex : e2.colIndex,
|
|
18117
|
+
R2 = u2 ? e2.colIndex : e2.rowIndex, A2 = u2 ? n3.colIndex : n3.rowIndex, M2 = u2 ? e2.rowIndex : e2.colIndex, N2 = u2 ? n3.rowIndex : n3.colIndex, T2 = t3.intersection;
|
|
18128
18118
|
}
|
|
18129
18119
|
let k2 = (t3, e2) => {
|
|
18130
18120
|
do {
|
|
18131
|
-
if (!
|
|
18132
|
-
if (t3 >= R2 && e2 >= M2 && t3 <= A2 && e2 <=
|
|
18133
|
-
if (I2 = x2.next(), I2.done)
|
|
18121
|
+
if (!T2 || t3 <= M2 && e2 < M2) return null;
|
|
18122
|
+
if (t3 >= R2 && e2 >= M2 && t3 <= A2 && e2 <= N2) return T2;
|
|
18123
|
+
if (I2 = x2.next(), I2.done) T2 = null, k2 = null, v2 = false;
|
|
18134
18124
|
else {
|
|
18135
18125
|
const t4 = I2.value;
|
|
18136
|
-
R2 = u2 ? t4.start.colIndex : t4.start.rowIndex, A2 = u2 ? t4.end.colIndex : t4.end.rowIndex, M2 = u2 ? t4.start.rowIndex : t4.start.colIndex,
|
|
18126
|
+
R2 = u2 ? t4.start.colIndex : t4.start.rowIndex, A2 = u2 ? t4.end.colIndex : t4.end.rowIndex, M2 = u2 ? t4.start.rowIndex : t4.start.colIndex, N2 = u2 ? t4.end.rowIndex : t4.end.colIndex, T2 = t4.intersection;
|
|
18137
18127
|
}
|
|
18138
|
-
} while (
|
|
18139
|
-
return
|
|
18128
|
+
} while (T2);
|
|
18129
|
+
return T2;
|
|
18140
18130
|
};
|
|
18141
|
-
const F2 = c2.getState(this), O2 = F2.cellValuesGrid.clone(), D2 = F2.calcGraph.clone(),
|
|
18131
|
+
const F2 = c2.getState(this), O2 = F2.cellValuesGrid.clone(), D2 = F2.calcGraph.clone(), L2 = F2.formulaSpatial.clone(), B2 = F2.spillSpatial.clone(), P2 = F2.pendingSpatial.clone(), z2 = F2.calcErrorsSpatial.clone(), W2 = F2.contentfulSpatial.clone(), H2 = bl(u2), V2 = bl(u2, (t3, e2) => {
|
|
18142
18132
|
if (t3 === e2) return e2;
|
|
18143
|
-
}),
|
|
18133
|
+
}), $2 = bl(u2, (t3, e2) => {
|
|
18144
18134
|
if (t3 === e2) return e2;
|
|
18145
18135
|
}), j2 = bl(u2, (t3, e2) => {
|
|
18146
18136
|
if (t3 === e2) return e2;
|
|
@@ -18178,9 +18168,9 @@ class H_ {
|
|
|
18178
18168
|
}
|
|
18179
18169
|
if (!i2) {
|
|
18180
18170
|
const t4 = o3.style;
|
|
18181
|
-
void 0 === t4 || null === t4 && !s2 ||
|
|
18171
|
+
void 0 === t4 || null === t4 && !s2 || V2.append(e2, n3, t4);
|
|
18182
18172
|
const r4 = o3.hyperlink;
|
|
18183
|
-
void 0 === r4 || null === r4 && !s2 ||
|
|
18173
|
+
void 0 === r4 || null === r4 && !s2 || $2.append(e2, n3, r4);
|
|
18184
18174
|
}
|
|
18185
18175
|
const l3 = o3.formula;
|
|
18186
18176
|
return void 0 === l3 || null === l3 && !s2 || j2.append(e2, n3, l3), a3;
|
|
@@ -18203,7 +18193,7 @@ class H_ {
|
|
|
18203
18193
|
const e4 = i5[t6];
|
|
18204
18194
|
let r5 = null;
|
|
18205
18195
|
if (v2 || "number" != typeof e4 ? (v2 || null !== e4 || s2) && (r5 = Q2(e4, n3, c3)) : r5 = e4, null == r5) {
|
|
18206
|
-
if (null === r5 &&
|
|
18196
|
+
if (null === r5 && H2.append(n3, c3), h3.length > 0) {
|
|
18207
18197
|
const t7 = Y2(h3, p2);
|
|
18208
18198
|
o4.push([l3, t7]), h3 = [];
|
|
18209
18199
|
}
|
|
@@ -18218,26 +18208,26 @@ class H_ {
|
|
|
18218
18208
|
}
|
|
18219
18209
|
o4.length > 0 && q2.push([n3, o4]);
|
|
18220
18210
|
}
|
|
18221
|
-
const r3 =
|
|
18211
|
+
const r3 = H2.done(), o3 = r3.length;
|
|
18222
18212
|
for (let t4 = 0; t4 < o3; t4++) {
|
|
18223
18213
|
const e2 = r3[t4];
|
|
18224
|
-
O2.delete(r3[t4]),
|
|
18214
|
+
O2.delete(r3[t4]), W2.insertNonOverlapping({ ...e2, value: null });
|
|
18225
18215
|
const n3 = D2.delete(e2);
|
|
18226
|
-
this._updateFormulaSpatial(
|
|
18216
|
+
this._updateFormulaSpatial(L2, null, n3);
|
|
18227
18217
|
}
|
|
18228
18218
|
let i3;
|
|
18229
18219
|
q2.length > 0 && (O2.setValues(q2), i3 = { tuples: q2, bounds: l2 });
|
|
18230
18220
|
let g3, m3 = j2.done();
|
|
18231
18221
|
if (m3.length > 1 && (m3 = el(m3, e.Orientation.Column, 1)), i3 || m3.length > 0) {
|
|
18232
18222
|
const t4 = D2.setInputs(i3, m3);
|
|
18233
|
-
g3 = this._updateFormulaSpatial(
|
|
18223
|
+
g3 = this._updateFormulaSpatial(L2, t4.inserts, t4.removes, F2.directStyleSpatial);
|
|
18234
18224
|
}
|
|
18235
18225
|
const f3 = nm(q2, u2), C3 = f3.length;
|
|
18236
|
-
for (let t4 = 0; t4 < C3; t4++)
|
|
18237
|
-
const b3 =
|
|
18226
|
+
for (let t4 = 0; t4 < C3; t4++) W2.insertNonOverlapping(f3[t4]);
|
|
18227
|
+
const b3 = V2.done();
|
|
18238
18228
|
b3.length > 0 && this._updateStyles(b3), G2.length > 0 && this._merge(G2);
|
|
18239
|
-
const x3 =
|
|
18240
|
-
if (x3.length > 0 && this._setHyperlinks(x3), this._updateState({ cellValuesGrid: O2, contentfulSpatial:
|
|
18229
|
+
const x3 = $2.done();
|
|
18230
|
+
if (x3.length > 0 && this._setHyperlinks(x3), this._updateState({ cellValuesGrid: O2, contentfulSpatial: W2, calcGraph: D2, formulaSpatial: L2, spillSpatial: B2, pendingSpatial: P2, calcErrorsSpatial: z2 }), g3 && g3.length > 0 && this._updateStyles(g3, void 0, {}, true), n2?.autoFit) {
|
|
18241
18231
|
const t4 = "boolean" == typeof n2.autoFit ? Y_ : n2.autoFit;
|
|
18242
18232
|
this._autoFit([E2], t4);
|
|
18243
18233
|
}
|
|
@@ -18255,11 +18245,11 @@ class H_ {
|
|
|
18255
18245
|
if (a2.length > 0) {
|
|
18256
18246
|
i2 = true;
|
|
18257
18247
|
let e2 = a2[0];
|
|
18258
|
-
if (o2 = e2.colEnd - e2.colStart + 1, s2 = e2.rowEnd - e2.rowStart + 1, (t2.colEnd - t2.colStart + 1) % o2 != 0 || (t2.rowEnd - t2.rowStart + 1) % s2 != 0) throw new Error(
|
|
18248
|
+
if (o2 = e2.colEnd - e2.colStart + 1, s2 = e2.rowEnd - e2.rowStart + 1, (t2.colEnd - t2.colStart + 1) % o2 != 0 || (t2.rowEnd - t2.rowStart + 1) % s2 != 0) throw new Error(Vh);
|
|
18259
18249
|
const n3 = a2.length;
|
|
18260
18250
|
for (let t3 = 1; t3 < n3; t3++) {
|
|
18261
18251
|
const e3 = a2[t3];
|
|
18262
|
-
if (e3.colEnd - e3.colStart + 1 !== o2 || e3.rowEnd - e3.rowStart + 1 !== s2) throw new Error(
|
|
18252
|
+
if (e3.colEnd - e3.colStart + 1 !== o2 || e3.rowEnd - e3.rowStart + 1 !== s2) throw new Error(Vh);
|
|
18263
18253
|
}
|
|
18264
18254
|
}
|
|
18265
18255
|
const l2 = n2?.orientation ?? e.Orientation.Row, c2 = l2 === e.Orientation.Row;
|
|
@@ -18309,8 +18299,8 @@ class H_ {
|
|
|
18309
18299
|
}
|
|
18310
18300
|
if (!w2) return;
|
|
18311
18301
|
if (0 === S2.length) return;
|
|
18312
|
-
const M2 = /* @__PURE__ */ new Map(),
|
|
18313
|
-
for (let t3 = 0; t3 < k2; t3++) M2.set(
|
|
18302
|
+
const M2 = /* @__PURE__ */ new Map(), N2 = /* @__PURE__ */ new Map(), T2 = n2?.collators ?? ta.DefaultCollators, k2 = T2.length;
|
|
18303
|
+
for (let t3 = 0; t3 < k2; t3++) M2.set(T2[t3].type, T2[t3].compare), N2.set(T2[t3].type, t3);
|
|
18314
18304
|
let F2 = null, O2 = null, D2 = null;
|
|
18315
18305
|
S2.sort((t3, e2) => {
|
|
18316
18306
|
const n3 = p2.length;
|
|
@@ -18323,14 +18313,14 @@ class H_ {
|
|
|
18323
18313
|
const h3 = o3.getType(), d2 = s3.getType();
|
|
18324
18314
|
let u3 = 0;
|
|
18325
18315
|
if (h3 !== d2) {
|
|
18326
|
-
let t4 =
|
|
18327
|
-
u3 =
|
|
18316
|
+
let t4 = N2.get(h3);
|
|
18317
|
+
u3 = N2.get(d2) - t4;
|
|
18328
18318
|
} else {
|
|
18329
18319
|
let t4 = O2;
|
|
18330
18320
|
if (F2 !== h3) {
|
|
18331
18321
|
t4 = M2.get(h3), O2 = t4, F2 = h3;
|
|
18332
|
-
let e3 =
|
|
18333
|
-
const r4 =
|
|
18322
|
+
let e3 = N2.get(d2);
|
|
18323
|
+
const r4 = T2[e3].defaultOptions;
|
|
18334
18324
|
D2 = { ...r4, ...n4.collatorOptions };
|
|
18335
18325
|
}
|
|
18336
18326
|
u3 = t4(i3, a3, D2);
|
|
@@ -18339,13 +18329,13 @@ class H_ {
|
|
|
18339
18329
|
}
|
|
18340
18330
|
return 0;
|
|
18341
18331
|
});
|
|
18342
|
-
const
|
|
18343
|
-
let
|
|
18344
|
-
v2 || (
|
|
18332
|
+
const L2 = this._beginCommit({ description: r2 });
|
|
18333
|
+
let B2 = [u2];
|
|
18334
|
+
v2 || (B2 = this._getVisible(B2, { orientations: c2 ? e.Orientations.Row : e.Orientations.Column })), this._clear(B2, void 0, void 0, true);
|
|
18345
18335
|
const P2 = this._createIncrementalUpdater({ orientation: l2 });
|
|
18346
18336
|
let z2 = c2 ? u2.rowStart : u2.colStart;
|
|
18347
|
-
const
|
|
18348
|
-
for (let t3 = 0; t3 <
|
|
18337
|
+
const W2 = S2.length;
|
|
18338
|
+
for (let t3 = 0; t3 < W2; t3++) {
|
|
18349
18339
|
const e2 = S2[t3];
|
|
18350
18340
|
if (b2 && (z2 = b2(z2)), e2) {
|
|
18351
18341
|
const t4 = e2.values, n3 = t4.length;
|
|
@@ -18356,7 +18346,7 @@ class H_ {
|
|
|
18356
18346
|
}
|
|
18357
18347
|
z2 += I2;
|
|
18358
18348
|
}
|
|
18359
|
-
return P2.apply(),
|
|
18349
|
+
return P2.apply(), L2.commit(), u2;
|
|
18360
18350
|
}
|
|
18361
18351
|
_autoFill(t2, n2, r2) {
|
|
18362
18352
|
const { direction: o2, amount: s2 } = ((t3, n3) => {
|
|
@@ -18372,7 +18362,7 @@ class H_ {
|
|
|
18372
18362
|
const p2 = { ...t2 };
|
|
18373
18363
|
let _2 = { ...t2 };
|
|
18374
18364
|
const S2 = [t2], w2 = this._getMerges(S2);
|
|
18375
|
-
if (w2.length > 0 && !c.isRangeWithinRange(c.unionRangesArrays(w2), t2)) throw new Error(
|
|
18365
|
+
if (w2.length > 0 && !c.isRangeWithinRange(c.unionRangesArrays(w2), t2)) throw new Error(Hh);
|
|
18376
18366
|
const y2 = { ..._2 };
|
|
18377
18367
|
let E2 = 1;
|
|
18378
18368
|
if (o2 === e.Direction.Left) p2.colStart = _2.colStart = t2.colStart - s2, p2.colEnd = t2.colStart - 1, E2 = 0 === w2.length ? E2 : t2.colEnd + 1 - t2.colStart, y2.rowStart = y2.rowEnd;
|
|
@@ -18383,20 +18373,20 @@ class H_ {
|
|
|
18383
18373
|
p2.rowEnd = _2.rowEnd = t2.rowEnd + s2, p2.rowStart = t2.rowEnd + 1, E2 = 0 === w2.length ? E2 : t2.rowEnd + 1 - t2.rowStart, y2.colStart = y2.colEnd;
|
|
18384
18374
|
}
|
|
18385
18375
|
if (s2 % E2 !== 0) throw new Error(((t3) => `When filling with merged cells the amount to fill must be a multiple of the input range [${t3}].`)(E2));
|
|
18386
|
-
const C2 = i2 ? "rowIndex" : "colIndex", v2 = i2 ? "colIndex" : "rowIndex", x2 = i2 ? t2.rowEnd + 1 - t2.rowStart : t2.colEnd + 1 - t2.colStart, I2 = i2 ? t2.rowStart : t2.colStart, R2 = i2 ? t2.rowEnd : t2.colEnd, A2 = i2 ? n2.rowStart : n2.colStart, M2 = i2 ? n2.rowEnd : n2.colEnd,
|
|
18387
|
-
|
|
18388
|
-
const
|
|
18376
|
+
const C2 = i2 ? "rowIndex" : "colIndex", v2 = i2 ? "colIndex" : "rowIndex", x2 = i2 ? t2.rowEnd + 1 - t2.rowStart : t2.colEnd + 1 - t2.colStart, I2 = i2 ? t2.rowStart : t2.colStart, R2 = i2 ? t2.rowEnd : t2.colEnd, A2 = i2 ? n2.rowStart : n2.colStart, M2 = i2 ? n2.rowEnd : n2.colEnd, N2 = i2 ? o2 === e.Direction.Down : o2 === e.Direction.Right;
|
|
18377
|
+
N2 || (g2.reverse = true);
|
|
18378
|
+
const T2 = N2 ? R2 + 1 : A2, k2 = (N2 ? M2 : I2 - 1) - T2 + 1, F2 = i2 ? t2.colEnd : t2.rowEnd;
|
|
18389
18379
|
l2.push(c.unionRanges(p2, t2));
|
|
18390
18380
|
const O2 = [];
|
|
18391
18381
|
let D2 = null;
|
|
18392
18382
|
h2 || (m2 = this._beginCommit({ description: "Auto Fill", operation: { name: "autoFill", params: [t2, n2, r2] } }));
|
|
18393
|
-
const
|
|
18394
|
-
let
|
|
18395
|
-
for (; !
|
|
18396
|
-
const t3 =
|
|
18397
|
-
D2?.oppositeIndex !== n3[v2] && (D2 = { oppositeIndex: n3[v2], lastIndex:
|
|
18383
|
+
const L2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !N2, orientation: i2 ? e.Orientation.Column : e.Orientation.Row, includeRangeTypes: { [Ah.Type.Style]: false } });
|
|
18384
|
+
let B2 = L2.next();
|
|
18385
|
+
for (; !B2.done; ) {
|
|
18386
|
+
const t3 = B2.value.context, e2 = t3.getCell(), n3 = t3.getCoords();
|
|
18387
|
+
D2?.oppositeIndex !== n3[v2] && (D2 = { oppositeIndex: n3[v2], lastIndex: N2 ? I2 - 1 : R2 + 1, values: [] }, O2.push(D2));
|
|
18398
18388
|
const r3 = n3[C2];
|
|
18399
|
-
if (
|
|
18389
|
+
if (N2) for (let t4 = D2.lastIndex + 1; t4 < r3; t4++) D2.values.push(null);
|
|
18400
18390
|
else for (let t4 = D2.lastIndex - 1; t4 > r3; t4--) D2.values.push(null);
|
|
18401
18391
|
D2.lastIndex = r3;
|
|
18402
18392
|
const o3 = e2.toDate();
|
|
@@ -18405,7 +18395,7 @@ class H_ {
|
|
|
18405
18395
|
let t4 = e2.getValue();
|
|
18406
18396
|
D2.values.push(t4);
|
|
18407
18397
|
}
|
|
18408
|
-
|
|
18398
|
+
B2 = L2.next();
|
|
18409
18399
|
}
|
|
18410
18400
|
const P2 = O2.length;
|
|
18411
18401
|
for (let t3 = 0; t3 < P2; t3++) {
|
|
@@ -18418,49 +18408,49 @@ class H_ {
|
|
|
18418
18408
|
if (n3) return n3;
|
|
18419
18409
|
}
|
|
18420
18410
|
return Fs.Types.Copy.createFillAt(e2);
|
|
18421
|
-
},
|
|
18411
|
+
}, W2 = this;
|
|
18422
18412
|
if (h2) {
|
|
18423
18413
|
const t3 = O2[O2.length - 1];
|
|
18424
18414
|
if (O2[O2.length - 1]?.oppositeIndex !== F2) return null;
|
|
18425
18415
|
const n3 = z2(u2, t3.values);
|
|
18426
18416
|
return h2((t4) => {
|
|
18427
|
-
const r3 =
|
|
18417
|
+
const r3 = W2._rangeToCoords(t4);
|
|
18428
18418
|
let s3;
|
|
18429
18419
|
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 });
|
|
18430
|
-
const a3 = i2 ? s3.rowIndex : s3.colIndex, l3 = { value: n3(
|
|
18420
|
+
const a3 = i2 ? s3.rowIndex : s3.colIndex, l3 = { value: n3(N2 ? a3 - I2 : I2 - a3 + x2 - 1) };
|
|
18431
18421
|
let c2 = null;
|
|
18432
18422
|
return c2 = d2 ? this.createTemporaryCell(l3, s3) : this.createTemporaryCell(null, s3).createTemporaryCell(l3), c2;
|
|
18433
18423
|
}), false;
|
|
18434
18424
|
}
|
|
18435
|
-
const
|
|
18425
|
+
const H2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }), V2 = O2.length;
|
|
18436
18426
|
O2.sort((t3, e2) => t3.oppositeIndex - e2.oppositeIndex);
|
|
18437
|
-
for (let t3 = 0; t3 <
|
|
18438
|
-
const e2 = t3, n3 = z2(u2, O2[e2].values), r3 = O2[e2].oppositeIndex, o3 =
|
|
18427
|
+
for (let t3 = 0; t3 < V2; t3++) {
|
|
18428
|
+
const e2 = t3, n3 = z2(u2, O2[e2].values), r3 = O2[e2].oppositeIndex, o3 = N2 ? x2 : x2 + k2 - 1, s3 = this.isDate1904();
|
|
18439
18429
|
for (let t4 = 0; t4 < k2; t4++) {
|
|
18440
|
-
let e3 = n3(o3 + (
|
|
18430
|
+
let e3 = n3(o3 + (N2 ? t4 : -t4));
|
|
18441
18431
|
Kr(e3) && (e3 = no(e3, s3));
|
|
18442
|
-
const a3 =
|
|
18443
|
-
i2 ?
|
|
18432
|
+
const a3 = T2 + t4;
|
|
18433
|
+
i2 ? H2.pushAt(a3, r3, e3) : H2.pushAt(r3, a3, e3);
|
|
18444
18434
|
}
|
|
18445
18435
|
}
|
|
18446
|
-
this._clear([p2], r2?.contentsOnly ? Yh.Content.Formats : void 0),
|
|
18447
|
-
const
|
|
18448
|
-
if (
|
|
18449
|
-
if (
|
|
18436
|
+
this._clear([p2], r2?.contentsOnly ? Yh.Content.Formats : void 0), H2.apply();
|
|
18437
|
+
const $2 = this._getMerges([_2]), j2 = c.unionRangesArrays($2);
|
|
18438
|
+
if ($2.length > 0 && !c.isRangeWithinRange(j2, _2)) throw new Error(Hh);
|
|
18439
|
+
if ($2.length > 0) {
|
|
18450
18440
|
const n3 = [], r3 = s2 / E2;
|
|
18451
18441
|
if (i2) {
|
|
18452
|
-
const s3 = t2.rowEnd - t2.rowStart + 1, i3 = o2 === e.Direction.Up ? p2.rowStart : t2.rowEnd + 1, a3 =
|
|
18442
|
+
const s3 = t2.rowEnd - t2.rowStart + 1, i3 = o2 === e.Direction.Up ? p2.rowStart : t2.rowEnd + 1, a3 = $2.length;
|
|
18453
18443
|
for (let e2 = 0; e2 < a3; e2++) {
|
|
18454
|
-
const o3 =
|
|
18444
|
+
const o3 = $2[e2], a4 = o3.rowStart - t2.rowStart, l3 = o3.rowEnd - o3.rowStart + 1;
|
|
18455
18445
|
for (let t3 = 0; t3 < r3; t3++) {
|
|
18456
18446
|
const e3 = t3 * s3;
|
|
18457
18447
|
n3.push({ colStart: o3.colStart, rowStart: i3 + e3 + a4, colEnd: o3.colEnd, rowEnd: i3 + e3 + a4 + l3 - 1 });
|
|
18458
18448
|
}
|
|
18459
18449
|
}
|
|
18460
18450
|
} else {
|
|
18461
|
-
const s3 = t2.colEnd - t2.colStart + 1, i3 = o2 === e.Direction.Left ? p2.colStart : t2.colEnd + 1, a3 =
|
|
18451
|
+
const s3 = t2.colEnd - t2.colStart + 1, i3 = o2 === e.Direction.Left ? p2.colStart : t2.colEnd + 1, a3 = $2.length;
|
|
18462
18452
|
for (let e2 = 0; e2 < a3; e2++) {
|
|
18463
|
-
const o3 =
|
|
18453
|
+
const o3 = $2[e2], a4 = o3.colStart - t2.colStart, l3 = o3.colEnd - o3.colStart + 1;
|
|
18464
18454
|
for (let t3 = 0; t3 < r3; t3++) {
|
|
18465
18455
|
const e3 = t3 * s3;
|
|
18466
18456
|
n3.push({ colStart: i3 + e3 + a4, rowStart: o3.rowStart, colEnd: i3 + e3 + a4 + l3 - 1, rowEnd: o3.rowEnd });
|
|
@@ -18472,7 +18462,7 @@ class H_ {
|
|
|
18472
18462
|
const G2 = this._getState(), U2 = {}, J2 = {};
|
|
18473
18463
|
J2.directStyleSpatial = G2.directStyleSpatial, J2.continuousFillSpatial = G2.continuousFillSpatial;
|
|
18474
18464
|
let q2 = t2, K2 = p2;
|
|
18475
|
-
if (!
|
|
18465
|
+
if (!N2) {
|
|
18476
18466
|
let e2 = (i2 ? _2.rowEnd + 1 - _2.rowStart : _2.colEnd + 1 - _2.colStart) % x2;
|
|
18477
18467
|
const n3 = i2 ? "rowStart" : "colStart", r3 = i2 ? "rowEnd" : "colEnd";
|
|
18478
18468
|
0 !== e2 && (K2 = { ...p2, [r3]: Math.min(p2[r3], p2[n3] + e2) }, q2 = { ...t2, [n3]: t2[r3] - e2 + 1 }, p2[n3] = p2[n3] + e2);
|
|
@@ -18483,7 +18473,7 @@ class H_ {
|
|
|
18483
18473
|
for (let t4 = 0; t4 < s3; t4++) r3.remove(o3[t4]);
|
|
18484
18474
|
r3.load(n3.inserts), U2[e2] = r3;
|
|
18485
18475
|
}
|
|
18486
|
-
if (
|
|
18476
|
+
if (N2) {
|
|
18487
18477
|
const e2 = this.getTables().getItems({ address: { rowIndex: t2.rowEnd, colIndex: t2.colEnd } });
|
|
18488
18478
|
if (1 === e2.length) {
|
|
18489
18479
|
const t3 = e2[0], n3 = t3.getRange().getCoords();
|
|
@@ -18864,7 +18854,7 @@ class H_ {
|
|
|
18864
18854
|
_clone() {
|
|
18865
18855
|
const t2 = { ...this._options, container: null };
|
|
18866
18856
|
this._ownStyles && (t2.styles = this._styles), this._ownStrings && (t2.strings = this._strings), this._ownResources && (t2.resources = this._resources), this._ownNames && (t2.names = this._names), this._ownsCalculation && (t2.calculation = this._calculation), t2.transactions = new k({ transient: true });
|
|
18867
|
-
const e2 = new
|
|
18857
|
+
const e2 = new W_(t2), n2 = this._transactions.getState(this);
|
|
18868
18858
|
e2._updateState(n2);
|
|
18869
18859
|
const r2 = new E_({ sheet: this, json: this.getView().toJSON() });
|
|
18870
18860
|
return r2.selectMovables(this.getView().getMovableSelection()), e2.setView(r2), e2;
|
|
@@ -19066,16 +19056,16 @@ class H_ {
|
|
|
19066
19056
|
}
|
|
19067
19057
|
s3 && (_3 = true), a2.singleMerge && (g2 = false, f2 = false);
|
|
19068
19058
|
const b3 = h2.colStart - d2.colStart, R2 = h2.rowStart - d2.rowStart, A2 = i2.adjustCells;
|
|
19069
|
-
let M2 = { ...
|
|
19059
|
+
let M2 = { ...Th };
|
|
19070
19060
|
if (delete M2[Ah.Type.Style], !g2) {
|
|
19071
19061
|
const t3 = this.getProtection().isLocked();
|
|
19072
19062
|
M2 = {}, t3 && (M2[Ah.Type.Unlock] = false);
|
|
19073
19063
|
}
|
|
19074
|
-
const
|
|
19075
|
-
let
|
|
19064
|
+
const N2 = e.Orientation.Column;
|
|
19065
|
+
let T2;
|
|
19076
19066
|
if (m2) {
|
|
19077
|
-
|
|
19078
|
-
const t3 = { orientation:
|
|
19067
|
+
T2 = p2.startIncrementalUpdates({ orientation: i2.transpose ? e.Orientation.Row : e.Orientation.Column });
|
|
19068
|
+
const t3 = { orientation: N2, includeRangeTypes: M2, bounds: d2 }, n3 = new Qg(this._strings, t3, this._cellOptions), r4 = (t4, e2, r5) => {
|
|
19079
19069
|
const o3 = t4[0], a3 = n3.setState(t4), l4 = n3.context, c2 = l4.getCell(), u4 = c2.isTopLeft();
|
|
19080
19070
|
let p3 = R2, w3 = b3;
|
|
19081
19071
|
if (s3) {
|
|
@@ -19094,7 +19084,7 @@ class H_ {
|
|
|
19094
19084
|
const t5 = A2(a3, l4, { rowIndex: p3, colIndex: w3 }, i2);
|
|
19095
19085
|
void 0 !== t5 && (C3 = t5, y3 = true);
|
|
19096
19086
|
}
|
|
19097
|
-
if (y3 && (
|
|
19087
|
+
if (y3 && (T2.pushAt(p3, w3, C3), g2)) {
|
|
19098
19088
|
const t5 = c2.getSpans();
|
|
19099
19089
|
(t5.width > 1 || t5.height > 1) && u4 && S2.push({ colStart: w3, rowStart: p3, colEnd: w3 + (i2.transpose ? t5.height : t5.width) - 1, rowEnd: p3 + (i2.transpose ? t5.width : t5.height) - 1 });
|
|
19100
19090
|
}
|
|
@@ -19108,7 +19098,7 @@ class H_ {
|
|
|
19108
19098
|
} };
|
|
19109
19099
|
if (!a2.singleMerge && !c.isEqualRanges(v2, d2)) {
|
|
19110
19100
|
const t4 = v2.colEnd - v2.colStart + 1, e2 = v2.rowEnd - v2.rowStart + 1;
|
|
19111
|
-
l3 = new fl({ delegate: l3, bounds: d2, orientation:
|
|
19101
|
+
l3 = new fl({ delegate: l3, bounds: d2, orientation: N2, dims: { major: i2.transpose ? e2 : t4, minor: i2.transpose ? t4 : e2 } });
|
|
19112
19102
|
}
|
|
19113
19103
|
let u3 = l3.next();
|
|
19114
19104
|
for (; !u3.done; ) {
|
|
@@ -19118,13 +19108,13 @@ class H_ {
|
|
|
19118
19108
|
}
|
|
19119
19109
|
const k2 = n2._getState(), F2 = {}, O2 = { transpose: s3 ?? false };
|
|
19120
19110
|
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);
|
|
19121
|
-
const D2 = l2,
|
|
19111
|
+
const D2 = l2, L2 = D2._getState(), B2 = Object.keys(F2), P2 = B2.length;
|
|
19122
19112
|
for (let t3 = 0; t3 < P2; t3++) {
|
|
19123
|
-
const e2 =
|
|
19113
|
+
const e2 = B2[t3], n3 = F2[e2].createCopiedEntries(d2, v2, O2), r4 = L2[e2].clone(), o2 = n3.removes, s4 = o2.length;
|
|
19124
19114
|
for (let t4 = 0; t4 < s4; t4++) r4.remove(o2[t4]);
|
|
19125
|
-
r4.load(n3.inserts),
|
|
19115
|
+
r4.load(n3.inserts), L2[e2] = r4;
|
|
19126
19116
|
}
|
|
19127
|
-
D2._updateState(
|
|
19117
|
+
D2._updateState(L2), E2.push(v2), C2.push(v2), w2 && w2.length > 0 && D2._colHeaders.updateHeaderPairs(w2), y2 && y2.length > 0 && D2._rowHeaders.updateHeaderPairs(y2), T2?.apply(), S2.length > 0 && l2.getRanges(S2).merge(), I2.commit({ viewBefore: x2, viewAfter: (t3) => ({ ...t3, view: l2.getView(), selection: sm(C2), ranges: E2 }) });
|
|
19128
19118
|
} catch (t3) {
|
|
19129
19119
|
throw console.warn(t3), I2.rollback(), new Error(((t4) => `Unable to paste: ${t4}`)(t3.message), { cause: t3 });
|
|
19130
19120
|
}
|
|
@@ -19224,7 +19214,7 @@ class H_ {
|
|
|
19224
19214
|
_insertCells(t2, n2, r2, o2 = void 0) {
|
|
19225
19215
|
const s2 = this;
|
|
19226
19216
|
o2 = o2 ?? ((t3, e2) => {
|
|
19227
|
-
s2._validateCoords(t3, e2 ??
|
|
19217
|
+
s2._validateCoords(t3, e2 ?? Wh);
|
|
19228
19218
|
});
|
|
19229
19219
|
const i2 = r2?.description ?? "Insert Cells", a2 = (n2 ?? this._getDefaultShiftOrientation(t2[0])) === e.Orientation.Column;
|
|
19230
19220
|
if (this._protectionCheck(() => [a2 ? "insertColumns" : "insertRows"], t2, i2), Yl(t2)) throw new Error("We can't insert cells with overlapping selections.");
|
|
@@ -19246,20 +19236,20 @@ class H_ {
|
|
|
19246
19236
|
}
|
|
19247
19237
|
n3 = n3.clone(), n3.shift(e2, f2), this._updateState({ cellValuesGrid: n3 });
|
|
19248
19238
|
}
|
|
19249
|
-
const g3 = e2.colStart <= l2.colStart && e2.colEnd >= l2.colEnd, M3 = e2.rowStart <= l2.rowStart && e2.rowEnd >= l2.rowEnd,
|
|
19239
|
+
const g3 = e2.colStart <= l2.colStart && e2.colEnd >= l2.colEnd, M3 = e2.rowStart <= l2.rowStart && e2.rowEnd >= l2.rowEnd, N3 = (t4, e3, n4, r4) => {
|
|
19250
19240
|
let o3 = null;
|
|
19251
19241
|
n4 > 1 && (o3 = t4.at(n4 - 1));
|
|
19252
19242
|
const s4 = r4 - n4 + 1;
|
|
19253
19243
|
e3?.(n4, s4), o3 && t4.updateHeaderPairs([{ address: { min: n4, max: r4 }, update: o3 }]);
|
|
19254
19244
|
};
|
|
19255
|
-
g3 &&
|
|
19245
|
+
g3 && N3(this._rowHeaders, this._rowHeadersShiftCallback, e2.rowStart, e2.rowEnd), M3 && N3(this._colHeaders, this._colHeadersShiftCallback, e2.colStart, e2.colEnd), s3 = s3.shift({ range: e2, direction: f2, cloneIfUpdate: s3 === m2.contentfulSpatial, coordValidator: o2 }), i3 = i3.shift({ range: e2, direction: f2, cloneIfUpdate: i3 === m2.unlockSpatial, coordValidator: o2 }), d2 = d2.shift({ range: e2, direction: f2, cloneIfUpdate: d2 === m2.mergeSpatial, coordValidator: o2 }), p2 = p2.shift({ range: e2, direction: f2, cloneIfUpdate: p2 === m2.directStyleSpatial, coordValidator: o2 }), _2 = _2.shift({ range: e2, direction: f2, cloneIfUpdate: _2 === m2.continuousFillSpatial, coordValidator: o2 }), S2 = S2.shift({ range: e2, direction: f2, cloneIfUpdate: S2 === m2.conditionalSpatial, coordValidator: o2 }), w2 = w2.shift({ range: e2, direction: f2, cloneIfUpdate: w2 === m2.hyperlinkSpatial, coordValidator: o2 }), y2 = y2.shift({ range: e2, direction: f2, cloneIfUpdate: y2 === m2.commentsSpatial, coordValidator: o2 }), E2 = E2.shift({ range: e2, direction: f2, cloneIfUpdate: E2 === m2.movableSpatial, coordValidator: o2 }), C2 = C2.shift({ range: e2, direction: f2, cloneIfUpdate: C2 === m2.tableSpatial, coordValidator: o2 }), b2 = b2.shift({ range: e2, direction: f2, cloneIfUpdate: b2 === m2.calcGraph }), x2 = x2.shift({ range: e2, direction: f2, cloneIfUpdate: x2 === m2.rangeListenerSpatial, onShift: (t4) => {
|
|
19256
19246
|
I2 === m2.rangesListenerMap && (I2 = new Map(I2)), this._processListenerShift(I2, R2, m2.rangesListenerMap, t4);
|
|
19257
19247
|
} }), v2 = v2.shift({ range: e2, direction: f2, cloneIfUpdate: v2 === m2.rangesListenerSpatial2, coordValidator: o2 });
|
|
19258
19248
|
}
|
|
19259
|
-
let
|
|
19260
|
-
b2 !== m2.calcGraph && (
|
|
19249
|
+
let N2 = m2.formulaSpatial, T2 = m2.spillSpatial, k2 = m2.pendingSpatial;
|
|
19250
|
+
b2 !== m2.calcGraph && (N2 = N2.clone(), T2 = T2.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: N2, spillSpatial: T2, pendingSpatial: k2, rangesListenerSpatial2: v2, rangeListenerSpatial: x2, rangesListenerMap: I2 }), this._commitAndAutoSelect(g2, u2, r2?.autoSelect, { viewAfter: { ranges: A2, listeners: R2 } });
|
|
19261
19251
|
} catch (t3) {
|
|
19262
|
-
if (console.warn(t3), g2.rollback(), t3 instanceof d) throw new Error(t3.message ??
|
|
19252
|
+
if (console.warn(t3), g2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Wh);
|
|
19263
19253
|
throw t3;
|
|
19264
19254
|
}
|
|
19265
19255
|
}
|
|
@@ -19283,12 +19273,12 @@ class H_ {
|
|
|
19283
19273
|
}
|
|
19284
19274
|
this._updateState({ contentfulSpatial: o3, unlockSpatial: d2, mergeSpatial: s3, directStyleSpatial: m2, continuousFillSpatial: f2, conditionalSpatial: p2, hyperlinkSpatial: _2, commentsSpatial: S2, movableSpatial: w2, movableMapModel: y2, tableSpatial: E2, tableMapModel: C2, calcGraph: b2, rangesListenerSpatial2: v2, rangeListenerSpatial: x2, rangesListenerMap: I2 }), this._commitAndAutoSelect(u2, h2, r2?.autoSelect, { viewAfter: { ranges: A2, listeners: R2 } });
|
|
19285
19275
|
} catch (t3) {
|
|
19286
|
-
if (u2.rollback(), t3 instanceof d) throw new Error(t3.message ??
|
|
19276
|
+
if (u2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Wh);
|
|
19287
19277
|
throw t3;
|
|
19288
19278
|
}
|
|
19289
19279
|
}
|
|
19290
19280
|
_autoFit(n2, r2) {
|
|
19291
|
-
if (this._closed) throw new Error(
|
|
19281
|
+
if (this._closed) throw new Error($h);
|
|
19292
19282
|
r2 = { expandOnly: false, skipCustomSize: false, minContent: false, ...r2 };
|
|
19293
19283
|
const o2 = "Autofit";
|
|
19294
19284
|
let s2;
|
|
@@ -19303,19 +19293,19 @@ class H_ {
|
|
|
19303
19293
|
let o3 = Number.MAX_SAFE_INTEGER, s3 = Number.MIN_SAFE_INTEGER, i3 = false, a3 = "", p2 = -1, _2 = false, S2 = false, w2 = false, y2 = Number.MAX_SAFE_INTEGER, E2 = Number.MIN_SAFE_INTEGER;
|
|
19304
19294
|
const C2 = this._styles.getNormal(), b2 = this._cellOptions, v2 = r2.orientations === e.Orientations.Row, x2 = /* @__PURE__ */ new Map(), I2 = nl(n2, 1);
|
|
19305
19295
|
I2.sort(c.createRangeComparator(e.Orientation.Column));
|
|
19306
|
-
const R2 = I2.length, A2 = { skipCustomSize: r2.skipCustomSize }, M2 = Ko.getDeviceScale(),
|
|
19307
|
-
if (0 !== t2 && null !== t2 && !(e2 > 1)) return t2 = Math.max(t2,
|
|
19296
|
+
const R2 = I2.length, A2 = { skipCustomSize: r2.skipCustomSize }, M2 = Ko.getDeviceScale(), N2 = this._defaultRowHeight() * M2, T2 = (t2, e2 = 1) => {
|
|
19297
|
+
if (0 !== t2 && null !== t2 && !(e2 > 1)) return t2 = Math.max(t2, N2), (e3) => u2 ? t2 : Math.max(e3, t2);
|
|
19308
19298
|
}, k2 = (t2, e2 = 1) => {
|
|
19309
19299
|
if (0 !== t2 && null !== t2 && !(e2 > 1)) return (e3) => d2 ? t2 : Math.max(e3, t2);
|
|
19310
19300
|
};
|
|
19311
19301
|
for (let n3 = 0; n3 < R2; n3++) {
|
|
19312
19302
|
const r3 = [];
|
|
19313
|
-
let m3 = -1, f3 = false, R3 = C2, M3 = 1,
|
|
19303
|
+
let m3 = -1, f3 = false, R3 = C2, M3 = 1, N3 = 1, F2 = 1;
|
|
19314
19304
|
const O2 = I2[n3];
|
|
19315
|
-
let D2 = O2.colStart,
|
|
19305
|
+
let D2 = O2.colStart, L2 = O2.rowStart, B2 = O2.colEnd, P2 = O2.rowEnd;
|
|
19316
19306
|
const z2 = this._getUsedCoords();
|
|
19317
|
-
(u2 || d2) && z2 && (D2 = u2 ? z2.colStart : O2.colStart,
|
|
19318
|
-
const
|
|
19307
|
+
(u2 || d2) && z2 && (D2 = u2 ? z2.colStart : O2.colStart, L2 = d2 ? z2.rowStart : O2.rowStart, B2 = u2 ? z2.colEnd : O2.colEnd, P2 = d2 ? z2.rowEnd : O2.rowEnd);
|
|
19308
|
+
const W2 = { includeRangeTypes: { [Ah.Type.Style]: false, [Ah.Type.Merge]: false, [Ah.Type.Continuous]: false, [Ah.Type.Contentful]: false }, excludeHidden: false, bounds: { colStart: D2, rowStart: L2, colEnd: B2, rowEnd: P2 }, orientation: e.Orientation.Column }, H2 = h2 ? [] : void 0, V2 = l2 ? [] : void 0, $2 = (t2, e2, n4) => {
|
|
19319
19309
|
if (t2 > e2) return null;
|
|
19320
19310
|
const r4 = [];
|
|
19321
19311
|
let o4 = t2;
|
|
@@ -19334,35 +19324,35 @@ class H_ {
|
|
|
19334
19324
|
r4.push(t3);
|
|
19335
19325
|
}
|
|
19336
19326
|
return r4;
|
|
19337
|
-
}, j2 = this._rangeStateIterator(
|
|
19327
|
+
}, j2 = this._rangeStateIterator(W2);
|
|
19338
19328
|
let G2 = j2.next();
|
|
19339
19329
|
for (; !G2.done; ) {
|
|
19340
19330
|
const t2 = G2.value, e2 = t2.intersection, n4 = t2.start, r4 = t2.end;
|
|
19341
|
-
|
|
19342
|
-
const o4 = c.intersectRanges(
|
|
19331
|
+
$_.colStart = n4.colIndex, $_.rowStart = n4.rowIndex, $_.colEnd = r4.colIndex, $_.rowEnd = r4.rowIndex;
|
|
19332
|
+
const o4 = c.intersectRanges($_, O2, V_), s4 = Cg(0, o4, e2, b2).getBestFit();
|
|
19343
19333
|
if (h2) {
|
|
19344
|
-
const t3 = Math.max(n4.rowIndex,
|
|
19345
|
-
|
|
19334
|
+
const t3 = Math.max(n4.rowIndex, L2), e3 = { address: { min: t3, max: Math.min(r4.rowIndex, P2) }, update: { size: T2(s4.height), autoSize: true } };
|
|
19335
|
+
H2.push(e3);
|
|
19346
19336
|
}
|
|
19347
19337
|
if (l2) {
|
|
19348
|
-
const t3 = Math.max(n4.colIndex, D2), e3 = { address: { min: t3, max: Math.min(r4.colIndex,
|
|
19349
|
-
|
|
19338
|
+
const t3 = Math.max(n4.colIndex, D2), e3 = { address: { min: t3, max: Math.min(r4.colIndex, B2) }, update: { size: k2(s4.width), autoSize: true } };
|
|
19339
|
+
V2.push(e3);
|
|
19350
19340
|
}
|
|
19351
19341
|
G2 = j2.next();
|
|
19352
19342
|
}
|
|
19353
|
-
if (
|
|
19354
|
-
let t2 = this._colHeaders.updateHeaderPairs(
|
|
19343
|
+
if (V2) {
|
|
19344
|
+
let t2 = this._colHeaders.updateHeaderPairs(V2, A2);
|
|
19355
19345
|
t2 = vs(xs(Is(t2)));
|
|
19356
|
-
const e2 =
|
|
19346
|
+
const e2 = $2(O2.colStart, O2.colEnd, t2);
|
|
19357
19347
|
e2 && this._colHeaders.updateHeaderPairs(e2, A2);
|
|
19358
19348
|
}
|
|
19359
|
-
if (
|
|
19360
|
-
let t2 = this._rowHeaders.updateHeaderPairs(
|
|
19349
|
+
if (H2) {
|
|
19350
|
+
let t2 = this._rowHeaders.updateHeaderPairs(H2, A2);
|
|
19361
19351
|
t2 = vs(xs(Is(t2)));
|
|
19362
|
-
const e2 =
|
|
19352
|
+
const e2 = $2(O2.rowStart, O2.rowEnd, t2);
|
|
19363
19353
|
e2 && this._rowHeaders.updateHeaderPairs(e2, A2);
|
|
19364
19354
|
}
|
|
19365
|
-
const U2 = this._cellStateIterator({ ...
|
|
19355
|
+
const U2 = this._cellStateIterator({ ...W2, includeRangeTypes: { [Ah.Type.Merge]: false, [Ah.Type.Table]: false, [Ah.Type.Style]: false, [Ah.Type.Continuous]: false }, ignoreEmptyIntersections: true });
|
|
19366
19356
|
let J2, q2, K2, X2 = U2.next(), Y2 = 1, Q2 = 1;
|
|
19367
19357
|
for (; !X2.done; ) {
|
|
19368
19358
|
const e2 = X2.value, n4 = e2[0], l3 = e2[2];
|
|
@@ -19379,13 +19369,13 @@ class H_ {
|
|
|
19379
19369
|
} else u3 = 1, g3 = 1;
|
|
19380
19370
|
Y2 = u3, Q2 = g3;
|
|
19381
19371
|
}
|
|
19382
|
-
const x3 = n4.colIndex, I3 = n4.rowIndex, A3 = e2[1],
|
|
19372
|
+
const x3 = n4.colIndex, I3 = n4.rowIndex, A3 = e2[1], T3 = dc(A3), k3 = c.isCellWithinRange(n4, O2), D3 = l3?.continuous ?? null;
|
|
19383
19373
|
if (D3) {
|
|
19384
19374
|
F2 = D3.getCoords().colEnd - x3 + 1;
|
|
19385
19375
|
}
|
|
19386
|
-
let
|
|
19387
|
-
if (J2 === d3 && u3 === M3 && g3 ===
|
|
19388
|
-
else switch (
|
|
19376
|
+
let L3 = false, B3 = false;
|
|
19377
|
+
if (J2 === d3 && u3 === M3 && g3 === N3 && T3 !== t.String && T3 !== t.Error && k3 === f3 || (L3 = true, T3 === t.RichData && (B3 = true), B3 && (L3 = false)), J2 = d3, K2 = v3, (m3 !== x3 || L3) && (-1 !== m3 && r3.push({ col: m3, style: R3, spanWidth: u3, spanHeight: g3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: p2, hasFalse: S2, hasTrue: _2, hasEmpty: w2, minRow: y2, maxRow: E2, colWidth: this._colHeaders.getSpanSize(m3), measureWidth: -1, measureHeight: -1, colSpan: F2, isFit: f3 }), m3 = x3, R3 = h3, f3 = k3, M3 = u3, N3 = g3, o3 = Number.MAX_SAFE_INTEGER, s3 = Number.MIN_SAFE_INTEGER, i3 = false, a3 = "", p2 = -1, S2 = false, _2 = false, w2 = false, y2 = I3), E2 = I3, !B3) if (null === A3) w2 = true;
|
|
19378
|
+
else switch (T3) {
|
|
19389
19379
|
case t.Number:
|
|
19390
19380
|
0 === A3 && (i3 = true), o3 = Math.min(o3, A3), s3 = Math.max(s3, A3);
|
|
19391
19381
|
break;
|
|
@@ -19400,7 +19390,7 @@ class H_ {
|
|
|
19400
19390
|
}
|
|
19401
19391
|
X2 = U2.next();
|
|
19402
19392
|
}
|
|
19403
|
-
-1 !== m3 && r3.push({ col: m3, style: R3, spanWidth: M3, spanHeight:
|
|
19393
|
+
-1 !== m3 && r3.push({ col: m3, style: R3, spanWidth: M3, spanHeight: N3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: p2, hasFalse: S2, hasTrue: _2, hasEmpty: w2, minRow: y2, maxRow: E2, colWidth: this._colHeaders.getSpanSize(m3), colSpan: F2, measureWidth: -1, measureHeight: -1, isFit: f3 });
|
|
19404
19394
|
let Z2 = -1, tt2 = -1;
|
|
19405
19395
|
const et2 = r3.length;
|
|
19406
19396
|
for (let e2 = 0; e2 < et2; e2++) {
|
|
@@ -19460,7 +19450,7 @@ class H_ {
|
|
|
19460
19450
|
}
|
|
19461
19451
|
const o4 = n4.length, s4 = new Array(o4);
|
|
19462
19452
|
for (let t3 = 0; t3 < o4; t3++) {
|
|
19463
|
-
const e3 = n4[t3], r4 =
|
|
19453
|
+
const e3 = n4[t3], r4 = T2(e3.value, 1), o5 = { address: { min: e3.min, max: e3.max }, update: { size: r4, autoSize: true } };
|
|
19464
19454
|
s4[t3] = o5;
|
|
19465
19455
|
}
|
|
19466
19456
|
this._rowHeaders.updateHeaderPairs(s4, A2);
|
|
@@ -19567,10 +19557,10 @@ class H_ {
|
|
|
19567
19557
|
return r2;
|
|
19568
19558
|
}
|
|
19569
19559
|
_addRangesListeners(t2, e2, n2) {
|
|
19570
|
-
if (this._closed) throw new Error(
|
|
19571
|
-
if (!e2) throw new Error(
|
|
19560
|
+
if (this._closed) throw new Error($h);
|
|
19561
|
+
if (!e2) throw new Error(Lh);
|
|
19572
19562
|
n2 = n2 ? { ...U_, ...n2 } : U_;
|
|
19573
|
-
const r2 = n2?.transactional ?? false, o2 = this, s2 =
|
|
19563
|
+
const r2 = n2?.transactional ?? false, o2 = this, s2 = B_++ % Number.MAX_SAFE_INTEGER, i2 = () => {
|
|
19574
19564
|
let t3 = null, e3 = null;
|
|
19575
19565
|
if (r2) {
|
|
19576
19566
|
const n4 = o2._getState();
|
|
@@ -19607,8 +19597,8 @@ class H_ {
|
|
|
19607
19597
|
return h2.load(g2), d2.set(s2, l2), u2 && (this._updateState({ rangeListenerSpatial: h2, rangesListenerMap: d2 }), u2.commit({ forceAmend: true })), i2;
|
|
19608
19598
|
}
|
|
19609
19599
|
_addRangesListeners2(t2, e2, n2, r2) {
|
|
19610
|
-
if (this._closed) throw new Error(
|
|
19611
|
-
if (!e2) throw new Error(
|
|
19600
|
+
if (this._closed) throw new Error($h);
|
|
19601
|
+
if (!e2) throw new Error(Lh);
|
|
19612
19602
|
n2 = n2 ? { ...U_, ...n2 } : U_;
|
|
19613
19603
|
const s2 = n2?.transactional ?? false, i2 = this, a2 = o.uuidV4(), l2 = z_++, h2 = () => {
|
|
19614
19604
|
let t3 = null, e3 = null;
|
|
@@ -19710,7 +19700,7 @@ class H_ {
|
|
|
19710
19700
|
return this.getEntireRange().find(t2, e2);
|
|
19711
19701
|
}
|
|
19712
19702
|
_find(t2, n2, r2) {
|
|
19713
|
-
if (this._closed) throw new Error(
|
|
19703
|
+
if (this._closed) throw new Error($h);
|
|
19714
19704
|
if (!n2) return null;
|
|
19715
19705
|
const o2 = [...t2], s2 = r2?.orientation ?? e.Orientation.Row, i2 = r2?.reverse, a2 = !r2?.disableWrap, l2 = r2?.from ? this._cellToCoords(r2?.from) : null;
|
|
19716
19706
|
let h2 = null;
|
|
@@ -19846,7 +19836,7 @@ class H_ {
|
|
|
19846
19836
|
return a2 || i2;
|
|
19847
19837
|
}
|
|
19848
19838
|
_extendRange(t2, n2) {
|
|
19849
|
-
if (this._closed) throw new Error(
|
|
19839
|
+
if (this._closed) throw new Error($h);
|
|
19850
19840
|
const r2 = this._entireCoords, o2 = this, s2 = { excludeHidden: true, onEntry: (t3, e2) => e2 }, i2 = { excludeHidden: true, onEntry: (t3, e2) => void 0 === t3.tvTl() ? null : e2 };
|
|
19851
19841
|
let a2;
|
|
19852
19842
|
const l2 = o2._getRangedEntries("mergeSpatial", [c.cellToRange(n2)], i2);
|
|
@@ -20021,7 +20011,7 @@ class H_ {
|
|
|
20021
20011
|
return this._view;
|
|
20022
20012
|
}
|
|
20023
20013
|
setView(t2) {
|
|
20024
|
-
if (this._closed) throw new Error(
|
|
20014
|
+
if (this._closed) throw new Error($h);
|
|
20025
20015
|
if (!t2) throw new Error("View can not be empty.");
|
|
20026
20016
|
this._viewRemoveListener?.(), this._view = t2, this._viewRemoveListener = t2.addListeners(this._viewListener, { transactional: false });
|
|
20027
20017
|
const e2 = this.getSelection().getCoords();
|
|
@@ -20031,7 +20021,7 @@ class H_ {
|
|
|
20031
20021
|
return this._tabColor;
|
|
20032
20022
|
}
|
|
20033
20023
|
setTabColor(t2) {
|
|
20034
|
-
if (this._closed) throw new Error(
|
|
20024
|
+
if (this._closed) throw new Error($h);
|
|
20035
20025
|
return this._tabColor = "string" == typeof t2 ? this._styles.parseColor(t2) : t2 ?? null, this._emitter.notify("onTabColorChange"), this;
|
|
20036
20026
|
}
|
|
20037
20027
|
getRowHeaders() {
|
|
@@ -20041,7 +20031,7 @@ class H_ {
|
|
|
20041
20031
|
return this._colHeaders;
|
|
20042
20032
|
}
|
|
20043
20033
|
async toJSON(n2 = false) {
|
|
20044
|
-
if (this._closed) throw new Error(
|
|
20034
|
+
if (this._closed) throw new Error($h);
|
|
20045
20035
|
await this._emitter.notify("onBeforeSave", { async: true }), await Promise.resolve(this._starting);
|
|
20046
20036
|
let r2 = {};
|
|
20047
20037
|
const o2 = this._getState();
|
|
@@ -20225,9 +20215,9 @@ class H_ {
|
|
|
20225
20215
|
}
|
|
20226
20216
|
}
|
|
20227
20217
|
async _addMovable(t2) {
|
|
20228
|
-
if (!this.getProtection().isObjectsAllowed()) throw new Error(
|
|
20218
|
+
if (!this.getProtection().isObjectsAllowed()) throw new Error(Bh);
|
|
20229
20219
|
if (!t2) throw new Error("No movable options provided");
|
|
20230
|
-
if (this._closed) throw new Error(
|
|
20220
|
+
if (this._closed) throw new Error($h);
|
|
20231
20221
|
const e2 = {};
|
|
20232
20222
|
t2?.type && (e2.content = { type: t2.type, json: t2?.json }), t2?.anchorType && (e2.anchorType = t2?.anchorType), t2.bounds && (e2.anchor = null);
|
|
20233
20223
|
const n2 = this._getState().movableSpatial, r2 = this._beginCommit({ description: t2?.description ?? "Insert Drawing" }), o2 = this._createMovableEntry(e2, n2.size(), t2.fromResourceId), s2 = n2.clone();
|
|
@@ -20244,7 +20234,7 @@ class H_ {
|
|
|
20244
20234
|
}
|
|
20245
20235
|
async _addImage(t2, e2 = { type: "picture" }) {
|
|
20246
20236
|
if (!t2) throw new Error("An image must be provided as a string or a resource option.");
|
|
20247
|
-
if (!this.getProtection().isObjectsAllowed()) throw new Error(
|
|
20237
|
+
if (!this.getProtection().isObjectsAllowed()) throw new Error(Bh);
|
|
20248
20238
|
const n2 = this._resources.add(t2), r2 = await n2.toBuffer(), s2 = await n2.getType(), i2 = this._getBoundsAtCoords(om(this.getSelection().getCoords())[0]), { naturalDimensions: a2, asUrl: l2 } = await w.loadImageDetails(r2, s2);
|
|
20249
20239
|
URL.revokeObjectURL(l2);
|
|
20250
20240
|
const c2 = { ...i2, ...a2, ...e2?.bounds };
|
|
@@ -20496,7 +20486,7 @@ class H_ {
|
|
|
20496
20486
|
}), this._emitter.notify("onClose"), this._ownResources, this._namesRemoveListener?.(), this._ownNames && this._names.close(), this._ownsCalculation && this._calculation.close(), this._ownStyles, this._colHeaders.close(), this._rowHeaders.close(), this._emitter.close(), this._transactionsRemoveListener?.(), this._closed = true;
|
|
20497
20487
|
}
|
|
20498
20488
|
beginCommit(t2) {
|
|
20499
|
-
if (this._closed) throw new Error(
|
|
20489
|
+
if (this._closed) throw new Error($h);
|
|
20500
20490
|
return this._beginCommit("string" == typeof t2 ? { description: t2 } : t2);
|
|
20501
20491
|
}
|
|
20502
20492
|
_getState() {
|
|
@@ -20687,7 +20677,7 @@ class H_ {
|
|
|
20687
20677
|
const h2 = () => Math.round(this._defaultFontDims().width);
|
|
20688
20678
|
this._colHeaders = new d_({ sheet: t2, orientation: e.Orientation.Column, maxSheetCoords: this._entireCoords, transactions: this._transactions, isProtected: () => !t2._initializing && !t2.getProtection().isFormatColumnsAllowed(), getTextAt: (t3) => {
|
|
20689
20679
|
const e2 = this.getView().getColumnHeaderStyle();
|
|
20690
|
-
return e2 === mp.HeaderTextStyle.A1 ? D_(t3) : e2 === mp.HeaderTextStyle.Zero ? O_(t3) : e2 === mp.HeaderTextStyle.One ?
|
|
20680
|
+
return e2 === mp.HeaderTextStyle.A1 ? D_(t3) : e2 === mp.HeaderTextStyle.Zero ? O_(t3) : e2 === mp.HeaderTextStyle.One ? L_(t3) : void 0;
|
|
20691
20681
|
}, defaultSize: () => {
|
|
20692
20682
|
const t3 = this.getView().isShowFormulas() ? 2 : 1;
|
|
20693
20683
|
return this._defaultColWidth() / h2() * t3;
|
|
@@ -20697,7 +20687,7 @@ class H_ {
|
|
|
20697
20687
|
const d2 = Ko.getDeviceScale();
|
|
20698
20688
|
this._rowHeaders = new d_({ sheet: t2, orientation: e.Orientation.Row, maxSheetCoords: this._entireCoords, transactions: this._transactions, isProtected: () => !t2._initializing && !t2.getProtection().isFormatRowsAllowed(), getTextAt: (t3) => {
|
|
20699
20689
|
const e2 = this.getView().getRowHeaderStyle();
|
|
20700
|
-
return e2 === mp.HeaderTextStyle.One ?
|
|
20690
|
+
return e2 === mp.HeaderTextStyle.One ? L_(t3) : e2 === mp.HeaderTextStyle.Zero ? O_(t3) : e2 === mp.HeaderTextStyle.A1 ? D_(t3) : void 0;
|
|
20701
20691
|
}, defaultSize: () => this._defaultRowHeight(), scaleFactor: () => d2, minSize: () => 0, maxSize: () => 409, setContainerShiftedCallback: (t3) => {
|
|
20702
20692
|
this._rowHeadersShiftCallback = t3;
|
|
20703
20693
|
} }), this._rowHeadersRemoveListener = this._rowHeaders.addListeners(this._rowHeadersListener, { transactional: true }), this._defaultFontBoundsCache = null, this._defaultColWidthCache = null, this._defaultRowHeightCache = null;
|
|
@@ -20723,7 +20713,7 @@ class H_ {
|
|
|
20723
20713
|
}
|
|
20724
20714
|
_clearState() {
|
|
20725
20715
|
this._lastGetRangeRead = null, this._lastCellDecoded.address = null, this._lastCellSelected.coords = null, this._lastCellRead.coords = null, this._protectionRemoveListener?.(), this._protection = new M_(void 0, this._options.readonly), this._protectionRemoveListener = this._protection.addListeners({ onChange() {
|
|
20726
|
-
if (t2._closed) throw new Error(
|
|
20716
|
+
if (t2._closed) throw new Error($h);
|
|
20727
20717
|
t2._getState().movableMapModel.forEach((t3) => {
|
|
20728
20718
|
t3.value.processProtectionCallback?.();
|
|
20729
20719
|
}), t2._getState().tableMapModel.forEach((t3) => {
|
|
@@ -21031,10 +21021,10 @@ class H_ {
|
|
|
21031
21021
|
let w2 = null;
|
|
21032
21022
|
if ("picture" === d2) w2 = new jm(S2);
|
|
21033
21023
|
else if ("chart" === d2) w2 = new Dp(S2);
|
|
21034
|
-
else if ("sp" === d2 || "cxnSp" === d2 || "grpSp" === d2) w2 = new
|
|
21024
|
+
else if ("sp" === d2 || "cxnSp" === d2 || "grpSp" === d2) w2 = new Lp(S2);
|
|
21035
21025
|
else {
|
|
21036
21026
|
if ("graphicFrame" !== d2) throw new Error(((t3) => `Unsupported float type: ${t3}`)(d2));
|
|
21037
|
-
w2 = new
|
|
21027
|
+
w2 = new Bp(S2);
|
|
21038
21028
|
}
|
|
21039
21029
|
return o2.model = new vp({ ...p2, content: w2 }), u2 = false, s2;
|
|
21040
21030
|
}
|
|
@@ -21152,14 +21142,14 @@ class H_ {
|
|
|
21152
21142
|
}
|
|
21153
21143
|
R2.load(t2);
|
|
21154
21144
|
}
|
|
21155
|
-
const A2 = h2.tableMapModel, M2 = h2.tableMapName,
|
|
21156
|
-
if (
|
|
21157
|
-
const t2 = [], e2 =
|
|
21145
|
+
const A2 = h2.tableMapModel, M2 = h2.tableMapName, N2 = h2.tableSpatial, T2 = o2.tables;
|
|
21146
|
+
if (T2) {
|
|
21147
|
+
const t2 = [], e2 = T2.length;
|
|
21158
21148
|
for (let n3 = 0; n3 < e2; n3++) {
|
|
21159
|
-
const e3 =
|
|
21149
|
+
const e3 = T2[n3], r3 = this._createTableEntry(e3), o3 = r3.value.model;
|
|
21160
21150
|
A2.set(o3, r3), M2.set(r3.value.currentName, o3), t2.push(r3);
|
|
21161
21151
|
}
|
|
21162
|
-
|
|
21152
|
+
N2.load(t2);
|
|
21163
21153
|
}
|
|
21164
21154
|
const k2 = h2.conditionalSpatial, F2 = h2.conditionalModels, O2 = o2.conditionals;
|
|
21165
21155
|
if (O2) {
|
|
@@ -21169,10 +21159,10 @@ class H_ {
|
|
|
21169
21159
|
this._createConditionalEntries(t3, k2, F2);
|
|
21170
21160
|
}
|
|
21171
21161
|
}
|
|
21172
|
-
const D2 = h2.calcGraph,
|
|
21173
|
-
h2 = this._updateState({ hyperlinkSpatial: C2, commentsSpatial: v2, movableSpatial: R2, movableMapModel: I2, tableSpatial:
|
|
21174
|
-
const
|
|
21175
|
-
|
|
21162
|
+
const D2 = h2.calcGraph, L2 = D2.fromJSON({ formulas: o2.formulas, data: p2, dynamic: o2.dynamicArray, volatile: o2.volatile });
|
|
21163
|
+
h2 = this._updateState({ hyperlinkSpatial: C2, commentsSpatial: v2, movableSpatial: R2, movableMapModel: I2, tableSpatial: N2, tableMapModel: A2, tableMapName: M2, conditionalSpatial: k2, conditionalModels: F2, calcGraph: D2 });
|
|
21164
|
+
const B2 = this._getUsedCoords();
|
|
21165
|
+
B2 && this._autoFit([B2], { orientations: e.Orientations.Row, skipCustomSize: true }), r2.commit(), L2 && this._realizeCalcedValues(L2), o2.protection && this._protection.fromJSON(o2.protection), this._emitter.notify("onLoad");
|
|
21176
21166
|
} finally {
|
|
21177
21167
|
l2.endPersist(), a2.endPersist(), i2.endPersist();
|
|
21178
21168
|
}
|
|
@@ -21182,7 +21172,7 @@ class H_ {
|
|
|
21182
21172
|
return this._closed ? Ac : this._options.container?.getName?.() ?? null;
|
|
21183
21173
|
}
|
|
21184
21174
|
setName(t2) {
|
|
21185
|
-
if (this._closed) throw new Error(
|
|
21175
|
+
if (this._closed) throw new Error($h);
|
|
21186
21176
|
const e2 = this._options.container?.setName;
|
|
21187
21177
|
if (!e2) throw new Error("Unable to set name for sheet.");
|
|
21188
21178
|
return e2(t2), this;
|
|
@@ -21191,7 +21181,7 @@ class H_ {
|
|
|
21191
21181
|
return this._closed ? bp.Visibility.VeryHidden : this._options.container?.getVisibility?.() ?? bp.Visibility.Hidden;
|
|
21192
21182
|
}
|
|
21193
21183
|
setVisibility(t2 = true) {
|
|
21194
|
-
if (this._closed) throw new Error(
|
|
21184
|
+
if (this._closed) throw new Error($h);
|
|
21195
21185
|
const e2 = this._options.container?.setVisibility;
|
|
21196
21186
|
if (!e2) throw new Error("Unable to set visibility for sheet.");
|
|
21197
21187
|
let n2;
|
|
@@ -21226,7 +21216,7 @@ class H_ {
|
|
|
21226
21216
|
return true;
|
|
21227
21217
|
}
|
|
21228
21218
|
}
|
|
21229
|
-
const
|
|
21219
|
+
const H_ = { address: null, scope: null }, V_ = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, $_ = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, j_ = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, G_ = { includeHidden: false };
|
|
21230
21220
|
Object.freeze({ [Yh.Content.Values]: Number.MAX_SAFE_INTEGER, [Yh.Content.Formulas]: Number.MAX_SAFE_INTEGER }), Object.freeze({ [Yh.Content.Values]: 1, [Yh.Content.Formulas]: 1 });
|
|
21231
21221
|
const U_ = { ignoreDataChanges: false }, J_ = { colStart: -1, rowStart: -1, colEnd: -1, rowEnd: -1 }, q_ = [{ colIndex: -1, rowIndex: -1 }, null, null, null, null], K_ = [Yh.Content.Values], X_ = { size: null, autoSize: true }, Y_ = { skipCustomSize: true, expandOnly: true, minContent: true }, Q_ = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Z_ = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, tS = { showFormulaBar: true, showTabs: true, tabRatio: 600, showHorizontalScrollbar: true, showVerticalScrollbar: true, showStatusBar: true, activeSheetId: null };
|
|
21232
21222
|
class eS {
|
|
@@ -21404,7 +21394,7 @@ class nS {
|
|
|
21404
21394
|
}
|
|
21405
21395
|
}
|
|
21406
21396
|
let rS;
|
|
21407
|
-
const oS = "SheetXL", sS = rS || (rS = o.deepFreeze({ ISheet: { Visibility: bp.Visibility }, ICell: { Content: Yh.Content, CalcStatus: Yh.CalcStatus }, IColor: { Named:
|
|
21397
|
+
const oS = "SheetXL", sS = rS || (rS = o.deepFreeze({ ISheet: { Visibility: bp.Visibility }, ICell: { Content: Yh.Content, CalcStatus: Yh.CalcStatus }, IColor: { Named: Bs.Named, Scheme: Bs.Scheme, Type: Bs.Type, AdjustmentType: Bs.AdjustmentType }, Direction: h }), rS);
|
|
21408
21398
|
let iS;
|
|
21409
21399
|
class aS extends qf {
|
|
21410
21400
|
constructor(t2, e2, n2, r2 = null, o2 = false) {
|
|
@@ -21674,7 +21664,7 @@ class bS {
|
|
|
21674
21664
|
return this._get().length;
|
|
21675
21665
|
}
|
|
21676
21666
|
}
|
|
21677
|
-
const vS = new RegExp(/[\\/\\*?:[\]]+/), xS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), IS = (t2) => `Sheet${t2 + 1}`, RS = (t2, e2) => ({
|
|
21667
|
+
const vS = new RegExp(/[\\/\\*?:[\]]+/), xS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), IS = (t2) => `Sheet${t2 + 1}`, RS = (t2, e2) => ({ ...$g, getSheet: () => null, toString: () => Gc(t2, e2) }), AS = (t2, e2 = false) => {
|
|
21678
21668
|
if (!t2) throw new Error(yS);
|
|
21679
21669
|
if (vS.test(t2)) {
|
|
21680
21670
|
if (!e2) throw new Error(((t3) => `${t3 ? `'${t3}'` : wS} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t2));
|
|
@@ -21692,7 +21682,7 @@ const vS = new RegExp(/[\\/\\*?:[\]]+/), xS = new RegExp(/\(((\d+)(?!.*\d))\)$/,
|
|
|
21692
21682
|
}
|
|
21693
21683
|
return t2;
|
|
21694
21684
|
};
|
|
21695
|
-
class MS extends
|
|
21685
|
+
class MS extends N_ {
|
|
21696
21686
|
constructor(t2, e2, n2, r2) {
|
|
21697
21687
|
super(t2, e2, r2), this._workbook = n2;
|
|
21698
21688
|
}
|
|
@@ -21710,7 +21700,7 @@ class MS extends T_ {
|
|
|
21710
21700
|
return delete n2?.sheetName, RS(n2, n2 ? { sheetName: Ac, ...t3.getEntireRange().getCoords() } : null);
|
|
21711
21701
|
}
|
|
21712
21702
|
let r2 = this._options;
|
|
21713
|
-
return e2 && (r2 = { ...this._options, getOptions: Zg(this._options.getOptions, e2) }), new
|
|
21703
|
+
return e2 && (r2 = { ...this._options, getOptions: Zg(this._options.getOptions, e2) }), new NS(t2, this._sheet, this._workbook, r2);
|
|
21714
21704
|
}
|
|
21715
21705
|
async select(t2) {
|
|
21716
21706
|
const e2 = [];
|
|
@@ -21740,7 +21730,7 @@ class MS extends T_ {
|
|
|
21740
21730
|
return Xc(t2, r2, Gc, zc);
|
|
21741
21731
|
}
|
|
21742
21732
|
}
|
|
21743
|
-
class
|
|
21733
|
+
class NS extends T_ {
|
|
21744
21734
|
constructor(t2, e2, n2, r2) {
|
|
21745
21735
|
super(t2, e2, r2), this._workbook = n2;
|
|
21746
21736
|
}
|
|
@@ -21753,7 +21743,7 @@ class TS extends N_ {
|
|
|
21753
21743
|
if (!t2) return jg(n2, n2._entireCoords);
|
|
21754
21744
|
if (n2._validateCoords(t2), n2._closed) return jg(null, n2._entireCoords, t2);
|
|
21755
21745
|
let r2 = this._options;
|
|
21756
|
-
return e2 && (r2 = { ...this._options, getOptions: Zg(this._options?.getOptions, e2) }), new
|
|
21746
|
+
return e2 && (r2 = { ...this._options, getOptions: Zg(this._options?.getOptions, e2) }), new NS(t2, this._sheet, this._workbook, r2);
|
|
21757
21747
|
}
|
|
21758
21748
|
getSource() {
|
|
21759
21749
|
return this._workbook;
|
|
@@ -21772,16 +21762,16 @@ class TS extends N_ {
|
|
|
21772
21762
|
return super.addListener(n2, e2);
|
|
21773
21763
|
}
|
|
21774
21764
|
}
|
|
21775
|
-
class
|
|
21765
|
+
class TS {
|
|
21776
21766
|
constructor(t2) {
|
|
21777
21767
|
this._lastTransactionUUID = null, this._closed = false, this._initializing = true, this._emitter = null, this._names = null, this._calculation = null, this._isDate1904 = false;
|
|
21778
21768
|
const e2 = this, n2 = { ...t2 }, r2 = n2.json;
|
|
21779
21769
|
delete n2.json, this._transactions = n2.transactions ?? new k(), this._ownTransactions = !n2.transactions, this._emitter = new Xi(this, this._transactions);
|
|
21780
21770
|
const o2 = this._beginCommit({ description: (r2 ? "Open" : "New") + " Workbook" });
|
|
21781
21771
|
try {
|
|
21782
|
-
this._strings = n2.strings ?? new
|
|
21772
|
+
this._strings = n2.strings ?? new Hm(), this._ownStrings = !n2.strings, this._resources = n2.resources ?? new zm(), this._ownResources = !n2.resources, this._createSheetName = n2.createSheetNameCallback ?? IS;
|
|
21783
21773
|
let t3 = n2.createSheetCallback;
|
|
21784
|
-
t3 || (t3 = (t4) => new
|
|
21774
|
+
t3 || (t3 = (t4) => new W_(t4)), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (n3, r3, o3, s3, i2) => {
|
|
21785
21775
|
let a2 = null;
|
|
21786
21776
|
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) => {
|
|
21787
21777
|
a2 = t4, e2._addSheetRef({ name: r3, id: n3, visibility: o3 ?? bp.Visibility.Visible, sheet: t4 }, s3);
|
|
@@ -21953,7 +21943,7 @@ class NS {
|
|
|
21953
21943
|
if ("number" == typeof t2) {
|
|
21954
21944
|
return this._getSheetRefs(e2)[t2];
|
|
21955
21945
|
}
|
|
21956
|
-
return "string" == typeof t2 ? n2 = this._getState().refsByLowerCaseName.get(t2.toLowerCase()) : t2 instanceof
|
|
21946
|
+
return "string" == typeof t2 ? n2 = this._getState().refsByLowerCaseName.get(t2.toLowerCase()) : t2 instanceof W_ ? n2 = this._getState().refsByInstance.get(t2) : t2?.id && t2.sheet && (n2 = this._getState().refsById.get(t2.id)), n2;
|
|
21957
21947
|
}
|
|
21958
21948
|
_validateNewSheetName(t2, e2 = true) {
|
|
21959
21949
|
if (null == t2) return t2;
|
|
@@ -22209,7 +22199,7 @@ class NS {
|
|
|
22209
22199
|
}
|
|
22210
22200
|
const r2 = this.getSelectedSheet();
|
|
22211
22201
|
let o2 = null;
|
|
22212
|
-
return e2 && (o2 = { getOptions: e2 }), new
|
|
22202
|
+
return e2 && (o2 = { getOptions: e2 }), new NS(t2, r2, this, o2);
|
|
22213
22203
|
}
|
|
22214
22204
|
_createRanges(t2, e2) {
|
|
22215
22205
|
const n2 = this.getSelectedSheet();
|
|
@@ -22398,7 +22388,7 @@ class NS {
|
|
|
22398
22388
|
}
|
|
22399
22389
|
_fromJSON(t2) {
|
|
22400
22390
|
if (this._emitter.notify("onBeforeLoad", { params: t2 }), this._initState(), !t2.sheets || 0 === t2.sheets.length) throw new Error(fS);
|
|
22401
|
-
t2.theme && (this._theme = new
|
|
22391
|
+
t2.theme && (this._theme = new $i(t2.theme), this._styles.setTheme(this._theme));
|
|
22402
22392
|
const e2 = this._strings.beginPersist(), n2 = this._resources.beginPersist(), r2 = this._styles.beginPersist();
|
|
22403
22393
|
try {
|
|
22404
22394
|
e2.fromJSON(t2.strings), n2.fromJSON(t2.resources), r2.fromJSON(t2.styles), t2.date1904 && (this._isDate1904 = true), t2.view || (t2.view = {});
|
|
@@ -22423,7 +22413,7 @@ class NS {
|
|
|
22423
22413
|
const e2 = this;
|
|
22424
22414
|
return new dS({ transactions: this._transactions, json: t2, workbook: e2, getBuiltInFunctions: () => e2._calculation?.getFunctions(), onAdd: (t3, n2) => {
|
|
22425
22415
|
const r2 = e2._calculation;
|
|
22426
|
-
r2.getStatus() !==
|
|
22416
|
+
r2.getStatus() !== $m.Status.Off && r2.start().then(() => {
|
|
22427
22417
|
const t4 = n2.getFunctions().getItems({ type: "formula" }), e3 = t4.length;
|
|
22428
22418
|
for (let n3 = 0; n3 < e3; n3++) {
|
|
22429
22419
|
const e4 = t4[n3];
|
|
@@ -22536,22 +22526,22 @@ export {
|
|
|
22536
22526
|
sp as Calculation,
|
|
22537
22527
|
Ys as Color,
|
|
22538
22528
|
Cp as ExternalRangeClipboardItem,
|
|
22539
|
-
|
|
22529
|
+
Wf as F,
|
|
22540
22530
|
wt as GeomUtils,
|
|
22541
22531
|
Ji as IAnchored,
|
|
22542
22532
|
hp as IAutoFilter,
|
|
22543
22533
|
Qs as IBorder,
|
|
22544
|
-
|
|
22534
|
+
$m as ICalculation,
|
|
22545
22535
|
Yh as ICell,
|
|
22546
22536
|
lp as ICellHeaderRange,
|
|
22547
22537
|
ap as ICellRange,
|
|
22548
|
-
|
|
22538
|
+
Bs as IColor,
|
|
22549
22539
|
up as IConditionalFormat,
|
|
22550
22540
|
Ds as IFill,
|
|
22551
22541
|
Ko as IFont,
|
|
22552
22542
|
ss as IFontCollection,
|
|
22553
22543
|
cp as IMovable,
|
|
22554
|
-
|
|
22544
|
+
Vm as IPicture,
|
|
22555
22545
|
Os as IPrint,
|
|
22556
22546
|
bp as ISheet,
|
|
22557
22547
|
mp as ISheetView,
|
|
@@ -22562,32 +22552,32 @@ export {
|
|
|
22562
22552
|
yo as ITextFrame,
|
|
22563
22553
|
Ci as ITheme,
|
|
22564
22554
|
bi as IThemeCollection,
|
|
22565
|
-
|
|
22555
|
+
at as LicenseManager,
|
|
22566
22556
|
pi as NumberFormat,
|
|
22567
22557
|
jm as Picture,
|
|
22568
22558
|
Ep as RangeClipboardItem,
|
|
22569
|
-
|
|
22559
|
+
Bm as Resource,
|
|
22570
22560
|
zm as ResourceCollection,
|
|
22571
|
-
|
|
22561
|
+
W_ as Sheet,
|
|
22572
22562
|
Yo as SimpleFontFace,
|
|
22573
22563
|
ta as Sort,
|
|
22574
|
-
|
|
22564
|
+
Hm as StringCollection,
|
|
22575
22565
|
Om as StyleCollection,
|
|
22576
22566
|
qf as T,
|
|
22577
22567
|
vm as Table,
|
|
22578
22568
|
zo as TextUtils,
|
|
22579
|
-
|
|
22569
|
+
$i as Theme,
|
|
22580
22570
|
Gi as ThemeCollection,
|
|
22581
22571
|
k as TransactionStore,
|
|
22582
|
-
|
|
22572
|
+
L as TransactionUndoManager,
|
|
22583
22573
|
kt as Tuple,
|
|
22584
|
-
|
|
22574
|
+
TS as Workbook,
|
|
22585
22575
|
eS as WorkbookView,
|
|
22586
22576
|
m_ as a,
|
|
22587
22577
|
g_ as b,
|
|
22588
22578
|
fc as c,
|
|
22589
22579
|
gh as d,
|
|
22590
|
-
|
|
22580
|
+
Lc as e,
|
|
22591
22581
|
hc as f,
|
|
22592
22582
|
yc as g,
|
|
22593
22583
|
wc as m,
|