@sheetxl/studio-vanilla 0.8.0-beta.7 → 0.8.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. package/browser/cjs/71t68tthCqAyqS9Y2.cjs +1 -0
  2. package/browser/cjs/9zyLp_qEwt9GphA82.cjs +1 -0
  3. package/browser/cjs/B0bpKoi26UcJy-yx2.cjs +1 -0
  4. package/browser/cjs/B7gx_G60ELU_MwHQ.cjs +3 -0
  5. package/browser/cjs/{BCm6d5TSyOWIner52.cjs → B8k2Nobs3xsYk1La2.cjs} +1 -1
  6. package/browser/cjs/{B6T_y0ce8SbjxV-I.cjs → BBev0dLbf1fU-lfA.cjs} +1 -1
  7. package/browser/cjs/{ahQaPMczi7feo-ae2.cjs → BLm90Fq3PHyJcuuD2.cjs} +1 -1
  8. package/browser/cjs/BMUUPjFWJpJ0LI3i.cjs +6 -0
  9. package/browser/cjs/{namqZsBygpcj2yf42.cjs → BOEw2nlucWPfxCYp2.cjs} +1 -1
  10. package/browser/cjs/BOVrNOPvNrCm6yRB.cjs +44 -0
  11. package/browser/cjs/{D9hGhZ8wId9qKZlT.cjs → BRRCf1dPEVEMuZg_.cjs} +1 -1
  12. package/browser/cjs/{B4VCKO11wngJjEO92.cjs → BWMBI4f0SjoI_Oin2.cjs} +1 -1
  13. package/browser/cjs/BaC5cgF10fBwJBaK.cjs +3 -0
  14. package/browser/cjs/{B0gP-9ZXQb_QZ8Jm.cjs → BfSQzdZII1qouGSA.cjs} +1 -1
  15. package/browser/cjs/Bks6NqUor4BlAszo2.cjs +1 -0
  16. package/browser/cjs/BlqNnPvPXlfr1uiQ.cjs +1 -0
  17. package/browser/cjs/Brhq9xC0-0nktknO2.cjs +1 -0
  18. package/browser/cjs/BzZ4-FYClxQ8ujtx.cjs +1 -0
  19. package/browser/cjs/C5ysAU-f5AXrrCUy2.cjs +1 -0
  20. package/browser/cjs/C60FQCTpuPODGMns2.cjs +1 -0
  21. package/browser/cjs/{Bzd1x5C01LQtiSb0.cjs → CAlhyBtLwTQbCNjD.cjs} +1 -1
  22. package/browser/cjs/{eCs1q0PICk1snU-12.cjs → CMr_-nDgsJMujQie2.cjs} +1 -1
  23. package/browser/cjs/COX7Y3Wht4v_4upT2.cjs +1 -0
  24. package/browser/cjs/{B1yQqy3iSI5uZPt3.cjs → CW6uYgYnFALF8Wep.cjs} +1 -1
  25. package/browser/cjs/Cs08_432tXlhmIvU.cjs +90 -0
  26. package/browser/cjs/{DFfYZJqlytuKuwBJ.cjs → D0OGlOZBsNUXBigZ.cjs} +1 -1
  27. package/browser/cjs/{C5RvrnAGhfLzpBNO.cjs → D1q4dPaaoZjeLyfe.cjs} +1 -1
  28. package/browser/cjs/D7mCXmc268F393wh2.cjs +8 -0
  29. package/browser/cjs/{O6F5xVsoF2hTiprv2.cjs → DCOqoH-T4Ux_1dQj2.cjs} +1 -1
  30. package/browser/cjs/{CEEuvrhhkW5TgJnc.cjs → DDPnnW8pKC_2zw9B.cjs} +3 -3
  31. package/browser/cjs/DEeKo15ZqUcmFDOr2.cjs +1 -0
  32. package/browser/cjs/DHkk0JkwMtD44kS3.cjs +1 -0
  33. package/browser/cjs/{BUm56uGV9gjkjukY.cjs → DHqatAcjRnNrazeD.cjs} +1 -1
  34. package/browser/cjs/{-fvFQTbevbuRecGW.cjs → DKZA4pMye4Pmg1RA.cjs} +1 -1
  35. package/browser/cjs/DLAAtKRVBbSpGhxl.cjs +1 -0
  36. package/browser/cjs/{DB7uY0V24myTsCAO2.cjs → DToMNH3wGi3n2uzu2.cjs} +1 -1
  37. package/browser/cjs/DZjJnyrLugwcGEp_.cjs +1 -0
  38. package/browser/cjs/DfEVusmtxqWAEEiY.cjs +1 -0
  39. package/browser/cjs/DfFRdD4_C7I-6yMX.cjs +30 -0
  40. package/browser/cjs/Dki3Dmf6EPdM8LlM.cjs +6 -0
  41. package/browser/cjs/DkmumL9n_dH_hGQM.cjs +15 -0
  42. package/browser/cjs/Dl78hBFh7yqtDkqK.cjs +1 -0
  43. package/browser/cjs/{BbXbe-bwCJLD279F.cjs → DmLfFV_n8G4X8mrz.cjs} +1 -1
  44. package/browser/cjs/{DnMx7IQDtha_NuLB2.cjs → DqPfiDmZbBXEaCP_2.cjs} +1 -1
  45. package/browser/cjs/DsXQ2l8FnovrZHUY.cjs +1 -0
  46. package/browser/cjs/{D3gV1sduXTeibviI.cjs → Dw0B6dMDxbb1xfgd.cjs} +1 -1
  47. package/browser/cjs/{BnXCqfKX491kQrtl.cjs → Dyh_1aZCy-1UzCsZ.cjs} +1 -1
  48. package/browser/cjs/GYpazpfoUjLOoCiK.cjs +1 -0
  49. package/browser/cjs/{BmdFT-Ie0SY8YqFf.cjs → On1UFwmi1jBdIPHA.cjs} +2 -2
  50. package/browser/cjs/{B6k5f9VFbYVTvfVE2.cjs → VzSM9peK6m7Un51q2.cjs} +1 -1
  51. package/browser/cjs/YXZX8u8UAJjC65if2.cjs +1 -0
  52. package/browser/cjs/index.cjs +1 -1
  53. package/browser/cjs/ukoyeeBQoyNfdkag.cjs +32 -0
  54. package/browser/cjs/xuAfpHmA2W4MFa_0.cjs +1 -0
  55. package/browser/cjs/yWKtR8OoFhtOqU0C.cjs +2 -0
  56. package/{cdn/assets/D6o4brLafnJRIFnU.js → browser/esm/0aKGd26gK-kyYQpJ.mjs} +2 -2
  57. package/browser/esm/{Bt3ndQy-OnI4OHTz.mjs → 1YNqnAQLBD6Rbh-J2.mjs} +1 -1
  58. package/browser/esm/{B1ZEbc_b-Hug9WON.mjs → 2F7YZkGv5ARgpyZp.mjs} +1 -1
  59. package/browser/esm/{DsGyEBTgXCOEpB4D.mjs → 2wA_KrUFQ1jrFBd9.mjs} +69 -68
  60. package/browser/esm/{BkU3OKqpa0ddsfDs.mjs → 33yirHl3UNk6hI0k.mjs} +2 -2
  61. package/{cdn/assets/D5nFDHDC5F0D8PyZ.js → browser/esm/33yirHl3UNk6hI0k2.mjs} +2 -2
  62. package/{cdn/assets/DyQEm0-NZ41L--1K.js → browser/esm/4Ah98p4lGiqrlbx6.mjs} +1 -1
  63. package/browser/esm/{Cl_mxlCr73V-Yg6k.mjs → B6hXpbUeJ5Oyyttd.mjs} +8015 -7564
  64. package/browser/esm/{COqCbm81u1WaCS7k.mjs → BCGMvpUPFTYcKGbk.mjs} +1 -1
  65. package/browser/esm/{KH2MZAMxGzfVMoKB2.mjs → BFrhIhjN1UwpjBcV2.mjs} +9 -9
  66. package/{cdn/assets/CCIybQZ3Tgu4CxnN2.js → browser/esm/BFv3n-8UY0C32OsF2.mjs} +1 -1
  67. package/browser/esm/{cBQ4eqpoDrXn7JHn.mjs → BGgqNYvM_RAz4jrA.mjs} +3 -3
  68. package/browser/esm/{C6eVL3m02S-Qj2uy2.mjs → BSyEOmiRvJDj0_4_2.mjs} +1 -1
  69. package/browser/esm/{C7Em8LjBH1VJoyfm.mjs → BT_Wxatn8mtmQ5qD.mjs} +1 -1
  70. package/browser/esm/{BefWPzywuI_Ptwju.mjs → BU7mp3uhAKScJeIR.mjs} +13 -13
  71. package/browser/esm/{q3Mf-6we7Zn-SXlN2.mjs → BV4Vqj3NFgB6gT0a2.mjs} +62 -62
  72. package/browser/esm/{DCOuB4SkbT3JU9bd2.mjs → BVJrNnBCgG9jP7JN2.mjs} +7 -7
  73. package/browser/esm/{C-X2_FUeulh-Fay1.mjs → BWpXJ2OCAVkNOxJs.mjs} +5 -5
  74. package/browser/esm/{CJfK3Zm2ZKVEv5Mv.mjs → BXBYzUCo-8Y2kvih.mjs} +1 -1
  75. package/browser/esm/{C82u-7ClfP9SoGOY2.mjs → BZ860rgIJYeM_mZk2.mjs} +7 -7
  76. package/browser/esm/{B-svf5wq7V5QDtO4.mjs → BZKWCpLfrzdLKWH3.mjs} +12 -12
  77. package/{cdn/assets/DLxFo71kHJsGXBZ32.js → browser/esm/Ba8XCzy9ufDNa_mw.mjs} +1 -1
  78. package/browser/esm/{CtIl_LU__yf7i0CI2.mjs → BcaaTjcuVt3Oji-Y2.mjs} +15 -15
  79. package/browser/esm/{DdWhgxkT5YtvYarN.mjs → Beb-71pldLN9-lkZ2.mjs} +1 -1
  80. package/browser/esm/{BmHI7i54YtVAcFrP.mjs → Bh63JoX4eBlOHfnf.mjs} +5 -5
  81. package/browser/esm/{BzY-TCedGBSg3UzZ2.mjs → Biy4xNo0ds01Jy6T2.mjs} +7 -7
  82. package/browser/esm/{DgmukBO5L3U9_0t42.mjs → BjcfDORFDLJVCh9M2.mjs} +1 -1
  83. package/browser/esm/{DIxQ75X7k8keCEPD.mjs → BnzryntYV2vpXfKO.mjs} +3 -3
  84. package/browser/esm/{DaSrO6iF4NOXLpMI2.mjs → BoWxoDcx70L4pgIG2.mjs} +1 -1
  85. package/browser/esm/{pkHBfquSDF6569Gk2.mjs → BouasW9i4KF5ayiD2.mjs} +2 -2
  86. package/{cdn/assets/BT8V24glIXLW0J7i2.js → browser/esm/BpSYpeutbljnZDCG.mjs} +1 -1
  87. package/browser/esm/{CD-JsN04jY0VyY1v.mjs → Bsfmz9sSNYL1bur2.mjs} +1 -1
  88. package/browser/esm/{BQkwe2PCHBQEw--9.mjs → BuZnLC96IH7EKmDo.mjs} +2 -2
  89. package/{cdn/assets/DJfrSiVd9Hm9g2d2.js → browser/esm/BwpeFsNLJ6sOyg-V.mjs} +1 -1
  90. package/browser/esm/{CBv1rU3xPDQ-215V2.mjs → ByGJD0lWglnYtMOB2.mjs} +7 -7
  91. package/{cdn/assets/uVz7RxSLXYsjkdHy.js → browser/esm/Byeb25yVhxGAjZjs.mjs} +2 -2
  92. package/{cdn/assets/COJLKiCysD7hs2jG2.js → browser/esm/Bzbxw_NHYqY5MOhk2.mjs} +1 -1
  93. package/browser/esm/{GZBYOLZMS5CK612Z.mjs → C-5IXNwUVn75K6U_.mjs} +8 -8
  94. package/{cdn/assets/KRAw_H4pyLSGG7VM.js → browser/esm/C-_7D2KLIoDlB5ZW2.mjs} +1 -1
  95. package/browser/esm/{DhZ8HFnFgb6ij3dI.mjs → C1qj_93tElwUAeIR.mjs} +13 -13
  96. package/browser/esm/{vFkFpwfIwu3oIJ542.mjs → C6kRIEgNpvwokXS62.mjs} +1 -1
  97. package/browser/esm/{Bb-mZ1cMsciuz4ww.mjs → C8_izylh6h0mCmn0.mjs} +158 -158
  98. package/browser/esm/{1Xvtgcae3VR_6R8I.mjs → C8rk3b1et4kn4nmh.mjs} +6 -6
  99. package/browser/esm/{CFnqyLJDpOXdxb3c2.mjs → CBC4DPaH9zC8bgtR2.mjs} +5 -5
  100. package/browser/esm/{DxLzXk_tSrLv1u632.mjs → CBHMqMbfHpto8A1O2.mjs} +1 -1
  101. package/browser/esm/{ByGJZ2rruqWUbaGY.mjs → CFw_lEfCjWsjFmod.mjs} +8 -8
  102. package/browser/esm/{BZvD2AxAqbnxspY6.mjs → CI2gMVZhmhMTMxzw.mjs} +7066 -5159
  103. package/browser/esm/{RP044HPTvZ7fRPp62.mjs → CK37hazurRQUhGh82.mjs} +11 -11
  104. package/browser/esm/{BPnA1nEVe1clG1IF.mjs → CL6HRP8ocSnYryNh.mjs} +4 -4
  105. package/browser/esm/{Br0flZ59oGm_KTug2.mjs → CNanescYL9L5uras2.mjs} +2 -2
  106. package/browser/esm/{DFHP3kC1VW25l54r2.mjs → CQBwlTSXDAUWu4W9.mjs} +1 -1
  107. package/browser/esm/{BrUW8pfVTjf65sDi2.mjs → CQWSMhxAOeTXp9Kx2.mjs} +2 -2
  108. package/browser/esm/{C55NEfrA6s_yuajX2.mjs → CQyt-UVizZgazLy5.mjs} +1 -1
  109. package/browser/esm/{ZMzJhKJMzHflPVYY.mjs → CRFwpUUcSI_tqcjz.mjs} +2 -2
  110. package/{cdn/assets/CaHBZElxMjo_v4LY.js → browser/esm/CXgg3tQvJDJO6SSm2.mjs} +1 -1
  111. package/browser/esm/{ooQCodfB4ck6IWqw.mjs → C_0vyfGPMnLDdlSb.mjs} +1 -1
  112. package/{cdn/assets/Bp36kaEEsGhP709t.js → browser/esm/Cag5TarcS7KgHsRo2.mjs} +1 -1
  113. package/browser/esm/{CWJBcuvUa2RVQMju.mjs → CfdMPj-NygDGMh04.mjs} +3 -3
  114. package/{cdn/assets/BfqHVT9RAMHzPrq2.js → browser/esm/CgddS2k-SBQbGu-q.mjs} +1 -1
  115. package/{cdn/assets/Bi82rHDsiL2lqeRo2.js → browser/esm/ChMJWEuVIDRtM4F-2.mjs} +1 -1
  116. package/{cdn/assets/DxkY3Q5VwWkfqW7t2.js → browser/esm/CiwAp4s68xfZm7za2.mjs} +1 -1
  117. package/browser/esm/ClKovUJdtYnSDXcU.mjs +2298 -0
  118. package/{cdn/assets/BBmgXo0P8kU87RB4.js → browser/esm/CmbsN81GDpmY3RPO.mjs} +1 -1
  119. package/{cdn/assets/D5MFyg_gQzrtkU5q.js → browser/esm/Cn4jB4Paw7SdIEXJ.mjs} +1 -1
  120. package/browser/esm/{BxetdicosmSVg2vW.mjs → CnGCJJ5xiRobAWcX.mjs} +12 -11
  121. package/{cdn/assets/BS7DCPO7VdYxiXF8.js → browser/esm/CoVIoxu1xnlKd2HA2.mjs} +1 -1
  122. package/{cdn/assets/De94qdhWNQbkhAKb.js → browser/esm/Cp2HULnAKhE-UPLK.mjs} +829 -809
  123. package/browser/esm/{DcZJy7SSyaWDcelM.mjs → CpHxcPS-3EVZkuEF.mjs} +2 -2
  124. package/browser/esm/{mGzBkmSW0FIS3l47.mjs → CpWlrwsyFr5LDXzk.mjs} +1 -1
  125. package/browser/esm/{BD1aTBqOuoKSzGSD.mjs → CshbEuB1T3tTBKsg.mjs} +41 -51
  126. package/browser/esm/{fY2YKQMUdsYu7XiI.mjs → CvzmHqRHrWQRXCU4.mjs} +1 -1
  127. package/browser/esm/{BtPBnZB0UiICvNBH.mjs → CwRejmwDTGehmz3r.mjs} +3 -3
  128. package/browser/esm/{DmxxEaNdjPB6nBgy.mjs → CzCX-Wad3yMcEHob.mjs} +1 -1
  129. package/browser/esm/{rFUbFjv5JlDQ1yJw2.mjs → D1Jl06sXpn8zZgdb2.mjs} +11 -11
  130. package/browser/esm/{BxhPqvaARsOu1pOy2.mjs → D1jTquzDJ_dOLWn32.mjs} +531 -530
  131. package/browser/esm/{BRSPE-Kbm0TK7bm4.mjs → D1rCmgzPQzy6VXMS.mjs} +1 -1
  132. package/browser/esm/{C7926vmEK1-oM95A2.mjs → D2Fopvel0AE5OMJ82.mjs} +14 -14
  133. package/{cdn/assets/De8YQFKHRYztHtNy.js → browser/esm/D70qxLxD0ZWgLmBs2.mjs} +1 -1
  134. package/browser/esm/{y7OPrnmnmsKf_AFC.mjs → DBYgTlTpZKZGoP3J.mjs} +1 -1
  135. package/{cdn/assets/rTH3jO4xeLwX22po2.js → browser/esm/DFQANFiqOXXHBhY6.mjs} +1 -1
  136. package/browser/esm/{CHCc5YuSbtNgC6qQ.mjs → DGb0H5-84FuMTt7D.mjs} +1 -1
  137. package/browser/esm/{C__NPFffG8xrVl4W.mjs → DIqQkABlFa6ThxBq.mjs} +12 -12
  138. package/browser/esm/{DFfqXOHApBHKjPmq.mjs → DOrZ1rQOO7y7wy_m2.mjs} +1 -1
  139. package/browser/esm/{DFgibCVRkv7ROc5v2.mjs → DR-J6OnvqplpkxjY2.mjs} +1 -1
  140. package/browser/esm/{B4OkD-x-7fL0aUxy.mjs → DW3HvTGIMKSU5-rE.mjs} +5 -5
  141. package/{cdn/assets/S2-ef6zfqD83qohl.js → browser/esm/D_wBIcd-JG6pjL6X.mjs} +675 -726
  142. package/{cdn/assets/Bdf9NRBqMDRFuqxL2.js → browser/esm/Db0wkQr-gcaXZ-xF2.mjs} +1 -1
  143. package/browser/esm/{BuBAtTrlYVvU86de.mjs → Dc-ACeeHSIUlPwwK.mjs} +9 -7
  144. package/browser/esm/{DZUjFTXDHp2HSvYN.mjs → DhElOu55OpNI63fY.mjs} +13 -13
  145. package/browser/esm/{DcKd5bjp1ZnTq_-x.mjs → DiC8s-5zqDT2bSX_.mjs} +1 -1
  146. package/browser/esm/{DNwEAT1MO-6FRFlC.mjs → Dj99WdDE0W4pbL9Z.mjs} +5 -5
  147. package/browser/esm/{BcO0tjxUkaw8VKEE2.mjs → DkzeehP-6WrvoENP2.mjs} +8 -8
  148. package/{cdn/assets/B3xtxS53C7jgKwfe2.js → browser/esm/Dmnc6PGw0oZha0MF.mjs} +2612 -1415
  149. package/{cdn/assets/9cn1ewqq1BWmzgIL.js → browser/esm/DnIM43F01HIS9vrs2.mjs} +1 -1
  150. package/browser/esm/{BDFm0nphkYgT4nS22.mjs → Do9KFjmpgHDzEREb2.mjs} +9 -9
  151. package/browser/esm/{CoqDXeaMS0XICCe2.mjs → DonKewYwnXajr7vb.mjs} +1 -1
  152. package/browser/esm/{C8jJJ5X2nIRCaMcu2.mjs → DqrAn9WP17T4sX4k.mjs} +1 -1
  153. package/browser/esm/{C2DL_mDwKLFZBqvN2.mjs → DtgxDfYXDdgRF8CP2.mjs} +1 -1
  154. package/{cdn/assets/D4cHE39d638a1U-y.js → browser/esm/DwcvG_p7iZ2TOYkO2.mjs} +1 -1
  155. package/browser/esm/{q9O6l04D06PeFt9r.mjs → Dx_rx7X79sTRpl4o.mjs} +5 -5
  156. package/browser/esm/{DfDgl_4vSuF3nubw2.mjs → Dy92PkC2HNPr3NUS2.mjs} +13 -13
  157. package/browser/esm/F2DxvTu1OtKx4KOu.mjs +62 -0
  158. package/browser/esm/{B4g2Yf4whV01sYya2.mjs → FzT0Kg_BbOdmREpX2.mjs} +1 -1
  159. package/browser/esm/{BSlFBKA1YartFibf.mjs → I660lM4WXwKByUBN.mjs} +618 -293
  160. package/{cdn/assets/4YGRiYPupFKq8BfP.js → browser/esm/LcWP7jwFTbFV8PXB.mjs} +1 -1
  161. package/browser/esm/NICR6e-cHnVuaN672.mjs +68 -0
  162. package/browser/esm/{DU8ox87tBW2BnWct.mjs → Oi3vEmqVfUYeowoU.mjs} +16 -16
  163. package/{cdn/assets/DIARlYhdv_2V83X8.js → browser/esm/XVb52lYk0hnvaibx2.mjs} +2 -2
  164. package/browser/esm/{B3PPwwyNEblsUOL8.mjs → _umvY0i6yb5YBaQW2.mjs} +1 -1
  165. package/browser/esm/{iHpxHAsf4TbCq-TE.mjs → eCn_J58pIBQwzSFQ.mjs} +1 -1
  166. package/browser/esm/{Dy_DuOQMMsoys5uG.mjs → eb55UkMxnvKhZf7Y.mjs} +43 -43
  167. package/{cdn/assets/BdTAWhP-loxlROWg.js → browser/esm/enNXuXOMFvwqMrMF2.mjs} +1 -1
  168. package/browser/esm/{BrDePmlBu6Hb4zjJ.mjs → f4dduywnnZ6uE-MZ.mjs} +1 -1
  169. package/browser/esm/{C18TArpE7wOvMYXB2.mjs → i81eZYR434OTxzFp2.mjs} +12 -12
  170. package/browser/esm/{D-oV3YlvN_279OAe.mjs → ilaSvZy5MHqAeVhr.mjs} +8 -8
  171. package/browser/esm/index.mjs +4 -4
  172. package/browser/esm/{BASSDm-JY_bgolFA2.mjs → jBZULYj6alt6xc0v2.mjs} +1 -1
  173. package/browser/esm/{B4jNGg7_t9JeroNp2.mjs → jt7Pndny1ddX66eh2.mjs} +37 -7
  174. package/browser/esm/{BA63EN1awAh-Inzl.mjs → ms6uwR8n8YkKj8qd.mjs} +1419 -1022
  175. package/browser/esm/{D_Iw8uMiIvx2jhcv2.mjs → n6xdiChPzW0alL9f2.mjs} +1 -1
  176. package/browser/esm/{BJXpsm4jy1MQEydA.mjs → naRjzZqPt0JSdeaD.mjs} +2141 -1911
  177. package/browser/esm/{Dc5MbVn_75FtzgPY2.mjs → qG3Ardi8Sem7RxlS2.mjs} +1 -1
  178. package/browser/esm/{Bjpm9ZVaFQRdne7s.mjs → rkgkqx2vOlkYHUxK2.mjs} +1 -1
  179. package/browser/esm/{DL_mqnTNaFcgm_nY.mjs → ro6GeRkPlX0NJeiX.mjs} +2 -2
  180. package/browser/esm/sq1ZQBDrjmOCMkE8.mjs +2624 -0
  181. package/{cdn/assets/5DCw2IuKPn_ERodw.js → browser/esm/wcldfedI_9KDEtaN.mjs} +1 -1
  182. package/browser/esm/{DgCRnAf5wqM0QG4X2.mjs → xmD5IJJziRqUIbkU.mjs} +1 -1
  183. package/cdn/assets/{ml6iN9Or0sV9rNHQ2.js → -0ZWO-sILmjXhdUn2.js} +10 -10
  184. package/cdn/assets/{CEP2pbRcOThbPSHu2.js → 0ytlp68IedQ03SxN2.js} +8 -8
  185. package/cdn/assets/{Bt3ndQy-OnI4OHTz.js → 1YNqnAQLBD6Rbh-J.js} +1 -1
  186. package/cdn/assets/{B1ZEbc_b-Hug9WON2.js → 2F7YZkGv5ARgpyZp2.js} +1 -1
  187. package/{browser/esm/DyQEm0-NZ41L--1K.mjs → cdn/assets/4Ah98p4lGiqrlbx6.js} +1 -1
  188. package/{browser/esm/CY8tngENYkEZn2SB.mjs → cdn/assets/5fk4i8-157Ur23Jd.js} +676 -725
  189. package/cdn/assets/{CR_q2LxqSxi13Hij2.js → B3g1fc-3zQH4IhzA2.js} +19439 -18988
  190. package/cdn/assets/{COqCbm81u1WaCS7k2.js → BCGMvpUPFTYcKGbk2.js} +1 -1
  191. package/cdn/assets/{D_qtb6BEhWE61Z7C.js → BCunHjPgizrAsDXf.js} +17 -17
  192. package/cdn/assets/{C3wPGkvUzepIQRVC2.js → BE8QpwvUMA9nmViB2.js} +62 -62
  193. package/{browser/esm/CCIybQZ3Tgu4CxnN.mjs → cdn/assets/BFv3n-8UY0C32OsF.js} +1 -1
  194. package/cdn/assets/BJNI25e2dCdq29AM.js +62 -0
  195. package/cdn/assets/{Csgvd2uwdSVvtxd0.js → BLSwh5Hqlo-b8LTp.js} +3 -3
  196. package/cdn/assets/{C1Fgr1CHaaJCZwDE2.js → BOVd36GaYwk1m1gs2.js} +22 -22
  197. package/cdn/assets/{DA1nRTNBW1PtpWgT.js → BPdZCt3a5bggHnmC.js} +2 -2
  198. package/cdn/assets/{C6eVL3m02S-Qj2uy.js → BSyEOmiRvJDj0_4_.js} +1 -1
  199. package/cdn/assets/{C7fY4QaenhDjniAr.js → BWv9YMAIb4d7yeRr.js} +70 -69
  200. package/cdn/assets/{CJfK3Zm2ZKVEv5Mv2.js → BXBYzUCo-8Y2kvih2.js} +1 -1
  201. package/cdn/assets/{B5IRoZY13t_fHSz42.js → BXCPrm92ipaRS1ge2.js} +17 -17
  202. package/cdn/assets/{3fQDDuvcrnAkT5qe.js → BY3exqKgwDNCbdrG.js} +85 -85
  203. package/{browser/esm/DLxFo71kHJsGXBZ3.mjs → cdn/assets/Ba8XCzy9ufDNa_mw2.js} +1 -1
  204. package/cdn/assets/BbQdrdBSar3saQX32.js +149 -0
  205. package/cdn/assets/{DdWhgxkT5YtvYarN2.js → Beb-71pldLN9-lkZ.js} +1 -1
  206. package/cdn/assets/{DgmukBO5L3U9_0t4.js → BjcfDORFDLJVCh9M.js} +1 -1
  207. package/cdn/assets/{DaSrO6iF4NOXLpMI.js → BoWxoDcx70L4pgIG.js} +1 -1
  208. package/cdn/assets/{pkHBfquSDF6569Gk.js → BouasW9i4KF5ayiD.js} +2 -2
  209. package/{browser/esm/BT8V24glIXLW0J7i.mjs → cdn/assets/BpSYpeutbljnZDCG2.js} +1 -1
  210. package/cdn/assets/{ZDs8hbqQmtSIaDZm.js → Br5sDsj8RypYlTfI.js} +3641 -3411
  211. package/cdn/assets/{aIjKRE7sQ1uohehj.js → BrY06ew6SWC_tvAK.js} +12 -12
  212. package/cdn/assets/{CD-JsN04jY0VyY1v2.js → Bsfmz9sSNYL1bur2.js} +1 -1
  213. package/cdn/assets/{CxR_QBoT5nmLyrpM2.js → Bu2WNghK3j0fB5oh2.js} +10 -10
  214. package/{browser/esm/DJfrSiVd9Hm9g2d2.mjs → cdn/assets/BwpeFsNLJ6sOyg-V2.js} +1 -1
  215. package/{browser/esm/dRE1rh6cW8nKpTsz2.mjs → cdn/assets/BxwJ2xXpa1-_Ji8R.js} +2 -2
  216. package/cdn/assets/{C0VNHurPIrPcmiu02.js → BzWz5q7aXaBHYtCY2.js} +2 -2
  217. package/{browser/esm/COJLKiCysD7hs2jG.mjs → cdn/assets/Bzbxw_NHYqY5MOhk.js} +1 -1
  218. package/{browser/esm/KRAw_H4pyLSGG7VM2.mjs → cdn/assets/C-_7D2KLIoDlB5ZW.js} +1 -1
  219. package/cdn/assets/{BvuxB7CzGAv0w7by.js → C3FTMx72bE115RW8.js} +8 -8
  220. package/cdn/assets/{DFAAoXpOwrC4RlJR2.js → C4CBg5NXA83M7-rF2.js} +8 -8
  221. package/cdn/assets/{vFkFpwfIwu3oIJ54.js → C6kRIEgNpvwokXS6.js} +1 -1
  222. package/cdn/assets/{2rpiEjMFb7cTkJWu.js → CAz1eWlfMv2L6OpC.js} +2 -2
  223. package/cdn/assets/{DxLzXk_tSrLv1u63.js → CBHMqMbfHpto8A1O.js} +1 -1
  224. package/cdn/assets/{BVM91MmuaEyh3X9n.js → CDCQpPgRQ4H7KmfY.js} +2 -2
  225. package/cdn/assets/{Dkba6grmCB6y_Yvs2.js → CJD_9GC-kZb-DHuw2.js} +12 -12
  226. package/cdn/assets/{BwMxbQa51h7P3IFw.js → CJSzKVgSGEQCyJfx.js} +3 -3
  227. package/{browser/esm/BZwg6XaGq6GshkAo.mjs → cdn/assets/CKKWAZkEaZ4JpBOq.js} +726 -706
  228. package/cdn/assets/{ZFmNH36WAkLLbTKE2.js → CMV31zC7ULkWMF6V2.js} +8 -8
  229. package/cdn/assets/{oclc-Ixh46_UsUpL.js → CNTCzYCjbg0XYQ9w.js} +2 -2
  230. package/cdn/assets/{6NAkWncviZTFXMsY2.js → COMdPpJxQ9_y8qIb2.js} +9 -9
  231. package/cdn/assets/{DFHP3kC1VW25l54r.js → CQBwlTSXDAUWu4W9.js} +1 -1
  232. package/cdn/assets/{C55NEfrA6s_yuajX.js → CQyt-UVizZgazLy5.js} +1 -1
  233. package/cdn/assets/{Ck6OFgakjG9KRLkz2.js → CXdK3ceNb39xu59l2.js} +44 -44
  234. package/{browser/esm/CaHBZElxMjo_v4LY2.mjs → cdn/assets/CXgg3tQvJDJO6SSm.js} +1 -1
  235. package/cdn/assets/CXtZMG9g-9oTtiqL.js +2298 -0
  236. package/cdn/assets/{ooQCodfB4ck6IWqw.js → C_0vyfGPMnLDdlSb2.js} +1 -1
  237. package/cdn/assets/{Dt52g2i0t1p8L5mE2.js → C_OzUxYG2SGBaAUf2.js} +25 -25
  238. package/{browser/esm/Bp36kaEEsGhP709t2.mjs → cdn/assets/Cag5TarcS7KgHsRo.js} +1 -1
  239. package/cdn/assets/{C566hKAp9g__r7-72.js → CdCDTqyTm5N2EY4W2.js} +89 -89
  240. package/{browser/esm/BfqHVT9RAMHzPrq22.mjs → cdn/assets/CgddS2k-SBQbGu-q2.js} +1 -1
  241. package/{browser/esm/Bi82rHDsiL2lqeRo2.mjs → cdn/assets/ChMJWEuVIDRtM4F-2.js} +1 -1
  242. package/{browser/esm/DxkY3Q5VwWkfqW7t.mjs → cdn/assets/CiwAp4s68xfZm7za.js} +1 -1
  243. package/{browser/esm/BkU3OKqpa0ddsfDs2.mjs → cdn/assets/Cl-N5g_1yS1UniCt.js} +2 -2
  244. package/{browser/esm/BBmgXo0P8kU87RB42.mjs → cdn/assets/CmbsN81GDpmY3RPO2.js} +1 -1
  245. package/{browser/esm/D5MFyg_gQzrtkU5q2.mjs → cdn/assets/Cn4jB4Paw7SdIEXJ.js} +1 -1
  246. package/cdn/assets/{BfmYSaC7YF8lHawu.js → CnUBHUIkRZCIWgUa.js} +8 -8
  247. package/{browser/esm/BS7DCPO7VdYxiXF82.mjs → cdn/assets/CoVIoxu1xnlKd2HA.js} +1 -1
  248. package/cdn/assets/{mGzBkmSW0FIS3l472.js → CpWlrwsyFr5LDXzk2.js} +1 -1
  249. package/cdn/assets/{C_zj-VriJ00f1MCn.js → CtugyaJ11FwQN-WY.js} +5 -5
  250. package/cdn/assets/{T7quzcPIEGcVdh0D2.js → CuV6xULcGiHONmem2.js} +6 -6
  251. package/cdn/assets/{DLY3Gp_G16n4d85q.js → CvEz12Ffb2RavW2v.js} +6 -6
  252. package/cdn/assets/{DVFxFNggaQDjhPuL2.js → CvjnhhM1I_Frxrat2.js} +51 -51
  253. package/cdn/assets/{fY2YKQMUdsYu7XiI.js → CvzmHqRHrWQRXCU4.js} +1 -1
  254. package/cdn/assets/{VLBw3i20lk_Yly9G.js → CyC5uu-ajw6189Hf.js} +7963 -6056
  255. package/cdn/assets/{DmxxEaNdjPB6nBgy2.js → CzCX-Wad3yMcEHob2.js} +1 -1
  256. package/cdn/assets/{P-5R1AyiA1bO8kls2.js → CzPNVSaAd-17U2N-.js} +7 -7
  257. package/{browser/esm/BdZUKtFZuJHAUStY.mjs → cdn/assets/D0-ySZmNB4p2PDsi2.js} +2612 -1415
  258. package/cdn/assets/{D8Ln6s5Q7xc7NoKg2.js → D03MDxsDGQS9hgbm2.js} +13 -13
  259. package/cdn/assets/{BRSPE-Kbm0TK7bm42.js → D1rCmgzPQzy6VXMS2.js} +1 -1
  260. package/cdn/assets/{BNBvUyjF30xlfOmr.js → D5RE0juCP5H8JlAH.js} +8 -8
  261. package/cdn/assets/{w8ORLCpD4v-F7nl22.js → D69bFt0qiJ0Banpu2.js} +9 -9
  262. package/{browser/esm/De8YQFKHRYztHtNy2.mjs → cdn/assets/D70qxLxD0ZWgLmBs.js} +1 -1
  263. package/cdn/assets/{DefFGyX5E__KiHEC.js → D8K4Srn2tnQLWkPz.js} +1583 -1186
  264. package/cdn/assets/{y7OPrnmnmsKf_AFC.js → DBYgTlTpZKZGoP3J2.js} +1 -1
  265. package/{browser/esm/rTH3jO4xeLwX22po.mjs → cdn/assets/DFQANFiqOXXHBhY62.js} +1 -1
  266. package/cdn/assets/{DFnfLBAD7P-akaff.js → DFTnRj9--tQc-vef.js} +2 -2
  267. package/{browser/esm/D9h6T10d18-OYsnY.mjs → cdn/assets/DGb0H5-84FuMTt7D.js} +1 -1
  268. package/cdn/assets/{C7Em8LjBH1VJoyfm.js → DGb0H5-84FuMTt7D2.js} +1 -1
  269. package/cdn/assets/{DFfqXOHApBHKjPmq.js → DOrZ1rQOO7y7wy_m.js} +1 -1
  270. package/cdn/assets/{N2PDFuHeMIcJXi-I2.js → DQSmYw6FezlICa7N2.js} +949 -624
  271. package/cdn/assets/{CKFb0F8a8b7Bp8XG2.js → DQ_DJLXBiyohjB3S2.js} +12 -12
  272. package/cdn/assets/{DFgibCVRkv7ROc5v.js → DR-J6OnvqplpkxjY.js} +1 -1
  273. package/cdn/assets/{CajvXeO8GjmlYo1w.js → DXJtK3wLsbICIvRL.js} +3 -3
  274. package/cdn/assets/{C0Nxz1Q33eJ2mdFL2.js → DaKYN7vgEkjwgprw.js} +14 -14
  275. package/{browser/esm/Bdf9NRBqMDRFuqxL.mjs → cdn/assets/Db0wkQr-gcaXZ-xF.js} +1 -1
  276. package/cdn/assets/{Dt3O9kdjcB6vva5A.js → DdmPDp4-0_yTeGr_.js} +231 -231
  277. package/cdn/assets/{rynh3babuCEq2zBn2.js → Der1-GUNSJF4NUBK2.js} +7 -7
  278. package/cdn/assets/{DcKd5bjp1ZnTq_-x2.js → DiC8s-5zqDT2bSX_2.js} +1 -1
  279. package/cdn/assets/{CA00G9Yi4uXcS5l5.js → DiVecFg4Jh_suq0_.js} +6 -6
  280. package/cdn/assets/{BX7-HB3e-_oTITi_.js → DiygIQUaTrLizj_A.js} +3 -3
  281. package/cdn/assets/{q7pkii0gu8s26iBw.js → Dn2VJNfytUlF_IF_.js} +2 -2
  282. package/{browser/esm/9cn1ewqq1BWmzgIL2.mjs → cdn/assets/DnIM43F01HIS9vrs.js} +1 -1
  283. package/cdn/assets/{CoqDXeaMS0XICCe2.js → DonKewYwnXajr7vb.js} +1 -1
  284. package/cdn/assets/{ByU4uQWIIAoe9hoQ2.js → DpIsyNPsRdTDh1cq.js} +13 -12
  285. package/cdn/assets/{OaIdw_jfk8n1tSOG.js → Dq8SI2oQstCKO-GY.js} +2 -2
  286. package/cdn/assets/{C8jJJ5X2nIRCaMcu.js → DqrAn9WP17T4sX4k.js} +1 -1
  287. package/cdn/assets/{C8HjRahIuD14iG_b.js → Drh6Y-moeT0GOGRL.js} +4 -4
  288. package/cdn/assets/{CaW2AIr71l8EwY4q.js → Ds-D_rdIJs76l1CW2.js} +5 -5
  289. package/cdn/assets/{RRJyZ2WtMoVN8bzW2.js → DtHIi5l5w6HWQF2d2.js} +14 -14
  290. package/cdn/assets/{C2DL_mDwKLFZBqvN.js → DtgxDfYXDdgRF8CP.js} +1 -1
  291. package/{browser/esm/D4cHE39d638a1U-y2.mjs → cdn/assets/DwcvG_p7iZ2TOYkO.js} +1 -1
  292. package/cdn/assets/{SY3JTpsm5Bpu0tXj.js → DweB8FS7VFYAmdcv.js} +11 -9
  293. package/cdn/assets/{B4g2Yf4whV01sYya.js → FzT0Kg_BbOdmREpX.js} +1 -1
  294. package/cdn/assets/IC-gXSmNOKyQGB9f2.js +69 -0
  295. package/{browser/esm/4YGRiYPupFKq8BfP2.mjs → cdn/assets/LcWP7jwFTbFV8PXB2.js} +1 -1
  296. package/cdn/assets/{C13AOL3lFAH4T6nv2.js → Qd6QBUsP7YTAXYvh2.js} +21 -21
  297. package/{browser/esm/D3aXs7hDPXNqjUte.mjs → cdn/assets/TuDsLDkXtOjxtleY2.js} +2 -2
  298. package/{browser/esm/Bu8wK5Vy7X9Vp_2S.mjs → cdn/assets/YDdOHwur-KHnZcch2.js} +2 -2
  299. package/cdn/assets/{DavJsn-94WtXCnyy2.js → _BhaDNMLX3Da5J122.js} +838 -837
  300. package/cdn/assets/{B3PPwwyNEblsUOL82.js → _umvY0i6yb5YBaQW.js} +1 -1
  301. package/cdn/assets/{Dlk7gS21CL59t8cD.js → b-G7BadS13tqu4Pu.js} +7 -7
  302. package/cdn/assets/{iHpxHAsf4TbCq-TE2.js → eCn_J58pIBQwzSFQ2.js} +1 -1
  303. package/{browser/esm/BdTAWhP-loxlROWg2.mjs → cdn/assets/enNXuXOMFvwqMrMF.js} +1 -1
  304. package/cdn/assets/{BrDePmlBu6Hb4zjJ.js → f4dduywnnZ6uE-MZ.js} +1 -1
  305. package/cdn/assets/{BASSDm-JY_bgolFA.js → jBZULYj6alt6xc0v.js} +1 -1
  306. package/cdn/assets/{D_Iw8uMiIvx2jhcv.js → n6xdiChPzW0alL9f.js} +1 -1
  307. package/cdn/assets/{Dc5MbVn_75FtzgPY.js → qG3Ardi8Sem7RxlS.js} +1 -1
  308. package/cdn/assets/{Bjpm9ZVaFQRdne7s.js → rkgkqx2vOlkYHUxK.js} +1 -1
  309. package/cdn/assets/sq1ZQBDrjmOCMkE8.js +2624 -0
  310. package/{browser/esm/5DCw2IuKPn_ERodw2.mjs → cdn/assets/wcldfedI_9KDEtaN2.js} +1 -1
  311. package/cdn/assets/{DgCRnAf5wqM0QG4X.js → xmD5IJJziRqUIbkU2.js} +1 -1
  312. package/cdn/assets/{BrYD9S8O_9gXuYHf.js → yHDAaNbolW5pTQRd.js} +36 -6
  313. package/cdn/index.js +2 -2
  314. package/package.json +3 -3
  315. package/browser/cjs/5drI55_IEkX8nx_B2.cjs +0 -8
  316. package/browser/cjs/BCaRwsX64XTvboxS.cjs +0 -93
  317. package/browser/cjs/BDnKbuPYvsWYP-3w.cjs +0 -14
  318. package/browser/cjs/BInT189S2DdzvIhp.cjs +0 -1
  319. package/browser/cjs/BPjFqEo3wA9GJNPE.cjs +0 -1
  320. package/browser/cjs/BTr4bJxe0-3IBHPb.cjs +0 -2
  321. package/browser/cjs/B_WV3e3yexp3dKaz.cjs +0 -9
  322. package/browser/cjs/BbMNM5e-lfDFkOvn2.cjs +0 -1
  323. package/browser/cjs/BjQ-fIDc7Z3qMcPY.cjs +0 -1
  324. package/browser/cjs/C03SW3gXtIOgEr3A.cjs +0 -43
  325. package/browser/cjs/C2THZMKIDIU8VSFH2.cjs +0 -1
  326. package/browser/cjs/C9RqCKNI0CK1VHnE2.cjs +0 -1
  327. package/browser/cjs/CA37AwwfHsjvbZT62.cjs +0 -1
  328. package/browser/cjs/CHMgm0vAbEBS1mVW.cjs +0 -1
  329. package/browser/cjs/CLEx2DRw3kmsrkt82.cjs +0 -1
  330. package/browser/cjs/CgfPOPhwYwiOfpBy.cjs +0 -1
  331. package/browser/cjs/CkIFp77GQAFoyjtq.cjs +0 -1
  332. package/browser/cjs/CsGKVtbBtGlgkYJw2.cjs +0 -1
  333. package/browser/cjs/Ct45LEBcOGxMU-VE2.cjs +0 -1
  334. package/browser/cjs/DKdgEj89ChMWaDQz.cjs +0 -3
  335. package/browser/cjs/DLYEQZzAGuSAmJsp.cjs +0 -6
  336. package/browser/cjs/DRgeBTxGZFx-ukKA.cjs +0 -1
  337. package/browser/cjs/DXGjBmROptbxP3On.cjs +0 -24
  338. package/browser/cjs/DXJEany3J8zAcDA5.cjs +0 -32
  339. package/browser/cjs/Dgxx0CvoFxJobjxY.cjs +0 -1
  340. package/browser/cjs/GN7MZBww4pHIrihk.cjs +0 -5
  341. package/browser/cjs/HR_JYXh2W9xtKFL2.cjs +0 -1
  342. package/browser/cjs/ImnRKBYtNpv7bEa7.cjs +0 -3
  343. package/browser/cjs/YGQWfCXmA-65lrhA2.cjs +0 -1
  344. package/browser/cjs/voiGKFLz_nq_RGBY2.cjs +0 -1
  345. package/browser/esm/OF1t5e-IpoCN4nMo.mjs +0 -2402
  346. package/browser/esm/r5p8Wcz2C4nKJXvc.mjs +0 -6104
  347. package/cdn/assets/BDYtqqyKrm2S3aWJ2.js +0 -159
  348. package/cdn/assets/BbjFUZr9zWRsnpUT2.js +0 -2402
  349. package/cdn/assets/C7Em8LjBH1VJoyfm2.js +0 -24
  350. package/cdn/assets/D9h6T10d18-OYsnY2.js +0 -24
  351. package/cdn/assets/HhQT-w3KhQYyLF3E.js +0 -6104
  352. /package/browser/cjs/{4nReftSsKWmnRdtf2.cjs → 4nReftSsKWmnRdtf.cjs} +0 -0
  353. /package/browser/cjs/{B6IXpae7f0J8Ocq62.cjs → B6IXpae7f0J8Ocq6.cjs} +0 -0
  354. /package/browser/cjs/{B6vy56yEA1I3B74O.cjs → B6vy56yEA1I3B74O2.cjs} +0 -0
  355. /package/browser/cjs/{C9q3zr8iCIoYDrdA.cjs → C9q3zr8iCIoYDrdA2.cjs} +0 -0
  356. /package/browser/cjs/{CFxueP0tbpmvY1Ip.cjs → CFxueP0tbpmvY1Ip2.cjs} +0 -0
  357. /package/browser/cjs/{CV4KQsHluMqo1I2Q2.cjs → CV4KQsHluMqo1I2Q.cjs} +0 -0
  358. /package/browser/cjs/{CXlzsh_WHCOsErJ1.cjs → CXlzsh_WHCOsErJ12.cjs} +0 -0
  359. /package/browser/cjs/{CaJGoNwTL6pAJ6a4.cjs → CaJGoNwTL6pAJ6a42.cjs} +0 -0
  360. /package/browser/cjs/{CrZlUtdX1h2RUnCP2.cjs → CrZlUtdX1h2RUnCP.cjs} +0 -0
  361. /package/browser/cjs/{D8-KovdJ0LjxqCe2.cjs → D8-KovdJ0LjxqCe22.cjs} +0 -0
  362. /package/browser/cjs/{DF4l8xrxkcLkgExp2.cjs → DF4l8xrxkcLkgExp.cjs} +0 -0
  363. /package/browser/cjs/{DM7-R_ltoLbA9jde.cjs → DM7-R_ltoLbA9jde2.cjs} +0 -0
  364. /package/browser/cjs/{DNKyaSruDogoBd2H.cjs → DNKyaSruDogoBd2H2.cjs} +0 -0
  365. /package/browser/cjs/{DRmo6uoGoqtiVff82.cjs → DRmo6uoGoqtiVff8.cjs} +0 -0
  366. /package/browser/cjs/{DpFg69dDCPoOK2BY.cjs → DpFg69dDCPoOK2BY2.cjs} +0 -0
  367. /package/browser/cjs/{Dtxj9JR14A-uliu52.cjs → Dtxj9JR14A-uliu5.cjs} +0 -0
  368. /package/browser/cjs/{Dx7GQ4ALtNG3kshu2.cjs → Dx7GQ4ALtNG3kshu.cjs} +0 -0
  369. /package/browser/cjs/{aONv0Ys3C8xmnaR82.cjs → aONv0Ys3C8xmnaR8.cjs} +0 -0
