@sheetxl/sdk 0.7.0 → 0.7.2

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.
Files changed (86) hide show
  1. package/browser/cjs/{Djzsq4WQgEwHEp-M.cjs → B0zxTHsyOJt5pTZD.cjs} +2 -2
  2. package/browser/cjs/{BjFYxVAIbUb_7h-S.cjs → B1PGQzSUsW9jqSlj.cjs} +1 -1
  3. package/browser/cjs/{Cbxt2fyogNnBQoCr.cjs → BA3NNc_6bhDfX4nk.cjs} +1 -1
  4. package/browser/cjs/{njAfwKqaAt_7qmqC.cjs → BF8vNPuHwsw0pC7E.cjs} +3 -3
  5. package/browser/cjs/{BYB8JJmcNhKLvnI8.cjs → BO4ZmCqHbsh8hCVA.cjs} +1 -1
  6. package/browser/cjs/{CFZiNtKt64r3xsPn.cjs → BOytHrZd2PANk77r.cjs} +1 -1
  7. package/browser/cjs/{DvdzTecv-iQHx0En.cjs → Bat_ZyWAVuVqAIis.cjs} +1 -1
  8. package/browser/cjs/{x9nEn7whN8RWqdd7.cjs → Bk11KUaXGCVU86fC.cjs} +1 -1
  9. package/browser/cjs/{BZSDQcskWXhU7BUm.cjs → Bqj9Qb6SuvX0ks00.cjs} +1 -1
  10. package/browser/cjs/BwszS-CETlczLRBC.cjs +54 -0
  11. package/browser/cjs/{DXwi0g-NSgDDVbU7.cjs → CL1m_EnxOZZO7hUp.cjs} +1 -1
  12. package/browser/cjs/{CsImQq-_ilFeRhas.cjs → CLzEIu4ft_6Pz5wP.cjs} +1 -1
  13. package/browser/cjs/{PbZjKdvVnThnOfW7.cjs → CcJAJNh3TVgGPtJM.cjs} +1 -1
  14. package/browser/cjs/{DLyxKnwQrujaM-6w.cjs → D1AEZ2wv5bDl121V.cjs} +1 -1
  15. package/browser/cjs/{B4TDEZZZMRJmNXcF.cjs → D3e4w0w-9dhpSQm9.cjs} +1 -1
  16. package/browser/cjs/{Bd7uYUvGlBl7YRaE.cjs → D5NGAGi4LF8E-sbA.cjs} +1 -1
  17. package/browser/cjs/{CeKRTnTs0I912bHs.cjs → DNyzT0mkLbo2g2wA.cjs} +1 -1
  18. package/browser/cjs/{DfPmLPr-Xp3q1YeP.cjs → DPsDqLEk4QihwxEP.cjs} +1 -1
  19. package/browser/cjs/{BG4xxQFm8xjgZKSB.cjs → DQ5SpaMJpx0eGazK.cjs} +1 -1
  20. package/browser/cjs/{CI4BR2xEnxgtSrRK.cjs → D_LwEqEUIwwmNgzu.cjs} +1 -1
  21. package/browser/cjs/{Cq4V9Ux6fL838QTO.cjs → DbXFAaH3iDJQxvsh.cjs} +1 -1
  22. package/browser/cjs/{C1Aye3fqhBHiTqw_.cjs → DpXu87E8ylVAk8R8.cjs} +1 -1
  23. package/browser/cjs/{DHcDExT8yjmw69XF.cjs → DxKYm8kx4HP9wXTO.cjs} +1 -1
  24. package/browser/cjs/{Cr29glPhzuIuOgkr.cjs → LFdGUGm3uoz6puwG.cjs} +1 -1
  25. package/browser/cjs/index.cjs +2 -2
  26. package/browser/cjs/{B3sM9RnMb0L8ARAC.cjs → nEh1SYpSd5x4dUsE.cjs} +1 -1
  27. package/browser/cjs/{DB_6uNDHFGB8ENYN.cjs → nMkzmFIn9u_fnv4q.cjs} +2 -2
  28. package/browser/cjs/{BEXGUGGbqgrOx0g5.cjs → vz2HurnCMyLnBWqf.cjs} +1 -1
  29. package/browser/esm/{DmMpEv5QXUxGEtiG.mjs → -NI6pAlb9nHcZhLc.mjs} +10554 -10548
  30. package/browser/esm/{CbzAZmsAqivASMKl.mjs → 6dLtVzpKMUSmnED5.mjs} +1 -1
  31. package/browser/esm/{CO2KAeOxeX9uFd9b.mjs → B1Ua90z2B5GCE87w.mjs} +1 -1
  32. package/{node/esm/CKlo5xNgDLlECnG1.mjs → browser/esm/BSqx9dDqkE1kx8DT.mjs} +1 -1
  33. package/browser/esm/{D9qgC2DI1kqWC5xq.mjs → Bj1KvWN5i6DJh6Cm.mjs} +1 -1
  34. package/{node/esm/DYwiH1AUi_tNfPN8.mjs → browser/esm/BjzW_UmYnnxfw83O.mjs} +1 -1
  35. package/browser/esm/{BGaBoDs-X7BjIBUI.mjs → Byg5vtiuXeZUkT-0.mjs} +1 -1
  36. package/browser/esm/{CU4b2mP6N9yKYGyo.mjs → C0C60G0IJwtGhjro.mjs} +1 -1
  37. package/{node/esm/C-hXeTKBPGIzLhhv.mjs → browser/esm/CJOaL1FACsUQpJkI.mjs} +1 -1
  38. package/{node/esm/7jEWoigboYmhpkKi.mjs → browser/esm/CdxWg5Zf4piU7WZZ.mjs} +1 -1
  39. package/browser/esm/{D8D7qTZ7mm23l0-a.mjs → CffVKU3Gmbee9apR.mjs} +1 -1
  40. package/browser/esm/{BCLTNK93NWfWA2Bl.mjs → CgKBGYrnnLKe8P5h.mjs} +1 -1
  41. package/browser/esm/{CH0kEkcXI9jYBkrV.mjs → D1tnV7PfiZIGAENr.mjs} +1 -1
  42. package/{node/esm/DVPJ4RfILc_Pte7d.mjs → browser/esm/DMlfddAQV_vPQRAq.mjs} +1 -1
  43. package/{node/esm/Cn_DExta7VgewSPZ.mjs → browser/esm/DPXL2zsOvlAOq4xI.mjs} +1 -1
  44. package/browser/esm/{DgXMo1RBs2AjEkT9.mjs → DRy8Tc2_0R1pjMX7.mjs} +1 -1
  45. package/browser/esm/{DQHtRjUGIjcntA66.mjs → DTSzFFfDlW5cfeN-.mjs} +1 -1
  46. package/browser/esm/{AN3BNTL2BVLovDg0.mjs → DUl4gPCb2Casj6nF.mjs} +1 -1
  47. package/browser/esm/{C3BTltFXI0Q2usnh.mjs → DV-Q-u-pibzP90vg.mjs} +1 -1
  48. package/browser/esm/{kWS8jhEWT_7Q4faX.mjs → DbQd6NfwkZHFQJVl.mjs} +1 -1
  49. package/{node/esm/BHJFe2Y546e2cXDz.mjs → browser/esm/Dh2VIbUAYbBB-nVW.mjs} +1 -1
  50. package/browser/esm/{BL410YbmZRfSRxS1.mjs → DkVDKPhXXJ8fRCTD.mjs} +2 -2
  51. package/{node/esm/BuVBn29L41R57H8D.mjs → browser/esm/DkoqOVcV__JQvrSZ.mjs} +1 -1
  52. package/browser/esm/{DN1LUdMXLPXK9AIi.mjs → DqlKGoafOSXhydz2.mjs} +3 -3
  53. package/browser/esm/{DeuhmpXF7KDClXbk.mjs → DxfuaJsdyY_OLWXe.mjs} +2 -2
  54. package/browser/esm/{B_41yVBZcYO7kJTm.mjs → Q_2VPLcRgi6Yq4Nj.mjs} +1 -1
  55. package/{node/esm/BWLqPV1gUmjgQy0q.mjs → browser/esm/eZWRVAYxZfLuW86D.mjs} +1 -1
  56. package/browser/esm/index.mjs +2 -2
  57. package/node/esm/{CbzAZmsAqivASMKl.mjs → 6dLtVzpKMUSmnED5.mjs} +1 -1
  58. package/node/esm/{CO2KAeOxeX9uFd9b.mjs → B1Ua90z2B5GCE87w.mjs} +1 -1
  59. package/node/esm/{Bh0XSxs2sYIdtAPQ.mjs → B3qXGf8fo-G5DNIE.mjs} +1 -1
  60. package/node/esm/{l6kMG98qQBgLEde5.mjs → BDiu3ZC0SEzToIvd.mjs} +1 -1
  61. package/node/esm/{CBw7ZIQ9aSs3WiNS.mjs → BOBWIqUxuJXWxvJK.mjs} +1 -1
  62. package/{browser/esm/CKlo5xNgDLlECnG1.mjs → node/esm/BSqx9dDqkE1kx8DT.mjs} +1 -1
  63. package/{browser/esm/DYwiH1AUi_tNfPN8.mjs → node/esm/BjzW_UmYnnxfw83O.mjs} +1 -1
  64. package/node/esm/{BGaBoDs-X7BjIBUI.mjs → Byg5vtiuXeZUkT-0.mjs} +1 -1
  65. package/node/esm/{CU4b2mP6N9yKYGyo.mjs → C0C60G0IJwtGhjro.mjs} +1 -1
  66. package/node/esm/{B5AAHHpKfEGUWp3e.mjs → C5PEy_5rvMvg5Yfj.mjs} +1 -1
  67. package/node/esm/{CNKv98ckAoEyntHR.mjs → CHQXjAQ5N7MueuEb.mjs} +1 -1
  68. package/{browser/esm/C-hXeTKBPGIzLhhv.mjs → node/esm/CJOaL1FACsUQpJkI.mjs} +1 -1
  69. package/{browser/esm/7jEWoigboYmhpkKi.mjs → node/esm/CdxWg5Zf4piU7WZZ.mjs} +1 -1
  70. package/node/esm/{D8D7qTZ7mm23l0-a.mjs → CffVKU3Gmbee9apR.mjs} +1 -1
  71. package/node/esm/{BCQktWaTx0PeRg6O.mjs → CmRA2-2FB5YnwFKy.mjs} +2 -2
  72. package/{browser/esm/DVPJ4RfILc_Pte7d.mjs → node/esm/DMlfddAQV_vPQRAq.mjs} +1 -1
  73. package/{browser/esm/Cn_DExta7VgewSPZ.mjs → node/esm/DPXL2zsOvlAOq4xI.mjs} +1 -1
  74. package/node/esm/{DQHtRjUGIjcntA66.mjs → DTSzFFfDlW5cfeN-.mjs} +1 -1
  75. package/node/esm/{AN3BNTL2BVLovDg0.mjs → DUl4gPCb2Casj6nF.mjs} +1 -1
  76. package/{browser/esm/BHJFe2Y546e2cXDz.mjs → node/esm/Dh2VIbUAYbBB-nVW.mjs} +1 -1
  77. package/{browser/esm/BuVBn29L41R57H8D.mjs → node/esm/DkoqOVcV__JQvrSZ.mjs} +1 -1
  78. package/node/esm/{N6dBiwFS6vtTkjD1.mjs → DnAnDxej4GfWDMtX.mjs} +1 -1
  79. package/node/esm/{D8jFShTX_0r0Twxc.mjs → DsZDZO6NUD9OC1hj.mjs} +1 -1
  80. package/node/esm/{7zETTw_s8NjJWKi7.mjs → EfKRyh6DXJnpoVu5.mjs} +1 -1
  81. package/{browser/esm/BWLqPV1gUmjgQy0q.mjs → node/esm/eZWRVAYxZfLuW86D.mjs} +1 -1
  82. package/node/esm/index.mjs +844 -834
  83. package/package.json +4 -4
  84. package/types/index.d.ts +6 -0
  85. package/types/scripting.d.ts +6 -0
  86. package/browser/cjs/LqOLRSnDiysWN6pJ.cjs +0 -54
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.0
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.2
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 N = false;
22
- class T {
21
+ let T = false;
22
+ class N {
23
23
  constructor(t2) {
24
24
  this._record = t2;
25
25
  }
@@ -44,15 +44,15 @@ class T {
44
44
  }
45
45
  class F {
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 ?? 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) };
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 ?? T, 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 N(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
- N = t2;
55
+ T = t2;
56
56
  };
57
57
  }
58
58
  getLog(t2, e2 = 100) {
@@ -132,7 +132,7 @@ class F {
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 T(n3) };
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 N(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);
@@ -377,18 +377,18 @@ class B extends s {
377
377
  }
378
378
  const L = () => {
379
379
  try {
380
- return "0.7.0";
380
+ return "0.7.2";
381
381
  } catch (t2) {
382
382
  return "";
383
383
  }
384
384
  }, z = Object.freeze(Object.defineProperty({ __proto__: null, getBuildDate: () => {
385
385
  try {
386
- return "Wed Sep 03 2025";
386
+ return "Sun Sep 07 2025";
387
387
  } catch (t2) {
388
388
  return "";
389
389
  }
390
- }, getBuildVersion: L }, Symbol.toStringTag, { value: "Module" })), P = "\n███████╗██╗ ██╗███████╗███████╗████████╗ ██╗ ██╗██╗\n██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝ ╚██╗██╔╝██║\n███████╗███████║█████╗ █████╗ ██║ ╚███╔╝ ██║\n╚════██║██╔══██║██╔══╝ ██╔══╝ ██║ ██╔██╗ ██║\n███████║██║ ██║███████╗███████╗ ██║ ██╔╝ ██╗███████╗\n╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝", W = `
391
- https://www.sheetxl.com ${L()}`, H = "#1976d2", V = "#FFA726", $ = Object.freeze(Object.defineProperty({ __proto__: null, generateNodeId: async () => {
390
+ }, getBuildVersion: L }, Symbol.toStringTag, { value: "Module" })), P = "\n███████╗██╗ ██╗███████╗███████╗████████╗ ██╗ ██╗██╗\n██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝ ╚██╗██╔╝██║\n███████╗███████║█████╗ █████╗ ██║ ╚███╔╝ ██║\n╚════██║██╔══██║██╔══╝ ██╔══╝ ██║ ██╔██╗ ██║\n███████║██║ ██║███████╗███████╗ ██║ ██╔╝ ██╗███████╗\n╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝", H = `
391
+ https://www.sheetxl.com ${L()}`, W = "#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(H), n2 = t3.hex(V);
416
- return console.log(e2(P) + n2(W));
415
+ const e2 = t3.hex(W), n2 = t3.hex(V);
416
+ return console.log(e2(P) + n2(H));
417
417
  } catch (t3) {
418
- return console.log(P + "\n" + W + "\n");
418
+ return console.log(P + "\n" + H + "\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(H), l2 = s2.hex(V), c2 = t2.isEval();
428
+ const i2 = s2.red, a2 = s2.hex(W), 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 += `
@@ -456,54 +456,105 @@ KeyFrom: '${t2.keyFrom()}'`, console.log(l2(o2))), Promise.resolve();
456
456
  for (let t4 = 0; t4 < r2.length; t4++) r2[t4].charCodeAt(0) <= n3 && (r2[t4] = String.fromCharCode((r2[t4].charCodeAt(0) + e3) % n3));
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
- function U(t2, e2, n2, r2, o2) {
460
- return X(t2 - 425, r2);
459
+ function U() {
460
+ const t2 = ["WRZdG8oPWRlcR2/dN8oyWO7dT8kaWPzaW60NqW", "W43cR2rwW5tdOCkZWRavW7hdKSoDW7S", "W4pcQ2rFW4xdUW", "WRldOcrOl8oxWODdeXVdOHW", "smouWRddSJ5bWRhdLbCS", "W6ieWRRcN8odWO0tt8ohWO3dHq", "W6NdL1VcOgBdI8onyd19hha", "Fmk/ucpdTCk7BdS", "W7mavHrUWPFdQfq6", "WRejiCoVWRfLtL/cV0ZcVSk7", "W7VcRcRdQZBcUhbg", "tLGME8oLwY0hW4Cdla", "W6ZdKSo1WR8", "W5nwW7TVmvtdVaGTEmkUuXNdRG", "dmkaW5JcRSoW", "WQ7cT8kWimosEWZdJG", "WPFdTZmaWOBcPCoxWRypW5pdRmoGW7K", "W5pcOqddGmkFgq", "W7zDW6nPkvu", "FColWQ/dQY5ZWQy", "W73dL1VcRNRdGCoeAGP5i3dcQG", "W6ZdK0hcJhBdKmoXDHbYhhdcTW", "W4azvbLRWPVdPLmR", "W4NcQ2TmW4tdOCkgWRe", "esNdQreBrJW", "mNtdICkjpLtcNuBcQZxdKmkjoa", "WQSBW7tdR8oFAGRcGmkCWRqjwCoK", "pCo8Fs3dL8kjwG", "D8khW5JdHdhcTCoBWOBcQCoZx8kRWRxcPa", "W4SuWOBdMSktgq", "teTodSkdEW", "WQ05wSoYW6GZW4i", "WRrxW7RdRCkuWO83q8oIWO0", "W7mkwXj2WPC", "WOtcPmkndNlcPCk6EtBdHG", "WRmAnmob", "omkcpSkAW7Xs", "E8k6W6vbW5G3rXGcWPFdPG", "WRKPg0uukSkwkmovWRW", "W5VcOrRdHSkchCkkbCkqkdhcQCkQsq", "W4FdNfNcG3/dI8ofjdv1c3dcVCk4qXPIpr4fiYWNwmkWW61w", "bt7dSH0BwsO", "W6VdTd4s", "W4pcSSkjohXLwSkoACoorHvHv8kf", "WP3dOCoosZffF8kzw8oZxG", "AmobWQpdOZD0WQRdIrGM", "W4WNCdbwWQFdI3GcW7JdGSocwCovzZKAWOvu", "WQHYWQ9r", "W6idWRVcM8kyWO47uSoRWPC", "W5pcTSkokNTLwmkEwSop", "d8kcW5VcQSoTlSkW", "W7ekWPddGmkQbhldPa", "W7fDW7ril1ldTq", "c3rcmmoiWPRcIq", "WQbgW6/dM8kfWOGbq8o6WPy", "WQ3cNSkYW6pdQt7dUmoXWPVcPmk1", "WQ80dgSbjW", "DmkhW4ldGcRcUmoCWRpcLCo1vCk6WPNcPa", "kmkYW67dL8oRW6RdSW", "dXX7iCkHxqSNW4WjcHK", "WQ5EaeDRWORdQL8RW5G", "WQ/cK8oGWQ7cSItdQmoh", "W7i9cmoLlYVdSW", "tmoBbNFdQYxcKCo1W49q", "AvtdTwldGZX2WOldSt4", "aWumj8o1da", "wmoohLRdUG", "qCoqW6RdQNVdImk/DaBcRx7dTG", "W5NcH8kWhWtdQmkTbXO", "W7hdPSk4pSoiEa", "D8khW4ldPsBcOmooWORcI8oV", "WRejiCoVWRfLtL/cRuJcUmkTDSkJW54", "gWb7EgZdHq", "W7OxrrXWWOy", "W4lcU8ksfxS", "W5xdVCkMBfaw", "WO3dTLRdHSkmmSkBgmkP", "n8oMWRJdRa", "B0bhdSkoFmkDw2lcQ8kWxXCkwSoOWRf+na", "W7a2cSoNjZq", "WQGVySo0W7aY", "WPykW6JdQmouBa", "W67dQmkGzfCoW4y", "aN7dKmkOiLNcKvZcOq", "jSksWQdcTchcIa", "WRZdTH5fpSoB", "W7VdGSoYWPJcJW", "fG8vimoZ", "pmkpW7tcShv2WOBdGZ8Mka", "W7VcQIRdRYZcONPJW59B", "zmkfWPRdSSkMW4e", "WQ7cLCk2WPRcTqNdS8oWWQi", "WOnWWRrvqcadWQOqW4L8o8k5", "gCkcW5hcOSo+oa", "WRvZWOnktZG", "WRKiW7xdRmotAZ8", "W4JcSZVdOYZcPvTnW45dEKHd", "W7XkW6HRj1G", "kCkooCk3W60gdtzoza", "W4OOdSoykdldLf12W4tcO8ou", "CcpcISoRzXNdIaBdQq", "W7VcRc4", "zmknW7RdJIdcTCodWOBcO8o9t8kRWQ/cTbipWP4A", "tKOUlcBcLmksWP/dTCoQW7RdJW", "W5NcH8kWeX7dPCkKkJRcUGpcGW", "WQJcGeTeWPPWrCofnW", "W7ObqW", "amkeBCkFW6erctfrCIldSeVcLSo7mt3cNNK", "fIxdSv4EuJVdPbRdISk0", "v0ybWQddPSo3", "W6pdVSkczfilW5e", "r0XqcSkjy8kl", "jCoYWQxdQSoPWPKkCmoYrbNcV8oz", "Cmk/jwvQWQrnFG", "WRvxW6/dNCkeWOKZwq", "W7HlW5JdOSoXwqNcOa", "W7xdLmoiWRJcUcO", "W7BdLXfcWOLB", "s8oyoCk1W5fmqKxcGKFdQc9WCeW", "bgFdNmkPD3VcKuVcVt7dQmkjyCoHWRRdLa", "fGGpjG", "W7JdK0pcL3BdPmox", "gColWPqWWRKEqG", "nCo2WQ/dSCoVWO4", "WRTLWRj+wZ0RWQSGW4LHmG", "ch/dI8kKo17cNaJcTdNdUmkjl8ozWRRcJu7cSHJcUa", "WPlcN0PEWORdSIj5ytTYp8oHWRO", "WORdSZfgm8oAWOPtmG", "WRC0awywmCks", "WQGkWR1dnhVdMM8r", "F8kHW7pcS8k4W58Jv8ooqbJcJa", "W6RdL1VcG3RdJSosvaT1bMhcTSkV", "W5ldImkMWPVcTsZdLmozWONcSSonWRXrW7C", "r0tcVuFcUKnDgI0", "W4FdNfNcG3/dI8ofjbv1c3dcVCk4qXPIpr4l", "edRdVbW", "W4ldTCk3nCovDdtdIMi", "zmkBW4BdHa", "l8oTWRugWROVEJy", "cgLupq", "WRq/F8o7", "k8o2WQxdO8o4WOm", "ywO0WQtdQmoVWO3dOa8", "ymkqW5/dJZFcLSooWO3cICo5sq", "W6pdVSkAALOh", "cCkIlCojAwhcGmkprqxcMCoy", "FKxdONxdMYbrWO7dTXuqdxGW", "C8onp8kEW4PrAKtcOepdSZbQ", "fqGmpSo1emk3yCoZsbxdHCoy", "iCoNCsxdKmkjwIioWQW", "dW4YiCoJea", "W6RdGbzlWOL3qSo8hCoTm8kr", "W6ZdKXnqWPH1uq", "W7xdRIKFW6Dm", "WRudo8oEWQTGr2ZcKLNcOSkqCmkFW58jW4vvWPu", "W7KXh8oukdxdS1K", "W69AzSkCW7XfA0JcN3xcOa", "bmoGzchdKSktw0KoWQ3dPSoYWQJcGuBdS8oSyq", "W4VcQ35zW5JdV8kqWPioW7BdImomW7RcOW", "nmoNWQRdTSo4WPGnA8oVqG", "hxfgpmoqW4i", "WOn2WQDqrZaMWRSb", "WRNdRdnpnmonWO5SmGm", "WQxdTZLelSo8WOPjor/dPa", "WP1DWQ7dGSkuWOi", "rx/dPgldMdToWRtdMG", "W70kWOldKSkrbgi", "WQpcUhrcWPKEW7pdTSkhW5tcQCoFW5K", "WOXcW7ZdGmkFWO8us8oGWPddTJ8", "gmk9F8ofF2xcQ8kCsH/cLCofuq", "FuxdUNxdHs5vWO7dIZKBhv8G", "WORdTsjdnmok", "r2VcV1ZcU0m", "W4BcVvXzW53dUSkh", "crDMAq", "d8o1WRazWPGNEJCmWORcNKL9FHRdSIxdRSkmW7eJamo2W7b5", "W73dPdKzW4yaW6dcRmoB", "xCoFhKBdQXFcHG", "ESkXoh9HWRDWAqZdVmk2WQrE", "iCoqW67cGv/dICkWvge/", "W43cPmk4dgHG", "l8o7WQeCWP8/", "iGjSDhJdLmk7WPxdK8oQW6NdTW", "W5ldImkMWRpcSYldKmoEWPtcPmonWOreW6SScNVcU1ZcQa", "W6/dSYqBW4i", "B0bhdSkoFmkDw2NcVmk0fHmouSkHWROWCIanWRtdUSkgvWbMomow", "u07dONhdMYzfW4VdQZKBhv8GWPbS", "W4JcTsJdPIVcTx5CW58", "WPxdOCojtJLoDCk+vCoiFG", "WR4WfK4blmkVnCosWQhdV8oLWQa", "kmkYW67dImoNW74", "gaP9EgBdLmkqWPVdK8o3", "hhnknmovWOZcLG", "WQi4ACo2W74/", "E3tcO1pcVfbHmr1Foa", "F8oCWRpdQsT2WQy", "F1JdT3xdHZTiWOtdQYu", "WRNcTCoKna5wW54fsGNcQ8kZ", "W7RdV8k7AfCrW5a", "FfLwaSkoE8k8hNpcSSkPwHy", "W75xW6bVnfpdQW", "WQnhW73dGq", "W7KXh8oukdxdS3D9W5m", "bgFdNmkPiLBcJehcTZ7cU8kGkmojWRRdG1BcSG", "W4SsWPxdN8kucwFdUh4", "grDQFh/dJmkkWQtdJ8oTW6ldSwPB", "WOtcPmknchpcPq", "W6/dJ8oJWRlcQdFdNCoOWPBcVSkoWPjAW70QphBcT0a", "g2XsfSotWPFcI1i"];
461
+ return (U = function() {
462
+ return t2;
463
+ })();
464
+ }
465
+ function J(t2, e2, n2, r2, o2) {
466
+ return rt(o2 - 511, t2);
461
467
  }
462
468
  !(function() {
463
- const t2 = 1111, e2 = 1086, n2 = "Wo(q", r2 = "5QkJ", o2 = 422, s2 = "GG$J", i2 = "BE]*", a2 = 478, l2 = "Lbn[", c2 = "qs2)", h2 = 107, d2 = 252, u2 = 517;
464
- function g2(t3, e3, n3, r3, o3) {
465
- return X(r3 - u2, o3);
469
+ const t2 = "Fs$Z", e2 = 350, n2 = "6h[T", r2 = 531, o2 = "q9)R", s2 = "*2!M", i2 = 394, a2 = "*T73", l2 = 340, c2 = "bFUh", h2 = 395, d2 = "Yi*7", u2 = 381, g2 = 323, m2 = "Kq6w", f2 = 271, p2 = U();
470
+ function _2(t3, e3, n3, r3, o3) {
471
+ return rt(n3 - -891, t3);
466
472
  }
467
- function m2(t3, e3, n3, r3, o3) {
468
- return X(e3 - 384, n3);
473
+ function S2(t3, e3, n3, r3, o3) {
474
+ return rt(o3 - -728, r3);
469
475
  }
470
- function f2(t3, e3, n3, r3, o3) {
471
- return X(t3 - 903, o3);
476
+ function w2(t3, e3, n3, r3, o3) {
477
+ return rt(o3 - 174, e3);
472
478
  }
473
- function p2(t3, e3, n3, r3, o3) {
474
- return X(e3 - -297, r3);
479
+ function y2(t3, e3, n3, r3, o3) {
480
+ return rt(r3 - -341, e3);
475
481
  }
476
- const _2 = it();
477
- function S2(t3, e3, n3, r3, o3) {
478
- return X(o3 - d2, n3);
482
+ function E2(t3, e3, n3, r3, o3) {
483
+ return rt(o3 - -733, n3);
479
484
  }
480
485
  for (; ; ) try {
481
- if (158906 === -parseInt(f2(t2, 0, 0, 0, "4##u")) / 1 * (parseInt(f2(e2, 0, 0, 0, n2)) / 2) + -parseInt(S2(0, 0, r2, 0, o2)) / 3 * (-parseInt(g2(0, 0, 0, 827, s2)) / 4) + parseInt(S2(0, 0, i2, 0, a2)) / 5 + parseInt(S2(0, 0, "F9t#", 0, 487)) / 6 + -parseInt(m2(0, 639, l2)) / 7 + -parseInt(S2(0, 0, c2, 0, 520)) / 8 * (parseInt(p2(0, -h2, 0, "qtST")) / 9) + -parseInt(g2(0, 0, 0, 828, "wMU8")) / 10 * (-parseInt(S2(0, 0, "p[$0", 0, 451)) / 11)) break;
482
- _2.push(_2.shift());
486
+ if (283857 === parseInt(S2(0, 0, 0, t2, -e2)) / 1 * (parseInt(S2(0, 0, 0, "q9)R", -377)) / 2) + -parseInt(w2(0, n2, 0, 0, r2)) / 3 + -parseInt(E2(0, 0, "TxTG", 0, -314)) / 4 * (parseInt(E2(0, 0, o2, 0, -388)) / 5) + parseInt(S2(0, 0, 0, s2, -i2)) / 6 * (-parseInt(y2(0, a2, 0, 25)) / 7) + parseInt(E2(0, 0, "yNz&", 0, -l2)) / 8 + -parseInt(E2(0, 0, c2, 0, -h2)) / 9 * (-parseInt(_2(d2, 0, -u2)) / 10) + parseInt(S2(0, 0, 0, "zlDt", -g2)) / 11 * (parseInt(S2(0, 0, 0, m2, -f2)) / 12)) break;
487
+ p2.push(p2.shift());
483
488
  } catch (t3) {
484
- _2.push(_2.shift());
489
+ p2.push(p2.shift());
485
490
  }
486
491
  })();
487
492
  const q = () => {
488
- const t2 = "Ralb", e2 = 721, n2 = "0F9D", r2 = 342, s2 = 908, i2 = 161, a2 = 559, l2 = 452;
489
- if (typeof window === X(-619 - -846, "*uos")) return window[d2 = t2, u2 = e2, X(u2 - l2, d2)][c2 = n2, h2 = r2, X(h2 - i2, c2)];
490
- var c2, h2, d2, u2, g2, m2;
491
- return o[g2 = "Lbn[", m2 = s2, X(m2 - a2, g2)]();
492
- }, J = () => {
493
- const t2 = "AZRT";
494
- function e2(t3, e3, n2, r2, o2) {
495
- return X(r2 - -648, o2);
496
- }
497
- return q()[e2(0, 0, 0, -452, t2)](X(948 - 627, "VPzb")) || q() === e2(0, 0, 0, -323, "Ralb");
493
+ const t2 = 850, e2 = 869, n2 = 926, r2 = 754, s2 = 763, i2 = 787, a2 = ")pkb", l2 = 360;
494
+ if (typeof window === rt(1126 - 806, "cd(T")) return window[c2(t2, 797, e2, n2, "(zr5")][c2(r2, 661, s2, i2, a2)];
495
+ function c2(t3, e3, n3, r3, o2) {
496
+ return rt(n3 - l2, o2);
497
+ }
498
+ return o[c2(0, 0, 736, 0, "q9)R")]();
499
+ }, K = () => {
500
+ const t2 = "@4Db", e2 = 624, n2 = 115, r2 = "dO*i", o2 = "JBVk", s2 = 1163, i2 = 283, a2 = 773;
501
+ return q()[l2 = t2, c2 = e2, rt(c2 - i2, l2)](rt(n2 - -392, r2)) || q() === rt(s2 - a2, o2);
502
+ var l2, c2;
498
503
  };
499
- function K(t2, e2, n2, r2, o2) {
500
- return X(n2 - 412, t2);
504
+ function X(t2, e2, n2, r2, o2) {
505
+ return rt(n2 - 63, o2);
506
+ }
507
+ function Y(t2, e2, n2, r2, o2) {
508
+ return rt(e2 - -250, r2);
501
509
  }
502
- function X(t2, e2) {
503
- const n2 = it();
504
- return X = function(e3, r2) {
505
- let o2 = n2[e3 -= 147];
506
- if (void 0 === X.nPxpDD) {
510
+ const Q = (t2, e2, n2, r2) => {
511
+ const o2 = 1029, s2 = 233;
512
+ function i2(t3, e3, n3, r3, o3) {
513
+ return rt(o3 - 626, r3);
514
+ }
515
+ function a2(t3, e3, n3, r3, o3) {
516
+ return rt(o3 - 497, r3);
517
+ }
518
+ function l2(t3, e3, n3, r3, o3) {
519
+ return rt(t3 - -97, r3);
520
+ }
521
+ return { licensee: () => t2[l2(348, 0, 0, "!hC)")], expiration: () => new Date(t2[l2(266, 0, 0, "dO*i")]), domains: () => t2[i2(0, 0, 0, "TxTG", 1116)] ?? [], developerCount: () => t2[l2(339, 0, 0, "&g2C")] ?? 1, cpuCount: () => t2[l2(401, 0, 0, "uIM&")] ?? 0, type: () => t2[a2(0, 0, 0, "PMZx", 924)] ?? i2(0, 0, 0, "JBVk", 999), exceptions: () => e2, isValidFor: (t3) => {
522
+ const n3 = 295;
523
+ return !(e2?.[r3 = o2, i3 = "KLkI", rt(r3 - n3 - s2, i3)] > 0);
524
+ var r3, i3;
525
+ }, isValid: () => true, isEval: () => false, features: () => Object[a2(0, 0, 0, "TxTG", 884)](t2[l2(425, 0, 0, "KLkI")] ?? {}), keyFrom: () => n2, getBuildVersion: z[a2(0, 0, 0, "*2!M", 830)], getBuildDate: z[c2 = -434, h2 = "rZwI", rt(c2 - -942, h2)] };
526
+ var c2, h2;
527
+ }, Z = (t2) => {
528
+ const e2 = 431, n2 = 416, r2 = "iYs[", s2 = 249, i2 = 404, a2 = 448, l2 = 501, c2 = 566, h2 = 257, d2 = "nRH[", u2 = 67, g2 = "f&JT";
529
+ function m2(t3, e3, n3, r3, o2) {
530
+ return rt(r3 - -95, e3);
531
+ }
532
+ function f2(t3, e3, n3, r3, o2) {
533
+ return rt(e3 - -719, n3);
534
+ }
535
+ let p2 = o[y2(656, 565, "Fs$Z")];
536
+ if (K() || o[w2(e2, 384, 411, n2, r2)]()) {
537
+ const t3 = z[w2(s2, 344, i2, a2, "JwPI")](), e3 = new Date(t3), n3 = /* @__PURE__ */ new Date(), r3 = 864e5;
538
+ Math[y2(517, 589, "*2!M")]((n3[y2(l2, c2, "%JsP")]() - e3[m2(0, "!hC)", 0, h2)]()) / r3) >= 120 && (p2 = [(_2 = d2, S2 = u2, rt(S2 - -398, _2))]);
539
+ } else p2 = [];
540
+ var _2, S2;
541
+ function w2(t3, e3, n3, r3, o2) {
542
+ return rt(e3 - -50, o2);
543
+ }
544
+ function y2(t3, e3, n3, r3, o2) {
545
+ return rt(t3 - 153, n3);
546
+ }
547
+ return { licensee: () => m2(0, "JBVk", 0, 398), expiration: () => null, domains: () => [q()], developerCount: () => 1, cpuCount: () => 0, type: () => y2(578, 0, "tNrE"), isEval: () => true, exceptions: () => p2, isValidFor: () => 0 === p2[f2(0, -218, "KLkI")], isValid: () => false, features: () => Object[y2(515, 0, "yNz&")]({}), keyFrom: () => t2, getBuildVersion: z[f2(0, -358, "rZwI")], getBuildDate: z[f2(0, -305, g2)] };
548
+ }, tt = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
549
+ let et = false;
550
+ function nt(t2, e2, n2, r2, o2) {
551
+ return rt(o2 - 786, r2);
552
+ }
553
+ function rt(t2, e2) {
554
+ const n2 = U();
555
+ return rt = function(e3, r2) {
556
+ let o2 = n2[e3 -= 319];
557
+ if (void 0 === rt.WGvoFm) {
507
558
  const e4 = function(t3, e5) {
508
559
  let n3, r3, o3 = [], s3 = 0, i3 = "";
509
560
  for (t3 = (function(t4) {
@@ -517,131 +568,79 @@ function X(t2, e2) {
517
568
  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]);
518
569
  return i3;
519
570
  };
520
- X.PQAerc = e4, t2 = arguments, X.nPxpDD = true;
571
+ rt.bcyhVU = e4, t2 = arguments, rt.WGvoFm = true;
521
572
  }
522
573
  const s2 = e3 + n2[0], i2 = t2[s2];
523
- return i2 ? o2 = i2 : (void 0 === X.UKipqB && (X.UKipqB = true), o2 = X.PQAerc(o2, r2), t2[s2] = o2), o2;
524
- }, X(t2, e2);
525
- }
526
- const Y = (t2, e2, n2, r2) => {
527
- const o2 = "qs2)", s2 = 153, i2 = 447;
528
- function a2(t3, e3, n3, r3, o3) {
529
- return X(n3 - i2, t3);
530
- }
531
- function l2(t3, e3, n3, r3, o3) {
532
- return X(e3 - -169, n3);
533
- }
534
- function c2(t3, e3, n3, r3, o3) {
535
- return X(n3 - -464, r3);
536
- }
537
- function h2(t3, e3, n3, r3, o3) {
538
- return X(n3 - s2, e3);
539
- }
540
- return { licensee: () => t2[c2(0, 0, -213, "Xep3")], expiration: () => new Date(t2[c2(0, 0, -121, "#Q8A")]), domains: () => {
541
- return t2[e3 = 438, n3 = "K7R&", X(e3 - 218, n3)] ?? [];
542
- var e3, n3;
543
- }, developerCount: () => t2[h2(0, "34YT", 498)] ?? 1, cpuCount: () => t2[a2("Kmld", 0, 787)] ?? 0, type: () => t2[c2(0, 0, -217, "kYqH")] ?? a2("K7R&", 0, 684), exceptions: () => e2, isValidFor: (t3) => {
544
- if (e2?.[n3 = o2, r3 = -51, h2(0, n3, r3 - -372)] > 0) return false;
545
- var n3, r3;
546
- return true;
547
- }, isValid: () => true, isEval: () => false, features: () => Object[l2(0, -5, "fWwZ")](t2[h2(0, "rxHt", 451)] ?? {}), keyFrom: () => n2, getBuildVersion: z[h2(0, "Kmld", 499)], getBuildDate: z[l2(0, -11, "AZRT")] };
548
- };
549
- function Q(t2, e2, n2, r2, o2) {
550
- return X(o2 - -242, e2);
574
+ return i2 ? o2 = i2 : (void 0 === rt.oXmRAQ && (rt.oXmRAQ = true), o2 = rt.bcyhVU(o2, r2), t2[s2] = o2), o2;
575
+ }, rt(t2, e2);
551
576
  }
552
- const Z = (t2) => {
553
- const e2 = "#Q8A", n2 = "Xep3", r2 = 44, s2 = 826, i2 = 858, a2 = 789, l2 = 882, c2 = "v^^a", h2 = 1152, d2 = "qtST", u2 = 866;
554
- function g2(t3, e3, n3, r3, o2) {
555
- return X(t3 - -676, n3);
556
- }
557
- function m2(t3, e3, n3, r3, o2) {
558
- return X(e3 - -307, t3);
559
- }
560
- function f2(t3, e3, n3, r3, o2) {
561
- return X(o2 - u2, t3);
562
- }
563
- let p2 = o[g2(-340, 0, "iH2Z")];
564
- if (J() || o[g2(-412, 0, e2)]()) {
565
- const t3 = z[_2 = n2, S2 = 141, X(S2 - -89, _2)](), o2 = new Date(t3), h3 = /* @__PURE__ */ new Date(), d3 = 864e5;
566
- Math[m2(e2, r2)]((h3[w2(s2, 795, i2, a2, "fWwZ")]() - o2[w2(800, 935, 811, l2, c2)]()) / d3) >= 120 && (p2 = [m2("wMU8", -17)]);
567
- } else p2 = [];
568
- var _2, S2;
569
- function w2(t3, e3, n3, r3, o2) {
570
- return X(r3 - 601, o2);
571
- }
572
- return { licensee: () => f2("2^Ud", 0, 0, 0, 1073), expiration: () => null, domains: () => [q()], developerCount: () => 1, cpuCount: () => 0, type: () => f2("wPaE", 0, 0, 0, 1159), isEval: () => true, exceptions: () => p2, isValidFor: () => 0 === p2[f2("c6IN", 0, 0, 0, 1128)], isValid: () => false, features: () => Object[m2("2^Ud", 12)]({}), keyFrom: () => t2, getBuildVersion: z[f2("ySX5", 0, 0, 0, h2)], getBuildDate: z[g2(-453, 0, d2)] };
573
- }, tt = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
574
- function et(t2, e2, n2, r2, o2) {
575
- return X(r2 - 21, n2);
576
- }
577
- let nt = false, rt = false;
578
- function ot(t2, e2, n2, r2, o2) {
579
- return X(n2 - 587, o2);
580
- }
581
- const st = et(0, 0, "qs2)", 334)[U(675, 0, 0, "t[gV")]("")[et(0, 0, "S4jN", 313)]((t2, e2) => e2 + t2, "");
582
- function it() {
583
- const t2 = ["W6xdRmkSt8k5WOW", "W7hcHCoUo8opW4G", "WOiAwwC", "WQhdJSoTWOtcL8kJ", "u0dcI8kiW7ac", "c28GEvtdKL3dQa", "W4lcGuCMWPTjWPPoomoLWORdGmk6", "EwZcK1lcPvpcVSkt", "lKGKfmo8zuldGCkwC0qk", "W4nmh2DjW6DH", "W5zqfhL3W71WCG", "qSkIWPK+FCk4WPhcLa", "WRP9W6hcGtZcPq", "t8oBAKDnoxigW50", "W7ZdRCkav8kS", "i8oVWQ46wYy2ACklWODHfhm", "W53cJvapWPXzWPPRlSo5", "W5DBbgTjW7H3sSoYhmoqW44poa", "WQbXW4pdVSo7WQK", "oL85ftBcRCotd3vz", "DSk7W7bJdH8HyCkUWQr2", "zNOqW5GDpHr6W6ddLYddUW", "AmoOkvrmbuxcOCoiW7Dx", "tITJW7ufxey", "W6RcK8oCl8oaW4tcNa", "W7aQAfG", "W4VcIxzmWOKaWPVdN8ktvG", "a8kKWOldLq", "W5PFWOa+eH4", "p0W8i8oSsLG", "W6pcHqKbmLDlW6VdUa", "rmkDs8kdWQ7dN8omsZOb", "CZtcJWi", "r8kBq8kFWQ7dRSo6tcamW5K", "bSoBhCoFW6RcGSkRdh8", "q8kIWOWiFCkJWPJcG8obWRFdNmokW4qlqa", "b8kZWPpdJ8knW7KzWPBdNmoKdG", "DgKxW5Gmccf8W6JdKdJdRwW", "FmoHDfjwjq", "WPnKW5/dSmoHWRxcNbpcKNXEtXe", "WP3dKrldLSkKW61WWOO", "W55mWOS1dqNdU8oOk33dTGKI", "C2dcKupcVLlcVSkRW6aF", "xSoWorrvW5NdS3OXW5JdQX9k", "WP7cT2faWRfM", "rxqrWRy7WQvEWQNcISku", "C3aAW5mzdHHHW6/dJq", "uSkhxmkNWRVdNG", "W6/cKCkNWORdSSoJW6b0B8oBW54oW4HoW6LimCkRvmov", "WQ9KW5JdMSoGWRtcTGi", "W6lcGYjeWOuxWP/dMmkmqmovW7RcVCkA", "y8oQAqfFW4ZdQxSaW57dQX5q", "W6uNA1NcPvG", "WPz5W7lcMIBcOSoUW6DpqW", "BCkZvCoNWOypumo/WQ1+W4xcHb8b", "WQTXW5NdM8o6WQJcTblcShHfuaT8ya", "W64WF1xcNKu", "WRaeWQOWCComW7nrmq", "vXfZr8oK", "mSo6WQeMsICXCSkwWOe", "W6yZDf/cPq", "W4JcHIVdQSk4W7TNWQHEWQS", "j8kXkGisbLOJW47cMSo4", "pSkVWOZdGmkvW5iCW5JdL8o5ddmQyhmcyCk1", "W5OmW5FcL8oVWRSnxtldTLldOCoUiCkjAG", "ymo2DvHlpNG", "W4xcN0D+WO0y", "W49zWOqPhaJdVmoZnNS", "W7FcJ8ogiCopW4ZcLmknW4yoWOpcIsldS8kXF3tdIW", "uSoWbSofWPbHW5tdLmom", "WQKdggFcTCkuW4lcKCkBW73cPbWeaCkFW4xdV8o8FG", "W7VdTCoBw8kqWRK", "dGxcQ2tdTvtdJmozjLO5W5m", "WPmBW67cK8oWW7ih", "WRtdImoPWPxcMmk1", "W4JcHIVdOmkYW6TJWOHw", "WPVdLmo6WPhcJSk5WRqiW6jFeCkondpcThdcOCkdjW7dR8kIWP5uW4lcRCok", "xmkmu8k3WQJdG8o2", "WOn/W7BcJsJcTa", "WOSfw27cSSkeW4lcTmknW6e", "uv3cJ8kQW6Cc", "ud0KA2BdLq", "z8oKkX1ufq", "sxGlW58hdG", "WP8dnSk5FSoGAmo1gG", "hmo8W43dLr/dQSokWQFdK8olW4/dQSoMW5hdTCo4WR7cS8o5W4S", "Bmk4vq", "WOb7W7lcHa", "WPnKW5/dSmoHWRu", "ncHqWPSoWQbQWR/cSG", "qhNcGe/cVLu", "jSoRWRqqwYahCSkoWPO", "W6uYELNcUWe", "W7aTDf3cVLlcMW", "W5/cKtBdGmkPW4TJWRvtWRhcQGa", "W4FcJcZdMSkZW65RWQq", "t8oYE1LlkxWTW6C", "WOpdLN4sWOTiWOLR", "W6uNEfxcP1xcL8okjJG", "fL0Ip8oNEgZdHmk8FfuD", "B8oKmrTjeui", "Csr5W6emC1rBW4JdMK7dQSkHWRhdQ0m", "WOjOW6FcVdVcVmoC", "W4jtWQbRw1y", "WPRdN2vbWQqTWQRdOW", "W5utW7tcR3WmfG", "tmkKebxcGX0aeCoDW4e+", "W5lcLSoIWOVdQCo2W60", "WPv4W6dcGa", "WPjSW6dcUcdcUmoxW7PEtW", "da7cU1xdL1tdLmov", "rSk4oWxcIXy", "W5/cIxzeWOuxWP/dMmkmqmk+W5tcOq", "j8kOCWrRW4BdJeO", "W4CaW7xcRhani3PtWPZcMXuL", "W7H0WQbWrLSmW4VdRa", "fSk7amou", "WOhcRvXgWQeJ", "rw8aWQ5IWQHfWRJcJSkdWQ1zWPhdMaen", "BYtcKG1zW7y", "dCoNWQmXucCdo8kmWOzHuwemssNcSSkEk8o7W4rrWR/dKmo+W5CJWOpdIq", "W7LBWOq3hrRdN8oZlx3cOIaVf8kEW4axvq", "iCk3lG1ZhhyZW6pcGW", "ECoSvX5jW4W", "W6tdUComDCkBWRmHWQJdI2u", "Cmk7dbRcHa4", "W6RcJSo8l8oaW4tcNa", "W6XoaMnoW6baF8o0fmoxW5yz", "Cmk7dbRcHa4rbmoCW50+W6y", "WPC+B8odiSoltG", "wJ0+B3RcLsZcHh0", "vKtcKCkTW7ajagvLW6vXWRbm", "W67cLeedWPXEWR1bjCoUWQtdLW", "xZCKF33dKw7dVtVcU8o+WQhdG8kDWP8LWQTvlG", "W7jFhCkexSo0WR0", "WQb7W4O", "W4JcJCorWO/dSCoNW6u", "W4VcIxzkWPKDWPBdKSk7rmkbW5q", "CSoLDfThp00RW6VcUCoVFmke", "WRFcRMbaWQSYz2uvWPyliq", "W5DcW7TUlSkDW4zpbComrCkv", "qmkPfbBcIq4", "W70KWP3cQ8k8W7xdObNcGNP5CbO", "WOZcU2ziWQWQvLqjWPeaj1f7", "mSo3W4/dTGBdQSocW6pdU8odW5JdQG", "W5ThDmki", "WOODW4VcMG", "luGKn8oGyf0", "W7dcImoVk8oyW5xcLmk3W64gWPtcIr/dTmkMsxhdICo1", "brxdJ8oXWQzpAhHOW6XlWOzq", "W5FcN8oRWPVdUmoiW7C", "W5vFhCkiqSo0WQCbW6C", "oCk+aCovW7P9DePzW4n3W6vA", "wCoXBXbbW4ddVIG0W4pdRXfnqq", "juG+mCo9za", "wcjpzGtcRColn1Hbn13dM8kKv2nNWR3cHq", "dqxcQ0FdQvhdK8oTefiJW4ldS1C", "WP0nW5BcL8oUW7OxvWJcUvVdPCotjG", "kmk3WPVdJCkqW58zWOZdLW", "WPKfnSoubSkCyCo6nv9GgW", "W7JdRCkava", "yNejW5m", "uedcI8kIW7WxiW", "BmoKmt5fcvdcRCobW6W", "W7/dR8kfumkS", "oCo7W5JdKr3dSmolW6i", "W4jtWRnNwvSkW7VdNCk6", "W6ddUSkhxSkSWOG", "WRacWRK1DSoC", "auaWoCkgA8kYWQ7dOx/cUSoY", "WRXHW57dSq", "W4WsW5xcRxeA", "W4boWQraxeypW7ddT8kOz2C", "vGzIBConnW", "ahO/WRjwl2qrW7FdGvRdVq", "uv3cNmkMW6upoxHIW7G", "WR7dN8oIWPFcLSk4", "y8kHW5ZdVtVdMSo+W5i", "W6KSvv/cS0q", "u2dcKupcVLlcVSoaW6aElGfCWQamW7jDW78p", "W4DmgwTm", "W5OHvh06W7OmW4m+xeDFcCopEmopD8oiBSoC", "oCk2De4urx7cR8oBW55irW", "w8kgsCkqWQ7dHCo0ta", "W4noWQrJqemqW4tdGCkGFxBdPCkd", "cxK7WRGXs1SrW4FdOq", "W5dcNaSmn1TfW6ZdQq", "zmo1kCogWP1G", "W4boWR5Nw04xW7hdVCkMD2FdICkd", "hmkKWOpdP8klW5qv", "oCkra8ooW7T9x3bY", "q8kUebtcNHi", "d8oHW6a/wY0", "W4BcM8oZWQZdQmoNW615v8onWOWoW5feW6q", "dSoHhcdcGwK", "xY97W5qjD1u", "BW9+qJNcMCo0ogzHgMZdSmkt", "B3VcNuVcUvlcVG", "BWr1yCozjSkVWRVdSgZcV8o8qW", "Emo1jaHudMBcRCozW7C", "WP0nW4ZcSmoPW7ipvHdcS03dS8oZlCkp", "W5q5WQtdMwpdQmoGW75Ewvbf", "lJZdGrdcTNNcJ8khW6q3", "WRzfW5BcRqBcICo1", "bmo4WQe4sZusCSknWOC1axiFtc/cSSkEkmoSW4yyWOpdMSo+"];
584
- return (it = function() {
585
- return t2;
586
- })();
577
+ let ot = false;
578
+ const st = Y(0, 148, 0, "tNrE")[X(0, 0, 419, 0, "(q@U")]("")[nt(0, 0, 0, "6uLa", 1199)]((t2, e2) => e2 + t2, "");
579
+ function it(t2, e2, n2, r2, o2) {
580
+ return rt(n2 - 379, r2);
587
581
  }
588
582
  class at {
589
583
  constructor() {
590
- const t2 = "iH3t";
591
- var e2, n2, r2, o2;
592
- this[r2 = "4##u", o2 = 1220, et(0, 0, r2, o2 - 895)][e2 = 429, n2 = t2, ot(0, 0, e2 - -478, 0, n2)] = null;
584
+ const t2 = "Hwn6";
585
+ function e2(t3, e3, n2, r2, o2) {
586
+ return X(0, 0, n2 - -735, 0, e3);
587
+ }
588
+ this[e2(0, "&g2C", -217)][e2(0, t2, -261)] = null;
593
589
  }
594
- async [ot(0, 0, 884, 0, "Wo(q")](t2, e2 = false) {
595
- const n2 = 1150, r2 = "wMU8", s2 = "9GN$", i2 = "2^Ud", a2 = "BE]*", l2 = 642, c2 = 536, h2 = 540, d2 = 1122, u2 = 1126, g2 = 1103, m2 = 1037, f2 = 618, p2 = 697, _2 = "wPaE", S2 = "NJx6", w2 = "qtST", y2 = "F9t#", E2 = 708, C2 = "n(Oi", b2 = "MK#e", v2 = 349, x2 = "4##u", I2 = 374, R2 = "S4jN", A2 = 507, M2 = "rxHt", N2 = 624;
596
- if (!t2 || t2[B2(738, 701, 655, "qs2)")](k2(1154, "k[*j", 1155, n2)) || t2[O2(-3, -54, -35, "Ralb")](O2(-177, -133, -179, "#Q8A")) || t2[T2(-202, -134, r2, -166)](k2(1041, s2, 1080, 1081)) || t2[T2(-399, -339, i2, -464)](T2(-379, -480, "fWwZ", -375))) return nt = true, await this[F2(a2, l2, c2, h2)](true);
597
- if (nt = false, !e2 && tt[k2(1163, "Wo(q", 1208, d2)]) {
598
- const t3 = await this[O2(-299, -137, -202, "n(Oi")]();
599
- if (t3[k2(u2, "nmna", g2, m2)]() && !t3[T2(-355, -327, "*uos", -294)]()) return t3;
590
+ async [nt(0, 0, 0, "JBVk", 1310)](t2, e2 = false) {
591
+ const n2 = "&g2C", r2 = 7, s2 = "uIM&", i2 = 142, a2 = 8, l2 = 552, c2 = "Kq6w", h2 = 600, d2 = "IzF!", u2 = 855, g2 = 882, m2 = "rZwI", f2 = 502, p2 = 525, _2 = "(zr5", S2 = 567, w2 = 618, y2 = 444, E2 = "KLkI", C2 = "om^6", b2 = 550, v2 = "TxTG", x2 = 576, I2 = 630, R2 = 574, A2 = 1085, M2 = 948, T2 = 477, N2 = "g1eZ", F2 = 521, k2 = 482, O2 = "4pLE", D2 = "dO*i";
592
+ if (!t2 || t2[P2(933, "6uLa", 935, 1007)](P2(844, "Z0uT", 781, 884)) || t2[B2(n2, 47, r2, -95)](B2(s2, i2, 103, a2)) || t2[H2(l2, "bFUh", 600, 453, 544)](H2(677, c2, 693, h2, 674)) || t2[P2(840, d2, u2, g2)](H2(507, m2, 511, f2, p2))) return et = true, await this[W2(_2, 614, 620, 588)](true);
593
+ if (et = false, !e2 && tt[W2("!hC)", S2, w2, 603)]) {
594
+ const t3 = await this[W2("V87T", y2, 436, 528)]();
595
+ if (t3[H2(703, E2, 565, 699, 663)]() && !t3[z2(-575, -547, C2)]()) return t3;
596
+ }
597
+ function B2(t3, e3, n3, r3, o2) {
598
+ return X(0, 0, n3 - -410, 0, t3);
600
599
  }
601
- function T2(t3, e3, n3, r3, o2) {
602
- return Q(0, n3, 0, 0, t3 - -310);
600
+ tt[W2("Y%bZ", 478, 464, b2)] = t2, tt[P2(999, v2, 940, 900)] = W2("Hwn6", 723, x2, I2), tt[z2(-498, -423, "tNrE")] = null, tt[H2(455, "qJsz", R2, 527, 540)] = null;
601
+ const L2 = await this[P2(A2, "@4Db", M2, 1052)]();
602
+ function z2(t3, e3, n3, r3, o2) {
603
+ return nt(0, 0, 0, n3, e3 - -1732);
603
604
  }
604
- function F2(t3, e3, n3, r3, o2) {
605
- return ot(0, 0, r3 - -395, 0, t3);
605
+ function P2(t3, e3, n3, r3, o2) {
606
+ return nt(0, 0, 0, e3, r3 - -228);
606
607
  }
607
- function k2(t3, e3, n3, r3, o2) {
608
- return U(r3 - 390, 0, 0, e3);
608
+ if (!L2[H2(T2, N2, 514, 532, F2)]()) throw await this[z2(0, -627, "@4Db")](true), new Error(B2("JBVk", 0, 68));
609
+ function H2(t3, e3, n3, r3, o2) {
610
+ return Y(0, o2 - 450, 0, e3);
609
611
  }
610
- function O2(t3, e3, n3, r3, o2) {
611
- return Q(0, r3, 0, 0, n3 - -115);
612
+ function W2(t3, e3, n3, r3, o2) {
613
+ return nt(0, 0, 0, t3, r3 - -675);
612
614
  }
613
- tt[B2(f2, p2, 689, _2)] = t2, tt[T2(-277, 0, S2)] = T2(-354, 0, w2), tt[B2(701, 709, 630, y2)] = null, tt[F2("S)0u", 0, 0, 383)] = null;
614
- const D2 = await this[B2(725, E2, 703, "VPzb")]();
615
- function B2(t3, e3, n3, r3, o2) {
616
- return ot(0, 0, t3 - -134, 0, r3);
617
- }
618
- if (!D2[k2(0, "ySX5", 0, 974)]()) throw await this[B2(707, 0, 0, "BE]*")](true), new Error(k2(0, "N&&b", 0, 1082));
619
- if (o[O2(0, 0, -84, C2)]()) {
620
- await $[F2(b2, 0, 0, v2)](t2, e2);
621
- if (!(await this[F2(x2, 0, 0, I2)]())[F2(R2, 0, 0, A2)]()) throw await this[k2(0, M2, 0, 991)](true), new Error(B2(N2, 0, 0, "Xep3"));
622
- }
623
- return D2;
624
- }
625
- async [K("VPzb", 0, 684)](t2 = false) {
626
- const e2 = 195, n2 = 82, r2 = 163, s2 = "4##u", i2 = "k!C9", a2 = 694, l2 = 667, c2 = 257, h2 = 271, d2 = "nmna", u2 = 318, g2 = "#Q8A", m2 = 218, f2 = 286, p2 = 270, _2 = 339, S2 = 182, w2 = 173, y2 = "rxHt", E2 = "MK#e", C2 = 334, b2 = "iH2Z", v2 = 206, x2 = 243, I2 = 630, R2 = 521, A2 = 615, M2 = 594, N2 = "34YT", T2 = 562, F2 = 561, k2 = 584, O2 = 709, D2 = 625, B2 = 321, L2 = 256, P2 = 410, W2 = "*uos", H2 = "c6IN", V2 = 333, K2 = 281, et2 = 262, it2 = "t[gV", at2 = 720, lt2 = 620, ct2 = 322, ht2 = 374, dt2 = 399, ut2 = 513, gt2 = 663, mt2 = "1mii", ft2 = 596, pt2 = 200, _t2 = 228, St2 = "Hro3", wt2 = 444, yt2 = 353, Et2 = "qtST", Ct2 = 226, bt2 = "nmna", vt2 = "qs2)", xt2 = "kYqH", It2 = "k!C9", Rt2 = 309, At2 = "X[E#", Mt2 = 693, Nt2 = "Kmld", Tt2 = "iH3t", Ft2 = "kYqH", kt2 = "#Q8A", Ot2 = 40;
627
- if (tt[Ht2(345, 266, 215, 295, "rxHt")]) return tt[Ht2(114, e2, n2, r2, s2)];
628
- if (!this[Pt2(-526, -495, -599, -545, i2)][Pt2(-461, -474, -481, -432, "v^^a")] && (this[$t2(690, 715, a2, "z876", l2)][Ht2(c2, 236, h2, 248, d2)] = new Error("FV")), tt[jt2(u2, g2, 129, m2)]) return tt[jt2(f2, "9GN$", p2, _2)];
629
- let Dt2 = null;
630
- tt[Ht2(S2, w2, 256, 203, "S)0u")] = new Promise((t3) => {
631
- Dt2 = t3;
615
+ if (o[z2(0, -540, "q9)R")]()) {
616
+ await $[B2(O2, 0, -1)](t2, e2);
617
+ if (!(await this[z2(0, -425, D2)]())[H2(0, "iYs[", 0, 0, h2)]()) throw await this[W2("zlDt", 0, 0, k2)](true), new Error(P2(0, "Hwn6", 0, 982));
618
+ }
619
+ return L2;
620
+ }
621
+ async [Y(0, 201, 0, "f&JT")](t2 = false) {
622
+ const e2 = "om^6", n2 = 317, r2 = "AhQH", s2 = 1404, i2 = 1387, a2 = 1311, l2 = "iYs[", c2 = 1056, h2 = 1058, d2 = 1116, u2 = "V87T", g2 = "(zr5", m2 = 1076, f2 = 1239, p2 = "aNrR", _2 = "dO*i", S2 = 186, w2 = "dO*i", y2 = 1028, E2 = 1064, C2 = 1053, b2 = 1228, v2 = 1254, x2 = "%JsP", I2 = "$F[a", R2 = 1269, A2 = 1334, M2 = 1281, T2 = 497, N2 = 561, F2 = 427, k2 = 530, O2 = 461, D2 = "6uLa", B2 = "f&JT", L2 = 1191, P2 = 1122, H2 = "G7z$", W2 = 583, V2 = 623, U2 = "dO*i", X2 = 166, at2 = "q9)R", lt2 = "*2!M", ct2 = 1231, ht2 = 1224, dt2 = "cd(T", ut2 = 1098, gt2 = "bFUh", mt2 = "iYs[", ft2 = "V87T", pt2 = 1267, _t2 = 280, St2 = 68, wt2 = 1450, yt2 = 495, Et2 = "yNz&", Ct2 = 460, bt2 = 396, vt2 = "*T73";
623
+ function xt2(t3, e3, n3, r3, o2) {
624
+ return nt(0, 0, 0, o2, t3 - -936);
625
+ }
626
+ if (tt[Tt2(1148, 1152, 1247, "Fs$Z")]) return tt[Ft2(-576, -529, -549, -594, "zlDt")];
627
+ if (!this[xt2(282, 0, 0, 0, e2)][xt2(n2, 0, 0, 0, "(q@U")] && (this[Tt2(1053, 1052, 1154, "$F[a")][Ot2(-176, r2, -72, -87, -153)] = new Error("FV")), tt[kt2(1269, s2, "Y%bZ", i2, a2)]) return tt[Ft2(-473, -532, -470, -453, l2)];
628
+ let It2 = null;
629
+ tt[kt2(c2, 1161, "tNrE", h2, d2)] = new Promise((t3) => {
630
+ It2 = t3;
632
631
  });
633
- let Bt2, Lt2 = null;
634
- const zt2 = async (t3, e3) => {
635
- const n3 = 341;
636
- function r3(t4, e4, r4, o2, s3) {
637
- return jt2(t4 - 160, t4, r4 - n3, r4 - -183);
632
+ let Rt2, At2 = null;
633
+ const Mt2 = async (t3, e3) => {
634
+ const n3 = 369, r3 = 179;
635
+ function s3(t4, e4, o2, s4, i3) {
636
+ return Ft2(e4 - -15, e4 - n3, o2 - r3, s4 - 321, i3);
638
637
  }
639
638
  try {
640
639
  const n4 = ((t4) => {
641
640
  let e4 = t4;
642
- const n5 = e4[e4.length - 1], r4 = n5.charCodeAt(0) - 52;
641
+ const n5 = e4[e4.length - 1], r5 = n5.charCodeAt(0) - 52;
643
642
  if (e4 = e4.substring(0, e4.length - 1), e4 = e4.split("").reverse().join(""), e4 = G(e4), e4 = e4.trim(), e4[e4.length - 1] !== n5) throw new Error();
644
- e4 = e4.substring(0, e4.length - 1), e4 = j(e4, r4);
643
+ e4 = e4.substring(0, e4.length - 1), e4 = j(e4, r5);
645
644
  try {
646
645
  e4.startsWith("{") || (e4 = "{" + e4);
647
646
  const t5 = JSON.parse(e4), n6 = { licensee: t5.l, domains: t5.d, nodeId: t5.n, expiry: t5.e, developerCount: t5.dc, cpuCount: t5.cc, type: t5.t };
@@ -649,190 +648,190 @@ class at {
649
648
  } catch (t5) {
650
649
  throw new Error("Invalid license key.");
651
650
  }
652
- })(e3), s3 = await (async (t4) => {
653
- const e4 = "#Q8A", n5 = 1177, r4 = 1132, s4 = "NJx6", i4 = "wMU8", a3 = "v^^a", l3 = "ySX5", c3 = 1185, h3 = "9GN$", d3 = "5QkJ", u3 = t4[y3("K7R&", -417, -307, -307, -397)], g3 = t4[S3(-822, -799, "F9t#")] ? new Date(t4[y3("k!C9", -519, -452, -399, -428)]) : null, m3 = t4[w3(-231, -208, e4, -274)];
654
- function f3(t5, e5, n6, r5, o2) {
655
- return X(t5 - 983, r5);
651
+ })(e3), r4 = await (async (t4) => {
652
+ const e4 = "8F*z", n5 = "nRH[", r5 = 859, s4 = 959, i4 = "Kq6w", a3 = 832, l3 = "TnEa", c3 = 1104, h3 = 918, d3 = "Y%bZ", u3 = 820, g3 = "PMZx", m3 = "q9)R", f3 = "bFUh", p3 = 1015, _3 = "nRH[", S3 = "TxTG";
653
+ function w3(t5, e5, n6, r6, o2) {
654
+ return rt(t5 - -386, n6);
656
655
  }
657
- function p3(t5, e5, n6, r5, o2) {
658
- return X(r5 - -981, t5);
656
+ const y3 = t4[w3(96, 0, "uIM&")], E3 = t4[I3(e4, 877, 743, 843)] ? new Date(t4[I3(n5, r5, 1057, s4)]) : null, C3 = t4[I3(i4, a3, 937, 931)], b3 = [];
657
+ function v3(t5, e5, n6, r6, o2) {
658
+ return rt(n6 - -504, t5);
659
659
  }
660
- const _3 = [];
661
- function S3(t5, e5, n6, r5, o2) {
662
- return X(e5 - -965, n6);
660
+ function x3(t5, e5, n6, r6, o2) {
661
+ return rt(e5 - -552, t5);
663
662
  }
664
- function w3(t5, e5, n6, r5, o2) {
665
- return X(r5 - -621, n6);
663
+ function I3(t5, e5, n6, r6, o2) {
664
+ return rt(r6 - 488, t5);
666
665
  }
667
- function y3(t5, e5, n6, r5, o2) {
668
- return X(o2 - -617, t5);
666
+ function R3(t5, e5, n6, r6, o2) {
667
+ return rt(n6 - 645, e5);
669
668
  }
670
- if (g3 ? isNaN(g3) ? _3[w3(-310, -281, "Kmld", -365)](f3(r4, 0, 0, s4)) : g3 < /* @__PURE__ */ new Date() && _3[S3(-594, -649, e4)](S3(-666, -700, "rxHt") + g3[w3(-531, -456, "S4jN", -467)]()) : _3[f3(n5, 0, 0, "fWwZ")](S3(-594, -631, "p[$0")), o[y3("S)0u", 0, 0, 0, -360)]()) {
671
- if (!m3) return _3[w3(0, 0, "1mii", -298)](w3(0, 0, i4, -415)), _3;
672
- const t5 = await $[w3(0, 0, "k!C9", -347)]();
673
- t5 !== m3 && _3[p3("ySX5", 0, 0, -749)](p3(a3, 0, 0, -794) + m3 + w3(0, 0, l3, -471) + t5);
669
+ if (E3 ? isNaN(E3) ? b3[I3("g1eZ", 0, 0, h3)](R3(0, d3, 1092)) : E3 < /* @__PURE__ */ new Date() && b3[I3("Kq6w", 0, 0, u3)](I3("cd(T", 0, 0, 856) + E3[w3(6, 0, g3)]()) : b3[I3(e4, 0, 0, 898)](R3(0, l3, c3)), o[x3("V87T", -177)]()) {
670
+ if (!C3) return b3[v3("6uLa", 0, -137)](v3("cd(T", 0, -29)), b3;
671
+ const t5 = await $[x3("&g2C", -92)]();
672
+ t5 !== C3 && b3[x3(m3, -41)](x3("&g2C", -76) + C3 + w3(113, 0, m3) + t5);
674
673
  } else {
675
- if (J()) return _3;
676
- if (u3 && 0 !== u3[w3(0, 0, "Kmld", -312)]) {
674
+ if (K()) return b3;
675
+ if (y3 && 0 !== y3[w3(-27, 0, "bq3m")]) {
677
676
  let t5 = false;
678
677
  const e5 = q();
679
- for (let n6 = 0; !t5 && n6 < u3[p3("Hro3", 0, 0, -814)]; n6++) t5 = e5[w3(0, 0, h3, -320)](u3[n6]);
680
- !t5 && _3[w3(0, 0, d3, -390)](w3(0, 0, "p[$0", -382));
681
- } else _3[f3(c3, 0, 0, "z876")](w3(0, 0, "nmna", -282));
678
+ for (let n6 = 0; !t5 && n6 < y3[R3(0, "g1eZ", p3)]; n6++) t5 = e5[R3(0, _3, 1073)](y3[n6]);
679
+ !t5 && b3[x3("uIM&", -123)](I3(S3, 0, 0, 1e3));
680
+ } else b3[I3(f3, 0, 0, 979)](x3("q9)R", -79));
682
681
  }
683
- return _3;
684
- })(n4), i3 = Y(n4, s3, t3);
685
- return i3[r3(kt2, 0, Ot2)]()[r3("t[gV", 0, 109)] > 0 && (Bt2 = i3), i3;
682
+ return b3;
683
+ })(n4), i3 = Q(n4, r4, t3);
684
+ return i3[s3(0, -yt2, -578, -458, Et2)]()[s3(0, -Ct2, -491, -bt2, vt2)] > 0 && (Rt2 = i3), i3;
686
685
  } catch (e4) {
687
- Bt2 = ((t4) => {
688
- const e5 = "k!C9", n4 = "c6IN", r4 = 762, o2 = 589, s3 = 11;
689
- function i3(t5, e6, n5, r5, o3) {
690
- return X(o3 - s3, t5);
686
+ Rt2 = ((t4) => {
687
+ const e5 = "Hwn6", n4 = "Hwn6", r4 = 977, o2 = 276;
688
+ function s4(t5, e6, n5, r5, o3) {
689
+ return rt(e6 - 371, n5);
691
690
  }
692
- return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => i3("S4jN", 0, 0, 0, 223), exceptions: () => {
693
- return [(e6 = n4, s4 = r4, i3(e6, 0, 0, 0, s4 - o2) + t4 + "'")];
694
- var e6, s4;
695
- }, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[i3("c6IN", 0, 0, 0, 171)]({}), keyFrom: () => t4, getBuildVersion: z[i3("X[E#", 0, 0, 0, 337)], getBuildDate: z[a3 = e5, l3 = 649, X(l3 - 391, a3)] };
696
- var a3, l3;
691
+ return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => s4(0, 827, "@4Db"), exceptions: () => {
692
+ return [(e6 = n4, i4 = r4, s4(0, i4 - o2, e6) + t4 + "'")];
693
+ var e6, i4;
694
+ }, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[s4(0, 854, "g1eZ")]({}), keyFrom: () => t4, getBuildVersion: z[i3 = -330, a3 = "WH4#", rt(i3 - -738, a3)], getBuildDate: z[s4(0, 876, e5)] };
695
+ var i3, a3;
697
696
  })(t3);
698
697
  }
699
698
  };
700
- function Pt2(t3, e3, n3, r3, o2) {
701
- return U(r3 - -1171, 0, 0, o2);
702
- }
703
- tt[Pt2(-364, -319, -322, -413, y2)] && (Lt2 = await zt2(tt[Vt2("Ralb", -757, -677, -721)], tt[Vt2(E2, -616, -592, -674)]));
704
- let Wt2 = false;
705
- if (nt && (Wt2 = true, Lt2 = Z(jt2(C2, b2, v2, x2))), !Lt2) {
706
- if (o[$t2(I2, R2, A2, "k[*j", M2)]()) {
707
- if (!Lt2) {
708
- const t3 = process[Vt2(N2, -721, -808, -712)], e3 = t3[Vt2("GG$J", -705, -636, -643)] || t3[Pt2(0, 0, 0, -457, "fWwZ")] || t3[$t2(513, T2, F2, d2, k2)] || t3[$t2(628, 672, O2, "S4jN", D2)];
709
- e3 && (Lt2 = await zt2(Ht2(B2, 375, 440, 350, "Ralb"), e3));
699
+ function Tt2(t3, e3, n3, r3, o2) {
700
+ return Y(0, t3 - 880, 0, r3);
701
+ }
702
+ tt[Ft2(-509, -550, -531, -491, u2)] && (At2 = await Mt2(tt[Ft2(-543, -563, -520, -459, "4pLE")], tt[Ot2(-303, g2, -225, -224, -216)]));
703
+ let Nt2 = false;
704
+ if (et && (Nt2 = true, At2 = Z(Tt2(1039, 0, 0, "JBVk"))), !At2) {
705
+ if (o[kt2(m2, f2, p2, 1234, 1165)]()) {
706
+ if (!At2) {
707
+ const t3 = process[xt2(246, 0, 0, 0, _2)], e3 = t3[xt2(S2, 0, 0, 0, w2)] || t3[Ft2(-549, -652, -577, -542, "nRH[")] || t3[kt2(y2, E2, "uIM&", 1036, 1128)] || t3[Ot2(-198, "q9)R", -145, -135, -98)];
708
+ e3 && (At2 = await Mt2(kt2(C2, b2, "!hC)", v2, 1154), e3));
710
709
  }
711
- if (!Lt2) {
712
- const t3 = await $[jt2(L2, "F9t#", P2, 334)]();
713
- t3 && (Lt2 = await zt2(Vt2(W2, -725, -688, -692), t3));
710
+ if (!At2) {
711
+ const t3 = await $[Ft2(-481, -566, -391, -568, x2)]();
712
+ t3 && (At2 = await Mt2(kt2(1196, 1354, I2, 1330, R2), t3));
714
713
  }
715
- !Lt2 && (Wt2 = true);
714
+ !At2 && (Nt2 = true);
716
715
  } else {
717
- if (!Lt2) try {
716
+ if (!At2) try {
718
717
  const t3 = await fetch("./" + st);
719
718
  let e3 = null;
720
- if (200 === t3[jt2(296, H2, 360, V2, 433)]) {
721
- const n3 = (await t3[Pt2(0, 0, 0, -428, "NJx6")]())[Ht2(294, K2, 246, et2, it2)]("\n");
722
- for (let t4 = 0; !e3 && t4 < n3[$t2(at2, lt2, 715, "*uos", 668)]; t4++) {
723
- const r3 = n3[t4][Vt2("t[gV", -634, -664, -638, -635)]();
724
- r3[Ht2(ct2, ht2, dt2, 356, "fWwZ")]("#") || 0 === r3[$t2(609, ut2, gt2, mt2, ft2)] || (e3 = r3);
719
+ if (200 === t3[kt2(A2, 1376, "IzF!", 1183, M2)]) {
720
+ const n3 = (await t3[Ft2(-T2, -N2, -F2, -530, "yNz&")]())[Tt2(1143, 0, 0, "qJsz")]("\n");
721
+ for (let t4 = 0; !e3 && t4 < n3[Ft2(-k2, -O2, -503, -609, D2)]; t4++) {
722
+ const r3 = n3[t4][kt2(1032, 1123, B2, L2, P2)]();
723
+ r3[xt2(319, 0, 0, 0, H2)]("#") || 0 === r3[Ft2(-638, -W2, -V2, -594, U2)] || (e3 = r3);
725
724
  }
726
725
  }
727
726
  if (e3) {
728
- const t4 = Ht2(284, pt2, 144, _t2, St2) + st + "')";
729
- Lt2 = await zt2(t4, e3);
727
+ const t4 = Ot2(-189, "Kq6w", -198, -X2, -129) + st + "')";
728
+ At2 = await Mt2(t4, e3);
730
729
  }
731
730
  } catch (t3) {
732
731
  }
733
- !Lt2 && J() && (Wt2 = true);
732
+ !At2 && K() && (Nt2 = true);
734
733
  }
735
734
  }
736
- function Ht2(t3, e3, n3, r3, o2) {
737
- return ot(0, 0, r3 - -575, 0, o2);
735
+ function Ft2(t3, e3, n3, r3, o2) {
736
+ return it(0, 0, t3 - -1340, o2);
738
737
  }
739
- function Vt2(t3, e3, n3, r3, o2) {
740
- return U(r3 - -1309, 0, 0, t3);
738
+ function kt2(t3, e3, n3, r3, o2) {
739
+ return J(n3, 0, 0, 0, o2 - 274);
741
740
  }
742
- function $t2(t3, e3, n3, r3, o2) {
743
- return Q(0, r3, 0, 0, o2 - 633);
744
- }
745
- function jt2(t3, e3, n3, r3, o2) {
746
- return U(r3 - -386, 0, 0, e3);
747
- }
748
- if (!Lt2 && Wt2 && (Lt2 = Z(Ht2(385, 311, wt2, yt2, Et2))), !Lt2 && Bt2 && (Lt2 = Bt2), !Lt2 && (Lt2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [Vt2("wPaE", 0, 0, -728)], isValidFor: (t3) => false, isValid: () => false, features: () => Object[$t2(0, 0, 0, "Lbn[", 650)]({}), keyFrom: () => Ht2(0, 0, 0, 290, "wMU8"), getBuildVersion: z[jt2(Ct2, bt2, 360, 318)], getBuildDate: z[Ht2(0, 0, 0, 311, "iH3t")] }), tt[jt2(0, vt2, 0, 225)] = Lt2, Dt2(Lt2), t2) {
749
- if (!(tt[Vt2(xt2, 0, 0, -556)] && tt[jt2(0, It2, 0, Rt2)]) && (Wt2 || Lt2[Pt2(0, 0, 0, -494, "k!C9")]()[Vt2("OYwc", 0, 0, -604)] > 0 || Lt2[$t2(0, 0, 0, At2, Mt2)]()?.pb)) {
750
- if (rt) return void setTimeout(() => {
751
- var t3, e3;
752
- this[t3 = Ft2, e3 = -350, Pt2(0, 0, 0, e3 - 227, t3)](false, false);
741
+ if (!At2 && Nt2 && (At2 = Z(Ot2(-138, at2, -245, -251, -173))), !At2 && Rt2 && (At2 = Rt2), !At2 && (At2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [xt2(247, 0, 0, 0, "Z0uT")], isValidFor: (t3) => false, isValid: () => false, features: () => Object[Tt2(1013, 0, 0, "qJsz")]({}), keyFrom: () => xt2(304, 0, 0, 0, "bFUh"), getBuildVersion: z[Ot2(-367, lt2, -200, -178, -262)], getBuildDate: z[kt2(ct2, 1289, u2, ht2, 1287)] }), tt[Ot2(-166, dt2, -260, -257, -194)] = At2, It2(At2), t2) {
742
+ if (!(tt[Tt2(ut2, 0, 0, ")pkb")] && tt[Ft2(-614, 0, 0, 0, "PMZx")]) && (Nt2 || At2[Ot2(-346, "Fs$Z", -277, -302, -260)]()[kt2(0, 0, "AhQH", 0, 1192)] > 0 || At2[kt2(0, 0, gt2, 0, 1189)]()?.pb)) {
743
+ if (ot) return void setTimeout(() => {
744
+ var t3, e3, n3, r3;
745
+ this[t3 = 1269, e3 = 1316, n3 = ft2, r3 = pt2, Ot2(t3 - 463, n3, n3 - _t2, r3 - St2, e3 - wt2)](false, false);
753
746
  }, 8e3);
754
- await this[Ht2(0, 0, 0, 186, Nt2)](false, false);
747
+ await this[Ot2(-224, "iYs[", -232, -243, -230)](false, false);
755
748
  }
756
749
  }
757
- return tt[Vt2(Tt2, 0, 0, -651)];
758
- }
759
- async [K("iH3t", 0, 597)](t2) {
760
- const e2 = "F9t#", n2 = "0F9D", r2 = "Ralb", o2 = "AZRT", s2 = "qtST", i2 = "Kmld", a2 = 983, l2 = "zJlg", c2 = 343;
761
- function h2(t3, e3, n3, r3, o3) {
762
- return et(0, 0, r3, e3 - -661);
750
+ function Ot2(t3, e3, n3, r3, o2) {
751
+ return it(0, 0, o2 - -974, e3);
763
752
  }
764
- function d2(t3, e3, n3, r3, o3) {
765
- return Q(0, o3, 0, 0, n3 - -476);
753
+ return tt[Ft2(-589, 0, 0, 0, mt2)];
754
+ }
755
+ async [nt(0, 0, 0, "TnEa", 1221)](t2) {
756
+ const e2 = "Z0uT", n2 = "PMZx", r2 = "yNz&", o2 = 707, s2 = "*2!M", i2 = 729, a2 = "cd(T", l2 = 1319, c2 = "Fs$Z", h2 = 387, d2 = 149, u2 = 44;
757
+ function g2(t3, e3, n3, r3, o3) {
758
+ return Y(0, o3 - -533, 0, t3);
766
759
  }
767
- function u2(t3, e3, n3, r3, o3) {
768
- return U(e3 - c2, 0, 0, r3);
760
+ function m2(t3, e3, n3, r3, o3) {
761
+ return nt(0, 0, 0, e3, n3 - u2);
769
762
  }
770
- function g2(t3, e3, n3, r3, o3) {
771
- return K(t3, 0, r3 - -1261);
763
+ tt[g2("zlDt", 0, 0, 0, -258)] = true;
764
+ const f2 = await this[g2(e2, 0, 0, 0, -395)]();
765
+ function p2(t3, e3, n3, r3, o3) {
766
+ return X(0, 0, o3 - d2, 0, n3);
772
767
  }
773
- tt[g2(e2, -695, -550, -632)] = true;
774
- const m2 = await this[g2(n2, 0, 0, -702)]();
775
- return await $[h2(0, -316, 0, r2)](t2), !tt[u2(0, 1010, 0, o2)] && (m2[d2(0, 0, -566, 0, s2)]() || m2[d2(0, 0, -457, 0, e2)]()[h2(0, -311, 0, "4##u")] > 0) && await this[g2(i2, 0, 0, -519)](t2), Promise[u2(0, a2, 0, l2)]();
768
+ return await $[g2(n2, 0, 0, 0, -350)](t2), !tt[p2(0, 0, r2, 0, o2)] && (f2[m2(0, s2, 1300)]() || f2[g2("&g2C", 0, 0, 0, -297)]()[p2(0, 0, "TxTG", 0, i2)] > 0) && await this[m2(0, a2, l2)](t2), Promise[_2 = c2, S2 = h2, Y(0, S2 - 152, 0, _2)]();
769
+ var _2, S2;
776
770
  }
777
- async [et(0, 0, "Lbn[", 305)](t2 = false, e2 = false, n2 = false) {
778
- const r2 = "wMU8", o2 = "t[gV", s2 = "kYqH", i2 = "Wo(q";
779
- tt[u2(-148, "k!C9", -112, -83)] = true;
780
- const a2 = await this[u2(-239, r2, -205, -215)]();
781
- var l2, c2, h2, d2;
782
- tt[g2(-171, -65, -195, r2, -114)] || !(a2[h2 = -250, d2 = o2, U(h2 - -966, 0, 0, d2)]() || a2[l2 = 794, c2 = s2, Q(0, c2, 0, 0, l2 - 699)]()[u2(-75, "iH3t", -142, -92)] > 0) ? await $[u2(0, "0F9D", -202)](a2, t2, e2, n2) : await this[g2(-291, -166, -227, i2, -202)](t2);
783
- function u2(t3, e3, n3, r3, o3) {
784
- return Q(0, e3, 0, 0, n3 - -140);
771
+ async [it(0, 0, 765, "(zr5")](t2 = false, e2 = false, n2 = false) {
772
+ const r2 = "(q@U", o2 = "6uLa", s2 = "f&JT", i2 = "4pLE", a2 = "dO*i", l2 = "yNz&", c2 = 1157, h2 = "Yi*7", d2 = 847;
773
+ var u2, g2;
774
+ function m2(t3, e3, n3, r3, o3) {
775
+ return X(0, 0, t3 - 253, 0, o3);
785
776
  }
786
- function g2(t3, e3, n3, r3, o3) {
787
- return Q(0, r3, 0, 0, o3 - -178);
777
+ tt[u2 = "Hwn6", g2 = 200, Y(0, g2 - 29, 0, u2)] = true;
778
+ const f2 = await this[p2(-215, -159, -128, r2)]();
779
+ function p2(t3, e3, n3, r3, o3) {
780
+ return Y(0, n3 - -231, 0, r3);
788
781
  }
782
+ var _2, S2, w2, y2;
783
+ tt[p2(0, 0, -79, o2)] || !(f2[w2 = 981, y2 = s2, Y(0, w2 - d2, 0, y2)]() || f2[m2(644, 0, 0, 0, i2)]()[m2(639, 0, 0, 0, a2)] > 0) ? await $[m2(665, 0, 0, 0, h2)](f2, t2, e2, n2) : await this[_2 = l2, S2 = c2, it(0, 0, S2 - 306, _2)](t2);
789
784
  }
790
- async [U(728, 0, 0, "fWwZ")](t2, e2) {
791
- const n2 = "GG$J", r2 = "k[*j", s2 = "p[$0", i2 = 206, a2 = 662, l2 = "Kmld", c2 = 216;
792
- if (!t2 && (tt[p2(582, 641, "S)0u")] || tt[h2(-581, -563, "9GN$", -542, -585)])) return;
793
- function h2(t3, e3, n3, r3, o2) {
794
- return K(n3, 0, o2 - -1305);
785
+ async [it(0, 0, 841, "$F[a")](t2, e2) {
786
+ const n2 = "KLkI", r2 = 1227, s2 = "*T73", i2 = "bFUh", a2 = 1034, l2 = "(zr5", c2 = 1025, h2 = "f&JT", d2 = 268, u2 = 580;
787
+ if (!t2 && (tt[g2 = -253, m2 = "KLkI", it(0, 0, g2 - -1132, m2)] || tt[S2(n2, 1202, 1213, 1193, r2)])) return;
788
+ var g2, m2, f2, p2;
789
+ function _2(t3, e3, n3, r3, o2) {
790
+ return X(0, 0, t3 - u2, 0, r3);
795
791
  }
796
- function d2(t3, e3, n3, r3, o2) {
797
- return Q(0, t3, 0, 0, o2 - 239);
792
+ function S2(t3, e3, n3, r3, o2) {
793
+ return J(t3, 0, 0, 0, o2 - d2);
798
794
  }
799
- var u2, g2;
800
- tt[h2(0, 0, "2^Ud", 0, -561)] = true, tt[h2(0, 0, n2, 0, -611)] = true, await this[u2 = r2, g2 = -13, U(g2 - -663, 0, 0, u2)](t2);
801
- const m2 = o[d2(s2, 0, 0, 0, i2)](), f2 = t2 || m2 ? console[p2(574, a2, l2)] : o[d2("Hro3", 0, 0, 0, c2)];
802
- function p2(t3, e3, n3, r3, o2) {
803
- return U(e3 - 16, 0, 0, n3);
795
+ function w2(t3, e3, n3, r3, o2) {
796
+ return it(0, 0, r3 - -811, n3);
804
797
  }
805
- m2 && f2(""), await this[d2("9GN$", 0, 0, 0, 210)](t2, e2), f2("");
798
+ tt[S2("4pLE", 0, 0, 0, 1258)] = true, tt[f2 = 141, p2 = s2, it(0, 0, f2 - -567, p2)] = true, await this[S2(i2, 0, 0, 0, 1237)](t2);
799
+ const y2 = o[w2(0, 0, "8F*z", 8)](), E2 = t2 || y2 ? console[_2(a2, 0, 0, l2)] : o[w2(0, 0, "rZwI", 12)];
800
+ y2 && E2(""), await this[_2(c2, 0, 0, h2)](t2, e2), E2("");
806
801
  }
807
- [ot(0, 0, 904, 0, "qtST")]() {
808
- return this[t2 = -491, e2 = "NJx6", et(0, 0, e2, t2 - -756)]();
802
+ [Y(0, 110, 0, "PMZx")]() {
803
+ return this[t2 = "bq3m", e2 = 1094, J(t2, 0, 0, 0, e2 - 157)]();
809
804
  var t2, e2;
810
805
  }
811
- [U(730, 0, 0, "t[gV")](t2) {
812
- return this[e2 = "*uos", n2 = 356, Q(0, e2, 0, 0, n2 - 387)](true, t2);
806
+ [it(0, 0, 756, "8F*z")](t2) {
807
+ return this[e2 = 321, n2 = "6h[T", Y(0, e2 - 197, 0, n2)](true, t2);
813
808
  var e2, n2;
814
809
  }
815
- [U(620, 0, 0, "fWwZ")]() {
816
- function t2(t3, e2, n2, r2, o2) {
817
- return ot(0, 0, o2 - -1315, 0, t3);
810
+ [Y(0, 89, 0, "*2!M")]() {
811
+ const t2 = 302, e2 = "nHlQ";
812
+ function n2(t3, e3, n3, r2, o2) {
813
+ return Y(0, t3 - 136, 0, r2);
818
814
  }
819
- return tt[t2("4##u", 0, 0, 0, -504)] || tt[t2("k[*j", 0, 0, 0, -499)];
815
+ return tt[n2(406, 0, 0, "Hwn6")] || tt[n2(t2, 0, 0, e2)];
820
816
  }
821
- [U(767, 0, 0, "p[$0")](t2) {
822
- rt = true;
817
+ [it(0, 0, 817, "8F*z")](t2) {
818
+ ot = true;
823
819
  }
824
- async [K("NJx6", 0, 739)]() {
825
- return this[t2 = "*uos", e2 = 1050, U(e2 - 411, 0, 0, t2)](true);
820
+ async [it(0, 0, 832, "V87T")]() {
821
+ return this[t2 = "!hC)", e2 = -177, J(t2, 0, 0, 0, e2 - -1077)](true);
826
822
  var t2, e2;
827
823
  }
828
- async [K("kYqH", 0, 724)](t2, e2) {
829
- const n2 = await this[r2 = -96, o2 = "qs2)", U(r2 - -770, 0, 0, o2)]();
830
- var r2, o2, s2, i2;
831
- return await this[s2 = 1047, i2 = "z876", U(s2 - 384, 0, 0, i2)](true, t2, e2), n2;
824
+ async [J("AhQH", 0, 0, 0, 952)](t2, e2) {
825
+ const n2 = 168, r2 = 272, o2 = "bFUh", s2 = 319, i2 = "WH4#", a2 = await this[l2(n2, r2, 204, o2)]();
826
+ function l2(t3, e3, n3, r3, o3) {
827
+ return nt(0, 0, 0, r3, n3 - -904);
828
+ }
829
+ return await this[l2(0, 0, s2, i2)](true, t2, e2), a2;
832
830
  }
833
- async [Q(0, "0F9D", 0, 0, -81)]() {
834
- var t2, e2;
835
- return await $[t2 = -528, e2 = "ySX5", U(t2 - -1196, 0, 0, e2)]();
831
+ async [Y(0, 108, 0, "JwPI")]() {
832
+ const t2 = "PMZx", e2 = 832, n2 = 555;
833
+ var r2, o2;
834
+ return await $[r2 = t2, o2 = e2, Y(0, o2 - n2, 0, r2)]();
836
835
  }
837
836
  }
838
837
  const lt = new at(), ct = (t2, e2) => {
@@ -1622,7 +1621,7 @@ var Mt;
1622
1621
  }, Mt.simpleComparator = function(t2, e2) {
1623
1622
  return t2 > e2 ? 1 : t2 < e2 ? -1 : 0;
1624
1623
  };
1625
- const Nt = [-1, null], Tt = { done: false, value: [-1, null] };
1624
+ const Tt = [-1, null], Nt = { done: false, value: [-1, null] };
1626
1625
  var Ft;
1627
1626
  ((t2) => {
1628
1627
  t2.Builder = class {
@@ -1700,7 +1699,7 @@ var Ft;
1700
1699
  if (r3) {
1701
1700
  let t4;
1702
1701
  const i3 = r3.minor;
1703
- 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));
1702
+ r3 && r3.minor === n2 ? (s2 = r3, o2 = s2.span) : t4 = i3 > n2 ? e3.getPairOrNextHigher(n2, Tt) : e3.getPairOrNextLower(n2, Tt), t4 && (s2 = t4[1], t4[0] === n2 && (o2 = s2.span));
1704
1703
  }
1705
1704
  if (!o2) {
1706
1705
  this._majorMin = Math.min(this._majorMin, t3), o2 = [n2, [[t3, []]]];
@@ -1716,7 +1715,7 @@ var Ft;
1716
1715
  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;
1717
1716
  }
1718
1717
  build() {
1719
- const t3 = [], e3 = this._createList, n2 = this._minors.entries(void 0, Tt);
1718
+ const t3 = [], e3 = this._createList, n2 = this._minors.entries(void 0, Nt);
1720
1719
  let r2 = n2.next();
1721
1720
  for (; !r2.done; ) {
1722
1721
  const o2 = r2.value[1].span;
@@ -1771,7 +1770,7 @@ function zt(t2) {
1771
1770
  };
1772
1771
  }
1773
1772
  var Pt;
1774
- const Wt = { code: "en-US", formatDistance: (t2, e2, n2) => {
1773
+ const Ht = { code: "en-US", formatDistance: (t2, e2, n2) => {
1775
1774
  let r2;
1776
1775
  const o2 = kt[t2];
1777
1776
  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;
@@ -1793,7 +1792,7 @@ const Wt = { code: "en-US", formatDistance: (t2, e2, n2) => {
1793
1792
  if (!o2) return null;
1794
1793
  let s2 = Pt.valueCallback ? Pt.valueCallback(o2[0]) : o2[0];
1795
1794
  return s2 = e2.valueCallback ? e2.valueCallback(s2) : s2, { value: s2, rest: t2.slice(r2.length) };
1796
- }), era: zt({ 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: zt({ 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: zt({ 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: zt({ 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: zt({ 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) => {
1795
+ }), era: zt({ 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: zt({ 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: zt({ 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: zt({ 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: zt({ 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 } }, Wt = (t2, e2) => {
1797
1796
  switch (t2) {
1798
1797
  case "P":
1799
1798
  return e2.date({ width: "short" });
@@ -1817,7 +1816,7 @@ const Wt = { code: "en-US", formatDistance: (t2, e2, n2) => {
1817
1816
  }
1818
1817
  }, $t = { p: Vt, P: (t2, e2) => {
1819
1818
  const n2 = t2.match(/(P+)(p+)?/) || [], r2 = n2[1], o2 = n2[2];
1820
- if (!o2) return Ht(t2, e2);
1819
+ if (!o2) return Wt(t2, e2);
1821
1820
  let s2;
1822
1821
  switch (r2) {
1823
1822
  case "P":
@@ -1832,12 +1831,12 @@ const Wt = { code: "en-US", formatDistance: (t2, e2, n2) => {
1832
1831
  default:
1833
1832
  s2 = e2.dateTime({ width: "full" });
1834
1833
  }
1835
- return s2.replace("{{date}}", Ht(r2, e2)).replace("{{time}}", Vt(o2, e2));
1834
+ return s2.replace("{{date}}", Wt(r2, e2)).replace("{{time}}", Vt(o2, e2));
1836
1835
  } }, jt = /^D+$/, Gt = /^Y+$/, Ut = ["D", "DD", "YY", "YYYY"];
1837
- function qt(t2) {
1836
+ function Jt(t2) {
1838
1837
  return jt.test(t2);
1839
1838
  }
1840
- function Jt(t2) {
1839
+ function qt(t2) {
1841
1840
  return Gt.test(t2);
1842
1841
  }
1843
1842
  function Kt(t2, e2, n2) {
@@ -2042,7 +2041,7 @@ const Se = { y: new class extends oe {
2042
2041
  }
2043
2042
  }() }, we = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ye = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ee = /^'([^]*?)'?$/, Ce = /''/g, be = /\S/, ve = /[a-zA-Z]/;
2044
2043
  function xe(t2, e2, n2, r2) {
2045
- 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;
2044
+ const o2 = () => Yt(r2?.in || n2, NaN), s2 = Object.assign({}, Zt()), i2 = r2?.locale ?? s2.locale ?? Ht, 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;
2046
2045
  if (!e2) return t2 ? o2() : te(n2, r2?.in);
2047
2046
  const c2 = { firstWeekContainsDate: a2, weekStartsOn: l2, locale: i2 }, h2 = [new re(r2?.in, n2)], d2 = e2.match(ye).map((t3) => {
2048
2047
  const e3 = t3[0];
@@ -2052,7 +2051,7 @@ function xe(t2, e2, n2, r2) {
2052
2051
  return t3;
2053
2052
  }).join("").match(we), u2 = [];
2054
2053
  for (let n3 of d2) {
2055
- !r2?.useAdditionalWeekYearTokens && Jt(n3) && Kt(n3, e2, t2), !r2?.useAdditionalDayOfYearTokens && qt(n3) && Kt(n3, e2, t2);
2054
+ !r2?.useAdditionalWeekYearTokens && qt(n3) && Kt(n3, e2, t2), !r2?.useAdditionalDayOfYearTokens && Jt(n3) && Kt(n3, e2, t2);
2056
2055
  const s3 = n3[0], a3 = Se[s3];
2057
2056
  if (a3) {
2058
2057
  const { incompatibleTokens: e3 } = a3;
@@ -2099,11 +2098,11 @@ function Me(t2, e2) {
2099
2098
  for (var n2 = ""; n2.length < e2; ) n2 += t2;
2100
2099
  return n2;
2101
2100
  }
2102
- function Ne(t2) {
2101
+ function Te(t2) {
2103
2102
  for (var e2 = "", n2 = t2.length - 1; n2 >= 0; ) e2 += t2.charAt(n2--);
2104
2103
  return e2;
2105
2104
  }
2106
- function Te(t2, e2) {
2105
+ function Ne(t2, e2) {
2107
2106
  var n2 = "" + t2;
2108
2107
  return n2.length >= e2 ? n2 : Me("0", e2 - n2.length) + n2;
2109
2108
  }
@@ -2128,7 +2127,7 @@ function De(t2, e2) {
2128
2127
  function Be(t2, e2) {
2129
2128
  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));
2130
2129
  }
2131
- var Le = [["Sun", "Sunday"], ["Mon", "Monday"], ["Tue", "Tuesday"], ["Wed", "Wednesday"], ["Thu", "Thursday"], ["Fri", "Friday"], ["Sat", "Saturday"]], ze = [["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"]], Pe = { 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\\);_("$"* "-"??_);_(@_)' };
2130
+ var Le = [["Sun", "Sunday"], ["Mon", "Monday"], ["Tue", "Tuesday"], ["Wed", "Wednesday"], ["Thu", "Thursday"], ["Fri", "Friday"], ["Sat", "Saturday"]], ze = [["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"]], Pe = { 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"秒 "' }, He = { 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 }, We = { 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\\);_("$"* "-"??_);_(@_)' };
2132
2131
  function Ve(t2, e2, n2) {
2133
2132
  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;
2134
2133
  if (h2 > e2 && (c2 > e2 ? (h2 = l2, a2 = s2) : (h2 = c2, a2 = i2)), !n2) return [0, r2 * a2, h2];
@@ -2153,22 +2152,22 @@ function $e(t2, e2, n2) {
2153
2152
  return a2.y = i2[0], a2.m = i2[1], a2.d = i2[2], a2.S = o2 % 60, o2 = Math.floor(o2 / 60), a2.M = o2 % 60, o2 = Math.floor(o2 / 60), a2.H = o2, a2.q = s2, a2;
2154
2153
  }
2155
2154
  var je = new Date(1899, 11, 31, 0, 0, 0), Ge = je.getTime(), Ue = new Date(1900, 2, 1, 0, 0, 0);
2156
- function qe(t2, e2 = false) {
2155
+ function Je(t2, e2 = false) {
2157
2156
  var n2 = t2.getTime();
2158
2157
  return e2 ? n2 -= 1262304e5 : t2 >= Ue && (n2 += 864e5), (n2 - (Ge + 6e4 * (t2.getTimezoneOffset() - je.getTimezoneOffset()))) / 864e5;
2159
2158
  }
2160
- function Je(t2) {
2159
+ function qe(t2) {
2161
2160
  return -1 === t2.indexOf(".") ? t2 : t2.replace(/(?:\.0*|(\.\d*[1-9])0+)$/, "$1");
2162
2161
  }
2163
2162
  function Ke(t2) {
2164
2163
  var e2, n2 = Math.floor(Math.log(Math.abs(t2)) * Math.LOG10E);
2165
2164
  return e2 = n2 >= -4 && n2 <= -1 ? t2.toPrecision(10 + n2) : Math.abs(n2) <= 9 ? (function(t3) {
2166
- var e3 = t3 < 0 ? 12 : 11, n3 = Je(t3.toFixed(12));
2165
+ var e3 = t3 < 0 ? 12 : 11, n3 = qe(t3.toFixed(12));
2167
2166
  return n3.length <= e3 || (n3 = t3.toPrecision(10)).length <= e3 ? n3 : t3.toExponential(5);
2168
2167
  })(t2) : 10 === n2 ? t2.toFixed(10).substr(0, 12) : (function(t3) {
2169
- var e3 = Je(t3.toFixed(11));
2168
+ var e3 = qe(t3.toFixed(11));
2170
2169
  return e3.length > (t3 < 0 ? 12 : 11) || "0" === e3 || "-0" === e3 ? t3.toPrecision(6) : e3;
2171
- })(t2), Je((function(t3) {
2170
+ })(t2), qe((function(t3) {
2172
2171
  return -1 === t3.indexOf("E") ? t3 : t3.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/, "$1E").replace(/(E[+-])(\d)$/, "$10$2");
2173
2172
  })(e2.toUpperCase()));
2174
2173
  }
@@ -2184,7 +2183,7 @@ function Xe(t2, e2) {
2184
2183
  return "";
2185
2184
  case "object":
2186
2185
  if (null == t2) return "";
2187
- if (Re(t2)) return wn(14, qe(t2, e2 && e2.date1904), e2);
2186
+ if (Re(t2)) return wn(14, Je(t2, e2 && e2.date1904), e2);
2188
2187
  }
2189
2188
  throw new Error("unsupported value in General format: " + t2);
2190
2189
  }
@@ -2261,7 +2260,7 @@ function Ye(t2, e2, n2, r2) {
2261
2260
  break;
2262
2261
  case 115:
2263
2262
  if ("s" !== e2 && "ss" !== e2 && ".0" !== e2 && ".00" !== e2 && ".000" !== e2) throw new Error("bad second format: " + e2);
2264
- 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);
2263
+ 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 = Ne(i2, 2 + r2), "ss" === e2 ? s2.substr(0, 2) : "." + s2.substr(2, e2.length - 1))) : Ne(n2.S, e2.length);
2265
2264
  case 90:
2266
2265
  switch (e2) {
2267
2266
  case "[h]":
@@ -2284,7 +2283,7 @@ function Ye(t2, e2, n2, r2) {
2284
2283
  case 101:
2285
2284
  o2 = l2, c2 = 1;
2286
2285
  }
2287
- return c2 > 0 ? Te(o2, c2) : "";
2286
+ return c2 > 0 ? Ne(o2, c2) : "";
2288
2287
  }
2289
2288
  function Qe(t2) {
2290
2289
  if (t2.length <= 3) return t2;
@@ -2366,7 +2365,7 @@ function hn(t2, e2, n2) {
2366
2365
  if (e2.match(/^[#?]+$/)) return "0" === (o2 = De(n2, 0)) && (o2 = ""), o2.length > e2.length ? o2 : sn(e2.substr(0, e2.length - o2.length)) + o2;
2367
2366
  if (s2 = e2.match(en)) return (function(t3, e3, n3) {
2368
2367
  var r3 = parseInt(t3[4], 10), o3 = Math.round(e3 * r3), s3 = Math.floor(o3 / r3), i3 = o3 - s3 * r3, a3 = r3;
2369
- return n3 + (0 === s3 ? "" : "" + s3) + " " + (0 === i3 ? Me(" ", t3[1].length + 1 + t3[4].length) : Fe(i3, t3[1].length) + t3[2] + "/" + t3[3] + Te(a3, t3[4].length));
2368
+ return n3 + (0 === s3 ? "" : "" + s3) + " " + (0 === i3 ? Me(" ", t3[1].length + 1 + t3[4].length) : Fe(i3, t3[1].length) + t3[2] + "/" + t3[3] + Ne(a3, t3[4].length));
2370
2369
  })(s2, l2, c2);
2371
2370
  if (e2.match(/^#+0+$/)) return c2 + De(l2, e2.length - e2.indexOf("0"));
2372
2371
  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) {
@@ -2378,9 +2377,9 @@ function hn(t2, e2, n2) {
2378
2377
  if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Qe(De(l2, 0));
2379
2378
  if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + hn(t2, e2, -n2) : Qe("" + (Math.floor(n2) + (function(t3, e3) {
2380
2379
  return e3 < ("" + Math.round((t3 - Math.floor(t3)) * Math.pow(10, e3))).length ? 1 : 0;
2381
- })(n2, s2[1].length))) + "." + Te(cn(n2, s2[1].length), s2[1].length);
2380
+ })(n2, s2[1].length))) + "." + Ne(cn(n2, s2[1].length), s2[1].length);
2382
2381
  if (s2 = e2.match(/^#,#*,#0/)) return hn(t2, e2.replace(/^#,#*,/, ""), n2);
2383
- 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) {
2382
+ if (s2 = e2.match(/^([0#]+)(\\?-([0#]+))+$/)) return o2 = Te(hn(t2, e2.replace(/[\\-]/g, ""), n2)), i2 = 0, Te(Te(e2.replace(/\\/g, "")).replace(/[0#]/g, function(t3) {
2384
2383
  return i2 < o2.length ? o2.charAt(i2++) : "0" === t3 ? "0" : "";
2385
2384
  }));
2386
2385
  if (e2.match(on)) return "(" + (o2 = hn(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
@@ -2396,8 +2395,8 @@ function hn(t2, e2, n2) {
2396
2395
  if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return i2 = cn(n2, s2[1].length), n2 < 0 ? "-" + hn(t2, e2, -n2) : Qe((function(t3) {
2397
2396
  return t3 < 2147483647 && t3 > -2147483648 ? "" + (t3 >= 0 ? 0 | t3 : t3 - 1 | 0) : "" + Math.floor(t3);
2398
2397
  })(n2)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(t3) {
2399
- return "00," + (t3.length < 3 ? Te(0, 3 - t3.length) : "") + t3;
2400
- }) + "." + Te(i2, s2[1].length);
2398
+ return "00," + (t3.length < 3 ? Ne(0, 3 - t3.length) : "") + t3;
2399
+ }) + "." + Ne(i2, s2[1].length);
2401
2400
  switch (e2) {
2402
2401
  case "###,##0.00":
2403
2402
  return hn(t2, "#,##0.00", n2);
@@ -2447,20 +2446,20 @@ function un(t2, e2, n2) {
2447
2446
  if (-1 !== e2.indexOf("E")) return dn(e2, n2);
2448
2447
  if (36 === e2.charCodeAt(0)) return "$" + un(t2, e2.substr(" " === e2.charAt(1) ? 2 : 1), n2);
2449
2448
  var o2, s2, i2, a2, l2 = Math.abs(n2), c2 = n2 < 0 ? "-" : "";
2450
- if (e2.match(/^00+$/)) return c2 + Te(l2, e2.length);
2449
+ if (e2.match(/^00+$/)) return c2 + Ne(l2, e2.length);
2451
2450
  if (e2.match(/^[#?]+$/)) return o2 = "" + n2, 0 === n2 && (o2 = ""), o2.length > e2.length ? o2 : sn(e2.substr(0, e2.length - o2.length)) + o2;
2452
2451
  if (s2 = e2.match(en)) return (function(t3, e3, n3) {
2453
2452
  return n3 + (0 === e3 ? "" : "" + e3) + Me(" ", t3[1].length + 2 + t3[4].length);
2454
2453
  })(s2, l2, c2);
2455
- if (e2.match(/^#+0+$/)) return c2 + Te(l2, e2.length - e2.indexOf("0"));
2456
- 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
+ if (e2.match(/^#+0+$/)) return c2 + Ne(l2, e2.length - e2.indexOf("0"));
2455
+ if (s2 = e2.match(nn)) return o2 = ("" + n2).replace(/^([^.]+)$/, "." + sn(s2[2])).replace(/\.$/, "." + sn(s2[2])), o2 = Ne(Math.abs(n2), s2[1].length) + o2.replace(/\.(\d*)$/, function(t3, e3) {
2457
2456
  return "." + e3 + Me("0", sn(s2[2]).length - e3.length);
2458
2457
  }), o2 = -1 !== e2.indexOf("0.") ? o2 : o2.replace(/^0\./, "."), n2 < 0 ? "-" + o2 : o2;
2459
2458
  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." : ".");
2460
2459
  if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Qe("" + l2);
2461
2460
  if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + un(t2, e2, -n2) : Qe("" + n2) + "." + Me("0", s2[1].length);
2462
2461
  if (s2 = e2.match(/^#,#*,#0/)) return un(t2, e2.replace(/^#,#*,/, ""), n2);
2463
- 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) {
2462
+ if (s2 = e2.match(/^([0#]+)(\\?-([0#]+))+$/)) return o2 = Te(un(t2, e2.replace(/[\\-]/g, ""), n2)), i2 = 0, Te(Te(e2.replace(/\\/g, "")).replace(/[0#]/g, function(t3) {
2464
2463
  return i2 < o2.length ? o2.charAt(i2++) : "0" === t3 ? "0" : "";
2465
2464
  }));
2466
2465
  if (e2.match(on)) return "(" + (o2 = un(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
@@ -2474,8 +2473,8 @@ function un(t2, e2, n2) {
2474
2473
  return sn(e2.substr(0, d2) + o2 + e2.substr(e2.length - u2));
2475
2474
  }
2476
2475
  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) {
2477
- return "00," + (t3.length < 3 ? Te(0, 3 - t3.length) : "") + t3;
2478
- }) + "." + Te(0, s2[1].length);
2476
+ return "00," + (t3.length < 3 ? Ne(0, 3 - t3.length) : "") + t3;
2477
+ }) + "." + Ne(0, s2[1].length);
2479
2478
  switch (e2) {
2480
2479
  case "###,###":
2481
2480
  case "##,###":
@@ -2618,10 +2617,10 @@ function wn(t2, e2, n2) {
2618
2617
  r2 = "m/d/yy" === t2 && n2.dateNF ? n2.dateNF : t2;
2619
2618
  break;
2620
2619
  case "number":
2621
- null == (r2 = 14 === t2 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : Pe)[t2]) && (r2 = n2.table && n2.table[We[t2]] || Pe[We[t2]]), null == r2 && (r2 = He[t2] || "General");
2620
+ null == (r2 = 14 === t2 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : Pe)[t2]) && (r2 = n2.table && n2.table[He[t2]] || Pe[He[t2]]), null == r2 && (r2 = We[t2] || "General");
2622
2621
  }
2623
2622
  if (Be(r2, 0)) return Xe(e2, n2);
2624
- Re(e2) && (e2 = qe(e2, n2.date1904));
2623
+ Re(e2) && (e2 = Je(e2, n2.date1904));
2625
2624
  var s2 = (function(t3, e3) {
2626
2625
  var n3 = mn(t3), r3 = n3.length, o2 = n3[r3 - 1].indexOf("@");
2627
2626
  if (-1 !== o2 && "\\" === n3[r3 - 1][o2 - 1] && (o2 = -1), r3 < 4 && o2 > -1 && --r3, n3.length > 4) throw new Error("We can't find right format for |" + n3.join("|") + "|");
@@ -2865,11 +2864,11 @@ function yn(t2, e2) {
2865
2864
  }
2866
2865
  return Pe[e2] = t2, e2;
2867
2866
  }
2868
- const En = { format: wn, dateNumLocal: qe, load: yn, split_fmt: mn, _table: Pe, load_table: function(t2) {
2867
+ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: Pe, load_table: function(t2) {
2869
2868
  for (var e2 = 0; 392 !== e2; ++e2) void 0 !== t2[e2] && yn(t2[e2], e2);
2870
2869
  }, parse_date_code: $e, is_date: pn, get_table: function() {
2871
2870
  return En._table = Pe;
2872
- } }, 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"), Fn = (t2, e2, n2) => [parseFloat(t2), parseFloat(e2), parseFloat(n2)], kn = (t2, e2 = 255) => {
2871
+ } }, 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})$/), Tn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), Nn = new RegExp("^index(\\d+)$", "i"), Fn = (t2, e2, n2) => [parseFloat(t2), parseFloat(e2), parseFloat(n2)], kn = (t2, e2 = 255) => {
2873
2872
  const n2 = [...t2];
2874
2873
  for (var r2 = 0; r2 < t2.length; r2++) n2[r2] = t2[r2] / e2;
2875
2874
  return n2;
@@ -2883,13 +2882,13 @@ const En = { format: wn, dateNumLocal: qe, load: yn, split_fmt: mn, _table: Pe,
2883
2882
  return n2;
2884
2883
  }, Bn = (t2) => Math.max(0, Math.min(1, t2)), Ln = (t2) => ((t2 %= 360) < 0 && (t2 -= 360), t2), zn = (t2) => {
2885
2884
  const e2 = [...t2];
2886
- for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Wn(t2[n2]);
2885
+ for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Hn(t2[n2]);
2887
2886
  return e2;
2888
2887
  }, Pn = (t2) => {
2889
2888
  const e2 = [...t2];
2890
- for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Hn(t2[n2]);
2889
+ for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Wn(t2[n2]);
2891
2890
  return e2;
2892
- }, 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) => {
2891
+ }, Hn = (t2) => t2 < 0.04045 ? t2 / 12.92 : Math.pow((t2 + 0.055) / 1.055, 2.4), Wn = (t2) => t2 < 31308e-7 ? 12.92 * t2 : 1.055 * Math.pow(t2, 1 / 2.4) - 0.055, Vn = (t2) => {
2893
2892
  let e2 = t2[0], n2 = t2[1], r2 = t2[2];
2894
2893
  e2 %= 360, e2 /= 360, n2 /= 100, r2 /= 100;
2895
2894
  let o2 = r2 < 0.5 ? r2 * (1 + n2) : r2 + n2 - n2 * r2, s2 = 2 * r2 - o2;
@@ -2900,7 +2899,7 @@ const En = { format: wn, dateNumLocal: qe, load: yn, split_fmt: mn, _table: Pe,
2900
2899
  const a2 = (s2 + o2) / 2;
2901
2900
  let l2 = 0;
2902
2901
  return l2 = s2 === o2 ? 0 : a2 <= 0.5 ? (s2 - o2) / (s2 + o2) : (s2 - o2) / (2 - s2 - o2), [i2, 100 * l2, 100 * a2];
2903
- }, Gn = 0, Un = 1, qn = 2, Jn = 0, Kn = 1, Xn = 2, Yn = 0, Qn = 1, Zn = 2, tr = (t2, e2) => {
2902
+ }, Gn = 0, Un = 1, Jn = 2, qn = 0, Kn = 1, Xn = 2, Yn = 0, Qn = 1, Zn = 2, tr = (t2, e2) => {
2904
2903
  let n2 = e2 / 100;
2905
2904
  return ((t3, e3) => {
2906
2905
  let n3 = zn(t3);
@@ -2946,7 +2945,7 @@ const En = { format: wn, dateNumLocal: qe, load: yn, split_fmt: mn, _table: Pe,
2946
2945
  let i2 = Pn(o2);
2947
2946
  return i2 = Dn(i2), i2;
2948
2947
  }, lr = (t2) => {
2949
- let e2 = zn(t2), n2 = 0.213 * e2[Jn] + 0.715 * e2[Kn] + 0.072 * e2[Xn];
2948
+ let e2 = zn(t2), n2 = 0.213 * e2[qn] + 0.715 * e2[Kn] + 0.072 * e2[Xn];
2950
2949
  e2[0] = n2, e2[1] = n2, e2[2] = n2;
2951
2950
  let r2 = Pn(e2);
2952
2951
  return r2 = Dn(r2), r2;
@@ -2961,11 +2960,11 @@ const En = { format: wn, dateNumLocal: qe, load: yn, split_fmt: mn, _table: Pe,
2961
2960
  return n2[0] = r2 - n2[0], n2[1] = r2 - n2[1], n2[2] = r2 - n2[2], e2 && (n2 = Pn(n2)), n2 = Dn(n2, e2), n2;
2962
2961
  }, dr = (t2) => {
2963
2962
  const e2 = [0, 0, 0];
2964
- e2[0] = Hn(t2[0]), e2[1] = Hn(t2[1]), e2[2] = Hn(t2[2]);
2963
+ e2[0] = Wn(t2[0]), e2[1] = Wn(t2[1]), e2[2] = Wn(t2[2]);
2965
2964
  return Dn(e2);
2966
2965
  }, ur = (t2) => {
2967
2966
  const e2 = [0, 0, 0];
2968
- e2[0] = Wn(t2[0]), e2[1] = Wn(t2[1]), e2[2] = Wn(t2[2]);
2967
+ e2[0] = Hn(t2[0]), e2[1] = Hn(t2[1]), e2[2] = Hn(t2[2]);
2969
2968
  return Dn(e2);
2970
2969
  }, gr = (t2, e2, n2, r2 = null) => {
2971
2970
  const o2 = (t3) => {
@@ -3051,7 +3050,7 @@ for (let t2 = 0; t2 < Er.length; t2++) Cr.set(t2, yr(Er[t2]));
3051
3050
  Cr.set(-4105, null), Cr.set(-4142, null), Cr.set(64, yr("000000")), Cr.set(65, yr("FFFFFF")), Cr.set(81, yr("FFFFFF"));
3052
3051
  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" };
3053
3052
  let xr = null;
3054
- 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) => {
3053
+ const Ir = () => xr || (xr = Intl.DateTimeFormat().resolvedOptions().locale ?? "en-US", xr), Rr = /^\[\$-(.*?)\]/i, Ar = /^[0-9a-fA-F]+$/, Mr = En.split_fmt, Tr = (t2, e2, n2) => {
3055
3054
  const r2 = Rr.exec(t2);
3056
3055
  let o2 = Ir();
3057
3056
  if (r2 && r2[1]) {
@@ -3059,11 +3058,11 @@ const Ir = () => xr || (xr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
3059
3058
  Ar.test(t3) || t3.includes("-");
3060
3059
  }
3061
3060
  if (Fr[t2] && (t2 = Fr[t2]), "number" == typeof e2) {
3062
- const r3 = Tr(t2, e2, { locale: o2, ...n2 });
3061
+ const r3 = Nr(t2, e2, { locale: o2, ...n2 });
3063
3062
  if (null !== r3) return r3.fmt;
3064
3063
  }
3065
3064
  return En.format(t2, e2, n2);
3066
- }, Tr = (t2, e2, n2) => {
3065
+ }, Nr = (t2, e2, n2) => {
3067
3066
  if ("number" != typeof e2) return null;
3068
3067
  const r2 = eo(e2, n2?.date1904 ?? false), o2 = n2?.locale ?? Ir();
3069
3068
  let s2 = false, i2 = t2, a2 = -1;
@@ -3103,8 +3102,8 @@ const Ir = () => xr || (xr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
3103
3102
  void 0 !== n2 && (e2 = br(n2).toString());
3104
3103
  }
3105
3104
  return e2;
3106
- }, Dr = "=", Br = "<>", Lr = ">", zr = "<", Pr = ">=", Wr = "<=", Hr = /* @__PURE__ */ new Map();
3107
- Hr.set(Dr, (t2, e2) => t2 === e2), Hr.set(Br, (t2, e2) => t2 !== e2), Hr.set(Lr, (t2, e2) => t2 > e2), Hr.set(zr, (t2, e2) => t2 < e2), Hr.set(Pr, (t2, e2) => t2 >= e2), Hr.set(Wr, (t2, e2) => t2 <= e2);
3105
+ }, Dr = "=", Br = "<>", Lr = ">", zr = "<", Pr = ">=", Hr = "<=", Wr = /* @__PURE__ */ new Map();
3106
+ Wr.set(Dr, (t2, e2) => t2 === e2), Wr.set(Br, (t2, e2) => t2 !== e2), Wr.set(Lr, (t2, e2) => t2 > e2), Wr.set(zr, (t2, e2) => t2 < e2), Wr.set(Pr, (t2, e2) => t2 >= e2), Wr.set(Hr, (t2, e2) => t2 <= e2);
3108
3107
  const Vr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, $r = /(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)/i, jr = /\[(.*?)\]/g, Gr = (t2, e2) => {
3109
3108
  const n2 = { color: null, condition: null };
3110
3109
  let r2 = null, o2 = new RegExp(jr);
@@ -3141,12 +3140,12 @@ const Vr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, $r =
3141
3140
  let o2 = r2?.condition ?? void 0;
3142
3141
  if (3 === t3) return "string" == typeof e2 && r2?.color ? r2.color : null;
3143
3142
  if (o2 && "number" == typeof e2) {
3144
- if (Hr.get(o2.op)(e2, o2.comp)) return r2?.color ?? null;
3143
+ if (Wr.get(o2.op)(e2, o2.comp)) return r2?.color ?? null;
3145
3144
  }
3146
3145
  }
3147
- }, qr = (t2) => {
3146
+ }, Jr = (t2) => {
3148
3147
  if (t2 === vr.MediumDate || t2 === vr.LongDate || t2 === vr.ShortDate || t2 === vr.MediumTime || t2 === vr.LongTime || t2 === vr.ShortTime) return true;
3149
- }, Jr = (t2, e2) => t2 === e2 ? 0 : qr(t2) ? 1 : qr(e2) ? -1 : t2 === vr.Percentage ? 1 : e2 === vr.Percentage ? -1 : t2 === vr.Currency || t2 === vr.Accounting ? 1 : e2 === vr.Currency || e2 === vr.Accounting ? -1 : 0, Kr = (t2) => (t2 instanceof Date || "[object Date]" === Object.prototype.toString.call(t2)) && !isNaN(t2.getTime()), Xr = (t2, e2, n2) => {
3148
+ }, qr = (t2, e2) => t2 === e2 ? 0 : Jr(t2) ? 1 : Jr(e2) ? -1 : t2 === vr.Percentage ? 1 : e2 === vr.Percentage ? -1 : t2 === vr.Currency || t2 === vr.Accounting ? 1 : e2 === vr.Currency || e2 === vr.Accounting ? -1 : 0, Kr = (t2) => (t2 instanceof Date || "[object Date]" === Object.prototype.toString.call(t2)) && !isNaN(t2.getTime()), Xr = (t2, e2, n2) => {
3150
3149
  return "month" === n2 || "months" === n2 || "m" === n2 ? (r2 = t2, 12 * ((o2 = e2).getUTCFullYear() - r2.getUTCFullYear()) + (o2.getUTCMonth() - r2.getUTCMonth()) + (o2.getUTCDate() - r2.getUTCDate() < 0 ? -1 : 0)) : "year" === n2 || "years" === n2 || "y" === n2 ? ((t3, e3) => Math.abs(e3.getFullYear() - t3.getFullYear()))(t2, e2) : "day" === n2 || "days" === n2 || "d" === n2 ? ((t3, e3) => Math.floor((Date.UTC(e3.getFullYear(), e3.getMonth(), e3.getDate()) - Date.UTC(t3.getFullYear(), t3.getMonth(), t3.getDate())) / 864e5))(t2, e2) : void console.warn("invalid unit" + n2);
3151
3150
  var r2, o2;
3152
3151
  }, Yr = "d", Qr = "m", Zr = "y", to = (t2, e2, n2) => {
@@ -3278,7 +3277,7 @@ const Vr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, $r =
3278
3277
  c2.setFullYear(t4);
3279
3278
  }
3280
3279
  if (oo[t3].todaysYear && c2.setFullYear(o2), h2 = En.dateNumLocal(c2, e2), oo[t3].parseFormat.indexOf("EEE") > -1) {
3281
- const t4 = Nr("ddd", h2, { date1904: e2 });
3280
+ const t4 = Tr("ddd", h2, { date1904: e2 });
3282
3281
  if (!n3.toLowerCase().includes(t4.toLowerCase())) return null;
3283
3282
  }
3284
3283
  let r3 = oo[t3].numberFormat;
@@ -3328,9 +3327,9 @@ const Co = (t2, e2, n2 = 1e3) => {
3328
3327
  if (void 0 === t2) return 0;
3329
3328
  let e2 = t2.toString().split(".");
3330
3329
  return e2.length <= 1 ? 0 : e2[1].length || 0;
3331
- }, 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(), Fo = (t2) => t2.replace(Ao, "$1"), ko = (t2, e2 = "'") => `${e2}${t2}${e2}`, Oo = (t2, e2 = void 0, n2 = void 0) => {
3332
- let r2 = To;
3333
- return void 0 === e2 && void 0 === n2 || (r2 = No(e2, n2)), t2.split(r2);
3330
+ }, 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"), To = (t2 = ",", e2 = "'") => new RegExp(`\\s*${t2}\\s*(?=(?:[^${e2}]*${e2}[^${e2}]*${e2})*[^${e2}]*$)`, "g"), No = To(), Fo = (t2) => t2.replace(Ao, "$1"), ko = (t2, e2 = "'") => `${e2}${t2}${e2}`, Oo = (t2, e2 = void 0, n2 = void 0) => {
3331
+ let r2 = No;
3332
+ return void 0 === e2 && void 0 === n2 || (r2 = To(e2, n2)), t2.split(r2);
3334
3333
  }, Do = (t2) => {
3335
3334
  let e2;
3336
3335
  try {
@@ -3339,17 +3338,17 @@ const Co = (t2, e2, n2 = 1e3) => {
3339
3338
  return false;
3340
3339
  }
3341
3340
  return ("http:" === e2.protocol || "https:" === e2.protocol) && Mo.test(t2);
3342
- }, Bo = new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/i), Lo = (t2) => !!t2.toLowerCase().startsWith("mailto:") || Bo.test(t2), zo = (t2) => ((t2 >= 26 ? zo((t2 / 26 | 0) - 1) : "") + "abcdefghijklmnopqrstuvwxyz"[t2 % 26 | 0]).toUpperCase(), Po = 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) => {
3341
+ }, Bo = new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/i), Lo = (t2) => !!t2.toLowerCase().startsWith("mailto:") || Bo.test(t2), zo = (t2) => ((t2 >= 26 ? zo((t2 / 26 | 0) - 1) : "") + "abcdefghijklmnopqrstuvwxyz"[t2 % 26 | 0]).toUpperCase(), Po = Object.freeze(Object.defineProperty({ __proto__: null, DefaultUnQuoteRegEx: No, camelToSnake: (t2) => t2 ? t2.replace(/[A-Z]/g, (t3) => `_${t3.toLowerCase()}`) : t2, capitalize: bo, clampString: Io, countDecimals: Ro, findValidTextValue: Co, getBaseName: (t2, e2 = false) => {
3343
3342
  if (!t2 || "string" != typeof t2) return "";
3344
3343
  const n2 = t2.split(/[\\/]/).pop() || "";
3345
3344
  if ("" === n2) return "";
3346
3345
  const r2 = vo(n2), o2 = 0 === r2.length ? n2 : n2.slice(0, n2.length - r2.length - 1);
3347
3346
  return e2 ? bo(o2, true) : o2;
3348
- }, getFileNameExtension: vo, isQuoted: (t2) => t2 && t2.length > 1 && Ao.test(t2) && t2[0] === t2[t2.length - 1], isValidEmail: Lo, isValidHttpUrl: Do, numberToAlphabet: zo, quote: ko, snakeToCamel: xo, splitUnquoted: Oo, unquote: Fo }, Symbol.toStringTag, { value: "Module" })), Wo = (t2, e2, n2, r2 = null) => {
3347
+ }, getFileNameExtension: vo, isQuoted: (t2) => t2 && t2.length > 1 && Ao.test(t2) && t2[0] === t2[t2.length - 1], isValidEmail: Lo, isValidHttpUrl: Do, numberToAlphabet: zo, quote: ko, snakeToCamel: xo, splitUnquoted: Oo, unquote: Fo }, Symbol.toStringTag, { value: "Module" })), Ho = (t2, e2, n2, r2 = null) => {
3349
3348
  const o2 = (e2 || 11 * Ko.getDeviceScale()) / Ko.getDeviceScale(), s2 = r2?.letterSpacing || 0, i2 = t2.length;
3350
3349
  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));
3351
3350
  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 };
3352
- }, Ho = () => Wo;
3351
+ }, Wo = () => Ho;
3353
3352
  let Vo = "./packages/sdk/src/__tests__/fonts/";
3354
3353
  const $o = /* @__PURE__ */ new Map(), jo = /* @__PURE__ */ new Set(), Go = (t2, e2, n2, r2 = null) => {
3355
3354
  const o2 = e2, s2 = Vo + n2.toLowerCase() + ".ttf";
@@ -3362,7 +3361,7 @@ const $o = /* @__PURE__ */ new Map(), jo = /* @__PURE__ */ new Set(), Go = (t2,
3362
3361
  i2 = R(Vo + "calibri.ttf");
3363
3362
  } catch (t3) {
3364
3363
  }
3365
- if (!i2) return jo.has(s2) || jo.add(s2), Ho().call(null, t2, e2, n2, r2);
3364
+ if (!i2) return jo.has(s2) || jo.add(s2), Wo().call(null, t2, e2, n2, r2);
3366
3365
  const a2 = `${s2}${t2}${o2}`;
3367
3366
  let l2 = $o.get(a2);
3368
3367
  l2 || (l2 = i2.layout(t2), t2.length < 2 && $o.set(a2, l2));
@@ -3379,19 +3378,19 @@ const $o = /* @__PURE__ */ new Map(), jo = /* @__PURE__ */ new Set(), Go = (t2,
3379
3378
  return _2 = _2 / i2.unitsPerEm * c2, { width: h2, lineHeight: m2, baseline: f2, underlinePosition: p2, underlineThickness: _2, lineGap: 0, actualBoundingBoxAscent: 0, actualBoundingBoxDescent: 0, actualBoundingBoxLeft: 0, actualBoundingBoxRight: 0, alphabeticBaseline: 0, emHeightAscent: 0, emHeightDescent: 0, fontBoundingBoxAscent: 0, fontBoundingBoxDescent: 0, hangingBaseline: 0, ideographicBaseline: 0 };
3380
3379
  };
3381
3380
  let Uo = null;
3382
- const qo = () => 96 / 72;
3383
- let Jo = null;
3381
+ const Jo = () => 96 / 72;
3382
+ let qo = null;
3384
3383
  var Ko, Xo;
3385
3384
  (Xo = Ko || (Ko = {})).Style = { Normal: "normal", Italic: "italic" }, Xo.Scheme = { Major: "major", Minor: "minor", None: "none" }, Xo.UnderlineStyle = { None: "none", Double: "double", DoubleAccounting: "doubleAccounting", Single: "single", SingleAccounting: "singleAccounting" }, Xo.VerticalAlignment = { Baseline: "baseline", Sub: "sub", Super: "super" }, Xo.setSharedMeasurer = (t2) => {
3386
- Jo = t2;
3387
- }, Xo.getSharedMeasurer = () => Jo || (Jo = (() => {
3385
+ qo = t2;
3386
+ }, Xo.getSharedMeasurer = () => qo || (qo = (() => {
3388
3387
  if (Uo) return Uo;
3389
3388
  try {
3390
3389
  Uo = Go;
3391
3390
  } catch {
3392
3391
  }
3393
- return Uo || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), Uo = Ho()), Uo;
3394
- })(), Jo), Xo.getDeviceScale = () => qo(), Xo.getPanoseFallback = (t2) => {
3392
+ return Uo || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), Uo = Wo()), Uo;
3393
+ })(), qo), Xo.getDeviceScale = () => Jo(), Xo.getPanoseFallback = (t2) => {
3395
3394
  const e2 = [], n2 = t2.length;
3396
3395
  for (let r3 = 0; r3 < n2; r3 += 2) e2.push(parseInt(t2.substring(r3, r3 + 2), 16));
3397
3396
  const r2 = e2[0], o2 = e2[1], s2 = e2[3];
@@ -3911,7 +3910,7 @@ const Rs = (t2, e2 = false) => {
3911
3910
  }, 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) => {
3912
3911
  const e2 = 0 === t2.length;
3913
3912
  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 };
3914
- }, Ns = (t2, e2) => {
3913
+ }, Ts = (t2, e2) => {
3915
3914
  const n2 = e2.run, r2 = n2.min, s2 = n2.max;
3916
3915
  if (t2 >= r2 && t2 <= s2) return n2.value;
3917
3916
  let i2 = e2.index;
@@ -3934,7 +3933,7 @@ const Rs = (t2, e2 = false) => {
3934
3933
  return n2.value = t3, t3;
3935
3934
  }
3936
3935
  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;
3937
- }, Ts = function(t2, e2, n2, r2) {
3936
+ }, Ns = function(t2, e2, n2, r2) {
3938
3937
  if (0 === t2.length) {
3939
3938
  if (null != n2 || null != r2) {
3940
3939
  const t3 = e2({ min: n2 ?? r2, max: r2 ?? n2 });
@@ -4210,7 +4209,7 @@ var ks, Os, Ds, Bs, Ls, zs;
4210
4209
  }
4211
4210
  const f2 = Ms(a2);
4212
4211
  return (t4) => {
4213
- const e4 = t4 >= 0, n4 = Math.abs(t4), o4 = Ns(n4 % r3, f2);
4212
+ const e4 = t4 >= 0, n4 = Math.abs(t4), o4 = Ts(n4 % r3, f2);
4214
4213
  if (!o4) return null;
4215
4214
  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));
4216
4215
  let c3 = t4 + (e4 ? -l3 : l3);
@@ -4231,7 +4230,7 @@ var ks, Os, Ds, Bs, Ls, zs;
4231
4230
  };
4232
4231
  })(ks || (ks = {})), Os || (Os = {}), (Bs = Ds || (Ds = {})).Type = { None: "none", Solid: "solid", Gradient: "gradient", Pattern: "pattern", Image: "pattern", Background: "background", Group: "group", Custom: "custom" }, Bs.GradientType = { Linear: "linear", Path: "path", Circular: "circular", Rect: "rect" }, Bs.TileMirror = { None: "none", Vertical: "v", Horizontal: "h", Both: "b" }, Bs.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" }, (zs = Ls || (Ls = {})).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" }, zs.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" }, zs.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" }, zs.Type = { Scheme: "scheme", Named: "named", Index: "index", HSL: "hsl", RGB: "rgb", LRGB: "lrgb", Hex: "hex" };
4233
4232
  const Ps = [[4290032820, 1, Ls.Named.ActiveBorder, true], [4288263377, 2, Ls.Named.ActiveCaption, true], [4278190080, 3, Ls.Named.CaptionText, true], [4289440683, 4, Ls.Named.AppWorkspace, true], [4293980400, 5, Ls.Named.BtnFace, true], [4285098345, 6, Ls.Named.BtnShadow, true], [4278190080, 7, Ls.Named.DkShadow3d, true], [4293125091, 8, Ls.Named.BtnHighlight, true], [4293125091, 9, Ls.Named.Light3d, true], [4278190080, 10, Ls.Named.BtnText, true], [4278190080, 11, Ls.Named.Background, true], [4285361517, 12, Ls.Named.GrayText, true], [4281571839, 13, Ls.Named.Highlight, true], [4294967295, 14, Ls.Named.HighlightText, true], [4278216396, 15, Ls.Named.HotLight, true], [4294244348, 16, Ls.Named.InactiveBorder, true], [4290760155, 17, Ls.Named.InactiveCaption, true], [4278190080, 18, Ls.Named.InactiveCaptionText, true], [4294967265, 19, Ls.Named.InfoBk, true], [4278190080, 20, Ls.Named.InfoText, true], [4293980400, 21, Ls.Named.Menu, true], [4278190080, 22, Ls.Named.MenuText, true], [4291348680, 23, Ls.Named.ScrollBar, true], [4294967295, 24, Ls.Named.Window, true], [4284769380, 25, Ls.Named.WindowFrame, true], [4278190080, 26, Ls.Named.WindowText, true], [16777215, 27, Ls.Named.Transparent], [4293982463, 28, Ls.Named.AliceBlue], [4294634455, 29, Ls.Named.AntiqueWhite], [4278255615, 30, Ls.Named.Aqua], [4286578644, 31, Ls.Named.Aquamarine], [4293984255, 32, Ls.Named.Azure], [4294309340, 33, Ls.Named.Beige], [4294960324, 34, Ls.Named.Bisque], [4278190080, 35, Ls.Named.Black], [4294962125, 36, Ls.Named.BlanchedAlmond], [4278190335, 37, Ls.Named.Blue], [4287245282, 38, Ls.Named.BlueViolet], [4289014314, 39, Ls.Named.Brown], [4292786311, 40, Ls.Named.BurlyWood], [4284456608, 41, Ls.Named.CadetBlue], [4286578432, 42, Ls.Named.Chartreuse], [4291979550, 43, Ls.Named.Chocolate], [4294934352, 44, Ls.Named.Coral], [4284782061, 45, Ls.Named.CornflowerBlue], [4294965468, 46, Ls.Named.Cornsilk], [4292613180, 47, Ls.Named.Crimson], [4278255615, 48, Ls.Named.Cyan], [4278190219, 49, Ls.Named.DkBlue], [4278225803, 50, Ls.Named.DkCyan], [4290283019, 51, Ls.Named.DkGoldenrod], [4289309097, 52, Ls.Named.DkGray], [4278215680, 53, Ls.Named.DkGreen], [4290623339, 54, Ls.Named.DkKhaki], [4287299723, 55, Ls.Named.DkMagenta], [4283788079, 56, Ls.Named.DkOliveGreen], [4294937600, 57, Ls.Named.DkOrange], [4288230092, 58, Ls.Named.DkOrchid], [4287299584, 59, Ls.Named.DkRed], [4293498490, 60, Ls.Named.DkSalmon], [4287609995, 61, Ls.Named.DkSeaGreen], [4282924427, 62, Ls.Named.DkSlateBlue], [4281290575, 63, Ls.Named.DkSlateGray], [4278243025, 64, Ls.Named.DkTurquoise], [4287889619, 65, Ls.Named.DkViolet], [4294907027, 66, Ls.Named.DeepPink], [4278239231, 67, Ls.Named.DeepSkyBlue], [4285098345, 68, Ls.Named.DimGray], [4280193279, 69, Ls.Named.DodgerBlue], [4289864226, 70, Ls.Named.Firebrick], [4294966e3, 71, Ls.Named.FloralWhite], [4280453922, 72, Ls.Named.ForestGreen], [4294902015, 73, Ls.Named.Fuchsia], [4292664540, 74, Ls.Named.Gainsboro], [4294506751, 75, Ls.Named.GhostWhite], [4294956800, 76, Ls.Named.Gold], [4292519200, 77, Ls.Named.Goldenrod], [4286611584, 78, Ls.Named.Gray], [4278222848, 79, Ls.Named.Green], [4289593135, 80, Ls.Named.GreenYellow], [4293984240, 81, Ls.Named.Honeydew], [4294928820, 82, Ls.Named.HotPink], [4291648604, 83, Ls.Named.IndianRed], [4283105410, 84, Ls.Named.Indigo], [4294967280, 85, Ls.Named.Ivory], [4293977740, 86, Ls.Named.Khaki], [4293322490, 87, Ls.Named.Lavender], [4294963445, 88, Ls.Named.LavenderBlush], [4286381056, 89, Ls.Named.LawnGreen], [4294965965, 90, Ls.Named.LemonChiffon], [4289583334, 91, Ls.Named.LtBlue], [4293951616, 92, Ls.Named.LtCoral], [4292935679, 93, Ls.Named.LtCyan], [4294638200, 94, Ls.Named.LtGoldenrodYellow], [4292072403, 95, Ls.Named.LtGray], [4287688336, 96, Ls.Named.LtGreen], [4294948545, 97, Ls.Named.LtPink], [4294942842, 98, Ls.Named.LtSalmon], [4280332970, 99, Ls.Named.LtSeaGreen], [4287090426, 100, Ls.Named.LtSkyBlue], [4286023833, 101, Ls.Named.LtSlateGray], [4289774814, 102, Ls.Named.LtSteelBlue], [4294967264, 103, Ls.Named.LtYellow], [4278255360, 104, Ls.Named.Lime], [4281519410, 105, Ls.Named.LimeGreen], [4294635750, 106, Ls.Named.Linen], [4294902015, 107, Ls.Named.Magenta], [4286578688, 108, Ls.Named.Maroon], [4284927402, 109, Ls.Named.MedAquamarine], [4278190285, 110, Ls.Named.MedBlue], [4290401747, 111, Ls.Named.MedOrchid], [4287852763, 112, Ls.Named.MedPurple], [4282168177, 113, Ls.Named.MedSeaGreen], [4286277870, 114, Ls.Named.MedSlateBlue], [4278254234, 115, Ls.Named.MedSpringGreen], [4282962380, 116, Ls.Named.MedTurquoise], [4291237253, 117, Ls.Named.MedVioletRed], [4279834992, 118, Ls.Named.MidnightBlue], [4294311930, 119, Ls.Named.MintCream], [4294960353, 120, Ls.Named.MistyRose], [4294960309, 121, Ls.Named.Moccasin], [4294958765, 122, Ls.Named.NavajoWhite], [4278190208, 123, Ls.Named.Navy], [4294833638, 124, Ls.Named.OldLace], [4286611456, 125, Ls.Named.Olive], [4285238819, 126, Ls.Named.OliveDrab], [4294944e3, 127, Ls.Named.Orange], [4294919424, 128, Ls.Named.OrangeRed], [4292505814, 129, Ls.Named.Orchid], [4293847210, 130, Ls.Named.PaleGoldenrod], [4288215960, 131, Ls.Named.PaleGreen], [4289720046, 132, Ls.Named.PaleTurquoise], [4292571283, 133, Ls.Named.PaleVioletRed], [4294963157, 134, Ls.Named.PapayaWhip], [4294957753, 135, Ls.Named.PeachPuff], [4291659071, 136, Ls.Named.Peru], [4294951115, 137, Ls.Named.Pink], [4292714717, 138, Ls.Named.Plum], [4289781990, 139, Ls.Named.PowderBlue], [4286578816, 140, Ls.Named.Purple], [4294901760, 141, Ls.Named.Red], [4290547599, 142, Ls.Named.RosyBrown], [4282477025, 143, Ls.Named.RoyalBlue], [4287317267, 144, Ls.Named.SaddleBrown], [4294606962, 145, Ls.Named.Salmon], [4294222944, 146, Ls.Named.SandyBrown], [4281240407, 147, Ls.Named.SeaGreen], [4294964718, 148, Ls.Named.SeaShell], [4288696877, 149, Ls.Named.Sienna], [4290822336, 150, Ls.Named.Silver], [4287090411, 151, Ls.Named.SkyBlue], [4285160141, 152, Ls.Named.SlateBlue], [4285563024, 153, Ls.Named.SlateGray], [4294966010, 154, Ls.Named.Snow], [4278255487, 155, Ls.Named.SpringGreen], [4282811060, 156, Ls.Named.SteelBlue], [4291998860, 157, Ls.Named.Tan], [4278222976, 158, Ls.Named.Teal], [4292394968, 159, Ls.Named.Thistle], [4294927175, 160, Ls.Named.Tomato], [4282441936, 161, Ls.Named.Turquoise], [4293821166, 162, Ls.Named.Violet], [4294303411, 163, Ls.Named.Wheat], [4294967295, 164, Ls.Named.White], [4294309365, 165, Ls.Named.WhiteSmoke], [4294967040, 166, Ls.Named.Yellow], [4288335154, 167, Ls.Named.YellowGreen], [4293980400, 168, Ls.Named.ButtonFace], [4294967295, 169, Ls.Named.ButtonHighlight], [4288716960, 170, Ls.Named.ButtonShadow], [4290367978, 171, Ls.Named.GradientActiveCaption], [4292338930, 172, Ls.Named.GradientInactiveCaption], [4293980400, 173, Ls.Named.MenuBar], [4281571839, 174, Ls.Named.MenuHighlight]];
4234
- const Ws = new class {
4233
+ const Hs = new class {
4235
4234
  constructor() {
4236
4235
  this._lookupByName = /* @__PURE__ */ new Map();
4237
4236
  for (let t2 = 0; t2 < Ps.length; t2++) {
@@ -4242,11 +4241,11 @@ const Ws = new class {
4242
4241
  valueOfName(t2) {
4243
4242
  return this._lookupByName.get(t2 ? t2.toLowerCase() : "transparent");
4244
4243
  }
4245
- }(), Hs = [{ scheme: Ls.Scheme.Tx1, description: "First Text Color" }, { scheme: Ls.Scheme.Tx2, description: "Second Text Color" }, { scheme: Ls.Scheme.Bg1, description: "First Background Color" }, { scheme: Ls.Scheme.Bg2, description: "Second Background Color" }, { scheme: Ls.Scheme.Accent1, description: "Accent 1" }, { scheme: Ls.Scheme.Accent2, description: "Accent 2" }, { scheme: Ls.Scheme.Accent3, description: "Accent 3" }, { scheme: Ls.Scheme.Accent4, description: "Accent 4" }, { scheme: Ls.Scheme.Accent5, description: "Accent 5" }, { scheme: Ls.Scheme.Accent6, description: "Accent 6" }, { scheme: Ls.Scheme.Hlink, description: "Hyperlink" }, { scheme: Ls.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();
4246
- for (let t2 = 0; t2 < Hs.length; t2++) Vs.set(Hs[t2].scheme.toLowerCase(), Hs[t2]);
4244
+ }(), Ws = [{ scheme: Ls.Scheme.Tx1, description: "First Text Color" }, { scheme: Ls.Scheme.Tx2, description: "Second Text Color" }, { scheme: Ls.Scheme.Bg1, description: "First Background Color" }, { scheme: Ls.Scheme.Bg2, description: "Second Background Color" }, { scheme: Ls.Scheme.Accent1, description: "Accent 1" }, { scheme: Ls.Scheme.Accent2, description: "Accent 2" }, { scheme: Ls.Scheme.Accent3, description: "Accent 3" }, { scheme: Ls.Scheme.Accent4, description: "Accent 4" }, { scheme: Ls.Scheme.Accent5, description: "Accent 5" }, { scheme: Ls.Scheme.Accent6, description: "Accent 6" }, { scheme: Ls.Scheme.Hlink, description: "Hyperlink" }, { scheme: Ls.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();
4245
+ for (let t2 = 0; t2 < Ws.length; t2++) Vs.set(Ws[t2].scheme.toLowerCase(), Ws[t2]);
4247
4246
  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) {
4248
4247
  let o2 = $s(((t3) => {
4249
- let e3 = Ws.valueOfName(t3);
4248
+ let e3 = Hs.valueOfName(t3);
4250
4249
  return e3 ? new _r.RGBA(e3.rgbaColor.r, e3.rgbaColor.g, e3.rgbaColor.b, e3.rgbaColor.a) : null;
4251
4250
  })(t2)), s2 = null, i2 = null, a2 = null;
4252
4251
  if (null === o2 && (l2 = t2, Vs.get(l2.toLowerCase()))) {
@@ -4255,7 +4254,7 @@ const $s = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
4255
4254
  }
4256
4255
  var l2;
4257
4256
  if (null === o2) {
4258
- let e3 = t2.match(Mn) || t2.match(Nn);
4257
+ let e3 = t2.match(Mn) || t2.match(Tn);
4259
4258
  if (e3) {
4260
4259
  let t3, n3 = 1;
4261
4260
  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 = Bn(parseInt(e3[1], 16) / 255)), t3 = kn(t3), t3 = Dn(t3), o2 = { srgb: t3, alpha: n3 }, a2 = Ls.Type.Hex;
@@ -4283,7 +4282,7 @@ const $s = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
4283
4282
  }
4284
4283
  }
4285
4284
  if (null === o2) {
4286
- let e3 = t2.match(Tn);
4285
+ let e3 = t2.match(Nn);
4287
4286
  if (e3) {
4288
4287
  const t3 = parseInt(e3[1]);
4289
4288
  let r3 = n2?.(t3) ?? br(t3);
@@ -4294,7 +4293,7 @@ const $s = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
4294
4293
  return { srgbAlpha: o2, key: s2, color: i2, type: a2 };
4295
4294
  }, Gs = /* @__PURE__ */ new Map(), Us = Object.keys(Ls.AdjustmentType);
4296
4295
  for (let t2 = 0; t2 < Us.length; t2++) Gs.set(Ls.AdjustmentType[Us[t2]].toLowerCase(), Ls.AdjustmentType[Us[t2]]);
4297
- const qs = new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), Js = new RegExp("\\s*[,]\\s*|\\s+");
4296
+ const Js = new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), qs = new RegExp("\\s*[,]\\s*|\\s+");
4298
4297
  let Ks = null;
4299
4298
  const Xs = { [Ls.Scheme.Bg1]: "window", [Ls.Scheme.Bg2]: "E7E6E6", [Ls.Scheme.Tx1]: "windowText", [Ls.Scheme.Tx2]: "44546A", [Ls.Scheme.Accent1]: "4472C4", [Ls.Scheme.Accent2]: "ED7D31", [Ls.Scheme.Accent3]: "A5A5A5", [Ls.Scheme.Accent4]: "FFC000", [Ls.Scheme.Accent5]: "5B9BD5", [Ls.Scheme.Accent6]: "70AD47", [Ls.Scheme.Hlink]: "0563C1", [Ls.Scheme.FolHlink]: "954F72" };
4300
4299
  class Ys {
@@ -4310,9 +4309,9 @@ class Ys {
4310
4309
  }
4311
4310
  _parse(t2) {
4312
4311
  let e2 = null, n2 = t2.toLowerCase().trim();
4313
- const r2 = n2.split(qs);
4312
+ const r2 = n2.split(Js);
4314
4313
  if (r2 && (e2 = r2[0], n2 = n2.substring(e2.length, n2.length).trim()), !e2) throw new Error("no color key found");
4315
- const o2 = [], s2 = n2.split(Js);
4314
+ const o2 = [], s2 = n2.split(qs);
4316
4315
  for (let t3 = 0; t3 < s2.length; t3++) {
4317
4316
  const e3 = s2[t3];
4318
4317
  if (!e3) continue;
@@ -4343,7 +4342,7 @@ class Ys {
4343
4342
  })(n2, 180), n2 = hr(n2, false);
4344
4343
  let r2 = zn(n2);
4345
4344
  const o2 = jn(r2);
4346
- if (o2[qn] = 0.95 * o2[qn], r2 = Vn(o2), n2 = Pn(r2), n2 = On(n2), n2 = Dn(n2, false), t2) return new _r.RGBA(n2[0], n2[1], n2[2], e2.alpha);
4345
+ if (o2[Jn] = 0.95 * o2[Jn], r2 = Vn(o2), n2 = Pn(r2), n2 = On(n2), n2 = Dn(n2, false), t2) return new _r.RGBA(n2[0], n2[1], n2[2], e2.alpha);
4347
4346
  const s2 = jn(zn(n2));
4348
4347
  return new _r.HSLA(s2[0], s2[1], s2[2], e2.alpha);
4349
4348
  }
@@ -4358,7 +4357,7 @@ class Ys {
4358
4357
  let n3 = [...t3.srgb], r3 = void 0 !== t3.alpha ? t3.alpha : 1;
4359
4358
  for (var o2 = 0; e3 && o2 < e3.length; o2++) {
4360
4359
  const t4 = e3[o2], s2 = Object.keys(t4)[0], i2 = t4[s2];
4361
- s2 === Ls.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.Hue ? n3 = or(Gn, n3, i2) : s2 === Ls.AdjustmentType.Sat ? n3 = or(Un, n3, i2) : s2 === Ls.AdjustmentType.Lum ? n3 = or(qn, n3, i2) : s2 === Ls.AdjustmentType.HueOff ? n3 = sr(Gn, n3, i2) : s2 === Ls.AdjustmentType.SatOff ? n3 = sr(Un, n3, i2) : s2 === Ls.AdjustmentType.LumOff ? n3 = sr(qn, n3, i2) : s2 === Ls.AdjustmentType.HueMod ? n3 = ir(Gn, n3, i2) : s2 === Ls.AdjustmentType.SatMod ? n3 = ir(Un, n3, i2) : s2 === Ls.AdjustmentType.LumMod ? n3 = ir(qn, n3, i2) : s2 === Ls.AdjustmentType.Red ? n3 = ar(Jn, n3, i2, Yn) : s2 === Ls.AdjustmentType.Green ? n3 = ar(Kn, n3, i2, Yn) : s2 === Ls.AdjustmentType.Blue ? n3 = ar(Xn, n3, i2, Yn) : s2 === Ls.AdjustmentType.RedOff ? n3 = ar(Jn, n3, i2, Qn) : s2 === Ls.AdjustmentType.GreenOff ? n3 = ar(Kn, n3, i2, Qn) : s2 === Ls.AdjustmentType.BlueOff ? n3 = ar(Xn, n3, i2, Qn) : s2 === Ls.AdjustmentType.RedMod ? n3 = ar(Jn, n3, i2, Zn) : s2 === Ls.AdjustmentType.GreenMod ? n3 = ar(Kn, n3, i2, Zn) : s2 === Ls.AdjustmentType.BlueMod ? n3 = ar(Xn, n3, i2, Zn) : s2 === Ls.AdjustmentType.Shade ? n3 = tr(n3, i2) : s2 === Ls.AdjustmentType.Tint ? n3 = rr(n3, i2) : s2 === Ls.AdjustmentType.ETint ? n3 = nr(n3, i2) : s2 === Ls.AdjustmentType.Gray ? n3 = lr(n3) : s2 === Ls.AdjustmentType.Comp ? n3 = cr(n3) : s2 === Ls.AdjustmentType.Inv ? n3 = hr(n3, i2) : s2 === Ls.AdjustmentType.Gamma ? n3 = dr(n3) : s2 === Ls.AdjustmentType.InvGamma ? n3 = ur(n3) : console.warn("unknown adjustmentType: " + s2);
4360
+ s2 === Ls.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.Hue ? n3 = or(Gn, n3, i2) : s2 === Ls.AdjustmentType.Sat ? n3 = or(Un, n3, i2) : s2 === Ls.AdjustmentType.Lum ? n3 = or(Jn, n3, i2) : s2 === Ls.AdjustmentType.HueOff ? n3 = sr(Gn, n3, i2) : s2 === Ls.AdjustmentType.SatOff ? n3 = sr(Un, n3, i2) : s2 === Ls.AdjustmentType.LumOff ? n3 = sr(Jn, n3, i2) : s2 === Ls.AdjustmentType.HueMod ? n3 = ir(Gn, n3, i2) : s2 === Ls.AdjustmentType.SatMod ? n3 = ir(Un, n3, i2) : s2 === Ls.AdjustmentType.LumMod ? n3 = ir(Jn, n3, i2) : s2 === Ls.AdjustmentType.Red ? n3 = ar(qn, n3, i2, Yn) : s2 === Ls.AdjustmentType.Green ? n3 = ar(Kn, n3, i2, Yn) : s2 === Ls.AdjustmentType.Blue ? n3 = ar(Xn, n3, i2, Yn) : s2 === Ls.AdjustmentType.RedOff ? n3 = ar(qn, n3, i2, Qn) : s2 === Ls.AdjustmentType.GreenOff ? n3 = ar(Kn, n3, i2, Qn) : s2 === Ls.AdjustmentType.BlueOff ? n3 = ar(Xn, n3, i2, Qn) : s2 === Ls.AdjustmentType.RedMod ? n3 = ar(qn, n3, i2, Zn) : s2 === Ls.AdjustmentType.GreenMod ? n3 = ar(Kn, n3, i2, Zn) : s2 === Ls.AdjustmentType.BlueMod ? n3 = ar(Xn, n3, i2, Zn) : s2 === Ls.AdjustmentType.Shade ? n3 = tr(n3, i2) : s2 === Ls.AdjustmentType.Tint ? n3 = rr(n3, i2) : s2 === Ls.AdjustmentType.ETint ? n3 = nr(n3, i2) : s2 === Ls.AdjustmentType.Gray ? n3 = lr(n3) : s2 === Ls.AdjustmentType.Comp ? n3 = cr(n3) : s2 === Ls.AdjustmentType.Inv ? n3 = hr(n3, i2) : s2 === Ls.AdjustmentType.Gamma ? n3 = dr(n3) : s2 === Ls.AdjustmentType.InvGamma ? n3 = ur(n3) : console.warn("unknown adjustmentType: " + s2);
4362
4361
  }
4363
4362
  return { srgb: n3, alpha: r3 };
4364
4363
  })(t2.srgbAlpha, this._private.adjs), n2 = ((t3, e3 = 255) => {
@@ -4376,11 +4375,11 @@ class Ys {
4376
4375
  let s2 = null, i2 = o2?.trim(), a2 = null;
4377
4376
  try {
4378
4377
  if (!s2) {
4379
- const t4 = i2?.split(qs);
4378
+ const t4 = i2?.split(Js);
4380
4379
  t4 && (s2 = t4[0], i2 = i2.substring(s2.length, i2.length).trim());
4381
4380
  }
4382
4381
  if (!s2) throw new Error("no color found");
4383
- const t3 = [], o3 = i2.split(Js);
4382
+ const t3 = [], o3 = i2.split(qs);
4384
4383
  for (let e3 = 0; e3 < o3.length; e3++) {
4385
4384
  const n3 = o3[e3];
4386
4385
  if (!n3) continue;
@@ -4479,7 +4478,7 @@ for (let t2 = 0; t2 < ni.length; t2++) {
4479
4478
  ((t2) => {
4480
4479
  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;
4481
4480
  })(Qs || (Qs = {}));
4482
- 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) => {
4481
+ const ri = { Text: "text", Repeat: "repeat", Spacing: "spacing" }, oi = (t2) => !(!t2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/) && !t2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)), si = Object.freeze({ formatValue: Tr, isFractionFormat: oi, adjustDecimalPlaces: (t2, e2) => {
4483
4482
  if (!t2) return "";
4484
4483
  const n2 = (t3, e3) => {
4485
4484
  let n3 = t3 || "";
@@ -4564,13 +4563,13 @@ const yi = (t2, e2, n2, r2, o2) => {
4564
4563
  };
4565
4564
  var Ci, bi;
4566
4565
  (Ci || (Ci = {})).buildPalette = Ei, (bi || (bi = {})).BuiltInFilterType = { BuiltIn: "builtIn", All: "all", Custom: "custom" };
4567
- 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 = { [Ls.Scheme.Bg1]: "lt1", [Ls.Scheme.Bg2]: "lt2", [Ls.Scheme.Tx1]: "dk1", [Ls.Scheme.Tx2]: "dk2", [Ls.Scheme.Accent1]: "accent1", [Ls.Scheme.Accent2]: "accent2", [Ls.Scheme.Accent3]: "accent3", [Ls.Scheme.Accent4]: "accent4", [Ls.Scheme.Accent5]: "accent5", [Ls.Scheme.Accent6]: "accent6", [Ls.Scheme.Hlink]: "hlink", [Ls.Scheme.FolHlink]: "folHlink" }, Mi = "Office", Ni = [Mi, "Calibri Light", "Calibri"], Ti = ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], Fi = (t2) => {
4566
+ 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 = { [Ls.Scheme.Bg1]: "lt1", [Ls.Scheme.Bg2]: "lt2", [Ls.Scheme.Tx1]: "dk1", [Ls.Scheme.Tx2]: "dk2", [Ls.Scheme.Accent1]: "accent1", [Ls.Scheme.Accent2]: "accent2", [Ls.Scheme.Accent3]: "accent3", [Ls.Scheme.Accent4]: "accent4", [Ls.Scheme.Accent5]: "accent5", [Ls.Scheme.Accent6]: "accent6", [Ls.Scheme.Hlink]: "hlink", [Ls.Scheme.FolHlink]: "folHlink" }, Mi = "Office", Ti = [Mi, "Calibri Light", "Calibri"], Ni = ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], Fi = (t2) => {
4568
4567
  const e2 = {};
4569
4568
  for (let n2 = 0; n2 < t2.length; n2++) {
4570
4569
  const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
4571
4570
  e2[o2] = s2;
4572
- for (let t3 = 0; t3 < Ti.length; t3++) {
4573
- const e3 = Ti[t3], n3 = r2[t3 + 1];
4571
+ for (let t3 = 0; t3 < Ni.length; t3++) {
4572
+ const e3 = Ni[t3], n3 = r2[t3 + 1];
4574
4573
  if (!n3) continue;
4575
4574
  const o3 = Ys.parse(n3);
4576
4575
  n3 && (s2[e3] = o3.toString());
@@ -4581,16 +4580,16 @@ const vi = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E9
4581
4580
  const e2 = {};
4582
4581
  for (let n2 = 0; n2 < t2.length; n2++) {
4583
4582
  const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
4584
- e2[o2] = s2, s2.majorFont = r2[1] ?? Ni[1], s2.minorFont = r2[2] ?? Ni[2];
4583
+ e2[o2] = s2, s2.majorFont = r2[1] ?? Ti[1], s2.minorFont = r2[2] ?? Ti[2];
4585
4584
  }
4586
4585
  return e2;
4587
- }, Oi = Fi([[Mi, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), Di = ki([Ni]), Bi = Oi[Mi], Li = Di[Mi];
4586
+ }, Oi = Fi([[Mi, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), Di = ki([Ti]), Bi = Oi[Mi], Li = Di[Mi];
4588
4587
  let zi = null;
4589
4588
  const Pi = new class {
4590
4589
  constructor() {
4591
4590
  this._colors = {};
4592
- for (let t2 = 0; t2 < Ti.length; t2++) {
4593
- const e2 = Ti[t2], n2 = Ys.parse(Bi[e2]);
4591
+ for (let t2 = 0; t2 < Ni.length; t2++) {
4592
+ const e2 = Ni[t2], n2 = Ys.parse(Bi[e2]);
4594
4593
  this._colors[e2] = n2;
4595
4594
  }
4596
4595
  }
@@ -4637,7 +4636,7 @@ const Pi = new class {
4637
4636
  return null;
4638
4637
  }
4639
4638
  }();
4640
- class Wi {
4639
+ class Hi {
4641
4640
  constructor(t2, e2 = Pi) {
4642
4641
  this._delegate = e2, this._fromJSON(t2);
4643
4642
  }
@@ -4696,11 +4695,11 @@ class Wi {
4696
4695
  return e2 && (t2.name = e2), t2;
4697
4696
  }
4698
4697
  }
4699
- const Hi = new class {
4698
+ const Wi = new class {
4700
4699
  constructor() {
4701
4700
  this._colors = {};
4702
- for (let t2 = 0; t2 < Ti.length; t2++) {
4703
- const e2 = Ti[t2], n2 = Ys.parse(Bi[e2]);
4701
+ for (let t2 = 0; t2 < Ni.length; t2++) {
4702
+ const e2 = Ni[t2], n2 = Ys.parse(Bi[e2]);
4704
4703
  this._colors[e2] = n2;
4705
4704
  }
4706
4705
  }
@@ -4721,7 +4720,7 @@ const Hi = new class {
4721
4720
  }
4722
4721
  }();
4723
4722
  class Vi {
4724
- constructor(t2, e2 = Hi) {
4723
+ constructor(t2, e2 = Wi) {
4725
4724
  this._delegate = e2, this._fromJSON(t2);
4726
4725
  }
4727
4726
  _fromJSON(t2) {
@@ -4762,7 +4761,7 @@ class $i {
4762
4761
  n3 && (e2 = n3);
4763
4762
  }
4764
4763
  if (!e2 && zi && (e2 = zi.get(Mi.toLowerCase())), this._name = t2?.name ?? e2?.getName(), !this._name) throw new Error("Theme must have a name.");
4765
- this._builtInID = n2, this._delegate = e2, this._colors = new Wi(t2?.colors, this._delegate?.getColorScheme()), this._fonts = new Vi(t2?.fonts, this._delegate?.getFontScheme());
4764
+ this._builtInID = n2, this._delegate = e2, this._colors = new Hi(t2?.colors, this._delegate?.getColorScheme()), this._fonts = new Vi(t2?.fonts, this._delegate?.getFontScheme());
4766
4765
  const r2 = Ai, o2 = {}, s2 = Object.keys(r2);
4767
4766
  for (let t3 = 0; t3 < s2.length; t3++) {
4768
4767
  const e3 = s2[t3];
@@ -4867,7 +4866,7 @@ class Gi {
4867
4866
  return this._customMap.delete(e2), n2 ?? null;
4868
4867
  }
4869
4868
  }
4870
- var Ui, qi;
4869
+ var Ui, Ji;
4871
4870
  (Ui || (Ui = {})).ElementType = { WholeTable: "wholeTable", FirstColumnStripe: "firstColumnStripe", SecondColumnStripe: "secondColumnStripe", FirstRowStripe: "firstRowStripe", SecondRowStripe: "secondRowStripe", LastColumn: "lastColumn", FirstColumn: "firstColumn", HeaderRow: "headerRow", TotalRow: "totalRow", FirstHeaderCell: "firstHeaderCell", LastHeaderCell: "lastHeaderCell", FirstTotalCell: "firstTotalCell", LastTotalCell: "lastTotalCell" }, (Ui || (Ui = {})).Empty = class {
4872
4871
  constructor(t2) {
4873
4872
  this._normalStyle = t2;
@@ -4898,8 +4897,8 @@ var Ui, qi;
4898
4897
  get isITableStyle() {
4899
4898
  return true;
4900
4899
  }
4901
- }, (qi || (qi = {})).Type = { Absolute: "absolute", OneCell: "oneCell", TwoCell: "twoCell" };
4902
- const Ji = "Model has been closed. No further operations are allowed.", Ki = "Name is required";
4900
+ }, (Ji || (Ji = {})).Type = { Absolute: "absolute", OneCell: "oneCell", TwoCell: "twoCell" };
4901
+ const qi = "Model has been closed. No further operations are allowed.", Ki = "Name is required";
4903
4902
  class Xi {
4904
4903
  constructor(t2, e2) {
4905
4904
  this._listeners = /* @__PURE__ */ new Set(), this._pending = null, this._listeners = /* @__PURE__ */ new Set(), this._transactions = e2 ?? new F({ transient: true }), this._src = t2;
@@ -5017,7 +5016,7 @@ class Yi {
5017
5016
  return null;
5018
5017
  }
5019
5018
  _getState() {
5020
- if (this._closed) throw new Error(Ji);
5019
+ if (this._closed) throw new Error(qi);
5021
5020
  return this._transactions.getState(this);
5022
5021
  }
5023
5022
  _beginCommit(t2) {
@@ -5027,7 +5026,7 @@ class Yi {
5027
5026
  return this._transactions;
5028
5027
  }
5029
5028
  _updateState(t2, e2, n2) {
5030
- if (this._closed) throw new Error(Ji);
5029
+ if (this._closed) throw new Error(qi);
5031
5030
  if (!t2) return;
5032
5031
  const r2 = this._beginCommit(e2?.description);
5033
5032
  try {
@@ -5669,8 +5668,8 @@ class _a {
5669
5668
  if (void 0 === e2 && (e2 = o2 + 1), 0 === this._count || t2 <= r2 && e2 - 1 >= o2) return this.clone();
5670
5669
  const s2 = Math.max(r2, t2), i2 = Math.min(o2, e2 - 1), a2 = i2 - s2, l2 = [];
5671
5670
  let c2 = 0;
5672
- Na.bounds.min = s2, Na.bounds.max = i2;
5673
- const h2 = this.runs(Na);
5671
+ Ta.bounds.min = s2, Ta.bounds.max = i2;
5672
+ const h2 = this.runs(Ta);
5674
5673
  let d2 = h2.next();
5675
5674
  for (; !d2.done; ) {
5676
5675
  const t3 = d2.value;
@@ -5837,8 +5836,8 @@ const Sa = (t2) => "boolean" != typeof t2 ? (t2 && !t2.value && (t2.value = [-1,
5837
5836
  }
5838
5837
  if (e2) for (let t3 = i2; t3 < n2; t3++) o2.push(void 0);
5839
5838
  return o2;
5840
- }, 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 };
5841
- class Ta {
5839
+ }, 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], Ta = { bounds: { min: 0, max: 0 }, overflowRun: true };
5840
+ class Na {
5842
5841
  constructor(t2 = 9) {
5843
5842
  this._maxEntries = Math.max(4, t2), this._minEntries = Math.max(2, Math.ceil(0.4 * this._maxEntries)), this.clear();
5844
5843
  }
@@ -5959,7 +5958,7 @@ class Ta {
5959
5958
  for (; r2.push(e2), !e2.leaf && r2.length - 1 !== n2; ) {
5960
5959
  let n3, r3 = 1 / 0, o2 = 1 / 0;
5961
5960
  for (let s2 = 0; s2 < e2.children.length; s2++) {
5962
- const i2 = e2.children[s2], a2 = za(i2), l2 = Wa(t2, i2) - a2;
5961
+ const i2 = e2.children[s2], a2 = za(i2), l2 = Ha(t2, i2) - a2;
5963
5962
  l2 < o2 ? (o2 = l2, r3 = a2 < r3 ? a2 : r3, n3 = i2) : l2 === o2 && a2 < r3 && (r3 = a2, n3 = i2);
5964
5963
  }
5965
5964
  e2 = n3 || e2.children[0];
@@ -5983,7 +5982,7 @@ class Ta {
5983
5982
  _chooseSplitIndex(t2, e2, n2) {
5984
5983
  let r2 = -1, o2 = 1 / 0, s2 = 1 / 0;
5985
5984
  for (let i2 = e2; i2 <= n2 - e2; i2++) {
5986
- const e3 = Oa(t2, 0, i2, this.toBBox), a2 = Oa(t2, i2, n2, this.toBBox), l2 = Ha(e3, a2), c2 = za(e3) + za(a2);
5985
+ const e3 = Oa(t2, 0, i2, this.toBBox), a2 = Oa(t2, i2, n2, this.toBBox), l2 = Wa(e3, a2), c2 = za(e3) + za(a2);
5987
5986
  l2 < o2 ? (o2 = l2, r2 = i2, s2 = c2 < s2 ? c2 : s2) : l2 === o2 && c2 < s2 && (s2 = c2, r2 = i2);
5988
5987
  }
5989
5988
  return r2 || n2 - e2;
@@ -6044,10 +6043,10 @@ function za(t2) {
6044
6043
  function Pa(t2) {
6045
6044
  return t2.maxX - t2.minX + (t2.maxY - t2.minY);
6046
6045
  }
6047
- function Wa(t2, e2) {
6046
+ function Ha(t2, e2) {
6048
6047
  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));
6049
6048
  }
6050
- function Ha(t2, e2) {
6049
+ function Wa(t2, e2) {
6051
6050
  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);
6052
6051
  return Math.max(0, o2 - n2) * Math.max(0, s2 - r2);
6053
6052
  }
@@ -6076,18 +6075,18 @@ function Ua(t2, e2, n2, r2, o2) {
6076
6075
  }
6077
6076
  const s2 = t2[e2];
6078
6077
  let i2 = n2, a2 = r2;
6079
- for (qa(t2, n2, e2), o2(t2[r2], s2) > 0 && qa(t2, n2, r2); i2 < a2; ) {
6080
- for (qa(t2, i2, a2), i2++, a2--; o2(t2[i2], s2) < 0; ) i2++;
6078
+ for (Ja(t2, n2, e2), o2(t2[r2], s2) > 0 && Ja(t2, n2, r2); i2 < a2; ) {
6079
+ for (Ja(t2, i2, a2), i2++, a2--; o2(t2[i2], s2) < 0; ) i2++;
6081
6080
  for (; o2(t2[a2], s2) > 0; ) a2--;
6082
6081
  }
6083
- 0 === o2(t2[n2], s2) ? qa(t2, n2, a2) : (a2++, qa(t2, a2, r2)), a2 <= e2 && (n2 = a2 + 1), e2 <= a2 && (r2 = a2 - 1);
6082
+ 0 === o2(t2[n2], s2) ? Ja(t2, n2, a2) : (a2++, Ja(t2, a2, r2)), a2 <= e2 && (n2 = a2 + 1), e2 <= a2 && (r2 = a2 - 1);
6084
6083
  }
6085
6084
  }
6086
- function qa(t2, e2, n2) {
6085
+ function Ja(t2, e2, n2) {
6087
6086
  const r2 = t2[e2];
6088
6087
  t2[e2] = t2[n2], t2[n2] = r2;
6089
6088
  }
6090
- class Ja extends Ta {
6089
+ class qa extends Na {
6091
6090
  toBBox(t2) {
6092
6091
  return { minX: 10 * t2.colStart, minY: 10 * t2.rowStart, maxX: 10 * t2.colEnd + 5, maxY: 10 * t2.rowEnd + 5 };
6093
6092
  }
@@ -6109,7 +6108,7 @@ class Ja extends Ta {
6109
6108
  }
6110
6109
  class Ka {
6111
6110
  constructor(t2) {
6112
- this._shared = null, this._rTree = null, this._cloneKey = null, this._lastMiss = { colStart: Number.MAX_SAFE_INTEGER, rowStart: 0, colEnd: 0, rowEnd: 0 }, this._lastSingle = null, this._lastSingleResult = null, this._options = t2, this._rTree = new Ja(t2?.maxNodeEntries ?? 16);
6111
+ this._shared = null, this._rTree = null, this._cloneKey = null, this._lastMiss = { colStart: Number.MAX_SAFE_INTEGER, rowStart: 0, colEnd: 0, rowEnd: 0 }, this._lastSingle = null, this._lastSingleResult = null, this._options = t2, this._rTree = new qa(t2?.maxNodeEntries ?? 16);
6113
6112
  }
6114
6113
  visitRanges(t2, e2, n2 = null) {
6115
6114
  let r2 = this.search(t2);
@@ -6157,7 +6156,7 @@ class Ka {
6157
6156
  let _2 = null;
6158
6157
  const S2 = this.getBoundingCoords();
6159
6158
  if (!S2) return this;
6160
- 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, F2 = C2?.onUpdated, k2 = M2 ? [] : null, O2 = N2 ? [] : null, D2 = F2 ? [] : null;
6159
+ 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, T2 = C2?.onRemoved, N2 = C2?.onMerged, F2 = C2?.onUpdated, k2 = M2 ? [] : null, O2 = T2 ? [] : null, D2 = F2 ? [] : null;
6161
6160
  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) => {
6162
6161
  if ((a2 ? t3.colEnd < e2.colStart : t3.rowEnd < e2.rowStart) && !x2) return;
6163
6162
  const r3 = sl(e2, t3, a2 ? g.Column : g.Row), o2 = t3.group;
@@ -6191,10 +6190,10 @@ class Ka {
6191
6190
  let t3 = true;
6192
6191
  if (m2 > 0 && (t3 = a2 ? e2.rowStart > S2.rowStart || e2.rowEnd < S2.rowEnd : e2.colStart > S2.colStart || e2.colEnd < S2.colEnd), t3) {
6193
6192
  const t4 = Xa(_2, c.unionRanges(S2, _2), a2 ? 0 : 1, a2 ? 1 : 0);
6194
- T2 && (L2 = B2._mergeNodes(t4, false));
6193
+ N2 && (L2 = B2._mergeNodes(t4, false));
6195
6194
  }
6196
6195
  }
6197
- return F2 && D2.length > 0 && F2(D2), M2 && k2.length > 0 && M2(k2), T2 && L2.length > 0 && T2(L2), N2 && O2.length > 0 && N2(O2), B2;
6196
+ return F2 && D2.length > 0 && F2(D2), M2 && k2.length > 0 && M2(k2), N2 && L2.length > 0 && N2(L2), T2 && O2.length > 0 && T2(O2), B2;
6198
6197
  }
6199
6198
  insertNonOverlapping(t2, e2) {
6200
6199
  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;
@@ -6351,7 +6350,7 @@ class Ka {
6351
6350
  }
6352
6351
  _copy(t2, e2) {
6353
6352
  let n2 = t2.rTree.all();
6354
- const r2 = new Ja(this._options?.maxNodeEntries);
6353
+ const r2 = new qa(this._options?.maxNodeEntries);
6355
6354
  return e2 && (n2 = n2.concat(e2)), n2.length > 0 && r2.load(n2), { refCount: 1, rTree: r2 };
6356
6355
  }
6357
6356
  _updateNodes(t2, e2, n2) {
@@ -6936,8 +6935,8 @@ class vl {
6936
6935
  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));
6937
6936
  }
6938
6937
  if (!s2) return ia;
6939
- r2 || d2 !== u2 || (r2 = true), Nl.bounds.min = d2, Nl.bounds.max = u2, Nl.reverse = p2, Nl.processSkip = a2, Nl.reuseResult = Al;
6940
- let _2 = this._major.entries(Nl), S2 = Tl();
6938
+ r2 || d2 !== u2 || (r2 = true), Tl.bounds.min = d2, Tl.bounds.max = u2, Tl.reverse = p2, Tl.processSkip = a2, Tl.reuseResult = Al;
6939
+ let _2 = this._major.entries(Tl), S2 = Nl();
6941
6940
  const w2 = (t3) => {
6942
6941
  if (!t3.nextActive) return;
6943
6942
  const e3 = (e4) => {
@@ -6977,7 +6976,7 @@ class vl {
6977
6976
  for (; S2; ) {
6978
6977
  let a3 = null;
6979
6978
  if (s3) {
6980
- let e4 = n3 ? Tl() : S2;
6979
+ let e4 = n3 ? Nl() : S2;
6981
6980
  if (a3 = y2(e4), a3) {
6982
6981
  n3 ? (e4.prevMajorCursor = S2, S2.nextMajorCursor = e4, S2 = e4) : n3 = S2, o3 = p2 ? Math.max(o3, S2.nextMinorIndex) : Math.min(o3, S2.nextMinorIndex);
6983
6982
  const r4 = S2.minorIndex;
@@ -7075,8 +7074,8 @@ class vl {
7075
7074
  const e3 = t2[_2], n3 = e3[0], r3 = e3[1], o3 = new _a(p2);
7076
7075
  m2(o3, r3, n3);
7077
7076
  }, w2 = this._major;
7078
- Nl.bounds.min = e2, Nl.bounds.max = n2, Nl.reverse = false, Nl.processSkip = null, Nl.reuseResult = Al;
7079
- const y2 = w2.entries(Nl);
7077
+ Tl.bounds.min = e2, Tl.bounds.max = n2, Tl.reverse = false, Tl.processSkip = null, Tl.reuseResult = Al;
7078
+ const y2 = w2.entries(Tl);
7080
7079
  let E2 = y2.next();
7081
7080
  for (; !E2.done; ) {
7082
7081
  const e3 = E2.value, n3 = e3[0];
@@ -7122,8 +7121,8 @@ class vl {
7122
7121
  let f2 = false, p2 = 0;
7123
7122
  const _2 = this._major;
7124
7123
  if (l2 <= g2 && h2 >= m2) {
7125
- Nl.bounds.min = i2, Nl.bounds.max = a2;
7126
- const t3 = _2.entries(Nl);
7124
+ Tl.bounds.min = i2, Tl.bounds.max = a2;
7125
+ const t3 = _2.entries(Tl);
7127
7126
  let e3 = t3.next();
7128
7127
  for (; !e3.done; ) {
7129
7128
  p2 -= e3.value[1].getCount(), e3 = t3.next();
@@ -7131,8 +7130,8 @@ class vl {
7131
7130
  return _2.delete(i2, a2 - i2 + 1), this._count += p2, this._dataCoords = null, 0 !== p2;
7132
7131
  }
7133
7132
  const S2 = [], w2 = this._isShared, y2 = [];
7134
- Nl.bounds.min = i2, Nl.bounds.max = a2, Ml.reverse = false, Ml.processSkip = null, Ml.reuseResult = Al;
7135
- const E2 = _2.entries(Nl);
7133
+ Tl.bounds.min = i2, Tl.bounds.max = a2, Ml.reverse = false, Ml.processSkip = null, Ml.reuseResult = Al;
7134
+ const E2 = _2.entries(Tl);
7136
7135
  let C2 = E2.next();
7137
7136
  for (; !C2.done; ) {
7138
7137
  const t3 = C2.value, e3 = t3[0];
@@ -7175,10 +7174,10 @@ class vl {
7175
7174
  if (!o2 && (C2 *= -1, c.isRangeWithinRange(f2, t2))) return this.clear(), true;
7176
7175
  let b2 = 0;
7177
7176
  const v2 = this._major, x2 = [];
7178
- 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) {
7177
+ if (Tl.bounds.min = a2, Tl.bounds.max = E2 ? Number.MAX_SAFE_INTEGER : l2, Ml.reverse = !o2, Ml.processSkip = null, Ml.reuseResult = Al, E2 && y2) {
7179
7178
  if (!o2) {
7180
- Nl.bounds.max = l2;
7181
- const t4 = v2.entries(Nl);
7179
+ Tl.bounds.max = l2;
7180
+ const t4 = v2.entries(Tl);
7182
7181
  let e3 = t4.next();
7183
7182
  for (; !e3.done; ) {
7184
7183
  b2 -= e3.value[1].getCount(), e3 = t4.next();
@@ -7190,9 +7189,9 @@ class vl {
7190
7189
  }
7191
7190
  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;
7192
7191
  o2 || (A2 = Number.MAX_SAFE_INTEGER, M2 = Number.MIN_SAFE_INTEGER);
7193
- let N2 = Number.MAX_SAFE_INTEGER;
7194
- r2 && (N2 = s2 ? r2.colEnd : r2.rowEnd);
7195
- const T2 = /* @__PURE__ */ new Set(), F2 = E2 ? /* @__PURE__ */ new Map() : null, k2 = [], O2 = v2.entries(Nl), D2 = { bounds: { min: g2, max: m2 } };
7192
+ let T2 = Number.MAX_SAFE_INTEGER;
7193
+ r2 && (T2 = s2 ? r2.colEnd : r2.rowEnd);
7194
+ const N2 = /* @__PURE__ */ new Set(), F2 = E2 ? /* @__PURE__ */ new Map() : null, k2 = [], O2 = v2.entries(Tl), D2 = { bounds: { min: g2, max: m2 } };
7196
7195
  let B2 = O2.next();
7197
7196
  for (; !B2.done; ) {
7198
7197
  const t3 = B2.value, e3 = t3[0], n3 = t3[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
@@ -7204,10 +7203,10 @@ class vl {
7204
7203
  r5 - 1 <= m2 && o4 > m2 && (s4 = s4.slice(0, m2 + 1 - r5)), r5 < g2 && o4 + 1 >= g2 && (s4 = s4.slice(g2 - r5)), k2.push({ majorIndex: e3 + C2, minorIndex: Math.max(r5, g2), run: s4 });
7205
7204
  }), n3.delete(g2, m2 - g2 + 1)) : n3.shift(g2, C2);
7206
7205
  const r4 = n3.getCount();
7207
- if (0 === r4) T2.add(e3), A2 = Math.min(A2, s3), M2 = Math.max(M2, o3);
7206
+ if (0 === r4) N2.add(e3), A2 = Math.min(A2, s3), M2 = Math.max(M2, o3);
7208
7207
  else {
7209
7208
  const t5 = n3.getCoords();
7210
- if (A2 = Math.min(A2, t5.min), M2 = Math.max(M2, t5.max), M2 > N2) throw new d();
7209
+ if (A2 = Math.min(A2, t5.min), M2 = Math.max(M2, t5.max), M2 > T2) throw new d();
7211
7210
  }
7212
7211
  b2 += r4 - t4, x2.push([e3, n3]);
7213
7212
  }
@@ -7218,10 +7217,10 @@ class vl {
7218
7217
  for (let t3 = 0; t3 < k2.length; t3++) {
7219
7218
  const e3 = k2[t3], n3 = e3.majorIndex, r3 = e3.run;
7220
7219
  let o3 = F2.get(n3);
7221
- o3 || (o3 = new _a(L2), F2.set(n3, o3), x2.push([n3, o3]), z2 = true), o3.setRunAt(e3.minorIndex, r3), b2 += r3.length, I2 = Math.min(I2, n3), R2 = Math.max(R2, n3), T2 && T2.delete(n3);
7220
+ o3 || (o3 = new _a(L2), F2.set(n3, o3), x2.push([n3, o3]), z2 = true), o3.setRunAt(e3.minorIndex, r3), b2 += r3.length, I2 = Math.min(I2, n3), R2 = Math.max(R2, n3), N2 && N2.delete(n3);
7222
7221
  }
7223
- if (this._updateMajorSpan(x2, z2), T2 && T2.size > 0) {
7224
- const t3 = Array.from(T2.values()), e3 = Rs(t3);
7222
+ if (this._updateMajorSpan(x2, z2), N2 && N2.size > 0) {
7223
+ const t3 = Array.from(N2.values()), e3 = Rs(t3);
7225
7224
  for (let t4 = 0; t4 < e3.length; t4++) {
7226
7225
  const n4 = e3[t4];
7227
7226
  v2.delete(n4.min, n4.max - n4.min + 1);
@@ -7310,7 +7309,7 @@ class vl {
7310
7309
  vl || (vl = {});
7311
7310
  const xl = 12;
7312
7311
  Object.seal({ done: false, value: null });
7313
- 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 });
7312
+ 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 }, Tl = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Al }, Nl = () => ({ majorIndex: -1, minorIndex: -1, value: null, active: false, nextMinorIndex: -1, nextActive: false, nextMinorValue: null, minorIterator: null, nextMajorCursor: null, prevMajorCursor: null });
7314
7313
  class Fl {
7315
7314
  constructor(t2) {
7316
7315
  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");
@@ -7338,7 +7337,7 @@ class Fl {
7338
7337
  case Bl:
7339
7338
  return !!r2;
7340
7339
  case Pl:
7341
- case Wl:
7340
+ case Hl:
7342
7341
  return this._cv(n2, o2 ? Number(r2) : r2);
7343
7342
  case Ll:
7344
7343
  return this._vi64[o2 ? t2 : r2];
@@ -7350,14 +7349,14 @@ class Fl {
7350
7349
  return Number.MAX_SAFE_INTEGER;
7351
7350
  case Gl:
7352
7351
  return Number.MIN_SAFE_INTEGER;
7353
- case Hl:
7352
+ case Wl:
7354
7353
  return 1 / 0;
7355
7354
  case Vl:
7356
7355
  return -1 / 0;
7357
7356
  case Ul:
7358
7357
  return null;
7359
- case ql:
7360
7358
  case Jl:
7359
+ case ql:
7361
7360
  return;
7362
7361
  }
7363
7362
  return this._cv(n2, o2 ? Number(r2) : r2);
@@ -7417,7 +7416,7 @@ class Fl {
7417
7416
  u2[n3] = r3;
7418
7417
  break;
7419
7418
  case Pl:
7420
- case Wl:
7419
+ case Hl:
7421
7420
  d2[n3] = BigInt(e2?.(y2, r3) ?? 0);
7422
7421
  break;
7423
7422
  default:
@@ -7445,7 +7444,7 @@ class Fl {
7445
7444
  _2[r3] = n3, f2[n3] = o3, n3++;
7446
7445
  break;
7447
7446
  case Pl:
7448
- case Wl:
7447
+ case Hl:
7449
7448
  d2[r3] = e2?.(y2, o3) ?? 0;
7450
7449
  break;
7451
7450
  default:
@@ -7456,12 +7455,12 @@ class Fl {
7456
7455
  return new Fl({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
7457
7456
  }
7458
7457
  }
7459
- const kl = 0.1, Ol = 1, Dl = 2, Bl = 3, Ll = 4, zl = 5, Pl = 6, Wl = 7, Hl = 8, Vl = 9, $l = 10, jl = 11, Gl = 12, Ul = 13, ql = 14, Jl = 127, Kl = { Undefined: ql }, Xl = (t2, e2) => {
7458
+ const kl = 0.1, Ol = 1, Dl = 2, Bl = 3, Ll = 4, zl = 5, Pl = 6, Hl = 7, Wl = 8, Vl = 9, $l = 10, jl = 11, Gl = 12, Ul = 13, Jl = 14, ql = 127, Kl = { Undefined: Jl }, Xl = (t2, e2) => {
7460
7459
  switch (typeof t2) {
7461
7460
  case "number":
7462
7461
  const n2 = t2;
7463
7462
  if (Number.isNaN(n2)) return $l;
7464
- if (n2 === 1 / 0) return Hl;
7463
+ if (n2 === 1 / 0) return Wl;
7465
7464
  if (n2 === -1 / 0) return Vl;
7466
7465
  if (Object.is(n2, -0)) return Dl;
7467
7466
  if (n2 === Number.MAX_SAFE_INTEGER) return jl;
@@ -7474,20 +7473,20 @@ const kl = 0.1, Ol = 1, Dl = 2, Bl = 3, Ll = 4, zl = 5, Pl = 6, Wl = 7, Hl = 8,
7474
7473
  return Bl;
7475
7474
  case "object":
7476
7475
  if (null === t2) return Ul;
7477
- if (t2 instanceof Error) return Wl;
7478
- if (!e2) return Jl;
7476
+ if (t2 instanceof Error) return Hl;
7477
+ if (!e2) return ql;
7479
7478
  const r2 = e2(t2);
7480
7479
  if (r2 < 128 || r2 > 255) throw new Error("Custom type must be between 128 and 255");
7481
7480
  return r2;
7482
7481
  case "bigint":
7483
7482
  return Ll;
7484
7483
  case "undefined":
7485
- return ql;
7484
+ return Jl;
7486
7485
  case "symbol":
7487
7486
  case "function":
7488
- return Jl;
7487
+ return ql;
7489
7488
  }
7490
- return Jl;
7489
+ return ql;
7491
7490
  }, Yl = (t2) => {
7492
7491
  if (!t2 || t2.length <= 1) return false;
7493
7492
  if (2 === t2.length) return c.isRangesIntersect(t2[0], t2[1]);
@@ -7765,28 +7764,28 @@ class oc {
7765
7764
  const t2 = { ...M2 };
7766
7765
  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 } });
7767
7766
  } else A2 = g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: M2, reuseResult: false });
7768
- const N2 = i2.colStart, T2 = i2.rowStart, F2 = N2 - M2.colStart, k2 = T2 - M2.rowStart, O2 = x2 === v2 ? new Ft.Builder() : new Ft.TransposedBuilder(), D2 = new pl({ ...s2, bounds: i2, comparator: (I2 ? tc : ec)(i2, M2) }, R2, A2);
7767
+ const T2 = i2.colStart, N2 = i2.rowStart, F2 = T2 - M2.colStart, k2 = N2 - M2.rowStart, O2 = x2 === v2 ? new Ft.Builder() : new Ft.TransposedBuilder(), D2 = new pl({ ...s2, bounds: i2, comparator: (I2 ? tc : ec)(i2, M2) }, R2, A2);
7769
7768
  let B2, L2 = D2.next();
7770
7769
  for (; !L2.done; ) {
7771
7770
  const t2 = L2.value;
7772
7771
  let e2 = t2[1], r3 = t2[3];
7773
7772
  const s3 = t2[0], i3 = t2[2], a3 = s3 ? s3.colIndex : i3.colIndex + F2, l3 = s3 ? s3.rowIndex : i3.rowIndex + k2;
7774
7773
  let c2, u3;
7775
- 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);
7774
+ e2 instanceof n.Value ? c2 = e2 : r3 instanceof n.Value && (c2 = r3), u3 = c2 || o2(e2 ?? h2, r3 ?? d2, { colIndex: a3 - T2, rowIndex: l3 - N2 }, this);
7776
7775
  const g3 = I2 ? a3 : l3, m3 = I2 ? l3 : a3;
7777
7776
  O2.addValue(g3, m3, u3), L2 = D2.next();
7778
7777
  }
7779
7778
  if (C2 && y2 > S2 || E2 > w2) {
7780
7779
  const t2 = this._values.clone();
7781
7780
  if (this._applyBuilder(t2, O2), y2 > S2) {
7782
- const e2 = hl(N2 + S2, T2, N2 + y2 - 1, T2 + E2 - 1, I2), n2 = Sl(C2, e2, I2);
7781
+ const e2 = hl(T2 + S2, N2, T2 + y2 - 1, N2 + E2 - 1, I2), n2 = Sl(C2, e2, I2);
7783
7782
  t2.setValues(n2.tuples);
7784
7783
  }
7785
7784
  if (E2 > w2) {
7786
- const e2 = hl(N2, T2 + w2, N2 + y2 - 1, T2 + E2 - 1, I2), n2 = Sl(C2, e2, I2);
7785
+ const e2 = hl(T2, N2 + w2, T2 + y2 - 1, N2 + E2 - 1, I2), n2 = Sl(C2, e2, I2);
7787
7786
  t2.setValues(n2.tuples);
7788
7787
  }
7789
- B2 = new oc(t2, { colStart: N2, rowStart: T2, colEnd: N2 + y2 - 1, rowEnd: T2 + E2 - 1 }, this._type);
7788
+ B2 = new oc(t2, { colStart: T2, rowStart: N2, colEnd: T2 + y2 - 1, rowEnd: N2 + E2 - 1 }, this._type);
7790
7789
  } else B2 = this._cloneFromBuilder(O2, s2, y2, E2);
7791
7790
  return B2;
7792
7791
  }
@@ -8148,9 +8147,9 @@ const sc = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
8148
8147
  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);
8149
8148
  n2.setValues(a2.tuples);
8150
8149
  return new oc(n2, l2, o2, !r2);
8151
- }, 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);
8152
- let Tc, Fc;
8153
- const kc = (t2) => (Tc === t2 || (Fc = "" + (t2 + 1), Tc = t2), Fc);
8150
+ }, 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), Tc = Math.pow(2, 20);
8151
+ let Nc, Fc;
8152
+ const kc = (t2) => (Nc === t2 || (Fc = "" + (t2 + 1), Nc = t2), Fc);
8154
8153
  let Oc, Dc;
8155
8154
  const Bc = (t2) => {
8156
8155
  if (Oc === t2) return Dc;
@@ -8165,11 +8164,11 @@ const Bc = (t2) => {
8165
8164
  if (!t2) return Ac;
8166
8165
  const e2 = Bc(t2.colIndex), n2 = kc(t2.rowIndex);
8167
8166
  return (t2.$colIndex ? "$" + e2 : e2) + (t2.$rowIndex ? "$" + n2 : n2);
8168
- }, Wc = (t2, e2) => {
8167
+ }, Hc = (t2, e2) => {
8169
8168
  let n2 = t2 ?? e2;
8170
8169
  var r2;
8171
8170
  return n2 && (n2 = Fo(n2), n2 = n2.replace(/'/g, "''"), r2 = n2, Lc.test(r2) && (n2 = ko(n2))), n2;
8172
- }, Hc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Ac, Vc = (t2, e2, n2 = zc) => {
8171
+ }, Wc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Ac, Vc = (t2, e2, n2 = zc) => {
8173
8172
  if (!t2) return null;
8174
8173
  const r2 = t2.colStart, o2 = t2.rowStart, s2 = t2.colEnd, i2 = t2.rowEnd;
8175
8174
  if (r2 === s2 && o2 === i2) return n2({ colIndex: r2, rowIndex: o2 });
@@ -8184,8 +8183,8 @@ const Bc = (t2) => {
8184
8183
  const r2 = t2.colIndex, o2 = t2.rowIndex, s2 = r2 === Number.MIN_SAFE_INTEGER;
8185
8184
  let i2 = null;
8186
8185
  if (o2 === Number.MIN_SAFE_INTEGER ? (i2 = Bc(r2), t2.$colIndex && (i2 = "$" + i2)) : s2 ? (i2 = kc(o2), t2.$rowIndex && (i2 = "$" + i2)) : i2 = n2(t2), t2.sheetName || e2) {
8187
- const n3 = Wc(t2.sheetName, e2);
8188
- i2 = Hc(n3, i2);
8186
+ const n3 = Hc(t2.sheetName, e2);
8187
+ i2 = Wc(n3, i2);
8189
8188
  }
8190
8189
  return i2;
8191
8190
  }, jc = (t2, e2, n2 = Pc) => {
@@ -8199,8 +8198,8 @@ const Bc = (t2) => {
8199
8198
  let a2 = null;
8200
8199
  return o2 ? (a2 = Bc(t2.colEnd), a2 = t2.$colEnd ? "$" + a2 : a2) : s2 ? (a2 = kc(t2.rowEnd), a2 = t2.$rowEnd ? "$" + a2 : a2) : a2 = n2({ colIndex: t2.colEnd, rowIndex: t2.rowEnd, $colIndex: t2.$colEnd, $rowIndex: t2.$rowEnd }), i2 + ":" + a2;
8201
8200
  }, Gc = (t2, e2, n2 = Pc) => {
8202
- const r2 = jc(t2, e2, n2), o2 = Wc(t2?.sheetName, e2?.sheetName);
8203
- return Hc(o2, r2);
8201
+ const r2 = jc(t2, e2, n2), o2 = Hc(t2?.sheetName, e2?.sheetName);
8202
+ return Wc(o2, r2);
8204
8203
  }, Uc = (t2, e2 = false) => {
8205
8204
  if (!t2) return null;
8206
8205
  let n2 = 0, r2 = 0, o2 = false, s2 = false;
@@ -8223,7 +8222,7 @@ const Bc = (t2) => {
8223
8222
  }
8224
8223
  const a2 = {};
8225
8224
  return e2 || 0 !== r2 && 0 !== n2 ? (n2 > 0 && (a2.colIndex = n2 - 1, o2 && (a2.$colIndex = o2)), r2 > 0 && (a2.rowIndex = r2 - 1, (s2 || e2 && o2) && (a2.$rowIndex = s2 || e2 && o2)), a2) : null;
8226
- }, qc = (t2, e2 = ac, n2 = false) => {
8225
+ }, Jc = (t2, e2 = ac, n2 = false) => {
8227
8226
  if (!t2) return null;
8228
8227
  let r2 = t2.toUpperCase();
8229
8228
  const o2 = oh(r2, n2);
@@ -8239,7 +8238,7 @@ const Bc = (t2) => {
8239
8238
  }
8240
8239
  const a2 = {};
8241
8240
  return s2 && (void 0 !== s2.colIndex && (a2.colStart = s2.colIndex), void 0 !== s2.rowIndex && (a2.rowStart = s2.rowIndex), void 0 !== s2.$colIndex && (a2.$colStart = s2.$colIndex), void 0 !== s2.$rowIndex && (a2.$rowStart = s2.$rowIndex), void 0 !== a2?.colStart && a2?.colStart > e2?.colEnd) ? null : (i2 && (void 0 !== i2.colIndex && (a2.colEnd = i2.colIndex), void 0 !== i2.rowIndex && (a2.rowEnd = i2.rowIndex), void 0 !== i2.$colIndex && (a2.$colEnd = i2.$colIndex), void 0 !== i2.$rowIndex && (a2.$rowEnd = i2.$rowIndex)), { ...e2, ...a2 });
8242
- }, Jc = (t2, e2, n2 = false) => {
8241
+ }, qc = (t2, e2, n2 = false) => {
8243
8242
  const r2 = ((t3) => {
8244
8243
  const e3 = t3.lastIndexOf("!");
8245
8244
  if (-1 === e3) return null;
@@ -8248,9 +8247,9 @@ const Bc = (t2) => {
8248
8247
  })(t2);
8249
8248
  let o2;
8250
8249
  if (r2) {
8251
- if (o2 = qc(r2[1], e2, n2), !o2) return null;
8250
+ if (o2 = Jc(r2[1], e2, n2), !o2) return null;
8252
8251
  o2.sheetName = r2[0];
8253
- } else o2 = qc(t2, e2, n2);
8252
+ } else o2 = Jc(t2, e2, n2);
8254
8253
  return o2 || null;
8255
8254
  }, Kc = (t2, e2, n2 = jc, r2 = Pc) => {
8256
8255
  if (!t2 || 0 === t2.length) return null;
@@ -8264,7 +8263,7 @@ const Bc = (t2) => {
8264
8263
  }, Xc = (t2, e2, n2 = Gc, r2 = Pc) => {
8265
8264
  const o2 = Kc(t2, e2, n2, r2);
8266
8265
  return o2 ? o2.join(",") : Ac;
8267
- }, Yc = (t2, e2, n2, r2 = Jc, o2, s2 = false) => {
8266
+ }, Yc = (t2, e2, n2, r2 = qc, o2, s2 = false) => {
8268
8267
  if (null !== e2) {
8269
8268
  if ("string" == typeof e2) {
8270
8269
  const i2 = r2(e2, n2, s2);
@@ -8291,7 +8290,7 @@ const Bc = (t2) => {
8291
8290
  }
8292
8291
  } else t2.push(null);
8293
8292
  } else t2.push(null);
8294
- }, Qc = (t2, e2, n2 = Jc, r2, o2 = false) => {
8293
+ }, Qc = (t2, e2, n2 = qc, r2, o2 = false) => {
8295
8294
  if (!t2) return [e2];
8296
8295
  let s2;
8297
8296
  s2 = "string" == typeof t2 ? Oo(t2) : t2.isICellRanges ? t2.getCoords() : Array.isArray(t2) ? t2 : [t2];
@@ -8417,7 +8416,7 @@ const Bc = (t2) => {
8417
8416
  r2 !== Number.MIN_SAFE_INTEGER && (t2.$rowIndex ? n2 += `R${r2 + 1}` : n2 += 0 === r2 ? "R" : `R[${r2 + 1}]`);
8418
8417
  let o2 = "";
8419
8418
  const s2 = t2.colIndex;
8420
- 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;
8419
+ return s2 !== Number.MIN_SAFE_INTEGER && (t2.$colIndex ? o2 += `C${s2 + 1}` : o2 += 0 === s2 ? "C" : `C[${s2 + 1}]`), t2.sheetName && (n2 = Hc(t2.sheetName, e2) + "!" + n2), n2 + o2;
8421
8420
  }, uh = (t2, e2, n2) => {
8422
8421
  let r2 = "";
8423
8422
  const o2 = t2.colIndex;
@@ -8617,9 +8616,9 @@ class Ih {
8617
8616
  const Rh = Object.freeze({ break: true });
8618
8617
  var Ah;
8619
8618
  (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" };
8620
- 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 });
8619
+ 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 }), Th = 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 }), Nh = 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 });
8621
8620
  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 });
8622
- const Fh = Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Continuous]: false, [Ah.Type.Contentful]: false }), kh = "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.", Bh = "Listener can not be null", Lh = "We can't insert items. The sheet is protected.", zh = (t2) => `We can't create a ${t2} that overlaps with another table or merge.`, Ph = "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.`, qh = "'setValue' expects a single value; when working with an array use 'setValue'.", Jh = "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.";
8621
+ const Fh = Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Continuous]: false, [Ah.Type.Contentful]: false }), kh = "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.", Bh = "Listener can not be null", Lh = "We can't insert items. The sheet is protected.", zh = (t2) => `We can't create a ${t2} that overlaps with another table or merge.`, Ph = "Overlapping ranges can not be merged.", Hh = "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.", Wh = "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.";
8623
8622
  var Yh, Qh;
8624
8623
  (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" };
8625
8624
  class Zh {
@@ -8675,10 +8674,10 @@ const td = (t2) => {
8675
8674
  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;
8676
8675
  }
8677
8676
  return '"' + e2 + '"';
8678
- }, 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();
8679
- 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);
8680
- const Fd = "xx-small", kd = "x-small", Od = "small", Dd = "medium", Bd = "large", Ld = "x-large", zd = "xx-large", Pd = "xxx-large", Wd = "smaller", Hd = "larger", Vd = "math", $d = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), jd = /* @__PURE__ */ new Map();
8681
- jd.set(o.textToKey(Fd), (t2) => 0.4 * t2), jd.set(o.textToKey(kd), (t2) => 0.5 * t2), jd.set(o.textToKey(Od), (t2) => 0.6 * t2), jd.set(o.textToKey(Dd), (t2) => t2), jd.set(o.textToKey(Bd), (t2) => 1.1 * t2), jd.set(o.textToKey(Ld), (t2) => 1.25 * t2), jd.set(o.textToKey(zd), (t2) => 1.5 * t2), jd.set(o.textToKey(Pd), (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);
8677
+ }, 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", Td = "bolder", Nd = /* @__PURE__ */ new Map();
8678
+ Nd.set(o.textToKey(hd), 100), Nd.set(o.textToKey(dd), 100), Nd.set(o.textToKey(ud), 200), Nd.set(o.textToKey(gd), 200), Nd.set(o.textToKey(md), 300), Nd.set(o.textToKey(fd), 400), Nd.set(o.textToKey(pd), 400), Nd.set(o.textToKey(_d), 500), Nd.set(o.textToKey(Sd), 600), Nd.set(o.textToKey(wd), 600), Nd.set(o.textToKey(fd), 400), Nd.set(o.textToKey(yd), 700), Nd.set(o.textToKey(Ed), 800), Nd.set(o.textToKey(Cd), 800), Nd.set(o.textToKey(bd), 900), Nd.set(o.textToKey(vd), 900), Nd.set(o.textToKey(xd), 950), Nd.set(o.textToKey(Id), 950), Nd.set(o.textToKey(Rd), 100), Nd.set(o.textToKey(Ad), 400), Nd.set(o.textToKey(Md), 700), Nd.set(o.textToKey(Td), 700);
8679
+ const Fd = "xx-small", kd = "x-small", Od = "small", Dd = "medium", Bd = "large", Ld = "x-large", zd = "xx-large", Pd = "xxx-large", Hd = "smaller", Wd = "larger", Vd = "math", $d = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), jd = /* @__PURE__ */ new Map();
8680
+ jd.set(o.textToKey(Fd), (t2) => 0.4 * t2), jd.set(o.textToKey(kd), (t2) => 0.5 * t2), jd.set(o.textToKey(Od), (t2) => 0.6 * t2), jd.set(o.textToKey(Dd), (t2) => t2), jd.set(o.textToKey(Bd), (t2) => 1.1 * t2), jd.set(o.textToKey(Ld), (t2) => 1.25 * t2), jd.set(o.textToKey(zd), (t2) => 1.5 * t2), jd.set(o.textToKey(Pd), (t2) => 2 * t2), jd.set(o.textToKey(Hd), (t2) => 0.9 * t2), jd.set(o.textToKey(Wd), (t2) => 1.1 * t2), jd.set(o.textToKey(Vd), (t2) => t2);
8682
8681
  const Gd = (t2, e2 = 11, n2 = "pt") => {
8683
8682
  if (!t2) return null;
8684
8683
  let r2 = e2;
@@ -8700,12 +8699,12 @@ const Gd = (t2, e2 = 11, n2 = "pt") => {
8700
8699
  return isNaN(r2) ? null : r2;
8701
8700
  }, Ud = /* @__PURE__ */ new Map();
8702
8701
  Ud.set(Ds.BuiltInSheetPattern.None, { description: "None", cssKey: "none" }), Ud.set(Ds.BuiltInSheetPattern.Solid, { description: "Solid", cssKey: "solid" }), Ud.set(Ds.BuiltInSheetPattern.DarkGray, { description: "75% gray", cssKey: "gray-75" }), Ud.set(Ds.BuiltInSheetPattern.MediumGray, { description: "50% gray", cssKey: "gray-50" }), Ud.set(Ds.BuiltInSheetPattern.LightGray, { description: "25% gray", cssKey: "gray-25" }), Ud.set(Ds.BuiltInSheetPattern.Gray125, { description: "12.5% Gray", cssKey: "gray-125" }), Ud.set(Ds.BuiltInSheetPattern.Gray0625, { description: "6.25% Gray", cssKey: "gray-0625" }), Ud.set(Ds.BuiltInSheetPattern.DarkHorizontal, { description: "Horizontal Strip", cssKey: "horz-stripe" }), Ud.set(Ds.BuiltInSheetPattern.DarkVertical, { description: "Vertical Strip", cssKey: "vert-stripe" }), Ud.set(Ds.BuiltInSheetPattern.DarkDown, { description: "Reverse Diagonal Stripe", cssKey: "reverse-diag-stripe" }), Ud.set(Ds.BuiltInSheetPattern.DarkUp, { description: "Diagonal Strip", cssKey: "diag-stripe" }), Ud.set(Ds.BuiltInSheetPattern.DarkGrid, { description: "Diagonal Crosshatch", cssKey: "diag-cross" }), Ud.set(Ds.BuiltInSheetPattern.DarkTrellis, { description: "Thick Diagonal Crosshatch", cssKey: "thick-diag-cross" }), Ud.set(Ds.BuiltInSheetPattern.LightHorizontal, { description: "Thin Horizontal Stripe", cssKey: "thin-horz-stripe" }), Ud.set(Ds.BuiltInSheetPattern.LightVertical, { description: "Thin Vertical Stripe", cssKey: "thin-vert-stripe" }), Ud.set(Ds.BuiltInSheetPattern.LightDown, { description: "Thin Reverse Diagonal Stripe", cssKey: "thin-reverse-diag-stripe" }), Ud.set(Ds.BuiltInSheetPattern.LightUp, { description: "Thin Diagonal Stripe", cssKey: "thin-diag-stripe" }), Ud.set(Ds.BuiltInSheetPattern.LightGrid, { description: "Thin Horizontal Cross", cssKey: "thin-horz-cross" }), Ud.set(Ds.BuiltInSheetPattern.LightTrellis, { description: "Thin Diagonal Cross", cssKey: "thin-diag-cross" });
8703
- let qd = "";
8704
- const Jd = /* @__PURE__ */ new Map();
8702
+ let Jd = "";
8703
+ const qd = /* @__PURE__ */ new Map();
8705
8704
  Ud.forEach((t2, e2) => {
8706
- qd.length > 0 && (qd += "|"), qd += "\\b" + t2.cssKey + "\\b", Jd.set(t2.cssKey, e2);
8705
+ Jd.length > 0 && (Jd += "|"), Jd += "\\b" + t2.cssKey + "\\b", qd.set(t2.cssKey, e2);
8707
8706
  });
8708
- const Kd = new RegExp(`(\\s*(?:${qd}))`, "g"), Xd = (t2) => {
8707
+ const Kd = new RegExp(`(\\s*(?:${Jd}))`, "g"), Xd = (t2) => {
8709
8708
  if (!t2) return null;
8710
8709
  let e2 = t2.toLowerCase();
8711
8710
  e2 = e2.replace(/;/, "");
@@ -8719,7 +8718,7 @@ const Kd = new RegExp(`(\\s*(?:${qd}))`, "g"), Xd = (t2) => {
8719
8718
  })(n2[0])), e2 = e2.trim();
8720
8719
  const o2 = e2 ? e2.trim() : null;
8721
8720
  if (!r2 && !o2) return null;
8722
- return { patternType: Jd.get(r2 ?? "solid"), foreground: o2 ?? null };
8721
+ return { patternType: qd.get(r2 ?? "solid"), foreground: o2 ?? null };
8723
8722
  }, Yd = (t2, e2 = false, n2 = null) => {
8724
8723
  if (!t2 || !t2.getStops() || t2.getStops().length < 1) return null;
8725
8724
  if (1 === t2.getStops().length) return ed(t2.getStops()[0].getColor(), e2);
@@ -8819,7 +8818,7 @@ const Ru = (t2) => {
8819
8818
  })), !t2) return null;
8820
8819
  const n2 = {};
8821
8820
  return t2.style && (n2.style = t2.style), t2.color && (n2.color = t2.color), n2;
8822
- }, properties: { color: Au } }, Nu = { shorthand: (t2, e2) => {
8821
+ }, properties: { color: Au } }, Tu = { shorthand: (t2, e2) => {
8823
8822
  if (t2.isIBorder) return t2.getProperties();
8824
8823
  if ("string" == typeof t2) {
8825
8824
  const n2 = cu(t2, (t3) => {
@@ -8832,7 +8831,7 @@ const Ru = (t2) => {
8832
8831
  return { left: n2, right: n2, top: n2, bottom: n2, horizontal: null, vertical: null, diagonalUp: null, diagonalDown: null };
8833
8832
  }
8834
8833
  return t2;
8835
- }, properties: { top: Mu, left: Mu, right: Mu, bottom: Mu, horizontal: Mu, vertical: Mu, diagonalUp: Mu, diagonalDown: Mu } }, Tu = { shorthand: (t2, e2) => {
8834
+ }, properties: { top: Mu, left: Mu, right: Mu, bottom: Mu, horizontal: Mu, vertical: Mu, diagonalUp: Mu, diagonalDown: Mu } }, Nu = { shorthand: (t2, e2) => {
8836
8835
  if ("string" == typeof t2) {
8837
8836
  let e3 = pi.Styles.lookupDefault(t2);
8838
8837
  return void 0 !== e3 ? e3 : t2;
@@ -8866,7 +8865,7 @@ const Ru = (t2) => {
8866
8865
  let e3 = 400;
8867
8866
  if (e3 = "number" == typeof t3 ? t3 : parseFloat(t3), !isNaN(e3)) return e3;
8868
8867
  if ("string" == typeof t3) {
8869
- const e4 = o.textToKey(t3), n3 = Td.get(e4);
8868
+ const e4 = o.textToKey(t3), n3 = Nd.get(e4);
8870
8869
  if (n3) return n3;
8871
8870
  }
8872
8871
  return e3;
@@ -8898,21 +8897,21 @@ for (let t2 = 0; t2 < zu.length; t2++) {
8898
8897
  const e2 = zu[t2]?.shorthand;
8899
8898
  Pu.push(e2);
8900
8899
  }
8901
- const Wu = Pu.length, Hu = { properties: { font: Fu, fill: { shorthand: (t2, e2) => {
8900
+ const Hu = Pu.length, Wu = { properties: { font: Fu, fill: { shorthand: (t2, e2) => {
8902
8901
  t2.isIFill && (t2 = t2.toJSON());
8903
- for (let n2 = 0; n2 < Wu; n2++) {
8902
+ for (let n2 = 0; n2 < Hu; n2++) {
8904
8903
  let r2 = Pu[n2](t2, e2);
8905
8904
  if (r2?.type) return r2;
8906
8905
  }
8907
8906
  return t2;
8908
- }, getSubType: (t2) => t2.type === Ds.Type.None ? Ou : t2.type === Ds.Type.Solid ? Du : t2.type === Ds.Type.Gradient ? Bu : t2.type === Ds.Type.Pattern ? Lu : null }, alignment: ku, border: Nu, numberFormat: Tu } }, Vu = { properties: { style: Hu } }, $u = 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 }), ju = (e2, n2, r2, s2, i2, a2 = false) => {
8907
+ }, getSubType: (t2) => t2.type === Ds.Type.None ? Ou : t2.type === Ds.Type.Solid ? Du : t2.type === Ds.Type.Gradient ? Bu : t2.type === Ds.Type.Pattern ? Lu : null }, alignment: ku, border: Tu, numberFormat: Nu } }, Vu = { properties: { style: Wu } }, $u = 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 }), ju = (e2, n2, r2, s2, i2, a2 = false) => {
8909
8908
  if (null == e2) return $u;
8910
8909
  let l2 = "", c2 = null, h2 = null, d2 = null;
8911
8910
  if (r2 === t.Error) l2 = e2.getLabel();
8912
8911
  else if (r2 === t.RichData) l2 = "(Rich Object)";
8913
8912
  else if (r2 === t.Boolean) l2 = e2 ? "TRUE" : "FALSE";
8914
8913
  else if (s2) try {
8915
- l2 = Nr(s2, e2, { date1904: a2, spacingCharacter: "", digitCharacter: "", onRepeatChar: (t2, e3) => {
8914
+ l2 = Tr(s2, e2, { date1904: a2, spacingCharacter: "", digitCharacter: "", onRepeatChar: (t2, e3) => {
8916
8915
  h2 || (h2 = []), h2.push({ offset: t2, char: e3 });
8917
8916
  }, onSpacingChar: (t2, e3) => {
8918
8917
  d2 || (d2 = []), d2.push({ offset: t2, char: e3 });
@@ -8964,7 +8963,7 @@ const Wu = Pu.length, Hu = { properties: { font: Fu, fill: { shorthand: (t2, e2)
8964
8963
  }
8965
8964
  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 };
8966
8965
  return Object.freeze(v2);
8967
- }, Gu = Object.freeze({ fallbacks: o.EmptyArray, weight: 400, style: Ko.Style.Normal, fill: Ls.Scheme.Tx1, letterSpacing: null, underline: Ko.UnderlineStyle.None, strike: false, scheme: Ko.Scheme.Minor, verticalAlign: Ko.VerticalAlignment.Baseline, shadow: false, outline: false, extend: false }), Uu = Object.freeze({ style: Qs.StrokeStyle.None, color: Ls.Scheme.Tx1 }), qu = Object.freeze({ [Qs.Edge.Top]: Uu, [Qs.Edge.Left]: Uu, [Qs.Edge.Bottom]: Uu, [Qs.Edge.Right]: Uu, [Qs.Edge.Horizontal]: Uu, [Qs.Edge.Vertical]: Uu, [Qs.Edge.DiagonalUp]: Uu, [Qs.Edge.DiagonalDown]: Uu }), Ju = 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 }), Ku = Object.freeze({ locked: false, formulaHidden: false }), Xu = Object.freeze({ fill: { type: Ds.Type.None }, numberFormat: "General", alignment: Ju, font: Gu, border: qu, protection: Ku, quotePrefix: false, namedStyle: null }), Yu = (() => {
8966
+ }, Gu = Object.freeze({ fallbacks: o.EmptyArray, weight: 400, style: Ko.Style.Normal, fill: Ls.Scheme.Tx1, letterSpacing: null, underline: Ko.UnderlineStyle.None, strike: false, scheme: Ko.Scheme.Minor, verticalAlign: Ko.VerticalAlignment.Baseline, shadow: false, outline: false, extend: false }), Uu = Object.freeze({ style: Qs.StrokeStyle.None, color: Ls.Scheme.Tx1 }), Ju = Object.freeze({ [Qs.Edge.Top]: Uu, [Qs.Edge.Left]: Uu, [Qs.Edge.Bottom]: Uu, [Qs.Edge.Right]: Uu, [Qs.Edge.Horizontal]: Uu, [Qs.Edge.Vertical]: Uu, [Qs.Edge.DiagonalUp]: Uu, [Qs.Edge.DiagonalDown]: Uu }), qu = 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 }), Ku = Object.freeze({ locked: false, formulaHidden: false }), Xu = Object.freeze({ fill: { type: Ds.Type.None }, numberFormat: "General", alignment: qu, font: Gu, border: Ju, protection: Ku, quotePrefix: false, namedStyle: null }), Yu = (() => {
8968
8967
  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: { ...Gu, fill: Ls.Scheme.Hlink, underline: Ko.UnderlineStyle.Single } }, { named: Si.BuiltInName.FollowedHyperlink, font: { ...Gu, fill: Ls.Scheme.FolHlink, underline: Ko.UnderlineStyle.Single } }, { named: Si.BuiltInName.Note, fill: "FFFFFFCC", font: { ...Gu, style: Ko.Style.Normal, fill: Ls.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: { ...Gu, fill: "FFFF0000" } }, { named: Si.BuiltInName.Unknown12 }, { named: Si.BuiltInName.Unknown13 }, { named: Si.BuiltInName.Unknown14 }, { named: Si.BuiltInName.Title, font: { ...Gu, size: 18, fill: Ls.Scheme.Tx2 } }, { named: Si.BuiltInName.Heading1, font: { ...Gu, size: 15, weight: "bold", fill: Ls.Scheme.Tx2 }, border: { bottom: { style: Qs.StrokeStyle.Thick, color: Ls.Scheme.Accent1 } } }, { named: Si.BuiltInName.Heading2, font: { ...Gu, size: 13, weight: "bold", fill: Ls.Scheme.Tx2 }, border: { bottom: { style: Qs.StrokeStyle.Thick, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Si.BuiltInName.Heading3, font: { ...Gu, weight: "bold", fill: Ls.Scheme.Tx2 }, border: { bottom: { style: Qs.StrokeStyle.Medium, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Si.BuiltInName.Heading4, font: { weight: "bold", fill: Ls.Scheme.Tx2, ...Gu } }, { named: Si.BuiltInName.Input, fill: "FFFFCC99", font: { ...Gu, 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: { ...Gu, 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: { ...Gu, 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: { ...Gu, fill: Ls.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: { ...Gu, fill: "FFFA7D00" }, border: { bottom: { style: Qs.StrokeStyle.Double, color: "FFFF8001" } } }, { named: Si.BuiltInName.Total, font: { ...Gu, weight: "bold", fill: Ls.Scheme.Tx1 }, border: { top: { style: Qs.StrokeStyle.Thin, color: Ls.Scheme.Accent1 }, bottom: { style: Qs.StrokeStyle.Double, color: Ls.Scheme.Accent1 } } }, { named: Si.BuiltInName.Good, fill: "FFC6EFCE", font: { ...Gu, fill: "FF006100" } }, { named: Si.BuiltInName.Bad, fill: "FFFFC7CE", font: { ...Gu, fill: "FF9C0006" } }, { named: Si.BuiltInName.Neutral, fill: "FFFFEB9C", font: { ...Gu, 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: { ...Gu, style: Ko.Style.Italic, fill: "FF7F7F7F" } }];
8969
8968
  for (let e2 = 29; e2 <= 52; e2++) {
8970
8969
  const n2 = (e2 - 29) % 4, r2 = Math.floor((e2 - 29) / 4);
@@ -9601,7 +9600,7 @@ class _g {
9601
9600
  }
9602
9601
  cloneWithUpdate(t2) {
9603
9602
  if (void 0 === t2) return this;
9604
- const e2 = this._c, n2 = this._r, r2 = this._p, o2 = f.resolveTypedUpdates(t2, Hu, e2, r2);
9603
+ const e2 = this._c, n2 = this._r, r2 = this._p, o2 = f.resolveTypedUpdates(t2, Wu, e2, r2);
9605
9604
  return new _g(e2, n2, o2);
9606
9605
  }
9607
9606
  copyTo(t2, e2) {
@@ -9663,7 +9662,7 @@ class _g {
9663
9662
  const y2 = 1 === g2 ? d2[_2] : d2[S2];
9664
9663
  if (g2 > 1 && !pg(y2, d2[S2])) return;
9665
9664
  if (!pg(w2, y2)) return;
9666
- const E2 = { border: { [e2]: h2[e2], [r3]: h2[r3], [m2]: h2[m2], [S2]: w2, [_2]: h2[_2], [p2]: d2[p2] } }, C2 = f.resolveTypedUpdates(E2, Hu, u2, i2);
9665
+ const E2 = { border: { [e2]: h2[e2], [r3]: h2[r3], [m2]: h2[m2], [S2]: w2, [_2]: h2[_2], [p2]: d2[p2] } }, C2 = f.resolveTypedUpdates(E2, Wu, u2, i2);
9667
9666
  return new _g(u2, n2, C2);
9668
9667
  }
9669
9668
  return new _g(u2, n2, this._p);
@@ -9826,14 +9825,14 @@ const bg = new class {
9826
9825
  const v2 = c2.colHeaders, x2 = v2.findOffset.bind(v2), I2 = v2.findIndex.bind(v2);
9827
9826
  let R2 = x2(h2);
9828
9827
  const A2 = R2;
9829
- let M2 = x2(h2 + b2), N2 = M2 - R2, T2 = h2, F2 = h2;
9830
- const k2 = { x: 0, y: 0, width: N2, height: d2?.height ?? 0 };
9828
+ let M2 = x2(h2 + b2), T2 = M2 - R2, N2 = h2, F2 = h2;
9829
+ const k2 = { x: 0, y: 0, width: T2, height: d2?.height ?? 0 };
9831
9830
  const O2 = h2 - h2 + b2;
9832
- let D2 = d2 ? d2.width - N2 : 0, B2 = k2;
9833
- N2 > 0 && D2 > 0 && !m2 && (S2 === p.Center && (D2 /= 2), S2 !== p.Left && S2 !== p.Center || (F2 = I2(M2 + D2), null !== a2 && (F2 = Math.min(F2, a2.colIndex - 1)), M2 = x2(F2), C2 = D2, y2 = F2 - 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), k2.x = A2 - R2, B2.x = k2.x), b2 > 1 && (y2 = S2 === p.Center ? Math.max(O2 - 1, y2) : b2 - 1, M2 = x2(h2 + 1), k2.width = M2 - R2, B2 = { ...k2 }, B2.width = N2);
9831
+ let D2 = d2 ? d2.width - T2 : 0, B2 = k2;
9832
+ T2 > 0 && D2 > 0 && !m2 && (S2 === p.Center && (D2 /= 2), S2 !== p.Left && S2 !== p.Center || (F2 = I2(M2 + D2), null !== a2 && (F2 = Math.min(F2, a2.colIndex - 1)), M2 = x2(F2), C2 = D2, y2 = F2 - h2), S2 !== p.Right && S2 !== p.Center || (N2 = I2(R2 - D2), null !== i2 && (N2 = Math.max(N2, i2.colIndex + 1)), R2 = x2(N2), E2 = D2, w2 = h2 - N2), k2.x = A2 - R2, B2.x = k2.x), b2 > 1 && (y2 = S2 === p.Center ? Math.max(O2 - 1, y2) : b2 - 1, M2 = x2(h2 + 1), k2.width = M2 - R2, B2 = { ...k2 }, B2.width = T2);
9834
9833
  return { anchorBounds: k2, leftIndex: w2, rightIndex: y2, leftOffset: E2, rightOffset: C2, colSpan: O2, colBounds: B2 };
9835
9834
  };
9836
- class Ng {
9835
+ class Tg {
9837
9836
  constructor(t2, e2) {
9838
9837
  if (this._styles = t2, this._ri = e2, e2?.table) {
9839
9838
  const t3 = e2?.table;
@@ -9862,31 +9861,31 @@ class Ng {
9862
9861
  }
9863
9862
  let i2 = null;
9864
9863
  const a2 = this._table?.getPropertiesAt(t2, e2, n2);
9865
- a2 && (i2 = i2 ? f.resolveTypedUpdates(a2, Hu, s2, i2) : a2), r2 && (i2 = i2 ? f.resolveTypedUpdates(r2, Hu, s2, i2) : r2);
9864
+ a2 && (i2 = i2 ? f.resolveTypedUpdates(a2, Wu, s2, i2) : a2), r2 && (i2 = i2 ? f.resolveTypedUpdates(r2, Wu, s2, i2) : r2);
9866
9865
  const l2 = this._conditionals;
9867
9866
  if (l2) for (let r3 = 0; r3 < l2.length; r3++) {
9868
9867
  const o3 = l2[r3].getPropertiesAt(t2, e2, n2);
9869
- o3 && (i2 = i2 ? f.resolveTypedUpdates(o3, Hu, s2, i2) : o3);
9868
+ o3 && (i2 = i2 ? f.resolveTypedUpdates(o3, Wu, s2, i2) : o3);
9870
9869
  }
9871
- return o2 && (i2 = i2 ? f.resolveTypedUpdates(o2, Hu, s2, i2) : o2), i2;
9870
+ return o2 && (i2 = i2 ? f.resolveTypedUpdates(o2, Wu, s2, i2) : o2), i2;
9872
9871
  }
9873
9872
  cloneWithUpdate(t2) {
9874
9873
  return (this._ri.directStyle ?? this._styles.getNormalRanged()).cloneWithUpdate(t2);
9875
9874
  }
9876
9875
  }
9877
- const Tg = (t2, e2, n2, r2) => {
9876
+ const Ng = (t2, e2, n2, r2) => {
9878
9877
  const o2 = r2.styles;
9879
- return gg(o2, n2 ? new Ng(o2, n2) : null, e2, r2.styleUpdater);
9878
+ return gg(o2, n2 ? new Tg(o2, n2) : null, e2, r2.styleUpdater);
9880
9879
  }, Fg = (e2, n2, r2, s2, i2, a2, l2, c2 = null, h2 = Cg) => {
9881
9880
  if (null === r2) return n2 ? n2.getBestFit() : null;
9882
9881
  const d2 = e2 === t.String, u2 = n2.getFont(), g2 = u2.getWeight(), m2 = u2.getSize(), f2 = u2.getFamily(), p2 = n2.getAlignment(), _2 = p2.getOverflow(), S2 = p2.getRotation(), w2 = p2.getVertical(), y2 = n2.getNumberFormat(), E2 = d2 && _2 === yo.Overflow.Visible, C2 = d2 && (_2 === yo.Overflow.Wrap || w2 === yo.VerticalAlignment.Justify || w2 === yo.VerticalAlignment.Distributed), b2 = (c2 ?? "") + "\0" + m2 + f2 + g2 + y2 + S2 + E2 + C2 + a2 + l2 + (c2 ? "" : r2), v2 = h2.get(b2);
9883
9882
  if (v2) return v2;
9884
9883
  let x2 = null, I2 = null;
9885
9884
  const R2 = Rg(e2, n2), A2 = R2.top + R2.bottom + +nm(n2);
9886
- let M2 = false, N2 = false;
9887
- l2 && (N2 = true, (0 !== S2 || C2) && (N2 = false));
9888
- const T2 = N2 ? void 0 : Ig(e2, n2, r2, s2), F2 = R2.left + R2.right + 2;
9889
- if (T2) {
9885
+ let M2 = false, T2 = false;
9886
+ l2 && (T2 = true, (0 !== S2 || C2) && (T2 = false));
9887
+ const N2 = T2 ? void 0 : Ig(e2, n2, r2, s2), F2 = R2.left + R2.right + 2;
9888
+ if (N2) {
9890
9889
  if (e2 === t.Number && "General" === y2 && a2) {
9891
9890
  let t2 = r2, e3 = o.splitNumber(t2), s3 = "";
9892
9891
  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);
@@ -9895,7 +9894,7 @@ const Tg = (t2, e2, n2, r2) => {
9895
9894
  } else {
9896
9895
  let t2 = null;
9897
9896
  C2 && (t2 = { width: Math.max(1, i2 - F2) });
9898
- const e3 = T2.layout(t2);
9897
+ const e3 = N2.layout(t2);
9899
9898
  x2 = e3.bounds.width, I2 = e3.bounds.height;
9900
9899
  }
9901
9900
  if (null !== x2 && (x2 += F2), null !== I2 && (I2 += A2), M2 = e2 === t.String, S2) {
@@ -10041,7 +10040,7 @@ class Og {
10041
10040
  getStyle(t2 = false) {
10042
10041
  if (!t2 && this._styleConditional) return this._styleConditional;
10043
10042
  if (t2 && this._styleSpecific) return this._styleSpecific;
10044
- const e2 = Tg(0, c.cellToRange(this._coords), this._ri, this._options);
10043
+ const e2 = Ng(0, c.cellToRange(this._coords), this._ri, this._options);
10045
10044
  return t2 ? this._styleSpecific = e2 : this._styleConditional = e2, e2;
10046
10045
  }
10047
10046
  createTemporaryCell(t2) {
@@ -10050,7 +10049,7 @@ class Og {
10050
10049
  const n2 = vg(t2, this._options);
10051
10050
  let r2 = this._ri;
10052
10051
  if (void 0 !== n2.style) {
10053
- const t3 = this._coords ?? c.EmptyCell, o3 = c.cellToRange(t3), s3 = () => Tg(0, o3, this._ri, this._options), i2 = Zu(this._options.styles, n2.style, s3), a2 = (this._ri?.directStyle ?? new _g(e2.styles, o3)).cloneWithUpdate(i2);
10052
+ const t3 = this._coords ?? c.EmptyCell, o3 = c.cellToRange(t3), s3 = () => Ng(0, o3, this._ri, this._options), i2 = Zu(this._options.styles, n2.style, s3), a2 = (this._ri?.directStyle ?? new _g(e2.styles, o3)).cloneWithUpdate(i2);
10054
10053
  r2 = { ...r2, directStyle: a2 };
10055
10054
  }
10056
10055
  let o2 = this._t, s2 = this._v;
@@ -10086,14 +10085,14 @@ class Og {
10086
10085
  const s3 = parseFloat(e3), a2 = s3 % 1 != 0, l2 = s3 >= 1;
10087
10086
  if (s3 < 0) return o.castToString(e3);
10088
10087
  if (!n2 || r4 || a2) if (!r4 || n2 || l2) {
10089
- const e4 = Tr("Short Date", t2, i2), n3 = Tr("Long Time", t2, i2);
10088
+ const e4 = Nr("Short Date", t2, i2), n3 = Nr("Long Time", t2, i2);
10090
10089
  if (e4 && n3) return e4.fmt + " " + n3.fmt;
10091
10090
  } else {
10092
- const e4 = Tr("Long Time", t2, i2);
10091
+ const e4 = Nr("Long Time", t2, i2);
10093
10092
  if (e4) return e4.fmt;
10094
10093
  }
10095
10094
  else {
10096
- const e4 = Tr("Short Date", t2, i2);
10095
+ const e4 = Nr("Short Date", t2, i2);
10097
10096
  if (e4) return e4.fmt;
10098
10097
  }
10099
10098
  }
@@ -10221,7 +10220,7 @@ class Bg {
10221
10220
  }
10222
10221
  const Lg = [null], zg = { colIndex: -1, rowIndex: -1 };
10223
10222
  let Pg;
10224
- const Wg = (t2, n2, r2, o2 = false) => {
10223
+ const Hg = (t2, n2, r2, o2 = false) => {
10225
10224
  const s2 = r2 === e.Orientation.Row, i2 = t2.length, a2 = new Array(i2);
10226
10225
  for (let e2 = 0; e2 < i2; e2++) {
10227
10226
  const r3 = t2[e2];
@@ -10234,7 +10233,7 @@ const Wg = (t2, n2, r2, o2 = false) => {
10234
10233
  }
10235
10234
  }
10236
10235
  return a2;
10237
- }, Hg = (t2, e2, n2) => {
10236
+ }, Wg = (t2, e2, n2) => {
10238
10237
  const r2 = e2, o2 = t2.length;
10239
10238
  for (let e3 = 0; e3 < o2; e3++) {
10240
10239
  const o3 = t2[e3];
@@ -10262,7 +10261,7 @@ const Wg = (t2, n2, r2, o2 = false) => {
10262
10261
  if (t2.rowStart <= n2.rowStart && t2.rowEnd >= n2.rowEnd) return e.Orientation.Column;
10263
10262
  }
10264
10263
  return t2 ? ((t3) => t3.rowEnd - t3.rowStart > t3.colEnd - t3.colStart ? e.Orientation.Column : e.Orientation.Row)(t2) : e.Orientation.Row;
10265
- }, Gg = () => false, Ug = () => true, qg = () => null, Jg = () => ia, Kg = () => 0, Xg = new class extends Og {
10264
+ }, Gg = () => false, Ug = () => true, Jg = () => null, qg = () => ia, Kg = () => 0, Xg = new class extends Og {
10266
10265
  constructor() {
10267
10266
  super(null, null);
10268
10267
  }
@@ -10282,7 +10281,7 @@ const Wg = (t2, n2, r2, o2 = false) => {
10282
10281
  return `${this._coords ? zc(this._coords) : Ac} => ${this._v ?? "{blank}"}`;
10283
10282
  }
10284
10283
  }(), Yg = () => Qg, Qg = { forEach: () => {
10285
- }, [Symbol.iterator]: Jg, entries: Jg, select: yh, find: yh, calculate: yh, getCell: () => Xg, getValue: qg, waitForCalcs: () => Promise.resolve(Qg), setValue: yh, setFormula: yh, setValues: yh, updateCells: yh, getCells: () => [[Xg]], getStyle: yh, getValues: () => [[null]], getBounds: qg, getIntersect: Yg, getUnion: Yg, getDifferences: yh, getResizeBy: Yg, getResizeTo: Yg, getOffsetBy: Yg, getOffsetTo: Yg, getFixed: Yg, getUsedRange: Yg, getEntireRows: Yg, getEntireColumns: Yg, getSurrounding: yh, getExtended: yh, isEntireRows: Gg, isEntireColumns: Gg, isEntireRange: Gg, getWidth: Kg, getHeight: Kg, 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: Kg, isContentful: Gg, addListener: yh, getColumnStart: Kg, getRowStart: Kg, getColumnEnd: Kg, getRowEnd: Kg, getRowCount: Kg, getColumnCount: Kg, getVisible: yh, getCoords: qg, isEmpty: Ug, toString: () => Ac, getA1: () => Ac, isInvalid: Ug, getSheet: qg, isReadOnly: Ug, isICellRange: true };
10284
+ }, [Symbol.iterator]: qg, entries: qg, select: yh, find: yh, calculate: yh, getCell: () => Xg, getValue: Jg, waitForCalcs: () => Promise.resolve(Qg), setValue: yh, setFormula: yh, setValues: yh, updateCells: yh, getCells: () => [[Xg]], getStyle: yh, getValues: () => [[null]], getBounds: Jg, getIntersect: Yg, getUnion: Yg, getDifferences: yh, getResizeBy: Yg, getResizeTo: Yg, getOffsetBy: Yg, getOffsetTo: Yg, getFixed: Yg, getUsedRange: Yg, getEntireRows: Yg, getEntireColumns: Yg, getSurrounding: yh, getExtended: yh, isEntireRows: Gg, isEntireColumns: Gg, isEntireRange: Gg, getWidth: Kg, getHeight: Kg, 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: Kg, isContentful: Gg, addListener: yh, getColumnStart: Kg, getRowStart: Kg, getColumnEnd: Kg, getRowEnd: Kg, getRowCount: Kg, getColumnCount: Kg, getVisible: yh, getCoords: Jg, isEmpty: Ug, toString: () => Ac, getA1: () => Ac, isInvalid: Ug, getSheet: Jg, isReadOnly: Ug, isICellRange: true };
10286
10285
  function Zg(t2, e2 = null, n2 = null, r2 = Ac) {
10287
10286
  return t2 || n2 ? Object.freeze({ ...Qg, getSheet: () => t2, bounds: () => n2, getA1: () => r2, toString: () => n2 ? Vc(n2, e2) : r2 }) : Qg;
10288
10287
  }
@@ -10425,7 +10424,7 @@ const tm = /^[\\+-]?[0-9]*\.?[0-9]*$/, em = (t2, e2, r2) => {
10425
10424
  }, sm = (t2, n2, r2, o2) => {
10426
10425
  const s2 = o2?.asJSDate;
10427
10426
  let i2;
10428
- 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));
10427
+ r2 ? i2 = Th : (s2 || o2?.includeMergeOverflow) && (i2 = {}, s2 && (i2[Ah.Type.Style] = false, i2[Ah.Type.Table] = false), o2.includeMergeOverflow && (i2[Ah.Type.Merge] = false));
10429
10428
  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 = [];
10430
10429
  let u2, g2 = -1, m2 = null, f2 = 0;
10431
10430
  for (u2 = c2.next(); !u2.done; ) {
@@ -10602,7 +10601,7 @@ class _m {
10602
10601
  return this._getState()?.anchor ?? null;
10603
10602
  }
10604
10603
  getAnchorType() {
10605
- return this._getState()?.anchorType ?? qi.Type.TwoCell;
10604
+ return this._getState()?.anchorType ?? Ji.Type.TwoCell;
10606
10605
  }
10607
10606
  isProtected() {
10608
10607
  return this._options.isProtected?.() ?? false;
@@ -10860,7 +10859,7 @@ class Rm extends _m {
10860
10859
  return n2.length > 0 && (t2.fields = n2), e2.sort, 0 === Object.keys(t2).length ? null : t2;
10861
10860
  }
10862
10861
  }
10863
- const Am = "A table must have a least one row for the data.", Mm = "Table1", Nm = Object.freeze({ showRowStripes: true, showColumnStripes: false, showFirstColumn: false, showLastColumn: false }), Tm = (t2, e2, n2) => {
10862
+ const Am = "A table must have a least one row for the data.", Mm = "Table1", Tm = Object.freeze({ showRowStripes: true, showColumnStripes: false, showFirstColumn: false, showLastColumn: false }), Nm = (t2, e2, n2) => {
10864
10863
  if (t2.length !== e2.length) return console.warn("make columns the same length"), false;
10865
10864
  const r2 = /* @__PURE__ */ new Set();
10866
10865
  for (let t3 = 0; t3 < e2.length; t3++) {
@@ -11036,7 +11035,7 @@ class Om extends _m {
11036
11035
  }, getCoords: () => n2, getSource: () => s2, getName: () => r2, getMarkOptions: () => i2, isISnapshot: true };
11037
11036
  }
11038
11037
  getAnchorType() {
11039
- return qi.Type.TwoCell;
11038
+ return Ji.Type.TwoCell;
11040
11039
  }
11041
11040
  getStyle() {
11042
11041
  if (this._styleCache) return this._styleCache;
@@ -11154,10 +11153,10 @@ class Om extends _m {
11154
11153
  return n2 ? { ...n2, rowStart: n2.rowEnd - e2 + 1 } : null;
11155
11154
  }
11156
11155
  getStyleOptions() {
11157
- return this.isClosed() ? Nm : this._getState()?.styleOptions;
11156
+ return this.isClosed() ? Tm : this._getState()?.styleOptions;
11158
11157
  }
11159
11158
  updateStyleOptions(t2, e2 = "Update Style Info") {
11160
- const n2 = this.getStyleOptions(), r2 = t2 ? { ...n2, ...t2 } : Nm;
11159
+ const n2 = this.getStyleOptions(), r2 = t2 ? { ...n2, ...t2 } : Tm;
11161
11160
  return this._modifyTable({ styleOptions: r2 }, e2), this._styleCache = null, this._getEmitter().notify("onStyleChange"), this;
11162
11161
  }
11163
11162
  getStyleAt(t2) {
@@ -11287,7 +11286,7 @@ class Om extends _m {
11287
11286
  n3.add(a3.toLocaleLowerCase()), t3[i3]?.name !== a3 && (t3[i3].name = a3, s3++);
11288
11287
  }
11289
11288
  return s3 > 0;
11290
- })(a2, c2) : Tm(a2, c2, o2);
11289
+ })(a2, c2) : Nm(a2, c2, o2);
11291
11290
  if (!(r2 || c2.length !== a2.length || l2)) return;
11292
11291
  const h2 = "Update Columns";
11293
11292
  this._isUpdatingHeader = true;
@@ -11343,7 +11342,7 @@ class Om extends _m {
11343
11342
  const o4 = l2 + (c2 + r4 + 1);
11344
11343
  o4 && !t3.has(o4.toLowerCase().trim()) && (e3.name = o4);
11345
11344
  }
11346
- Tm(s2, o3, null);
11345
+ Nm(s2, o3, null);
11347
11346
  } else s2 = o3, i2 = s2.splice(n3, -e2);
11348
11347
  this._updateState({ columns: s2 }, { description: "Process Columns" }), this._updateColumns(s2, false, true, i2);
11349
11348
  } else t2.after || this._updateState({ columns: [] }, { description: "Process Columns" });
@@ -11408,7 +11407,7 @@ class Om extends _m {
11408
11407
  const t2 = {}, e2 = this._getState();
11409
11408
  if (!e2) return null;
11410
11409
  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) {
11411
- const n2 = o.diffValues(e2.styleOptions, { ...Nm, name: null });
11410
+ const n2 = o.diffValues(e2.styleOptions, { ...Tm, name: null });
11412
11411
  n2 && (t2.styleOptions = n2);
11413
11412
  }
11414
11413
  if (e2.filter) {
@@ -11424,11 +11423,11 @@ class Om extends _m {
11424
11423
  _fromJSON(t2) {
11425
11424
  const e2 = t2 ?? {}, n2 = { headerRowCount: 1, totalsRowCount: 0 };
11426
11425
  var r2;
11427
- if (e2.name && (n2.name = e2.name), e2.ref && (e2.ref = (r2 = e2.ref) && "string" == typeof r2 ? qc(r2) : r2), this._names) {
11426
+ if (e2.name && (n2.name = e2.name), e2.ref && (e2.ref = (r2 = e2.ref) && "string" == typeof r2 ? Jc(r2) : r2), this._names) {
11428
11427
  const t3 = this._names.findValidName(n2.name ?? Mm);
11429
11428
  n2.name !== t3 && (n2.name = t3);
11430
11429
  }
11431
- n2.name || (n2.name = Mm), e2.description && (n2.description = e2.description), void 0 !== e2.headerRowCount && (n2.headerRowCount = e2.headerRowCount), void 0 !== e2.totalsRowCount && (n2.totalsRowCount = e2.totalsRowCount), n2.columns = e2.columns ?? o.EmptyArray, n2.styleOptions = { ...Nm, ...e2.styleOptions };
11430
+ n2.name || (n2.name = Mm), e2.description && (n2.description = e2.description), void 0 !== e2.headerRowCount && (n2.headerRowCount = e2.headerRowCount), void 0 !== e2.totalsRowCount && (n2.totalsRowCount = e2.totalsRowCount), n2.columns = e2.columns ?? o.EmptyArray, n2.styleOptions = { ...Tm, ...e2.styleOptions };
11432
11431
  const s2 = "Insert Table";
11433
11432
  this._updateState(n2, { description: s2 });
11434
11433
  const i2 = this._columnsFromSheet();
@@ -11460,7 +11459,7 @@ class zm {
11460
11459
  for (let i2 = 0; i2 < s2; i2++) {
11461
11460
  const s3 = r2[i2], a2 = t2[s3];
11462
11461
  if (!a2 || !o.isObject(a2)) continue;
11463
- const l2 = f.resolveTypedUpdates(Object.freeze(a2), Hu, n2);
11462
+ const l2 = f.resolveTypedUpdates(Object.freeze(a2), Wu, n2);
11464
11463
  e2[s3] = l2;
11465
11464
  }
11466
11465
  return Object.freeze(e2);
@@ -11470,8 +11469,8 @@ class zm {
11470
11469
  }
11471
11470
  getPropertiesAt(t2, e2) {
11472
11471
  const n2 = this._table, r2 = this._styles, o2 = this._properties;
11473
- Wm.rowIndex = t2, Wm.colIndex = e2;
11474
- const s2 = n2.getVisibleCellCoords(Wm), i2 = n2.getVisibleRefRangeCoords();
11472
+ Hm.rowIndex = t2, Hm.colIndex = e2;
11473
+ const s2 = n2.getVisibleCellCoords(Hm), i2 = n2.getVisibleRefRangeCoords();
11475
11474
  if (!i2) return null;
11476
11475
  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();
11477
11476
  let g2 = {}, m2 = false, p2 = 0;
@@ -11493,7 +11492,7 @@ class zm {
11493
11492
  const d3 = { rowIndex: c2, colIndex: n3 }, u3 = { rowStart: p2, rowEnd: l2 - S2 - 1, colStart: 0, colEnd: Math.min(a2 - h2, s3 ? t3 : e3) };
11494
11493
  s3 && 0 === n3 && h2 > 0 && i3.border?.left && o2.secondColumnStripe?.border.right && (i3 = { ...i3 }, i3.border = { ...i3.border }, delete i3.border.left), s3 && n3 === t3 - 1 && h2 < a2 - 1 && i3.border?.right && o2.secondColumnStripe?.border.left && (i3 = { ...i3 }, i3.border = { ...i3.border }, delete i3.border.right);
11495
11494
  const m3 = i3.border ? Lm(i3, d3, u3) : i3;
11496
- g2 = f.resolveTypedUpdates(m3, Hu, r2, g2);
11495
+ g2 = f.resolveTypedUpdates(m3, Wu, r2, g2);
11497
11496
  }
11498
11497
  }
11499
11498
  if (E2 && u2.showRowStripes) {
@@ -11506,40 +11505,40 @@ class zm {
11506
11505
  const u3 = { colIndex: h2, rowIndex: s3 }, m3 = { colStart: 0, colEnd: a2 - 1, rowStart: 0, rowEnd: Math.min(l2 - c2, i3 ? e3 : n3) };
11507
11506
  i3 && 0 === s3 && c2 > t3 && d3.border?.top && o2.secondRowStripe?.border.bottom && (d3 = { ...d3 }, d3.border = { ...d3.border }, delete d3.border.top), i3 && s3 === e3 - 1 && c2 < l2 - 1 && d3.border?.bottom && o2.secondRowStripe?.border.top && (d3 = { ...d3 }, d3.border = { ...d3.border }, delete d3.border.bottom);
11508
11507
  const p3 = d3.border ? Lm(d3, u3, m3) : d3;
11509
- g2 = f.resolveTypedUpdates(p3, Hu, r2, g2);
11508
+ g2 = f.resolveTypedUpdates(p3, Wu, r2, g2);
11510
11509
  }
11511
11510
  }
11512
11511
  if (w2 && o2.lastColumn) {
11513
11512
  let t3 = o2.lastColumn;
11514
- t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11513
+ t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11515
11514
  }
11516
11515
  if (y2 && o2.firstColumn) {
11517
11516
  let t3 = o2.firstColumn;
11518
- t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11517
+ t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11519
11518
  }
11520
11519
  if (m2 && o2.headerRow) {
11521
11520
  let t3 = o2.headerRow;
11522
- t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11521
+ t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11523
11522
  }
11524
11523
  if (_2 && o2.totalRow) {
11525
11524
  let t3 = o2.totalRow;
11526
- t3.border && (t3 = Lm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11525
+ t3.border && (t3 = Lm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11527
11526
  }
11528
11527
  if (m2 && y2 && o2.firstHeaderCell) {
11529
11528
  let t3 = o2.firstHeaderCell;
11530
- t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11529
+ t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11531
11530
  }
11532
11531
  if (m2 && w2 && o2.lastHeaderCell) {
11533
11532
  let t3 = o2.lastHeaderCell;
11534
- t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11533
+ t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11535
11534
  }
11536
11535
  if (_2 && y2 && o2.firstTotalCell) {
11537
11536
  let t3 = o2.firstTotalCell;
11538
- t3.border && (t3 = Lm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11537
+ t3.border && (t3 = Lm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11539
11538
  }
11540
11539
  if (_2 && w2 && o2.lastTotalCell) {
11541
11540
  let t3 = o2.lastTotalCell;
11542
- t3.border && (t3 = Lm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11541
+ t3.border && (t3 = Lm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11543
11542
  }
11544
11543
  return m2 && o2.headerRow && n2.getColumnFilter(h2) && !n2.getColumnFilter(h2).hasHiddenButton() && (g2.insets = { right: 15 }), g2;
11545
11544
  }
@@ -11555,7 +11554,7 @@ class Pm {
11555
11554
  for (let i2 = 0; i2 < s2; i2++) {
11556
11555
  const s3 = r2[i2], a2 = t2[s3];
11557
11556
  if (!a2 || !o.isObject(a2)) continue;
11558
- const l2 = f.resolveTypedUpdates(Object.freeze(a2), Hu, n2);
11557
+ const l2 = f.resolveTypedUpdates(Object.freeze(a2), Wu, n2);
11559
11558
  e2[s3] = l2;
11560
11559
  }
11561
11560
  return Object.freeze(e2);
@@ -11590,8 +11589,8 @@ class Pm {
11590
11589
  return true;
11591
11590
  }
11592
11591
  }
11593
- const Wm = { rowIndex: 0, colIndex: 0 };
11594
- class Hm extends _g {
11592
+ const Hm = { rowIndex: 0, colIndex: 0 };
11593
+ class Wm extends _g {
11595
11594
  constructor(t2, e2) {
11596
11595
  super(t2, c.EmptyRange, e2);
11597
11596
  }
@@ -11603,7 +11602,7 @@ class Hm extends _g {
11603
11602
  }
11604
11603
  cloneWithUpdate(t2) {
11605
11604
  if (void 0 === t2) return this;
11606
- const e2 = this._c, n2 = this._r, r2 = f.resolveTypedUpdates(t2, Hu, e2, this._p);
11605
+ const e2 = this._c, n2 = this._r, r2 = f.resolveTypedUpdates(t2, Wu, e2, this._p);
11607
11606
  return new _g(e2, n2, r2);
11608
11607
  }
11609
11608
  _createShifted(t2) {
@@ -11637,7 +11636,7 @@ class Hm extends _g {
11637
11636
  }
11638
11637
  class Vm {
11639
11638
  constructor(t2, e2, n2, r2 = null) {
11640
- this._name = e2.name, this._properties = e2, this._rangeStyle = new Hm(t2, e2.style), this._doDelete = n2, this._builtInID = r2;
11639
+ this._name = e2.name, this._properties = e2, this._rangeStyle = new Wm(t2, e2.style), this._doDelete = n2, this._builtInID = r2;
11641
11640
  }
11642
11641
  getRanged() {
11643
11642
  return this._rangeStyle;
@@ -11713,7 +11712,7 @@ class jm {
11713
11712
  for (let n2 = 0; n2 < t2.length; n2++) {
11714
11713
  const r2 = t2[n2], o2 = { ...r2 }, s2 = r2.named;
11715
11714
  delete o2.named;
11716
- const i2 = f.resolveTypedUpdates(o2, Hu, this), a2 = new Vm(this, { name: s2, style: i2 }, this._hideOrRemoveNamed.bind(this), n2);
11715
+ const i2 = f.resolveTypedUpdates(o2, Wu, this), a2 = new Vm(this, { name: s2, style: i2 }, this._hideOrRemoveNamed.bind(this), n2);
11717
11716
  s2 === Si.BuiltInName.Normal && (this._normalRanged = a2.getRanged(), this._normalStyle = gg(this, null)), e2.set(s2.toLowerCase(), a2);
11718
11717
  }
11719
11718
  }
@@ -11888,7 +11887,7 @@ class jm {
11888
11887
  }
11889
11888
  normalize(t2) {
11890
11889
  if (!t2) return null;
11891
- const e2 = f.resolveTypedUpdates(t2, Hu, this), n2 = Xu;
11890
+ const e2 = f.resolveTypedUpdates(t2, Wu, this), n2 = Xu;
11892
11891
  let r2 = null;
11893
11892
  if (r2 = e2.named ? this.getNamed(e2.named)?.getRanged().getPropertiesAt(0, 0, null) : this._normalRanged.getPropertiesAt(0, 0, null), r2) {
11894
11893
  const t3 = { ...r2 };
@@ -11995,7 +11994,7 @@ class jm {
11995
11994
  }
11996
11995
  }
11997
11996
  const Gm = "BinaryResource must have only one initial data value.", Um = "Resource is closed.";
11998
- class qm {
11997
+ class Jm {
11999
11998
  constructor(t2) {
12000
11999
  if (this._listeners = /* @__PURE__ */ new Set(), this._type = t2.type, this._name = t2?.name, t2.base64) {
12001
12000
  const e2 = t2.base64;
@@ -12077,7 +12076,7 @@ class qm {
12077
12076
  return this._isClosed;
12078
12077
  }
12079
12078
  }
12080
- let Jm = class {
12079
+ let qm = class {
12081
12080
  constructor(t2, e2, n2) {
12082
12081
  this._state = t2, this._fromJSON = e2, this._onLastEnd = n2, this._state.openScopes.add(this), this._isClosed = false;
12083
12082
  }
@@ -12119,10 +12118,10 @@ class Km {
12119
12118
  let e3 = false;
12120
12119
  this._resources.forEach((n3) => {
12121
12120
  n3.getName() === t2 && (e3 = true, t2 = n3);
12122
- }), e3 || (t2 = new qm({ name: t2, fetch: t2, type: null }));
12121
+ }), e3 || (t2 = new Jm({ name: t2, fetch: t2, type: null }));
12123
12122
  }
12124
12123
  let e2 = null;
12125
- e2 = t2 instanceof qm ? t2 : new qm({ ...t2 });
12124
+ e2 = t2 instanceof Jm ? t2 : new Jm({ ...t2 });
12126
12125
  const n2 = this;
12127
12126
  return this._resources.has(e2) || (e2.addUnloadListener({ onUnload: (t3) => {
12128
12127
  n2._resources.delete(e2);
@@ -12137,7 +12136,7 @@ class Km {
12137
12136
  beginPersist() {
12138
12137
  this._persistOpen || (this._persistOpen = { byRefs: /* @__PURE__ */ new Map(), byIds: /* @__PURE__ */ new Map(), openScopes: /* @__PURE__ */ new Set() });
12139
12138
  const t2 = {}, e2 = /* @__PURE__ */ new Set(), n2 = this;
12140
- return new Jm(this._persistOpen, (r2) => {
12139
+ return new qm(this._persistOpen, (r2) => {
12141
12140
  const o2 = n2.add({ base64: r2.base64, name: r2.name, type: r2.type });
12142
12141
  return o2.addReference(t2), e2.add(o2), o2;
12143
12142
  }, () => {
@@ -12543,7 +12542,7 @@ class hf {
12543
12542
  const n3 = o3[t4];
12544
12543
  if (n3 === l3) continue;
12545
12544
  Pf[0] = { colStart: r3.ref.colStart, rowStart: l3, colEnd: r3.ref.colEnd, rowEnd: n3 - 1, value: r3 }, Pf[1] = { colStart: r3.ref.colStart, rowStart: n3, colEnd: r3.ref.colStart, rowEnd: r3.ref.rowEnd, value: r3 };
12546
- const s4 = Hf(r3, Pf, e.Orientation.Row, n3);
12545
+ const s4 = Wf(r3, Pf, e.Orientation.Row, n3);
12547
12546
  let i4 = s4[0];
12548
12547
  _2(i4, a3), g2.push(i4), i4 = s4[1], _2(i4, a3), g2.push(i4), l3 = n3;
12549
12548
  }
@@ -12620,7 +12619,7 @@ class hf {
12620
12619
  return this._setInputs(t2, e2);
12621
12620
  }
12622
12621
  delete(t2) {
12623
- "string" == typeof t2 && (t2 = qc(t2));
12622
+ "string" == typeof t2 && (t2 = Jc(t2));
12624
12623
  const e2 = this._setInputs(null, [{ ...t2, value: null }], t2);
12625
12624
  return this._emitter?.notify("onInvalidate"), e2.removes;
12626
12625
  }
@@ -12842,7 +12841,7 @@ class hf {
12842
12841
  if (this._calculation.getStatus() === Zm.Status.Starting) return this._addToPending(() => {
12843
12842
  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)) };
12844
12843
  return Promise.resolve(s3);
12845
- }), Wf;
12844
+ }), Hf;
12846
12845
  const s2 = this._values.getOrientation() !== e.Orientation.Row, i2 = this._spillSpatial, a2 = this._errorSpatial, l2 = this._contentfulSpatial, h2 = [], d2 = this._formulaSpatial;
12847
12846
  let u2, g2, m2 = !d2.isEmpty(), f2 = m2 ? [] : null, p2 = this._values;
12848
12847
  if (t2 && t2.tuples) {
@@ -12925,18 +12924,18 @@ class hf {
12925
12924
  let r2;
12926
12925
  Rf = 0, Ff = 0, kf = 0, Df = 0;
12927
12926
  const s2 = this._precedentSpatial, i2 = this._formulaSpatial;
12928
- Mf = 0, Nf = 0;
12927
+ Mf = 0, Tf = 0;
12929
12928
  const a2 = this._cycleId, l2 = e2.length;
12930
12929
  for (let t3 = 0; t3 < l2; t3++) {
12931
12930
  const r3 = e2[t3];
12932
- r3.markId !== n2 && (r3.markId = n2, r3.cycleId = a2, r3.inDegree = 0, If[Rf++] = r3, Af[Nf++] = r3);
12931
+ r3.markId !== n2 && (r3.markId = n2, r3.cycleId = a2, r3.inDegree = 0, If[Rf++] = r3, Af[Tf++] = r3);
12933
12932
  }
12934
12933
  const c2 = (e3, n3, o2) => {
12935
12934
  (t2 || e3.state === vh) && (r2 || (r2 = []), r2.push(n3), t2 || o2(e3));
12936
12935
  }, h2 = (t3) => {
12937
- t3.markId !== n2 && (t3.markId = n2, t3.cycleId = a2, t3.inDegree = 0, If[Rf++] = t3, Af[Nf++] = t3);
12936
+ t3.markId !== n2 && (t3.markId = n2, t3.cycleId = a2, t3.inDegree = 0, If[Rf++] = t3, Af[Tf++] = t3);
12938
12937
  };
12939
- for (; Mf < Nf; ) {
12938
+ for (; Mf < Tf; ) {
12940
12939
  const t3 = Af[Mf++], e3 = t3.colIndex, n3 = t3.rowIndex;
12941
12940
  ff.colStart = e3, ff.rowStart = n3, ff.colEnd = e3, ff.rowEnd = n3;
12942
12941
  const r3 = s2.search(ff), i3 = r3.length;
@@ -12972,13 +12971,13 @@ class hf {
12972
12971
  }
12973
12972
  }
12974
12973
  }
12975
- e3.inDegree = l3, 0 === e3.inDegree && (Tf[kf++] = e3);
12974
+ e3.inDegree = l3, 0 === e3.inDegree && (Nf[kf++] = e3);
12976
12975
  }
12977
12976
  const d2 = (t3) => {
12978
- t3.markId === n2 && (t3.inDegree--, 0 === t3.inDegree && (Tf[kf++] = t3));
12977
+ t3.markId === n2 && (t3.inDegree--, 0 === t3.inDegree && (Nf[kf++] = t3));
12979
12978
  };
12980
12979
  for (; Ff < kf; ) {
12981
- const t3 = Tf[Ff++];
12980
+ const t3 = Nf[Ff++];
12982
12981
  Of[Df++] = t3;
12983
12982
  const e3 = t3.colIndex, n3 = t3.rowIndex;
12984
12983
  ff.colStart = e3, ff.rowStart = n3, ff.colEnd = e3, ff.rowEnd = n3;
@@ -13036,13 +13035,13 @@ class hf {
13036
13035
  }
13037
13036
  C2.pendingPrecedents = A2;
13038
13037
  }
13039
- const N2 = S2 ? v2 : x2, T2 = S2 ? x2 : v2;
13038
+ const T2 = S2 ? v2 : x2, N2 = S2 ? x2 : v2;
13040
13039
  o2.node = C2, o2.colIndex = v2, o2.rowIndex = x2;
13041
13040
  const F2 = b2.formula;
13042
13041
  let k2, O2;
13043
13042
  const D2 = C2.pending;
13044
13043
  let B2 = D2;
13045
- if ((A2 || C2.pendingPromise) && (B2 = true, k2 = C2.cachedValue ?? null, C2.pendingPromise && (C2.pendingResolved ? (C2.pendingPromise = null, C2.pendingResolved = false, B2 = false) : (C2.pendingPromise.cancelled = true, k2 = void 0))), void 0 === k2 && (o2.formula = F2, o2.colIndex = v2, o2.rowIndex = x2, k2 = F2.evaluate(r2, void 0, C2.inputs), o2.formula = null, O2 = k2 && k2.then ? k2 : null, B2 = !!O2), B2 !== D2 && (C2.pending = B2, w2 || (w2 = bl(S2)), w2.append(N2, T2, B2)), O2 && (k2 = C2.cachedValue ?? null, !O2.__originator)) {
13044
+ if ((A2 || C2.pendingPromise) && (B2 = true, k2 = C2.cachedValue ?? null, C2.pendingPromise && (C2.pendingResolved ? (C2.pendingPromise = null, C2.pendingResolved = false, B2 = false) : (C2.pendingPromise.cancelled = true, k2 = void 0))), void 0 === k2 && (o2.formula = F2, o2.colIndex = v2, o2.rowIndex = x2, k2 = F2.evaluate(r2, void 0, C2.inputs), o2.formula = null, O2 = k2 && k2.then ? k2 : null, B2 = !!O2), B2 !== D2 && (C2.pending = B2, w2 || (w2 = bl(S2)), w2.append(T2, N2, B2)), O2 && (k2 = C2.cachedValue ?? null, !O2.__originator)) {
13046
13045
  O2.__originator = l2;
13047
13046
  const t3 = C2;
13048
13047
  xf.add(t3), t3.pendingPromise = O2, t3.pendingResolved = false, O2.then((e3) => {
@@ -13055,50 +13054,50 @@ class hf {
13055
13054
  }
13056
13055
  let L2 = 1, z2 = 1;
13057
13056
  const P2 = I2 instanceof oc;
13058
- let W2;
13059
- const H2 = I2 instanceof n.Spill;
13060
- if (P2 || H2) {
13057
+ let H2;
13058
+ const W2 = I2 instanceof n.Spill;
13059
+ if (P2 || W2) {
13061
13060
  wf.colStart = v2, wf.rowStart = x2, wf.colEnd = v2, wf.rowEnd = x2;
13062
13061
  const t3 = f2.search(wf);
13063
- for (let e3 = 0; !W2 && e3 < t3.length; e3++) {
13062
+ for (let e3 = 0; !H2 && e3 < t3.length; e3++) {
13064
13063
  const n2 = t3[e3];
13065
- n2.colStart === v2 && n2.rowStart === x2 && (W2 = n2);
13064
+ n2.colStart === v2 && n2.rowStart === x2 && (H2 = n2);
13066
13065
  }
13067
- if (W2) {
13066
+ if (H2) {
13068
13067
  if (P2) {
13069
13068
  const t5 = I2;
13070
13069
  L2 = t5.getWidth(), z2 = t5.getHeight();
13071
13070
  }
13072
13071
  const t4 = { colStart: v2, rowStart: x2, colEnd: v2 + L2 - 1, rowEnd: x2 + z2 - 1 };
13073
- f2.remove(W2), W2 && W2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
13072
+ f2.remove(H2), H2 && H2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
13074
13073
  }
13075
13074
  }
13076
13075
  let V2 = 1, $2 = 1;
13077
13076
  const j2 = k2, G2 = j2?.isIRange;
13078
- let U2, q2 = k2 instanceof n.Spill;
13077
+ let U2, J2 = k2 instanceof n.Spill;
13079
13078
  if (G2 && j2.size > 1) {
13080
13079
  V2 = j2.getWidth(), $2 = j2.getHeight();
13081
13080
  const t3 = { colStart: v2, rowStart: x2, colEnd: v2 + V2 - 1, rowEnd: x2 + $2 - 1 }, e3 = r2.getEntireCoords(), o3 = !c.isRangeWithinRange(t3, e3);
13082
- if (o3 && (t3.colEnd = Math.min(t3.colEnd, e3.colEnd), t3.rowEnd = Math.min(t3.rowEnd, e3.rowEnd)), q2 = o3, !q2) {
13081
+ if (o3 && (t3.colEnd = Math.min(t3.colEnd, e3.colEnd), t3.rowEnd = Math.min(t3.rowEnd, e3.rowEnd)), J2 = o3, !J2) {
13083
13082
  const e4 = d2.search(t3);
13084
- if (q2 = e4.length > 1, !q2 && 1 === e4.length) {
13083
+ if (J2 = e4.length > 1, !J2 && 1 === e4.length) {
13085
13084
  const n2 = e4[0], r3 = c.intersectRanges(t3, n2, ff);
13086
- (r3 && (r3.rowEnd !== r3.rowStart || r3.colStart !== r3.colEnd) || r3.colStart !== v2 || r3.rowStart !== x2) && (q2 = true);
13085
+ (r3 && (r3.rowEnd !== r3.rowStart || r3.colStart !== r3.colEnd) || r3.colStart !== v2 || r3.rowStart !== x2) && (J2 = true);
13087
13086
  }
13088
13087
  }
13089
13088
  let s3, i3;
13090
- if (q2) {
13089
+ if (J2) {
13091
13090
  k2 = n.BuiltIn.Spill, V2 = 1, $2 = 1;
13092
- s3 = [[N2, [[T2, [k2]]]]], p2.setValues(s3), i3 = { colStart: v2, rowStart: x2, colEnd: v2, rowEnd: x2 };
13091
+ s3 = [[T2, [[N2, [k2]]]]], p2.setValues(s3), i3 = { colStart: v2, rowStart: x2, colEnd: v2, rowEnd: x2 };
13093
13092
  } else {
13094
- const e4 = af(j2, N2, T2);
13093
+ const e4 = af(j2, T2, N2);
13095
13094
  e4 && (s3 = e4.tuples), s3 && p2.setValues(s3), i3 = t3;
13096
13095
  }
13097
- U2 = { ...t3, value: new Eh(t3, l2, q2) }, f2.insert(U2), E2 = cf(E2, C2, t3), u2.insertNonOverlapping(i3), h2.insertNonOverlapping(i3), d2.insertNonOverlapping({ ...i3, value: new Ch(i3, _2) });
13096
+ U2 = { ...t3, value: new Eh(t3, l2, J2) }, f2.insert(U2), E2 = cf(E2, C2, t3), u2.insertNonOverlapping(i3), h2.insertNonOverlapping(i3), d2.insertNonOverlapping({ ...i3, value: new Ch(i3, _2) });
13098
13097
  }
13099
- (!c.isEqualRanges(W2, U2) || q2 || H2) && (W2 && g2.insert(W2), U2 && g2.insert(U2)), V2 === L2 && $2 === z2 || (C2.state = xh, h2.insertNonOverlapping({ colStart: v2, rowStart: x2, colEnd: v2 + Math.max(V2, L2) - 1, rowEnd: x2 + Math.max($2, z2) - 1 }), a2 = false);
13100
- let J2 = k2 && k2.isFormulaError ? k2 : null;
13101
- F2.getError() && (J2 = F2.getError()), (J2 || R2 && !t2) && (J2 && !J2.equals(R2) || R2 && R2.equals(J2)), C2.cachedValue = k2, s2[i2++] = C2;
13098
+ (!c.isEqualRanges(H2, U2) || J2 || W2) && (H2 && g2.insert(H2), U2 && g2.insert(U2)), V2 === L2 && $2 === z2 || (C2.state = xh, h2.insertNonOverlapping({ colStart: v2, rowStart: x2, colEnd: v2 + Math.max(V2, L2) - 1, rowEnd: x2 + Math.max($2, z2) - 1 }), a2 = false);
13099
+ let q2 = k2 && k2.isFormulaError ? k2 : null;
13100
+ F2.getError() && (q2 = F2.getError()), (q2 || R2 && !t2) && (q2 && !q2.equals(R2) || R2 && R2.equals(q2)), C2.cachedValue = k2, s2[i2++] = C2;
13102
13101
  }
13103
13102
  if (o2.node = null, o2.colIndex = Number.MAX_SAFE_INTEGER, o2.rowIndex = Number.MAX_SAFE_INTEGER, w2) {
13104
13103
  const t3 = w2.done(true);
@@ -13383,13 +13382,13 @@ let Ef = 0;
13383
13382
  const Cf = 1e4, bf = new Array(Cf), vf = new Array(Cf), xf = /* @__PURE__ */ new Set(), If = new Array(Cf);
13384
13383
  let Rf = 0;
13385
13384
  const Af = new Array(Cf);
13386
- let Mf = 0, Nf = 0;
13387
- const Tf = new Array(Cf);
13385
+ let Mf = 0, Tf = 0;
13386
+ const Nf = new Array(Cf);
13388
13387
  let Ff = 0, kf = 0;
13389
13388
  const Of = new Array(Cf);
13390
13389
  let Df = 0;
13391
- const Bf = new Array(Cf), Lf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, zf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Pf = [null, null], Wf = Object.freeze({ inserts: o.EmptyArray, removes: o.EmptyArray });
13392
- function Hf(t2, e2, n2, r2) {
13390
+ const Bf = new Array(Cf), Lf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, zf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Pf = [null, null], Hf = Object.freeze({ inserts: o.EmptyArray, removes: o.EmptyArray });
13391
+ function Wf(t2, e2, n2, r2) {
13393
13392
  const o2 = t2;
13394
13393
  if (o2?.getSplit) {
13395
13394
  const t3 = o2.getSplit(e2, n2, r2);
@@ -13408,7 +13407,7 @@ class Vf {
13408
13407
  async _initialize() {
13409
13408
  const t2 = await lt._validate(true), e2 = jf();
13410
13409
  this._calcScope = e2, this._runtime = new $f(this._options, t2);
13411
- const { initializeBuiltIns: n2 } = await import("./BCQktWaTx0PeRg6O.mjs"), r2 = this;
13410
+ const { initializeBuiltIns: n2 } = await import("./CmRA2-2FB5YnwFKy.mjs"), r2 = this;
13412
13411
  return this._builtInFunctions = Object.freeze(n2(() => r2)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
13413
13412
  }
13414
13413
  getBuiltInFunctions() {
@@ -13426,8 +13425,8 @@ class Vf {
13426
13425
  getFormulaAt(t2, e2) {
13427
13426
  const n2 = this._calcScope.formulaSpatial;
13428
13427
  if (!n2) return null;
13429
- qf.colStart = e2, qf.rowStart = t2, qf.colEnd = e2, qf.rowEnd = t2;
13430
- const r2 = n2.search(qf);
13428
+ Jf.colStart = e2, Jf.rowStart = t2, Jf.colEnd = e2, Jf.rowEnd = t2;
13429
+ const r2 = n2.search(Jf);
13431
13430
  if (0 === r2.length) return null;
13432
13431
  return r2[0].value.formula.getTextAt(t2, e2) ?? null;
13433
13432
  }
@@ -13467,8 +13466,8 @@ class Vf {
13467
13466
  getSpillAt(t2, e2) {
13468
13467
  const n2 = this._calcScope.spillSpatial;
13469
13468
  if (!n2) return null;
13470
- Jf.rowStart = t2, Jf.colStart = e2, Jf.rowEnd = t2, Jf.colEnd = e2;
13471
- const r2 = n2.search(Jf);
13469
+ qf.rowStart = t2, qf.colStart = e2, qf.rowEnd = t2, qf.colEnd = e2;
13470
+ const r2 = n2.search(qf);
13472
13471
  if (0 === r2.length) return null;
13473
13472
  for (let n3 = 0; n3 < r2.length; n3++) {
13474
13473
  const o2 = r2[n3];
@@ -13501,7 +13500,7 @@ class Vf {
13501
13500
  if ("string" == typeof t2) {
13502
13501
  if (e2) throw n.BuiltIn.Ref;
13503
13502
  try {
13504
- const r3 = Qc(t2, o2(), Jc, () => {
13503
+ const r3 = Qc(t2, o2(), qc, () => {
13505
13504
  throw n.BuiltIn.Ref;
13506
13505
  }, e2);
13507
13506
  if (r3.length > 1) throw n.BuiltIn.Ref;
@@ -13581,7 +13580,7 @@ class $f {
13581
13580
  }
13582
13581
  getVersion() {
13583
13582
  try {
13584
- const t2 = "0.7.0";
13583
+ const t2 = "0.7.2";
13585
13584
  if (-1 === t2.indexOf(".env.")) return `${t2}`;
13586
13585
  } catch (t2) {
13587
13586
  return "local";
@@ -13604,7 +13603,7 @@ const jf = () => ({ rowIndex: 0, colIndex: 0, sheetName: null, node: null, value
13604
13603
  if (void 0 !== a2 && (n3.colStart === r2 && n3.rowStart === o2 && n3.colEnd === s2 && n3.rowEnd === i2)) return a2;
13605
13604
  }
13606
13605
  return null;
13607
- }, qf = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Jf = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 };
13606
+ }, Jf = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, qf = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 };
13608
13607
  class Kf {
13609
13608
  _setScope(t2) {
13610
13609
  this._scope = t2;
@@ -14056,10 +14055,10 @@ class mp {
14056
14055
  return this._validateName(t2);
14057
14056
  }
14058
14057
  _validateName(t2, e2 = false) {
14059
- if (this._closed) throw new Error(Ji);
14058
+ if (this._closed) throw new Error(qi);
14060
14059
  }
14061
14060
  add(t2) {
14062
- if (this._closed) throw new Error(Ji);
14061
+ if (this._closed) throw new Error(qi);
14063
14062
  if (!t2) throw new Error("Item must be specified.");
14064
14063
  let e2;
14065
14064
  if (t2.isIFunction) {
@@ -14076,7 +14075,7 @@ class mp {
14076
14075
  return this._beginCommit(t2);
14077
14076
  }
14078
14077
  _getState() {
14079
- if (this._closed) throw new Error(Ji);
14078
+ if (this._closed) throw new Error(qi);
14080
14079
  return this._transactions.getState(this);
14081
14080
  }
14082
14081
  _beginCommit(t2) {
@@ -14125,7 +14124,7 @@ class fp extends Yi {
14125
14124
  this._context = r2;
14126
14125
  const o2 = await r2._initialize(), s2 = o2.builtInFunctions;
14127
14126
  this._functions = new mp({ transactions: this._transactions, context: r2, readonlyFunctions: s2 });
14128
- const i2 = await import("./N6dBiwFS6vtTkjD1.mjs");
14127
+ const i2 = await import("./DnAnDxej4GfWDMtX.mjs");
14129
14128
  this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status = Zm.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
14130
14129
  } catch (t2) {
14131
14130
  throw this._status = Zm.Status.Off, this._emitter.notify("onError", t2), this._emitter.notify("onStatusChange"), t2;
@@ -14333,7 +14332,7 @@ const Ap = (t2) => {
14333
14332
  }
14334
14333
  }
14335
14334
  return n2;
14336
- }, Np = (t2, e2, n2) => {
14335
+ }, Tp = (t2, e2, n2) => {
14337
14336
  try {
14338
14337
  let r2 = null, o2 = null;
14339
14338
  const s2 = (t3) => ((t4, e3) => {
@@ -14480,7 +14479,7 @@ const Ap = (t2) => {
14480
14479
  throw console.warn(t3), t3;
14481
14480
  }
14482
14481
  };
14483
- class Tp {
14482
+ class Np {
14484
14483
  constructor(t2) {
14485
14484
  if (!t2) throw new u("snapshot is required.");
14486
14485
  this._snapshot = t2;
@@ -14564,7 +14563,7 @@ class Fp {
14564
14563
  });
14565
14564
  }))(e2) : [[]]);
14566
14565
  let s2;
14567
- if (Np(n2, o2, r2) ? (t2 = r2.sheet(), s2 = t2.getUsedRange()) : n2 = null, s2) return this._parsed = { async copyTo(t3, e3) {
14566
+ if (Tp(n2, o2, r2) ? (t2 = r2.sheet(), s2 = t2.getUsedRange()) : n2 = null, s2) return this._parsed = { async copyTo(t3, e3) {
14568
14567
  const n3 = await t3.copyFrom(s2, e3);
14569
14568
  return n3?.getCoords() ?? null;
14570
14569
  }, getCoords: () => s2.getCoords(), getSource: () => t2, getName: () => t2.getName() }, true;
@@ -14729,19 +14728,19 @@ class Op extends _m {
14729
14728
  n2 = { x: Math.max(n2.x, this._optionsMovable.getMaxBounds().x), y: Math.max(n2.y, this._optionsMovable.getMaxBounds().y), width: Math.min(n2.width, this._optionsMovable.getMaxBounds().width), height: Math.min(n2.height, this._optionsMovable.getMaxBounds().height) };
14730
14729
  }
14731
14730
  if (n2.width < 0 || n2.height < 0) throw new d();
14732
- const r2 = this._updateMovableLocation({ bounds: n2, anchorType: qi.Type.Absolute }), o2 = this._beginCommit(e2?.description ?? "Set Movable Bounds");
14731
+ const r2 = this._updateMovableLocation({ bounds: n2, anchorType: Ji.Type.Absolute }), o2 = this._beginCommit(e2?.description ?? "Set Movable Bounds");
14733
14732
  return this._updateState({ offsets: r2.offsets, anchor: r2.anchor }, { description: "Update Movable Bounds" }), this._options.setContainerCoords(r2.anchor), this._invalidateBounds(), o2.commit(), this;
14734
14733
  }
14735
14734
  _updateMovableLocation(t2) {
14736
14735
  let e2 = t2.offsets ?? { tl: { x: 0, y: 0 }, br: { x: 0, y: 0 } }, n2 = t2.anchor ?? this.getAnchorCoords(), r2 = t2.anchorType ?? this.getAnchorType();
14737
14736
  const o2 = t2.bounds ?? this.getBounds();
14738
14737
  if (o2) {
14739
- if (r2 === qi.Type.Absolute) {
14738
+ if (r2 === Ji.Type.Absolute) {
14740
14739
  n2 = this._optionsMovable.getCoordsAtBounds(o2);
14741
14740
  const t3 = this._optionsMovable.getBoundsAtCoords(n2);
14742
14741
  e2 = { ...e2, tl: { x: o2.x - t3.x, y: o2.y - t3.y } };
14743
14742
  }
14744
- if (r2 === qi.Type.Absolute || r2 === qi.Type.OneCell) {
14743
+ if (r2 === Ji.Type.Absolute || r2 === Ji.Type.OneCell) {
14745
14744
  const t3 = this._optionsMovable.getBoundsAtCoords({ rowStart: n2.rowStart, colStart: n2.colStart, colEnd: n2.colStart, rowEnd: n2.rowStart }), r3 = this._optionsMovable.getCoordsAtBounds({ x: t3.x, y: t3.y, width: o2.width + Math.min(t3.width, e2.tl.x), height: o2.height + Math.min(t3.height, e2.tl.y) });
14746
14745
  n2 = { ...n2, colEnd: r3.colEnd, rowEnd: r3.rowEnd };
14747
14746
  const s2 = this._optionsMovable.getBoundsAtCoords({ colStart: n2.colEnd, rowStart: n2.rowEnd, colEnd: n2.colEnd, rowEnd: n2.rowEnd }), i2 = o2.width - (s2.x - t3.x - Math.min(e2?.tl.x ?? 0, t3.width)), a2 = o2.height - (s2.y - t3.y - Math.min(e2?.tl.y ?? 0, t3.height));
@@ -14761,18 +14760,18 @@ class Op extends _m {
14761
14760
  return this._getState()?.bounds;
14762
14761
  }
14763
14762
  setAnchorType(t2) {
14764
- return o.validEnumValue(qi.Type, t2), this._updateState({ anchorType: t2 }, { description: "Set Movable Resize Behavior" }, ["onAnchorTypeChange"]), this;
14763
+ return o.validEnumValue(Ji.Type, t2), this._updateState({ anchorType: t2 }, { description: "Set Movable Resize Behavior" }, ["onAnchorTypeChange"]), this;
14765
14764
  }
14766
14765
  _processContainerShift(t2) {
14767
14766
  const n2 = this.getAnchorType(), r2 = this._getState()?.offsets;
14768
14767
  let o2 = r2, s2 = false;
14769
14768
  const i2 = t2.before, a2 = t2.orientation === e.Orientation.Column, l2 = t2.intersect, h2 = t2.amount;
14770
14769
  let d2 = t2.after;
14771
- if (n2 !== qi.Type.Absolute) {
14770
+ if (n2 !== Ji.Type.Absolute) {
14772
14771
  let t3 = a2 ? l2.colStart : l2.rowStart, e2 = a2 ? i2.colStart : i2.rowStart;
14773
- n2 === qi.Type.TwoCell && (e2 = a2 ? i2.colEnd : i2.rowEnd), s2 = t3 <= e2;
14772
+ n2 === Ji.Type.TwoCell && (e2 = a2 ? i2.colEnd : i2.rowEnd), s2 = t3 <= e2;
14774
14773
  }
14775
- if (s2 && (n2 !== qi.Type.OneCell || d2) || (d2 = i2), s2 && d2 && h2 < 0 && (a2 ? (l2.colStart <= i2.colStart && l2.colEnd >= i2.colStart && (o2 = { ...o2, tl: { ...o2.tl, x: 0 } }), o2.br.x > 0 && l2.colStart <= i2.colEnd && l2.colEnd >= i2.colEnd && (o2 = { ...o2, br: { ...o2.br, x: 0 } }, d2 = { ...d2, colEnd: d2.colEnd + 1 })) : (l2.rowStart <= i2.rowStart && l2.rowEnd >= i2.rowStart && (o2 = { ...o2, tl: { ...o2.tl, y: 0 } }), o2.br.y > 0 && l2.rowStart <= i2.rowEnd && l2.rowEnd >= i2.rowEnd && (o2 = { ...o2, br: { ...o2.br, y: 0 } }, d2 = { ...d2, rowEnd: d2.rowEnd + 1 }))), null !== d2) {
14774
+ if (s2 && (n2 !== Ji.Type.OneCell || d2) || (d2 = i2), s2 && d2 && h2 < 0 && (a2 ? (l2.colStart <= i2.colStart && l2.colEnd >= i2.colStart && (o2 = { ...o2, tl: { ...o2.tl, x: 0 } }), o2.br.x > 0 && l2.colStart <= i2.colEnd && l2.colEnd >= i2.colEnd && (o2 = { ...o2, br: { ...o2.br, x: 0 } }, d2 = { ...d2, colEnd: d2.colEnd + 1 })) : (l2.rowStart <= i2.rowStart && l2.rowEnd >= i2.rowStart && (o2 = { ...o2, tl: { ...o2.tl, y: 0 } }), o2.br.y > 0 && l2.rowStart <= i2.rowEnd && l2.rowEnd >= i2.rowEnd && (o2 = { ...o2, br: { ...o2.br, y: 0 } }, d2 = { ...d2, rowEnd: d2.rowEnd + 1 }))), null !== d2) {
14776
14775
  const { offsets: t3, anchor: e2 } = this._updateMovableLocation({ anchor: d2, offsets: o2 });
14777
14776
  o2 = t3, d2 = e2;
14778
14777
  }
@@ -14823,7 +14822,7 @@ class Op extends _m {
14823
14822
  const e2 = this._getState(), n2 = e2.anchor, r2 = e2.offsets, s2 = { tl: { c: n2.colStart, r: n2.rowStart }, br: { c: n2.colEnd + (r2.br.x ? 0 : 1), r: n2.rowEnd + (r2.br.y ? 0 : 1) } };
14824
14823
  r2 && (r2.tl?.x && (s2.tl.x = o.roundAccurately(r2.tl.x, 1)), r2.tl?.y && (s2.tl.y = o.roundAccurately(r2.tl.y, 1)), r2.br?.x && (s2.br.x = o.roundAccurately(r2.br.x, 1)), r2.br?.y && (s2.br.y = o.roundAccurately(r2.br.y, 1)));
14825
14824
  const i2 = this._content.toJSON(t2) ?? {}, a2 = { anchor: s2, content: { type: this._content.getType(), json: i2 } }, l2 = e2.anchorType;
14826
- return l2 && l2 !== qi.Type.TwoCell && (a2.anchorType = this.getAnchorType()), e2.hidden && (a2.hidden = e2.hidden), e2.name && (a2.name = e2.name), e2.description && (a2.name = e2.description), void 0 !== e2.rotation && 0 !== e2.rotation && (a2.rotation = e2.rotation), o.isDefined(e2.lockAspectRatio) && e2.lockAspectRatio !== this._optionsMovable.defaultLockAspectRatio && (a2.lockAspect = e2.lockAspectRatio), a2;
14825
+ return l2 && l2 !== Ji.Type.TwoCell && (a2.anchorType = this.getAnchorType()), e2.hidden && (a2.hidden = e2.hidden), e2.name && (a2.name = e2.name), e2.description && (a2.name = e2.description), void 0 !== e2.rotation && 0 !== e2.rotation && (a2.rotation = e2.rotation), o.isDefined(e2.lockAspectRatio) && e2.lockAspectRatio !== this._optionsMovable.defaultLockAspectRatio && (a2.lockAspect = e2.lockAspectRatio), a2;
14827
14826
  }
14828
14827
  get isIMovable() {
14829
14828
  return true;
@@ -14934,7 +14933,7 @@ class Lp extends Qi {
14934
14933
  t2 && t2.removeListener?.(), super._processDelete();
14935
14934
  }
14936
14935
  }
14937
- const zp = "Item must be specified.", Pp = "Name must be a non-empty string", Wp = (t2, e2 = null) => `Named item '${t2}' already exists${e2 ? `in scope ${e2}` : ""}.`, Hp = (t2) => {
14936
+ const zp = "Item must be specified.", Pp = "Name must be a non-empty string", Hp = (t2, e2 = null) => `Named item '${t2}' already exists${e2 ? `in scope ${e2}` : ""}.`, Wp = (t2) => {
14938
14937
  const e2 = [];
14939
14938
  for (let n2 = 0; n2 < t2.getCount(); n2++) {
14940
14939
  let r2 = null;
@@ -15010,7 +15009,7 @@ class jp {
15010
15009
  const n2 = this._getState();
15011
15010
  if (!n2) return null;
15012
15011
  if (0 === n2.itemsByKey.size) return null;
15013
- const r2 = Hp(e2), o2 = n2.itemsByFullRange.get(r2);
15012
+ const r2 = Wp(e2), o2 = n2.itemsByFullRange.get(r2);
15014
15013
  if (!o2) return null;
15015
15014
  const s2 = [];
15016
15015
  return o2.forEach((t3) => {
@@ -15059,7 +15058,7 @@ class jp {
15059
15058
  return this._validateName(t2, e2, n2);
15060
15059
  }
15061
15060
  _validateName(t2, e2, n2 = false) {
15062
- if (this._closed) throw new Error(Ji);
15061
+ if (this._closed) throw new Error(qi);
15063
15062
  if (!t2 || 0 === t2.length) throw new Error(Pp);
15064
15063
  if (t2.length > 255) throw new Error("Name must not exceed 255 characters.");
15065
15064
  if (-1 !== t2.indexOf(" ")) throw new Error("Name must not contain any spaces.");
@@ -15067,7 +15066,7 @@ class jp {
15067
15066
  if (new RegExp(Vp).test(r2[0])) throw new Error("First letter must be either a letter, an underscore, or a backslash.");
15068
15067
  if (new RegExp($p).test(o2)) throw new Error("Name must be either letters, numbers, periods or underscores.");
15069
15068
  if (1 === r2.length && ("r" === r2[0] || "c" === r2[0])) throw new Error("Name can not be 'r' or 'c'.");
15070
- if (((t3, e3 = Nc, n3 = Mc, r3 = false) => {
15069
+ if (((t3, e3 = Tc, n3 = Mc, r3 = false) => {
15071
15070
  let o3 = oh(t3, r3);
15072
15071
  if (!o3) return false;
15073
15072
  if (o3[2]) return false;
@@ -15084,7 +15083,7 @@ class jp {
15084
15083
  const i2 = this._getState()?.itemsByKey.get(s2);
15085
15084
  if (i2) {
15086
15085
  const r3 = i2.item.getRanges();
15087
- if (!n2 || r3 || r3.getCount() > 0) throw new Error(Wp(t2, e2));
15086
+ if (!n2 || r3 || r3.getCount() > 0) throw new Error(Hp(t2, e2));
15088
15087
  }
15089
15088
  }
15090
15089
  addReference(t2, e2, n2 = false) {
@@ -15093,7 +15092,7 @@ class jp {
15093
15092
  const i2 = this._beginCommit(`${o2 && n2 ? "Update" : "Insert"} Named '${t2}'`);
15094
15093
  try {
15095
15094
  if (o2) {
15096
- if (!n2) throw new Error(Wp(t2));
15095
+ if (!n2) throw new Error(Hp(t2));
15097
15096
  this._delete(o2, { description: `Delete Named '${o2.getName()}'` });
15098
15097
  }
15099
15098
  s2 = new Lp({ value: r2, addressToRanges: this._options.addressToRanges, json: { name: t2, ref: r2.toString() }, transactions: this._transactions }), this.add(s2), i2.commit();
@@ -15103,7 +15102,7 @@ class jp {
15103
15102
  return s2;
15104
15103
  }
15105
15104
  add(t2) {
15106
- if (this._closed) throw new Error(Ji);
15105
+ if (this._closed) throw new Error(qi);
15107
15106
  if (!t2) throw new Error(zp);
15108
15107
  if (!t2.getName || "string" == typeof t2) throw new Error("Add must take a 'INamed' object. To add a string use 'addReference'.");
15109
15108
  if (this._validateName(t2.getName(), t2.getScope(), false), this._options.isReadOnly?.()) throw new Error("Names are read-only.");
@@ -15118,7 +15117,7 @@ class jp {
15118
15117
  }
15119
15118
  _delete(t2, e2) {
15120
15119
  if (!t2) throw new Error(zp);
15121
- if (this._closed) throw new Error(Ji);
15120
+ if (this._closed) throw new Error(qi);
15122
15121
  const n2 = this._beginCommit(e2?.description ?? `Delete Named Item '${t2.getName()}'`);
15123
15122
  let r2 = null;
15124
15123
  try {
@@ -15166,7 +15165,7 @@ class jp {
15166
15165
  const i2 = this._toKey(e2);
15167
15166
  if (o2) {
15168
15167
  const { asFullRange: a3, asPartialRanges: l3, asRanges: c3 } = ((t4) => {
15169
- const e3 = t4.getCoords(), n3 = Hp(t4), r4 = n3.split(",");
15168
+ const e3 = t4.getCoords(), n3 = Wp(t4), r4 = n3.split(",");
15170
15169
  return { asFullRange: n3, asPartialRanges: r4, asRanges: e3 };
15171
15170
  })(o2);
15172
15171
  if (r3 = a3, s2 = l3, c3) {
@@ -15197,7 +15196,7 @@ class jp {
15197
15196
  }
15198
15197
  }
15199
15198
  _add(t2) {
15200
- if (this._closed) throw new Error(Ji);
15199
+ if (this._closed) throw new Error(qi);
15201
15200
  const e2 = this._getState();
15202
15201
  if (!t2) return e2;
15203
15202
  const n2 = this._cloneState(), r2 = t2.length;
@@ -15217,7 +15216,7 @@ class jp {
15217
15216
  return this._beginCommit(t2);
15218
15217
  }
15219
15218
  _getState() {
15220
- if (this._closed) throw new Error(Ji);
15219
+ if (this._closed) throw new Error(qi);
15221
15220
  return this._transactions.getState(this);
15222
15221
  }
15223
15222
  _beginCommit(t2) {
@@ -15234,7 +15233,7 @@ class jp {
15234
15233
  }
15235
15234
  }
15236
15235
  fromJSON(t2) {
15237
- if (this._closed) throw new Error(Ji);
15236
+ if (this._closed) throw new Error(qi);
15238
15237
  this._fromJSON(t2);
15239
15238
  }
15240
15239
  _initState() {
@@ -15327,7 +15326,7 @@ class Up extends Yi {
15327
15326
  return "Shape";
15328
15327
  }
15329
15328
  }
15330
- class qp extends Yi {
15329
+ class Jp extends Yi {
15331
15330
  constructor(t2) {
15332
15331
  super(t2), t2.json && this._updateState({ data: t2.json });
15333
15332
  }
@@ -15347,7 +15346,7 @@ class qp extends Yi {
15347
15346
  return "CustomElement";
15348
15347
  }
15349
15348
  }
15350
- const Jp = (t2, e2, n2 = true, r2 = true) => {
15349
+ const qp = (t2, e2, n2 = true, r2 = true) => {
15351
15350
  let o2 = 0, s2 = 0;
15352
15351
  if (!n2 && !r2) return { x: o2, y: s2 };
15353
15352
  let i2 = false, a2 = 0;
@@ -16252,7 +16251,7 @@ class E_ {
16252
16251
  }, getA1(t3) {
16253
16252
  if (!_2) throw new Error(jh);
16254
16253
  return this._parseHeaderRangeAddress({ min: i2 + t3, end: i2 + t3 }) ?? _2;
16255
- } }, w2 = Ts(e2, (e3) => {
16254
+ } }, w2 = Ns(e2, (e3) => {
16256
16255
  const n3 = e3.value;
16257
16256
  if (!l2 && !n3) return;
16258
16257
  let r3 = l2;
@@ -16292,7 +16291,7 @@ class E_ {
16292
16291
  }, forEachSpan: (t3, e3) => o2(t3, e3, this._headers), forEachVisibleSpan: (t3, e3) => {
16293
16292
  const n3 = r2?.min ?? null, o3 = r2?.max ?? null;
16294
16293
  let s3;
16295
- if (s3 = e3?.includeHidden ? t3(n3, o3) : Ts(this._indexedHidden, (e4) => {
16294
+ if (s3 = e3?.includeHidden ? t3(n3, o3) : Ns(this._indexedHidden, (e4) => {
16296
16295
  if (e4.value) return;
16297
16296
  const n4 = t3(e4.min, e4.max);
16298
16297
  return n4 && n4.break ? n4 : void 0;
@@ -16325,7 +16324,7 @@ class E_ {
16325
16324
  at(t2) {
16326
16325
  if (t2 < 0 || t2 > this._maxDataIndex) return this._emptyHeader;
16327
16326
  if (this._lastHeaderRead?.offset === t2) return this._lastHeaderRead.header;
16328
- const e2 = Ns(t2, this._readCache);
16327
+ const e2 = Ts(t2, this._readCache);
16329
16328
  if (!e2) return this._emptyHeader;
16330
16329
  const n2 = this._options.getTextAt?.(t2) ?? t2 + "", r2 = this._options.createCellHeader(this, e2, { value: n2 });
16331
16330
  return this._lastHeaderRead = { offset: t2, header: r2 }, r2;
@@ -16344,7 +16343,7 @@ class E_ {
16344
16343
  if (e3) {
16345
16344
  if (t3.match(/[0-9]+/)) throw new Error("Invalid range address for header orientation");
16346
16345
  } else if (t3.match(/[a-zA-Z]+/)) throw new Error("Invalid range address for header orientation");
16347
- let o3 = qc(t3, n2);
16346
+ let o3 = Jc(t3, n2);
16348
16347
  if (!o3) {
16349
16348
  const e4 = Uc(t3.toUpperCase(), true);
16350
16349
  void 0 !== e4?.colIndex && (r2.colStart = e4.colIndex, r2.colEnd = e4.colIndex), void 0 !== e4?.rowIndex && (r2.rowStart = e4.rowIndex, r2.rowEnd = e4.rowIndex);
@@ -16831,8 +16830,8 @@ class R_ {
16831
16830
  processMerge(t2) {
16832
16831
  }
16833
16832
  }
16834
- const A_ = Object.freeze({ coords: c.EmptyCell, topLeft: a.EmptyTopLeft }), M_ = Object.freeze({ cell: c.EmptyCell, ranges: o.EmptyArray, rangeIndex: 0 }), N_ = Object.freeze({ selection: M_, topLeft: a.EmptyTopLeft, freezePanes: A_, showRowHeaders: true, showColumnHeaders: true, showRowGridlines: true, showColumnGridlines: true, rowHeaderStyle: vp.HeaderTextStyle.One, columnHeaderStyle: vp.HeaderTextStyle.A1, showFormulas: false, showZeros: true, zoomScale: 100, gridLineColor: null });
16835
- class T_ {
16833
+ const A_ = Object.freeze({ coords: c.EmptyCell, topLeft: a.EmptyTopLeft }), M_ = Object.freeze({ cell: c.EmptyCell, ranges: o.EmptyArray, rangeIndex: 0 }), T_ = Object.freeze({ selection: M_, topLeft: a.EmptyTopLeft, freezePanes: A_, showRowHeaders: true, showColumnHeaders: true, showRowGridlines: true, showColumnGridlines: true, rowHeaderStyle: vp.HeaderTextStyle.One, columnHeaderStyle: vp.HeaderTextStyle.A1, showFormulas: false, showZeros: true, zoomScale: 100, gridLineColor: null });
16834
+ class N_ {
16836
16835
  constructor(t2) {
16837
16836
  if (this._emitter = null, !t2?.sheet) throw new Error("SheetView requires a sheet.");
16838
16837
  const e2 = new Xi(this);
@@ -16961,7 +16960,7 @@ class T_ {
16961
16960
  const t2 = {}, e2 = Object.keys(this._state);
16962
16961
  for (let n3 = 0; n3 < e2.length; n3++) {
16963
16962
  const r2 = this._state[e2[n3]];
16964
- null != r2 && r2 !== N_[e2[n3]] && (t2[e2[n3]] = r2);
16963
+ null != r2 && r2 !== T_[e2[n3]] && (t2[e2[n3]] = r2);
16965
16964
  }
16966
16965
  delete t2.movableSelection, delete t2.gridLineColor, this._state.gridLineColor instanceof Ys && (t2.gridLineColor = this._state.gridLineColor.toString()), delete t2.topLeft, !this._state.topLeft || 0 === this._state.topLeft.left && 0 === this._state.topLeft.top || (t2.topLeft = { left: this._state.topLeft.left ?? 0, top: this._state.topLeft.top ?? 0 }), delete t2.selection;
16967
16966
  const n2 = this._state.selection;
@@ -17011,17 +17010,17 @@ class T_ {
17011
17010
  this.update(e2);
17012
17011
  }
17013
17012
  clear(t2 = true) {
17014
- return this._state = { ...N_ }, this._movableSelection = Object.freeze([]), t2 && this._notifyAll(), this;
17013
+ return this._state = { ...T_ }, this._movableSelection = Object.freeze([]), t2 && this._notifyAll(), this;
17015
17014
  }
17016
17015
  update(t2) {
17017
- return this._state = { ...N_, ...this._state, ...t2 }, this._state.freezePanes = this._mergeFreezePanes(this._state.freezePanes), this._state.zoomScale = Math.min(400, Math.max(10, this._state.zoomScale)), this._notifyAll(), this;
17016
+ return this._state = { ...T_, ...this._state, ...t2 }, this._state.freezePanes = this._mergeFreezePanes(this._state.freezePanes), this._state.zoomScale = Math.min(400, Math.max(10, this._state.zoomScale)), this._notifyAll(), this;
17018
17017
  }
17019
17018
  get isISheetView() {
17020
17019
  return true;
17021
17020
  }
17022
17021
  }
17023
17022
  async function F_() {
17024
- const { getCrypto: t2 } = await import("./CNKv98ckAoEyntHR.mjs");
17023
+ const { getCrypto: t2 } = await import("./CHQXjAQ5N7MueuEb.mjs");
17025
17024
  return t2();
17026
17025
  }
17027
17026
  const k_ = async (t2, e2, ...n2) => {
@@ -17232,17 +17231,17 @@ class P_ extends L_ {
17232
17231
  return super._toJSON(t2);
17233
17232
  }
17234
17233
  }
17235
- class W_ {
17234
+ class H_ {
17236
17235
  constructor(t2, e2, n2) {
17237
17236
  this._coords = Object.freeze(t2), this._sheet = e2, this._readOnly = n2?.readOnly ?? null;
17238
17237
  }
17239
17238
  _createRanges(t2, e2) {
17240
17239
  let n2 = this._options;
17241
- return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new W_(t2, this._sheet, n2);
17240
+ return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new H_(t2, this._sheet, n2);
17242
17241
  }
17243
17242
  _createRange(t2, e2) {
17244
17243
  let n2 = this._options;
17245
- return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new H_(t2, this._sheet, n2);
17244
+ return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new W_(t2, this._sheet, n2);
17246
17245
  }
17247
17246
  _validateWrite() {
17248
17247
  const t2 = this._readOnly;
@@ -17359,10 +17358,10 @@ class W_ {
17359
17358
  return this._sheet._getSnapshot(this.getCoords(), t2);
17360
17359
  }
17361
17360
  getEntireRows(t2, n2) {
17362
- return this._createRanges(Wg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Column, t2), n2);
17361
+ return this._createRanges(Hg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Column, t2), n2);
17363
17362
  }
17364
17363
  getEntireColumns(t2, n2) {
17365
- return this._createRanges(Wg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Row, t2), n2);
17364
+ return this._createRanges(Hg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Row, t2), n2);
17366
17365
  }
17367
17366
  getDefaultShiftOrientation() {
17368
17367
  return this._sheet._getDefaultShiftOrientation(this.getCoords()[0]);
@@ -17383,13 +17382,13 @@ class W_ {
17383
17382
  return $g(this.getCoords(), e.Orientation.Column);
17384
17383
  }
17385
17384
  isEntireRowsAny() {
17386
- return Hg(this.getCoords(), this._sheet._entireCoords, false);
17385
+ return Wg(this.getCoords(), this._sheet._entireCoords, false);
17387
17386
  }
17388
17387
  isEntireColumnsAny() {
17389
17388
  return Vg(this.getCoords(), this._sheet._entireCoords, false);
17390
17389
  }
17391
17390
  isEntireRows() {
17392
- return Hg(this.getCoords(), this._sheet._entireCoords, true);
17391
+ return Wg(this.getCoords(), this._sheet._entireCoords, true);
17393
17392
  }
17394
17393
  isEntireColumns() {
17395
17394
  return Vg(this.getCoords(), this._sheet._entireCoords, true);
@@ -17427,7 +17426,7 @@ class W_ {
17427
17426
  return true;
17428
17427
  }
17429
17428
  }
17430
- class H_ {
17429
+ class W_ {
17431
17430
  constructor(t2, e2, n2) {
17432
17431
  this._coords = Object.freeze(t2), this._sheet = e2, this._readOnly = n2?.readOnly ?? null;
17433
17432
  }
@@ -17439,11 +17438,11 @@ class H_ {
17439
17438
  if (!t2) return Zg(n2, n2._entireCoords);
17440
17439
  if (n2._validateCoords(t2), n2._closed) return Zg(null, n2._entireCoords, t2);
17441
17440
  let r2 = this._options;
17442
- return e2 && (r2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new H_(t2, this._sheet, r2);
17441
+ return e2 && (r2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new W_(t2, this._sheet, r2);
17443
17442
  }
17444
17443
  _createRanges(t2, e2) {
17445
17444
  let n2 = this._options;
17446
- return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new W_(t2, this._sheet, n2);
17445
+ return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new H_(t2, this._sheet, n2);
17447
17446
  }
17448
17447
  _deriveRanges(t2, e2) {
17449
17448
  const n2 = this.getCoords();
@@ -17516,11 +17515,11 @@ class H_ {
17516
17515
  return this._setValueOrValues(t2, e2);
17517
17516
  }
17518
17517
  setValue(t2, e2) {
17519
- if (Array.isArray(t2)) throw new Error(qh);
17518
+ if (Array.isArray(t2)) throw new Error(Jh);
17520
17519
  return this._setValueOrValues(t2, e2);
17521
17520
  }
17522
17521
  setFormula(t2, e2) {
17523
- if (Array.isArray(t2)) throw new Error(qh);
17522
+ if (Array.isArray(t2)) throw new Error(Jh);
17524
17523
  return this._setValueOrValues(t2, e2);
17525
17524
  }
17526
17525
  _setValueOrValues(t2, n2) {
@@ -17608,11 +17607,11 @@ class H_ {
17608
17607
  }
17609
17608
  getEntireRows(t2, n2) {
17610
17609
  const r2 = this._sheet;
17611
- return this._createRange(Wg([this.getCoords()], r2._entireCoords, e.Orientation.Column, t2)[0], n2);
17610
+ return this._createRange(Hg([this.getCoords()], r2._entireCoords, e.Orientation.Column, t2)[0], n2);
17612
17611
  }
17613
17612
  getEntireColumns(t2, n2) {
17614
17613
  const r2 = this._sheet;
17615
- return this._createRange(Wg([this.getCoords()], r2._entireCoords, e.Orientation.Row, t2)[0], n2);
17614
+ return this._createRange(Hg([this.getCoords()], r2._entireCoords, e.Orientation.Row, t2)[0], n2);
17616
17615
  }
17617
17616
  getRowHeaders(t2) {
17618
17617
  const e2 = this.getCoords();
@@ -17697,7 +17696,7 @@ class H_ {
17697
17696
  }
17698
17697
  isEntireRows() {
17699
17698
  const t2 = this._sheet;
17700
- return Hg([this.getCoords()], t2._entireCoords, true);
17699
+ return Wg([this.getCoords()], t2._entireCoords, true);
17701
17700
  }
17702
17701
  isEntireColumns() {
17703
17702
  const t2 = this._sheet;
@@ -17705,7 +17704,7 @@ class H_ {
17705
17704
  }
17706
17705
  isEntireRange() {
17707
17706
  const t2 = this.getCoords(), e2 = this._sheet;
17708
- return Vg([t2], e2._entireCoords, true) && Hg([t2], e2._entireCoords, true);
17707
+ return Vg([t2], e2._entireCoords, true) && Wg([t2], e2._entireCoords, true);
17709
17708
  }
17710
17709
  getWidth() {
17711
17710
  const t2 = this._coords;
@@ -17826,8 +17825,8 @@ class H_ {
17826
17825
  }
17827
17826
  }
17828
17827
  const V_ = Math.pow(2, 14), $_ = Math.pow(2, 20), j_ = (t2) => `${t2}`, G_ = (t2) => Bc(t2), U_ = (t2) => `${t2 + 1}`;
17829
- let q_ = 0;
17830
- const J_ = () => [];
17828
+ let J_ = 0;
17829
+ const q_ = () => [];
17831
17830
  let K_ = 0;
17832
17831
  class X_ {
17833
17832
  constructor(t2) {
@@ -17885,7 +17884,7 @@ class X_ {
17885
17884
  if (this._validateCoords(t2), this._closed) return Zg(null, this._entireCoords, t2);
17886
17885
  null === n2 && this._options.readonly && (n2 = "Readonly sheet");
17887
17886
  let r2 = null;
17888
- return (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new H_(((t3) => {
17887
+ return (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new W_(((t3) => {
17889
17888
  if (!t3) return null;
17890
17889
  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 };
17891
17890
  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;
@@ -17893,7 +17892,7 @@ class X_ {
17893
17892
  }
17894
17893
  _createRanges(t2, e2, n2 = null) {
17895
17894
  let r2 = null;
17896
- return null === n2 && this._options.readonly && (n2 = "Readonly sheet"), (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new W_(t2, this, r2);
17895
+ return null === n2 && this._options.readonly && (n2 = "Readonly sheet"), (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new H_(t2, this, r2);
17897
17896
  }
17898
17897
  getRange(t2, e2) {
17899
17898
  let n2 = !e2 && t2 && (void 0 !== t2.rowStart || "string" == typeof t2);
@@ -17972,7 +17971,7 @@ class X_ {
17972
17971
  _rangesToCoords(t2, e2 = null, n2 = true, r2 = false) {
17973
17972
  if (e2 && this._closed) return o.EmptyArray;
17974
17973
  if (null == t2) return o.EmptyArray;
17975
- const s2 = this, i2 = Qc(t2, this._entireCoords, r2 ? qc : Jc, (t3) => {
17974
+ const s2 = this, i2 = Qc(t2, this._entireCoords, r2 ? Jc : qc, (t3) => {
17976
17975
  if (n2 && "string" == typeof t3) {
17977
17976
  const e3 = s2.getNames()?.getByName(t3);
17978
17977
  if (e3) return e3.getRanges().getCoords();
@@ -18119,7 +18118,7 @@ class X_ {
18119
18118
  const i3 = n3.continuous;
18120
18119
  if ("string" == typeof s3 || i3) {
18121
18120
  cS.colStart = o3, cS.rowStart = r3, cS.colEnd = o3, cS.rowEnd = r3;
18122
- const e3 = Tg(0, cS, n3.intersection, _2);
18121
+ const e3 = Ng(0, cS, n3.intersection, _2);
18123
18122
  n3.style = e3;
18124
18123
  const a3 = Mg(r3, o3, t.String, e3, s3, null, null, i3?.getCoords(), _2);
18125
18124
  if (a3) {
@@ -18148,7 +18147,7 @@ class X_ {
18148
18147
  }
18149
18148
  const u2 = a2 || !t2?.ignoreEmptyIntersections;
18150
18149
  let g2 = t2.includeRangeTypes;
18151
- true === g2 && (g2 = Nh);
18150
+ true === g2 && (g2 = Th);
18152
18151
  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;
18153
18152
  let p2, _2;
18154
18153
  if (m2 && r2) {
@@ -18160,14 +18159,14 @@ class X_ {
18160
18159
  const C2 = n2?.cellValuesGrid ?? null;
18161
18160
  let b2 = C2 ? C2.entries(l2) : ia, v2 = b2.next(), x2 = null, I2 = null, R2 = null;
18162
18161
  v2.done || (x2 = v2.value[0], I2 = v2.value[1]);
18163
- let A2 = p2?.[y2++], M2 = f2.next(), N2 = null;
18164
- const T2 = s2 !== e.Orientation.Row;
18162
+ let A2 = p2?.[y2++], M2 = f2.next(), T2 = null;
18163
+ const N2 = s2 !== e.Orientation.Row;
18165
18164
  let F2;
18166
18165
  const k2 = c.createCellComparator(s2, i2);
18167
18166
  let O2;
18168
18167
  if (!M2.done) {
18169
18168
  const t3 = M2.value;
18170
- N2 = t3.intersection, O2 = t3.start;
18169
+ T2 = t3.intersection, O2 = t3.start;
18171
18170
  }
18172
18171
  F2 = (t3) => {
18173
18172
  let e2 = null, n3 = null, r3 = null, o3 = false, s3 = false, i3 = null, a3 = null, l3 = false;
@@ -18179,25 +18178,25 @@ class X_ {
18179
18178
  if (l3) e2 = { colIndex: A2.colIndex, rowIndex: A2.rowIndex }, n3 = A2.scalar, r3 = A2.intersection, A2 = p2[y2++];
18180
18179
  else if (x2 && O2) {
18181
18180
  const t4 = k2(x2, O2);
18182
- 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);
18181
+ t4 < 0 ? (e2 = x2, n3 = I2, o3 = true) : t4 > 0 ? (e2 = O2, r3 = T2, s3 = true) : (e2 = x2, n3 = I2, r3 = T2, o3 = true, s3 = true);
18183
18182
  } else if (x2) e2 = x2, n3 = I2, o3 = true;
18184
18183
  else {
18185
18184
  if (!O2 || !u2) return sa;
18186
- e2 = O2, r3 = N2, s3 = true;
18185
+ e2 = O2, r3 = T2, s3 = true;
18187
18186
  }
18188
18187
  if (o3 && (v2 = b2.next(), v2.done ? x2 = null : (x2 = v2.value[0], I2 = v2.value[1])), s3) {
18189
18188
  const t4 = u2 ? void 0 : x2;
18190
- if (M2 = f2.next(t4), M2.done) O2 = null, N2 = null;
18189
+ if (M2 = f2.next(t4), M2.done) O2 = null, T2 = null;
18191
18190
  else {
18192
18191
  const t5 = M2.value;
18193
- N2 = t5.intersection, O2 = t5.cell;
18192
+ T2 = t5.intersection, O2 = t5.cell;
18194
18193
  }
18195
18194
  }
18196
18195
  let c2 = false;
18197
18196
  const h3 = e2.rowIndex, d3 = e2.colIndex;
18198
- T2 || (c2 = h3 === R2?.rowIndex);
18197
+ N2 || (c2 = h3 === R2?.rowIndex);
18199
18198
  let g3 = false;
18200
- if (T2 || (g3 = h3 === x2?.rowIndex), c2) i3 = R2;
18199
+ if (N2 || (g3 = h3 === x2?.rowIndex), c2) i3 = R2;
18201
18200
  else if (m2) {
18202
18201
  let t4 = false;
18203
18202
  for (; !t4 && E2 < w2; ) {
@@ -18323,36 +18322,36 @@ class X_ {
18323
18322
  let v2 = false;
18324
18323
  m2 && this._hasRangedEntries("unlockSpatial", E2) && (b2[Ah.Type.Unlock] = false, v2 = true), this._hasRangedEntries("mergeSpatial", E2) && (b2[Ah.Type.Merge] = false, v2 = true);
18325
18324
  const x2 = this._rangeStateIterator({ bounds: E2, orientation: g2, includeRangeTypes: b2, reuseIterator: { done: false, value: null } });
18326
- let I2 = x2.next(), R2 = -1, A2 = -1, M2 = -1, N2 = -1, T2 = null;
18325
+ let I2 = x2.next(), R2 = -1, A2 = -1, M2 = -1, T2 = -1, N2 = null;
18327
18326
  if (!I2.done) {
18328
18327
  const t3 = I2.value, e2 = t3.start, n3 = t3.end;
18329
- 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;
18328
+ R2 = u2 ? e2.colIndex : e2.rowIndex, A2 = u2 ? n3.colIndex : n3.rowIndex, M2 = u2 ? e2.rowIndex : e2.colIndex, T2 = u2 ? n3.rowIndex : n3.colIndex, N2 = t3.intersection;
18330
18329
  }
18331
18330
  let F2 = (t3, e2) => {
18332
18331
  do {
18333
- if (!T2 || t3 <= M2 && e2 < M2) return null;
18334
- if (t3 >= R2 && e2 >= M2 && t3 <= A2 && e2 <= N2) return T2;
18335
- if (I2 = x2.next(), I2.done) T2 = null, F2 = null, v2 = false;
18332
+ if (!N2 || t3 <= M2 && e2 < M2) return null;
18333
+ if (t3 >= R2 && e2 >= M2 && t3 <= A2 && e2 <= T2) return N2;
18334
+ if (I2 = x2.next(), I2.done) N2 = null, F2 = null, v2 = false;
18336
18335
  else {
18337
18336
  const t4 = I2.value;
18338
- 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;
18337
+ R2 = u2 ? t4.start.colIndex : t4.start.rowIndex, A2 = u2 ? t4.end.colIndex : t4.end.rowIndex, M2 = u2 ? t4.start.rowIndex : t4.start.colIndex, T2 = u2 ? t4.end.rowIndex : t4.end.colIndex, N2 = t4.intersection;
18339
18338
  }
18340
- } while (T2);
18341
- return T2;
18339
+ } while (N2);
18340
+ return N2;
18342
18341
  };
18343
- const k2 = c2.getState(this), O2 = k2.cellValuesGrid.clone(), D2 = k2.calcGraph.clone(), B2 = k2.formulaSpatial.clone(), L2 = k2.spillSpatial.clone(), z2 = k2.pendingSpatial.clone(), P2 = k2.calcErrorsSpatial.clone(), W2 = k2.contentfulSpatial.clone(), H2 = bl(u2), V2 = bl(u2, (t3, e2) => {
18342
+ const k2 = c2.getState(this), O2 = k2.cellValuesGrid.clone(), D2 = k2.calcGraph.clone(), B2 = k2.formulaSpatial.clone(), L2 = k2.spillSpatial.clone(), z2 = k2.pendingSpatial.clone(), P2 = k2.calcErrorsSpatial.clone(), H2 = k2.contentfulSpatial.clone(), W2 = bl(u2), V2 = bl(u2, (t3, e2) => {
18344
18343
  if (t3 === e2) return e2;
18345
18344
  }), $2 = bl(u2, (t3, e2) => {
18346
18345
  if (t3 === e2) return e2;
18347
18346
  }), j2 = bl(u2, (t3, e2) => {
18348
18347
  if (t3 === e2) return e2;
18349
18348
  }), G2 = [];
18350
- let U2 = null, q2 = null;
18349
+ let U2 = null, J2 = null;
18351
18350
  if (false !== n2?.textParser) {
18352
18351
  const t3 = n2 && true !== n2.textParser ? n2.textParser : {};
18353
- q2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t3 }, U2 = new lm(p2, null, this._cellOptions);
18352
+ J2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t3 }, U2 = new lm(p2, null, this._cellOptions);
18354
18353
  }
18355
- const J2 = [], K2 = this._cellOptions, X2 = /* @__PURE__ */ new Map(), Y2 = dm, Q2 = (t3, e2, n3) => {
18354
+ const q2 = [], K2 = this._cellOptions, X2 = /* @__PURE__ */ new Map(), Y2 = dm, Q2 = (t3, e2, n3) => {
18356
18355
  const r3 = F2?.(e2, n3);
18357
18356
  if (r3?.merge) {
18358
18357
  const t4 = r3.merge.getCoords(), o4 = u2 ? t4.colStart : t4.rowStart, s3 = u2 ? t4.rowStart : t4.colStart;
@@ -18365,12 +18364,12 @@ class X_ {
18365
18364
  G2.push({ colStart: u2 ? e2 : n3, rowStart: u2 ? n3 : e2, colEnd: (u2 ? e2 : n3) + t4.width - 1, rowEnd: (u2 ? n3 : e2) + t4.height - 1 });
18366
18365
  }
18367
18366
  }
18368
- let o3 = vg(t3, K2, q2, X2);
18367
+ let o3 = vg(t3, K2, J2, X2);
18369
18368
  if (void 0 === o3) return;
18370
18369
  const a3 = o3.value;
18371
18370
  if (o3.stringToParse) {
18372
18371
  oS[0].colIndex = u2 ? e2 : n3, oS[0].rowIndex = u2 ? n3 : e2, oS[1] = a3, oS[2] = r3, U2.setState(oS);
18373
- const t4 = q2?.parse(o3.stringToParse, U2.context), s3 = vg(t4, K2, q2, X2, true);
18372
+ const t4 = J2?.parse(o3.stringToParse, U2.context), s3 = vg(t4, K2, J2, X2, true);
18374
18373
  if (U2.clear(), null === s3) return s3;
18375
18374
  void 0 !== s3 && (o3 = { ...s3 });
18376
18375
  }
@@ -18405,7 +18404,7 @@ class X_ {
18405
18404
  const e4 = i5[t6];
18406
18405
  let r5 = null;
18407
18406
  if (v2 || "number" != typeof e4 ? (v2 || null !== e4 || s2) && (r5 = Q2(e4, n3, c3)) : r5 = e4, null == r5) {
18408
- if (null === r5 && H2.append(n3, c3), h3.length > 0) {
18407
+ if (null === r5 && W2.append(n3, c3), h3.length > 0) {
18409
18408
  const t7 = Y2(h3, p2);
18410
18409
  o4.push([l3, t7]), h3 = [];
18411
18410
  }
@@ -18418,28 +18417,28 @@ class X_ {
18418
18417
  o4.push([l3, t6]), h3 = null;
18419
18418
  }
18420
18419
  }
18421
- o4.length > 0 && J2.push([n3, o4]);
18420
+ o4.length > 0 && q2.push([n3, o4]);
18422
18421
  }
18423
- const r3 = H2.done(), o3 = r3.length;
18422
+ const r3 = W2.done(), o3 = r3.length;
18424
18423
  for (let t4 = 0; t4 < o3; t4++) {
18425
18424
  const e2 = r3[t4];
18426
- O2.delete(r3[t4]), W2.insertNonOverlapping({ ...e2, value: null });
18425
+ O2.delete(r3[t4]), H2.insertNonOverlapping({ ...e2, value: null });
18427
18426
  const n3 = D2.delete(e2);
18428
18427
  this._updateFormulaSpatial(B2, null, n3);
18429
18428
  }
18430
18429
  let i3;
18431
- J2.length > 0 && (O2.setValues(J2), i3 = { tuples: J2, bounds: l2 });
18430
+ q2.length > 0 && (O2.setValues(q2), i3 = { tuples: q2, bounds: l2 });
18432
18431
  let g3, m3 = j2.done();
18433
18432
  if (m3.length > 1 && (m3 = el(m3, e.Orientation.Column, 1)), i3 || m3.length > 0) {
18434
18433
  const t4 = D2.setInputs(i3, m3);
18435
18434
  g3 = this._updateFormulaSpatial(B2, t4.inserts, t4.removes, k2.directStyleSpatial);
18436
18435
  }
18437
- const f3 = um(J2, u2), C3 = f3.length;
18438
- for (let t4 = 0; t4 < C3; t4++) W2.insertNonOverlapping(f3[t4]);
18436
+ const f3 = um(q2, u2), C3 = f3.length;
18437
+ for (let t4 = 0; t4 < C3; t4++) H2.insertNonOverlapping(f3[t4]);
18439
18438
  const b3 = V2.done();
18440
18439
  b3.length > 0 && this._updateStyles(b3), G2.length > 0 && this._merge(G2);
18441
18440
  const x3 = $2.done();
18442
- if (x3.length > 0 && this._setHyperlinks(x3), this._updateState({ cellValuesGrid: O2, contentfulSpatial: W2, calcGraph: D2, formulaSpatial: B2, spillSpatial: L2, pendingSpatial: z2, calcErrorsSpatial: P2 }), g3 && g3.length > 0 && this._updateStyles(g3, void 0, {}, true), n2?.autoFit) {
18441
+ if (x3.length > 0 && this._setHyperlinks(x3), this._updateState({ cellValuesGrid: O2, contentfulSpatial: H2, calcGraph: D2, formulaSpatial: B2, spillSpatial: L2, pendingSpatial: z2, calcErrorsSpatial: P2 }), g3 && g3.length > 0 && this._updateStyles(g3, void 0, {}, true), n2?.autoFit) {
18443
18442
  const t4 = "boolean" == typeof n2.autoFit ? aS : n2.autoFit;
18444
18443
  this._autoFit([E2], t4);
18445
18444
  }
@@ -18511,8 +18510,8 @@ class X_ {
18511
18510
  }
18512
18511
  if (!w2) return;
18513
18512
  if (0 === S2.length) return;
18514
- const M2 = /* @__PURE__ */ new Map(), N2 = /* @__PURE__ */ new Map(), T2 = n2?.collators ?? ta.DefaultCollators, F2 = T2.length;
18515
- for (let t3 = 0; t3 < F2; t3++) M2.set(T2[t3].type, T2[t3].compare), N2.set(T2[t3].type, t3);
18513
+ const M2 = /* @__PURE__ */ new Map(), T2 = /* @__PURE__ */ new Map(), N2 = n2?.collators ?? ta.DefaultCollators, F2 = N2.length;
18514
+ for (let t3 = 0; t3 < F2; t3++) M2.set(N2[t3].type, N2[t3].compare), T2.set(N2[t3].type, t3);
18516
18515
  let k2 = null, O2 = null, D2 = null;
18517
18516
  S2.sort((t3, e2) => {
18518
18517
  const n3 = p2.length;
@@ -18525,14 +18524,14 @@ class X_ {
18525
18524
  const h3 = o3.getType(), d2 = s3.getType();
18526
18525
  let u3 = 0;
18527
18526
  if (h3 !== d2) {
18528
- let t4 = N2.get(h3);
18529
- u3 = N2.get(d2) - t4;
18527
+ let t4 = T2.get(h3);
18528
+ u3 = T2.get(d2) - t4;
18530
18529
  } else {
18531
18530
  let t4 = O2;
18532
18531
  if (k2 !== h3) {
18533
18532
  t4 = M2.get(h3), O2 = t4, k2 = h3;
18534
- let e3 = N2.get(d2);
18535
- const r4 = T2[e3].defaultOptions;
18533
+ let e3 = T2.get(d2);
18534
+ const r4 = N2[e3].defaultOptions;
18536
18535
  D2 = { ...r4, ...n4.collatorOptions };
18537
18536
  }
18538
18537
  u3 = t4(i3, a3, D2);
@@ -18546,8 +18545,8 @@ class X_ {
18546
18545
  v2 || (L2 = this._getVisible(L2, { orientations: c2 ? e.Orientations.Row : e.Orientations.Column })), this._clear(L2, void 0, void 0, true);
18547
18546
  const z2 = this._createIncrementalUpdater({ orientation: l2 });
18548
18547
  let P2 = c2 ? u2.rowStart : u2.colStart;
18549
- const W2 = S2.length;
18550
- for (let t3 = 0; t3 < W2; t3++) {
18548
+ const H2 = S2.length;
18549
+ for (let t3 = 0; t3 < H2; t3++) {
18551
18550
  const e2 = S2[t3];
18552
18551
  if (b2 && (P2 = b2(P2)), e2) {
18553
18552
  const t4 = e2.values, n3 = t4.length;
@@ -18574,7 +18573,7 @@ class X_ {
18574
18573
  const p2 = { ...t2 };
18575
18574
  let _2 = { ...t2 };
18576
18575
  const S2 = [t2], w2 = this._getMerges(S2);
18577
- if (w2.length > 0 && !c.isRangeWithinRange(c.unionRangesArrays(w2), t2)) throw new Error(Hh);
18576
+ if (w2.length > 0 && !c.isRangeWithinRange(c.unionRangesArrays(w2), t2)) throw new Error(Wh);
18578
18577
  const y2 = { ..._2 };
18579
18578
  let E2 = 1;
18580
18579
  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;
@@ -18585,20 +18584,20 @@ class X_ {
18585
18584
  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;
18586
18585
  }
18587
18586
  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));
18588
- 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;
18589
- N2 || (g2.reverse = true);
18590
- const T2 = N2 ? R2 + 1 : A2, F2 = (N2 ? M2 : I2 - 1) - T2 + 1, k2 = i2 ? t2.colEnd : t2.rowEnd;
18587
+ 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, T2 = i2 ? o2 === e.Direction.Down : o2 === e.Direction.Right;
18588
+ T2 || (g2.reverse = true);
18589
+ const N2 = T2 ? R2 + 1 : A2, F2 = (T2 ? M2 : I2 - 1) - N2 + 1, k2 = i2 ? t2.colEnd : t2.rowEnd;
18591
18590
  l2.push(c.unionRanges(p2, t2));
18592
18591
  const O2 = [];
18593
18592
  let D2 = null;
18594
18593
  h2 || (m2 = this._beginCommit({ description: "Auto Fill", operation: { name: "autoFill", params: [t2, n2, r2] } }));
18595
- const B2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !N2, orientation: i2 ? e.Orientation.Column : e.Orientation.Row, includeRangeTypes: { [Ah.Type.Style]: false } });
18594
+ const B2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !T2, orientation: i2 ? e.Orientation.Column : e.Orientation.Row, includeRangeTypes: { [Ah.Type.Style]: false } });
18596
18595
  let L2 = B2.next();
18597
18596
  for (; !L2.done; ) {
18598
18597
  const t3 = L2.value.context, e2 = t3.getCell(), n3 = t3.getCoords();
18599
- D2?.oppositeIndex !== n3[v2] && (D2 = { oppositeIndex: n3[v2], lastIndex: N2 ? I2 - 1 : R2 + 1, values: [] }, O2.push(D2));
18598
+ D2?.oppositeIndex !== n3[v2] && (D2 = { oppositeIndex: n3[v2], lastIndex: T2 ? I2 - 1 : R2 + 1, values: [] }, O2.push(D2));
18600
18599
  const r3 = n3[C2];
18601
- if (N2) for (let t4 = D2.lastIndex + 1; t4 < r3; t4++) D2.values.push(null);
18600
+ if (T2) for (let t4 = D2.lastIndex + 1; t4 < r3; t4++) D2.values.push(null);
18602
18601
  else for (let t4 = D2.lastIndex - 1; t4 > r3; t4--) D2.values.push(null);
18603
18602
  D2.lastIndex = r3;
18604
18603
  const o3 = e2.toDate();
@@ -18620,34 +18619,34 @@ class X_ {
18620
18619
  if (n3) return n3;
18621
18620
  }
18622
18621
  return ks.Types.Copy.createFillAt(e2);
18623
- }, W2 = this;
18622
+ }, H2 = this;
18624
18623
  if (h2) {
18625
18624
  const t3 = O2[O2.length - 1];
18626
18625
  if (O2[O2.length - 1]?.oppositeIndex !== k2) return null;
18627
18626
  const n3 = P2(u2, t3.values);
18628
18627
  return h2((t4) => {
18629
- const r3 = W2._rangeToCoords(t4);
18628
+ const r3 = H2._rangeToCoords(t4);
18630
18629
  let s3;
18631
18630
  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 });
18632
- const a3 = i2 ? s3.rowIndex : s3.colIndex, l3 = { value: n3(N2 ? a3 - I2 : I2 - a3 + x2 - 1) };
18631
+ const a3 = i2 ? s3.rowIndex : s3.colIndex, l3 = { value: n3(T2 ? a3 - I2 : I2 - a3 + x2 - 1) };
18633
18632
  let c2 = null;
18634
18633
  return c2 = d2 ? this.createTemporaryCell(l3, s3) : this.createTemporaryCell(null, s3).createTemporaryCell(l3), c2;
18635
18634
  }), false;
18636
18635
  }
18637
- const H2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }), V2 = O2.length;
18636
+ const W2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }), V2 = O2.length;
18638
18637
  O2.sort((t3, e2) => t3.oppositeIndex - e2.oppositeIndex);
18639
18638
  for (let t3 = 0; t3 < V2; t3++) {
18640
- const e2 = t3, n3 = P2(u2, O2[e2].values), r3 = O2[e2].oppositeIndex, o3 = N2 ? x2 : x2 + F2 - 1, s3 = this.isDate1904();
18639
+ const e2 = t3, n3 = P2(u2, O2[e2].values), r3 = O2[e2].oppositeIndex, o3 = T2 ? x2 : x2 + F2 - 1, s3 = this.isDate1904();
18641
18640
  for (let t4 = 0; t4 < F2; t4++) {
18642
- let e3 = n3(o3 + (N2 ? t4 : -t4));
18641
+ let e3 = n3(o3 + (T2 ? t4 : -t4));
18643
18642
  Kr(e3) && (e3 = no(e3, s3));
18644
- const a3 = T2 + t4;
18645
- i2 ? H2.pushAt(a3, r3, e3) : H2.pushAt(r3, a3, e3);
18643
+ const a3 = N2 + t4;
18644
+ i2 ? W2.pushAt(a3, r3, e3) : W2.pushAt(r3, a3, e3);
18646
18645
  }
18647
18646
  }
18648
- this._clear([p2], r2?.contentsOnly ? Yh.Content.Formats : void 0), H2.apply();
18647
+ this._clear([p2], r2?.contentsOnly ? Yh.Content.Formats : void 0), W2.apply();
18649
18648
  const $2 = this._getMerges([_2]), j2 = c.unionRangesArrays($2);
18650
- if ($2.length > 0 && !c.isRangeWithinRange(j2, _2)) throw new Error(Hh);
18649
+ if ($2.length > 0 && !c.isRangeWithinRange(j2, _2)) throw new Error(Wh);
18651
18650
  if ($2.length > 0) {
18652
18651
  const n3 = [], r3 = s2 / E2;
18653
18652
  if (i2) {
@@ -18671,21 +18670,21 @@ class X_ {
18671
18670
  }
18672
18671
  this._merge(n3);
18673
18672
  }
18674
- const G2 = this._getState(), U2 = {}, q2 = {};
18675
- q2.directStyleSpatial = G2.directStyleSpatial, q2.continuousFillSpatial = G2.continuousFillSpatial;
18676
- let J2 = t2, K2 = p2;
18677
- if (!N2) {
18673
+ const G2 = this._getState(), U2 = {}, J2 = {};
18674
+ J2.directStyleSpatial = G2.directStyleSpatial, J2.continuousFillSpatial = G2.continuousFillSpatial;
18675
+ let q2 = t2, K2 = p2;
18676
+ if (!T2) {
18678
18677
  let e2 = (i2 ? _2.rowEnd + 1 - _2.rowStart : _2.colEnd + 1 - _2.colStart) % x2;
18679
18678
  const n3 = i2 ? "rowStart" : "colStart", r3 = i2 ? "rowEnd" : "colEnd";
18680
- 0 !== e2 && (K2 = { ...p2, [r3]: Math.min(p2[r3], p2[n3] + e2) }, J2 = { ...t2, [n3]: t2[r3] - e2 + 1 }, p2[n3] = p2[n3] + e2);
18679
+ 0 !== e2 && (K2 = { ...p2, [r3]: Math.min(p2[r3], p2[n3] + e2) }, q2 = { ...t2, [n3]: t2[r3] - e2 + 1 }, p2[n3] = p2[n3] + e2);
18681
18680
  }
18682
- const X2 = Object.keys(q2), Y2 = X2.length;
18681
+ const X2 = Object.keys(J2), Y2 = X2.length;
18683
18682
  for (let t3 = 0; t3 < Y2; t3++) {
18684
- const e2 = X2[t3], n3 = q2[e2].createCopiedEntries(J2, K2), r3 = G2[e2].clone(), o3 = n3.removes, s3 = o3.length;
18683
+ const e2 = X2[t3], n3 = J2[e2].createCopiedEntries(q2, K2), r3 = G2[e2].clone(), o3 = n3.removes, s3 = o3.length;
18685
18684
  for (let t4 = 0; t4 < s3; t4++) r3.remove(o3[t4]);
18686
18685
  r3.load(n3.inserts), U2[e2] = r3;
18687
18686
  }
18688
- if (N2) {
18687
+ if (T2) {
18689
18688
  const e2 = this.getTables().getItems({ address: { rowIndex: t2.rowEnd, colIndex: t2.colEnd } });
18690
18689
  if (1 === e2.length) {
18691
18690
  const t3 = e2[0], n3 = t3.getRange().getCoords();
@@ -18779,7 +18778,7 @@ class X_ {
18779
18778
  if (e4) if (h2) {
18780
18779
  d2 || (d2 = pi.Styles.lookupStyle(h2)?.formatType);
18781
18780
  const t6 = pi.Styles.lookupStyle(e4)?.formatType;
18782
- Jr(t6, d2) > 0 ? (d2 = t6, h2 = e4) : u2 = true;
18781
+ qr(t6, d2) > 0 ? (d2 = t6, h2 = e4) : u2 = true;
18783
18782
  } else h2 = e4;
18784
18783
  }
18785
18784
  }
@@ -18954,7 +18953,7 @@ class X_ {
18954
18953
  }
18955
18954
  }
18956
18955
  _merge(t2, n2 = null) {
18957
- if (this._protectionCheck(J_, t2), 1 === t2.length && c.isSingleCell(t2[0])) return;
18956
+ if (this._protectionCheck(q_, t2), 1 === t2.length && c.isSingleCell(t2[0])) return;
18958
18957
  let r2 = e.Orientations.Both;
18959
18958
  n2?.orientations ? r2 = n2?.orientations : n2 === e.Orientations.Row ? r2 = e.Orientations.Row : n2 === e.Orientations.Column && (r2 = e.Orientations.Column);
18960
18959
  const o2 = n2?.discardMultipleValues ?? false;
@@ -19041,7 +19040,7 @@ class X_ {
19041
19040
  }
19042
19041
  }
19043
19042
  _unmerge(t2, e2) {
19044
- if (this._protectionCheck(J_, t2), Yl(t2)) throw new Error("We can't unmerge intersecting ranges.");
19043
+ if (this._protectionCheck(q_, t2), Yl(t2)) throw new Error("We can't unmerge intersecting ranges.");
19045
19044
  if (!this._getState()) return null;
19046
19045
  const n2 = c.unionRangesArrays(t2), r2 = fm(t2), o2 = this._beginCommit({ description: e2?.description ?? "Unmerge" }), s2 = o2.getState(this).mergeSpatial, i2 = [];
19047
19046
  try {
@@ -19068,7 +19067,7 @@ class X_ {
19068
19067
  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 F({ transient: true });
19069
19068
  const e2 = new X_(t2), n2 = this._transactions.getState(this);
19070
19069
  e2._updateState(n2);
19071
- const r2 = new T_({ sheet: this, json: this.getView().toJSON() });
19070
+ const r2 = new N_({ sheet: this, json: this.getView().toJSON() });
19072
19071
  return r2.selectMovables(this.getView().getMovableSelection()), e2.setView(r2), e2;
19073
19072
  }
19074
19073
  _getSnapshot(t2, e2) {
@@ -19119,7 +19118,7 @@ class X_ {
19119
19118
  s4 = Math.min(e6.x, s4), i5 = Math.min(e6.y, i5);
19120
19119
  }
19121
19120
  e5 = t4 - s4, n5 = r5 - i5;
19122
- const c3 = o2[0].getCoords(), d4 = { ...c3, x: c3.x + e5, y: c3.y + n5 }, u4 = Jp(a4.getMovables(), d4);
19121
+ const c3 = o2[0].getCoords(), d4 = { ...c3, x: c3.x + e5, y: c3.y + n5 }, u4 = qp(a4.getMovables(), d4);
19123
19122
  e5 += u4.x, n5 += u4.y;
19124
19123
  } else if (s3) {
19125
19124
  const t4 = a4.getRange(d3).getBounds();
@@ -19141,7 +19140,7 @@ class X_ {
19141
19140
  if (i2.getMovableSelection().length > 0) return h2;
19142
19141
  l2.push(h2);
19143
19142
  }
19144
- if (t2.length > 1) throw new Error(Jh);
19143
+ if (t2.length > 1) throw new Error(qh);
19145
19144
  const d2 = { singleMerge: null };
19146
19145
  l2.push({ copyTo(n3, o2) {
19147
19146
  const s3 = { ...e2, ...o2 };
@@ -19268,16 +19267,16 @@ class X_ {
19268
19267
  }
19269
19268
  s3 && (_3 = true), a2.singleMerge && (g2 = false, f2 = false);
19270
19269
  const b3 = h2.colStart - d2.colStart, R2 = h2.rowStart - d2.rowStart, A2 = i2.adjustCells;
19271
- let M2 = { ...Th };
19270
+ let M2 = { ...Nh };
19272
19271
  if (delete M2[Ah.Type.Style], !g2) {
19273
19272
  const t3 = this.getProtection().isLocked();
19274
19273
  M2 = {}, t3 && (M2[Ah.Type.Unlock] = false);
19275
19274
  }
19276
- const N2 = e.Orientation.Column;
19277
- let T2;
19275
+ const T2 = e.Orientation.Column;
19276
+ let N2;
19278
19277
  if (m2) {
19279
- T2 = p2.startIncrementalUpdates({ orientation: i2.transpose ? e.Orientation.Row : e.Orientation.Column });
19280
- const t3 = { orientation: N2, includeRangeTypes: M2, bounds: d2 }, n3 = new lm(this._strings, t3, this._cellOptions), r4 = (t4, e2, r5) => {
19278
+ N2 = p2.startIncrementalUpdates({ orientation: i2.transpose ? e.Orientation.Row : e.Orientation.Column });
19279
+ const t3 = { orientation: T2, includeRangeTypes: M2, bounds: d2 }, n3 = new lm(this._strings, t3, this._cellOptions), r4 = (t4, e2, r5) => {
19281
19280
  const o3 = t4[0], a3 = n3.setState(t4), l4 = n3.context, c2 = l4.getCell(), u4 = c2.isTopLeft();
19282
19281
  let p3 = R2, w3 = b3;
19283
19282
  if (s3) {
@@ -19296,7 +19295,7 @@ class X_ {
19296
19295
  const t5 = A2(a3, l4, { rowIndex: p3, colIndex: w3 }, i2);
19297
19296
  void 0 !== t5 && (C3 = t5, y3 = true);
19298
19297
  }
19299
- if (y3 && (T2.pushAt(p3, w3, C3), g2)) {
19298
+ if (y3 && (N2.pushAt(p3, w3, C3), g2)) {
19300
19299
  const t5 = c2.getSpans();
19301
19300
  (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 });
19302
19301
  }
@@ -19310,7 +19309,7 @@ class X_ {
19310
19309
  } };
19311
19310
  if (!a2.singleMerge && !c.isEqualRanges(v2, d2)) {
19312
19311
  const t4 = v2.colEnd - v2.colStart + 1, e2 = v2.rowEnd - v2.rowStart + 1;
19313
- l3 = new fl({ delegate: l3, bounds: d2, orientation: N2, dims: { major: i2.transpose ? e2 : t4, minor: i2.transpose ? t4 : e2 } });
19312
+ l3 = new fl({ delegate: l3, bounds: d2, orientation: T2, dims: { major: i2.transpose ? e2 : t4, minor: i2.transpose ? t4 : e2 } });
19314
19313
  }
19315
19314
  let u3 = l3.next();
19316
19315
  for (; !u3.done; ) {
@@ -19326,7 +19325,7 @@ class X_ {
19326
19325
  for (let t4 = 0; t4 < s4; t4++) r4.remove(o2[t4]);
19327
19326
  r4.load(n3.inserts), B2[e2] = r4;
19328
19327
  }
19329
- D2._updateState(B2), 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: fm(C2), ranges: E2 }) });
19328
+ D2._updateState(B2), E2.push(v2), C2.push(v2), w2 && w2.length > 0 && D2._colHeaders.updateHeaderPairs(w2), y2 && y2.length > 0 && D2._rowHeaders.updateHeaderPairs(y2), N2?.apply(), S2.length > 0 && l2.getRanges(S2).merge(), I2.commit({ viewBefore: x2, viewAfter: (t3) => ({ ...t3, view: l2.getView(), selection: fm(C2), ranges: E2 }) });
19330
19329
  } catch (t3) {
19331
19330
  throw console.warn(t3), I2.rollback(), new Error(((t4) => `Unable to paste: ${t4}`)(t3.message), { cause: t3 });
19332
19331
  }
@@ -19336,7 +19335,7 @@ class X_ {
19336
19335
  if (t2.isISnapshot) return t2;
19337
19336
  const n2 = t2;
19338
19337
  let r2 = null;
19339
- if (n2?.isICellRanges) throw new Error(Jh);
19338
+ if (n2?.isICellRanges) throw new Error(qh);
19340
19339
  if (r2 = n2?.isICellRange ? n2 : this.getRange(n2), r2.isICellRange) {
19341
19340
  const t3 = r2;
19342
19341
  if (t3.isInvalid()) throw new Error(Kh);
@@ -19426,7 +19425,7 @@ class X_ {
19426
19425
  _insertCells(t2, n2, r2, o2 = void 0) {
19427
19426
  const s2 = this;
19428
19427
  o2 = o2 ?? ((t3, e2) => {
19429
- s2._validateCoords(t3, e2 ?? Wh);
19428
+ s2._validateCoords(t3, e2 ?? Hh);
19430
19429
  });
19431
19430
  const i2 = r2?.description ?? "Insert Cells", a2 = (n2 ?? this._getDefaultShiftOrientation(t2[0])) === e.Orientation.Column;
19432
19431
  if (this._protectionCheck(() => [a2 ? "insertColumns" : "insertRows"], t2, i2), Yl(t2)) throw new Error("We can't insert cells with overlapping selections.");
@@ -19448,20 +19447,20 @@ class X_ {
19448
19447
  }
19449
19448
  n3 = n3.clone(), n3.shift(e2, f2), this._updateState({ cellValuesGrid: n3 });
19450
19449
  }
19451
- const g3 = e2.colStart <= l2.colStart && e2.colEnd >= l2.colEnd, M3 = e2.rowStart <= l2.rowStart && e2.rowEnd >= l2.rowEnd, N3 = (t4, e3, n4, r4) => {
19450
+ const g3 = e2.colStart <= l2.colStart && e2.colEnd >= l2.colEnd, M3 = e2.rowStart <= l2.rowStart && e2.rowEnd >= l2.rowEnd, T3 = (t4, e3, n4, r4) => {
19452
19451
  let o3 = null;
19453
19452
  n4 > 1 && (o3 = t4.at(n4 - 1));
19454
19453
  const s4 = r4 - n4 + 1;
19455
19454
  e3?.(n4, s4), o3 && t4.updateHeaderPairs([{ address: { min: n4, max: r4 }, update: o3 }]);
19456
19455
  };
19457
- 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) => {
19456
+ g3 && T3(this._rowHeaders, this._rowHeadersShiftCallback, e2.rowStart, e2.rowEnd), M3 && T3(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) => {
19458
19457
  I2 === m2.rangesListenerMap && (I2 = new Map(I2)), this._processListenerShift(I2, R2, m2.rangesListenerMap, t4);
19459
19458
  } }), v2 = v2.shift({ range: e2, direction: f2, cloneIfUpdate: v2 === m2.rangesListenerSpatial2, coordValidator: o2 });
19460
19459
  }
19461
- let N2 = m2.formulaSpatial, T2 = m2.spillSpatial, F2 = m2.pendingSpatial;
19462
- b2 !== m2.calcGraph && (N2 = N2.clone(), T2 = T2.clone(), F2 = F2.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: F2, rangesListenerSpatial2: v2, rangeListenerSpatial: x2, rangesListenerMap: I2 }), this._commitAndAutoSelect(g2, u2, r2?.autoSelect, { viewAfter: { ranges: A2, listeners: R2 } });
19460
+ let T2 = m2.formulaSpatial, N2 = m2.spillSpatial, F2 = m2.pendingSpatial;
19461
+ b2 !== m2.calcGraph && (T2 = T2.clone(), N2 = N2.clone(), F2 = F2.clone()), this._updateState({ contentfulSpatial: s3, unlockSpatial: i3, mergeSpatial: d2, directStyleSpatial: p2, continuousFillSpatial: _2, conditionalSpatial: S2, hyperlinkSpatial: w2, commentsSpatial: y2, movableSpatial: E2, tableSpatial: C2, calcGraph: b2, formulaSpatial: T2, spillSpatial: N2, pendingSpatial: F2, rangesListenerSpatial2: v2, rangeListenerSpatial: x2, rangesListenerMap: I2 }), this._commitAndAutoSelect(g2, u2, r2?.autoSelect, { viewAfter: { ranges: A2, listeners: R2 } });
19463
19462
  } catch (t3) {
19464
- if (console.warn(t3), g2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Wh);
19463
+ if (console.warn(t3), g2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Hh);
19465
19464
  throw t3;
19466
19465
  }
19467
19466
  }
@@ -19485,7 +19484,7 @@ class X_ {
19485
19484
  }
19486
19485
  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 } });
19487
19486
  } catch (t3) {
19488
- if (u2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Wh);
19487
+ if (u2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Hh);
19489
19488
  throw t3;
19490
19489
  }
19491
19490
  }
@@ -19494,7 +19493,7 @@ class X_ {
19494
19493
  r2 = { expandOnly: false, skipCustomSize: false, minContent: false, ...r2 };
19495
19494
  const o2 = "Autofit";
19496
19495
  let s2;
19497
- const i2 = Vg(n2, this._entireCoords, true), a2 = Hg(n2, this._entireCoords, true);
19496
+ const i2 = Vg(n2, this._entireCoords, true), a2 = Wg(n2, this._entireCoords, true);
19498
19497
  s2 = !i2 && a2 ? `${o2} ${y_}` : !a2 && i2 ? `${o2} ${w_}` : a2 && i2 ? `${o2} All` : `${o2}`;
19499
19498
  let l2 = r2.orientations !== e.Orientations.Row;
19500
19499
  this._colHeaders.isProtected() && (l2 = false);
@@ -19511,19 +19510,19 @@ class X_ {
19511
19510
  let o3 = Number.MAX_SAFE_INTEGER, s3 = Number.MIN_SAFE_INTEGER, i3 = false, a3 = "", _2 = -1, S2 = false, w2 = false, y2 = false, E2 = Number.MAX_SAFE_INTEGER, C2 = Number.MIN_SAFE_INTEGER;
19512
19511
  const b2 = this._styles.getNormal(), v2 = this._cellOptions, x2 = r2.orientations === e.Orientations.Row, I2 = /* @__PURE__ */ new Map(), R2 = nl(n2, 1);
19513
19512
  R2.sort(c.createRangeComparator(e.Orientation.Column));
19514
- const A2 = R2.length, M2 = { skipCustomSize: r2.skipCustomSize }, N2 = Ko.getDeviceScale(), T2 = this._defaultRowHeight() * N2, F2 = this._defaultColWidth(), k2 = (t2, e2 = 1) => {
19515
- if (0 !== t2 && !(e2 > 1)) return t2 = Math.max(t2, T2), (e3) => u2 ? t2 : Math.max(e3, t2 ?? T2);
19513
+ const A2 = R2.length, M2 = { skipCustomSize: r2.skipCustomSize }, T2 = Ko.getDeviceScale(), N2 = this._defaultRowHeight() * T2, F2 = this._defaultColWidth(), k2 = (t2, e2 = 1) => {
19514
+ if (0 !== t2 && !(e2 > 1)) return t2 = Math.max(t2, N2), (e3) => u2 ? t2 : Math.max(e3, t2 ?? N2);
19516
19515
  }, O2 = (t2, e2 = 1) => {
19517
19516
  if (0 !== t2 && !(e2 > 1)) return (e3) => d2 ? t2 : Math.max(e3, t2 ?? F2);
19518
19517
  };
19519
19518
  for (let n3 = 0; n3 < A2; n3++) {
19520
19519
  const r3 = [];
19521
- let f3 = -1, p3 = false, A3 = b2, N3 = 1, T3 = 1, F3 = 1;
19520
+ let f3 = -1, p3 = false, A3 = b2, T3 = 1, N3 = 1, F3 = 1;
19522
19521
  const D2 = R2[n3];
19523
19522
  let B2 = D2.colStart, L2 = D2.rowStart, z2 = D2.colEnd, P2 = D2.rowEnd;
19524
- const W2 = this._getUsedCoords();
19525
- (u2 || d2) && W2 && (B2 = u2 ? W2.colStart : D2.colStart, L2 = d2 ? W2.rowStart : D2.rowStart, z2 = u2 ? W2.colEnd : D2.colEnd, P2 = d2 ? W2.rowEnd : D2.rowEnd);
19526
- const H2 = { includeRangeTypes: { [Ah.Type.Style]: false, [Ah.Type.Merge]: false, [Ah.Type.Continuous]: false, [Ah.Type.Contentful]: false }, excludeHidden: false, bounds: { colStart: B2, rowStart: L2, colEnd: z2, rowEnd: P2 }, orientation: e.Orientation.Column }, V2 = h2 ? [] : void 0, $2 = l2 ? [] : void 0, j2 = (t2, e2, n4) => {
19523
+ const H2 = this._getUsedCoords();
19524
+ (u2 || d2) && H2 && (B2 = u2 ? H2.colStart : D2.colStart, L2 = d2 ? H2.rowStart : D2.rowStart, z2 = u2 ? H2.colEnd : D2.colEnd, P2 = d2 ? H2.rowEnd : D2.rowEnd);
19525
+ const W2 = { includeRangeTypes: { [Ah.Type.Style]: false, [Ah.Type.Merge]: false, [Ah.Type.Continuous]: false, [Ah.Type.Contentful]: false }, excludeHidden: false, bounds: { colStart: B2, rowStart: L2, colEnd: z2, rowEnd: P2 }, orientation: e.Orientation.Column }, V2 = h2 ? [] : void 0, $2 = l2 ? [] : void 0, j2 = (t2, e2, n4) => {
19527
19526
  if (t2 > e2) return null;
19528
19527
  const r4 = [];
19529
19528
  let o4 = t2;
@@ -19542,12 +19541,12 @@ class X_ {
19542
19541
  r4.push(t3);
19543
19542
  }
19544
19543
  return r4;
19545
- }, G2 = this._rangeStateIterator(H2);
19544
+ }, G2 = this._rangeStateIterator(W2);
19546
19545
  let U2 = G2.next();
19547
19546
  for (; !U2.done; ) {
19548
19547
  const t2 = U2.value, e2 = t2.intersection, n4 = t2.start, r4 = t2.end;
19549
19548
  Z_.colStart = n4.colIndex, Z_.rowStart = n4.rowIndex, Z_.colEnd = r4.colIndex, Z_.rowEnd = r4.rowIndex;
19550
- const o4 = c.intersectRanges(Z_, D2, Q_), s4 = Tg(0, o4, e2, v2).getBestFit();
19549
+ const o4 = c.intersectRanges(Z_, D2, Q_), s4 = Ng(0, o4, e2, v2).getBestFit();
19551
19550
  if (h2) {
19552
19551
  const t3 = Math.max(n4.rowIndex, L2), e3 = Math.min(r4.rowIndex, P2), o5 = s4.height, i4 = { address: { min: t3, max: e3 }, update: { size: k2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
19553
19552
  V2.push(i4);
@@ -19558,13 +19557,13 @@ class X_ {
19558
19557
  }
19559
19558
  U2 = G2.next();
19560
19559
  }
19561
- const q2 = this._cellStateIterator({ ...H2, includeRangeTypes: { [Ah.Type.Merge]: false, [Ah.Type.Table]: false, [Ah.Type.Style]: false, [Ah.Type.Continuous]: false }, ignoreEmptyIntersections: true });
19562
- let J2, K2, X2, Y2 = q2.next(), Q2 = 1, Z2 = 1;
19560
+ const J2 = this._cellStateIterator({ ...W2, includeRangeTypes: { [Ah.Type.Merge]: false, [Ah.Type.Table]: false, [Ah.Type.Style]: false, [Ah.Type.Continuous]: false }, ignoreEmptyIntersections: true });
19561
+ let q2, K2, X2, Y2 = J2.next(), Q2 = 1, Z2 = 1;
19563
19562
  for (; !Y2.done; ) {
19564
19563
  const e2 = Y2.value, n4 = e2[0], l3 = e2[2];
19565
19564
  let h3 = b2;
19566
19565
  const d3 = l3?.directStyle ?? l3?.table.getStyle() ?? null;
19567
- d3 === J2 ? h3 = K2 : (h3 = d3 ? Tg(0, c.cellToRange(n4, tS), l3, v2) : b2, K2 = h3);
19566
+ d3 === q2 ? h3 = K2 : (h3 = d3 ? Ng(0, c.cellToRange(n4, tS), l3, v2) : b2, K2 = h3);
19568
19567
  let u3 = 1, g3 = 1;
19569
19568
  const m3 = l3?.merge ?? null;
19570
19569
  if (m3 === X2) u3 = Q2, g3 = Z2;
@@ -19580,7 +19579,7 @@ class X_ {
19580
19579
  F3 = O3.getCoords().colEnd - x3 + 1;
19581
19580
  }
19582
19581
  let B3 = false, L3 = false;
19583
- if (J2 === d3 && u3 === N3 && g3 === T3 && M3 !== t.String && M3 !== t.Error && k3 === p3 || (B3 = true, M3 === t.RichData && (L3 = true), L3 && (B3 = false)), J2 = d3, X2 = m3, (f3 !== x3 || B3) && (-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: u3, spanHeight: g3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), measureWidth: -1, measureHeight: -1, colSpan: F3, isFit: p3 }), f3 = x3, A3 = h3, p3 = k3, N3 = u3, T3 = g3, o3 = Number.MAX_SAFE_INTEGER, s3 = Number.MIN_SAFE_INTEGER, i3 = false, a3 = "", _2 = -1, w2 = false, S2 = false, y2 = false, E2 = I3), C2 = I3, !L3) if (null === R3) y2 = true;
19582
+ if (q2 === d3 && u3 === T3 && g3 === N3 && M3 !== t.String && M3 !== t.Error && k3 === p3 || (B3 = true, M3 === t.RichData && (L3 = true), L3 && (B3 = false)), q2 = d3, X2 = m3, (f3 !== x3 || B3) && (-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: u3, spanHeight: g3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), measureWidth: -1, measureHeight: -1, colSpan: F3, isFit: p3 }), f3 = x3, A3 = h3, p3 = k3, T3 = u3, N3 = g3, o3 = Number.MAX_SAFE_INTEGER, s3 = Number.MIN_SAFE_INTEGER, i3 = false, a3 = "", _2 = -1, w2 = false, S2 = false, y2 = false, E2 = I3), C2 = I3, !L3) if (null === R3) y2 = true;
19584
19583
  else switch (M3) {
19585
19584
  case t.Number:
19586
19585
  0 === R3 && (i3 = true), o3 = Math.min(o3, R3), s3 = Math.max(s3, R3);
@@ -19594,9 +19593,9 @@ class X_ {
19594
19593
  case t.Boolean:
19595
19594
  R3 ? S2 = true : w2 = true;
19596
19595
  }
19597
- Y2 = q2.next();
19596
+ Y2 = J2.next();
19598
19597
  }
19599
- -1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: N3, spanHeight: T3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), colSpan: F3, measureWidth: -1, measureHeight: -1, isFit: p3 });
19598
+ -1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: T3, spanHeight: N3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), colSpan: F3, measureWidth: -1, measureHeight: -1, isFit: p3 });
19600
19599
  let tt2 = -1, et2 = -1;
19601
19600
  const nt2 = r3.length;
19602
19601
  for (let e2 = 0; e2 < nt2; e2++) {
@@ -19764,7 +19763,7 @@ class X_ {
19764
19763
  if (this._closed) throw new Error($h);
19765
19764
  if (!e2) throw new Error(Bh);
19766
19765
  n2 = n2 ? { ...nS, ...n2 } : nS;
19767
- const r2 = n2?.transactional ?? false, o2 = this, s2 = q_++ % Number.MAX_SAFE_INTEGER, i2 = () => {
19766
+ const r2 = n2?.transactional ?? false, o2 = this, s2 = J_++ % Number.MAX_SAFE_INTEGER, i2 = () => {
19768
19767
  let t3 = null, e3 = null;
19769
19768
  if (r2) {
19770
19769
  const n4 = o2._getState();
@@ -20443,12 +20442,12 @@ class X_ {
20443
20442
  URL.revokeObjectURL(l2);
20444
20443
  const c2 = { ...i2, ...a2, ...e2?.bounds };
20445
20444
  if (o.isNullOrUndefined(e2?.bounds?.x) || o.isNullOrUndefined(e2?.bounds?.y)) {
20446
- const t3 = Jp(this.getMovables(), c2, o.isNullOrUndefined(e2?.bounds?.x), o.isNullOrUndefined(e2?.bounds?.y));
20445
+ const t3 = qp(this.getMovables(), c2, o.isNullOrUndefined(e2?.bounds?.x), o.isNullOrUndefined(e2?.bounds?.y));
20447
20446
  c2.x += t3.x, c2.y += t3.y;
20448
20447
  }
20449
20448
  e2?.bounds && false !== e2?.json?.lockAspect && (o.isNullOrUndefined(e2?.bounds.width) && o.isDefined(e2?.bounds.height) && (c2.width = c2.height * a2.width / a2.height), o.isNullOrUndefined(e2?.bounds.height) && o.isDefined(e2?.bounds.width) && (c2.height = c2.width * a2.height / a2.width));
20450
20449
  const h2 = { ...e2?.json, resId: 0 };
20451
- return await this._addMovable({ anchorType: qi.Type.OneCell, description: "Insert Image", ...e2, bounds: c2, type: "picture", json: h2, fromResourceId: (t3) => 0 !== t3 ? (console.warn("received an unexpected resourceId", t3), null) : n2 });
20450
+ return await this._addMovable({ anchorType: Ji.Type.OneCell, description: "Insert Image", ...e2, bounds: c2, type: "picture", json: h2, fromResourceId: (t3) => 0 !== t3 ? (console.warn("received an unexpected resourceId", t3), null) : n2 });
20452
20451
  }
20453
20452
  getTables() {
20454
20453
  return this._tables;
@@ -20771,7 +20770,7 @@ class X_ {
20771
20770
  const s2 = hS;
20772
20771
  this._collectRanges(n2, s2);
20773
20772
  const i2 = om(s2);
20774
- return Tg(0, n2, i2, o2);
20773
+ return Ng(0, n2, i2, o2);
20775
20774
  }
20776
20775
  _initState() {
20777
20776
  const t2 = this, n2 = () => {
@@ -20888,7 +20887,7 @@ class X_ {
20888
20887
  }), a2 = o3, t2._emitter.notify("onMovableSelectionChange");
20889
20888
  }, onAnyChange() {
20890
20889
  t2._defaultColWidthCache = 0, t2._defaultRowHeightCache = 0, t2._defaultFontBoundsCache = null, t2._emitter.notify("onLayoutChange"), t2._emitter.notify("onViewChange");
20891
- } }, c2 = new T_({ sheet: this });
20890
+ } }, c2 = new N_({ sheet: this });
20892
20891
  this._view = c2, this._clearState(), this._viewRemoveListener = c2.addListeners(l2, { transactional: false }), this._viewListener = l2, this._colHeadersRemoveListener?.();
20893
20892
  const h2 = () => {
20894
20893
  const t3 = this.getView().isShowFormulas() ? 2 : 1;
@@ -21014,7 +21013,7 @@ class X_ {
21014
21013
  _createTableEntry(t2, e2 = false) {
21015
21014
  const n2 = { model: null, processShiftCallback: null, processDeleteCallback: null, processProtectionCallback: null, currentName: null, removeListener: null };
21016
21015
  let r2 = null;
21017
- r2 = "string" == typeof t2.ref ? qc(t2.ref, this._entireCoords) : t2.ref;
21016
+ r2 = "string" == typeof t2.ref ? Jc(t2.ref, this._entireCoords) : t2.ref;
21018
21017
  const o2 = { ...r2, value: n2 }, s2 = this, i2 = () => n2.model ? s2._getState().tableMapModel?.get(n2.model) : o2, a2 = (t3, e3) => !(!c.isEqualRanges(t3, e3) || t3.value.model !== e3.value.model), l2 = { transactions: this._transactions, sheet: this, names: this._names, readSheetHeader: e2, json: t2, maxRangeCoords: this._entireCoords, setNameOnContainer(t3) {
21019
21018
  const e3 = i2().value;
21020
21019
  if (!e3.currentName) return;
@@ -21071,7 +21070,7 @@ class X_ {
21071
21070
  a2 = [];
21072
21071
  const t3 = i2.ref.split(","), e3 = t3.length;
21073
21072
  for (let n3 = 0; n3 < e3; n3++) {
21074
- const e4 = qc(t3[n3], l2);
21073
+ const e4 = Jc(t3[n3], l2);
21075
21074
  e4 && a2.push(e4);
21076
21075
  }
21077
21076
  } else a2 = Array.isArray(i2.ref) ? i2.ref : [i2.ref];
@@ -21243,7 +21242,7 @@ class X_ {
21243
21242
  else if ("sp" === d2 || "cxnSp" === d2 || "grpSp" === d2) w2 = new Up(S2);
21244
21243
  else {
21245
21244
  if ("graphicFrame" !== d2) throw new Error(((t3) => `Unsupported float type: ${t3}`)(d2));
21246
- w2 = new qp(S2);
21245
+ w2 = new Jp(S2);
21247
21246
  }
21248
21247
  return o2.model = new Op({ ...p2, content: w2 }), u2 = false, s2;
21249
21248
  }
@@ -21251,7 +21250,7 @@ class X_ {
21251
21250
  this._initializing = true, this._emitter.notify("onBeforeLoad", { params: n2 }), this._clearState();
21252
21251
  const r2 = this._beginCommit({ description: "Load Sheet", viewAfter: { initial: true, skipProtectionCheck: true } }), o2 = n2 || {}, s2 = this._strings, i2 = s2.beginPersist(), a2 = this._resources.beginPersist(), l2 = this._styles.beginPersist();
21253
21252
  try {
21254
- this._ownStrings && i2.fromJSON(o2.strings), this._ownResources && a2.fromJSON(o2.resources), this._ownStyles && l2.fromJSON(o2.styles), this._colHeaders.fromJSON({ headers: o2.cols, defaultSize: o2.defaultColSize }), this._rowHeaders.fromJSON({ headers: o2.rows, defaultSize: o2.defaultRowSize }), this.setView(new T_({ sheet: this, json: o2.view })), this._rangeSelection.updateCoords(this._view.getRangeSelection()), o2.tabColor && (this._tabColor = this._styles.parseColor(o2.tabColor));
21253
+ this._ownStrings && i2.fromJSON(o2.strings), this._ownResources && a2.fromJSON(o2.resources), this._ownStyles && l2.fromJSON(o2.styles), this._colHeaders.fromJSON({ headers: o2.cols, defaultSize: o2.defaultColSize }), this._rowHeaders.fromJSON({ headers: o2.rows, defaultSize: o2.defaultRowSize }), this.setView(new N_({ sheet: this, json: o2.view })), this._rangeSelection.updateCoords(this._view.getRangeSelection()), o2.tabColor && (this._tabColor = this._styles.parseColor(o2.tabColor));
21255
21254
  let h2 = this._getState();
21256
21255
  const d2 = h2.cellValuesGrid, u2 = h2.contentfulSpatial, g2 = o2.data, m2 = g2?.length ?? 0, f2 = dm, p2 = [];
21257
21256
  if (m2 > 0) {
@@ -21299,7 +21298,7 @@ class X_ {
21299
21298
  const t3 = s3.length;
21300
21299
  for (let e2 = 0; e2 < t3; e2++) {
21301
21300
  const t4 = s3[e2], n3 = t4.r;
21302
- i3("string" == typeof n3 ? qc(n3, _2) : n3, t4.v);
21301
+ i3("string" == typeof n3 ? Jc(n3, _2) : n3, t4.v);
21303
21302
  }
21304
21303
  }
21305
21304
  S2.load(t2);
@@ -21318,7 +21317,7 @@ class X_ {
21318
21317
  if (E2) {
21319
21318
  const t2 = [], e2 = E2.length;
21320
21319
  for (let n3 = 0; n3 < e2; n3++) {
21321
- const e3 = qc(E2[n3], _2);
21320
+ const e3 = Jc(E2[n3], _2);
21322
21321
  t2.push(e3);
21323
21322
  }
21324
21323
  this._indexMerges(t2);
@@ -21329,7 +21328,7 @@ class X_ {
21329
21328
  for (let r3 = 0; r3 < n3; r3++) {
21330
21329
  const n4 = t2[r3];
21331
21330
  let o3 = n4.r;
21332
- o3 = "string" == typeof o3 ? qc(o3, _2) : c.sanitizeRange(o3);
21331
+ o3 = "string" == typeof o3 ? Jc(o3, _2) : c.sanitizeRange(o3);
21333
21332
  let s3 = n4.v;
21334
21333
  "string" == typeof s3 && (s3 = { address: s3 }), e2.push({ ...o3, value: s3 });
21335
21334
  }
@@ -21341,7 +21340,7 @@ class X_ {
21341
21340
  for (let r3 = 0; r3 < n3; r3++) {
21342
21341
  const n4 = t2[r3];
21343
21342
  let o3 = n4.ref;
21344
- o3 = "string" == typeof o3 ? qc(o3, _2) : c.sanitizeRange(o3);
21343
+ o3 = "string" == typeof o3 ? Jc(o3, _2) : c.sanitizeRange(o3);
21345
21344
  const s3 = { ...n4 };
21346
21345
  delete s3.ref, e2.push({ ...o3, value: s3 });
21347
21346
  }
@@ -21361,14 +21360,14 @@ class X_ {
21361
21360
  }
21362
21361
  R2.load(t2);
21363
21362
  }
21364
- const A2 = h2.tableMapModel, M2 = h2.tableMapName, N2 = h2.tableSpatial, T2 = o2.tables;
21365
- if (T2) {
21366
- const t2 = [], e2 = T2.length;
21363
+ const A2 = h2.tableMapModel, M2 = h2.tableMapName, T2 = h2.tableSpatial, N2 = o2.tables;
21364
+ if (N2) {
21365
+ const t2 = [], e2 = N2.length;
21367
21366
  for (let n3 = 0; n3 < e2; n3++) {
21368
- const e3 = T2[n3], r3 = this._createTableEntry(e3), o3 = r3.value.model;
21367
+ const e3 = N2[n3], r3 = this._createTableEntry(e3), o3 = r3.value.model;
21369
21368
  A2.set(o3, r3), M2.set(r3.value.currentName, o3), t2.push(r3);
21370
21369
  }
21371
- N2.load(t2);
21370
+ T2.load(t2);
21372
21371
  }
21373
21372
  const F2 = h2.conditionalSpatial, k2 = h2.conditionalModels, O2 = o2.conditionals;
21374
21373
  if (O2) {
@@ -21379,7 +21378,7 @@ class X_ {
21379
21378
  }
21380
21379
  }
21381
21380
  const D2 = h2.calcGraph, B2 = D2.fromJSON({ formulas: o2.formulas, data: p2, dynamic: o2.dynamicArray, volatile: o2.volatile });
21382
- h2 = this._updateState({ hyperlinkSpatial: C2, commentsSpatial: v2, movableSpatial: R2, movableMapModel: I2, tableSpatial: N2, tableMapModel: A2, tableMapName: M2, conditionalSpatial: F2, conditionalModels: k2, calcGraph: D2 });
21381
+ h2 = this._updateState({ hyperlinkSpatial: C2, commentsSpatial: v2, movableSpatial: R2, movableMapModel: I2, tableSpatial: T2, tableMapModel: A2, tableMapName: M2, conditionalSpatial: F2, conditionalModels: k2, calcGraph: D2 });
21383
21382
  const L2 = this._getUsedCoords();
21384
21383
  L2 && this._autoFit([L2], { orientations: e.Orientations.Row, skipCustomSize: true }), r2.commit(), B2 && this._realizeCalcedValues(B2), o2.protection && this._protection.fromJSON(o2.protection), this._emitter.notify("onLoad");
21385
21384
  } finally {
@@ -21482,7 +21481,8 @@ class uS {
21482
21481
  return this._state.activeSheetId;
21483
21482
  }
21484
21483
  setActiveSheetId(t2) {
21485
- return this._state.activeSheetId = t2, this._emitter.notify("onViewChange"), this;
21484
+ const e2 = this._state.activeSheetId;
21485
+ return this._state.activeSheetId = t2, e2 !== t2 && this._emitter.notify("onViewChange"), this;
21486
21486
  }
21487
21487
  addListeners(t2, e2) {
21488
21488
  return this._emitter.addListeners(t2, e2);
@@ -21562,7 +21562,7 @@ class gS {
21562
21562
  return this._beginCommit(t2);
21563
21563
  }
21564
21564
  _getState() {
21565
- if (this._closed) throw new Error(Ji);
21565
+ if (this._closed) throw new Error(qi);
21566
21566
  return this._transactions.getState(this);
21567
21567
  }
21568
21568
  _beginCommit(t2) {
@@ -21865,7 +21865,7 @@ class vS extends L_ {
21865
21865
  return super._toJSON(t2);
21866
21866
  }
21867
21867
  }
21868
- const xS = (t2) => `Invalid SheetKey: ${t2}`, IS = "A workbook must contain at least one visible worksheet.", RS = "Internal error no visible sheetRefs", AS = "Workbook has been closed. No further operations are allowed.", MS = "This workbook structure is protected. To make a change, unprotect the workbook. You might be requested to enter a password.", NS = "A sheet name", TS = `${NS} can not be blank.`, FS = `${NS} can not be longer than 31 characters.`, kS = `${NS} can not begin or end with a "'" (single quote).`;
21868
+ const xS = (t2) => `Invalid SheetKey: ${t2}`, IS = "A workbook must contain at least one visible worksheet.", RS = "Internal error no visible sheetRefs", AS = "Workbook has been closed. No further operations are allowed.", MS = "This workbook structure is protected. To make a change, unprotect the workbook. You might be requested to enter a password.", TS = "A sheet name", NS = `${TS} can not be blank.`, FS = `${TS} can not be longer than 31 characters.`, kS = `${TS} can not begin or end with a "'" (single quote).`;
21869
21869
  class OS {
21870
21870
  constructor(t2, e2) {
21871
21871
  this._add = t2, this._get = e2;
@@ -21884,12 +21884,12 @@ class OS {
21884
21884
  }
21885
21885
  }
21886
21886
  const DS = new RegExp(/[\\/\\*?:[\]]+/), BS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), LS = (t2) => `Sheet${t2 + 1}`, zS = (t2, e2) => ({ ...Qg, getSheet: () => null, toString: () => Gc(t2, e2) }), PS = (t2, e2 = false) => {
21887
- if (!t2) throw new Error(TS);
21887
+ if (!t2) throw new Error(NS);
21888
21888
  if (DS.test(t2)) {
21889
- if (!e2) throw new Error(((t3) => `${t3 ? `'${t3}'` : NS} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t2));
21889
+ if (!e2) throw new Error(((t3) => `${t3 ? `'${t3}'` : TS} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t2));
21890
21890
  t2 = t2.replace(DS, "");
21891
21891
  }
21892
- if (0 === t2.length) throw new Error(TS);
21892
+ if (0 === t2.length) throw new Error(NS);
21893
21893
  const n2 = t2.length;
21894
21894
  if (n2 > 31) {
21895
21895
  if (!e2) throw new Error(FS);
@@ -21901,7 +21901,7 @@ const DS = new RegExp(/[\\/\\*?:[\]]+/), BS = new RegExp(/\(((\d+)(?!.*\d))\)$/,
21901
21901
  }
21902
21902
  return t2;
21903
21903
  };
21904
- class WS extends W_ {
21904
+ class HS extends H_ {
21905
21905
  constructor(t2, e2, n2, r2) {
21906
21906
  super(t2, e2, r2), this._workbook = n2;
21907
21907
  }
@@ -21910,7 +21910,7 @@ class WS extends W_ {
21910
21910
  }
21911
21911
  _createRanges(t2, e2) {
21912
21912
  let n2 = this._options;
21913
- return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new WS(t2, this._sheet, this._workbook, n2);
21913
+ return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new HS(t2, this._sheet, this._workbook, n2);
21914
21914
  }
21915
21915
  _createRange(t2, e2) {
21916
21916
  const n2 = t2 ? { ...t2 } : null;
@@ -21919,7 +21919,7 @@ class WS extends W_ {
21919
21919
  return delete n2?.sheetName, zS(n2, n2 ? { sheetName: Ac, ...t3.getEntireRange().getCoords() } : null);
21920
21920
  }
21921
21921
  let r2 = this._options;
21922
- return e2 && (r2 = { ...this._options, getOptions: cm(this._options.getOptions, e2) }), new HS(t2, this._sheet, this._workbook, r2);
21922
+ return e2 && (r2 = { ...this._options, getOptions: cm(this._options.getOptions, e2) }), new WS(t2, this._sheet, this._workbook, r2);
21923
21923
  }
21924
21924
  async select(t2) {
21925
21925
  const e2 = [];
@@ -21949,20 +21949,20 @@ class WS extends W_ {
21949
21949
  return Xc(t2, r2, Gc, Pc);
21950
21950
  }
21951
21951
  }
21952
- class HS extends H_ {
21952
+ class WS extends W_ {
21953
21953
  constructor(t2, e2, n2, r2) {
21954
21954
  super(t2, e2, r2), this._workbook = n2;
21955
21955
  }
21956
21956
  _createRanges(t2, e2) {
21957
21957
  let n2 = this._options;
21958
- return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new WS(t2, this._sheet, this._workbook, n2);
21958
+ return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new HS(t2, this._sheet, this._workbook, n2);
21959
21959
  }
21960
21960
  _createRange(t2, e2) {
21961
21961
  const n2 = this._sheet;
21962
21962
  if (!t2) return Zg(n2, n2._entireCoords);
21963
21963
  if (n2._validateCoords(t2), n2._closed) return Zg(null, n2._entireCoords, t2);
21964
21964
  let r2 = this._options;
21965
- return e2 && (r2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new HS(t2, this._sheet, this._workbook, r2);
21965
+ return e2 && (r2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new WS(t2, this._sheet, this._workbook, r2);
21966
21966
  }
21967
21967
  getSource() {
21968
21968
  return this._workbook;
@@ -22030,17 +22030,19 @@ class VS {
22030
22030
  if (void 0 === t4) return e2.getSelectedSheetIndex();
22031
22031
  const n3 = this._getSheetRefs(kp.Visibility.Hidden);
22032
22032
  t4 = t4.toLowerCase();
22033
- for (let e3 = 0; e3 < n3.length; e3++) if (n3[e3].name.toLowerCase() === t4) return e3;
22033
+ const r3 = n3.length;
22034
+ for (let e3 = 0; e3 < r3; e3++) if (n3[e3].name.toLowerCase() === t4) return e3;
22034
22035
  try {
22035
22036
  $S.address = t4, $S.scope = void 0;
22036
22037
  const e3 = this._names.getItems($S);
22037
22038
  if (!e3 || 0 === e3.length) return -1;
22038
22039
  const n4 = e3[0].getRanges().getCoords()?.[0];
22039
- let r3 = n4?.sheetName;
22040
- if (!r3) return -1;
22040
+ let r4 = n4?.sheetName;
22041
+ if (!r4) return -1;
22041
22042
  const o3 = this._getSheetRefs(kp.Visibility.Hidden);
22042
- r3 = r3.toLowerCase();
22043
- for (let t5 = 0; t5 < o3.length; t5++) if (o3[t5].name.toLowerCase() === r3) return t5;
22043
+ r4 = r4.toLowerCase();
22044
+ const s3 = o3.length;
22045
+ for (let t5 = 0; t5 < s3; t5++) if (o3[t5].name.toLowerCase() === r4) return t5;
22044
22046
  } catch (t5) {
22045
22047
  return -1;
22046
22048
  }
@@ -22090,9 +22092,10 @@ class VS {
22090
22092
  if (!t2) throw new Error("View can not be empty.");
22091
22093
  this._listenerWorkbookView?.();
22092
22094
  const e2 = this;
22095
+ let n2 = -1;
22093
22096
  return this._listenerWorkbookView = t2.addListeners({ onViewChange: (t3) => {
22094
- const n2 = e2._getState();
22095
- this._activeSheetOffset = this._findOffsetForId(this._view.getActiveSheetId(), n2.sheetRefsVisible), e2._emitter.notify("onViewChange");
22097
+ const r2 = e2._getState(), o2 = this._view.getActiveSheetId(), s2 = this._findOffsetForId(o2, r2.sheetRefsAll);
22098
+ this._activeSheetOffset = s2, e2._emitter.notify("onViewChange"), n2 !== o2 && e2._emitter.notify("onSelectionChange"), n2 = o2;
22096
22099
  } }), this._view = t2, e2._emitter.notify("onViewChange"), this;
22097
22100
  }
22098
22101
  isDate1904() {
@@ -22147,8 +22150,8 @@ class VS {
22147
22150
  return this.getSheets().add(t2);
22148
22151
  }
22149
22152
  _getSheets(t2 = kp.Visibility.Visible) {
22150
- const e2 = this._getSheetRefs(t2), n2 = [];
22151
- for (let t3 = 0; t3 < e2.length; t3++) n2.push(e2[t3].sheet);
22153
+ const e2 = this._getSheetRefs(t2), n2 = [], r2 = e2.length;
22154
+ for (let t3 = 0; t3 < r2; t3++) n2.push(e2[t3].sheet);
22152
22155
  return n2;
22153
22156
  }
22154
22157
  _getSheetRefs(t2 = kp.Visibility.Visible) {
@@ -22162,7 +22165,7 @@ class VS {
22162
22165
  if ("number" == typeof t2) {
22163
22166
  return this._getSheetRefs(e2)[t2];
22164
22167
  }
22165
- return "string" == typeof t2 ? n2 = this._getState().refsByLowerCaseName.get(t2.toLowerCase()) : t2 instanceof X_ ? n2 = this._getState().refsByInstance.get(t2) : t2?.id && t2.sheet && (n2 = this._getState().refsById.get(t2.id)), n2;
22168
+ return "string" == typeof t2 ? n2 = this._getState().refsByLowerCaseName.get(t2.toLowerCase()) : t2 instanceof X_ ? n2 = this._getState().refsByInstance.get(t2) : void 0 !== t2?.id && t2.sheet && (n2 = this._getState().refsById.get(t2.id)), n2;
22166
22169
  }
22167
22170
  _validateNewSheetName(t2, e2 = true) {
22168
22171
  if (null == t2) return t2;
@@ -22234,14 +22237,14 @@ class VS {
22234
22237
  _addSheet(t2, e2 = null, n2 = null) {
22235
22238
  e2 = this._nextSheetName(e2);
22236
22239
  const r2 = this._getState(), o2 = this._createSheet(r2.lastId, e2, kp.Visibility.Visible, n2, null);
22237
- if (!o2) throw new Error(TS);
22240
+ if (!o2) throw new Error(NS);
22238
22241
  return t2 && this._emitter.notify("onSheetsChange"), o2;
22239
22242
  }
22240
22243
  _updateSheetRefStates(t2) {
22241
22244
  if (this._closed) throw new Error(AS);
22242
22245
  if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new Error(MS);
22243
- const e2 = t2, n2 = [], r2 = [];
22244
- for (let t3 = 0; t3 < e2.length; t3++) e2[t3].visibility === kp.Visibility.Visible ? (n2.push(e2[t3]), r2.push(e2[t3])) : e2[t3].visibility === kp.Visibility.Hidden && r2.push(e2[t3]);
22246
+ const e2 = t2, n2 = [], r2 = [], o2 = e2.length;
22247
+ for (let t3 = 0; t3 < o2; t3++) e2[t3].visibility === kp.Visibility.Visible ? (n2.push(e2[t3]), r2.push(e2[t3])) : e2[t3].visibility === kp.Visibility.Hidden && r2.push(e2[t3]);
22245
22248
  this._updateState({ sheetRefsAll: e2, sheetRefsVisible: n2, sheetRefsVisibleAndHidden: r2 });
22246
22249
  }
22247
22250
  _addSheetRef(t2, e2 = null) {
@@ -22268,29 +22271,33 @@ class VS {
22268
22271
  if (!e4) return;
22269
22272
  const n3 = g2._beginCommit({ description: `Remove Sheet ${e4.name}` });
22270
22273
  try {
22271
- const r3 = g2._getState(), o3 = r3.sheetRefsAll, s3 = g2._findOffsetForId(e4.id, o3);
22272
- let a3 = [...o3];
22274
+ const r4 = g2._getState(), o4 = r4.sheetRefsAll, s3 = g2._findOffsetForId(e4.id, o4);
22275
+ let a3 = [...o4];
22273
22276
  a3.splice(s3, 1), g2._updateSheetRefStates(a3);
22274
- const l3 = new Map(r3.refsById);
22277
+ const l3 = new Map(r4.refsById);
22275
22278
  l3.delete(e4.id);
22276
- const c3 = new Map(r3.sheetsById);
22279
+ const c3 = new Map(r4.sheetsById);
22277
22280
  c3.delete(e4.id);
22278
- const h3 = e4.name.toLowerCase(), d3 = new Map(r3.refsByLowerCaseName);
22281
+ const h3 = e4.name.toLowerCase(), d3 = new Map(r4.refsByLowerCaseName);
22279
22282
  d3.delete(h3);
22280
- const u3 = new Map(r3.sheetsByLowerCaseName);
22283
+ const u3 = new Map(r4.sheetsByLowerCaseName);
22281
22284
  u3.delete(h3);
22282
- const m3 = new Map(r3.refsByInstance);
22285
+ const m3 = new Map(r4.refsByInstance);
22283
22286
  m3.delete(t3);
22284
- r3.listenersSheets.get(e4.id)();
22285
- const f3 = new Map(r3.listenersSheets);
22287
+ r4.listenersSheets.get(e4.id)();
22288
+ const f3 = new Map(r4.listenersSheets);
22286
22289
  f3.delete(e4.id), g2._adjustRemoveSelectionIfRequired(s3, e4.id), g2._adjustSheetNamesIfRequired(), g2._emitter.notify("onSheetsChange");
22287
- const p3 = new Set(r3.sheetsCreated);
22290
+ const p3 = new Set(r4.sheetsCreated);
22288
22291
  p3.has(i2) && p3.delete(i2), g2._updateState({ refsById: l3, sheetsById: c3, refsByLowerCaseName: d3, sheetsByLowerCaseName: u3, refsByInstance: m3, sheetsCreated: p3, listenersSheets: f3 }), n3.commit();
22289
22292
  } catch (t4) {
22290
22293
  throw n3.rollback(), t4;
22291
22294
  }
22292
- } });
22293
- m2 = new Map(n2.listenersSheets), m2.set(t2.id, e3);
22295
+ } }), r3 = i2.addListeners({ onSelectionChange: (t3) => {
22296
+ g2.getView().getActiveSheetId() === g2._getSheetRef(t3)?.id && g2._emitter.notify("onSelectionChange", { source: g2, params: t3 });
22297
+ } }, { transactional: false }), o3 = () => {
22298
+ e3(), r3();
22299
+ };
22300
+ m2 = new Map(n2.listenersSheets), m2.set(t2.id, o3);
22294
22301
  }
22295
22302
  let f2 = n2.lastId;
22296
22303
  -1 !== f2 && (f2 = Math.max(f2, t2.id)), this._updateState({ lastId: f2 }), this._updateState({ refsById: l2, refsByLowerCaseName: c2, refsByInstance: h2, sheetsById: d2, sheetsByLowerCaseName: u2, listenersSheets: m2 }), this._adjustSheetNamesIfRequired();
@@ -22320,7 +22327,8 @@ class VS {
22320
22327
  if (1 === n2.length && n2[0].id === e2.id) throw new Error(IS);
22321
22328
  }
22322
22329
  _findOffsetForId(t2, e2) {
22323
- for (let n2 = 0; n2 < e2.length; n2++) if (e2[n2].id === t2) return n2;
22330
+ const n2 = e2.length;
22331
+ for (let r2 = 0; r2 < n2; r2++) if (e2[r2].id === t2) return r2;
22324
22332
  throw new Error(RS);
22325
22333
  }
22326
22334
  find(t2, e2) {
@@ -22373,10 +22381,12 @@ class VS {
22373
22381
  return { count: r2, last: o2 };
22374
22382
  }
22375
22383
  _nextSheetIndex(t2, e2 = this._getSheetRefs()) {
22376
- return 1 === e2.length ? 0 : (void 0 === t2 && (t2 = this.getSelectedSheetIndex()), (t2 = Math.max(0, Math.min(t2, e2.length - 1))) >= e2.length - 1 ? 0 : t2 + 1);
22384
+ const n2 = e2.length;
22385
+ return 1 === n2 ? 0 : (void 0 === t2 && (t2 = this.getSelectedSheetIndex()), (t2 = Math.max(0, Math.min(t2, n2 - 1))) >= n2 - 1 ? 0 : t2 + 1);
22377
22386
  }
22378
22387
  _prevSheetIndex(t2, e2 = this._getSheetRefs()) {
22379
- return 1 === e2.length ? 0 : (void 0 === t2 && (t2 = this.getSelectedSheetIndex()), (t2 = Math.max(0, Math.min(t2, e2.length - 1))) <= 0 ? e2.length - 1 : t2 - 1);
22388
+ const n2 = e2.length;
22389
+ return 1 === n2 ? 0 : (void 0 === t2 && (t2 = this.getSelectedSheetIndex()), (t2 = Math.max(0, Math.min(t2, n2 - 1))) <= 0 ? n2 - 1 : t2 - 1);
22380
22390
  }
22381
22391
  getNextSheet(t2) {
22382
22392
  if (this._closed) throw new Error(AS);
@@ -22418,12 +22428,12 @@ class VS {
22418
22428
  }
22419
22429
  const r2 = this.getSelectedSheet();
22420
22430
  let o2 = null;
22421
- return e2 && (o2 = { getOptions: e2 }), new HS(t2, r2, this, o2);
22431
+ return e2 && (o2 = { getOptions: e2 }), new WS(t2, r2, this, o2);
22422
22432
  }
22423
22433
  _createRanges(t2, e2) {
22424
22434
  const n2 = this.getSelectedSheet();
22425
22435
  let r2 = null;
22426
- return e2 && (r2 = { getOptions: e2 }), new WS(t2, n2, this, r2);
22436
+ return e2 && (r2 = { getOptions: e2 }), new HS(t2, n2, this, r2);
22427
22437
  }
22428
22438
  getRange(t2, e2) {
22429
22439
  try {
@@ -22441,8 +22451,8 @@ class VS {
22441
22451
  return this._createRanges(n2, e2);
22442
22452
  }
22443
22453
  _activeRangeCoords() {
22444
- const t2 = this.getSelectedSheet(), e2 = mm(t2.getSelection().getCoords()), n2 = t2.getName(), r2 = [];
22445
- for (let t3 = 0; t3 < e2.length; t3++) r2.push({ sheetName: n2, ...e2[t3] });
22454
+ const t2 = this.getSelectedSheet(), e2 = mm(t2.getSelection().getCoords()), n2 = t2.getName(), r2 = [], o2 = e2.length;
22455
+ for (let t3 = 0; t3 < o2; t3++) r2.push({ sheetName: n2, ...e2[t3] });
22446
22456
  return r2;
22447
22457
  }
22448
22458
  getSelectedRange(t2) {
@@ -22464,15 +22474,15 @@ class VS {
22464
22474
  "r" === e3 ? r3.rowStart = r3.rowEnd = n3.rowIndex : r3.colStart = r3.colEnd = n3.colIndex, t2 = r3;
22465
22475
  }
22466
22476
  }
22467
- const a2 = this, l2 = Qc(t2, s2, Jc, (t3) => {
22477
+ const a2 = this, l2 = Qc(t2, s2, qc, (t3) => {
22468
22478
  if (!e2) return null;
22469
22479
  if ("string" == typeof t3) {
22470
22480
  const e3 = a2.getNames().getByName(t3);
22471
22481
  if (e3) return e3.getRanges()?.getCoords();
22472
22482
  }
22473
22483
  throw new Error(`Invalid sheet reference '${t3}'.`);
22474
- });
22475
- for (let t3 = 0; t3 < l2.length; t3++) this._validateCoords(l2[t3], n2);
22484
+ }), c2 = l2.length;
22485
+ for (let t3 = 0; t3 < c2; t3++) this._validateCoords(l2[t3], n2);
22476
22486
  return l2;
22477
22487
  }
22478
22488
  _validateCoords(t2, e2 = kp.Visibility.Visible, n2 = Dh) {
@@ -22509,7 +22519,7 @@ class VS {
22509
22519
  const t3 = this._updateSheetRef(n2, r2);
22510
22520
  this._adjustSheetNamesIfRequired(), this._sheetOnNameChange.forEach((t4, e3) => {
22511
22521
  n2.id === e3 && t4();
22512
- }), this._emitter.notify("onSheetsChange"), o2 = t3.sheet, s2.commit();
22522
+ }), this._emitter.notify("onSheetsChange"), n2.id === this.getView().getActiveSheetId() && this._emitter.notify("onSelectionChange"), o2 = t3.sheet, s2.commit();
22513
22523
  } catch (t3) {
22514
22524
  throw s2.rollback(), t3;
22515
22525
  }
@@ -22518,7 +22528,7 @@ class VS {
22518
22528
  _setSheetVisibility(t2, e2 = kp.Visibility.Visible) {
22519
22529
  if (this._closed) throw new Error(AS);
22520
22530
  if (!this.getProtection().isStructureAllowed()) throw new Error(MS);
22521
- const n2 = this._getSheetRef(t2);
22531
+ const n2 = this._getSheetRef(t2, kp.Visibility.VeryHidden);
22522
22532
  if (!n2) return null;
22523
22533
  if (e2 === n2.visibility) return;
22524
22534
  let r2 = null, o2 = "";
@@ -22590,10 +22600,10 @@ class VS {
22590
22600
  const r2 = () => {
22591
22601
  const t3 = n2.getSource();
22592
22602
  if (t3.isICellRanges) {
22593
- const n3 = [...t3.getCoords()];
22594
- for (let e3 = 0; e3 < n3.length; e3++) {
22595
- const r3 = n3[e3];
22596
- !r3.sheetName && t3.getSheet().getName() && (n3[e3] = { ...r3, sheetName: t3.getSheet().getName() });
22603
+ const n3 = [...t3.getCoords()], r3 = n3.length;
22604
+ for (let e3 = 0; e3 < r3; e3++) {
22605
+ const r4 = n3[e3];
22606
+ !r4.sheetName && t3.getSheet().getName() && (n3[e3] = { ...r4, sheetName: t3.getSheet().getName() });
22597
22607
  }
22598
22608
  return e2.getRanges(n3);
22599
22609
  }
@@ -22653,23 +22663,23 @@ class VS {
22653
22663
  try {
22654
22664
  const n3 = this._getSheetRef(this.getSelectedSheetIndex()).id;
22655
22665
  let i2 = n3, a2 = null;
22656
- const l2 = this._getState(), c2 = l2.sheetRefsAll, h2 = l2.sheetsById;
22657
- for (let r3 = 0; r3 < c2.length; r3++) {
22666
+ const l2 = this._getState(), c2 = l2.sheetRefsAll, h2 = l2.sheetsById, d2 = c2.length;
22667
+ for (let r3 = 0; r3 < d2; r3++) {
22658
22668
  const o3 = c2[r3], s3 = r3 + 1, l3 = await h2.get(o3.id).toJSON(t2), d3 = { name: o3.name, sheet: l3 };
22659
22669
  o3.visibility === kp.Visibility.Visible ? a2 = s3 : d3.visibility = o3.visibility, o3.id === n3 && (i2 = s3), e2.sheets.push(d3);
22660
22670
  }
22661
- const d2 = s2.toJSON();
22662
- d2 && Object.keys(d2).length > 0 && (e2.styles = d2);
22663
- const u2 = this.getProtection().toJSON();
22664
- u2 && (e2.protection = u2);
22665
- const g2 = await r2.toJSONAsync();
22666
- g2 && g2.length > 0 && (e2.strings = g2);
22667
- const m2 = await o2.toJSONAsync();
22668
- m2 && m2.length > 0 && (e2.resources = m2);
22669
- const f2 = this._names.toJSON();
22670
- f2 && f2.length > 0 && (e2.names = f2);
22671
- const p2 = this._view.toJSON();
22672
- p2 && (i2 !== a2 ? p2.activeSheetId = i2 : delete p2.activeSheetId, Object.keys(p2).length > 0 && (e2.view = p2));
22671
+ const u2 = s2.toJSON();
22672
+ u2 && Object.keys(u2).length > 0 && (e2.styles = u2);
22673
+ const g2 = this.getProtection().toJSON();
22674
+ g2 && (e2.protection = g2);
22675
+ const m2 = await r2.toJSONAsync();
22676
+ m2 && m2.length > 0 && (e2.strings = m2);
22677
+ const f2 = await o2.toJSONAsync();
22678
+ f2 && f2.length > 0 && (e2.resources = f2);
22679
+ const p2 = this._names.toJSON();
22680
+ p2 && p2.length > 0 && (e2.names = p2);
22681
+ const _2 = this._view.toJSON();
22682
+ _2 && (i2 !== a2 ? _2.activeSheetId = i2 : delete _2.activeSheetId, Object.keys(_2).length > 0 && (e2.view = _2));
22673
22683
  } finally {
22674
22684
  s2.endPersist(), o2.endPersist(), r2.endPersist();
22675
22685
  }
@@ -22747,7 +22757,7 @@ export {
22747
22757
  Fp as ExternalRangeClipboardItem,
22748
22758
  Xf as F,
22749
22759
  wt as GeomUtils,
22750
- qi as IAnchored,
22760
+ Ji as IAnchored,
22751
22761
  yp as IAutoFilter,
22752
22762
  Qs as IBorder,
22753
22763
  Zm as ICalculation,
@@ -22774,8 +22784,8 @@ export {
22774
22784
  lt as LicenseManager,
22775
22785
  pi as NumberFormat,
22776
22786
  tf as Picture,
22777
- Tp as RangeClipboardItem,
22778
- qm as Resource,
22787
+ Np as RangeClipboardItem,
22788
+ Jm as Resource,
22779
22789
  Km as ResourceCollection,
22780
22790
  X_ as Sheet,
22781
22791
  Yo as SimpleFontFace,