@sheetxl/studio-vanilla 0.7.9 → 0.7.10

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 (188) hide show
  1. package/browser/cjs/{BzWBS9dKcCw5_3VL.cjs → 8RfiafCVuvalyWgG.cjs} +1 -1
  2. package/browser/cjs/{DtcVgpdytT29BDrX.cjs → A2sMA1rkxY2C4imP.cjs} +1 -1
  3. package/browser/cjs/{ax00EVAzg1-wEeli.cjs → B6uycsDeyWfXd30N.cjs} +1 -1
  4. package/browser/cjs/{D8X6TP0dbfp_I68L.cjs → B8LS7_xuiRLqiz39.cjs} +2 -2
  5. package/browser/cjs/{4HQQsZp_Dtpou5d-.cjs → BGVhZTZCsB43TTwA.cjs} +1 -1
  6. package/browser/cjs/{DWnnzbiYZqMYfOtO.cjs → BLBn-CLuulR6I2Ga.cjs} +2 -2
  7. package/browser/cjs/{BZ7A3G8yvWBEbPQg.cjs → BS1TrhHmuCvzVnwe.cjs} +1 -1
  8. package/browser/cjs/{B3zn4UACSeM23IZD.cjs → BSYX8XwNn0_At72M.cjs} +1 -1
  9. package/browser/cjs/{Dyfld4qTyM2o0k8p.cjs → BkcYqE4Mg0roejM4.cjs} +19 -19
  10. package/browser/cjs/{DMkg41_NWFmCCTPS.cjs → BwLSPp7eayMgYH4t.cjs} +2 -2
  11. package/browser/cjs/{gGyygQPVOUdpU2hb.cjs → BwUirvy83NgauAe_.cjs} +1 -1
  12. package/browser/cjs/{v6JQur9NiLDO0Ktv.cjs → C2Ym9o2UyGdPMpGF.cjs} +1 -1
  13. package/browser/cjs/{D55IuXpDG_yOqLOr.cjs → CEjYsjf5rhuYUZBY.cjs} +1 -1
  14. package/browser/cjs/{DoIc8TRrn9BXtvZS.cjs → CFbyIOIIDflCG8xf.cjs} +2 -2
  15. package/browser/cjs/{DBIXaKPrKqoX5Ej0.cjs → CI-SIObGARYLlaD0.cjs} +1 -1
  16. package/browser/cjs/{Dd6hGYHS3cbMBbXA.cjs → CJ6ep0mCcKwe-K6x.cjs} +1 -1
  17. package/browser/cjs/CN4kAKDbbc5vx7ze.cjs +6 -0
  18. package/browser/cjs/{B1b4yakNGFFm6RKb.cjs → CQrPirttQBD2oFlH.cjs} +1 -1
  19. package/browser/cjs/CU6n-o9BpYTLqmrY.cjs +11 -0
  20. package/browser/cjs/{fsmwv8vXa5GMorQG.cjs → CVirc38g7rX4naWE.cjs} +1 -1
  21. package/browser/cjs/{CvShkDwGyhYRrNiN.cjs → Chn3GBWzbmL5oSIb.cjs} +1 -1
  22. package/browser/cjs/{B17LiG4dyBmP6TrN.cjs → CmkLGqQl06XTkl2M.cjs} +4 -4
  23. package/browser/cjs/{BuXXymW3NvKvPMkQ.cjs → CnErGY1yxFa4tbhh.cjs} +2 -2
  24. package/browser/cjs/{VCKB7r9Cy9W_Y2eC.cjs → CsTewh7bEYZ5WE9U.cjs} +7 -7
  25. package/browser/cjs/{DXz9_M2oCUFeOvd6.cjs → CwJonjnwEq4xJqkh.cjs} +1 -1
  26. package/browser/cjs/{BSNMVqk1t0UhVqdb.cjs → CyIkHwcwTWN17li5.cjs} +1 -1
  27. package/browser/cjs/{BLkZ10BgGSKfXn8i.cjs → D1gnAsTKRtDyWDp5.cjs} +2 -2
  28. package/browser/cjs/{Bi3eyLr3xw96w_Ec.cjs → D6BPthEVXFKI4EuF.cjs} +1 -1
  29. package/browser/cjs/{DdQwp9nBpZcoIdAJ.cjs → DBBW-RCAhmWrWfDZ.cjs} +1 -1
  30. package/browser/cjs/{CFajgGuqITaobO3F.cjs → DEunIC6P9scgWw1P.cjs} +3 -3
  31. package/browser/cjs/{Dy8reGDChpxfnCJ_.cjs → DK6kyoOWh-JARjgf.cjs} +2 -2
  32. package/browser/cjs/{mphO2n0YWLCwl-y3.cjs → DNCTKUi0YOVTayYE.cjs} +8 -8
  33. package/browser/cjs/DU1ovF3blyLu7Vpl.cjs +6 -0
  34. package/browser/cjs/{DaQSG2NK8zorWz4p.cjs → DX5CowMMCd9GCv4f.cjs} +3 -3
  35. package/browser/cjs/{C-hbHl6SPjfJFws_.cjs → DcUyMcC3dlHUZl4L.cjs} +1 -1
  36. package/browser/cjs/{28ueRdtTlxneL0gM.cjs → DcpYpFxUS3nhucCH.cjs} +2 -2
  37. package/browser/cjs/{-jRNNdUXwoXaLfLk.cjs → DeGuXojfhauTW29M.cjs} +2 -2
  38. package/browser/cjs/{DRWk3O67719LopNw.cjs → DiiaRC786jf-ic4p.cjs} +1 -1
  39. package/browser/cjs/{DxEYABfvkvMQXjkd.cjs → DmPC8C_CNdahQl0b.cjs} +1 -1
  40. package/browser/cjs/{DzdNT91Z6wp2t1ln.cjs → DrSYCVmQNqWJPApL.cjs} +3 -3
  41. package/browser/cjs/{CsXxIP9lLu9aFL3J.cjs → Gtbnzd4B9f1DIKAU.cjs} +1 -1
  42. package/browser/cjs/{CpuJvPRM-ZfIbNLP.cjs → Pm0_WqtObuxp-EuT.cjs} +1 -1
  43. package/browser/cjs/{DsvmywyXGwBNM-Zk.cjs → RZjOTUkBjANiPQLN.cjs} +1 -1
  44. package/browser/cjs/{LmL4erfidoyTg6Rn.cjs → RjrLHqUK_EdTAiSS.cjs} +4 -4
  45. package/browser/cjs/{4602FFTU0gpad3xf.cjs → a64ODK1QnL34lHpX.cjs} +1 -1
  46. package/browser/cjs/{Ddyt1ktuWSMrEkIX.cjs → bPlEup1_WNEt_RwV.cjs} +2 -2
  47. package/browser/cjs/{Cae33-B3bPeB4Lry.cjs → dzwDCMIhgcZc9cbb.cjs} +1 -1
  48. package/browser/cjs/{BeKopOONXyBBKG_1.cjs → eov1JMx2WBMhdpoJ.cjs} +2 -2
  49. package/browser/cjs/{BH4rNjGU9wYFc-uC.cjs → eu-ZFKAZZ7B6uk1x.cjs} +1 -1
  50. package/browser/cjs/{2KLpsnKefVyEmZ2O.cjs → ewAfXUp0y0GHQf37.cjs} +1 -1
  51. package/browser/cjs/{zbjyZT6o6ykMIKBr.cjs → hkiktbu43dbh7QWI.cjs} +1 -1
  52. package/browser/cjs/{BtXW0ExoOeHBxuRe.cjs → iNwxwTjW5q41Gklb.cjs} +2 -2
  53. package/browser/cjs/index.cjs +2 -2
  54. package/browser/cjs/kNEruqqvNqSMEAzQ.cjs +327 -0
  55. package/browser/cjs/{C7XUWFBNagw3WqkA.cjs → r2nncfSTgk8IoVXa.cjs} +5 -5
  56. package/browser/cjs/{BO3zSl1fYMj4HEPM.cjs → vx0u0BKzwHXjkFOr.cjs} +1 -1
  57. package/browser/cjs/{C3Fhn8b2S1z6xZCM.cjs → xnY4O4rqueY08rpT.cjs} +1 -1
  58. package/browser/cjs/{w5JxRpgiKOvh5tFM.cjs → z6f40QLDeC0y99VG.cjs} +1 -1
  59. package/{cdn/assets/Ql3e_vvI0FI2W43h.js → browser/esm/38k3YnsYUefZ1KgM.mjs} +2 -2
  60. package/browser/esm/7mwDc5DIxFaeIWKF.mjs +48 -0
  61. package/{cdn/assets/CyAL0Nk6PrxryVRw.js → browser/esm/AbjhUeTNR-U8qKZd.mjs} +1 -1
  62. package/browser/esm/{pRXKDt8_bIadmeiR.mjs → B5M-s1vNMxf-NkNs.mjs} +1 -1
  63. package/browser/esm/{BRcmFAIQ2SPbJ-XM.mjs → B5_mlhtTkaqvQKMh.mjs} +7 -7
  64. package/browser/esm/{CqqOAWyXxM1Y7xHg.mjs → B9cPVUQiue_I563s.mjs} +2 -2
  65. package/browser/esm/{DCGMWZ69nZwmiyhn.mjs → B9miygVhYR02HXbg.mjs} +1 -1
  66. package/browser/esm/{CfnYVg2Fcignoanv.mjs → BC2iutbmE7Q2bHNb.mjs} +1 -1
  67. package/browser/esm/{D31oMNVEevFiSSu3.mjs → BDCQh_NtcP3UtNFO.mjs} +1 -1
  68. package/browser/esm/{CbWw3rzixUR8EDhs.mjs → BEhiMpe9sj2HllDD.mjs} +2 -2
  69. package/{cdn/assets/BOTc2W6k6GWqCVcp.js → browser/esm/BFVNKOKUJHGXx3_N.mjs} +1 -1
  70. package/browser/esm/{CHKwHt2qLiyuOTYD.mjs → BK06ihtf1I-_67oo.mjs} +6 -6
  71. package/{cdn/assets/DTiWq6c6dIhO7q3w.js → browser/esm/BNEk0-9ePYVYTTS4.mjs} +2 -2
  72. package/browser/esm/{D9mNgZwIB18h1gd3.mjs → BNQAmohXUIzw05d1.mjs} +1 -1
  73. package/browser/esm/{Bd8Yvpc8OayD21zg.mjs → BPdip6dtPdYr7KkR.mjs} +1 -1
  74. package/browser/esm/{J1nGYMTPHDl0Dtk1.mjs → BQaQHVsou6-pv9Ju.mjs} +2 -2
  75. package/browser/esm/{BRQ5s5G8SIeFcq2K.mjs → BXfFV2BdBlhgkv9G.mjs} +1 -1
  76. package/{cdn/assets/PhwSfaFQy7vsmHQH.js → browser/esm/BYMb2NO7eaBtRT3r.mjs} +1 -1
  77. package/browser/esm/{BC4z07NIqrag6LK1.mjs → BcUhpG_sMmRcqqQs.mjs} +1 -1
  78. package/browser/esm/{Cw7cbwion0vbFHQC.mjs → BfgfgjIhYIB7Iea-.mjs} +1 -1
  79. package/{cdn/assets/CjNqjvPAYIJ1Txzc.js → browser/esm/BiOFFDEgChuOwhDE.mjs} +1 -1
  80. package/{cdn/assets/DaH--fxsswaRgEcF.js → browser/esm/Bl_TetCg54CHQqHm.mjs} +1 -1
  81. package/browser/esm/{Cnao9JBvOgVnFQZP.mjs → Bp9Eeb58kHoP7YGC.mjs} +2 -2
  82. package/{cdn/assets/CO0-isMoTEJCBD3A.js → browser/esm/BvIcikdTDlEgEQ6f.mjs} +1 -1
  83. package/browser/esm/{CPIVxYDjYBGrlKzN.mjs → CAOJk3YprB5zINMx.mjs} +1 -1
  84. package/browser/esm/{DuOp_v2dInrQQz2J.mjs → CEmFDYC7bYojak4f.mjs} +2 -2
  85. package/browser/esm/{CyiZ9q3nsOxuzkPs.mjs → CQ8dCPE-ihoMrQAl.mjs} +1 -1
  86. package/browser/esm/{BlRskWTo6RyVPYhw.mjs → CQv5nnKDSep6_Lrr.mjs} +3 -3
  87. package/{cdn/assets/DIPL9v_lUxBLj7uL.js → browser/esm/CVPNLOJ8pTObaFlz.mjs} +1 -1
  88. package/browser/esm/{BbFJbFt12fFxLxgW.mjs → C_3VkH0ZheZ071rN.mjs} +1 -1
  89. package/{cdn/assets/BitbWBCvLcgf5_k8.js → browser/esm/Cb5eiZuAiDsI8J4q.mjs} +1 -1
  90. package/{cdn/assets/Budczm2E0D1oDtxb.js → browser/esm/CkIGtcKufzFHfIOa.mjs} +34 -34
  91. package/{cdn/assets/CTnPqIJ_buVJyq7v.js → browser/esm/CltETef3jhrkecPf.mjs} +1 -1
  92. package/{cdn/assets/DB6k1pDUo7QnUyag.js → browser/esm/Cu_mvr8D4-6ZsoaY.mjs} +1 -1
  93. package/browser/esm/{BJDgDeqzt7VmeRxD.mjs → CzokFhjn3Zd8eHAV.mjs} +4 -4
  94. package/{cdn/assets/lgPHHQHWLWGNnYGO.js → browser/esm/Czxxkqcv2kfogbB3.mjs} +1 -1
  95. package/{cdn/assets/CKPAoMVPiyx_7ozH.js → browser/esm/D3Vs8usLpvWrfPaD.mjs} +1 -1
  96. package/{cdn/assets/JjYKx_AWKoQp1iP5.js → browser/esm/DIKQVQUhIEDd8OHB.mjs} +1 -1
  97. package/browser/esm/{vrPREn1FiY2DXcCj.mjs → DJ2cli9crYBDffna.mjs} +1 -1
  98. package/browser/esm/{B1o6XtsajKzSB_Ee.mjs → DOLR2rBtsRGjK38Q.mjs} +2 -2
  99. package/browser/esm/{Bq2-_FvbBSnQ1mRA.mjs → DP96oVn4D_WVyEii.mjs} +3 -3
  100. package/browser/esm/{CTls6jXHDizCTQqa.mjs → DUZ2FYogdfTwBU1s.mjs} +1 -1
  101. package/browser/esm/{DT2Nk1w2teUvSMOy.mjs → DXps-gn4Z0b70HV6.mjs} +1 -1
  102. package/browser/esm/{DSAXrKks652VbNll.mjs → DfOdt_g3leZhg92P.mjs} +2 -2
  103. package/browser/esm/{CrW2aOCLgiCxGleL.mjs → DjbsjMrDZxmueStH.mjs} +535 -530
  104. package/browser/esm/{_GsOJmagfG9vJ3_O.mjs → DpunkhfrdW9tMyiB.mjs} +1 -1
  105. package/{cdn/assets/C_XaNFGBTyUBeyCT.js → browser/esm/DsGfDyrPuOLTSGzn.mjs} +1 -1
  106. package/browser/esm/{CRoUrsxPF-3VB2tH.mjs → DxzUHJ6WmoMZwB7B.mjs} +11107 -11067
  107. package/browser/esm/{CjbmSAjgptXZOZub.mjs → FcLh9simFslbIw7z.mjs} +6 -6
  108. package/browser/esm/{kjrrmIaLKG4Y49Rj.mjs → KN6_FHcdgAaW1FOp.mjs} +2 -2
  109. package/browser/esm/index.mjs +2 -2
  110. package/browser/esm/{iQsD2LQQtFWVdA0k.mjs → kfVyLUlQFwMOrtte.mjs} +297 -293
  111. package/{cdn/assets/B2niIQY0fIjYfoM9.js → browser/esm/mcVONUsaRKHFvrNv.mjs} +1 -1
  112. package/browser/esm/{Cnj0U7PbRaaA2bEF.mjs → nvSrYkBMwLtC2sW6.mjs} +4 -4
  113. package/browser/esm/{rltHJRjXNQqhdulf.mjs → q78ROlDJASSNUTW7.mjs} +13 -13
  114. package/browser/esm/{Crulydg0c0mpXHIv.mjs → r9LAUwYbHSuMlTKO.mjs} +1 -1
  115. package/browser/esm/{BvxCl7fyU6J4RrDH.mjs → vjJjgi1zidw9mn_p.mjs} +2 -2
  116. package/browser/esm/{C4ESbAWre7JpSMEG.mjs → zyU823tQU2DE6Ff6.mjs} +2 -2
  117. package/{browser/esm/CyAL0Nk6PrxryVRw.mjs → cdn/assets/AbjhUeTNR-U8qKZd.js} +1 -1
  118. package/cdn/assets/{CnWk1uC-0lCbD-Xj.js → B0Ir7uCbQF3-mEU3.js} +4 -4
  119. package/cdn/assets/{CmJmZ1IbSjVFq_Hy.js → B5B-prjpWkwoWjie.js} +4 -4
  120. package/cdn/assets/{pRXKDt8_bIadmeiR.js → B5M-s1vNMxf-NkNs.js} +1 -1
  121. package/cdn/assets/{DU715r3dWSIxWSHJ.js → B5sObQ-xoa3R4ReP.js} +3 -3
  122. package/cdn/assets/{C5vXwUdGo1QPuz37.js → B7D8V6hl0pqrQbTn.js} +2 -2
  123. package/cdn/assets/{DCGMWZ69nZwmiyhn.js → B9miygVhYR02HXbg.js} +1 -1
  124. package/cdn/assets/{CQX8wcJJrnAOBgqs.js → BADnvy5bTGT8cX40.js} +7 -7
  125. package/cdn/assets/{NkjC32CMsHhn6YZJ.js → BAvxGh8BmrH0FQlm.js} +28 -28
  126. package/cdn/assets/{CfnYVg2Fcignoanv.js → BC2iutbmE7Q2bHNb.js} +1 -1
  127. package/cdn/assets/{D31oMNVEevFiSSu3.js → BDCQh_NtcP3UtNFO.js} +1 -1
  128. package/{browser/esm/BOTc2W6k6GWqCVcp.mjs → cdn/assets/BFVNKOKUJHGXx3_N.js} +1 -1
  129. package/cdn/assets/{BxXfkgY3YQZkihsr.js → BI9MEeqtjZ3NfNHD.js} +43 -43
  130. package/cdn/assets/{D9mNgZwIB18h1gd3.js → BNQAmohXUIzw05d1.js} +1 -1
  131. package/cdn/assets/{Bd8Yvpc8OayD21zg.js → BPdip6dtPdYr7KkR.js} +1 -1
  132. package/cdn/assets/{D6w3q0288dODJlma.js → BQvjW9Jty4-U9SFK.js} +3 -3
  133. package/cdn/assets/{BRQ5s5G8SIeFcq2K.js → BXfFV2BdBlhgkv9G.js} +1 -1
  134. package/{browser/esm/PhwSfaFQy7vsmHQH.mjs → cdn/assets/BYMb2NO7eaBtRT3r.js} +1 -1
  135. package/cdn/assets/{dLGHt7fYI2QA8zVZ.js → Bc2e5A_96EeltLb_.js} +1 -1
  136. package/cdn/assets/{BC4z07NIqrag6LK1.js → BcUhpG_sMmRcqqQs.js} +1 -1
  137. package/cdn/assets/{Cw7cbwion0vbFHQC.js → BfgfgjIhYIB7Iea-.js} +1 -1
  138. package/{browser/esm/CjNqjvPAYIJ1Txzc.mjs → cdn/assets/BiOFFDEgChuOwhDE.js} +1 -1
  139. package/cdn/assets/{B2MR39qRXcxeC2TY.js → BiSKRg5rgwN8P_b3.js} +7 -7
  140. package/{browser/esm/DaH--fxsswaRgEcF.mjs → cdn/assets/Bl_TetCg54CHQqHm.js} +1 -1
  141. package/{browser/esm/CO0-isMoTEJCBD3A.mjs → cdn/assets/BvIcikdTDlEgEQ6f.js} +1 -1
  142. package/cdn/assets/{CPpuNRDowyacHTZD.js → C1pxxUzCqRQ7o_0N.js} +1 -1
  143. package/{browser/esm/BVZ3XoT7zKr_Qy4r.mjs → cdn/assets/C8iM1Hgq_DrD3Gf0.js} +3 -3
  144. package/cdn/assets/{B1eWg6aDktGH7WwS.js → CAmj2oLwI3DeBBsG.js} +4 -4
  145. package/cdn/assets/{CAaDybJknuY5Rk4X.js → CBun3_1B9YitAgHd.js} +9 -9
  146. package/cdn/assets/{Dih1QKQhKyzIsly7.js → CGd5FvkBKn68xVbC.js} +2 -2
  147. package/cdn/assets/{DNpMIeruLey0l4fR.js → COxP66Oa4UF7vs0r.js} +2 -2
  148. package/cdn/assets/{CyiZ9q3nsOxuzkPs.js → CQ8dCPE-ihoMrQAl.js} +1 -1
  149. package/{browser/esm/DIPL9v_lUxBLj7uL.mjs → cdn/assets/CVPNLOJ8pTObaFlz.js} +1 -1
  150. package/cdn/assets/{BbFJbFt12fFxLxgW.js → C_3VkH0ZheZ071rN.js} +1 -1
  151. package/{browser/esm/BitbWBCvLcgf5_k8.mjs → cdn/assets/Cb5eiZuAiDsI8J4q.js} +1 -1
  152. package/{browser/esm/CTnPqIJ_buVJyq7v.mjs → cdn/assets/CltETef3jhrkecPf.js} +1 -1
  153. package/cdn/assets/{UdKHykZGCh2M-vBY.js → CmLC_Rn8ALwIQeJW.js} +7 -7
  154. package/{browser/esm/DB6k1pDUo7QnUyag.mjs → cdn/assets/Cu_mvr8D4-6ZsoaY.js} +1 -1
  155. package/cdn/assets/{AuxAIQlEjIRo3x4L.js → CyinLzMAW_Amnu6N.js} +4 -4
  156. package/{browser/esm/lgPHHQHWLWGNnYGO.mjs → cdn/assets/Czxxkqcv2kfogbB3.js} +1 -1
  157. package/{browser/esm/CKPAoMVPiyx_7ozH.mjs → cdn/assets/D3Vs8usLpvWrfPaD.js} +1 -1
  158. package/{browser/esm/JjYKx_AWKoQp1iP5.mjs → cdn/assets/DIKQVQUhIEDd8OHB.js} +1 -1
  159. package/cdn/assets/{vrPREn1FiY2DXcCj.js → DJ2cli9crYBDffna.js} +1 -1
  160. package/cdn/assets/{Nrog426oRA7TG4QM.js → DLsiLi8vx5Dfptv-.js} +299 -295
  161. package/cdn/assets/{BlASKis61iVryoIm.js → DNuCczMLMAIbZD23.js} +11 -11
  162. package/cdn/assets/{B-fEw_RqtU2JwlFR.js → DOjZi6T0-bH7nqRD.js} +2 -2
  163. package/cdn/assets/{CTls6jXHDizCTQqa.js → DUZ2FYogdfTwBU1s.js} +1 -1
  164. package/cdn/assets/{DT2Nk1w2teUvSMOy.js → DXps-gn4Z0b70HV6.js} +1 -1
  165. package/cdn/assets/{DQVq0WtjtMUmA_iU.js → D_zn49P7Vl2EfoIZ.js} +2 -2
  166. package/cdn/assets/{DyGoZdjTBNNXu9LZ.js → DamY69Nh17USJC4D.js} +15 -15
  167. package/cdn/assets/{D5cBSeQ7k8GlZgsV.js → Dfl2D3cYNOI5S_je.js} +4 -4
  168. package/cdn/assets/{CUji_8_tNWmnGxA-.js → Dlyhn7y9N6lvS2m8.js} +3 -3
  169. package/cdn/assets/{_GsOJmagfG9vJ3_O.js → DpunkhfrdW9tMyiB.js} +1 -1
  170. package/{browser/esm/C_XaNFGBTyUBeyCT.mjs → cdn/assets/DsGfDyrPuOLTSGzn.js} +1 -1
  171. package/cdn/assets/{KqkDMLfvKbmvpsXV.js → DwuTMIrWJCUalUcq.js} +20 -20
  172. package/cdn/assets/{CqfbNUobbGU7YeN6.js → LlLVEq_yWPMPI-k2.js} +4 -4
  173. package/cdn/assets/{CzlrfkoZCsC-jd7h.js → MlhOVOZDOPIWEne0.js} +11812 -11772
  174. package/{browser/esm/BcoTAKeH3O9xhPgO.mjs → cdn/assets/PKHd0iQO69iNIAx0.js} +2 -2
  175. package/{browser/esm/CoZ8jQyUjenp9yNL.mjs → cdn/assets/TpfdiXShlwAgtUkY.js} +2 -2
  176. package/cdn/assets/{DNnTxeTzLFooA_UL.js → XR4G5EYDdHGkrxmW.js} +2 -2
  177. package/cdn/assets/{CRpTXJTj6-teqdEk.js → Xugp6lHzQ6dLo2g4.js} +5 -5
  178. package/cdn/assets/{BlAVbL9PoGGN-eLF.js → lvoY5e0ca7208QtA.js} +535 -530
  179. package/{browser/esm/B2niIQY0fIjYfoM9.mjs → cdn/assets/mcVONUsaRKHFvrNv.js} +1 -1
  180. package/cdn/assets/{Crulydg0c0mpXHIv.js → r9LAUwYbHSuMlTKO.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/Codn0RTBGbMdTfjS.cjs +0 -11
  185. package/browser/cjs/DjKwZTEjS8bDI6vB.cjs +0 -6
  186. package/browser/cjs/DmP5P4nD6s_T0R0_.cjs +0 -6
  187. package/browser/cjs/GPgjyt_HTe2fOhPL.cjs +0 -327
  188. package/browser/esm/w4952094eLDa6Dfm.mjs +0 -48
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.9
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.9
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.9
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.9
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GPgjyt_HTe2fOhPL.cjs"),k={width:"1.5rem",height:"1.5rem"},w=e.reactExports.memo(g=>{const{label:d,value:a,options:i,onSelect:p,tabIndex:f=0,...R}=g,[O,m]=e.reactExports.useState(()=>z(a,i));e.reactExports.useEffect(()=>{m(z(a,i))},[a,i]);const y=e.M(c=>{m(c.target.value),p?.(i[c.target.value])},[p,i]),r=e.reactExports.useMemo(()=>Object.keys(i).map(c=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:c,children:c},c)),[i]);return e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:d}),e.jsxRuntimeExports.jsx(e.Select,{inputProps:{tabIndex:f},value:O,label:d,onChange:y,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},...R,children:r})]})}),S={Workbook:"workbook",Sheet:"sheet"},$={enter:140,exit:140},N={Formulas:e.Mt.Content.Formulas,Values:e.Mt.Content.Values,Notes:e.Mt.Content.Notes,Comments:e.Mt.Content.Comments},H={...N};delete H.Values;const Q={"By Rows":!0,"By Columns":!1},z=(g,d)=>{const a=Object.keys(d);for(let i=0;i<a.length;i++){const p=a[i];if(d[p]===g)return p}},V=e.reactExports.memo(g=>{const{replace:d=!1,findText:a,replaceText:i,findOptions:p,replaceOptions:f,title:R,onHide:O,onFindOrReplace:m,...y}=g,r=e.reactExports.useRef(null),c=e.reactExports.useRef(null),F=e.reactExports.useRef(null),T=e.reactExports.useRef(null),M=e.reactExports.useRef(null),K=e.reactExports.useRef(null),A=(t,n)=>{n&&(n.start(t,{center:!1}),setTimeout(()=>n.stop(t),180))},[I,j]=e.reactExports.useState(!1),[C,q]=e.reactExports.useState(!1),[x,b]=e.reactExports.useState(d),[B,v]=e.reactExports.useState(!1),[D,U]=e.reactExports.useState(!1),[o,l]=e.reactExports.useState({replaceText:null,replace:d,replaceOptions:{},findOptions:{text:null,matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:e.w.Orientation.Row,fields:[e.Mt.Content.Formulas]},scope:S.Sheet}),h=e.M(async(t,n,s,E)=>{if(!m)return;const u={...o};u.replaceOptions={...u.replaceOptions},u.findOptions={...u.findOptions},u.replaceOptions.maxCount=s?void 0:1,u.replace=n,n&&o.findOptions.fields?.[0]===e.Mt.Content.Values&&(u.findOptions.fields=[e.Mt.Content.Formulas]),u.findOptions.reverse=!t;const J=await m({autoFocus:E,...u});v(J===0)},[o,m]);e.reactExports.useEffect(()=>{v(!1)},[o,C,x]);const L=e.M((t,n)=>{if(t.keyCode===e.Eo.Enter){if(!o.findOptions.text)return;let s=!0,E=!1;t.shiftKey&&(s=!1),n?(t.ctrlKey&&t.altKey&&(E=!0),A(t,E?K.current:M.current)):A(t,s?T.current:F.current),h(s,n,E,!1)}},[o]),P=e.reactExports.useRef(null);e.reactExports.useLayoutEffect(()=>{l(t=>{const n={...t};n.findOptions.text=a&&a.length>0?a:t.findOptions.text??"",j(!0),i!==void 0&&(n.replaceText=i),p&&(n.findOptions={...n.findOptions,...p}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),f&&(n.replaceOptions={...n.replaceOptions,...f}),o.findOptions.fields?.[0]||(o.findOptions.fields=[e.Mt.Content.Formulas]);const s=!(!f&&i===void 0);return s&&b(s),n}),D||P.current?.focus()},[a,i,p,f]),e.reactExports.useEffect(()=>{x?(o.findOptions.fields[0],e.Mt.Content.Values):j(!0)},[x]),e.reactExports.useEffect(()=>{if(I&&r.current&&o.findOptions.text===r.current.value)return r.current===document.activeElement||r.current.contains(document.activeElement)?(r.current?.select(),void j(!1)):void r.current.addEventListener("focus",()=>{r.current?.select(),j(!1)},{once:!0})},[I,o]);const[G,{width:W}]=e.zt();return e.jsxRuntimeExports.jsx(e.ga,{ref:P,title:R??(x?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:O,onFocus:()=>U(!0),onBlur:()=>{U(!1),v(!1)},slotProps:{paper:{elevation:D?3:1}},...y,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:G,sx:{display:"flex",flexDirection:"column",paddingLeft:t=>t.spacing(1.5),paddingRight:t=>t.spacing(1.5)},onKeyDown:t=>{if(t.key==="h"&&t.ctrlKey)b(!0),r.current?.contains(document.activeElement)&&c.current?.focus();else if(t.key==="f"&&t.ctrlKey)r.current?.focus();else if(t.key==="c"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchCase=!n.findOptions.matchCase,s});else if(t.key==="e"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,s});else{if(t.key!=="r"||!t.altKey)return;l(n=>{const s={...n};return s.findOptions.useRegex=!n.findOptions.useRegex,s})}t.preventDefault()},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",gap:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:t=>t.spacing(.25),paddingTop:"3px"},children:[e.jsxRuntimeExports.jsx(e.ks,{selected:C,onSelectToggle:t=>{q(t)},preventFocus:!0,label:"Toggle Additional Options",icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:"FindOptions"})}),e.jsxRuntimeExports.jsx(e.ks,{selected:x,onSelectToggle:t=>{b(t)},preventFocus:!0,label:"Toggle Replace",icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:"FindReplaceToggle"}),shortcut:{key:x?"F":"H",modifiers:[e.U.Ctrl]}})]}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Find",slotProps:{input:{sx:{paddingRight:t=>t.spacing(1),minWidth:W>460?"20em":void 0,backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},endAdornment:e.jsxRuntimeExports.jsx(e.InputAdornment,{position:"end",children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2px"},children:[e.jsxRuntimeExports.jsx(e.ks,{style:k,selected:o.findOptions.matchCase,onBlur:()=>{console.log("blur")},onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchCase=t,s})},label:"Match Case",shortcut:{key:"C",modifiers:[e.U.Alt]},icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:"FindCaseSensitive",size:"1rem"})}),e.jsxRuntimeExports.jsx(e.ks,{style:k,selected:o.findOptions.matchEntireCell,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchEntireCell=t,s})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[e.U.Alt]},icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:"FindWholeWord",size:"1rem"})}),e.jsxRuntimeExports.jsx(e.ks,{style:k,selected:o.findOptions.useRegex,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.useRegex=t,s})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[e.U.Alt]},icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:"FindRegEx",size:"1rem"})})]})})},inputLabel:{shrink:!0},htmlInput:{draggable:!1,ref:r,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:t=>B?`${t.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:t=>B?`${t.palette.error.main} !important`:void 0}},value:o.findOptions.text??"",onChange:t=>{l(n=>{const s={...n};return s.findOptions.text=t.target.value,s})},onKeyDown:t=>L(t,!1),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.ks,{selected:o.findOptions.reverse,onSelectToggle:t=>{h(!1,!1)},touchRippleRef:F,label:"",shortcut:{key:"Enter",modifiers:[e.U.Shift]},icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:o.findOptions.orientation!==e.w.Orientation.Column?"ArrowBack":"ArrowUpward"}),disabled:!o.findOptions.text}),e.jsxRuntimeExports.jsx(e.ks,{selected:!o.findOptions.reverse,onSelectToggle:t=>{h(!0,!1)},touchRippleRef:T,label:"Next Match",shortcut:{key:"Enter"},icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:o.findOptions.orientation!==e.w.Orientation.Column?"ArrowForward":"ArrowDownward"}),disabled:!o.findOptions.text})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:x,timeout:$,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:t=>t.spacing(2)},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Replace",slotProps:{input:{sx:{paddingRight:t=>t.spacing(1),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}},inputLabel:{shrink:!0},htmlInput:{ref:c,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1)},value:o.replaceText??"",onChange:t=>{l(n=>{const s={...n};return s.replaceText=t.target.value,s})},onKeyDown:t=>L(t,!0),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.ks,{onSelectToggle:t=>{h(!0,!0)},touchRippleRef:M,label:"Replace",shortcut:{key:"Enter"},icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:"FindReplace"}),disabled:!o.findOptions.text}),e.jsxRuntimeExports.jsx(e.ks,{onSelectToggle:t=>{h(!0,!0,!0)},touchRippleRef:K,label:"Replace All",shortcut:{key:"Enter",modifiers:[e.U.Ctrl,e.U.Alt]},icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:"FindReplaceAll"}),disabled:!o.findOptions.text})]})})]})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:C,timeout:$,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:t=>t.spacing(1.5),marginTop:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.ri,{orientation:"horizontal",sx:{marginBottom:t=>t.spacing(1.5)}}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:W>=383?"row":"column",justifyContent:"space-evenly",alignItems:"center",gap:t=>t.spacing(1),rowGap:t=>t.spacing(2)},tabIndex:-1,children:[e.jsxRuntimeExports.jsx(w,{label:"Within",value:o.scope,options:S,onSelect:t=>{l(n=>{const s={...n};return s.scope=t,s})}}),e.jsxRuntimeExports.jsx(w,{label:"Search",value:o.findOptions.orientation!==e.w.Orientation.Column,options:Q,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.orientation=t?e.w.Orientation.Row:e.w.Orientation.Column,s})}}),e.jsxRuntimeExports.jsx(w,{label:"Look in",value:x&&o.findOptions.fields?.[0]===e.Mt.Content.Values?e.Mt.Content.Formulas:o.findOptions.fields?.[0],options:x?H:N,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.fields=[t],s})}})]})]})})]})})});exports.FindReplaceWindow=V,exports.ScopeOptions=S,exports.default=V;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./kNEruqqvNqSMEAzQ.cjs"),k={width:"1.5rem",height:"1.5rem"},w=e.reactExports.memo(g=>{const{label:d,value:a,options:i,onSelect:p,tabIndex:f=0,...R}=g,[O,m]=e.reactExports.useState(()=>z(a,i));e.reactExports.useEffect(()=>{m(z(a,i))},[a,i]);const y=e.M(c=>{m(c.target.value),p?.(i[c.target.value])},[p,i]),r=e.reactExports.useMemo(()=>Object.keys(i).map(c=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:c,children:c},c)),[i]);return e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:d}),e.jsxRuntimeExports.jsx(e.Select,{inputProps:{tabIndex:f},value:O,label:d,onChange:y,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},...R,children:r})]})}),S={Workbook:"workbook",Sheet:"sheet"},$={enter:140,exit:140},N={Formulas:e.Bt.Content.Formulas,Values:e.Bt.Content.Values,Notes:e.Bt.Content.Notes,Comments:e.Bt.Content.Comments},H={...N};delete H.Values;const Q={"By Rows":!0,"By Columns":!1},z=(g,d)=>{const a=Object.keys(d);for(let i=0;i<a.length;i++){const p=a[i];if(d[p]===g)return p}},V=e.reactExports.memo(g=>{const{replace:d=!1,findText:a,replaceText:i,findOptions:p,replaceOptions:f,title:R,onHide:O,onFindOrReplace:m,...y}=g,r=e.reactExports.useRef(null),c=e.reactExports.useRef(null),F=e.reactExports.useRef(null),T=e.reactExports.useRef(null),B=e.reactExports.useRef(null),K=e.reactExports.useRef(null),A=(t,n)=>{n&&(n.start(t,{center:!1}),setTimeout(()=>n.stop(t),180))},[I,j]=e.reactExports.useState(!1),[C,q]=e.reactExports.useState(!1),[x,b]=e.reactExports.useState(d),[D,v]=e.reactExports.useState(!1),[M,U]=e.reactExports.useState(!1),[o,l]=e.reactExports.useState({replaceText:null,replace:d,replaceOptions:{},findOptions:{text:null,matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:e.w.Orientation.Row,fields:[e.Bt.Content.Formulas]},scope:S.Sheet}),h=e.M(async(t,n,s,E)=>{if(!m)return;const u={...o};u.replaceOptions={...u.replaceOptions},u.findOptions={...u.findOptions},u.replaceOptions.maxCount=s?void 0:1,u.replace=n,n&&o.findOptions.fields?.[0]===e.Bt.Content.Values&&(u.findOptions.fields=[e.Bt.Content.Formulas]),u.findOptions.reverse=!t;const J=await m({autoFocus:E,...u});v(J===0)},[o,m]);e.reactExports.useEffect(()=>{v(!1)},[o,C,x]);const L=e.M((t,n)=>{if(t.keyCode===e.Eo.Enter){if(!o.findOptions.text)return;let s=!0,E=!1;t.shiftKey&&(s=!1),n?(t.ctrlKey&&t.altKey&&(E=!0),A(t,E?K.current:B.current)):A(t,s?T.current:F.current),h(s,n,E,!1)}},[o]),P=e.reactExports.useRef(null);e.reactExports.useLayoutEffect(()=>{l(t=>{const n={...t};n.findOptions.text=a&&a.length>0?a:t.findOptions.text??"",j(!0),i!==void 0&&(n.replaceText=i),p&&(n.findOptions={...n.findOptions,...p}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),f&&(n.replaceOptions={...n.replaceOptions,...f}),o.findOptions.fields?.[0]||(o.findOptions.fields=[e.Bt.Content.Formulas]);const s=!(!f&&i===void 0);return s&&b(s),n}),M||P.current?.focus()},[a,i,p,f]),e.reactExports.useEffect(()=>{x?(o.findOptions.fields[0],e.Bt.Content.Values):j(!0)},[x]),e.reactExports.useEffect(()=>{if(I&&r.current&&o.findOptions.text===r.current.value)return r.current===document.activeElement||r.current.contains(document.activeElement)?(r.current?.select(),void j(!1)):void r.current.addEventListener("focus",()=>{r.current?.select(),j(!1)},{once:!0})},[I,o]);const[G,{width:W}]=e.zt();return e.jsxRuntimeExports.jsx(e.ga,{ref:P,title:R??(x?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:O,onFocus:()=>U(!0),onBlur:()=>{U(!1),v(!1)},slotProps:{paper:{elevation:M?3:1}},...y,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:G,sx:{display:"flex",flexDirection:"column",paddingLeft:t=>t.spacing(1.5),paddingRight:t=>t.spacing(1.5)},onKeyDown:t=>{if(t.key==="h"&&t.ctrlKey)b(!0),r.current?.contains(document.activeElement)&&c.current?.focus();else if(t.key==="f"&&t.ctrlKey)r.current?.focus();else if(t.key==="c"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchCase=!n.findOptions.matchCase,s});else if(t.key==="e"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,s});else{if(t.key!=="r"||!t.altKey)return;l(n=>{const s={...n};return s.findOptions.useRegex=!n.findOptions.useRegex,s})}t.preventDefault()},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",gap:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:t=>t.spacing(.25),paddingTop:"3px"},children:[e.jsxRuntimeExports.jsx(e.ks,{selected:C,onSelectToggle:t=>{q(t)},preventFocus:!0,label:"Toggle Additional Options",icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:"FindOptions"})}),e.jsxRuntimeExports.jsx(e.ks,{selected:x,onSelectToggle:t=>{b(t)},preventFocus:!0,label:"Toggle Replace",icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:"FindReplaceToggle"}),shortcut:{key:x?"F":"H",modifiers:[e.U.Ctrl]}})]}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Find",slotProps:{input:{sx:{paddingRight:t=>t.spacing(1),minWidth:W>460?"20em":void 0,backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},endAdornment:e.jsxRuntimeExports.jsx(e.InputAdornment,{position:"end",children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2px"},children:[e.jsxRuntimeExports.jsx(e.ks,{style:k,selected:o.findOptions.matchCase,onBlur:()=>{console.log("blur")},onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchCase=t,s})},label:"Match Case",shortcut:{key:"C",modifiers:[e.U.Alt]},icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:"FindCaseSensitive",size:"1rem"})}),e.jsxRuntimeExports.jsx(e.ks,{style:k,selected:o.findOptions.matchEntireCell,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchEntireCell=t,s})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[e.U.Alt]},icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:"FindWholeWord",size:"1rem"})}),e.jsxRuntimeExports.jsx(e.ks,{style:k,selected:o.findOptions.useRegex,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.useRegex=t,s})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[e.U.Alt]},icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:"FindRegEx",size:"1rem"})})]})})},inputLabel:{shrink:!0},htmlInput:{draggable:!1,ref:r,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:t=>D?`${t.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:t=>D?`${t.palette.error.main} !important`:void 0}},value:o.findOptions.text??"",onChange:t=>{l(n=>{const s={...n};return s.findOptions.text=t.target.value,s})},onKeyDown:t=>L(t,!1),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.ks,{selected:o.findOptions.reverse,onSelectToggle:t=>{h(!1,!1)},touchRippleRef:F,label:"",shortcut:{key:"Enter",modifiers:[e.U.Shift]},icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:o.findOptions.orientation!==e.w.Orientation.Column?"ArrowBack":"ArrowUpward"}),disabled:!o.findOptions.text}),e.jsxRuntimeExports.jsx(e.ks,{selected:!o.findOptions.reverse,onSelectToggle:t=>{h(!0,!1)},touchRippleRef:T,label:"Next Match",shortcut:{key:"Enter"},icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:o.findOptions.orientation!==e.w.Orientation.Column?"ArrowForward":"ArrowDownward"}),disabled:!o.findOptions.text})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:x,timeout:$,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:t=>t.spacing(2)},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Replace",slotProps:{input:{sx:{paddingRight:t=>t.spacing(1),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}},inputLabel:{shrink:!0},htmlInput:{ref:c,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1)},value:o.replaceText??"",onChange:t=>{l(n=>{const s={...n};return s.replaceText=t.target.value,s})},onKeyDown:t=>L(t,!0),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.ks,{onSelectToggle:t=>{h(!0,!0)},touchRippleRef:B,label:"Replace",shortcut:{key:"Enter"},icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:"FindReplace"}),disabled:!o.findOptions.text}),e.jsxRuntimeExports.jsx(e.ks,{onSelectToggle:t=>{h(!0,!0,!0)},touchRippleRef:K,label:"Replace All",shortcut:{key:"Enter",modifiers:[e.U.Ctrl,e.U.Alt]},icon:e.jsxRuntimeExports.jsx(e.go,{iconKey:"FindReplaceAll"}),disabled:!o.findOptions.text})]})})]})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:C,timeout:$,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:t=>t.spacing(1.5),marginTop:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.ri,{orientation:"horizontal",sx:{marginBottom:t=>t.spacing(1.5)}}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:W>=383?"row":"column",justifyContent:"space-evenly",alignItems:"center",gap:t=>t.spacing(1),rowGap:t=>t.spacing(2)},tabIndex:-1,children:[e.jsxRuntimeExports.jsx(w,{label:"Within",value:o.scope,options:S,onSelect:t=>{l(n=>{const s={...n};return s.scope=t,s})}}),e.jsxRuntimeExports.jsx(w,{label:"Search",value:o.findOptions.orientation!==e.w.Orientation.Column,options:Q,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.orientation=t?e.w.Orientation.Row:e.w.Orientation.Column,s})}}),e.jsxRuntimeExports.jsx(w,{label:"Look in",value:x&&o.findOptions.fields?.[0]===e.Bt.Content.Values?e.Bt.Content.Formulas:o.findOptions.fields?.[0],options:x?H:N,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.fields=[t],s})}})]})]})})]})})});exports.FindReplaceWindow=V,exports.ScopeOptions=S,exports.default=V;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.9
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.9
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -0,0 +1,6 @@
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,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.9
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -0,0 +1,11 @@
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 d=require("./kNEruqqvNqSMEAzQ.cjs"),ls=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",Ps=new RegExp(`^[${ls}][-${ls}.0-9·̀-ͯ‿-⁀]*$`,"u");function gs(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const cs="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",Es=new RegExp(`^[${cs}][-${cs}.0-9·̀-ͯ‿-⁀]*$`,"u");function fs(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const U=function(i){return i===32||i===10||i===13||i===9},Os=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},ae=gs,hs=function(i){return gs(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ms=[32,10,13,9],Is=Ps,Vs=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Ls=fs,Ns=function(i){return fs(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},Rs=Es,Te="http://www.w3.org/XML/1998/namespace",Qt="http://www.w3.org/2000/xmlns/",$s={__proto__:null,xml:Te,xmlns:Qt},Ms={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},O=-1,ct=-2,q=13,Mt=33,nt=10,vt=60,Ut=61,j=62,F=63,Zt=93,me=i=>i===34||i===39,Ts=[34,39],Hs=[...Ts,91,j],js=[...Ts,vt,Zt],Xs=[Ut,F,...ms],Fs=[...ms,j,38,vt];function Ie(i,t,s){switch(t){case"xml":s!==Te&&i.fail(`xml prefix must be bound to ${Te}.`);break;case"xmlns":s!==Qt&&i.fail(`xmlns prefix must be bound to ${Qt}.`)}switch(s){case Qt:i.fail(t===""?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${Qt}.`);break;case Te:switch(t){case"xml":break;case"":i.fail(`the default namespace may not be set to ${s}.`);break;default:i.fail("may not assign the xml namespace to another prefix.")}}}const Bs=i=>Rs.test(i),Ws=i=>Is.test(i),us={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"};class qs{constructor(t){this.i=0,this.prevI=0,this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;const s=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,s){this.nameStartCheck=Ls,this.nameCheck=Ns,this.isName=Bs,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...$s};const o=this.opt.additionalNamespaces;o!=null&&((function(n,a){for(const h of Object.keys(a))Ie(n,h,a[h])})(this,o),Object.assign(this.ns,o))}else this.nameStartCheck=ae,this.nameCheck=hs,this.isName=Ws,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()}get closed(){return this._closed}_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=[];const{fragmentOpt:t}=this;this.state=t?q:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:s}=this.opt;if(s===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");s="1.0"}this.setXMLVersion(s),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(Ms),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,s){this[us[t]]=s}off(t){this[us[t]]=void 0}makeError(t){let s=this.fileName??"";return this.trackPosition&&(s.length>0&&(s+=":"),s+=`${this.line}:${this.column}`),s.length>0&&(s+=": "),new Error(s+t)}fail(t){const s=this.makeError(t),o=this.errorHandler;if(o===void 0)throw s;return o(s),this}write(t){if(this.closed)return this.fail("cannot write after close.");let s=!1;t===null?(s=!0,t=""):typeof t=="object"&&(t=t.toString()),this.carriedFromPrevious!==void 0&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let o=t.length;const n=t.charCodeAt(o-1);!s&&(n===13||n>=55296&&n<=56319)&&(this.carriedFromPrevious=t[o-1],o--,t=t.slice(0,o));const{stateTable:a}=this;for(this.chunk=t,this.i=0;this.i<o;)a[this.state].call(this);return this.chunkPosition+=o,s?this.end():this}close(){return this.write(null)}getCode10(){const t=this.chunk,s=this.i;if(this.prevI=s,this.i++,s>=t.length)return O;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>=32||o===9)return o;switch(o){case nt:return this.line++,this.column=0,this.positionAtNewLine=this.position,nt;case 13:return t.charCodeAt(s+1)===nt&&(this.i=s+2),this.line++,this.column=0,this.positionAtNewLine=this.position,ct;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:t,i:s}=this;if(this.prevI=s,this.i=s+1,s>=t.length)return O;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>31&&o<127||o>159&&o!==8232||o===9)return o;switch(o){case nt:return this.line++,this.column=0,this.positionAtNewLine=this.position,nt;case 13:{const a=t.charCodeAt(s+1);a!==nt&&a!==133||(this.i=s+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,ct;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const t=this.getCode();return t===ct?nt:t}unGet(){this.i=this.prevI,this.column--}captureTo(t){let{i:s}=this;const{chunk:o}=this;for(;;){const n=this.getCode(),a=n===ct,h=a?nt:n;if(h===O||t.includes(h))return this.text+=o.slice(s,this.prevI),h;a&&(this.text+=`${o.slice(s,this.prevI)}
7
+ `,s=this.i)}}captureToChar(t){let{i:s}=this;const{chunk:o}=this;for(;;){let n=this.getCode();switch(n){case ct:this.text+=`${o.slice(s,this.prevI)}
8
+ `,s=this.i,n=nt;break;case O:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===O)return this.name+=t.slice(s),O;if(!hs(o))return this.name+=t.slice(s,this.prevI),o===ct?nt:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===O||!U(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=Os,this.getCode=this.getCode10):(this.isChar=Vs,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case vt:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case O:break;default:this.unGet(),this.state=q,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Hs);switch(t){case j:this.doctypeHandler?.(this.text),this.text="",this.state=q,this.doctype=!0;break;case O:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:me(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(js);t!==O&&(this.text+=String.fromCodePoint(t),t===Zt?this.state=2:t===vt?this.state=6:me(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case F:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),s=this.openWakaBang+=t;this.text+=t,s!=="-"&&(this.state=s==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=t===45?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===j?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(F)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===j&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:s}=this;t:for(;;)switch(this.getCode()){case ct:this.entity+=`${s.slice(t,this.prevI)}
9
+ `,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===q&&this.textHandler===void 0||(this.text+=a);break t}case O:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(ae(t))this.state=34,this.unGet(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case F:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=q,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(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==j?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=q}sCData(){this.captureToChar(Zt)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===Zt?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case j:this.cdataHandler?.(this.text),this.text="",this.state=q;break;case Zt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===F||U(t)?(this.fail("processing instruction without a target."),this.state=t===F?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:s}=this;for(;;){const o=this.getCodeNorm();if(o===O)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===F;n||U(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?Mt:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(o));break}}}sPIBody(){if(this.text.length===0){const t=this.getCodeNorm();t===F?this.state=26:U(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(F)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===j){const{piTarget:s}=this;s.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),this.piHandler?.({target:s,body:this.text}),this.piTarget=this.text="",this.state=q}else t===F?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==F?t!==O&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=Mt}sXMLDeclName(){const t=this.captureTo(Xs);if(t===F)return this.state=Mt,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(U(t)||t===Ut){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=t===Ut?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===F)return this.state=Mt,void this.fail("XML declaration is incomplete.");U(t)||(t!==Ut&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===F)return this.state=Mt,void this.fail("XML declaration is incomplete.");U(t)||(me(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,F]);if(t===F)return this.state=Mt,this.text="",void this.fail("XML declaration is incomplete.");if(t===O)return;const s=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const o=s;this.xmlDecl.version=o,/^1\.[0-9]+$/.test(o)?this.opt.forceXMLVersion||this.setXMLVersion(o):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(s)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=s;break;case"standalone":s!=="yes"&&s!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=s}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==F?(U(t)||(this.fail("whitespace required."),this.unGet()),this.state=27):this.state=Mt}sXMLDeclEnding(){this.getCodeNorm()===j?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),this.xmlDeclHandler?.(this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=q):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===O)return;const s=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=s.ns=Object.create(null)),this.openTagStartHandler?.(s),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case j:this.openTag();break;case 47:this.state=35;break;default:U(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===j?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==O&&(ae(t)?(this.unGet(),this.state=37):t===j?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Ut?this.state=39:U(t)?this.state=38:t===j?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==O&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case O:return;case Ut:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===j?this.openTag():ae(t)?(this.unGet(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();me(t)?(this.q=t,this.state=40):U(t)||(this.fail("unquoted attribute value."),this.state=42,this.unGet())}sAttribValueQuoted(){const{q:t,chunk:s}=this;let{i:o}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+s.slice(o,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=s.slice(o,this.prevI),this.state=14,void(this.entityReturnState=40);case nt:case ct:case 9:this.text+=`${s.slice(o,this.prevI)} `,o=this.i;break;case vt:return this.text+=s.slice(o,this.prevI),void this.fail("disallowed character.");case O:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();U(t)?this.state=36:t===j?this.openTag():t===47?this.state=35:ae(t)?(this.fail("no whitespace between attributes."),this.unGet(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(Fs);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case vt:this.fail("disallowed character.");break;case O:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===j?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===j?this.closeTag():U(t)?this.state=44:t!==O&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case j:this.closeTag();break;case O:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:s}=this;const{chunk:o,textHandler:n}=this;t:for(;;)switch(this.getCode()){case vt:if(this.state=15,n!==void 0){const{text:a}=this,h=o.slice(t,this.prevI);a.length!==0?(n(a+h),this.text=""):h.length!==0&&n(h)}s=0;break t;case 38:this.state=14,this.entityReturnState=q,n!==void 0&&(this.text+=o.slice(t,this.prevI)),s=0;break t;case Zt:switch(s){case 0:s=1;break;case 1:s=2;break;case 2:break;default:throw new Error("impossible state")}break;case j:s===2&&this.fail('the string "]]>" is disallowed in char data.'),s=0;break;case ct:n!==void 0&&(this.text+=`${o.slice(t,this.prevI)}
10
+ `),t=this.i,s=0;break;case O:n!==void 0&&(this.text+=o.slice(t));break t;default:s=0}this.forbiddenState=s}handleTextOutsideRoot(){let{i:t}=this;const{chunk:s,textHandler:o}=this;let n=!1;t:for(;;){const a=this.getCode();switch(a){case vt:if(this.state=15,o!==void 0){const{text:h}=this,m=s.slice(t,this.prevI);h.length!==0?(o(h+m),this.text=""):m.length!==0&&o(m)}break t;case 38:this.state=14,this.entityReturnState=q,o!==void 0&&(this.text+=s.slice(t,this.prevI)),n=!0;break t;case ct:o!==void 0&&(this.text+=`${s.slice(t,this.prevI)}
11
+ `),t=this.i;break;case O:o!==void 0&&(this.text+=s.slice(t));break t;default:U(a)||(n=!0)}}n&&(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(t,s){const{prefix:o,local:n}=this.qName(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const h=s.trim();this.currentXMLVersion==="1.0"&&h===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=h,Ie(this,n,h)}else if(t==="xmlns"){const h=s.trim();this.topNS[""]=h,Ie(this,"",h)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==q&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qName(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:h}=this.qName(s.name);s.prefix=a,s.local=h;const m=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),m===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:h,prefix:m,local:P}=a;let b,C;m===""?(b=h==="xmlns"?Qt:"",C=h):(b=this.resolve(m),b===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(m)}.`),b=m),C=`{${b}}${P}`),n.has(C)&&this.fail(`duplicate attribute: ${C}.`),n.add(C),a.uri=b,o[h]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=q,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=q,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=q,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail(`unexpected close tag: ${s}.`)}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ve,mt;(mt=Ve||(Ve={})).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"},mt.parseStream=async(i,t,s)=>{const o=new qs({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(mt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(mt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(mt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(mt.Events.Attribute,t.onAttribute),t.onText&&o.on(mt.Events.Text,t.onText),t.onError&&o.on(mt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(mt.Events.End,a)}for(;;){const{value:a,done:h}=await i.read();if(h)break;o.write(a)}return o.close(),n};const S=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,D=i=>{const t=parseInt(i);return isNaN(t)?null:t},ht=i=>{const t=parseFloat(i);return isNaN(t)?null:t},k=null;class _s{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let h=null,m=null,P=null,b=null;const C=[],I={key:null,source:t};let y=null,$=!1;const K=(p,c)=>{let T=P.attributes[p];if(c){if(Array.isArray(c)){for(let V=0;V<c.length;V++)if(T==null||(T=c[V](T),T==null))return}else if(T==null||(T=c(T),T==null))return}return T},x={getSource:()=>y.source,setSource:p=>{y.source=p},setKey:p=>{y.key=p},getFrom:()=>P,getAttribute:(p,c)=>K(p,c)??null,hasAttribute:p=>x.getAttribute(p)!==null,getParent:()=>C[C.length-2].source,getPath:()=>{const p=[];for(let c=0;c<a.length;c++)p.push(a[c].local);return p.join("\\")},parseAttribute:K,copyToObject:(p,c,T,V)=>{const _=K(V??c,T);_!==void 0&&(p[c]=_)},copyTo:(p,c,T)=>{const V=K(T??p,c);V!==void 0&&(y.source[p]=V)},warn:p=>{o?o?.(p):console.warn(p)}};return{onOpenTag:p=>{let c=p.name;const T=c.indexOf(":");T!==-1&&(c=c.slice(T+1));const V=n.get(c);if(h={local:c,visitor:V,tag:p,destination:null},$)return a.push(h),m=c,void(P=p);b=h?.visitor??null,V&&(y=a.length===0?I:b?.to!==null?{key:null,source:{}}:null,h.destination=y,y&&C.push(y)),a.push(h),m=c,P=p,$=b?.to===null,b?.openTag?.(x)},onCloseTag:p=>{let c=p.name;const T=c.indexOf(":");if(T!==-1&&(c=c.slice(T+1)),c!==m)throw new Error(`mismatch open/close tag: '${c}'/'${m}'`);$||b?.closeTag?.(x);const V=a.pop()??null;h=a[a.length-1]??null;const _=V?.destination;if(_){C.pop(),y=C[C.length-1]??I;const ut=V.visitor;ut&&ut.to&&_.source!==void 0&&(Array.isArray(ut.to)?y.source.push?y.source.push(_.source):o?.(`Unable to parse array for ${ut.from} at ${x.getPath()}`):_.key?y.source[_.key]=_.source:typeof ut.to=="string"&&(y.source[ut.to]=_.source))}m=h?.local??null,P=h?.tag??null,b=h?.visitor??null,$=!h?.destination},onText:p=>{b?.text?.(p,x)},onEnd:s}}}const ds=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const h=t(n);if(!h)return null;let m=h.content;try{s&&(m=s(m))}catch(P){console.warn(P)}return o?.parsedRefs?.set(i,m),m},Le=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let h=n?.parsedRefs?.get(i);if(h!==void 0)return h;const m=t(a);if(!m)return null;const P=m.content;try{const b=new TextDecoder().decode(P),C=s.parseFromString(b,"text/xml"),I=o.convert(C,i,n);return n?.parsedRefs?.set(i,I),I}catch(b){console.warn(b)}return null},Gt=(i,t,s,o,n=null)=>{const a=new Map;let h=t.Directory[i];const m=h?h.length:0;for(let P=0;P<m;P++){const b=h[P];if(!b)continue;let C=b;C.startsWith("/")&&(C=C.substring(1));const I=Le(C,y=>t.files[y],s,o,n);a.set(C,I)}return a},zs=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Ne=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const h=i("theme");h&&(s=zs[h]);let m=i("tint");if(m&&(s+=` ${d.N.AdjustmentType.ETint} ${parseFloat(m)}`),s)return s},ys=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),bs=i=>i==="true"||i==="1";class Ht{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}}const Gs=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},ps={colStart:0,colEnd:0,rowStart:0,rowEnd:0},Us=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,createWorkbookOptions:o={},...n}=t??{},a=[],h=t?.progress,m=h?.onStart?.(t?.name??"Parsing XLSX");await Promise.resolve(m);const P=h?.onProgress;let b=0;const C=Promise.resolve().then(()=>require("./DiiaRC786jf-ic4p.cjs")),I=Promise.resolve().then(()=>require("./DU1ovF3blyLu7Vpl.cjs"));let y=null;try{y=new DOMParser}catch{}let $=null;y||($=Promise.resolve().then(()=>require("./dzwDCMIhgcZc9cbb.cjs")).then(c=>c.i));let K=null,x=null,p=null;try{const c=await Promise.all([C,I,$]);K=c[0],x=c[1],p=c[2]}catch(c){throw new Error("Unable to load XLSX parser.",{cause:c})}try{const c=K.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!c.Directory)throw new d.vt("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");c.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],c.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const T=new x.FromOOXMLConverter,V=y??new p.DOMParser,_=o?.resources??new d.Im,ut=_.beginPersist(),Re={},$e=new Set,ye=new Map;ye.set("richTypes",[]);const Me=new Map,He=[],le=w=>c.files[w],be=(w,B)=>{const Z=w.lastIndexOf("/"),st=w.substring(0,Z+1)+"_rels/"+w.substring(Z+1,w.length)+".rels";let dt=B.get(st);return dt||(dt=((R,Se,Ce,ke,jt=null)=>{if(!R)return null;const it=Le(R,Se,Ce,ke,jt);if(!it)return null;const ot=new Map,yt=Object.keys(it),Xt=yt.length;for(let bt=0;bt<Xt;bt++){const Ft=yt[bt],Ct=it[Ft];ot.set(Ft,Ct)}return ot})(st,le,V,T,Tt),B.set(st,dt)),dt},ce=(w,B,Z,st=Me)=>{let dt=be(B,st).get(w),R=dt?.target;if(!R)return null;if(dt.targetMode==="External")return dt.target;const Se=B.lastIndexOf("/"),Ce=B.substring(0,Se+1);R.startsWith("/")||(R=Ce+R),R=(it=>{const ot=it.split(/\/+/);return ot.reduce((yt,Xt,bt)=>(Xt==="."?yt.splice(bt,1):Xt===".."&&yt.splice(bt-1,2),yt),ot).join("/")})(R);const ke=T?.getVisitorParamsState().get("dxfs");let jt=st.get(R);if(!jt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const it={};jt=it;const ot=async()=>{const yt=((M,X,Jt,z,Q,G,Kt,kt)=>{const u=new _s,J=new d.Wt.TransposedBuilder;let H=null;u.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",S)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let g=0;g<l.length;g++){const L=l[g];L!=="rule"&&(r[L]=r.rule[L])}}delete r.rule}}),u.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",k),e.copyToObject(r,"priority",D),e.copyToObject(r,"stopIfTrue",S);const l=e.getAttribute("dxfId",D);if(l!==null){let g=z?.get(l);g||(G?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),g={}),r.style=g}e.copyToObject(r,"aboveAverage",S),e.copyToObject(r,"equalAverage",S),e.copyToObject(r,"stdDev",D),e.copyToObject(r,"bottom",S),e.copyToObject(r,"percent",S),e.copyToObject(r,"rank",D),e.copyToObject(r,"operator",k),e.copyToObject(r,"text",k),e.copyToObject(r,"timePeriod",k)}}),u.registerVisitor({from:"colorScale",to:"colorScale"}),u.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",D),e.copyTo("minLength",D),e.copyTo("showValue",S)}}),u.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",k),e.copyTo("reverse",S),e.copyTo("showValue",S)}}),u.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let g=l.formulas;g||(g=[],l.formulas=g),g.push(e)}}),u.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",k),e.copyTo("value",ht,"val"),e.copyTo("gte",S)}}),u.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Ne(g=>e.getAttribute(g));r.colors.push(l)}}),u.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",D,"colId"),e.copyTo("hiddenButton",S),e.copyTo("showButton",S)}}),u.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.od.Type.Color,e.copyTo("cellColor",S),e.copyTo("styleId",D,"dxfId")}}),u.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.od.Type.Dynamic,e.copyTo("dynamicType",k,"type"),e.copyTo("val",ht),e.copyTo("maxVal",ht,"maxVal")}}),u.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.od.Type.Icon,e.copyTo("iconId",D),e.copyTo("iconSet",k)}}),u.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.od.Type.Top10,e.copyTo("filterVal",ht),e.copyTo("percent",S),e.copyTo("top",S),e.copyTo("val",ht)}}),u.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.od.Type.Items,e.copyTo("blank",S),e.copyTo("calendarType",k)}}),u.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",k,"dateTimeGrouping"),e.copyTo("day",D),e.copyTo("hour",D),e.copyTo("minute",D),e.copyTo("month",D),e.copyTo("second",D),e.copyTo("year",D)}}),u.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ht))}}),u.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.od.Type.Custom,e.copyTo("and",S)}}),u.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",k),e.copyTo("value",ht,"val")}}),u.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",k,"sortBy"),e.copyTo("dxfId",k,"sortBy"),e.copyTo("iconSet",k),e.copyTo("customList",k);const g=e.getAttribute("ref");if(g){const L=d.ro.fastStringToRange(g,ps).colStart,Y=d.ro.fastStringToRange(r.ref,ps),Bt=Y.colStart;l.offset=Y?L-Bt:L}l.reverse=e.getAttribute("descending",S)??!1}}),u.registerVisitor({from:"AlternateContent",to:null});const pe=e=>{H=e.getSource(),e.copyTo("topLeft",k,"topLeftCell");const r=bs(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",S),e.copyTo("showFormulas",S),e.copyTo("zoomScale",D),e.copyTo("showRowHeaders",S,"showRowColHeaders"),e.copyTo("showColumnHeaders",S,"showRowColHeaders"),e.copyTo("showRowGridlines",S,"showGridLines"),e.copyTo("showColumnGridlines",S,"showGridLines")};u.registerVisitor({from:"sheetView",to:"view",openTag:e=>{pe(e)},closeTag:()=>{H=null}}),u.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"customSheetView",to:[],openTag:e=>{pe(e)},closeTag:()=>{H=null}}),u.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!H)return;e.copyTo("cell",k,"activeCell"),e.copyTo("rangeIndex",D,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),u.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(H&&e.getAttribute("state")==="frozen"){const r={};H.freezePanes=r,e.copyToObject(r,"topLeft",k,"topLeftCell");const l=H.topLeft?d.ro.fastStringToCell(H.topLeft):{colIndex:0,rowIndex:0},g={colIndex:0,rowIndex:0};e.copyToObject(g,"colIndex",D,"xSplit"),e.copyToObject(g,"rowIndex",D,"ySplit");const L={colIndex:l.colIndex+g.colIndex,rowIndex:l.rowIndex+g.rowIndex};r.coords=d.ro.cellToString(L)}}}),u.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Ne(l=>e.getAttribute(l));r&&(M.tabColor=r)}}),u.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),u.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),u.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),u.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),u.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),u.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),u.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let g=r?X(r):"";if(typeof g!="string")return void console.warn("Invalid address ",g);const L=e.getAttribute("location");g.endsWith("\\")&&(g=g.substring(0,g.length-1));const Y=e.getAttribute("location");if(Y&&(L&&L!==Y&&console.warn("display and location are different",L,Y),g+="#"+Y),!g)return void console.warn("No address found for hyperlink. r:id",r);let Bt;const xt=e.getAttribute("tooltip");Bt=xt?{address:g,tooltip:xt}:g,e.setSource({r:l,v:Bt})}}),u.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=X(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),u.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=X(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),u.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),u.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&S(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=L=>L===!0||L==="1"||L==="on"||L==="true"||L===!1||L==="0"||L==="off"||L==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const g={};e.copyToObject(g,"hash",k,"hashValue"),e.copyToObject(g,"algorithm",k,"algorithmName"),e.copyToObject(g,"salt",k,"saltValue"),e.copyToObject(g,"spinCount",D),Object.keys(g).length>0&&(e.getSource().password=g)}}),u.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),u.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",k,"hashValue"),e.copyToObject(l,"algorithm",k,"algorithmName"),e.copyToObject(l,"salt",k,"saltValue"),e.copyToObject(l,"spinCount",D),Object.keys(l).length>0&&(e.getSource().password=l)}}),u.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(M,"defaultColSize",ht,"defaultColWidth"),e.copyToObject(M,"outlineLevelCol",D,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(M,"defaultRowSize",ht,"defaultRowHeight"),e.copyToObject(M,"outlineLevelRow",D,"outlineLevelRow")}}),u.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ht,"width"),e.copyTo("csz",S,"customWidth"),e.copyTo("h",S,"hidden"),e.copyTo("l",D,"outlineLevel"),e.copyTo("s",D,"style")}}),u.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Yt=null;const As={onOpenTag:e=>{Yt===null&&(Yt="")},onText:e=>{Yt+=e},onEnd:()=>{const e=Jt(Yt);return Yt=null,e},onError:e=>{}};return((e,r,l,g,L,Y,Bt)=>{let xt=!1,ge=!1,Wt=[],qt=!1,At=null,te=null,fe=null,at=null,_e=null,ze=null;const Ds=Bt?.get("richData")??[],Ge=d.ro.normalizeA1ToR1C1,Ue=d.Ht.createConflatingRanges(),Ze=new Map,Ae=[];let ee=null;const Qe=d.Ht.createConflatingRanges();let se,Dt=!1,W=-1,tt=-1,pt=null,ie=null;const De=[];let Pe=null,Je=-2,gt=0,_t="",Pt="",Et="",Ot="",zt="",It="",Vt="",Ke="",Ye="",ts="",es="",ss="",is="",os="",ft=!0,Lt=null,rs=!1,Ee=!1,oe=null,Oe=0;return{...l,onEnd:()=>{De.length>0&&(r.rows=De);let f=Ue.done(Gs);const v=f.length;if(v>0){const E=new Array(v);for(let N=0;N<v;N++){const lt=f[N],Nt=d.ro.rangeToString(lt),Rt=lt.value[1],re=d.ro.resolveRelativeToA1(Rt,lt.rowStart,lt.colStart);E[N]=[Nt,re]}r.formulas=E}const rt=Qe.done(!0),A=rt.length;if(A>0){const E=new Array(A);for(let N=0;N<A;N++){const lt=rt[N],Nt=d.ro.rangeToString(lt);E[N]=Nt}r.volatile=E}if(Ae.length>0&&(r.dynamicArray=[...Ae]),Wt.length>0){Wt.sort(d.Ht.createRangeComparator(d.w.Orientation.Column));const E=[];let N=null,lt=-1,Nt=-1,Rt=-1,re=-1,wt=null;const ns=Wt.length;ns>0&&(N=Wt[0],lt=N.colStart,Nt=N.colEnd,Rt=N.rowEnd,re=N.value,E.push(N));for(let $t=1;$t<ns;$t++)wt=Wt[$t],re!==wt.value||lt!==wt.colStart||Nt!==wt.colEnd||Rt+1!==wt.rowEnd?(E.push(wt),N=wt,lt=N.colStart,Nt=N.colEnd,Rt=N.rowEnd,re=N.value):(Rt=wt.rowEnd,N.rowEnd=Rt);let as=[];for(let $t=0;$t<E.length;$t++){const ne=E[$t];as.push({r:{colStart:ne.colStart,colEnd:ne.colEnd,rowStart:ne.rowStart,rowEnd:ne.rowEnd},v:ne.value})}r.directStyles=as}const et=e.build();if(et){const E=et.tuples;r.data=E}l?.onEnd?.()},onOpenTag:f=>{let v=f.name;const rt=v.indexOf(":");if(rt!==-1&&(v=v.slice(rt+1)),Oe++,Oe%196608==0&&L(Oe),se){const A=f.attributes;switch(v){case"v":ge=!0;break;case"f":switch(A.t??null){case null:case"normal":qt=!0;break;case"shared":const et=A.si;te=A.ref,At=et;break;case"array":qt=!0,te=A.ref,ee=[te,!1];break;case"datatable":qt=!0,te=A.ref,qt=!0}A.ca!==void 0&&Qe.append(W,tt);break;case"is":return void(Dt=!0)}return void(Dt&&Y?.onOpenTag(f))}if(xt){if(v==="c"){se=f;const A=f.attributes.r;tt=d.ro.fastStringToCol(A);const et=f.attributes.t;et===void 0?ie=null:(ie=et,ie==="str"&&(Dt=!0));let E=f.attributes.s;E===void 0&&(oe!==null||Ee)&&(E="0"),E!==void 0&&(E=parseInt(E),Lt&&Lt.value===E&&Lt.colEnd+1===tt?Lt.colEnd=tt:(Lt={colStart:tt,rowStart:W,colEnd:tt,rowEnd:W,value:E},Wt.push(Lt)))}}else{if(v==="row"){xt=!0;const A=f.attributes.r;if(W=parseInt(A)-1,gt=0,Pt=f.attributes.customHeight,Pt!==void 0&&(gt|=Ht.CustomHeight),Pt!==Ye&&(ft=!0,Ye=Pt),_t=f.attributes.ht,_t!==void 0&&(gt|=Ht.Ht),_t!==Ke&&(ft=!0,Ke=_t),Et=f.attributes.hidden,Et!==void 0&&(gt|=Ht.Hidden),Et!==ts&&(ft=!0,ts=Et),zt=f.attributes.s,zt!==void 0&&(gt|=Ht.S),zt!==ss&&(ft=!0,ss=zt),Ot=f.attributes.customFormat,Ot!==void 0&&(gt|=Ht.CustomFormat),Ot!==es&&(ft=!0,es=Ot),It=f.attributes.outlineLevel,It!==void 0&&(gt|=Ht.OutlineLevel),It!==is&&(ft=!0,is=It),Vt=f.attributes.collapsed,Vt!==void 0&&(gt|=Ht.Collapsed),Vt!==os&&(ft=!0,os=Vt),gt!==0)if(Je+1!==W||ft){const et=Pt!==void 0&&(Pt==="1"||Pt==="true");oe=Ot===void 0||Ot!=="1"&&Ot!=="true"||zt===void 0?null:zt,Pe={min:W,max:W,sz:et&&_t!==void 0?parseFloat(_t):-1,csz:et,h:Et!==void 0&&(Et==="1"||Et==="true"),s:oe===null?void 0:oe==="0"?0:parseInt(oe),l:It===void 0||It==="0"?0:parseInt(It),cl:Vt!==void 0&&(Vt==="1"||Vt==="true")},De.push(Pe)}else Pe.max=W;return Je=W,void(ft=!1)}if(!rs&&v==="sheetData"){rs=!0;const A=r.cols,et=A?A.length:0;for(let E=0;!Ee&&E<et;E++)A[E].s&&(Ee=!0)}l?.onOpenTag(f)}},onCloseTag:f=>{if(se){let v=f.name;const rt=v.indexOf(":");if(rt!==-1&&(v=v.slice(rt+1)),Dt)if(v==="is"||v==="v"){const A=Y?.onEnd();A!==null&&e.addValue(W,tt,""+A)}else Y?.onCloseTag?.(f);return ge&&(ge=!1),void(v==="c"&&(se=null,Dt=!1))}if(xt)return xt=!1,void(Lt=null);l?.onCloseTag(f)},onText:f=>{if(f=f.trim(),ge){switch(pt=null,ie){case null:case"n":pt=parseFloat(f);break;case"b":pt=f==="1"||f==="true";break;case"s":pt=f;break;case"e":if(f==="#VALUE!"){const rt=se.attributes.vm;if(rt!==void 0){const A=Ds[parseInt(rt)-1];if(A&&A.isFormulaError){pt={t:d.M$1.Error,v:A.getCode()};break}}}const v=d.n.getBuiltInByLabel(f);v?pt={t:d.M$1.Error,v:v.getCode()}:(pt=f,g?.(`Unknown formula error '${f}' in cell ${d.ro.cellToString({colIndex:tt,rowIndex:W})}`));break;case"str":case"inlineStr":Dt=!0}pt!==null&&e.addValue(W,tt,pt)}if(ee&&(ie==="e"&&(ee[1]=!0),Ae.push(ee),ee=null),At)if(_e===At)at=ze;else{if(at=Ze.get(At),!at){const v=[];fe=Ge(f,W,tt,v),at=[fe,v,f],Ze.set(At,at)}_e=At,ze=at}if(qt){const v=[];fe=Ge(f,W,tt,v),at=[fe,v,f]}if(at)return Ue.append(W,tt,at),at=null,qt=!1,At=null,void(te=null);Dt?Y?.onText(f):xt||l?.onText(f)}}})(J,M,u.createEventHandler(M,()=>{},G),G,e=>{b+=e,P?.(b)},As,kt)})(it,(M,X=!1)=>ce(M,R,X)??null,ws,ke,0,(M,X)=>{X=X?`${X} (${R})`:R,a.push([M,X])},0,ye),Xt=ds(R,le),bt=await(async(M,X=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:G}=await Promise.resolve().then(()=>require("./CyIkHwcwTWN17li5.cjs"));globalThis.ReadableStream=G}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Jt=new TextDecoder("utf-8");let z=0;const Q=M instanceof Uint8Array?M:new Uint8Array(M);return new ReadableStream({pull(G){if(z>=Q.byteLength)return void G.close();const Kt=Q.subarray(z,Math.min(z+X,Q.byteLength)),kt=Jt.decode(Kt,{stream:z+X<Q.byteLength});G.enqueue(kt),z+=Kt.length}}).getReader()})(Xt);try{await Ve.parseStream(bt,yt,{xmlns:!1})}catch(M){throw console.warn(`Error parsing sheet: '${R}'`,M),new Error(`Error parsing sheet: '${R}'`,{cause:M})}const Ft=be(R,st);let Ct,qe=new Map;if(Ft){const M="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let X;Ft.forEach((z,Q)=>{z.type===M&&(Ct=ce(Q,R,!1,st)?.comments,Ct&&Ct.forEach(G=>{qe.set(G.id,G)}))});const Jt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Ft.forEach((z,Q)=>{z.type===Jt&&(X=ce(Q,R,!1,st))}),X||Ct){const z=Ct??[],Q=X?.comments;if(Q){const G=X?.authors,Kt=Q.length;for(let kt=0;kt<Kt;kt++){const u=Q[kt];if(!u)continue;let J=G&&u.authorId!==void 0?G[u.authorId]:u.authorId;if(J&&J.startsWith("tc=")&&(J=ys(J.substring(3)),qe.has(J)))continue;let H=null;J&&(H=ue.get(J)),H||(H=Fe.get(J)),H||(H={id:d.te.uuidV4(),displayName:J},Fe.set(H.displayName,H),ue.set(H.id,H)),J=H?.id??null;const pe={id:d.te.uuidV4(),personId:J,ref:u.ref,done:!1,asNote:!0,content:u.content};z.push(pe)}}it.comments=z}}};He.push(ot())}else jt=Z?ds(R,le,it=>{const ot=_.add({buffer:it});return ot.addReference(Re),$e.add(ot),ut.toResourceId(ot)},Tt):Le(R,le,V,T,Tt);return jt},Tt={paramMap:ye,getRefs:be,getRef:ce,parsedRefs:Me,addPerson:w=>null},he=[];let xe=0;c.Strings&&(xe=parseInt(c.Strings.Unique??c.Strings.length??0));const xs=c.Strings??[];for(let w=0;w<xe;w++)he.push(xs[w]?.t??"");const je=new Map;let Xe=xe;const ws=w=>{const B=je.get(w);if(B!==void 0)return B;const Z=Xe;return je.set(w,Xe++),he.push(w),Z},ue=(Gt("richstructure",c,V,T,Tt),Gt("richdata",c,V,T,Tt),new Map),Fe=new Map,Be=Gt("people",c,V,T);let St=null;if(Be.size>0&&(St=Be.entries().next()?.value?.[1]?.persons,St)){const w=St.length;for(let B=0;B<w;B++){const Z=St[B];ue.set(Z.id,Z),ue.set(Z.displayName,Z)}}const we=Gt("themes",c,V,T,Tt);let We=null;if(we&&we.entries){let w=we.entries().next();w?.value?.[1]&&(We=w.value[1])}const vs=new d.Al(We);let de=Gt("styles",c,V,T,Tt).entries().next()?.value[1];de&&(de=JSON.parse(d.oe(de)));const Ss=Gt("workbooks",c,V,T,Tt);await Promise.all(He);const ve={...Ss.entries().next().value[1],styles:de,theme:vs.toJSON()};he.length>0&&(ve.strings=he),St&&St.length>0&&(ve.people=St);const Cs={...o,resources:_,json:ve},ks=new d.gy(Cs);if($e.forEach(w=>{w.deleteReference(Re)}),ut.endPersist(),a.length){const w=h?.onWarning;if(w)for(const B of a){const[Z,st]=B;w(Z,st)}}return h?.onComplete?.(b),ks}catch(c){let T="Unable to parse XLSX.";throw c instanceof d.ae&&(T="Unable to open XLSX. There are too many rows or columns."),new Error(T,{cause:c})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./DiiaRC786jf-ic4p.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const h=o.sheets[a],m=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,m,h.name);const P=h.sheet,b=i.getSheetAt(a),C=b.getUsedRange();if(C?(m["!ref"]=C.getA1(),C.forEach((I,y)=>{const $={t:"z"},K=y.getCell().getStyle();if(!K.isNormal()){let x=K.getNumberFormat();x!==d.Le.Type.General&&(x===d.Le.Type.ShortDate?x="m/d/yyyy":x===d.Le.Type.MediumDate?x="d-mmm-yy":x===d.Le.Type.LongDate?x="[$-x-sysdate]dddd, mmmm dd, yyyy":x===d.Le.Type.ShortTime?x="h:mm":x===d.Le.Type.MediumTime?x="h:mm AM/PM":x===d.Le.Type.LongTime&&(x="h:mm:ss AM/PM"),$.z=x)}if(I!==null)switch(y.getType()){case d.M$1.Number:$.t="n",$.v=I;break;case d.M$1.String:$.t="s",$.v=I;break;case d.M$1.Boolean:$.t="b",$.v=I;break;case d.M$1.Error:$.t="e",$.v=I.toString();case d.M$1.RichData:}m[y.getA1()]=$})):m["!ref"]="A1:A1",P.merges?.length>0){const I=[];m["!merges"]=I;for(let y=0;y<P.merges.length;y++)I.push(s.utils.decode_range(P.merges[y]))}if(P.cols?.length>0){const I=[];m["!cols"]=I;const y=P.cols,$={width:P.defaultColSize??b.getColumnWidthAsFontUnit(b.getColumnHeaders().getDefaultSize())},K=y.length;for(let x=0;x<K;x++){const p=y[x];for(let T=I.length;T<=p.min-1;T++)I.push($);const c={};p.sz!==void 0&&(c.width=p.sz),p.h!==void 0&&(c.hidden=p.h),p.l!==void 0&&(c.level=p.l);for(let T=p.min;T<=p.max;T++)I.push(c)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=bs,exports.c=i=>i?d.te.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Ne,exports.i=Us,exports.p=i=>parseFloat(i)/6e4,exports.r=ys,exports.t=i=>i?d.te.roundAccurately(parseFloat(i)/12700,4):null;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.9
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.9
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,13 +1,13 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.9
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./GPgjyt_HTe2fOhPL.cjs");let K=null,L=null;const le={compilerOptions:{target:"esnext"}},se=async()=>`
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
7
  interface FirstTest {
8
8
  isTrue?: boolean;
9
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("./4HQQsZp_Dtpou5d-.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,[_]:`
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
11
  /**
12
12
  * Represents the completion of an asynchronous operation
13
13
  */
@@ -21,7 +21,7 @@ interface Promise<T> {
21
21
  finally(onfinally?: (() => void) | undefined | null): Promise<T>;
22
22
  }
23
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("./Bi3eyLr3xw96w_Ec.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=`
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
25
  export const FormulaContext = globalThis.${r}?.FormulaContext;
26
26
  export const ScalarType = globalThis.${r}?.ScalarType;
27
27
  export const Observable = globalThis.${r}?.Observable;
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.9
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GPgjyt_HTe2fOhPL.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;
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;