@layers-app/editor 0.7.52 → 0.7.54

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 (213) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/{layers.D61UJ61C.js → layers.-vMe6WN-.js} +1 -1
  4. package/dist/{layers.ByeAuHdc.js → layers.0QL4TE9-.js} +1 -1
  5. package/dist/{layers.BdHX324d.js → layers.1bt-JeU-.js} +1 -1
  6. package/dist/{layers.BsGKqdRZ.js → layers.35Rr9Hbs.js} +1 -1
  7. package/dist/{layers.Ssepkja7.js → layers.3JbNeJ-v.js} +2 -2
  8. package/dist/layers.3OGa5xdi.js +1 -0
  9. package/dist/{layers.Dc1Y_oQF.js → layers.3OWYV5jG.js} +1 -1
  10. package/dist/{layers.5dy8KlD5.js → layers.3YP7Dkfe.js} +1 -1
  11. package/dist/{layers.DL01M1aI.js → layers.5SP6DFfB.js} +1 -1
  12. package/dist/{layers.DN9ZX1Kj.js → layers.5oVxzj6M.js} +1 -1
  13. package/dist/{layers.B-36ujwP.js → layers.70sECuqO.js} +1 -1
  14. package/dist/{layers.BrfROY1C.js → layers.7KUU84zb.js} +1 -1
  15. package/dist/{layers.DA3XDo6q.js → layers.7UeaV2MX.js} +1 -1
  16. package/dist/{layers.BQJVQTCy.js → layers.7VcIrDw2.js} +1 -1
  17. package/dist/{layers.er_SHa6l.js → layers.9VVgKKhr.js} +1 -1
  18. package/dist/{layers.CmK8hJF-.js → layers.B-7UOAAe.js} +1 -1
  19. package/dist/{layers.Bcx7sluO.js → layers.B0lMsyVB.js} +1 -1
  20. package/dist/{layers.xjJJm3Qv.js → layers.B0lc9UNF.js} +3 -3
  21. package/dist/{layers.XyrKV8wO.js → layers.B18qjG_h.js} +5 -5
  22. package/dist/{layers.D7Za4Ohl.js → layers.B2lbxhiK.js} +1 -1
  23. package/dist/{layers.BYoN-RPN.js → layers.B4MtZ-FQ.js} +1 -1
  24. package/dist/{layers.Jw4yM4kB.js → layers.B52grZVj.js} +1 -1
  25. package/dist/layers.B5GR1mHr.js +6 -0
  26. package/dist/{layers.BmS2mlIL.js → layers.B5fA-56Q.js} +1 -1
  27. package/dist/{layers.MxkbA4Y5.js → layers.B7aLZ3XN.js} +1 -1
  28. package/dist/{layers.DqLnUx0P.js → layers.B81dZXcy.js} +2 -2
  29. package/dist/{layers.CRdRxxKD.js → layers.B9h3s5bP.js} +2 -2
  30. package/dist/{layers.CIdE3H2O.js → layers.B9qZocqp.js} +1 -1
  31. package/dist/{layers.BqvsFDQO.js → layers.BBnqk0zK.js} +1 -1
  32. package/dist/{layers.DAxHHsah.js → layers.BFQVSBse.js} +1 -1
  33. package/dist/{layers.W6vZpM9H.js → layers.BJuNsMwj.js} +1 -1
  34. package/dist/{layers.BqEOxdS-.js → layers.BPVGdhgX.js} +1 -1
  35. package/dist/{layers.CJCjyrUD.js → layers.BRLwyEJH.js} +1 -1
  36. package/dist/{layers.C67sARcl.js → layers.BTX-jfhT.js} +1 -1
  37. package/dist/{layers.BgZ0AzIV.js → layers.BUhWoL-i.js} +1 -1
  38. package/dist/{layers.DE9yTyPH.js → layers.BVajkGjt.js} +1 -1
  39. package/dist/{layers.CgZM8Pbo.js → layers.BVwIW-2Z.js} +1 -1
  40. package/dist/{layers.DxBMK5zD.js → layers.BY-tYVp-.js} +1 -1
  41. package/dist/{layers.CxSSF0L8.js → layers.BbgncxVU.js} +1 -1
  42. package/dist/{layers.cGQhhJ3P.js → layers.BcV6Ekn9.js} +1 -1
  43. package/dist/{layers.BgFZSQIa.js → layers.BemO4E0w.js} +1 -1
  44. package/dist/{layers.CjB8ujkH.js → layers.BgDOzVao.js} +1 -1
  45. package/dist/{layers.BnGtld37.js → layers.BgUgzj5h.js} +1 -1
  46. package/dist/{layers.WHbxhMyP.js → layers.BgoJWMcp.js} +1 -1
  47. package/dist/{layers.BhGIYr_O.js → layers.BhgER11X.js} +4 -4
  48. package/dist/{layers.BCQeEgwX.js → layers.Bj67z-Gi.js} +1 -1
  49. package/dist/{layers.54nDz3_5.js → layers.BjZdrdrH.js} +3 -3
  50. package/dist/{layers.CagHoya3.js → layers.BmEmd0TD.js} +4 -4
  51. package/dist/{layers.BFtRwzgH.js → layers.Bow7VKU8.js} +1 -1
  52. package/dist/{layers.DWfnR6zh.js → layers.BpOntBd9.js} +1 -1
  53. package/dist/{layers.Z04gD5tj.js → layers.BpbORZzu.js} +1 -1
  54. package/dist/{layers.cUqgKQVA.js → layers.BpvFpoz0.js} +1 -1
  55. package/dist/{layers.BDUKb5Zb.js → layers.BquJkFCx.js} +1 -1
  56. package/dist/{layers.CptGSUzH.js → layers.Br69i2Xn.js} +1 -1
  57. package/dist/{layers.DBEBgPid.js → layers.BrR4p2ns.js} +3 -3
  58. package/dist/{layers.BXY2MqE7.js → layers.BrwuSmQB.js} +1 -1
  59. package/dist/{layers.BqlJT2F9.js → layers.Bslp75Hc.js} +1 -1
  60. package/dist/{layers.D5t3tbN0.js → layers.BttRk7tL.js} +1 -1
  61. package/dist/{layers.DQO0tMFK.js → layers.BuYz2V4B.js} +1 -1
  62. package/dist/{layers.CaMBhjtb.js → layers.BvCHIzQi.js} +1 -1
  63. package/dist/{layers.Di-6IWA0.js → layers.Bvukq7Oh.js} +1 -1
  64. package/dist/{layers.Bx5mpSyZ.js → layers.BvyGl84_.js} +1 -1
  65. package/dist/{layers.Dh3IepYs.js → layers.BxyT0b4h.js} +1 -1
  66. package/dist/{layers.BLUNEOml.js → layers.ByJHF_h_.js} +1 -1
  67. package/dist/{layers.CZ4oad3X.js → layers.BzMJvE4V.js} +1 -1
  68. package/dist/{layers.B7NNgOLt.js → layers.BzX_8YMJ.js} +1 -1
  69. package/dist/{layers.DzRsuxoZ.js → layers.C-CpFiL3.js} +1 -1
  70. package/dist/{layers.B51YqK2y.js → layers.C-SfCDYi.js} +1 -1
  71. package/dist/{layers.CkHA9L_L.js → layers.C-qlL-HF.js} +1 -1
  72. package/dist/{layers.CK6CGBSH.js → layers.C0viltUu.js} +1 -1
  73. package/dist/{layers.CVzeMqfn.js → layers.C1caponC.js} +1 -1
  74. package/dist/{layers.C8TNjLsZ.js → layers.C2T_aM8z.js} +1 -1
  75. package/dist/{layers.C47eEtp2.js → layers.C3PRchOT.js} +1 -1
  76. package/dist/{layers.bNjKvDmU.js → layers.C3l784Yj.js} +1 -1
  77. package/dist/{layers.DyHM472p.js → layers.C4Gr3eyM.js} +4 -4
  78. package/dist/{layers.CCzjNTSR.js → layers.C5FHQrrv.js} +1 -1
  79. package/dist/{layers.D15HU_pQ.js → layers.C5ZeB8E7.js} +1 -1
  80. package/dist/{layers.C9Av0QUW.js → layers.C5vRDgtD.js} +1 -1
  81. package/dist/{layers.DKz9zjLe.js → layers.C8MAozsR.js} +1 -1
  82. package/dist/{layers.DB03XF-z.js → layers.CA0CE0yz.js} +2 -2
  83. package/dist/{layers.BMEI8vV1.js → layers.CACicCWl.js} +1 -1
  84. package/dist/{layers.B_y3TjJQ.js → layers.CAoG5EuC.js} +1 -1
  85. package/dist/{layers.DL7Occ8_.js → layers.CDObfsN_.js} +4 -4
  86. package/dist/{layers.Rqb094no.js → layers.CE0QKyvQ.js} +1 -1
  87. package/dist/{layers.CAPpcxRj.js → layers.CF_dni4i.js} +1 -1
  88. package/dist/layers.CIUhnXnx.js +8 -0
  89. package/dist/{layers.BkHnu2-6.js → layers.CIacoJds.js} +1 -1
  90. package/dist/{layers.Fpt5oaT3.js → layers.CJ5LoEpD.js} +1 -1
  91. package/dist/{layers.DqqoNc2P.js → layers.CJXiBXg1.js} +1 -1
  92. package/dist/{layers.B7LWcorD.js → layers.CPAQi7AA.js} +4 -4
  93. package/dist/{layers.mE80M07H.js → layers.CPOw__43.js} +1 -1
  94. package/dist/{layers.BULw5rnW.js → layers.CPQiCDj_.js} +1 -1
  95. package/dist/{layers.95Ghq2w-.js → layers.CPy2fKx6.js} +3 -3
  96. package/dist/{layers.B8oLbOBb.js → layers.CQ-Jsx6w.js} +1 -1
  97. package/dist/{layers.Dk2P825c.js → layers.CR6nWPIL.js} +1 -1
  98. package/dist/{layers.B1Dg3J-4.js → layers.CRXJYLfO.js} +1 -1
  99. package/dist/layers.CScBErSp.js +1 -0
  100. package/dist/{layers.D_Y4miLH.js → layers.CUe5mRrc.js} +1 -1
  101. package/dist/{layers.BNdiyUot.js → layers.CVH02qeM.js} +1 -1
  102. package/dist/{layers.DrBksqvQ.js → layers.CY_slUND.js} +1 -1
  103. package/dist/{layers.CxpQDvtX.js → layers.C_HU6pfZ.js} +1 -1
  104. package/dist/{layers.COpqPJVC.js → layers.Cbc8dakn.js} +1 -1
  105. package/dist/{layers.66AH3t0u.js → layers.Cdd_bUsF.js} +4 -4
  106. package/dist/{layers.j0HvHCaZ.js → layers.CeRv8YHM.js} +1 -1
  107. package/dist/{layers.B5ByQylA.js → layers.CeVmFekc.js} +1 -1
  108. package/dist/{layers.8jeOSkOU.js → layers.CfF7gh51.js} +1 -1
  109. package/dist/{layers.kmJbA_l9.js → layers.ChGuqqv7.js} +1 -1
  110. package/dist/{layers.Djdk0Z91.js → layers.CiVU2m-s.js} +3 -3
  111. package/dist/{layers.6jrCeFUn.js → layers.CjXDv1Vh.js} +1 -1
  112. package/dist/{layers.KsUNE6RQ.js → layers.ClCF3YnO.js} +1 -1
  113. package/dist/{layers.Dey6i2dY.js → layers.CmgxEE8U.js} +5 -5
  114. package/dist/{layers.DdnIDra4.js → layers.CnjqLFoy.js} +1 -1
  115. package/dist/{layers.DC8kFxAv.js → layers.Co0VBbUW.js} +1 -1
  116. package/dist/{layers.Dj4fcM2j.js → layers.Cq5zMJeK.js} +1 -1
  117. package/dist/{layers.B6NnnkO7.js → layers.Cqy1ggq7.js} +1 -1
  118. package/dist/{layers.CxQ_TuAw.js → layers.CrpPi9wM.js} +1 -1
  119. package/dist/{layers.Cqv3cwMy.js → layers.CsHIgNCQ.js} +1 -1
  120. package/dist/{layers.D-SybF7t.js → layers.CvwUBIav.js} +1 -1
  121. package/dist/{layers.yTtiqcpH.js → layers.CvxRNknI.js} +2 -2
  122. package/dist/{layers.D0U91QZE.js → layers.CwxTDQWg.js} +1 -1
  123. package/dist/{layers.D5M5ymCS.js → layers.Cz8jg9Z7.js} +1 -1
  124. package/dist/{layers.BHgvEAdn.js → layers.D0beqV_3.js} +1 -1
  125. package/dist/{layers.5rKHJ1G5.js → layers.D4Xw5XzP.js} +1 -1
  126. package/dist/{layers.DCkSRvY9.js → layers.D5PAhdE9.js} +1 -1
  127. package/dist/{layers.Dnwec7YR.js → layers.D5a0zd5k.js} +1 -1
  128. package/dist/{layers.B5i8aHSF.js → layers.D958JD1m.js} +4 -4
  129. package/dist/{layers.CuwO_zMp.js → layers.DAVDiwi5.js} +4 -4
  130. package/dist/{layers.5nvOikpH.js → layers.DApF839s.js} +1 -1
  131. package/dist/{layers.B8QjuVWk.js → layers.DArGFjqg.js} +1 -1
  132. package/dist/{layers.CaH7fwFn.js → layers.DFHNINYD.js} +1 -1
  133. package/dist/{layers.BrjzI46T.js → layers.DFtJscJY.js} +1 -1
  134. package/dist/{layers.DEAS4NBi.js → layers.DHpGBte3.js} +1 -1
  135. package/dist/{layers.D873z-nA.js → layers.DJL1lPa4.js} +1 -1
  136. package/dist/{layers.JJaX5Mch.js → layers.DJRzD3tq.js} +1 -1
  137. package/dist/{layers.CYU4OqTw.js → layers.DPbIUubb.js} +1 -1
  138. package/dist/{layers.B-3keV44.js → layers.DQPYsVGv.js} +1 -1
  139. package/dist/{layers.DoCHuu9t.js → layers.DRrpPebs.js} +1 -1
  140. package/dist/{layers.7YyBgpse.js → layers.DUGx-Av5.js} +1 -1
  141. package/dist/{layers.DHkkJHuz.js → layers.DWxhz8ah.js} +1 -1
  142. package/dist/{layers.CRH_oByb.js → layers.D_H6Ei0f.js} +1 -1
  143. package/dist/{layers.BJFJnCeS.js → layers.DaLPZPgz.js} +1 -1
  144. package/dist/{layers.BZb0JzDS.js → layers.Dc4ciFIk.js} +1 -1
  145. package/dist/{layers.BDNPVBm8.js → layers.DcOPlFF_.js} +1 -1
  146. package/dist/{layers.5bCC0sJ5.js → layers.DdD7K0bU.js} +1 -1
  147. package/dist/{layers.BaLFR9YF.js → layers.Ddz-SlE9.js} +1 -1
  148. package/dist/{layers.B4SsYmRI.js → layers.DekxMGba.js} +1 -1
  149. package/dist/{layers.Ci_A28_S.js → layers.Deu-JK5g.js} +1 -1
  150. package/dist/{layers.Ce7127uK.js → layers.Dhl2JRMN.js} +1 -1
  151. package/dist/{layers.BbbvJp9V.js → layers.DlikLbdu.js} +1 -1
  152. package/dist/{layers.GhcyNAqR.js → layers.DmPkLWl7.js} +1 -1
  153. package/dist/{layers.BXVw6b2c.js → layers.DmiNMHfP.js} +1 -1
  154. package/dist/{layers.BPRDrhk5.js → layers.DnfaXJAg.js} +1 -1
  155. package/dist/{layers.IE7VfbWN.js → layers.Do1I33RA.js} +1 -1
  156. package/dist/{layers.-9P_7F0j.js → layers.Dp3xB6zl.js} +3 -3
  157. package/dist/{layers.BIBn9QOS.js → layers.Dpw8VJWC.js} +80 -77
  158. package/dist/{layers.BZvYFFa7.js → layers.DqZwX3bM.js} +3 -3
  159. package/dist/{layers.BUrlXYaH.js → layers.DrmCsjYu.js} +3 -3
  160. package/dist/{layers.DcuGOK_9.js → layers.Ds2UnIu-.js} +1 -1
  161. package/dist/{layers.IeoiyeMs.js → layers.Dv3cn7Qt.js} +1 -1
  162. package/dist/{layers.DrpA-XKx.js → layers.DymlGyO9.js} +4 -4
  163. package/dist/{layers.Cqi1sTWj.js → layers.Dzs6dpbX.js} +1 -1
  164. package/dist/{layers.fsNUMdkQ.js → layers.DzueCZEv.js} +1 -1
  165. package/dist/{layers.DpNmIzL1.js → layers.FzU2QcEa.js} +1 -1
  166. package/dist/{layers.Bf6fERim.js → layers.HrbytToR.js} +1 -1
  167. package/dist/{layers.COJRqaIS.js → layers.Ii7zxBDL.js} +1 -1
  168. package/dist/{layers.B3cZ0pEN.js → layers.LwKPyzxv.js} +2 -2
  169. package/dist/{layers.zj_4iuZi.js → layers.MALK2-0G.js} +24 -24
  170. package/dist/{layers.Ddto66kl.js → layers.Nu90sllQ.js} +3 -3
  171. package/dist/{layers.COEAHSZK.js → layers.NwQLhrRw.js} +1 -1
  172. package/dist/{layers.CkNPPGso.js → layers.PBjr4JjP.js} +1 -1
  173. package/dist/{layers.COVX2ock.js → layers.QOPM56HS.js} +1 -1
  174. package/dist/{layers.CsJ9XJiE.js → layers.QPtk0bQz.js} +6 -6
  175. package/dist/{layers.9kUD-W2G.js → layers.QrRiUtI-.js} +1 -1
  176. package/dist/{layers.CZ-ElJru.js → layers.Qzyprzw4.js} +1 -1
  177. package/dist/{layers.CpZ2UHD5.js → layers.WY7duDtU.js} +1 -1
  178. package/dist/{layers.DFz0ZEd4.js → layers.WtAQasnK.js} +1 -1
  179. package/dist/{layers.DX5bveet.js → layers.XkPNY2Pg.js} +2 -2
  180. package/dist/{layers.DgOfgaXW.js → layers.Xl-JTBam.js} +1 -1
  181. package/dist/{layers.BEUq53GQ.js → layers.YIcRUQeQ.js} +1 -1
  182. package/dist/{layers.B77WPwn-.js → layers.YIg07z_q.js} +1 -1
  183. package/dist/{layers.DWugizcK.js → layers.ZXUCwumo.js} +1 -1
  184. package/dist/{layers.BdOSGHMx.js → layers.ZXvRSOE9.js} +1 -1
  185. package/dist/{layers.NA5dRfYd.js → layers.a1NL2KYy.js} +5 -5
  186. package/dist/{layers.C17cgrNp.js → layers.b7h6vqHn.js} +7 -7
  187. package/dist/{layers.Cp7hxoW1.js → layers.bbk9Wboh.js} +1 -1
  188. package/dist/{layers.4LeIkhk0.js → layers.bfuPkvIN.js} +8 -8
  189. package/dist/{layers.nAuUtz6r.js → layers.boSYF5QI.js} +3 -3
  190. package/dist/{layers.CdXuJSzH.js → layers.cQhH1Vdo.js} +1 -1
  191. package/dist/{layers.e3mgXIwM.js → layers.cxAAaf3i.js} +1 -1
  192. package/dist/{layers.CGFrVtTs.js → layers.e1niMRe0.js} +1 -1
  193. package/dist/{layers.DPRm6dr7.js → layers.gVtsS5Ul.js} +1 -1
  194. package/dist/{layers.Dx1Ls6x-.js → layers.hdqbF4we.js} +1 -1
  195. package/dist/{layers.zQ93LL_v.js → layers.iW17oc_E.js} +1 -1
  196. package/dist/{layers.DzBbmrgG.js → layers.ir1T7q-t.js} +1 -1
  197. package/dist/{layers.DMUeVzt3.js → layers.l2n2v_Gj.js} +1 -1
  198. package/dist/{layers.DJC4klu0.js → layers.lFd_jFuq.js} +1 -1
  199. package/dist/{layers.DEoOke4m.js → layers.nVF2DNLv.js} +1 -1
  200. package/dist/{layers.Dg6zda-a.js → layers.qTltEPTq.js} +1 -1
  201. package/dist/{layers.Dxi3L2Y7.js → layers.qbjDGXMP.js} +1 -1
  202. package/dist/{layers.CsPESZm3.js → layers.qxj-CvUs.js} +1 -1
  203. package/dist/{layers.C9EY_elr.js → layers.rZzIE9iO.js} +1 -1
  204. package/dist/{layers.C80oQ1LW.js → layers.sAWrjbAD.js} +1 -1
  205. package/dist/{layers.CVhcrgGA.js → layers.sMYe_3kY.js} +3 -3
  206. package/dist/{layers.CyL9tUoY.js → layers.u1-P6wcX.js} +1 -1
  207. package/dist/{layers.D99mvxr5.js → layers.ubuwHqO5.js} +3 -3
  208. package/dist/{layers.VTu4UiNd.js → layers.zPp6Rh0R.js} +1 -1
  209. package/package.json +4 -2
  210. package/dist/layers.BHiwXeyY.js +0 -1
  211. package/dist/layers.BahdtMqg.js +0 -8
  212. package/dist/layers.BqZLNBWs.js +0 -6
  213. package/dist/layers.dwwjuX02.js +0 -1