@@ -1,2402 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.7
3
- *
4
- * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- import { I as e } from "./DmxxEaNdjPB6nBgy.mjs";
8
- import { i as t, l as n } from "./B1ZEbc_b-Hug9WON.mjs";
9
- import { $ as r, B as i, Rt as a, U as o, X as s, h as c, p as l, rt as u, tt as d } from "./Cl_mxlCr73V-Yg6k.mjs";
10
- import { m as f } from "./BSlFBKA1YartFibf.mjs";
11
- import { r as p } from "./CHCc5YuSbtNgC6qQ.mjs";
12
- import { P as m, at as h, n as g } from "./BdZUKtFZuJHAUStY.mjs";
13
- import { c as _, f as v, h as y, l as b, m as x, o as ee, r as S, t as C } from "./BD1aTBqOuoKSzGSD.mjs";
14
- var w = class {
15
- constructor(e) {
16
- this.list = e;
17
- }
18
- get length() {
19
- return this.list.length;
20
- }
21
- item(e) {
22
- return this.list[e];
23
- }
24
- forEach(e, t) {
25
- let n = this.list, r = n.length;
26
- for (let t = 0; t < r; t++) e(n[t], t, this);
27
- }
28
- entries() {
29
- return this.list.entries();
30
- }
31
- keys() {
32
- return this.list.keys();
33
- }
34
- values() {
35
- return this.list.values();
36
- }
37
- [Symbol.iterator]() {
38
- return this.list.values();
39
- }
40
- }, te = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e && e !== "0" && e !== "off" && e !== "false" && null, ne = (e) => {
41
- let t = parseInt(e);
42
- return isNaN(t) ? null : t;
43
- }, re = (e) => {
44
- let t = parseFloat(e);
45
- return isNaN(t) ? null : t;
46
- }, ie = /* @__PURE__ */ new Map(), T = class {
47
- constructor(t, n, r, i, a, o = null, s = e.EmptyObject) {
48
- this._fileLocation = "", this._parent = t, this.sharedShared = n, this.currentPath = r, this.elemRoot = i, this.jsonRoot = a, t ? (this._fileLocation = t._fileLocation, this._getRef = t._getRef, this._getRefs = t._getRefs, this._serializeElement = t._serializeElement, this._readEmbeddedPart = t._readEmbeddedPart) : (o && (this._fileLocation = o), s?.getRef && (this._getRef = (e, t, n) => s?.getRef?.(e, t, n, s?.parsedRefs)), s?.getRefs && (this._getRefs = (e) => s?.getRefs?.(e, s?.parsedRefs)), this._onWarning = s?.onWarning, this._addPerson = s?.addPerson, this._serializeElement = s?.serializeElement, this._readEmbeddedPart = s?.readEmbeddedPart);
49
- }
50
- getRef(e, t = !1) {
51
- return this._getRef?.(e, this._fileLocation, t) ?? null;
52
- }
53
- readEmbeddedPart(e) {
54
- return this._readEmbeddedPart?.(e, this._fileLocation) ?? null;
55
- }
56
- getRelationships() {
57
- return this._getRefs?.(this._fileLocation) ?? ie;
58
- }
59
- getPath() {
60
- return this.currentPath;
61
- }
62
- getFileLocation() {
63
- return this._fileLocation;
64
- }
65
- getElemRoot() {
66
- return this.elemRoot;
67
- }
68
- getJsonRoot() {
69
- return this.jsonRoot;
70
- }
71
- warn(e, t) {
72
- this._raiseWarning(e, this.getFileLocation(), t?.onceKey);
73
- }
74
- _raiseWarning(e, t, n) {
75
- this._onWarning ? this._onWarning(e, t, n) : this._parent ? this._parent._raiseWarning(e, t, n) : console.warn(e);
76
- }
77
- serializeElement(e) {
78
- return this._serializeElement?.(e) ?? null;
79
- }
80
- addPerson(e) {
81
- return typeof e == "string" && (e = { displayName: e }), this._addPerson ? this._addPerson(e) : this._parent ? this._parent?._addPerson?.(e) ?? null : null;
82
- }
83
- getVisitorParamsState() {
84
- return this.sharedShared.getVisitorParamsState();
85
- }
86
- evaluate(e, t) {
87
- if (!e) return t;
88
- let n = [t], r = e.split("/"), i = r.length;
89
- for (let e = 0; e < i; e++) {
90
- let t = r[e];
91
- if (t === "" || t === ".") continue;
92
- let a = [], o = (t === "*" || t === "**") && e !== i - 1;
93
- for (let i of n) if (i) if (o) {
94
- let t = r[e + 1];
95
- t && t !== "" && t !== "." && (this._findDescendants(i, t, a), e++);
96
- } else if (t === "*" || t === "**") {
97
- if (!i.childNodes) continue;
98
- let e = i.childNodes, t = e.length;
99
- for (let n = 0; n < t; n++) {
100
- let t = e[n];
101
- t.nodeType === 1 && a.push(t);
102
- }
103
- } else {
104
- if (!i.childNodes) continue;
105
- let e = i.childNodes, n = e.length;
106
- for (let r = 0; r < n; r++) {
107
- let n = e[r];
108
- if (n.nodeType !== 1) continue;
109
- let i = n;
110
- this._matchesElementName(i, t) && a.push(i);
111
- }
112
- }
113
- if (n = a, n.length === 0) return null;
114
- }
115
- return n.length === 1 ? n[0] : n.length === 0 ? null : new w(n);
116
- }
117
- _matchesElementName(e, t) {
118
- return t.includes(":") ? (e.tagName || e.nodeName) === t : e.localName === t;
119
- }
120
- _findDescendants(e, t, n) {
121
- if (!e || !e.childNodes) return;
122
- let r = e.childNodes, i = r.length;
123
- for (let e = 0; e < i; e++) {
124
- let i = r[e];
125
- if (i.nodeType !== 1) continue;
126
- let a = i;
127
- this._matchesElementName(a, t) && n.push(a), this._findDescendants(a, t, n);
128
- }
129
- }
130
- getFromPath(t, n) {
131
- return e.getFromPath(t, n);
132
- }
133
- setToPath(t, n, r) {
134
- return e.setToPath(t, n, r);
135
- }
136
- getValAttrAsString(e, t) {
137
- let n = this.evaluate(e, t);
138
- return n && n.hasAttribute("val") ? n.getAttribute("val") ?? null : null;
139
- }
140
- getValAttrAsBoolean(e, t, n = !1) {
141
- let r = this.evaluate(e, t);
142
- if (!r) return null;
143
- let i = r.hasAttribute("val") ? r.getAttribute("val") : void 0;
144
- return i == null ? n : i === "1" || i === "on" || i === "true" || i !== "0" && i !== "off" && i !== "false" && n;
145
- }
146
- getValAttrAsInteger(e, t) {
147
- let n = this.evaluate(e, t);
148
- return n && n.hasAttribute("val") ? parseInt(n.getAttribute("val")) ?? null : null;
149
- }
150
- getValAttrAsFloat(e, t) {
151
- let n = this.evaluate(e, t);
152
- return n && n.hasAttribute("val") ? parseFloat(n.getAttribute("val")) ?? null : null;
153
- }
154
- get BOOLEAN_COPY() {
155
- return te;
156
- }
157
- get INT_COPY() {
158
- return ne;
159
- }
160
- get FLOAT_COPY() {
161
- return re;
162
- }
163
- copyFromAttribute(e, t, n, r = t, i = null) {
164
- if (!e || !n || !e.hasAttribute(t)) return;
165
- let a = e.getAttribute(t);
166
- if (i) {
167
- if (Array.isArray(i)) {
168
- let e = i.length;
169
- for (let t = 0; t < e; t++) if (a == null || (a = i[t](a), a == null)) return;
170
- } else if (a == null || (a = i(a), a == null)) return;
171
- }
172
- this.setToPath(n, r, a);
173
- }
174
- }, ae = p({
175
- isBlank: () => j,
176
- isNotBlank: () => oe,
177
- length: () => se,
178
- parseRotation: () => E,
179
- parseValAttrAsBoolean: () => O,
180
- parseValAttrAsFloat: () => A,
181
- parseValAttrAsInteger: () => k,
182
- parseValAttrAsString: () => D
183
- }), E = (t, n) => {
184
- if (!t || !t.hasAttribute("rot")) return;
185
- let r = t.getAttribute("rot"), i = e.roundAccurately(S(r), 2);
186
- i !== -1e3 && (n.rotation = i);
187
- }, D = (e, t, n, r, i) => {
188
- let a = e.getValAttrAsString(r, t);
189
- a !== null && (n[i] = a);
190
- }, O = (e, t, n, r, i = r, a = null) => {
191
- let o = e.getValAttrAsBoolean(r, t, a);
192
- o !== null && (n[i] = o);
193
- }, k = (e, t, n, r, i) => {
194
- let a = e.getValAttrAsInteger(r, t);
195
- a !== null && (n[i] = a);
196
- }, A = (e, t, n, r, i, a = 1) => {
197
- let o = e.getValAttrAsFloat(r, t);
198
- o !== null && (n[i] = o * a);
199
- }, j = (e) => !e || e.trim().length === 0, oe = (e) => !j(e), se = (e) => e?.length ?? 0, M = class {
200
- constructor(e) {
201
- this.jsonKey = e;
202
- }
203
- visit(e, t, n) {
204
- let r = {};
205
- return n[this.jsonKey] = r, r;
206
- }
207
- }, N = class {
208
- visit(e, t, n) {}
209
- getStroke(e, t) {
210
- let n = e.evaluate("ln", t);
211
- return n ? this.parseLn(e, n) : {};
212
- }
213
- parseLn(e, t) {
214
- let n = {};
215
- t.hasAttribute("algn") && (n.align = t.getAttribute("algn")), t.hasAttribute("cap") && (n.lineCap = ce(t.getAttribute("cap"))), t.hasAttribute("cmpd") && (n.compound = t.getAttribute("cmpd")), t.hasAttribute("w") && (n.width = v(t.getAttribute("w")));
216
- let r = e.evaluate("miter", t);
217
- r && (n.lineJoin = "miter", r.hasAttribute("lim") && (n.miterLimit = parseFloat(r.getAttribute("lim")) / 1e5)), e.evaluate("bevel", t) && (n.lineJoin = "bevel"), e.evaluate("round", t) && (n.lineJoin = "round");
218
- let i = e.evaluate("custDash", t);
219
- if (i) {
220
- let t = e.evaluate("ds", i);
221
- if (t && t.length > 0) {
222
- let e = [];
223
- for (let n = 0; n < t.length; n++) {
224
- let r = t.item(n);
225
- e.push(x(r.getAttribute("d") ?? "")), e.push(x(r.getAttribute("sp") ?? ""));
226
- }
227
- n.dash = e;
228
- }
229
- }
230
- let a = e.evaluate("prstDash", t);
231
- a && a.hasAttribute("val") && (n.dash = a.getAttribute("val")), this.parseEndElement(e, t, n, "headEnd", "head"), this.parseEndElement(e, t, n, "tailEnd", "tail");
232
- let o = this.getFill(e, t);
233
- return o && (n.fill = o), n;
234
- }
235
- parseEndElement(e, t, n, r, i) {
236
- let a = e.evaluate(r, t);
237
- if (a && (a.hasAttribute("type") && (n[i + "Type"] = a.getAttribute("type")), a.hasAttribute("len") || a.hasAttribute("w"))) {
238
- let e = a.getAttribute("len") || "med", t = a.getAttribute("w") || "med";
239
- n[i + "Size"] = e + "-" + t;
240
- }
241
- }
242
- getEffects(e, t) {
243
- let n = e.evaluate("effectLst", t);
244
- if (!n) return null;
245
- let r = [], i = n.childNodes, a = i.length;
246
- for (let t = 0; t < a; t++) {
247
- let n = i.item(t);
248
- if (n.nodeType !== 1) continue;
249
- let a = this.processEffectElement(e, n, n.localName);
250
- if (a === void 0) return;
251
- r.push(a);
252
- }
253
- return r;
254
- }
255
- processEffectElement(e, t, n) {
256
- switch (n) {
257
- case "outerShdw": {
258
- let n = {
259
- type: f.Type.OuterShadow,
260
- color: this.processAdjColor(e, t)
261
- };
262
- return t.hasAttribute("dist") && (n.distance = v(t.getAttribute("dist"))), t.hasAttribute("dir") && (n.angle = S(t.getAttribute("dir"))), t.hasAttribute("blurRad") && (n.blur = v(t.getAttribute("blurRad"))), t.hasAttribute("algn") && (n.alignment = t.getAttribute("algn")), t.hasAttribute("rotWithShape") && (n.isRotatedWithShape = C(t.getAttribute("rotWithShape"))), t.hasAttribute("sx") && (n.scaleX = x(t.getAttribute("sx"))), t.hasAttribute("sy") && (n.scaleY = x(t.getAttribute("sy"))), t.hasAttribute("kx") && (n.skewX = S(t.getAttribute("kx"))), t.hasAttribute("ky") && (n.skewY = S(t.getAttribute("ky"))), n;
263
- }
264
- case "innerShdw": {
265
- let n = {
266
- type: f.Type.InnerShadow,
267
- color: this.processAdjColor(e, t)
268
- };
269
- return t.hasAttribute("dist") && (n.distance = v(t.getAttribute("dist"))), t.hasAttribute("dir") && (n.angle = S(t.getAttribute("dir"))), t.hasAttribute("blurRad") && (n.blur = v(t.getAttribute("blurRad"))), n;
270
- }
271
- case "prstShdw": {
272
- let n = {
273
- type: f.Type.PresetShadow,
274
- color: this.processAdjColor(e, t),
275
- preset: t.getAttribute("prst") ?? void 0
276
- };
277
- return t.hasAttribute("dist") && (n.distance = v(t.getAttribute("dist"))), t.hasAttribute("dir") && (n.angle = S(t.getAttribute("dir"))), n;
278
- }
279
- case "glow": {
280
- let n = {
281
- type: f.Type.Glow,
282
- color: this.processAdjColor(e, t)
283
- };
284
- return t.hasAttribute("rad") && (n.radius = v(t.getAttribute("rad"))), n;
285
- }
286
- case "softEdge": {
287
- let e = { type: f.Type.SoftEdge };
288
- return t.hasAttribute("rad") && (e.radius = v(t.getAttribute("rad"))), e;
289
- }
290
- case "reflection": {
291
- let e = { type: f.Type.Reflection };
292
- return t.hasAttribute("blurRad") && (e.blur = v(t.getAttribute("blurRad"))), t.hasAttribute("dist") && (e.distance = v(t.getAttribute("dist"))), t.hasAttribute("dir") && (e.angle = S(t.getAttribute("dir"))), t.hasAttribute("fadeDir") && (e.fadeAngle = S(t.getAttribute("fadeDir"))), t.hasAttribute("stA") && (e.startAlpha = x(t.getAttribute("stA"))), t.hasAttribute("stPos") && (e.startPosition = x(t.getAttribute("stPos"))), t.hasAttribute("endA") && (e.endAlpha = x(t.getAttribute("endA"))), t.hasAttribute("endPos") && (e.endPosition = x(t.getAttribute("endPos"))), t.hasAttribute("sx") && (e.scaleX = x(t.getAttribute("sx"))), t.hasAttribute("sy") && (e.scaleY = x(t.getAttribute("sy"))), t.hasAttribute("kx") && (e.skewX = S(t.getAttribute("kx"))), t.hasAttribute("ky") && (e.skewY = S(t.getAttribute("ky"))), t.hasAttribute("algn") && (e.alignment = t.getAttribute("algn")), t.hasAttribute("rotWithShape") && (e.isRotatedWithShape = C(t.getAttribute("rotWithShape"))), e;
293
- }
294
- default: return;
295
- }
296
- }
297
- getFill(e, t) {
298
- if (e.evaluate("noFill", t)) return { type: c.Type.None };
299
- let n = e.evaluate("solidFill", t);
300
- if (n) {
301
- let t = this.processAdjColor(e, n);
302
- if (t) return {
303
- type: c.Type.Solid,
304
- color: t
305
- };
306
- }
307
- let r = e.evaluate("gradFill", t);
308
- if (r) return this.processGradFill(e, r);
309
- let i = e.evaluate("pattFill", t);
310
- if (i) return this.processPatternFill(e, i);
311
- let a = e.evaluate("blipFill", t);
312
- return a ? this.processImageFill(e, a) : null;
313
- }
314
- processGradFill(e, t) {
315
- let n = { type: c.Type.Gradient };
316
- t.hasAttribute("rotWithShape") && (n.isRotatedWithShape = t.getAttribute("rotWithShape") === "1");
317
- let r = e.evaluate("lin", t);
318
- r && (n.gradientType = c.GradientType.Linear, r.hasAttribute("ang") && (n.angle = S(r.getAttribute("ang"))), r.hasAttribute("scaled") && (n.scaled = C(r.getAttribute("scaled"))));
319
- let i = {};
320
- t.hasAttribute("flip") && (i.mirror = t.getAttribute("flip")), Object.keys(i).length > 0 && (n.tile = i);
321
- let a = e.evaluate("path", t);
322
- if (a) {
323
- a.hasAttribute("path") && (n.gradientType = P(a.getAttribute("path")));
324
- let t = e.evaluate("fillToRect", a);
325
- t && (n.focus = this.getRect(t));
326
- }
327
- let o = e.evaluate("tileRect", t);
328
- o && (n.tile ||= {}, n.tile.bounds = this.getRect(o));
329
- let s = [], l = e.evaluate("gsLst/gs", t), u = l ? l.length : 0;
330
- for (let t = 0; t < u; t++) {
331
- let n = l.item(t), r = {
332
- offset: x(n.getAttribute("pos") ?? ""),
333
- color: this.processAdjColor(e, n)
334
- };
335
- s.push(r);
336
- }
337
- return s.length > 0 && (n.stops = s), n;
338
- }
339
- getRect(e) {
340
- let t = {};
341
- return e.hasAttribute("t") && (t.t = x(e.getAttribute("t"))), e.hasAttribute("l") && (t.l = x(e.getAttribute("l"))), e.hasAttribute("b") && (t.b = x(e.getAttribute("b"))), e.hasAttribute("r") && (t.r = x(e.getAttribute("r"))), Object.keys(t).length === 0 ? null : t;
342
- }
343
- processImageFill(e, t) {
344
- let n = { type: c.Type.Image };
345
- return t.hasAttribute("rotWithShape") && (n.isRotatedWithShape = C(t.getAttribute("rotWithShape"))), t.hasAttribute("dpi") && (n.dpi = t.getAttribute("dpi")), n.ref = "https://www.sheetxl.com/logo-color-padded-white.jpg", n.tile = !1, n;
346
- }
347
- processPatternFill(e, t) {
348
- let n = { type: c.Type.Pattern };
349
- n.patternType = t.getAttribute("prst");
350
- let r = e.evaluate("bgClr", t);
351
- if (r) {
352
- let t = this.processAdjColor(e, r);
353
- t && (n.background = t);
354
- }
355
- let i = e.evaluate("fgClr", t);
356
- if (i) {
357
- let t = this.processAdjColor(e, i);
358
- t && (n.foreground = t);
359
- }
360
- return n;
361
- }
362
- processAdjColor(e, t) {
363
- let n = e.evaluate("hslClr", t);
364
- if (n) return this.processHslClr(e, n);
365
- let r = e.evaluate("prstClr", t);
366
- if (r) return this.processClrWithValAttribute(e, r);
367
- let i = e.evaluate("schemeClr", t);
368
- if (i) return this.processClrWithValAttribute(e, i);
369
- let a = e.evaluate("sysClr", t);
370
- if (a) {
371
- let t = this.processClrWithValAttribute(e, a), n = a.getAttribute("lastClr");
372
- return t && n && (t += ` lastClr ${n}`), t;
373
- }
374
- let o = e.evaluate("scrgbClr", t);
375
- if (o) return this.processScrgbClrElement(e, o);
376
- let s = e.evaluate("srgbClr", t);
377
- return s ? this.processSrgbClrElement(e, s) : null;
378
- }
379
- processScrgbClrElement(e, t) {
380
- let n = "lrgba(" + x(t.getAttribute("r") ?? "") + "," + x(t.getAttribute("g") ?? "") + "," + x(t.getAttribute("b") ?? "") + ")";
381
- return n += this.processAdjustments(e, t), n;
382
- }
383
- processSrgbClrElement(e, t) {
384
- let n = t.getAttribute("val");
385
- return n += this.processAdjustments(e, t), n;
386
- }
387
- processHslClr(e, t) {
388
- let n = "hsl(" + S(t.getAttribute("hue") ?? "") + "," + x(t.getAttribute("sat") ?? "") + "," + x(t.getAttribute("lum") ?? "") + ")";
389
- return n += this.processAdjustments(e, t), n;
390
- }
391
- processClrWithValAttribute(e, t) {
392
- let n = t.getAttribute("val");
393
- if (!n) return null;
394
- let r = n;
395
- return r += this.processAdjustments(e, t), r;
396
- }
397
- processAdjustments(e, t) {
398
- let n = "", r = t.childNodes, i = r.length;
399
- for (let t = 0; t < i; t++) {
400
- let i = r.item(t);
401
- if (i.nodeType === 1) {
402
- let t = i.localName;
403
- n += t === "hue" || t === "hueOff" || t === "hueMod" ? this.processAdjustmentElement(e, i, t, 6e4) : t === "gray" || t === "comp" || t === "inv" || t === "gamma" || t === "invGamma" ? this.processAdjustmentElement(e, i, t, 1) : t === "alpha" || t === "alphaOff" || t === "alphaMod" ? this.processAdjustmentElement(e, i, t, 1e5) : this.processAdjustmentElement(e, i, t);
404
- }
405
- }
406
- return n;
407
- }
408
- processAdjustmentElement(e, t, n, r = 1e3) {
409
- let i = t.getAttribute("val");
410
- return i ? ` ${n} ${!i || parseFloat(i) / r}` : ` ${n}`;
411
- }
412
- }, P = (e) => e === "circle" ? "radial" : e, ce = (e) => {
413
- if (e === "rnd") return "round";
414
- if (e === "flat") return "butt";
415
- if (e === "sq") return "square";
416
- throw Error("Invalid lineCap type: " + e);
417
- }, F = class extends N {
418
- visit(e, t, n) {
419
- try {
420
- let r = e.evaluate("xfrm", t);
421
- if (r) {
422
- E(r, n);
423
- let t = {
424
- x: 0,
425
- y: 0,
426
- width: 0,
427
- height: 0
428
- }, i = e.evaluate("off", r);
429
- i && (t.x = y(i.getAttribute("x")) ?? 0, t.y = y(i.getAttribute("y")) ?? 0);
430
- let a = e.evaluate("ext", r);
431
- i && (t.width = y(a.getAttribute("cx")) ?? 0, t.height = y(a.getAttribute("cy")) ?? 0), n.bounds = t;
432
- }
433
- let i = e.evaluate("prstGeom", t);
434
- i?.hasAttribute("prst") ? n.geometry = i?.getAttribute("prst") : e.evaluate("customGeom", t) && e.warn("Custom shape geometry is not supported; the shape keeps its bounds only.", { onceKey: "xlsx.shape.customGeometry" });
435
- let a = this.getFill(e, t);
436
- a && Object.keys(a).length > 0 && (n.fill = a);
437
- let o = this.getStroke(e, t);
438
- return o && Object.keys(o).length > 0 && (n.stroke = o), n;
439
- } catch (t) {
440
- e.warn(`Unable to read shape properties: ${t?.message ?? t}`, { onceKey: "xlsx.shape.unreadable" });
441
- }
442
- }
443
- }, I = class {
444
- visit(e, t, n) {
445
- let r = {};
446
- if (D(e, t, r, "grouping", "grouping"), O(e, t, r, "varyColors", "varyColors"), A(e, t, r, "gapWidth", "gapWidth", .01), A(e, t, r, "overlap", "overlap", .01), this.parseType(e, t, r), k(e, t, r, "bubbleScale", "bubbleScale"), O(e, t, r, "showNegBubbles", "showNegativeBubbleValues"), O(e, t, r, "sizeRepresents", "bubbleSizeRepresentsWidth"), k(e, t, r, "firstSliceAng", "startAngle"), k(e, t, r, "holeSize", "holeSize"), D(e, t, r, "scatterStyle", "scatterStyle"), this.parseAxisIds(e, t, r), Object.keys(r).length > 0) {
447
- let t = e.getVisitorParamsState().get("types");
448
- t || (e.warn("A chart type was read outside a chart; its types were started fresh.", { onceKey: "xlsx.chart.typesState" }), t = [], e.getVisitorParamsState().set("types", t)), t.push(r);
449
- }
450
- return r;
451
- }
452
- parseType(e, t, n) {
453
- switch (t.localName) {
454
- case "areaChart":
455
- n.type = "area";
456
- break;
457
- case "bubbleChart":
458
- n.type = "bubble";
459
- break;
460
- case "doughnutChart":
461
- case "ofPieType":
462
- case "pieChart":
463
- n.type = "pie";
464
- break;
465
- case "lineChart":
466
- n.type = "line";
467
- break;
468
- case "scatterChart": n.type = "scatter";
469
- }
470
- }
471
- parseAxisIds(e, t, n) {
472
- let r = e.evaluate("axId", t);
473
- r && r.length !== 0 && (n.xAxisId = r.item(0).getAttribute("val"), n.yAxisId = r.item(1).getAttribute("val"));
474
- }
475
- }, L = (e, t, n) => {
476
- if (!0 === e.getValAttrAsBoolean("invertIfNegative", t)) if (e.evaluate("extLst/ext/invertSolidFillFmt", t)) {
477
- if (n.fill && n.fillNegative) {
478
- let t = e.getFromPath(n, "fill.solid.adjs");
479
- t && e.setToPath(n, "fillNegative.solid.adjs", t);
480
- }
481
- } else {
482
- let e = { val: "FFFFFF" }, t = {};
483
- t.solid = e, n.fillNegative = t;
484
- let r = { val: "000000" }, i = {};
485
- i.solid = r;
486
- let a = {};
487
- a.fill = i, n.strokeNegative = a;
488
- }
489
- }, R = class extends N {
490
- constructor(e = "text") {
491
- super(), this._jsonKey = e;
492
- }
493
- getTextPath() {
494
- return this._jsonKey;
495
- }
496
- visit(e, t, n) {
497
- let r = e.getFromPath(n, this.getTextPath());
498
- return r ||= {}, this.parseTextElement(e, t, r, !1), Object.keys(r).length > 0 && e.setToPath(n, this.getTextPath(), r), n;
499
- }
500
- parseTextElement(e, t, n, r) {
501
- let i = e.evaluate("p/pPr/defRPr", t) ?? e.evaluate("defRPr", t), a = i?.length === void 0 ? i : i.item(0);
502
- a && (this.parseTextProperties(e, a, n), new F().visit(e, a, n));
503
- let o = n.runs ?? [], s = e.evaluate("p/r", t) ?? e.evaluate("r", t), c = (t) => {
504
- let n = {}, r = e.evaluate("t", t), i = e.evaluate("rPr", t);
505
- i && this.parseTextProperties(e, i, n), r && r.firstChild ? n.text = r.firstChild.textContent ?? "" : t.textContent && (n.text = t.textContent ?? ""), Object.keys(n).length > 0 && o.push(n);
506
- };
507
- if (s?.length !== void 0) for (let e = 0; s && e < s.length; e++) c(s.item(e));
508
- else c(s || t);
509
- o.length > 0 && (n.runs = o);
510
- let l = e.evaluate("bodyPr", t);
511
- l && E(l, n);
512
- }
513
- parseTextProperties(e, t, n) {
514
- if (!t) return;
515
- t.hasAttribute("sz") && (n.size = parseFloat(t.getAttribute("sz")) / 100), t.hasAttribute("b") && (n.weight = t.getAttribute("b") === "1" ? 700 : 400), t.hasAttribute("i") && (n.italic = t.getAttribute("i") === "1"), t.hasAttribute("u") && (n.underline = t.getAttribute("u")), t.hasAttribute("strike") && (n.strike = t.getAttribute("strike"));
516
- let r = this.getFill(e, t);
517
- r && Object.keys(r).length > 0 && (n.color = r);
518
- let i = e.evaluate("latin", t);
519
- if (i && !i.getAttribute("typeface").startsWith("+")) {
520
- let e = n.font ?? {};
521
- if (i.hasAttribute("typeface") && (e.family = i.getAttribute("typeface")), i.hasAttribute("panose")) {
522
- let t = i.getAttribute("panose");
523
- t && (e.fallbacks = [l.getPanoseFallback(t)]);
524
- }
525
- i.hasAttribute("pitchFamily") && (e.pitch = i.getAttribute("pitchFamily")), i.hasAttribute("charset") && (e.charset = i.getAttribute("charset")), Object.keys(e).length > 0 && (n.font = e);
526
- }
527
- }
528
- }, z = class {
529
- visit(e, t, n) {}
530
- processDataBarColor(e, t, n, r, i = "auto") {
531
- if (!t) return;
532
- let a = b((e) => t.getAttribute(e), i);
533
- return a && (n[r] = a), n;
534
- }
535
- processFonts(e, t, n) {
536
- if (!t) return;
537
- let r = t.childNodes, i = 0, a = r.length;
538
- for (let t = 0; t < a; t++) {
539
- let a = r.item(t);
540
- if (a.nodeType === 1 && a.localName === "font") {
541
- let t = {};
542
- this.processFont(e, a, t), n[i++] = t;
543
- }
544
- }
545
- return n;
546
- }
547
- processFont(e, t, n) {
548
- e.getValAttrAsBoolean("b", t, !0) && (n.weight = 700), e.getValAttrAsBoolean("i", t, !0) && (n.style = l.Style.Italic), e.getValAttrAsBoolean("strike", t, !0) && (n.strike = !0);
549
- let r = e.evaluate("u", t);
550
- r && (n.underline = r.getAttribute("val") || l.UnderlineStyle.Single), D(e, t, n, "vertAlign", "verticalAlign"), n.verticalAlign === "superscript" ? n.verticalAlign = l.VerticalAlignment.Super : n.verticalAlign === "subscript" && (n.verticalAlign = l.VerticalAlignment.Sub), A(e, t, n, "sz", "size");
551
- let i = e.evaluate("color", t);
552
- this.processDataBarColor(e, i, n, "color"), n.color ||= "auto", D(e, t, n, "name", "family"), D(e, t, n, "rFont", "family");
553
- let a = e.evaluate("family", t);
554
- if (a) {
555
- let e = a.getAttribute("val");
556
- if (e) switch (e) {
557
- case "1":
558
- n.fallbacks = ["serif"];
559
- break;
560
- case "2":
561
- n.fallbacks = ["sans-serif"];
562
- break;
563
- case "3":
564
- n.fallbacks = ["monospace"];
565
- break;
566
- case "4":
567
- n.fallbacks = ["cursive"];
568
- break;
569
- case "5": n.fallbacks = ["fantasy"];
570
- }
571
- }
572
- return D(e, t, n, "scheme", "scheme"), n.family !== void 0 && n.scheme === void 0 && (n.scheme = l.Scheme.None), O(e, t, n, "shadow", "shadow", !0), O(e, t, n, "outline", "outline", !0), e.getValAttrAsBoolean("condense", t, !0) && (n.letterSpacing = -1), e.getValAttrAsBoolean("extend", t, !0) && (n.letterSpacing = 1), k(e, t, n, "charset", "charset"), n;
573
- }
574
- processFills(e, t, n) {
575
- if (!t) return;
576
- let r = t.childNodes, i = 0, a = r.length;
577
- for (let t = 0; t < a; t++) {
578
- let a = r.item(t);
579
- a.nodeType === 1 && a.localName === "fill" && this.processFill(e, a, n, i++);
580
- }
581
- return n;
582
- }
583
- processFill(e, t, n, r) {
584
- let i = { type: c.Type.None }, a = t.childNodes, o = !1, s = a.length;
585
- for (let t = 0; !o && t < s; t++) {
586
- let n = a.item(t);
587
- n.nodeType === 1 && (n.localName === "gradientFill" ? (this.processGradientFill(e, n, i), o = !0) : n.localName === "patternFill" && (this.processPatternFill(e, n, i), o = !0));
588
- }
589
- return n[r] = i, n;
590
- }
591
- processGradientFill(e, t, n) {
592
- if (!t) return;
593
- n.type = c.Type.Gradient;
594
- let r = [];
595
- n.stops = r;
596
- let i = t.getAttribute("type");
597
- i && (n.gradientType = i);
598
- let a = t.hasAttribute("degree") ? parseFloat(t.getAttribute("degree")) : 0;
599
- (a + 90) % 360 != 0 && (n.angle = (a + 90) % 360), (t.hasAttribute("left") || t.hasAttribute("top") || t.hasAttribute("right") || t.hasAttribute("bottom")) && (n.focus = {
600
- left: B(t.getAttribute("left")),
601
- top: B(t.getAttribute("top")),
602
- right: B(t.getAttribute("right")),
603
- bottom: B(t.getAttribute("bottom"))
604
- });
605
- let o = t.childNodes, s = o.length;
606
- for (let t = 0; t < s; t++) {
607
- let n = o.item(t);
608
- if (n.nodeType === 1 && n.localName === "stop") {
609
- let t = {};
610
- r.push(t), t.offset = parseFloat(n.getAttribute("position") ?? "");
611
- let i = e.evaluate("color", n);
612
- this.processDataBarColor(e, i, t, "color");
613
- }
614
- }
615
- return n;
616
- }
617
- processPatternFill(e, t, n) {
618
- if (!t) return;
619
- let r = e.getVisitorParamsState().get("processingDXFs"), i = t.getAttribute("patternType") || (r ? c.BuiltInSheetPattern.Solid : c.BuiltInSheetPattern.None);
620
- if (i === c.BuiltInSheetPattern.None) return { none: !0 };
621
- n.type = c.Type.Pattern, i && (n.patternType = i);
622
- let a = "foreground", o = "background", s = n.patternType === c.BuiltInSheetPattern.Solid && r, l = s ? "dk1" : "lt1", u = s ? "lt1" : "dk1";
623
- if (s) {
624
- let e = a;
625
- a = o, o = e;
626
- }
627
- let d = e.evaluate("fgColor", t);
628
- this.processDataBarColor(e, d, n, a, l);
629
- let f = e.evaluate("bgColor", t);
630
- return this.processDataBarColor(e, f, n, o, u), s && (n.foreground ||= "lt1", n.background ||= "dk1"), n;
631
- }
632
- processBorders(e, t, n, r) {
633
- if (!t) return;
634
- let i = t.childNodes, a = 0, o = i.length;
635
- for (let t = 0; t < o; t++) {
636
- let o = i.item(t);
637
- o.nodeType === 1 && o.localName === "border" && this.processBorder(e, o, n, a++, r);
638
- }
639
- return n;
640
- }
641
- processBorder(e, t, n, r, a) {
642
- if (!t) return;
643
- let o = {};
644
- return this.processBorderStroke(e, t, o, i.Edge.Left), this.processBorderStroke(e, t, o, i.Edge.Right), a ? (o.right || o.left) && (o.right ? o.vertical = { ...o.right } : o.vertical = { ...o.left }) : this.processBorderStroke(e, t, o, i.Edge.Vertical), this.processBorderStroke(e, t, o, i.Edge.Top), this.processBorderStroke(e, t, o, i.Edge.Bottom), a ? (o.bottom || o.top) && (o.bottom ? o.horizontal = { ...o.bottom } : o.horizontal = { ...o.top }) : this.processBorderStroke(e, t, o, i.Edge.Horizontal), n[r] = o, n;
645
- }
646
- processBorderStroke(e, t, n, r) {
647
- if (!t) return;
648
- let a = e.evaluate(r, t);
649
- if (!a) return;
650
- let o = {};
651
- a.hasAttribute("style") ? o.style = a.getAttribute("style") : e.getVisitorParamsState().get("processingDXFs") && (o.style = i.StrokeStyle.None);
652
- let s = e.evaluate("color", a);
653
- return s && this.processDataBarColor(e, s, o, "color"), Object.keys(o).length > 0 ? n[r] = o : null;
654
- }
655
- }, B = (e) => {
656
- if (!e) return 0;
657
- let t = parseFloat(e);
658
- return isNaN(t) ? 0 : t;
659
- }, le = {
660
- auto: "auto",
661
- autoNoTable: "automaticExceptTables",
662
- manual: "manual"
663
- }, V = class {
664
- visit(e, t, n) {
665
- if (!t) return;
666
- let r = e.evaluate("*/cNvPr", t);
667
- return r.item && (r = r.item(0)), r && (e.copyFromAttribute(r, "name", n), e.copyFromAttribute(r, "descr", n, "description"), e.copyFromAttribute(r, "hidden", n, "hidden", e.BOOLEAN_COPY), e.copyFromAttribute(r, "id", n)), n;
668
- }
669
- setContent(e, t) {
670
- let n = e;
671
- n.name !== void 0 && (t.name = n.name, delete n.name), n.description !== void 0 && (t.description = n.description, delete n.description), e.content = t;
672
- }
673
- }, H = class extends V {
674
- visit(e, t, n) {
675
- if (!t) return;
676
- if (e.getPath().includes("Fallback") && n.content) {
677
- let r = n.content.json;
678
- return n.content.type === "sp" && r?.xml && r.fallbackXml === void 0 && (r.fallbackXml = e.serializeElement(t) ?? void 0), n;
679
- }
680
- n = super.visit(e, t, n);
681
- let r = e.evaluate("nvSpPr/cNvSpPr", t);
682
- if (r) {
683
- let t = e.evaluate("spLocks", r);
684
- if (t) {
685
- t.hasAttribute("noChangeAspect") && (n.lockAspect = t.getAttribute("noChangeAspect") === "1");
686
- let e = {};
687
- Object.keys(e).length > 0 && (n.locks = e);
688
- }
689
- }
690
- let i = e.evaluate("*/cNvPr", t);
691
- i?.item && (i = i.item(0));
692
- let a = i?.getAttribute?.("id"), o = a ? parseInt(a, 10) : void 0, s = {
693
- type: "sp",
694
- xml: e.serializeElement(t) ?? void 0,
695
- sourceId: o === void 0 || isNaN(o) ? void 0 : o
696
- };
697
- return this.setContent(n, {
698
- type: "sp",
699
- json: s
700
- }), s;
701
- }
702
- }, U = "richTypes", W = "richData", G = (e) => {
703
- let t = e.getAttribute("val");
704
- return t !== "0" && t !== "false";
705
- }, ue = {
706
- 1: "serif",
707
- 2: "sans-serif",
708
- 3: "monospace",
709
- 4: "cursive",
710
- 5: "fantasy"
711
- };
712
- function de(e) {
713
- let t = {}, n = e.childNodes;
714
- for (let e = 0; e < n.length; e++) {
715
- let r = n.item(e);
716
- if (r.nodeType === 1) switch (r.localName) {
717
- case "b":
718
- t.weight = G(r) ? 700 : 400;
719
- break;
720
- case "i":
721
- t.style = G(r) ? l.Style.Italic : l.Style.Normal;
722
- break;
723
- case "strike":
724
- t.strike = G(r);
725
- break;
726
- case "outline":
727
- t.outline = G(r);
728
- break;
729
- case "shadow":
730
- t.shadow = G(r);
731
- break;
732
- case "extend":
733
- t.extend = G(r);
734
- break;
735
- case "u":
736
- t.underline = r.getAttribute("val") || l.UnderlineStyle.Single;
737
- break;
738
- case "vertAlign": {
739
- let e = r.getAttribute("val");
740
- e === "superscript" ? t.verticalAlign = l.VerticalAlignment.Super : e === "subscript" ? t.verticalAlign = l.VerticalAlignment.Sub : e === "baseline" && (t.verticalAlign = l.VerticalAlignment.Baseline);
741
- break;
742
- }
743
- case "sz": {
744
- let e = parseFloat(r.getAttribute("val") ?? "");
745
- isNaN(e) || (t.size = e);
746
- break;
747
- }
748
- case "rFont": {
749
- let e = r.getAttribute("val");
750
- e && (t.family = e);
751
- break;
752
- }
753
- case "family": {
754
- let e = ue[r.getAttribute("val") ?? ""];
755
- e && (t.fallbacks = [e]);
756
- break;
757
- }
758
- case "charset": {
759
- let e = parseInt(r.getAttribute("val") ?? "", 10);
760
- isNaN(e) || (t.charset = e);
761
- break;
762
- }
763
- case "scheme": {
764
- let e = r.getAttribute("val");
765
- e && (t.scheme = e);
766
- break;
767
- }
768
- case "color": {
769
- let e = r.getAttribute("rgb");
770
- if (e && !r.hasAttribute("theme")) {
771
- t.color = "#" + (e.length === 8 ? e.substring(2) : e).toUpperCase();
772
- break;
773
- }
774
- let n = b((e) => r.getAttribute(e));
775
- n && (t.color = n);
776
- break;
777
- }
778
- }
779
- }
780
- return Object.keys(t).length > 0 ? t : null;
781
- }
782
- var fe = class {
783
- visit(e, t, n) {
784
- if (!t) return;
785
- let r = t.childNodes, i = r.length;
786
- for (let t = 0; t < i; t++) {
787
- let i = r.item(t);
788
- i.nodeType === 1 && i.localName === "Relationship" && this.processRelationship(e, i, n);
789
- }
790
- return n;
791
- }
792
- processRelationship(e, t, n) {
793
- let r = {};
794
- e.copyFromAttribute(t, "Target", r, "target"), e.copyFromAttribute(t, "Type", r, "type"), e.copyFromAttribute(t, "TargetMode", r, "targetMode"), n[t.getAttribute("Id")] = r;
795
- }
796
- }, pe = class {
797
- visit(e, t, n) {
798
- let r = [], i = t.childNodes, a = i.length;
799
- for (let t = 0; t < a; t++) {
800
- let n = i.item(t);
801
- if (n.nodeType !== 1) continue;
802
- let a = this.processProperty(e, n);
803
- a && r.push(a);
804
- }
805
- return r.length > 0 && (n.properties = r), r;
806
- }
807
- processProperty(e, t) {
808
- if (t) return t.getAttribute("xsi:type"), {
809
- key: t.localName,
810
- value: t.textContent || ""
811
- };
812
- }
813
- }, me = class {
814
- visit(e, t, n) {
815
- let r = [], i = t.childNodes, a = i.length;
816
- for (let t = 0; t < a; t++) {
817
- let n = i.item(t);
818
- if (n.nodeType !== 1) continue;
819
- let a = this.processProperty(e, n);
820
- a && r.push(a);
821
- }
822
- return r.length > 0 && (n.properties = r), r;
823
- }
824
- processProperty(e, t) {
825
- if (t) return {
826
- key: t.localName,
827
- value: t.textContent || ""
828
- };
829
- }
830
- }, he = class {
831
- visit(e, t, n) {
832
- return O(e, t, n, "roundedCorners", "roundedCorners"), k(e, t, n, ".//AlternateContent/Fallback/style", "styleId"), e.getVisitorParamsState().set("types", []), e.getVisitorParamsState().set("axes", /* @__PURE__ */ new Map()), n.range = null, n;
833
- }
834
- afterVisit(e, t, n) {
835
- let r = {};
836
- n.types = r;
837
- let i = {}, a = 0, o = {}, s = 0, c = e.getVisitorParamsState().get("axes"), l = e.getVisitorParamsState().get("types"), u = l.length;
838
- for (let e = 0; e < u; e++) {
839
- let t = l[e];
840
- if (t.xAxisId) {
841
- let r = t.xAxisId, o = c.get(r);
842
- i[e + ""] = o, t.offsetXAxis = e, delete t.xAxisId, n.xAxes = i, i.length = ++a;
843
- }
844
- if (t.yAxisId) {
845
- let r = t.yAxisId, i = c.get(r);
846
- o[e + ""] = i, t.offsetYAxis = e, delete t.yAxisId, n.yAxes = o, o.length = ++s;
847
- }
848
- r[e + ""] = t;
849
- }
850
- r.length = l.length;
851
- let d = e.getVisitorParamsState().get("series");
852
- if (!d || d.length === 0) return;
853
- let f = {};
854
- n.series = f;
855
- let p = d.length;
856
- for (let e = 0; e < p; e++) f[e + ""] = d[e];
857
- f.length = p, e.getVisitorParamsState().delete("types"), e.getVisitorParamsState().delete("axes"), e.getVisitorParamsState().delete("series");
858
- }
859
- }, ge = class {
860
- visit(e, t, n) {
861
- let r = {};
862
- return n.plotArea = r, r;
863
- }
864
- }, _e = F, ve = class extends I {
865
- parseType(e, t, n) {
866
- let r = e.getValAttrAsString("barDir", t);
867
- r && (n.type = r === "col" ? "column" : "bar");
868
- }
869
- }, K = I, q = class {
870
- constructor(e) {
871
- this.jsonKey = e;
872
- }
873
- visit(e, t, n) {
874
- let r = {}, i = r, a = e.getValAttrAsString("idx", t);
875
- a !== null && (i = {}, i[a] = r);
876
- let o = e.getValAttrAsBoolean("delete", t);
877
- this.parseNumFormat(e, t, r), !0 === o ? (r.showBubbleSize = !1, r.showCatName = !1, r.showLeaderLines = !1, r.showPercentage = !1, r.showSerName = !1, r.showVal = !1, r.showLegendKey = !1) : (O(e, t, r, "showBubbleSize", "showBubbleSize"), O(e, t, r, "showCatName", "showCatName"), O(e, t, r, "showLeaderLines", "showLeaderLines"), O(e, t, r, "showPercent", "showPercentage"), O(e, t, r, "showSerName", "showSerName"), O(e, t, r, "showVal", "showVal"), O(e, t, r, "showLegendKey", "showLegendKey"));
878
- let s = e.evaluate("separator", t);
879
- return s !== null && (r.separator = s.textContent), D(e, t, r, "dLblPos", "position"), n[this.jsonKey] = i, r;
880
- }
881
- parseNumFormat(e, t, n) {
882
- let r = e.evaluate("numFmt", t);
883
- r && (n.formatCode = r.getAttribute("formatCode"), r.hasAttribute("sourceLinked") && (n.sourceLinked = r.getAttribute("sourceLinked") === "1"));
884
- }
885
- }, ye = class {
886
- visit(e, t, n) {
887
- let r = {};
888
- k(e, t, r, "explosion", "explosion");
889
- let i = e.evaluate("cat/*/f", t);
890
- i ||= e.evaluate("xVal/*/f", t);
891
- let a = null;
892
- i !== null && i.firstChild !== null && (a = i.firstChild.nodeValue), i || (i = e.evaluate("cat/strLit", t), i ||= e.evaluate("cat/numLit", t), i && (a = this.parsePointsAsString(e, i))), a !== null && (r.xRange = a);
893
- let o = e.evaluate("val/*/f", t);
894
- o ||= e.evaluate("yVal/*/f", t);
895
- let s = null;
896
- o && o.firstChild && (s = o.firstChild.nodeValue), o || (o = e.evaluate("val/numLit", t), o !== null && (s = this.parsePointsAsString(e, o))), s !== null && (r.valRange = s), this.parseTitleRangeOrValue(e, t, r), k(e, t, r, "idx", "idx"), O(e, t, r, "smooth", "smooth"), r.offsetChart = e.getVisitorParamsState().get("types").length - 1;
897
- let c = e.getVisitorParamsState().get("series");
898
- return c || (c = [], e.getVisitorParamsState().set("series", c)), c.push(r), r;
899
- }
900
- parseTitleRangeOrValue(e, t, n) {
901
- let r = e.evaluate("tx/strRef/f", t);
902
- if (r !== null) {
903
- let t = r.firstChild.nodeValue;
904
- e.setToPath(n, "title.range", t);
905
- } else {
906
- let r = e.evaluate("tx/v", t);
907
- r !== null && e.setToPath(n, "title.text.simpleRun", r.firstChild.nodeValue);
908
- }
909
- }
910
- parsePointsAsString(e, t) {
911
- let n = "{", r = e.getValAttrAsInteger("ptCount", t), i = e.evaluate("pt", t), a = [];
912
- for (let n = 0; i && r && n < r; n++) {
913
- let r = null, i = e.evaluate("pt[@idx='" + n + "']/v", t);
914
- i && (r = i.textContent), a[n] = r;
915
- }
916
- for (let e = 0; e < a.length; e++) e > 0 && (n += ","), a[e] !== void 0 && (n += a[e]);
917
- return n += "}", n;
918
- }
919
- afterVisit(e, t, n) {
920
- L(e, t, n);
921
- let r = e.getFromPath(n, "points");
922
- if (r) {
923
- let t = Object.keys(r);
924
- for (let i = 0; i < t.length; i++) {
925
- let a = t[i], o = e.getFromPath(r, a);
926
- if (!o) continue;
927
- let s = e.getFromPath(o, "markers");
928
- s && (e.setToPath(n, "markers.points." + a, s), delete o.markers);
929
- }
930
- }
931
- }
932
- }, be = class {
933
- DataPointVisitor() {}
934
- visit(e, t, n) {
935
- let r = e.getFromPath(n, "points"), i = null;
936
- r ? i = r : (i = {}, e.setToPath(n, "points", i));
937
- let a = {}, o = e.getValAttrAsString("idx", t);
938
- return o !== null && (i[o] = a), O(e, t, a, "bubble3D", "bubble3D"), k(e, t, a, "explosion", "explosion"), L(e, t, a), a;
939
- }
940
- }, xe = class {
941
- visit(e, t, n) {
942
- let r = t.parentNode.localName;
943
- if (r === "ser" || r === "dPt") {
944
- let r = {}, i = e.getValAttrAsString("size", t);
945
- i !== null && (r.size = i);
946
- let a = e.getValAttrAsString("symbol", t);
947
- return a && (r.type = a), n.markers = r, r;
948
- }
949
- return null;
950
- }
951
- }, J = class {
952
- visit(e, t, n) {
953
- let r = {};
954
- this.parseScaling(e, t, r), A(e, t, r, "majorUnit", "majorUnits"), A(e, t, r, "minorUnit", "minorUnits"), O(e, t, r, "delete", "shown"), this.parseOrientation(e, t, r), this.parseNumFormat(e, t, r), D(e, t, r, "majorTickMark", "majorTickMarks"), D(e, t, r, "minorTickMark", "minorTickMarks"), D(e, t, r, "crosses", "crosses"), A(e, t, r, "crossesAt", "crosses"), D(e, t, r, "crossBetween", "crossBetween"), this.parseLabelAlign(e, t, r), k(e, t, r, "lblOffset", "labelOffset"), D(e, t, r, "tickLblPos", "labelPosition");
955
- let i = e.getValAttrAsInteger("noMultiLvlLbl", t);
956
- r.labelMultiLevel = i !== null && i === 0, k(e, t, r, "tickMarkSkip", "tickMarkSkip"), k(e, t, r, "tickLblSkip", "labelInterval"), this.parseDisplayCustOrBuiltInUnit(t, e, r), this.parseTimeUnits(e, t, r, "majorUnitDates", "majorTimeUnit", "majorUnit"), this.parseTimeUnits(e, t, r, "minorUnitDates", "minorTimeUnit", "minorUnit"), D(e, t, r, "baseTimeUnit", "baseUnitDates"), e.getVisitorParamsState().get("axes") || (e.warn("An axis was read outside a chart; its axes were started fresh.", { onceKey: "xlsx.chart.axesState" }), e.getVisitorParamsState().set("axes", /* @__PURE__ */ new Map()));
957
- let a = e.getValAttrAsString("axId", t);
958
- return e.getVisitorParamsState().get("axes").set(a, r), r;
959
- }
960
- parseTimeUnits(e, t, n, r, i, a) {
961
- let o = {}, s = e.getValAttrAsString(i, t);
962
- s !== null && (o.dem = s, o.amt = e.getValAttrAsString(a, t)), Object.keys(o).length > 0 && (n[r] = o);
963
- }
964
- parseDisplayCustOrBuiltInUnit(e, t, n) {
965
- let r = t.getValAttrAsString("dispUnits/builtInUnit", e);
966
- r ||= t.getValAttrAsString("dispUnits/custUnit", e), r && (n.displayUnits = r);
967
- }
968
- parseLabelAlign(e, t, n) {
969
- let r = e.getValAttrAsString("lblAlgn", t);
970
- r !== null && (r === "ctr" ? n.labelAlign = "center" : r === "l" ? n.labelAlign = "left" : r === "r" && (n.labelAlign = "right"));
971
- }
972
- parseOrientation(e, t, n) {
973
- let r = e.getValAttrAsString("AxPos", t);
974
- r !== null && (r === "b" ? n.orientation = "bottom" : r === "l" ? n.orientation = "left" : r === "r" ? n.orientation = "right" : r === "t" && (n.orientation = "top"));
975
- }
976
- parseNumFormat(e, t, n) {
977
- let r = {}, i = e.evaluate("numFmt", t);
978
- i !== null && (i.hasAttribute("formatCode") && (r.formatCode = i.getAttribute("formatCode")), i.hasAttribute("sourceLinked") && (r.sourceLinked = i.getAttribute("sourceLinked") === "1")), Object.keys(r).length > 0 && (n.labels = r);
979
- }
980
- parseScaling(e, t, n) {
981
- let r = e.getValAttrAsString("scaling/orientation", t);
982
- r !== null && (n.inverted = r !== "minMax");
983
- let i = e.getValAttrAsFloat("scaling/logBase", t);
984
- i !== null && (n.logBase = i, n.scaleType = "log"), A(e, t, n, "scaling/max", "max"), A(e, t, n, "scaling/min", "min");
985
- }
986
- afterVisit(e, t, n) {
987
- n.fill && n.labels && (n.labels.fill = n.fill, delete n.fill);
988
- let r = e.getValAttrAsBoolean("delete", t);
989
- r !== null && (e.setToPath(n, "labels.shown", !0 !== r), e.setToPath(n, "shown", !0 !== r));
990
- let i = e.getFromPath(n, "dispUnits.displayUnitsLabel");
991
- i && (e.setToPath(n, "displayUnitsLabel", i), delete n.dispUnits);
992
- let a = e.evaluate("title", t);
993
- e.setToPath(n, "title.shown", a !== null);
994
- let o = e.evaluate("minorGridlines", t);
995
- e.setToPath(n, "gridLinesMinor.shown", o !== null);
996
- let s = e.evaluate("majorGridlines", t);
997
- e.setToPath(n, "gridLinesMajor.shown", s !== null);
998
- }
999
- }, Y = R, Se = class {
1000
- visit(e, t, n) {
1001
- let r = e.getVisitorParamsState().get("series"), i = e.getValAttrAsInteger("idx", t), a = i === null ? void 0 : r[i];
1002
- if (a) {
1003
- let n = e.getFromPath(a, "title");
1004
- n || (n = {}, e.setToPath(a, "title", n));
1005
- let r = n, i = e.getValAttrAsBoolean("delete", t);
1006
- return i !== null && (r.shown = !i), r;
1007
- }
1008
- return n;
1009
- }
1010
- }, Ce = class {
1011
- visit(e, t, n) {
1012
- let r = {};
1013
- return O(e, t, r, "overlay", "overlay"), D(e, t, r, "legendPos", "position"), n.legend = r, r;
1014
- }
1015
- }, we = class extends F {
1016
- visit(e, t, n) {
1017
- let r = this.getFill(e, t);
1018
- Object.keys(r).length > 0 && (n.fillNegative = r);
1019
- let i = this.getStroke(e, t);
1020
- return Object.keys(i).length > 0 && (n.strokeNegative = i), n;
1021
- }
1022
- }, X = class extends R {
1023
- constructor(e = "title") {
1024
- super(e);
1025
- }
1026
- parseTitleRangeOrValue(e, t, n) {
1027
- let r = e.evaluate("tx/strRef/f", t) ?? null;
1028
- if (r) {
1029
- let t = r.firstElementChild.nodeValue;
1030
- e.setToPath(n, "range", t);
1031
- }
1032
- }
1033
- visit(e, t, n) {
1034
- let r = {};
1035
- O(e, t, r, "overlay", "overlay"), n[this._jsonKey] = r;
1036
- let i = e.getFromPath(r, this.getTextPath());
1037
- i ||= {}, this.parseTitleRangeOrValue(e, t, r);
1038
- let a = e.evaluate("txPr", t);
1039
- a && this.parseTextElement(e, a, i, !1);
1040
- let o = e.evaluate("tx/rich", t);
1041
- return o && this.parseTextElement(e, o, i, !0), Object.keys(i).length > 0 && e.setToPath(r, "text", i), r;
1042
- }
1043
- afterVisit(e, t, n) {
1044
- if (n?.text) {
1045
- let e = n.text?.rotation ?? null;
1046
- e !== null && (n.rotation = parseInt(e), delete n.title.rotation);
1047
- }
1048
- }
1049
- }, Te = class {
1050
- visit(e, t, n) {
1051
- let r = e.evaluate("manualLayout", t);
1052
- if (r) {
1053
- let t = {};
1054
- A(e, r, t, "x", "x"), A(e, r, t, "y", "y"), A(e, r, t, "w", "w"), A(e, r, t, "h", "h"), D(e, r, t, "xMode", "xMode"), D(e, r, t, "yMode", "yMode"), D(e, r, t, "wMode", "wMode"), D(e, r, t, "hMode", "hMode"), Object.keys(t).length > 0 && (n.manualLayout = t);
1055
- }
1056
- return n;
1057
- }
1058
- }, Ee = class {
1059
- visit(e, t, n) {
1060
- return n.name = t.getAttribute("name"), n;
1061
- }
1062
- }, De = class extends N {
1063
- visit(e, t, n) {
1064
- let r = {};
1065
- r.name = t.getAttribute("name");
1066
- let i = t.childNodes, a = i.length;
1067
- for (let n = 0; n < a; n++) {
1068
- let a = i.item(n);
1069
- if (a.nodeType === 1) {
1070
- let n = a.localName, i = e.evaluate(n, t);
1071
- r[n] = this.processAdjColor(e, i);
1072
- }
1073
- }
1074
- return Object.keys(r).length > 0 && (n.colors = r), r;
1075
- }
1076
- }, Oe = class {
1077
- visit(e, t, n) {
1078
- let r = {};
1079
- r.name = t.getAttribute("name");
1080
- let i = e.evaluate("majorFont", t), a = this.processFontElement(e, i, {});
1081
- a && (r.majorFont = a.family, a.fallbacks && (r.majorFallbacks = a.fallbacks));
1082
- let o = e.evaluate("minorFont", t), s = this.processFontElement(e, o, {});
1083
- return s && (r.minorFont = s.family, s.fallbacks && (r.minorFallbacks = s.fallbacks)), n.fonts = r, r;
1084
- }
1085
- processFontElement(e, t, n) {
1086
- if (!t) return;
1087
- let r = e.evaluate("latin", t);
1088
- if (!r) return;
1089
- let i = r.getAttribute("typeface");
1090
- i && (n.family = i);
1091
- let a = r.getAttribute("panose");
1092
- return a && (n.fallbacks = [l.getPanoseFallback(a)]), n;
1093
- }
1094
- }, ke = class extends N {
1095
- visit(e, t, n) {
1096
- let r = this.parseFillList(e, t, "fillStyleLst"), i = this.parseLnList(e, t, "lnStyleLst"), a = this.parseEffectStyleList(e, t, "effectStyleLst"), o = this.parseFillList(e, t, "bgFillStyleLst");
1097
- if (r && i && a && o) return n.fillStyleLst = r, n.lnStyleLst = i, n.effectStyleLst = a, void (n.bgFillStyleLst = o);
1098
- let s = e.serializeElement(t);
1099
- s && (n.formatSchemeXml = s);
1100
- }
1101
- parseFillList(e, t, n) {
1102
- let r = e.evaluate(n, t);
1103
- if (!r) return;
1104
- let i = [], a = r.childNodes, o = a.length;
1105
- for (let t = 0; t < o; t++) {
1106
- let n = a.item(t);
1107
- if (n.nodeType !== 1) continue;
1108
- let r = this.parseFillListItem(e, n);
1109
- if (r === void 0) return;
1110
- i.push(r);
1111
- }
1112
- return i;
1113
- }
1114
- parseFillListItem(e, t) {
1115
- switch (t.localName) {
1116
- case "noFill": return { type: c.Type.None };
1117
- case "solidFill": {
1118
- let n = this.processAdjColor(e, t);
1119
- return n ? {
1120
- type: c.Type.Solid,
1121
- color: n
1122
- } : void 0;
1123
- }
1124
- case "gradFill": return this.processGradFill(e, t);
1125
- case "pattFill": return this.processPatternFill(e, t);
1126
- default: return;
1127
- }
1128
- }
1129
- parseLnList(e, t, n) {
1130
- let r = e.evaluate(n, t);
1131
- if (!r) return;
1132
- let i = [], a = r.childNodes, o = a.length;
1133
- for (let t = 0; t < o; t++) {
1134
- let n = a.item(t);
1135
- if (n.nodeType === 1) {
1136
- if (e.evaluate("headEnd", n) || e.evaluate("tailEnd", n)) return;
1137
- i.push(this.parseLn(e, n));
1138
- }
1139
- }
1140
- return i;
1141
- }
1142
- parseEffectStyleList(e, t, n) {
1143
- let r = e.evaluate(n, t);
1144
- if (!r) return;
1145
- let i = [], a = r.childNodes, o = a.length;
1146
- for (let t = 0; t < o; t++) {
1147
- let n = a.item(t);
1148
- if (n.nodeType !== 1) continue;
1149
- if (e.evaluate("scene3d", n) || e.evaluate("sp3d", n)) return;
1150
- let r = this.getEffects(e, n);
1151
- if (r === void 0) return;
1152
- i.push(r ?? []);
1153
- }
1154
- return i;
1155
- }
1156
- }, Ae = class {
1157
- visit(e, t, n) {
1158
- if (!t) return;
1159
- let r = {}, i = t.getAttribute("r:id");
1160
- if (i) {
1161
- let t = e.getRef(i);
1162
- typeof t == "string" && (r.address = t);
1163
- }
1164
- return e.copyFromAttribute(t, "tooltip", r, "screenTip"), e.copyFromAttribute(t, "history", r, "history", e.BOOLEAN_COPY), e.copyFromAttribute(t, "tgtFrame", r, "target"), n.hyperlink = r, r;
1165
- }
1166
- }, je = class {
1167
- visit(e, t, n) {
1168
- if (!t) return;
1169
- let r = {}, i = [];
1170
- return this.processFilterColumns(e, t, i, n), i.length > 0 && (r.conditions = i), Object.keys(r).length > 0 && (n.filter = r), r;
1171
- }
1172
- processColorFilter(e, t) {
1173
- let n = {}, r = {
1174
- operator: d.BuiltInOperatorNames.Color,
1175
- param: n
1176
- };
1177
- return e.copyFromAttribute(t, "cellColor", n, "cellColor", e.BOOLEAN_COPY), e.copyFromAttribute(t, "dxfId", n, "styleId", e.INT_COPY), r;
1178
- }
1179
- processCustomFilter(e, t) {
1180
- return h({
1181
- operator: t.getAttribute("operator"),
1182
- val: t.getAttribute("val")
1183
- });
1184
- }
1185
- processCustomFilters(e, t) {
1186
- let n = t.getAttribute("and"), r = n === "and" || n === "1";
1187
- t.getAttribute("val");
1188
- let i = [], a = {
1189
- operator: r ? d.BuiltInOperatorNames.And : d.BuiltInOperatorNames.Or,
1190
- param: i
1191
- }, o = t.childNodes, s = o.length;
1192
- for (let t = 0; t < s; t++) {
1193
- let n = o.item(t);
1194
- if (n.nodeType !== 1) continue;
1195
- let r = null;
1196
- n.localName === "customFilter" && (r = this.processCustomFilter(e, n)), r && i.push(r);
1197
- }
1198
- return i.length === 1 ? i[0] : a;
1199
- }
1200
- processDynamicFilter(e, t) {
1201
- let n = {}, r = {
1202
- operator: d.BuiltInOperatorNames.TimePeriod,
1203
- param: n
1204
- }, i = t.getAttribute("type");
1205
- return i === "aboveAverage" ? i = d.AverageType.Above : i === "belowAverage" && (i = d.AverageType.Below), Object.values(d.AverageType).includes(i) ? (r.operator = d.BuiltInOperatorNames.Average, e.copyFromAttribute(t, "val", n, "stdDevs", e.INT_COPY)) : e.copyFromAttribute(t, "val", n, "anchorDate", e.INT_COPY), e.copyFromAttribute(t, "type", n, "operator"), e.copyFromAttribute(t, "maxVal", n, "maxVal", e.INT_COPY), r;
1206
- }
1207
- processDateGroupItem(e, t) {
1208
- let n = {};
1209
- return e.copyFromAttribute(t, "dateTimeGrouping", n, "group"), e.copyFromAttribute(t, "day", n, "day", e.INT_COPY), e.copyFromAttribute(t, "hour", n, "hour", e.INT_COPY), e.copyFromAttribute(t, "minute", n, "minute", e.INT_COPY), e.copyFromAttribute(t, "month", n, "month", e.INT_COPY), e.copyFromAttribute(t, "second", n, "second", e.INT_COPY), e.copyFromAttribute(t, "year", n, "year", e.INT_COPY), n;
1210
- }
1211
- processFilterItem(e, t) {
1212
- if (t.hasAttribute("val")) return t.getAttribute("val");
1213
- }
1214
- processFilters(e, t) {
1215
- let n = {}, r = {
1216
- operator: d.BuiltInOperatorNames.InSet,
1217
- param: n
1218
- };
1219
- e.copyFromAttribute(t, "blank", r, "blank", e.BOOLEAN_COPY), e.copyFromAttribute(t, "calendarType", r, "calendarType");
1220
- let i = [], a = [], o = t.childNodes, s = o.length;
1221
- for (let t = 0; t < s; t++) {
1222
- let n = o.item(t);
1223
- if (n.nodeType === 1) {
1224
- if (n.localName === "dateGroupItem") {
1225
- let t = this.processDateGroupItem(e, n);
1226
- t && i.push(t);
1227
- } else if (n.localName === "filter") {
1228
- let t = this.processFilterItem(e, n);
1229
- t !== void 0 && a.push(t);
1230
- }
1231
- }
1232
- }
1233
- return i.length > 0 && (n.dateGroups = i), a.length > 0 && (n.items = a), r;
1234
- }
1235
- processIcon(e, t) {
1236
- let n = {}, r = {
1237
- operator: d.BuiltInOperatorNames.Icon,
1238
- param: n
1239
- };
1240
- return e.copyFromAttribute(t, "iconId", n, "iconId", e.INT_COPY), e.copyFromAttribute(t, "iconSet", n), r;
1241
- }
1242
- processTop10(e, t) {
1243
- let n = {}, r = {
1244
- operator: d.BuiltInOperatorNames.TopN,
1245
- param: n
1246
- };
1247
- return e.copyFromAttribute(t, "filterVal", n, "filterVal", e.FLOAT_COPY), e.copyFromAttribute(t, "percent", n, "percent", e.BOOLEAN_COPY), e.copyFromAttribute(t, "top", n, "top", e.BOOLEAN_COPY), e.copyFromAttribute(t, "val", n, "val", e.FLOAT_COPY), r;
1248
- }
1249
- processFilterCriteria(e, t) {
1250
- if (!t) return;
1251
- let n, r = t.childNodes, i = r.length;
1252
- for (let t = 0; t < i; t++) {
1253
- let i = r.item(t);
1254
- i.nodeType === 1 && (i.localName === "colorFilter" ? n = this.processColorFilter(e, i) : i.localName === "customFilters" ? n = this.processCustomFilters(e, i) : i.localName === "dynamicFilter" ? n = this.processDynamicFilter(e, i) : i.localName === "filters" ? n = this.processFilters(e, i) : i.localName === "iconFilter" ? n = this.processIcon(e, i) : i.localName === "top10" && (n = this.processTop10(e, i)));
1255
- }
1256
- return n;
1257
- }
1258
- processFilterColumn(e, t, n) {
1259
- if (!t) return null;
1260
- if (!t.hasAttribute("colId")) return;
1261
- let r = parseInt(t.getAttribute("colId")), i = !1;
1262
- if (t.hasAttribute("hiddenButton") && (i = C(t.getAttribute("hiddenButton"))), i && n) {
1263
- let e = n.hiddenButtons;
1264
- e || (e = [], n.hiddenButtons = e), e.push(r);
1265
- }
1266
- let a = !1;
1267
- if (t.hasAttribute("showButton") && (a = C(t.getAttribute("showButton"))), a && n) {
1268
- let e = n.showButtons;
1269
- !0 !== e && (e || (e = [], n.showButtons = e), e[r] = !0);
1270
- }
1271
- let o = this.processFilterCriteria(e, t);
1272
- return o ? (o.index = r, o) : null;
1273
- }
1274
- processFilterColumns(e, t, n, r) {
1275
- if (!t) return;
1276
- let i = t.childNodes, a = i.length;
1277
- for (let t = 0; t < a; t++) {
1278
- let a = i.item(t);
1279
- if (a.nodeType === 1 && a.localName === "filterColumn") {
1280
- let t = this.processFilterColumn(e, a, r);
1281
- t && n.push(t);
1282
- }
1283
- }
1284
- return n;
1285
- }
1286
- }, Me = class {
1287
- visit(e, t, i) {
1288
- if (!t) return;
1289
- let o = t.getAttribute("ref"), s = {};
1290
- t.hasAttribute("caseSensitive") && (s.collatorOptions = C(t.getAttribute("caseSensitive")) ? r.CaseSensitiveOptions : r.CaseInsensitiveOptions);
1291
- let c = t.getAttribute("sortMethod");
1292
- c != null && c !== "none" && (c === "stroke" ? s.collatorOptions = {
1293
- ...s.collatorOptions,
1294
- collation: "stroke"
1295
- } : c === "pinYin" && (s.collatorOptions = {
1296
- ...s.collatorOptions,
1297
- collation: "pinyin"
1298
- }));
1299
- let l = {};
1300
- t.hasAttribute("columnSort") && C(t.getAttribute("columnSort")) && (l.axis = n.Axis.Column);
1301
- let u = a.fastStringToRange(o), d = [];
1302
- return this.processSortConditions(e, t, d, u, s), d.length > 0 && (l.sorts = d), Object.keys(d).length > 0 && (i.sort = l), l;
1303
- }
1304
- processSortCondition(e, t, n, r) {
1305
- if (!t) return null;
1306
- let i = {};
1307
- if (!t.hasAttribute("ref")) return void e.warn("A sort condition has no ref; it was dropped.", { onceKey: "xlsx.sheet.sort.noRef" });
1308
- if (t.hasAttribute("ref")) {
1309
- let e = t.getAttribute("ref"), r = a.fastStringToRange(e);
1310
- i.index = n ? r.colStart - n.colStart : r.colStart;
1311
- }
1312
- let o = { ...r };
1313
- return i.criteria = o, o.reverse = !1, t.hasAttribute("descending") && (o.reverse = C(t.getAttribute("descending"))), e.copyFromAttribute(t, "sortBy", o, "sortOn"), e.copyFromAttribute(t, "dxfId", o), e.copyFromAttribute(t, "iconSet", o), e.copyFromAttribute(t, "customList", o), i;
1314
- }
1315
- processSortConditions(e, t, n, r, i) {
1316
- if (!t) return;
1317
- let a = t.childNodes, o = a.length;
1318
- for (let t = 0; t < o; t++) {
1319
- let o = a.item(t);
1320
- if (o.nodeType === 1 && o.localName === "sortCondition") {
1321
- let t = this.processSortCondition(e, o, r, i);
1322
- t && n.push(t);
1323
- }
1324
- }
1325
- }
1326
- }, Z = class extends z {
1327
- visit(e, t, n) {
1328
- this.processNumFmts(e, e.evaluate("numFmts", t), null), e.getVisitorParamsState().set("colorsToProcess", /* @__PURE__ */ new Set());
1329
- let r = {
1330
- fills: {},
1331
- fonts: {},
1332
- borders: {}
1333
- };
1334
- this.processFonts(e, e.evaluate("fonts", t), r.fonts), this.processFills(e, e.evaluate("fills", t), r.fills), this.processBorders(e, e.evaluate("borders", t), r.borders, !0), r.fills[0] = { type: c.Type.None }, r.fills[1] = {
1335
- type: c.Type.Pattern,
1336
- patternType: c.BuiltInSheetPattern.Gray125
1337
- }, r.borders[0] = {
1338
- bottom: { style: i.StrokeStyle.None },
1339
- left: { style: i.StrokeStyle.None },
1340
- right: { style: i.StrokeStyle.None },
1341
- top: { style: i.StrokeStyle.None }
1342
- };
1343
- let a = [];
1344
- this.processXFs(e, e.evaluate("cellStyleXfs", t), a, r, null, !1);
1345
- let o = /* @__PURE__ */ new Map();
1346
- if (a.length > 0) {
1347
- let r = [];
1348
- this.processCellStyles(e, e.evaluate("cellStyles", t), r, a, o), n.named = r;
1349
- }
1350
- let s = [];
1351
- this.processXFs(e, e.evaluate("cellXfs", t), s, r, o), Object.keys(s).length > 0 && (n.direct = s);
1352
- let l = this.collectHiddenXfs(e.evaluate("cellXfs", t));
1353
- l.size > 0 && e.getVisitorParamsState().set("hiddenXfs", l);
1354
- let u = [];
1355
- return this.processDXFs(e, e.evaluate("dxfs", t), u), this.processTableStyles(e, e.evaluate("tableStyles", t), n, u), this.processIndexColors(e, e.evaluate("colors/indexedColors", t), n), this.processMruColors(e, e.evaluate("colors/mruColors", t), n), n;
1356
- }
1357
- processIndexColors(e, t, n) {
1358
- if (!t) return;
1359
- let r = [], i = t.childNodes, a = i.length;
1360
- for (let t = 0; t < a; t++) {
1361
- let n = i.item(t);
1362
- if (n.nodeType === 1 && n.localName === "rgbColor") {
1363
- let t = { color: null };
1364
- this.processDataBarColor(e, n, t, "color"), t.color && r.push(t.color);
1365
- }
1366
- }
1367
- n.indexedColors = r;
1368
- }
1369
- processMruColors(e, t, n) {
1370
- if (!t) return;
1371
- let r = [], i = t.childNodes, a = i.length;
1372
- for (let t = 0; t < a; t++) {
1373
- let n = i.item(t);
1374
- if (n.nodeType === 1 && n.localName === "color") {
1375
- let t = { color: null };
1376
- this.processDataBarColor(e, n, t, "color"), t.color && r.push(t.color);
1377
- }
1378
- }
1379
- r.length > 0 && (n.mruColors = r);
1380
- }
1381
- processNumFmts(e, t, n) {
1382
- if (!t) return;
1383
- let r = /* @__PURE__ */ new Map();
1384
- if (e.getVisitorParamsState().set("numFmts", r), !t) return;
1385
- let i = t.childNodes, a = i.length;
1386
- for (let e = 0; e < a; e++) {
1387
- let t = i.item(e);
1388
- if (t.nodeType === 1 && t.localName === "numFmt") {
1389
- let e = t.getAttribute("numFmtId"), n = t.getAttribute("formatCode");
1390
- if (e && n) {
1391
- let t = n;
1392
- r.set(parseInt(e), t);
1393
- }
1394
- }
1395
- }
1396
- }
1397
- processXFs(e, t, n, r, i = null, a = !0) {
1398
- if (!t) return;
1399
- let o = t.childNodes, s = o.length;
1400
- for (let t = 0; t < s; t++) {
1401
- let s = o.item(t);
1402
- if (s.nodeType === 1 && s.localName === "xf") {
1403
- let t = {};
1404
- this.processXF(e, s, t, r, i, a), n.push(t);
1405
- }
1406
- }
1407
- }
1408
- processXF(e, t, n, r, i, a) {
1409
- if (!t) return;
1410
- let o = t.getAttribute("xfId");
1411
- if (o && i) {
1412
- let e = i.get(parseInt(o));
1413
- e && e !== s.BuiltInName.Normal && (n.named = e);
1414
- }
1415
- let c = (e) => !(!a && t.hasAttribute(e)) || C(t.getAttribute(e)), l = (e) => !a || t.hasAttribute(e) && C(t.getAttribute(e)), u = a ? "0" : void 0;
1416
- if (c("applyFont")) {
1417
- let e = t.getAttribute("fontId") ?? u;
1418
- if (e !== void 0 && (e !== "0" || l("applyFont"))) {
1419
- let t = r.fonts[e];
1420
- t !== void 0 && (n.font = t);
1421
- }
1422
- }
1423
- if (c("applyFill")) {
1424
- let e = t.getAttribute("fillId") ?? u;
1425
- if (e !== void 0 && (e !== "0" || l("applyFill"))) {
1426
- let t = r.fills[e];
1427
- t !== void 0 && Object.keys(t).length > 0 && (n.fill = t);
1428
- }
1429
- }
1430
- if (c("applyBorder")) {
1431
- let e = t.getAttribute("borderId") ?? u;
1432
- if (e !== void 0 && (e !== "0" || l("applyBorder"))) {
1433
- let t = r.borders[e];
1434
- t !== void 0 && (n.borders = t);
1435
- }
1436
- }
1437
- if (c("applyNumberFormat")) {
1438
- let r = t.getAttribute("numFmtId") ?? u;
1439
- if (r !== void 0 && (r !== "0" || l("applyNumberFormat"))) {
1440
- let t, i = parseInt(r), a = e.getVisitorParamsState();
1441
- if (a) {
1442
- let e = a.get("numFmts");
1443
- e && (t = e.get(i)), n.numberFormat = t ?? i;
1444
- } else e.warn("Number formats were unavailable; a cell format was not read.", { onceKey: "xlsx.style.numberFormat.state" });
1445
- }
1446
- }
1447
- if (c("applyAlignment")) {
1448
- let r = e.evaluate("alignment", t);
1449
- (r || l("applyAlignment")) && this.processAlignment(e, r, n);
1450
- }
1451
- if (c("applyProtection")) {
1452
- let r = e.evaluate("protection", t);
1453
- (r || l("applyProtection")) && this.processProtection(e, r, n);
1454
- }
1455
- let d = C(t.getAttribute("quotePrefix") ?? "");
1456
- d && (n.quotePrefix = d);
1457
- }
1458
- processAlignment(e, t, n) {
1459
- let r = {};
1460
- if (t?.hasAttribute("horizontal") ? r.horizontal = t.getAttribute("horizontal") : r.horizontal = o.HorizontalAlignment.General, t?.hasAttribute("vertical") ? r.vertical = t.getAttribute("vertical") : r.vertical = o.VerticalAlignment.Bottom, t?.hasAttribute("indent") ? r.indent = parseInt(t.getAttribute("indent")) : r.indent = 0, t?.hasAttribute("relativeIndent") ? r.relativeIndent = parseInt(t.getAttribute("relativeIndent")) : r.relativeIndent = 0, C(t?.getAttribute("wrapText") ?? "") ? r.overflow = o.Overflow.Wrap : r.overflow = o.Overflow.Visible, C(t?.getAttribute("shrinkToFit") ?? "") && (r.overflow = o.Overflow.Shrink), t?.hasAttribute("textRotation")) {
1461
- let e = parseFloat(t.getAttribute("textRotation"));
1462
- e > 0 && e <= 90 ? e = 360 - e : e > 90 && e <= 180 ? e -= 90 : e === 255 && (e = 0, r.stacked = !0), r.rotation = e;
1463
- } else r.rotation = 0;
1464
- t?.hasAttribute("justifyLastLine") && (r.justifyLastLine = C(t.getAttribute("justifyLastLine")));
1465
- let i = t?.getAttribute("readingOrder");
1466
- return i && (i === "0" ? r.readingDirection = o.ReadingDirection.Auto : i === "1" ? r.readingDirection = o.ReadingDirection.LeftToRight : i === "2" ? r.readingDirection = o.ReadingDirection.RightToLeft : e.warn(`Invalid readingOrder '${i}'; the direction was left automatic.`, { onceKey: "xlsx.style.readingOrder" })), Object.keys(r).length > 0 && (n.alignment = r), n;
1467
- }
1468
- collectHiddenXfs(e) {
1469
- let t = /* @__PURE__ */ new Set();
1470
- if (!e) return t;
1471
- let n = e.childNodes, r = 0;
1472
- for (let e = 0; e < n.length; e++) {
1473
- let i = n.item(e);
1474
- if (i.nodeType !== 1 || i.localName !== "xf") continue;
1475
- let a = i.childNodes;
1476
- for (let e = 0; e < a.length; e++) {
1477
- let n = a.item(e);
1478
- n.nodeType === 1 && n.localName === "protection" && C(n.getAttribute("hidden") ?? "") && t.add(r);
1479
- }
1480
- r++;
1481
- }
1482
- return t;
1483
- }
1484
- processProtection(e, t, n) {
1485
- if (!t) return;
1486
- let r = t.getAttribute("locked");
1487
- return n.protection = { alwaysUnlocked: !!r && !C(r) }, n;
1488
- }
1489
- processDXF(e, t, n) {
1490
- if (!t) return;
1491
- let r = t.childNodes, i = r.length;
1492
- for (let t = 0; t < i; t++) {
1493
- let i = r.item(t);
1494
- if (i.nodeType === 1 && i.localName === "font") {
1495
- let t = {};
1496
- this.processFont(e, i, t), n.font = t;
1497
- } else if (i.nodeType === 1 && i.localName === "fill") {
1498
- let t = [];
1499
- this.processFill(e, i, t, 0), t.length > 0 && t[0] && (n.fill = t[0]);
1500
- } else if (i.nodeType === 1 && i.localName === "border") {
1501
- let t = [];
1502
- this.processBorder(e, i, t, 0, !1), t.length > 0 && t[0] && (n.borders = t[0]);
1503
- } else if (i.nodeType === 1 && i.localName === "numFmt") {
1504
- let e = i.getAttribute("formatCode");
1505
- if (e) n.numberFormat = e;
1506
- else {
1507
- let e = i.getAttribute("numFmtId");
1508
- e && (n.numberFormat = Number(e));
1509
- }
1510
- } else i.nodeType === 1 && i.localName === "alignment" && this.processAlignment(e, i, n);
1511
- }
1512
- }
1513
- processDXFs(e, t, n) {
1514
- if (!t) return;
1515
- e.getVisitorParamsState().set("processingDXFs", !0);
1516
- let r = /* @__PURE__ */ new Map();
1517
- e.getVisitorParamsState().set("dxfs", r);
1518
- let i = t.childNodes, a = i.length;
1519
- for (let t = 0; t < a; t++) {
1520
- let a = i.item(t);
1521
- if (a.nodeType === 1 && a.localName === "dxf") {
1522
- let t = {};
1523
- this.processDXF(e, a, t);
1524
- let i = n.length;
1525
- r.set(i, t), n.push(t);
1526
- }
1527
- }
1528
- e.getVisitorParamsState().delete("processingDXFs");
1529
- }
1530
- processTableStyle(e, t, n, r, i = !1) {
1531
- let a = t.getAttribute("name"), o = { name: a };
1532
- t.hasAttribute("table") && (o.table = C(t.getAttribute("table"))), t.hasAttribute("pivot") && (o.pivot = C(t.getAttribute("pivot"))), i && !o.pivot && r.unshift(null);
1533
- let s = t.childNodes, c = s.length;
1534
- for (let t = 0; t < c; t++) {
1535
- let n = s.item(t);
1536
- if (n.nodeType === 1 && n.localName === "tableStyleElement") {
1537
- let t = n.getAttribute("type"), i = n.getAttribute("dxfId"), a = i == null ? void 0 : r?.[i];
1538
- a ||= (e.warn(`A table style names a format that does not exist (dxfId '${i}').`, { onceKey: "xlsx.style.tableStyle.dxf" }), {}), o[t] = a;
1539
- let s = null;
1540
- n.hasAttribute("size") && (s = parseInt(n.getAttribute("size"))), s && !isNaN(s) && (a.size = s);
1541
- }
1542
- }
1543
- delete o.name, n[a] = o;
1544
- }
1545
- processTableStyles(e, t, n, r, i) {
1546
- if (!t) return;
1547
- let a = {}, o = t.getAttribute("defaultTableStyle");
1548
- o && (a.defaultTableStyle = o);
1549
- let s = t.getAttribute("defaultPivotStyle");
1550
- s && (a.defaultPivotStyle = s);
1551
- let c = t.childNodes, l = {}, u = c.length;
1552
- for (let t = 0; t < u; t++) {
1553
- let n = c.item(t);
1554
- n.nodeType === 1 && n.localName === "tableStyle" && this.processTableStyle(e, n, l, r, i);
1555
- }
1556
- return Object.keys(l).length > 0 && (a.styles = l), Object.keys(a).length > 0 && (n.tables = a), n;
1557
- }
1558
- processCellStyles(e, t, n, r, i) {
1559
- if (!t) return;
1560
- let a = t.childNodes, o = a.length;
1561
- for (let e = 0; e < o; e++) {
1562
- let t = a.item(e);
1563
- if (t.nodeType === 1 && t.localName === "cellStyle") {
1564
- let e = parseInt(t.getAttribute("xfId") ?? ""), a = t.getAttribute("name"), o = t.getAttribute("builtinId"), c = a;
1565
- if (o !== null) {
1566
- let e = s.builtInNameFromId(parseInt(o));
1567
- e !== void 0 && (c = e);
1568
- }
1569
- if (i.set(e, c), !r[e]) continue;
1570
- let l = {
1571
- name: c,
1572
- style: r[e]
1573
- };
1574
- t.getAttribute("hidden") && (l.hidden = C(t.getAttribute("hidden"))), t.getAttribute("iLevel") && (l.iLevel = parseInt(t.getAttribute("iLevel"))), n.push(l);
1575
- }
1576
- }
1577
- }
1578
- afterVisit(e, t, n) {}
1579
- }, Ne = class extends z {
1580
- visit(e, t, n) {
1581
- return this.processSheetRefs(e, e.evaluate("sheets", t), n), this.processExternalReferences(e, e.evaluate("externalReferences", t), n), this.processBookViews(e, e.evaluate("bookViews", t), n), this.processDefinedNames(e, e.evaluate("definedNames", t), n), this.processCalcPr(e, e.evaluate("calcPr", t), n), this.processPivotCaches(e, e.evaluate("pivotCaches", t), n), this.processWorkbookProtection(e, e.evaluate("workbookProtection", t), n), this.processWorkbookPr(e, e.evaluate("workbookPr", t), n), n;
1582
- }
1583
- processPassword(e, t, n, r = "workbook", i = "password") {
1584
- if (!t) return;
1585
- let a = {};
1586
- e.copyFromAttribute(t, `${r}AlgorithmName`, a, "algorithm"), e.copyFromAttribute(t, `${r}HashValue`, a, "hash"), e.copyFromAttribute(t, `${r}SaltValue`, a, "salt"), e.copyFromAttribute(t, `${r}SpinCount`, a, "spinCount", e.INT_COPY), Object.keys(a).length > 0 && (n[i] = a);
1587
- }
1588
- processWorkbookProtection(e, t, n) {
1589
- if (!t) return;
1590
- let r = {};
1591
- this.processPassword(e, t, r, "workbook", "password"), this.processPassword(e, t, r, "revisions", "revisionsPassword");
1592
- for (let e of g) r[e.key] = m(e, t.getAttribute(e.attribute));
1593
- return n.protection = r, n;
1594
- }
1595
- processCalcPr(e, t, n) {
1596
- if (!t) return;
1597
- let r = {};
1598
- e.copyFromAttribute(t, "calcMode", r, "calcMode", (e) => le[e] ?? null), e.copyFromAttribute(t, "fullCalcOnLoad", r, "fullCalcOnLoad", e.BOOLEAN_COPY), e.copyFromAttribute(t, "calcOnSave", r, "calcOnSave", e.BOOLEAN_COPY), e.copyFromAttribute(t, "calcCompleted", r, "calcCompleted", e.BOOLEAN_COPY), e.copyFromAttribute(t, "fullPrecision", r, "fullPrecision", e.BOOLEAN_COPY), e.copyFromAttribute(t, "forceFullCalc", r, "forceFullCalc", e.BOOLEAN_COPY), e.copyFromAttribute(t, "concurrentCalc", r, "concurrentCalc", e.BOOLEAN_COPY), e.copyFromAttribute(t, "refMode", r, "refMode"), e.copyFromAttribute(t, "iterate", r, "iterate", e.BOOLEAN_COPY), e.copyFromAttribute(t, "iterateCount", r, "maxIteration", e.INT_COPY), e.copyFromAttribute(t, "iterateDelta", r, "maxIterateChange", e.FLOAT_COPY);
1599
- let i = t.getAttribute("calcId");
1600
- i !== null && e.getVisitorParamsState().set("calcId", i), n.calc = r;
1601
- }
1602
- processSheetRefs(e, t, n) {
1603
- if (!t) return;
1604
- let r = [], i = t.childNodes, a = i.length;
1605
- for (let t = 0; t < a; t++) {
1606
- let n = i.item(t);
1607
- n.nodeType === 1 && n.localName === "sheet" && this.processSheetRef(e, n, r);
1608
- }
1609
- n.sheets = r;
1610
- }
1611
- processSheetRef(e, t, n) {
1612
- let r = {};
1613
- e.copyFromAttribute(t, "name", r, "name"), e.copyFromAttribute(t, "state", r, "visibility"), e.copyFromAttribute(t, "sheetId", r, "sheetId", e.INT_COPY);
1614
- let i = t.getAttribute("r:id"), a = e.getRef(i);
1615
- a && (r.sheet = a), n.push(r);
1616
- }
1617
- processExternalReferences(e, t, n) {
1618
- if (!t) return;
1619
- let r = [], i = t.childNodes, a = i.length;
1620
- for (let t = 0; t < a; t++) {
1621
- let n = i.item(t);
1622
- if (n.nodeType === 1 && n.localName === "externalReference") {
1623
- let t = n.getAttribute("r:id"), i = t ? e.getRef(t) : null;
1624
- r.push(i ?? null);
1625
- }
1626
- }
1627
- r.length > 0 && (n.externalBooks = r);
1628
- }
1629
- processPivotCaches(e, t, n) {
1630
- if (!t) return;
1631
- let r = [], i = t.childNodes, a = i.length;
1632
- for (let t = 0; t < a; t++) {
1633
- let n = i.item(t);
1634
- if (n.nodeType !== 1 || n.localName !== "pivotCache") continue;
1635
- let a = parseInt(n.getAttribute("cacheId") ?? "", 10), o = n.getAttribute("r:id");
1636
- if (isNaN(a) || !o) continue;
1637
- let s = e.readEmbeddedPart(o);
1638
- s && r.push({
1639
- cacheId: a,
1640
- part: s
1641
- });
1642
- }
1643
- r.length > 0 && (n.pivotCaches = r);
1644
- }
1645
- processBookViews(e, t, n) {
1646
- if (!t) return;
1647
- let r = t.childNodes, i = 0, a = r.length;
1648
- for (let t = 0; i < 1 && t < a; t++) {
1649
- let a = r.item(t);
1650
- a.nodeType === 1 && a.localName === "workbookView" && (this.processWorkbookView(e, a, n), i++);
1651
- }
1652
- }
1653
- processWorkbookView(e, t, n) {
1654
- if (!t) return;
1655
- let r = {};
1656
- e.copyFromAttribute(t, "activeTab", r, "activeSheetId", [e.INT_COPY, (e) => e]), t.hasAttribute("activeTab") || (r.activeSheetId = 0), e.copyFromAttribute(t, "showHorizontalScroll", r, "showHorizontalScrollbar", e.BOOLEAN_COPY), e.copyFromAttribute(t, "showVerticalScroll", r, "showVerticalScrollbar", e.BOOLEAN_COPY), e.copyFromAttribute(t, "showSheetTabs", r, "showTabs", e.BOOLEAN_COPY), e.copyFromAttribute(t, "tabRatio", r, "tabRatio", [e.FLOAT_COPY, (e) => e]), Object.keys(r).length > 0 && (n.view = r);
1657
- }
1658
- processDefineName(e, t, n, r) {
1659
- if (!t) return;
1660
- let i = {}, a = t.firstChild;
1661
- if (a && a.nodeType === 3 && (i.ref = a.textContent), e.copyFromAttribute(t, "name", i), e.copyFromAttribute(t, "comment", i), e.copyFromAttribute(t, "hidden", i, "hidden", e.BOOLEAN_COPY), t.hasAttribute("localSheetId")) {
1662
- let n = t.getAttribute("localSheetId");
1663
- if (!r[n]?.name) return void e.warn(`Defined name '${t.getAttribute("name")}' references a sheet with localSheetId '${n}' which does not exist.`);
1664
- i.scope = r[n].name;
1665
- }
1666
- e.copyFromAttribute(t, "customMenu", i), e.copyFromAttribute(t, "description", i), e.copyFromAttribute(t, "statusBar", i), e.copyFromAttribute(t, "help", i), e.copyFromAttribute(t, "shortcutKey", i), e.copyFromAttribute(t, "function", i, "function", e.BOOLEAN_COPY), e.copyFromAttribute(t, "functionGroupId", i, "functionGroupId", e.INT_COPY), e.copyFromAttribute(t, "publishToServer", i, "publishToServer", e.BOOLEAN_COPY), e.copyFromAttribute(t, "vbProcedure", i, "vbProcedure", e.BOOLEAN_COPY), e.copyFromAttribute(t, "xlm", i, "xlm", e.BOOLEAN_COPY), Object.keys(i).length > 0 && n.push(i);
1667
- }
1668
- processDefinedNames(e, t, n) {
1669
- if (!t) return;
1670
- let r = [], i = t.childNodes, a = i.length;
1671
- for (let t = 0; t < a; t++) {
1672
- let a = i.item(t);
1673
- a.nodeType === 1 && a.localName === "definedName" && this.processDefineName(e, a, r, n.sheets);
1674
- }
1675
- r.length > 0 && (n.names = r);
1676
- }
1677
- processWorkbookPr(e, t, n) {
1678
- t && (e.copyFromAttribute(t, "date1904", n, "date1904", e.BOOLEAN_COPY), e.copyFromAttribute(t, "codeName", n, "codeName"), e.copyFromAttribute(t, "updateLinks", n, "updateLinks"));
1679
- }
1680
- afterVisit(e, t, n) {}
1681
- }, Pe = class {
1682
- visit(e, t, n) {
1683
- let r = {};
1684
- return e.copyFromAttribute(t, "ref", n, "r"), e.getVisitorParamsState().set("ref", n.r), n.v = r, e.copyFromAttribute(t, "name", r), e.copyFromAttribute(t, "displayName", r), e.copyFromAttribute(t, "headerRowCount", r, "headerRowCount", e.INT_COPY), e.copyFromAttribute(t, "totalsRowCount", r, "totalsRowCount", e.INT_COPY), this.processTableColumns(e, t, r), this.processTableStyleInfo(e, t, r), e.copyFromAttribute(t, "id", r), e.copyFromAttribute(t, "comment", r, "description"), e.copyFromAttribute(t, "connectionId", r, "connectionId", e.INT_COPY), e.copyFromAttribute(t, "tableType", r), e.copyFromAttribute(t, "published", r, "published", e.BOOLEAN_COPY), e.copyFromAttribute(t, "insertRow", r, "insertRow", e.BOOLEAN_COPY), e.copyFromAttribute(t, "insertRowShift", r, "insertRowShift", e.BOOLEAN_COPY), r.totalsRowShown = t.getAttribute("totalsRowShown") !== "0", r;
1685
- }
1686
- afterVisit(e, t, n) {
1687
- let r = n.v;
1688
- if (e.evaluate("autoFilter", t)) {
1689
- if (Array.isArray(r.hiddenButtons)) {
1690
- let e = r.hiddenButtons.length;
1691
- e === 0 ? r.hiddenButtons = !1 : e === r.columns?.length && (r.hiddenButtons = !0);
1692
- }
1693
- } else r.hiddenButtons = !0, r.showButtons = !1;
1694
- return r;
1695
- }
1696
- processTableStyleInfo(e, t, n) {
1697
- if (!t) return;
1698
- let r = t.childNodes, i = {}, a = r.length;
1699
- for (let t = 0; t < a; t++) {
1700
- let n = r.item(t);
1701
- n.nodeType === 1 && n.localName === "tableStyleInfo" && (e.copyFromAttribute(n, "name", i), e.copyFromAttribute(n, "showColumnStripes", i, "showColumnStripes", e.BOOLEAN_COPY), e.copyFromAttribute(n, "showFirstColumn", i, "showFirstColumn", e.BOOLEAN_COPY), e.copyFromAttribute(n, "showLastColumn", i, "showLastColumn", e.BOOLEAN_COPY), e.copyFromAttribute(n, "showRowStripes", i, "showRowStripes", e.BOOLEAN_COPY));
1702
- }
1703
- Object.keys(i).length > 0 && (n.style = i);
1704
- }
1705
- processTableColumn(e, t, n) {
1706
- if (!t) return null;
1707
- let r = t.childNodes, i = r.length;
1708
- for (let t = 0; t < i; t++) {
1709
- let i = r.item(t);
1710
- if (i.nodeType === 1 && i.localName === "tableColumn") {
1711
- let t = {};
1712
- e.copyFromAttribute(i, "name", t), e.copyFromAttribute(i, "id", t), e.copyFromAttribute(i, "uniqueName", t), e.copyFromAttribute(i, "queryTableFieldId", t), e.copyFromAttribute(i, "totalsRowLabel", t);
1713
- let r = i.getAttribute("totalsRowFunction");
1714
- if (r !== null) if (r === "custom") {
1715
- let n = e.evaluate("totalsRowFormula", i);
1716
- n && (t.totalsRowFormula = n.textContent);
1717
- } else t.totalsRowFormula = r;
1718
- e.copyFromAttribute(i, "totalsRowLabel", t);
1719
- let a = e.evaluate("calculatedColumnFormula", i);
1720
- a?.textContent && (t.calculatedColumnFormula = a.textContent), n.push(t);
1721
- }
1722
- }
1723
- return n;
1724
- }
1725
- processTableColumns(e, t, n) {
1726
- let r = t.childNodes, i = [], a = r.length;
1727
- for (let t = 0; t < a; t++) {
1728
- let n = r.item(t);
1729
- n.nodeType === 1 && n.localName === "tableColumns" && this.processTableColumn(e, n, i);
1730
- }
1731
- i.length > 0 && (n.columns = i);
1732
- }
1733
- }, Fe = class {
1734
- visit(e, t, n) {
1735
- let r = e.getVisitorParamsState().get("ref");
1736
- if (r) {
1737
- let n = e.getVisitorParamsState().get("descriptions");
1738
- n && (n.add(r, t.getAttribute("altText")), n.add(r, t.getAttribute("altTextSummary")));
1739
- }
1740
- return e.copyFromAttribute(t, "altText", n), e.copyFromAttribute(t, "altTextSummary", n), n;
1741
- }
1742
- }, Ie = class {
1743
- visit(e, t, n) {
1744
- let r = t.childNodes, i = r.length, a = null;
1745
- for (let e = 0; e < i; e++) {
1746
- let t = r.item(e);
1747
- if (t.nodeType === 1) {
1748
- t.localName === "externalBook" && (a = t);
1749
- break;
1750
- }
1751
- }
1752
- if (!a) return n;
1753
- t.getAttribute("mc:Ignorable") && (n.mceIgnorable = !0);
1754
- let o = a.getAttribute("r:id");
1755
- o && (n.__bookRelId = o);
1756
- let s = this._findAbsoluteUrlRelId(a);
1757
- return s && (n.__absoluteUrlRelId = s), n.sheetNames = [], this.processSheetNames(e, a, n), this.processDefinedNames(e, a, n), this.processSheetDataSet(e, a, n), n;
1758
- }
1759
- processSheetNames(e, t, n) {
1760
- let r = this._findChild(t, "sheetNames");
1761
- if (!r) return;
1762
- let i = r.childNodes, a = i.length;
1763
- for (let e = 0; e < a; e++) {
1764
- let t = i.item(e);
1765
- t.nodeType === 1 && t.localName === "sheetName" && n.sheetNames.push(t.getAttribute("val") ?? "");
1766
- }
1767
- }
1768
- processDefinedNames(e, t, n) {
1769
- let r = this._findChild(t, "definedNames");
1770
- if (!r) return;
1771
- let i = [], a = r.childNodes, o = a.length;
1772
- for (let e = 0; e < o; e++) {
1773
- let t = a.item(e);
1774
- if (t.nodeType !== 1 || t.localName !== "definedName") continue;
1775
- let n = t.getAttribute("name");
1776
- if (!n) continue;
1777
- let r = {
1778
- name: n,
1779
- refersTo: t.getAttribute("refersTo") ?? ""
1780
- }, o = t.getAttribute("sheetId");
1781
- o !== null && (r.sheetIndex = parseInt(o, 10)), i.push(r);
1782
- }
1783
- i.length > 0 && (n.definedNames = i);
1784
- }
1785
- processSheetDataSet(e, t, n) {
1786
- let r = this._findChild(t, "sheetDataSet");
1787
- if (!r) return;
1788
- let i = [], a = r.childNodes, o = a.length;
1789
- for (let t = 0; t < o; t++) {
1790
- let n = a.item(t);
1791
- if (n.nodeType !== 1 || n.localName !== "sheetData") continue;
1792
- let r = n.getAttribute("sheetId");
1793
- if (r === null) continue;
1794
- let o = this.processSheetData(e, n);
1795
- o.sheetIndex = parseInt(r, 10), n.getAttribute("refreshError") === "1" && (o.refreshError = !0), i.push(o);
1796
- }
1797
- i.length > 0 && (n.sheetDataSet = i);
1798
- }
1799
- processSheetData(e, t) {
1800
- let n = new u.Builder(), r = t.childNodes, i = r.length;
1801
- for (let e = 0; e < i; e++) {
1802
- let t = r.item(e);
1803
- if (t.nodeType !== 1 || t.localName !== "row") continue;
1804
- let i = t.childNodes, o = i.length;
1805
- for (let e = 0; e < o; e++) {
1806
- let t = i.item(e);
1807
- if (t.nodeType !== 1 || t.localName !== "cell") continue;
1808
- let r = t.getAttribute("r");
1809
- if (!r) continue;
1810
- let o = a.fastStringToCell(r);
1811
- if (o?.rowIndex === void 0 || o?.colIndex === void 0) continue;
1812
- let s = this._readCellValue(t);
1813
- s !== void 0 && n.pushAt(o.rowIndex, o.colIndex, s);
1814
- }
1815
- }
1816
- return {
1817
- sheetIndex: -1,
1818
- data: n.build()?.tuples ?? []
1819
- };
1820
- }
1821
- _readCellValue(e) {
1822
- let n = this._findChild(e, "v")?.textContent?.trim();
1823
- if (n !== void 0 && n !== "") switch (e.getAttribute("t")) {
1824
- case null:
1825
- case "n": return parseFloat(n);
1826
- case "b": return n === "1" || n === "true";
1827
- case "str":
1828
- default: return n;
1829
- case "e": {
1830
- let e = t.getBuiltInByLabel(n);
1831
- return e ? {
1832
- t: "e",
1833
- v: e.getCode()
1834
- } : n;
1835
- }
1836
- }
1837
- }
1838
- _findChild(e, t) {
1839
- let n = e.childNodes, r = n.length;
1840
- for (let e = 0; e < r; e++) {
1841
- let r = n.item(e);
1842
- if (r.nodeType === 1 && r.localName === t) return r;
1843
- }
1844
- return null;
1845
- }
1846
- _findAbsoluteUrlRelId(e) {
1847
- let t = this._findChild(e, "alternateUrls");
1848
- return t ? this._findChild(t, "absoluteUrl")?.getAttribute("r:id") ?? null : null;
1849
- }
1850
- }, Le = class {
1851
- visit(e, t, n) {
1852
- e.copyFromAttribute(t, "name", n), e.copyFromAttribute(t, "sourceName", n);
1853
- let r = e.evaluate("*/tableSlicerCache", t);
1854
- return r ? (e.copyFromAttribute(r, "tableId", n), e.copyFromAttribute(r, "column", n, "columnId"), e.copyFromAttribute(r, "crossFilter", n), n) : (e.warn("A slicer names no table; it was not imported.", { onceKey: "xlsx.slicer.cacheDefinition" }), n);
1855
- }
1856
- }, Re = class {
1857
- visit(e, t, n) {
1858
- let r = n.slicers;
1859
- r || (r = {}, n.slicers = r);
1860
- let i = t.childNodes, a = i.length;
1861
- for (let t = 0; t < a; t++) {
1862
- let n = i.item(t);
1863
- n.nodeType === 1 && n.localName === "slicer" && this.processSlicer(e, n, r);
1864
- }
1865
- return r;
1866
- }
1867
- processSlicer(e, t, n) {
1868
- if (!t) return;
1869
- let r = {};
1870
- n[t.getAttribute("name")] = r;
1871
- let i = t.getAttribute("cache"), a = e.getVisitorParamsState().get("slicerCaches");
1872
- if (i) {
1873
- let e = a.get(i);
1874
- e && (r.columnId = e.columnId, r.tableId = e.tableId);
1875
- }
1876
- e.copyFromAttribute(t, "caption", r), e.copyFromAttribute(t, "startItem", r, "startItem", e.INT_COPY), e.copyFromAttribute(t, "columnCount", r, "columnCount", e.INT_COPY), e.copyFromAttribute(t, "showCaption", r, "showCaption", e.BOOLEAN_COPY), e.copyFromAttribute(t, "level", r, "level", e.INT_COPY), e.copyFromAttribute(t, "style", r), e.copyFromAttribute(t, "locked", r, "locked", e.BOOLEAN_COPY), e.copyFromAttribute(t, "rowHeight", r, "rowHeight", e.INT_COPY);
1877
- }
1878
- }, ze = class {
1879
- visit(e, t, n) {
1880
- return n;
1881
- }
1882
- }, Q = class {
1883
- visit(e, t, n) {
1884
- if (!t) return;
1885
- let r = {};
1886
- return e.copyFromAttribute(t, "editAs", r, "anchorType"), r.anchor = {}, t.localName === "absoluteAnchor" ? (r.anchorType = "absolute", this.processAbsoluteCoord(e, e.evaluate("xdr:pos", t), r.anchor, "from", "x", "y"), this.processAbsoluteCoord(e, e.evaluate("xdr:ext", t), r.anchor, "to", "cx", "cy")) : t.localName === "oneCellAnchor" ? (this.processOffsetCoord(e, e.evaluate("from", t), r.anchor, "from"), this.processAbsoluteCoord(e, e.evaluate("xdr:ext", t), r.anchor, "to", "cx", "cy")) : (this.processOffsetCoord(e, e.evaluate("from", t), r.anchor, "from"), this.processOffsetCoord(e, e.evaluate("to", t), r.anchor, "to")), n.movables ||= [], n.movables.push(r), r;
1887
- }
1888
- processAbsoluteCoord(e, t, n, r, i, a) {
1889
- if (!t) return;
1890
- let o = {
1891
- x: 0,
1892
- y: 0
1893
- };
1894
- return o.x = y(t.getAttribute(i)), o.y = y(t.getAttribute(a)), r === "from" ? n.tl = o : n.br = o, n;
1895
- }
1896
- processOffsetCoord(e, t, n, r) {
1897
- if (!t) return;
1898
- let i = {
1899
- c: 0,
1900
- r: 0,
1901
- x: 0,
1902
- y: 0
1903
- };
1904
- return e.evaluate("col", t) && (i.c = parseInt(e.evaluate("col", t).textContent)), e.evaluate("row", t) && (i.r = parseInt(e.evaluate("row", t).textContent)), e.evaluate("colOff", t) && (i.x = y(e.evaluate("colOff", t).textContent)), e.evaluate("rowOff", t) && (i.y = y(e.evaluate("rowOff", t).textContent)), r === "from" ? n.tl = i : n.br = i, n;
1905
- }
1906
- }, Be = class extends V {
1907
- visit(e, t, n) {
1908
- if (!t) return;
1909
- n = super.visit(e, t, n);
1910
- let r = e.evaluate("nvGraphicFramePr/cNvGraphicFramePr", t);
1911
- if (r) {
1912
- let t = e.evaluate("graphicFrameLocks", r);
1913
- if (t) {
1914
- t.hasAttribute("noChangeAspect") && (n.lockAspect = t.getAttribute("noChangeAspect") === "1");
1915
- let e = {};
1916
- Object.keys(e).length > 0 && (n.locks = e);
1917
- }
1918
- }
1919
- let i = {
1920
- type: "graphicFrame",
1921
- json: {}
1922
- }, a = e.evaluate("graphic/graphicData", t).childNodes, o = a.length;
1923
- for (let n = 0; n < o; n++) {
1924
- let r = a.item(n);
1925
- if (r.nodeType === 1) try {
1926
- let n = r.localName;
1927
- n === "chart" ? n = "chart" : n === "slicer" && (n = "slicer"), i.type = n;
1928
- let a = r.getAttribute("r:id");
1929
- if (n === "chart" && a) {
1930
- let n = e.evaluate("*/cNvPr", t);
1931
- n?.item && (n = n.item(0));
1932
- let r = n?.getAttribute?.("id"), o = r ? parseInt(r, 10) : void 0;
1933
- i.json = {
1934
- xml: e.serializeElement(t) ?? void 0,
1935
- sourceId: o === void 0 || isNaN(o) ? void 0 : o,
1936
- part: e.readEmbeddedPart(a) ?? void 0
1937
- };
1938
- } else a && (i.json = e.getRef(a));
1939
- } catch (t) {
1940
- e.warn(`Unable to read a graphic frame: ${t?.message ?? t}`, { onceKey: "xlsx.drawing.graphicFrame" });
1941
- }
1942
- }
1943
- return i && this.setContent(n, i), i;
1944
- }
1945
- }, Ve = H, $ = class extends V {
1946
- visit(e, t, n) {
1947
- if (!t) return;
1948
- let r = super.visit(e, t, n), i = e.evaluate("nvPicPr/cNvPicPr", t);
1949
- if (i) {
1950
- e.copyFromAttribute(t, "preferRelativeResize", r, "preferRelativeResize", e.BOOLEAN_COPY);
1951
- let n = e.evaluate("picLocks", i);
1952
- if (n) {
1953
- n.hasAttribute("noChangeAspect") && (r.lockAspect = n.getAttribute("noChangeAspect") === "1");
1954
- let t = {};
1955
- e.copyFromAttribute(n, "noChangeArrowheads", r, "noChangeArrowheads", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noChangeShapeType", r, "noChangeShapeType", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noEditPoints", r, "noEditPoints", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noAdjustHandles", r, "noAdjustHandles", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noCrop", r, "noCrop", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noGrp", r, "noGrp", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noMove", r, "noMove", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noResize", r, "noResize", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noRot", r, "noRot", e.BOOLEAN_COPY), e.copyFromAttribute(n, "noSelect", r, "noSelect", e.BOOLEAN_COPY), Object.keys(t).length > 0 && (r.locks = t);
1956
- }
1957
- }
1958
- let a, o = e.evaluate("blipFill/blip", t);
1959
- if (o) {
1960
- let t;
1961
- if (t = o.getAttribute("r:embed") ?? o.getAttribute("embed"), t ||= o.getAttribute("r:link") ?? o.getAttribute("link"), !t) return void e.warn("A picture names no image; it was not imported.", { onceKey: "xlsx.drawing.picture.noRel" });
1962
- a = e.getRef(t, !0);
1963
- }
1964
- let s = { resId: a };
1965
- return this.setContent(n, {
1966
- type: "picture",
1967
- json: s
1968
- }), r;
1969
- }
1970
- }, He = class extends H {
1971
- visit(e, t, n) {
1972
- if (!t) return;
1973
- let r = n;
1974
- n = super.visit(e, t, n);
1975
- let i = e.evaluate("nvGrpSpPr/cNvGrpSpPr", t);
1976
- if (i) {
1977
- let t = e.evaluate("grpSpLocks", i);
1978
- if (t) {
1979
- t.hasAttribute("noChangeAspect") && (n.lockAspect = t.getAttribute("noChangeAspect") === "1");
1980
- let e = {};
1981
- Object.keys(e).length > 0 && (n.locks = e);
1982
- }
1983
- }
1984
- e.warn(`Unable to import '${r.content?.name}', group shapes are not supported.`);
1985
- let a = {};
1986
- return n.content = {
1987
- type: "grpSp",
1988
- json: a
1989
- }, a;
1990
- }
1991
- }, Ue = class extends H {
1992
- visit(e, t, n) {
1993
- if (!t) return;
1994
- n = super.visit(e, t, n);
1995
- let r = e.evaluate("nvCxnSpPr/cNvCxnSpPr", t);
1996
- if (r) {
1997
- let t = e.evaluate("cxnSpLocks", r);
1998
- if (t) {
1999
- t.hasAttribute("noChangeAspect") && (n.lockAspect = t.getAttribute("noChangeAspect") === "1");
2000
- let e = {};
2001
- Object.keys(e).length > 0 && (n.locks = e);
2002
- }
2003
- }
2004
- let i = e.evaluate("*/cNvPr", t);
2005
- i?.item && (i = i.item(0));
2006
- let a = i?.getAttribute?.("id"), o = a ? parseInt(a, 10) : void 0, s = {
2007
- type: "cxnSp",
2008
- xml: e.serializeElement(t) ?? void 0,
2009
- sourceId: o === void 0 || isNaN(o) ? void 0 : o
2010
- };
2011
- return n.content = {
2012
- type: "cxnSp",
2013
- json: s
2014
- }, s;
2015
- }
2016
- }, We = class {
2017
- visit(e, t, n) {
2018
- let r = [], i = /* @__PURE__ */ new Map(), a = {
2019
- cells: [],
2020
- values: []
2021
- }, o = t.childNodes;
2022
- for (let e = 0; e < o.length; e++) {
2023
- let t = o.item(e);
2024
- if (t.nodeType === 1) switch (t.localName) {
2025
- case "metadataTypes":
2026
- this._parseMetadataTypes(t, r, i);
2027
- break;
2028
- case "futureMetadata":
2029
- this._attachFutureMetadata(t, i);
2030
- break;
2031
- case "cellMetadata":
2032
- this._resolveBlocks(t, r, a.cells);
2033
- break;
2034
- case "valueMetadata": this._resolveBlocks(t, r, a.values);
2035
- }
2036
- }
2037
- return n.metadata = a, a;
2038
- }
2039
- _parseMetadataTypes(e, t, n) {
2040
- let r = e.childNodes;
2041
- for (let e = 0; e < r.length; e++) {
2042
- let i = r.item(e);
2043
- if (i.nodeType === 1 && i.localName === "metadataType") {
2044
- let e = this._parseMetadataType(i);
2045
- t.push(e), n.set(e.name, e);
2046
- }
2047
- }
2048
- }
2049
- _parseMetadataType(e) {
2050
- let t = {
2051
- name: e.getAttribute("name") ?? "",
2052
- _blocks: []
2053
- }, n = e.getAttribute("minSupportedVersion");
2054
- n != null && (t.minSupportedVersion = Number(n));
2055
- for (let n of [
2056
- "copy",
2057
- "pasteAll",
2058
- "pasteValues",
2059
- "merge",
2060
- "splitFirst",
2061
- "splitAll",
2062
- "rowColShift",
2063
- "clearFormats",
2064
- "clearComments",
2065
- "assign",
2066
- "coerce",
2067
- "cellMeta",
2068
- "adjust",
2069
- "trans",
2070
- "delete",
2071
- "edit"
2072
- ]) e.getAttribute(n) === "1" && (t[n] = !0);
2073
- return t;
2074
- }
2075
- _attachFutureMetadata(e, t) {
2076
- let n = e.getAttribute("name") ?? "", r = t.get(n);
2077
- if (!r) return;
2078
- let i = e.childNodes;
2079
- for (let e = 0; e < i.length; e++) {
2080
- let t = i.item(e);
2081
- t.nodeType === 1 && t.localName === "bk" && r._blocks.push(this._parseFutureBlock(t));
2082
- }
2083
- }
2084
- _parseFutureBlock(e) {
2085
- let t = {}, n = e.childNodes;
2086
- for (let e = 0; e < n.length; e++) {
2087
- let r = n.item(e);
2088
- if (r.nodeType !== 1 || r.localName !== "extLst") continue;
2089
- let i = r.childNodes;
2090
- for (let e = 0; e < i.length; e++) {
2091
- let n = i.item(e);
2092
- if (n.nodeType !== 1 || n.localName !== "ext") continue;
2093
- let r = n.childNodes;
2094
- for (let e = 0; e < r.length; e++) {
2095
- let n = r.item(e);
2096
- n.nodeType === 1 && (n.localName === "dynamicArrayProperties" ? (t.fDynamic = n.getAttribute("fDynamic") === "1", t.fCollapsed = n.getAttribute("fCollapsed") === "1") : n.localName === "rvb" && (t.richValueIndex = Number(n.getAttribute("i") ?? "0")));
2097
- }
2098
- }
2099
- }
2100
- return t;
2101
- }
2102
- _resolveBlocks(e, t, n) {
2103
- let r = e.childNodes;
2104
- for (let e = 0; e < r.length; e++) {
2105
- let i = r.item(e);
2106
- i.nodeType === 1 && i.localName === "bk" && n.push(this._resolveBlock(i, t));
2107
- }
2108
- }
2109
- _resolveBlock(e, t) {
2110
- let n = /* @__PURE__ */ new Map(), r = e.childNodes;
2111
- for (let e = 0; e < r.length; e++) {
2112
- let i = r.item(e);
2113
- if (i.nodeType !== 1 || i.localName !== "rc") continue;
2114
- let a = Number(i.getAttribute("t")), o = Number(i.getAttribute("v")), s = t[a - 1];
2115
- if (!s) continue;
2116
- let { _blocks: c, ...l } = s, u = { ...l };
2117
- for (let e of Object.keys(u)) u[e] === void 0 && delete u[e];
2118
- let d = c[o];
2119
- d && (d.fDynamic !== void 0 && (u.fDynamic = d.fDynamic, u.fCollapsed = d.fCollapsed ?? !1), d.richValueIndex !== void 0 && (u.richValueIndex = d.richValueIndex)), n.set(s.name, u);
2120
- }
2121
- return n;
2122
- }
2123
- }, Ge = class {
2124
- visit(e, t, n) {
2125
- let r = e.getVisitorParamsState().get(U);
2126
- r || (r = [], e.getVisitorParamsState().set(U, r));
2127
- let i = t.childNodes, a = i.length;
2128
- for (let t = 0; t < a; t++) {
2129
- let n = i.item(t);
2130
- if (n.nodeType === 1 && n.localName === "s") {
2131
- let t = {
2132
- type: n.getAttribute("t") ?? "n",
2133
- keys: []
2134
- };
2135
- this.processKeys(e, n, t), r.push(t);
2136
- }
2137
- }
2138
- return n.richTypes = r, r;
2139
- }
2140
- processKeys(e, t, n) {
2141
- let r = t.childNodes, i = r.length, a = n.keys;
2142
- for (let e = 0; e < i; e++) {
2143
- let t = r.item(e);
2144
- if (t.nodeType === 1 && t.localName === "k") {
2145
- let e = t.getAttribute("n"), n = t.getAttribute("t");
2146
- a.push([e, n]);
2147
- }
2148
- }
2149
- }
2150
- }, Ke = class {
2151
- visit(e, t, n) {
2152
- let r = e.getVisitorParamsState().get("richTypes");
2153
- if (!r) return void e.warn("RichValueFound but not type.");
2154
- let i = e.getVisitorParamsState().get(W);
2155
- i || (i = [], e.getVisitorParamsState().set(W, i));
2156
- let a = t.childNodes, o = a.length;
2157
- for (let t = 0; t < o; t++) {
2158
- let n = a.item(t);
2159
- if (n.nodeType === 1 && n.localName === "rv") {
2160
- let t = r[n.getAttribute("s")], a = { type: t.type };
2161
- this.processValues(e, n, a, t);
2162
- let o = this.mapType(e, a);
2163
- i.push(o);
2164
- }
2165
- }
2166
- return n.richData = i, i;
2167
- }
2168
- mapType(e, n) {
2169
- if (n.type === "_error") {
2170
- let e = n.errorType;
2171
- if (e) try {
2172
- n = t.getBuiltInByCode(e + 1) ?? t.BuiltIn.Unknown;
2173
- } catch {}
2174
- }
2175
- return n;
2176
- }
2177
- processValues(e, t, n, r) {
2178
- let i = t.childNodes, a = i.length;
2179
- r.type;
2180
- let o = r.keys;
2181
- for (let t = 0; t < a; t++) {
2182
- let r = i.item(t);
2183
- if (r.nodeType === 1 && r.localName === "v") {
2184
- let i = o[t];
2185
- if (!i) return void e.warn("Invalid richData");
2186
- let a = i[0], s = i[1], c = r.textContent;
2187
- s === "i" && (c = Number(c)), n[a] = c;
2188
- }
2189
- }
2190
- }
2191
- }, qe = class {
2192
- visit(e, t, n) {
2193
- if (!t) return;
2194
- let r = [];
2195
- this.processAuthors(e, e.evaluate("authors", t), r), r.length > 0 && (n.authors = r);
2196
- let i = [];
2197
- return n.comments = i, i;
2198
- }
2199
- processAuthors(e, t, n) {
2200
- if (!t) return;
2201
- let r = t.childNodes, i = r.length;
2202
- for (let e = 0; e < i; e++) {
2203
- let t = r.item(e);
2204
- if (t.nodeType === 1 && t.localName === "author") {
2205
- let e = t.firstChild;
2206
- e && e.nodeType === 3 && n.push(e.textContent);
2207
- }
2208
- }
2209
- }
2210
- }, Je = class {
2211
- visit(e, t, n) {
2212
- if (!t) return;
2213
- let r = t.getAttribute("ref");
2214
- if (!r) return;
2215
- let i = { content: "" };
2216
- if (t.hasAttribute("authorId")) {
2217
- let e = parseInt(t.getAttribute("authorId"), 10);
2218
- isNaN(e) || (i.authorId = e);
2219
- }
2220
- return i.content = function(e) {
2221
- if (!e) return "";
2222
- let t = [], n = !0, r = e.childNodes;
2223
- for (let e = 0; e < r.length; e++) {
2224
- let i = r.item(e);
2225
- if (i.nodeType === 1) {
2226
- if (i.localName === "t") t.push({ text: i.textContent ?? "" });
2227
- else if (i.localName === "r") {
2228
- let e = { text: "" }, r = i.childNodes;
2229
- for (let t = 0; t < r.length; t++) {
2230
- let n = r.item(t);
2231
- if (n.nodeType === 1) {
2232
- if (n.localName === "t") e.text += n.textContent ?? "";
2233
- else if (n.localName === "rPr") {
2234
- let t = de(n);
2235
- t && (e.font = t);
2236
- }
2237
- }
2238
- }
2239
- e.font && (n = !1), t.push(e);
2240
- }
2241
- }
2242
- }
2243
- return t.length === 0 ? e.textContent ?? "" : n ? t.map((e) => e.text).join("") : { runs: t };
2244
- }(e.evaluate("text", t)), n.push({
2245
- r,
2246
- v: i
2247
- }), i;
2248
- }
2249
- }, Ye = class {
2250
- visit(e, t, n) {
2251
- if (!t) return;
2252
- let r = [];
2253
- return n.comments = r, r;
2254
- }
2255
- }, Xe = class {
2256
- visit(e, t, n) {
2257
- if (!t) return;
2258
- let r = {};
2259
- e.copyFromAttribute(t, "id", r, "id", _);
2260
- let i = t.getAttribute("ref");
2261
- e.copyFromAttribute(t, "personId", r, "personId", _), e.copyFromAttribute(t, "parentId", r, "parentId", _);
2262
- let a = t.getAttribute("dT");
2263
- a && (r.dt = function(e) {
2264
- let t = /^(.*T\d{2}:\d{2}:\d{2})(?:\.(\d+))?(Z|[+-]\d{2}:?\d{2})?$/i.exec(e.trim());
2265
- if (!t) return e;
2266
- let [, n, r, i] = t;
2267
- return `${n}${r ? `.${(r + "00").substring(0, 3)}` : ""}${i ?? "Z"}`;
2268
- }(a)), t.hasAttribute("done") && (r.done = C(t.getAttribute("done")));
2269
- let o = function(e) {
2270
- let t, n = e.childNodes;
2271
- for (let e = 0; e < n.length; e++) {
2272
- let r = n.item(e);
2273
- if (r.nodeType !== 1 || r.localName !== "mentions") continue;
2274
- let i = r.childNodes;
2275
- for (let e = 0; e < i.length; e++) {
2276
- let n = i.item(e);
2277
- if (n.nodeType !== 1 || n.localName !== "mention") continue;
2278
- let r = n.getAttribute("mentionId"), a = n.getAttribute("mentionpersonId");
2279
- if (!r || !a) continue;
2280
- let o = {
2281
- id: _(r),
2282
- personId: _(a)
2283
- }, s = parseInt(n.getAttribute("startIndex") ?? "", 10);
2284
- isNaN(s) || (o.startIndex = s);
2285
- let c = parseInt(n.getAttribute("length") ?? "", 10);
2286
- isNaN(c) || (o.length = c), (t ??= []).push(o);
2287
- }
2288
- }
2289
- return t;
2290
- }(t);
2291
- return o && (r.mentions = o), n.push({
2292
- r: i,
2293
- v: r
2294
- }), r;
2295
- }
2296
- }, Ze = class {
2297
- visit(e, t, n) {
2298
- let r = [], i = t.childNodes, a = i.length;
2299
- for (let t = 0; t < a; t++) {
2300
- let n = i.item(t);
2301
- if (n.nodeType === 1 && n.localName === "person") {
2302
- let t = {};
2303
- e.copyFromAttribute(n, "id", t, "id", _), e.copyFromAttribute(n, "displayName", t), e.copyFromAttribute(n, "userId", t, "userId", _), e.copyFromAttribute(n, "providerId", t), r.push(t);
2304
- }
2305
- }
2306
- return r.length > 0 && (n.persons = r), r;
2307
- }
2308
- }, Qe = class {
2309
- constructor(e, t) {
2310
- this.path = e, this.visitor = t;
2311
- }
2312
- }, $e = class {
2313
- constructor() {
2314
- this.visitorsByXmlTagName = /* @__PURE__ */ new Map(), this.scopedVisitorsByXmlTagName = /* @__PURE__ */ new Map(), this.visitorParamsState = null, this.registerVisitor("Relationships", new fe()), this.registerVisitor("cp:coreProperties", new pe()), this.registerVisitor("Properties", new me()), this.registerVisitor("spPr", new _e()), this.registerVisitor("txBody", new Y()), this.registerVisitor("txPr", new Y()), this.registerVisitor("c:chartSpace", new he()), this.registerVisitor("c:plotArea", new ge()), this.registerVisitor("c:barChart", new ve()), this.registerVisitor("c:doughnutChart", new K()), this.registerVisitor("c:lineChart", new K()), this.registerVisitor("c:ofPieType", new K()), this.registerVisitor("c:pieChart", new K()), this.registerVisitor("c:scatterChart", new K()), this.registerVisitor("c:barChart", new q("dataLabels"), "dLbls"), this.registerVisitor("c:doughnutChart", new q("dataLabels"), "dLbls"), this.registerVisitor("c:lineChart", new q("dataLabels"), "dLbls"), this.registerVisitor("c:ofPieType", new q("dataLabels"), "dLbls"), this.registerVisitor("c:pieChart", new q("dataLabels"), "dLbls"), this.registerVisitor("c:scatterChart", new q("dataLabels"), "dLbls"), this.registerVisitor("c:ser", new ye()), this.registerVisitor("c:dPt", new be()), this.registerVisitor("c:marker", new xe()), this.registerVisitor("c:catAx", new J()), this.registerVisitor("c:valAx", new J()), this.registerVisitor("c:dateAx", new J()), this.registerVisitor("c:majorGridlines", new M("gridLinesMajor")), this.registerVisitor("c:minorGridlines", new M("gridLinesMinor")), this.registerVisitor("c:chartSpace", null, "txPr"), this.registerVisitor("c:catAx", new Y("labels.text"), "txPr"), this.registerVisitor("c:valAx", new Y("labels.text"), "txPr"), this.registerVisitor("c:dateAx", new Y("labels.text"), "txPr"), this.registerVisitor("c:legend", new Ce()), this.registerVisitor("c:legend", new Y("labels.text"), "txPr"), this.registerVisitor("c:legendEntry", new Se()), this.registerVisitor("c:ser", new we(), "extLst/ext/invertSolidFillFmt/spPr"), this.registerVisitor("c:ser", new q("labels"), "dLbls"), this.registerVisitor("c:dLbl", new q("points")), this.registerVisitor("c:title", new X()), this.registerVisitor("c:title", null, "tx/rich"), this.registerVisitor("c:title", null, "txPr"), this.registerVisitor("c:layout", new Te()), this.registerVisitor("c:dispUnits", new M("dispUnits")), this.registerVisitor("c:dispUnitsLbl", new X("displayUnitsLabel")), this.registerVisitor("c:dispUnitsLbl", new Y(), "tx/rich"), this.registerVisitor("a:theme", new Ee()), this.registerVisitor("a:theme", new De(), "themeElements/clrScheme"), this.registerVisitor("a:theme", new Oe(), "themeElements/fontScheme"), this.registerVisitor("a:theme", new ke(), "themeElements/fmtScheme"), this.registerVisitor("autoFilter", new je()), this.registerVisitor("sortState", new Me()), this.registerVisitor("s:workbook", new Ne()), this.registerVisitor("styleSheet", new Z()), this.registerVisitor("x14:table", new Fe()), this.registerVisitor("table", new Pe()), this.registerVisitor("externalLink", new Ie()), this.registerVisitor("hlinkClick", new Ae()), this.registerVisitor("wsDr", new ze()), this.registerVisitor("twoCellAnchor", new Q()), this.registerVisitor("oneCellAnchor", new Q()), this.registerVisitor("absoluteAnchor", new Q()), this.registerVisitor("graphicFrame", new Be()), this.registerVisitor("sp", new Ve()), this.registerVisitor("grpSp", new He()), this.registerVisitor("cxnSp", new Ue()), this.registerVisitor("pic", new $()), this.registerVisitor("metadata", new We()), this.registerVisitor("rvStructures", new Ge()), this.registerVisitor("rvData", new Ke()), this.registerVisitor("comments", new qe()), this.registerVisitor("comment", new Je()), this.registerVisitor("ThreadedComments", new Ye()), this.registerVisitor("threadedComment", new Xe()), this.registerVisitor("threadedComment", new Y("content"), "text"), this.registerVisitor("personList", new Ze()), this.registerVisitor("slicerCacheDefinition", new Le()), this.registerVisitor("slicers", new Re());
2315
- }
2316
- registerVisitor(e, t, n = null) {
2317
- e.indexOf(":") === -1 && (e = "*:" + e);
2318
- let r = e.split(":"), i = r.length > 1 ? r[1] : r[0];
2319
- if (!n) return this.visitorsByXmlTagName.set(i, t), void this.visitorsByXmlTagName.set(e, t);
2320
- let a = this.scopedVisitorsByXmlTagName.get(i);
2321
- a || (a = [], this.scopedVisitorsByXmlTagName.set(i, a), this.scopedVisitorsByXmlTagName.set(e, a)), a.push(new Qe(n, t));
2322
- }
2323
- parseDxf(t, n = "", r = e.EmptyObject) {
2324
- this.visitorParamsState ||= /* @__PURE__ */ new Map();
2325
- let i = this.visitorParamsState, a = i.get("processingDXFs");
2326
- i.set("processingDXFs", !0);
2327
- try {
2328
- let e = new T(null, this, "/dxf", t, {}, n, r), i = {};
2329
- return new Z().processDXF(e, t, i), i;
2330
- } finally {
2331
- a === void 0 ? i.delete("processingDXFs") : i.set("processingDXFs", a);
2332
- }
2333
- }
2334
- getVisitorParamsState() {
2335
- return this.visitorParamsState;
2336
- }
2337
- transform(t, n, r = e.EmptyObject) {
2338
- let i = t.documentElement;
2339
- this.visitorParamsState && !r?.paramMap || (this.visitorParamsState = r?.paramMap ?? /* @__PURE__ */ new Map());
2340
- let a = {}, o = this.visitorsByXmlTagName.get(i.nodeName);
2341
- if (o ||= this.visitorsByXmlTagName.get(i.localName), !o) throw Error(`A visitor for the root element: '${i.nodeName}' or '${i.localName}' must be registered.`);
2342
- let s = "/" + i.localName, c = new T(null, this, s, i, a, n, r), l = [];
2343
- this._doWalk(o, c, l, i, a, n, r);
2344
- let u = l.length;
2345
- for (let e = 0; e < u; e++) {
2346
- let t = l[e];
2347
- try {
2348
- t.visitor?.afterVisit?.(t.context, t.elemParent, t.jsonParent);
2349
- } catch (e) {
2350
- t.context.warn(`Unable to finish reading '${t.context.getPath()}': ${e?.message ?? e}`, { onceKey: "xlsx.transform.afterVisit" });
2351
- }
2352
- }
2353
- return a;
2354
- }
2355
- _walkScoped(e, t, n, r, i, a, o) {
2356
- let s = this.scopedVisitorsByXmlTagName.get(e), c = s ? s.length : 0;
2357
- for (let l = 0; l < c; l++) {
2358
- let c = s[l], u = null;
2359
- try {
2360
- u = t.evaluate(c.path, r);
2361
- } catch {
2362
- t.warn(`Invalid path '${c.path}' for '${e}'.`, { onceKey: "xlsx.transform.invalidPath" });
2363
- }
2364
- if (!u) continue;
2365
- let d = (e) => {
2366
- let s = e.localName, l = e.parentNode;
2367
- for (; l && l !== r;) s = l.localName + "/" + s, l = l.parentNode;
2368
- let u = t.getPath() + "/" + s;
2369
- if (c.visitor) {
2370
- let r = new T(t, this, u, t.getElemRoot(), t.getJsonRoot(), a, o);
2371
- this._doWalk(c.visitor, r, n, e, i, a, o);
2372
- }
2373
- };
2374
- if (u.length > 0) {
2375
- let e = u, t = e.length;
2376
- for (let n = 0; n < t; n++) d(e.item(n));
2377
- } else d(u);
2378
- }
2379
- }
2380
- _doWalk(e, t, n, r, i, a, o) {
2381
- let s = null;
2382
- e && (n.push({
2383
- visitor: e,
2384
- context: t,
2385
- elemParent: r,
2386
- jsonParent: i
2387
- }), s = e.visit(t, r, i)), s ||= i;
2388
- let c = r.localName;
2389
- this._walkScoped(c, t, n, r, s, a, o);
2390
- let l = this.visitorsByXmlTagName, u = t.getElemRoot(), d = t.getJsonRoot(), f = r.childNodes, p = f.length;
2391
- for (let e = 0; e < p; e++) {
2392
- let r = f.item(e);
2393
- if (r.nodeType !== 1) continue;
2394
- let c = r, p = c.nodeName, m = l.get(p);
2395
- m ||= (p = c.localName, l.get(p));
2396
- let h = t.getPath() + "/" + p, g = new T(t, this, h, u, d, a, o);
2397
- this._doWalk(m, g, n, c, s ?? i, a, o);
2398
- }
2399
- return s;
2400
- }
2401
- };
2402
- export { $e as DOMTransformer, T as ExecutionContext, ee as NumberUtils, ae as VisitorUtils };