@sheetxl/studio-vanilla 0.4.15 → 0.4.16

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 (180) hide show
  1. package/browser/cjs/{gI7uI_k_jVDAtJup.cjs → 2z48hC9Lgl_XFiR8.cjs} +1 -1
  2. package/browser/cjs/{BSJTx60VBwf450vd.cjs → 527-wdwXfhlxqigX.cjs} +1 -1
  3. package/browser/cjs/8iv5H_Fv58DG9HON.cjs +6 -0
  4. package/browser/cjs/{0wJgZUT7DgId9Xtu.cjs → 9FygAwnwGtj51rKR.cjs} +6 -6
  5. package/browser/cjs/{BUWv6Ysw6pYG7w7W.cjs → B3FNhqGnpjO3bF1J.cjs} +3 -3
  6. package/browser/cjs/{BzRfETjQwEEJfpgZ.cjs → B8PZzwEzGHdX2D1A.cjs} +1 -1
  7. package/browser/cjs/{Bf0HoYuEDFO9Gwdv.cjs → BDDHipsk8fDa6KzG.cjs} +6 -6
  8. package/browser/cjs/{vce4VfmWFd9ClUSo.cjs → BDiEyTUhhZ0E4TEV.cjs} +1 -1
  9. package/browser/cjs/{D4582BA0aCqJ_PrJ.cjs → BEuLDE1KvRWWFlHK.cjs} +1 -1
  10. package/browser/cjs/{qB-lxZgY2Iz9Bc6T.cjs → BNiCvN3wpcuvRJDa.cjs} +2 -2
  11. package/browser/cjs/{3oobHi8j_DGW35rC.cjs → BOjR7WcuPM7CqQ61.cjs} +14 -14
  12. package/browser/cjs/{CRe-vd2WZQabNDDS.cjs → BOwI__-2C4zHdb02.cjs} +1 -1
  13. package/browser/cjs/{D74hXHJrfnGhbNBg.cjs → BPEiEiVl_5BbvIuk.cjs} +2 -2
  14. package/browser/cjs/BbEY710KwFxGt-nx.cjs +364 -0
  15. package/browser/cjs/{Ck8K0c7E5RT8WMbO.cjs → BmHg0RJIh8fueA1b.cjs} +5 -5
  16. package/browser/cjs/{DrRRwzZUlGvA6cQT.cjs → BqhC-4_bAAdxiG10.cjs} +1 -1
  17. package/browser/cjs/{BJu8UGaYuFmjvmwl.cjs → BxKEYXw6K_cJQVyL.cjs} +1 -1
  18. package/browser/cjs/{DAGEOiTL4sCagK3p.cjs → By5yxiEAIP-yru4E.cjs} +1 -1
  19. package/browser/cjs/{_OSzgfBNK1m22Jek.cjs → C7E9AxEhqGR5hjuF.cjs} +2 -2
  20. package/browser/cjs/{BKIvZi8Z5lHc2S32.cjs → C9e_gEokumOSJEQE.cjs} +1 -1
  21. package/browser/cjs/{CRe8klqBNVDkSDEr.cjs → CDqIINbe_kUDiu3S.cjs} +2 -2
  22. package/browser/cjs/{BcHEeTMPgurSZ2Kh.cjs → CFTqCNfD7KPB5D2t.cjs} +1 -1
  23. package/browser/cjs/{BFZbsyTO3uhLJbLO.cjs → CGMIvqM1bAMiSrpL.cjs} +1 -1
  24. package/browser/cjs/{BgsgGbpzcl7wg2IO.cjs → CIXCQscBfq2DpLXc.cjs} +1 -1
  25. package/browser/cjs/{Ct0fgg-1dB-T7u7T.cjs → CPcLGP9ohAPquX_P.cjs} +2 -2
  26. package/browser/cjs/{BgHBftj6ugXjpyaF.cjs → CSZA-xOWQAk2bPo6.cjs} +1 -1
  27. package/browser/cjs/{CnDLmICwEpdeYECg.cjs → C_rz86UiiqTsrxS_.cjs} +4 -4
  28. package/browser/cjs/{YTXgMiobveLIPF9T.cjs → CgMWE9E3Hpz-3OT8.cjs} +1 -1
  29. package/browser/cjs/{CA0OjW0AOuGEjxZ2.cjs → CitQIsT3Zql2d5Vu.cjs} +2 -2
  30. package/browser/cjs/{EIY0bt22HqBjrvRt.cjs → Cn5jJo4kHJGk3N7P.cjs} +2 -2
  31. package/browser/cjs/{D_RVszeEK0DfF-EN.cjs → CpZL07iGOPpGjHM-.cjs} +1 -1
  32. package/browser/cjs/{mW3Ya0GEjpmsa_YK.cjs → CuF5AeSoTUyseIPf.cjs} +1 -1
  33. package/browser/cjs/{uryrVY1PPsKlOzso.cjs → CxILJtUEEXVq79VE.cjs} +2 -2
  34. package/browser/cjs/{Dg9yKaBrYK9w4cQO.cjs → CxRW9GVbe6zNc--Y.cjs} +3 -3
  35. package/browser/cjs/{fjQ9vPUSGRU1VSoH.cjs → D33_ArewzvVZrJs5.cjs} +1 -1
  36. package/browser/cjs/{CqugZolY4J8viegd.cjs → D5txayapke7SLywP.cjs} +2 -2
  37. package/browser/cjs/{DY1iEDz8BWZpqFOo.cjs → D96Vd9ML6lEp2yNc.cjs} +2 -2
  38. package/browser/cjs/{DotFGD_QKvqoQlAL.cjs → DAuVoLkfGR03lbJL.cjs} +2 -2
  39. package/browser/cjs/{BVHaNjM0-FXL7gyh.cjs → DFforK4FhDLP9UUc.cjs} +1 -1
  40. package/browser/cjs/{C8BQmea-gRcTEaYH.cjs → DHmgJr7cr-5rmqrC.cjs} +2 -2
  41. package/browser/cjs/{BH_qrKPpuqL9YxGP.cjs → DM17oP0REi-dMzRh.cjs} +1 -1
  42. package/browser/cjs/{6DwFSFOve5d5Kh4O.cjs → DXEqr7NfFBng4qp7.cjs} +2 -2
  43. package/browser/cjs/{CrnvoFSZfgmBlK86.cjs → Dd8-Ixj1ckpU18vR.cjs} +2 -2
  44. package/browser/cjs/{BdnGDChdub9m1gbK.cjs → DduMAzPLo62DsEIv.cjs} +1 -1
  45. package/browser/cjs/{sXSha5rBK3lo_tOD.cjs → Dh4QAMYLxa-nm3b1.cjs} +1 -1
  46. package/browser/cjs/{BzhfyRZdk-oiyEa3.cjs → DsMEB6CCQ9XeKx0W.cjs} +1 -1
  47. package/browser/cjs/{DgFtbCf8dkncAq_r.cjs → DuV6aIKntSIlFlmP.cjs} +1 -1
  48. package/browser/cjs/{DWh6QtlFsPfZ3Asz.cjs → DvOP3Sz4bOvvB51y.cjs} +4 -4
  49. package/browser/cjs/{DtQ-sP4vg1IpzFkc.cjs → DwBWZnrTp5UcLnAE.cjs} +1 -1
  50. package/browser/cjs/{BsCdHkza2KUgNs3F.cjs → EEd3txVEsMOS25kJ.cjs} +1 -1
  51. package/browser/cjs/{ClXfvzbTzK5w-Tv9.cjs → MDi4HLKgwSCu6fyR.cjs} +1 -1
  52. package/browser/cjs/{ArJueN3Q9EFBG6tK.cjs → OLQtPYBVwDJUVBX4.cjs} +2 -2
  53. package/browser/cjs/{BG0zKZBHarIk0gKB.cjs → SKR8zQ_6EFd3QuXc.cjs} +1 -1
  54. package/browser/cjs/{CtLA5mrQxGamDt92.cjs → hosXXKv9_3bMMvPn.cjs} +1 -1
  55. package/browser/cjs/index.cjs +2 -2
  56. package/browser/cjs/{DDbNLc2mUv7Q6msK.cjs → isuVkDnj-ShYtgWE.cjs} +1 -1
  57. package/browser/cjs/{CqILFqDohV7CdFQ1.cjs → kbVoRE7sSKze9AGf.cjs} +1 -1
  58. package/browser/cjs/{DAxpZHSeQ9vUP1m6.cjs → tHZy6iR0C8BJ7ao2.cjs} +1 -1
  59. package/browser/esm/{D14VyfRK6-WOMJJO.mjs → 3LUy01lLdiAyu4L8.mjs} +1 -1
  60. package/{cdn/assets/B9vAqNVLp_vCTrP_.js → browser/esm/6dBbccz3d0UDCmId.mjs} +1 -1
  61. package/browser/esm/{B_YrH7VnXiUkYu8u.mjs → 7zmlmdpV46wT0D_8.mjs} +2 -2
  62. package/{cdn/assets/BXhoPHXmFqGJhEOT.js → browser/esm/AbVL9q93k2OjvNMS.mjs} +1 -1
  63. package/{cdn/assets/DT0kcrmyi0GrASFM.js → browser/esm/B0pXYR2QIxH_yyCd.mjs} +1 -1
  64. package/browser/esm/{u8MA5qQcSH-VSLrB.mjs → BDpFOktVt42TQpcN.mjs} +4 -4
  65. package/browser/esm/{Beqd_eZheAqcy9eR.mjs → BFGNX8BKN0YukAfE.mjs} +16386 -16403
  66. package/browser/esm/{iXnpVI-bOFX7L6z-.mjs → BIPFm0SUVy_xxuHx.mjs} +2 -2
  67. package/browser/esm/{D9ftd36uosOvK1Bz.mjs → BJqUNdAULMuqfoNS.mjs} +7 -7
  68. package/browser/esm/{BNuTKa0cEC3F4rTF.mjs → BMcBO1IQO3eNx3D8.mjs} +1 -1
  69. package/browser/esm/{BxForeOFuQExxhBo.mjs → BQEjN2Ny_1RjJRRG.mjs} +2 -2
  70. package/browser/esm/{DrVjmz0t2Y2eHDvu.mjs → BcnRo-70LV3dW2F8.mjs} +1 -1
  71. package/browser/esm/{DAM-CuXQIzcQS8y2.mjs → BegJ95DwnjizqVvZ.mjs} +2 -2
  72. package/browser/esm/{CqRDFmwJualsG-hJ.mjs → BphrEGpsPHge38iD.mjs} +1 -1
  73. package/browser/esm/{Bh6dC8KTHWpKMi09.mjs → Bxh-G6GIKLTgdQSU.mjs} +1 -1
  74. package/{cdn/assets/BqmualWSYd-czqNW.js → browser/esm/CEn_nscDh2qWGWkf.mjs} +1 -1
  75. package/browser/esm/{DQiTAq0r1q5Z_7H6.mjs → CHQ2p5JXvpblW5Mr.mjs} +10 -10
  76. package/browser/esm/{Cb1Q2phpEESgs7mi.mjs → CJ2VfoplPO3aOFIS.mjs} +8 -8
  77. package/{cdn/assets/ZciEgxXQYsHyV2gO.js → browser/esm/CM9SSh6zB4mXFuiK.mjs} +1 -1
  78. package/{cdn/assets/C5Vhk6RekNjP_kzl.js → browser/esm/CNNQFdovfxmKTLqX.mjs} +1 -1
  79. package/{cdn/assets/CQMGhCDKbq2op_BI.js → browser/esm/CPzGoc5ivg6BGW5V.mjs} +1 -1
  80. package/browser/esm/{CslDdQ92RlF9XCcF.mjs → CQ8SVGYEop2G_eer.mjs} +1 -1
  81. package/browser/esm/{n6RMMH6ZZaYET-uv.mjs → CR-h2aljy2JwwOmN.mjs} +6 -6
  82. package/browser/esm/{CfMo1fAExeFOibAQ.mjs → CYW0tIypPPivmPYC.mjs} +2 -2
  83. package/browser/esm/{YEeWnRTVhFsSnEoO.mjs → Cyu6G1cmylOjsfqu.mjs} +26 -26
  84. package/browser/esm/{CSSayGD6fTeehKt_.mjs → CzcfqZRl8TT7_AA8.mjs} +4 -4
  85. package/{cdn/assets/DmSh4h3LBSgZNzzF.js → browser/esm/D0HahgSi_BcRitIR.mjs} +1 -1
  86. package/browser/esm/{CTEiaS8NJUMozWzX.mjs → D6rU9DOoEw4c1pUc.mjs} +1 -1
  87. package/browser/esm/{Bt1LjWrzTz3VQP5i.mjs → DDaraJFhLInV4GMJ.mjs} +1 -1
  88. package/{cdn/assets/BwEUAuMX1MAp6TLB.js → browser/esm/DE8w2hURn5qI8AKp.mjs} +1 -1
  89. package/{cdn/assets/DxOr3qEZVibn2HK7.js → browser/esm/DGk-Ommc_o1xYlw-.mjs} +1 -1
  90. package/browser/esm/{DVAgkqy1aZdEMIzM.mjs → DHwgBfUeVdooDLZu.mjs} +1 -1
  91. package/browser/esm/{DdcqO--nszyX8nqj.mjs → DNmLY801ferFO5Uk.mjs} +6 -6
  92. package/browser/esm/{5RdhqzgwkuR2ox0E.mjs → DPRM8hNlNCr3-T5W.mjs} +1 -1
  93. package/browser/esm/{B_JJ8lAbaPdlt8l4.mjs → DSgo1psKmx1fs5GP.mjs} +2 -2
  94. package/{cdn/assets/CnwSRSKNfq2GyXas.js → browser/esm/D_SW7AJGTxZZhEhN.mjs} +1 -1
  95. package/browser/esm/{azuJCFiVoU4Ebb9P.mjs → Dcro_uZlLqe8StKp.mjs} +2 -2
  96. package/browser/esm/{Bp2dkgUm5zsuNnPH.mjs → Ddco0tbzyQ9zfvAR.mjs} +1 -1
  97. package/{cdn/assets/CQoo-4sVCrOfP9iU.js → browser/esm/DhtBGaXEjpSpeQD2.mjs} +1 -1
  98. package/browser/esm/{BFYBuTXa6xa5ZjBo.mjs → DmeMooAnq1CVPk8s.mjs} +1 -1
  99. package/{cdn/assets/BPDWQKVFxO_3IqZX.js → browser/esm/DnDDStLug64LBv-3.mjs} +1 -1
  100. package/{cdn/assets/D8Eij5qtEH8tI7eL.js → browser/esm/Dp4czjfjfaFH_dEJ.mjs} +7 -7
  101. package/browser/esm/{CeDuz_yZT4XG-Pv8.mjs → DqP6X7y9HwGY7VjP.mjs} +11 -11
  102. package/{cdn/assets/C2DVh9PCXymQ6Bku.js → browser/esm/DrT_zO6kt_14yLBZ.mjs} +1 -1
  103. package/browser/esm/{ClLJBQr4mG8VGyC3.mjs → DuJX6KV57WopKk9q.mjs} +4 -4
  104. package/{cdn/assets/Do7w66ZbyFAW-Kvo.js → browser/esm/DwUhQt38jwVGevvy.mjs} +1 -1
  105. package/{cdn/assets/CvTxaj5stKRFGegY.js → browser/esm/IF2d9xZoQ-KwvBKh.mjs} +1 -1
  106. package/browser/esm/{C0KLnjyGhfqKP-3J.mjs → MXO5bWHStxysNVsg.mjs} +2 -2
  107. package/{cdn/assets/IWZ_bebXCJeQz19V.js → browser/esm/PzttknQejK9onrpS.mjs} +1 -1
  108. package/browser/esm/{CWSZwGuenxmHgLXd.mjs → TM6K2pq3Dcv9IkuU.mjs} +1 -1
  109. package/browser/esm/{Dre4qd4kiDqAnEpH.mjs → XMnVd_ZFLys2rjY7.mjs} +2 -2
  110. package/{cdn/assets/BAARsakyOFrwNKVu.js → browser/esm/iYM_upfOH9oA049a.mjs} +6 -6
  111. package/browser/esm/index.mjs +2 -2
  112. package/browser/esm/{DVqoG8OFm93ndK8u.mjs → kXeRQRPLeKsnYZWE.mjs} +2 -2
  113. package/browser/esm/{BUAQRxezxaeHUbwe.mjs → mMMnv_KWRsRe75FG.mjs} +1 -1
  114. package/browser/esm/{BmkIbFYjQZnaZGzF.mjs → q0yHqQ5GBeLgY-gd.mjs} +1 -1
  115. package/browser/esm/{CMgjnCC7huqsMZ7l.mjs → tBO69ofaNapzt3L4.mjs} +6 -6
  116. package/browser/esm/{DRoKqCpNKKdYKqZ3.mjs → wt2Q3yM9_nGedjrL.mjs} +707 -710
  117. package/cdn/assets/{D14VyfRK6-WOMJJO.js → 3LUy01lLdiAyu4L8.js} +1 -1
  118. package/{browser/esm/B9vAqNVLp_vCTrP_.mjs → cdn/assets/6dBbccz3d0UDCmId.js} +1 -1
  119. package/cdn/assets/{DoiUKE9bzdCohsIn.js → A8eAz4-PTuL72Hin.js} +2 -2
  120. package/{browser/esm/BXhoPHXmFqGJhEOT.mjs → cdn/assets/AbVL9q93k2OjvNMS.js} +1 -1
  121. package/{browser/esm/DT0kcrmyi0GrASFM.mjs → cdn/assets/B0pXYR2QIxH_yyCd.js} +1 -1
  122. package/cdn/assets/{BCMTnGKJGZCOn8RP.js → B3boJwK33Z6RqPqk.js} +2 -2
  123. package/cdn/assets/{BsNGXIjB2gB75oDq.js → B6sQ-SvjZgQQji5w.js} +15 -15
  124. package/cdn/assets/{C8ZVHIXuFCsMz4su.js → BHIQzrKfKNFUBjR9.js} +1 -1
  125. package/cdn/assets/{BNuTKa0cEC3F4rTF.js → BMcBO1IQO3eNx3D8.js} +1 -1
  126. package/cdn/assets/{DrVjmz0t2Y2eHDvu.js → BcnRo-70LV3dW2F8.js} +1 -1
  127. package/cdn/assets/{D3wy0hvPKjYlTqDZ.js → Ber1-vHUp5sOqFS7.js} +1 -1
  128. package/cdn/assets/{DTlKjG3w2RgTejVm.js → Bj-ZU4RLivZywsqT.js} +2 -2
  129. package/cdn/assets/{DPpga_z_sz7WeoGk.js → Bjv69OWhcDpPMIFg.js} +14578 -14595
  130. package/cdn/assets/{CqRDFmwJualsG-hJ.js → BphrEGpsPHge38iD.js} +1 -1
  131. package/cdn/assets/{NPHYIK_SYI8TgWVt.js → Bt3GnfDq2p0GHntP.js} +5 -5
  132. package/{browser/esm/Bpujg7eS-yYzfXnQ.mjs → cdn/assets/BuEJOKp47YUO-SKV.js} +73 -73
  133. package/cdn/assets/{Bh6dC8KTHWpKMi09.js → Bxh-G6GIKLTgdQSU.js} +1 -1
  134. package/cdn/assets/{D4UoNdvz3kZD9Fg7.js → BzJDFxx0-f3ofc07.js} +707 -710
  135. package/cdn/assets/{CVtFEjbMohoQQwVa.js → Bzmc21lMGO689Gtm.js} +2 -2
  136. package/cdn/assets/{C82_3AL3p2OPqUES.js → CBZHbb2bqbziokhD.js} +42 -42
  137. package/cdn/assets/{clveP5QdWgiuzHNH.js → CCyqNw5QYfgHLK1w.js} +2 -2
  138. package/{browser/esm/BqmualWSYd-czqNW.mjs → cdn/assets/CEn_nscDh2qWGWkf.js} +1 -1
  139. package/cdn/assets/{CsV6TK9KYwaT40Nd.js → CK4HRZFkpjItprps.js} +57 -57
  140. package/{browser/esm/ZciEgxXQYsHyV2gO.mjs → cdn/assets/CM9SSh6zB4mXFuiK.js} +1 -1
  141. package/{browser/esm/C5Vhk6RekNjP_kzl.mjs → cdn/assets/CNNQFdovfxmKTLqX.js} +1 -1
  142. package/{browser/esm/CQMGhCDKbq2op_BI.mjs → cdn/assets/CPzGoc5ivg6BGW5V.js} +1 -1
  143. package/cdn/assets/{CslDdQ92RlF9XCcF.js → CQ8SVGYEop2G_eer.js} +1 -1
  144. package/cdn/assets/{ChzKnwtP8tCXlyQC.js → CQeDWMJhZEMvysUh.js} +2 -2
  145. package/cdn/assets/{ByGApkjEdqWJCmIL.js → CWgLS_jMj5DNrggO.js} +4 -4
  146. package/cdn/assets/{C4PvQzHOWYFQIrTT.js → Ch5JO1OSaLcDuY1a.js} +4 -4
  147. package/{browser/esm/DmSh4h3LBSgZNzzF.mjs → cdn/assets/D0HahgSi_BcRitIR.js} +1 -1
  148. package/{browser/esm/DSBeC26EhsTkKu9_.mjs → cdn/assets/D5-W8jVCdTuhwV4I.js} +14 -14
  149. package/cdn/assets/{Bt1LjWrzTz3VQP5i.js → DDaraJFhLInV4GMJ.js} +1 -1
  150. package/{browser/esm/BwEUAuMX1MAp6TLB.mjs → cdn/assets/DE8w2hURn5qI8AKp.js} +1 -1
  151. package/{browser/esm/DxOr3qEZVibn2HK7.mjs → cdn/assets/DGk-Ommc_o1xYlw-.js} +1 -1
  152. package/cdn/assets/{DVAgkqy1aZdEMIzM.js → DHwgBfUeVdooDLZu.js} +1 -1
  153. package/cdn/assets/{CQ_eXYB8jRiWFzL8.js → DI9WWYlw4XtaKxJ9.js} +16 -16
  154. package/cdn/assets/DN9WPHXLnxyrdP62.js +49 -0
  155. package/cdn/assets/{ClwsvKMIARY6eKe8.js → DOoM8QGUlLAU2iqo.js} +8 -8
  156. package/cdn/assets/{5RdhqzgwkuR2ox0E.js → DPRM8hNlNCr3-T5W.js} +1 -1
  157. package/cdn/assets/DSfbEMCq8-gDBtv_.js +46 -0
  158. package/cdn/assets/{DrKm9mDEvFK0tW1J.js → DZyvhfi33GteuMM3.js} +4 -4
  159. package/{browser/esm/CnwSRSKNfq2GyXas.mjs → cdn/assets/D_SW7AJGTxZZhEhN.js} +1 -1
  160. package/cdn/assets/{Bp2dkgUm5zsuNnPH.js → Ddco0tbzyQ9zfvAR.js} +1 -1
  161. package/cdn/assets/{CxPN10OK3cql47vK.js → DdjDNvycthoT3npY.js} +2 -2
  162. package/{browser/esm/CQoo-4sVCrOfP9iU.mjs → cdn/assets/DhtBGaXEjpSpeQD2.js} +1 -1
  163. package/cdn/assets/{BFYBuTXa6xa5ZjBo.js → DmeMooAnq1CVPk8s.js} +1 -1
  164. package/{browser/esm/BPDWQKVFxO_3IqZX.mjs → cdn/assets/DnDDStLug64LBv-3.js} +1 -1
  165. package/{browser/esm/C2DVh9PCXymQ6Bku.mjs → cdn/assets/DrT_zO6kt_14yLBZ.js} +1 -1
  166. package/{browser/esm/Do7w66ZbyFAW-Kvo.mjs → cdn/assets/DwUhQt38jwVGevvy.js} +1 -1
  167. package/{browser/esm/CvTxaj5stKRFGegY.mjs → cdn/assets/IF2d9xZoQ-KwvBKh.js} +1 -1
  168. package/{browser/esm/IWZ_bebXCJeQz19V.mjs → cdn/assets/PzttknQejK9onrpS.js} +1 -1
  169. package/cdn/assets/{CWSZwGuenxmHgLXd.js → TM6K2pq3Dcv9IkuU.js} +1 -1
  170. package/cdn/assets/{DmTmS8Vw_AvNiuzU.js → UYuqeLmzk4CZISVt.js} +10 -10
  171. package/cdn/assets/{BUAQRxezxaeHUbwe.js → mMMnv_KWRsRe75FG.js} +1 -1
  172. package/cdn/assets/{BmkIbFYjQZnaZGzF.js → q0yHqQ5GBeLgY-gd.js} +1 -1
  173. package/cdn/assets/{bGhAFgohHm88dsqJ.js → sZe9Sjpn-rLq53T6.js} +11 -11
  174. package/cdn/index.js +2 -2
  175. package/cdn/loader.js +1 -1
  176. package/package.json +3 -3
  177. package/browser/cjs/CXn4J7ISlTV_SfvZ.cjs +0 -6
  178. package/browser/cjs/TAIJH4y6CbXhFnhx.cjs +0 -364
  179. package/cdn/assets/CP0YRrUyk_DwRGye.js +0 -46
  180. package/cdn/assets/sMpbLhp97YEbNwUD.js +0 -49
