@sheetxl/studio-vanilla 0.7.13 → 0.7.15

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 (187) hide show
  1. package/browser/cjs/{Cf0pm5JLv3pWJAWd.cjs → B1-Q1_mvjFTOHAOo.cjs} +2 -2
  2. package/browser/cjs/{rwFdEXq7gPabWAk2.cjs → B2TdLGM1J31IITbd.cjs} +1 -1
  3. package/browser/cjs/{5FB2JNZkAB-WAguX.cjs → B3AmnoEtmGJ8xfss.cjs} +1 -1
  4. package/browser/cjs/{CGsvXu-FjuZ3-GmY.cjs → B5Lhlhn9N__KXzs_.cjs} +1 -1
  5. package/browser/cjs/{DIEzvzfJ8nRAv8L5.cjs → B5sHgRJA6NZf79td.cjs} +3 -3
  6. package/browser/cjs/{ByDHkyffMaSPKuyr.cjs → BI-BgFhqhGB3Ljue.cjs} +5 -5
  7. package/browser/cjs/BI9erhszojGZe0lb.cjs +327 -0
  8. package/browser/cjs/{DGRC9Vgd6jMELIa3.cjs → BMs_qxGcRNNT23f4.cjs} +1 -1
  9. package/browser/cjs/{NshRRIkBb-qQy-Dp.cjs → BNkPDK1Yo4iom9f-.cjs} +2 -2
  10. package/browser/cjs/{COKPliuQ_2UpHCww.cjs → BRBXFHgza4Ddksll.cjs} +1 -1
  11. package/browser/cjs/{DBRpIE6o5HyzsdGy.cjs → BRdAz2vZLLBpy7Fa.cjs} +1 -1
  12. package/browser/cjs/{C3r_CIITb0MvUeGK.cjs → BRlo-i2or58TOLFO.cjs} +1 -1
  13. package/browser/cjs/{78dOV0RAF5rgwQUW.cjs → BTRXLO6Dq2gDP0o0.cjs} +1 -1
  14. package/browser/cjs/{DV34hLiOdokdu4jR.cjs → BU3oz_RbRnXaOTad.cjs} +1 -1
  15. package/browser/cjs/{CAOf4UKmkwzLXOLK.cjs → BUkdipEgVwUBVNFK.cjs} +2 -2
  16. package/browser/cjs/{CWoAzlcnU0WyFA4f.cjs → Ba46OxYNXEIu1CyE.cjs} +1 -1
  17. package/browser/cjs/{CA8WuC6jtCmvswvn.cjs → Bb-tFbvYiZJx0L2l.cjs} +3 -3
  18. package/browser/cjs/{B9PX1doxigBD0DCk.cjs → BnNu46onFcxBcXdo.cjs} +2 -2
  19. package/browser/cjs/{BGZa_8CRodA2LEYx.cjs → BrB2XU-piMTwf11_.cjs} +2 -2
  20. package/browser/cjs/{BDtyqEH_YEwu9ldA.cjs → BuDo8DIzYlUPEqNs.cjs} +4 -4
  21. package/browser/cjs/{bBlfAuw2hA_trg2r.cjs → Bw23hD5CPgMvI0Oi.cjs} +1 -1
  22. package/browser/cjs/{B7X1IPkASiw0G90-.cjs → BxaWxfqdpo4bymeP.cjs} +2 -2
  23. package/browser/cjs/{DyZeaiDTtM0AauRr.cjs → C7lJpizc_L4AieTJ.cjs} +1 -1
  24. package/browser/cjs/{CVaFHItd3JqvYmTa.cjs → CCT-zIpJ5K6XA4dA.cjs} +1 -1
  25. package/browser/cjs/{DrMv8ZKeHEn8wl3K.cjs → CDIjwEhdhh8VJmIE.cjs} +1 -1
  26. package/browser/cjs/{Bmadznj02hAZ6Vcd.cjs → CDmkSZDy-1quavLe.cjs} +2 -2
  27. package/browser/cjs/{DG1ATeBBO4_HMBnR.cjs → CI-YuY1emQOr0OFm.cjs} +3 -3
  28. package/browser/cjs/{Cbxq2EWu1ezSBp-h.cjs → CIXH8B6D9X4yvTvc.cjs} +1 -1
  29. package/browser/cjs/{DpLkeIZqCp8B7njY.cjs → CP9ULZf_aAXkiwVf.cjs} +1 -1
  30. package/browser/cjs/{Cv_2k9kWPs4pyStL.cjs → CQ0TNHjA1O6wjlt1.cjs} +1 -1
  31. package/browser/cjs/{BbyzYQSgWxzepYCc.cjs → CZ1f9_eLsqHSatF0.cjs} +1 -1
  32. package/browser/cjs/{xQDGnleNFZuZFImw.cjs → CbpGtHImVZv3w2E0.cjs} +2 -2
  33. package/browser/cjs/{DbFebCV0almTLgec.cjs → Cc8dc9WaCwHtTCLI.cjs} +1 -1
  34. package/browser/cjs/{nX5Matbx22rSI3ap.cjs → ClTUsmOQrodRf-mW.cjs} +4 -4
  35. package/browser/cjs/{BlcJcQhBPqHfjX2x.cjs → CmwRwHxuD7yYl1X2.cjs} +1 -1
  36. package/browser/cjs/{D-WNKJUOmfSjrp-b.cjs → CutEY3UC3P15FLwu.cjs} +2 -2
  37. package/browser/cjs/{B_F2ElEw3X66F_L3.cjs → D6K5yUga3fxq3QzO.cjs} +2 -2
  38. package/browser/cjs/{BFGxbCIoibTxqnIi.cjs → D71igvASQh6YaRKS.cjs} +1 -1
  39. package/browser/cjs/{BWcEJnZcKKcHkz0f.cjs → D9A_6yfNBCZW1Yut.cjs} +2 -2
  40. package/browser/cjs/{BbkCk4nfjCe1Cpij.cjs → DBKOrhjg1iQfhM8q.cjs} +1 -1
  41. package/browser/cjs/{DlzkqGBXaS247pQN.cjs → DBdYYaMC8kfhMC6T.cjs} +8 -8
  42. package/browser/cjs/{H--CEwf6a7eiKJH_.cjs → DEZG38n7vLjyIoLj.cjs} +2 -2
  43. package/browser/cjs/{DlbSHBBSh5E0p5sG.cjs → DIkVQBvVNhxd2Hgq.cjs} +1 -1
  44. package/browser/cjs/{DYziJ4DC7YM5urcF.cjs → DIsmOLdqB5xTx_5n.cjs} +1 -1
  45. package/browser/cjs/{B_AseJLPSuGo6GDf.cjs → DLRknG25MMRL-hWn.cjs} +1 -1
  46. package/browser/cjs/{CkwyRC0iJA2hdrQs.cjs → DSPfRNy-x_cgHJuT.cjs} +1 -1
  47. package/browser/cjs/{DjfJ-t6bOqRCMflS.cjs → DSlPD9__Ie2bA0JY.cjs} +2 -2
  48. package/browser/cjs/{DF2YGBnOY3cxvU9n.cjs → D_2GG5bepokUbozn.cjs} +2 -2
  49. package/browser/cjs/{B1VvX7VCdcsH8Gti.cjs → Db0FjpP-OPHnJYml.cjs} +1 -1
  50. package/browser/cjs/{BcnudOYprbQZTGHW.cjs → DbVtsgeR40hMwm4O.cjs} +1 -1
  51. package/browser/cjs/{DRjUdQ9CefKRI7CX.cjs → Ds3y9sBGBX27FoUg.cjs} +1 -1
  52. package/browser/cjs/{l0VTRdM_ld0I_gdY.cjs → Tg3gIAGiKJ4cKpmz.cjs} +3 -3
  53. package/browser/cjs/{BoA1u6SJv0aFc353.cjs → XrmHgQYhHs2lWXBc.cjs} +1 -1
  54. package/browser/cjs/{CgeeIQXxuADgwpH5.cjs → h_oeDDJhmLYzEvYD.cjs} +1 -1
  55. package/browser/cjs/index.cjs +2 -2
  56. package/browser/cjs/{DuQa4Eq6hLkAi4L9.cjs → mywRJvop6cfIDOea.cjs} +1 -1
  57. package/browser/cjs/{CC0Dgap4BzVNkRIy.cjs → qmNI9CPpagH46QUf.cjs} +4 -4
  58. package/browser/cjs/{CNRVA3rz1kniUscm.cjs → xBbAyLWVpC-pol7c.cjs} +3 -3
  59. package/browser/cjs/{BMaZl9v1WOvtOADY.cjs → xsaHOmgHpJeqdBku.cjs} +2 -2
  60. package/browser/esm/{aklAXH3i-vJOFht0.mjs → 3ZNpgJh1JAQ5FW_a.mjs} +4 -4
  61. package/browser/esm/{DWbzCCaDXB8zMb60.mjs → 8knDfHlL7ydeMuZm.mjs} +2 -2
  62. package/{cdn/assets/DK0jAoefLeQgYeYg.js → browser/esm/A6HidFMpRS8n-9rh.mjs} +1 -1
  63. package/browser/esm/{Bx7aHQieKPFd6qH9.mjs → B7hgv4B7Ij2omJq3.mjs} +1 -1
  64. package/{cdn/assets/DrSQqt9_r5waPhyT.js → browser/esm/BDnc3w0_i7DtHnsN.mjs} +1 -1
  65. package/browser/esm/{D1Q3jk3SN052POoL.mjs → BFYaVMXfPK1MNYul.mjs} +10 -10
  66. package/browser/esm/{FQKDEomPzTYq5ls5.mjs → BO2aHuHd7DilNZr2.mjs} +1 -1
  67. package/browser/esm/{WUX2b0l28FRmJGMz.mjs → BUZ_cANT9ZuGL4m4.mjs} +1 -1
  68. package/browser/esm/{B6J0aAD-HabRj8lU.mjs → BWzM7UBYSuD1G8Mj.mjs} +1 -1
  69. package/browser/esm/{BTj16Jpq9LabC1ct.mjs → BXqqDozCELUxV_W0.mjs} +3 -3
  70. package/browser/esm/{FXAN_qipSw7b0rk9.mjs → BY9-N803dOeaX_wh.mjs} +6 -6
  71. package/browser/esm/{CFcNImdxR1fAen07.mjs → BalgRJiD8ePgxTIB.mjs} +1 -1
  72. package/browser/esm/{BmootmPaMrAYlh-i.mjs → BblHM0Twqi1rnpih.mjs} +7 -7
  73. package/{cdn/assets/BUWI98LWKzpLltoB.js → browser/esm/BgyUDs47eN9xnSS-.mjs} +1 -1
  74. package/browser/esm/{DXz1Oic-6nQRAewd.mjs → BohYc4gc2VDIbm05.mjs} +29 -29
  75. package/browser/esm/{BRChXYjL4dgT5Acf.mjs → Bq5099O7xg-lVXuY.mjs} +2 -2
  76. package/{cdn/assets/2rQi-ZQGcQ7M8d31.js → browser/esm/BsSkIphrOxGYltXe.mjs} +16512 -16424
  77. package/{cdn/assets/Ccc8HN1TvaWenXG3.js → browser/esm/BtWNUUl3g44WMwNR.mjs} +1 -1
  78. package/{cdn/assets/D6Ajj2DYdbc3SDFs.js → browser/esm/BxV20zsFEjgip2y6.mjs} +1 -1
  79. package/{cdn/assets/BnAowM0EnxUXrnrv.js → browser/esm/Bxv2rkSl9hwQcRvq.mjs} +1 -1
  80. package/browser/esm/{Bs2Gjt2rGx2tBBuf.mjs → C4Xem-aBM1R7QwCU.mjs} +9 -9
  81. package/{cdn/assets/BXZvKDNcrjMpMjkM.js → browser/esm/C5fL6nkfwqKZUHg9.mjs} +1 -1
  82. package/browser/esm/{DRJpIWMEwovO1buV.mjs → C82d3qmtydGLJe4h.mjs} +1 -1
  83. package/browser/esm/{U0p5BBqppTmlxGkR.mjs → CM6kILs8268XIyTJ.mjs} +1 -1
  84. package/browser/esm/{qKezPJyu8tVx4M7G.mjs → CMOK0Lp_UBstdXLV.mjs} +1 -1
  85. package/{cdn/assets/CljwsKtaO3RXpkQp.js → browser/esm/COE6K0spMfq_HU2V.mjs} +1 -1
  86. package/{cdn/assets/DpKjaZFvNDajFoPy.js → browser/esm/Cisp3lTFUui5ryvu.mjs} +1 -1
  87. package/browser/esm/{nedndZDepZuCPUPk.mjs → Cui9S75J-gvt2yNt.mjs} +1 -1
  88. package/browser/esm/{C0IT8vG1z0PurDHx.mjs → CvPHgij2NPsDJTob.mjs} +12 -12
  89. package/{cdn/assets/9ctvSwmM18jYwMFT.js → browser/esm/Cz_bQii1mrZOC05r.mjs} +1 -1
  90. package/browser/esm/{DpoNkpY8iPCn3m4C.mjs → CzpOCNnjeoVrvO4Z.mjs} +1 -1
  91. package/browser/esm/{CL5GtpNDLILXmHu_.mjs → D1q2XtgIocrhJLcq.mjs} +40 -40
  92. package/browser/esm/{D-TgOIJZ4k8efoZs.mjs → DB6FhGNM3z8OH5tz.mjs} +1 -1
  93. package/{cdn/assets/Dby3rJONLIgRXJEp.js → browser/esm/DE7tSbRtKL69T3_v.mjs} +1 -1
  94. package/browser/esm/{Bm4rfr_Cx_aoCmLn.mjs → DFSy7bE3QUdHt27F.mjs} +1 -1
  95. package/browser/esm/{D9h0ke7a7mIAuw72.mjs → DGYhuZHd3V0Gh0ke.mjs} +1 -1
  96. package/browser/esm/{C-lXyFUBEAW5exiY.mjs → DH2o4v8mWhpvh0D0.mjs} +2 -2
  97. package/browser/esm/{BvJMrNHXbOKCTgRb.mjs → DMCxzzCNlLmvw96J.mjs} +2 -2
  98. package/browser/esm/{C7URrQo6Wkhr5jT8.mjs → DMqxPxfOHNPF-t3H.mjs} +9 -9
  99. package/{cdn/assets/BRlrhCxrPmpasdAq.js → browser/esm/DQeB2mVQCaG9tMN_.mjs} +1 -1
  100. package/browser/esm/{DDqu9PmY-OCWxh4y.mjs → DT9-iogoIgSWuxPv.mjs} +2 -2
  101. package/browser/esm/{D_gSswRpVgwA_hbg.mjs → DTTAEg3pYcvGZd9-.mjs} +9 -9
  102. package/browser/esm/{BkCbuVVBeJSHG13N.mjs → DTr1BbEwkAICW915.mjs} +1 -1
  103. package/browser/esm/{pImSI15xRLyAC5kV.mjs → DcpDzI_6k90siBEW.mjs} +2 -2
  104. package/browser/esm/{CqUeRLqKKxuj7CGF.mjs → Df8RGBp7QpVNGJn4.mjs} +1 -1
  105. package/browser/esm/{BcheI2SkDXSDfNWf.mjs → DjIq2Ke76uH9pcO9.mjs} +10 -10
  106. package/{cdn/assets/DPteSel_Kz5jyMA-.js → browser/esm/Dj_YYnsXYavjAuVL.mjs} +1 -1
  107. package/browser/esm/{BvT1qZHVf1vKwVRj.mjs → DmXSYrO0gKHORvJt.mjs} +4 -4
  108. package/browser/esm/{spROgAvd5ibinf8q.mjs → DmbpOGNvt8-oc9x0.mjs} +1 -1
  109. package/{cdn/assets/D7NYy1UIGY4JyQeb.js → browser/esm/DnY7_-yLNdBeU5yf.mjs} +1 -1
  110. package/{cdn/assets/CSBwJrMTSTtYvxJu.js → browser/esm/DsNxSyAKms-2-HKL.mjs} +2 -2
  111. package/browser/esm/{DOc3EgZdz6rFbqel.mjs → HUdUdNW9fXbvaS8n.mjs} +2 -2
  112. package/browser/esm/{Bo3eioKp9uerGFhK.mjs → VHOqmWkVzZX7RAnD.mjs} +3 -3
  113. package/browser/esm/{wv7W2ELnbb8ZKNXB.mjs → _h99tUXP3kxYC9Pl.mjs} +14 -14
  114. package/browser/esm/{dn2I9QGElGE3tUEt.mjs → bfIAxnq5wBAQVpEp.mjs} +4 -4
  115. package/browser/esm/{D64vxslweSTP13xR.mjs → i7x0htRdVcSRA1ik.mjs} +3 -3
  116. package/browser/esm/index.mjs +2 -2
  117. package/{cdn/assets/COiAzrLUE7r62nw2.js → browser/esm/l7k_c0SCQQ2K6DYD.mjs} +1 -1
  118. package/browser/esm/{6CzQuXrkb2vam89N.mjs → qEUUZ-DdqkShuv-H.mjs} +1 -1
  119. package/cdn/assets/{fZNj1uwvRzWquyu2.js → 2OD3yppTzA2m11cs.js} +2 -2
  120. package/{browser/esm/DK0jAoefLeQgYeYg.mjs → cdn/assets/A6HidFMpRS8n-9rh.js} +1 -1
  121. package/cdn/assets/{BG6gRExeTqxF4Uzb.js → BDa89NUT06bxkZf_.js} +6 -6
  122. package/{browser/esm/DrSQqt9_r5waPhyT.mjs → cdn/assets/BDnc3w0_i7DtHnsN.js} +1 -1
  123. package/cdn/assets/{FQKDEomPzTYq5ls5.js → BO2aHuHd7DilNZr2.js} +1 -1
  124. package/cdn/assets/{BaWQ5jdLwZpcoIbf.js → BQM02SKE1KN4eC4d.js} +30 -30
  125. package/cdn/assets/{BM3Woa_n5vyDkAGU.js → BTfe4ekgnqi5nDzf.js} +13 -13
  126. package/cdn/assets/{WUX2b0l28FRmJGMz.js → BUZ_cANT9ZuGL4m4.js} +1 -1
  127. package/cdn/assets/{B6J0aAD-HabRj8lU.js → BWzM7UBYSuD1G8Mj.js} +1 -1
  128. package/cdn/assets/{BotF4v7CfYUVDgdR.js → BXEk6GO0UDyEdFTW.js} +4 -4
  129. package/cdn/assets/{CFcNImdxR1fAen07.js → BalgRJiD8ePgxTIB.js} +1 -1
  130. package/cdn/assets/{BJNZzjzhcS_HDPnu.js → Bg5oD1KiEfqk43Xa.js} +20 -20
  131. package/{browser/esm/BUWI98LWKzpLltoB.mjs → cdn/assets/BgyUDs47eN9xnSS-.js} +1 -1
  132. package/cdn/assets/{BQ4iB5PSJidcVDir.js → Bo0xq5rge9nnLxou.js} +5 -5
  133. package/cdn/assets/{D58uHrTYGk0cexx3.js → BqLQw9n0IHaUtYov.js} +2 -2
  134. package/{browser/esm/Ccc8HN1TvaWenXG3.mjs → cdn/assets/BtWNUUl3g44WMwNR.js} +1 -1
  135. package/{browser/esm/D6Ajj2DYdbc3SDFs.mjs → cdn/assets/BxV20zsFEjgip2y6.js} +1 -1
  136. package/{browser/esm/BnAowM0EnxUXrnrv.mjs → cdn/assets/Bxv2rkSl9hwQcRvq.js} +1 -1
  137. package/cdn/assets/{Dbkzw2Dbc79x_TGO.js → C4rehE8GWewQxvVt.js} +2 -2
  138. package/{browser/esm/BXZvKDNcrjMpMjkM.mjs → cdn/assets/C5fL6nkfwqKZUHg9.js} +1 -1
  139. package/cdn/assets/{DRJpIWMEwovO1buV.js → C82d3qmtydGLJe4h.js} +1 -1
  140. package/cdn/assets/{DZ_aNpywKZjJOp1j.js → CI47Ghzg-dJSgTSB.js} +2 -2
  141. package/cdn/assets/{U0p5BBqppTmlxGkR.js → CM6kILs8268XIyTJ.js} +1 -1
  142. package/cdn/assets/{qKezPJyu8tVx4M7G.js → CMOK0Lp_UBstdXLV.js} +1 -1
  143. package/{browser/esm/CljwsKtaO3RXpkQp.mjs → cdn/assets/COE6K0spMfq_HU2V.js} +1 -1
  144. package/{browser/esm/DpKjaZFvNDajFoPy.mjs → cdn/assets/Cisp3lTFUui5ryvu.js} +1 -1
  145. package/cdn/assets/{CtyZHJTYP-9LgQxL.js → CqajedR088Iz9vaB.js} +4 -4
  146. package/cdn/assets/{nedndZDepZuCPUPk.js → Cui9S75J-gvt2yNt.js} +1 -1
  147. package/cdn/assets/{DwXZtsZKFTghm2xd.js → CxC2kj_05Z7-AlzN.js} +4 -4
  148. package/cdn/assets/{D69keuuL7hU1Dnic.js → CxW5wx-dQFXDnT7O.js} +3 -3
  149. package/cdn/assets/{BiLJuKv_22l0dghP.js → CycTtuXXBRx2_QZE.js} +4 -4
  150. package/{browser/esm/9ctvSwmM18jYwMFT.mjs → cdn/assets/Cz_bQii1mrZOC05r.js} +1 -1
  151. package/cdn/assets/{DpoNkpY8iPCn3m4C.js → CzpOCNnjeoVrvO4Z.js} +1 -1
  152. package/cdn/assets/{BZNMDd-HvJEwnULT.js → D4FATUYGcpxnU7CO.js} +3 -3
  153. package/cdn/assets/{DgqBfvIFmA0jgqHV.js → D6Api4Yp6SORK1LJ.js} +4 -4
  154. package/cdn/assets/{DxBSfeFnzh3av1Kx.js → D9_ukkvx-ydJCAKP.js} +6 -6
  155. package/cdn/assets/{D-TgOIJZ4k8efoZs.js → DB6FhGNM3z8OH5tz.js} +1 -1
  156. package/cdn/assets/{DLD33vocqg50Srt6.js → DCrGjzRdNWi_iM5p.js} +4 -4
  157. package/{browser/esm/Dby3rJONLIgRXJEp.mjs → cdn/assets/DE7tSbRtKL69T3_v.js} +1 -1
  158. package/cdn/assets/{Bm4rfr_Cx_aoCmLn.js → DFSy7bE3QUdHt27F.js} +1 -1
  159. package/cdn/assets/{D9h0ke7a7mIAuw72.js → DGYhuZHd3V0Gh0ke.js} +1 -1
  160. package/{browser/esm/BRlrhCxrPmpasdAq.mjs → cdn/assets/DQeB2mVQCaG9tMN_.js} +1 -1
  161. package/cdn/assets/{rn1QhkA9d6ye5hFe.js → DRc4MDQOWkxKCS_R.js} +1 -1
  162. package/cdn/assets/{BkCbuVVBeJSHG13N.js → DTr1BbEwkAICW915.js} +1 -1
  163. package/cdn/assets/{DDx51j_svq2hiZh0.js → DUbCqQ5CNOQ5Mcti.js} +3 -3
  164. package/cdn/assets/{DdQtG7fDOGw-8weZ.js → DayPy4E21nXUd8Y1.js} +7 -7
  165. package/cdn/assets/{CqUeRLqKKxuj7CGF.js → Df8RGBp7QpVNGJn4.js} +1 -1
  166. package/cdn/assets/{CPH8yJrWplfJS73i.js → DhYQTb4befWn8lpY.js} +12 -12
  167. package/cdn/assets/{DpCeTRhgoRFi6SO-.js → Ditq4Vr5l_7zsUkk.js} +2 -2
  168. package/{browser/esm/DPteSel_Kz5jyMA-.mjs → cdn/assets/Dj_YYnsXYavjAuVL.js} +1 -1
  169. package/cdn/assets/{D-x-yb-ab3PSsoLp.js → Djdu6ALO080Y4tUz.js} +1 -1
  170. package/cdn/assets/{tuC-wgl8wZ_I-jrr.js → DlXl8sxY4BFovN5n.js} +2 -2
  171. package/cdn/assets/{spROgAvd5ibinf8q.js → DmbpOGNvt8-oc9x0.js} +1 -1
  172. package/{browser/esm/D7NYy1UIGY4JyQeb.mjs → cdn/assets/DnY7_-yLNdBeU5yf.js} +1 -1
  173. package/cdn/assets/{Cvrm9_9yv1m363G3.js → Do_5uDzLBTZoB7WW.js} +4 -4
  174. package/cdn/assets/{BVOgz3zzOoeIDWUT.js → DrZrn_3v9aIi0crm.js} +8 -8
  175. package/{browser/esm/Dp3iqrsApKfm3-yY.mjs → cdn/assets/DstNpjLILDp3a6bz.js} +16904 -17164
  176. package/cdn/assets/{Bwl5DOEl0NPZHs_1.js → FdFeMSkVPJ8zgmzM.js} +7 -7
  177. package/cdn/assets/{C9rYbbtn-ueZFc_k.js → XR-5QqK3XFIFxM3y.js} +3 -3
  178. package/cdn/assets/{LG_tevT5cNrZTkZi.js → gL5QS2cF2WeCcpKq.js} +14 -14
  179. package/{browser/esm/COiAzrLUE7r62nw2.mjs → cdn/assets/l7k_c0SCQQ2K6DYD.js} +1 -1
  180. package/{browser/esm/BXTfqh_OHTdckyrX.mjs → cdn/assets/m1dOO6lTGVJkSMAb.js} +2 -2
  181. package/cdn/assets/{CL4yCbgGijoAlCpu.js → omgXBaEiWh0IPQN9.js} +2 -2
  182. package/cdn/assets/{6CzQuXrkb2vam89N.js → qEUUZ-DdqkShuv-H.js} +1 -1
  183. package/cdn/assets/{aecrCD5ZX8G4uYzf.js → y_T3grXtQKQhx28K.js} +8 -8
  184. package/cdn/index.js +2 -2
  185. package/cdn/loader.js +1 -1
  186. package/package.json +3 -3
  187. package/browser/cjs/B4skn6YstpEWT1bs.cjs +0 -327
