@sheetxl/sdk 0.6.19 → 0.6.20

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 (84) hide show
  1. package/browser/cjs/{tZ0zSXssfQb9NLB5.cjs → BHVMFgCf0RVhQXfH.cjs} +1 -1
  2. package/browser/cjs/{v9jptQ8YF5aYiSJW.cjs → BHrg3JbGM6Kwue-U.cjs} +1 -1
  3. package/browser/cjs/{BF2d4AT-8wC4o-bd.cjs → BIv4-t1HQ541wAwr.cjs} +2 -2
  4. package/browser/cjs/{BH4dg2gmB8oqTsOx.cjs → BVSFZjqCXam9LuMW.cjs} +1 -1
  5. package/browser/cjs/{Brt1Qu7ve1aGQx6E.cjs → BgGz6SYl8Th-2fil.cjs} +1 -1
  6. package/browser/cjs/{pCUVkGWuaJ-Fh1Sk.cjs → BhQ3IyscHvFJeVi_.cjs} +1 -1
  7. package/browser/cjs/{vkOpQTOL5enTWZbk.cjs → BoRwV1CpU7Wttyt_.cjs} +1 -1
  8. package/browser/cjs/{B2TvFOBQI6T9tLdl.cjs → C2xJV6h6UIqQBXiK.cjs} +1 -1
  9. package/browser/cjs/{CqNMA0sKeFRmQ2Eh.cjs → C6m96vIAH_fd-9A5.cjs} +1 -1
  10. package/browser/cjs/{CPROWXJ7-Vzn3Sfn.cjs → CNd4LFA8FYve_9l5.cjs} +1 -1
  11. package/browser/cjs/{Dm0H2roIEtmOOCde.cjs → CXrZZtl2yy4sbpBZ.cjs} +1 -1
  12. package/browser/cjs/{CLELPc8mqn0NMEE9.cjs → CgIJnktIfMx1hQOU.cjs} +1 -1
  13. package/browser/cjs/{DxUo5NgFA9Si-djI.cjs → CmleO0xmwkhtxtan.cjs} +2 -2
  14. package/browser/cjs/{Cjx3UtDpKKsZLfwU.cjs → CpSbTQDNFKa6-g6e.cjs} +1 -1
  15. package/browser/cjs/{DUwY-SZSA-W33lwq.cjs → Cx8ZKE0_3GrG0qAk.cjs} +1 -1
  16. package/browser/cjs/{BNKG49ksGHesGgun.cjs → CyV8aOTm2-8vtI1-.cjs} +1 -1
  17. package/browser/cjs/{CMez-Q0Fl_LdzGS5.cjs → D6mRVR9_AsH5cbc2.cjs} +1 -1
  18. package/browser/cjs/{D3wvl1Jt_Db2XuUu.cjs → DGQQXCaSsgmZ4mg_.cjs} +1 -1
  19. package/browser/cjs/{D2AM2GNT5nmryV8o.cjs → DMMVoHDqrWE4y9eU.cjs} +3 -3
  20. package/browser/cjs/{DZVCGZuIHKn--Olt.cjs → DOyCG3chSzm1Uk17.cjs} +1 -1
  21. package/browser/cjs/{QpFiQ0Vkb0hdVd6F.cjs → DQEu271vSzRNKbl5.cjs} +1 -1
  22. package/browser/cjs/Dl67EhEyPK03Cect.cjs +54 -0
  23. package/browser/cjs/{BsNHmPq15Y18d0RS.cjs → DqGe4TEv1YWfsaAM.cjs} +1 -1
  24. package/browser/cjs/{BcBkNNZV_EjdyUd0.cjs → OZG_oyResTRSRJ-P.cjs} +1 -1
  25. package/browser/cjs/index.cjs +2 -2
  26. package/browser/cjs/{B2iWYefJIM-ljJT7.cjs → kimeNpjbjPTWoj-H.cjs} +1 -1
  27. package/browser/cjs/{DW_5WNX_b9CQh-Tg.cjs → naZ-_CXgfO2C7yn1.cjs} +1 -1
  28. package/browser/cjs/{Bt1ddAjROFhxZRJS.cjs → z6tki_oyZeiwFY54.cjs} +1 -1
  29. package/browser/esm/{DUKkVJORU61xxXI0.mjs → 2SndwtgdMYDM_Pur.mjs} +1 -1
  30. package/{node/esm/C3_W7w2B3I_H-_2M.mjs → browser/esm/B-e8QdMoadmcWapY.mjs} +1 -1
  31. package/browser/esm/{BaH_dWF6RON0Ks5Q.mjs → BI64Hy1U-g0SMQFA.mjs} +2 -2
  32. package/browser/esm/{Bg2jEBgucoRjg6NJ.mjs → BKA8_X3A3J15qVN3.mjs} +1 -1
  33. package/browser/esm/{DsmE784G2MKC2REI.mjs → BUu0YS5eZJJ_0hmJ.mjs} +1 -1
  34. package/{node/esm/B-hePdrUIvce5Afq.mjs → browser/esm/BX42TmRmysHDb35l.mjs} +1 -1
  35. package/browser/esm/{BSgF2mfKgB_KN3u_.mjs → BuPB4Z3UzGgpqSfe.mjs} +1 -1
  36. package/browser/esm/{D84oDwMsdQ_bB2af.mjs → C1SBw8ul-hQa4YAm.mjs} +2 -2
  37. package/browser/esm/{8cb_SvXseU1_3JEJ.mjs → C6jTQEjUXlY09HGV.mjs} +1 -1
  38. package/browser/esm/{zm4iD0p6YdIsQOZx.mjs → C8Qava1GHh_81rVu.mjs} +1 -1
  39. package/browser/esm/{BEFnMNGlwKl-YIiP.mjs → CDIMeTgg-PPnFT5_.mjs} +1 -1
  40. package/browser/esm/{UJOf4aE3NfMEUpQv.mjs → CNOdVndhFWQX-fS7.mjs} +1 -1
  41. package/{node/esm/CsS2CAW3agbooMav.mjs → browser/esm/CZp5Bp3yGeKavl3D.mjs} +1 -1
  42. package/browser/esm/{Ds5GHQzEDJku499M.mjs → D2WDz9oi_qPVU4iR.mjs} +1 -1
  43. package/browser/esm/{Ct-rS3MAxgjTsXsF.mjs → DAnffkN64V9EgItf.mjs} +5509 -5520
  44. package/browser/esm/{CJkei1edw7hp_s9K.mjs → DCa1zJgLNnrIFrMo.mjs} +1 -1
  45. package/{node/esm/DNoNAnp_rl_NdD23.mjs → browser/esm/DEdc56q2wZKCSMtD.mjs} +1 -1
  46. package/browser/esm/{GgIszM2-0b6Y9TRR.mjs → DLhjPjZXmLpAnyXO.mjs} +1 -1
  47. package/{node/esm/CF0OiNcWgfLgjof_.mjs → browser/esm/DNVK44m7wB7E4DHG.mjs} +1 -1
  48. package/{node/esm/BkOPvQxEjpcoCCwZ.mjs → browser/esm/DNm_ybO08Qqf8xXM.mjs} +1 -1
  49. package/browser/esm/{DV7-4_-IS4EsPwJm.mjs → DU0l4TUDTtsDt5R-.mjs} +3 -3
  50. package/browser/esm/{VPHBrGxnk0qHmeNP.mjs → D_btzq0doK-YmSTr.mjs} +1 -1
  51. package/browser/esm/{C9WHn2CJSsdQlIko.mjs → De3pL6RwnEVg-SCg.mjs} +1 -1
  52. package/browser/esm/{DYTm7pS8tXblZ9Px.mjs → DoKnJyRp_A8kBM2o.mjs} +1 -1
  53. package/browser/esm/{DjSI-5dgg1AkFmRQ.mjs → XLhQMXf8gEDHaz-w.mjs} +1 -1
  54. package/browser/esm/index.mjs +2 -2
  55. package/browser/esm/{CJ8LhKbXvgTrTahT.mjs → qMCSYdLZY8kLpXUt.mjs} +1 -1
  56. package/{node/esm/Kzs5BIcFoiT86KC6.mjs → browser/esm/sXcM0-N70HAAHbyw.mjs} +1 -1
  57. package/node/esm/{DUKkVJORU61xxXI0.mjs → 2SndwtgdMYDM_Pur.mjs} +1 -1
  58. package/{browser/esm/C3_W7w2B3I_H-_2M.mjs → node/esm/B-e8QdMoadmcWapY.mjs} +1 -1
  59. package/node/esm/{CJbCQvV-BcwJW3UX.mjs → B1DTgF3vloy-pQ14.mjs} +1 -1
  60. package/node/esm/{C0uAe0nZkGOU2HsH.mjs → BBlEtiFkfFOc9fjh.mjs} +2 -2
  61. package/{browser/esm/B-hePdrUIvce5Afq.mjs → node/esm/BX42TmRmysHDb35l.mjs} +1 -1
  62. package/node/esm/{8cb_SvXseU1_3JEJ.mjs → C6jTQEjUXlY09HGV.mjs} +1 -1
  63. package/node/esm/{zm4iD0p6YdIsQOZx.mjs → C8Qava1GHh_81rVu.mjs} +1 -1
  64. package/node/esm/{DuhJO8-AA9pqgggQ.mjs → C8uTP-EWp8EdmGhx.mjs} +1 -1
  65. package/node/esm/{BEFnMNGlwKl-YIiP.mjs → CDIMeTgg-PPnFT5_.mjs} +1 -1
  66. package/node/esm/{UJOf4aE3NfMEUpQv.mjs → CNOdVndhFWQX-fS7.mjs} +1 -1
  67. package/{browser/esm/CsS2CAW3agbooMav.mjs → node/esm/CZp5Bp3yGeKavl3D.mjs} +1 -1
  68. package/node/esm/{CJkei1edw7hp_s9K.mjs → DCa1zJgLNnrIFrMo.mjs} +1 -1
  69. package/{browser/esm/DNoNAnp_rl_NdD23.mjs → node/esm/DEdc56q2wZKCSMtD.mjs} +1 -1
  70. package/{browser/esm/CF0OiNcWgfLgjof_.mjs → node/esm/DNVK44m7wB7E4DHG.mjs} +1 -1
  71. package/{browser/esm/BkOPvQxEjpcoCCwZ.mjs → node/esm/DNm_ybO08Qqf8xXM.mjs} +1 -1
  72. package/node/esm/{CSaexTW3s3AXopFP.mjs → DQ65zqWBhDLGYt1r.mjs} +1 -1
  73. package/node/esm/{DuRBG5ttXEdHC_ll.mjs → DVYeiN1QOmtgiURB.mjs} +1 -1
  74. package/node/esm/{DuHiX01S79dOmmsy.mjs → DZxxSosB2pQitDJW.mjs} +1 -1
  75. package/node/esm/{VPHBrGxnk0qHmeNP.mjs → D_btzq0doK-YmSTr.mjs} +1 -1
  76. package/node/esm/{C9WHn2CJSsdQlIko.mjs → De3pL6RwnEVg-SCg.mjs} +1 -1
  77. package/node/esm/{5WQcSozNVbwlCV5N.mjs → DeAQ5AGhiWB9luiD.mjs} +1 -1
  78. package/node/esm/{DYTm7pS8tXblZ9Px.mjs → DoKnJyRp_A8kBM2o.mjs} +1 -1
  79. package/node/esm/{BWdeYoMSneJZAsOO.mjs → WiA_qC_Y_I3OwexB.mjs} +1 -1
  80. package/node/esm/index.mjs +782 -770
  81. package/{browser/esm/Kzs5BIcFoiT86KC6.mjs → node/esm/sXcM0-N70HAAHbyw.mjs} +1 -1
  82. package/node/esm/{BwbuTPf4DW30takd.mjs → wpHxv6XYZoowejqm.mjs} +1 -1
  83. package/package.json +4 -4
  84. package/browser/cjs/DuOul6ocUy7X2XMm.cjs +0 -54
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.19
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.20
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.19";
380
+ return "0.6.20";
381
381
  } catch (t2) {
382
382
  return "";
383
383
  }
384
384
  }, P = Object.freeze(Object.defineProperty({ __proto__: null, getBuildDate: () => {
385
385
  try {
386
- return "Sun Aug 31 2025";
386
+ return "Wed Sep 03 2025";
387
387
  } catch (t2) {
388
388
  return "";
389
389
  }
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 () => {
390
+ }, getBuildVersion: L }, Symbol.toStringTag, { value: "Module" })), z = "\n███████╗██╗ ██╗███████╗███████╗████████╗ ██╗ ██╗██╗\n██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝ ╚██╗██╔╝██║\n███████╗███████║█████╗ █████╗ ██║ ╚███╔╝ ██║\n╚════██║██╔══██║██╔══╝ ██╔══╝ ██║ ██╔██╗ ██║\n███████║██║ ██║███████╗███████╗ ██║ ██╔╝ ██╗███████╗\n╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝", H = `
391
+ https://www.sheetxl.com ${L()}`, W = "#1976d2", V = "#FFA726", $ = Object.freeze(Object.defineProperty({ __proto__: null, generateNodeId: async () => {
392
392
  if (!o.isNode()) return null;
393
393
  const t2 = await import(
394
394
  /* @vite-ignore */
@@ -412,10 +412,10 @@ const L = () => {
412
412
  "chalk"
413
413
  )).default;
414
414
  t3.level = 2;
415
- const e2 = t3.hex(H), n2 = t3.hex(V);
416
- return console.log(e2(z) + n2(W));
415
+ const e2 = t3.hex(W), n2 = t3.hex(V);
416
+ return console.log(e2(z) + n2(H));
417
417
  } catch (t3) {
418
- return console.log(z + "\n" + W + "\n");
418
+ return console.log(z + "\n" + H + "\n");
419
419
  }
420
420
  }, printDetails: async (t2, e2 = false, n2 = false, r2 = false) => {
421
421
  let o2;
@@ -425,7 +425,7 @@ const L = () => {
425
425
  "chalk"
426
426
  )).default;
427
427
  s2.level = 2;
428
- const i2 = s2.red, a2 = s2.hex(H), l2 = s2.hex(V), c2 = t2.isEval();
428
+ const i2 = s2.red, a2 = s2.hex(W), l2 = s2.hex(V), c2 = t2.isEval();
429
429
  if (c2 ? (o2 = "Evaluation Only", console.log(i2(o2)), o2 = "Please visit https://my.sheetxl.com to register.", console.log(a2(o2))) : (o2 = `Licensee: ${t2.licensee() ?? "Invalid License"}
430
430
  `, o2 += `Expires: ${t2.expiration()?.toLocaleDateString() ?? "Never"}`, t2.domains() && t2.domains().length > 0 && (o2 += `
431
431
  Domains: ${t2.domains().join(", ")}`), t2.cpuCount() > 0 && (o2 += `
@@ -457,42 +457,28 @@ 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 K(t2 - 749, r2);
460
+ return Y(n2 - -36, t2);
461
461
  }
462
- function J() {
463
- const t2 = ["bXdcLWKpeW", "pCoJW54oWQddNdBdICoXpSoqW4SP", "WO4TW7D8dGtcIWf9", "W6qYW6aqWRJdMq", "aqVcJq4p", "WR3cGGaRy8kGW5K", "W6lcQmk7lZFcQNldKCkcEcRcN8oY", "i3ihWP9RqhBcIMy", "n28RmXfGWQO", "f8kTW6JcPZhcNG", "uwmMWQVdRGi", "W7DaW6xcLCkBpG", "WRbYWQVcG8oZrfRdHHC7FKlcI8kYWRhcKmkQccW9", "WRr3WOZdKCofrwhdISkhW5RdOfz8", "WQldUSouWQtdOCoLk8oRWQ5E", "w2TPtaCPWRLflmo7", "BeSOWOrr", "W6tcRmkHidVcTfhdS8kzFZdcJSoZW6y", "FSk5WOrBmZO", "Be8LWPLqW64", "DmkUWO9zptC", "ELVcMmkfW53dMW", "W5GxW6Hf", "d8kzcdePmW", "WRG7A8klW5tcQ8k4ySo1", "WQ7dNSotg1ZcS8ox", "WQldKI5lfSkZCgXKwa", "m8oRW5mfWQVdNqpdSmo9kq", "bceZW5NcJCokW7i", "EmkaaCoUW5VcUa", "kSosWPToW4FcUYywWPqE", "A8k/WObmpsWJlmkEW4q", "WQBdKSoeh1VcRmobW4ZcPbe", "fSoei8kzW4FdG1O", "aczyW7FdVsHyWORcPSoC", "WRNdJ8ogcehcRmoZW67cTqa", "W7VdLuCCACkrW4JdOwW", "BCkaeCozW43cThzIWRRdS3GKECknBa", "Emo9js1HdmoVWPyQ", "ESkxcSo2W5hcRN8", "WPL4W7/cO8o5xvRdHHu7", "D8knWQLOW6RcNcyi", "peSGeCkqW4NdSY5VW5D8W6tcVNiU", "WQVcLH/cIa", "ueJcUetcI3WKWQWTW5T9qSkDf8oMfG", "t8oko8o6nmkfWRldRmo7WPVdMmkPEW", "W6G5W40AWQZdImk7vgiR", "W60NW5pcH8kuaq", "W5avW44eW6qinvm", "W50AW4NcKmkyatFdNSkO", "W6HrW6RcGmkBjCo/z3BcVW", "CYJcNSoHdCodpqZcJKeNW5CH", "W4GVWR7dLmkUgqldPaKhkvlcMG", "W4WQWPNcICksda", "WR8xW5ddNLJcJW", "keyXnSkrW5JdSW", "ss7cJCoK", "WQ/dJSkt", "DSoFkmoNl8kdWPpdUG", "W6pdSJugW6RcVW", "WPdcLWeTyCkI", "C2qPnWSUWRD+bZFcJXBdTIBcU8kc", "q3JdM8o1WQZcISk7", "E14WWOXmW7hcN2CnsHJdQCopCG", "fSoei8kdW4hdILRcKmok", "WRyFWQldTmoHvKW", "jmkmCCode8kcWP7dOCob", "WPmyWRFdSmoJte3cVmkTfSkjrxDoW6JdUSokW7tcPmkFW4u/WOhcMJGRAb0c", "ls7cRa9oAMq5W5ZcUSoTWQ4l", "W5GqW7jdW60YoXRdGmoKW4Pq", "WQZdRmoUWO/dOmo0", "iCkmFCkHASkOWQ7dP8oDWQ/dIq", "W7BcIhGCm8k8EubPCNG", "omoNW4qVWPy", "WR7dKSkmA8ok", "k8o+W5mkEwHceCkGW4nhWP/dPW", "WRpdUc3cKID+WO4Cymkbb0Wv", "W4ZcOmk2jdZcQ0FcG8koBI7cK8oKW6FdMCoLWRbqWRK", "w3KeW6RdPH99WQxcGCoeWOi", "f2WtWQTArtO", "AdS0xbyvWOS2cuNdNeql", "i3u1oG", "nSkBW63dISo1WQNcPmo3W7dcJsjR", "jmk4W7tcQsVcGK8zeKJdJSk1W5u", "W5xdSqizW6xcPW", "DComkmo/", "W7JdKKT1q8k+W6BdMMHs", "aCoujmkL", "D3xcRhf3W6hdICkiWONcVLpcHSkuaJqNW7egea", "bYeZW7RcKCopW60RumoIW4Sg", "k8kJW5NdLSkADeC", "lNakWQDFxZT1WOBcIwa5W6uVW4RdGSoOna", "dhypWP12zNBcKg0OqG", "yJzYyeHxWOf/iulcMG", "WPtdPepcMdTR", "xwGyWQ3dUb4", "pZq1W5hcISos", "WRGxW4FdV17cIdW", "cSkeW7hdKmo0WRhcG8obW7FcLY9xW6GHWP0tn8oUbG", "WO3cTbySW4FcN8o5iG", "qexcNmk6W5ldNq", "oSkNW5VdHSknu0xdR2ddNmkHW6/cUIa", "Bt8UEryE", "W5/cUCkNkdZcRa", "hSkWW6xcPtxcGMitcfO", "WPC/zCkkW5tcVmk8", "C1lcTKFdMq", "WQ3dNSotoedcTSoiW6pcHqNcTCog", "WQfcW7VcLCoZxvtdScy", "oCkAndCJiSoEWQ/dNSo1c8ov", "AMNdQcDAsgmPW6O", "WRRdICoif1ZcRmob", "W6/dIGiQW5dcK8oq", "v1JcNxHkW5RdOmk5WRBcKLVcPSkJ", "Cx4EWQxdPG5TW6dcGmodWPWLWQ3cSW", "W6SZW4SAWQBdMq", "amkyW5RdLCo6WRe", "WRZcHHJcPmoeW7/cMNBcSgW", "mL0cmSkjW4NdUW", "A0KTWOa", "bsKMW5hcImkg", "cCoGWP1lWR8ggG", "kaX0W54xWQtdNKewBIBdHCoL", "vCoFDgP9yCkQWPRdUSo0o8oxWQa", "WQqtW43dQv7cJJ/dHgy4", "oNmdjbLI", "r8k7WPnxjYSWimkEW417WOpdSq", "mJ7cSHHizW", "W70ZW4esWRxdJ8k3", "yYKmuX8oWR8", "lSo+j8k/W4hdMLdcHSoX", "edyUW5BcKmoKW6aHESoMW40", "BCk7WOfqW7FcNfFcI8oof8o0W5OVfa", "stu3xWyjWRiWgq", "W7hcQCkyWRddJCoIiSoQWOW", "WRSuWQddTmoKu1VdJmkXemktewrl", "i8odWOHcW5VcSq", "C1dcGmk0W4JdGq", "WQ7dLmokg1ZcSCox", "tJNcGSoMbSofkrVcK046W542", "W7DkW6JcK8kdpSohFxy", "W4ycW4yEW6u+nvtdStNcI04", "WRJdOwZcMYPVWPmhBSkBtM8sWQRdGCo0WQpcHW", "xhuCWQxdOWT6WPdcLSofWP8WWQhcUq", "W6FcRmkHaYFcSu7dH8kVDYRcNW", "W7NcJNuFnmkOt39JEq", "WPOCW4JdMedcJJxcKe81thm7WRaMog0DAt3cLXXpW5pcMmotaq", "WO5OW7JcJW", "nSkBW63dISo1WQK", "WQpcJHaHyCkLW5NdPW", "hmoXWOr9WRu1aMW", "nguOnWPVWQ10pxJcHHldIYe", "WOaNW7bRce3dGuO", "W4LpFqBdLu4", "egeiWPr2ta", "d8kXW7BcPq", "bsOJW4VcS8opW7uN", "W5mEW4SdW4ytjeG", "fItcNSkrW7FdLCoVyY7dT8kvs8kuWRa", "WQBdLmoeg0hcTSolW6K", "d2esWRHNxq", "WPxdKmkxy8oiW7BcGWDVWP9pyq", "BvpcN1vpW5ddOCo3WQNcNNpcPSk0iHryW5eMmhm", "sKJcUetdGLqSWRST", "fmoznmkOW57dMLBcTSoaW74", "fHZcKciowJmfWQhcTSk4WQldOYpdNG", "kJtcKbbFBNSVW4JcQCoWWQuSFgJcNsCD", "W5WhW6nz", "WPRdSNNcSZP6WOyhBCkg", "WQJcGGCgESk/W5ddPK5RgJ0", "ugK5DbClWQ5zpSoNW63dPLdcPG", "W7FcHNGup8kPEKzVBMKcWQu", "WPVdPwJcKIvR", "WQ7dNSotg1ZcS8oxW5FcSWhcR8oxlJ4", "WOSOzmkaW4NcPW", "qmoUman9aCoIWOyzWPH7WRr1pIy", "WO11W67cGSoOuvFdSbuHpvtcLCkKWRFcPSkNbda", "C0ZcVe3dKvu", "vsW7xHOdWROWbq", "WQhdHCkCtmouW63cRa", "v8o+nYK", "n2uYmXfIWQPbax7cJapdPYe", "lCkWW5RdJSkwqvq", "WOqNW6q", "AZz2yq9bWOHBmwC", "WRqxW4RdU1NcJJ3dLeC9w3m", "xvlcT8oGgCoyWQtcTczcW4uLWRG", "W4mUWO4tWRxdN8k3vx89kCkLW7dcGHuLWOOxW7G", "ECojh8oYnSkyWPi", "BxpdMCoaWQNcJSk6CXBdN8kHwSk/WQxdHmo0", "D1/cT0BdJKiDWR0HW5T6qSoz", "BJ8SvX8iWQSHeMtdH1qbW4G", "omopiCkSW4ldH1VdUCocW6qgWRFcIufFWRFcJHTgaW", "DCocoCo6kmki", "mH9AW58vWOCZqGqWWPldQSow", "WPq9zSkoW4K", "WRZcKXi2E8kLW6VdQ35I", "W65dW6pcU8k9erJcSSoY", "oCkCjZiKmSo9WRRdLq", "sK7cQ0hdHuqpWQ4MW5TRvq", "WOqTW614eKq", "W40AW7HiW6KcnWhdJ8o+", "W7NdTcydW7hcQSoOhMxdOSo7W5BdV8oLgmk6Edmqsd90j8kEW4i"];
464
- return (J = function() {
462
+ function q(t2, e2, n2, r2, o2) {
463
+ return Y(o2 - -461, r2);
464
+ }
465
+ function J(t2, e2, n2, r2, o2) {
466
+ return Y(r2 - -17, o2);
467
+ }
468
+ function K() {
469
+ const t2 = ["W7JcUqqHcmo9xCoOWOBdISobjJBcJW", "bwnQkSk1BgyZtXjcWQxdTW", "cf3cOrBdVCon", "W7ZdVtWNW4jVuCkrW5ldIc1vW4ldSq", "W67cP8kLWQVdIN7dMqddU0q", "W7RcSb8VeW", "BmkhW5HnCs7cVbO", "WQddI8oVWR7cOKRdPG", "Amour8oCCxntE8oyfd8zW4rSW6pcJMSMWPm", "vKGgW47dOJz9zq", "fCkqW6RcIG", "W6ntiCoQqXGIxq", "WRjYW7BcOs7cUqOcWRldSCkXW63dPgy", "amkcWOJcNGL2pmkfW7xcShdcLrC", "c8kqWQJcNWHH", "vumwW57dNxCUi8o6", "BfFcQ0eHW6K", "WQ/dI8oIWPNcUuNdUmoslmkyWQz4ts4", "tmo9CCojv0jXumoXoq", "scXiW5pcU8oSWOuQW6ZcVG", "W47dQCkda3VdVmkJ", "WONcRGtcVKHZ", "W6FdRvVdT2JdHdZdSSotW6i", "nfxcGmko", "d8oiW53cGqFdTmkqWO7cMIq", "BfyqW5tdMYTlBmk7oajO", "W61RweXSW5hcLW", "W5tdSLPWfI/dJCkxWPTmqN4", "CxFdSZ7dVCkfW4KLWPC", "W5dcKhrdxCod", "W7xcRZ4VbCo0", "umkbW4XIDZ/cSXRdRa", "tvldHSoeWPhcSHHrW7FcJeJdVSoPWRGmWP3dUCoqEq", "W7ZdVt4JW4DSuG", "WRJdTSoKW5/dR3tdNrpdL3FcT28vwSow", "WONcQrZcQfBdKXBdPmohW5PcWOq", "FCofu2ldSG", "nflcMSkiW4i", "W7VdSszSW4j4vCkrW4xdOZe", "WRpcTXJcL1NdLq", "W55Ao8opDsO", "dCkwW41Nf2FdLSkIW5VcLq", "BmoAw2RdSLO", "WQCWWQ9wyCoWWQXDyLu3dq", "pLxdHmkAnSkOx1mGW7tcU8kJkW0", "WRpdTSo+W7RdRNu", "WRNdQmo3v3FdNZC", "lvpcVCkjW5lcVa", "WOldSCo7wNFdLsxcLmkv", "W6JdRtKQ", "cCkmW7RcH34Xw8kUqSoe", "zmoSCmoWs19BqCoGpbuWW7K", "WR8wW5lcUa", "WQ3dTSoJW7ldTMVdLa", "W4FdQdGRW4b0zCkrW5tdQITmW58", "q3HbWRlcNILKW5e", "C0BcPfqHW7iOfbLz", "WQpdHSoxfW", "z1KKavaOasLNW57cGmkR", "WP4SWRbzECoDWQ0jBvm/g8keWPSEWRq", "WRtdLSoqoWZdICkLCmkpiq", "z1KKavaUbtnOW5lcNG", "W67dStKRW5OG", "jWGaWP0", "WQNdJ8o4WPBcTvFdM8oWn8kFWRXPta", "kwigWRi8W7PTva", "gKrYW5BcNCkA", "sfS/bKOyjJXOW5NcICkQ", "WRS4hcW9WORcI8kFsSo3ov4", "W5vPxmoCW4xdL0hcJmoMW6JdK37dHxO", "fxRdHdJdJmoSqq", "nvRdPbJdRmomyq", "W6ZcSCkRbYFcGNlcOSkKWOePemkq", "zcHBW4JcOCoR", "WR/cQYdcPeb7k8kFW68", "p3uiWQSGW7TT", "WOZdHCofeWddMCkLBCkg", "WQ3dTCo1w3FdGIe", "WPX/tmocWO0iWPm", "ma3cLmkqW4BdSKSZW4BcG3NdTSoA", "F8kfW4jJDYJcTW", "uZOWC8oIjKirFcT/WQ8", "WRRcVadcPKZdJW", "WRhcVbRcJ1FdGZhdJmon", "WQ3cV8kzWPxdVmouW5jtWP4", "y8kEW45RCcJcTYxdRdi", "n1tcKSkuW4lcQSk+WQDQWRi", "s8oUBCo0tfH6", "yLtdI8osWPdcRrGMW7VcGfddMCo0WO4hW4JdPmoDpa", "leDfW4NcKSkc", "W7jypCoT", "W6tcLqFcRGPUW6CFnq", "W5tdSSkWb2pdRCkRW6a+CSkVu8oWW77cS1jVWPLF", "vKGu", "CvKOcL4j", "W4xdTKjhbGddLW", "uHRdQCkunmklWPi", "W7XJeSo1W57dLvdcH8oBW6lcL1ddQwC", "WOa1amkmWOdcHNNcSmoyW4pdKwi", "ivFdTt/dRCoDyCoKW6JdNMPqfCo3ca", "W4pdPufFcJxdHa", "CxhdSZRdV8kEW4mDWOz2", "WQixW63cThO0W44", "WOqpW51EqL3cMCkxW4BdJCouWOi", "pmk9W643WPxdPmkLW5erdCkGoSk0WRRdG1TOW78YW7a", "ivFdTtNdVCoaBmoPW5ldIa", "g8kAW49We2ddQmkKW4hcJG", "W7zpkSo0FqiZ", "WOGDWRzkESoaWQz2xa", "WOFcUdxcILX2jSkpW47dMSoQCW", "vZ1hW4BcU8o3", "W5hdTJWJW4jPrCouW4ZdOIffW4ldTSk2W4yrWPVcJmoF", "WR/dLSokgb3dLq", "WQ8bW4/cTh8XW5LAWObREmkzCmkw", "emkZWQa9WP/dU8kuW4Owemo0lmkG", "WOhcKmkfWO7dPW", "W5ZcRWpcKZy", "WP8DySkinMJdLKLgf0TzDq", "ASkpW45RBI/cUWhdPZG", "W7tdTY0", "WQRcTmkXW5pdQmosBa", "lSkkWOxcLqj3cCoxW7lcSxddKaxdK8o9n8o1W4pcOSolWPhcQ8kjWRqkW6NdVmoMWOa", "o8k8WRGYWPBdOmkGWPGtf8oJlmkQWQZdHrjLW7mUWRO", "W57cVbBcSa", "WP8CBSknmXRcPL5PawK", "WQNcSZFcQuv2lSolW4BdKSo9C13dNs/cQG7cKSk2WR7dUSoHn8kLW4GzqG", "WRhdVCoYW5WPo2NcGGNcOfWmW6pdHvWzCmoF", "vSohsgRdSa4", "dSkgWOJcLXHS", "W43cMMrTCCoE", "WPpdQmk6u2BdGs3cKSkrWOibhSk/", "tCoaW4reiSo8xZvM", "W5pdO8kLbW", "o1hdHmkriCk7E0qhW7xcQ8kJbG", "ffi1WRBdJSoOW5a4", "peJdMSkwnSkW", "ruCoW4JdKbL/", "agDWbSkLD1OLCbLeWRpdUHBcVG", "jrSvWRmQkCkBhCoBC8k/W7G", "zSovugBdVq4", "zcHBW4JcOCoRWPyMW6ZcT0CSuq", "W7NcNmkIW47dO2BdJ8oTeSkIWPO", "W618qmoqW5NdGNhcJmoCW6BdNNFdVW", "vSohsgRdSa4pzXlcUmkeWOi", "dmkwW5FcJxqN", "W67cPCkGWQNcOIVdIahdO0dcV2S", "bmkgWOFcHbL2cCke", "kL3dOHZdRmoDySoU", "aejhW5dcJSktCSkiW7bCvhnw", "zL7dKCoJWORcQbevW4tcKuRdPmoYWRig", "WPLUtmoEWPW", "aNP0lCkIzW", "hum1WRBdKmoVW5WYvCoq", "dNfbmSkXCG", "kLFdRXRdRmoC", "zmoQy8o1te9+umoX", "W5JcJxvdBSoc", "WOOzW799w13cKq", "W7tdVsqLW5PO", "W55llSo3AtRcH19wn3bQEW", "W51BkCot", "deZcQmoYBmowWPZdM2pcHKpdQq", "W4/cPtVcSWz7W6qLlKtdTs/dPSoWWPpdV8osW50", "WOH5W7tcJcVcSWTmWQxdU8kxW6NdTa", "aCkaW63cG3KUtCk1vCouWQ/cN8kZWPm", "WR5QW6hcRglcNaDbWRpdSmkVW6NcRupcOSoI", "WRSRWQvDE8ohWQXIzKu", "dSkxW599", "g1BcKSkkW5/cVCkiWRP7", "WQafW4rXqLRcNmkhW7S", "W6hcJ2jpESot", "qCoCWPRdOhtdJ8kPWRKIvmkC", "BMftWQRcHsL9W53dUNT2pmkEWOjBWOtdGLi", "WQ8bW4/cTh8XW5K", "lYVcQgZcP8oCWPiUWObknSozdW", "t3jgWQFcMsr6", "i0xcH8kIW5pcRCkiWQDYWQK", "WQBcOSkKW5FdTmopyqhdLrO", "sfS/bKOy", "W6SaW5tcSgv9W4rLWOyIE8kmyCkrW4mU", "WRhdKSokeqZdJ8kuA8kkpmkeuCoV", "f1HAW4hcLCkyCG", "hCkuWOfuhSoausztWRq", "WRNdOCo1W7JdOhG", "twvxWQpcII0", "nLr2WR/dICo4W5aZsmogW43cRZefcbtdRL1m", "FSoQy8o1uePRtCo7m1WSW69nW4/cVKrdWQ/cMCkbWQiDD3e", "WRVdM8oLWPa", "W6zRqN9XW5q", "WRaNWRjZCmon", "W69oc8o2Cbq", "rSoQW7PKW4JcSCkWW6GLkCojjG", "tSkgWQjDmmogwG", "C8kwWPJdH0/cHCkjWRdcUsxcJ8o5", "W4j+w8oxW4pdTftcH8ogW6ldHq", "WP8xAmkon2NcRMHvfL12", "WOL5W6tcTshcTq", "WQ3dRKDUuCk/hSkwW4u", "W5BdR15Bet8", "W5dcRW7cMHD1W6u", "WQrSW7lcQsZcPa", "W7ZcN8kNWQZcIw3dPmo4bW", "WQ7dS8o7rgRdGHpcICkeWP4", "WQJcQYCnkSoJra", "W4PllSo5DtdcJLvHm09Q", "a2DWjCk5CKurvbvyWRtdTH0"];
470
+ return (K = function() {
465
471
  return t2;
466
472
  })();
467
473
  }
468
- !(function() {
469
- const t2 = 532, e2 = "KUDT", n2 = "aQ0U", r2 = 497, o2 = "JHeb", s2 = 460, i2 = "Laa8", a2 = 230, l2 = "9(1p", c2 = 499, h2 = "9bL!", d2 = J();
470
- function u2(t3, e3, n3, r3, o3) {
471
- return K(o3 - -96, t3);
472
- }
473
- function g2(t3, e3, n3, r3, o3) {
474
- return K(n3 - -871, r3);
475
- }
476
- function m2(t3, e3, n3, r3, o3) {
477
- return K(n3 - 149, e3);
478
- }
479
- for (; ; ) try {
480
- if (750795 === -parseInt(g2(0, 0, -597, "Q(]1")) / 1 * (parseInt(g2(0, 0, -t2, e2)) / 2) + -parseInt(m2(0, n2, 464)) / 3 + -parseInt(g2(0, 0, -r2, "yEut")) / 4 * (parseInt(m2(0, o2, s2)) / 5) + -parseInt(g2(0, 0, -509, i2)) / 6 + parseInt(u2("Wu[F", 0, 0, 0, a2)) / 7 * (parseInt(u2(l2, 0, 0, 0, 254)) / 8) + parseInt(u2("W9w)", 0, 0, 0, 157)) / 9 + parseInt(g2(0, 0, -c2, h2)) / 10) break;
481
- d2.push(d2.shift());
482
- } catch (t3) {
483
- d2.push(d2.shift());
484
- }
485
- })();
486
- const q = () => {
487
- const t2 = 1073, e2 = "c0Pj", n2 = 600, r2 = "9bL!", s2 = 93, i2 = 208;
488
- return typeof window === K(-490 - -777, "W9w)") ? window[c2 = t2, h2 = e2, K(c2 - 674, h2)][a2 = n2, l2 = "F&SG", K(a2 - i2, l2)] : o[d2 = r2, u2 = 406, K(u2 - s2, d2)]();
489
- var a2, l2, c2, h2, d2, u2;
490
- };
491
- function K(t2, e2) {
492
- const n2 = J();
493
- return K = function(e3, r2) {
494
- let o2 = n2[e3 -= 242];
495
- if (void 0 === K.HnOjjT) {
474
+ function X(t2, e2, n2, r2, o2) {
475
+ return Y(o2 - 689, n2);
476
+ }
477
+ function Y(t2, e2) {
478
+ const n2 = K();
479
+ return Y = function(e3, r2) {
480
+ let o2 = n2[e3 -= 377];
481
+ if (void 0 === Y.VHoKVP) {
496
482
  const e4 = function(t3, e5) {
497
483
  let n3, r3, o3 = [], s3 = 0, i3 = "";
498
484
  for (t3 = (function(t4) {
@@ -506,324 +492,350 @@ function K(t2, e2) {
506
492
  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]);
507
493
  return i3;
508
494
  };
509
- K.TVyABB = e4, t2 = arguments, K.HnOjjT = true;
495
+ Y.PpMrUw = e4, t2 = arguments, Y.VHoKVP = true;
510
496
  }
511
497
  const s2 = e3 + n2[0], i2 = t2[s2];
512
- return i2 ? o2 = i2 : (void 0 === K.lDXIbv && (K.lDXIbv = true), o2 = K.TVyABB(o2, r2), t2[s2] = o2), o2;
513
- }, K(t2, e2);
498
+ return i2 ? o2 = i2 : (void 0 === Y.EXajoG && (Y.EXajoG = true), o2 = Y.PpMrUw(o2, r2), t2[s2] = o2), o2;
499
+ }, Y(t2, e2);
514
500
  }
515
- function X(t2, e2, n2, r2, o2) {
516
- return K(t2 - 899, e2);
517
- }
518
- const Y = () => {
519
- const t2 = 21;
520
- function e2(t3, e3, n2, r2, o2) {
521
- return K(n2 - -416, r2);
522
- }
523
- return q()[e2(0, 0, -19, "r[Gh")](e2(0, 0, -36, "m28W")) || q() === e2(0, 0, t2, "WIL*");
524
- }, Q = (t2, e2, n2, r2) => {
525
- const o2 = "Wu[F", s2 = 1062, i2 = 673, a2 = 885;
501
+ !(function() {
502
+ const t2 = 1042, e2 = "m1EU", n2 = "!QDv", r2 = 372, o2 = 89, s2 = 440, i2 = 313, a2 = 346, l2 = "Pv6&", c2 = 532;
503
+ function h2(t3, e3, n3, r3, o3) {
504
+ return Y(r3 - -886, n3);
505
+ }
506
+ function d2(t3, e3, n3, r3, o3) {
507
+ return Y(n3 - -655, e3);
508
+ }
509
+ function u2(t3, e3, n3, r3, o3) {
510
+ return Y(r3 - -1e3, e3);
511
+ }
512
+ function g2(t3, e3, n3, r3, o3) {
513
+ return Y(t3 - c2, n3);
514
+ }
515
+ function m2(t3, e3, n3, r3, o3) {
516
+ return Y(r3 - -86, e3);
517
+ }
518
+ const f2 = K();
519
+ for (; ; ) try {
520
+ if (618162 === -parseInt(g2(t2, 0, "Yq^$")) / 1 + -parseInt(m2(0, e2, 0, 473)) / 2 + parseInt(g2(959, 0, "#jNS")) / 3 * (parseInt(m2(0, "$l1c", 0, 353)) / 4) + -parseInt(u2(0, n2, 0, -603)) / 5 + parseInt(h2(0, 0, "rwdc", -r2)) / 6 + parseInt(d2(0, e2, -o2)) / 7 * (-parseInt(h2(0, 0, "PDwq", -s2)) / 8) + -parseInt(h2(0, 0, "MdD)", -i2)) / 9 * (-parseInt(h2(0, 0, l2, -a2)) / 10)) break;
521
+ f2.push(f2.shift());
522
+ } catch (t3) {
523
+ f2.push(f2.shift());
524
+ }
525
+ })();
526
+ const Q = () => {
527
+ const t2 = 934, e2 = 913, n2 = 298, r2 = 1169;
528
+ if (typeof window === Y(189 - -392, "nh6b")) return window[a2(t2, e2, "baBH", 932, 994)][s2 = n2, i2 = "k7mE", Y(s2 - -199, i2)];
529
+ var s2, i2;
530
+ function a2(t3, e3, n3, r3, o2) {
531
+ return Y(o2 - 611, n3);
532
+ }
533
+ return o[a2(0, 0, "]h3A", 0, r2)]();
534
+ }, Z = () => {
535
+ const t2 = 2, e2 = "%Tv3", n2 = "6dBB", r2 = "$l1c", o2 = 534;
536
+ function s2(t3, e3, n3, r3, o3) {
537
+ return Y(e3 - -451, o3);
538
+ }
539
+ return Q()[s2(0, t2, 0, 0, e2)](Y(1004 - o2, n2)) || Q() === s2(0, -18, 0, 0, r2);
540
+ }, tt = (t2, e2, n2, r2) => {
541
+ const o2 = "PDwq", s2 = 109, i2 = 801, a2 = 145;
526
542
  function l2(t3, e3, n3, r3, o3) {
527
- return K(o3 - i2, e3);
543
+ return Y(e3 - i2, t3);
528
544
  }
529
545
  function c2(t3, e3, n3, r3, o3) {
530
- return K(o3 - -697, n3);
546
+ return Y(t3 - -848, r3);
531
547
  }
532
- return { licensee: () => t2[l2(0, "Wu[F", 0, 0, 1062)], expiration: () => new Date(t2[l2(0, "JHeb", 0, 0, 1106)]), domains: () => t2[c2(0, 0, "c0Pj", 0, -319)] ?? [], developerCount: () => {
533
- return t2[e3 = 1316, n3 = "&PgT", K(e3 - a2, n3)] ?? 1;
548
+ return { licensee: () => t2[l2("Nedw", 1377)], expiration: () => {
549
+ return new Date(t2[e3 = 1451, n3 = "Mitq", Y(e3 - 874, n3)]);
534
550
  var e3, n3;
535
- }, cpuCount: () => t2[c2(0, 0, "0sON", 0, -307)] ?? 0, type: () => t2[l2(0, "DKS!", 0, 0, 1068)] ?? l2(0, "&PgT", 0, 0, 1046), exceptions: () => e2, isValidFor: (t3) => {
536
- if (e2?.[n3 = "DKS!", r3 = s2, c2(0, 0, n3, 0, r3 - 1510)] > 0) return false;
537
- var n3, r3;
538
- return true;
539
- }, isValid: () => true, isEval: () => false, features: () => {
540
- return Object[l2(0, "aQ0U", 0, 0, 931)](t2[e3 = "r[Gh", n3 = -281, K(n3 - -569, e3)] ?? {});
551
+ }, domains: () => t2[l2("rwdc", 1289)] ?? [], developerCount: () => {
552
+ return t2[e3 = "m@)o", n3 = 590, Y(n3 - a2, e3)] ?? 1;
541
553
  var e3, n3;
542
- }, keyFrom: () => n2, getBuildVersion: P[l2(0, "cI7a", 0, 0, 955)], getBuildDate: P[c2(0, 0, o2, 0, -288)] };
543
- }, Z = (t2) => {
544
- const e2 = "7V$)", n2 = "#V](", r2 = 1253, s2 = 1088, i2 = 1102, a2 = 1077, l2 = 320, c2 = 347, h2 = "uwts", d2 = 275, u2 = "9d!v", g2 = "KUDT", m2 = 1264, f2 = 1267, p2 = 1173, _2 = "vqcn", S2 = 279, w2 = 731, y2 = 982;
545
- let E2 = o[C2(1148, "1AG@", 1237)];
546
- function C2(t3, e3, n3, r3, o2) {
547
- return K(n3 - y2, e3);
548
- }
549
- if (Y() || o[C2(0, e2, 1316)]()) {
550
- const t3 = P[x2(1110, n2, 1209, r2, 1156)](), e3 = new Date(t3), o2 = /* @__PURE__ */ new Date(), _3 = 864e5;
551
- Math[x2(s2, "da%p", 978, i2, a2)]((o2[I2(l2, c2, 334, h2, d2)]() - e3[b2 = 425, v2 = u2, K(b2 - 123, v2)]()) / _3) >= 120 && (E2 = [x2(1192, g2, m2, f2, p2)]);
552
- } else E2 = [];
553
- var b2, v2;
554
- function x2(t3, e3, n3, r3, o2) {
555
- return K(o2 - w2, e3);
556
- }
557
- function I2(t3, e3, n3, r3, o2) {
558
- return K(o2 - 2, r3);
559
- }
560
- return { licensee: () => x2(0, "7V$)", 0, 0, 1113), expiration: () => null, domains: () => [q()], developerCount: () => 1, cpuCount: () => 0, type: () => I2(0, 0, 0, "mtqW", 298), isEval: () => true, exceptions: () => E2, isValidFor: () => {
561
- return 0 === E2[t3 = "aQ0U", e3 = 463, K(e3 - 203, t3)];
562
- var t3, e3;
563
- }, isValid: () => false, features: () => Object[C2(0, "R9Cs", 1337)]({}), keyFrom: () => t2, getBuildVersion: P[I2(0, 0, 0, _2, S2)], getBuildDate: P[C2(0, "c0Pj", 1329)] };
564
- };
565
- function tt(t2, e2, n2, r2, o2) {
566
- return K(e2 - 602, r2);
567
- }
568
- const et = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
569
- function nt(t2, e2, n2, r2, o2) {
570
- return K(o2 - -357, t2);
571
- }
572
- let rt = false, ot = false;
573
- function st(t2, e2, n2, r2, o2) {
574
- return K(n2 - -84, t2);
554
+ }, cpuCount: () => t2[l2("m3ty", 1249)] ?? 0, type: () => t2[c2(-274, 0, 0, "!%O4")] ?? c2(-443, 0, 0, "T]l%"), exceptions: () => e2, isValidFor: (t3) => {
555
+ const n3 = 470;
556
+ return !(e2?.[r3 = o2, i3 = s2, c2(i3 - n3, 0, 0, r3)] > 0);
557
+ var r3, i3;
558
+ }, isValid: () => true, isEval: () => false, features: () => Object[l2("OeY&", 1193)](t2[c2(-466, 0, 0, "e!%)")] ?? {}), keyFrom: () => n2, getBuildVersion: P[c2(-372, 0, 0, "PDwq")], getBuildDate: P[c2(-408, 0, 0, "m1EU")] };
559
+ }, et = (t2) => {
560
+ const e2 = 976, n2 = 1065, r2 = "!QDv", s2 = 988, i2 = "Yq^$", a2 = "LY3K", l2 = 807;
561
+ function c2(t3, e3, n3, r3, o2) {
562
+ return Y(e3 - 520, n3);
563
+ }
564
+ let h2 = o[u2(734, "T67O", 722)];
565
+ function d2(t3, e3, n3, r3, o2) {
566
+ return Y(r3 - -947, n3);
567
+ }
568
+ function u2(t3, e3, n3, r3, o2) {
569
+ return Y(n3 - 256, e3);
570
+ }
571
+ if (Z() || o[c2(0, e2, "e!%)")]()) {
572
+ const t3 = P[c2(0, n2, "T]l%")](), e3 = new Date(t3), o2 = /* @__PURE__ */ new Date(), a3 = 864e5;
573
+ Math[c2(0, 967, "$l1c")]((o2[c2(0, 1058, r2)]() - e3[c2(0, s2, i2)]()) / a3) >= 120 && (h2 = [d2(0, 0, "HM[2", -525)]);
574
+ } else h2 = [];
575
+ return { licensee: () => Y(-363 - -771, "k7mE"), expiration: () => null, domains: () => [Q()], developerCount: () => 1, cpuCount: () => 0, type: () => c2(0, 1025, "it5A"), isEval: () => true, exceptions: () => h2, isValidFor: () => 0 === h2[d2(0, 0, "$pH]", -489)], isValid: () => false, features: () => Object[c2(0, 940, "k7mE")]({}), keyFrom: () => t2, getBuildVersion: P[u2(0, "q3dx", 835)], getBuildDate: P[u2(0, a2, l2)] };
576
+ }, nt = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
577
+ function rt(t2, e2, n2, r2, o2) {
578
+ return Y(r2 - 260, o2);
575
579
  }
576
- const it = X(1217, "Q(]1")[X(1155, "Laa8")]("")[X(1168, "vqcn")]((t2, e2) => e2 + t2, "");
580
+ let ot = false, st = false;
581
+ const it = U("m@)o", 0, 444)[U("ZKCE", 0, 350)]("")[q(0, 0, 0, "xbxE", -29)]((t2, e2) => e2 + t2, "");
577
582
  class at {
578
583
  constructor() {
579
584
  function t2(t3, e2, n2, r2, o2) {
580
- return nt(e2, 0, 0, 0, t3 - -522);
585
+ return q(0, 0, 0, e2, n2 - -314);
581
586
  }
582
- this[t2(-590, "W9w)")][t2(-518, "0sON")] = null;
587
+ this[t2(0, "]h3A", -242)][t2(0, "U]tm", -238)] = null;
583
588
  }
584
- async [X(1252, "AryR")](t2, e2 = false) {
585
- const n2 = 478, r2 = 545, s2 = "uWFN", i2 = 391, a2 = 392, l2 = 311, c2 = 476, h2 = 384, d2 = "m28W", u2 = "l#5W", g2 = 784, m2 = 883, f2 = 886, p2 = 399, _2 = 519, S2 = 449, w2 = 892, y2 = 920, E2 = "fZc%", C2 = "JHeb", b2 = 1088, v2 = 1105, x2 = 1039, I2 = "%Xy]", R2 = 956, A2 = "&mu@", M2 = 874, N2 = 610, T2 = "l#5W", F2 = "a5(V", k2 = 384, O2 = 291, D2 = "S22O", B2 = 840, L2 = 714, P2 = "K4]r", z2 = 691, W2 = 693, H2 = 733, V2 = 753, j2 = "&PgT", G2 = 980, U2 = "PXyL", J2 = 861, q2 = "el@B", K2 = 927, Y2 = "AryR", Q2 = 473;
586
- if (!t2 || t2[lt2(552, 639, 494, "Wu[F")](lt2(559, n2, r2, s2)) || t2[lt2(i2, a2, l2, "c0Pj")](lt2(c2, 542, h2, "S22O")) || t2[st2(-421, -486, -417, d2)](Z2(-528, -621, u2, -520, -556)) || t2[ot2(846, "c0Pj", g2, m2, f2)](lt2(441, p2, 411, "JHeb"))) return rt = true, await this[lt2(_2, 602, S2, "da%p")](true);
587
- if (rt = false, !e2 && et[ot2(w2, "9bL!", 844, y2, 878)]) {
588
- const t3 = await this[st2(-464, -399, -449, E2)]();
589
- if (t3[ot2(999, C2, b2, v2, x2)]() && !t3[Z2(-585, -479, I2, -599, -505)]()) return t3;
589
+ async [rt(0, 0, 0, 659, "xbxE")](t2, e2 = false) {
590
+ const n2 = 1193, r2 = "rwdc", s2 = 1174, i2 = "nh6b", a2 = 1187, l2 = 1199, c2 = "nh6b", h2 = 1098, d2 = 1053, u2 = "]h3A", g2 = 1084, m2 = 1085, f2 = 1045, p2 = "Ua$M", _2 = 1148, S2 = "!%O4", w2 = "FNBY", y2 = 1272, E2 = 1136, C2 = 1134, b2 = 1179, v2 = 1063, x2 = "m1EU", I2 = 1122, R2 = "LY3K", A2 = "T]l%", M2 = "OeY&", T2 = 1032, N2 = "zm*8", F2 = "OeY&", k2 = 1144, O2 = "UGw*", D2 = 429;
591
+ if (!t2 || t2[W2("$9eP", 909, 981)](H2("m@)o", n2, 1247)) || t2[H2(r2, 1127, s2)](B2(-249, -309, -209, i2)) || t2[P2("0E(w", a2, 1215, 1244, l2)](B2(-255, -195, -183, c2)) || t2[L2(h2, 1127, d2, "$pH]")](W2(u2, g2, m2))) return ot = true, await this[W2("rwdc", f2, 1010)](true);
592
+ if (ot = false, !e2 && nt[P2(p2, 1082, 1159, _2, 1073)]) {
593
+ const t3 = await this[B2(-215, -252, -255, "3bSk")]();
594
+ if (t3[B2(-271, -369, -202, S2)]() && !t3[P2(w2, y2, E2, C2, b2)]()) return t3;
590
595
  }
591
- function Z2(t3, e3, n3, r3, o2) {
592
- return nt(n3, 0, 0, 0, o2 - -513);
596
+ function B2(t3, e3, n3, r3, o2) {
597
+ return rt(0, 0, 0, t3 - -993, r3);
593
598
  }
594
- function ot2(t3, e3, n3, r3, o2) {
595
- return X(o2 - -288, e3);
599
+ function L2(t3, e3, n3, r3, o2) {
600
+ return U(r3, 0, t3 - 636);
596
601
  }
597
- function st2(t3, e3, n3, r3, o2) {
598
- return tt(0, t3 - -1313, 0, r3);
602
+ function P2(t3, e3, n3, r3, o2) {
603
+ return U(t3, 0, o2 - 707);
599
604
  }
600
- et[at2(802, R2, A2, 915, M2)] = t2, et[lt2(535, N2, 552, T2)] = st2(-277, -233, -175, F2), et[lt2(k2, 480, O2, D2)] = null, et[at2(B2, L2, P2, 877, 808)] = null;
601
- const it2 = await this[at2(z2, W2, "(F2$", H2, V2)]();
602
- if (!it2[ot2(0, j2, 0, 0, G2)]()) throw await this[st2(-368, 0, 0, U2)](true), new Error(Z2(0, 0, "uwts", 0, -438));
603
- function at2(t3, e3, n3, r3, o2) {
604
- return tt(0, o2 - -113, 0, n3);
605
+ nt[W2("6dBB", 1141, v2)] = t2, nt[L2(1049, 0, 0, "&6s#")] = W2(x2, 873, 915), nt[B2(-322, 0, 0, "k7mE")] = null, nt[L2(I2, 0, 0, "m3ty")] = null;
606
+ const z2 = await this[B2(-217, 0, 0, R2)]();
607
+ function H2(t3, e3, n3, r3, o2) {
608
+ return rt(0, 0, 0, e3 - D2, t3);
605
609
  }
606
- function lt2(t3, e3, n3, r3, o2) {
607
- return nt(r3, 0, 0, 0, t3 - Q2);
610
+ if (!z2[L2(993, 0, 0, A2)]()) throw await this[B2(-327, 0, 0, M2)](true), new Error(W2("#jNS", T2, 1084));
611
+ function W2(t3, e3, n3, r3, o2) {
612
+ return U(t3, 0, n3 - 556);
608
613
  }
609
- if (o[ot2(0, "Q(]1", 0, 0, J2)]()) {
610
- await $[lt2(516, 0, 0, "fZc%")](t2, e2);
611
- if (!(await this[at2(0, 0, q2, 0, K2)]())[Z2(0, 0, "cI7a", 0, -512)]()) throw await this[lt2(415, 0, 0, "KUDT")](true), new Error(Z2(0, 0, Y2, 0, -468));
614
+ if (o[W2(N2, 0, 900)]()) {
615
+ await $[B2(-162, 0, 0, F2)](t2, e2);
616
+ if (!(await this[P2("m3ty", 0, 0, 0, k2)]())[H2(O2, 1233)]()) throw await this[L2(1169, 0, 0, i2)](true), new Error(B2(-180, 0, 0, "m@)o"));
612
617
  }
613
- return it2;
618
+ return z2;
614
619
  }
615
- async [st("&PgT", 0, 334)](t2 = false) {
616
- const e2 = 1148, n2 = "uwts", r2 = 1114, s2 = 1154, i2 = "lx[Y", a2 = "xiTH", l2 = 1117, c2 = 1193, h2 = 1185, d2 = "0sON", u2 = "R9Cs", g2 = 349, m2 = "#V](", f2 = "eDcn", p2 = "el@B", _2 = "l#5W", S2 = "AryR", w2 = 326, y2 = 1109, E2 = "Z6pw", C2 = "&PgT", b2 = "&mu@", v2 = 337, x2 = 383, I2 = 256, R2 = "Laa8", A2 = 299, M2 = 366, N2 = 379, T2 = 377, F2 = 433, k2 = 249, O2 = 1183, D2 = "Laa8", B2 = 284, L2 = "aQ0U", z2 = 384, W2 = 586, H2 = 1043, V2 = 969, U2 = 1066, J2 = "1AG@", tt2 = "ZXq#", at2 = 413, lt2 = "PXyL", ct2 = "9bL!", ht2 = "p*]k", dt2 = 439, ut2 = 1084, gt2 = "S22O", mt2 = "c0Pj", ft2 = "GH6d", pt2 = 103, _t2 = 908, St2 = "DKS!", wt2 = 343;
617
- if (et[At2(-505, -441, -370, "(F2$")]) return et[At2(-576, -507, -407, "vqcn")];
618
- function yt2(t3, e3, n3, r3, o2) {
619
- return X(e3 - -901, t3);
620
+ async [J(0, 0, 0, 387, "0E(w")](t2 = false) {
621
+ const e2 = 1482, n2 = 617, r2 = 627, s2 = "Ua$M", i2 = 619, a2 = 667, l2 = 612, c2 = 1496, h2 = 1461, d2 = 1494, u2 = 685, g2 = 632, m2 = 626, f2 = "rwdc", p2 = 617, _2 = 605, S2 = 1400, w2 = 479, y2 = "0E(w", E2 = "6SXo", C2 = "!%O4", b2 = 901, v2 = 662, x2 = "%hgi", I2 = 673, R2 = 594, A2 = 427, M2 = 520, T2 = 577, N2 = 524, F2 = "m1EU", k2 = 584, O2 = 674, D2 = "^xvr", B2 = 697, L2 = "$9eP", z2 = 861, H2 = "D*Kh", W2 = 408, V2 = "m@)o", U2 = 752, K2 = "it5A", at2 = 780, lt2 = 693, ct2 = 621, ht2 = "UGw*", dt2 = "q3dx", ut2 = 554, gt2 = 755, mt2 = "ylDH", ft2 = 620, pt2 = 593, _t2 = 1440, St2 = "xbxE", wt2 = 130, yt2 = 276, Et2 = "D*Kh", Ct2 = "e!%)";
622
+ if (nt[Tt2(1448, 1578, "%Tv3", 1514)]) return nt[Tt2(1568, 1388, "ylDH", e2)];
623
+ if (!this[Ft2(n2, r2, s2, i2, 663)][Rt2(-197, -186, -224, "6SXo")] && (this[Ft2(a2, l2, "^xvr", 696, 639)][Tt2(1532, c2, "ZKCE", 1485)] = new Error("FV")), nt[Tt2(h2, 1454, "HM[2", d2)]) return nt[vt2(620, u2, "U]tm")];
624
+ let bt2 = null;
625
+ function vt2(t3, e3, n3, r3, o2) {
626
+ return rt(0, 0, 0, t3 - -182, n3);
620
627
  }
621
- if (!this[Rt2(1103, 1201, e2, 1194, n2)][Rt2(1089, 1244, r2, s2, i2)] && (this[yt2(a2, 346)][Rt2(1167, l2, c2, h2, d2)] = new Error("FV")), et[Mt2(-174, -80, -148, i2)]) return et[At2(-387, -418, -344, u2)];
622
- let Et2 = null;
623
- et[yt2("c0Pj", g2)] = new Promise((t3) => {
624
- Et2 = t3;
628
+ nt[Ft2(697, m2, f2, p2, g2)] = new Promise((t3) => {
629
+ bt2 = t3;
625
630
  });
626
- let Ct2, bt2 = null;
627
- const vt2 = async (t3, e3) => {
628
- const n3 = 131;
629
- function r3(t4, e4, r4, o2, s3) {
630
- return Mt2(s3 - -108, e4 - 23, r4 - n3, e4);
631
+ let xt2, It2 = null;
632
+ function Rt2(t3, e3, n3, r3, o2) {
633
+ return X(0, 0, r3, 0, n3 - -1491);
634
+ }
635
+ function At2(t3, e3, n3, r3, o2) {
636
+ return q(0, 0, 0, e3, r3 - 828);
637
+ }
638
+ const Mt2 = async (t3, e3) => {
639
+ function n3(t4, e4, n4, r3, o2) {
640
+ return vt2(o2 - -141, 0, n4);
631
641
  }
632
642
  try {
633
- const n4 = ((t4) => {
643
+ const r3 = ((t4) => {
634
644
  let e4 = t4;
635
- const n5 = e4[e4.length - 1], r4 = n5.charCodeAt(0) - 52;
636
- if (e4 = e4.substring(0, e4.length - 1), e4 = e4.split("").reverse().join(""), e4 = G(e4), e4 = e4.trim(), e4[e4.length - 1] !== n5) throw new Error();
645
+ const n4 = e4[e4.length - 1], r4 = n4.charCodeAt(0) - 52;
646
+ 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();
637
647
  e4 = e4.substring(0, e4.length - 1), e4 = j(e4, r4);
638
648
  try {
639
649
  e4.startsWith("{") || (e4 = "{" + e4);
640
- const t5 = JSON.parse(e4), n6 = { licensee: t5.l, domains: t5.d, nodeId: t5.n, expiry: t5.e, developerCount: t5.dc, cpuCount: t5.cc, type: t5.t };
641
- return t5.f && (n6.features = t5.f), n6;
650
+ const t5 = JSON.parse(e4), n5 = { licensee: t5.l, domains: t5.d, nodeId: t5.n, expiry: t5.e, developerCount: t5.dc, cpuCount: t5.cc, type: t5.t };
651
+ return t5.f && (n5.features = t5.f), n5;
642
652
  } catch (t5) {
643
653
  throw new Error("Invalid license key.");
644
654
  }
645
655
  })(e3), s3 = await (async (t4) => {
646
- const e4 = "xiTH", n5 = 835, r4 = 1012, s4 = 912, i4 = "7V$)", a3 = "K4]r", l3 = "PXyL", c3 = "9(1p", h3 = 827, d3 = 917, u3 = "%Xy]", g3 = "WIL*", m3 = 11, f3 = "ZXq#", p3 = "9d!v", _3 = 940, S3 = "xiTH", w3 = "xiTH", y3 = 1091, E3 = 1026, C3 = 973, b3 = "Z6pw", v3 = "S22O", x3 = "p*]k", I3 = 596;
647
- function R3(t5, e5, n6, r5, o2) {
648
- return K(o2 - -295, t5);
656
+ const e4 = "q3dx", n4 = 1042, r4 = "zm*8", s4 = 1144, i4 = "m@)o", a3 = "%Tv3", l3 = 1071, c3 = "3bSk", h3 = "e!%)", d3 = 1076, u3 = "m1EU", g3 = "Ua$M", m3 = "#jNS", f3 = "PDwq", p3 = "6SXo", _3 = 975, S3 = 1026, w3 = 572, y3 = 590, E3 = t4[C3(1007, "FNBY")];
657
+ function C3(t5, e5, n5, r5, o2) {
658
+ return Y(t5 - y3, e5);
649
659
  }
650
- const A3 = t4[k3(-62, -124, "%Xy]", -132)], M3 = t4[k3(33, -81, "Q(]1", -45)] ? new Date(t4[R3("eDcn", 0, 0, 0, 81)]) : null;
651
- function N3(t5, e5, n6, r5, o2) {
652
- return K(n6 - 839, t5);
660
+ function b3(t5, e5, n5, r5, o2) {
661
+ return Y(t5 - -990, r5);
653
662
  }
654
- const T3 = t4[R3("$S8A", 0, 0, 0, 98)], F3 = [];
655
- function k3(t5, e5, n6, r5, o2) {
656
- return K(r5 - -380, n6);
663
+ const v3 = t4[I3(-169, -241, -339, -214, e4)] ? new Date(t4[C3(1024, "U]tm")]) : null, x3 = t4[I3(-249, -157, -203, -222, "OeY&")];
664
+ function I3(t5, e5, n5, r5, o2) {
665
+ return Y(e5 - -628, o2);
657
666
  }
658
- if (M3 ? isNaN(M3) ? F3[D3("uwts", -232, -242, -261, -191)](k3(0, 0, a3, -49)) : M3 < /* @__PURE__ */ new Date() && F3[k3(0, 0, "9DB^", -97)](k3(0, 0, l3, -63) + M3[D3(c3, -108, -36, -210, -112)]()) : F3[O3(930, 920, 983, e4)](O3(n5, r4, s4, i4)), o[D3("R9Cs", -207, -294, -319, -275)]()) {
659
- if (!T3) return F3[O3(h3, 828, d3, u3)](k3(0, 0, g3, -73)), F3;
660
- const t5 = await $[k3(0, 0, "%Xy]", m3)]();
661
- t5 !== T3 && F3[D3(f3, -119, -21, -133, -98)](O3(1064, 1037, 1025, p3) + T3 + D3("%Xy]", -133, -214, -187, -217) + t5);
662
- } else {
663
- if (Y()) return F3;
664
- if (A3 && 0 !== A3[O3(877, _3, 963, c3)]) {
665
- let t5 = false;
666
- const e5 = q();
667
- for (let n6 = 0; !t5 && n6 < A3[O3(E3, 941, C3, b3)]; n6++) t5 = e5[N3(v3, 0, 1235)](A3[n6]);
668
- !t5 && F3[N3(x3, 0, 1101)](k3(0, 0, "Q(]1", -26));
669
- } else F3[N3(S3, 0, 1226)](N3(w3, 0, y3));
667
+ function R3(t5, e5, n5, r5, o2) {
668
+ return Y(e5 - w3, o2);
670
669
  }
671
- function O3(t5, e5, n6, r5, o2) {
672
- return K(n6 - I3, r5);
670
+ const A3 = [];
671
+ function M3(t5, e5, n5, r5, o2) {
672
+ return Y(t5 - -965, o2);
673
673
  }
674
- function D3(t5, e5, n6, r5, o2) {
675
- return K(o2 - -518, t5);
674
+ if (v3 ? isNaN(v3) ? A3[M3(-474, -410, -448, -497, i4)](I3(0, -60, 0, 0, "]p9$")) : v3 < /* @__PURE__ */ new Date() && A3[M3(-542, -485, -539, -604, "&6s#")](b3(-516, 0, 0, "$S[C") + v3[M3(-567, -472, -514, -601, "]h3A")]()) : A3[C3(n4, r4)](R3(0, s4, 0, 0, "rwdc")), o[M3(-539, 0, 0, 0, a3)]()) {
675
+ if (!x3) return A3[R3(0, l3, 0, 0, c3)](M3(-402, 0, 0, 0, h3)), A3;
676
+ const t5 = await $[C3(d3, "Mitq")]();
677
+ t5 !== x3 && A3[I3(0, -232, 0, 0, u3)](b3(-489, 0, 0, g3) + x3 + I3(0, -213, 0, 0, "UGw*") + t5);
678
+ } else {
679
+ if (Z()) return A3;
680
+ if (E3 && 0 !== E3[I3(0, -204, 0, 0, "Yq^$")]) {
681
+ let t5 = false;
682
+ const e5 = Q();
683
+ for (let n5 = 0; !t5 && n5 < E3[I3(0, -141, 0, 0, f3)]; n5++) t5 = e5[b3(-539, 0, 0, p3)](E3[n5]);
684
+ !t5 && A3[R3(0, _3, 0, 0, "D*Kh")](R3(0, S3, 0, 0, "xbxE"));
685
+ } else A3[b3(-525, 0, 0, "0E(w")](b3(-444, 0, 0, m3));
676
686
  }
677
- return F3;
678
- })(n4), i3 = Q(n4, s3, t3);
679
- return i3[r3(0, St2, -461, 0, -360)]()[r3(0, "fZc%", -wt2, 0, -310)] > 0 && (Ct2 = i3), i3;
687
+ return A3;
688
+ })(r3), i3 = tt(r3, s3, t3);
689
+ return i3[n3(0, 0, Et2, 0, 485)]()[n3(0, 0, Ct2, 0, 507)] > 0 && (xt2 = i3), i3;
680
690
  } catch (e4) {
681
- Ct2 = ((t4) => {
682
- const e5 = 1112, n4 = "S22O", r4 = 275, o2 = 783;
683
- function s3(t5, e6, n5, r5, s4) {
684
- return K(e6 - o2, s4);
691
+ xt2 = ((t4) => {
692
+ const e5 = "U]tm", n4 = 692, r3 = 223, o2 = 550;
693
+ function s3(t5, e6, n5, r4, o3) {
694
+ return Y(r4 - -536, t5);
685
695
  }
686
- function i3(t5, e6, n5, r5, o3) {
687
- return K(r5 - -780, o3);
696
+ function i3(t5, e6, n5, r4, s4) {
697
+ return Y(e6 - o2, s4);
688
698
  }
689
- return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => i3(0, 0, 0, -475, "WIL*"), exceptions: () => {
690
- return [(e6 = r4, n5 = "#V](", i3(0, 0, 0, e6 - 669, n5) + t4 + "'")];
699
+ return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => i3(0, 1112, 0, 0, "LYG#"), exceptions: () => {
700
+ return [(e6 = "LY3K", n5 = -345, i3(0, n5 - -1462, 0, 0, e6) + t4 + "'")];
691
701
  var e6, n5;
692
- }, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[s3(0, 1200, 0, 0, "da%p")]({}), keyFrom: () => t4, getBuildVersion: P[a3 = "uWFN", l3 = 1368, K(l3 - 963, a3)], getBuildDate: P[s3(0, e5, 0, 0, n4)] };
702
+ }, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[s3("K&GT", 0, 0, 0)]({}), keyFrom: () => t4, getBuildVersion: P[s3("baBH", 0, 0, 5)], getBuildDate: P[a3 = e5, l3 = n4, Y(l3 - r3, a3)] };
693
703
  var a3, l3;
694
704
  })(t3);
695
705
  }
696
706
  };
697
- et[At2(-537, -514, -571, "c0Pj")] && (bt2 = await vt2(et[Rt2(1189, 1095, 1225, 1161, m2)], et[At2(-570, -516, -535, f2)]));
698
- let xt2 = false;
699
- function It2(t3, e3, n3, r3, o2) {
700
- return nt(n3, 0, 0, 0, e3 - -235);
701
- }
702
- if (rt && (xt2 = true, bt2 = Z(It2(-328, -308, "da%p", -293))), !bt2) {
703
- if (o[Mt2(-333, -317, -332, p2)]()) {
704
- if (!bt2) {
705
- const t3 = process[It2(0, -295, _2)], e3 = t3[yt2(S2, w2)] || t3[Rt2(1177, y2, 1190, 1176, "KUDT")] || t3[It2(0, -297, "cI7a")] || t3[It2(0, -176, "xiTH")];
706
- e3 && (bt2 = await vt2(It2(0, -331, E2), e3));
707
+ function Tt2(t3, e3, n3, r3, o2) {
708
+ return X(0, 0, n3, 0, r3 - yt2);
709
+ }
710
+ nt[vt2(_2, 0, "m3ty")] && (It2 = await Mt2(nt[Tt2(0, 0, "]h3A", S2)], nt[Rt2(0, 0, -310, "zm*8")]));
711
+ let Nt2 = false;
712
+ if (ot && (Nt2 = true, It2 = et(vt2(w2, 0, "xbxE"))), !It2) {
713
+ if (o[Tt2(0, 0, y2, 1454)]()) {
714
+ if (!It2) {
715
+ const t3 = process[Tt2(0, 0, E2, 1500)], e3 = t3[Rt2(0, 0, -352, "HM[2")] || t3[At2(0, "baBH", 0, 879)] || t3[At2(0, "baBH", 0, 880)] || t3[At2(0, C2, 0, b2)];
716
+ e3 && (It2 = await Mt2(Ft2(532, v2, x2, I2, R2), e3));
707
717
  }
708
- if (!bt2) {
709
- const t3 = await $[At2(-523, -444, -529, C2)]();
710
- t3 && (bt2 = await vt2(At2(-499, -474, -543, b2), t3));
718
+ if (!It2) {
719
+ const t3 = await $[Rt2(0, 0, -377, s2)]();
720
+ t3 && (It2 = await Mt2(Ft2(493, 481, "lLIX", A2, M2), t3));
711
721
  }
712
- !bt2 && (xt2 = true);
722
+ !It2 && (Nt2 = true);
713
723
  } else {
714
- if (!bt2) try {
724
+ if (!It2) try {
715
725
  const t3 = await fetch("./" + it);
716
726
  let e3 = null;
717
- if (200 === t3[Mt2(-v2, -x2, -I2, R2, -A2)]) {
718
- const n3 = (await t3[At2(-M2, -N2, -382, "p*]k", -T2)]())[yt2("(F2$", F2)]("\n");
719
- for (let t4 = 0; !e3 && t4 < n3[yt2("m28W", k2)]; t4++) {
720
- const r3 = n3[t4][Rt2(1214, O2, 1238, 1183, D2)]();
721
- r3[Mt2(-325, -B2, -289, L2, -z2)]("#") || 0 === r3[At2(-400, -492, -W2, "#V](", -546)] || (e3 = r3);
727
+ if (200 === t3[Ft2(T2, N2, F2, 626, 595)]) {
728
+ const n3 = (await t3[vt2(610, 0, "%Tv3")]())[Ft2(k2, O2, D2, B2, 670)]("\n");
729
+ for (let t4 = 0; !e3 && t4 < n3[Tt2(0, 0, L2, 1517)]; t4++) {
730
+ const r3 = n3[t4][At2(0, "UGw*", 0, z2)]();
731
+ r3[Rt2(0, 0, -319, H2)]("#") || 0 === r3[Rt2(0, 0, -W2, V2)] || (e3 = r3);
722
732
  }
723
733
  }
724
734
  if (e3) {
725
- const t4 = Rt2(H2, V2, 995, U2, "F&SG") + it + "')";
726
- bt2 = await vt2(t4, e3);
735
+ const t4 = vt2(535, 0, E2) + it + "')";
736
+ It2 = await Mt2(t4, e3);
727
737
  }
728
738
  } catch (t3) {
729
739
  }
730
- !bt2 && Y() && (xt2 = true);
740
+ !It2 && Z() && (Nt2 = true);
731
741
  }
732
742
  }
733
- function Rt2(t3, e3, n3, r3, o2) {
734
- return st(o2, 0, r3 - _t2);
735
- }
736
- function At2(t3, e3, n3, r3, o2) {
737
- return nt(r3, 0, 0, 0, e3 - -429);
743
+ function Ft2(t3, e3, n3, r3, o2) {
744
+ return J(0, 0, 0, o2 - wt2, n3);
738
745
  }
739
- function Mt2(t3, e3, n3, r3, o2) {
740
- return st(r3, 0, t3 - -512);
741
- }
742
- if (!bt2 && xt2 && (bt2 = Z(yt2(J2, 408))), !bt2 && Ct2 && (bt2 = Ct2), !bt2 && (bt2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [yt2("R9Cs", 425)], isValidFor: (t3) => false, isValid: () => false, features: () => Object[yt2("7V$)", 410)]({}), keyFrom: () => yt2("W9w)", 291), getBuildVersion: P[yt2(tt2, at2)], getBuildDate: P[Mt2(-212, -111, -231, lt2)] }), et[It2(0, -324, "S22O")] = bt2, Et2(bt2), t2) {
743
- if (!(et[Mt2(-152, 0, 0, ct2)] && et[At2(0, -483, 0, "Laa8")]) && (xt2 || bt2[yt2(ht2, dt2)]()[Rt2(0, 0, 0, ut2, "aQ0U")] > 0 || bt2[At2(0, -488, 0, "JHeb")]()?.pb)) {
744
- if (ot) return void setTimeout(() => {
746
+ if (!It2 && Nt2 && (It2 = et(vt2(p2, 0, "Pv6&"))), !It2 && xt2 && (It2 = xt2), !It2 && (It2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [vt2(499, 0, "Nedw")], isValidFor: (t3) => false, isValid: () => false, features: () => Object[vt2(497, 0, "PDwq")]({}), keyFrom: () => Tt2(0, 0, "baBH", 1409), getBuildVersion: P[At2(0, "$S[C", 0, U2)], getBuildDate: P[Ft2(682, 703, K2, at2, lt2)] }), nt[Ft2(608, ct2, ht2, 444, 522)] = It2, bt2(It2), t2) {
747
+ if (!(nt[Ft2(0, 0, "3bSk", 0, 529)] && nt[Ft2(0, 0, dt2, 0, ut2)]) && (Nt2 || It2[At2(0, "Nedw", 0, gt2)]()[vt2(602, 0, x2)] > 0 || It2[Ft2(0, 0, mt2, 0, ft2)]()?.pb)) {
748
+ if (st) return void setTimeout(() => {
745
749
  var t3, e3;
746
- this[t3 = ft2, e3 = pt2, It2(0, e3 - 307, t3)](false, false);
750
+ this[t3 = 264, e3 = St2, At2(0, e3, 0, t3 - -539)](false, false);
747
751
  }, 8e3);
748
- await this[Rt2(0, 0, 0, 1160, gt2)](false, false);
752
+ await this[vt2(pt2, 0, L2)](false, false);
749
753
  }
750
754
  }
751
- return et[yt2(mt2, 263)];
755
+ return nt[Tt2(0, 0, "m@)o", _t2)];
752
756
  }
753
- async [nt("l#5W", 0, 0, 0, 44)](t2) {
754
- const e2 = "7V$)", n2 = 105, r2 = "R9Cs", o2 = 931;
757
+ async [U("%hgi", 0, 441)](t2) {
758
+ const e2 = 223, n2 = 325, r2 = 365, o2 = "PDwq";
755
759
  function s2(t3, e3, n3, r3, o3) {
756
- return U(n3 - -1715, 0, 0, r3);
760
+ return U(r3, 0, t3 - -159);
761
+ }
762
+ nt[a2(-152, -206, -211, -95, "e!%)")] = true;
763
+ const i2 = await this[s2(e2, 0, 0, "MdD)")]();
764
+ function a2(t3, e3, n3, r3, o3) {
765
+ return q(0, 0, 0, o3, t3 - -146);
757
766
  }
758
- function i2(t3, e3, n3, r3, o3) {
759
- return st(n3, 0, t3 - -97);
767
+ function l2(t3, e3, n3, r3, o3) {
768
+ return rt(0, 0, 0, n3 - -365, o3);
760
769
  }
761
- et[s2(0, 0, -720, "PXyL")] = true;
762
- const a2 = await this[s2(0, 0, -558, e2)]();
763
- return await $[s2(0, 0, -595, "S22O")](t2), !et[h2 = 968, d2 = "PXyL", U(h2 - -38, 0, 0, d2)] && (a2[s2(0, 0, -642, "KUDT")]() || a2[i2(n2, 0, r2)]()[s2(0, 0, -552, "(F2$")] > 0) && await this[i2(185, 0, "aQ0U")](t2), Promise[l2 = "Wu[F", c2 = o2, U(c2 - -63, 0, 0, l2)]();
764
- var l2, c2, h2, d2;
770
+ return await $[l2(0, 0, n2, 0, "Pv6&")](t2), !nt[a2(-165, 0, 0, 0, "$l1c")] && (i2[a2(-144, 0, 0, 0, "LY3K")]() || i2[s2(r2, 0, 0, "m3ty")]()[s2(359, 0, 0, "3bSk")] > 0) && await this[l2(0, 0, 388, 0, "HM[2")](t2), Promise[c2 = o2, h2 = -73, U(c2, 0, h2 - -532)]();
771
+ var c2, h2;
765
772
  }
766
- async [tt(0, 925, 0, "DKS!")](t2 = false, e2 = false, n2 = false) {
767
- const r2 = 1200, o2 = 1257, s2 = 1177, i2 = "yEut", a2 = 1266, l2 = "&PgT", c2 = 1302, h2 = "GH6d", d2 = 952, u2 = 988, g2 = "el@B", m2 = 387;
768
- function f2(t3, e3, n3, r3, o3) {
769
- return X(o3 - -351, t3);
773
+ async [X(0, 0, "Pv6&", 0, 1067)](t2 = false, e2 = false, n2 = false) {
774
+ const r2 = "baBH", o2 = 320, s2 = 343, i2 = 351, a2 = "q3dx", l2 = "LYG#", c2 = 521, h2 = 155, d2 = "K&GT", u2 = 665;
775
+ function g2(t3, e3, n3, r3, o3) {
776
+ return q(0, 0, 0, o3, e3 - 641);
770
777
  }
771
- et[_2(1321, 1234, 1421, 1359, "WIL*")] = true;
772
- const p2 = await this[_2(r2, 1260, o2, s2, i2)]();
773
- function _2(t3, e3, n3, r3, o3) {
774
- return tt(0, t3 - 344, 0, o3);
778
+ var m2, f2;
779
+ nt[m2 = "UGw*", f2 = 201, U(m2, 0, f2 - -318)] = true;
780
+ const p2 = await this[w2(r2, o2, s2, 371)]();
781
+ var _2, S2;
782
+ nt[w2("#jNS", i2, 395, 380)] || !(p2[g2(0, 569, 0, 0, a2)]() || p2[y2(100, 38, 59, 90, l2)]()[_2 = r2, S2 = c2, J(0, 0, 0, S2 - 148, _2)] > 0) ? await $[g2(0, u2, 0, 0, "Ua$M")](p2, t2, e2, n2) : await this[y2(224, 134, h2, 36, d2)](t2);
783
+ function w2(t3, e3, n3, r3, o3) {
784
+ return J(0, 0, 0, r3 - -159, t3);
785
+ }
786
+ function y2(t3, e3, n3, r3, o3) {
787
+ return rt(0, 0, 0, e3 - -635, o3);
775
788
  }
776
- var S2, w2;
777
- et[_2(a2, 0, 0, 0, l2)] || !(p2[_2(c2, 0, 0, 0, h2)]() || p2[f2("uwts", 0, 0, 0, d2)]()[f2("F&SG", 0, 0, 0, u2)] > 0) ? await $[S2 = m2, w2 = "p*]k", tt(0, S2 - -524, 0, w2)](p2, t2, e2, n2) : await this[_2(1295, 0, 0, 0, g2)](t2);
778
789
  }
779
- async [nt("Z6pw", 0, 0, 0, -17)](t2, e2) {
780
- const n2 = "c0Pj", r2 = "F&SG", s2 = 1084, i2 = "GH6d";
781
- if (!t2 && (et[g2(-79, "&mu@", -87)] || et[g2(-129, n2, -85)])) return;
782
- function a2(t3, e3, n3, r3, o2) {
783
- return nt(t3, 0, 0, 0, e3 - 1018);
790
+ async [q(0, 0, 0, "FNBY", 70)](t2, e2) {
791
+ const n2 = 117, r2 = "Mitq", s2 = 697, i2 = 508, a2 = "6SXo", l2 = 513, c2 = "$l1c", h2 = 1413, d2 = "m@)o", u2 = 883, g2 = 775, m2 = "$S[C", f2 = 846, p2 = "m@)o", _2 = 777, S2 = 592;
792
+ if (!t2 && (nt[x2(710, 762, 838, "q3dx", 759)] || nt[E2(-12, -158, "&6s#", -74)])) return;
793
+ function w2(t3, e3, n3, r3, o2) {
794
+ return X(0, 0, r3, 0, e3 - -648);
784
795
  }
785
- var l2, c2;
786
- function h2(t3, e3, n3, r3, o2) {
787
- return tt(0, o2 - -1015, 0, n3);
796
+ nt[E2(n2, 129, r2, 42)] = true, nt[x2(654, 795, s2, "zm*8", 716)] = true, await this[w2(0, i2, 0, a2)](t2);
797
+ const y2 = o[w2(0, l2, 0, c2)]();
798
+ function E2(t3, e3, n3, r3, o2) {
799
+ return J(0, 0, 0, r3 - -516, n3);
788
800
  }
789
- et[g2(-140, "mtqW", -119)] = true, et[l2 = 1031, c2 = "Q(]1", X(l2 - -251, c2)] = true, await this[h2(-164, -160, "GH6d", -95, -91)](t2);
790
- const d2 = o[a2("yEut", 971)](), u2 = t2 || d2 ? console[a2(r2, s2)] : o[h2(0, 0, i2, 0, -75)];
791
- function g2(t3, e3, n3, r3, o2) {
792
- return tt(0, n3 - -1100, 0, e3);
801
+ const C2 = t2 || y2 ? console[b2 = h2, v2 = d2, rt(0, 0, 0, b2 - S2, v2)] : o[x2(907, u2, g2, m2, f2)];
802
+ var b2, v2;
803
+ function x2(t3, e3, n3, r3, o2) {
804
+ return q(0, 0, 0, r3, o2 - _2);
793
805
  }
794
- d2 && u2(""), await this[h2(0, 0, "mtqW", 0, -122)](t2, e2), u2("");
806
+ y2 && C2(""), await this[w2(0, 537, 0, p2)](t2, e2), C2("");
795
807
  }
796
- [X(1179, "xiTH")]() {
797
- return this[t2 = 591, e2 = "ZXq#", tt(0, t2 - -289, 0, e2)]();
808
+ [X(0, 0, "0E(w", 0, 1101)]() {
809
+ return this[t2 = 172, e2 = "HM[2", q(0, 0, 0, e2, t2 - 242)]();
798
810
  var t2, e2;
799
811
  }
800
- [X(1143, "uWFN")](t2) {
801
- return this[e2 = "Wu[F", n2 = 856, X(n2 - -343, e2)](true, t2);
812
+ [q(0, 0, 0, "0E(w", 18)](t2) {
813
+ return this[e2 = "K&GT", n2 = 413, q(0, 0, 0, e2, n2 - 460)](true, t2);
802
814
  var e2, n2;
803
815
  }
804
- [tt(0, 966, 0, "#V](")]() {
805
- const t2 = 747;
806
- return et[r2 = -234, o2 = "da%p", st(o2, 0, r2 - -580)] || et[e2 = "%Xy]", n2 = t2, X(n2 - -573, e2)];
816
+ [J(0, 0, 0, 443, "HM[2")]() {
817
+ const t2 = 245;
818
+ return nt[r2 = 544, o2 = "&6s#", J(0, 0, 0, r2 - 55, o2)] || nt[e2 = t2, n2 = "zm*8", J(0, 0, 0, e2 - -138, n2)];
807
819
  var e2, n2, r2, o2;
808
820
  }
809
- [st("9(1p", 0, 224)](t2) {
810
- ot = true;
821
+ [q(0, 0, 0, "FNBY", -77)](t2) {
822
+ st = true;
811
823
  }
812
- async [X(1231, "fZc%")]() {
813
- return this[t2 = "da%p", e2 = 729, nt(t2, 0, 0, 0, e2 - 647)](true);
824
+ async [q(0, 0, 0, "K&GT", 42)]() {
825
+ return this[t2 = -467, e2 = "nh6b", rt(0, 0, 0, t2 - -1106, e2)](true);
814
826
  var t2, e2;
815
827
  }
816
- async [X(1280, "r[Gh")](t2, e2) {
817
- const n2 = "9DB^", r2 = 1307, o2 = 1235, s2 = 51, i2 = await this[a2(n2, r2)]();
818
- function a2(t3, e3, n3, r3, o3) {
819
- return X(e3 - s2, t3);
828
+ async [rt(0, 0, 0, 760, "K&GT")](t2, e2) {
829
+ const n2 = await this[r2(-433, -362, -340, -435, "3bSk")]();
830
+ function r2(t3, e3, n3, r3, o2) {
831
+ return X(0, 0, o2, 0, t3 - -1624);
820
832
  }
821
- return await this[a2("JHeb", o2)](true, t2, e2), i2;
833
+ return await this[r2(-353, -362, -269, -439, "$9eP")](true, t2, e2), n2;
822
834
  }
823
- async [X(1203, "uwts")]() {
824
- const t2 = 509;
835
+ async [U("%hgi", 0, 489)]() {
836
+ const t2 = "Pv6&";
825
837
  var e2, n2;
826
- return await $[e2 = t2, n2 = "lx[Y", U(e2 - -581, 0, 0, n2)]();
838
+ return await $[e2 = 1129, n2 = t2, J(0, 0, 0, e2 - 635, n2)]();
827
839
  }
828
840
  }
829
841
  const lt = new at(), ct = (t2, e2) => {
@@ -1613,7 +1625,7 @@ var Mt;
1613
1625
  }, Mt.simpleComparator = function(t2, e2) {
1614
1626
  return t2 > e2 ? 1 : t2 < e2 ? -1 : 0;
1615
1627
  };
1616
- const Nt = [-1, null], Tt = { done: false, value: [-1, null] };
1628
+ const Tt = [-1, null], Nt = { done: false, value: [-1, null] };
1617
1629
  var Ft;
1618
1630
  ((t2) => {
1619
1631
  t2.Builder = class {
@@ -1691,7 +1703,7 @@ var Ft;
1691
1703
  if (r3) {
1692
1704
  let t4;
1693
1705
  const i3 = r3.minor;
1694
- 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));
1706
+ 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));
1695
1707
  }
1696
1708
  if (!o2) {
1697
1709
  this._majorMin = Math.min(this._majorMin, t3), o2 = [n2, [[t3, []]]];
@@ -1707,7 +1719,7 @@ var Ft;
1707
1719
  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;
1708
1720
  }
1709
1721
  build() {
1710
- const t3 = [], e3 = this._createList, n2 = this._minors.entries(void 0, Tt);
1722
+ const t3 = [], e3 = this._createList, n2 = this._minors.entries(void 0, Nt);
1711
1723
  let r2 = n2.next();
1712
1724
  for (; !r2.done; ) {
1713
1725
  const o2 = r2.value[1].span;
@@ -1762,7 +1774,7 @@ function Pt(t2) {
1762
1774
  };
1763
1775
  }
1764
1776
  var zt;
1765
- const Wt = { code: "en-US", formatDistance: (t2, e2, n2) => {
1777
+ const Ht = { code: "en-US", formatDistance: (t2, e2, n2) => {
1766
1778
  let r2;
1767
1779
  const o2 = kt[t2];
1768
1780
  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;
@@ -1784,7 +1796,7 @@ const Wt = { code: "en-US", formatDistance: (t2, e2, n2) => {
1784
1796
  if (!o2) return null;
1785
1797
  let s2 = zt.valueCallback ? zt.valueCallback(o2[0]) : o2[0];
1786
1798
  return s2 = e2.valueCallback ? e2.valueCallback(s2) : s2, { value: s2, rest: t2.slice(r2.length) };
1787
- }), 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) => {
1799
+ }), 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 } }, Wt = (t2, e2) => {
1788
1800
  switch (t2) {
1789
1801
  case "P":
1790
1802
  return e2.date({ width: "short" });
@@ -1808,7 +1820,7 @@ const Wt = { code: "en-US", formatDistance: (t2, e2, n2) => {
1808
1820
  }
1809
1821
  }, $t = { p: Vt, P: (t2, e2) => {
1810
1822
  const n2 = t2.match(/(P+)(p+)?/) || [], r2 = n2[1], o2 = n2[2];
1811
- if (!o2) return Ht(t2, e2);
1823
+ if (!o2) return Wt(t2, e2);
1812
1824
  let s2;
1813
1825
  switch (r2) {
1814
1826
  case "P":
@@ -1823,12 +1835,12 @@ const Wt = { code: "en-US", formatDistance: (t2, e2, n2) => {
1823
1835
  default:
1824
1836
  s2 = e2.dateTime({ width: "full" });
1825
1837
  }
1826
- return s2.replace("{{date}}", Ht(r2, e2)).replace("{{time}}", Vt(o2, e2));
1838
+ return s2.replace("{{date}}", Wt(r2, e2)).replace("{{time}}", Vt(o2, e2));
1827
1839
  } }, jt = /^D+$/, Gt = /^Y+$/, Ut = ["D", "DD", "YY", "YYYY"];
1828
- function Jt(t2) {
1840
+ function qt(t2) {
1829
1841
  return jt.test(t2);
1830
1842
  }
1831
- function qt(t2) {
1843
+ function Jt(t2) {
1832
1844
  return Gt.test(t2);
1833
1845
  }
1834
1846
  function Kt(t2, e2, n2) {
@@ -2033,7 +2045,7 @@ const Se = { y: new class extends oe {
2033
2045
  }
2034
2046
  }() }, we = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ye = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ee = /^'([^]*?)'?$/, Ce = /''/g, be = /\S/, ve = /[a-zA-Z]/;
2035
2047
  function xe(t2, e2, n2, r2) {
2036
- 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;
2048
+ 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;
2037
2049
  if (!e2) return t2 ? o2() : te(n2, r2?.in);
2038
2050
  const c2 = { firstWeekContainsDate: a2, weekStartsOn: l2, locale: i2 }, h2 = [new re(r2?.in, n2)], d2 = e2.match(ye).map((t3) => {
2039
2051
  const e3 = t3[0];
@@ -2043,7 +2055,7 @@ function xe(t2, e2, n2, r2) {
2043
2055
  return t3;
2044
2056
  }).join("").match(we), u2 = [];
2045
2057
  for (let n3 of d2) {
2046
- !r2?.useAdditionalWeekYearTokens && qt(n3) && Kt(n3, e2, t2), !r2?.useAdditionalDayOfYearTokens && Jt(n3) && Kt(n3, e2, t2);
2058
+ !r2?.useAdditionalWeekYearTokens && Jt(n3) && Kt(n3, e2, t2), !r2?.useAdditionalDayOfYearTokens && qt(n3) && Kt(n3, e2, t2);
2047
2059
  const s3 = n3[0], a3 = Se[s3];
2048
2060
  if (a3) {
2049
2061
  const { incompatibleTokens: e3 } = a3;
@@ -2090,11 +2102,11 @@ function Me(t2, e2) {
2090
2102
  for (var n2 = ""; n2.length < e2; ) n2 += t2;
2091
2103
  return n2;
2092
2104
  }
2093
- function Ne(t2) {
2105
+ function Te(t2) {
2094
2106
  for (var e2 = "", n2 = t2.length - 1; n2 >= 0; ) e2 += t2.charAt(n2--);
2095
2107
  return e2;
2096
2108
  }
2097
- function Te(t2, e2) {
2109
+ function Ne(t2, e2) {
2098
2110
  var n2 = "" + t2;
2099
2111
  return n2.length >= e2 ? n2 : Me("0", e2 - n2.length) + n2;
2100
2112
  }
@@ -2119,7 +2131,7 @@ function De(t2, e2) {
2119
2131
  function Be(t2, e2) {
2120
2132
  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));
2121
2133
  }
2122
- 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\\);_("$"* "-"??_);_(@_)' };
2134
+ 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"秒 "' }, 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\\);_("$"* "-"??_);_(@_)' };
2123
2135
  function Ve(t2, e2, n2) {
2124
2136
  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;
2125
2137
  if (h2 > e2 && (c2 > e2 ? (h2 = l2, a2 = s2) : (h2 = c2, a2 = i2)), !n2) return [0, r2 * a2, h2];
@@ -2144,22 +2156,22 @@ function $e(t2, e2, n2) {
2144
2156
  return a2.y = i2[0], a2.m = i2[1], a2.d = i2[2], a2.S = o2 % 60, o2 = Math.floor(o2 / 60), a2.M = o2 % 60, o2 = Math.floor(o2 / 60), a2.H = o2, a2.q = s2, a2;
2145
2157
  }
2146
2158
  var je = new Date(1899, 11, 31, 0, 0, 0), Ge = je.getTime(), Ue = new Date(1900, 2, 1, 0, 0, 0);
2147
- function Je(t2, e2 = false) {
2159
+ function qe(t2, e2 = false) {
2148
2160
  var n2 = t2.getTime();
2149
2161
  return e2 ? n2 -= 1262304e5 : t2 >= Ue && (n2 += 864e5), (n2 - (Ge + 6e4 * (t2.getTimezoneOffset() - je.getTimezoneOffset()))) / 864e5;
2150
2162
  }
2151
- function qe(t2) {
2163
+ function Je(t2) {
2152
2164
  return -1 === t2.indexOf(".") ? t2 : t2.replace(/(?:\.0*|(\.\d*[1-9])0+)$/, "$1");
2153
2165
  }
2154
2166
  function Ke(t2) {
2155
2167
  var e2, n2 = Math.floor(Math.log(Math.abs(t2)) * Math.LOG10E);
2156
2168
  return e2 = n2 >= -4 && n2 <= -1 ? t2.toPrecision(10 + n2) : Math.abs(n2) <= 9 ? (function(t3) {
2157
- var e3 = t3 < 0 ? 12 : 11, n3 = qe(t3.toFixed(12));
2169
+ var e3 = t3 < 0 ? 12 : 11, n3 = Je(t3.toFixed(12));
2158
2170
  return n3.length <= e3 || (n3 = t3.toPrecision(10)).length <= e3 ? n3 : t3.toExponential(5);
2159
2171
  })(t2) : 10 === n2 ? t2.toFixed(10).substr(0, 12) : (function(t3) {
2160
- var e3 = qe(t3.toFixed(11));
2172
+ var e3 = Je(t3.toFixed(11));
2161
2173
  return e3.length > (t3 < 0 ? 12 : 11) || "0" === e3 || "-0" === e3 ? t3.toPrecision(6) : e3;
2162
- })(t2), qe((function(t3) {
2174
+ })(t2), Je((function(t3) {
2163
2175
  return -1 === t3.indexOf("E") ? t3 : t3.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/, "$1E").replace(/(E[+-])(\d)$/, "$10$2");
2164
2176
  })(e2.toUpperCase()));
2165
2177
  }
@@ -2175,7 +2187,7 @@ function Xe(t2, e2) {
2175
2187
  return "";
2176
2188
  case "object":
2177
2189
  if (null == t2) return "";
2178
- if (Re(t2)) return wn(14, Je(t2, e2 && e2.date1904), e2);
2190
+ if (Re(t2)) return wn(14, qe(t2, e2 && e2.date1904), e2);
2179
2191
  }
2180
2192
  throw new Error("unsupported value in General format: " + t2);
2181
2193
  }
@@ -2252,7 +2264,7 @@ function Ye(t2, e2, n2, r2) {
2252
2264
  break;
2253
2265
  case 115:
2254
2266
  if ("s" !== e2 && "ss" !== e2 && ".0" !== e2 && ".00" !== e2 && ".000" !== e2) throw new Error("bad second format: " + e2);
2255
- 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);
2267
+ 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);
2256
2268
  case 90:
2257
2269
  switch (e2) {
2258
2270
  case "[h]":
@@ -2275,7 +2287,7 @@ function Ye(t2, e2, n2, r2) {
2275
2287
  case 101:
2276
2288
  o2 = l2, c2 = 1;
2277
2289
  }
2278
- return c2 > 0 ? Te(o2, c2) : "";
2290
+ return c2 > 0 ? Ne(o2, c2) : "";
2279
2291
  }
2280
2292
  function Qe(t2) {
2281
2293
  if (t2.length <= 3) return t2;
@@ -2357,7 +2369,7 @@ function hn(t2, e2, n2) {
2357
2369
  if (e2.match(/^[#?]+$/)) return "0" === (o2 = De(n2, 0)) && (o2 = ""), o2.length > e2.length ? o2 : sn(e2.substr(0, e2.length - o2.length)) + o2;
2358
2370
  if (s2 = e2.match(en)) return (function(t3, e3, n3) {
2359
2371
  var r3 = parseInt(t3[4], 10), o3 = Math.round(e3 * r3), s3 = Math.floor(o3 / r3), i3 = o3 - s3 * r3, a3 = r3;
2360
- 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));
2372
+ 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));
2361
2373
  })(s2, l2, c2);
2362
2374
  if (e2.match(/^#+0+$/)) return c2 + De(l2, e2.length - e2.indexOf("0"));
2363
2375
  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) {
@@ -2369,9 +2381,9 @@ function hn(t2, e2, n2) {
2369
2381
  if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Qe(De(l2, 0));
2370
2382
  if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + hn(t2, e2, -n2) : Qe("" + (Math.floor(n2) + (function(t3, e3) {
2371
2383
  return e3 < ("" + Math.round((t3 - Math.floor(t3)) * Math.pow(10, e3))).length ? 1 : 0;
2372
- })(n2, s2[1].length))) + "." + Te(cn(n2, s2[1].length), s2[1].length);
2384
+ })(n2, s2[1].length))) + "." + Ne(cn(n2, s2[1].length), s2[1].length);
2373
2385
  if (s2 = e2.match(/^#,#*,#0/)) return hn(t2, e2.replace(/^#,#*,/, ""), n2);
2374
- 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) {
2386
+ 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) {
2375
2387
  return i2 < o2.length ? o2.charAt(i2++) : "0" === t3 ? "0" : "";
2376
2388
  }));
2377
2389
  if (e2.match(on)) return "(" + (o2 = hn(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
@@ -2387,8 +2399,8 @@ function hn(t2, e2, n2) {
2387
2399
  if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return i2 = cn(n2, s2[1].length), n2 < 0 ? "-" + hn(t2, e2, -n2) : Qe((function(t3) {
2388
2400
  return t3 < 2147483647 && t3 > -2147483648 ? "" + (t3 >= 0 ? 0 | t3 : t3 - 1 | 0) : "" + Math.floor(t3);
2389
2401
  })(n2)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(t3) {
2390
- return "00," + (t3.length < 3 ? Te(0, 3 - t3.length) : "") + t3;
2391
- }) + "." + Te(i2, s2[1].length);
2402
+ return "00," + (t3.length < 3 ? Ne(0, 3 - t3.length) : "") + t3;
2403
+ }) + "." + Ne(i2, s2[1].length);
2392
2404
  switch (e2) {
2393
2405
  case "###,##0.00":
2394
2406
  return hn(t2, "#,##0.00", n2);
@@ -2438,20 +2450,20 @@ function un(t2, e2, n2) {
2438
2450
  if (-1 !== e2.indexOf("E")) return dn(e2, n2);
2439
2451
  if (36 === e2.charCodeAt(0)) return "$" + un(t2, e2.substr(" " === e2.charAt(1) ? 2 : 1), n2);
2440
2452
  var o2, s2, i2, a2, l2 = Math.abs(n2), c2 = n2 < 0 ? "-" : "";
2441
- if (e2.match(/^00+$/)) return c2 + Te(l2, e2.length);
2453
+ if (e2.match(/^00+$/)) return c2 + Ne(l2, e2.length);
2442
2454
  if (e2.match(/^[#?]+$/)) return o2 = "" + n2, 0 === n2 && (o2 = ""), o2.length > e2.length ? o2 : sn(e2.substr(0, e2.length - o2.length)) + o2;
2443
2455
  if (s2 = e2.match(en)) return (function(t3, e3, n3) {
2444
2456
  return n3 + (0 === e3 ? "" : "" + e3) + Me(" ", t3[1].length + 2 + t3[4].length);
2445
2457
  })(s2, l2, c2);
2446
- if (e2.match(/^#+0+$/)) return c2 + Te(l2, e2.length - e2.indexOf("0"));
2447
- 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) {
2458
+ if (e2.match(/^#+0+$/)) return c2 + Ne(l2, e2.length - e2.indexOf("0"));
2459
+ 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) {
2448
2460
  return "." + e3 + Me("0", sn(s2[2]).length - e3.length);
2449
2461
  }), o2 = -1 !== e2.indexOf("0.") ? o2 : o2.replace(/^0\./, "."), n2 < 0 ? "-" + o2 : o2;
2450
2462
  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." : ".");
2451
2463
  if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Qe("" + l2);
2452
2464
  if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + un(t2, e2, -n2) : Qe("" + n2) + "." + Me("0", s2[1].length);
2453
2465
  if (s2 = e2.match(/^#,#*,#0/)) return un(t2, e2.replace(/^#,#*,/, ""), n2);
2454
- 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) {
2466
+ 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) {
2455
2467
  return i2 < o2.length ? o2.charAt(i2++) : "0" === t3 ? "0" : "";
2456
2468
  }));
2457
2469
  if (e2.match(on)) return "(" + (o2 = un(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
@@ -2465,8 +2477,8 @@ function un(t2, e2, n2) {
2465
2477
  return sn(e2.substr(0, d2) + o2 + e2.substr(e2.length - u2));
2466
2478
  }
2467
2479
  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) {
2468
- return "00," + (t3.length < 3 ? Te(0, 3 - t3.length) : "") + t3;
2469
- }) + "." + Te(0, s2[1].length);
2480
+ return "00," + (t3.length < 3 ? Ne(0, 3 - t3.length) : "") + t3;
2481
+ }) + "." + Ne(0, s2[1].length);
2470
2482
  switch (e2) {
2471
2483
  case "###,###":
2472
2484
  case "##,###":
@@ -2609,10 +2621,10 @@ function wn(t2, e2, n2) {
2609
2621
  r2 = "m/d/yy" === t2 && n2.dateNF ? n2.dateNF : t2;
2610
2622
  break;
2611
2623
  case "number":
2612
- 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");
2624
+ null == (r2 = 14 === t2 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : ze)[t2]) && (r2 = n2.table && n2.table[He[t2]] || ze[He[t2]]), null == r2 && (r2 = We[t2] || "General");
2613
2625
  }
2614
2626
  if (Be(r2, 0)) return Xe(e2, n2);
2615
- Re(e2) && (e2 = Je(e2, n2.date1904));
2627
+ Re(e2) && (e2 = qe(e2, n2.date1904));
2616
2628
  var s2 = (function(t3, e3) {
2617
2629
  var n3 = mn(t3), r3 = n3.length, o2 = n3[r3 - 1].indexOf("@");
2618
2630
  if (-1 !== o2 && "\\" === n3[r3 - 1][o2 - 1] && (o2 = -1), r3 < 4 && o2 > -1 && --r3, n3.length > 4) throw new Error("We can't find right format for |" + n3.join("|") + "|");
@@ -2856,11 +2868,11 @@ function yn(t2, e2) {
2856
2868
  }
2857
2869
  return ze[e2] = t2, e2;
2858
2870
  }
2859
- const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: ze, load_table: function(t2) {
2871
+ const En = { format: wn, dateNumLocal: qe, load: yn, split_fmt: mn, _table: ze, load_table: function(t2) {
2860
2872
  for (var e2 = 0; 392 !== e2; ++e2) void 0 !== t2[e2] && yn(t2[e2], e2);
2861
2873
  }, parse_date_code: $e, is_date: pn, get_table: function() {
2862
2874
  return En._table = ze;
2863
- } }, 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) => {
2875
+ } }, 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) => {
2864
2876
  const n2 = [...t2];
2865
2877
  for (var r2 = 0; r2 < t2.length; r2++) n2[r2] = t2[r2] / e2;
2866
2878
  return n2;
@@ -2874,13 +2886,13 @@ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: ze,
2874
2886
  return n2;
2875
2887
  }, Bn = (t2) => Math.max(0, Math.min(1, t2)), Ln = (t2) => ((t2 %= 360) < 0 && (t2 -= 360), t2), Pn = (t2) => {
2876
2888
  const e2 = [...t2];
2877
- for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Wn(t2[n2]);
2889
+ for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Hn(t2[n2]);
2878
2890
  return e2;
2879
2891
  }, zn = (t2) => {
2880
2892
  const e2 = [...t2];
2881
- for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Hn(t2[n2]);
2893
+ for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Wn(t2[n2]);
2882
2894
  return e2;
2883
- }, 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) => {
2895
+ }, 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) => {
2884
2896
  let e2 = t2[0], n2 = t2[1], r2 = t2[2];
2885
2897
  e2 %= 360, e2 /= 360, n2 /= 100, r2 /= 100;
2886
2898
  let o2 = r2 < 0.5 ? r2 * (1 + n2) : r2 + n2 - n2 * r2, s2 = 2 * r2 - o2;
@@ -2891,7 +2903,7 @@ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: ze,
2891
2903
  const a2 = (s2 + o2) / 2;
2892
2904
  let l2 = 0;
2893
2905
  return l2 = s2 === o2 ? 0 : a2 <= 0.5 ? (s2 - o2) / (s2 + o2) : (s2 - o2) / (2 - s2 - o2), [i2, 100 * l2, 100 * a2];
2894
- }, Gn = 0, Un = 1, Jn = 2, qn = 0, Kn = 1, Xn = 2, Yn = 0, Qn = 1, Zn = 2, tr = (t2, e2) => {
2906
+ }, Gn = 0, Un = 1, qn = 2, Jn = 0, Kn = 1, Xn = 2, Yn = 0, Qn = 1, Zn = 2, tr = (t2, e2) => {
2895
2907
  let n2 = e2 / 100;
2896
2908
  return ((t3, e3) => {
2897
2909
  let n3 = Pn(t3);
@@ -2937,7 +2949,7 @@ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: ze,
2937
2949
  let i2 = zn(o2);
2938
2950
  return i2 = Dn(i2), i2;
2939
2951
  }, lr = (t2) => {
2940
- let e2 = Pn(t2), n2 = 0.213 * e2[qn] + 0.715 * e2[Kn] + 0.072 * e2[Xn];
2952
+ let e2 = Pn(t2), n2 = 0.213 * e2[Jn] + 0.715 * e2[Kn] + 0.072 * e2[Xn];
2941
2953
  e2[0] = n2, e2[1] = n2, e2[2] = n2;
2942
2954
  let r2 = zn(e2);
2943
2955
  return r2 = Dn(r2), r2;
@@ -2952,11 +2964,11 @@ const En = { format: wn, dateNumLocal: Je, load: yn, split_fmt: mn, _table: ze,
2952
2964
  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;
2953
2965
  }, dr = (t2) => {
2954
2966
  const e2 = [0, 0, 0];
2955
- e2[0] = Hn(t2[0]), e2[1] = Hn(t2[1]), e2[2] = Hn(t2[2]);
2967
+ e2[0] = Wn(t2[0]), e2[1] = Wn(t2[1]), e2[2] = Wn(t2[2]);
2956
2968
  return Dn(e2);
2957
2969
  }, ur = (t2) => {
2958
2970
  const e2 = [0, 0, 0];
2959
- e2[0] = Wn(t2[0]), e2[1] = Wn(t2[1]), e2[2] = Wn(t2[2]);
2971
+ e2[0] = Hn(t2[0]), e2[1] = Hn(t2[1]), e2[2] = Hn(t2[2]);
2960
2972
  return Dn(e2);
2961
2973
  }, gr = (t2, e2, n2, r2 = null) => {
2962
2974
  const o2 = (t3) => {
@@ -3042,7 +3054,7 @@ for (let t2 = 0; t2 < Er.length; t2++) Cr.set(t2, yr(Er[t2]));
3042
3054
  Cr.set(-4105, null), Cr.set(-4142, null), Cr.set(64, yr("000000")), Cr.set(65, yr("FFFFFF")), Cr.set(81, yr("FFFFFF"));
3043
3055
  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" };
3044
3056
  let xr = null;
3045
- 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) => {
3057
+ 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) => {
3046
3058
  const r2 = Rr.exec(t2);
3047
3059
  let o2 = Ir();
3048
3060
  if (r2 && r2[1]) {
@@ -3050,11 +3062,11 @@ const Ir = () => xr || (xr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
3050
3062
  Ar.test(t3) || t3.includes("-");
3051
3063
  }
3052
3064
  if (Fr[t2] && (t2 = Fr[t2]), "number" == typeof e2) {
3053
- const r3 = Tr(t2, e2, { locale: o2, ...n2 });
3065
+ const r3 = Nr(t2, e2, { locale: o2, ...n2 });
3054
3066
  if (null !== r3) return r3.fmt;
3055
3067
  }
3056
3068
  return En.format(t2, e2, n2);
3057
- }, Tr = (t2, e2, n2) => {
3069
+ }, Nr = (t2, e2, n2) => {
3058
3070
  if ("number" != typeof e2) return null;
3059
3071
  const r2 = eo(e2, n2?.date1904 ?? false), o2 = n2?.locale ?? Ir();
3060
3072
  let s2 = false, i2 = t2, a2 = -1;
@@ -3094,8 +3106,8 @@ const Ir = () => xr || (xr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
3094
3106
  void 0 !== n2 && (e2 = br(n2).toString());
3095
3107
  }
3096
3108
  return e2;
3097
- }, Dr = "=", Br = "<>", Lr = ">", Pr = "<", zr = ">=", Wr = "<=", Hr = /* @__PURE__ */ new Map();
3098
- 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);
3109
+ }, Dr = "=", Br = "<>", Lr = ">", Pr = "<", zr = ">=", Hr = "<=", Wr = /* @__PURE__ */ new Map();
3110
+ Wr.set(Dr, (t2, e2) => t2 === e2), Wr.set(Br, (t2, e2) => t2 !== e2), Wr.set(Lr, (t2, e2) => t2 > e2), Wr.set(Pr, (t2, e2) => t2 < e2), Wr.set(zr, (t2, e2) => t2 >= e2), Wr.set(Hr, (t2, e2) => t2 <= e2);
3099
3111
  const Vr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, $r = /(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)/i, jr = /\[(.*?)\]/g, Gr = (t2, e2) => {
3100
3112
  const n2 = { color: null, condition: null };
3101
3113
  let r2 = null, o2 = new RegExp(jr);
@@ -3132,12 +3144,12 @@ const Vr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, $r =
3132
3144
  let o2 = r2?.condition ?? void 0;
3133
3145
  if (3 === t3) return "string" == typeof e2 && r2?.color ? r2.color : null;
3134
3146
  if (o2 && "number" == typeof e2) {
3135
- if (Hr.get(o2.op)(e2, o2.comp)) return r2?.color ?? null;
3147
+ if (Wr.get(o2.op)(e2, o2.comp)) return r2?.color ?? null;
3136
3148
  }
3137
3149
  }
3138
- }, Jr = (t2) => {
3150
+ }, qr = (t2) => {
3139
3151
  if (t2 === vr.MediumDate || t2 === vr.LongDate || t2 === vr.ShortDate || t2 === vr.MediumTime || t2 === vr.LongTime || t2 === vr.ShortTime) return true;
3140
- }, qr = (t2, e2) => t2 === e2 ? 0 : Jr(t2) ? 1 : Jr(e2) ? -1 : t2 === vr.Percentage ? 1 : e2 === vr.Percentage ? -1 : t2 === vr.Currency || t2 === vr.Accounting ? 1 : e2 === vr.Currency || e2 === vr.Accounting ? -1 : 0, Kr = (t2) => (t2 instanceof Date || "[object Date]" === Object.prototype.toString.call(t2)) && !isNaN(t2.getTime()), Xr = (t2, e2, n2) => {
3152
+ }, Jr = (t2, e2) => t2 === e2 ? 0 : qr(t2) ? 1 : qr(e2) ? -1 : t2 === vr.Percentage ? 1 : e2 === vr.Percentage ? -1 : t2 === vr.Currency || t2 === vr.Accounting ? 1 : e2 === vr.Currency || e2 === vr.Accounting ? -1 : 0, Kr = (t2) => (t2 instanceof Date || "[object Date]" === Object.prototype.toString.call(t2)) && !isNaN(t2.getTime()), Xr = (t2, e2, n2) => {
3141
3153
  return "month" === n2 || "months" === n2 || "m" === n2 ? (r2 = t2, 12 * ((o2 = e2).getUTCFullYear() - r2.getUTCFullYear()) + (o2.getUTCMonth() - r2.getUTCMonth()) + (o2.getUTCDate() - r2.getUTCDate() < 0 ? -1 : 0)) : "year" === n2 || "years" === n2 || "y" === n2 ? ((t3, e3) => Math.abs(e3.getFullYear() - t3.getFullYear()))(t2, e2) : "day" === n2 || "days" === n2 || "d" === n2 ? ((t3, e3) => Math.floor((Date.UTC(e3.getFullYear(), e3.getMonth(), e3.getDate()) - Date.UTC(t3.getFullYear(), t3.getMonth(), t3.getDate())) / 864e5))(t2, e2) : void console.warn("invalid unit" + n2);
3142
3154
  var r2, o2;
3143
3155
  }, Yr = "d", Qr = "m", Zr = "y", to = (t2, e2, n2) => {
@@ -3269,7 +3281,7 @@ const Vr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, $r =
3269
3281
  c2.setFullYear(t4);
3270
3282
  }
3271
3283
  if (oo[t3].todaysYear && c2.setFullYear(o2), h2 = En.dateNumLocal(c2, e2), oo[t3].parseFormat.indexOf("EEE") > -1) {
3272
- const t4 = Nr("ddd", h2, { date1904: e2 });
3284
+ const t4 = Tr("ddd", h2, { date1904: e2 });
3273
3285
  if (!n3.toLowerCase().includes(t4.toLowerCase())) return null;
3274
3286
  }
3275
3287
  let r3 = oo[t3].numberFormat;
@@ -3319,9 +3331,9 @@ const Co = (t2, e2, n2 = 1e3) => {
3319
3331
  if (void 0 === t2) return 0;
3320
3332
  let e2 = t2.toString().split(".");
3321
3333
  return e2.length <= 1 ? 0 : e2[1].length || 0;
3322
- }, 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) => {
3323
- let r2 = To;
3324
- return void 0 === e2 && void 0 === n2 || (r2 = No(e2, n2)), t2.split(r2);
3334
+ }, 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) => {
3335
+ let r2 = No;
3336
+ return void 0 === e2 && void 0 === n2 || (r2 = To(e2, n2)), t2.split(r2);
3325
3337
  }, Do = (t2) => {
3326
3338
  let e2;
3327
3339
  try {
@@ -3330,17 +3342,17 @@ const Co = (t2, e2, n2 = 1e3) => {
3330
3342
  return false;
3331
3343
  }
3332
3344
  return ("http:" === e2.protocol || "https:" === e2.protocol) && Mo.test(t2);
3333
- }, 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: 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) => {
3345
+ }, 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) => {
3334
3346
  if (!t2 || "string" != typeof t2) return "";
3335
3347
  const n2 = t2.split(/[\\/]/).pop() || "";
3336
3348
  if ("" === n2) return "";
3337
3349
  const r2 = vo(n2), o2 = 0 === r2.length ? n2 : n2.slice(0, n2.length - r2.length - 1);
3338
3350
  return e2 ? bo(o2, true) : o2;
3339
- }, 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) => {
3351
+ }, 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" })), Ho = (t2, e2, n2, r2 = null) => {
3340
3352
  const o2 = (e2 || 11 * Ko.getDeviceScale()) / Ko.getDeviceScale(), s2 = r2?.letterSpacing || 0, i2 = t2.length;
3341
3353
  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));
3342
3354
  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 };
3343
- }, Ho = () => Wo;
3355
+ }, Wo = () => Ho;
3344
3356
  let Vo = "./packages/sdk/src/__tests__/fonts/";
3345
3357
  const $o = /* @__PURE__ */ new Map(), jo = /* @__PURE__ */ new Set(), Go = (t2, e2, n2, r2 = null) => {
3346
3358
  const o2 = e2, s2 = Vo + n2.toLowerCase() + ".ttf";
@@ -3353,7 +3365,7 @@ const $o = /* @__PURE__ */ new Map(), jo = /* @__PURE__ */ new Set(), Go = (t2,
3353
3365
  i2 = R(Vo + "calibri.ttf");
3354
3366
  } catch (t3) {
3355
3367
  }
3356
- if (!i2) return jo.has(s2) || jo.add(s2), Ho().call(null, t2, e2, n2, r2);
3368
+ if (!i2) return jo.has(s2) || jo.add(s2), Wo().call(null, t2, e2, n2, r2);
3357
3369
  const a2 = `${s2}${t2}${o2}`;
3358
3370
  let l2 = $o.get(a2);
3359
3371
  l2 || (l2 = i2.layout(t2), t2.length < 2 && $o.set(a2, l2));
@@ -3370,19 +3382,19 @@ const $o = /* @__PURE__ */ new Map(), jo = /* @__PURE__ */ new Set(), Go = (t2,
3370
3382
  return _2 = _2 / i2.unitsPerEm * c2, { width: h2, lineHeight: m2, baseline: f2, underlinePosition: p2, underlineThickness: _2, lineGap: 0, actualBoundingBoxAscent: 0, actualBoundingBoxDescent: 0, actualBoundingBoxLeft: 0, actualBoundingBoxRight: 0, alphabeticBaseline: 0, emHeightAscent: 0, emHeightDescent: 0, fontBoundingBoxAscent: 0, fontBoundingBoxDescent: 0, hangingBaseline: 0, ideographicBaseline: 0 };
3371
3383
  };
3372
3384
  let Uo = null;
3373
- const Jo = () => 96 / 72;
3374
- let qo = null;
3385
+ const qo = () => 96 / 72;
3386
+ let Jo = null;
3375
3387
  var Ko, Xo;
3376
3388
  (Xo = Ko || (Ko = {})).Style = { Normal: "normal", Italic: "italic" }, Xo.Scheme = { Major: "major", Minor: "minor", None: "none" }, Xo.UnderlineStyle = { None: "none", Double: "double", DoubleAccounting: "doubleAccounting", Single: "single", SingleAccounting: "singleAccounting" }, Xo.VerticalAlignment = { Baseline: "baseline", Sub: "sub", Super: "super" }, Xo.setSharedMeasurer = (t2) => {
3377
- qo = t2;
3378
- }, Xo.getSharedMeasurer = () => qo || (qo = (() => {
3389
+ Jo = t2;
3390
+ }, Xo.getSharedMeasurer = () => Jo || (Jo = (() => {
3379
3391
  if (Uo) return Uo;
3380
3392
  try {
3381
3393
  Uo = Go;
3382
3394
  } catch {
3383
3395
  }
3384
- return Uo || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), Uo = Ho()), Uo;
3385
- })(), qo), Xo.getDeviceScale = () => Jo(), Xo.getPanoseFallback = (t2) => {
3396
+ return Uo || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), Uo = Wo()), Uo;
3397
+ })(), Jo), Xo.getDeviceScale = () => qo(), Xo.getPanoseFallback = (t2) => {
3386
3398
  const e2 = [], n2 = t2.length;
3387
3399
  for (let r3 = 0; r3 < n2; r3 += 2) e2.push(parseInt(t2.substring(r3, r3 + 2), 16));
3388
3400
  const r2 = e2[0], o2 = e2[1], s2 = e2[3];
@@ -3902,7 +3914,7 @@ const Rs = (t2, e2 = false) => {
3902
3914
  }, 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) => {
3903
3915
  const e2 = 0 === t2.length;
3904
3916
  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 };
3905
- }, Ns = (t2, e2) => {
3917
+ }, Ts = (t2, e2) => {
3906
3918
  const n2 = e2.run, r2 = n2.min, s2 = n2.max;
3907
3919
  if (t2 >= r2 && t2 <= s2) return n2.value;
3908
3920
  let i2 = e2.index;
@@ -3925,7 +3937,7 @@ const Rs = (t2, e2 = false) => {
3925
3937
  return n2.value = t3, t3;
3926
3938
  }
3927
3939
  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;
3928
- }, Ts = function(t2, e2, n2, r2) {
3940
+ }, Ns = function(t2, e2, n2, r2) {
3929
3941
  if (0 === t2.length) {
3930
3942
  if (null != n2 || null != r2) {
3931
3943
  const t3 = e2({ min: n2 ?? r2, max: r2 ?? n2 });
@@ -4201,7 +4213,7 @@ var ks, Os, Ds, Bs, Ls, Ps;
4201
4213
  }
4202
4214
  const f2 = Ms(a2);
4203
4215
  return (t4) => {
4204
- const e4 = t4 >= 0, n4 = Math.abs(t4), o4 = Ns(n4 % r3, f2);
4216
+ const e4 = t4 >= 0, n4 = Math.abs(t4), o4 = Ts(n4 % r3, f2);
4205
4217
  if (!o4) return null;
4206
4218
  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));
4207
4219
  let c3 = t4 + (e4 ? -l3 : l3);
@@ -4222,7 +4234,7 @@ var ks, Os, Ds, Bs, Ls, Ps;
4222
4234
  };
4223
4235
  })(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" };
4224
4236
  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]];
4225
- const Ws = new class {
4237
+ const Hs = new class {
4226
4238
  constructor() {
4227
4239
  this._lookupByName = /* @__PURE__ */ new Map();
4228
4240
  for (let t2 = 0; t2 < zs.length; t2++) {
@@ -4233,11 +4245,11 @@ const Ws = new class {
4233
4245
  valueOfName(t2) {
4234
4246
  return this._lookupByName.get(t2 ? t2.toLowerCase() : "transparent");
4235
4247
  }
4236
- }(), 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();
4237
- for (let t2 = 0; t2 < Hs.length; t2++) Vs.set(Hs[t2].scheme.toLowerCase(), Hs[t2]);
4248
+ }(), 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();
4249
+ for (let t2 = 0; t2 < Ws.length; t2++) Vs.set(Ws[t2].scheme.toLowerCase(), Ws[t2]);
4238
4250
  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) {
4239
4251
  let o2 = $s(((t3) => {
4240
- let e3 = Ws.valueOfName(t3);
4252
+ let e3 = Hs.valueOfName(t3);
4241
4253
  return e3 ? new _r.RGBA(e3.rgbaColor.r, e3.rgbaColor.g, e3.rgbaColor.b, e3.rgbaColor.a) : null;
4242
4254
  })(t2)), s2 = null, i2 = null, a2 = null;
4243
4255
  if (null === o2 && (l2 = t2, Vs.get(l2.toLowerCase()))) {
@@ -4246,7 +4258,7 @@ const $s = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
4246
4258
  }
4247
4259
  var l2;
4248
4260
  if (null === o2) {
4249
- let e3 = t2.match(Mn) || t2.match(Nn);
4261
+ let e3 = t2.match(Mn) || t2.match(Tn);
4250
4262
  if (e3) {
4251
4263
  let t3, n3 = 1;
4252
4264
  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;
@@ -4274,7 +4286,7 @@ const $s = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
4274
4286
  }
4275
4287
  }
4276
4288
  if (null === o2) {
4277
- let e3 = t2.match(Tn);
4289
+ let e3 = t2.match(Nn);
4278
4290
  if (e3) {
4279
4291
  const t3 = parseInt(e3[1]);
4280
4292
  let r3 = n2?.(t3) ?? br(t3);
@@ -4285,7 +4297,7 @@ const $s = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
4285
4297
  return { srgbAlpha: o2, key: s2, color: i2, type: a2 };
4286
4298
  }, Gs = /* @__PURE__ */ new Map(), Us = Object.keys(Ls.AdjustmentType);
4287
4299
  for (let t2 = 0; t2 < Us.length; t2++) Gs.set(Ls.AdjustmentType[Us[t2]].toLowerCase(), Ls.AdjustmentType[Us[t2]]);
4288
- const Js = new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), qs = new RegExp("\\s*[,]\\s*|\\s+");
4300
+ const qs = new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), Js = new RegExp("\\s*[,]\\s*|\\s+");
4289
4301
  let Ks = null;
4290
4302
  const Xs = { [Ls.Scheme.Bg1]: "window", [Ls.Scheme.Bg2]: "E7E6E6", [Ls.Scheme.Tx1]: "windowText", [Ls.Scheme.Tx2]: "44546A", [Ls.Scheme.Accent1]: "4472C4", [Ls.Scheme.Accent2]: "ED7D31", [Ls.Scheme.Accent3]: "A5A5A5", [Ls.Scheme.Accent4]: "FFC000", [Ls.Scheme.Accent5]: "5B9BD5", [Ls.Scheme.Accent6]: "70AD47", [Ls.Scheme.Hlink]: "0563C1", [Ls.Scheme.FolHlink]: "954F72" };
4291
4303
  class Ys {
@@ -4301,9 +4313,9 @@ class Ys {
4301
4313
  }
4302
4314
  _parse(t2) {
4303
4315
  let e2 = null, n2 = t2.toLowerCase().trim();
4304
- const r2 = n2.split(Js);
4316
+ const r2 = n2.split(qs);
4305
4317
  if (r2 && (e2 = r2[0], n2 = n2.substring(e2.length, n2.length).trim()), !e2) throw new Error("no color key found");
4306
- const o2 = [], s2 = n2.split(qs);
4318
+ const o2 = [], s2 = n2.split(Js);
4307
4319
  for (let t3 = 0; t3 < s2.length; t3++) {
4308
4320
  const e3 = s2[t3];
4309
4321
  if (!e3) continue;
@@ -4334,7 +4346,7 @@ class Ys {
4334
4346
  })(n2, 180), n2 = hr(n2, false);
4335
4347
  let r2 = Pn(n2);
4336
4348
  const o2 = jn(r2);
4337
- 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);
4349
+ if (o2[qn] = 0.95 * o2[qn], 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);
4338
4350
  const s2 = jn(Pn(n2));
4339
4351
  return new _r.HSLA(s2[0], s2[1], s2[2], e2.alpha);
4340
4352
  }
@@ -4349,7 +4361,7 @@ class Ys {
4349
4361
  let n3 = [...t3.srgb], r3 = void 0 !== t3.alpha ? t3.alpha : 1;
4350
4362
  for (var o2 = 0; e3 && o2 < e3.length; o2++) {
4351
4363
  const t4 = e3[o2], s2 = Object.keys(t4)[0], i2 = t4[s2];
4352
- s2 === Ls.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.Hue ? n3 = or(Gn, n3, i2) : s2 === Ls.AdjustmentType.Sat ? n3 = or(Un, n3, i2) : s2 === Ls.AdjustmentType.Lum ? n3 = or(Jn, n3, i2) : s2 === Ls.AdjustmentType.HueOff ? n3 = sr(Gn, n3, i2) : s2 === Ls.AdjustmentType.SatOff ? n3 = sr(Un, n3, i2) : s2 === Ls.AdjustmentType.LumOff ? n3 = sr(Jn, n3, i2) : s2 === Ls.AdjustmentType.HueMod ? n3 = ir(Gn, n3, i2) : s2 === Ls.AdjustmentType.SatMod ? n3 = ir(Un, n3, i2) : s2 === Ls.AdjustmentType.LumMod ? n3 = ir(Jn, n3, i2) : s2 === Ls.AdjustmentType.Red ? n3 = ar(qn, n3, i2, Yn) : s2 === Ls.AdjustmentType.Green ? n3 = ar(Kn, n3, i2, Yn) : s2 === Ls.AdjustmentType.Blue ? n3 = ar(Xn, n3, i2, Yn) : s2 === Ls.AdjustmentType.RedOff ? n3 = ar(qn, n3, i2, Qn) : s2 === Ls.AdjustmentType.GreenOff ? n3 = ar(Kn, n3, i2, Qn) : s2 === Ls.AdjustmentType.BlueOff ? n3 = ar(Xn, n3, i2, Qn) : s2 === Ls.AdjustmentType.RedMod ? n3 = ar(qn, n3, i2, Zn) : s2 === Ls.AdjustmentType.GreenMod ? n3 = ar(Kn, n3, i2, Zn) : s2 === Ls.AdjustmentType.BlueMod ? n3 = ar(Xn, n3, i2, Zn) : s2 === Ls.AdjustmentType.Shade ? n3 = tr(n3, i2) : s2 === Ls.AdjustmentType.Tint ? n3 = rr(n3, i2) : s2 === Ls.AdjustmentType.ETint ? n3 = nr(n3, i2) : s2 === Ls.AdjustmentType.Gray ? n3 = lr(n3) : s2 === Ls.AdjustmentType.Comp ? n3 = cr(n3) : s2 === Ls.AdjustmentType.Inv ? n3 = hr(n3, i2) : s2 === Ls.AdjustmentType.Gamma ? n3 = dr(n3) : s2 === Ls.AdjustmentType.InvGamma ? n3 = ur(n3) : console.warn("unknown adjustmentType: " + s2);
4364
+ s2 === Ls.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.Hue ? n3 = or(Gn, n3, i2) : s2 === Ls.AdjustmentType.Sat ? n3 = or(Un, n3, i2) : s2 === Ls.AdjustmentType.Lum ? n3 = or(qn, n3, i2) : s2 === Ls.AdjustmentType.HueOff ? n3 = sr(Gn, n3, i2) : s2 === Ls.AdjustmentType.SatOff ? n3 = sr(Un, n3, i2) : s2 === Ls.AdjustmentType.LumOff ? n3 = sr(qn, n3, i2) : s2 === Ls.AdjustmentType.HueMod ? n3 = ir(Gn, n3, i2) : s2 === Ls.AdjustmentType.SatMod ? n3 = ir(Un, n3, i2) : s2 === Ls.AdjustmentType.LumMod ? n3 = ir(qn, n3, i2) : s2 === Ls.AdjustmentType.Red ? n3 = ar(Jn, n3, i2, Yn) : s2 === Ls.AdjustmentType.Green ? n3 = ar(Kn, n3, i2, Yn) : s2 === Ls.AdjustmentType.Blue ? n3 = ar(Xn, n3, i2, Yn) : s2 === Ls.AdjustmentType.RedOff ? n3 = ar(Jn, n3, i2, Qn) : s2 === Ls.AdjustmentType.GreenOff ? n3 = ar(Kn, n3, i2, Qn) : s2 === Ls.AdjustmentType.BlueOff ? n3 = ar(Xn, n3, i2, Qn) : s2 === Ls.AdjustmentType.RedMod ? n3 = ar(Jn, n3, i2, Zn) : s2 === Ls.AdjustmentType.GreenMod ? n3 = ar(Kn, n3, i2, Zn) : s2 === Ls.AdjustmentType.BlueMod ? n3 = ar(Xn, n3, i2, Zn) : s2 === Ls.AdjustmentType.Shade ? n3 = tr(n3, i2) : s2 === Ls.AdjustmentType.Tint ? n3 = rr(n3, i2) : s2 === Ls.AdjustmentType.ETint ? n3 = nr(n3, i2) : s2 === Ls.AdjustmentType.Gray ? n3 = lr(n3) : s2 === Ls.AdjustmentType.Comp ? n3 = cr(n3) : s2 === Ls.AdjustmentType.Inv ? n3 = hr(n3, i2) : s2 === Ls.AdjustmentType.Gamma ? n3 = dr(n3) : s2 === Ls.AdjustmentType.InvGamma ? n3 = ur(n3) : console.warn("unknown adjustmentType: " + s2);
4353
4365
  }
4354
4366
  return { srgb: n3, alpha: r3 };
4355
4367
  })(t2.srgbAlpha, this._private.adjs), n2 = ((t3, e3 = 255) => {
@@ -4367,11 +4379,11 @@ class Ys {
4367
4379
  let s2 = null, i2 = o2?.trim(), a2 = null;
4368
4380
  try {
4369
4381
  if (!s2) {
4370
- const t4 = i2?.split(Js);
4382
+ const t4 = i2?.split(qs);
4371
4383
  t4 && (s2 = t4[0], i2 = i2.substring(s2.length, i2.length).trim());
4372
4384
  }
4373
4385
  if (!s2) throw new Error("no color found");
4374
- const t3 = [], o3 = i2.split(qs);
4386
+ const t3 = [], o3 = i2.split(Js);
4375
4387
  for (let e3 = 0; e3 < o3.length; e3++) {
4376
4388
  const n3 = o3[e3];
4377
4389
  if (!n3) continue;
@@ -4470,7 +4482,7 @@ for (let t2 = 0; t2 < ni.length; t2++) {
4470
4482
  ((t2) => {
4471
4483
  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;
4472
4484
  })(Qs || (Qs = {}));
4473
- 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) => {
4485
+ 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) => {
4474
4486
  if (!t2) return "";
4475
4487
  const n2 = (t3, e3) => {
4476
4488
  let n3 = t3 || "";
@@ -4555,13 +4567,13 @@ const yi = (t2, e2, n2, r2, o2) => {
4555
4567
  };
4556
4568
  var Ci, bi;
4557
4569
  (Ci || (Ci = {})).buildPalette = Ei, (bi || (bi = {})).BuiltInFilterType = { BuiltIn: "builtIn", All: "all", Custom: "custom" };
4558
- 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) => {
4570
+ 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) => {
4559
4571
  const e2 = {};
4560
4572
  for (let n2 = 0; n2 < t2.length; n2++) {
4561
4573
  const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
4562
4574
  e2[o2] = s2;
4563
- for (let t3 = 0; t3 < Ti.length; t3++) {
4564
- const e3 = Ti[t3], n3 = r2[t3 + 1];
4575
+ for (let t3 = 0; t3 < Ni.length; t3++) {
4576
+ const e3 = Ni[t3], n3 = r2[t3 + 1];
4565
4577
  if (!n3) continue;
4566
4578
  const o3 = Ys.parse(n3);
4567
4579
  n3 && (s2[e3] = o3.toString());
@@ -4572,16 +4584,16 @@ const vi = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E9
4572
4584
  const e2 = {};
4573
4585
  for (let n2 = 0; n2 < t2.length; n2++) {
4574
4586
  const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
4575
- e2[o2] = s2, s2.majorFont = r2[1] ?? Ni[1], s2.minorFont = r2[2] ?? Ni[2];
4587
+ e2[o2] = s2, s2.majorFont = r2[1] ?? Ti[1], s2.minorFont = r2[2] ?? Ti[2];
4576
4588
  }
4577
4589
  return e2;
4578
- }, Oi = Fi([[Mi, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), Di = ki([Ni]), Bi = Oi[Mi], Li = Di[Mi];
4590
+ }, Oi = Fi([[Mi, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), Di = ki([Ti]), Bi = Oi[Mi], Li = Di[Mi];
4579
4591
  let Pi = null;
4580
4592
  const zi = new class {
4581
4593
  constructor() {
4582
4594
  this._colors = {};
4583
- for (let t2 = 0; t2 < Ti.length; t2++) {
4584
- const e2 = Ti[t2], n2 = Ys.parse(Bi[e2]);
4595
+ for (let t2 = 0; t2 < Ni.length; t2++) {
4596
+ const e2 = Ni[t2], n2 = Ys.parse(Bi[e2]);
4585
4597
  this._colors[e2] = n2;
4586
4598
  }
4587
4599
  }
@@ -4628,7 +4640,7 @@ const zi = new class {
4628
4640
  return null;
4629
4641
  }
4630
4642
  }();
4631
- class Wi {
4643
+ class Hi {
4632
4644
  constructor(t2, e2 = zi) {
4633
4645
  this._delegate = e2, this._fromJSON(t2);
4634
4646
  }
@@ -4687,11 +4699,11 @@ class Wi {
4687
4699
  return e2 && (t2.name = e2), t2;
4688
4700
  }
4689
4701
  }
4690
- const Hi = new class {
4702
+ const Wi = new class {
4691
4703
  constructor() {
4692
4704
  this._colors = {};
4693
- for (let t2 = 0; t2 < Ti.length; t2++) {
4694
- const e2 = Ti[t2], n2 = Ys.parse(Bi[e2]);
4705
+ for (let t2 = 0; t2 < Ni.length; t2++) {
4706
+ const e2 = Ni[t2], n2 = Ys.parse(Bi[e2]);
4695
4707
  this._colors[e2] = n2;
4696
4708
  }
4697
4709
  }
@@ -4712,7 +4724,7 @@ const Hi = new class {
4712
4724
  }
4713
4725
  }();
4714
4726
  class Vi {
4715
- constructor(t2, e2 = Hi) {
4727
+ constructor(t2, e2 = Wi) {
4716
4728
  this._delegate = e2, this._fromJSON(t2);
4717
4729
  }
4718
4730
  _fromJSON(t2) {
@@ -4753,7 +4765,7 @@ class $i {
4753
4765
  n3 && (e2 = n3);
4754
4766
  }
4755
4767
  if (!e2 && Pi && (e2 = Pi.get(Mi.toLowerCase())), this._name = t2?.name ?? e2?.getName(), !this._name) throw new Error("Theme must have a name.");
4756
- this._builtInID = n2, this._delegate = e2, this._colors = new Wi(t2?.colors, this._delegate?.getColorScheme()), this._fonts = new Vi(t2?.fonts, this._delegate?.getFontScheme());
4768
+ this._builtInID = n2, this._delegate = e2, this._colors = new Hi(t2?.colors, this._delegate?.getColorScheme()), this._fonts = new Vi(t2?.fonts, this._delegate?.getFontScheme());
4757
4769
  const r2 = Ai, o2 = {}, s2 = Object.keys(r2);
4758
4770
  for (let t3 = 0; t3 < s2.length; t3++) {
4759
4771
  const e3 = s2[t3];
@@ -4858,7 +4870,7 @@ class Gi {
4858
4870
  return this._customMap.delete(e2), n2 ?? null;
4859
4871
  }
4860
4872
  }
4861
- var Ui, Ji;
4873
+ var Ui, qi;
4862
4874
  (Ui || (Ui = {})).ElementType = { WholeTable: "wholeTable", FirstColumnStripe: "firstColumnStripe", SecondColumnStripe: "secondColumnStripe", FirstRowStripe: "firstRowStripe", SecondRowStripe: "secondRowStripe", LastColumn: "lastColumn", FirstColumn: "firstColumn", HeaderRow: "headerRow", TotalRow: "totalRow", FirstHeaderCell: "firstHeaderCell", LastHeaderCell: "lastHeaderCell", FirstTotalCell: "firstTotalCell", LastTotalCell: "lastTotalCell" }, (Ui || (Ui = {})).Empty = class {
4863
4875
  constructor(t2) {
4864
4876
  this._normalStyle = t2;
@@ -4889,8 +4901,8 @@ var Ui, Ji;
4889
4901
  get isITableStyle() {
4890
4902
  return true;
4891
4903
  }
4892
- }, (Ji || (Ji = {})).Type = { Absolute: "absolute", OneCell: "oneCell", TwoCell: "twoCell" };
4893
- const qi = "Model has been closed. No further operations are allowed.", Ki = "Name is required";
4904
+ }, (qi || (qi = {})).Type = { Absolute: "absolute", OneCell: "oneCell", TwoCell: "twoCell" };
4905
+ const Ji = "Model has been closed. No further operations are allowed.", Ki = "Name is required";
4894
4906
  class Xi {
4895
4907
  constructor(t2, e2) {
4896
4908
  this._listeners = /* @__PURE__ */ new Set(), this._pending = null, this._listeners = /* @__PURE__ */ new Set(), this._transactions = e2 ?? new F({ transient: true }), this._src = t2;
@@ -5008,7 +5020,7 @@ class Yi {
5008
5020
  return null;
5009
5021
  }
5010
5022
  _getState() {
5011
- if (this._closed) throw new Error(qi);
5023
+ if (this._closed) throw new Error(Ji);
5012
5024
  return this._transactions.getState(this);
5013
5025
  }
5014
5026
  _beginCommit(t2) {
@@ -5018,7 +5030,7 @@ class Yi {
5018
5030
  return this._transactions;
5019
5031
  }
5020
5032
  _updateState(t2, e2, n2) {
5021
- if (this._closed) throw new Error(qi);
5033
+ if (this._closed) throw new Error(Ji);
5022
5034
  if (!t2) return;
5023
5035
  const r2 = this._beginCommit(e2?.description);
5024
5036
  try {
@@ -5660,8 +5672,8 @@ class _a {
5660
5672
  if (void 0 === e2 && (e2 = o2 + 1), 0 === this._count || t2 <= r2 && e2 - 1 >= o2) return this.clone();
5661
5673
  const s2 = Math.max(r2, t2), i2 = Math.min(o2, e2 - 1), a2 = i2 - s2, l2 = [];
5662
5674
  let c2 = 0;
5663
- Na.bounds.min = s2, Na.bounds.max = i2;
5664
- const h2 = this.runs(Na);
5675
+ Ta.bounds.min = s2, Ta.bounds.max = i2;
5676
+ const h2 = this.runs(Ta);
5665
5677
  let d2 = h2.next();
5666
5678
  for (; !d2.done; ) {
5667
5679
  const t3 = d2.value;
@@ -5828,8 +5840,8 @@ const Sa = (t2) => "boolean" != typeof t2 ? (t2 && !t2.value && (t2.value = [-1,
5828
5840
  }
5829
5841
  if (e2) for (let t3 = i2; t3 < n2; t3++) o2.push(void 0);
5830
5842
  return o2;
5831
- }, 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 };
5832
- class Ta {
5843
+ }, 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 };
5844
+ class Na {
5833
5845
  constructor(t2 = 9) {
5834
5846
  this._maxEntries = Math.max(4, t2), this._minEntries = Math.max(2, Math.ceil(0.4 * this._maxEntries)), this.clear();
5835
5847
  }
@@ -5950,7 +5962,7 @@ class Ta {
5950
5962
  for (; r2.push(e2), !e2.leaf && r2.length - 1 !== n2; ) {
5951
5963
  let n3, r3 = 1 / 0, o2 = 1 / 0;
5952
5964
  for (let s2 = 0; s2 < e2.children.length; s2++) {
5953
- const i2 = e2.children[s2], a2 = Pa(i2), l2 = Wa(t2, i2) - a2;
5965
+ const i2 = e2.children[s2], a2 = Pa(i2), l2 = Ha(t2, i2) - a2;
5954
5966
  l2 < o2 ? (o2 = l2, r3 = a2 < r3 ? a2 : r3, n3 = i2) : l2 === o2 && a2 < r3 && (r3 = a2, n3 = i2);
5955
5967
  }
5956
5968
  e2 = n3 || e2.children[0];
@@ -5974,7 +5986,7 @@ class Ta {
5974
5986
  _chooseSplitIndex(t2, e2, n2) {
5975
5987
  let r2 = -1, o2 = 1 / 0, s2 = 1 / 0;
5976
5988
  for (let i2 = e2; i2 <= n2 - e2; i2++) {
5977
- const e3 = Oa(t2, 0, i2, this.toBBox), a2 = Oa(t2, i2, n2, this.toBBox), l2 = Ha(e3, a2), c2 = Pa(e3) + Pa(a2);
5989
+ const e3 = Oa(t2, 0, i2, this.toBBox), a2 = Oa(t2, i2, n2, this.toBBox), l2 = Wa(e3, a2), c2 = Pa(e3) + Pa(a2);
5978
5990
  l2 < o2 ? (o2 = l2, r2 = i2, s2 = c2 < s2 ? c2 : s2) : l2 === o2 && c2 < s2 && (s2 = c2, r2 = i2);
5979
5991
  }
5980
5992
  return r2 || n2 - e2;
@@ -6035,10 +6047,10 @@ function Pa(t2) {
6035
6047
  function za(t2) {
6036
6048
  return t2.maxX - t2.minX + (t2.maxY - t2.minY);
6037
6049
  }
6038
- function Wa(t2, e2) {
6050
+ function Ha(t2, e2) {
6039
6051
  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));
6040
6052
  }
6041
- function Ha(t2, e2) {
6053
+ function Wa(t2, e2) {
6042
6054
  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);
6043
6055
  return Math.max(0, o2 - n2) * Math.max(0, s2 - r2);
6044
6056
  }
@@ -6067,18 +6079,18 @@ function Ua(t2, e2, n2, r2, o2) {
6067
6079
  }
6068
6080
  const s2 = t2[e2];
6069
6081
  let i2 = n2, a2 = r2;
6070
- for (Ja(t2, n2, e2), o2(t2[r2], s2) > 0 && Ja(t2, n2, r2); i2 < a2; ) {
6071
- for (Ja(t2, i2, a2), i2++, a2--; o2(t2[i2], s2) < 0; ) i2++;
6082
+ for (qa(t2, n2, e2), o2(t2[r2], s2) > 0 && qa(t2, n2, r2); i2 < a2; ) {
6083
+ for (qa(t2, i2, a2), i2++, a2--; o2(t2[i2], s2) < 0; ) i2++;
6072
6084
  for (; o2(t2[a2], s2) > 0; ) a2--;
6073
6085
  }
6074
- 0 === o2(t2[n2], s2) ? Ja(t2, n2, a2) : (a2++, Ja(t2, a2, r2)), a2 <= e2 && (n2 = a2 + 1), e2 <= a2 && (r2 = a2 - 1);
6086
+ 0 === o2(t2[n2], s2) ? qa(t2, n2, a2) : (a2++, qa(t2, a2, r2)), a2 <= e2 && (n2 = a2 + 1), e2 <= a2 && (r2 = a2 - 1);
6075
6087
  }
6076
6088
  }
6077
- function Ja(t2, e2, n2) {
6089
+ function qa(t2, e2, n2) {
6078
6090
  const r2 = t2[e2];
6079
6091
  t2[e2] = t2[n2], t2[n2] = r2;
6080
6092
  }
6081
- class qa extends Ta {
6093
+ class Ja extends Na {
6082
6094
  toBBox(t2) {
6083
6095
  return { minX: 10 * t2.colStart, minY: 10 * t2.rowStart, maxX: 10 * t2.colEnd + 5, maxY: 10 * t2.rowEnd + 5 };
6084
6096
  }
@@ -6100,7 +6112,7 @@ class qa extends Ta {
6100
6112
  }
6101
6113
  class Ka {
6102
6114
  constructor(t2) {
6103
- this._shared = null, this._rTree = null, this._cloneKey = null, this._lastMiss = { colStart: Number.MAX_SAFE_INTEGER, rowStart: 0, colEnd: 0, rowEnd: 0 }, this._lastSingle = null, this._lastSingleResult = null, this._options = t2, this._rTree = new qa(t2?.maxNodeEntries ?? 16);
6115
+ this._shared = null, this._rTree = null, this._cloneKey = null, this._lastMiss = { colStart: Number.MAX_SAFE_INTEGER, rowStart: 0, colEnd: 0, rowEnd: 0 }, this._lastSingle = null, this._lastSingleResult = null, this._options = t2, this._rTree = new Ja(t2?.maxNodeEntries ?? 16);
6104
6116
  }
6105
6117
  visitRanges(t2, e2, n2 = null) {
6106
6118
  let r2 = this.search(t2);
@@ -6148,7 +6160,7 @@ class Ka {
6148
6160
  let _2 = null;
6149
6161
  const S2 = this.getBoundingCoords();
6150
6162
  if (!S2) return this;
6151
- 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;
6163
+ 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;
6152
6164
  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) => {
6153
6165
  if ((a2 ? t3.colEnd < e2.colStart : t3.rowEnd < e2.rowStart) && !x2) return;
6154
6166
  const r3 = sl(e2, t3, a2 ? g.Column : g.Row), o2 = t3.group;
@@ -6182,10 +6194,10 @@ class Ka {
6182
6194
  let t3 = true;
6183
6195
  if (m2 > 0 && (t3 = a2 ? e2.rowStart > S2.rowStart || e2.rowEnd < S2.rowEnd : e2.colStart > S2.colStart || e2.colEnd < S2.colEnd), t3) {
6184
6196
  const t4 = Xa(_2, c.unionRanges(S2, _2), a2 ? 0 : 1, a2 ? 1 : 0);
6185
- T2 && (L2 = B2._mergeNodes(t4, false));
6197
+ N2 && (L2 = B2._mergeNodes(t4, false));
6186
6198
  }
6187
6199
  }
6188
- 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;
6200
+ 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;
6189
6201
  }
6190
6202
  insertNonOverlapping(t2, e2) {
6191
6203
  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;
@@ -6342,7 +6354,7 @@ class Ka {
6342
6354
  }
6343
6355
  _copy(t2, e2) {
6344
6356
  let n2 = t2.rTree.all();
6345
- const r2 = new qa(this._options?.maxNodeEntries);
6357
+ const r2 = new Ja(this._options?.maxNodeEntries);
6346
6358
  return e2 && (n2 = n2.concat(e2)), n2.length > 0 && r2.load(n2), { refCount: 1, rTree: r2 };
6347
6359
  }
6348
6360
  _updateNodes(t2, e2, n2) {
@@ -6927,8 +6939,8 @@ class vl {
6927
6939
  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));
6928
6940
  }
6929
6941
  if (!s2) return ia;
6930
- r2 || d2 !== u2 || (r2 = true), Nl.bounds.min = d2, Nl.bounds.max = u2, Nl.reverse = p2, Nl.processSkip = a2, Nl.reuseResult = Al;
6931
- let _2 = this._major.entries(Nl), S2 = Tl();
6942
+ r2 || d2 !== u2 || (r2 = true), Tl.bounds.min = d2, Tl.bounds.max = u2, Tl.reverse = p2, Tl.processSkip = a2, Tl.reuseResult = Al;
6943
+ let _2 = this._major.entries(Tl), S2 = Nl();
6932
6944
  const w2 = (t3) => {
6933
6945
  if (!t3.nextActive) return;
6934
6946
  const e3 = (e4) => {
@@ -6968,7 +6980,7 @@ class vl {
6968
6980
  for (; S2; ) {
6969
6981
  let a3 = null;
6970
6982
  if (s3) {
6971
- let e4 = n3 ? Tl() : S2;
6983
+ let e4 = n3 ? Nl() : S2;
6972
6984
  if (a3 = y2(e4), a3) {
6973
6985
  n3 ? (e4.prevMajorCursor = S2, S2.nextMajorCursor = e4, S2 = e4) : n3 = S2, o3 = p2 ? Math.max(o3, S2.nextMinorIndex) : Math.min(o3, S2.nextMinorIndex);
6974
6986
  const r4 = S2.minorIndex;
@@ -7066,8 +7078,8 @@ class vl {
7066
7078
  const e3 = t2[_2], n3 = e3[0], r3 = e3[1], o3 = new _a(p2);
7067
7079
  m2(o3, r3, n3);
7068
7080
  }, w2 = this._major;
7069
- Nl.bounds.min = e2, Nl.bounds.max = n2, Nl.reverse = false, Nl.processSkip = null, Nl.reuseResult = Al;
7070
- const y2 = w2.entries(Nl);
7081
+ Tl.bounds.min = e2, Tl.bounds.max = n2, Tl.reverse = false, Tl.processSkip = null, Tl.reuseResult = Al;
7082
+ const y2 = w2.entries(Tl);
7071
7083
  let E2 = y2.next();
7072
7084
  for (; !E2.done; ) {
7073
7085
  const e3 = E2.value, n3 = e3[0];
@@ -7113,8 +7125,8 @@ class vl {
7113
7125
  let f2 = false, p2 = 0;
7114
7126
  const _2 = this._major;
7115
7127
  if (l2 <= g2 && h2 >= m2) {
7116
- Nl.bounds.min = i2, Nl.bounds.max = a2;
7117
- const t3 = _2.entries(Nl);
7128
+ Tl.bounds.min = i2, Tl.bounds.max = a2;
7129
+ const t3 = _2.entries(Tl);
7118
7130
  let e3 = t3.next();
7119
7131
  for (; !e3.done; ) {
7120
7132
  p2 -= e3.value[1].getCount(), e3 = t3.next();
@@ -7122,8 +7134,8 @@ class vl {
7122
7134
  return _2.delete(i2, a2 - i2 + 1), this._count += p2, this._dataCoords = null, 0 !== p2;
7123
7135
  }
7124
7136
  const S2 = [], w2 = this._isShared, y2 = [];
7125
- Nl.bounds.min = i2, Nl.bounds.max = a2, Ml.reverse = false, Ml.processSkip = null, Ml.reuseResult = Al;
7126
- const E2 = _2.entries(Nl);
7137
+ Tl.bounds.min = i2, Tl.bounds.max = a2, Ml.reverse = false, Ml.processSkip = null, Ml.reuseResult = Al;
7138
+ const E2 = _2.entries(Tl);
7127
7139
  let C2 = E2.next();
7128
7140
  for (; !C2.done; ) {
7129
7141
  const t3 = C2.value, e3 = t3[0];
@@ -7166,10 +7178,10 @@ class vl {
7166
7178
  if (!o2 && (C2 *= -1, c.isRangeWithinRange(f2, t2))) return this.clear(), true;
7167
7179
  let b2 = 0;
7168
7180
  const v2 = this._major, x2 = [];
7169
- 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) {
7181
+ 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) {
7170
7182
  if (!o2) {
7171
- Nl.bounds.max = l2;
7172
- const t4 = v2.entries(Nl);
7183
+ Tl.bounds.max = l2;
7184
+ const t4 = v2.entries(Tl);
7173
7185
  let e3 = t4.next();
7174
7186
  for (; !e3.done; ) {
7175
7187
  b2 -= e3.value[1].getCount(), e3 = t4.next();
@@ -7181,9 +7193,9 @@ class vl {
7181
7193
  }
7182
7194
  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;
7183
7195
  o2 || (A2 = Number.MAX_SAFE_INTEGER, M2 = Number.MIN_SAFE_INTEGER);
7184
- let N2 = Number.MAX_SAFE_INTEGER;
7185
- r2 && (N2 = s2 ? r2.colEnd : r2.rowEnd);
7186
- const T2 = /* @__PURE__ */ new Set(), F2 = E2 ? /* @__PURE__ */ new Map() : null, k2 = [], O2 = v2.entries(Nl), D2 = { bounds: { min: g2, max: m2 } };
7196
+ let T2 = Number.MAX_SAFE_INTEGER;
7197
+ r2 && (T2 = s2 ? r2.colEnd : r2.rowEnd);
7198
+ const N2 = /* @__PURE__ */ new Set(), F2 = E2 ? /* @__PURE__ */ new Map() : null, k2 = [], O2 = v2.entries(Tl), D2 = { bounds: { min: g2, max: m2 } };
7187
7199
  let B2 = O2.next();
7188
7200
  for (; !B2.done; ) {
7189
7201
  const t3 = B2.value, e3 = t3[0], n3 = t3[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
@@ -7195,10 +7207,10 @@ class vl {
7195
7207
  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 });
7196
7208
  }), n3.delete(g2, m2 - g2 + 1)) : n3.shift(g2, C2);
7197
7209
  const r4 = n3.getCount();
7198
- if (0 === r4) T2.add(e3), A2 = Math.min(A2, s3), M2 = Math.max(M2, o3);
7210
+ if (0 === r4) N2.add(e3), A2 = Math.min(A2, s3), M2 = Math.max(M2, o3);
7199
7211
  else {
7200
7212
  const t5 = n3.getCoords();
7201
- if (A2 = Math.min(A2, t5.min), M2 = Math.max(M2, t5.max), M2 > N2) throw new d();
7213
+ if (A2 = Math.min(A2, t5.min), M2 = Math.max(M2, t5.max), M2 > T2) throw new d();
7202
7214
  }
7203
7215
  b2 += r4 - t4, x2.push([e3, n3]);
7204
7216
  }
@@ -7209,10 +7221,10 @@ class vl {
7209
7221
  for (let t3 = 0; t3 < k2.length; t3++) {
7210
7222
  const e3 = k2[t3], n3 = e3.majorIndex, r3 = e3.run;
7211
7223
  let o3 = F2.get(n3);
7212
- 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), T2 && T2.delete(n3);
7224
+ 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);
7213
7225
  }
7214
- if (this._updateMajorSpan(x2, P2), T2 && T2.size > 0) {
7215
- const t3 = Array.from(T2.values()), e3 = Rs(t3);
7226
+ if (this._updateMajorSpan(x2, P2), N2 && N2.size > 0) {
7227
+ const t3 = Array.from(N2.values()), e3 = Rs(t3);
7216
7228
  for (let t4 = 0; t4 < e3.length; t4++) {
7217
7229
  const n4 = e3[t4];
7218
7230
  v2.delete(n4.min, n4.max - n4.min + 1);
@@ -7301,7 +7313,7 @@ class vl {
7301
7313
  vl || (vl = {});
7302
7314
  const xl = 12;
7303
7315
  Object.seal({ done: false, value: null });
7304
- 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 });
7316
+ 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 });
7305
7317
  class Fl {
7306
7318
  constructor(t2) {
7307
7319
  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");
@@ -7329,7 +7341,7 @@ class Fl {
7329
7341
  case Bl:
7330
7342
  return !!r2;
7331
7343
  case zl:
7332
- case Wl:
7344
+ case Hl:
7333
7345
  return this._cv(n2, o2 ? Number(r2) : r2);
7334
7346
  case Ll:
7335
7347
  return this._vi64[o2 ? t2 : r2];
@@ -7341,14 +7353,14 @@ class Fl {
7341
7353
  return Number.MAX_SAFE_INTEGER;
7342
7354
  case Gl:
7343
7355
  return Number.MIN_SAFE_INTEGER;
7344
- case Hl:
7356
+ case Wl:
7345
7357
  return 1 / 0;
7346
7358
  case Vl:
7347
7359
  return -1 / 0;
7348
7360
  case Ul:
7349
7361
  return null;
7350
- case Jl:
7351
7362
  case ql:
7363
+ case Jl:
7352
7364
  return;
7353
7365
  }
7354
7366
  return this._cv(n2, o2 ? Number(r2) : r2);
@@ -7408,7 +7420,7 @@ class Fl {
7408
7420
  u2[n3] = r3;
7409
7421
  break;
7410
7422
  case zl:
7411
- case Wl:
7423
+ case Hl:
7412
7424
  d2[n3] = BigInt(e2?.(y2, r3) ?? 0);
7413
7425
  break;
7414
7426
  default:
@@ -7436,7 +7448,7 @@ class Fl {
7436
7448
  _2[r3] = n3, f2[n3] = o3, n3++;
7437
7449
  break;
7438
7450
  case zl:
7439
- case Wl:
7451
+ case Hl:
7440
7452
  d2[r3] = e2?.(y2, o3) ?? 0;
7441
7453
  break;
7442
7454
  default:
@@ -7447,12 +7459,12 @@ class Fl {
7447
7459
  return new Fl({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
7448
7460
  }
7449
7461
  }
7450
- 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) => {
7462
+ const kl = 0.1, Ol = 1, Dl = 2, Bl = 3, Ll = 4, Pl = 5, zl = 6, Hl = 7, Wl = 8, Vl = 9, $l = 10, jl = 11, Gl = 12, Ul = 13, ql = 14, Jl = 127, Kl = { Undefined: ql }, Xl = (t2, e2) => {
7451
7463
  switch (typeof t2) {
7452
7464
  case "number":
7453
7465
  const n2 = t2;
7454
7466
  if (Number.isNaN(n2)) return $l;
7455
- if (n2 === 1 / 0) return Hl;
7467
+ if (n2 === 1 / 0) return Wl;
7456
7468
  if (n2 === -1 / 0) return Vl;
7457
7469
  if (Object.is(n2, -0)) return Dl;
7458
7470
  if (n2 === Number.MAX_SAFE_INTEGER) return jl;
@@ -7465,20 +7477,20 @@ const kl = 0.1, Ol = 1, Dl = 2, Bl = 3, Ll = 4, Pl = 5, zl = 6, Wl = 7, Hl = 8,
7465
7477
  return Bl;
7466
7478
  case "object":
7467
7479
  if (null === t2) return Ul;
7468
- if (t2 instanceof Error) return Wl;
7469
- if (!e2) return ql;
7480
+ if (t2 instanceof Error) return Hl;
7481
+ if (!e2) return Jl;
7470
7482
  const r2 = e2(t2);
7471
7483
  if (r2 < 128 || r2 > 255) throw new Error("Custom type must be between 128 and 255");
7472
7484
  return r2;
7473
7485
  case "bigint":
7474
7486
  return Ll;
7475
7487
  case "undefined":
7476
- return Jl;
7488
+ return ql;
7477
7489
  case "symbol":
7478
7490
  case "function":
7479
- return ql;
7491
+ return Jl;
7480
7492
  }
7481
- return ql;
7493
+ return Jl;
7482
7494
  }, Yl = (t2) => {
7483
7495
  if (!t2 || t2.length <= 1) return false;
7484
7496
  if (2 === t2.length) return c.isRangesIntersect(t2[0], t2[1]);
@@ -7756,28 +7768,28 @@ class oc {
7756
7768
  const t2 = { ...M2 };
7757
7769
  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 } });
7758
7770
  } else A2 = g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: M2, reuseResult: false });
7759
- 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);
7771
+ 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);
7760
7772
  let B2, L2 = D2.next();
7761
7773
  for (; !L2.done; ) {
7762
7774
  const t2 = L2.value;
7763
7775
  let e2 = t2[1], r3 = t2[3];
7764
7776
  const s3 = t2[0], i3 = t2[2], a3 = s3 ? s3.colIndex : i3.colIndex + F2, l3 = s3 ? s3.rowIndex : i3.rowIndex + k2;
7765
7777
  let c2, u3;
7766
- 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);
7778
+ 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);
7767
7779
  const g3 = I2 ? a3 : l3, m3 = I2 ? l3 : a3;
7768
7780
  O2.addValue(g3, m3, u3), L2 = D2.next();
7769
7781
  }
7770
7782
  if (C2 && y2 > S2 || E2 > w2) {
7771
7783
  const t2 = this._values.clone();
7772
7784
  if (this._applyBuilder(t2, O2), y2 > S2) {
7773
- const e2 = hl(N2 + S2, T2, N2 + y2 - 1, T2 + E2 - 1, I2), n2 = Sl(C2, e2, I2);
7785
+ const e2 = hl(T2 + S2, N2, T2 + y2 - 1, N2 + E2 - 1, I2), n2 = Sl(C2, e2, I2);
7774
7786
  t2.setValues(n2.tuples);
7775
7787
  }
7776
7788
  if (E2 > w2) {
7777
- const e2 = hl(N2, T2 + w2, N2 + y2 - 1, T2 + E2 - 1, I2), n2 = Sl(C2, e2, I2);
7789
+ const e2 = hl(T2, N2 + w2, T2 + y2 - 1, N2 + E2 - 1, I2), n2 = Sl(C2, e2, I2);
7778
7790
  t2.setValues(n2.tuples);
7779
7791
  }
7780
- B2 = new oc(t2, { colStart: N2, rowStart: T2, colEnd: N2 + y2 - 1, rowEnd: T2 + E2 - 1 }, this._type);
7792
+ B2 = new oc(t2, { colStart: T2, rowStart: N2, colEnd: T2 + y2 - 1, rowEnd: N2 + E2 - 1 }, this._type);
7781
7793
  } else B2 = this._cloneFromBuilder(O2, s2, y2, E2);
7782
7794
  return B2;
7783
7795
  }
@@ -8139,9 +8151,9 @@ const sc = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
8139
8151
  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);
8140
8152
  n2.setValues(a2.tuples);
8141
8153
  return new oc(n2, l2, o2, !r2);
8142
- }, 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);
8143
- let Tc, Fc;
8144
- const kc = (t2) => (Tc === t2 || (Fc = "" + (t2 + 1), Tc = t2), Fc);
8154
+ }, 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);
8155
+ let Nc, Fc;
8156
+ const kc = (t2) => (Nc === t2 || (Fc = "" + (t2 + 1), Nc = t2), Fc);
8145
8157
  let Oc, Dc;
8146
8158
  const Bc = (t2) => {
8147
8159
  if (Oc === t2) return Dc;
@@ -8156,11 +8168,11 @@ const Bc = (t2) => {
8156
8168
  if (!t2) return Ac;
8157
8169
  const e2 = Bc(t2.colIndex), n2 = kc(t2.rowIndex);
8158
8170
  return (t2.$colIndex ? "$" + e2 : e2) + (t2.$rowIndex ? "$" + n2 : n2);
8159
- }, Wc = (t2, e2) => {
8171
+ }, Hc = (t2, e2) => {
8160
8172
  let n2 = t2 ?? e2;
8161
8173
  var r2;
8162
8174
  return n2 && (n2 = Fo(n2), n2 = n2.replace(/'/g, "''"), r2 = n2, Lc.test(r2) && (n2 = ko(n2))), n2;
8163
- }, Hc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Ac, Vc = (t2, e2, n2 = Pc) => {
8175
+ }, Wc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Ac, Vc = (t2, e2, n2 = Pc) => {
8164
8176
  if (!t2) return null;
8165
8177
  const r2 = t2.colStart, o2 = t2.rowStart, s2 = t2.colEnd, i2 = t2.rowEnd;
8166
8178
  if (r2 === s2 && o2 === i2) return n2({ colIndex: r2, rowIndex: o2 });
@@ -8175,8 +8187,8 @@ const Bc = (t2) => {
8175
8187
  const r2 = t2.colIndex, o2 = t2.rowIndex, s2 = r2 === Number.MIN_SAFE_INTEGER;
8176
8188
  let i2 = null;
8177
8189
  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) {
8178
- const n3 = Wc(t2.sheetName, e2);
8179
- i2 = Hc(n3, i2);
8190
+ const n3 = Hc(t2.sheetName, e2);
8191
+ i2 = Wc(n3, i2);
8180
8192
  }
8181
8193
  return i2;
8182
8194
  }, jc = (t2, e2, n2 = zc) => {
@@ -8190,8 +8202,8 @@ const Bc = (t2) => {
8190
8202
  let a2 = null;
8191
8203
  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;
8192
8204
  }, Gc = (t2, e2, n2 = zc) => {
8193
- const r2 = jc(t2, e2, n2), o2 = Wc(t2?.sheetName, e2?.sheetName);
8194
- return Hc(o2, r2);
8205
+ const r2 = jc(t2, e2, n2), o2 = Hc(t2?.sheetName, e2?.sheetName);
8206
+ return Wc(o2, r2);
8195
8207
  }, Uc = (t2, e2 = false) => {
8196
8208
  if (!t2) return null;
8197
8209
  let n2 = 0, r2 = 0, o2 = false, s2 = false;
@@ -8214,7 +8226,7 @@ const Bc = (t2) => {
8214
8226
  }
8215
8227
  const a2 = {};
8216
8228
  return e2 || 0 !== r2 && 0 !== n2 ? (n2 > 0 && (a2.colIndex = n2 - 1, o2 && (a2.$colIndex = o2)), r2 > 0 && (a2.rowIndex = r2 - 1, (s2 || e2 && o2) && (a2.$rowIndex = s2 || e2 && o2)), a2) : null;
8217
- }, Jc = (t2, e2 = ac, n2 = false) => {
8229
+ }, qc = (t2, e2 = ac, n2 = false) => {
8218
8230
  if (!t2) return null;
8219
8231
  let r2 = t2.toUpperCase();
8220
8232
  const o2 = oh(r2, n2);
@@ -8230,7 +8242,7 @@ const Bc = (t2) => {
8230
8242
  }
8231
8243
  const a2 = {};
8232
8244
  return s2 && (void 0 !== s2.colIndex && (a2.colStart = s2.colIndex), void 0 !== s2.rowIndex && (a2.rowStart = s2.rowIndex), void 0 !== s2.$colIndex && (a2.$colStart = s2.$colIndex), void 0 !== s2.$rowIndex && (a2.$rowStart = s2.$rowIndex), void 0 !== a2?.colStart && a2?.colStart > e2?.colEnd) ? null : (i2 && (void 0 !== i2.colIndex && (a2.colEnd = i2.colIndex), void 0 !== i2.rowIndex && (a2.rowEnd = i2.rowIndex), void 0 !== i2.$colIndex && (a2.$colEnd = i2.$colIndex), void 0 !== i2.$rowIndex && (a2.$rowEnd = i2.$rowIndex)), { ...e2, ...a2 });
8233
- }, qc = (t2, e2, n2 = false) => {
8245
+ }, Jc = (t2, e2, n2 = false) => {
8234
8246
  const r2 = ((t3) => {
8235
8247
  const e3 = t3.lastIndexOf("!");
8236
8248
  if (-1 === e3) return null;
@@ -8239,9 +8251,9 @@ const Bc = (t2) => {
8239
8251
  })(t2);
8240
8252
  let o2;
8241
8253
  if (r2) {
8242
- if (o2 = Jc(r2[1], e2, n2), !o2) return null;
8254
+ if (o2 = qc(r2[1], e2, n2), !o2) return null;
8243
8255
  o2.sheetName = r2[0];
8244
- } else o2 = Jc(t2, e2, n2);
8256
+ } else o2 = qc(t2, e2, n2);
8245
8257
  return o2 || null;
8246
8258
  }, Kc = (t2, e2, n2 = jc, r2 = zc) => {
8247
8259
  if (!t2 || 0 === t2.length) return null;
@@ -8255,7 +8267,7 @@ const Bc = (t2) => {
8255
8267
  }, Xc = (t2, e2, n2 = Gc, r2 = zc) => {
8256
8268
  const o2 = Kc(t2, e2, n2, r2);
8257
8269
  return o2 ? o2.join(",") : Ac;
8258
- }, Yc = (t2, e2, n2, r2 = qc, o2, s2 = false) => {
8270
+ }, Yc = (t2, e2, n2, r2 = Jc, o2, s2 = false) => {
8259
8271
  if (null !== e2) {
8260
8272
  if ("string" == typeof e2) {
8261
8273
  const i2 = r2(e2, n2, s2);
@@ -8282,7 +8294,7 @@ const Bc = (t2) => {
8282
8294
  }
8283
8295
  } else t2.push(null);
8284
8296
  } else t2.push(null);
8285
- }, Qc = (t2, e2, n2 = qc, r2, o2 = false) => {
8297
+ }, Qc = (t2, e2, n2 = Jc, r2, o2 = false) => {
8286
8298
  if (!t2) return [e2];
8287
8299
  let s2;
8288
8300
  s2 = "string" == typeof t2 ? Oo(t2) : t2.isICellRanges ? t2.getCoords() : Array.isArray(t2) ? t2 : [t2];
@@ -8408,7 +8420,7 @@ const Bc = (t2) => {
8408
8420
  r2 !== Number.MIN_SAFE_INTEGER && (t2.$rowIndex ? n2 += `R${r2 + 1}` : n2 += 0 === r2 ? "R" : `R[${r2 + 1}]`);
8409
8421
  let o2 = "";
8410
8422
  const s2 = t2.colIndex;
8411
- 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;
8423
+ 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;
8412
8424
  }, uh = (t2, e2, n2) => {
8413
8425
  let r2 = "";
8414
8426
  const o2 = t2.colIndex;
@@ -8608,9 +8620,9 @@ class Ih {
8608
8620
  const Rh = Object.freeze({ break: true });
8609
8621
  var Ah;
8610
8622
  (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" };
8611
- 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 });
8623
+ 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 });
8612
8624
  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 });
8613
- 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.";
8625
+ 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.", 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.`, qh = "'setValue' expects a single value; when working with an array use 'setValue'.", Jh = "Multiple selection ranges can not be copied.", Kh = "Unable to determine source.", Xh = "When pasting before or after the cut area both areas must align.";
8614
8626
  var Yh, Qh;
8615
8627
  (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" };
8616
8628
  class Zh {
@@ -8666,10 +8678,10 @@ const td = (t2) => {
8666
8678
  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;
8667
8679
  }
8668
8680
  return '"' + e2 + '"';
8669
- }, 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();
8670
- 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);
8671
- 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();
8672
- 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);
8681
+ }, 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();
8682
+ 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);
8683
+ const Fd = "xx-small", kd = "x-small", Od = "small", Dd = "medium", Bd = "large", Ld = "x-large", Pd = "xx-large", zd = "xxx-large", Hd = "smaller", Wd = "larger", Vd = "math", $d = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), jd = /* @__PURE__ */ new Map();
8684
+ 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(Hd), (t2) => 0.9 * t2), jd.set(o.textToKey(Wd), (t2) => 1.1 * t2), jd.set(o.textToKey(Vd), (t2) => t2);
8673
8685
  const Gd = (t2, e2 = 11, n2 = "pt") => {
8674
8686
  if (!t2) return null;
8675
8687
  let r2 = e2;
@@ -8691,12 +8703,12 @@ const Gd = (t2, e2 = 11, n2 = "pt") => {
8691
8703
  return isNaN(r2) ? null : r2;
8692
8704
  }, Ud = /* @__PURE__ */ new Map();
8693
8705
  Ud.set(Ds.BuiltInSheetPattern.None, { description: "None", cssKey: "none" }), Ud.set(Ds.BuiltInSheetPattern.Solid, { description: "Solid", cssKey: "solid" }), Ud.set(Ds.BuiltInSheetPattern.DarkGray, { description: "75% gray", cssKey: "gray-75" }), Ud.set(Ds.BuiltInSheetPattern.MediumGray, { description: "50% gray", cssKey: "gray-50" }), Ud.set(Ds.BuiltInSheetPattern.LightGray, { description: "25% gray", cssKey: "gray-25" }), Ud.set(Ds.BuiltInSheetPattern.Gray125, { description: "12.5% Gray", cssKey: "gray-125" }), Ud.set(Ds.BuiltInSheetPattern.Gray0625, { description: "6.25% Gray", cssKey: "gray-0625" }), Ud.set(Ds.BuiltInSheetPattern.DarkHorizontal, { description: "Horizontal Strip", cssKey: "horz-stripe" }), Ud.set(Ds.BuiltInSheetPattern.DarkVertical, { description: "Vertical Strip", cssKey: "vert-stripe" }), Ud.set(Ds.BuiltInSheetPattern.DarkDown, { description: "Reverse Diagonal Stripe", cssKey: "reverse-diag-stripe" }), Ud.set(Ds.BuiltInSheetPattern.DarkUp, { description: "Diagonal Strip", cssKey: "diag-stripe" }), Ud.set(Ds.BuiltInSheetPattern.DarkGrid, { description: "Diagonal Crosshatch", cssKey: "diag-cross" }), Ud.set(Ds.BuiltInSheetPattern.DarkTrellis, { description: "Thick Diagonal Crosshatch", cssKey: "thick-diag-cross" }), Ud.set(Ds.BuiltInSheetPattern.LightHorizontal, { description: "Thin Horizontal Stripe", cssKey: "thin-horz-stripe" }), Ud.set(Ds.BuiltInSheetPattern.LightVertical, { description: "Thin Vertical Stripe", cssKey: "thin-vert-stripe" }), Ud.set(Ds.BuiltInSheetPattern.LightDown, { description: "Thin Reverse Diagonal Stripe", cssKey: "thin-reverse-diag-stripe" }), Ud.set(Ds.BuiltInSheetPattern.LightUp, { description: "Thin Diagonal Stripe", cssKey: "thin-diag-stripe" }), Ud.set(Ds.BuiltInSheetPattern.LightGrid, { description: "Thin Horizontal Cross", cssKey: "thin-horz-cross" }), Ud.set(Ds.BuiltInSheetPattern.LightTrellis, { description: "Thin Diagonal Cross", cssKey: "thin-diag-cross" });
8694
- let Jd = "";
8695
- const qd = /* @__PURE__ */ new Map();
8706
+ let qd = "";
8707
+ const Jd = /* @__PURE__ */ new Map();
8696
8708
  Ud.forEach((t2, e2) => {
8697
- Jd.length > 0 && (Jd += "|"), Jd += "\\b" + t2.cssKey + "\\b", qd.set(t2.cssKey, e2);
8709
+ qd.length > 0 && (qd += "|"), qd += "\\b" + t2.cssKey + "\\b", Jd.set(t2.cssKey, e2);
8698
8710
  });
8699
- const Kd = new RegExp(`(\\s*(?:${Jd}))`, "g"), Xd = (t2) => {
8711
+ const Kd = new RegExp(`(\\s*(?:${qd}))`, "g"), Xd = (t2) => {
8700
8712
  if (!t2) return null;
8701
8713
  let e2 = t2.toLowerCase();
8702
8714
  e2 = e2.replace(/;/, "");
@@ -8710,7 +8722,7 @@ const Kd = new RegExp(`(\\s*(?:${Jd}))`, "g"), Xd = (t2) => {
8710
8722
  })(n2[0])), e2 = e2.trim();
8711
8723
  const o2 = e2 ? e2.trim() : null;
8712
8724
  if (!r2 && !o2) return null;
8713
- return { patternType: qd.get(r2 ?? "solid"), foreground: o2 ?? null };
8725
+ return { patternType: Jd.get(r2 ?? "solid"), foreground: o2 ?? null };
8714
8726
  }, Yd = (t2, e2 = false, n2 = null) => {
8715
8727
  if (!t2 || !t2.getStops() || t2.getStops().length < 1) return null;
8716
8728
  if (1 === t2.getStops().length) return ed(t2.getStops()[0].getColor(), e2);
@@ -8810,7 +8822,7 @@ const Ru = (t2) => {
8810
8822
  })), !t2) return null;
8811
8823
  const n2 = {};
8812
8824
  return t2.style && (n2.style = t2.style), t2.color && (n2.color = t2.color), n2;
8813
- }, properties: { color: Au } }, Nu = { shorthand: (t2, e2) => {
8825
+ }, properties: { color: Au } }, Tu = { shorthand: (t2, e2) => {
8814
8826
  if (t2.isIBorder) return t2.getProperties();
8815
8827
  if ("string" == typeof t2) {
8816
8828
  const n2 = cu(t2, (t3) => {
@@ -8823,7 +8835,7 @@ const Ru = (t2) => {
8823
8835
  return { left: n2, right: n2, top: n2, bottom: n2, horizontal: null, vertical: null, diagonalUp: null, diagonalDown: null };
8824
8836
  }
8825
8837
  return t2;
8826
- }, properties: { top: Mu, left: Mu, right: Mu, bottom: Mu, horizontal: Mu, vertical: Mu, diagonalUp: Mu, diagonalDown: Mu } }, Tu = { shorthand: (t2, e2) => {
8838
+ }, properties: { top: Mu, left: Mu, right: Mu, bottom: Mu, horizontal: Mu, vertical: Mu, diagonalUp: Mu, diagonalDown: Mu } }, Nu = { shorthand: (t2, e2) => {
8827
8839
  if ("string" == typeof t2) {
8828
8840
  let e3 = pi.Styles.lookupDefault(t2);
8829
8841
  return void 0 !== e3 ? e3 : t2;
@@ -8857,7 +8869,7 @@ const Ru = (t2) => {
8857
8869
  let e3 = 400;
8858
8870
  if (e3 = "number" == typeof t3 ? t3 : parseFloat(t3), !isNaN(e3)) return e3;
8859
8871
  if ("string" == typeof t3) {
8860
- const e4 = o.textToKey(t3), n3 = Td.get(e4);
8872
+ const e4 = o.textToKey(t3), n3 = Nd.get(e4);
8861
8873
  if (n3) return n3;
8862
8874
  }
8863
8875
  return e3;
@@ -8889,21 +8901,21 @@ for (let t2 = 0; t2 < Pu.length; t2++) {
8889
8901
  const e2 = Pu[t2]?.shorthand;
8890
8902
  zu.push(e2);
8891
8903
  }
8892
- const Wu = zu.length, Hu = { properties: { font: Fu, fill: { shorthand: (t2, e2) => {
8904
+ const Hu = zu.length, Wu = { properties: { font: Fu, fill: { shorthand: (t2, e2) => {
8893
8905
  t2.isIFill && (t2 = t2.toJSON());
8894
- for (let n2 = 0; n2 < Wu; n2++) {
8906
+ for (let n2 = 0; n2 < Hu; n2++) {
8895
8907
  let r2 = zu[n2](t2, e2);
8896
8908
  if (r2?.type) return r2;
8897
8909
  }
8898
8910
  return t2;
8899
- }, getSubType: (t2) => t2.type === Ds.Type.None ? Ou : t2.type === Ds.Type.Solid ? Du : t2.type === Ds.Type.Gradient ? Bu : t2.type === Ds.Type.Pattern ? Lu : null }, alignment: ku, border: Nu, numberFormat: Tu } }, Vu = { properties: { style: Hu } }, $u = Object.freeze({ displayText: "", conditionalColor: null, repeatChars: o.EmptyArray, spacingChars: o.EmptyArray, repeatPlaceholder: null, formattedRuns: Object.freeze({ runs: o.EmptyArray, length: 0, width: 0, lastRepeatIndex: -1 }), canWrap: false, asDate: null, isDateFormat: false, isTimeFormat: false, isDate1904: false }), ju = (e2, n2, r2, s2, i2, a2 = false) => {
8911
+ }, getSubType: (t2) => t2.type === Ds.Type.None ? Ou : t2.type === Ds.Type.Solid ? Du : t2.type === Ds.Type.Gradient ? Bu : t2.type === Ds.Type.Pattern ? Lu : null }, alignment: ku, border: Tu, numberFormat: Nu } }, Vu = { properties: { style: Wu } }, $u = Object.freeze({ displayText: "", conditionalColor: null, repeatChars: o.EmptyArray, spacingChars: o.EmptyArray, repeatPlaceholder: null, formattedRuns: Object.freeze({ runs: o.EmptyArray, length: 0, width: 0, lastRepeatIndex: -1 }), canWrap: false, asDate: null, isDateFormat: false, isTimeFormat: false, isDate1904: false }), ju = (e2, n2, r2, s2, i2, a2 = false) => {
8900
8912
  if (null == e2) return $u;
8901
8913
  let l2 = "", c2 = null, h2 = null, d2 = null;
8902
8914
  if (r2 === t.Error) l2 = e2.getLabel();
8903
8915
  else if (r2 === t.RichData) l2 = "(Rich Object)";
8904
8916
  else if (r2 === t.Boolean) l2 = e2 ? "TRUE" : "FALSE";
8905
8917
  else if (s2) try {
8906
- l2 = Nr(s2, e2, { date1904: a2, spacingCharacter: "", digitCharacter: "", onRepeatChar: (t2, e3) => {
8918
+ l2 = Tr(s2, e2, { date1904: a2, spacingCharacter: "", digitCharacter: "", onRepeatChar: (t2, e3) => {
8907
8919
  h2 || (h2 = []), h2.push({ offset: t2, char: e3 });
8908
8920
  }, onSpacingChar: (t2, e3) => {
8909
8921
  d2 || (d2 = []), d2.push({ offset: t2, char: e3 });
@@ -8955,7 +8967,7 @@ const Wu = zu.length, Hu = { properties: { font: Fu, fill: { shorthand: (t2, e2)
8955
8967
  }
8956
8968
  const b2 = Ur(s2, e2), v2 = { displayText: l2 ?? "", conditionalColor: b2 ? i2(b2) : null, repeatChars: h2 ?? o.EmptyArray, spacingChars: d2 ?? o.EmptyArray, repeatPlaceholder: c2, formattedRuns: f2, canWrap: y2, asDate: m2, isDateFormat: u2, isTimeFormat: g2, isDate1904: a2 };
8957
8969
  return Object.freeze(v2);
8958
- }, Gu = Object.freeze({ fallbacks: o.EmptyArray, weight: 400, style: Ko.Style.Normal, fill: Ls.Scheme.Tx1, letterSpacing: null, underline: Ko.UnderlineStyle.None, strike: false, scheme: Ko.Scheme.Minor, verticalAlign: Ko.VerticalAlignment.Baseline, shadow: false, outline: false, extend: false }), Uu = Object.freeze({ style: Qs.StrokeStyle.None, color: Ls.Scheme.Tx1 }), Ju = Object.freeze({ [Qs.Edge.Top]: Uu, [Qs.Edge.Left]: Uu, [Qs.Edge.Bottom]: Uu, [Qs.Edge.Right]: Uu, [Qs.Edge.Horizontal]: Uu, [Qs.Edge.Vertical]: Uu, [Qs.Edge.DiagonalUp]: Uu, [Qs.Edge.DiagonalDown]: Uu }), qu = Object.freeze({ horizontal: yo.HorizontalAlignment.General, vertical: yo.VerticalAlignment.Bottom, indent: 0, relativeIndent: 0, overflow: yo.Overflow.Visible, rotation: 0, stacked: false, quotePrefix: false, justifyLastLine: false, readingOrder: yo.ReadingDirection.Auto, readingDirection: yo.ReadingDirection.Auto }), Ku = Object.freeze({ locked: false, formulaHidden: false }), Xu = Object.freeze({ fill: { type: Ds.Type.None }, numberFormat: "General", alignment: qu, font: Gu, border: Ju, protection: Ku, quotePrefix: false, namedStyle: null }), Yu = (() => {
8970
+ }, Gu = Object.freeze({ fallbacks: o.EmptyArray, weight: 400, style: Ko.Style.Normal, fill: Ls.Scheme.Tx1, letterSpacing: null, underline: Ko.UnderlineStyle.None, strike: false, scheme: Ko.Scheme.Minor, verticalAlign: Ko.VerticalAlignment.Baseline, shadow: false, outline: false, extend: false }), Uu = Object.freeze({ style: Qs.StrokeStyle.None, color: Ls.Scheme.Tx1 }), qu = Object.freeze({ [Qs.Edge.Top]: Uu, [Qs.Edge.Left]: Uu, [Qs.Edge.Bottom]: Uu, [Qs.Edge.Right]: Uu, [Qs.Edge.Horizontal]: Uu, [Qs.Edge.Vertical]: Uu, [Qs.Edge.DiagonalUp]: Uu, [Qs.Edge.DiagonalDown]: Uu }), Ju = Object.freeze({ horizontal: yo.HorizontalAlignment.General, vertical: yo.VerticalAlignment.Bottom, indent: 0, relativeIndent: 0, overflow: yo.Overflow.Visible, rotation: 0, stacked: false, quotePrefix: false, justifyLastLine: false, readingOrder: yo.ReadingDirection.Auto, readingDirection: yo.ReadingDirection.Auto }), Ku = Object.freeze({ locked: false, formulaHidden: false }), Xu = Object.freeze({ fill: { type: Ds.Type.None }, numberFormat: "General", alignment: Ju, font: Gu, border: qu, protection: Ku, quotePrefix: false, namedStyle: null }), Yu = (() => {
8959
8971
  const t2 = [{ named: Si.BuiltInName.Normal }, { named: Si.BuiltInName.RowLevel }, { named: Si.BuiltInName.ColLevel }, { named: Si.BuiltInName.Comma, numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' }, { named: Si.BuiltInName.Currency, numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' }, { named: Si.BuiltInName.Percent, numberFormat: "0%" }, { named: Si.BuiltInName.Comma0, numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)' }, { named: Si.BuiltInName.Currency0, numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)' }, { named: Si.BuiltInName.Hyperlink, font: { ...Gu, fill: Ls.Scheme.Hlink, underline: Ko.UnderlineStyle.Single } }, { named: Si.BuiltInName.FollowedHyperlink, font: { ...Gu, fill: Ls.Scheme.FolHlink, underline: Ko.UnderlineStyle.Single } }, { named: Si.BuiltInName.Note, fill: "FFFFFFCC", font: { ...Gu, style: Ko.Style.Normal, fill: Ls.Scheme.Tx1 }, border: { left: { style: Qs.StrokeStyle.Thin, color: "FFB2B2B2" }, top: { style: Qs.StrokeStyle.Thin, color: "FFB2B2B2" }, right: { style: Qs.StrokeStyle.Thin, color: "FFB2B2B2" }, bottom: { style: Qs.StrokeStyle.Thin, color: "FFB2B2B2" } } }, { named: Si.BuiltInName.WarningText, font: { ...Gu, fill: "FFFF0000" } }, { named: Si.BuiltInName.Unknown12 }, { named: Si.BuiltInName.Unknown13 }, { named: Si.BuiltInName.Unknown14 }, { named: Si.BuiltInName.Title, font: { ...Gu, size: 18, fill: Ls.Scheme.Tx2 } }, { named: Si.BuiltInName.Heading1, font: { ...Gu, size: 15, weight: "bold", fill: Ls.Scheme.Tx2 }, border: { bottom: { style: Qs.StrokeStyle.Thick, color: Ls.Scheme.Accent1 } } }, { named: Si.BuiltInName.Heading2, font: { ...Gu, size: 13, weight: "bold", fill: Ls.Scheme.Tx2 }, border: { bottom: { style: Qs.StrokeStyle.Thick, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Si.BuiltInName.Heading3, font: { ...Gu, weight: "bold", fill: Ls.Scheme.Tx2 }, border: { bottom: { style: Qs.StrokeStyle.Medium, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Si.BuiltInName.Heading4, font: { weight: "bold", fill: Ls.Scheme.Tx2, ...Gu } }, { named: Si.BuiltInName.Input, fill: "FFFFCC99", font: { ...Gu, fill: "FF3F3F76" }, border: { left: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Si.BuiltInName.Output, fill: "FFF2F2F2", font: { ...Gu, fill: "FF3F3F3F" }, border: { left: { style: Qs.StrokeStyle.Thin, color: "FF3F3F3F" }, top: { style: Qs.StrokeStyle.Thin, color: "FF3F3F3F" }, right: { style: Qs.StrokeStyle.Thin, color: "FF3F3F3F" }, bottom: { style: Qs.StrokeStyle.Thin, color: "FF3F3F3F" } } }, { named: Si.BuiltInName.Calculation, fill: "FFF2F2F2", font: { ...Gu, fill: "FFFA7D00" }, border: { left: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Qs.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Si.BuiltInName.CheckCell, fill: "FFA5A5A5", font: { ...Gu, fill: Ls.Scheme.Bg1 }, border: { left: { style: Qs.StrokeStyle.Double, color: "FF3F3F3F" }, top: { style: Qs.StrokeStyle.Double, color: "FF3F3F3F" }, right: { style: Qs.StrokeStyle.Double, color: "FF3F3F3F" }, bottom: { style: Qs.StrokeStyle.Double, color: "FF3F3F3F" } } }, { named: Si.BuiltInName.LinkedCell, font: { ...Gu, fill: "FFFA7D00" }, border: { bottom: { style: Qs.StrokeStyle.Double, color: "FFFF8001" } } }, { named: Si.BuiltInName.Total, font: { ...Gu, weight: "bold", fill: Ls.Scheme.Tx1 }, border: { top: { style: Qs.StrokeStyle.Thin, color: Ls.Scheme.Accent1 }, bottom: { style: Qs.StrokeStyle.Double, color: Ls.Scheme.Accent1 } } }, { named: Si.BuiltInName.Good, fill: "FFC6EFCE", font: { ...Gu, fill: "FF006100" } }, { named: Si.BuiltInName.Bad, fill: "FFFFC7CE", font: { ...Gu, fill: "FF9C0006" } }, { named: Si.BuiltInName.Neutral, fill: "FFFFEB9C", font: { ...Gu, fill: "FF9C5700" } }, { named: Si.BuiltInName.Accent1 }, { named: Si.BuiltInName.Accent1_20 }, { named: Si.BuiltInName.Accent1_40 }, { named: Si.BuiltInName.Accent1_60 }, { named: Si.BuiltInName.Accent2 }, { named: Si.BuiltInName.Accent2_20 }, { named: Si.BuiltInName.Accent2_40 }, { named: Si.BuiltInName.Accent2_60 }, { named: Si.BuiltInName.Accent3 }, { named: Si.BuiltInName.Accent3_20 }, { named: Si.BuiltInName.Accent3_40 }, { named: Si.BuiltInName.Accent3_60 }, { named: Si.BuiltInName.Accent4 }, { named: Si.BuiltInName.Accent4_20 }, { named: Si.BuiltInName.Accent4_40 }, { named: Si.BuiltInName.Accent4_60 }, { named: Si.BuiltInName.Accent5 }, { named: Si.BuiltInName.Accent5_20 }, { named: Si.BuiltInName.Accent5_40 }, { named: Si.BuiltInName.Accent5_60 }, { named: Si.BuiltInName.Accent6 }, { named: Si.BuiltInName.Accent6_20 }, { named: Si.BuiltInName.Accent6_40 }, { named: Si.BuiltInName.Accent6_60 }, { named: Si.BuiltInName.ExplanatoryText, font: { ...Gu, style: Ko.Style.Italic, fill: "FF7F7F7F" } }];
8960
8972
  for (let e2 = 29; e2 <= 52; e2++) {
8961
8973
  const n2 = (e2 - 29) % 4, r2 = Math.floor((e2 - 29) / 4);
@@ -9592,7 +9604,7 @@ class _g {
9592
9604
  }
9593
9605
  cloneWithUpdate(t2) {
9594
9606
  if (void 0 === t2) return this;
9595
- const e2 = this._c, n2 = this._r, r2 = this._p, o2 = f.resolveTypedUpdates(t2, Hu, e2, r2);
9607
+ const e2 = this._c, n2 = this._r, r2 = this._p, o2 = f.resolveTypedUpdates(t2, Wu, e2, r2);
9596
9608
  return new _g(e2, n2, o2);
9597
9609
  }
9598
9610
  copyTo(t2, e2) {
@@ -9654,7 +9666,7 @@ class _g {
9654
9666
  const y2 = 1 === g2 ? d2[_2] : d2[S2];
9655
9667
  if (g2 > 1 && !pg(y2, d2[S2])) return;
9656
9668
  if (!pg(w2, y2)) return;
9657
- 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);
9669
+ 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);
9658
9670
  return new _g(u2, n2, C2);
9659
9671
  }
9660
9672
  return new _g(u2, n2, this._p);
@@ -9817,14 +9829,14 @@ const bg = new class {
9817
9829
  const v2 = c2.colHeaders, x2 = v2.findOffset.bind(v2), I2 = v2.findIndex.bind(v2);
9818
9830
  let R2 = x2(h2);
9819
9831
  const A2 = R2;
9820
- let M2 = x2(h2 + b2), N2 = M2 - R2, T2 = h2, F2 = h2;
9821
- const k2 = { x: 0, y: 0, width: N2, height: d2?.height ?? 0 };
9832
+ let M2 = x2(h2 + b2), T2 = M2 - R2, N2 = h2, F2 = h2;
9833
+ const k2 = { x: 0, y: 0, width: T2, height: d2?.height ?? 0 };
9822
9834
  const O2 = h2 - h2 + b2;
9823
- let D2 = d2 ? d2.width - N2 : 0, B2 = k2;
9824
- 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);
9835
+ let D2 = d2 ? d2.width - T2 : 0, B2 = k2;
9836
+ 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);
9825
9837
  return { anchorBounds: k2, leftIndex: w2, rightIndex: y2, leftOffset: E2, rightOffset: C2, colSpan: O2, colBounds: B2 };
9826
9838
  };
9827
- class Ng {
9839
+ class Tg {
9828
9840
  constructor(t2, e2) {
9829
9841
  if (this._styles = t2, this._ri = e2, e2?.table) {
9830
9842
  const t3 = e2?.table;
@@ -9853,31 +9865,31 @@ class Ng {
9853
9865
  }
9854
9866
  let i2 = null;
9855
9867
  const a2 = this._table?.getPropertiesAt(t2, e2, n2);
9856
- a2 && (i2 = i2 ? f.resolveTypedUpdates(a2, Hu, s2, i2) : a2), r2 && (i2 = i2 ? f.resolveTypedUpdates(r2, Hu, s2, i2) : r2);
9868
+ a2 && (i2 = i2 ? f.resolveTypedUpdates(a2, Wu, s2, i2) : a2), r2 && (i2 = i2 ? f.resolveTypedUpdates(r2, Wu, s2, i2) : r2);
9857
9869
  const l2 = this._conditionals;
9858
9870
  if (l2) for (let r3 = 0; r3 < l2.length; r3++) {
9859
9871
  const o3 = l2[r3].getPropertiesAt(t2, e2, n2);
9860
- o3 && (i2 = i2 ? f.resolveTypedUpdates(o3, Hu, s2, i2) : o3);
9872
+ o3 && (i2 = i2 ? f.resolveTypedUpdates(o3, Wu, s2, i2) : o3);
9861
9873
  }
9862
- return o2 && (i2 = i2 ? f.resolveTypedUpdates(o2, Hu, s2, i2) : o2), i2;
9874
+ return o2 && (i2 = i2 ? f.resolveTypedUpdates(o2, Wu, s2, i2) : o2), i2;
9863
9875
  }
9864
9876
  cloneWithUpdate(t2) {
9865
9877
  return (this._ri.directStyle ?? this._styles.getNormalRanged()).cloneWithUpdate(t2);
9866
9878
  }
9867
9879
  }
9868
- const Tg = (t2, e2, n2, r2) => {
9880
+ const Ng = (t2, e2, n2, r2) => {
9869
9881
  const o2 = r2.styles;
9870
- return gg(o2, n2 ? new Ng(o2, n2) : null, e2, r2.styleUpdater);
9882
+ return gg(o2, n2 ? new Tg(o2, n2) : null, e2, r2.styleUpdater);
9871
9883
  }, Fg = (e2, n2, r2, s2, i2, a2, l2, c2 = null, h2 = Cg) => {
9872
9884
  if (null === r2) return n2 ? n2.getBestFit() : null;
9873
9885
  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);
9874
9886
  if (v2) return v2;
9875
9887
  let x2 = null, I2 = null;
9876
9888
  const R2 = Rg(e2, n2), A2 = R2.top + R2.bottom + +nm(n2);
9877
- let M2 = false, N2 = false;
9878
- l2 && (N2 = true, (0 !== S2 || C2) && (N2 = false));
9879
- const T2 = N2 ? void 0 : Ig(e2, n2, r2, s2), F2 = R2.left + R2.right + 2;
9880
- if (T2) {
9889
+ let M2 = false, T2 = false;
9890
+ l2 && (T2 = true, (0 !== S2 || C2) && (T2 = false));
9891
+ const N2 = T2 ? void 0 : Ig(e2, n2, r2, s2), F2 = R2.left + R2.right + 2;
9892
+ if (N2) {
9881
9893
  if (e2 === t.Number && "General" === y2 && a2) {
9882
9894
  let t2 = r2, e3 = o.splitNumber(t2), s3 = "";
9883
9895
  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);
@@ -9886,7 +9898,7 @@ const Tg = (t2, e2, n2, r2) => {
9886
9898
  } else {
9887
9899
  let t2 = null;
9888
9900
  C2 && (t2 = { width: Math.max(1, i2 - F2) });
9889
- const e3 = T2.layout(t2);
9901
+ const e3 = N2.layout(t2);
9890
9902
  x2 = e3.bounds.width, I2 = e3.bounds.height;
9891
9903
  }
9892
9904
  if (null !== x2 && (x2 += F2), null !== I2 && (I2 += A2), M2 = e2 === t.String, S2) {
@@ -10032,7 +10044,7 @@ class Og {
10032
10044
  getStyle(t2 = false) {
10033
10045
  if (!t2 && this._styleConditional) return this._styleConditional;
10034
10046
  if (t2 && this._styleSpecific) return this._styleSpecific;
10035
- const e2 = Tg(0, c.cellToRange(this._coords), this._ri, this._options);
10047
+ const e2 = Ng(0, c.cellToRange(this._coords), this._ri, this._options);
10036
10048
  return t2 ? this._styleSpecific = e2 : this._styleConditional = e2, e2;
10037
10049
  }
10038
10050
  createTemporaryCell(t2) {
@@ -10041,7 +10053,7 @@ class Og {
10041
10053
  const n2 = vg(t2, this._options);
10042
10054
  let r2 = this._ri;
10043
10055
  if (void 0 !== n2.style) {
10044
- 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);
10056
+ 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);
10045
10057
  r2 = { ...r2, directStyle: a2 };
10046
10058
  }
10047
10059
  let o2 = this._t, s2 = this._v;
@@ -10077,14 +10089,14 @@ class Og {
10077
10089
  const s3 = parseFloat(e3), a2 = s3 % 1 != 0, l2 = s3 >= 1;
10078
10090
  if (s3 < 0) return o.castToString(e3);
10079
10091
  if (!n2 || r4 || a2) if (!r4 || n2 || l2) {
10080
- const e4 = Tr("Short Date", t2, i2), n3 = Tr("Long Time", t2, i2);
10092
+ const e4 = Nr("Short Date", t2, i2), n3 = Nr("Long Time", t2, i2);
10081
10093
  if (e4 && n3) return e4.fmt + " " + n3.fmt;
10082
10094
  } else {
10083
- const e4 = Tr("Long Time", t2, i2);
10095
+ const e4 = Nr("Long Time", t2, i2);
10084
10096
  if (e4) return e4.fmt;
10085
10097
  }
10086
10098
  else {
10087
- const e4 = Tr("Short Date", t2, i2);
10099
+ const e4 = Nr("Short Date", t2, i2);
10088
10100
  if (e4) return e4.fmt;
10089
10101
  }
10090
10102
  }
@@ -10212,7 +10224,7 @@ class Bg {
10212
10224
  }
10213
10225
  const Lg = [null], Pg = { colIndex: -1, rowIndex: -1 };
10214
10226
  let zg;
10215
- const Wg = (t2, n2, r2, o2 = false) => {
10227
+ const Hg = (t2, n2, r2, o2 = false) => {
10216
10228
  const s2 = r2 === e.Orientation.Row, i2 = t2.length, a2 = new Array(i2);
10217
10229
  for (let e2 = 0; e2 < i2; e2++) {
10218
10230
  const r3 = t2[e2];
@@ -10225,7 +10237,7 @@ const Wg = (t2, n2, r2, o2 = false) => {
10225
10237
  }
10226
10238
  }
10227
10239
  return a2;
10228
- }, Hg = (t2, e2, n2) => {
10240
+ }, Wg = (t2, e2, n2) => {
10229
10241
  const r2 = e2, o2 = t2.length;
10230
10242
  for (let e3 = 0; e3 < o2; e3++) {
10231
10243
  const o3 = t2[e3];
@@ -10253,7 +10265,7 @@ const Wg = (t2, n2, r2, o2 = false) => {
10253
10265
  if (t2.rowStart <= n2.rowStart && t2.rowEnd >= n2.rowEnd) return e.Orientation.Column;
10254
10266
  }
10255
10267
  return t2 ? ((t3) => t3.rowEnd - t3.rowStart > t3.colEnd - t3.colStart ? e.Orientation.Column : e.Orientation.Row)(t2) : e.Orientation.Row;
10256
- }, Gg = () => false, Ug = () => true, Jg = () => null, qg = () => ia, Kg = () => 0, Xg = new class extends Og {
10268
+ }, Gg = () => false, Ug = () => true, qg = () => null, Jg = () => ia, Kg = () => 0, Xg = new class extends Og {
10257
10269
  constructor() {
10258
10270
  super(null, null);
10259
10271
  }
@@ -10273,7 +10285,7 @@ const Wg = (t2, n2, r2, o2 = false) => {
10273
10285
  return `${this._coords ? Pc(this._coords) : Ac} => ${this._v ?? "{blank}"}`;
10274
10286
  }
10275
10287
  }(), Yg = () => Qg, Qg = { forEach: () => {
10276
- }, [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 };
10288
+ }, [Symbol.iterator]: Jg, entries: Jg, select: yh, find: yh, calculate: yh, getCell: () => Xg, getValue: qg, waitForCalcs: () => Promise.resolve(Qg), setValue: yh, setFormula: yh, setValues: yh, updateCells: yh, getCells: () => [[Xg]], getStyle: yh, getValues: () => [[null]], getBounds: qg, getIntersect: Yg, getUnion: Yg, getDifferences: yh, getResizeBy: Yg, getResizeTo: Yg, getOffsetBy: Yg, getOffsetTo: Yg, getFixed: Yg, getUsedRange: Yg, getEntireRows: Yg, getEntireColumns: Yg, getSurrounding: yh, getExtended: yh, isEntireRows: Gg, isEntireColumns: Gg, isEntireRange: Gg, getWidth: Kg, getHeight: Kg, size: 0, sort: yh, clear: yh, setHyperlink: yh, setComments: yh, merge: yh, unmerge: yh, getMerges: yh, insert: yh, insertFrom: yh, delete: yh, getDefaultShiftOrientation: yh, getDefaultSortCriteria: yh, autoFill: yh, autoFit: yh, getSnapshot: yh, copyFrom: yh, doBatch: yh, startIncrementalUpdates: yh, getRowHeaders: yh, getColumnHeaders: yh, getCounts: yh, getCount: Kg, isContentful: Gg, addListener: yh, getColumnStart: Kg, getRowStart: Kg, getColumnEnd: Kg, getRowEnd: Kg, getRowCount: Kg, getColumnCount: Kg, getVisible: yh, getCoords: qg, isEmpty: Ug, toString: () => Ac, getA1: () => Ac, isInvalid: Ug, getSheet: qg, isReadOnly: Ug, isICellRange: true };
10277
10289
  function Zg(t2, e2 = null, n2 = null, r2 = Ac) {
10278
10290
  return t2 || n2 ? Object.freeze({ ...Qg, getSheet: () => t2, bounds: () => n2, getA1: () => r2, toString: () => n2 ? Vc(n2, e2) : r2 }) : Qg;
10279
10291
  }
@@ -10416,7 +10428,7 @@ const tm = /^[\\+-]?[0-9]*\.?[0-9]*$/, em = (t2, e2, r2) => {
10416
10428
  }, sm = (t2, n2, r2, o2) => {
10417
10429
  const s2 = o2?.asJSDate;
10418
10430
  let i2;
10419
- 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));
10431
+ 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));
10420
10432
  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 = [];
10421
10433
  let u2, g2 = -1, m2 = null, f2 = 0;
10422
10434
  for (u2 = c2.next(); !u2.done; ) {
@@ -10593,7 +10605,7 @@ class _m {
10593
10605
  return this._getState()?.anchor ?? null;
10594
10606
  }
10595
10607
  getAnchorType() {
10596
- return this._getState()?.anchorType ?? Ji.Type.TwoCell;
10608
+ return this._getState()?.anchorType ?? qi.Type.TwoCell;
10597
10609
  }
10598
10610
  isProtected() {
10599
10611
  return this._options.isProtected?.() ?? false;
@@ -10851,7 +10863,7 @@ class Rm extends _m {
10851
10863
  return n2.length > 0 && (t2.fields = n2), e2.sort, 0 === Object.keys(t2).length ? null : t2;
10852
10864
  }
10853
10865
  }
10854
- 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) => {
10866
+ 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) => {
10855
10867
  if (t2.length !== e2.length) return console.warn("make columns the same length"), false;
10856
10868
  const r2 = /* @__PURE__ */ new Set();
10857
10869
  for (let t3 = 0; t3 < e2.length; t3++) {
@@ -11027,7 +11039,7 @@ class Om extends _m {
11027
11039
  }, getCoords: () => n2, getSource: () => s2, getName: () => r2, getMarkOptions: () => i2, isISnapshot: true };
11028
11040
  }
11029
11041
  getAnchorType() {
11030
- return Ji.Type.TwoCell;
11042
+ return qi.Type.TwoCell;
11031
11043
  }
11032
11044
  getStyle() {
11033
11045
  if (this._styleCache) return this._styleCache;
@@ -11145,10 +11157,10 @@ class Om extends _m {
11145
11157
  return n2 ? { ...n2, rowStart: n2.rowEnd - e2 + 1 } : null;
11146
11158
  }
11147
11159
  getStyleOptions() {
11148
- return this.isClosed() ? Nm : this._getState()?.styleOptions;
11160
+ return this.isClosed() ? Tm : this._getState()?.styleOptions;
11149
11161
  }
11150
11162
  updateStyleOptions(t2, e2 = "Update Style Info") {
11151
- const n2 = this.getStyleOptions(), r2 = t2 ? { ...n2, ...t2 } : Nm;
11163
+ const n2 = this.getStyleOptions(), r2 = t2 ? { ...n2, ...t2 } : Tm;
11152
11164
  return this._modifyTable({ styleOptions: r2 }, e2), this._styleCache = null, this._getEmitter().notify("onStyleChange"), this;
11153
11165
  }
11154
11166
  getStyleAt(t2) {
@@ -11278,7 +11290,7 @@ class Om extends _m {
11278
11290
  n3.add(a3.toLocaleLowerCase()), t3[i3]?.name !== a3 && (t3[i3].name = a3, s3++);
11279
11291
  }
11280
11292
  return s3 > 0;
11281
- })(a2, c2) : Tm(a2, c2, o2);
11293
+ })(a2, c2) : Nm(a2, c2, o2);
11282
11294
  if (!(r2 || c2.length !== a2.length || l2)) return;
11283
11295
  const h2 = "Update Columns";
11284
11296
  this._isUpdatingHeader = true;
@@ -11334,7 +11346,7 @@ class Om extends _m {
11334
11346
  const o4 = l2 + (c2 + r4 + 1);
11335
11347
  o4 && !t3.has(o4.toLowerCase().trim()) && (e3.name = o4);
11336
11348
  }
11337
- Tm(s2, o3, null);
11349
+ Nm(s2, o3, null);
11338
11350
  } else s2 = o3, i2 = s2.splice(n3, -e2);
11339
11351
  this._updateState({ columns: s2 }, { description: "Process Columns" }), this._updateColumns(s2, false, true, i2);
11340
11352
  } else t2.after || this._updateState({ columns: [] }, { description: "Process Columns" });
@@ -11399,7 +11411,7 @@ class Om extends _m {
11399
11411
  const t2 = {}, e2 = this._getState();
11400
11412
  if (!e2) return null;
11401
11413
  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) {
11402
- const n2 = o.diffValues(e2.styleOptions, { ...Nm, name: null });
11414
+ const n2 = o.diffValues(e2.styleOptions, { ...Tm, name: null });
11403
11415
  n2 && (t2.styleOptions = n2);
11404
11416
  }
11405
11417
  if (e2.filter) {
@@ -11415,11 +11427,11 @@ class Om extends _m {
11415
11427
  _fromJSON(t2) {
11416
11428
  const e2 = t2 ?? {}, n2 = { headerRowCount: 1, totalsRowCount: 0 };
11417
11429
  var r2;
11418
- if (e2.name && (n2.name = e2.name), e2.ref && (e2.ref = (r2 = e2.ref) && "string" == typeof r2 ? Jc(r2) : r2), this._names) {
11430
+ if (e2.name && (n2.name = e2.name), e2.ref && (e2.ref = (r2 = e2.ref) && "string" == typeof r2 ? qc(r2) : r2), this._names) {
11419
11431
  const t3 = this._names.findValidName(n2.name ?? Mm);
11420
11432
  n2.name !== t3 && (n2.name = t3);
11421
11433
  }
11422
- 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 };
11434
+ 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 };
11423
11435
  const s2 = "Insert Table";
11424
11436
  this._updateState(n2, { description: s2 });
11425
11437
  const i2 = this._columnsFromSheet();
@@ -11451,7 +11463,7 @@ class Pm {
11451
11463
  for (let i2 = 0; i2 < s2; i2++) {
11452
11464
  const s3 = r2[i2], a2 = t2[s3];
11453
11465
  if (!a2 || !o.isObject(a2)) continue;
11454
- const l2 = f.resolveTypedUpdates(Object.freeze(a2), Hu, n2);
11466
+ const l2 = f.resolveTypedUpdates(Object.freeze(a2), Wu, n2);
11455
11467
  e2[s3] = l2;
11456
11468
  }
11457
11469
  return Object.freeze(e2);
@@ -11461,8 +11473,8 @@ class Pm {
11461
11473
  }
11462
11474
  getPropertiesAt(t2, e2) {
11463
11475
  const n2 = this._table, r2 = this._styles, o2 = this._properties;
11464
- Wm.rowIndex = t2, Wm.colIndex = e2;
11465
- const s2 = n2.getVisibleCellCoords(Wm), i2 = n2.getVisibleRefRangeCoords();
11476
+ Hm.rowIndex = t2, Hm.colIndex = e2;
11477
+ const s2 = n2.getVisibleCellCoords(Hm), i2 = n2.getVisibleRefRangeCoords();
11466
11478
  if (!i2) return null;
11467
11479
  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();
11468
11480
  let g2 = {}, m2 = false, p2 = 0;
@@ -11484,7 +11496,7 @@ class Pm {
11484
11496
  const d3 = { rowIndex: c2, colIndex: n3 }, u3 = { rowStart: p2, rowEnd: l2 - S2 - 1, colStart: 0, colEnd: Math.min(a2 - h2, s3 ? t3 : e3) };
11485
11497
  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);
11486
11498
  const m3 = i3.border ? Lm(i3, d3, u3) : i3;
11487
- g2 = f.resolveTypedUpdates(m3, Hu, r2, g2);
11499
+ g2 = f.resolveTypedUpdates(m3, Wu, r2, g2);
11488
11500
  }
11489
11501
  }
11490
11502
  if (E2 && u2.showRowStripes) {
@@ -11497,40 +11509,40 @@ class Pm {
11497
11509
  const u3 = { colIndex: h2, rowIndex: s3 }, m3 = { colStart: 0, colEnd: a2 - 1, rowStart: 0, rowEnd: Math.min(l2 - c2, i3 ? e3 : n3) };
11498
11510
  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);
11499
11511
  const p3 = d3.border ? Lm(d3, u3, m3) : d3;
11500
- g2 = f.resolveTypedUpdates(p3, Hu, r2, g2);
11512
+ g2 = f.resolveTypedUpdates(p3, Wu, r2, g2);
11501
11513
  }
11502
11514
  }
11503
11515
  if (w2 && o2.lastColumn) {
11504
11516
  let t3 = o2.lastColumn;
11505
- t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11517
+ t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11506
11518
  }
11507
11519
  if (y2 && o2.firstColumn) {
11508
11520
  let t3 = o2.firstColumn;
11509
- t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11521
+ t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11510
11522
  }
11511
11523
  if (m2 && o2.headerRow) {
11512
11524
  let t3 = o2.headerRow;
11513
- t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11525
+ t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11514
11526
  }
11515
11527
  if (_2 && o2.totalRow) {
11516
11528
  let t3 = o2.totalRow;
11517
- t3.border && (t3 = Lm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11529
+ t3.border && (t3 = Lm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11518
11530
  }
11519
11531
  if (m2 && y2 && o2.firstHeaderCell) {
11520
11532
  let t3 = o2.firstHeaderCell;
11521
- t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11533
+ t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11522
11534
  }
11523
11535
  if (m2 && w2 && o2.lastHeaderCell) {
11524
11536
  let t3 = o2.lastHeaderCell;
11525
- t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11537
+ t3.border && (t3 = Lm(t3, d2, { rowStart: 0, rowEnd: p2 - 1, colStart: a2 - 1, colEnd: a2 - 1 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11526
11538
  }
11527
11539
  if (_2 && y2 && o2.firstTotalCell) {
11528
11540
  let t3 = o2.firstTotalCell;
11529
- t3.border && (t3 = Lm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Hu, r2, g2);
11541
+ t3.border && (t3 = Lm(t3, d2, { rowStart: l2 - S2, rowEnd: l2 - 1, colStart: 0, colEnd: 0 })), g2 = f.resolveTypedUpdates(t3, Wu, r2, g2);
11530
11542
  }
11531
11543
  if (_2 && w2 && o2.lastTotalCell) {
11532
11544
  let t3 = o2.lastTotalCell;
11533
- 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);
11545
+ 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);
11534
11546
  }
11535
11547
  return m2 && o2.headerRow && n2.getColumnFilter(h2) && !n2.getColumnFilter(h2).hasHiddenButton() && (g2.insets = { right: 15 }), g2;
11536
11548
  }
@@ -11546,7 +11558,7 @@ class zm {
11546
11558
  for (let i2 = 0; i2 < s2; i2++) {
11547
11559
  const s3 = r2[i2], a2 = t2[s3];
11548
11560
  if (!a2 || !o.isObject(a2)) continue;
11549
- const l2 = f.resolveTypedUpdates(Object.freeze(a2), Hu, n2);
11561
+ const l2 = f.resolveTypedUpdates(Object.freeze(a2), Wu, n2);
11550
11562
  e2[s3] = l2;
11551
11563
  }
11552
11564
  return Object.freeze(e2);
@@ -11581,8 +11593,8 @@ class zm {
11581
11593
  return true;
11582
11594
  }
11583
11595
  }
11584
- const Wm = { rowIndex: 0, colIndex: 0 };
11585
- class Hm extends _g {
11596
+ const Hm = { rowIndex: 0, colIndex: 0 };
11597
+ class Wm extends _g {
11586
11598
  constructor(t2, e2) {
11587
11599
  super(t2, c.EmptyRange, e2);
11588
11600
  }
@@ -11594,7 +11606,7 @@ class Hm extends _g {
11594
11606
  }
11595
11607
  cloneWithUpdate(t2) {
11596
11608
  if (void 0 === t2) return this;
11597
- const e2 = this._c, n2 = this._r, r2 = f.resolveTypedUpdates(t2, Hu, e2, this._p);
11609
+ const e2 = this._c, n2 = this._r, r2 = f.resolveTypedUpdates(t2, Wu, e2, this._p);
11598
11610
  return new _g(e2, n2, r2);
11599
11611
  }
11600
11612
  _createShifted(t2) {
@@ -11628,7 +11640,7 @@ class Hm extends _g {
11628
11640
  }
11629
11641
  class Vm {
11630
11642
  constructor(t2, e2, n2, r2 = null) {
11631
- this._name = e2.name, this._properties = e2, this._rangeStyle = new Hm(t2, e2.style), this._doDelete = n2, this._builtInID = r2;
11643
+ this._name = e2.name, this._properties = e2, this._rangeStyle = new Wm(t2, e2.style), this._doDelete = n2, this._builtInID = r2;
11632
11644
  }
11633
11645
  getRanged() {
11634
11646
  return this._rangeStyle;
@@ -11704,7 +11716,7 @@ class jm {
11704
11716
  for (let n2 = 0; n2 < t2.length; n2++) {
11705
11717
  const r2 = t2[n2], o2 = { ...r2 }, s2 = r2.named;
11706
11718
  delete o2.named;
11707
- const i2 = f.resolveTypedUpdates(o2, Hu, this), a2 = new Vm(this, { name: s2, style: i2 }, this._hideOrRemoveNamed.bind(this), n2);
11719
+ const i2 = f.resolveTypedUpdates(o2, Wu, this), a2 = new Vm(this, { name: s2, style: i2 }, this._hideOrRemoveNamed.bind(this), n2);
11708
11720
  s2 === Si.BuiltInName.Normal && (this._normalRanged = a2.getRanged(), this._normalStyle = gg(this, null)), e2.set(s2.toLowerCase(), a2);
11709
11721
  }
11710
11722
  }
@@ -11879,7 +11891,7 @@ class jm {
11879
11891
  }
11880
11892
  normalize(t2) {
11881
11893
  if (!t2) return null;
11882
- const e2 = f.resolveTypedUpdates(t2, Hu, this), n2 = Xu;
11894
+ const e2 = f.resolveTypedUpdates(t2, Wu, this), n2 = Xu;
11883
11895
  let r2 = null;
11884
11896
  if (r2 = e2.named ? this.getNamed(e2.named)?.getRanged().getPropertiesAt(0, 0, null) : this._normalRanged.getPropertiesAt(0, 0, null), r2) {
11885
11897
  const t3 = { ...r2 };
@@ -11986,7 +11998,7 @@ class jm {
11986
11998
  }
11987
11999
  }
11988
12000
  const Gm = "BinaryResource must have only one initial data value.", Um = "Resource is closed.";
11989
- class Jm {
12001
+ class qm {
11990
12002
  constructor(t2) {
11991
12003
  if (this._listeners = /* @__PURE__ */ new Set(), this._type = t2.type, this._name = t2?.name, t2.base64) {
11992
12004
  const e2 = t2.base64;
@@ -12068,7 +12080,7 @@ class Jm {
12068
12080
  return this._isClosed;
12069
12081
  }
12070
12082
  }
12071
- let qm = class {
12083
+ let Jm = class {
12072
12084
  constructor(t2, e2, n2) {
12073
12085
  this._state = t2, this._fromJSON = e2, this._onLastEnd = n2, this._state.openScopes.add(this), this._isClosed = false;
12074
12086
  }
@@ -12110,10 +12122,10 @@ class Km {
12110
12122
  let e3 = false;
12111
12123
  this._resources.forEach((n3) => {
12112
12124
  n3.getName() === t2 && (e3 = true, t2 = n3);
12113
- }), e3 || (t2 = new Jm({ name: t2, fetch: t2, type: null }));
12125
+ }), e3 || (t2 = new qm({ name: t2, fetch: t2, type: null }));
12114
12126
  }
12115
12127
  let e2 = null;
12116
- e2 = t2 instanceof Jm ? t2 : new Jm({ ...t2 });
12128
+ e2 = t2 instanceof qm ? t2 : new qm({ ...t2 });
12117
12129
  const n2 = this;
12118
12130
  return this._resources.has(e2) || (e2.addUnloadListener({ onUnload: (t3) => {
12119
12131
  n2._resources.delete(e2);
@@ -12128,7 +12140,7 @@ class Km {
12128
12140
  beginPersist() {
12129
12141
  this._persistOpen || (this._persistOpen = { byRefs: /* @__PURE__ */ new Map(), byIds: /* @__PURE__ */ new Map(), openScopes: /* @__PURE__ */ new Set() });
12130
12142
  const t2 = {}, e2 = /* @__PURE__ */ new Set(), n2 = this;
12131
- return new qm(this._persistOpen, (r2) => {
12143
+ return new Jm(this._persistOpen, (r2) => {
12132
12144
  const o2 = n2.add({ base64: r2.base64, name: r2.name, type: r2.type });
12133
12145
  return o2.addReference(t2), e2.add(o2), o2;
12134
12146
  }, () => {
@@ -12534,7 +12546,7 @@ class hf {
12534
12546
  const n3 = o3[t4];
12535
12547
  if (n3 === l3) continue;
12536
12548
  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 };
12537
- const s4 = Hf(r3, zf, e.Orientation.Row, n3);
12549
+ const s4 = Wf(r3, zf, e.Orientation.Row, n3);
12538
12550
  let i4 = s4[0];
12539
12551
  _2(i4, a3), g2.push(i4), i4 = s4[1], _2(i4, a3), g2.push(i4), l3 = n3;
12540
12552
  }
@@ -12611,7 +12623,7 @@ class hf {
12611
12623
  return this._setInputs(t2, e2);
12612
12624
  }
12613
12625
  delete(t2) {
12614
- "string" == typeof t2 && (t2 = Jc(t2));
12626
+ "string" == typeof t2 && (t2 = qc(t2));
12615
12627
  const e2 = this._setInputs(null, [{ ...t2, value: null }], t2);
12616
12628
  return this._emitter?.notify("onInvalidate"), e2.removes;
12617
12629
  }
@@ -12833,7 +12845,7 @@ class hf {
12833
12845
  if (this._calculation.getStatus() === Zm.Status.Starting) return this._addToPending(() => {
12834
12846
  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)) };
12835
12847
  return Promise.resolve(s3);
12836
- }), Wf;
12848
+ }), Hf;
12837
12849
  const s2 = this._values.getOrientation() !== e.Orientation.Row, i2 = this._spillSpatial, a2 = this._errorSpatial, l2 = this._contentfulSpatial, h2 = [], d2 = this._formulaSpatial;
12838
12850
  let u2, g2, m2 = !d2.isEmpty(), f2 = m2 ? [] : null, p2 = this._values;
12839
12851
  if (t2 && t2.tuples) {
@@ -12916,18 +12928,18 @@ class hf {
12916
12928
  let r2;
12917
12929
  Rf = 0, Ff = 0, kf = 0, Df = 0;
12918
12930
  const s2 = this._precedentSpatial, i2 = this._formulaSpatial;
12919
- Mf = 0, Nf = 0;
12931
+ Mf = 0, Tf = 0;
12920
12932
  const a2 = this._cycleId, l2 = e2.length;
12921
12933
  for (let t3 = 0; t3 < l2; t3++) {
12922
12934
  const r3 = e2[t3];
12923
- r3.markId !== n2 && (r3.markId = n2, r3.cycleId = a2, r3.inDegree = 0, If[Rf++] = r3, Af[Nf++] = r3);
12935
+ r3.markId !== n2 && (r3.markId = n2, r3.cycleId = a2, r3.inDegree = 0, If[Rf++] = r3, Af[Tf++] = r3);
12924
12936
  }
12925
12937
  const c2 = (e3, n3, o2) => {
12926
12938
  (t2 || e3.state === vh) && (r2 || (r2 = []), r2.push(n3), t2 || o2(e3));
12927
12939
  }, h2 = (t3) => {
12928
- t3.markId !== n2 && (t3.markId = n2, t3.cycleId = a2, t3.inDegree = 0, If[Rf++] = t3, Af[Nf++] = t3);
12940
+ t3.markId !== n2 && (t3.markId = n2, t3.cycleId = a2, t3.inDegree = 0, If[Rf++] = t3, Af[Tf++] = t3);
12929
12941
  };
12930
- for (; Mf < Nf; ) {
12942
+ for (; Mf < Tf; ) {
12931
12943
  const t3 = Af[Mf++], e3 = t3.colIndex, n3 = t3.rowIndex;
12932
12944
  ff.colStart = e3, ff.rowStart = n3, ff.colEnd = e3, ff.rowEnd = n3;
12933
12945
  const r3 = s2.search(ff), i3 = r3.length;
@@ -12963,13 +12975,13 @@ class hf {
12963
12975
  }
12964
12976
  }
12965
12977
  }
12966
- e3.inDegree = l3, 0 === e3.inDegree && (Tf[kf++] = e3);
12978
+ e3.inDegree = l3, 0 === e3.inDegree && (Nf[kf++] = e3);
12967
12979
  }
12968
12980
  const d2 = (t3) => {
12969
- t3.markId === n2 && (t3.inDegree--, 0 === t3.inDegree && (Tf[kf++] = t3));
12981
+ t3.markId === n2 && (t3.inDegree--, 0 === t3.inDegree && (Nf[kf++] = t3));
12970
12982
  };
12971
12983
  for (; Ff < kf; ) {
12972
- const t3 = Tf[Ff++];
12984
+ const t3 = Nf[Ff++];
12973
12985
  Of[Df++] = t3;
12974
12986
  const e3 = t3.colIndex, n3 = t3.rowIndex;
12975
12987
  ff.colStart = e3, ff.rowStart = n3, ff.colEnd = e3, ff.rowEnd = n3;
@@ -13027,13 +13039,13 @@ class hf {
13027
13039
  }
13028
13040
  C2.pendingPrecedents = A2;
13029
13041
  }
13030
- const N2 = S2 ? v2 : x2, T2 = S2 ? x2 : v2;
13042
+ const T2 = S2 ? v2 : x2, N2 = S2 ? x2 : v2;
13031
13043
  o2.node = C2, o2.colIndex = v2, o2.rowIndex = x2;
13032
13044
  const F2 = b2.formula;
13033
13045
  let k2, O2;
13034
13046
  const D2 = C2.pending;
13035
13047
  let B2 = D2;
13036
- 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)) {
13048
+ 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)) {
13037
13049
  O2.__originator = l2;
13038
13050
  const t3 = C2;
13039
13051
  xf.add(t3), t3.pendingPromise = O2, t3.pendingResolved = false, O2.then((e3) => {
@@ -13046,50 +13058,50 @@ class hf {
13046
13058
  }
13047
13059
  let L2 = 1, P2 = 1;
13048
13060
  const z2 = I2 instanceof oc;
13049
- let W2;
13050
- const H2 = I2 instanceof n.Spill;
13051
- if (z2 || H2) {
13061
+ let H2;
13062
+ const W2 = I2 instanceof n.Spill;
13063
+ if (z2 || W2) {
13052
13064
  wf.colStart = v2, wf.rowStart = x2, wf.colEnd = v2, wf.rowEnd = x2;
13053
13065
  const t3 = f2.search(wf);
13054
- for (let e3 = 0; !W2 && e3 < t3.length; e3++) {
13066
+ for (let e3 = 0; !H2 && e3 < t3.length; e3++) {
13055
13067
  const n2 = t3[e3];
13056
- n2.colStart === v2 && n2.rowStart === x2 && (W2 = n2);
13068
+ n2.colStart === v2 && n2.rowStart === x2 && (H2 = n2);
13057
13069
  }
13058
- if (W2) {
13070
+ if (H2) {
13059
13071
  if (z2) {
13060
13072
  const t5 = I2;
13061
13073
  L2 = t5.getWidth(), P2 = t5.getHeight();
13062
13074
  }
13063
13075
  const t4 = { colStart: v2, rowStart: x2, colEnd: v2 + L2 - 1, rowEnd: x2 + P2 - 1 };
13064
- f2.remove(W2), W2 && W2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
13076
+ f2.remove(H2), H2 && H2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
13065
13077
  }
13066
13078
  }
13067
13079
  let V2 = 1, $2 = 1;
13068
13080
  const j2 = k2, G2 = j2?.isIRange;
13069
- let U2, J2 = k2 instanceof n.Spill;
13081
+ let U2, q2 = k2 instanceof n.Spill;
13070
13082
  if (G2 && j2.size > 1) {
13071
13083
  V2 = j2.getWidth(), $2 = j2.getHeight();
13072
13084
  const t3 = { colStart: v2, rowStart: x2, colEnd: v2 + V2 - 1, rowEnd: x2 + $2 - 1 }, e3 = r2.getEntireCoords(), o3 = !c.isRangeWithinRange(t3, e3);
13073
- if (o3 && (t3.colEnd = Math.min(t3.colEnd, e3.colEnd), t3.rowEnd = Math.min(t3.rowEnd, e3.rowEnd)), J2 = o3, !J2) {
13085
+ if (o3 && (t3.colEnd = Math.min(t3.colEnd, e3.colEnd), t3.rowEnd = Math.min(t3.rowEnd, e3.rowEnd)), q2 = o3, !q2) {
13074
13086
  const e4 = d2.search(t3);
13075
- if (J2 = e4.length > 1, !J2 && 1 === e4.length) {
13087
+ if (q2 = e4.length > 1, !q2 && 1 === e4.length) {
13076
13088
  const n2 = e4[0], r3 = c.intersectRanges(t3, n2, ff);
13077
- (r3 && (r3.rowEnd !== r3.rowStart || r3.colStart !== r3.colEnd) || r3.colStart !== v2 || r3.rowStart !== x2) && (J2 = true);
13089
+ (r3 && (r3.rowEnd !== r3.rowStart || r3.colStart !== r3.colEnd) || r3.colStart !== v2 || r3.rowStart !== x2) && (q2 = true);
13078
13090
  }
13079
13091
  }
13080
13092
  let s3, i3;
13081
- if (J2) {
13093
+ if (q2) {
13082
13094
  k2 = n.BuiltIn.Spill, V2 = 1, $2 = 1;
13083
- s3 = [[N2, [[T2, [k2]]]]], p2.setValues(s3), i3 = { colStart: v2, rowStart: x2, colEnd: v2, rowEnd: x2 };
13095
+ s3 = [[T2, [[N2, [k2]]]]], p2.setValues(s3), i3 = { colStart: v2, rowStart: x2, colEnd: v2, rowEnd: x2 };
13084
13096
  } else {
13085
- const e4 = af(j2, N2, T2);
13097
+ const e4 = af(j2, T2, N2);
13086
13098
  e4 && (s3 = e4.tuples), s3 && p2.setValues(s3), i3 = t3;
13087
13099
  }
13088
- 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) });
13100
+ U2 = { ...t3, value: new Eh(t3, l2, q2) }, f2.insert(U2), E2 = cf(E2, C2, t3), u2.insertNonOverlapping(i3), h2.insertNonOverlapping(i3), d2.insertNonOverlapping({ ...i3, value: new Ch(i3, _2) });
13089
13101
  }
13090
- (!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);
13091
- let q2 = k2 && k2.isFormulaError ? k2 : null;
13092
- F2.getError() && (q2 = F2.getError()), (q2 || R2 && !t2) && (q2 && !q2.equals(R2) || R2 && R2.equals(q2)), C2.cachedValue = k2, s2[i2++] = C2;
13102
+ (!c.isEqualRanges(H2, U2) || q2 || W2) && (H2 && g2.insert(H2), 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);
13103
+ let J2 = k2 && k2.isFormulaError ? k2 : null;
13104
+ F2.getError() && (J2 = F2.getError()), (J2 || R2 && !t2) && (J2 && !J2.equals(R2) || R2 && R2.equals(J2)), C2.cachedValue = k2, s2[i2++] = C2;
13093
13105
  }
13094
13106
  if (o2.node = null, o2.colIndex = Number.MAX_SAFE_INTEGER, o2.rowIndex = Number.MAX_SAFE_INTEGER, w2) {
13095
13107
  const t3 = w2.done(true);
@@ -13374,13 +13386,13 @@ let Ef = 0;
13374
13386
  const Cf = 1e4, bf = new Array(Cf), vf = new Array(Cf), xf = /* @__PURE__ */ new Set(), If = new Array(Cf);
13375
13387
  let Rf = 0;
13376
13388
  const Af = new Array(Cf);
13377
- let Mf = 0, Nf = 0;
13378
- const Tf = new Array(Cf);
13389
+ let Mf = 0, Tf = 0;
13390
+ const Nf = new Array(Cf);
13379
13391
  let Ff = 0, kf = 0;
13380
13392
  const Of = new Array(Cf);
13381
13393
  let Df = 0;
13382
- 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 });
13383
- function Hf(t2, e2, n2, r2) {
13394
+ 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], Hf = Object.freeze({ inserts: o.EmptyArray, removes: o.EmptyArray });
13395
+ function Wf(t2, e2, n2, r2) {
13384
13396
  const o2 = t2;
13385
13397
  if (o2?.getSplit) {
13386
13398
  const t3 = o2.getSplit(e2, n2, r2);
@@ -13399,7 +13411,7 @@ class Vf {
13399
13411
  async _initialize() {
13400
13412
  const t2 = await lt._validate(true), e2 = jf();
13401
13413
  this._calcScope = e2, this._runtime = new $f(this._options, t2);
13402
- const { initializeBuiltIns: n2 } = await import("./C0uAe0nZkGOU2HsH.mjs"), r2 = this;
13414
+ const { initializeBuiltIns: n2 } = await import("./BBlEtiFkfFOc9fjh.mjs"), r2 = this;
13403
13415
  return this._builtInFunctions = Object.freeze(n2(() => r2)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
13404
13416
  }
13405
13417
  getBuiltInFunctions() {
@@ -13417,8 +13429,8 @@ class Vf {
13417
13429
  getFormulaAt(t2, e2) {
13418
13430
  const n2 = this._calcScope.formulaSpatial;
13419
13431
  if (!n2) return null;
13420
- Jf.colStart = e2, Jf.rowStart = t2, Jf.colEnd = e2, Jf.rowEnd = t2;
13421
- const r2 = n2.search(Jf);
13432
+ qf.colStart = e2, qf.rowStart = t2, qf.colEnd = e2, qf.rowEnd = t2;
13433
+ const r2 = n2.search(qf);
13422
13434
  if (0 === r2.length) return null;
13423
13435
  return r2[0].value.formula.getTextAt(t2, e2) ?? null;
13424
13436
  }
@@ -13458,8 +13470,8 @@ class Vf {
13458
13470
  getSpillAt(t2, e2) {
13459
13471
  const n2 = this._calcScope.spillSpatial;
13460
13472
  if (!n2) return null;
13461
- qf.rowStart = t2, qf.colStart = e2, qf.rowEnd = t2, qf.colEnd = e2;
13462
- const r2 = n2.search(qf);
13473
+ Jf.rowStart = t2, Jf.colStart = e2, Jf.rowEnd = t2, Jf.colEnd = e2;
13474
+ const r2 = n2.search(Jf);
13463
13475
  if (0 === r2.length) return null;
13464
13476
  for (let n3 = 0; n3 < r2.length; n3++) {
13465
13477
  const o2 = r2[n3];
@@ -13492,7 +13504,7 @@ class Vf {
13492
13504
  if ("string" == typeof t2) {
13493
13505
  if (e2) throw n.BuiltIn.Ref;
13494
13506
  try {
13495
- const r3 = Qc(t2, o2(), qc, () => {
13507
+ const r3 = Qc(t2, o2(), Jc, () => {
13496
13508
  throw n.BuiltIn.Ref;
13497
13509
  }, e2);
13498
13510
  if (r3.length > 1) throw n.BuiltIn.Ref;
@@ -13572,7 +13584,7 @@ class $f {
13572
13584
  }
13573
13585
  getVersion() {
13574
13586
  try {
13575
- const t2 = "0.6.19";
13587
+ const t2 = "0.6.20";
13576
13588
  if (-1 === t2.indexOf(".env.")) return `${t2}`;
13577
13589
  } catch (t2) {
13578
13590
  return "local";
@@ -13595,7 +13607,7 @@ const jf = () => ({ rowIndex: 0, colIndex: 0, sheetName: null, node: null, value
13595
13607
  if (void 0 !== a2 && (n3.colStart === r2 && n3.rowStart === o2 && n3.colEnd === s2 && n3.rowEnd === i2)) return a2;
13596
13608
  }
13597
13609
  return null;
13598
- }, Jf = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, qf = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 };
13610
+ }, qf = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Jf = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 };
13599
13611
  class Kf {
13600
13612
  _setScope(t2) {
13601
13613
  this._scope = t2;
@@ -14047,10 +14059,10 @@ class mp {
14047
14059
  return this._validateName(t2);
14048
14060
  }
14049
14061
  _validateName(t2, e2 = false) {
14050
- if (this._closed) throw new Error(qi);
14062
+ if (this._closed) throw new Error(Ji);
14051
14063
  }
14052
14064
  add(t2) {
14053
- if (this._closed) throw new Error(qi);
14065
+ if (this._closed) throw new Error(Ji);
14054
14066
  if (!t2) throw new Error("Item must be specified.");
14055
14067
  let e2;
14056
14068
  if (t2.isIFunction) {
@@ -14067,7 +14079,7 @@ class mp {
14067
14079
  return this._beginCommit(t2);
14068
14080
  }
14069
14081
  _getState() {
14070
- if (this._closed) throw new Error(qi);
14082
+ if (this._closed) throw new Error(Ji);
14071
14083
  return this._transactions.getState(this);
14072
14084
  }
14073
14085
  _beginCommit(t2) {
@@ -14116,7 +14128,7 @@ class fp extends Yi {
14116
14128
  this._context = r2;
14117
14129
  const o2 = await r2._initialize(), s2 = o2.builtInFunctions;
14118
14130
  this._functions = new mp({ transactions: this._transactions, context: r2, readonlyFunctions: s2 });
14119
- const i2 = await import("./DuRBG5ttXEdHC_ll.mjs");
14131
+ const i2 = await import("./DVYeiN1QOmtgiURB.mjs");
14120
14132
  this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status = Zm.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
14121
14133
  } catch (t2) {
14122
14134
  throw this._status = Zm.Status.Off, this._emitter.notify("onError", t2), this._emitter.notify("onStatusChange"), t2;
@@ -14324,7 +14336,7 @@ const Ap = (t2) => {
14324
14336
  }
14325
14337
  }
14326
14338
  return n2;
14327
- }, Np = (t2, e2, n2) => {
14339
+ }, Tp = (t2, e2, n2) => {
14328
14340
  try {
14329
14341
  let r2 = null, o2 = null;
14330
14342
  const s2 = (t3) => ((t4, e3) => {
@@ -14471,7 +14483,7 @@ const Ap = (t2) => {
14471
14483
  throw console.warn(t3), t3;
14472
14484
  }
14473
14485
  };
14474
- class Tp {
14486
+ class Np {
14475
14487
  constructor(t2) {
14476
14488
  if (!t2) throw new u("snapshot is required.");
14477
14489
  this._snapshot = t2;
@@ -14555,7 +14567,7 @@ class Fp {
14555
14567
  });
14556
14568
  }))(e2) : [[]]);
14557
14569
  let s2;
14558
- if (Np(n2, o2, r2) ? (t2 = r2.sheet(), s2 = t2.getUsedRange()) : n2 = null, s2) return this._parsed = { async copyTo(t3, e3) {
14570
+ if (Tp(n2, o2, r2) ? (t2 = r2.sheet(), s2 = t2.getUsedRange()) : n2 = null, s2) return this._parsed = { async copyTo(t3, e3) {
14559
14571
  const n3 = await t3.copyFrom(s2, e3);
14560
14572
  return n3?.getCoords() ?? null;
14561
14573
  }, getCoords: () => s2.getCoords(), getSource: () => t2, getName: () => t2.getName() }, true;
@@ -14720,19 +14732,19 @@ class Op extends _m {
14720
14732
  n2 = { x: Math.max(n2.x, this._optionsMovable.getMaxBounds().x), y: Math.max(n2.y, this._optionsMovable.getMaxBounds().y), width: Math.min(n2.width, this._optionsMovable.getMaxBounds().width), height: Math.min(n2.height, this._optionsMovable.getMaxBounds().height) };
14721
14733
  }
14722
14734
  if (n2.width < 0 || n2.height < 0) throw new d();
14723
- const r2 = this._updateMovableLocation({ bounds: n2, anchorType: Ji.Type.Absolute }), o2 = this._beginCommit(e2?.description ?? "Set Movable Bounds");
14735
+ const r2 = this._updateMovableLocation({ bounds: n2, anchorType: qi.Type.Absolute }), o2 = this._beginCommit(e2?.description ?? "Set Movable Bounds");
14724
14736
  return this._updateState({ offsets: r2.offsets, anchor: r2.anchor }, { description: "Update Movable Bounds" }), this._options.setContainerCoords(r2.anchor), this._invalidateBounds(), o2.commit(), this;
14725
14737
  }
14726
14738
  _updateMovableLocation(t2) {
14727
14739
  let e2 = t2.offsets ?? { tl: { x: 0, y: 0 }, br: { x: 0, y: 0 } }, n2 = t2.anchor ?? this.getAnchorCoords(), r2 = t2.anchorType ?? this.getAnchorType();
14728
14740
  const o2 = t2.bounds ?? this.getBounds();
14729
14741
  if (o2) {
14730
- if (r2 === Ji.Type.Absolute) {
14742
+ if (r2 === qi.Type.Absolute) {
14731
14743
  n2 = this._optionsMovable.getCoordsAtBounds(o2);
14732
14744
  const t3 = this._optionsMovable.getBoundsAtCoords(n2);
14733
14745
  e2 = { ...e2, tl: { x: o2.x - t3.x, y: o2.y - t3.y } };
14734
14746
  }
14735
- if (r2 === Ji.Type.Absolute || r2 === Ji.Type.OneCell) {
14747
+ if (r2 === qi.Type.Absolute || r2 === qi.Type.OneCell) {
14736
14748
  const t3 = this._optionsMovable.getBoundsAtCoords({ rowStart: n2.rowStart, colStart: n2.colStart, colEnd: n2.colStart, rowEnd: n2.rowStart }), r3 = this._optionsMovable.getCoordsAtBounds({ x: t3.x, y: t3.y, width: o2.width + Math.min(t3.width, e2.tl.x), height: o2.height + Math.min(t3.height, e2.tl.y) });
14737
14749
  n2 = { ...n2, colEnd: r3.colEnd, rowEnd: r3.rowEnd };
14738
14750
  const s2 = this._optionsMovable.getBoundsAtCoords({ colStart: n2.colEnd, rowStart: n2.rowEnd, colEnd: n2.colEnd, rowEnd: n2.rowEnd }), i2 = o2.width - (s2.x - t3.x - Math.min(e2?.tl.x ?? 0, t3.width)), a2 = o2.height - (s2.y - t3.y - Math.min(e2?.tl.y ?? 0, t3.height));
@@ -14752,18 +14764,18 @@ class Op extends _m {
14752
14764
  return this._getState()?.bounds;
14753
14765
  }
14754
14766
  setAnchorType(t2) {
14755
- return o.validEnumValue(Ji.Type, t2), this._updateState({ anchorType: t2 }, { description: "Set Movable Resize Behavior" }, ["onAnchorTypeChange"]), this;
14767
+ return o.validEnumValue(qi.Type, t2), this._updateState({ anchorType: t2 }, { description: "Set Movable Resize Behavior" }, ["onAnchorTypeChange"]), this;
14756
14768
  }
14757
14769
  _processContainerShift(t2) {
14758
14770
  const n2 = this.getAnchorType(), r2 = this._getState()?.offsets;
14759
14771
  let o2 = r2, s2 = false;
14760
14772
  const i2 = t2.before, a2 = t2.orientation === e.Orientation.Column, l2 = t2.intersect, h2 = t2.amount;
14761
14773
  let d2 = t2.after;
14762
- if (n2 !== Ji.Type.Absolute) {
14774
+ if (n2 !== qi.Type.Absolute) {
14763
14775
  let t3 = a2 ? l2.colStart : l2.rowStart, e2 = a2 ? i2.colStart : i2.rowStart;
14764
- n2 === Ji.Type.TwoCell && (e2 = a2 ? i2.colEnd : i2.rowEnd), s2 = t3 <= e2;
14776
+ n2 === qi.Type.TwoCell && (e2 = a2 ? i2.colEnd : i2.rowEnd), s2 = t3 <= e2;
14765
14777
  }
14766
- if (s2 && (n2 !== Ji.Type.OneCell || d2) || (d2 = i2), s2 && d2 && h2 < 0 && (a2 ? (l2.colStart <= i2.colStart && l2.colEnd >= i2.colStart && (o2 = { ...o2, tl: { ...o2.tl, x: 0 } }), o2.br.x > 0 && l2.colStart <= i2.colEnd && l2.colEnd >= i2.colEnd && (o2 = { ...o2, br: { ...o2.br, x: 0 } }, d2 = { ...d2, colEnd: d2.colEnd + 1 })) : (l2.rowStart <= i2.rowStart && l2.rowEnd >= i2.rowStart && (o2 = { ...o2, tl: { ...o2.tl, y: 0 } }), o2.br.y > 0 && l2.rowStart <= i2.rowEnd && l2.rowEnd >= i2.rowEnd && (o2 = { ...o2, br: { ...o2.br, y: 0 } }, d2 = { ...d2, rowEnd: d2.rowEnd + 1 }))), null !== d2) {
14778
+ if (s2 && (n2 !== qi.Type.OneCell || d2) || (d2 = i2), s2 && d2 && h2 < 0 && (a2 ? (l2.colStart <= i2.colStart && l2.colEnd >= i2.colStart && (o2 = { ...o2, tl: { ...o2.tl, x: 0 } }), o2.br.x > 0 && l2.colStart <= i2.colEnd && l2.colEnd >= i2.colEnd && (o2 = { ...o2, br: { ...o2.br, x: 0 } }, d2 = { ...d2, colEnd: d2.colEnd + 1 })) : (l2.rowStart <= i2.rowStart && l2.rowEnd >= i2.rowStart && (o2 = { ...o2, tl: { ...o2.tl, y: 0 } }), o2.br.y > 0 && l2.rowStart <= i2.rowEnd && l2.rowEnd >= i2.rowEnd && (o2 = { ...o2, br: { ...o2.br, y: 0 } }, d2 = { ...d2, rowEnd: d2.rowEnd + 1 }))), null !== d2) {
14767
14779
  const { offsets: t3, anchor: e2 } = this._updateMovableLocation({ anchor: d2, offsets: o2 });
14768
14780
  o2 = t3, d2 = e2;
14769
14781
  }
@@ -14814,7 +14826,7 @@ class Op extends _m {
14814
14826
  const e2 = this._getState(), n2 = e2.anchor, r2 = e2.offsets, s2 = { tl: { c: n2.colStart, r: n2.rowStart }, br: { c: n2.colEnd + (r2.br.x ? 0 : 1), r: n2.rowEnd + (r2.br.y ? 0 : 1) } };
14815
14827
  r2 && (r2.tl?.x && (s2.tl.x = o.roundAccurately(r2.tl.x, 1)), r2.tl?.y && (s2.tl.y = o.roundAccurately(r2.tl.y, 1)), r2.br?.x && (s2.br.x = o.roundAccurately(r2.br.x, 1)), r2.br?.y && (s2.br.y = o.roundAccurately(r2.br.y, 1)));
14816
14828
  const i2 = this._content.toJSON(t2) ?? {}, a2 = { anchor: s2, content: { type: this._content.getType(), json: i2 } }, l2 = e2.anchorType;
14817
- return l2 && l2 !== Ji.Type.TwoCell && (a2.anchorType = this.getAnchorType()), e2.hidden && (a2.hidden = e2.hidden), e2.name && (a2.name = e2.name), e2.description && (a2.name = e2.description), void 0 !== e2.rotation && 0 !== e2.rotation && (a2.rotation = e2.rotation), o.isDefined(e2.lockAspectRatio) && e2.lockAspectRatio !== this._optionsMovable.defaultLockAspectRatio && (a2.lockAspect = e2.lockAspectRatio), a2;
14829
+ return l2 && l2 !== qi.Type.TwoCell && (a2.anchorType = this.getAnchorType()), e2.hidden && (a2.hidden = e2.hidden), e2.name && (a2.name = e2.name), e2.description && (a2.name = e2.description), void 0 !== e2.rotation && 0 !== e2.rotation && (a2.rotation = e2.rotation), o.isDefined(e2.lockAspectRatio) && e2.lockAspectRatio !== this._optionsMovable.defaultLockAspectRatio && (a2.lockAspect = e2.lockAspectRatio), a2;
14818
14830
  }
14819
14831
  get isIMovable() {
14820
14832
  return true;
@@ -14925,7 +14937,7 @@ class Lp extends Qi {
14925
14937
  t2 && t2.removeListener?.(), super._processDelete();
14926
14938
  }
14927
14939
  }
14928
- 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) => {
14940
+ const Pp = "Item must be specified.", zp = "Name must be a non-empty string", Hp = (t2, e2 = null) => `Named item '${t2}' already exists${e2 ? `in scope ${e2}` : ""}.`, Wp = (t2) => {
14929
14941
  const e2 = [];
14930
14942
  for (let n2 = 0; n2 < t2.getCount(); n2++) {
14931
14943
  let r2 = null;
@@ -15001,7 +15013,7 @@ class jp {
15001
15013
  const n2 = this._getState();
15002
15014
  if (!n2) return null;
15003
15015
  if (0 === n2.itemsByKey.size) return null;
15004
- const r2 = Hp(e2), o2 = n2.itemsByFullRange.get(r2);
15016
+ const r2 = Wp(e2), o2 = n2.itemsByFullRange.get(r2);
15005
15017
  if (!o2) return null;
15006
15018
  const s2 = [];
15007
15019
  return o2.forEach((t3) => {
@@ -15050,7 +15062,7 @@ class jp {
15050
15062
  return this._validateName(t2, e2, n2);
15051
15063
  }
15052
15064
  _validateName(t2, e2, n2 = false) {
15053
- if (this._closed) throw new Error(qi);
15065
+ if (this._closed) throw new Error(Ji);
15054
15066
  if (!t2 || 0 === t2.length) throw new Error(zp);
15055
15067
  if (t2.length > 255) throw new Error("Name must not exceed 255 characters.");
15056
15068
  if (-1 !== t2.indexOf(" ")) throw new Error("Name must not contain any spaces.");
@@ -15058,7 +15070,7 @@ class jp {
15058
15070
  if (new RegExp(Vp).test(r2[0])) throw new Error("First letter must be either a letter, an underscore, or a backslash.");
15059
15071
  if (new RegExp($p).test(o2)) throw new Error("Name must be either letters, numbers, periods or underscores.");
15060
15072
  if (1 === r2.length && ("r" === r2[0] || "c" === r2[0])) throw new Error("Name can not be 'r' or 'c'.");
15061
- if (((t3, e3 = Nc, n3 = Mc, r3 = false) => {
15073
+ if (((t3, e3 = Tc, n3 = Mc, r3 = false) => {
15062
15074
  let o3 = oh(t3, r3);
15063
15075
  if (!o3) return false;
15064
15076
  if (o3[2]) return false;
@@ -15075,7 +15087,7 @@ class jp {
15075
15087
  const i2 = this._getState()?.itemsByKey.get(s2);
15076
15088
  if (i2) {
15077
15089
  const r3 = i2.item.getRanges();
15078
- if (!n2 || r3 || r3.getCount() > 0) throw new Error(Wp(t2, e2));
15090
+ if (!n2 || r3 || r3.getCount() > 0) throw new Error(Hp(t2, e2));
15079
15091
  }
15080
15092
  }
15081
15093
  addReference(t2, e2, n2 = false) {
@@ -15084,7 +15096,7 @@ class jp {
15084
15096
  const i2 = this._beginCommit(`${o2 && n2 ? "Update" : "Insert"} Named '${t2}'`);
15085
15097
  try {
15086
15098
  if (o2) {
15087
- if (!n2) throw new Error(Wp(t2));
15099
+ if (!n2) throw new Error(Hp(t2));
15088
15100
  this._delete(o2, { description: `Delete Named '${o2.getName()}'` });
15089
15101
  }
15090
15102
  s2 = new Lp({ value: r2, addressToRanges: this._options.addressToRanges, json: { name: t2, ref: r2.toString() }, transactions: this._transactions }), this.add(s2), i2.commit();
@@ -15094,7 +15106,7 @@ class jp {
15094
15106
  return s2;
15095
15107
  }
15096
15108
  add(t2) {
15097
- if (this._closed) throw new Error(qi);
15109
+ if (this._closed) throw new Error(Ji);
15098
15110
  if (!t2) throw new Error(Pp);
15099
15111
  if (!t2.getName || "string" == typeof t2) throw new Error("Add must take a 'INamed' object. To add a string use 'addReference'.");
15100
15112
  if (this._validateName(t2.getName(), t2.getScope(), false), this._options.isReadOnly?.()) throw new Error("Names are read-only.");
@@ -15109,7 +15121,7 @@ class jp {
15109
15121
  }
15110
15122
  _delete(t2, e2) {
15111
15123
  if (!t2) throw new Error(Pp);
15112
- if (this._closed) throw new Error(qi);
15124
+ if (this._closed) throw new Error(Ji);
15113
15125
  const n2 = this._beginCommit(e2?.description ?? `Delete Named Item '${t2.getName()}'`);
15114
15126
  let r2 = null;
15115
15127
  try {
@@ -15157,7 +15169,7 @@ class jp {
15157
15169
  const i2 = this._toKey(e2);
15158
15170
  if (o2) {
15159
15171
  const { asFullRange: a3, asPartialRanges: l3, asRanges: c3 } = ((t4) => {
15160
- const e3 = t4.getCoords(), n3 = Hp(t4), r4 = n3.split(",");
15172
+ const e3 = t4.getCoords(), n3 = Wp(t4), r4 = n3.split(",");
15161
15173
  return { asFullRange: n3, asPartialRanges: r4, asRanges: e3 };
15162
15174
  })(o2);
15163
15175
  if (r3 = a3, s2 = l3, c3) {
@@ -15188,7 +15200,7 @@ class jp {
15188
15200
  }
15189
15201
  }
15190
15202
  _add(t2) {
15191
- if (this._closed) throw new Error(qi);
15203
+ if (this._closed) throw new Error(Ji);
15192
15204
  const e2 = this._getState();
15193
15205
  if (!t2) return e2;
15194
15206
  const n2 = this._cloneState(), r2 = t2.length;
@@ -15208,7 +15220,7 @@ class jp {
15208
15220
  return this._beginCommit(t2);
15209
15221
  }
15210
15222
  _getState() {
15211
- if (this._closed) throw new Error(qi);
15223
+ if (this._closed) throw new Error(Ji);
15212
15224
  return this._transactions.getState(this);
15213
15225
  }
15214
15226
  _beginCommit(t2) {
@@ -15225,7 +15237,7 @@ class jp {
15225
15237
  }
15226
15238
  }
15227
15239
  fromJSON(t2) {
15228
- if (this._closed) throw new Error(qi);
15240
+ if (this._closed) throw new Error(Ji);
15229
15241
  this._fromJSON(t2);
15230
15242
  }
15231
15243
  _initState() {
@@ -15318,7 +15330,7 @@ class Up extends Yi {
15318
15330
  return "Shape";
15319
15331
  }
15320
15332
  }
15321
- class Jp extends Yi {
15333
+ class qp extends Yi {
15322
15334
  constructor(t2) {
15323
15335
  super(t2), t2.json && this._updateState({ data: t2.json });
15324
15336
  }
@@ -15338,7 +15350,7 @@ class Jp extends Yi {
15338
15350
  return "CustomElement";
15339
15351
  }
15340
15352
  }
15341
- const qp = (t2, e2, n2 = true, r2 = true) => {
15353
+ const Jp = (t2, e2, n2 = true, r2 = true) => {
15342
15354
  let o2 = 0, s2 = 0;
15343
15355
  if (!n2 && !r2) return { x: o2, y: s2 };
15344
15356
  let i2 = false, a2 = 0;
@@ -16243,7 +16255,7 @@ class E_ {
16243
16255
  }, getA1(t3) {
16244
16256
  if (!_2) throw new Error(jh);
16245
16257
  return this._parseHeaderRangeAddress({ min: i2 + t3, end: i2 + t3 }) ?? _2;
16246
- } }, w2 = Ts(e2, (e3) => {
16258
+ } }, w2 = Ns(e2, (e3) => {
16247
16259
  const n3 = e3.value;
16248
16260
  if (!l2 && !n3) return;
16249
16261
  let r3 = l2;
@@ -16283,7 +16295,7 @@ class E_ {
16283
16295
  }, forEachSpan: (t3, e3) => o2(t3, e3, this._headers), forEachVisibleSpan: (t3, e3) => {
16284
16296
  const n3 = r2?.min ?? null, o3 = r2?.max ?? null;
16285
16297
  let s3;
16286
- if (s3 = e3?.includeHidden ? t3(n3, o3) : Ts(this._indexedHidden, (e4) => {
16298
+ if (s3 = e3?.includeHidden ? t3(n3, o3) : Ns(this._indexedHidden, (e4) => {
16287
16299
  if (e4.value) return;
16288
16300
  const n4 = t3(e4.min, e4.max);
16289
16301
  return n4 && n4.break ? n4 : void 0;
@@ -16316,7 +16328,7 @@ class E_ {
16316
16328
  at(t2) {
16317
16329
  if (t2 < 0 || t2 > this._maxDataIndex) return this._emptyHeader;
16318
16330
  if (this._lastHeaderRead?.offset === t2) return this._lastHeaderRead.header;
16319
- const e2 = Ns(t2, this._readCache);
16331
+ const e2 = Ts(t2, this._readCache);
16320
16332
  if (!e2) return this._emptyHeader;
16321
16333
  const n2 = this._options.getTextAt?.(t2) ?? t2 + "", r2 = this._options.createCellHeader(this, e2, { value: n2 });
16322
16334
  return this._lastHeaderRead = { offset: t2, header: r2 }, r2;
@@ -16335,7 +16347,7 @@ class E_ {
16335
16347
  if (e3) {
16336
16348
  if (t3.match(/[0-9]+/)) throw new Error("Invalid range address for header orientation");
16337
16349
  } else if (t3.match(/[a-zA-Z]+/)) throw new Error("Invalid range address for header orientation");
16338
- let o3 = Jc(t3, n2);
16350
+ let o3 = qc(t3, n2);
16339
16351
  if (!o3) {
16340
16352
  const e4 = Uc(t3.toUpperCase(), true);
16341
16353
  void 0 !== e4?.colIndex && (r2.colStart = e4.colIndex, r2.colEnd = e4.colIndex), void 0 !== e4?.rowIndex && (r2.rowStart = e4.rowIndex, r2.rowEnd = e4.rowIndex);
@@ -16822,8 +16834,8 @@ class R_ {
16822
16834
  processMerge(t2) {
16823
16835
  }
16824
16836
  }
16825
- 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 });
16826
- class T_ {
16837
+ 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 });
16838
+ class N_ {
16827
16839
  constructor(t2) {
16828
16840
  if (this._emitter = null, !t2?.sheet) throw new Error("SheetView requires a sheet.");
16829
16841
  const e2 = new Xi(this);
@@ -16952,7 +16964,7 @@ class T_ {
16952
16964
  const t2 = {}, e2 = Object.keys(this._state);
16953
16965
  for (let n3 = 0; n3 < e2.length; n3++) {
16954
16966
  const r2 = this._state[e2[n3]];
16955
- null != r2 && r2 !== N_[e2[n3]] && (t2[e2[n3]] = r2);
16967
+ null != r2 && r2 !== T_[e2[n3]] && (t2[e2[n3]] = r2);
16956
16968
  }
16957
16969
  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;
16958
16970
  const n2 = this._state.selection;
@@ -17002,17 +17014,17 @@ class T_ {
17002
17014
  this.update(e2);
17003
17015
  }
17004
17016
  clear(t2 = true) {
17005
- return this._state = { ...N_ }, this._movableSelection = Object.freeze([]), t2 && this._notifyAll(), this;
17017
+ return this._state = { ...T_ }, this._movableSelection = Object.freeze([]), t2 && this._notifyAll(), this;
17006
17018
  }
17007
17019
  update(t2) {
17008
- 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;
17020
+ 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;
17009
17021
  }
17010
17022
  get isISheetView() {
17011
17023
  return true;
17012
17024
  }
17013
17025
  }
17014
17026
  async function F_() {
17015
- const { getCrypto: t2 } = await import("./BWdeYoMSneJZAsOO.mjs");
17027
+ const { getCrypto: t2 } = await import("./WiA_qC_Y_I3OwexB.mjs");
17016
17028
  return t2();
17017
17029
  }
17018
17030
  const k_ = async (t2, e2, ...n2) => {
@@ -17223,17 +17235,17 @@ class z_ extends L_ {
17223
17235
  return super._toJSON(t2);
17224
17236
  }
17225
17237
  }
17226
- class W_ {
17238
+ class H_ {
17227
17239
  constructor(t2, e2, n2) {
17228
17240
  this._coords = Object.freeze(t2), this._sheet = e2, this._readOnly = n2?.readOnly ?? null;
17229
17241
  }
17230
17242
  _createRanges(t2, e2) {
17231
17243
  let n2 = this._options;
17232
- return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new W_(t2, this._sheet, n2);
17244
+ return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new H_(t2, this._sheet, n2);
17233
17245
  }
17234
17246
  _createRange(t2, e2) {
17235
17247
  let n2 = this._options;
17236
- return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new H_(t2, this._sheet, n2);
17248
+ return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new W_(t2, this._sheet, n2);
17237
17249
  }
17238
17250
  _validateWrite() {
17239
17251
  const t2 = this._readOnly;
@@ -17350,10 +17362,10 @@ class W_ {
17350
17362
  return this._sheet._getSnapshot(this.getCoords(), t2);
17351
17363
  }
17352
17364
  getEntireRows(t2, n2) {
17353
- return this._createRanges(Wg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Column, t2), n2);
17365
+ return this._createRanges(Hg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Column, t2), n2);
17354
17366
  }
17355
17367
  getEntireColumns(t2, n2) {
17356
- return this._createRanges(Wg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Row, t2), n2);
17368
+ return this._createRanges(Hg(this.getCoords(), this._sheet._entireCoords, e.Orientation.Row, t2), n2);
17357
17369
  }
17358
17370
  getDefaultShiftOrientation() {
17359
17371
  return this._sheet._getDefaultShiftOrientation(this.getCoords()[0]);
@@ -17374,13 +17386,13 @@ class W_ {
17374
17386
  return $g(this.getCoords(), e.Orientation.Column);
17375
17387
  }
17376
17388
  isEntireRowsAny() {
17377
- return Hg(this.getCoords(), this._sheet._entireCoords, false);
17389
+ return Wg(this.getCoords(), this._sheet._entireCoords, false);
17378
17390
  }
17379
17391
  isEntireColumnsAny() {
17380
17392
  return Vg(this.getCoords(), this._sheet._entireCoords, false);
17381
17393
  }
17382
17394
  isEntireRows() {
17383
- return Hg(this.getCoords(), this._sheet._entireCoords, true);
17395
+ return Wg(this.getCoords(), this._sheet._entireCoords, true);
17384
17396
  }
17385
17397
  isEntireColumns() {
17386
17398
  return Vg(this.getCoords(), this._sheet._entireCoords, true);
@@ -17418,7 +17430,7 @@ class W_ {
17418
17430
  return true;
17419
17431
  }
17420
17432
  }
17421
- class H_ {
17433
+ class W_ {
17422
17434
  constructor(t2, e2, n2) {
17423
17435
  this._coords = Object.freeze(t2), this._sheet = e2, this._readOnly = n2?.readOnly ?? null;
17424
17436
  }
@@ -17430,11 +17442,11 @@ class H_ {
17430
17442
  if (!t2) return Zg(n2, n2._entireCoords);
17431
17443
  if (n2._validateCoords(t2), n2._closed) return Zg(null, n2._entireCoords, t2);
17432
17444
  let r2 = this._options;
17433
- return e2 && (r2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new H_(t2, this._sheet, r2);
17445
+ return e2 && (r2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new W_(t2, this._sheet, r2);
17434
17446
  }
17435
17447
  _createRanges(t2, e2) {
17436
17448
  let n2 = this._options;
17437
- return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new W_(t2, this._sheet, n2);
17449
+ return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new H_(t2, this._sheet, n2);
17438
17450
  }
17439
17451
  _deriveRanges(t2, e2) {
17440
17452
  const n2 = this.getCoords();
@@ -17507,11 +17519,11 @@ class H_ {
17507
17519
  return this._setValueOrValues(t2, e2);
17508
17520
  }
17509
17521
  setValue(t2, e2) {
17510
- if (Array.isArray(t2)) throw new Error(Jh);
17522
+ if (Array.isArray(t2)) throw new Error(qh);
17511
17523
  return this._setValueOrValues(t2, e2);
17512
17524
  }
17513
17525
  setFormula(t2, e2) {
17514
- if (Array.isArray(t2)) throw new Error(Jh);
17526
+ if (Array.isArray(t2)) throw new Error(qh);
17515
17527
  return this._setValueOrValues(t2, e2);
17516
17528
  }
17517
17529
  _setValueOrValues(t2, n2) {
@@ -17599,11 +17611,11 @@ class H_ {
17599
17611
  }
17600
17612
  getEntireRows(t2, n2) {
17601
17613
  const r2 = this._sheet;
17602
- return this._createRange(Wg([this.getCoords()], r2._entireCoords, e.Orientation.Column, t2)[0], n2);
17614
+ return this._createRange(Hg([this.getCoords()], r2._entireCoords, e.Orientation.Column, t2)[0], n2);
17603
17615
  }
17604
17616
  getEntireColumns(t2, n2) {
17605
17617
  const r2 = this._sheet;
17606
- return this._createRange(Wg([this.getCoords()], r2._entireCoords, e.Orientation.Row, t2)[0], n2);
17618
+ return this._createRange(Hg([this.getCoords()], r2._entireCoords, e.Orientation.Row, t2)[0], n2);
17607
17619
  }
17608
17620
  getRowHeaders(t2) {
17609
17621
  const e2 = this.getCoords();
@@ -17688,7 +17700,7 @@ class H_ {
17688
17700
  }
17689
17701
  isEntireRows() {
17690
17702
  const t2 = this._sheet;
17691
- return Hg([this.getCoords()], t2._entireCoords, true);
17703
+ return Wg([this.getCoords()], t2._entireCoords, true);
17692
17704
  }
17693
17705
  isEntireColumns() {
17694
17706
  const t2 = this._sheet;
@@ -17696,7 +17708,7 @@ class H_ {
17696
17708
  }
17697
17709
  isEntireRange() {
17698
17710
  const t2 = this.getCoords(), e2 = this._sheet;
17699
- return Vg([t2], e2._entireCoords, true) && Hg([t2], e2._entireCoords, true);
17711
+ return Vg([t2], e2._entireCoords, true) && Wg([t2], e2._entireCoords, true);
17700
17712
  }
17701
17713
  getWidth() {
17702
17714
  const t2 = this._coords;
@@ -17817,8 +17829,8 @@ class H_ {
17817
17829
  }
17818
17830
  }
17819
17831
  const V_ = Math.pow(2, 14), $_ = Math.pow(2, 20), j_ = (t2) => `${t2}`, G_ = (t2) => Bc(t2), U_ = (t2) => `${t2 + 1}`;
17820
- let J_ = 0;
17821
- const q_ = () => [];
17832
+ let q_ = 0;
17833
+ const J_ = () => [];
17822
17834
  let K_ = 0;
17823
17835
  class X_ {
17824
17836
  constructor(t2) {
@@ -17876,7 +17888,7 @@ class X_ {
17876
17888
  if (this._validateCoords(t2), this._closed) return Zg(null, this._entireCoords, t2);
17877
17889
  null === n2 && this._options.readonly && (n2 = "Readonly sheet");
17878
17890
  let r2 = null;
17879
- return (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new H_(((t3) => {
17891
+ return (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new W_(((t3) => {
17880
17892
  if (!t3) return null;
17881
17893
  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 };
17882
17894
  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;
@@ -17884,7 +17896,7 @@ class X_ {
17884
17896
  }
17885
17897
  _createRanges(t2, e2, n2 = null) {
17886
17898
  let r2 = null;
17887
- return null === n2 && this._options.readonly && (n2 = "Readonly sheet"), (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new W_(t2, this, r2);
17899
+ return null === n2 && this._options.readonly && (n2 = "Readonly sheet"), (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new H_(t2, this, r2);
17888
17900
  }
17889
17901
  getRange(t2, e2) {
17890
17902
  let n2 = !e2 && t2 && (void 0 !== t2.rowStart || "string" == typeof t2);
@@ -17963,7 +17975,7 @@ class X_ {
17963
17975
  _rangesToCoords(t2, e2 = null, n2 = true, r2 = false) {
17964
17976
  if (e2 && this._closed) return o.EmptyArray;
17965
17977
  if (null == t2) return o.EmptyArray;
17966
- const s2 = this, i2 = Qc(t2, this._entireCoords, r2 ? Jc : qc, (t3) => {
17978
+ const s2 = this, i2 = Qc(t2, this._entireCoords, r2 ? qc : Jc, (t3) => {
17967
17979
  if (n2 && "string" == typeof t3) {
17968
17980
  const e3 = s2.getNames()?.getByName(t3);
17969
17981
  if (e3) return e3.getRanges().getCoords();
@@ -18110,7 +18122,7 @@ class X_ {
18110
18122
  const i3 = n3.continuous;
18111
18123
  if ("string" == typeof s3 || i3) {
18112
18124
  cS.colStart = o3, cS.rowStart = r3, cS.colEnd = o3, cS.rowEnd = r3;
18113
- const e3 = Tg(0, cS, n3.intersection, _2);
18125
+ const e3 = Ng(0, cS, n3.intersection, _2);
18114
18126
  n3.style = e3;
18115
18127
  const a3 = Mg(r3, o3, t.String, e3, s3, null, null, i3?.getCoords(), _2);
18116
18128
  if (a3) {
@@ -18139,7 +18151,7 @@ class X_ {
18139
18151
  }
18140
18152
  const u2 = a2 || !t2?.ignoreEmptyIntersections;
18141
18153
  let g2 = t2.includeRangeTypes;
18142
- true === g2 && (g2 = Nh);
18154
+ true === g2 && (g2 = Th);
18143
18155
  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;
18144
18156
  let p2, _2;
18145
18157
  if (m2 && r2) {
@@ -18151,14 +18163,14 @@ class X_ {
18151
18163
  const C2 = n2?.cellValuesGrid ?? null;
18152
18164
  let b2 = C2 ? C2.entries(l2) : ia, v2 = b2.next(), x2 = null, I2 = null, R2 = null;
18153
18165
  v2.done || (x2 = v2.value[0], I2 = v2.value[1]);
18154
- let A2 = p2?.[y2++], M2 = f2.next(), N2 = null;
18155
- const T2 = s2 !== e.Orientation.Row;
18166
+ let A2 = p2?.[y2++], M2 = f2.next(), T2 = null;
18167
+ const N2 = s2 !== e.Orientation.Row;
18156
18168
  let F2;
18157
18169
  const k2 = c.createCellComparator(s2, i2);
18158
18170
  let O2;
18159
18171
  if (!M2.done) {
18160
18172
  const t3 = M2.value;
18161
- N2 = t3.intersection, O2 = t3.start;
18173
+ T2 = t3.intersection, O2 = t3.start;
18162
18174
  }
18163
18175
  F2 = (t3) => {
18164
18176
  let e2 = null, n3 = null, r3 = null, o3 = false, s3 = false, i3 = null, a3 = null, l3 = false;
@@ -18170,25 +18182,25 @@ class X_ {
18170
18182
  if (l3) e2 = { colIndex: A2.colIndex, rowIndex: A2.rowIndex }, n3 = A2.scalar, r3 = A2.intersection, A2 = p2[y2++];
18171
18183
  else if (x2 && O2) {
18172
18184
  const t4 = k2(x2, O2);
18173
- 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);
18185
+ 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);
18174
18186
  } else if (x2) e2 = x2, n3 = I2, o3 = true;
18175
18187
  else {
18176
18188
  if (!O2 || !u2) return sa;
18177
- e2 = O2, r3 = N2, s3 = true;
18189
+ e2 = O2, r3 = T2, s3 = true;
18178
18190
  }
18179
18191
  if (o3 && (v2 = b2.next(), v2.done ? x2 = null : (x2 = v2.value[0], I2 = v2.value[1])), s3) {
18180
18192
  const t4 = u2 ? void 0 : x2;
18181
- if (M2 = f2.next(t4), M2.done) O2 = null, N2 = null;
18193
+ if (M2 = f2.next(t4), M2.done) O2 = null, T2 = null;
18182
18194
  else {
18183
18195
  const t5 = M2.value;
18184
- N2 = t5.intersection, O2 = t5.cell;
18196
+ T2 = t5.intersection, O2 = t5.cell;
18185
18197
  }
18186
18198
  }
18187
18199
  let c2 = false;
18188
18200
  const h3 = e2.rowIndex, d3 = e2.colIndex;
18189
- T2 || (c2 = h3 === R2?.rowIndex);
18201
+ N2 || (c2 = h3 === R2?.rowIndex);
18190
18202
  let g3 = false;
18191
- if (T2 || (g3 = h3 === x2?.rowIndex), c2) i3 = R2;
18203
+ if (N2 || (g3 = h3 === x2?.rowIndex), c2) i3 = R2;
18192
18204
  else if (m2) {
18193
18205
  let t4 = false;
18194
18206
  for (; !t4 && E2 < w2; ) {
@@ -18314,36 +18326,36 @@ class X_ {
18314
18326
  let v2 = false;
18315
18327
  m2 && this._hasRangedEntries("unlockSpatial", E2) && (b2[Ah.Type.Unlock] = false, v2 = true), this._hasRangedEntries("mergeSpatial", E2) && (b2[Ah.Type.Merge] = false, v2 = true);
18316
18328
  const x2 = this._rangeStateIterator({ bounds: E2, orientation: g2, includeRangeTypes: b2, reuseIterator: { done: false, value: null } });
18317
- let I2 = x2.next(), R2 = -1, A2 = -1, M2 = -1, N2 = -1, T2 = null;
18329
+ let I2 = x2.next(), R2 = -1, A2 = -1, M2 = -1, T2 = -1, N2 = null;
18318
18330
  if (!I2.done) {
18319
18331
  const t3 = I2.value, e2 = t3.start, n3 = t3.end;
18320
- 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;
18332
+ 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;
18321
18333
  }
18322
18334
  let F2 = (t3, e2) => {
18323
18335
  do {
18324
- if (!T2 || t3 <= M2 && e2 < M2) return null;
18325
- if (t3 >= R2 && e2 >= M2 && t3 <= A2 && e2 <= N2) return T2;
18326
- if (I2 = x2.next(), I2.done) T2 = null, F2 = null, v2 = false;
18336
+ if (!N2 || t3 <= M2 && e2 < M2) return null;
18337
+ if (t3 >= R2 && e2 >= M2 && t3 <= A2 && e2 <= T2) return N2;
18338
+ if (I2 = x2.next(), I2.done) N2 = null, F2 = null, v2 = false;
18327
18339
  else {
18328
18340
  const t4 = I2.value;
18329
- 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;
18341
+ 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;
18330
18342
  }
18331
- } while (T2);
18332
- return T2;
18343
+ } while (N2);
18344
+ return N2;
18333
18345
  };
18334
- 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) => {
18346
+ 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(), H2 = k2.contentfulSpatial.clone(), W2 = bl(u2), V2 = bl(u2, (t3, e2) => {
18335
18347
  if (t3 === e2) return e2;
18336
18348
  }), $2 = bl(u2, (t3, e2) => {
18337
18349
  if (t3 === e2) return e2;
18338
18350
  }), j2 = bl(u2, (t3, e2) => {
18339
18351
  if (t3 === e2) return e2;
18340
18352
  }), G2 = [];
18341
- let U2 = null, J2 = null;
18353
+ let U2 = null, q2 = null;
18342
18354
  if (false !== n2?.textParser) {
18343
18355
  const t3 = n2 && true !== n2.textParser ? n2.textParser : {};
18344
- J2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t3 }, U2 = new lm(p2, null, this._cellOptions);
18356
+ q2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t3 }, U2 = new lm(p2, null, this._cellOptions);
18345
18357
  }
18346
- const q2 = [], K2 = this._cellOptions, X2 = /* @__PURE__ */ new Map(), Y2 = dm, Q2 = (t3, e2, n3) => {
18358
+ const J2 = [], K2 = this._cellOptions, X2 = /* @__PURE__ */ new Map(), Y2 = dm, Q2 = (t3, e2, n3) => {
18347
18359
  const r3 = F2?.(e2, n3);
18348
18360
  if (r3?.merge) {
18349
18361
  const t4 = r3.merge.getCoords(), o4 = u2 ? t4.colStart : t4.rowStart, s3 = u2 ? t4.rowStart : t4.colStart;
@@ -18356,12 +18368,12 @@ class X_ {
18356
18368
  G2.push({ colStart: u2 ? e2 : n3, rowStart: u2 ? n3 : e2, colEnd: (u2 ? e2 : n3) + t4.width - 1, rowEnd: (u2 ? n3 : e2) + t4.height - 1 });
18357
18369
  }
18358
18370
  }
18359
- let o3 = vg(t3, K2, J2, X2);
18371
+ let o3 = vg(t3, K2, q2, X2);
18360
18372
  if (void 0 === o3) return;
18361
18373
  const a3 = o3.value;
18362
18374
  if (o3.stringToParse) {
18363
18375
  oS[0].colIndex = u2 ? e2 : n3, oS[0].rowIndex = u2 ? n3 : e2, oS[1] = a3, oS[2] = r3, U2.setState(oS);
18364
- const t4 = J2?.parse(o3.stringToParse, U2.context), s3 = vg(t4, K2, J2, X2, true);
18376
+ const t4 = q2?.parse(o3.stringToParse, U2.context), s3 = vg(t4, K2, q2, X2, true);
18365
18377
  if (U2.clear(), null === s3) return s3;
18366
18378
  void 0 !== s3 && (o3 = { ...s3 });
18367
18379
  }
@@ -18396,7 +18408,7 @@ class X_ {
18396
18408
  const e4 = i5[t6];
18397
18409
  let r5 = null;
18398
18410
  if (v2 || "number" != typeof e4 ? (v2 || null !== e4 || s2) && (r5 = Q2(e4, n3, c3)) : r5 = e4, null == r5) {
18399
- if (null === r5 && H2.append(n3, c3), h3.length > 0) {
18411
+ if (null === r5 && W2.append(n3, c3), h3.length > 0) {
18400
18412
  const t7 = Y2(h3, p2);
18401
18413
  o4.push([l3, t7]), h3 = [];
18402
18414
  }
@@ -18409,28 +18421,28 @@ class X_ {
18409
18421
  o4.push([l3, t6]), h3 = null;
18410
18422
  }
18411
18423
  }
18412
- o4.length > 0 && q2.push([n3, o4]);
18424
+ o4.length > 0 && J2.push([n3, o4]);
18413
18425
  }
18414
- const r3 = H2.done(), o3 = r3.length;
18426
+ const r3 = W2.done(), o3 = r3.length;
18415
18427
  for (let t4 = 0; t4 < o3; t4++) {
18416
18428
  const e2 = r3[t4];
18417
- O2.delete(r3[t4]), W2.insertNonOverlapping({ ...e2, value: null });
18429
+ O2.delete(r3[t4]), H2.insertNonOverlapping({ ...e2, value: null });
18418
18430
  const n3 = D2.delete(e2);
18419
18431
  this._updateFormulaSpatial(B2, null, n3);
18420
18432
  }
18421
18433
  let i3;
18422
- q2.length > 0 && (O2.setValues(q2), i3 = { tuples: q2, bounds: l2 });
18434
+ J2.length > 0 && (O2.setValues(J2), i3 = { tuples: J2, bounds: l2 });
18423
18435
  let g3, m3 = j2.done();
18424
18436
  if (m3.length > 1 && (m3 = el(m3, e.Orientation.Column, 1)), i3 || m3.length > 0) {
18425
18437
  const t4 = D2.setInputs(i3, m3);
18426
18438
  g3 = this._updateFormulaSpatial(B2, t4.inserts, t4.removes, k2.directStyleSpatial);
18427
18439
  }
18428
- const f3 = um(q2, u2), C3 = f3.length;
18429
- for (let t4 = 0; t4 < C3; t4++) W2.insertNonOverlapping(f3[t4]);
18440
+ const f3 = um(J2, u2), C3 = f3.length;
18441
+ for (let t4 = 0; t4 < C3; t4++) H2.insertNonOverlapping(f3[t4]);
18430
18442
  const b3 = V2.done();
18431
18443
  b3.length > 0 && this._updateStyles(b3), G2.length > 0 && this._merge(G2);
18432
18444
  const x3 = $2.done();
18433
- 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) {
18445
+ if (x3.length > 0 && this._setHyperlinks(x3), this._updateState({ cellValuesGrid: O2, contentfulSpatial: H2, calcGraph: D2, formulaSpatial: B2, spillSpatial: L2, pendingSpatial: P2, calcErrorsSpatial: z2 }), g3 && g3.length > 0 && this._updateStyles(g3, void 0, {}, true), n2?.autoFit) {
18434
18446
  const t4 = "boolean" == typeof n2.autoFit ? aS : n2.autoFit;
18435
18447
  this._autoFit([E2], t4);
18436
18448
  }
@@ -18502,8 +18514,8 @@ class X_ {
18502
18514
  }
18503
18515
  if (!w2) return;
18504
18516
  if (0 === S2.length) return;
18505
- const M2 = /* @__PURE__ */ new Map(), N2 = /* @__PURE__ */ new Map(), T2 = n2?.collators ?? ta.DefaultCollators, F2 = T2.length;
18506
- for (let t3 = 0; t3 < F2; t3++) M2.set(T2[t3].type, T2[t3].compare), N2.set(T2[t3].type, t3);
18517
+ const M2 = /* @__PURE__ */ new Map(), T2 = /* @__PURE__ */ new Map(), N2 = n2?.collators ?? ta.DefaultCollators, F2 = N2.length;
18518
+ for (let t3 = 0; t3 < F2; t3++) M2.set(N2[t3].type, N2[t3].compare), T2.set(N2[t3].type, t3);
18507
18519
  let k2 = null, O2 = null, D2 = null;
18508
18520
  S2.sort((t3, e2) => {
18509
18521
  const n3 = p2.length;
@@ -18516,14 +18528,14 @@ class X_ {
18516
18528
  const h3 = o3.getType(), d2 = s3.getType();
18517
18529
  let u3 = 0;
18518
18530
  if (h3 !== d2) {
18519
- let t4 = N2.get(h3);
18520
- u3 = N2.get(d2) - t4;
18531
+ let t4 = T2.get(h3);
18532
+ u3 = T2.get(d2) - t4;
18521
18533
  } else {
18522
18534
  let t4 = O2;
18523
18535
  if (k2 !== h3) {
18524
18536
  t4 = M2.get(h3), O2 = t4, k2 = h3;
18525
- let e3 = N2.get(d2);
18526
- const r4 = T2[e3].defaultOptions;
18537
+ let e3 = T2.get(d2);
18538
+ const r4 = N2[e3].defaultOptions;
18527
18539
  D2 = { ...r4, ...n4.collatorOptions };
18528
18540
  }
18529
18541
  u3 = t4(i3, a3, D2);
@@ -18537,8 +18549,8 @@ class X_ {
18537
18549
  v2 || (L2 = this._getVisible(L2, { orientations: c2 ? e.Orientations.Row : e.Orientations.Column })), this._clear(L2, void 0, void 0, true);
18538
18550
  const P2 = this._createIncrementalUpdater({ orientation: l2 });
18539
18551
  let z2 = c2 ? u2.rowStart : u2.colStart;
18540
- const W2 = S2.length;
18541
- for (let t3 = 0; t3 < W2; t3++) {
18552
+ const H2 = S2.length;
18553
+ for (let t3 = 0; t3 < H2; t3++) {
18542
18554
  const e2 = S2[t3];
18543
18555
  if (b2 && (z2 = b2(z2)), e2) {
18544
18556
  const t4 = e2.values, n3 = t4.length;
@@ -18565,7 +18577,7 @@ class X_ {
18565
18577
  const p2 = { ...t2 };
18566
18578
  let _2 = { ...t2 };
18567
18579
  const S2 = [t2], w2 = this._getMerges(S2);
18568
- if (w2.length > 0 && !c.isRangeWithinRange(c.unionRangesArrays(w2), t2)) throw new Error(Hh);
18580
+ if (w2.length > 0 && !c.isRangeWithinRange(c.unionRangesArrays(w2), t2)) throw new Error(Wh);
18569
18581
  const y2 = { ..._2 };
18570
18582
  let E2 = 1;
18571
18583
  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;
@@ -18576,20 +18588,20 @@ class X_ {
18576
18588
  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;
18577
18589
  }
18578
18590
  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));
18579
- 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;
18580
- N2 || (g2.reverse = true);
18581
- const T2 = N2 ? R2 + 1 : A2, F2 = (N2 ? M2 : I2 - 1) - T2 + 1, k2 = i2 ? t2.colEnd : t2.rowEnd;
18591
+ 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;
18592
+ T2 || (g2.reverse = true);
18593
+ const N2 = T2 ? R2 + 1 : A2, F2 = (T2 ? M2 : I2 - 1) - N2 + 1, k2 = i2 ? t2.colEnd : t2.rowEnd;
18582
18594
  l2.push(c.unionRanges(p2, t2));
18583
18595
  const O2 = [];
18584
18596
  let D2 = null;
18585
18597
  h2 || (m2 = this._beginCommit({ description: "Auto Fill", operation: { name: "autoFill", params: [t2, n2, r2] } }));
18586
- const B2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !N2, orientation: i2 ? e.Orientation.Column : e.Orientation.Row, includeRangeTypes: { [Ah.Type.Style]: false } });
18598
+ const B2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !T2, orientation: i2 ? e.Orientation.Column : e.Orientation.Row, includeRangeTypes: { [Ah.Type.Style]: false } });
18587
18599
  let L2 = B2.next();
18588
18600
  for (; !L2.done; ) {
18589
18601
  const t3 = L2.value.context, e2 = t3.getCell(), n3 = t3.getCoords();
18590
- D2?.oppositeIndex !== n3[v2] && (D2 = { oppositeIndex: n3[v2], lastIndex: N2 ? I2 - 1 : R2 + 1, values: [] }, O2.push(D2));
18602
+ D2?.oppositeIndex !== n3[v2] && (D2 = { oppositeIndex: n3[v2], lastIndex: T2 ? I2 - 1 : R2 + 1, values: [] }, O2.push(D2));
18591
18603
  const r3 = n3[C2];
18592
- if (N2) for (let t4 = D2.lastIndex + 1; t4 < r3; t4++) D2.values.push(null);
18604
+ if (T2) for (let t4 = D2.lastIndex + 1; t4 < r3; t4++) D2.values.push(null);
18593
18605
  else for (let t4 = D2.lastIndex - 1; t4 > r3; t4--) D2.values.push(null);
18594
18606
  D2.lastIndex = r3;
18595
18607
  const o3 = e2.toDate();
@@ -18611,34 +18623,34 @@ class X_ {
18611
18623
  if (n3) return n3;
18612
18624
  }
18613
18625
  return ks.Types.Copy.createFillAt(e2);
18614
- }, W2 = this;
18626
+ }, H2 = this;
18615
18627
  if (h2) {
18616
18628
  const t3 = O2[O2.length - 1];
18617
18629
  if (O2[O2.length - 1]?.oppositeIndex !== k2) return null;
18618
18630
  const n3 = z2(u2, t3.values);
18619
18631
  return h2((t4) => {
18620
- const r3 = W2._rangeToCoords(t4);
18632
+ const r3 = H2._rangeToCoords(t4);
18621
18633
  let s3;
18622
18634
  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 });
18623
- const a3 = i2 ? s3.rowIndex : s3.colIndex, l3 = { value: n3(N2 ? a3 - I2 : I2 - a3 + x2 - 1) };
18635
+ const a3 = i2 ? s3.rowIndex : s3.colIndex, l3 = { value: n3(T2 ? a3 - I2 : I2 - a3 + x2 - 1) };
18624
18636
  let c2 = null;
18625
18637
  return c2 = d2 ? this.createTemporaryCell(l3, s3) : this.createTemporaryCell(null, s3).createTemporaryCell(l3), c2;
18626
18638
  }), false;
18627
18639
  }
18628
- const H2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }), V2 = O2.length;
18640
+ const W2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }), V2 = O2.length;
18629
18641
  O2.sort((t3, e2) => t3.oppositeIndex - e2.oppositeIndex);
18630
18642
  for (let t3 = 0; t3 < V2; t3++) {
18631
- const e2 = t3, n3 = z2(u2, O2[e2].values), r3 = O2[e2].oppositeIndex, o3 = N2 ? x2 : x2 + F2 - 1, s3 = this.isDate1904();
18643
+ const e2 = t3, n3 = z2(u2, O2[e2].values), r3 = O2[e2].oppositeIndex, o3 = T2 ? x2 : x2 + F2 - 1, s3 = this.isDate1904();
18632
18644
  for (let t4 = 0; t4 < F2; t4++) {
18633
- let e3 = n3(o3 + (N2 ? t4 : -t4));
18645
+ let e3 = n3(o3 + (T2 ? t4 : -t4));
18634
18646
  Kr(e3) && (e3 = no(e3, s3));
18635
- const a3 = T2 + t4;
18636
- i2 ? H2.pushAt(a3, r3, e3) : H2.pushAt(r3, a3, e3);
18647
+ const a3 = N2 + t4;
18648
+ i2 ? W2.pushAt(a3, r3, e3) : W2.pushAt(r3, a3, e3);
18637
18649
  }
18638
18650
  }
18639
- this._clear([p2], r2?.contentsOnly ? Yh.Content.Formats : void 0), H2.apply();
18651
+ this._clear([p2], r2?.contentsOnly ? Yh.Content.Formats : void 0), W2.apply();
18640
18652
  const $2 = this._getMerges([_2]), j2 = c.unionRangesArrays($2);
18641
- if ($2.length > 0 && !c.isRangeWithinRange(j2, _2)) throw new Error(Hh);
18653
+ if ($2.length > 0 && !c.isRangeWithinRange(j2, _2)) throw new Error(Wh);
18642
18654
  if ($2.length > 0) {
18643
18655
  const n3 = [], r3 = s2 / E2;
18644
18656
  if (i2) {
@@ -18662,21 +18674,21 @@ class X_ {
18662
18674
  }
18663
18675
  this._merge(n3);
18664
18676
  }
18665
- const G2 = this._getState(), U2 = {}, J2 = {};
18666
- J2.directStyleSpatial = G2.directStyleSpatial, J2.continuousFillSpatial = G2.continuousFillSpatial;
18667
- let q2 = t2, K2 = p2;
18668
- if (!N2) {
18677
+ const G2 = this._getState(), U2 = {}, q2 = {};
18678
+ q2.directStyleSpatial = G2.directStyleSpatial, q2.continuousFillSpatial = G2.continuousFillSpatial;
18679
+ let J2 = t2, K2 = p2;
18680
+ if (!T2) {
18669
18681
  let e2 = (i2 ? _2.rowEnd + 1 - _2.rowStart : _2.colEnd + 1 - _2.colStart) % x2;
18670
18682
  const n3 = i2 ? "rowStart" : "colStart", r3 = i2 ? "rowEnd" : "colEnd";
18671
- 0 !== e2 && (K2 = { ...p2, [r3]: Math.min(p2[r3], p2[n3] + e2) }, q2 = { ...t2, [n3]: t2[r3] - e2 + 1 }, p2[n3] = p2[n3] + e2);
18683
+ 0 !== e2 && (K2 = { ...p2, [r3]: Math.min(p2[r3], p2[n3] + e2) }, J2 = { ...t2, [n3]: t2[r3] - e2 + 1 }, p2[n3] = p2[n3] + e2);
18672
18684
  }
18673
- const X2 = Object.keys(J2), Y2 = X2.length;
18685
+ const X2 = Object.keys(q2), Y2 = X2.length;
18674
18686
  for (let t3 = 0; t3 < Y2; t3++) {
18675
- const e2 = X2[t3], n3 = J2[e2].createCopiedEntries(q2, K2), r3 = G2[e2].clone(), o3 = n3.removes, s3 = o3.length;
18687
+ const e2 = X2[t3], n3 = q2[e2].createCopiedEntries(J2, K2), r3 = G2[e2].clone(), o3 = n3.removes, s3 = o3.length;
18676
18688
  for (let t4 = 0; t4 < s3; t4++) r3.remove(o3[t4]);
18677
18689
  r3.load(n3.inserts), U2[e2] = r3;
18678
18690
  }
18679
- if (N2) {
18691
+ if (T2) {
18680
18692
  const e2 = this.getTables().getItems({ address: { rowIndex: t2.rowEnd, colIndex: t2.colEnd } });
18681
18693
  if (1 === e2.length) {
18682
18694
  const t3 = e2[0], n3 = t3.getRange().getCoords();
@@ -18770,7 +18782,7 @@ class X_ {
18770
18782
  if (e4) if (h2) {
18771
18783
  d2 || (d2 = pi.Styles.lookupStyle(h2)?.formatType);
18772
18784
  const t6 = pi.Styles.lookupStyle(e4)?.formatType;
18773
- qr(t6, d2) > 0 ? (d2 = t6, h2 = e4) : u2 = true;
18785
+ Jr(t6, d2) > 0 ? (d2 = t6, h2 = e4) : u2 = true;
18774
18786
  } else h2 = e4;
18775
18787
  }
18776
18788
  }
@@ -18945,7 +18957,7 @@ class X_ {
18945
18957
  }
18946
18958
  }
18947
18959
  _merge(t2, n2 = null) {
18948
- if (this._protectionCheck(q_, t2), 1 === t2.length && c.isSingleCell(t2[0])) return;
18960
+ if (this._protectionCheck(J_, t2), 1 === t2.length && c.isSingleCell(t2[0])) return;
18949
18961
  let r2 = e.Orientations.Both;
18950
18962
  n2?.orientations ? r2 = n2?.orientations : n2 === e.Orientations.Row ? r2 = e.Orientations.Row : n2 === e.Orientations.Column && (r2 = e.Orientations.Column);
18951
18963
  const o2 = n2?.discardMultipleValues ?? false;
@@ -19032,7 +19044,7 @@ class X_ {
19032
19044
  }
19033
19045
  }
19034
19046
  _unmerge(t2, e2) {
19035
- if (this._protectionCheck(q_, t2), Yl(t2)) throw new Error("We can't unmerge intersecting ranges.");
19047
+ if (this._protectionCheck(J_, t2), Yl(t2)) throw new Error("We can't unmerge intersecting ranges.");
19036
19048
  if (!this._getState()) return null;
19037
19049
  const n2 = c.unionRangesArrays(t2), r2 = fm(t2), o2 = this._beginCommit({ description: e2?.description ?? "Unmerge" }), s2 = o2.getState(this).mergeSpatial, i2 = [];
19038
19050
  try {
@@ -19059,7 +19071,7 @@ class X_ {
19059
19071
  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 });
19060
19072
  const e2 = new X_(t2), n2 = this._transactions.getState(this);
19061
19073
  e2._updateState(n2);
19062
- const r2 = new T_({ sheet: this, json: this.getView().toJSON() });
19074
+ const r2 = new N_({ sheet: this, json: this.getView().toJSON() });
19063
19075
  return r2.selectMovables(this.getView().getMovableSelection()), e2.setView(r2), e2;
19064
19076
  }
19065
19077
  _getSnapshot(t2, e2) {
@@ -19110,7 +19122,7 @@ class X_ {
19110
19122
  s4 = Math.min(e6.x, s4), i5 = Math.min(e6.y, i5);
19111
19123
  }
19112
19124
  e5 = t4 - s4, n5 = r5 - i5;
19113
- const c3 = o2[0].getCoords(), d4 = { ...c3, x: c3.x + e5, y: c3.y + n5 }, u4 = qp(a4.getMovables(), d4);
19125
+ const c3 = o2[0].getCoords(), d4 = { ...c3, x: c3.x + e5, y: c3.y + n5 }, u4 = Jp(a4.getMovables(), d4);
19114
19126
  e5 += u4.x, n5 += u4.y;
19115
19127
  } else if (s3) {
19116
19128
  const t4 = a4.getRange(d3).getBounds();
@@ -19132,7 +19144,7 @@ class X_ {
19132
19144
  if (i2.getMovableSelection().length > 0) return h2;
19133
19145
  l2.push(h2);
19134
19146
  }
19135
- if (t2.length > 1) throw new Error(qh);
19147
+ if (t2.length > 1) throw new Error(Jh);
19136
19148
  const d2 = { singleMerge: null };
19137
19149
  l2.push({ copyTo(n3, o2) {
19138
19150
  const s3 = { ...e2, ...o2 };
@@ -19259,16 +19271,16 @@ class X_ {
19259
19271
  }
19260
19272
  s3 && (_3 = true), a2.singleMerge && (g2 = false, f2 = false);
19261
19273
  const b3 = h2.colStart - d2.colStart, R2 = h2.rowStart - d2.rowStart, A2 = i2.adjustCells;
19262
- let M2 = { ...Th };
19274
+ let M2 = { ...Nh };
19263
19275
  if (delete M2[Ah.Type.Style], !g2) {
19264
19276
  const t3 = this.getProtection().isLocked();
19265
19277
  M2 = {}, t3 && (M2[Ah.Type.Unlock] = false);
19266
19278
  }
19267
- const N2 = e.Orientation.Column;
19268
- let T2;
19279
+ const T2 = e.Orientation.Column;
19280
+ let N2;
19269
19281
  if (m2) {
19270
- T2 = p2.startIncrementalUpdates({ orientation: i2.transpose ? e.Orientation.Row : e.Orientation.Column });
19271
- const t3 = { orientation: N2, includeRangeTypes: M2, bounds: d2 }, n3 = new lm(this._strings, t3, this._cellOptions), r4 = (t4, e2, r5) => {
19282
+ N2 = p2.startIncrementalUpdates({ orientation: i2.transpose ? e.Orientation.Row : e.Orientation.Column });
19283
+ const t3 = { orientation: T2, includeRangeTypes: M2, bounds: d2 }, n3 = new lm(this._strings, t3, this._cellOptions), r4 = (t4, e2, r5) => {
19272
19284
  const o3 = t4[0], a3 = n3.setState(t4), l4 = n3.context, c2 = l4.getCell(), u4 = c2.isTopLeft();
19273
19285
  let p3 = R2, w3 = b3;
19274
19286
  if (s3) {
@@ -19287,7 +19299,7 @@ class X_ {
19287
19299
  const t5 = A2(a3, l4, { rowIndex: p3, colIndex: w3 }, i2);
19288
19300
  void 0 !== t5 && (C3 = t5, y3 = true);
19289
19301
  }
19290
- if (y3 && (T2.pushAt(p3, w3, C3), g2)) {
19302
+ if (y3 && (N2.pushAt(p3, w3, C3), g2)) {
19291
19303
  const t5 = c2.getSpans();
19292
19304
  (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 });
19293
19305
  }
@@ -19301,7 +19313,7 @@ class X_ {
19301
19313
  } };
19302
19314
  if (!a2.singleMerge && !c.isEqualRanges(v2, d2)) {
19303
19315
  const t4 = v2.colEnd - v2.colStart + 1, e2 = v2.rowEnd - v2.rowStart + 1;
19304
- l3 = new fl({ delegate: l3, bounds: d2, orientation: N2, dims: { major: i2.transpose ? e2 : t4, minor: i2.transpose ? t4 : e2 } });
19316
+ l3 = new fl({ delegate: l3, bounds: d2, orientation: T2, dims: { major: i2.transpose ? e2 : t4, minor: i2.transpose ? t4 : e2 } });
19305
19317
  }
19306
19318
  let u3 = l3.next();
19307
19319
  for (; !u3.done; ) {
@@ -19317,7 +19329,7 @@ class X_ {
19317
19329
  for (let t4 = 0; t4 < s4; t4++) r4.remove(o2[t4]);
19318
19330
  r4.load(n3.inserts), B2[e2] = r4;
19319
19331
  }
19320
- 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 }) });
19332
+ 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 }) });
19321
19333
  } catch (t3) {
19322
19334
  throw console.warn(t3), I2.rollback(), new Error(((t4) => `Unable to paste: ${t4}`)(t3.message), { cause: t3 });
19323
19335
  }
@@ -19327,7 +19339,7 @@ class X_ {
19327
19339
  if (t2.isISnapshot) return t2;
19328
19340
  const n2 = t2;
19329
19341
  let r2 = null;
19330
- if (n2?.isICellRanges) throw new Error(qh);
19342
+ if (n2?.isICellRanges) throw new Error(Jh);
19331
19343
  if (r2 = n2?.isICellRange ? n2 : this.getRange(n2), r2.isICellRange) {
19332
19344
  const t3 = r2;
19333
19345
  if (t3.isInvalid()) throw new Error(Kh);
@@ -19417,7 +19429,7 @@ class X_ {
19417
19429
  _insertCells(t2, n2, r2, o2 = void 0) {
19418
19430
  const s2 = this;
19419
19431
  o2 = o2 ?? ((t3, e2) => {
19420
- s2._validateCoords(t3, e2 ?? Wh);
19432
+ s2._validateCoords(t3, e2 ?? Hh);
19421
19433
  });
19422
19434
  const i2 = r2?.description ?? "Insert Cells", a2 = (n2 ?? this._getDefaultShiftOrientation(t2[0])) === e.Orientation.Column;
19423
19435
  if (this._protectionCheck(() => [a2 ? "insertColumns" : "insertRows"], t2, i2), Yl(t2)) throw new Error("We can't insert cells with overlapping selections.");
@@ -19439,20 +19451,20 @@ class X_ {
19439
19451
  }
19440
19452
  n3 = n3.clone(), n3.shift(e2, f2), this._updateState({ cellValuesGrid: n3 });
19441
19453
  }
19442
- const g3 = e2.colStart <= l2.colStart && e2.colEnd >= l2.colEnd, M3 = e2.rowStart <= l2.rowStart && e2.rowEnd >= l2.rowEnd, N3 = (t4, e3, n4, r4) => {
19454
+ const g3 = e2.colStart <= l2.colStart && e2.colEnd >= l2.colEnd, M3 = e2.rowStart <= l2.rowStart && e2.rowEnd >= l2.rowEnd, T3 = (t4, e3, n4, r4) => {
19443
19455
  let o3 = null;
19444
19456
  n4 > 1 && (o3 = t4.at(n4 - 1));
19445
19457
  const s4 = r4 - n4 + 1;
19446
19458
  e3?.(n4, s4), o3 && t4.updateHeaderPairs([{ address: { min: n4, max: r4 }, update: o3 }]);
19447
19459
  };
19448
- 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) => {
19460
+ 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) => {
19449
19461
  I2 === m2.rangesListenerMap && (I2 = new Map(I2)), this._processListenerShift(I2, R2, m2.rangesListenerMap, t4);
19450
19462
  } }), v2 = v2.shift({ range: e2, direction: f2, cloneIfUpdate: v2 === m2.rangesListenerSpatial2, coordValidator: o2 });
19451
19463
  }
19452
- let N2 = m2.formulaSpatial, T2 = m2.spillSpatial, F2 = m2.pendingSpatial;
19453
- 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 } });
19464
+ let T2 = m2.formulaSpatial, N2 = m2.spillSpatial, F2 = m2.pendingSpatial;
19465
+ 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 } });
19454
19466
  } catch (t3) {
19455
- if (console.warn(t3), g2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Wh);
19467
+ if (console.warn(t3), g2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Hh);
19456
19468
  throw t3;
19457
19469
  }
19458
19470
  }
@@ -19476,7 +19488,7 @@ class X_ {
19476
19488
  }
19477
19489
  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 } });
19478
19490
  } catch (t3) {
19479
- if (u2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Wh);
19491
+ if (u2.rollback(), t3 instanceof d) throw new Error(t3.message ?? Hh);
19480
19492
  throw t3;
19481
19493
  }
19482
19494
  }
@@ -19485,7 +19497,7 @@ class X_ {
19485
19497
  r2 = { expandOnly: false, skipCustomSize: false, minContent: false, ...r2 };
19486
19498
  const o2 = "Autofit";
19487
19499
  let s2;
19488
- const i2 = Vg(n2, this._entireCoords, true), a2 = Hg(n2, this._entireCoords, true);
19500
+ const i2 = Vg(n2, this._entireCoords, true), a2 = Wg(n2, this._entireCoords, true);
19489
19501
  s2 = !i2 && a2 ? `${o2} ${y_}` : !a2 && i2 ? `${o2} ${w_}` : a2 && i2 ? `${o2} All` : `${o2}`;
19490
19502
  let l2 = r2.orientations !== e.Orientations.Row;
19491
19503
  this._colHeaders.isProtected() && (l2 = false);
@@ -19502,19 +19514,19 @@ class X_ {
19502
19514
  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;
19503
19515
  const b2 = this._styles.getNormal(), v2 = this._cellOptions, x2 = r2.orientations === e.Orientations.Row, I2 = /* @__PURE__ */ new Map(), R2 = nl(n2, 1);
19504
19516
  R2.sort(c.createRangeComparator(e.Orientation.Column));
19505
- const A2 = R2.length, M2 = { skipCustomSize: r2.skipCustomSize }, N2 = Ko.getDeviceScale(), T2 = this._defaultRowHeight() * N2, F2 = this._defaultColWidth(), k2 = (t2, e2 = 1) => {
19506
- if (0 !== t2 && !(e2 > 1)) return t2 = Math.max(t2, T2), (e3) => u2 ? t2 : Math.max(e3, t2 ?? T2);
19517
+ const A2 = R2.length, M2 = { skipCustomSize: r2.skipCustomSize }, T2 = Ko.getDeviceScale(), N2 = this._defaultRowHeight() * T2, F2 = this._defaultColWidth(), k2 = (t2, e2 = 1) => {
19518
+ if (0 !== t2 && !(e2 > 1)) return t2 = Math.max(t2, N2), (e3) => u2 ? t2 : Math.max(e3, t2 ?? N2);
19507
19519
  }, O2 = (t2, e2 = 1) => {
19508
19520
  if (0 !== t2 && !(e2 > 1)) return (e3) => d2 ? t2 : Math.max(e3, t2 ?? F2);
19509
19521
  };
19510
19522
  for (let n3 = 0; n3 < A2; n3++) {
19511
19523
  const r3 = [];
19512
- let f3 = -1, p3 = false, A3 = b2, N3 = 1, T3 = 1, F3 = 1;
19524
+ let f3 = -1, p3 = false, A3 = b2, T3 = 1, N3 = 1, F3 = 1;
19513
19525
  const D2 = R2[n3];
19514
19526
  let B2 = D2.colStart, L2 = D2.rowStart, P2 = D2.colEnd, z2 = D2.rowEnd;
19515
- const W2 = this._getUsedCoords();
19516
- (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);
19517
- 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) => {
19527
+ const H2 = this._getUsedCoords();
19528
+ (u2 || d2) && H2 && (B2 = u2 ? H2.colStart : D2.colStart, L2 = d2 ? H2.rowStart : D2.rowStart, P2 = u2 ? H2.colEnd : D2.colEnd, z2 = d2 ? H2.rowEnd : D2.rowEnd);
19529
+ 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: P2, rowEnd: z2 }, orientation: e.Orientation.Column }, V2 = h2 ? [] : void 0, $2 = l2 ? [] : void 0, j2 = (t2, e2, n4) => {
19518
19530
  if (t2 > e2) return null;
19519
19531
  const r4 = [];
19520
19532
  let o4 = t2;
@@ -19533,12 +19545,12 @@ class X_ {
19533
19545
  r4.push(t3);
19534
19546
  }
19535
19547
  return r4;
19536
- }, G2 = this._rangeStateIterator(H2);
19548
+ }, G2 = this._rangeStateIterator(W2);
19537
19549
  let U2 = G2.next();
19538
19550
  for (; !U2.done; ) {
19539
19551
  const t2 = U2.value, e2 = t2.intersection, n4 = t2.start, r4 = t2.end;
19540
19552
  Z_.colStart = n4.colIndex, Z_.rowStart = n4.rowIndex, Z_.colEnd = r4.colIndex, Z_.rowEnd = r4.rowIndex;
19541
- const o4 = c.intersectRanges(Z_, D2, Q_), s4 = Tg(0, o4, e2, v2).getBestFit();
19553
+ const o4 = c.intersectRanges(Z_, D2, Q_), s4 = Ng(0, o4, e2, v2).getBestFit();
19542
19554
  if (h2) {
19543
19555
  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 };
19544
19556
  V2.push(i4);
@@ -19549,13 +19561,13 @@ class X_ {
19549
19561
  }
19550
19562
  U2 = G2.next();
19551
19563
  }
19552
- const J2 = this._cellStateIterator({ ...H2, includeRangeTypes: { [Ah.Type.Merge]: false, [Ah.Type.Table]: false, [Ah.Type.Style]: false, [Ah.Type.Continuous]: false }, ignoreEmptyIntersections: true });
19553
- let q2, K2, X2, Y2 = J2.next(), Q2 = 1, Z2 = 1;
19564
+ const q2 = this._cellStateIterator({ ...W2, includeRangeTypes: { [Ah.Type.Merge]: false, [Ah.Type.Table]: false, [Ah.Type.Style]: false, [Ah.Type.Continuous]: false }, ignoreEmptyIntersections: true });
19565
+ let J2, K2, X2, Y2 = q2.next(), Q2 = 1, Z2 = 1;
19554
19566
  for (; !Y2.done; ) {
19555
19567
  const e2 = Y2.value, n4 = e2[0], l3 = e2[2];
19556
19568
  let h3 = b2;
19557
19569
  const d3 = l3?.directStyle ?? l3?.table.getStyle() ?? null;
19558
- d3 === q2 ? h3 = K2 : (h3 = d3 ? Tg(0, c.cellToRange(n4, tS), l3, v2) : b2, K2 = h3);
19570
+ d3 === J2 ? h3 = K2 : (h3 = d3 ? Ng(0, c.cellToRange(n4, tS), l3, v2) : b2, K2 = h3);
19559
19571
  let u3 = 1, g3 = 1;
19560
19572
  const m3 = l3?.merge ?? null;
19561
19573
  if (m3 === X2) u3 = Q2, g3 = Z2;
@@ -19571,7 +19583,7 @@ class X_ {
19571
19583
  F3 = O3.getCoords().colEnd - x3 + 1;
19572
19584
  }
19573
19585
  let B3 = false, L3 = false;
19574
- 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;
19586
+ if (J2 === d3 && u3 === T3 && g3 === N3 && M3 !== t.String && M3 !== t.Error && k3 === p3 || (B3 = true, M3 === t.RichData && (L3 = true), L3 && (B3 = false)), J2 = d3, X2 = m3, (f3 !== x3 || B3) && (-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: u3, spanHeight: g3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), measureWidth: -1, measureHeight: -1, colSpan: F3, isFit: p3 }), f3 = x3, A3 = h3, p3 = k3, 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;
19575
19587
  else switch (M3) {
19576
19588
  case t.Number:
19577
19589
  0 === R3 && (i3 = true), o3 = Math.min(o3, R3), s3 = Math.max(s3, R3);
@@ -19585,9 +19597,9 @@ class X_ {
19585
19597
  case t.Boolean:
19586
19598
  R3 ? S2 = true : w2 = true;
19587
19599
  }
19588
- Y2 = J2.next();
19600
+ Y2 = q2.next();
19589
19601
  }
19590
- -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 });
19602
+ -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 });
19591
19603
  let tt2 = -1, et2 = -1;
19592
19604
  const nt2 = r3.length;
19593
19605
  for (let e2 = 0; e2 < nt2; e2++) {
@@ -19755,7 +19767,7 @@ class X_ {
19755
19767
  if (this._closed) throw new Error($h);
19756
19768
  if (!e2) throw new Error(Bh);
19757
19769
  n2 = n2 ? { ...nS, ...n2 } : nS;
19758
- const r2 = n2?.transactional ?? false, o2 = this, s2 = J_++ % Number.MAX_SAFE_INTEGER, i2 = () => {
19770
+ const r2 = n2?.transactional ?? false, o2 = this, s2 = q_++ % Number.MAX_SAFE_INTEGER, i2 = () => {
19759
19771
  let t3 = null, e3 = null;
19760
19772
  if (r2) {
19761
19773
  const n4 = o2._getState();
@@ -20434,12 +20446,12 @@ class X_ {
20434
20446
  URL.revokeObjectURL(l2);
20435
20447
  const c2 = { ...i2, ...a2, ...e2?.bounds };
20436
20448
  if (o.isNullOrUndefined(e2?.bounds?.x) || o.isNullOrUndefined(e2?.bounds?.y)) {
20437
- const t3 = qp(this.getMovables(), c2, o.isNullOrUndefined(e2?.bounds?.x), o.isNullOrUndefined(e2?.bounds?.y));
20449
+ const t3 = Jp(this.getMovables(), c2, o.isNullOrUndefined(e2?.bounds?.x), o.isNullOrUndefined(e2?.bounds?.y));
20438
20450
  c2.x += t3.x, c2.y += t3.y;
20439
20451
  }
20440
20452
  e2?.bounds && false !== e2?.json?.lockAspect && (o.isNullOrUndefined(e2?.bounds.width) && o.isDefined(e2?.bounds.height) && (c2.width = c2.height * a2.width / a2.height), o.isNullOrUndefined(e2?.bounds.height) && o.isDefined(e2?.bounds.width) && (c2.height = c2.width * a2.height / a2.width));
20441
20453
  const h2 = { ...e2?.json, resId: 0 };
20442
- return await this._addMovable({ anchorType: Ji.Type.OneCell, description: "Insert Image", ...e2, bounds: c2, type: "picture", json: h2, fromResourceId: (t3) => 0 !== t3 ? (console.warn("received an unexpected resourceId", t3), null) : n2 });
20454
+ return await this._addMovable({ anchorType: qi.Type.OneCell, description: "Insert Image", ...e2, bounds: c2, type: "picture", json: h2, fromResourceId: (t3) => 0 !== t3 ? (console.warn("received an unexpected resourceId", t3), null) : n2 });
20443
20455
  }
20444
20456
  getTables() {
20445
20457
  return this._tables;
@@ -20762,7 +20774,7 @@ class X_ {
20762
20774
  const s2 = hS;
20763
20775
  this._collectRanges(n2, s2);
20764
20776
  const i2 = om(s2);
20765
- return Tg(0, n2, i2, o2);
20777
+ return Ng(0, n2, i2, o2);
20766
20778
  }
20767
20779
  _initState() {
20768
20780
  const t2 = this, n2 = () => {
@@ -20879,7 +20891,7 @@ class X_ {
20879
20891
  }), a2 = o3, t2._emitter.notify("onMovableSelectionChange");
20880
20892
  }, onAnyChange() {
20881
20893
  t2._defaultColWidthCache = 0, t2._defaultRowHeightCache = 0, t2._defaultFontBoundsCache = null, t2._emitter.notify("onLayoutChange"), t2._emitter.notify("onViewChange");
20882
- } }, c2 = new T_({ sheet: this });
20894
+ } }, c2 = new N_({ sheet: this });
20883
20895
  this._view = c2, this._clearState(), this._viewRemoveListener = c2.addListeners(l2, { transactional: false }), this._viewListener = l2, this._colHeadersRemoveListener?.();
20884
20896
  const h2 = () => {
20885
20897
  const t3 = this.getView().isShowFormulas() ? 2 : 1;
@@ -21005,7 +21017,7 @@ class X_ {
21005
21017
  _createTableEntry(t2, e2 = false) {
21006
21018
  const n2 = { model: null, processShiftCallback: null, processDeleteCallback: null, processProtectionCallback: null, currentName: null, removeListener: null };
21007
21019
  let r2 = null;
21008
- r2 = "string" == typeof t2.ref ? Jc(t2.ref, this._entireCoords) : t2.ref;
21020
+ r2 = "string" == typeof t2.ref ? qc(t2.ref, this._entireCoords) : t2.ref;
21009
21021
  const o2 = { ...r2, value: n2 }, s2 = this, i2 = () => n2.model ? s2._getState().tableMapModel?.get(n2.model) : o2, a2 = (t3, e3) => !(!c.isEqualRanges(t3, e3) || t3.value.model !== e3.value.model), l2 = { transactions: this._transactions, sheet: this, names: this._names, readSheetHeader: e2, json: t2, maxRangeCoords: this._entireCoords, setNameOnContainer(t3) {
21010
21022
  const e3 = i2().value;
21011
21023
  if (!e3.currentName) return;
@@ -21062,7 +21074,7 @@ class X_ {
21062
21074
  a2 = [];
21063
21075
  const t3 = i2.ref.split(","), e3 = t3.length;
21064
21076
  for (let n3 = 0; n3 < e3; n3++) {
21065
- const e4 = Jc(t3[n3], l2);
21077
+ const e4 = qc(t3[n3], l2);
21066
21078
  e4 && a2.push(e4);
21067
21079
  }
21068
21080
  } else a2 = Array.isArray(i2.ref) ? i2.ref : [i2.ref];
@@ -21234,7 +21246,7 @@ class X_ {
21234
21246
  else if ("sp" === d2 || "cxnSp" === d2 || "grpSp" === d2) w2 = new Up(S2);
21235
21247
  else {
21236
21248
  if ("graphicFrame" !== d2) throw new Error(((t3) => `Unsupported float type: ${t3}`)(d2));
21237
- w2 = new Jp(S2);
21249
+ w2 = new qp(S2);
21238
21250
  }
21239
21251
  return o2.model = new Op({ ...p2, content: w2 }), u2 = false, s2;
21240
21252
  }
@@ -21242,7 +21254,7 @@ class X_ {
21242
21254
  this._initializing = true, this._emitter.notify("onBeforeLoad", { params: n2 }), this._clearState();
21243
21255
  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();
21244
21256
  try {
21245
- 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));
21257
+ 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));
21246
21258
  let h2 = this._getState();
21247
21259
  const d2 = h2.cellValuesGrid, u2 = h2.contentfulSpatial, g2 = o2.data, m2 = g2?.length ?? 0, f2 = dm, p2 = [];
21248
21260
  if (m2 > 0) {
@@ -21290,7 +21302,7 @@ class X_ {
21290
21302
  const t3 = s3.length;
21291
21303
  for (let e2 = 0; e2 < t3; e2++) {
21292
21304
  const t4 = s3[e2], n3 = t4.r;
21293
- i3("string" == typeof n3 ? Jc(n3, _2) : n3, t4.v);
21305
+ i3("string" == typeof n3 ? qc(n3, _2) : n3, t4.v);
21294
21306
  }
21295
21307
  }
21296
21308
  S2.load(t2);
@@ -21309,7 +21321,7 @@ class X_ {
21309
21321
  if (E2) {
21310
21322
  const t2 = [], e2 = E2.length;
21311
21323
  for (let n3 = 0; n3 < e2; n3++) {
21312
- const e3 = Jc(E2[n3], _2);
21324
+ const e3 = qc(E2[n3], _2);
21313
21325
  t2.push(e3);
21314
21326
  }
21315
21327
  this._indexMerges(t2);
@@ -21320,7 +21332,7 @@ class X_ {
21320
21332
  for (let r3 = 0; r3 < n3; r3++) {
21321
21333
  const n4 = t2[r3];
21322
21334
  let o3 = n4.r;
21323
- o3 = "string" == typeof o3 ? Jc(o3, _2) : c.sanitizeRange(o3);
21335
+ o3 = "string" == typeof o3 ? qc(o3, _2) : c.sanitizeRange(o3);
21324
21336
  let s3 = n4.v;
21325
21337
  "string" == typeof s3 && (s3 = { address: s3 }), e2.push({ ...o3, value: s3 });
21326
21338
  }
@@ -21332,7 +21344,7 @@ class X_ {
21332
21344
  for (let r3 = 0; r3 < n3; r3++) {
21333
21345
  const n4 = t2[r3];
21334
21346
  let o3 = n4.ref;
21335
- o3 = "string" == typeof o3 ? Jc(o3, _2) : c.sanitizeRange(o3);
21347
+ o3 = "string" == typeof o3 ? qc(o3, _2) : c.sanitizeRange(o3);
21336
21348
  const s3 = { ...n4 };
21337
21349
  delete s3.ref, e2.push({ ...o3, value: s3 });
21338
21350
  }
@@ -21352,14 +21364,14 @@ class X_ {
21352
21364
  }
21353
21365
  R2.load(t2);
21354
21366
  }
21355
- const A2 = h2.tableMapModel, M2 = h2.tableMapName, N2 = h2.tableSpatial, T2 = o2.tables;
21356
- if (T2) {
21357
- const t2 = [], e2 = T2.length;
21367
+ const A2 = h2.tableMapModel, M2 = h2.tableMapName, T2 = h2.tableSpatial, N2 = o2.tables;
21368
+ if (N2) {
21369
+ const t2 = [], e2 = N2.length;
21358
21370
  for (let n3 = 0; n3 < e2; n3++) {
21359
- const e3 = T2[n3], r3 = this._createTableEntry(e3), o3 = r3.value.model;
21371
+ const e3 = N2[n3], r3 = this._createTableEntry(e3), o3 = r3.value.model;
21360
21372
  A2.set(o3, r3), M2.set(r3.value.currentName, o3), t2.push(r3);
21361
21373
  }
21362
- N2.load(t2);
21374
+ T2.load(t2);
21363
21375
  }
21364
21376
  const F2 = h2.conditionalSpatial, k2 = h2.conditionalModels, O2 = o2.conditionals;
21365
21377
  if (O2) {
@@ -21370,7 +21382,7 @@ class X_ {
21370
21382
  }
21371
21383
  }
21372
21384
  const D2 = h2.calcGraph, B2 = D2.fromJSON({ formulas: o2.formulas, data: p2, dynamic: o2.dynamicArray, volatile: o2.volatile });
21373
- h2 = this._updateState({ hyperlinkSpatial: C2, commentsSpatial: v2, movableSpatial: R2, movableMapModel: I2, tableSpatial: N2, tableMapModel: A2, tableMapName: M2, conditionalSpatial: F2, conditionalModels: k2, calcGraph: D2 });
21385
+ h2 = this._updateState({ hyperlinkSpatial: C2, commentsSpatial: v2, movableSpatial: R2, movableMapModel: I2, tableSpatial: T2, tableMapModel: A2, tableMapName: M2, conditionalSpatial: F2, conditionalModels: k2, calcGraph: D2 });
21374
21386
  const L2 = this._getUsedCoords();
21375
21387
  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");
21376
21388
  } finally {
@@ -21553,7 +21565,7 @@ class gS {
21553
21565
  return this._beginCommit(t2);
21554
21566
  }
21555
21567
  _getState() {
21556
- if (this._closed) throw new Error(qi);
21568
+ if (this._closed) throw new Error(Ji);
21557
21569
  return this._transactions.getState(this);
21558
21570
  }
21559
21571
  _beginCommit(t2) {
@@ -21856,7 +21868,7 @@ class vS extends L_ {
21856
21868
  return super._toJSON(t2);
21857
21869
  }
21858
21870
  }
21859
- 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).`;
21871
+ 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).`;
21860
21872
  class OS {
21861
21873
  constructor(t2, e2) {
21862
21874
  this._add = t2, this._get = e2;
@@ -21875,12 +21887,12 @@ class OS {
21875
21887
  }
21876
21888
  }
21877
21889
  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) => {
21878
- if (!t2) throw new Error(TS);
21890
+ if (!t2) throw new Error(NS);
21879
21891
  if (DS.test(t2)) {
21880
- if (!e2) throw new Error(((t3) => `${t3 ? `'${t3}'` : NS} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t2));
21892
+ if (!e2) throw new Error(((t3) => `${t3 ? `'${t3}'` : TS} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t2));
21881
21893
  t2 = t2.replace(DS, "");
21882
21894
  }
21883
- if (0 === t2.length) throw new Error(TS);
21895
+ if (0 === t2.length) throw new Error(NS);
21884
21896
  const n2 = t2.length;
21885
21897
  if (n2 > 31) {
21886
21898
  if (!e2) throw new Error(FS);
@@ -21892,7 +21904,7 @@ const DS = new RegExp(/[\\/\\*?:[\]]+/), BS = new RegExp(/\(((\d+)(?!.*\d))\)$/,
21892
21904
  }
21893
21905
  return t2;
21894
21906
  };
21895
- class WS extends W_ {
21907
+ class HS extends H_ {
21896
21908
  constructor(t2, e2, n2, r2) {
21897
21909
  super(t2, e2, r2), this._workbook = n2;
21898
21910
  }
@@ -21901,7 +21913,7 @@ class WS extends W_ {
21901
21913
  }
21902
21914
  _createRanges(t2, e2) {
21903
21915
  let n2 = this._options;
21904
- return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new WS(t2, this._sheet, this._workbook, n2);
21916
+ return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new HS(t2, this._sheet, this._workbook, n2);
21905
21917
  }
21906
21918
  _createRange(t2, e2) {
21907
21919
  const n2 = t2 ? { ...t2 } : null;
@@ -21910,7 +21922,7 @@ class WS extends W_ {
21910
21922
  return delete n2?.sheetName, PS(n2, n2 ? { sheetName: Ac, ...t3.getEntireRange().getCoords() } : null);
21911
21923
  }
21912
21924
  let r2 = this._options;
21913
- return e2 && (r2 = { ...this._options, getOptions: cm(this._options.getOptions, e2) }), new HS(t2, this._sheet, this._workbook, r2);
21925
+ return e2 && (r2 = { ...this._options, getOptions: cm(this._options.getOptions, e2) }), new WS(t2, this._sheet, this._workbook, r2);
21914
21926
  }
21915
21927
  async select(t2) {
21916
21928
  const e2 = [];
@@ -21940,20 +21952,20 @@ class WS extends W_ {
21940
21952
  return Xc(t2, r2, Gc, zc);
21941
21953
  }
21942
21954
  }
21943
- class HS extends H_ {
21955
+ class WS extends W_ {
21944
21956
  constructor(t2, e2, n2, r2) {
21945
21957
  super(t2, e2, r2), this._workbook = n2;
21946
21958
  }
21947
21959
  _createRanges(t2, e2) {
21948
21960
  let n2 = this._options;
21949
- return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new WS(t2, this._sheet, this._workbook, n2);
21961
+ return e2 && (n2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new HS(t2, this._sheet, this._workbook, n2);
21950
21962
  }
21951
21963
  _createRange(t2, e2) {
21952
21964
  const n2 = this._sheet;
21953
21965
  if (!t2) return Zg(n2, n2._entireCoords);
21954
21966
  if (n2._validateCoords(t2), n2._closed) return Zg(null, n2._entireCoords, t2);
21955
21967
  let r2 = this._options;
21956
- return e2 && (r2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new HS(t2, this._sheet, this._workbook, r2);
21968
+ return e2 && (r2 = { ...this._options, getOptions: cm(this._options?.getOptions, e2) }), new WS(t2, this._sheet, this._workbook, r2);
21957
21969
  }
21958
21970
  getSource() {
21959
21971
  return this._workbook;
@@ -22225,7 +22237,7 @@ class VS {
22225
22237
  _addSheet(t2, e2 = null, n2 = null) {
22226
22238
  e2 = this._nextSheetName(e2);
22227
22239
  const r2 = this._getState(), o2 = this._createSheet(r2.lastId, e2, kp.Visibility.Visible, n2, null);
22228
- if (!o2) throw new Error(TS);
22240
+ if (!o2) throw new Error(NS);
22229
22241
  return t2 && this._emitter.notify("onSheetsChange"), o2;
22230
22242
  }
22231
22243
  _updateSheetRefStates(t2) {
@@ -22409,12 +22421,12 @@ class VS {
22409
22421
  }
22410
22422
  const r2 = this.getSelectedSheet();
22411
22423
  let o2 = null;
22412
- return e2 && (o2 = { getOptions: e2 }), new HS(t2, r2, this, o2);
22424
+ return e2 && (o2 = { getOptions: e2 }), new WS(t2, r2, this, o2);
22413
22425
  }
22414
22426
  _createRanges(t2, e2) {
22415
22427
  const n2 = this.getSelectedSheet();
22416
22428
  let r2 = null;
22417
- return e2 && (r2 = { getOptions: e2 }), new WS(t2, n2, this, r2);
22429
+ return e2 && (r2 = { getOptions: e2 }), new HS(t2, n2, this, r2);
22418
22430
  }
22419
22431
  getRange(t2, e2) {
22420
22432
  try {
@@ -22455,7 +22467,7 @@ class VS {
22455
22467
  "r" === e3 ? r3.rowStart = r3.rowEnd = n3.rowIndex : r3.colStart = r3.colEnd = n3.colIndex, t2 = r3;
22456
22468
  }
22457
22469
  }
22458
- const a2 = this, l2 = Qc(t2, s2, qc, (t3) => {
22470
+ const a2 = this, l2 = Qc(t2, s2, Jc, (t3) => {
22459
22471
  if (!e2) return null;
22460
22472
  if ("string" == typeof t3) {
22461
22473
  const e3 = a2.getNames().getByName(t3);
@@ -22738,7 +22750,7 @@ export {
22738
22750
  Fp as ExternalRangeClipboardItem,
22739
22751
  Xf as F,
22740
22752
  wt as GeomUtils,
22741
- Ji as IAnchored,
22753
+ qi as IAnchored,
22742
22754
  yp as IAutoFilter,
22743
22755
  Qs as IBorder,
22744
22756
  Zm as ICalculation,
@@ -22765,8 +22777,8 @@ export {
22765
22777
  lt as LicenseManager,
22766
22778
  pi as NumberFormat,
22767
22779
  tf as Picture,
22768
- Tp as RangeClipboardItem,
22769
- Jm as Resource,
22780
+ Np as RangeClipboardItem,
22781
+ qm as Resource,
22770
22782
  Km as ResourceCollection,
22771
22783
  X_ as Sheet,
22772
22784
  Yo as SimpleFontFace,