@sheetxl/studio-vanilla 0.8.0-beta.2 → 0.8.0-beta.3

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 (350) hide show
  1. package/browser/cjs/00npLPxW7DhY7cIJ.cjs +5 -0
  2. package/browser/cjs/{D8tkBbkGH5cZzIJP2.cjs → 1gbSV4OYBoEWTygY2.cjs} +1 -1
  3. package/browser/cjs/{DLtFM988NCD-jeBV.cjs → 7SCJ4vwRZW4B71kq.cjs} +2 -2
  4. package/browser/cjs/{D-N5oLosHPjoj-oG.cjs → 9LTjOB1_w-bikScD.cjs} +1 -1
  5. package/browser/cjs/{9rXsWW4SnEpudhfh.cjs → AVUt0iNPhRf4R5xb.cjs} +1 -1
  6. package/browser/cjs/{DHL7SVvz96-5zSWE2.cjs → B2fdTYeKGNugWRgn2.cjs} +1 -1
  7. package/browser/cjs/{D5Gp16-G3pjMtypl2.cjs → B7oyN0rn95Kyes8D2.cjs} +1 -1
  8. package/browser/cjs/{DCRe7NqRclU-Jr7p.cjs → BArvhvpcrQEcbcyY.cjs} +1 -1
  9. package/browser/cjs/{Dk1WS0vM-LQJx_EO2.cjs → BC3OSmoFNyA52TRp2.cjs} +1 -1
  10. package/browser/cjs/{CTDN-AYeejrfopDC.cjs → BDmBYZigchoACsQx.cjs} +1 -1
  11. package/browser/cjs/BFmgMQoM5sQsWIxf2.cjs +1 -0
  12. package/browser/cjs/BIN8L9V0hoUwMh64.cjs +1 -0
  13. package/browser/cjs/{BdJvn1vLXMZvE-8h.cjs → BjjAQLiorKWXy3g5.cjs} +2 -2
  14. package/browser/cjs/{CX7VUEYca9dtWS0N.cjs → BoRfsJCaLzUHQseD.cjs} +1 -1
  15. package/browser/cjs/{ClVLjLIRgWqX3Q-F.cjs → BqQgEaUREvuFHYoW.cjs} +1 -1
  16. package/browser/cjs/{DsqHxG-lGZxL1XgQ.cjs → BtAs67e7WBCglqc5.cjs} +1 -1
  17. package/browser/cjs/{Dg5fR9uTvYHyxOX62.cjs → BxFSy-hOEbyllj-r2.cjs} +2 -2
  18. package/browser/cjs/{BylqpwnwQYDHIWjX.cjs → C0xAhPzztP9a24zR.cjs} +1 -1
  19. package/browser/cjs/{CKEselBM-qmMpQBW2.cjs → C2SohnuJK8Urc7Fx2.cjs} +2 -2
  20. package/browser/cjs/{GPlG4lbMP89VDHYJ.cjs → C3scwi-q2KqEM39H.cjs} +3 -3
  21. package/browser/cjs/{C1tOH7BEpO_ANMsa.cjs → CBLwtHFYNB1BTpSS.cjs} +1 -1
  22. package/browser/cjs/CGtG2pvGgTAnImBg2.cjs +8 -0
  23. package/browser/cjs/{TZQc-szdIVnHDH6F.cjs → CH0vbLpwoyU7oOFk.cjs} +2 -2
  24. package/browser/cjs/CKtdmbeMjJ2udO8s.cjs +1 -0
  25. package/browser/cjs/{ibvsavYh4kU-xxL8.cjs → CQ-W9AUNHdts8pmY.cjs} +1 -1
  26. package/browser/cjs/{DHMQnssVXWjGBSs-.cjs → CQ5x8oFPDaU6OCJf.cjs} +1 -1
  27. package/browser/cjs/{DIdPQwECld6gubdK2.cjs → CTObzk4r7C71x9Ep2.cjs} +1 -1
  28. package/browser/cjs/{DA0nGLC0bEkOhh7G2.cjs → CUyKbhM67853Rnt22.cjs} +1 -1
  29. package/browser/cjs/CVHRh1RGDSgqfAm4.cjs +2 -0
  30. package/browser/cjs/{DTZiRVEB3kVK7eK-2.cjs → CcqhH_Ign02tLFbU2.cjs} +1 -1
  31. package/browser/cjs/{BsJHSGeWLskirGXg.cjs → CdsreHc3A0wBhEy9.cjs} +4 -4
  32. package/browser/cjs/{CA_ZsYjkTHSpGK0j.cjs → CgyU8XPzm6O1a93m.cjs} +11 -11
  33. package/browser/cjs/CzGNIWwu8KL3tcCO2.cjs +1 -0
  34. package/browser/cjs/D-8QQWC-67PplJdV2.cjs +1 -0
  35. package/browser/cjs/D6XEHfNbKx-9qZye.cjs +32 -0
  36. package/browser/cjs/{Dg3GaW0QWwnlqetX2.cjs → D6YaqporVrSewZpm2.cjs} +1 -1
  37. package/browser/cjs/{C-xC6h1TOBr5ZDSe2.cjs → D6m2M4H6JZaYZ4El2.cjs} +1 -1
  38. package/browser/cjs/{p3PYFz7cN2z4XQoU.cjs → D9SdUvJVa64UoGj9.cjs} +1 -1
  39. package/browser/cjs/DCVnwgmc5HuYp_iv2.cjs +1 -0
  40. package/browser/cjs/{xTT7lHV4HUjeNdMs2.cjs → DOEhH2HGT1Zv0irr2.cjs} +1 -1
  41. package/browser/cjs/{CH7BUjrXIKDIE7XE.cjs → DQOt8XSpXyhsrF9N.cjs} +43 -43
  42. package/browser/cjs/{C_T-ehCAzjaVRmTk.cjs → DUXRl3eYfSwbhAfx.cjs} +1 -1
  43. package/browser/cjs/{D_IilnLuy_hDaBmI.cjs → DWdUSWl4MXn2-MLU.cjs} +1 -1
  44. package/browser/cjs/{BvVzIzXLyLxpBcia2.cjs → DWyoF5GqKXce_GmT2.cjs} +1 -1
  45. package/browser/cjs/{aBulzIf4cHnL7sbw.cjs → Df3jw0eHS0X-qFvT.cjs} +1 -1
  46. package/browser/cjs/{9vk-L6rRvx20jeQj.cjs → Doiqeo4Qlie45lbl.cjs} +1 -1
  47. package/browser/cjs/Dp2fPEReFhDsI01j.cjs +3 -0
  48. package/browser/cjs/{CtsduUtTrkcWM02v.cjs → P0AUOlaMi9tyE0vN.cjs} +1 -1
  49. package/browser/cjs/{D2ZPx3v4EVejvhR2.cjs → Qp04O3ALK3M9d3At.cjs} +3 -3
  50. package/browser/cjs/{C19UoK2TTtKU_faS.cjs → Z_6RasaVpnIv1MHk.cjs} +1 -1
  51. package/browser/cjs/{BhcbKFKbSWEavYJm.cjs → Zz5dLT_2gLI18Jmx.cjs} +2 -2
  52. package/browser/cjs/{3a3qEmdJWFXfGW0q.cjs → ge8Wd-0WC6oMuJZR.cjs} +1 -1
  53. package/browser/cjs/index.cjs +1 -1
  54. package/browser/cjs/{Bo7EQ8niKmwtAwo_2.cjs → kj_kwD7S9uUbhKiz2.cjs} +1 -1
  55. package/browser/cjs/qA_ElZ6f49Un56OC.cjs +1 -0
  56. package/browser/cjs/{CoCKYtBIVeDXxSIq2.cjs → s2c8Pr4obSACz8Lu2.cjs} +1 -1
  57. package/browser/cjs/{VgwyOcXDHhEp_NvH2.cjs → uAWsHfi-JD_ZQIT82.cjs} +1 -1
  58. package/browser/cjs/{BQWmn92gYmxC8eWt.cjs → uRXkwHKoe-2HtXuR.cjs} +1 -1
  59. package/browser/cjs/{B0FCH1gFfg2bQiPi2.cjs → y4KFnuCKf8r5oFal2.cjs} +1 -1
  60. package/browser/esm/{DeSDYBzD8e5XXnvq.mjs → 2eBMkUK0-HxaCmDY.mjs} +6 -6
  61. package/browser/esm/{DBTB0moKfwOu0F47.mjs → 53nnk5W22gJW7Ddx.mjs} +5 -5
  62. package/{cdn/assets/DoCYcvHzw3S0MDCW.js → browser/esm/5SHS088DeaZ82qmD2.mjs} +1 -1
  63. package/browser/esm/{rxlYDHBsenoxRx-K2.mjs → 5shGy9JSRzvoIfDE2.mjs} +5 -5
  64. package/browser/esm/{j-9DpYsIlTN1mwql.mjs → 74Ynqpv5NPbb_8vB.mjs} +2971 -2971
  65. package/browser/esm/{CYU_-DiQXjh1SEU1.mjs → B-VKr_KwiWjDeAP5.mjs} +39 -39
  66. package/browser/esm/{Dn8Z0WK2Hwi8MRnQ.mjs → B08GCyGdLNiXtb_R.mjs} +1 -1
  67. package/browser/esm/{DHzdEqMCGL_JPh9w2.mjs → B0F5gtNQjANAfRw32.mjs} +7 -7
  68. package/{cdn/assets/CAVONPXgoytyiNK-.js → browser/esm/B0gZ5e38MXWbEDS_.mjs} +1 -1
  69. package/{cdn/assets/B0FNPu0uhX_WW-aJ2.js → browser/esm/B45vVm2Ma1i2b6_F.mjs} +1 -1
  70. package/browser/esm/{BZZ2IOkVKppFWNLE.mjs → B5z-uoALcLY2ABTo.mjs} +5 -5
  71. package/browser/esm/{AAHsV9V95k39t9SD.mjs → B72sK2NRGAke-aCk2.mjs} +1 -1
  72. package/browser/esm/{BBaNqp1ZjuO25FQg2.mjs → B8q1hrKv7LAL4xmM2.mjs} +1 -1
  73. package/browser/esm/{bvuPDJZmI2O5oihy2.mjs → BCQJVniXgm81YQ0v2.mjs} +15 -15
  74. package/{cdn/assets/CPgOplnn6NuHwsZ_2.js → browser/esm/BCcbek_TFOdgqxXq.mjs} +1 -1
  75. package/browser/esm/{C6X4CmElTpPxrad6.mjs → BEb3QhWwGW8rErZy.mjs} +1 -1
  76. package/{cdn/assets/C7ZHXwoL2A_nxZjl.js → browser/esm/BGRNyE5ar4c3ggrS.mjs} +133 -133
  77. package/browser/esm/{DMMtONCySdMHoaMU.mjs → BHIVjD6BdBS3BAWp.mjs} +6 -6
  78. package/browser/esm/{Bc8-re9biUn57kdl.mjs → BH_qL-oGqwG-7JKF.mjs} +9673 -9704
  79. package/browser/esm/{BuSBBEiK_3KnBr632.mjs → BJ26E2DhS1Jz4nUY2.mjs} +15 -15
  80. package/browser/esm/{Dd80tsdITZsotoCX2.mjs → BJVcTpMN-u5XhMVE2.mjs} +1 -1
  81. package/browser/esm/{sfOREE_huDAOcfYs.mjs → BNgf4HZDOKYBkvL3.mjs} +748 -748
  82. package/browser/esm/{BhGgNWNVYntkJYgU.mjs → BOMJTicRKnx01hw-.mjs} +12 -12
  83. package/browser/esm/{Bokc-Wu4XBPWKmdt.mjs → BPZxx-OH0wACHLsN2.mjs} +1 -1
  84. package/browser/esm/{S2_pz0y2RTJFpXkS.mjs → BQIRHi8T3P5MZtan.mjs} +1 -1
  85. package/{cdn/assets/Be2-C5U5LlfLTmyo.js → browser/esm/BQhVWbI9uag9iRfX2.mjs} +1 -1
  86. package/browser/esm/{B50P0gSziuG68Umu.mjs → BSWXx2rKOMPxLLs8.mjs} +1 -1
  87. package/browser/esm/{Bcjus_Q6f72kE1MK.mjs → BUjTEjAeByh6MKpn.mjs} +1 -1
  88. package/{cdn/assets/CQBSLdAdR53c7BVh.js → browser/esm/BUokT-PbfvYzD63f2.mjs} +1 -1
  89. package/{cdn/assets/WFkg-W8MQ-V6F1Fu.js → browser/esm/BYAZ3XZq8XXkOulw.mjs} +3 -3
  90. package/browser/esm/{iYNN3Px9AekrMEfu2.mjs → BYPIn5AkddMzMcsa2.mjs} +9 -9
  91. package/browser/esm/{DmPq6SwNcX1qXKct.mjs → BcPnGFFKCddWgOch.mjs} +1 -1
  92. package/{cdn/assets/DtQu3vHaJfA5KM2H.js → browser/esm/BgwzL8v2pmR5HJXW.mjs} +1 -1
  93. package/{cdn/assets/13CH9sjvoEqt6nbt.js → browser/esm/BiomOxscV1M0Uw2n.mjs} +1 -1
  94. package/browser/esm/{ZJ32DJlBpN_9fAph.mjs → Bj42pxe5AuY4bF2e.mjs} +3 -3
  95. package/browser/esm/{eTXmezPFvAwM_L-D2.mjs → BmC-_QeQ-53oyorq2.mjs} +1 -1
  96. package/browser/esm/{Bvy9LWN5UHwJXV9i2.mjs → BnHE1Z6WkOfTWheU2.mjs} +2 -2
  97. package/browser/esm/{D-egzesxukW7Z_e3.mjs → BoWCDK44X4tp02_4.mjs} +1 -1
  98. package/browser/esm/{YC83lJ3yRZP57lBl2.mjs → Bq7qy-C7tVkiIaDE2.mjs} +4 -4
  99. package/browser/esm/{04mVsW7CTmUlxnOa.mjs → BrzXFBoYDjcG3ct8.mjs} +3 -3
  100. package/{cdn/assets/jQ5c7MGwQOZq4s5w2.js → browser/esm/BsY_DyFxoqjRHTv02.mjs} +1 -1
  101. package/{cdn/assets/CnvlkxK0pS02Z3gZ.js → browser/esm/Bsfof8nD-exhrNwn.mjs} +1 -1
  102. package/browser/esm/{C3qSUuVA-FII3rMU2.mjs → BtC6lEbd98TeKGsX2.mjs} +14 -14
  103. package/browser/esm/{QNvOHujamKYSXWWA2.mjs → BuoHLVUSwf-mq0hg2.mjs} +1 -1
  104. package/{cdn/assets/BF842ZtkvebA1LgR2.js → browser/esm/BwbR2Dao5LgLYQgV.mjs} +1 -1
  105. package/browser/esm/{CcK4ACF7d5ogFpAS.mjs → ByQakLd0YFwc0Lgl.mjs} +8 -8
  106. package/browser/esm/{BnFriW2cIcOJkXU42.mjs → C-97pwItkHA3s5rD2.mjs} +8 -8
  107. package/browser/esm/{apjOZ6N9KbmyErGz.mjs → C02og4vKxq9qpIUA.mjs} +47 -47
  108. package/{cdn/assets/LfHB39-nf7mi9XC7.js → browser/esm/C0HHZ3XLqp0LgRuW.mjs} +1 -1
  109. package/{cdn/assets/7lIMFL11BRZrMXdc.js → browser/esm/C213T1hhBphljJTF2.mjs} +1 -1
  110. package/browser/esm/{Bl5xLu1ou-9zMIBZ2.mjs → C3A-yJ12PN-CPPnI2.mjs} +1 -1
  111. package/browser/esm/{BDZAVKSYpcOp9Dve2.mjs → C5Oex2msskTvaCQ92.mjs} +1 -1
  112. package/browser/esm/{BIab7njjwaSXjSEP2.mjs → C5u9ds7LUh9JJEbW2.mjs} +2 -2
  113. package/browser/esm/{yFldtlfN_ASKyMll.mjs → C6D3gk0GBvvDjawh.mjs} +5 -5
  114. package/browser/esm/{DTfDzhFtORWkuoRv.mjs → C7b3GyO7FCiMLeyn.mjs} +1 -1
  115. package/{cdn/assets/B_49GiUSgx96vBvq.js → browser/esm/C8qOmdaHh4WQkzEy.mjs} +1 -1
  116. package/browser/esm/{DkuK8fY8vrl7aZpf2.mjs → CD44l4eg_lxr7kgn2.mjs} +7 -7
  117. package/browser/esm/{C1EvC_qPiGiVMrkF.mjs → CDxmuF7Iay8T4cnU.mjs} +6 -6
  118. package/browser/esm/{b49cTAZ6BWPQgfYu.mjs → CS38A8yr4eKvdDZm.mjs} +10 -10
  119. package/browser/esm/{CUMu_1tXFa0LPKGV.mjs → CSu0Md4a1JIZrirV.mjs} +262 -262
  120. package/{cdn/assets/C04uI3XsvTc6Cc7w.js → browser/esm/CU1J-I76aVm-KPP6.mjs} +1 -1
  121. package/{cdn/assets/nBZATD4yR1W5D4Fi.js → browser/esm/CVbPAnmNN3TxMkq4.mjs} +1 -1
  122. package/{cdn/assets/DjNR_ZGCbg-xia15.js → browser/esm/CXvcyGN4L9iDr1LK2.mjs} +1 -1
  123. package/browser/esm/{Dz713G5R9JayR5v1.mjs → CZN6c8yBDjLVTVpH.mjs} +2 -2
  124. package/browser/esm/{CA4eJpge9meoO0rj2.mjs → C__tNzwz0i7bQrSu2.mjs} +9 -9
  125. package/browser/esm/{CTzKk6VuZTohsOIF2.mjs → CcPFyWALYlJWf17T2.mjs} +1 -1
  126. package/browser/esm/{CwDjNuGkKnVtfJo-.mjs → CcuNkPxT6rqElgbZ2.mjs} +1 -1
  127. package/{cdn/assets/CThP3jXwDzLlUOeI2.js → browser/esm/Cjbksosgv7NZFNE0.mjs} +1 -1
  128. package/browser/esm/{DYyxB53T5uaoyInL2.mjs → CjxOVBbWLFeUZza82.mjs} +2 -2
  129. package/browser/esm/{fJ0eqh3Ja3O0z1QL.mjs → CksEMRqAqI-_nekb.mjs} +12 -12
  130. package/browser/esm/{BTNqElWtYkKW47Vg.mjs → CnB5AuoIz-49NXD_.mjs} +3 -3
  131. package/{cdn/assets/CU1_-PzBC9cDsm5t.js → browser/esm/Co06Uf-tv1IuVQhe.mjs} +1 -1
  132. package/{cdn/assets/DbVSG7Uf7YDQbmc3.js → browser/esm/CpzLNwtfx0Zd0OZ0.mjs} +1 -1
  133. package/browser/esm/{DgH-AoqKDdIWg0J8.mjs → CwRAK6IVjIYuwofE.mjs} +1 -1
  134. package/{cdn/assets/CjFOk9mcZqAngWD22.js → browser/esm/CyS1VLOdAweeZsMV.mjs} +1 -1
  135. package/browser/esm/{B2vjec5TDs2ZJ1eI2.mjs → CyomJv3_vWy4trRe2.mjs} +1 -1
  136. package/browser/esm/{f9r0yTaD2YChFtEg2.mjs → D-1WiFWkKNPWXppx2.mjs} +1 -1
  137. package/browser/esm/{kcfC6hY47HklE6Om.mjs → D16eCDM3k1_Fk-MN.mjs} +11 -11
  138. package/{cdn/assets/CULlzRLL3s2Dikjg.js → browser/esm/D3Qv3--VfvVHImXW.mjs} +1 -1
  139. package/{cdn/assets/BuyRy9BcgPYo8l8W.js → browser/esm/D5j8qMZCamJQ82pi.mjs} +388 -388
  140. package/{cdn/assets/CmSATmXaMlqwTjAe.js → browser/esm/D718rIGL3d_m1mjm2.mjs} +1 -1
  141. package/browser/esm/{txVgXcuMeWVNWHnZ.mjs → DAhlDEV6ehTRvrj72.mjs} +1 -1
  142. package/{cdn/assets/DuijhgjRhgWB9sCY2.js → browser/esm/DB_I2ygTnDxYiYyc.mjs} +35 -32
  143. package/browser/esm/{R2c8rUTz1GjCQEp-2.mjs → DGde1GUi2j-ZUPJW2.mjs} +13 -13
  144. package/browser/esm/{BBzzLAeBBFbVvgph2.mjs → DJUnZsVsvwRT_Onq2.mjs} +2 -2
  145. package/browser/esm/{BiArrlzwKsOlSm00.mjs → DLgM7RXEEfx33zms.mjs} +4 -4
  146. package/browser/esm/{0YKBRd7eLIUmcKns.mjs → DNxL1aQIN6J2PLV7.mjs} +3 -3
  147. package/browser/esm/{C3M_lKSZ_Fq1SQOn.mjs → DRRx9F2h6V-Q957j.mjs} +2 -2
  148. package/browser/esm/{D13sLQRMMKrDHepu.mjs → DZGMsbIACs9TKYrM2.mjs} +1 -1
  149. package/browser/esm/{BcHN_VMA7bLNKKMO.mjs → Dcpd3kkjvidrDQuN.mjs} +53 -53
  150. package/browser/esm/{BCQgeu38866r56Dh.mjs → DevyWm6bXV7lW2dr.mjs} +5 -5
  151. package/{cdn/assets/V-oO_EfTyth0iptZ.js → browser/esm/DfIwClWz03Qw38-O.mjs} +1 -1
  152. package/{cdn/assets/Bfq8Gdqf3I7y_Hju2.js → browser/esm/Dg7wE0RZdHeJv537.mjs} +1 -1
  153. package/browser/esm/{BEWsOD2JQ8dwQCEm2.mjs → Dj_S0P34nk_fjFoh2.mjs} +10 -10
  154. package/{cdn/assets/DYCh_5thAx4qo1ns2.js → browser/esm/DjyzSKZNfvxPmFqi.mjs} +495 -495
  155. package/browser/esm/{Cvw3poNlUmn3qAh0.mjs → DlHJ7zkV6AMCtYPP.mjs} +5 -5
  156. package/browser/esm/{DyPe20tPiPVm1PLe.mjs → DnLi57ylUOd3DUek.mjs} +6 -6
  157. package/browser/esm/{ep-IjWXOPg2b-REP2.mjs → DoAKAH3cmECZGboo2.mjs} +1 -1
  158. package/browser/esm/{XB269tVMhdRHj10G.mjs → Dok4MRpMgkcsNzp4.mjs} +122 -207
  159. package/browser/esm/{BPt7dDNLBsKrZgzO2.mjs → DpORFFFF3LUx_zsT2.mjs} +7 -7
  160. package/browser/esm/{xzoxSwyGoZdH-ysh.mjs → Ds5mE3-q83ZhE-2T.mjs} +13 -13
  161. package/browser/esm/{BVtQCzVeMOJZq64r2.mjs → Du5dlbWtpboIrJk-2.mjs} +77 -77
  162. package/browser/esm/{B0aCnXuYD0ZopZdA.mjs → DuMveAGZv1j1YAwO.mjs} +2 -2
  163. package/browser/esm/{LgoljOEffsYkpZZJ2.mjs → GETgdmj9xZWcFrIC2.mjs} +551 -551
  164. package/browser/esm/{9CP_UyAqmAHE7-mv.mjs → GJUYPKfNptRZyU9r.mjs} +7 -7
  165. package/browser/esm/{BOhfbmK18Xj1P7-i.mjs → JDCQtP0lkncrmnpC2.mjs} +1 -1
  166. package/browser/esm/{gAriGKwELet15RCY2.mjs → OsRyVy3M_rNtmU472.mjs} +7 -7
  167. package/browser/esm/{lHpMVBxqkkCYD6d12.mjs → OtaDVRqZVyi7IBBa.mjs} +1 -1
  168. package/{cdn/assets/gCeoOjDjiVaX8dtF.js → browser/esm/OyyHiDjohIf4lZX62.mjs} +1 -1
  169. package/browser/esm/{Be7--zCnU6JvLkK1.mjs → QEPUcBp4VkPz75h8.mjs} +20 -20
  170. package/browser/esm/{BVOTzF7NFvB20R7D.mjs → R0Xd51SJLUebJwYv.mjs} +2 -2
  171. package/browser/esm/{CUYBRp4sHMdGwkLT.mjs → S4MMwlNd4kcK3RDU.mjs} +1 -1
  172. package/browser/esm/{B-Zf8W3s_WXgYxhN.mjs → VaST17rbOSkMsGyn.mjs} +7 -7
  173. package/browser/esm/{DtqMTXq5u5DmS5S1.mjs → WfqSQXib2MuH663g.mjs} +2 -2
  174. package/{cdn/assets/BEYY8z4FusH7S5K-2.js → browser/esm/XuGWliVSRCNi5it12.mjs} +1 -1
  175. package/browser/esm/{DeeFxCkhXDF0p1nl.mjs → Z83G4i9Tvq4z2kCB.mjs} +2 -2
  176. package/{cdn/assets/yVLsr0rcaOFel2nS.js → browser/esm/_cZz4ZhEEr54LYNe2.mjs} +1 -1
  177. package/browser/esm/{GDYIOITizuJ9xSUf2.mjs → cDMkMgN5tB-wni7c2.mjs} +7 -7
  178. package/browser/esm/{C1doaJjkCzQlB_3u2.mjs → efVOgresgMXMdh7J2.mjs} +1 -1
  179. package/{cdn/assets/D1bACCJy4F8kANLy2.js → browser/esm/gXemYPUoPvaUd055.mjs} +1 -1
  180. package/browser/esm/index.mjs +4 -4
  181. package/browser/esm/{BA6JMESdvw_1-mFg2.mjs → kef_IwcJES4VXcNa2.mjs} +11 -11
  182. package/{cdn/assets/BdCn57ENgiC2kOsF.js → browser/esm/lfNgkSweNYs6v7g2.mjs} +2 -2
  183. package/browser/esm/{BG_hG8jUkf0aMzGK2.mjs → lfNgkSweNYs6v7g22.mjs} +2 -2
  184. package/browser/esm/{BM343UBJqjbDokO62.mjs → mbUWaIl3SJkdbWx02.mjs} +1 -1
  185. package/browser/esm/{BJJBFdJaP2dMlug92.mjs → vDg2R-517z6mPR3B2.mjs} +8 -8
  186. package/browser/esm/{D5Pa9lfPfAcCGj_N.mjs → vP8Rb-lgzeerBAx4.mjs} +1 -1
  187. package/cdn/assets/{BTB79KyzSZf-h-lm2.js → 0uSu6ChH_CTmXM2q2.js} +73 -73
  188. package/{browser/esm/DoCYcvHzw3S0MDCW.mjs → cdn/assets/5SHS088DeaZ82qmD.js} +1 -1
  189. package/cdn/assets/{DvfekR32WVFv_WrS.js → 8rILuc7bVIGEeb97.js} +101 -101
  190. package/cdn/assets/{b-o8RUlQpF1RaDgI.js → 9ra2y9Srlg_Pw7Q32.js} +146 -231
  191. package/cdn/assets/{B_sKE05xgjFFafjm.js → B-ylRvlizyArIFrd.js} +2176 -2176
  192. package/cdn/assets/{Dn8Z0WK2Hwi8MRnQ2.js → B08GCyGdLNiXtb_R2.js} +1 -1
  193. package/{browser/esm/CAVONPXgoytyiNK-.mjs → cdn/assets/B0gZ5e38MXWbEDS_.js} +1 -1
  194. package/cdn/assets/{B9hBziUoXFzKPWF02.js → B15uSTYXbbRVKP0X2.js} +6 -6
  195. package/cdn/assets/{B9oLwnLz9m-TWSPJ2.js → B1Lxf24mP-fwn03r2.js} +47 -47
  196. package/{browser/esm/B0FNPu0uhX_WW-aJ.mjs → cdn/assets/B45vVm2Ma1i2b6_F.js} +1 -1
  197. package/cdn/assets/{Bi9IWSBo7DDXROTC.js → B63SfOuKJt36aTr_.js} +2 -2
  198. package/cdn/assets/{Ifw8W-tqHjQnCWZO2.js → B69EK_yDF3V8Rq2r2.js} +42 -42
  199. package/cdn/assets/{AAHsV9V95k39t9SD.js → B72sK2NRGAke-aCk.js} +1 -1
  200. package/cdn/assets/{BB6k7f_6TCVysy8a.js → B7SJVFUHxy16UJRA.js} +3 -3
  201. package/cdn/assets/{BBaNqp1ZjuO25FQg.js → B8q1hrKv7LAL4xmM.js} +1 -1
  202. package/cdn/assets/{ByHzW_x0qXsBJMwv2.js → BAbRLjxqebqVPyto2.js} +1369 -1369
  203. package/{browser/esm/BauR0SATr44ggHRU.mjs → cdn/assets/BCOGONuWSq4hgADu.js} +485 -485
  204. package/{browser/esm/CPgOplnn6NuHwsZ_.mjs → cdn/assets/BCcbek_TFOdgqxXq2.js} +1 -1
  205. package/cdn/assets/{C6X4CmElTpPxrad6.js → BEb3QhWwGW8rErZy2.js} +1 -1
  206. package/cdn/assets/{DmQ4uKOlhrcJfgk82.js → BHpE1nCbJEbRdzIG2.js} +14 -14
  207. package/cdn/assets/{Dd80tsdITZsotoCX.js → BJVcTpMN-u5XhMVE.js} +1 -1
  208. package/cdn/assets/{CAOPlenSF-pjVfqt2.js → BLpNuslYLGia3h9t2.js} +2 -2
  209. package/cdn/assets/{Bokc-Wu4XBPWKmdt.js → BPZxx-OH0wACHLsN.js} +1 -1
  210. package/cdn/assets/{S2_pz0y2RTJFpXkS2.js → BQIRHi8T3P5MZtan2.js} +1 -1
  211. package/{browser/esm/Be2-C5U5LlfLTmyo2.mjs → cdn/assets/BQhVWbI9uag9iRfX.js} +1 -1
  212. package/cdn/assets/{B50P0gSziuG68Umu2.js → BSWXx2rKOMPxLLs82.js} +1 -1
  213. package/cdn/assets/{C3KIo0iwLXhIIMG8.js → BUeKY15yUtNX2nYg.js} +2 -2
  214. package/cdn/assets/{Bcjus_Q6f72kE1MK.js → BUjTEjAeByh6MKpn.js} +1 -1
  215. package/{browser/esm/CQBSLdAdR53c7BVh2.mjs → cdn/assets/BUokT-PbfvYzD63f.js} +1 -1
  216. package/cdn/assets/{C2JMpa_lWCs9k2ZI.js → BWbSIhQVBaXJNFgl.js} +300 -300
  217. package/cdn/assets/{Dlq2nAMNpWkqjt9Y.js → BZDRat2zTkUEg9cR.js} +8 -8
  218. package/cdn/assets/{CP0M0z_IaCwCMGNS.js → BeFqINcF0gIgBnB1.js} +7 -7
  219. package/cdn/assets/{Bqe5WbSIlCRYLcqT.js → Beyy1fJJeov2iYL4.js} +4 -4
  220. package/{browser/esm/DtQu3vHaJfA5KM2H2.mjs → cdn/assets/BgwzL8v2pmR5HJXW2.js} +1 -1
  221. package/{browser/esm/13CH9sjvoEqt6nbt2.mjs → cdn/assets/BiomOxscV1M0Uw2n.js} +1 -1
  222. package/cdn/assets/{eTXmezPFvAwM_L-D.js → BmC-_QeQ-53oyorq.js} +1 -1
  223. package/cdn/assets/{D-egzesxukW7Z_e32.js → BoWCDK44X4tp02_42.js} +1 -1
  224. package/{browser/esm/jQ5c7MGwQOZq4s5w.mjs → cdn/assets/BsY_DyFxoqjRHTv0.js} +1 -1
  225. package/{browser/esm/CnvlkxK0pS02Z3gZ.mjs → cdn/assets/Bsfof8nD-exhrNwn.js} +1 -1
  226. package/cdn/assets/{QT-5i27zeGPhkyui2.js → BsiuCRJjX2LRrDF22.js} +8 -8
  227. package/cdn/assets/{Be_TDLQucHiVwNvT.js → BuPGWNRZMMyn4fm8.js} +8 -8
  228. package/cdn/assets/{DIlrvTRlRll76TiE2.js → Bub12rk6wWVZVNx62.js} +83 -83
  229. package/cdn/assets/{QNvOHujamKYSXWWA.js → BuoHLVUSwf-mq0hg.js} +1 -1
  230. package/{browser/esm/BG_hG8jUkf0aMzGK.mjs → cdn/assets/ButSau4Lf36Oe3GD.js} +2 -2
  231. package/{browser/esm/BF842ZtkvebA1LgR.mjs → cdn/assets/BwbR2Dao5LgLYQgV2.js} +1 -1
  232. package/cdn/assets/{BaEH7HZAJkFGHtNj2.js → C-F-eIvIRbCAMD662.js} +58 -58
  233. package/cdn/assets/{B66--qmqjDI4V95v2.js → C-KWjRT0CUb-bkvj2.js} +25 -25
  234. package/{browser/esm/LfHB39-nf7mi9XC72.mjs → cdn/assets/C0HHZ3XLqp0LgRuW2.js} +1 -1
  235. package/{browser/esm/7lIMFL11BRZrMXdc2.mjs → cdn/assets/C213T1hhBphljJTF.js} +1 -1
  236. package/cdn/assets/{Bl5xLu1ou-9zMIBZ.js → C3A-yJ12PN-CPPnI.js} +1 -1
  237. package/{browser/esm/DZLyXICwEHYRnCuO.mjs → cdn/assets/C4vZWmW5DZLQTTAx.js} +231 -231
  238. package/cdn/assets/{BDZAVKSYpcOp9Dve.js → C5Oex2msskTvaCQ9.js} +1 -1
  239. package/cdn/assets/{BIab7njjwaSXjSEP.js → C5u9ds7LUh9JJEbW.js} +2 -2
  240. package/cdn/assets/{DTfDzhFtORWkuoRv2.js → C7b3GyO7FCiMLeyn2.js} +1 -1
  241. package/cdn/assets/{CUrzB9ponX7LAYXR.js → C8W7e-O1V1Mo2HOp.js} +3 -3
  242. package/{browser/esm/B_49GiUSgx96vBvq2.mjs → cdn/assets/C8qOmdaHh4WQkzEy.js} +1 -1
  243. package/cdn/assets/{C2X9NooB33IkSomz.js → CEyEKBYpjE5GGcmE.js} +8 -8
  244. package/cdn/assets/{D6Uwvg4vo1g0pWZa.js → CJoCbCtXkTbj6-nC.js} +2 -2
  245. package/cdn/assets/{BsGz_0JrhSfOZ24Q.js → CLEhV4ZVh2Jf4WLI.js} +3 -3
  246. package/{browser/esm/C04uI3XsvTc6Cc7w2.mjs → cdn/assets/CU1J-I76aVm-KPP6.js} +1 -1
  247. package/{browser/esm/nBZATD4yR1W5D4Fi.mjs → cdn/assets/CVbPAnmNN3TxMkq4.js} +1 -1
  248. package/cdn/assets/{CheDxDxt7x0CPz9P.js → CWIp4JC2SCM6lg-s.js} +7 -7
  249. package/{browser/esm/CaTmLXIsIxaOrLcZ.mjs → cdn/assets/CXKguOBpJrsoXPTQ.js} +140 -140
  250. package/cdn/assets/{Dg26zVdGlO10MX0h2.js → CXgMJ_MuMQRu0isj2.js} +25 -25
  251. package/{browser/esm/DjNR_ZGCbg-xia152.mjs → cdn/assets/CXvcyGN4L9iDr1LK.js} +1 -1
  252. package/cdn/assets/{DoBxkE57H5PfH7Or.js → CYFmWcVbnUCDPJ8m.js} +2 -2
  253. package/cdn/assets/{N5PCgig3g9yqotn9.js → C_W3L9-im26Qc-Ub.js} +2 -2
  254. package/cdn/assets/{Dz0_oXqVesISvhbJ.js → Cb7x4GW2rRvj_q2Z.js} +2 -2
  255. package/cdn/assets/{CZ3JFujrzd0iX0zL2.js → CcOMQhQN8PPKQulw2.js} +66 -66
  256. package/cdn/assets/{CTzKk6VuZTohsOIF.js → CcPFyWALYlJWf17T.js} +1 -1
  257. package/cdn/assets/{CWOPhBfYI6R0kz-p.js → CcXDdl0SsmyEFtmU.js} +8 -8
  258. package/cdn/assets/{CwDjNuGkKnVtfJo-2.js → CcuNkPxT6rqElgbZ.js} +1 -1
  259. package/cdn/assets/{CA9oxppuFcYDyylE.js → CdDTtABobc5txUF6.js} +12 -12
  260. package/cdn/assets/{588lLflWQypQVzce.js → CdTHBpWoW1Fu4Dg_.js} +5 -5
  261. package/cdn/assets/{CUTnOs5iWyc3J2cN2.js → Cdm7E0sw56lpdqRU2.js} +11 -11
  262. package/cdn/assets/{erwt6xEgCY7lDQWp.js → Cf-bndowUtxZ6tmG.js} +3 -3
  263. package/cdn/assets/{DmRqcUu6qCPcOxgW.js → CiTCEuoCSDCy9khR.js} +2 -2
  264. package/{browser/esm/CThP3jXwDzLlUOeI.mjs → cdn/assets/Cjbksosgv7NZFNE02.js} +1 -1
  265. package/cdn/assets/{CCTYceFrydwG3Vyt2.js → CmRLwDXiK3woZrVI.js} +6995 -6995
  266. package/{browser/esm/CU1_-PzBC9cDsm5t2.mjs → cdn/assets/Co06Uf-tv1IuVQhe.js} +1 -1
  267. package/cdn/assets/{CzEHYpK2SYTRpxDm2.js → Cpkl0peJbfEXl6ta2.js} +20 -20
  268. package/{browser/esm/DbVSG7Uf7YDQbmc32.mjs → cdn/assets/CpzLNwtfx0Zd0OZ02.js} +1 -1
  269. package/{browser/esm/B2nEJHcip8raAhdc.mjs → cdn/assets/CukMw9Sc4iO21aRQ2.js} +703 -703
  270. package/cdn/assets/{I2Cn0c2NkX845WIx.js → CwGEi_5ErUTrkWRj.js} +6 -6
  271. package/cdn/assets/{DgH-AoqKDdIWg0J8.js → CwRAK6IVjIYuwofE2.js} +1 -1
  272. package/cdn/assets/{CPjsJ0CY-AurDJgm2.js → Cx1HsOCOdZoKJDEN2.js} +12 -12
  273. package/cdn/assets/{BPOi08RtEmQdlbtS2.js → Cy6Cst4s2vE_WWKK2.js} +10 -10
  274. package/{browser/esm/CjFOk9mcZqAngWD2.mjs → cdn/assets/CyS1VLOdAweeZsMV2.js} +1 -1
  275. package/cdn/assets/{B2vjec5TDs2ZJ1eI.js → CyomJv3_vWy4trRe.js} +1 -1
  276. package/cdn/assets/{f9r0yTaD2YChFtEg.js → D-1WiFWkKNPWXppx.js} +1 -1
  277. package/{browser/esm/CULlzRLL3s2Dikjg.mjs → cdn/assets/D3Qv3--VfvVHImXW.js} +1 -1
  278. package/cdn/assets/{VEJV_bhNDNNyZAIA2.js → D6B6VvRh1cfT2e-M2.js} +8 -8
  279. package/{browser/esm/CmSATmXaMlqwTjAe2.mjs → cdn/assets/D718rIGL3d_m1mjm.js} +1 -1
  280. package/cdn/assets/{B_UEqzmXZIhHAEyS.js → D7WMzCfJnKIfTbdg.js} +8 -8
  281. package/cdn/assets/{_gPnIgVx33slqynA.js → D8sc6gCXnfpn7W79.js} +2 -2
  282. package/cdn/assets/{DJBTmv-rddT91Z-N2.js → DA4QV7VUyNUEfx1k2.js} +23 -23
  283. package/cdn/assets/{txVgXcuMeWVNWHnZ.js → DAhlDEV6ehTRvrj7.js} +1 -1
  284. package/cdn/assets/{BSixIKI7PxSqiUGB2.js → DBKHpCvbeQU-Y4eS2.js} +5 -5
  285. package/{browser/esm/DuijhgjRhgWB9sCY.mjs → cdn/assets/DB_I2ygTnDxYiYyc2.js} +35 -32
  286. package/cdn/assets/{BNm-ZCOBoBRceGXA2.js → DKwpjlUd2pFOI9yp2.js} +37 -37
  287. package/cdn/assets/{UNtnFd2ssTtnrqRp.js → DW3_Jr-4VdZZqNEg.js} +56 -56
  288. package/cdn/assets/{D13sLQRMMKrDHepu2.js → DZGMsbIACs9TKYrM.js} +1 -1
  289. package/{browser/esm/V-oO_EfTyth0iptZ2.mjs → cdn/assets/DfIwClWz03Qw38-O2.js} +1 -1
  290. package/{browser/esm/Bfq8Gdqf3I7y_Hju.mjs → cdn/assets/Dg7wE0RZdHeJv5372.js} +1 -1
  291. package/cdn/assets/{ep-IjWXOPg2b-REP2.js → DoAKAH3cmECZGboo2.js} +1 -1
  292. package/cdn/assets/{BsHFBjNwTzc_CKLq2.js → FAaqx6EbN4JxNuNL2.js} +13612 -13643
  293. package/cdn/assets/{BWtyERLPrUmI8Qbi2.js → FHIg3Yb5Rn05W1F22.js} +16 -16
  294. package/cdn/assets/{XFQGB8ADW__0ZBoF2.js → FbLFNYdTqRtQ7QiS.js} +3 -3
  295. package/cdn/assets/{BOhfbmK18Xj1P7-i2.js → JDCQtP0lkncrmnpC.js} +1 -1
  296. package/cdn/assets/{DPN0a43QHMUmHgo5.js → KOiR-1SNAX7AiEes.js} +3 -3
  297. package/cdn/assets/{BKouftCLbhExXXXU.js → KS5XJUWdKvEezJfs2.js} +6 -6
  298. package/cdn/assets/{CBQrIDBtf5Ibwi96.js → OTQWLENoZ1cSiDQb2.js} +2 -2
  299. package/cdn/assets/{lHpMVBxqkkCYD6d1.js → OtaDVRqZVyi7IBBa2.js} +1 -1
  300. package/{browser/esm/gCeoOjDjiVaX8dtF2.mjs → cdn/assets/OyyHiDjohIf4lZX6.js} +1 -1
  301. package/cdn/assets/{CqI09iUEId8rHfJ9.js → PLFw1pLjdLQLrlB0.js} +6 -6
  302. package/cdn/assets/S4MMwlNd4kcK3RDU.js +24 -0
  303. package/cdn/assets/S4MMwlNd4kcK3RDU2.js +24 -0
  304. package/{browser/esm/BEYY8z4FusH7S5K-.mjs → cdn/assets/XuGWliVSRCNi5it1.js} +1 -1
  305. package/{browser/esm/yVLsr0rcaOFel2nS2.mjs → cdn/assets/_cZz4ZhEEr54LYNe.js} +1 -1
  306. package/cdn/assets/{COk-0FZl3cv__3yY2.js → bQ6G23JQrt4l2Ls92.js} +9 -9
  307. package/cdn/assets/{C1doaJjkCzQlB_3u.js → efVOgresgMXMdh7J.js} +1 -1
  308. package/{browser/esm/D1bACCJy4F8kANLy.mjs → cdn/assets/gXemYPUoPvaUd055.js} +1 -1
  309. package/cdn/assets/{gJT4n5za0DqWXFK12.js → hHkEq7qn0rj2XKD82.js} +14 -14
  310. package/cdn/assets/{DI4QTfUQPCjSn0kl.js → hqW1sMr576y2S1qX.js} +7 -7
  311. package/cdn/assets/{CDijenaMI_dBIGU-.js → mI8tvfP8ed2Zerre.js} +171 -171
  312. package/cdn/assets/{BM343UBJqjbDokO6.js → mbUWaIl3SJkdbWx0.js} +1 -1
  313. package/cdn/assets/{BT3KOuPzJsNUvy4B.js → n_NkstgVVwl2iAnp.js} +2 -2
  314. package/cdn/assets/{f1iQWnLWVpKZ34XR2.js → ryzcqI-93l1HBuTe2.js} +8 -8
  315. package/cdn/assets/{D5Pa9lfPfAcCGj_N2.js → vP8Rb-lgzeerBAx42.js} +1 -1
  316. package/cdn/assets/{2QsTDWiE6SMelbNU2.js → w65zHFqjAp_NlbXg2.js} +7 -7
  317. package/cdn/index.js +2 -2
  318. package/package.json +3 -3
  319. package/browser/cjs/B3WkiDqFBfA_xxJL2.cjs +0 -1
  320. package/browser/cjs/BF8ZxFWyAAnbe4mz.cjs +0 -5
  321. package/browser/cjs/BLAG3kDSthU0SH-E.cjs +0 -2
  322. package/browser/cjs/Bqup1MCJFqTZbLDd2.cjs +0 -1
  323. package/browser/cjs/Bsl_clm06l5cwpML.cjs +0 -32
  324. package/browser/cjs/Co31kjvOPAAYbeF-.cjs +0 -1
  325. package/browser/cjs/CqPb6CbrHTRnbSKa2.cjs +0 -8
  326. package/browser/cjs/DP1pufP3NJFoDa-g.cjs +0 -3
  327. package/browser/cjs/DU2HMmI1EeHBTvuG.cjs +0 -1
  328. package/browser/cjs/DWzkpizTIJkaqf4J2.cjs +0 -1
  329. package/browser/cjs/DZBKNR9xUMTHWS_D.cjs +0 -1
  330. package/browser/cjs/DtlC63s51_88j6AY2.cjs +0 -1
  331. package/cdn/assets/C6X4CmElTpPxrad62.js +0 -24
  332. package/cdn/assets/CUYBRp4sHMdGwkLT2.js +0 -24
  333. /package/browser/cjs/{1XrWGMP3GmsQOMIX2.cjs → 1XrWGMP3GmsQOMIX.cjs} +0 -0
  334. /package/browser/cjs/{4nReftSsKWmnRdtf2.cjs → 4nReftSsKWmnRdtf.cjs} +0 -0
  335. /package/browser/cjs/{B6vy56yEA1I3B74O2.cjs → B6vy56yEA1I3B74O.cjs} +0 -0
  336. /package/browser/cjs/{BAxVLKkxFgI6cXnR.cjs → BAxVLKkxFgI6cXnR2.cjs} +0 -0
  337. /package/browser/cjs/{BWDfauDHqB6U_2ka.cjs → BWDfauDHqB6U_2ka2.cjs} +0 -0
  338. /package/browser/cjs/{C0g87ndP2zMUbX6f.cjs → C0g87ndP2zMUbX6f2.cjs} +0 -0
  339. /package/browser/cjs/{C2uDl8VIJqh58YF_.cjs → C2uDl8VIJqh58YF_2.cjs} +0 -0
  340. /package/browser/cjs/{C4cZxb9nRtzTCA40.cjs → C4cZxb9nRtzTCA402.cjs} +0 -0
  341. /package/browser/cjs/{C9q3zr8iCIoYDrdA.cjs → C9q3zr8iCIoYDrdA2.cjs} +0 -0
  342. /package/browser/cjs/{CVHc_cJddJk7J3Zt2.cjs → CVHc_cJddJk7J3Zt.cjs} +0 -0
  343. /package/browser/cjs/{CfXcRa4RlFmqU0Op2.cjs → CfXcRa4RlFmqU0Op.cjs} +0 -0
  344. /package/browser/cjs/{D8-KovdJ0LjxqCe2.cjs → D8-KovdJ0LjxqCe22.cjs} +0 -0
  345. /package/browser/cjs/{DF4l8xrxkcLkgExp2.cjs → DF4l8xrxkcLkgExp.cjs} +0 -0
  346. /package/browser/cjs/{DG2kqsWRUtVugjay.cjs → DG2kqsWRUtVugjay2.cjs} +0 -0
  347. /package/browser/cjs/{DNKyaSruDogoBd2H2.cjs → DNKyaSruDogoBd2H.cjs} +0 -0
  348. /package/browser/cjs/{DSXLVieENYN9qXYl2.cjs → DSXLVieENYN9qXYl.cjs} +0 -0
  349. /package/browser/cjs/{Dtxj9JR14A-uliu5.cjs → Dtxj9JR14A-uliu52.cjs} +0 -0
  350. /package/browser/cjs/{PmwvZPFhqmL4DO582.cjs → PmwvZPFhqmL4DO58.cjs} +0 -0