@@ -1,9 +1,9 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.13
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.15
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 ee=require("./B4skn6YstpEWT1bs.cjs");function Xr(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return!0;return!1}function to(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return e[r];return null}function ci(e){var t=e;if(t===void 0){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function Er(e,t){try{return new RegExp(e,"g").exec(t)}catch{return null}}function Sr(e){return e.replace(/_/g,".")}function dn(e,t){var n=null,r="-1";return Xr(e,function(i){var o,a,s,u=Er("("+i.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",t);return!(!u||i.brand||(n=i,r=u[3]||"-1",i.versionAlias?r=i.versionAlias:i.versionTest&&(o=i.versionTest.toLowerCase(),a=t,s=Er("("+o+")((?:\\/|\\s|:)([0-9|\\.|_]+))",a),r=(s?s[3]:"")||r),r=Sr(r),0))}),{preset:n,version:r}}function zn(e,t){var n={brand:"",version:"-1"};return Xr(e,function(r){var i=eo(t,r);return!!i&&(n.brand=r.id,n.version=r.versionAlias||i.version,n.version!=="-1")}),n}function eo(e,t){return to(e,function(n){var r=n.brand;return Er(""+t.test,r.toLowerCase())})}var li=[{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"}],fi=[{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}],sr=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],no=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],pi=[{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 di(e){return!!dn(no,e).preset}function ca(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map(function(r){return r.split(" ").map(function(i){return i?""+e+i:""}).join(" ")}).join(" ")}function Ae(e,t){return function(n){n&&(e[t]=n)}}function ro(e,t,n){return function(r){r&&(e[t][n]=r)}}var Nr="undefined",io=typeof window!==Nr,la=typeof document!==Nr&&document,fa=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],Ht=1e-7,Gn={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,r){return(e*r+t*n)/(n+r)}function Wr(e){return typeof e===Nr}function we(e){return e&&typeof e=="object"}function ne(e){return Array.isArray(e)}function nn(e){return typeof e=="string"}function Vn(e){return typeof e=="number"}function oo(e){return typeof e=="function"}function ao(e,t,n,r,i){return Dr(e,t,n)?n:(function(o,a,s,u,f){for(var p,c=function(d){var g=a[d].trim();if(g===o.close&&!Dr(o,a,d))return{value:d};var v=d,b=he(f,function(x){return x.open===g});if(b&&(v=ao(b,a,d,u,f)),v===-1)return p=d,"break";p=d=v},l=s;l<u;++l){var h=c(l);if(l=p,typeof h=="object")return h.value;if(h==="break")break}return-1})(e,t,n+1,r,i)}function Dr(e,t,n){if(!e.ignore)return null;var r=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(r)}function qr(e,t){var n=nn(t)?{separator:t}:t,r=n.separator,i=r===void 0?",":r,o=n.isSeparateFirst,a=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,u=s===void 0?a:s,f=n.openCloseCharacters,p=f===void 0?fa:f,c=p.map(function(m){var S=m.open,_=m.close;return S===_?S:S+"|"+_}).join("|"),l=new RegExp("(\\s*"+i+"\\s*|"+c+"|\\s+)","g"),h=e.split(l).filter(function(m){return m&&m!=="undefined"}),d=h.length,g=[],v=[];function b(){return!!v.length&&(g.push(v.join("")),v=[],!0)}for(var x,y=function(m){var S,_,k=h[m].trim(),F=m,O=he(p,function(R){return R.open===k}),w=he(p,function(R){return R.close===k});if(O){if((F=ao(O,h,m,d,p))!==-1&&u)return b()&&o?(x=m,"break"):(g.push(h.slice(m,F+1).join("")),m=F,o?(x=m,"break"):(x=m,"continue"))}else{if(w&&!Dr(w,h,m)){var D=(function(){for(var R=0,P=0,B=arguments.length;P<B;P++)R+=arguments[P].length;var A=Array(R),z=0;for(P=0;P<B;P++)for(var G=arguments[P],I=0,V=G.length;I<V;I++,z++)A[z]=G[I];return A})(p);return D.splice(p.indexOf(w),1),{value:qr(e,{separator:i,isSeparateFirst:o,isSeparateOnlyOpenClose:a,isSeparateOpenClose:u,openCloseCharacters:D})}}if(S=k,_=i,!((_!==""&&_!=" "||S!==""&&S!=" ")&&S!==_||a))return b(),o?(x=m,"break"):(x=m,"continue")}F===-1&&(F=d-1),v.push(h.slice(m,F+1).join("")),x=m=F},E=0;E<d;++E){var M=y(E);if(E=x,typeof M=="object")return M.value;if(M==="break")break}return v.length&&g.push(v.join("")),g}function Mn(e){return qr(e,"")}function hn(e){return qr(e,",")}function nr(e){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!t)return{prefix:"",unit:"",value:NaN};var n=t[1],r=t[2];return{prefix:n,unit:t[3],value:parseFloat(r)}}function Zn(){return Date.now?Date.now():new Date().getTime()}function $e(e,t,n){n===void 0&&(n=-1);for(var r=e.length,i=0;i<r;++i)if(t(e[i],i,e))return i;return n}function he(e,t,n){var r=$e(e,t);return r>-1?e[r]:n}var gi,vi,so=(gi=Zn(),(vi=io&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame))?vi.bind(window):function(e){var t=Zn();return setTimeout(function(){e(t-gi)},1e3/60)}),pa=(function(){var e=io&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return e?e.bind(window):function(t){clearTimeout(t)}})();function wn(e){return Object.keys(e)}function ae(e,t){var n=nr(e),r=n.value,i=n.unit;if(we(t)){var o=t[i];if(o){if(oo(o))return o(r);if(Gn[i])return Gn[i](r,o)}}else if(i==="%")return r*t/100;return Gn[i]?Gn[i](r):r}function Mr(e,t,n){return Math.max(t,Math.min(e,n))}function mi(e,t,n,r){return r===void 0&&(r=e[0]/e[1]),[[kt(t[0],Ht),kt(t[0]/r,Ht)],[kt(t[1]*r,Ht),kt(t[1],Ht)]].filter(function(i){return i.every(function(o,a){var s=t[a],u=kt(s,Ht);return n?o<=s||o<=u:o>=s||o>=u})})[0]||e}function wr(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return t?n/t:0}function de(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=Math.atan2(r,n);return i>=0?i:i+2*Math.PI}function bi(e){var t,n=(t=e,[0,1].map(function(o){return wr(t.map(function(a){return a[o]}))})),r=de(n,e[0]),i=de(n,e[1]);return r<i&&i-r<Math.PI||r>i&&i-r<-Math.PI?1:-1}function gn(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 xi(e,t){return e.forEach(function(n,r){e[r]=kt(e[r],t)}),e}function Ee(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function uo(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function co(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function Jt(e,t,n,r){e.addEventListener(t,n,r)}function Ut(e,t,n,r){e.removeEventListener(t,n,r)}function jr(e){return e?.ownerDocument||la}function Lr(e){return jr(e).documentElement}function Be(e){return jr(e).body}function Pe(e){var t;return((t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView)||window}function lo(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function Hr(e){return we(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}function da(e,t,n,r,i,o){for(var a=0;a<i;++a){var s=n+a*i,u=r+a*i;e[s]+=e[u]*o,t[s]+=t[u]*o}}function ha(e,t,n,r,i){for(var o=0;o<i;++o){var a=n+o*i,s=r+o*i,u=e[a],f=t[a];e[a]=e[s],e[s]=u,t[a]=t[s],t[s]=f}}function ga(e,t,n,r,i){for(var o=0;o<r;++o){var a=n+o*r;e[a]/=i,t[a]/=i}}function ze(e,t){t===void 0&&(t=Math.sqrt(e.length));for(var n=e.slice(),r=It(t),i=0;i<t;++i){var o=t*i+i;if(!kt(n[o],Ht)){for(var a=i+1;a<t;++a)if(n[t*i+a]){ha(n,r,i,a,t);break}}if(!kt(n[o],Ht))return[];for(ga(n,r,i,t,n[o]),a=0;a<t;++a){var s=a,u=n[a+i*t];kt(u,Ht)&&i!==a&&da(n,r,s,i,t,-u)}}return r}function Pn(e,t){for(var n=e.slice(),r=e.length;r<t-1;++r)n[r]=0;return n[t-1]=1,n}function Ge(e,t,n){if(t===void 0&&(t=Math.sqrt(e.length)),t===n)return e;for(var r=It(n),i=Math.min(t,n),o=0;o<i-1;++o){for(var a=0;a<i-1;++a)r[o*n+a]=e[o*t+a];r[(o+1)*n-1]=e[(o+1)*t-1],r[(n-1)*n+o]=e[(t-1)*t+o]}return r[n*n-1]=e[t*t-1],r}function Kn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=It(e);return t.forEach(function(i){r=Vt(r,i,e)}),r}function Vt(e,t,n){n===void 0&&(n=Math.sqrt(e.length));var r=[],i=e.length/n,o=t.length/i;if(!i)return t;if(!o)return e;for(var a=0;a<n;++a)for(var s=0;s<o;++s){r[s*n+a]=0;for(var u=0;u<i;++u)r[s*n+a]+=e[u*n+a]*t[s*i+u]}return r}function Wt(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),i=0;i<n;++i)r[i]=r[i]+t[i];return r}function bt(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),i=0;i<n;++i)r[i]=r[i]-t[i];return r}function va(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 fo(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 xe(e,t,n){n===void 0&&(n=t.length);var r=Vt(e,t,n),i=r[n-1];return r.map(function(o){return o/i})}function ma(e,t){return Vt(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 ba(e,t){return Vt(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 xa(e,t){return Vt(e,rr(t,4))}function In(e,t){var n=t[0],r=n===void 0?1:n,i=t[1],o=i===void 0?1:i,a=t[2];return Vt(e,[r,0,0,0,0,o,0,0,0,0,a===void 0?1:a,0,0,0,0,1],4)}function ur(e,t){var n=t[0],r=n===void 0?0:n,i=t[1],o=i===void 0?0:i,a=t[2];return Vt(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,o,a===void 0?0:a,1],4)}function yi(e,t){return Vt(e,t,4)}function rr(e,t){var n=Math.cos(e),r=Math.sin(e),i=It(t);return i[0]=n,i[1]=r,i[t]=-r,i[t+1]=n,i}function It(e){for(var t=e*e,n=[],r=0;r<t;++r)n[r]=r%(e+1)?0:1;return n}function po(e,t){for(var n=It(t),r=Math.min(e.length,t-1),i=0;i<r;++i)n[(t+1)*i]=e[i];return n}function Ie(e,t){for(var n=It(t),r=Math.min(e.length,t-1),i=0;i<r;++i)n[t*(t-1)+i]=e[i];return n}function ho(e,t,n,r,i,o,a,s){var u=e[0],f=e[1],p=t[0],c=t[1],l=n[0],h=n[1],d=r[0],g=r[1],v=i[0],b=i[1],x=o[0],y=o[1],E=a[0],M=a[1],m=s[0],S=s[1],_=ze([u,0,p,0,l,0,d,0,f,0,c,0,h,0,g,0,1,0,1,0,1,0,1,0,0,u,0,p,0,l,0,d,0,f,0,c,0,h,0,g,0,1,0,1,0,1,0,1,-v*u,-b*u,-x*p,-y*p,-E*l,-M*l,-m*d,-S*d,-v*f,-b*f,-x*c,-y*c,-E*h,-M*h,-m*g,-S*g],8);if(!_.length)return[];var k=Vt(_,[v,b,x,y,E,M,m,S],8);return k[8]=1,Ge((function(F,O){O===void 0&&(O=Math.sqrt(F.length));for(var w=[],D=0;D<O;++D)for(var R=0;R<O;++R)w[R*O+D]=F[O*D+R];return w})(k),3,4)}var vn=function(){return vn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},vn.apply(this,arguments)};function Vr(e,t){return t===void 0&&(t=0),We(Qe(e,t))}function We(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 r=n.matrixFunction,i=n.functionValue;r&&(t=r(t,i))}),t}function Qe(e,t){return t===void 0&&(t=0),(ne(e)?e:Mn(e)).map(function(n){var r,i=!(r=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(n))||r.length<4?{}:{prefix:r[1],value:r[2],suffix:r[3]},o=i.prefix,a=i.value,s=null,u=o,f="";if(o==="translate"||o==="translateX"||o==="translate3d"){var p=we(t)?vn(vn({},t),{"o%":t["%"]}):{"%":t,"o%":t},c=hn(a).map(function(k,F){return p["%"]=F===0&&"x%"in p?t["x%"]:F===1&&"y%"in p?t["y%"]:t["o%"],ae(k,p)}),l=c[0],h=c[1],d=h===void 0?0:h,g=c[2];s=ur,f=[l,d,g===void 0?0:g]}else if(o==="translateY")s=ur,f=[0,d=ae(a,we(t)?vn({"%":t["y%"]},t):{"%":t}),0];else if(o==="translateZ")s=ur,f=[0,0,parseFloat(a)];else if(o==="scale"||o==="scale3d"){var v=hn(a).map(function(k){return parseFloat(k)}),b=v[0],x=v[1],y=x===void 0?b:x,E=v[2];s=In,f=[b,y,E===void 0?1:E]}else if(o==="scaleX")s=In,f=[b=parseFloat(a),1,1];else if(o==="scaleY")s=In,f=[1,y=parseFloat(a),1];else if(o==="scaleZ")s=In,f=[1,1,parseFloat(a)];else if(o==="rotate"||o==="rotateZ"||o==="rotateX"||o==="rotateY"){var M=nr(a),m=M.unit,S=M.value;o==="rotate"||o==="rotateZ"?(u="rotateZ",s=xa):o==="rotateX"?s=ma:o==="rotateY"&&(s=ba),f=m==="rad"?S:S*Math.PI/180}else if(o==="matrix3d")s=yi,f=hn(a).map(function(k){return parseFloat(k)});else if(o==="matrix"){var _=hn(a).map(function(k){return parseFloat(k)});s=yi,f=[_[0],_[1],0,0,_[2],_[3],0,0,0,0,1,0,_[4],_[5],0,1]}else u="";return{name:o,functionName:u,value:a,matrixFunction:s,functionValue:f}})}var ya=(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,r){var i=this.keys,o=this.values,a=i.indexOf(n),s=a===-1?i.length:a;i[s]=n,o[s]=r},e})(),Ea=(function(){function e(){this.object={}}var t=e.prototype;return t.get=function(n){return this.object[n]},t.set=function(n,r){this.object[n]=r},e})(),Sa=typeof Map=="function",Da=(function(){function e(){}var t=e.prototype;return t.connect=function(n,r){this.prev=n,this.next=r,n&&(n.next=this),r&&(r.prev=this)},t.disconnect=function(){var n=this.prev,r=this.next;n&&(n.next=r),r&&(r.prev=n)},t.getIndex=function(){for(var n=this,r=-1;n;)n=n.prev,++r;return r},e})(),Ma=(function(){function e(n,r,i,o,a,s,u,f){this.prevList=n,this.list=r,this.added=i,this.removed=o,this.changed=a,this.maintained=s,this.changedBeforeAdded=u,this.fixed=f}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,r,i,o,a=(n=this.changedBeforeAdded,r=this.fixed,i=[],o=[],n.forEach(function(f){var p=f[0],c=f[1],l=new Da;i[p]=l,o[c]=l}),i.forEach(function(f,p){f.connect(i[p-1])}),n.filter(function(f,p){return!r[p]}).map(function(f,p){var c=f[0],l=f[1];if(c===l)return[0,0];var h=i[c],d=o[l-1],g=h.getIndex();return h.disconnect(),d?h.connect(d,d.next):h.connect(void 0,i[0]),[g,h.getIndex()]})),s=this.changed,u=[];this.cacheOrdered=a.filter(function(f,p){var c=f[0],l=f[1],h=s[p],d=h[0],g=h[1];if(c!==l)return u.push([d,g]),!0}),this.cachePureChanged=u},e})();function go(e,t,n){var r=Sa?Map:n?Ea:ya,i=n||function(x){return x},o=[],a=[],s=[],u=e.map(i),f=t.map(i),p=new r,c=new r,l=[],h=[],d={},g=[],v=0,b=0;return u.forEach(function(x,y){p.set(x,y)}),f.forEach(function(x,y){c.set(x,y)}),u.forEach(function(x,y){var E=c.get(x);E===void 0?(++b,a.push(y)):d[E]=b}),f.forEach(function(x,y){var E=p.get(x);E===void 0?(o.push(y),++v):(s.push([E,y]),b=d[y]||0,l.push([E-b,y-v]),h.push(y===E),E!==y&&g.push([E,y]))}),a.reverse(),new Ma(e,t,o,a,g,s,l,h)}var Ei,wa=(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),r=go(this.list,n,this.findKeyCallback);return this.list=n,r},e})(),vo=function(e,t){return(vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])})(e,t)},Ca=typeof Map=="function"?void 0:(Ei=0,function(e){return e.__DIFF_KEY__||(e.__DIFF_KEY__=++Ei)}),mo=(function(e){function t(n){return n===void 0&&(n=[]),e.call(this,n,Ca)||this}return(function(n,r){function i(){this.constructor=n}vo(n,r),n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)})(t,e),t})(wa),Cr=function(){return Cr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Cr.apply(this,arguments)},bo=(function(){function e(){this._events={}}var t=e.prototype;return t.on=function(n,r){if(we(n))for(var i in n)this.on(i,n[i]);else this._addEvent(n,r,{});return this},t.off=function(n,r){if(n)if(we(n))for(var i in n)this.off(i);else if(r){var o=this._events[n];if(o){var a=$e(o,function(s){return s.listener===r});a>-1&&o.splice(a,1)}}else this._events[n]=[];else this._events={};return this},t.once=function(n,r){var i=this;return r&&this._addEvent(n,r,{once:!0}),new Promise(function(o){i._addEvent(n,o,{once:!0})})},t.emit=function(n,r){var i=this;r===void 0&&(r={});var o=this._events[n];if(!n||!o)return!0;var a=!1;return r.eventType=n,r.stop=function(){a=!0},r.currentTarget=this,(function(){for(var s=0,u=0,f=arguments.length;u<f;u++)s+=arguments[u].length;var p=Array(s),c=0;for(u=0;u<f;u++)for(var l=arguments[u],h=0,d=l.length;h<d;h++,c++)p[c]=l[h];return p})(o).forEach(function(s){s.listener(r),s.once&&i.off(n,s.listener)}),!a},t.trigger=function(n,r){return r===void 0&&(r={}),this.emit(n,r)},t._addEvent=function(n,r,i){var o=this._events;o[n]=o[n]||[],o[n].push(Cr({listener:r},i))},e})();function oe(e){return kt(e,Ht)}function Si(e){return e.length<3?0:Math.abs((function(t){for(var n=0,r=t.length-1;r>=0;--r)n+=t[r];return n})(e.map(function(t,n){var r=e[n+1]||e[0];return t[0]*r[1]-r[0]*t[1]})))/2}function Di(e,t){var n=t.width,r=t.height,i=t.left,o=t.top,a=Ve(e),s=a.minX,u=a.minY,f=a.maxX,p=a.maxY,c=n/(f-s),l=r/(p-u);return e.map(function(h){return[i+(h[0]-s)*c,o+(h[1]-u)*l]})}function Ve(e){var t=e.map(function(r){return r[0]}),n=e.map(function(r){return r[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 cr(e,t,n){var r=e[0],i=e[1],o=Ve(t),a=o.minX,s=o.maxX,u=[[a,i],[s,i]],f=Jn(u[0],u[1]),p=_r(t),c=[];if(p.forEach(function(d){var g,v=Jn(d[0],d[1]),b=d[0];g=v,f.every(function(x,y){return oe(x-g[y])===0})?c.push({pos:e,line:d,type:"line"}):xo(Ur(f,v),[u,d]).forEach(function(x){d.some(function(y){return M=x,!oe((E=y)[0]-M[0])&&!oe(E[1]-M[1]);var E,M})?c.push({pos:x,line:d,type:"point"}):oe(b[1]-i)!==0&&c.push({pos:x,line:d,type:"intersection"})})}),he(c,function(d){return d[0]===r}))return!0;var l=0,h={};return c.forEach(function(d){var g=d.pos,v=d.type,b=d.line;if(!(g[0]>r))if(v==="intersection")++l;else{if(v==="line")return;if(v==="point"){var x=he(b,function(M){return M[1]!==i}),y=h[g[0]],E=x[1]>i?1:-1;y?y!==E&&++l:h[g[0]]=E}}}),l%2==1}function Jn(e,t){var n=e[0],r=e[1],i=t[0]-n,o=t[1]-r;Math.abs(i)<Ht&&(i=0),Math.abs(o)<Ht&&(o=0);var a=0,s=0,u=0;return i?o?(s=1,u=-(a=-o/i)*n-r):(s=1,u=-r):o&&(a=-1,u=n),[a,s,u]}function Ur(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2],u=n===0&&o===0,f=r===0&&a===0,p=[];if(u&&f)return[];if(u){var c=-i/r;return c!==-s/a?[]:[[-1/0,c],[1/0,c]]}if(f){var l=-i/n;return l!==-s/o?[]:[[l,-1/0],[l,1/0]]}if(n===0)p=[[h=-(a*(d=-i/r)+s)/o,d]];else if(o===0)p=[[h=-(r*(d=-s/a)+i)/n,d]];else if(r===0)p=[[h=-i/n,d=-(o*h+s)/a]];else if(a===0)p=[[h=-s/o,d=-(n*h+i)/r]];else{var h,d;p=[[h=(r*s-a*i)/(a*n-r*o),d=-(n*h+i)/r]]}return p.map(function(g){return[g[0],g[1]]})}function xo(e,t){var n=t.map(function(c){return[0,1].map(function(l){return[Math.min(c[0][l],c[1][l]),Math.max(c[0][l],c[1][l])]})}),r=[];if(e.length===2){var i=e[0],o=i[0],a=i[1];if(oe(o-e[1][0])){if(!oe(a-e[1][1])){var s=Math.max.apply(Math,n.map(function(c){return c[0][0]})),u=Math.min.apply(Math,n.map(function(c){return c[0][1]}));if(oe(s-u)>0)return[];r=[[s,a],[u,a]]}}else{var f=Math.max.apply(Math,n.map(function(c){return c[1][0]})),p=Math.min.apply(Math,n.map(function(c){return c[1][1]}));if(oe(f-p)>0)return[];r=[[o,f],[o,p]]}}return r.length||(r=e.filter(function(c){var l=c[0],h=c[1];return n.every(function(d){return 0<=oe(l-d[0][0])&&0<=oe(d[0][1]-l)&&0<=oe(h-d[1][0])&&0<=oe(d[1][1]-h)})})),r.map(function(c){return[oe(c[0]),oe(c[1])]})}function _r(e){return(function(){for(var t=0,n=0,r=arguments.length;n<r;n++)t+=arguments[n].length;var i=Array(t),o=0;for(n=0;n<r;n++)for(var a=arguments[n],s=0,u=a.length;s<u;s++,o++)i[o]=a[s];return i})(e.slice(1),[e[0]]).map(function(t,n){return[e[n],t]})}var yo=function(e,t){return(yo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])})(e,t)},Lt=function(){return Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Lt.apply(this,arguments)};function lr(e){return 180*(t=[e[0].clientX,e[0].clientY],r=(n=[e[1].clientX,e[1].clientY])[0]-t[0],i=n[1]-t[1],((o=Math.atan2(i,r))>=0?o:o+2*Math.PI)/Math.PI);var t,n,r,i,o}function Yn(e){return e?e.touches?(function(t){for(var n=Math.min(t.length,2),r=[],i=0;i<n;++i)r.push(wi(t[i]));return r})(e.touches):[wi(e)]:[]}function Mi(e,t,n){var r=n.length,i=mn(e,r),o=i.clientX,a=i.clientY,s=i.originalClientX,u=i.originalClientY,f=mn(t,r),p=f.clientX,c=f.clientY,l=mn(n,r);return{clientX:s,clientY:u,deltaX:o-p,deltaY:a-c,distX:o-l.clientX,distY:a-l.clientY}}function fr(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function wi(e){return{clientX:e.clientX,clientY:e.clientY}}function mn(e,t){t===void 0&&(t=e.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(e.length,t),i=0;i<r;++i){var o=e[i];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 pr=(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),lr(t)},e.prototype.getRotation=function(t){return t===void 0&&(t=this.prevClients),lr(t)-lr(this.startClients)},e.prototype.getPosition=function(t,n){t===void 0&&(t=this.prevClients);var r=Mi(t||this.prevClients,this.prevClients,this.startClients),i=r.deltaX,o=r.deltaY;return this.movement+=Math.sqrt(i*i+o*o),this.prevClients=t,r},e.prototype.getPositions=function(t){t===void 0&&(t=this.prevClients);for(var n=this.prevClients,r=this.startClients,i=Math.min(this.length,n.length),o=[],a=0;a<i;++a)o[a]=Mi([t[a]],[n[a]],[r[a]]);return o},e.prototype.getMovement=function(t){var n=this.movement;if(!t)return n;var r=mn(t,this.length),i=mn(this.prevClients,this.length),o=r.clientX-i.clientX,a=r.clientY-i.clientY;return Math.sqrt(o*o+a*a)+n},e.prototype.getDistance=function(t){return t===void 0&&(t=this.prevClients),fr(t)},e.prototype.getScale=function(t){return t===void 0&&(t=this.prevClients),fr(t)/fr(this.startClients)},e.prototype.move=function(t,n){this.startClients.forEach(function(r){r.clientX-=t,r.clientY-=n}),this.prevClients.forEach(function(r){r.clientX-=t,r.clientY-=n})},e})(),Ci=["textarea","input"],_a=(function(e){function t(n,r){r===void 0&&(r={});var i=e.call(this)||this;i.options={},i.flag=!1,i.pinchFlag=!1,i.data={},i.isDrag=!1,i.isPinch=!1,i.clientStores=[],i.targets=[],i.prevTime=0,i.doubleFlag=!1,i._useMouse=!1,i._useTouch=!1,i._useDrag=!1,i._dragFlag=!1,i._isTrusted=!1,i._isMouseEvent=!1,i._isSecondaryButton=!1,i._preventMouseEvent=!1,i._prevInputEvent=null,i._isDragAPI=!1,i._isIdle=!0,i._preventMouseEventId=0,i._window=window,i.onDragStart=function(l,h){if(h===void 0&&(h=!0),i.flag||l.cancelable!==!1){var d=l.type.indexOf("drag")>=-1;if(!i.flag||!d){i._isDragAPI=!0;var g=i.options,v=g.container,b=g.pinchOutside,x=g.preventWheelClick,y=g.preventRightClick,E=g.preventDefault,M=g.checkInput,m=g.dragFocusedInput,S=g.preventClickEventOnDragStart,_=g.preventClickEventOnDrag,k=g.preventClickEventByCondition,F=i._useTouch,O=!i.flag;if(i._isSecondaryButton=l.which===3||l.button===2,x&&(l.which===2||l.button===1)||y&&(l.which===3||l.button===2))return i.stop(),!1;if(O){var w=i._window.document.activeElement,D=l.target;if(D){var R=D.tagName.toLowerCase(),P=Ci.indexOf(R)>-1,B=D.isContentEditable;if(P||B){if(M||!m&&w===D)return!1;if(w&&(w===D||B&&w.isContentEditable&&w.contains(D))){if(!m)return!1;D.blur()}}else if((E||l.type==="touchstart")&&w){var A=w.tagName.toLowerCase();(w.isContentEditable||Ci.indexOf(A)>-1)&&w.blur()}(S||_||k)&&Jt(i._window,"click",i._onClick,!0)}i.clientStores=[new pr(Yn(l))],i._isIdle=!1,i.flag=!0,i.isDrag=!1,i._isTrusted=h,i._dragFlag=!0,i._prevInputEvent=l,i.data={},i.doubleFlag=Zn()-i.prevTime<200,i._isMouseEvent=(G=l)&&(G.type.indexOf("mouse")>-1||"button"in G),!i._isMouseEvent&&i._preventMouseEvent&&i._allowMouseEvent(),(i._preventMouseEvent||i.emit("dragStart",Lt(Lt({data:i.data,datas:i.data,inputEvent:l,isMouseEvent:i._isMouseEvent,isSecondaryButton:i._isSecondaryButton,isTrusted:h,isDouble:i.doubleFlag},i.getCurrentStore().getPosition()),{preventDefault:function(){l.preventDefault()},preventDrag:function(){i._dragFlag=!1}})))===!1&&i.stop(),i._isMouseEvent&&i.flag&&E&&l.preventDefault()}if(!i.flag)return!1;var z=0;if(O?(i._attchDragEvent(),F&&b&&(z=setTimeout(function(){Jt(v,"touchstart",i.onDragStart,{passive:!1})}))):F&&b&&Ut(v,"touchstart",i.onDragStart),i.flag&&(function(I){return I.touches&&I.touches.length>=2})(l)){if(clearTimeout(z),O&&l.touches.length!==l.changedTouches.length)return;i.pinchFlag||i.onPinchStart(l)}}}var G},i.onDrag=function(l,h){if(i.flag){var d=i.options.preventDefault;!i._isMouseEvent&&d&&l.preventDefault(),i._prevInputEvent=l;var g=Yn(l),v=i.moveClients(g,l,!1);if(i._dragFlag){if((i.pinchFlag||v.deltaX||v.deltaY)&&(i._preventMouseEvent||i.emit("drag",Lt(Lt({},v),{isScroll:!!h,inputEvent:l})))===!1)return void i.stop();i.pinchFlag&&i.onPinch(l,g)}i.getCurrentStore().getPosition(g,!0)}},i.onDragEnd=function(l){if(i.flag){var h=i.options,d=h.pinchOutside,g=h.container,v=h.preventClickEventOnDrag,b=h.preventClickEventOnDragStart,x=h.preventClickEventByCondition,y=i.isDrag;(v||b||x)&&requestAnimationFrame(function(){i._allowClickEvent()}),x||b||!v||y||i._allowClickEvent(),i._useTouch&&d&&Ut(g,"touchstart",i.onDragStart),i.pinchFlag&&i.onPinchEnd(l);var E=l?.touches?Yn(l):[];E.length!==0&&i.options.keepDragging?i._addStore(new pr(E)):i.flag=!1;var M=i._getPosition(),m=Zn(),S=!y&&i.doubleFlag;i._prevInputEvent=null,i.prevTime=y||S?0:m,i.flag||(i._dettachDragEvent(),i._preventMouseEvent||i.emit("dragEnd",Lt({data:i.data,datas:i.data,isDouble:S,isDrag:y,isClick:!y,isMouseEvent:i._isMouseEvent,isSecondaryButton:i._isSecondaryButton,inputEvent:l,isTrusted:i._isTrusted},M)),i.clientStores=[],i._isMouseEvent||(i._preventMouseEvent=!0,clearTimeout(i._preventMouseEventId),i._preventMouseEventId=setTimeout(function(){i._preventMouseEvent=!1},200)),i._isIdle=!0)}},i.onBlur=function(){i.onDragEnd()},i._allowClickEvent=function(){Ut(i._window,"click",i._onClick,!0)},i._onClick=function(l){i._allowClickEvent(),i._allowMouseEvent();var h=i.options.preventClickEventByCondition;h?.(l)||(l.stopPropagation(),l.preventDefault())},i._onContextMenu=function(l){i.options.preventRightClick?i.onDragEnd(l):l.preventDefault()},i._passCallback=function(){};var o=[].concat(n),a=o[0];i._window=lo(a)?a:Pe(a),i.options=Lt({checkInput:!1,container:a&&!("document"in a)?Pe(a):a,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},r);var s=i.options,u=s.container,f=s.events,p=s.checkWindowBlur;if(i._useDrag=f.indexOf("drag")>-1,i._useTouch=f.indexOf("touch")>-1,i._useMouse=f.indexOf("mouse")>-1,i.targets=o,i._useDrag&&o.forEach(function(l){Jt(l,"dragstart",i.onDragStart)}),i._useMouse&&(o.forEach(function(l){Jt(l,"mousedown",i.onDragStart),Jt(l,"mousemove",i._passCallback)}),Jt(u,"contextmenu",i._onContextMenu)),p&&Jt(Pe(),"blur",i.onBlur),i._useTouch){var c={passive:!1};o.forEach(function(l){Jt(l,"touchstart",i.onDragStart,c),Jt(l,"touchmove",i._passCallback,c)})}return i}return(function(n,r){function i(){this.constructor=n}yo(n,r),n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)})(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(r,i){return r+i.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,r,i,o){o===void 0&&(o=!0),this.flag&&(this.clientStores[0].move(n,r),o&&this.onDrag(i,!0))},t.prototype.move=function(n,r){var i=n[0],o=n[1],a=this.getCurrentStore().prevClients;return this.moveClients(a.map(function(s){var u=s.clientX,f=s.clientY;return{clientX:u+i,clientY:f+o,originalClientX:u,originalClientY:f}}),r,!0)},t.prototype.triggerDragStart=function(n){this.onDragStart(n,!1)},t.prototype.setEventData=function(n){var r=this.data;for(var i in n)r[i]=n[i];return this},t.prototype.setEventDatas=function(n){return this.setEventData(n)},t.prototype.getCurrentEvent=function(n){return n===void 0&&(n=this._prevInputEvent),Lt(Lt({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,r=this.targets,i=this.options.container;this.off(),Ut(this._window,"blur",this.onBlur),this._useDrag&&r.forEach(function(o){Ut(o,"dragstart",n.onDragStart)}),this._useMouse&&(r.forEach(function(o){Ut(o,"mousedown",n.onDragStart)}),Ut(i,"contextmenu",this._onContextMenu)),this._useTouch&&(r.forEach(function(o){Ut(o,"touchstart",n.onDragStart)}),Ut(i,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(n){var r=this,i=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>i)){var o=new pr(Yn(n));this.pinchFlag=!0,this._addStore(o),this.emit("pinchStart",Lt(Lt({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(){r._dragFlag=!1}}))===!1&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(n,r){if(this.flag&&this.pinchFlag&&!(r.length<2)){var i=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",Lt(Lt({data:this.data,datas:this.data,movement:this.getMovement(r),angle:i.getAngle(r),rotation:i.getRotation(r),touches:i.getPositions(r),scale:i.getScale(r),distance:i.getDistance(r)},i.getPosition(r)),{inputEvent:n,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(n){if(this.pinchFlag){var r=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var i=this.getCurrentStore();this.emit("pinchEnd",Lt(Lt({data:this.data,datas:this.data,isPinch:r,touches:i.getPositions()},i.getPosition()),{inputEvent:n}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(n,r,i){var o=this._getPosition(n,i),a=this.isDrag;(o.deltaX||o.deltaY)&&(this.isDrag=!0);var s=!1;return!a&&this.isDrag&&(s=!0),Lt(Lt({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:r,isTrusted:this._isTrusted,isFirstDrag:s})},t.prototype._addStore=function(n){this.clientStores.splice(0,0,n)},t.prototype._getPosition=function(n,r){var i=this.getCurrentStore().getPosition(n,r),o=this.clientStores.slice(1).reduce(function(u,f){var p=f.getPosition();return u.distX+=p.distX,u.distY+=p.distY,u},i),a=o.distX,s=o.distY;return Lt(Lt({},i),{distX:a,distY:s})},t.prototype._attchDragEvent=function(){var n=this._window,r=this.options.container,i={passive:!1};this._isDragAPI&&(Jt(r,"dragover",this.onDrag,i),Jt(n,"dragend",this.onDragEnd)),this._useMouse&&(Jt(r,"mousemove",this.onDrag),Jt(n,"mouseup",this.onDragEnd)),this._useTouch&&(Jt(r,"touchmove",this.onDrag,i),Jt(n,"touchend",this.onDragEnd,i),Jt(n,"touchcancel",this.onDragEnd,i))},t.prototype._dettachDragEvent=function(){var n=this._window,r=this.options.container;this._isDragAPI&&(Ut(r,"dragover",this.onDrag),Ut(n,"dragend",this.onDragEnd)),this._useMouse&&(Ut(r,"mousemove",this.onDrag),Ut(n,"mouseup",this.onDragEnd)),this._useTouch&&(Ut(r,"touchstart",this.onDragStart),Ut(r,"touchmove",this.onDrag),Ut(n,"touchend",this.onDragEnd),Ut(n,"touchcancel",this.onDragEnd))},t.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},t})(bo);function Ta(e){var t="rCS"+(function(n){for(var r=5381,i=n.length;i;)r=33*r^n.charCodeAt(--i);return r>>>0})(e).toString(36);return{className:t,inject:function(n,r){r===void 0&&(r={});var i=(function(s){if(s&&s.getRootNode){var u=s.getRootNode();if(u.nodeType===11)return u}})(n),o=(i||n.ownerDocument||document).querySelector('style[data-styled-id="'.concat(t,'"]'));if(o){var a=parseFloat(o.getAttribute("data-styled-count"))||0;o.setAttribute("data-styled-count","".concat(a+1))}else o=(function(s,u,f,p,c){var l,h,d=jr(p),g=d.createElement("style");return g.setAttribute("type","text/css"),g.setAttribute("data-styled-id",s),g.setAttribute("data-styled-count","1"),f.nonce&&g.setAttribute("nonce",f.nonce),g.innerHTML=(l=s,h=u,f.original?h:h.replace(/([^};{\s}][^};{]*|^\s*){/gm,function(v,b){var x=b.trim();return(x?hn(x):[""]).map(function(y){var E=y.trim();return E.indexOf("@")===0?E:E.indexOf(":global")>-1?E.replace(/\:global/g,""):E.indexOf(":host")>-1?"".concat(E.replace(/\:host/g,".".concat(l))):E?".".concat(l," ").concat(E):".".concat(l)}).join(", ")+" {"})),(c||d.head||d.body).appendChild(g),g})(t,e,r,n,i);return{destroy:function(){var s,u=parseFloat(o.getAttribute("data-styled-count"))||0;u<=1?(o.remove?o.remove():(s=o.parentNode)===null||s===void 0||s.removeChild(o),o=null):o.setAttribute("data-styled-count","".concat(u-1))}}}}}var Tr=function(){return Tr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Tr.apply(this,arguments)};function Eo(e,t){var n=Ta(t),r=n.className;return ee.reactExports.forwardRef(function(i,o){var a=i.className,s=a===void 0?"":a;i.cspNonce;var u=(function(p,c){var l={};for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&c.indexOf(h)<0&&(l[h]=p[h]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function"){var d=0;for(h=Object.getOwnPropertySymbols(p);d<h.length;d++)c.indexOf(h[d])<0&&Object.prototype.propertyIsEnumerable.call(p,h[d])&&(l[h[d]]=p[h[d]])}return l})(i,["className","cspNonce"]),f=ee.reactExports.useRef();return ee.reactExports.useImperativeHandle(o,function(){return f.current},[]),ee.reactExports.useEffect(function(){var p=n.inject(f.current,{nonce:i.cspNonce});return function(){p.destroy()}},[]),ee.reactExports.createElement(e,Tr({ref:f,"data-styled-id":r,className:"".concat(s," ").concat(r)},u))})}var So=function(e,t){return(So=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])})(e,t)};function Rn(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}So(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},C.apply(this,arguments)};function T(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function K(e,t,n){if(arguments.length===2)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Cn(e,t){return C({events:[],props:[],name:e},t)}var Oa,_i,Ti,Pa=["n","w","s","e"],Zr=["n","w","s","e","nw","ne","sw","se"],rn=(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,r=t[0],i=(e.platform||navigator.platform).toLowerCase(),o={name:r.brand,version:r.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!zn(no,t).brand||di(ci())},a={name:"unknown",version:"-1",majorVersion:-1};o.webkit=!o.chromium&&Xr(sr,function(c){return eo(t,c)});var s=zn(fi,t);if(o.chromium=!!s.brand,o.chromiumVersion=s.version||"-1",!o.chromium){var u=zn(sr,t);o.webkit=!!u.brand,o.webkitVersion=u.version||"-1"}var f=to(pi,function(c){return new RegExp(""+c.test,"g").exec(i)});a.name=f?f.id:"";var p=zn(li,t);return o.name=p.brand||o.name,o.version=(p.brand,p.version),o.webkit&&(a.name=n?"ios":"mac"),a.name==="ios"&&o.webview&&(o.version="-1"),a.version=Sr(a.version),o.version=Sr(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=ci(Oa),t=!!/mobi/g.exec(e),n={name:"unknown",version:"-1",majorVersion:-1,webview:di(e),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},r={name:"unknown",version:"-1",majorVersion:-1},i=dn(li,e),o=i.preset,a=i.version,s=dn(pi,e),u=s.preset,f=s.version,p=dn(fi,e);if(n.chromium=!!p.preset,n.chromiumVersion=p.version,!n.chromium){var c=dn(sr,e);n.webkit=!!c.preset,n.webkitVersion=c.version}return u&&(r.name=u.id,r.version=f,r.majorVersion=parseInt(f,10)),o&&(n.name=o.id,n.version=a,n.webview&&r.name==="ios"&&n.name!=="safari"&&(n.webview=!1)),n.majorVersion=parseInt(n.version,10),{browser:n,os:r,isMobile:t,isHints:!1}})(),Do=rn.browser.webkit,Mo=Do&&(_i=typeof window>"u"?{userAgent:""}:window.navigator,!!(Ti=/applewebkit\/([^\s]+)/g.exec(_i.userAgent.toLowerCase()))&&parseFloat(Ti[1])<605),wo=rn.browser.name,Co=parseInt(rn.browser.version,10),Ra=wo==="chrome",Ba=rn.browser.chromium,ka=parseInt(rn.browser.chromiumVersion,10)||0,Fa=Ra&&Co>=109||Ba&&ka>=109,Aa=wo==="firefox",za=parseInt(rn.browser.webkitVersion,10)>=612||Co>=15,Kr="moveable-",Ga=Zr.map(function(e){var t="",n="",r="center",i="center",o="calc(var(--moveable-control-padding, 20) * -1px)";return e.indexOf("n")>-1&&(t="top: ".concat(o,";"),i="bottom"),e.indexOf("s")>-1&&(t="top: 0px;",i="top"),e.indexOf("w")>-1&&(n="left: ".concat(o,";"),r="right"),e.indexOf("e")>-1&&(n="left: 0px;",r="left"),'.around-control[data-direction*="'.concat(e,`"] {
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("./BI9erhszojGZe0lb.cjs");function Xr(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return!0;return!1}function to(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return e[r];return null}function ci(e){var t=e;if(t===void 0){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function Er(e,t){try{return new RegExp(e,"g").exec(t)}catch{return null}}function Sr(e){return e.replace(/_/g,".")}function dn(e,t){var n=null,r="-1";return Xr(e,function(i){var o,a,s,u=Er("("+i.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",t);return!(!u||i.brand||(n=i,r=u[3]||"-1",i.versionAlias?r=i.versionAlias:i.versionTest&&(o=i.versionTest.toLowerCase(),a=t,s=Er("("+o+")((?:\\/|\\s|:)([0-9|\\.|_]+))",a),r=(s?s[3]:"")||r),r=Sr(r),0))}),{preset:n,version:r}}function zn(e,t){var n={brand:"",version:"-1"};return Xr(e,function(r){var i=eo(t,r);return!!i&&(n.brand=r.id,n.version=r.versionAlias||i.version,n.version!=="-1")}),n}function eo(e,t){return to(e,function(n){var r=n.brand;return Er(""+t.test,r.toLowerCase())})}var li=[{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"}],fi=[{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}],sr=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],no=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],pi=[{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 di(e){return!!dn(no,e).preset}function ca(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map(function(r){return r.split(" ").map(function(i){return i?""+e+i:""}).join(" ")}).join(" ")}function Ae(e,t){return function(n){n&&(e[t]=n)}}function ro(e,t,n){return function(r){r&&(e[t][n]=r)}}var Nr="undefined",io=typeof window!==Nr,la=typeof document!==Nr&&document,fa=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],Ht=1e-7,Gn={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,r){return(e*r+t*n)/(n+r)}function Wr(e){return typeof e===Nr}function we(e){return e&&typeof e=="object"}function ne(e){return Array.isArray(e)}function nn(e){return typeof e=="string"}function Vn(e){return typeof e=="number"}function oo(e){return typeof e=="function"}function ao(e,t,n,r,i){return Dr(e,t,n)?n:(function(o,a,s,u,f){for(var p,c=function(d){var g=a[d].trim();if(g===o.close&&!Dr(o,a,d))return{value:d};var v=d,b=he(f,function(x){return x.open===g});if(b&&(v=ao(b,a,d,u,f)),v===-1)return p=d,"break";p=d=v},l=s;l<u;++l){var h=c(l);if(l=p,typeof h=="object")return h.value;if(h==="break")break}return-1})(e,t,n+1,r,i)}function Dr(e,t,n){if(!e.ignore)return null;var r=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(r)}function qr(e,t){var n=nn(t)?{separator:t}:t,r=n.separator,i=r===void 0?",":r,o=n.isSeparateFirst,a=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,u=s===void 0?a:s,f=n.openCloseCharacters,p=f===void 0?fa:f,c=p.map(function(m){var S=m.open,_=m.close;return S===_?S:S+"|"+_}).join("|"),l=new RegExp("(\\s*"+i+"\\s*|"+c+"|\\s+)","g"),h=e.split(l).filter(function(m){return m&&m!=="undefined"}),d=h.length,g=[],v=[];function b(){return!!v.length&&(g.push(v.join("")),v=[],!0)}for(var x,y=function(m){var S,_,k=h[m].trim(),F=m,O=he(p,function(R){return R.open===k}),w=he(p,function(R){return R.close===k});if(O){if((F=ao(O,h,m,d,p))!==-1&&u)return b()&&o?(x=m,"break"):(g.push(h.slice(m,F+1).join("")),m=F,o?(x=m,"break"):(x=m,"continue"))}else{if(w&&!Dr(w,h,m)){var D=(function(){for(var R=0,P=0,B=arguments.length;P<B;P++)R+=arguments[P].length;var A=Array(R),z=0;for(P=0;P<B;P++)for(var G=arguments[P],I=0,V=G.length;I<V;I++,z++)A[z]=G[I];return A})(p);return D.splice(p.indexOf(w),1),{value:qr(e,{separator:i,isSeparateFirst:o,isSeparateOnlyOpenClose:a,isSeparateOpenClose:u,openCloseCharacters:D})}}if(S=k,_=i,!((_!==""&&_!=" "||S!==""&&S!=" ")&&S!==_||a))return b(),o?(x=m,"break"):(x=m,"continue")}F===-1&&(F=d-1),v.push(h.slice(m,F+1).join("")),x=m=F},E=0;E<d;++E){var M=y(E);if(E=x,typeof M=="object")return M.value;if(M==="break")break}return v.length&&g.push(v.join("")),g}function Mn(e){return qr(e,"")}function hn(e){return qr(e,",")}function nr(e){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!t)return{prefix:"",unit:"",value:NaN};var n=t[1],r=t[2];return{prefix:n,unit:t[3],value:parseFloat(r)}}function Zn(){return Date.now?Date.now():new Date().getTime()}function $e(e,t,n){n===void 0&&(n=-1);for(var r=e.length,i=0;i<r;++i)if(t(e[i],i,e))return i;return n}function he(e,t,n){var r=$e(e,t);return r>-1?e[r]:n}var gi,vi,so=(gi=Zn(),(vi=io&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame))?vi.bind(window):function(e){var t=Zn();return setTimeout(function(){e(t-gi)},1e3/60)}),pa=(function(){var e=io&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return e?e.bind(window):function(t){clearTimeout(t)}})();function wn(e){return Object.keys(e)}function ae(e,t){var n=nr(e),r=n.value,i=n.unit;if(we(t)){var o=t[i];if(o){if(oo(o))return o(r);if(Gn[i])return Gn[i](r,o)}}else if(i==="%")return r*t/100;return Gn[i]?Gn[i](r):r}function Mr(e,t,n){return Math.max(t,Math.min(e,n))}function mi(e,t,n,r){return r===void 0&&(r=e[0]/e[1]),[[kt(t[0],Ht),kt(t[0]/r,Ht)],[kt(t[1]*r,Ht),kt(t[1],Ht)]].filter(function(i){return i.every(function(o,a){var s=t[a],u=kt(s,Ht);return n?o<=s||o<=u:o>=s||o>=u})})[0]||e}function wr(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return t?n/t:0}function de(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=Math.atan2(r,n);return i>=0?i:i+2*Math.PI}function bi(e){var t,n=(t=e,[0,1].map(function(o){return wr(t.map(function(a){return a[o]}))})),r=de(n,e[0]),i=de(n,e[1]);return r<i&&i-r<Math.PI||r>i&&i-r<-Math.PI?1:-1}function gn(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 xi(e,t){return e.forEach(function(n,r){e[r]=kt(e[r],t)}),e}function Ee(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function uo(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function co(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function Jt(e,t,n,r){e.addEventListener(t,n,r)}function Ut(e,t,n,r){e.removeEventListener(t,n,r)}function jr(e){return e?.ownerDocument||la}function Lr(e){return jr(e).documentElement}function Be(e){return jr(e).body}function Pe(e){var t;return((t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView)||window}function lo(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function Hr(e){return we(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}function da(e,t,n,r,i,o){for(var a=0;a<i;++a){var s=n+a*i,u=r+a*i;e[s]+=e[u]*o,t[s]+=t[u]*o}}function ha(e,t,n,r,i){for(var o=0;o<i;++o){var a=n+o*i,s=r+o*i,u=e[a],f=t[a];e[a]=e[s],e[s]=u,t[a]=t[s],t[s]=f}}function ga(e,t,n,r,i){for(var o=0;o<r;++o){var a=n+o*r;e[a]/=i,t[a]/=i}}function ze(e,t){t===void 0&&(t=Math.sqrt(e.length));for(var n=e.slice(),r=It(t),i=0;i<t;++i){var o=t*i+i;if(!kt(n[o],Ht)){for(var a=i+1;a<t;++a)if(n[t*i+a]){ha(n,r,i,a,t);break}}if(!kt(n[o],Ht))return[];for(ga(n,r,i,t,n[o]),a=0;a<t;++a){var s=a,u=n[a+i*t];kt(u,Ht)&&i!==a&&da(n,r,s,i,t,-u)}}return r}function Pn(e,t){for(var n=e.slice(),r=e.length;r<t-1;++r)n[r]=0;return n[t-1]=1,n}function Ge(e,t,n){if(t===void 0&&(t=Math.sqrt(e.length)),t===n)return e;for(var r=It(n),i=Math.min(t,n),o=0;o<i-1;++o){for(var a=0;a<i-1;++a)r[o*n+a]=e[o*t+a];r[(o+1)*n-1]=e[(o+1)*t-1],r[(n-1)*n+o]=e[(t-1)*t+o]}return r[n*n-1]=e[t*t-1],r}function Kn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=It(e);return t.forEach(function(i){r=Vt(r,i,e)}),r}function Vt(e,t,n){n===void 0&&(n=Math.sqrt(e.length));var r=[],i=e.length/n,o=t.length/i;if(!i)return t;if(!o)return e;for(var a=0;a<n;++a)for(var s=0;s<o;++s){r[s*n+a]=0;for(var u=0;u<i;++u)r[s*n+a]+=e[u*n+a]*t[s*i+u]}return r}function Wt(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),i=0;i<n;++i)r[i]=r[i]+t[i];return r}function bt(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),i=0;i<n;++i)r[i]=r[i]-t[i];return r}function va(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 fo(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 xe(e,t,n){n===void 0&&(n=t.length);var r=Vt(e,t,n),i=r[n-1];return r.map(function(o){return o/i})}function ma(e,t){return Vt(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 ba(e,t){return Vt(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 xa(e,t){return Vt(e,rr(t,4))}function In(e,t){var n=t[0],r=n===void 0?1:n,i=t[1],o=i===void 0?1:i,a=t[2];return Vt(e,[r,0,0,0,0,o,0,0,0,0,a===void 0?1:a,0,0,0,0,1],4)}function ur(e,t){var n=t[0],r=n===void 0?0:n,i=t[1],o=i===void 0?0:i,a=t[2];return Vt(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,o,a===void 0?0:a,1],4)}function yi(e,t){return Vt(e,t,4)}function rr(e,t){var n=Math.cos(e),r=Math.sin(e),i=It(t);return i[0]=n,i[1]=r,i[t]=-r,i[t+1]=n,i}function It(e){for(var t=e*e,n=[],r=0;r<t;++r)n[r]=r%(e+1)?0:1;return n}function po(e,t){for(var n=It(t),r=Math.min(e.length,t-1),i=0;i<r;++i)n[(t+1)*i]=e[i];return n}function Ie(e,t){for(var n=It(t),r=Math.min(e.length,t-1),i=0;i<r;++i)n[t*(t-1)+i]=e[i];return n}function ho(e,t,n,r,i,o,a,s){var u=e[0],f=e[1],p=t[0],c=t[1],l=n[0],h=n[1],d=r[0],g=r[1],v=i[0],b=i[1],x=o[0],y=o[1],E=a[0],M=a[1],m=s[0],S=s[1],_=ze([u,0,p,0,l,0,d,0,f,0,c,0,h,0,g,0,1,0,1,0,1,0,1,0,0,u,0,p,0,l,0,d,0,f,0,c,0,h,0,g,0,1,0,1,0,1,0,1,-v*u,-b*u,-x*p,-y*p,-E*l,-M*l,-m*d,-S*d,-v*f,-b*f,-x*c,-y*c,-E*h,-M*h,-m*g,-S*g],8);if(!_.length)return[];var k=Vt(_,[v,b,x,y,E,M,m,S],8);return k[8]=1,Ge((function(F,O){O===void 0&&(O=Math.sqrt(F.length));for(var w=[],D=0;D<O;++D)for(var R=0;R<O;++R)w[R*O+D]=F[O*D+R];return w})(k),3,4)}var vn=function(){return vn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},vn.apply(this,arguments)};function Vr(e,t){return t===void 0&&(t=0),We(Qe(e,t))}function We(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 r=n.matrixFunction,i=n.functionValue;r&&(t=r(t,i))}),t}function Qe(e,t){return t===void 0&&(t=0),(ne(e)?e:Mn(e)).map(function(n){var r,i=!(r=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(n))||r.length<4?{}:{prefix:r[1],value:r[2],suffix:r[3]},o=i.prefix,a=i.value,s=null,u=o,f="";if(o==="translate"||o==="translateX"||o==="translate3d"){var p=we(t)?vn(vn({},t),{"o%":t["%"]}):{"%":t,"o%":t},c=hn(a).map(function(k,F){return p["%"]=F===0&&"x%"in p?t["x%"]:F===1&&"y%"in p?t["y%"]:t["o%"],ae(k,p)}),l=c[0],h=c[1],d=h===void 0?0:h,g=c[2];s=ur,f=[l,d,g===void 0?0:g]}else if(o==="translateY")s=ur,f=[0,d=ae(a,we(t)?vn({"%":t["y%"]},t):{"%":t}),0];else if(o==="translateZ")s=ur,f=[0,0,parseFloat(a)];else if(o==="scale"||o==="scale3d"){var v=hn(a).map(function(k){return parseFloat(k)}),b=v[0],x=v[1],y=x===void 0?b:x,E=v[2];s=In,f=[b,y,E===void 0?1:E]}else if(o==="scaleX")s=In,f=[b=parseFloat(a),1,1];else if(o==="scaleY")s=In,f=[1,y=parseFloat(a),1];else if(o==="scaleZ")s=In,f=[1,1,parseFloat(a)];else if(o==="rotate"||o==="rotateZ"||o==="rotateX"||o==="rotateY"){var M=nr(a),m=M.unit,S=M.value;o==="rotate"||o==="rotateZ"?(u="rotateZ",s=xa):o==="rotateX"?s=ma:o==="rotateY"&&(s=ba),f=m==="rad"?S:S*Math.PI/180}else if(o==="matrix3d")s=yi,f=hn(a).map(function(k){return parseFloat(k)});else if(o==="matrix"){var _=hn(a).map(function(k){return parseFloat(k)});s=yi,f=[_[0],_[1],0,0,_[2],_[3],0,0,0,0,1,0,_[4],_[5],0,1]}else u="";return{name:o,functionName:u,value:a,matrixFunction:s,functionValue:f}})}var ya=(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,r){var i=this.keys,o=this.values,a=i.indexOf(n),s=a===-1?i.length:a;i[s]=n,o[s]=r},e})(),Ea=(function(){function e(){this.object={}}var t=e.prototype;return t.get=function(n){return this.object[n]},t.set=function(n,r){this.object[n]=r},e})(),Sa=typeof Map=="function",Da=(function(){function e(){}var t=e.prototype;return t.connect=function(n,r){this.prev=n,this.next=r,n&&(n.next=this),r&&(r.prev=this)},t.disconnect=function(){var n=this.prev,r=this.next;n&&(n.next=r),r&&(r.prev=n)},t.getIndex=function(){for(var n=this,r=-1;n;)n=n.prev,++r;return r},e})(),Ma=(function(){function e(n,r,i,o,a,s,u,f){this.prevList=n,this.list=r,this.added=i,this.removed=o,this.changed=a,this.maintained=s,this.changedBeforeAdded=u,this.fixed=f}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,r,i,o,a=(n=this.changedBeforeAdded,r=this.fixed,i=[],o=[],n.forEach(function(f){var p=f[0],c=f[1],l=new Da;i[p]=l,o[c]=l}),i.forEach(function(f,p){f.connect(i[p-1])}),n.filter(function(f,p){return!r[p]}).map(function(f,p){var c=f[0],l=f[1];if(c===l)return[0,0];var h=i[c],d=o[l-1],g=h.getIndex();return h.disconnect(),d?h.connect(d,d.next):h.connect(void 0,i[0]),[g,h.getIndex()]})),s=this.changed,u=[];this.cacheOrdered=a.filter(function(f,p){var c=f[0],l=f[1],h=s[p],d=h[0],g=h[1];if(c!==l)return u.push([d,g]),!0}),this.cachePureChanged=u},e})();function go(e,t,n){var r=Sa?Map:n?Ea:ya,i=n||function(x){return x},o=[],a=[],s=[],u=e.map(i),f=t.map(i),p=new r,c=new r,l=[],h=[],d={},g=[],v=0,b=0;return u.forEach(function(x,y){p.set(x,y)}),f.forEach(function(x,y){c.set(x,y)}),u.forEach(function(x,y){var E=c.get(x);E===void 0?(++b,a.push(y)):d[E]=b}),f.forEach(function(x,y){var E=p.get(x);E===void 0?(o.push(y),++v):(s.push([E,y]),b=d[y]||0,l.push([E-b,y-v]),h.push(y===E),E!==y&&g.push([E,y]))}),a.reverse(),new Ma(e,t,o,a,g,s,l,h)}var Ei,wa=(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),r=go(this.list,n,this.findKeyCallback);return this.list=n,r},e})(),vo=function(e,t){return(vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])})(e,t)},Ca=typeof Map=="function"?void 0:(Ei=0,function(e){return e.__DIFF_KEY__||(e.__DIFF_KEY__=++Ei)}),mo=(function(e){function t(n){return n===void 0&&(n=[]),e.call(this,n,Ca)||this}return(function(n,r){function i(){this.constructor=n}vo(n,r),n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)})(t,e),t})(wa),Cr=function(){return Cr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Cr.apply(this,arguments)},bo=(function(){function e(){this._events={}}var t=e.prototype;return t.on=function(n,r){if(we(n))for(var i in n)this.on(i,n[i]);else this._addEvent(n,r,{});return this},t.off=function(n,r){if(n)if(we(n))for(var i in n)this.off(i);else if(r){var o=this._events[n];if(o){var a=$e(o,function(s){return s.listener===r});a>-1&&o.splice(a,1)}}else this._events[n]=[];else this._events={};return this},t.once=function(n,r){var i=this;return r&&this._addEvent(n,r,{once:!0}),new Promise(function(o){i._addEvent(n,o,{once:!0})})},t.emit=function(n,r){var i=this;r===void 0&&(r={});var o=this._events[n];if(!n||!o)return!0;var a=!1;return r.eventType=n,r.stop=function(){a=!0},r.currentTarget=this,(function(){for(var s=0,u=0,f=arguments.length;u<f;u++)s+=arguments[u].length;var p=Array(s),c=0;for(u=0;u<f;u++)for(var l=arguments[u],h=0,d=l.length;h<d;h++,c++)p[c]=l[h];return p})(o).forEach(function(s){s.listener(r),s.once&&i.off(n,s.listener)}),!a},t.trigger=function(n,r){return r===void 0&&(r={}),this.emit(n,r)},t._addEvent=function(n,r,i){var o=this._events;o[n]=o[n]||[],o[n].push(Cr({listener:r},i))},e})();function oe(e){return kt(e,Ht)}function Si(e){return e.length<3?0:Math.abs((function(t){for(var n=0,r=t.length-1;r>=0;--r)n+=t[r];return n})(e.map(function(t,n){var r=e[n+1]||e[0];return t[0]*r[1]-r[0]*t[1]})))/2}function Di(e,t){var n=t.width,r=t.height,i=t.left,o=t.top,a=Ve(e),s=a.minX,u=a.minY,f=a.maxX,p=a.maxY,c=n/(f-s),l=r/(p-u);return e.map(function(h){return[i+(h[0]-s)*c,o+(h[1]-u)*l]})}function Ve(e){var t=e.map(function(r){return r[0]}),n=e.map(function(r){return r[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 cr(e,t,n){var r=e[0],i=e[1],o=Ve(t),a=o.minX,s=o.maxX,u=[[a,i],[s,i]],f=Jn(u[0],u[1]),p=_r(t),c=[];if(p.forEach(function(d){var g,v=Jn(d[0],d[1]),b=d[0];g=v,f.every(function(x,y){return oe(x-g[y])===0})?c.push({pos:e,line:d,type:"line"}):xo(Ur(f,v),[u,d]).forEach(function(x){d.some(function(y){return M=x,!oe((E=y)[0]-M[0])&&!oe(E[1]-M[1]);var E,M})?c.push({pos:x,line:d,type:"point"}):oe(b[1]-i)!==0&&c.push({pos:x,line:d,type:"intersection"})})}),he(c,function(d){return d[0]===r}))return!0;var l=0,h={};return c.forEach(function(d){var g=d.pos,v=d.type,b=d.line;if(!(g[0]>r))if(v==="intersection")++l;else{if(v==="line")return;if(v==="point"){var x=he(b,function(M){return M[1]!==i}),y=h[g[0]],E=x[1]>i?1:-1;y?y!==E&&++l:h[g[0]]=E}}}),l%2==1}function Jn(e,t){var n=e[0],r=e[1],i=t[0]-n,o=t[1]-r;Math.abs(i)<Ht&&(i=0),Math.abs(o)<Ht&&(o=0);var a=0,s=0,u=0;return i?o?(s=1,u=-(a=-o/i)*n-r):(s=1,u=-r):o&&(a=-1,u=n),[a,s,u]}function Ur(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2],u=n===0&&o===0,f=r===0&&a===0,p=[];if(u&&f)return[];if(u){var c=-i/r;return c!==-s/a?[]:[[-1/0,c],[1/0,c]]}if(f){var l=-i/n;return l!==-s/o?[]:[[l,-1/0],[l,1/0]]}if(n===0)p=[[h=-(a*(d=-i/r)+s)/o,d]];else if(o===0)p=[[h=-(r*(d=-s/a)+i)/n,d]];else if(r===0)p=[[h=-i/n,d=-(o*h+s)/a]];else if(a===0)p=[[h=-s/o,d=-(n*h+i)/r]];else{var h,d;p=[[h=(r*s-a*i)/(a*n-r*o),d=-(n*h+i)/r]]}return p.map(function(g){return[g[0],g[1]]})}function xo(e,t){var n=t.map(function(c){return[0,1].map(function(l){return[Math.min(c[0][l],c[1][l]),Math.max(c[0][l],c[1][l])]})}),r=[];if(e.length===2){var i=e[0],o=i[0],a=i[1];if(oe(o-e[1][0])){if(!oe(a-e[1][1])){var s=Math.max.apply(Math,n.map(function(c){return c[0][0]})),u=Math.min.apply(Math,n.map(function(c){return c[0][1]}));if(oe(s-u)>0)return[];r=[[s,a],[u,a]]}}else{var f=Math.max.apply(Math,n.map(function(c){return c[1][0]})),p=Math.min.apply(Math,n.map(function(c){return c[1][1]}));if(oe(f-p)>0)return[];r=[[o,f],[o,p]]}}return r.length||(r=e.filter(function(c){var l=c[0],h=c[1];return n.every(function(d){return 0<=oe(l-d[0][0])&&0<=oe(d[0][1]-l)&&0<=oe(h-d[1][0])&&0<=oe(d[1][1]-h)})})),r.map(function(c){return[oe(c[0]),oe(c[1])]})}function _r(e){return(function(){for(var t=0,n=0,r=arguments.length;n<r;n++)t+=arguments[n].length;var i=Array(t),o=0;for(n=0;n<r;n++)for(var a=arguments[n],s=0,u=a.length;s<u;s++,o++)i[o]=a[s];return i})(e.slice(1),[e[0]]).map(function(t,n){return[e[n],t]})}var yo=function(e,t){return(yo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])})(e,t)},Lt=function(){return Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Lt.apply(this,arguments)};function lr(e){return 180*(t=[e[0].clientX,e[0].clientY],r=(n=[e[1].clientX,e[1].clientY])[0]-t[0],i=n[1]-t[1],((o=Math.atan2(i,r))>=0?o:o+2*Math.PI)/Math.PI);var t,n,r,i,o}function Yn(e){return e?e.touches?(function(t){for(var n=Math.min(t.length,2),r=[],i=0;i<n;++i)r.push(wi(t[i]));return r})(e.touches):[wi(e)]:[]}function Mi(e,t,n){var r=n.length,i=mn(e,r),o=i.clientX,a=i.clientY,s=i.originalClientX,u=i.originalClientY,f=mn(t,r),p=f.clientX,c=f.clientY,l=mn(n,r);return{clientX:s,clientY:u,deltaX:o-p,deltaY:a-c,distX:o-l.clientX,distY:a-l.clientY}}function fr(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function wi(e){return{clientX:e.clientX,clientY:e.clientY}}function mn(e,t){t===void 0&&(t=e.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(e.length,t),i=0;i<r;++i){var o=e[i];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 pr=(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),lr(t)},e.prototype.getRotation=function(t){return t===void 0&&(t=this.prevClients),lr(t)-lr(this.startClients)},e.prototype.getPosition=function(t,n){t===void 0&&(t=this.prevClients);var r=Mi(t||this.prevClients,this.prevClients,this.startClients),i=r.deltaX,o=r.deltaY;return this.movement+=Math.sqrt(i*i+o*o),this.prevClients=t,r},e.prototype.getPositions=function(t){t===void 0&&(t=this.prevClients);for(var n=this.prevClients,r=this.startClients,i=Math.min(this.length,n.length),o=[],a=0;a<i;++a)o[a]=Mi([t[a]],[n[a]],[r[a]]);return o},e.prototype.getMovement=function(t){var n=this.movement;if(!t)return n;var r=mn(t,this.length),i=mn(this.prevClients,this.length),o=r.clientX-i.clientX,a=r.clientY-i.clientY;return Math.sqrt(o*o+a*a)+n},e.prototype.getDistance=function(t){return t===void 0&&(t=this.prevClients),fr(t)},e.prototype.getScale=function(t){return t===void 0&&(t=this.prevClients),fr(t)/fr(this.startClients)},e.prototype.move=function(t,n){this.startClients.forEach(function(r){r.clientX-=t,r.clientY-=n}),this.prevClients.forEach(function(r){r.clientX-=t,r.clientY-=n})},e})(),Ci=["textarea","input"],_a=(function(e){function t(n,r){r===void 0&&(r={});var i=e.call(this)||this;i.options={},i.flag=!1,i.pinchFlag=!1,i.data={},i.isDrag=!1,i.isPinch=!1,i.clientStores=[],i.targets=[],i.prevTime=0,i.doubleFlag=!1,i._useMouse=!1,i._useTouch=!1,i._useDrag=!1,i._dragFlag=!1,i._isTrusted=!1,i._isMouseEvent=!1,i._isSecondaryButton=!1,i._preventMouseEvent=!1,i._prevInputEvent=null,i._isDragAPI=!1,i._isIdle=!0,i._preventMouseEventId=0,i._window=window,i.onDragStart=function(l,h){if(h===void 0&&(h=!0),i.flag||l.cancelable!==!1){var d=l.type.indexOf("drag")>=-1;if(!i.flag||!d){i._isDragAPI=!0;var g=i.options,v=g.container,b=g.pinchOutside,x=g.preventWheelClick,y=g.preventRightClick,E=g.preventDefault,M=g.checkInput,m=g.dragFocusedInput,S=g.preventClickEventOnDragStart,_=g.preventClickEventOnDrag,k=g.preventClickEventByCondition,F=i._useTouch,O=!i.flag;if(i._isSecondaryButton=l.which===3||l.button===2,x&&(l.which===2||l.button===1)||y&&(l.which===3||l.button===2))return i.stop(),!1;if(O){var w=i._window.document.activeElement,D=l.target;if(D){var R=D.tagName.toLowerCase(),P=Ci.indexOf(R)>-1,B=D.isContentEditable;if(P||B){if(M||!m&&w===D)return!1;if(w&&(w===D||B&&w.isContentEditable&&w.contains(D))){if(!m)return!1;D.blur()}}else if((E||l.type==="touchstart")&&w){var A=w.tagName.toLowerCase();(w.isContentEditable||Ci.indexOf(A)>-1)&&w.blur()}(S||_||k)&&Jt(i._window,"click",i._onClick,!0)}i.clientStores=[new pr(Yn(l))],i._isIdle=!1,i.flag=!0,i.isDrag=!1,i._isTrusted=h,i._dragFlag=!0,i._prevInputEvent=l,i.data={},i.doubleFlag=Zn()-i.prevTime<200,i._isMouseEvent=(G=l)&&(G.type.indexOf("mouse")>-1||"button"in G),!i._isMouseEvent&&i._preventMouseEvent&&i._allowMouseEvent(),(i._preventMouseEvent||i.emit("dragStart",Lt(Lt({data:i.data,datas:i.data,inputEvent:l,isMouseEvent:i._isMouseEvent,isSecondaryButton:i._isSecondaryButton,isTrusted:h,isDouble:i.doubleFlag},i.getCurrentStore().getPosition()),{preventDefault:function(){l.preventDefault()},preventDrag:function(){i._dragFlag=!1}})))===!1&&i.stop(),i._isMouseEvent&&i.flag&&E&&l.preventDefault()}if(!i.flag)return!1;var z=0;if(O?(i._attchDragEvent(),F&&b&&(z=setTimeout(function(){Jt(v,"touchstart",i.onDragStart,{passive:!1})}))):F&&b&&Ut(v,"touchstart",i.onDragStart),i.flag&&(function(I){return I.touches&&I.touches.length>=2})(l)){if(clearTimeout(z),O&&l.touches.length!==l.changedTouches.length)return;i.pinchFlag||i.onPinchStart(l)}}}var G},i.onDrag=function(l,h){if(i.flag){var d=i.options.preventDefault;!i._isMouseEvent&&d&&l.preventDefault(),i._prevInputEvent=l;var g=Yn(l),v=i.moveClients(g,l,!1);if(i._dragFlag){if((i.pinchFlag||v.deltaX||v.deltaY)&&(i._preventMouseEvent||i.emit("drag",Lt(Lt({},v),{isScroll:!!h,inputEvent:l})))===!1)return void i.stop();i.pinchFlag&&i.onPinch(l,g)}i.getCurrentStore().getPosition(g,!0)}},i.onDragEnd=function(l){if(i.flag){var h=i.options,d=h.pinchOutside,g=h.container,v=h.preventClickEventOnDrag,b=h.preventClickEventOnDragStart,x=h.preventClickEventByCondition,y=i.isDrag;(v||b||x)&&requestAnimationFrame(function(){i._allowClickEvent()}),x||b||!v||y||i._allowClickEvent(),i._useTouch&&d&&Ut(g,"touchstart",i.onDragStart),i.pinchFlag&&i.onPinchEnd(l);var E=l?.touches?Yn(l):[];E.length!==0&&i.options.keepDragging?i._addStore(new pr(E)):i.flag=!1;var M=i._getPosition(),m=Zn(),S=!y&&i.doubleFlag;i._prevInputEvent=null,i.prevTime=y||S?0:m,i.flag||(i._dettachDragEvent(),i._preventMouseEvent||i.emit("dragEnd",Lt({data:i.data,datas:i.data,isDouble:S,isDrag:y,isClick:!y,isMouseEvent:i._isMouseEvent,isSecondaryButton:i._isSecondaryButton,inputEvent:l,isTrusted:i._isTrusted},M)),i.clientStores=[],i._isMouseEvent||(i._preventMouseEvent=!0,clearTimeout(i._preventMouseEventId),i._preventMouseEventId=setTimeout(function(){i._preventMouseEvent=!1},200)),i._isIdle=!0)}},i.onBlur=function(){i.onDragEnd()},i._allowClickEvent=function(){Ut(i._window,"click",i._onClick,!0)},i._onClick=function(l){i._allowClickEvent(),i._allowMouseEvent();var h=i.options.preventClickEventByCondition;h?.(l)||(l.stopPropagation(),l.preventDefault())},i._onContextMenu=function(l){i.options.preventRightClick?i.onDragEnd(l):l.preventDefault()},i._passCallback=function(){};var o=[].concat(n),a=o[0];i._window=lo(a)?a:Pe(a),i.options=Lt({checkInput:!1,container:a&&!("document"in a)?Pe(a):a,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},r);var s=i.options,u=s.container,f=s.events,p=s.checkWindowBlur;if(i._useDrag=f.indexOf("drag")>-1,i._useTouch=f.indexOf("touch")>-1,i._useMouse=f.indexOf("mouse")>-1,i.targets=o,i._useDrag&&o.forEach(function(l){Jt(l,"dragstart",i.onDragStart)}),i._useMouse&&(o.forEach(function(l){Jt(l,"mousedown",i.onDragStart),Jt(l,"mousemove",i._passCallback)}),Jt(u,"contextmenu",i._onContextMenu)),p&&Jt(Pe(),"blur",i.onBlur),i._useTouch){var c={passive:!1};o.forEach(function(l){Jt(l,"touchstart",i.onDragStart,c),Jt(l,"touchmove",i._passCallback,c)})}return i}return(function(n,r){function i(){this.constructor=n}yo(n,r),n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)})(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(r,i){return r+i.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,r,i,o){o===void 0&&(o=!0),this.flag&&(this.clientStores[0].move(n,r),o&&this.onDrag(i,!0))},t.prototype.move=function(n,r){var i=n[0],o=n[1],a=this.getCurrentStore().prevClients;return this.moveClients(a.map(function(s){var u=s.clientX,f=s.clientY;return{clientX:u+i,clientY:f+o,originalClientX:u,originalClientY:f}}),r,!0)},t.prototype.triggerDragStart=function(n){this.onDragStart(n,!1)},t.prototype.setEventData=function(n){var r=this.data;for(var i in n)r[i]=n[i];return this},t.prototype.setEventDatas=function(n){return this.setEventData(n)},t.prototype.getCurrentEvent=function(n){return n===void 0&&(n=this._prevInputEvent),Lt(Lt({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,r=this.targets,i=this.options.container;this.off(),Ut(this._window,"blur",this.onBlur),this._useDrag&&r.forEach(function(o){Ut(o,"dragstart",n.onDragStart)}),this._useMouse&&(r.forEach(function(o){Ut(o,"mousedown",n.onDragStart)}),Ut(i,"contextmenu",this._onContextMenu)),this._useTouch&&(r.forEach(function(o){Ut(o,"touchstart",n.onDragStart)}),Ut(i,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(n){var r=this,i=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>i)){var o=new pr(Yn(n));this.pinchFlag=!0,this._addStore(o),this.emit("pinchStart",Lt(Lt({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(){r._dragFlag=!1}}))===!1&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(n,r){if(this.flag&&this.pinchFlag&&!(r.length<2)){var i=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",Lt(Lt({data:this.data,datas:this.data,movement:this.getMovement(r),angle:i.getAngle(r),rotation:i.getRotation(r),touches:i.getPositions(r),scale:i.getScale(r),distance:i.getDistance(r)},i.getPosition(r)),{inputEvent:n,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(n){if(this.pinchFlag){var r=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var i=this.getCurrentStore();this.emit("pinchEnd",Lt(Lt({data:this.data,datas:this.data,isPinch:r,touches:i.getPositions()},i.getPosition()),{inputEvent:n}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(n,r,i){var o=this._getPosition(n,i),a=this.isDrag;(o.deltaX||o.deltaY)&&(this.isDrag=!0);var s=!1;return!a&&this.isDrag&&(s=!0),Lt(Lt({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:r,isTrusted:this._isTrusted,isFirstDrag:s})},t.prototype._addStore=function(n){this.clientStores.splice(0,0,n)},t.prototype._getPosition=function(n,r){var i=this.getCurrentStore().getPosition(n,r),o=this.clientStores.slice(1).reduce(function(u,f){var p=f.getPosition();return u.distX+=p.distX,u.distY+=p.distY,u},i),a=o.distX,s=o.distY;return Lt(Lt({},i),{distX:a,distY:s})},t.prototype._attchDragEvent=function(){var n=this._window,r=this.options.container,i={passive:!1};this._isDragAPI&&(Jt(r,"dragover",this.onDrag,i),Jt(n,"dragend",this.onDragEnd)),this._useMouse&&(Jt(r,"mousemove",this.onDrag),Jt(n,"mouseup",this.onDragEnd)),this._useTouch&&(Jt(r,"touchmove",this.onDrag,i),Jt(n,"touchend",this.onDragEnd,i),Jt(n,"touchcancel",this.onDragEnd,i))},t.prototype._dettachDragEvent=function(){var n=this._window,r=this.options.container;this._isDragAPI&&(Ut(r,"dragover",this.onDrag),Ut(n,"dragend",this.onDragEnd)),this._useMouse&&(Ut(r,"mousemove",this.onDrag),Ut(n,"mouseup",this.onDragEnd)),this._useTouch&&(Ut(r,"touchstart",this.onDragStart),Ut(r,"touchmove",this.onDrag),Ut(n,"touchend",this.onDragEnd),Ut(n,"touchcancel",this.onDragEnd))},t.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},t})(bo);function Ta(e){var t="rCS"+(function(n){for(var r=5381,i=n.length;i;)r=33*r^n.charCodeAt(--i);return r>>>0})(e).toString(36);return{className:t,inject:function(n,r){r===void 0&&(r={});var i=(function(s){if(s&&s.getRootNode){var u=s.getRootNode();if(u.nodeType===11)return u}})(n),o=(i||n.ownerDocument||document).querySelector('style[data-styled-id="'.concat(t,'"]'));if(o){var a=parseFloat(o.getAttribute("data-styled-count"))||0;o.setAttribute("data-styled-count","".concat(a+1))}else o=(function(s,u,f,p,c){var l,h,d=jr(p),g=d.createElement("style");return g.setAttribute("type","text/css"),g.setAttribute("data-styled-id",s),g.setAttribute("data-styled-count","1"),f.nonce&&g.setAttribute("nonce",f.nonce),g.innerHTML=(l=s,h=u,f.original?h:h.replace(/([^};{\s}][^};{]*|^\s*){/gm,function(v,b){var x=b.trim();return(x?hn(x):[""]).map(function(y){var E=y.trim();return E.indexOf("@")===0?E:E.indexOf(":global")>-1?E.replace(/\:global/g,""):E.indexOf(":host")>-1?"".concat(E.replace(/\:host/g,".".concat(l))):E?".".concat(l," ").concat(E):".".concat(l)}).join(", ")+" {"})),(c||d.head||d.body).appendChild(g),g})(t,e,r,n,i);return{destroy:function(){var s,u=parseFloat(o.getAttribute("data-styled-count"))||0;u<=1?(o.remove?o.remove():(s=o.parentNode)===null||s===void 0||s.removeChild(o),o=null):o.setAttribute("data-styled-count","".concat(u-1))}}}}}var Tr=function(){return Tr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Tr.apply(this,arguments)};function Eo(e,t){var n=Ta(t),r=n.className;return ee.reactExports.forwardRef(function(i,o){var a=i.className,s=a===void 0?"":a;i.cspNonce;var u=(function(p,c){var l={};for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&c.indexOf(h)<0&&(l[h]=p[h]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function"){var d=0;for(h=Object.getOwnPropertySymbols(p);d<h.length;d++)c.indexOf(h[d])<0&&Object.prototype.propertyIsEnumerable.call(p,h[d])&&(l[h[d]]=p[h[d]])}return l})(i,["className","cspNonce"]),f=ee.reactExports.useRef();return ee.reactExports.useImperativeHandle(o,function(){return f.current},[]),ee.reactExports.useEffect(function(){var p=n.inject(f.current,{nonce:i.cspNonce});return function(){p.destroy()}},[]),ee.reactExports.createElement(e,Tr({ref:f,"data-styled-id":r,className:"".concat(s," ").concat(r)},u))})}var So=function(e,t){return(So=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])})(e,t)};function Rn(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}So(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},C.apply(this,arguments)};function T(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function K(e,t,n){if(arguments.length===2)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Cn(e,t){return C({events:[],props:[],name:e},t)}var Oa,_i,Ti,Pa=["n","w","s","e"],Zr=["n","w","s","e","nw","ne","sw","se"],rn=(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,r=t[0],i=(e.platform||navigator.platform).toLowerCase(),o={name:r.brand,version:r.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!zn(no,t).brand||di(ci())},a={name:"unknown",version:"-1",majorVersion:-1};o.webkit=!o.chromium&&Xr(sr,function(c){return eo(t,c)});var s=zn(fi,t);if(o.chromium=!!s.brand,o.chromiumVersion=s.version||"-1",!o.chromium){var u=zn(sr,t);o.webkit=!!u.brand,o.webkitVersion=u.version||"-1"}var f=to(pi,function(c){return new RegExp(""+c.test,"g").exec(i)});a.name=f?f.id:"";var p=zn(li,t);return o.name=p.brand||o.name,o.version=(p.brand,p.version),o.webkit&&(a.name=n?"ios":"mac"),a.name==="ios"&&o.webview&&(o.version="-1"),a.version=Sr(a.version),o.version=Sr(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=ci(Oa),t=!!/mobi/g.exec(e),n={name:"unknown",version:"-1",majorVersion:-1,webview:di(e),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},r={name:"unknown",version:"-1",majorVersion:-1},i=dn(li,e),o=i.preset,a=i.version,s=dn(pi,e),u=s.preset,f=s.version,p=dn(fi,e);if(n.chromium=!!p.preset,n.chromiumVersion=p.version,!n.chromium){var c=dn(sr,e);n.webkit=!!c.preset,n.webkitVersion=c.version}return u&&(r.name=u.id,r.version=f,r.majorVersion=parseInt(f,10)),o&&(n.name=o.id,n.version=a,n.webview&&r.name==="ios"&&n.name!=="safari"&&(n.webview=!1)),n.majorVersion=parseInt(n.version,10),{browser:n,os:r,isMobile:t,isHints:!1}})(),Do=rn.browser.webkit,Mo=Do&&(_i=typeof window>"u"?{userAgent:""}:window.navigator,!!(Ti=/applewebkit\/([^\s]+)/g.exec(_i.userAgent.toLowerCase()))&&parseFloat(Ti[1])<605),wo=rn.browser.name,Co=parseInt(rn.browser.version,10),Ra=wo==="chrome",Ba=rn.browser.chromium,ka=parseInt(rn.browser.chromiumVersion,10)||0,Fa=Ra&&Co>=109||Ba&&ka>=109,Aa=wo==="firefox",za=parseInt(rn.browser.webkitVersion,10)>=612||Co>=15,Kr="moveable-",Ga=Zr.map(function(e){var t="",n="",r="center",i="center",o="calc(var(--moveable-control-padding, 20) * -1px)";return e.indexOf("n")>-1&&(t="top: ".concat(o,";"),i="bottom"),e.indexOf("s")>-1&&(t="top: 0px;",i="top"),e.indexOf("w")>-1&&(n="left: ".concat(o,";"),r="right"),e.indexOf("e")>-1&&(n="left: 0px;",r="left"),'.around-control[data-direction*="'.concat(e,`"] {
7
7
  `).concat(n).concat(t,`
8
8
  transform-origin: `).concat(r," ").concat(i,`;
9
9
  }`)}).join(`
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.13
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.15
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 y=require("./B4skn6YstpEWT1bs.cjs");exports.fromBufferCSV=async(a,c)=>{const{papaParseConfig:i,setValuesOptions:g,createWorkbookOptions:f}=c??{},t=c?.progress,m=t?.onStart?.(c?.name??"Parsing CSV");await Promise.resolve(m);const h=t?.onProgress,o=await Promise.resolve().then(()=>require("./B1VvX7VCdcsH8Gti.cjs")).then(e=>e.p),p=new TextDecoder().decode(a);let l=-1;const r=new y.Ny(f),n=r.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:y.w.Orientation.Row});let u=0;const w={...i,transform:(e,s)=>{i?.transform&&(e=i.transform(e,s));const d=s;d===0&&l++;let S=e??"";return n.pushAt(l,d,S),u++,u%1e5==0&&h?.(u),t?.onComplete?.(u),e}};return o.parse(p,w).data,n.apply({textParser:!0,...g}),r},exports.toBufferCSV=async(a,c)=>{const{trimLeadingBlankRow:i=!0,trimLeadingBlankColumn:g=!0,ignoreHidden:f=!1,sheetKey:t=null,papaParseConfig:m={}}=c||{},h=await Promise.resolve().then(()=>require("./B1VvX7VCdcsH8Gti.cjs")).then(e=>e.p);if(!a)throw new Error("workbook must be specified");let o=null;if(t===null?o=a.getSelectedSheet():typeof t=="number"?o=a.getSheets().getItems()[t]:typeof t=="string"&&(o=a.getSheets().getByName(t)),!o)throw new Error("invalid sheetKey specified");let p=null;const l=[];let r=null,n=o.getUsedRange({ignoreHidden:f});if(!n)throw new Error("Nothing to export");if(!i||!g){const e=i?n.getRowStart():0,s=g?n.getColumnStart():0;n=n.getOffsetTo(e,s)}n.forEach((e,s)=>{const d=s.getCoords(),S=s.getCell();p!==d.rowIndex&&(r&&l.push(r),r=[],p=d.rowIndex);const C=S.toTextUnformatted()??"";r.push(C)},{includeEmpty:!0,address:null}),r&&l.push(r);const u={...m},w=h.unparse(l,u);return new TextEncoder().encode(w).buffer};
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./BI9erhszojGZe0lb.cjs");exports.fromBufferCSV=async(a,c)=>{const{papaParseConfig:i,setValuesOptions:g,createWorkbookOptions:f}=c??{},t=c?.progress,m=t?.onStart?.(c?.name??"Parsing CSV");await Promise.resolve(m);const h=t?.onProgress,o=await Promise.resolve().then(()=>require("./Db0FjpP-OPHnJYml.cjs")).then(e=>e.p),p=new TextDecoder().decode(a);let l=-1;const r=new y.Ey(f),n=r.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:y.w.Orientation.Row});let u=0;const w={...i,transform:(e,s)=>{i?.transform&&(e=i.transform(e,s));const d=s;d===0&&l++;let S=e??"";return n.pushAt(l,d,S),u++,u%1e5==0&&h?.(u),t?.onComplete?.(u),e}};return o.parse(p,w).data,n.apply({textParser:!0,...g}),r},exports.toBufferCSV=async(a,c)=>{const{trimLeadingBlankRow:i=!0,trimLeadingBlankColumn:g=!0,ignoreHidden:f=!1,sheetKey:t=null,papaParseConfig:m={}}=c||{},h=await Promise.resolve().then(()=>require("./Db0FjpP-OPHnJYml.cjs")).then(e=>e.p);if(!a)throw new Error("workbook must be specified");let o=null;if(t===null?o=a.getSelectedSheet():typeof t=="number"?o=a.getSheets().getItems()[t]:typeof t=="string"&&(o=a.getSheets().getByName(t)),!o)throw new Error("invalid sheetKey specified");let p=null;const l=[];let r=null,n=o.getUsedRange({ignoreHidden:f});if(!n)throw new Error("Nothing to export");if(!i||!g){const e=i?n.getRowStart():0,s=g?n.getColumnStart():0;n=n.getOffsetTo(e,s)}n.forEach((e,s)=>{const d=s.getCoords(),S=s.getCell();p!==d.rowIndex&&(r&&l.push(r),r=[],p=d.rowIndex);const C=S.toTextUnformatted()??"";r.push(C)},{includeEmpty:!0,address:null}),r&&l.push(r);const u={...m},w=h.unparse(l,u);return new TextEncoder().encode(w).buffer};
@@ -1,13 +1,13 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.13
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.15
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./B4skn6YstpEWT1bs.cjs");let $=null,L=null;const le={compilerOptions:{target:"esnext"}},se=async()=>`
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./BI9erhszojGZe0lb.cjs");let $=null,L=null;const le={compilerOptions:{target:"esnext"}},se=async()=>`
7
7
  interface FirstTest {
8
8
  isTrue?: boolean;
9
9
  }
10
- `,Y=new Map([["IReferenceRange","r"],["IRange","l"]]),Z=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),V=(T,S)=>{Array.from(S.keys()).forEach(z=>{const P=S.get(z);S.set(`${T}.${z}`,P)})},ce=new Map([["Scalar","*"],["FormulaError.Known",b.M.Error],["Date","Date"],["JSON","JSON"]]),de=new Map([]),U="SheetXL";V(U,Y),V(U,Z),V(U,de);const ue=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let R=null;async function pe(){if(R)return R;try{return await(await Promise.resolve().then(()=>require("./rwFdEXq7gPabWAk2.cjs"))).initialize()}catch(T){throw R=null,T}finally{R=null}}exports.compileModule=async function(T){const S=T?.source??null;if(!S)return null;const z=(T.disableBundle||T.declarationsOnly)??!1,P=[se(),pe()],X=await Promise.all(P),ee=X[0],n=X[1];let C="",j=null;const O=[],te={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:n.ScriptTarget.ES2020},A="script",I=`${A}.ts`,_="lib.d.ts",H="global.d.ts",F={[I]:S,[_]:`
10
+ `,Y=new Map([["IReferenceRange","r"],["IRange","l"]]),Z=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),V=(T,S)=>{Array.from(S.keys()).forEach(z=>{const P=S.get(z);S.set(`${T}.${z}`,P)})},ce=new Map([["Scalar","*"],["FormulaError.Known",b.M.Error],["Date","Date"],["JSON","JSON"]]),de=new Map([]),U="SheetXL";V(U,Y),V(U,Z),V(U,de);const ue=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let R=null;async function pe(){if(R)return R;try{return await(await Promise.resolve().then(()=>require("./B2TdLGM1J31IITbd.cjs"))).initialize()}catch(T){throw R=null,T}finally{R=null}}exports.compileModule=async function(T){const S=T?.source??null;if(!S)return null;const z=(T.disableBundle||T.declarationsOnly)??!1,P=[se(),pe()],X=await Promise.all(P),ee=X[0],n=X[1];let C="",j=null;const O=[],te={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:n.ScriptTarget.ES2020},A="script",I=`${A}.ts`,_="lib.d.ts",H="global.d.ts",F={[I]:S,[_]:`
11
11
  /**
12
12
  * Represents the completion of an asynchronous operation
13
13
  */
@@ -21,7 +21,7 @@ interface Promise<T> {
21
21
  finally(onfinally?: (() => void) | undefined | null): Promise<T>;
22
22
  }
23
23
  `,[H]:ee},ne={getSourceFile:(e,o,y,r)=>n.createSourceFile(e,F[e],n.ScriptTarget.Latest,!0),fileExists:e=>F[e]!==void 0,readFile:e=>F[e],writeFile:(e,o)=>{F[e]=o},getCurrentDirectory:()=>"./",getCanonicalFileName:e=>e,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:e=>_,getNewLine:()=>`
24
- `},q=n.createProgram([I,H],te,ne),D=q.getTypeChecker(),re=q.getSourceFile(I),W=q.emit();W.diagnostics.length>0&&console.warn(W.diagnostics),C=F[`${A}.js`];const N=(e,o,y,r)=>{if(e){if(e.kind===n.SyntaxKind.NumberKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.StringKeyword)o.scalar=b.M.String;else if(e.kind===n.SyntaxKind.BooleanKeyword)o.scalar=b.M.Boolean;else if(e.kind===n.SyntaxKind.UndefinedKeyword||e.kind===n.SyntaxKind.NullKeyword||e.kind===n.SyntaxKind.VoidKeyword){if(r)return void h(e,new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));o.scalar=b.M.Null}else if(e.kind===n.SyntaxKind.BigIntKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.AnyKeyword)o.scalar=b.M.Null;else if(e.kind===n.SyntaxKind.ArrayType){const i=e.elementType;if(!i)return void h(e,new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));o.arrayDepth=(o.arrayDepth??0)+1,N(i,o,y,r)}else if(e.kind!==n.SyntaxKind.TupleType&&e.kind===n.SyntaxKind.TypeReference){const i=e.typeName?.getText?.()??null,f=Y.get(i);let m=!1;f&&(o.range=f,m=!0);const x=ce.get(i);if(x&&(o.scalar=x),x!==void 0&&(m=!0),r){const c=Z.get(i);if(c)return c}else{const c=ue.get(i);if(c){const l={...o,...c()};let t=0;if(l.async&&t++,l.stream&&t++,t>1)return void h(e,new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));o=l,m=!0}}if(!m)return void h("node",new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));const p=e.typeArguments;if(p){if(p.length!==1)return void h(e,new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));N(p[0],o,y,r)}}}else h(e,new Error(`Type is not defined for '${o?.name??"return"}'.`))},k=[],h=(e,o)=>{k.push(o)};if(n.forEachChild(re,e=>{if(y=e,(n.getCombinedModifierFlags(y)&n.ModifierFlags.Export)!==0&&n.isFunctionDeclaration(e)){const r={},i={parameters:{}},f=e?.name?.getText();try{r.name=f;const m=D.getSymbolAtLocation(e.name).getDocumentationComment(D);if(m&&m.length>0&&m[0].text){let l=m[0].text;l=l.replace(/[\r\n]+/g,"\\n").trim(),i.summary=l}const x={};N(e.type,x,r,!1),r.returnType=x;const p={};o=e,(n.getCombinedModifierFlags(o)&n.ModifierFlags.Default)!==0&&(p.default=!0,j=f),Object.keys(p).length>0&&(r.behavior=p),r.parameters=[];const c=new Map;for(let l=0;l<e.parameters.length;l++){const t=e.parameters[l],s={};s.name=t.name?.getText();const E=N(t.type,s,r,!0);if(E){if(r.parameters.length!==0){const v=e?.parent,u=v?.name?.getText();return void h(e,new Error(`'${r.name}' contexts must be the first parameter: '${u}'.`))}r.context=E;continue}let g;if((t.initializer!==void 0&&t.initializer!==null||t.questionToken!==void 0&&t.questionToken!==null)&&(s.optional=!0,t.initializer))try{g=t.initializer.kind===n.SyntaxKind.StringLiteral?t.initializer.text:t.initializer.kind===n.SyntaxKind.NumericLiteral?parseFloat(t.initializer.text):t.initializer.kind===n.SyntaxKind.TrueKeyword||t.initializer.kind===n.SyntaxKind.FalseKeyword?t.initializer.kind===n.SyntaxKind.TrueKeyword:t.initializer.kind===n.SyntaxKind.NullKeyword?null:t.initializer.kind===n.SyntaxKind.ObjectLiteralExpression||t.initializer.kind===n.SyntaxKind.ArrayLiteralExpression?t.initializer.getText():t.initializer.getText?.()}catch(v){console.warn(`Couldn't extract default value for parameter '${s.name}'`,v)}t.dotDotDotToken&&(s.rest=!0),r.parameters.push(s);const d={description:""};i.parameters[s.name]=d;const a=D.getSymbolAtLocation(t.name).getDocumentationComment(D);a&&a.length>0&&a[0].text&&(d.description=a[0].text),g!==void 0&&(d.defaultValue=g),c.set(s.name,s)}if(e.jsDoc&&e.jsDoc.length>0){const l=e.jsDoc;for(let t=0;t<l.length;t++){const s=l[t]?.tags;if(s)for(let E=0;E<s.length;E++){const g=s[E];let d=g?.tagName?.text;if(!d)continue;d=d.toLowerCase();let a=g.comment;const v=d==="hidden";if((typeof a=="string"||v)&&(typeof a=="string"&&(a=a.replace(/[\r\n]+/g,"\\n").trim()),v||!a||(a=a.split(/\\n/)[0],a&&a.length!==0))){if(a&&typeof a=="string"){const u=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let w,K=a,M=[];for(;(w=u.exec(a))!==null;){const[B,J,oe,Q]=w,ae=[oe.trim()];Q&&ae.push(Q.trim())}a=K,M.length>0&&d==="see"&&(i.links||(i.links=[]),i.links.push(...M))}if(d==="name"){const u=a;u!==f&&(i.name=u)}else if(d!=="description"){if(d==="summary"){const u=a;u&&(i.summary=u)}else if(d==="param"){const u=g.name?.text,w=c.get(u);if(!w){k.push(new Error(`Parameter '${u}' not found in function '${f}'.`));continue}if(g.typeExpression&&g.typeExpression.type)try{const K=g.typeExpression.type;if(K.kind===n.SyntaxKind.UnionType){const M=[];w.enums=M,K.types.forEach(B=>{if(B.kind===n.SyntaxKind.LiteralType){const J=B.literal.text;J&&M.push(J)}})}}catch(K){console.warn("Error parsing JSDoc type expression:",K)}}else if(d==="returns"||d==="return")r.returnType.description=a;else if(d==="category")i.category=a;else if(d==="hidden"){let u=!0;const w=a?.toLowerCase();w==="false"?u=!1:w!=="true"&&(u=a),u!==!1&&(i.hidden=u??!0)}}}}}}Object.keys(r.returnType).length===0&&delete r.returnType,O.push([r,i])}catch(m){h(e,new Error(`'${f}': ${m.message}`))}}var o,y}),k.length>0)throw console.warn(k),new Error("There were compilation errors.",{cause:k});if(O.length===0)throw new Error("No exported functions.");const ie=`${b.te.uuidV4()}-script`;try{z||k.length!==0||(C=await(async function(e,o,y="/script.js",r="__SHEETXL"){try{const i=await(async function(){if($)return $;if(L){if(await L,!$)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return $}let c,l;L=new Promise((t,s)=>{c=t,l=s});try{const{initialize:t}=await Promise.resolve().then(()=>require("./78dOV0RAF5rgwQUW.cjs"));return $=await t(),c(),$}catch(t){throw console.error("Failed to import or initialize esbuild:",t),L=null,l(t),t}})(),f="@sheetxl/primitives",m=`
24
+ `},q=n.createProgram([I,H],te,ne),D=q.getTypeChecker(),re=q.getSourceFile(I),W=q.emit();W.diagnostics.length>0&&console.warn(W.diagnostics),C=F[`${A}.js`];const N=(e,o,y,r)=>{if(e){if(e.kind===n.SyntaxKind.NumberKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.StringKeyword)o.scalar=b.M.String;else if(e.kind===n.SyntaxKind.BooleanKeyword)o.scalar=b.M.Boolean;else if(e.kind===n.SyntaxKind.UndefinedKeyword||e.kind===n.SyntaxKind.NullKeyword||e.kind===n.SyntaxKind.VoidKeyword){if(r)return void h(e,new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));o.scalar=b.M.Null}else if(e.kind===n.SyntaxKind.BigIntKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.AnyKeyword)o.scalar=b.M.Null;else if(e.kind===n.SyntaxKind.ArrayType){const i=e.elementType;if(!i)return void h(e,new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));o.arrayDepth=(o.arrayDepth??0)+1,N(i,o,y,r)}else if(e.kind!==n.SyntaxKind.TupleType&&e.kind===n.SyntaxKind.TypeReference){const i=e.typeName?.getText?.()??null,f=Y.get(i);let m=!1;f&&(o.range=f,m=!0);const x=ce.get(i);if(x&&(o.scalar=x),x!==void 0&&(m=!0),r){const c=Z.get(i);if(c)return c}else{const c=ue.get(i);if(c){const l={...o,...c()};let t=0;if(l.async&&t++,l.stream&&t++,t>1)return void h(e,new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));o=l,m=!0}}if(!m)return void h("node",new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));const p=e.typeArguments;if(p){if(p.length!==1)return void h(e,new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));N(p[0],o,y,r)}}}else h(e,new Error(`Type is not defined for '${o?.name??"return"}'.`))},k=[],h=(e,o)=>{k.push(o)};if(n.forEachChild(re,e=>{if(y=e,(n.getCombinedModifierFlags(y)&n.ModifierFlags.Export)!==0&&n.isFunctionDeclaration(e)){const r={},i={parameters:{}},f=e?.name?.getText();try{r.name=f;const m=D.getSymbolAtLocation(e.name).getDocumentationComment(D);if(m&&m.length>0&&m[0].text){let l=m[0].text;l=l.replace(/[\r\n]+/g,"\\n").trim(),i.summary=l}const x={};N(e.type,x,r,!1),r.returnType=x;const p={};o=e,(n.getCombinedModifierFlags(o)&n.ModifierFlags.Default)!==0&&(p.default=!0,j=f),Object.keys(p).length>0&&(r.behavior=p),r.parameters=[];const c=new Map;for(let l=0;l<e.parameters.length;l++){const t=e.parameters[l],s={};s.name=t.name?.getText();const E=N(t.type,s,r,!0);if(E){if(r.parameters.length!==0){const v=e?.parent,u=v?.name?.getText();return void h(e,new Error(`'${r.name}' contexts must be the first parameter: '${u}'.`))}r.context=E;continue}let g;if((t.initializer!==void 0&&t.initializer!==null||t.questionToken!==void 0&&t.questionToken!==null)&&(s.optional=!0,t.initializer))try{g=t.initializer.kind===n.SyntaxKind.StringLiteral?t.initializer.text:t.initializer.kind===n.SyntaxKind.NumericLiteral?parseFloat(t.initializer.text):t.initializer.kind===n.SyntaxKind.TrueKeyword||t.initializer.kind===n.SyntaxKind.FalseKeyword?t.initializer.kind===n.SyntaxKind.TrueKeyword:t.initializer.kind===n.SyntaxKind.NullKeyword?null:t.initializer.kind===n.SyntaxKind.ObjectLiteralExpression||t.initializer.kind===n.SyntaxKind.ArrayLiteralExpression?t.initializer.getText():t.initializer.getText?.()}catch(v){console.warn(`Couldn't extract default value for parameter '${s.name}'`,v)}t.dotDotDotToken&&(s.rest=!0),r.parameters.push(s);const d={description:""};i.parameters[s.name]=d;const a=D.getSymbolAtLocation(t.name).getDocumentationComment(D);a&&a.length>0&&a[0].text&&(d.description=a[0].text),g!==void 0&&(d.defaultValue=g),c.set(s.name,s)}if(e.jsDoc&&e.jsDoc.length>0){const l=e.jsDoc;for(let t=0;t<l.length;t++){const s=l[t]?.tags;if(s)for(let E=0;E<s.length;E++){const g=s[E];let d=g?.tagName?.text;if(!d)continue;d=d.toLowerCase();let a=g.comment;const v=d==="hidden";if((typeof a=="string"||v)&&(typeof a=="string"&&(a=a.replace(/[\r\n]+/g,"\\n").trim()),v||!a||(a=a.split(/\\n/)[0],a&&a.length!==0))){if(a&&typeof a=="string"){const u=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let w,K=a,M=[];for(;(w=u.exec(a))!==null;){const[B,J,oe,Q]=w,ae=[oe.trim()];Q&&ae.push(Q.trim())}a=K,M.length>0&&d==="see"&&(i.links||(i.links=[]),i.links.push(...M))}if(d==="name"){const u=a;u!==f&&(i.name=u)}else if(d!=="description"){if(d==="summary"){const u=a;u&&(i.summary=u)}else if(d==="param"){const u=g.name?.text,w=c.get(u);if(!w){k.push(new Error(`Parameter '${u}' not found in function '${f}'.`));continue}if(g.typeExpression&&g.typeExpression.type)try{const K=g.typeExpression.type;if(K.kind===n.SyntaxKind.UnionType){const M=[];w.enums=M,K.types.forEach(B=>{if(B.kind===n.SyntaxKind.LiteralType){const J=B.literal.text;J&&M.push(J)}})}}catch(K){console.warn("Error parsing JSDoc type expression:",K)}}else if(d==="returns"||d==="return")r.returnType.description=a;else if(d==="category")i.category=a;else if(d==="hidden"){let u=!0;const w=a?.toLowerCase();w==="false"?u=!1:w!=="true"&&(u=a),u!==!1&&(i.hidden=u??!0)}}}}}}Object.keys(r.returnType).length===0&&delete r.returnType,O.push([r,i])}catch(m){h(e,new Error(`'${f}': ${m.message}`))}}var o,y}),k.length>0)throw console.warn(k),new Error("There were compilation errors.",{cause:k});if(O.length===0)throw new Error("No exported functions.");const ie=`${b.te.uuidV4()}-script`;try{z||k.length!==0||(C=await(async function(e,o,y="/script.js",r="__SHEETXL"){try{const i=await(async function(){if($)return $;if(L){if(await L,!$)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return $}let c,l;L=new Promise((t,s)=>{c=t,l=s});try{const{initialize:t}=await Promise.resolve().then(()=>require("./BTRXLO6Dq2gDP0o0.cjs"));return $=await t(),c(),$}catch(t){throw console.error("Failed to import or initialize esbuild:",t),L=null,l(t),t}})(),f="@sheetxl/primitives",m=`
25
25
  export const FormulaContext = globalThis.${r}?.FormulaContext;
26
26
  export const ScalarType = globalThis.${r}?.ScalarType;
27
27
  export const Observable = globalThis.${r}?.Observable;
@@ -1,5 +1,5 @@
1
1
  "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.13
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.15
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.