@sheetxl/sdk 0.4.18 → 0.4.19

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 (103) hide show
  1. package/browser/cjs/{CZKr-HfqerG4ae_1.cjs → -XdpUGDwGmHHx1Rt.cjs} +1 -1
  2. package/browser/cjs/{CiwovCSkpgl-bQ05.cjs → B9v3u3hwmPue1Crf.cjs} +1 -1
  3. package/browser/cjs/{B-mV_peXT7VfxQQr.cjs → BPzvAcSjBOPCLRae.cjs} +1 -1
  4. package/browser/cjs/{D0ndeduwAXfDM5zb.cjs → BSWe1zW77SdisEXi.cjs} +4 -4
  5. package/browser/cjs/{ZoEJgFl5JtHAMJRA.cjs → BWO4PWgRzvVsWDJA.cjs} +1 -1
  6. package/browser/cjs/{Cb2p7K5RIq2_e9yG.cjs → Bg5cGAcyMKhc1LVR.cjs} +1 -1
  7. package/browser/cjs/{mf6tD7RMpxcTOPa7.cjs → BmLK2Q7ZKH-MpZf2.cjs} +1 -1
  8. package/browser/cjs/{B0M7GsaOu4qcC7yK.cjs → BnloHxo3XPFlt9gf.cjs} +1 -1
  9. package/browser/cjs/{Dw4MzZ6XFcFXyqGM.cjs → C0dfikqxNZtNj-22.cjs} +1 -1
  10. package/browser/cjs/{DYY4R9783ao6XPnq.cjs → C501EF7RGelm6o3R.cjs} +3 -3
  11. package/browser/cjs/{c_vK2AcQRH4Z1mOf.cjs → C9nSUDDtDNZklTgo.cjs} +1 -1
  12. package/browser/cjs/{MGyd1lueCpKy3gCn.cjs → CAyn-VHwt044Jaid.cjs} +1 -1
  13. package/browser/cjs/{C8mgXVD7aJ0kL3cZ.cjs → CBHpVFiJCCNa32Qd.cjs} +2 -2
  14. package/browser/cjs/{BKM0CTaGyY5RPizC.cjs → CJx8P3pZaRnS6Kny.cjs} +2 -2
  15. package/browser/cjs/{Z80-f8z0s7CfgJ1P.cjs → CrfDFjK9RNj481-9.cjs} +1 -1
  16. package/browser/cjs/CxV1-OXj1ZO7MZQF.cjs +60 -0
  17. package/browser/cjs/{fi5RftkQIn1rYCiT.cjs → D6QgMx0WUlWgYoae.cjs} +1 -1
  18. package/browser/cjs/{MOgoHITH-ACocbbL.cjs → D8kiw7ChCC7ethCe.cjs} +1 -1
  19. package/browser/cjs/{CakZh5cWa2vFHGhw.cjs → DPc0gEusAoUYAI0O.cjs} +1 -1
  20. package/browser/cjs/{B16Za-BFwVSZCL2F.cjs → DWPbAMkxOt6Cb9cp.cjs} +2 -2
  21. package/browser/cjs/{CDCaZG7DWMhVyfHG.cjs → DWRcbn9JzkP-rey4.cjs} +4 -4
  22. package/browser/cjs/{pU4QF2C9D_-Xdu8i.cjs → DaEr2QpQ5d613oTn.cjs} +1 -1
  23. package/browser/cjs/{96I4TmbxNMXxwmus.cjs → DaYyPfJx_pc2iDDm.cjs} +1 -1
  24. package/browser/cjs/{BR38h2HGYOahC2dp.cjs → DoPx_0PJzz8WOjE-.cjs} +1 -1
  25. package/browser/cjs/{CrN-7tm1jDkW1nkZ.cjs → DoXjUhbXYEMYEj6w.cjs} +1 -1
  26. package/browser/cjs/{BIDLC_eDQmtTBSiU.cjs → Doku1UVzxfUkKjsU.cjs} +1 -1
  27. package/browser/cjs/{HHCe0eJPV7Hu-Mrv.cjs → V_uwtlknwPnP2Un_.cjs} +1 -1
  28. package/browser/cjs/{DiJmlpPTUKIMehnP.cjs → eL4wAPO18NOtxRmW.cjs} +1 -1
  29. package/browser/cjs/{vmndpln6VSihKju3.cjs → hReZyLibRX_QhdqA.cjs} +1 -1
  30. package/browser/cjs/{Dc0ACDFHNbN2VrFS.cjs → hW1yREos32gpIHsR.cjs} +1 -1
  31. package/browser/cjs/index.cjs +2 -2
  32. package/browser/cjs/{B1lw2muyV3mfkypu.cjs → mN18HSNpekubzWOx.cjs} +1 -1
  33. package/browser/cjs/{bTX86za4lD1qKA2c.cjs → oROZhcugo511lwYD.cjs} +2 -2
  34. package/browser/cjs/{DqZ7Si9Z65K5mwHo.cjs → qjfxOoVcFF4_7fg8.cjs} +1 -1
  35. package/browser/esm/{DmXgfCwpavOHgM7U.mjs → 1v0wWt1fqPRDORx-.mjs} +1 -1
  36. package/browser/esm/{p3NY1BIiGf0UeYJe.mjs → 5v6eKDgISAObg5Sk.mjs} +5239 -5235
  37. package/{node/esm/By4pttWeS96ZhKd4.mjs → browser/esm/B6zlCMitM169AEV5.mjs} +1 -1
  38. package/browser/esm/{CBkNkKjAmyWHMYQc.mjs → BYu-X1qYzm9tZ3jy.mjs} +1 -1
  39. package/browser/esm/{Ccxt5fhksxnt3obj.mjs → BaqE8hRXzTNVxA7s.mjs} +2 -2
  40. package/{node/esm/B3csp6-HbdBEL4X8.mjs → browser/esm/BefBv4Sji_c90mMN.mjs} +1 -1
  41. package/browser/esm/{CnD7cW89ne_E4Ptr.mjs → Bf7DBXkGk1UG9hJQ.mjs} +1 -1
  42. package/{node/esm/CaM4A9aDY4eWavlM.mjs → browser/esm/BgePMvIc6yA6_ebp.mjs} +1 -1
  43. package/browser/esm/{BGYEnWE6FSOJdQ4x.mjs → Br2kerMrZq0pplwK.mjs} +1 -1
  44. package/browser/esm/{BMOgQaOgpaurekew.mjs → BrAfC_Hz1HZiZjNh.mjs} +1 -1
  45. package/browser/esm/{CFp2ymnFAVc8cym1.mjs → BwotCxIgIVf7Syhx.mjs} +4 -4
  46. package/{node/esm/CkMDCQIqDEiEQiNA.mjs → browser/esm/C0HNcnUg1sYe6vKJ.mjs} +1 -1
  47. package/browser/esm/{B3Rp7WjCvala1UrI.mjs → C94a-TJowUoPL9Fp.mjs} +2 -2
  48. package/browser/esm/{CRaEV0zlfuoEo-et.mjs → CV8kpqwdAKIIEJia.mjs} +1 -1
  49. package/browser/esm/{HJ22m0DaQ0RI0un0.mjs → CZ6VZ3NtZyMBJLvF.mjs} +1 -1
  50. package/browser/esm/{D00n5KHOIv4JfYd5.mjs → C_hMM356eOyIGEgy.mjs} +1 -1
  51. package/{node/esm/oFnfjoAJzyR1JmLH.mjs → browser/esm/CrBwUqwLJqFG3U4m.mjs} +1 -1
  52. package/{node/esm/C8n8dqMkkLOM9j1o.mjs → browser/esm/CxdfUZ_whNEdCrBM.mjs} +1 -1
  53. package/{node/esm/COI00WKkmFkU2tiM.mjs → browser/esm/Cy781c813953r7bq.mjs} +1 -1
  54. package/{node/esm/CKcGjFcPopTjr7lT.mjs → browser/esm/CyZcmz9fV3_Zu57s.mjs} +1 -1
  55. package/{node/esm/BV-oHWKicVdc02ib.mjs → browser/esm/D36yXHRPCJFPE2Cn.mjs} +1 -1
  56. package/browser/esm/{DbCZH7lgS9omy6tP.mjs → D9GMsV9S5kpEpaQ3.mjs} +2 -2
  57. package/{node/esm/DKQjWsfROqvR_0if.mjs → browser/esm/DIiCZ8EuWYWD1G4X.mjs} +1 -1
  58. package/{node/esm/BSayvvpavgmqIk43.mjs → browser/esm/DLn3G10hRwsZCSWB.mjs} +1 -1
  59. package/browser/esm/{n-ON8zha7KmSHnGP.mjs → DW6X_ih_Ttv8w6c2.mjs} +1 -1
  60. package/browser/esm/{BcXKG5xteM2ZAI-r.mjs → DnRa0ZQVLa2Fqzju.mjs} +2 -2
  61. package/browser/esm/{eTQ3bt3FTgJF4uBY.mjs → Dnypbs7l46y-W1pE.mjs} +3 -3
  62. package/{node/esm/Y1vg4AQASwdL9KOw.mjs → browser/esm/JP2SydGPgN2PrEam.mjs} +1 -1
  63. package/browser/esm/{CnFvwDOPMYbsziTX.mjs → N5WXqNpZDnhetIYG.mjs} +1 -1
  64. package/browser/esm/{aNjleesiDlbcqt-A.mjs → OBWvICzxYhna2IxF.mjs} +1 -1
  65. package/browser/esm/{DniYiVoKuIMtovWX.mjs → XrA8fo2R4AS3HzFz.mjs} +1 -1
  66. package/browser/esm/{D0i1akdvlYD31OBX.mjs → aR99Cx5S9piceH0j.mjs} +1 -1
  67. package/browser/esm/{BwMRnRU4Wpk560An.mjs → dRf_0yDP86DLaRrp.mjs} +4 -4
  68. package/browser/esm/index.mjs +2 -2
  69. package/licenses/dependencies.txt +3 -3
  70. package/node/esm/{CbppxT93KkjVJRQ-.mjs → 07j0n4N6h6oBOk_2.mjs} +2 -2
  71. package/{browser/esm/By4pttWeS96ZhKd4.mjs → node/esm/B6zlCMitM169AEV5.mjs} +1 -1
  72. package/node/esm/{DwkWtlm3wKOKAC8i.mjs → BNu3V1ap_WR3jqdX.mjs} +1 -1
  73. package/node/esm/{Ck12455NivY1Mxcb.mjs → BSLIxDVCng1Ep_kU.mjs} +1 -1
  74. package/node/esm/{Erh1OKURDV0ri0SY.mjs → BSbOEM-6aEtAEUn2.mjs} +1 -1
  75. package/{browser/esm/B3csp6-HbdBEL4X8.mjs → node/esm/BefBv4Sji_c90mMN.mjs} +1 -1
  76. package/{browser/esm/CaM4A9aDY4eWavlM.mjs → node/esm/BgePMvIc6yA6_ebp.mjs} +1 -1
  77. package/node/esm/{Ce3EISvfYzbMOOii.mjs → BhJMGJ-z8AHuc4PL.mjs} +1 -1
  78. package/node/esm/{BMOgQaOgpaurekew.mjs → BrAfC_Hz1HZiZjNh.mjs} +1 -1
  79. package/node/esm/{B_zasTHoHvhPdeSH.mjs → BvdYpC2TrqFNZ1dz.mjs} +1 -1
  80. package/node/esm/{CgRxax_SEz8PgPGx.mjs → Bx9qRsBq80w6DZmQ.mjs} +4 -4
  81. package/node/esm/{Dznoem2aPvZH1oI7.mjs → BxOnww5rEBN0LYwd.mjs} +3 -3
  82. package/{browser/esm/CkMDCQIqDEiEQiNA.mjs → node/esm/C0HNcnUg1sYe6vKJ.mjs} +1 -1
  83. package/node/esm/{Dnx_5oPANvmxDVr0.mjs → CHeQiTLK58a6NVsG.mjs} +1 -1
  84. package/node/esm/{CRaEV0zlfuoEo-et.mjs → CV8kpqwdAKIIEJia.mjs} +1 -1
  85. package/node/esm/{BgNphncScMzrejwn.mjs → CjPySw20pNmqGeem.mjs} +1 -1
  86. package/{browser/esm/oFnfjoAJzyR1JmLH.mjs → node/esm/CrBwUqwLJqFG3U4m.mjs} +1 -1
  87. package/node/esm/{Pay7Q8xaBXR8Xmez.mjs → CteSWuaSiS_quyBE.mjs} +1 -1
  88. package/{browser/esm/C8n8dqMkkLOM9j1o.mjs → node/esm/CxdfUZ_whNEdCrBM.mjs} +1 -1
  89. package/{browser/esm/COI00WKkmFkU2tiM.mjs → node/esm/Cy781c813953r7bq.mjs} +1 -1
  90. package/{browser/esm/CKcGjFcPopTjr7lT.mjs → node/esm/CyZcmz9fV3_Zu57s.mjs} +1 -1
  91. package/{browser/esm/BV-oHWKicVdc02ib.mjs → node/esm/D36yXHRPCJFPE2Cn.mjs} +1 -1
  92. package/{browser/esm/DKQjWsfROqvR_0if.mjs → node/esm/DIiCZ8EuWYWD1G4X.mjs} +1 -1
  93. package/node/esm/{DqgV9yP7BYsuiJZo.mjs → DK54CIvklXVGAymn.mjs} +2 -2
  94. package/{browser/esm/BSayvvpavgmqIk43.mjs → node/esm/DLn3G10hRwsZCSWB.mjs} +1 -1
  95. package/node/esm/{Cn3J66kCPWuRgghy.mjs → DbXESzawTrm7E2Do.mjs} +1 -1
  96. package/node/esm/{qvv-Pq01UNL7eRrC.mjs → DjenIXryJ8ccxNad.mjs} +1 -1
  97. package/{browser/esm/Y1vg4AQASwdL9KOw.mjs → node/esm/JP2SydGPgN2PrEam.mjs} +1 -1
  98. package/node/esm/{CnFvwDOPMYbsziTX.mjs → N5WXqNpZDnhetIYG.mjs} +1 -1
  99. package/node/esm/{aNjleesiDlbcqt-A.mjs → OBWvICzxYhna2IxF.mjs} +1 -1
  100. package/node/esm/index.mjs +749 -745
  101. package/node/esm/{bv3-9x5QfIuZgtDa.mjs → kQVOc3F7_ib5L98K.mjs} +2 -2
  102. package/package.json +4 -4
  103. package/browser/cjs/CSIba2XXGZO3bOXm.cjs +0 -60
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.18
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.19
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.
@@ -300,7 +300,7 @@ let _ = class {
300
300
  super(t5), this.name = "NotImplementedError";
301
301
  }
302
302
  };
303
- const y = Object.freeze({ colIndex: 0, rowIndex: 0 }), E = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), b = { getCurrencySymbol: () => "$", getNumberDecimalSeparator: () => ".", getNumberGroupSeparator: () => ",", isDate1904: () => false, getLocation: () => "unknown", getVersion: () => "1.0.0", getOS: () => "unknown", getUser: () => "unidentified", getDescription: () => "Stubbed Formula Context" }, C = new S(), v = { Up: "up", Down: "down", Left: "left", Right: "right" }, x = { TopLeft: "tl", Top: "t", TopRight: "tr", Left: "l", Center: "c", Right: "r", BottomLeft: "bl", Bottom: "b", BottomRight: "br" }, I = { html: "text/html", plain: "text/plain", png: "image/png" }, R = Object.freeze({ left: 0, top: 0 }), A = Object.freeze({ left: 0, top: 0, bottom: 0, right: 0 }), M = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), T = Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: M, EmptyRect: A, EmptyTopLeft: R }, Symbol.toStringTag, { value: "Module" })), N = { Column: "column", Row: "row" }, k = { ...N, Both: "both" }, F = Object.freeze({ colIndex: 0, rowIndex: 0 }), O = Object.freeze({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }), D = (t5, e2) => t5.colStart === e2.colStart ? t5.rowStart - e2.rowStart : t5.colStart - e2.colStart, L = (t5, e2) => t5.rowStart === e2.rowStart ? t5.colStart - e2.colStart : t5.rowStart - e2.rowStart, B = (t5, e2) => t5.rowEnd === e2.rowEnd ? e2.colEnd - t5.colEnd : e2.rowEnd - t5.rowEnd, P = (t5, e2) => t5.colEnd === e2.colEnd ? e2.rowEnd - t5.rowEnd : e2.colEnd - t5.colEnd, z = (t5, e2) => t5.colIndex === e2.colIndex ? t5.rowIndex - e2.rowIndex : t5.colIndex - e2.colIndex, j = (t5, e2) => t5.rowIndex === e2.rowIndex ? t5.colIndex - e2.colIndex : t5.rowIndex - e2.rowIndex, W = (t5 = N.Row, e2 = false) => e2 ? t5 !== N.Column ? B : P : t5 !== N.Column ? L : D, H = (t5, e2) => t5 === e2 || !(!t5 || !e2) && t5.rowIndex === e2.rowIndex && t5.colIndex === e2.colIndex, V = (t5, e2) => t5 === e2 || !(!t5 || !e2) && t5.rowStart === e2.rowStart && t5.rowEnd === e2.rowEnd && t5.colStart === e2.colStart && t5.colEnd === e2.colEnd, $ = (t5, e2) => !(!t5 || !e2 || t5.colStart > e2.colEnd || e2.colStart > t5.colEnd || t5.rowStart > e2.rowEnd || e2.rowStart > t5.rowEnd), G = (t5, e2) => {
303
+ const y = Object.freeze({ colIndex: 0, rowIndex: 0 }), E = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), b = { getCurrencySymbol: () => "$", getNumberDecimalSeparator: () => ".", getNumberGroupSeparator: () => ",", isDate1904: () => false, getLocation: () => "unknown", getVersion: () => "1.0.0", getOS: () => "unknown", getUser: () => "unidentified", getDescription: () => "Stubbed Formula Context" }, C = new S(), v = { Up: "up", Down: "down", Left: "left", Right: "right" }, x = { TopLeft: "tl", Top: "t", TopRight: "tr", Left: "l", Center: "c", Right: "r", BottomLeft: "bl", Bottom: "b", BottomRight: "br" }, I = { html: "text/html", plain: "text/plain", png: "image/png" }, R = Object.freeze({ left: 0, top: 0 }), A = Object.freeze({ left: 0, top: 0, bottom: 0, right: 0 }), M = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), N = Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: M, EmptyRect: A, EmptyTopLeft: R }, Symbol.toStringTag, { value: "Module" })), T = { Column: "column", Row: "row" }, k = { ...T, Both: "both" }, F = Object.freeze({ colIndex: 0, rowIndex: 0 }), O = Object.freeze({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }), D = (t5, e2) => t5.colStart === e2.colStart ? t5.rowStart - e2.rowStart : t5.colStart - e2.colStart, L = (t5, e2) => t5.rowStart === e2.rowStart ? t5.colStart - e2.colStart : t5.rowStart - e2.rowStart, B = (t5, e2) => t5.rowEnd === e2.rowEnd ? e2.colEnd - t5.colEnd : e2.rowEnd - t5.rowEnd, P = (t5, e2) => t5.colEnd === e2.colEnd ? e2.rowEnd - t5.rowEnd : e2.colEnd - t5.colEnd, z = (t5, e2) => t5.colIndex === e2.colIndex ? t5.rowIndex - e2.rowIndex : t5.colIndex - e2.colIndex, j = (t5, e2) => t5.rowIndex === e2.rowIndex ? t5.colIndex - e2.colIndex : t5.rowIndex - e2.rowIndex, W = (t5 = T.Row, e2 = false) => e2 ? t5 !== T.Column ? B : P : t5 !== T.Column ? L : D, H = (t5, e2) => t5 === e2 || !(!t5 || !e2) && t5.rowIndex === e2.rowIndex && t5.colIndex === e2.colIndex, V = (t5, e2) => t5 === e2 || !(!t5 || !e2) && t5.rowStart === e2.rowStart && t5.rowEnd === e2.rowEnd && t5.colStart === e2.colStart && t5.colEnd === e2.colEnd, $ = (t5, e2) => !(!t5 || !e2 || t5.colStart > e2.colEnd || e2.colStart > t5.colEnd || t5.rowStart > e2.rowEnd || e2.rowStart > t5.rowEnd), G = (t5, e2) => {
304
304
  if (t5 === e2) return true;
305
305
  if (!t5 || !e2) return false;
306
306
  if (t5.length !== e2.length) return false;
@@ -313,7 +313,7 @@ const y = Object.freeze({ colIndex: 0, rowIndex: 0 }), E = Object.freeze({ colSt
313
313
  const r2 = Math.min(t5.colStart, e2.colStart), o2 = Math.min(t5.rowStart, e2.rowStart), s2 = Math.max(t5.colEnd, e2.colEnd), i2 = Math.max(t5.rowEnd, e2.rowEnd);
314
314
  let a2 = n2;
315
315
  return a2 ? (a2.colStart = r2, a2.rowStart = o2, a2.colEnd = s2, a2.rowEnd = i2) : a2 = { colStart: r2, rowStart: o2, colEnd: s2, rowEnd: i2 }, a2;
316
- }, q = (t5, e2) => {
316
+ }, J = (t5, e2) => {
317
317
  if (!e2 || 0 === e2.length) return t5;
318
318
  const n2 = { ...t5 };
319
319
  for (let t6 = 0; t6 < e2.length; t6++) {
@@ -321,15 +321,15 @@ const y = Object.freeze({ colIndex: 0, rowIndex: 0 }), E = Object.freeze({ colSt
321
321
  $(n2, r2) && (n2.rowStart = Math.min(n2.rowStart, r2.rowStart), n2.colStart = Math.min(n2.colStart, r2.colStart), n2.rowEnd = Math.max(n2.rowEnd, r2.rowEnd), n2.colEnd = Math.max(n2.colEnd, r2.colEnd));
322
322
  }
323
323
  return n2;
324
- }, J = [null, null], K = (t5, e2, n2) => {
324
+ }, q = [null, null], K = (t5, e2, n2) => {
325
325
  if (t5[0].value === t5[1].value) return e2;
326
326
  };
327
- function X(t5, e2 = 2, n2, r2 = N.Row, o2) {
327
+ function X(t5, e2 = 2, n2, r2 = T.Row, o2) {
328
328
  let s2 = [...t5];
329
329
  if (e2 <= 0 || t5.length <= 1) return s2;
330
- let i2 = r2 === N.Column, a2 = 0, l2 = false;
330
+ let i2 = r2 === T.Column, a2 = 0, l2 = false;
331
331
  do {
332
- const t6 = s2.sort(W(i2 ? N.Row : N.Column));
332
+ const t6 = s2.sort(W(i2 ? T.Row : T.Column));
333
333
  s2 = [], s2.push(t6[0]);
334
334
  const e3 = t6.length;
335
335
  let c2 = 0, h2 = t6[0], u2 = h2.colStart, d2 = h2.rowStart, g2 = h2.colEnd, m2 = h2.rowEnd;
@@ -357,7 +357,7 @@ const Y = Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: F, E
357
357
  if (!t5) return null;
358
358
  let n2 = e2;
359
359
  return n2 || (n2 = { ...t5 }, delete n2.colIndex, delete n2.rowIndex), n2.colStart = t5.colIndex ?? 0, n2.rowStart = t5.rowIndex ?? 0, n2.colEnd = t5.colIndex ?? 0, n2.rowEnd = t5.rowIndex ?? 0, n2;
360
- }, columnFirstCellComparator: z, columnFirstRangeComparator: D, createCellComparator: (t5 = N.Row, e2 = false) => e2 ? t5 !== N.Column ? (t6, e3) => t6.rowIndex === e3.rowIndex ? e3.colIndex - t6.colIndex : e3.rowIndex - t6.rowIndex : (t6, e3) => t6.colIndex === e3.colIndex ? e3.rowIndex - t6.rowIndex : e3.colIndex - t6.colIndex : t5 !== N.Column ? j : z, createConflatingRanges: (t5, e2 = false) => {
360
+ }, columnFirstCellComparator: z, columnFirstRangeComparator: D, createCellComparator: (t5 = T.Row, e2 = false) => e2 ? t5 !== T.Column ? (t6, e3) => t6.rowIndex === e3.rowIndex ? e3.colIndex - t6.colIndex : e3.rowIndex - t6.rowIndex : (t6, e3) => t6.colIndex === e3.colIndex ? e3.rowIndex - t6.rowIndex : e3.colIndex - t6.colIndex : t5 !== T.Column ? j : z, createConflatingRanges: (t5, e2 = false) => {
361
361
  const n2 = [];
362
362
  let r2, o2, s2 = Number.MIN_SAFE_INTEGER, i2 = Number.MIN_SAFE_INTEGER;
363
363
  return { append: (a2, l2, c2) => {
@@ -371,11 +371,11 @@ const Y = Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: F, E
371
371
  r2 && n2.push(r2);
372
372
  const d2 = e2 ? a2 : l2, g2 = e2 ? l2 : a2;
373
373
  r2 = { colStart: d2, rowStart: g2, colEnd: d2, rowEnd: g2 }, u2 && (r2.value = c2), s2 = a2, i2 = l2, o2 = c2;
374
- }, done: (t6) => (r2 && (n2.push(r2), r2 = null), t6 ? X(n2, 3, true === t6 ? K : t6, e2 ? N.Column : N.Row, J) : n2) };
375
- }, createRangeComparator: W, defaultRange: (t5, e2, n2) => t5 ? n2 ? (n2.colStart = t5.colStart ?? e2.colStart, n2.rowStart = t5.rowStart ?? e2.rowStart, n2.colEnd = t5.colEnd ?? e2.colEnd, n2.rowEnd = t5.rowEnd ?? e2.rowEnd, n2) : { colStart: t5.colStart ?? e2.colStart, rowStart: t5.rowStart ?? e2.rowStart, colEnd: t5.colEnd ?? e2.colEnd, rowEnd: t5.rowEnd ?? e2.rowEnd } : e2, extendRangeToIntersectingRanges: q, extendRangeToUnionRanges: (t5, e2) => {
374
+ }, done: (t6) => (r2 && (n2.push(r2), r2 = null), t6 ? X(n2, 3, true === t6 ? K : t6, e2 ? T.Column : T.Row, q) : n2) };
375
+ }, createRangeComparator: W, defaultRange: (t5, e2, n2) => t5 ? n2 ? (n2.colStart = t5.colStart ?? e2.colStart, n2.rowStart = t5.rowStart ?? e2.rowStart, n2.colEnd = t5.colEnd ?? e2.colEnd, n2.rowEnd = t5.rowEnd ?? e2.rowEnd, n2) : { colStart: t5.colStart ?? e2.colStart, rowStart: t5.rowStart ?? e2.rowStart, colEnd: t5.colEnd ?? e2.colEnd, rowEnd: t5.rowEnd ?? e2.rowEnd } : e2, extendRangeToIntersectingRanges: J, extendRangeToUnionRanges: (t5, e2) => {
376
376
  if (!e2 || 0 === e2.length) return t5;
377
377
  let n2 = t5, r2 = null;
378
- for (; !V(n2, r2); ) r2 = n2, n2 = q(r2, e2);
378
+ for (; !V(n2, r2); ) r2 = n2, n2 = J(r2, e2);
379
379
  return n2;
380
380
  }, indexOfCoords: (t5, e2) => {
381
381
  const n2 = { colStart: t5.colIndex, rowStart: t5.rowIndex, colEnd: t5.colIndex, rowEnd: t5.rowIndex };
@@ -743,7 +743,7 @@ const Et = (t5, e2 = false) => (document.hasFocus() || e2) && (t5 === document.a
743
743
  r2?.src && URL.revokeObjectURL(r2.src);
744
744
  }
745
745
  r2 || n2(At);
746
- }), Tt = "image/svg+xml", Nt = Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: Rt, getImageDataUrl: (t5, e2 = 1) => new Promise(async (n2, r2) => {
746
+ }), Nt = "image/svg+xml", Tt = Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: Rt, getImageDataUrl: (t5, e2 = 1) => new Promise(async (n2, r2) => {
747
747
  let o2 = null;
748
748
  try {
749
749
  o2 = new Image(), o2.src = t5, o2.addEventListener("load", function() {
@@ -772,12 +772,12 @@ const Et = (t5, e2 = false) => (document.hasFocus() || e2) && (t5 === document.a
772
772
  }
773
773
  }, o2 = async () => {
774
774
  try {
775
- const r3 = new TextDecoder().decode(t5), o3 = URL.createObjectURL(new Blob([r3], { type: Tt })), s2 = await Mt(o3);
776
- n2 = { mimeType: e2 ?? Tt, naturalDimensions: s2, asUrl: o3, asSVGText: r3 };
775
+ const r3 = new TextDecoder().decode(t5), o3 = URL.createObjectURL(new Blob([r3], { type: Nt })), s2 = await Mt(o3);
776
+ n2 = { mimeType: e2 ?? Nt, naturalDimensions: s2, asUrl: o3, asSVGText: r3 };
777
777
  } catch (t6) {
778
778
  }
779
779
  };
780
- if (e2 === Tt ? await o2() : e2.startsWith("image/") ? await r2() : (await r2(), n2 || await o2()), !n2) throw new Error("Failed to load image");
780
+ if (e2 === Nt ? await o2() : e2.startsWith("image/") ? await r2() : (await r2(), n2 || await o2()), !n2) throw new Error("Failed to load image");
781
781
  return n2;
782
782
  } }, Symbol.toStringTag, { value: "Module" }));
783
783
  function kt(t5, e2) {
@@ -909,7 +909,7 @@ const Vt = "The Safari browser does not support advanced copy and paste.\nCopy a
909
909
  document.hasFocus() ? t5() : globalThis.addEventListener?.("focus", () => {
910
910
  t5();
911
911
  }, { once: true }), document.activeElement.focus?.();
912
- }), qt = async (t5, e2, n2) => {
912
+ }), Jt = async (t5, e2, n2) => {
913
913
  if (wt() === St.Safari) return await n2(new Error(Gt.Safari));
914
914
  try {
915
915
  const r2 = async (t6) => {
@@ -926,7 +926,7 @@ const Vt = "The Safari browser does not support advanced copy and paste.\nCopy a
926
926
  if ("No valid data on clipboard" === t6.message || "DataError" === t6.name) return;
927
927
  return await n2(t6);
928
928
  }
929
- }, Jt = async (t5) => {
929
+ }, qt = async (t5) => {
930
930
  try {
931
931
  return await t5.read({ unsanitized: [I.html] });
932
932
  } catch (t6) {
@@ -934,7 +934,7 @@ const Vt = "The Safari browser does not support advanced copy and paste.\nCopy a
934
934
  return await t5.read();
935
935
  }, Kt = async (t5, e2) => {
936
936
  if (!t5) return null;
937
- const n2 = await Jt(t5);
937
+ const n2 = await qt(t5);
938
938
  let r2 = false;
939
939
  for (let t6 = 0; !r2 && n2 && t6 < n2.length; t6++) if (r2 = n2[t6].types.includes(e2), r2) return await n2[t6].getType(e2);
940
940
  return r2 ? void 0 : null;
@@ -1021,7 +1021,7 @@ class se {
1021
1021
  this._disableCheckOnFocus = t5?.disableCheckOnFocus ?? false, this._init();
1022
1022
  }
1023
1023
  async _checkForChanges() {
1024
- this._nativeClipboard && this._state && !this._disableCheckOnFocus && await qt("clipboard-read", async () => {
1024
+ this._nativeClipboard && this._state && !this._disableCheckOnFocus && await Jt("clipboard-read", async () => {
1025
1025
  await Ut();
1026
1026
  const t5 = await Xt(this._nativeClipboard, ee);
1027
1027
  if (!this._state) return true;
@@ -1045,14 +1045,14 @@ class se {
1045
1045
  async read() {
1046
1046
  if (!this._nativeClipboard) return this._state?.items ?? null;
1047
1047
  const t5 = this;
1048
- return await qt("clipboard-read", async () => {
1048
+ return await Jt("clipboard-read", async () => {
1049
1049
  if (await Ut(), this._state?.uuid) {
1050
1050
  const e2 = await Xt(this._nativeClipboard, ee);
1051
1051
  if (e2 && e2 === t5._state.uuid) return true;
1052
1052
  const n2 = await Yt(this._nativeClipboard, I.html);
1053
1053
  if (oe(t5._state?.uuid, n2)) return true;
1054
1054
  }
1055
- return t5._state = { items: await Jt(this._nativeClipboard), uuid: null, ref: null }, this.dispatchEvent(new Event("clipboardread")), true;
1055
+ return t5._state = { items: await qt(this._nativeClipboard), uuid: null, ref: null }, this.dispatchEvent(new Event("clipboardread")), true;
1056
1056
  }, async (t6) => {
1057
1057
  this.dispatchEvent(new Event("clipboarderrorread"));
1058
1058
  }), this._state?.items ?? [];
@@ -1067,7 +1067,7 @@ class se {
1067
1067
  const s2 = () => {
1068
1068
  e2._state = { uuid: r2, ref: t5.ref, items: n2 }, e2.dispatchEvent(new Event("clipboardwrite")), e2.dispatchEvent(new Event("clipboardchange"));
1069
1069
  };
1070
- await qt("clipboard-write", async () => {
1070
+ await Jt("clipboard-write", async () => {
1071
1071
  await Ut(), r2 && 0 === o2.length && (o2.push(new ClipboardItem({ [ee]: new Blob([r2], { type: ee }) })), o2.push(new ClipboardItem({ [I.html]: new Blob([ne(r2)], { type: I.html }) })));
1072
1072
  for (let t6 = 0; t6 < Math.min(1, o2.length); t6++) {
1073
1073
  const e3 = o2[t6];
@@ -1630,7 +1630,7 @@ class fe extends ae {
1630
1630
  }
1631
1631
  const pe = () => {
1632
1632
  try {
1633
- return "0.4.18";
1633
+ return "0.4.19";
1634
1634
  } catch (t5) {
1635
1635
  return "";
1636
1636
  }
@@ -1707,177 +1707,164 @@ KeyFrom: '${t5.keyFrom()}'`, console.log(l2(o2))), Promise.resolve();
1707
1707
  for (let t7 = 0; t7 < r2.length; t7++) r2[t7].charCodeAt(0) <= n3 && (r2[t7] = String.fromCharCode((r2[t7].charCodeAt(0) + e3) % n3));
1708
1708
  return r2.join("");
1709
1709
  })(t5, n2 - e2), ve = (t5) => "object" == typeof window ? window.atob(t5) : Buffer.from(t5, "base64").toString("ascii");
1710
- function xe(t5, e2, n2, r2, o2) {
1711
- return Fe(o2 - -663, n2);
1710
+ function xe() {
1711
+ const t5 = ["W6ldQei3k8oSWQnvW7lcGW", "gCk+WQxcTmk/CW", "WRRcSmovzmk3jCo3CZVdKsm/xq", "W4mSe0NdTmoQWRxcJ8kOWRZdQmkQ", "W6fTW5FcG8ohW4jCjtnJFZyhWOum", "WPldNmoag8kgW47dPSo9WOrRWQ0TW58", "u2pdJdFcM13cGCk2W6iUb8knl8oZWO3cJq", "W4aSe2RdQmoVWQO", "W7ZcUSkcx8oCWO7cVmoqWQe", "l8kAW5C8WR8f", "W7hcGWBcO8koBG", "WP/dGKBdU8oulmkUm0tcPbDlsa", "o8otWQ/dPSoqW7pcQa", "vCk1xSoWW6JdNLLu", "fXpcTKOfW5ldHsuxW6q", "rSoHx1ldTMy", "W6PNW4dcOmoEW4nFmHe", "W48ShK3dS8oSWRq", "W4qOW5FcGCk1W7X1oKJcLshcOdG", "y8o+W7RcSSkptCky", "W5/cVmoMgSo0jW", "W4BcUSoBhq", "W6xcH8oTmmoegSoU", "WOtdTSkFrmkPCSkBW7TGW4TMWOC1W4O", "ccrNW5pcVmoTW6/dLXKIo8okWQ8z", "s8o5W7ldPCo0jmo8WQqxumk4W4NdGW", "W7xdUeuB", "WP/cH8oyv1zOmeas", "W5/cVmo+fmo8k8og", "oeX7W5aPwdRcIa", "BMxdVSkABCo5", "imk8WRlcUmkRySkgWPWiuCk8W64", "yw5UW47cRSo5WOO", "n8oyWONdRSooW6m", "W5SIW4q", "iCouWPJdTCoiW6NcM8koWQhcNq", "qdbPa8o1i3JdRa", "uCkGx8o3W6ldN1zjW7BdSa", "W6xcPSo0W6S", "W7FdQfiglCo9", "W7ddGbVdL8ofWOXpW4NcKCoWWQ9hWONdQvxcTa", "W6ldQfGwpmo5WRzzW5dcN1iqmXi", "gfr+W48ludRcItL5WRneWP7dQNO", "WRhcUarhF8kQW7PLW6/cN1CGfq", "j8kwW4WWzCkJW7pcTsSIjtnIWPiNW4FdGSkVaXa", "W7RdL8kLkG", "z8ozmmkxW4OncqldQf8", "BbaOWO1oh37dJMC", "o1LIn8o4ag7dRrRdPa", "CxxdVCkrESopz0JcTmorW7q", "W5FdUCkqpmoGyCkkjINdPr43rSkJ", "cmkBW4u4WPOinKtdTJxcGMJcRCkuWQBcJSoFWQSuWPn/W7zbWRrfWP/cGa", "WPyJW6GUWPdcOv4", "fSk/WOxcP8kKEG", "W5pdMHxdLmkx", "dCowWPJdQ8ovW77cRCktWRa", "WO8iW4SFFmoLWOxcO3pcQLKKWRddSa", "jmkdW5i1", "W5pcUmoYF8oTW7XFCSkBwatdPdNdI1b8WOBdR8kSzq", "CCodjW", "WQXAW4ZcNmotqWu", "W7hcVSkXFSoSW6jBumkquG", "WRSUASkYqg/cGeHSW4pdQCor", "qI9tWP0rt3/cQSk8W74", "W5FdLXtdLCkaWRj2W5JcNCoWWQHhW40", "W4xcGmkgtSoBW5ldTmkHW5e", "W5aktqD4W5CfW4q", "W4X3WQzFW5pdUarCfmohzs9y", "v8k6WQbhW6ZcRIpdGcXm", "jhZdStKQW686", "WQW+BCky", "WQidW4SBFmoJWPhdPMxcHLSWWRFdQG", "W43dJCoGWRJdRmkxcSokWQhdPL1rlG", "WRaUCmkxqw4", "W4pcNbXqWRhdQZuHWRLLwLe", "W5L4W5hcQmoCW58", "FK3dHW4/W6W", "W7VdMvRdKmkaWRK", "CxxdU8ksz8o+yW", "nffAW5uFxq", "W6G9W5hcPmkYW6TsnvxcNG/cTW", "mSkqW4CvWP8cnWRdItNcQMJcUG", "W4FdKWNdLmkjWRzd", "W5C5c2ldTq", "WRq5WPtdT8kbWPWglanNxr8j", "W4VcIXFcR8kqBSoZfKtcOq", "CxxdVCkrEG", "k8koW5S9FmkRW6pdVcGLzHPLWOiNWONdMSkV", "W7hcSSk8Fmo2W7K", "egJdJshcHXhcISkoW796aSkInmodWORdMgOaWQ4", "x3mHW4/cRSoPWORcN8o7WQ4FWPPUpmkgymo3W5Xl", "W4JdICo6WPtdVmkmnSoCWOZdQv1r", "W4FcGmkgtmoAWPBcOmoFWOXlWQCwW6in", "e0ZcUGJdJCkQW79GE3/dNmoXEZa", "W6ZdVNmfl8o0", "W4RcHCoufSkZW5yeW53dOCoG", "W6fTW5FcISoxW5i", "E8k+WRnCW7BcQq", "n8oyWPRdOSomW67cPCkiWRVcHG", "WP0mW5epDComWOm", "W6fTW43cPmoaW4PejcTPAsaNWO4", "W63cPCk9DSoRW6jB", "W5tcUCkKESoUW7HAo8kBreddSGddIGK1", "W7FcRCoHW6VdNCoC", "qmkRWRvuW7hcSqFdUsPnqIJcNXW", "WO9dwSkN", "aLr+W48xvs/cLdm", "WPHtxCkaWQy", "WO5uqInSW4CnW7K", "e8kPWQ7cTSkXFG", "WRutpvpdQxVdP8oMc3i", "dSklqu85yW", "W6NdQfGuoSoW", "qtb8oCoVnxJdLSkq", "iCovWONdT8ooW7/cV8kuWOxcH8oRWPlcOW", "mCkiW4G4z8k+W5pdSdmQlZP/", "cCkTWQZcPmkGumkY", "CmoIy1tdVhDzWPpdKH0FnW", "W5NdKXtdNmkrWQG", "W7tcP8oNW6VdL8onW7hcISoEWOG", "W58IW5dcUCkYW759mq", "vmk6D3GSymkl", "sSoQyvtdOhO", "f8o+W7maWQRdRsZdSa1ctt0", "WRtcNSo1vfXTpveZW6C+wsFcN8ocxmo5dG", "j0jOpmoIn27dKH7dTmowWQq", "WO4JW6uJWOFcTW", "gmkPWRtcK8kWF8kOWPKWwSkRW6/dHwDB", "W4tcGmkgB8ogWPpcV8oRWQHhWRSrW64gWRm", "W6NcKmoyb8o/nSonWPrz", "d8k+WQNcV8kXvmkLWPmiwSkR", "W7BcUSoWW5RdJSouW70", "WQbhW77cJSoOqXv8", "zGKZzmkJrZ7dLaxdLmoEWPGa", "hmopW5NdOSoeW6RcPCkvWRtcGCoRWPpcUq", "W6BdVCkTvZz6", "aSkDW5q2FCkI", "hCkJjGVcOtqTWP/dMHiQh8oR", "bCo1gCkgWRxcM295W4/dPv/dLa", "W4RcNbNcQ8kjDmoP", "WP5iACo+a8oLWPddSuVdPCkAbq", "W4dcPSoBhmoKyG", "aSkxW5KWFCkJW7JdUW", "cezGpSo/f2RdKHO", "iSovWORdRW", "WQOso1pdS3ddRSoYaMiUW7FdJSkIWQ7cNCoSWOG7", "bXFcSv4sW4/dIJGEW7m", "WONcPCojASkToq", "WQtcNSouwLzIiG", "x3mHW6/cRSoPWORcN8o7WQ4FWQf5kG", "W47cHCkDt3S6dCk1eSo/FW", "W5ddMXVdKSkjW6a", "W4RcLSk8qSoxWP8", "b8kawx4SEq", "lKO0eLNcPa", "W4eVpcKxyq", "wdjrWOagEG", "W4JcLHxcVSkvAmo/cG", "sJXReSoUiNJdLmkrCG", "WODlqcO", "xxvIW4BcQCo5WORdKCoMWQrlW4PQmSkCymo3WPLjW7zZWOlcHKvRW7beWRBcVW", "WRqDW48tFSo+WRhcO3xcIf89WQ0", "wdrcWOubAMZcRmk4", "js9LW5pcUCoOW7JcPWCInSoBWQqoeK3cScmmFq", "W7/cTSk8DCoNW6nUACkCrvddSI0", "W7xcUSoWW6/dJSovW6S", "qmkRWRvuW7hcSqC", "b1VcPWFdKmkcW6LeAh/dNSo2", "yvZdIb0+W7C", "sSk4WO8dz8kMmSk1E2ZdICowfW", "W5qKW4/dO8kWW6DKmv7cMbK", "W7VcIrP7WQRdTG", "yYDxWOGbyN7cImkVW67dM0u4tq", "BXvZW6ieuIpcUa", "ymoFomkeW5i", "crZcS3SBW5ldJW", "WOvyvrjRW5Kn", "W5FcGmkkwq", "W6lcR8oOW6FdKW", "j2XeW6ZcOmoSWOC", "W7qyWQ3dISkohfzWW51wjGG9", "W5dcIWf/", "gSk0WRdcUmk3BW", "p27dGdFcHG7cISo5W7n2gSkfkCo1WOhcJxCnW6S", "W60NewRdRCoQWR3dI8kjWQxdRmkMW4/dLYuBmhS", "WOpcSSocAmkJna", "yYnPg8o1mgNdTSkBzvtcNJhcLrpcO8kIaqjHW5WeF2xdJW", "mCkMAM0zu8k+WQPlBv1WkdPQzfrXWOe", "WQOop0tdS3VdLCoegMm", "CCovmSkaW44knWtdSKq", "W4NdJCk7l1ddRsNcSWe", "W6hcRCoRW6pdJSokW70", "hSkJiWZcPJuVWRJdKGupkSoN", "W5ldKW7dUCkqWQLkW47cOSo7WQ5rW4ddJv4", "W67dH8kIi0ZdRZpcLWOOhXqMW40", "WPeJW78pWPBcPG", "s8oDi8kmW5akhaRdSLL2BG", "zsnnWOCnFf3cQSk0W6NdGvq5", "tCk9WO9AW7ZcUa", "W7VcPHHGWQVdTJyAWQi", "WQ8JE8kvqx7cGa", "eSkCqeuKEmkx", "WOdcV8oToSo3jmok", "WP1xr8kHWPddTfjKoSkXW4JdHGK", "j0jUp8o/ag4", "W53cHXxcUmkuAConef7cUG"];
1712
+ return (xe = function() {
1713
+ return t5;
1714
+ })();
1712
1715
  }
1713
1716
  function Ie(t5, e2, n2, r2, o2) {
1714
- return Fe(e2 - -499, o2);
1717
+ return ze(t5 - 607, o2);
1718
+ }
1719
+ function Re(t5, e2, n2, r2, o2) {
1720
+ return ze(o2 - 879, n2);
1715
1721
  }
1716
1722
  !function() {
1717
- const t5 = 659, e2 = "hyxZ", n2 = 1040, r2 = "HRel", o2 = "Ri@x", s2 = 1181, i2 = 1178, a2 = "HfPW", l2 = "7p8I", c2 = 882, h2 = 604;
1718
- function u2(t6, e3, n3, r3, o3) {
1719
- return Fe(r3 - -489, o3);
1723
+ const t5 = "nQE4", e2 = 602, n2 = "xv2R", r2 = 121, o2 = 393, s2 = "YZ#I", i2 = 3, a2 = "BvI8", l2 = "%]Ov", c2 = 15;
1724
+ function h2(t6, e3, n3, r3, o3) {
1725
+ return ze(t6 - -346, o3);
1720
1726
  }
1727
+ const u2 = xe();
1721
1728
  function d2(t6, e3, n3, r3, o3) {
1722
- return Fe(o3 - 822, r3);
1729
+ return ze(e3 - -450, t6);
1730
+ }
1731
+ function g2(t6, e3, n3, r3, o3) {
1732
+ return ze(o3 - -915, t6);
1723
1733
  }
1724
- const g2 = Oe();
1725
1734
  function m2(t6, e3, n3, r3, o3) {
1726
- return Fe(t6 - -961, o3);
1735
+ return ze(r3 - -1e3, n3);
1727
1736
  }
1728
1737
  function f2(t6, e3, n3, r3, o3) {
1729
- return Fe(r3 - h2, e3);
1738
+ return ze(t6 - 8, o3);
1730
1739
  }
1731
1740
  for (; ; ) try {
1732
- if (193763 === parseInt(m2(-t5, 0, 0, 0, "N72V")) / 1 * (parseInt(u2(0, 0, 0, -317, "Ri@x")) / 2) + -parseInt(u2(0, 0, 0, -233, e2)) / 3 + parseInt(d2(0, 0, 0, "0c6Q", n2)) / 4 + -parseInt(d2(0, 0, 0, "qR)o", 1106)) / 5 * (parseInt(u2(0, 0, 0, -277, r2)) / 6) + parseInt(d2(0, 0, 0, o2, s2)) / 7 + -parseInt(d2(0, 0, 0, "FqSD", i2)) / 8 + parseInt(f2(0, a2, 0, 794)) / 9 * (-parseInt(f2(0, l2, 0, c2)) / 10)) break;
1733
- g2.push(g2.shift());
1741
+ if (658980 === -parseInt(m2(0, 0, t5, -727)) / 1 + parseInt(m2(0, 0, "Pr4i", -e2)) / 2 + parseInt(d2(n2, -123)) / 3 * (parseInt(d2("JE9e", -r2)) / 4) + -parseInt(f2(425, 0, 0, 0, "*Aeh")) / 5 * (parseInt(f2(o2, 0, 0, 0, "^Sfr")) / 6) + -parseInt(g2(s2, 0, 0, 0, -666)) / 7 + -parseInt(h2(-i2, 0, 0, 0, "Pr4i")) / 8 * (parseInt(g2(a2, 0, 0, 0, -643)) / 9) + parseInt(d2(l2, -c2)) / 10) break;
1742
+ u2.push(u2.shift());
1734
1743
  } catch (t6) {
1735
- g2.push(g2.shift());
1744
+ u2.push(u2.shift());
1736
1745
  }
1737
1746
  }();
1738
- const Re = () => {
1739
- const t5 = "2!i%", e2 = "ibgb";
1740
- if (typeof window === Fe(294 - 33, "jE4@")) return window[o2 = -668, s2 = "dE!n", Fe(o2 - -951, s2)][n2 = t5, r2 = 409, Fe(r2 - 159, n2)];
1741
- var n2, r2, o2, s2, i2, a2;
1742
- return bt[i2 = 448, a2 = e2, Fe(i2 - 233, a2)]();
1743
- }, Ae = () => {
1744
- const t5 = 85, e2 = 656;
1745
- return Re()[n2 = 908, r2 = "dE!n", Fe(n2 - e2, r2)](Fe(t5 - -183, "5mAe")) || Re() === Fe(-648 - -815, "GeQ9");
1746
- var n2, r2;
1747
- }, Me = (t5, e2) => {
1748
- const n2 = 619, r2 = "7Nex", o2 = 148, s2 = "K9rb", i2 = 63, a2 = 311;
1749
- function l2(t6, e3, n3, r3, o3) {
1750
- return Fe(t6 - -202, n3);
1751
- }
1752
- return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => l2(70, 0, "fO34"), exceptions: () => {
1753
- return [(e3 = o2, n3 = s2, l2(e3 - i2, 0, n3) + t5 + "'")];
1747
+ const Ae = () => {
1748
+ const t5 = 1056, e2 = 982, n2 = "Ar9C", r2 = 1123, o2 = "fnMx", s2 = 102;
1749
+ if (typeof window === i2(1145, 1150, 1245, "CZ^P")) return window[i2(1110, t5, e2, n2)][i2(r2, 1034, 985, "jBcb")];
1750
+ function i2(t6, e3, n3, r3, o3) {
1751
+ return ze(e3 - 708, r3);
1752
+ }
1753
+ return bt[a2 = o2, l2 = s2, ze(l2 - -211, a2)]();
1754
+ var a2, l2;
1755
+ }, Me = () => {
1756
+ const t5 = "#37p", e2 = 190;
1757
+ function n2(t6, e3, n3, r2, o2) {
1758
+ return ze(e3 - -265, n3);
1759
+ }
1760
+ return Ae()[n2(0, 73, "#pUA")](n2(0, 163, "%CRV")) || Ae() === ze(443 - e2, t5);
1761
+ }, Ne = (t5, e2, n2, r2) => {
1762
+ const o2 = 643;
1763
+ function s2(t6, e3, n3, r3, o3) {
1764
+ return ze(n3 - -159, r3);
1765
+ }
1766
+ function i2(t6, e3, n3, r3, o3) {
1767
+ return ze(t6 - 47, o3);
1768
+ }
1769
+ function a2(t6, e3, n3, r3, o3) {
1770
+ return ze(o3 - -571, r3);
1771
+ }
1772
+ function l2(t6, e3, n3, r3, s3) {
1773
+ return ze(s3 - o2, n3);
1774
+ }
1775
+ return { licensee: () => t5[i2(361, 0, 0, 0, "BvI8")], expiration: () => new Date(t5[i2(375, 0, 0, 0, "Pr4i")]), domains: () => t5[i2(392, 0, 0, 0, "Fk1I")] ?? [], developerCount: () => t5[a2(0, 0, 0, "[beQ", -309)] ?? 1, cpuCount: () => t5[s2(0, 0, 266, "2rZ)")] ?? 0, type: () => t5[l2(0, 0, "vb)n", 0, 1093)] ?? i2(443, 0, 0, 0, "3ZP3"), exceptions: () => e2, isValidFor: (t6) => {
1776
+ const n3 = 492;
1777
+ return !(e2?.[r3 = "xv2R", o3 = 650, s2(0, 0, o3 - n3, r3)] > 0);
1778
+ var r3, o3;
1779
+ }, isValid: () => true, isEval: () => false, features: () => {
1780
+ return Object[e3 = "#wdE", n3 = 493, ze(n3 - 152, e3)](t5[a2(0, 0, 0, "Fk1I", -208)] ?? {});
1754
1781
  var e3, n3;
1755
- }, isValidFor: (t6) => false, isValid: () => false, isEval: () => false, features: () => {
1756
- return Object[t6 = 47, e3 = "#yE*", Fe(t6 - -282, e3)]({});
1757
- var t6, e3;
1758
- }, keyFrom: () => t5, getBuildVersion: _e[l2(-21, 0, "K9rb")], getBuildDate: _e[c2 = n2, h2 = r2, Fe(c2 - a2, h2)] };
1759
- var c2, h2;
1760
- };
1761
- function Te(t5, e2, n2, r2, o2) {
1762
- return Fe(t5 - -844, r2);
1763
- }
1764
- const Ne = (t5) => {
1765
- const e2 = "HfPW", n2 = "WKzL", r2 = "GeQ9", o2 = 1018, s2 = "MrMO", i2 = "fO34", a2 = "TuS^", l2 = 535, c2 = 361, h2 = "haaF", u2 = 72, d2 = 121;
1766
- function g2(t6, e3, n3, r3, o3) {
1767
- return Fe(n3 - d2, t6);
1768
- }
1769
- let m2 = bt[_2("YBR0", 303)];
1770
- if (Ae() || bt[f2(-778, -710, -707, e2)]()) {
1771
- const t6 = _e[g2(n2, 0, 421)](), e3 = new Date(t6), a3 = /* @__PURE__ */ new Date(), l3 = 864e5;
1772
- Math[f2(-753, -774, -691, r2)]((a3[p2(o2, s2, 1106)]() - e3[f2(-829, -781, -743, "HRel")]()) / l3) >= 120 && (m2 = [S2(i2, 537, 460)]);
1773
- } else m2 = [S2(a2, l2, 555)];
1774
- function f2(t6, e3, n3, r3, o3) {
1775
- return Fe(n3 - -977, r3);
1776
- }
1777
- function p2(t6, e3, n3, r3, o3) {
1778
- return Fe(n3 - 808, e3);
1779
- }
1780
- function _2(t6, e3, n3, r3, o3) {
1781
- return Fe(e3 - u2, t6);
1782
+ }, keyFrom: () => n2, getBuildVersion: _e[a2(0, 0, 0, "jpUj", -238)], getBuildDate: _e[l2(0, 0, "^Kre", 0, 940)] };
1783
+ }, Te = (t5) => {
1784
+ const e2 = 628, n2 = "Jp]&", r2 = 583, o2 = "BvI8", s2 = "vb)n", i2 = "BslY", a2 = 449, l2 = "#37p", c2 = 600, h2 = "Jp]&", u2 = 817;
1785
+ function d2(t6, e3, n3, r3, o3) {
1786
+ return ze(t6 - 201, e3);
1782
1787
  }
1783
- function S2(t6, e3, n3, r3, o3) {
1784
- return Fe(n3 - 250, t6);
1788
+ let g2 = bt[m2("O!o(", -480, -498)];
1789
+ if (Me() || bt[d2(e2, "Pr4i")]()) {
1790
+ const t6 = _e[d2(547, "WIX#")](), e3 = new Date(t6), a3 = /* @__PURE__ */ new Date(), l3 = 864e5;
1791
+ Math[m2(n2, -433, -507)]((a3[d2(r2, o2)]() - e3[m2(s2, -380, -430)]()) / l3) >= 120 && (g2 = [d2(593, i2)]);
1792
+ } else g2 = [d2(a2, l2)];
1793
+ function m2(t6, e3, n3, r3, o3) {
1794
+ return ze(n3 - -767, t6);
1785
1795
  }
1786
- return { licensee: () => f2(0, 0, -797, "^txW"), expiration: () => null, domains: () => [Re()], developerCount: () => 1, cpuCount: () => 0, type: () => _2("Ie^T", 297), isEval: () => true, exceptions: () => m2, isValidFor: () => 0 === m2[g2("haaF", 0, 375)], isValid: () => false, features: () => Object[p2(0, "OvbF", 1114)]({}), keyFrom: () => t5, getBuildVersion: _e[g2("wlpJ", 0, c2)], getBuildDate: _e[_2(h2, 409)] };
1796
+ return { licensee: () => m2("Ar9C", 0, -474), expiration: () => null, domains: () => [Ae()], developerCount: () => 1, cpuCount: () => 0, type: () => ze(174 - -191, "BvI8"), isEval: () => true, exceptions: () => g2, isValidFor: () => 0 === g2[d2(480, "OU&F")], isValid: () => false, features: () => {
1797
+ return Object[t6 = 1208, e3 = "@oZF", ze(t6 - u2, e3)]({});
1798
+ var t6, e3;
1799
+ }, keyFrom: () => t5, getBuildVersion: _e[d2(c2, h2)], getBuildDate: _e[m2("TAa]", 0, -352)] };
1787
1800
  };
1788
1801
  function ke(t5, e2, n2, r2, o2) {
1789
- return Fe(r2 - 650, n2);
1790
- }
1791
- function Fe(t5, e2) {
1792
- const n2 = Oe();
1793
- return Fe = function(e3, r2) {
1794
- let o2 = n2[e3 -= 166];
1795
- if (void 0 === Fe.cTvUZu) {
1796
- const e4 = function(t6, e5) {
1797
- let n3, r3, o3 = [], s3 = 0, i3 = "";
1798
- for (t6 = function(t7) {
1799
- let e6 = "", n4 = "";
1800
- for (let n5, r4, o4 = 0, s4 = 0; r4 = t7.charAt(s4++); ~r4 && (n5 = o4 % 4 ? 64 * n5 + r4 : r4, o4++ % 4) ? e6 += String.fromCharCode(255 & n5 >> (-2 * o4 & 6)) : 0) r4 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r4);
1801
- for (let t8 = 0, r4 = e6.length; t8 < r4; t8++) n4 += "%" + ("00" + e6.charCodeAt(t8).toString(16)).slice(-2);
1802
- return decodeURIComponent(n4);
1803
- }(t6), r3 = 0; r3 < 256; r3++) o3[r3] = r3;
1804
- for (r3 = 0; r3 < 256; r3++) s3 = (s3 + o3[r3] + e5.charCodeAt(r3 % e5.length)) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3;
1805
- r3 = 0, s3 = 0;
1806
- for (let e6 = 0; e6 < t6.length; e6++) r3 = (r3 + 1) % 256, s3 = (s3 + o3[r3]) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3, i3 += String.fromCharCode(t6.charCodeAt(e6) ^ o3[(o3[r3] + o3[s3]) % 256]);
1807
- return i3;
1808
- };
1809
- Fe.jCObqv = e4, t5 = arguments, Fe.cTvUZu = true;
1810
- }
1811
- const s2 = e3 + n2[0], i2 = t5[s2];
1812
- return i2 ? o2 = i2 : (void 0 === Fe.GRJibW && (Fe.GRJibW = true), o2 = Fe.jCObqv(o2, r2), t5[s2] = o2), o2;
1813
- }, Fe(t5, e2);
1814
- }
1815
- function Oe() {
1816
- const t5 = ["DxCYWOtdV1/cJKBdHvu", "gSoxW5VdSupdUq", "CCo4s8onWR5o", "W4VdQhfl", "W540AM1thW", "FSozC8ooWQ/dRbNdJXeZesFdOq", "WO7cVZSIC8o8W5TUW4OHimk3cq", "W7VcJ8oMWPGgW7e", "eWBcJmkihq", "W63cMCoFn8oUWPpdNaVdHWO", "kCoKWPaRWQhcIbZcRCkisG", "W7pdSZBcOCo9x8k7WQpcKH/dJxndWRBdRSkGtmkEWRa", "W74BxCokAKVdHq", "ySkdbLuMAGXNhv8", "W4hcSeZcNcdcIq", "zSkTWOj1nqq", "W4ldU35aaHa", "b8krkCocjIji", "C8oLt8oMWRLEWO7dVSkhW4TShu3cVHe", "a1lcL8oQW7THWP7dOuRcL8oAcc8", "W4hcP13cMJldHmkpW6za", "WPTOW4tdKCobWPmaWOddICoFCIxcNSkr", "qJayrJ7cSCkSy8kCqLCIhq", "W57dRh9khWVcUa", "W70uf8osrGZcTey5wutcHCkgga", "WP1SW57dNSonWO0JWQldKSoyAdtcNW", "WQrPW5ibza12", "kCoJW41O", "W7eEemohqqhcQNm", "q8kqmSogpg5vthZcL8kPlSkUa8oJWOC", "W75vW4FcLCoFW6jJcW", "W6ddQq4nW5X+wCkqv8kYW4L5W6G", "A8kEc1CIDG", "W6LTBSkQmbm", "lNLtg2JdTCk9sSkfvgyB", "WPKLWP1bo3pcUq", "W70uC1CnWQlcR8o3q0e", "rmorCCooWRpdOq", "z8o+W57cIKqhWQ1YWQzGWPFcUCoS", "WOpcVd8PDCo6", "ECk8WO1Gnr/dSKtdL8kn", "W4FdSCk3EgxdSeu", "z8oVW4VcTfKxWP91WQfT", "W5foxu4WvW", "tmojEa/cRmoLWO4", "qNv5WOhcOCophc14", "cmopW7C1a8oIW63dJmoH", "WPSZWQPOlxK", "W7GoxL0hWRq", "ESk9WP96", "W5JdVSkTBgZdN1C", "rSomDCoJWQtdRdZdGWKH", "WOJcQmkvjSoUbq7cPCo+ua", "gJujWOxcQCoW", "hYmIWPtcVmo0", "WRlcHCo/FIW", "WOWzaXH8dZbWm8klmCoT", "uSoDymovWRxdQWRdGXe6", "W6xdRrqHW4XLzCkgESk9W4L5", "W5pcRwxcLJNcJCoeWQ0RfX96wHRcK8kHWPxcJW", "WOi1WPDV", "W7DuW4dcH8o8W6j4dq", "uLK/EaHAW4fpmCo5WOxcKW", "dmokW5BdSvS", "W7BdSdFcVCoG", "WOr0W7ibza12j1FdVCkyWR/cTCkXlmkiWRn+q8omAmkwkCoTba3cVa", "W53dUbikW5D4s8kdumkYW5HU", "W5VcGCoFm8oLWRFdNqRdTGerW5pdNa", "FwiUzwnpeW", "Ax8SAwnsbq", "WOfwFCkmWRvSWQCnW4SKvSkCjmo/", "W53dLXarW5z4zSk9yq", "WQVdRCk7W5zjgG", "W5JdV3XseZ7cQW", "ACkOw8kwiNafWPz/WQ1lhdBcKComW7m6tcq", "x8kyFCk2bLWGWQzDWPC", "oSoJW4fiWOrPW4G", "uvTAb1uiW4fl", "WRn2WP57WQpcQwr+eSoksSox", "amofW6iXa8oLW7ldMSoNWQ4wW5ddS1K", "WRzUwCkImZnl", "W6KddmoErHpcOG", "psLSWPBcSmoSoZD1WPDTW7dcGW", "sgyGzh9DaJWpwJa7r8k5bq", "CSoPW4/cO1Cb", "omoOW4nkWOX2", "xCkfASkra0eLWQ13WOv8pa", "WRn2WP57WQpcQwr+amootmobW5BcTCkS", "W6VcQ0RcNdtcN8onW6Gbgr8/FW/cJCkHWP/dImkRWPBdHq8FAGnwWQbuWPq", "WQb9W4ldMCogWOSXWRhdLCoyEsm", "WQ5kBSkiWQnG", "WQ4WomkfhuhdNComWPWQ", "sSksD8k9aG", "Axu1Awnqbqusxx4GtmkX", "rSomDCoLWRtdSthdJJm3cJJdU8kwW40", "W7hdQhflhXZcVmoQWP4", "WOiYomkBafBdQ8orWO0", "zgmeFMTq", "WPqQl8kwbvVdRSkfWOqRWP7cKCkQW5pdL8kwWORcSsxcKa", "lCooW6i1a8oJW6BcN8o7WOiDW4ddLeLZyW", "tCogzG", "f8ofW6aybSoPW6FdKCoMWOGYW4ddPa", "W4pdTCk/EgpdKW", "W43cMSoz", "W7DEW43cGCo8W6m", "vCk4WP57lXG", "rmkucf0JCaX8cG", "qSoDb8kaWQNdVW", "mCoVW5z5WOn3W4Gof8ow", "xMbXWORdQLi", "W6KdcSoDwYtcOMiQwuBcGG", "WROHlCk5bLBdR8oSWOW", "W4v7jIKytZBcG8otgq", "wmkKfui5AGPxla", "W4iKD2i", "ymkEexiJDWLSn03cHbG", "W7ddRrmmW5v6Ba", "W7nee2uTxcjYlmkDxCoxDxK", "W67dOmkPzg7dGNFcQCoBW5yaW5VcRW", "zCkqBmk6gfW", "W4yODg8", "FwuYya", "aSo2W4D1WOnW", "WQ0eWReczLFdSCoUtmk3WRFdOsZdG3HnjKXo", "lSoUW5b5WPL8W4e", "cmoBW4NdIf3cSmkouCkSvG", "W4n4W503EcJdOZyYomoMWQNdTq", "W5/dP8kxxZTH", "W7ldUG8oW5b/Ba", "b8oVWPioWQJcLrNdPmkbqqlcG1r4WRpcOmoPWP8", "WRhdQSkmW4nqaaS", "WRpcULnvWOO+oCkBF8kgW69EW6u", "A8ksbLu4BqbT", "W7uyamowqrpcOL0Usq", "omo8W5KQEv7cKv3dLmkFWRhdJf8", "dmotk8oIrXaFWOzjWQ9seG", "WOVcUYeiC8o6W6P1W488", "WOnPptOwq1ZdQc7dSaBcQaK", "r8omymotWRtdQJJdMq", "W5fQmXajrq", "WQrMWPLr", "BCkTWOj3mW3dKuJdRCkkWOFdReDv", "W4/dGYJcOmo9r8kXWQVcPa", "uMyGzgnyfYef", "tComB8oaWRxdSa", "vqNdJ8kZWQO9W5K", "rW/dKCk7WRDZ", "WQhcRM/dVmkIhCoUW5RdIG", "W4JdQ8oVWPW", "WPnOW57dL8oCWPC", "WPz+W7xdHSojWPm", "WPTWtSkOWO1DWO8", "WOrImtSwtZ3dPdBdTWNcRG", "WRWBW6mhyua", "qJayrJ7cSq", "WQD7WO9CWQlcUgrfoSocxCoxW5hcQCkNW6i8WPxdVW", "W5jvW5xcH8oKW6jZqWzWbCksWRldQCkRWPFdKCoriZC", "vmoDdCkiWRRdQxe", "W47cKCoon8oIWQddIWO", "W6jBquaQsWv9mCkwgmoU", "jSkcpmopoI9psMFdMCoKa8kZa8oUW4NcKCkj", "WQP/W7aIFq1+y03dSCkjWQNcSSkTjW", "D8kjdf4IxarMhuNcGG", "W544z29jba7dOcNdHq", "hCoBW5tdTKRcQ8kWv8kGxmoKW4pdRq", "g8oFW47dUuBcTCktDCk7w8o+W5ldRmo4", "WQXDF8kmWRbPWRa", "fcmIWPBcUSo9jIbAWOXGW7RcPmoZ", "W77cMCogWPawW7W", "WR1GWRXyWRRcQwW", "WQbojuakWOlcHmousG", "W5xdQJNcVSkYF8k3WPFcNGxdLLGmWQ7dPmkS", "qJylqZNcOCkjCSkn", "W6lcJSobWPKwW5BdSdxdUmoulG", "W6xdRrqNW5X4AmkluSkV", "pmkel8okitP5qMBdMCkHpq", "WRyWoSo+quDoW4ZdGgRdQLK", "W6TjW4RcImo8W49YfWTWcSke", "W7anz8oXz0m", "WPRdHmkACCkVW6FdRa/dGH0aW4G", "W5VcKCoBcmoYWQS", "pX9RjLKlW6jnma", "W60mqmoZ", "oalcHmkfgmk6WPqlW7K", "cCozj8oNtHGCWOvEWPnqda", "qCobbSkwWOtdS2as", "W73dUCk4Ag7dHvBdRmokW48zW57cRNpcGSovFt0i", "fCkvmCowkGHn", "W6BcM8kpj8o4WR/dJXddIabyW47dMgS5jSo9dmoGEG", "WRVdSmk2WOXqerVcJ8omW4rU", "W7tdPSk6yxxdL0FcPCoaW5LjW4FcUwtcJ8kADNnnBCkreepcPmow", "WQTiFSkUWRzWWQ1z", "WQHmECotzKhdOGy", "W6nNFSkUebTk", "sSomEmoHWRpdTZa", "gmoFW47dL3W", "WQlcMSo9CthdMbbJWPD2WQu", "brf6i0iw", "W6NcQ8oPWPqpw1/cK8oOW7zpW6CX", "WO9/W5/dNCobWOWw", "qrpdKCk6", "uCoCCSop"];
1817
- return (Oe = function() {
1818
- return t5;
1819
- })();
1802
+ return ze(n2 - -28, t5);
1820
1803
  }
1821
- const De = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
1822
- let Le = false, Be = false;
1823
- function Pe(t5, e2, n2, r2, o2) {
1824
- return Fe(t5 - -292, e2);
1804
+ const Fe = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
1805
+ let Oe = false, De = false;
1806
+ function Le(t5, e2, n2, r2, o2) {
1807
+ return ze(e2 - 709, n2);
1825
1808
  }
1826
- const ze = Te(-635, 0, 0, "0c6Q")[Ie(0, -214, 0, 0, "ibgb")]("")[Pe(32, "fO34")]((t5, e2) => e2 + t5, "");
1827
- class je {
1809
+ const Be = Ie(983, 0, 0, 0, "jBcb")[Ie(991, 0, 0, 0, "vb)n")]("")[Re(0, 0, "YZ#I", 0, 1330)]((t5, e2) => e2 + t5, "");
1810
+ class Pe {
1828
1811
  constructor() {
1829
- function t5(t6, e2, n2, r2, o2) {
1830
- return Ie(0, r2 - -103, 0, 0, e2);
1812
+ const t5 = 11, e2 = "[beQ";
1813
+ function n2(t6, e3, n3, r2, o2) {
1814
+ return ke(n3, 0, e3 - -266);
1831
1815
  }
1832
- this[t5(0, "haaF", 0, -267)][t5(0, "fO34", 0, -339)] = null;
1816
+ this[n2(0, 41, "%]Ov")][n2(0, t5, e2)] = null;
1833
1817
  }
1834
- async [xe(0, 0, "5mAe", 0, -340)](t5, e2 = false) {
1835
- const n2 = "7NUo", r2 = 640, o2 = "@HR!", s2 = 1042, i2 = 995, a2 = 1139, l2 = 1052, c2 = "ibgb", h2 = 718, u2 = "OvbF", d2 = "G%CO", g2 = 938, m2 = 873, f2 = 693, p2 = 642, _2 = 758, S2 = 811, w2 = 836, y2 = 761, E2 = "TuS^", b2 = 1232, C2 = 1219, v2 = 1279, x2 = 663, I2 = 909, R2 = 1015, A2 = 997, M2 = "MgZa", T2 = 688, N2 = "^txW", k2 = 1201, F2 = 1135, O2 = 632, D2 = 730, L2 = "K9rb", B2 = "hyxZ", P2 = 583, z2 = "dE!n", j2 = "W@iW", W2 = 1088, H2 = "YBR0", V2 = "qR)o", $2 = "7Nex", G2 = 1234, U2 = 1137;
1836
- function q2(t6, e3, n3, r3, o3) {
1837
- return xe(0, 0, n3, 0, o3 - U2);
1818
+ async [ke("jBcb", 0, 402)](t5, e2 = false) {
1819
+ const n2 = "%]Ov", r2 = "HkLN", o2 = 1351, s2 = "HkLN", i2 = "JE9e", a2 = 755, l2 = 1157, c2 = "U$e2", h2 = "uhBF", u2 = 663, d2 = 742, g2 = 416, m2 = "F@Kd", f2 = 449, p2 = "e3y4", _2 = 1364, S2 = 457, w2 = "YZ#I", y2 = 461, E2 = 424, b2 = "1S$@", C2 = 357, v2 = 358, x2 = 444, I2 = 601, R2 = "^Sfr", A2 = 634, M2 = 643, N2 = 1252, T2 = "#37p", k2 = "OHcB", F2 = 504, O2 = 849, D2 = 1302, L2 = "O!o(", B2 = 407, P2 = 128;
1820
+ if (!t5 || t5[V2(494, "F@Kd")](V2(447, n2)) || t5[$2(-315, -253, r2)](V2(457, "Jp]&")) || t5[z2(o2, 1453, 1250, "Fk1I")](V2(480, s2)) || t5[j2(i2, 761, 761, a2)](z2(1203, 1136, l2, c2))) return Oe = true, await this[j2(h2, 720, u2, d2)](true);
1821
+ function z2(t6, e3, n3, r3, o3) {
1822
+ return Ie(t6 - 333, 0, 0, 0, r3);
1838
1823
  }
1839
- if (!t5 || t5[K2("ZK(X", 1105, 1141, 1031, 1073)](q2(0, 0, n2, 0, r2)) || t5[K2(o2, s2, i2, a2, l2)](Q2(c2, 718, h2, 694, 654)) || t5[q2(0, 0, u2, 0, 738)](K2(d2, 876, g2, m2, 969)) || t5[Q2("FqSD", 593, 594, 733, f2)](q2(0, 0, "2dbG", 0, p2))) return Le = true, await this[J2(-713, "G%CO", -601, -775, -699)](true);
1840
- function J2(t6, e3, n3, r3, o3) {
1841
- return Ie(0, o3 - -403, 0, 0, e3);
1824
+ function j2(t6, e3, n3, r3, o3) {
1825
+ return Le(0, r3 - -228, t6);
1842
1826
  }
1843
- if (Le = false, !e2 && De[Q2("MrMO", _2, S2, w2, y2)]) {
1844
- const t6 = await this[X2(E2, 1271, b2, C2, v2)]();
1845
- if (t6[q2(0, 0, "WKzL", 0, x2)]() && !t6[J2(0, "TuS^", 0, 0, -583)]()) return t6;
1827
+ if (Oe = false, !e2 && Fe[V2(g2, m2)]) {
1828
+ const t6 = await this[V2(f2, p2)]();
1829
+ if (t6[z2(_2, 0, 0, "uhBF")]() && !t6[H2(S2, w2, 544, y2)]()) return t6;
1846
1830
  }
1847
- function K2(t6, e3, n3, r3, o3) {
1848
- return Ie(0, o3 - 1238, 0, 0, t6);
1831
+ Fe[H2(E2, b2, 495, C2)] = t5, Fe[V2(v2, "nQE4")] = H2(x2, c2, 393, 484), Fe[$2(-105, -134, "vb)n")] = null, Fe[H2(I2, R2, A2, M2)] = null;
1832
+ const W2 = await this[z2(N2, 0, 0, T2)]();
1833
+ function H2(t6, e3, n3, r3, o3) {
1834
+ return Re(0, 0, e3, 0, t6 - -722);
1849
1835
  }
1850
- function X2(t6, e3, n3, r3, o3) {
1851
- return xe(0, 0, t6, 0, o3 - 1577);
1836
+ if (!W2[z2(1380, 0, 0, n2)]()) throw await this[H2(460, i2)](true), new Error($2(-76, -136, k2));
1837
+ function V2(t6, e3, n3, r3, o3) {
1838
+ return ke(e3, 0, t6 - P2);
1852
1839
  }
1853
- De[K2("HfPW", I2, R2, 1046, A2)] = t5, De[q2(0, 0, M2, 0, T2)] = J2(0, "OvbF", 0, 0, -642), De[X2(N2, k2, F2, 1193, 1153)] = null, De[Q2("TuS^", O2, 712, D2, 721)] = null;
1854
- const Y2 = await this[J2(0, "@HR!", 0, 0, -584)]();
1855
- if (!Y2[X2(L2, 0, 0, 0, 1162)]()) throw await this[Q2(B2, P2, 563, 694, 605)](true), new Error(K2(z2, 0, 0, 0, 915));
1856
- function Q2(t6, e3, n3, r3, o3) {
1857
- return xe(0, 0, t6, 0, o3 - 1094);
1840
+ function $2(t6, e3, n3, r3, o3) {
1841
+ return Le(0, e3 - -1214, n3);
1858
1842
  }
1859
- if (bt[K2(j2, 0, 0, 0, W2)]()) {
1860
- await be[J2(0, H2, 0, 0, -702)](t5, e2);
1861
- if (!(await this[J2(0, V2, 0, 0, -701)]())[q2(0, 0, "0c6Q", 0, 826)]()) throw await this[X2($2, 0, 0, 0, 1255)](true), new Error(X2("@HR!", 0, 0, 0, G2));
1843
+ if (bt[V2(F2, "JE9e")]()) {
1844
+ await be[$2(0, -173, "nQE4")](t5, e2);
1845
+ if (!(await this[j2("O!o(", 0, 0, O2)]())[H2(423, "#pUA")]()) throw await this[z2(D2, 0, 0, L2)](true), new Error(H2(B2, "Ar9C"));
1862
1846
  }
1863
- return Y2;
1847
+ return W2;
1864
1848
  }
1865
- async [xe(0, 0, "hyxZ", 0, -471)](t5 = false) {
1866
- const e2 = 1073, n2 = 1203, r2 = 1094, o2 = 1311, s2 = 1322, i2 = 1220, a2 = 1219, l2 = 693, c2 = "ZFKX", h2 = 741, u2 = 367, d2 = 328, g2 = "^txW", m2 = "Ie^T", f2 = 1241, p2 = 1152, _2 = 564, S2 = "#yE*", w2 = 625, y2 = "sKVB", E2 = 363, b2 = 304, C2 = 220, v2 = 224, x2 = 312, I2 = "GeQ9", R2 = 1038, A2 = 1134, M2 = "sKVB", T2 = 752, N2 = "MrMO", k2 = "WKzL", F2 = 1164, O2 = 1266, D2 = 1397, L2 = 1251, B2 = "ZK(X", P2 = 1217, z2 = 1169, j2 = 703, W2 = 687, H2 = 322, V2 = "MrMO", $2 = 1107, G2 = 987, U2 = "Xd@Y", q2 = "Ie^T", J2 = 1069, K2 = 1095, X2 = "MgZa", Y2 = "&43P", Q2 = 973, Z2 = 1045, tt2 = "gbRr", et2 = 1044, nt2 = 460, rt2 = 1233, ot2 = 1263, st2 = 1172, it2 = "2!i%", at2 = 694, lt2 = "6yK0", ct2 = 1076, ht2 = "Ri@x", ut2 = 1028, dt2 = 299, gt2 = "YBR0", mt2 = 307, ft2 = "Hfto", pt2 = "FqSD", _t2 = 574, St2 = 965, wt2 = 297, yt2 = 197, Et2 = 144, Ct2 = 538, vt2 = "ka7G", xt2 = 492, It2 = 479, Rt2 = 246;
1867
- function At2(t6, e3, n3, r3, o3) {
1868
- return xe(0, 0, n3, 0, o3 - -127);
1849
+ async [ke("O!o(", 0, 340)](t5 = false) {
1850
+ const e2 = "(Dh6", n2 = "jpUj", r2 = 923, o2 = "8uLH", s2 = 52, i2 = 51, a2 = "xv2R", l2 = "e3y4", c2 = "TAa]", h2 = "&vi!", u2 = "HkLN", d2 = 72, g2 = "F@Kd", m2 = 5, f2 = "6b7Z", p2 = 30, _2 = 50, S2 = 37, w2 = 9, y2 = "Jp]&", E2 = 22, b2 = "(Dh6", C2 = 939, v2 = "uhBF", x2 = 39, I2 = 92, R2 = 29, A2 = 763, M2 = "*Aeh", N2 = 94, T2 = 133, k2 = "%CRV", F2 = 760, O2 = "3ZP3", D2 = 130, L2 = "BslY", B2 = 204, P2 = 348, z2 = "Fk1I", j2 = 199, W2 = 189, H2 = "Ar9C", V2 = 1194, $2 = 166;
1851
+ function G2(t6, e3, n3, r3, o3) {
1852
+ return Le(0, e3 - -217, o3);
1869
1853
  }
1870
- if (De[Dt2(1078, 1166, 1181, 1255, "&43P")]) return De[Ot2(e2, n2, r2, "2!i%", 1105)];
1871
- if (!this[Dt2(1328, o2, 1265, 1329, "GeQ9")][Dt2(s2, 1242, i2, a2, "Ie^T")] && (this[Bt2(l2, 831, c2, h2)][Lt2(u2, 286, d2, g2)] = new Error("FV")), De[At2(0, 0, m2, 0, -545)]) return De[Ot2(1221, f2, 1080, "ZFKX", p2)];
1872
- let Mt2 = null;
1873
- De[Bt2(630, _2, S2, w2)] = new Promise((t6) => {
1874
- Mt2 = t6;
1854
+ if (Fe[J2(-595, -615, -565, -540, "CZ^P")]) return Fe[J2(-570, -563, -542, -526, "1S$@")];
1855
+ if (!this[J2(-393, -545, -444, -450, e2)][Q2(-113, n2, -24, 20)] && (this[J2(-492, -407, -429, -465, "*Aeh")][G2(0, r2, 0, 0, o2)] = new Error("FV")), Fe[Q2(s2, "vb)n", i2, 1)]) return Fe[Z2(-336, a2, -283, -386)];
1856
+ let U2 = null;
1857
+ function J2(t6, e3, n3, r3, o3) {
1858
+ return ke(o3, 0, n3 - -821);
1859
+ }
1860
+ Fe[J2(-407, -538, -439, -405, l2)] = new Promise((t6) => {
1861
+ U2 = t6;
1875
1862
  });
1876
- let Tt2, Nt2 = null;
1877
- const kt2 = async (t6, e3) => {
1878
- const n3 = 419, r3 = 235;
1863
+ let q2, K2 = null;
1864
+ const X2 = async (t6, e3) => {
1865
+ const n3 = 189, r3 = 191;
1879
1866
  try {
1880
- const d3 = ((t7) => {
1867
+ const h3 = ((t7) => {
1881
1868
  let e4 = t7;
1882
1869
  const n4 = e4[e4.length - 1], r4 = n4.charCodeAt(0) - 52;
1883
1870
  if (e4 = e4.substring(0, e4.length - 1), e4 = e4.split("").reverse().join(""), e4 = ve(e4), e4 = e4.trim(), e4[e4.length - 1] !== n4) throw new Error();
@@ -1889,200 +1876,217 @@ class je {
1889
1876
  } catch (t8) {
1890
1877
  throw new Error("Invalid license key.");
1891
1878
  }
1892
- })(e3), g3 = ((t7, e4, n4) => {
1893
- const r4 = "haaF";
1894
- function o4(t8, e5, n5, r5, o5) {
1895
- return Fe(o5 - -125, t8);
1879
+ })(e3), u3 = await (async (t7) => {
1880
+ const e4 = 221, n4 = "uhBF", r4 = "jpUj", o4 = 1279, s4 = "U$e2", i4 = 1042, a4 = 1148, l4 = "%]Ov", c4 = 1198, h4 = "OU&F", u4 = "%z#E", d4 = 1125, g3 = "%]Ov", m3 = 1174, f3 = "^Sfr", p3 = 1055, _3 = 1103, S3 = 1059, w3 = 1126, y3 = "YZ#I", E3 = 981, b3 = 53, C3 = "[beQ", v3 = 670, x3 = t7[I3(37, 130, "xF!p")];
1881
+ function I3(t8, e5, n5, r5, o5) {
1882
+ return ze(e5 - -224, n5);
1896
1883
  }
1897
- function s4(t8, e5, n5, r5, o5) {
1898
- return Fe(t8 - -143, n5);
1884
+ const R3 = t7[I3(0, e4, n4)] ? new Date(t7[F3(1108, r4, 1183)]) : null;
1885
+ function A3(t8, e5, n5, r5, o5) {
1886
+ return ze(t8 - 808, n5);
1899
1887
  }
1900
- function i4(t8, e5, n5, r5, o5) {
1901
- return Fe(e5 - -337, t8);
1888
+ const M3 = t7[F3(o4, s4, 1216)], N3 = [];
1889
+ function T3(t8, e5, n5, r5, o5) {
1890
+ return ze(t8 - v3, r5);
1902
1891
  }
1903
- return { licensee: () => t7[o4("haaF", 0, 0, 0, 229)], expiration: () => new Date(t7[s4(74, 0, "qR)o")]), domains: () => t7[s4(148, 0, "TuS^")] ?? [], developerCount: () => t7[o4("5mAe", 0, 0, 0, 176)] ?? 1, cpuCount: () => t7[i4("Hfto", -126)] ?? 0, type: () => t7[i4("Ri@x", 5)] ?? i4("haaF", -9), exceptions: () => e4, isValidFor: (t8) => {
1904
- return !(e4?.[n5 = 1046, r5 = "dE!n", o4(r5, 0, 0, 0, n5 - 845)] > 0);
1905
- var n5, r5;
1906
- }, isValid: () => true, isEval: () => false, features: () => Object[i4("Hfto", -25)](t7[o4("MgZa", 0, 0, 0, 235)] ?? {}), keyFrom: () => n4, getBuildVersion: _e[a4 = "WKzL", l4 = 458, Fe(l4 - 149, a4)], getBuildDate: _e[o4(r4, 0, 0, 0, 212)] };
1907
- var a4, l4;
1908
- })(d3, await (async (t7) => {
1909
- const e4 = 428, n4 = 469, r4 = 474, o4 = 477, s4 = 494, i4 = 435, a4 = "wlpJ", l4 = "TuS^", c4 = 558, h4 = 454, u4 = 515, d4 = "AGc^", g4 = 1110, m3 = 421, f3 = "gbRr", p3 = "WKzL", _3 = 1121, S3 = 381, w3 = 465, y3 = "FqSD", E3 = 532, b3 = "^txW", C3 = 581, v3 = "7NUo", x3 = "YBR0", I3 = 1024, R3 = "#yE*", A3 = 211, M3 = 215, T3 = t7[k3("7NUo", 532, 638, 582)], N3 = t7[k3("MgZa", e4, n4, r4)] ? new Date(t7[P3(o4, s4, 402, i4, a4)]) : null;
1910
1892
  function k3(t8, e5, n5, r5, o5) {
1911
- return Fe(r5 - M3, t8);
1893
+ return ze(o5 - -801, r5);
1912
1894
  }
1913
1895
  function F3(t8, e5, n5, r5, o5) {
1914
- return Fe(e5 - 194, n5);
1915
- }
1916
- const O3 = t7[F3(0, 449, "N72V")], D3 = [];
1917
- function L3(t8, e5, n5, r5, o5) {
1918
- return Fe(n5 - 759, t8);
1896
+ return ze(n5 - 795, e5);
1919
1897
  }
1920
- function B3(t8, e5, n5, r5, o5) {
1921
- return Fe(e5 - -594, n5);
1922
- }
1923
- function P3(t8, e5, n5, r5, o5) {
1924
- return Fe(r5 - A3, o5);
1925
- }
1926
- if (N3 ? isNaN(N3) ? D3[B3(-279, -312, "sKVB")](L3(d4, 0, g4)) : N3 < /* @__PURE__ */ new Date() && D3[B3(-355, -258, "Ri@x")](k3("fO34", 0, 0, m3) + N3[P3(534, 591, 580, 492, f3)]()) : D3[k3(l4, 0, 0, c4)](P3(h4, 496, 527, u4, "$fgj")), bt[B3(0, -396, "HRel")]()) {
1927
- if (!O3) return D3[L3(p3, 0, _3)](k3("gbRr", 0, 0, 525)), D3;
1928
- const t8 = await be[F3(0, S3, "$fgj")]();
1929
- t8 !== O3 && D3[F3(0, w3, y3)](P3(0, 0, 0, E3, "5mAe") + O3 + L3(b3, 0, 1010) + t8);
1898
+ if (R3 ? isNaN(R3) ? N3[A3(1241, 0, l4)](A3(c4, 0, "TAa]")) : R3 < /* @__PURE__ */ new Date() && N3[A3(1084, 0, h4)](A3(1197, 0, u4) + R3[F3(1062, "xF!p", d4)]()) : N3[F3(i4, "uhBF", 1145)](A3(a4, 0, n4)), bt[T3(1102, 0, 0, g3)]()) {
1899
+ if (!M3) return N3[k3(0, 0, 0, "fnMx", -490)](A3(m3, 0, f3)), N3;
1900
+ const t8 = await be[A3(p3, 0, "YZ#I")]();
1901
+ t8 !== M3 && N3[k3(0, 0, 0, "YZ#I", -363)](F3(0, "1S$@", _3) + M3 + k3(0, 0, 0, "%z#E", -383) + t8);
1930
1902
  } else {
1931
- if (Ae()) return D3;
1932
- if (T3 && 0 !== T3[k3("MgZa", 0, 0, C3)]) {
1903
+ if (Me()) return N3;
1904
+ if (x3 && 0 !== x3[T3(1023, 0, 0, "@oZF")]) {
1933
1905
  let t8 = false;
1934
- const e5 = Re();
1935
- for (let n5 = 0; !t8 && n5 < T3[L3("7p8I", 0, I3)]; n5++) t8 = e5[P3(0, 0, 0, 416, R3)](T3[n5]);
1936
- !t8 && D3[P3(0, 0, 0, 432, "MgZa")](B3(0, -302, "Hfto"));
1937
- } else D3[k3(v3, 0, 0, 435)](L3(x3, 0, 967));
1906
+ const e5 = Ae();
1907
+ for (let n5 = 0; !t8 && n5 < x3[A3(w3, 0, y3)]; n5++) t8 = e5[k3(0, 0, 0, "#37p", -360)](x3[n5]);
1908
+ !t8 && N3[T3(E3, 0, 0, "fnMx")](I3(0, b3, C3));
1909
+ } else N3[A3(S3, 0, "3ZP3")](A3(1072, 0, "1S$@"));
1938
1910
  }
1939
- return D3;
1940
- })(d3), t6);
1941
- return g3[l3 = yt2, c3 = "7Nex", h3 = 157, u3 = Et2, Dt2(l3 - 91, u3 - -1100, c3 - It2, h3 - Rt2, c3)]()[o3 = Ct2, s3 = vt2, i3 = 509, a3 = xt2, Ot2(o3 - 35, s3 - n3, i3 - r3, s3, a3 - -498)] > 0 && (Tt2 = g3), g3;
1911
+ return N3;
1912
+ })(h3), d3 = Ne(h3, u3, t6);
1913
+ return d3[a3 = z2, l3 = j2, c3 = W2, tt2(a3 - n3, l3 - r3, c3 - 105, a3)]()[o3 = H2, s3 = 1102, i3 = 1190, Q2(o3 - 446, o3, i3 - V2, s3 - $2)] > 0 && (q2 = d3), d3;
1942
1914
  } catch (e4) {
1943
- Tt2 = Me(t6);
1915
+ q2 = ((t7) => {
1916
+ const e5 = 1069;
1917
+ function n4(t8, e6, n5, r4, o4) {
1918
+ return ze(n5 - -816, t8);
1919
+ }
1920
+ return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => n4("Fl#D", 0, -435), exceptions: () => {
1921
+ return [(r4 = "U$e2", o4 = e5, n4(r4, 0, o4 - 1628) + t7 + "'")];
1922
+ var r4, o4;
1923
+ }, isValidFor: (t8) => false, isValid: () => false, isEval: () => false, features: () => Object[n4("jpUj", 0, -403)]({}), keyFrom: () => t7, getBuildVersion: _e[n4("*Aeh", 0, -482)], getBuildDate: _e[n4("(Dh6", 0, -536)] };
1924
+ })(t6);
1944
1925
  }
1945
- var o3, s3, i3, a3, l3, c3, h3, u3;
1926
+ var o3, s3, i3, a3, l3, c3;
1946
1927
  };
1947
- De[At2(0, 0, "2!i%", 0, -435)] && (Nt2 = await kt2(De[At2(0, 0, y2, 0, -533)], De[Lt2(E2, 342, b2, "Ri@x")]));
1948
- let Ft2 = false;
1949
- if (Le && (Ft2 = true, Nt2 = Ne(Lt2(C2, v2, x2, I2))), !Nt2) {
1950
- if (bt[Ot2(1069, R2, A2, M2, 1071)]()) {
1951
- if (!Nt2) {
1952
- const t6 = process[Ot2(1040, 1111, 1156, "YBR0", 1127)], e3 = t6[Bt2(T2, 684, "7Nex", 744)] || t6[At2(0, 0, "Hfto", 0, -619)] || t6[At2(0, 0, N2, 0, -444)] || t6[At2(0, 0, k2, 0, -615)];
1953
- e3 && (Nt2 = await kt2(Dt2(1350, 1254, F2, O2, "MrMO"), e3));
1928
+ Fe[J2(0, 0, -595, 0, "e3y4")] && (K2 = await X2(Fe[Z2(-269, c2, -420, -364)], Fe[G2(0, 856, 0, 0, "BslY")]));
1929
+ let Y2 = false;
1930
+ if (Oe && (Y2 = true, K2 = Te(Q2(-18, "Jp]&", -100, -164))), !K2) {
1931
+ if (bt[Z2(-472, h2, -472, -432)]()) {
1932
+ if (!K2) {
1933
+ const t6 = process[Q2(-37, u2, -81, 0)], e3 = t6[tt2(55, 110, d2, "xv2R")] || t6[G2(0, 926, 0, 0, "%]Ov")] || t6[Z2(-468, "OU&F", -429, -387)] || t6[Q2(-21, g2, m2, -12)];
1934
+ e3 && (K2 = await X2(G2(0, 851, 0, 0, a2), e3));
1954
1935
  }
1955
- if (!Nt2) {
1956
- const t6 = await be[Dt2(D2, 1308, 1354, L2, B2)]();
1957
- t6 && (Nt2 = await kt2(Dt2(P2, 1163, 1223, z2, "Xd@Y"), t6));
1936
+ if (!K2) {
1937
+ const t6 = await be[J2(0, 0, -547, 0, "%CRV")]();
1938
+ t6 && (K2 = await X2(Z2(-445, "D19A", -410, -437), t6));
1958
1939
  }
1959
- !Nt2 && (Ft2 = true);
1940
+ !K2 && (Y2 = true);
1960
1941
  } else {
1961
- if (!Nt2) try {
1962
- const t6 = await fetch("./" + ze);
1942
+ if (!K2) try {
1943
+ const t6 = await fetch("./" + Be);
1963
1944
  let e3 = null;
1964
- if (200 === t6[Bt2(684, j2, "0c6Q", 742, W2)]) {
1965
- const n3 = (await t6[Lt2(315, H2, 370, V2, 417)]())[Ot2($2, G2, 1172, U2, 1079)]("\n");
1966
- for (let t7 = 0; !e3 && t7 < n3[At2(0, 0, q2, 0, -552)]; t7++) {
1967
- const r3 = n3[t7][Dt2(J2, 1149, 1247, K2, "HRel")]();
1968
- r3[At2(0, 0, X2, 0, -511)]("#") || 0 === r3[Bt2(644, 676, Y2, 617, 588)] || (e3 = r3);
1945
+ if (200 === t6[Q2(47, f2, 28, -p2, 54)]) {
1946
+ const n3 = (await t6[Q2(-_2, "*Aeh", S2, 37, 95)]())[J2(0, 0, -560, 0, c2)]("\n");
1947
+ for (let t7 = 0; !e3 && t7 < n3[Q2(-w2, y2, -E2, 65, -37)]; t7++) {
1948
+ const r3 = n3[t7][J2(0, 0, -462, 0, b2)]();
1949
+ r3[G2(0, C2, 0, 0, v2)]("#") || 0 === r3[Q2(x2, "nQE4", 55, I2, R2)] || (e3 = r3);
1969
1950
  }
1970
1951
  }
1971
1952
  if (e3) {
1972
- const t7 = Ot2(Q2, 1044, Z2, tt2, et2) + ze + "')";
1973
- Nt2 = await kt2(t7, e3);
1953
+ const t7 = G2(0, A2, 0, 0, M2) + Be + "')";
1954
+ K2 = await X2(t7, e3);
1974
1955
  }
1975
1956
  } catch (t6) {
1976
1957
  }
1977
- !Nt2 && Ae() && (Ft2 = true);
1958
+ !K2 && Me() && (Y2 = true);
1978
1959
  }
1979
1960
  }
1980
- function Ot2(t6, e3, n3, r3, o3) {
1981
- return ke(0, 0, r3, o3 - 152);
1982
- }
1983
- function Dt2(t6, e3, n3, r3, o3) {
1984
- return ke(0, 0, o3, e3 - wt2);
1961
+ function Q2(t6, e3, n3, r3, o3) {
1962
+ return Ie(n3 - -953, 0, 0, 0, e3);
1985
1963
  }
1986
- function Lt2(t6, e3, n3, r3, o3) {
1987
- return Te(n3 - St2, 0, 0, r3);
1964
+ function Z2(t6, e3, n3, r3, o3) {
1965
+ return Le(0, r3 - -1502, e3);
1988
1966
  }
1989
- function Bt2(t6, e3, n3, r3, o3) {
1990
- return Pe(r3 - 740, n3);
1967
+ function tt2(t6, e3, n3, r3, o3) {
1968
+ return We(t6 - 48, e3 - B2, n3 - P2, r3);
1991
1969
  }
1992
- if (!Nt2 && Ft2 && (Nt2 = Ne(Lt2(410, 368, nt2, "7p8I"))), !Nt2 && Tt2 && (Nt2 = Tt2), !Nt2 && (Nt2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [Bt2(850, 737, "#WnK", 793)], isValidFor: (t6) => false, isValid: () => false, features: () => Object[Bt2(593, 778, "gbRr", 684)]({}), keyFrom: () => Dt2(1311, 1278, 1278, 1181, "tEx$"), getBuildVersion: _e[Dt2(rt2, ot2, 1172, st2, "MgZa")], getBuildDate: _e[Lt2(489, 451, 401, c2)] }), De[Ot2(0, 0, 0, "N72V", 1015)] = Nt2, Mt2(Nt2), t5) {
1993
- if (!(De[At2(0, 0, "ibgb", 0, -606)] && De[Bt2(0, 0, it2, at2)]) && (Ft2 || Nt2[Ot2(0, 0, 0, lt2, ct2)]()[Ot2(0, 0, 0, ht2, ut2)] > 0 || Nt2[Lt2(0, 0, dt2, gt2)]()?.pb)) {
1994
- if (Be) return void setTimeout(() => {
1995
- var t6, e3;
1996
- this[t6 = pt2, e3 = _t2, Lt2(0, 0, e3 - 126, t6)](false, false);
1970
+ if (!K2 && Y2 && (K2 = Te(J2(0, 0, -494, 0, "^Sfr"))), !K2 && q2 && (K2 = q2), !K2 && (K2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [G2(0, 788, 0, 0, "^Sfr")], isValidFor: (t6) => false, isValid: () => false, features: () => Object[tt2(13, 26, -56, "vb)n")]({}), keyFrom: () => tt2(14, 0, -26, "Jp]&"), getBuildVersion: _e[tt2(N2, T2, 236, k2)], getBuildDate: _e[G2(0, F2, 0, 0, "OU&F")] }), Fe[J2(0, 0, -477, 0, "JE9e")] = K2, U2(K2), t5) {
1971
+ if (!(Fe[Z2(0, "^Kre", 0, -515)] && Fe[Q2(0, O2, 54)]) && (Y2 || K2[Q2(0, "HkLN", 49)]()[tt2(D2, 32, -28, "jpUj")] > 0 || K2[J2(0, 0, -401, 0, L2)]()?.pb)) {
1972
+ if (De) return void setTimeout(() => {
1973
+ var t6, e3, n3;
1974
+ this[t6 = "DI8J", e3 = -394, n3 = -416, tt2(t6 - 251, n3 - -493, e3 - 266, t6)](false, false);
1997
1975
  }, 8e3);
1998
- await this[Bt2(0, 0, "7Nex", 789)](false, false);
1976
+ await this[Z2(0, e2, 0, -416)](false, false);
1999
1977
  }
2000
1978
  }
2001
- return De[Lt2(0, 0, mt2, ft2)];
1979
+ return Fe[G2(0, 911, 0, 0, "TAa]")];
2002
1980
  }
2003
- async [ke(0, 0, "&43P", 961)](t5) {
2004
- const e2 = "MgZa", n2 = "haaF", r2 = 1117, o2 = 1139, s2 = "TuS^", i2 = "tEx$", a2 = "fO34", l2 = 536, c2 = 1249, h2 = 490;
2005
- function u2(t6, e3, n3, r3, o3) {
2006
- return ke(0, 0, n3, t6 - -1340);
2007
- }
2008
- De[g2("jE4@", 1105, 1285, 1185)] = true;
2009
- const d2 = await this[u2(-417, 0, e2)]();
2010
- function g2(t6, e3, n3, r3, o3) {
2011
- return Pe(r3 - c2, t6);
2012
- }
2013
- return await be[g2(n2, 1179, r2, o2)](t5), !De[u2(-375, 0, s2)] && (d2[u2(-415, 0, "$fgj")]() || d2[p2 = -2, _2 = i2, ke(0, 0, _2, p2 - -874)]()[g2("FqSD", 0, 0, 1194)] > 0) && await this[u2(-350, 0, a2)](t5), Promise[m2 = "ZFKX", f2 = l2, Pe(f2 - h2, m2)]();
2014
- var m2, f2, p2, _2;
2015
- }
2016
- async [Te(-600, 0, 0, "hyxZ")](t5 = false, e2 = false, n2 = false) {
2017
- const r2 = 996, o2 = 1068, s2 = 1008, i2 = 519, a2 = 880, l2 = 901, c2 = "haaF", h2 = 1138, u2 = 1525;
2018
- function d2(t6, e3, n3, r3, o3) {
2019
- return xe(0, 0, o3, 0, r3 - u2);
1981
+ async [ke("HkLN", 0, 374)](t5) {
1982
+ const e2 = 1389, n2 = "2rZ)", r2 = 65, o2 = "CZ^P", s2 = 1232, i2 = 1204, a2 = "*Aeh", l2 = 69, c2 = "jpUj", h2 = "6b7Z", u2 = "bL!X", d2 = 1194, g2 = 1093, m2 = 478;
1983
+ function f2(t6, e3, n3, r3, o3) {
1984
+ return We(t6 - 94, e3 - 1393, n3 - m2, r3);
2020
1985
  }
2021
- function g2(t6, e3, n3, r3, o3) {
2022
- return Pe(e3 - 564, t6);
1986
+ function p2(t6, e3, n3, r3, o3) {
1987
+ return Ie(n3 - -797, 0, 0, 0, r3);
2023
1988
  }
2024
- var m2, f2;
2025
- De[m2 = -518, f2 = "&43P", Pe(m2 - -469, f2)] = true;
2026
- const p2 = await this[_2(r2, o2, s2, "jE4@")]();
2027
- function _2(t6, e3, n3, r3, o3) {
2028
- return Ie(0, e3 - 1209, 0, 0, r3);
1989
+ Fe[p2(134, 225, 180, "1S$@")] = true;
1990
+ const _2 = await this[f2(e2, 1355, 1275, n2)]();
1991
+ var S2, w2;
1992
+ function y2(t6, e3, n3, r3, o3) {
1993
+ return Re(0, 0, e3, 0, o3 - -1675);
2029
1994
  }
2030
- De[g2("&43P", i2)] || !(p2[_2(810, a2, l2, "&43P")]() || p2[d2(0, 0, 0, 1097, c2)]()[d2(0, 0, 0, h2, "$fgj")] > 0) ? await be[d2(0, 0, 0, 1059, "dE!n")](p2, t5, e2, n2) : await this[g2("^txW", 467)](t5);
1995
+ return await be[p2(0, 0, r2, o2)](t5), !Fe[f2(s2, i2, 1201, a2)] && (_2[p2(0, 0, l2, c2)]() || _2[y2(-520, "uhBF", -399, -579, -492)]()[y2(-601, h2, -497, -481, -514)] > 0) && await this[S2 = u2, w2 = 225, ke(S2, 0, w2 - -122)](t5), Promise[f2(1129, d2, g2, "Jp]&")]();
2031
1996
  }
2032
- async [xe(0, 0, "#WnK", 0, -490)](t5, e2) {
2033
- const n2 = 1042, r2 = "ibgb", o2 = 1087, s2 = "7p8I", i2 = 57, a2 = 10, l2 = 44, c2 = "MgZa", h2 = "GeQ9", u2 = "MgZa", d2 = 385, g2 = 1194;
2034
- if (!t5 && (De[p2(-772, -649, -678, -716, "jE4@")] || De[m2(n2, r2, o2)])) return;
2035
- function m2(t6, e3, n3, r3, o3) {
2036
- return Pe(n3 - g2, e3);
1997
+ async [We(-79, -166, -200, "Ar9C")](t5 = false, e2 = false, n2 = false) {
1998
+ const r2 = 528, o2 = 304, s2 = "1S$@", i2 = 1282, a2 = "Pr4i", l2 = 498, c2 = 279;
1999
+ function h2(t6, e3, n3, r3, o3) {
2000
+ return Le(0, t6 - -730, r3);
2037
2001
  }
2038
- De[m2(1155, "&43P", 1149)] = true, De[p2(-662, -718, -665, -759, r2)] = true, await this[w2(-91, s2, -132, -21, -80)](t5);
2039
- const f2 = bt[w2(-100, "ka7G", i2, 1, -30)]();
2040
- function p2(t6, e3, n3, r3, o3) {
2041
- return Ie(0, r3 - -445, 0, 0, o3);
2002
+ function u2(t6, e3, n3, r3, o3) {
2003
+ return Ie(o3 - -482, 0, 0, 0, r3);
2042
2004
  }
2043
- const _2 = t5 || f2 ? console[S2(a2, 61, l2, c2)] : bt[m2(0, h2, 1135)];
2044
- function S2(t6, e3, n3, r3, o3) {
2045
- return xe(0, 0, r3, 0, n3 - d2);
2005
+ Fe[h2(415, 502, 320, "OHcB")] = true;
2006
+ const d2 = await this[h2(331, 0, 0, "Fl#D")]();
2007
+ var g2, m2;
2008
+ Fe[u2(0, 0, 0, "O!o(", r2)] || !(d2[h2(264, 0, 0, "#37p")]() || d2[h2(o2, 0, 0, "vb)n")]()[g2 = s2, m2 = i2, Le(0, m2 - c2, g2)] > 0) ? await be[u2(0, 0, 0, "uFFc", l2)](d2, t5, e2, n2) : await this[u2(0, 0, 0, a2, 448)](t5);
2009
+ }
2010
+ async [We(-221, -206, -262, "%CRV")](t5, e2) {
2011
+ const n2 = "O!o(", r2 = 408, o2 = "jpUj", s2 = "*Aeh", i2 = 325, a2 = 1105, l2 = "@oZF";
2012
+ if (!t5 && (Fe[c2(166, 105, 88, "fnMx")] || Fe[c2(-29, -5, -52, "uFFc")])) return;
2013
+ function c2(t6, e3, n3, r3, o3) {
2014
+ return Le(0, e3 - -1013, r3);
2046
2015
  }
2047
- function w2(t6, e3, n3, r3, o3) {
2048
- return ke(0, 0, e3, o3 - -909);
2016
+ var h2, u2;
2017
+ function d2(t6, e3, n3, r3, o3) {
2018
+ return ke(t6, 0, e3 - 58);
2049
2019
  }
2050
- f2 && _2(""), await this[S2(0, 0, -51, u2)](t5, e2), _2("");
2020
+ Fe[c2(0, -34, 0, "Jp]&")] = true, Fe[d2(n2, r2)] = true, await this[h2 = 1187, u2 = o2, Re(0, 0, u2, 0, h2 - -135)](t5);
2021
+ const g2 = bt[c2(0, 54, 0, s2)](), m2 = t5 || g2 ? console[f2 = 190, p2 = "jBcb", Ie(f2 - -863, 0, 0, 0, p2)] : bt[d2("%z#E", i2)];
2022
+ var f2, p2, _2, S2;
2023
+ g2 && m2(""), await this[_2 = a2, S2 = l2, Ie(_2 - 84, 0, 0, 0, S2)](t5, e2), m2("");
2051
2024
  }
2052
- [Ie(0, -305, 0, 0, "ZFKX")]() {
2053
- return this[t5 = 1131, e2 = "Ie^T", Te(t5 - 1658, 0, 0, e2)]();
2025
+ [Le(0, 1121, "YZ#I")]() {
2026
+ return this[t5 = "xF!p", e2 = -403, We(t5 - 61, e2 - -355, e2 - 37, t5)]();
2054
2027
  var t5, e2;
2055
2028
  }
2056
- [ke(0, 0, "7Nex", 964)](t5) {
2057
- return this[e2 = "MrMO", n2 = 447, Ie(0, n2 - 602, 0, 0, e2)](true, t5);
2029
+ [Re(0, 0, "CZ^P", 0, 1171)](t5) {
2030
+ return this[e2 = 128, n2 = "Fk1I", ke(n2, 0, e2 - -266)](true, t5);
2058
2031
  var e2, n2;
2059
2032
  }
2060
- [ke(0, 0, "ibgb", 997)]() {
2061
- const t5 = 366;
2062
- return De[r2 = "ZFKX", o2 = 133, Te(o2 - 724, 0, 0, r2)] || De[e2 = "TuS^", n2 = 18, xe(0, 0, e2, 0, n2 - t5)];
2063
- var e2, n2, r2, o2;
2033
+ [ke("Fl#D", 0, 398)]() {
2034
+ const t5 = 427;
2035
+ function e2(e3, n2, r2, o2, s2) {
2036
+ return We(e3 - t5, s2 - -190, r2 - 262, n2);
2037
+ }
2038
+ return Fe[e2(-361, "^Kre", -502, 0, -399)] || Fe[e2(-341, "JE9e", -359, 0, -367)];
2064
2039
  }
2065
- [xe(0, 0, "YBR0", 0, -374)](t5) {
2066
- Be = true;
2040
+ [ke("uhBF", 0, 292)](t5) {
2041
+ De = true;
2067
2042
  }
2068
- async [Pe(-99, "ka7G")]() {
2069
- return this[t5 = -533, e2 = "ZFKX", xe(0, 0, e2, 0, t5 - -158)](true);
2043
+ async [Le(0, 1045, "jpUj")]() {
2044
+ return this[t5 = -49, e2 = "jBcb", Ie(t5 - -942, 0, 0, 0, e2)](true);
2070
2045
  var t5, e2;
2071
2046
  }
2072
- async [ke(0, 0, "2!i%", 982)](t5, e2) {
2073
- const n2 = 565, r2 = 528, o2 = await this[s2(478, n2, "AGc^", 509, 533)]();
2047
+ async [Ie(938, 0, 0, 0, "e3y4")](t5, e2) {
2048
+ const n2 = 742, r2 = "[5XY", o2 = "[beQ";
2074
2049
  function s2(t6, e3, n3, r3, o3) {
2075
- return ke(0, 0, n3, o3 - -349);
2050
+ return Le(0, e3 - -268, r3);
2076
2051
  }
2077
- return await this[s2(0, 0, "MgZa", 0, r2)](true, t5, e2), o2;
2052
+ const i2 = await this[s2(0, n2, 0, r2)]();
2053
+ return await this[s2(0, 808, 0, o2)](true, t5, e2), i2;
2078
2054
  }
2079
- async [Pe(41, "@HR!")]() {
2080
- const t5 = 1350, e2 = "FqSD", n2 = 1279;
2081
- var r2, o2;
2082
- return await be[r2 = t5, o2 = e2, Pe(r2 - n2, o2)]();
2055
+ async [Re(0, 0, "BslY", 0, 1198)]() {
2056
+ const t5 = 73;
2057
+ var e2, n2, r2, o2;
2058
+ return await be[e2 = -90, n2 = "%CRV", r2 = -230, o2 = -129, We(e2 - 128, o2 - 52, r2 - t5, n2)]();
2083
2059
  }
2084
2060
  }
2085
- const We = new je(), He = (t5, e2) => {
2061
+ function ze(t5, e2) {
2062
+ const n2 = xe();
2063
+ return ze = function(e3, r2) {
2064
+ let o2 = n2[e3 -= 246];
2065
+ if (void 0 === ze.VEKBmo) {
2066
+ const e4 = function(t6, e5) {
2067
+ let n3, r3, o3 = [], s3 = 0, i3 = "";
2068
+ for (t6 = function(t7) {
2069
+ let e6 = "", n4 = "";
2070
+ for (let n5, r4, o4 = 0, s4 = 0; r4 = t7.charAt(s4++); ~r4 && (n5 = o4 % 4 ? 64 * n5 + r4 : r4, o4++ % 4) ? e6 += String.fromCharCode(255 & n5 >> (-2 * o4 & 6)) : 0) r4 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r4);
2071
+ for (let t8 = 0, r4 = e6.length; t8 < r4; t8++) n4 += "%" + ("00" + e6.charCodeAt(t8).toString(16)).slice(-2);
2072
+ return decodeURIComponent(n4);
2073
+ }(t6), r3 = 0; r3 < 256; r3++) o3[r3] = r3;
2074
+ for (r3 = 0; r3 < 256; r3++) s3 = (s3 + o3[r3] + e5.charCodeAt(r3 % e5.length)) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3;
2075
+ r3 = 0, s3 = 0;
2076
+ for (let e6 = 0; e6 < t6.length; e6++) r3 = (r3 + 1) % 256, s3 = (s3 + o3[r3]) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3, i3 += String.fromCharCode(t6.charCodeAt(e6) ^ o3[(o3[r3] + o3[s3]) % 256]);
2077
+ return i3;
2078
+ };
2079
+ ze.QcgBVj = e4, t5 = arguments, ze.VEKBmo = true;
2080
+ }
2081
+ const s2 = e3 + n2[0], i2 = t5[s2];
2082
+ return i2 ? o2 = i2 : (void 0 === ze.CZNuEj && (ze.CZNuEj = true), o2 = ze.QcgBVj(o2, r2), t5[s2] = o2), o2;
2083
+ }, ze(t5, e2);
2084
+ }
2085
+ const je = new Pe();
2086
+ function We(t5, e2, n2, r2, o2) {
2087
+ return ze(e2 - -487, r2);
2088
+ }
2089
+ const He = (t5, e2) => {
2086
2090
  const n2 = [];
2087
2091
  for (let r2 = 0; r2 < t5.length; r2++) {
2088
2092
  const o2 = t5[r2];
@@ -2113,13 +2117,13 @@ const We = new je(), He = (t5, e2) => {
2113
2117
  i2.push({ x: r3, y: a2 });
2114
2118
  }
2115
2119
  return t5 = He(i2, { x: n2.x, y: n2.y });
2116
- }, qe = (t5, e2, n2, r2, o2, s2, i2, a2, l2 = true) => {
2120
+ }, Je = (t5, e2, n2, r2, o2, s2, i2, a2, l2 = true) => {
2117
2121
  if (t5 === n2 && e2 === r2 || o2 === i2 && s2 === a2) return false;
2118
2122
  let c2 = (a2 - s2) * (n2 - t5) - (i2 - o2) * (r2 - e2);
2119
2123
  if (0 === c2) return false;
2120
2124
  let h2 = ((i2 - o2) * (e2 - s2) - (a2 - s2) * (t5 - o2)) / c2, u2 = ((n2 - t5) * (e2 - s2) - (r2 - e2) * (t5 - o2)) / c2;
2121
2125
  return (!l2 || !(h2 < 0 || h2 > 1 || u2 < 0 || u2 > 1)) && { x: t5 + h2 * (n2 - t5), y: e2 + h2 * (r2 - e2) };
2122
- }, Je = (t5, e2, n2 = true) => qe(t5.p1.x, t5.p1.y, t5.p2.x, t5.p2.y, e2.p1.x, e2.p1.y, e2.p2.x, e2.p2.y, n2), Ke = (t5) => ({ top: { p1: t5[0], p2: t5[1] }, left: { p1: t5[3], p2: t5[0] }, right: { p1: t5[1], p2: t5[2] }, bottom: { p1: t5[2], p2: t5[3] } }), Xe = (t5, e2, n2) => {
2126
+ }, qe = (t5, e2, n2 = true) => Je(t5.p1.x, t5.p1.y, t5.p2.x, t5.p2.y, e2.p1.x, e2.p1.y, e2.p2.x, e2.p2.y, n2), Ke = (t5) => ({ top: { p1: t5[0], p2: t5[1] }, left: { p1: t5[3], p2: t5[0] }, right: { p1: t5[1], p2: t5[2] }, bottom: { p1: t5[2], p2: t5[3] } }), Xe = (t5, e2, n2) => {
2123
2127
  let r2 = n2 * Math.PI / 180, o2 = Math.sin(r2), s2 = Math.cos(r2);
2124
2128
  return { x: t5 * s2 - e2 * o2, y: t5 * o2 + e2 * s2 };
2125
2129
  }, Ye = (t5, e2) => {
@@ -2139,33 +2143,33 @@ const We = new je(), He = (t5, e2) => {
2139
2143
  o2 = He(o2, { x: e2.width / 2 - t5.width / 2, y: e2.height / 2 - t5.height / 2 }), o2 = Ue(o2, n2);
2140
2144
  let s2 = Ke(o2), i2 = Ke(r2);
2141
2145
  if (n2 > 90) {
2142
- const t6 = Je(s2.top, i2.top);
2146
+ const t6 = qe(s2.top, i2.top);
2143
2147
  if (t6) {
2144
- const e4 = t6, n3 = Je(s2.bottom, i2.bottom, false) || o2[3];
2145
- o2[0] = Je(s2.top, Ye(s2.bottom, n3), false) || o2[0], o2[1] = e4, o2[3] = n3, o2[2] = Je(s2.bottom, Ye(s2.top, e4), false) || o2[2], s2 = Ke(o2);
2148
+ const e4 = t6, n3 = qe(s2.bottom, i2.bottom, false) || o2[3];
2149
+ o2[0] = qe(s2.top, Ye(s2.bottom, n3), false) || o2[0], o2[1] = e4, o2[3] = n3, o2[2] = qe(s2.bottom, Ye(s2.top, e4), false) || o2[2], s2 = Ke(o2);
2146
2150
  }
2147
- const e3 = Je(s2.top, i2.left);
2151
+ const e3 = qe(s2.top, i2.left);
2148
2152
  if (e3) {
2149
- const t7 = e3, n3 = Je(s2.bottom, i2.right, false) || o2[2];
2150
- o2[0] = t7, o2[1] = Je(s2.top, Ye(s2.bottom, n3), false) || o2[1], o2[3] = Je(s2.bottom, Ye(s2.top, t7), false) || o2[3], o2[2] = n3;
2153
+ const t7 = e3, n3 = qe(s2.bottom, i2.right, false) || o2[2];
2154
+ o2[0] = t7, o2[1] = qe(s2.top, Ye(s2.bottom, n3), false) || o2[1], o2[3] = qe(s2.bottom, Ye(s2.top, t7), false) || o2[3], o2[2] = n3;
2151
2155
  }
2152
2156
  } else if (n2 < 90) {
2153
- const t6 = Je(s2.top, i2.top);
2157
+ const t6 = qe(s2.top, i2.top);
2154
2158
  if (t6) {
2155
- const e4 = t6, n3 = Je(s2.bottom, i2.bottom, false) || o2[2];
2156
- o2[0] = e4, o2[1] = Je(s2.top, Ye(s2.bottom, n3), false) || o2[1], o2[3] = Je(s2.bottom, Ye(s2.top, e4), false) || o2[3], o2[2] = n3, s2 = Ke(o2);
2159
+ const e4 = t6, n3 = qe(s2.bottom, i2.bottom, false) || o2[2];
2160
+ o2[0] = e4, o2[1] = qe(s2.top, Ye(s2.bottom, n3), false) || o2[1], o2[3] = qe(s2.bottom, Ye(s2.top, e4), false) || o2[3], o2[2] = n3, s2 = Ke(o2);
2157
2161
  }
2158
- const e3 = Je(s2.top, i2.right);
2162
+ const e3 = qe(s2.top, i2.right);
2159
2163
  if (e3) {
2160
- const t7 = e3, n3 = Je(s2.bottom, i2.left, false) || o2[3];
2161
- o2[0] = Je(s2.top, Ye(s2.bottom, n3), false) || o2[0], o2[1] = t7, o2[3] = n3, o2[2] = Je(s2.bottom, Ye(s2.top, t7), false) || o2[2];
2164
+ const t7 = e3, n3 = qe(s2.bottom, i2.left, false) || o2[3];
2165
+ o2[0] = qe(s2.top, Ye(s2.bottom, n3), false) || o2[0], o2[1] = t7, o2[3] = n3, o2[2] = qe(s2.bottom, Ye(s2.top, t7), false) || o2[2];
2162
2166
  }
2163
2167
  }
2164
2168
  o2 = Ue(o2, -n2);
2165
2169
  const a2 = Ge(o2);
2166
2170
  return { width: a2.width, height: a2.height };
2167
2171
  }, findIntersectMath: (t5, e2, n2, r2) => {
2168
- let o2 = qe(t5.x, t5.y, e2.x, e2.y, 5e4, 0, -5e4, 0);
2172
+ let o2 = Je(t5.x, t5.y, e2.x, e2.y, 5e4, 0, -5e4, 0);
2169
2173
  return o2 && (n2 = Math.min(n2, o2.x), r2 = Math.max(r2, o2.x)), { min: n2, max: r2 };
2170
2174
  }, leastSquaresSlopeAndIntercept: (t5) => {
2171
2175
  let e2 = 0, n2 = 0, r2 = 0, o2 = 0, s2 = 0, i2 = 0, a2 = 0, l2 = t5.length;
@@ -3094,16 +3098,16 @@ function Mn(t5, e2, n2) {
3094
3098
  }(t5, e2, n2);
3095
3099
  if (console.warn(r2), In.includes(t5)) throw new RangeError(r2);
3096
3100
  }
3097
- const Tn = Symbol.for("constructDateFrom");
3098
- function Nn(t5, e2) {
3099
- return "function" == typeof t5 ? t5(e2) : t5 && "object" == typeof t5 && Tn in t5 ? t5[Tn](e2) : t5 instanceof Date ? new t5.constructor(e2) : new Date(e2);
3101
+ const Nn = Symbol.for("constructDateFrom");
3102
+ function Tn(t5, e2) {
3103
+ return "function" == typeof t5 ? t5(e2) : t5 && "object" == typeof t5 && Nn in t5 ? t5[Nn](e2) : t5 instanceof Date ? new t5.constructor(e2) : new Date(e2);
3100
3104
  }
3101
3105
  let kn = {};
3102
3106
  function Fn() {
3103
3107
  return kn;
3104
3108
  }
3105
3109
  function On(t5, e2) {
3106
- return Nn(e2 || t5, t5);
3110
+ return Tn(e2 || t5, t5);
3107
3111
  }
3108
3112
  class Dn {
3109
3113
  constructor() {
@@ -3126,13 +3130,13 @@ class Ln extends Dn {
3126
3130
  }
3127
3131
  class Bn extends Dn {
3128
3132
  constructor(t5, e2) {
3129
- super(), this.priority = 10, this.subPriority = -1, this.context = t5 || ((t6) => Nn(e2, t6));
3133
+ super(), this.priority = 10, this.subPriority = -1, this.context = t5 || ((t6) => Tn(e2, t6));
3130
3134
  }
3131
3135
  set(t5, e2) {
3132
- return e2.timestampIsSet ? t5 : Nn(t5, function(t6, e3) {
3136
+ return e2.timestampIsSet ? t5 : Tn(t5, function(t6, e3) {
3133
3137
  const n2 = function(t7) {
3134
3138
  return "function" == typeof t7 && t7.prototype?.constructor === t7;
3135
- }(e3) ? new e3(0) : Nn(e3, 0);
3139
+ }(e3) ? new e3(0) : Tn(e3, 0);
3136
3140
  return n2.setFullYear(t6.getFullYear(), t6.getMonth(), t6.getDate()), n2.setHours(t6.getHours(), t6.getMinutes(), t6.getSeconds(), t6.getMilliseconds()), n2;
3137
3141
  }(t5, this.context));
3138
3142
  }
@@ -3154,7 +3158,7 @@ function Un(t5, e2) {
3154
3158
  const n2 = e2.match(t5);
3155
3159
  return n2 ? { value: parseInt(n2[0], 10), rest: e2.slice(n2[0].length) } : null;
3156
3160
  }
3157
- function qn(t5, e2) {
3161
+ function Jn(t5, e2) {
3158
3162
  switch (t5) {
3159
3163
  case 1:
3160
3164
  return Un(Wn, e2);
@@ -3168,7 +3172,7 @@ function qn(t5, e2) {
3168
3172
  return Un(new RegExp("^\\d{1," + t5 + "}"), e2);
3169
3173
  }
3170
3174
  }
3171
- class Jn extends Pn {
3175
+ class qn extends Pn {
3172
3176
  constructor() {
3173
3177
  super(...arguments), this.incompatibleTokens = ["Y", "R", "q", "Q", "L", "w", "I", "D", "i", "e", "c", "t", "T"], this.priority = 110;
3174
3178
  }
@@ -3178,7 +3182,7 @@ class Jn extends Pn {
3178
3182
  case "M":
3179
3183
  return Gn(Un(zn, t5), r2);
3180
3184
  case "MM":
3181
- return Gn(qn(2, t5), r2);
3185
+ return Gn(Jn(2, t5), r2);
3182
3186
  case "Mo":
3183
3187
  return Gn(n2.ordinalNumber(t5, { unit: "month" }), r2);
3184
3188
  case "MMM":
@@ -3201,7 +3205,7 @@ function Yn(t5, e2, n2) {
3201
3205
  const r2 = Fn(), o2 = n2?.weekStartsOn ?? n2?.locale?.options?.weekStartsOn ?? r2.weekStartsOn ?? r2.locale?.options?.weekStartsOn ?? 0, s2 = On(t5, n2?.in), i2 = s2.getDay(), a2 = 7 - o2;
3202
3206
  return function(t6, e3, n3) {
3203
3207
  const r3 = On(t6, n3?.in);
3204
- return isNaN(e3) ? Nn(n3?.in || t6, NaN) : e3 ? (r3.setDate(r3.getDate() + e3), r3) : r3;
3208
+ return isNaN(e3) ? Tn(n3?.in || t6, NaN) : e3 ? (r3.setDate(r3.getDate() + e3), r3) : r3;
3205
3209
  }(s2, e2 < 0 || e2 > 6 ? e2 - (i2 + a2) % 7 : ((e2 % 7 + 7) % 7 + a2) % 7 - (i2 + a2) % 7, n2);
3206
3210
  }
3207
3211
  const Qn = { y: new class extends Pn {
@@ -3212,11 +3216,11 @@ const Qn = { y: new class extends Pn {
3212
3216
  const r2 = (t6) => ({ year: t6, isTwoDigitYear: "yy" === e2 });
3213
3217
  switch (e2) {
3214
3218
  case "y":
3215
- return Gn(qn(4, t5), r2);
3219
+ return Gn(Jn(4, t5), r2);
3216
3220
  case "yo":
3217
3221
  return Gn(n2.ordinalNumber(t5, { unit: "year" }), r2);
3218
3222
  default:
3219
- return Gn(qn(e2.length, t5), r2);
3223
+ return Gn(Jn(e2.length, t5), r2);
3220
3224
  }
3221
3225
  }
3222
3226
  validate(t5, e2) {
@@ -3240,7 +3244,7 @@ const Qn = { y: new class extends Pn {
3240
3244
  const o2 = "era" in e2 && 1 !== e2.era ? 1 - n2.year : n2.year;
3241
3245
  return t5.setFullYear(o2, 0, 1), t5.setHours(0, 0, 0, 0), t5;
3242
3246
  }
3243
- }(), M: new Jn(), d: new class extends Pn {
3247
+ }(), M: new qn(), d: new class extends Pn {
3244
3248
  constructor() {
3245
3249
  super(...arguments), this.priority = 90, this.subPriority = 1, this.incompatibleTokens = ["Y", "R", "q", "Q", "w", "I", "D", "i", "e", "c", "t", "T"];
3246
3250
  }
@@ -3251,7 +3255,7 @@ const Qn = { y: new class extends Pn {
3251
3255
  case "do":
3252
3256
  return n2.ordinalNumber(t5, { unit: "date" });
3253
3257
  default:
3254
- return qn(e2.length, t5);
3258
+ return Jn(e2.length, t5);
3255
3259
  }
3256
3260
  }
3257
3261
  validate(t5, e2) {
@@ -3289,7 +3293,7 @@ const Qn = { y: new class extends Pn {
3289
3293
  }
3290
3294
  }() }, Zn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, tr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, er = /^'([^]*?)'?$/, nr = /''/g, rr = /\S/, or = /[a-zA-Z]/;
3291
3295
  function sr(t5, e2, n2, r2) {
3292
- const o2 = () => Nn(r2?.in || n2, NaN), s2 = Object.assign({}, Fn()), i2 = r2?.locale ?? s2.locale ?? yn, 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;
3296
+ const o2 = () => Tn(r2?.in || n2, NaN), s2 = Object.assign({}, Fn()), i2 = r2?.locale ?? s2.locale ?? yn, 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;
3293
3297
  if (!e2) return t5 ? o2() : On(n2, r2?.in);
3294
3298
  const c2 = { firstWeekContainsDate: a2, weekStartsOn: l2, locale: i2 }, h2 = [new Bn(r2?.in, n2)], u2 = e2.match(tr).map((t6) => {
3295
3299
  const e3 = t6[0];
@@ -3419,7 +3423,7 @@ function Mr(t5) {
3419
3423
  return -1 === t6.indexOf("E") ? t6 : t6.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/, "$1E").replace(/(E[+-])(\d)$/, "$10$2");
3420
3424
  }(e2.toUpperCase()));
3421
3425
  }
3422
- function Tr(t5, e2) {
3426
+ function Nr(t5, e2) {
3423
3427
  switch (typeof t5) {
3424
3428
  case "string":
3425
3429
  return t5;
@@ -3435,7 +3439,7 @@ function Tr(t5, e2) {
3435
3439
  }
3436
3440
  throw new Error("unsupported value in General format: " + t5);
3437
3441
  }
3438
- function Nr(t5, e2, n2, r2) {
3442
+ function Tr(t5, e2, n2, r2) {
3439
3443
  var o2, s2 = "", i2 = 0, a2 = 0, l2 = n2.y, c2 = 0;
3440
3444
  switch (t5) {
3441
3445
  case 98:
@@ -3741,7 +3745,7 @@ function Gr(t5, e2, n2) {
3741
3745
  function Ur(t5, e2, n2) {
3742
3746
  return (0 | n2) === n2 ? Gr(t5, e2, n2) : Vr(t5, e2, n2);
3743
3747
  }
3744
- function qr(t5) {
3748
+ function Jr(t5) {
3745
3749
  var e2 = [], n2 = false;
3746
3750
  const r2 = t5.length;
3747
3751
  for (var o2 = 0, s2 = 0; o2 < r2; ++o2) switch (t5.charCodeAt(o2)) {
@@ -3759,7 +3763,7 @@ function qr(t5) {
3759
3763
  if (e2[e2.length] = t5.substr(s2), true === n2) throw new Error("Format |" + t5 + "| unterminated string ");
3760
3764
  return e2;
3761
3765
  }
3762
- var Jr = /\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;
3766
+ var qr = /\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;
3763
3767
  function Kr(t5) {
3764
3768
  for (var e2 = 0, n2 = "", r2 = "", o2 = t5.length; e2 < o2; ) switch (n2 = t5.charAt(e2)) {
3765
3769
  case "G":
@@ -3803,7 +3807,7 @@ function Kr(t5) {
3803
3807
  break;
3804
3808
  case "[":
3805
3809
  for (r2 = n2; "]" !== t5.charAt(e2++) && e2 < t5.length; ) r2 += t5.charAt(e2);
3806
- if (r2.match(Jr)) return true;
3810
+ if (r2.match(qr)) return true;
3807
3811
  break;
3808
3812
  case ".":
3809
3813
  case "0":
@@ -3871,10 +3875,10 @@ function Qr(t5, e2, n2) {
3871
3875
  case "number":
3872
3876
  null == (r2 = 14 === t5 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : wr)[t5]) && (r2 = n2.table && n2.table[yr[t5]] || wr[yr[t5]]), null == r2 && (r2 = Er[t5] || "General");
3873
3877
  }
3874
- if (pr(r2, 0)) return Tr(e2, n2);
3878
+ if (pr(r2, 0)) return Nr(e2, n2);
3875
3879
  ar(e2) && (e2 = Rr(e2, n2.date1904));
3876
3880
  var o2 = function(t6, e3) {
3877
- var n3 = qr(t6), r3 = n3.length, o3 = n3[r3 - 1].indexOf("@");
3881
+ var n3 = Jr(t6), r3 = n3.length, o3 = n3[r3 - 1].indexOf("@");
3878
3882
  if (-1 !== o3 && "\\" === n3[r3 - 1][o3 - 1] && (o3 = -1), r3 < 4 && o3 > -1 && --r3, n3.length > 4) throw new Error("We can't find right format for |" + n3.join("|") + "|");
3879
3883
  if ("number" != typeof e3) return [4, 4 === n3.length || o3 > -1 ? n3[n3.length - 1] : "@"];
3880
3884
  switch (n3.length) {
@@ -3895,7 +3899,7 @@ function Qr(t5, e2, n2) {
3895
3899
  }
3896
3900
  return [r3, s2];
3897
3901
  }(r2, e2);
3898
- if (pr(o2[1])) return Tr(e2, n2);
3902
+ if (pr(o2[1])) return Nr(e2, n2);
3899
3903
  if (true === e2) e2 = "TRUE";
3900
3904
  else if (false === e2) e2 = "FALSE";
3901
3905
  else if ("" === e2 || null == e2) return "";
@@ -3954,7 +3958,7 @@ function Qr(t5, e2, n2) {
3954
3958
  case "[":
3955
3959
  for (l2 = h2; "]" !== t6.charAt(c2++) && c2 < t6.length; ) l2 += t6.charAt(c2);
3956
3960
  if ("]" !== l2.slice(-1)) throw new Error('unterminated "[" block: |' + l2 + "|");
3957
- if (l2.match(Jr)) {
3961
+ if (l2.match(qr)) {
3958
3962
  if (null == o3 && null == (o3 = Cr(e3, n3))) return "";
3959
3963
  a2[a2.length] = { t: "Z", v: l2.toLowerCase() }, u2 = l2.charAt(1);
3960
3964
  } else l2.indexOf("$") > -1 && (l2 = (l2.match(/\$([^-[\]]*)/) || [])[1] || "$", Kr(t6) || (a2[a2.length] = { t: "t", v: l2 }));
@@ -4059,7 +4063,7 @@ function Qr(t5, e2, n2) {
4059
4063
  case "e":
4060
4064
  case "b":
4061
4065
  case "Z":
4062
- a2[c2].v = Nr(a2[c2].t.charCodeAt(0), a2[c2].v, o3, w2), a2[c2].t = "t";
4066
+ a2[c2].v = Tr(a2[c2].t.charCodeAt(0), a2[c2].v, o3, w2), a2[c2].t = "t";
4063
4067
  break;
4064
4068
  case "n":
4065
4069
  case "?":
@@ -4067,7 +4071,7 @@ function Qr(t5, e2, n2) {
4067
4071
  E2 += a2[c2].v, c2 = y2 - 1;
4068
4072
  break;
4069
4073
  case "G":
4070
- a2[c2].t = "t", a2[c2].v = Tr(e3, n3);
4074
+ a2[c2].t = "t", a2[c2].v = Nr(e3, n3);
4071
4075
  }
4072
4076
  var b2, C2, v2 = "";
4073
4077
  if (E2.length > 0) {
@@ -4116,7 +4120,7 @@ function Zr(t5, e2) {
4116
4120
  }
4117
4121
  return wr[e2] = t5, e2;
4118
4122
  }
4119
- const to = { format: Qr, dateNumLocal: Rr, load: Zr, split_fmt: qr, _table: wr, load_table: function(t5) {
4123
+ const to = { format: Qr, dateNumLocal: Rr, load: Zr, split_fmt: Jr, _table: wr, load_table: function(t5) {
4120
4124
  for (var e2 = 0; 392 !== e2; ++e2) void 0 !== t5[e2] && Zr(t5[e2], e2);
4121
4125
  }, parse_date_code: Cr, is_date: Kr, get_table: function() {
4122
4126
  return to._table = wr;
@@ -4151,7 +4155,7 @@ const to = { format: Qr, dateNumLocal: Rr, load: Zr, split_fmt: qr, _table: wr,
4151
4155
  const a2 = (s2 + o2) / 2;
4152
4156
  let l2 = 0;
4153
4157
  return l2 = s2 === o2 ? 0 : a2 <= 0.5 ? (s2 - o2) / (s2 + o2) : (s2 - o2) / (2 - s2 - o2), [i2, 100 * l2, 100 * a2];
4154
- }, xo = 0, Io = 1, Ro = 2, Ao = 0, Mo = 1, To = 2, No = 0, ko = 1, Fo = 2, Oo = (t5, e2) => {
4158
+ }, xo = 0, Io = 1, Ro = 2, Ao = 0, Mo = 1, No = 2, To = 0, ko = 1, Fo = 2, Oo = (t5, e2) => {
4155
4159
  let n2 = e2 / 100;
4156
4160
  return ((t6, e3) => {
4157
4161
  let n3 = So(t6);
@@ -4193,11 +4197,11 @@ const to = { format: Qr, dateNumLocal: Rr, load: Zr, split_fmt: qr, _table: wr,
4193
4197
  return s2 = fo(s2), s2;
4194
4198
  }, Wo = (t5, e2, n2, r2) => {
4195
4199
  let o2 = So(e2), s2 = n2 / 100;
4196
- r2 === No ? o2[t5] = s2 : r2 === ko ? o2[t5] += s2 : r2 === Fo && (o2[t5] *= s2);
4200
+ r2 === To ? o2[t5] = s2 : r2 === ko ? o2[t5] += s2 : r2 === Fo && (o2[t5] *= s2);
4197
4201
  let i2 = wo(o2);
4198
4202
  return i2 = fo(i2), i2;
4199
4203
  }, Ho = (t5) => {
4200
- let e2 = So(t5), n2 = 0.213 * e2[Ao] + 0.715 * e2[Mo] + 0.072 * e2[To];
4204
+ let e2 = So(t5), n2 = 0.213 * e2[Ao] + 0.715 * e2[Mo] + 0.072 * e2[No];
4201
4205
  e2[0] = n2, e2[1] = n2, e2[2] = n2;
4202
4206
  let r2 = wo(e2);
4203
4207
  return r2 = fo(r2), r2;
@@ -4218,13 +4222,13 @@ const to = { format: Qr, dateNumLocal: Rr, load: Zr, split_fmt: qr, _table: wr,
4218
4222
  const e2 = [0, 0, 0];
4219
4223
  e2[0] = yo(t5[0]), e2[1] = yo(t5[1]), e2[2] = yo(t5[2]);
4220
4224
  return fo(e2);
4221
- }, qo = (t5, e2, n2, r2 = null) => {
4225
+ }, Jo = (t5, e2, n2, r2 = null) => {
4222
4226
  const o2 = (t6) => {
4223
4227
  let e3 = t6.toString(16);
4224
4228
  return 1 === e3.length ? "0" + e3 : e3;
4225
4229
  };
4226
4230
  return (null === r2 ? "" : o2(Math.round(255 * r2))) + o2(Number(t5)).toUpperCase() + o2(Number(e2)).toUpperCase() + o2(Number(n2)).toUpperCase();
4227
- }, Jo = 0.2126, Ko = 0.7152, Xo = 0.0722;
4231
+ }, qo = 0.2126, Ko = 0.7152, Xo = 0.0722;
4228
4232
  var Yo;
4229
4233
  ((t5) => {
4230
4234
  t5.RGBA = class {
@@ -4285,7 +4289,7 @@ var Yo;
4285
4289
  };
4286
4290
  class e2 extends t5.RGBA {
4287
4291
  toString(t6 = true) {
4288
- return t6 && null !== this._private.alpha ? "#" + qo(this.red, this.green, this.blue, this.alpha ?? 1).toUpperCase() : "#" + qo(this.red, this.green, this.blue).toUpperCase();
4292
+ return t6 && null !== this._private.alpha ? "#" + Jo(this.red, this.green, this.blue, this.alpha ?? 1).toUpperCase() : "#" + Jo(this.red, this.green, this.blue).toUpperCase();
4289
4293
  }
4290
4294
  }
4291
4295
  t5.HEX = e2;
@@ -4397,10 +4401,10 @@ const bs = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Cs =
4397
4401
  }
4398
4402
  }, Rs = (t5) => {
4399
4403
  if (t5 === os.MediumDate || t5 === os.LongDate || t5 === os.ShortDate || t5 === os.MediumTime || t5 === os.LongTime || t5 === os.ShortTime) return true;
4400
- }, As = (t5, e2) => t5 === e2 ? 0 : Rs(t5) ? 1 : Rs(e2) ? -1 : t5 === os.Percentage ? 1 : e2 === os.Percentage ? -1 : t5 === os.Currency || t5 === os.Accounting ? 1 : e2 === os.Currency || e2 === os.Accounting ? -1 : 0, Ms = (t5) => (t5 instanceof Date || "[object Date]" === Object.prototype.toString.call(t5)) && !isNaN(t5.getTime()), Ts = (t5, e2, n2) => {
4404
+ }, As = (t5, e2) => t5 === e2 ? 0 : Rs(t5) ? 1 : Rs(e2) ? -1 : t5 === os.Percentage ? 1 : e2 === os.Percentage ? -1 : t5 === os.Currency || t5 === os.Accounting ? 1 : e2 === os.Currency || e2 === os.Accounting ? -1 : 0, Ms = (t5) => (t5 instanceof Date || "[object Date]" === Object.prototype.toString.call(t5)) && !isNaN(t5.getTime()), Ns = (t5, e2, n2) => {
4401
4405
  return "month" === n2 || "months" === n2 || "m" === n2 ? (r2 = t5, 12 * ((o2 = e2).getUTCFullYear() - r2.getUTCFullYear()) + (o2.getUTCMonth() - r2.getUTCMonth()) + (o2.getUTCDate() - r2.getUTCDate() < 0 ? -1 : 0)) : "year" === n2 || "years" === n2 || "y" === n2 ? ((t6, e3) => Math.abs(e3.getFullYear() - t6.getFullYear()))(t5, e2) : "day" === n2 || "days" === n2 || "d" === n2 ? ((t6, e3) => Math.floor((Date.UTC(e3.getFullYear(), e3.getMonth(), e3.getDate()) - Date.UTC(t6.getFullYear(), t6.getMonth(), t6.getDate())) / 864e5))(t5, e2) : void console.warn("invalid unit" + n2);
4402
4406
  var r2, o2;
4403
- }, Ns = "d", ks = "m", Fs = "y", Os = (t5, e2, n2) => {
4407
+ }, Ts = "d", ks = "m", Fs = "y", Os = (t5, e2, n2) => {
4404
4408
  if ("month" === n2 || "months" === n2 || "m" === n2) {
4405
4409
  const n3 = new Date(t5.getTime());
4406
4410
  return new Date(n3.setMonth(n3.getMonth() + e2));
@@ -4421,14 +4425,14 @@ const bs = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Cs =
4421
4425
  }, Ds = (t5, e2 = false) => {
4422
4426
  let n2 = to.parse_date_code(t5, { date1904: e2 });
4423
4427
  return n2 ? new Date(n2.y, n2.m - 1, n2.d, n2.H, n2.M, n2.S, Math.round(1e3 * n2.u)) : null;
4424
- }, Ls = (t5, e2 = false) => isNaN(t5) ? null : to.dateNumLocal(t5, e2), Bs = new class extends Jn {
4428
+ }, Ls = (t5, e2 = false) => isNaN(t5) ? null : to.dateNumLocal(t5, e2), Bs = new class extends qn {
4425
4429
  parse(t5, e2, n2) {
4426
4430
  const r2 = (t6) => t6 - 1;
4427
4431
  switch (e2) {
4428
4432
  case "M":
4429
4433
  return Gn(Un(zn, t5), r2);
4430
4434
  case "MM":
4431
- return Gn(qn(2, t5), r2);
4435
+ return Gn(Jn(2, t5), r2);
4432
4436
  case "Mo":
4433
4437
  return Gn(n2.ordinalNumber(t5, { unit: "month" }), r2);
4434
4438
  case "MMM":
@@ -4512,7 +4516,7 @@ const bs = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Cs =
4512
4516
  "General" !== l2 && (1 === m2.length && m2.push(0), 2 === m2.length && (null === r2 ? m2.push(0) : m2.unshift(0)));
4513
4517
  let f2 = { hour: m2[0] ?? 0, minute: m2[1] ?? 0, second: m2[2] ?? 0, millis: 1e3 * (r2 ?? 0) };
4514
4518
  return { numberFormat: l2, parsed: js(f2, e2), leadingText: u2 };
4515
- }, qs = {}, Js = (t5, e2 = false, n2 = null) => {
4519
+ }, Js = {}, qs = (t5, e2 = false, n2 = null) => {
4516
4520
  const r2 = n2 ?? Date.now(), o2 = new Date(r2).getFullYear();
4517
4521
  let s2 = t5.trim().replaceAll(/\s+/g, " ");
4518
4522
  s2 = s2.replaceAll(/\s*([-/])\s*/g, "$1");
@@ -4522,7 +4526,7 @@ const bs = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Cs =
4522
4526
  for (let t6 = 0; t6 < Ps.length; t6++) {
4523
4527
  let n3 = s2;
4524
4528
  Ps[t6].containsDot ? n3 = i2 : Ps[t6].containsDash && (n3 = a2);
4525
- let c2 = sr(n3, Ps[t6].parseFormat, r2, qs), h2 = to.dateNumLocal(c2, e2);
4529
+ let c2 = sr(n3, Ps[t6].parseFormat, r2, Js), h2 = to.dateNumLocal(c2, e2);
4526
4530
  if (Ms(c2) && (Ps[t6].windowYear || h2 > 0)) {
4527
4531
  if (Ps[t6].windowYear) {
4528
4532
  let t7 = c2.getFullYear() <= 29 ? 2e3 + c2.getFullYear() : 1900 + c2.getFullYear();
@@ -4659,7 +4663,7 @@ var Ai, Mi;
4659
4663
  return "sans-serif";
4660
4664
  }
4661
4665
  }, Mi.GenericName = { Serif: "serif", SanSerif: "sans-serif", MonoSpace: "monospace", Cursive: "cursive", Fantasy: "fantasy", SystemUI: "system-ui", UISystem: "ui-system", UISerif: "ui-serif", UISanSerif: "ui-sans-serif", UIMonoSpace: "ui-monospace", UIRounded: "ui-rounded", Math: "math", Emoji: "emoji", Fangsong: "fangsong" };
4662
- class Ti {
4666
+ class Ni {
4663
4667
  constructor(t5) {
4664
4668
  this._private = { input: t5 }, "string" == typeof t5 ? this._private.name = t5 : Object.assign(this._private, t5);
4665
4669
  }
@@ -4682,18 +4686,18 @@ class Ti {
4682
4686
  return true;
4683
4687
  }
4684
4688
  }
4685
- const Ni = ["Arial", "Arial Black", "Brush Script MT", "Calibri", "Comic Sans MS", "Courier New", "Garamond", "Georgia", "Impact", "Luminari", "Palatino Linotype", "Tahoma", "Times New Roman", "Trebuchet MS", "Verdana"], ki = /* @__PURE__ */ new Map();
4689
+ const Ti = ["Arial", "Arial Black", "Brush Script MT", "Calibri", "Comic Sans MS", "Courier New", "Garamond", "Georgia", "Impact", "Luminari", "Palatino Linotype", "Tahoma", "Times New Roman", "Trebuchet MS", "Verdana"], ki = /* @__PURE__ */ new Map();
4686
4690
  ki.set(Ai.GenericName.Serif, ["Tahoma"]), ki.set(Ai.GenericName.SanSerif, ["Calibri"]), ki.set(Ai.GenericName.MonoSpace, ["Courier New"]), ki.set(Ai.GenericName.Cursive, ["Comic Sans MS"]), ki.set(Ai.GenericName.Fantasy, ["Luminari"]), ki.set(Ai.GenericName.UISystem, ["Arial"]), ki.set(Ai.GenericName.UISerif, ["Tahoma"]), ki.set(Ai.GenericName.UISanSerif, ["Arial"]), ki.set(Ai.GenericName.UIMonoSpace, ["Courier New"]), ki.set(Ai.GenericName.UIRounded, ["Arial"]), ki.set(Ai.GenericName.Math, []), ki.set(Ai.GenericName.Emoji, []), ki.set(Ai.GenericName.Fangsong, []);
4687
4691
  const Fi = /* @__PURE__ */ new Map();
4688
4692
  let Oi = [];
4689
- Li(Ni);
4693
+ Li(Ti);
4690
4694
  const Di = eval;
4691
4695
  function Li(t5) {
4692
- t5 || Li(Ni);
4696
+ t5 || Li(Ti);
4693
4697
  let e2 = [];
4694
4698
  for (let n2 = 0; n2 < t5.length; n2++) {
4695
4699
  let r2 = t5[n2];
4696
- "string" == typeof r2 && (r2 = new Ti(r2));
4700
+ "string" == typeof r2 && (r2 = new Ni(r2));
4697
4701
  let o2 = true;
4698
4702
  const s2 = "document";
4699
4703
  try {
@@ -4724,7 +4728,7 @@ const Bi = /* @__PURE__ */ new Map(), Pi = Object.freeze(Object.defineProperty({
4724
4728
  }, setFontList: Li }, Symbol.toStringTag, { value: "Module" }));
4725
4729
  class zi {
4726
4730
  constructor(t5, e2, n2, r2 = null, o2 = null, s2 = null) {
4727
- this._private = { wrapped: true, insets: T.EmptyRect, orientation: Zs.Orientation.Horizontal, autoFit: Zs.Autofit.None, fontScale: 1, vertical: false, columnCount: 1, columnSpacing: 0, verticalAlignment: Zs.VerticalAlignment.Center, horizontalCentered: false, lineReduction: 0, isSpaceFirstLastPara: false, presetTextWarp: null, paragraphs: bt.EmptyArray }, this._bounds = null, this._textBounds = null, this._lines = null, this._lastLayoutDims = void 0, this._lastLayout = void 0, this._private = Object.assign(this._private, t5 || {}), this._defaultFont = e2, this._alignment = n2, this._lines = r2, this._bounds = Object.freeze(o2), this._textBounds = Object.freeze(s2);
4731
+ this._private = { wrapped: true, insets: N.EmptyRect, orientation: Zs.Orientation.Horizontal, autoFit: Zs.Autofit.None, fontScale: 1, vertical: false, columnCount: 1, columnSpacing: 0, verticalAlignment: Zs.VerticalAlignment.Center, horizontalCentered: false, lineReduction: 0, isSpaceFirstLastPara: false, presetTextWarp: null, paragraphs: bt.EmptyArray }, this._bounds = null, this._textBounds = null, this._lines = null, this._lastLayoutDims = void 0, this._lastLayout = void 0, this._private = Object.assign(this._private, t5 || {}), this._defaultFont = e2, this._alignment = n2, this._lines = r2, this._bounds = Object.freeze(o2), this._textBounds = Object.freeze(s2);
4728
4732
  }
4729
4733
  visitParas(t5) {
4730
4734
  t5?.visitTextFrame?.(this);
@@ -4757,7 +4761,7 @@ class zi {
4757
4761
  return bt.deepEqual(this._private, t5._private);
4758
4762
  }
4759
4763
  createTemporaryTextFrame(t5, e2) {
4760
- return Ji(t5, this._defaultFont, this._alignment, e2 ?? this._private.wrapped);
4764
+ return qi(t5, this._defaultFont, this._alignment, e2 ?? this._private.wrapped);
4761
4765
  }
4762
4766
  get bounds() {
4763
4767
  if (null === this._bounds) throw new Error(ji);
@@ -5032,7 +5036,7 @@ const Ui = (t5, e2, n2, r2 = null, o2 = Ai.getSharedMeasurer()) => {
5032
5036
  for (let t7 = 0; t7 < n3; t7++) s2 += e3[t7].text, 0 === t7 && (i2 = e3[t7]);
5033
5037
  0 === t6 && (a2 = l2[t6]);
5034
5038
  }
5035
- const h2 = t5.insets ?? T.EmptyRect, u2 = new Gi(o2), d2 = r2?.width ? r2.width - h2.right - h2.left : r2?.width, g2 = r2?.height ? r2.height - h2.bottom - h2.top : null, m2 = u2.wrap(s2, { fontName: i2.fontName, fontSize: i2.fontSize * Ai.getDeviceScale(), bold: i2.bold, italic: i2.italic, superSub: i2.superSub, letterSpacing: i2.letterSpacing, maxWidth: t5.wrapped && d2 ? d2 : null, maxHeight: g2 });
5039
+ const h2 = t5.insets ?? N.EmptyRect, u2 = new Gi(o2), d2 = r2?.width ? r2.width - h2.right - h2.left : r2?.width, g2 = r2?.height ? r2.height - h2.bottom - h2.top : null, m2 = u2.wrap(s2, { fontName: i2.fontName, fontSize: i2.fontSize * Ai.getDeviceScale(), bold: i2.bold, italic: i2.italic, superSub: i2.superSub, letterSpacing: i2.letterSpacing, maxWidth: t5.wrapped && d2 ? d2 : null, maxHeight: g2 });
5036
5040
  let f2 = [];
5037
5041
  const p2 = m2.lines, _2 = p2.length, S2 = new Array(_2);
5038
5042
  for (let t6 = 0; t6 < _2; t6++) {
@@ -5041,14 +5045,14 @@ const Ui = (t5, e2, n2, r2 = null, o2 = Ai.getSharedMeasurer()) => {
5041
5045
  }
5042
5046
  const w2 = new Hi({ runs: f2, align: a2.align });
5043
5047
  return new zi({ paragraphs: [w2], wrapped: t5.wrapped, verticalAlignment: t5.verticalAlignment }, e2, n2, S2, { x: m2.bounds.x, y: m2.bounds.y, width: m2.bounds.widthWhitespace, height: m2.bounds.height }, { x: m2.bounds.x, y: m2.bounds.y, width: m2.bounds.width, height: m2.bounds.height });
5044
- }, qi = (t5) => {
5048
+ }, Ji = (t5) => {
5045
5049
  let e2 = false, n2 = false;
5046
5050
  for (let r2 = 0; r2 < t5.length; r2++) {
5047
5051
  const o2 = t5.charCodeAt(r2);
5048
5052
  if (o2 >= 65 && o2 <= 90 ? e2 = true : o2 >= 97 && o2 <= 122 && (n2 = true), e2 && n2) return 0;
5049
5053
  }
5050
5054
  return e2 ? 1 : n2 ? -1 : 0;
5051
- }, Ji = (t5, e2, n2, r2, o2 = false) => {
5055
+ }, qi = (t5, e2, n2, r2, o2 = false) => {
5052
5056
  if (null == t5) return null;
5053
5057
  const s2 = new Vi({ text: t5, fontName: e2.toCSS().fontFamily, fontSize: e2.getSize(), bold: e2.getWeight() > 400, italic: e2.getStyle() === Ai.Style.Italic, superSub: !o2 && (e2.getVerticalAlignment() === Ai.VerticalAlignment.Sub || e2.getVerticalAlignment() === Ai.VerticalAlignment.Super), letterSpacing: e2.getLetterSpacing() }), i2 = o2 ? Zs.HorizontalAlignment.Left : n2.getHorizontal(), a2 = n2.getVertical(), l2 = new Hi({ runs: [s2], align: i2 });
5054
5058
  let c2 = [];
@@ -5221,8 +5225,8 @@ var da, ga, ma, fa, pa, _a;
5221
5225
  createFillAt(t6, e3) {
5222
5226
  e3 = { ...this._options, ...e3 };
5223
5227
  let n3 = 0, r3 = this._options?.unit;
5224
- r3 || (r3 = 1 === t6.length ? Ns : ((t7, e4 = false) => {
5225
- if (!t7 || t7.length < 1) return Ns;
5228
+ r3 || (r3 = 1 === t6.length ? Ts : ((t7, e4 = false) => {
5229
+ if (!t7 || t7.length < 1) return Ts;
5226
5230
  let n4 = t7;
5227
5231
  e4 || (n4 = t7.slice(), n4 = n4.sort((t8, e5) => t8.getTime() - e5.getTime()));
5228
5232
  let r4 = false, o4 = -1, s4 = -1;
@@ -5230,7 +5234,7 @@ var da, ga, ma, fa, pa, _a;
5230
5234
  let e5 = n4[t8];
5231
5235
  if (t8 > n4.length - 1 && e5.getTime() < n4[t8 + 1].getTime()) throw new Error("Dates are expected to be sorted.");
5232
5236
  let i3 = 12 * e5.getFullYear() + e5.getMonth();
5233
- if (i3 === s4) return Ns;
5237
+ if (i3 === s4) return Ts;
5234
5238
  s4 = i3;
5235
5239
  let a2 = e5.getFullYear();
5236
5240
  a2 > o4 ? o4 = a2 : r4 = true;
@@ -5242,7 +5246,7 @@ var da, ga, ma, fa, pa, _a;
5242
5246
  let s3 = 1;
5243
5247
  e3?.reverse && (s3 *= -1, n3 *= -1);
5244
5248
  for (let e4 = 1; e4 < t6.length; e4++) {
5245
- let n4 = Ts(t6[e4 - 1], t6[e4], r3);
5249
+ let n4 = Ns(t6[e4 - 1], t6[e4], r3);
5246
5250
  if (1 === e4) s3 = n4;
5247
5251
  else if (n4 !== s3) return null;
5248
5252
  }
@@ -5385,8 +5389,8 @@ var da, ga, ma, fa, pa, _a;
5385
5389
  let h2 = null;
5386
5390
  for (let t7 = 0; !h2 && s3 && t7 < s3.length; t7++) s3[t7].asKey === n3[1] && (h2 = s3[t7]);
5387
5391
  let u2 = false, d2 = false;
5388
- const g2 = qi(r3);
5389
- 1 === g2 ? u2 = true : (-1 === g2 || -1 === qi(r3[0])) && (d2 = true);
5392
+ const g2 = Ji(r3);
5393
+ 1 === g2 ? u2 = true : (-1 === g2 || -1 === Ji(r3[0])) && (d2 = true);
5390
5394
  const m2 = c2[l2.major];
5391
5395
  let f2 = l2.minor, p2 = 1;
5392
5396
  if (n3.length > 1) {
@@ -5475,7 +5479,7 @@ var da, ga, ma, fa, pa, _a;
5475
5479
  return "function" == typeof u3 ? u3(c3) : u3[c3 % u3.length];
5476
5480
  };
5477
5481
  }
5478
- }, t5.Types = { Series: new t5.Composite([new t5.Date(), new t5.Linear(), new t5.Ordinal(), new t5.List()]), DateDays: new t5.Date({ unit: Ns }), DateMonths: new t5.Date({ unit: ks }), DateYears: new t5.Date({ unit: Fs }), Copy: new t5.Copy() }, t5.fillTo = (t6, e3, n3, r3) => {
5482
+ }, t5.Types = { Series: new t5.Composite([new t5.Date(), new t5.Linear(), new t5.Ordinal(), new t5.List()]), DateDays: new t5.Date({ unit: Ts }), DateMonths: new t5.Date({ unit: ks }), DateYears: new t5.Date({ unit: Fs }), Copy: new t5.Copy() }, t5.fillTo = (t6, e3, n3, r3) => {
5479
5483
  const o3 = [], s3 = e3.length, i3 = t6.createFillAt(e3, r3);
5480
5484
  for (let t7 = s3; t7 < n3; t7++) o3.push(i3(t7));
5481
5485
  return o3;
@@ -5548,10 +5552,10 @@ for (let t5 = 0; t5 < xa.length; t5++) va.set(pa.AdjustmentType[xa[t5]].toLowerC
5548
5552
  const Ia = new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), Ra = new RegExp("\\s*[,]\\s*|\\s+");
5549
5553
  let Aa = null;
5550
5554
  const Ma = { [pa.Scheme.Bg1]: "window", [pa.Scheme.Bg2]: "E7E6E6", [pa.Scheme.Tx1]: "windowText", [pa.Scheme.Tx2]: "44546A", [pa.Scheme.Accent1]: "4472C4", [pa.Scheme.Accent2]: "ED7D31", [pa.Scheme.Accent3]: "A5A5A5", [pa.Scheme.Accent4]: "FFC000", [pa.Scheme.Accent5]: "5B9BD5", [pa.Scheme.Accent6]: "70AD47", [pa.Scheme.Hlink]: "0563C1", [pa.Scheme.FolHlink]: "954F72" };
5551
- class Ta {
5555
+ class Na {
5552
5556
  constructor(t5, e2, n2, r2 = null) {
5553
5557
  let o2 = null, s2 = null;
5554
- if (t5 instanceof Ta) o2 = t5.getVal(), t5.getAdjustments() && (s2 = [...t5.getAdjustments()]);
5558
+ if (t5 instanceof Na) o2 = t5.getVal(), t5.getAdjustments() && (s2 = [...t5.getAdjustments()]);
5555
5559
  else if ("string" == typeof t5) {
5556
5560
  const e3 = this._parse(t5);
5557
5561
  o2 = e3.val, s2 = e3.adjs;
@@ -5588,7 +5592,7 @@ class Ta {
5588
5592
  n2 = ((t6, e3) => {
5589
5593
  e3 = (e3 % 360 + 360) % 360;
5590
5594
  const n3 = [1, 0, 0, 0, 1, 0, 0, 0, 1], r3 = Math.cos(e3 * Math.PI / 180), o3 = Math.sin(e3 * Math.PI / 180);
5591
- n3[0] = Jo + 0.7874 * r3 - Jo * o3, n3[1] = Ko - Ko * r3 - Ko * o3, n3[2] = Xo - Xo * r3 + 0.9278 * o3, n3[3] = Jo - Jo * r3 + 0.143 * o3, n3[4] = Ko + (1 - Ko) * r3 + 0.14 * o3, n3[5] = Xo - Xo * r3 - 0.283 * o3, n3[6] = Jo - Jo * r3 - 0.7874 * o3, n3[7] = Ko - Ko * r3 + Ko * o3, n3[8] = Xo + 0.9278 * r3 + Xo * o3;
5595
+ n3[0] = qo + 0.7874 * r3 - qo * o3, n3[1] = Ko - Ko * r3 - Ko * o3, n3[2] = Xo - Xo * r3 + 0.9278 * o3, n3[3] = qo - qo * r3 + 0.143 * o3, n3[4] = Ko + (1 - Ko) * r3 + 0.14 * o3, n3[5] = Xo - Xo * r3 - 0.283 * o3, n3[6] = qo - qo * r3 - 0.7874 * o3, n3[7] = Ko - Ko * r3 + Ko * o3, n3[8] = Xo + 0.9278 * r3 + Xo * o3;
5592
5596
  const s3 = (t7) => Math.round(Math.max(0, Math.min(255, t7))), i2 = t6[0], a2 = t6[1], l2 = t6[2];
5593
5597
  return [s3(n3[0] * i2 + n3[1] * a2 + n3[2] * l2), s3(n3[3] * i2 + n3[4] * a2 + n3[5] * l2), s3(n3[6] * i2 + n3[7] * a2 + n3[8] * l2)];
5594
5598
  })(n2, 180), n2 = $o(n2, false);
@@ -5609,7 +5613,7 @@ class Ta {
5609
5613
  let n3 = [...t6.srgb], r3 = void 0 !== t6.alpha ? t6.alpha : 1;
5610
5614
  for (var o2 = 0; e3 && o2 < e3.length; o2++) {
5611
5615
  const t7 = e3[o2], s2 = Object.keys(t7)[0], i2 = t7[s2];
5612
- s2 === pa.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.Hue ? n3 = Po(xo, n3, i2) : s2 === pa.AdjustmentType.Sat ? n3 = Po(Io, n3, i2) : s2 === pa.AdjustmentType.Lum ? n3 = Po(Ro, n3, i2) : s2 === pa.AdjustmentType.HueOff ? n3 = zo(xo, n3, i2) : s2 === pa.AdjustmentType.SatOff ? n3 = zo(Io, n3, i2) : s2 === pa.AdjustmentType.LumOff ? n3 = zo(Ro, n3, i2) : s2 === pa.AdjustmentType.HueMod ? n3 = jo(xo, n3, i2) : s2 === pa.AdjustmentType.SatMod ? n3 = jo(Io, n3, i2) : s2 === pa.AdjustmentType.LumMod ? n3 = jo(Ro, n3, i2) : s2 === pa.AdjustmentType.Red ? n3 = Wo(Ao, n3, i2, No) : s2 === pa.AdjustmentType.Green ? n3 = Wo(Mo, n3, i2, No) : s2 === pa.AdjustmentType.Blue ? n3 = Wo(To, n3, i2, No) : s2 === pa.AdjustmentType.RedOff ? n3 = Wo(Ao, n3, i2, ko) : s2 === pa.AdjustmentType.GreenOff ? n3 = Wo(Mo, n3, i2, ko) : s2 === pa.AdjustmentType.BlueOff ? n3 = Wo(To, n3, i2, ko) : s2 === pa.AdjustmentType.RedMod ? n3 = Wo(Ao, n3, i2, Fo) : s2 === pa.AdjustmentType.GreenMod ? n3 = Wo(Mo, n3, i2, Fo) : s2 === pa.AdjustmentType.BlueMod ? n3 = Wo(To, n3, i2, Fo) : s2 === pa.AdjustmentType.Shade ? n3 = Oo(n3, i2) : s2 === pa.AdjustmentType.Tint ? n3 = Bo(n3, i2) : s2 === pa.AdjustmentType.ETint ? n3 = Lo(n3, i2) : s2 === pa.AdjustmentType.Gray ? n3 = Ho(n3) : s2 === pa.AdjustmentType.Comp ? n3 = Vo(n3) : s2 === pa.AdjustmentType.Inv ? n3 = $o(n3, i2) : s2 === pa.AdjustmentType.Gamma ? n3 = Go(n3) : s2 === pa.AdjustmentType.InvGamma ? n3 = Uo(n3) : console.warn("unknown adjustmentType: " + s2);
5616
+ s2 === pa.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.Hue ? n3 = Po(xo, n3, i2) : s2 === pa.AdjustmentType.Sat ? n3 = Po(Io, n3, i2) : s2 === pa.AdjustmentType.Lum ? n3 = Po(Ro, n3, i2) : s2 === pa.AdjustmentType.HueOff ? n3 = zo(xo, n3, i2) : s2 === pa.AdjustmentType.SatOff ? n3 = zo(Io, n3, i2) : s2 === pa.AdjustmentType.LumOff ? n3 = zo(Ro, n3, i2) : s2 === pa.AdjustmentType.HueMod ? n3 = jo(xo, n3, i2) : s2 === pa.AdjustmentType.SatMod ? n3 = jo(Io, n3, i2) : s2 === pa.AdjustmentType.LumMod ? n3 = jo(Ro, n3, i2) : s2 === pa.AdjustmentType.Red ? n3 = Wo(Ao, n3, i2, To) : s2 === pa.AdjustmentType.Green ? n3 = Wo(Mo, n3, i2, To) : s2 === pa.AdjustmentType.Blue ? n3 = Wo(No, n3, i2, To) : s2 === pa.AdjustmentType.RedOff ? n3 = Wo(Ao, n3, i2, ko) : s2 === pa.AdjustmentType.GreenOff ? n3 = Wo(Mo, n3, i2, ko) : s2 === pa.AdjustmentType.BlueOff ? n3 = Wo(No, n3, i2, ko) : s2 === pa.AdjustmentType.RedMod ? n3 = Wo(Ao, n3, i2, Fo) : s2 === pa.AdjustmentType.GreenMod ? n3 = Wo(Mo, n3, i2, Fo) : s2 === pa.AdjustmentType.BlueMod ? n3 = Wo(No, n3, i2, Fo) : s2 === pa.AdjustmentType.Shade ? n3 = Oo(n3, i2) : s2 === pa.AdjustmentType.Tint ? n3 = Bo(n3, i2) : s2 === pa.AdjustmentType.ETint ? n3 = Lo(n3, i2) : s2 === pa.AdjustmentType.Gray ? n3 = Ho(n3) : s2 === pa.AdjustmentType.Comp ? n3 = Vo(n3) : s2 === pa.AdjustmentType.Inv ? n3 = $o(n3, i2) : s2 === pa.AdjustmentType.Gamma ? n3 = Go(n3) : s2 === pa.AdjustmentType.InvGamma ? n3 = Uo(n3) : console.warn("unknown adjustmentType: " + s2);
5613
5617
  }
5614
5618
  return { srgb: n3, alpha: r3 };
5615
5619
  })(t5.srgbAlpha, this._private.adjs), n2 = ((t6, e3 = 255) => {
@@ -5622,7 +5626,7 @@ class Ta {
5622
5626
  this._private.adjusted = e2, this._private.parsedVal = t5, this._private.resolved = new Yo.RGBA(n2[0], n2[1], n2[2], r2);
5623
5627
  }
5624
5628
  static parse(t5, e2, n2, r2 = null) {
5625
- if (t5 instanceof Ta) return t5;
5629
+ if (t5 instanceof Na) return t5;
5626
5630
  const o2 = t5;
5627
5631
  let s2 = null, i2 = o2?.trim(), a2 = null;
5628
5632
  try {
@@ -5647,7 +5651,7 @@ class Ta {
5647
5651
  }
5648
5652
  t6.push({ [r3]: s3 });
5649
5653
  }
5650
- a2 = new Ta({ val: s2, adjs: t6 }, e2, n2, r2);
5654
+ a2 = new Na({ val: s2, adjs: t6 }, e2, n2, r2);
5651
5655
  } catch (t6) {
5652
5656
  throw t6;
5653
5657
  }
@@ -5658,14 +5662,14 @@ class Ta {
5658
5662
  const t5 = /* @__PURE__ */ new Map(), e2 = Object.keys(Ma);
5659
5663
  for (let n2 = 0; n2 < e2.length; n2++) {
5660
5664
  const r2 = e2[n2];
5661
- t5.set(r2.toLowerCase(), Ta.parse(Ma[r2], null));
5665
+ t5.set(r2.toLowerCase(), Na.parse(Ma[r2], null));
5662
5666
  }
5663
5667
  Aa = (e3) => t5.get(e3.toLowerCase())?.toRGBA();
5664
5668
  }
5665
5669
  return Aa;
5666
5670
  }
5667
5671
  isEqual(t5) {
5668
- return t5 instanceof Ta && this.toString().toLowerCase() === t5.toString().toLowerCase();
5672
+ return t5 instanceof Na && this.toString().toLowerCase() === t5.toString().toLowerCase();
5669
5673
  }
5670
5674
  getVal() {
5671
5675
  return this._private.val;
@@ -5674,7 +5678,7 @@ class Ta {
5674
5678
  return this._private.adjs;
5675
5679
  }
5676
5680
  adjust(t5) {
5677
- return new Ta({ val: this._private.val, adjs: this._private.adjs ? this._private.adjs.concat(t5) : t5 }, this._private.schemeLookup, this._private.indexedLookup, this._private.last);
5681
+ return new Na({ val: this._private.val, adjs: this._private.adjs ? this._private.adjs.concat(t5) : t5 }, this._private.schemeLookup, this._private.indexedLookup, this._private.last);
5678
5682
  }
5679
5683
  getType() {
5680
5684
  return this._resolve(), this._private.parsedVal.type ?? null;
@@ -5698,7 +5702,7 @@ class Ta {
5698
5702
  }
5699
5703
  toBlackOrWhite(t5 = false, e2 = 157) {
5700
5704
  const n2 = this.toRGBA(t5), r2 = 0.299 * n2.red + 0.587 * n2.green + 0.114 * n2.blue > e2;
5701
- return new Ta(r2 ? "#000000" : "#FFFFFF", this._private.schemeLookup, this._private.indexedLookup, this._private.last);
5705
+ return new Na(r2 ? "#000000" : "#FFFFFF", this._private.schemeLookup, this._private.indexedLookup, this._private.last);
5702
5706
  }
5703
5707
  get [Symbol.toStringTag]() {
5704
5708
  return this.toString();
@@ -5720,16 +5724,16 @@ class Ta {
5720
5724
  return true;
5721
5725
  }
5722
5726
  }
5723
- var Na, ka;
5724
- (ka = Na || (Na = {})).StrokeStyle = { None: "none", DashDot: "dashDot", MediumDashDot: "mediumDashDot", Dotted: "dotted", Hair: "hair", Thin: "thin", Medium: "medium", Thick: "thick", MediumDashDotDot: "mediumDashDotDot", DashDotDot: "dashDotDot", Dashed: "dashed", MediumDashed: "mediumDashed", SlantDashDot: "slantDashDot", Double: "double" }, ka.Edge = { Left: "left", Top: "top", Right: "right", Bottom: "bottom", Horizontal: "horizontal", Vertical: "vertical", DiagonalUp: "diagonalUp", DiagonalDown: "diagonalDown" };
5725
- const Fa = [], Oa = /* @__PURE__ */ new Map(), Da = Object.freeze([[Na.StrokeStyle.Thin, "Thin", 1, null], [Na.StrokeStyle.Hair, "Hair", 1, [1, 1]], [Na.StrokeStyle.Dotted, "Dotted", 1, [2, 2]], [Na.StrokeStyle.Dashed, "Dashed", 1, [3, 1]], [Na.StrokeStyle.DashDot, "Dash Dot", 1, [3, 3, 9, 3]], [Na.StrokeStyle.DashDotDot, "Dash Dot Dot", 1, [3, 3, 3, 3, 9, 3]], [Na.StrokeStyle.Double, "Double", 3, null], [Na.StrokeStyle.Medium, "Medium", 2, null], [Na.StrokeStyle.MediumDashed, "Medium Dashed", 2, [9, 3]], [Na.StrokeStyle.MediumDashDot, "Medium Dash Dot", 2, [3, 3, 9, 3]], [Na.StrokeStyle.MediumDashDotDot, "Medium Dash Dot Dot", 2, [3, 3, 3, 3, 9, 3]], [Na.StrokeStyle.SlantDashDot, "Slant Dash Dot", 2, [5, 1, 11, 1]], [Na.StrokeStyle.Thick, "Thick", 3, null], [Na.StrokeStyle.None, "None", 0, null]]);
5727
+ var Ta, ka;
5728
+ (ka = Ta || (Ta = {})).StrokeStyle = { None: "none", DashDot: "dashDot", MediumDashDot: "mediumDashDot", Dotted: "dotted", Hair: "hair", Thin: "thin", Medium: "medium", Thick: "thick", MediumDashDotDot: "mediumDashDotDot", DashDotDot: "dashDotDot", Dashed: "dashed", MediumDashed: "mediumDashed", SlantDashDot: "slantDashDot", Double: "double" }, ka.Edge = { Left: "left", Top: "top", Right: "right", Bottom: "bottom", Horizontal: "horizontal", Vertical: "vertical", DiagonalUp: "diagonalUp", DiagonalDown: "diagonalDown" };
5729
+ const Fa = [], Oa = /* @__PURE__ */ new Map(), Da = Object.freeze([[Ta.StrokeStyle.Thin, "Thin", 1, null], [Ta.StrokeStyle.Hair, "Hair", 1, [1, 1]], [Ta.StrokeStyle.Dotted, "Dotted", 1, [2, 2]], [Ta.StrokeStyle.Dashed, "Dashed", 1, [3, 1]], [Ta.StrokeStyle.DashDot, "Dash Dot", 1, [3, 3, 9, 3]], [Ta.StrokeStyle.DashDotDot, "Dash Dot Dot", 1, [3, 3, 3, 3, 9, 3]], [Ta.StrokeStyle.Double, "Double", 3, null], [Ta.StrokeStyle.Medium, "Medium", 2, null], [Ta.StrokeStyle.MediumDashed, "Medium Dashed", 2, [9, 3]], [Ta.StrokeStyle.MediumDashDot, "Medium Dash Dot", 2, [3, 3, 9, 3]], [Ta.StrokeStyle.MediumDashDotDot, "Medium Dash Dot Dot", 2, [3, 3, 3, 3, 9, 3]], [Ta.StrokeStyle.SlantDashDot, "Slant Dash Dot", 2, [5, 1, 11, 1]], [Ta.StrokeStyle.Thick, "Thick", 3, null], [Ta.StrokeStyle.None, "None", 0, null]]);
5726
5730
  for (let t5 = 0; t5 < Da.length; t5++) {
5727
5731
  const e2 = Da[t5], n2 = e2[0], r2 = Object.freeze({ style: n2, description: e2[1], width: e2[2], pattern: e2[3] });
5728
5732
  Fa.push(r2), Oa.set(n2, r2);
5729
5733
  }
5730
5734
  ((t5) => {
5731
5735
  t5.isEqualStrokes = (t6, e2) => !(t6 && !e2 || e2 && !t6) && (t6 === e2 || t6.getStyle() === e2.getStyle() && t6.getColor().isEqual(e2.getColor())), t5.oppositeEdge = (e2) => e2 === t5.Edge.Left ? t5.Edge.Right : e2 === t5.Edge.Right ? t5.Edge.Left : e2 === t5.Edge.Top ? t5.Edge.Bottom : e2 === t5.Edge.Bottom ? t5.Edge.Top : e2, t5.BuiltInDefinitionsArray = Fa, t5.BuiltInDefinitions = Oa;
5732
- })(Na || (Na = {}));
5736
+ })(Ta || (Ta = {}));
5733
5737
  const La = { Text: "text", Repeat: "repeat", Spacing: "spacing" }, Ba = (t5) => !(!t5.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/) && !t5.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)), Pa = Object.freeze({ formatValue: hs, isFractionFormat: Ba, adjustDecimalPlaces: (t5, e2) => {
5734
5738
  if (!t5) return "";
5735
5739
  const n2 = (t6, e3) => {
@@ -5769,11 +5773,11 @@ Va.forEach(function(t5, e2, n2) {
5769
5773
  }), Ga.sort(function(t5, e2) {
5770
5774
  return t5.primary - e2.primary;
5771
5775
  });
5772
- const qa = Va.get(os.General.toLowerCase());
5773
- class Ja {
5776
+ const Ja = Va.get(os.General.toLowerCase());
5777
+ class qa {
5774
5778
  lookupStyle(t5) {
5775
- if (!t5) return qa;
5776
- if ("number" == typeof t5 && (t5 = ja(t5)), !t5.toLowerCase) return console.warn("Invalid numberFormat", t5), qa;
5779
+ if (!t5) return Ja;
5780
+ if ("number" == typeof t5 && (t5 = ja(t5)), !t5.toLowerCase) return console.warn("Invalid numberFormat", t5), Ja;
5777
5781
  t5 = t5.toLowerCase();
5778
5782
  let e2 = Va.get(t5);
5779
5783
  if (e2) return e2;
@@ -5790,13 +5794,13 @@ class Ja {
5790
5794
  }
5791
5795
  }
5792
5796
  var Ka, Xa, Ya, Qa;
5793
- (Xa = Ka || (Ka = {})).Type = os, Xa.Parser = Pa, Xa.Styles = new Ja(), Xa.ParseRunType = La, (Qa = Ya || (Ya = {})).BuiltInName = { Normal: "Normal", RowLevel: "RowLevel_#", ColLevel: "ColLevel_#", Comma: "Comma", Currency: "Currency", Percent: "Percent", Comma0: "Comma [0]", Currency0: "Currency [0]", Hyperlink: "Hyperlink", FollowedHyperlink: "Followed Hyperlink", Note: "Note", WarningText: "Warning Text", Unknown12: "??-12", Unknown13: "??-13", Unknown14: "??-14", Title: "Title", Heading1: "Heading 1", Heading2: "Heading 2", Heading3: "Heading 3", Heading4: "Heading 4", Input: "Input", Output: "Output", Calculation: "Calculation", CheckCell: "Check Cell", LinkedCell: "Linked Cell", Total: "Total", Good: "Good", Bad: "Bad", Neutral: "Neutral", Accent1: "Accent1", Accent1_20: "20% - Accent1", Accent1_40: "40% - Accent1", Accent1_60: "60% - Accent1", Accent2: "Accent2", Accent2_20: "20% - Accent2", Accent2_40: "40% - Accent2", Accent2_60: "60% - Accent2", Accent3: "Accent3", Accent3_20: "20% - Accent3", Accent3_40: "40% - Accent3", Accent3_60: "60% - Accent3", Accent4: "Accent4", Accent4_20: "20% - Accent4", Accent4_40: "40% - Accent4", Accent4_60: "60% - Accent4", Accent5: "Accent5", Accent5_20: "20% - Accent5", Accent5_40: "40% - Accent5", Accent5_60: "60% - Accent5", Accent6: "Accent6", Accent6_20: "20% - Accent6", Accent6_40: "40% - Accent6", Accent6_60: "60% - Accent6", ExplanatoryText: "Explanatory Text" }, Qa.IconSet = { Arrows3: "3Arrows", ArrowsGray3: "3ArrowsGray", Flags3: "3Flags", Signs3: "3Signs", Symbols3: "3Symbols", Symbols3_2: "3Symbols2", TrafficLights3: "3TrafficLights1", TrafficLights3_2: "3TrafficLights2", Arrows4: "4Arrows", ArrowsGray4: "4ArrowsGray", Rating4: "4Rating", RedToBlack4: "4RedToBlack", TrafficLights4: "4TrafficLights", Arrows5: "5Arrows", ArrowsGray5: "5ArrowsGray", Quarters5: "5Quarters", Rating5: "5Rating" };
5797
+ (Xa = Ka || (Ka = {})).Type = os, Xa.Parser = Pa, Xa.Styles = new qa(), Xa.ParseRunType = La, (Qa = Ya || (Ya = {})).BuiltInName = { Normal: "Normal", RowLevel: "RowLevel_#", ColLevel: "ColLevel_#", Comma: "Comma", Currency: "Currency", Percent: "Percent", Comma0: "Comma [0]", Currency0: "Currency [0]", Hyperlink: "Hyperlink", FollowedHyperlink: "Followed Hyperlink", Note: "Note", WarningText: "Warning Text", Unknown12: "??-12", Unknown13: "??-13", Unknown14: "??-14", Title: "Title", Heading1: "Heading 1", Heading2: "Heading 2", Heading3: "Heading 3", Heading4: "Heading 4", Input: "Input", Output: "Output", Calculation: "Calculation", CheckCell: "Check Cell", LinkedCell: "Linked Cell", Total: "Total", Good: "Good", Bad: "Bad", Neutral: "Neutral", Accent1: "Accent1", Accent1_20: "20% - Accent1", Accent1_40: "40% - Accent1", Accent1_60: "60% - Accent1", Accent2: "Accent2", Accent2_20: "20% - Accent2", Accent2_40: "40% - Accent2", Accent2_60: "60% - Accent2", Accent3: "Accent3", Accent3_20: "20% - Accent3", Accent3_40: "40% - Accent3", Accent3_60: "60% - Accent3", Accent4: "Accent4", Accent4_20: "20% - Accent4", Accent4_40: "40% - Accent4", Accent4_60: "60% - Accent4", Accent5: "Accent5", Accent5_20: "20% - Accent5", Accent5_40: "40% - Accent5", Accent5_60: "60% - Accent5", Accent6: "Accent6", Accent6_20: "20% - Accent6", Accent6_40: "40% - Accent6", Accent6_60: "60% - Accent6", ExplanatoryText: "Explanatory Text" }, Qa.IconSet = { Arrows3: "3Arrows", ArrowsGray3: "3ArrowsGray", Flags3: "3Flags", Signs3: "3Signs", Symbols3: "3Symbols", Symbols3_2: "3Symbols2", TrafficLights3: "3TrafficLights1", TrafficLights3_2: "3TrafficLights2", Arrows4: "4Arrows", ArrowsGray4: "4ArrowsGray", Rating4: "4Rating", RedToBlack4: "4RedToBlack", TrafficLights4: "4TrafficLights", Arrows5: "5Arrows", ArrowsGray5: "5ArrowsGray", Quarters5: "5Quarters", Rating5: "5Rating" };
5794
5798
  const Za = (t5, e2, n2, r2, o2) => {
5795
5799
  const s2 = JSON.parse(JSON.stringify(t5.definition));
5796
5800
  s2.adjs || (s2.adjs = []);
5797
5801
  let i2 = "", a2 = 0, l2 = 0;
5798
5802
  e2 > 0 ? (l2 = e2, a2 = 100 - e2, i2 = `Lighter ${e2}%`) : e2 < 0 && (a2 = 100 + e2, i2 = `Darker ${-e2}%`), a2 && s2.adjs.push({ [pa.AdjustmentType.LumMod]: a2 }), l2 && s2.adjs.push({ [pa.AdjustmentType.LumOff]: l2 });
5799
- const c2 = new Ta({ val: s2.val, adjs: s2.adjs }, n2), h2 = c2.toString();
5803
+ const c2 = new Na({ val: s2.val, adjs: s2.adjs }, n2), h2 = c2.toString();
5800
5804
  r2?.set(h2, c2);
5801
5805
  const u2 = c2.toRGBA().toString();
5802
5806
  return o2?.set(u2, c2), { description: t5.description + ", " + i2, definition: s2 };
@@ -5808,7 +5812,7 @@ const Za = (t5, e2, n2, r2, o2) => {
5808
5812
  const a2 = (o3) => {
5809
5813
  for (let a3 = 0; a3 < o3.length; a3++) i2.push(Za(t5[s2], o3[a3], e2, n2, r2));
5810
5814
  };
5811
- let l2 = new Ta({ val: t5[s2].definition.val, adjs: t5[s2].definition.adjs }, e2).toHSLA().lum;
5815
+ let l2 = new Na({ val: t5[s2].definition.val, adjs: t5[s2].definition.adjs }, e2).toHSLA().lum;
5812
5816
  a2(0 === l2 ? [50, 35, 25, 15, 5] : 100 === l2 ? [-5, -15, -25, -35, -50] : l2 <= 20 ? [90, 75, 50, 25, 10] : l2 >= 80 ? [-10, -25, -50, -75, -90] : [80, 60, 40, -25, -50]);
5813
5817
  }
5814
5818
  return o2;
@@ -5823,7 +5827,7 @@ const rl = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E9
5823
5827
  for (let t6 = 0; t6 < hl.length; t6++) {
5824
5828
  const e3 = hl[t6], n3 = r2[t6 + 1];
5825
5829
  if (!n3) continue;
5826
- const o3 = Ta.parse(n3);
5830
+ const o3 = Na.parse(n3);
5827
5831
  n3 && (s2[e3] = o3.toString());
5828
5832
  }
5829
5833
  }
@@ -5841,7 +5845,7 @@ const Sl = new class {
5841
5845
  constructor() {
5842
5846
  this._colors = {};
5843
5847
  for (let t5 = 0; t5 < hl.length; t5++) {
5844
- const e2 = hl[t5], n2 = Ta.parse(fl[e2]);
5848
+ const e2 = hl[t5], n2 = Na.parse(fl[e2]);
5845
5849
  this._colors[e2] = n2;
5846
5850
  }
5847
5851
  }
@@ -5897,7 +5901,7 @@ class wl {
5897
5901
  const e2 = Object.keys(t5);
5898
5902
  if (0 !== e2.length) for (let n2 = 0; n2 < e2.length; n2++) {
5899
5903
  const r2 = e2[n2];
5900
- this._overrides[r2] = "name" === r2 ? t5[r2] : Ta.parse(t5[r2]);
5904
+ this._overrides[r2] = "name" === r2 ? t5[r2] : Na.parse(t5[r2]);
5901
5905
  }
5902
5906
  }
5903
5907
  _value(t5, e2) {
@@ -5951,7 +5955,7 @@ const yl = new class {
5951
5955
  constructor() {
5952
5956
  this._colors = {};
5953
5957
  for (let t5 = 0; t5 < hl.length; t5++) {
5954
- const e2 = hl[t5], n2 = Ta.parse(fl[e2]);
5958
+ const e2 = hl[t5], n2 = Na.parse(fl[e2]);
5955
5959
  this._colors[e2] = n2;
5956
5960
  }
5957
5961
  }
@@ -6029,7 +6033,7 @@ class bl {
6029
6033
  const r3 = i2.getColorScheme();
6030
6034
  let o3 = r3[n3].bind(r3)();
6031
6035
  o3 || (o3 = fl[al[t6] ?? t6]);
6032
- return e3 = new Ta(o3).toRGBA(), i2._cacheColors[t6] = e3, e3;
6036
+ return e3 = new Na(o3).toRGBA(), i2._cacheColors[t6] = e3, e3;
6033
6037
  };
6034
6038
  }
6035
6039
  get builtInID() {
@@ -6051,7 +6055,7 @@ class bl {
6051
6055
  return this._schemeLookup;
6052
6056
  }
6053
6057
  parseColor(t5) {
6054
- return Ta.parse(t5, this._schemeLookup);
6058
+ return Na.parse(t5, this._schemeLookup);
6055
6059
  }
6056
6060
  toJSON() {
6057
6061
  const t5 = { name: this.getName() }, e2 = this._colors.toJSON();
@@ -6236,7 +6240,7 @@ class Ml {
6236
6240
  this._transactions.remove(this), this._transactionsRemoveListener();
6237
6241
  }
6238
6242
  }
6239
- class Tl {
6243
+ class Nl {
6240
6244
  constructor(t5) {
6241
6245
  this._emitter = null, this._closed = false, this._options = { ...t5 };
6242
6246
  const e2 = this;
@@ -6344,7 +6348,7 @@ class Tl {
6344
6348
  this._closed || (this._emitter.notify("onClose"), this._closed = true, this._transactionsRemoveListener?.());
6345
6349
  }
6346
6350
  }
6347
- class Nl extends Tl {
6351
+ class Tl extends Nl {
6348
6352
  _fromJSON(t5) {
6349
6353
  const e2 = {};
6350
6354
  if (e2.name = t5?.name ?? null, !e2.name) throw new Error(Al);
@@ -6614,10 +6618,10 @@ class Wl {
6614
6618
  }
6615
6619
  }
6616
6620
  const Hl = (t5) => [{ min: 0, max: t5.length - 1, value: { s: 0, e: t5.length - 1, v: t5 } }], Vl = new Wl(), $l = Object.seal({ done: false, value: [-1, null] }), Gl = Object.freeze({ reverse: false, bounds: { min: 0, max: Number.MAX_SAFE_INTEGER }, skipRuns: null, reuseResult: $l }), Ul = 4;
6617
- var ql;
6621
+ var Jl;
6618
6622
  ((t5) => {
6619
6623
  const e2 = (t6, e3) => {
6620
- const n3 = t6 !== N.Row;
6624
+ const n3 = t6 !== T.Row;
6621
6625
  return e3 ? (t7, e4) => {
6622
6626
  if (t7 === e4) return 0;
6623
6627
  const r2 = t7[0], o2 = t7[1], s2 = e4[1];
@@ -6648,8 +6652,8 @@ var ql;
6648
6652
  class n2 {
6649
6653
  constructor(t6, n3) {
6650
6654
  if (this._isColumn = true, this._isByCell = false, this._isReverse = false, this._cursor = null, this._reuse = null, this._localReuse = { done: false, value: [null, null] }, this._eventsMajor = null, this._eventMajorIndex = 0, this._majorStart = 0, this._majorEnd = 0, this._eventMinorPeek = null, this._minorStart = 0, this._minorEnd = 0, !t6 || 0 === t6.length) return;
6651
- let r2 = N.Column, o2 = false, s2 = true, i2 = false;
6652
- n3 && (r2 = n3.orientation ?? N.Column, this._isColumn = s2 = r2 !== N.Row, this._isReverse = o2 = n3.reverse ?? false, this._isByCell = i2 = n3.byCell ?? false);
6655
+ let r2 = T.Column, o2 = false, s2 = true, i2 = false;
6656
+ n3 && (r2 = n3.orientation ?? T.Column, this._isColumn = s2 = r2 !== T.Row, this._isReverse = o2 = n3.reverse ?? false, this._isByCell = i2 = n3.byCell ?? false);
6653
6657
  const a2 = t6.length, l2 = new Array(2 * a2);
6654
6658
  for (let e3 = 0; e3 < a2; e3++) {
6655
6659
  const n4 = t6[e3], r3 = [null, null];
@@ -6657,7 +6661,7 @@ var ql;
6657
6661
  }
6658
6662
  l2.sort(e2(r2, o2)), this._eventsMajor = l2;
6659
6663
  const c2 = l2[0][1];
6660
- this._majorStart = o2 ? Number.MAX_SAFE_INTEGER : Number.MIN_SAFE_INTEGER, this._majorEnd = s2 ? o2 ? c2.colEnd + 1 : c2.colStart - 1 : o2 ? c2.rowEnd + 1 : c2.rowStart - 1, this._eventsMinor = new Ze(null, e2(s2 ? N.Row : N.Column, o2));
6664
+ this._majorStart = o2 ? Number.MAX_SAFE_INTEGER : Number.MIN_SAFE_INTEGER, this._majorEnd = s2 ? o2 ? c2.colEnd + 1 : c2.colStart - 1 : o2 ? c2.rowEnd + 1 : c2.rowStart - 1, this._eventsMinor = new Ze(null, e2(s2 ? T.Row : T.Column, o2));
6661
6665
  const h2 = new Array(16);
6662
6666
  h2.length = 0, this._cursor = { cell: null, range: { colStart: c2.colStart, rowStart: c2.rowStart, colEnd: c2.colEnd, rowEnd: c2.rowEnd }, overlaps: h2 }, i2 && (this._cursor.cell = { colIndex: o2 ? Number.MIN_SAFE_INTEGER : Number.MAX_SAFE_INTEGER, rowIndex: o2 ? Number.MIN_SAFE_INTEGER : Number.MAX_SAFE_INTEGER });
6663
6667
  const u2 = n3?.reuseIterator;
@@ -6667,7 +6671,7 @@ var ql;
6667
6671
  const e3 = this._isColumn, n3 = this._isReverse;
6668
6672
  if (t6) {
6669
6673
  if (!this._isByCell) throw new Error("nextCell is only supported when byCell is true");
6670
- const r3 = Y.createCellComparator(e3 ? N.Column : N.Row, n3);
6674
+ const r3 = Y.createCellComparator(e3 ? T.Column : T.Row, n3);
6671
6675
  let o3;
6672
6676
  do {
6673
6677
  const s3 = this._cursor, i3 = s3.cell;
@@ -6809,8 +6813,8 @@ var ql;
6809
6813
  }
6810
6814
  }
6811
6815
  t5.IteratorInstance = n2;
6812
- })(ql || (ql = {}));
6813
- const Jl = (t5, e2 = v.Right, n2 = null) => {
6816
+ })(Jl || (Jl = {}));
6817
+ const ql = (t5, e2 = v.Right, n2 = null) => {
6814
6818
  if (!t5) return t5;
6815
6819
  if (0 === t5.length) return [];
6816
6820
  const r2 = e2 === v.Right, o2 = e2 === v.Left, s2 = e2 === v.Up, i2 = e2 === v.Down;
@@ -7364,7 +7368,7 @@ class Mc {
7364
7368
  }
7365
7369
  visitRanges(t5, e2, n2 = null) {
7366
7370
  let r2 = this.search(t5);
7367
- n2 && (r2 = Jl(r2, n2));
7371
+ n2 && (r2 = ql(r2, n2));
7368
7372
  const o2 = [], s2 = [];
7369
7373
  let i2 = null;
7370
7374
  const a2 = r2.length;
@@ -7404,18 +7408,18 @@ class Mc {
7404
7408
  return this._getReadTree().all(t5);
7405
7409
  }
7406
7410
  shift(t5) {
7407
- const e2 = t5.range, n2 = t5.direction, r2 = t5.cloneIfUpdate ?? false, o2 = t5.coordValidator ?? null, s2 = t5.onShift ?? null, i2 = n2 === v.Left || n2 === v.Right, a2 = i2 ? N.Column : N.Row, l2 = n2 === v.Up || n2 === v.Left ? -1 : 1, c2 = (i2 ? e2.colEnd - e2.colStart + 1 : e2.rowEnd - e2.rowStart + 1) * l2, h2 = [], u2 = [];
7411
+ const e2 = t5.range, n2 = t5.direction, r2 = t5.cloneIfUpdate ?? false, o2 = t5.coordValidator ?? null, s2 = t5.onShift ?? null, i2 = n2 === v.Left || n2 === v.Right, a2 = i2 ? T.Column : T.Row, l2 = n2 === v.Up || n2 === v.Left ? -1 : 1, c2 = (i2 ? e2.colEnd - e2.colStart + 1 : e2.rowEnd - e2.rowStart + 1) * l2, h2 = [], u2 = [];
7408
7412
  let d2 = null;
7409
7413
  const g2 = this.getBoundingCoords();
7410
7414
  if (!g2) return this;
7411
- const m2 = n2 === v.Up || n2 === v.Left ? v.Right : v.Left, f2 = /* @__PURE__ */ new Map(), p2 = /* @__PURE__ */ new Map(), _2 = this._options?.updateEntryOptions, S2 = _2?.isMergeOnShift ?? false, w2 = _2?.isSplitOnExpand ?? false, y2 = _2?.isTrailingEdge ?? false, E2 = n2 === v.Left || n2 === v.Up, b2 = _2?.getSplit ?? Bc, C2 = _2?.getShifted, x2 = _2?.onShifted, I2 = _2?.onRemoved, R2 = _2?.onMerged, A2 = _2?.onUpdated, M2 = x2 ? [] : null, T2 = I2 ? [] : null, F2 = A2 ? [] : null;
7415
+ const m2 = n2 === v.Up || n2 === v.Left ? v.Right : v.Left, f2 = /* @__PURE__ */ new Map(), p2 = /* @__PURE__ */ new Map(), _2 = this._options?.updateEntryOptions, S2 = _2?.isMergeOnShift ?? false, w2 = _2?.isSplitOnExpand ?? false, y2 = _2?.isTrailingEdge ?? false, E2 = n2 === v.Left || n2 === v.Up, b2 = _2?.getSplit ?? Bc, C2 = _2?.getShifted, x2 = _2?.onShifted, I2 = _2?.onRemoved, R2 = _2?.onMerged, A2 = _2?.onUpdated, M2 = x2 ? [] : null, N2 = I2 ? [] : null, F2 = A2 ? [] : null;
7412
7416
  this.visitRanges({ colStart: e2.colStart - (i2 ? 1 : 0), rowStart: e2.rowStart - (i2 ? 0 : 1), colEnd: i2 ? g2.colEnd : e2.colEnd, rowEnd: i2 ? e2.rowEnd : g2.rowEnd }, (t6) => {
7413
7417
  if ((i2 ? t6.colEnd < e2.colStart : t6.rowEnd < e2.rowStart) && !y2) return;
7414
7418
  const r3 = zc(e2, t6, i2 ? k.Column : k.Row), l3 = t6.group;
7415
7419
  if (E2 && !l3 && e2.colStart <= t6.colStart && e2.rowStart <= t6.rowStart && e2.colEnd >= t6.colEnd && e2.rowEnd >= t6.rowEnd) {
7416
7420
  const n3 = jc(t6, null, { after: null, before: t6, intersect: e2, isSplit: r3, orientation: a2, amount: c2 }, C2, b2, s2, false);
7417
7421
  if (void 0 === n3) return;
7418
- if (null === n3) return d2 = Y.unionRanges(d2, t6), T2 && T2.push(t6), void h2.push(t6);
7422
+ if (null === n3) return d2 = Y.unionRanges(d2, t6), N2 && N2.push(t6), void h2.push(t6);
7419
7423
  }
7420
7424
  let g3 = { ...t6 };
7421
7425
  n2 === v.Right ? e2.colStart <= g3.colStart ? (g3.colStart += c2, g3.colEnd += c2) : g3.colEnd += c2 : n2 === v.Left ? e2.colStart < g3.colStart ? (g3.colStart = Math.max(g3.colStart + c2, e2.colStart), g3.colEnd = Math.max(g3.colEnd + c2, g3.colStart - 1)) : g3.colEnd += Math.max(c2, e2.colStart - g3.colEnd - 1) : n2 === v.Down ? e2.rowStart <= g3.rowStart ? (g3.rowStart += c2, g3.rowEnd += c2) : g3.rowEnd += c2 : n2 === v.Up && (e2.rowStart < g3.rowStart ? (g3.rowStart = Math.max(g3.rowStart + c2, e2.rowStart), g3.rowEnd = Math.max(g3.rowEnd + c2, e2.rowStart - 1)) : g3.rowEnd += Math.max(c2, e2.rowStart - g3.rowEnd - 1)), (g3.colEnd < g3.colStart || g3.rowEnd < g3.rowStart) && (g3 = null);
@@ -7441,11 +7445,11 @@ class Mc {
7441
7445
  if (S2 && g2 && d2) {
7442
7446
  let t6 = true;
7443
7447
  if (c2 > 0 && (t6 = i2 ? e2.rowStart > g2.rowStart || e2.rowEnd < g2.rowEnd : e2.colStart > g2.colStart || e2.colEnd < g2.colEnd), t6) {
7444
- const t7 = Tc(d2, Y.unionRanges(g2, d2), i2 ? 0 : 1, i2 ? 1 : 0);
7448
+ const t7 = Nc(d2, Y.unionRanges(g2, d2), i2 ? 0 : 1, i2 ? 1 : 0);
7445
7449
  R2 && (D2 = O2._mergeNodes(t7, false));
7446
7450
  }
7447
7451
  }
7448
- return A2 && F2.length > 0 && A2(F2), x2 && M2.length > 0 && x2(M2), R2 && D2.length > 0 && R2(D2), I2 && T2.length > 0 && I2(T2), O2;
7452
+ return A2 && F2.length > 0 && A2(F2), x2 && M2.length > 0 && x2(M2), R2 && D2.length > 0 && R2(D2), I2 && N2.length > 0 && I2(N2), O2;
7449
7453
  }
7450
7454
  insertNonOverlapping(t5, e2) {
7451
7455
  const n2 = e2?.onIntersect ?? ((t6, e3) => ({ ...t6, value: e3.value })), r2 = this.search(t5), o2 = /* @__PURE__ */ new Map(), s2 = /* @__PURE__ */ new Map(), i2 = this._options?.updateEntryOptions, a2 = i2?.onUpdated, l2 = i2?.onRemoved, c2 = i2?.onMerged, h2 = i2?.getSplit, u2 = i2?.getIntersect, d2 = i2?.getUpdate;
@@ -7462,7 +7466,7 @@ class Mc {
7462
7466
  }
7463
7467
  return e3 ? [e3] : bt.EmptyArray;
7464
7468
  }
7465
- const s3 = n3?.getSplit ?? Nc, i3 = (t7, e4, n4 = true) => {
7469
+ const s3 = n3?.getSplit ?? Tc, i3 = (t7, e4, n4 = true) => {
7466
7470
  const r4 = e4.search(t7), o4 = r4.length;
7467
7471
  for (let a4 = 0; a4 < o4; a4++) {
7468
7472
  const o5 = r4[a4];
@@ -7550,11 +7554,11 @@ class Mc {
7550
7554
  p2 = t6;
7551
7555
  }
7552
7556
  if (this._updateNodes(p2, r2, e2?.onUpdates), o2.size > 0 && this._updateGroupedEntries(o2, s2), _2 && !e2?.noMerge) {
7553
- const n3 = Tc(t5, Y.unionRanges(_2, t5)), r3 = this.search(n3);
7557
+ const n3 = Nc(t5, Y.unionRanges(_2, t5)), r3 = this.search(n3);
7554
7558
  if (r3.length > 1) {
7555
7559
  const t6 = i2?.getMerged ?? Pc;
7556
7560
  let n4 = r3;
7557
- n4 = Dc(n4, N.Column, 1, t6), n4 = Dc(n4, N.Row, 1, t6), r3.length !== n4.length && (c2 && n4.length > 0 && (m2 = n4), this._updateNodes(n4, r3, e2?.onUpdates));
7561
+ n4 = Dc(n4, T.Column, 1, t6), n4 = Dc(n4, T.Row, 1, t6), r3.length !== n4.length && (c2 && n4.length > 0 && (m2 = n4), this._updateNodes(n4, r3, e2?.onUpdates));
7558
7562
  }
7559
7563
  }
7560
7564
  return g2 && a2(g2), m2 && c2(m2), f2 && l2(f2), this;
@@ -7620,7 +7624,7 @@ class Mc {
7620
7624
  if (n2.length > 1) {
7621
7625
  const t6 = this._options?.updateEntryOptions.getMerged ?? Pc;
7622
7626
  let e3 = n2;
7623
- e3.length > 1 && (e3 = Dc(e3, N.Column, 1, t6)), e3.length > 1 && (e3 = Dc(e3, N.Row, 1, t6)), n2.length !== e3.length && (r2 = e3, this._updateNodes(e3, n2));
7627
+ e3.length > 1 && (e3 = Dc(e3, T.Column, 1, t6)), e3.length > 1 && (e3 = Dc(e3, T.Row, 1, t6)), n2.length !== e3.length && (r2 = e3, this._updateNodes(e3, n2));
7624
7628
  }
7625
7629
  return r2;
7626
7630
  }
@@ -7660,8 +7664,8 @@ class Mc {
7660
7664
  return this._getWritableTree().fromJSON(t5), this;
7661
7665
  }
7662
7666
  }
7663
- const Tc = (t5, e2 = t5, n2 = 1, r2 = 1) => ({ ...t5, colStart: Math.max(t5.colStart - n2, e2.colStart), rowStart: Math.max(t5.rowStart - r2, e2.rowStart), colEnd: Math.min(t5.colEnd + n2, e2.colEnd), rowEnd: Math.min(t5.rowEnd + r2, e2.rowEnd) });
7664
- function Nc(t5, e2, n2, r2) {
7667
+ const Nc = (t5, e2 = t5, n2 = 1, r2 = 1) => ({ ...t5, colStart: Math.max(t5.colStart - n2, e2.colStart), rowStart: Math.max(t5.rowStart - r2, e2.rowStart), colEnd: Math.min(t5.colEnd + n2, e2.colEnd), rowEnd: Math.min(t5.rowEnd + r2, e2.rowEnd) });
7668
+ function Tc(t5, e2, n2, r2) {
7665
7669
  return [{ ...e2[0], value: t5.value }, { ...e2[0], value: t5.value }];
7666
7670
  }
7667
7671
  function kc(t5, e2) {
@@ -7680,7 +7684,7 @@ function Fc(t5, e2, n2 = null, r2 = true) {
7680
7684
  i2 && (r2 && (e3.lastId = i2), e3.uuid = bt.uuidV4());
7681
7685
  const l2 = e3.rowStart - t6.rowStart;
7682
7686
  Hc[0] = t6, Hc[1] = e3;
7683
- const c2 = n2(a2, Hc, N.Row, l2);
7687
+ const c2 = n2(a2, Hc, T.Row, l2);
7684
7688
  void 0 !== c2 && (s2.push(c2[0]), a2 = c2[1]);
7685
7689
  }
7686
7690
  if (a2.rowEnd > o2.rowEnd) {
@@ -7690,7 +7694,7 @@ function Fc(t5, e2, n2 = null, r2 = true) {
7690
7694
  i2 && (r2 && (e3.lastId = i2), e3.uuid = bt.uuidV4());
7691
7695
  const l2 = e3.rowStart - t6.rowStart;
7692
7696
  Hc[0] = t6, Hc[1] = e3;
7693
- const c2 = n2(a2, Hc, N.Row, l2);
7697
+ const c2 = n2(a2, Hc, T.Row, l2);
7694
7698
  void 0 !== c2 && (s2.push(c2[1]), a2 = c2[0]);
7695
7699
  }
7696
7700
  if (a2.colStart < o2.colStart) {
@@ -7700,7 +7704,7 @@ function Fc(t5, e2, n2 = null, r2 = true) {
7700
7704
  i2 && (r2 && (e3.lastId = i2), e3.uuid = bt.uuidV4());
7701
7705
  const l2 = e3.colStart - t6.colStart;
7702
7706
  Hc[0] = t6, Hc[1] = e3;
7703
- const c2 = n2(a2, Hc, N.Column, l2);
7707
+ const c2 = n2(a2, Hc, T.Column, l2);
7704
7708
  void 0 !== c2 && (s2.push(c2[0]), a2 = c2[1]);
7705
7709
  }
7706
7710
  if (a2.colEnd > o2.colEnd) {
@@ -7710,7 +7714,7 @@ function Fc(t5, e2, n2 = null, r2 = true) {
7710
7714
  i2 && (r2 && (e3.lastId = i2), e3.uuid = bt.uuidV4());
7711
7715
  const l2 = e3.colStart - t6.colStart;
7712
7716
  Hc[0] = t6, Hc[1] = e3;
7713
- const c2 = n2(a2, Hc, N.Column, l2);
7717
+ const c2 = n2(a2, Hc, T.Column, l2);
7714
7718
  void 0 !== c2 && (s2.push(c2[1]), a2 = c2[0]);
7715
7719
  }
7716
7720
  return a2 === t5 && (a2 = { ...t5 }), s2.push(a2), s2;
@@ -7718,12 +7722,12 @@ function Fc(t5, e2, n2 = null, r2 = true) {
7718
7722
  function Oc(t5) {
7719
7723
  return null === t5.value ? null : t5;
7720
7724
  }
7721
- function Dc(t5, e2 = N.Column, n2 = 2, r2, o2) {
7725
+ function Dc(t5, e2 = T.Column, n2 = 2, r2, o2) {
7722
7726
  let s2 = [...t5];
7723
7727
  if (n2 <= 0 || t5.length <= 1) return s2;
7724
- let i2 = e2 === N.Column, a2 = 0, l2 = false;
7728
+ let i2 = e2 === T.Column, a2 = 0, l2 = false;
7725
7729
  do {
7726
- const t6 = s2.sort(Y.createRangeComparator(i2 ? N.Row : N.Column));
7730
+ const t6 = s2.sort(Y.createRangeComparator(i2 ? T.Row : T.Column));
7727
7731
  s2 = [], l2 = false, s2.push(t6[0]);
7728
7732
  for (let n3 = 1; n3 < t6.length; n3++) {
7729
7733
  const a3 = t6[n3], c2 = s2[s2.length - 1];
@@ -7745,10 +7749,10 @@ function Dc(t5, e2 = N.Column, n2 = 2, r2, o2) {
7745
7749
  } while (a2 < n2 && l2 && s2.length > 1);
7746
7750
  return s2;
7747
7751
  }
7748
- const Lc = (t5, e2 = 2, n2 = N.Row, r2, o2, s2) => {
7752
+ const Lc = (t5, e2 = 2, n2 = T.Row, r2, o2, s2) => {
7749
7753
  if (t5.length <= 1) return [...t5];
7750
7754
  let i2 = [];
7751
- const a2 = n2 === N.Column, l2 = new ql.IteratorInstance(t5, { orientation: a2 ? N.Row : N.Column });
7755
+ const a2 = n2 === T.Column, l2 = new Jl.IteratorInstance(t5, { orientation: a2 ? T.Row : T.Column });
7752
7756
  let c2 = l2.next();
7753
7757
  for (; !c2.done; ) {
7754
7758
  const t6 = c2.value;
@@ -7767,7 +7771,7 @@ const Lc = (t5, e2 = 2, n2 = N.Row, r2, o2, s2) => {
7767
7771
  }
7768
7772
  i2.push(n3);
7769
7773
  }
7770
- return e2 > 1 && (i2 = Dc(i2, a2 ? N.Row : N.Column, e2, r2, s2)), i2;
7774
+ return e2 > 1 && (i2 = Dc(i2, a2 ? T.Row : T.Column, e2, r2, s2)), i2;
7771
7775
  };
7772
7776
  function Bc(t5, e2, n2, r2) {
7773
7777
  const o2 = t5.value;
@@ -7793,7 +7797,7 @@ const zc = (t5, e2, n2 = k.Both) => {
7793
7797
  return n2 === k.Both && (o2 = s2 = true), !(!o2 || !r2(true)) || !(!s2 || !r2(false));
7794
7798
  };
7795
7799
  function jc(t5, e2, n2, r2, o2, s2, i2) {
7796
- const a2 = n2.orientation === N.Column, l2 = n2.intersect, c2 = (e3, c3) => {
7800
+ const a2 = n2.orientation === T.Column, l2 = n2.intersect, c2 = (e3, c3) => {
7797
7801
  let h2 = e3.value, u2 = null, d2 = c3.after;
7798
7802
  if (i2) {
7799
7803
  let n3 = null, r3 = 0, s3 = 0;
@@ -7859,7 +7863,7 @@ const Wc = (t5, e2, n2, r2, o2, s2, i2) => {
7859
7863
  const x2 = a2 <= C2 * _3, I2 = l2 <= v2 * y2;
7860
7864
  if (x2 || I2) {
7861
7865
  const t7 = o3?.canTile?.({ colStart: E2, rowStart: b2, colEnd: Math.min(E2 + (x2 ? a2 : _3) - 1, S2), rowEnd: Math.min(b2 + (I2 ? l2 : y2) - 1, w2) }, r2);
7862
- !x2 || true !== t7 && t7 !== N.Column || (_3 = a2, C2 = 1), !I2 || true !== t7 && t7 !== N.Row || (y2 = l2, v2 = 1);
7866
+ !x2 || true !== t7 && t7 !== T.Column || (_3 = a2, C2 = 1), !I2 || true !== t7 && t7 !== T.Row || (y2 = l2, v2 = 1);
7863
7867
  }
7864
7868
  for (let t7 = 0; t7 < C2; t7++) {
7865
7869
  const e3 = E2 + t7 * d2;
@@ -7877,11 +7881,11 @@ const Wc = (t5, e2, n2, r2, o2, s2, i2) => {
7877
7881
  }, Gc = (t5, e2, n2) => {
7878
7882
  const r2 = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 };
7879
7883
  return r2.colStart = e2 ? t5.majorStart : t5.minorStart, r2.rowStart = e2 ? t5.minorStart : t5.majorStart, r2.colEnd = e2 ? t5.majorEnd : t5.minorEnd, r2.rowEnd = e2 ? t5.minorEnd : t5.majorEnd, r2;
7880
- }, Uc = { majorStart: 0, majorEnd: 0, minorStart: 0, minorEnd: 0 }, qc = (t5, e2) => t5[0] - e2[0];
7881
- class Jc {
7884
+ }, Uc = { majorStart: 0, majorEnd: 0, minorStart: 0, minorEnd: 0 }, Jc = (t5, e2) => t5[0] - e2[0];
7885
+ class qc {
7882
7886
  constructor(t5, e2) {
7883
7887
  this._isColumn = true, this._isReverse = false, this._skipMajors = false, this._majorMin = Number.MAX_SAFE_INTEGER, this._majorMax = Number.MIN_SAFE_INTEGER, this._minorMin = Number.MAX_SAFE_INTEGER, this._minorMax = Number.MIN_SAFE_INTEGER, this._majorIndex = Number.MIN_SAFE_INTEGER, this._minorIndex = Number.MIN_SAFE_INTEGER, this._delegateMajorIndex = Number.MIN_SAFE_INTEGER, this._delegateMinorIndex = Number.MIN_SAFE_INTEGER, this._delegate = t5;
7884
- const n2 = (e2.orientation ?? N.Column) === N.Column;
7888
+ const n2 = (e2.orientation ?? T.Column) === T.Column;
7885
7889
  this._isColumn = n2, this._isReverse = e2.reverse ?? false, this._skipMajors = e2.skipMajors ?? false;
7886
7890
  const r2 = e2.bounds, o2 = r2.colStart, s2 = r2.rowStart, i2 = r2.colEnd, a2 = r2.rowEnd;
7887
7891
  this._majorMin = n2 ? o2 : s2, this._majorMax = n2 ? i2 : a2, this._minorMin = n2 ? s2 : o2, this._minorMax = n2 ? a2 : i2, this._processMajorSkip = n2 ? e2.processColumnSkip : e2.processRowSkip, this._processMinorSkip = n2 ? e2.processRowSkip : e2.processColumnSkip;
@@ -7944,7 +7948,7 @@ class Kc {
7944
7948
  this._isColumn = true, this._majorSize = Number.MAX_SAFE_INTEGER, this._minorSize = Number.MAX_SAFE_INTEGER, this._majorMin = Number.MAX_SAFE_INTEGER, this._majorMax = Number.MIN_SAFE_INTEGER, this._minorMin = Number.MAX_SAFE_INTEGER, this._minorMax = Number.MIN_SAFE_INTEGER, this._majorIndex = Number.MAX_SAFE_INTEGER, this._minorIndex = Number.MAX_SAFE_INTEGER, this._minorOffset = 0, this._minorRepeat = 0, this._majorOffset = -1, this._majorRepeat = 1, this._pattern = [];
7945
7949
  const e2 = t5.delegate;
7946
7950
  this._delegate = e2;
7947
- const n2 = (t5.orientation ?? N.Column) === N.Column;
7951
+ const n2 = (t5.orientation ?? T.Column) === T.Column;
7948
7952
  this._isColumn = n2;
7949
7953
  const r2 = t5.dims, o2 = t5.bounds, s2 = o2.colStart, i2 = o2.rowStart, a2 = o2.colEnd, l2 = o2.rowEnd;
7950
7954
  if (this._majorSize = 1 + (n2 ? a2 - s2 : l2 - i2), this._minorSize = 1 + (n2 ? l2 - i2 : a2 - s2), this._majorMin = n2 ? s2 : i2, this._minorMin = n2 ? i2 : s2, this._majorMax = (n2 ? s2 + r2.major : i2 + r2.major) - 1, this._minorMax = (n2 ? i2 + r2.minor : s2 + r2.minor) - 1, this._majorSize > this._majorMax + 1 || this._minorSize > this._minorMax + 1) throw new Error("The dimensions must be larger than the bounds.");
@@ -8014,7 +8018,7 @@ class Kc {
8014
8018
  }
8015
8019
  class Xc {
8016
8020
  constructor(t5, e2, n2) {
8017
- this._comparator = t5?.comparator ?? Y.createCellComparator(t5.orientation ?? N.Column, t5.reverse ?? false), this._iterator1 = e2, this._iterator2 = n2;
8021
+ this._comparator = t5?.comparator ?? Y.createCellComparator(t5.orientation ?? T.Column, t5.reverse ?? false), this._iterator1 = e2, this._iterator2 = n2;
8018
8022
  const r2 = e2.next();
8019
8023
  this._nextResult1 = r2;
8020
8024
  const o2 = n2.next();
@@ -8136,11 +8140,11 @@ const Yc = "Must be an array of arrays.", Qc = (t5, e2, n2) => {
8136
8140
  r2 && n2.push(r2);
8137
8141
  const u2 = t5 ? a2 : l2, d2 = t5 ? l2 : a2;
8138
8142
  r2 = { colStart: u2, rowStart: d2, colEnd: u2, rowEnd: d2, value: c2 }, s2 = a2, i2 = l2, o2 = c2;
8139
- }, done: (e3 = false) => (r2 && (n2.push(r2), r2 = null), e3 ? Dc(n2, t5 ? N.Column : N.Row, 2, eh, nh) : n2) };
8143
+ }, done: (e3 = false) => (r2 && (n2.push(r2), r2 = null), e3 ? Dc(n2, t5 ? T.Column : T.Row, 2, eh, nh) : n2) };
8140
8144
  };
8141
8145
  class oh {
8142
8146
  constructor(t5) {
8143
- this._major = null, this._dataCoords = null, this._count = 0, this._isColumn = true, this._lastMajor = Number.MIN_SAFE_INTEGER, this._lastMinorSpan = null, this._maxCoords = null, this._isShared = false, this._options = { orientation: N.Row, ...t5 }, this._isColumn = (t5?.orientation ?? N.Column) === N.Column, t5?.maxCoords && (this._maxCoords = Object.freeze({ colStart: Math.max(0, t5.maxCoords.colStart ?? 0), rowStart: Math.max(0, t5.maxCoords.rowStart ?? 0), colEnd: Math.min(Number.MAX_SAFE_INTEGER, t5.maxCoords.colEnd ?? Number.MAX_SAFE_INTEGER), rowEnd: Math.min(Number.MAX_SAFE_INTEGER, t5.maxCoords.rowEnd ?? Number.MAX_SAFE_INTEGER) })), this._createRun = t5?.createRun ?? ((t6) => new Wl(t6)), this._optionsMinor = {}, this._major = new Xl({ nodeSize: sh });
8147
+ this._major = null, this._dataCoords = null, this._count = 0, this._isColumn = true, this._lastMajor = Number.MIN_SAFE_INTEGER, this._lastMinorSpan = null, this._maxCoords = null, this._isShared = false, this._options = { orientation: T.Row, ...t5 }, this._isColumn = (t5?.orientation ?? T.Column) === T.Column, t5?.maxCoords && (this._maxCoords = Object.freeze({ colStart: Math.max(0, t5.maxCoords.colStart ?? 0), rowStart: Math.max(0, t5.maxCoords.rowStart ?? 0), colEnd: Math.min(Number.MAX_SAFE_INTEGER, t5.maxCoords.colEnd ?? Number.MAX_SAFE_INTEGER), rowEnd: Math.min(Number.MAX_SAFE_INTEGER, t5.maxCoords.rowEnd ?? Number.MAX_SAFE_INTEGER) })), this._createRun = t5?.createRun ?? ((t6) => new Wl(t6)), this._optionsMinor = {}, this._major = new Xl({ nodeSize: sh });
8144
8148
  }
8145
8149
  getRuns(t5) {
8146
8150
  const e2 = this._isColumn, n2 = this._maxCoords, r2 = this.getCoords();
@@ -8168,7 +8172,7 @@ class oh {
8168
8172
  } };
8169
8173
  }
8170
8174
  getOrientation() {
8171
- return this._isColumn ? N.Column : N.Row;
8175
+ return this._isColumn ? T.Column : T.Row;
8172
8176
  }
8173
8177
  entries(t5) {
8174
8178
  const e2 = this._isColumn;
@@ -8177,7 +8181,7 @@ class oh {
8177
8181
  if (!i2) return zl;
8178
8182
  let a2, l2, c2, h2 = i2.majorStart, u2 = i2.majorEnd, d2 = i2.minorStart, g2 = i2.minorEnd, m2 = false;
8179
8183
  if (t5) {
8180
- t5?.orientation && (n2 = t5?.orientation === N.Column, r2 = e2 === n2);
8184
+ t5?.orientation && (n2 = t5?.orientation === T.Column, r2 = e2 === n2);
8181
8185
  const i3 = t5?.bounds;
8182
8186
  if (i3) {
8183
8187
  const t6 = $c(i3.colStart, i3.rowStart, i3.colEnd, i3.rowEnd, e2, o2, s2);
@@ -8292,7 +8296,7 @@ class oh {
8292
8296
  setValues(t5) {
8293
8297
  if (!t5) throw new jt();
8294
8298
  if (0 === t5.length) return this;
8295
- const e2 = (t5 = t5.sort(qc))[0][0], n2 = t5[t5.length - 1][0];
8299
+ const e2 = (t5 = t5.sort(Jc))[0][0], n2 = t5[t5.length - 1][0];
8296
8300
  let r2 = Number.MIN_SAFE_INTEGER, o2 = Number.MAX_SAFE_INTEGER;
8297
8301
  const s2 = this._isColumn, i2 = this._maxCoords;
8298
8302
  if (i2) {
@@ -8304,7 +8308,7 @@ class oh {
8304
8308
  let a2 = Number.MAX_SAFE_INTEGER, l2 = Number.MIN_SAFE_INTEGER, c2 = 0, h2 = e2 - 1;
8305
8309
  const u2 = [], d2 = (t6, e3, n3) => {
8306
8310
  if (h2 === n3) throw new dn.OutOfOrderError(`Duplicate major Indices: {${n3}}.`);
8307
- h2 = n3, e3 = e3.sort(qc), t6 = t6.clone();
8311
+ h2 = n3, e3 = e3.sort(Jc), t6 = t6.clone();
8308
8312
  let s3 = Number.MIN_SAFE_INTEGER;
8309
8313
  const i3 = e3.length;
8310
8314
  for (let h3 = 0; h3 < i3; h3++) {
@@ -8443,8 +8447,8 @@ class oh {
8443
8447
  o2 || (x2 = Number.MAX_SAFE_INTEGER, I2 = Number.MIN_SAFE_INTEGER);
8444
8448
  let R2 = Number.MAX_SAFE_INTEGER;
8445
8449
  r2 && (R2 = s2 ? r2.colEnd : r2.rowEnd);
8446
- const A2 = /* @__PURE__ */ new Set(), M2 = _2 ? /* @__PURE__ */ new Map() : null, T2 = [], N2 = y2.entries(hh), k2 = { bounds: { min: c2, max: h2 } };
8447
- let F2 = N2.next();
8450
+ const A2 = /* @__PURE__ */ new Set(), M2 = _2 ? /* @__PURE__ */ new Map() : null, N2 = [], T2 = y2.entries(hh), k2 = { bounds: { min: c2, max: h2 } };
8451
+ let F2 = T2.next();
8448
8452
  for (; !F2.done; ) {
8449
8453
  const t6 = F2.value, e3 = t6[0], n3 = t6[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
8450
8454
  if (_2 && M2.set(e3, n3), c2 <= s3) {
@@ -8452,7 +8456,7 @@ class oh {
8452
8456
  _2 ? (e3 >= a2 - S2 && Dl(n3.runs(k2), (t8, n4) => {
8453
8457
  const r5 = n4.min, o4 = n4.max;
8454
8458
  let s4 = t8;
8455
- r5 - 1 <= h2 && o4 > h2 && (s4 = s4.slice(0, h2 + 1 - r5)), r5 < c2 && o4 + 1 >= c2 && (s4 = s4.slice(c2 - r5)), T2.push({ majorIndex: e3 + S2, minorIndex: Math.max(r5, c2), run: s4 });
8459
+ r5 - 1 <= h2 && o4 > h2 && (s4 = s4.slice(0, h2 + 1 - r5)), r5 < c2 && o4 + 1 >= c2 && (s4 = s4.slice(c2 - r5)), N2.push({ majorIndex: e3 + S2, minorIndex: Math.max(r5, c2), run: s4 });
8456
8460
  }), n3.delete(c2, h2 - c2 + 1)) : n3.shift(c2, S2);
8457
8461
  const r4 = n3.getCount();
8458
8462
  if (0 === r4) A2.add(e3), x2 = Math.min(x2, s3), I2 = Math.max(I2, o3);
@@ -8462,12 +8466,12 @@ class oh {
8462
8466
  }
8463
8467
  w2 += r4 - t7, E2.push([e3, n3]);
8464
8468
  }
8465
- F2 = N2.next();
8469
+ F2 = T2.next();
8466
8470
  }
8467
8471
  const O2 = this._optionsMinor;
8468
8472
  let D2 = false;
8469
- for (let t6 = 0; t6 < T2.length; t6++) {
8470
- const e3 = T2[t6], n3 = e3.majorIndex, r3 = e3.run;
8473
+ for (let t6 = 0; t6 < N2.length; t6++) {
8474
+ const e3 = N2[t6], n3 = e3.majorIndex, r3 = e3.run;
8471
8475
  let o3 = M2.get(n3);
8472
8476
  o3 || (o3 = new Xl(O2), M2.set(n3, o3), E2.push([n3, o3]), D2 = true), o3.setRunAt(e3.minorIndex, r3), w2 += r3.length, b2 = Math.min(b2, n3), C2 = Math.max(C2, n3), A2 && A2.delete(n3);
8473
8477
  }
@@ -8510,7 +8514,7 @@ class oh {
8510
8514
  const l2 = this._isColumn, c2 = this._maxCoords, h2 = this.getCoords();
8511
8515
  let u2, d2 = $c(n2.colStart ?? Number.MIN_SAFE_INTEGER, n2.rowStart ?? Number.MIN_SAFE_INTEGER, n2.colEnd ?? Number.MAX_SAFE_INTEGER, n2.rowEnd ?? Number.MAX_SAFE_INTEGER, l2, c2, h2);
8512
8516
  d2 = { ...d2 };
8513
- const g2 = o2 !== N.Row, m2 = t5.getMaxCoords();
8517
+ const g2 = o2 !== T.Row, m2 = t5.getMaxCoords();
8514
8518
  u2 = $c(a2?.colStart ?? Number.MIN_SAFE_INTEGER, a2?.rowStart ?? Number.MIN_SAFE_INTEGER, a2?.colEnd ?? Number.MAX_SAFE_INTEGER, a2?.rowEnd ?? Number.MAX_SAFE_INTEGER, g2, m2), u2 = { ...u2 };
8515
8519
  const f2 = u2.majorStart - d2.majorStart, p2 = u2.minorStart - d2.minorStart, _2 = r2 === o2 ? new dn.Builder() : new dn.TransposedBuilder();
8516
8520
  for (; !i2.done; ) {
@@ -8640,9 +8644,9 @@ class dh {
8640
8644
  static fromArray(t5, e2, n2, r2, o2 = gh) {
8641
8645
  const s2 = t5.length;
8642
8646
  if (0 === s2) return new dh({ type: Mh.Undefined, length: s2, getCoercedValue: n2 });
8643
- let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 = Th(t5[0], r2);
8647
+ let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 = Nh(t5[0], r2);
8644
8648
  for (let e3 = 0; e3 < s2; e3++) {
8645
- const n3 = t5[e3], o3 = Th(n3, r2);
8649
+ const n3 = t5[e3], o3 = Nh(n3, r2);
8646
8650
  o3 !== Sh && o3 !== _h || l2++, h2 !== o3 && (a2[e3] = o3, c2 = true);
8647
8651
  }
8648
8652
  c2 || (a2 = null, i2 = null);
@@ -8707,7 +8711,7 @@ class dh {
8707
8711
  return new dh({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
8708
8712
  }
8709
8713
  }
8710
- const gh = 0.1, mh = 1, fh = 2, ph = 3, _h = 4, Sh = 5, wh = 6, yh = 7, Eh = 8, bh = 9, Ch = 10, vh = 11, xh = 12, Ih = 13, Rh = 14, Ah = 127, Mh = { Undefined: Rh }, Th = (t5, e2) => {
8714
+ const gh = 0.1, mh = 1, fh = 2, ph = 3, _h = 4, Sh = 5, wh = 6, yh = 7, Eh = 8, bh = 9, Ch = 10, vh = 11, xh = 12, Ih = 13, Rh = 14, Ah = 127, Mh = { Undefined: Rh }, Nh = (t5, e2) => {
8711
8715
  switch (typeof t5) {
8712
8716
  case "number":
8713
8717
  const n2 = t5;
@@ -8739,7 +8743,7 @@ const gh = 0.1, mh = 1, fh = 2, ph = 3, _h = 4, Sh = 5, wh = 6, yh = 7, Eh = 8,
8739
8743
  return Ah;
8740
8744
  }
8741
8745
  return Ah;
8742
- }, Nh = (t5) => {
8746
+ }, Th = (t5) => {
8743
8747
  if (!t5 || t5.length <= 1) return false;
8744
8748
  if (2 === t5.length) return Y.isRangesIntersect(t5[0], t5[1]);
8745
8749
  const e2 = new Mc();
@@ -8751,7 +8755,7 @@ const gh = 0.1, mh = 1, fh = 2, ph = 3, _h = 4, Sh = 5, wh = 6, yh = 7, Eh = 8,
8751
8755
  }, kh = (t5, e2, n2) => {
8752
8756
  const r2 = [];
8753
8757
  if (Y.isRangesIntersect(t5, e2)) {
8754
- const o2 = bt.subtractRect({ top: t5.rowStart, left: t5.colStart, bottom: t5.rowEnd + 1, right: t5.colEnd + 1 }, { top: e2.rowStart, left: e2.colStart, bottom: e2.rowEnd + 1, right: e2.colEnd + 1 }, n2 === N.Column);
8758
+ const o2 = bt.subtractRect({ top: t5.rowStart, left: t5.colStart, bottom: t5.rowEnd + 1, right: t5.colEnd + 1 }, { top: e2.rowStart, left: e2.colStart, bottom: e2.rowEnd + 1, right: e2.colEnd + 1 }, n2 === T.Column);
8755
8759
  for (let t6 = 0; t6 < o2.length; t6++) {
8756
8760
  const e3 = { colStart: o2[t6].left, rowStart: o2[t6].top, colEnd: o2[t6].right - 1, rowEnd: o2[t6].bottom - 1 };
8757
8761
  r2.push(e3);
@@ -8834,7 +8838,7 @@ class Ph {
8834
8838
  let o2 = this._values.getValueAt(t5 + r2.rowStart, e2 + r2.colStart) ?? null;
8835
8839
  void 0 === o2 && (o2 = null);
8836
8840
  const s2 = n2?.type, i2 = void 0 !== s2 ? s2 : this._type;
8837
- return i2 && (o2 = Jh(o2, $h(o2, true), i2)), o2;
8841
+ return i2 && (o2 = qh(o2, $h(o2, true), i2)), o2;
8838
8842
  }
8839
8843
  _applyBuilder(t5, e2, n2 = false) {
8840
8844
  if (!e2) return t5;
@@ -8979,7 +8983,7 @@ class Ph {
8979
8983
  let r2 = this._coords;
8980
8984
  if (null == t5) return this;
8981
8985
  let o2 = n2?.type, a2 = n2?.otherType ?? o2;
8982
- const c2 = o2 ? Jh(null, s.Null, o2) : null, h2 = a2 ? Jh(null, s.Null, a2) : null;
8986
+ const c2 = o2 ? qh(null, s.Null, o2) : null, h2 = a2 ? qh(null, s.Null, a2) : null;
8983
8987
  let u2;
8984
8988
  if (t5.isIRange) u2 = t5;
8985
8989
  else {
@@ -9013,28 +9017,28 @@ class Ph {
9013
9017
  const t6 = { ...A2 };
9014
9018
  1 === f2 && (t6.colEnd = t6.colStart), 1 === p2 && (t6.rowEnd = t6.rowStart), R2 = new Kc({ delegate: d2._entries({ ...n2, type: a2 ?? null, orientation: v2, bounds: t6, reuseResult: false }), bounds: t6, orientation: v2, dims: { major: x2 ? _2 : S2, minor: x2 ? S2 : _2 } });
9015
9019
  } else R2 = d2._entries({ ...n2, type: a2 ?? null, orientation: v2, bounds: A2, reuseResult: false });
9016
- const M2 = r2.colStart, T2 = r2.rowStart, N2 = M2 - A2.colStart, k2 = T2 - A2.rowStart, F2 = v2 === C2 ? new dn.Builder() : new dn.TransposedBuilder(), O2 = new Xc({ ...n2, bounds: r2, comparator: (x2 ? Oh : Dh)(r2, A2) }, I2, R2);
9020
+ const M2 = r2.colStart, N2 = r2.rowStart, T2 = M2 - A2.colStart, k2 = N2 - A2.rowStart, F2 = v2 === C2 ? new dn.Builder() : new dn.TransposedBuilder(), O2 = new Xc({ ...n2, bounds: r2, comparator: (x2 ? Oh : Dh)(r2, A2) }, I2, R2);
9017
9021
  let D2, L2 = O2.next();
9018
9022
  for (; !L2.done; ) {
9019
9023
  const t6 = L2.value;
9020
9024
  let n3 = t6[1], r3 = t6[3];
9021
- const o3 = t6[0], s2 = t6[2], i2 = o3 ? o3.colIndex : s2.colIndex + N2, a3 = o3 ? o3.rowIndex : s2.rowIndex + k2;
9025
+ const o3 = t6[0], s2 = t6[2], i2 = o3 ? o3.colIndex : s2.colIndex + T2, a3 = o3 ? o3.rowIndex : s2.rowIndex + k2;
9022
9026
  let u3, d3;
9023
- n3 instanceof l.Value ? u3 = n3 : r3 instanceof l.Value && (u3 = r3), d3 = u3 || e2(n3 ?? c2, r3 ?? h2, { colIndex: i2 - M2, rowIndex: a3 - T2 }, this);
9027
+ n3 instanceof l.Value ? u3 = n3 : r3 instanceof l.Value && (u3 = r3), d3 = u3 || e2(n3 ?? c2, r3 ?? h2, { colIndex: i2 - M2, rowIndex: a3 - N2 }, this);
9024
9028
  const g3 = x2 ? i2 : a3, m3 = x2 ? a3 : i2;
9025
9029
  F2.addValue(g3, m3, d3), L2 = O2.next();
9026
9030
  }
9027
9031
  if (E2 && w2 > _2 || y2 > S2) {
9028
9032
  const t6 = this._values.clone();
9029
9033
  if (this._applyBuilder(t6, F2), w2 > _2) {
9030
- const e3 = $c(M2 + _2, T2, M2 + w2 - 1, T2 + y2 - 1, x2), n3 = Qc(E2, e3, x2);
9034
+ const e3 = $c(M2 + _2, N2, M2 + w2 - 1, N2 + y2 - 1, x2), n3 = Qc(E2, e3, x2);
9031
9035
  t6.setValues(n3.tuples);
9032
9036
  }
9033
9037
  if (y2 > S2) {
9034
- const e3 = $c(M2, T2 + S2, M2 + w2 - 1, T2 + y2 - 1, x2), n3 = Qc(E2, e3, x2);
9038
+ const e3 = $c(M2, N2 + S2, M2 + w2 - 1, N2 + y2 - 1, x2), n3 = Qc(E2, e3, x2);
9035
9039
  t6.setValues(n3.tuples);
9036
9040
  }
9037
- D2 = new Ph(t6, { colStart: M2, rowStart: T2, colEnd: M2 + w2 - 1, rowEnd: T2 + y2 - 1 }, this._type);
9041
+ D2 = new Ph(t6, { colStart: M2, rowStart: N2, colEnd: M2 + w2 - 1, rowEnd: N2 + y2 - 1 }, this._type);
9038
9042
  } else D2 = this._cloneFromBuilder(F2, n2, w2, y2);
9039
9043
  return D2;
9040
9044
  }
@@ -9135,7 +9139,7 @@ class Ph {
9135
9139
  let e2 = this._values.entries(t5);
9136
9140
  const n2 = t5?.type ?? this._type;
9137
9141
  let r2 = null;
9138
- if (t5?.includeEmpty && (e2 = new Jc(e2, t5), n2 && (r2 = Jh(null, s.Null, n2))), n2) {
9142
+ if (t5?.includeEmpty && (e2 = new qc(e2, t5), n2 && (r2 = qh(null, s.Null, n2))), n2) {
9139
9143
  const o2 = e2, s2 = t5.coerce ?? false, i2 = t5.includeBoolean ?? false, a2 = t5.includeMistyped ?? false;
9140
9144
  e2 = { [Symbol.iterator]: () => e2, next() {
9141
9145
  for (; ; ) {
@@ -9146,7 +9150,7 @@ class Ph {
9146
9150
  if (null == c2) c2 = r2;
9147
9151
  else if (n2 && (s2 || !a2)) {
9148
9152
  let t7 = $h(c2, true), e4 = t7 !== n2;
9149
- if (e4 && (s2 && (c2 = Jh(c2, t7, n2, i2), e4 = c2?.isFormulaError), e4 && !a2)) continue;
9153
+ if (e4 && (s2 && (c2 = qh(c2, t7, n2, i2), e4 = c2?.isFormulaError), e4 && !a2)) continue;
9150
9154
  }
9151
9155
  return c2 === l2 ? t6 : { done: false, value: [e3[0], c2] };
9152
9156
  }
@@ -9231,7 +9235,7 @@ class Ph {
9231
9235
  return true;
9232
9236
  }
9233
9237
  }
9234
- const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGER, colEnd: Number.MAX_SAFE_INTEGER, rowEnd: Number.MAX_SAFE_INTEGER }, jh = Object.freeze([Object.freeze([null])]), Wh = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), Hh = Object.freeze({ colIndex: 0, rowIndex: 0 }), Vh = () => Wh, $h = (t5, e2 = false) => "number" == typeof t5 ? isNaN(t5) || t5 === 1 / 0 || t5 === -1 / 0 ? s.Error : s.Number : "string" == typeof t5 ? s.String : "boolean" == typeof t5 ? s.Boolean : t5?.isFormulaError ? s.Error : null === t5 ? s.Null : bt.isObject(t5) && t5.hasOwnProperty("type") && "string" == typeof t5.type ? s.RichData : e2 && Ms(t5) ? "Date" : void 0 === t5 ? (console.warn("undefined"), s.Null) : null, Gh = /* @__PURE__ */ new Map([[s.Null, "any"], [s.Number, "number"], [s.String, "string"], [s.Boolean, "boolean"], [s.Error, "FormulaError"], [s.RichData, "richData"], ["*", "Scalar"]]), Uh = /* @__PURE__ */ new Map([["p", "IReferenceRange"], ["r", "IRange"]]), qh = { orientation: i.Orientation.Row }, Jh = (t5, e2, n2 = s.Number, r2 = false, o2 = false) => {
9238
+ const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGER, colEnd: Number.MAX_SAFE_INTEGER, rowEnd: Number.MAX_SAFE_INTEGER }, jh = Object.freeze([Object.freeze([null])]), Wh = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), Hh = Object.freeze({ colIndex: 0, rowIndex: 0 }), Vh = () => Wh, $h = (t5, e2 = false) => "number" == typeof t5 ? isNaN(t5) || t5 === 1 / 0 || t5 === -1 / 0 ? s.Error : s.Number : "string" == typeof t5 ? s.String : "boolean" == typeof t5 ? s.Boolean : t5?.isFormulaError ? s.Error : null === t5 ? s.Null : bt.isObject(t5) && t5.hasOwnProperty("type") && "string" == typeof t5.type ? s.RichData : e2 && Ms(t5) ? "Date" : void 0 === t5 ? (console.warn("undefined"), s.Null) : null, Gh = /* @__PURE__ */ new Map([[s.Null, "any"], [s.Number, "number"], [s.String, "string"], [s.Boolean, "boolean"], [s.Error, "FormulaError"], [s.RichData, "richData"], ["*", "Scalar"]]), Uh = /* @__PURE__ */ new Map([["p", "IReferenceRange"], ["r", "IRange"]]), Jh = { orientation: i.Orientation.Row }, qh = (t5, e2, n2 = s.Number, r2 = false, o2 = false) => {
9235
9239
  if (e2 === n2 || !n2) return e2 === s.Number && (t5 = Qh(t5, null, "number")), t5;
9236
9240
  if (n2 === s.Number) {
9237
9241
  switch (e2) {
@@ -9287,7 +9291,7 @@ const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
9287
9291
  return Ds(t5, o2) ?? l.BuiltIn.Value;
9288
9292
  case s.String:
9289
9293
  try {
9290
- const e3 = Js(t5, o2);
9294
+ const e3 = qs(t5, o2);
9291
9295
  if (e3) return e3.asJSDate ?? l.BuiltIn.Value;
9292
9296
  } catch (t6) {
9293
9297
  }
@@ -9316,7 +9320,7 @@ const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
9316
9320
  if (n3 instanceof l.Value) return n3;
9317
9321
  } else {
9318
9322
  if (r2) {
9319
- if (i3 = Jh(i3, $h(i3, true), r2, s2), s2) continue;
9323
+ if (i3 = qh(i3, $h(i3, true), r2, s2), s2) continue;
9320
9324
  if (i3 instanceof l.Value) return i3;
9321
9325
  }
9322
9326
  e2.push(i3);
@@ -9336,10 +9340,10 @@ const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
9336
9340
  if (r3 instanceof l.Value) return r3;
9337
9341
  e3.push(r3), n3 = t6.next();
9338
9342
  }
9339
- })(n2.values({ type: r2, coerce: true, includeMistyped: !s2, ...qh }), e2);
9343
+ })(n2.values({ type: r2, coerce: true, includeMistyped: !s2, ...Jh }), e2);
9340
9344
  }
9341
9345
  if (r2) {
9342
- if (n2 = Jh(n2, $h(n2, true), r2, null !== o2), s2) return;
9346
+ if (n2 = qh(n2, $h(n2, true), r2, null !== o2), s2) return;
9343
9347
  if (n2 instanceof l.Value) return n2;
9344
9348
  }
9345
9349
  e2.push(n2);
@@ -9363,7 +9367,7 @@ const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
9363
9367
  const s2 = t7.length, i3 = new Array(s2);
9364
9368
  for (let e4 = 0; e4 < s2; e4++) {
9365
9369
  let n3 = t7[e4];
9366
- if (r2 && (n3 = Jh(n3, $h(n3, true), r2)), n3 instanceof l.Value) return n3;
9370
+ if (r2 && (n3 = qh(n3, $h(n3, true), r2)), n3 instanceof l.Value) return n3;
9367
9371
  i3[e4] = n3;
9368
9372
  }
9369
9373
  o3[e3] = i3;
@@ -9373,7 +9377,7 @@ const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
9373
9377
  } else {
9374
9378
  if (a2) r2 && a2.getScalarType() !== r2 && (a2 = a2.toType(r2));
9375
9379
  else try {
9376
- if (!i2 && (n2 = Qh(n2), r2 && (n2 = Jh(n2, $h(n2, true), r2, true), n2?.isFormulaError && r2 !== s.Error))) return e2.push(n2), n2;
9380
+ if (!i2 && (n2 = Qh(n2), r2 && (n2 = qh(n2, $h(n2, true), r2, true), n2?.isFormulaError && r2 !== s.Error))) return e2.push(n2), n2;
9377
9381
  a2 = t5.getRange(n2), r2 && (a2 = a2.toType(r2));
9378
9382
  } catch (t6) {
9379
9383
  return t6;
@@ -9512,7 +9516,7 @@ const fu = (t5) => {
9512
9516
  }, Mu = (t5, e2, n2 = vu, r2 = Su) => {
9513
9517
  const o2 = Au(t5, e2, n2, r2);
9514
9518
  return o2 ? o2.join(",") : au;
9515
- }, Tu = (t5, e2, n2, r2 = Ru, o2, s2 = false) => {
9519
+ }, Nu = (t5, e2, n2, r2 = Ru, o2, s2 = false) => {
9516
9520
  if (null !== e2) {
9517
9521
  if ("string" == typeof e2) {
9518
9522
  const i2 = r2(e2, n2, s2);
@@ -9522,7 +9526,7 @@ const fu = (t5) => {
9522
9526
  const e3 = i3.length;
9523
9527
  for (let a2 = 0; a2 < e3; a2++) {
9524
9528
  const e4 = i3[a2];
9525
- Tu(t5, e4, n2, r2, o2, s2);
9529
+ Nu(t5, e4, n2, r2, o2, s2);
9526
9530
  }
9527
9531
  }
9528
9532
  return;
@@ -9539,14 +9543,14 @@ const fu = (t5) => {
9539
9543
  }
9540
9544
  } else t5.push(null);
9541
9545
  } else t5.push(null);
9542
- }, Nu = (t5, e2, n2 = Ru, r2, o2 = false) => {
9546
+ }, Tu = (t5, e2, n2 = Ru, r2, o2 = false) => {
9543
9547
  if (!t5) return [e2];
9544
9548
  let s2;
9545
9549
  s2 = "string" == typeof t5 ? gi(t5) : t5.isICellRanges ? t5.getCoords() : Array.isArray(t5) ? t5 : [t5];
9546
9550
  const i2 = [], a2 = s2.length;
9547
9551
  for (let t6 = 0; t6 < a2; t6++) {
9548
9552
  const a3 = s2[t6];
9549
- Tu(i2, a3, e2, n2, r2, o2);
9553
+ Nu(i2, a3, e2, n2, r2, o2);
9550
9554
  }
9551
9555
  return i2;
9552
9556
  }, ku = (t5, e2) => {
@@ -9685,7 +9689,7 @@ const fu = (t5) => {
9685
9689
  }
9686
9690
  let d2;
9687
9691
  return r2 ? (d2 = r2, d2.colStart = o2, d2.rowStart = s2, d2.colEnd = i2, d2.rowEnd = a2, d2.$colStart = l2, d2.$rowStart = c2, d2.$colEnd = h2, d2.$rowEnd = u2) : d2 = { colStart: o2, rowStart: s2, colEnd: i2, rowEnd: a2, $colStart: l2, $rowStart: c2, $colEnd: h2, $rowEnd: u2 }, t5.sheetName && (d2.sheetName = t5.sheetName), d2;
9688
- }, qu = (t5, e2, n2, r2) => {
9692
+ }, Ju = (t5, e2, n2, r2) => {
9689
9693
  ju.length = 0;
9690
9694
  let o2 = 0, s2 = t5.replace(su, Wu), i2 = 0, a2 = s2.replace(ru, (t6, a3, l2) => {
9691
9695
  const c2 = zu(t6, e2, n2);
@@ -9707,7 +9711,7 @@ const fu = (t5) => {
9707
9711
  r2.push(t6.replace(iu, (t7, e3) => ju[o2++]));
9708
9712
  }
9709
9713
  return a2 = a2.toUpperCase().replace(ou, ""), a2.replace(iu, Hu);
9710
- }, Ju = "Must specify an address.", Ku = "Only a single range is allowed for this operation. Use 'getRanges' instead.", Xu = "Invalid range. The Range must be specified as '{ TOP_LEFT:BOTTOM_RIGHT }'.", Yu = (t5) => `Invalid address. Can not parse ${"string" == typeof t5 ? `'${t5}' ` : ""}as an address or named item.`, Qu = () => {
9714
+ }, qu = "Must specify an address.", Ku = "Only a single range is allowed for this operation. Use 'getRanges' instead.", Xu = "Invalid range. The Range must be specified as '{ TOP_LEFT:BOTTOM_RIGHT }'.", Yu = (t5) => `Invalid address. Can not parse ${"string" == typeof t5 ? `'${t5}' ` : ""}as an address or named item.`, Qu = () => {
9711
9715
  throw new Error("Invalid range.");
9712
9716
  };
9713
9717
  class Zu {
@@ -9868,7 +9872,7 @@ var id;
9868
9872
  const ad = Object.freeze({ [id.Type.Style]: false, [id.Type.Table]: false, [id.Type.Merge]: false, [id.Type.Hyperlink]: false, [id.Type.Comments]: false, [id.Type.Unlock]: false, [id.Type.Formula]: false, [id.Type.Spill]: false, [id.Type.Pending]: false, [id.Type.CalcError]: false, [id.Type.Contentful]: false, [id.Type.Conditional]: false, [id.Type.Continuous]: false }), ld = Object.freeze({ [id.Type.Style]: false, [id.Type.Table]: false, [id.Type.Merge]: false, [id.Type.Hyperlink]: false, [id.Type.Comments]: false, [id.Type.Unlock]: false, [id.Type.Formula]: false, [id.Type.Spill]: false, [id.Type.Pending]: false, [id.Type.CalcError]: false, [id.Type.Conditional]: false, [id.Type.Continuous]: false }), cd = Object.freeze({ [id.Type.Style]: false, [id.Type.Table]: true, [id.Type.Merge]: false, [id.Type.Hyperlink]: false, [id.Type.Comments]: false, [id.Type.Unlock]: false, [id.Type.Formula]: false }), hd = Object.freeze({ [id.Type.Style]: false, [id.Type.Table]: false, [id.Type.Hyperlink]: false, [id.Type.Comments]: false, [id.Type.Unlock]: false, [id.Type.Contentful]: false, [id.Type.Formula]: false }), ud = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", dd = (t5 = "update") => `Unable to ${t5}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, gd = "The range is outside of the bounds of the sheet.", md = "Listener can not be null", fd = "We can't insert items. The sheet is protected.", pd = (t5) => `We can't create a ${t5} that overlaps with another table or merge.`, _d = "Overlapping ranges can not be merged.", Sd = "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.", wd = "Unable to partially fill over merged cells.", yd = "Unable to sort merged cells unless they are all the same size.", Ed = "Sheet has been closed. No further operations are allowed.", bd = "IteratorContext can only be used during visit.", Cd = "When using addresses directly from the sheet do not include the sheet name.", vd = (t5) => `Unable to return more than ${t5} values. To access values in a more scalable solution use 'ICellRange.forEach' or an iterator.`, xd = "Multiple selection ranges can not be copied.", Id = "Unable to determine source.", Rd = "When pasting before or after the cut area both areas must align.";
9869
9873
  var Ad, Md;
9870
9874
  (Md = Ad || (Ad = {})).CalcStatus = { Ready: "ready", Stale: "stale", Pending: "pending", Streaming: "streaming" }, Md.Content = { Values: "values", Formats: "formats", Formulas: "formula", Hyperlinks: "hyperlinks", Tables: "tables", Notes: "notes", Comments: "comments", Warnings: "warnings", Errors: "errors", Merges: "merges" };
9871
- class Td {
9875
+ class Nd {
9872
9876
  constructor(t5, e2, n2) {
9873
9877
  if (!n2) throw new jt();
9874
9878
  if ("string" == typeof n2 && (n2 = { address: n2 }), "string" != typeof n2.address) throw new Error("Invalid hyperlink");
@@ -9895,7 +9899,7 @@ class Td {
9895
9899
  return true;
9896
9900
  }
9897
9901
  }
9898
- const Nd = (t5) => {
9902
+ const Td = (t5) => {
9899
9903
  if ("string" != typeof t5) return null;
9900
9904
  let r2 = e(t5);
9901
9905
  Array.isArray(r2) && 0 === r2.length && (r2 = null), r2 = r2 ? { "font-family": r2 } : n(t5);
@@ -9921,8 +9925,8 @@ const Nd = (t5) => {
9921
9925
  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;
9922
9926
  }
9923
9927
  return '"' + e2 + '"';
9924
- }, Wd = "Thin", Hd = "Hairline", Vd = "Extra Light", $d = "Ultra Light", Gd = "Light", Ud = "Normal", qd = "Regular", Jd = "Medium", Kd = "Semi Bold", Xd = "Demi Bold", Yd = "Bold", Qd = "Extra Bold", Zd = "Ultra Bold", tg = "Black", eg = "Heavy", ng = "Extra Black", rg = "Ultra Black", og = "lighter", sg = "normal", ig = "bold", ag = "bolder", lg = /* @__PURE__ */ new Map();
9925
- lg.set(bt.textToKey(Wd), 100), lg.set(bt.textToKey(Hd), 100), lg.set(bt.textToKey(Vd), 200), lg.set(bt.textToKey($d), 200), lg.set(bt.textToKey(Gd), 300), lg.set(bt.textToKey(Ud), 400), lg.set(bt.textToKey(qd), 400), lg.set(bt.textToKey(Jd), 500), lg.set(bt.textToKey(Kd), 600), lg.set(bt.textToKey(Xd), 600), lg.set(bt.textToKey(Ud), 400), lg.set(bt.textToKey(Yd), 700), lg.set(bt.textToKey(Qd), 800), lg.set(bt.textToKey(Zd), 800), lg.set(bt.textToKey(tg), 900), lg.set(bt.textToKey(eg), 900), lg.set(bt.textToKey(ng), 950), lg.set(bt.textToKey(rg), 950), lg.set(bt.textToKey(og), 100), lg.set(bt.textToKey(sg), 400), lg.set(bt.textToKey(ig), 700), lg.set(bt.textToKey(ag), 700);
9928
+ }, Wd = "Thin", Hd = "Hairline", Vd = "Extra Light", $d = "Ultra Light", Gd = "Light", Ud = "Normal", Jd = "Regular", qd = "Medium", Kd = "Semi Bold", Xd = "Demi Bold", Yd = "Bold", Qd = "Extra Bold", Zd = "Ultra Bold", tg = "Black", eg = "Heavy", ng = "Extra Black", rg = "Ultra Black", og = "lighter", sg = "normal", ig = "bold", ag = "bolder", lg = /* @__PURE__ */ new Map();
9929
+ lg.set(bt.textToKey(Wd), 100), lg.set(bt.textToKey(Hd), 100), lg.set(bt.textToKey(Vd), 200), lg.set(bt.textToKey($d), 200), lg.set(bt.textToKey(Gd), 300), lg.set(bt.textToKey(Ud), 400), lg.set(bt.textToKey(Jd), 400), lg.set(bt.textToKey(qd), 500), lg.set(bt.textToKey(Kd), 600), lg.set(bt.textToKey(Xd), 600), lg.set(bt.textToKey(Ud), 400), lg.set(bt.textToKey(Yd), 700), lg.set(bt.textToKey(Qd), 800), lg.set(bt.textToKey(Zd), 800), lg.set(bt.textToKey(tg), 900), lg.set(bt.textToKey(eg), 900), lg.set(bt.textToKey(ng), 950), lg.set(bt.textToKey(rg), 950), lg.set(bt.textToKey(og), 100), lg.set(bt.textToKey(sg), 400), lg.set(bt.textToKey(ig), 700), lg.set(bt.textToKey(ag), 700);
9926
9930
  const cg = "xx-small", hg = "x-small", ug = "small", dg = "medium", gg = "large", mg = "x-large", fg = "xx-large", pg = "xxx-large", _g = "smaller", Sg = "larger", wg = "math", yg = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), Eg = /* @__PURE__ */ new Map();
9927
9931
  Eg.set(bt.textToKey(cg), (t5) => 0.4 * t5), Eg.set(bt.textToKey(hg), (t5) => 0.5 * t5), Eg.set(bt.textToKey(ug), (t5) => 0.6 * t5), Eg.set(bt.textToKey(dg), (t5) => t5), Eg.set(bt.textToKey(gg), (t5) => 1.1 * t5), Eg.set(bt.textToKey(mg), (t5) => 1.25 * t5), Eg.set(bt.textToKey(fg), (t5) => 1.5 * t5), Eg.set(bt.textToKey(pg), (t5) => 2 * t5), Eg.set(bt.textToKey(_g), (t5) => 0.9 * t5), Eg.set(bt.textToKey(Sg), (t5) => 1.1 * t5), Eg.set(bt.textToKey(wg), (t5) => t5);
9928
9932
  const bg = (t5, e2 = 11, n2 = "pt") => {
@@ -9987,8 +9991,8 @@ const Ig = new RegExp(`(\\s*(?:${vg}))`, "g"), Rg = (t5) => {
9987
9991
  }
9988
9992
  return `linear-gradient(${o2}deg, ${r2})`;
9989
9993
  }, Mg = /* @__PURE__ */ new Map();
9990
- Mg.set(Na.StrokeStyle.None, { size: null, cssKey: "none" }), Mg.set(Na.StrokeStyle.DashDot, { size: 0.5, cssKey: "dot-dash" }), Mg.set(Na.StrokeStyle.DashDotDot, { size: 0.5, cssKey: "dot-dot-dash" }), Mg.set(Na.StrokeStyle.Dashed, { size: 0.5, cssKey: "dashed" }), Mg.set(Na.StrokeStyle.MediumDashed, { size: 1, cssKey: "dashed" }), Mg.set(Na.StrokeStyle.Dotted, { size: 0.5, cssKey: "dotted" }), Mg.set(Na.StrokeStyle.MediumDashDot, { size: 1, cssKey: "dot-dash" }), Mg.set(Na.StrokeStyle.MediumDashDotDot, { size: 1, cssKey: "dot-dot-dash" }), Mg.set(Na.StrokeStyle.Hair, { size: 0.5, cssKey: "hairline" }), Mg.set(Na.StrokeStyle.Thin, { size: 0.5, cssKey: "solid" }), Mg.set(Na.StrokeStyle.Thick, { size: 1.5, cssKey: "solid" }), Mg.set(Na.StrokeStyle.Medium, { size: 1, cssKey: "solid" }), Mg.set(Na.StrokeStyle.Double, { size: 2, cssKey: "double" }), Mg.set(Na.StrokeStyle.SlantDashDot, { size: 1, cssKey: "dot-dash-slanted" });
9991
- const Tg = (t5) => {
9994
+ Mg.set(Ta.StrokeStyle.None, { size: null, cssKey: "none" }), Mg.set(Ta.StrokeStyle.DashDot, { size: 0.5, cssKey: "dot-dash" }), Mg.set(Ta.StrokeStyle.DashDotDot, { size: 0.5, cssKey: "dot-dot-dash" }), Mg.set(Ta.StrokeStyle.Dashed, { size: 0.5, cssKey: "dashed" }), Mg.set(Ta.StrokeStyle.MediumDashed, { size: 1, cssKey: "dashed" }), Mg.set(Ta.StrokeStyle.Dotted, { size: 0.5, cssKey: "dotted" }), Mg.set(Ta.StrokeStyle.MediumDashDot, { size: 1, cssKey: "dot-dash" }), Mg.set(Ta.StrokeStyle.MediumDashDotDot, { size: 1, cssKey: "dot-dot-dash" }), Mg.set(Ta.StrokeStyle.Hair, { size: 0.5, cssKey: "hairline" }), Mg.set(Ta.StrokeStyle.Thin, { size: 0.5, cssKey: "solid" }), Mg.set(Ta.StrokeStyle.Thick, { size: 1.5, cssKey: "solid" }), Mg.set(Ta.StrokeStyle.Medium, { size: 1, cssKey: "solid" }), Mg.set(Ta.StrokeStyle.Double, { size: 2, cssKey: "double" }), Mg.set(Ta.StrokeStyle.SlantDashDot, { size: 1, cssKey: "dot-dash-slanted" });
9995
+ const Ng = (t5) => {
9992
9996
  if (!t5) return "none";
9993
9997
  const e2 = Mg.get(t5.getStyle());
9994
9998
  if (!e2) return null;
@@ -9997,19 +10001,19 @@ const Tg = (t5) => {
9997
10001
  n2 = n2 ? " " + n2 : "";
9998
10002
  return `${null !== e2.size ? `${e2.size}pt ` : ""}${e2.cssKey}${n2}`;
9999
10003
  };
10000
- let Ng = [];
10004
+ let Tg = [];
10001
10005
  const kg = /* @__PURE__ */ new Set(), Fg = /* @__PURE__ */ new Map(), Og = (t5, e2) => {
10002
10006
  let n2 = null !== t5.size ? `${t5.size.toString()} ${t5.cssKey}` : t5.cssKey;
10003
- Fg.set(n2, e2), kg.has(t5.cssKey) || (Ng.push(t5.cssKey), kg.add(t5.cssKey));
10007
+ Fg.set(n2, e2), kg.has(t5.cssKey) || (Tg.push(t5.cssKey), kg.add(t5.cssKey));
10004
10008
  };
10005
10009
  Mg.forEach(Og);
10006
- const Dg = Object.keys(Na.StrokeStyle);
10010
+ const Dg = Object.keys(Ta.StrokeStyle);
10007
10011
  for (let t5 = 0; t5 < Dg.length; t5++) {
10008
- Og({ size: null, cssKey: Dg[t5].toLowerCase() }, Na.StrokeStyle[Dg[t5]]);
10012
+ Og({ size: null, cssKey: Dg[t5].toLowerCase() }, Ta.StrokeStyle[Dg[t5]]);
10009
10013
  }
10010
- Og({ size: null, cssKey: "double" }, Na.StrokeStyle.Double), Og({ size: null, cssKey: "solid" }, Na.StrokeStyle.Medium), Og({ size: null, cssKey: "hidden" }, Na.StrokeStyle.None), Ng.sort((t5, e2) => e2.length - t5.length);
10014
+ Og({ size: null, cssKey: "double" }, Ta.StrokeStyle.Double), Og({ size: null, cssKey: "solid" }, Ta.StrokeStyle.Medium), Og({ size: null, cssKey: "hidden" }, Ta.StrokeStyle.None), Tg.sort((t5, e2) => e2.length - t5.length);
10011
10015
  let Lg = "";
10012
- for (let t5 = 0; t5 < Ng.length; t5++) Lg.length > 0 && (Lg += "|"), Lg += "\\b" + Ng[t5] + "\\b";
10016
+ for (let t5 = 0; t5 < Tg.length; t5++) Lg.length > 0 && (Lg += "|"), Lg += "\\b" + Tg[t5] + "\\b";
10013
10017
  const Bg = new RegExp(`(\\s*(?:${Lg}))`, "g"), Pg = new RegExp("(\\s*[0-9]*[.]?[0-9]+(?:pt|px){0,1})", "g"), zg = (t5) => {
10014
10018
  if (!t5) return null;
10015
10019
  let e2 = t5.toLowerCase(), n2 = e2.match(Bg);
@@ -10030,12 +10034,12 @@ const Bg = new RegExp(`(\\s*(?:${Lg}))`, "g"), Pg = new RegExp("(\\s*[0-9]*[.]?[
10030
10034
  const i2 = e2 ? e2.trim() : null;
10031
10035
  let a2 = null === s2 ? o2 : `${s2.toString()} ${o2}`, l2 = Fg.get(a2);
10032
10036
  return l2 || (l2 = Fg.get(o2)), l2 ? { color: i2, style: l2 } : null;
10033
- }, jg = "start", Wg = "end", Hg = "left", Vg = "right", $g = "center", Gg = "justify", Ug = "justify-all", qg = "baseline", Jg = "top", Kg = "middle", Xg = "bottom", Yg = "sub", Qg = "text-top", Zg = "justify", tm = "distributed", em = /* @__PURE__ */ new Map();
10037
+ }, jg = "start", Wg = "end", Hg = "left", Vg = "right", $g = "center", Gg = "justify", Ug = "justify-all", Jg = "baseline", qg = "top", Kg = "middle", Xg = "bottom", Yg = "sub", Qg = "text-top", Zg = "justify", tm = "distributed", em = /* @__PURE__ */ new Map();
10034
10038
  em.set(bt.textToKey(jg), Zs.HorizontalAlignment.Left), em.set(bt.textToKey(Hg), Zs.HorizontalAlignment.Left), em.set(bt.textToKey(Wg), Zs.HorizontalAlignment.Right), em.set(bt.textToKey(Vg), Zs.HorizontalAlignment.Right), em.set(bt.textToKey($g), Zs.HorizontalAlignment.Center), em.set(bt.textToKey(Gg), Zs.HorizontalAlignment.Justify), em.set(bt.textToKey(Ug), Zs.HorizontalAlignment.Justify);
10035
10039
  const nm = /* @__PURE__ */ new Map();
10036
- nm.set(bt.textToKey(qg), Zs.VerticalAlignment.Bottom), nm.set(bt.textToKey(Jg), Zs.VerticalAlignment.Top), nm.set(bt.textToKey(Kg), Zs.VerticalAlignment.Center), nm.set(bt.textToKey(Xg), Zs.VerticalAlignment.Bottom), nm.set(bt.textToKey(Yg), Zs.VerticalAlignment.Bottom), nm.set(bt.textToKey(Qg), Zs.VerticalAlignment.Top), nm.set(bt.textToKey(Zg), Zs.VerticalAlignment.Justify), nm.set(bt.textToKey(tm), Zs.VerticalAlignment.Distributed);
10040
+ nm.set(bt.textToKey(Jg), Zs.VerticalAlignment.Bottom), nm.set(bt.textToKey(qg), Zs.VerticalAlignment.Top), nm.set(bt.textToKey(Kg), Zs.VerticalAlignment.Center), nm.set(bt.textToKey(Xg), Zs.VerticalAlignment.Bottom), nm.set(bt.textToKey(Yg), Zs.VerticalAlignment.Bottom), nm.set(bt.textToKey(Qg), Zs.VerticalAlignment.Top), nm.set(bt.textToKey(Zg), Zs.VerticalAlignment.Justify), nm.set(bt.textToKey(tm), Zs.VerticalAlignment.Distributed);
10037
10041
  const rm = (t5, e2) => {
10038
- if (t5 instanceof Ta) return { color: t5 };
10042
+ if (t5 instanceof Na) return { color: t5 };
10039
10043
  if ("string" == typeof t5) try {
10040
10044
  return { color: "none" === t5 || "transparent" === t5 ? null : e2(t5) };
10041
10045
  } catch (t6) {
@@ -10074,16 +10078,16 @@ const rm = (t5, e2) => {
10074
10078
  return t5;
10075
10079
  }, getSubType: (t5) => t5.type === ma.Type.None ? im : t5.type === ma.Type.Solid ? am : t5.type === ma.Type.Gradient ? lm : t5.type === ma.Type.Pattern ? cm : null }, um = { properties: { font: { shorthand: (t5, e2) => {
10076
10080
  if ("string" == typeof t5) {
10077
- const e3 = Nd(t5);
10081
+ const e3 = Td(t5);
10078
10082
  if (e3) {
10079
10083
  const t6 = {};
10080
10084
  if (e3.family && (t6.family = e3.family), e3.fallbacks && (t6.fallbacks = e3.fallbacks), e3.size && (t6.size = bg(e3.size)), Object.keys(e3).length > 0) return t6;
10081
10085
  }
10082
10086
  }
10083
10087
  return t5;
10084
- }, properties: { family: { shorthand: (t5, e2) => Nd(t5)?.family ?? null }, fallbacks: { shorthand: (t5, e2) => {
10088
+ }, properties: { family: { shorthand: (t5, e2) => Td(t5)?.family ?? null }, fallbacks: { shorthand: (t5, e2) => {
10085
10089
  if ("string" != typeof t5) return t5;
10086
- let n2 = Nd(t5);
10090
+ let n2 = Td(t5);
10087
10091
  if (!n2) return null;
10088
10092
  let r2 = [n2.family];
10089
10093
  return n2.fallbacks && (r2 = r2.concat(n2.fallbacks)), r2;
@@ -10182,8 +10186,8 @@ const rm = (t5, e2) => {
10182
10186
  }
10183
10187
  const b2 = Is(r2, t5), C2 = { displayText: a2 ?? "", conditionalColor: b2 ? o2(b2) : null, repeatChars: c2 ?? bt.EmptyArray, spacingChars: h2 ?? bt.EmptyArray, repeatPlaceholder: l2, formattedRuns: m2, canWrap: w2, asDate: g2, isDateFormat: u2, isTimeFormat: d2, isDate1904: i2 };
10184
10188
  return Object.freeze(C2);
10185
- }, fm = Object.freeze({ fallbacks: bt.EmptyArray, weight: 400, style: Ai.Style.Normal, fill: pa.Scheme.Tx1, letterSpacing: null, underline: Ai.UnderlineStyle.None, strike: false, scheme: Ai.Scheme.Minor, verticalAlign: Ai.VerticalAlignment.Baseline, shadow: false, outline: false, extend: false }), pm = Object.freeze({ style: Na.StrokeStyle.None, color: pa.Scheme.Tx1 }), _m = Object.freeze({ [Na.Edge.Top]: pm, [Na.Edge.Left]: pm, [Na.Edge.Bottom]: pm, [Na.Edge.Right]: pm, [Na.Edge.Horizontal]: pm, [Na.Edge.Vertical]: pm, [Na.Edge.DiagonalUp]: pm, [Na.Edge.DiagonalDown]: pm }), Sm = Object.freeze({ horizontal: Zs.HorizontalAlignment.General, vertical: Zs.VerticalAlignment.Bottom, indent: 0, relativeIndent: 0, overflow: Zs.Overflow.Visible, rotation: 0, stacked: false, quotePrefix: false, justifyLastLine: false, readingOrder: Zs.ReadingDirection.Auto, readingDirection: Zs.ReadingDirection.Auto }), wm = Object.freeze({ locked: false, formulaHidden: false }), ym = Object.freeze({ fill: { type: ma.Type.None }, numberFormat: "General", alignment: Sm, font: fm, border: _m, protection: wm, quotePrefix: false, namedStyle: null }), Em = (() => {
10186
- const t5 = [{ named: Ya.BuiltInName.Normal }, { named: Ya.BuiltInName.RowLevel }, { named: Ya.BuiltInName.ColLevel }, { named: Ya.BuiltInName.Comma, numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' }, { named: Ya.BuiltInName.Currency, numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' }, { named: Ya.BuiltInName.Percent, numberFormat: "0%" }, { named: Ya.BuiltInName.Comma0, numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)' }, { named: Ya.BuiltInName.Currency0, numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)' }, { named: Ya.BuiltInName.Hyperlink, font: { ...fm, fill: pa.Scheme.Hlink, underline: Ai.UnderlineStyle.Single } }, { named: Ya.BuiltInName.FollowedHyperlink, font: { ...fm, fill: pa.Scheme.FolHlink, underline: Ai.UnderlineStyle.Single } }, { named: Ya.BuiltInName.Note, fill: "FFFFFFCC", font: { ...fm, style: Ai.Style.Normal, fill: pa.Scheme.Tx1 }, border: { left: { style: Na.StrokeStyle.Thin, color: "FFB2B2B2" }, top: { style: Na.StrokeStyle.Thin, color: "FFB2B2B2" }, right: { style: Na.StrokeStyle.Thin, color: "FFB2B2B2" }, bottom: { style: Na.StrokeStyle.Thin, color: "FFB2B2B2" } } }, { named: Ya.BuiltInName.WarningText, font: { ...fm, fill: "FFFF0000" } }, { named: Ya.BuiltInName.Unknown12 }, { named: Ya.BuiltInName.Unknown13 }, { named: Ya.BuiltInName.Unknown14 }, { named: Ya.BuiltInName.Title, font: { ...fm, size: 18, fill: pa.Scheme.Tx2 } }, { named: Ya.BuiltInName.Heading1, font: { ...fm, size: 15, weight: "bold", fill: pa.Scheme.Tx2 }, border: { bottom: { style: Na.StrokeStyle.Thick, color: pa.Scheme.Accent1 } } }, { named: Ya.BuiltInName.Heading2, font: { ...fm, size: 13, weight: "bold", fill: pa.Scheme.Tx2 }, border: { bottom: { style: Na.StrokeStyle.Thick, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Ya.BuiltInName.Heading3, font: { ...fm, weight: "bold", fill: pa.Scheme.Tx2 }, border: { bottom: { style: Na.StrokeStyle.Medium, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Ya.BuiltInName.Heading4, font: { weight: "bold", fill: pa.Scheme.Tx2, ...fm } }, { named: Ya.BuiltInName.Input, fill: "FFFFCC99", font: { ...fm, fill: "FF3F3F76" }, border: { left: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Ya.BuiltInName.Output, fill: "FFF2F2F2", font: { ...fm, fill: "FF3F3F3F" }, border: { left: { style: Na.StrokeStyle.Thin, color: "FF3F3F3F" }, top: { style: Na.StrokeStyle.Thin, color: "FF3F3F3F" }, right: { style: Na.StrokeStyle.Thin, color: "FF3F3F3F" }, bottom: { style: Na.StrokeStyle.Thin, color: "FF3F3F3F" } } }, { named: Ya.BuiltInName.Calculation, fill: "FFF2F2F2", font: { ...fm, fill: "FFFA7D00" }, border: { left: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Ya.BuiltInName.CheckCell, fill: "FFA5A5A5", font: { ...fm, fill: pa.Scheme.Bg1 }, border: { left: { style: Na.StrokeStyle.Double, color: "FF3F3F3F" }, top: { style: Na.StrokeStyle.Double, color: "FF3F3F3F" }, right: { style: Na.StrokeStyle.Double, color: "FF3F3F3F" }, bottom: { style: Na.StrokeStyle.Double, color: "FF3F3F3F" } } }, { named: Ya.BuiltInName.LinkedCell, font: { ...fm, fill: "FFFA7D00" }, border: { bottom: { style: Na.StrokeStyle.Double, color: "FFFF8001" } } }, { named: Ya.BuiltInName.Total, font: { ...fm, weight: "bold", fill: pa.Scheme.Tx1 }, border: { top: { style: Na.StrokeStyle.Thin, color: pa.Scheme.Accent1 }, bottom: { style: Na.StrokeStyle.Double, color: pa.Scheme.Accent1 } } }, { named: Ya.BuiltInName.Good, fill: "FFC6EFCE", font: { ...fm, fill: "FF006100" } }, { named: Ya.BuiltInName.Bad, fill: "FFFFC7CE", font: { ...fm, fill: "FF9C0006" } }, { named: Ya.BuiltInName.Neutral, fill: "FFFFEB9C", font: { ...fm, fill: "FF9C5700" } }, { named: Ya.BuiltInName.Accent1 }, { named: Ya.BuiltInName.Accent1_20 }, { named: Ya.BuiltInName.Accent1_40 }, { named: Ya.BuiltInName.Accent1_60 }, { named: Ya.BuiltInName.Accent2 }, { named: Ya.BuiltInName.Accent2_20 }, { named: Ya.BuiltInName.Accent2_40 }, { named: Ya.BuiltInName.Accent2_60 }, { named: Ya.BuiltInName.Accent3 }, { named: Ya.BuiltInName.Accent3_20 }, { named: Ya.BuiltInName.Accent3_40 }, { named: Ya.BuiltInName.Accent3_60 }, { named: Ya.BuiltInName.Accent4 }, { named: Ya.BuiltInName.Accent4_20 }, { named: Ya.BuiltInName.Accent4_40 }, { named: Ya.BuiltInName.Accent4_60 }, { named: Ya.BuiltInName.Accent5 }, { named: Ya.BuiltInName.Accent5_20 }, { named: Ya.BuiltInName.Accent5_40 }, { named: Ya.BuiltInName.Accent5_60 }, { named: Ya.BuiltInName.Accent6 }, { named: Ya.BuiltInName.Accent6_20 }, { named: Ya.BuiltInName.Accent6_40 }, { named: Ya.BuiltInName.Accent6_60 }, { named: Ya.BuiltInName.ExplanatoryText, font: { ...fm, style: Ai.Style.Italic, fill: "FF7F7F7F" } }];
10189
+ }, fm = Object.freeze({ fallbacks: bt.EmptyArray, weight: 400, style: Ai.Style.Normal, fill: pa.Scheme.Tx1, letterSpacing: null, underline: Ai.UnderlineStyle.None, strike: false, scheme: Ai.Scheme.Minor, verticalAlign: Ai.VerticalAlignment.Baseline, shadow: false, outline: false, extend: false }), pm = Object.freeze({ style: Ta.StrokeStyle.None, color: pa.Scheme.Tx1 }), _m = Object.freeze({ [Ta.Edge.Top]: pm, [Ta.Edge.Left]: pm, [Ta.Edge.Bottom]: pm, [Ta.Edge.Right]: pm, [Ta.Edge.Horizontal]: pm, [Ta.Edge.Vertical]: pm, [Ta.Edge.DiagonalUp]: pm, [Ta.Edge.DiagonalDown]: pm }), Sm = Object.freeze({ horizontal: Zs.HorizontalAlignment.General, vertical: Zs.VerticalAlignment.Bottom, indent: 0, relativeIndent: 0, overflow: Zs.Overflow.Visible, rotation: 0, stacked: false, quotePrefix: false, justifyLastLine: false, readingOrder: Zs.ReadingDirection.Auto, readingDirection: Zs.ReadingDirection.Auto }), wm = Object.freeze({ locked: false, formulaHidden: false }), ym = Object.freeze({ fill: { type: ma.Type.None }, numberFormat: "General", alignment: Sm, font: fm, border: _m, protection: wm, quotePrefix: false, namedStyle: null }), Em = (() => {
10190
+ const t5 = [{ named: Ya.BuiltInName.Normal }, { named: Ya.BuiltInName.RowLevel }, { named: Ya.BuiltInName.ColLevel }, { named: Ya.BuiltInName.Comma, numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' }, { named: Ya.BuiltInName.Currency, numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' }, { named: Ya.BuiltInName.Percent, numberFormat: "0%" }, { named: Ya.BuiltInName.Comma0, numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)' }, { named: Ya.BuiltInName.Currency0, numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)' }, { named: Ya.BuiltInName.Hyperlink, font: { ...fm, fill: pa.Scheme.Hlink, underline: Ai.UnderlineStyle.Single } }, { named: Ya.BuiltInName.FollowedHyperlink, font: { ...fm, fill: pa.Scheme.FolHlink, underline: Ai.UnderlineStyle.Single } }, { named: Ya.BuiltInName.Note, fill: "FFFFFFCC", font: { ...fm, style: Ai.Style.Normal, fill: pa.Scheme.Tx1 }, border: { left: { style: Ta.StrokeStyle.Thin, color: "FFB2B2B2" }, top: { style: Ta.StrokeStyle.Thin, color: "FFB2B2B2" }, right: { style: Ta.StrokeStyle.Thin, color: "FFB2B2B2" }, bottom: { style: Ta.StrokeStyle.Thin, color: "FFB2B2B2" } } }, { named: Ya.BuiltInName.WarningText, font: { ...fm, fill: "FFFF0000" } }, { named: Ya.BuiltInName.Unknown12 }, { named: Ya.BuiltInName.Unknown13 }, { named: Ya.BuiltInName.Unknown14 }, { named: Ya.BuiltInName.Title, font: { ...fm, size: 18, fill: pa.Scheme.Tx2 } }, { named: Ya.BuiltInName.Heading1, font: { ...fm, size: 15, weight: "bold", fill: pa.Scheme.Tx2 }, border: { bottom: { style: Ta.StrokeStyle.Thick, color: pa.Scheme.Accent1 } } }, { named: Ya.BuiltInName.Heading2, font: { ...fm, size: 13, weight: "bold", fill: pa.Scheme.Tx2 }, border: { bottom: { style: Ta.StrokeStyle.Thick, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Ya.BuiltInName.Heading3, font: { ...fm, weight: "bold", fill: pa.Scheme.Tx2 }, border: { bottom: { style: Ta.StrokeStyle.Medium, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Ya.BuiltInName.Heading4, font: { weight: "bold", fill: pa.Scheme.Tx2, ...fm } }, { named: Ya.BuiltInName.Input, fill: "FFFFCC99", font: { ...fm, fill: "FF3F3F76" }, border: { left: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Ya.BuiltInName.Output, fill: "FFF2F2F2", font: { ...fm, fill: "FF3F3F3F" }, border: { left: { style: Ta.StrokeStyle.Thin, color: "FF3F3F3F" }, top: { style: Ta.StrokeStyle.Thin, color: "FF3F3F3F" }, right: { style: Ta.StrokeStyle.Thin, color: "FF3F3F3F" }, bottom: { style: Ta.StrokeStyle.Thin, color: "FF3F3F3F" } } }, { named: Ya.BuiltInName.Calculation, fill: "FFF2F2F2", font: { ...fm, fill: "FFFA7D00" }, border: { left: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Ya.BuiltInName.CheckCell, fill: "FFA5A5A5", font: { ...fm, fill: pa.Scheme.Bg1 }, border: { left: { style: Ta.StrokeStyle.Double, color: "FF3F3F3F" }, top: { style: Ta.StrokeStyle.Double, color: "FF3F3F3F" }, right: { style: Ta.StrokeStyle.Double, color: "FF3F3F3F" }, bottom: { style: Ta.StrokeStyle.Double, color: "FF3F3F3F" } } }, { named: Ya.BuiltInName.LinkedCell, font: { ...fm, fill: "FFFA7D00" }, border: { bottom: { style: Ta.StrokeStyle.Double, color: "FFFF8001" } } }, { named: Ya.BuiltInName.Total, font: { ...fm, weight: "bold", fill: pa.Scheme.Tx1 }, border: { top: { style: Ta.StrokeStyle.Thin, color: pa.Scheme.Accent1 }, bottom: { style: Ta.StrokeStyle.Double, color: pa.Scheme.Accent1 } } }, { named: Ya.BuiltInName.Good, fill: "FFC6EFCE", font: { ...fm, fill: "FF006100" } }, { named: Ya.BuiltInName.Bad, fill: "FFFFC7CE", font: { ...fm, fill: "FF9C0006" } }, { named: Ya.BuiltInName.Neutral, fill: "FFFFEB9C", font: { ...fm, fill: "FF9C5700" } }, { named: Ya.BuiltInName.Accent1 }, { named: Ya.BuiltInName.Accent1_20 }, { named: Ya.BuiltInName.Accent1_40 }, { named: Ya.BuiltInName.Accent1_60 }, { named: Ya.BuiltInName.Accent2 }, { named: Ya.BuiltInName.Accent2_20 }, { named: Ya.BuiltInName.Accent2_40 }, { named: Ya.BuiltInName.Accent2_60 }, { named: Ya.BuiltInName.Accent3 }, { named: Ya.BuiltInName.Accent3_20 }, { named: Ya.BuiltInName.Accent3_40 }, { named: Ya.BuiltInName.Accent3_60 }, { named: Ya.BuiltInName.Accent4 }, { named: Ya.BuiltInName.Accent4_20 }, { named: Ya.BuiltInName.Accent4_40 }, { named: Ya.BuiltInName.Accent4_60 }, { named: Ya.BuiltInName.Accent5 }, { named: Ya.BuiltInName.Accent5_20 }, { named: Ya.BuiltInName.Accent5_40 }, { named: Ya.BuiltInName.Accent5_60 }, { named: Ya.BuiltInName.Accent6 }, { named: Ya.BuiltInName.Accent6_20 }, { named: Ya.BuiltInName.Accent6_40 }, { named: Ya.BuiltInName.Accent6_60 }, { named: Ya.BuiltInName.ExplanatoryText, font: { ...fm, style: Ai.Style.Italic, fill: "FF7F7F7F" } }];
10187
10191
  for (let e2 = 29; e2 <= 52; e2++) {
10188
10192
  const n2 = (e2 - 29) % 4, r2 = Math.floor((e2 - 29) / 4);
10189
10193
  let o2 = "";
@@ -10284,21 +10288,21 @@ class Im extends xm {
10284
10288
  return t5 ? this._c.parseColor(t5) : null;
10285
10289
  }
10286
10290
  isNone() {
10287
- return this.getStyle() === Na.StrokeStyle.None;
10291
+ return this.getStyle() === Ta.StrokeStyle.None;
10288
10292
  }
10289
10293
  toCSS() {
10290
- const t5 = Tg(this);
10294
+ const t5 = Ng(this);
10291
10295
  switch (this._edge) {
10292
- case Na.Edge.Left:
10296
+ case Ta.Edge.Left:
10293
10297
  return { borderLeft: t5 };
10294
- case Na.Edge.Right:
10298
+ case Ta.Edge.Right:
10295
10299
  return { borderRight: t5 };
10296
- case Na.Edge.Top:
10300
+ case Ta.Edge.Top:
10297
10301
  return { borderTop: t5 };
10298
- case Na.Edge.Bottom:
10302
+ case Ta.Edge.Bottom:
10299
10303
  return { borderBottom: t5 };
10300
- case Na.Edge.DiagonalUp:
10301
- case Na.Edge.DiagonalDown:
10304
+ case Ta.Edge.DiagonalUp:
10305
+ case Ta.Edge.DiagonalDown:
10302
10306
  return { borderDiagonalUp: t5 };
10303
10307
  }
10304
10308
  }
@@ -10308,22 +10312,22 @@ class Im extends xm {
10308
10312
  }
10309
10313
  class Rm extends xm {
10310
10314
  getLeft() {
10311
- return new Im(Na.Edge.Left, this._c, this._values(Na.Edge.Left));
10315
+ return new Im(Ta.Edge.Left, this._c, this._values(Ta.Edge.Left));
10312
10316
  }
10313
10317
  getRight() {
10314
- return new Im(Na.Edge.Right, this._c, this._values(Na.Edge.Right));
10318
+ return new Im(Ta.Edge.Right, this._c, this._values(Ta.Edge.Right));
10315
10319
  }
10316
10320
  getTop() {
10317
- return new Im(Na.Edge.Top, this._c, this._values(Na.Edge.Top));
10321
+ return new Im(Ta.Edge.Top, this._c, this._values(Ta.Edge.Top));
10318
10322
  }
10319
10323
  getBottom() {
10320
- return new Im(Na.Edge.Bottom, this._c, this._values(Na.Edge.Bottom));
10324
+ return new Im(Ta.Edge.Bottom, this._c, this._values(Ta.Edge.Bottom));
10321
10325
  }
10322
10326
  getDiagonalUp() {
10323
- return new Im(Na.Edge.DiagonalUp, this._c, this._values(Na.Edge.DiagonalUp));
10327
+ return new Im(Ta.Edge.DiagonalUp, this._c, this._values(Ta.Edge.DiagonalUp));
10324
10328
  }
10325
10329
  getDiagonalDown() {
10326
- return new Im(Na.Edge.DiagonalDown, this._c, this._values(Na.Edge.DiagonalDown));
10330
+ return new Im(Ta.Edge.DiagonalDown, this._c, this._values(Ta.Edge.DiagonalDown));
10327
10331
  }
10328
10332
  isEmpty() {
10329
10333
  return false;
@@ -10439,13 +10443,13 @@ class Mm extends xm {
10439
10443
  return true;
10440
10444
  }
10441
10445
  }
10442
- const Tm = Object.freeze({ background: "none" });
10443
- class Nm extends xm {
10446
+ const Nm = Object.freeze({ background: "none" });
10447
+ class Tm extends xm {
10444
10448
  getType() {
10445
10449
  return ma.Type.None;
10446
10450
  }
10447
10451
  toCSS(t5) {
10448
- return Tm;
10452
+ return Nm;
10449
10453
  }
10450
10454
  toJSON() {
10451
10455
  return { type: ma.Type.None };
@@ -10562,7 +10566,7 @@ class Lm {
10562
10566
  return Ai.getSharedMeasurer()(t5, e2 * Ai.getDeviceScale(), i2, { isBold: o2.getWeight() > 400, isItalic: o2.getStyle().includes("italic"), letterSpacing: o2.getLetterSpacing(), ...r2 });
10563
10567
  }
10564
10568
  createTemporaryTextFrame(t5, e2 = false) {
10565
- return Ji(t5, this.getFont(), this.getAlignment(), e2);
10569
+ return qi(t5, this.getFont(), this.getAlignment(), e2);
10566
10570
  }
10567
10571
  getBestFit() {
10568
10572
  if (void 0 !== this._bestFit) return this._bestFit;
@@ -10585,7 +10589,7 @@ class Lm {
10585
10589
  getFill() {
10586
10590
  const t5 = this._p;
10587
10591
  let e2 = t5.values("fill"), n2 = t5.value("fill");
10588
- return n2.type === ma.Type.None ? new Nm(this._c, e2) : n2.type === ma.Type.Solid || !n2.type && n2.color ? new km(this._c, e2) : n2.type === ma.Type.Gradient ? new Om(this._c, e2) : n2.type === ma.Type.Pattern ? new Dm(this._c, e2) : new Nm(this._c, e2);
10592
+ return n2.type === ma.Type.None ? new Tm(this._c, e2) : n2.type === ma.Type.Solid || !n2.type && n2.color ? new km(this._c, e2) : n2.type === ma.Type.Gradient ? new Om(this._c, e2) : n2.type === ma.Type.Pattern ? new Dm(this._c, e2) : new Tm(this._c, e2);
10589
10593
  }
10590
10594
  getAlignment() {
10591
10595
  return new Am(this._c, this._p.values("alignment"));
@@ -10691,13 +10695,13 @@ class jm {
10691
10695
  if (c2 && !h2 || h2 && !c2) return;
10692
10696
  const u2 = this._c;
10693
10697
  if (c2 || h2) {
10694
- const n3 = r2 ? Na.Edge.Top : Na.Edge.Left, s3 = r2 ? Na.Edge.Bottom : Na.Edge.Right;
10698
+ const n3 = r2 ? Ta.Edge.Top : Ta.Edge.Left, s3 = r2 ? Ta.Edge.Bottom : Ta.Edge.Right;
10695
10699
  if (!zm(c2[n3], h2[n3]) || !zm(c2[s3], h2[s3])) return;
10696
- const i2 = this._r, a3 = t5._r, l3 = 1 + (r2 ? i2.rowEnd - i2.rowStart : i2.colEnd - i2.colStart), d2 = 1 + (r2 ? i2.colEnd - i2.colStart : i2.rowEnd - i2.rowStart), g2 = 1 + (r2 ? a3.colEnd - a3.colStart : a3.rowEnd - a3.rowStart), m2 = r2 ? Na.Edge.Horizontal : Na.Edge.Vertical;
10700
+ const i2 = this._r, a3 = t5._r, l3 = 1 + (r2 ? i2.rowEnd - i2.rowStart : i2.colEnd - i2.colStart), d2 = 1 + (r2 ? i2.colEnd - i2.colStart : i2.rowEnd - i2.rowStart), g2 = 1 + (r2 ? a3.colEnd - a3.colStart : a3.rowEnd - a3.rowStart), m2 = r2 ? Ta.Edge.Horizontal : Ta.Edge.Vertical;
10697
10701
  if (l3 > 1 && !zm(c2[m2], h2[m2])) return;
10698
- const f2 = r2 ? Na.Edge.Right : Na.Edge.Bottom, p2 = r2 ? Na.Edge.Left : Na.Edge.Top;
10702
+ const f2 = r2 ? Ta.Edge.Right : Ta.Edge.Bottom, p2 = r2 ? Ta.Edge.Left : Ta.Edge.Top;
10699
10703
  if (!zm(c2[f2], h2[p2])) return;
10700
- const _2 = r2 ? Na.Edge.Vertical : Na.Edge.Horizontal, S2 = c2[f2];
10704
+ const _2 = r2 ? Ta.Edge.Vertical : Ta.Edge.Horizontal, S2 = c2[f2];
10701
10705
  if (d2 > 1 && !zm(S2, c2[_2])) return;
10702
10706
  const w2 = 1 === g2 ? h2[p2] : h2[_2];
10703
10707
  if (g2 > 1 && !zm(w2, h2[_2])) return;
@@ -10714,7 +10718,7 @@ class jm {
10714
10718
  return true;
10715
10719
  }
10716
10720
  _splitBorderRange(t5, e2, n2, r2) {
10717
- const o2 = r2 ? Na.Edge.Left : Na.Edge.Top, s2 = r2 ? Na.Edge.Right : Na.Edge.Bottom, i2 = r2 ? Na.Edge.Vertical : Na.Edge.Horizontal, a2 = r2 ? e2.colStart : e2.rowStart, l2 = r2 ? e2.colEnd : e2.rowEnd, c2 = r2 ? n2.colStart : n2.rowStart, h2 = r2 ? n2.colEnd : n2.rowEnd;
10721
+ const o2 = r2 ? Ta.Edge.Left : Ta.Edge.Top, s2 = r2 ? Ta.Edge.Right : Ta.Edge.Bottom, i2 = r2 ? Ta.Edge.Vertical : Ta.Edge.Horizontal, a2 = r2 ? e2.colStart : e2.rowStart, l2 = r2 ? e2.colEnd : e2.rowEnd, c2 = r2 ? n2.colStart : n2.rowStart, h2 = r2 ? n2.colEnd : n2.rowEnd;
10718
10722
  let u2 = { ...t5 };
10719
10723
  return delete u2[o2], delete u2[s2], delete u2[i2], a2 === c2 ? t5[o2] && (u2[o2] = t5[o2]) : t5[i2] && (u2[o2] = t5[i2]), l2 === h2 ? t5[s2] && (u2[s2] = t5[s2]) : t5[i2] && (u2[s2] = t5[i2]), h2 - c2 > 0 && t5[i2] && (u2[i2] = t5[i2]), 0 === Object.keys(u2).length ? null : u2;
10720
10724
  }
@@ -10768,7 +10772,7 @@ const Um = new class {
10768
10772
  get isICellProtection() {
10769
10773
  return true;
10770
10774
  }
10771
- }(), qm = (t5, e2, n2 = null, r2 = null, o2 = false) => {
10775
+ }(), Jm = (t5, e2, n2 = null, r2 = null, o2 = false) => {
10772
10776
  if (void 0 === t5) return;
10773
10777
  if (null === t5) return Wm;
10774
10778
  if (t5 && t5.isICell) {
@@ -10809,12 +10813,12 @@ const Um = new class {
10809
10813
  } else p2 = g2;
10810
10814
  let _2 = false;
10811
10815
  return void 0 !== c2 && (null === c2 ? (a2.value = null, a2.type = s.Null) : (a2.value = c2, a2.type = l2), _2 = true), void 0 !== p2 && (a2.style = p2, _2 = true), void 0 !== u2 && (a2.hyperlink = u2, _2 = true), void 0 !== d2 && (a2.formula = d2, _2 = true), o2 || (a2.stringToParse = m2, _2 = true), _2 ? (a2.type = l2, a2) : void 0;
10812
- }, Jm = (t5, e2, n2, r2) => mm(n2, e2, t5, e2.getNumberFormat(), (t6) => r2.styles.parseColor(t6), r2.date1904), Km = (t5, e2, n2, r2, o2 = false) => {
10816
+ }, qm = (t5, e2, n2, r2) => mm(n2, e2, t5, e2.getNumberFormat(), (t6) => r2.styles.parseColor(t6), r2.date1904), Km = (t5, e2, n2, r2, o2 = false) => {
10813
10817
  if (t5 === s.Null) return null;
10814
10818
  let i2 = "";
10815
10819
  if (o2) i2 = "" + n2;
10816
10820
  else {
10817
- const o3 = Jm(t5, e2, n2, r2);
10821
+ const o3 = qm(t5, e2, n2, r2);
10818
10822
  if (o3.formattedRuns) {
10819
10823
  const t6 = o3.formattedRuns.runs;
10820
10824
  for (let e3 = 0; e3 < t6.length; e3++) {
@@ -10822,7 +10826,7 @@ const Um = new class {
10822
10826
  }
10823
10827
  } else i2 = o3.displayText;
10824
10828
  }
10825
- return Ji(i2, e2.getFont(), e2.getAlignment(), t5 === s.String, o2);
10829
+ return qi(i2, e2.getFont(), e2.getAlignment(), t5 === s.String, o2);
10826
10830
  }, Xm = (t5, e2) => {
10827
10831
  const n2 = e2.getInsets();
10828
10832
  if (t5 === s.Null) return n2;
@@ -10865,12 +10869,12 @@ const Um = new class {
10865
10869
  const E2 = l2.colHeaders, b2 = E2.findOffset.bind(E2), C2 = E2.findIndex.bind(E2);
10866
10870
  let v2 = b2(c2);
10867
10871
  const I2 = v2;
10868
- let R2 = b2(c2 + y2), A2 = R2 - v2, M2 = c2, T2 = c2;
10869
- const N2 = { x: 0, y: 0, width: A2, height: h2?.height ?? 0 };
10872
+ let R2 = b2(c2 + y2), A2 = R2 - v2, M2 = c2, N2 = c2;
10873
+ const T2 = { x: 0, y: 0, width: A2, height: h2?.height ?? 0 };
10870
10874
  const k2 = c2 - c2 + y2;
10871
- let F2 = h2 ? h2.width - A2 : 0, O2 = N2;
10872
- d2 && (F2 = 0), A2 > 0 && F2 > 0 && (m2 === x.Center && (F2 /= 2), m2 !== x.Left && m2 !== x.Center || (T2 = C2(R2 + F2), null !== i2 && (T2 = Math.min(T2, i2.colIndex - 1)), R2 = b2(T2), w2 = F2, _2 = T2 - c2), m2 !== x.Right && m2 !== x.Center || (M2 = C2(v2 - F2), null !== o2 && (M2 = Math.max(M2, o2.colIndex + 1)), v2 = b2(M2), S2 = F2, p2 = c2 - M2), N2.x = I2 - v2, O2.x = N2.x);
10873
- return { anchorBounds: N2, leftIndex: p2, rightIndex: _2, leftOffset: S2, rightOffset: w2, colSpan: k2, colBounds: O2 };
10875
+ let F2 = h2 ? h2.width - A2 : 0, O2 = T2;
10876
+ d2 && (F2 = 0), A2 > 0 && F2 > 0 && (m2 === x.Center && (F2 /= 2), m2 !== x.Left && m2 !== x.Center || (N2 = C2(R2 + F2), null !== i2 && (N2 = Math.min(N2, i2.colIndex - 1)), R2 = b2(N2), w2 = F2, _2 = N2 - c2), m2 !== x.Right && m2 !== x.Center || (M2 = C2(v2 - F2), null !== o2 && (M2 = Math.max(M2, o2.colIndex + 1)), v2 = b2(M2), S2 = F2, p2 = c2 - M2), T2.x = I2 - v2, O2.x = T2.x);
10877
+ return { anchorBounds: T2, leftIndex: p2, rightIndex: _2, leftOffset: S2, rightOffset: w2, colSpan: k2, colBounds: O2 };
10874
10878
  };
10875
10879
  class Zm {
10876
10880
  constructor(t5, e2) {
@@ -10925,8 +10929,8 @@ const tf = (t5, e2, n2, r2) => {
10925
10929
  const I2 = Xm(t5, e2), R2 = I2.top + I2.bottom + +xf(e2);
10926
10930
  let A2 = false, M2 = false;
10927
10931
  a2 && (M2 = true, (0 !== _2 || E2) && (M2 = false));
10928
- const T2 = M2 ? void 0 : Km(t5, e2, n2, r2), N2 = I2.left + I2.right + 2;
10929
- if (T2) {
10932
+ const N2 = M2 ? void 0 : Km(t5, e2, n2, r2), T2 = I2.left + I2.right + 2;
10933
+ if (N2) {
10930
10934
  if (t5 === s.Number && "General" === w2 && i2) {
10931
10935
  let t6 = n2, r3 = bt.splitNumber(t6), o3 = "";
10932
10936
  o3 = Math.abs(t6) >= Math.pow(10, 12) || Math.abs(t6) <= Math.pow(10, -12) ? `0.${"0".repeat(Math.max(2, Math.min(r3.ipLength, 5)))}E+00` : 0 === Math.abs(r3.ipLength) ? "0.0" : Math.abs(r3.fpLength) > 0 ? "0".repeat(r3.ipLength) + ".0" : "0".repeat(r3.ipLength), t6 < 0 && (o3 = "-" + o3), o3 = "0".repeat(o3.length);
@@ -10934,11 +10938,11 @@ const tf = (t5, e2, n2, r2) => {
10934
10938
  v2 = s2.width, x2 = s2.lineHeight;
10935
10939
  } else {
10936
10940
  let t6 = null;
10937
- E2 && (t6 = { width: Math.max(1, o2 - N2) });
10938
- const e3 = T2.layout(t6);
10941
+ E2 && (t6 = { width: Math.max(1, o2 - T2) });
10942
+ const e3 = N2.layout(t6);
10939
10943
  v2 = e3.bounds.width, x2 = e3.bounds.height;
10940
10944
  }
10941
- if (null !== v2 && (v2 += N2), null !== x2 && (x2 += R2), A2 = t5 === s.String, _2) {
10945
+ if (null !== v2 && (v2 += T2), null !== x2 && (x2 += R2), A2 = t5 === s.String, _2) {
10942
10946
  A2 && p2 === Zs.Overflow.Wrap && (A2 = false);
10943
10947
  const t6 = ((t7, e3) => {
10944
10948
  const { x: n3, y: r3, width: o3, height: s2 } = t7, i3 = e3 * Math.PI / 180, a3 = Math.sin(i3), l3 = Math.cos(i3), c3 = o3 / 2, h3 = s2 / 2, u3 = Ki(-c3, -h3, a3, l3), d3 = Ki(c3, -h3, a3, l3), g3 = Ki(-c3, h3, a3, l3), m3 = Ki(c3, h3, a3, l3);
@@ -11043,7 +11047,7 @@ class rf {
11043
11047
  let e2, n2;
11044
11048
  if (t5 && (n2 = this.getFormulaText()), e2 = n2 ?? this._v, null === e2) return null;
11045
11049
  const r2 = this.getStyle();
11046
- return n2 ? ((t6, e3) => e3 === s.Null ? null : Ji(e3, t6.getFont(), t6.getAlignment(), false, true))(r2, e2, this._options) : Km(this._t, r2, e2, this._options, t5);
11050
+ return n2 ? ((t6, e3) => e3 === s.Null ? null : qi(e3, t6.getFont(), t6.getAlignment(), false, true))(r2, e2, this._options) : Km(this._t, r2, e2, this._options, t5);
11047
11051
  }
11048
11052
  getValue() {
11049
11053
  return this._v;
@@ -11077,7 +11081,7 @@ class rf {
11077
11081
  createTemporaryCell(t5) {
11078
11082
  const e2 = this._options;
11079
11083
  if (null === t5) return new rf(e2, this._coords, null);
11080
- const n2 = qm(t5, this._options);
11084
+ const n2 = Jm(t5, this._options);
11081
11085
  let r2 = this._rs;
11082
11086
  if (void 0 !== n2.style) {
11083
11087
  const t6 = this._coords ?? Y.EmptyCell, o3 = Y.cellToRange(t6), s3 = () => tf(0, o3, this._rs, this._options), i2 = Cm(this._options.styles, n2.style, s3), a2 = (this._rs?.directStyle ?? new jm(e2.styles, o3)).cloneWithUpdate(i2);
@@ -11094,7 +11098,7 @@ class rf {
11094
11098
  const e2 = this._v;
11095
11099
  return mm(e2, this.getStyle(), this._t, t5, (t6) => this._options.styles.parseColor(t6), this._isDate1904());
11096
11100
  }
11097
- return Jm(this._t, this.getStyle(), this._v, this._options);
11101
+ return qm(this._t, this.getStyle(), this._v, this._options);
11098
11102
  }
11099
11103
  toDate() {
11100
11104
  return this._t !== s.Number ? null : this._rs ? this.getNumberFormat().asDate : null;
@@ -11141,7 +11145,7 @@ class rf {
11141
11145
  }
11142
11146
  getHyperlink() {
11143
11147
  const t5 = this._rs?.hyperlink;
11144
- return t5 ? new Td(this.toText.bind(this), this._options.opener, t5) : null;
11148
+ return t5 ? new Nd(this.toText.bind(this), this._options.opener, t5) : null;
11145
11149
  }
11146
11150
  getErrors() {
11147
11151
  const t5 = this._rs;
@@ -11394,7 +11398,7 @@ const Cf = /^[\\+-]?[0-9]*\.?[0-9]*$/, vf = (t5, e2, n2) => {
11394
11398
  try {
11395
11399
  f2 = Us(t5, e2?.date1904, true);
11396
11400
  let n3 = t5;
11397
- f2 && (n3 = f2.leadingText), n3.trim().length > 0 && (m2 = Js(n3, e2?.date1904)), !m2 && f2?.leadingText.trim().length > 0 && (f2 = null);
11401
+ f2 && (n3 = f2.leadingText), n3.trim().length > 0 && (m2 = qs(n3, e2?.date1904)), !m2 && f2?.leadingText.trim().length > 0 && (f2 = null);
11398
11402
  } catch (t6) {
11399
11403
  }
11400
11404
  if (m2 || f2) {
@@ -11454,7 +11458,7 @@ const Cf = /^[\\+-]?[0-9]*\.?[0-9]*$/, vf = (t5, e2, n2) => {
11454
11458
  const n2 = { ...t5 };
11455
11459
  return e2 ? "boolean" == typeof e2 ? (n2.$colStart = e2, n2.$rowStart = e2, n2.$colEnd = e2, n2.$rowEnd = e2, n2) : ("boolean" == typeof e2.colStart && (n2.$colStart = e2.colStart), "boolean" == typeof e2.rowStart && (n2.$rowStart = e2.rowStart), "boolean" == typeof e2.colEnd && (n2.$colEnd = e2.colEnd), "boolean" == typeof e2.rowEnd && (n2.$rowEnd = e2.rowEnd), n2) : n2;
11456
11460
  };
11457
- class Tf {
11461
+ class Nf {
11458
11462
  constructor(t5, e2, n2) {
11459
11463
  const r2 = this;
11460
11464
  this.setState = (t6) => {
@@ -11494,7 +11498,7 @@ class Tf {
11494
11498
  } };
11495
11499
  }
11496
11500
  }
11497
- const Nf = (t5, e2) => {
11501
+ const Tf = (t5, e2) => {
11498
11502
  if (t5 || e2) return t5 && e2 ? { ...t5, ...e2 } : t5 || e2;
11499
11503
  }, kf = (t5, e2, n2, r2 = i.Orientation.Row) => {
11500
11504
  const o2 = t5.getRange(e2, { excludeHidden: r2 }), s2 = o2.forEach((t6, e3) => ({ break: e3.getCoords() }), { excludeCellDetails: true, orientation: r2 });
@@ -11695,7 +11699,7 @@ class zf {
11695
11699
  }
11696
11700
  }
11697
11701
  var jf, Wf;
11698
- (Wf = jf || (jf = {})).fastStringToCol = Du, Wf.fastStringToCell = ku, Wf.fastStringToRange = Lu, Wf.rangeToString = Eu, Wf.cellToString = Su, Wf.normalizeA1ToR1C1 = qu, Wf.resolveRelativeToA1 = Vu;
11702
+ (Wf = jf || (jf = {})).fastStringToCol = Du, Wf.fastStringToCell = ku, Wf.fastStringToRange = Lu, Wf.rangeToString = Eu, Wf.cellToString = Su, Wf.normalizeA1ToR1C1 = Ju, Wf.resolveRelativeToA1 = Vu;
11699
11703
  const Hf = (t5, e2) => t5.offset - e2.offset, Vf = (t5) => {
11700
11704
  if (!t5 || 0 === t5.size) return [];
11701
11705
  let e2 = [];
@@ -11765,14 +11769,14 @@ const Gf = (t5, e2) => t5.offset - e2.offset, Uf = (t5) => {
11765
11769
  return t5.forEach((t6, n2) => {
11766
11770
  t6 && 0 !== Object.keys(t6).length && e2.push({ ...t6, offset: n2 });
11767
11771
  }), e2.sort(Gf);
11768
- }, qf = (t5, e2 = /* @__PURE__ */ new Map()) => {
11772
+ }, Jf = (t5, e2 = /* @__PURE__ */ new Map()) => {
11769
11773
  if (!t5 || 0 === t5.length) return e2;
11770
11774
  for (let n2 = 0; n2 < t5.length; n2++) {
11771
11775
  const r2 = { ...t5[n2] }, o2 = r2.offset;
11772
11776
  delete r2.offset, e2.set(o2, r2);
11773
11777
  }
11774
11778
  return e2;
11775
- }, Jf = (t5) => {
11779
+ }, qf = (t5) => {
11776
11780
  let e2 = 0;
11777
11781
  const n2 = t5.entries();
11778
11782
  let r2 = null;
@@ -11803,7 +11807,7 @@ class Kf extends zf {
11803
11807
  }
11804
11808
  apply(t5) {
11805
11809
  const e2 = this._getState().byOffset, n2 = new Map(e2);
11806
- return qf(t5, n2), this._updateState({ byOffset: n2, hiddenCount: Jf(n2) }, { description: "Set Filter Criteria" }), this.reapply();
11810
+ return Jf(t5, n2), this._updateState({ byOffset: n2, hiddenCount: qf(n2) }, { description: "Set Filter Criteria" }), this.reapply();
11807
11811
  }
11808
11812
  setFieldAt(t5, e2) {
11809
11813
  const n2 = this._getState(), r2 = n2.anchor.colEnd - n2.anchor.colStart + 1;
@@ -11844,7 +11848,7 @@ class Kf extends zf {
11844
11848
  if (r2.forEach((t6, r3) => {
11845
11849
  t6 && 0 !== Object.keys(t6).length && (r3 >= e2 && o2.delete(r3), r3 > e2 && o2.set(r3 + n2, t6));
11846
11850
  }), n2 > 0 && this._getState().hiddenCount > 0) for (let t6 = e2; t6 < e2 + n2; t6++) o2.set(t6, { hiddenButton: true });
11847
- this._updateState({ byOffset: o2, hiddenCount: Jf(o2), sort: null }, { description: "Update Fields" });
11851
+ this._updateState({ byOffset: o2, hiddenCount: qf(o2), sort: null }, { description: "Update Fields" });
11848
11852
  }
11849
11853
  return super._processContainerShift(t5);
11850
11854
  }
@@ -11857,7 +11861,7 @@ class Kf extends zf {
11857
11861
  }
11858
11862
  _fromJSON(t5) {
11859
11863
  const e2 = t5 ?? {}, n2 = { byOffset: /* @__PURE__ */ new Map(), hiddenCount: 0 };
11860
- e2.fields && (qf(e2.fields, n2.byOffset), n2.hiddenCount = Jf(n2.byOffset)), e2.sort, this._updateState(n2, { description: "Load" });
11864
+ e2.fields && (Jf(e2.fields, n2.byOffset), n2.hiddenCount = qf(n2.byOffset)), e2.sort, this._updateState(n2, { description: "Load" });
11861
11865
  }
11862
11866
  toJSON() {
11863
11867
  const t5 = {}, e2 = this._getState();
@@ -11930,7 +11934,7 @@ class tp {
11930
11934
  return this._filter?.getFieldAt(this._offset)?.hiddenButton ?? false;
11931
11935
  }
11932
11936
  }
11933
- class ep extends Nl {
11937
+ class ep extends Tl {
11934
11938
  constructor(t5, e2, n2, r2) {
11935
11939
  super({ ...r2, type: "namedTable" }), this._names = t5, this._sheet = e2, this._table = n2;
11936
11940
  const o2 = this;
@@ -12734,7 +12738,7 @@ class dp {
12734
12738
  }, e3 = (t7, e4 = 0) => 0 === e4 ? t7 : e4 > 0 ? `${t7} lumMod ${100 - e4}, lumOff ${e4}` : e4 < 0 ? `${t7} lumMod ${100 + e4}` : void 0, n2 = (t7) => ({ type: ma.Type.Pattern, patternType: ma.BuiltInSheetPattern.Solid, foreground: t7, background: t7 }), r2 = (t7, e4 = false) => {
12735
12739
  const n3 = { fill: t7 };
12736
12740
  return e4 && (n3.weight = 700), n3;
12737
- }, o2 = (t7, e4 = Na.StrokeStyle.Thin) => ({ style: e4, color: t7 }), s2 = (t7, e4) => {
12741
+ }, o2 = (t7, e4 = Ta.StrokeStyle.Thin) => ({ style: e4, color: t7 }), s2 = (t7, e4) => {
12738
12742
  for (let n3 = 0; n3 < 7; n3++) t7.push(e4(`accent${n3 + 1}`));
12739
12743
  };
12740
12744
  let i2 = 0, a2 = [];
@@ -12746,42 +12750,42 @@ class dp {
12746
12750
  i2 += 7, a2 = [], a2.push(["dk1", "dk1", "lt1"]), s2(a2, (t7) => ["dk1", t7, "lt1"]);
12747
12751
  for (let e4 = 0; e4 < 7; e4++) {
12748
12752
  const s3 = t6("l", e4 + i2), l2 = a2[e4][0], c2 = a2[e4][1], h2 = a2[e4][2];
12749
- rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2) } }, headerRow: { font: r2(h2, true), fill: n2(c2) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, Na.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { border: { top: o2(c2) } }, secondRowStripe: { border: { top: o2(c2) } }, firstColumnStripe: { border: { left: o2(c2) } }, secondColumnStripe: { border: { left: o2(c2) } } }));
12753
+ rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2) } }, headerRow: { font: r2(h2, true), fill: n2(c2) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, Ta.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { border: { top: o2(c2) } }, secondRowStripe: { border: { top: o2(c2) } }, firstColumnStripe: { border: { left: o2(c2) } }, secondColumnStripe: { border: { left: o2(c2) } } }));
12750
12754
  }
12751
12755
  i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15)]), s2(a2, (t7) => [t7, e3(t7, 80)]);
12752
12756
  for (let e4 = 0; e4 < 7; e4++) {
12753
12757
  const s3 = t6("l", e4 + i2), l2 = "dk1", c2 = a2[e4][0], h2 = a2[e4][1];
12754
- rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2), horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(l2, true) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, Na.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(h2) }, firstColumnStripe: { fill: n2(h2) } }));
12758
+ rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2), horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(l2, true) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, Ta.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(h2) }, firstColumnStripe: { fill: n2(h2) } }));
12755
12759
  }
12756
12760
  i2 = 1, a2 = [], a2.push(["dk1", "dk1", e3("bg1", -15)]), s2(a2, (t7) => [t7, e3(t7, 40), e3(t7, 80)]);
12757
12761
  for (let e4 = 0; e4 < 7; e4++) {
12758
12762
  const s3 = t6("m", e4 + i2), l2 = "dk1", c2 = "lt1", h2 = a2[e4][0], u2 = a2[e4][1], d2 = a2[e4][2];
12759
- rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(u2), right: o2(u2), top: o2(u2), bottom: o2(u2), horizontal: o2(u2) } }, headerRow: { font: r2(c2, true), fill: n2(h2) }, totalRow: { font: r2(l2, true), border: { top: o2(h2, Na.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12763
+ rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(u2), right: o2(u2), top: o2(u2), bottom: o2(u2), horizontal: o2(u2) } }, headerRow: { font: r2(c2, true), fill: n2(h2) }, totalRow: { font: r2(l2, true), border: { top: o2(h2, Ta.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12760
12764
  }
12761
12765
  i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15), e3("bg1", -35)]), s2(a2, (t7) => [t7, e3(t7, 80), e3(t7, 60)]);
12762
12766
  for (let e4 = 0; e4 < 7; e4++) {
12763
12767
  const s3 = t6("m", e4 + i2), l2 = "dk1", c2 = "lt1", h2 = a2[e4][0], u2 = a2[e4][1], d2 = a2[e4][2];
12764
- rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(u2), border: { horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(c2, true), fill: n2(h2), border: { bottom: o2(c2, Na.StrokeStyle.Thick) } }, totalRow: { font: r2(c2, true), fill: n2(h2), border: { top: o2(c2, Na.StrokeStyle.Thick) } }, firstColumn: { font: r2(c2, true), fill: n2(h2) }, lastColumn: { font: r2(c2, true), fill: n2(h2) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12768
+ rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(u2), border: { horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(c2, true), fill: n2(h2), border: { bottom: o2(c2, Ta.StrokeStyle.Thick) } }, totalRow: { font: r2(c2, true), fill: n2(h2), border: { top: o2(c2, Ta.StrokeStyle.Thick) } }, firstColumn: { font: r2(c2, true), fill: n2(h2) }, lastColumn: { font: r2(c2, true), fill: n2(h2) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12765
12769
  }
12766
12770
  i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15), e3("bg1", -35)]), s2(a2, (t7) => [t7, e3(t7, 80), e3(t7, 60)]);
12767
12771
  for (let s3 = 0; s3 < 7; s3++) {
12768
12772
  const l2 = t6("m", s3 + i2), c2 = "dk1", h2 = "lt1", u2 = a2[s3][0], d2 = e3("bg1", -15);
12769
- rp.set(l2.toLocaleLowerCase(), Object.freeze({ name: l2, wholeTable: { font: r2(c2), border: { top: o2(c2, Na.StrokeStyle.Medium), bottom: o2(c2, Na.StrokeStyle.Medium), left: 0 === s3 ? o2(c2, Na.StrokeStyle.Thin) : void 0, right: 0 === s3 ? o2(c2, Na.StrokeStyle.Thin) : void 0, horizontal: 0 === s3 ? o2(c2, Na.StrokeStyle.Thin) : void 0, vertical: 0 === s3 ? o2(c2, Na.StrokeStyle.Thin) : void 0 } }, headerRow: { font: r2(h2, true), fill: n2(u2), border: { bottom: o2(c2, Na.StrokeStyle.Medium) } }, totalRow: { border: { top: o2(c2, Na.StrokeStyle.Double) } }, firstColumn: { font: r2(h2, true), fill: n2(u2) }, lastColumn: { font: r2(h2, true), fill: n2(u2) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12773
+ rp.set(l2.toLocaleLowerCase(), Object.freeze({ name: l2, wholeTable: { font: r2(c2), border: { top: o2(c2, Ta.StrokeStyle.Medium), bottom: o2(c2, Ta.StrokeStyle.Medium), left: 0 === s3 ? o2(c2, Ta.StrokeStyle.Thin) : void 0, right: 0 === s3 ? o2(c2, Ta.StrokeStyle.Thin) : void 0, horizontal: 0 === s3 ? o2(c2, Ta.StrokeStyle.Thin) : void 0, vertical: 0 === s3 ? o2(c2, Ta.StrokeStyle.Thin) : void 0 } }, headerRow: { font: r2(h2, true), fill: n2(u2), border: { bottom: o2(c2, Ta.StrokeStyle.Medium) } }, totalRow: { border: { top: o2(c2, Ta.StrokeStyle.Double) } }, firstColumn: { font: r2(h2, true), fill: n2(u2) }, lastColumn: { font: r2(h2, true), fill: n2(u2) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12770
12774
  }
12771
12775
  i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15), e3("bg1", -35), "dk1"]), s2(a2, (t7) => [t7, e3(t7, 80), e3(t7, 60), e3(t7, 40)]);
12772
12776
  for (let e4 = 0; e4 < 7; e4++) {
12773
12777
  const s3 = t6("m", e4 + i2), l2 = "dk1", c2 = a2[e4][0], h2 = a2[e4][1], u2 = a2[e4][2], d2 = a2[e4][3];
12774
- rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2), border: { top: o2(d2), right: o2(d2), left: o2(d2), bottom: o2(d2), vertical: o2(d2), horizontal: o2(d2) } }, headerRow: { font: r2(l2), fill: n2(h2) }, totalRow: { font: r2(l2), border: { top: o2(c2, Na.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
12778
+ rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2), border: { top: o2(d2), right: o2(d2), left: o2(d2), bottom: o2(d2), vertical: o2(d2), horizontal: o2(d2) } }, headerRow: { font: r2(l2), fill: n2(h2) }, totalRow: { font: r2(l2), border: { top: o2(c2, Ta.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
12775
12779
  }
12776
12780
  i2 = 1, a2 = [], a2.push(["dk1", e3("dk1", 15), e3("dk1", 25), e3("dk1", 50)]), s2(a2, (t7) => ["dk1", e3(t7, -50), e3(t7, -25), t7]);
12777
12781
  for (let e4 = 0; e4 < 7; e4++) {
12778
12782
  const s3 = t6("d", e4 + i2), l2 = "lt1", c2 = a2[e4][0], h2 = a2[e4][1], u2 = a2[e4][2], d2 = a2[e4][3];
12779
- rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(d2) }, headerRow: { font: r2(l2, true), fill: n2(c2), border: { bottom: o2(l2, Na.StrokeStyle.Medium) } }, totalRow: { font: r2(l2, true), fill: n2(h2), border: { top: o2(l2, Na.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true), fill: n2(u2), border: { right: o2(l2, Na.StrokeStyle.Medium) } }, lastColumn: { font: r2(l2, true), fill: n2(u2), border: { left: o2(l2, Na.StrokeStyle.Medium) } }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
12783
+ rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(d2) }, headerRow: { font: r2(l2, true), fill: n2(c2), border: { bottom: o2(l2, Ta.StrokeStyle.Medium) } }, totalRow: { font: r2(l2, true), fill: n2(h2), border: { top: o2(l2, Ta.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true), fill: n2(u2), border: { right: o2(l2, Ta.StrokeStyle.Medium) } }, lastColumn: { font: r2(l2, true), fill: n2(u2), border: { left: o2(l2, Ta.StrokeStyle.Medium) } }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
12780
12784
  }
12781
12785
  i2 += 7, a2 = [], a2.push([e3("bg1", -15), "dk1", e3("bg1", -35)]), a2.push([e3("accent1", 80), "accent2", e3("accent1", 60)]), a2.push([e3("accent3", 80), "accent4", e3("accent3", 60)]), a2.push([e3("accent5", 80), "accent6", e3("accent5", 60)]);
12782
12786
  for (let e4 = 0; e4 < 4; e4++) {
12783
12787
  const s3 = t6("d", e4 + i2), l2 = "dk1", c2 = "lt1", h2 = a2[e4][0], u2 = a2[e4][1], d2 = a2[e4][2];
12784
- rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2) }, headerRow: { font: r2(c2, true), fill: n2(u2) }, totalRow: { font: r2(l2, true), border: { top: o2(l2, Na.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12788
+ rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2) }, headerRow: { font: r2(c2, true), fill: n2(u2) }, totalRow: { font: r2(l2, true), border: { top: o2(l2, Ta.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12785
12789
  }
12786
12790
  return rp;
12787
12791
  })(), e2 = /* @__PURE__ */ new Map();
@@ -12910,7 +12914,7 @@ class dp {
12910
12914
  return this._indexedLookup;
12911
12915
  }
12912
12916
  parseColor(t5) {
12913
- return Ta.parse(t5, this._schemeLookup, this._indexedLookup);
12917
+ return Na.parse(t5, this._schemeLookup, this._indexedLookup);
12914
12918
  }
12915
12919
  recentColors() {
12916
12920
  return this._mruColors;
@@ -12934,7 +12938,7 @@ class dp {
12934
12938
  }
12935
12939
  getCustomIndexedColors() {
12936
12940
  const t5 = Math.max(this._indexedColors?.length, 66), e2 = [];
12937
- for (let n2 = 0; n2 < t5; n2++) null !== this._indexedColors[n2] && e2.push(this._indexedColors[n2] ?? new Ta(rs(n2)?.toString()));
12941
+ for (let n2 = 0; n2 < t5; n2++) null !== this._indexedColors[n2] && e2.push(this._indexedColors[n2] ?? new Na(rs(n2)?.toString()));
12938
12942
  return e2;
12939
12943
  }
12940
12944
  addListeners(t5, e2) {
@@ -13215,7 +13219,7 @@ class wp {
13215
13219
  }
13216
13220
  var yp, Ep;
13217
13221
  yp || (yp = {});
13218
- class bp extends Tl {
13222
+ class bp extends Nl {
13219
13223
  constructor(t5) {
13220
13224
  super(t5), t5.json && (this._resource = t5.fromResourceId(t5.json.resId));
13221
13225
  }
@@ -13233,20 +13237,20 @@ class bp extends Tl {
13233
13237
  }
13234
13238
  async _asDataUrl() {
13235
13239
  if (this._dataUrl) return this._dataUrl;
13236
- const t5 = await this.getDetails(), e2 = await Nt.getImageDataUrl(t5.asUrl());
13240
+ const t5 = await this.getDetails(), e2 = await Tt.getImageDataUrl(t5.asUrl());
13237
13241
  return this._dataUrl = e2.dataUrl, this._dataUrl;
13238
13242
  }
13239
13243
  toHtml() {
13240
13244
  return null;
13241
13245
  }
13242
13246
  async toImage() {
13243
- const t5 = (await this._asDataUrl()).substring(Nt.DATA_URL_PNG_PREFIX.length), e2 = It.base64ToArrayBuffer(t5);
13247
+ const t5 = (await this._asDataUrl()).substring(Tt.DATA_URL_PNG_PREFIX.length), e2 = It.base64ToArrayBuffer(t5);
13244
13248
  return new Blob([e2], { type: I.png });
13245
13249
  }
13246
13250
  async getDetails() {
13247
13251
  return this._details || (this._details = new Promise(async (t5, e2) => {
13248
13252
  try {
13249
- const e3 = await this._resource.toBuffer(), n2 = await this._resource.getType(), r2 = await Nt.loadImageDetails(e3, n2);
13253
+ const e3 = await this._resource.toBuffer(), n2 = await this._resource.getType(), r2 = await Tt.loadImageDetails(e3, n2);
13250
13254
  t5({ getNaturalDimensions: () => r2.naturalDimensions, asUrl: () => r2.asUrl, asSVGText: () => r2.asSVGText });
13251
13255
  } catch (t6) {
13252
13256
  e2(t6);
@@ -13364,7 +13368,7 @@ const vp = (t5, e2) => {
13364
13368
  r2.insertNonOverlapping({ colStart: e3.colStart, rowStart: e3.rowStart, colEnd: e3.colEnd, rowEnd: e3.rowEnd, value: new td(e3, b2) }), g2 && l2?.insertNonOverlapping(e3), a2?.push(e3), p2 = Y.unionRanges(p2, e3);
13365
13369
  }
13366
13370
  return p2;
13367
- }, Tp = (t5, e2, n2) => {
13371
+ }, Np = (t5, e2, n2) => {
13368
13372
  if (!e2) return t5;
13369
13373
  const r2 = e2.block;
13370
13374
  if (!r2) return t5;
@@ -13375,7 +13379,7 @@ const vp = (t5, e2) => {
13375
13379
  let d2 = e2.dynamic;
13376
13380
  return d2 || (d2 = [], e2.dynamic = d2), d2.push(u2), o2.push(u2), o2;
13377
13381
  };
13378
- class Np {
13382
+ class Tp {
13379
13383
  constructor(t5) {
13380
13384
  this._fullCalcRequired = false, this._iterationId = 0, this._cycleId = 1, this._pendingInvalidations = /* @__PURE__ */ new Set(), this._emitter = null, this._isProcessingJSON = false, this._collectDirties = (t6, e3 = false, n3, r3) => {
13381
13385
  const o2 = this._formulaSpatial, s2 = this._precedentSpatial;
@@ -13549,7 +13553,7 @@ class Np {
13549
13553
  }
13550
13554
  clone(t5) {
13551
13555
  if (void 0 !== t5 && this._cloneKey === t5) return this;
13552
- const e2 = new Np(this._options);
13556
+ const e2 = new Tp(this._options);
13553
13557
  e2._cloneKey = t5, e2._values = this._values.clone(e2), e2._contentfulSpatial = this._contentfulSpatial.clone(e2), e2._formulaSpatial = this._formulaSpatial.clone(e2), e2._precedentSpatial = this._precedentSpatial.clone(e2), e2._volatile = new Set(this._volatile), e2._spillSpatial = this._spillSpatial.clone(e2), e2._errorSpatial = this._errorSpatial.clone(e2), e2._pendingSpatial = this._pendingSpatial.clone(e2), e2._invalidations = this._invalidations.clone(e2), e2._notifyValues = this._notifyValues.clone(e2), e2._notifySpills = this._notifySpills.clone(e2), e2._notifyFormats = this._notifyFormats.clone(e2), e2._notifyPending = this._notifyPending.clone(e2);
13554
13558
  const n2 = this._notifyFormulaInsertEntries;
13555
13559
  n2 && (e2._notifyFormulaInsertEntries = [...n2]);
@@ -13919,18 +13923,18 @@ class Np {
13919
13923
  }
13920
13924
  _markAndPlan(t5, e2, n2) {
13921
13925
  let r2;
13922
- Jp = 0, Zp = 0, t_ = 0, n_ = 0;
13926
+ qp = 0, Zp = 0, t_ = 0, n_ = 0;
13923
13927
  const o2 = this._precedentSpatial, s2 = this._formulaSpatial;
13924
13928
  Xp = 0, Yp = 0;
13925
13929
  const i2 = this._cycleId, a2 = e2.length;
13926
13930
  for (let t6 = 0; t6 < a2; t6++) {
13927
13931
  const r3 = e2[t6];
13928
- r3.markId !== n2 && (r3.markId = n2, r3.cycleId = i2, r3.inDegree = 0, qp[Jp++] = r3, Kp[Yp++] = r3);
13932
+ r3.markId !== n2 && (r3.markId = n2, r3.cycleId = i2, r3.inDegree = 0, Jp[qp++] = r3, Kp[Yp++] = r3);
13929
13933
  }
13930
13934
  const l2 = (e3, n3, o3) => {
13931
13935
  (t5 || e3.state === nd) && (r2 || (r2 = []), r2.push(n3), t5 || o3(e3));
13932
13936
  }, c2 = (t6) => {
13933
- t6.markId !== n2 && (t6.markId = n2, t6.cycleId = i2, t6.inDegree = 0, qp[Jp++] = t6, Kp[Yp++] = t6);
13937
+ t6.markId !== n2 && (t6.markId = n2, t6.cycleId = i2, t6.inDegree = 0, Jp[qp++] = t6, Kp[Yp++] = t6);
13934
13938
  };
13935
13939
  for (; Xp < Yp; ) {
13936
13940
  const t6 = Kp[Xp++], e3 = t6.colIndex, n3 = t6.rowIndex;
@@ -13942,8 +13946,8 @@ class Np {
13942
13946
  s4 ? l2(s4, o3, c2) : Op(o3, n3, e3, c2);
13943
13947
  }
13944
13948
  }
13945
- for (let t6 = 0; t6 < Jp; t6++) {
13946
- const e3 = qp[t6], r3 = e3.block, o3 = e3.rowIndex, i3 = e3.colIndex, a3 = r3.formula.getDirectPrecedentsAt(o3, i3);
13949
+ for (let t6 = 0; t6 < qp; t6++) {
13950
+ const e3 = Jp[t6], r3 = e3.block, o3 = e3.rowIndex, i3 = e3.colIndex, a3 = r3.formula.getDirectPrecedentsAt(o3, i3);
13947
13951
  let l3 = 0;
13948
13952
  const c3 = e3.precedents;
13949
13953
  for (let t7 = 0; t7 < a3.length; t7++) {
@@ -13984,7 +13988,7 @@ class Np {
13984
13988
  s4 ? l2(s4, o3, h2) : Op(o3, n3, e3, h2);
13985
13989
  }
13986
13990
  }
13987
- return n_ < Jp ? { completed: false, onces: r2 } : { completed: true, onces: r2 };
13991
+ return n_ < qp ? { completed: false, onces: r2 } : { completed: true, onces: r2 };
13988
13992
  }
13989
13993
  _evaluate(t5) {
13990
13994
  const e2 = this._calculation._getContext(), n2 = this._calculation._getScope();
@@ -14032,13 +14036,13 @@ class Np {
14032
14036
  }
14033
14037
  E2.pendingPrecedents = R2;
14034
14038
  }
14035
- const M2 = _2 ? C2 : v2, T2 = _2 ? v2 : C2;
14039
+ const M2 = _2 ? C2 : v2, N2 = _2 ? v2 : C2;
14036
14040
  n2.node = E2, n2.colIndex = C2, n2.rowIndex = v2;
14037
- const N2 = b2.formula;
14041
+ const T2 = b2.formula;
14038
14042
  let k2, F2;
14039
14043
  const O2 = E2.pending;
14040
14044
  let D2 = O2;
14041
- if ((R2 || E2.pendingPromise) && (D2 = true, k2 = E2.cachedValue ?? null, E2.pendingPromise && (E2.pendingResolved ? (E2.pendingPromise = null, E2.pendingResolved = false, D2 = false) : (E2.pendingPromise.cancelled = true, k2 = void 0))), void 0 === k2 && (n2.formula = N2, n2.colIndex = C2, n2.rowIndex = v2, k2 = N2.evaluate(e2, void 0, E2.inputs), n2.formula = null, F2 = k2 && k2.then ? k2 : null, D2 = !!F2), D2 !== O2 && (E2.pending = D2, S2 || (S2 = rh(_2)), S2.append(M2, T2, D2)), F2 && (k2 = E2.cachedValue ?? null, !F2.__originator)) {
14045
+ if ((R2 || E2.pendingPromise) && (D2 = true, k2 = E2.cachedValue ?? null, E2.pendingPromise && (E2.pendingResolved ? (E2.pendingPromise = null, E2.pendingResolved = false, D2 = false) : (E2.pendingPromise.cancelled = true, k2 = void 0))), void 0 === k2 && (n2.formula = T2, n2.colIndex = C2, n2.rowIndex = v2, k2 = T2.evaluate(e2, void 0, E2.inputs), n2.formula = null, F2 = k2 && k2.then ? k2 : null, D2 = !!F2), D2 !== O2 && (E2.pending = D2, S2 || (S2 = rh(_2)), S2.append(M2, N2, D2)), F2 && (k2 = E2.cachedValue ?? null, !F2.__originator)) {
14042
14046
  F2.__originator = a2;
14043
14047
  const t6 = E2;
14044
14048
  Up.add(t6), t6.pendingPromise = F2, t6.pendingResolved = false, F2.then((n3) => {
@@ -14085,16 +14089,16 @@ class Np {
14085
14089
  let o3, s3;
14086
14090
  if (U2) {
14087
14091
  k2 = l.BuiltIn.Spill, W2 = 1, H2 = 1;
14088
- o3 = [[M2, [[T2, [k2]]]]], f2.setValues(o3), s3 = { colStart: C2, rowStart: v2, colEnd: C2, rowEnd: v2 };
14092
+ o3 = [[M2, [[N2, [k2]]]]], f2.setValues(o3), s3 = { colStart: C2, rowStart: v2, colEnd: C2, rowEnd: v2 };
14089
14093
  } else {
14090
- const e3 = Ap(V2, M2, T2);
14094
+ const e3 = Ap(V2, M2, N2);
14091
14095
  e3 && (o3 = e3.tuples), o3 && f2.setValues(o3), s3 = t6;
14092
14096
  }
14093
- G2 = { ...t6, value: new Zu(t6, a2, U2) }, m2.insert(G2), y2 = Tp(y2, E2, t6), u2.insertNonOverlapping(s3), c2.insertNonOverlapping(s3), h2.insertNonOverlapping({ ...s3, value: new td(s3, p2) });
14097
+ G2 = { ...t6, value: new Zu(t6, a2, U2) }, m2.insert(G2), y2 = Np(y2, E2, t6), u2.insertNonOverlapping(s3), c2.insertNonOverlapping(s3), h2.insertNonOverlapping({ ...s3, value: new td(s3, p2) });
14094
14098
  }
14095
14099
  (!Y.isEqualRanges(z2, G2) || U2 || j2) && (z2 && d2.insert(z2), G2 && d2.insert(G2)), W2 === L2 && H2 === B2 || (E2.state = rd, c2.insertNonOverlapping({ colStart: C2, rowStart: v2, colEnd: C2 + Math.max(W2, L2) - 1, rowEnd: v2 + Math.max(H2, B2) - 1 }), s2 = false);
14096
- let q2 = k2 && k2.isFormulaError ? k2 : null;
14097
- N2.getError() && (q2 = N2.getError()), (q2 || I2 && !t5) && (q2 && !q2.equals(I2) || I2 && I2.equals(q2)), E2.cachedValue = k2, r2[o2++] = E2;
14100
+ let J2 = k2 && k2.isFormulaError ? k2 : null;
14101
+ T2.getError() && (J2 = T2.getError()), (J2 || I2 && !t5) && (J2 && !J2.equals(I2) || I2 && I2.equals(J2)), E2.cachedValue = k2, r2[o2++] = E2;
14098
14102
  }
14099
14103
  if (n2.node = null, n2.colIndex = Number.MAX_SAFE_INTEGER, n2.rowIndex = Number.MAX_SAFE_INTEGER, S2) {
14100
14104
  const t6 = S2.done(true);
@@ -14248,7 +14252,7 @@ class Np {
14248
14252
  }
14249
14253
  h3.value = new Zu(d3, 0, u3), r3.push(h3);
14250
14254
  const v2 = { colStart: g3, rowStart: m3, colEnd: f3, rowEnd: p2, value: u3 };
14251
- Y.isSingleCell(v2) || t6.push(v2), Tp(s3, C2, d3);
14255
+ Y.isSingleCell(v2) || t6.push(v2), Np(s3, C2, d3);
14252
14256
  }
14253
14257
  this._spillSpatial.load(r3), this._precedentSpatial.load(s3), t6.length > 0 && (n2.spillInserts = t6);
14254
14258
  }
@@ -14376,8 +14380,8 @@ const kp = (t5, e2, n2, r2) => {
14376
14380
  new l.Calc("Cyclical dependency");
14377
14381
  const Wp = (t5) => new Wl(t5);
14378
14382
  let Hp = 0;
14379
- const Vp = 1e4, $p = new Array(Vp), Gp = new Array(Vp), Up = /* @__PURE__ */ new Set(), qp = new Array(Vp);
14380
- let Jp = 0;
14383
+ const Vp = 1e4, $p = new Array(Vp), Gp = new Array(Vp), Up = /* @__PURE__ */ new Set(), Jp = new Array(Vp);
14384
+ let qp = 0;
14381
14385
  const Kp = new Array(Vp);
14382
14386
  let Xp = 0, Yp = 0;
14383
14387
  const Qp = new Array(Vp);
@@ -14402,9 +14406,9 @@ class c_ {
14402
14406
  this._instanceScope = t5;
14403
14407
  }
14404
14408
  async _initialize() {
14405
- const t5 = await We._validate(true), e2 = u_();
14409
+ const t5 = await je._validate(true), e2 = u_();
14406
14410
  this._calcScope = e2, this._runtime = new h_(this._options, t5);
14407
- const { initializeBuiltIns: n2 } = await import("./bv3-9x5QfIuZgtDa.mjs"), r2 = this;
14411
+ const { initializeBuiltIns: n2 } = await import("./kQVOc3F7_ib5L98K.mjs"), r2 = this;
14408
14412
  return this._builtInFunctions = Object.freeze(n2(() => r2)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
14409
14413
  }
14410
14414
  getBuiltInFunctions() {
@@ -14497,7 +14501,7 @@ class c_ {
14497
14501
  if ("string" == typeof t5) {
14498
14502
  if (e2) throw l.BuiltIn.Ref;
14499
14503
  try {
14500
- const n3 = Nu(t5, r2(), Ru, () => {
14504
+ const n3 = Tu(t5, r2(), Ru, () => {
14501
14505
  throw l.BuiltIn.Ref;
14502
14506
  }, e2);
14503
14507
  if (n3.length > 1) throw l.BuiltIn.Ref;
@@ -14518,7 +14522,7 @@ class c_ {
14518
14522
  if (a2) {
14519
14523
  const e3 = a2.calc;
14520
14524
  s2 = e3 && e3.isIReferenceRange ? e3.cachedValue : new Cp(o2, void 0, t5, null, r2);
14521
- } else n2.dynamicPrecedentsInserts = Tp(n2.dynamicPrecedentsInserts, i2, t5), s2 = new Cp(o2, void 0, t5, null, r2);
14525
+ } else n2.dynamicPrecedentsInserts = Np(n2.dynamicPrecedentsInserts, i2, t5), s2 = new Cp(o2, void 0, t5, null, r2);
14522
14526
  return s2;
14523
14527
  }
14524
14528
  getAddress(t5, e2 = false) {
@@ -14531,7 +14535,7 @@ class c_ {
14531
14535
  let r2 = t6, o2 = Us(t6, e3, true);
14532
14536
  o2 && (r2 = o2.leadingText);
14533
14537
  let s2 = null;
14534
- if (r2.trim().length > 0 && (s2 = Js(r2, e3), !s2 && n2)) return null;
14538
+ if (r2.trim().length > 0 && (s2 = qs(r2, e3), !s2 && n2)) return null;
14535
14539
  !s2 && o2?.leadingText.trim().length > 0 && (o2 = null);
14536
14540
  let i2 = 0;
14537
14541
  return s2 && (i2 += s2.asOADate), o2 && (i2 += o2.parsed.oaDateTime), i2;
@@ -14577,7 +14581,7 @@ class h_ {
14577
14581
  }
14578
14582
  getVersion() {
14579
14583
  try {
14580
- const t5 = "0.4.18";
14584
+ const t5 = "0.4.19";
14581
14585
  if (-1 === t5.indexOf(".env.")) return `${t5}`;
14582
14586
  } catch (t5) {
14583
14587
  return "local";
@@ -14693,7 +14697,7 @@ var v_;
14693
14697
  (v_ || (v_ = {})).Context = { Workbook: "workbook", Sheet: "sheet", Ranges: "ranges", Range: "range", Calculation: "calculation" };
14694
14698
  class x_ {
14695
14699
  constructor(t5, e2, n2, r2 = null, o2 = false) {
14696
- this._ct = v_.Context.Calculation, this._builtIn = false, this._broadcast = false, this._pj = null, this._json = t5, this._n = t5.name, this._d = new N_(t5), this._ct = t5.context ?? v_.Context.Calculation;
14700
+ this._ct = v_.Context.Calculation, this._builtIn = false, this._broadcast = false, this._pj = null, this._json = t5, this._n = t5.name, this._d = new T_(t5), this._ct = t5.context ?? v_.Context.Calculation;
14697
14701
  const s2 = t5.parameters;
14698
14702
  let i2;
14699
14703
  this._pj = s2, e2 || (console.log(`TypeFunction '${t5.name}' was not provided a function implementation.`), e2 = () => {
@@ -14868,7 +14872,7 @@ class M_ extends A_ {
14868
14872
  return this._e;
14869
14873
  }
14870
14874
  }
14871
- class T_ extends A_ {
14875
+ class N_ extends A_ {
14872
14876
  constructor(t5) {
14873
14877
  super(t5), this._a = t5.async ?? false, this._stream = t5.stream ?? false;
14874
14878
  }
@@ -14879,14 +14883,14 @@ class T_ extends A_ {
14879
14883
  return this._stream;
14880
14884
  }
14881
14885
  }
14882
- class N_ {
14886
+ class T_ {
14883
14887
  constructor(t5) {
14884
14888
  if (this._n = t5.name, t5.parameters) {
14885
14889
  const e2 = t5.parameters.length, n2 = new Array(e2);
14886
14890
  for (let r2 = 0; r2 < e2; r2++) n2[r2] = new M_(t5.parameters[r2]);
14887
14891
  this._p = Object.freeze(n2);
14888
14892
  } else this._p = bt.EmptyArray;
14889
- t5.returnType ? this._r = new T_(t5.returnType) : this._r = new T_({ scalar: null, arrayDepth: 0, range: null });
14893
+ t5.returnType ? this._r = new N_(t5.returnType) : this._r = new N_({ scalar: null, arrayDepth: 0, range: null });
14890
14894
  }
14891
14895
  getName() {
14892
14896
  return this._n;
@@ -14955,7 +14959,7 @@ const F_ = (t5, e2, n2, r2, o2, s2, i2, a2) => {
14955
14959
  if (1 !== r3.size) return n3 ? l.BuiltIn.Value : r3;
14956
14960
  r3 = r3.getValueAt(0, 0);
14957
14961
  }
14958
- return e3 && (r3 = Jh(r3, $h(r3, true), e3)), r3;
14962
+ return e3 && (r3 = qh(r3, $h(r3, true), e3)), r3;
14959
14963
  })(n2, r2, true);
14960
14964
  return t6 instanceof l.Known ? t6 : void e2.push(t6);
14961
14965
  }
@@ -14985,7 +14989,7 @@ const F_ = (t5, e2, n2, r2, o2, s2, i2, a2) => {
14985
14989
  }
14986
14990
  {
14987
14991
  if (!Array.isArray(n2)) {
14988
- if (r2 && (n2 = Jh(n2, $h(n2, true), r2, false), n2?.isFormulaError)) return e2.push(n2), n2;
14992
+ if (r2 && (n2 = qh(n2, $h(n2, true), r2, false), n2?.isFormulaError)) return e2.push(n2), n2;
14989
14993
  n2 = [n2];
14990
14994
  }
14991
14995
  const l2 = n2.length;
@@ -15084,7 +15088,7 @@ class D_ {
15084
15088
  return true;
15085
15089
  }
15086
15090
  }
15087
- class L_ extends Tl {
15091
+ class L_ extends Nl {
15088
15092
  constructor(t5) {
15089
15093
  super(t5), this._status = Ep.Status.Off, this._statusTransition = null, this._emitter = new Ml(this);
15090
15094
  }
@@ -15102,7 +15106,7 @@ class L_ extends Tl {
15102
15106
  this._context = r2;
15103
15107
  const o2 = await r2._initialize(), s2 = o2.builtInFunctions;
15104
15108
  this._functions = new D_({ transactions: this._transactions, context: r2, readonlyFunctions: s2 });
15105
- const i2 = await import("./Erh1OKURDV0ri0SY.mjs");
15109
+ const i2 = await import("./BSbOEM-6aEtAEUn2.mjs");
15106
15110
  this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status = Ep.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
15107
15111
  } catch (t5) {
15108
15112
  throw this._status = Ep.Status.Off, this._emitter.notify("onError", t5), this._emitter.notify("onStatusChange"), t5;
@@ -15113,7 +15117,7 @@ class L_ extends Tl {
15113
15117
  }
15114
15118
  _createGraph(t5) {
15115
15119
  const e2 = this._options;
15116
- return new Np({ ...e2, ...t5, getFormulaParser: () => this._formulaParser, calculation: this });
15120
+ return new Tp({ ...e2, ...t5, getFormulaParser: () => this._formulaParser, calculation: this });
15117
15121
  }
15118
15122
  async stop() {
15119
15123
  this._status === Ep.Status.Ready && (this._status = Ep.Status.Stopping, this._emitter.notify("onStatusChange"), this._emitter.notify("onStopping"), this._status = Ep.Status.Off, this._emitter.notify("onStatusChange"), this._emitter.notify("onStop"));
@@ -15161,7 +15165,7 @@ class G_ {
15161
15165
  t6.includes(r3) && delete o2[r3];
15162
15166
  }
15163
15167
  }
15164
- const s2 = Nd(o2.fontFamily);
15168
+ const s2 = Td(o2.fontFamily);
15165
15169
  r2.font = {}, s2 && (r2.font.family = s2.family, r2.font.fallbacks = s2.fallbacks, r2.font.size = s2.size), r2.font.size = o2.fontSize, r2.font.weight = o2.fontWeight, r2.font.style = o2.fontStyle, r2.font.fill = o2.color;
15166
15170
  const i2 = ((t6) => {
15167
15171
  if (!t6) return Dd;
@@ -15251,7 +15255,7 @@ class G_ {
15251
15255
  }
15252
15256
  }
15253
15257
  let U_ = false;
15254
- class q_ {
15258
+ class J_ {
15255
15259
  constructor(t5, e2) {
15256
15260
  this._mapStylesByName = /* @__PURE__ */ new Map(), this._arrStyleNames = [], this._mapStylesByName = t5, this._arrStyleNames = e2;
15257
15261
  }
@@ -15275,7 +15279,7 @@ class q_ {
15275
15279
  this._node.htmlText = t5.replace(/(?:\r\n|\r|\n)/g, "<br>");
15276
15280
  }
15277
15281
  }
15278
- const J_ = (t5) => {
15282
+ const q_ = (t5) => {
15279
15283
  const e2 = {};
15280
15284
  if (!t5) return e2;
15281
15285
  t5.endsWith(";") || (t5 += ";");
@@ -15320,7 +15324,7 @@ const J_ = (t5) => {
15320
15324
  }
15321
15325
  const s3 = t7.getAttribute("style");
15322
15326
  if (s3) {
15323
- const t8 = J_(s3);
15327
+ const t8 = q_(s3);
15324
15328
  t8 && (n3 = Object.assign(n3, t8));
15325
15329
  }
15326
15330
  return t7.getAttribute("align") && !n3.textAlign && (n3.textAlign = t7.getAttribute("align")), n3;
@@ -15343,7 +15347,7 @@ const J_ = (t5) => {
15343
15347
  const t9 = new RegExp("{(.*?)}", "gs");
15344
15348
  let e5, r4 = 0;
15345
15349
  for (; null !== (e5 = t9.exec(o3)); ) try {
15346
- const t10 = o3.substring(r4, e5.index), s4 = J_(e5[1]);
15350
+ const t10 = o3.substring(r4, e5.index), s4 = q_(e5[1]);
15347
15351
  n3.set(t10.trim(), s4), r4 = e5.index + e5[0].length;
15348
15352
  } catch (t10) {
15349
15353
  console.warn(t10);
@@ -15826,7 +15830,7 @@ class eS {
15826
15830
  }
15827
15831
  }
15828
15832
  const nS = { transactional: true, ignoreDataChanges: true };
15829
- class rS extends Nl {
15833
+ class rS extends Tl {
15830
15834
  constructor(t5) {
15831
15835
  super({ ...t5, type: "namedReference" });
15832
15836
  const e2 = this;
@@ -16260,7 +16264,7 @@ class hS {
16260
16264
  return true;
16261
16265
  }
16262
16266
  }
16263
- class uS extends Tl {
16267
+ class uS extends Nl {
16264
16268
  constructor(t5) {
16265
16269
  super(t5), t5.json && this._updateState({ data: t5.json });
16266
16270
  }
@@ -16280,7 +16284,7 @@ class uS extends Tl {
16280
16284
  return "Chart";
16281
16285
  }
16282
16286
  }
16283
- class dS extends Tl {
16287
+ class dS extends Nl {
16284
16288
  constructor(t5) {
16285
16289
  super(t5), t5.json && this._updateState({ data: t5.json });
16286
16290
  }
@@ -16300,7 +16304,7 @@ class dS extends Tl {
16300
16304
  return "Shape";
16301
16305
  }
16302
16306
  }
16303
- class gS extends Tl {
16307
+ class gS extends Nl {
16304
16308
  constructor(t5) {
16305
16309
  super(t5), t5.json && this._updateState({ data: t5.json });
16306
16310
  }
@@ -16701,7 +16705,7 @@ class bS {
16701
16705
  return [new bS(t5[0], e2), new bS(t5[1], e2)];
16702
16706
  }
16703
16707
  }
16704
- class CS extends Tl {
16708
+ class CS extends Nl {
16705
16709
  constructor(t5) {
16706
16710
  if (super({ ...t5 }), this._coordsCache = null, !t5.json) throw new Error("json is required");
16707
16711
  this._sheet = t5.sheet, this._styles = t5.sheet?.getStyles() ?? new dp(), this._options = { ...t5 }, t5.setOnContainerCoordsChange(this._processCoordsChange.bind(this)), t5.setCreateSpatial(this._createSpatial.bind(this)), this._getContainerRanges = t5.getContainerRanges, this._setContainerRanges = t5.setContainerRanges;
@@ -16845,7 +16849,7 @@ class vS {
16845
16849
  this._add = t5, this._get = e2;
16846
16850
  }
16847
16851
  add(t5, e2) {
16848
- if (!t5) throw new Error(Ju);
16852
+ if (!t5) throw new Error(qu);
16849
16853
  return this._add(t5, e2);
16850
16854
  }
16851
16855
  search(t5) {
@@ -16903,7 +16907,7 @@ class IS {
16903
16907
  var c2;
16904
16908
  r2(a2.getRotation(), l2.getRotation()) || (n2["mso-rotate"] = (c2 = a2.getRotation(), (c2 %= 360) < 0 && (c2 += 360), c2 > 180 ? c2 = 360 - c2 : c2 > 1 && (c2 *= -1), c2)), r2(a2.getIndent(), l2.getIndent()) || (n2["mso-char-indent-count"] = a2.getIndent()), r2(t5.getFill(), s2.getFill()) || xS(n2, t5.getFill());
16905
16909
  const h2 = t5.getBorder();
16906
- return h2.getTop().isNone() || (n2["border-top"] = Tg(h2.getTop())), h2.getLeft().isNone() || (n2["border-left"] = Tg(h2.getLeft())), h2.getRight().isNone() || (n2["border-right"] = Tg(h2.getRight())), h2.getBottom().isNone() || (n2["border-bottom"] = Tg(h2.getBottom())), h2.getDiagonalUp().isNone() || (n2["border-mso-diagonal-up"] = Tg(h2.getDiagonalUp())), h2.getDiagonalDown().isNone() || (n2["border-mso-diagonal-down"] = Tg(h2.getDiagonalDown())), 0 === Object.keys(n2).length ? null : n2;
16910
+ return h2.getTop().isNone() || (n2["border-top"] = Ng(h2.getTop())), h2.getLeft().isNone() || (n2["border-left"] = Ng(h2.getLeft())), h2.getRight().isNone() || (n2["border-right"] = Ng(h2.getRight())), h2.getBottom().isNone() || (n2["border-bottom"] = Ng(h2.getBottom())), h2.getDiagonalUp().isNone() || (n2["border-mso-diagonal-up"] = Ng(h2.getDiagonalUp())), h2.getDiagonalDown().isNone() || (n2["border-mso-diagonal-down"] = Ng(h2.getDiagonalDown())), 0 === Object.keys(n2).length ? null : n2;
16907
16911
  }
16908
16912
  _createCSSNormalStyle() {
16909
16913
  const t5 = this._normalStyle, e2 = { "padding-top": "1px", "padding-left": "1px", "padding-right": "1px", "mso-ignore": "padding" }, n2 = t5.getFont(), r2 = t5.getAlignment();
@@ -16946,7 +16950,7 @@ class IS {
16946
16950
  }
16947
16951
  }
16948
16952
  const RS = (t5, e2, n2) => {
16949
- const r2 = t5.getOrientation() === N.Column, o2 = (r2 ? "Column" : "Row") + " Copy", s2 = t5.getSnapshot(n2);
16953
+ const r2 = t5.getOrientation() === T.Column, o2 = (r2 ? "Column" : "Row") + " Copy", s2 = t5.getSnapshot(n2);
16950
16954
  return { ...s2, getName: () => o2, getCoords: () => e2, copyTo: async (t6, o3) => {
16951
16955
  const i2 = r2 ? t6.getColumnHeaders() : t6.getRowHeaders(), a2 = { ...n2, ...o3 };
16952
16956
  if (true === a2.includeHeaders) {
@@ -16962,7 +16966,7 @@ const RS = (t5, e2, n2) => {
16962
16966
  const [t6, n3] = ((t7, e3) => {
16963
16967
  const n4 = e3.getRowHeaders(), r3 = e3.getColumnHeaders(), o3 = e3.getUsedRange()?.getCoords(), s3 = n4.getUsedRange()?.getCoords(), i3 = r3.getUsedRange()?.getCoords(), a3 = { ...Y.EmptyRange, ...o3, colEnd: Math.max(o3?.colEnd ?? 0, i3?.max ?? 0), rowEnd: Math.max(o3?.rowEnd ?? 0, s3?.max ?? 0) }, l3 = /* @__PURE__ */ new Map(), c3 = [];
16964
16968
  t7.onStart?.();
16965
- const h2 = { rows: [], cols: [] }, u2 = new q_(l3, c3);
16969
+ const h2 = { rows: [], cols: [] }, u2 = new J_(l3, c3);
16966
16970
  u2.setNode(h2), t7.onTable?.(u2, a3);
16967
16971
  let d2 = 0;
16968
16972
  r3.forEachSpan((e4, n5) => {
@@ -17040,7 +17044,7 @@ const RS = (t5, e2, n2) => {
17040
17044
  const n3 = { ...o2, ...e3 };
17041
17045
  return e3.isCut, s2(t6, n3);
17042
17046
  }, getMarkOptions: () => o2, getSource: () => t5, getName: () => r2, getCoords: () => i2, toText: () => (c2(), l2), toHtml: () => (c2(), a2), toImage: () => null, isISnapshot: true };
17043
- }, MS = (t5, e2) => Math.round(t5 * e2), TS = (t5, e2, n2) => {
17047
+ }, MS = (t5, e2) => Math.round(t5 * e2), NS = (t5, e2, n2) => {
17044
17048
  const r2 = [], o2 = [];
17045
17049
  if (!t5 || 0 === t5.length) return { sizes: r2, hidden: o2 };
17046
17050
  if (!e2 || !n2) return console.warn("_HeaderUtils:default size and scaleFactor should be available"), { sizes: r2, hidden: o2 };
@@ -17057,7 +17061,7 @@ const RS = (t5, e2, n2) => {
17057
17061
  }
17058
17062
  return { sizes: r2, hidden: o2 };
17059
17063
  };
17060
- function NS(t5, e2, n2) {
17064
+ function TS(t5, e2, n2) {
17061
17065
  void 0 !== n2 && (null !== n2 ? t5[e2] = n2 : delete t5[e2]);
17062
17066
  }
17063
17067
  const kS = () => {
@@ -17084,7 +17088,7 @@ const DS = (t5, e2, n2, r2) => {
17084
17088
  isNaN(l2) && (console.warn("headerSize can not be NaN"), l2 = void 0), 0 === l2 && (a2 = true, l2 = void 0), i2 = !o2.autoSize;
17085
17089
  } else null === l2 ? (l2 = null, i2 = !o2.autoSize) : void 0 !== l2 && (console.warn("headerSize can not be type", l2), l2 = void 0);
17086
17090
  }
17087
- return NS(s2, "sz", l2), NS(s2, "h", a2), NS(s2, "csz", i2), 0 === Object.keys(s2).length ? null : s2;
17091
+ return TS(s2, "sz", l2), TS(s2, "h", a2), TS(s2, "csz", i2), 0 === Object.keys(s2).length ? null : s2;
17088
17092
  }
17089
17093
  }
17090
17094
  };
@@ -17178,7 +17182,7 @@ class WS {
17178
17182
  const t5 = -1 === this._defaultCustomSize ? this._options.defaultSize() : this._defaultCustomSize, e2 = this._options.scaleFactor();
17179
17183
  if (t5 !== this._defaultSize || e2 !== this._scaleFactor) {
17180
17184
  this._defaultSize = t5, this._scaleFactor = e2, this._defaultPxSize = MS(t5, e2);
17181
- const n2 = TS(this._headers, t5, e2);
17185
+ const n2 = NS(this._headers, t5, e2);
17182
17186
  this._indexedSizes = n2.sizes, this._indexedHidden = n2.hidden, this._lastVisibleRunsRead = null, this._lastVisibleRunCoords = null;
17183
17187
  }
17184
17188
  }
@@ -17190,7 +17194,7 @@ class WS {
17190
17194
  this._defaultSize = n2;
17191
17195
  const r2 = this._scaleFactor;
17192
17196
  this._defaultPxSize = MS(n2, r2);
17193
- const o2 = TS(t5, n2, r2);
17197
+ const o2 = NS(t5, n2, r2);
17194
17198
  this._indexedSizes = o2.sizes, this._indexedHidden = o2.hidden, this._lastHeaderRead = null, this._readCache = la(this._lastHeaders), this._lastVisibleRunsRead = null, this._lastVisibleRunCoords = null;
17195
17199
  const s2 = this._options.sheet.getStyles().getNormal();
17196
17200
  let i2 = false, a2 = false, l2 = false, c2 = -1;
@@ -17238,7 +17242,7 @@ class WS {
17238
17242
  return _2 = null, w2;
17239
17243
  }
17240
17244
  getRange(t5, e2) {
17241
- if (!t5) throw new Error(Ju);
17245
+ if (!t5) throw new Error(qu);
17242
17246
  const n2 = this, r2 = this._parseHeaderRangeAddress(t5);
17243
17247
  if (r2.min < 0 || r2.max > this._maxDataIndex) return function(t6) {
17244
17248
  const e3 = { getCoords: () => null, getOrientation: () => t6.getOrientation(), toString: () => au, getA1: () => au, getCount: FS, getVisibleCount: FS, isEntireHeaders: OS, forEach: kS, forEachSpan: kS, forEachVisibleSpan: kS, getUsedRange: Qu, getSnapshot: Qu, updateHeaders: Qu, clear: Qu, setHidden: Qu, setSize: Qu, at: Qu, doBatch: Qu, getSheetHeader: () => t6, isICellHeaderRange: true };
@@ -17397,10 +17401,10 @@ class WS {
17397
17401
  if (!t5 || 0 === t5.length) return null;
17398
17402
  const n2 = e2?.skipCustomSize ?? false, r2 = this._isColumn, o2 = this.getSheet().getStyles(), s2 = this._beginCommit({ description: e2?.description ?? `Update ${r2 ? jS : zS}` });
17399
17403
  let i2 = [...this._getState().headers], a2 = false, l2 = false;
17400
- const c2 = r2 ? Na.Edge.Top : Na.Edge.Left;
17401
- Na.oppositeEdge(c2);
17402
- const h2 = r2 ? Na.Edge.Right : Na.Edge.Bottom;
17403
- Na.oppositeEdge(h2);
17404
+ const c2 = r2 ? Ta.Edge.Top : Ta.Edge.Left;
17405
+ Ta.oppositeEdge(c2);
17406
+ const h2 = r2 ? Ta.Edge.Right : Ta.Edge.Bottom;
17407
+ Ta.oppositeEdge(h2);
17404
17408
  const u2 = this, d2 = (t6, e3) => {
17405
17409
  if (this.isProtected()) throw new Error(this._isColumn ? BS : PS);
17406
17410
  l2 = l2 || null === e3, !l2 && e3 && (l2 = !!e3.isICellHeader || (void 0 !== e3?.size || void 0 !== e3?.hidden)), a2 = a2 || null === e3 || void 0 !== e3?.style || e3?.isICellHeader;
@@ -17765,7 +17769,7 @@ class US {
17765
17769
  return false;
17766
17770
  }
17767
17771
  }
17768
- class qS {
17772
+ class JS {
17769
17773
  constructor(t5, e2, n2, r2, o2, s2, i2, a2, l2, c2) {
17770
17774
  this.uuid = t5, this.spatialsIds = e2, this.isRanges = r2, this.coords = n2, this.sheet = o2, this.generation = s2, this.handler = i2, this.handlerW = a2, this.removeListener = l2, this.options = c2;
17771
17775
  }
@@ -17795,20 +17799,20 @@ class qS {
17795
17799
  const e2 = this.spatialsIds, n2 = e2.indexOf(t5.value.uuid);
17796
17800
  console.assert(-1 !== n2, "invalid uuid");
17797
17801
  const r2 = this.coords, o2 = r2.slice(0, n2).concat(r2.slice(n2 + 1)), s2 = e2.slice(0, n2).concat(e2.slice(n2 + 1));
17798
- return new qS(this.uuid, s2, o2, this.isRanges, this.sheet, this.generation, this.handler, this.handlerW, this.removeListener, this.options);
17802
+ return new JS(this.uuid, s2, o2, this.isRanges, this.sheet, this.generation, this.handler, this.handlerW, this.removeListener, this.options);
17799
17803
  }
17800
17804
  processShift(t5) {
17801
17805
  const e2 = this.spatialsIds.indexOf(t5.value.uuid);
17802
17806
  console.assert(-1 !== e2, "invalid uuid");
17803
17807
  const n2 = [...this.coords];
17804
- return n2[e2] = { ...n2[e2], ...Y.sanitizeRange(t5) }, new qS(this.uuid, this.spatialsIds, n2, this.isRanges, this.sheet, this.generation, this.handler, this.handlerW, this.removeListener, this.options);
17808
+ return n2[e2] = { ...n2[e2], ...Y.sanitizeRange(t5) }, new JS(this.uuid, this.spatialsIds, n2, this.isRanges, this.sheet, this.generation, this.handler, this.handlerW, this.removeListener, this.options);
17805
17809
  }
17806
17810
  processSplit(t5) {
17807
17811
  }
17808
17812
  processMerge(t5) {
17809
17813
  }
17810
17814
  }
17811
- const JS = Object.freeze({ coords: Y.EmptyCell, topLeft: T.EmptyTopLeft }), KS = Object.freeze({ cell: Y.EmptyCell, ranges: bt.EmptyArray, rangeIndex: 0 }), XS = Object.freeze({ selection: KS, topLeft: T.EmptyTopLeft, freezePanes: JS, showRowHeaders: true, showColumnHeaders: true, showRowGridlines: true, showColumnGridlines: true, rowHeaderStyle: $_.HeaderTextStyle.One, columnHeaderStyle: $_.HeaderTextStyle.A1, showFormulas: false, showZeros: true, zoomScale: 100, gridLineColor: null });
17815
+ const qS = Object.freeze({ coords: Y.EmptyCell, topLeft: N.EmptyTopLeft }), KS = Object.freeze({ cell: Y.EmptyCell, ranges: bt.EmptyArray, rangeIndex: 0 }), XS = Object.freeze({ selection: KS, topLeft: N.EmptyTopLeft, freezePanes: qS, showRowHeaders: true, showColumnHeaders: true, showRowGridlines: true, showColumnGridlines: true, rowHeaderStyle: $_.HeaderTextStyle.One, columnHeaderStyle: $_.HeaderTextStyle.A1, showFormulas: false, showZeros: true, zoomScale: 100, gridLineColor: null });
17812
17816
  class YS {
17813
17817
  constructor(t5) {
17814
17818
  if (this._emitter = null, !t5?.sheet) throw new Error("SheetView requires a sheet.");
@@ -17831,7 +17835,7 @@ class YS {
17831
17835
  return this._state.freezePanes = this._mergeFreezePanes(t5), this._emitter.notify("onFreezeSplitChange"), this;
17832
17836
  }
17833
17837
  _mergeFreezePanes(t5) {
17834
- return t5 ? { ...this._state.freezePanes, coords: { colIndex: t5?.coords?.colIndex ?? this._state.freezePanes.coords.colIndex, rowIndex: t5?.coords?.rowIndex ?? this._state.freezePanes.coords.rowIndex }, topLeft: { left: t5?.topLeft?.left ?? this._state.topLeft.left, top: t5?.topLeft?.top ?? this._state.topLeft.top } } : JS;
17838
+ return t5 ? { ...this._state.freezePanes, coords: { colIndex: t5?.coords?.colIndex ?? this._state.freezePanes.coords.colIndex, rowIndex: t5?.coords?.rowIndex ?? this._state.freezePanes.coords.rowIndex }, topLeft: { left: t5?.topLeft?.left ?? this._state.topLeft.left, top: t5?.topLeft?.top ?? this._state.topLeft.top } } : qS;
17835
17839
  }
17836
17840
  isShowRowHeaders() {
17837
17841
  return this._state.showRowHeaders;
@@ -17940,7 +17944,7 @@ class YS {
17940
17944
  const r2 = this._state[e2[n3]];
17941
17945
  null != r2 && r2 !== XS[e2[n3]] && (t5[e2[n3]] = r2);
17942
17946
  }
17943
- delete t5.movableSelection, delete t5.gridLineColor, this._state.gridLineColor instanceof Ta && (t5.gridLineColor = this._state.gridLineColor.toString()), delete t5.topLeft, !this._state.topLeft || 0 === this._state.topLeft.left && 0 === this._state.topLeft.top || (t5.topLeft = { left: this._state.topLeft.left ?? 0, top: this._state.topLeft.top ?? 0 }), delete t5.selection;
17947
+ delete t5.movableSelection, delete t5.gridLineColor, this._state.gridLineColor instanceof Na && (t5.gridLineColor = this._state.gridLineColor.toString()), delete t5.topLeft, !this._state.topLeft || 0 === this._state.topLeft.left && 0 === this._state.topLeft.top || (t5.topLeft = { left: this._state.topLeft.left ?? 0, top: this._state.topLeft.top ?? 0 }), delete t5.selection;
17944
17948
  const n2 = this._state.selection;
17945
17949
  if (n2) {
17946
17950
  let e3 = {};
@@ -17998,7 +18002,7 @@ class YS {
17998
18002
  }
17999
18003
  }
18000
18004
  async function QS() {
18001
- const { getCrypto: t5 } = await import("./Pay7Q8xaBXR8Xmez.mjs");
18005
+ const { getCrypto: t5 } = await import("./CteSWuaSiS_quyBE.mjs");
18002
18006
  return t5();
18003
18007
  }
18004
18008
  const ZS = async (t5, e2, ...n2) => {
@@ -18215,11 +18219,11 @@ class iw {
18215
18219
  }
18216
18220
  _createRanges(t5, e2) {
18217
18221
  let n2 = this._options;
18218
- return e2 && (n2 = { ...this._options, getOptions: Nf(this._options?.getOptions, e2) }), new iw(t5, this._sheet, n2);
18222
+ return e2 && (n2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new iw(t5, this._sheet, n2);
18219
18223
  }
18220
18224
  _createRange(t5, e2) {
18221
18225
  let n2 = this._options;
18222
- return e2 && (n2 = { ...this._options, getOptions: Nf(this._options?.getOptions, e2) }), new aw(t5, this._sheet, n2);
18226
+ return e2 && (n2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new aw(t5, this._sheet, n2);
18223
18227
  }
18224
18228
  _validateWrite() {
18225
18229
  const t5 = this._readOnly;
@@ -18375,7 +18379,7 @@ class iw {
18375
18379
  return uf(this.getCoords(), this._sheet._entireCoords, true);
18376
18380
  }
18377
18381
  isOverlapping() {
18378
- return Nh(this.getCoords());
18382
+ return Th(this.getCoords());
18379
18383
  }
18380
18384
  at(t5) {
18381
18385
  const e2 = this.getCoords();
@@ -18419,11 +18423,11 @@ class aw {
18419
18423
  if (!t5) return bf(n2, n2._entireCoords);
18420
18424
  if (n2._validateCoords(t5), n2._closed) return bf(null, n2._entireCoords, t5);
18421
18425
  let r2 = this._options;
18422
- return e2 && (r2 = { ...this._options, getOptions: Nf(this._options?.getOptions, e2) }), new aw(t5, this._sheet, r2);
18426
+ return e2 && (r2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new aw(t5, this._sheet, r2);
18423
18427
  }
18424
18428
  _createRanges(t5, e2) {
18425
18429
  let n2 = this._options;
18426
- return e2 && (n2 = { ...this._options, getOptions: Nf(this._options?.getOptions, e2) }), new iw(t5, this._sheet, n2);
18430
+ return e2 && (n2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new iw(t5, this._sheet, n2);
18427
18431
  }
18428
18432
  _deriveRanges(t5, e2) {
18429
18433
  const n2 = this.getCoords();
@@ -18442,7 +18446,7 @@ class aw {
18442
18446
  r2 = { ...o2, ...t6 };
18443
18447
  }
18444
18448
  var s2, i2;
18445
- return s2 = r2, (i2 = o2) && (void 0 === i2.$colStart ? delete s2.$colStart : s2.$colStart = i2.$colStart, void 0 === i2.$rowStart ? delete s2.$rowStart : s2.$rowStart = i2.$rowStart, void 0 === i2.$colEnd ? delete s2.$colEnd : s2.$colEnd = i2.$colEnd, void 0 === i2.$rowEnd ? delete s2.$rowEnd : s2.$rowEnd = i2.$rowEnd), this._createRange(r2, Nf(this._options?.getOptions, e2));
18449
+ return s2 = r2, (i2 = o2) && (void 0 === i2.$colStart ? delete s2.$colStart : s2.$colStart = i2.$colStart, void 0 === i2.$rowStart ? delete s2.$rowStart : s2.$rowStart = i2.$rowStart, void 0 === i2.$colEnd ? delete s2.$colEnd : s2.$colEnd = i2.$colEnd, void 0 === i2.$rowEnd ? delete s2.$rowEnd : s2.$rowEnd = i2.$rowEnd), this._createRange(r2, Tf(this._options?.getOptions, e2));
18446
18450
  }
18447
18451
  _validateMaxSize(t5 = 5e4) {
18448
18452
  const e2 = this.getCoords(), n2 = this._sheet, r2 = n2._colHeaders.getVisibleCount(e2.colStart, e2.colEnd);
@@ -18805,7 +18809,7 @@ class pw {
18805
18809
  constructor(t5) {
18806
18810
  this._lastTransactionUUID = null, this._emitter = null, this._initializing = true, this._emitterMovables = null, this._rangesListenerSorted = null, this._lastCellDecoded = { address: null, coords: null }, this._lastCellSelected = { coords: null, cell: null }, this._lastCellRead = { coords: null, cell: null }, this._lastValueRead = { range: null, isDateOrTime: null }, this._lastGetRangeRead = {}, this._lastUsedCoordsRead = { coords: null, range: null }, this._lastActiveRead = { selection: null, range: null, ranges: null }, this._lastRangeRead = { address: null, range: null, ranges: null }, this._isDataColumn = true, this._isDate1904 = false, this._colHeaders = null, this._colHeadersShiftCallback = null, this._colHeadersListener = null, this._colHeadersRemoveListener = null, this._rowHeaders = null, this._rowHeadersShiftCallback = null, this._rowHeadersListener = null, this._rowHeadersRemoveListener = null, this._closed = false;
18807
18811
  const e2 = Object.freeze({ ...t5 });
18808
- We._validate(true), this._transactions = e2.transactions ?? new ue(), this._ownTransactions = !e2.transactions;
18812
+ je._validate(true), this._transactions = e2.transactions ?? new ue(), this._ownTransactions = !e2.transactions;
18809
18813
  const n2 = this._beginCommit({ description: "New Sheet" }), r2 = this;
18810
18814
  try {
18811
18815
  this._entireCoords = Object.freeze({ colStart: 0, rowStart: 0, colEnd: (e2.maxColumns ?? lw) - 1, rowEnd: (e2.maxRows ?? cw) - 1 }), this._strings = e2.strings ?? new wp(), this._ownStrings = !e2.strings;
@@ -18880,7 +18884,7 @@ class pw {
18880
18884
  return n2 && (this._lastRangeRead.address = { ...t5 }, this._lastRangeRead.range = o2), o2;
18881
18885
  }
18882
18886
  getRanges(t5, e2) {
18883
- if (!t5) throw new Error(Ju);
18887
+ if (!t5) throw new Error(qu);
18884
18888
  const n2 = this._rangesToCoords(t5);
18885
18889
  if (0 === n2.length) throw this._createRangeError(t5);
18886
18890
  return this._createRanges(n2, e2);
@@ -18919,7 +18923,7 @@ class pw {
18919
18923
  if (!(Number.isInteger(n2) && Number.isFinite(n2) && Number.isInteger(r2) && Number.isFinite(r2) && Number.isInteger(o2) && Number.isFinite(o2) && Number.isInteger(s2) && Number.isFinite(s2))) throw new Error("Invalid range. All points must be valid integers.");
18920
18924
  }
18921
18925
  _createRangeError(t5) {
18922
- return t5 ? new Error(Ju) : new Error(Yu(t5));
18926
+ return t5 ? new Error(qu) : new Error(Yu(t5));
18923
18927
  }
18924
18928
  _protectionCheck(t5 = null, e2 = null, n2 = null) {
18925
18929
  if (t5 && this._closed) return;
@@ -18939,7 +18943,7 @@ class pw {
18939
18943
  _rangesToCoords(t5, e2 = null, n2 = true, r2 = false) {
18940
18944
  if (e2 && this._closed) return bt.EmptyArray;
18941
18945
  if (null == t5) return bt.EmptyArray;
18942
- const o2 = this, s2 = Nu(t5, this._entireCoords, r2 ? Iu : Ru, (t6) => {
18946
+ const o2 = this, s2 = Tu(t5, this._entireCoords, r2 ? Iu : Ru, (t6) => {
18943
18947
  if (n2 && "string" == typeof t6) {
18944
18948
  const e3 = o2.getNames()?.getByName(t6);
18945
18949
  if (e3) return e3.getRanges().getCoords();
@@ -18963,7 +18967,7 @@ class pw {
18963
18967
  return this._protectionCheck(e2, s2), s2;
18964
18968
  }
18965
18969
  _rangeToCoords(t5, e2 = null, n2 = true) {
18966
- if (!t5) throw new Error(Ju);
18970
+ if (!t5) throw new Error(qu);
18967
18971
  const r2 = e2 ? (t6) => e2(t6) : void 0, o2 = this._rangesToCoords(t5, r2, n2);
18968
18972
  if (0 === o2.length) throw new Error(Yu(t5));
18969
18973
  return o2[0];
@@ -19012,7 +19016,7 @@ class pw {
19012
19016
  return { next(o2) {
19013
19017
  const s2 = r2.next(o2);
19014
19018
  if (s2.done) return Pl;
19015
- const i2 = s2.value, a2 = new Tf(n2, t5, e2), l2 = a2.context;
19019
+ const i2 = s2.value, a2 = new Nf(n2, t5, e2), l2 = a2.context;
19016
19020
  return { done: false, value: { value: a2.setState(i2), context: l2 } };
19017
19021
  }, [Symbol.iterator]() {
19018
19022
  return this;
@@ -19030,7 +19034,7 @@ class pw {
19030
19034
  c2._collectRanges({ rowStart: t6, rowEnd: n3, colStart: o3, colEnd: s3 }, l2, r2, e2);
19031
19035
  }, h2);
19032
19036
  }, d2);
19033
- const m2 = new ql.IteratorInstance(l2, t5), f2 = t5?.reverse ?? false, p2 = t5?.byCell;
19037
+ const m2 = new Jl.IteratorInstance(l2, t5), f2 = t5?.reverse ?? false, p2 = t5?.byCell;
19034
19038
  let _2;
19035
19039
  const S2 = { next: (t6) => {
19036
19040
  if (_2 = m2.next(t6), _2.done) return Pl;
@@ -19142,7 +19146,7 @@ class pw {
19142
19146
  return o3 && (y2 = e3), { done: false, value: [e3, n3, r3, u3, f3] };
19143
19147
  };
19144
19148
  let R2 = { next: v2, return: (t6) => null, throw: (t6) => null };
19145
- return s2 && (R2 = new Jc(R2, a2)), R2;
19149
+ return s2 && (R2 = new qc(R2, a2)), R2;
19146
19150
  }
19147
19151
  _indexMerges(t5, e2 = null) {
19148
19152
  if (!(t5 && 0 !== t5.length || e2 && 0 !== e2.length)) return;
@@ -19253,22 +19257,22 @@ class pw {
19253
19257
  let C2 = false;
19254
19258
  g2 && this._hasRangedEntries("unlockSpatial", y2) && (b2[id.Type.Unlock] = false, C2 = true), this._hasRangedEntries("mergeSpatial", y2) && (b2[id.Type.Merge] = false, C2 = true);
19255
19259
  const v2 = this._rangeStateIterator({ bounds: y2, orientation: d2, includeRangeTypes: b2, reuseIterator: { done: false, value: null } });
19256
- let x2 = v2.next(), I2 = -1, R2 = -1, A2 = -1, M2 = -1, T2 = null;
19260
+ let x2 = v2.next(), I2 = -1, R2 = -1, A2 = -1, M2 = -1, N2 = null;
19257
19261
  if (!x2.done) {
19258
19262
  const t6 = x2.value, e3 = t6.start, n3 = t6.end;
19259
- I2 = u2 ? e3.colIndex : e3.rowIndex, R2 = u2 ? n3.colIndex : n3.rowIndex, A2 = u2 ? e3.rowIndex : e3.colIndex, M2 = u2 ? n3.rowIndex : n3.colIndex, T2 = t6.intersection;
19263
+ I2 = u2 ? e3.colIndex : e3.rowIndex, R2 = u2 ? n3.colIndex : n3.rowIndex, A2 = u2 ? e3.rowIndex : e3.colIndex, M2 = u2 ? n3.rowIndex : n3.colIndex, N2 = t6.intersection;
19260
19264
  }
19261
- let N2 = (t6, e3) => {
19265
+ let T2 = (t6, e3) => {
19262
19266
  do {
19263
- if (!T2 || t6 <= A2 && e3 < A2) return null;
19264
- if (t6 >= I2 && e3 >= A2 && t6 <= R2 && e3 <= M2) return T2;
19265
- if (x2 = v2.next(), x2.done) T2 = null, N2 = null, C2 = false;
19267
+ if (!N2 || t6 <= A2 && e3 < A2) return null;
19268
+ if (t6 >= I2 && e3 >= A2 && t6 <= R2 && e3 <= M2) return N2;
19269
+ if (x2 = v2.next(), x2.done) N2 = null, T2 = null, C2 = false;
19266
19270
  else {
19267
19271
  const t7 = x2.value;
19268
- I2 = u2 ? t7.start.colIndex : t7.start.rowIndex, R2 = u2 ? t7.end.colIndex : t7.end.rowIndex, A2 = u2 ? t7.start.rowIndex : t7.start.colIndex, M2 = u2 ? t7.end.rowIndex : t7.end.colIndex, T2 = t7.intersection;
19272
+ I2 = u2 ? t7.start.colIndex : t7.start.rowIndex, R2 = u2 ? t7.end.colIndex : t7.end.rowIndex, A2 = u2 ? t7.start.rowIndex : t7.start.colIndex, M2 = u2 ? t7.end.rowIndex : t7.end.colIndex, N2 = t7.intersection;
19269
19273
  }
19270
- } while (T2);
19271
- return T2;
19274
+ } while (N2);
19275
+ return N2;
19272
19276
  };
19273
19277
  const k2 = c2.getState(this), F2 = k2.cellValuesGrid.clone(), O2 = k2.calcGraph.clone(), D2 = k2.formulaSpatial.clone(), L2 = k2.spillSpatial.clone(), B2 = k2.pendingSpatial.clone(), P2 = k2.calcErrorsSpatial.clone(), z2 = k2.contentfulSpatial.clone(), j2 = rh(u2), W2 = rh(u2, (t6, e3) => {
19274
19278
  if (t6 === e3) return e3;
@@ -19280,10 +19284,10 @@ class pw {
19280
19284
  let G2 = null, U2 = null;
19281
19285
  if (false !== e2?.textParser) {
19282
19286
  const t6 = e2 && true !== e2.textParser ? e2.textParser : {};
19283
- U2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t6 }, G2 = new Tf(f2, null, this._cellOptions);
19287
+ U2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t6 }, G2 = new Nf(f2, null, this._cellOptions);
19284
19288
  }
19285
- const q2 = [], J2 = this._cellOptions, K2 = /* @__PURE__ */ new Map(), X2 = Ff, Y2 = (t6, e3, n3) => {
19286
- const r3 = N2?.(e3, n3);
19289
+ const J2 = [], q2 = this._cellOptions, K2 = /* @__PURE__ */ new Map(), X2 = Ff, Y2 = (t6, e3, n3) => {
19290
+ const r3 = T2?.(e3, n3);
19287
19291
  if (r3?.merge) {
19288
19292
  const t7 = r3.merge.getCoords(), o3 = u2 ? t7.colStart : t7.rowStart, s3 = u2 ? t7.rowStart : t7.colStart;
19289
19293
  if (o3 !== e3 || s3 !== n3) return;
@@ -19295,12 +19299,12 @@ class pw {
19295
19299
  $2.push({ colStart: u2 ? e3 : n3, rowStart: u2 ? n3 : e3, colEnd: (u2 ? e3 : n3) + t7.width - 1, rowEnd: (u2 ? n3 : e3) + t7.height - 1 });
19296
19300
  }
19297
19301
  }
19298
- let i2 = qm(t6, J2, U2, K2);
19302
+ let i2 = Jm(t6, q2, U2, K2);
19299
19303
  if (void 0 === i2) return;
19300
19304
  const a3 = i2.value;
19301
19305
  if (i2.stringToParse) {
19302
19306
  vw[0].colIndex = u2 ? e3 : n3, vw[0].rowIndex = u2 ? n3 : e3, vw[1] = a3, vw[2] = r3, G2.setState(vw);
19303
- const t7 = U2?.parse(i2.stringToParse, G2.context), o3 = qm(t7, J2, U2, K2, true);
19307
+ const t7 = U2?.parse(i2.stringToParse, G2.context), o3 = Jm(t7, q2, U2, K2, true);
19304
19308
  if (G2.clear(), null === o3) return o3;
19305
19309
  void 0 !== o3 && (i2 = { ...o3 });
19306
19310
  }
@@ -19348,7 +19352,7 @@ class pw {
19348
19352
  s4.push([l3, t9]), h3 = null;
19349
19353
  }
19350
19354
  }
19351
- s4.length > 0 && q2.push([n4, s4]);
19355
+ s4.length > 0 && J2.push([n4, s4]);
19352
19356
  }
19353
19357
  const n3 = j2.done(), r3 = n3.length;
19354
19358
  for (let t7 = 0; t7 < r3; t7++) {
@@ -19358,13 +19362,13 @@ class pw {
19358
19362
  this._updateFormulaSpatial(D2, null, r4);
19359
19363
  }
19360
19364
  let s3;
19361
- q2.length > 0 && (F2.setValues(q2), s3 = { tuples: q2, bounds: l2 });
19365
+ J2.length > 0 && (F2.setValues(J2), s3 = { tuples: J2, bounds: l2 });
19362
19366
  let d3, g3 = V2.done();
19363
19367
  if (g3.length > 1 && (g3 = Dc(g3, i.Orientation.Column, 1)), s3 || g3.length > 0) {
19364
19368
  const t7 = O2.setInputs(s3, g3);
19365
19369
  d3 = this._updateFormulaSpatial(D2, t7.inserts, t7.removes, k2.directStyleSpatial);
19366
19370
  }
19367
- const m3 = Of(q2, u2), E3 = m3.length;
19371
+ const m3 = Of(J2, u2), E3 = m3.length;
19368
19372
  for (let t7 = 0; t7 < E3; t7++) z2.insertNonOverlapping(m3[t7]);
19369
19373
  const b3 = W2.done();
19370
19374
  b3.length > 0 && this._updateStyles(b3), $2.length > 0 && this._merge($2);
@@ -19441,8 +19445,8 @@ class pw {
19441
19445
  }
19442
19446
  if (!S2) return;
19443
19447
  if (0 === _2.length) return;
19444
- const A2 = /* @__PURE__ */ new Map(), M2 = /* @__PURE__ */ new Map(), T2 = e2?.collators ?? Fl.DefaultCollators, N2 = T2.length;
19445
- for (let t6 = 0; t6 < N2; t6++) A2.set(T2[t6].type, T2[t6].compare), M2.set(T2[t6].type, t6);
19448
+ const A2 = /* @__PURE__ */ new Map(), M2 = /* @__PURE__ */ new Map(), N2 = e2?.collators ?? Fl.DefaultCollators, T2 = N2.length;
19449
+ for (let t6 = 0; t6 < T2; t6++) A2.set(N2[t6].type, N2[t6].compare), M2.set(N2[t6].type, t6);
19446
19450
  let k2 = null, F2 = null, O2 = null;
19447
19451
  _2.sort((t6, e3) => {
19448
19452
  const n3 = f2.length;
@@ -19462,7 +19466,7 @@ class pw {
19462
19466
  if (k2 !== h3) {
19463
19467
  t7 = A2.get(h3), F2 = t7, k2 = h3;
19464
19468
  let e4 = M2.get(u3);
19465
- const r4 = T2[e4].defaultOptions;
19469
+ const r4 = N2[e4].defaultOptions;
19466
19470
  O2 = { ...r4, ...n4.collatorOptions };
19467
19471
  }
19468
19472
  d3 = t7(i2, a3, O2);
@@ -19517,7 +19521,7 @@ class pw {
19517
19521
  if (o2 % y2 !== 0) throw new Error(((t6) => `When filling with merged cells the amount to fill must be a multiple of the input range [${t6}].`)(y2));
19518
19522
  const E2 = s2 ? "rowIndex" : "colIndex", b2 = s2 ? "colIndex" : "rowIndex", C2 = s2 ? t5.rowEnd + 1 - t5.rowStart : t5.colEnd + 1 - t5.colStart, v2 = s2 ? t5.rowStart : t5.colStart, x2 = s2 ? t5.rowEnd : t5.colEnd, I2 = s2 ? e2.rowStart : e2.colStart, R2 = s2 ? e2.rowEnd : e2.colEnd, A2 = s2 ? r2 === i.Direction.Down : r2 === i.Direction.Right;
19519
19523
  A2 || (d2.reverse = true);
19520
- const M2 = A2 ? x2 + 1 : I2, T2 = (A2 ? R2 : v2 - 1) - M2 + 1, N2 = s2 ? t5.colEnd : t5.rowEnd;
19524
+ const M2 = A2 ? x2 + 1 : I2, N2 = (A2 ? R2 : v2 - 1) - M2 + 1, T2 = s2 ? t5.colEnd : t5.rowEnd;
19521
19525
  l2.push(Y.unionRanges(f2, t5));
19522
19526
  const k2 = [];
19523
19527
  let F2 = null;
@@ -19553,7 +19557,7 @@ class pw {
19553
19557
  }, P2 = this;
19554
19558
  if (c2) {
19555
19559
  const t6 = k2[k2.length - 1];
19556
- if (k2[k2.length - 1]?.oppositeIndex !== N2) return null;
19560
+ if (k2[k2.length - 1]?.oppositeIndex !== T2) return null;
19557
19561
  const e3 = B2(u2, t6.values);
19558
19562
  return c2((t7) => {
19559
19563
  const n3 = P2._rangeToCoords(t7);
@@ -19567,8 +19571,8 @@ class pw {
19567
19571
  const z2 = this._createIncrementalUpdater({ orientation: s2 ? i.Orientation.Column : i.Orientation.Row }), j2 = k2.length;
19568
19572
  k2.sort((t6, e3) => t6.oppositeIndex - e3.oppositeIndex);
19569
19573
  for (let t6 = 0; t6 < j2; t6++) {
19570
- const e3 = t6, n3 = B2(u2, k2[e3].values), r3 = k2[e3].oppositeIndex, o3 = A2 ? C2 : C2 + T2 - 1, i2 = this.isDate1904();
19571
- for (let t7 = 0; t7 < T2; t7++) {
19574
+ const e3 = t6, n3 = B2(u2, k2[e3].values), r3 = k2[e3].oppositeIndex, o3 = A2 ? C2 : C2 + N2 - 1, i2 = this.isDate1904();
19575
+ for (let t7 = 0; t7 < N2; t7++) {
19572
19576
  let e4 = n3(o3 + (A2 ? t7 : -t7));
19573
19577
  Ms(e4) && (e4 = Ls(e4, i2));
19574
19578
  const a3 = M2 + t7;
@@ -19603,15 +19607,15 @@ class pw {
19603
19607
  }
19604
19608
  const V2 = this._getState(), $2 = {}, G2 = {};
19605
19609
  G2.directStyleSpatial = V2.directStyleSpatial, G2.continuousFillSpatial = V2.continuousFillSpatial;
19606
- let U2 = t5, q2 = f2;
19610
+ let U2 = t5, J2 = f2;
19607
19611
  if (!A2) {
19608
19612
  let e3 = (s2 ? p2.rowEnd + 1 - p2.rowStart : p2.colEnd + 1 - p2.colStart) % C2;
19609
19613
  const n3 = s2 ? "rowStart" : "colStart", r3 = s2 ? "rowEnd" : "colEnd";
19610
- 0 !== e3 && (q2 = { ...f2, [r3]: Math.min(f2[r3], f2[n3] + e3) }, U2 = { ...t5, [n3]: t5[r3] - e3 + 1 }, f2[n3] = f2[n3] + e3);
19614
+ 0 !== e3 && (J2 = { ...f2, [r3]: Math.min(f2[r3], f2[n3] + e3) }, U2 = { ...t5, [n3]: t5[r3] - e3 + 1 }, f2[n3] = f2[n3] + e3);
19611
19615
  }
19612
- const J2 = Object.keys(G2), K2 = J2.length;
19616
+ const q2 = Object.keys(G2), K2 = q2.length;
19613
19617
  for (let t6 = 0; t6 < K2; t6++) {
19614
- const e3 = J2[t6], n3 = G2[e3].createCopiedEntries(U2, q2), r3 = V2[e3].clone(), o3 = n3.removes, s3 = o3.length;
19618
+ const e3 = q2[t6], n3 = G2[e3].createCopiedEntries(U2, J2), r3 = V2[e3].clone(), o3 = n3.removes, s3 = o3.length;
19615
19619
  for (let t7 = 0; t7 < s3; t7++) r3.remove(o3[t7]);
19616
19620
  r3.load(n3.inserts), $2[e3] = r3;
19617
19621
  }
@@ -19891,7 +19895,7 @@ class pw {
19891
19895
  let c2 = t5[0];
19892
19896
  try {
19893
19897
  const h2 = this._getMerges(t5);
19894
- if (Nh(t5) || h2.length > 0) {
19898
+ if (Th(t5) || h2.length > 0) {
19895
19899
  const e3 = Y.unionRangesArrays(h2), n3 = Y.unionRangesArrays(t5);
19896
19900
  if (!(!e3 && !n3 || e3 && n3 && Y.isRangeWithinRange(e3, n3))) throw console.warn(_d, t5), new Error(_d);
19897
19901
  this._unmerge(h2);
@@ -19945,7 +19949,7 @@ class pw {
19945
19949
  }
19946
19950
  }
19947
19951
  _unmerge(t5, e2) {
19948
- if (this._protectionCheck(mw, t5), Nh(t5)) throw new Error("We can't unmerge intersecting ranges.");
19952
+ if (this._protectionCheck(mw, t5), Th(t5)) throw new Error("We can't unmerge intersecting ranges.");
19949
19953
  if (!this._getState()) return null;
19950
19954
  const n2 = Y.unionRangesArrays(t5), r2 = Bf(t5), o2 = this._beginCommit({ description: e2?.description ?? "Unmerge" }), s2 = o2.getState(this).mergeSpatial, i2 = [];
19951
19955
  try {
@@ -20184,7 +20188,7 @@ class pw {
20184
20188
  let M2;
20185
20189
  if (d2) {
20186
20190
  M2 = m2.startIncrementalUpdates({ orientation: o2.transpose ? i.Orientation.Row : i.Orientation.Column });
20187
- const t6 = { orientation: A2, includeRangeTypes: R2, bounds: c2 }, e3 = new Tf(this._strings, t6, this._cellOptions), n4 = (t7, n5, s3) => {
20191
+ const t6 = { orientation: A2, includeRangeTypes: R2, bounds: c2 }, e3 = new Nf(this._strings, t6, this._cellOptions), n4 = (t7, n5, s3) => {
20188
20192
  const i2 = t7[0], a4 = e3.setState(t7), h4 = e3.context, m3 = h4.getCell(), _4 = m3.isTopLeft();
20189
20193
  let S3 = x2, w3 = E3;
20190
20194
  if (r3) {
@@ -20225,11 +20229,11 @@ class pw {
20225
20229
  n4(e4, r4.rowIndex - o3.rowIndex, r4.colIndex - o3.colIndex), _3 = h3.next();
20226
20230
  }
20227
20231
  }
20228
- const T2 = e2._getState(), N2 = {}, k2 = { transpose: r3 ?? false };
20229
- u2 && (N2.directStyleSpatial = T2.directStyleSpatial, N2.continuousFillSpatial = T2.continuousFillSpatial, N2.mergeSpatial = T2.mergeSpatial), h2 && (t5._clear([c2], void 0, void 0, false, true), w2.push(c2), N2.rangesListenerSpatial2 = T2.rangesListenerSpatial2);
20230
- const F2 = a2, O2 = F2._getState(), D2 = Object.keys(N2), L2 = D2.length;
20232
+ const N2 = e2._getState(), T2 = {}, k2 = { transpose: r3 ?? false };
20233
+ u2 && (T2.directStyleSpatial = N2.directStyleSpatial, T2.continuousFillSpatial = N2.continuousFillSpatial, T2.mergeSpatial = N2.mergeSpatial), h2 && (t5._clear([c2], void 0, void 0, false, true), w2.push(c2), T2.rangesListenerSpatial2 = N2.rangesListenerSpatial2);
20234
+ const F2 = a2, O2 = F2._getState(), D2 = Object.keys(T2), L2 = D2.length;
20231
20235
  for (let t6 = 0; t6 < L2; t6++) {
20232
- const e3 = D2[t6], n4 = N2[e3].createCopiedEntries(c2, b2, k2), r4 = O2[e3].clone(), o3 = n4.removes, s3 = o3.length;
20236
+ const e3 = D2[t6], n4 = T2[e3].createCopiedEntries(c2, b2, k2), r4 = O2[e3].clone(), o3 = n4.removes, s3 = o3.length;
20233
20237
  for (let t7 = 0; t7 < s3; t7++) r4.remove(o3[t7]);
20234
20238
  r4.load(n4.inserts), O2[e3] = r4;
20235
20239
  }
@@ -20336,13 +20340,13 @@ class pw {
20336
20340
  o2._validateCoords(t6, e3 ?? Sd);
20337
20341
  });
20338
20342
  const s2 = n2?.description ?? "Insert Cells", a2 = (e2 ?? this._getDefaultShiftOrientation(t5[0])) === i.Orientation.Column;
20339
- if (this._protectionCheck(() => [a2 ? "insertColumns" : "insertRows"], t5, s2), Nh(t5)) throw new Error("We can't insert cells with overlapping selections.");
20343
+ if (this._protectionCheck(() => [a2 ? "insertColumns" : "insertRows"], t5, s2), Th(t5)) throw new Error("We can't insert cells with overlapping selections.");
20340
20344
  const l2 = this._entireCoords;
20341
20345
  let c2 = l2.colEnd, h2 = l2.rowEnd;
20342
20346
  const u2 = Bf(t5), d2 = this._beginCommit({ description: s2, operation: { name: "insertCells" } }), g2 = d2.getState(this), m2 = a2 ? i.Direction.Right : i.Direction.Down;
20343
20347
  try {
20344
20348
  let e3 = g2.cellValuesGrid, o3 = g2.contentfulSpatial, s3 = g2.unlockSpatial, f2 = g2.mergeSpatial, p2 = g2.directStyleSpatial, _2 = g2.continuousFillSpatial, S2 = g2.conditionalSpatial, w2 = g2.hyperlinkSpatial, y2 = g2.commentsSpatial, E2 = g2.movableSpatial, b2 = g2.tableSpatial, C2 = g2.calcGraph, v2 = g2.rangesListenerSpatial2, x2 = g2.rangeListenerSpatial, I2 = g2.rangesListenerMap;
20345
- const R2 = /* @__PURE__ */ new Map(), A2 = Jl(t5.slice(), i.Direction.Left), M2 = A2.length;
20349
+ const R2 = /* @__PURE__ */ new Map(), A2 = ql(t5.slice(), i.Direction.Left), M2 = A2.length;
20346
20350
  for (let t6 = 0; t6 < M2; t6++) {
20347
20351
  const n3 = A2[t6];
20348
20352
  c2 = Math.min(c2, n3.colStart), h2 = Math.min(h2, n3.rowStart);
@@ -20355,18 +20359,18 @@ class pw {
20355
20359
  }
20356
20360
  e3 = e3.clone(), e3.shift(n3, m2), this._updateState({ cellValuesGrid: e3 });
20357
20361
  }
20358
- const d3 = n3.colStart <= l2.colStart && n3.colEnd >= l2.colEnd, M3 = n3.rowStart <= l2.rowStart && n3.rowEnd >= l2.rowEnd, T3 = (t7, e4, n4, r3) => {
20362
+ const d3 = n3.colStart <= l2.colStart && n3.colEnd >= l2.colEnd, M3 = n3.rowStart <= l2.rowStart && n3.rowEnd >= l2.rowEnd, N3 = (t7, e4, n4, r3) => {
20359
20363
  let o4 = null;
20360
20364
  n4 > 1 && (o4 = t7.at(n4 - 1));
20361
20365
  const s4 = r3 - n4 + 1;
20362
20366
  e4?.(n4, s4), o4 && t7.updateHeaderPairs([{ address: { min: n4, max: r3 }, update: o4 }]);
20363
20367
  };
20364
- d3 && T3(this._rowHeaders, this._rowHeadersShiftCallback, n3.rowStart, n3.rowEnd), M3 && T3(this._colHeaders, this._colHeadersShiftCallback, n3.colStart, n3.colEnd), o3 = o3.shift({ range: n3, direction: m2, cloneIfUpdate: o3 === g2.contentfulSpatial, coordValidator: r2 }), s3 = s3.shift({ range: n3, direction: m2, cloneIfUpdate: s3 === g2.unlockSpatial, coordValidator: r2 }), f2 = f2.shift({ range: n3, direction: m2, cloneIfUpdate: f2 === g2.mergeSpatial, coordValidator: r2 }), p2 = p2.shift({ range: n3, direction: m2, cloneIfUpdate: p2 === g2.directStyleSpatial, coordValidator: r2 }), _2 = _2.shift({ range: n3, direction: m2, cloneIfUpdate: _2 === g2.continuousFillSpatial, coordValidator: r2 }), S2 = S2.shift({ range: n3, direction: m2, cloneIfUpdate: S2 === g2.conditionalSpatial, coordValidator: r2 }), w2 = w2.shift({ range: n3, direction: m2, cloneIfUpdate: w2 === g2.hyperlinkSpatial, coordValidator: r2 }), y2 = y2.shift({ range: n3, direction: m2, cloneIfUpdate: y2 === g2.commentsSpatial, coordValidator: r2 }), E2 = E2.shift({ range: n3, direction: m2, cloneIfUpdate: E2 === g2.movableSpatial, coordValidator: r2 }), b2 = b2.shift({ range: n3, direction: m2, cloneIfUpdate: b2 === g2.tableSpatial, coordValidator: r2 }), C2 = C2.shift({ range: n3, direction: m2, cloneIfUpdate: C2 === g2.calcGraph }), x2 = x2.shift({ range: n3, direction: m2, cloneIfUpdate: x2 === g2.rangeListenerSpatial, onShift: (t7) => {
20368
+ d3 && N3(this._rowHeaders, this._rowHeadersShiftCallback, n3.rowStart, n3.rowEnd), M3 && N3(this._colHeaders, this._colHeadersShiftCallback, n3.colStart, n3.colEnd), o3 = o3.shift({ range: n3, direction: m2, cloneIfUpdate: o3 === g2.contentfulSpatial, coordValidator: r2 }), s3 = s3.shift({ range: n3, direction: m2, cloneIfUpdate: s3 === g2.unlockSpatial, coordValidator: r2 }), f2 = f2.shift({ range: n3, direction: m2, cloneIfUpdate: f2 === g2.mergeSpatial, coordValidator: r2 }), p2 = p2.shift({ range: n3, direction: m2, cloneIfUpdate: p2 === g2.directStyleSpatial, coordValidator: r2 }), _2 = _2.shift({ range: n3, direction: m2, cloneIfUpdate: _2 === g2.continuousFillSpatial, coordValidator: r2 }), S2 = S2.shift({ range: n3, direction: m2, cloneIfUpdate: S2 === g2.conditionalSpatial, coordValidator: r2 }), w2 = w2.shift({ range: n3, direction: m2, cloneIfUpdate: w2 === g2.hyperlinkSpatial, coordValidator: r2 }), y2 = y2.shift({ range: n3, direction: m2, cloneIfUpdate: y2 === g2.commentsSpatial, coordValidator: r2 }), E2 = E2.shift({ range: n3, direction: m2, cloneIfUpdate: E2 === g2.movableSpatial, coordValidator: r2 }), b2 = b2.shift({ range: n3, direction: m2, cloneIfUpdate: b2 === g2.tableSpatial, coordValidator: r2 }), C2 = C2.shift({ range: n3, direction: m2, cloneIfUpdate: C2 === g2.calcGraph }), x2 = x2.shift({ range: n3, direction: m2, cloneIfUpdate: x2 === g2.rangeListenerSpatial, onShift: (t7) => {
20365
20369
  I2 === g2.rangesListenerMap && (I2 = new Map(I2)), this._processListenerShift(I2, R2, g2.rangesListenerMap, t7);
20366
20370
  } }), v2 = v2.shift({ range: n3, direction: m2, cloneIfUpdate: v2 === g2.rangesListenerSpatial2, coordValidator: r2 });
20367
20371
  }
20368
- let T2 = g2.formulaSpatial, N2 = g2.spillSpatial, k2 = g2.pendingSpatial;
20369
- C2 !== g2.calcGraph && (T2 = T2.clone(), N2 = N2.clone(), k2 = k2.clone()), this._updateState({ contentfulSpatial: o3, unlockSpatial: s3, mergeSpatial: f2, directStyleSpatial: p2, continuousFillSpatial: _2, conditionalSpatial: S2, hyperlinkSpatial: w2, commentsSpatial: y2, movableSpatial: E2, tableSpatial: b2, calcGraph: C2, formulaSpatial: T2, spillSpatial: N2, pendingSpatial: k2, rangesListenerSpatial2: v2, rangeListenerSpatial: x2, rangesListenerMap: I2 }), this._commitAndAutoSelect(d2, u2, n2?.autoSelect, { viewAfter: { ranges: A2, listeners: R2 } });
20372
+ let N2 = g2.formulaSpatial, T2 = g2.spillSpatial, k2 = g2.pendingSpatial;
20373
+ C2 !== g2.calcGraph && (N2 = N2.clone(), T2 = T2.clone(), k2 = k2.clone()), this._updateState({ contentfulSpatial: o3, unlockSpatial: s3, mergeSpatial: f2, directStyleSpatial: p2, continuousFillSpatial: _2, conditionalSpatial: S2, hyperlinkSpatial: w2, commentsSpatial: y2, movableSpatial: E2, tableSpatial: b2, calcGraph: C2, formulaSpatial: N2, spillSpatial: T2, pendingSpatial: k2, rangesListenerSpatial2: v2, rangeListenerSpatial: x2, rangesListenerMap: I2 }), this._commitAndAutoSelect(d2, u2, n2?.autoSelect, { viewAfter: { ranges: A2, listeners: R2 } });
20370
20374
  } catch (t6) {
20371
20375
  if (console.warn(t6), d2.rollback(), t6 instanceof Pt) throw new Error(t6.message ?? Sd);
20372
20376
  throw t6;
@@ -20374,13 +20378,13 @@ class pw {
20374
20378
  }
20375
20379
  _deleteCells(t5, e2, n2) {
20376
20380
  const r2 = (e2 ?? this._getDefaultShiftOrientation(t5[0])) === i.Orientation.Column, o2 = n2?.description ?? "Delete Cells";
20377
- if (this._protectionCheck(() => [r2 ? "deleteColumns" : "deleteRows"], t5, o2), Nh(t5)) throw new Error("We can't delete cells with overlapping selections.");
20381
+ if (this._protectionCheck(() => [r2 ? "deleteColumns" : "deleteRows"], t5, o2), Th(t5)) throw new Error("We can't delete cells with overlapping selections.");
20378
20382
  const s2 = this._entireCoords;
20379
20383
  let a2 = s2.colEnd, l2 = s2.rowEnd;
20380
20384
  const c2 = r2 ? i.Direction.Left : i.Direction.Up, h2 = Bf(t5), u2 = this._beginCommit({ description: o2, operation: { name: "deleteCells" } }), d2 = u2.getState(this);
20381
20385
  try {
20382
20386
  let e3 = d2.cellValuesGrid, r3 = d2.contentfulSpatial, o3 = d2.mergeSpatial, g2 = d2.unlockSpatial, m2 = d2.directStyleSpatial, f2 = d2.continuousFillSpatial, p2 = d2.conditionalSpatial, _2 = d2.hyperlinkSpatial, S2 = d2.commentsSpatial, w2 = d2.movableSpatial, y2 = d2.movableMapModel, E2 = d2.tableSpatial, b2 = d2.tableMapModel, C2 = d2.calcGraph, v2 = d2.rangesListenerSpatial2, x2 = d2.rangeListenerSpatial, I2 = d2.rangesListenerMap;
20383
- const R2 = /* @__PURE__ */ new Map(), A2 = Jl(t5.slice(), i.Direction.Left), M2 = A2.length;
20387
+ const R2 = /* @__PURE__ */ new Map(), A2 = ql(t5.slice(), i.Direction.Left), M2 = A2.length;
20384
20388
  for (let t6 = 0; t6 < M2; t6++) {
20385
20389
  const n3 = A2[t6];
20386
20390
  a2 = Math.min(a2, n3.colStart), l2 = Math.min(l2, n3.rowStart);
@@ -20412,9 +20416,9 @@ class pw {
20412
20416
  let n3 = Number.MAX_SAFE_INTEGER, r3 = Number.MIN_SAFE_INTEGER, o3 = false, a3 = "", f2 = -1, p2 = false, _2 = false, S2 = false, w2 = Number.MAX_SAFE_INTEGER, y2 = Number.MIN_SAFE_INTEGER;
20413
20417
  const E2 = this._styles.getNormal(), b2 = this._cellOptions, C2 = e2.orientations === i.Orientations.Row, v2 = /* @__PURE__ */ new Map(), x2 = Lc(t5, 1);
20414
20418
  x2.sort(Y.createRangeComparator(i.Orientation.Column));
20415
- const I2 = x2.length, R2 = { skipCustomSize: e2.skipCustomSize }, A2 = Ai.getDeviceScale(), M2 = this._defaultRowHeight() * A2, T2 = (t6, e3 = 1) => {
20419
+ const I2 = x2.length, R2 = { skipCustomSize: e2.skipCustomSize }, A2 = Ai.getDeviceScale(), M2 = this._defaultRowHeight() * A2, N2 = (t6, e3 = 1) => {
20416
20420
  if (0 !== t6 && null !== t6 && !(e3 > 1)) return t6 = Math.max(t6, M2), (e4) => u2 ? t6 : Math.max(e4, t6);
20417
- }, N2 = (t6, e3 = 1) => {
20421
+ }, T2 = (t6, e3 = 1) => {
20418
20422
  if (0 !== t6 && null !== t6 && !(e3 > 1)) return (e4) => h2 ? t6 : Math.max(e4, t6);
20419
20423
  };
20420
20424
  for (let t6 = 0; t6 < I2; t6++) {
@@ -20450,11 +20454,11 @@ class pw {
20450
20454
  ww.colStart = n4.colIndex, ww.rowStart = n4.rowIndex, ww.colEnd = r4.colIndex, ww.rowEnd = r4.rowIndex;
20451
20455
  const o4 = Y.intersectRanges(ww, F2, Sw), s2 = tf(0, o4, e4, b2).getBestFit();
20452
20456
  if (c2) {
20453
- const t8 = Math.max(n4.rowIndex, D2), e5 = { address: { min: t8, max: Math.min(r4.rowIndex, B2) }, update: { size: T2(s2.height), autoSize: true } };
20457
+ const t8 = Math.max(n4.rowIndex, D2), e5 = { address: { min: t8, max: Math.min(r4.rowIndex, B2) }, update: { size: N2(s2.height), autoSize: true } };
20454
20458
  j2.push(e5);
20455
20459
  }
20456
20460
  if (l2) {
20457
- const t8 = Math.max(n4.colIndex, O2), e5 = { address: { min: t8, max: Math.min(r4.colIndex, L2) }, update: { size: N2(s2.width), autoSize: true } };
20461
+ const t8 = Math.max(n4.colIndex, O2), e5 = { address: { min: t8, max: Math.min(r4.colIndex, L2) }, update: { size: T2(s2.width), autoSize: true } };
20458
20462
  W2.push(e5);
20459
20463
  }
20460
20464
  $2 = V2.next();
@@ -20472,15 +20476,15 @@ class pw {
20472
20476
  e4 && this._rowHeaders.updateHeaderPairs(e4, R2);
20473
20477
  }
20474
20478
  const G2 = this._cellStateIterator({ ...z2, includeRangeTypes: { [id.Type.Merge]: false, [id.Type.Table]: false, [id.Type.Style]: false }, ignoreEmptyIntersections: true });
20475
- let U2, q2, J2, K2 = G2.next(), X2 = 1, Q2 = 1;
20479
+ let U2, J2, q2, K2 = G2.next(), X2 = 1, Q2 = 1;
20476
20480
  for (; !K2.done; ) {
20477
20481
  const t7 = K2.value, i2 = t7[0], l3 = t7[2];
20478
20482
  let c3 = E2;
20479
20483
  const h3 = l3?.directStyle ?? null;
20480
- h3 === U2 ? c3 = q2 : (c3 = h3 ? tf(0, Y.cellToRange(i2, yw), l3, b2) : E2, q2 = c3);
20484
+ h3 === U2 ? c3 = J2 : (c3 = h3 ? tf(0, Y.cellToRange(i2, yw), l3, b2) : E2, J2 = c3);
20481
20485
  let u3 = 1, d3 = 1;
20482
20486
  const C3 = l3?.merge ?? null;
20483
- if (C3 === J2) u3 = X2, d3 = Q2;
20487
+ if (C3 === q2) u3 = X2, d3 = Q2;
20484
20488
  else {
20485
20489
  if (C3) {
20486
20490
  const t8 = C3.getCoords();
@@ -20488,17 +20492,17 @@ class pw {
20488
20492
  } else u3 = 1, d3 = 1;
20489
20493
  X2 = u3, Q2 = d3;
20490
20494
  }
20491
- const v3 = i2.colIndex, x3 = i2.rowIndex, R3 = t7[1], T3 = $h(R3), N3 = Y.isCellWithinRange(i2, F2);
20495
+ const v3 = i2.colIndex, x3 = i2.rowIndex, R3 = t7[1], N3 = $h(R3), T3 = Y.isCellWithinRange(i2, F2);
20492
20496
  let O3 = false, D3 = false;
20493
- if (U2 !== h3 || u3 !== M3 || d3 !== k2 || T3 === s.String || T3 === s.Error || N3 !== m3) {
20494
- if (O3 = true, (u3 > 1 || d3 > 1 || T3 === s.RichData) && (D3 = true), !D3 && l3) {
20497
+ if (U2 !== h3 || u3 !== M3 || d3 !== k2 || N3 === s.String || N3 === s.Error || T3 !== m3) {
20498
+ if (O3 = true, (u3 > 1 || d3 > 1 || N3 === s.RichData) && (D3 = true), !D3 && l3) {
20495
20499
  const t8 = c3.getAlignment().getHorizontal();
20496
20500
  t8 !== Zs.HorizontalAlignment.CenterContinuous && t8 !== Zs.HorizontalAlignment.Fill || (D3 = true);
20497
20501
  }
20498
20502
  D3 && (O3 = false);
20499
20503
  }
20500
- if (U2 = h3, J2 = C3, (g3 !== v3 || O3) && (g3 !== v3 && (A3 = this._colHeaders.getSpanSize(v3)), -1 !== g3 && e3.push({ col: g3, style: I3, spanWidth: u3, spanHeight: d3, minVal: n3, maxVal: r3, hasZero: o3, text: a3, textId: f2, hasFalse: _2, hasTrue: p2, hasEmpty: S2, minRow: w2, maxRow: y2, colWidth: A3, measureWidth: -1, measureHeight: -1, isFit: m3 }), g3 = v3, I3 = c3, m3 = N3, M3 = u3, k2 = d3, n3 = Number.MAX_SAFE_INTEGER, r3 = Number.MIN_SAFE_INTEGER, o3 = false, a3 = "", f2 = -1, _2 = false, p2 = false, S2 = false, w2 = x3), y2 = x3, !D3) if (null === R3) S2 = true;
20501
- else switch (T3) {
20504
+ if (U2 = h3, q2 = C3, (g3 !== v3 || O3) && (g3 !== v3 && (A3 = this._colHeaders.getSpanSize(v3)), -1 !== g3 && e3.push({ col: g3, style: I3, spanWidth: u3, spanHeight: d3, minVal: n3, maxVal: r3, hasZero: o3, text: a3, textId: f2, hasFalse: _2, hasTrue: p2, hasEmpty: S2, minRow: w2, maxRow: y2, colWidth: A3, measureWidth: -1, measureHeight: -1, isFit: m3 }), g3 = v3, I3 = c3, m3 = T3, M3 = u3, k2 = d3, n3 = Number.MAX_SAFE_INTEGER, r3 = Number.MIN_SAFE_INTEGER, o3 = false, a3 = "", f2 = -1, _2 = false, p2 = false, S2 = false, w2 = x3), y2 = x3, !D3) if (null === R3) S2 = true;
20505
+ else switch (N3) {
20502
20506
  case s.Number:
20503
20507
  0 === R3 && (o3 = true), n3 = Math.min(n3, R3), r3 = Math.max(r3, R3);
20504
20508
  break;
@@ -20554,7 +20558,7 @@ class pw {
20554
20558
  let s2 = e3[n4 + 1], i2 = r4.measureWidth ?? 0;
20555
20559
  for (; s2 && s2.col === o4; ) s2.measureWidth && (i2 = Math.max(s2.measureWidth ?? 0, i2)), n4++, r4 = e3[n4], s2 = e3[n4 + 1];
20556
20560
  0 === i2 && (i2 = null);
20557
- const a4 = N2(i2, r4.spanWidth);
20561
+ const a4 = T2(i2, r4.spanWidth);
20558
20562
  t7.push({ address: { min: o4, max: o4 }, update: { size: a4, autoSize: true } });
20559
20563
  }
20560
20564
  this._colHeaders.updateHeaderPairs(t7, R2);
@@ -20572,7 +20576,7 @@ class pw {
20572
20576
  }
20573
20577
  const o4 = r4.length, s2 = new Array(o4);
20574
20578
  for (let t8 = 0; t8 < o4; t8++) {
20575
- const e4 = r4[t8], n5 = T2(e4.value, 1), o5 = { address: { min: e4.min, max: e4.max }, update: { size: n5, autoSize: true } };
20579
+ const e4 = r4[t8], n5 = N2(e4.value, 1), o5 = { address: { min: e4.min, max: e4.max }, update: { size: n5, autoSize: true } };
20576
20580
  s2[t8] = o5;
20577
20581
  }
20578
20582
  this._rowHeaders.updateHeaderPairs(s2, R2);
@@ -20758,7 +20762,7 @@ class pw {
20758
20762
  m2.push(a3);
20759
20763
  }
20760
20764
  c2.load(m2), n2 = { ...n2 };
20761
- const S2 = new qS(i2, p2, f2, r2, this, a2, d2, g2, l2, n2), w2 = new Map(u2.rangesListenerMap2);
20765
+ const S2 = new JS(i2, p2, f2, r2, this, a2, d2, g2, l2, n2), w2 = new Map(u2.rangesListenerMap2);
20762
20766
  return w2.set(i2, S2), this._updateState({ rangesListenerSpatial2: c2, rangesListenerMap2: w2 }), o2 || this._rangesListenerSorted.set(a2, S2), h2.commit({ forceAmend: true }), l2;
20763
20767
  }
20764
20768
  _getUsedCoords(t5) {
@@ -21200,9 +21204,9 @@ class pw {
21200
21204
  } catch (t6) {
21201
21205
  console.warn(t6);
21202
21206
  }
21203
- const r2 = Jl(n2.mergeSpatial.all());
21207
+ const r2 = ql(n2.mergeSpatial.all());
21204
21208
  r2.length > 0 && (e2.merges = Au(r2));
21205
- const o2 = Jl(n2.directStyleSpatial.all());
21209
+ const o2 = ql(n2.directStyleSpatial.all());
21206
21210
  if (o2.length > 0) {
21207
21211
  const t6 = this._styles.beginPersist();
21208
21212
  try {
@@ -21221,7 +21225,7 @@ class pw {
21221
21225
  t6.endPersist();
21222
21226
  }
21223
21227
  }
21224
- const a2 = Jl(n2.hyperlinkSpatial.all()), l2 = a2.length;
21228
+ const a2 = ql(n2.hyperlinkSpatial.all()), l2 = a2.length;
21225
21229
  if (l2 > 0) {
21226
21230
  const t6 = [];
21227
21231
  for (let e3 = 0; e3 < l2; e3++) {
@@ -21231,7 +21235,7 @@ class pw {
21231
21235
  }
21232
21236
  e2.hyperlinks = t6;
21233
21237
  }
21234
- const c2 = Jl(n2.commentsSpatial.all()), h2 = c2.length;
21238
+ const c2 = ql(n2.commentsSpatial.all()), h2 = c2.length;
21235
21239
  if (h2 > 0) {
21236
21240
  const t6 = [];
21237
21241
  for (let e3 = 0; e3 < h2; e3++) {
@@ -21259,7 +21263,7 @@ class pw {
21259
21263
  } finally {
21260
21264
  u2.endPersist();
21261
21265
  }
21262
- const d2 = Jl(n2.tableSpatial.all()), g2 = d2.length;
21266
+ const d2 = ql(n2.tableSpatial.all()), g2 = d2.length;
21263
21267
  if (g2 > 0) {
21264
21268
  const t6 = [];
21265
21269
  for (let e3 = 0; e3 < g2; e3++) {
@@ -21357,7 +21361,7 @@ class pw {
21357
21361
  async _addImage(t5, e2 = { type: "picture" }) {
21358
21362
  if (!t5) throw new Error("An image must be provided as a string or a resource option.");
21359
21363
  if (!this.getProtection().isObjectsAllowed()) throw new Error(fd);
21360
- const n2 = this._resources.add(t5), r2 = await n2.toBuffer(), o2 = await n2.getType(), s2 = this._getBoundsAtCoords(Lf(this.getSelection().getCoords())[0]), { naturalDimensions: i2, asUrl: a2 } = await Nt.loadImageDetails(r2, o2);
21364
+ const n2 = this._resources.add(t5), r2 = await n2.toBuffer(), o2 = await n2.getType(), s2 = this._getBoundsAtCoords(Lf(this.getSelection().getCoords())[0]), { naturalDimensions: i2, asUrl: a2 } = await Tt.loadImageDetails(r2, o2);
21361
21365
  URL.revokeObjectURL(a2);
21362
21366
  const l2 = { ...s2, ...i2, ...e2?.bounds };
21363
21367
  if (bt.isNullOrUndefined(e2?.bounds?.x) || bt.isNullOrUndefined(e2?.bounds?.y)) {
@@ -22252,25 +22256,25 @@ class pw {
22252
22256
  }
22253
22257
  I2.load(t6);
22254
22258
  }
22255
- const R2 = c2.tableMapModel, A2 = c2.tableMapName, M2 = c2.tableSpatial, T2 = n2.tables;
22256
- if (T2) {
22257
- const t6 = [], e3 = T2.length;
22259
+ const R2 = c2.tableMapModel, A2 = c2.tableMapName, M2 = c2.tableSpatial, N2 = n2.tables;
22260
+ if (N2) {
22261
+ const t6 = [], e3 = N2.length;
22258
22262
  for (let n3 = 0; n3 < e3; n3++) {
22259
- const e4 = T2[n3], r3 = this._createTableEntry(e4), o3 = r3.value.model;
22263
+ const e4 = N2[n3], r3 = this._createTableEntry(e4), o3 = r3.value.model;
22260
22264
  R2.set(o3, r3), A2.set(r3.value.currentName, o3), t6.push(r3);
22261
22265
  }
22262
22266
  M2.load(t6);
22263
22267
  }
22264
- const N2 = c2.conditionalSpatial, k2 = c2.conditionalModels, F2 = n2.conditionals;
22268
+ const T2 = c2.conditionalSpatial, k2 = c2.conditionalModels, F2 = n2.conditionals;
22265
22269
  if (F2) {
22266
22270
  const t6 = F2.length;
22267
22271
  for (let e3 = 0; e3 < t6; e3++) {
22268
22272
  const t7 = F2[e3];
22269
- this._createConditionalEntries(t7, N2, k2);
22273
+ this._createConditionalEntries(t7, T2, k2);
22270
22274
  }
22271
22275
  }
22272
22276
  const O2 = c2.calcGraph, D2 = O2.fromJSON({ formulas: n2.formulas, data: f2, dynamic: n2.dynamicArray, volatile: n2.volatile });
22273
- c2 = this._updateState({ hyperlinkSpatial: E2, commentsSpatial: C2, movableSpatial: I2, movableMapModel: x2, tableSpatial: M2, tableMapModel: R2, tableMapName: A2, conditionalSpatial: N2, conditionalModels: k2, calcGraph: O2 });
22277
+ c2 = this._updateState({ hyperlinkSpatial: E2, commentsSpatial: C2, movableSpatial: I2, movableMapModel: x2, tableSpatial: M2, tableMapModel: R2, tableMapName: A2, conditionalSpatial: T2, conditionalModels: k2, calcGraph: O2 });
22274
22278
  const L2 = this._getUsedCoords();
22275
22279
  L2 && this._autoFit([L2], { orientations: i.Orientations.Row, skipCustomSize: true }), e2.commit(), D2 && this._realizeCalcedValues(D2), n2.protection && this._protection.fromJSON(n2.protection), this._emitter.notify("onLoad");
22276
22280
  } finally {
@@ -22326,7 +22330,7 @@ class pw {
22326
22330
  const _w = { address: null, scope: null }, Sw = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, ww = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, yw = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Ew = { includeHidden: false };
22327
22331
  Object.freeze({ [Ad.Content.Values]: Number.MAX_SAFE_INTEGER, [Ad.Content.Formulas]: Number.MAX_SAFE_INTEGER }), Object.freeze({ [Ad.Content.Values]: 1, [Ad.Content.Formulas]: 1 });
22328
22332
  const bw = { ignoreDataChanges: false }, Cw = { colStart: -1, rowStart: -1, colEnd: -1, rowEnd: -1 }, vw = [{ colIndex: -1, rowIndex: -1 }, null, null, null, null], xw = [Ad.Content.Values], Iw = { size: null, autoSize: true }, Rw = { skipCustomSize: true, expandOnly: true, minContent: true }, Aw = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Mw = { showFormulaBar: true, showTabs: true, tabRatio: 600, showHorizontalScrollbar: true, showVerticalScrollbar: true, showStatusBar: true, activeSheetId: null };
22329
- class Tw {
22333
+ class Nw {
22330
22334
  constructor(t5) {
22331
22335
  this._emitter = null, this._emitter = new Ml(this), this._state = { ...Mw }, t5?.json && this._fromJSON(t5?.json);
22332
22336
  }
@@ -22392,7 +22396,7 @@ class Tw {
22392
22396
  this._state = { ...Mw, ...this._state, ...t5 }, e2 && this._emitter.notify("onViewChange");
22393
22397
  }
22394
22398
  }
22395
- class Nw {
22399
+ class Tw {
22396
22400
  constructor(t5) {
22397
22401
  this._emitter = null, this._closed = false, this._options = { ...t5 };
22398
22402
  const e2 = this;
@@ -22643,7 +22647,7 @@ class jw {
22643
22647
  return this._modules;
22644
22648
  }
22645
22649
  async createModule(t5) {
22646
- const e2 = await import("./DqgV9yP7BYsuiJZo.mjs"), n2 = await e2.ScriptingUtils.compileTypescript(t5);
22650
+ const e2 = await import("./DK54CIvklXVGAymn.mjs"), n2 = await e2.ScriptingUtils.compileTypescript(t5);
22647
22651
  return n2 ? await zw(n2, t5?.declarationsOnly ?? false) : null;
22648
22652
  }
22649
22653
  addModule(t5, e2, n2) {
@@ -22684,7 +22688,7 @@ class jw {
22684
22688
  n2[o3] = i2;
22685
22689
  }
22686
22690
  }
22687
- const r2 = new Nw({ transactions: this._options?.transactions, initial: n2, onRemove: this._options?.onRemove, onAdd: this._options?.onAdd });
22691
+ const r2 = new Tw({ transactions: this._options?.transactions, initial: n2, onRemove: this._options?.onRemove, onAdd: this._options?.onAdd });
22688
22692
  this._modules = r2;
22689
22693
  const o2 = r2.search();
22690
22694
  if (0 === o2.length) return Promise.resolve(bt.EmptyArray);
@@ -22735,7 +22739,7 @@ class Hw extends rw {
22735
22739
  return super._toJSON(t5);
22736
22740
  }
22737
22741
  }
22738
- const Vw = (t5) => `Invalid SheetKey: ${t5}`, $w = "A workbook must contain at least one visible worksheet.", Gw = "Internal error no visible sheetRefs", Uw = "Workbook has been closed. No further operations are allowed.", qw = "This workbook structure is protected. To make a change, unprotect the workbook. You might be requested to enter a password.", Jw = "A sheet name", Kw = `${Jw} can not be blank.`, Xw = `${Jw} can not be longer than 31 characters.`, Yw = `${Jw} can not begin or end with a "'" (single quote).`;
22742
+ const Vw = (t5) => `Invalid SheetKey: ${t5}`, $w = "A workbook must contain at least one visible worksheet.", Gw = "Internal error no visible sheetRefs", Uw = "Workbook has been closed. No further operations are allowed.", Jw = "This workbook structure is protected. To make a change, unprotect the workbook. You might be requested to enter a password.", qw = "A sheet name", Kw = `${qw} can not be blank.`, Xw = `${qw} can not be longer than 31 characters.`, Yw = `${qw} can not begin or end with a "'" (single quote).`;
22739
22743
  class Qw {
22740
22744
  constructor(t5, e2) {
22741
22745
  this._add = t5, this._get = e2;
@@ -22756,7 +22760,7 @@ class Qw {
22756
22760
  const Zw = new RegExp(/[\\/\\*?:[\]]+/), ty = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), ey = (t5) => `Sheet${t5 + 1}`, ny = (t5, e2) => ({ ...Ef, getSource: () => null, toString: () => vu(t5, e2) }), ry = (t5, e2 = false) => {
22757
22761
  if (!t5) throw new Error(Kw);
22758
22762
  if (Zw.test(t5)) {
22759
- if (!e2) throw new Error(((t6) => `${t6 ? `'${t6}'` : Jw} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t5));
22763
+ if (!e2) throw new Error(((t6) => `${t6 ? `'${t6}'` : qw} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t5));
22760
22764
  t5 = t5.replace(Zw, "");
22761
22765
  }
22762
22766
  if (0 === t5.length) throw new Error(Kw);
@@ -22780,7 +22784,7 @@ class oy extends iw {
22780
22784
  }
22781
22785
  _createRanges(t5, e2) {
22782
22786
  let n2 = this._options;
22783
- return e2 && (n2 = { ...this._options, getOptions: Nf(this._options?.getOptions, e2) }), new oy(t5, this._sheet, this._workbook, n2);
22787
+ return e2 && (n2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new oy(t5, this._sheet, this._workbook, n2);
22784
22788
  }
22785
22789
  _createRange(t5, e2) {
22786
22790
  const n2 = t5 ? { ...t5 } : null;
@@ -22789,7 +22793,7 @@ class oy extends iw {
22789
22793
  return delete n2?.sheetName, ny(n2, n2 ? { sheetName: au, ...t6.getEntireRange().getCoords() } : null);
22790
22794
  }
22791
22795
  let r2 = this._options;
22792
- return e2 && (r2 = { ...this._options, getOptions: Nf(this._options.getOptions, e2) }), new sy(t5, this._sheet, this._workbook, r2);
22796
+ return e2 && (r2 = { ...this._options, getOptions: Tf(this._options.getOptions, e2) }), new sy(t5, this._sheet, this._workbook, r2);
22793
22797
  }
22794
22798
  async select(t5) {
22795
22799
  const e2 = [];
@@ -22825,14 +22829,14 @@ class sy extends aw {
22825
22829
  }
22826
22830
  _createRanges(t5, e2) {
22827
22831
  let n2 = this._options;
22828
- return e2 && (n2 = { ...this._options, getOptions: Nf(this._options?.getOptions, e2) }), new oy(t5, this._sheet, this._workbook, n2);
22832
+ return e2 && (n2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new oy(t5, this._sheet, this._workbook, n2);
22829
22833
  }
22830
22834
  _createRange(t5, e2) {
22831
22835
  const n2 = this._sheet;
22832
22836
  if (!t5) return bf(n2, n2._entireCoords);
22833
22837
  if (n2._validateCoords(t5), n2._closed) return bf(null, n2._entireCoords, t5);
22834
22838
  let r2 = this._options;
22835
- return e2 && (r2 = { ...this._options, getOptions: Nf(this._options?.getOptions, e2) }), new sy(t5, this._sheet, this._workbook, r2);
22839
+ return e2 && (r2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new sy(t5, this._sheet, this._workbook, r2);
22836
22840
  }
22837
22841
  getSource() {
22838
22842
  return this._workbook;
@@ -22928,7 +22932,7 @@ class iy {
22928
22932
  _initState() {
22929
22933
  let t5 = this._getSheetRefs();
22930
22934
  for (let e3 = t5 && t5.length - 1; e3 >= 0; e3--) ;
22931
- this._isDate1904 = this._options.date1904 ?? false, this._theme = this._options.theme ?? new vl().getDefaultTheme(), this._styles = this._options?.styles ?? new dp(this._theme), this._ownStyles = !this._options.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Tw()), this._listenerProtection?.(), this._protection = new Hw(void 0, this._options.readonly ?? false), this._listenerProtection = this._protection.addListeners({ onChange: (t6) => {
22935
+ this._isDate1904 = this._options.date1904 ?? false, this._theme = this._options.theme ?? new vl().getDefaultTheme(), this._styles = this._options?.styles ?? new dp(this._theme), this._ownStyles = !this._options.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Nw()), this._listenerProtection?.(), this._protection = new Hw(void 0, this._options.readonly ?? false), this._listenerProtection = this._protection.addListeners({ onChange: (t6) => {
22932
22936
  e2._emitter.notify("onProtectionChange");
22933
22937
  } });
22934
22938
  const e2 = this;
@@ -23064,7 +23068,7 @@ class iy {
23064
23068
  }
23065
23069
  _addSheetOptions(t5) {
23066
23070
  if (this._closed) throw new Error(Uw);
23067
- if (!this.getProtection().isStructureAllowed()) throw new Error(qw);
23071
+ if (!this.getProtection().isStructureAllowed()) throw new Error(Jw);
23068
23072
  let e2 = null;
23069
23073
  t5 = { ...t5, description: t5?.description ?? "Add Sheet" };
23070
23074
  const n2 = this.beginCommit(t5);
@@ -23105,7 +23109,7 @@ class iy {
23105
23109
  }
23106
23110
  _updateSheetRefStates(t5) {
23107
23111
  if (this._closed) throw new Error(Uw);
23108
- if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new Error(qw);
23112
+ if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new Error(Jw);
23109
23113
  const e2 = t5, n2 = [], r2 = [];
23110
23114
  for (let t6 = 0; t6 < e2.length; t6++) e2[t6].visibility === Z_.Visibility.Visible ? (n2.push(e2[t6]), r2.push(e2[t6])) : e2[t6].visibility === Z_.Visibility.Hidden && r2.push(e2[t6]);
23111
23115
  this._updateState({ sheetRefsAll: e2, sheetRefsVisible: n2, sheetRefsVisibleAndHidden: r2 });
@@ -23179,7 +23183,7 @@ class iy {
23179
23183
  }
23180
23184
  _validateDeleteSheet(t5) {
23181
23185
  if (this._closed) throw new Error(Uw);
23182
- if (!this.getProtection().isStructureAllowed()) throw new Error(qw);
23186
+ if (!this.getProtection().isStructureAllowed()) throw new Error(Jw);
23183
23187
  let e2 = this._getSheetRef(t5);
23184
23188
  if (!e2) throw new Error(((t6) => `Invalid reference for delete: ${t6}`)(t5));
23185
23189
  const n2 = this._getState().sheetRefsVisible;
@@ -23256,7 +23260,7 @@ class iy {
23256
23260
  }
23257
23261
  async _duplicateSheet(t5) {
23258
23262
  if (this._closed) throw new Error(Uw);
23259
- if (!this.getProtection().isStructureAllowed()) throw new Error(qw);
23263
+ if (!this.getProtection().isStructureAllowed()) throw new Error(Jw);
23260
23264
  const e2 = this._getSheetRefs(), n2 = this.getSelectedSheetIndex();
23261
23265
  let r2 = null;
23262
23266
  if (t5) {
@@ -23321,7 +23325,7 @@ class iy {
23321
23325
  return this.getSelectedSheet().getSelectedCell();
23322
23326
  }
23323
23327
  _rangesAddressToCoords(t5, e2 = true, n2 = Z_.Visibility.Hidden) {
23324
- if (!t5) throw new Error(Ju);
23328
+ if (!t5) throw new Error(qu);
23325
23329
  const r2 = this.getSelectedSheet(), o2 = r2?.getEntireRange().getCoords(), s2 = { ...o2 }, i2 = r2?.getName();
23326
23330
  if (i2 && (s2.sheetName = i2), "string" == typeof t5) {
23327
23331
  const e3 = t5.trim().toLowerCase();
@@ -23330,7 +23334,7 @@ class iy {
23330
23334
  "r" === e3 ? r3.rowStart = r3.rowEnd = n3.rowIndex : r3.colStart = r3.colEnd = n3.colIndex, t5 = r3;
23331
23335
  }
23332
23336
  }
23333
- const a2 = this, l2 = Nu(t5, s2, Ru, (t6) => {
23337
+ const a2 = this, l2 = Tu(t5, s2, Ru, (t6) => {
23334
23338
  if (!e2) return null;
23335
23339
  if ("string" == typeof t6) {
23336
23340
  const e3 = a2.getNames().getByName(t6);
@@ -23363,7 +23367,7 @@ class iy {
23363
23367
  }
23364
23368
  _setSheetName(t5, e2) {
23365
23369
  if (this._closed) throw new Error(Uw);
23366
- if (!this.getProtection().isStructureAllowed()) throw new Error(qw);
23370
+ if (!this.getProtection().isStructureAllowed()) throw new Error(Jw);
23367
23371
  const n2 = this._getSheetRef(t5);
23368
23372
  if (!n2) throw new Error(Vw(t5));
23369
23373
  if (e2 === n2.name) return n2.sheet;
@@ -23383,7 +23387,7 @@ class iy {
23383
23387
  }
23384
23388
  _setSheetVisibility(t5, e2 = Z_.Visibility.Visible) {
23385
23389
  if (this._closed) throw new Error(Uw);
23386
- if (!this.getProtection().isStructureAllowed()) throw new Error(qw);
23390
+ if (!this.getProtection().isStructureAllowed()) throw new Error(Jw);
23387
23391
  const n2 = this._getSheetRef(t5);
23388
23392
  if (!n2) return null;
23389
23393
  if (e2 === n2.visibility) return;
@@ -23407,7 +23411,7 @@ class iy {
23407
23411
  }
23408
23412
  _moveSheet(t5, e2) {
23409
23413
  if (this._closed) throw new Error(Uw);
23410
- if (!this.getProtection().isStructureAllowed()) throw new Error(qw);
23414
+ if (!this.getProtection().isStructureAllowed()) throw new Error(Jw);
23411
23415
  let n2 = null;
23412
23416
  const r2 = this.beginCommit(`Move Sheet '${t5.name}'`);
23413
23417
  try {
@@ -23485,7 +23489,7 @@ class iy {
23485
23489
  const e3 = o2[t6], n3 = e3.visibility || Z_.Visibility.Visible, r3 = t6 + 1;
23486
23490
  n3 === Z_.Visibility.Visible ? a2 = r3 : null !== i2 && i2 === r3 && (i2 = null), this._createSheet(r3, e3.name, n3, void 0, e3.sheet);
23487
23491
  }
23488
- this._updateState({ lastId: a2 }), t5.names && this._names.fromJSON(t5.names), t5.view.activeSheetId = i2 ?? a2, this.setView(new Tw({ json: t5.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
23492
+ this._updateState({ lastId: a2 }), t5.names && this._names.fromJSON(t5.names), t5.view.activeSheetId = i2 ?? a2, this.setView(new Nw({ json: t5.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
23489
23493
  const l2 = this;
23490
23494
  this._protection = new Hw(t5?.protection, this._options?.readonly), this._listenerProtection = this._protection.addListeners({ onChange: (t6) => {
23491
23495
  l2._emitter.notify("onProtectionChange", { source: t6 });
@@ -23612,7 +23616,7 @@ export {
23612
23616
  L_ as Calculation,
23613
23617
  Lt as ChainedError,
23614
23618
  Zt as ClipboardUtils,
23615
- Ta as Color,
23619
+ Na as Color,
23616
23620
  Ct as CommonMessages,
23617
23621
  bt as CommonUtils,
23618
23622
  Y as CoordUtils,
@@ -23625,7 +23629,7 @@ export {
23625
23629
  Qe as GeomUtils,
23626
23630
  Il as IAnchored,
23627
23631
  j_ as IAutoFilter,
23628
- Na as IBorder,
23632
+ Ta as IBorder,
23629
23633
  Ep as ICalculation,
23630
23634
  Ad as ICell,
23631
23635
  P_ as ICellHeaderRange,
@@ -23648,10 +23652,10 @@ export {
23648
23652
  Zs as ITextFrame,
23649
23653
  el as ITheme,
23650
23654
  nl as IThemeCollection,
23651
- Nt as ImageUtils,
23655
+ Tt as ImageUtils,
23652
23656
  se as InternalClipboard,
23653
23657
  kt as JSONStableStringify,
23654
- We as LicenseManager,
23658
+ je as LicenseManager,
23655
23659
  I as MimeType,
23656
23660
  Ht as NotImplementedError,
23657
23661
  jt as NullNotAllowedError,
@@ -23661,13 +23665,13 @@ export {
23661
23665
  zt as PartialError,
23662
23666
  bp as Picture,
23663
23667
  Y_ as RangeClipboardItem,
23664
- N as RangeOrientation,
23668
+ T as RangeOrientation,
23665
23669
  k as RangeOrientations,
23666
23670
  fp as Resource,
23667
23671
  _p as ResourceCollection,
23668
23672
  s as ScalarType,
23669
23673
  pw as Sheet,
23670
- Ti as SimpleFontFace,
23674
+ Ni as SimpleFontFace,
23671
23675
  Fl as Sort,
23672
23676
  wp as StringCollection,
23673
23677
  S as StubbedFormulaContext,
@@ -23682,14 +23686,14 @@ export {
23682
23686
  dn as Tuple,
23683
23687
  Wt as TypedError,
23684
23688
  Ot as TypedObject,
23685
- T as TypesUtils,
23689
+ N as TypesUtils,
23686
23690
  ae as UndoManager,
23687
23691
  Bt as UserError,
23688
23692
  iy as Workbook,
23689
- Tw as WorkbookView,
23693
+ Nw as WorkbookView,
23690
23694
  $S as a,
23691
23695
  VS as b,
23692
- Jh as c,
23696
+ qh as c,
23693
23697
  Uu as d,
23694
23698
  fu as e,
23695
23699
  Vh as f,