@@ -2,7 +2,7 @@ var kE = Object.defineProperty;
2
2
  var EE = (e, n, t) => n in e ? kE(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var re = (e, n, t) => EE(e, typeof n != "symbol" ? n + "" : n, t);
4
4
  import "@mantine/dropzone";
5
- import { DecoratorNode as Io, $applyNodeReplacement as Kn, createCommand as dt, $getSelection as q, $isNodeSelection as Gi, $isRangeSelection as de, $createParagraphNode as Me, $getNodeByKey as Je, $isTextNode as Nr, $isTabNode as JA, $createTabNode as xE, $createLineBreakNode as Gg, ElementNode as hn, HISTORY_MERGE_TAG as XA, $isRootOrShadowRoot as Bs, $isElementNode as Ue, $isLeafNode as VA, $isParagraphNode as In, $createTextNode as oo, TextNode as Bi, COMMAND_PRIORITY_LOW as De, INSERT_PARAGRAPH_COMMAND as qs, $isLineBreakNode as TE, $createRangeSelection as Kl, $setSelection as Et, $getRoot as xt, $createNodeSelection as LE, $getNearestNodeFromDOMNode as Pe, TEXT_TYPE_TO_FORMAT as ME, $normalizeSelection__EXPERIMENTAL as IE, isCurrentlyReadOnlyMode as DE, $createPoint as _g, $getEditor as qA, SELECTION_CHANGE_COMMAND as Jr, KEY_ARROW_DOWN_COMMAND as of, COMMAND_PRIORITY_HIGH as Gr, KEY_ARROW_UP_COMMAND as sf, KEY_ARROW_LEFT_COMMAND as $A, KEY_ARROW_RIGHT_COMMAND as e1, DELETE_WORD_COMMAND as NE, DELETE_LINE_COMMAND as Qg, DELETE_CHARACTER_COMMAND as af, COMMAND_PRIORITY_CRITICAL as ln, KEY_BACKSPACE_COMMAND as Hl, KEY_DELETE_COMMAND as lf, CUT_COMMAND as t1, FORMAT_TEXT_COMMAND as Zt, FORMAT_ELEMENT_COMMAND as Ii, CONTROLLED_TEXT_INSERTION_COMMAND as n1, KEY_TAB_COMMAND as r1, FOCUS_COMMAND as $s, SELECTION_INSERT_CLIPBOARD_NODES_COMMAND as BE, $getPreviousSelection as RE, $createRangeSelectionFromDom as OE, $isDecoratorNode as o1, setDOMUnmanaged as PE, CLICK_COMMAND as ea, COMMAND_PRIORITY_NORMAL as Cr, createEditor as i1, $copyNode as Jg, $isRootNode as sd, ParagraphNode as cf, UNDO_COMMAND as s1, REDO_COMMAND as uf, CLEAR_HISTORY_COMMAND as FE, COMMAND_PRIORITY_EDITOR as nr, HISTORIC_TAG as zE, COLLABORATION_TAG as UE, CLEAR_EDITOR_COMMAND as WE, getNearestEditorFromDOMNode as a1, COPY_COMMAND as df, DRAGOVER_COMMAND as KE, KEY_DOWN_COMMAND as _i, $selectAll as HE, INDENT_CONTENT_COMMAND as ff, RootNode as YE, KEY_ESCAPE_COMMAND as l1, isModifierMatch as Dt, OUTDENT_CONTENT_COMMAND as c1, PASTE_COMMAND as Yl, CAN_UNDO_COMMAND as jE, CAN_REDO_COMMAND as ZE, KEY_MODIFIER_COMMAND as GE, INSERT_LINE_BREAK_COMMAND as _E, KEY_SPACE_COMMAND as QE, BLUR_COMMAND as u1, $insertNodes as hf, KEY_ENTER_COMMAND as JE, DROP_COMMAND as XE } from "lexical";
5
+ import { DecoratorNode as Io, $applyNodeReplacement as Kn, createCommand as dt, $getSelection as q, $isNodeSelection as Gi, $isRangeSelection as de, $createParagraphNode as Me, $getNodeByKey as Je, $isTextNode as Nr, $isTabNode as JA, $createTabNode as xE, $createLineBreakNode as Gg, ElementNode as hn, HISTORY_MERGE_TAG as XA, $isRootOrShadowRoot as Bs, $isElementNode as Ue, $isLeafNode as VA, $isParagraphNode as In, $createTextNode as oo, TextNode as Bi, COMMAND_PRIORITY_LOW as De, INSERT_PARAGRAPH_COMMAND as qs, $isLineBreakNode as TE, $createRangeSelection as Kl, $setSelection as Et, $getRoot as Mt, $createNodeSelection as LE, $getNearestNodeFromDOMNode as Pe, TEXT_TYPE_TO_FORMAT as ME, $normalizeSelection__EXPERIMENTAL as IE, isCurrentlyReadOnlyMode as DE, $createPoint as _g, $getEditor as qA, SELECTION_CHANGE_COMMAND as Jr, KEY_ARROW_DOWN_COMMAND as of, COMMAND_PRIORITY_HIGH as Gr, KEY_ARROW_UP_COMMAND as sf, KEY_ARROW_LEFT_COMMAND as $A, KEY_ARROW_RIGHT_COMMAND as e1, DELETE_WORD_COMMAND as NE, DELETE_LINE_COMMAND as Qg, DELETE_CHARACTER_COMMAND as af, COMMAND_PRIORITY_CRITICAL as ln, KEY_BACKSPACE_COMMAND as Hl, KEY_DELETE_COMMAND as lf, CUT_COMMAND as t1, FORMAT_TEXT_COMMAND as Zt, FORMAT_ELEMENT_COMMAND as Ii, CONTROLLED_TEXT_INSERTION_COMMAND as n1, KEY_TAB_COMMAND as r1, FOCUS_COMMAND as $s, SELECTION_INSERT_CLIPBOARD_NODES_COMMAND as BE, $getPreviousSelection as RE, $createRangeSelectionFromDom as OE, $isDecoratorNode as o1, setDOMUnmanaged as PE, CLICK_COMMAND as ea, COMMAND_PRIORITY_NORMAL as Cr, createEditor as i1, $copyNode as Jg, $isRootNode as sd, ParagraphNode as cf, UNDO_COMMAND as s1, REDO_COMMAND as uf, CLEAR_HISTORY_COMMAND as FE, COMMAND_PRIORITY_EDITOR as nr, HISTORIC_TAG as zE, COLLABORATION_TAG as UE, CLEAR_EDITOR_COMMAND as WE, getNearestEditorFromDOMNode as a1, COPY_COMMAND as df, DRAGOVER_COMMAND as KE, KEY_DOWN_COMMAND as _i, $selectAll as HE, INDENT_CONTENT_COMMAND as ff, RootNode as YE, KEY_ESCAPE_COMMAND as l1, isModifierMatch as Dt, OUTDENT_CONTENT_COMMAND as c1, PASTE_COMMAND as Yl, CAN_UNDO_COMMAND as jE, CAN_REDO_COMMAND as ZE, KEY_MODIFIER_COMMAND as GE, INSERT_LINE_BREAK_COMMAND as _E, KEY_SPACE_COMMAND as QE, BLUR_COMMAND as u1, $insertNodes as hf, KEY_ENTER_COMMAND as JE, DROP_COMMAND as XE } from "lexical";
6
6
  import { jsx as h, jsxs as Z, Fragment as Ye } from "react/jsx-runtime";
7
7
  import * as VE from "react";
8
8
  import jl, { useRef as Ee, useCallback as We, useState as G, useEffect as _, forwardRef as Zl, createElement as ad, useContext as _e, useMemo as bt, createContext as oi, memo as qE, lazy as Gl, Suspense as _l, PureComponent as $E } from "react";
@@ -714,7 +714,7 @@ class d0 extends a0 {
714
714
  this.shouldConnect = !0, !this.wsconnected && this.ws === null && (u0(this), this.connectBc());
715
715
  }
716
716
  }