@@ -1,15 +1,15 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.15
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.16
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 yt=require("./TAIJH4y6CbXhFnhx.cjs");var ct,pt={exports:{}},gt=(ct||(ct=1,pt.exports=function Y(){var Q,k=typeof self<"u"?self:typeof window<"u"?window:k!==void 0?k:{},P=!k.document&&!!k.postMessage,B=k.IS_PAPA_WORKER||!1,J={},mt=0,a={};function K(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var i=at(e);i.chunkSize=parseInt(i.chunkSize),e.step||e.chunk||(i.chunkSize=null),this._handle=new ht(i),(this._handle.streamer=this)._config=i}.call(this,t),this.parseChunk=function(e,i){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<n){let l=this._config.newline;l||(r=this._config.quoteChar||'"',l=this._handle.guessLineEndings(e,r)),e=[...e.split(l).slice(n)].join(l)}this.isFirstChunk&&_(this._config.beforeFirstChunk)&&(r=this._config.beforeFirstChunk(e))!==void 0&&(e=r),this.isFirstChunk=!1,this._halted=!1,n=this._partialLine+e;var r=(this._partialLine="",this._handle.parse(n,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=r.meta.cursor,this._finished||(this._partialLine=n.substring(e-this._baseIndex),this._baseIndex=e),r&&r.data&&(this._rowCount+=r.data.length),n=this._finished||this._config.preview&&this._rowCount>=this._config.preview,B)k.postMessage({results:r,workerId:a.WORKER_ID,finished:n});else if(_(this._config.chunk)&&!i){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=r=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!n||!_(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):B&&this._config.error&&k.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function it(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.RemoteChunkSize),K.call(this,t),this._nextChunk=P?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),P||(e.onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!P),this._config.downloadRequestHeaders){var i,n=this._config.downloadRequestHeaders;for(i in n)e.setRequestHeader(i,n[i])}var r;this._config.chunkSize&&(r=this._start+this._config.chunkSize-1,e.setRequestHeader("Range","bytes="+this._start+"-"+r));try{e.send(this._config.downloadRequestBody)}catch(l){this._chunkError(l.message)}P&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){var i;e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize||e.responseText.length,this._finished=!this._config.chunkSize||this._start>=((i=(i=e).getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1),this.parseChunk(e.responseText)))},this._chunkError=function(i){i=e.statusText||i,this._sendError(new Error(i))}}function rt(t){(t=t||{}).chunkSize||(t.chunkSize=a.LocalChunkSize),K.call(this,t);var e,i,n=typeof FileReader<"u";this.stream=function(r){this._input=r,i=r.slice||r.webkitSlice||r.mozSlice,n?((e=new FileReader).onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var r=this._input,l=(this._config.chunkSize&&(l=Math.min(this._start+this._config.chunkSize,this._input.size),r=i.call(r,this._start,l)),e.readAsText(r,this._config.encoding));n||this._chunkLoaded({target:{result:l}})},this._chunkLoaded=function(r){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(r.target.result)},this._chunkError=function(){this._sendError(e.error)}}function X(t){var e;K.call(this,t=t||{}),this.stream=function(i){return e=i,this._nextChunk()},this._nextChunk=function(){var i,n;if(!this._finished)return i=this._config.chunkSize,e=i?(n=e.substring(0,i),e.substring(i)):(n=e,""),this._finished=!e,this.parseChunk(n)}}function nt(t){K.call(this,t=t||{});var e=[],i=!0,n=!1;this.pause=function(){K.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){K.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(r){this._input=r,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):i=!0},this._streamData=$(function(r){try{e.push(typeof r=="string"?r:r.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(l){this._streamError(l)}},this),this._streamError=$(function(r){this._streamCleanUp(),this._sendError(r)},this),this._streamEnd=$(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=$(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ht(t){var e,i,n,r,l=Math.pow(2,53),v=-l,M=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,w=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,m=this,T=0,o=0,j=!1,u=!1,p=[],s={data:[],errors:[],meta:{}};function C(h){return t.skipEmptyLines==="greedy"?h.join("").trim()==="":h.length===1&&h[0].length===0}function R(){if(s&&n&&(z("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),n=!1),t.skipEmptyLines&&(s.data=s.data.filter(function(f){return!C(f)})),F()){let f=function(O,L){_(t.transformHeader)&&(O=t.transformHeader(O,L)),p.push(O)};if(s)if(Array.isArray(s.data[0])){for(var h=0;F()&&h<s.data.length;h++)s.data[h].forEach(f);s.data.splice(0,1)}else s.data.forEach(f)}function c(f,O){for(var L=t.header?{}:[],b=0;b<f.length;b++){var y=b,g=f[b];g=((U,d)=>{return S=U,t.dynamicTypingFunction&&t.dynamicTyping[S]===void 0&&(t.dynamicTyping[S]=t.dynamicTypingFunction(S)),(t.dynamicTyping[S]||t.dynamicTyping)===!0?d==="true"||d==="TRUE"||d!=="false"&&d!=="FALSE"&&((I=>{if(M.test(I)&&(I=parseFloat(I),v<I&&I<l))return 1})(d)?parseFloat(d):w.test(d)?new Date(d):d===""?null:d):d;var S})(y=t.header?b>=p.length?"__parsed_extra":p[b]:y,g=t.transform?t.transform(g,y):g),y==="__parsed_extra"?(L[y]=L[y]||[],L[y].push(g)):L[y]=g}return t.header&&(b>p.length?z("FieldMismatch","TooManyFields","Too many fields: expected "+p.length+" fields but parsed "+b,o+O):b<p.length&&z("FieldMismatch","TooFewFields","Too few fields: expected "+p.length+" fields but parsed "+b,o+O)),L}var E;s&&(t.header||t.dynamicTyping||t.transform)&&(E=1,!s.data.length||Array.isArray(s.data[0])?(s.data=s.data.map(c),E=s.data.length):s.data=c(s.data,0),t.header&&s.meta&&(s.meta.fields=p),o+=E)}function F(){return t.header&&p.length===0}function z(h,c,E,f){h={type:h,code:c,message:E},f!==void 0&&(h.row=f),s.errors.push(h)}_(t.step)&&(r=t.step,t.step=function(h){s=h,F()?R():(R(),s.data.length!==0&&(T+=h.data.length,t.preview&&T>t.preview?i.abort():(s.data=s.data[0],r(s,m))))}),this.parse=function(h,c,E){var f=t.quoteChar||'"';return t.newline||(t.newline=this.guessLineEndings(h,f)),n=!1,t.delimiter?_(t.delimiter)&&(t.delimiter=t.delimiter(h),s.meta.delimiter=t.delimiter):((f=((O,L,b,y,g)=>{var U,d,S,I;g=g||[","," ","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var Z=0;Z<g.length;Z++){for(var W,tt=g[Z],A=0,D=0,x=0,q=(S=void 0,new st({comments:y,delimiter:tt,newline:L,preview:10}).parse(O)),H=0;H<q.data.length;H++)b&&C(q.data[H])?x++:(D+=W=q.data[H].length,S===void 0?S=W:0<W&&(A+=Math.abs(W-S),S=W));0<q.data.length&&(D/=q.data.length-x),(d===void 0||A<=d)&&(I===void 0||I<D)&&1.99<D&&(d=A,U=tt,I=D)}return{successful:!!(t.delimiter=U),bestDelimiter:U}})(h,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=f.bestDelimiter:(n=!0,t.delimiter=a.DefaultDelimiter),s.meta.delimiter=t.delimiter),f=at(t),t.preview&&t.header&&f.preview++,e=h,i=new st(f),s=i.parse(e,c,E),R(),j?{meta:{paused:!0}}:s||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,i.abort(),e=_(t.chunk)?"":e.substring(i.getCharIndex())},this.resume=function(){m.streamer._halted?(j=!1,m.streamer.parseChunk(e,!0)):setTimeout(m.resume,3)},this.aborted=function(){return u},this.abort=function(){u=!0,i.abort(),s.meta.aborted=!0,_(t.complete)&&t.complete(s),e=""},this.guessLineEndings=function(h,c){h=h.substring(0,1048576),c=new RegExp(V(c)+"([^]*?)"+V(c),"gm");var E=(h=h.replace(c,"")).split("\r");if(h=1<(c=h.split(`
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const yt=require("./BbEY710KwFxGt-nx.cjs");var ct,pt={exports:{}},gt=(ct||(ct=1,pt.exports=function Y(){var Q,k=typeof self<"u"?self:typeof window<"u"?window:k!==void 0?k:{},P=!k.document&&!!k.postMessage,B=k.IS_PAPA_WORKER||!1,J={},mt=0,a={};function K(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var i=at(e);i.chunkSize=parseInt(i.chunkSize),e.step||e.chunk||(i.chunkSize=null),this._handle=new ht(i),(this._handle.streamer=this)._config=i}.call(this,t),this.parseChunk=function(e,i){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<n){let l=this._config.newline;l||(r=this._config.quoteChar||'"',l=this._handle.guessLineEndings(e,r)),e=[...e.split(l).slice(n)].join(l)}this.isFirstChunk&&_(this._config.beforeFirstChunk)&&(r=this._config.beforeFirstChunk(e))!==void 0&&(e=r),this.isFirstChunk=!1,this._halted=!1,n=this._partialLine+e;var r=(this._partialLine="",this._handle.parse(n,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=r.meta.cursor,this._finished||(this._partialLine=n.substring(e-this._baseIndex),this._baseIndex=e),r&&r.data&&(this._rowCount+=r.data.length),n=this._finished||this._config.preview&&this._rowCount>=this._config.preview,B)k.postMessage({results:r,workerId:a.WORKER_ID,finished:n});else if(_(this._config.chunk)&&!i){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=r=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!n||!_(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):B&&this._config.error&&k.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function it(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.RemoteChunkSize),K.call(this,t),this._nextChunk=P?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),P||(e.onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!P),this._config.downloadRequestHeaders){var i,n=this._config.downloadRequestHeaders;for(i in n)e.setRequestHeader(i,n[i])}var r;this._config.chunkSize&&(r=this._start+this._config.chunkSize-1,e.setRequestHeader("Range","bytes="+this._start+"-"+r));try{e.send(this._config.downloadRequestBody)}catch(l){this._chunkError(l.message)}P&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){var i;e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize||e.responseText.length,this._finished=!this._config.chunkSize||this._start>=((i=(i=e).getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1),this.parseChunk(e.responseText)))},this._chunkError=function(i){i=e.statusText||i,this._sendError(new Error(i))}}function rt(t){(t=t||{}).chunkSize||(t.chunkSize=a.LocalChunkSize),K.call(this,t);var e,i,n=typeof FileReader<"u";this.stream=function(r){this._input=r,i=r.slice||r.webkitSlice||r.mozSlice,n?((e=new FileReader).onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var r=this._input,l=(this._config.chunkSize&&(l=Math.min(this._start+this._config.chunkSize,this._input.size),r=i.call(r,this._start,l)),e.readAsText(r,this._config.encoding));n||this._chunkLoaded({target:{result:l}})},this._chunkLoaded=function(r){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(r.target.result)},this._chunkError=function(){this._sendError(e.error)}}function X(t){var e;K.call(this,t=t||{}),this.stream=function(i){return e=i,this._nextChunk()},this._nextChunk=function(){var i,n;if(!this._finished)return i=this._config.chunkSize,e=i?(n=e.substring(0,i),e.substring(i)):(n=e,""),this._finished=!e,this.parseChunk(n)}}function nt(t){K.call(this,t=t||{});var e=[],i=!0,n=!1;this.pause=function(){K.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){K.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(r){this._input=r,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):i=!0},this._streamData=$(function(r){try{e.push(typeof r=="string"?r:r.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(l){this._streamError(l)}},this),this._streamError=$(function(r){this._streamCleanUp(),this._sendError(r)},this),this._streamEnd=$(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=$(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ht(t){var e,i,n,r,l=Math.pow(2,53),v=-l,M=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,w=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,m=this,T=0,o=0,j=!1,u=!1,p=[],s={data:[],errors:[],meta:{}};function C(h){return t.skipEmptyLines==="greedy"?h.join("").trim()==="":h.length===1&&h[0].length===0}function R(){if(s&&n&&(z("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),n=!1),t.skipEmptyLines&&(s.data=s.data.filter(function(f){return!C(f)})),L()){let f=function(O,A){_(t.transformHeader)&&(O=t.transformHeader(O,A)),p.push(O)};if(s)if(Array.isArray(s.data[0])){for(var h=0;L()&&h<s.data.length;h++)s.data[h].forEach(f);s.data.splice(0,1)}else s.data.forEach(f)}function c(f,O){for(var A=t.header?{}:[],b=0;b<f.length;b++){var y=b,g=f[b];g=((U,d)=>{return S=U,t.dynamicTypingFunction&&t.dynamicTyping[S]===void 0&&(t.dynamicTyping[S]=t.dynamicTypingFunction(S)),(t.dynamicTyping[S]||t.dynamicTyping)===!0?d==="true"||d==="TRUE"||d!=="false"&&d!=="FALSE"&&((I=>{if(M.test(I)&&(I=parseFloat(I),v<I&&I<l))return 1})(d)?parseFloat(d):w.test(d)?new Date(d):d===""?null:d):d;var S})(y=t.header?b>=p.length?"__parsed_extra":p[b]:y,g=t.transform?t.transform(g,y):g),y==="__parsed_extra"?(A[y]=A[y]||[],A[y].push(g)):A[y]=g}return t.header&&(b>p.length?z("FieldMismatch","TooManyFields","Too many fields: expected "+p.length+" fields but parsed "+b,o+O):b<p.length&&z("FieldMismatch","TooFewFields","Too few fields: expected "+p.length+" fields but parsed "+b,o+O)),A}var E;s&&(t.header||t.dynamicTyping||t.transform)&&(E=1,!s.data.length||Array.isArray(s.data[0])?(s.data=s.data.map(c),E=s.data.length):s.data=c(s.data,0),t.header&&s.meta&&(s.meta.fields=p),o+=E)}function L(){return t.header&&p.length===0}function z(h,c,E,f){h={type:h,code:c,message:E},f!==void 0&&(h.row=f),s.errors.push(h)}_(t.step)&&(r=t.step,t.step=function(h){s=h,L()?R():(R(),s.data.length!==0&&(T+=h.data.length,t.preview&&T>t.preview?i.abort():(s.data=s.data[0],r(s,m))))}),this.parse=function(h,c,E){var f=t.quoteChar||'"';return t.newline||(t.newline=this.guessLineEndings(h,f)),n=!1,t.delimiter?_(t.delimiter)&&(t.delimiter=t.delimiter(h),s.meta.delimiter=t.delimiter):((f=((O,A,b,y,g)=>{var U,d,S,I;g=g||[","," ","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var Z=0;Z<g.length;Z++){for(var W,tt=g[Z],F=0,D=0,x=0,q=(S=void 0,new st({comments:y,delimiter:tt,newline:A,preview:10}).parse(O)),H=0;H<q.data.length;H++)b&&C(q.data[H])?x++:(D+=W=q.data[H].length,S===void 0?S=W:0<W&&(F+=Math.abs(W-S),S=W));0<q.data.length&&(D/=q.data.length-x),(d===void 0||F<=d)&&(I===void 0||I<D)&&1.99<D&&(d=F,U=tt,I=D)}return{successful:!!(t.delimiter=U),bestDelimiter:U}})(h,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=f.bestDelimiter:(n=!0,t.delimiter=a.DefaultDelimiter),s.meta.delimiter=t.delimiter),f=at(t),t.preview&&t.header&&f.preview++,e=h,i=new st(f),s=i.parse(e,c,E),R(),j?{meta:{paused:!0}}:s||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,i.abort(),e=_(t.chunk)?"":e.substring(i.getCharIndex())},this.resume=function(){m.streamer._halted?(j=!1,m.streamer.parseChunk(e,!0)):setTimeout(m.resume,3)},this.aborted=function(){return u},this.abort=function(){u=!0,i.abort(),s.meta.aborted=!0,_(t.complete)&&t.complete(s),e=""},this.guessLineEndings=function(h,c){h=h.substring(0,1048576),c=new RegExp(V(c)+"([^]*?)"+V(c),"gm");var E=(h=h.replace(c,"")).split("\r");if(h=1<(c=h.split(`
7
7
  `)).length&&c[0].length<E[0].length,E.length===1||h)return`
8
8
  `;for(var f=0,O=0;O<E.length;O++)E[O][0]===`
9
9
  `&&f++;return f>=E.length/2?`\r
10
10
  `:"\r"}}function V(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function st(t){var e=(t=t||{}).delimiter,i=t.newline,n=t.comments,r=t.step,l=t.preview,v=t.fastMode,M=null,w=!1,m=t.quoteChar==null?'"':t.quoteChar,T=m;if(t.escapeChar!==void 0&&(T=t.escapeChar),(typeof e!="string"||-1<a.BAD_DELIMITERS.indexOf(e))&&(e=","),n===e)throw new Error("Comment character same as delimiter");n===!0?n="#":(typeof n!="string"||-1<a.BAD_DELIMITERS.indexOf(n))&&(n=!1),i!==`
11
11
  `&&i!=="\r"&&i!==`\r
12
12
  `&&(i=`
13
- `);var o=0,j=!1;this.parse=function(u,p,s){if(typeof u!="string")throw new Error("Input must be a string");var C=u.length,R=e.length,F=i.length,z=n.length,h=_(r),c=[],E=[],f=[],O=o=0;if(!u)return A();if(v||v!==!1&&u.indexOf(m)===-1){for(var L=u.split(i),b=0;b<L.length;b++){if(f=L[b],o+=f.length,b!==L.length-1)o+=i.length;else if(s)return A();if(!n||f.substring(0,z)!==n){if(h){if(c=[],I(f.split(e)),D(),j)return A()}else I(f.split(e));if(l&&l<=b)return c=c.slice(0,l),A(!0)}}return A()}for(var y=u.indexOf(e,o),g=u.indexOf(i,o),U=new RegExp(V(T)+V(m),"g"),d=u.indexOf(m,o);;)if(u[o]===m)for(d=o,o++;;){if((d=u.indexOf(m,d+1))===-1)return s||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:c.length,index:o}),W();if(d===C-1)return W(u.substring(o,d).replace(U,m));if(m===T&&u[d+1]===T)d++;else if(m===T||d===0||u[d-1]!==T){y!==-1&&y<d+1&&(y=u.indexOf(e,d+1));var S=Z((g=g!==-1&&g<d+1?u.indexOf(i,d+1):g)===-1?y:Math.min(y,g));if(u.substr(d+1+S,R)===e){f.push(u.substring(o,d).replace(U,m)),u[o=d+1+S+R]!==m&&(d=u.indexOf(m,o)),y=u.indexOf(e,o),g=u.indexOf(i,o);break}if(S=Z(g),u.substring(d+1+S,d+1+S+F)===i){if(f.push(u.substring(o,d).replace(U,m)),tt(d+1+S+F),y=u.indexOf(e,o),d=u.indexOf(m,o),h&&(D(),j))return A();if(l&&c.length>=l)return A(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:c.length,index:o}),d++}}else if(n&&f.length===0&&u.substring(o,o+z)===n){if(g===-1)return A();o=g+F,g=u.indexOf(i,o),y=u.indexOf(e,o)}else if(y!==-1&&(y<g||g===-1))f.push(u.substring(o,y)),o=y+R,y=u.indexOf(e,o);else{if(g===-1)break;if(f.push(u.substring(o,g)),tt(g+F),h&&(D(),j))return A();if(l&&c.length>=l)return A(!0)}return W();function I(x){c.push(x),O=o}function Z(x){return x!==-1&&(x=u.substring(d+1,x))&&x.trim()===""?x.length:0}function W(x){return s||(x===void 0&&(x=u.substring(o)),f.push(x),o=C,I(f),h&&D()),A()}function tt(x){o=x,I(f),f=[],g=u.indexOf(i,o)}function A(x){if(t.header&&!p&&c.length&&!w){var q=c[0],H=Object.create(null),ot=new Set(q);let ft=!1;for(let G=0;G<q.length;G++){let N=q[G];if(H[N=_(t.transformHeader)?t.transformHeader(N,G):N]){let et,lt=H[N];for(;et=N+"_"+lt,lt++,ot.has(et););ot.add(et),q[G]=et,H[N]++,ft=!0,(M=M===null?{}:M)[et]=N}else H[N]=1,q[G]=N;ot.add(N)}ft&&console.warn("Duplicate headers found and renamed."),w=!0}return{data:c,errors:E,meta:{delimiter:e,linebreak:i,aborted:j,truncated:!!x,cursor:O+(p||0),renamedHeaders:M}}}function D(){r(A()),c=[],E=[]}},this.abort=function(){j=!0},this.getCharIndex=function(){return o}}function _t(t){var e=t.data,i=J[e.workerId],n=!1;if(e.error)i.userError(e.error,e.file);else if(e.results&&e.results.data){var r={abort:function(){n=!0,ut(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:dt,resume:dt};if(_(i.userStep)){for(var l=0;l<e.results.data.length&&(i.userStep({data:e.results.data[l],errors:e.results.errors,meta:e.results.meta},r),!n);l++);delete e.results}else _(i.userChunk)&&(i.userChunk(e.results,r,e.file),delete e.results)}e.finished&&!n&&ut(e.workerId,e.results)}function ut(t,e){var i=J[t];_(i.userComplete)&&i.userComplete(e),i.terminate(),delete J[t]}function dt(){throw new Error("Not implemented.")}function at(t){if(typeof t!="object"||t===null)return t;var e,i=Array.isArray(t)?[]:{};for(e in t)i[e]=at(t[e]);return i}function $(t,e){return function(){t.apply(e,arguments)}}function _(t){return typeof t=="function"}return a.parse=function(t,e){var i,n=(e=e||{}).dynamicTyping||!1;if(_(n)&&(e.dynamicTypingFunction=n,n={}),e.dynamicTyping=n,e.transform=!!_(e.transform)&&e.transform,!e.worker||!a.WORKERS_SUPPORTED)return n=null,a.NODE_STREAM_INPUT,typeof t=="string"?(t=(i=t).charCodeAt(0)!==65279?i:i.slice(1),n=new(e.download?it:X)(e)):t.readable===!0&&_(t.read)&&_(t.on)?n=new nt(e):(k.File&&t instanceof File||t instanceof Object)&&(n=new rt(e)),n.stream(t);(n=(()=>{var r,l,v;return!!a.WORKERS_SUPPORTED&&(l=k.URL||k.webkitURL||null,v=Y.toString(),r=a.BLOB_URL||(a.BLOB_URL=l.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",v,")();"],{type:"text/javascript"}))),(r=new k.Worker(r)).onmessage=_t,r.id=mt++,J[r.id]=r)})()).userStep=e.step,n.userChunk=e.chunk,n.userComplete=e.complete,n.userError=e.error,e.step=_(e.step),e.chunk=_(e.chunk),e.complete=_(e.complete),e.error=_(e.error),delete e.worker,n.postMessage({input:t,config:e,workerId:n.id})},a.unparse=function(t,e){var i=!1,n=!0,r=",",l=`\r
14
- `,v='"',M=v+v,w=!1,m=null,T=!1,o=((()=>{if(typeof e=="object"){if(typeof e.delimiter!="string"||a.BAD_DELIMITERS.filter(function(p){return e.delimiter.indexOf(p)!==-1}).length||(r=e.delimiter),typeof e.quotes!="boolean"&&typeof e.quotes!="function"&&!Array.isArray(e.quotes)||(i=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(w=e.skipEmptyLines),typeof e.newline=="string"&&(l=e.newline),typeof e.quoteChar=="string"&&(v=e.quoteChar),typeof e.header=="boolean"&&(n=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");m=e.columns}e.escapeChar!==void 0&&(M=e.escapeChar+v),e.escapeFormulae instanceof RegExp?T=e.escapeFormulae:typeof e.escapeFormulae=="boolean"&&e.escapeFormulae&&(T=/^[=+\-@\t\r].*$/)}})(),new RegExp(V(v),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return j(null,t,w);if(typeof t[0]=="object")return j(m||Object.keys(t[0]),t,w)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||m),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),j(t.fields||[],t.data||[],w);throw new Error("Unable to serialize unrecognized input");function j(p,s,C){var R="",F=(typeof p=="string"&&(p=JSON.parse(p)),typeof s=="string"&&(s=JSON.parse(s)),Array.isArray(p)&&0<p.length),z=!Array.isArray(s[0]);if(F&&n){for(var h=0;h<p.length;h++)0<h&&(R+=r),R+=u(p[h],h);0<s.length&&(R+=l)}for(var c=0;c<s.length;c++){var E=(F?p:s[c]).length,f=!1,O=F?Object.keys(s[c]).length===0:s[c].length===0;if(C&&!F&&(f=C==="greedy"?s[c].join("").trim()==="":s[c].length===1&&s[c][0].length===0),C==="greedy"&&F){for(var L=[],b=0;b<E;b++){var y=z?p[b]:b;L.push(s[c][y])}f=L.join("").trim()===""}if(!f){for(var g=0;g<E;g++){0<g&&!O&&(R+=r);var U=F&&z?p[g]:g;R+=u(s[c][U],g)}c<s.length-1&&(!C||0<E&&!O)&&(R+=l)}}return R}function u(p,s){var C,R;return p==null?"":p.constructor===Date?JSON.stringify(p).slice(1,25):(R=!1,T&&typeof p=="string"&&T.test(p)&&(p="'"+p,R=!0),C=p.toString().replace(o,M),(R=R||i===!0||typeof i=="function"&&i(p,s)||Array.isArray(i)&&i[s]||((F,z)=>{for(var h=0;h<z.length;h++)if(-1<F.indexOf(z[h]))return!0;return!1})(C,a.BAD_DELIMITERS)||-1<C.indexOf(r)||C.charAt(0)===" "||C.charAt(C.length-1)===" ")?v+C+v:C)}},a.RECORD_SEP="",a.UNIT_SEP="",a.BYTE_ORDER_MARK="\uFEFF",a.BAD_DELIMITERS=["\r",`
15
- `,'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!P&&!!k.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=st,a.ParserHandle=ht,a.NetworkStreamer=it,a.FileStreamer=rt,a.StringStreamer=X,a.ReadableStreamStreamer=nt,k.jQuery&&((Q=k.jQuery).fn.parse=function(t){var e=t.config||{},i=[];return this.each(function(l){if(Q(this).prop("tagName").toUpperCase()!=="INPUT"||Q(this).attr("type").toLowerCase()!=="file"||!k.FileReader||!this.files||this.files.length===0)return!0;for(var v=0;v<this.files.length;v++)i.push({file:this.files[v],inputElem:this,instanceConfig:Q.extend({},e)})}),n(),this;function n(){if(i.length===0)_(t.complete)&&t.complete();else{var l,v,M,w=i[0];if(_(t.before)){var m=t.before(w.file,w.inputElem);if(typeof m=="object"){if(m.action==="abort")return l=w.file,v=w.inputElem,M=m.reason,void(_(t.error)&&t.error({name:"AbortError"},l,v,M));if(m.action==="skip")return void r();typeof m.config=="object"&&(w.instanceConfig=Q.extend(w.instanceConfig,m.config))}else if(m==="skip")return void r()}var T=w.instanceConfig.complete;w.instanceConfig.complete=function(o){_(T)&&T(o,w.file,w.inputElem),r()},a.parse(w.file,w.instanceConfig)}}function r(){i.splice(0,1),n()}}),B&&(k.onmessage=function(t){t=t.data,a.WORKER_ID===void 0&&t&&(a.WORKER_ID=t.workerId),typeof t.input=="string"?k.postMessage({workerId:a.WORKER_ID,results:a.parse(t.input,t.config),finished:!0}):(k.File&&t.input instanceof File||t.input instanceof Object)&&(t=a.parse(t.input,t.config))&&k.postMessage({workerId:a.WORKER_ID,results:t,finished:!0})}),(it.prototype=Object.create(K.prototype)).constructor=it,(rt.prototype=Object.create(K.prototype)).constructor=rt,(X.prototype=Object.create(X.prototype)).constructor=X,(nt.prototype=Object.create(K.prototype)).constructor=nt,a}()),pt.exports);const kt=function(Y,Q){for(var k=0;k<Q.length;k++){const P=Q[k];if(typeof P!="string"&&!Array.isArray(P)){for(const B in P)if(B!=="default"&&!(B in Y)){const J=Object.getOwnPropertyDescriptor(P,B);J&&Object.defineProperty(Y,B,J.get?J:{enumerable:!0,get:()=>P[B]})}}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:yt.Fm(gt)},[gt]);exports.p=kt;
13
+ `);var o=0,j=!1;this.parse=function(u,p,s){if(typeof u!="string")throw new Error("Input must be a string");var C=u.length,R=e.length,L=i.length,z=n.length,h=_(r),c=[],E=[],f=[],O=o=0;if(!u)return F();if(v||v!==!1&&u.indexOf(m)===-1){for(var A=u.split(i),b=0;b<A.length;b++){if(f=A[b],o+=f.length,b!==A.length-1)o+=i.length;else if(s)return F();if(!n||f.substring(0,z)!==n){if(h){if(c=[],I(f.split(e)),D(),j)return F()}else I(f.split(e));if(l&&l<=b)return c=c.slice(0,l),F(!0)}}return F()}for(var y=u.indexOf(e,o),g=u.indexOf(i,o),U=new RegExp(V(T)+V(m),"g"),d=u.indexOf(m,o);;)if(u[o]===m)for(d=o,o++;;){if((d=u.indexOf(m,d+1))===-1)return s||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:c.length,index:o}),W();if(d===C-1)return W(u.substring(o,d).replace(U,m));if(m===T&&u[d+1]===T)d++;else if(m===T||d===0||u[d-1]!==T){y!==-1&&y<d+1&&(y=u.indexOf(e,d+1));var S=Z((g=g!==-1&&g<d+1?u.indexOf(i,d+1):g)===-1?y:Math.min(y,g));if(u.substr(d+1+S,R)===e){f.push(u.substring(o,d).replace(U,m)),u[o=d+1+S+R]!==m&&(d=u.indexOf(m,o)),y=u.indexOf(e,o),g=u.indexOf(i,o);break}if(S=Z(g),u.substring(d+1+S,d+1+S+L)===i){if(f.push(u.substring(o,d).replace(U,m)),tt(d+1+S+L),y=u.indexOf(e,o),d=u.indexOf(m,o),h&&(D(),j))return F();if(l&&c.length>=l)return F(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:c.length,index:o}),d++}}else if(n&&f.length===0&&u.substring(o,o+z)===n){if(g===-1)return F();o=g+L,g=u.indexOf(i,o),y=u.indexOf(e,o)}else if(y!==-1&&(y<g||g===-1))f.push(u.substring(o,y)),o=y+R,y=u.indexOf(e,o);else{if(g===-1)break;if(f.push(u.substring(o,g)),tt(g+L),h&&(D(),j))return F();if(l&&c.length>=l)return F(!0)}return W();function I(x){c.push(x),O=o}function Z(x){return x!==-1&&(x=u.substring(d+1,x))&&x.trim()===""?x.length:0}function W(x){return s||(x===void 0&&(x=u.substring(o)),f.push(x),o=C,I(f),h&&D()),F()}function tt(x){o=x,I(f),f=[],g=u.indexOf(i,o)}function F(x){if(t.header&&!p&&c.length&&!w){var q=c[0],H=Object.create(null),ot=new Set(q);let ft=!1;for(let G=0;G<q.length;G++){let N=q[G];if(H[N=_(t.transformHeader)?t.transformHeader(N,G):N]){let et,lt=H[N];for(;et=N+"_"+lt,lt++,ot.has(et););ot.add(et),q[G]=et,H[N]++,ft=!0,(M=M===null?{}:M)[et]=N}else H[N]=1,q[G]=N;ot.add(N)}ft&&console.warn("Duplicate headers found and renamed."),w=!0}return{data:c,errors:E,meta:{delimiter:e,linebreak:i,aborted:j,truncated:!!x,cursor:O+(p||0),renamedHeaders:M}}}function D(){r(F()),c=[],E=[]}},this.abort=function(){j=!0},this.getCharIndex=function(){return o}}function _t(t){var e=t.data,i=J[e.workerId],n=!1;if(e.error)i.userError(e.error,e.file);else if(e.results&&e.results.data){var r={abort:function(){n=!0,ut(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:dt,resume:dt};if(_(i.userStep)){for(var l=0;l<e.results.data.length&&(i.userStep({data:e.results.data[l],errors:e.results.errors,meta:e.results.meta},r),!n);l++);delete e.results}else _(i.userChunk)&&(i.userChunk(e.results,r,e.file),delete e.results)}e.finished&&!n&&ut(e.workerId,e.results)}function ut(t,e){var i=J[t];_(i.userComplete)&&i.userComplete(e),i.terminate(),delete J[t]}function dt(){throw new Error("Not implemented.")}function at(t){if(typeof t!="object"||t===null)return t;var e,i=Array.isArray(t)?[]:{};for(e in t)i[e]=at(t[e]);return i}function $(t,e){return function(){t.apply(e,arguments)}}function _(t){return typeof t=="function"}return a.parse=function(t,e){var i,n=(e=e||{}).dynamicTyping||!1;if(_(n)&&(e.dynamicTypingFunction=n,n={}),e.dynamicTyping=n,e.transform=!!_(e.transform)&&e.transform,!e.worker||!a.WORKERS_SUPPORTED)return n=null,a.NODE_STREAM_INPUT,typeof t=="string"?(t=(i=t).charCodeAt(0)!==65279?i:i.slice(1),n=new(e.download?it:X)(e)):t.readable===!0&&_(t.read)&&_(t.on)?n=new nt(e):(k.File&&t instanceof File||t instanceof Object)&&(n=new rt(e)),n.stream(t);(n=(()=>{var r,l,v;return!!a.WORKERS_SUPPORTED&&(l=k.URL||k.webkitURL||null,v=Y.toString(),r=a.BLOB_URL||(a.BLOB_URL=l.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",v,")();"],{type:"text/javascript"}))),(r=new k.Worker(r)).onmessage=_t,r.id=mt++,J[r.id]=r)})()).userStep=e.step,n.userChunk=e.chunk,n.userComplete=e.complete,n.userError=e.error,e.step=_(e.step),e.chunk=_(e.chunk),e.complete=_(e.complete),e.error=_(e.error),delete e.worker,n.postMessage({input:t,config:e,workerId:n.id})},a.unparse=function(t,e){var i=!1,n=!0,r=",",l=`\r
14
+ `,v='"',M=v+v,w=!1,m=null,T=!1,o=((()=>{if(typeof e=="object"){if(typeof e.delimiter!="string"||a.BAD_DELIMITERS.filter(function(p){return e.delimiter.indexOf(p)!==-1}).length||(r=e.delimiter),typeof e.quotes!="boolean"&&typeof e.quotes!="function"&&!Array.isArray(e.quotes)||(i=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(w=e.skipEmptyLines),typeof e.newline=="string"&&(l=e.newline),typeof e.quoteChar=="string"&&(v=e.quoteChar),typeof e.header=="boolean"&&(n=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");m=e.columns}e.escapeChar!==void 0&&(M=e.escapeChar+v),e.escapeFormulae instanceof RegExp?T=e.escapeFormulae:typeof e.escapeFormulae=="boolean"&&e.escapeFormulae&&(T=/^[=+\-@\t\r].*$/)}})(),new RegExp(V(v),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return j(null,t,w);if(typeof t[0]=="object")return j(m||Object.keys(t[0]),t,w)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||m),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),j(t.fields||[],t.data||[],w);throw new Error("Unable to serialize unrecognized input");function j(p,s,C){var R="",L=(typeof p=="string"&&(p=JSON.parse(p)),typeof s=="string"&&(s=JSON.parse(s)),Array.isArray(p)&&0<p.length),z=!Array.isArray(s[0]);if(L&&n){for(var h=0;h<p.length;h++)0<h&&(R+=r),R+=u(p[h],h);0<s.length&&(R+=l)}for(var c=0;c<s.length;c++){var E=(L?p:s[c]).length,f=!1,O=L?Object.keys(s[c]).length===0:s[c].length===0;if(C&&!L&&(f=C==="greedy"?s[c].join("").trim()==="":s[c].length===1&&s[c][0].length===0),C==="greedy"&&L){for(var A=[],b=0;b<E;b++){var y=z?p[b]:b;A.push(s[c][y])}f=A.join("").trim()===""}if(!f){for(var g=0;g<E;g++){0<g&&!O&&(R+=r);var U=L&&z?p[g]:g;R+=u(s[c][U],g)}c<s.length-1&&(!C||0<E&&!O)&&(R+=l)}}return R}function u(p,s){var C,R;return p==null?"":p.constructor===Date?JSON.stringify(p).slice(1,25):(R=!1,T&&typeof p=="string"&&T.test(p)&&(p="'"+p,R=!0),C=p.toString().replace(o,M),(R=R||i===!0||typeof i=="function"&&i(p,s)||Array.isArray(i)&&i[s]||((L,z)=>{for(var h=0;h<z.length;h++)if(-1<L.indexOf(z[h]))return!0;return!1})(C,a.BAD_DELIMITERS)||-1<C.indexOf(r)||C.charAt(0)===" "||C.charAt(C.length-1)===" ")?v+C+v:C)}},a.RECORD_SEP="",a.UNIT_SEP="",a.BYTE_ORDER_MARK="\uFEFF",a.BAD_DELIMITERS=["\r",`
15
+ `,'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!P&&!!k.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=st,a.ParserHandle=ht,a.NetworkStreamer=it,a.FileStreamer=rt,a.StringStreamer=X,a.ReadableStreamStreamer=nt,k.jQuery&&((Q=k.jQuery).fn.parse=function(t){var e=t.config||{},i=[];return this.each(function(l){if(Q(this).prop("tagName").toUpperCase()!=="INPUT"||Q(this).attr("type").toLowerCase()!=="file"||!k.FileReader||!this.files||this.files.length===0)return!0;for(var v=0;v<this.files.length;v++)i.push({file:this.files[v],inputElem:this,instanceConfig:Q.extend({},e)})}),n(),this;function n(){if(i.length===0)_(t.complete)&&t.complete();else{var l,v,M,w=i[0];if(_(t.before)){var m=t.before(w.file,w.inputElem);if(typeof m=="object"){if(m.action==="abort")return l=w.file,v=w.inputElem,M=m.reason,void(_(t.error)&&t.error({name:"AbortError"},l,v,M));if(m.action==="skip")return void r();typeof m.config=="object"&&(w.instanceConfig=Q.extend(w.instanceConfig,m.config))}else if(m==="skip")return void r()}var T=w.instanceConfig.complete;w.instanceConfig.complete=function(o){_(T)&&T(o,w.file,w.inputElem),r()},a.parse(w.file,w.instanceConfig)}}function r(){i.splice(0,1),n()}}),B&&(k.onmessage=function(t){t=t.data,a.WORKER_ID===void 0&&t&&(a.WORKER_ID=t.workerId),typeof t.input=="string"?k.postMessage({workerId:a.WORKER_ID,results:a.parse(t.input,t.config),finished:!0}):(k.File&&t.input instanceof File||t.input instanceof Object)&&(t=a.parse(t.input,t.config))&&k.postMessage({workerId:a.WORKER_ID,results:t,finished:!0})}),(it.prototype=Object.create(K.prototype)).constructor=it,(rt.prototype=Object.create(K.prototype)).constructor=rt,(X.prototype=Object.create(X.prototype)).constructor=X,(nt.prototype=Object.create(K.prototype)).constructor=nt,a}()),pt.exports);const kt=function(Y,Q){for(var k=0;k<Q.length;k++){const P=Q[k];if(typeof P!="string"&&!Array.isArray(P)){for(const B in P)if(B!=="default"&&!(B in Y)){const J=Object.getOwnPropertyDescriptor(P,B);J&&Object.defineProperty(Y,B,J.get?J:{enumerable:!0,get:()=>P[B]})}}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:yt.of(gt)},[gt]);exports.p=kt;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.15
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.16
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.4.15
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.16
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.4.15
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.16
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.4.15
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.16
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("./TAIJH4y6CbXhFnhx.cjs"),p=e.reactExports.memo(u=>{const{title:g,onHide:h,autoFocusSel:j=".range-input input",context:R,notifier:i=e.s5,command:a,commands:r,...f}=u,[y,l]=e.reactExports.useState(!1),[x,c]=e.reactExports.useState(!1),d=e.reactExports.useRef(null),[N,E]=e.reactExports.useReducer(t=>t+1,0),[b,{width:T}]=e.Is();e.sl(a);const o=R??a.context(),s=o.table(),[S,w]=e.reactExports.useState(()=>s?o.getNames().getRanges(s.getRange()):null),C=e.reactExports.useMemo(()=>s?.getName()??"",[s]);e.cn(o.table(),{onAnchorCoordsChange(t){w(o.getNames().getRanges(t.getRange()))},onProtectedChange(t){E()}});const v=e.he(t=>{o?.table().setName(t)},[o]),B=e.he(t=>{o?.table().resize(t.at(0))},[o]);let m=null;return o.table()||(m=e.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:1,display:"flex",alignItems:"center",justifyItems:"center",justifyContent:"center",boxSizing:"border-box"},children:e.jsxRuntimeExports.jsx("div",{children:"No table selected"})})),e.jsxRuntimeExports.jsx(e.XC,{ref:d,title:g??"Table Details",initialPosition:{y:"35"},autoFocusSel:j,onHide:h,onFocus:()=>l(!0),onBlur:t=>{d?.current?.contains(t.relatedTarget)||l(!1)},PaperProps:{elevation:y?3:1},...f,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:b,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:t=>t.spacing(1.5),paddingRight:t=>t.spacing(1.5)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:o.table()?1:0},children:[e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",flexDirection:"row",gap:t=>t.spacing(1)},children:e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:t=>t.spacing(2),paddingRight:t=>t.spacing(2)},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.tR,{formName:"name",defaultInput:C,value:s?.getName()??"No table",onChangeInput:v,onValidate:t=>{s&&s.getName().toLowerCase()===t.toLowerCase()||o?.getNames().validateName(t)},disabled:s?.isProtected()??!0,onFocus:t=>{x||t.target?.select(),c(!0)}}),e.jsxRuntimeExports.jsx(e.nR,{formName:"range",value:S,onChangeInput:B,resolvedAddress:o.getNames().getRanges.bind(o.getNames()),disabled:s?.isProtected()??!0,onFocus:t=>{x||t.target?.select(),c(!0)}})]})})}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:t=>t.spacing(.5),marginTop:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.$t,{orientation:"horizontal",sx:{marginTop:t=>t.spacing(1.5),marginBottom:t=>t.spacing(.75)}}),e.jsxRuntimeExports.jsx(e.qL,{disabled:s?.isProtected(),styleOptions:s?.getStyleOptions()??null,onStyleOptionsChange:t=>{s.updateStyleOptions(t)},showHeaderRow:s?.getShowHeaders(),onShowHeaderRowChange:t=>{try{s.setShowHeaders(t)}catch(n){i.showError(n)}},showTotalRow:s?.getShowTotals(),onShowTotalRowChange:t=>{try{s.setShowTotals(t)}catch(n){i.showError(n)}},showFilterButton:s?.getFilter()?s.getShowFilterButton():null,onShowFilterButtonChange:t=>{try{s.setShowFilterButton(t)}catch(n){i.showError(n)}}}),e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:t=>t.spacing(2),marginBottom:t=>t.spacing(1)},children:e.jsxRuntimeExports.jsx(e.UD,{table:s,styles:o.styles(),bodyStyle:o.bodyStyle(),cellHeight:30,isLive:!0})}),e.jsxRuntimeExports.jsx(e.$t,{orientation:"horizontal"}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[e.jsxRuntimeExports.jsx(e.Ae,{variant:e.Qt.Menuitem,command:r.getCommand("convertTableToRange"),commandState:s,icon:e.xe(e.jsxRuntimeExports.jsx(e.Sc,{}))}),e.jsxRuntimeExports.jsx(e.Ae,{variant:e.Qt.Menuitem,commandState:s,command:r.getCommand("deleteTable"),icon:e.xe(e.jsxRuntimeExports.jsx(e.Sc,{}))})]})]})]}),m]})})});exports.TableDetailsWindow=p,exports.default=p;
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./BbEY710KwFxGt-nx.cjs"),p=e.reactExports.memo(u=>{const{title:g,onHide:h,autoFocusSel:j=".range-input input",context:R,notifier:i=e.s5,command:a,commands:r,...f}=u,[y,l]=e.reactExports.useState(!1),[x,c]=e.reactExports.useState(!1),d=e.reactExports.useRef(null),[N,E]=e.reactExports.useReducer(t=>t+1,0),[b,{width:T}]=e.Is();e.sl(a);const o=R??a.context(),s=o.table(),[S,w]=e.reactExports.useState(()=>s?o.getNames().getRanges(s.getRange()):null),C=e.reactExports.useMemo(()=>s?.getName()??"",[s]);e.cn(o.table(),{onAnchorCoordsChange(t){w(o.getNames().getRanges(t.getRange()))},onProtectedChange(t){E()}});const v=e.he(t=>{o?.table().setName(t)},[o]),B=e.he(t=>{o?.table().resize(t.at(0))},[o]);let m=null;return o.table()||(m=e.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:1,display:"flex",alignItems:"center",justifyItems:"center",justifyContent:"center",boxSizing:"border-box"},children:e.jsxRuntimeExports.jsx("div",{children:"No table selected"})})),e.jsxRuntimeExports.jsx(e.XC,{ref:d,title:g??"Table Details",initialPosition:{y:"35"},autoFocusSel:j,onHide:h,onFocus:()=>l(!0),onBlur:t=>{d?.current?.contains(t.relatedTarget)||l(!1)},PaperProps:{elevation:y?3:1},...f,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:b,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:t=>t.spacing(1.5),paddingRight:t=>t.spacing(1.5)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:o.table()?1:0},children:[e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",flexDirection:"row",gap:t=>t.spacing(1)},children:e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:t=>t.spacing(2),paddingRight:t=>t.spacing(2)},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.tR,{formName:"name",defaultInput:C,value:s?.getName()??"No table",onChangeInput:v,onValidate:t=>{s&&s.getName().toLowerCase()===t.toLowerCase()||o?.getNames().validateName(t)},disabled:s?.isProtected()??!0,onFocus:t=>{x||t.target?.select(),c(!0)}}),e.jsxRuntimeExports.jsx(e.nR,{formName:"range",value:S,onChangeInput:B,resolvedAddress:o.getNames().getRanges.bind(o.getNames()),disabled:s?.isProtected()??!0,onFocus:t=>{x||t.target?.select(),c(!0)}})]})})}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:t=>t.spacing(.5),marginTop:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.$t,{orientation:"horizontal",sx:{marginTop:t=>t.spacing(1.5),marginBottom:t=>t.spacing(.75)}}),e.jsxRuntimeExports.jsx(e.qL,{disabled:s?.isProtected(),styleOptions:s?.getStyleOptions()??null,onStyleOptionsChange:t=>{s.updateStyleOptions(t)},showHeaderRow:s?.getShowHeaders(),onShowHeaderRowChange:t=>{try{s.setShowHeaders(t)}catch(n){i.showError(n)}},showTotalRow:s?.getShowTotals(),onShowTotalRowChange:t=>{try{s.setShowTotals(t)}catch(n){i.showError(n)}},showFilterButton:s?.getFilter()?s.getShowFilterButton():null,onShowFilterButtonChange:t=>{try{s.setShowFilterButton(t)}catch(n){i.showError(n)}}}),e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:t=>t.spacing(2),marginBottom:t=>t.spacing(1)},children:e.jsxRuntimeExports.jsx(e.UD,{table:s,styles:o.styles(),bodyStyle:o.bodyStyle(),cellHeight:30,isLive:!0})}),e.jsxRuntimeExports.jsx(e.$t,{orientation:"horizontal"}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[e.jsxRuntimeExports.jsx(e.Ae,{variant:e.Qt.Menuitem,command:r.getCommand("convertTableToRange"),commandState:s,icon:e.xe(e.jsxRuntimeExports.jsx(e.Sc,{}))}),e.jsxRuntimeExports.jsx(e.Ae,{variant:e.Qt.Menuitem,commandState:s,command:r.getCommand("deleteTable"),icon:e.xe(e.jsxRuntimeExports.jsx(e.Sc,{}))})]})]})]}),m]})})});exports.TableDetailsWindow=p,exports.default=p;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.15
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.16
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.4.15
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.16
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.
@@ -10,4 +10,4 @@ Please use Chrome or Edge if external copy and paste is required.`,k=`You do not
10
10
  All copy and paste operations will be limited to the browser tab.`,jt={Safari:`The Safari browser does not support advanced copy and paste.
11
11
  Copy and paste will be limited to within the browser tab.
12
12
 
13
- Please use Chrome or Edge if external copy and paste is required.`,Perms:k,PermsWrite:T()===y.Safari?ut:k,PermsRead:T()===y.Safari?ut:k},N=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),B=async(e,t,r)=>{if(T()===y.Safari)return await r(new Error(jt.Safari));try{const n=async i=>{try{return await i()}catch(l){if(l.message?.includes("Document is not focused"))return!1;throw l}},o=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let a=!1;if(o.state==="prompt"&&(a=await n(t)),a||o.state!=="granted"||(a=await t()),!a)return await r(new Error(o.state))}catch(n){return n.message==="No valid data on clipboard"||n.name==="DataError"?void 0:await r(n)}},Tt=async e=>{try{return await e.read({unsanitized:[h]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const e=(r,n)=>new Blob([n],{type:r});class t{constructor(n,o){this._items={},this._types=Object.keys(n);const a={},i=Object.keys(n);for(let l=0;l<i.length;l++){const s=i[l];let c=n[s];a[s]=typeof c=="string"?e(s,c):c}this._items=a,this._presentationStyle=o?.presentationStyle??"unspecified"}get types(){return this._types}getType(n){return Promise.resolve(this._items[n])}supports(n){return!0}}globalThis.ClipboardItem=t}const V=async(e,t=h)=>new Promise(async(r,n)=>{try{const o=await(async(a,i)=>{if(!a)return null;const l=await Tt(a);let s=!1;for(let c=0;!s&&l&&c<l.length;c++)if(s=l[c].types.includes(i),s)return await l[c].getType(i);return s?void 0:null})(e,t);if(o){const a=new FileReader;a.onload=()=>{r(a.result)},a.onerror=()=>{r("")},a.readAsText(o)}else r("")}catch(o){n(o)}}),dt=async(e,t=h)=>{const r=await V(e,t);if(!r)return null;let n=null;try{n=new DOMParser().parseFromString(r,h)}catch{console.warn("Can't parse html from clipboard.")}return n},C="clipboard-uuid",v="web text/uuid",ft=e=>`<div style="display:none" ${C}="${e}"/>`,Wt=(e,t)=>{let r=null;try{const n=new DOMParser().parseFromString(t,h);n.body.firstElementChild.setAttribute(C,e),r=n.getElementsByTagName("body")[0].innerHTML}catch(n){console.warn("Can't embed uuid.",n)}return r},pt=(e,t)=>{if(!t||!e)return!1;try{const r=t.querySelectorAll(`[${C}="${e}"]`);if(r&&r.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};class wt{constructor(t){if(t?.nativeClipboard===void 0||t?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{t?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=t?.nativeClipboard===!1?null:t?.nativeClipboard;this._disableCheckOnFocus=t?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await B("clipboard-read",async()=>{await N();const t=await V(this._nativeClipboard,v);if(!this._state||t&&t===this._state.uuid)return!0;const r=await dt(this._nativeClipboard,h);return!this._state||(pt(this._state.uuid,r)||this.clear(),!0)},async t=>{t?.message==="denied"||t.message?.includes("Document is not focused")||T()===y.Safari||console.warn("Unable to detect clipboard changes: ",t)})}_init(){const t=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{t._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",t._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",r=>{t._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const t=this;return await B("clipboard-read",async()=>{if(await N(),this._state?.uuid){const r=await V(this._nativeClipboard,v);if(r&&r===t._state.uuid)return!0;const n=await dt(this._nativeClipboard,h);if(pt(t._state?.uuid,n))return!0}return t._state={items:await Tt(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async r=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(t){return this._write({uuid:R(),items:t,ref:null})}async _write(t){if(!this._nativeClipboard)return this._state=t,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const r=this,n=[],o=t.uuid;let a=t.items??[];const i=()=>{r._state={uuid:o,ref:t.ref,items:n},r.dispatchEvent(new Event("clipboardwrite")),r.dispatchEvent(new Event("clipboardchange"))};await B("clipboard-write",async()=>{await N(),o&&a.length===0&&(a.push(new ClipboardItem({[v]:new Blob([o],{type:v})})),a.push(new ClipboardItem({[h]:new Blob([ft(o)],{type:h})})));for(let l=0;l<Math.min(1,a.length);l++){const s=a[l];let c=s.types.indexOf(h),d=null;if(c!==-1){const f=await s.getType(h);d=await W(f),d&&(d=Wt(o,d))}if(!d&&s.types.includes(b)){const f=await s.getType(b);if(f){let p=null;typeof f=="string"?(console.warn("text as string",f),p=f):p=await W(f),p&&(d=`<div ${C}="${o}">${p}</div>`)}}if(!d&&s.types.includes(L)){const f=await s.getType(L),p=_t(await f.arrayBuffer());d=`<div ${C}="${o}"><img src="${Ot+p}"/></div>`}!d&&o&&(d=ft(o));const w=new Blob([d??""],{type:h}),u={};for(let f=0;f<s.types.length;f++){const p=s.types[f];u[p]=f===c?w:s.getType(p)}d&&c===-1&&(u[h]=w),o&&(u[v]=new Blob([o],{type:v})),n.push(new ClipboardItem(u))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async l=>{l&&await l.writeText("")})(this._nativeClipboard)}catch(l){l.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",l)}return i(),!0},async l=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(t){if(!t)return void this.clear();let r=null;const n={};try{const a=await t.toText?.()??null;a&&(n[b]=new Blob([a??""],{type:b}))}catch(a){r=a}try{const a=await t.toHtml?.()??null;a&&(n[h]=new Blob([a],{type:h}))}catch(a){r=a,console.warn("export to html",a)}try{const a=await t.toImage?.()??null;a&&(n[L]=a)}catch(a){r=a,console.warn("export to png",a)}const o=this._write({uuid:R(),ref:t,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(r)throw r;return o}clear(t=!1){this._state&&(this._state=null,t&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(t,r)=>{const n=await this.read();let o=null;for(let i=0;!o&&n&&i<n.length;i++)n[i].types.includes(b)&&(o=await n[i].getType(b));if(!o)return void t("");const a=new FileReader;a.onload=()=>{t(a.result)},a.readAsText(o),a.onerror=i=>{r(i)}})}async writeText(t){const r=[new ClipboardItem({[b]:new Blob([t],{type:b})})];return this._write({uuid:R(),items:r,ref:null})}addEventListener(t,r,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let a=o.get(t);a||(a=new Map,o.set(t,a)),a.set(r,typeof n=="boolean"?{}:n)}dispatchEvent(t){if(!t)return;const r=n=>{const o=n.get(t.type);o&&o.forEach((a,i)=>{try{typeof i=="function"?i(t):i.handleEvent&&i.handleEvent(t),a.once&&o.delete(i)}catch(l){console.warn(l)}})};return r(this._listenersCapture),r(this._listeners),!0}removeEventListener(t,r,n){const o=n?.capture?this._listenersCapture:this._listeners,a=o.get(t);a&&(a.delete(r),a.size===0&&o.delete(t))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}}var z;(z=wt||(wt={})).ErrorMessages=jt,z.Global=new z;let ht=null,q=null,M=null;const Vt=Object.freeze({compileTypescript:async function(e){if(!e?.source)return null;if(q&&xt.deepEqual(q,e))return ht;const t=await async function(){if(M)return M;const{TypeScriptCompiler:n}=await Promise.resolve().then(()=>require("./CA0OjW0AOuGEjxZ2.cjs"));return M=new n,M}(),r=await t.compileModule(e);return ht=r,q=e,r}}),Gt=Object.freeze(Object.defineProperty({__proto__:null,ScriptingUtils:Vt},Symbol.toStringTag,{value:"Module"}));exports.$=xt,exports.i=Gt;
13
+ Please use Chrome or Edge if external copy and paste is required.`,Perms:k,PermsWrite:T()===y.Safari?ut:k,PermsRead:T()===y.Safari?ut:k},N=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),B=async(e,t,r)=>{if(T()===y.Safari)return await r(new Error(jt.Safari));try{const n=async i=>{try{return await i()}catch(l){if(l.message?.includes("Document is not focused"))return!1;throw l}},o=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let a=!1;if(o.state==="prompt"&&(a=await n(t)),a||o.state!=="granted"||(a=await t()),!a)return await r(new Error(o.state))}catch(n){return n.message==="No valid data on clipboard"||n.name==="DataError"?void 0:await r(n)}},Tt=async e=>{try{return await e.read({unsanitized:[h]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const e=(r,n)=>new Blob([n],{type:r});class t{constructor(n,o){this._items={},this._types=Object.keys(n);const a={},i=Object.keys(n);for(let l=0;l<i.length;l++){const s=i[l];let c=n[s];a[s]=typeof c=="string"?e(s,c):c}this._items=a,this._presentationStyle=o?.presentationStyle??"unspecified"}get types(){return this._types}getType(n){return Promise.resolve(this._items[n])}supports(n){return!0}}globalThis.ClipboardItem=t}const V=async(e,t=h)=>new Promise(async(r,n)=>{try{const o=await(async(a,i)=>{if(!a)return null;const l=await Tt(a);let s=!1;for(let c=0;!s&&l&&c<l.length;c++)if(s=l[c].types.includes(i),s)return await l[c].getType(i);return s?void 0:null})(e,t);if(o){const a=new FileReader;a.onload=()=>{r(a.result)},a.onerror=()=>{r("")},a.readAsText(o)}else r("")}catch(o){n(o)}}),dt=async(e,t=h)=>{const r=await V(e,t);if(!r)return null;let n=null;try{n=new DOMParser().parseFromString(r,h)}catch{console.warn("Can't parse html from clipboard.")}return n},C="clipboard-uuid",v="web text/uuid",ft=e=>`<div style="display:none" ${C}="${e}"/>`,Wt=(e,t)=>{let r=null;try{const n=new DOMParser().parseFromString(t,h);n.body.firstElementChild.setAttribute(C,e),r=n.getElementsByTagName("body")[0].innerHTML}catch(n){console.warn("Can't embed uuid.",n)}return r},pt=(e,t)=>{if(!t||!e)return!1;try{const r=t.querySelectorAll(`[${C}="${e}"]`);if(r&&r.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};class wt{constructor(t){if(t?.nativeClipboard===void 0||t?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{t?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=t?.nativeClipboard===!1?null:t?.nativeClipboard;this._disableCheckOnFocus=t?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await B("clipboard-read",async()=>{await N();const t=await V(this._nativeClipboard,v);if(!this._state||t&&t===this._state.uuid)return!0;const r=await dt(this._nativeClipboard,h);return!this._state||(pt(this._state.uuid,r)||this.clear(),!0)},async t=>{t?.message==="denied"||t.message?.includes("Document is not focused")||T()===y.Safari||console.warn("Unable to detect clipboard changes: ",t)})}_init(){const t=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{t._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",t._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",r=>{t._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const t=this;return await B("clipboard-read",async()=>{if(await N(),this._state?.uuid){const r=await V(this._nativeClipboard,v);if(r&&r===t._state.uuid)return!0;const n=await dt(this._nativeClipboard,h);if(pt(t._state?.uuid,n))return!0}return t._state={items:await Tt(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async r=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(t){return this._write({uuid:R(),items:t,ref:null})}async _write(t){if(!this._nativeClipboard)return this._state=t,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const r=this,n=[],o=t.uuid;let a=t.items??[];const i=()=>{r._state={uuid:o,ref:t.ref,items:n},r.dispatchEvent(new Event("clipboardwrite")),r.dispatchEvent(new Event("clipboardchange"))};await B("clipboard-write",async()=>{await N(),o&&a.length===0&&(a.push(new ClipboardItem({[v]:new Blob([o],{type:v})})),a.push(new ClipboardItem({[h]:new Blob([ft(o)],{type:h})})));for(let l=0;l<Math.min(1,a.length);l++){const s=a[l];let c=s.types.indexOf(h),d=null;if(c!==-1){const f=await s.getType(h);d=await W(f),d&&(d=Wt(o,d))}if(!d&&s.types.includes(b)){const f=await s.getType(b);if(f){let p=null;typeof f=="string"?(console.warn("text as string",f),p=f):p=await W(f),p&&(d=`<div ${C}="${o}">${p}</div>`)}}if(!d&&s.types.includes(L)){const f=await s.getType(L),p=_t(await f.arrayBuffer());d=`<div ${C}="${o}"><img src="${Ot+p}"/></div>`}!d&&o&&(d=ft(o));const w=new Blob([d??""],{type:h}),u={};for(let f=0;f<s.types.length;f++){const p=s.types[f];u[p]=f===c?w:s.getType(p)}d&&c===-1&&(u[h]=w),o&&(u[v]=new Blob([o],{type:v})),n.push(new ClipboardItem(u))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async l=>{l&&await l.writeText("")})(this._nativeClipboard)}catch(l){l.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",l)}return i(),!0},async l=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(t){if(!t)return void this.clear();let r=null;const n={};try{const a=await t.toText?.()??null;a&&(n[b]=new Blob([a??""],{type:b}))}catch(a){r=a}try{const a=await t.toHtml?.()??null;a&&(n[h]=new Blob([a],{type:h}))}catch(a){r=a,console.warn("export to html",a)}try{const a=await t.toImage?.()??null;a&&(n[L]=a)}catch(a){r=a,console.warn("export to png",a)}const o=this._write({uuid:R(),ref:t,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(r)throw r;return o}clear(t=!1){this._state&&(this._state=null,t&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(t,r)=>{const n=await this.read();let o=null;for(let i=0;!o&&n&&i<n.length;i++)n[i].types.includes(b)&&(o=await n[i].getType(b));if(!o)return void t("");const a=new FileReader;a.onload=()=>{t(a.result)},a.readAsText(o),a.onerror=i=>{r(i)}})}async writeText(t){const r=[new ClipboardItem({[b]:new Blob([t],{type:b})})];return this._write({uuid:R(),items:r,ref:null})}addEventListener(t,r,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let a=o.get(t);a||(a=new Map,o.set(t,a)),a.set(r,typeof n=="boolean"?{}:n)}dispatchEvent(t){if(!t)return;const r=n=>{const o=n.get(t.type);o&&o.forEach((a,i)=>{try{typeof i=="function"?i(t):i.handleEvent&&i.handleEvent(t),a.once&&o.delete(i)}catch(l){console.warn(l)}})};return r(this._listenersCapture),r(this._listeners),!0}removeEventListener(t,r,n){const o=n?.capture?this._listenersCapture:this._listeners,a=o.get(t);a&&(a.delete(r),a.size===0&&o.delete(t))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}}var z;(z=wt||(wt={})).ErrorMessages=jt,z.Global=new z;let ht=null,q=null,M=null;const Vt=Object.freeze({compileTypescript:async function(e){if(!e?.source)return null;if(q&&xt.deepEqual(q,e))return ht;const t=await async function(){if(M)return M;const{TypeScriptCompiler:n}=await Promise.resolve().then(()=>require("./CitQIsT3Zql2d5Vu.cjs"));return M=new n,M}(),r=await t.compileModule(e);return ht=r,q=e,r}}),Gt=Object.freeze(Object.defineProperty({__proto__:null,ScriptingUtils:Vt},Symbol.toStringTag,{value:"Module"}));exports.$=xt,exports.i=Gt;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.15
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.16
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";var c=Object.create;var n=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var p=(e,r,t,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of s(r))!y.call(e,i)&&i!==t&&n(e,i,{get:()=>r[i],enumerable:!(l=a(r,i))||l.enumerable});return e};var g=(e,r,t)=>(t=e!=null?c(u(e)):{},p(r||!e||!e.__esModule?n(t,"default",{value:e,enumerable:!0}):t,e));/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.15
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.16
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.4.15
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.16
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,9 +1,9 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.15
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.16
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 xe=require("./TAIJH4y6CbXhFnhx.cjs");function gi(e,t){for(var n=e.length,i=0;i<n;++i)if(t(e[i],i))return!0;return!1}function Ro(e,t){for(var n=e.length,i=0;i<n;++i)if(t(e[i],i))return e[i];return null}function Ii(e){var t=e;if(t===void 0){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function $r(e,t){try{return new RegExp(e,"g").exec(t)}catch{return null}}function Kr(e){return e.replace(/_/g,".")}function Hn(e,t){var n=null,i="-1";return gi(e,function(r){var o,a,s,c=$r("("+r.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",t);return!(!c||r.brand||(n=r,i=c[3]||"-1",r.versionAlias?i=r.versionAlias:r.versionTest&&(o=r.versionTest.toLowerCase(),a=t,s=$r("("+o+")((?:\\/|\\s|:)([0-9|\\.|_]+))",a),i=(s?s[3]:"")||i),i=Kr(i),0))}),{preset:n,version:i}}function fr(e,t){var n={brand:"",version:"-1"};return gi(e,function(i){var r=Fo(t,i);return!!r&&(n.brand=i.id,n.version=i.versionAlias||r.version,n.version!=="-1")}),n}function Fo(e,t){return Ro(e,function(n){var i=n.brand;return $r(""+t.test,i.toLowerCase())})}var Ni=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],Yi=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],zr=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],Bo=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],Wi=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function Xi(e){return!!Hn(Bo,e).preset}function Na(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map(function(i){return i.split(" ").map(function(r){return r?""+e+r:""}).join(" ")}).join(" ")}function un(e,t){return function(n){n&&(e[t]=n)}}function Go(e,t,n){return function(i){i&&(e[t][n]=i)}}var vi="undefined",ko=typeof window!==vi,Ya=typeof document!==vi&&document,Wa=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],ee=1e-7,pr={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return t===void 0&&(t=window.innerWidth),e/100*t},vh:function(e,t){return t===void 0&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return t===void 0&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return t===void 0&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function Hi(e,t,n,i){return(e*i+t*n)/(n+i)}function mi(e){return typeof e===vi}function qe(e){return e&&typeof e=="object"}function ye(e){return Array.isArray(e)}function On(e){return typeof e=="string"}function Sr(e){return typeof e=="number"}function zo(e){return typeof e=="function"}function Ao(e,t,n,i,r){return Jr(e,t,n)?n:function(o,a,s,c,u){for(var f,p=function(h){var g=a[h].trim();if(g===o.close&&!Jr(o,a,h))return{value:h};var v=h,m=Be(u,function(y){return y.open===g});if(m&&(v=Ao(m,a,h,c,u)),v===-1)return f=h,"break";f=h=v},l=s;l<c;++l){var d=p(l);if(l=f,typeof d=="object")return d.value;if(d==="break")break}return-1}(e,t,n+1,i,r)}function Jr(e,t,n){if(!e.ignore)return null;var i=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(i)}function bi(e,t){var n=On(t)?{separator:t}:t,i=n.separator,r=i===void 0?",":i,o=n.isSeparateFirst,a=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,c=s===void 0?a:s,u=n.openCloseCharacters,f=u===void 0?Wa:u,p=f.map(function(b){var S=b.open,R=b.close;return S===R?S:S+"|"+R}).join("|"),l=new RegExp("(\\s*"+r+"\\s*|"+p+"|\\s+)","g"),d=e.split(l).filter(function(b){return b&&b!=="undefined"}),h=d.length,g=[],v=[];function m(){return!!v.length&&(g.push(v.join("")),v=[],!0)}for(var y,x=function(b){var S,R,G=d[b].trim(),P=b,D=Be(f,function(F){return F.open===G}),_=Be(f,function(F){return F.close===G});if(D){if((P=Ao(D,d,b,h,f))!==-1&&c)return m()&&o?(y=b,"break"):(g.push(d.slice(b,P+1).join("")),b=P,o?(y=b,"break"):(y=b,"continue"))}else{if(_&&!Jr(_,d,b)){var T=function(){for(var F=0,B=0,O=arguments.length;B<O;B++)F+=arguments[B].length;var I=Array(F),A=0;for(B=0;B<O;B++)for(var W=arguments[B],j=0,N=W.length;j<N;j++,A++)I[A]=W[j];return I}(f);return T.splice(f.indexOf(_),1),{value:bi(e,{separator:r,isSeparateFirst:o,isSeparateOnlyOpenClose:a,isSeparateOpenClose:c,openCloseCharacters:T})}}if(S=G,!(((R=r)!==""&&R!=" "||S!==""&&S!=" ")&&S!==R||a))return m(),o?(y=b,"break"):(y=b,"continue")}P===-1&&(P=h-1),v.push(d.slice(b,P+1).join("")),y=b=P},E=0;E<h;++E){var M=x(E);if(E=y,typeof M=="object")return M.value;if(M==="break")break}return v.length&&g.push(v.join("")),g}function Qn(e){return bi(e,"")}function jn(e){return bi(e,",")}function Rr(e){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!t)return{prefix:"",unit:"",value:NaN};var n=t[1],i=t[2];return{prefix:n,unit:t[3],value:parseFloat(i)}}function Mr(){return Date.now?Date.now():new Date().getTime()}function wn(e,t,n){n===void 0&&(n=-1);for(var i=e.length,r=0;r<i;++r)if(t(e[r],r,e))return r;return n}function Be(e,t,n){var i=wn(e,t);return i>-1?e[i]:n}var ji,Li,qi,Io=(ji=Mr(),(Li=ko&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame))?Li.bind(window):function(e){var t=Mr();return setTimeout(function(){e(t-ji)},1e3/60)}),Xa=(qi=ko&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame))?qi.bind(window):function(e){clearTimeout(e)};function tr(e){return Object.keys(e)}function Se(e,t){var n=Rr(e),i=n.value,r=n.unit;if(qe(t)){var o=t[r];if(o){if(zo(o))return o(i);if(pr[r])return pr[r](i,o)}}else if(r==="%")return i*t/100;return pr[r]?pr[r](i):i}function Qr(e,t,n){return Math.max(t,Math.min(e,n))}function Vi(e,t,n,i){return i===void 0&&(i=e[0]/e[1]),[[kt(t[0],ee),kt(t[0]/i,ee)],[kt(t[1]*i,ee),kt(t[1],ee)]].filter(function(r){return r.every(function(o,a){var s=t[a],c=kt(s,ee);return n?o<=s||o<=c:o>=s||o>=c})})[0]||e}function ti(e){for(var t=e.length,n=0,i=t-1;i>=0;--i)n+=e[i];return t?n/t:0}function Fe(e,t){var n=t[0]-e[0],i=t[1]-e[1],r=Math.atan2(i,n);return r>=0?r:r+2*Math.PI}function Ui(e){var t,n=(t=e,[0,1].map(function(o){return ti(t.map(function(a){return a[o]}))})),i=Fe(n,e[0]),r=Fe(n,e[1]);return i<r&&r-i<Math.PI||i>r&&r-i<-Math.PI?1:-1}function Ln(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function kt(e,t){if(!t)return e;var n=1/t;return Math.round(e/t)/n}function Zi(e,t){return e.forEach(function(n,i){e[i]=kt(e[i],t)}),e}function We(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function No(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function Yo(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function ge(e,t,n,i){e.addEventListener(t,n,i)}function fe(e,t,n,i){e.removeEventListener(t,n,i)}function xi(e){return e?.ownerDocument||Ya}function yi(e){return xi(e).documentElement}function en(e){return xi(e).body}function Qe(e){var t;return((t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView)||window}function Wo(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function Ei(e){return qe(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}function Ha(e,t,n,i,r,o){for(var a=0;a<r;++a){var s=n+a*r,c=i+a*r;e[s]+=e[c]*o,t[s]+=t[c]*o}}function ja(e,t,n,i,r){for(var o=0;o<r;++o){var a=n+o*r,s=i+o*r,c=e[a],u=t[a];e[a]=e[s],e[s]=c,t[a]=t[s],t[s]=u}}function La(e,t,n,i,r){for(var o=0;o<i;++o){var a=n+o*i;e[a]/=r,t[a]/=r}}function cn(e,t){t===void 0&&(t=Math.sqrt(e.length));for(var n=e.slice(),i=Wt(t),r=0;r<t;++r){var o=t*r+r;if(!kt(n[o],ee)){for(var a=r+1;a<t;++a)if(n[t*r+a]){ja(n,i,r,a,t);break}}if(!kt(n[o],ee))return[];for(La(n,i,r,t,n[o]),a=0;a<t;++a){var s=a,c=n[a+r*t];kt(c,ee)&&r!==a&&Ha(n,i,s,r,t,-c)}}return i}function or(e,t){for(var n=e.slice(),i=e.length;i<t-1;++i)n[i]=0;return n[t-1]=1,n}function ln(e,t,n){if(t===void 0&&(t=Math.sqrt(e.length)),t===n)return e;for(var i=Wt(n),r=Math.min(t,n),o=0;o<r-1;++o){for(var a=0;a<r-1;++a)i[o*n+a]=e[o*t+a];i[(o+1)*n-1]=e[(o+1)*t-1],i[(n-1)*n+o]=e[(t-1)*t+o]}return i[n*n-1]=e[t*t-1],i}function wr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Wt(e);return t.forEach(function(r){i=ie(i,r,e)}),i}function ie(e,t,n){n===void 0&&(n=Math.sqrt(e.length));var i=[],r=e.length/n,o=t.length/r;if(!r)return t;if(!o)return e;for(var a=0;a<n;++a)for(var s=0;s<o;++s){i[s*n+a]=0;for(var c=0;c<r;++c)i[s*n+a]+=e[c*n+a]*t[s*r+c]}return i}function Ut(e,t){for(var n=Math.min(e.length,t.length),i=e.slice(),r=0;r<n;++r)i[r]=i[r]+t[r];return i}function ct(e,t){for(var n=Math.min(e.length,t.length),i=e.slice(),r=0;r<n;++r)i[r]=i[r]-t[r];return i}function qa(e,t){return t===void 0&&(t=e.length===6),t?[e[0],e[1],0,e[2],e[3],0,e[4],e[5],1]:e}function Xo(e,t){return t===void 0&&(t=e.length===9),t?[e[0],e[1],e[3],e[4],e[6],e[7]]:e}function ze(e,t,n){n===void 0&&(n=t.length);var i=ie(e,t,n),r=i[n-1];return i.map(function(o){return o/r})}function Va(e,t){return ie(e,[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1],4)}function Ua(e,t){return ie(e,[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1],4)}function Za(e,t){return ie(e,Fr(t,4))}function dr(e,t){var n=t[0],i=n===void 0?1:n,r=t[1],o=r===void 0?1:r,a=t[2];return ie(e,[i,0,0,0,0,o,0,0,0,0,a===void 0?1:a,0,0,0,0,1],4)}function Ar(e,t){var n=t[0],i=n===void 0?0:n,r=t[1],o=r===void 0?0:r,a=t[2];return ie(e,[1,0,0,0,0,1,0,0,0,0,1,0,i,o,a===void 0?0:a,1],4)}function $i(e,t){return ie(e,t,4)}function Fr(e,t){var n=Math.cos(e),i=Math.sin(e),r=Wt(t);return r[0]=n,r[1]=i,r[t]=-i,r[t+1]=n,r}function Wt(e){for(var t=e*e,n=[],i=0;i<t;++i)n[i]=i%(e+1)?0:1;return n}function Ho(e,t){for(var n=Wt(t),i=Math.min(e.length,t-1),r=0;r<i;++r)n[(t+1)*r]=e[r];return n}function fn(e,t){for(var n=Wt(t),i=Math.min(e.length,t-1),r=0;r<i;++r)n[t*(t-1)+r]=e[r];return n}function jo(e,t,n,i,r,o,a,s){var c=e[0],u=e[1],f=t[0],p=t[1],l=n[0],d=n[1],h=i[0],g=i[1],v=r[0],m=r[1],y=o[0],x=o[1],E=a[0],M=a[1],b=s[0],S=s[1],R=cn([c,0,f,0,l,0,h,0,u,0,p,0,d,0,g,0,1,0,1,0,1,0,1,0,0,c,0,f,0,l,0,h,0,u,0,p,0,d,0,g,0,1,0,1,0,1,0,1,-v*c,-m*c,-y*f,-x*f,-E*l,-M*l,-b*h,-S*h,-v*u,-m*u,-y*p,-x*p,-E*d,-M*d,-b*g,-S*g],8);if(!R.length)return[];var G=ie(R,[v,m,y,x,E,M,b,S],8);return G[8]=1,ln(function(P,D){D===void 0&&(D=Math.sqrt(P.length));for(var _=[],T=0;T<D;++T)for(var F=0;F<D;++F)_[F*D+T]=P[D*T+F];return _}(G),3,4)}var qn=function(){return qn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},qn.apply(this,arguments)};function Si(e,t){return t===void 0&&(t=0),gn(Cn(e,t))}function gn(e){var t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach(function(n){var i=n.matrixFunction,r=n.functionValue;i&&(t=i(t,r))}),t}function Cn(e,t){return t===void 0&&(t=0),(ye(e)?e:Qn(e)).map(function(n){var i,r=!(i=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(n))||i.length<4?{}:{prefix:i[1],value:i[2],suffix:i[3]},o=r.prefix,a=r.value,s=null,c=o,u="";if(o==="translate"||o==="translateX"||o==="translate3d"){var f=qe(t)?qn(qn({},t),{"o%":t["%"]}):{"%":t,"o%":t},p=jn(a).map(function(G,P){return f["%"]=P===0&&"x%"in f?t["x%"]:P===1&&"y%"in f?t["y%"]:t["o%"],Se(G,f)}),l=p[0],d=p[1],h=d===void 0?0:d,g=p[2];s=Ar,u=[l,h,g===void 0?0:g]}else if(o==="translateY")s=Ar,u=[0,h=Se(a,qe(t)?qn({"%":t["y%"]},t):{"%":t}),0];else if(o==="translateZ")s=Ar,u=[0,0,parseFloat(a)];else if(o==="scale"||o==="scale3d"){var v=jn(a).map(function(G){return parseFloat(G)}),m=v[0],y=v[1],x=y===void 0?m:y,E=v[2];s=dr,u=[m,x,E===void 0?1:E]}else if(o==="scaleX")s=dr,u=[m=parseFloat(a),1,1];else if(o==="scaleY")s=dr,u=[1,x=parseFloat(a),1];else if(o==="scaleZ")s=dr,u=[1,1,parseFloat(a)];else if(o==="rotate"||o==="rotateZ"||o==="rotateX"||o==="rotateY"){var M=Rr(a),b=M.unit,S=M.value;o==="rotate"||o==="rotateZ"?(c="rotateZ",s=Za):o==="rotateX"?s=Va:o==="rotateY"&&(s=Ua),u=b==="rad"?S:S*Math.PI/180}else if(o==="matrix3d")s=$i,u=jn(a).map(function(G){return parseFloat(G)});else if(o==="matrix"){var R=jn(a).map(function(G){return parseFloat(G)});s=$i,u=[R[0],R[1],0,0,R[2],R[3],0,0,0,0,1,0,R[4],R[5],0,1]}else c="";return{name:o,functionName:c,value:a,matrixFunction:s,functionValue:u}})}var $a=function(){function e(){this.keys=[],this.values=[]}var t=e.prototype;return t.get=function(n){return this.values[this.keys.indexOf(n)]},t.set=function(n,i){var r=this.keys,o=this.values,a=r.indexOf(n),s=a===-1?r.length:a;r[s]=n,o[s]=i},e}(),Ka=function(){function e(){this.object={}}var t=e.prototype;return t.get=function(n){return this.object[n]},t.set=function(n,i){this.object[n]=i},e}(),Ja=typeof Map=="function",Qa=function(){function e(){}var t=e.prototype;return t.connect=function(n,i){this.prev=n,this.next=i,n&&(n.next=this),i&&(i.prev=this)},t.disconnect=function(){var n=this.prev,i=this.next;n&&(n.next=i),i&&(i.prev=n)},t.getIndex=function(){for(var n=this,i=-1;n;)n=n.prev,++i;return i},e}(),ts=function(){function e(n,i,r,o,a,s,c,u){this.prevList=n,this.list=i,this.added=r,this.removed=o,this.changed=a,this.maintained=s,this.changedBeforeAdded=c,this.fixed=u}var t=e.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var n,i,r,o,a=(n=this.changedBeforeAdded,i=this.fixed,r=[],o=[],n.forEach(function(u){var f=u[0],p=u[1],l=new Qa;r[f]=l,o[p]=l}),r.forEach(function(u,f){u.connect(r[f-1])}),n.filter(function(u,f){return!i[f]}).map(function(u,f){var p=u[0],l=u[1];if(p===l)return[0,0];var d=r[p],h=o[l-1],g=d.getIndex();return d.disconnect(),h?d.connect(h,h.next):d.connect(void 0,r[0]),[g,d.getIndex()]})),s=this.changed,c=[];this.cacheOrdered=a.filter(function(u,f){var p=u[0],l=u[1],d=s[f],h=d[0],g=d[1];if(p!==l)return c.push([h,g]),!0}),this.cachePureChanged=c},e}();function Lo(e,t,n){var i=Ja?Map:n?Ka:$a,r=n||function(y){return y},o=[],a=[],s=[],c=e.map(r),u=t.map(r),f=new i,p=new i,l=[],d=[],h={},g=[],v=0,m=0;return c.forEach(function(y,x){f.set(y,x)}),u.forEach(function(y,x){p.set(y,x)}),c.forEach(function(y,x){var E=p.get(y);E===void 0?(++m,a.push(x)):h[E]=m}),u.forEach(function(y,x){var E=f.get(y);E===void 0?(o.push(x),++v):(s.push([E,x]),m=h[x]||0,l.push([E-m,x-v]),d.push(x===E),E!==x&&g.push([E,x]))}),a.reverse(),new ts(e,t,o,a,g,s,l,d)}var Ki,es=function(){function e(t,n){t===void 0&&(t=[]),this.findKeyCallback=n,this.list=[].slice.call(t)}return e.prototype.update=function(t){var n=[].slice.call(t),i=Lo(this.list,n,this.findKeyCallback);return this.list=n,i},e}(),qo=function(e,t){return(qo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])})(e,t)},ns=typeof Map=="function"?void 0:(Ki=0,function(e){return e.__DIFF_KEY__||(e.__DIFF_KEY__=++Ki)}),Vo=function(e){function t(n){return n===void 0&&(n=[]),e.call(this,n,ns)||this}return function(n,i){function r(){this.constructor=n}qo(n,i),n.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}(t,e),t}(es),ei=function(){return ei=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ei.apply(this,arguments)},Uo=function(){function e(){this._events={}}var t=e.prototype;return t.on=function(n,i){if(qe(n))for(var r in n)this.on(r,n[r]);else this._addEvent(n,i,{});return this},t.off=function(n,i){if(n)if(qe(n))for(var r in n)this.off(r);else if(i){var o=this._events[n];if(o){var a=wn(o,function(s){return s.listener===i});a>-1&&o.splice(a,1)}}else this._events[n]=[];else this._events={};return this},t.once=function(n,i){var r=this;return i&&this._addEvent(n,i,{once:!0}),new Promise(function(o){r._addEvent(n,o,{once:!0})})},t.emit=function(n,i){var r=this;i===void 0&&(i={});var o=this._events[n];if(!n||!o)return!0;var a=!1;return i.eventType=n,i.stop=function(){a=!0},i.currentTarget=this,function(){for(var s=0,c=0,u=arguments.length;c<u;c++)s+=arguments[c].length;var f=Array(s),p=0;for(c=0;c<u;c++)for(var l=arguments[c],d=0,h=l.length;d<h;d++,p++)f[p]=l[d];return f}(o).forEach(function(s){s.listener(i),s.once&&r.off(n,s.listener)}),!a},t.trigger=function(n,i){return i===void 0&&(i={}),this.emit(n,i)},t._addEvent=function(n,i,r){var o=this._events;o[n]=o[n]||[],o[n].push(ei({listener:i},r))},e}();function Ee(e){return kt(e,ee)}function Ji(e){return e.length<3?0:Math.abs(function(t){for(var n=0,i=t.length-1;i>=0;--i)n+=t[i];return n}(e.map(function(t,n){var i=e[n+1]||e[0];return t[0]*i[1]-i[0]*t[1]})))/2}function Qi(e,t){var n=t.width,i=t.height,r=t.left,o=t.top,a=yn(e),s=a.minX,c=a.minY,u=a.maxX,f=a.maxY,p=n/(u-s),l=i/(f-c);return e.map(function(d){return[r+(d[0]-s)*p,o+(d[1]-c)*l]})}function yn(e){var t=e.map(function(i){return i[0]}),n=e.map(function(i){return i[1]});return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,n),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,n)}}function Ir(e,t,n){var i=e[0],r=e[1],o=yn(t),a=o.minX,s=o.maxX,c=[[a,r],[s,r]],u=Cr(c[0],c[1]),f=ni(t),p=[];if(f.forEach(function(h){var g,v=Cr(h[0],h[1]),m=h[0];g=v,u.every(function(y,x){return Ee(y-g[x])===0})?p.push({pos:e,line:h,type:"line"}):Zo(Di(u,v),[c,h]).forEach(function(y){h.some(function(x){return M=y,!Ee((E=x)[0]-M[0])&&!Ee(E[1]-M[1]);var E,M})?p.push({pos:y,line:h,type:"point"}):Ee(m[1]-r)!==0&&p.push({pos:y,line:h,type:"intersection"})})}),Be(p,function(h){return h[0]===i}))return!0;var l=0,d={};return p.forEach(function(h){var g=h.pos,v=h.type,m=h.line;if(!(g[0]>i))if(v==="intersection")++l;else{if(v==="line")return;if(v==="point"){var y=Be(m,function(M){return M[1]!==r}),x=d[g[0]],E=y[1]>r?1:-1;x?x!==E&&++l:d[g[0]]=E}}}),l%2==1}function Cr(e,t){var n=e[0],i=e[1],r=t[0]-n,o=t[1]-i;Math.abs(r)<ee&&(r=0),Math.abs(o)<ee&&(o=0);var a=0,s=0,c=0;return r?o?(s=1,c=-(a=-o/r)*n-i):(s=1,c=-i):o&&(a=-1,c=n),[a,s,c]}function Di(e,t){var n=e[0],i=e[1],r=e[2],o=t[0],a=t[1],s=t[2],c=n===0&&o===0,u=i===0&&a===0,f=[];if(c&&u)return[];if(c){var p=-r/i;return p!==-s/a?[]:[[-1/0,p],[1/0,p]]}if(u){var l=-r/n;return l!==-s/o?[]:[[l,-1/0],[l,1/0]]}if(n===0)f=[[d=-(a*(h=-r/i)+s)/o,h]];else if(o===0)f=[[d=-(i*(h=-s/a)+r)/n,h]];else if(i===0)f=[[d=-r/n,h=-(o*d+s)/a]];else if(a===0)f=[[d=-s/o,h=-(n*d+r)/i]];else{var d,h;f=[[d=(i*s-a*r)/(a*n-i*o),h=-(n*d+r)/i]]}return f.map(function(g){return[g[0],g[1]]})}function Zo(e,t){var n=t.map(function(p){return[0,1].map(function(l){return[Math.min(p[0][l],p[1][l]),Math.max(p[0][l],p[1][l])]})}),i=[];if(e.length===2){var r=e[0],o=r[0],a=r[1];if(Ee(o-e[1][0])){if(!Ee(a-e[1][1])){var s=Math.max.apply(Math,n.map(function(p){return p[0][0]})),c=Math.min.apply(Math,n.map(function(p){return p[0][1]}));if(Ee(s-c)>0)return[];i=[[s,a],[c,a]]}}else{var u=Math.max.apply(Math,n.map(function(p){return p[1][0]})),f=Math.min.apply(Math,n.map(function(p){return p[1][1]}));if(Ee(u-f)>0)return[];i=[[o,u],[o,f]]}}return i.length||(i=e.filter(function(p){var l=p[0],d=p[1];return n.every(function(h){return 0<=Ee(l-h[0][0])&&0<=Ee(h[0][1]-l)&&0<=Ee(d-h[1][0])&&0<=Ee(h[1][1]-d)})})),i.map(function(p){return[Ee(p[0]),Ee(p[1])]})}function ni(e){return function(){for(var t=0,n=0,i=arguments.length;n<i;n++)t+=arguments[n].length;var r=Array(t),o=0;for(n=0;n<i;n++)for(var a=arguments[n],s=0,c=a.length;s<c;s++,o++)r[o]=a[s];return r}(e.slice(1),[e[0]]).map(function(t,n){return[e[n],t]})}var $o=function(e,t){return($o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])})(e,t)},te=function(){return te=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},te.apply(this,arguments)};function Nr(e){return 180*(t=[e[0].clientX,e[0].clientY],i=(n=[e[1].clientX,e[1].clientY])[0]-t[0],r=n[1]-t[1],((o=Math.atan2(r,i))>=0?o:o+2*Math.PI)/Math.PI);var t,n,i,r,o}function hr(e){return e?e.touches?function(t){for(var n=Math.min(t.length,2),i=[],r=0;r<n;++r)i.push(eo(t[r]));return i}(e.touches):[eo(e)]:[]}function to(e,t,n){var i=n.length,r=Vn(e,i),o=r.clientX,a=r.clientY,s=r.originalClientX,c=r.originalClientY,u=Vn(t,i),f=u.clientX,p=u.clientY,l=Vn(n,i);return{clientX:s,clientY:c,deltaX:o-f,deltaY:a-p,distX:o-l.clientX,distY:a-l.clientY}}function Yr(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function eo(e){return{clientX:e.clientX,clientY:e.clientY}}function Vn(e,t){t===void 0&&(t=e.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},i=Math.min(e.length,t),r=0;r<i;++r){var o=e[r];n.originalClientX+="originalClientX"in o?o.originalClientX:o.clientX,n.originalClientY+="originalClientY"in o?o.originalClientY:o.clientY,n.clientX+=o.clientX,n.clientY+=o.clientY}return t?{clientX:n.clientX/t,clientY:n.clientY/t,originalClientX:n.originalClientX/t,originalClientY:n.originalClientY/t}:n}var Wr=function(){function e(t){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=t,this.prevClients=t,this.length=t.length}return e.prototype.getAngle=function(t){return t===void 0&&(t=this.prevClients),Nr(t)},e.prototype.getRotation=function(t){return t===void 0&&(t=this.prevClients),Nr(t)-Nr(this.startClients)},e.prototype.getPosition=function(t,n){t===void 0&&(t=this.prevClients);var i=to(t||this.prevClients,this.prevClients,this.startClients),r=i.deltaX,o=i.deltaY;return this.movement+=Math.sqrt(r*r+o*o),this.prevClients=t,i},e.prototype.getPositions=function(t){t===void 0&&(t=this.prevClients);for(var n=this.prevClients,i=this.startClients,r=Math.min(this.length,n.length),o=[],a=0;a<r;++a)o[a]=to([t[a]],[n[a]],[i[a]]);return o},e.prototype.getMovement=function(t){var n=this.movement;if(!t)return n;var i=Vn(t,this.length),r=Vn(this.prevClients,this.length),o=i.clientX-r.clientX,a=i.clientY-r.clientY;return Math.sqrt(o*o+a*a)+n},e.prototype.getDistance=function(t){return t===void 0&&(t=this.prevClients),Yr(t)},e.prototype.getScale=function(t){return t===void 0&&(t=this.prevClients),Yr(t)/Yr(this.startClients)},e.prototype.move=function(t,n){this.startClients.forEach(function(i){i.clientX-=t,i.clientY-=n}),this.prevClients.forEach(function(i){i.clientX-=t,i.clientY-=n})},e}(),no=["textarea","input"],rs=function(e){function t(n,i){i===void 0&&(i={});var r=e.call(this)||this;r.options={},r.flag=!1,r.pinchFlag=!1,r.data={},r.isDrag=!1,r.isPinch=!1,r.clientStores=[],r.targets=[],r.prevTime=0,r.doubleFlag=!1,r._useMouse=!1,r._useTouch=!1,r._useDrag=!1,r._dragFlag=!1,r._isTrusted=!1,r._isMouseEvent=!1,r._isSecondaryButton=!1,r._preventMouseEvent=!1,r._prevInputEvent=null,r._isDragAPI=!1,r._isIdle=!0,r._preventMouseEventId=0,r._window=window,r.onDragStart=function(l,d){if(d===void 0&&(d=!0),r.flag||l.cancelable!==!1){var h=l.type.indexOf("drag")>=-1;if(!r.flag||!h){r._isDragAPI=!0;var g=r.options,v=g.container,m=g.pinchOutside,y=g.preventWheelClick,x=g.preventRightClick,E=g.preventDefault,M=g.checkInput,b=g.dragFocusedInput,S=g.preventClickEventOnDragStart,R=g.preventClickEventOnDrag,G=g.preventClickEventByCondition,P=r._useTouch,D=!r.flag;if(r._isSecondaryButton=l.which===3||l.button===2,y&&(l.which===2||l.button===1)||x&&(l.which===3||l.button===2))return r.stop(),!1;if(D){var _=r._window.document.activeElement,T=l.target;if(T){var F=T.tagName.toLowerCase(),B=no.indexOf(F)>-1,O=T.isContentEditable;if(B||O){if(M||!b&&_===T)return!1;if(_&&(_===T||O&&_.isContentEditable&&_.contains(T))){if(!b)return!1;T.blur()}}else if((E||l.type==="touchstart")&&_){var I=_.tagName.toLowerCase();(_.isContentEditable||no.indexOf(I)>-1)&&_.blur()}(S||R||G)&&ge(r._window,"click",r._onClick,!0)}r.clientStores=[new Wr(hr(l))],r._isIdle=!1,r.flag=!0,r.isDrag=!1,r._isTrusted=d,r._dragFlag=!0,r._prevInputEvent=l,r.data={},r.doubleFlag=Mr()-r.prevTime<200,r._isMouseEvent=(j=l)&&(j.type.indexOf("mouse")>-1||"button"in j),!r._isMouseEvent&&r._preventMouseEvent&&r._allowMouseEvent(),(r._preventMouseEvent||r.emit("dragStart",te(te({data:r.data,datas:r.data,inputEvent:l,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,isTrusted:d,isDouble:r.doubleFlag},r.getCurrentStore().getPosition()),{preventDefault:function(){l.preventDefault()},preventDrag:function(){r._dragFlag=!1}})))===!1&&r.stop(),r._isMouseEvent&&r.flag&&E&&l.preventDefault()}if(!r.flag)return!1;var A=0;if(D?(r._attchDragEvent(),P&&m&&(A=setTimeout(function(){ge(v,"touchstart",r.onDragStart,{passive:!1})}))):P&&m&&fe(v,"touchstart",r.onDragStart),r.flag&&(W=l).touches&&W.touches.length>=2){if(clearTimeout(A),D&&l.touches.length!==l.changedTouches.length)return;r.pinchFlag||r.onPinchStart(l)}}}var W,j},r.onDrag=function(l,d){if(r.flag){var h=r.options.preventDefault;!r._isMouseEvent&&h&&l.preventDefault(),r._prevInputEvent=l;var g=hr(l),v=r.moveClients(g,l,!1);if(r._dragFlag){if((r.pinchFlag||v.deltaX||v.deltaY)&&(r._preventMouseEvent||r.emit("drag",te(te({},v),{isScroll:!!d,inputEvent:l})))===!1)return void r.stop();r.pinchFlag&&r.onPinch(l,g)}r.getCurrentStore().getPosition(g,!0)}},r.onDragEnd=function(l){if(r.flag){var d=r.options,h=d.pinchOutside,g=d.container,v=d.preventClickEventOnDrag,m=d.preventClickEventOnDragStart,y=d.preventClickEventByCondition,x=r.isDrag;(v||m||y)&&requestAnimationFrame(function(){r._allowClickEvent()}),y||m||!v||x||r._allowClickEvent(),r._useTouch&&h&&fe(g,"touchstart",r.onDragStart),r.pinchFlag&&r.onPinchEnd(l);var E=l?.touches?hr(l):[];E.length!==0&&r.options.keepDragging?r._addStore(new Wr(E)):r.flag=!1;var M=r._getPosition(),b=Mr(),S=!x&&r.doubleFlag;r._prevInputEvent=null,r.prevTime=x||S?0:b,r.flag||(r._dettachDragEvent(),r._preventMouseEvent||r.emit("dragEnd",te({data:r.data,datas:r.data,isDouble:S,isDrag:x,isClick:!x,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,inputEvent:l,isTrusted:r._isTrusted},M)),r.clientStores=[],r._isMouseEvent||(r._preventMouseEvent=!0,clearTimeout(r._preventMouseEventId),r._preventMouseEventId=setTimeout(function(){r._preventMouseEvent=!1},200)),r._isIdle=!0)}},r.onBlur=function(){r.onDragEnd()},r._allowClickEvent=function(){fe(r._window,"click",r._onClick,!0)},r._onClick=function(l){r._allowClickEvent(),r._allowMouseEvent();var d=r.options.preventClickEventByCondition;d?.(l)||(l.stopPropagation(),l.preventDefault())},r._onContextMenu=function(l){r.options.preventRightClick?r.onDragEnd(l):l.preventDefault()},r._passCallback=function(){};var o=[].concat(n),a=o[0];r._window=Wo(a)?a:Qe(a),r.options=te({checkInput:!1,container:a&&!("document"in a)?Qe(a):a,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},i);var s=r.options,c=s.container,u=s.events,f=s.checkWindowBlur;if(r._useDrag=u.indexOf("drag")>-1,r._useTouch=u.indexOf("touch")>-1,r._useMouse=u.indexOf("mouse")>-1,r.targets=o,r._useDrag&&o.forEach(function(l){ge(l,"dragstart",r.onDragStart)}),r._useMouse&&(o.forEach(function(l){ge(l,"mousedown",r.onDragStart),ge(l,"mousemove",r._passCallback)}),ge(c,"contextmenu",r._onContextMenu)),f&&ge(Qe(),"blur",r.onBlur),r._useTouch){var p={passive:!1};o.forEach(function(l){ge(l,"touchstart",r.onDragStart,p),ge(l,"touchmove",r._passCallback,p)})}return r}return function(n,i){function r(){this.constructor=n}$o(n,i),n.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}(t,e),t.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},t.prototype.getMovement=function(n){return this.getCurrentStore().getMovement(n)+this.clientStores.slice(1).reduce(function(i,r){return i+r.movement},0)},t.prototype.isDragging=function(){return this.isDrag},t.prototype.isIdle=function(){return this._isIdle},t.prototype.isFlag=function(){return this.flag},t.prototype.isPinchFlag=function(){return this.pinchFlag},t.prototype.isDoubleFlag=function(){return this.doubleFlag},t.prototype.isPinching=function(){return this.isPinch},t.prototype.scrollBy=function(n,i,r,o){o===void 0&&(o=!0),this.flag&&(this.clientStores[0].move(n,i),o&&this.onDrag(r,!0))},t.prototype.move=function(n,i){var r=n[0],o=n[1],a=this.getCurrentStore().prevClients;return this.moveClients(a.map(function(s){var c=s.clientX,u=s.clientY;return{clientX:c+r,clientY:u+o,originalClientX:c,originalClientY:u}}),i,!0)},t.prototype.triggerDragStart=function(n){this.onDragStart(n,!1)},t.prototype.setEventData=function(n){var i=this.data;for(var r in n)i[r]=n[r];return this},t.prototype.setEventDatas=function(n){return this.setEventData(n)},t.prototype.getCurrentEvent=function(n){return n===void 0&&(n=this._prevInputEvent),te(te({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:n})},t.prototype.getEventData=function(){return this.data},t.prototype.getEventDatas=function(){return this.data},t.prototype.unset=function(){var n=this,i=this.targets,r=this.options.container;this.off(),fe(this._window,"blur",this.onBlur),this._useDrag&&i.forEach(function(o){fe(o,"dragstart",n.onDragStart)}),this._useMouse&&(i.forEach(function(o){fe(o,"mousedown",n.onDragStart)}),fe(r,"contextmenu",this._onContextMenu)),this._useTouch&&(i.forEach(function(o){fe(o,"touchstart",n.onDragStart)}),fe(r,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(n){var i=this,r=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>r)){var o=new Wr(hr(n));this.pinchFlag=!0,this._addStore(o),this.emit("pinchStart",te(te({data:this.data,datas:this.data,angle:o.getAngle(),touches:this.getCurrentStore().getPositions()},o.getPosition()),{inputEvent:n,isTrusted:this._isTrusted,preventDefault:function(){n.preventDefault()},preventDrag:function(){i._dragFlag=!1}}))===!1&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(n,i){if(this.flag&&this.pinchFlag&&!(i.length<2)){var r=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",te(te({data:this.data,datas:this.data,movement:this.getMovement(i),angle:r.getAngle(i),rotation:r.getRotation(i),touches:r.getPositions(i),scale:r.getScale(i),distance:r.getDistance(i)},r.getPosition(i)),{inputEvent:n,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(n){if(this.pinchFlag){var i=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var r=this.getCurrentStore();this.emit("pinchEnd",te(te({data:this.data,datas:this.data,isPinch:i,touches:r.getPositions()},r.getPosition()),{inputEvent:n}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(n,i,r){var o=this._getPosition(n,r),a=this.isDrag;(o.deltaX||o.deltaY)&&(this.isDrag=!0);var s=!1;return!a&&this.isDrag&&(s=!0),te(te({data:this.data,datas:this.data},o),{movement:this.getMovement(n),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:i,isTrusted:this._isTrusted,isFirstDrag:s})},t.prototype._addStore=function(n){this.clientStores.splice(0,0,n)},t.prototype._getPosition=function(n,i){var r=this.getCurrentStore().getPosition(n,i),o=this.clientStores.slice(1).reduce(function(c,u){var f=u.getPosition();return c.distX+=f.distX,c.distY+=f.distY,c},r),a=o.distX,s=o.distY;return te(te({},r),{distX:a,distY:s})},t.prototype._attchDragEvent=function(){var n=this._window,i=this.options.container,r={passive:!1};this._isDragAPI&&(ge(i,"dragover",this.onDrag,r),ge(n,"dragend",this.onDragEnd)),this._useMouse&&(ge(i,"mousemove",this.onDrag),ge(n,"mouseup",this.onDragEnd)),this._useTouch&&(ge(i,"touchmove",this.onDrag,r),ge(n,"touchend",this.onDragEnd,r),ge(n,"touchcancel",this.onDragEnd,r))},t.prototype._dettachDragEvent=function(){var n=this._window,i=this.options.container;this._isDragAPI&&(fe(i,"dragover",this.onDrag),fe(n,"dragend",this.onDragEnd)),this._useMouse&&(fe(i,"mousemove",this.onDrag),fe(n,"mouseup",this.onDragEnd)),this._useTouch&&(fe(i,"touchstart",this.onDragStart),fe(i,"touchmove",this.onDrag),fe(n,"touchend",this.onDragEnd),fe(n,"touchcancel",this.onDragEnd))},t.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},t}(Uo),ri=function(){return ri=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ri.apply(this,arguments)};function Ko(e,t){var n=function(r){var o="rCS"+function(a){for(var s=5381,c=a.length;c;)s=33*s^a.charCodeAt(--c);return s>>>0}(r).toString(36);return{className:o,inject:function(a,s){s===void 0&&(s={});var c,u,f,p,l,d,h,g,v=function(x){if(x&&x.getRootNode){var E=x.getRootNode();if(E.nodeType===11)return E}}(a),m=(v||a.ownerDocument||document).querySelector('style[data-styled-id="'.concat(o,'"]'));if(m){var y=parseFloat(m.getAttribute("data-styled-count"))||0;m.setAttribute("data-styled-count","".concat(y+1))}else c=o,u=r,f=s,p=v,(g=(h=xi(a)).createElement("style")).setAttribute("type","text/css"),g.setAttribute("data-styled-id",c),g.setAttribute("data-styled-count","1"),f.nonce&&g.setAttribute("nonce",f.nonce),g.innerHTML=(l=c,d=u,f.original?d:d.replace(/([^};{\s}][^};{]*|^\s*){/gm,function(x,E){var M=E.trim();return(M?jn(M):[""]).map(function(b){var S=b.trim();return S.indexOf("@")===0?S:S.indexOf(":global")>-1?S.replace(/\:global/g,""):S.indexOf(":host")>-1?"".concat(S.replace(/\:host/g,".".concat(l))):S?".".concat(l," ").concat(S):".".concat(l)}).join(", ")+" {"})),(p||h.head||h.body).appendChild(g),m=g;return{destroy:function(){var x,E=parseFloat(m.getAttribute("data-styled-count"))||0;E<=1?(m.remove?m.remove():(x=m.parentNode)===null||x===void 0||x.removeChild(m),m=null):m.setAttribute("data-styled-count","".concat(E-1))}}}}}(t),i=n.className;return xe.reactExports.forwardRef(function(r,o){var a=r.className,s=a===void 0?"":a;r.cspNonce;var c=function(f,p){var l={};for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&p.indexOf(d)<0&&(l[d]=f[d]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function"){var h=0;for(d=Object.getOwnPropertySymbols(f);h<d.length;h++)p.indexOf(d[h])<0&&Object.prototype.propertyIsEnumerable.call(f,d[h])&&(l[d[h]]=f[d[h]])}return l}(r,["className","cspNonce"]),u=xe.reactExports.useRef();return xe.reactExports.useImperativeHandle(o,function(){return u.current},[]),xe.reactExports.useEffect(function(){var f=n.inject(u.current,{nonce:r.cspNonce});return function(){f.destroy()}},[]),xe.reactExports.createElement(e,ri({ref:u,"data-styled-id":i,className:"".concat(s," ").concat(i)},c))})}var Jo=function(e,t){return(Jo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])})(e,t)};function ar(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Jo(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var w=function(){return w=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},w.apply(this,arguments)};function C(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function L(e,t,n){if(arguments.length===2)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function er(e,t){return w({events:[],props:[],name:e},t)}var ro,io,is=["n","w","s","e"],Mi=["n","w","s","e","nw","ne","sw","se"],Pn=function(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;var e=navigator.userAgentData,t=e.brands||e.uaList;return!(!t||!t.length)}()?function(){var e=navigator.userAgentData,t=(e.uaList||e.brands).slice(),n=e.mobile||!1,i=t[0],r=(e.platform||navigator.platform).toLowerCase(),o={name:i.brand,version:i.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!fr(Bo,t).brand||Xi(Ii())},a={name:"unknown",version:"-1",majorVersion:-1};o.webkit=!o.chromium&&gi(zr,function(p){return Fo(t,p)});var s=fr(Yi,t);if(o.chromium=!!s.brand,o.chromiumVersion=s.version||"-1",!o.chromium){var c=fr(zr,t);o.webkit=!!c.brand,o.webkitVersion=c.version||"-1"}var u=Ro(Wi,function(p){return new RegExp(""+p.test,"g").exec(r)});a.name=u?u.id:"";var f=fr(Ni,t);return o.name=f.brand||o.name,o.version=(f.brand,f.version),o.webkit&&(a.name=n?"ios":"mac"),a.name==="ios"&&o.webview&&(o.version="-1"),a.version=Kr(a.version),o.version=Kr(o.version),a.majorVersion=parseInt(a.version,10),o.majorVersion=parseInt(o.version,10),{browser:o,os:a,isMobile:n,isHints:!0}}():function(){var e=Ii(void 0),t=!!/mobi/g.exec(e),n={name:"unknown",version:"-1",majorVersion:-1,webview:Xi(e),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},i={name:"unknown",version:"-1",majorVersion:-1},r=Hn(Ni,e),o=r.preset,a=r.version,s=Hn(Wi,e),c=s.preset,u=s.version,f=Hn(Yi,e);if(n.chromium=!!f.preset,n.chromiumVersion=f.version,!n.chromium){var p=Hn(zr,e);n.webkit=!!p.preset,n.webkitVersion=p.version}return c&&(i.name=c.id,i.version=u,i.majorVersion=parseInt(u,10)),o&&(n.name=o.id,n.version=a,n.webview&&i.name==="ios"&&n.name!=="safari"&&(n.webview=!1)),n.majorVersion=parseInt(n.version,10),{browser:n,os:i,isMobile:t,isHints:!1}}(),Qo=Pn.browser.webkit,ta=Qo&&(ro=typeof window>"u"?{userAgent:""}:window.navigator,!!(io=/applewebkit\/([^\s]+)/g.exec(ro.userAgent.toLowerCase()))&&parseFloat(io[1])<605),ea=Pn.browser.name,na=parseInt(Pn.browser.version,10),os=ea==="chrome",as=Pn.browser.chromium,ss=parseInt(Pn.browser.chromiumVersion,10)||0,us=os&&na>=109||as&&ss>=109,cs=ea==="firefox",ls=parseInt(Pn.browser.webkitVersion,10)>=612||na>=15,wi="moveable-",fs=Mi.map(function(e){var t="",n="",i="center",r="center",o="calc(var(--moveable-control-padding, 20) * -1px)";return e.indexOf("n")>-1&&(t="top: ".concat(o,";"),r="bottom"),e.indexOf("s")>-1&&(t="top: 0px;",r="top"),e.indexOf("w")>-1&&(n="left: ".concat(o,";"),i="right"),e.indexOf("e")>-1&&(n="left: 0px;",i="left"),'.around-control[data-direction*="'.concat(e,`"] {
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const xe=require("./BbEY710KwFxGt-nx.cjs");function gi(e,t){for(var n=e.length,i=0;i<n;++i)if(t(e[i],i))return!0;return!1}function Ro(e,t){for(var n=e.length,i=0;i<n;++i)if(t(e[i],i))return e[i];return null}function Ii(e){var t=e;if(t===void 0){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function $r(e,t){try{return new RegExp(e,"g").exec(t)}catch{return null}}function Kr(e){return e.replace(/_/g,".")}function Hn(e,t){var n=null,i="-1";return gi(e,function(r){var o,a,s,c=$r("("+r.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",t);return!(!c||r.brand||(n=r,i=c[3]||"-1",r.versionAlias?i=r.versionAlias:r.versionTest&&(o=r.versionTest.toLowerCase(),a=t,s=$r("("+o+")((?:\\/|\\s|:)([0-9|\\.|_]+))",a),i=(s?s[3]:"")||i),i=Kr(i),0))}),{preset:n,version:i}}function fr(e,t){var n={brand:"",version:"-1"};return gi(e,function(i){var r=Fo(t,i);return!!r&&(n.brand=i.id,n.version=i.versionAlias||r.version,n.version!=="-1")}),n}function Fo(e,t){return Ro(e,function(n){var i=n.brand;return $r(""+t.test,i.toLowerCase())})}var Ni=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],Yi=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],zr=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],Bo=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],Wi=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function Xi(e){return!!Hn(Bo,e).preset}function Na(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map(function(i){return i.split(" ").map(function(r){return r?""+e+r:""}).join(" ")}).join(" ")}function un(e,t){return function(n){n&&(e[t]=n)}}function Go(e,t,n){return function(i){i&&(e[t][n]=i)}}var vi="undefined",ko=typeof window!==vi,Ya=typeof document!==vi&&document,Wa=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],ee=1e-7,pr={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return t===void 0&&(t=window.innerWidth),e/100*t},vh:function(e,t){return t===void 0&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return t===void 0&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return t===void 0&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function Hi(e,t,n,i){return(e*i+t*n)/(n+i)}function mi(e){return typeof e===vi}function qe(e){return e&&typeof e=="object"}function ye(e){return Array.isArray(e)}function On(e){return typeof e=="string"}function Sr(e){return typeof e=="number"}function zo(e){return typeof e=="function"}function Ao(e,t,n,i,r){return Jr(e,t,n)?n:function(o,a,s,c,u){for(var f,p=function(h){var g=a[h].trim();if(g===o.close&&!Jr(o,a,h))return{value:h};var v=h,m=Be(u,function(y){return y.open===g});if(m&&(v=Ao(m,a,h,c,u)),v===-1)return f=h,"break";f=h=v},l=s;l<c;++l){var d=p(l);if(l=f,typeof d=="object")return d.value;if(d==="break")break}return-1}(e,t,n+1,i,r)}function Jr(e,t,n){if(!e.ignore)return null;var i=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(i)}function bi(e,t){var n=On(t)?{separator:t}:t,i=n.separator,r=i===void 0?",":i,o=n.isSeparateFirst,a=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,c=s===void 0?a:s,u=n.openCloseCharacters,f=u===void 0?Wa:u,p=f.map(function(b){var S=b.open,R=b.close;return S===R?S:S+"|"+R}).join("|"),l=new RegExp("(\\s*"+r+"\\s*|"+p+"|\\s+)","g"),d=e.split(l).filter(function(b){return b&&b!=="undefined"}),h=d.length,g=[],v=[];function m(){return!!v.length&&(g.push(v.join("")),v=[],!0)}for(var y,x=function(b){var S,R,G=d[b].trim(),P=b,D=Be(f,function(F){return F.open===G}),_=Be(f,function(F){return F.close===G});if(D){if((P=Ao(D,d,b,h,f))!==-1&&c)return m()&&o?(y=b,"break"):(g.push(d.slice(b,P+1).join("")),b=P,o?(y=b,"break"):(y=b,"continue"))}else{if(_&&!Jr(_,d,b)){var T=function(){for(var F=0,B=0,O=arguments.length;B<O;B++)F+=arguments[B].length;var I=Array(F),A=0;for(B=0;B<O;B++)for(var W=arguments[B],j=0,N=W.length;j<N;j++,A++)I[A]=W[j];return I}(f);return T.splice(f.indexOf(_),1),{value:bi(e,{separator:r,isSeparateFirst:o,isSeparateOnlyOpenClose:a,isSeparateOpenClose:c,openCloseCharacters:T})}}if(S=G,!(((R=r)!==""&&R!=" "||S!==""&&S!=" ")&&S!==R||a))return m(),o?(y=b,"break"):(y=b,"continue")}P===-1&&(P=h-1),v.push(d.slice(b,P+1).join("")),y=b=P},E=0;E<h;++E){var M=x(E);if(E=y,typeof M=="object")return M.value;if(M==="break")break}return v.length&&g.push(v.join("")),g}function Qn(e){return bi(e,"")}function jn(e){return bi(e,",")}function Rr(e){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!t)return{prefix:"",unit:"",value:NaN};var n=t[1],i=t[2];return{prefix:n,unit:t[3],value:parseFloat(i)}}function Mr(){return Date.now?Date.now():new Date().getTime()}function wn(e,t,n){n===void 0&&(n=-1);for(var i=e.length,r=0;r<i;++r)if(t(e[r],r,e))return r;return n}function Be(e,t,n){var i=wn(e,t);return i>-1?e[i]:n}var ji,Li,qi,Io=(ji=Mr(),(Li=ko&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame))?Li.bind(window):function(e){var t=Mr();return setTimeout(function(){e(t-ji)},1e3/60)}),Xa=(qi=ko&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame))?qi.bind(window):function(e){clearTimeout(e)};function tr(e){return Object.keys(e)}function Se(e,t){var n=Rr(e),i=n.value,r=n.unit;if(qe(t)){var o=t[r];if(o){if(zo(o))return o(i);if(pr[r])return pr[r](i,o)}}else if(r==="%")return i*t/100;return pr[r]?pr[r](i):i}function Qr(e,t,n){return Math.max(t,Math.min(e,n))}function Vi(e,t,n,i){return i===void 0&&(i=e[0]/e[1]),[[kt(t[0],ee),kt(t[0]/i,ee)],[kt(t[1]*i,ee),kt(t[1],ee)]].filter(function(r){return r.every(function(o,a){var s=t[a],c=kt(s,ee);return n?o<=s||o<=c:o>=s||o>=c})})[0]||e}function ti(e){for(var t=e.length,n=0,i=t-1;i>=0;--i)n+=e[i];return t?n/t:0}function Fe(e,t){var n=t[0]-e[0],i=t[1]-e[1],r=Math.atan2(i,n);return r>=0?r:r+2*Math.PI}function Ui(e){var t,n=(t=e,[0,1].map(function(o){return ti(t.map(function(a){return a[o]}))})),i=Fe(n,e[0]),r=Fe(n,e[1]);return i<r&&r-i<Math.PI||i>r&&r-i<-Math.PI?1:-1}function Ln(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function kt(e,t){if(!t)return e;var n=1/t;return Math.round(e/t)/n}function Zi(e,t){return e.forEach(function(n,i){e[i]=kt(e[i],t)}),e}function We(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function No(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function Yo(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function ge(e,t,n,i){e.addEventListener(t,n,i)}function fe(e,t,n,i){e.removeEventListener(t,n,i)}function xi(e){return e?.ownerDocument||Ya}function yi(e){return xi(e).documentElement}function en(e){return xi(e).body}function Qe(e){var t;return((t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView)||window}function Wo(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function Ei(e){return qe(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}function Ha(e,t,n,i,r,o){for(var a=0;a<r;++a){var s=n+a*r,c=i+a*r;e[s]+=e[c]*o,t[s]+=t[c]*o}}function ja(e,t,n,i,r){for(var o=0;o<r;++o){var a=n+o*r,s=i+o*r,c=e[a],u=t[a];e[a]=e[s],e[s]=c,t[a]=t[s],t[s]=u}}function La(e,t,n,i,r){for(var o=0;o<i;++o){var a=n+o*i;e[a]/=r,t[a]/=r}}function cn(e,t){t===void 0&&(t=Math.sqrt(e.length));for(var n=e.slice(),i=Wt(t),r=0;r<t;++r){var o=t*r+r;if(!kt(n[o],ee)){for(var a=r+1;a<t;++a)if(n[t*r+a]){ja(n,i,r,a,t);break}}if(!kt(n[o],ee))return[];for(La(n,i,r,t,n[o]),a=0;a<t;++a){var s=a,c=n[a+r*t];kt(c,ee)&&r!==a&&Ha(n,i,s,r,t,-c)}}return i}function or(e,t){for(var n=e.slice(),i=e.length;i<t-1;++i)n[i]=0;return n[t-1]=1,n}function ln(e,t,n){if(t===void 0&&(t=Math.sqrt(e.length)),t===n)return e;for(var i=Wt(n),r=Math.min(t,n),o=0;o<r-1;++o){for(var a=0;a<r-1;++a)i[o*n+a]=e[o*t+a];i[(o+1)*n-1]=e[(o+1)*t-1],i[(n-1)*n+o]=e[(t-1)*t+o]}return i[n*n-1]=e[t*t-1],i}function wr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Wt(e);return t.forEach(function(r){i=ie(i,r,e)}),i}function ie(e,t,n){n===void 0&&(n=Math.sqrt(e.length));var i=[],r=e.length/n,o=t.length/r;if(!r)return t;if(!o)return e;for(var a=0;a<n;++a)for(var s=0;s<o;++s){i[s*n+a]=0;for(var c=0;c<r;++c)i[s*n+a]+=e[c*n+a]*t[s*r+c]}return i}function Ut(e,t){for(var n=Math.min(e.length,t.length),i=e.slice(),r=0;r<n;++r)i[r]=i[r]+t[r];return i}function ct(e,t){for(var n=Math.min(e.length,t.length),i=e.slice(),r=0;r<n;++r)i[r]=i[r]-t[r];return i}function qa(e,t){return t===void 0&&(t=e.length===6),t?[e[0],e[1],0,e[2],e[3],0,e[4],e[5],1]:e}function Xo(e,t){return t===void 0&&(t=e.length===9),t?[e[0],e[1],e[3],e[4],e[6],e[7]]:e}function ze(e,t,n){n===void 0&&(n=t.length);var i=ie(e,t,n),r=i[n-1];return i.map(function(o){return o/r})}function Va(e,t){return ie(e,[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1],4)}function Ua(e,t){return ie(e,[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1],4)}function Za(e,t){return ie(e,Fr(t,4))}function dr(e,t){var n=t[0],i=n===void 0?1:n,r=t[1],o=r===void 0?1:r,a=t[2];return ie(e,[i,0,0,0,0,o,0,0,0,0,a===void 0?1:a,0,0,0,0,1],4)}function Ar(e,t){var n=t[0],i=n===void 0?0:n,r=t[1],o=r===void 0?0:r,a=t[2];return ie(e,[1,0,0,0,0,1,0,0,0,0,1,0,i,o,a===void 0?0:a,1],4)}function $i(e,t){return ie(e,t,4)}function Fr(e,t){var n=Math.cos(e),i=Math.sin(e),r=Wt(t);return r[0]=n,r[1]=i,r[t]=-i,r[t+1]=n,r}function Wt(e){for(var t=e*e,n=[],i=0;i<t;++i)n[i]=i%(e+1)?0:1;return n}function Ho(e,t){for(var n=Wt(t),i=Math.min(e.length,t-1),r=0;r<i;++r)n[(t+1)*r]=e[r];return n}function fn(e,t){for(var n=Wt(t),i=Math.min(e.length,t-1),r=0;r<i;++r)n[t*(t-1)+r]=e[r];return n}function jo(e,t,n,i,r,o,a,s){var c=e[0],u=e[1],f=t[0],p=t[1],l=n[0],d=n[1],h=i[0],g=i[1],v=r[0],m=r[1],y=o[0],x=o[1],E=a[0],M=a[1],b=s[0],S=s[1],R=cn([c,0,f,0,l,0,h,0,u,0,p,0,d,0,g,0,1,0,1,0,1,0,1,0,0,c,0,f,0,l,0,h,0,u,0,p,0,d,0,g,0,1,0,1,0,1,0,1,-v*c,-m*c,-y*f,-x*f,-E*l,-M*l,-b*h,-S*h,-v*u,-m*u,-y*p,-x*p,-E*d,-M*d,-b*g,-S*g],8);if(!R.length)return[];var G=ie(R,[v,m,y,x,E,M,b,S],8);return G[8]=1,ln(function(P,D){D===void 0&&(D=Math.sqrt(P.length));for(var _=[],T=0;T<D;++T)for(var F=0;F<D;++F)_[F*D+T]=P[D*T+F];return _}(G),3,4)}var qn=function(){return qn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},qn.apply(this,arguments)};function Si(e,t){return t===void 0&&(t=0),gn(Cn(e,t))}function gn(e){var t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach(function(n){var i=n.matrixFunction,r=n.functionValue;i&&(t=i(t,r))}),t}function Cn(e,t){return t===void 0&&(t=0),(ye(e)?e:Qn(e)).map(function(n){var i,r=!(i=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(n))||i.length<4?{}:{prefix:i[1],value:i[2],suffix:i[3]},o=r.prefix,a=r.value,s=null,c=o,u="";if(o==="translate"||o==="translateX"||o==="translate3d"){var f=qe(t)?qn(qn({},t),{"o%":t["%"]}):{"%":t,"o%":t},p=jn(a).map(function(G,P){return f["%"]=P===0&&"x%"in f?t["x%"]:P===1&&"y%"in f?t["y%"]:t["o%"],Se(G,f)}),l=p[0],d=p[1],h=d===void 0?0:d,g=p[2];s=Ar,u=[l,h,g===void 0?0:g]}else if(o==="translateY")s=Ar,u=[0,h=Se(a,qe(t)?qn({"%":t["y%"]},t):{"%":t}),0];else if(o==="translateZ")s=Ar,u=[0,0,parseFloat(a)];else if(o==="scale"||o==="scale3d"){var v=jn(a).map(function(G){return parseFloat(G)}),m=v[0],y=v[1],x=y===void 0?m:y,E=v[2];s=dr,u=[m,x,E===void 0?1:E]}else if(o==="scaleX")s=dr,u=[m=parseFloat(a),1,1];else if(o==="scaleY")s=dr,u=[1,x=parseFloat(a),1];else if(o==="scaleZ")s=dr,u=[1,1,parseFloat(a)];else if(o==="rotate"||o==="rotateZ"||o==="rotateX"||o==="rotateY"){var M=Rr(a),b=M.unit,S=M.value;o==="rotate"||o==="rotateZ"?(c="rotateZ",s=Za):o==="rotateX"?s=Va:o==="rotateY"&&(s=Ua),u=b==="rad"?S:S*Math.PI/180}else if(o==="matrix3d")s=$i,u=jn(a).map(function(G){return parseFloat(G)});else if(o==="matrix"){var R=jn(a).map(function(G){return parseFloat(G)});s=$i,u=[R[0],R[1],0,0,R[2],R[3],0,0,0,0,1,0,R[4],R[5],0,1]}else c="";return{name:o,functionName:c,value:a,matrixFunction:s,functionValue:u}})}var $a=function(){function e(){this.keys=[],this.values=[]}var t=e.prototype;return t.get=function(n){return this.values[this.keys.indexOf(n)]},t.set=function(n,i){var r=this.keys,o=this.values,a=r.indexOf(n),s=a===-1?r.length:a;r[s]=n,o[s]=i},e}(),Ka=function(){function e(){this.object={}}var t=e.prototype;return t.get=function(n){return this.object[n]},t.set=function(n,i){this.object[n]=i},e}(),Ja=typeof Map=="function",Qa=function(){function e(){}var t=e.prototype;return t.connect=function(n,i){this.prev=n,this.next=i,n&&(n.next=this),i&&(i.prev=this)},t.disconnect=function(){var n=this.prev,i=this.next;n&&(n.next=i),i&&(i.prev=n)},t.getIndex=function(){for(var n=this,i=-1;n;)n=n.prev,++i;return i},e}(),ts=function(){function e(n,i,r,o,a,s,c,u){this.prevList=n,this.list=i,this.added=r,this.removed=o,this.changed=a,this.maintained=s,this.changedBeforeAdded=c,this.fixed=u}var t=e.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var n,i,r,o,a=(n=this.changedBeforeAdded,i=this.fixed,r=[],o=[],n.forEach(function(u){var f=u[0],p=u[1],l=new Qa;r[f]=l,o[p]=l}),r.forEach(function(u,f){u.connect(r[f-1])}),n.filter(function(u,f){return!i[f]}).map(function(u,f){var p=u[0],l=u[1];if(p===l)return[0,0];var d=r[p],h=o[l-1],g=d.getIndex();return d.disconnect(),h?d.connect(h,h.next):d.connect(void 0,r[0]),[g,d.getIndex()]})),s=this.changed,c=[];this.cacheOrdered=a.filter(function(u,f){var p=u[0],l=u[1],d=s[f],h=d[0],g=d[1];if(p!==l)return c.push([h,g]),!0}),this.cachePureChanged=c},e}();function Lo(e,t,n){var i=Ja?Map:n?Ka:$a,r=n||function(y){return y},o=[],a=[],s=[],c=e.map(r),u=t.map(r),f=new i,p=new i,l=[],d=[],h={},g=[],v=0,m=0;return c.forEach(function(y,x){f.set(y,x)}),u.forEach(function(y,x){p.set(y,x)}),c.forEach(function(y,x){var E=p.get(y);E===void 0?(++m,a.push(x)):h[E]=m}),u.forEach(function(y,x){var E=f.get(y);E===void 0?(o.push(x),++v):(s.push([E,x]),m=h[x]||0,l.push([E-m,x-v]),d.push(x===E),E!==x&&g.push([E,x]))}),a.reverse(),new ts(e,t,o,a,g,s,l,d)}var Ki,es=function(){function e(t,n){t===void 0&&(t=[]),this.findKeyCallback=n,this.list=[].slice.call(t)}return e.prototype.update=function(t){var n=[].slice.call(t),i=Lo(this.list,n,this.findKeyCallback);return this.list=n,i},e}(),qo=function(e,t){return(qo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])})(e,t)},ns=typeof Map=="function"?void 0:(Ki=0,function(e){return e.__DIFF_KEY__||(e.__DIFF_KEY__=++Ki)}),Vo=function(e){function t(n){return n===void 0&&(n=[]),e.call(this,n,ns)||this}return function(n,i){function r(){this.constructor=n}qo(n,i),n.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}(t,e),t}(es),ei=function(){return ei=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ei.apply(this,arguments)},Uo=function(){function e(){this._events={}}var t=e.prototype;return t.on=function(n,i){if(qe(n))for(var r in n)this.on(r,n[r]);else this._addEvent(n,i,{});return this},t.off=function(n,i){if(n)if(qe(n))for(var r in n)this.off(r);else if(i){var o=this._events[n];if(o){var a=wn(o,function(s){return s.listener===i});a>-1&&o.splice(a,1)}}else this._events[n]=[];else this._events={};return this},t.once=function(n,i){var r=this;return i&&this._addEvent(n,i,{once:!0}),new Promise(function(o){r._addEvent(n,o,{once:!0})})},t.emit=function(n,i){var r=this;i===void 0&&(i={});var o=this._events[n];if(!n||!o)return!0;var a=!1;return i.eventType=n,i.stop=function(){a=!0},i.currentTarget=this,function(){for(var s=0,c=0,u=arguments.length;c<u;c++)s+=arguments[c].length;var f=Array(s),p=0;for(c=0;c<u;c++)for(var l=arguments[c],d=0,h=l.length;d<h;d++,p++)f[p]=l[d];return f}(o).forEach(function(s){s.listener(i),s.once&&r.off(n,s.listener)}),!a},t.trigger=function(n,i){return i===void 0&&(i={}),this.emit(n,i)},t._addEvent=function(n,i,r){var o=this._events;o[n]=o[n]||[],o[n].push(ei({listener:i},r))},e}();function Ee(e){return kt(e,ee)}function Ji(e){return e.length<3?0:Math.abs(function(t){for(var n=0,i=t.length-1;i>=0;--i)n+=t[i];return n}(e.map(function(t,n){var i=e[n+1]||e[0];return t[0]*i[1]-i[0]*t[1]})))/2}function Qi(e,t){var n=t.width,i=t.height,r=t.left,o=t.top,a=yn(e),s=a.minX,c=a.minY,u=a.maxX,f=a.maxY,p=n/(u-s),l=i/(f-c);return e.map(function(d){return[r+(d[0]-s)*p,o+(d[1]-c)*l]})}function yn(e){var t=e.map(function(i){return i[0]}),n=e.map(function(i){return i[1]});return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,n),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,n)}}function Ir(e,t,n){var i=e[0],r=e[1],o=yn(t),a=o.minX,s=o.maxX,c=[[a,r],[s,r]],u=Cr(c[0],c[1]),f=ni(t),p=[];if(f.forEach(function(h){var g,v=Cr(h[0],h[1]),m=h[0];g=v,u.every(function(y,x){return Ee(y-g[x])===0})?p.push({pos:e,line:h,type:"line"}):Zo(Di(u,v),[c,h]).forEach(function(y){h.some(function(x){return M=y,!Ee((E=x)[0]-M[0])&&!Ee(E[1]-M[1]);var E,M})?p.push({pos:y,line:h,type:"point"}):Ee(m[1]-r)!==0&&p.push({pos:y,line:h,type:"intersection"})})}),Be(p,function(h){return h[0]===i}))return!0;var l=0,d={};return p.forEach(function(h){var g=h.pos,v=h.type,m=h.line;if(!(g[0]>i))if(v==="intersection")++l;else{if(v==="line")return;if(v==="point"){var y=Be(m,function(M){return M[1]!==r}),x=d[g[0]],E=y[1]>r?1:-1;x?x!==E&&++l:d[g[0]]=E}}}),l%2==1}function Cr(e,t){var n=e[0],i=e[1],r=t[0]-n,o=t[1]-i;Math.abs(r)<ee&&(r=0),Math.abs(o)<ee&&(o=0);var a=0,s=0,c=0;return r?o?(s=1,c=-(a=-o/r)*n-i):(s=1,c=-i):o&&(a=-1,c=n),[a,s,c]}function Di(e,t){var n=e[0],i=e[1],r=e[2],o=t[0],a=t[1],s=t[2],c=n===0&&o===0,u=i===0&&a===0,f=[];if(c&&u)return[];if(c){var p=-r/i;return p!==-s/a?[]:[[-1/0,p],[1/0,p]]}if(u){var l=-r/n;return l!==-s/o?[]:[[l,-1/0],[l,1/0]]}if(n===0)f=[[d=-(a*(h=-r/i)+s)/o,h]];else if(o===0)f=[[d=-(i*(h=-s/a)+r)/n,h]];else if(i===0)f=[[d=-r/n,h=-(o*d+s)/a]];else if(a===0)f=[[d=-s/o,h=-(n*d+r)/i]];else{var d,h;f=[[d=(i*s-a*r)/(a*n-i*o),h=-(n*d+r)/i]]}return f.map(function(g){return[g[0],g[1]]})}function Zo(e,t){var n=t.map(function(p){return[0,1].map(function(l){return[Math.min(p[0][l],p[1][l]),Math.max(p[0][l],p[1][l])]})}),i=[];if(e.length===2){var r=e[0],o=r[0],a=r[1];if(Ee(o-e[1][0])){if(!Ee(a-e[1][1])){var s=Math.max.apply(Math,n.map(function(p){return p[0][0]})),c=Math.min.apply(Math,n.map(function(p){return p[0][1]}));if(Ee(s-c)>0)return[];i=[[s,a],[c,a]]}}else{var u=Math.max.apply(Math,n.map(function(p){return p[1][0]})),f=Math.min.apply(Math,n.map(function(p){return p[1][1]}));if(Ee(u-f)>0)return[];i=[[o,u],[o,f]]}}return i.length||(i=e.filter(function(p){var l=p[0],d=p[1];return n.every(function(h){return 0<=Ee(l-h[0][0])&&0<=Ee(h[0][1]-l)&&0<=Ee(d-h[1][0])&&0<=Ee(h[1][1]-d)})})),i.map(function(p){return[Ee(p[0]),Ee(p[1])]})}function ni(e){return function(){for(var t=0,n=0,i=arguments.length;n<i;n++)t+=arguments[n].length;var r=Array(t),o=0;for(n=0;n<i;n++)for(var a=arguments[n],s=0,c=a.length;s<c;s++,o++)r[o]=a[s];return r}(e.slice(1),[e[0]]).map(function(t,n){return[e[n],t]})}var $o=function(e,t){return($o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])})(e,t)},te=function(){return te=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},te.apply(this,arguments)};function Nr(e){return 180*(t=[e[0].clientX,e[0].clientY],i=(n=[e[1].clientX,e[1].clientY])[0]-t[0],r=n[1]-t[1],((o=Math.atan2(r,i))>=0?o:o+2*Math.PI)/Math.PI);var t,n,i,r,o}function hr(e){return e?e.touches?function(t){for(var n=Math.min(t.length,2),i=[],r=0;r<n;++r)i.push(eo(t[r]));return i}(e.touches):[eo(e)]:[]}function to(e,t,n){var i=n.length,r=Vn(e,i),o=r.clientX,a=r.clientY,s=r.originalClientX,c=r.originalClientY,u=Vn(t,i),f=u.clientX,p=u.clientY,l=Vn(n,i);return{clientX:s,clientY:c,deltaX:o-f,deltaY:a-p,distX:o-l.clientX,distY:a-l.clientY}}function Yr(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function eo(e){return{clientX:e.clientX,clientY:e.clientY}}function Vn(e,t){t===void 0&&(t=e.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},i=Math.min(e.length,t),r=0;r<i;++r){var o=e[r];n.originalClientX+="originalClientX"in o?o.originalClientX:o.clientX,n.originalClientY+="originalClientY"in o?o.originalClientY:o.clientY,n.clientX+=o.clientX,n.clientY+=o.clientY}return t?{clientX:n.clientX/t,clientY:n.clientY/t,originalClientX:n.originalClientX/t,originalClientY:n.originalClientY/t}:n}var Wr=function(){function e(t){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=t,this.prevClients=t,this.length=t.length}return e.prototype.getAngle=function(t){return t===void 0&&(t=this.prevClients),Nr(t)},e.prototype.getRotation=function(t){return t===void 0&&(t=this.prevClients),Nr(t)-Nr(this.startClients)},e.prototype.getPosition=function(t,n){t===void 0&&(t=this.prevClients);var i=to(t||this.prevClients,this.prevClients,this.startClients),r=i.deltaX,o=i.deltaY;return this.movement+=Math.sqrt(r*r+o*o),this.prevClients=t,i},e.prototype.getPositions=function(t){t===void 0&&(t=this.prevClients);for(var n=this.prevClients,i=this.startClients,r=Math.min(this.length,n.length),o=[],a=0;a<r;++a)o[a]=to([t[a]],[n[a]],[i[a]]);return o},e.prototype.getMovement=function(t){var n=this.movement;if(!t)return n;var i=Vn(t,this.length),r=Vn(this.prevClients,this.length),o=i.clientX-r.clientX,a=i.clientY-r.clientY;return Math.sqrt(o*o+a*a)+n},e.prototype.getDistance=function(t){return t===void 0&&(t=this.prevClients),Yr(t)},e.prototype.getScale=function(t){return t===void 0&&(t=this.prevClients),Yr(t)/Yr(this.startClients)},e.prototype.move=function(t,n){this.startClients.forEach(function(i){i.clientX-=t,i.clientY-=n}),this.prevClients.forEach(function(i){i.clientX-=t,i.clientY-=n})},e}(),no=["textarea","input"],rs=function(e){function t(n,i){i===void 0&&(i={});var r=e.call(this)||this;r.options={},r.flag=!1,r.pinchFlag=!1,r.data={},r.isDrag=!1,r.isPinch=!1,r.clientStores=[],r.targets=[],r.prevTime=0,r.doubleFlag=!1,r._useMouse=!1,r._useTouch=!1,r._useDrag=!1,r._dragFlag=!1,r._isTrusted=!1,r._isMouseEvent=!1,r._isSecondaryButton=!1,r._preventMouseEvent=!1,r._prevInputEvent=null,r._isDragAPI=!1,r._isIdle=!0,r._preventMouseEventId=0,r._window=window,r.onDragStart=function(l,d){if(d===void 0&&(d=!0),r.flag||l.cancelable!==!1){var h=l.type.indexOf("drag")>=-1;if(!r.flag||!h){r._isDragAPI=!0;var g=r.options,v=g.container,m=g.pinchOutside,y=g.preventWheelClick,x=g.preventRightClick,E=g.preventDefault,M=g.checkInput,b=g.dragFocusedInput,S=g.preventClickEventOnDragStart,R=g.preventClickEventOnDrag,G=g.preventClickEventByCondition,P=r._useTouch,D=!r.flag;if(r._isSecondaryButton=l.which===3||l.button===2,y&&(l.which===2||l.button===1)||x&&(l.which===3||l.button===2))return r.stop(),!1;if(D){var _=r._window.document.activeElement,T=l.target;if(T){var F=T.tagName.toLowerCase(),B=no.indexOf(F)>-1,O=T.isContentEditable;if(B||O){if(M||!b&&_===T)return!1;if(_&&(_===T||O&&_.isContentEditable&&_.contains(T))){if(!b)return!1;T.blur()}}else if((E||l.type==="touchstart")&&_){var I=_.tagName.toLowerCase();(_.isContentEditable||no.indexOf(I)>-1)&&_.blur()}(S||R||G)&&ge(r._window,"click",r._onClick,!0)}r.clientStores=[new Wr(hr(l))],r._isIdle=!1,r.flag=!0,r.isDrag=!1,r._isTrusted=d,r._dragFlag=!0,r._prevInputEvent=l,r.data={},r.doubleFlag=Mr()-r.prevTime<200,r._isMouseEvent=(j=l)&&(j.type.indexOf("mouse")>-1||"button"in j),!r._isMouseEvent&&r._preventMouseEvent&&r._allowMouseEvent(),(r._preventMouseEvent||r.emit("dragStart",te(te({data:r.data,datas:r.data,inputEvent:l,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,isTrusted:d,isDouble:r.doubleFlag},r.getCurrentStore().getPosition()),{preventDefault:function(){l.preventDefault()},preventDrag:function(){r._dragFlag=!1}})))===!1&&r.stop(),r._isMouseEvent&&r.flag&&E&&l.preventDefault()}if(!r.flag)return!1;var A=0;if(D?(r._attchDragEvent(),P&&m&&(A=setTimeout(function(){ge(v,"touchstart",r.onDragStart,{passive:!1})}))):P&&m&&fe(v,"touchstart",r.onDragStart),r.flag&&(W=l).touches&&W.touches.length>=2){if(clearTimeout(A),D&&l.touches.length!==l.changedTouches.length)return;r.pinchFlag||r.onPinchStart(l)}}}var W,j},r.onDrag=function(l,d){if(r.flag){var h=r.options.preventDefault;!r._isMouseEvent&&h&&l.preventDefault(),r._prevInputEvent=l;var g=hr(l),v=r.moveClients(g,l,!1);if(r._dragFlag){if((r.pinchFlag||v.deltaX||v.deltaY)&&(r._preventMouseEvent||r.emit("drag",te(te({},v),{isScroll:!!d,inputEvent:l})))===!1)return void r.stop();r.pinchFlag&&r.onPinch(l,g)}r.getCurrentStore().getPosition(g,!0)}},r.onDragEnd=function(l){if(r.flag){var d=r.options,h=d.pinchOutside,g=d.container,v=d.preventClickEventOnDrag,m=d.preventClickEventOnDragStart,y=d.preventClickEventByCondition,x=r.isDrag;(v||m||y)&&requestAnimationFrame(function(){r._allowClickEvent()}),y||m||!v||x||r._allowClickEvent(),r._useTouch&&h&&fe(g,"touchstart",r.onDragStart),r.pinchFlag&&r.onPinchEnd(l);var E=l?.touches?hr(l):[];E.length!==0&&r.options.keepDragging?r._addStore(new Wr(E)):r.flag=!1;var M=r._getPosition(),b=Mr(),S=!x&&r.doubleFlag;r._prevInputEvent=null,r.prevTime=x||S?0:b,r.flag||(r._dettachDragEvent(),r._preventMouseEvent||r.emit("dragEnd",te({data:r.data,datas:r.data,isDouble:S,isDrag:x,isClick:!x,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,inputEvent:l,isTrusted:r._isTrusted},M)),r.clientStores=[],r._isMouseEvent||(r._preventMouseEvent=!0,clearTimeout(r._preventMouseEventId),r._preventMouseEventId=setTimeout(function(){r._preventMouseEvent=!1},200)),r._isIdle=!0)}},r.onBlur=function(){r.onDragEnd()},r._allowClickEvent=function(){fe(r._window,"click",r._onClick,!0)},r._onClick=function(l){r._allowClickEvent(),r._allowMouseEvent();var d=r.options.preventClickEventByCondition;d?.(l)||(l.stopPropagation(),l.preventDefault())},r._onContextMenu=function(l){r.options.preventRightClick?r.onDragEnd(l):l.preventDefault()},r._passCallback=function(){};var o=[].concat(n),a=o[0];r._window=Wo(a)?a:Qe(a),r.options=te({checkInput:!1,container:a&&!("document"in a)?Qe(a):a,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},i);var s=r.options,c=s.container,u=s.events,f=s.checkWindowBlur;if(r._useDrag=u.indexOf("drag")>-1,r._useTouch=u.indexOf("touch")>-1,r._useMouse=u.indexOf("mouse")>-1,r.targets=o,r._useDrag&&o.forEach(function(l){ge(l,"dragstart",r.onDragStart)}),r._useMouse&&(o.forEach(function(l){ge(l,"mousedown",r.onDragStart),ge(l,"mousemove",r._passCallback)}),ge(c,"contextmenu",r._onContextMenu)),f&&ge(Qe(),"blur",r.onBlur),r._useTouch){var p={passive:!1};o.forEach(function(l){ge(l,"touchstart",r.onDragStart,p),ge(l,"touchmove",r._passCallback,p)})}return r}return function(n,i){function r(){this.constructor=n}$o(n,i),n.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}(t,e),t.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},t.prototype.getMovement=function(n){return this.getCurrentStore().getMovement(n)+this.clientStores.slice(1).reduce(function(i,r){return i+r.movement},0)},t.prototype.isDragging=function(){return this.isDrag},t.prototype.isIdle=function(){return this._isIdle},t.prototype.isFlag=function(){return this.flag},t.prototype.isPinchFlag=function(){return this.pinchFlag},t.prototype.isDoubleFlag=function(){return this.doubleFlag},t.prototype.isPinching=function(){return this.isPinch},t.prototype.scrollBy=function(n,i,r,o){o===void 0&&(o=!0),this.flag&&(this.clientStores[0].move(n,i),o&&this.onDrag(r,!0))},t.prototype.move=function(n,i){var r=n[0],o=n[1],a=this.getCurrentStore().prevClients;return this.moveClients(a.map(function(s){var c=s.clientX,u=s.clientY;return{clientX:c+r,clientY:u+o,originalClientX:c,originalClientY:u}}),i,!0)},t.prototype.triggerDragStart=function(n){this.onDragStart(n,!1)},t.prototype.setEventData=function(n){var i=this.data;for(var r in n)i[r]=n[r];return this},t.prototype.setEventDatas=function(n){return this.setEventData(n)},t.prototype.getCurrentEvent=function(n){return n===void 0&&(n=this._prevInputEvent),te(te({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:n})},t.prototype.getEventData=function(){return this.data},t.prototype.getEventDatas=function(){return this.data},t.prototype.unset=function(){var n=this,i=this.targets,r=this.options.container;this.off(),fe(this._window,"blur",this.onBlur),this._useDrag&&i.forEach(function(o){fe(o,"dragstart",n.onDragStart)}),this._useMouse&&(i.forEach(function(o){fe(o,"mousedown",n.onDragStart)}),fe(r,"contextmenu",this._onContextMenu)),this._useTouch&&(i.forEach(function(o){fe(o,"touchstart",n.onDragStart)}),fe(r,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(n){var i=this,r=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>r)){var o=new Wr(hr(n));this.pinchFlag=!0,this._addStore(o),this.emit("pinchStart",te(te({data:this.data,datas:this.data,angle:o.getAngle(),touches:this.getCurrentStore().getPositions()},o.getPosition()),{inputEvent:n,isTrusted:this._isTrusted,preventDefault:function(){n.preventDefault()},preventDrag:function(){i._dragFlag=!1}}))===!1&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(n,i){if(this.flag&&this.pinchFlag&&!(i.length<2)){var r=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",te(te({data:this.data,datas:this.data,movement:this.getMovement(i),angle:r.getAngle(i),rotation:r.getRotation(i),touches:r.getPositions(i),scale:r.getScale(i),distance:r.getDistance(i)},r.getPosition(i)),{inputEvent:n,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(n){if(this.pinchFlag){var i=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var r=this.getCurrentStore();this.emit("pinchEnd",te(te({data:this.data,datas:this.data,isPinch:i,touches:r.getPositions()},r.getPosition()),{inputEvent:n}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(n,i,r){var o=this._getPosition(n,r),a=this.isDrag;(o.deltaX||o.deltaY)&&(this.isDrag=!0);var s=!1;return!a&&this.isDrag&&(s=!0),te(te({data:this.data,datas:this.data},o),{movement:this.getMovement(n),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:i,isTrusted:this._isTrusted,isFirstDrag:s})},t.prototype._addStore=function(n){this.clientStores.splice(0,0,n)},t.prototype._getPosition=function(n,i){var r=this.getCurrentStore().getPosition(n,i),o=this.clientStores.slice(1).reduce(function(c,u){var f=u.getPosition();return c.distX+=f.distX,c.distY+=f.distY,c},r),a=o.distX,s=o.distY;return te(te({},r),{distX:a,distY:s})},t.prototype._attchDragEvent=function(){var n=this._window,i=this.options.container,r={passive:!1};this._isDragAPI&&(ge(i,"dragover",this.onDrag,r),ge(n,"dragend",this.onDragEnd)),this._useMouse&&(ge(i,"mousemove",this.onDrag),ge(n,"mouseup",this.onDragEnd)),this._useTouch&&(ge(i,"touchmove",this.onDrag,r),ge(n,"touchend",this.onDragEnd,r),ge(n,"touchcancel",this.onDragEnd,r))},t.prototype._dettachDragEvent=function(){var n=this._window,i=this.options.container;this._isDragAPI&&(fe(i,"dragover",this.onDrag),fe(n,"dragend",this.onDragEnd)),this._useMouse&&(fe(i,"mousemove",this.onDrag),fe(n,"mouseup",this.onDragEnd)),this._useTouch&&(fe(i,"touchstart",this.onDragStart),fe(i,"touchmove",this.onDrag),fe(n,"touchend",this.onDragEnd),fe(n,"touchcancel",this.onDragEnd))},t.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},t}(Uo),ri=function(){return ri=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ri.apply(this,arguments)};function Ko(e,t){var n=function(r){var o="rCS"+function(a){for(var s=5381,c=a.length;c;)s=33*s^a.charCodeAt(--c);return s>>>0}(r).toString(36);return{className:o,inject:function(a,s){s===void 0&&(s={});var c,u,f,p,l,d,h,g,v=function(x){if(x&&x.getRootNode){var E=x.getRootNode();if(E.nodeType===11)return E}}(a),m=(v||a.ownerDocument||document).querySelector('style[data-styled-id="'.concat(o,'"]'));if(m){var y=parseFloat(m.getAttribute("data-styled-count"))||0;m.setAttribute("data-styled-count","".concat(y+1))}else c=o,u=r,f=s,p=v,(g=(h=xi(a)).createElement("style")).setAttribute("type","text/css"),g.setAttribute("data-styled-id",c),g.setAttribute("data-styled-count","1"),f.nonce&&g.setAttribute("nonce",f.nonce),g.innerHTML=(l=c,d=u,f.original?d:d.replace(/([^};{\s}][^};{]*|^\s*){/gm,function(x,E){var M=E.trim();return(M?jn(M):[""]).map(function(b){var S=b.trim();return S.indexOf("@")===0?S:S.indexOf(":global")>-1?S.replace(/\:global/g,""):S.indexOf(":host")>-1?"".concat(S.replace(/\:host/g,".".concat(l))):S?".".concat(l," ").concat(S):".".concat(l)}).join(", ")+" {"})),(p||h.head||h.body).appendChild(g),m=g;return{destroy:function(){var x,E=parseFloat(m.getAttribute("data-styled-count"))||0;E<=1?(m.remove?m.remove():(x=m.parentNode)===null||x===void 0||x.removeChild(m),m=null):m.setAttribute("data-styled-count","".concat(E-1))}}}}}(t),i=n.className;return xe.reactExports.forwardRef(function(r,o){var a=r.className,s=a===void 0?"":a;r.cspNonce;var c=function(f,p){var l={};for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&p.indexOf(d)<0&&(l[d]=f[d]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function"){var h=0;for(d=Object.getOwnPropertySymbols(f);h<d.length;h++)p.indexOf(d[h])<0&&Object.prototype.propertyIsEnumerable.call(f,d[h])&&(l[d[h]]=f[d[h]])}return l}(r,["className","cspNonce"]),u=xe.reactExports.useRef();return xe.reactExports.useImperativeHandle(o,function(){return u.current},[]),xe.reactExports.useEffect(function(){var f=n.inject(u.current,{nonce:r.cspNonce});return function(){f.destroy()}},[]),xe.reactExports.createElement(e,ri({ref:u,"data-styled-id":i,className:"".concat(s," ").concat(i)},c))})}var Jo=function(e,t){return(Jo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])})(e,t)};function ar(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Jo(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var w=function(){return w=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},w.apply(this,arguments)};function C(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function L(e,t,n){if(arguments.length===2)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function er(e,t){return w({events:[],props:[],name:e},t)}var ro,io,is=["n","w","s","e"],Mi=["n","w","s","e","nw","ne","sw","se"],Pn=function(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;var e=navigator.userAgentData,t=e.brands||e.uaList;return!(!t||!t.length)}()?function(){var e=navigator.userAgentData,t=(e.uaList||e.brands).slice(),n=e.mobile||!1,i=t[0],r=(e.platform||navigator.platform).toLowerCase(),o={name:i.brand,version:i.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!fr(Bo,t).brand||Xi(Ii())},a={name:"unknown",version:"-1",majorVersion:-1};o.webkit=!o.chromium&&gi(zr,function(p){return Fo(t,p)});var s=fr(Yi,t);if(o.chromium=!!s.brand,o.chromiumVersion=s.version||"-1",!o.chromium){var c=fr(zr,t);o.webkit=!!c.brand,o.webkitVersion=c.version||"-1"}var u=Ro(Wi,function(p){return new RegExp(""+p.test,"g").exec(r)});a.name=u?u.id:"";var f=fr(Ni,t);return o.name=f.brand||o.name,o.version=(f.brand,f.version),o.webkit&&(a.name=n?"ios":"mac"),a.name==="ios"&&o.webview&&(o.version="-1"),a.version=Kr(a.version),o.version=Kr(o.version),a.majorVersion=parseInt(a.version,10),o.majorVersion=parseInt(o.version,10),{browser:o,os:a,isMobile:n,isHints:!0}}():function(){var e=Ii(void 0),t=!!/mobi/g.exec(e),n={name:"unknown",version:"-1",majorVersion:-1,webview:Xi(e),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},i={name:"unknown",version:"-1",majorVersion:-1},r=Hn(Ni,e),o=r.preset,a=r.version,s=Hn(Wi,e),c=s.preset,u=s.version,f=Hn(Yi,e);if(n.chromium=!!f.preset,n.chromiumVersion=f.version,!n.chromium){var p=Hn(zr,e);n.webkit=!!p.preset,n.webkitVersion=p.version}return c&&(i.name=c.id,i.version=u,i.majorVersion=parseInt(u,10)),o&&(n.name=o.id,n.version=a,n.webview&&i.name==="ios"&&n.name!=="safari"&&(n.webview=!1)),n.majorVersion=parseInt(n.version,10),{browser:n,os:i,isMobile:t,isHints:!1}}(),Qo=Pn.browser.webkit,ta=Qo&&(ro=typeof window>"u"?{userAgent:""}:window.navigator,!!(io=/applewebkit\/([^\s]+)/g.exec(ro.userAgent.toLowerCase()))&&parseFloat(io[1])<605),ea=Pn.browser.name,na=parseInt(Pn.browser.version,10),os=ea==="chrome",as=Pn.browser.chromium,ss=parseInt(Pn.browser.chromiumVersion,10)||0,us=os&&na>=109||as&&ss>=109,cs=ea==="firefox",ls=parseInt(Pn.browser.webkitVersion,10)>=612||na>=15,wi="moveable-",fs=Mi.map(function(e){var t="",n="",i="center",r="center",o="calc(var(--moveable-control-padding, 20) * -1px)";return e.indexOf("n")>-1&&(t="top: ".concat(o,";"),r="bottom"),e.indexOf("s")>-1&&(t="top: 0px;",r="top"),e.indexOf("w")>-1&&(n="left: ".concat(o,";"),i="right"),e.indexOf("e")>-1&&(n="left: 0px;",i="left"),'.around-control[data-direction*="'.concat(e,`"] {
7
7
  `).concat(n).concat(t,`
8
8
  transform-origin: `).concat(i," ").concat(r,`;
9
9
  }`)}).join(`
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.15
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.16
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.4.15
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.16
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 he=require("./CRe8klqBNVDkSDEr.cjs");var se,J,r;(J=se||(se={})).Orientation={Column:"column",Row:"row"},J.Orientations={...J.Orientation,Both:"both"},J.Direction={Up:"up",Down:"down",Left:"left",Right:"right"},(e=>{e.Code={Parse:0,Null:1,Div0:2,Value:3,Ref:4,Name:5,Num:6,NA:7,GettingData:8,Spill:9,Connect:10,Blocked:11,Unknown:12,Field:13,Calc:14,Busy:16,Python:19,Timeout:20},e.Label={Parse:"#PARSE!",Null:"#NULL!",Div0:"#DIV/0!",Value:"#VALUE!",Ref:"#REF!",Name:"#NAME?",Num:"#NUM!",NA:"#N/A",GettingData:"#GETTING_DATA",Spill:"#SPILL!",Connect:"#CONNECT!",Blocked:"#BLOCKED!",Unknown:"#UNKNOWN!",Field:"#FIELD!",Calc:"#CALC!",Busy:"#BUSY!",Python:"#PYTHON!",Timeout:"#TIMEOUT!"};class a extends Error{constructor(n,i,S,q){super(S,q),this._label=i,this._code=n,this.details=q}static{this.code=e.Code.Unknown}get isFormulaError(){return!0}getLabel(){return this._label}getCode(){return this._code}equals(n){return!!n&&(this._code===n._code||this._code===n.code)}get[Symbol.toStringTag](){return"[FormulaError]"}toString(){return this.message||this._label}}e.Known=a;class k extends a{constructor(n,i){super(e.Code.Parse,e.Label.Parse,n,i)}static{this.code=e.Code.Parse}getDetails(){const n=this.details;return{line:n?.line??1,column:n?.column??1,offset:n?.offset??0,length:n?.length??0}}}e.Parse=k;class x extends a{constructor(n,i){super(e.Code.Null,e.Label.Null,n,i)}static{this.code=e.Code.Null}}e.Null=x;class j extends a{constructor(n,i){super(e.Code.Div0,e.Label.Div0,n,i)}static{this.code=e.Code.Div0}}e.Div0=j;class X extends a{constructor(n,i){super(e.Code.Value,e.Label.Value,n,i)}static{this.code=e.Code.Value}}e.Value=X;class s extends a{constructor(n,i){super(e.Code.Ref,e.Label.Ref,n,i)}static{this.code=e.Code.Ref}}e.Ref=s;class K extends a{constructor(n,i){super(e.Code.Name,e.Label.Name,n,i)}static{this.code=e.Code.Name}}e.Name=K;class M extends a{constructor(n,i){super(e.Code.Num,e.Label.Num,n,i)}static{this.code=e.Code.Num}}e.Num=M;class U extends a{constructor(n,i){super(e.Code.NA,e.Label.NA,n,i)}static{this.code=e.Code.NA}}e.NA=U;class Y extends a{constructor(n,i){super(e.Code.GettingData,e.Label.GettingData,n,i)}static{this.code=e.Code.GettingData}}e.GettingData=Y;class z extends a{constructor(n,i){super(e.Code.Spill,e.Label.Spill,n,i)}static{this.code=e.Code.Spill}}e.Spill=z;class O extends a{constructor(n,i){super(e.Code.Connect,e.Label.Connect,n,i)}static{this.code=e.Code.Connect}}e.Connect=O;class G extends a{constructor(n,i){super(e.Code.Blocked,e.Label.Blocked,n,i)}static{this.code=e.Code.Blocked}}e.Blocked=G;class _ extends a{constructor(n,i){super(e.Code.Unknown,e.Label.Unknown,n,i)}static{this.code=e.Code.Unknown}}e.Unknown=_;class F extends a{constructor(n,i){super(e.Code.Field,e.Label.Field,n,i)}static{this.code=e.Code.Field}}e.Field=F;class Q extends a{constructor(n,i){super(e.Code.Calc,e.Label.Calc,n,i)}static{this.code=e.Code.Calc}}e.Calc=Q;class I extends a{constructor(n,i){super(e.Code.Busy,e.Label.Busy,n,i)}static{this.code=e.Code.Busy}}e.Busy=I;class P extends a{constructor(n,i){super(e.Code.Python,e.Label.Python,n,i)}static{this.code=e.Code.Python}}e.Python=P;class Z extends a{constructor(n,i){super(e.Code.Timeout,e.Label.Timeout,n,i)}static{this.code=e.Code.Timeout}}e.Timeout=Z})(r||(r={}));const f={};f[r.Code.Parse]=r.Parse,f[r.Code.Null]=r.Null,f[r.Code.Div0]=r.Div0,f[r.Code.Value]=r.Value,f[r.Code.Ref]=r.Ref,f[r.Code.Name]=r.Name,f[r.Code.Num]=r.Num,f[r.Code.NA]=r.NA,f[r.Code.GettingData]=r.GettingData,f[r.Code.Spill]=r.Spill,f[r.Code.Connect]=r.Connect,f[r.Code.Blocked]=r.Blocked,f[r.Code.Unknown]=r.Unknown,f[r.Code.Field]=r.Field,f[r.Code.Calc]=r.Calc,f[r.Code.Busy]=r.Busy,f[r.Code.Python]=r.Python,f[r.Code.Timeout]=r.Timeout;const ce=new Map,ie=new Map,de=new Map,ue=new Map,le=Object.keys(f);for(let e=0;e<le.length;e++){const a=le[e],k=f[a];de.set(r.Label[a],k),ue.set(r.Code[a],k);const x=new k;ce.set(x.getLabel(),x),ie.set(x.getCode(),x)}const ge=ie.get(r.Code.Unknown);var p;(p=r||(r={})).BuiltIn={Parse:new p.Parse,Null:new p.Null,Div0:new p.Div0,Value:new p.Value,Ref:new p.Ref,Name:new p.Name,Num:new p.Num,NA:new p.NA,GettingData:new p.GettingData,Spill:new p.Spill,Connect:new p.Connect,Blocked:new p.Blocked,Unknown:new p.Unknown,Field:new p.Field,Calc:new p.Calc,Busy:new p.Busy,Python:new p.Python,Timeout:new p.Timeout},p.getBuiltInByLabel=e=>ce.get(e),p.newTypedError=(e,a,k)=>{let x;return x=typeof e=="string"?de.get(e):ue.get(e),x||(x=p.Unknown),new x(a,k)},p.getBuiltInById=e=>ie.get(e)||ge;let A=null,H=null;const we={compilerOptions:{target:"esnext"}},Ce=async()=>`
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./CDqIINbe_kUDiu3S.cjs");var se,J,r;(J=se||(se={})).Orientation={Column:"column",Row:"row"},J.Orientations={...J.Orientation,Both:"both"},J.Direction={Up:"up",Down:"down",Left:"left",Right:"right"},(e=>{e.Code={Parse:0,Null:1,Div0:2,Value:3,Ref:4,Name:5,Num:6,NA:7,GettingData:8,Spill:9,Connect:10,Blocked:11,Unknown:12,Field:13,Calc:14,Busy:16,Python:19,Timeout:20},e.Label={Parse:"#PARSE!",Null:"#NULL!",Div0:"#DIV/0!",Value:"#VALUE!",Ref:"#REF!",Name:"#NAME?",Num:"#NUM!",NA:"#N/A",GettingData:"#GETTING_DATA",Spill:"#SPILL!",Connect:"#CONNECT!",Blocked:"#BLOCKED!",Unknown:"#UNKNOWN!",Field:"#FIELD!",Calc:"#CALC!",Busy:"#BUSY!",Python:"#PYTHON!",Timeout:"#TIMEOUT!"};class a extends Error{constructor(n,i,S,q){super(S,q),this._label=i,this._code=n,this.details=q}static{this.code=e.Code.Unknown}get isFormulaError(){return!0}getLabel(){return this._label}getCode(){return this._code}equals(n){return!!n&&(this._code===n._code||this._code===n.code)}get[Symbol.toStringTag](){return"[FormulaError]"}toString(){return this.message||this._label}}e.Known=a;class k extends a{constructor(n,i){super(e.Code.Parse,e.Label.Parse,n,i)}static{this.code=e.Code.Parse}getDetails(){const n=this.details;return{line:n?.line??1,column:n?.column??1,offset:n?.offset??0,length:n?.length??0}}}e.Parse=k;class x extends a{constructor(n,i){super(e.Code.Null,e.Label.Null,n,i)}static{this.code=e.Code.Null}}e.Null=x;class j extends a{constructor(n,i){super(e.Code.Div0,e.Label.Div0,n,i)}static{this.code=e.Code.Div0}}e.Div0=j;class X extends a{constructor(n,i){super(e.Code.Value,e.Label.Value,n,i)}static{this.code=e.Code.Value}}e.Value=X;class s extends a{constructor(n,i){super(e.Code.Ref,e.Label.Ref,n,i)}static{this.code=e.Code.Ref}}e.Ref=s;class K extends a{constructor(n,i){super(e.Code.Name,e.Label.Name,n,i)}static{this.code=e.Code.Name}}e.Name=K;class M extends a{constructor(n,i){super(e.Code.Num,e.Label.Num,n,i)}static{this.code=e.Code.Num}}e.Num=M;class U extends a{constructor(n,i){super(e.Code.NA,e.Label.NA,n,i)}static{this.code=e.Code.NA}}e.NA=U;class Y extends a{constructor(n,i){super(e.Code.GettingData,e.Label.GettingData,n,i)}static{this.code=e.Code.GettingData}}e.GettingData=Y;class z extends a{constructor(n,i){super(e.Code.Spill,e.Label.Spill,n,i)}static{this.code=e.Code.Spill}}e.Spill=z;class O extends a{constructor(n,i){super(e.Code.Connect,e.Label.Connect,n,i)}static{this.code=e.Code.Connect}}e.Connect=O;class G extends a{constructor(n,i){super(e.Code.Blocked,e.Label.Blocked,n,i)}static{this.code=e.Code.Blocked}}e.Blocked=G;class _ extends a{constructor(n,i){super(e.Code.Unknown,e.Label.Unknown,n,i)}static{this.code=e.Code.Unknown}}e.Unknown=_;class F extends a{constructor(n,i){super(e.Code.Field,e.Label.Field,n,i)}static{this.code=e.Code.Field}}e.Field=F;class Q extends a{constructor(n,i){super(e.Code.Calc,e.Label.Calc,n,i)}static{this.code=e.Code.Calc}}e.Calc=Q;class I extends a{constructor(n,i){super(e.Code.Busy,e.Label.Busy,n,i)}static{this.code=e.Code.Busy}}e.Busy=I;class P extends a{constructor(n,i){super(e.Code.Python,e.Label.Python,n,i)}static{this.code=e.Code.Python}}e.Python=P;class Z extends a{constructor(n,i){super(e.Code.Timeout,e.Label.Timeout,n,i)}static{this.code=e.Code.Timeout}}e.Timeout=Z})(r||(r={}));const f={};f[r.Code.Parse]=r.Parse,f[r.Code.Null]=r.Null,f[r.Code.Div0]=r.Div0,f[r.Code.Value]=r.Value,f[r.Code.Ref]=r.Ref,f[r.Code.Name]=r.Name,f[r.Code.Num]=r.Num,f[r.Code.NA]=r.NA,f[r.Code.GettingData]=r.GettingData,f[r.Code.Spill]=r.Spill,f[r.Code.Connect]=r.Connect,f[r.Code.Blocked]=r.Blocked,f[r.Code.Unknown]=r.Unknown,f[r.Code.Field]=r.Field,f[r.Code.Calc]=r.Calc,f[r.Code.Busy]=r.Busy,f[r.Code.Python]=r.Python,f[r.Code.Timeout]=r.Timeout;const ce=new Map,ie=new Map,de=new Map,ue=new Map,le=Object.keys(f);for(let e=0;e<le.length;e++){const a=le[e],k=f[a];de.set(r.Label[a],k),ue.set(r.Code[a],k);const x=new k;ce.set(x.getLabel(),x),ie.set(x.getCode(),x)}const ge=ie.get(r.Code.Unknown);var p;(p=r||(r={})).BuiltIn={Parse:new p.Parse,Null:new p.Null,Div0:new p.Div0,Value:new p.Value,Ref:new p.Ref,Name:new p.Name,Num:new p.Num,NA:new p.NA,GettingData:new p.GettingData,Spill:new p.Spill,Connect:new p.Connect,Blocked:new p.Blocked,Unknown:new p.Unknown,Field:new p.Field,Calc:new p.Calc,Busy:new p.Busy,Python:new p.Python,Timeout:new p.Timeout},p.getBuiltInByLabel=e=>ce.get(e),p.newTypedError=(e,a,k)=>{let x;return x=typeof e=="string"?de.get(e):ue.get(e),x||(x=p.Unknown),new x(a,k)},p.getBuiltInById=e=>ie.get(e)||ge;let A=null,H=null;const we={compilerOptions:{target:"esnext"}},Ce=async()=>`
7
7
  interface FirstTest {
8
8
  isTrue?: boolean;
9
9
  }
10
- `,pe=new Map([["IReferenceRange","r"],["IRange","l"]]),me=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),ne=(e,a)=>{Array.from(a.keys()).forEach(k=>{const x=a.get(k);a.set(`${e}.${k}`,x)})},xe=new Map([["Scalar","*"],["FormulaError.Known","e"],["Date","Date"],["JSON","JSON"]]),be=new Map([]),oe="SheetXL";ne(oe,pe),ne(oe,me),ne(oe,be);const Te=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let W=null;async function ke(){if(W)return W;try{return await(await Promise.resolve().then(()=>require("./BFZbsyTO3uhLJbLO.cjs"))).initialize()}catch(e){throw W=null,e}finally{W=null}}exports.compileModule=async function(e){const a=e?.source??null;if(!a)return null;const k=(e.disableBundle||e.declarationsOnly)??!1,x=[Ce(),ke()],j=await Promise.all(x),X=j[0],s=j[1];let K="",M=null;const U=[],Y={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:s.ScriptTarget.ES2020},z="script",O=`${z}.ts`,G="lib.d.ts",_="global.d.ts",F={[O]:a,[G]:`
10
+ `,pe=new Map([["IReferenceRange","r"],["IRange","l"]]),me=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),ne=(e,a)=>{Array.from(a.keys()).forEach(k=>{const x=a.get(k);a.set(`${e}.${k}`,x)})},xe=new Map([["Scalar","*"],["FormulaError.Known","e"],["Date","Date"],["JSON","JSON"]]),be=new Map([]),oe="SheetXL";ne(oe,pe),ne(oe,me),ne(oe,be);const Te=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let W=null;async function ke(){if(W)return W;try{return await(await Promise.resolve().then(()=>require("./CGMIvqM1bAMiSrpL.cjs"))).initialize()}catch(e){throw W=null,e}finally{W=null}}exports.compileModule=async function(e){const a=e?.source??null;if(!a)return null;const k=(e.disableBundle||e.declarationsOnly)??!1,x=[Ce(),ke()],j=await Promise.all(x),X=j[0],s=j[1];let K="",M=null;const U=[],Y={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:s.ScriptTarget.ES2020},z="script",O=`${z}.ts`,G="lib.d.ts",_="global.d.ts",F={[O]:a,[G]:`
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
  `,[_]:X},Q={getSourceFile:(t,d,E,l)=>s.createSourceFile(t,F[t],s.ScriptTarget.Latest,!0),fileExists:t=>F[t]!==void 0,readFile:t=>F[t],writeFile:(t,d)=>{F[t]=d},getCurrentDirectory:()=>"./",getCanonicalFileName:t=>t,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:t=>G,getNewLine:()=>`
24
- `},I=s.createProgram([O,_],Y,Q),P=I.getTypeChecker(),Z=I.getSourceFile(O),y=I.emit();y.diagnostics.length>0&&console.warn(y.diagnostics),K=F[`${z}.js`];const n=(t,d,E,l)=>{if(t){if(t.kind===s.SyntaxKind.NumberKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.StringKeyword)d.scalar="s";else if(t.kind===s.SyntaxKind.BooleanKeyword)d.scalar="b";else if(t.kind===s.SyntaxKind.UndefinedKeyword||t.kind===s.SyntaxKind.NullKeyword||t.kind===s.SyntaxKind.VoidKeyword){if(l)return void S(t,new Error(`'undefined' is not a valid type for input: '${t?.parent?.name?.escapedText}'.`));d.scalar="z"}else if(t.kind===s.SyntaxKind.BigIntKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.AnyKeyword)d.scalar="z";else if(t.kind===s.SyntaxKind.ArrayType){const c=t.elementType;if(!c)return void S(t,new Error(`'Array' must be typed: '${t?.parent?.name?.escapedText}'.`));d.arrayDepth=(d.arrayDepth??0)+1,n(c,d,E,l)}else if(t.kind!==s.SyntaxKind.TupleType&&t.kind===s.SyntaxKind.TypeReference){const c=t.typeName?.getText?.()??null,N=pe.get(c);let T=!1;N&&(d.range=N,T=!0);const L=xe.get(c);if(L&&(d.scalar=L),L!==void 0&&(T=!0),l){const g=me.get(c);if(g)return g}else{const g=Te.get(c);if(g){const m={...d,...g()};let o=0;if(m.async&&o++,m.stream&&o++,o>1)return void S(t,new Error(`'${c}' cannot have multiple modifiers: '${t?.parent?.name?.escapedText}'.`));d=m,T=!0}}if(!T)return void S("node",new Error(`'${c}' is not a valid type: '${t?.parent?.name?.escapedText}'.`));const b=t.typeArguments;if(b){if(b.length!==1)return void S(t,new Error(`'${c}' must be typed with exactly 1 type: '${t?.parent?.name?.escapedText}'.`));n(b[0],d,E,l)}}}else S(t,new Error(`Type is not defined for '${d?.name??"return"}'.`))},i=[],S=(t,d)=>{i.push(d)};if(s.forEachChild(Z,t=>{if(E=t,(s.getCombinedModifierFlags(E)&s.ModifierFlags.Export)!==0&&s.isFunctionDeclaration(t)){const l={},c={parameters:{}},N=t?.name?.getText();try{l.name=N;const T=P.getSymbolAtLocation(t.name).getDocumentationComment(P);if(T&&T.length>0&&T[0].text){let m=T[0].text;m=m.replace(/[\r\n]+/g,"\\n").trim(),c.summary=m}const L={};n(t.type,L,l,!1),l.returnType=L;const b={};d=t,(s.getCombinedModifierFlags(d)&s.ModifierFlags.Default)!==0&&(b.default=!0,M=N),Object.keys(b).length>0&&(l.behavior=b),l.parameters=[];const g=new Map;for(let m=0;m<t.parameters.length;m++){const o=t.parameters[m],h={};h.name=o.name?.getText();const $=n(o.type,h,l,!0);if($){if(l.parameters.length!==0){const B=t?.parent,C=B?.name?.getText();return void S(t,new Error(`'${l.name}' contexts must be the first parameter: '${C}'.`))}l.context=$;continue}let v;if((o.initializer!==void 0&&o.initializer!==null||o.questionToken!==void 0&&o.questionToken!==null)&&(h.optional=!0,o.initializer))try{v=o.initializer.kind===s.SyntaxKind.StringLiteral?o.initializer.text:o.initializer.kind===s.SyntaxKind.NumericLiteral?parseFloat(o.initializer.text):o.initializer.kind===s.SyntaxKind.TrueKeyword||o.initializer.kind===s.SyntaxKind.FalseKeyword?o.initializer.kind===s.SyntaxKind.TrueKeyword:o.initializer.kind===s.SyntaxKind.NullKeyword?null:o.initializer.kind===s.SyntaxKind.ObjectLiteralExpression||o.initializer.kind===s.SyntaxKind.ArrayLiteralExpression?o.initializer.getText():o.initializer.getText?.()}catch(B){console.warn(`Couldn't extract default value for parameter '${h.name}'`,B)}o.dotDotDotToken&&(h.rest=!0),l.parameters.push(h);const w={description:""};c.parameters[h.name]=w;const u=P.getSymbolAtLocation(o.name).getDocumentationComment(P);u&&u.length>0&&u[0].text&&(w.description=u[0].text),v!==void 0&&(w.defaultValue=v),g.set(h.name,h)}if(t.jsDoc&&t.jsDoc.length>0){const m=t.jsDoc;for(let o=0;o<m.length;o++){const h=m[o]?.tags;if(h)for(let $=0;$<h.length;$++){const v=h[$];let w=v?.tagName?.text;if(!w)continue;w=w.toLowerCase();let u=v.comment;const B=w==="hidden";if((typeof u=="string"||B)&&(typeof u=="string"&&(u=u.replace(/[\r\n]+/g,"\\n").trim()),B||!u||(u=u.split(/\\n/)[0],u&&u.length!==0))){if(u&&typeof u=="string"){const C=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let D,R=u,V=[];for(;(D=C.exec(u))!==null;){const[ee,te,ye,ae]=D,fe=[ye.trim()];ae&&fe.push(ae.trim())}u=R,V.length>0&&w==="see"&&(c.links||(c.links=[]),c.links.push(...V))}if(w==="name"){const C=u;C!==N&&(c.name=C)}else if(w!=="description"){if(w==="summary"){const C=u;C&&(c.summary=C)}else if(w==="param"){const C=v.name?.text,D=g.get(C);if(!D){i.push(new Error(`Parameter '${C}' not found in function '${N}'.`));continue}if(v.typeExpression&&v.typeExpression.type)try{const R=v.typeExpression.type;if(R.kind===s.SyntaxKind.UnionType){const V=[];D.enums=V,R.types.forEach(ee=>{if(ee.kind===s.SyntaxKind.LiteralType){const te=ee.literal.text;te&&V.push(te)}})}}catch(R){console.warn("Error parsing JSDoc type expression:",R)}}else if(w==="returns"||w==="return")l.returnType.description=u;else if(w==="category")c.category=u;else if(w==="hidden"){let C=!0;const D=u?.toLowerCase();D==="false"?C=!1:D!=="true"&&(C=u),C!==!1&&(c.hidden=C??!0)}}}}}}Object.keys(l.returnType).length===0&&delete l.returnType,U.push([l,c])}catch(T){S(t,new Error(`'${N}': ${T.message}`))}}var d,E}),i.length>0)throw console.warn(i),new Error("There were compilation errors.",{cause:i});if(U.length===0)throw new Error("No exported functions.");const q=`${he.$.uuidV4()}-script`;try{k||i.length!==0||(K=await async function(t,d,E="/script.js",l="__SHEETXL"){try{const c=await async function(){if(A)return A;if(H){if(await H,!A)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return A}let g,m;H=new Promise((o,h)=>{g=o,m=h});try{const{initialize:o}=await Promise.resolve().then(()=>require("./BgHBftj6ugXjpyaF.cjs"));return A=await o(),g(),A}catch(o){throw console.error("Failed to import or initialize esbuild:",o),H=null,m(o),o}}(),N="@sheetxl/primitives",T=`
24
+ `},I=s.createProgram([O,_],Y,Q),P=I.getTypeChecker(),Z=I.getSourceFile(O),y=I.emit();y.diagnostics.length>0&&console.warn(y.diagnostics),K=F[`${z}.js`];const n=(t,d,E,l)=>{if(t){if(t.kind===s.SyntaxKind.NumberKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.StringKeyword)d.scalar="s";else if(t.kind===s.SyntaxKind.BooleanKeyword)d.scalar="b";else if(t.kind===s.SyntaxKind.UndefinedKeyword||t.kind===s.SyntaxKind.NullKeyword||t.kind===s.SyntaxKind.VoidKeyword){if(l)return void S(t,new Error(`'undefined' is not a valid type for input: '${t?.parent?.name?.escapedText}'.`));d.scalar="z"}else if(t.kind===s.SyntaxKind.BigIntKeyword)d.scalar="n";else if(t.kind===s.SyntaxKind.AnyKeyword)d.scalar="z";else if(t.kind===s.SyntaxKind.ArrayType){const c=t.elementType;if(!c)return void S(t,new Error(`'Array' must be typed: '${t?.parent?.name?.escapedText}'.`));d.arrayDepth=(d.arrayDepth??0)+1,n(c,d,E,l)}else if(t.kind!==s.SyntaxKind.TupleType&&t.kind===s.SyntaxKind.TypeReference){const c=t.typeName?.getText?.()??null,N=pe.get(c);let T=!1;N&&(d.range=N,T=!0);const L=xe.get(c);if(L&&(d.scalar=L),L!==void 0&&(T=!0),l){const g=me.get(c);if(g)return g}else{const g=Te.get(c);if(g){const m={...d,...g()};let o=0;if(m.async&&o++,m.stream&&o++,o>1)return void S(t,new Error(`'${c}' cannot have multiple modifiers: '${t?.parent?.name?.escapedText}'.`));d=m,T=!0}}if(!T)return void S("node",new Error(`'${c}' is not a valid type: '${t?.parent?.name?.escapedText}'.`));const b=t.typeArguments;if(b){if(b.length!==1)return void S(t,new Error(`'${c}' must be typed with exactly 1 type: '${t?.parent?.name?.escapedText}'.`));n(b[0],d,E,l)}}}else S(t,new Error(`Type is not defined for '${d?.name??"return"}'.`))},i=[],S=(t,d)=>{i.push(d)};if(s.forEachChild(Z,t=>{if(E=t,(s.getCombinedModifierFlags(E)&s.ModifierFlags.Export)!==0&&s.isFunctionDeclaration(t)){const l={},c={parameters:{}},N=t?.name?.getText();try{l.name=N;const T=P.getSymbolAtLocation(t.name).getDocumentationComment(P);if(T&&T.length>0&&T[0].text){let m=T[0].text;m=m.replace(/[\r\n]+/g,"\\n").trim(),c.summary=m}const L={};n(t.type,L,l,!1),l.returnType=L;const b={};d=t,(s.getCombinedModifierFlags(d)&s.ModifierFlags.Default)!==0&&(b.default=!0,M=N),Object.keys(b).length>0&&(l.behavior=b),l.parameters=[];const g=new Map;for(let m=0;m<t.parameters.length;m++){const o=t.parameters[m],h={};h.name=o.name?.getText();const $=n(o.type,h,l,!0);if($){if(l.parameters.length!==0){const B=t?.parent,C=B?.name?.getText();return void S(t,new Error(`'${l.name}' contexts must be the first parameter: '${C}'.`))}l.context=$;continue}let v;if((o.initializer!==void 0&&o.initializer!==null||o.questionToken!==void 0&&o.questionToken!==null)&&(h.optional=!0,o.initializer))try{v=o.initializer.kind===s.SyntaxKind.StringLiteral?o.initializer.text:o.initializer.kind===s.SyntaxKind.NumericLiteral?parseFloat(o.initializer.text):o.initializer.kind===s.SyntaxKind.TrueKeyword||o.initializer.kind===s.SyntaxKind.FalseKeyword?o.initializer.kind===s.SyntaxKind.TrueKeyword:o.initializer.kind===s.SyntaxKind.NullKeyword?null:o.initializer.kind===s.SyntaxKind.ObjectLiteralExpression||o.initializer.kind===s.SyntaxKind.ArrayLiteralExpression?o.initializer.getText():o.initializer.getText?.()}catch(B){console.warn(`Couldn't extract default value for parameter '${h.name}'`,B)}o.dotDotDotToken&&(h.rest=!0),l.parameters.push(h);const w={description:""};c.parameters[h.name]=w;const u=P.getSymbolAtLocation(o.name).getDocumentationComment(P);u&&u.length>0&&u[0].text&&(w.description=u[0].text),v!==void 0&&(w.defaultValue=v),g.set(h.name,h)}if(t.jsDoc&&t.jsDoc.length>0){const m=t.jsDoc;for(let o=0;o<m.length;o++){const h=m[o]?.tags;if(h)for(let $=0;$<h.length;$++){const v=h[$];let w=v?.tagName?.text;if(!w)continue;w=w.toLowerCase();let u=v.comment;const B=w==="hidden";if((typeof u=="string"||B)&&(typeof u=="string"&&(u=u.replace(/[\r\n]+/g,"\\n").trim()),B||!u||(u=u.split(/\\n/)[0],u&&u.length!==0))){if(u&&typeof u=="string"){const C=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let D,R=u,V=[];for(;(D=C.exec(u))!==null;){const[ee,te,ye,ae]=D,fe=[ye.trim()];ae&&fe.push(ae.trim())}u=R,V.length>0&&w==="see"&&(c.links||(c.links=[]),c.links.push(...V))}if(w==="name"){const C=u;C!==N&&(c.name=C)}else if(w!=="description"){if(w==="summary"){const C=u;C&&(c.summary=C)}else if(w==="param"){const C=v.name?.text,D=g.get(C);if(!D){i.push(new Error(`Parameter '${C}' not found in function '${N}'.`));continue}if(v.typeExpression&&v.typeExpression.type)try{const R=v.typeExpression.type;if(R.kind===s.SyntaxKind.UnionType){const V=[];D.enums=V,R.types.forEach(ee=>{if(ee.kind===s.SyntaxKind.LiteralType){const te=ee.literal.text;te&&V.push(te)}})}}catch(R){console.warn("Error parsing JSDoc type expression:",R)}}else if(w==="returns"||w==="return")l.returnType.description=u;else if(w==="category")c.category=u;else if(w==="hidden"){let C=!0;const D=u?.toLowerCase();D==="false"?C=!1:D!=="true"&&(C=u),C!==!1&&(c.hidden=C??!0)}}}}}}Object.keys(l.returnType).length===0&&delete l.returnType,U.push([l,c])}catch(T){S(t,new Error(`'${N}': ${T.message}`))}}var d,E}),i.length>0)throw console.warn(i),new Error("There were compilation errors.",{cause:i});if(U.length===0)throw new Error("No exported functions.");const q=`${he.$.uuidV4()}-script`;try{k||i.length!==0||(K=await async function(t,d,E="/script.js",l="__SHEETXL"){try{const c=await async function(){if(A)return A;if(H){if(await H,!A)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return A}let g,m;H=new Promise((o,h)=>{g=o,m=h});try{const{initialize:o}=await Promise.resolve().then(()=>require("./CSZA-xOWQAk2bPo6.cjs"));return A=await o(),g(),A}catch(o){throw console.error("Failed to import or initialize esbuild:",o),H=null,m(o),o}}(),N="@sheetxl/primitives",T=`
25
25
  export const FormulaContext = globalThis.${l}?.FormulaContext;
26
26
  export const ScalarType = globalThis.${l}?.ScalarType;
27
27
  export const Observable = globalThis.${l}?.Observable;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.15
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.16
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.