@sheetxl/studio-vanilla 0.7.10 → 0.7.11

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 (192) hide show
  1. package/browser/cjs/{DBBW-RCAhmWrWfDZ.cjs → 7SU9suBhubURGggI.cjs} +1 -1
  2. package/browser/cjs/8nqR2-rPIuGdEIQe.cjs +6 -0
  3. package/browser/cjs/{DmPC8C_CNdahQl0b.cjs → 9o1eLnownogeMwyc.cjs} +1 -1
  4. package/browser/cjs/{DcpYpFxUS3nhucCH.cjs → B0DhV18jarXPtbol.cjs} +2 -2
  5. package/browser/cjs/{RjrLHqUK_EdTAiSS.cjs → BBv22Aw9g1E8MWdn.cjs} +4 -4
  6. package/browser/cjs/{BwUirvy83NgauAe_.cjs → BNnHt6qDqZksLII1.cjs} +1 -1
  7. package/browser/cjs/{ewAfXUp0y0GHQf37.cjs → BRH1VPMpSG0urT1s.cjs} +1 -1
  8. package/browser/cjs/{r2nncfSTgk8IoVXa.cjs → BRxxZi2wGy13iclf.cjs} +5 -5
  9. package/browser/cjs/{RZjOTUkBjANiPQLN.cjs → BUvFKOHPMIHwdtUB.cjs} +1 -1
  10. package/browser/cjs/{bPlEup1_WNEt_RwV.cjs → BY92Z-WFFfG3MbD7.cjs} +2 -2
  11. package/browser/cjs/{BGVhZTZCsB43TTwA.cjs → BdR6D9fV7KmZujdP.cjs} +1 -1
  12. package/browser/cjs/{BSYX8XwNn0_At72M.cjs → BkPYmGB-wP6TVE8-.cjs} +1 -1
  13. package/browser/cjs/{CsTewh7bEYZ5WE9U.cjs → Bl_3smYj2qnYq-3F.cjs} +3 -3
  14. package/browser/cjs/{DEunIC6P9scgWw1P.cjs → BmmfQP1wV5Absyg8.cjs} +2 -2
  15. package/browser/cjs/{CVirc38g7rX4naWE.cjs → BqdbIarOdh9Axvt0.cjs} +1 -1
  16. package/browser/cjs/{hkiktbu43dbh7QWI.cjs → Bto0ftjeF47cvJdi.cjs} +1 -1
  17. package/browser/cjs/{BLBn-CLuulR6I2Ga.cjs → C-Im8uqzZv17lOnP.cjs} +2 -2
  18. package/browser/cjs/{DeGuXojfhauTW29M.cjs → C12TnTNCrGjUdbGt.cjs} +3 -3
  19. package/browser/cjs/{DNCTKUi0YOVTayYE.cjs → C6kzo8uPQQoXWKYr.cjs} +4 -4
  20. package/browser/cjs/CBxhVkStLoRggBtV.cjs +6 -0
  21. package/browser/cjs/{CQrPirttQBD2oFlH.cjs → CC6DJpfXrAfymnhw.cjs} +1 -1
  22. package/browser/cjs/{CyIkHwcwTWN17li5.cjs → CCA9YQiTLqOXq0Wt.cjs} +1 -1
  23. package/browser/cjs/{iNwxwTjW5q41Gklb.cjs → CRv97HV3of8kSjnz.cjs} +2 -2
  24. package/browser/cjs/{B8LS7_xuiRLqiz39.cjs → CSx9V80P-82annVz.cjs} +2 -2
  25. package/browser/cjs/CW_TjfGnemEUJ58_.cjs +6 -0
  26. package/browser/cjs/{z6f40QLDeC0y99VG.cjs → CjRiqIYPXpCRU6Y9.cjs} +1 -1
  27. package/browser/cjs/{CJ6ep0mCcKwe-K6x.cjs → CnWBwBAZBjLCyQ20.cjs} +1 -1
  28. package/browser/cjs/{Gtbnzd4B9f1DIKAU.cjs → CtAf7EADj-tj9o6G.cjs} +1 -1
  29. package/browser/cjs/{8RfiafCVuvalyWgG.cjs → CuBNorzcKplEAvqK.cjs} +1 -1
  30. package/browser/cjs/{Chn3GBWzbmL5oSIb.cjs → D-0Fik4ourpwXi3i.cjs} +1 -1
  31. package/browser/cjs/D6K2fCFGtiRPHmMV.cjs +327 -0
  32. package/browser/cjs/{DK6kyoOWh-JARjgf.cjs → D7Ac5EKfAPyrrhkS.cjs} +2 -2
  33. package/browser/cjs/{dzwDCMIhgcZc9cbb.cjs → D8v3BenpdWipIJkL.cjs} +1 -1
  34. package/browser/cjs/{CEjYsjf5rhuYUZBY.cjs → DAEbq_E3O5eEDAPQ.cjs} +1 -1
  35. package/browser/cjs/{C2Ym9o2UyGdPMpGF.cjs → DDhGqGMGGeQc5Vo8.cjs} +1 -1
  36. package/browser/cjs/{xnY4O4rqueY08rpT.cjs → DI7s2NqJg76ihNkK.cjs} +1 -1
  37. package/browser/cjs/{CI-SIObGARYLlaD0.cjs → DIPpP05UV3BNtX9g.cjs} +1 -1
  38. package/browser/cjs/{DrSYCVmQNqWJPApL.cjs → DMSNO64aZh_fw3zf.cjs} +3 -3
  39. package/browser/cjs/{DcUyMcC3dlHUZl4L.cjs → DSk0ysK_11319VY2.cjs} +1 -1
  40. package/browser/cjs/{CFbyIOIIDflCG8xf.cjs → D_IRo0PO19CnzL3N.cjs} +2 -2
  41. package/browser/cjs/{A2sMA1rkxY2C4imP.cjs → D_YtxTTSDi9Asoyu.cjs} +1 -1
  42. package/browser/cjs/{vx0u0BKzwHXjkFOr.cjs → DrrBxsEjp39C74ju.cjs} +1 -1
  43. package/browser/cjs/{a64ODK1QnL34lHpX.cjs → DvTY5XJeT47xrY8Q.cjs} +1 -1
  44. package/browser/cjs/{CU6n-o9BpYTLqmrY.cjs → Dw4fCUKQgEqqfBV4.cjs} +5 -5
  45. package/browser/cjs/{DiiaRC786jf-ic4p.cjs → Dxn-fVORDhlAaX6v.cjs} +1 -1
  46. package/browser/cjs/{D1gnAsTKRtDyWDp5.cjs → FfG5Bkr-7M9137BO.cjs} +2 -2
  47. package/browser/cjs/{B6uycsDeyWfXd30N.cjs → I4zHKiFqVlr_w0Fm.cjs} +1 -1
  48. package/browser/cjs/{BkcYqE4Mg0roejM4.cjs → JPo5MA_EKlNadwdM.cjs} +19 -19
  49. package/browser/cjs/{CwJonjnwEq4xJqkh.cjs → JZDqc5W9_nwxtBJ3.cjs} +1 -1
  50. package/browser/cjs/{eov1JMx2WBMhdpoJ.cjs → N6tUn_g0pOE0uDoQ.cjs} +2 -2
  51. package/browser/cjs/{D6BPthEVXFKI4EuF.cjs → PMU3QZ4iJEMfHvFs.cjs} +1 -1
  52. package/browser/cjs/{Pm0_WqtObuxp-EuT.cjs → QTL9F1HRnB1Wn2-A.cjs} +1 -1
  53. package/browser/cjs/{DX5CowMMCd9GCv4f.cjs → XWeausRSKBOymZ4u.cjs} +3 -3
  54. package/browser/cjs/_uPzYzEoCOEeLyon.cjs +32 -0
  55. package/browser/cjs/{eu-ZFKAZZ7B6uk1x.cjs → g9WJWiyqT9ymbp5V.cjs} +1 -1
  56. package/browser/cjs/index.cjs +2 -2
  57. package/browser/cjs/{BS1TrhHmuCvzVnwe.cjs → sdCc7oY00lsobMRi.cjs} +1 -1
  58. package/browser/cjs/tyi6ASN0_O5JsRMI.cjs +6 -0
  59. package/browser/esm/{7mwDc5DIxFaeIWKF.mjs → 1gFo3mDvymIc_GSM.mjs} +20 -20
  60. package/browser/esm/{r9LAUwYbHSuMlTKO.mjs → 1lg1IRnwlZaeRS7t.mjs} +1 -1
  61. package/{cdn/assets/CVPNLOJ8pTObaFlz.js → browser/esm/26cl6zBoRTZUZazo.mjs} +1 -1
  62. package/browser/esm/{B9cPVUQiue_I563s.mjs → 8ipqSgbg2rPEK06x.mjs} +13 -13
  63. package/browser/esm/{BQaQHVsou6-pv9Ju.mjs → B4snRWo3ROdmId1c.mjs} +2 -2
  64. package/{cdn/assets/Bl_TetCg54CHQqHm.js → browser/esm/BAhhLfl8o1dGoNbb.mjs} +1 -1
  65. package/browser/esm/{BDCQh_NtcP3UtNFO.mjs → BHtxIFAotk1srRF7.mjs} +1 -1
  66. package/browser/esm/{DpunkhfrdW9tMyiB.mjs → BO7w8FY_b864MJsH.mjs} +1 -1
  67. package/{cdn/assets/BfgfgjIhYIB7Iea-.js → browser/esm/Be8UqB7qQ3yEIghH.mjs} +1 -1
  68. package/browser/esm/{nvSrYkBMwLtC2sW6.mjs → BkpJCaRBrTV7-14x.mjs} +4 -4
  69. package/browser/esm/{CAOJk3YprB5zINMx.mjs → BmViPhy9qOxkdlIY.mjs} +1 -1
  70. package/browser/esm/{DfOdt_g3leZhg92P.mjs → BsQRDtmffYBPjRzI.mjs} +2 -2
  71. package/browser/esm/{q78ROlDJASSNUTW7.mjs → BvGP9PN8T5kYYqXn.mjs} +16 -16
  72. package/browser/esm/{BcUhpG_sMmRcqqQs.mjs → Bzql4m9lZvOU06fz.mjs} +1 -1
  73. package/{cdn/assets/B5M-s1vNMxf-NkNs.js → browser/esm/C0THPGQwZ1R4wGso.mjs} +1 -1
  74. package/{cdn/assets/Czxxkqcv2kfogbB3.js → browser/esm/C4XCAo0TpxslRVJ5.mjs} +1 -1
  75. package/browser/esm/{kfVyLUlQFwMOrtte.mjs → C97jkP_D9xckt66O.mjs} +3 -3
  76. package/{cdn/assets/mcVONUsaRKHFvrNv.js → browser/esm/C9IxpFcjTqaCRk2N.mjs} +1 -1
  77. package/browser/esm/{AbjhUeTNR-U8qKZd.mjs → CBzKugXFy2maB9T2.mjs} +1 -1
  78. package/browser/esm/{CzokFhjn3Zd8eHAV.mjs → CH1QLqVaEaDCToun.mjs} +4 -4
  79. package/browser/esm/{BNQAmohXUIzw05d1.mjs → CO-25pcw5LMrahel.mjs} +1 -1
  80. package/{cdn/assets/D3Vs8usLpvWrfPaD.js → browser/esm/COD8frfCMwYHZn2a.mjs} +1 -1
  81. package/browser/esm/{KN6_FHcdgAaW1FOp.mjs → CY5YAVLlBtHpA3zo.mjs} +2 -2
  82. package/{cdn/assets/DJ2cli9crYBDffna.js → browser/esm/CbotKmuc-u3i6l2r.mjs} +1 -1
  83. package/browser/esm/{38k3YnsYUefZ1KgM.mjs → CcAlI0U1H8U3WLIc.mjs} +2 -2
  84. package/browser/esm/{DIKQVQUhIEDd8OHB.mjs → CdHALOHfiCjQPb6m.mjs} +1 -1
  85. package/browser/esm/{zyU823tQU2DE6Ff6.mjs → CeihNWbiiXjlhNOB.mjs} +5 -5
  86. package/browser/esm/{DUZ2FYogdfTwBU1s.mjs → CfnDaW3FdBoQdTqQ.mjs} +1 -1
  87. package/browser/esm/{BNEk0-9ePYVYTTS4.mjs → Cg54fkIVLhuRoiMb.mjs} +2 -2
  88. package/browser/esm/{Cb5eiZuAiDsI8J4q.mjs → Ch9HnAWCAsXaP3LD.mjs} +1 -1
  89. package/browser/esm/{FcLh9simFslbIw7z.mjs → Coys8HEmiwsrQIFr.mjs} +2 -2
  90. package/browser/esm/{BFVNKOKUJHGXx3_N.mjs → Cu60N7T14PGlI74M.mjs} +1 -1
  91. package/browser/esm/{B9miygVhYR02HXbg.mjs → CuKWS6_Je8iloPLI.mjs} +1 -1
  92. package/browser/esm/{BPdip6dtPdYr7KkR.mjs → Cvdg3u2WzV4R8Z8w.mjs} +1 -1
  93. package/browser/esm/{BC2iutbmE7Q2bHNb.mjs → CwVNl2iequRw_jgb.mjs} +1 -1
  94. package/browser/esm/{DP96oVn4D_WVyEii.mjs → D-HCTBSjPpxDVjYI.mjs} +8 -8
  95. package/browser/esm/{Cu_mvr8D4-6ZsoaY.mjs → DEgxjiNnO2CGe0Mg.mjs} +1 -1
  96. package/browser/esm/{CEmFDYC7bYojak4f.mjs → DKxMLVTxqrGDxkjf.mjs} +6 -6
  97. package/browser/esm/{CltETef3jhrkecPf.mjs → DUlZT2QnfU4sQVQt.mjs} +1 -1
  98. package/browser/esm/{vjJjgi1zidw9mn_p.mjs → De46gfEGYBOgbv15.mjs} +2 -2
  99. package/browser/esm/{CQv5nnKDSep6_Lrr.mjs → DfEf5-SRjm41tv36.mjs} +3 -3
  100. package/browser/esm/{DjbsjMrDZxmueStH.mjs → DiAV3Uz5gPX10g2b.mjs} +6 -6
  101. package/{cdn/assets/C_3VkH0ZheZ071rN.js → browser/esm/DiClzo3XuRzjd65q.mjs} +1 -1
  102. package/browser/esm/{BiOFFDEgChuOwhDE.mjs → DinosjN3TV2mmmEf.mjs} +1 -1
  103. package/browser/esm/{CkIGtcKufzFHfIOa.mjs → Dj0SnQZEOd1_XKRM.mjs} +3 -3
  104. package/browser/esm/{BEhiMpe9sj2HllDD.mjs → DoFBMKmsTAV7_8ML.mjs} +2 -2
  105. package/browser/esm/F1uHh-svIwyYB_ba.mjs +11 -0
  106. package/browser/esm/{B5_mlhtTkaqvQKMh.mjs → GBJRbVY1swquhqKO.mjs} +7 -7
  107. package/{cdn/assets/D_zn49P7Vl2EfoIZ.js → browser/esm/RhlIOd-I5pWXW3GT.mjs} +2 -2
  108. package/{cdn/assets/BvIcikdTDlEgEQ6f.js → browser/esm/SsRUVWcrhua0o1Dm.mjs} +1 -1
  109. package/{cdn/assets/BXfFV2BdBlhgkv9G.js → browser/esm/WzG__NqEXcEJGXF9.mjs} +1 -1
  110. package/browser/esm/{DXps-gn4Z0b70HV6.mjs → YMtZzDjMWgR3_4eN.mjs} +1 -1
  111. package/browser/esm/{DxzUHJ6WmoMZwB7B.mjs → dyaQatTfQy8_i9f1.mjs} +9306 -9296
  112. package/browser/esm/{BK06ihtf1I-_67oo.mjs → i0t_3E3HmaueoYzo.mjs} +10 -10
  113. package/browser/esm/index.mjs +2 -2
  114. package/browser/esm/{CQ8dCPE-ihoMrQAl.mjs → mRBUVHHKueJc-e6f.mjs} +1 -1
  115. package/{cdn/assets/BYMb2NO7eaBtRT3r.js → browser/esm/ou3Du5ZoOZAZnu26.mjs} +1 -1
  116. package/browser/esm/{DsGfDyrPuOLTSGzn.mjs → zfgtBucZchI4hg1A.mjs} +1 -1
  117. package/cdn/assets/{r9LAUwYbHSuMlTKO.js → 1lg1IRnwlZaeRS7t.js} +1 -1
  118. package/{browser/esm/CVPNLOJ8pTObaFlz.mjs → cdn/assets/26cl6zBoRTZUZazo.js} +1 -1
  119. package/cdn/assets/{BiSKRg5rgwN8P_b3.js → 2ZLWir-4zep4jFhL.js} +7 -7
  120. package/cdn/assets/{LlLVEq_yWPMPI-k2.js → B2HJ-ePk9OHKl210.js} +4 -4
  121. package/cdn/assets/{CBun3_1B9YitAgHd.js → B38DoSAYxJ40EixD.js} +11 -11
  122. package/cdn/assets/{PKHd0iQO69iNIAx0.js → BAap2Os5GIeCh2L0.js} +2 -2
  123. package/{browser/esm/Bl_TetCg54CHQqHm.mjs → cdn/assets/BAhhLfl8o1dGoNbb.js} +1 -1
  124. package/cdn/assets/{BADnvy5bTGT8cX40.js → BC_FaAAhtBWSONdx.js} +7 -7
  125. package/{browser/esm/Bp9Eeb58kHoP7YGC.mjs → cdn/assets/BCzo1TO2mJqJ4Jtc.js} +2 -2
  126. package/cdn/assets/{BAvxGh8BmrH0FQlm.js → BHK8a9LH6Q5f48Fd.js} +21 -21
  127. package/cdn/assets/{BDCQh_NtcP3UtNFO.js → BHtxIFAotk1srRF7.js} +1 -1
  128. package/cdn/assets/{DpunkhfrdW9tMyiB.js → BO7w8FY_b864MJsH.js} +1 -1
  129. package/cdn/assets/{B5B-prjpWkwoWjie.js → BV1DpPV78XursgLU.js} +4 -4
  130. package/cdn/assets/{Dlyhn7y9N6lvS2m8.js → BVPJB6VMnAqpPW4u.js} +3 -3
  131. package/cdn/assets/BbHaD-o5eMctGIB1.js +12 -0
  132. package/{browser/esm/BfgfgjIhYIB7Iea-.mjs → cdn/assets/Be8UqB7qQ3yEIghH.js} +1 -1
  133. package/cdn/assets/{DwuTMIrWJCUalUcq.js → BflHOjJ4oo10vE1N.js} +15 -15
  134. package/cdn/assets/{C8iM1Hgq_DrD3Gf0.js → BkDbp2f1WaqQ_XeQ.js} +3 -3
  135. package/cdn/assets/{CyinLzMAW_Amnu6N.js → BpBgYsdvef1vL5wt.js} +4 -4
  136. package/cdn/assets/{BcUhpG_sMmRcqqQs.js → Bzql4m9lZvOU06fz.js} +1 -1
  137. package/{browser/esm/B5M-s1vNMxf-NkNs.mjs → cdn/assets/C0THPGQwZ1R4wGso.js} +1 -1
  138. package/cdn/assets/{C1pxxUzCqRQ7o_0N.js → C3_t9M2RoTrmk5Zt.js} +1 -1
  139. package/{browser/esm/Czxxkqcv2kfogbB3.mjs → cdn/assets/C4XCAo0TpxslRVJ5.js} +1 -1
  140. package/cdn/assets/C8tUn6sYjNisxPK4.js +46 -0
  141. package/{browser/esm/mcVONUsaRKHFvrNv.mjs → cdn/assets/C9IxpFcjTqaCRk2N.js} +1 -1
  142. package/cdn/assets/{AbjhUeTNR-U8qKZd.js → CBzKugXFy2maB9T2.js} +1 -1
  143. package/cdn/assets/{CGd5FvkBKn68xVbC.js → CE7fjscGl466fl91.js} +2 -2
  144. package/cdn/assets/{BNQAmohXUIzw05d1.js → CO-25pcw5LMrahel.js} +1 -1
  145. package/{browser/esm/D3Vs8usLpvWrfPaD.mjs → cdn/assets/COD8frfCMwYHZn2a.js} +1 -1
  146. package/{browser/esm/DJ2cli9crYBDffna.mjs → cdn/assets/CbotKmuc-u3i6l2r.js} +1 -1
  147. package/cdn/assets/{DNuCczMLMAIbZD23.js → Cbrcyb3H3PezHtVF.js} +15 -15
  148. package/cdn/assets/{DIKQVQUhIEDd8OHB.js → CdHALOHfiCjQPb6m.js} +1 -1
  149. package/cdn/assets/{DUZ2FYogdfTwBU1s.js → CfnDaW3FdBoQdTqQ.js} +1 -1
  150. package/cdn/assets/{Cb5eiZuAiDsI8J4q.js → Ch9HnAWCAsXaP3LD.js} +1 -1
  151. package/cdn/assets/{Dfl2D3cYNOI5S_je.js → CmRz3KIo8G3LOw9G.js} +4 -4
  152. package/cdn/assets/{CAmj2oLwI3DeBBsG.js → Cn1auE03N9wLXfjt.js} +4 -4
  153. package/cdn/assets/{BFVNKOKUJHGXx3_N.js → Cu60N7T14PGlI74M.js} +1 -1
  154. package/cdn/assets/{B9miygVhYR02HXbg.js → CuKWS6_Je8iloPLI.js} +1 -1
  155. package/cdn/assets/{BPdip6dtPdYr7KkR.js → Cvdg3u2WzV4R8Z8w.js} +1 -1
  156. package/cdn/assets/{BC2iutbmE7Q2bHNb.js → CwVNl2iequRw_jgb.js} +1 -1
  157. package/cdn/assets/{DOjZi6T0-bH7nqRD.js → Cz4z8vfL-Faa_U_Z.js} +2 -2
  158. package/cdn/assets/{MlhOVOZDOPIWEne0.js → D6PR-KOMtKuKwViW.js} +9270 -9260
  159. package/cdn/assets/{XR4G5EYDdHGkrxmW.js → D9188qd49uC6RCBX.js} +2 -2
  160. package/cdn/assets/{B0Ir7uCbQF3-mEU3.js → D9GwwaruuneTLALL.js} +4 -4
  161. package/cdn/assets/{CmLC_Rn8ALwIQeJW.js → D9XR5CEdI7H3Fqqw.js} +9 -9
  162. package/cdn/assets/{Cu_mvr8D4-6ZsoaY.js → DEgxjiNnO2CGe0Mg.js} +1 -1
  163. package/cdn/assets/{BQvjW9Jty4-U9SFK.js → DGYEafEa6_TZj551.js} +3 -3
  164. package/cdn/assets/{DLsiLi8vx5Dfptv-.js → DOkzFxGiB06blrS9.js} +5 -5
  165. package/cdn/assets/{CltETef3jhrkecPf.js → DUlZT2QnfU4sQVQt.js} +1 -1
  166. package/{browser/esm/C_3VkH0ZheZ071rN.mjs → cdn/assets/DiClzo3XuRzjd65q.js} +1 -1
  167. package/cdn/assets/{BiOFFDEgChuOwhDE.js → DinosjN3TV2mmmEf.js} +1 -1
  168. package/cdn/assets/{B7D8V6hl0pqrQbTn.js → DlXpFGquI4mSMGm1.js} +2 -2
  169. package/cdn/assets/{TpfdiXShlwAgtUkY.js → DtqMH6GVpBAzJIaG.js} +2 -2
  170. package/cdn/assets/{Bc2e5A_96EeltLb_.js → DygZx1ZfiNYakAxe.js} +1 -1
  171. package/cdn/assets/{lvoY5e0ca7208QtA.js → HG75sA6aXdbc62Ko.js} +6 -6
  172. package/cdn/assets/{Xugp6lHzQ6dLo2g4.js → RLa3ezMcHnNW3QIP.js} +3 -3
  173. package/{browser/esm/BvIcikdTDlEgEQ6f.mjs → cdn/assets/SsRUVWcrhua0o1Dm.js} +1 -1
  174. package/{browser/esm/BXfFV2BdBlhgkv9G.mjs → cdn/assets/WzG__NqEXcEJGXF9.js} +1 -1
  175. package/cdn/assets/{DXps-gn4Z0b70HV6.js → YMtZzDjMWgR3_4eN.js} +1 -1
  176. package/cdn/assets/{COxP66Oa4UF7vs0r.js → ZA-dboXEhQS2FBOt.js} +2 -2
  177. package/cdn/assets/{CQ8dCPE-ihoMrQAl.js → mRBUVHHKueJc-e6f.js} +1 -1
  178. package/{browser/esm/BYMb2NO7eaBtRT3r.mjs → cdn/assets/ou3Du5ZoOZAZnu26.js} +1 -1
  179. package/cdn/assets/{BI9MEeqtjZ3NfNHD.js → oyGe2Lwd4q3JlxxI.js} +43 -43
  180. package/cdn/assets/{DsGfDyrPuOLTSGzn.js → zfgtBucZchI4hg1A.js} +1 -1
  181. package/cdn/index.js +2 -2
  182. package/cdn/loader.js +1 -1
  183. package/package.json +3 -3
  184. package/browser/cjs/BwLSPp7eayMgYH4t.cjs +0 -6
  185. package/browser/cjs/CN4kAKDbbc5vx7ze.cjs +0 -6
  186. package/browser/cjs/CmkLGqQl06XTkl2M.cjs +0 -32
  187. package/browser/cjs/CnErGY1yxFa4tbhh.cjs +0 -6
  188. package/browser/cjs/DU1ovF3blyLu7Vpl.cjs +0 -6
  189. package/browser/cjs/kNEruqqvNqSMEAzQ.cjs +0 -327
  190. package/browser/esm/DOLR2rBtsRGjK38Q.mjs +0 -11
  191. package/cdn/assets/B5sObQ-xoa3R4ReP.js +0 -12
  192. package/cdn/assets/DamY69Nh17USJC4D.js +0 -46
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./kNEruqqvNqSMEAzQ.cjs");exports.fromBufferCSV=async(a,u)=>{const{papaParseConfig:i,setValuesOptions:d,createWorkbookOptions:f}=u??{},t=u?.progress,m=t?.onStart?.(u?.name??"Parsing CSV");await Promise.resolve(m);const h=t?.onProgress,o=await Promise.resolve().then(()=>require("./A2sMA1rkxY2C4imP.cjs")).then(e=>e.p),p=new TextDecoder().decode(a);let l=-1;const r=new y.gy(f),n=r.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:y.w.Orientation.Row});let g=0;const w={...i,transform:(e,s)=>{i?.transform&&(e=i.transform(e,s));const c=s;c===0&&l++;let S=e??"";return n.pushAt(l,c,S),g++,g%1e5==0&&h?.(g),t?.onComplete?.(g),e}};return o.parse(p,w).data,n.apply({textParser:!0,...d}),r},exports.toBufferCSV=async(a,u)=>{const{trimLeadingBlankRow:i=!0,trimLeadingBlankColumn:d=!0,ignoreHidden:f=!1,sheetKey:t=null,papaParseConfig:m={}}=u||{},h=await Promise.resolve().then(()=>require("./A2sMA1rkxY2C4imP.cjs")).then(e=>e.p);if(!a)throw new Error("workbook must be specified");let o=null;if(t===null?o=a.getSelectedSheet():typeof t=="number"?o=a.getSheets().getItems()[t]:typeof t=="string"&&(o=a.getSheets().getByName(t)),!o)throw new Error("invalid sheetKey specified");let p=null;const l=[];let r=null,n=o.getUsedRange({ignoreHidden:f});if(!n)throw new Error("Nothing to export");if(!i||!d){const e=i?n.getRowStart():0,s=d?n.getColumnStart():0;n=n.getOffsetTo(e,s)}n.forEach((e,s)=>{const c=s.getCoords(),S=s.getCell();p!==c.rowIndex&&(r&&l.push(r),r=[],p=c.rowIndex);const C=S.toTextUnformatted()??"";r.push(C)},{includeEmpty:!0,address:null}),r&&l.push(r);const g={...m},w=h.unparse(l,g);return new TextEncoder().encode(w).buffer};
@@ -1,32 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./kNEruqqvNqSMEAzQ.cjs");let K=null,L=null;const le={compilerOptions:{target:"esnext"}},se=async()=>`
7
- interface FirstTest {
8
- isTrue?: boolean;
9
- }
10
- `,Y=new Map([["IReferenceRange","r"],["IRange","l"]]),Z=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),V=(T,S)=>{Array.from(S.keys()).forEach(z=>{const P=S.get(z);S.set(`${T}.${z}`,P)})},ce=new Map([["Scalar","*"],["FormulaError.Known",b.M$1.Error],["Date","Date"],["JSON","JSON"]]),de=new Map([]),U="SheetXL";V(U,Y),V(U,Z),V(U,de);const ue=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let R=null;async function pe(){if(R)return R;try{return await(await Promise.resolve().then(()=>require("./BGVhZTZCsB43TTwA.cjs"))).initialize()}catch(T){throw R=null,T}finally{R=null}}exports.compileModule=async function(T){const S=T?.source??null;if(!S)return null;const z=(T.disableBundle||T.declarationsOnly)??!1,P=[se(),pe()],X=await Promise.all(P),ee=X[0],n=X[1];let C="",j=null;const O=[],te={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:n.ScriptTarget.ES2020},A="script",I=`${A}.ts`,_="lib.d.ts",H="global.d.ts",F={[I]:S,[_]:`
11
- /**
12
- * Represents the completion of an asynchronous operation
13
- */
14
- interface Promise<T> {
15
- /**
16
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
17
- * resolved value cannot be modified from the callback.
18
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
19
- * @returns A Promise for the completion of the callback.
20
- */
21
- finally(onfinally?: (() => void) | undefined | null): Promise<T>;
22
- }
23
- `,[H]:ee},ne={getSourceFile:(e,o,y,r)=>n.createSourceFile(e,F[e],n.ScriptTarget.Latest,!0),fileExists:e=>F[e]!==void 0,readFile:e=>F[e],writeFile:(e,o)=>{F[e]=o},getCurrentDirectory:()=>"./",getCanonicalFileName:e=>e,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:e=>_,getNewLine:()=>`
24
- `},q=n.createProgram([I,H],te,ne),D=q.getTypeChecker(),re=q.getSourceFile(I),W=q.emit();W.diagnostics.length>0&&console.warn(W.diagnostics),C=F[`${A}.js`];const N=(e,o,y,r)=>{if(e){if(e.kind===n.SyntaxKind.NumberKeyword)o.scalar=b.M$1.Number;else if(e.kind===n.SyntaxKind.StringKeyword)o.scalar=b.M$1.String;else if(e.kind===n.SyntaxKind.BooleanKeyword)o.scalar=b.M$1.Boolean;else if(e.kind===n.SyntaxKind.UndefinedKeyword||e.kind===n.SyntaxKind.NullKeyword||e.kind===n.SyntaxKind.VoidKeyword){if(r)return void h(e,new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));o.scalar=b.M$1.Null}else if(e.kind===n.SyntaxKind.BigIntKeyword)o.scalar=b.M$1.Number;else if(e.kind===n.SyntaxKind.AnyKeyword)o.scalar=b.M$1.Null;else if(e.kind===n.SyntaxKind.ArrayType){const i=e.elementType;if(!i)return void h(e,new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));o.arrayDepth=(o.arrayDepth??0)+1,N(i,o,y,r)}else if(e.kind!==n.SyntaxKind.TupleType&&e.kind===n.SyntaxKind.TypeReference){const i=e.typeName?.getText?.()??null,f=Y.get(i);let m=!1;f&&(o.range=f,m=!0);const x=ce.get(i);if(x&&(o.scalar=x),x!==void 0&&(m=!0),r){const c=Z.get(i);if(c)return c}else{const c=ue.get(i);if(c){const l={...o,...c()};let t=0;if(l.async&&t++,l.stream&&t++,t>1)return void h(e,new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));o=l,m=!0}}if(!m)return void h("node",new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));const p=e.typeArguments;if(p){if(p.length!==1)return void h(e,new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));N(p[0],o,y,r)}}}else h(e,new Error(`Type is not defined for '${o?.name??"return"}'.`))},k=[],h=(e,o)=>{k.push(o)};if(n.forEachChild(re,e=>{if(y=e,(n.getCombinedModifierFlags(y)&n.ModifierFlags.Export)!==0&&n.isFunctionDeclaration(e)){const r={},i={parameters:{}},f=e?.name?.getText();try{r.name=f;const m=D.getSymbolAtLocation(e.name).getDocumentationComment(D);if(m&&m.length>0&&m[0].text){let l=m[0].text;l=l.replace(/[\r\n]+/g,"\\n").trim(),i.summary=l}const x={};N(e.type,x,r,!1),r.returnType=x;const p={};o=e,(n.getCombinedModifierFlags(o)&n.ModifierFlags.Default)!==0&&(p.default=!0,j=f),Object.keys(p).length>0&&(r.behavior=p),r.parameters=[];const c=new Map;for(let l=0;l<e.parameters.length;l++){const t=e.parameters[l],s={};s.name=t.name?.getText();const $=N(t.type,s,r,!0);if($){if(r.parameters.length!==0){const E=e?.parent,u=E?.name?.getText();return void h(e,new Error(`'${r.name}' contexts must be the first parameter: '${u}'.`))}r.context=$;continue}let g;if((t.initializer!==void 0&&t.initializer!==null||t.questionToken!==void 0&&t.questionToken!==null)&&(s.optional=!0,t.initializer))try{g=t.initializer.kind===n.SyntaxKind.StringLiteral?t.initializer.text:t.initializer.kind===n.SyntaxKind.NumericLiteral?parseFloat(t.initializer.text):t.initializer.kind===n.SyntaxKind.TrueKeyword||t.initializer.kind===n.SyntaxKind.FalseKeyword?t.initializer.kind===n.SyntaxKind.TrueKeyword:t.initializer.kind===n.SyntaxKind.NullKeyword?null:t.initializer.kind===n.SyntaxKind.ObjectLiteralExpression||t.initializer.kind===n.SyntaxKind.ArrayLiteralExpression?t.initializer.getText():t.initializer.getText?.()}catch(E){console.warn(`Couldn't extract default value for parameter '${s.name}'`,E)}t.dotDotDotToken&&(s.rest=!0),r.parameters.push(s);const d={description:""};i.parameters[s.name]=d;const a=D.getSymbolAtLocation(t.name).getDocumentationComment(D);a&&a.length>0&&a[0].text&&(d.description=a[0].text),g!==void 0&&(d.defaultValue=g),c.set(s.name,s)}if(e.jsDoc&&e.jsDoc.length>0){const l=e.jsDoc;for(let t=0;t<l.length;t++){const s=l[t]?.tags;if(s)for(let $=0;$<s.length;$++){const g=s[$];let d=g?.tagName?.text;if(!d)continue;d=d.toLowerCase();let a=g.comment;const E=d==="hidden";if((typeof a=="string"||E)&&(typeof a=="string"&&(a=a.replace(/[\r\n]+/g,"\\n").trim()),E||!a||(a=a.split(/\\n/)[0],a&&a.length!==0))){if(a&&typeof a=="string"){const u=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let w,v=a,M=[];for(;(w=u.exec(a))!==null;){const[B,J,oe,Q]=w,ae=[oe.trim()];Q&&ae.push(Q.trim())}a=v,M.length>0&&d==="see"&&(i.links||(i.links=[]),i.links.push(...M))}if(d==="name"){const u=a;u!==f&&(i.name=u)}else if(d!=="description"){if(d==="summary"){const u=a;u&&(i.summary=u)}else if(d==="param"){const u=g.name?.text,w=c.get(u);if(!w){k.push(new Error(`Parameter '${u}' not found in function '${f}'.`));continue}if(g.typeExpression&&g.typeExpression.type)try{const v=g.typeExpression.type;if(v.kind===n.SyntaxKind.UnionType){const M=[];w.enums=M,v.types.forEach(B=>{if(B.kind===n.SyntaxKind.LiteralType){const J=B.literal.text;J&&M.push(J)}})}}catch(v){console.warn("Error parsing JSDoc type expression:",v)}}else if(d==="returns"||d==="return")r.returnType.description=a;else if(d==="category")i.category=a;else if(d==="hidden"){let u=!0;const w=a?.toLowerCase();w==="false"?u=!1:w!=="true"&&(u=a),u!==!1&&(i.hidden=u??!0)}}}}}}Object.keys(r.returnType).length===0&&delete r.returnType,O.push([r,i])}catch(m){h(e,new Error(`'${f}': ${m.message}`))}}var o,y}),k.length>0)throw console.warn(k),new Error("There were compilation errors.",{cause:k});if(O.length===0)throw new Error("No exported functions.");const ie=`${b.te.uuidV4()}-script`;try{z||k.length!==0||(C=await(async function(e,o,y="/script.js",r="__SHEETXL"){try{const i=await(async function(){if(K)return K;if(L){if(await L,!K)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return K}let c,l;L=new Promise((t,s)=>{c=t,l=s});try{const{initialize:t}=await Promise.resolve().then(()=>require("./D6BPthEVXFKI4EuF.cjs"));return K=await t(),c(),K}catch(t){throw console.error("Failed to import or initialize esbuild:",t),L=null,l(t),t}})(),f="@sheetxl/primitives",m=`
25
- export const FormulaContext = globalThis.${r}?.FormulaContext;
26
- export const ScalarType = globalThis.${r}?.ScalarType;
27
- export const Observable = globalThis.${r}?.Observable;
28
- export const IRange = globalThis.${r}?.IRange;
29
- export const FormulaError = globalThis.${r}?.FormulaError;
30
- // Add more exports as needed
31
- `,x={name:"sheetxl-esbuild-in-memory",setup(c){const l="sheetxl-"+new Date().getTime();c.onResolve({filter:new RegExp(`^(${y.replace("/","\\/")}|${f})$`)},t=>({path:t.path,namespace:l})),c.onResolve({filter:/.*/},t=>{if(t.namespace!==l)return console.warn(`esbuild: Treating import "${t.path}" as external.`),{path:t.path,external:!0}}),c.onLoad({filter:/.*/,namespace:l},t=>{let s;if(t.path===y)s=o;else{if(t.path!==f)return{errors:[{text:`Cannot load unknown path in ${l}: ${t.path}`}]};s=m}return{contents:s,loader:"ts"}})}},p=await i.build({entryPoints:[y],bundle:!0,write:!1,format:"esm",plugins:[x],sourcemap:"inline",tsconfigRaw:le,minify:!0,platform:"neutral"});if(p.outputFiles&&p.outputFiles.length>0)return p.outputFiles[0].text;throw p.errors&&p.errors.length>0?new Error(`esbuild bundling failed: ${p.errors.map(c=>c.text).join(`
32
- `)}`):new Error("esbuild did not produce an output file.")}catch(i){throw console.error("esbuild bundling process failed:",i),i}})(0,C,A))}catch{console.warn("Error bundling script")}const G={functions:O,commitId:ie,source:S,name:"Script",language:"typescript",compiled:C};return j&&(G.autoRun=j),G};
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./kNEruqqvNqSMEAzQ.cjs"),B=["Input"],D=e.reactExports.memo(e.reactExports.forwardRef((h,f)=>{const{initialValue:O="",onOption:y,onValidateOption:r,onInputOption:s,onValidateInputOption:i,onDone:p,inputProps:l,inputLabel:E,inputType:j,inputPlaceHolder:T,options:u=B,autoFocusSel:v=".autoFocus",cancelOption:c,defaultOption:d=u?.[0],...w}=h,[F,M]=e.reactExports.useState(!1),[o,S]=e.reactExports.useState(O),[b,C]=e.reactExports.useState(""),[I,P]=e.reactExports.useState(!0),n=e.M(async(t,a)=>{if(!i)return!0;const g=await i?.(t,a);C(g?.message??"");const m=g?.valid??!0;return P(m),m},[i]),x=e.M(async t=>{s?.(o,t)},[o,s,p,y,c,d]),R=e.M(async t=>{t.keyCode===e.Eo.Enter&&await n?.(o,null)},[o,x]),k=e.M(t=>{S(t.target.value),n?.(t.target.value,null)},[r]),V=e.M(async t=>{let a=await n(o,t);try{a!==!1&&(a=await n(o,t))}catch{}return a??!0},[o,r]);return e.jsxRuntimeExports.jsx(e.Or,{options:u,onDone:p,onOption:(t,a)=>{a||x(t)},onValidateOption:V,cancelOption:c,defaultOption:d,autoFocusSel:v,ref:f,...w,children:e.jsxRuntimeExports.jsx(e.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0)},children:e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{onFocus:t=>{F||t.target?.select(),M(!0)},type:j,label:E,helperText:b||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5),color:I?void 0:"error.main"}},slotProps:{inputLabel:{shrink:!0},htmlInput:{placeholder:T,spellCheck:!1,autoComplete:"off",...l,className:e.Oe("autoFocus",l?.className),sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:o,onChange:k,onKeyDown:R,onContextMenu:t=>{t.stopPropagation()}})})})})}));exports.default=D;
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./kNEruqqvNqSMEAzQ.cjs"),g=require("./CU6n-o9BpYTLqmrY.cjs");class z{constructor(t){this.list=t}get length(){return this.list.length}item(t){return this.list[t]}forEach(t,e){for(let o=0;o<this.list.length;o++)t(this.list[o],o,this)}}const G=u=>u===!0||u==="1"||u==="on"||u==="true"||u!==!1&&u!=="0"&&u!=="off"&&u!=="false"&&null,W=u=>{const t=parseInt(u);return isNaN(t)?null:t},X=u=>{const t=parseFloat(u);return isNaN(t)?null:t},K=new Map;class V{constructor(t,e,o,r,s,i=null,n){const l=(c,h,d)=>n?.getRef?.(c,h,d,n?.parsedRefs),a=c=>n?.getRefs?.(c,n?.parsedRefs);this._parent=t,this.sharedShared=e,this.currentPath=o,this.elemRoot=r,this.jsonRoot=s,t?(this._fileLocation=t._fileLocation,this._getRef=t._getRef,this._getRefs=t._getRefs):(i&&(this._fileLocation=i),l&&a&&(this._getRef=l),a&&(this._getRefs=a),this._onWarning=n?.onWarning,this._addPerson=n?.addPerson)}getRef(t,e=!1){return this._getRef?.(t,this._fileLocation,e)??null}getRelationships(){return this._getRefs(this._fileLocation)??K}getPath(){return this.currentPath}getElemRoot(){return this.elemRoot}getJsonRoot(){return this.jsonRoot}warn(t){this._onWarning?this._onWarning(t):this._parent?this._parent?.warn?.(t):console.warn(t)}addPerson(t){return this._addPerson?this._addPerson(t):this._parent?this._parent?._addPerson?.(t):null}getVisitorParamsState(){return this.sharedShared.getVisitorParamsState()}evaluate(t,e){if(!t)return e;let o=[e];const r=t.split("/");for(let s=0;s<r.length;s++){const i=r[s];if(i===""||i===".")continue;let n=[];for(let l=0;l<o.length;l++){const a=o[l],c=a.childNodes;for(let h=0;c&&h<c.length;h++){const d=a.childNodes[h];d.localName!==i&&i!=="*"||n.push(d)}}o=n}return o.length===1?o[0]:o.length===0?null:new z(o)}getFromPath(t,e){return p.te.getFromPath(t,e)}setToPath(t,e,o){return p.te.setToPath(t,e,o)}getValAttrAsString(t,e){let o=this.evaluate(t,e);return o&&o.hasAttribute("val")?o.getAttribute("val")??null:null}getValAttrAsBoolean(t,e,o=!1){let r=this.evaluate(t,e);if(!r)return null;const s=r.hasAttribute("val")?r.getAttribute("val"):void 0;return s==null?o:s==="1"||s==="on"||s==="true"||s!=="0"&&s!=="off"&&s!=="false"&&o}getValAttrAsInteger(t,e){let o=this.evaluate(t,e);return o&&o.hasAttribute("val")?parseInt(o.getAttribute("val"))??null:null}getValAttrAsFloat(t,e){let o=this.evaluate(t,e);return o&&o.hasAttribute("val")?parseFloat(o.getAttribute("val"))??null:null}get BOOLEAN_COPY(){return G}get INT_COPY(){return W}get FLOAT_COPY(){return X}copyFromAttribute(t,e,o,r=e,s=null){if(!t||!o||!t.hasAttribute(e))return;let i=t.getAttribute(e);if(s){if(Array.isArray(s)){for(let n=0;n<s.length;n++)if(i==null||(i=s[n](i),i==null))return}else if(i==null||(i=s(i),i==null))return}this.setToPath(o,r,i)}}class S{constructor(t){this.jsonKey=t}visit(t,e,o){const r={};return o[this.jsonKey]=r,r}}class ${visit(t,e,o){if(!e)return;const r=e.childNodes;for(let s=0;s<r.length;s++){const i=r.item(s);i.nodeType===1&&i.localName==="Relationship"&&this.processRelationship(t,i,o)}return o}processRelationship(t,e,o){const r={};t.copyFromAttribute(e,"Target",r,"target"),t.copyFromAttribute(e,"Type",r,"type"),t.copyFromAttribute(e,"TargetMode",r,"targetMode"),o[e.getAttribute("Id")]=r}}const Y=(u,t)=>{if(u||!u.hasAttribute("rot"))return;const e=u.getAttribute("rot"),o=p.te.roundAccurately(g.p(e),2);o!==-1e3&&(t.rotation=o)},A=(u,t,e,o,r)=>{const s=u.getValAttrAsString(o,t);s!==null&&(e[r]=s)},f=(u,t,e,o,r=o,s=null)=>{const i=u.getValAttrAsBoolean(o,t,s);i!==null&&(e[r]=i)},C=(u,t,e,o,r)=>{const s=u.getValAttrAsInteger(o,t);s!==null&&(e[r]=s)},y=(u,t,e,o,r,s=1)=>{const i=u.getValAttrAsFloat(o,t);i!==null&&(e[r]=i*s)};class J{visit(t,e,o){return f(t,e,o,"roundedCorners","roundedCorners"),C(t,e,o,".//AlternateContent/Fallback/style","styleId"),o.range=null,o}afterVisit(t,e,o){let r={};o.types=r;let s={},i=0,n={},l=0,a=t.getVisitorParamsState().get("axes");const c=t.getVisitorParamsState().get("types");for(let m=0;m<c.length;m++){const b=c[m];if(b.xAxisId){const v=b.xAxisId,P=a.get(v);s[m+""]=P,b.offsetXAxis=m,delete b.xAxisId,o.xAxes=s,s.length=++i}if(b.yAxisId){const v=b.yAxisId,P=a.get(v);n[m+""]=P,b.offsetYAxis=m,delete b.yAxisId,o.yAxes=n,n.length=++l}r[m+""]=b}r.length=c.length;const h=t.getVisitorParamsState().get("series");if(!h||h.length===0)return;const d={};o.series=d;for(let m=0;m<h.length;m++)d[m+""]=h[m];d.length=h.length}}class H{visit(t,e,o){return f(t,e,o,"plotVisOnly","plotVisOnly"),A(t,e,o,"dispBlanksAs","dispBlanksAs"),f(t,e,o,".//extLst/ext/dataDisplayOptions16/dispNaAsBlank","dispNaAsBlank"),f(t,e,o,"showDLblsOverMax","showDLblsOverMax"),o}afterVisit(t,e,o){try{const r=t.getValAttrAsBoolean("autoTitleDeleted",e),s=t.evaluate("title",e);t.setToPath(o,"title.shown",!(r===!0||!s));const i=t.evaluate("legend",e);t.setToPath(o,"legend.shown",i!==null)}catch(r){throw new Error("Unexpected Error parsing Chart: "+r)}}}class Z{visit(t,e,o){let r={};return o.plotArea=r,r}}class O{EnumMappings(){}static fromOoxmlGradientType(t){return t==="circle"?"radial":t}static fromOoxmlLineCap(t){if(t==="rnd")return"round";if(t==="flat")return"butt";if(t==="sq")return"square";throw new Error("Invalid lineCap type: "+t)}static fromOoxmlCompound(t){return t==="sng"?"single":t}static fromOoxmlAlignment(t){return t==="ctr"?"center":t}}class D{visit(t,e,o){}processStroke(t,e,o){const r={},s=t.evaluate("ln",e);if(s){s.hasAttribute("algn")&&(r.align=O.fromOoxmlAlignment(s.getAttribute("algn"))),s.hasAttribute("cap")&&(r.lineCap=O.fromOoxmlLineCap(s.getAttribute("cap"))),s.hasAttribute("cmpd")&&(r.compound=O.fromOoxmlCompound(s.getAttribute("cmpd"))),s.hasAttribute("w")&&(r.width=g.t(s.getAttribute("w")));const i=t.evaluate("miter",s);i&&(r.lineJoin="miter",i.hasAttribute("lim")&&(r.miter=parseFloat(i.getAttribute("lim")))),t.evaluate("bevel",s)&&(r.lineJoin="bevel"),t.evaluate("round",s)&&(r.lineJoin="round");const n=t.evaluate("custDash",s);if(n){const c=t.evaluate("ds",n);if(c&&c.length>0){let h="";for(let d=0;d<c.length;d++){const m=c.item(d);h+=g.a(m.getAttribute("d"))+","+g.a(m.getAttribute("sp"))}r.dash=h}}const l=t.evaluate("prstDash",s);l&&l.hasAttribute("val")&&(r.dash=l.getAttribute("val")),this.parseEndElement(t,s,r,"headEnd","head"),this.parseEndElement(t,s,r,"tailEnd","tail");const a=this.processFill(t,s,o);r.fill=a}return r}parseEndElement(t,e,o,r,s){const i=t.evaluate(r,e);if(i&&(i.hasAttribute("type")&&(o[s+"Type"]=i.getAttribute("type")),i.hasAttribute("len")||i.hasAttribute("w"))){const n=i.getAttribute("len")?i.getAttribute("len"):"med",l=i.getAttribute("w")?i.getAttribute("w"):"med";o[s+"Size"]=n+"-"+l}}processFill(t,e,o){const r={};if(t.evaluate("noFill",e))return r.none=!0,r;const s=t.evaluate("solidFill",e);if(s){const a=this.processAdjColor(t,s);return a&&(r.solid=a),r}const i=t.evaluate("gradFill",e);if(i){i.hasAttribute("rotWithShape")&&(r.isRotated=i.getAttribute("rotWithShape")==="1");const a=this.processGradFill(t,i);return r.gradient=a,r}const n=t.evaluate("pattFill",e);if(n){const a=this.processPatternFill(t,n);return r.pattern=a,r}const l=t.evaluate("blipFill",e);if(l){l.hasAttribute("rotWithShape")&&(r.isRotated=g.b(l.getAttribute("rotWithShape"))),l.hasAttribute("dpi")&&(r.dpi=l.getAttribute("dpi"));const a=this.processImageFill(t,l);return r.image=a,r}return r.none=!0,r}processGradFill(t,e){const o={},r=t.evaluate("lin",e);if(r){if(o.type="linear",r.hasAttribute("ang")){const c=g.p(r.getAttribute("ang"));o.angle=c}if(r.hasAttribute("scaled")){const c=g.b(r.getAttribute("scaled"));o.scaled=c}}const s={};e.hasAttribute("flip")&&(s.mirror=e.getAttribute("flip")),Object.keys(s).length>0&&(o.tile=s);const i=t.evaluate("path",e);if(i){i.hasAttribute("path")&&(o.type=O.fromOoxmlGradientType(i.getAttribute("path")));const c=t.evaluate("fillToRect",i);c&&(o.fillTo=this.getRect(c))}const n=t.evaluate("tileRect",e);n&&(o.tile.bounds=this.getRect(n));const l=[],a=t.evaluate("gsLst/gs",e);for(let c=0;a&&c<a.length;c++){const h=a.item(c),d={offset:g.a(h.getAttribute("pos")),color:this.processAdjColor(t,h)};l.push(d)}return l.length>0&&(o.stops=l),o}getRect(t){const e={};return t.hasAttribute("t")&&(e.t=g.a(t.getAttribute("t"))),t.hasAttribute("l")&&(e.l=g.a(t.getAttribute("l"))),t.hasAttribute("b")&&(e.b=g.a(t.getAttribute("b"))),t.hasAttribute("r")&&(e.r=g.a(t.getAttribute("r"))),Object.keys(e).length===0?null:e}processImageFill(t,e){return{ref:"https://www.sheetxl.com/logo-color-padded-white.jpg",tile:!1}}processPatternFill(t,e){const o={},r=e.getAttribute("prst");o.type=r;const s=t.evaluate("bgClr",e);if(s){const n=this.processAdjColor(t,s);n&&(o.background=n)}const i=t.evaluate("fgClr",e);if(i){let n=this.processAdjColor(t,i);n&&(o.foreground=n)}return o}processAdjColor(t,e){const o=t.evaluate("hslClr",e);if(o)return this.processHslClr(t,o);const r=t.evaluate("prstClr",e);if(r)return this.processClrWithValAttribute(t,r);const s=t.evaluate("schemeClr",e);if(s)return this.processClrWithValAttribute(t,s);const i=t.evaluate("sysClr",e);if(i)return this.processClrWithValAttribute(t,i);const n=t.evaluate("scrgbClr",e);if(n)return this.processScrgbClrElement(t,n);const l=t.evaluate("srgbClr",e);return l?this.processSrgbClrElement(t,l):null}processScrgbClrElement(t,e){let o="lrgba("+g.a(e.getAttribute("r"))+","+g.a(e.getAttribute("g"))+","+g.a(e.getAttribute("b"))+")";return o+=this.processAdjustments(t,e),o}processSrgbClrElement(t,e){let o=e.getAttribute("val");return o+=this.processAdjustments(t,e),o}processHslClr(t,e){let o="hsl("+g.p(e.getAttribute("hue"))+","+g.a(e.getAttribute("sat"))+","+g.a(e.getAttribute("lum"))+")";return o+=this.processAdjustments(t,e),o}processClrWithValAttribute(t,e){const o=e.getAttribute("val");if(!o)return;let r=o;return r+=this.processAdjustments(t,e),r}processAdjustments(t,e){let o="";const r=e.childNodes;for(let s=0;s<r.length;s++){const i=r.item(s);if(i.nodeType===1){let n=i.localName;o+=n==="hue"||n==="hueOff"||n==="hueMod"?this.processAdjustmentElement(t,e,n,6e4):n==="gray"||n==="comp"||n==="inv"||n==="gamma"||n==="invGamma"?this.processAdjustmentElement(t,e,n,1):this.processAdjustmentElement(t,e,n)}}return o}processAdjustmentElement(t,e,o,r=1e3){const s=t.evaluate(o,e);if(!s)return"";const i=s.getAttribute("val");return i?` ${o} ${!i||parseFloat(i)/r}`:` ${o}`}}class L extends D{visit(t,e,o){try{const r=t.evaluate("xfrm",e);if(r){Y(r,o);const l={x:0,y:0,width:0,height:0},a=t.evaluate("off",r);a&&(l.x=g.c(a.getAttribute("x"))??0,l.y=g.c(a.getAttribute("y"))??0);const c=t.evaluate("ext",r);a&&(l.width=g.c(c.getAttribute("cx"))??0,l.height=g.c(c.getAttribute("cy"))??0),o.bounds=l}const s=t.evaluate("prstGeom",e);s?.hasAttribute("prst")?o.geometry=s?.getAttribute("prst"):t.evaluate("customGeom",e)&&console.warn("customGeom not supported yet");const i=this.processFill(t,e,o);i&&Object.keys(i).length>0&&(o.fill=i);const n=this.processStroke(t,e,o);return n&&Object.keys(n).length>0&&(o.stroke=n),o}catch(r){throw console.warn(r),new Error("Unexpected Error parsing Shape Properties element")}}}class N{visit(t,e,o){let r={};if(A(t,e,r,"grouping","grouping"),f(t,e,r,"varyColors","varyColors"),y(t,e,r,"gapWidth","gapWidth",.01),y(t,e,r,"overlap","overlap",.01),this.parseType(t,e,r),C(t,e,r,"bubbleScale","bubbleScale"),f(t,e,r,"showNegBubbles","showNegativeBubbleValues"),f(t,e,r,"sizeRepresents","bubbleSizeRepresentsWidth"),C(t,e,r,"firstSliceAng","startAngle"),C(t,e,r,"holeSize","holeSize"),A(t,e,r,"scatterStyle","scatterStyle"),this.parseAxisIds(t,e,r),Object.keys(r).length>0){let s=t.getVisitorParamsState().get("types");s||(s=[],t.getVisitorParamsState().set("types",s)),s.push(r)}return r}parseType(t,e,o){switch(e.localName){case"areaChart":o.type="area";break;case"bubbleChart":o.type="bubble";break;case"doughnutChart":case"ofPieType":case"pieChart":o.type="pie";break;case"lineChart":o.type="line";break;case"scatterChart":o.type="scatter"}}parseAxisIds(t,e,o){const r=t.evaluate("axId",e);if(!r||r.length===0)return;const s=r.item(0).getAttribute("val");o.xAxisId=s;const i=r.item(1).getAttribute("val");o.yAxisId=i}}class q extends N{parseType(t,e,o){const r=t.getValAttrAsString("barDir",e);r&&(o.type=r==="col"?"column":"bar")}}class w{constructor(t){this.jsonKey=t}visit(t,e,o){let r={},s=r,i=t.getValAttrAsString("idx",e);i!==null&&(s={},s[i]=r);const n=t.getValAttrAsBoolean("delete",e);this.parseNumFormat(t,e,r),n===!0?(r.showBubbleSize=!1,r.showCatName=!1,r.showLeaderLines=!1,r.showPercentage=!1,r.showSerName=!1,r.showVal=!1,r.showLegendKey=!1):(f(t,e,r,"showBubbleSize","showBubbleSize"),f(t,e,r,"showCatName","showCatName"),f(t,e,r,"showLeaderLines","showLeaderLines"),f(t,e,r,"showPercent","showPercentage"),f(t,e,r,"showSerName","showSerName"),f(t,e,r,"showVal","showVal"),f(t,e,r,"showLegendKey","showLegendKey"));const l=t.evaluate("separator",e);return l!==null&&(r.separator=l.textContent),A(t,e,r,"dLblPos","position"),o[this.jsonKey]=s,r}parseNumFormat(t,e,o){const r=t.evaluate("numFmt",e);if(r){const s=r.getAttribute("formatCode");o.formatCode=s,r.hasAttribute("sourceLinked")&&(o.sourceLinked=r.getAttribute("sourceLinked")==="1")}}}const M=(u,t,e)=>{if(u.getValAttrAsBoolean("invertIfNegative",t)===!0)if(u.evaluate("extLst/ext/invertSolidFillFmt",t)){if(e.fill&&e.fillNegative){const o=u.getFromPath(e,"fill.solid.adjs");o&&u.setToPath(e,"fillNegative.solid.adjs",o)}}else{const o={val:"FFFFFF"},r={};r.solid=o,e.fillNegative=r;const s={val:"000000"},i={};i.solid=s;const n={};n.fill=i,e.strokeNegative=n}};class Q{visit(t,e,o){const r={};C(t,e,r,"explosion","explosion");let s=t.evaluate("cat/*/f",e);s||(s=t.evaluate("xVal/*/f",e));let i=null;s!==null&&s.firstChild!==null&&(i=s.firstChild.nodeValue),s||(s=t.evaluate("cat/strLit",e),s||(s=t.evaluate("cat/numLit",e)),s&&(i=this.parsePointsAsString(t,s))),i!==null&&(r.xRange=i);let n=t.evaluate("val/*/f",e);n||(n=t.evaluate("yVal/*/f",e));let l=null;n&&n.firstChild&&(l=n.firstChild.nodeValue),n||(n=t.evaluate("val/numLit",e),n!==null&&(l=this.parsePointsAsString(t,n))),l!==null&&(r.valRange=l),this.parseTitleRangeOrValue(t,e,r),C(t,e,r,"idx","idx"),f(t,e,r,"smooth","smooth");const a=t.getVisitorParamsState().get("types").length-1;r.offsetChart=a;let c=t.getVisitorParamsState().get("series");return c||(c=[],t.getVisitorParamsState().set("series",c)),c.push(r),r}parseTitleRangeOrValue(t,e,o){const r=t.evaluate("tx/strRef/f",e);if(r!==null){const s=r.firstChild.nodeValue;t.setToPath(o,"title.range",s)}else{const s=t.evaluate("tx/v",e);s!==null&&t.setToPath(o,"title.text.simpleRun",s.firstChild.nodeValue)}}parsePointsAsString(t,e){let o="{";const r=t.getValAttrAsInteger("ptCount",e),s=t.evaluate("pt",e),i=[];for(let n=0;s&&r&&n<r;n++){let l=null,a=t.evaluate("pt[@idx='"+n+"']/v",e);a instanceof Node&&(l=a.textContent),i[n]=l}for(let n=0;n<i.length;n++)n>0&&(o+=","),i[n]!==void 0&&(o+=i[n]);return o+="}",o}afterVisit(t,e,o){M(t,e,o);let r=t.getFromPath(o,"points");if(r){const s=Object.keys(r);for(let i=0;i<s.length;i++){const n=s[i],l=t.getFromPath(r,n);if(!l)continue;let a=t.getFromPath(l,"markers");a&&(t.setToPath(o,"markers.points."+n,a),delete l.markers)}}}}class tt{DataPointVisitor(){}visit(t,e,o){let r=t.getFromPath(o,"points"),s=null;r?s=r:(s={},t.setToPath(o,"points",s));let i={},n=t.getValAttrAsString("idx",e);return n!==null&&(s[n]=i),f(t,e,i,"bubble3D","bubble3D"),C(t,e,i,"explosion","explosion"),M(t,e,i),i}}class et{visit(t,e,o){const r=e.parentNode.localName;if(r==="ser"||r==="dPt"){const s={},i=t.getValAttrAsString("size",e);i!==null&&(s.size=i);const n=t.getValAttrAsString("symbol",e);return n&&(s.type=n),o.markers=s,s}return null}}class k{visit(t,e,o){let r={};this.parseScaling(t,e,r),y(t,e,r,"majorUnit","majorUnits"),y(t,e,r,"minorUnit","minorUnits"),f(t,e,r,"delete","shown"),this.parseOrientation(t,e,r),this.parseNumFormat(t,e,r),A(t,e,r,"majorTickMark","majorTickMarks"),A(t,e,r,"minorTickMark","minorTickMarks"),A(t,e,r,"crosses","crosses"),y(t,e,r,"crossesAt","crosses"),A(t,e,r,"crossBetween","crossBetween"),this.parseLabelAlign(t,e,r),C(t,e,r,"lblOffset","labelOffset"),A(t,e,r,"tickLblPos","labelPosition");const s=t.getValAttrAsInteger("noMultiLvlLbl",e);r.labelMultiLevel=s!==null&&s===0,C(t,e,r,"tickMarkSkip","tickMarkSkip"),C(t,e,r,"tickLblSkip","labelInterval"),this.parseDisplayCustOrBuiltInUnit(e,t,r),this.parseTimeUnits(t,e,r,"majorUnitDates","majorTimeUnit","majorUnit"),this.parseTimeUnits(t,e,r,"minorUnitDates","minorTimeUnit","minorUnit"),A(t,e,r,"baseTimeUnit","baseUnitDates"),t.getVisitorParamsState().get("axes")||t.getVisitorParamsState().set("axes",new Map);const i=t.getValAttrAsString("axId",e);return t.getVisitorParamsState().get("axes").set(i,r),r}parseTimeUnits(t,e,o,r,s,i){const n={};let l=t.getValAttrAsString(s,e);if(l!==null){n.dem=l;let a=t.getValAttrAsString(i,e);n.amt=a}Object.keys(n).length>0&&(o[r]=n)}parseDisplayCustOrBuiltInUnit(t,e,o){let r=e.getValAttrAsString("dispUnits/builtInUnit",t);r||(r=e.getValAttrAsString("dispUnits/custUnit",t)),r&&(o.displayUnits=r)}parseLabelAlign(t,e,o){let r=t.getValAttrAsString("lblAlgn",e);r!==null&&(r==="ctr"?o.labelAlign="center":r==="l"?o.labelAlign="left":r==="r"&&(o.labelAlign="right"))}parseOrientation(t,e,o){const r=t.getValAttrAsString("AxPos",e);r!==null&&(r==="b"?o.orientation="bottom":r==="l"?o.orientation="left":r==="r"?o.orientation="right":r==="t"&&(o.orientation="top"))}parseNumFormat(t,e,o){const r={},s=t.evaluate("numFmt",e);s!==null&&(s.hasAttribute("formatCode")&&(r.formatCode=s.getAttribute("formatCode")),s.hasAttribute("sourceLinked")&&(r.sourceLinked=s.getAttribute("sourceLinked")==="1")),Object.keys(r).length>0&&(o.labels=r)}parseScaling(t,e,o){const r=t.getValAttrAsString("scaling/orientation",e);r!==null&&(o.inverted=r!=="minMax");const s=t.getValAttrAsFloat("scaling/logBase",e);s!==null&&(o.logBase=s,o.scaleType="log"),y(t,e,o,"scaling/max","max"),y(t,e,o,"scaling/min","min")}afterVisit(t,e,o){o.fill&&o.labels&&(o.labels.fill=o.fill,delete o.fill);let r=t.getValAttrAsBoolean("delete",e);r!==null&&(t.setToPath(o,"labels.shown",r!==!0),t.setToPath(o,"shown",r!==!0));const s=t.getFromPath(o,"dispUnits.displayUnitsLabel");s&&(t.setToPath(o,"displayUnitsLabel",s),delete o.dispUnits);const i=t.evaluate("title",e);t.setToPath(o,"title.shown",i!==null);const n=t.evaluate("minorGridlines",e);t.setToPath(o,"gridLinesMinor.shown",n!==null);const l=t.evaluate("majorGridlines",e);t.setToPath(o,"gridLinesMajor.shown",l!==null)}}class F{constructor(t="text"){this._jsonKey=t}getTextPath(){return this._jsonKey}visit(t,e,o){let r=t.getFromPath(o,this.getTextPath());return r||(r={}),this.parseTextElement(t,e,r,!1),Object.keys(r).length>0&&t.setToPath(o,this.getTextPath(),r),o}parseTextElement(t,e,o,r){const s=t.evaluate("p/pPr/defRPr",e)??t.evaluate("defRPr",e);s&&(this.parseTextProperties(t,s,o),new L().visit(t,s,o));let i=[],n=t.evaluate("p/r",e)??t.evaluate("r",e);const l=c=>{const h={};let d=t.evaluate("t",c);const m=t.evaluate("rPr",c);m&&this.parseTextProperties(t,m,h),d?h.text=d.firstChild.textContent??"":c.textContent&&(h.text=c.textContent??""),i.push(h)};if(n?.length!==void 0)for(let c=0;n&&c<n.length;c++)l(n.item(c));else l(n||e);i.length>0&&(o.runs=i);const a=t.evaluate("bodyPr",e);a&&Y(a,o)}parseTextProperties(t,e,o){if(!e)return;e.hasAttribute("sz")&&(o.size=parseFloat(e.getAttribute("sz"))/100),e.hasAttribute("b")&&(o.weight=e.getAttribute("b")==="1"?700:400),e.hasAttribute("i")&&(o.italic=e.getAttribute("i")==="1"),e.hasAttribute("u")&&(o.underline=e.getAttribute("u")),e.hasAttribute("strike")&&(o.strike=e.getAttribute("strike"));const r=t.evaluate("latin",e);if(r&&!r.getAttribute("typeface").startsWith("+")){const s=o.font??{};if(r.hasAttribute("typeface")&&(s.family=r.getAttribute("typeface")),r.hasAttribute("panose")){const i=r.getAttribute("panose");i&&(s.fallbacks=[p.ut.getPanoseFallback(i)])}r.hasAttribute("pitchFamily")&&(s.pitch=r.getAttribute("pitchFamily")),r.hasAttribute("charset")&&(s.charset=r.getAttribute("charset")),Object.keys(s).length>0&&(o.font=s)}}}class rt{visit(t,e,o){let r=t.getVisitorParamsState().get("series")[t.getValAttrAsInteger("idx",e)];if(r){let s=t.getFromPath(r,"title");s||(s={},t.setToPath(r,"title",s));let i=s,n=t.getValAttrAsBoolean("delete",e);return n!==null&&(i.shown=!n),i}return o}}class ot{visit(t,e,o){const r={};return f(t,e,r,"overlay","overlay"),A(t,e,r,"legendPos","position"),o.legend=r,r}}class st extends L{visit(t,e,o){const r=this.processFill(t,e,o);Object.keys(r).length>0&&(o.fillNegative=r);const s=this.processStroke(t,e,o);return Object.keys(s).length>0&&(o.strokeNegative=s),o}}class _ extends F{constructor(t="title"){super(t)}parseTitleRangeOrValue(t,e,o){let r=t.evaluate("tx/strRef/f",e)??null;if(r){const s=r.firstElementChild.nodeValue;t.setToPath(o,"range",s)}}visit(t,e,o){const r={};f(t,e,r,"overlay","overlay"),o[this._jsonKey]=r;let s=t.getFromPath(r,this.getTextPath());s||(s={}),this.parseTitleRangeOrValue(t,e,r);const i=t.evaluate("txPr",e);i&&this.parseTextElement(t,i,s,!1);const n=t.evaluate("tx/rich",e);return n&&this.parseTextElement(t,n,s,!0),Object.keys(s).length>0&&t.setToPath(r,this.getTextPath(),s),r}afterVisit(t,e,o){if(o?.text){const r=o.text?.rotation??null;r!==null&&(o.rotation=parseInt(r),delete o.title.rotation)}}}class it{visit(t,e,o){const r=t.evaluate("manualLayout",e);if(r){let s={};y(t,r,s,"x","x"),y(t,r,s,"y","y"),y(t,r,s,"w","w"),y(t,r,s,"h","h"),A(t,r,s,"xMode","xMode"),A(t,r,s,"yMode","yMode"),A(t,r,s,"wMode","wMode"),A(t,r,s,"hMode","hMode"),Object.keys(s).length>0&&(o.manualLayout=s)}return o}}class nt{visit(t,e,o){return o.name=e.getAttribute("name"),o}}class lt extends D{visit(t,e,o){const r={};r.name=e.getAttribute("name");const s=e.childNodes;for(let i=0;i<s.length;i++){const n=s.item(i);if(n.nodeType===1){let l=n.localName;const a=t.evaluate(l,e),c=this.processAdjColor(t,a);r[l]=c}}return Object.keys(r).length>0&&(o.colors=r),r}}class at{visit(t,e,o){const r={};r.name=e.getAttribute("name");const s=t.evaluate("majorFont",e),i=this.processFontElement(t,s,{});r.majorFont=i.family,i.fallbacks&&(r.majorFallbacks=i.fallbacks);const n=t.evaluate("minorFont",e),l=this.processFontElement(t,n,{});return r.minorFont=l.family,i.fallbacks&&(r.minorFallbacks=l.fallbacks),o.fonts=r,r}processFontElement(t,e,o){if(!e)return;const r=t.evaluate("latin",e);if(!r)return;const s=r.getAttribute("typeface");s&&(o.family=s);const i=r.getAttribute("panose");return i&&(o.fallbacks=[p.ut.getPanoseFallback(i)]),o}}class ct{visit(t,e,o){if(!e)return;const r={},s=e.getAttribute("r:id");if(s){const i=t.getRef(s);typeof i=="string"&&(r.address=i)}return t.copyFromAttribute(e,"tooltip",r),t.copyFromAttribute(e,"history",r,"history",t.BOOLEAN_COPY),t.copyFromAttribute(e,"tgtFrame",r,"target"),o.hyperlink=r,r}}class ut{visit(t,e,o){if(!e)return;const r={};return t.copyFromAttribute(e,"ref",r),this.processFilterColumns(t,e,r),Object.keys(r).length>0&&(o.filter=r),r}processColorFilter(t,e){const o={type:p.od.Type.Color};return t.copyFromAttribute(e,"cellColor",o,"cellColor",t.BOOLEAN_COPY),t.copyFromAttribute(e,"dxfId",o,"styleId",t.INT_COPY),o}processCustomFilter(t,e){const o={};return t.copyFromAttribute(e,"operator",o,"operator",t.BOOLEAN_COPY),t.copyFromAttribute(e,"val",o,"val"),o}processCustomFilters(t,e){const o={type:p.od.Type.Custom};t.copyFromAttribute(e,"and",o,"and",t.BOOLEAN_COPY);const r=e.childNodes;o.filters=[];for(let s=0;s<r.length;s++){const i=r.item(s);if(i.nodeType!==1)continue;let n=null;i.localName==="customFilter"&&(n=this.processCustomFilter(t,i)),n&&o.filters.push(n)}return o}processDynamicFilter(t,e){const o={type:p.od.Type.Dynamic};return t.copyFromAttribute(e,"type",o,"dynamicType"),t.copyFromAttribute(e,"val",o,"val",t.INT_COPY),t.copyFromAttribute(e,"maxVal",o,"maxVal",t.INT_COPY),o}processDateGroupItem(t,e){const o={};return t.copyFromAttribute(e,"dateTimeGrouping",o,"group"),t.copyFromAttribute(e,"day",o,"day",t.INT_COPY),t.copyFromAttribute(e,"hour",o,"hour",t.INT_COPY),t.copyFromAttribute(e,"minute",o,"minute",t.INT_COPY),t.copyFromAttribute(e,"month",o,"month",t.INT_COPY),t.copyFromAttribute(e,"second",o,"second",t.INT_COPY),t.copyFromAttribute(e,"year",o,"year",t.INT_COPY),o}processFilterItem(t,e){if(e.hasAttribute("val"))return e.getAttribute("val")}processFilters(t,e){const o={type:p.od.Type.Items};t.copyFromAttribute(e,"blank",o,"blank",t.BOOLEAN_COPY),t.copyFromAttribute(e,"calendarType",o,"calendarType");let r=[],s=[];const i=e.childNodes;for(let n=0;n<i.length;n++){const l=i.item(n);if(l.nodeType===1){if(l.localName==="dateGroupItem"){const a=this.processDateGroupItem(t,l);a&&r.push(a)}else if(l.localName==="filter"){const a=this.processFilterItem(t,l);a!==void 0&&s.push(a)}}}return r.length>0&&(o.dateGroups=r),s.length>0&&(o.items=s),o}processIcon(t,e){const o={type:p.od.Type.Icon};return t.copyFromAttribute(e,"iconId",o,"iconId",t.INT_COPY),t.copyFromAttribute(e,"iconSet",o),o}processTop10(t,e){const o={type:p.od.Type.Top10};return t.copyFromAttribute(e,"filterVal",o,"filterVal",t.FLOAT_COPY),t.copyFromAttribute(e,"percent",o,"percent",t.BOOLEAN_COPY),t.copyFromAttribute(e,"top",o,"top",t.BOOLEAN_COPY),t.copyFromAttribute(e,"val",o,"val",t.FLOAT_COPY),o}processFilterCriteria(t,e,o){if(!e)return;const r=e.childNodes,s=[];for(let i=0;i<r.length;i++){const n=r.item(i);if(n.nodeType!==1)continue;let l=null;n.localName==="colorFilter"?l=this.processColorFilter(t,n):n.localName==="customFilters"?l=this.processCustomFilters(t,n):n.localName==="dynamicFilter"?l=this.processDynamicFilter(t,n):n.localName==="filters"?l=this.processFilters(t,n):n.localName==="iconFilter"?l=this.processIcon(t,n):n.localName==="top10"&&(l=this.processTop10(t,n)),l&&s.push(l)}return s.length>0&&(o.criteria=s),s}processFilterColumn(t,e){if(!e)return null;const o={};if(!e.hasAttribute("colId"))return;o.offset=parseInt(e.getAttribute("colId"));let r=!1;return e.hasAttribute("hiddenButton")&&(r=g.b(e.getAttribute("hiddenButton"))),r&&(o.hiddenButton=!0),e.hasAttribute("showButton")&&(o.showButton=g.b(e.getAttribute("showButton"))),this.processFilterCriteria(t,e,o),o}processFilterColumns(t,e,o){if(!e)return;const r=e.childNodes,s=[];for(let i=0;i<r.length;i++){const n=r.item(i);if(n.nodeType===1&&n.localName==="filterColumn"){const l=this.processFilterColumn(t,n);l&&s.push(l)}}return s.length>0&&(o.fields=s),s}}class ht{visit(t,e,o){if(!e)return;const r={};if(t.copyFromAttribute(e,"ref",r),e.hasAttribute("caseSensitive")){const n=g.b(e.getAttribute("caseSensitive"));r.collatorOptions=n?p.Kr.CaseSensitiveOptions:p.Kr.CaseInsensitiveOptions}const s=e.getAttribute("sortMethod");s!=null&&s!=="none"&&(s==="stroke"?r.collatorOptions={...r.collatorOptions,collation:"stroke"}:s==="pinYin"&&(r.collatorOptions={...r.collatorOptions,collation:"pinyin"})),e.hasAttribute("columnSort")&&g.b(e.getAttribute("columnSort"))&&(r.orientation=p.w.Orientation.Column);const i=p.ro.fastStringToRange(r.ref);return this.processSortConditions(t,e,r,i),Object.keys(r).length>0&&(o.sort=r),r}processSortCondition(t,e,o){if(!e)return null;const r={};if(e.hasAttribute("ref")){if(e.hasAttribute("ref")){const s=e.getAttribute("ref"),i=p.ro.fastStringToRange(s);r.offset=o?i.colStart-o.colStart:i.colStart}return r.reverse=!1,e.hasAttribute("descending")&&(r.reverse=g.b(e.getAttribute("descending"))),t.copyFromAttribute(e,"sortBy",r,"sortOn"),t.copyFromAttribute(e,"dxfId",r),t.copyFromAttribute(e,"iconSet",r),t.copyFromAttribute(e,"customList",r),r}console.warn("no ref for sort conditional",t.getPath())}processSortConditions(t,e,o,r){if(!e)return;const s=e.childNodes,i=[];for(let n=0;n<s.length;n++){const l=s.item(n);if(l.nodeType===1&&l.localName==="sortCondition"){const a=this.processSortCondition(t,l,r);a&&i.push(a)}}return i.length>0&&(o.fields=i),i}}class U{visit(t,e,o){}processDataBarColor(t,e,o,r,s="dk1"){if(!e)return;const i=g.d(n=>e.getAttribute(n),s);return i&&(o[r]=i),o}processFonts(t,e,o){if(!e)return;const r=e.childNodes;let s=0;for(let i=0;i<r.length;i++){const n=r.item(i);if(n.nodeType===1&&n.localName==="font"){const l={};this.processFont(t,n,l),o[s++]=l}}return o}processFont(t,e,o){t.getValAttrAsBoolean("b",e,!0)&&(o.weight=700),t.getValAttrAsBoolean("i",e,!0)&&(o.style=p.ut.Style.Italic),t.getValAttrAsBoolean("strike",e,!0)&&(o.strike=!0);const r=t.evaluate("u",e);if(r){const n=r.getAttribute("val");o.underline=n||p.ut.UnderlineStyle.Single}A(t,e,o,"vertAlign","verticalAlign"),o.verticalAlign==="superscript"?o.verticalAlign=p.ut.VerticalAlignment.Super:o.verticalAlign==="subscript"&&(o.verticalAlign=p.ut.VerticalAlignment.Sub),y(t,e,o,"sz","size");const s=t.evaluate("color",e);this.processDataBarColor(t,s,o,"fill"),o.fill||(o.fill="dk1"),A(t,e,o,"name","family"),A(t,e,o,"rFont","family");const i=t.evaluate("family",e);if(i){const n=i.getAttribute("val");if(n)switch(n){case"1":o.fallbacks=["serif"];break;case"2":o.fallbacks=["sans-serif"];break;case"3":o.fallbacks=["monospace"];break;case"4":o.fallbacks=["cursive"];break;case"5":o.fallbacks=["fantasy"]}}return A(t,e,o,"scheme","scheme"),f(t,e,o,"shadow","shadow",!0),f(t,e,o,"outline","outline",!0),t.getValAttrAsBoolean("condense",e,!0)&&(o.letterSpacing=-1),t.getValAttrAsBoolean("extend",e,!0)&&(o.letterSpacing=1),A(t,e,o,"charset","charset"),o}processFills(t,e,o){if(!e)return;const r=e.childNodes;let s=0;for(let i=0;i<r.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="fill"&&this.processFill(t,n,o,s++)}return o}processFill(t,e,o,r){const s={type:p.ot.Type.None},i=e.childNodes;let n=!1;for(let l=0;!n&&l<i.length;l++){const a=i.item(l);a.nodeType===1&&(a.localName==="gradientFill"?(this.processGradientFill(t,a,s),n=!0):a.localName==="patternFill"&&(this.processPatternFill(t,a,s),n=!0))}return o[r]=s,o}processGradientFill(t,e,o){if(!e)return;o.type=p.ot.Type.Gradient;const r=[];o.stops=r,o.angle=90+(e.hasAttribute("degree")?parseFloat(e.getAttribute("degree")):0);const s=e.getAttribute("type");s&&(o.gradientType=s);const i=l=>{if(!l)return 0;const a=parseFloat(l);return isNaN(a)?0:a};(e.hasAttribute("left")||e.hasAttribute("top")||e.hasAttribute("right")||e.hasAttribute("bottom"))&&(o.fillTo={left:i(e.getAttribute("left")),top:i(e.getAttribute("top")),right:i(e.getAttribute("right")),bottom:i(e.getAttribute("bottom"))});const n=e.childNodes;for(let l=0;l<n.length;l++){const a=n.item(l);if(a.nodeType===1&&a.localName==="stop"){const c={};r.push(c);const h=parseFloat(a.getAttribute("position"));c.offset=h;const d=t.evaluate("color",a);this.processDataBarColor(t,d,c,"color")}}return o}processPatternFill(t,e,o){if(!e)return;const r=t.getVisitorParamsState().get("processingDXFs"),s=e.getAttribute("patternType")||(r?p.ot.BuiltInSheetPattern.Solid:p.ot.BuiltInSheetPattern.None);if(s===p.ot.BuiltInSheetPattern.None)return{none:!0};o.type=p.ot.Type.Pattern,s&&(o.patternType=s);let i,n="foreground",l="background";const a=o.patternType===p.ot.BuiltInSheetPattern.Solid&&r;if(a){i="lt1";const d=n;n=l,l=d}const c=t.evaluate("fgColor",e);this.processDataBarColor(t,c,o,n,i);const h=t.evaluate("bgColor",e);return this.processDataBarColor(t,h,o,l,i),a&&!o.foreground&&(o.foreground=i),o}processBorders(t,e,o,r){if(!e)return;const s=e.childNodes;let i=0;for(let n=0;n<s.length;n++){const l=s.item(n);l.nodeType===1&&l.localName==="border"&&this.processBorder(t,l,o,i++,r)}return o}processBorder(t,e,o,r,s){if(!e)return;const i={};return this.processBorderStroke(t,e,i,p.J.Edge.Left),this.processBorderStroke(t,e,i,p.J.Edge.Right),s?(i.right||i.left)&&(i.right?i.vertical={...i.right}:i.vertical={...i.left}):this.processBorderStroke(t,e,i,p.J.Edge.Vertical),this.processBorderStroke(t,e,i,p.J.Edge.Top),this.processBorderStroke(t,e,i,p.J.Edge.Bottom),s?(i.bottom||i.top)&&(i.bottom?i.horizontal={...i.bottom}:i.horizontal={...i.top}):this.processBorderStroke(t,e,i,p.J.Edge.Horizontal),o[r]=i,o}processBorderStroke(t,e,o,r){if(!e)return;const s=t.evaluate(r,e);if(!s)return;const i={};s.hasAttribute("style")&&(i.style=s.getAttribute("style"));const n=t.evaluate("color",s);return n&&this.processDataBarColor(t,n,i,"color"),Object.keys(i).length>0?o[r]=i:null}}class pt extends U{visit(t,e,o){this.processNumFmts(t,t.evaluate("numFmts",e),null),t.getVisitorParamsState().set("colorsToProcess",new Set);const r={fills:{},fonts:{},borders:{}};this.processFonts(t,t.evaluate("fonts",e),r.fonts),this.processFills(t,t.evaluate("fills",e),r.fills),this.processBorders(t,t.evaluate("borders",e),r.borders,!0),r.fills[0]={type:p.ot.Type.None},r.fills[1]={type:p.ot.Type.Pattern,patternType:p.ot.BuiltInSheetPattern.Gray125},r.borders[0]={};const s=[];this.processXFs(t,t.evaluate("cellStyleXfs",e),s,r,null,!1);const i=new Map;if(s.length>0){const a=[];this.processCellStyles(t,t.evaluate("cellStyles",e),a,s,i),o.named=a}const n=[];this.processXFs(t,t.evaluate("cellXfs",e),n,r,i),Object.keys(n).length>0&&(o.direct=n);const l=[];return this.processDXFs(t,t.evaluate("dxfs",e),l),this.processTableStyles(t,t.evaluate("tableStyles",e),o,l),this.processIndexColors(t,t.evaluate("colors/indexedColors",e),o),this.processMruColors(t,t.evaluate("colors/mruColors",e),o),o}processIndexColors(t,e,o){if(!e)return;const r=[],s=e.childNodes;for(let i=0;i<s.length;i++){const n=s.item(i);if(n.nodeType===1&&n.localName==="rgbColor"){const l={color:null};this.processDataBarColor(t,n,l,"color"),l.color&&r.push(l.color)}}o.indexedColors=r}processMruColors(t,e,o){if(!e)return;const r=[],s=e.childNodes;for(let i=0;i<s.length;i++){const n=s.item(i);if(n.nodeType===1&&n.localName==="color"){const l={color:null};this.processDataBarColor(t,n,l,"color"),l.color&&r.push(l.color)}}r.length>0&&(o.mruColors=r)}processNumFmts(t,e,o){if(!e)return;const r=new Map;if(t.getVisitorParamsState().set("numFmts",r),!e)return;const s=e.childNodes;for(let i=0;i<s.length;i++){const n=s.item(i);if(n.nodeType===1&&n.localName==="numFmt"){const l=n.getAttribute("numFmtId"),a=n.getAttribute("formatCode");if(l&&a){const c=a.replace(/\\(.)/g,"$1");r.set(parseInt(l),c)}}}}processXFs(t,e,o,r,s=null,i=!0){if(!e)return;const n=e.childNodes;for(let l=0;l<n.length;l++){const a=n.item(l);if(a.nodeType===1&&a.localName==="xf"){const c={};this.processXF(t,a,c,r,s,i),o.push(c)}}}processXF(t,e,o,r,s,i){if(!e)return;const n=e.getAttribute("xfId");if(n&&s){const c=s.get(parseInt(n));c&&c!==p.mt.BuiltInName.Normal&&(o.named=c)}const l=c=>!(!i&&e.hasAttribute(c))||g.b(e.getAttribute("applyFont"));if(l("applyFont")){const c=r.fonts[e.getAttribute("fontId")];c&&(o.font=c)}if(l("applyFill")){const c=r.fills[e.getAttribute("fillId")];c&&Object.keys(c).length>0&&(o.fill=c)}if(l("applyBorder")){const c=r.borders[e.getAttribute("borderId")];c&&Object.keys(c).length>0&&(o.border=c)}if(l("applyNumberFormat")){const c=e.getAttribute("numFmtId");if(c){const h=parseInt(c);let d;const m=t.getVisitorParamsState();if(m){const b=m.get("numFmts");b&&(d=b.get(h)),o.numberFormat=d??h}else console.warn("no visitor params state")}}l("applyAlignment")&&this.processAlignment(t,t.evaluate("alignment",e),o),l("applyProtection")&&this.processProtection(t,t.evaluate("protection",e),o);const a=g.b(e.getAttribute("quotePrefix"));a&&(o.quotePrefix=a)}processAlignment(t,e,o){const r={};if(e?.hasAttribute("horizontal")?r.horizontal=e.getAttribute("horizontal"):r.horizontal=p.Z.HorizontalAlignment.General,e?.hasAttribute("vertical")?r.vertical=e.getAttribute("vertical"):r.vertical=p.Z.VerticalAlignment.Bottom,e?.hasAttribute("indent")?r.indent=parseInt(e.getAttribute("indent")):r.indent=0,e?.hasAttribute("relativeIndent")?r.relativeIndent=parseInt(e.getAttribute("relativeIndent")):r.relativeIndent=0,g.b(e?.getAttribute("wrapText"))?r.overflow=p.Z.Overflow.Wrap:r.overflow=p.Z.Overflow.Visible,g.b(e?.getAttribute("shrinkToFit"))&&(r.overflow=p.Z.Overflow.Shrink),e?.hasAttribute("textRotation")){let i=parseFloat(e.getAttribute("textRotation"));i>0&&i<=90?i=360-i:i>90&&i<=180?i-=90:i===255&&(i=0,r.stacked=!0),r.rotation=i}else r.rotation=0;e?.hasAttribute("justifyLastLine")&&(r.justifyLastLine=g.b(e.getAttribute("justifyLastLine")));const s=e?.getAttribute("readingOrder");return s&&(s==="0"?r.readingDirection=p.Z.ReadingDirection.Auto:s==="1"?r.readingDirection=p.Z.ReadingDirection.LeftToRight:s==="2"?r.readingDirection=p.Z.ReadingDirection.RightToLeft:console.warn(`invalid readingOrder: ${s}`)),Object.keys(r).length>0&&(o.alignment=r),o}processProtection(t,e,o){if(!e)return;const r={},s=e.getAttribute("locked");s&&!g.b(s)&&(r.edit=!0);const i=e.getAttribute("hidden");return i&&g.b(i)&&(r.formulaHidden=!0),Object.keys(r).length>0&&(o.protection=r),o}processDXF(t,e,o){if(!e)return;const r=e.childNodes;for(let s=0;s<r.length;s++){const i=r.item(s);if(i.nodeType===1&&i.localName==="font"){const n={};this.processFont(t,i,n),o.font=n}else if(i.nodeType===1&&i.localName==="fill"){const n=[];this.processFill(t,i,n,0),n.length>0&&n[0]&&(o.fill=n[0])}else if(i.nodeType===1&&i.localName==="border"){const n=[];this.processBorder(t,i,n,0,!1),n.length>0&&n[0]&&(o.border=n[0])}}}processDXFs(t,e,o){if(!e)return;t.getVisitorParamsState().set("processingDXFs",!0);const r=new Map;t.getVisitorParamsState().set("dxfs",r);const s=e.childNodes;for(let i=0;i<s.length;i++){const n=s.item(i);if(n.nodeType===1&&n.localName==="dxf"){const l={};this.processDXF(t,n,l);const a=o.length;r.set(a,l),o.push(l)}}t.getVisitorParamsState().delete("processingDXFs")}processTableStyle(t,e,o,r,s=!1){const i=e.getAttribute("name"),n={name:i};e.hasAttribute("table")&&(n.table=g.b(e.getAttribute("table"))),e.hasAttribute("pivot")&&(n.pivot=g.b(e.getAttribute("pivot"))),s&&!n.pivot&&r.unshift(null);const l=e.childNodes;for(let a=0;a<l.length;a++){const c=l.item(a);if(c.nodeType===1&&c.localName==="tableStyleElement"){const h=c.getAttribute("type"),d=c.getAttribute("dxfId");let m=r?.[d];m||(console.warn("invalid dfx id",d),m={}),n[h]=m;let b=null;c.hasAttribute("size")&&(b=parseInt(c.getAttribute("size"))),b&&!isNaN(b)&&(m.size=b)}}delete n.name,o[i]=n}processTableStyles(t,e,o,r,s){if(!e)return;const i={},n=e.getAttribute("defaultTableStyle");n&&(i.defaultTableStyle=n);const l=e.getAttribute("defaultPivotStyle");l&&(i.defaultPivotStyle=l);const a=e.childNodes,c={};for(let h=0;h<a.length;h++){const d=a.item(h);d.nodeType===1&&d.localName==="tableStyle"&&this.processTableStyle(t,d,c,r,s)}return Object.keys(c).length>0&&(i.styles=c),Object.keys(i).length>0&&(o.tables=i),o}processCellStyles(t,e,o,r,s){if(!e)return;const i=e.childNodes;for(let n=0;n<i.length;n++){const l=i.item(n);if(l.nodeType===1&&l.localName==="cellStyle"){const a=parseInt(l.getAttribute("xfId")),c=l.getAttribute("name");if(s.set(a,c),!r[a])continue;const h={name:c,style:r[a]};l.getAttribute("hidden")&&(h.hidden=g.b(l.getAttribute("hidden"))),l.getAttribute("iLevel")&&(h.iLevel=parseInt(l.getAttribute("iLevel"))),o.push(h)}}}afterVisit(t,e,o){}}class gt extends U{visit(t,e,o){return this.processSheetRefs(t,t.evaluate("sheets",e),o),this.processBookViews(t,t.evaluate("bookViews",e),o),this.processDefinedNames(t,t.evaluate("definedNames",e),o),this.processCalcPr(t,t.evaluate("calcPr",e),o),this.processWorkbookProtection(t,t.evaluate("workbookProtection",e),o),this.processWorkbookPr(t,t.evaluate("workbookPr",e),o),o}processPassword(t,e,o,r="password"){if(!e)return;const s={};t.copyFromAttribute(e,"algorithmName",s,"algorithmName"),t.copyFromAttribute(e,"hashValue",s,"hashValue"),t.copyFromAttribute(e,"saltValue",s,"saltValue",t.BOOLEAN_COPY),t.copyFromAttribute(e,"spinCount",s,"spinCount",t.INT_COPY),Object.keys(s).length>0&&(o[r]=s)}processWorkbookProtection(t,e,o){if(!e)return;const r={};this.processPassword(t,t.evaluate("workbookPassword",e),r),this.processPassword(t,t.evaluate("revisionsPassword",e),r,"revisionsPassword");const s=i=>i!==!0&&i!=="1"&&i!=="on"&&i!=="true"&&(i===!1||i==="0"||i==="off"||i==="false"||null);return t.copyFromAttribute(e,"lockStructure",r,"structure",s),t.copyFromAttribute(e,"lockWindows",r,"windows",s),t.copyFromAttribute(e,"lockRevision",r,"revision",s),o.protection=r,o}processCalcPr(t,e,o){e&&(o.calc={})}processSheetRefs(t,e,o){if(!e)return;const r=[],s=e.childNodes;for(let i=0;i<s.length;i++){const n=s.item(i);n.nodeType===1&&n.localName==="sheet"&&this.processSheetRef(t,n,r)}o.sheets=r}processSheetRef(t,e,o){const r={};t.copyFromAttribute(e,"name",r,"name"),t.copyFromAttribute(e,"state",r,"visibility");const s=e.getAttribute("r:id"),i=t.getRef(s);i&&(r.sheet=i),o.push(r)}processBookViews(t,e,o){if(!e)return;const r=e.childNodes;let s=0;for(let i=0;s<1&&i<e.childNodes.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="workbookView"&&(this.processWorkbookView(t,n,o),s++)}}processWorkbookView(t,e,o){if(!e)return;const r={};t.copyFromAttribute(e,"activeTab",r,"activeSheetId",[t.INT_COPY,s=>s+1]),e.hasAttribute("activeTab")||(r.activeSheetId=1),t.copyFromAttribute(e,"showHorizontalScroll",r,"showHorizontalScrollbar",t.BOOLEAN_COPY),t.copyFromAttribute(e,"showVerticalScroll",r,"showVerticalScrollbar",t.BOOLEAN_COPY),t.copyFromAttribute(e,"showSheetTabs",r,"showTabs",t.BOOLEAN_COPY),t.copyFromAttribute(e,"tabRatio",r,"tabRatio",[t.FLOAT_COPY,s=>s]),Object.keys(r).length>0&&(o.view=r)}processDefineName(t,e,o,r){if(!e)return;const s={},i=e.firstChild;if(i&&i.nodeType===3&&(s.ref=i.textContent),t.copyFromAttribute(e,"name",s),t.copyFromAttribute(e,"comment",s),t.copyFromAttribute(e,"hidden",s,"hidden",t.BOOLEAN_COPY),e.hasAttribute("localSheetId")){const n=e.getAttribute("localSheetId");if(!r[n]?.name)return void console.warn(`Defined name '${e.getAttribute("name")}' references a sheet with localSheetId '${n}' which does not exist.`);s.scope=r[n].name}t.copyFromAttribute(e,"customMenu",s),t.copyFromAttribute(e,"description",s),t.copyFromAttribute(e,"statusBar",s),t.copyFromAttribute(e,"help",s),t.copyFromAttribute(e,"shortcutKey",s),t.copyFromAttribute(e,"function",s,"function",t.BOOLEAN_COPY),t.copyFromAttribute(e,"functionGroupId",s,"functionGroupId",t.INT_COPY),t.copyFromAttribute(e,"publishToServer",s,"publishToServer",t.BOOLEAN_COPY),t.copyFromAttribute(e,"vbProcedure",s,"vbProcedure",t.BOOLEAN_COPY),t.copyFromAttribute(e,"xlm",s,"xlm",t.BOOLEAN_COPY),Object.keys(s).length>0&&o.push(s)}processDefinedNames(t,e,o){if(!e)return;const r=[],s=e.childNodes;for(let i=0;i<s.length;i++){const n=s.item(i);n.nodeType===1&&n.localName==="definedName"&&this.processDefineName(t,n,r,o.sheets)}r.length>0&&(o.names=r)}processWorkbookPr(t,e,o){e&&t.copyFromAttribute(e,"date1904",o,"date1904",t.BOOLEAN_COPY)}afterVisit(t,e,o){}}class dt{visit(t,e,o){return t.copyFromAttribute(e,"name",o),t.copyFromAttribute(e,"displayName",o),t.copyFromAttribute(e,"ref",o),t.copyFromAttribute(e,"headerRowCount",o,"headerRowCount",t.INT_COPY),t.copyFromAttribute(e,"totalsRowCount",o,"totalsRowCount",t.INT_COPY),this.processTableColumns(t,e,o),this.processTableStyleInfo(t,e,o),o}processTableStyleInfo(t,e,o){if(!e)return;const r=e.childNodes,s={};for(let i=0;i<r.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="tableStyleInfo"&&(t.copyFromAttribute(n,"name",s),t.copyFromAttribute(n,"showColumnStripes",s,"showColumnStripes",t.BOOLEAN_COPY),t.copyFromAttribute(n,"showFirstColumn",s,"showFirstColumn",t.BOOLEAN_COPY),t.copyFromAttribute(n,"showLastColumn",s,"showLastColumn",t.BOOLEAN_COPY),t.copyFromAttribute(n,"showRowStripes",s,"showRowStripes",t.BOOLEAN_COPY))}Object.keys(s).length>0&&(o.styleOptions=s)}processTableColumn(t,e,o){if(!e)return null;const r=e.childNodes;for(let s=0;s<r.length;s++){const i=r.item(s);if(i.nodeType===1&&i.localName==="tableColumn"){const n={};t.copyFromAttribute(i,"name",n),t.copyFromAttribute(i,"uniqueName",n),o.push(n)}}return o}processTableColumns(t,e,o){const r=e.childNodes,s=[];for(let i=0;i<r.length;i++){const n=r.item(i);n.nodeType===1&&n.localName==="tableColumns"&&this.processTableColumn(t,n,s)}s.length>0&&(o.columns=s)}}class mt{visit(t,e,o){return o}}class x{visit(t,e,o){if(!e)return;const r={};return t.copyFromAttribute(e,"editAs",r,"anchorType"),r.anchor={},this.processOffsetCoord(t,t.evaluate("from",e),r.anchor,"from"),this.processOffsetCoord(t,t.evaluate("to",e),r.anchor,"to"),o.movables||(o.movables=[]),o.movables.push(r),r}processOffsetCoord(t,e,o,r){if(!e)return;const s={c:0,r:0,x:0,y:0};return t.evaluate("col",e)&&(s.c=parseInt(t.evaluate("col",e).textContent)),t.evaluate("row",e)&&(s.r=parseInt(t.evaluate("row",e).textContent)),t.evaluate("colOff",e)&&(s.x=g.c(t.evaluate("colOff",e).textContent)),t.evaluate("rowOff",e)&&(s.y=g.c(t.evaluate("rowOff",e).textContent)),r==="from"?o.tl=s:o.br=s,o}}class I{visit(t,e,o){if(!e)return;const r=t.evaluate("*/cNvPr",e);return r&&(t.copyFromAttribute(r,"name",o),t.copyFromAttribute(r,"desc",o),t.copyFromAttribute(r,"hidden",o,"hidden",t.BOOLEAN_COPY),t.copyFromAttribute(r,"id",o)),o}}class bt extends I{visit(t,e,o){if(!e)return;o=super.visit(t,e,o);const r=t.evaluate("nvGraphicFramePr/cNvGraphicFramePr",e);if(r){const n=t.evaluate("graphicFrameLocks",r);if(n){n.hasAttribute("noChangeAspect")&&(o.lockAspect=n.getAttribute("noChangeAspect")==="1");const l={};Object.keys(l).length>0&&(o.locks=l)}}let s={type:"graphicFrame",json:{}};const i=t.evaluate("graphic/graphicData",e).childNodes;for(let n=0;n<i.length;n++){const l=i.item(n);if(l.nodeType===1)try{let a=l.localName;a==="chart"&&(a="chart"),s.type=a;const c=l.getAttribute("r:id");c&&(s.json=t.getRef(c))}catch(a){console.warn("Unable to parse graphicFrame",a)}}return s&&(o.content=s),s}}class B extends I{visit(t,e,o){if(!e)return;o=super.visit(t,e,o);const r=t.evaluate("nvSpPr/cNvSpPr",e);if(r){const i=t.evaluate("spLocks",r);if(i){i.hasAttribute("noChangeAspect")&&(o.lockAspect=i.getAttribute("noChangeAspect")==="1");const n={};Object.keys(n).length>0&&(o.locks=n)}}t.warn(`Unable to import '${o.name}', shapes are not supported.`);const s={};return o.content={type:"sp",json:s},s}}class ft extends I{visit(t,e,o){if(!e)return;const r=super.visit(t,e,o),s=t.evaluate("nvPicPr/cNvPicPr",e);if(s){t.copyFromAttribute(e,"preferRelativeResize",r,"preferRelativeResize",t.BOOLEAN_COPY);const a=t.evaluate("picLocks",s);if(a){a.hasAttribute("noChangeAspect")&&(r.lockAspect=a.getAttribute("noChangeAspect")==="1");const c={};t.copyFromAttribute(a,"noChangeArrowheads",r,"noChangeArrowheads",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noChangeShapeType",r,"noChangeShapeType",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noEditPoints",r,"noEditPoints",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noAdjustHandles",r,"noAdjustHandles",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noCrop",r,"noCrop",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noGrp",r,"noGrp",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noMove",r,"noMove",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noResize",r,"noResize",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noRot",r,"noRot",t.BOOLEAN_COPY),t.copyFromAttribute(a,"noSelect",r,"noSelect",t.BOOLEAN_COPY),Object.keys(c).length>0&&(r.locks=c)}}const i=t.evaluate("blipFill/blip",e);let n;if(i){const a=i.getAttribute("r:embed")??i.getAttribute("embed");if(!a)return void console.warn("no rId found for blip",i);n=t.getRef(a,!0)}const l={resId:n};return o.content={type:"picture",json:l},r}}class At extends B{visit(t,e,o){if(!e)return;o=super.visit(t,e,o);const r=t.evaluate("nvGrpSpPr/cNvGrpSpPr",e);if(r){const i=t.evaluate("grpSpLocks",r);if(i){i.hasAttribute("noChangeAspect")&&(o.lockAspect=i.getAttribute("noChangeAspect")==="1");const n={};Object.keys(n).length>0&&(o.locks=n)}}t.warn(`Unable to import '${o.name}', group shapes are not supported.`);const s={};return o.content={type:"grpSp",json:s},s}}class yt extends B{visit(t,e,o){if(!e)return;o=super.visit(t,e,o);const r=t.evaluate("nvCxnSpPr/cNvCxnSpPr",e);if(r){const i=t.evaluate("cxnSpLocks",r);if(i){i.hasAttribute("noChangeAspect")&&(o.lockAspect=i.getAttribute("noChangeAspect")==="1");const n={};Object.keys(n).length>0&&(o.locks=n)}}t.warn(`Unable to import '${o.name}', connection shapes are not supported.`);const s={};return o.content={type:"cxnSp",json:s},s}}const j="richTypes";class vt{visit(t,e,o){let r=t.getVisitorParamsState().get(j);r||(r=[],t.getVisitorParamsState().set(j,r));const s=e.childNodes,i=s.length;for(let n=0;n<i;n++){const l=s.item(n);if(l.nodeType===1&&l.localName==="s"){const a={type:l.getAttribute("t")??"n",keys:[]};this.processKeys(t,l,a),r.push(a)}}return o.richTypes=r,r}processKeys(t,e,o){const r=e.childNodes,s=r.length,i=o.keys;for(let n=0;n<s;n++){const l=r.item(n);if(l.nodeType===1&&l.localName==="k"){const a=l.getAttribute("n"),c=l.getAttribute("t");i.push([a,c])}}}}const R="richData";class Ft{visit(t,e,o){let r=t.getVisitorParamsState().get("richTypes");if(!r)return void t.warn("RichValueFound but not type.");let s=t.getVisitorParamsState().get(R);s||(s=[],t.getVisitorParamsState().set(R,s));const i=e.childNodes,n=i.length;for(let l=0;l<n;l++){const a=i.item(l);if(a.nodeType===1&&a.localName==="rv"){const c=r[a.getAttribute("s")],h={type:c.type};this.processValues(t,a,h,c);const d=this.mapType(t,h);s.push(d)}}return o.richData=s,s}mapType(t,e){if(e.type==="_error"){const o=e.errorType;if(o)try{e=p.n.getBuiltInById(o+1)}catch{}}return e}processValues(t,e,o,r){const s=e.childNodes,i=s.length;r.type;const n=r.keys;for(let l=0;l<i;l++){const a=s.item(l);if(a.nodeType===1&&a.localName==="v"){const c=n[l];if(!c)return void t.warn("Invalid richData");const h=c[0],d=c[1];let m=a.textContent;d==="i"&&(m=Number(m)),o[h]=m}}}}class Ct{visit(t,e,o){if(!e)return;const r=[];return this.processAuthors(t,t.evaluate("authors",e),r),r.length>0&&(o.authors=r),o.comments=[],o}processAuthors(t,e,o){if(!e)return;const r=e.childNodes;for(let s=0;s<r.length;s++){const i=r.item(s);if(i.nodeType===1&&i.localName==="author"){const n=i.firstChild;n&&n.nodeType===3&&o.push(n.textContent)}}}}class wt{visit(t,e,o){if(!e)return;const r={};return t.copyFromAttribute(e,"ref",r),t.copyFromAttribute(e,"authorId",r,"authorId",t.INT_COPY),r.asNote=!0,o.comments||(o.comments=[]),o.comments.push(r),r}}class Pt{visit(t,e,o){if(!e)return;const r=[];return o.comments=r,r}}class Nt{visit(t,e,o){if(!e)return;const r={};return t.copyFromAttribute(e,"id",r,"id",g.r),t.copyFromAttribute(e,"personId",r,"personId",g.r),t.copyFromAttribute(e,"ref",r),t.copyFromAttribute(e,"parentId",r,"parentId",g.r),t.copyFromAttribute(e,"dT",r),e.hasAttribute("done")&&(r.done=g.b(e.getAttribute("done"))),o.push(r),r}}class Ot{visit(t,e,o){const r=[],s=e.childNodes;for(let i=0;i<s.length;i++){const n=s.item(i);if(n.nodeType===1&&n.localName==="person"){const l={};t.copyFromAttribute(n,"id",l,"id",g.r),t.copyFromAttribute(n,"displayName",l),t.copyFromAttribute(n,"userId",l,"userId",g.r),t.copyFromAttribute(n,"providerId",l),r.push(l)}}return r.length>0&&(o.persons=r),r}}const Tt={};class Vt{constructor(t,e){this.path=t,this.visitor=e}}class E{constructor(){this.visitorsByXmlTagName=new Map,this.scopedVisitorsByXmlTagName=new Map,this.visitorParamsState=null,this.registerVisitor("Relationships",new $),this.registerVisitor("spPr",new L),this.registerVisitor("txBody",new F),this.registerVisitor("txPr",new F),this.registerVisitor("c:chartSpace",new J),this.registerVisitor("c:chartSpace",new H,"chart"),this.registerVisitor("c:plotArea",new Z),this.registerVisitor("c:barChart",new q),this.registerVisitor("c:doughnutChart",new N),this.registerVisitor("c:lineChart",new N),this.registerVisitor("c:ofPieType",new N),this.registerVisitor("c:pieChart",new N),this.registerVisitor("c:scatterChart",new N),this.registerVisitor("c:barChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:doughnutChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:lineChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:ofPieType",new w("dataLabels"),"dLbls"),this.registerVisitor("c:pieChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:scatterChart",new w("dataLabels"),"dLbls"),this.registerVisitor("c:ser",new Q),this.registerVisitor("c:dPt",new tt),this.registerVisitor("c:marker",new et),this.registerVisitor("c:catAx",new k),this.registerVisitor("c:valAx",new k),this.registerVisitor("c:dateAx",new k),this.registerVisitor("c:majorGridlines",new S("gridLinesMajor")),this.registerVisitor("c:minorGridlines",new S("gridLinesMinor")),this.registerVisitor("c:chartSpace",null,"txPr"),this.registerVisitor("c:catAx",new F("labels.text"),"txPr"),this.registerVisitor("c:valAx",new F("labels.text"),"txPr"),this.registerVisitor("c:dateAx",new F("labels.text"),"txPr"),this.registerVisitor("c:legend",new ot),this.registerVisitor("c:legend",new F("labels.text"),"txPr"),this.registerVisitor("c:legendEntry",new rt),this.registerVisitor("c:ser",new st,"extLst/ext/invertSolidFillFmt/spPr"),this.registerVisitor("c:ser",new w("labels"),"dLbls"),this.registerVisitor("c:dLbl",new w("points")),this.registerVisitor("c:title",new _),this.registerVisitor("c:title",null,"tx/rich"),this.registerVisitor("c:title",null,"txPr"),this.registerVisitor("c:layout",new it),this.registerVisitor("c:dispUnits",new S("dispUnits")),this.registerVisitor("c:dispUnitsLbl",new _("displayUnitsLabel")),this.registerVisitor("c:dispUnitsLbl",new F,"tx/rich"),this.registerVisitor("a:theme",new nt),this.registerVisitor("a:theme",new lt,"themeElements/clrScheme"),this.registerVisitor("a:theme",new at,"themeElements/fontScheme"),this.registerVisitor("autoFilter",new ut),this.registerVisitor("sortState",new ht),this.registerVisitor("s:workbook",new gt),this.registerVisitor("styleSheet",new pt),this.registerVisitor("table",new dt),this.registerVisitor("hlinkClick",new ct),this.registerVisitor("wsDr",new mt),this.registerVisitor("twoCellAnchor",new x),this.registerVisitor("oneCellAnchor",new x),this.registerVisitor("absoluteAnchor",new x),this.registerVisitor("graphicFrame",new bt),this.registerVisitor("sp",new B),this.registerVisitor("grpSp",new At),this.registerVisitor("cxnSp",new yt),this.registerVisitor("pic",new ft),this.registerVisitor("rvStructures",new vt),this.registerVisitor("rvData",new Ft),this.registerVisitor("comments",new Ct),this.registerVisitor("commentList",new wt,"comment"),this.registerVisitor("comment",new F("content"),"text"),this.registerVisitor("ThreadedComments",new Pt),this.registerVisitor("threadedComment",new Nt),this.registerVisitor("threadedComment",new F("content"),"text"),this.registerVisitor("personList",new Ot)}registerVisitor(t,e,o=null){t.indexOf(":")===-1&&(t="*:"+t);const r=t.split(":"),s=r.length>1?r[1]:r[0];if(!o)return this.visitorsByXmlTagName.set(s,e),void this.visitorsByXmlTagName.set(t,e);let i=this.scopedVisitorsByXmlTagName.get(s);i||(i=[],this.scopedVisitorsByXmlTagName.set(s,i),this.scopedVisitorsByXmlTagName.set(t,i)),i.push(new Vt(o,e))}getVisitorParamsState(){return this.visitorParamsState}convert(t,e,o=Tt){const r=t.documentElement;this.visitorParamsState&&!o?.paramMap||(this.visitorParamsState=o?.paramMap??new Map);const s={};let i=this.visitorsByXmlTagName.get(r.nodeName);if(i||(i=this.visitorsByXmlTagName.get(r.localName)),!i)throw new Error(`A visitor for the root element: '${r.nodeName}' or '${r.localName}' must be registered.`);const n="/"+r.localName,l=new V(null,this,n,r,s,e,o),a=[];this._doWalk(i,l,a,r,s,e,o);for(let c=0;c<a.length;c++){const h=a[c];try{h.visitor?.afterVisit?.(h.context,h.elemParent,h.jsonParent)}catch(d){console.warn(`Error in afterVisit: ${h.context.getPath()}`,d)}}return s}_walkScoped(t,e,o,r,s,i,n){const l=this.scopedVisitorsByXmlTagName.get(t);for(let a=0;l&&a<l.length;a++){const c=l[a];let h=null;try{h=e.evaluate(c.path,r)}catch{console.warn(`"Invalid path '${c.path}' for '${t}'.`)}if(!h)continue;const d=m=>{let b=m.localName,v=m.parentNode;for(;v&&v!==r;)b=v.localName+"/"+b,v=v.parentNode;const P=e.getPath()+"/"+b;if(c.visitor){const T=new V(e,this,P,e.getElemRoot(),e.getJsonRoot(),i,n);this._doWalk(c.visitor,T,o,m,s,i,n)}};if(h.length>0){const m=h;for(let b=0;b<m.length;b++)d(m.item(b))}else d(h)}}_doWalk(t,e,o,r,s,i,n){let l=null;t&&(o.push({visitor:t,context:e,elemParent:r,jsonParent:s}),l=t.visit(e,r,s)),l||(l=s);const a=r.localName;this._walkScoped(a,e,o,r,l,i,n);const c=r.childNodes;for(let h=0;h<c.length;h++){const d=c.item(h);if(d.nodeType===1){const m=d,b=m.localName,v=this.visitorsByXmlTagName.get(b),P=e.getPath()+"/"+b,T=new V(e,this,P,e.getElemRoot(),e.getJsonRoot(),i,n);this._doWalk(v,T,o,m,l??s,i,n)}}return l}}exports.FromOOXMLConverter=E,exports.default=E;