@@ -1,2 +0,0 @@
1
- const e=require("./DLtFM988NCD-jeBV.cjs"),t=require("./BPWKnUtyoTrtW567.cjs"),n=require("./CH7BUjrXIKDIE7XE.cjs"),r=require("./DP1pufP3NJFoDa-g.cjs"),i=require("./CHMgm0vAbEBS1mVW.cjs"),a=require("./TZQc-szdIVnHDH6F.cjs"),o=require("./DZBKNR9xUMTHWS_D.cjs");var s=new Uint8Array,c=class e{constructor(e,t,n){this.buffers=new Map,this.zip=e,this.entries=t,this.rawBuffer=n}static normalize(e){return e.startsWith(`/`)?e.slice(1):e}static async create(t){let n=t instanceof Blob?s:t instanceof Uint8Array?t:new Uint8Array(t),r=new a.o(t instanceof Blob?new a.E(t):new a.k(n)),i=new Map;for(let e of await r.getEntries())e.directory||i.set(e.filename,e);return new e(r,i,n)}getNames(){return[...this.entries.keys()]}has(t){return this.entries.has(e.normalize(t))}uncompressedSize(t){return this.entries.get(e.normalize(t))?.uncompressedSize??0}async getBuffer(t){let n=e.normalize(t),r=this.buffers.get(n);if(r)return r;let i=this.entries.get(n);if(!i)return null;let o=await i.getData(new a.M);return this.buffers.set(n,o),o}async prefetch(e){let t=[];for(let[n,r]of this.entries)!this.buffers.has(n)&&e(n,r)&&t.push(r.getData(new a.M).then(e=>{this.buffers.set(n,e)}));await Promise.all(t)}getEntry(t){return this.buffers.get(e.normalize(t))??null}async getTextStream(t,n){let r=this.entries.get(e.normalize(t));if(!r)return null;let i=new TransformStream;r.getData(i.writable).catch(()=>{});let a=i.readable.getReader(),o=new TextDecoder(`utf-8`);return new ReadableStream({async pull(e){let{value:t,done:r}=await a.read();if(r){let t=o.decode();t&&e.enqueue(t),e.close();return}n?.(t.byteLength);let i=o.decode(t,{stream:!0});i&&e.enqueue(i)}}).getReader()}getRawEntry(t){let n=this.entries.get(e.normalize(t));if(!n||n.encrypted)return null;let r=n.offset;if(r+30>this.rawBuffer.byteLength)return null;let i=new DataView(this.rawBuffer.buffer,this.rawBuffer.byteOffset+r,30);if(i.getUint32(0,!0)!==67324752)return null;let a=r+30+i.getUint16(26,!0)+i.getUint16(28,!0),o=a+n.compressedSize;return o>this.rawBuffer.byteLength?null:{data:this.rawBuffer.subarray(a,o),compressionMethod:n.compressionMethod,signature:n.signature}}async close(){await this.zip.close()}},l=class{constructor(e){this._sink=e,this._samples=[],this._t0=u(),this._tPrev=this._t0,this._heapPrev=d()}mark(e){let t=u(),n=d(),r={label:e,tMs:t-this._t0,dtMs:t-this._tPrev,heapBytes:n,dHeapBytes:n!==void 0&&this._heapPrev!==void 0?n-this._heapPrev:void 0,rssBytes:f()};this._tPrev=t,this._heapPrev=n,this._samples.push(r),this._sink?.(r)}samples(){return this._samples}toTable(){return this._samples.map(e=>({phase:e.label,tMs:Math.round(e.tMs),dtMs:Math.round(e.dtMs),heapMB:e.heapBytes===void 0?`—`:p(e.heapBytes/1048576),dHeapMB:e.dHeapBytes===void 0?`—`:p(e.dHeapBytes/1048576),rssMB:e.rssBytes===void 0?`—`:p(e.rssBytes/1048576)}))}},u=typeof performance==`object`&&typeof performance.now==`function`?()=>performance.now():()=>Date.now();function d(){let e=typeof performance==`object`?performance.memory:void 0;if(e&&typeof e.usedJSHeapSize==`number`)return e.usedJSHeapSize;let t=globalThis.process;return typeof t==`object`&&typeof t.memoryUsage==`function`?t.memoryUsage().heapUsed:void 0}function f(){let e=globalThis.process;if(typeof e==`object`&&typeof e.memoryUsage==`function`)return e.memoryUsage().rss}function p(e){return Math.round(10*e)/10}var m=`:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,h=`-${m}.0-9·̀-ͯ‿-⁀`,g=(RegExp(`^[${m}]$`,`u`),RegExp(`^[${h}]$`,`u`),RegExp(`^[${m}][${h}]*$`,`u`)),_=(RegExp(`^[${h}]+$`,`u`),[32,10,13,9]);function v(e){return e>=65&&e<=90||e>=97&&e<=122||e===58||e===95||e===8204||e===8205||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}var y=`:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,b=`-${y}.0-9·̀-ͯ‿-⁀`;RegExp(`^[${y}]$`,`u`),RegExp(`^[${b}]$`,`u`),RegExp(`^[${y}][${b}]*$`,`u`),RegExp(`^[${b}]+$`,`u`);var x=`A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,S=`-${x}.0-9·̀-ͯ‿-⁀`,ee=(RegExp(`^[${x}]$`,`u`),RegExp(`^[${S}]$`,`u`),RegExp(`^[${x}][${S}]*$`,`u`));function C(e){return e>=65&&e<=90||e===95||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}var w,T=function(e){return e===32||e===10||e===13||e===9},te=function(e){return e>=32&&e<=55295||e===10||e===13||e===9||e>=57344&&e<=65533||e>=65536&&e<=1114111},E=v,D=function(e){return v(e)||e>=48&&e<=57||e===45||e===46||e===183||e>=768&&e<=879||e>=8255&&e<=8256},ne=_,O=g,k=function(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},A=C,j=function(e){return C(e)||e===45||e===46||e>=48&&e<=57||e===183||e>=768&&e<=879||e>=8255&&e<=8256},M=ee,re=`http://www.w3.org/XML/1998/namespace`,N=`http://www.w3.org/2000/xmlns/`,P={__proto__:null,xml:re,xmlns:N},F={__proto__:null,amp:`&`,gt:`>`,lt:`<`,quot:`"`,apos:`'`},I=-1,L=-2,R=13,z=33,B=10,V=60,H=61,U=62,W=63,ie=93,G=e=>e===34||e===39,ae=[34,39],oe=[...ae,91,U],se=[...ae,V,ie],ce=[H,W,...ne],le=[...ne,U,38,V];function ue(e,t,n){switch(t){case`xml`:n!==re&&e.fail(`xml prefix must be bound to ${re}.`);break;case`xmlns`:n!==N&&e.fail(`xmlns prefix must be bound to ${N}.`)}switch(n){case N:e.fail(t===``?`the default namespace may not be set to ${n}.`:`may not assign a prefix (even "xmlns") to the URI ${N}.`);break;case re:switch(t){case`xml`:break;case``:e.fail(`the default namespace may not be set to ${n}.`);break;default:e.fail(`may not assign the xml namespace to another prefix.`)}}}var de,fe=e=>M.test(e),pe=e=>O.test(e),me={xmldecl:`xmlDeclHandler`,text:`textHandler`,processinginstruction:`piHandler`,doctype:`doctypeHandler`,comment:`commentHandler`,opentagstart:`openTagStartHandler`,attribute:`attributeHandler`,opentag:`openTagHandler`,closetag:`closeTagHandler`,cdata:`cdataHandler`,error:`errorHandler`,end:`endHandler`,ready:`readyHandler`},he=class{get closed(){return this._closed}constructor(e){this.i=0,this.prevI=0,this.opt=e??{},this.fragmentOpt=!!this.opt.fragment;let t=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,t){this.nameStartCheck=A,this.nameCheck=j,this.isName=fe,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...P};let e=this.opt.additionalNamespaces;e!=null&&(function(e,t){for(let n of Object.keys(t))ue(e,n,t[n])}(this,e),Object.assign(this.ns,e))}else this.nameStartCheck=E,this.nameCheck=D,this.isName=pe,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}_init(){this.openWakaBang=``,this.text=``,this.name=``,this.piTarget=``,this.entity=``,this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk=``,this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];let{fragmentOpt:e}=this;this.state=e?R:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=e,this.xmlDeclPossible=!e,this.xmlDeclExpects=[`version`],this.entityReturnState=void 0;let{defaultXMLVersion:t}=this.opt;if(t===void 0){if(!0===this.opt.forceXMLVersion)throw Error(`forceXMLVersion set but defaultXMLVersion is not set`);t=`1.0`}this.setXMLVersion(t),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(F),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,t){this[me[e]]=t}off(e){this[me[e]]=void 0}makeError(e){let t=this.fileName??``;return this.trackPosition&&(t.length>0&&(t+=`:`),t+=`${this.line}:${this.column}`),t.length>0&&(t+=`: `),Error(t+e)}fail(e){let t=this.makeError(e),n=this.errorHandler;if(n===void 0)throw t;return n(t),this}write(e){if(this.closed)return this.fail(`cannot write after close.`);let t=!1;e===null?(t=!0,e=``):typeof e==`object`&&(e=e.toString()),this.carriedFromPrevious!==void 0&&(e=`${this.carriedFromPrevious}${e}`,this.carriedFromPrevious=void 0);let n=e.length,r=e.charCodeAt(n-1);!t&&(r===13||r>=55296&&r<=56319)&&(this.carriedFromPrevious=e[n-1],n--,e=e.slice(0,n));let{stateTable:i}=this;for(this.chunk=e,this.i=0;this.i<n;)i[this.state].call(this);return this.chunkPosition+=n,t?this.end():this}close(){return this.write(null)}getCode10(){let e=this.chunk,t=this.i;if(this.prevI=t,this.i++,t>=e.length)return I;let n=e.charCodeAt(t);if(this.column++,n<55296){if(n>=32||n===9)return n;switch(n){case B:return this.line++,this.column=0,this.positionAtNewLine=this.position,B;case 13:return e.charCodeAt(t+1)===B&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,L;default:return this.fail(`disallowed character.`),n}}if(n>56319)return n>=57344&&n<=65533||this.fail(`disallowed character.`),n;let r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail(`disallowed character.`),r}getCode11(){let{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return I;let n=e.charCodeAt(t);if(this.column++,n<55296){if(n>31&&n<127||n>159&&n!==8232||n===9)return n;switch(n){case B:return this.line++,this.column=0,this.positionAtNewLine=this.position,B;case 13:{let n=e.charCodeAt(t+1);n!==B&&n!==133||(this.i=t+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,L;default:return this.fail(`disallowed character.`),n}}if(n>56319)return n>=57344&&n<=65533||this.fail(`disallowed character.`),n;let r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail(`disallowed character.`),r}getCodeNorm(){let e=this.getCode();return e===L?B:e}unGet(){this.i=this.prevI,this.column--}captureTo(e){let{i:t}=this,{chunk:n}=this;for(;;){let r=this.getCode(),i=r===L,a=i?B:r;if(a===I||e.includes(a))return this.text+=n.slice(t,this.prevI),a;i&&(this.text+=`${n.slice(t,this.prevI)}\n`,t=this.i)}}captureToChar(e){let{i:t}=this,{chunk:n}=this;for(;;){let r=this.getCode();switch(r){case L:this.text+=`${n.slice(t,this.prevI)}\n`,t=this.i,r=B;break;case I:return this.text+=n.slice(t),!1}if(r===e)return this.text+=n.slice(t,this.prevI),!0}}captureNameChars(){let{chunk:e,i:t}=this;for(;;){let n=this.getCode();if(n===I)return this.name+=e.slice(t),I;if(!D(n))return this.name+=e.slice(t,this.prevI),n===L?B:n}}skipSpaces(){for(;;){let e=this.getCodeNorm();if(e===I||!T(e))return e}}setXMLVersion(e){this.currentXMLVersion=e,e===`1.0`?(this.isChar=te,this.getCode=this.getCode10):(this.isChar=k,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){let e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case V:if(this.state=15,this.text.length!==0)throw Error(`no-empty text at start`);break;case I:break;default:this.unGet(),this.state=R,this.xmlDeclPossible=!1}}sDoctype(){let e=this.captureTo(oe);switch(e){case U:this.doctypeHandler?.(this.text),this.text=``,this.state=R,this.doctype=!0;break;case I:break;default:this.text+=String.fromCodePoint(e),e===91?this.state=4:G(e)&&(this.state=3,this.q=e)}}sDoctypeQuote(){let e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=2)}sDTD(){let e=this.captureTo(se);e!==I&&(this.text+=String.fromCodePoint(e),e===ie?this.state=2:e===V?this.state=6:G(e)&&(this.state=5,this.q=e))}sDTDQuoted(){let e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=4,this.q=null)}sDTDOpenWaka(){let e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case 33:this.state=7,this.openWakaBang=``;break;case W:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){let e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,t!==`-`&&(this.state=t===`--`?8:4,this.openWakaBang=``)}sDTDComment(){this.captureToChar(45)&&(this.text+=`-`,this.state=9)}sDTDCommentEnding(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=e===45?10:8}sDTDCommentEnded(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===U?this.state=4:(this.fail(`malformed comment.`),this.state=8)}sDTDPI(){this.captureToChar(W)&&(this.text+=`?`,this.state=12)}sDTDPIEnding(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===U&&(this.state=4)}sText(){this.tags.length===0?this.handleTextOutsideRoot():this.handleTextInRoot()}sEntity(){let{i:e}=this,{chunk:t}=this;t:for(;;)switch(this.getCode()){case L:this.entity+=`${t.slice(e,this.prevI)}\n`,e=this.i;break;case 59:{let n,{entityReturnState:r}=this,i=this.entity+t.slice(e,this.prevI);this.state=r,i===``?(this.fail(`empty entity name.`),n=`&;`):(n=this.parseEntity(i),this.entity=``),r===R&&this.textHandler===void 0||(this.text+=n);break t}case I:this.entity+=t.slice(e);break t}}sOpenWaka(){let e=this.getCode();if(E(e))this.state=34,this.unGet(),this.xmlDeclPossible=!1;else switch(e){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang=``,this.xmlDeclPossible=!1;break;case W:this.state=23;break;default:this.fail(`disallowed character in tag name`),this.state=R,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case`[CDATA[`:this.sawRoot||this.reportedTextBeforeRoot||(this.fail(`text data outside of root node.`),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail(`text data outside of root node.`),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang=``;break;case`--`:this.state=17,this.openWakaBang=``;break;case`DOCTYPE`:this.state=2,(this.doctype||this.sawRoot)&&this.fail(`inappropriately located doctype declaration.`),this.openWakaBang=``;break;default:this.openWakaBang.length>=7&&this.fail(`incorrect syntax.`)}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){let e=this.getCodeNorm();e===45?(this.state=19,this.commentHandler?.(this.text),this.text=``):(this.text+=`-${String.fromCodePoint(e)}`,this.state=17)}sCommentEnded(){let e=this.getCodeNorm();e===U?this.state=R:(this.fail(`malformed comment.`),this.text+=`--${String.fromCodePoint(e)}`,this.state=17)}sCData(){this.captureToChar(ie)&&(this.state=21)}sCDataEnding(){let e=this.getCodeNorm();e===ie?this.state=22:(this.text+=`]${String.fromCodePoint(e)}`,this.state=20)}sCDataEnding2(){let e=this.getCodeNorm();switch(e){case U:this.cdataHandler?.(this.text),this.text=``,this.state=R;break;case ie:this.text+=`]`;break;default:this.text+=`]]${String.fromCodePoint(e)}`,this.state=20}}sPIFirstChar(){let e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=24):e===W||T(e)?(this.fail(`processing instruction without a target.`),this.state=e===W?26:25):(this.fail(`disallowed character in processing instruction name.`),this.piTarget+=String.fromCodePoint(e),this.state=24)}sPIRest(){let{chunk:e,i:t}=this;for(;;){let n=this.getCodeNorm();if(n===I)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(n)){this.piTarget+=e.slice(t,this.prevI);let r=n===W;r||T(n)?this.piTarget===`xml`?(this.xmlDeclPossible||this.fail(`an XML declaration must be at the start of the document.`),this.state=r?z:27):this.state=r?26:25:(this.fail(`disallowed character in processing instruction name.`),this.piTarget+=String.fromCodePoint(n));break}}}sPIBody(){if(this.text.length===0){let e=this.getCodeNorm();e===W?this.state=26:T(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(W)&&(this.state=26)}sPIEnding(){let e=this.getCodeNorm();if(e===U){let{piTarget:e}=this;e.toLowerCase()===`xml`&&this.fail(`the XML declaration must appear at the start of the document.`),this.piHandler?.({target:e,body:this.text}),this.piTarget=this.text=``,this.state=R}else e===W?this.text+=`?`:(this.text+=`?${String.fromCodePoint(e)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){let e=this.skipSpaces();e===W?this.state=z:e!==I&&(this.state=28,this.name=String.fromCodePoint(e))}sXMLDeclName(){let e=this.captureTo(ce);if(e===W)return this.state=z,this.name+=this.text,this.text=``,void this.fail(`XML declaration is incomplete.`);if(T(e)||e===H){if(this.name+=this.text,this.text=``,!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail(`did not expect any more name/value pairs.`);break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(`, `)}`)}this.state=e===H?30:29}}sXMLDeclEq(){let e=this.getCodeNorm();if(e===W)return this.state=z,void this.fail(`XML declaration is incomplete.`);T(e)||(e!==H&&this.fail(`value required.`),this.state=30)}sXMLDeclValueStart(){let e=this.getCodeNorm();if(e===W)return this.state=z,void this.fail(`XML declaration is incomplete.`);T(e)||(G(e)?this.q=e:(this.fail(`value must be quoted.`),this.q=32),this.state=31)}sXMLDeclValue(){let e=this.captureTo([this.q,W]);if(e===W)return this.state=z,this.text=``,void this.fail(`XML declaration is incomplete.`);if(e===I)return;let t=this.text;switch(this.text=``,this.name){case`version`:{this.xmlDeclExpects=[`encoding`,`standalone`];let e=t;this.xmlDecl.version=e,/^1\.[0-9]+$/.test(e)?this.opt.forceXMLVersion||this.setXMLVersion(e):this.fail(`version number must match /^1\\.[0-9]+$/.`);break}case`encoding`:/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)||this.fail(`encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/.`),this.xmlDeclExpects=[`standalone`],this.xmlDecl.encoding=t;break;case`standalone`:t!==`yes`&&t!==`no`&&this.fail(`standalone value must match "yes" or "no".`),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name=``,this.state=32}sXMLDeclSeparator(){let e=this.getCodeNorm();e===W?this.state=z:(T(e)||(this.fail(`whitespace required.`),this.unGet()),this.state=27)}sXMLDeclEnding(){this.getCodeNorm()===U?(this.piTarget===`xml`?this.name!==`version`&&this.xmlDeclExpects.includes(`version`)&&this.fail(`XML declaration must contain a version.`):this.fail(`processing instructions are not allowed before root.`),this.xmlDeclHandler?.(this.xmlDecl),this.name=``,this.piTarget=this.text=``,this.state=R):this.fail(`The character ? is disallowed anywhere in XML declarations.`),this.xmlDeclPossible=!1}sOpenTag(){let e=this.captureNameChars();if(e===I)return;let t=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name=``,this.xmlnsOpt&&(this.topNS=t.ns=Object.create(null)),this.openTagStartHandler?.(t),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail(`documents may contain only one root.`),e){case U:this.openTag();break;case 47:this.state=35;break;default:T(e)||this.fail(`disallowed character in tag name.`),this.state=36}}sOpenTagSlash(){this.getCode()===U?this.openSelfClosingTag():(this.fail(`forward-slash in opening tag not followed by >.`),this.state=36)}sAttrib(){let e=this.skipSpaces();e!==I&&(E(e)?(this.unGet(),this.state=37):e===U?this.openTag():e===47?this.state=35:this.fail(`disallowed character in attribute name.`))}sAttribName(){let e=this.captureNameChars();e===H?this.state=39:T(e)?this.state=38:e===U?(this.fail(`attribute without value.`),this.pushAttrib(this.name,this.name),this.name=this.text=``,this.openTag()):e!==I&&this.fail(`disallowed character in attribute name.`)}sAttribNameSawWhite(){let e=this.skipSpaces();switch(e){case I:return;case H:this.state=39;break;default:this.fail(`attribute without value.`),this.text=``,this.name=``,e===U?this.openTag():E(e)?(this.unGet(),this.state=37):(this.fail(`disallowed character in attribute name.`),this.state=36)}}sAttribValue(){let e=this.getCodeNorm();G(e)?(this.q=e,this.state=40):T(e)||(this.fail(`unquoted attribute value.`),this.state=42,this.unGet())}sAttribValueQuoted(){let{q:e,chunk:t}=this,{i:n}=this;for(;;)switch(this.getCode()){case e:this.pushAttrib(this.name,this.text+t.slice(n,this.prevI)),this.name=this.text=``,this.q=null,this.state=41;return;case 38:this.text+=t.slice(n,this.prevI),this.state=14,this.entityReturnState=40;return;case B:case L:case 9:this.text+=`${t.slice(n,this.prevI)} `,n=this.i;break;case V:this.text+=t.slice(n,this.prevI),this.fail(`disallowed character.`);return;case I:this.text+=t.slice(n);return}}sAttribValueClosed(){let e=this.getCodeNorm();T(e)?this.state=36:e===U?this.openTag():e===47?this.state=35:E(e)?(this.fail(`no whitespace between attributes.`),this.unGet(),this.state=37):this.fail(`disallowed character in attribute name.`)}sAttribValueUnquoted(){let e=this.captureTo(le);switch(e){case 38:this.state=14,this.entityReturnState=42;break;case V:this.fail(`disallowed character.`);break;case I:break;default:this.text.includes(`]]>`)&&this.fail(`the string "]]>" is disallowed in char data.`),this.pushAttrib(this.name,this.text),this.name=this.text=``,e===U?this.openTag():this.state=36}}sCloseTag(){let e=this.captureNameChars();e===U?this.closeTag():T(e)?this.state=44:e!==I&&this.fail(`disallowed character in closing tag.`)}sCloseTagSawWhite(){switch(this.skipSpaces()){case U:this.closeTag();break;case I:break;default:this.fail(`disallowed character in closing tag.`)}}handleTextInRoot(){let{i:e,forbiddenState:t}=this,{chunk:n,textHandler:r}=this;t:for(;;)switch(this.getCode()){case V:if(this.state=15,r!==void 0){let{text:t}=this,i=n.slice(e,this.prevI);t.length===0?i.length!==0&&r(i):(r(t+i),this.text=``)}t=0;break t;case 38:this.state=14,this.entityReturnState=R,r!==void 0&&(this.text+=n.slice(e,this.prevI)),t=0;break t;case ie:switch(t){case 0:t=1;break;case 1:t=2;break;case 2:break;default:throw Error(`impossible state`)}break;case U:t===2&&this.fail(`the string "]]>" is disallowed in char data.`),t=0;break;case L:r!==void 0&&(this.text+=`${n.slice(e,this.prevI)}\n`),e=this.i,t=0;break;case I:r!==void 0&&(this.text+=n.slice(e));break t;default:t=0}this.forbiddenState=t}handleTextOutsideRoot(){let{i:e}=this,{chunk:t,textHandler:n}=this,r=!1;t:for(;;){let i=this.getCode();switch(i){case V:if(this.state=15,n!==void 0){let{text:r}=this,i=t.slice(e,this.prevI);r.length===0?i.length!==0&&n(i):(n(r+i),this.text=``)}break t;case 38:this.state=14,this.entityReturnState=R,n!==void 0&&(this.text+=t.slice(e,this.prevI)),r=!0;break t;case L:n!==void 0&&(this.text+=`${t.slice(e,this.prevI)}\n`),e=this.i;break;case I:n!==void 0&&(this.text+=t.slice(e));break t;default:T(i)||(r=!0)}}r&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail(`text data outside of root node.`),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail(`text data outside of root node.`),this.reportedTextAfterRoot=!0))}pushAttribNS(e,t){let{prefix:n,local:r}=this.qName(e),i={name:e,prefix:n,local:r,value:t};if(this.attribList.push(i),this.attributeHandler?.(i),n===`xmlns`){let e=t.trim();this.currentXMLVersion===`1.0`&&e===``&&this.fail(`invalid attempt to undefine prefix in XML 1.0`),this.topNS[r]=e,ue(this,r,e)}else if(e===`xmlns`){let e=t.trim();this.topNS[``]=e,ue(this,``,e)}}pushAttribPlain(e,t){let n={name:e,value:t};this.attribList.push(n),this.attributeHandler?.(n)}end(){this.sawRoot||this.fail(`document must contain a root element.`);let{tags:e}=this;for(;e.length>0;){let t=e.pop();this.fail(`unclosed tag: ${t.name}`)}this.state!==0&&this.state!==R&&this.fail(`unexpected end.`);let{text:t}=this;return t.length!==0&&(this.textHandler?.(t),this.text=``),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(e){let t=this.topNS[e];if(t!==void 0)return t;let{tags:n}=this;for(let r=n.length-1;r>=0;r--)if(t=n[r].ns[e],t!==void 0)return t;return t=this.ns[e],t===void 0?this.opt.resolvePrefix?.(e):t}qName(e){let t=e.indexOf(`:`);if(t===-1)return{prefix:``,local:e};let n=e.slice(t+1),r=e.slice(0,t);return(r===``||n===``||n.includes(`:`))&&this.fail(`malformed name: ${e}.`),{prefix:r,local:n}}processAttribsNS(){let{attribList:e}=this,t=this.tag;{let{prefix:e,local:n}=this.qName(t.name);t.prefix=e,t.local=n;let r=t.uri=this.resolve(e)??``;e!==``&&(e===`xmlns`&&this.fail(`tags may not have "xmlns" as prefix.`),r===``&&(this.fail(`unbound namespace prefix: ${JSON.stringify(e)}.`),t.uri=e))}if(e.length===0)return;let{attributes:n}=t,r=new Set;for(let t of e){let e,i,{name:a,prefix:o,local:s}=t;o===``?(e=a===`xmlns`?N:``,i=a):(e=this.resolve(o),e===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(o)}.`),e=o),i=`{${e}}${s}`),r.has(i)&&this.fail(`duplicate attribute: ${i}.`),r.add(i),t.uri=e,n[a]=t}this.attribList=[]}processAttribsPlain(){let{attribList:e}=this,t=this.tag.attributes;for(let{name:n,value:r}of e)t[n]!==void 0&&this.fail(`duplicate attribute: ${n}.`),t[n]=r;this.attribList=[]}openTag(){this.processAttribs();let{tags:e}=this,t=this.tag;t.isSelfClosing=!1,this.openTagHandler?.(t),e.push(t),this.state=R,this.name=``}openSelfClosingTag(){this.processAttribs();let{tags:e}=this,t=this.tag;t.isSelfClosing=!0,this.openTagHandler?.(t),this.closeTagHandler?.(t),(this.tag=e[e.length-1]??null)===null&&(this.closedRoot=!0),this.state=R,this.name=``}closeTag(){let{tags:e,name:t}=this;if(this.state=R,this.name=``,t===``)return this.fail(`weird empty close tag.`),void(this.text+=`</>`);let n=this.closeTagHandler,r=e.length;for(;r-->0;){let r=this.tag=e.pop();if(this.topNS=r.ns,n?.(r),r.name===t)break;this.fail(`unexpected close tag: ${t}.`)}r===0?this.closedRoot=!0:r<0&&(this.fail(`unmatched closing tag: ${t}.`),this.text+=`</${t}>`)}parseEntity(e){if(e[0]!==`#`){let t=this.ENTITIES[e];return t===void 0?(this.fail(this.isName(e)?`undefined entity.`:`disallowed character in entity name.`),`&${e};`):t}let t=NaN;return e[1]===`x`&&/^#x[0-9a-f]+$/i.test(e)?t=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(t=parseInt(e.slice(1),10)),this.isChar(t)?String.fromCodePoint(t):(this.fail(`malformed character entity.`),`&${e};`)}},ge=/&(#x[0-9a-fA-F]+|#[0-9]+|amp|lt|gt|quot|apos);/g,_e={amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`},ve=(e,t)=>{let n=_e[t];if(n!==void 0)return n;let r=t.charCodeAt(1)===120?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return r>0&&r<=1114111?String.fromCodePoint(r):e},K=e=>{let t=e;return t.indexOf(`\r`)!==-1&&(t=t.replace(/\r\n?/g,`
2
- `)),t.indexOf(`&`)!==-1&&(t=t.replace(ge,ve)),t},ye=e=>{let t=e,n=t.length;for(let e=0;e<n;e++){let n=t.charCodeAt(e);if(n===9||n===10||n===13){t=t.replace(/\r\n|[\t\n\r]/g,` `);break}}return t.indexOf(`&`)!==-1&&(t=t.replace(ge,ve)),t},q=e=>e===32||e===9||e===10||e===13,be=class e{constructor(){this._openTagHandler=void 0,this._closeTagHandler=void 0,this._textHandler=void 0,this._cdataHandler=void 0,this._errorHandler=void 0,this._endHandler=void 0,this._scanners=null,this._carry=``,this._text=``,this._tags=[],this._sawRoot=!1,this._closed=!1}static{this.NEED_MORE=-1}static{this.NOT_HANDLED=-2}static decodeText(e){return K(e)}on(e,t){switch(e){case`opentag`:this._openTagHandler=t;break;case`closetag`:this._closeTagHandler=t;break;case`text`:this._textHandler=t;break;case`cdata`:this._cdataHandler=t;break;case`error`:this._errorHandler=t;break;case`end`:this._endHandler=t}}setElementScanners(e){if(!e||e.length===0)return void(this._scanners=null);let t=Array(128);for(let n of e){let e=n.name.charCodeAt(0);if(!(e<128)||t[e]!==void 0)throw Error(`Element scanner '${n.name}' needs an ASCII first character no other scanner uses.`);t[e]=n}this._scanners=t}fail(e){let t=Error(e),n=this._errorHandler;if(n===void 0)throw t;n(t)}write(e){if(this._closed)return this.fail(`cannot write after close.`),this;let t=e;this._carry.length!==0&&(t=this._carry+e,this._carry=``);let n=t.length,r=0;for(;r<n;){let e=t.indexOf(`<`,r);if(e===-1)return this._text+=t.slice(r),this;e>r&&(this._text+=t.slice(r,e));let i=this._markup(t,e,n);if(i===-1)return this._carry=t.slice(e),this;r=i}return this}close(){this._carry.length!==0&&(this.fail(`unexpected end.`),this._carry=``),this._sawRoot||this.fail(`document must contain a root element.`);let e=this._tags;for(;e.length>0;){let t=e.pop();this.fail(`unclosed tag: ${t.name}`)}return this._flushText(),this._closed=!0,this._endHandler?.(),this}_flushText(){let e=this._text;if(e.length===0)return;this._text=``;let t=this._textHandler;t!==void 0&&this._tags.length!==0&&t(K(e))}_markup(t,n,r){if(n+1>=r)return-1;let i=t.charCodeAt(n+1);if(i===47){let e=t.indexOf(`>`,n+2);return e===-1?-1:(this._flushText(),this._closeTag(t.slice(n+2,e).trimEnd()),e+1)}if(i===63){let e=t.indexOf(`?>`,n+2);return e===-1?-1:e+2}if(i===33){if(n+4>r)return-1;if(t.charCodeAt(n+2)===45&&t.charCodeAt(n+3)===45){let e=t.indexOf(`-->`,n+4);return e===-1?-1:e+3}if(n+9>r)return-1;if(t.startsWith(`[CDATA[`,n+2)){let e=t.indexOf(`]]>`,n+9);return e===-1?-1:(this._flushText(),this._cdataHandler?.(t.slice(n+9,e)),e+3)}let e=t.indexOf(`[`,n+2),i=t.indexOf(`>`,n+2);if(i===-1)return-1;if(e!==-1&&e<i){let n=t.indexOf(`]>`,e);return n===-1?-1:n+2}return i+1}let a=this._scanners;if(a!==null){let o=i<128?a[i]:void 0;if(o!==void 0&&t.startsWith(o.name,n+1)){let i=n+1+o.name.length;if(i>=r)return-1;let a=t.charCodeAt(i);if(a===62||a===47||q(a)){this._flushText();let i=o.scan(t,n,r);if(i!==e.NOT_HANDLED){if(i!==e.NEED_MORE){this._sawRoot=!0;let e=o.openTag;e!==void 0&&this._tags.push(e)}return i}}}}return this._openTag(t,n,r)}_openTag(e,t,n){let r=t+1,i=0;for(;r<n&&(i=e.charCodeAt(r),i!==62&&i!==47&&!q(i));)r++;if(r>=n)return-1;let a=e.slice(t+1,r),o={},s=!1;for(;;){for(;r<n&&q(i=e.charCodeAt(r));)r++;if(r>=n)return-1;if(i===62){r++;break}if(i===47){if(r+1>=n)return-1;if(e.charCodeAt(r+1)!==62){this.fail(`forward-slash in opening tag not followed by >.`),r++;continue}s=!0,r+=2;break}let t=r;for(;r<n&&(i=e.charCodeAt(r),i!==61&&i!==62&&i!==47&&!q(i));)r++;if(r>=n)return-1;let a=e.slice(t,r);for(;r<n&&q(i=e.charCodeAt(r));)r++;if(r>=n)return-1;if(i!==61){this.fail(`attribute without value.`);continue}for(r++;r<n&&q(i=e.charCodeAt(r));)r++;if(r>=n)return-1;if(i!==34&&i!==39){this.fail(`unquoted attribute value.`);continue}let c=e.indexOf(i===34?`"`:`'`,r+1);if(c===-1)return-1;a!==`__proto__`&&(o[a]=ye(e.slice(r+1,c))),r=c+1}this._flushText(),this._sawRoot=!0;let c={name:a,attributes:o,isSelfClosing:s};return this._openTagHandler?.(c),s?this._closeTagHandler?.(c):this._tags.push(c),r}_closeTag(e){if(e===``)return void this.fail(`weird empty close tag.`);let t=this._tags,n=this._closeTagHandler,r=t.length;for(;r-->0;){let r=t.pop();if(n?.(r),r.name===e)return;this.fail(`unexpected close tag: ${e}.`)}this.fail(`unmatched closing tag: ${e}.`)}};(de=w||={}).Events={XmlDecl:`xmldecl`,Text:`text`,ProcessingInstruction:`processinginstruction`,Doctype:`doctype`,Comment:`comment`,OpenTagStart:`opentagstart`,Attribute:`attribute`,OpenTag:`opentag`,CloseTag:`closetag`,CDdata:`cdata`,Error:`error`,End:`end`,Ready:`ready`},de.parseStream=async(e,t,n)=>{if(n?.lean)return(async(e,t)=>{let n,r=new be;t.elementScanners&&r.setElementScanners(t.elementScanners),t.onOpenTag&&r.on(`opentag`,t.onOpenTag),t.onCloseTag&&r.on(`closetag`,t.onCloseTag),t.onText&&r.on(`text`,t.onText),t.onError&&r.on(`error`,t.onError);let i=t.onEnd;for(i&&r.on(`end`,()=>{n=i()});;){let{value:t,done:n}=await e.read();if(n)break;r.write(t)}return r.close(),n})(e,t);let r,i=new he({position:!1,...n});t.onOpenTagStart&&i.on(w.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&i.on(w.Events.OpenTag,t.onOpenTag),t.onCloseTag&&i.on(w.Events.CloseTag,t.onCloseTag),t.onAttribute&&i.on(w.Events.Attribute,t.onAttribute),t.onText&&i.on(w.Events.Text,t.onText),t.onError&&i.on(w.Events.Error,t.onError);let a=t.onEnd;for(a&&i.on(w.Events.End,()=>{r=a()});;){let{value:t,done:n}=await e.read();if(n)break;i.write(t)}return i.close(),r};var J=e=>!0===e||e===`1`||e===`on`||e===`true`||!1!==e&&e!==`0`&&e!==`off`&&e!==`false`&&null,Y=e=>{let t=parseInt(e);return isNaN(t)?null:t},X=e=>{let t=parseFloat(e);return isNaN(t)?null:t},Z=null,xe=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),Q=e=>xe(e).replace(/"/g,`&quot;`),Se=class{constructor(){this._registeredVisitors=new Map}registerVisitor(e){this._registeredVisitors.set(e.from,e)}createEventHandler(e,t,n){let r=this._registeredVisitors,i=[],a=[],o=null,s=null,c=null,l=null,u=[],d={key:null,source:e,parent:null},f=null,p=!1,m=null,h=null,g=null,_=(e,t)=>{let n=c.attributes[e];if(t){if(Array.isArray(t)){let e=t.length;for(let r=0;r<e;r++)if(n==null||(n=t[r](n),n==null))return}else if(n==null||(n=t(n),n==null))return}return n},v={getSource:()=>f?.source??null,setSource:e=>{f.source=e},setKey:e=>{f.key=e},getFrom:()=>c,getAttribute:(e,t)=>_(e,t)??null,hasAttribute:e=>v.getAttribute(e)!==null,getParent:()=>{let e=u[u.length-2];return e.parent??e.source},getPath:()=>{let e=[],t=a.length;for(let n=0;n<t;n++)e.push(a[n].local);return e.join(`\\`)},parseAttribute:_,getRawXml:()=>g,copyToObject:(e,t,n,r)=>{let i=_(r??t,n);i!==void 0&&(e[t]=i)},copyTo:(e,t,n)=>{let r=_(n??e,t);r!==void 0&&(f.source[e]=r)},warn:(e,t)=>{n?n(e,void 0,t?.onceKey):console.warn(e)}};return{onOpenTag:e=>{let t=e.name,n=t.indexOf(`:`);if(n!==-1&&(t=t.slice(n+1)),m)return m.push((e=>{let t=e.attributes??{},n=`<${e.name}`;for(let e in t){let r=t[e];n+=` ${e}="${Q(typeof r==`string`?r:r?.value??``)}"`}return n+`>`})(e)),o={local:t,tag:e,destination:null},a.push(o),s=t,void(c=e);let g=(i.length>0?i[i.length-1]:r).get(t);if(o={local:t,visitor:g,tag:e,destination:null},p)return a.push(o),s=t,void(c=e);l=o?.visitor??null,s=t,c=e;let _=!!g&&g.to===null;if(g&&!_&&g.scope){let e=g.scope(v);e===null?_=!0:e&&(i.push(e),o.pushedScope=!0)}g&&(a.length===0?(f=d,o.destination=f,o.pushedDestination=!0,u.push(f)):_?(f=null,o.destination=null):g.transparent?o.destination=f:(f={key:null,source:{},parent:null},o.destination=f,o.pushedDestination=!0,u.push(f))),a.push(o),p=_;let y=l?.openTag?.(v);y!==void 0&&(f.parent=y),g?.raw&&!_&&(m=[],h=o)},onCloseTag:e=>{let t=e.name,r=t.indexOf(`:`);if(r!==-1&&(t=t.slice(r+1)),t!==s)throw Error(`mismatch open/close tag: '${t}'/'${s}'`);let _=!1;if(m){if(a[a.length-1]!==h)return m.push(`</${e.name}>`),a.pop(),o=a[a.length-1]??null,s=o?.local??null,void(c=o?.tag??null);g=m.join(``),m=null,h=null,_=!0}p||l?.closeTag?.(v),_&&(g=null);let y=a.pop()??null;o=a[a.length-1]??null,y?.pushedScope&&i.pop();let b=y?.destination;if(b&&y.pushedDestination){u.pop(),f=u[u.length-1]??d;let e=y.visitor;e&&e.to&&b.source!==void 0&&(Array.isArray(e.to)?f.source.push?f.source.push(b.source):n?.(`Unable to parse array for ${e.from} at ${v.getPath()}`):b.key?f.source[b.key]=b.source:typeof e.to==`string`&&(f.source[e.to]=b.source))}else b||(f=u[u.length-1]??d);s=o?.local??null,c=o?.tag??null,l=o?.visitor??null,p=!o?.destination},onText:e=>{m?m.push(xe(e)):l?.text?.(e,v)},onEnd:t}}},Ce=`IFERROR(${a.it}(`,$=Ce.toUpperCase(),we=a.ot.toUpperCase(),Te={kind:`none`},Ee={kind:`spilled`},De=(e,t)=>{if(e.charCodeAt(t)!==34)return null;let n=``,r=t+1;for(;r<e.length;)if(e.charCodeAt(r)===34){if(e.charCodeAt(r+1)!==34)return{value:n,end:r+1};n+=`"`,r+=2}else n+=e[r],r++;return null},Oe=e=>{let t=[],n=0;for(;n<e.length;){let r=e.charCodeAt(n);if(r===34){let t=De(e,n);if(t===null)break;n=t.end;continue}if(!(r>=65&&r<=90||r>=97&&r<=122||r===95)){n++;continue}let i=n+1;for(;i<e.length;){let t=e.charCodeAt(i);if(!(t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===95||t===46))break;i++}e.charCodeAt(i)===40&&t.push(e.slice(n,i).toUpperCase().replace(/^_XLFN\./,``).replace(/^_XLWS\./,``)),n=i}return t},ke=e=>{let t=t=>{if(e)return RegExp(`<(?:[\\w.-]+:)?${t}\\b[^>]*>([^<]*)<`).exec(e)?.[1]},n=e=>{let t=parseInt(e??``,10);return isNaN(t)?0:t};return{c:n(t(`col`)),r:n(t(`row`)),x:o.h(t(`colOff`)??`0`)??0,y:o.h(t(`rowOff`)??`0`)??0}},Ae=`formulaDialect`,je=class{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}},Me=(e,t,n)=>{if(e[0].value[0]===e[1].value[0])return t},Ne={colStart:0,colEnd:0,rowStart:0,rowEnd:0},Pe=(r,i,a,o,s,c,l)=>{let u=!1,d=!1,f=[],p=!1,m=null,h=null,g=null,_=null,v=null,y=null,b=l?.get(`richData`)??e.R.EmptyArray,x=l?.get(`dummyWrapped`)??null,S=n.nt.normalizeA1ToR1C1,ee=e.f.createConflatingRanges(),C=new Map,w=[],T=!1,te=!1,E=null,D=!1,ne=e.f.createConflatingRanges(),O=!1,k=-1,A=-1,j=null,M=null,re=null,N=[],P=null,F=-2,I=0,L=``,R=``,z=``,B=``,V=``,H=``,U=``,W=``,ie=``,G=``,ae=``,oe=``,se=``,ce=``,le=!0,ue=null,de=!1,fe=!1,pe=!1,me=null,he=0,ge=e=>{let r=e.name,o=r.indexOf(`:`);if(o!==-1&&(r=r.slice(o+1)),he++,he%196608==0&&s?.(he),M){let t=e.attributes;switch(r){case`v`:d=!0;break;case`f`:switch(p=!0,t.t??null){case null:case`normal`:break;case`shared`:let e=t.si;h=t.ref,m=e;break;case`array`:h=t.ref,E=h;break;case`datatable`:h=t.ref,p=!0}let e=t.ca;e!==void 0&&(D=e===`1`);break;case`is`:O=!0;return}O&&!p&&c?.onOpenTag?.(e);return}if(u){if(r===`c`){M=e;let r=e.attributes,i=r.r;A=n.nt.fastStringToCol(i);let a=r.t;a===void 0?re=null:(re=a,re===`str`&&(O=!0));let o=r.s;o===void 0&&(me!==null||pe)&&(o=`0`),o!==void 0&&(o=parseInt(o),ue&&ue.value===o&&ue.colEnd+1===A?ue.colEnd=A:(ue={colStart:A,rowStart:k,colEnd:A,rowEnd:k,value:o},f.push(ue))),E=null,te=!1;let s=r.cm;T=s!==void 0&&(e=>{let t=l?.get(`metadata`)?.cells;if(!t)return!1;let n=parseInt(e,10);return!(!Number.isFinite(n)||n<1)&&!0===t[n-1]?.get(`XLDAPR`)?.fDynamic})(s);let c=r.vm;if(c!==void 0){let e=b[parseInt(c)-1];if(t.i.isError(e)){let n=e.getCode();j={t:`e`,v:n},T&&n===t.i.Code.Spill&&(te=!0)}}}}else{if(fe&&r===`row`){u=!0;let t=e.attributes.r;if(k=parseInt(t)-1,I=0,R=e.attributes.customHeight,R!==void 0&&(I|=je.CustomHeight),R!==ie&&(le=!0,ie=R),L=e.attributes.ht,L!==void 0&&(I|=je.Ht),L!==W&&(le=!0,W=L),z=e.attributes.hidden,z!==void 0&&(I|=je.Hidden),z!==G&&(le=!0,G=z),V=e.attributes.s,V!==void 0&&(I|=je.S),V!==oe&&(le=!0,oe=V),B=e.attributes.customFormat,B!==void 0&&(I|=je.CustomFormat),B!==ae&&(le=!0,ae=B),H=e.attributes.outlineLevel,H!==void 0&&(I|=je.OutlineLevel),H!==se&&(le=!0,se=H),U=e.attributes.collapsed,U!==void 0&&(I|=je.Collapsed),U!==ce&&(le=!0,ce=U),I!==0)if(F+1!==k||le){let e=R!==void 0&&(R===`1`||R===`true`),t=B!==void 0&&(B===`1`||B===`true`);me=t&&V!==void 0?V:null,t&&me===null&&(me=`0`),P={min:k,max:k,value:{sz:L===void 0?-1:parseFloat(L),csz:e,h:z!==void 0&&(z===`1`||z===`true`),s:me===null?void 0:me===`0`?0:parseInt(me),l:H===void 0||H===`0`?0:parseInt(H),cl:U!==void 0&&(U===`1`||U===`true`)}},N.push(P)}else P.max=k;F=k,le=!1;return}if(r===`sheetData`&&(fe=!0),!de&&r===`sheetData`){de=!0;let e=i.cols,t=e?e.length:0;for(let n=0;!pe&&n<t;n++)e[n].v.s&&(pe=!0)}a?.onOpenTag?.(e)}},_e=e=>{let t=e.name;if(t===`sheetData`&&(fe=!1),!p||t!==`c`&&t!==`f`||(m&&(_=C.get(m)??null),_&&(ee.append(k,A,_),D&&ne.append(k,A)),E!==null&&w.push([E,T?te?`error`:`dynamic`:`fixed`]),p=!1,_=null,m=null,h=null,d=!1,D=!1,E=null,T=!1,te=!1),M){let n=t.indexOf(`:`);if(n!==-1&&(t=t.slice(n+1)),O)if(t===`is`||t===`v`){let e=c?.onEnd?.();e!=null&&r.pushAt(k,A,``+e)}else t!==`f`&&c?.onCloseTag?.(e);d&&=!1,t===`c`&&(M=null,O=!1);return}if(u)return u=!1,void(ue=null);a?.onCloseTag?.(e)},ve=e=>{let s=e.trim();if(d){switch(j=null,re){case null:case`n`:j=parseFloat(s);break;case`b`:j=s===`1`||s===`true`;break;case`s`:j=s;break;case`e`:if(s===`#VALUE!`){let e=M.attributes.vm;if(e!==void 0){let n=b[parseInt(e)-1];if(t.i.isError(n)){j={t:`e`,v:n.getCode()};break}}}let e=t.i.getBuiltInByLabel(s);e?j={t:`e`,v:e.getCode()}:(j=s,o?.(`Unknown formula error '${s}' in cell ${n.nt.cellToString({colIndex:A,rowIndex:k})}`));break;case`str`:case`inlineStr`:O=!0}j!==null&&r.pushAt(k,A,j)}if(m){if(v===m)_=y;else{if(_=C.get(m)??null,!_){let e=[];g=S(s,k,A,e),_=[g,e,s],C.set(m,_)}v=m,y=_}m=null}if(p){if(x!==null){let e=(e=>{if(e.length<Ce.length||e.slice(0,Ce.length).toUpperCase()!==$)return Te;let t=De(e,Ce.length);if(t===null||e.charCodeAt(t.end)!==41||e.charCodeAt(t.end+1)!==44||e.charCodeAt(e.length-1)!==41)return Te;let n=t.value;return n.toUpperCase()===we?Ee:n.length===0?Te:{kind:`formula`,formula:n}})(s);e.kind!==`none`&&x.push({sheet:i,rowIndex:k,colIndex:A,formula:e.kind===`formula`?e.formula:null})}let e=[];g=S(s,k,A,e),_=[g,e,s]}O?c?.onText?.(e):u||a?.onText?.(s)},K={r:void 0,t:void 0,s:void 0,cm:void 0,vm:void 0},ye={name:`c`,attributes:K,isSelfClosing:!1},q={t:void 0,si:void 0,ref:void 0,ca:void 0},J={name:`f`,attributes:q,isSelfClosing:!1},Y={name:`v`,attributes:{},isSelfClosing:!1},X={r:void 0,s:void 0,ht:void 0,hidden:void 0,collapsed:void 0,customHeight:void 0,customFormat:void 0,outlineLevel:void 0},Z={name:`row`,attributes:X,isSelfClosing:!1},xe=be.NEED_MORE,Q=be.NOT_HANDLED,Se=be.decodeText,Oe=!1,ke=(e,t,n,r)=>{for(;;){let i=0;for(;t<n&&((i=e.charCodeAt(t))===32||i===9||i===10||i===13);)t++;if(t>=n)return xe;if(i===62)return Oe=!1,t+1;if(i===47)return t+1>=n?xe:e.charCodeAt(t+1)===62?(Oe=!0,t+2):Q;let a=t;for(;t<n&&(i=e.charCodeAt(t))!==61;){if(i===62||i===47||i===32||i===9||i===10||i===13)return Q;t++}if(t+1>=n)return xe;let o=t-a,s=e.charCodeAt(t+1);if(s!==34&&s!==39)return Q;let c=t+2,l=c;for(;l<n&&(i=e.charCodeAt(l))!==s;){if(i===38||i<32)return Q;l++}if(l>=n)return xe;t=l+1;let u=e.charCodeAt(a);if(r===2)switch(o){case 1:u===114?X.r=e.slice(c,l):u===115&&(X.s=e.slice(c,l));break;case 2:e.startsWith(`ht`,a)&&(X.ht=e.slice(c,l));break;case 6:e.startsWith(`hidden`,a)&&(X.hidden=e.slice(c,l));break;case 9:e.startsWith(`collapsed`,a)&&(X.collapsed=e.slice(c,l));break;case 12:e.startsWith(`customHeight`,a)?X.customHeight=e.slice(c,l):e.startsWith(`customFormat`,a)?X.customFormat=e.slice(c,l):e.startsWith(`outlineLevel`,a)&&(X.outlineLevel=e.slice(c,l))}else if(r===0)o===1?u===114?K.r=e.slice(c,l):u===116?K.t=e.slice(c,l):u===115&&(K.s=e.slice(c,l)):o===2&&e.charCodeAt(a+1)===109&&(u===99?K.cm=e.slice(c,l):u===118&&(K.vm=e.slice(c,l)));else if(o===1)u===116&&(q.t=e.slice(c,l));else if(o===2){let t=e.charCodeAt(a+1);u===115&&t===105?q.si=e.slice(c,l):u===99&&t===97&&(q.ca=e.slice(c,l))}else o===3&&e.startsWith(`ref`,a)&&(q.ref=e.slice(c,l))}},Ae=(e,t,n)=>e.charCodeAt(t+1)===47&&e.charCodeAt(t+2)===n&&e.charCodeAt(t+3)===62;return{...a,onEnd:()=>{N.length>0&&(i.rows=n.nt.runsToRefs(N,!1));let o=ee.done(Me),s=o.length;if(s>0){let e=Array(s);for(let t=0;t<s;t++){let r=o[t],i=n.nt.rangeToString(r),a=r.value[1];e[t]=[i,n.nt.resolveRelativeToA1(a,r.rowStart,r.colStart)]}i.formulas=e}let c=ne.done(!0),l=c.length;if(l>0){let e=Array(l);for(let t=0;t<l;t++){let r=c[t];e[t]=n.nt.rangeToString(r)}i.volatile=e}w.length>0&&(i.formulaArray=[...w]);let u=f.length;if(u>0){f.sort(e.f.createRangeComparator(t.l.Axis.Column));let r=f[0],a=r.colStart,o=r.colEnd,s=r.rowEnd,c=r.value,l=[];l.push(r);let d=null;for(let e=1;e<u;e++)d=f[e],c!==d.value||a!==d.colStart||o!==d.colEnd||s+1!==d.rowEnd?(l.push(d),r=d,a=r.colStart,o=r.colEnd,s=r.rowEnd,c=r.value):(s=d.rowEnd,r.rowEnd=s);let p=l.length,m=Array(p);for(let e=0;e<p;e++){let t=l[e];m[e]=[n.nt.rangeToString(t),t.value]}i.directStyles=m}let d=r.build();d&&(i.data=d.tuples),a?.onEnd?.()},onOpenTag:ge,onCloseTag:_e,onText:ve,elementScanners:[{name:`c`,scan:(e,t,n)=>{if(!u||M!==null)return Q;K.r=K.t=K.s=K.cm=K.vm=void 0;let r=ke(e,t+2,n,0);if(r<0)return r;let i=K.t;if(K.r===void 0||i===`str`||i===`inlineStr`)return Q;let a=!1,o=-1,s=-1,c=-1,l=-1,d=r;if(!Oe)for(q.t=q.si=q.ref=q.ca=void 0;;){let t=e.indexOf(`<`,r);if(t===-1||t+3>=n)return xe;for(let n=r;n<t;n++){let t=e.charCodeAt(n);if(t!==32&&t!==9&&t!==10&&t!==13)return Q}let i=e.charCodeAt(t+1),u=e.charCodeAt(t+2);if(i===47){if(!Ae(e,t,99))return Q;d=t+4;break}if(i===102&&!a&&c===-1&&(u===32||u===62||u===47)){if(a=!0,r=ke(e,t+2,n,1),r<0)return r;if(Oe)continue;let i=e.indexOf(`<`,r);if(i===-1||i+3>=n)return xe;if(!Ae(e,i,102))return Q;o=r,s=i,r=i+4;continue}if(i===118&&u===62&&c===-1){let i=e.indexOf(`<`,t+3);if(i===-1||i+3>=n)return xe;if(!Ae(e,i,118))return Q;c=t+3,l=i,r=i+4;continue}return Q}return ge(ye),a&&(ge(J),s>o&&ve(Se(e.slice(o,s))),_e(J)),c!==-1&&(ge(Y),l>c&&ve(Se(e.slice(c,l))),_e(Y)),_e(ye),d}},{name:`row`,openTag:Z,scan:(e,t,n)=>{if(!fe||u||M!==null)return Q;X.r=X.s=X.ht=X.hidden=X.collapsed=X.customHeight=X.customFormat=X.outlineLevel=void 0;let r=ke(e,t+4,n,2);return r<0?r:Oe||X.r===void 0?Q:(ge(Z),r)}}]}},Fe=e=>{let t=e.indexOf(`:`);return t===-1?e:e.slice(t+1)},Ie={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":`workbooks`,"application/vnd.ms-excel.sheet.macroEnabled.main+xml":`workbooks`,"application/vnd.ms-excel.sheet.binary.macroEnabled.main":`workbooks`,"application/vnd.ms-excel.addin.macroEnabled.main+xml":`workbooks`,"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":`workbooks`,"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":`sheets`,"application/vnd.ms-excel.worksheet":`sheets`,"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":`charts`,"application/vnd.ms-excel.chartsheet":`charts`,"application/vnd.ms-excel.macrosheet+xml":`macros`,"application/vnd.ms-excel.macrosheet":`macros`,"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":`dialogs`,"application/vnd.ms-excel.dialogsheet":`dialogs`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":`strs`,"application/vnd.ms-excel.sharedStrings":`strs`,"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":`styles`,"application/vnd.ms-excel.styles":`styles`,"application/vnd.openxmlformats-package.core-properties+xml":`coreprops`,"application/vnd.openxmlformats-officedocument.custom-properties+xml":`custprops`,"application/vnd.openxmlformats-officedocument.extended-properties+xml":`extprops`,"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":`comments`,"application/vnd.ms-excel.comments":`comments`,"application/vnd.ms-excel.threadedcomments+xml":`threadedcomments`,"application/vnd.ms-excel.person+xml":`people`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":`metadata`,"application/vnd.ms-excel.sheetMetadata":`metadata`,"application/vnd.ms-excel.externalLink":`links`,"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":`links`,"application/vnd.openxmlformats-officedocument.theme+xml":`themes`},Le=e=>e.startsWith(`/`)?e.slice(1):e,Re=/^xl\/(worksheets|chartsheets)\/[^/]+\.xml$/i,ze=e=>typeof e==`string`?e:(e?.runs??[]).map(e=>e.text??``).join(``);exports.readXLSX=async(t,s)=>{let{password:u,onVBA:d,profile:f,calcOnLoad:p=`auto`,createWorkbookOptions:m={},...h}=s??{},g=!!m.origin&&typeof m.origin!=`string`,_=f?new l(typeof f==`function`?f:void 0):null,v=[],y=(e,t,n)=>{v.push([e,t??``,n])},b={onWarning:y},x=s?.progress,S=x?.onProgress?x.onProgress.bind(x):void 0,ee=t.byteLength,C=0,T=0,te=S?e=>{if(C<=0)return;T+=e;let t=Math.min(ee,Math.round(T/C*ee));S(t,ee)}:void 0,E=Promise.resolve().then(()=>require("./Co31kjvOPAAYbeF-.cjs")),D=null;try{D=new DOMParser}catch{}let ne=null;try{ne=new XMLSerializer}catch{}let O,k,A,j=null;D||(j=Promise.resolve().then(()=>require("./DLYEQZzAGuSAmJsp.cjs")).then(e=>i.t(e.default,1)));try{let[e,t]=await Promise.all([j,E]);O=new t.DOMTransformer,k=D??new e.DOMParser,A=ne??new e.XMLSerializer}catch(e){throw Error(`Unable to load XLSX parser.`,{cause:e})}let M,re=e=>A.serializeToString(e);try{M=await c.create(t)}catch(t){throw new e.y(`Unable to parse as an Excel document. Try to save as '.xlsx' and try again.`,{cause:t})}_?.mark(`zip-open`);try{if(!M.has(`[Content_Types].xml`))throw new e.y(`Unable to parse as an Excel document. Try to save as '.xlsx' and try again.`);let t=e=>{let t=M.getEntry(e);return t?{content:t}:void 0},i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],metadata:[],people:[],overrides:{},sst:``,style:``,defaults:{}};{let e=(e=>({onOpenTag:t=>{let n=(e=>{let t=e.indexOf(`:`);return t===-1?e:e.slice(t+1)})(t.name),r=t.attributes;if(n===`Override`){let t=r.ContentType,n=r.PartName;if(!t||!n)return;e.overrides[n.startsWith(`/`)?n.slice(1):n]=t;let i=Ie[t],a=i?e[i]:void 0;Array.isArray(a)&&a.push(n)}else if(n===`Default`){let t=r.Extension,n=r.ContentType;t&&(e.defaults[t.toLowerCase()]=n)}},onEnd:()=>{e.sst=e.strs.length>0?e.strs[0]:``,e.style=e.styles.length>0?e.styles[0]:``},onError:e=>{(e=>{v.push([e,`[Content_Types].xml`])})(`Error parsing content types: ${e?.message??e}`)}}))(i),t=await M.getTextStream(`[Content_Types].xml`);if(!t)throw Error(`Error parsing content types: '[Content_Types].xml'`);try{await w.parseStream(t,e,{xmlns:!1})}catch(e){throw Error(`Error parsing content types: '[Content_Types].xml'`,{cause:e})}g&&await M.getBuffer(`[Content_Types].xml`)}_?.mark(`content-types`);let s=i.sst,c=new Set;for(let e of i.sheets)c.add(Le(e));s&&c.add(Le(s));for(let e of c)C+=M.uncompressedSize(e);if(await M.prefetch(e=>!c.has(e)&&!Re.test(e)),_?.mark(`prefetch-side-parts`),i.workbooks.length===0){let e=o.s(`_rels/.rels`,t,k,O,b);if(e){for(let t of e.values())if(t.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument`&&t.target){i.workbooks.push(t.target);break}}}if(i.workbooks.length===0)throw new e.y(`Unable to parse as an Excel document. Try to save as '.xlsx' and try again.`);i.richstructure=[`/xl/richData/rdrichvaluestructure.xml`],i.richdata=[`/xl/richData/rdrichvalue.xml`];let l=m?.resources??new n.j,u=l.beginPersist(),h={},T=new Set,E=new Map;E.set(`richTypes`,[]),E.set(`parseInlineDxf`,e=>{if(!e)return;let t=k.parseFromString(`<dxf xmlns:x14="${a.Z}" xmlns:xm="${a.T}">${e}</dxf>`,`text/xml`)?.documentElement;if(!t)return;let n=O.parseDxf(t,``,b);return Object.keys(n).length>0?n:void 0});let D=[];E.set(`dummyWrapped`,D);let ne=o.d(`metadata`,i,t,k,O,b).entries().next()?.value?.[1]?.metadata;ne&&E.set(`metadata`,ne),E.set(Ae,a.R());let A=new Map,j=[],N=new Set,P=e=>{N.add(Le(e))},F=(e,n=A)=>{let r=e.lastIndexOf(`/`),i=e.substring(0,r+1)+`_rels/`+e.substring(r+1,e.length)+`.rels`,a=n.get(i);return a||(a=o.s(i,t,k,O,G),n.set(i,a)),a},I=(e,r,i,s=A)=>{let c=F(r,s).get(e),d=c?.target;if(!d)return null;if(c.targetMode===`External`){if(!i)return c.target;let e=l.add({source:{external:c.target}});return e.addReference(h),T.add(e),u.toResourceId(e)}let f=r.lastIndexOf(`/`),p=r.substring(0,f+1);d.startsWith(`/`)||(d=p+d),d=o.a(d);let m=O?.getVisitorParamsState().get(`dxfs`),g=s.get(d);if(!g)if(c.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet`){let e={};g=e,j.push((async()=>{let t=((e,t,r,i,s,c,l,u)=>{let d=new Se,f=u?.get(`parseInlineDxf`),p=u?.get(Ae),m=e=>p&&e?p.readDetached(e):e,h=new n.it.TransposedBuilder,g=null;d.registerVisitor({from:`autoFilter`,to:`autoTable`,openTag:e=>{let t=e.getAttribute(`ref`),r=n.nt.fastStringToRange(t);e.getSource().r=r,e.getSource().v={}},closeTag:e=>{let t=e.getSource(),n=t.v,r=n.hiddenButtons;if(Array.isArray(r)){let e=r.length,i=t.r,a=i.colEnd-i.colStart+1;e===0?n.hiddenButtons=!1:e===a&&(n.hiddenButtons=!0)}}}),d.registerVisitor({from:`conditionalFormatting`,to:{},openTag:e=>{let t=e.getParent();t.conditionals||=[];let n=e.getAttribute(`sqref`);n&&=n.trim().split(/\s+/).join(`,`);let r={r:n,conditionals:t.conditionals},i=e.getAttribute(`pivot`,J);i!==null&&(r.pivot=i),e.setSource(r)}}),d.registerVisitor({from:`cfRule`,to:{},openTag:e=>{let t=e.getParent();if(!t?.r)return;let n=e.getSource()??{};t.pivot!==void 0&&(n.pivot=t.pivot),t.conditionals.push({r:t.r,v:null,rule:n}),e.copyToObject(n,`type`,Z),e.copyToObject(n,`priority`,Y),e.copyToObject(n,`stopIfTrue`,J);let r=e.getAttribute(`dxfId`,Y);if(r!==null){let t=i?.get(r);t||=(c?.(`Unable to load conditional color. Invalid dxfI: '${r}' at '${e.getPath()}'.`),{}),n.style=t}e.copyToObject(n,`aboveAverage`,J),e.copyToObject(n,`equalAverage`,J),e.copyToObject(n,`stdDev`,Y),e.copyToObject(n,`bottom`,J),e.copyToObject(n,`percent`,J),e.copyToObject(n,`rank`,Y),e.copyToObject(n,`operator`,Z),e.copyToObject(n,`text`,Z),e.copyToObject(n,`timePeriod`,Z)},closeTag:e=>{let t=e.getParent();if(!t?.r)return;let n=t.conditionals[t.conditionals.length-1],r=n?.rule;if(!r)return;let i={},o=a.Q(r,c);o&&(i.condition=o),r.style&&(i.style=r.style),r.scale&&(i.scale=r.scale),r.stopIfTrue&&(i.stopIfTrue=!0),r.pivot&&(i.pivot=!0),n.v=i,n.priority=r.priority,r.x14Id&&(n.x14Id=r.x14Id),delete n.rule}});let _=e=>{let t=e.conditions??[],n=[];for(let e=0;e<t.length;e++){let r=t[e],i={};r.type&&(i.type=r.type),r.value!==void 0&&(i.value=r.value),r.exclusive&&(i.exclusive=!0),n.push(i)}return n};d.registerVisitor({from:`colorScale`,to:{},openTag:e=>{},closeTag:e=>{let t=e.getSource(),r=t.colors??[],i=_(t);for(let e=0;e<i.length;e++)i[e].color=r[e];e.getParent().scale={type:n.It.ScaleType.ColorScale,stops:i}}}),d.registerVisitor({from:`dataBar`,to:{},openTag:e=>{e.copyTo(`maxLength`,Y),e.copyTo(`minLength`,Y),e.copyTo(`showValue`,J)},closeTag:e=>{let t=e.getSource(),r={type:n.It.ScaleType.DataBar,stops:_(t)},i=t.colors?.[0];i&&(r.color=i),t.minLength!==void 0&&(r.minLength=t.minLength),t.maxLength!==void 0&&(r.maxLength=t.maxLength),t.showValue!==void 0&&(r.showValue=t.showValue),e.getParent().scale=r}}),d.registerVisitor({from:`iconSet`,to:{},openTag:e=>{e.copyTo(`iconSet`,Z),e.copyTo(`reverse`,J),e.copyTo(`showValue`,J)},closeTag:e=>{let t=e.getSource(),r={type:n.It.ScaleType.IconSet,stops:_(t)};t.iconSet!==void 0&&(r.iconSet=t.iconSet),t.reverse!==void 0&&(r.reverse=t.reverse),t.showValue!==void 0&&(r.showValue=t.showValue),e.getParent().scale=r}}),d.registerVisitor({from:`formula`,to:{},text:(e,t)=>{let n=t.getParent(),r=n.formulas;r||(r=[],n.formulas=r),r.push(m(e))}}),d.registerVisitor({from:`cfvo`,to:{},openTag:e=>{let t=e.getParent();t.conditions||=[];let r=e.getSource();if(t.conditions.push(r),e.copyTo(`type`,Z),r.type===n.It.ColorStopType.Formula){let t=e.getAttribute(`val`);t!=null&&(r.value=m(String(t)))}else e.copyTo(`value`,X,`val`);!1===e.getAttribute(`gte`,J)&&(r.exclusive=!0)}}),d.registerVisitor({from:`color`,to:{},openTag:e=>{let t=e.getParent();t.colors||=[];let n=o.l(t=>e.getAttribute(t));t.colors.push(n)}}),d.registerVisitor({from:`filterColumn`,to:{},openTag:e=>{let t=e.getParent().v,n=parseInt(e.getAttribute(`colId`)),r=e.getSource();r.index=n;let i=t.filter;i||(i={conditions:[]},t.filter=i);let a=i.conditions;if(a||(a=[],i.conditions=a),a.push(r),e.getAttribute(`hiddenButton`,J)&&t){let e=t.hiddenButtons;e||(e=[],t.hiddenButtons=e),e.push(n)}if(e.getAttribute(`showButton`,J)&&t){let e=t.showButtons;e||(e=[],t.showButtons=e),e.push(n)}return r}}),d.registerVisitor({from:`colorFilter`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.ot.BuiltInOperatorNames.Color,t.param=r,e.copyToObject(r,`cellColor`),e.copyToObject(r,`styleId`,Y,`dxfId`)}}),d.registerVisitor({from:`iconFilter`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.ot.BuiltInOperatorNames.Icon,t.param=r,e.copyToObject(r,`iconId`,Y),e.copyToObject(r,`iconSet`,Z)}}),d.registerVisitor({from:`top10`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.ot.BuiltInOperatorNames.TopN,t.param=r,e.copyToObject(r,`filterVal`,X),e.copyToObject(r,`percent`,J),e.copyToObject(r,`top`,J),e.copyToObject(r,`limit`,X,`val`)}}),d.registerVisitor({from:`dynamicFilter`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.ot.BuiltInOperatorNames.TimePeriod,t.param=r;let i=e.getAttribute(`type`);Object.values(n.ot.AverageType).includes(i)?(t.operator=n.ot.BuiltInOperatorNames.Average,e.copyToObject(r,`stdDevs`,Y,`val`)):e.copyToObject(r,`anchorDate`,Y,`val`),e.copyToObject(r,`operator`,Z,`type`),e.copyToObject(r,`maxVal`,X,`maxVal`)}}),d.registerVisitor({from:`filters`,to:{},openTag:e=>{let t=e.getParent(),r={};return t.operator=n.ot.BuiltInOperatorNames.InSet,t.param=r,e.copyToObject(r,`blank`,J),e.copyToObject(r,`calendarType`,Z),r}}),d.registerVisitor({from:`filter`,openTag:e=>{let t=e.getParent(),n=t.items;n||(n=[],t.items=n),n.push(e.getAttribute(`val`,Z))}}),d.registerVisitor({from:`dateGroupItem`,to:{},openTag:e=>{let t=e.getParent(),n=t.dateGroups;n||(n=[],t.dateGroups=n),n.push(e.getSource()),e.copyTo(`group`,Z,`dateTimeGrouping`),e.copyTo(`day`,Y),e.copyTo(`hour`,Y),e.copyTo(`minute`,Y),e.copyTo(`month`,Y),e.copyTo(`second`,Y),e.copyTo(`year`,Y)}}),d.registerVisitor({from:`customFilters`,openTag:e=>{let t=e.getParent(),r=e.getAttribute(`and`),i=r===`and`||r===`1`,a=[];return t.operator=i?n.ot.BuiltInOperatorNames.And:n.ot.BuiltInOperatorNames.Or,t.param=a,e.setSource(t),a},closeTag:e=>{let t=e.getSource(),n=t?.param;if(n?.length!==1)return;let r=n[0];t.operator=r.operator,t.param=r.param}}),d.registerVisitor({from:`customFilter`,openTag:e=>{let t,n=e.getParent();Array.isArray(n)?(t={},n.push(t)):t=n;let r=a.st({operator:e.getAttribute(`operator`),val:e.getAttribute(`val`)});r&&(t.operator=r.operator,t.param=r.param)}}),d.registerVisitor({from:`sortState`,to:{},openTag:e=>{let t=e.getParent(),n=t.v;n&&(n.sort={},e.setSource(t))}}),d.registerVisitor({from:`sortCondition`,to:{},openTag:e=>{let t=e.getParent(),r=t.v;if(!r)return;let i=r.sort;if(!i)return;let a=i.sorts;a||(a=[],i.sorts=a);let o=e.getAttribute(`ref`),s=0;if(o){let e=n.nt.fastStringToRange(o,Ne).colStart,r=t.r,i=r.colStart;s=r?e-i:e}let c={};e.copyToObject(c,`sortOn`,Z,`sortBy`),e.copyToObject(c,`dxfId`,Z,`sortBy`),e.copyToObject(c,`iconSet`,Z),e.copyToObject(c,`customList`,Z),c.reverse=e.getAttribute(`descending`,J)??!1;let l={index:s,criteria:c};a.push(l)}});let v=e=>{g=e.getSource(),e.copyTo(`topLeft`,Z,`topLeftCell`);let t=o.t(e.getAttribute(`defaultGridColor`)),n=e.getAttribute(`colorId`);n===null||t||(e.getSource().gridLineColor=`index`+parseFloat(n)),e.copyTo(`showZeros`,J),e.copyTo(`showFormulas`,J),e.copyTo(`zoomScale`,Y),e.copyTo(`showRowHeaders`,J,`showRowColHeaders`),e.copyTo(`showColumnHeaders`,J,`showRowColHeaders`),e.copyTo(`showRowGridlines`,J,`showGridLines`),e.copyTo(`showColumnGridlines`,J,`showGridLines`),e.copyTo(`rightToLeft`,J)};d.registerVisitor({from:`sheetView`,to:`view`,openTag:e=>{v(e)},closeTag:()=>{g=null}}),d.registerVisitor({from:`customSheetViews`,to:`customSheetViews`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`customSheetView`,to:[],openTag:e=>{v(e)},closeTag:()=>{g=null}}),d.registerVisitor({from:`selection`,to:`selection`,openTag:e=>{if(!g)return;e.copyTo(`cell`,Z,`activeCell`),e.copyTo(`rangeIndex`,Y,`activeCellId`);let t=e.getAttribute(`activeCell`),n=e.getAttribute(`sqref`);n&&n!==t&&(e.getSource().ranges=n.trim().split(/\s+/))}}),d.registerVisitor({from:`pane`,to:null,openTag:e=>{if(g&&e.getAttribute(`state`)===`frozen`){let t={};g.freezePanes=t,e.copyToObject(t,`topLeft`,Z,`topLeftCell`);let r=(g.topLeft?n.nt.fastStringToCell(g.topLeft):void 0)??{colIndex:0,rowIndex:0},i={colIndex:0,rowIndex:0};e.copyToObject(i,`colIndex`,Y,`xSplit`),e.copyToObject(i,`rowIndex`,Y,`ySplit`);let a={colIndex:r.colIndex+i.colIndex,rowIndex:r.rowIndex+i.rowIndex};t.coords=n.nt.cellToString(a)}}}),d.registerVisitor({from:`sheetPr`,transparent:!0,openTag:t=>{let n=t.getAttribute(`codeName`);n&&(e.codeName=n),!1===t.getAttribute(`enableFormatConditionsCalculation`,J)&&(e.conditionalFormatCalculation=!1)}}),d.registerVisitor({from:`tabColor`,to:null,openTag:t=>{let n=o.l(e=>t.getAttribute(e));n&&(e.tabColor=n)}}),d.registerVisitor({from:`pageSetUpPr`,to:`pageSetUpPr`,openTag:e=>{}}),d.registerVisitor({from:`outlinePr`,to:null,openTag:t=>{let n={};t.copyToObject(n,`summaryBelow`,J),t.copyToObject(n,`summaryRight`,J),t.copyToObject(n,`showOutlineSymbols`,J),t.copyToObject(n,`applyStyles`,J),Object.keys(n).length>0&&(e.outline=n)}}),d.registerVisitor({from:`pageMargins`,to:`pageMargins`,openTag:e=>{e.copyTo(`bottom`,X),e.copyTo(`footer`,X),e.copyTo(`header`,X),e.copyTo(`left`,X),e.copyTo(`right`,X),e.copyTo(`top`,X),e.copyTo(`bottom`,X)}}),d.registerVisitor({from:`pageSetup`,to:`pageSetup`,openTag:e=>{e.copyTo(`blackAndWhite`,J),e.copyTo(`cellComments`),e.copyTo(`copies`,Y),e.copyTo(`draft`,J),e.copyTo(`errors`),e.copyTo(`firstPageNumber`,Y),e.copyTo(`fitToHeight`,Y),e.copyTo(`fitToWidth`,Y),e.copyTo(`horizontalDpi`,Y),e.copyTo(`orientation`),e.copyTo(`pageOrder`),e.copyTo(`paperSize`,Y),e.copyTo(`scale`,Y),e.copyTo(`useFirstPageNumber`,J),e.copyTo(`usePrinterDefaults`,J),e.copyTo(`verticalDpi`,Y)}}),d.registerVisitor({from:`printOptions`,to:`printOptions`,openTag:e=>{e.copyTo(`gridLines`,J),e.copyTo(`gridLinesSet`,J),e.copyTo(`headings`,J),e.copyTo(`horizontalCentered`,J),e.copyTo(`verticalCentered`,J)}}),d.registerVisitor({from:`headerFoot`,to:`headerFoot`,openTag:e=>{}}),d.registerVisitor({from:`mergeCells`,to:`merges`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`dataValidations`,to:`validations`,openTag:e=>{e.setSource([])}});let y={from:`dataValidation`,to:[],openTag:e=>{let t=e.getAttribute(`sqref`);t&&=t.trim().split(/\s+/).join(`,`);let n={},r={r:t,v:n,rule:{type:e.getAttribute(`type`)??void 0,operator:e.getAttribute(`operator`)??void 0}};!0===e.getAttribute(`showDropDown`,J)&&(n.hideDropdown=!0),e.copyToObject(n,`alert`,Z,`error`),e.copyToObject(n,`alertTitle`,Z,`errorTitle`),e.copyToObject(n,`showAlertMessage`,J,`showErrorMessage`),n.alertStyle=e.getAttribute(`errorStyle`)??`stop`,e.copyToObject(n,`imeMode`),e.copyToObject(n,`prompt`),e.copyToObject(n,`promptTitle`),e.copyToObject(n,`showPromptMessage`,J,`showInputMessage`),e.setSource(r)},closeTag:e=>{let t=e.getSource();if(!t?.rule)return;let n=a.l(t.rule,c);n&&(e.getAttribute(`allowBlank`,J)&&(n.includeBlanks=!0),t.v.condition=n),delete t.rule}};d.registerVisitor(y),d.registerVisitor({from:`formula1`,to:{},text:(e,t)=>{let n=t.getParent().rule;n?.type&&(n.formula1=a.p(m(e),n.type))}}),d.registerVisitor({from:`formula2`,to:{},text:(e,t)=>{let n=t.getParent().rule;n?.type&&(n.formula2=a.p(m(e),n.type))}}),d.registerVisitor({from:`picture`,to:`picture`,openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return void e.warn(`A picture names no image; it was not imported.`,{onceKey:`xlsx.sheet.picture.noRel`});let r=t(n,`resource`);e.getSource().resId=r}});let b={from:`slicer`,to:{},openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return void e.warn(`A slicer names no cache; it was not imported.`,{onceKey:`xlsx.sheet.slicer.noRel`});let r=t(n)?.slicers,i=e.getParent();i.slicers||={};let a=Object.keys(r);for(let e of a)i.slicers[e]=r[e]}};d.registerVisitor(b);let x=(e,t)=>({from:e,to:{},openTag:e=>{e.setSource(``)},text:(e,t)=>{t.setSource((t.getSource()??``)+e)},closeTag:e=>{t(String(e.getSource()??``),e)}}),S=new Map;S.set(`dataValidations`,{from:`dataValidations`,to:`validations`,openTag:e=>{let t=e.getParent();e.setSource(t.validations??[])},closeTag:e=>{(e.getSource()?.length??0)===0&&e.setSource(void 0)}}),S.set(`dataValidation`,{...y,closeTag:e=>{y.closeTag(e);let t=e.getSource();t&&!t.r&&(e.warn(`x14 dataValidation with no xm:sqref was dropped.`),e.setSource(void 0))}});let ee=e=>({from:e,to:{},openTag:t=>{t.setSource({rule:t.getParent()?.rule,key:e})}});S.set(`formula1`,ee(`formula1`)),S.set(`formula2`,ee(`formula2`)),S.set(`f`,x(`f`,(e,t)=>{let n=t.getParent(),r=n?.rule;r&&(r[n.key]=a.p(m(e),r.type))})),S.set(`sqref`,x(`sqref`,(e,t)=>{let n=t.getParent(),r=e.trim();n&&r&&(n.r=r.split(/\s+/).join(`,`))}));let C=new Map,w=[],T=new Map;T.set(`conditionalFormattings`,{from:`conditionalFormattings`,transparent:!0}),T.set(`conditionalFormatting`,{from:`conditionalFormatting`,to:{},openTag:e=>{e.setSource({rules:[]})},closeTag:e=>{let t=e.getSource(),n=t?.rules??[];for(let e=0;e<n.length;e++){let r=n[e];r.sqref=t.sqref,r.id?C.set(r.id,r):w.push(r)}}}),T.set(`cfRule`,{from:`cfRule`,to:{},openTag:e=>{e.copyTo(`id`,Z),e.copyTo(`type`,Z),e.copyTo(`priority`,Y),e.copyTo(`stopIfTrue`,J),e.copyTo(`operator`,Z),e.copyTo(`text`,Z),e.copyTo(`timePeriod`,Z),e.copyTo(`aboveAverage`,J),e.copyTo(`equalAverage`,J),e.copyTo(`stdDev`,Y),e.copyTo(`bottom`,J),e.copyTo(`percent`,J),e.copyTo(`rank`,Y)},closeTag:e=>{let t=e.getSource();t&&e.getParent()?.rules?.push(t)}}),T.set(`sqref`,x(`sqref`,(e,t)=>{let n=t.getParent(),r=e.trim();n&&r&&(n.sqref=r)})),T.set(`dataBar`,{from:`dataBar`,to:{},openTag:e=>{e.copyTo(`minLength`,Y),e.copyTo(`maxLength`,Y),e.copyTo(`gradient`,J),e.copyTo(`border`,J),e.copyTo(`direction`,Z),e.copyTo(`axisPosition`,Z),e.copyTo(`negativeBarColorSameAsPositive`,J),e.copyTo(`negativeBarBorderColorSameAsPositive`,J)},closeTag:e=>{e.getParent().dataBar=e.getSource()}}),T.set(`iconSet`,{from:`iconSet`,to:{},openTag:e=>{e.copyTo(`iconSet`,Z),e.copyTo(`custom`,J),e.copyTo(`reverse`,J),e.copyTo(`showValue`,J)},closeTag:e=>{e.getParent().iconSet=e.getSource()}});let te=new Map;te.set(`f`,x(`f`,(e,t)=>{let n=t.getParent();if(!n)return;let r=e.trim(),i=Number(r);n.value=r.length>0&&Number.isFinite(i)?i:m(e)})),T.set(`cfvo`,{from:`cfvo`,to:{},scope:()=>te,openTag:e=>{let t=e.getParent();t.conditions||=[];let n=e.getSource();t.conditions.push(n),e.copyTo(`type`,Z),!1===e.getAttribute(`gte`,J)&&(n.exclusive=!0)}}),T.set(`f`,x(`f`,(e,t)=>{let n=t.getParent();n&&(n.formulas??=[]).push(m(e))})),T.set(`dxf`,{from:`dxf`,to:{},raw:!0,closeTag:e=>{if(!f)return;let t=e.getParent();if(!t)return;let n=f(e.getRawXml()??``);n&&(t.style=n)}});let E=e=>({from:e,to:{},openTag:t=>{let n=o.l(e=>t.getAttribute(e));n&&(t.getParent()[e]=n)}});T.set(`borderColor`,E(`borderColor`)),T.set(`negativeFillColor`,E(`negativeFillColor`)),T.set(`negativeBorderColor`,E(`negativeBorderColor`)),T.set(`axisColor`,E(`axisColor`)),T.set(`cfIcon`,{from:`cfIcon`,to:{},openTag:e=>{let t=e.getAttribute(`iconSet`),n=e.getAttribute(`iconId`,Y);if(t===null||n===null)return;let r=e.getParent();r.icons||=[],r.icons.push({set:t,id:n})}});let D=new Map;D.set(`id`,x(`id`,(e,t)=>{let n=t.getParent(),r=e.trim();n&&r&&(n.x14Id=r)}));let ne=new Map;ne.set(`slicerList`,{from:`slicerList`,transparent:!0}),ne.set(`slicer`,b);let O=new Map([[a.x(a.V),S],[a.x(a.et),T],[a.x(a.O),T],[a.x(a.A),D],[a.x(a.q),ne],[a.x(a.W),ne]]),k=new Set;d.registerVisitor({from:`extLst`,transparent:!0}),d.registerVisitor({from:`ext`,transparent:!0,scope:e=>{let t=e.getAttribute(`uri`),n=a.x(t),r=O.get(n);if(r)return r;if(!a.P.has(n)&&!k.has(n)){k.add(n);let r=a.I[n];e.warn(r?`Extension content '${r}' (${t}) is not read; it will be lost on resave.`:`Unknown extension content (uri ${t}) is not read; it will be lost on resave.`)}return null}}),d.registerVisitor({from:`mergeCell`,to:[],openTag:e=>{let t=e.getAttribute(`ref`);e.setSource(t)}}),d.registerVisitor({from:`hyperlinks`,to:`hyperlinks`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`hyperlink`,to:[],openTag:e=>{let n=e.getAttribute(`r:id`),r=e.getAttribute(`ref`);if(!r)return void e.warn(`A hyperlink has no ref; it was dropped.`,{onceKey:`xlsx.sheet.hyperlink.noRef`});e.setKey(r);let i=n?t(n):``;if(typeof i!=`string`)return void e.warn(`A hyperlink has an invalid address; it was dropped.`,{onceKey:`xlsx.sheet.hyperlink.address`});i.endsWith(`\\`)&&(i=i.substring(0,i.length-1));let a=e.getAttribute(`location`);if(a&&(i+=`#`+a),!i)return void e.warn(`A hyperlink has no address; it was dropped.`,{onceKey:`xlsx.sheet.hyperlink.address`});let o,s=e.getAttribute(`tooltip`);o=s?{address:i,screenTip:s}:i,e.setSource({r,v:o})}}),d.registerVisitor({from:`drawing`,to:`movables`,openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return;let r=t(n);r?e.setSource(r.movables):e.warn(`A drawing part is missing; its shapes were not imported.`,{onceKey:`xlsx.sheet.drawing.missing`})}}),d.registerVisitor({from:`legacyDrawing`,to:`legacyDrawing`,openTag:e=>{e.setSource(t(e.getAttribute(`r:id`),`legacyDrawing`)??void 0)}}),d.registerVisitor({from:`legacyDrawingHF`,to:`legacyDrawingHF`,openTag:e=>{e.setSource(t(e.getAttribute(`r:id`),`legacyDrawing`)??void 0)}});let A=null,j=!1,M=new Map,re={from:`Fallback`,to:null},N={from:`Choice`,transparent:!0};M.set(`Fallback`,re),M.set(`Choice`,N),M.set(`control`,{from:`control`,transparent:!0,openTag:e=>{let n={},r=parseInt(e.getAttribute(`shapeId`)??``,10);isNaN(r)||(n.shapeId=r);let i=e.getAttribute(`r:id`),a=i?t(i,`part`):null;a&&(n.part=a);let o=e.getAttribute(`name`),s={anchor:{tl:{c:0,r:0,x:0,y:0},br:{c:0,r:0,x:0,y:0}},content:{type:`control`,json:n}};o&&(s.name=o),A={movable:s,control:n}},closeTag:()=>{A&&=(e.movables||=[],e.movables.push(A.movable),null)}}),M.set(`controlPr`,{from:`controlPr`,transparent:!0,raw:!0,openTag:e=>{if(!A)return;let t=e.getFrom().attributes??{},n={};for(let e in t){let r=t[e];n[e]=typeof r==`string`?r:r?.value??``}Object.keys(n).length>0&&(A.control.props=n)},closeTag:e=>{if(!A)return;let t=(e=>{let t=/<(?:[\w.-]+:)?anchor\b([^>]*)>([\s\S]*?)<\/(?:[\w.-]+:)?anchor>/.exec(e);if(!t)return null;let n=t[2],r=e=>RegExp(`<(?:[\\w.-]+:)?${e}\\b[^>]*>([\\s\\S]*?)<\\/(?:[\\w.-]+:)?${e}>`).exec(n)?.[1],i=t[1],a=/\bmoveWithCells="(?:1|true)"/.test(i),o=/\bsizeWithCells="(?:1|true)"/.test(i);return{anchor:{tl:ke(r(`from`)),br:ke(r(`to`))},anchorType:a?o?`twoCell`:`oneCell`:`absolute`,rest:(e.slice(0,t.index)+e.slice(t.index+t[0].length)).trim()}})(e.getRawXml()??``);t?(A.movable.anchor=t.anchor,t.anchorType!==`twoCell`&&(A.movable.anchorType=t.anchorType),t.rest&&(A.control.xml=t.rest)):j||(j=!0,e.warn(`A form control has no anchor; it is placed at the top left of the sheet.`))}});let P={from:`controls`,transparent:!0,scope:()=>M};d.registerVisitor(P);let F=new Map([[`Choice`,N],[`Fallback`,re],[`controls`,P]]);d.registerVisitor({from:`AlternateContent`,transparent:!0,scope:()=>F}),d.registerVisitor({from:`tableParts`,to:`tables`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`tablePart`,to:[],openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return;let r=t(n);r?e.setSource(r):e.warn(`A table part is missing; the table was not imported.`,{onceKey:`xlsx.sheet.table.missing`})}});let I=(e,t)=>{t.conditions?.length&&(e.stops=_(t)),t.minLength!==void 0&&(e.minLength=t.minLength),t.maxLength!==void 0&&(e.maxLength=t.maxLength),(t.gradient??1)&&(e.gradient=!0),t.border&&t.borderColor&&(e.borderColor=t.borderColor),!t.negativeBarColorSameAsPositive&&t.negativeFillColor&&(e.negativeFillColor=t.negativeFillColor),!(t.negativeBarBorderColorSameAsPositive??1)&&t.negativeBorderColor&&(e.negativeBorderColor=t.negativeBorderColor),t.axisColor&&(e.axisColor=t.axisColor),t.axisPosition!==`middle`&&t.axisPosition!==`none`||(e.axisPosition=t.axisPosition),t.direction!==`leftToRight`&&t.direction!==`rightToLeft`||(e.direction=t.direction)},L=(e,t)=>{t.conditions?.length&&(e.stops=_(t)),t.iconSet&&t.iconSet!==e.iconSet&&(e.iconSet=t.iconSet),t.icons?.length&&(e.icon=t.icons),t.reverse!==void 0&&(e.reverse=t.reverse),t.showValue!==void 0&&(e.showValue=t.showValue)},R=e=>{if(!e.sqref)return null;let t=e.sqref.split(/\s+/).join(`,`);if(e.type===`iconSet`){if(!e.iconSet)return null;let r={type:n.It.ScaleType.IconSet,stops:[]};return L(r,e.iconSet),{r:t,v:{scale:r},priority:e.priority}}let r=a.Q(e,c);if(!r)return null;let i={condition:r};return e.style&&(i.style=e.style),e.stopIfTrue&&(i.stopIfTrue=!0),{r:t,v:i,priority:e.priority}};d.registerVisitor({from:`worksheet`,to:{},openTag:e=>{},closeTag:e=>{let t=e.getSource(),r=t?.conditionals;if(r)for(let e=0;e<r.length;e++){let t=r[e],i=t.x14Id;if(!i)continue;delete t.x14Id;let a=C.get(i);if(!a)continue;C.delete(i);let o=t.v?.scale;a.dataBar&&o?.type===n.It.ScaleType.DataBar?I(o,a.dataBar):a.iconSet&&o?.type===n.It.ScaleType.IconSet&&L(o,a.iconSet)}let i=[...C.values(),...w],a=new Set,o=0;for(let e=0;e<i.length;e++){let n=R(i[e]);n?(r||(r=[],t.conditionals=r),r.push(n)):(a.add(i[e].type??`unknown`),o++)}if(o>0){let e=[...a].map(e=>`'${e}'`).join(`, `);c?.(o===1?`An x14-only conditional formatting rule (type ${e}) is not read and will be lost on resave.`:`${o} x14-only conditional formatting rules (types ${e}) are not read and will be lost on resave.`)}if(r){r.length>1&&r.sort((e,t)=>(e.priority??1/0)-(t.priority??1/0));for(let e=0;e<r.length;e++)delete r[e].priority}}}),d.registerVisitor({from:`customProperties`,to:`customProperties`,openTag:e=>{e.setSource([])},closeTag:e=>{let t=e.getSource();t.length>0&&(e.getParent().customProperties=t)}}),d.registerVisitor({from:`customPr`,to:{},openTag:e=>{let n=e.getParent();e.copyTo(`name`);let r=e.getAttribute(`r:id`);if(!r)return void e.warn(`A custom property names no part; it was not imported.`,{onceKey:`xlsx.sheet.customProperty.noRel`});let i=t(r,`resource`),a=e.getSource();a.resId=i,n.push(a)}}),d.registerVisitor({from:`sheetProtection`,to:`protection`,openTag:e=>{let t=e.getSource();for(let n of a.n){let r=e.hasAttribute(n.attribute)?e.getAttribute(n.attribute):null;t[n.key]=a.u(n,r)}if(t.sheet)return;let n={};e.copyToObject(n,`hash`,Z,`hashValue`),e.copyToObject(n,`algorithm`,Z,`algorithmName`),e.copyToObject(n,`salt`,Z,`saltValue`),e.copyToObject(n,`spinCount`,Y),Object.keys(n).length>0&&(e.getSource().password=n)}}),d.registerVisitor({from:`protectedRanges`,to:`protectedRanges`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`protectedRange`,to:[],openTag:e=>{let t=e.getAttribute(`sqref`);t&&=t.trim().split(/\s+/).join(`,`);let n={},r={r:t,v:n};e.copyToObject(n,`name`),e.copyToObject(n,`securityDescriptor`);let i={};e.copyToObject(i,`hash`,Z,`hashValue`),e.copyToObject(i,`algorithm`,Z,`algorithmName`),e.copyToObject(i,`salt`,Z,`saltValue`),e.copyToObject(i,`spinCount`,Y),Object.keys(i).length>0&&(n.password=i),e.setSource(r)},closeTag:e=>{let t=e.getSource();t?.r&&t.v.name||e.setSource(void 0)}}),d.registerVisitor({from:`sheetFormatPr`,to:`sheetFormatPr`,openTag:t=>{t.copyToObject(e,`defaultColSize`,X,`defaultColWidth`),t.copyToObject(e,`outlineLevelCol`,Y,`outlineLevelCol`);let n=t.getAttribute(`customHeight`);n!==`1`&&n!==`true`||t.copyToObject(e,`defaultRowSize`,X,`defaultRowHeight`),t.copyToObject(e,`outlineLevelRow`,Y,`outlineLevelRow`)}}),d.registerVisitor({from:`cols`,to:`cols`,openTag:e=>{e.setSource([])}}),d.registerVisitor({from:`col`,to:[],openTag:e=>{let t=e.getSource(),r=e.getAttribute(`min`),i=e.getAttribute(`max`),a=r===void 0?0:parseInt(r)-1,o=i===void 0?a:parseInt(i)-1;t.r=n.nt.runToString(a,o,!0);let s={};t.v=s,e.copyToObject(s,`sz`,X,`width`),e.copyToObject(s,`csz`,J,`customWidth`),e.copyToObject(s,`h`,J,`hidden`),e.copyToObject(s,`l`,Y,`outlineLevel`),e.copyToObject(s,`s`,Y,`style`)}}),d.registerVisitor({from:`oleObjects`,to:null,openTag:e=>{e.warn(`'OLE Objects' are not supported.`)}});let z=!1,B=!1,V=0,H=``,U=e=>{let t=e.indexOf(`:`);return t===-1?e:e.slice(t+1)};return Pe(h,e,d.createEventHandler(e,s,c),c,l,{onOpenTag:e=>{z=!0;let t=U(e.name);t===`t`||t===`v`?V===0&&(B=!0):t!==`rPh`&&t!==`phoneticPr`||V++},onText:e=>{B&&(H+=e)},onCloseTag:e=>{let t=U(e.name);t===`t`||t===`v`?B=!1:t!==`rPh`&&t!==`phoneticPr`||V>0&&V--},onEnd:()=>{if(!z)return;let e=r(a._(H));return z=!1,B=!1,V=0,H=``,e},onError:e=>{}},u)})(e,(e,t)=>t===`legacyDrawing`?z(e,d):t===`part`?B(e,d):I(e,d,t===`resource`)??null,le,m,()=>{},(e,t,n)=>{y(e,t?`${t} (${d})`:d,n)},void 0,E),r=await M.getTextStream(d,te);if(r)try{await w.parseStream(r,t,{xmlns:!1,lean:!0})}catch(e){throw Error(`Error parsing sheet: '${d}'`,{cause:e})}let i=F(d,s);if(i){R(e,d,i,s);let t=[];i.forEach((e,n)=>{if(e.type!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable`)return;let r=B(n,d,e.type,e=>e!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition`);if(!r?.xml)return;let i=/<pivotTableDefinition\b[^>]*>/.exec(r.xml)?.[0]??``,o=parseInt(/\scacheId="(\d+)"/.exec(i)?.[1]??``,10);if(isNaN(o))return void v.push([`Pivot table '${r.name}' names no cache and was dropped.`,d]);let s=/\sname="([^"]*)"/.exec(i)?.[1];t.push({...s?{name:a.H(s)}:{},cacheId:o,part:r})}),t.length>0&&(e.pivotTables=t)}})())}else if(c.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink`){let e=o.i(d,t,k,O,G);if(e&&Object.keys(e).length!==0){let t=e,n=t.__bookRelId,r=t.__absoluteUrlRelId;delete t.__bookRelId,delete t.__absoluteUrlRelId;let i=[];F(d,s)?.forEach((e,t)=>{if(e.targetMode===`External`&&e.type&&e.target){let a={type:e.type,target:e.target};t===n?a.role=`book`:t===r&&(a.role=`absoluteUrl`),i.push(a)}}),i.sort((e,t)=>(e.role===`book`?0:1)-(t.role===`book`?0:1)),t.sources=i,P(d),g=t}else g=null}else g=i?o.u(d,t,(e,t)=>{let n=l.add({source:{buffer:e}});return n.addReference(h),T.add(n),u.toResourceId(n)},G):o.i(d,t,k,O,G);return g},L=(e,t)=>{if(!e)return null;let n=F(t,A)?.get(e);if(!n?.target||n.targetMode===`External`)return null;let r=n.target;return r.startsWith(`/`)||(r=t.substring(0,t.lastIndexOf(`/`)+1)+r),o.a(r)},R=(t,r,i,s)=>{let c=[],l=new Map,u=[];i.forEach((e,t)=>{if(e.type!==`http://schemas.microsoft.com/office/2017/10/relationships/threadedComment`)return;let n=I(t,r,!1,s)?.comments;if(!n)return;for(let e=0;e<n.length;e++){let t=n[e];if(!t?.v?.id)continue;let{parentId:r,done:i,content:a,...o}=t.v,s={...o,content:ze(a)};r?u.push({parentId:r,json:s}):(i&&(s.done=!0),l.set(s.id,s),c.push({r:t.r,v:s}))}let i=L(t,r);i&&P(i)});for(let e=0;e<u.length;e++){let{parentId:t,json:n}=u[e],r=l.get(t);r&&(r.replies??=[]).push(n)}let d=[];if(i.forEach((t,n)=>{if(t.type!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments`)return;let i=I(n,r,!1,s),a=i?.comments;if(!a)return;let c=i?.authors;for(let t=0;t<a.length;t++){let n=a[t];if(!n?.r)continue;let r=c&&n.v.authorId!==void 0?c[n.v.authorId]:void 0;if(r&&r.startsWith(`tc=`)){if(l.has(o.c(r.substring(3))))continue;r=void 0}let i={id:e.R.uuidV4().toUpperCase(),asNote:!0,content:n.v.content??``},s=r?ie({displayName:r}):void 0;s&&(i.personId=s.id),d.push({r:n.r,v:i})}let u=L(n,r);u&&P(u)}),c.length===0&&d.length===0)return;let f=[...c,...d],p=t.legacyDrawing;if(p?.xml){let{rest:e,notes:r}=a.c(p.xml);if(r.length>0){let i=new Map;for(let e=0;e<r.length;e++){let t=r[e];i.set(n.nt.cellToString({rowIndex:t.row,colIndex:t.col}),t)}for(let e=0;e<f.length;e++){let t=f[e],n=i.get(String(t.r).toUpperCase());n&&(t.v.box={xml:n.xml},i.delete(String(t.r).toUpperCase()))}let o=[];i.forEach(e=>{o.push(e.xml)});let s=a.m(e,o);s?p.xml=s:delete t.legacyDrawing}}t.comments=f},z=(e,n)=>{let r=L(e,n);if(!r)return null;let i=t(Le(r));if(!i)return null;let a={xml:new TextDecoder(`utf-8`).decode(i.content)},o=[];return F(r,A)?.forEach((e,t)=>{if(e.type!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`)return;let n=I(t,r,!0);typeof n==`number`&&o.push({id:t,resId:n})}),o.length>0&&(a.images=o),P(r),a},B=(e,n,r,a,o=new Set)=>{let s=L(e,n);if(!s||o.has(s))return null;let c=r??F(n,A)?.get(e)?.type;if(!c)return null;let l=t(Le(s));if(!l)return null;o.add(s);let u=s.substring(s.lastIndexOf(`/`)+1),d=i.overrides[Le(s)]??i.defaults[u.substring(u.lastIndexOf(`.`)+1).toLowerCase()],f={id:e,type:c,name:u};if(d&&(f.contentType=d),((e,t)=>e?e.endsWith(`+xml`)||e===`application/xml`:/\.(xml|rels|vml)$/i.test(t))(d,u))f.xml=new TextDecoder(`utf-8`).decode(l.content);else{let t=I(e,n,!0);if(typeof t!=`number`)return null;f.resId=t}let p=[];return F(s,A)?.forEach((e,t)=>{if(!e?.type||a&&!a(e.type))return;if(e.targetMode===`External`){let n=I(t,s,!0);typeof n==`number`&&p.push({id:t,type:e.type,resId:n});return}let n=B(t,s,e.type,a,o);n&&p.push(n)}),p.length>0&&(f.parts=p),P(s),f};o.d(`coreprops`,i,t,k,O,b),o.d(`extprops`,i,t,k,O,b);let V=new Map,H=new Map,U=o.d(`people`,i,t,k,O,b),W=null;if(U.size>0){let[e,t]=U.entries().next().value;if(W=t?.persons,P(e),W){let e=W.length;for(let t=0;t<e;t++){let e=W[t];V.set(e.id,e),e.displayName!==void 0&&H.set(e.displayName,e)}}}let ie=t=>{if(!t)return;if(t.id&&V.has(t.id))return V.get(t.id);let n=t.displayName;if(!t.id){if(n){let e=H.get(n);if(e)return e}t.id=e.R.uuidV4()}let r=V.get(t.id);if(r)return r;let i=t;return V.set(t.id,i),n&&H.set(n,i),W||=[],W.push(i),i},G={paramMap:E,getRefs:F,getRef:I,parsedRefs:A,readEmbeddedPart:(e,t)=>B(e,t),addPerson:ie,serializeElement:re,onWarning:y},ae=[];if(s){let e=await M.getTextStream(s,te);if(e){let t=((e,t)=>{let n=!1,r=!1,i=0,o=``;return{onOpenTag:e=>{let t=Fe(e.name);t===`t`?n&&i===0&&(r=!0):t===`si`?(n=!0,o=``,i=0):t!==`rPh`&&t!==`phoneticPr`||i++},onText:e=>{r&&(o+=e)},onCloseTag:e=>{let t=Fe(e.name);t===`t`?r=!1:t===`si`?((e=>{ae.push(e)})(a._(o)),n=!1,o=``):t!==`rPh`&&t!==`phoneticPr`||i>0&&i--},onError:e=>{t?.(`Error parsing shared strings: ${e?.message??e}`)}}})(0,e=>{y(e,s)});try{await w.parseStream(e,t,{xmlns:!1})}catch(e){throw Error(`Error parsing shared strings: '${s}'`,{cause:e})}}}_?.mark(`shared-strings`);let oe=ae.length,se=new Map,ce=oe,le=e=>{let t=se.get(e);if(t!==void 0)return t;let n=ce;return se.set(e,ce++),ae.push(e),n},ue=[];i.slicersCache=ue;let de=M.getNames(),fe=de.length;for(let e=0;e<fe;e++){let t=de[e];t&&t.startsWith(`xl/slicerCache`)&&ue.push(`/${t}`)}let pe=o.d(`slicersCache`,i,t,k,O,G),me=new Map;pe.forEach(e=>{let t=e.name;delete e.name,me.set(t,e)}),E.set(`slicerCaches`,me),o.d(`richstructure`,i,t,k,O,G),o.d(`richdata`,i,t,k,O,G);let he=o.d(`themes`,i,t,k,O,G),ge=null;if(he&&he.entries){let e=he.entries().next();e?.value?.[1]&&(ge=e.value[1])}let _e=new n.Gt(ge),ve=o.d(`styles`,i,t,k,O,G).entries().next()?.value?.[1];ve&&=JSON.parse(e.t.JSONStableStringify(ve));let K=o.d(`workbooks`,i,t,k,O,G);_?.mark(`side-parts-json`),await Promise.all(j);{let e=K.entries().next().value?.[1],t=a.R(e?.names),n=e?.sheets??[];for(let e=0;e<n.length;e++){let r=n[e]?.sheet;r&&a.C(r,t)}let r=e?.names;if(r)for(let e=0;e<r.length;e++){let n=r[e]?.ref;typeof n==`string`&&(r[e].ref=t.readDetached(n))}}S&&C>0&&(S(ee,ee),await new Promise(e=>setTimeout(e,0))),_?.mark(`sheets`);let ye={...K.entries().next().value?.[1],styles:ve,theme:_e.toJSON()};o.n(ye,E.get(o.p)),ye.calc={...ye.calc??{},legacyIntersect:!0},ae.length>0&&(ye.strings=ae),W&&W.length>0&&(ye.people=W);let q=M.getEntry(`xl/vbaProject.bin`);if(q)try{let{VBAProject:e}=await Promise.resolve().then(()=>require("./Dy50BSaRMmRISD2Y.cjs")),t=e.extract(q);if(t){let n=new Map;for(let e of ye.sheets??[]){let t=e?.sheet?.codeName;t&&n.set(t,e.sheet)}for(let r of t.modules){let t={language:`vba`},{header:i,body:a}=e.splitAttributes(r.code);a&&(t.source=a),i&&(t.sourceHeader=i);let o=r.type===`document`?n.get(r.name):void 0;o||r.type!==`document`||(t.scope=`workbook`);let s=o?o.modules??={}:ye.modules??={};s[r.name]||(s[r.name]=t)}d?.(t)}else v.push([`Unable to parse VBA project.`,`xl/vbaProject.bin`])}catch(e){v.push([`Error extracting VBA: ${e?.message??e}`,`xl/vbaProject.bin`])}let be=E.get(`calcId`),xe=be===void 0||!(Number(be)>=191029),Q=m.calcOnLoad??(p===`auto`&&xe?`full`:p),Ce={...m,calcOnLoad:Q,resources:l,json:ye};Ce.disableLoadAutoFit===void 0&&(Ce.disableLoadAutoFit=!1),_?.mark(`json-assembled`);let $=new r.g(Ce);if(_?.mark(`workbook-constructed`),D.length>0&&Q!==`none`){await $.whenCalculationReady();let e=new Map,t=ye.sheets??[],n=$.getSheets().getItems();for(let r=0;r<t.length;r++){let i=t[r]?.sheet,a=n[r];i&&a&&e.set(i,a)}((e,t,n)=>{if(t.length===0)return;let r=e.getCalculation().getFunctions(),i=new Map,a=e=>{let t=i.get(e);return t===void 0&&(t=r.getByName(e)!==null,i.set(e,t)),t},o=new Map;for(let e of t){let t=o.get(e.sheet);t||(t=[],o.set(e.sheet,t)),t.push(e)}for(let[e,t]of o){let r=n.get(e);if(!r)continue;let i=(e,t)=>`${e},${t}`,o=new Set;for(let e of t)e.formula===null&&o.add(i(e.rowIndex,e.colIndex));for(let e of t){if(e.formula===null)continue;let t=Oe(e.formula),n=!0;for(let e of t)if(!a(e)){n=!1;break}if(!n)continue;let s=[],c=[[e.rowIndex,e.colIndex]],l=new Set([i(e.rowIndex,e.colIndex)]);for(;c.length>0;){let[e,t]=c.pop(),n=[[e+1,t],[e-1,t],[e,t+1],[e,t-1]];for(let[e,t]of n){let n=i(e,t);!l.has(n)&&o.has(n)&&(l.add(n),s.push([e,t]),c.push([e,t]))}}for(let[e,t]of s)o.delete(i(e,t)),r.getRange({rowStart:e,colStart:t,rowEnd:e,colEnd:t}).clear();r.getRange({rowStart:e.rowIndex,colStart:e.colIndex,rowEnd:e.rowIndex,colEnd:e.colIndex}).setValue(`=`+e.formula)}}})($,D,e)}if(T.forEach(e=>{e.deleteReference(h)}),u.endPersist(),g){a.F($);let e=new Map,t=0;for(let n of M.getNames()){let r=M.getEntry(n);if(!r)continue;let i=M.getRawEntry(n),a=i?{data:r,uncompressedSize:M.uncompressedSize(n),raw:{compressedData:i.data,compressionMethod:i.compressionMethod,signature:i.signature}}:{data:r,uncompressedSize:M.uncompressedSize(n)};e.set(n,a),t+=r.byteLength}if(t>67108864)v.push([`Source package too large to retain (${t} bytes, limit ${a.nt}); unmodeled parts will be dropped on save.`,`SourcePackage`]);else if(e.size>0){let t=new a.N(e,N);a.L($,t);let n=$.getSheets().getItems(),r=$.getTransactions().addListener({onCommitEnd:e=>{let n=e.getOperation()?.name;n!==`insertCells`&&n!==`deleteCells`||t.markStructuralChange()}}),i=$.addListeners({onSheetsChange:()=>{let e=$.getSheets().getItems();(e.length!==n.length||e.some((e,t)=>e!==n[t]))&&t.markStructuralChange(),n=e}});$.addListeners({onClose:()=>{r(),i(),a.F($)}})}}if(v.length&&x?.onWarning){let e=new Set;for(let t of v){let[n,r,i]=t,a=i??n;e.has(a)||(e.add(a),x.onWarning(n,r))}}return _&&!0===f&&console.table(_.toTable()),$}catch(t){let n=`Unable to parse XLSX.`;throw t instanceof e.K&&(n=`Unable to open XLSX. There are too many rows or columns.`),Error(n,{cause:t})}finally{await M.close().catch(()=>{})}};
@@ -1 +0,0 @@
1
- const e=require("./B7_pDFYCVzt-3hUs.cjs"),t=require("./Ytzw6iUYx5f19wfK.cjs"),n=require("./DLtFM988NCD-jeBV.cjs"),r=require("./BdJvn1vLXMZvE-8h.cjs"),i=require("./BPWKnUtyoTrtW567.cjs"),a=require("./CH7BUjrXIKDIE7XE.cjs"),o=require("./CA_ZsYjkTHSpGK0j.cjs"),s=require("./GPlG4lbMP89VDHYJ.cjs"),c=require("./DHMQnssVXWjGBSs-.cjs"),l=require("./DsqHxG-lGZxL1XgQ.cjs"),u=require("./DCRe7NqRclU-Jr7p.cjs"),d=require("./3a3qEmdJWFXfGW0q.cjs"),f=require("./9rXsWW4SnEpudhfh.cjs");var p=e.r(t.i(),1),m=e.r(t.r(),1),h=`14px`,g={flex:`1 1 auto`,minWidth:e=>e.spacing(1),height:`1px`,backgroundColor:e=>e.palette.divider},_=Object.freeze([Object.freeze([a.jt.Presets.Copy.id,a.jt.Presets.Series.id]),Object.freeze([a.jt.Presets.Linear.id,a.jt.Presets.Growth.id]),Object.freeze([a.jt.Presets.DateYears.id,a.jt.Presets.DateMonthEnd.id,a.jt.Presets.DateMonths.id,a.jt.Presets.DateWeekdays.id,a.jt.Presets.DateDays.id])]),v=Object.freeze([{direction:i.l.Direction.Down,label:n.C(`fillSeries.columns`)},{direction:i.l.Direction.Right,label:n.C(`fillSeries.rows`)}]),y=(0,p.memo)(e=>{let{initialValue:t,context:y,onInput:b,onDone:x,sx:S,...C}=e,w=r.en(),T=(0,p.useRef)(y?.()).current,[E,D]=(0,p.useState)(()=>({presetId:t?.presetId??a.jt.Presets.Copy.id,direction:t?.direction??i.l.Direction.Down,trend:t?.trend,stepValue:t?.stepValue,stopValue:t?.stopValue})),O=E.direction===i.l.Direction.Down||E.direction===i.l.Direction.Up,k=(0,p.useMemo)(()=>{let e=new Map;for(let t=0;t<v.length;t++){let n=v[t].direction;e.set(n,new Set(T?.offered(n)??[]))}return e},[T]),A=k.get(E.direction)??new Set,j=A.has(E.presetId),M=a.jt.getPreset(E.presetId)?.filler,N=!0===E.trend&&!0===M?.supportsTrend,P=!0===M?.supportsStep&&!N,F=!0===M?.supportsStop&&!N,I=r.bt(e=>{D(t=>{let n={...t,...e};return!0!==a.jt.getPreset(n.presetId)?.filler.supportsTrend&&(n.trend=void 0),n})},[]),L=r.bt((e,t)=>{let n=t,r=k.get(n),i=r?.has(E.presetId)?E.presetId:_.flat().find(e=>!0===r?.has(e))??E.presetId;I({direction:n,presetId:i})},[k,E.presetId,I]),R=r.bt(e=>{I({presetId:e.target.value})},[I]),z=(0,p.useMemo)(()=>T?.resolve(E.direction)??null,[T,E.direction]),B=(0,p.useMemo)(()=>{if(!T||!j||!z||z.size<=0)return null;let e=null;try{e=T.preview(E)}catch{return null}if(!e)return null;let t=e.getCoords(),n=n=>{let r=O?{rowIndex:t.rowStart+n,colIndex:t.colStart}:{rowIndex:t.rowStart,colIndex:t.colStart+n};return e.getCell(r).getText({hideStringPrefix:!0})||`–`},r=z.size,i=n(r-1);if(r===1)return{leading:``,tail:i};let a=64-i.length-3,o=[],s=0;for(let e=0;e<r-1;e++){let t=n(e),r=t.length+(e===0?0:2);if(s+r>a)break;o.push(t),s+=r}let c=o.length===r-1;return{leading:o.join(`, `),tail:`${o.length===0?``:c?`, `:` … `}${i}`}},[T,j,E,O,z]),V=r.bt(e=>{let t=e===`Fill`?E:void 0;b?.(t),x?.(t)},[E,b,x]),H=(0,p.useMemo)(()=>{let e=[];for(let t=0;t<_.length;t++){t>0&&e.push((0,m.jsx)(o.t,{component:`li`},`divider:${t}`));let n=_[t];for(let t=0;t<n.length;t++){let r=n[t];e.push((0,m.jsx)(d.t,{value:r,disabled:!A.has(r),children:w(o.nt[r])},r))}}return e},[A,w]),U=(e,t,n,r,i)=>(0,m.jsx)(u.t,{size:`small`,fullWidth:!0,className:e,label:w(t),placeholder:w(n),value:r??``,onChange:e=>{return i((t=e.target.value).trim()===``||isNaN(Number(t))?void 0:Number(t));var t},slotProps:{inputLabel:{shrink:!0},htmlInput:{spellCheck:!1,autoComplete:`off`,inputMode:`decimal`}},onContextMenu:e=>{e.stopPropagation()}});return(0,m.jsx)(s.v,{title:w(`fillSeries.title`),options:[{id:`Fill`,label:()=>w(`fillSeries.action`),disabled:()=>!j},`Cancel`],onDone:V,sx:{width:`440px`,...S},...C,children:(0,m.jsxs)(r.t,{sx:{display:`flex`,flexDirection:`column`,gap:e=>e.spacing(2)},children:[(0,m.jsxs)(c._,{children:[(0,m.jsx)(c.g,{sx:{fontSize:`0.75rem`},children:w(`fillSeries.seriesIn`)}),(0,m.jsx)(f.t,{row:!0,className:`sxl-fillSeries-direction`,value:E.direction,onChange:L,children:v.map(e=>(0,m.jsx)(l.t,{value:e.direction,control:(0,m.jsx)(f.n,{size:`small`}),label:w(e.label),disabled:k.get(e.direction)?.size===0},e.direction))})]}),(0,m.jsxs)(c._,{size:`small`,fullWidth:!0,className:`sxl-fillSeries-type`,children:[(0,m.jsx)(c.m,{id:`sxl-fillSeries-type-label`,children:w(`fillSeries.type`)}),(0,m.jsx)(c.t,{labelId:`sxl-fillSeries-type-label`,value:j?E.presetId:``,label:w(`fillSeries.type`),onChange:R,className:`autoFocus`,children:H})]}),!0===M?.supportsTrend&&(0,m.jsx)(l.t,{control:(0,m.jsx)(l.n,{size:`small`,checked:N,onChange:e=>I({trend:!!e.target.checked||void 0})}),label:w(`fillSeries.trend`),className:`sxl-fillSeries-trend`,sx:{marginTop:e=>e.spacing(-1)}}),(P||F)&&(0,m.jsxs)(r.t,{sx:{display:`flex`,flexDirection:`row`,gap:e=>e.spacing(1.5)},children:[P&&U(`sxl-fillSeries-step`,n.C(`fillSeries.stepValue`),n.C(`fillSeries.stepAuto`),E.stepValue,e=>I({stepValue:e})),F&&U(`sxl-fillSeries-stop`,n.C(`fillSeries.stopValue`),n.C(`fillSeries.stopNone`),E.stopValue,e=>I({stopValue:e}))]}),(0,m.jsxs)(r.t,{sx:{display:`flex`,flexDirection:`column`,minHeight:`2.75em`,paddingLeft:h,paddingRight:h},children:[(0,m.jsxs)(r.t,{className:`sxl-fillSeries-ranges`,sx:{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e=>e.spacing(.75),color:e=>e.palette.text.secondary},children:[(0,m.jsx)(s.N,{variant:`caption`,noWrap:!0,children:z?.template??``}),(0,m.jsx)(r.t,{sx:g}),(0,m.jsx)(s.N,{variant:`caption`,sx:{lineHeight:1},children:`→`}),(0,m.jsx)(r.t,{sx:g}),(0,m.jsx)(s.N,{variant:`caption`,noWrap:!0,children:z?.destination??``})]}),B?(0,m.jsxs)(r.t,{className:`sxl-fillSeries-preview`,sx:{display:`flex`,flexDirection:`row`,fontVariantNumeric:`tabular-nums`},children:[(0,m.jsx)(s.N,{variant:`body2`,component:`div`,noWrap:!0,sx:{minWidth:0},children:B.leading}),(0,m.jsx)(s.N,{variant:`body2`,component:`div`,noWrap:!0,sx:{flex:`0 0 auto`},children:B.tail})]}):(0,m.jsx)(s.N,{variant:`body2`,component:`div`,noWrap:!0,className:`sxl-fillSeries-previewNone`,sx:{color:e=>e.palette.text.disabled},children:w(`fillSeries.previewNone`)})]})]})})});exports.FillSeriesDialog=y,exports.default=y;
@@ -1,32 +0,0 @@
1
- const e=require("./B7_pDFYCVzt-3hUs.cjs"),t=require("./Ytzw6iUYx5f19wfK.cjs"),n=require("./C_T-ehCAzjaVRmTk.cjs"),r=require("./BdJvn1vLXMZvE-8h.cjs"),i=require("./CPcBvw4ZPwHVTUZF.cjs"),a=require("./CA_ZsYjkTHSpGK0j.cjs"),o=require("./GPlG4lbMP89VDHYJ.cjs"),s=require("./DCRe7NqRclU-Jr7p.cjs"),c=require("./D2ZPx3v4EVejvhR2.cjs"),l=require("./C19UoK2TTtKU_faS.cjs");var u=e.r(t.i(),1);function d(e){return r.m(`MuiSkeleton`,e)}r.p(`MuiSkeleton`,[`root`,`text`,`rectangular`,`rounded`,`circular`,`pulse`,`wave`,`withChildren`,`fitContent`,`heightAuto`]);var f=e.r(t.r(),1),p=o.Dt`
2
- 0% {
3
- opacity: 1;
4
- }
5
-
6
- 50% {
7
- opacity: 0.4;
8
- }
9
-
10
- 100% {
11
- opacity: 1;
12
- }
13
- `,m=o.Dt`
14
- 0% {
15
- transform: translateX(-100%);
16
- }
17
-
18
- 50% {
19
- /* +0.5s of delay between each loop */
20
- transform: translateX(100%);
21
- }
22
-
23
- 100% {
24
- transform: translateX(100%);
25
- }
26
- `,h=typeof p==`string`?null:o.Et`
27
- animation: ${p} 2s ease-in-out 0.5s infinite;
28
- `,g=typeof m==`string`?null:o.Et`
29
- &::after {
30
- animation: ${m} 2s linear 0.5s infinite;
31
- }
32
- `,_=o.ut(`span`,{name:`MuiSkeleton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(o.lt(({theme:e})=>{let t=(n=e.shape.borderRadius,String(n).match(/[\d.\-+]*\s*(.*)/)[1]||`px`);var n;let r=(i=e.shape.borderRadius,parseFloat(i));var i;let a=o.et(e,{animation:`none`}),s=o.et(e,{"&::after":{animation:`none`,display:`none`}});return{display:`block`,backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode===`light`?.11:.13),height:`1.2em`,variants:[{props:{variant:`text`},style:{marginTop:0,marginBottom:0,height:`auto`,transformOrigin:`0 55%`,transform:`scale(1, 0.60)`,borderRadius:`${r}${t}/${Math.round(r/.6*10)/10}${t}`,"&:empty:before":{content:`"\\00a0"`}}},{props:{variant:`circular`},style:{borderRadius:`50%`}},{props:{variant:`rounded`},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:`hidden`}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:`fit-content`}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:`auto`}},{props:{animation:`pulse`},style:h||{animation:`${p} 2s ease-in-out 0.5s infinite`}},...a?[{props:{animation:`pulse`},style:a}]:[],{props:{animation:`wave`},style:{position:`relative`,overflow:`hidden`,WebkitMaskImage:`-webkit-radial-gradient(white, black)`,"&::after":{background:`linear-gradient(\n 90deg,\n transparent,\n ${(e.vars||e).palette.action.hover},\n transparent\n )`,content:`""`,position:`absolute`,transform:`translateX(-100%)`,bottom:0,left:0,right:0,top:0}}},{props:{animation:`wave`},style:g||{"&::after":{animation:`${m} 2s linear 0.5s infinite`}}},...s?[{props:{animation:`wave`},style:s}]:[]]}})),v=u.forwardRef(function(e,t){let n=o.ct({props:e,name:`MuiSkeleton`}),{animation:i=`pulse`,className:a,component:s=`span`,height:c,style:l,variant:u=`text`,width:p,...m}=n,h={...n,animation:i,component:s,variant:u,hasChildren:!!m.children},g=(e=>{let{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:s}=e;return o._t({root:[`root`,n,r,i&&`withChildren`,i&&!a&&`fitContent`,i&&!s&&`heightAuto`]},d,t)})(h);return(0,f.jsx)(_,{as:s,ref:t,className:r.h(g.root,a),ownerState:h,...m,style:{width:p,height:c,...l}})}),y=`contents.json`,b=new TextDecoder,x=new Map;function S(e){let t=x.get(e);return t||(t=(async()=>{let t,n;try{t=await fetch(`${e}${e.endsWith(`/`)?``:`/`}${y}`)}catch{return null}if(!t.ok||(t.headers.get(`content-type`)??``).includes(`text/html`))return null;try{n=JSON.parse(await t.text())}catch{return null}if(!Array.isArray(n?.entries))return null;let r=new Set,i=new Set(Array.isArray(n.folders)?n.folders:[]);for(let e of n.entries){let t=e?.path;if(typeof t!=`string`)continue;r.add(t);let n=t.split(`/`);for(let e=1;e<n.length;e++)i.add(n.slice(0,e).join(`/`))}return{files:r,folders:i}})(),x.set(e,t)),t}function C(e,t){let n=(n,r,i)=>`${e}${e.endsWith(`/`)?``:`/`}${[...t(n,r),i].join(`/`)}`;return{id:e,describe:n,async read(e,t,r){let i;try{i=await fetch(n(e,t,r))}catch{return null}return i.ok?(i.headers.get(`content-type`)??``).includes(`text/html`)?null:new Uint8Array(await i.arrayBuffer()):null},async has(n,r,i){let a=await S(e);if(!a)return null;let o=t(n,r).join(`/`);return i==null?a.folders.has(o):a.files.has(`${o}/${i}`)},async list(n,r){let i=await S(e);if(!i)return null;let a=`${t(n,r).join(`/`)}/`;return[...i.files].filter(e=>e.startsWith(a)).map(e=>e.slice(a.length))}}}var w=[];async function T(e,t,n,r){return async function(e,t,n){let r=[];for(let i of e)if(!1!==(i.has?await i.has(t,n):null)){if(!1!==(i.has?await i.has(t,n,`contents.json`):null))try{let e=await i.read(t,n,y);if(e){r.push(JSON.parse(b.decode(e)));continue}}catch{}if(i.list)try{let e=(await i.list(t,n))?.filter(e=>e!==y);e?.length&&r.push({kind:t,package:n,entries:e.map(e=>({path:e}))})}catch{}}return r}(function(e){let t=[...w];return e&&t.push(C(e,(e,t)=>[t])),t.push(C(`/resources`,(e,t)=>[e,t])),t}(n),e,t)}var E=`8 / 5`,D=e=>{let{entry:t}=e,n=(a.ot()===`dark`?t.thumbnailDarkUrl:void 0)??t.thumbnailUrl;return(0,f.jsx)(O,{src:n},n)},O=e=>{let{src:t}=e,[i,a]=(0,u.useState)(t?`loading`:`failed`);return(0,f.jsx)(r.t,{className:`template-thumbnail`,sx:{position:`relative`,width:`100%`,aspectRatio:E,overflow:`hidden`,borderRadius:1,border:e=>`1px solid ${e.palette.divider}`,background:e=>e.palette.background.paper,transition:`border-color 150ms, box-shadow 150ms`,display:`flex`,alignItems:`center`,justifyContent:`center`},children:i===`failed`?(0,f.jsx)(n.r,{iconKey:`FileNew`,style:{fontSize:`2.5rem`,opacity:.4}}):(0,f.jsx)(`img`,{src:t,alt:``,loading:`lazy`,draggable:!1,onLoad:()=>a(`loaded`),onError:()=>a(`failed`),style:{width:`100%`,height:`100%`,objectFit:`cover`,objectPosition:`top left`,opacity:+(i===`loaded`),transition:`opacity 150ms ease-out`}})})},k=e=>{let{entry:t,category:n,onSelect:i}=e;return(0,f.jsxs)(o.L,{className:`template-tile`,disableRipple:!0,onClick:i,"aria-label":n?`${t.title}, ${n.title}`:t.title,title:t.description,sx:{display:`flex`,flexDirection:`column`,alignItems:`stretch`,textAlign:`left`,gap:.75,padding:1,borderRadius:1,"&:hover .template-thumbnail, &.Mui-focusVisible .template-thumbnail":{borderColor:e=>e.palette.primary.main,boxShadow:3},"&.Mui-focusVisible":{outline:e=>`2px solid ${e.palette.primary.main}`,outlineOffset:`-2px`}},children:[(0,f.jsx)(D,{entry:t}),(0,f.jsxs)(r.t,{sx:{minWidth:0},children:[(0,f.jsx)(o.N,{variant:`subtitle2`,component:`div`,noWrap:!0,children:t.title}),n?(0,f.jsx)(o.N,{variant:`caption`,component:`div`,noWrap:!0,sx:{color:`text.secondary`},children:n.title}):null]})]})},A=()=>(0,f.jsxs)(r.t,{sx:{padding:1,display:`flex`,flexDirection:`column`,gap:.75},children:[(0,f.jsx)(v,{variant:`rectangular`,sx:{width:`100%`,height:`auto`,aspectRatio:E,borderRadius:1}}),(0,f.jsx)(v,{variant:`text`,width:`60%`}),(0,f.jsx)(v,{variant:`text`,width:`35%`})]}),j=(0,u.memo)((0,u.forwardRef)((e,t)=>{let{catalog:n,onSelect:a,filter:s,groupBy:c,renderTile:l,tileMinWidth:d=180,emptyLabel:p,visibleRows:m,sx:h=r.qt.EmptyCssProperties,style:g,className:_,onKeyDown:v,...y}=e,b=r.en(),x=(0,u.useRef)(null),[S,C]=(0,u.useState)(0),w=(0,u.useRef)(null);w.current=()=>{let e=x.current?.querySelector(`.template-grid`)?.firstElementChild,t=(e?.offsetHeight?e:e?.firstElementChild)?.getBoundingClientRect().height;t&&C(t)},(0,u.useLayoutEffect)(()=>{m&&w.current?.()}),(0,u.useEffect)(()=>{let e=x.current;if(!m||!e)return;let t=new ResizeObserver(()=>w.current?.());return t.observe(e),()=>t.disconnect()},[m]);let T,E=(0,u.useMemo)(()=>new Map(n.categories.map(e=>[e.id,e])),[n.categories]),D=(0,u.useMemo)(()=>{let e=s?n.entries.filter(s):n.entries;if(!c)return[{key:null,entries:e}];let t=new Map;for(let e of n.categories)t.set(e.id,[]);for(let n of e){let e=c(n),r=t.get(e);r||t.set(e,r=[]),r.push(n)}return[...t].filter(([,e])=>e.length>0).map(([e,t])=>({key:e,title:E.get(e)?.title??e,entries:t}))},[n.entries,n.categories,E,s,c]),O={display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(${d}px, 1fr))`,gap:`8px`};return T=n.status===`loading`?(0,f.jsx)(r.t,{className:`template-grid`,sx:O,"aria-busy":`true`,"aria-label":b(`template.loading`),children:Array.from({length:6},(e,t)=>(0,f.jsx)(A,{},t))}):n.status===`error`?(0,f.jsxs)(r.t,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:1,padding:4,textAlign:`center`},children:[(0,f.jsx)(o.N,{variant:`body2`,sx:{color:`text.secondary`},children:b(`template.loadFailed`)}),(0,f.jsx)(o.D,{variant:`outlined`,size:`small`,onClick:n.retry,children:b(`template.retry`)})]}):D.every(e=>e.entries.length===0)?(0,f.jsx)(o.N,{variant:`body2`,sx:{color:`text.secondary`,padding:4,textAlign:`center`},children:p??b(`template.empty`)}):D.map(e=>(0,f.jsxs)(r.t,{role:`group`,"aria-label":e.title,children:[e.title?(0,f.jsx)(o.N,{variant:`overline`,component:`div`,sx:{color:`text.secondary`,paddingX:1},children:e.title}):null,(0,f.jsx)(r.t,{className:`template-grid`,sx:O,children:e.entries.map(e=>{let t={category:E.get(e.category),onSelect:()=>a?.(e)};return l?(0,f.jsx)(r.t,{sx:{display:`contents`},children:l(e,t)},e.id):(0,f.jsx)(k,{entry:e,...t},e.id)})})]},e.key??``)),(0,f.jsx)(r.t,{ref:t,className:i.t(_,`template-panel`),sx:h,style:m&&S?{boxSizing:`content-box`,scrollbarGutter:`stable`,height:`${Math.ceil(m*S+8*(m-1))}px`,minHeight:`${Math.ceil(S)}px`,...g}:g,...y,children:(0,f.jsx)(r.t,{ref:x,onKeyDown:e=>{if(v?.(e),e.defaultPrevented)return;let t=x.current;if(!t)return;let n=Array.from(t.querySelectorAll(`.template-tile`)),r=n.indexOf(document.activeElement);if(r<0)return;let i=n[r].offsetTop,a=n.findIndex(e=>e.offsetTop===i&&e.parentElement===n[r].parentElement),o=0;for(;n[a+o]?.offsetTop===i;)o++;let s=r;switch(e.key){case`ArrowRight`:s=r+1;break;case`ArrowLeft`:s=r-1;break;case`ArrowDown`:s=r+Math.max(1,o);break;case`ArrowUp`:s=r-Math.max(1,o);break;case`Home`:s=0;break;case`End`:s=n.length-1;break;default:return}s=Math.max(0,Math.min(n.length-1,s)),e.preventDefault(),n[s].focus()},children:T})})}));j.displayName=`TemplatePanel`;var M=(e,t,n)=>{let r=t.trim().toLowerCase();return!r||[e.title,e.description,n?.title,...e.tags??[]].some(e=>e?.toLowerCase().includes(r))},N=e=>{let{value:t,onChange:i,sx:a}=e,o=r.en();return(0,f.jsx)(s.t,{size:`small`,value:t,placeholder:o(`template.search`),onChange:e=>i(e.target.value),onKeyDown:e=>{e.key===`Escape`&&t&&(e.stopPropagation(),i(``))},sx:a,slotProps:{input:{sx:{backgroundColor:`background.paper`},startAdornment:(0,f.jsx)(l.t,{position:`start`,children:(0,f.jsx)(n.r,{iconKey:`Find`})}),endAdornment:t?(0,f.jsx)(l.t,{position:`end`,children:(0,f.jsx)(c.T,{"aria-label":o(`template.clearSearch`),propsTooltip:{label:o(`template.clearSearch`)},onMouseDown:e=>{e.button===0&&e.preventDefault()},onClick:()=>i(``),icon:(0,f.jsx)(n.r,{iconKey:`Close`}),size:`small`})}):void 0},htmlInput:{spellCheck:!1,autoComplete:`off`,"aria-label":o(`template.search`)}}})},P=`https://unpkg.com/@sheetxl/workbook-templates/dist`,F=`workbook-templates`,I=e=>e.replace(/\.[^/.]+$/,``).replace(/([a-z])([A-Z])/g,`$1 $2`).replace(/[-_]+/g,` `).trim().replace(/\b\w/g,e=>e.toUpperCase()),L=(e,t)=>{let n=`${e}${e.endsWith(`/`)?``:`/`}${F}/${t}`;return typeof document>`u`?n:new URL(n,document.baseURI).href},R=e=>typeof e==`string`&&e?e:void 0,z=new Map,B=(e=P)=>{let t=z.get(e);return t||(t=(async()=>{let t=(await T(`templates`,F,e)).find(e=>e.meta?.schema!==void 0);if(!t)throw Error(`No template catalog found at '${e}'.`);return Math.floor(Number(t.meta?.schema))===1?((e,t)=>{let n=Array.isArray(e.meta?.categories)?e.meta.categories:[],r=[],i=new Set;for(let e of n){let t=R(e?.id);t&&!i.has(t)&&(i.add(t),r.push({id:t,title:R(e.title)??I(t),description:R(e.description),icon:R(e.icon)}))}let a=[];for(let n of e.entries){let e=n.path,o=e.split(`/`);if(o.length!==2||!/\.(?:xlsx|sxl|csv)$/i.test(e))continue;let s=R(n.category)??o[0];i.has(s)||(i.add(s),r.push({id:s,title:I(s)}));let c=R(n.thumbnail),l=R(n.thumbnailDark);a.push({id:e,title:R(n.title)??I(o[1]),category:s,description:R(n.description),tags:Array.isArray(n.tags)?n.tags.filter(e=>typeof e==`string`):void 0,thumbnailUrl:c?L(t,c):void 0,thumbnailDarkUrl:l?L(t,l):void 0,sourceUrl:L(t,e)})}return{categories:r,entries:a}})(t,e):(console.warn(`Template catalog at '${e}' has schema ${t.meta?.schema}; expected 1.`),{categories:[],entries:[]})})(),z.set(e,t),t.catch(()=>{z.delete(e)})),t},V=(e={})=>{let{path:t=P}=e,[n,r]=(0,u.useState)(0),[i,a]=(0,u.useState)({status:`loading`,categories:[],entries:[]});return(0,u.useEffect)(()=>{let e=!1;return a(e=>e.status===`loading`?e:{status:`loading`,categories:[],entries:[]}),B(t).then(t=>{e||a({status:`ready`,...t})},t=>{e||a({status:`error`,categories:[],entries:[],error:t})}),()=>{e=!0}},[t,n]),{...i,retry:(0,u.useCallback)(()=>{r(e=>e+1)},[])}};Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return M}});
@@ -1 +0,0 @@
1
- const e=require("./DLtFM988NCD-jeBV.cjs"),t=require("./BPWKnUtyoTrtW567.cjs"),n=require("./CH7BUjrXIKDIE7XE.cjs"),r=require("./DP1pufP3NJFoDa-g.cjs"),i=require("./CHMgm0vAbEBS1mVW.cjs"),a=require("./TZQc-szdIVnHDH6F.cjs"),o=require("./DZBKNR9xUMTHWS_D.cjs");var s=class{constructor(e){this.list=e}get length(){return this.list.length}item(e){return this.list[e]}forEach(e,t){let n=this.list,r=n.length;for(let t=0;t<r;t++)e(n[t],t,this)}entries(){return this.list.entries()}keys(){return this.list.keys()}values(){return this.list.values()}[Symbol.iterator](){return this.list.values()}},c=e=>!0===e||e===`1`||e===`on`||e===`true`||!1!==e&&e!==`0`&&e!==`off`&&e!==`false`&&null,l=e=>{let t=parseInt(e);return isNaN(t)?null:t},u=e=>{let t=parseFloat(e);return isNaN(t)?null:t},d=new Map,f=class{constructor(t,n,r,i,a,o=null,s=e.R.EmptyObject){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)}getRef(e,t=!1){return this._getRef?.(e,this._fileLocation,t)??null}readEmbeddedPart(e){return this._readEmbeddedPart?.(e,this._fileLocation)??null}getRelationships(){return this._getRefs?.(this._fileLocation)??d}getPath(){return this.currentPath}getFileLocation(){return this._fileLocation}getElemRoot(){return this.elemRoot}getJsonRoot(){return this.jsonRoot}warn(e,t){this._raiseWarning(e,this.getFileLocation(),t?.onceKey)}_raiseWarning(e,t,n){this._onWarning?this._onWarning(e,t,n):this._parent?this._parent._raiseWarning(e,t,n):console.warn(e)}serializeElement(e){return this._serializeElement?.(e)??null}addPerson(e){return typeof e==`string`&&(e={displayName:e}),this._addPerson?this._addPerson(e):this._parent?this._parent?._addPerson?.(e)??null:null}getVisitorParamsState(){return this.sharedShared.getVisitorParamsState()}evaluate(e,t){if(!e)return t;let n=[t],r=e.split(`/`),i=r.length;for(let e=0;e<i;e++){let t=r[e];if(t===``||t===`.`)continue;let a=[],o=(t===`*`||t===`**`)&&e!==i-1;for(let i of n)if(i)if(o){let t=r[e+1];t&&t!==``&&t!==`.`&&(this._findDescendants(i,t,a),e++)}else if(t===`*`||t===`**`){if(!i.childNodes)continue;let e=i.childNodes,t=e.length;for(let n=0;n<t;n++){let t=e[n];t.nodeType===1&&a.push(t)}}else{if(!i.childNodes)continue;let e=i.childNodes,n=e.length;for(let r=0;r<n;r++){let n=e[r];if(n.nodeType!==1)continue;let i=n;this._matchesElementName(i,t)&&a.push(i)}}if(n=a,n.length===0)return null}return n.length===1?n[0]:n.length===0?null:new s(n)}_matchesElementName(e,t){return t.includes(`:`)?(e.tagName||e.nodeName)===t:e.localName===t}_findDescendants(e,t,n){if(!e||!e.childNodes)return;let r=e.childNodes,i=r.length;for(let e=0;e<i;e++){let i=r[e];if(i.nodeType!==1)continue;let a=i;this._matchesElementName(a,t)&&n.push(a),this._findDescendants(a,t,n)}}getFromPath(t,n){return e.R.getFromPath(t,n)}setToPath(t,n,r){return e.R.setToPath(t,n,r)}getValAttrAsString(e,t){let n=this.evaluate(e,t);return n&&n.hasAttribute(`val`)?n.getAttribute(`val`)??null:null}getValAttrAsBoolean(e,t,n=!1){let r=this.evaluate(e,t);if(!r)return null;let i=r.hasAttribute(`val`)?r.getAttribute(`val`):void 0;return i==null?n:i===`1`||i===`on`||i===`true`||i!==`0`&&i!==`off`&&i!==`false`&&n}getValAttrAsInteger(e,t){let n=this.evaluate(e,t);return n&&n.hasAttribute(`val`)?parseInt(n.getAttribute(`val`))??null:null}getValAttrAsFloat(e,t){let n=this.evaluate(e,t);return n&&n.hasAttribute(`val`)?parseFloat(n.getAttribute(`val`))??null:null}get BOOLEAN_COPY(){return c}get INT_COPY(){return l}get FLOAT_COPY(){return u}copyFromAttribute(e,t,n,r=t,i=null){if(!e||!n||!e.hasAttribute(t))return;let a=e.getAttribute(t);if(i){if(Array.isArray(i)){let e=i.length;for(let t=0;t<e;t++)if(a==null||(a=i[t](a),a==null))return}else if(a==null||(a=i(a),a==null))return}this.setToPath(n,r,a)}},p=i.r({isBlank:()=>y,isNotBlank:()=>b,length:()=>ee,parseRotation:()=>m,parseValAttrAsBoolean:()=>g,parseValAttrAsFloat:()=>v,parseValAttrAsInteger:()=>_,parseValAttrAsString:()=>h}),m=(t,n)=>{if(!t||!t.hasAttribute(`rot`))return;let r=t.getAttribute(`rot`),i=e.R.roundAccurately(o.r(r),2);i!==-1e3&&(n.rotation=i)},h=(e,t,n,r,i)=>{let a=e.getValAttrAsString(r,t);a!==null&&(n[i]=a)},g=(e,t,n,r,i=r,a=null)=>{let o=e.getValAttrAsBoolean(r,t,a);o!==null&&(n[i]=o)},_=(e,t,n,r,i)=>{let a=e.getValAttrAsInteger(r,t);a!==null&&(n[i]=a)},v=(e,t,n,r,i,a=1)=>{let o=e.getValAttrAsFloat(r,t);o!==null&&(n[i]=o*a)},y=e=>!e||e.trim().length===0,b=e=>!y(e),ee=e=>e?.length??0,x=class{constructor(e){this.jsonKey=e}visit(e,t,n){let r={};return n[this.jsonKey]=r,r}},S=class{visit(e,t,n){}getStroke(e,t){let n=e.evaluate(`ln`,t);return n?this.parseLn(e,n):{}}parseLn(e,t){let n={};t.hasAttribute(`algn`)&&(n.align=t.getAttribute(`algn`)),t.hasAttribute(`cap`)&&(n.lineCap=w(t.getAttribute(`cap`))),t.hasAttribute(`cmpd`)&&(n.compound=t.getAttribute(`cmpd`)),t.hasAttribute(`w`)&&(n.width=o.f(t.getAttribute(`w`)));let r=e.evaluate(`miter`,t);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`);let i=e.evaluate(`custDash`,t);if(i){let t=e.evaluate(`ds`,i);if(t&&t.length>0){let e=[];for(let n=0;n<t.length;n++){let r=t.item(n);e.push(o.m(r.getAttribute(`d`)??``)),e.push(o.m(r.getAttribute(`sp`)??``))}n.dash=e}}let a=e.evaluate(`prstDash`,t);a&&a.hasAttribute(`val`)&&(n.dash=a.getAttribute(`val`)),this.parseEndElement(e,t,n,`headEnd`,`head`),this.parseEndElement(e,t,n,`tailEnd`,`tail`);let s=this.getFill(e,t);return s&&(n.fill=s),n}parseEndElement(e,t,n,r,i){let a=e.evaluate(r,t);if(a&&(a.hasAttribute(`type`)&&(n[i+`Type`]=a.getAttribute(`type`)),a.hasAttribute(`len`)||a.hasAttribute(`w`))){let e=a.getAttribute(`len`)||`med`,t=a.getAttribute(`w`)||`med`;n[i+`Size`]=e+`-`+t}}getEffects(e,t){let n=e.evaluate(`effectLst`,t);if(!n)return null;let r=[],i=n.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1)continue;let a=this.processEffectElement(e,n,n.localName);if(a===void 0)return;r.push(a)}return r}processEffectElement(e,t,n){switch(n){case`outerShdw`:{let n={type:r.p.Type.OuterShadow,color:this.processAdjColor(e,t)};return t.hasAttribute(`dist`)&&(n.distance=o.f(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(n.angle=o.r(t.getAttribute(`dir`))),t.hasAttribute(`blurRad`)&&(n.blur=o.f(t.getAttribute(`blurRad`))),t.hasAttribute(`algn`)&&(n.alignment=t.getAttribute(`algn`)),t.hasAttribute(`rotWithShape`)&&(n.isRotatedWithShape=o.t(t.getAttribute(`rotWithShape`))),t.hasAttribute(`sx`)&&(n.scaleX=o.m(t.getAttribute(`sx`))),t.hasAttribute(`sy`)&&(n.scaleY=o.m(t.getAttribute(`sy`))),t.hasAttribute(`kx`)&&(n.skewX=o.r(t.getAttribute(`kx`))),t.hasAttribute(`ky`)&&(n.skewY=o.r(t.getAttribute(`ky`))),n}case`innerShdw`:{let n={type:r.p.Type.InnerShadow,color:this.processAdjColor(e,t)};return t.hasAttribute(`dist`)&&(n.distance=o.f(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(n.angle=o.r(t.getAttribute(`dir`))),t.hasAttribute(`blurRad`)&&(n.blur=o.f(t.getAttribute(`blurRad`))),n}case`prstShdw`:{let n={type:r.p.Type.PresetShadow,color:this.processAdjColor(e,t),preset:t.getAttribute(`prst`)??void 0};return t.hasAttribute(`dist`)&&(n.distance=o.f(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(n.angle=o.r(t.getAttribute(`dir`))),n}case`glow`:{let n={type:r.p.Type.Glow,color:this.processAdjColor(e,t)};return t.hasAttribute(`rad`)&&(n.radius=o.f(t.getAttribute(`rad`))),n}case`softEdge`:{let e={type:r.p.Type.SoftEdge};return t.hasAttribute(`rad`)&&(e.radius=o.f(t.getAttribute(`rad`))),e}case`reflection`:{let e={type:r.p.Type.Reflection};return t.hasAttribute(`blurRad`)&&(e.blur=o.f(t.getAttribute(`blurRad`))),t.hasAttribute(`dist`)&&(e.distance=o.f(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(e.angle=o.r(t.getAttribute(`dir`))),t.hasAttribute(`fadeDir`)&&(e.fadeAngle=o.r(t.getAttribute(`fadeDir`))),t.hasAttribute(`stA`)&&(e.startAlpha=o.m(t.getAttribute(`stA`))),t.hasAttribute(`stPos`)&&(e.startPosition=o.m(t.getAttribute(`stPos`))),t.hasAttribute(`endA`)&&(e.endAlpha=o.m(t.getAttribute(`endA`))),t.hasAttribute(`endPos`)&&(e.endPosition=o.m(t.getAttribute(`endPos`))),t.hasAttribute(`sx`)&&(e.scaleX=o.m(t.getAttribute(`sx`))),t.hasAttribute(`sy`)&&(e.scaleY=o.m(t.getAttribute(`sy`))),t.hasAttribute(`kx`)&&(e.skewX=o.r(t.getAttribute(`kx`))),t.hasAttribute(`ky`)&&(e.skewY=o.r(t.getAttribute(`ky`))),t.hasAttribute(`algn`)&&(e.alignment=t.getAttribute(`algn`)),t.hasAttribute(`rotWithShape`)&&(e.isRotatedWithShape=o.t(t.getAttribute(`rotWithShape`))),e}default:return}}getFill(e,t){if(e.evaluate(`noFill`,t))return{type:n.E.Type.None};let r=e.evaluate(`solidFill`,t);if(r){let t=this.processAdjColor(e,r);if(t)return{type:n.E.Type.Solid,color:t}}let i=e.evaluate(`gradFill`,t);if(i)return this.processGradFill(e,i);let a=e.evaluate(`pattFill`,t);if(a)return this.processPatternFill(e,a);let o=e.evaluate(`blipFill`,t);return o?this.processImageFill(e,o):null}processGradFill(e,t){let r={type:n.E.Type.Gradient};t.hasAttribute(`rotWithShape`)&&(r.isRotatedWithShape=t.getAttribute(`rotWithShape`)===`1`);let i=e.evaluate(`lin`,t);i&&(r.gradientType=n.E.GradientType.Linear,i.hasAttribute(`ang`)&&(r.angle=o.r(i.getAttribute(`ang`))),i.hasAttribute(`scaled`)&&(r.scaled=o.t(i.getAttribute(`scaled`))));let a={};t.hasAttribute(`flip`)&&(a.mirror=t.getAttribute(`flip`)),Object.keys(a).length>0&&(r.tile=a);let s=e.evaluate(`path`,t);if(s){s.hasAttribute(`path`)&&(r.gradientType=C(s.getAttribute(`path`)));let t=e.evaluate(`fillToRect`,s);t&&(r.focus=this.getRect(t))}let c=e.evaluate(`tileRect`,t);c&&(r.tile||={},r.tile.bounds=this.getRect(c));let l=[],u=e.evaluate(`gsLst/gs`,t),d=u?u.length:0;for(let t=0;t<d;t++){let n=u.item(t),r={offset:o.m(n.getAttribute(`pos`)??``),color:this.processAdjColor(e,n)};l.push(r)}return l.length>0&&(r.stops=l),r}getRect(e){let t={};return e.hasAttribute(`t`)&&(t.t=o.m(e.getAttribute(`t`))),e.hasAttribute(`l`)&&(t.l=o.m(e.getAttribute(`l`))),e.hasAttribute(`b`)&&(t.b=o.m(e.getAttribute(`b`))),e.hasAttribute(`r`)&&(t.r=o.m(e.getAttribute(`r`))),Object.keys(t).length===0?null:t}processImageFill(e,t){let r={type:n.E.Type.Image};return t.hasAttribute(`rotWithShape`)&&(r.isRotatedWithShape=o.t(t.getAttribute(`rotWithShape`))),t.hasAttribute(`dpi`)&&(r.dpi=t.getAttribute(`dpi`)),r.ref=`https://www.sheetxl.com/logo-color-padded-white.jpg`,r.tile=!1,r}processPatternFill(e,t){let r={type:n.E.Type.Pattern};r.patternType=t.getAttribute(`prst`);let i=e.evaluate(`bgClr`,t);if(i){let t=this.processAdjColor(e,i);t&&(r.background=t)}let a=e.evaluate(`fgClr`,t);if(a){let t=this.processAdjColor(e,a);t&&(r.foreground=t)}return r}processAdjColor(e,t){let n=e.evaluate(`hslClr`,t);if(n)return this.processHslClr(e,n);let r=e.evaluate(`prstClr`,t);if(r)return this.processClrWithValAttribute(e,r);let i=e.evaluate(`schemeClr`,t);if(i)return this.processClrWithValAttribute(e,i);let a=e.evaluate(`sysClr`,t);if(a){let t=this.processClrWithValAttribute(e,a),n=a.getAttribute(`lastClr`);return t&&n&&(t+=` lastClr ${n}`),t}let o=e.evaluate(`scrgbClr`,t);if(o)return this.processScrgbClrElement(e,o);let s=e.evaluate(`srgbClr`,t);return s?this.processSrgbClrElement(e,s):null}processScrgbClrElement(e,t){let n=`lrgba(`+o.m(t.getAttribute(`r`)??``)+`,`+o.m(t.getAttribute(`g`)??``)+`,`+o.m(t.getAttribute(`b`)??``)+`)`;return n+=this.processAdjustments(e,t),n}processSrgbClrElement(e,t){let n=t.getAttribute(`val`);return n+=this.processAdjustments(e,t),n}processHslClr(e,t){let n=`hsl(`+o.r(t.getAttribute(`hue`)??``)+`,`+o.m(t.getAttribute(`sat`)??``)+`,`+o.m(t.getAttribute(`lum`)??``)+`)`;return n+=this.processAdjustments(e,t),n}processClrWithValAttribute(e,t){let n=t.getAttribute(`val`);if(!n)return null;let r=n;return r+=this.processAdjustments(e,t),r}processAdjustments(e,t){let n=``,r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);if(i.nodeType===1){let t=i.localName;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)}}return n}processAdjustmentElement(e,t,n,r=1e3){let i=t.getAttribute(`val`);return i?` ${n} ${!i||parseFloat(i)/r}`:` ${n}`}},C=e=>e===`circle`?`radial`:e,w=e=>{if(e===`rnd`)return`round`;if(e===`flat`)return`butt`;if(e===`sq`)return`square`;throw Error(`Invalid lineCap type: `+e)},T=class extends S{visit(e,t,n){try{let r=e.evaluate(`xfrm`,t);if(r){m(r,n);let t={x:0,y:0,width:0,height:0},i=e.evaluate(`off`,r);i&&(t.x=o.h(i.getAttribute(`x`))??0,t.y=o.h(i.getAttribute(`y`))??0);let a=e.evaluate(`ext`,r);i&&(t.width=o.h(a.getAttribute(`cx`))??0,t.height=o.h(a.getAttribute(`cy`))??0),n.bounds=t}let i=e.evaluate(`prstGeom`,t);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`});let a=this.getFill(e,t);a&&Object.keys(a).length>0&&(n.fill=a);let s=this.getStroke(e,t);return s&&Object.keys(s).length>0&&(n.stroke=s),n}catch(t){e.warn(`Unable to read shape properties: ${t?.message??t}`,{onceKey:`xlsx.shape.unreadable`})}}},E=class{visit(e,t,n){let r={};if(h(e,t,r,`grouping`,`grouping`),g(e,t,r,`varyColors`,`varyColors`),v(e,t,r,`gapWidth`,`gapWidth`,.01),v(e,t,r,`overlap`,`overlap`,.01),this.parseType(e,t,r),_(e,t,r,`bubbleScale`,`bubbleScale`),g(e,t,r,`showNegBubbles`,`showNegativeBubbleValues`),g(e,t,r,`sizeRepresents`,`bubbleSizeRepresentsWidth`),_(e,t,r,`firstSliceAng`,`startAngle`),_(e,t,r,`holeSize`,`holeSize`),h(e,t,r,`scatterStyle`,`scatterStyle`),this.parseAxisIds(e,t,r),Object.keys(r).length>0){let t=e.getVisitorParamsState().get(`types`);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)}return r}parseType(e,t,n){switch(t.localName){case`areaChart`:n.type=`area`;break;case`bubbleChart`:n.type=`bubble`;break;case`doughnutChart`:case`ofPieType`:case`pieChart`:n.type=`pie`;break;case`lineChart`:n.type=`line`;break;case`scatterChart`:n.type=`scatter`}}parseAxisIds(e,t,n){let r=e.evaluate(`axId`,t);r&&r.length!==0&&(n.xAxisId=r.item(0).getAttribute(`val`),n.yAxisId=r.item(1).getAttribute(`val`))}},D=(e,t,n)=>{if(!0===e.getValAttrAsBoolean(`invertIfNegative`,t))if(e.evaluate(`extLst/ext/invertSolidFillFmt`,t)){if(n.fill&&n.fillNegative){let t=e.getFromPath(n,`fill.solid.adjs`);t&&e.setToPath(n,`fillNegative.solid.adjs`,t)}}else{let e={val:`FFFFFF`},t={};t.solid=e,n.fillNegative=t;let r={val:`000000`},i={};i.solid=r;let a={};a.fill=i,n.strokeNegative=a}},O=class extends S{constructor(e=`text`){super(),this._jsonKey=e}getTextPath(){return this._jsonKey}visit(e,t,n){let r=e.getFromPath(n,this.getTextPath());return r||={},this.parseTextElement(e,t,r,!1),Object.keys(r).length>0&&e.setToPath(n,this.getTextPath(),r),n}parseTextElement(e,t,n,r){let i=e.evaluate(`p/pPr/defRPr`,t)??e.evaluate(`defRPr`,t),a=i?.length===void 0?i:i.item(0);a&&(this.parseTextProperties(e,a,n),new T().visit(e,a,n));let o=n.runs??[],s=e.evaluate(`p/r`,t)??e.evaluate(`r`,t),c=t=>{let n={},r=e.evaluate(`t`,t),i=e.evaluate(`rPr`,t);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)};if(s?.length!==void 0)for(let e=0;s&&e<s.length;e++)c(s.item(e));else c(s||t);o.length>0&&(n.runs=o);let l=e.evaluate(`bodyPr`,t);l&&m(l,n)}parseTextProperties(e,t,r){if(!t)return;t.hasAttribute(`sz`)&&(r.size=parseFloat(t.getAttribute(`sz`))/100),t.hasAttribute(`b`)&&(r.weight=t.getAttribute(`b`)===`1`?700:400),t.hasAttribute(`i`)&&(r.italic=t.getAttribute(`i`)===`1`),t.hasAttribute(`u`)&&(r.underline=t.getAttribute(`u`)),t.hasAttribute(`strike`)&&(r.strike=t.getAttribute(`strike`));let i=this.getFill(e,t);i&&Object.keys(i).length>0&&(r.color=i);let a=e.evaluate(`latin`,t);if(a&&!a.getAttribute(`typeface`).startsWith(`+`)){let e=r.font??{};if(a.hasAttribute(`typeface`)&&(e.family=a.getAttribute(`typeface`)),a.hasAttribute(`panose`)){let t=a.getAttribute(`panose`);t&&(e.fallbacks=[n.b.getPanoseFallback(t)])}a.hasAttribute(`pitchFamily`)&&(e.pitch=a.getAttribute(`pitchFamily`)),a.hasAttribute(`charset`)&&(e.charset=a.getAttribute(`charset`)),Object.keys(e).length>0&&(r.font=e)}}},k=class{visit(e,t,n){}processDataBarColor(e,t,n,r,i=`auto`){if(!t)return;let a=o.l(e=>t.getAttribute(e),i);return a&&(n[r]=a),n}processFonts(e,t,n){if(!t)return;let r=t.childNodes,i=0,a=r.length;for(let t=0;t<a;t++){let a=r.item(t);if(a.nodeType===1&&a.localName===`font`){let t={};this.processFont(e,a,t),n[i++]=t}}return n}processFont(e,t,r){e.getValAttrAsBoolean(`b`,t,!0)&&(r.weight=700),e.getValAttrAsBoolean(`i`,t,!0)&&(r.style=n.b.Style.Italic),e.getValAttrAsBoolean(`strike`,t,!0)&&(r.strike=!0);let i=e.evaluate(`u`,t);i&&(r.underline=i.getAttribute(`val`)||n.b.UnderlineStyle.Single),h(e,t,r,`vertAlign`,`verticalAlign`),r.verticalAlign===`superscript`?r.verticalAlign=n.b.VerticalAlignment.Super:r.verticalAlign===`subscript`&&(r.verticalAlign=n.b.VerticalAlignment.Sub),v(e,t,r,`sz`,`size`);let a=e.evaluate(`color`,t);this.processDataBarColor(e,a,r,`color`),r.color||=`auto`,h(e,t,r,`name`,`family`),h(e,t,r,`rFont`,`family`);let o=e.evaluate(`family`,t);if(o){let e=o.getAttribute(`val`);if(e)switch(e){case`1`:r.fallbacks=[`serif`];break;case`2`:r.fallbacks=[`sans-serif`];break;case`3`:r.fallbacks=[`monospace`];break;case`4`:r.fallbacks=[`cursive`];break;case`5`:r.fallbacks=[`fantasy`]}}return h(e,t,r,`scheme`,`scheme`),r.family!==void 0&&r.scheme===void 0&&(r.scheme=n.b.Scheme.None),g(e,t,r,`shadow`,`shadow`,!0),g(e,t,r,`outline`,`outline`,!0),e.getValAttrAsBoolean(`condense`,t,!0)&&(r.letterSpacing=-1),e.getValAttrAsBoolean(`extend`,t,!0)&&(r.letterSpacing=1),_(e,t,r,`charset`,`charset`),r}processFills(e,t,n){if(!t)return;let r=t.childNodes,i=0,a=r.length;for(let t=0;t<a;t++){let a=r.item(t);a.nodeType===1&&a.localName===`fill`&&this.processFill(e,a,n,i++)}return n}processFill(e,t,r,i){let a={type:n.E.Type.None},o=t.childNodes,s=!1,c=o.length;for(let t=0;!s&&t<c;t++){let n=o.item(t);n.nodeType===1&&(n.localName===`gradientFill`?(this.processGradientFill(e,n,a),s=!0):n.localName===`patternFill`&&(this.processPatternFill(e,n,a),s=!0))}return r[i]=a,r}processGradientFill(e,t,r){if(!t)return;r.type=n.E.Type.Gradient;let i=[];r.stops=i;let a=t.getAttribute(`type`);a&&(r.gradientType=a);let o=t.hasAttribute(`degree`)?parseFloat(t.getAttribute(`degree`)):0;(o+90)%360!=0&&(r.angle=(o+90)%360),(t.hasAttribute(`left`)||t.hasAttribute(`top`)||t.hasAttribute(`right`)||t.hasAttribute(`bottom`))&&(r.focus={left:A(t.getAttribute(`left`)),top:A(t.getAttribute(`top`)),right:A(t.getAttribute(`right`)),bottom:A(t.getAttribute(`bottom`))});let s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType===1&&n.localName===`stop`){let t={};i.push(t),t.offset=parseFloat(n.getAttribute(`position`)??``);let r=e.evaluate(`color`,n);this.processDataBarColor(e,r,t,`color`)}}return r}processPatternFill(e,t,r){if(!t)return;let i=e.getVisitorParamsState().get(`processingDXFs`),a=t.getAttribute(`patternType`)||(i?n.E.BuiltInSheetPattern.Solid:n.E.BuiltInSheetPattern.None);if(a===n.E.BuiltInSheetPattern.None)return{none:!0};r.type=n.E.Type.Pattern,a&&(r.patternType=a);let o=`foreground`,s=`background`,c=r.patternType===n.E.BuiltInSheetPattern.Solid&&i,l=c?`dk1`:`lt1`,u=c?`lt1`:`dk1`;if(c){let e=o;o=s,s=e}let d=e.evaluate(`fgColor`,t);this.processDataBarColor(e,d,r,o,l);let f=e.evaluate(`bgColor`,t);return this.processDataBarColor(e,f,r,s,u),c&&(r.foreground||=`lt1`,r.background||=`dk1`),r}processBorders(e,t,n,r){if(!t)return;let i=t.childNodes,a=0,o=i.length;for(let t=0;t<o;t++){let o=i.item(t);o.nodeType===1&&o.localName===`border`&&this.processBorder(e,o,n,a++,r)}return n}processBorder(e,t,r,i,a){if(!t)return;let o={};return this.processBorderStroke(e,t,o,n.W.Edge.Left),this.processBorderStroke(e,t,o,n.W.Edge.Right),a?(o.right||o.left)&&(o.right?o.vertical={...o.right}:o.vertical={...o.left}):this.processBorderStroke(e,t,o,n.W.Edge.Vertical),this.processBorderStroke(e,t,o,n.W.Edge.Top),this.processBorderStroke(e,t,o,n.W.Edge.Bottom),a?(o.bottom||o.top)&&(o.bottom?o.horizontal={...o.bottom}:o.horizontal={...o.top}):this.processBorderStroke(e,t,o,n.W.Edge.Horizontal),r[i]=o,r}processBorderStroke(e,t,r,i){if(!t)return;let a=e.evaluate(i,t);if(!a)return;let o={};a.hasAttribute(`style`)?o.style=a.getAttribute(`style`):e.getVisitorParamsState().get(`processingDXFs`)&&(o.style=n.W.StrokeStyle.None);let s=e.evaluate(`color`,a);return s&&this.processDataBarColor(e,s,o,`color`),Object.keys(o).length>0?r[i]=o:null}},A=e=>{if(!e)return 0;let t=parseFloat(e);return isNaN(t)?0:t},j={auto:`auto`,autoNoTable:`automaticExceptTables`,manual:`manual`},M=class{visit(e,t,n){if(!t)return;let r=e.evaluate(`*/cNvPr`,t);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}},N=class extends M{visit(e,t,n){if(!t)return;if(e.getPath().includes(`Fallback`)&&n.content){let r=n.content.json;return n.content.type===`sp`&&r?.xml&&r.fallbackXml===void 0&&(r.fallbackXml=e.serializeElement(t)??void 0),n}n=super.visit(e,t,n);let r=e.evaluate(`nvSpPr/cNvSpPr`,t);if(r){let t=e.evaluate(`spLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}let i=e.evaluate(`*/cNvPr`,t);i?.item&&(i=i.item(0));let a=i?.getAttribute?.(`id`),o=a?parseInt(a,10):void 0,s={type:`sp`,xml:e.serializeElement(t)??void 0,sourceId:o===void 0||isNaN(o)?void 0:o};return n.content={type:`sp`,json:s},s}},P=`richTypes`,F=`richData`;function te(e,t){let n=e.childNodes;for(let e=0;e<n.length;e++){let r=n.item(e);if(r.nodeType===1)switch(r.localName){case`b`:t.bold=r.getAttribute(`val`)!==`0`&&r.getAttribute(`val`)!==`false`;break;case`i`:t.italic=r.getAttribute(`val`)!==`0`&&r.getAttribute(`val`)!==`false`;break;case`sz`:{let e=parseFloat(r.getAttribute(`val`)??``);isNaN(e)||(t.size=e);break}case`rFont`:{let e=r.getAttribute(`val`);e&&(t.font=e);break}case`color`:{let e=r.getAttribute(`rgb`);e&&(t.color=`#`+(e.length===8?e.substring(2):e));break}}}}var ne=class{visit(e,t,n){if(!t)return;let r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);i.nodeType===1&&i.localName===`Relationship`&&this.processRelationship(e,i,n)}return n}processRelationship(e,t,n){let r={};e.copyFromAttribute(t,`Target`,r,`target`),e.copyFromAttribute(t,`Type`,r,`type`),e.copyFromAttribute(t,`TargetMode`,r,`targetMode`),n[t.getAttribute(`Id`)]=r}},re=class{visit(e,t,n){let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1)continue;let a=this.processProperty(e,n);a&&r.push(a)}return r.length>0&&(n.properties=r),r}processProperty(e,t){if(t)return t.getAttribute(`xsi:type`),{key:t.localName,value:t.textContent||``}}},ie=class{visit(e,t,n){let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1)continue;let a=this.processProperty(e,n);a&&r.push(a)}return r.length>0&&(n.properties=r),r}processProperty(e,t){if(t)return{key:t.localName,value:t.textContent||``}}},I=class{visit(e,t,n){return g(e,t,n,`roundedCorners`,`roundedCorners`),_(e,t,n,`.//AlternateContent/Fallback/style`,`styleId`),e.getVisitorParamsState().set(`types`,[]),e.getVisitorParamsState().set(`axes`,new Map),n.range=null,n}afterVisit(e,t,n){let r={};n.types=r;let i={},a=0,o={},s=0,c=e.getVisitorParamsState().get(`axes`),l=e.getVisitorParamsState().get(`types`),u=l.length;for(let e=0;e<u;e++){let t=l[e];if(t.xAxisId){let r=t.xAxisId,o=c.get(r);i[e+``]=o,t.offsetXAxis=e,delete t.xAxisId,n.xAxes=i,i.length=++a}if(t.yAxisId){let r=t.yAxisId,i=c.get(r);o[e+``]=i,t.offsetYAxis=e,delete t.yAxisId,n.yAxes=o,o.length=++s}r[e+``]=t}r.length=l.length;let d=e.getVisitorParamsState().get(`series`);if(!d||d.length===0)return;let f={};n.series=f;let p=d.length;for(let e=0;e<p;e++)f[e+``]=d[e];f.length=p,e.getVisitorParamsState().delete(`types`),e.getVisitorParamsState().delete(`axes`),e.getVisitorParamsState().delete(`series`)}},L=class{visit(e,t,n){let r={};return n.plotArea=r,r}},R=T,z=class extends E{parseType(e,t,n){let r=e.getValAttrAsString(`barDir`,t);r&&(n.type=r===`col`?`column`:`bar`)}},B=E,V=class{constructor(e){this.jsonKey=e}visit(e,t,n){let r={},i=r,a=e.getValAttrAsString(`idx`,t);a!==null&&(i={},i[a]=r);let o=e.getValAttrAsBoolean(`delete`,t);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):(g(e,t,r,`showBubbleSize`,`showBubbleSize`),g(e,t,r,`showCatName`,`showCatName`),g(e,t,r,`showLeaderLines`,`showLeaderLines`),g(e,t,r,`showPercent`,`showPercentage`),g(e,t,r,`showSerName`,`showSerName`),g(e,t,r,`showVal`,`showVal`),g(e,t,r,`showLegendKey`,`showLegendKey`));let s=e.evaluate(`separator`,t);return s!==null&&(r.separator=s.textContent),h(e,t,r,`dLblPos`,`position`),n[this.jsonKey]=i,r}parseNumFormat(e,t,n){let r=e.evaluate(`numFmt`,t);r&&(n.formatCode=r.getAttribute(`formatCode`),r.hasAttribute(`sourceLinked`)&&(n.sourceLinked=r.getAttribute(`sourceLinked`)===`1`))}},H=class{visit(e,t,n){let r={};_(e,t,r,`explosion`,`explosion`);let i=e.evaluate(`cat/*/f`,t);i||=e.evaluate(`xVal/*/f`,t);let a=null;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);let o=e.evaluate(`val/*/f`,t);o||=e.evaluate(`yVal/*/f`,t);let s=null;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),_(e,t,r,`idx`,`idx`),g(e,t,r,`smooth`,`smooth`),r.offsetChart=e.getVisitorParamsState().get(`types`).length-1;let c=e.getVisitorParamsState().get(`series`);return c||(c=[],e.getVisitorParamsState().set(`series`,c)),c.push(r),r}parseTitleRangeOrValue(e,t,n){let r=e.evaluate(`tx/strRef/f`,t);if(r!==null){let t=r.firstChild.nodeValue;e.setToPath(n,`title.range`,t)}else{let r=e.evaluate(`tx/v`,t);r!==null&&e.setToPath(n,`title.text.simpleRun`,r.firstChild.nodeValue)}}parsePointsAsString(e,t){let n=`{`,r=e.getValAttrAsInteger(`ptCount`,t),i=e.evaluate(`pt`,t),a=[];for(let n=0;i&&r&&n<r;n++){let r=null,i=e.evaluate(`pt[@idx='`+n+`']/v`,t);i&&(r=i.textContent),a[n]=r}for(let e=0;e<a.length;e++)e>0&&(n+=`,`),a[e]!==void 0&&(n+=a[e]);return n+=`}`,n}afterVisit(e,t,n){D(e,t,n);let r=e.getFromPath(n,`points`);if(r){let t=Object.keys(r);for(let i=0;i<t.length;i++){let a=t[i],o=e.getFromPath(r,a);if(!o)continue;let s=e.getFromPath(o,`markers`);s&&(e.setToPath(n,`markers.points.`+a,s),delete o.markers)}}}},U=class{DataPointVisitor(){}visit(e,t,n){let r=e.getFromPath(n,`points`),i=null;r?i=r:(i={},e.setToPath(n,`points`,i));let a={},o=e.getValAttrAsString(`idx`,t);return o!==null&&(i[o]=a),g(e,t,a,`bubble3D`,`bubble3D`),_(e,t,a,`explosion`,`explosion`),D(e,t,a),a}},W=class{visit(e,t,n){let r=t.parentNode.localName;if(r===`ser`||r===`dPt`){let r={},i=e.getValAttrAsString(`size`,t);i!==null&&(r.size=i);let a=e.getValAttrAsString(`symbol`,t);return a&&(r.type=a),n.markers=r,r}return null}},G=class{visit(e,t,n){let r={};this.parseScaling(e,t,r),v(e,t,r,`majorUnit`,`majorUnits`),v(e,t,r,`minorUnit`,`minorUnits`),g(e,t,r,`delete`,`shown`),this.parseOrientation(e,t,r),this.parseNumFormat(e,t,r),h(e,t,r,`majorTickMark`,`majorTickMarks`),h(e,t,r,`minorTickMark`,`minorTickMarks`),h(e,t,r,`crosses`,`crosses`),v(e,t,r,`crossesAt`,`crosses`),h(e,t,r,`crossBetween`,`crossBetween`),this.parseLabelAlign(e,t,r),_(e,t,r,`lblOffset`,`labelOffset`),h(e,t,r,`tickLblPos`,`labelPosition`);let i=e.getValAttrAsInteger(`noMultiLvlLbl`,t);r.labelMultiLevel=i!==null&&i===0,_(e,t,r,`tickMarkSkip`,`tickMarkSkip`),_(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`),h(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`,new Map));let a=e.getValAttrAsString(`axId`,t);return e.getVisitorParamsState().get(`axes`).set(a,r),r}parseTimeUnits(e,t,n,r,i,a){let o={},s=e.getValAttrAsString(i,t);s!==null&&(o.dem=s,o.amt=e.getValAttrAsString(a,t)),Object.keys(o).length>0&&(n[r]=o)}parseDisplayCustOrBuiltInUnit(e,t,n){let r=t.getValAttrAsString(`dispUnits/builtInUnit`,e);r||=t.getValAttrAsString(`dispUnits/custUnit`,e),r&&(n.displayUnits=r)}parseLabelAlign(e,t,n){let r=e.getValAttrAsString(`lblAlgn`,t);r!==null&&(r===`ctr`?n.labelAlign=`center`:r===`l`?n.labelAlign=`left`:r===`r`&&(n.labelAlign=`right`))}parseOrientation(e,t,n){let r=e.getValAttrAsString(`AxPos`,t);r!==null&&(r===`b`?n.orientation=`bottom`:r===`l`?n.orientation=`left`:r===`r`?n.orientation=`right`:r===`t`&&(n.orientation=`top`))}parseNumFormat(e,t,n){let r={},i=e.evaluate(`numFmt`,t);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)}parseScaling(e,t,n){let r=e.getValAttrAsString(`scaling/orientation`,t);r!==null&&(n.inverted=r!==`minMax`);let i=e.getValAttrAsFloat(`scaling/logBase`,t);i!==null&&(n.logBase=i,n.scaleType=`log`),v(e,t,n,`scaling/max`,`max`),v(e,t,n,`scaling/min`,`min`)}afterVisit(e,t,n){n.fill&&n.labels&&(n.labels.fill=n.fill,delete n.fill);let r=e.getValAttrAsBoolean(`delete`,t);r!==null&&(e.setToPath(n,`labels.shown`,!0!==r),e.setToPath(n,`shown`,!0!==r));let i=e.getFromPath(n,`dispUnits.displayUnitsLabel`);i&&(e.setToPath(n,`displayUnitsLabel`,i),delete n.dispUnits);let a=e.evaluate(`title`,t);e.setToPath(n,`title.shown`,a!==null);let o=e.evaluate(`minorGridlines`,t);e.setToPath(n,`gridLinesMinor.shown`,o!==null);let s=e.evaluate(`majorGridlines`,t);e.setToPath(n,`gridLinesMajor.shown`,s!==null)}},K=O,q=class{visit(e,t,n){let r=e.getVisitorParamsState().get(`series`),i=e.getValAttrAsInteger(`idx`,t),a=i===null?void 0:r[i];if(a){let n=e.getFromPath(a,`title`);n||(n={},e.setToPath(a,`title`,n));let r=n,i=e.getValAttrAsBoolean(`delete`,t);return i!==null&&(r.shown=!i),r}return n}},J=class{visit(e,t,n){let r={};return g(e,t,r,`overlay`,`overlay`),h(e,t,r,`legendPos`,`position`),n.legend=r,r}},Y=class extends T{visit(e,t,n){let r=this.getFill(e,t);Object.keys(r).length>0&&(n.fillNegative=r);let i=this.getStroke(e,t);return Object.keys(i).length>0&&(n.strokeNegative=i),n}},X=class extends O{constructor(e=`title`){super(e)}parseTitleRangeOrValue(e,t,n){let r=e.evaluate(`tx/strRef/f`,t)??null;if(r){let t=r.firstElementChild.nodeValue;e.setToPath(n,`range`,t)}}visit(e,t,n){let r={};g(e,t,r,`overlay`,`overlay`),n[this._jsonKey]=r;let i=e.getFromPath(r,this.getTextPath());i||={},this.parseTitleRangeOrValue(e,t,r);let a=e.evaluate(`txPr`,t);a&&this.parseTextElement(e,a,i,!1);let o=e.evaluate(`tx/rich`,t);return o&&this.parseTextElement(e,o,i,!0),Object.keys(i).length>0&&e.setToPath(r,`text`,i),r}afterVisit(e,t,n){if(n?.text){let e=n.text?.rotation??null;e!==null&&(n.rotation=parseInt(e),delete n.title.rotation)}}},ae=class{visit(e,t,n){let r=e.evaluate(`manualLayout`,t);if(r){let t={};v(e,r,t,`x`,`x`),v(e,r,t,`y`,`y`),v(e,r,t,`w`,`w`),v(e,r,t,`h`,`h`),h(e,r,t,`xMode`,`xMode`),h(e,r,t,`yMode`,`yMode`),h(e,r,t,`wMode`,`wMode`),h(e,r,t,`hMode`,`hMode`),Object.keys(t).length>0&&(n.manualLayout=t)}return n}},oe=class{visit(e,t,n){return n.name=t.getAttribute(`name`),n}},se=class extends S{visit(e,t,n){let r={};r.name=t.getAttribute(`name`);let i=t.childNodes,a=i.length;for(let n=0;n<a;n++){let a=i.item(n);if(a.nodeType===1){let n=a.localName,i=e.evaluate(n,t);r[n]=this.processAdjColor(e,i)}}return Object.keys(r).length>0&&(n.colors=r),r}},ce=class{visit(e,t,n){let r={};r.name=t.getAttribute(`name`);let i=e.evaluate(`majorFont`,t),a=this.processFontElement(e,i,{});a&&(r.majorFont=a.family,a.fallbacks&&(r.majorFallbacks=a.fallbacks));let o=e.evaluate(`minorFont`,t),s=this.processFontElement(e,o,{});return s&&(r.minorFont=s.family,s.fallbacks&&(r.minorFallbacks=s.fallbacks)),n.fonts=r,r}processFontElement(e,t,r){if(!t)return;let i=e.evaluate(`latin`,t);if(!i)return;let a=i.getAttribute(`typeface`);a&&(r.family=a);let o=i.getAttribute(`panose`);return o&&(r.fallbacks=[n.b.getPanoseFallback(o)]),r}},le=class extends S{visit(e,t,n){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`);if(r&&i&&a&&o)return n.fillStyleLst=r,n.lnStyleLst=i,n.effectStyleLst=a,void(n.bgFillStyleLst=o);let s=e.serializeElement(t);s&&(n.formatSchemeXml=s)}parseFillList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1)continue;let r=this.parseFillListItem(e,n);if(r===void 0)return;i.push(r)}return i}parseFillListItem(e,t){switch(t.localName){case`noFill`:return{type:n.E.Type.None};case`solidFill`:{let r=this.processAdjColor(e,t);return r?{type:n.E.Type.Solid,color:r}:void 0}case`gradFill`:return this.processGradFill(e,t);case`pattFill`:return this.processPatternFill(e,t);default:return}}parseLnList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType===1){if(e.evaluate(`headEnd`,n)||e.evaluate(`tailEnd`,n))return;i.push(this.parseLn(e,n))}}return i}parseEffectStyleList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1)continue;if(e.evaluate(`scene3d`,n)||e.evaluate(`sp3d`,n))return;let r=this.getEffects(e,n);if(r===void 0)return;i.push(r??[])}return i}},ue=class{visit(e,t,n){if(!t)return;let r={},i=t.getAttribute(`r:id`);if(i){let t=e.getRef(i);typeof t==`string`&&(r.address=t)}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}},de=class{visit(e,t,n){if(!t)return;let r={},i=[];return this.processFilterColumns(e,t,i,n),i.length>0&&(r.conditions=i),Object.keys(r).length>0&&(n.filter=r),r}processColorFilter(e,t){let r={},i={operator:n.ot.BuiltInOperatorNames.Color,param:r};return e.copyFromAttribute(t,`cellColor`,r,`cellColor`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`dxfId`,r,`styleId`,e.INT_COPY),i}processCustomFilter(e,t){return a.st({operator:t.getAttribute(`operator`),val:t.getAttribute(`val`)})}processCustomFilters(e,t){let r=t.getAttribute(`and`),i=r===`and`||r===`1`;t.getAttribute(`val`);let a=[],o={operator:i?n.ot.BuiltInOperatorNames.And:n.ot.BuiltInOperatorNames.Or,param:a},s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType!==1)continue;let r=null;n.localName===`customFilter`&&(r=this.processCustomFilter(e,n)),r&&a.push(r)}return a.length===1?a[0]:o}processDynamicFilter(e,t){let r={},i={operator:n.ot.BuiltInOperatorNames.TimePeriod,param:r},a=t.getAttribute(`type`);return a===`aboveAverage`?a=n.ot.AverageType.Above:a===`belowAverage`&&(a=n.ot.AverageType.Below),Object.values(n.ot.AverageType).includes(a)?(i.operator=n.ot.BuiltInOperatorNames.Average,e.copyFromAttribute(t,`val`,r,`stdDevs`,e.INT_COPY)):e.copyFromAttribute(t,`val`,r,`anchorDate`,e.INT_COPY),e.copyFromAttribute(t,`type`,r,`operator`),e.copyFromAttribute(t,`maxVal`,r,`maxVal`,e.INT_COPY),i}processDateGroupItem(e,t){let n={};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}processFilterItem(e,t){if(t.hasAttribute(`val`))return t.getAttribute(`val`)}processFilters(e,t){let r={},i={operator:n.ot.BuiltInOperatorNames.InSet,param:r};e.copyFromAttribute(t,`blank`,i,`blank`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`calendarType`,i,`calendarType`);let a=[],o=[],s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType===1){if(n.localName===`dateGroupItem`){let t=this.processDateGroupItem(e,n);t&&a.push(t)}else if(n.localName===`filter`){let t=this.processFilterItem(e,n);t!==void 0&&o.push(t)}}}return a.length>0&&(r.dateGroups=a),o.length>0&&(r.items=o),i}processIcon(e,t){let r={},i={operator:n.ot.BuiltInOperatorNames.Icon,param:r};return e.copyFromAttribute(t,`iconId`,r,`iconId`,e.INT_COPY),e.copyFromAttribute(t,`iconSet`,r),i}processTop10(e,t){let r={},i={operator:n.ot.BuiltInOperatorNames.TopN,param:r};return e.copyFromAttribute(t,`filterVal`,r,`filterVal`,e.FLOAT_COPY),e.copyFromAttribute(t,`percent`,r,`percent`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`top`,r,`top`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`val`,r,`val`,e.FLOAT_COPY),i}processFilterCriteria(e,t){if(!t)return;let n,r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);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)))}return n}processFilterColumn(e,t,n){if(!t)return null;if(!t.hasAttribute(`colId`))return;let r=parseInt(t.getAttribute(`colId`)),i=!1;if(t.hasAttribute(`hiddenButton`)&&(i=o.t(t.getAttribute(`hiddenButton`))),i&&n){let e=n.hiddenButtons;e||(e=[],n.hiddenButtons=e),e.push(r)}let a=!1;if(t.hasAttribute(`showButton`)&&(a=o.t(t.getAttribute(`showButton`))),a&&n){let e=n.showButtons;!0!==e&&(e||(e=[],n.showButtons=e),e[r]=!0)}let s=this.processFilterCriteria(e,t);return s?(s.index=r,s):null}processFilterColumns(e,t,n,r){if(!t)return;let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);if(a.nodeType===1&&a.localName===`filterColumn`){let t=this.processFilterColumn(e,a,r);t&&n.push(t)}}return n}},fe=class{visit(e,r,i){if(!r)return;let a=r.getAttribute(`ref`),s={};r.hasAttribute(`caseSensitive`)&&(s.collatorOptions=o.t(r.getAttribute(`caseSensitive`))?n.Ut.CaseSensitiveOptions:n.Ut.CaseInsensitiveOptions);let c=r.getAttribute(`sortMethod`);c!=null&&c!==`none`&&(c===`stroke`?s.collatorOptions={...s.collatorOptions,collation:`stroke`}:c===`pinYin`&&(s.collatorOptions={...s.collatorOptions,collation:`pinyin`}));let l={};r.hasAttribute(`columnSort`)&&o.t(r.getAttribute(`columnSort`))&&(l.axis=t.l.Axis.Column);let u=n.nt.fastStringToRange(a),d=[];return this.processSortConditions(e,r,d,u,s),d.length>0&&(l.sorts=d),Object.keys(d).length>0&&(i.sort=l),l}processSortCondition(e,t,r,i){if(!t)return null;let a={};if(!t.hasAttribute(`ref`))return void e.warn(`A sort condition has no ref; it was dropped.`,{onceKey:`xlsx.sheet.sort.noRef`});if(t.hasAttribute(`ref`)){let e=t.getAttribute(`ref`),i=n.nt.fastStringToRange(e);a.index=r?i.colStart-r.colStart:i.colStart}let s={...i};return a.criteria=s,s.reverse=!1,t.hasAttribute(`descending`)&&(s.reverse=o.t(t.getAttribute(`descending`))),e.copyFromAttribute(t,`sortBy`,s,`sortOn`),e.copyFromAttribute(t,`dxfId`,s),e.copyFromAttribute(t,`iconSet`,s),e.copyFromAttribute(t,`customList`,s),a}processSortConditions(e,t,n,r,i){if(!t)return;let a=t.childNodes,o=a.length;for(let t=0;t<o;t++){let o=a.item(t);if(o.nodeType===1&&o.localName===`sortCondition`){let t=this.processSortCondition(e,o,r,i);t&&n.push(t)}}}},Z=class extends k{visit(e,t,r){this.processNumFmts(e,e.evaluate(`numFmts`,t),null),e.getVisitorParamsState().set(`colorsToProcess`,new Set);let i={fills:{},fonts:{},borders:{}};this.processFonts(e,e.evaluate(`fonts`,t),i.fonts),this.processFills(e,e.evaluate(`fills`,t),i.fills),this.processBorders(e,e.evaluate(`borders`,t),i.borders,!0),i.fills[0]={type:n.E.Type.None},i.fills[1]={type:n.E.Type.Pattern,patternType:n.E.BuiltInSheetPattern.Gray125},i.borders[0]={bottom:{style:n.W.StrokeStyle.None},left:{style:n.W.StrokeStyle.None},right:{style:n.W.StrokeStyle.None},top:{style:n.W.StrokeStyle.None}};let a=[];this.processXFs(e,e.evaluate(`cellStyleXfs`,t),a,i,null,!1);let o=new Map;if(a.length>0){let n=[];this.processCellStyles(e,e.evaluate(`cellStyles`,t),n,a,o),r.named=n}let s=[];this.processXFs(e,e.evaluate(`cellXfs`,t),s,i,o),Object.keys(s).length>0&&(r.direct=s);let c=this.collectHiddenXfs(e.evaluate(`cellXfs`,t));c.size>0&&e.getVisitorParamsState().set(`hiddenXfs`,c);let l=[];return this.processDXFs(e,e.evaluate(`dxfs`,t),l),this.processTableStyles(e,e.evaluate(`tableStyles`,t),r,l),this.processIndexColors(e,e.evaluate(`colors/indexedColors`,t),r),this.processMruColors(e,e.evaluate(`colors/mruColors`,t),r),r}processIndexColors(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`rgbColor`){let t={color:null};this.processDataBarColor(e,n,t,`color`),t.color&&r.push(t.color)}}n.indexedColors=r}processMruColors(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`color`){let t={color:null};this.processDataBarColor(e,n,t,`color`),t.color&&r.push(t.color)}}r.length>0&&(n.mruColors=r)}processNumFmts(e,t,n){if(!t)return;let r=new Map;if(e.getVisitorParamsState().set(`numFmts`,r),!t)return;let i=t.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);if(t.nodeType===1&&t.localName===`numFmt`){let e=t.getAttribute(`numFmtId`),n=t.getAttribute(`formatCode`);if(e&&n){let t=n;r.set(parseInt(e),t)}}}}processXFs(e,t,n,r,i=null,a=!0){if(!t)return;let o=t.childNodes,s=o.length;for(let t=0;t<s;t++){let s=o.item(t);if(s.nodeType===1&&s.localName===`xf`){let t={};this.processXF(e,s,t,r,i,a),n.push(t)}}}processXF(e,t,r,i,a,s){if(!t)return;let c=t.getAttribute(`xfId`);if(c&&a){let e=a.get(parseInt(c));e&&e!==n.tt.BuiltInName.Normal&&(r.named=e)}let l=e=>!(!s&&t.hasAttribute(e))||o.t(t.getAttribute(e)),u=e=>!s||t.hasAttribute(e)&&o.t(t.getAttribute(e)),d=s?`0`:void 0;if(l(`applyFont`)){let e=t.getAttribute(`fontId`)??d;if(e!==void 0&&(e!==`0`||u(`applyFont`))){let t=i.fonts[e];t!==void 0&&(r.font=t)}}if(l(`applyFill`)){let e=t.getAttribute(`fillId`)??d;if(e!==void 0&&(e!==`0`||u(`applyFill`))){let t=i.fills[e];t!==void 0&&Object.keys(t).length>0&&(r.fill=t)}}if(l(`applyBorder`)){let e=t.getAttribute(`borderId`)??d;if(e!==void 0&&(e!==`0`||u(`applyBorder`))){let t=i.borders[e];t!==void 0&&(r.borders=t)}}if(l(`applyNumberFormat`)){let n=t.getAttribute(`numFmtId`)??d;if(n!==void 0&&(n!==`0`||u(`applyNumberFormat`))){let t,i=parseInt(n),a=e.getVisitorParamsState();if(a){let e=a.get(`numFmts`);e&&(t=e.get(i)),r.numberFormat=t??i}else e.warn(`Number formats were unavailable; a cell format was not read.`,{onceKey:`xlsx.style.numberFormat.state`})}}if(l(`applyAlignment`)){let n=e.evaluate(`alignment`,t);(n||u(`applyAlignment`))&&this.processAlignment(e,n,r)}if(l(`applyProtection`)){let n=e.evaluate(`protection`,t);(n||u(`applyProtection`))&&this.processProtection(e,n,r)}let f=o.t(t.getAttribute(`quotePrefix`)??``);f&&(r.quotePrefix=f)}processAlignment(e,t,r){let i={};if(t?.hasAttribute(`horizontal`)?i.horizontal=t.getAttribute(`horizontal`):i.horizontal=n.q.HorizontalAlignment.General,t?.hasAttribute(`vertical`)?i.vertical=t.getAttribute(`vertical`):i.vertical=n.q.VerticalAlignment.Bottom,t?.hasAttribute(`indent`)?i.indent=parseInt(t.getAttribute(`indent`)):i.indent=0,t?.hasAttribute(`relativeIndent`)?i.relativeIndent=parseInt(t.getAttribute(`relativeIndent`)):i.relativeIndent=0,o.t(t?.getAttribute(`wrapText`)??``)?i.overflow=n.q.Overflow.Wrap:i.overflow=n.q.Overflow.Visible,o.t(t?.getAttribute(`shrinkToFit`)??``)&&(i.overflow=n.q.Overflow.Shrink),t?.hasAttribute(`textRotation`)){let e=parseFloat(t.getAttribute(`textRotation`));e>0&&e<=90?e=360-e:e>90&&e<=180?e-=90:e===255&&(e=0,i.stacked=!0),i.rotation=e}else i.rotation=0;t?.hasAttribute(`justifyLastLine`)&&(i.justifyLastLine=o.t(t.getAttribute(`justifyLastLine`)));let a=t?.getAttribute(`readingOrder`);return a&&(a===`0`?i.readingDirection=n.q.ReadingDirection.Auto:a===`1`?i.readingDirection=n.q.ReadingDirection.LeftToRight:a===`2`?i.readingDirection=n.q.ReadingDirection.RightToLeft:e.warn(`Invalid readingOrder '${a}'; the direction was left automatic.`,{onceKey:`xlsx.style.readingOrder`})),Object.keys(i).length>0&&(r.alignment=i),r}collectHiddenXfs(e){let t=new Set;if(!e)return t;let n=e.childNodes,r=0;for(let e=0;e<n.length;e++){let i=n.item(e);if(i.nodeType!==1||i.localName!==`xf`)continue;let a=i.childNodes;for(let e=0;e<a.length;e++){let n=a.item(e);n.nodeType===1&&n.localName===`protection`&&o.t(n.getAttribute(`hidden`)??``)&&t.add(r)}r++}return t}processProtection(e,t,n){if(!t)return;let r=t.getAttribute(`locked`);return n.protection={alwaysUnlocked:!!r&&!o.t(r)},n}processDXF(e,t,n){if(!t)return;let r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);if(i.nodeType===1&&i.localName===`font`){let t={};this.processFont(e,i,t),n.font=t}else if(i.nodeType===1&&i.localName===`fill`){let t=[];this.processFill(e,i,t,0),t.length>0&&t[0]&&(n.fill=t[0])}else if(i.nodeType===1&&i.localName===`border`){let t=[];this.processBorder(e,i,t,0,!1),t.length>0&&t[0]&&(n.borders=t[0])}else if(i.nodeType===1&&i.localName===`numFmt`){let e=i.getAttribute(`formatCode`);if(e)n.numberFormat=e;else{let e=i.getAttribute(`numFmtId`);e&&(n.numberFormat=Number(e))}}else i.nodeType===1&&i.localName===`alignment`&&this.processAlignment(e,i,n)}}processDXFs(e,t,n){if(!t)return;e.getVisitorParamsState().set(`processingDXFs`,!0);let r=new Map;e.getVisitorParamsState().set(`dxfs`,r);let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);if(a.nodeType===1&&a.localName===`dxf`){let t={};this.processDXF(e,a,t);let i=n.length;r.set(i,t),n.push(t)}}e.getVisitorParamsState().delete(`processingDXFs`)}processTableStyle(e,t,n,r,i=!1){let a=t.getAttribute(`name`),s={name:a};t.hasAttribute(`table`)&&(s.table=o.t(t.getAttribute(`table`))),t.hasAttribute(`pivot`)&&(s.pivot=o.t(t.getAttribute(`pivot`))),i&&!s.pivot&&r.unshift(null);let c=t.childNodes,l=c.length;for(let t=0;t<l;t++){let n=c.item(t);if(n.nodeType===1&&n.localName===`tableStyleElement`){let t=n.getAttribute(`type`),i=n.getAttribute(`dxfId`),a=i==null?void 0:r?.[i];a||=(e.warn(`A table style names a format that does not exist (dxfId '${i}').`,{onceKey:`xlsx.style.tableStyle.dxf`}),{}),s[t]=a;let o=null;n.hasAttribute(`size`)&&(o=parseInt(n.getAttribute(`size`))),o&&!isNaN(o)&&(a.size=o)}}delete s.name,n[a]=s}processTableStyles(e,t,n,r,i){if(!t)return;let a={},o=t.getAttribute(`defaultTableStyle`);o&&(a.defaultTableStyle=o);let s=t.getAttribute(`defaultPivotStyle`);s&&(a.defaultPivotStyle=s);let c=t.childNodes,l={},u=c.length;for(let t=0;t<u;t++){let n=c.item(t);n.nodeType===1&&n.localName===`tableStyle`&&this.processTableStyle(e,n,l,r,i)}return Object.keys(l).length>0&&(a.styles=l),Object.keys(a).length>0&&(n.tables=a),n}processCellStyles(e,t,r,i,a){if(!t)return;let s=t.childNodes,c=s.length;for(let e=0;e<c;e++){let t=s.item(e);if(t.nodeType===1&&t.localName===`cellStyle`){let e=parseInt(t.getAttribute(`xfId`)??``),s=t.getAttribute(`name`),c=t.getAttribute(`builtinId`),l=s;if(c!==null){let e=n.tt.builtInNameFromId(parseInt(c));e!==void 0&&(l=e)}if(a.set(e,l),!i[e])continue;let u={name:l,style:i[e]};t.getAttribute(`hidden`)&&(u.hidden=o.t(t.getAttribute(`hidden`))),t.getAttribute(`iLevel`)&&(u.iLevel=parseInt(t.getAttribute(`iLevel`))),r.push(u)}}}afterVisit(e,t,n){}},pe=class extends k{visit(e,t,n){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}processPassword(e,t,n,r=`workbook`,i=`password`){if(!t)return;let a={};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)}processWorkbookProtection(e,t,n){if(!t)return;let r={};this.processPassword(e,t,r,`workbook`,`password`),this.processPassword(e,t,r,`revisions`,`revisionsPassword`);for(let e of a.z)r[e.key]=a.u(e,t.getAttribute(e.attribute));return n.protection=r,n}processCalcPr(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`calcMode`,r,`calcMode`,e=>j[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);let i=t.getAttribute(`calcId`);i!==null&&e.getVisitorParamsState().set(`calcId`,i),n.calc=r}processSheetRefs(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);n.nodeType===1&&n.localName===`sheet`&&this.processSheetRef(e,n,r)}n.sheets=r}processSheetRef(e,t,n){let r={};e.copyFromAttribute(t,`name`,r,`name`),e.copyFromAttribute(t,`state`,r,`visibility`),e.copyFromAttribute(t,`sheetId`,r,`sheetId`,e.INT_COPY);let i=t.getAttribute(`r:id`),a=e.getRef(i);a&&(r.sheet=a),n.push(r)}processExternalReferences(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`externalReference`){let t=n.getAttribute(`r:id`),i=t?e.getRef(t):null;r.push(i??null)}}r.length>0&&(n.externalBooks=r)}processPivotCaches(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1||n.localName!==`pivotCache`)continue;let a=parseInt(n.getAttribute(`cacheId`)??``,10),o=n.getAttribute(`r:id`);if(isNaN(a)||!o)continue;let s=e.readEmbeddedPart(o);s&&r.push({cacheId:a,part:s})}r.length>0&&(n.pivotCaches=r)}processBookViews(e,t,n){if(!t)return;let r=t.childNodes,i=0,a=r.length;for(let t=0;i<1&&t<a;t++){let a=r.item(t);a.nodeType===1&&a.localName===`workbookView`&&(this.processWorkbookView(e,a,n),i++)}}processWorkbookView(e,t,n){if(!t)return;let r={};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)}processDefineName(e,t,n,r){if(!t)return;let i={},a=t.firstChild;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`)){let n=t.getAttribute(`localSheetId`);if(!r[n]?.name)return void e.warn(`Defined name '${t.getAttribute(`name`)}' references a sheet with localSheetId '${n}' which does not exist.`);i.scope=r[n].name}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)}processDefinedNames(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);a.nodeType===1&&a.localName===`definedName`&&this.processDefineName(e,a,r,n.sheets)}r.length>0&&(n.names=r)}processWorkbookPr(e,t,n){t&&(e.copyFromAttribute(t,`date1904`,n,`date1904`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`codeName`,n,`codeName`),e.copyFromAttribute(t,`updateLinks`,n,`updateLinks`))}afterVisit(e,t,n){}},me=class{visit(e,t,n){let r={};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}afterVisit(e,t,n){let r=n.v;if(e.evaluate(`autoFilter`,t)){if(Array.isArray(r.hiddenButtons)){let e=r.hiddenButtons.length;e===0?r.hiddenButtons=!1:e===r.columns?.length&&(r.hiddenButtons=!0)}}else r.hiddenButtons=!0,r.showButtons=!1;return r}processTableStyleInfo(e,t,n){if(!t)return;let r=t.childNodes,i={},a=r.length;for(let t=0;t<a;t++){let n=r.item(t);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))}Object.keys(i).length>0&&(n.style=i)}processTableColumn(e,t,n){if(!t)return null;let r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);if(i.nodeType===1&&i.localName===`tableColumn`){let t={};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);let r=i.getAttribute(`totalsRowFunction`);if(r!==null)if(r===`custom`){let n=e.evaluate(`totalsRowFormula`,i);n&&(t.totalsRowFormula=n.textContent)}else t.totalsRowFormula=r;e.copyFromAttribute(i,`totalsRowLabel`,t);let a=e.evaluate(`calculatedColumnFormula`,i);a?.textContent&&(t.calculatedColumnFormula=a.textContent),n.push(t)}}return n}processTableColumns(e,t,n){let r=t.childNodes,i=[],a=r.length;for(let t=0;t<a;t++){let n=r.item(t);n.nodeType===1&&n.localName===`tableColumns`&&this.processTableColumn(e,n,i)}i.length>0&&(n.columns=i)}},he=class{visit(e,t,n){let r=e.getVisitorParamsState().get(`ref`);if(r){let n=e.getVisitorParamsState().get(`descriptions`);n&&(n.add(r,t.getAttribute(`altText`)),n.add(r,t.getAttribute(`altTextSummary`)))}return e.copyFromAttribute(t,`altText`,n),e.copyFromAttribute(t,`altTextSummary`,n),n}},ge=class{visit(e,t,n){let r=t.childNodes,i=r.length,a=null;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType===1){t.localName===`externalBook`&&(a=t);break}}if(!a)return n;t.getAttribute(`mc:Ignorable`)&&(n.mceIgnorable=!0);let o=a.getAttribute(`r:id`);o&&(n.__bookRelId=o);let s=this._findAbsoluteUrlRelId(a);return s&&(n.__absoluteUrlRelId=s),n.sheetNames=[],this.processSheetNames(e,a,n),this.processDefinedNames(e,a,n),this.processSheetDataSet(e,a,n),n}processSheetNames(e,t,n){let r=this._findChild(t,`sheetNames`);if(!r)return;let i=r.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);t.nodeType===1&&t.localName===`sheetName`&&n.sheetNames.push(t.getAttribute(`val`)??``)}}processDefinedNames(e,t,n){let r=this._findChild(t,`definedNames`);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let e=0;e<o;e++){let t=a.item(e);if(t.nodeType!==1||t.localName!==`definedName`)continue;let n=t.getAttribute(`name`);if(!n)continue;let r={name:n,refersTo:t.getAttribute(`refersTo`)??``},o=t.getAttribute(`sheetId`);o!==null&&(r.sheetIndex=parseInt(o,10)),i.push(r)}i.length>0&&(n.definedNames=i)}processSheetDataSet(e,t,n){let r=this._findChild(t,`sheetDataSet`);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1||n.localName!==`sheetData`)continue;let r=n.getAttribute(`sheetId`);if(r===null)continue;let o=this.processSheetData(e,n);o.sheetIndex=parseInt(r,10),n.getAttribute(`refreshError`)===`1`&&(o.refreshError=!0),i.push(o)}i.length>0&&(n.sheetDataSet=i)}processSheetData(e,t){let r=new n.it.Builder,i=t.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);if(t.nodeType!==1||t.localName!==`row`)continue;let a=t.childNodes,o=a.length;for(let e=0;e<o;e++){let t=a.item(e);if(t.nodeType!==1||t.localName!==`cell`)continue;let i=t.getAttribute(`r`);if(!i)continue;let o=n.nt.fastStringToCell(i);if(o?.rowIndex===void 0||o?.colIndex===void 0)continue;let s=this._readCellValue(t);s!==void 0&&r.pushAt(o.rowIndex,o.colIndex,s)}}return{sheetIndex:-1,data:r.build()?.tuples??[]}}_readCellValue(e){let n=this._findChild(e,`v`)?.textContent?.trim();if(n!==void 0&&n!==``)switch(e.getAttribute(`t`)){case null:case`n`:return parseFloat(n);case`b`:return n===`1`||n===`true`;case`str`:default:return n;case`e`:{let e=t.i.getBuiltInByLabel(n);return e?{t:`e`,v:e.getCode()}:n}}}_findChild(e,t){let n=e.childNodes,r=n.length;for(let e=0;e<r;e++){let r=n.item(e);if(r.nodeType===1&&r.localName===t)return r}return null}_findAbsoluteUrlRelId(e){let t=this._findChild(e,`alternateUrls`);return t?this._findChild(t,`absoluteUrl`)?.getAttribute(`r:id`)??null:null}},_e=class{visit(e,t,n){e.copyFromAttribute(t,`name`,n),e.copyFromAttribute(t,`sourceName`,n);let r=e.evaluate(`*/tableSlicerCache`,t);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)}},ve=class{visit(e,t,n){let r=n.slicers;r||(r={},n.slicers=r);let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);n.nodeType===1&&n.localName===`slicer`&&this.processSlicer(e,n,r)}return r}processSlicer(e,t,n){if(!t)return;let r={};n[t.getAttribute(`name`)]=r;let i=t.getAttribute(`cache`),a=e.getVisitorParamsState().get(`slicerCaches`);if(i){let e=a.get(i);e&&(r.columnId=e.columnId,r.tableId=e.tableId)}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)}},ye=class{visit(e,t,n){return n}},Q=class{visit(e,t,n){if(!t)return;let r={};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}processAbsoluteCoord(e,t,n,r,i,a){if(!t)return;let s={x:0,y:0};return s.x=o.h(t.getAttribute(i)),s.y=o.h(t.getAttribute(a)),r===`from`?n.tl=s:n.br=s,n}processOffsetCoord(e,t,n,r){if(!t)return;let i={c:0,r:0,x:0,y:0};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=o.h(e.evaluate(`colOff`,t).textContent)),e.evaluate(`rowOff`,t)&&(i.y=o.h(e.evaluate(`rowOff`,t).textContent)),r===`from`?n.tl=i:n.br=i,n}},be=class extends M{visit(e,t,n){if(!t)return;n=super.visit(e,t,n);let r=e.evaluate(`nvGraphicFramePr/cNvGraphicFramePr`,t);if(r){let t=e.evaluate(`graphicFrameLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}let i={type:`graphicFrame`,json:{}},a=e.evaluate(`graphic/graphicData`,t).childNodes,o=a.length;for(let n=0;n<o;n++){let r=a.item(n);if(r.nodeType===1)try{let n=r.localName;n===`chart`?n=`chart`:n===`slicer`&&(n=`slicer`),i.type=n;let a=r.getAttribute(`r:id`);if(n===`chart`&&a){let n=e.evaluate(`*/cNvPr`,t);n?.item&&(n=n.item(0));let r=n?.getAttribute?.(`id`),o=r?parseInt(r,10):void 0;i.json={xml:e.serializeElement(t)??void 0,sourceId:o===void 0||isNaN(o)?void 0:o,part:e.readEmbeddedPart(a)??void 0}}else a&&(i.json=e.getRef(a))}catch(t){e.warn(`Unable to read a graphic frame: ${t?.message??t}`,{onceKey:`xlsx.drawing.graphicFrame`})}}return i&&(n.content=i),i}},$=N,xe=class extends M{visit(e,t,n){if(!t)return;let r=super.visit(e,t,n),i=e.evaluate(`nvPicPr/cNvPicPr`,t);if(i){e.copyFromAttribute(t,`preferRelativeResize`,r,`preferRelativeResize`,e.BOOLEAN_COPY);let n=e.evaluate(`picLocks`,i);if(n){n.hasAttribute(`noChangeAspect`)&&(r.lockAspect=n.getAttribute(`noChangeAspect`)===`1`);let t={};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)}}let a,o=e.evaluate(`blipFill/blip`,t);if(o){let t;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`});a=e.getRef(t,!0)}return n.content={type:`picture`,json:{resId:a}},r}},Se=class extends N{visit(e,t,n){if(!t)return;n=super.visit(e,t,n);let r=e.evaluate(`nvGrpSpPr/cNvGrpSpPr`,t);if(r){let t=e.evaluate(`grpSpLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}e.warn(`Unable to import '${n.name}', group shapes are not supported.`);let i={};return n.content={type:`grpSp`,json:i},i}},Ce=class extends N{visit(e,t,n){if(!t)return;n=super.visit(e,t,n);let r=e.evaluate(`nvCxnSpPr/cNvCxnSpPr`,t);if(r){let t=e.evaluate(`cxnSpLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}let i=e.evaluate(`*/cNvPr`,t);i?.item&&(i=i.item(0));let a=i?.getAttribute?.(`id`),o=a?parseInt(a,10):void 0,s={type:`cxnSp`,xml:e.serializeElement(t)??void 0,sourceId:o===void 0||isNaN(o)?void 0:o};return n.content={type:`cxnSp`,json:s},s}},we=class{visit(e,t,n){let r=[],i=new Map,a={cells:[],values:[]},o=t.childNodes;for(let e=0;e<o.length;e++){let t=o.item(e);if(t.nodeType===1)switch(t.localName){case`metadataTypes`:this._parseMetadataTypes(t,r,i);break;case`futureMetadata`:this._attachFutureMetadata(t,i);break;case`cellMetadata`:this._resolveBlocks(t,r,a.cells);break;case`valueMetadata`:this._resolveBlocks(t,r,a.values)}}return n.metadata=a,a}_parseMetadataTypes(e,t,n){let r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType===1&&i.localName===`metadataType`){let e=this._parseMetadataType(i);t.push(e),n.set(e.name,e)}}}_parseMetadataType(e){let t={name:e.getAttribute(`name`)??``,_blocks:[]},n=e.getAttribute(`minSupportedVersion`);n!=null&&(t.minSupportedVersion=Number(n));for(let n of[`copy`,`pasteAll`,`pasteValues`,`merge`,`splitFirst`,`splitAll`,`rowColShift`,`clearFormats`,`clearComments`,`assign`,`coerce`,`cellMeta`,`adjust`,`trans`,`delete`,`edit`])e.getAttribute(n)===`1`&&(t[n]=!0);return t}_attachFutureMetadata(e,t){let n=e.getAttribute(`name`)??``,r=t.get(n);if(!r)return;let i=e.childNodes;for(let e=0;e<i.length;e++){let t=i.item(e);t.nodeType===1&&t.localName===`bk`&&r._blocks.push(this._parseFutureBlock(t))}}_parseFutureBlock(e){let t={},n=e.childNodes;for(let e=0;e<n.length;e++){let r=n.item(e);if(r.nodeType!==1||r.localName!==`extLst`)continue;let i=r.childNodes;for(let e=0;e<i.length;e++){let n=i.item(e);if(n.nodeType!==1||n.localName!==`ext`)continue;let r=n.childNodes;for(let e=0;e<r.length;e++){let n=r.item(e);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`)))}}}return t}_resolveBlocks(e,t,n){let r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);i.nodeType===1&&i.localName===`bk`&&n.push(this._resolveBlock(i,t))}}_resolveBlock(e,t){let n=new Map,r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType!==1||i.localName!==`rc`)continue;let a=Number(i.getAttribute(`t`)),o=Number(i.getAttribute(`v`)),s=t[a-1];if(!s)continue;let{_blocks:c,...l}=s,u={...l};for(let e of Object.keys(u))u[e]===void 0&&delete u[e];let d=c[o];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)}return n}},Te=class{visit(e,t,n){let r=e.getVisitorParamsState().get(P);r||(r=[],e.getVisitorParamsState().set(P,r));let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`s`){let t={type:n.getAttribute(`t`)??`n`,keys:[]};this.processKeys(e,n,t),r.push(t)}}return n.richTypes=r,r}processKeys(e,t,n){let r=t.childNodes,i=r.length,a=n.keys;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType===1&&t.localName===`k`){let e=t.getAttribute(`n`),n=t.getAttribute(`t`);a.push([e,n])}}}},Ee=class{visit(e,t,n){let r=e.getVisitorParamsState().get(`richTypes`);if(!r)return void e.warn(`RichValueFound but not type.`);let i=e.getVisitorParamsState().get(F);i||(i=[],e.getVisitorParamsState().set(F,i));let a=t.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType===1&&n.localName===`rv`){let t=r[n.getAttribute(`s`)],a={type:t.type};this.processValues(e,n,a,t);let o=this.mapType(e,a);i.push(o)}}return n.richData=i,i}mapType(e,n){if(n.type===`_error`){let e=n.errorType;if(e)try{n=t.i.getBuiltInByCode(e+1)??t.i.BuiltIn.Unknown}catch{}}return n}processValues(e,t,n,r){let i=t.childNodes,a=i.length;r.type;let o=r.keys;for(let t=0;t<a;t++){let r=i.item(t);if(r.nodeType===1&&r.localName===`v`){let i=o[t];if(!i)return void e.warn(`Invalid richData`);let a=i[0],s=i[1],c=r.textContent;s===`i`&&(c=Number(c)),n[a]=c}}}},De=class{visit(e,t,n){if(!t)return;let r=[];this.processAuthors(e,e.evaluate(`authors`,t),r),r.length>0&&(n.authors=r);let i=[];return n.comments=i,i}processAuthors(e,t,n){if(!t)return;let r=t.childNodes,i=r.length;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType===1&&t.localName===`author`){let e=t.firstChild;e&&e.nodeType===3&&n.push(e.textContent)}}}},Oe=class{visit(e,t,n){if(!t)return;let r=t.getAttribute(`ref`);if(!r)return;let i={content:``};if(t.hasAttribute(`authorId`)){let e=parseInt(t.getAttribute(`authorId`),10);isNaN(e)||(i.authorId=e)}return i.content=function(e){if(!e)return``;let t=[],n=!0,r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType===1){if(i.localName===`t`)t.push({text:i.textContent??``});else if(i.localName===`r`){let e={text:``},r=i.childNodes;for(let t=0;t<r.length;t++){let n=r.item(t);n.nodeType===1&&(n.localName===`t`?e.text+=n.textContent??``:n.localName===`rPr`&&te(n,e))}Object.keys(e).length>1&&(n=!1),t.push(e)}}}return t.length===0?e.textContent??``:n?t.map(e=>e.text).join(``):{runs:t}}(e.evaluate(`text`,t)),n.push({r,v:i}),i}},ke=class{visit(e,t,n){if(!t)return;let r=[];return n.comments=r,r}},Ae=class{visit(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`id`,r,`id`,o.c);let i=t.getAttribute(`ref`);return e.copyFromAttribute(t,`personId`,r,`personId`,o.c),e.copyFromAttribute(t,`parentId`,r,`parentId`,o.c),e.copyFromAttribute(t,`dT`,r,`dt`),t.hasAttribute(`done`)&&(r.done=o.t(t.getAttribute(`done`))),n.push({r:i,v:r}),r}},je=class{visit(e,t,n){let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`person`){let t={};e.copyFromAttribute(n,`id`,t,`id`,o.c),e.copyFromAttribute(n,`displayName`,t),e.copyFromAttribute(n,`userId`,t,`userId`,o.c),e.copyFromAttribute(n,`providerId`,t),r.push(t)}}return r.length>0&&(n.persons=r),r}},Me=class{constructor(e,t){this.path=e,this.visitor=t}};exports.DOMTransformer=class{constructor(){this.visitorsByXmlTagName=new Map,this.scopedVisitorsByXmlTagName=new Map,this.visitorParamsState=null,this.registerVisitor(`Relationships`,new ne),this.registerVisitor(`cp:coreProperties`,new re),this.registerVisitor(`Properties`,new ie),this.registerVisitor(`spPr`,new R),this.registerVisitor(`txBody`,new K),this.registerVisitor(`txPr`,new K),this.registerVisitor(`c:chartSpace`,new I),this.registerVisitor(`c:plotArea`,new L),this.registerVisitor(`c:barChart`,new z),this.registerVisitor(`c:doughnutChart`,new B),this.registerVisitor(`c:lineChart`,new B),this.registerVisitor(`c:ofPieType`,new B),this.registerVisitor(`c:pieChart`,new B),this.registerVisitor(`c:scatterChart`,new B),this.registerVisitor(`c:barChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:doughnutChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:lineChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:ofPieType`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:pieChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:scatterChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:ser`,new H),this.registerVisitor(`c:dPt`,new U),this.registerVisitor(`c:marker`,new W),this.registerVisitor(`c:catAx`,new G),this.registerVisitor(`c:valAx`,new G),this.registerVisitor(`c:dateAx`,new G),this.registerVisitor(`c:majorGridlines`,new x(`gridLinesMajor`)),this.registerVisitor(`c:minorGridlines`,new x(`gridLinesMinor`)),this.registerVisitor(`c:chartSpace`,null,`txPr`),this.registerVisitor(`c:catAx`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:valAx`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:dateAx`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:legend`,new J),this.registerVisitor(`c:legend`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:legendEntry`,new q),this.registerVisitor(`c:ser`,new Y,`extLst/ext/invertSolidFillFmt/spPr`),this.registerVisitor(`c:ser`,new V(`labels`),`dLbls`),this.registerVisitor(`c:dLbl`,new V(`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 ae),this.registerVisitor(`c:dispUnits`,new x(`dispUnits`)),this.registerVisitor(`c:dispUnitsLbl`,new X(`displayUnitsLabel`)),this.registerVisitor(`c:dispUnitsLbl`,new K,`tx/rich`),this.registerVisitor(`a:theme`,new oe),this.registerVisitor(`a:theme`,new se,`themeElements/clrScheme`),this.registerVisitor(`a:theme`,new ce,`themeElements/fontScheme`),this.registerVisitor(`a:theme`,new le,`themeElements/fmtScheme`),this.registerVisitor(`autoFilter`,new de),this.registerVisitor(`sortState`,new fe),this.registerVisitor(`s:workbook`,new pe),this.registerVisitor(`styleSheet`,new Z),this.registerVisitor(`x14:table`,new he),this.registerVisitor(`table`,new me),this.registerVisitor(`externalLink`,new ge),this.registerVisitor(`hlinkClick`,new ue),this.registerVisitor(`wsDr`,new ye),this.registerVisitor(`twoCellAnchor`,new Q),this.registerVisitor(`oneCellAnchor`,new Q),this.registerVisitor(`absoluteAnchor`,new Q),this.registerVisitor(`graphicFrame`,new be),this.registerVisitor(`sp`,new $),this.registerVisitor(`grpSp`,new Se),this.registerVisitor(`cxnSp`,new Ce),this.registerVisitor(`pic`,new xe),this.registerVisitor(`metadata`,new we),this.registerVisitor(`rvStructures`,new Te),this.registerVisitor(`rvData`,new Ee),this.registerVisitor(`comments`,new De),this.registerVisitor(`comment`,new Oe),this.registerVisitor(`ThreadedComments`,new ke),this.registerVisitor(`threadedComment`,new Ae),this.registerVisitor(`threadedComment`,new K(`content`),`text`),this.registerVisitor(`personList`,new je),this.registerVisitor(`slicerCacheDefinition`,new _e),this.registerVisitor(`slicers`,new ve)}registerVisitor(e,t,n=null){e.indexOf(`:`)===-1&&(e=`*:`+e);let r=e.split(`:`),i=r.length>1?r[1]:r[0];if(!n)return this.visitorsByXmlTagName.set(i,t),void this.visitorsByXmlTagName.set(e,t);let a=this.scopedVisitorsByXmlTagName.get(i);a||(a=[],this.scopedVisitorsByXmlTagName.set(i,a),this.scopedVisitorsByXmlTagName.set(e,a)),a.push(new Me(n,t))}parseDxf(t,n=``,r=e.R.EmptyObject){this.visitorParamsState||=new Map;let i=this.visitorParamsState,a=i.get(`processingDXFs`);i.set(`processingDXFs`,!0);try{let e=new f(null,this,`/dxf`,t,{},n,r),i={};return new Z().processDXF(e,t,i),i}finally{a===void 0?i.delete(`processingDXFs`):i.set(`processingDXFs`,a)}}getVisitorParamsState(){return this.visitorParamsState}transform(t,n,r=e.R.EmptyObject){let i=t.documentElement;this.visitorParamsState&&!r?.paramMap||(this.visitorParamsState=r?.paramMap??new Map);let a={},o=this.visitorsByXmlTagName.get(i.nodeName);if(o||=this.visitorsByXmlTagName.get(i.localName),!o)throw Error(`A visitor for the root element: '${i.nodeName}' or '${i.localName}' must be registered.`);let s=`/`+i.localName,c=new f(null,this,s,i,a,n,r),l=[];this._doWalk(o,c,l,i,a,n,r);let u=l.length;for(let e=0;e<u;e++){let t=l[e];try{t.visitor?.afterVisit?.(t.context,t.elemParent,t.jsonParent)}catch(e){t.context.warn(`Unable to finish reading '${t.context.getPath()}': ${e?.message??e}`,{onceKey:`xlsx.transform.afterVisit`})}}return a}_walkScoped(e,t,n,r,i,a,o){let s=this.scopedVisitorsByXmlTagName.get(e),c=s?s.length:0;for(let l=0;l<c;l++){let c=s[l],u=null;try{u=t.evaluate(c.path,r)}catch{t.warn(`Invalid path '${c.path}' for '${e}'.`,{onceKey:`xlsx.transform.invalidPath`})}if(!u)continue;let d=e=>{let s=e.localName,l=e.parentNode;for(;l&&l!==r;)s=l.localName+`/`+s,l=l.parentNode;let u=t.getPath()+`/`+s;if(c.visitor){let r=new f(t,this,u,t.getElemRoot(),t.getJsonRoot(),a,o);this._doWalk(c.visitor,r,n,e,i,a,o)}};if(u.length>0){let e=u,t=e.length;for(let n=0;n<t;n++)d(e.item(n))}else d(u)}}_doWalk(e,t,n,r,i,a,o){let s=null;e&&(n.push({visitor:e,context:t,elemParent:r,jsonParent:i}),s=e.visit(t,r,i)),s||=i;let c=r.localName;this._walkScoped(c,t,n,r,s,a,o);let l=this.visitorsByXmlTagName,u=t.getElemRoot(),d=t.getJsonRoot(),p=r.childNodes,m=p.length;for(let e=0;e<m;e++){let r=p.item(e);if(r.nodeType!==1)continue;let c=r,m=c.nodeName,h=l.get(m);h||=(m=c.localName,l.get(m));let g=t.getPath()+`/`+m,_=new f(t,this,g,u,d,a,o);this._doWalk(h,_,n,c,s??i,a,o)}return s}},exports.ExecutionContext=f,exports.NumberUtils=o.o,exports.VisitorUtils=p;