717
- const qM = "0.7.52", $M = {
717
+ const qM = "0.7.54", $M = {
718
718
  version: qM
719
719
  }, e5 = /* @__PURE__ */ JSON.parse(`{"placeholder":"Write something, or press '/' for commands...","heading":{"h1":"Heading 1","h2":"Heading 2","h3":"Heading 3","name":"Heading"},"close":"Close","upload":"Upload","unsavedChanges":{"title":"Unsaved changes","message":"Are you sure you want to close the page? All unsaved data will be lost.","cancel":"Cancel","closeWithoutSaving":"Close without saving"},"menu":{"heading":{"title":"Headings","hintShowCase":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","h1":{"subtitle":"Large Heading","hintDescription":"H1 is used to create the main heading of a page or section, which sets the overall theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header1":"header1","headerOne":"headerone","h1":"h1"}},"h2":{"subtitle":"Medium Heading","hintDescription":"H2 is used to create a secondary heading of a page or section, which sets a general theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header2":"header2","headerTwo":"headertwo","h2":"h2"}},"h3":{"subtitle":"Small Heading","hintDescription":"H3 is used to create a subheading of a page or section, which sets a general theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header3":"header3","headerThree":"headerthree","h3":"h3"}}},"lists":{"title":"Lists","numberList":{"name":"Numbered List","subtitle":"A simple numbered list","hint":{"firstItem":"First item","secondItem":"Second item","firstSubItem":"First sub-item","secondSubItem":"Second sub-item","firstSubSubItem":"First sub-sub-item","secondSubSubItem":"Second sub-sub-item","description":"This tool creates a list with items that are automatically numbered when new rows are added."}},"bulletList":{"name":"Bulleted List","subtitle":"Automatically marked list","hint":{"firstItem":"First item","secondItem":"Second item","firstSubItem":"First sub-item","secondSubItem":"Second sub-item","firstSubSubItem":"First sub-sub-item","secondSubSubItem":"Second sub-sub-item","description":"This tool creates a list with items that are automatically marked with bullets when new rows are added."}},"checkList":{"name":"Checklist","subtitle":"Easy task management","hint":{"indeterminate":"Indeterminate","unchecked":"Unchecked","checked":"Checked","description":"Creates a task list with the ability to mark completed items and sub-items."}}},"main":{"title":"Basics","paragraph":{"name":"Paragraph","subtitle":"Simply start typing regular text","hint":{"text":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","description":"A few lines of text, left-aligned, imitating a text block."}},"quote":{"name":"Quote","subtitle":"Write down a quote","hint":{"text":"/quote Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster. Stay focused, stay aligned, and achieve more with Layers.","description":"Used to insert quotes or highlight important text blocks. It is visually separated from the main text."}},"collapse":{"name":"Collapsible","subtitle":"Hide block content","hint":{"firstItemEmpty":"First item is empty","secondItem":"Second item","firstSubItemEmpty":"First sub-item is empty","secondSubItem":"Second sub-item","firstSubSubItemEmpty":"First sub-sub-item is empty","secondSubSubItem":"Second sub-sub-item","description":"Used to create blocks with content that can be hidden or shown when clicked. Almost any other block can be placed inside such a list."}},"horizontal-rule":{"name":"Divider","subtitle":"Visualizes block dividers","hint":{"topText":"Pressed the slash. Then entered something...","bottomText":"The next day, everything became clearer and more understandable. As if what was unknown yesterday became completely familiar and ordinary today. Take, for example...","description":"Used to visually separate sections or blocks of text on a page."}},"table":{"name":"Table","subtitle":"Add a simple table to your page","hint":{"firstRow":"First cell filled with text","secondRow":"And another cell with text","description":"A tool for creating tables with multiple rows and columns to organize data."}},"grid":{"name":"Grid","subtitle":"Up to 4 columns of blocks","hint":{"firstColumn":"The next day, everything became clearer and more understandable. As if what was unknown yesterday became completely familiar and ordinary today. Take, for example...","secondColumn":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","description":"A tool for dividing a document into multiple columns, into which any blocks can be placed."}},"code":{"name":"Code","subtitle":"Write a code snippet","copy":"Copy code","exitCommandText":"Shift + Enter to exit code block","languageSearchPlaceholder":"Search for a language...","collapsible":{"hidden":"Collapse code","expand":"Expand code"},"hint":{"description":"A tool for inserting code snippets with syntax highlighting."}},"callout":{"name":"Callout","subtitle":"Make writing stand out","hint":{"description":"-."}}},"callout":{"title":"Callout","default":{"name":"Default","hint":{"description":"A few lines of text aligned to the left, simulating a text block.","body":"/callout Your Ideas, Documents, and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster. Your Ideas and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster. Your Ideas, Documents, and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster."},"keywords":{"callout":"callout","type":"default"},"subtitle":"Default callout"},"success":{"name":"Success","subtitle":"Successful notification","keywords":{"callout":"callout","type":"success"}},"warning":{"name":"Warning","hint":{"description":"A few lines of text aligned to the left, simulating a text block."},"keywords":{"callout":"callout","type":"warning"},"subtitle":"Important notification"},"alert":{"name":"Alert","hint":{"description":"A few lines of text aligned to the left, simulating a text block."},"keywords":{"callout":"callout","type":"alert"},"subtitle":"Critical notification"}},"media":{"title":"Media","photo":{"name":"Image","hint":{"description":"A tool for adding an image to a page."},"subtitle":"Upload and place via link"},"form":{"name":"Form","subtitle":"Add a form"},"video":{"name":"Video","hint":{"description":"A tool for embedding video on a page."},"subtitle":"Add a video"},"file":{"name":"File","hint":{"description":"Upload any files up to 500 MB in size, and they will be available for download to anyone you share the link to this page with."},"subtitle":"Add a file"},"audio":{"name":"Audio","hint":{"description":"Upload any audio files up to 5 MB in size, and they will be available for download and listening to anyone you share the link to this page with."},"subtitle":"Add a audio"},"excalidraw":{"name":"Paint","hint":{"description":"Draw any scheme or kind landscape. Free creativity where everything is in your hands."},"keywords":{"video":"draw"},"subtitle":"Work with vector graphics","tools":{"frameTool":"Frame tool","webEmbed":"Web Embed","generate":"Generate"}}},"other":{"title":"Other","documents":{"empty":"You have no nested documents","loading":"Loading documents...","name":"Nested Documents","subtitle":"Displays a list of nested documents"},"pageLink":{"name":"Link to page","subtitle":"Insert a link to another page","modalTitle":"Choose a page","selectPage":"Select a page","searchPlaceholder":"Search for a page...","empty":"No pages available","placeholder":"Link page"},"inlinePageLink":{"name":"Inline page link","subtitle":"Insert a page link inside text"},"emoji":{"name":"Emoji","subtitle":"Add emoji"},"equation":{"name":"Equation","subtitle":"Add a block equation","keywords":{"equation":"equation","formula":"formula","math":"math","latex":"latex","block":"block","expression":"expression","tex":"tex"}},"inlineEquation":{"name":"Inline Equation","subtitle":"Add an inline equation","keywords":{"equation":"equation","formula":"formula","math":"math","latex":"latex","inline":"inline","expression":"expression","tex":"tex"}}},"equation":{"placeholder":{"block":"Add a TeX equation","inline":"New equation"}},"integrations":{"title":"Integrations"}},"toolbar":{"turnInto":"Turn into","bold":"Bold","italic":"Italic","underline":"Underline","strike":"Strikethrough","superscript":"Superscript","subscript":"Subscript","align":"Alignment","left":"Align Left","center":"Align Center","right":"Align Right","justify":"Justify","indent":"Indent","outdent":"Outdent","color":"Color","code":"Code","link":"Add Link","clear":"Clear Formatting","comment":"Comment"},"link":{"linkName":"Link name","link":"Link","name":"Name","save":"Save","remove":"Remove","edit":"Edit","copy":"Copy","type":{"web":"Web link","phone":"Phone number","email":"Email address","sms":"SMS message"}},"contextMenu":{"copy":"Copy","cut":"Cut","paste":"Paste","delete":"Delete","add":"Add","selectAll":"Select All","duplicate":"Duplicate","appearance":"Appearance"},"colors":{"lastTimeUsed":"Last Used","color":"Color","background":"Background","theme":"Theme","colors":{"standard":"Standard","gray":"Gray","brown":"Brown","orange":"Orange","yellow":"Yellow","green":"Green","blue":"Blue","purple":"Purple","pink":"Pink","red":"Red"},"callout":{"success":"Success","alert":"Alert","warning":"Warning"}},"video":{"insert":"Embed","apply":"Apply","worksWith":"Works with","add_video":"Add Video","source":{"embedLink":"Embed link","uploadVideo":"Upload video"},"link":{"placeholder":"Paste the video link...","save":"Save","invalid":"Enter a valid video link."},"upload":{"title":"Upload video","processed":"Video uploaded. {{percent}}% processed.","dragDrop":"Drag & drop a video or","chooseFile":"choose a file","toUpload":"to upload","maxSize":"Maximum file size: {{size}}. Supported formats: MP4, WebM, OGG.","otherFormats":"(Other formats will be converted automatically)","uploading":"Uploading File","remaining":"Remaining:","progress":"Uploading:"},"actions":{"pause":"Pause","resume":"Resume","cancel":"Cancel","retry":"Retry","selectAnotherFile":"Select another file"},"errors":{"uploadFailed":"Upload failed","sizeLimit":"Your file surpasses the size limit of {{size}}","format":"This video format isn't supported and can't be converted.","formatHint":"Please upload a video in MP4, WebM, or OGG format.","interrupted":"Upload interrupted. Check your connection.","offsetMismatch":"Upload synchronization error. The upload will be retried automatically.","stall":"Upload appears to be stalled. Please check your connection and try again.","unknown":"An error occurred during upload."},"transcoding":{"title":"Transcoding video","analysis":"Analysis","conversion":"Conversion"},"player":{"play":"Play","pause":"Pause","mute":"Mute","unmute":"Unmute","volume":"Volume","settings":"Settings","pictureInPicture":"Picture in picture","enterFullscreen":"Enter fullscreen","exitFullscreen":"Exit fullscreen","playbackError":"Playback error: code {{code}}. Try refreshing the page."},"settings":{"title":"Settings","subtitlesCc":"Subtitles/CC","speed":"Speed","quality":"Quality","normal":"Normal","auto":"Auto","off":"Off"},"settingsModal":{"title":"Video settings","cover":"Cover","uploadFile":"Upload file","cropCoverImage":"Crop cover image","subtitles":"Subtitles","enableAutoSubtitles":"Enable auto-generated subtitles","hideAutoSubtitles":"Hide automatically generated subtitles","uploadSubtitlesManually":"Upload subtitles manually","subtitlesFormatHint":"Upload subtitles in .SRT or .VTT format.","successfullyLoaded":"Successfully loaded","autoGenerated":"Auto-generated","addSubtitleTrack":"Add a subtitle track","selectLanguage":"Select language","defaultLabel":"Default","setDefaultSubtitle":"Set as default","downloadVtt":"Download VTT","deleteSubtitle":"Delete track","uploadError":"Upload failed","chapters":"Transcript","chaptersCustom":"Custom transcript","chaptersDontShow":"Don't show transcript","chaptersPlaceholder":"00:00 Intro\\n01:23 Demo\\n05:10 Summary","chaptersTimePlaceholder":"00:00","chaptersEndTimePlaceholder":"01:23","chaptersTitlePlaceholder":"Chapter name","chaptersInvalidTimeRange":"Invalid chapter time range","addChapter":"Add a transcript","deleteChapter":"Delete transcript","saveChapters":"Save chapters","suggestChapters":"Suggest auto","refreshChapters":"Refresh","emptyChapters":"No chapters yet","chaptersError":"Failed to load chapters","transcript":"Transcript","enableAutoTranscript":"Enable auto-generated transcript","uploadTranscriptManually":"Upload transcript manually","addTranscriptManually":"Add a transcript manually","setCover":"Set as cover","emptyCovers":"No cover previews yet","loadError":"Failed to load cover previews","retry":"Retry","cancel":"Cancel","save":"Save"},"delete":"Delete"},"swagger":{"insert":"Swagger","worksWith":"Works with","add":"Add Swagger"},"image":{"add_photo":"Add Image","preview":"Preview"},"file":{"add_file":"Add File"},"audio":{"add_audio":"Add Audio"},"mention":{"mark":"Mark someone"},"validation":{"link":"Invalid Link","shouldNotExceed":"File size should not exceed {{maxSize}} MB.","doNotUploadMoreThanSingleFile":"Please upload no more than one file.","swaggerUnavailable":"Swagger documentation is unavailable. Please make sure the URL is correct and the server is responding."},"table":{"background_one":"Cell Background Color","background_other":"Cells background color","settings":"Settings","menu":{"addColAfter":"Add Column Right","addColBefore":"Add Column Left","addRowAbove":"Add Row Above","addRowBelow":"Add Row Below","deleteCol":"Delete Column","deleteRow":"Delete Row","mergeCells":"Merge Cells","disconnectCells":"Disconnect Cells","splitCell":"Split Cell","deleteTable":"Delete Table","insertRow_one":"Insert row","insertRow_other":"Insert {{count}} rows","deleteRow_one":"Delete row","deleteRow_other":"Delete {{count}} rows","insertCol_one":"Insert column","insertCol_other":"Insert {{count}} columns","deleteCol_one":"Delete column","deleteCol_other":"Delete {{count}} columns","headTable_col":"{{value}} row column","headTable_row":"{{value}} row header","below":"Below","above":"Above","left":"Left","right":"Right","row":"Row","rows":"Rows","column":"Column","columns":"Columns"}},"column":{"name":"Insert Grid","insert":"Insert","columns":"Columns","addRight":"Add a column to the right","addLeft":"Add a column to the left","moveLeft":"Move a column to the left","changeColor":"Change the column color","moveRight":"Move a column to the right","deleteColumn":"Delete a column"},"hoverOptions":{"addNewBlockBelow":"Add block below","addNewBlockAbove":"Add block above","drag":"Drag","click":"Click","clickAction":"To open the menu","dragAction":"To move"},"embed":{"placeholder":"Enter a valid embed URL","insert":"Embed","addEmbed":"Add Embed"},"content":"Content","emoji":{"emojis":"Emoji","icons":"Icons","search":"Search","searchResults":"Search result","searchNoResults":"Emoji not found","remove":"Remove","emojiCategory":{"frequent":"Frequently used","people":"Emotions and people","nature":"Animals and nature","foods":"Food and drinks","activity":"Activities","places":"Travel and Places","objects":"Items","symbols":"Symbols","flags":"Flags"}},"form":{"url":"Enter a valid URL."},"noTitle":"No title","gallery":{"download":"Download","close":"Close","errorFile":"Failed to download file"},"emptyPageOptions":{"heading":"A Heading that will automatically generate an interactive table of contents","grid":"The grid will help structure the page horizontally","template":"Create from Template","list":"Numbered list, for easy outlining of the meeting","code":"Code block with syntax support","callout":"Callout for highlighting","table":"Table, to find dependencies in the data","integrations":"Many integrations from third-party services"},"composer":{"discardCommentTitle":"Close without saving?","discardCommentDescription":"Your entered content will be lost.","discardConfirm":"Close","cancel":"Continue","replaceComment":{"title":"Comment already exists","description":"You have selected text that already contains a comment.\\nThe previous comment will be removed.","confirm":"Replace","cancel":"Cancel"},"uploadErrors":{"fileTooLarge":"The file is too large — the maximum size is 5 MB.","tooManyFiles":"You cannot upload more than 10 files."},"placeholder":"Add comment"},"ai":{"placeholder":"Custom prompt","copied":"copied","copy":"copy","back":"Back","menu":{"style":{"professional":"Professional","straightforward":"Straightforward","passiveAggressive":"Passive-aggressive","friendly":"Friendly","poetic":"Poetic","passive_aggressive":"Passive aggressive","pirate":"Pirate"},"main":{"modifySelection":"Modify selection","improveWriting":"Improve writing","fixMistakes":"Fix mistakes","simplify":"Simplify","addMoreDetail":"Add more detail","generate":"Generate","summarise":"Summarise","translate":"Translate into...","changeStyle":"Change style to...","explain":"Explain"},"answer":{"replaceSelection":"Replace selection","addTextInline":"Add text inline","addBelowParagraph":"Add below paragraph","modifyFurther":"Modify further","continueWriting":"Continue writing","regenerate":"Regenerate","otherOptions":"Other options","discard":"Discard"},"languages":{"arabic":"Arabic","bengali":"Bengali","chinese":"Chinese","dutch":"Dutch","english":"English","french":"French","german":"German","hindi":"Hindi","japanese":"Japanese","korean":"Korean","nepali":"Nepali","portuguese":"Portuguese","spanish":"Spanish"}}},"actions":{"delete":"Delete","align":"Alignment"},"cancel":"Cancel"}`), t5 = {
720
720
  editor: e5
@@ -902,7 +902,7 @@ const $n = {
902
902
  }
903
903
  };
904
904
  return e === "comment" && n.text && (delete n.text.strikethrough, delete n.text.underlineStrikethrough), n;
905
- }, l5 = VE.lazy(() => import("./layers.Bx5mpSyZ.js"));
905
+ }, l5 = VE.lazy(() => import("./layers.BvyGl84_.js"));
906
906
  function fm(e) {
907
907
  const n = e.getAttribute("data-lexical-equation"), t = e.getAttribute("data-lexical-inline") === "true", r = e.getAttribute("data-lexical-equation-preview");
908
908
  let o = "";
@@ -3030,7 +3030,7 @@ const oc = [
3030
3030
  s.closest(".draggable-block-menu") || s.closest(".toolbar") || s.closest(".draggable-menu") || (e == null || e.classList.remove(n), t.update(() => {
3031
3031
  s.closest(".ContentEditable__root") || Et(null), o instanceof KeyboardEvent && n === "selected-all-document" && o.key !== "Escape" && t.update(() => {
3032
3032
  var c;
3033
- (c = xt().getFirstChild()) == null || c.selectStart();
3033
+ (c = Mt().getFirstChild()) == null || c.selectStart();
3034
3034
  }), o instanceof KeyboardEvent && n === "selected-all-document" && o.key === "Escape" && t.blur();
3035
3035
  }), setTimeout(() => {
3036
3036
  document.body.removeEventListener("mousedown", r), document.removeEventListener("keydown", r);
@@ -4087,7 +4087,7 @@ class CI {
4087
4087
  ht(r) || Te(!1, "Expected grid selection");
4088
4088
  const o = r.getNodes().filter(ve);
4089
4089
  if (o.length === this.table.columns * this.table.rows) {
4090
- t.selectPrevious(), t.remove(), xt().selectStart();
4090
+ t.selectPrevious(), t.remove(), Mt().selectStart();
4091
4091
  return;
4092
4092
  }
4093
4093
  o.forEach((s) => {
@@ -4336,7 +4336,7 @@ function yI(e, n, t, r) {
4336
4336
  t.registerCommand(
4337
4337
  n1,
4338
4338
  (b) => {
4339
- const y = q(), w = y == null ? void 0 : y.getNodes(), S = ve(w[1]), k = xt(), L = t._keyToDOMMap.size - 1 === (y == null ? void 0 : y.getNodes().length);
4339
+ const y = q(), w = y == null ? void 0 : y.getNodes(), S = ve(w[1]), k = Mt(), L = t._keyToDOMMap.size - 1 === (y == null ? void 0 : y.getNodes().length);
4340
4340
  if (S && t.update(() => {
4341
4341
  const N = Me(), D = to(b);
4342
4342
  N.append(D), w.forEach((E) => {
@@ -6388,9 +6388,9 @@ const A4 = ({
6388
6388
  ), Se = Math.floor(J.clientY - le.startY);
6389
6389
  let Ne = 0;
6390
6390
  ke || gn ? Ne = nt / ge * 100 : (qe || pt || Ze) && (Ne = Se * He), (ke || qe) && (!mt || Nt && !ke) && (!pt || Ze) && (Ne = -Ne), (qe && gn || pt && gn) && (Ne = nt / ge * 100), Ne = Math.max(-100, Math.min(100, Ne));
6391
- const Tt = le.startWidthPercent + Ne, ft = le.startHeightPercent + Ne;
6391
+ const xt = le.startWidthPercent + Ne, ft = le.startHeightPercent + Ne;
6392
6392
  le.currentWidthPercent = ce(
6393
- Math.max(ae, Tt),
6393
+ Math.max(ae, xt),
6394
6394
  ie
6395
6395
  ), le.currentHeightPercent = ce(
6396
6396
  Math.max(ae, ft),
@@ -6433,19 +6433,19 @@ const A4 = ({
6433
6433
  };
6434
6434
  H.current = mn, document.addEventListener("mousedown", mn, !0), document.addEventListener("pointerdown", mn, !0), document.addEventListener("click", mn, !0);
6435
6435
  }
6436
- const { width: je, height: Ve, top: He, left: mt } = le, Ze = J.clientX - mt, ke = J.clientY - He, qe = ke <= tl, pt = ke >= Ve - tl, Nt = Ze <= tl, gn = Ze >= je - tl, nt = te.current, Se = window.getComputedStyle(ie), Ne = parseFloat(Se.paddingTop), Tt = parseFloat(Se.paddingBottom), ft = parseFloat(Se.paddingLeft), vt = parseFloat(Se.paddingRight);
6437
- nt.rootHeight = ge.height - Ne - Tt || 0, nt.rootWidth = ge.width - ft - vt || 0, nt.ratio = je / Ve, nt.currentWidth = nt.currentWidth || je, nt.currentWidthPercent = +O.current.style.width.replace(
6436
+ const { width: je, height: Ve, top: He, left: mt } = le, Ze = J.clientX - mt, ke = J.clientY - He, qe = ke <= tl, pt = ke >= Ve - tl, Nt = Ze <= tl, gn = Ze >= je - tl, nt = te.current, Se = window.getComputedStyle(ie), Ne = parseFloat(Se.paddingTop), xt = parseFloat(Se.paddingBottom), ft = parseFloat(Se.paddingLeft), vt = parseFloat(Se.paddingRight);
6437
+ nt.rootHeight = ge.height - Ne - xt || 0, nt.rootWidth = ge.width - ft - vt || 0, nt.ratio = je / Ve, nt.currentWidth = nt.currentWidth || je, nt.currentWidthPercent = +O.current.style.width.replace(
6438
6438
  "%",
6439
6439
  ""
6440
6440
  ), nt.currentHeight = nt.currentHeight || Ve, nt.currentHeightPercent = +O.current.style.height.replace("%", ""), nt.startX = J.clientX, nt.startY = J.clientY, nt.startWidth = nt.currentWidth || je, nt.startWidthPercent = nt.currentWidthPercent, nt.startHeight = nt.currentHeight || Ve, nt.startHeightPercent = nt.currentHeightPercent, nt.isResizing = !0, nt.isTop = qe, nt.isBottom = pt, nt.isLeft = Nt, nt.isRight = gn, nt.direction = pt || qe ? "y" : "x", l && l(), O.current.setPointerCapture(J.pointerId);
6441
- const yt = ((sn = O.current.parentElement) == null ? void 0 : sn.offsetWidth) ?? nt.rootWidth, { maxWidthPercent: rr, minResizePercent: Lt } = m4(yt);
6441
+ const yt = ((sn = O.current.parentElement) == null ? void 0 : sn.offsetWidth) ?? nt.rootWidth, { maxWidthPercent: rr, minResizePercent: Tt } = m4(yt);
6442
6442
  document.addEventListener(
6443
6443
  "pointermove",
6444
6444
  (mn) => {
6445
6445
  var Dn, so;
6446
6446
  return $(
6447
6447
  mn,
6448
- g === "video" ? 40 : Lt,
6448
+ g === "video" ? 40 : Tt,
6449
6449
  rr,
6450
6450
  (so = (Dn = O.current) == null ? void 0 : Dn.parentElement) == null ? void 0 : so.offsetWidth
6451
6451
  );
@@ -7726,7 +7726,7 @@ function qf(e, n, t, r, o, s) {
7726
7726
  function Hu(e) {
7727
7727
  return e instanceof ns;
7728
7728
  }
7729
- const Fm = Gl(() => import("./layers.DX5bveet.js"));
7729
+ const Fm = Gl(() => import("./layers.XkPNY2Pg.js"));
7730
7730
  function uD(e) {
7731
7731
  const n = e.getAttribute("data-lexical-excalidraw-json"), t = e.firstChild.style.height || "0", r = e.firstChild.style.width || "0", o = e.style.justifyContent || "left", s = t === "inherit" ? "inherit" : parseInt(t, 10), l = r === "inherit" ? "inherit" : parseInt(r, 10);
7732
7732
  return n ? {
@@ -7970,7 +7970,7 @@ class na extends Do {
7970
7970
  function $f(e) {
7971
7971
  return new na(e);
7972
7972
  }
7973
- const pD = Gl(() => import("./layers.CsPESZm3.js"));
7973
+ const pD = Gl(() => import("./layers.qxj-CvUs.js"));
7974
7974
  function gD(e) {
7975
7975
  const n = e;
7976
7976
  if (n.src.startsWith("file:///"))
@@ -8178,7 +8178,7 @@ function hc({
8178
8178
  function Gs(e) {
8179
8179
  return e instanceof Oo;
8180
8180
  }
8181
- const mD = Gl(() => import("./layers.BCQeEgwX.js"));
8181
+ const mD = Gl(() => import("./layers.Bj67z-Gi.js"));
8182
8182
  function AD(e) {
8183
8183
  if (e instanceof HTMLImageElement) {
8184
8184
  const { alt: n, src: t, width: r, height: o } = e;
@@ -9131,11 +9131,11 @@ const Bl = (e) => {
9131
9131
  q() !== null && Et(null);
9132
9132
  });
9133
9133
  }, Nd = () => {
9134
- const e = xt(), n = e == null ? void 0 : e.getFirstChild();
9134
+ const e = Mt(), n = e == null ? void 0 : e.getFirstChild();
9135
9135
  return e.getChildren().length > 1 ? !1 : n && Ue(n) && n.isEmpty() && !dn(n);
9136
9136
  }, PD = (e) => {
9137
9137
  e.update(() => {
9138
- const n = xt(), t = Me(), r = q();
9138
+ const n = Mt(), t = Me(), r = q();
9139
9139
  de(r) && (r.format = 0, r.setStyle("")), n.append(t).selectEnd();
9140
9140
  });
9141
9141
  }, Rl = dt("INSERT_IMAGE_COMMAND"), FD = dt("UPLOAD_IMAGE_COMMAND");
@@ -9189,7 +9189,7 @@ const nh = (e) => {
9189
9189
  if (n && t)
9190
9190
  return n instanceof yr ? ((l = n.getPreviousSibling()) == null || l.replace(e), !0) : (n == null || n.replace(e), !0);
9191
9191
  if (!n)
9192
- return xt().append(e), !0;
9192
+ return Mt().append(e), !0;
9193
9193
  }, Bd = dt(
9194
9194
  "INSERT_FILE_COMMAND"
9195
9195
  ), j0 = dt("UPLOAD_FILE_COMMAND");
@@ -10453,7 +10453,7 @@ function xN({
10453
10453
  ), [t]), _(() => t.registerUpdateListener(
10454
10454
  ({ dirtyElements: w, prevEditorState: S, tags: k }) => {
10455
10455
  !r && w.size > 0 && !k.has(zE) && !k.has(UE) && kN(t), t.getEditorState().read(() => {
10456
- const N = xt().getChildren();
10456
+ const N = Mt().getChildren();
10457
10457
  if (N.length > 1)
10458
10458
  p(!1);
10459
10459
  else if (In(N[0])) {
@@ -10467,7 +10467,7 @@ function xN({
10467
10467
  const y = We(() => {
10468
10468
  t.update(() => {
10469
10469
  var L;
10470
- const w = xt(), S = w.getFirstChild();
10470
+ const w = Mt(), S = w.getFirstChild();
10471
10471
  let k = null;
10472
10472
  if (yo(S))
10473
10473
  k = S;
@@ -11223,6 +11223,7 @@ function qN() {
11223
11223
  // "Container > Title + Content" it'll unwrap nodes and convert it back
11224
11224
  // to regular content.
11225
11225
  e.registerNodeTransform(no, (n) => {
11226
+ if (!n.isAttached()) return;
11226
11227
  const t = n.getParent();
11227
11228
  if (!Un(t)) {
11228
11229
  const r = n.getChildren();
@@ -11232,6 +11233,7 @@ function qN() {
11232
11233
  }
11233
11234
  }),
11234
11235
  e.registerNodeTransform(xo, (n) => {
11236
+ if (!n.isAttached()) return;
11235
11237
  const t = n.getParent();
11236
11238
  if (!Un(t)) {
11237
11239
  n.replace(
@@ -11241,6 +11243,7 @@ function qN() {
11241
11243
  }
11242
11244
  }),
11243
11245
  e.registerNodeTransform(ni, (n) => {
11246
+ if (!n.isAttached()) return;
11244
11247
  const t = n.getChildren();
11245
11248
  if (t.length !== 2 || !qo(t[0]) || !Zs(t[1])) {
11246
11249
  for (const r of t)
@@ -11770,6 +11773,7 @@ function r9() {
11770
11773
  ln
11771
11774
  ),
11772
11775
  e.registerNodeTransform(Wn, (n) => {
11776
+ if (!n.isAttached()) return;
11773
11777
  const t = n.getParent();
11774
11778
  if (!Dl(t)) {
11775
11779
  const r = n.getChildren();
@@ -11779,6 +11783,7 @@ function r9() {
11779
11783
  }
11780
11784
  }),
11781
11785
  e.registerNodeTransform(tr, (n) => {
11786
+ if (!n.isAttached()) return;
11782
11787
  const t = n.getChildren();
11783
11788
  if (!t.every(Ir)) {
11784
11789
  for (const r of t)
@@ -12095,7 +12100,7 @@ function u9(e) {
12095
12100
  }, T.children && T.children.length && E.push(...T.children);
12096
12101
  }
12097
12102
  e.update(() => {
12098
- const I = [...xt().getChildren()];
12103
+ const I = [...Mt().getChildren()];
12099
12104
  for (; I.length; ) {
12100
12105
  const R = I.pop();
12101
12106
  if (Pm(R)) {
@@ -13330,7 +13335,7 @@ function pC({
13330
13335
  key: "excalidraw",
13331
13336
  hide: n || t.excalidraw,
13332
13337
  onSelect: () => {
13333
- t.excalidraw || import("./layers.DqLnUx0P.js").then(
13338
+ t.excalidraw || import("./layers.B81dZXcy.js").then(
13334
13339
  ({ INSERT_EXCALIDRAW_COMMAND: L }) => {
13335
13340
  Kt(
13336
13341
  e,
@@ -13883,14 +13888,14 @@ function z9({
13883
13888
  const [n] = Fe(), { disable: t } = _e(et);
13884
13889
  return _(() => {
13885
13890
  t || n.update(() => {
13886
- xt().getFirstChild() && setTimeout(() => {
13891
+ Mt().getFirstChild() && setTimeout(() => {
13887
13892
  var s;
13888
13893
  (s = n._rootElement) == null || s.setAttribute("contenteditable", "true");
13889
13894
  }, 0);
13890
13895
  });
13891
13896
  }, [n, e, t]), null;
13892
13897
  }
13893
- const U9 = (e) => e.getEditorState().read(() => xt().getChildrenKeys()).map((t) => ({
13898
+ const U9 = (e) => e.getEditorState().read(() => Mt().getChildrenKeys()).map((t) => ({
13894
13899
  key: t,
13895
13900
  node: Je(t),
13896
13901
  htmlElement: e.getElementByKey(t)
@@ -13966,7 +13971,7 @@ const U9 = (e) => e.getEditorState().read(() => xt().getChildrenKeys()).map((t)
13966
13971
  return _(() => {
13967
13972
  if (!r)
13968
13973
  return e.read(() => {
13969
- const s = xt().getChildren();
13974
+ const s = Mt().getChildren();
13970
13975
  if (s.length === 1) {
13971
13976
  const l = s[0];
13972
13977
  l.getTextContent() || setTimeout(() => {
@@ -14712,7 +14717,7 @@ function q9() {
14712
14717
  ["partial", D],
14713
14718
  ["partialRight", E],
14714
14719
  ["rearg", I]
14715
- ], oe = "[object Arguments]", J = "[object Array]", ae = "[object AsyncFunction]", ie = "[object Boolean]", ge = "[object Date]", he = "[object DOMException]", le = "[object Error]", ye = "[object Function]", je = "[object GeneratorFunction]", Ve = "[object Map]", He = "[object Number]", mt = "[object Null]", Ze = "[object Object]", ke = "[object Promise]", qe = "[object Proxy]", pt = "[object RegExp]", Nt = "[object Set]", gn = "[object String]", nt = "[object Symbol]", Se = "[object Undefined]", Ne = "[object WeakMap]", Tt = "[object WeakSet]", ft = "[object ArrayBuffer]", vt = "[object DataView]", yt = "[object Float32Array]", rr = "[object Float64Array]", Lt = "[object Int8Array]", or = "[object Int16Array]", sn = "[object Int32Array]", mn = "[object Uint8Array]", Dn = "[object Uint8ClampedArray]", so = "[object Uint16Array]", Sn = "[object Uint32Array]", ci = /\b__p \+= '';/g, GC = /\b(__p \+=) '' \+/g, _C = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Ah = /&(?:amp|lt|gt|quot|#39);/g, Ch = /[&<>"']/g, QC = RegExp(Ah.source), JC = RegExp(Ch.source), XC = /<%-([\s\S]+?)%>/g, VC = /<%([\s\S]+?)%>/g, bh = /<%=([\s\S]+?)%>/g, qC = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, $C = /^\w*$/, eb = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Sc = /[\\^$.*+?()[\]{}|]/g, tb = RegExp(Sc.source), kc = /^\s+/, nb = /\s/, rb = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, ob = /\{\n\/\* \[wrapped with (.+)\] \*/, ib = /,? & /, sb = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, ab = /[()=,{}\[\]\/\s]/, lb = /\\(\\)?/g, cb = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, yh = /\w*$/, ub = /^[-+]0x[0-9a-f]+$/i, db = /^0b[01]+$/i, fb = /^\[object .+?Constructor\]$/, hb = /^0o[0-7]+$/i, pb = /^(?:0|[1-9]\d*)$/, gb = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, aa = /($^)/, mb = /['\n\r\u2028\u2029\\]/g, la = "\\ud800-\\udfff", Ab = "\\u0300-\\u036f", Cb = "\\ufe20-\\ufe2f", bb = "\\u20d0-\\u20ff", wh = Ab + Cb + bb, vh = "\\u2700-\\u27bf", Sh = "a-z\\xdf-\\xf6\\xf8-\\xff", yb = "\\xac\\xb1\\xd7\\xf7", wb = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", vb = "\\u2000-\\u206f", Sb = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", kh = "A-Z\\xc0-\\xd6\\xd8-\\xde", Eh = "\\ufe0e\\ufe0f", xh = yb + wb + vb + Sb, Ec = "['’]", kb = "[" + la + "]", Th = "[" + xh + "]", ca = "[" + wh + "]", Lh = "\\d+", Eb = "[" + vh + "]", Mh = "[" + Sh + "]", Ih = "[^" + la + xh + Lh + vh + Sh + kh + "]", xc = "\\ud83c[\\udffb-\\udfff]", xb = "(?:" + ca + "|" + xc + ")", Dh = "[^" + la + "]", Tc = "(?:\\ud83c[\\udde6-\\uddff]){2}", Lc = "[\\ud800-\\udbff][\\udc00-\\udfff]", ui = "[" + kh + "]", Nh = "\\u200d", Bh = "(?:" + Mh + "|" + Ih + ")", Tb = "(?:" + ui + "|" + Ih + ")", Rh = "(?:" + Ec + "(?:d|ll|m|re|s|t|ve))?", Oh = "(?:" + Ec + "(?:D|LL|M|RE|S|T|VE))?", Ph = xb + "?", Fh = "[" + Eh + "]?", Lb = "(?:" + Nh + "(?:" + [Dh, Tc, Lc].join("|") + ")" + Fh + Ph + ")*", Mb = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Ib = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", zh = Fh + Ph + Lb, Db = "(?:" + [Eb, Tc, Lc].join("|") + ")" + zh, Nb = "(?:" + [Dh + ca + "?", ca, Tc, Lc, kb].join("|") + ")", Bb = RegExp(Ec, "g"), Rb = RegExp(ca, "g"), Mc = RegExp(xc + "(?=" + xc + ")|" + Nb + zh, "g"), Ob = RegExp([
14720
+ ], oe = "[object Arguments]", J = "[object Array]", ae = "[object AsyncFunction]", ie = "[object Boolean]", ge = "[object Date]", he = "[object DOMException]", le = "[object Error]", ye = "[object Function]", je = "[object GeneratorFunction]", Ve = "[object Map]", He = "[object Number]", mt = "[object Null]", Ze = "[object Object]", ke = "[object Promise]", qe = "[object Proxy]", pt = "[object RegExp]", Nt = "[object Set]", gn = "[object String]", nt = "[object Symbol]", Se = "[object Undefined]", Ne = "[object WeakMap]", xt = "[object WeakSet]", ft = "[object ArrayBuffer]", vt = "[object DataView]", yt = "[object Float32Array]", rr = "[object Float64Array]", Tt = "[object Int8Array]", or = "[object Int16Array]", sn = "[object Int32Array]", mn = "[object Uint8Array]", Dn = "[object Uint8ClampedArray]", so = "[object Uint16Array]", Sn = "[object Uint32Array]", ci = /\b__p \+= '';/g, GC = /\b(__p \+=) '' \+/g, _C = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Ah = /&(?:amp|lt|gt|quot|#39);/g, Ch = /[&<>"']/g, QC = RegExp(Ah.source), JC = RegExp(Ch.source), XC = /<%-([\s\S]+?)%>/g, VC = /<%([\s\S]+?)%>/g, bh = /<%=([\s\S]+?)%>/g, qC = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, $C = /^\w*$/, eb = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Sc = /[\\^$.*+?()[\]{}|]/g, tb = RegExp(Sc.source), kc = /^\s+/, nb = /\s/, rb = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, ob = /\{\n\/\* \[wrapped with (.+)\] \*/, ib = /,? & /, sb = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, ab = /[()=,{}\[\]\/\s]/, lb = /\\(\\)?/g, cb = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, yh = /\w*$/, ub = /^[-+]0x[0-9a-f]+$/i, db = /^0b[01]+$/i, fb = /^\[object .+?Constructor\]$/, hb = /^0o[0-7]+$/i, pb = /^(?:0|[1-9]\d*)$/, gb = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, aa = /($^)/, mb = /['\n\r\u2028\u2029\\]/g, la = "\\ud800-\\udfff", Ab = "\\u0300-\\u036f", Cb = "\\ufe20-\\ufe2f", bb = "\\u20d0-\\u20ff", wh = Ab + Cb + bb, vh = "\\u2700-\\u27bf", Sh = "a-z\\xdf-\\xf6\\xf8-\\xff", yb = "\\xac\\xb1\\xd7\\xf7", wb = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", vb = "\\u2000-\\u206f", Sb = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", kh = "A-Z\\xc0-\\xd6\\xd8-\\xde", Eh = "\\ufe0e\\ufe0f", xh = yb + wb + vb + Sb, Ec = "['’]", kb = "[" + la + "]", Th = "[" + xh + "]", ca = "[" + wh + "]", Lh = "\\d+", Eb = "[" + vh + "]", Mh = "[" + Sh + "]", Ih = "[^" + la + xh + Lh + vh + Sh + kh + "]", xc = "\\ud83c[\\udffb-\\udfff]", xb = "(?:" + ca + "|" + xc + ")", Dh = "[^" + la + "]", Tc = "(?:\\ud83c[\\udde6-\\uddff]){2}", Lc = "[\\ud800-\\udbff][\\udc00-\\udfff]", ui = "[" + kh + "]", Nh = "\\u200d", Bh = "(?:" + Mh + "|" + Ih + ")", Tb = "(?:" + ui + "|" + Ih + ")", Rh = "(?:" + Ec + "(?:d|ll|m|re|s|t|ve))?", Oh = "(?:" + Ec + "(?:D|LL|M|RE|S|T|VE))?", Ph = xb + "?", Fh = "[" + Eh + "]?", Lb = "(?:" + Nh + "(?:" + [Dh, Tc, Lc].join("|") + ")" + Fh + Ph + ")*", Mb = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Ib = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", zh = Fh + Ph + Lb, Db = "(?:" + [Eb, Tc, Lc].join("|") + ")" + zh, Nb = "(?:" + [Dh + ca + "?", ca, Tc, Lc, kb].join("|") + ")", Bb = RegExp(Ec, "g"), Rb = RegExp(ca, "g"), Mc = RegExp(xc + "(?=" + xc + ")|" + Nb + zh, "g"), Ob = RegExp([
14716
14721
  ui + "?" + Mh + "+" + Rh + "(?=" + [Th, ui, "$"].join("|") + ")",
14717
14722
  Tb + "+" + Oh + "(?=" + [Th, ui + Bh, "$"].join("|") + ")",
14718
14723
  ui + "?" + Bh + "+" + Rh,
@@ -14753,9 +14758,9 @@ function q9() {
14753
14758
  "parseInt",
14754
14759
  "setTimeout"
14755
14760
  ], Ub = -1, Bt = {};
14756
- Bt[yt] = Bt[rr] = Bt[Lt] = Bt[or] = Bt[sn] = Bt[mn] = Bt[Dn] = Bt[so] = Bt[Sn] = !0, Bt[oe] = Bt[J] = Bt[ft] = Bt[ie] = Bt[vt] = Bt[ge] = Bt[le] = Bt[ye] = Bt[Ve] = Bt[He] = Bt[Ze] = Bt[pt] = Bt[Nt] = Bt[gn] = Bt[Ne] = !1;
14757
- var Mt = {};
14758
- Mt[oe] = Mt[J] = Mt[ft] = Mt[vt] = Mt[ie] = Mt[ge] = Mt[yt] = Mt[rr] = Mt[Lt] = Mt[or] = Mt[sn] = Mt[Ve] = Mt[He] = Mt[Ze] = Mt[pt] = Mt[Nt] = Mt[gn] = Mt[nt] = Mt[mn] = Mt[Dn] = Mt[so] = Mt[Sn] = !0, Mt[le] = Mt[ye] = Mt[Ne] = !1;
14761
+ Bt[yt] = Bt[rr] = Bt[Tt] = Bt[or] = Bt[sn] = Bt[mn] = Bt[Dn] = Bt[so] = Bt[Sn] = !0, Bt[oe] = Bt[J] = Bt[ft] = Bt[ie] = Bt[vt] = Bt[ge] = Bt[le] = Bt[ye] = Bt[Ve] = Bt[He] = Bt[Ze] = Bt[pt] = Bt[Nt] = Bt[gn] = Bt[Ne] = !1;
14762
+ var Lt = {};
14763
+ Lt[oe] = Lt[J] = Lt[ft] = Lt[vt] = Lt[ie] = Lt[ge] = Lt[yt] = Lt[rr] = Lt[Tt] = Lt[or] = Lt[sn] = Lt[Ve] = Lt[He] = Lt[Ze] = Lt[pt] = Lt[Nt] = Lt[gn] = Lt[nt] = Lt[mn] = Lt[Dn] = Lt[so] = Lt[Sn] = !0, Lt[le] = Lt[ye] = Lt[Ne] = !1;
14759
14764
  var Wb = {
14760
14765
  // Latin-1 Supplement block.
14761
14766
  À: "A",
@@ -15575,7 +15580,7 @@ function q9() {
15575
15580
  if (B = Y || Ae ? {} : ng(i), !z)
15576
15581
  return Y ? Hw(i, dw(B, i)) : Kw(i, hp(B, i));
15577
15582
  } else {
15578
- if (!Mt[ue])
15583
+ if (!Lt[ue])
15579
15584
  return v ? i : {};
15580
15585
  B = ev(i, ue, z);
15581
15586
  }
@@ -16757,7 +16762,7 @@ function q9() {
16757
16762
  return Fw(i, u);
16758
16763
  case yt:
16759
16764
  case rr:
16760
- case Lt:
16765
+ case Tt:
16761
16766
  case or:
16762
16767
  case sn:
16763
16768
  case mn:
@@ -17709,7 +17714,7 @@ function q9() {
17709
17714
  return Ft(i) && Cn(i) == Ne;
17710
17715
  }
17711
17716
  function L2(i) {
17712
- return Ft(i) && yn(i) == Tt;
17717
+ return Ft(i) && yn(i) == xt;
17713
17718
  }
17714
17719
  var M2 = Fa($c), I2 = Fa(function(i, a) {
17715
17720
  return i <= a;
@@ -18433,7 +18438,7 @@ function o3(e, n, t) {
18433
18438
  var ge;
18434
18439
  const oe = X.className.includes(
18435
18440
  "content-editable-wrapper"
18436
- ), J = oe ? xt() : Pe(X), { htmlElement: ae, lexicalNode: ie } = zm(
18441
+ ), J = oe ? Mt() : Pe(X), { htmlElement: ae, lexicalNode: ie } = zm(
18437
18442
  J,
18438
18443
  e,
18439
18444
  {
@@ -18546,7 +18551,7 @@ function o3(e, n, t) {
18546
18551
  const [ie] = nm(X);
18547
18552
  if (ie || !il(J))
18548
18553
  return !1;
18549
- const ge = Pe(J) || xt(), { htmlElement: he, lexicalNode: le } = zm(
18554
+ const ge = Pe(J) || Mt(), { htmlElement: he, lexicalNode: le } = zm(
18550
18555
  ge,
18551
18556
  e,
18552
18557
  {
@@ -18947,7 +18952,7 @@ function h3() {
18947
18952
  b0,
18948
18953
  () => (e.update(() => {
18949
18954
  let g = q();
18950
- if (!de(g) && (xt().selectEnd(), g = q(), !de(g)))
18955
+ if (!de(g) && (Mt().selectEnd(), g = q(), !de(g)))
18951
18956
  return !1;
18952
18957
  let A = g.anchor.getNode();
18953
18958
  if (Ue(A)) {
@@ -22285,7 +22290,7 @@ const s8 = ({ editor: e }) => {
22285
22290
  "div.ContentEditable__root"
22286
22291
  );
22287
22292
  k == null || k.classList.remove("selected-all-document");
22288
- const L = xt();
22293
+ const L = Mt();
22289
22294
  L.clear(), L.append(y).selectEnd();
22290
22295
  }
22291
22296
  },
@@ -23213,7 +23218,7 @@ const aB = ({
23213
23218
  const j = Gf(se);
23214
23219
  j !== null && j.clearHighlight(), W.markDirty(), C(A.getLatest());
23215
23220
  }
23216
- xt().selectStart();
23221
+ Mt().selectStart();
23217
23222
  });
23218
23223
  }, [f, A]), I = () => {
23219
23224
  f.update(() => {
@@ -23730,21 +23735,21 @@ function uB({
23730
23735
  const {
23731
23736
  top: Se,
23732
23737
  width: Ne,
23733
- left: Tt,
23738
+ left: xt,
23734
23739
  right: ft
23735
- } = R.current.getBoundingClientRect(), vt = Yr, yt = Tt - pt - vt / 2, rr = Se - qe - vt / 2;
23736
- let Lt = Ne + vt + 2;
23737
- ft > mt && (Lt = Lt - (ft - mt)), g({
23738
- width: Lt,
23740
+ } = R.current.getBoundingClientRect(), vt = Yr, yt = xt - pt - vt / 2, rr = Se - qe - vt / 2;
23741
+ let Tt = Ne + vt + 2;
23742
+ ft > mt && (Tt = Tt - (ft - mt)), g({
23743
+ width: Tt,
23739
23744
  height: vt,
23740
23745
  top: rr,
23741
23746
  left: yt
23742
23747
  });
23743
23748
  }
23744
23749
  if (I.current) {
23745
- const { top: Se, height: Ne } = I.current.getBoundingClientRect(), Tt = Yr, ft = He - pt - Tt / 2, vt = Se - qe - Tt / 2;
23750
+ const { top: Se, height: Ne } = I.current.getBoundingClientRect(), xt = Yr, ft = He - pt - xt / 2, vt = Se - qe - xt / 2;
23746
23751
  C({
23747
- height: Ne + Tt + 2,
23752
+ height: Ne + xt + 2,
23748
23753
  top: vt,
23749
23754
  left: ft
23750
23755
  });
@@ -24066,7 +24071,7 @@ function dB(e, n, t) {
24066
24071
  "div.new-paragraph"
24067
24072
  );
24068
24073
  if (n.read(() => {
24069
- const l = xt().getLastChild();
24074
+ const l = Mt().getLastChild();
24070
24075
  lt(l) && !t && s && (o = "editor", s.style.visibility = "hidden");
24071
24076
  }), r && (r instanceof HTMLElement || r instanceof SVGElement)) {
24072
24077
  const l = "td.dsd__theme__tableCell, th.dsd__theme__tableCell";
@@ -25286,13 +25291,13 @@ function FA({
25286
25291
  ), [g, A] = G("#000"), [C, b] = G("#fff"), [y, w] = G("left"), [S, k] = G(!1), [L, N] = G(!1), [D, E] = G(!1), [T, I] = G(!1), [R, F] = G(!1), [P, O] = G(!1), [U, H] = G(!1), [te, ce] = G(!1), [me, fe] = G(!1), [be, $] = G(!1), [W] = sh(), [se, j] = G(!1), [X, oe] = G(!0), [J, ae] = G(!0), [ie, ge] = G(0), [he, le] = G(() => t.isEditable()), ye = e || "default", { excludeNodes: je, fetchUploadMedia: Ve, fetchPromptResult: He, commentController: mt, onTrack: Ze } = _e(et), { t: ke } = ct(), qe = We(() => {
25287
25292
  const Se = q();
25288
25293
  if (de(Se)) {
25289
- const Ne = Se.anchor.getNode(), Tt = Se.focus.getNode(), ft = sd(Ne) ? null : Ne.getTopLevelElementOrThrow(), vt = sd(Tt) ? null : Tt.getTopLevelElementOrThrow();
25294
+ const Ne = Se.anchor.getNode(), xt = Se.focus.getNode(), ft = sd(Ne) ? null : Ne.getTopLevelElementOrThrow(), vt = sd(xt) ? null : xt.getTopLevelElementOrThrow();
25290
25295
  let yt = Ne.getKey() === "root" ? Ne : Le(Ne, (Sn) => {
25291
25296
  const ci = Sn.getParent();
25292
25297
  return ci !== null && Bs(ci);
25293
25298
  });
25294
25299
  Se.getNodes().length === 1 ? oe(!0) : oe(!1), yt === null && (yt = Ne.getTopLevelElementOrThrow());
25295
- const Lt = yt.getKey(), or = r.getElementByKey(Lt);
25300
+ const Tt = yt.getKey(), or = r.getElementByKey(Tt);
25296
25301
  t.update(() => {
25297
25302
  N(Se.hasFormat("bold")), E(Se.hasFormat("italic")), I(Se.hasFormat("underline")), F(Se.hasFormat("strikethrough")), O(Se.hasFormat("subscript")), H(Se.hasFormat("superscript")), ce(Se.hasFormat("code"));
25298
25303
  });
@@ -25315,7 +25320,7 @@ function FA({
25315
25320
  );
25316
25321
  const so = Le(sn, lt);
25317
25322
  if (lt(so) ? d("table") : d("root"), or !== null && (ft == null ? void 0 : ft.getKey()) === (vt == null ? void 0 : vt.getKey()))
25318
- if (p(Lt), Ke(yt)) {
25323
+ if (p(Tt), Ke(yt)) {
25319
25324
  const Sn = Sf(
25320
25325
  Ne,
25321
25326
  Hn
@@ -25356,8 +25361,8 @@ function FA({
25356
25361
  r.registerCommand(
25357
25362
  GE,
25358
25363
  (Se) => {
25359
- const Ne = Se, { code: Tt, metaKey: ft } = Ne;
25360
- if (Tt === "KeyK" && ft) {
25364
+ const Ne = Se, { code: xt, metaKey: ft } = Ne;
25365
+ if (xt === "KeyK" && ft) {
25361
25366
  Ne.preventDefault();
25362
25367
  let vt;
25363
25368
  return S ? vt = null : vt = Vo("https://"), r.dispatchCommand(Ri, vt);
@@ -25371,8 +25376,8 @@ function FA({
25371
25376
  () => {
25372
25377
  const Se = q();
25373
25378
  if (de(Se)) {
25374
- const Ne = Se.getNodes(), Tt = Ne.length > 0 && Ne.every((ft) => Dr(ft) || lt(ft) || Un(ft) ? !1 : Ue(ft) || Nr(ft));
25375
- ae(!Tt);
25379
+ const Ne = Se.getNodes(), xt = Ne.length > 0 && Ne.every((ft) => Dr(ft) || lt(ft) || Un(ft) ? !1 : Ue(ft) || Nr(ft));
25380
+ ae(!xt);
25376
25381
  }
25377
25382
  return !1;
25378
25383
  },
@@ -25382,8 +25387,8 @@ function FA({
25382
25387
  (Se, Ne) => {
25383
25388
  r.update(
25384
25389
  () => {
25385
- const Tt = q();
25386
- Tt !== null && vl(Tt, Se);
25390
+ const xt = q();
25391
+ xt !== null && vl(xt, Se);
25387
25392
  },
25388
25393
  Ne ? { tag: "historic" } : {}
25389
25394
  );
@@ -25396,17 +25401,17 @@ function FA({
25396
25401
  }), r.update(() => {
25397
25402
  const Se = q();
25398
25403
  if (de(Se)) {
25399
- const Ne = Se.anchor, Tt = Se.focus, ft = Se.getNodes(), vt = Se.extract();
25400
- if (Ne.key === Tt.key && Ne.offset === Tt.offset)
25404
+ const Ne = Se.anchor, xt = Se.focus, ft = Se.getNodes(), vt = Se.extract();
25405
+ if (Ne.key === xt.key && Ne.offset === xt.offset)
25401
25406
  return;
25402
25407
  ft.forEach((yt, rr) => {
25403
25408
  if (pn(yt)) {
25404
- let Lt = yt;
25405
- rr === 0 && Ne.offset !== 0 && (Lt = Lt.splitText(Ne.offset)[1] || Lt), rr === ft.length - 1 && (Lt = Lt.splitText(Tt.offset)[0] || Lt);
25409
+ let Tt = yt;
25410
+ rr === 0 && Ne.offset !== 0 && (Tt = Tt.splitText(Ne.offset)[1] || Tt), rr === ft.length - 1 && (Tt = Tt.splitText(xt.offset)[0] || Tt);
25406
25411
  const or = vt[0];
25407
- ft.length === 1 && pn(or) && (Lt = or), Lt.__style !== "" && Lt.setStyle(""), Lt.__format !== 0 && Lt.setFormat(0);
25408
- const sn = Xl(Lt);
25409
- sn.__format !== 0 && sn.setFormat(""), sn.__indent !== 0 && sn.setIndent(0), yt = Lt;
25412
+ ft.length === 1 && pn(or) && (Tt = or), Tt.__style !== "" && Tt.setStyle(""), Tt.__format !== 0 && Tt.setFormat(0);
25413
+ const sn = Xl(Tt);
25414
+ sn.__format !== 0 && sn.setFormat(""), sn.__indent !== 0 && sn.setIndent(0), yt = Tt;
25410
25415
  } else zs(yt) || Us(yt) ? yt.replace(Me(), !0) : kf(yt) && yt.setFormat("");
25411
25416
  });
25412
25417
  }
@@ -25879,7 +25884,7 @@ function YB(e) {
25879
25884
  return n;
25880
25885
  }
25881
25886
  function FC(e) {
25882
- const n = xt(), t = e.anchor.getNode(), r = e.focus.getNode(), o = rd(t, n), s = rd(r, n);
25887
+ const n = Mt(), t = e.anchor.getNode(), r = e.focus.getNode(), o = rd(t, n), s = rd(r, n);
25883
25888
  if (!o || !s) return [];
25884
25889
  const l = /* @__PURE__ */ new Set([
25885
25890
  o.getKey(),
@@ -26117,7 +26122,7 @@ function qB(e) {
26117
26122
  e.registerCommand(
26118
26123
  zC,
26119
26124
  () => (e.update(() => {
26120
- const r = Rt(), o = xt();
26125
+ const r = Rt(), o = Mt();
26121
26126
  if (r) {
26122
26127
  const s = Hs(() => {
26123
26128
  const c = yd(!1);
@@ -27268,7 +27273,7 @@ const KR = "_listContainer_1d88b_1", HR = "_list_1d88b_1", YR = "_text_1d88b_28"
27268
27273
  const d = (g, A) => {
27269
27274
  g == null || g.update(() => {
27270
27275
  g.focus();
27271
- const b = xt().getFirstChild();
27276
+ const b = Mt().getFirstChild();
27272
27277
  b && A && (A(b), t(!1));
27273
27278
  });
27274
27279
  }, f = bt(() => [
@@ -27313,7 +27318,7 @@ const KR = "_listContainer_1d88b_1", HR = "_list_1d88b_1", YR = "_text_1d88b_28"
27313
27318
  title: r("editor.menu.media.excalidraw.hint.description"),
27314
27319
  icon: /* @__PURE__ */ h(A1, { stroke: 2, size: 18 }),
27315
27320
  onSelect: () => {
27316
- import("./layers.DqLnUx0P.js").then(
27321
+ import("./layers.B81dZXcy.js").then(
27317
27322
  ({ INSERT_EXCALIDRAW_COMMAND: g }) => {
27318
27323
  d(e, () => {
27319
27324
  e.dispatchCommand(g, void 0);
@@ -27428,11 +27433,11 @@ function ZR({
27428
27433
  if (n === "html")
27429
27434
  g.read(() => {
27430
27435
  let b = Xg(A, null);
27431
- const y = xt();
27436
+ const y = Mt();
27432
27437
  y && (l() && (b = ""), y.getChildrenSize() === 0 && (A.update(() => {
27433
27438
  y.append(Me());
27434
27439
  }), b = ""));
27435
- const w = xt().getTextContent();
27440
+ const w = Mt().getTextContent();
27436
27441
  r(b, w);
27437
27442
  });
27438
27443
  else {
@@ -27558,7 +27563,7 @@ function JR(e, n, t, r, o) {
27558
27563
  /* @__PURE__ */ h(Ye, { children: e })
27559
27564
  );
27560
27565
  }
27561
- const ZA = Gl(() => import("./layers.DqLnUx0P.js"));
27566
+ const ZA = Gl(() => import("./layers.B81dZXcy.js"));
27562
27567
  function XR(e) {
27563
27568
  const {
27564
27569
  onRef: n,
@@ -27703,7 +27708,7 @@ const VR = (e) => {
27703
27708
  const n = q(), t = Rt(), r = t == null ? void 0 : t.getParent(), o = r == null ? void 0 : r.getParent();
27704
27709
  if (t) {
27705
27710
  if (dh())
27706
- return xt().clear(), n.insertParagraph(), !0;
27711
+ return Mt().clear(), n.insertParagraph(), !0;
27707
27712
  if (o instanceof no || o instanceof xo)
27708
27713
  return QN();
27709
27714
  if (r instanceof Mn)
@@ -27848,9 +27853,9 @@ function aO(e) {
27848
27853
  }, [L, r]), _(() => {
27849
27854
  L && (L.setEditable(!r), d && (d.current = L), o && L.update(() => {
27850
27855
  if (typeof s == "string") {
27851
- xt().clear();
27856
+ Mt().clear();
27852
27857
  const F = new DOMParser().parseFromString(s, "text/html"), P = pf(L, F);
27853
- xt().select(), hf(P);
27858
+ Mt().select(), hf(P);
27854
27859
  } else {
27855
27860
  const I = L.parseEditorState(
27856
27861
  JSON.stringify(s)
@@ -28329,12 +28334,10 @@ const gO = Td ? "" : "os-windows", mO = ({ children: e }) => /* @__PURE__ */ h("
28329
28334
  ] })
28330
28335
  ] }) }) }) });
28331
28336
  };
28332
- function yP(e, n = !1) {
28333
- e.focus(), e.update(() => {
28334
- var r, o;
28335
- const t = xt();
28336
- n ? (t.selectStart(), (r = t.getFirstChild()) == null || r.selectEnd()) : (t.selectEnd(), (o = t.getLastChild()) == null || o.selectEnd());
28337
- });
28337
+ function yP(e, n = !0) {
28338
+ const t = n ? "rootStart" : "rootEnd";
28339
+ e.focus(() => {
28340
+ }, { defaultSelection: t });
28338
28341
  }
28339
28342
  export {
28340
28343
  Gs as $,
@@ -1,9 +1,9 @@
1
- import { H as J, a as rt, s as at, b as lt, c as ot, n as ct, o as ht, l as et, g as it, a7 as ut, A as yt, T as ft, e as pt, i as gt, q as dt, P as mt } from "./layers.zj_4iuZi.js";
2
- import "./layers.4LeIkhk0.js";
1
+ import { H as J, a as rt, s as at, b as lt, c as ot, n as ct, o as ht, l as et, g as it, a7 as ut, A as yt, T as ft, e as pt, i as gt, q as dt, P as mt } from "./layers.MALK2-0G.js";
2
+ import "./layers.bfuPkvIN.js";
3
3
  import "lodash-es/memoize.js";
4
4
  import "lodash-es/merge.js";
5
5
  import "lodash-es/isEmpty.js";
6
- import { a as tt } from "./layers.B4SsYmRI.js";
6
+ import { a as tt } from "./layers.DekxMGba.js";
7
7
  import { o as _t } from "./layers.b0h5ZBmD.js";
8
8
  import { a as xt } from "./layers.CqVTtuYm.js";
9
9
  import { c as F } from "./layers.DLwuMfdd.js";