@sheetxl/sdk 0.6.16 → 0.6.17

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 (87) hide show
  1. package/browser/cjs/{U1dm1Xm2kdqUeD6H.cjs → B0ZRkYe5vXS8AXl5.cjs} +1 -1
  2. package/browser/cjs/{DjmtCi-hr6IRzsjv.cjs → B8C0qJCXRmSK9w8i.cjs} +1 -1
  3. package/browser/cjs/{Cv6raToEFuWdFg1l.cjs → BiZu_UkuyEYl_49H.cjs} +1 -1
  4. package/browser/cjs/{Chn_rXue5ZRT7QzO.cjs → BjkUWCp2ObvYeP19.cjs} +1 -1
  5. package/browser/cjs/{GFeCgzGuw5cNzIuz.cjs → BrPDVJeOA7eotIdQ.cjs} +1 -1
  6. package/browser/cjs/{BoWPwuGQGZ9LeAwf.cjs → Bt0KH5ry8A-H2XJc.cjs} +1 -1
  7. package/browser/cjs/{D3PLUvJebJwixno3.cjs → ByU95-ZXPn3w3tPi.cjs} +1 -1
  8. package/browser/cjs/{C2INdehyVPgz1Jzb.cjs → BynzHHQPUmhMyHYX.cjs} +3 -3
  9. package/browser/cjs/{C8JMdl2QLUqigZSp.cjs → C2z-2oeFQXCC2sdF.cjs} +1 -1
  10. package/browser/cjs/{XwMJLG3fnrWb7Kry.cjs → CNU-5-cLXkZdlc_I.cjs} +1 -1
  11. package/browser/cjs/{PxEF95ZwIuQT4wGv.cjs → C_7BUvmtSDknJjxh.cjs} +1 -1
  12. package/browser/cjs/{Pld4bpB-RO-4zCrM.cjs → Ck6yfrJGBKcCAnfo.cjs} +2 -2
  13. package/browser/cjs/{Cr8vGsKEARWkuGbH.cjs → DAVtwWgUmRbYKaUI.cjs} +1 -1
  14. package/browser/cjs/{CDTddlrrNAPAzT-b.cjs → DS7I31gDrgGx-Kjc.cjs} +1 -1
  15. package/browser/cjs/{BmCsHRYZD4YndYs4.cjs → DSBHJBPea75XkjbG.cjs} +1 -1
  16. package/browser/cjs/D_KL_f2CIY390LrK.cjs +54 -0
  17. package/browser/cjs/{_lYekKV2drbqLkab.cjs → DbJg_p3YrWqNiONk.cjs} +1 -1
  18. package/browser/cjs/{Cz3DPikv1uHxmHQO.cjs → Dudo2JNx8nSohuJ9.cjs} +1 -1
  19. package/browser/cjs/{pIJzNhe-hEXBTLKA.cjs → DwpsSlAaY2T3Rh0z.cjs} +1 -1
  20. package/browser/cjs/{eN9d-xodim4o2fVd.cjs → MxGT1owu3LK7lzv4.cjs} +1 -1
  21. package/browser/cjs/{k-_Yko2e0fYeYSMz.cjs → OlJ4WvknCU0tx9zr.cjs} +2 -2
  22. package/browser/cjs/{kFY5EKAHOvJcdTHU.cjs → PYxlwwf8LymgB6KF.cjs} +1 -1
  23. package/browser/cjs/{C0A1ZSbqhJpcZBXL.cjs → QSfpWHpM3ExP8C31.cjs} +1 -1
  24. package/browser/cjs/{DwQjplri0TLmw6Dr.cjs → SDe43jbsWmUivkUh.cjs} +1 -1
  25. package/browser/cjs/{DQ_XM6muCimf60e7.cjs → g-p1ZhI1XIJx-vvq.cjs} +1 -1
  26. package/browser/cjs/{DtX35zG23d6nmxHr.cjs → g44jkX22Kjpaujd8.cjs} +1 -1
  27. package/browser/cjs/index.cjs +2 -2
  28. package/browser/cjs/{DWgPdK1bXl_mpisL.cjs → vytrRYuoufF5SUFz.cjs} +1 -1
  29. package/browser/esm/{D6BieKg9I2zdEnme.mjs → 1H4OcVpECNdo2leo.mjs} +1 -1
  30. package/browser/esm/BCR-QupOzqFjIQ26.mjs +23328 -0
  31. package/browser/esm/{DXM-_v3PvFbM2njM.mjs → BSkaqwyDqSBFahkS.mjs} +1 -1
  32. package/{node/esm/CaJltcT8q2Qt4tOb.mjs → browser/esm/BbRFZyuCl2YcHE_O.mjs} +1 -1
  33. package/{node/esm/NussRz_Lfu19nTDO.mjs → browser/esm/BcSMUT4Sx-YNny4I.mjs} +1 -1
  34. package/browser/esm/{DpNBrNeVIhiQtG7J.mjs → Bj5dWxpiNTkchR1Y.mjs} +1 -1
  35. package/{node/esm/Ce3zqAUmE9OyqGvt.mjs → browser/esm/Bo9TMq-qqBydQB-d.mjs} +1 -1
  36. package/{node/esm/DXsvBOTVsF5m0ROF.mjs → browser/esm/Bu-rq4yH8T1EwN2P.mjs} +1 -1
  37. package/browser/esm/{BhlYeywnKEKSsVBp.mjs → CF9WRmqFK1b5FwUY.mjs} +1 -1
  38. package/browser/esm/{CoqdATBvO4OVNwUE.mjs → CiDTEYF3f2Ays6hs.mjs} +1 -1
  39. package/browser/esm/{DssDWFBai4LRnGyo.mjs → CijgE8Xdf4U-p_n_.mjs} +1 -1
  40. package/browser/esm/{iMtWYxITH-mK8yV4.mjs → Cjbrqj_RTTjDFoIZ.mjs} +1 -1
  41. package/{node/esm/COVt6Go-h1KJ_SYL.mjs → browser/esm/D1kVfIYxJreinijW.mjs} +1 -1
  42. package/{node/esm/DdQcQ9S4ZGjE5io0.mjs → browser/esm/D3Dm6W1dzveetEon.mjs} +1 -1
  43. package/browser/esm/{BXhWgBqyW7vVSwCE.mjs → DGvCi12sa7ZIIyrU.mjs} +1 -1
  44. package/browser/esm/{CEMahAUp4yeaRZyO.mjs → DKVh-BpPSxRKNBg0.mjs} +1 -1
  45. package/browser/esm/{qYVVqNYgMTjgxSFA.mjs → D_RGE3EZfJC5ZZWR.mjs} +2 -2
  46. package/{node/esm/ktpMAehXfPbHpZxp.mjs → browser/esm/DbfaEgmktGZoVmR9.mjs} +1 -1
  47. package/browser/esm/{DMcVQ-BL4bA_OnOG.mjs → Dh0gG6If4az9wdA_.mjs} +1 -1
  48. package/browser/esm/{CvL_oKmyxaK1QYqk.mjs → Ls1ZSIs4_Dizy6M2.mjs} +1 -1
  49. package/browser/esm/{CMtecoWQQB5QJglr.mjs → PC-0s4BlfmcUuM2n.mjs} +2 -2
  50. package/browser/esm/{B29IdOudbMkKhUWx.mjs → VABCB8JWd3GRuJSJ.mjs} +1 -1
  51. package/browser/esm/{rG8mrr2nckUu5hbw.mjs → W2jVr33Yj6xCsoBI.mjs} +3 -3
  52. package/browser/esm/index.mjs +2 -2
  53. package/{node/esm/DL8H1TIz4eYTJlVj.mjs → browser/esm/sblqA0GEw7u_7uUc.mjs} +1 -1
  54. package/{node/esm/Cu9gRGU_8MCajq2K.mjs → browser/esm/v18e8vKmxVrtktOm.mjs} +1 -1
  55. package/browser/esm/{CwlYf8-SIFOPR2bo.mjs → vbJIfJnzIQ7BWeaz.mjs} +1 -1
  56. package/browser/esm/{DxkU0bhpXyM3VNYS.mjs → xQmntmz9bIJQGGk5.mjs} +1 -1
  57. package/node/esm/{DjzRVBemDPA3DN_8.mjs → 60NBbrQpc9hm9XDF.mjs} +1 -1
  58. package/node/esm/{BqqNCz_koCAYJ3Kx.mjs → B-VscQXhRPYYzMBg.mjs} +1 -1
  59. package/node/esm/{DXM-_v3PvFbM2njM.mjs → BSkaqwyDqSBFahkS.mjs} +1 -1
  60. package/{browser/esm/CaJltcT8q2Qt4tOb.mjs → node/esm/BbRFZyuCl2YcHE_O.mjs} +1 -1
  61. package/{browser/esm/NussRz_Lfu19nTDO.mjs → node/esm/BcSMUT4Sx-YNny4I.mjs} +1 -1
  62. package/node/esm/{DpNBrNeVIhiQtG7J.mjs → Bj5dWxpiNTkchR1Y.mjs} +1 -1
  63. package/{browser/esm/Ce3zqAUmE9OyqGvt.mjs → node/esm/Bo9TMq-qqBydQB-d.mjs} +1 -1
  64. package/node/esm/{Dxs2OFUMD57Oo_AB.mjs → BpnjD3v17ME5wsuw.mjs} +1 -1
  65. package/{browser/esm/DXsvBOTVsF5m0ROF.mjs → node/esm/Bu-rq4yH8T1EwN2P.mjs} +1 -1
  66. package/node/esm/{C61hKIygirc2mSxV.mjs → C4eGsdqRlRQklHCI.mjs} +1 -1
  67. package/node/esm/{PWC-IfMc5cNOks4D.mjs → CV4lgmXng9GwC7Jc.mjs} +2 -2
  68. package/node/esm/{0VNBUAjGhg3IHPRC.mjs → CduvvHyonYr0CJdM.mjs} +1 -1
  69. package/node/esm/{CLXpyIa1G-kRzIzH.mjs → Ch4EonmIhss9y_h3.mjs} +1 -1
  70. package/node/esm/{iMtWYxITH-mK8yV4.mjs → Cjbrqj_RTTjDFoIZ.mjs} +1 -1
  71. package/{browser/esm/COVt6Go-h1KJ_SYL.mjs → node/esm/D1kVfIYxJreinijW.mjs} +1 -1
  72. package/{browser/esm/DdQcQ9S4ZGjE5io0.mjs → node/esm/D3Dm6W1dzveetEon.mjs} +1 -1
  73. package/node/esm/{CEMahAUp4yeaRZyO.mjs → DKVh-BpPSxRKNBg0.mjs} +1 -1
  74. package/{browser/esm/ktpMAehXfPbHpZxp.mjs → node/esm/DbfaEgmktGZoVmR9.mjs} +1 -1
  75. package/node/esm/{DMcVQ-BL4bA_OnOG.mjs → Dh0gG6If4az9wdA_.mjs} +1 -1
  76. package/node/esm/{BoURPosx6Uvnr7bI.mjs → DkQjw7yUaMjLtVhs.mjs} +1 -1
  77. package/node/esm/{Bj_liro3wEoofx_s.mjs → DrAv_iWPmonAJ9-3.mjs} +1 -1
  78. package/node/esm/{CvL_oKmyxaK1QYqk.mjs → Ls1ZSIs4_Dizy6M2.mjs} +1 -1
  79. package/node/esm/{B29IdOudbMkKhUWx.mjs → VABCB8JWd3GRuJSJ.mjs} +1 -1
  80. package/node/esm/index.mjs +913 -796
  81. package/{browser/esm/DL8H1TIz4eYTJlVj.mjs → node/esm/sblqA0GEw7u_7uUc.mjs} +1 -1
  82. package/{browser/esm/Cu9gRGU_8MCajq2K.mjs → node/esm/v18e8vKmxVrtktOm.mjs} +1 -1
  83. package/package.json +4 -4
  84. package/types/index.d.ts +217 -32
  85. package/types/scripting.d.ts +308 -52
  86. package/browser/cjs/CtMEtiTTRRZpP_y5.cjs +0 -54
  87. package/browser/esm/BadKxl9yXM8LRAt0.mjs +0 -23197
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.16
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.17
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.6.16";
380
+ return "0.6.17";
381
381
  } catch (t2) {
382
382
  return "";
383
383
  }
384
- }, z = Object.freeze(Object.defineProperty({ __proto__: null, getBuildDate: () => {
384
+ }, P = Object.freeze(Object.defineProperty({ __proto__: null, getBuildDate: () => {
385
385
  try {
386
- return "Sat Aug 30 2025";
386
+ return "Sun Aug 31 2025";
387
387
  } catch (t2) {
388
388
  return "";
389
389
  }
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 () => {
390
+ }, getBuildVersion: L }, Symbol.toStringTag, { value: "Module" })), z = "\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 () => {
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(W), n2 = t3.hex(V);
416
- return console.log(e2(P) + n2(H));
415
+ const e2 = t3.hex(H), n2 = t3.hex(V);
416
+ return console.log(e2(z) + n2(W));
417
417
  } catch (t3) {
418
- return console.log(P + "\n" + H + "\n");
418
+ return console.log(z + "\n" + W + "\n");
419
419
  }
420
420
  }, printDetails: async (t2, e2 = false, n2 = false, r2 = false) => {
421
421
  let o2;
@@ -425,7 +425,7 @@ const L = () => {
425
425
  "chalk"
426
426
  )).default;
427
427
  s2.level = 2;
428
- const i2 = s2.red, a2 = s2.hex(W), l2 = s2.hex(V), c2 = t2.isEval();
428
+ const i2 = s2.red, a2 = s2.hex(H), l2 = s2.hex(V), c2 = t2.isEval();
429
429
  if (c2 ? (o2 = "Evaluation Only", console.log(i2(o2)), o2 = "Please visit https://my.sheetxl.com to register.", console.log(a2(o2))) : (o2 = `Licensee: ${t2.licensee() ?? "Invalid License"}
430
430
  `, o2 += `Expires: ${t2.expiration()?.toLocaleDateString() ?? "Never"}`, t2.domains() && t2.domains().length > 0 && (o2 += `
431
431
  Domains: ${t2.domains().join(", ")}`), t2.cpuCount() > 0 && (o2 += `
@@ -457,96 +457,101 @@ KeyFrom: '${t2.keyFrom()}'`, console.log(l2(o2))), Promise.resolve();
457
457
  return r2.join("");
458
458
  })(t2, n2 - e2), G = (t2) => "object" == typeof window ? window.atob(t2) : Buffer.from(t2, "base64").toString("ascii");
459
459
  function U(t2, e2, n2, r2, o2) {
460
- return Z(n2 - -72, o2);
460
+ return et(o2 - 870, n2);
461
+ }
462
+ function J(t2, e2, n2, r2, o2) {
463
+ return et(e2 - -227, t2);
461
464
  }
462
465
  !(function() {
463
- const t2 = 39, e2 = 79, n2 = "4QIi", r2 = "cJJh", o2 = 874, s2 = "KHMJ", i2 = "JPp8", a2 = 638, l2 = 140;
464
- function c2(t3, e3, n3, r3, o3) {
465
- return Z(t3 - -911, o3);
466
+ const t2 = 219, e2 = "1)Jc", n2 = 241, r2 = "gJUw", o2 = "DQr9", s2 = ")wvL", i2 = 141, a2 = 274, l2 = "9^ms", c2 = 287, h2 = "FCIJ", d2 = 34, u2 = at();
467
+ function g2(t3, e3, n3, r3, o3) {
468
+ return et(n3 - -962, r3);
466
469
  }
467
- function h2(t3, e3, n3, r3, o3) {
468
- return Z(r3 - l2, e3);
470
+ function m2(t3, e3, n3, r3, o3) {
471
+ return et(e3 - d2, o3);
469
472
  }
470
- function d2(t3, e3, n3, r3, o3) {
471
- return Z(r3 - 222, e3);
473
+ function f2(t3, e3, n3, r3, o3) {
474
+ return et(r3 - -521, t3);
472
475
  }
473
- function u2(t3, e3, n3, r3, o3) {
474
- return Z(t3 - 497, e3);
476
+ function p2(t3, e3, n3, r3, o3) {
477
+ return et(e3 - -72, t3);
475
478
  }
476
- const g2 = lt();
477
- function m2(t3, e3, n3, r3, o3) {
478
- return Z(n3 - -667, o3);
479
+ function _2(t3, e3, n3, r3, o3) {
480
+ return et(e3 - 58, n3);
479
481
  }
480
482
  for (; ; ) try {
481
- if (289081 === parseInt(m2(0, 0, -t2, 0, "ELg3")) / 1 + -parseInt(m2(0, 0, -e2, 0, "g39c")) / 2 * (parseInt(c2(-434, 0, 0, 0, "mkhp")) / 3) + -parseInt(c2(-313, 0, 0, 0, n2)) / 4 * (parseInt(d2(0, r2, 0, o2)) / 5) + parseInt(c2(-372, 0, 0, 0, "lYg)")) / 6 * (parseInt(u2(1130, s2)) / 7) + parseInt(h2(0, i2, 0, a2)) / 8 + parseInt(h2(0, "4QIi", 0, 674)) / 9 + parseInt(d2(0, "KHMJ", 0, 703)) / 10) break;
482
- g2.push(g2.shift());
483
+ if (302639 === parseInt(p2("#*ih", t2)) / 1 + parseInt(_2(0, 364, "Rfz&")) / 2 * (parseInt(m2(0, 170, 0, 0, e2)) / 3) + -parseInt(m2(0, n2, 0, 0, r2)) / 4 * (parseInt(p2(o2, 142)) / 5) + parseInt(p2(s2, i2)) / 6 + -parseInt(_2(0, a2, "^9Xq")) / 7 + -parseInt(_2(0, 208, l2)) / 8 * (-parseInt(f2("yE5a", 0, 0, -c2)) / 9) + -parseInt(g2(0, 0, -661, h2)) / 10 * (-parseInt(g2(0, 0, -732, "hQu8")) / 11)) break;
484
+ u2.push(u2.shift());
483
485
  } catch (t3) {
484
- g2.push(g2.shift());
486
+ u2.push(u2.shift());
485
487
  }
486
488
  })();
487
- const J = () => {
488
- const t2 = "w]M0", e2 = "H(Qn", n2 = "lYg)", r2 = 159;
489
- if (typeof window === c2(-549, -493, -569, -526, "t00a")) return window[s2 = -429, i2 = t2, Z(s2 - -953, i2)][c2(-340, -346, -281, -431, e2)];
490
- var s2, i2, a2, l2;
491
- function c2(t3, e3, n3, r3, o2) {
492
- return Z(e3 - -958, o2);
493
- }
494
- return o[a2 = n2, l2 = r2, Z(l2 - -408, a2)]();
495
- }, q = () => {
496
- const t2 = 17, e2 = "HCd$", n2 = 151, r2 = "2S%e";
489
+ const q = () => {
490
+ const t2 = 685, e2 = "yE5a", n2 = 543, r2 = 180;
491
+ if (typeof window === s2(728, "QqG(")) return window[s2(t2, "^nz7")][s2(790, e2)];
492
+ function s2(t3, e3, r3, o2, s3) {
493
+ return et(t3 - n2, e3);
494
+ }
495
+ return o[i2 = 458, a2 = "taqr", et(i2 - r2, a2)]();
496
+ var i2, a2;
497
+ }, K = () => {
498
+ const t2 = 318, e2 = "S^)E", n2 = 252, r2 = "gJUw";
497
499
  function o2(t3, e3, n3, r3, o3) {
498
- return Z(t3 - -494, r3);
500
+ return et(t3 - 25, n3);
499
501
  }
500
- return J()[o2(t2, 0, 0, e2)](o2(n2, 0, 0, "L(7c")) || J() === o2(130, 0, 0, r2);
501
- };
502
- function K(t2, e2, n2, r2, o2) {
503
- return Z(e2 - 166, o2);
504
- }
505
- const X = (t2, e2, n2, r2) => {
506
- const o2 = 716;
507
- function s2(t3, e3, n3, r3, s3) {
508
- return Z(t3 - o2, n3);
502
+ return q()[o2(t2, 0, e2)](o2(n2, 0, "[9K!")) || q() === et(-184 - -364, r2);
503
+ }, X = (t2, e2, n2, r2) => {
504
+ const o2 = 344, s2 = "om)(", i2 = 102, a2 = 697;
505
+ function l2(t3, e3, n3, r3, o3) {
506
+ return et(r3 - 948, n3);
507
+ }
508
+ function c2(t3, e3, n3, r3, o3) {
509
+ return et(t3 - i2, n3);
509
510
  }
510
- function i2(t3, e3, n3, r3, o3) {
511
- return Z(n3 - -424, o3);
511
+ function h2(t3, e3, n3, r3, o3) {
512
+ return et(o3 - -269, r3);
512
513
  }
513
- function a2(t3, e3, n3, r3, o3) {
514
- return Z(o3 - -876, e3);
514
+ function d2(t3, e3, n3, r3, o3) {
515
+ return et(t3 - -636, o3);
515
516
  }
516
- return { licensee: () => t2[s2(1182, 0, "DjPX")], expiration: () => {
517
- return new Date(t2[e3 = "iTDh", n3 = -27, Z(n3 - -677, e3)]);
518
- var e3, n3;
519
- }, domains: () => t2[i2(0, 0, 198, 0, "2S%e")] ?? [], developerCount: () => t2[i2(0, 0, 58, 0, "wXTU")] ?? 1, cpuCount: () => t2[s2(1210, 0, "*gHC")] ?? 0, type: () => t2[i2(0, 0, 112, 0, "DjPX")] ?? Z(556 - -26, "@1GG"), exceptions: () => e2, isValidFor: (t3) => {
520
- if (e2?.[n3 = "mKSq", r3 = -230, i2(0, 0, r3 - -435, 0, n3)] > 0) return false;
517
+ return { licensee: () => t2[h2(0, 0, 0, "om)(", -145)], expiration: () => new Date(t2[h2(0, 0, 0, "o1M@", -82)]), domains: () => t2[l2(0, 0, "%Gg(", 1204)] ?? [], developerCount: () => t2[c2(251, 0, "yE5a")] ?? 1, cpuCount: () => t2[l2(0, 0, "gJUw", 1069)] ?? 0, type: () => t2[d2(-341, 0, 0, 0, "bl9f")] ?? h2(0, 0, 0, "%Gg(", -25), exceptions: () => e2, isValidFor: (t3) => {
518
+ if (e2?.[n3 = o2, r3 = s2, c2(n3 - -46, 0, r3)] > 0) return false;
521
519
  var n3, r3;
522
520
  return true;
523
- }, isValid: () => true, isEval: () => false, features: () => Object[i2(0, 0, 206, 0, "ELg3")](t2[a2(0, "mkhp", 0, 0, -304)] ?? {}), keyFrom: () => n2, getBuildVersion: z[a2(0, "jOXE", 0, 0, -323)], getBuildDate: z[a2(0, "mkhp", 0, 0, -338)] };
521
+ }, isValid: () => true, isEval: () => false, features: () => {
522
+ return Object[e3 = "Kr(R", n3 = 844, et(n3 - a2, e3)](t2[c2(276, 0, "#G((")] ?? {});
523
+ var e3, n3;
524
+ }, keyFrom: () => n2, getBuildVersion: P[d2(-452, 0, 0, 0, "uoD^")], getBuildDate: P[d2(-502, 0, 0, 0, "Oid*")] };
524
525
  }, Y = (t2) => {
525
- const e2 = "t00a", n2 = "L(7c", r2 = 71, s2 = "Kse&", i2 = 130, a2 = "*rnp", l2 = 933;
526
- function c2(t3, e3, n3, r3, o2) {
527
- return Z(n3 - l2, e3);
528
- }
526
+ const e2 = 799, n2 = 708, r2 = 850, s2 = 912, i2 = "taqr", a2 = "F5u0", l2 = "Oid*", c2 = 633;
529
527
  function h2(t3, e3, n3, r3, o2) {
530
- return Z(e3 - -513, t3);
531
- }
532
- function d2(t3, e3, n3, r3, o2) {
533
- return Z(r3 - 343, e3);
528
+ return et(r3 - 48, o2);
534
529
  }
530
+ let d2 = o[u2(-122, -93, -170, "taqr")];
535
531
  function u2(t3, e3, n3, r3, o2) {
536
- return Z(n3 - -634, o2);
537
- }
538
- let g2 = o[u2(0, 0, -87, 0, "1]0c")];
539
- if (q() || o[u2(0, 0, -138, 0, e2)]()) {
540
- const t3 = z[u2(0, 0, -49, 0, "JPp8")](), e3 = new Date(t3), o2 = /* @__PURE__ */ new Date(), s3 = 864e5;
541
- Math[u2(0, 0, -73, 0, "Kse&")]((o2[h2(n2, r2)]() - e3[d2(0, "*gHC", 0, 930)]()) / s3) >= 120 && (g2 = [h2("TpTh", 38)]);
542
- } else g2 = [];
543
- return { licensee: () => h2("H(Qn", 67), expiration: () => null, domains: () => [J()], developerCount: () => 1, cpuCount: () => 0, type: () => d2(0, "Al*o", 0, 962), isEval: () => true, exceptions: () => g2, isValidFor: () => 0 === g2[c2(0, "g39c", 1497)], isValid: () => false, features: () => Object[u2(0, 0, -97, 0, "Yt(j")]({}), keyFrom: () => t2, getBuildVersion: z[h2(s2, i2)], getBuildDate: z[c2(0, a2, 1462)] };
532
+ return et(n3 - -389, r3);
533
+ }
534
+ function g2(t3, e3, n3, r3, o2) {
535
+ return et(e3 - -264, r3);
536
+ }
537
+ if (K() || o[u2(0, 0, -120, "yE5a")]()) {
538
+ const t3 = P[m2(e2, n2, "^nz7")](), o2 = new Date(t3), c3 = /* @__PURE__ */ new Date(), h3 = 864e5;
539
+ Math[m2(r2, s2, i2)]((c3[g2(0, -118, 0, a2)]() - o2[u2(0, 0, -156, l2)]()) / h3) >= 120 && (d2 = [g2(0, -81, 0, "Rfz&")]);
540
+ } else d2 = [];
541
+ function m2(t3, e3, n3, r3, o2) {
542
+ return et(t3 - c2, n3);
543
+ }
544
+ return { licensee: () => u2(0, 0, -237, "S^)E"), expiration: () => null, domains: () => [q()], developerCount: () => 1, cpuCount: () => 0, type: () => m2(929, 0, "tBpK"), isEval: () => true, exceptions: () => d2, isValidFor: () => 0 === d2[m2(756, 0, "gJUw")], isValid: () => false, features: () => Object[u2(0, 0, -246, "[9K!")]({}), keyFrom: () => t2, getBuildVersion: P[h2(0, 0, 0, 213, "p[hV")], getBuildDate: P[h2(0, 0, 0, 201, "%pc0")] };
544
545
  }, Q = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
545
- function Z(t2, e2) {
546
- const n2 = lt();
547
- return Z = function(e3, r2) {
548
- let o2 = n2[e3 -= 464];
549
- if (void 0 === Z.VNYFzO) {
546
+ let Z = false;
547
+ function tt(t2, e2, n2, r2, o2) {
548
+ return et(o2 - 433, n2);
549
+ }
550
+ function et(t2, e2) {
551
+ const n2 = at();
552
+ return et = function(e3, r2) {
553
+ let o2 = n2[e3 -= 110];
554
+ if (void 0 === et.JoAcOW) {
550
555
  const e4 = function(t3, e5) {
551
556
  let n3, r3, o3 = [], s3 = 0, i3 = "";
552
557
  for (t3 = (function(t4) {
@@ -560,66 +565,76 @@ function Z(t2, e2) {
560
565
  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]);
561
566
  return i3;
562
567
  };
563
- Z.tMOsNI = e4, t2 = arguments, Z.VNYFzO = true;
568
+ et.XiCXSo = e4, t2 = arguments, et.JoAcOW = true;
564
569
  }
565
570
  const s2 = e3 + n2[0], i2 = t2[s2];
566
- return i2 ? o2 = i2 : (void 0 === Z.NBcppl && (Z.NBcppl = true), o2 = Z.tMOsNI(o2, r2), t2[s2] = o2), o2;
567
- }, Z(t2, e2);
571
+ return i2 ? o2 = i2 : (void 0 === et.RUOFim && (et.RUOFim = true), o2 = et.XiCXSo(o2, r2), t2[s2] = o2), o2;
572
+ }, et(t2, e2);
568
573
  }
569
- let tt = false, et = false;
570
- function nt(t2, e2, n2, r2, o2) {
571
- return Z(o2 - -176, e2);
572
- }
573
- const rt = it(1228, 1275, 1256, 1293, "2S%e")[it(1308, 1296, 1374, 1269, "B6(m")]("")[U(0, 0, 414, 0, "TqKr")]((t2, e2) => e2 + t2, "");
574
+ let nt = false;
575
+ const rt = lt(-311, -397, "1P!q")[st(132, "uoD^")]("")[lt(-440, -501, "9^ms")]((t2, e2) => e2 + t2, "");
574
576
  class ot {
575
577
  constructor() {
576
- var t2, e2, n2, r2, o2;
577
- this[n2 = 251, r2 = 157, o2 = "cJJh", at(o2, n2 - 280, r2 - 206, o2 - 13, n2 - 392)][t2 = -345, e2 = "XUCI", U(0, 0, t2 - -921, 0, e2)] = null;
578
+ function t2(t3, e2, n2, r2, o2) {
579
+ return lt(e2 - 784, e2 - 247, t3);
580
+ }
581
+ this[t2("bl9f", 383)][t2("Rfz&", 483)] = null;
578
582
  }
579
- async [K(0, 757, 0, 0, "#G[4")](t2, e2 = false) {
580
- const n2 = 404, r2 = 347, s2 = 347, i2 = "JPp8", a2 = "XUCI", l2 = 861, c2 = 805, h2 = 809, d2 = 854, u2 = "my!]", g2 = 740, m2 = 883, f2 = 322, p2 = 249, _2 = 344, S2 = "*&bf", w2 = 746, y2 = 747, E2 = "9LW$", C2 = 339, b2 = 281, v2 = 318, x2 = "ELg3", I2 = 675, R2 = 713, A2 = 829, M2 = 862, N2 = "my!]", T2 = "#G[4", F2 = "g39c", k2 = "bc*1", O2 = "*gHC", D2 = 796, B2 = "6VeZ", L2 = 229, z2 = 121, P2 = 465, H2 = 494, W2 = 320;
581
- if (!t2 || t2[K2("HCd$", 728, 658, 635)](j2(n2, r2, 351, s2, i2)) || t2[K2(a2, l2, 827, c2)](K2("47At", h2, d2, 765)) || t2[q2("*gHC", -276, -361, -277)](K2(u2, 807, g2, m2)) || t2[q2("HCd$", -358, -404, -331)](j2(f2, p2, _2, 422, "my!]"))) return tt = true, await this[V2(-53, -11, "g39c", -80, -77)](true);
582
- function V2(t3, e3, n3, r3, o2) {
583
- return at(n3, e3 - H2, n3 - W2, r3 - 314, o2 - -66);
583
+ async [lt(-467, -399, "1)Jc")](t2, e2 = false) {
584
+ const n2 = 249, r2 = 175, s2 = 322, i2 = "c6vs", a2 = 173, l2 = 82, c2 = 110, h2 = 127, d2 = 660, u2 = "AleJ", g2 = 429, m2 = 344, f2 = 750, p2 = "F5u0", _2 = 1203, S2 = "bl9f", w2 = 772, y2 = "QqG(", E2 = 973, C2 = 921, b2 = 858, v2 = 298, x2 = "7q(s", I2 = 1152, R2 = 1077, A2 = "PVGk", M2 = 300, T2 = 361, N2 = 353, F2 = "yE5a", k2 = 1097, O2 = 106, D2 = 197, B2 = 943, L2 = 846, P2 = "Ea!0", z2 = 40, W2 = "PVGk", H2 = 128, V2 = 191, j2 = 149, G2 = "om)(", U2 = "hQu8", q2 = 801, K2 = "rZL2", X2 = 261, Y2 = 389;
585
+ if (!t2 || t2[ot2(259, 194, 173, "PVGk")](ot2(n2, r2, s2, i2)) || t2[it2("DQr9", a2, l2, c2, h2)](rt2(d2, 748, 664, u2)) || t2[ot2(g2, 337, m2, "uoD^")](rt2(792, 832, f2, p2)) || t2[tt2(1198, _2, 1114, S2)](rt2(723, w2, 802, y2))) return Z = true, await this[tt2(1138, 1039, E2, "DQr9")](true);
586
+ if (Z = false, !e2 && Q[tt2(1053, 1089, 1016, "RP6p")]) {
587
+ const t3 = await this[rt2(C2, b2, 856, "ei63")]();
588
+ if (t3[et2(-823, -772, "%Gg(", -835, -800)]() && !t3[ot2(270, v2, 273, x2)]()) return t3;
584
589
  }
585
- if (tt = false, !e2 && Q[J2(-160, -99, -41, i2)]) {
586
- const t3 = await this[K2(S2, w2, 768, y2)]();
587
- if (t3[J2(-128, -85, -134, E2)]() && !t3[j2(193, C2, b2, v2, "#uS!")]()) return t3;
590
+ function tt2(t3, e3, n3, r3, o2) {
591
+ return J(r3, e3 - 1122);
588
592
  }
589
- function j2(t3, e3, n3, r3, o2) {
590
- return U(0, 0, n3 - -230, 0, o2);
593
+ function et2(t3, e3, n3, r3, o2) {
594
+ return lt(o2 - -330, e3 - Y2, n3);
591
595
  }
592
- Q[K2(x2, 689, I2, R2)] = t2, Q[K2("cJJh", A2, 862, M2)] = J2(21, -53, -97, N2), Q[V2(0, -75, T2, -138, -103)] = null, Q[J2(-104, -26, 39, F2)] = null;
593
- const G2 = await this[j2(0, 0, 220, 0, "bzY$")]();
594
- function J2(t3, e3, n3, r3, o2) {
595
- return U(0, 0, e3 - -567, 0, r3);
596
+ Q[tt2(1130, I2, R2, A2)] = t2, Q[ot2(M2, T2, N2, F2)] = tt2(1033, 1134, k2, "U@v3"), Q[it2("%pc0", O2, 241, D2, 157)] = null, Q[rt2(B2, L2, 819, "Ea!0")] = null;
597
+ const nt2 = await this[it2("U@v3", 65, 85, 246, 165)]();
598
+ if (!nt2[rt2(703, 753, 847, P2)]()) throw await this[it2("lcv!", 124, -5, 126, z2)](true), new Error(it2(W2, 132, 128, H2, V2));
599
+ function rt2(t3, e3, n3, r3, o2) {
600
+ return st(e3 - 677, r3);
596
601
  }
597
- if (!G2[V2(0, -149, "TqKr", -85, -134)]()) throw await this[V2(0, -82, "y39[", -9, -90)](true), new Error(J2(0, -66, 0, "bzY$"));
598
- function q2(t3, e3, n3, r3, o2) {
599
- return U(0, 0, n3 - -858, 0, t3);
602
+ function ot2(t3, e3, n3, r3, o2) {
603
+ return st(t3 - 239, r3);
600
604
  }
601
- if (o[J2(0, -8, 0, "g39c")]()) {
602
- await $[V2(0, -135, "bzY$", -215, -173)](t2, e2);
603
- if (!(await this[q2(k2, 0, -440)]())[K2(O2, 804, D2, 899)]()) throw await this[j2(0, 0, 298, 0, B2)](true), new Error(j2(0, 0, L2, 0, "HqIw"));
605
+ function it2(t3, e3, n3, r3, o2) {
606
+ return J(t3, o2 - 152);
604
607
  }
605
- function K2(t3, e3, n3, r3, o2) {
606
- return it(e3 - -527, e3 - z2, n3 - P2, r3 - 125, t3);
608
+ if (o[it2("taqr", 139, 157, j2, 200)]()) {
609
+ await $[et2(0, -637, G2, 0, -675)](t2, e2);
610
+ if (!(await this[et2(0, -890, U2, 0, -812)]())[rt2(0, q2, 0, K2)]()) throw await this[it2("yE5a", 0, 0, 0, 214)](true), new Error(ot2(X2, 0, 0, "$8Rd"));
607
611
  }
608
- return G2;
612
+ return nt2;
609
613
  }
610
- async [nt(0, "bzY$", 0, 0, 346)](t2 = false) {
611
- const e2 = 1226, n2 = "TqKr", r2 = 1324, s2 = "bc*1", i2 = 989, a2 = 1464, l2 = 1447, c2 = 1364, h2 = 415, d2 = "iTDh", u2 = 366, g2 = 501, m2 = 443, f2 = 836, p2 = 895, _2 = 961, S2 = "KHMJ", w2 = 708, y2 = 771, E2 = "45hm", C2 = 237, b2 = "TpTh", v2 = 294, x2 = 1295, I2 = "XUCI", R2 = 1291, A2 = 1369, M2 = "@1GG", N2 = 1599, T2 = "TqKr", F2 = 833, k2 = 821, O2 = 453, D2 = "e8dy", B2 = 1501, L2 = 1447, P2 = 437, H2 = "HqIw", W2 = 1380, V2 = "B6(m", K2 = "6VeZ", ot2 = 1462, st2 = 1480, lt2 = 1e3, ct2 = 972, ht2 = 1403, dt2 = 1460, ut2 = 1385, gt2 = "B6(m", mt2 = 1422, ft2 = "Kse&", pt2 = "DjPX", _t2 = 1376, St2 = 1452, wt2 = 1397, yt2 = "KHMJ", Et2 = 414, Ct2 = "*rnp", bt2 = 439, vt2 = "*gHC", xt2 = 376, It2 = "47KR", Rt2 = 1395, At2 = 877, Mt2 = "40$(", Nt2 = 358, Tt2 = 822, Ft2 = 455, kt2 = 1498, Ot2 = 148, Dt2 = 204, Bt2 = 35, Lt2 = 211, zt2 = 218, Pt2 = 140, Ht2 = 469, Wt2 = "2S%e";
612
- if (Q[Kt2(387, 362, 404, "6VeZ", 449)]) return Q[Jt2(e2, n2, 1355, 1254, r2)];
613
- if (!this[Yt2(s2, i2, 916, 984)][Jt2(a2, "jOXE", l2, 1343, c2)] && (this[Kt2(302, 356, h2, d2, 355)][Xt2(u2, "H(Qn", g2, m2)] = new Error("FV")), Q[Yt2("Al*o", f2, p2, _2)]) return Q[Yt2(S2, w2, 791, y2)];
614
- let Vt2 = null;
615
- Q[Kt2(307, 378, 269, E2, 315)] = new Promise((t3) => {
616
- Vt2 = t3;
614
+ async [J("c6vs", -109)](t2 = false) {
615
+ const e2 = "6xu#", n2 = "PVGk", r2 = "RXg7", s2 = 394, i2 = 355, a2 = 314, l2 = "U@v3", c2 = "gJUw", h2 = 389, d2 = "t[3t", u2 = "om)(", g2 = "gJUw", m2 = "#*ih", f2 = 755, p2 = "o1M@", _2 = 374, S2 = 459, w2 = 99, y2 = 353, E2 = "QqG(", C2 = "uoD^", b2 = "#G((", v2 = "DQr9", x2 = "#G((", I2 = "^9Xq", R2 = "p[hV", A2 = "taqr", M2 = "^nz7", T2 = 734, N2 = 778, F2 = 787, k2 = "^nz7", O2 = 791, D2 = 675, B2 = 496;
616
+ if (Q[U2("AleJ", -259, -214)]) return Q[U2(e2, -187, -97)];
617
+ if (!this[U2(n2, -97, -138)][U2(r2, -77, -59)] && (this[V2(-805, "p[hV")][L2(s2, 337, "%pc0")] = new Error("FV")), Q[it2(i2, "#G((")]) return Q[ct2(-656, -780, "RP6p", -827, -731)];
618
+ function L2(t3, e3, n3, r3, o2) {
619
+ return st(t3 - 268, n3);
620
+ }
621
+ let z2 = null;
622
+ Q[L2(a2, 0, "o1M@")] = new Promise((t3) => {
623
+ z2 = t3;
617
624
  });
618
- let $t2, jt2 = null;
619
- const Gt2 = async (t3, e3) => {
620
- const n3 = 141, r3 = 175;
625
+ let W2, H2 = null;
626
+ function V2(t3, e3, n3, r3, o2) {
627
+ return J(e3, t3 - -710);
628
+ }
629
+ function U2(t3, e3, n3, r3, o2) {
630
+ return J(t3, n3 - -122);
631
+ }
632
+ const ot2 = async (t3, e3) => {
633
+ function n3(t4, e4, n4, r3, o2) {
634
+ return ct2(t4 - B2, e4 - 45, e4, r3 - 222, o2 - -96);
635
+ }
621
636
  try {
622
- const m3 = ((t4) => {
637
+ const r3 = ((t4) => {
623
638
  let e4 = t4;
624
639
  const n4 = e4[e4.length - 1], r4 = n4.charCodeAt(0) - 52;
625
640
  if (e4 = e4.substring(0, e4.length - 1), e4 = e4.split("").reverse().join(""), e4 = G(e4), e4 = e4.trim(), e4[e4.length - 1] !== n4) throw new Error();
@@ -631,207 +646,200 @@ class ot {
631
646
  } catch (t5) {
632
647
  throw new Error("Invalid license key.");
633
648
  }
634
- })(e3), f3 = await (async (t4) => {
635
- const e4 = "6VeZ", n4 = "L(7c", r4 = "bzY$", s4 = 905, i4 = "iTDh", a4 = 206, l4 = "shfZ", c4 = 126, h4 = "TqKr", d4 = 1637, u4 = "47At", g4 = 847, m4 = 113, f4 = "jOXE", p4 = "Kse&", _3 = 941, S3 = 803, w3 = "Yt(j", y3 = 1454, E3 = 74, C3 = "6VeZ", b3 = 1466, v3 = 990, x3 = 297;
636
- function I3(t5, e5, n5, r5, o2) {
637
- return Z(e5 - -436, r5);
649
+ })(e3), s3 = await (async (t4) => {
650
+ const e4 = "FCIJ", n4 = 170, r4 = 236, s4 = "#G((", i4 = 270, a3 = 940, l3 = "QqG(", c3 = "1tZV", h3 = 243, d3 = 688, u3 = "Oid*", g3 = "^nz7", m3 = 965, f3 = "S^)E", p3 = "bWlV", _3 = "1)Jc", S3 = 935, w3 = "Ea!0", y3 = "[9K!", E3 = "gJUw", C3 = "1tZV", b3 = 589, v3 = "c6vs", x3 = 139, I3 = "DQr9", R3 = 265, A3 = 114, M3 = 808, T3 = t4[O3(922, "%Gg(")], N3 = t4[D3(e4, n4, 302, 227, r4)] ? new Date(t4[D3(s4, 173, i4, 292, 218)]) : null;
651
+ function F3(t5, e5, n5, r5, o2) {
652
+ return et(e5 - 384, o2);
638
653
  }
639
- function R3(t5, e5, n5, r5, o2) {
640
- return Z(r5 - -561, o2);
654
+ function k3(t5, e5, n5, r5, o2) {
655
+ return et(o2 - -40, e5);
641
656
  }
642
- function A3(t5, e5, n5, r5, o2) {
643
- return Z(t5 - x3, o2);
657
+ function O3(t5, e5, n5, r5, o2) {
658
+ return et(t5 - 666, e5);
644
659
  }
645
- function M3(t5, e5, n5, r5, o2) {
646
- return Z(r5 - v3, t5);
660
+ function D3(t5, e5, n5, r5, o2) {
661
+ return et(o2 - -44, t5);
647
662
  }
648
- const N3 = t4[M3(e4, 0, 0, 1483)], T3 = t4[R3(0, 0, 0, -46, n4)] ? new Date(t4[R3(0, 0, 0, 34, r4)]) : null, F3 = t4[A3(s4, 0, 0, 0, "bc*1")];
649
- function k3(t5, e5, n5, r5, o2) {
650
- return Z(t5 - -706, o2);
663
+ function B3(t5, e5, n5, r5, o2) {
664
+ return et(n5 - M3, e5);
651
665
  }
652
- const O3 = [];
653
- if (T3 ? isNaN(T3) ? O3[A3(807, 0, 0, 0, e4)](R3(0, 0, 0, -66, i4)) : T3 < /* @__PURE__ */ new Date() && O3[I3(0, a4, 0, "mKSq")](R3(0, 0, 0, -64, l4) + T3[I3(0, 161, 0, r4)]()) : O3[R3(0, 0, 0, 1, "TqKr")](A3(815, 0, 0, 0, "*&bf")), o[R3(0, 0, 0, 32, "w]M0")]()) {
654
- if (!F3) return O3[I3(0, c4, 0, h4)](M3("cJJh", 0, 0, d4)), O3;
655
- const t5 = await $[k3(-97, 0, 0, 0, u4)]();
656
- t5 !== F3 && O3[A3(g4, 0, 0, 0, "1]0c")](I3(0, m4, 0, f4) + F3 + A3(960, 0, 0, 0, p4) + t5);
666
+ const L3 = t4[O3(a3, l3)], P2 = [];
667
+ if (N3 ? isNaN(N3) ? P2[B3(0, g3, m3)](F3(0, 654, 0, 0, f3)) : N3 < /* @__PURE__ */ new Date() && P2[O3(856, p3)](F3(0, 575, 0, 0, _3) + N3[D3("RXg7", 0, 0, 0, 157)]()) : P2[k3(0, c3, 0, 0, h3)](F3(0, d3, 0, 0, u3)), o[O3(S3, "yE5a")]()) {
668
+ if (!L3) return P2[B3(0, w3, 946)](k3(0, "7q(s", 0, 0, 119)), P2;
669
+ const t5 = await $[B3(0, "gJUw", 1011)]();
670
+ t5 !== L3 && P2[B3(0, y3, 948)](B3(0, "ei63", 1033) + L3 + F3(0, 620, 0, 0, "lcv!") + t5);
657
671
  } else {
658
- if (q()) return O3;
659
- if (N3 && 0 !== N3[A3(_3, 0, 0, 0, "KHMJ")]) {
672
+ if (K()) return P2;
673
+ if (T3 && 0 !== T3[D3(E3, 0, 0, 0, 79)]) {
660
674
  let t5 = false;
661
- const e5 = J();
662
- for (let n5 = 0; !t5 && n5 < N3[M3("HqIw", 0, 0, y3)]; n5++) t5 = e5[A3(854, 0, 0, 0, "e8dy")](N3[n5]);
663
- !t5 && O3[I3(0, E3, 0, C3)](M3("my!]", 0, 0, b3));
664
- } else O3[A3(S3, 0, 0, 0, "9LW$")](k3(-80, 0, 0, 0, w3));
675
+ const e5 = q();
676
+ for (let n5 = 0; !t5 && n5 < T3[F3(0, b3, 0, 0, v3)]; n5++) t5 = e5[k3(0, "1tZV", 0, 0, x3)](T3[n5]);
677
+ !t5 && P2[D3(I3, 0, 0, 0, R3)](k3(0, "AleJ", 0, 0, A3));
678
+ } else P2[O3(975, "DQr9")](O3(875, C3));
665
679
  }
666
- return O3;
667
- })(m3), p3 = X(m3, f3, t3);
668
- return p3[c3 = 42, h3 = Lt2, d3 = zt2, u3 = Pt2, g3 = "HqIw", Kt2(c3 - 182, h3 - 277, d3 - 221, g3, u3 - -254)]()[s3 = 463, i3 = 436, a3 = Ht2, l3 = Wt2, Xt2(s3 - 1, l3, a3 - n3, i3 - r3)] > 0 && ($t2 = p3), p3;
680
+ return P2;
681
+ })(r3), i3 = X(r3, s3, t3);
682
+ return i3[n3(-F2, k2, 0, -O2, -739)]()[n3(-678, "6xu#", 0, -771, -D2)] > 0 && (W2 = i3), i3;
669
683
  } catch (e4) {
670
- $t2 = ((t4) => {
671
- const e5 = "TpTh", n4 = 90;
672
- function r4(t5, e6, n5, r5, o3) {
673
- return Z(o3 - -802, t5);
684
+ W2 = ((t4) => {
685
+ const e5 = "sWSD";
686
+ function n4(t5, e6, n5, r4, o2) {
687
+ return et(r4 - 494, e6);
688
+ }
689
+ function r3(t5, e6, n5, r4, o2) {
690
+ return et(e6 - -258, t5);
674
691
  }
675
- return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => r4("HCd$", 0, 0, 0, -290), exceptions: () => {
676
- return [(o3 = e5, s5 = n4, r4(o3, 0, 0, 0, s5 - 376) + t4 + "'")];
677
- var o3, s5;
678
- }, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[r4("Fjl^", 0, 0, 0, -317)]({}), keyFrom: () => t4, getBuildVersion: z[r4("XUCI", 0, 0, 0, -293)], getBuildDate: z[o2 = "ELg3", s4 = 191, Z(s4 - -424, o2)] };
679
- var o2, s4;
692
+ return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => n4(0, "c6vs", 0, 797), exceptions: () => {
693
+ return [(r4 = 1091, o2 = e5, n4(0, o2, 0, r4 - 329) + t4 + "'")];
694
+ var r4, o2;
695
+ }, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[n4(0, "Ea!0", 0, 665)]({}), keyFrom: () => t4, getBuildVersion: P[r3("gJUw", -13)], getBuildDate: P[r3("uoD^", -139)] };
680
696
  })(t3);
681
697
  }
682
- var s3, i3, a3, l3, c3, h3, d3, u3, g3;
683
698
  };
684
- function Ut2(t3, e3, n3, r3, o2) {
685
- return it(o2 - Ot2, e3 - Dt2, n3 - Bt2, r3 - 60, t3);
686
- }
687
- function Jt2(t3, e3, n3, r3, o2) {
688
- return at(e3, e3 - 6, n3 - Ft2, r3 - 219, o2 - kt2);
689
- }
690
- Q[Xt2(C2, b2, v2, 289)] && (jt2 = await Gt2(Q[Ut2("lYg)", 1382, x2, 1319, 1377)], Q[Jt2(0, "JPp8", 1365, 1294, 1376)]));
691
- let qt2 = false;
692
- function Kt2(t3, e3, n3, r3, o2) {
693
- return nt(0, r3, 0, 0, o2 - -11);
694
- }
695
- function Xt2(t3, e3, n3, r3, o2) {
696
- return nt(0, e3, 0, 0, r3 - -42);
697
- }
698
- if (tt && (qt2 = true, jt2 = Y(Jt2(0, I2, 1358, R2, A2))), !jt2) {
699
- if (o[Ut2(M2, 1496, N2, 1544, 1535)]()) {
700
- if (!jt2) {
701
- const t3 = process[Yt2(T2, F2, k2, 749)], e3 = t3[Yt2("B6(m", 821, 913, 926)] || t3[Kt2(0, 0, 0, "e!a6", O2)] || t3[Ut2(D2, 1437, B2, 1434, L2)] || t3[Xt2(0, "*rnp", 0, P2)];
702
- e3 && (jt2 = await Gt2(Ut2(H2, 1476, 1291, 1480, W2), e3));
699
+ function it2(t3, e3, n3, r3, o2) {
700
+ return lt(t3 - N2, e3 - 86, e3);
701
+ }
702
+ Q[ct2(-650, -551, l2, -612, -646)] && (H2 = await ot2(Q[ct2(-624, -677, "^nz7", -635, -720)], Q[it2(434, "Ea!0")]));
703
+ let at2 = false;
704
+ function ct2(t3, e3, n3, r3, o2) {
705
+ return tt(0, 0, n3, 0, o2 - -1294);
706
+ }
707
+ if (Z && (at2 = true, H2 = Y(it2(341, "bl9f"))), !H2) {
708
+ if (o[V2(-643, c2)]()) {
709
+ if (!H2) {
710
+ const t3 = process[L2(350, 0, "Ea!0")], e3 = t3[L2(h2, 0, "QqG(")] || t3[V2(-716, "#*ih")] || t3[it2(302, "6xu#")] || t3[L2(402, 0, "o1M@")];
711
+ e3 && (H2 = await ot2(V2(-691, d2), e3));
703
712
  }
704
- if (!jt2) {
705
- const t3 = await $[Xt2(0, V2, 0, 265)]();
706
- t3 && (jt2 = await Gt2(Jt2(0, K2, ot2, 1427, 1453), t3));
713
+ if (!H2) {
714
+ const t3 = await $[L2(280, 0, u2)]();
715
+ t3 && (H2 = await ot2(U2(g2, 0, -123), t3));
707
716
  }
708
- !jt2 && (qt2 = true);
717
+ !H2 && (at2 = true);
709
718
  } else {
710
- if (!jt2) try {
719
+ if (!H2) try {
711
720
  const t3 = await fetch("./" + rt);
712
721
  let e3 = null;
713
- if (200 === t3[Xt2(0, "H(Qn", 0, 353)]) {
714
- const n3 = (await t3[Ut2("e!a6", st2, 1463, 1527, 1526)]())[Yt2("L(7c", lt2, 928, 847, ct2)]("\n");
715
- for (let t4 = 0; !e3 && t4 < n3[Xt2(0, "47KR", 0, 341)]; t4++) {
716
- const r3 = n3[t4][Jt2(0, "my!]", 1375, ht2, 1410)]();
717
- r3[Ut2(V2, 1478, dt2, 1457, ut2)]("#") || 0 === r3[Kt2(0, 0, 0, gt2, 405)] || (e3 = r3);
722
+ if (200 === t3[V2(-637, m2)]) {
723
+ const n3 = (await t3[V2(-f2, p2)]())[L2(_2, 0, "1P!q")]("\n");
724
+ for (let t4 = 0; !e3 && t4 < n3[it2(372, "#G((")]; t4++) {
725
+ const r3 = n3[t4][U2(l2, 0, -w2)]();
726
+ r3[L2(y2, 0, "DQr9")]("#") || 0 === r3[ct2(0, 0, E2, 0, -550)] || (e3 = r3);
718
727
  }
719
728
  }
720
729
  if (e3) {
721
- const t4 = Jt2(0, "g39c", mt2, 1483, 1401) + rt + "')";
722
- jt2 = await Gt2(t4, e3);
730
+ const t4 = V2(-775, C2) + rt + "')";
731
+ H2 = await ot2(t4, e3);
723
732
  }
724
733
  } catch (t3) {
725
734
  }
726
- !jt2 && q() && (qt2 = true);
735
+ !H2 && K() && (at2 = true);
727
736
  }
728
737
  }
729
- function Yt2(t3, e3, n3, r3, o2) {
730
- return U(0, 0, n3 - 389, 0, t3);
731
- }
732
- if (!jt2 && qt2 && (jt2 = Y(Ut2(ft2, 1590, 1612, 1496, 1516))), !jt2 && $t2 && (jt2 = $t2), !jt2 && (jt2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [Kt2(0, 0, 0, "w]M0", 302)], isValidFor: (t3) => false, isValid: () => false, features: () => Object[Ut2("2S%e", 1559, 1498, 1578, 1478)]({}), keyFrom: () => Kt2(0, 0, 0, "9LW$", 286), getBuildVersion: z[Ut2(pt2, _t2, St2, 1326, wt2)], getBuildDate: z[Xt2(0, yt2, 0, Et2)] }), Q[Xt2(0, "HCd$", 0, 405)] = jt2, Vt2(jt2), t2) {
733
- if (!(Q[Xt2(0, Ct2, 0, bt2)] && Q[Ut2("g39c", 1251, 1323, 1306, 1344)]) && (qt2 || jt2[Kt2(0, 0, 0, vt2, xt2)]()[Jt2(0, It2, 1355, 1421, Rt2)] > 0 || jt2[Yt2("6VeZ", 0, At2)]()?.pb)) {
734
- if (et) return void setTimeout(() => {
738
+ if (!H2 && at2 && (H2 = Y(ct2(0, 0, b2, 0, -691))), !H2 && W2 && (H2 = W2), !H2 && (H2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [U2("PVGk", 0, -163)], isValidFor: (t3) => false, isValid: () => false, features: () => Object[ct2(0, 0, "Rfz&", 0, -705)]({}), keyFrom: () => ct2(0, 0, "#*ih", 0, -601), getBuildVersion: P[U2(v2, 0, -82)], getBuildDate: P[U2(x2, 0, -232)] }), Q[L2(386, 0, I2)] = H2, z2(H2), t2) {
739
+ if (!(Q[U2(R2, 0, -129)] && Q[V2(-733, "om)(")]) && (at2 || H2[it2(S2, "PVGk")]()[V2(-817, A2)] > 0 || H2[it2(453, "RP6p")]()?.pb)) {
740
+ if (nt) return void setTimeout(() => {
735
741
  var t3, e3;
736
- this[t3 = -1, e3 = "Yt(j", Yt2(e3, 0, t3 - -793)](false, false);
742
+ this[t3 = M2, e3 = T2, V2(e3 - 1416, t3)](false, false);
737
743
  }, 8e3);
738
- await this[Kt2(0, 0, 0, Mt2, Nt2)](false, false);
744
+ await this[V2(-792, "RP6p")](false, false);
739
745
  }
740
746
  }
741
- return Q[Yt2("my!]", 0, Tt2)];
747
+ return Q[V2(-689, "^nz7")];
742
748
  }
743
- async [K(0, 679, 0, 0, "e!a6")](t2) {
744
- const e2 = 193, n2 = 222, r2 = 554, o2 = 319, s2 = 372, i2 = "NW*w", a2 = 591, l2 = 332, c2 = 404, h2 = "g39c", d2 = 175, u2 = 446, g2 = 331;
745
- function m2(t3, e3, n3, r3, o3) {
746
- return it(r3 - -752, e3 - u2, n3 - 380, r3 - g2, n3);
749
+ async [tt(0, 0, "^nz7", 0, 605)](t2) {
750
+ const e2 = "%Gg(", n2 = "6xu#", r2 = 417, o2 = "S^)E", s2 = 307, i2 = 374, a2 = 361, l2 = "c6vs", c2 = 184, h2 = ")wvL", d2 = 754, u2 = 40;
751
+ function g2(t3, e3, n3, r3, o3) {
752
+ return U(0, 0, o3, 0, n3 - -971);
747
753
  }
754
+ Q[g2(0, 0, 97, 0, "^nz7")] = true;
755
+ const m2 = await this[S2(-630, -711, -539, "yE5a")]();
748
756
  function f2(t3, e3, n3, r3, o3) {
749
- return U(0, 0, e3 - -293, 0, r3);
757
+ return lt(n3 - d2, e3 - u2, o3);
750
758
  }
751
- Q[m2(0, 584, "45hm", 567)] = true;
752
- const p2 = await this[f2(0, e2, 0, "NW*w")]();
753
- function _2(t3, e3, n3, r3, o3) {
754
- return it(e3 - -911, e3 - 492, n3 - d2, r3 - 109, o3);
759
+ var p2, _2;
760
+ function S2(t3, e3, n3, r3, o3) {
761
+ return J(r3, t3 - -529);
755
762
  }
756
- return await $[_2(399, 319, 265, n2, "@1GG")](t2), !Q[m2(0, r2, "47KR", 593)] && (p2[_2(0, 348, o2, 267, "Fjl^")]() || p2[_2(0, 337, s2, 431, "45hm")]()[m2(0, 604, i2, a2)] > 0) && await this[_2(0, l2, 283, c2, "*gHC")](t2), Promise[f2(0, 126, 0, h2)]();
763
+ return await $[S2(-532, -505, -557, e2)](t2), !Q[p2 = n2, _2 = 896, U(0, 0, p2, 0, _2 - -196)] && (m2[f2(0, 503, r2, 0, o2)]() || m2[f2(0, s2, 337, 0, "Oid*")]()[f2(0, i2, a2, 0, l2)] > 0) && await this[S2(-645, -693, -711, "hQu8")](t2), Promise[g2(0, 0, c2, 0, h2)]();
757
764
  }
758
- async [U(0, 0, 398, 0, "1]0c")](t2 = false, e2 = false, n2 = false) {
759
- const r2 = "jOXE", o2 = 1502, s2 = "jOXE", i2 = 711, a2 = "WUQ^", l2 = 449, c2 = "jOXE", h2 = "H(Qn", d2 = 486, u2 = "t00a", g2 = 68, m2 = 195, f2 = 384, p2 = 461;
760
- function _2(t3, e3, n3, r3, o3) {
761
- return nt(0, r3, 0, 0, o3 - 1102);
765
+ async [lt(-473, -542, "#G((")](t2 = false, e2 = false, n2 = false) {
766
+ const r2 = "hQu8", o2 = "tBpK", s2 = 226, i2 = "QqG(", a2 = "om)(", l2 = "%Gg(", c2 = 142;
767
+ function h2(t3, e3, n3, r3, o3) {
768
+ return U(0, 0, t3, 0, n3 - -357);
762
769
  }
763
- function S2(t3, e3, n3, r3, o3) {
764
- return K(0, o3 - -283, 0, 0, r3);
770
+ function d2(t3, e3, n3, r3, o3) {
771
+ return lt(r3 - -210, e3 - 162, e3);
765
772
  }
766
- Q[_2(1384, 1440, 1533, "HCd$", 1467)] = true;
767
- const w2 = await this[_2(0, 0, 0, r2, o2)]();
768
- var y2, E2, C2, b2, v2, x2, I2, R2;
769
- Q[v2 = s2, x2 = 760, I2 = 711, R2 = i2, at(v2, x2 - g2, I2 - 206, R2 - m2, I2 - 755)] || !(w2[S2(0, 0, 0, a2, l2)]() || w2[y2 = "H(Qn", E2 = -480, C2 = -438, b2 = -500, it(C2 - -1715, E2 - f2, C2 - 148, b2 - p2, y2)]()[S2(0, 0, 0, c2, 520)] > 0) ? await $[S2(0, 0, 0, u2, 451)](w2, t2, e2, n2) : await this[S2(0, 0, 0, h2, d2)](t2);
773
+ Q[d2(-655, "FCIJ", -747, -698)] = true;
774
+ const u2 = await this[d2(0, r2, 0, -653)]();
775
+ var g2, m2, f2, p2;
776
+ Q[d2(0, "yE5a", 0, -694)] || !(u2[h2("t[3t", 0, 818)]() || u2[d2(0, o2, 0, -509)]()[g2 = s2, m2 = i2, J(m2, g2 - c2)] > 0) ? await $[f2 = 93, p2 = l2, tt(0, 0, p2, 0, f2 - -548)](u2, t2, e2, n2) : await this[h2(a2, 0, 709)](t2);
770
777
  }
771
- async [at("45hm", -133, -67, -103, -135)](t2, e2) {
772
- const n2 = 974, r2 = 909, s2 = 953, i2 = 984, a2 = "40$(", l2 = 928, c2 = 988, h2 = 839, d2 = "bzY$", u2 = 936, g2 = 583, m2 = "e8dy", f2 = "cJJh", p2 = 405, _2 = 594;
773
- if (!t2 && (Q[y2(540, 644, 569, "45hm")] || Q[S2(n2, 998, r2, 951, "Fjl^")])) return;
774
- function S2(t3, e3, n3, r3, o2) {
775
- return nt(0, o2, 0, 0, t3 - _2);
778
+ async [U(0, 0, "#*ih", 0, 1076)](t2, e2) {
779
+ const n2 = "NKQv", r2 = 1217, s2 = 1187, i2 = "RP6p", a2 = 1201, l2 = 1263, c2 = 1089, h2 = 1162, d2 = "gJUw", u2 = 999, g2 = "$8Rd", m2 = 775, f2 = 1195, p2 = 848, _2 = "taqr", S2 = 765, w2 = 1496;
780
+ if (!t2 && (Q[x2(1243, 1161, 1213, 1156, "1tZV")] || Q[C2(959, 1033, 1082, 1049, n2)])) return;
781
+ var y2, E2;
782
+ function C2(t3, e3, n3, r3, o2) {
783
+ return lt(r3 - w2, e3 - 486, o2);
776
784
  }
777
- function w2(t3, e3, n3, r3, o2) {
778
- return at(r3, e3 - p2, n3 - 413, r3 - 442, t3 - 1058);
785
+ function b2(t3, e3, n3, r3, o2) {
786
+ return J(n3, e3 - S2);
779
787
  }
780
- function y2(t3, e3, n3, r3, o2) {
781
- return K(0, n3 - -187, 0, 0, r3);
788
+ Q[x2(r2, s2, 1170, 1155, i2)] = true, Q[y2 = -11, E2 = "F5u0", tt(0, 0, E2, 0, y2 - -556)] = true, await this[C2(a2, l2, c2, h2, d2)](t2);
789
+ const v2 = o[x2(1032, 1080, u2, 1102, g2)]();
790
+ function x2(t3, e3, n3, r3, o2) {
791
+ return st(e3 - 1020, o2);
782
792
  }
783
- Q[S2(s2, 995, 1019, i2, a2)] = true, Q[w2(l2, c2, h2, d2)] = true, await this[y2(0, 0, 496, "jOXE")](t2);
784
- const E2 = o[w2(876, 948, u2, "iTDh")](), C2 = t2 || E2 ? console[y2(0, 0, g2, m2)] : o[b2 = -50, v2 = -146, x2 = f2, it(v2 - -1344, b2 - 128, v2 - 168, x2 - 281, x2)];
785
- var b2, v2, x2;
786
- E2 && C2(""), await this[S2(889, 0, 0, 0, "Kse&")](t2, e2), C2("");
793
+ const I2 = t2 || v2 ? console[b2(0, m2, "1P!q")] : o[x2(0, f2, 0, 0, "FCIJ")];
794
+ v2 && I2(""), await this[b2(0, p2, _2)](t2, e2), I2("");
787
795
  }
788
- [at("Kse&", -21, -25, -105, -21)]() {
789
- return this[t2 = 331, e2 = "9LW$", nt(0, e2, 0, 0, t2 - -18)]();
796
+ [J("DQr9", -27)]() {
797
+ return this[t2 = "6xu#", e2 = 579, J(t2, e2 - 543)]();
790
798
  var t2, e2;
791
799
  }
792
- [U(0, 0, 480, 0, "w]M0")](t2) {
793
- return this[e2 = "y39[", n2 = 1332, nt(0, e2, 0, 0, n2 - 870)](true, t2);
800
+ [J("9^ms", 15)](t2) {
801
+ return this[e2 = -284, n2 = "%pc0", tt(0, 0, n2, 0, e2 - -998)](true, t2);
794
802
  var e2, n2;
795
803
  }
796
- [nt(0, "t00a", 0, 0, 399)]() {
797
- const t2 = 1525, e2 = 186, n2 = 260;
798
- return Q[a2 = 1268, l2 = "H(Qn", K(0, a2 - 630, 0, 0, l2)] || Q[r2 = t2, o2 = "mkhp", s2 = 1531, i2 = 1536, it(r2 - e2, o2 - 475, s2 - n2, i2 - 221, o2)];
799
- var r2, o2, s2, i2, a2, l2;
804
+ [U(0, 0, "sWSD", 0, 1039)]() {
805
+ const t2 = "Ea!0", e2 = 763;
806
+ function n2(t3, e3, n3, r2, o2) {
807
+ return J(n3, o2 - 714);
808
+ }
809
+ return Q[n2(0, 0, "9^ms", 0, 697)] || Q[n2(0, 0, t2, 0, e2)];
800
810
  }
801
- [it(1363, 1430, 1281, 1362, "wXTU")](t2) {
802
- et = true;
811
+ [lt(-434, -526, "RXg7")](t2) {
812
+ nt = true;
803
813
  }
804
- async [at("y39[", 3, -17, 4, -73)]() {
805
- return this[t2 = -272, e2 = -180, n2 = -243, r2 = "*rnp", at(r2, t2 - 113, e2 - 496, n2 - 210, n2 - -243)](true);
806
- var t2, e2, n2, r2;
814
+ async [U(0, 0, "6xu#", 0, 1101)]() {
815
+ return this[t2 = -146, e2 = "S^)E", J(e2, t2 - -114)](true);
816
+ var t2, e2;
807
817
  }
808
- async [at("#G[4", 20, 78, 93, -6)](t2, e2) {
809
- const n2 = "mKSq", r2 = 389;
810
- function o2(t3, e3, n3, r3, o3) {
811
- return U(0, 0, o3 - -116, 0, t3);
812
- }
813
- const s2 = await this[o2("B6(m", 0, 0, 0, 335)]();
814
- return await this[o2(n2, 0, 0, 0, r2)](true, t2, e2), s2;
818
+ async [J("1)Jc", 50)](t2, e2) {
819
+ const n2 = 919, r2 = "^9Xq", o2 = "9^ms", s2 = 578, i2 = 876;
820
+ const a2 = await this[l2 = n2, c2 = r2, st(l2 - i2, c2)]();
821
+ var l2, c2, h2, d2;
822
+ return await this[h2 = 93, d2 = o2, lt(h2 - s2, h2 - 143, d2)](true, t2, e2), a2;
815
823
  }
816
- async [it(1349, 1352, 1366, 1427, "w]M0")]() {
817
- const t2 = "XUCI";
818
- var e2, n2;
819
- return await $[e2 = 376, n2 = t2, nt(0, n2, 0, 0, e2 - -83)]();
824
+ async [U(0, 0, "uoD^", 0, 1099)]() {
825
+ const t2 = "F5u0", e2 = 1100;
826
+ var n2, r2;
827
+ return await $[n2 = t2, r2 = 1175, J(n2, r2 - e2)]();
820
828
  }
821
829
  }
822
- const st = new ot();
823
- function it(t2, e2, n2, r2, o2) {
824
- return Z(t2 - 729, o2);
825
- }
826
- function at(t2, e2, n2, r2, o2) {
827
- return Z(o2 - -662, t2);
830
+ function st(t2, e2, n2, r2, o2) {
831
+ return et(t2 - -117, e2);
828
832
  }
829
- function lt() {
830
- const t2 = ["WPldK0XWFKKTW6zMrNlcIa", "WRxcRSkpW7/cId1VwINdU8oyDCoBbG", "W53dOvfHrSoDFCo3aCoIWQy", "W4KYsH8VyJO7fCowuvT6", "WPnxWRJdSW", "wSoNcIi/aCk2WOKE", "WOvGamoKWQNdRmo7BCo0", "cgBcGmoso8kcWOO", "W6yYpCk7df1i", "xtVdMSkDySocW4NdT8kc", "pmkuamovAqZcRG", "s8oEDeGMsSkwWOb/xCozymoAfCoSW6idW6pdTmoO", "WPaCW6pcL8oHts0", "W4tcJG0lpgKPW5nvvL4", "WOVdGYSVmaC", "WPpdHf1xCuu", "W78CaCk8W4pdLW", "W4aVWR7dU8k2W7nVa1mOWQldHq", "WPz5W7NdRSkQW7nLlKq", "iwKvWPVdN8oQyhTFWRmFWPJcIW", "FZxcMCoGW7GFW5GXWRJdPCoAWOxdKCoa", "W47dVfbQrSojsW", "W4C2sHy+Ea", "jmoAyCotrSkq", "W7yXsw3dMwqbbCoEdYi4bIe", "qSkRWOuXWPZcO8kP", "W587hwxdLxmfaSobgq", "WPFdKZyG", "W587hwpdHw4id8o7d3aacJFdNW", "W4SVWQtdNSk3W7i", "WOyzEtVdQNtdOhZcJG", "gmkDW48t", "WRCqW7NcTmo9usxdO8kuW6mZWRjVgeP6W6jNWRW2WRNdOJtcMXFcNrSQWR4", "BJhcM8oWW684W5O", "zCkgWRGa", "W4pdLSk+W4NdM8o/", "W4KzlSk/W47dLH7cKW8", "W45iWQ/cPmosrrJcTmk0", "W79DWRyJW5Sl", "kwNdJSkXWR1iW48TWOFdHSotWRa", "W4qXuSoiWPVdSmoME8oFWRFdTYZdTf4Fa3TKWOi", "kmkdhCoADctcUmkvW5tdQmoemq", "W5u4wCodWORdUSoAvSoAWRddOcZdVG", "abZdQsxcTSkH", "AYtcLSo3W74nW7S9WOldOG", "ACocr8oJAqNcU8kOW6y", "WP7cOXCEWQHiWOS", "W6GPrCoeWOhdVmoirCoDWRddStS", "WPG6bKtdGYCkbmozsM8sfZVdMCor", "aZ7dIbZcG1W", "m8ovwrBdRX0", "ify2WR3dVmkkamkn", "W7iko8kYW47dNGZcTXGyW5xcSGzQ", "WOXwrdGdW5ldUmkBka", "WPGwW7tcOSo8tIxcLmktW7GVW5X2kKLMW7qKWR8", "W4ZdRHNcSKddUCokxSovc14gWOu", "W6CUg0JdNNmGdSozc2SFea", "WORcOXufWQH8WQ1GdYldRSkjW7y", "W4lcVw/dOISK", "W5C4WQxdLmkQW6LM", "wSobjKuNuW", "nmkfW5GEWRiXW5joW5FcPSkqB8oMmq", "F8k2wuv1W53dSXtcVW", "rr1YW4dcNf3dVCo7uSkJxG", "agZcG8oujSke", "W4/dNCkaW4/dJCoJ", "WPrZW7lcGmo7WQKZdg4WWOtdPSko", "nNKtWO7dGCoGy219WOizWOpcKCk4", "C14ZW6BdUeu", "fmojhSkMW6tdGerGqSoX", "aCkmWQBdKtKS", "WOVcJvRdImo9W64", "WPNdN1TxzvmKW4LhxG", "WONcMLhdKmo3W7Hj", "C8oTxGa5bSk2WQ4jWRuTx8oPWOajh8ktymkY", "yCogW5iMjComWQXitq", "W6qkpmk8W4VdHbO", "dCkjWOTZDmkBW71xuCowWQ8uFG", "W5RdOvjMrSouxq", "W5Oxba4TW4ddJSky", "W6/dGmk4W4hdHCoVWO3dJ8odhCoLnSkiy1KPvCk5", "nCoeFrZdQaW", "BmkZyeZcHI7dK03cVCkfWRtdVSo6W6WkWPlcG1aG", "WRGfW7j4WPCtCH5eWQBdL2ej", "d2dcGCkDpSkuWO3cVmowWQJcHW", "BJddM8krW5FcMmka", "gr3dJItcPSkguGPEpmkL", "W55YtJi6W5NdRG", "cJxdKc3cLKy", "WPZcHKG", "gCkoW5OEWRC0W4u", "W7ZcPZZdOq", "oYVcLmkBW5WTAG7cS30", "z08MW5/dQu8YoeuW", "FZxcG8ohW78xW4aWWQddR8omWPpdSColW7q", "W47dU0XV", "W6C5lCkPmLHpWOK", "W6S5p8k7cvHF", "tSktWRiDWQBcJ8kNwanRgLO", "W6yxaYqSW4hdPmkjeMNdSCoUW5K", "WO8oAJpdTgu", "hIZcGCkFW543A2xcMM3dNCkwgCkAWQ4/W6/cG8ovW7NcMSo2DmkVD8oiW6q", "W7qJvHGKzcGOeSowqeW", "W5z/aSk2W6ZcJNGGmSokW5T6WQG", "W4T4qJOJW57dOI/cOui", "k1OHWPRdP8kqcCkmWQfRWQjFBKtcJW", "WQqMW6RcO8o8vI/cNmkL", "juldVgtdL8oBW4nGW60", "C14ZW6NdUeGeof0R", "uCoThq0Kdmk8WQ4", "W5pcPc7dPsC5WR99CG", "W7eJkmkOeujSWOHTW7O", "W7fWuZy9W54", "W50YsaqVvHW", "W5a8q8oVWPRdOCoMqmo3WR/dOcW", "dSknWOBdGIiL", "jJxdKbRcM115hCofCxD1g2ddNgHuWOWvW7y", "hLhdQwNdL8otW5feW7RcRmoyW4efhW", "xsBcLSoPWQOYW4u3WPpdPmonWOxcUmoVW79k", "oSkrvCkvqxJcKCk/BspcVqm", "fKqPWPFdJMBdHCoytmk8CK3dQa", "oeyLWR0", "y8odmuKZqG", "kSoQgK5gW5ddRJNcVmoTvMS", "ngBcMSoVWPBdG8kewSoQl2vz", "W6vDWQyVW4fyjW9pWQC", "W6yYpCk7df1iWRfRW7VdNdnRWPO", "W7NdSCk+W5ldHSoYWOBcSmo5", "WRnJFCoRv2jbWOPQW5tdHq", "W4DMq8k/W73cMNaMnG", "k1u1WPddHwa", "W7tdO8kwc8oPWPhdL8kIqX0WmG", "W5BdSXVcR1FdJmo8sCoaeW", "WO3cUHGoWR16WPr9cd8", "W6i9uHaMEq5PeSoxqvTxyZm+", "W6pdQXJcSW", "eJtcLSksW4C/EYZcUwRcNSkdeSkBWQjWW6ddHSojWQhcN8oSB8kKDa", "tCoWfWiK", "W4W2udm/EqyTkSoDv013AgC", "W6xcOrNdQci0WRO", "cvhdQupdM8og", "a8kBWRFdLsOLW49pW6JcHSkqW4NcLY4", "WQdcVSokqmknW4ZdISko", "rmkFu8osW4VdMNfUFmoW", "WR3cRSkvW7NcLtK", "W5JdQ15ZwSois8oW", "W54YbK7dGG", "WONcNu3dLq", "W5WFeIGYW4hdICkdchS", "W7OkiCk0W5pdMG", "W7ako8kWW4/cMLJdIuu", "leCGwSkeW4u", "yJddLSkyW7y", "lmofwH3dUc1cDfellNq", "W4Oted82W4BdT8kfeMa", "WRBcUmolvSkUW53dKG", "WPVcTHOFWRH9", "k8oQd3HgW4VdPY4", "m1RdQ2NdKSowW4y0W6tcRmovW5aocbZdUCk6WOeJqG", "cCkzW4Cs", "k8owqcpdVGbjDfug", "W4W2uduVzaSGemol", "WRJdLJCHkHVdLMfVdSovBH0", "WOztWRBdSI4wrG", "z0SRW4tdQq", "WQ3cTbOhWRHVWOL7cslcUSkGW7VdVCoGW67dMSks", "cIpdHr7cH0b0uSohAW", "kGddIIFcP8kQwHbj", "uCkFW6PFwN0", "WO0tBG7dR3hdQG", "W65rWReiW5PclIbUWR/dHg0", "dSkoW5OZWRC7W5maW4dcRmk2A8o2", "W54cbrKRW5JdHq", "WQfCDSoJW63dNcVcGdGd", "c8oyESouxmkMWPtcLafixa", "W4XHtZe2W5JdMZlcPL/cQCkcW68", "k8kuamo4AqpcUmkpW4BdPmoJj0G", "Ef4PW4RdQvq", "vmoXmam0aa", "WPdcM2JdNmoYW6ji", "h0ZdRwhdJmog", "r3mcW6JdIwqPdN0rWOGzxmo6WQ4vrSk5zW", "dLVdKwFdNCoEW45XW4ZcPmocW5aZdWVcSmk/WOm", "oSkCwmkqrb3cImkTBYNcPW", "yCoVW4m4i8oCWQjJDW", "W6hdVK1UqCoo", "cNVcImowkmkj", "W5aujYWUW5ZdHa", "WRFcSGKcWQn6WR9ZccldV8kE", "WQNcV8oj", "cCkzW4CEWRi", "WOzOamkFW5FcSmk6FSoDWQBdSYddTq", "o1j/lgSe", "umoFW5CVbCom", "ovPWihvfW7FdSSkTW6nAgWzg", "kCoQgM1AW5xdSq3cISoLthRdRci", "WPKgDJpdSG", "WOdcRqGFWQnVWPb3", "W6yDimk+W47dGrO", "t8kFsCoXW5RdHG"];
831
- return (lt = function() {
833
+ const it = new ot();
834
+ function at() {
835
+ const t2 = ["W7JcLKBdU8k/dSopmtm", "ANqcpw8l", "W5yLdrPwW41N", "lSkzb8oJWQFcHq", "Bmk4W6ldNYJcQq", "W6xcMCkdWOddISkZWR/dJdpcOmoLWOZdPCku", "WQpdMYXXW4BdTrJcN8oFFG", "ySooyhZcN0VdLCkibvijE8kEda", "W6JcJCk+W6VdNCkGyq7cSSkBW5jcWQBdSHTnW7j5", "kdddUaRcQSkPW5XwWOP6kXe", "uvvhdCk6a8kyFMJcLJOkW5pdQq", "hYWepmopbmkPcuLE", "WRlcIXXRdSoT", "WRJcPSkSW7S", "W6NcJNOWW6hdSq", "sCkIW4tdJcFcTSkeoSksWOX7W6HTb8obeJhdPemtiXC0ECobwmo8W4ZcKq", "j2/dR8o2BXpdGCoIW73dUW", "xmkDdmo9wWRdR8oLW4dcOHxdNCoAdMNdKq", "WP8Wt3NcPbiBDHq", "mHSssKrMkW", "lJJcOmo7e2Slh8klWPBdH8o+W6y", "lCoZW7ffCM/dPmotW5hcTvqpzSk0pG", "WQ/cTSkRW5ehh1hdPSooWOrwla", "sxbfs8o+jCk/mNj7", "y2/dGftcO8oaW7jw", "jJ7dQMdcMSoVW4PxfcO", "WPNcL8ktW6L+At1zWOldSt0XW6dcRW", "m2LSWQS5vG", "WPFcO8kTW7OCaN/dO8oKWOThoW", "ESoEvSk2WPRcGCkmqJRdKq", "WRhcNCosW5fIEd1e", "WQFcISoCW4H+Et0", "WQFcObRcGCoADCkLW6aogWHO", "WPe7aMrgeq", "W6RcMCkmWQpdLmkZWQi", "FCk7pmkKWOaYaLm", "WPGTqKVcHSk8swZcJq", "W4tcSr07k1jfjwdcPG", "nGWfuW", "WPhcJXHIaCoPdNDpuNONimoKds1iW4CUWOXKWR0UmSkZ", "WP4Wt1JcUvnqpg3cSLldNCk9vCkn", "zSoTx3GyWO8", "WP4EkmkDtuVcHCoUB8oJW5SuAe4ia2FdQCoQ", "jXentL9S", "FvzqbCk6sG", "WOdcGSkhWPPWW7pcTK8UBG", "WOOsfeO", "W7r5WPZcTrZdQbLda3VcTmkWCKxcHqTvwui", "WRVcNCoDW4jJyG", "pgHFWQ8VwLi", "ww0tmw8mW5n5WR8L", "W7lcI8kTW67dHSk1vWBcS8kBWPD8", "esBdJ0TaW77dNmk5kNXNWOq", "rSk0hCoJfdldQCozW7O", "WQRcSSkXW70xbg3dSmoJWOTwlmoC", "mhv/", "W4dcHvpdK8kZhSopldP3", "kslcNmoKaM8ucCkFWOxdMSo1W4hcVNVcPmk2WR0", "W5tcLeBdPCkIgCo5lcjS", "W456gWddHmoZdsFdSSkgW5hcN8kxgG", "kJpdIunhW6BdRCkinNTSWOldQtu", "WPL6wMaCeG", "W6RdHmoeW4n3W6a", "WPSVlahdVCoulZC", "WOaWtSouW70LW516DNePWRi", "vSk6EmkZWRG2f1iuWR/cLe3cVmkQCq9YW6NdI8kT", "W7NcINaRW6FdPHlcMmoArSkDW4O6", "WO8UEmkds1ZcJ8oFqW", "Bmo5vhe", "ESkGWR7dIYiTWQmFW6BdU8oDWPW", "WPldMbhcOCoMx8oInXDSaXu", "quCFtd0TWObOF8k3", "CtRcQCkcm1/cLCoBW4FdUmk0t8o4", "hSo/WPxcTSoc", "WQ3cQ8k8W7ycaLtdRCoKWPy", "pCo+WORcRCojCCokysqT", "kmo3W6TPyNtdMmofW67cVLizAW", "W6BdVmoZW69nW4ZcKW", "k1HNWQO8WQ3dVSkIWOFdNSoxwSoJEW", "cCkFWPaNWO4", "WOaWtSouW70JW5LGEx03", "W5VdTLRdLSkgkCknWRiHhcTDWPJdGmo8DW", "W4PWgWpdN8o1kJBdK8kBW5a", "W4ldQSoDw8kvWO3cPSo9WR0", "FxfCWQqhWQVdPG", "WP4Wt1tcO15zev8", "tx9bsmodf8kHbLnF", "p096WQuHWOpdRmkCWPVdKSol", "kZddUcNcTSkSW4m", "W4BcRaOkmKTj", "WRddHCoaW5BdSSkjWRJdUXBcTq", "jg/dR8otyWVdKW", "D8kZyXzMWPKlD1NdLmowWP/cHHddU24", "fSkaWPS", "wSohCfGVWQpcHudcMSoSWRpdLcLbgZRdO8oevq", "xKSiztO9WObnACkRW4RdLmkq", "CLGDrtO6WOrxFW", "nSkVFSoGW4LcWQ0", "W6VcMxCRW7y", "ottdOd3cUSkgW4y", "WRmTsSoxW7WpW5f6BG", "W456asFdG8o7fsBdQSkmW4FcICk3eCk0", "WOCXCSoZWPSy", "W6NcK8kgWPhdImk9WQldJa", "WQZcTSkRW7iBgK4", "WOOLv3pcUa", "wvWvra", "mqeyqLLTiSotwmoioSoAWONcSSkOlmkIW77cLW", "p098WQy8WRldQa", "ptpdIwLlW7m", "oxjQWQSTqfpdUSodWRW", "WPFcO8kTW7OCaG", "WPqTsSoBW6apW4S", "WRWyA8kusLVcHColECo/", "ESk0nSk5WRiPjKKtWQldGfVcQa", "WPBdKbxcP8oVuSkBfqb0nH3dKG", "W7VdM8kwW4f8W60", "W4tcImkAW7hdICkT", "WRlcGmodW4XLCW", "eeTYWQC8WQxdRmkgWPa", "W7zVbWZdMmoMoYpdKSkhW5dcIa", "AmoQgSk2WPutWQnDjCoAuSoc", "WPKFFSkqsehcHmkGCmoVWPGbDfiBsMJdQCo3W6C", "W4dcHvpdLCkJa8ociqbHnJBdL8k2W7W", "gdhdR1hcHmoVW4adpsDBW4PBWOtdRmkKW4VcPZunWQ3cQfW3FmkmWRG", "W6JcJ8k7WORdGSk5", "W6tcLCkPW6BdHmkOCuFcUmknWOjNWR3dSaPkW65Y", "W4jxvrzTgmklW67cRbO", "W4uYec9t", "u2erihqnW5nb", "z8oGuxGYWP8", "eCoGWRtcTSouvq", "mx59WQ8Qx0xdOCouWQW3bwuW", "W4HIWPBcVGBdNXKxb2RcQmkQ", "h8o2WO7cLSoJ", "WRujA8kuvfZcICoVCSo1", "qbiGWPiDW4q", "ecxdVIhcSCk0", "i1H9WQWHWQK", "AmkGk8k/", "v2uEoMqnW6zaWRmYW6z0WOS", "p8oZW7/cK35JWQW", "jwLMWQmQqfm", "gCkgWPbGWPz0rJL9oNy", "iJpdK0vAW6i", "W57cJmkhWOZdImkO", "kYZcVmo+beGo", "WOtcJmkgWPiRWQxcUMuowCooW48", "rGu+WOGaW5hcVL7cH8o9bmk3FZOlWOxcJr0R", "W4JcLCk7W7tdV8kOyq8", "W4bSoWRdKSo3", "BCkshCo0", "xYxdNmkv", "WQlcMbv7eCooda", "W43dRK3dM8kdjmkiW6yQ", "xYVdNSkCW7r0cSkCimoP", "W4BdGmoxW55SW6C", "f19KW4SOW5ZcGv7cOCoO", "W5yLfYTnW4f2W7RcRY7dOSk1W63cNa", "WPXXqMyee8of", "W6/cPL47i1zfog/cOCkTWPri", "WOSSqCotWPSg", "W6BcTtzHjSoIeq", "WOOHwMJcUeLRmu/cVW", "ASkFdmoJdZxdKCoVW5hcPa", "W5FcLvtdVW", "j8oJWOJcSmoErmo8DJe1q8kCWRq", "zCoQw3OpWPm", "qq8KWPOgW5hcQfNcNmoGaSknDq0", "jZKceCoebmkmbvfmDtbn", "W5uLds9wW4XXW4/cKYJdQmkKW4hcNa", "W4tcM2WSW6ZdOaBcJ8ohsCkaW4mT", "W6pcNCkBWOVdG8kUWP/dMYJcJCo+WPZdRW", "cmkNFHP7W40", "jZ8rfmodfmkPfea", "WRdcNCohW6DIyZrtWRxdTwKF", "WQPPvwSbhSoaWPdcGa", "WP4Wt1JcUvnqph/cTLtdIW", "fmo2WPtcVSoewa", "W4PVacBdMCoNfZy", "pfv2WQ4HWRNdOq", "W4v6gWldGSo6", "iJ/dNKDaW7NdU8k9", "WOJcImobW4X5FHXsWOxdTxqwW7y", "W6BcMCkbWQhdG8kOWQ7dGc3cKa", "WOn2r24CwG", "WPKXCCoBW6uiW5W", "ktpdIwLlW7m", "rxyFowGmW5m", "W4T1WOVcNbVdUbKnfwBcJ8k8Eq", "fCojW7v1AhldP8oOW5G", "bdvdBtHpWOfMWPSfW6TyWOW", "W4BcRaOClK9alKRcTmkWWP4", "AeLEaCk/gCkz", "WOKHW4ZdQuVcQ0S3j1RcVCkqyW", "WQmfACkdufVcT8oPAmoU", "jw56WQy", "WReMoMPohsmTESkcWPxdHmkEjY/dNstcU2Tk", "W57dSmonuG", "WQpcTSkMW5uagva", "WQtcVmk8W7igh1ldRa", "W4JdT8oBx8kdWOa"];
836
+ return (at = function() {
832
837
  return t2;
833
838
  })();
834
839
  }
840
+ function lt(t2, e2, n2, r2, o2) {
841
+ return et(t2 - -598, n2);
842
+ }
835
843
  const ct = (t2, e2) => {
836
844
  const n2 = [];
837
845
  for (let r2 = 0; r2 < t2.length; r2++) {
@@ -1619,7 +1627,7 @@ var Mt;
1619
1627
  }, Mt.simpleComparator = function(t2, e2) {
1620
1628
  return t2 > e2 ? 1 : t2 < e2 ? -1 : 0;
1621
1629
  };
1622
- const Nt = [-1, null], Tt = { done: false, value: [-1, null] };
1630
+ const Tt = [-1, null], Nt = { done: false, value: [-1, null] };
1623
1631
  var Ft;
1624
1632
  ((t2) => {
1625
1633
  t2.Builder = class {
@@ -1697,7 +1705,7 @@ var Ft;
1697
1705
  if (r3) {
1698
1706
  let t4;
1699
1707
  const i3 = r3.minor;
1700
- 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));
1708
+ 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));
1701
1709
  }
1702
1710
  if (!o2) {
1703
1711
  this._majorMin = Math.min(this._majorMin, t3), o2 = [n2, [[t3, []]]];
@@ -1713,7 +1721,7 @@ var Ft;
1713
1721
  return h2 + d2.length !== t3 && (d2 = [], h2 = t3, l2.push([h2, d2])), d2.push(r2), this._majorMax = Math.max(this._majorMax, t3), this._minorIndex = n2, this;
1714
1722
  }
1715
1723
  build() {
1716
- const t3 = [], e3 = this._createList, n2 = this._minors.entries(void 0, Tt);
1724
+ const t3 = [], e3 = this._createList, n2 = this._minors.entries(void 0, Nt);
1717
1725
  let r2 = n2.next();
1718
1726
  for (; !r2.done; ) {
1719
1727
  const o2 = r2.value[1].span;
@@ -1751,7 +1759,7 @@ function Lt(t2) {
1751
1759
  return r2[t2.argumentCallback ? t2.argumentCallback(e2) : e2];
1752
1760
  };
1753
1761
  }
1754
- function zt(t2) {
1762
+ function Pt(t2) {
1755
1763
  return (e2, n2 = {}) => {
1756
1764
  const r2 = n2.width, o2 = r2 && t2.matchPatterns[r2] || t2.matchPatterns[t2.defaultMatchWidth], s2 = e2.match(o2);
1757
1765
  if (!s2) return null;
@@ -1767,8 +1775,8 @@ function zt(t2) {
1767
1775
  return { value: c2, rest: e2.slice(i2.length) };
1768
1776
  };
1769
1777
  }
1770
- var Pt;
1771
- const Ht = { code: "en-US", formatDistance: (t2, e2, n2) => {
1778
+ var zt;
1779
+ const Wt = { code: "en-US", formatDistance: (t2, e2, n2) => {
1772
1780
  let r2;
1773
1781
  const o2 = kt[t2];
1774
1782
  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;
@@ -1783,14 +1791,14 @@ const Ht = { code: "en-US", formatDistance: (t2, e2, n2) => {
1783
1791
  return n2 + "rd";
1784
1792
  }
1785
1793
  return n2 + "th";
1786
- }, era: Lt({ values: { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] }, defaultWidth: "wide" }), quarter: Lt({ values: { narrow: ["1", "2", "3", "4"], abbreviated: ["Q1", "Q2", "Q3", "Q4"], wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] }, defaultWidth: "wide", argumentCallback: (t2) => t2 - 1 }), month: Lt({ values: { narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] }, defaultWidth: "wide" }), day: Lt({ values: { narrow: ["S", "M", "T", "W", "T", "F", "S"], short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] }, defaultWidth: "wide" }), dayPeriod: Lt({ values: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" } }, defaultWidth: "wide", formattingValues: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" } }, defaultFormattingWidth: "wide" }) }, match: { ordinalNumber: (Pt = { matchPattern: /^(\d+)(th|st|nd|rd)?/i, parsePattern: /\d+/i, valueCallback: (t2) => parseInt(t2, 10) }, (t2, e2 = {}) => {
1787
- const n2 = t2.match(Pt.matchPattern);
1794
+ }, era: Lt({ values: { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] }, defaultWidth: "wide" }), quarter: Lt({ values: { narrow: ["1", "2", "3", "4"], abbreviated: ["Q1", "Q2", "Q3", "Q4"], wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] }, defaultWidth: "wide", argumentCallback: (t2) => t2 - 1 }), month: Lt({ values: { narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] }, defaultWidth: "wide" }), day: Lt({ values: { narrow: ["S", "M", "T", "W", "T", "F", "S"], short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] }, defaultWidth: "wide" }), dayPeriod: Lt({ values: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" } }, defaultWidth: "wide", formattingValues: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" } }, defaultFormattingWidth: "wide" }) }, match: { ordinalNumber: (zt = { matchPattern: /^(\d+)(th|st|nd|rd)?/i, parsePattern: /\d+/i, valueCallback: (t2) => parseInt(t2, 10) }, (t2, e2 = {}) => {
1795
+ const n2 = t2.match(zt.matchPattern);
1788
1796
  if (!n2) return null;
1789
- const r2 = n2[0], o2 = t2.match(Pt.parsePattern);
1797
+ const r2 = n2[0], o2 = t2.match(zt.parsePattern);
1790
1798
  if (!o2) return null;
1791
- let s2 = Pt.valueCallback ? Pt.valueCallback(o2[0]) : o2[0];
1799
+ let s2 = zt.valueCallback ? zt.valueCallback(o2[0]) : o2[0];
1792
1800
  return s2 = e2.valueCallback ? e2.valueCallback(s2) : s2, { value: s2, rest: t2.slice(r2.length) };
1793
- }), 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) => {
1801
+ }), era: Pt({ matchPatterns: { narrow: /^(b|a)/i, abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, wide: /^(before christ|before common era|anno domini|common era)/i }, defaultMatchWidth: "wide", parsePatterns: { any: [/^b/i, /^(a|c)/i] }, defaultParseWidth: "any" }), quarter: Pt({ matchPatterns: { narrow: /^[1234]/i, abbreviated: /^q[1234]/i, wide: /^[1234](th|st|nd|rd)? quarter/i }, defaultMatchWidth: "wide", parsePatterns: { any: [/1/i, /2/i, /3/i, /4/i] }, defaultParseWidth: "any", valueCallback: (t2) => t2 + 1 }), month: Pt({ matchPatterns: { narrow: /^[jfmasond]/i, abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i }, defaultMatchWidth: "wide", parsePatterns: { narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] }, defaultParseWidth: "any" }), day: Pt({ matchPatterns: { narrow: /^[smtwf]/i, short: /^(su|mo|tu|we|th|fr|sa)/i, abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i }, defaultMatchWidth: "wide", parsePatterns: { narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] }, defaultParseWidth: "any" }), dayPeriod: Pt({ matchPatterns: { narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i }, defaultMatchWidth: "any", parsePatterns: { any: { am: /^a/i, pm: /^p/i, midnight: /^mi/i, noon: /^no/i, morning: /morning/i, afternoon: /afternoon/i, evening: /evening/i, night: /night/i } }, defaultParseWidth: "any" }) }, options: { weekStartsOn: 0, firstWeekContainsDate: 1 } }, Ht = (t2, e2) => {
1794
1802
  switch (t2) {
1795
1803
  case "P":
1796
1804
  return e2.date({ width: "short" });
@@ -1814,7 +1822,7 @@ const Ht = { code: "en-US", formatDistance: (t2, e2, n2) => {
1814
1822
  }
1815
1823
  }, $t = { p: Vt, P: (t2, e2) => {
1816
1824
  const n2 = t2.match(/(P+)(p+)?/) || [], r2 = n2[1], o2 = n2[2];
1817
- if (!o2) return Wt(t2, e2);
1825
+ if (!o2) return Ht(t2, e2);
1818
1826
  let s2;
1819
1827
  switch (r2) {
1820
1828
  case "P":
@@ -1829,7 +1837,7 @@ const Ht = { code: "en-US", formatDistance: (t2, e2, n2) => {
1829
1837
  default:
1830
1838
  s2 = e2.dateTime({ width: "full" });
1831
1839
  }
1832
- return s2.replace("{{date}}", Wt(r2, e2)).replace("{{time}}", Vt(o2, e2));
1840
+ return s2.replace("{{date}}", Ht(r2, e2)).replace("{{time}}", Vt(o2, e2));
1833
1841
  } }, jt = /^D+$/, Gt = /^Y+$/, Ut = ["D", "DD", "YY", "YYYY"];
1834
1842
  function Jt(t2) {
1835
1843
  return jt.test(t2);
@@ -2039,7 +2047,7 @@ const Se = { y: new class extends oe {
2039
2047
  }
2040
2048
  }() }, we = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ye = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ee = /^'([^]*?)'?$/, Ce = /''/g, be = /\S/, ve = /[a-zA-Z]/;
2041
2049
  function xe(t2, e2, n2, r2) {
2042
- 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;
2050
+ const o2 = () => Yt(r2?.in || n2, NaN), s2 = Object.assign({}, Zt()), i2 = r2?.locale ?? s2.locale ?? Wt, a2 = r2?.firstWeekContainsDate ?? r2?.locale?.options?.firstWeekContainsDate ?? s2.firstWeekContainsDate ?? s2.locale?.options?.firstWeekContainsDate ?? 1, l2 = r2?.weekStartsOn ?? r2?.locale?.options?.weekStartsOn ?? s2.weekStartsOn ?? s2.locale?.options?.weekStartsOn ?? 0;
2043
2051
  if (!e2) return t2 ? o2() : te(n2, r2?.in);
2044
2052
  const c2 = { firstWeekContainsDate: a2, weekStartsOn: l2, locale: i2 }, h2 = [new re(r2?.in, n2)], d2 = e2.match(ye).map((t3) => {
2045
2053
  const e3 = t3[0];
@@ -2096,11 +2104,11 @@ function Me(t2, e2) {
2096
2104
  for (var n2 = ""; n2.length < e2; ) n2 += t2;
2097
2105
  return n2;
2098
2106
  }
2099
- function Ne(t2) {
2107
+ function Te(t2) {
2100
2108
  for (var e2 = "", n2 = t2.length - 1; n2 >= 0; ) e2 += t2.charAt(n2--);
2101
2109
  return e2;
2102
2110
  }
2103
- function Te(t2, e2) {
2111
+ function Ne(t2, e2) {
2104
2112
  var n2 = "" + t2;
2105
2113
  return n2.length >= e2 ? n2 : Me("0", e2 - n2.length) + n2;
2106
2114
  }
@@ -2125,7 +2133,7 @@ function De(t2, e2) {
2125
2133
  function Be(t2, e2) {
2126
2134
  return e2 = e2 || 0, t2.length >= 7 + e2 && 103 == (32 | t2.charCodeAt(e2)) && 101 == (32 | t2.charCodeAt(e2 + 1)) && 110 == (32 | t2.charCodeAt(e2 + 2)) && 101 == (32 | t2.charCodeAt(e2 + 3)) && 114 == (32 | t2.charCodeAt(e2 + 4)) && 97 == (32 | t2.charCodeAt(e2 + 5)) && 108 == (32 | t2.charCodeAt(e2 + 6));
2127
2135
  }
2128
- 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\\);_("$"* "-"??_);_(@_)' };
2136
+ var Le = [["Sun", "Sunday"], ["Mon", "Monday"], ["Tue", "Tuesday"], ["Wed", "Wednesday"], ["Thu", "Thursday"], ["Fri", "Friday"], ["Sat", "Saturday"]], Pe = [["J", "Jan", "January"], ["F", "Feb", "February"], ["M", "Mar", "March"], ["A", "Apr", "April"], ["M", "May", "May"], ["J", "Jun", "June"], ["J", "Jul", "July"], ["A", "Aug", "August"], ["S", "Sep", "September"], ["O", "Oct", "October"], ["N", "Nov", "November"], ["D", "Dec", "December"]], ze = { 0: "General", 1: "0", 2: "0.00", 3: "#,##0", 4: "#,##0.00", 5: "$#,##0_);($#,##0)", 6: "$#,##0_);[Red]($#,##0)", 7: "$#,##0.00_);($#,##0.00)", 8: "$#,##0.00_);[Red]($#,##0.00)", 9: "0%", 10: "0.00%", 11: "0.00E+00", 12: "# ?/?", 13: "# ??/??", 14: "m/d/yy", 15: "d-mmm-yy", 16: "d-mmm", 17: "mmm-yy", 18: "h:mm AM/PM", 19: "h:mm:ss AM/PM", 20: "h:mm", 21: "h:mm:ss", 22: "m/d/yy h:mm", 23: "General", 24: "General", 25: "General", 26: "General", 27: "m/d/yyyy", 28: "m/d/yyyy", 29: "m/d/yyyy", 30: "m/d/yyyy", 32: "h:mm:ss", 31: "m/d/yyyy", 33: "h:mm:ss", 34: "h:mm:ss", 35: "h:mm:ss", 36: "m/d/yyyy", 37: "#,##0_);(#,##0)", 38: "#,##0_);[Red](#,##0)", 39: "#,##0.00_);(#,##0.00)", 40: "#,##0.00_);[Red](#,##0.00)", 41: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)', 42: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)', 43: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)', 44: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)', 45: "mm:ss", 46: "[h]:mm:ss", 47: "mmss.0", 48: "##0.0E+0", 49: "@", 50: "m/d/yyyy", 51: "m/d/yyyy", 52: "m/d/yyyy", 53: "m/d/yyyy", 54: "m/d/yyyy", 55: "m/d/yyyy", 56: '"上午/下午 "hh"時"mm"分"ss"秒 "' }, We = { 5: 37, 6: 38, 7: 39, 8: 40, 23: 0, 24: 0, 25: 0, 26: 0, 27: 14, 28: 14, 29: 14, 30: 14, 31: 14, 50: 14, 51: 14, 52: 14, 53: 14, 54: 14, 55: 14, 56: 14, 57: 14, 58: 14, 59: 1, 60: 2, 61: 3, 62: 4, 67: 9, 68: 10, 69: 12, 70: 13, 71: 14, 72: 14, 73: 15, 74: 16, 75: 17, 76: 20, 77: 21, 78: 22, 79: 45, 80: 46, 81: 47, 82: 0 }, He = { 5: '"$"#,##0_);\\("$"#,##0\\)', 63: '"$"#,##0_);\\("$"#,##0\\)', 6: '"$"#,##0_);[Red]\\("$"#,##0\\)', 64: '"$"#,##0_);[Red]\\("$"#,##0\\)', 7: '"$"#,##0.00_);\\("$"#,##0.00\\)', 65: '"$"#,##0.00_);\\("$"#,##0.00\\)', 8: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', 66: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', 41: '_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)', 42: '_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)', 43: '_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)', 44: '_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)' };
2129
2137
  function Ve(t2, e2, n2) {
2130
2138
  for (var r2 = t2 < 0 ? -1 : 1, o2 = t2 * r2, s2 = 0, i2 = 1, a2 = 0, l2 = 1, c2 = 0, h2 = 0, d2 = Math.floor(o2); c2 < e2 && (a2 = (d2 = Math.floor(o2)) * i2 + s2, h2 = d2 * c2 + l2, !(o2 - d2 < 5e-8)); ) o2 = 1 / (o2 - d2), s2 = i2, i2 = a2, l2 = c2, c2 = h2;
2131
2139
  if (h2 > e2 && (c2 > e2 ? (h2 = l2, a2 = s2) : (h2 = c2, a2 = i2)), !n2) return [0, r2 * a2, h2];
@@ -2207,11 +2215,11 @@ function Ye(t2, e2, n2, r2) {
2207
2215
  o2 = n2.m, c2 = e2.length;
2208
2216
  break;
2209
2217
  case 3:
2210
- return ze[n2.m - 1][1];
2218
+ return Pe[n2.m - 1][1];
2211
2219
  case 5:
2212
- return ze[n2.m - 1][0];
2220
+ return Pe[n2.m - 1][0];
2213
2221
  default:
2214
- return ze[n2.m - 1][2];
2222
+ return Pe[n2.m - 1][2];
2215
2223
  }
2216
2224
  break;
2217
2225
  case 100:
@@ -2258,7 +2266,7 @@ function Ye(t2, e2, n2, r2) {
2258
2266
  break;
2259
2267
  case 115:
2260
2268
  if ("s" !== e2 && "ss" !== e2 && ".0" !== e2 && ".00" !== e2 && ".000" !== e2) throw new Error("bad second format: " + e2);
2261
- return 0 !== n2.u || "s" !== e2 && "ss" !== e2 ? (a2 = r2 >= 2 ? 3 === r2 ? 1e3 : 100 : 1 === r2 ? 10 : 1, (i2 = Math.round(a2 * (n2.S + n2.u))) >= 60 * a2 && (i2 = 0), "s" === e2 ? 0 === i2 ? "0" : "" + i2 / a2 : (s2 = Te(i2, 2 + r2), "ss" === e2 ? s2.substr(0, 2) : "." + s2.substr(2, e2.length - 1))) : Te(n2.S, e2.length);
2269
+ 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);
2262
2270
  case 90:
2263
2271
  switch (e2) {
2264
2272
  case "[h]":
@@ -2281,7 +2289,7 @@ function Ye(t2, e2, n2, r2) {
2281
2289
  case 101:
2282
2290
  o2 = l2, c2 = 1;
2283
2291
  }
2284
- return c2 > 0 ? Te(o2, c2) : "";
2292
+ return c2 > 0 ? Ne(o2, c2) : "";
2285
2293
  }
2286
2294
  function Qe(t2) {
2287
2295
  if (t2.length <= 3) return t2;
@@ -2363,7 +2371,7 @@ function hn(t2, e2, n2) {
2363
2371
  if (e2.match(/^[#?]+$/)) return "0" === (o2 = De(n2, 0)) && (o2 = ""), o2.length > e2.length ? o2 : sn(e2.substr(0, e2.length - o2.length)) + o2;
2364
2372
  if (s2 = e2.match(en)) return (function(t3, e3, n3) {
2365
2373
  var r3 = parseInt(t3[4], 10), o3 = Math.round(e3 * r3), s3 = Math.floor(o3 / r3), i3 = o3 - s3 * r3, a3 = r3;
2366
- return n3 + (0 === s3 ? "" : "" + s3) + " " + (0 === i3 ? Me(" ", t3[1].length + 1 + t3[4].length) : Fe(i3, t3[1].length) + t3[2] + "/" + t3[3] + Te(a3, t3[4].length));
2374
+ 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));
2367
2375
  })(s2, l2, c2);
2368
2376
  if (e2.match(/^#+0+$/)) return c2 + De(l2, e2.length - e2.indexOf("0"));
2369
2377
  if (s2 = e2.match(nn)) return i2 = Math.trunc(an(n2, s2[2].length)), a2 = ln(Math.abs(i2 - n2), s2[2].length), a2 = (a2 = "" + ln(a2, (function(t3) {
@@ -2375,9 +2383,9 @@ function hn(t2, e2, n2) {
2375
2383
  if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Qe(De(l2, 0));
2376
2384
  if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + hn(t2, e2, -n2) : Qe("" + (Math.floor(n2) + (function(t3, e3) {
2377
2385
  return e3 < ("" + Math.round((t3 - Math.floor(t3)) * Math.pow(10, e3))).length ? 1 : 0;
2378
- })(n2, s2[1].length))) + "." + Te(cn(n2, s2[1].length), s2[1].length);
2386
+ })(n2, s2[1].length))) + "." + Ne(cn(n2, s2[1].length), s2[1].length);
2379
2387
  if (s2 = e2.match(/^#,#*,#0/)) return hn(t2, e2.replace(/^#,#*,/, ""), n2);
2380
- 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) {
2388
+ 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) {
2381
2389
  return i2 < o2.length ? o2.charAt(i2++) : "0" === t3 ? "0" : "";
2382
2390
  }));
2383
2391
  if (e2.match(on)) return "(" + (o2 = hn(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
@@ -2393,8 +2401,8 @@ function hn(t2, e2, n2) {
2393
2401
  if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return i2 = cn(n2, s2[1].length), n2 < 0 ? "-" + hn(t2, e2, -n2) : Qe((function(t3) {
2394
2402
  return t3 < 2147483647 && t3 > -2147483648 ? "" + (t3 >= 0 ? 0 | t3 : t3 - 1 | 0) : "" + Math.floor(t3);
2395
2403
  })(n2)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(t3) {
2396
- return "00," + (t3.length < 3 ? Te(0, 3 - t3.length) : "") + t3;
2397
- }) + "." + Te(i2, s2[1].length);
2404
+ return "00," + (t3.length < 3 ? Ne(0, 3 - t3.length) : "") + t3;
2405
+ }) + "." + Ne(i2, s2[1].length);
2398
2406
  switch (e2) {
2399
2407
  case "###,##0.00":
2400
2408
  return hn(t2, "#,##0.00", n2);
@@ -2444,20 +2452,20 @@ function un(t2, e2, n2) {
2444
2452
  if (-1 !== e2.indexOf("E")) return dn(e2, n2);
2445
2453
  if (36 === e2.charCodeAt(0)) return "$" + un(t2, e2.substr(" " === e2.charAt(1) ? 2 : 1), n2);
2446
2454
  var o2, s2, i2, a2, l2 = Math.abs(n2), c2 = n2 < 0 ? "-" : "";
2447
- if (e2.match(/^00+$/)) return c2 + Te(l2, e2.length);
2455
+ if (e2.match(/^00+$/)) return c2 + Ne(l2, e2.length);
2448
2456
  if (e2.match(/^[#?]+$/)) return o2 = "" + n2, 0 === n2 && (o2 = ""), o2.length > e2.length ? o2 : sn(e2.substr(0, e2.length - o2.length)) + o2;
2449
2457
  if (s2 = e2.match(en)) return (function(t3, e3, n3) {
2450
2458
  return n3 + (0 === e3 ? "" : "" + e3) + Me(" ", t3[1].length + 2 + t3[4].length);
2451
2459
  })(s2, l2, c2);
2452
- if (e2.match(/^#+0+$/)) return c2 + Te(l2, e2.length - e2.indexOf("0"));
2453
- 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) {
2460
+ if (e2.match(/^#+0+$/)) return c2 + Ne(l2, e2.length - e2.indexOf("0"));
2461
+ 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) {
2454
2462
  return "." + e3 + Me("0", sn(s2[2]).length - e3.length);
2455
2463
  }), o2 = -1 !== e2.indexOf("0.") ? o2 : o2.replace(/^0\./, "."), n2 < 0 ? "-" + o2 : o2;
2456
2464
  if (e2 = e2.replace(/^#+([0.])/, "$1"), s2 = e2.match(/^(0*)\.(#*)$/)) return c2 + ("" + l2).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, s2[1].length ? "0." : ".");
2457
2465
  if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Qe("" + l2);
2458
2466
  if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + un(t2, e2, -n2) : Qe("" + n2) + "." + Me("0", s2[1].length);
2459
2467
  if (s2 = e2.match(/^#,#*,#0/)) return un(t2, e2.replace(/^#,#*,/, ""), n2);
2460
- 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) {
2468
+ 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) {
2461
2469
  return i2 < o2.length ? o2.charAt(i2++) : "0" === t3 ? "0" : "";
2462
2470
  }));
2463
2471
  if (e2.match(on)) return "(" + (o2 = un(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
@@ -2471,8 +2479,8 @@ function un(t2, e2, n2) {
2471
2479
  return sn(e2.substr(0, d2) + o2 + e2.substr(e2.length - u2));
2472
2480
  }
2473
2481
  if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return n2 < 0 ? "-" + un(t2, e2, -n2) : Qe("" + n2).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(t3) {
2474
- return "00," + (t3.length < 3 ? Te(0, 3 - t3.length) : "") + t3;
2475
- }) + "." + Te(0, s2[1].length);
2482
+ return "00," + (t3.length < 3 ? Ne(0, 3 - t3.length) : "") + t3;
2483
+ }) + "." + Ne(0, s2[1].length);
2476
2484
  switch (e2) {
2477
2485
  case "###,###":
2478
2486
  case "##,###":
@@ -2615,7 +2623,7 @@ function wn(t2, e2, n2) {
2615
2623
  r2 = "m/d/yy" === t2 && n2.dateNF ? n2.dateNF : t2;
2616
2624
  break;
2617
2625
  case "number":
2618
- 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");
2626
+ null == (r2 = 14 === t2 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : ze)[t2]) && (r2 = n2.table && n2.table[We[t2]] || ze[We[t2]]), null == r2 && (r2 = He[t2] || "General");
2619
2627
  }
2620
2628
  if (Be(r2, 0)) return Xe(e2, n2);
2621
2629
  Re(e2) && (e2 = Je(e2, n2.date1904));
@@ -2852,21 +2860,21 @@ function wn(t2, e2, n2) {
2852
2860
  function yn(t2, e2) {
2853
2861
  if ("number" != typeof e2) {
2854
2862
  e2 = +e2 || -1;
2855
- for (var n2 = 0; n2 < 392; ++n2) if (void 0 !== Pe[n2]) {
2856
- if (Pe[n2] === t2) {
2863
+ for (var n2 = 0; n2 < 392; ++n2) if (void 0 !== ze[n2]) {
2864
+ if (ze[n2] === t2) {
2857
2865
  e2 = n2;
2858
2866
  break;
2859
2867
  }
2860
2868
  } else e2 < 0 && (e2 = n2);
2861
2869
  e2 < 0 && (e2 = 391);
2862
2870
  }
2863
- return Pe[e2] = t2, e2;
2871
+ return ze[e2] = t2, e2;
2864
2872
  }
2865
- const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: Pe, load_table: function(t2) {
2873
+ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: ze, load_table: function(t2) {
2866
2874
  for (var e2 = 0; 392 !== e2; ++e2) void 0 !== t2[e2] && yn(t2[e2], e2);
2867
2875
  }, parse_date_code: $e, is_date: pn, get_table: function() {
2868
- return En._table = Pe;
2869
- } }, Cn = "\\s*([-]?[0-9e]*[.]?[0-9]+)", bn = new RegExp(`^rgb\\(${Cn},${Cn},${Cn}\\)$`), vn = new RegExp(`^rgba\\(${Cn},${Cn},${Cn},${Cn}\\)$`), xn = new RegExp(`^lrgb\\(${Cn},${Cn},${Cn}\\)$`), In = new RegExp(`^lrgba\\(${Cn},${Cn},${Cn},${Cn}\\)$`), Rn = new RegExp(`^hsl\\(${Cn},${Cn},${Cn}\\)$`), An = new RegExp(`^hsla\\(${Cn},${Cn},${Cn},${Cn}\\)$`), Mn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), 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) => {
2876
+ return En._table = ze;
2877
+ } }, 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) => {
2870
2878
  const n2 = [...t2];
2871
2879
  for (var r2 = 0; r2 < t2.length; r2++) n2[r2] = t2[r2] / e2;
2872
2880
  return n2;
@@ -2878,15 +2886,15 @@ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: Pe,
2878
2886
  const n2 = [...t2], r2 = e2 ? 1 : 255;
2879
2887
  for (var o2 = 0; o2 < t2.length; o2++) n2[o2] = Math.max(0, Math.min(r2, t2[o2]));
2880
2888
  return n2;
2881
- }, Bn = (t2) => Math.max(0, Math.min(1, t2)), Ln = (t2) => ((t2 %= 360) < 0 && (t2 -= 360), t2), zn = (t2) => {
2889
+ }, Bn = (t2) => Math.max(0, Math.min(1, t2)), Ln = (t2) => ((t2 %= 360) < 0 && (t2 -= 360), t2), Pn = (t2) => {
2882
2890
  const e2 = [...t2];
2883
- for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Hn(t2[n2]);
2891
+ for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Wn(t2[n2]);
2884
2892
  return e2;
2885
- }, Pn = (t2) => {
2893
+ }, zn = (t2) => {
2886
2894
  const e2 = [...t2];
2887
- for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Wn(t2[n2]);
2895
+ for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Hn(t2[n2]);
2888
2896
  return e2;
2889
- }, 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) => {
2897
+ }, Wn = (t2) => t2 < 0.04045 ? t2 / 12.92 : Math.pow((t2 + 0.055) / 1.055, 2.4), Hn = (t2) => t2 < 31308e-7 ? 12.92 * t2 : 1.055 * Math.pow(t2, 1 / 2.4) - 0.055, Vn = (t2) => {
2890
2898
  let e2 = t2[0], n2 = t2[1], r2 = t2[2];
2891
2899
  e2 %= 360, e2 /= 360, n2 /= 100, r2 /= 100;
2892
2900
  let o2 = r2 < 0.5 ? r2 * (1 + n2) : r2 + n2 - n2 * r2, s2 = 2 * r2 - o2;
@@ -2900,9 +2908,9 @@ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: Pe,
2900
2908
  }, Gn = 0, Un = 1, Jn = 2, qn = 0, Kn = 1, Xn = 2, Yn = 0, Qn = 1, Zn = 2, tr = (t2, e2) => {
2901
2909
  let n2 = e2 / 100;
2902
2910
  return ((t3, e3) => {
2903
- let n3 = zn(t3);
2911
+ let n3 = Pn(t3);
2904
2912
  n3[0] = e3(n3[0], n3), n3[1] = e3(n3[1], n3), n3[2] = e3(n3[2], n3);
2905
- let r2 = Pn(n3);
2913
+ let r2 = zn(n3);
2906
2914
  return r2 = Dn(r2), r2;
2907
2915
  })(t2, (t3, e3) => t3 * n2);
2908
2916
  }, er = 2.55, nr = (t2, e2) => {
@@ -2912,9 +2920,9 @@ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: Pe,
2912
2920
  let l2 = Vn(n2);
2913
2921
  return l2 = Dn(l2), l2;
2914
2922
  }, rr = (t2, e2) => {
2915
- let n2 = zn(t2), r2 = e2 / 100;
2923
+ let n2 = Pn(t2), r2 = e2 / 100;
2916
2924
  for (var o2 = 0; o2 < 3; o2++) n2[o2] = n2[o2] * r2 + (1 - r2);
2917
- let s2 = Pn(n2);
2925
+ let s2 = zn(n2);
2918
2926
  return s2 = Dn(s2), s2;
2919
2927
  }, or = (t2, e2, n2) => {
2920
2928
  let r2 = jn(e2), o2 = n2 / 1;
@@ -2938,14 +2946,14 @@ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: Pe,
2938
2946
  let s2 = Vn(r2);
2939
2947
  return s2 = Dn(s2), s2;
2940
2948
  }, ar = (t2, e2, n2, r2) => {
2941
- let o2 = zn(e2), s2 = n2 / 100;
2949
+ let o2 = Pn(e2), s2 = n2 / 100;
2942
2950
  r2 === Yn ? o2[t2] = s2 : r2 === Qn ? o2[t2] += s2 : r2 === Zn && (o2[t2] *= s2);
2943
- let i2 = Pn(o2);
2951
+ let i2 = zn(o2);
2944
2952
  return i2 = Dn(i2), i2;
2945
2953
  }, lr = (t2) => {
2946
- let e2 = zn(t2), n2 = 0.213 * e2[qn] + 0.715 * e2[Kn] + 0.072 * e2[Xn];
2954
+ let e2 = Pn(t2), n2 = 0.213 * e2[qn] + 0.715 * e2[Kn] + 0.072 * e2[Xn];
2947
2955
  e2[0] = n2, e2[1] = n2, e2[2] = n2;
2948
- let r2 = Pn(e2);
2956
+ let r2 = zn(e2);
2949
2957
  return r2 = Dn(r2), r2;
2950
2958
  }, cr = (t2) => {
2951
2959
  let e2 = jn(t2);
@@ -2953,16 +2961,16 @@ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: Pe,
2953
2961
  let n2 = Vn(e2);
2954
2962
  return n2 = Dn(n2), n2;
2955
2963
  }, hr = (t2, e2 = true) => {
2956
- let n2 = e2 ? zn(t2) : [...t2];
2964
+ let n2 = e2 ? Pn(t2) : [...t2];
2957
2965
  const r2 = e2 ? 1 : 255;
2958
- 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;
2966
+ return n2[0] = r2 - n2[0], n2[1] = r2 - n2[1], n2[2] = r2 - n2[2], e2 && (n2 = zn(n2)), n2 = Dn(n2, e2), n2;
2959
2967
  }, dr = (t2) => {
2960
2968
  const e2 = [0, 0, 0];
2961
- e2[0] = Wn(t2[0]), e2[1] = Wn(t2[1]), e2[2] = Wn(t2[2]);
2969
+ e2[0] = Hn(t2[0]), e2[1] = Hn(t2[1]), e2[2] = Hn(t2[2]);
2962
2970
  return Dn(e2);
2963
2971
  }, ur = (t2) => {
2964
2972
  const e2 = [0, 0, 0];
2965
- e2[0] = Hn(t2[0]), e2[1] = Hn(t2[1]), e2[2] = Hn(t2[2]);
2973
+ e2[0] = Wn(t2[0]), e2[1] = Wn(t2[1]), e2[2] = Wn(t2[2]);
2966
2974
  return Dn(e2);
2967
2975
  }, gr = (t2, e2, n2, r2 = null) => {
2968
2976
  const o2 = (t3) => {
@@ -3048,7 +3056,7 @@ for (let t2 = 0; t2 < Er.length; t2++) Cr.set(t2, yr(Er[t2]));
3048
3056
  Cr.set(-4105, null), Cr.set(-4142, null), Cr.set(64, yr("000000")), Cr.set(65, yr("FFFFFF")), Cr.set(81, yr("FFFFFF"));
3049
3057
  const br = (t2) => Cr.get(t2), vr = { General: "General", Number: "Number", Currency: "Currency", Accounting: "Accounting", ShortDate: "Short Date", LongDate: "Long Date", MediumDate: "Medium Date", ShortTime: "Short Time", MediumTime: "Medium Time", LongTime: "Long Time", Comma: "Comma", Percentage: "Percentage", Fraction: "Fraction", Scientific: "Scientific", Text: "Text", Special: "Special", Custom: "Custom" };
3050
3058
  let xr = null;
3051
- const Ir = () => xr || (xr = Intl.DateTimeFormat().resolvedOptions().locale ?? "en-US", xr), Rr = /^\[\$-(.*?)\]/i, Ar = /^[0-9a-fA-F]+$/, Mr = En.split_fmt, Nr = (t2, e2, n2) => {
3059
+ 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) => {
3052
3060
  const r2 = Rr.exec(t2);
3053
3061
  let o2 = Ir();
3054
3062
  if (r2 && r2[1]) {
@@ -3056,11 +3064,11 @@ const Ir = () => xr || (xr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
3056
3064
  Ar.test(t3) || t3.includes("-");
3057
3065
  }
3058
3066
  if (Fr[t2] && (t2 = Fr[t2]), "number" == typeof e2) {
3059
- const r3 = Tr(t2, e2, { locale: o2, ...n2 });
3067
+ const r3 = Nr(t2, e2, { locale: o2, ...n2 });
3060
3068
  if (null !== r3) return r3.fmt;
3061
3069
  }
3062
3070
  return En.format(t2, e2, n2);
3063
- }, Tr = (t2, e2, n2) => {
3071
+ }, Nr = (t2, e2, n2) => {
3064
3072
  if ("number" != typeof e2) return null;
3065
3073
  const r2 = eo(e2, n2?.date1904 ?? false), o2 = n2?.locale ?? Ir();
3066
3074
  let s2 = false, i2 = t2, a2 = -1;
@@ -3100,8 +3108,8 @@ const Ir = () => xr || (xr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
3100
3108
  void 0 !== n2 && (e2 = br(n2).toString());
3101
3109
  }
3102
3110
  return e2;
3103
- }, Dr = "=", Br = "<>", Lr = ">", zr = "<", Pr = ">=", Hr = "<=", Wr = /* @__PURE__ */ new Map();
3104
- 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);
3111
+ }, Dr = "=", Br = "<>", Lr = ">", Pr = "<", zr = ">=", Wr = "<=", Hr = /* @__PURE__ */ new Map();
3112
+ Hr.set(Dr, (t2, e2) => t2 === e2), Hr.set(Br, (t2, e2) => t2 !== e2), Hr.set(Lr, (t2, e2) => t2 > e2), Hr.set(Pr, (t2, e2) => t2 < e2), Hr.set(zr, (t2, e2) => t2 >= e2), Hr.set(Wr, (t2, e2) => t2 <= e2);
3105
3113
  const Vr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, $r = /(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)/i, jr = /\[(.*?)\]/g, Gr = (t2, e2) => {
3106
3114
  const n2 = { color: null, condition: null };
3107
3115
  let r2 = null, o2 = new RegExp(jr);
@@ -3126,7 +3134,7 @@ const Vr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, $r =
3126
3134
  const n3 = t3.split(";");
3127
3135
  for (let t4 = 0; t4 < n3.length; t4++) {
3128
3136
  let r3 = null;
3129
- 2 === n3.length ? 0 === t4 ? r3 = { op: Pr, comp: 0 } : 1 === t4 && (r3 = { op: zr, comp: 0 }) : 3 !== n3.length && 4 !== n3.length || (r3 = 0 === t4 ? { op: Lr, comp: 0 } : 1 === t4 ? { op: zr, comp: 0 } : 2 === t4 ? { op: Dr, comp: 0 } : null);
3137
+ 2 === n3.length ? 0 === t4 ? r3 = { op: zr, comp: 0 } : 1 === t4 && (r3 = { op: Pr, comp: 0 }) : 3 !== n3.length && 4 !== n3.length || (r3 = 0 === t4 ? { op: Lr, comp: 0 } : 1 === t4 ? { op: Pr, comp: 0 } : 2 === t4 ? { op: Dr, comp: 0 } : null);
3130
3138
  const o2 = n3[t4], s2 = Gr(o2, r3);
3131
3139
  e3.push({ format: o2, colorAndCondition: s2 });
3132
3140
  }
@@ -3138,7 +3146,7 @@ const Vr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, $r =
3138
3146
  let o2 = r2?.condition ?? void 0;
3139
3147
  if (3 === t3) return "string" == typeof e2 && r2?.color ? r2.color : null;
3140
3148
  if (o2 && "number" == typeof e2) {
3141
- if (Wr.get(o2.op)(e2, o2.comp)) return r2?.color ?? null;
3149
+ if (Hr.get(o2.op)(e2, o2.comp)) return r2?.color ?? null;
3142
3150
  }
3143
3151
  }
3144
3152
  }, Jr = (t2) => {
@@ -3275,7 +3283,7 @@ const Vr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, $r =
3275
3283
  c2.setFullYear(t4);
3276
3284
  }
3277
3285
  if (oo[t3].todaysYear && c2.setFullYear(o2), h2 = En.dateNumLocal(c2, e2), oo[t3].parseFormat.indexOf("EEE") > -1) {
3278
- const t4 = Nr("ddd", h2, { date1904: e2 });
3286
+ const t4 = Tr("ddd", h2, { date1904: e2 });
3279
3287
  if (!n3.toLowerCase().includes(t4.toLowerCase())) return null;
3280
3288
  }
3281
3289
  let r3 = oo[t3].numberFormat;
@@ -3325,9 +3333,9 @@ const Co = (t2, e2, n2 = 1e3) => {
3325
3333
  if (void 0 === t2) return 0;
3326
3334
  let e2 = t2.toString().split(".");
3327
3335
  return e2.length <= 1 ? 0 : e2[1].length || 0;
3328
- }, Ao = new RegExp(/^["|'|`](.*)["|'|`]$/), Mo = new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$", "i"), 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) => {
3329
- let r2 = To;
3330
- return void 0 === e2 && void 0 === n2 || (r2 = No(e2, n2)), t2.split(r2);
3336
+ }, 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) => {
3337
+ let r2 = No;
3338
+ return void 0 === e2 && void 0 === n2 || (r2 = To(e2, n2)), t2.split(r2);
3331
3339
  }, Do = (t2) => {
3332
3340
  let e2;
3333
3341
  try {
@@ -3336,17 +3344,17 @@ const Co = (t2, e2, n2 = 1e3) => {
3336
3344
  return false;
3337
3345
  }
3338
3346
  return ("http:" === e2.protocol || "https:" === e2.protocol) && Mo.test(t2);
3339
- }, 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) => {
3347
+ }, Bo = new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/i), Lo = (t2) => !!t2.toLowerCase().startsWith("mailto:") || Bo.test(t2), Po = (t2) => ((t2 >= 26 ? Po((t2 / 26 | 0) - 1) : "") + "abcdefghijklmnopqrstuvwxyz"[t2 % 26 | 0]).toUpperCase(), zo = 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) => {
3340
3348
  if (!t2 || "string" != typeof t2) return "";
3341
3349
  const n2 = t2.split(/[\\/]/).pop() || "";
3342
3350
  if ("" === n2) return "";
3343
3351
  const r2 = vo(n2), o2 = 0 === r2.length ? n2 : n2.slice(0, n2.length - r2.length - 1);
3344
3352
  return e2 ? bo(o2, true) : o2;
3345
- }, getFileNameExtension: vo, isQuoted: (t2) => t2 && t2.length > 1 && Ao.test(t2) && t2[0] === t2[t2.length - 1], isValidEmail: Lo, isValidHttpUrl: Do, numberToAlphabet: zo, quote: ko, snakeToCamel: xo, splitUnquoted: Oo, unquote: Fo }, Symbol.toStringTag, { value: "Module" })), Ho = (t2, e2, n2, r2 = null) => {
3353
+ }, getFileNameExtension: vo, isQuoted: (t2) => t2 && t2.length > 1 && Ao.test(t2) && t2[0] === t2[t2.length - 1], isValidEmail: Lo, isValidHttpUrl: Do, numberToAlphabet: Po, quote: ko, snakeToCamel: xo, splitUnquoted: Oo, unquote: Fo }, Symbol.toStringTag, { value: "Module" })), Wo = (t2, e2, n2, r2 = null) => {
3346
3354
  const o2 = (e2 || 11 * Ko.getDeviceScale()) / Ko.getDeviceScale(), s2 = r2?.letterSpacing || 0, i2 = t2.length;
3347
3355
  const a2 = i2 * (0.55 * o2) - (t2.match(/[il.,;!|]/g) || []).length * o2 * 0.15 + (t2.match(/[mwMW]/g) || []).length * o2 * 0.1 + (i2 > 0 ? (i2 - 1) * s2 : 0), l2 = Math.ceil(1.2 * o2), c2 = Math.ceil(0.8 * o2), h2 = Math.ceil(0.2 * o2), d2 = Math.ceil(0.45 * o2), u2 = Math.ceil(1.1 * o2), g2 = Math.max(1, Math.ceil(0.08 * o2));
3348
3356
  return { width: a2, lineHeight: l2, baseline: c2, lineGap: h2, strikePosition: d2, underlinePosition: u2, strikeThickness: g2, underlineThickness: g2, actualBoundingBoxLeft: 0, actualBoundingBoxRight: a2, actualBoundingBoxAscent: c2, actualBoundingBoxDescent: l2 - c2, fontBoundingBoxAscent: c2, fontBoundingBoxDescent: l2 - c2, emHeightAscent: c2, emHeightDescent: l2 - c2, hangingBaseline: 0.8 * c2, alphabeticBaseline: c2, ideographicBaseline: l2 };
3349
- }, Wo = () => Ho;
3357
+ }, Ho = () => Wo;
3350
3358
  let Vo = "./packages/sdk/src/__tests__/fonts/";
3351
3359
  const $o = /* @__PURE__ */ new Map(), jo = /* @__PURE__ */ new Set(), Go = (t2, e2, n2, r2 = null) => {
3352
3360
  const o2 = e2, s2 = Vo + n2.toLowerCase() + ".ttf";
@@ -3359,7 +3367,7 @@ const $o = /* @__PURE__ */ new Map(), jo = /* @__PURE__ */ new Set(), Go = (t2,
3359
3367
  i2 = R(Vo + "calibri.ttf");
3360
3368
  } catch (t3) {
3361
3369
  }
3362
- if (!i2) return jo.has(s2) || jo.add(s2), Wo().call(null, t2, e2, n2, r2);
3370
+ if (!i2) return jo.has(s2) || jo.add(s2), Ho().call(null, t2, e2, n2, r2);
3363
3371
  const a2 = `${s2}${t2}${o2}`;
3364
3372
  let l2 = $o.get(a2);
3365
3373
  l2 || (l2 = i2.layout(t2), t2.length < 2 && $o.set(a2, l2));
@@ -3387,7 +3395,7 @@ var Ko, Xo;
3387
3395
  Uo = Go;
3388
3396
  } catch {
3389
3397
  }
3390
- return Uo || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), Uo = Wo()), Uo;
3398
+ return Uo || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), Uo = Ho()), Uo;
3391
3399
  })(), qo), Xo.getDeviceScale = () => Jo(), Xo.getPanoseFallback = (t2) => {
3392
3400
  const e2 = [], n2 = t2.length;
3393
3401
  for (let r3 = 0; r3 < n2; r3 += 2) e2.push(parseInt(t2.substring(r3, r3 + 2), 16));
@@ -3908,7 +3916,7 @@ const Rs = (t2, e2 = false) => {
3908
3916
  }, As = (t2, e2) => t2 ? e2 ? t2 || e2 ? t2.min > e2.max || t2.max < e2.min ? null : { min: Math.max(t2.min, e2.min), max: Math.min(t2.max, e2.max) } : null : { ...t2 } : { ...e2 }, Ms = (t2) => {
3909
3917
  const e2 = 0 === t2.length;
3910
3918
  return { runs: t2, run: { min: e2 ? Number.MIN_SAFE_INTEGER : Number.MAX_SAFE_INTEGER, max: e2 ? Number.MAX_SAFE_INTEGER : Number.MIN_SAFE_INTEGER, value: null }, index: Number.MAX_SAFE_INTEGER };
3911
- }, Ns = (t2, e2) => {
3919
+ }, Ts = (t2, e2) => {
3912
3920
  const n2 = e2.run, r2 = n2.min, s2 = n2.max;
3913
3921
  if (t2 >= r2 && t2 <= s2) return n2.value;
3914
3922
  let i2 = e2.index;
@@ -3931,7 +3939,7 @@ const Rs = (t2, e2 = false) => {
3931
3939
  return n2.value = t3, t3;
3932
3940
  }
3933
3941
  return i2--, e2.index = i2, n2.min = i2 >= 0 ? a2[i2].max + 1 : Number.MIN_SAFE_INTEGER, n2.max = c2 - 1, n2.value = null, null;
3934
- }, Ts = function(t2, e2, n2, r2) {
3942
+ }, Ns = function(t2, e2, n2, r2) {
3935
3943
  if (0 === t2.length) {
3936
3944
  if (null != n2 || null != r2) {
3937
3945
  const t3 = e2({ min: n2 ?? r2, max: r2 ?? n2 });
@@ -3955,7 +3963,7 @@ const Rs = (t2, e2 = false) => {
3955
3963
  if (t3 && t3.break) return t3;
3956
3964
  }
3957
3965
  }, Fs = new RegExp("([0-9]+)$");
3958
- var ks, Os, Ds, Bs, Ls, zs;
3966
+ var ks, Os, Ds, Bs, Ls, Ps;
3959
3967
  ((t2) => {
3960
3968
  t2.Date = class {
3961
3969
  constructor(t3) {
@@ -4207,7 +4215,7 @@ var ks, Os, Ds, Bs, Ls, zs;
4207
4215
  }
4208
4216
  const f2 = Ms(a2);
4209
4217
  return (t4) => {
4210
- const e4 = t4 >= 0, n4 = Math.abs(t4), o4 = Ns(n4 % r3, f2);
4218
+ const e4 = t4 >= 0, n4 = Math.abs(t4), o4 = Ts(n4 % r3, f2);
4211
4219
  if (!o4) return null;
4212
4220
  const s4 = Math.floor(n4 / r3), i4 = o4.length, a3 = o4.start, l3 = (s4 + (e4 ? 1 : 0)) * a3 + (s4 + (e4 ? 0 : 1)) * (r3 - (a3 + i4));
4213
4221
  let c3 = t4 + (e4 ? -l3 : l3);
@@ -4226,24 +4234,24 @@ var ks, Os, Ds, Bs, Ls, zs;
4226
4234
  for (let t4 = s3; t4 < n3; t4++) o3.push(i3(t4));
4227
4235
  return o3;
4228
4236
  };
4229
- })(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" };
4230
- 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]];
4231
- const Hs = new class {
4237
+ })(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" }, (Ps = 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" }, Ps.Named = { ActiveBorder: "activeBorder", ActiveCaption: "activeCaption", CaptionText: "captionText", AppWorkspace: "appWorkspace", BtnFace: "btnFace", BtnShadow: "btnShadow", DkShadow3d: "3dDkShadow", BtnHighlight: "btnHighlight", Light3d: "3dLight", BtnText: "btnText", Background: "background", GrayText: "grayText", Highlight: "highlight", HighlightText: "highlightText", HotLight: "hotLight", InactiveBorder: "inactiveBorder", InactiveCaption: "inactiveCaption", InactiveCaptionText: "inactiveCaptionText", InfoBk: "infoBk", InfoText: "infoText", Menu: "menu", MenuText: "menuText", ScrollBar: "scrollBar", Window: "window", WindowFrame: "windowFrame", WindowText: "windowText", Transparent: "transparent", AliceBlue: "aliceBlue", AntiqueWhite: "antiqueWhite", Aqua: "aqua", Aquamarine: "aquamarine", Azure: "azure", Beige: "beige", Bisque: "bisque", Black: "black", BlanchedAlmond: "blanchedAlmond", Blue: "blue", BlueViolet: "blueViolet", Brown: "brown", BurlyWood: "burlyWood", CadetBlue: "cadetBlue", Chartreuse: "chartreuse", Chocolate: "chocolate", Coral: "coral", CornflowerBlue: "cornflowerBlue", Cornsilk: "cornsilk", Crimson: "crimson", Cyan: "cyan", DkBlue: "dkBlue", DkCyan: "dkCyan", DkGoldenrod: "dkGoldenrod", DkGray: "dkGray", DkGreen: "dkGreen", DkKhaki: "dkKhaki", DkMagenta: "dkMagenta", DkOliveGreen: "dkOliveGreen", DkOrange: "dkOrange", DkOrchid: "dkOrchid", DkRed: "dkRed", DkSalmon: "dkSalmon", DkSeaGreen: "dkSeaGreen", DkSlateBlue: "dkSlateBlue", DkSlateGray: "dkSlateGray", DkTurquoise: "dkTurquoise", DkViolet: "dkViolet", DeepPink: "deepPink", DeepSkyBlue: "deepSkyBlue", DimGray: "dimGray", DodgerBlue: "dodgerBlue", Firebrick: "firebrick", FloralWhite: "floralWhite", ForestGreen: "forestGreen", Fuchsia: "fuchsia", Gainsboro: "gainsboro", GhostWhite: "ghostWhite", Gold: "gold", Goldenrod: "goldenrod", Gray: "gray", Green: "green", GreenYellow: "greenYellow", Honeydew: "honeydew", HotPink: "hotPink", IndianRed: "indianRed", Indigo: "indigo", Ivory: "ivory", Khaki: "khaki", Lavender: "lavender", LavenderBlush: "lavenderBlush", LawnGreen: "lawnGreen", LemonChiffon: "lemonChiffon", LtBlue: "ltBlue", LtCoral: "ltCoral", LtCyan: "ltCyan", LtGoldenrodYellow: "ltGoldenrodYellow", LtGray: "ltGray", LtGreen: "ltGreen", LtPink: "ltPink", LtSalmon: "ltSalmon", LtSeaGreen: "ltSeaGreen", LtSkyBlue: "ltSkyBlue", LtSlateGray: "ltSlateGray", LtSteelBlue: "ltSteelBlue", LtYellow: "ltYellow", Lime: "lime", LimeGreen: "limeGreen", Linen: "linen", Magenta: "magenta", Maroon: "maroon", MedAquamarine: "medAquamarine", MedBlue: "medBlue", MedOrchid: "medOrchid", MedPurple: "medPurple", MedSeaGreen: "medSeaGreen", MedSlateBlue: "medSlateBlue", MedSpringGreen: "medSpringGreen", MedTurquoise: "medTurquoise", MedVioletRed: "medVioletRed", MidnightBlue: "midnightBlue", MintCream: "mintCream", MistyRose: "mistyRose", Moccasin: "moccasin", NavajoWhite: "navajoWhite", Navy: "navy", OldLace: "oldLace", Olive: "olive", OliveDrab: "oliveDrab", Orange: "orange", OrangeRed: "orangeRed", Orchid: "orchid", PaleGoldenrod: "paleGoldenrod", PaleGreen: "paleGreen", PaleTurquoise: "paleTurquoise", PaleVioletRed: "paleVioletRed", PapayaWhip: "papayaWhip", PeachPuff: "peachPuff", Peru: "peru", Pink: "pink", Plum: "plum", PowderBlue: "powderBlue", Purple: "purple", Red: "red", RosyBrown: "rosyBrown", RoyalBlue: "royalBlue", SaddleBrown: "saddleBrown", Salmon: "salmon", SandyBrown: "sandyBrown", SeaGreen: "seaGreen", SeaShell: "seaShell", Sienna: "sienna", Silver: "silver", SkyBlue: "skyBlue", SlateBlue: "slateBlue", SlateGray: "slateGray", Snow: "snow", SpringGreen: "springGreen", SteelBlue: "steelBlue", Tan: "tan", Teal: "teal", Thistle: "thistle", Tomato: "tomato", Turquoise: "turquoise", Violet: "violet", Wheat: "wheat", White: "white", WhiteSmoke: "whiteSmoke", Yellow: "yellow", YellowGreen: "yellowGreen", ButtonFace: "buttonFace", ButtonHighlight: "buttonHighlight", ButtonShadow: "buttonShadow", GradientActiveCaption: "gradientActiveCaption", GradientInactiveCaption: "gradientInactiveCaption", MenuBar: "menuBar", MenuHighlight: "menuHighlight" }, Ps.Scheme = { Bg1: "bg1", Bg2: "bg2", Tx1: "tx1", Tx2: "tx2", Accent1: "accent1", Accent2: "accent2", Accent3: "accent3", Accent4: "accent4", Accent5: "accent5", Accent6: "accent6", Hlink: "hlink", FolHlink: "folHlink" }, Ps.Type = { Scheme: "scheme", Named: "named", Index: "index", HSL: "hsl", RGB: "rgb", LRGB: "lrgb", Hex: "hex" };
4238
+ const zs = [[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]];
4239
+ const Ws = new class {
4232
4240
  constructor() {
4233
4241
  this._lookupByName = /* @__PURE__ */ new Map();
4234
- for (let t2 = 0; t2 < Ps.length; t2++) {
4235
- const e2 = Ps[t2], n2 = e2[0], r2 = (n2 >> 24 & 255) / 255, o2 = n2 >> 16 & 255, s2 = n2 >> 8 & 255, i2 = 255 & n2, a2 = { id: e2[1], name: e2[2], rgbaColor: { r: o2, g: s2, b: i2, a: r2 }, system: e2.length > 3 };
4242
+ for (let t2 = 0; t2 < zs.length; t2++) {
4243
+ const e2 = zs[t2], n2 = e2[0], r2 = (n2 >> 24 & 255) / 255, o2 = n2 >> 16 & 255, s2 = n2 >> 8 & 255, i2 = 255 & n2, a2 = { id: e2[1], name: e2[2], rgbaColor: { r: o2, g: s2, b: i2, a: r2 }, system: e2.length > 3 };
4236
4244
  this._lookupByName.set(a2.name.toLowerCase(), a2);
4237
4245
  }
4238
4246
  }
4239
4247
  valueOfName(t2) {
4240
4248
  return this._lookupByName.get(t2 ? t2.toLowerCase() : "transparent");
4241
4249
  }
4242
- }(), 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();
4243
- for (let t2 = 0; t2 < Ws.length; t2++) Vs.set(Ws[t2].scheme.toLowerCase(), Ws[t2]);
4250
+ }(), 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();
4251
+ for (let t2 = 0; t2 < Hs.length; t2++) Vs.set(Hs[t2].scheme.toLowerCase(), Hs[t2]);
4244
4252
  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) {
4245
4253
  let o2 = $s(((t3) => {
4246
- let e3 = Hs.valueOfName(t3);
4254
+ let e3 = Ws.valueOfName(t3);
4247
4255
  return e3 ? new _r.RGBA(e3.rgbaColor.r, e3.rgbaColor.g, e3.rgbaColor.b, e3.rgbaColor.a) : null;
4248
4256
  })(t2)), s2 = null, i2 = null, a2 = null;
4249
4257
  if (null === o2 && (l2 = t2, Vs.get(l2.toLowerCase()))) {
@@ -4252,7 +4260,7 @@ const $s = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
4252
4260
  }
4253
4261
  var l2;
4254
4262
  if (null === o2) {
4255
- let e3 = t2.match(Mn) || t2.match(Nn);
4263
+ let e3 = t2.match(Mn) || t2.match(Tn);
4256
4264
  if (e3) {
4257
4265
  let t3, n3 = 1;
4258
4266
  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;
@@ -4269,7 +4277,7 @@ const $s = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
4269
4277
  let e3 = t2.match(xn) || t2.match(In);
4270
4278
  if (e3) {
4271
4279
  let t3 = Fn(e3[1], e3[2], e3[3]);
4272
- t3 = kn(t3, 100), t3 = Pn(t3), t3 = Dn(t3), o2 = { srgb: t3, alpha: e3[4] ? Bn(parseFloat(e3[4])) : 1 }, a2 = Ls.Type.LRGB;
4280
+ t3 = kn(t3, 100), t3 = zn(t3), t3 = Dn(t3), o2 = { srgb: t3, alpha: e3[4] ? Bn(parseFloat(e3[4])) : 1 }, a2 = Ls.Type.LRGB;
4273
4281
  }
4274
4282
  }
4275
4283
  if (null === o2) {
@@ -4280,7 +4288,7 @@ const $s = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
4280
4288
  }
4281
4289
  }
4282
4290
  if (null === o2) {
4283
- let e3 = t2.match(Tn);
4291
+ let e3 = t2.match(Nn);
4284
4292
  if (e3) {
4285
4293
  const t3 = parseInt(e3[1]);
4286
4294
  let r3 = n2?.(t3) ?? br(t3);
@@ -4338,10 +4346,10 @@ class Ys {
4338
4346
  const s3 = (t4) => Math.round(Math.max(0, Math.min(255, t4))), i2 = t3[0], a2 = t3[1], l2 = t3[2];
4339
4347
  return [s3(n3[0] * i2 + n3[1] * a2 + n3[2] * l2), s3(n3[3] * i2 + n3[4] * a2 + n3[5] * l2), s3(n3[6] * i2 + n3[7] * a2 + n3[8] * l2)];
4340
4348
  })(n2, 180), n2 = hr(n2, false);
4341
- let r2 = zn(n2);
4349
+ let r2 = Pn(n2);
4342
4350
  const o2 = jn(r2);
4343
- 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);
4344
- const s2 = jn(zn(n2));
4351
+ if (o2[Jn] = 0.95 * o2[Jn], r2 = Vn(o2), n2 = zn(r2), n2 = On(n2), n2 = Dn(n2, false), t2) return new _r.RGBA(n2[0], n2[1], n2[2], e2.alpha);
4352
+ const s2 = jn(Pn(n2));
4345
4353
  return new _r.HSLA(s2[0], s2[1], s2[2], e2.alpha);
4346
4354
  }
4347
4355
  _resolve() {
@@ -4476,7 +4484,7 @@ for (let t2 = 0; t2 < ni.length; t2++) {
4476
4484
  ((t2) => {
4477
4485
  t2.isEqualStrokes = (t3, e2) => !(t3 && !e2 || e2 && !t3) && (t3 === e2 || t3.getStyle() === e2.getStyle() && t3.getColor().isEqual(e2.getColor())), t2.oppositeEdge = (e2) => e2 === t2.Edge.Left ? t2.Edge.Right : e2 === t2.Edge.Right ? t2.Edge.Left : e2 === t2.Edge.Top ? t2.Edge.Bottom : e2 === t2.Edge.Bottom ? t2.Edge.Top : e2, t2.BuiltInDefinitionsArray = ti, t2.BuiltInDefinitions = ei;
4478
4486
  })(Qs || (Qs = {}));
4479
- const ri = { Text: "text", Repeat: "repeat", Spacing: "spacing" }, oi = (t2) => !(!t2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/) && !t2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)), si = Object.freeze({ formatValue: Nr, isFractionFormat: oi, adjustDecimalPlaces: (t2, e2) => {
4487
+ 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) => {
4480
4488
  if (!t2) return "";
4481
4489
  const n2 = (t3, e3) => {
4482
4490
  let n3 = t3 || "";
@@ -4561,13 +4569,13 @@ const yi = (t2, e2, n2, r2, o2) => {
4561
4569
  };
4562
4570
  var Ci, bi;
4563
4571
  (Ci || (Ci = {})).buildPalette = Ei, (bi || (bi = {})).BuiltInFilterType = { BuiltIn: "builtIn", All: "all", Custom: "custom" };
4564
- const vi = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E97132", "196B24", "0F9ED5", "A02B93", "4EA72E", "467886", "96607D"], ["Office 2013-2022", "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"], ["Office 2007-2010", "windowText", "window", "1F497D", "EEECE1", "4F81BD", "C0504D", "9BBB59", "8064A2", "4BACC6", "F79646", "0000FF", "800080"], ["Grayscale", "windowText", "window", "000000", "F8F8F8", "DDDDDD", "B2B2B2", "969696", "808080", "5F5F5F", "4D4D4D", "5F5F5F", "919191"], ["Atlas", "windowText", "window", "454545", "E0E0E0", "F81B02", "FC7715", "AFBF41", "50C49F", "3B95C4", "B560D4", "FC5A1A", "B49E74"], ["Banded", "2C2C2C", "FFFFFF", "099BDD", "F2F2F2", "FFC000", "A5D028", "08CC78", "F24099", "828288", "F56617", "005DBA", "6C606A"], ["Basis", "000000", "FFFFFF", "565349", "DDDDDD", "A6B727", "DF5327", "FE9E00", "418AB3", "D7D447", "818183", "F59E00", "B2B2B2"], ["Berlin", "windowText", "window", "9D360E", "E7E6E6", "F09415", "C1B56B", "4BAF73", "5AA6C0", "D17DF9", "FA7E5C", "FFAE3E", "FCC77E"], ["Celestial", "windowText", "window", "18276C", "EBEBEB", "AC3EC1", "477BD1", "46B298", "90BA4C", "DD9D31", "E25247", "C573D2", "CCAEE8"], ["Circuit", "windowText", "window", "134770", "82FFFF", "9ACD4C", "FAA93A", "D35940", "B258D3", "63A0CC", "8AC4A7", "B8FA56", "7AF8CC"], ["Damask", "windowText", "window", "2A5B7F", "ABDAFC", "9EC544", "50BEA3", "4A9CCC", "9A66CA", "C54F71", "DE9C3C", "6BA9DA", "A0BCD3"], ["Depth", "windowText", "window", "455F51", "94D7E4", "41AEBD", "97E9D5", "A2CF49", "608F3D", "F4DE3A", "FCB11C", "FBCA98", "D3B86D"], ["Dividend", "windowText", "window", "3D3D3D", "EBEBEB", "4D1434", "903163", "B2324B", "969FA7", "66B1CE", "40619D", "828282", "A5A5A5"], ["Droplet", "windowText", "window", "355071", "AABED7", "2FA3EE", "4BCAAD", "86C157", "D99C3F", "CE6633", "A35DD1", "56BCFE", "97C5E3"], ["Facet", "windowText", "window", "2C3C43", "EBEBEB", "90C226", "54A021", "E6B91E", "E76618", "C42F1A", "918655", "99CA3C", "B9D181"], ["Frame", "000000", "FFFFFF", "545454", "BFBFBF", "40BAD2", "FAB900", "90BB23", "EE7008", "1AB39F", "D5393D", "90BB23", "EE7008"], ["Gallery", "windowText", "window", "454545", "DFDBD5", "B71E42", "DE478E", "BC72F0", "795FAF", "586EA6", "6892A0", "FA2B5C", "BC658E"], ["Integral", "windowText", "window", "335B74", "DFE3E5", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "6B9F25", "B26B02"], ["Ion Boardroom", "windowText", "window", "3B3059", "EBEBEB", "B31166", "E33D6F", "E45F3C", "E9943A", "9B6BF2", "D53DD0", "8F8F8F", "A5A5A5"], ["Ion", "windowText", "window", "1E5155", "EBEBEB", "B01513", "EA6312", "E6B729", "6AAC90", "54849A", "9E5E9B", "58C1BA", "9DFFCB"], ["Madison", "windowText", "window", "1F2D29", "C5FAEB", "A1D68B", "5EC795", "4DADCF", "CDB756", "E29C36", "8EC0C1", "6D9D9B", "6D8583"], ["Main Event", "windowText", "window", "424242", "C8C8C8", "B80E0F", "A6987D", "7F9A71", "64969F", "9B75B2", "80737A", "F21213", "B6A394"], ["Mesh", "windowText", "window", "363D46", "EBEBEB", "6F6F6F", "BFBFA5", "DCD084", "E7BF5F", "E9A039", "CF7133", "F28943", "F1B76C"], ["Metropolitan", "windowText", "window", "162F33", "EAF0E0", "50B4C8", "A8B97F", "9B9256", "657689", "7A855D", "84AC9D", "2370CD", "877589"], ["Organic", "windowText", "window", "212121", "DADADA", "83992A", "3C9770", "44709D", "A23C33", "D97828", "DEB340", "A8BF4D", "B4CA80"], ["Parallax", "windowText", "window", "212121", "CDD0D1", "30ACEC", "80C34F", "E29D3E", "D64A3B", "D64787", "A666E1", "3085ED", "82B6F4"], ["Parcel", "000000", "FFFFFF", "4A5356", "E8E3CE", "F6A21D", "9BAFB5", "C96731", "9CA383", "87795D", "A0988C", "00B0F0", "738F97"], ["Quotable", "windowText", "window", "212121", "636363", "00C6BB", "6FEBA0", "B6DF5E", "EFB251", "EF755F", "ED515C", "8F8F8F", "A5A5A5"], ["Retrospect", "000000", "window", "637052", "CCDDEA", "E48312", "BD582C", "865640", "9B8357", "C2BC80", "94A088", "2998E3", "8C8C8C"], ["Savon", "windowText", "window", "1485A4", "E3DED1", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "F49100", "739D9B"], ["Slate", "windowText", "window", "212123", "DADADA", "BC451B", "D3BA68", "BB8640", "AD9277", "A55A43", "AD9D7B", "E98052", "F4B69B"], ["Slice", "windowText", "window", "146194", "76DBF4", "052F61", "A50E82", "14967C", "6A9E1F", "E87D37", "C62324", "0D2E46", "356A95"], ["Vapor Trail", "windowText", "window", "454545", "DADADA", "DF2E28", "FE801A", "E9BF35", "81BB42", "32C7A9", "4A9BDC", "F0532B", "F38B53"], ["View", "000000", "FFFFFF", "46464A", "D6D3CC", "6F6F74", "92A9B9", "A7B789", "B9A489", "8D6374", "9B7362", "67AABF", "ABAFA5"], ["Wisp", "windowText", "window", "766F54", "E3EACF", "A53010", "DE7E18", "9F8351", "728653", "92AA4C", "6AAC91", "FB4A18", "FB9318"], ["Wood Type", "windowText", "window", "696464", "E9E5DC", "D34817", "9B2D1F", "A28E6A", "956251", "918485", "855D5D", "CC9900", "96A9A9"]], xi = [["Office", "Calibri Light", "Calibri"], ["Office 2013-2022", "Calibri Light", "Calibri"], ["Office 2007-2010", "Calibri Light", "Calibri"], ["Grayscale", "Calibri Light", "Calibri"], ["Atlas", "Calibri Light", "Rockwell"], ["Banded", "Corbel", "Corbel"], ["Basis", "Corbel", "Corbel"], ["Berlin", "Trebuchet MS", "Trebuchet MS"], ["Celestial", "Calibri Light", "Calibri"], ["Circuit", "Tw Cen MT", "Tw Cen MT"], ["Damask", "Bookman Old Style", "Rockwell"], ["Depth", "Corbel", "Corbel"], ["Madison", "Arial", "Arial"], ["Main Event", "Impact", "Impact"], ["Mesh", "Century Gothic", "Century Gothic"], ["Metropolitan", "Calibri Light", "Calibri Light"], ["Organic", "Garamond", "Garamond"], ["Parallax", "Corbel", "Corbel"], ["Parcel", "Gill Sans MT", "Gill Sans MT"], ["Quotable", "Century Gothic", "Century Gothic"], ["Retrospect", "Calibri Light", "Calibri"], ["Savon", "Century Gothic", "Century Gothic"], ["Slate", "Calisto MT", "Calisto MT"], ["Slice", "Century Gothic", "Century Gothic"], ["Vapor Trail", "Century Gothic", "Century Gothic"], ["View", "Century Schoolbook", "Century Schoolbook"], ["Wisp", "Century Gothic", "Century Gothic"], ["Wood Type", "Rockwell Condensed", "Rockwell"]], Ii = [["Office", "Office", "Office"], ["2013-2022", "Office 2013-2022", "Office 2013-2022"], ["Atlas", "Atlas", "Atlas"], ["Banded", "Banded", "Banded"], ["Basis", "Basis", "Basis"], ["Berlin", "Berlin", "Berlin"], ["Celestial", "Celestial", "Celestial"], ["Circuit", "Circuit", "Circuit"], ["Damask", "Damask", "Damask"], ["Depth", "Depth", "Depth"], ["Dividend", "Dividend", "Dividend"], ["Droplet", "Droplet", "Droplet"], ["Facet", "Facet", "Facet"], ["Frame", "Frame", "Frame"], ["Gallery", "Gallery", "Gallery"], ["Grayscale", "Grayscale", "Grayscale"], ["Integral", "Integral", "Integral"], ["Ion Boardroom", "Ion Boardroom", "Ion Boardroom"], ["Ion", "Ion", "Ion"], ["Madison", "Madison", "Madison"], ["Main Event", "Main Event", "Main Event"], ["Mesh", "Mesh", "Mesh"], ["Metropolitan", "Metropolitan", "Metropolitan"], ["Organic", "Organic", "Organic"], ["Parallax", "Parallax", "Parallax"], ["Parcel", "Parcel", "Parcel"], ["Quotable", "Quotable", "Quotable"], ["Retrospect", "Retrospect", "Retrospect"], ["Savon", "Savon", "Savon"], ["Slate", "Slate", "Slate"], ["Slice", "Slice", "Slice"], ["Vapor Trail", "Vapor Trail", "Vapor Trail"], ["View", "View", "View"], ["Wisp", "Wisp", "Wisp"], ["Wood Type", "Wood Type", "Wood Type"], ["Office 2007-2010", "Office 2007-2010", "Office 2007-2010"]], Ri = "Themes is readonly. To make modifications create a new DocsThemes instance.", Ai = { [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) => {
4572
+ 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) => {
4565
4573
  const e2 = {};
4566
4574
  for (let n2 = 0; n2 < t2.length; n2++) {
4567
4575
  const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
4568
4576
  e2[o2] = s2;
4569
- for (let t3 = 0; t3 < Ti.length; t3++) {
4570
- const e3 = Ti[t3], n3 = r2[t3 + 1];
4577
+ for (let t3 = 0; t3 < Ni.length; t3++) {
4578
+ const e3 = Ni[t3], n3 = r2[t3 + 1];
4571
4579
  if (!n3) continue;
4572
4580
  const o3 = Ys.parse(n3);
4573
4581
  n3 && (s2[e3] = o3.toString());
@@ -4578,16 +4586,16 @@ const vi = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E9
4578
4586
  const e2 = {};
4579
4587
  for (let n2 = 0; n2 < t2.length; n2++) {
4580
4588
  const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
4581
- e2[o2] = s2, s2.majorFont = r2[1] ?? Ni[1], s2.minorFont = r2[2] ?? Ni[2];
4589
+ e2[o2] = s2, s2.majorFont = r2[1] ?? Ti[1], s2.minorFont = r2[2] ?? Ti[2];
4582
4590
  }
4583
4591
  return e2;
4584
- }, Oi = Fi([[Mi, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), Di = ki([Ni]), Bi = Oi[Mi], Li = Di[Mi];
4585
- let zi = null;
4586
- const Pi = new class {
4592
+ }, Oi = Fi([[Mi, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), Di = ki([Ti]), Bi = Oi[Mi], Li = Di[Mi];
4593
+ let Pi = null;
4594
+ const zi = new class {
4587
4595
  constructor() {
4588
4596
  this._colors = {};
4589
- for (let t2 = 0; t2 < Ti.length; t2++) {
4590
- const e2 = Ti[t2], n2 = Ys.parse(Bi[e2]);
4597
+ for (let t2 = 0; t2 < Ni.length; t2++) {
4598
+ const e2 = Ni[t2], n2 = Ys.parse(Bi[e2]);
4591
4599
  this._colors[e2] = n2;
4592
4600
  }
4593
4601
  }
@@ -4634,8 +4642,8 @@ const Pi = new class {
4634
4642
  return null;
4635
4643
  }
4636
4644
  }();
4637
- class Hi {
4638
- constructor(t2, e2 = Pi) {
4645
+ class Wi {
4646
+ constructor(t2, e2 = zi) {
4639
4647
  this._delegate = e2, this._fromJSON(t2);
4640
4648
  }
4641
4649
  _fromJSON(t2) {
@@ -4693,11 +4701,11 @@ class Hi {
4693
4701
  return e2 && (t2.name = e2), t2;
4694
4702
  }
4695
4703
  }
4696
- const Wi = new class {
4704
+ const Hi = new class {
4697
4705
  constructor() {
4698
4706
  this._colors = {};
4699
- for (let t2 = 0; t2 < Ti.length; t2++) {
4700
- const e2 = Ti[t2], n2 = Ys.parse(Bi[e2]);
4707
+ for (let t2 = 0; t2 < Ni.length; t2++) {
4708
+ const e2 = Ni[t2], n2 = Ys.parse(Bi[e2]);
4701
4709
  this._colors[e2] = n2;
4702
4710
  }
4703
4711
  }
@@ -4718,7 +4726,7 @@ const Wi = new class {
4718
4726
  }
4719
4727
  }();
4720
4728
  class Vi {
4721
- constructor(t2, e2 = Wi) {
4729
+ constructor(t2, e2 = Hi) {
4722
4730
  this._delegate = e2, this._fromJSON(t2);
4723
4731
  }
4724
4732
  _fromJSON(t2) {
@@ -4755,11 +4763,11 @@ class Vi {
4755
4763
  class $i {
4756
4764
  constructor(t2, e2 = null, n2 = null) {
4757
4765
  if (this._cacheColors = /* @__PURE__ */ new Map(), !e2 && t2?.name) {
4758
- const n3 = zi ? zi.get(t2.name.toLowerCase()) : null;
4766
+ const n3 = Pi ? Pi.get(t2.name.toLowerCase()) : null;
4759
4767
  n3 && (e2 = n3);
4760
4768
  }
4761
- if (!e2 && zi && (e2 = zi.get(Mi.toLowerCase())), this._name = t2?.name ?? e2?.getName(), !this._name) throw new Error("Theme must have a name.");
4762
- this._builtInID = n2, this._delegate = e2, this._colors = new Hi(t2?.colors, this._delegate?.getColorScheme()), this._fonts = new Vi(t2?.fonts, this._delegate?.getFontScheme());
4769
+ if (!e2 && Pi && (e2 = Pi.get(Mi.toLowerCase())), this._name = t2?.name ?? e2?.getName(), !this._name) throw new Error("Theme must have a name.");
4770
+ this._builtInID = n2, this._delegate = e2, this._colors = new Wi(t2?.colors, this._delegate?.getColorScheme()), this._fonts = new Vi(t2?.fonts, this._delegate?.getFontScheme());
4763
4771
  const r2 = Ai, o2 = {}, s2 = Object.keys(r2);
4764
4772
  for (let t3 = 0; t3 < s2.length; t3++) {
4765
4773
  const e3 = s2[t3];
@@ -4807,7 +4815,7 @@ class $i {
4807
4815
  }
4808
4816
  }
4809
4817
  const ji = () => {
4810
- if (zi) return zi;
4818
+ if (Pi) return Pi;
4811
4819
  const t2 = ((t3, e3, n2) => {
4812
4820
  const r2 = [];
4813
4821
  for (let o2 = 0; o2 < t3.length; o2++) {
@@ -4820,7 +4828,7 @@ const ji = () => {
4820
4828
  const r2 = new $i(t2[n2]), o2 = new $i(null, r2, n2 + 1);
4821
4829
  e2.set(o2.getName().toLowerCase(), o2);
4822
4830
  }
4823
- return zi = e2, e2;
4831
+ return Pi = e2, e2;
4824
4832
  };
4825
4833
  class Gi {
4826
4834
  constructor(t2 = null, e2 = false) {
@@ -4838,18 +4846,18 @@ class Gi {
4838
4846
  getByName(t2) {
4839
4847
  t2 = t2.toLowerCase();
4840
4848
  const e2 = this._customMap.get(t2);
4841
- return e2 || (zi.get(t2) ?? null);
4849
+ return e2 || (Pi.get(t2) ?? null);
4842
4850
  }
4843
4851
  getItems(t2) {
4844
4852
  const e2 = t2?.type ?? bi.BuiltInFilterType.All, n2 = /* @__PURE__ */ new Map();
4845
- e2 !== bi.BuiltInFilterType.BuiltIn && e2 !== bi.BuiltInFilterType.All || zi.forEach((t3, e3) => n2.set(e3, t3)), e2 !== bi.BuiltInFilterType.Custom && e2 !== bi.BuiltInFilterType.All || this._customMap.forEach((t3, e3) => n2.set(e3, t3)), t2?.selected && n2.set(t2.selected.getName().toLowerCase(), t2.selected);
4853
+ e2 !== bi.BuiltInFilterType.BuiltIn && e2 !== bi.BuiltInFilterType.All || Pi.forEach((t3, e3) => n2.set(e3, t3)), e2 !== bi.BuiltInFilterType.Custom && e2 !== bi.BuiltInFilterType.All || this._customMap.forEach((t3, e3) => n2.set(e3, t3)), t2?.selected && n2.set(t2.selected.getName().toLowerCase(), t2.selected);
4846
4854
  return ((t3) => {
4847
4855
  const e3 = [...t3];
4848
4856
  return e3.sort((t4, e4) => o.isDefined(t4.builtInID) && !o.isDefined(e4.builtInID) ? 1 : !o.isDefined(t4.builtInID) && o.isDefined(e4.builtInID) ? -1 : o.isDefined(t4.builtInID) && o.isDefined(e4.builtInID) ? t4.builtInID - e4.builtInID : t4.getName().localeCompare(e4.getName())), e3;
4849
4857
  })(Array.from(n2.values()));
4850
4858
  }
4851
4859
  getCount() {
4852
- return this._customMap.size + zi.size;
4860
+ return this._customMap.size + Pi.size;
4853
4861
  }
4854
4862
  setCustomTheme(t2) {
4855
4863
  if (this._isReadOnly) throw new Error(Ri);
@@ -5666,8 +5674,8 @@ class _a {
5666
5674
  if (void 0 === e2 && (e2 = o2 + 1), 0 === this._count || t2 <= r2 && e2 - 1 >= o2) return this.clone();
5667
5675
  const s2 = Math.max(r2, t2), i2 = Math.min(o2, e2 - 1), a2 = i2 - s2, l2 = [];
5668
5676
  let c2 = 0;
5669
- Na.bounds.min = s2, Na.bounds.max = i2;
5670
- const h2 = this.runs(Na);
5677
+ Ta.bounds.min = s2, Ta.bounds.max = i2;
5678
+ const h2 = this.runs(Ta);
5671
5679
  let d2 = h2.next();
5672
5680
  for (; !d2.done; ) {
5673
5681
  const t3 = d2.value;
@@ -5834,8 +5842,8 @@ const Sa = (t2) => "boolean" != typeof t2 ? (t2 && !t2.value && (t2.value = [-1,
5834
5842
  }
5835
5843
  if (e2) for (let t3 = i2; t3 < n2; t3++) o2.push(void 0);
5836
5844
  return o2;
5837
- }, ba = Object.seal({ done: false, value: [{ min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, null] }), va = Object.seal({ done: false, value: [-1, null] }), xa = { reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: va }, Ia = Object.freeze({ reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: va }), Ra = { min: 0, max: Number.MAX_SAFE_INTEGER }, Aa = { min: 0, max: Number.MAX_SAFE_INTEGER }, Ma = [null, null], Na = { bounds: { min: 0, max: 0 }, overflowRun: true };
5838
- class Ta {
5845
+ }, 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 };
5846
+ class Na {
5839
5847
  constructor(t2 = 9) {
5840
5848
  this._maxEntries = Math.max(4, t2), this._minEntries = Math.max(2, Math.ceil(0.4 * this._maxEntries)), this.clear();
5841
5849
  }
@@ -5956,7 +5964,7 @@ class Ta {
5956
5964
  for (; r2.push(e2), !e2.leaf && r2.length - 1 !== n2; ) {
5957
5965
  let n3, r3 = 1 / 0, o2 = 1 / 0;
5958
5966
  for (let s2 = 0; s2 < e2.children.length; s2++) {
5959
- const i2 = e2.children[s2], a2 = za(i2), l2 = Ha(t2, i2) - a2;
5967
+ const i2 = e2.children[s2], a2 = Pa(i2), l2 = Wa(t2, i2) - a2;
5960
5968
  l2 < o2 ? (o2 = l2, r3 = a2 < r3 ? a2 : r3, n3 = i2) : l2 === o2 && a2 < r3 && (r3 = a2, n3 = i2);
5961
5969
  }
5962
5970
  e2 = n3 || e2.children[0];
@@ -5980,7 +5988,7 @@ class Ta {
5980
5988
  _chooseSplitIndex(t2, e2, n2) {
5981
5989
  let r2 = -1, o2 = 1 / 0, s2 = 1 / 0;
5982
5990
  for (let i2 = e2; i2 <= n2 - e2; i2++) {
5983
- const e3 = Oa(t2, 0, i2, this.toBBox), a2 = Oa(t2, i2, n2, this.toBBox), l2 = Wa(e3, a2), c2 = za(e3) + za(a2);
5991
+ const e3 = Oa(t2, 0, i2, this.toBBox), a2 = Oa(t2, i2, n2, this.toBBox), l2 = Ha(e3, a2), c2 = Pa(e3) + Pa(a2);
5984
5992
  l2 < o2 ? (o2 = l2, r2 = i2, s2 = c2 < s2 ? c2 : s2) : l2 === o2 && c2 < s2 && (s2 = c2, r2 = i2);
5985
5993
  }
5986
5994
  return r2 || n2 - e2;
@@ -5992,14 +6000,14 @@ class Ta {
5992
6000
  _allDistMargin(t2, e2, n2, r2) {
5993
6001
  t2.children.sort(r2);
5994
6002
  const o2 = this.toBBox, s2 = Oa(t2, 0, e2, o2), i2 = Oa(t2, n2 - e2, n2, o2);
5995
- let a2 = Pa(s2) + Pa(i2);
6003
+ let a2 = za(s2) + za(i2);
5996
6004
  for (let r3 = e2; r3 < n2 - e2; r3++) {
5997
6005
  const e3 = t2.children[r3];
5998
- Da(s2, t2.leaf ? o2(e3) : e3), a2 += Pa(s2);
6006
+ Da(s2, t2.leaf ? o2(e3) : e3), a2 += za(s2);
5999
6007
  }
6000
6008
  for (let r3 = n2 - e2 - 1; r3 >= e2; r3--) {
6001
6009
  const e3 = t2.children[r3];
6002
- Da(i2, t2.leaf ? o2(e3) : e3), a2 += Pa(i2);
6010
+ Da(i2, t2.leaf ? o2(e3) : e3), a2 += za(i2);
6003
6011
  }
6004
6012
  return a2;
6005
6013
  }
@@ -6035,16 +6043,16 @@ function Ba(t2, e2) {
6035
6043
  function La(t2, e2) {
6036
6044
  return t2.minY - e2.minY;
6037
6045
  }
6038
- function za(t2) {
6046
+ function Pa(t2) {
6039
6047
  return (t2.maxX - t2.minX) * (t2.maxY - t2.minY);
6040
6048
  }
6041
- function Pa(t2) {
6049
+ function za(t2) {
6042
6050
  return t2.maxX - t2.minX + (t2.maxY - t2.minY);
6043
6051
  }
6044
- function Ha(t2, e2) {
6052
+ function Wa(t2, e2) {
6045
6053
  return (Math.max(e2.maxX, t2.maxX) - Math.min(e2.minX, t2.minX)) * (Math.max(e2.maxY, t2.maxY) - Math.min(e2.minY, t2.minY));
6046
6054
  }
6047
- function Wa(t2, e2) {
6055
+ function Ha(t2, e2) {
6048
6056
  const n2 = Math.max(t2.minX, e2.minX), r2 = Math.max(t2.minY, e2.minY), o2 = Math.min(t2.maxX, e2.maxX), s2 = Math.min(t2.maxY, e2.maxY);
6049
6057
  return Math.max(0, o2 - n2) * Math.max(0, s2 - r2);
6050
6058
  }
@@ -6084,7 +6092,7 @@ function Ja(t2, e2, n2) {
6084
6092
  const r2 = t2[e2];
6085
6093
  t2[e2] = t2[n2], t2[n2] = r2;
6086
6094
  }
6087
- class qa extends Ta {
6095
+ class qa extends Na {
6088
6096
  toBBox(t2) {
6089
6097
  return { minX: 10 * t2.colStart, minY: 10 * t2.rowStart, maxX: 10 * t2.colEnd + 5, maxY: 10 * t2.rowEnd + 5 };
6090
6098
  }
@@ -6154,7 +6162,7 @@ class Ka {
6154
6162
  let _2 = null;
6155
6163
  const S2 = this.getBoundingCoords();
6156
6164
  if (!S2) return this;
6157
- const w2 = n2 === h.Up || n2 === h.Left ? h.Right : h.Left, y2 = /* @__PURE__ */ new Map(), E2 = /* @__PURE__ */ new Map(), C2 = this._options?.updateEntryOptions, b2 = C2?.isMergeOnShift ?? false, v2 = C2?.isSplitOnExpand ?? false, x2 = C2?.isTrailingEdge ?? false, I2 = n2 === h.Left || n2 === h.Up, R2 = C2?.getSplit ?? rl, A2 = C2?.getShifted, M2 = C2?.onShifted, N2 = C2?.onRemoved, T2 = C2?.onMerged, F2 = C2?.onUpdated, k2 = M2 ? [] : null, O2 = N2 ? [] : null, D2 = F2 ? [] : null;
6165
+ 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;
6158
6166
  this.visitRanges({ colStart: e2.colStart - (a2 ? 1 : 0), rowStart: e2.rowStart - (a2 ? 0 : 1), colEnd: a2 ? S2.colEnd : e2.colEnd, rowEnd: a2 ? e2.rowEnd : S2.rowEnd }, (t3) => {
6159
6167
  if ((a2 ? t3.colEnd < e2.colStart : t3.rowEnd < e2.rowStart) && !x2) return;
6160
6168
  const r3 = sl(e2, t3, a2 ? g.Column : g.Row), o2 = t3.group;
@@ -6188,10 +6196,10 @@ class Ka {
6188
6196
  let t3 = true;
6189
6197
  if (m2 > 0 && (t3 = a2 ? e2.rowStart > S2.rowStart || e2.rowEnd < S2.rowEnd : e2.colStart > S2.colStart || e2.colEnd < S2.colEnd), t3) {
6190
6198
  const t4 = Xa(_2, c.unionRanges(S2, _2), a2 ? 0 : 1, a2 ? 1 : 0);
6191
- T2 && (L2 = B2._mergeNodes(t4, false));
6199
+ N2 && (L2 = B2._mergeNodes(t4, false));
6192
6200
  }
6193
6201
  }
6194
- 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;
6202
+ 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;
6195
6203
  }
6196
6204
  insertNonOverlapping(t2, e2) {
6197
6205
  const n2 = e2?.onIntersect ?? ((t3, e3) => ({ ...t3, value: e3.value })), r2 = this.search(t2), s2 = /* @__PURE__ */ new Map(), i2 = /* @__PURE__ */ new Map(), a2 = this._options?.updateEntryOptions, h2 = a2?.onUpdated, d2 = a2?.onRemoved, u2 = a2?.onMerged, g2 = a2?.getSplit, m2 = a2?.getIntersect, f2 = a2?.getUpdate;
@@ -6933,8 +6941,8 @@ class vl {
6933
6941
  p2 = t2.reverse ?? false, h2 = /* @__PURE__ */ ((t3) => "boolean" != typeof t3 ? t3 : true === t3 ? { done: false, value: [{ colIndex: -1, rowIndex: -1 }, null] } : void 0)(t2.reuseResult), a2 = e2 ? t2.processColumnSkip : t2.processRowSkip, a2 && (p2 ? u2 = a2(u2, p2) : d2 = a2(d2, p2)), c2 = e2 ? t2.processRowSkip : t2.processColumnSkip, c2 && (p2 ? f2 = c2(u2, p2) : g2 = c2(g2, p2));
6934
6942
  }
6935
6943
  if (!s2) return ia;
6936
- r2 || d2 !== u2 || (r2 = true), Nl.bounds.min = d2, Nl.bounds.max = u2, Nl.reverse = p2, Nl.processSkip = a2, Nl.reuseResult = Al;
6937
- let _2 = this._major.entries(Nl), S2 = Tl();
6944
+ r2 || d2 !== u2 || (r2 = true), Tl.bounds.min = d2, Tl.bounds.max = u2, Tl.reverse = p2, Tl.processSkip = a2, Tl.reuseResult = Al;
6945
+ let _2 = this._major.entries(Tl), S2 = Nl();
6938
6946
  const w2 = (t3) => {
6939
6947
  if (!t3.nextActive) return;
6940
6948
  const e3 = (e4) => {
@@ -6974,7 +6982,7 @@ class vl {
6974
6982
  for (; S2; ) {
6975
6983
  let a3 = null;
6976
6984
  if (s3) {
6977
- let e4 = n3 ? Tl() : S2;
6985
+ let e4 = n3 ? Nl() : S2;
6978
6986
  if (a3 = y2(e4), a3) {
6979
6987
  n3 ? (e4.prevMajorCursor = S2, S2.nextMajorCursor = e4, S2 = e4) : n3 = S2, o3 = p2 ? Math.max(o3, S2.nextMinorIndex) : Math.min(o3, S2.nextMinorIndex);
6980
6988
  const r4 = S2.minorIndex;
@@ -7072,8 +7080,8 @@ class vl {
7072
7080
  const e3 = t2[_2], n3 = e3[0], r3 = e3[1], o3 = new _a(p2);
7073
7081
  m2(o3, r3, n3);
7074
7082
  }, w2 = this._major;
7075
- Nl.bounds.min = e2, Nl.bounds.max = n2, Nl.reverse = false, Nl.processSkip = null, Nl.reuseResult = Al;
7076
- const y2 = w2.entries(Nl);
7083
+ Tl.bounds.min = e2, Tl.bounds.max = n2, Tl.reverse = false, Tl.processSkip = null, Tl.reuseResult = Al;
7084
+ const y2 = w2.entries(Tl);
7077
7085
  let E2 = y2.next();
7078
7086
  for (; !E2.done; ) {
7079
7087
  const e3 = E2.value, n3 = e3[0];
@@ -7119,8 +7127,8 @@ class vl {
7119
7127
  let f2 = false, p2 = 0;
7120
7128
  const _2 = this._major;
7121
7129
  if (l2 <= g2 && h2 >= m2) {
7122
- Nl.bounds.min = i2, Nl.bounds.max = a2;
7123
- const t3 = _2.entries(Nl);
7130
+ Tl.bounds.min = i2, Tl.bounds.max = a2;
7131
+ const t3 = _2.entries(Tl);
7124
7132
  let e3 = t3.next();
7125
7133
  for (; !e3.done; ) {
7126
7134
  p2 -= e3.value[1].getCount(), e3 = t3.next();
@@ -7128,8 +7136,8 @@ class vl {
7128
7136
  return _2.delete(i2, a2 - i2 + 1), this._count += p2, this._dataCoords = null, 0 !== p2;
7129
7137
  }
7130
7138
  const S2 = [], w2 = this._isShared, y2 = [];
7131
- Nl.bounds.min = i2, Nl.bounds.max = a2, Ml.reverse = false, Ml.processSkip = null, Ml.reuseResult = Al;
7132
- const E2 = _2.entries(Nl);
7139
+ Tl.bounds.min = i2, Tl.bounds.max = a2, Ml.reverse = false, Ml.processSkip = null, Ml.reuseResult = Al;
7140
+ const E2 = _2.entries(Tl);
7133
7141
  let C2 = E2.next();
7134
7142
  for (; !C2.done; ) {
7135
7143
  const t3 = C2.value, e3 = t3[0];
@@ -7172,10 +7180,10 @@ class vl {
7172
7180
  if (!o2 && (C2 *= -1, c.isRangeWithinRange(f2, t2))) return this.clear(), true;
7173
7181
  let b2 = 0;
7174
7182
  const v2 = this._major, x2 = [];
7175
- 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) {
7183
+ 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) {
7176
7184
  if (!o2) {
7177
- Nl.bounds.max = l2;
7178
- const t4 = v2.entries(Nl);
7185
+ Tl.bounds.max = l2;
7186
+ const t4 = v2.entries(Tl);
7179
7187
  let e3 = t4.next();
7180
7188
  for (; !e3.done; ) {
7181
7189
  b2 -= e3.value[1].getCount(), e3 = t4.next();
@@ -7187,9 +7195,9 @@ class vl {
7187
7195
  }
7188
7196
  let I2 = n2 ? f2.colStart : f2.rowStart, R2 = n2 ? f2.colEnd : f2.rowEnd, A2 = n2 ? f2.rowStart : f2.colStart, M2 = n2 ? f2.rowEnd : f2.colEnd;
7189
7197
  o2 || (A2 = Number.MAX_SAFE_INTEGER, M2 = Number.MIN_SAFE_INTEGER);
7190
- let N2 = Number.MAX_SAFE_INTEGER;
7191
- r2 && (N2 = s2 ? r2.colEnd : r2.rowEnd);
7192
- const T2 = /* @__PURE__ */ new Set(), F2 = E2 ? /* @__PURE__ */ new Map() : null, k2 = [], O2 = v2.entries(Nl), D2 = { bounds: { min: g2, max: m2 } };
7198
+ let T2 = Number.MAX_SAFE_INTEGER;
7199
+ r2 && (T2 = s2 ? r2.colEnd : r2.rowEnd);
7200
+ const N2 = /* @__PURE__ */ new Set(), F2 = E2 ? /* @__PURE__ */ new Map() : null, k2 = [], O2 = v2.entries(Tl), D2 = { bounds: { min: g2, max: m2 } };
7193
7201
  let B2 = O2.next();
7194
7202
  for (; !B2.done; ) {
7195
7203
  const t3 = B2.value, e3 = t3[0], n3 = t3[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
@@ -7201,24 +7209,24 @@ class vl {
7201
7209
  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 });
7202
7210
  }), n3.delete(g2, m2 - g2 + 1)) : n3.shift(g2, C2);
7203
7211
  const r4 = n3.getCount();
7204
- if (0 === r4) T2.add(e3), A2 = Math.min(A2, s3), M2 = Math.max(M2, o3);
7212
+ if (0 === r4) N2.add(e3), A2 = Math.min(A2, s3), M2 = Math.max(M2, o3);
7205
7213
  else {
7206
7214
  const t5 = n3.getCoords();
7207
- if (A2 = Math.min(A2, t5.min), M2 = Math.max(M2, t5.max), M2 > N2) throw new d();
7215
+ if (A2 = Math.min(A2, t5.min), M2 = Math.max(M2, t5.max), M2 > T2) throw new d();
7208
7216
  }
7209
7217
  b2 += r4 - t4, x2.push([e3, n3]);
7210
7218
  }
7211
7219
  B2 = O2.next();
7212
7220
  }
7213
7221
  const L2 = this._optionsMinor;
7214
- let z2 = false;
7222
+ let P2 = false;
7215
7223
  for (let t3 = 0; t3 < k2.length; t3++) {
7216
7224
  const e3 = k2[t3], n3 = e3.majorIndex, r3 = e3.run;
7217
7225
  let o3 = F2.get(n3);
7218
- 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);
7226
+ o3 || (o3 = new _a(L2), F2.set(n3, o3), x2.push([n3, o3]), P2 = true), o3.setRunAt(e3.minorIndex, r3), b2 += r3.length, I2 = Math.min(I2, n3), R2 = Math.max(R2, n3), N2 && N2.delete(n3);
7219
7227
  }
7220
- if (this._updateMajorSpan(x2, z2), T2 && T2.size > 0) {
7221
- const t3 = Array.from(T2.values()), e3 = Rs(t3);
7228
+ if (this._updateMajorSpan(x2, P2), N2 && N2.size > 0) {
7229
+ const t3 = Array.from(N2.values()), e3 = Rs(t3);
7222
7230
  for (let t4 = 0; t4 < e3.length; t4++) {
7223
7231
  const n4 = e3[t4];
7224
7232
  v2.delete(n4.min, n4.max - n4.min + 1);
@@ -7307,7 +7315,7 @@ class vl {
7307
7315
  vl || (vl = {});
7308
7316
  const xl = 12;
7309
7317
  Object.seal({ done: false, value: null });
7310
- const Il = [-1, -1, null], Rl = Object.seal({ done: false, value: [-1, null] }), Al = Object.seal({ done: false, value: [-1, null] }), Ml = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Rl }, 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 });
7318
+ 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 });
7311
7319
  class Fl {
7312
7320
  constructor(t2) {
7313
7321
  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");
@@ -7334,12 +7342,12 @@ class Fl {
7334
7342
  return o2 ? this._vf64[t2] : this._vf32[t2];
7335
7343
  case Bl:
7336
7344
  return !!r2;
7337
- case Pl:
7338
- case Hl:
7345
+ case zl:
7346
+ case Wl:
7339
7347
  return this._cv(n2, o2 ? Number(r2) : r2);
7340
7348
  case Ll:
7341
7349
  return this._vi64[o2 ? t2 : r2];
7342
- case zl:
7350
+ case Pl:
7343
7351
  return this._vf64[o2 ? t2 : r2];
7344
7352
  case $l:
7345
7353
  return Number.NaN;
@@ -7347,7 +7355,7 @@ class Fl {
7347
7355
  return Number.MAX_SAFE_INTEGER;
7348
7356
  case Gl:
7349
7357
  return Number.MIN_SAFE_INTEGER;
7350
- case Wl:
7358
+ case Hl:
7351
7359
  return 1 / 0;
7352
7360
  case Vl:
7353
7361
  return -1 / 0;
@@ -7389,7 +7397,7 @@ class Fl {
7389
7397
  let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 = Xl(t2[0], r2);
7390
7398
  for (let e3 = 0; e3 < s2; e3++) {
7391
7399
  const n3 = t2[e3], o3 = Xl(n3, r2);
7392
- o3 !== zl && o3 !== Ll || l2++, h2 !== o3 && (a2[e3] = o3, c2 = true);
7400
+ o3 !== Pl && o3 !== Ll || l2++, h2 !== o3 && (a2[e3] = o3, c2 = true);
7393
7401
  }
7394
7402
  c2 || (a2 = null, i2 = null);
7395
7403
  let d2, u2, g2, m2, f2, p2, _2, S2, w2 = false;
@@ -7410,11 +7418,11 @@ class Fl {
7410
7418
  case Ll:
7411
7419
  d2[n3] = r3;
7412
7420
  break;
7413
- case zl:
7421
+ case Pl:
7414
7422
  u2[n3] = r3;
7415
7423
  break;
7416
- case Pl:
7417
- case Hl:
7424
+ case zl:
7425
+ case Wl:
7418
7426
  d2[n3] = BigInt(e2?.(y2, r3) ?? 0);
7419
7427
  break;
7420
7428
  default:
@@ -7438,11 +7446,11 @@ class Fl {
7438
7446
  case Ll:
7439
7447
  _2[r3] = n3, m2[n3] = o3, n3++;
7440
7448
  break;
7441
- case zl:
7449
+ case Pl:
7442
7450
  _2[r3] = n3, f2[n3] = o3, n3++;
7443
7451
  break;
7444
- case Pl:
7445
- case Hl:
7452
+ case zl:
7453
+ case Wl:
7446
7454
  d2[r3] = e2?.(y2, o3) ?? 0;
7447
7455
  break;
7448
7456
  default:
@@ -7453,25 +7461,25 @@ class Fl {
7453
7461
  return new Fl({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
7454
7462
  }
7455
7463
  }
7456
- 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) => {
7464
+ const kl = 0.1, Ol = 1, Dl = 2, Bl = 3, Ll = 4, Pl = 5, zl = 6, Wl = 7, Hl = 8, Vl = 9, $l = 10, jl = 11, Gl = 12, Ul = 13, Jl = 14, ql = 127, Kl = { Undefined: Jl }, Xl = (t2, e2) => {
7457
7465
  switch (typeof t2) {
7458
7466
  case "number":
7459
7467
  const n2 = t2;
7460
7468
  if (Number.isNaN(n2)) return $l;
7461
- if (n2 === 1 / 0) return Wl;
7469
+ if (n2 === 1 / 0) return Hl;
7462
7470
  if (n2 === -1 / 0) return Vl;
7463
7471
  if (Object.is(n2, -0)) return Dl;
7464
7472
  if (n2 === Number.MAX_SAFE_INTEGER) return jl;
7465
7473
  if (n2 === Number.MIN_SAFE_INTEGER) return Gl;
7466
7474
  if (Number.isInteger(n2) && n2 <= 2147483647 && n2 >= -2147483648) return Ol;
7467
- return Math.fround(n2) === n2 ? Dl : zl;
7475
+ return Math.fround(n2) === n2 ? Dl : Pl;
7468
7476
  case "string":
7469
- return Pl;
7477
+ return zl;
7470
7478
  case "boolean":
7471
7479
  return Bl;
7472
7480
  case "object":
7473
7481
  if (null === t2) return Ul;
7474
- if (t2 instanceof Error) return Hl;
7482
+ if (t2 instanceof Error) return Wl;
7475
7483
  if (!e2) return ql;
7476
7484
  const r2 = e2(t2);
7477
7485
  if (r2 < 128 || r2 > 255) throw new Error("Custom type must be between 128 and 255");
@@ -7762,28 +7770,28 @@ class oc {
7762
7770
  const t2 = { ...M2 };
7763
7771
  1 === p2 && (t2.colEnd = t2.colStart), 1 === _2 && (t2.rowEnd = t2.rowStart), A2 = new fl({ delegate: g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: t2, reuseResult: false }), bounds: t2, orientation: x2, dims: { major: I2 ? S2 : w2, minor: I2 ? w2 : S2 } });
7764
7772
  } else A2 = g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: M2, reuseResult: false });
7765
- 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);
7773
+ 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);
7766
7774
  let B2, L2 = D2.next();
7767
7775
  for (; !L2.done; ) {
7768
7776
  const t2 = L2.value;
7769
7777
  let e2 = t2[1], r3 = t2[3];
7770
7778
  const s3 = t2[0], i3 = t2[2], a3 = s3 ? s3.colIndex : i3.colIndex + F2, l3 = s3 ? s3.rowIndex : i3.rowIndex + k2;
7771
7779
  let c2, u3;
7772
- e2 instanceof n.Value ? c2 = e2 : r3 instanceof n.Value && (c2 = r3), u3 = c2 || o2(e2 ?? h2, r3 ?? d2, { colIndex: a3 - N2, rowIndex: l3 - T2 }, this);
7780
+ 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);
7773
7781
  const g3 = I2 ? a3 : l3, m3 = I2 ? l3 : a3;
7774
7782
  O2.addValue(g3, m3, u3), L2 = D2.next();
7775
7783
  }
7776
7784
  if (C2 && y2 > S2 || E2 > w2) {
7777
7785
  const t2 = this._values.clone();
7778
7786
  if (this._applyBuilder(t2, O2), y2 > S2) {
7779
- const e2 = hl(N2 + S2, T2, N2 + y2 - 1, T2 + E2 - 1, I2), n2 = Sl(C2, e2, I2);
7787
+ const e2 = hl(T2 + S2, N2, T2 + y2 - 1, N2 + E2 - 1, I2), n2 = Sl(C2, e2, I2);
7780
7788
  t2.setValues(n2.tuples);
7781
7789
  }
7782
7790
  if (E2 > w2) {
7783
- const e2 = hl(N2, T2 + w2, N2 + y2 - 1, T2 + E2 - 1, I2), n2 = Sl(C2, e2, I2);
7791
+ const e2 = hl(T2, N2 + w2, T2 + y2 - 1, N2 + E2 - 1, I2), n2 = Sl(C2, e2, I2);
7784
7792
  t2.setValues(n2.tuples);
7785
7793
  }
7786
- B2 = new oc(t2, { colStart: N2, rowStart: T2, colEnd: N2 + y2 - 1, rowEnd: T2 + E2 - 1 }, this._type);
7794
+ B2 = new oc(t2, { colStart: T2, rowStart: N2, colEnd: T2 + y2 - 1, rowEnd: N2 + E2 - 1 }, this._type);
7787
7795
  } else B2 = this._cloneFromBuilder(O2, s2, y2, E2);
7788
7796
  return B2;
7789
7797
  }
@@ -8145,9 +8153,9 @@ const sc = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
8145
8153
  const i2 = n2.getOrientation() === e.Orientation.Column, a2 = wl(s2, i2, hl(r2?.colStart ?? 0, r2?.rowStart ?? 0, void 0, void 0, i2), true), l2 = dl(a2.bounds, i2);
8146
8154
  n2.setValues(a2.tuples);
8147
8155
  return new oc(n2, l2, o2, !r2);
8148
- }, Ec = new RegExp(/^([$]?[a-zA-Z]*[$]?[0-9]*)[:]?([$]?[a-zA-Z]*[$]?[0-9]*)?$/), Cc = new RegExp(/^(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?)(:(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?))?$/, "i"), bc = new RegExp(/^(R?)(\[?[-+]?\d+\]?|\d+)?(C?)(\[?[-+]?\d+\]?|\d+)?$/, "i"), vc = new RegExp("(?:'[^']+'|[A-Za-z0-9_\\-.]+?!)?(\\$?[A-Za-z]+\\$?\\d+(?::\\$?[A-Za-z]+\\$?\\d+)?|\\$?[A-Za-z]+:\\$?[A-Za-z]+|\\$?\\d+:\\$?\\d+)", "g"), xc = /\s+/g, Ic = /"(?:[^"]|"")*"|\[[^[\]]+\]/g, Rc = /[\uE000-\uF8FF]/g, Ac = "#REF!", Mc = Math.pow(2, 14), Nc = Math.pow(2, 20);
8149
- let Tc, Fc;
8150
- const kc = (t2) => (Tc === t2 || (Fc = "" + (t2 + 1), Tc = t2), Fc);
8156
+ }, 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);
8157
+ let Nc, Fc;
8158
+ const kc = (t2) => (Nc === t2 || (Fc = "" + (t2 + 1), Nc = t2), Fc);
8151
8159
  let Oc, Dc;
8152
8160
  const Bc = (t2) => {
8153
8161
  if (Oc === t2) return Dc;
@@ -8155,18 +8163,18 @@ const Bc = (t2) => {
8155
8163
  let e2 = "";
8156
8164
  for (++t2; t2; t2 = Math.floor((t2 - 1) / 26)) e2 = String.fromCharCode((t2 - 1) % 26 + 65) + e2;
8157
8165
  return Dc = e2, Dc;
8158
- }, Lc = /[^a-zA-Z0-9]/, zc = (t2) => {
8166
+ }, Lc = /[^a-zA-Z0-9]/, Pc = (t2) => {
8159
8167
  if (!t2) return null;
8160
8168
  return Bc(t2.colIndex) + kc(t2.rowIndex);
8161
- }, Pc = (t2) => {
8169
+ }, zc = (t2) => {
8162
8170
  if (!t2) return Ac;
8163
8171
  const e2 = Bc(t2.colIndex), n2 = kc(t2.rowIndex);
8164
8172
  return (t2.$colIndex ? "$" + e2 : e2) + (t2.$rowIndex ? "$" + n2 : n2);
8165
- }, Hc = (t2, e2) => {
8173
+ }, Wc = (t2, e2) => {
8166
8174
  let n2 = t2 ?? e2;
8167
8175
  var r2;
8168
8176
  return n2 && (n2 = Fo(n2), n2 = n2.replace(/'/g, "''"), r2 = n2, Lc.test(r2) && (n2 = ko(n2))), n2;
8169
- }, Wc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Ac, Vc = (t2, e2, n2 = zc) => {
8177
+ }, Hc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Ac, Vc = (t2, e2, n2 = Pc) => {
8170
8178
  if (!t2) return null;
8171
8179
  const r2 = t2.colStart, o2 = t2.rowStart, s2 = t2.colEnd, i2 = t2.rowEnd;
8172
8180
  if (r2 === s2 && o2 === i2) return n2({ colIndex: r2, rowIndex: o2 });
@@ -8176,16 +8184,16 @@ const Bc = (t2) => {
8176
8184
  c2 = l2 ? Bc(r2) : a2 ? kc(o2) : n2({ colIndex: r2, rowIndex: o2 });
8177
8185
  let h2 = null;
8178
8186
  return h2 = l2 ? Bc(s2) : a2 ? kc(i2) : n2({ colIndex: s2, rowIndex: i2 }), c2 + ":" + h2;
8179
- }, $c = (t2, e2, n2 = Pc) => {
8187
+ }, $c = (t2, e2, n2 = zc) => {
8180
8188
  if (!t2) return Ac;
8181
8189
  const r2 = t2.colIndex, o2 = t2.rowIndex, s2 = r2 === Number.MIN_SAFE_INTEGER;
8182
8190
  let i2 = null;
8183
8191
  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) {
8184
- const n3 = Hc(t2.sheetName, e2);
8185
- i2 = Wc(n3, i2);
8192
+ const n3 = Wc(t2.sheetName, e2);
8193
+ i2 = Hc(n3, i2);
8186
8194
  }
8187
8195
  return i2;
8188
- }, jc = (t2, e2, n2 = Pc) => {
8196
+ }, jc = (t2, e2, n2 = zc) => {
8189
8197
  if (!t2) return Ac;
8190
8198
  const r2 = void 0 !== t2.rowStart && t2.rowStart === t2.rowEnd;
8191
8199
  if (void 0 !== t2.colStart && t2.colStart === t2.colEnd && r2) return n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
@@ -8195,9 +8203,9 @@ const Bc = (t2) => {
8195
8203
  o2 ? (i2 = Bc(t2.colStart), i2 = t2.$colStart ? "$" + i2 : i2) : s2 ? (i2 = kc(t2.rowStart), i2 = t2.$rowStart ? "$" + i2 : i2) : i2 = n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
8196
8204
  let a2 = null;
8197
8205
  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;
8198
- }, Gc = (t2, e2, n2 = Pc) => {
8199
- const r2 = jc(t2, e2, n2), o2 = Hc(t2?.sheetName, e2?.sheetName);
8200
- return Wc(o2, r2);
8206
+ }, Gc = (t2, e2, n2 = zc) => {
8207
+ const r2 = jc(t2, e2, n2), o2 = Wc(t2?.sheetName, e2?.sheetName);
8208
+ return Hc(o2, r2);
8201
8209
  }, Uc = (t2, e2 = false) => {
8202
8210
  if (!t2) return null;
8203
8211
  let n2 = 0, r2 = 0, o2 = false, s2 = false;
@@ -8249,7 +8257,7 @@ const Bc = (t2) => {
8249
8257
  o2.sheetName = r2[0];
8250
8258
  } else o2 = Jc(t2, e2, n2);
8251
8259
  return o2 || null;
8252
- }, Kc = (t2, e2, n2 = jc, r2 = Pc) => {
8260
+ }, Kc = (t2, e2, n2 = jc, r2 = zc) => {
8253
8261
  if (!t2 || 0 === t2.length) return null;
8254
8262
  const o2 = [], s2 = t2.length;
8255
8263
  for (let i2 = 0; i2 < s2; i2++) {
@@ -8258,7 +8266,7 @@ const Bc = (t2) => {
8258
8266
  s3 ? void 0 !== s3.rowIndex || void 0 !== s3.colIndex ? a2 = r2(s3) : void 0 !== s3.rowStart || void 0 !== s3.colStart ? a2 = n2(s3, e2, r2) : "string" == typeof s3 && (a2 = s3) : a2 = Ac, a2 && o2.push(a2);
8259
8267
  }
8260
8268
  return o2;
8261
- }, Xc = (t2, e2, n2 = Gc, r2 = Pc) => {
8269
+ }, Xc = (t2, e2, n2 = Gc, r2 = zc) => {
8262
8270
  const o2 = Kc(t2, e2, n2, r2);
8263
8271
  return o2 ? o2.join(",") : Ac;
8264
8272
  }, Yc = (t2, e2, n2, r2 = qc, o2, s2 = false) => {
@@ -8414,7 +8422,7 @@ const Bc = (t2) => {
8414
8422
  r2 !== Number.MIN_SAFE_INTEGER && (t2.$rowIndex ? n2 += `R${r2 + 1}` : n2 += 0 === r2 ? "R" : `R[${r2 + 1}]`);
8415
8423
  let o2 = "";
8416
8424
  const s2 = t2.colIndex;
8417
- return s2 !== Number.MIN_SAFE_INTEGER && (t2.$colIndex ? o2 += `C${s2 + 1}` : o2 += 0 === s2 ? "C" : `C[${s2 + 1}]`), t2.sheetName && (n2 = Hc(t2.sheetName, e2) + "!" + n2), n2 + o2;
8425
+ return s2 !== Number.MIN_SAFE_INTEGER && (t2.$colIndex ? o2 += `C${s2 + 1}` : o2 += 0 === s2 ? "C" : `C[${s2 + 1}]`), t2.sheetName && (n2 = Wc(t2.sheetName, e2) + "!" + n2), n2 + o2;
8418
8426
  }, uh = (t2, e2, n2) => {
8419
8427
  let r2 = "";
8420
8428
  const o2 = t2.colIndex;
@@ -8614,9 +8622,9 @@ class Ih {
8614
8622
  const Rh = Object.freeze({ break: true });
8615
8623
  var Ah;
8616
8624
  (Ah || (Ah = {})).Type = { Style: "style", Table: "table", Merge: "merge", Hyperlink: "hyperlink", Comments: "comments", Unlock: "unlock", Contentful: "contentful", Conditional: "conditional", Formula: "formula", Spill: "spill", Continuous: "continuous", Pending: "pending", CalcError: "calcError" };
8617
- const Mh = Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Table]: false, [Ah.Type.Merge]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Comments]: false, [Ah.Type.Unlock]: false, [Ah.Type.Formula]: false, [Ah.Type.Spill]: false, [Ah.Type.Pending]: false, [Ah.Type.CalcError]: false, [Ah.Type.Contentful]: false, [Ah.Type.Conditional]: false, [Ah.Type.Continuous]: false }), 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 });
8625
+ 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 });
8618
8626
  Object.freeze({ [Ah.Type.Style]: false, [Ah.Type.Table]: false, [Ah.Type.Hyperlink]: false, [Ah.Type.Comments]: false, [Ah.Type.Unlock]: false, [Ah.Type.Contentful]: false, [Ah.Type.Formula]: false });
8619
- const 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.";
8627
+ 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.", Ph = (t2) => `We can't create a ${t2} that overlaps with another table or merge.`, zh = "Overlapping ranges can not be merged.", Wh = "We can't insert cells because this would push values off the end of the worksheet. These cells may appear empty but they have some formatting or formulas. Delete enough rows or columns and try again.", Hh = "Unable to partially fill over merged cells.", Vh = "Unable to sort merged cells unless they are all the same size.", $h = "Sheet has been closed. No further operations are allowed.", jh = "IteratorContext can only be used during visit.", Gh = "When using addresses directly from the sheet do not include the sheet name.", Uh = (t2) => `Unable to return more than ${t2} values. To access values in a more scalable solution use 'ICellRange.forEach' or an iterator.`, Jh = "'setValue' expects a single value; when working with an array use 'setValue'.", qh = "Multiple selection ranges can not be copied.", Kh = "Unable to determine source.", Xh = "When pasting before or after the cut area both areas must align.";
8620
8628
  var Yh, Qh;
8621
8629
  (Qh = Yh || (Yh = {})).CalcStatus = { Ready: "ready", Stale: "stale", Pending: "pending", Streaming: "streaming" }, Qh.Content = { Values: "values", Formats: "formats", Formulas: "formula", Hyperlinks: "hyperlinks", Tables: "tables", Notes: "notes", Comments: "comments", Warnings: "warnings", Errors: "errors", Merges: "merges" };
8622
8630
  class Zh {
@@ -8672,10 +8680,10 @@ const td = (t2) => {
8672
8680
  n2 && "]" !== s2 && '"' !== s2 ? e2 += s2 : '"' === s2 ? (e2 += "\\0022", n2 = !n2) : ["[", "]", ",", "#", ".", "@", "/", ":", ";", "-", " "].includes(s2) ? (e2 += "\\" + s2, "[" === s2 ? n2 = true : "]" === s2 && (n2 = false)) : ["(", ")"].includes(s2) ? e2 += "_" === r2 ? "\\" + s2 : "\\\\\\" + s2 : ["$"].includes(s2) ? e2 += "\\0022" + s2 + "\\0022" : e2 += s2, r2 = s2;
8673
8681
  }
8674
8682
  return '"' + e2 + '"';
8675
- }, hd = "Thin", dd = "Hairline", ud = "Extra Light", gd = "Ultra Light", md = "Light", fd = "Normal", pd = "Regular", _d = "Medium", Sd = "Semi Bold", wd = "Demi Bold", yd = "Bold", Ed = "Extra Bold", Cd = "Ultra Bold", bd = "Black", vd = "Heavy", xd = "Extra Black", Id = "Ultra Black", Rd = "lighter", Ad = "normal", Md = "bold", Nd = "bolder", Td = /* @__PURE__ */ new Map();
8676
- 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);
8677
- 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();
8678
- 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);
8683
+ }, 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();
8684
+ 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);
8685
+ const Fd = "xx-small", kd = "x-small", Od = "small", Dd = "medium", Bd = "large", Ld = "x-large", Pd = "xx-large", zd = "xxx-large", Wd = "smaller", Hd = "larger", Vd = "math", $d = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), jd = /* @__PURE__ */ new Map();
8686
+ 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(Pd), (t2) => 1.5 * t2), jd.set(o.textToKey(zd), (t2) => 2 * t2), jd.set(o.textToKey(Wd), (t2) => 0.9 * t2), jd.set(o.textToKey(Hd), (t2) => 1.1 * t2), jd.set(o.textToKey(Vd), (t2) => t2);
8679
8687
  const Gd = (t2, e2 = 11, n2 = "pt") => {
8680
8688
  if (!t2) return null;
8681
8689
  let r2 = e2;
@@ -8816,7 +8824,7 @@ const Ru = (t2) => {
8816
8824
  })), !t2) return null;
8817
8825
  const n2 = {};
8818
8826
  return t2.style && (n2.style = t2.style), t2.color && (n2.color = t2.color), n2;
8819
- }, properties: { color: Au } }, Nu = { shorthand: (t2, e2) => {
8827
+ }, properties: { color: Au } }, Tu = { shorthand: (t2, e2) => {
8820
8828
  if (t2.isIBorder) return t2.getProperties();
8821
8829
  if ("string" == typeof t2) {
8822
8830
  const n2 = cu(t2, (t3) => {
@@ -8829,7 +8837,7 @@ const Ru = (t2) => {
8829
8837
  return { left: n2, right: n2, top: n2, bottom: n2, horizontal: null, vertical: null, diagonalUp: null, diagonalDown: null };
8830
8838
  }
8831
8839
  return t2;
8832
- }, properties: { top: Mu, left: Mu, right: Mu, bottom: Mu, horizontal: Mu, vertical: Mu, diagonalUp: Mu, diagonalDown: Mu } }, Tu = { shorthand: (t2, e2) => {
8840
+ }, properties: { top: Mu, left: Mu, right: Mu, bottom: Mu, horizontal: Mu, vertical: Mu, diagonalUp: Mu, diagonalDown: Mu } }, Nu = { shorthand: (t2, e2) => {
8833
8841
  if ("string" == typeof t2) {
8834
8842
  let e3 = pi.Styles.lookupDefault(t2);
8835
8843
  return void 0 !== e3 ? e3 : t2;
@@ -8863,7 +8871,7 @@ const Ru = (t2) => {
8863
8871
  let e3 = 400;
8864
8872
  if (e3 = "number" == typeof t3 ? t3 : parseFloat(t3), !isNaN(e3)) return e3;
8865
8873
  if ("string" == typeof t3) {
8866
- const e4 = o.textToKey(t3), n3 = Td.get(e4);
8874
+ const e4 = o.textToKey(t3), n3 = Nd.get(e4);
8867
8875
  if (n3) return n3;
8868
8876
  }
8869
8877
  return e3;
@@ -8890,26 +8898,26 @@ const Ru = (t2) => {
8890
8898
  e2?.toJSON && (e2 = e2.toJSON());
8891
8899
  const r2 = Ds.BuiltInSheetPattern.MediumGray;
8892
8900
  return e2?.type === Ds.Type.Pattern ? { ...e2, ...t2 } : e2?.type === Ds.Type.Solid ? { patternType: r2, foreground: e2?.color ?? Ls.Named.WindowText, background: Ls.Scheme.Bg1, ...t2 } : e2?.type === Ds.Type.Gradient ? { patternType: r2, foreground: e2?.stops?.[0]?.color ?? Ls.Named.WindowText, background: e2?.stops?.[1]?.color ?? Ls.Scheme.Bg1, ...t2 } : t2 ? { type: Ds.Type.Pattern, patternType: Ds.BuiltInSheetPattern.Solid, foreground: Ls.Named.WindowText, background: Ls.Scheme.Bg1, ...t2 } : null;
8893
- }, properties: { foreground: Au, background: Au } }, zu = [Ou, Du, Bu, Lu], Pu = [];
8894
- for (let t2 = 0; t2 < zu.length; t2++) {
8895
- const e2 = zu[t2]?.shorthand;
8896
- Pu.push(e2);
8901
+ }, properties: { foreground: Au, background: Au } }, Pu = [Ou, Du, Bu, Lu], zu = [];
8902
+ for (let t2 = 0; t2 < Pu.length; t2++) {
8903
+ const e2 = Pu[t2]?.shorthand;
8904
+ zu.push(e2);
8897
8905
  }
8898
- const Hu = Pu.length, Wu = { properties: { font: Fu, fill: { shorthand: (t2, e2) => {
8906
+ const Wu = zu.length, Hu = { properties: { font: Fu, fill: { shorthand: (t2, e2) => {
8899
8907
  t2.isIFill && (t2 = t2.toJSON());
8900
- for (let n2 = 0; n2 < Hu; n2++) {
8901
- let r2 = Pu[n2](t2, e2);
8908
+ for (let n2 = 0; n2 < Wu; n2++) {
8909
+ let r2 = zu[n2](t2, e2);
8902
8910
  if (r2?.type) return r2;
8903
8911
  }
8904
8912
  return t2;
8905
- }, 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: 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) => {
8913
+ }, 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: 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) => {
8906
8914
  if (null == e2) return $u;
8907
8915
  let l2 = "", c2 = null, h2 = null, d2 = null;
8908
8916
  if (r2 === t.Error) l2 = e2.getLabel();
8909
8917
  else if (r2 === t.RichData) l2 = "(Rich Object)";
8910
8918
  else if (r2 === t.Boolean) l2 = e2 ? "TRUE" : "FALSE";
8911
8919
  else if (s2) try {
8912
- l2 = Nr(s2, e2, { date1904: a2, spacingCharacter: "", digitCharacter: "", onRepeatChar: (t2, e3) => {
8920
+ l2 = Tr(s2, e2, { date1904: a2, spacingCharacter: "", digitCharacter: "", onRepeatChar: (t2, e3) => {
8913
8921
  h2 || (h2 = []), h2.push({ offset: t2, char: e3 });
8914
8922
  }, onSpacingChar: (t2, e3) => {
8915
8923
  d2 || (d2 = []), d2.push({ offset: t2, char: e3 });
@@ -9068,10 +9076,18 @@ class ng extends eg {
9068
9076
  getStyle() {
9069
9077
  return this._value("style");
9070
9078
  }
9079
+ setStyle(t2, e2) {
9080
+ const n2 = this._edge, r2 = n2.charAt(0).toUpperCase() + n2.slice(1);
9081
+ return this._o.updater({ border: { [n2]: { style: t2 } } }, { description: `Set ${r2} Border Style`, ...e2 }).getBorder()["get" + r2]();
9082
+ }
9071
9083
  getColor() {
9072
9084
  const t2 = this._value("color");
9073
9085
  return t2 ? this._c.parseColor(t2) : null;
9074
9086
  }
9087
+ setColor(t2, e2) {
9088
+ const n2 = this._edge, r2 = n2.charAt(0).toUpperCase() + n2.slice(1);
9089
+ return this._o.updater({ border: { [n2]: { color: t2 } } }, { description: `Set ${r2} Border Color`, ...e2 }).getBorder()["get" + r2]();
9090
+ }
9075
9091
  isNone() {
9076
9092
  return this.getStyle() === Qs.StrokeStyle.None;
9077
9093
  }
@@ -9100,37 +9116,37 @@ class rg extends eg {
9100
9116
  return new ng(Qs.Edge.Left, this._o, this._values(Qs.Edge.Left));
9101
9117
  }
9102
9118
  setLeft(t2, e2) {
9103
- return this._o.updater({ border: { left: t2 } }, { description: "Set Border Left", ...e2 }).getBorder().getLeft();
9119
+ return this._o.updater({ border: { left: t2 } }, { description: "Set Left Border", ...e2 }).getBorder();
9104
9120
  }
9105
9121
  getRight() {
9106
9122
  return new ng(Qs.Edge.Right, this._o, this._values(Qs.Edge.Right));
9107
9123
  }
9108
9124
  setRight(t2, e2) {
9109
- return this._o.updater({ border: { right: t2 } }, { description: "Set Border Right", ...e2 }).getBorder().getRight();
9125
+ return this._o.updater({ border: { right: t2 } }, { description: "Set Right Border", ...e2 }).getBorder();
9110
9126
  }
9111
9127
  getTop() {
9112
9128
  return new ng(Qs.Edge.Top, this._o, this._values(Qs.Edge.Top));
9113
9129
  }
9114
9130
  setTop(t2, e2) {
9115
- return this._o.updater({ border: { top: t2 } }, { description: "Set Border Top", ...e2 }).getBorder().getTop();
9131
+ return this._o.updater({ border: { top: t2 } }, { description: "Set Top Border", ...e2 }).getBorder();
9116
9132
  }
9117
9133
  getBottom() {
9118
9134
  return new ng(Qs.Edge.Bottom, this._o, this._values(Qs.Edge.Bottom));
9119
9135
  }
9120
9136
  setBottom(t2, e2) {
9121
- return this._o.updater({ border: { bottom: t2 } }, { description: "Set Border Bottom", ...e2 }).getBorder().getBottom();
9137
+ return this._o.updater({ border: { bottom: t2 } }, { description: "Set Bottom Border", ...e2 }).getBorder();
9122
9138
  }
9123
9139
  getDiagonalUp() {
9124
9140
  return new ng(Qs.Edge.DiagonalUp, this._o, this._values(Qs.Edge.DiagonalUp));
9125
9141
  }
9126
9142
  setDiagonalUp(t2, e2) {
9127
- return this._o.updater({ border: { diagonalUp: t2 } }, { description: "Set Border Diagonal Up", ...e2 }).getBorder().getDiagonalUp();
9143
+ return this._o.updater({ border: { diagonalUp: t2 } }, { description: "Set Diagonal Up Border", ...e2 }).getBorder();
9128
9144
  }
9129
9145
  getDiagonalDown() {
9130
9146
  return new ng(Qs.Edge.DiagonalDown, this._o, this._values(Qs.Edge.DiagonalDown));
9131
9147
  }
9132
9148
  setDiagonalDown(t2, e2) {
9133
- return this._o.updater({ border: { diagonalDown: t2 } }, { description: "Set Border Diagonal Down", ...e2 }).getBorder().getDiagonalDown();
9149
+ return this._o.updater({ border: { diagonalDown: t2 } }, { description: "Set Diagonal Down Border", ...e2 }).getBorder();
9134
9150
  }
9135
9151
  isEmpty() {
9136
9152
  return false;
@@ -9146,35 +9162,70 @@ class og extends eg {
9146
9162
  getHorizontal() {
9147
9163
  return this._value("horizontal");
9148
9164
  }
9165
+ setHorizontal(t2, e2) {
9166
+ return this._o.updater({ alignment: { horizontal: t2 } }, { description: "Set Horizontal Alignment", ...e2 }).getAlignment();
9167
+ }
9149
9168
  getVertical() {
9150
9169
  return this._value("vertical");
9151
9170
  }
9171
+ setVertical(t2, e2) {
9172
+ return this._o.updater({ alignment: { vertical: t2 } }, { description: "Set Vertical Alignment", ...e2 }).getAlignment();
9173
+ }
9152
9174
  getIndent() {
9153
9175
  return this._value("indent");
9154
9176
  }
9177
+ setIndent(t2, e2) {
9178
+ return this._o.updater({ alignment: { indent: t2 } }, { description: "Set Indent", ...e2 }).getAlignment();
9179
+ }
9155
9180
  getRelativeIndent() {
9156
9181
  return this._value("relativeIndent");
9157
9182
  }
9183
+ setRelativeIndent(t2, e2) {
9184
+ return this._o.updater({ alignment: { relativeIndent: t2 } }, { description: "Set Relative Indent", ...e2 }).getAlignment();
9185
+ }
9158
9186
  getOverflow() {
9159
9187
  return this._value("overflow");
9160
9188
  }
9189
+ setOverflow(t2, e2) {
9190
+ return this._o.updater({ alignment: { overflow: t2 } }, { description: "Set Overflow", ...e2 }).getAlignment();
9191
+ }
9161
9192
  getRotation() {
9162
9193
  return this._value("rotation");
9163
9194
  }
9195
+ setRotation(t2, e2) {
9196
+ return this._o.updater({ alignment: { rotation: t2 } }, { description: "Set Rotation", ...e2 }).getAlignment();
9197
+ }
9164
9198
  getStacked() {
9165
9199
  return this._value("stacked");
9166
9200
  }
9201
+ setStacked(t2, e2) {
9202
+ return this._o.updater({ alignment: { stacked: t2 } }, { description: "Set Stacked", ...e2 }).getAlignment();
9203
+ }
9167
9204
  getJustifyLastLine() {
9168
9205
  return this._value("justifyLastLine");
9169
9206
  }
9207
+ setJustifyLastLine(t2, e2) {
9208
+ return this._o.updater({ alignment: { justifyLastLine: t2 } }, { description: "Set Justify Last Line", ...e2 }).getAlignment();
9209
+ }
9170
9210
  getReadingDirection() {
9171
9211
  return this._value("readingDirection");
9172
9212
  }
9213
+ setReadingDirection(t2, e2) {
9214
+ return this._o.updater({ alignment: { readingDirection: t2 } }, { description: "Set Reading Direction", ...e2 }).getAlignment();
9215
+ }
9173
9216
  }
9174
9217
  class sg extends eg {
9175
9218
  isEqualMeasure(t2) {
9176
9219
  return !!t2 && (this.getFamily() === t2.getFamily() && (!!o.isEqualArrays(this.getFallbacks(), t2.getFallbacks()) && (this.getSize() === t2.getSize() && (this.getWeight() === t2.getWeight() && (this.getStyle() === t2.getStyle() && (this.getStrike() === t2.getStrike() && (this.getScheme() === t2.getScheme() && (this.getShadow() === t2.getShadow() && (this.getOutline() === t2.getOutline() && (this.getLetterSpacing() === t2.getLetterSpacing() && this.getVerticalAlignment() === t2.getVerticalAlignment()))))))))));
9177
9220
  }
9221
+ toCSS(t2, e2 = 1, n2 = false) {
9222
+ const r2 = { fontFamily: ld(this.getFamily(), this.getFallbacks()), letterSpacing: `${this.getLetterSpacing()}px`, fontWeight: this.getWeight(), fontStyle: this.getStyle(), textDecoration: rd(this.getUnderline(), this.getStrike()), color: this.getFill().toCSS(t2), fontSize: `${o.roundAccurately(this.getSize() * Ko.getDeviceScale() * e2, 2)}px`, textRendering: "geometricPrecision" };
9223
+ if (n2) {
9224
+ const n3 = this._c.getNormal().getFont().toCSS(t2, e2, false), s2 = r2.textDecoration, i2 = r2.fontWeight;
9225
+ o.removeEqualValues(r2, n3), s2 && (r2.textDecoration = s2), i2 && (r2.fontWeight = i2);
9226
+ }
9227
+ return r2;
9228
+ }
9178
9229
  isSuperSub() {
9179
9230
  const t2 = this.getVerticalAlignment();
9180
9231
  return t2 === Ko.VerticalAlignment.Sub || t2 === Ko.VerticalAlignment.Super;
@@ -9190,58 +9241,92 @@ class sg extends eg {
9190
9241
  return this.getFamily(), t2 = this.getSize(), (e2 = this.getVerticalAlignment()) === Ko.VerticalAlignment.Super ? -t2 / 3 : e2 === Ko.VerticalAlignment.Sub ? t2 / 5 : 0;
9191
9242
  var t2, e2;
9192
9243
  }
9193
- toCSS(t2, e2 = 1, n2 = false) {
9194
- const r2 = { fontFamily: ld(this.getFamily(), this.getFallbacks()), letterSpacing: `${this.getLetterSpacing()}px`, fontWeight: this.getWeight(), fontStyle: this.getStyle(), textDecoration: rd(this.getUnderline(), this.getStrike()), color: this.getFill().toCSS(t2), fontSize: `${o.roundAccurately(this.getSize() * Ko.getDeviceScale() * e2, 2)}px`, textRendering: "geometricPrecision" };
9195
- if (n2) {
9196
- const n3 = this._c.getNormal().getFont().toCSS(t2, e2, false), s2 = r2.textDecoration, i2 = r2.fontWeight;
9197
- o.removeEqualValues(r2, n3), s2 && (r2.textDecoration = s2), i2 && (r2.fontWeight = i2);
9198
- }
9199
- return r2;
9200
- }
9201
9244
  getFamily() {
9202
9245
  return this._value("family") ?? this._c.getTheme().getFontScheme().getMinorFont();
9203
9246
  }
9247
+ setFamily(t2, e2) {
9248
+ return this._o.updater({ font: { family: t2 } }, { description: "Set Font Family", ...e2 }).getFont();
9249
+ }
9204
9250
  getFallbacks() {
9205
9251
  let t2 = this._value("fallbacks") ?? this._c.getTheme().getFontScheme().getMinorFallbacks() ?? o.EmptyArray;
9206
9252
  return "Aptos Narrow" === this.getFamily() && (t2 = ["Calibri", ...t2]), t2;
9207
9253
  }
9254
+ setFallbacks(t2, e2) {
9255
+ return this._o.updater({ font: { fallbacks: t2 } }, { description: "Set Font Fallbacks", ...e2 }).getFont();
9256
+ }
9208
9257
  getSize() {
9209
9258
  return this._value("size") ?? this._c.getDefaultFontSize() ?? 11;
9210
9259
  }
9260
+ setSize(t2, e2) {
9261
+ return this._o.updater({ font: { size: t2 } }, { description: "Set Font Size", ...e2 }).getFont();
9262
+ }
9211
9263
  getWeight() {
9212
9264
  return this._value("weight");
9213
9265
  }
9266
+ setWeight(t2, e2) {
9267
+ return this._o.updater({ font: { weight: t2 } }, { description: "Set Font Weight", ...e2 }).getFont();
9268
+ }
9214
9269
  getStyle() {
9215
9270
  return this._value("style");
9216
9271
  }
9272
+ setStyle(t2, e2) {
9273
+ return this._o.updater({ font: { style: t2 } }, { description: "Set Font Style", ...e2 }).getFont();
9274
+ }
9217
9275
  getFill() {
9218
9276
  const t2 = this._value("fill");
9219
9277
  return this._c.parseColor(t2 ?? Ls.Scheme.Bg1);
9220
9278
  }
9279
+ setFill(t2, e2) {
9280
+ return this._o.updater({ font: { fill: t2 } }, { description: "Set Font Fill", ...e2 }).getFont();
9281
+ }
9221
9282
  getLetterSpacing() {
9222
9283
  return this._value("letterSpacing") ?? this.getSize() / -25;
9223
9284
  }
9285
+ setLetterSpacing(t2, e2) {
9286
+ return this._o.updater({ font: { letterSpacing: t2 } }, { description: "Set Font Letter Spacing", ...e2 }).getFont();
9287
+ }
9224
9288
  getUnderline() {
9225
9289
  return this._value("underline");
9226
9290
  }
9291
+ setUnderline(t2, e2) {
9292
+ return this._o.updater({ font: { underline: t2 } }, { description: "Set Font Underline", ...e2 }).getFont();
9293
+ }
9227
9294
  getStrike() {
9228
9295
  return this._value("strike");
9229
9296
  }
9297
+ setStrike(t2, e2) {
9298
+ return this._o.updater({ font: { strike: t2 } }, { description: "Set Font Strike", ...e2 }).getFont();
9299
+ }
9230
9300
  getScheme() {
9231
9301
  return this._value("scheme");
9232
9302
  }
9303
+ setScheme(t2, e2) {
9304
+ return this._o.updater({ font: { scheme: t2 } }, { description: "Set Font Scheme", ...e2 }).getFont();
9305
+ }
9233
9306
  getVerticalAlignment() {
9234
9307
  return this._value("verticalAlign");
9235
9308
  }
9309
+ setVerticalAlignment(t2, e2) {
9310
+ return this._o.updater({ font: { verticalAlign: t2 } }, { description: "Set Font Vertical Alignment", ...e2 }).getFont();
9311
+ }
9236
9312
  getShadow() {
9237
9313
  return this._value("shadow");
9238
9314
  }
9315
+ setShadow(t2, e2) {
9316
+ return this._o.updater({ font: { shadow: t2 } }, { description: "Set Font Shadow", ...e2 }).getFont();
9317
+ }
9239
9318
  getOutline() {
9240
9319
  return this._value("outline");
9241
9320
  }
9321
+ setOutline(t2, e2) {
9322
+ return this._o.updater({ font: { outline: t2 } }, { description: "Set Font Outline", ...e2 }).getFont();
9323
+ }
9242
9324
  getExtend() {
9243
9325
  return this._value("extend");
9244
9326
  }
9327
+ setExtend(t2, e2) {
9328
+ return this._o.updater({ font: { extend: t2 } }, { description: "Set Font Extend", ...e2 }).getFont();
9329
+ }
9245
9330
  get isIStyledFont() {
9246
9331
  return true;
9247
9332
  }
@@ -9268,6 +9353,9 @@ class lg extends eg {
9268
9353
  getColor() {
9269
9354
  return this._c.parseColor(this._value("color") ?? Ls.Scheme.Bg1);
9270
9355
  }
9356
+ setColor(t2, e2) {
9357
+ return this._o.updater({ fill: { color: t2 } }, { description: "Set Fill Color", ...e2 }).getFill();
9358
+ }
9271
9359
  toCSS(t2) {
9272
9360
  return { background: this.getColor().toCSS(t2) };
9273
9361
  }
@@ -9301,15 +9389,27 @@ class hg extends eg {
9301
9389
  }
9302
9390
  return n2;
9303
9391
  }
9392
+ setStops(t2, e2) {
9393
+ return this._o.updater({ fill: { stops: t2 } }, { description: "Set Stops", ...e2 }).getFill();
9394
+ }
9304
9395
  getGradientType() {
9305
9396
  return this._value("gradientType") ?? Ds.GradientType.Linear;
9306
9397
  }
9398
+ setGradientType(t2, e2) {
9399
+ return this._o.updater({ fill: { gradientType: t2 } }, { description: "Set Gradient Type", ...e2 }).getFill();
9400
+ }
9307
9401
  getAngle() {
9308
9402
  return this._value("angle") ?? 0;
9309
9403
  }
9404
+ setAngle(t2, e2) {
9405
+ return this._o.updater({ fill: { angle: t2 } }, { description: "Set Angle", ...e2 }).getFill();
9406
+ }
9310
9407
  getFillTo() {
9311
9408
  return this._value("fillTo") ?? null;
9312
9409
  }
9410
+ setFillTo(t2, e2) {
9411
+ return this._o.updater({ fill: { fillTo: t2 } }, { description: "Set Fill To", ...e2 }).getFill();
9412
+ }
9313
9413
  toCSS(t2, e2) {
9314
9414
  const n2 = Yd(this, t2, e2);
9315
9415
  return n2 ? { background: n2 } : null;
@@ -9338,12 +9438,21 @@ class dg extends eg {
9338
9438
  const t2 = this._value("background") ?? Ls.Named.Window;
9339
9439
  return this._c.parseColor(t2);
9340
9440
  }
9441
+ setBackground(t2, e2) {
9442
+ return this._o.updater({ fill: { background: t2 } }, { description: "Set Background Color", ...e2 }).getFill();
9443
+ }
9341
9444
  getForeground() {
9342
9445
  return this._c.parseColor(this._value("foreground") ?? Ls.Scheme.Tx1);
9343
9446
  }
9447
+ setForeground(t2, e2) {
9448
+ return this._o.updater({ fill: { foreground: t2 } }, { description: "Set Foreground Color", ...e2 }).getFill();
9449
+ }
9344
9450
  getPatternType() {
9345
9451
  return this._value("patternType") ?? Ds.BuiltInSheetPattern.None;
9346
9452
  }
9453
+ setPatternType(t2, e2) {
9454
+ return this._o.updater({ fill: { patternType: t2 } }, { description: "Set Pattern Type", ...e2 }).getFill();
9455
+ }
9347
9456
  toCSS(t2) {
9348
9457
  const e2 = this.getBackground().toCSS(t2), n2 = this.getForeground().toCSS(t2);
9349
9458
  return this.getPatternType() === Ds.BuiltInSheetPattern.None ? { background: "none" } : this.getPatternType() === Ds.BuiltInSheetPattern.Solid ? { background: this.getForeground().toCSS(t2) } : Qu.toCSS(this.getPatternType(), n2, e2);
@@ -9374,10 +9483,6 @@ class ug {
9374
9483
  isNormal() {
9375
9484
  return false;
9376
9485
  }
9377
- getNamed() {
9378
- const t2 = this._p.value("named") ?? Si.BuiltInName.Normal;
9379
- return this._o.styles.getNamed(t2);
9380
- }
9381
9486
  createTemporaryStyle(t2) {
9382
9487
  const e2 = this._o, n2 = e2.styles, r2 = Zu(0, t2, this), o2 = e2.range, s2 = e2.direct.cloneWithUpdate(r2);
9383
9488
  return gg(n2, s2, o2);
@@ -9393,6 +9498,9 @@ class ug {
9393
9498
  createTemporaryTextFrame(t2, e2 = false) {
9394
9499
  return fs(t2, this.getFont(), this.getAlignment(), e2);
9395
9500
  }
9501
+ update(t2, e2) {
9502
+ return this._o.updater(t2, e2);
9503
+ }
9396
9504
  getBestFit() {
9397
9505
  if (void 0 !== this._bestFit) return this._bestFit;
9398
9506
  const t2 = this.getInsets(), e2 = this.measureText("My");
@@ -9409,14 +9517,13 @@ class ug {
9409
9517
  return new rg(this._o, this._p.values("border"));
9410
9518
  }
9411
9519
  setBorder(t2, e2) {
9412
- const n2 = t2;
9413
- return this._o.updater({ border: n2 }, { description: "Set Border", ...e2 }).getBorder();
9520
+ return this._o.updater({ border: t2 }, { description: "Set Border", ...e2 });
9414
9521
  }
9415
9522
  getFont() {
9416
9523
  return new sg(this._o, this._p.values("font"));
9417
9524
  }
9418
9525
  setFont(t2, e2) {
9419
- return this._o.updater({ font: t2 }, { description: "Set Font", ...e2 }).getFont();
9526
+ return this._o.updater({ font: t2 }, { description: "Set Font", ...e2 });
9420
9527
  }
9421
9528
  getFill() {
9422
9529
  const t2 = this._p;
@@ -9424,13 +9531,13 @@ class ug {
9424
9531
  return n2.type === Ds.Type.None ? new ag(this._o, e2) : n2.type === Ds.Type.Solid || !n2.type && n2.color ? new lg(this._o, e2) : n2.type === Ds.Type.Gradient ? new hg(this._o, e2) : n2.type === Ds.Type.Pattern ? new dg(this._o, e2) : new ag(this._o, e2);
9425
9532
  }
9426
9533
  setFill(t2, e2) {
9427
- return this._o.updater({ fill: t2 }, { description: "Set Fill", ...e2 }).getFill();
9534
+ return this._o.updater({ fill: t2 }, { description: "Set Fill", ...e2 });
9428
9535
  }
9429
9536
  getAlignment() {
9430
9537
  return new og(this._o, this._p.values("alignment"));
9431
9538
  }
9432
9539
  setAlignment(t2, e2) {
9433
- return this._o.updater({ alignment: t2 }, { description: "Set Alignment", ...e2 }).getAlignment();
9540
+ return this._o.updater({ alignment: t2 }, { description: "Set Alignment", ...e2 });
9434
9541
  }
9435
9542
  getNumberFormat() {
9436
9543
  const t2 = this._p.value("numberFormat");
@@ -9445,6 +9552,13 @@ class ug {
9445
9552
  setQuotePrefix(t2, e2) {
9446
9553
  return this._o.updater({ quotePrefix: t2 }, { description: "Set Quote Prefix", ...e2 });
9447
9554
  }
9555
+ getNamed() {
9556
+ const t2 = this._p.value("named") ?? Si.BuiltInName.Normal;
9557
+ return this._o.styles.getNamed(t2);
9558
+ }
9559
+ setNamed(t2, e2) {
9560
+ return this._o.updater({ named: t2 }, { description: "Set Named Style", ...e2 });
9561
+ }
9448
9562
  get isIStyle() {
9449
9563
  return true;
9450
9564
  }
@@ -9492,7 +9606,7 @@ class _g {
9492
9606
  }
9493
9607
  cloneWithUpdate(t2) {
9494
9608
  if (void 0 === t2) return this;
9495
- const e2 = this._c, n2 = this._r, r2 = this._p, o2 = f.resolveTypedUpdates(t2, Wu, e2, r2);
9609
+ const e2 = this._c, n2 = this._r, r2 = this._p, o2 = f.resolveTypedUpdates(t2, Hu, e2, r2);
9496
9610
  return new _g(e2, n2, o2);
9497
9611
  }
9498
9612
  copyTo(t2, e2) {
@@ -9554,7 +9668,7 @@ class _g {
9554
9668
  const y2 = 1 === g2 ? d2[_2] : d2[S2];
9555
9669
  if (g2 > 1 && !pg(y2, d2[S2])) return;
9556
9670
  if (!pg(w2, y2)) return;
9557
- 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);
9671
+ 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);
9558
9672
  return new _g(u2, n2, C2);
9559
9673
  }
9560
9674
  return new _g(u2, n2, this._p);
@@ -9710,21 +9824,21 @@ const bg = new class {
9710
9824
  const S2 = ((t2) => t2 === yo.HorizontalAlignment.Center || t2 === yo.HorizontalAlignment.CenterContinuous ? p.Center : t2 === yo.HorizontalAlignment.Right ? p.Right : p.Left)(Ag(r2, o2));
9711
9825
  let w2 = 0, y2 = 0, E2 = 0, C2 = 0, b2 = 1;
9712
9826
  if (_2 && null !== s2 && l2) {
9713
- zg.colIndex = n2, zg.rowIndex = e2;
9827
+ Pg.colIndex = n2, Pg.rowIndex = e2;
9714
9828
  const t2 = l2.colEnd;
9715
- b2 = Math.min(c2.nextContentful(zg, t2), t2) - n2 + 1;
9829
+ b2 = Math.min(c2.nextContentful(Pg, t2), t2) - n2 + 1;
9716
9830
  }
9717
9831
  const v2 = c2.colHeaders, x2 = v2.findOffset.bind(v2), I2 = v2.findIndex.bind(v2);
9718
9832
  let R2 = x2(h2);
9719
9833
  const A2 = R2;
9720
- let M2 = x2(h2 + b2), N2 = M2 - R2, T2 = h2, F2 = h2;
9721
- const k2 = { x: 0, y: 0, width: N2, height: d2?.height ?? 0 };
9834
+ let M2 = x2(h2 + b2), T2 = M2 - R2, N2 = h2, F2 = h2;
9835
+ const k2 = { x: 0, y: 0, width: T2, height: d2?.height ?? 0 };
9722
9836
  const O2 = h2 - h2 + b2;
9723
- let D2 = d2 ? d2.width - N2 : 0, B2 = k2;
9724
- 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);
9837
+ let D2 = d2 ? d2.width - T2 : 0, B2 = k2;
9838
+ 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);
9725
9839
  return { anchorBounds: k2, leftIndex: w2, rightIndex: y2, leftOffset: E2, rightOffset: C2, colSpan: O2, colBounds: B2 };
9726
9840
  };
9727
- class Ng {
9841
+ class Tg {
9728
9842
  constructor(t2, e2) {
9729
9843
  if (this._styles = t2, this._ri = e2, e2?.table) {
9730
9844
  const t3 = e2?.table;
@@ -9753,31 +9867,31 @@ class Ng {
9753
9867
  }
9754
9868
  let i2 = null;
9755
9869
  const a2 = this._table?.getPropertiesAt(t2, e2, n2);
9756
- a2 && (i2 = i2 ? f.resolveTypedUpdates(a2, Wu, s2, i2) : a2), r2 && (i2 = i2 ? f.resolveTypedUpdates(r2, Wu, s2, i2) : r2);
9870
+ a2 && (i2 = i2 ? f.resolveTypedUpdates(a2, Hu, s2, i2) : a2), r2 && (i2 = i2 ? f.resolveTypedUpdates(r2, Hu, s2, i2) : r2);
9757
9871
  const l2 = this._conditionals;
9758
9872
  if (l2) for (let r3 = 0; r3 < l2.length; r3++) {
9759
9873
  const o3 = l2[r3].getPropertiesAt(t2, e2, n2);
9760
- o3 && (i2 = i2 ? f.resolveTypedUpdates(o3, Wu, s2, i2) : o3);
9874
+ o3 && (i2 = i2 ? f.resolveTypedUpdates(o3, Hu, s2, i2) : o3);
9761
9875
  }
9762
- return o2 && (i2 = i2 ? f.resolveTypedUpdates(o2, Wu, s2, i2) : o2), i2;
9876
+ return o2 && (i2 = i2 ? f.resolveTypedUpdates(o2, Hu, s2, i2) : o2), i2;
9763
9877
  }
9764
9878
  cloneWithUpdate(t2) {
9765
9879
  return (this._ri.directStyle ?? this._styles.getNormalRanged()).cloneWithUpdate(t2);
9766
9880
  }
9767
9881
  }
9768
- const Tg = (t2, e2, n2, r2) => {
9882
+ const Ng = (t2, e2, n2, r2) => {
9769
9883
  const o2 = r2.styles;
9770
- return gg(o2, n2 ? new Ng(o2, n2) : null, e2, r2.styleUpdater);
9884
+ return gg(o2, n2 ? new Tg(o2, n2) : null, e2, r2.styleUpdater);
9771
9885
  }, Fg = (e2, n2, r2, s2, i2, a2, l2, c2 = null, h2 = Cg) => {
9772
9886
  if (null === r2) return n2 ? n2.getBestFit() : null;
9773
9887
  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);
9774
9888
  if (v2) return v2;
9775
9889
  let x2 = null, I2 = null;
9776
9890
  const R2 = Rg(e2, n2), A2 = R2.top + R2.bottom + +nm(n2);
9777
- let M2 = false, N2 = false;
9778
- l2 && (N2 = true, (0 !== S2 || C2) && (N2 = false));
9779
- const T2 = N2 ? void 0 : Ig(e2, n2, r2, s2), F2 = R2.left + R2.right + 2;
9780
- if (T2) {
9891
+ let M2 = false, T2 = false;
9892
+ l2 && (T2 = true, (0 !== S2 || C2) && (T2 = false));
9893
+ const N2 = T2 ? void 0 : Ig(e2, n2, r2, s2), F2 = R2.left + R2.right + 2;
9894
+ if (N2) {
9781
9895
  if (e2 === t.Number && "General" === y2 && a2) {
9782
9896
  let t2 = r2, e3 = o.splitNumber(t2), s3 = "";
9783
9897
  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);
@@ -9786,7 +9900,7 @@ const Tg = (t2, e2, n2, r2) => {
9786
9900
  } else {
9787
9901
  let t2 = null;
9788
9902
  C2 && (t2 = { width: Math.max(1, i2 - F2) });
9789
- const e3 = T2.layout(t2);
9903
+ const e3 = N2.layout(t2);
9790
9904
  x2 = e3.bounds.width, I2 = e3.bounds.height;
9791
9905
  }
9792
9906
  if (null !== x2 && (x2 += F2), null !== I2 && (I2 += A2), M2 = e2 === t.String, S2) {
@@ -9834,7 +9948,7 @@ class Og {
9834
9948
  return this._options.sheet;
9835
9949
  }
9836
9950
  select(t2) {
9837
- return this._options.opener("#" + zc(this._coords), t2);
9951
+ return this._options.opener("#" + Pc(this._coords), t2);
9838
9952
  }
9839
9953
  getColumnFilter() {
9840
9954
  if (!this._ri) return null;
@@ -9932,7 +10046,7 @@ class Og {
9932
10046
  getStyle(t2 = false) {
9933
10047
  if (!t2 && this._styleConditional) return this._styleConditional;
9934
10048
  if (t2 && this._styleSpecific) return this._styleSpecific;
9935
- const e2 = Tg(0, c.cellToRange(this._coords), this._ri, this._options);
10049
+ const e2 = Ng(0, c.cellToRange(this._coords), this._ri, this._options);
9936
10050
  return t2 ? this._styleSpecific = e2 : this._styleConditional = e2, e2;
9937
10051
  }
9938
10052
  createTemporaryCell(t2) {
@@ -9941,7 +10055,7 @@ class Og {
9941
10055
  const n2 = vg(t2, this._options);
9942
10056
  let r2 = this._ri;
9943
10057
  if (void 0 !== n2.style) {
9944
- 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);
10058
+ 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);
9945
10059
  r2 = { ...r2, directStyle: a2 };
9946
10060
  }
9947
10061
  let o2 = this._t, s2 = this._v;
@@ -9977,14 +10091,14 @@ class Og {
9977
10091
  const s3 = parseFloat(e3), a2 = s3 % 1 != 0, l2 = s3 >= 1;
9978
10092
  if (s3 < 0) return o.castToString(e3);
9979
10093
  if (!n2 || r4 || a2) if (!r4 || n2 || l2) {
9980
- const e4 = Tr("Short Date", t2, i2), n3 = Tr("Long Time", t2, i2);
10094
+ const e4 = Nr("Short Date", t2, i2), n3 = Nr("Long Time", t2, i2);
9981
10095
  if (e4 && n3) return e4.fmt + " " + n3.fmt;
9982
10096
  } else {
9983
- const e4 = Tr("Long Time", t2, i2);
10097
+ const e4 = Nr("Long Time", t2, i2);
9984
10098
  if (e4) return e4.fmt;
9985
10099
  }
9986
10100
  else {
9987
- const e4 = Tr("Short Date", t2, i2);
10101
+ const e4 = Nr("Short Date", t2, i2);
9988
10102
  if (e4) return e4.fmt;
9989
10103
  }
9990
10104
  }
@@ -10110,9 +10224,9 @@ class Bg {
10110
10224
  return this.toText();
10111
10225
  }
10112
10226
  }
10113
- const Lg = [null], zg = { colIndex: -1, rowIndex: -1 };
10114
- let Pg;
10115
- const Hg = (t2, n2, r2, o2 = false) => {
10227
+ const Lg = [null], Pg = { colIndex: -1, rowIndex: -1 };
10228
+ let zg;
10229
+ const Wg = (t2, n2, r2, o2 = false) => {
10116
10230
  const s2 = r2 === e.Orientation.Row, i2 = t2.length, a2 = new Array(i2);
10117
10231
  for (let e2 = 0; e2 < i2; e2++) {
10118
10232
  const r3 = t2[e2];
@@ -10125,7 +10239,7 @@ const Hg = (t2, n2, r2, o2 = false) => {
10125
10239
  }
10126
10240
  }
10127
10241
  return a2;
10128
- }, Wg = (t2, e2, n2) => {
10242
+ }, Hg = (t2, e2, n2) => {
10129
10243
  const r2 = e2, o2 = t2.length;
10130
10244
  for (let e3 = 0; e3 < o2; e3++) {
10131
10245
  const o3 = t2[e3];
@@ -10167,13 +10281,13 @@ const Hg = (t2, n2, r2, o2 = false) => {
10167
10281
  return [Ac];
10168
10282
  }
10169
10283
  getStyle(t2 = false) {
10170
- return Pg || (Pg = new jm().getNormal(), Pg);
10284
+ return zg || (zg = new jm().getNormal(), zg);
10171
10285
  }
10172
10286
  toString() {
10173
- return `${this._coords ? zc(this._coords) : Ac} => ${this._v ?? "{blank}"}`;
10287
+ return `${this._coords ? Pc(this._coords) : Ac} => ${this._v ?? "{blank}"}`;
10174
10288
  }
10175
10289
  }(), Yg = () => Qg, Qg = { forEach: () => {
10176
- }, [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, updateStyle: 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 };
10290
+ }, [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 };
10177
10291
  function Zg(t2, e2 = null, n2 = null, r2 = Ac) {
10178
10292
  return t2 || n2 ? Object.freeze({ ...Qg, getSheet: () => t2, bounds: () => n2, getA1: () => r2, toString: () => n2 ? Vc(n2, e2) : r2 }) : Qg;
10179
10293
  }
@@ -10316,7 +10430,7 @@ const tm = /^[\\+-]?[0-9]*\.?[0-9]*$/, em = (t2, e2, r2) => {
10316
10430
  }, sm = (t2, n2, r2, o2) => {
10317
10431
  const s2 = o2?.asJSDate;
10318
10432
  let i2;
10319
- 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));
10433
+ 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));
10320
10434
  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 = [];
10321
10435
  let u2, g2 = -1, m2 = null, f2 = 0;
10322
10436
  for (u2 = c2.next(); !u2.done; ) {
@@ -10580,7 +10694,7 @@ class _m {
10580
10694
  }
10581
10695
  }
10582
10696
  var Sm, wm;
10583
- (wm = Sm || (Sm = {})).fastStringToCol = nh, wm.fastStringToCell = Zc, wm.fastStringToRange = rh, wm.rangeToString = Vc, wm.cellToString = Pc, wm.normalizeA1ToR1C1 = mh, wm.resolveRelativeToA1 = hh;
10697
+ (wm = Sm || (Sm = {})).fastStringToCol = nh, wm.fastStringToCell = Zc, wm.fastStringToRange = rh, wm.rangeToString = Vc, wm.cellToString = zc, wm.normalizeA1ToR1C1 = mh, wm.resolveRelativeToA1 = hh;
10584
10698
  const ym = (t2, e2) => t2.offset - e2.offset, Em = (t2) => {
10585
10699
  if (!t2 || 0 === t2.size) return [];
10586
10700
  let e2 = [];
@@ -10751,7 +10865,7 @@ class Rm extends _m {
10751
10865
  return n2.length > 0 && (t2.fields = n2), e2.sort, 0 === Object.keys(t2).length ? null : t2;
10752
10866
  }
10753
10867
  }
10754
- 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) => {
10868
+ 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) => {
10755
10869
  if (t2.length !== e2.length) return console.warn("make columns the same length"), false;
10756
10870
  const r2 = /* @__PURE__ */ new Set();
10757
10871
  for (let t3 = 0; t3 < e2.length; t3++) {
@@ -11045,10 +11159,10 @@ class Om extends _m {
11045
11159
  return n2 ? { ...n2, rowStart: n2.rowEnd - e2 + 1 } : null;
11046
11160
  }
11047
11161
  getStyleOptions() {
11048
- return this.isClosed() ? Nm : this._getState()?.styleOptions;
11162
+ return this.isClosed() ? Tm : this._getState()?.styleOptions;
11049
11163
  }
11050
11164
  updateStyleOptions(t2, e2 = "Update Style Info") {
11051
- const n2 = this.getStyleOptions(), r2 = t2 ? { ...n2, ...t2 } : Nm;
11165
+ const n2 = this.getStyleOptions(), r2 = t2 ? { ...n2, ...t2 } : Tm;
11052
11166
  return this._modifyTable({ styleOptions: r2 }, e2), this._styleCache = null, this._getEmitter().notify("onStyleChange"), this;
11053
11167
  }
11054
11168
  getStyleAt(t2) {
@@ -11178,7 +11292,7 @@ class Om extends _m {
11178
11292
  n3.add(a3.toLocaleLowerCase()), t3[i3]?.name !== a3 && (t3[i3].name = a3, s3++);
11179
11293
  }
11180
11294
  return s3 > 0;
11181
- })(a2, c2) : Tm(a2, c2, o2);
11295
+ })(a2, c2) : Nm(a2, c2, o2);
11182
11296
  if (!(r2 || c2.length !== a2.length || l2)) return;
11183
11297
  const h2 = "Update Columns";
11184
11298
  this._isUpdatingHeader = true;
@@ -11234,7 +11348,7 @@ class Om extends _m {
11234
11348
  const o4 = l2 + (c2 + r4 + 1);
11235
11349
  o4 && !t3.has(o4.toLowerCase().trim()) && (e3.name = o4);
11236
11350
  }
11237
- Tm(s2, o3, null);
11351
+ Nm(s2, o3, null);
11238
11352
  } else s2 = o3, i2 = s2.splice(n3, -e2);
11239
11353
  this._updateState({ columns: s2 }, { description: "Process Columns" }), this._updateColumns(s2, false, true, i2);
11240
11354
  } else t2.after || this._updateState({ columns: [] }, { description: "Process Columns" });
@@ -11299,7 +11413,7 @@ class Om extends _m {
11299
11413
  const t2 = {}, e2 = this._getState();
11300
11414
  if (!e2) return null;
11301
11415
  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) {
11302
- const n2 = o.diffValues(e2.styleOptions, { ...Nm, name: null });
11416
+ const n2 = o.diffValues(e2.styleOptions, { ...Tm, name: null });
11303
11417
  n2 && (t2.styleOptions = n2);
11304
11418
  }
11305
11419
  if (e2.filter) {
@@ -11319,7 +11433,7 @@ class Om extends _m {
11319
11433
  const t3 = this._names.findValidName(n2.name ?? Mm);
11320
11434
  n2.name !== t3 && (n2.name = t3);
11321
11435
  }
11322
- 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 };
11436
+ 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 };
11323
11437
  const s2 = "Insert Table";
11324
11438
  this._updateState(n2, { description: s2 });
11325
11439
  const i2 = this._columnsFromSheet();
@@ -11342,7 +11456,7 @@ const Bm = "TableStyleMedium2", Lm = (t2, e2, n2) => {
11342
11456
  })(t2.border, e2, n2), o2 = t2;
11343
11457
  return r2 !== t2.border && (o2 = { ...t2 }, Object.keys(r2).length > 0 ? o2.border = r2 : delete o2.border), o2;
11344
11458
  };
11345
- class zm {
11459
+ class Pm {
11346
11460
  constructor(t2, e2, n2) {
11347
11461
  this._table = t2, this._styles = e2, this._properties = n2;
11348
11462
  }
@@ -11351,7 +11465,7 @@ class zm {
11351
11465
  for (let i2 = 0; i2 < s2; i2++) {
11352
11466
  const s3 = r2[i2], a2 = t2[s3];
11353
11467
  if (!a2 || !o.isObject(a2)) continue;
11354
- const l2 = f.resolveTypedUpdates(Object.freeze(a2), Wu, n2);
11468
+ const l2 = f.resolveTypedUpdates(Object.freeze(a2), Hu, n2);
11355
11469
  e2[s3] = l2;
11356
11470
  }
11357
11471
  return Object.freeze(e2);
@@ -11361,8 +11475,8 @@ class zm {
11361
11475
  }
11362
11476
  getPropertiesAt(t2, e2) {
11363
11477
  const n2 = this._table, r2 = this._styles, o2 = this._properties;
11364
- Hm.rowIndex = t2, Hm.colIndex = e2;
11365
- const s2 = n2.getVisibleCellCoords(Hm), i2 = n2.getVisibleRefRangeCoords();
11478
+ Wm.rowIndex = t2, Wm.colIndex = e2;
11479
+ const s2 = n2.getVisibleCellCoords(Wm), i2 = n2.getVisibleRefRangeCoords();
11366
11480
  if (!i2) return null;
11367
11481
  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();
11368
11482
  let g2 = {}, m2 = false, p2 = 0;
@@ -11384,7 +11498,7 @@ class zm {
11384
11498
  const d3 = { rowIndex: c2, colIndex: n3 }, u3 = { rowStart: p2, rowEnd: l2 - S2 - 1, colStart: 0, colEnd: Math.min(a2 - h2, s3 ? t3 : e3) };
11385
11499
  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);
11386
11500
  const m3 = i3.border ? Lm(i3, d3, u3) : i3;
11387
- g2 = f.resolveTypedUpdates(m3, Wu, r2, g2);
11501
+ g2 = f.resolveTypedUpdates(m3, Hu, r2, g2);
11388
11502
  }
11389
11503
  }
11390
11504
  if (E2 && u2.showRowStripes) {
@@ -11397,45 +11511,45 @@ class zm {
11397
11511
  const u3 = { colIndex: h2, rowIndex: s3 }, m3 = { colStart: 0, colEnd: a2 - 1, rowStart: 0, rowEnd: Math.min(l2 - c2, i3 ? e3 : n3) };
11398
11512
  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);
11399
11513
  const p3 = d3.border ? Lm(d3, u3, m3) : d3;
11400
- g2 = f.resolveTypedUpdates(p3, Wu, r2, g2);
11514
+ g2 = f.resolveTypedUpdates(p3, Hu, r2, g2);
11401
11515
  }
11402
11516
  }
11403
11517
  if (w2 && o2.lastColumn) {
11404
11518
  let t3 = o2.lastColumn;
11405
- t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11519
+ t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11406
11520
  }
11407
11521
  if (y2 && o2.firstColumn) {
11408
11522
  let t3 = o2.firstColumn;
11409
- t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11523
+ t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11410
11524
  }
11411
11525
  if (m2 && o2.headerRow) {
11412
11526
  let t3 = o2.headerRow;
11413
- t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11527
+ t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11414
11528
  }
11415
11529
  if (_2 && o2.totalRow) {
11416
11530
  let t3 = o2.totalRow;
11417
- t3.border && (t3 = Lm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11531
+ t3.border && (t3 = Lm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11418
11532
  }
11419
11533
  if (m2 && y2 && o2.firstHeaderCell) {
11420
11534
  let t3 = o2.firstHeaderCell;
11421
- t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11535
+ t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11422
11536
  }
11423
11537
  if (m2 && w2 && o2.lastHeaderCell) {
11424
11538
  let t3 = o2.lastHeaderCell;
11425
- t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11539
+ t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11426
11540
  }
11427
11541
  if (_2 && y2 && o2.firstTotalCell) {
11428
11542
  let t3 = o2.firstTotalCell;
11429
- t3.border && (t3 = Lm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11543
+ t3.border && (t3 = Lm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11430
11544
  }
11431
11545
  if (_2 && w2 && o2.lastTotalCell) {
11432
11546
  let t3 = o2.lastTotalCell;
11433
- 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);
11547
+ 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);
11434
11548
  }
11435
11549
  return m2 && o2.headerRow && n2.getColumnFilter(h2) && !n2.getColumnFilter(h2).hasHiddenButton() && (g2.insets = { right: 15 }), g2;
11436
11550
  }
11437
11551
  }
11438
- class Pm {
11552
+ class zm {
11439
11553
  constructor(t2, e2, n2, r2) {
11440
11554
  this._styles = t2, this._isBuiltIn = n2, this._doDelete = r2, this._properties = o.deepFreeze(this._resolveProperties(e2)), this.isShownInTableStyles();
11441
11555
  }
@@ -11446,7 +11560,7 @@ class Pm {
11446
11560
  for (let i2 = 0; i2 < s2; i2++) {
11447
11561
  const s3 = r2[i2], a2 = t2[s3];
11448
11562
  if (!a2 || !o.isObject(a2)) continue;
11449
- const l2 = f.resolveTypedUpdates(Object.freeze(a2), Wu, n2);
11563
+ const l2 = f.resolveTypedUpdates(Object.freeze(a2), Hu, n2);
11450
11564
  e2[s3] = l2;
11451
11565
  }
11452
11566
  return Object.freeze(e2);
@@ -11456,7 +11570,7 @@ class Pm {
11456
11570
  this._doDelete(this._properties.name);
11457
11571
  }
11458
11572
  getRanged(t2) {
11459
- return new zm(t2, this._styles, this._properties);
11573
+ return new Pm(t2, this._styles, this._properties);
11460
11574
  }
11461
11575
  getProperties() {
11462
11576
  return this._properties;
@@ -11481,8 +11595,8 @@ class Pm {
11481
11595
  return true;
11482
11596
  }
11483
11597
  }
11484
- const Hm = { rowIndex: 0, colIndex: 0 };
11485
- class Wm extends _g {
11598
+ const Wm = { rowIndex: 0, colIndex: 0 };
11599
+ class Hm extends _g {
11486
11600
  constructor(t2, e2) {
11487
11601
  super(t2, c.EmptyRange, e2);
11488
11602
  }
@@ -11494,7 +11608,7 @@ class Wm extends _g {
11494
11608
  }
11495
11609
  cloneWithUpdate(t2) {
11496
11610
  if (void 0 === t2) return this;
11497
- const e2 = this._c, n2 = this._r, r2 = f.resolveTypedUpdates(t2, Wu, e2, this._p);
11611
+ const e2 = this._c, n2 = this._r, r2 = f.resolveTypedUpdates(t2, Hu, e2, this._p);
11498
11612
  return new _g(e2, n2, r2);
11499
11613
  }
11500
11614
  _createShifted(t2) {
@@ -11528,7 +11642,7 @@ class Wm extends _g {
11528
11642
  }
11529
11643
  class Vm {
11530
11644
  constructor(t2, e2, n2, r2 = null) {
11531
- this._name = e2.name, this._properties = e2, this._rangeStyle = new Wm(t2, e2.style), this._doDelete = n2, this._builtInID = r2;
11645
+ this._name = e2.name, this._properties = e2, this._rangeStyle = new Hm(t2, e2.style), this._doDelete = n2, this._builtInID = r2;
11532
11646
  }
11533
11647
  getRanged() {
11534
11648
  return this._rangeStyle;
@@ -11604,7 +11718,7 @@ class jm {
11604
11718
  for (let n2 = 0; n2 < t2.length; n2++) {
11605
11719
  const r2 = t2[n2], o2 = { ...r2 }, s2 = r2.named;
11606
11720
  delete o2.named;
11607
- const i2 = f.resolveTypedUpdates(o2, Wu, this), a2 = new Vm(this, { name: s2, style: i2 }, this._hideOrRemoveNamed.bind(this), n2);
11721
+ const i2 = f.resolveTypedUpdates(o2, Hu, this), a2 = new Vm(this, { name: s2, style: i2 }, this._hideOrRemoveNamed.bind(this), n2);
11608
11722
  s2 === Si.BuiltInName.Normal && (this._normalRanged = a2.getRanged(), this._normalStyle = gg(this, null)), e2.set(s2.toLowerCase(), a2);
11609
11723
  }
11610
11724
  }
@@ -11671,7 +11785,7 @@ class jm {
11671
11785
  return Dm;
11672
11786
  })(), e2 = /* @__PURE__ */ new Map();
11673
11787
  return t2.forEach((t3, n2) => {
11674
- const r2 = t3.name.toLowerCase(), o2 = new Pm(this, t3, true);
11788
+ const r2 = t3.name.toLowerCase(), o2 = new zm(this, t3, true);
11675
11789
  e2.set(r2, o2);
11676
11790
  }), e2;
11677
11791
  }
@@ -11734,7 +11848,7 @@ class jm {
11734
11848
  const n2 = t2.toLowerCase();
11735
11849
  let r2 = this._customTableStyles.get(n2) ?? this._builtInsTableStyles.get(n2);
11736
11850
  r2 && (t2 = r2.getName());
11737
- const o2 = new Pm(this, { ...e2, name: t2 }, false, this._deleteCustomTableStyle.bind(this));
11851
+ const o2 = new zm(this, { ...e2, name: t2 }, false, this._deleteCustomTableStyle.bind(this));
11738
11852
  return this._customTableStyles.set(n2, o2), o2;
11739
11853
  }
11740
11854
  _hideOrRemoveNamed(t2) {
@@ -11779,7 +11893,7 @@ class jm {
11779
11893
  }
11780
11894
  normalize(t2) {
11781
11895
  if (!t2) return null;
11782
- const e2 = f.resolveTypedUpdates(t2, Wu, this), n2 = Xu;
11896
+ const e2 = f.resolveTypedUpdates(t2, Hu, this), n2 = Xu;
11783
11897
  let r2 = null;
11784
11898
  if (r2 = e2.named ? this.getNamed(e2.named)?.getRanged().getPropertiesAt(0, 0, null) : this._normalRanged.getPropertiesAt(0, 0, null), r2) {
11785
11899
  const t3 = { ...r2 };
@@ -12433,8 +12547,8 @@ class hf {
12433
12547
  for (let t4 = 0; t4 < s3; t4++) {
12434
12548
  const n3 = o3[t4];
12435
12549
  if (n3 === l3) continue;
12436
- 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 };
12437
- const s4 = Wf(r3, Pf, e.Orientation.Row, n3);
12550
+ zf[0] = { colStart: r3.ref.colStart, rowStart: l3, colEnd: r3.ref.colEnd, rowEnd: n3 - 1, value: r3 }, zf[1] = { colStart: r3.ref.colStart, rowStart: n3, colEnd: r3.ref.colStart, rowEnd: r3.ref.rowEnd, value: r3 };
12551
+ const s4 = Hf(r3, zf, e.Orientation.Row, n3);
12438
12552
  let i4 = s4[0];
12439
12553
  _2(i4, a3), g2.push(i4), i4 = s4[1], _2(i4, a3), g2.push(i4), l3 = n3;
12440
12554
  }
@@ -12479,9 +12593,9 @@ class hf {
12479
12593
  return o2.formula ? o2.formula.getTextAt(n2.rowStart, n2.colStart, e2) : void 0;
12480
12594
  }
12481
12595
  _formulaAt(t2, e2) {
12482
- zf.colStart = e2, zf.rowStart = t2, zf.colEnd = e2, zf.rowEnd = t2;
12483
- const n2 = this._formulaSpatial.search(zf);
12484
- if (0 === n2.length) throw new Error(`No formula found at ${zc({ rowIndex: t2, colIndex: e2 })}`);
12596
+ Pf.colStart = e2, Pf.rowStart = t2, Pf.colEnd = e2, Pf.rowEnd = t2;
12597
+ const n2 = this._formulaSpatial.search(Pf);
12598
+ if (0 === n2.length) throw new Error(`No formula found at ${Pc({ rowIndex: t2, colIndex: e2 })}`);
12485
12599
  return n2[0];
12486
12600
  }
12487
12601
  getDirectPrecedentsAt(t2, e2, n2) {
@@ -12733,7 +12847,7 @@ class hf {
12733
12847
  if (this._calculation.getStatus() === Zm.Status.Starting) return this._addToPending(() => {
12734
12848
  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)) };
12735
12849
  return Promise.resolve(s3);
12736
- }), Hf;
12850
+ }), Wf;
12737
12851
  const s2 = this._values.getOrientation() !== e.Orientation.Row, i2 = this._spillSpatial, a2 = this._errorSpatial, l2 = this._contentfulSpatial, h2 = [], d2 = this._formulaSpatial;
12738
12852
  let u2, g2, m2 = !d2.isEmpty(), f2 = m2 ? [] : null, p2 = this._values;
12739
12853
  if (t2 && t2.tuples) {
@@ -12816,18 +12930,18 @@ class hf {
12816
12930
  let r2;
12817
12931
  Rf = 0, Ff = 0, kf = 0, Df = 0;
12818
12932
  const s2 = this._precedentSpatial, i2 = this._formulaSpatial;
12819
- Mf = 0, Nf = 0;
12933
+ Mf = 0, Tf = 0;
12820
12934
  const a2 = this._cycleId, l2 = e2.length;
12821
12935
  for (let t3 = 0; t3 < l2; t3++) {
12822
12936
  const r3 = e2[t3];
12823
- r3.markId !== n2 && (r3.markId = n2, r3.cycleId = a2, r3.inDegree = 0, If[Rf++] = r3, Af[Nf++] = r3);
12937
+ r3.markId !== n2 && (r3.markId = n2, r3.cycleId = a2, r3.inDegree = 0, If[Rf++] = r3, Af[Tf++] = r3);
12824
12938
  }
12825
12939
  const c2 = (e3, n3, o2) => {
12826
12940
  (t2 || e3.state === vh) && (r2 || (r2 = []), r2.push(n3), t2 || o2(e3));
12827
12941
  }, h2 = (t3) => {
12828
- t3.markId !== n2 && (t3.markId = n2, t3.cycleId = a2, t3.inDegree = 0, If[Rf++] = t3, Af[Nf++] = t3);
12942
+ t3.markId !== n2 && (t3.markId = n2, t3.cycleId = a2, t3.inDegree = 0, If[Rf++] = t3, Af[Tf++] = t3);
12829
12943
  };
12830
- for (; Mf < Nf; ) {
12944
+ for (; Mf < Tf; ) {
12831
12945
  const t3 = Af[Mf++], e3 = t3.colIndex, n3 = t3.rowIndex;
12832
12946
  ff.colStart = e3, ff.rowStart = n3, ff.colEnd = e3, ff.rowEnd = n3;
12833
12947
  const r3 = s2.search(ff), i3 = r3.length;
@@ -12863,13 +12977,13 @@ class hf {
12863
12977
  }
12864
12978
  }
12865
12979
  }
12866
- e3.inDegree = l3, 0 === e3.inDegree && (Tf[kf++] = e3);
12980
+ e3.inDegree = l3, 0 === e3.inDegree && (Nf[kf++] = e3);
12867
12981
  }
12868
12982
  const d2 = (t3) => {
12869
- t3.markId === n2 && (t3.inDegree--, 0 === t3.inDegree && (Tf[kf++] = t3));
12983
+ t3.markId === n2 && (t3.inDegree--, 0 === t3.inDegree && (Nf[kf++] = t3));
12870
12984
  };
12871
12985
  for (; Ff < kf; ) {
12872
- const t3 = Tf[Ff++];
12986
+ const t3 = Nf[Ff++];
12873
12987
  Of[Df++] = t3;
12874
12988
  const e3 = t3.colIndex, n3 = t3.rowIndex;
12875
12989
  ff.colStart = e3, ff.rowStart = n3, ff.colEnd = e3, ff.rowEnd = n3;
@@ -12927,13 +13041,13 @@ class hf {
12927
13041
  }
12928
13042
  C2.pendingPrecedents = A2;
12929
13043
  }
12930
- const N2 = S2 ? v2 : x2, T2 = S2 ? x2 : v2;
13044
+ const T2 = S2 ? v2 : x2, N2 = S2 ? x2 : v2;
12931
13045
  o2.node = C2, o2.colIndex = v2, o2.rowIndex = x2;
12932
13046
  const F2 = b2.formula;
12933
13047
  let k2, O2;
12934
13048
  const D2 = C2.pending;
12935
13049
  let B2 = D2;
12936
- 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)) {
13050
+ 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)) {
12937
13051
  O2.__originator = l2;
12938
13052
  const t3 = C2;
12939
13053
  xf.add(t3), t3.pendingPromise = O2, t3.pendingResolved = false, O2.then((e3) => {
@@ -12944,24 +13058,24 @@ class hf {
12944
13058
  }, (t4) => {
12945
13059
  });
12946
13060
  }
12947
- let L2 = 1, z2 = 1;
12948
- const P2 = I2 instanceof oc;
12949
- let H2;
12950
- const W2 = I2 instanceof n.Spill;
12951
- if (P2 || W2) {
13061
+ let L2 = 1, P2 = 1;
13062
+ const z2 = I2 instanceof oc;
13063
+ let W2;
13064
+ const H2 = I2 instanceof n.Spill;
13065
+ if (z2 || H2) {
12952
13066
  wf.colStart = v2, wf.rowStart = x2, wf.colEnd = v2, wf.rowEnd = x2;
12953
13067
  const t3 = f2.search(wf);
12954
- for (let e3 = 0; !H2 && e3 < t3.length; e3++) {
13068
+ for (let e3 = 0; !W2 && e3 < t3.length; e3++) {
12955
13069
  const n2 = t3[e3];
12956
- n2.colStart === v2 && n2.rowStart === x2 && (H2 = n2);
13070
+ n2.colStart === v2 && n2.rowStart === x2 && (W2 = n2);
12957
13071
  }
12958
- if (H2) {
12959
- if (P2) {
13072
+ if (W2) {
13073
+ if (z2) {
12960
13074
  const t5 = I2;
12961
- L2 = t5.getWidth(), z2 = t5.getHeight();
13075
+ L2 = t5.getWidth(), P2 = t5.getHeight();
12962
13076
  }
12963
- const t4 = { colStart: v2, rowStart: x2, colEnd: v2 + L2 - 1, rowEnd: x2 + z2 - 1 };
12964
- f2.remove(H2), H2 && H2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
13077
+ const t4 = { colStart: v2, rowStart: x2, colEnd: v2 + L2 - 1, rowEnd: x2 + P2 - 1 };
13078
+ f2.remove(W2), W2 && W2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
12965
13079
  }
12966
13080
  }
12967
13081
  let V2 = 1, $2 = 1;
@@ -12980,14 +13094,14 @@ class hf {
12980
13094
  let s3, i3;
12981
13095
  if (J2) {
12982
13096
  k2 = n.BuiltIn.Spill, V2 = 1, $2 = 1;
12983
- s3 = [[N2, [[T2, [k2]]]]], p2.setValues(s3), i3 = { colStart: v2, rowStart: x2, colEnd: v2, rowEnd: x2 };
13097
+ s3 = [[T2, [[N2, [k2]]]]], p2.setValues(s3), i3 = { colStart: v2, rowStart: x2, colEnd: v2, rowEnd: x2 };
12984
13098
  } else {
12985
- const e4 = af(j2, N2, T2);
13099
+ const e4 = af(j2, T2, N2);
12986
13100
  e4 && (s3 = e4.tuples), s3 && p2.setValues(s3), i3 = t3;
12987
13101
  }
12988
13102
  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) });
12989
13103
  }
12990
- (!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);
13104
+ (!c.isEqualRanges(W2, U2) || J2 || H2) && (W2 && g2.insert(W2), U2 && g2.insert(U2)), V2 === L2 && $2 === P2 || (C2.state = xh, h2.insertNonOverlapping({ colStart: v2, rowStart: x2, colEnd: v2 + Math.max(V2, L2) - 1, rowEnd: x2 + Math.max($2, P2) - 1 }), a2 = false);
12991
13105
  let q2 = k2 && k2.isFormulaError ? k2 : null;
12992
13106
  F2.getError() && (q2 = F2.getError()), (q2 || R2 && !t2) && (q2 && !q2.equals(R2) || R2 && R2.equals(q2)), C2.cachedValue = k2, s2[i2++] = C2;
12993
13107
  }
@@ -13274,13 +13388,13 @@ let Ef = 0;
13274
13388
  const Cf = 1e4, bf = new Array(Cf), vf = new Array(Cf), xf = /* @__PURE__ */ new Set(), If = new Array(Cf);
13275
13389
  let Rf = 0;
13276
13390
  const Af = new Array(Cf);
13277
- let Mf = 0, Nf = 0;
13278
- const Tf = new Array(Cf);
13391
+ let Mf = 0, Tf = 0;
13392
+ const Nf = new Array(Cf);
13279
13393
  let Ff = 0, kf = 0;
13280
13394
  const Of = new Array(Cf);
13281
13395
  let Df = 0;
13282
- 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 });
13283
- function Wf(t2, e2, n2, r2) {
13396
+ const Bf = new Array(Cf), Lf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Pf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, zf = [null, null], Wf = Object.freeze({ inserts: o.EmptyArray, removes: o.EmptyArray });
13397
+ function Hf(t2, e2, n2, r2) {
13284
13398
  const o2 = t2;
13285
13399
  if (o2?.getSplit) {
13286
13400
  const t3 = o2.getSplit(e2, n2, r2);
@@ -13297,9 +13411,9 @@ class Vf {
13297
13411
  this._instanceScope = t2;
13298
13412
  }
13299
13413
  async _initialize() {
13300
- const t2 = await st._validate(true), e2 = jf();
13414
+ const t2 = await it._validate(true), e2 = jf();
13301
13415
  this._calcScope = e2, this._runtime = new $f(this._options, t2);
13302
- const { initializeBuiltIns: n2 } = await import("./PWC-IfMc5cNOks4D.mjs"), r2 = this;
13416
+ const { initializeBuiltIns: n2 } = await import("./CV4lgmXng9GwC7Jc.mjs"), r2 = this;
13303
13417
  return this._builtInFunctions = Object.freeze(n2(() => r2)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
13304
13418
  }
13305
13419
  getBuiltInFunctions() {
@@ -13472,7 +13586,7 @@ class $f {
13472
13586
  }
13473
13587
  getVersion() {
13474
13588
  try {
13475
- const t2 = "0.6.16";
13589
+ const t2 = "0.6.17";
13476
13590
  if (-1 === t2.indexOf(".env.")) return `${t2}`;
13477
13591
  } catch (t2) {
13478
13592
  return "local";
@@ -14016,7 +14130,7 @@ class fp extends Yi {
14016
14130
  this._context = r2;
14017
14131
  const o2 = await r2._initialize(), s2 = o2.builtInFunctions;
14018
14132
  this._functions = new mp({ transactions: this._transactions, context: r2, readonlyFunctions: s2 });
14019
- const i2 = await import("./0VNBUAjGhg3IHPRC.mjs");
14133
+ const i2 = await import("./CduvvHyonYr0CJdM.mjs");
14020
14134
  this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status = Zm.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
14021
14135
  } catch (t2) {
14022
14136
  throw this._status = Zm.Status.Off, this._emitter.notify("onError", t2), this._emitter.notify("onStatusChange"), t2;
@@ -14224,7 +14338,7 @@ const Ap = (t2) => {
14224
14338
  }
14225
14339
  }
14226
14340
  return n2;
14227
- }, Np = (t2, e2, n2) => {
14341
+ }, Tp = (t2, e2, n2) => {
14228
14342
  try {
14229
14343
  let r2 = null, o2 = null;
14230
14344
  const s2 = (t3) => ((t4, e3) => {
@@ -14371,7 +14485,7 @@ const Ap = (t2) => {
14371
14485
  throw console.warn(t3), t3;
14372
14486
  }
14373
14487
  };
14374
- class Tp {
14488
+ class Np {
14375
14489
  constructor(t2) {
14376
14490
  if (!t2) throw new u("snapshot is required.");
14377
14491
  this._snapshot = t2;
@@ -14455,7 +14569,7 @@ class Fp {
14455
14569
  });
14456
14570
  }))(e2) : [[]]);
14457
14571
  let s2;
14458
- if (Np(n2, o2, r2) ? (t2 = r2.sheet(), s2 = t2.getUsedRange()) : n2 = null, s2) return this._parsed = { async copyTo(t3, e3) {
14572
+ if (Tp(n2, o2, r2) ? (t2 = r2.sheet(), s2 = t2.getUsedRange()) : n2 = null, s2) return this._parsed = { async copyTo(t3, e3) {
14459
14573
  const n3 = await t3.copyFrom(s2, e3);
14460
14574
  return n3?.getCoords() ?? null;
14461
14575
  }, getCoords: () => s2.getCoords(), getSource: () => t2, getName: () => t2.getName() }, true;
@@ -14825,7 +14939,7 @@ class Lp extends Qi {
14825
14939
  t2 && t2.removeListener?.(), super._processDelete();
14826
14940
  }
14827
14941
  }
14828
- 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) => {
14942
+ const Pp = "Item must be specified.", zp = "Name must be a non-empty string", Wp = (t2, e2 = null) => `Named item '${t2}' already exists${e2 ? `in scope ${e2}` : ""}.`, Hp = (t2) => {
14829
14943
  const e2 = [];
14830
14944
  for (let n2 = 0; n2 < t2.getCount(); n2++) {
14831
14945
  let r2 = null;
@@ -14901,7 +15015,7 @@ class jp {
14901
15015
  const n2 = this._getState();
14902
15016
  if (!n2) return null;
14903
15017
  if (0 === n2.itemsByKey.size) return null;
14904
- const r2 = Wp(e2), o2 = n2.itemsByFullRange.get(r2);
15018
+ const r2 = Hp(e2), o2 = n2.itemsByFullRange.get(r2);
14905
15019
  if (!o2) return null;
14906
15020
  const s2 = [];
14907
15021
  return o2.forEach((t3) => {
@@ -14951,14 +15065,14 @@ class jp {
14951
15065
  }
14952
15066
  _validateName(t2, e2, n2 = false) {
14953
15067
  if (this._closed) throw new Error(qi);
14954
- if (!t2 || 0 === t2.length) throw new Error(Pp);
15068
+ if (!t2 || 0 === t2.length) throw new Error(zp);
14955
15069
  if (t2.length > 255) throw new Error("Name must not exceed 255 characters.");
14956
15070
  if (-1 !== t2.indexOf(" ")) throw new Error("Name must not contain any spaces.");
14957
15071
  const r2 = t2.trim().toLowerCase(), o2 = r2.substring(1, t2.length - 1);
14958
15072
  if (new RegExp(Vp).test(r2[0])) throw new Error("First letter must be either a letter, an underscore, or a backslash.");
14959
15073
  if (new RegExp($p).test(o2)) throw new Error("Name must be either letters, numbers, periods or underscores.");
14960
15074
  if (1 === r2.length && ("r" === r2[0] || "c" === r2[0])) throw new Error("Name can not be 'r' or 'c'.");
14961
- if (((t3, e3 = Nc, n3 = Mc, r3 = false) => {
15075
+ if (((t3, e3 = Tc, n3 = Mc, r3 = false) => {
14962
15076
  let o3 = oh(t3, r3);
14963
15077
  if (!o3) return false;
14964
15078
  if (o3[2]) return false;
@@ -14975,7 +15089,7 @@ class jp {
14975
15089
  const i2 = this._getState()?.itemsByKey.get(s2);
14976
15090
  if (i2) {
14977
15091
  const r3 = i2.item.getRanges();
14978
- if (!n2 || r3 || r3.getCount() > 0) throw new Error(Hp(t2, e2));
15092
+ if (!n2 || r3 || r3.getCount() > 0) throw new Error(Wp(t2, e2));
14979
15093
  }
14980
15094
  }
14981
15095
  addReference(t2, e2, n2 = false) {
@@ -14984,7 +15098,7 @@ class jp {
14984
15098
  const i2 = this._beginCommit(`${o2 && n2 ? "Update" : "Insert"} Named '${t2}'`);
14985
15099
  try {
14986
15100
  if (o2) {
14987
- if (!n2) throw new Error(Hp(t2));
15101
+ if (!n2) throw new Error(Wp(t2));
14988
15102
  this._delete(o2, { description: `Delete Named '${o2.getName()}'` });
14989
15103
  }
14990
15104
  s2 = new Lp({ value: r2, addressToRanges: this._options.addressToRanges, json: { name: t2, ref: r2.toString() }, transactions: this._transactions }), this.add(s2), i2.commit();
@@ -14995,7 +15109,7 @@ class jp {
14995
15109
  }
14996
15110
  add(t2) {
14997
15111
  if (this._closed) throw new Error(qi);
14998
- if (!t2) throw new Error(zp);
15112
+ if (!t2) throw new Error(Pp);
14999
15113
  if (!t2.getName || "string" == typeof t2) throw new Error("Add must take a 'INamed' object. To add a string use 'addReference'.");
15000
15114
  if (this._validateName(t2.getName(), t2.getScope(), false), this._options.isReadOnly?.()) throw new Error("Names are read-only.");
15001
15115
  const e2 = this._beginCommit(`Insert Named Item '${t2.getName()}'`), n2 = this._add([t2]);
@@ -15008,7 +15122,7 @@ class jp {
15008
15122
  return e2.startsWith("_xlnm.") && (e2 = e2.substring(6)), t2.getScope() ? e2 + ":" + t2.getScope().toLowerCase() : e2;
15009
15123
  }
15010
15124
  _delete(t2, e2) {
15011
- if (!t2) throw new Error(zp);
15125
+ if (!t2) throw new Error(Pp);
15012
15126
  if (this._closed) throw new Error(qi);
15013
15127
  const n2 = this._beginCommit(e2?.description ?? `Delete Named Item '${t2.getName()}'`);
15014
15128
  let r2 = null;
@@ -15057,7 +15171,7 @@ class jp {
15057
15171
  const i2 = this._toKey(e2);
15058
15172
  if (o2) {
15059
15173
  const { asFullRange: a3, asPartialRanges: l3, asRanges: c3 } = ((t4) => {
15060
- const e3 = t4.getCoords(), n3 = Wp(t4), r4 = n3.split(",");
15174
+ const e3 = t4.getCoords(), n3 = Hp(t4), r4 = n3.split(",");
15061
15175
  return { asFullRange: n3, asPartialRanges: r4, asRanges: e3 };
15062
15176
  })(o2);
15063
15177
  if (r3 = a3, s2 = l3, c3) {
@@ -15094,7 +15208,7 @@ class jp {
15094
15208
  const n2 = this._cloneState(), r2 = t2.length;
15095
15209
  for (let e3 = 0; e3 < r2; e3++) {
15096
15210
  const r3 = t2[e3];
15097
- if (!r3.getName()) throw new Error(Pp);
15211
+ if (!r3.getName()) throw new Error(zp);
15098
15212
  const o2 = this._toKey(r3);
15099
15213
  try {
15100
15214
  this._index(o2, r3, n2);
@@ -16143,7 +16257,7 @@ class E_ {
16143
16257
  }, getA1(t3) {
16144
16258
  if (!_2) throw new Error(jh);
16145
16259
  return this._parseHeaderRangeAddress({ min: i2 + t3, end: i2 + t3 }) ?? _2;
16146
- } }, w2 = Ts(e2, (e3) => {
16260
+ } }, w2 = Ns(e2, (e3) => {
16147
16261
  const n3 = e3.value;
16148
16262
  if (!l2 && !n3) return;
16149
16263
  let r3 = l2;
@@ -16183,7 +16297,7 @@ class E_ {
16183
16297
  }, forEachSpan: (t3, e3) => o2(t3, e3, this._headers), forEachVisibleSpan: (t3, e3) => {
16184
16298
  const n3 = r2?.min ?? null, o3 = r2?.max ?? null;
16185
16299
  let s3;
16186
- if (s3 = e3?.includeHidden ? t3(n3, o3) : Ts(this._indexedHidden, (e4) => {
16300
+ if (s3 = e3?.includeHidden ? t3(n3, o3) : Ns(this._indexedHidden, (e4) => {
16187
16301
  if (e4.value) return;
16188
16302
  const n4 = t3(e4.min, e4.max);
16189
16303
  return n4 && n4.break ? n4 : void 0;
@@ -16216,7 +16330,7 @@ class E_ {
16216
16330
  at(t2) {
16217
16331
  if (t2 < 0 || t2 > this._maxDataIndex) return this._emptyHeader;
16218
16332
  if (this._lastHeaderRead?.offset === t2) return this._lastHeaderRead.header;
16219
- const e2 = Ns(t2, this._readCache);
16333
+ const e2 = Ts(t2, this._readCache);
16220
16334
  if (!e2) return this._emptyHeader;
16221
16335
  const n2 = this._options.getTextAt?.(t2) ?? t2 + "", r2 = this._options.createCellHeader(this, e2, { value: n2 });
16222
16336
  return this._lastHeaderRead = { offset: t2, header: r2 }, r2;
@@ -16722,8 +16836,8 @@ class R_ {
16722
16836
  processMerge(t2) {
16723
16837
  }
16724
16838
  }
16725
- 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 });
16726
- class T_ {
16839
+ 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 });
16840
+ class N_ {
16727
16841
  constructor(t2) {
16728
16842
  if (this._emitter = null, !t2?.sheet) throw new Error("SheetView requires a sheet.");
16729
16843
  const e2 = new Xi(this);
@@ -16852,13 +16966,13 @@ class T_ {
16852
16966
  const t2 = {}, e2 = Object.keys(this._state);
16853
16967
  for (let n3 = 0; n3 < e2.length; n3++) {
16854
16968
  const r2 = this._state[e2[n3]];
16855
- null != r2 && r2 !== N_[e2[n3]] && (t2[e2[n3]] = r2);
16969
+ null != r2 && r2 !== T_[e2[n3]] && (t2[e2[n3]] = r2);
16856
16970
  }
16857
16971
  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;
16858
16972
  const n2 = this._state.selection;
16859
16973
  if (n2) {
16860
16974
  let e3 = {};
16861
- !n2.cell || 0 === n2.cell.colIndex && 0 === n2.cell.rowIndex || (e3.cell = zc(n2.cell)), n2.ranges && n2.ranges.length > 0 && (e3.ranges = Kc(n2.ranges), void 0 !== n2.rangeIndex && -1 !== n2.rangeIndex && 0 !== n2.rangeIndex && (e3.rangeIndex = n2.rangeIndex)), Object.keys(e3).length > 0 && (t2.selection = e3);
16975
+ !n2.cell || 0 === n2.cell.colIndex && 0 === n2.cell.rowIndex || (e3.cell = Pc(n2.cell)), n2.ranges && n2.ranges.length > 0 && (e3.ranges = Kc(n2.ranges), void 0 !== n2.rangeIndex && -1 !== n2.rangeIndex && 0 !== n2.rangeIndex && (e3.rangeIndex = n2.rangeIndex)), Object.keys(e3).length > 0 && (t2.selection = e3);
16862
16976
  }
16863
16977
  if (delete t2.freezePanes, this._state.freezePanes && (0 !== this._state.freezePanes.coords.colIndex || 0 !== this._state.freezePanes.coords.rowIndex)) {
16864
16978
  const e3 = {};
@@ -16902,17 +17016,17 @@ class T_ {
16902
17016
  this.update(e2);
16903
17017
  }
16904
17018
  clear(t2 = true) {
16905
- return this._state = { ...N_ }, this._movableSelection = Object.freeze([]), t2 && this._notifyAll(), this;
17019
+ return this._state = { ...T_ }, this._movableSelection = Object.freeze([]), t2 && this._notifyAll(), this;
16906
17020
  }
16907
17021
  update(t2) {
16908
- 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;
17022
+ 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;
16909
17023
  }
16910
17024
  get isISheetView() {
16911
17025
  return true;
16912
17026
  }
16913
17027
  }
16914
17028
  async function F_() {
16915
- const { getCrypto: t2 } = await import("./C61hKIygirc2mSxV.mjs");
17029
+ const { getCrypto: t2 } = await import("./C4eGsdqRlRQklHCI.mjs");
16916
17030
  return t2();
16917
17031
  }
16918
17032
  const k_ = async (t2, e2, ...n2) => {
@@ -17054,8 +17168,8 @@ class L_ {
17054
17168
  return t2 = this._toJSON(t2) ?? {}, this._password && (t2.password = this._password), this._identities && (t2.identities = this._identities), t2;
17055
17169
  }
17056
17170
  }
17057
- const z_ = Object.freeze({ selectLockedCells: true, selectUnlockedCells: true, autoFilter: false, deleteColumns: false, deleteRows: false, formatCells: false, formatColumns: false, formatRows: false, insertColumns: false, insertHyperlinks: false, insertRows: false, objects: false, pivotTables: false, scenarios: false, sheet: false, sort: false, verifier: null });
17058
- class P_ extends L_ {
17171
+ const P_ = Object.freeze({ selectLockedCells: true, selectUnlockedCells: true, autoFilter: false, deleteColumns: false, deleteRows: false, formatCells: false, formatColumns: false, formatRows: false, insertColumns: false, insertHyperlinks: false, insertRows: false, objects: false, pivotTables: false, scenarios: false, sheet: false, sort: false, verifier: null });
17172
+ class z_ extends L_ {
17059
17173
  isAutoFilterAllowed() {
17060
17174
  return this._isPropertyAllowed("autoFilter");
17061
17175
  }
@@ -17117,23 +17231,23 @@ class P_ extends L_ {
17117
17231
  const n2 = Object.keys(e2);
17118
17232
  for (let r2 = 0; r2 < n2.length; r2++) {
17119
17233
  const o2 = e2[n2[r2]];
17120
- null != o2 && o2 !== z_[n2[r2]] && (t2[n2[r2]] = o2);
17234
+ null != o2 && o2 !== P_[n2[r2]] && (t2[n2[r2]] = o2);
17121
17235
  }
17122
17236
  }
17123
17237
  return super._toJSON(t2);
17124
17238
  }
17125
17239
  }
17126
- class H_ {
17240
+ class W_ {
17127
17241
  constructor(t2, e2, n2) {
17128
17242
  this._coords = Object.freeze(t2), this._sheet = e2, this._readOnly = n2?.readOnly ?? null;
17129
17243
  }
17130
17244
  _createRanges(t2, e2) {
17131
17245
  let n2 = this._options;
17132
- return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new H_(t2, this._sheet, n2);
17246
+ return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new W_(t2, this._sheet, n2);
17133
17247
  }
17134
17248
  _createRange(t2, e2) {
17135
17249
  let n2 = this._options;
17136
- return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new W_(t2, this._sheet, n2);
17250
+ return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new H_(t2, this._sheet, n2);
17137
17251
  }
17138
17252
  _validateWrite() {
17139
17253
  const t2 = this._readOnly;
@@ -17213,8 +17327,8 @@ class H_ {
17213
17327
  clear(t2, e2) {
17214
17328
  return this._validateWrite(), this._sheet._clear(this.getCoords(), t2, e2), this;
17215
17329
  }
17216
- updateStyle(t2, e2) {
17217
- return this._validateWrite(), this._sheet._updateStyles(this.getCoords(), t2, e2), this;
17330
+ getStyle() {
17331
+ return this._sheet._getStyle(this.getCoords());
17218
17332
  }
17219
17333
  merge(t2) {
17220
17334
  return this._validateWrite(), this._sheet._merge(this.getCoords(), t2), this;
@@ -17250,10 +17364,10 @@ class H_ {
17250
17364
  return this._sheet._getSnapshot(this.getCoords(), t2);
17251
17365
  }
17252
17366
  getEntireRows(t2, n2) {
17253
- return this._createRanges(Hg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Column, t2), n2);
17367
+ return this._createRanges(Wg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Column, t2), n2);
17254
17368
  }
17255
17369
  getEntireColumns(t2, n2) {
17256
- return this._createRanges(Hg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Row, t2), n2);
17370
+ return this._createRanges(Wg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Row, t2), n2);
17257
17371
  }
17258
17372
  getDefaultShiftOrientation() {
17259
17373
  return this._sheet._getDefaultShiftOrientation(this.getCoords()[0]);
@@ -17274,13 +17388,13 @@ class H_ {
17274
17388
  return $g(this.getCoords(), e.Orientation.Column);
17275
17389
  }
17276
17390
  isEntireRowsAny() {
17277
- return Wg(this.getCoords(), this._sheet._entireCoords, false);
17391
+ return Hg(this.getCoords(), this._sheet._entireCoords, false);
17278
17392
  }
17279
17393
  isEntireColumnsAny() {
17280
17394
  return Vg(this.getCoords(), this._sheet._entireCoords, false);
17281
17395
  }
17282
17396
  isEntireRows() {
17283
- return Wg(this.getCoords(), this._sheet._entireCoords, true);
17397
+ return Hg(this.getCoords(), this._sheet._entireCoords, true);
17284
17398
  }
17285
17399
  isEntireColumns() {
17286
17400
  return Vg(this.getCoords(), this._sheet._entireCoords, true);
@@ -17300,7 +17414,7 @@ class H_ {
17300
17414
  return false;
17301
17415
  }
17302
17416
  getA1() {
17303
- return Xc(this.getCoords(), this._sheet._entireCoords, jc, Pc);
17417
+ return Xc(this.getCoords(), this._sheet._entireCoords, jc, zc);
17304
17418
  }
17305
17419
  getSheet() {
17306
17420
  return this._sheet;
@@ -17318,7 +17432,7 @@ class H_ {
17318
17432
  return true;
17319
17433
  }
17320
17434
  }
17321
- class W_ {
17435
+ class H_ {
17322
17436
  constructor(t2, e2, n2) {
17323
17437
  this._coords = Object.freeze(t2), this._sheet = e2, this._readOnly = n2?.readOnly ?? null;
17324
17438
  }
@@ -17330,11 +17444,11 @@ class W_ {
17330
17444
  if (!t2) return Zg(n2, n2._entireCoords);
17331
17445
  if (n2._validateCoords(t2), n2._closed) return Zg(null, n2._entireCoords, t2);
17332
17446
  let r2 = this._options;
17333
- return e2 && (r2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new W_(t2, this._sheet, r2);
17447
+ return e2 && (r2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new H_(t2, this._sheet, r2);
17334
17448
  }
17335
17449
  _createRanges(t2, e2) {
17336
17450
  let n2 = this._options;
17337
- return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new H_(t2, this._sheet, n2);
17451
+ return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new W_(t2, this._sheet, n2);
17338
17452
  }
17339
17453
  _deriveRanges(t2, e2) {
17340
17454
  const n2 = this.getCoords();
@@ -17499,11 +17613,11 @@ class W_ {
17499
17613
  }
17500
17614
  getEntireRows(t2, n2) {
17501
17615
  const r2 = this._sheet;
17502
- return this._createRange(Hg([this.getCoords()], r2._entireCoords, e.Orientation.Column, t2)[0], n2);
17616
+ return this._createRange(Wg([this.getCoords()], r2._entireCoords, e.Orientation.Column, t2)[0], n2);
17503
17617
  }
17504
17618
  getEntireColumns(t2, n2) {
17505
17619
  const r2 = this._sheet;
17506
- return this._createRange(Hg([this.getCoords()], r2._entireCoords, e.Orientation.Row, t2)[0], n2);
17620
+ return this._createRange(Wg([this.getCoords()], r2._entireCoords, e.Orientation.Row, t2)[0], n2);
17507
17621
  }
17508
17622
  getRowHeaders(t2) {
17509
17623
  const e2 = this.getCoords();
@@ -17588,7 +17702,7 @@ class W_ {
17588
17702
  }
17589
17703
  isEntireRows() {
17590
17704
  const t2 = this._sheet;
17591
- return Wg([this.getCoords()], t2._entireCoords, true);
17705
+ return Hg([this.getCoords()], t2._entireCoords, true);
17592
17706
  }
17593
17707
  isEntireColumns() {
17594
17708
  const t2 = this._sheet;
@@ -17596,7 +17710,7 @@ class W_ {
17596
17710
  }
17597
17711
  isEntireRange() {
17598
17712
  const t2 = this.getCoords(), e2 = this._sheet;
17599
- return Vg([t2], e2._entireCoords, true) && Wg([t2], e2._entireCoords, true);
17713
+ return Vg([t2], e2._entireCoords, true) && Hg([t2], e2._entireCoords, true);
17600
17714
  }
17601
17715
  getWidth() {
17602
17716
  const t2 = this._coords;
@@ -17661,12 +17775,8 @@ class W_ {
17661
17775
  this._validateWrite();
17662
17776
  return this._sheet._setComments([this.getCoords()], t2, e2), this;
17663
17777
  }
17664
- updateStyle(t2, e2) {
17665
- this._validateWrite();
17666
- return this._sheet._updateStyles([this.getCoords()], t2, e2), this;
17667
- }
17668
17778
  getStyle() {
17669
- return this._sheet._getStyle(this.getCoords());
17779
+ return this._sheet._getStyle([this.getCoords()]);
17670
17780
  }
17671
17781
  merge(t2) {
17672
17782
  this._validateWrite();
@@ -17728,7 +17838,7 @@ class X_ {
17728
17838
  constructor(t2) {
17729
17839
  this._lastTransactionUUID = null, this._emitter = null, this._initializing = true, this._emitterMovables = null, this._rangesListenerSorted = null, this._lastCellDecoded = { address: null, coords: null }, this._lastCellSelected = { coords: null, cell: null }, this._lastCellRead = { coords: null, cell: null }, this._lastValueRead = { range: null, isDateOrTime: null }, this._lastGetRangeRead = {}, this._lastUsedCoordsRead = { coords: null, range: null }, this._lastActiveRead = { selection: null, range: null, ranges: null }, this._lastRangeRead = { address: null, range: null, ranges: null }, this._isDataColumn = true, this._isDate1904 = false, this._colHeaders = null, this._colHeadersShiftCallback = null, this._colHeadersListener = null, this._colHeadersRemoveListener = null, this._rowHeaders = null, this._rowHeadersShiftCallback = null, this._rowHeadersListener = null, this._rowHeadersRemoveListener = null, this._closed = false;
17730
17840
  const e2 = Object.freeze({ ...t2 });
17731
- st._validate(true), this._transactions = e2.transactions ?? new F(), this._ownTransactions = !e2.transactions;
17841
+ it._validate(true), this._transactions = e2.transactions ?? new F(), this._ownTransactions = !e2.transactions;
17732
17842
  const n2 = this._beginCommit({ description: "New Sheet" }), r2 = this;
17733
17843
  try {
17734
17844
  this._entireCoords = Object.freeze({ colStart: 0, rowStart: 0, colEnd: (e2.maxColumns ?? V_) - 1, rowEnd: (e2.maxRows ?? $_) - 1 }), this._strings = e2.strings ?? new Ym(), this._ownStrings = !e2.strings;
@@ -17780,7 +17890,7 @@ class X_ {
17780
17890
  if (this._validateCoords(t2), this._closed) return Zg(null, this._entireCoords, t2);
17781
17891
  null === n2 && this._options.readonly && (n2 = "Readonly sheet");
17782
17892
  let r2 = null;
17783
- return (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new W_(((t3) => {
17893
+ return (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new H_(((t3) => {
17784
17894
  if (!t3) return null;
17785
17895
  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 };
17786
17896
  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;
@@ -17788,7 +17898,7 @@ class X_ {
17788
17898
  }
17789
17899
  _createRanges(t2, e2, n2 = null) {
17790
17900
  let r2 = null;
17791
- return null === n2 && this._options.readonly && (n2 = "Readonly sheet"), (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new H_(t2, this, r2);
17901
+ return null === n2 && this._options.readonly && (n2 = "Readonly sheet"), (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new W_(t2, this, r2);
17792
17902
  }
17793
17903
  getRange(t2, e2) {
17794
17904
  let n2 = !e2 && t2 && (void 0 !== t2.rowStart || "string" == typeof t2);
@@ -18014,7 +18124,7 @@ class X_ {
18014
18124
  const i3 = n3.continuous;
18015
18125
  if ("string" == typeof s3 || i3) {
18016
18126
  cS.colStart = o3, cS.rowStart = r3, cS.colEnd = o3, cS.rowEnd = r3;
18017
- const e3 = Tg(0, cS, n3.intersection, _2);
18127
+ const e3 = Ng(0, cS, n3.intersection, _2);
18018
18128
  n3.style = e3;
18019
18129
  const a3 = Mg(r3, o3, t.String, e3, s3, null, null, i3?.getCoords(), _2);
18020
18130
  if (a3) {
@@ -18043,7 +18153,7 @@ class X_ {
18043
18153
  }
18044
18154
  const u2 = a2 || !t2?.ignoreEmptyIntersections;
18045
18155
  let g2 = t2.includeRangeTypes;
18046
- true === g2 && (g2 = Nh);
18156
+ true === g2 && (g2 = Th);
18047
18157
  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;
18048
18158
  let p2, _2;
18049
18159
  if (m2 && r2) {
@@ -18055,14 +18165,14 @@ class X_ {
18055
18165
  const C2 = n2?.cellValuesGrid ?? null;
18056
18166
  let b2 = C2 ? C2.entries(l2) : ia, v2 = b2.next(), x2 = null, I2 = null, R2 = null;
18057
18167
  v2.done || (x2 = v2.value[0], I2 = v2.value[1]);
18058
- let A2 = p2?.[y2++], M2 = f2.next(), N2 = null;
18059
- const T2 = s2 !== e.Orientation.Row;
18168
+ let A2 = p2?.[y2++], M2 = f2.next(), T2 = null;
18169
+ const N2 = s2 !== e.Orientation.Row;
18060
18170
  let F2;
18061
18171
  const k2 = c.createCellComparator(s2, i2);
18062
18172
  let O2;
18063
18173
  if (!M2.done) {
18064
18174
  const t3 = M2.value;
18065
- N2 = t3.intersection, O2 = t3.start;
18175
+ T2 = t3.intersection, O2 = t3.start;
18066
18176
  }
18067
18177
  F2 = (t3) => {
18068
18178
  let e2 = null, n3 = null, r3 = null, o3 = false, s3 = false, i3 = null, a3 = null, l3 = false;
@@ -18074,25 +18184,25 @@ class X_ {
18074
18184
  if (l3) e2 = { colIndex: A2.colIndex, rowIndex: A2.rowIndex }, n3 = A2.scalar, r3 = A2.intersection, A2 = p2[y2++];
18075
18185
  else if (x2 && O2) {
18076
18186
  const t4 = k2(x2, O2);
18077
- 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);
18187
+ 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);
18078
18188
  } else if (x2) e2 = x2, n3 = I2, o3 = true;
18079
18189
  else {
18080
18190
  if (!O2 || !u2) return sa;
18081
- e2 = O2, r3 = N2, s3 = true;
18191
+ e2 = O2, r3 = T2, s3 = true;
18082
18192
  }
18083
18193
  if (o3 && (v2 = b2.next(), v2.done ? x2 = null : (x2 = v2.value[0], I2 = v2.value[1])), s3) {
18084
18194
  const t4 = u2 ? void 0 : x2;
18085
- if (M2 = f2.next(t4), M2.done) O2 = null, N2 = null;
18195
+ if (M2 = f2.next(t4), M2.done) O2 = null, T2 = null;
18086
18196
  else {
18087
18197
  const t5 = M2.value;
18088
- N2 = t5.intersection, O2 = t5.cell;
18198
+ T2 = t5.intersection, O2 = t5.cell;
18089
18199
  }
18090
18200
  }
18091
18201
  let c2 = false;
18092
18202
  const h3 = e2.rowIndex, d3 = e2.colIndex;
18093
- T2 || (c2 = h3 === R2?.rowIndex);
18203
+ N2 || (c2 = h3 === R2?.rowIndex);
18094
18204
  let g3 = false;
18095
- if (T2 || (g3 = h3 === x2?.rowIndex), c2) i3 = R2;
18205
+ if (N2 || (g3 = h3 === x2?.rowIndex), c2) i3 = R2;
18096
18206
  else if (m2) {
18097
18207
  let t4 = false;
18098
18208
  for (; !t4 && E2 < w2; ) {
@@ -18218,24 +18328,24 @@ class X_ {
18218
18328
  let v2 = false;
18219
18329
  m2 && this._hasRangedEntries("unlockSpatial", E2) && (b2[Ah.Type.Unlock] = false, v2 = true), this._hasRangedEntries("mergeSpatial", E2) && (b2[Ah.Type.Merge] = false, v2 = true);
18220
18330
  const x2 = this._rangeStateIterator({ bounds: E2, orientation: g2, includeRangeTypes: b2, reuseIterator: { done: false, value: null } });
18221
- let I2 = x2.next(), R2 = -1, A2 = -1, M2 = -1, N2 = -1, T2 = null;
18331
+ let I2 = x2.next(), R2 = -1, A2 = -1, M2 = -1, T2 = -1, N2 = null;
18222
18332
  if (!I2.done) {
18223
18333
  const t3 = I2.value, e2 = t3.start, n3 = t3.end;
18224
- 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;
18334
+ 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;
18225
18335
  }
18226
18336
  let F2 = (t3, e2) => {
18227
18337
  do {
18228
- if (!T2 || t3 <= M2 && e2 < M2) return null;
18229
- if (t3 >= R2 && e2 >= M2 && t3 <= A2 && e2 <= N2) return T2;
18230
- if (I2 = x2.next(), I2.done) T2 = null, F2 = null, v2 = false;
18338
+ if (!N2 || t3 <= M2 && e2 < M2) return null;
18339
+ if (t3 >= R2 && e2 >= M2 && t3 <= A2 && e2 <= T2) return N2;
18340
+ if (I2 = x2.next(), I2.done) N2 = null, F2 = null, v2 = false;
18231
18341
  else {
18232
18342
  const t4 = I2.value;
18233
- 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;
18343
+ 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;
18234
18344
  }
18235
- } while (T2);
18236
- return T2;
18345
+ } while (N2);
18346
+ return N2;
18237
18347
  };
18238
- 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) => {
18348
+ const k2 = c2.getState(this), O2 = k2.cellValuesGrid.clone(), D2 = k2.calcGraph.clone(), B2 = k2.formulaSpatial.clone(), L2 = k2.spillSpatial.clone(), P2 = k2.pendingSpatial.clone(), z2 = k2.calcErrorsSpatial.clone(), W2 = k2.contentfulSpatial.clone(), H2 = bl(u2), V2 = bl(u2, (t3, e2) => {
18239
18349
  if (t3 === e2) return e2;
18240
18350
  }), $2 = bl(u2, (t3, e2) => {
18241
18351
  if (t3 === e2) return e2;
@@ -18300,7 +18410,7 @@ class X_ {
18300
18410
  const e4 = i5[t6];
18301
18411
  let r5 = null;
18302
18412
  if (v2 || "number" != typeof e4 ? (v2 || null !== e4 || s2) && (r5 = Q2(e4, n3, c3)) : r5 = e4, null == r5) {
18303
- if (null === r5 && W2.append(n3, c3), h3.length > 0) {
18413
+ if (null === r5 && H2.append(n3, c3), h3.length > 0) {
18304
18414
  const t7 = Y2(h3, p2);
18305
18415
  o4.push([l3, t7]), h3 = [];
18306
18416
  }
@@ -18315,10 +18425,10 @@ class X_ {
18315
18425
  }
18316
18426
  o4.length > 0 && q2.push([n3, o4]);
18317
18427
  }
18318
- const r3 = W2.done(), o3 = r3.length;
18428
+ const r3 = H2.done(), o3 = r3.length;
18319
18429
  for (let t4 = 0; t4 < o3; t4++) {
18320
18430
  const e2 = r3[t4];
18321
- O2.delete(r3[t4]), H2.insertNonOverlapping({ ...e2, value: null });
18431
+ O2.delete(r3[t4]), W2.insertNonOverlapping({ ...e2, value: null });
18322
18432
  const n3 = D2.delete(e2);
18323
18433
  this._updateFormulaSpatial(B2, null, n3);
18324
18434
  }
@@ -18330,11 +18440,11 @@ class X_ {
18330
18440
  g3 = this._updateFormulaSpatial(B2, t4.inserts, t4.removes, k2.directStyleSpatial);
18331
18441
  }
18332
18442
  const f3 = um(q2, u2), C3 = f3.length;
18333
- for (let t4 = 0; t4 < C3; t4++) H2.insertNonOverlapping(f3[t4]);
18443
+ for (let t4 = 0; t4 < C3; t4++) W2.insertNonOverlapping(f3[t4]);
18334
18444
  const b3 = V2.done();
18335
18445
  b3.length > 0 && this._updateStyles(b3), G2.length > 0 && this._merge(G2);
18336
18446
  const x3 = $2.done();
18337
- 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) {
18447
+ if (x3.length > 0 && this._setHyperlinks(x3), this._updateState({ cellValuesGrid: O2, contentfulSpatial: W2, calcGraph: D2, formulaSpatial: B2, spillSpatial: L2, pendingSpatial: P2, calcErrorsSpatial: z2 }), g3 && g3.length > 0 && this._updateStyles(g3, void 0, {}, true), n2?.autoFit) {
18338
18448
  const t4 = "boolean" == typeof n2.autoFit ? aS : n2.autoFit;
18339
18449
  this._autoFit([E2], t4);
18340
18450
  }
@@ -18406,8 +18516,8 @@ class X_ {
18406
18516
  }
18407
18517
  if (!w2) return;
18408
18518
  if (0 === S2.length) return;
18409
- const M2 = /* @__PURE__ */ new Map(), N2 = /* @__PURE__ */ new Map(), T2 = n2?.collators ?? ta.DefaultCollators, F2 = T2.length;
18410
- for (let t3 = 0; t3 < F2; t3++) M2.set(T2[t3].type, T2[t3].compare), N2.set(T2[t3].type, t3);
18519
+ const M2 = /* @__PURE__ */ new Map(), T2 = /* @__PURE__ */ new Map(), N2 = n2?.collators ?? ta.DefaultCollators, F2 = N2.length;
18520
+ for (let t3 = 0; t3 < F2; t3++) M2.set(N2[t3].type, N2[t3].compare), T2.set(N2[t3].type, t3);
18411
18521
  let k2 = null, O2 = null, D2 = null;
18412
18522
  S2.sort((t3, e2) => {
18413
18523
  const n3 = p2.length;
@@ -18420,14 +18530,14 @@ class X_ {
18420
18530
  const h3 = o3.getType(), d2 = s3.getType();
18421
18531
  let u3 = 0;
18422
18532
  if (h3 !== d2) {
18423
- let t4 = N2.get(h3);
18424
- u3 = N2.get(d2) - t4;
18533
+ let t4 = T2.get(h3);
18534
+ u3 = T2.get(d2) - t4;
18425
18535
  } else {
18426
18536
  let t4 = O2;
18427
18537
  if (k2 !== h3) {
18428
18538
  t4 = M2.get(h3), O2 = t4, k2 = h3;
18429
- let e3 = N2.get(d2);
18430
- const r4 = T2[e3].defaultOptions;
18539
+ let e3 = T2.get(d2);
18540
+ const r4 = N2[e3].defaultOptions;
18431
18541
  D2 = { ...r4, ...n4.collatorOptions };
18432
18542
  }
18433
18543
  u3 = t4(i3, a3, D2);
@@ -18439,21 +18549,21 @@ class X_ {
18439
18549
  const B2 = this._beginCommit({ description: r2 });
18440
18550
  let L2 = [u2];
18441
18551
  v2 || (L2 = this._getVisible(L2, { orientations: c2 ? e.Orientations.Row : e.Orientations.Column })), this._clear(L2, void 0, void 0, true);
18442
- const z2 = this._createIncrementalUpdater({ orientation: l2 });
18443
- let P2 = c2 ? u2.rowStart : u2.colStart;
18444
- const H2 = S2.length;
18445
- for (let t3 = 0; t3 < H2; t3++) {
18552
+ const P2 = this._createIncrementalUpdater({ orientation: l2 });
18553
+ let z2 = c2 ? u2.rowStart : u2.colStart;
18554
+ const W2 = S2.length;
18555
+ for (let t3 = 0; t3 < W2; t3++) {
18446
18556
  const e2 = S2[t3];
18447
- if (b2 && (P2 = b2(P2)), e2) {
18557
+ if (b2 && (z2 = b2(z2)), e2) {
18448
18558
  const t4 = e2.values, n3 = t4.length;
18449
18559
  for (let e3 = 0; e3 < n3; e3++) {
18450
- const n4 = t4[e3], r3 = c2 ? P2 : n4.getCoords().rowIndex, o3 = c2 ? n4.getCoords().colIndex : P2;
18451
- z2.pushAt(r3, o3, n4);
18560
+ const n4 = t4[e3], r3 = c2 ? z2 : n4.getCoords().rowIndex, o3 = c2 ? n4.getCoords().colIndex : z2;
18561
+ P2.pushAt(r3, o3, n4);
18452
18562
  }
18453
18563
  }
18454
- P2 += I2;
18564
+ z2 += I2;
18455
18565
  }
18456
- return z2.apply(), B2.commit(), u2;
18566
+ return P2.apply(), B2.commit(), u2;
18457
18567
  }
18458
18568
  _autoFill(t2, n2, r2) {
18459
18569
  const { direction: o2, amount: s2 } = ((t3, n3) => {
@@ -18469,7 +18579,7 @@ class X_ {
18469
18579
  const p2 = { ...t2 };
18470
18580
  let _2 = { ...t2 };
18471
18581
  const S2 = [t2], w2 = this._getMerges(S2);
18472
- if (w2.length > 0 && !c.isRangeWithinRange(c.unionRangesArrays(w2), t2)) throw new Error(Wh);
18582
+ if (w2.length > 0 && !c.isRangeWithinRange(c.unionRangesArrays(w2), t2)) throw new Error(Hh);
18473
18583
  const y2 = { ..._2 };
18474
18584
  let E2 = 1;
18475
18585
  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;
@@ -18480,20 +18590,20 @@ class X_ {
18480
18590
  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;
18481
18591
  }
18482
18592
  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));
18483
- 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;
18484
- N2 || (g2.reverse = true);
18485
- const T2 = N2 ? R2 + 1 : A2, F2 = (N2 ? M2 : I2 - 1) - T2 + 1, k2 = i2 ? t2.colEnd : t2.rowEnd;
18593
+ 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;
18594
+ T2 || (g2.reverse = true);
18595
+ const N2 = T2 ? R2 + 1 : A2, F2 = (T2 ? M2 : I2 - 1) - N2 + 1, k2 = i2 ? t2.colEnd : t2.rowEnd;
18486
18596
  l2.push(c.unionRanges(p2, t2));
18487
18597
  const O2 = [];
18488
18598
  let D2 = null;
18489
18599
  h2 || (m2 = this._beginCommit({ description: "Auto Fill", operation: { name: "autoFill", params: [t2, n2, r2] } }));
18490
- const B2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !N2, orientation: i2 ? e.Orientation.Column : e.Orientation.Row, includeRangeTypes: { [Ah.Type.Style]: false } });
18600
+ const B2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !T2, orientation: i2 ? e.Orientation.Column : e.Orientation.Row, includeRangeTypes: { [Ah.Type.Style]: false } });
18491
18601
  let L2 = B2.next();
18492
18602
  for (; !L2.done; ) {
18493
18603
  const t3 = L2.value.context, e2 = t3.getCell(), n3 = t3.getCoords();
18494
- D2?.oppositeIndex !== n3[v2] && (D2 = { oppositeIndex: n3[v2], lastIndex: N2 ? I2 - 1 : R2 + 1, values: [] }, O2.push(D2));
18604
+ D2?.oppositeIndex !== n3[v2] && (D2 = { oppositeIndex: n3[v2], lastIndex: T2 ? I2 - 1 : R2 + 1, values: [] }, O2.push(D2));
18495
18605
  const r3 = n3[C2];
18496
- if (N2) for (let t4 = D2.lastIndex + 1; t4 < r3; t4++) D2.values.push(null);
18606
+ if (T2) for (let t4 = D2.lastIndex + 1; t4 < r3; t4++) D2.values.push(null);
18497
18607
  else for (let t4 = D2.lastIndex - 1; t4 > r3; t4--) D2.values.push(null);
18498
18608
  D2.lastIndex = r3;
18499
18609
  const o3 = e2.toDate();
@@ -18504,45 +18614,45 @@ class X_ {
18504
18614
  }
18505
18615
  L2 = B2.next();
18506
18616
  }
18507
- const z2 = O2.length;
18508
- for (let t3 = 0; t3 < z2; t3++) {
18617
+ const P2 = O2.length;
18618
+ for (let t3 = 0; t3 < P2; t3++) {
18509
18619
  const e2 = O2[t3].values;
18510
18620
  for (let t4 = e2.length; t4 < x2; t4++) e2.push(null);
18511
18621
  }
18512
- const P2 = (t3, e2) => {
18622
+ const z2 = (t3, e2) => {
18513
18623
  if (t3.canFill(e2[0], [])) {
18514
18624
  const n3 = t3.createFillAt(e2, g2);
18515
18625
  if (n3) return n3;
18516
18626
  }
18517
18627
  return ks.Types.Copy.createFillAt(e2);
18518
- }, H2 = this;
18628
+ }, W2 = this;
18519
18629
  if (h2) {
18520
18630
  const t3 = O2[O2.length - 1];
18521
18631
  if (O2[O2.length - 1]?.oppositeIndex !== k2) return null;
18522
- const n3 = P2(u2, t3.values);
18632
+ const n3 = z2(u2, t3.values);
18523
18633
  return h2((t4) => {
18524
- const r3 = H2._rangeToCoords(t4);
18634
+ const r3 = W2._rangeToCoords(t4);
18525
18635
  let s3;
18526
18636
  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 });
18527
- const a3 = i2 ? s3.rowIndex : s3.colIndex, l3 = { value: n3(N2 ? a3 - I2 : I2 - a3 + x2 - 1) };
18637
+ const a3 = i2 ? s3.rowIndex : s3.colIndex, l3 = { value: n3(T2 ? a3 - I2 : I2 - a3 + x2 - 1) };
18528
18638
  let c2 = null;
18529
18639
  return c2 = d2 ? this.createTemporaryCell(l3, s3) : this.createTemporaryCell(null, s3).createTemporaryCell(l3), c2;
18530
18640
  }), false;
18531
18641
  }
18532
- const W2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }), V2 = O2.length;
18642
+ const H2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }), V2 = O2.length;
18533
18643
  O2.sort((t3, e2) => t3.oppositeIndex - e2.oppositeIndex);
18534
18644
  for (let t3 = 0; t3 < V2; t3++) {
18535
- const e2 = t3, n3 = P2(u2, O2[e2].values), r3 = O2[e2].oppositeIndex, o3 = N2 ? x2 : x2 + F2 - 1, s3 = this.isDate1904();
18645
+ const e2 = t3, n3 = z2(u2, O2[e2].values), r3 = O2[e2].oppositeIndex, o3 = T2 ? x2 : x2 + F2 - 1, s3 = this.isDate1904();
18536
18646
  for (let t4 = 0; t4 < F2; t4++) {
18537
- let e3 = n3(o3 + (N2 ? t4 : -t4));
18647
+ let e3 = n3(o3 + (T2 ? t4 : -t4));
18538
18648
  Kr(e3) && (e3 = no(e3, s3));
18539
- const a3 = T2 + t4;
18540
- i2 ? W2.pushAt(a3, r3, e3) : W2.pushAt(r3, a3, e3);
18649
+ const a3 = N2 + t4;
18650
+ i2 ? H2.pushAt(a3, r3, e3) : H2.pushAt(r3, a3, e3);
18541
18651
  }
18542
18652
  }
18543
- this._clear([p2], r2?.contentsOnly ? Yh.Content.Formats : void 0), W2.apply();
18653
+ this._clear([p2], r2?.contentsOnly ? Yh.Content.Formats : void 0), H2.apply();
18544
18654
  const $2 = this._getMerges([_2]), j2 = c.unionRangesArrays($2);
18545
- if ($2.length > 0 && !c.isRangeWithinRange(j2, _2)) throw new Error(Wh);
18655
+ if ($2.length > 0 && !c.isRangeWithinRange(j2, _2)) throw new Error(Hh);
18546
18656
  if ($2.length > 0) {
18547
18657
  const n3 = [], r3 = s2 / E2;
18548
18658
  if (i2) {
@@ -18569,7 +18679,7 @@ class X_ {
18569
18679
  const G2 = this._getState(), U2 = {}, J2 = {};
18570
18680
  J2.directStyleSpatial = G2.directStyleSpatial, J2.continuousFillSpatial = G2.continuousFillSpatial;
18571
18681
  let q2 = t2, K2 = p2;
18572
- if (!N2) {
18682
+ if (!T2) {
18573
18683
  let e2 = (i2 ? _2.rowEnd + 1 - _2.rowStart : _2.colEnd + 1 - _2.colStart) % x2;
18574
18684
  const n3 = i2 ? "rowStart" : "colStart", r3 = i2 ? "rowEnd" : "colEnd";
18575
18685
  0 !== e2 && (K2 = { ...p2, [r3]: Math.min(p2[r3], p2[n3] + e2) }, q2 = { ...t2, [n3]: t2[r3] - e2 + 1 }, p2[n3] = p2[n3] + e2);
@@ -18580,7 +18690,7 @@ class X_ {
18580
18690
  for (let t4 = 0; t4 < s3; t4++) r3.remove(o3[t4]);
18581
18691
  r3.load(n3.inserts), U2[e2] = r3;
18582
18692
  }
18583
- if (N2) {
18693
+ if (T2) {
18584
18694
  const e2 = this.getTables().getItems({ address: { rowIndex: t2.rowEnd, colIndex: t2.colEnd } });
18585
18695
  if (1 === e2.length) {
18586
18696
  const t3 = e2[0], n3 = t3.getRange().getCoords();
@@ -18862,7 +18972,7 @@ class X_ {
18862
18972
  const d2 = this._getMerges(t2);
18863
18973
  if (Yl(t2) || d2.length > 0) {
18864
18974
  const e2 = c.unionRangesArrays(d2), n3 = c.unionRangesArrays(t2);
18865
- if (!(!e2 && !n3 || e2 && n3 && c.isRangeWithinRange(e2, n3))) throw console.warn(Ph, t2), new Error(Ph);
18975
+ if (!(!e2 && !n3 || e2 && n3 && c.isRangeWithinRange(e2, n3))) throw console.warn(zh, t2), new Error(zh);
18866
18976
  this._unmerge(d2);
18867
18977
  }
18868
18978
  const u2 = this._createIncrementalUpdater({ orientation: e.Orientation.Column }), g2 = [], m2 = [];
@@ -18963,7 +19073,7 @@ class X_ {
18963
19073
  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 });
18964
19074
  const e2 = new X_(t2), n2 = this._transactions.getState(this);
18965
19075
  e2._updateState(n2);
18966
- const r2 = new T_({ sheet: this, json: this.getView().toJSON() });
19076
+ const r2 = new N_({ sheet: this, json: this.getView().toJSON() });
18967
19077
  return r2.selectMovables(this.getView().getMovableSelection()), e2.setView(r2), e2;
18968
19078
  }
18969
19079
  _getSnapshot(t2, e2) {
@@ -19163,16 +19273,16 @@ class X_ {
19163
19273
  }
19164
19274
  s3 && (_3 = true), a2.singleMerge && (g2 = false, f2 = false);
19165
19275
  const b3 = h2.colStart - d2.colStart, R2 = h2.rowStart - d2.rowStart, A2 = i2.adjustCells;
19166
- let M2 = { ...Th };
19276
+ let M2 = { ...Nh };
19167
19277
  if (delete M2[Ah.Type.Style], !g2) {
19168
19278
  const t3 = this.getProtection().isLocked();
19169
19279
  M2 = {}, t3 && (M2[Ah.Type.Unlock] = false);
19170
19280
  }
19171
- const N2 = e.Orientation.Column;
19172
- let T2;
19281
+ const T2 = e.Orientation.Column;
19282
+ let N2;
19173
19283
  if (m2) {
19174
- T2 = p2.startIncrementalUpdates({ orientation: i2.transpose ? e.Orientation.Row : e.Orientation.Column });
19175
- const t3 = { orientation: N2, includeRangeTypes: M2, bounds: d2 }, n3 = new lm(this._strings, t3, this._cellOptions), r4 = (t4, e2, r5) => {
19284
+ N2 = p2.startIncrementalUpdates({ orientation: i2.transpose ? e.Orientation.Row : e.Orientation.Column });
19285
+ const t3 = { orientation: T2, includeRangeTypes: M2, bounds: d2 }, n3 = new lm(this._strings, t3, this._cellOptions), r4 = (t4, e2, r5) => {
19176
19286
  const o3 = t4[0], a3 = n3.setState(t4), l4 = n3.context, c2 = l4.getCell(), u4 = c2.isTopLeft();
19177
19287
  let p3 = R2, w3 = b3;
19178
19288
  if (s3) {
@@ -19191,7 +19301,7 @@ class X_ {
19191
19301
  const t5 = A2(a3, l4, { rowIndex: p3, colIndex: w3 }, i2);
19192
19302
  void 0 !== t5 && (C3 = t5, y3 = true);
19193
19303
  }
19194
- if (y3 && (T2.pushAt(p3, w3, C3), g2)) {
19304
+ if (y3 && (N2.pushAt(p3, w3, C3), g2)) {
19195
19305
  const t5 = c2.getSpans();
19196
19306
  (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 });
19197
19307
  }
@@ -19205,7 +19315,7 @@ class X_ {
19205
19315
  } };
19206
19316
  if (!a2.singleMerge && !c.isEqualRanges(v2, d2)) {
19207
19317
  const t4 = v2.colEnd - v2.colStart + 1, e2 = v2.rowEnd - v2.rowStart + 1;
19208
- l3 = new fl({ delegate: l3, bounds: d2, orientation: N2, dims: { major: i2.transpose ? e2 : t4, minor: i2.transpose ? t4 : e2 } });
19318
+ l3 = new fl({ delegate: l3, bounds: d2, orientation: T2, dims: { major: i2.transpose ? e2 : t4, minor: i2.transpose ? t4 : e2 } });
19209
19319
  }
19210
19320
  let u3 = l3.next();
19211
19321
  for (; !u3.done; ) {
@@ -19215,13 +19325,13 @@ class X_ {
19215
19325
  }
19216
19326
  const F2 = n2._getState(), k2 = {}, O2 = { transpose: s3 ?? false };
19217
19327
  g2 && (k2.directStyleSpatial = F2.directStyleSpatial, k2.continuousFillSpatial = F2.continuousFillSpatial, k2.mergeSpatial = F2.mergeSpatial), u2 && (t2._clear([d2], void 0, void 0, false, true), E2.push(d2), k2.rangesListenerSpatial2 = F2.rangesListenerSpatial2);
19218
- const D2 = l2, B2 = D2._getState(), L2 = Object.keys(k2), z2 = L2.length;
19219
- for (let t3 = 0; t3 < z2; t3++) {
19328
+ const D2 = l2, B2 = D2._getState(), L2 = Object.keys(k2), P2 = L2.length;
19329
+ for (let t3 = 0; t3 < P2; t3++) {
19220
19330
  const e2 = L2[t3], n3 = k2[e2].createCopiedEntries(d2, v2, O2), r4 = B2[e2].clone(), o2 = n3.removes, s4 = o2.length;
19221
19331
  for (let t4 = 0; t4 < s4; t4++) r4.remove(o2[t4]);
19222
19332
  r4.load(n3.inserts), B2[e2] = r4;
19223
19333
  }
19224
- 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 }) });
19334
+ 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 }) });
19225
19335
  } catch (t3) {
19226
19336
  throw console.warn(t3), I2.rollback(), new Error(((t4) => `Unable to paste: ${t4}`)(t3.message), { cause: t3 });
19227
19337
  }
@@ -19321,7 +19431,7 @@ class X_ {
19321
19431
  _insertCells(t2, n2, r2, o2 = void 0) {
19322
19432
  const s2 = this;
19323
19433
  o2 = o2 ?? ((t3, e2) => {
19324
- s2._validateCoords(t3, e2 ?? Hh);
19434
+ s2._validateCoords(t3, e2 ?? Wh);
19325
19435
  });
19326
19436
  const i2 = r2?.description ?? "Insert Cells", a2 = (n2 ?? this._getDefaultShiftOrientation(t2[0])) === e.Orientation.Column;
19327
19437
  if (this._protectionCheck(() => [a2 ? "insertColumns" : "insertRows"], t2, i2), Yl(t2)) throw new Error("We can't insert cells with overlapping selections.");
@@ -19343,20 +19453,20 @@ class X_ {
19343
19453
  }
19344
19454
  n3 = n3.clone(), n3.shift(e2, f2), this._updateState({ cellValuesGrid: n3 });
19345
19455
  }
19346
- const g3 = e2.colStart <= l2.colStart && e2.colEnd >= l2.colEnd, M3 = e2.rowStart <= l2.rowStart && e2.rowEnd >= l2.rowEnd, N3 = (t4, e3, n4, r4) => {
19456
+ const g3 = e2.colStart <= l2.colStart && e2.colEnd >= l2.colEnd, M3 = e2.rowStart <= l2.rowStart && e2.rowEnd >= l2.rowEnd, T3 = (t4, e3, n4, r4) => {
19347
19457
  let o3 = null;
19348
19458
  n4 > 1 && (o3 = t4.at(n4 - 1));
19349
19459
  const s4 = r4 - n4 + 1;
19350
19460
  e3?.(n4, s4), o3 && t4.updateHeaderPairs([{ address: { min: n4, max: r4 }, update: o3 }]);
19351
19461
  };
19352
- 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) => {
19462
+ 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) => {
19353
19463
  I2 === m2.rangesListenerMap && (I2 = new Map(I2)), this._processListenerShift(I2, R2, m2.rangesListenerMap, t4);
19354
19464
  } }), v2 = v2.shift({ range: e2, direction: f2, cloneIfUpdate: v2 === m2.rangesListenerSpatial2, coordValidator: o2 });
19355
19465
  }
19356
- let N2 = m2.formulaSpatial, T2 = m2.spillSpatial, F2 = m2.pendingSpatial;
19357
- 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 } });
19466
+ let T2 = m2.formulaSpatial, N2 = m2.spillSpatial, F2 = m2.pendingSpatial;
19467
+ 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 } });
19358
19468
  } catch (t3) {
19359
- if (console.warn(t3), g2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Hh);
19469
+ if (console.warn(t3), g2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Wh);
19360
19470
  throw t3;
19361
19471
  }
19362
19472
  }
@@ -19380,7 +19490,7 @@ class X_ {
19380
19490
  }
19381
19491
  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 } });
19382
19492
  } catch (t3) {
19383
- if (u2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Hh);
19493
+ if (u2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Wh);
19384
19494
  throw t3;
19385
19495
  }
19386
19496
  }
@@ -19389,7 +19499,7 @@ class X_ {
19389
19499
  r2 = { expandOnly: false, skipCustomSize: false, minContent: false, ...r2 };
19390
19500
  const o2 = "Autofit";
19391
19501
  let s2;
19392
- const i2 = Vg(n2, this._entireCoords, true), a2 = Wg(n2, this._entireCoords, true);
19502
+ const i2 = Vg(n2, this._entireCoords, true), a2 = Hg(n2, this._entireCoords, true);
19393
19503
  s2 = !i2 && a2 ? `${o2} ${y_}` : !a2 && i2 ? `${o2} ${w_}` : a2 && i2 ? `${o2} All` : `${o2}`;
19394
19504
  let l2 = r2.orientations !== e.Orientations.Row;
19395
19505
  this._colHeaders.isProtected() && (l2 = false);
@@ -19406,19 +19516,19 @@ class X_ {
19406
19516
  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;
19407
19517
  const b2 = this._styles.getNormal(), v2 = this._cellOptions, x2 = r2.orientations === e.Orientations.Row, I2 = /* @__PURE__ */ new Map(), R2 = nl(n2, 1);
19408
19518
  R2.sort(c.createRangeComparator(e.Orientation.Column));
19409
- const A2 = R2.length, M2 = { skipCustomSize: r2.skipCustomSize }, N2 = Ko.getDeviceScale(), T2 = this._defaultRowHeight() * N2, F2 = this._defaultColWidth(), k2 = (t2, e2 = 1) => {
19410
- if (0 !== t2 && !(e2 > 1)) return t2 = Math.max(t2, T2), (e3) => u2 ? t2 : Math.max(e3, t2 ?? T2);
19519
+ const A2 = R2.length, M2 = { skipCustomSize: r2.skipCustomSize }, T2 = Ko.getDeviceScale(), N2 = this._defaultRowHeight() * T2, F2 = this._defaultColWidth(), k2 = (t2, e2 = 1) => {
19520
+ if (0 !== t2 && !(e2 > 1)) return t2 = Math.max(t2, N2), (e3) => u2 ? t2 : Math.max(e3, t2 ?? N2);
19411
19521
  }, O2 = (t2, e2 = 1) => {
19412
19522
  if (0 !== t2 && !(e2 > 1)) return (e3) => d2 ? t2 : Math.max(e3, t2 ?? F2);
19413
19523
  };
19414
19524
  for (let n3 = 0; n3 < A2; n3++) {
19415
19525
  const r3 = [];
19416
- let f3 = -1, p3 = false, A3 = b2, N3 = 1, T3 = 1, F3 = 1;
19526
+ let f3 = -1, p3 = false, A3 = b2, T3 = 1, N3 = 1, F3 = 1;
19417
19527
  const D2 = R2[n3];
19418
- let B2 = D2.colStart, L2 = D2.rowStart, z2 = D2.colEnd, P2 = D2.rowEnd;
19419
- const H2 = this._getUsedCoords();
19420
- (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);
19421
- 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) => {
19528
+ let B2 = D2.colStart, L2 = D2.rowStart, P2 = D2.colEnd, z2 = D2.rowEnd;
19529
+ const W2 = this._getUsedCoords();
19530
+ (u2 || d2) && W2 && (B2 = u2 ? W2.colStart : D2.colStart, L2 = d2 ? W2.rowStart : D2.rowStart, P2 = u2 ? W2.colEnd : D2.colEnd, z2 = d2 ? W2.rowEnd : D2.rowEnd);
19531
+ 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: P2, rowEnd: z2 }, orientation: e.Orientation.Column }, V2 = h2 ? [] : void 0, $2 = l2 ? [] : void 0, j2 = (t2, e2, n4) => {
19422
19532
  if (t2 > e2) return null;
19423
19533
  const r4 = [];
19424
19534
  let o4 = t2;
@@ -19437,29 +19547,29 @@ class X_ {
19437
19547
  r4.push(t3);
19438
19548
  }
19439
19549
  return r4;
19440
- }, G2 = this._rangeStateIterator(W2);
19550
+ }, G2 = this._rangeStateIterator(H2);
19441
19551
  let U2 = G2.next();
19442
19552
  for (; !U2.done; ) {
19443
19553
  const t2 = U2.value, e2 = t2.intersection, n4 = t2.start, r4 = t2.end;
19444
19554
  Z_.colStart = n4.colIndex, Z_.rowStart = n4.rowIndex, Z_.colEnd = r4.colIndex, Z_.rowEnd = r4.rowIndex;
19445
- const o4 = c.intersectRanges(Z_, D2, Q_), s4 = Tg(0, o4, e2, v2).getBestFit();
19555
+ const o4 = c.intersectRanges(Z_, D2, Q_), s4 = Ng(0, o4, e2, v2).getBestFit();
19446
19556
  if (h2) {
19447
- 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 };
19557
+ const t3 = Math.max(n4.rowIndex, L2), e3 = Math.min(r4.rowIndex, z2), o5 = s4.height, i4 = { address: { min: t3, max: e3 }, update: { size: k2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
19448
19558
  V2.push(i4);
19449
19559
  }
19450
19560
  if (l2) {
19451
- const t3 = Math.max(n4.colIndex, B2), e3 = Math.min(r4.colIndex, z2), o5 = s4.width, i4 = { address: { min: t3, max: e3 }, update: { size: O2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
19561
+ const t3 = Math.max(n4.colIndex, B2), e3 = Math.min(r4.colIndex, P2), o5 = s4.width, i4 = { address: { min: t3, max: e3 }, update: { size: O2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
19452
19562
  $2.push(i4);
19453
19563
  }
19454
19564
  U2 = G2.next();
19455
19565
  }
19456
- const J2 = this._cellStateIterator({ ...W2, includeRangeTypes: { [Ah.Type.Merge]: false, [Ah.Type.Table]: false, [Ah.Type.Style]: false, [Ah.Type.Continuous]: false }, ignoreEmptyIntersections: true });
19566
+ const J2 = this._cellStateIterator({ ...H2, includeRangeTypes: { [Ah.Type.Merge]: false, [Ah.Type.Table]: false, [Ah.Type.Style]: false, [Ah.Type.Continuous]: false }, ignoreEmptyIntersections: true });
19457
19567
  let q2, K2, X2, Y2 = J2.next(), Q2 = 1, Z2 = 1;
19458
19568
  for (; !Y2.done; ) {
19459
19569
  const e2 = Y2.value, n4 = e2[0], l3 = e2[2];
19460
19570
  let h3 = b2;
19461
19571
  const d3 = l3?.directStyle ?? l3?.table.getStyle() ?? null;
19462
- d3 === q2 ? h3 = K2 : (h3 = d3 ? Tg(0, c.cellToRange(n4, tS), l3, v2) : b2, K2 = h3);
19572
+ d3 === q2 ? h3 = K2 : (h3 = d3 ? Ng(0, c.cellToRange(n4, tS), l3, v2) : b2, K2 = h3);
19463
19573
  let u3 = 1, g3 = 1;
19464
19574
  const m3 = l3?.merge ?? null;
19465
19575
  if (m3 === X2) u3 = Q2, g3 = Z2;
@@ -19475,7 +19585,7 @@ class X_ {
19475
19585
  F3 = O3.getCoords().colEnd - x3 + 1;
19476
19586
  }
19477
19587
  let B3 = false, L3 = false;
19478
- if (q2 === d3 && u3 === N3 && g3 === T3 && 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, 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;
19588
+ 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;
19479
19589
  else switch (M3) {
19480
19590
  case t.Number:
19481
19591
  0 === R3 && (i3 = true), o3 = Math.min(o3, R3), s3 = Math.max(s3, R3);
@@ -19491,7 +19601,7 @@ class X_ {
19491
19601
  }
19492
19602
  Y2 = J2.next();
19493
19603
  }
19494
- -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 });
19604
+ -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 });
19495
19605
  let tt2 = -1, et2 = -1;
19496
19606
  const nt2 = r3.length;
19497
19607
  for (let e2 = 0; e2 < nt2; e2++) {
@@ -20367,7 +20477,7 @@ class X_ {
20367
20477
  _validateOrRemoveOverlaps(t2, e2, n2 = null, r2 = false) {
20368
20478
  const o2 = this;
20369
20479
  "merge" !== e2 && Zl(this._getMerges([t2]), t2, (t3, n3) => {
20370
- if (n3 || !r2) throw new Error(zh(e2));
20480
+ if (n3 || !r2) throw new Error(Ph(e2));
20371
20481
  o2._unmerge([t3]);
20372
20482
  });
20373
20483
  const s2 = [], i2 = this.getTables().getItems({ address: t2 }), a2 = i2.length;
@@ -20376,7 +20486,7 @@ class X_ {
20376
20486
  n2 !== e3 && s2.push(e3.getAnchorCoords());
20377
20487
  }
20378
20488
  Zl(s2, t2, (t3, n3, o3) => {
20379
- if (n3 || !r2) throw new Error(zh(e2));
20489
+ if (n3 || !r2) throw new Error(Ph(e2));
20380
20490
  i2[o3].delete();
20381
20491
  });
20382
20492
  }
@@ -20405,7 +20515,7 @@ class X_ {
20405
20515
  const g2 = d2.tableMapModel, m2 = new Map(g2), f2 = h2.value.model;
20406
20516
  m2.set(f2, h2);
20407
20517
  const p2 = d2.tableMapName, _2 = new Map(p2);
20408
- _2.set(f2.getName().toLocaleLowerCase(), f2), n2?.clearFormatting && this.getRange(r2).updateStyle(null), c2 = h2.value.model, this._updateState({ tableSpatial: u2, tableMapModel: m2, tableMapName: _2 }), this._emitter.notify("onTablesChange"), o3 || this._autoFit([c2.getHeaderRange().getCoords()], { expandOnly: true });
20518
+ _2.set(f2.getName().toLocaleLowerCase(), f2), n2?.clearFormatting && this.getRange(r2).getStyle().update(null), c2 = h2.value.model, this._updateState({ tableSpatial: u2, tableMapModel: m2, tableMapName: _2 }), this._emitter.notify("onTablesChange"), o3 || this._autoFit([c2.getHeaderRange().getCoords()], { expandOnly: true });
20409
20519
  const S2 = fm([r2]);
20410
20520
  l2.commit({ viewBefore: { view: this.getView(), selection: i2, ranges: [a2] }, viewAfter: { view: this.getView(), selection: S2, ranges: [r2] } });
20411
20521
  } catch (t3) {
@@ -20577,7 +20687,7 @@ class X_ {
20577
20687
  }
20578
20688
  close() {
20579
20689
  if (this._closed) return;
20580
- this._protectionRemoveListener?.(), this._protection = new P_(void 0, this._options.readonly);
20690
+ this._protectionRemoveListener?.(), this._protection = new z_(void 0, this._options.readonly);
20581
20691
  const t2 = this._getState().tableMapModel.keys();
20582
20692
  for (const e2 of t2) e2.close();
20583
20693
  this._searchMovables().forEach((t3) => {
@@ -20655,14 +20765,18 @@ class X_ {
20655
20765
  }
20656
20766
  _getStyle(t2, e2) {
20657
20767
  let n2;
20658
- n2 = e2 ? { colStart: e2.colIndex, rowStart: e2.rowIndex, colEnd: e2.colIndex, rowEnd: e2.rowIndex } : { colStart: t2.colStart, rowStart: t2.rowStart, colEnd: t2.colStart, rowEnd: t2.rowStart };
20768
+ if (e2) n2 = { colStart: e2.cell.colIndex, rowStart: e2.cell.rowIndex, colEnd: e2.cell.colIndex, rowEnd: e2.cell.rowIndex };
20769
+ else {
20770
+ const e3 = t2[0];
20771
+ n2 = { colStart: e3.colStart, rowStart: e3.rowStart, colEnd: e3.colStart, rowEnd: e3.rowStart };
20772
+ }
20659
20773
  const r2 = this;
20660
20774
  let o2 = this._cellOptions;
20661
- o2 = { ...o2, styleUpdater: (n3, o3) => (r2._updateStyles([t2], n3, o3), r2._getStyle(t2, e2)) }, hS.length = 0;
20775
+ o2 = { ...o2, styleUpdater: (n3, o3) => (r2._updateStyles(t2, n3, o3), r2._getStyle(t2, e2)) }, hS.length = 0;
20662
20776
  const s2 = hS;
20663
20777
  this._collectRanges(n2, s2);
20664
20778
  const i2 = om(s2);
20665
- return Tg(0, n2, i2, o2);
20779
+ return Ng(0, n2, i2, o2);
20666
20780
  }
20667
20781
  _initState() {
20668
20782
  const t2 = this, n2 = () => {
@@ -20779,7 +20893,7 @@ class X_ {
20779
20893
  }), a2 = o3, t2._emitter.notify("onMovableSelectionChange");
20780
20894
  }, onAnyChange() {
20781
20895
  t2._defaultColWidthCache = 0, t2._defaultRowHeightCache = 0, t2._defaultFontBoundsCache = null, t2._emitter.notify("onLayoutChange"), t2._emitter.notify("onViewChange");
20782
- } }, c2 = new T_({ sheet: this });
20896
+ } }, c2 = new N_({ sheet: this });
20783
20897
  this._view = c2, this._clearState(), this._viewRemoveListener = c2.addListeners(l2, { transactional: false }), this._viewListener = l2, this._colHeadersRemoveListener?.();
20784
20898
  const h2 = () => {
20785
20899
  const t3 = this.getView().isShowFormulas() ? 2 : 1;
@@ -20809,7 +20923,10 @@ class X_ {
20809
20923
  if (!o3 || 0 === o3.length) return n3;
20810
20924
  const s3 = o3[0], i3 = r3 ? s3.getState().colStart : s3.getState().colEnd;
20811
20925
  return r3 ? Math.min(i3 + 1, e2.colIndex) : Math.max(i3 - 1, e2.colIndex);
20812
- }, styleUpdater: (e2, n3, r3) => (t2._updateStyles([r3], e2, n3), t2._getStyle(r3)), opener: async (t3, e2, n3, r3) => {
20926
+ }, styleUpdater: (e2, n3, r3) => {
20927
+ const o3 = [r3];
20928
+ return t2._updateStyles(o3, e2, n3), t2._getStyle(o3);
20929
+ }, opener: async (t3, e2, n3, r3) => {
20813
20930
  if (t3.startsWith("#")) {
20814
20931
  t3 = t3.substring(1);
20815
20932
  const n4 = this._rangesToCoords(t3);
@@ -20819,7 +20936,7 @@ class X_ {
20819
20936
  } }, this._emptyCell = new Dg(this._cellOptions);
20820
20937
  }
20821
20938
  _clearState() {
20822
- this._lastGetRangeRead = null, this._lastCellDecoded.address = null, this._lastCellSelected.coords = null, this._lastCellRead.coords = null, this._protectionRemoveListener?.(), this._protection = new P_(void 0, this._options.readonly), this._protectionRemoveListener = this._protection.addListeners({ onChange() {
20939
+ this._lastGetRangeRead = null, this._lastCellDecoded.address = null, this._lastCellSelected.coords = null, this._lastCellRead.coords = null, this._protectionRemoveListener?.(), this._protection = new z_(void 0, this._options.readonly), this._protectionRemoveListener = this._protection.addListeners({ onChange() {
20823
20940
  if (t2._closed) throw new Error($h);
20824
20941
  t2._getState().movableMapModel.forEach((t3) => {
20825
20942
  t3.value.processProtectionCallback?.();
@@ -21139,7 +21256,7 @@ class X_ {
21139
21256
  this._initializing = true, this._emitter.notify("onBeforeLoad", { params: n2 }), this._clearState();
21140
21257
  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();
21141
21258
  try {
21142
- 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));
21259
+ 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));
21143
21260
  let h2 = this._getState();
21144
21261
  const d2 = h2.cellValuesGrid, u2 = h2.contentfulSpatial, g2 = o2.data, m2 = g2?.length ?? 0, f2 = dm, p2 = [];
21145
21262
  if (m2 > 0) {
@@ -21249,14 +21366,14 @@ class X_ {
21249
21366
  }
21250
21367
  R2.load(t2);
21251
21368
  }
21252
- const A2 = h2.tableMapModel, M2 = h2.tableMapName, N2 = h2.tableSpatial, T2 = o2.tables;
21253
- if (T2) {
21254
- const t2 = [], e2 = T2.length;
21369
+ const A2 = h2.tableMapModel, M2 = h2.tableMapName, T2 = h2.tableSpatial, N2 = o2.tables;
21370
+ if (N2) {
21371
+ const t2 = [], e2 = N2.length;
21255
21372
  for (let n3 = 0; n3 < e2; n3++) {
21256
- const e3 = T2[n3], r3 = this._createTableEntry(e3), o3 = r3.value.model;
21373
+ const e3 = N2[n3], r3 = this._createTableEntry(e3), o3 = r3.value.model;
21257
21374
  A2.set(o3, r3), M2.set(r3.value.currentName, o3), t2.push(r3);
21258
21375
  }
21259
- N2.load(t2);
21376
+ T2.load(t2);
21260
21377
  }
21261
21378
  const F2 = h2.conditionalSpatial, k2 = h2.conditionalModels, O2 = o2.conditionals;
21262
21379
  if (O2) {
@@ -21267,7 +21384,7 @@ class X_ {
21267
21384
  }
21268
21385
  }
21269
21386
  const D2 = h2.calcGraph, B2 = D2.fromJSON({ formulas: o2.formulas, data: p2, dynamic: o2.dynamicArray, volatile: o2.volatile });
21270
- h2 = this._updateState({ hyperlinkSpatial: C2, commentsSpatial: v2, movableSpatial: R2, movableMapModel: I2, tableSpatial: N2, tableMapModel: A2, tableMapName: M2, conditionalSpatial: F2, conditionalModels: k2, calcGraph: D2 });
21387
+ h2 = this._updateState({ hyperlinkSpatial: C2, commentsSpatial: v2, movableSpatial: R2, movableMapModel: I2, tableSpatial: T2, tableMapModel: A2, tableMapName: M2, conditionalSpatial: F2, conditionalModels: k2, calcGraph: D2 });
21271
21388
  const L2 = this._getUsedCoords();
21272
21389
  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");
21273
21390
  } finally {
@@ -21753,7 +21870,7 @@ class vS extends L_ {
21753
21870
  return super._toJSON(t2);
21754
21871
  }
21755
21872
  }
21756
- 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).`;
21873
+ 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).`;
21757
21874
  class OS {
21758
21875
  constructor(t2, e2) {
21759
21876
  this._add = t2, this._get = e2;
@@ -21771,13 +21888,13 @@ class OS {
21771
21888
  return this._get().length;
21772
21889
  }
21773
21890
  }
21774
- 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) => {
21775
- if (!t2) throw new Error(TS);
21891
+ const DS = new RegExp(/[\\/\\*?:[\]]+/), BS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), LS = (t2) => `Sheet${t2 + 1}`, PS = (t2, e2) => ({ ...Qg, getSheet: () => null, toString: () => Gc(t2, e2) }), zS = (t2, e2 = false) => {
21892
+ if (!t2) throw new Error(NS);
21776
21893
  if (DS.test(t2)) {
21777
- if (!e2) throw new Error(((t3) => `${t3 ? `'${t3}'` : NS} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t2));
21894
+ if (!e2) throw new Error(((t3) => `${t3 ? `'${t3}'` : TS} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t2));
21778
21895
  t2 = t2.replace(DS, "");
21779
21896
  }
21780
- if (0 === t2.length) throw new Error(TS);
21897
+ if (0 === t2.length) throw new Error(NS);
21781
21898
  const n2 = t2.length;
21782
21899
  if (n2 > 31) {
21783
21900
  if (!e2) throw new Error(FS);
@@ -21789,7 +21906,7 @@ const DS = new RegExp(/[\\/\\*?:[\]]+/), BS = new RegExp(/\(((\d+)(?!.*\d))\)$/,
21789
21906
  }
21790
21907
  return t2;
21791
21908
  };
21792
- class HS extends H_ {
21909
+ class WS extends W_ {
21793
21910
  constructor(t2, e2, n2, r2) {
21794
21911
  super(t2, e2, r2), this._workbook = n2;
21795
21912
  }
@@ -21798,16 +21915,16 @@ class HS extends H_ {
21798
21915
  }
21799
21916
  _createRanges(t2, e2) {
21800
21917
  let n2 = this._options;
21801
- return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new HS(t2, this._sheet, this._workbook, n2);
21918
+ return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new WS(t2, this._sheet, this._workbook, n2);
21802
21919
  }
21803
21920
  _createRange(t2, e2) {
21804
21921
  const n2 = t2 ? { ...t2 } : null;
21805
21922
  if (!(n2 ? this._workbook._getSheetRef(n2.sheetName, kp.Visibility.VeryHidden) : null)) {
21806
21923
  const t3 = this._workbook.getSelectedSheet();
21807
- return delete n2?.sheetName, zS(n2, n2 ? { sheetName: Ac, ...t3.getEntireRange().getCoords() } : null);
21924
+ return delete n2?.sheetName, PS(n2, n2 ? { sheetName: Ac, ...t3.getEntireRange().getCoords() } : null);
21808
21925
  }
21809
21926
  let r2 = this._options;
21810
- return e2 && (r2 = { ...this._options, getOptions: cm(this._options.getOptions, e2) }), new WS(t2, this._sheet, this._workbook, r2);
21927
+ return e2 && (r2 = { ...this._options, getOptions: cm(this._options.getOptions, e2) }), new HS(t2, this._sheet, this._workbook, r2);
21811
21928
  }
21812
21929
  async select(t2) {
21813
21930
  const e2 = [];
@@ -21834,23 +21951,23 @@ class HS extends H_ {
21834
21951
  }
21835
21952
  toString() {
21836
21953
  const t2 = this.getCoords(), e2 = this._sheet, n2 = e2.getEntireRange().getCoords(), r2 = { sheetName: e2.getName(), ...n2 };
21837
- return Xc(t2, r2, Gc, Pc);
21954
+ return Xc(t2, r2, Gc, zc);
21838
21955
  }
21839
21956
  }
21840
- class WS extends W_ {
21957
+ class HS extends H_ {
21841
21958
  constructor(t2, e2, n2, r2) {
21842
21959
  super(t2, e2, r2), this._workbook = n2;
21843
21960
  }
21844
21961
  _createRanges(t2, e2) {
21845
21962
  let n2 = this._options;
21846
- return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new HS(t2, this._sheet, this._workbook, n2);
21963
+ return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new WS(t2, this._sheet, this._workbook, n2);
21847
21964
  }
21848
21965
  _createRange(t2, e2) {
21849
21966
  const n2 = this._sheet;
21850
21967
  if (!t2) return Zg(n2, n2._entireCoords);
21851
21968
  if (n2._validateCoords(t2), n2._closed) return Zg(null, n2._entireCoords, t2);
21852
21969
  let r2 = this._options;
21853
- return e2 && (r2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new WS(t2, this._sheet, this._workbook, r2);
21970
+ return e2 && (r2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new HS(t2, this._sheet, this._workbook, r2);
21854
21971
  }
21855
21972
  getSource() {
21856
21973
  return this._workbook;
@@ -22054,11 +22171,11 @@ class VS {
22054
22171
  }
22055
22172
  _validateNewSheetName(t2, e2 = true) {
22056
22173
  if (null == t2) return t2;
22057
- if (PS(t2), e2 && this._getState().sheetsByLowerCaseName.has(t2.toLowerCase())) throw new Error("That name is already taken. Try a different one.");
22174
+ if (zS(t2), e2 && this._getState().sheetsByLowerCaseName.has(t2.toLowerCase())) throw new Error("That name is already taken. Try a different one.");
22058
22175
  return t2.substring(0, 31);
22059
22176
  }
22060
22177
  findValidSheetName(t2) {
22061
- t2 && (t2 = PS(t2, true));
22178
+ t2 && (t2 = zS(t2, true));
22062
22179
  try {
22063
22180
  return ((t3, e2) => {
22064
22181
  try {
@@ -22122,7 +22239,7 @@ class VS {
22122
22239
  _addSheet(t2, e2 = null, n2 = null) {
22123
22240
  e2 = this._nextSheetName(e2);
22124
22241
  const r2 = this._getState(), o2 = this._createSheet(r2.lastId, e2, kp.Visibility.Visible, n2, null);
22125
- if (!o2) throw new Error(TS);
22242
+ if (!o2) throw new Error(NS);
22126
22243
  return t2 && this._emitter.notify("onSheetsChange"), o2;
22127
22244
  }
22128
22245
  _updateSheetRefStates(t2) {
@@ -22302,16 +22419,16 @@ class VS {
22302
22419
  const n2 = t2 ? { ...t2 } : null;
22303
22420
  if (!(n2 ? this._getSheetRef(n2.sheetName, kp.Visibility.VeryHidden) : null)) {
22304
22421
  const t3 = this.getSelectedSheet();
22305
- return t3 ? (delete n2?.sheetName, zS(n2, n2 ? { sheetName: Ac, ...t3.getEntireRange().getCoords() } : null)) : void console.warn(RS);
22422
+ return t3 ? (delete n2?.sheetName, PS(n2, n2 ? { sheetName: Ac, ...t3.getEntireRange().getCoords() } : null)) : void console.warn(RS);
22306
22423
  }
22307
22424
  const r2 = this.getSelectedSheet();
22308
22425
  let o2 = null;
22309
- return e2 && (o2 = { getOptions: e2 }), new WS(t2, r2, this, o2);
22426
+ return e2 && (o2 = { getOptions: e2 }), new HS(t2, r2, this, o2);
22310
22427
  }
22311
22428
  _createRanges(t2, e2) {
22312
22429
  const n2 = this.getSelectedSheet();
22313
22430
  let r2 = null;
22314
- return e2 && (r2 = { getOptions: e2 }), new HS(t2, n2, this, r2);
22431
+ return e2 && (r2 = { getOptions: e2 }), new WS(t2, n2, this, r2);
22315
22432
  }
22316
22433
  getRange(t2, e2) {
22317
22434
  try {
@@ -22659,10 +22776,10 @@ export {
22659
22776
  yo as ITextFrame,
22660
22777
  Ci as ITheme,
22661
22778
  bi as IThemeCollection,
22662
- st as LicenseManager,
22779
+ it as LicenseManager,
22663
22780
  pi as NumberFormat,
22664
22781
  tf as Picture,
22665
- Tp as RangeClipboardItem,
22782
+ Np as RangeClipboardItem,
22666
22783
  Jm as Resource,
22667
22784
  Km as ResourceCollection,
22668
22785
  X_ as Sheet,
@@ -22672,7 +22789,7 @@ export {
22672
22789
  jm as StyleCollection,
22673
22790
  op as T,
22674
22791
  Om as Table,
22675
- Po as TextUtils,
22792
+ zo as TextUtils,
22676
22793
  $i as Theme,
22677
22794
  Gi as ThemeCollection,
22678
22795
  F as TransactionStore,