@layers-app/editor 0.7.23 → 0.7.24

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 (234) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.ts +7 -79
  3. package/dist/index.js +9 -15
  4. package/dist/{layers.DrEc52LK.js → layers.-58OrB2h.js} +1 -1
  5. package/dist/{layers.RWijwG9P.js → layers.-qmjZJBI.js} +1 -1
  6. package/dist/layers.1s4BbICk.js +1 -0
  7. package/dist/{layers.-cpLB214.js → layers.53hChJFF.js} +6 -6
  8. package/dist/{layers.DnEkqLVp.js → layers.5R_vfSOI.js} +1 -1
  9. package/dist/{layers.DJw2J7bw.js → layers.5U6DsNQ8.js} +6 -9
  10. package/dist/{layers.CMYe7bYN.js → layers.6Og6_hox.js} +1 -1
  11. package/dist/{layers.BazhlVmO.js → layers.8HXImnXe.js} +7 -7
  12. package/dist/{layers.B9UnUe7h.js → layers.90LiGxII.js} +5 -8
  13. package/dist/{layers.NrGhQL7i.js → layers.A6MvZ2Sd.js} +4 -4
  14. package/dist/{layers.DYzee1AM.js → layers.Aw65tqqV.js} +1 -1
  15. package/dist/{layers.gaS1bI-f.js → layers.B-Ftwt7z.js} +1 -1
  16. package/dist/{layers.DT2omWm7.js → layers.B0gBsd1G.js} +15 -18
  17. package/dist/{layers.DXJdiDQR.js → layers.B1l2IEoW.js} +1 -1
  18. package/dist/{layers.BOn89qn9.js → layers.B2SmhxzW.js} +1 -1
  19. package/dist/{layers.CM1N26Bn.js → layers.B2nS5rBS.js} +1 -1
  20. package/dist/{layers.CQ_qc_P4.js → layers.B4ZRP4dv.js} +1 -1
  21. package/dist/{layers.CE4cvR9M.js → layers.B5V9R6dS.js} +89 -92
  22. package/dist/{layers.D7NU7knG.js → layers.B6C5kDa3.js} +1 -1
  23. package/dist/{layers.Pdfj-rps.js → layers.B8qo87mf.js} +1 -1
  24. package/dist/{layers.DWi6TS6_.js → layers.BB-2khdc.js} +4 -4
  25. package/dist/{layers.CZhCCCF4.js → layers.BBgqB-dj.js} +1 -1
  26. package/dist/{layers.Dk79hkeN.js → layers.BCDRxkn5.js} +84 -86
  27. package/dist/{layers.D15hEfXi.js → layers.BDuP7QP1.js} +7 -7
  28. package/dist/{layers.Dlx8_WlO.js → layers.BE_-JA1T.js} +1 -1
  29. package/dist/{layers.D_ElsD-x.js → layers.BFDXAxa6.js} +1 -1
  30. package/dist/{layers.CJuRPa36.js → layers.BFclfxlH.js} +3 -3
  31. package/dist/{layers.DgSp_qNb.js → layers.BG9jBVsg.js} +1 -1
  32. package/dist/{layers.D60upjIB.js → layers.BGGuOo27.js} +1 -1
  33. package/dist/{layers.I6dVKb2e.js → layers.BI0TTMdG.js} +1 -1
  34. package/dist/{layers.D8mfmXuz.js → layers.BJOmz-8E.js} +1 -1
  35. package/dist/{layers.CNaC0uOJ.js → layers.BKOg8e2U.js} +1 -1
  36. package/dist/{layers.CD5MZRoU.js → layers.BKWiI_4a.js} +1 -1
  37. package/dist/{layers.CHgOkwRS.js → layers.BLERpK_S.js} +1 -1
  38. package/dist/layers.BLvWGmxZ.js +304 -0
  39. package/dist/{layers.CaaLILN3.js → layers.BNxa_eCc.js} +1 -1
  40. package/dist/{layers.Bk57FuHz.js → layers.BOWoLhye.js} +3 -3
  41. package/dist/layers.BPXa6Xko.js +8 -0
  42. package/dist/{layers.CY50u5GH.js → layers.BSwRsFvu.js} +7 -7
  43. package/dist/layers.BUT_cQlY.js +1 -0
  44. package/dist/{layers.YI-YTy5V.js → layers.BV2fpDYI.js} +1 -1
  45. package/dist/{layers.CiInvjHq.js → layers.BVHCv5uJ.js} +4 -7
  46. package/dist/{layers.BMiwXEvW.js → layers.BVSO7aWV.js} +1 -1
  47. package/dist/{layers.CPa8seQC.js → layers.BW593_YD.js} +1 -1
  48. package/dist/{layers.Bhsf0xTD.js → layers.BY9o3NTY.js} +1 -1
  49. package/dist/layers.BZMHF27f.js +6 -0
  50. package/dist/{layers.BUGfxwRr.js → layers.BZv7cxTR.js} +89 -92
  51. package/dist/{layers.BO79CD9P.js → layers.BbDBKF7d.js} +1 -1
  52. package/dist/{layers.DxlYXQXW.js → layers.BdiCSpJ4.js} +1 -1
  53. package/dist/{layers.BGdjq9k4.js → layers.Bdzg4UkM.js} +1 -1
  54. package/dist/{layers.CGjdGBZm.js → layers.BfK7Zksy.js} +1 -1
  55. package/dist/layers.Bfcc7TOH.js +1 -0
  56. package/dist/{layers.DK3yoXNH.js → layers.BhOCkx36.js} +1 -1
  57. package/dist/{layers.29-Qh75h.js → layers.Bi8uSmnl.js} +1 -1
  58. package/dist/{layers.COELVm2I.js → layers.BiD-9uwr.js} +1 -1
  59. package/dist/layers.BjtEPALX.js +19 -0
  60. package/dist/layers.BlT1aHiA.js +1 -0
  61. package/dist/{layers.D_LRJFEv.js → layers.Bq3WRO3x.js} +1 -1
  62. package/dist/{layers.bc_jaTfK.js → layers.BqikkqHY.js} +1 -1
  63. package/dist/{layers.uRZ4uGOB.js → layers.BqkB6bfG.js} +1 -1
  64. package/dist/{layers.Bm6lNIVW.js → layers.BqxiZwrm.js} +1 -1
  65. package/dist/layers.Br5DTynl.js +74 -0
  66. package/dist/{layers.Dv6WAMwH.js → layers.BrUMsy26.js} +1 -1
  67. package/dist/{layers.D1jHpzKw.js → layers.BsV8AKqE.js} +6 -9
  68. package/dist/{layers.BvzZuQYi.js → layers.BuGAznjj.js} +4 -4
  69. package/dist/{layers.BZETNwke.js → layers.Bv1xDmd0.js} +1 -1
  70. package/dist/{layers.B2KFTJGl.js → layers.Bvra5UGQ.js} +1 -1
  71. package/dist/{layers.73y0cSdc.js → layers.BwHEZWKu.js} +1 -1
  72. package/dist/{layers.BCqWj4Xz.js → layers.BwtMeyCj.js} +3 -3
  73. package/dist/{layers.DjfEK9cQ.js → layers.BxX_THjw.js} +1 -1
  74. package/dist/{layers.BiqSW2by.js → layers.Bzrkz_Q7.js} +1 -1
  75. package/dist/{layers.ij555eO_.js → layers.C-UCCxZT.js} +1 -1
  76. package/dist/{layers.DPnWbB6j.js → layers.C0BLZbdT.js} +1 -1
  77. package/dist/{layers.Cw-HPQf-.js → layers.C2-P7-v8.js} +1 -1
  78. package/dist/{layers.Z4nbVM_-.js → layers.C20Qi890.js} +1 -1
  79. package/dist/{layers.tfwszVHU.js → layers.C47JbXwl.js} +1 -1
  80. package/dist/{layers.BIG9YKzs.js → layers.C5JgdF76.js} +1 -1
  81. package/dist/{layers.BffDLyKk.js → layers.CA5feGxW.js} +1 -1
  82. package/dist/{layers.BDD1KfeR.js → layers.CCqe9zp9.js} +1 -1
  83. package/dist/{layers.TYxUe44n.js → layers.CDPIcOqa.js} +1 -1
  84. package/dist/{layers.BSfmVK7z.js → layers.CDexQZa_.js} +5 -8
  85. package/dist/{layers.C0OvS3X2.js → layers.CFSfvSsm.js} +1 -1
  86. package/dist/{layers.CcDkFL6P.js → layers.CH4plVEu.js} +3 -3
  87. package/dist/{layers.DBMV9sVv.js → layers.CHa9lFoT.js} +1 -1
  88. package/dist/{layers.CXDrUFaD.js → layers.CLT1Xhw2.js} +1 -1
  89. package/dist/{layers.2g3p410y.js → layers.CP3EufOe.js} +1 -1
  90. package/dist/{layers.Jso1Rtcd.js → layers.CPIxu6GO.js} +5 -8
  91. package/dist/{layers.D3HS9TbW.js → layers.CQMssu5A.js} +1 -1
  92. package/dist/layers.CQR0Nl7I.js +1 -0
  93. package/dist/{layers.35jlOcdS.js → layers.CR8SQeln.js} +224 -227
  94. package/dist/{layers.CJdUktnw.js → layers.CRKCl3-s.js} +1 -1
  95. package/dist/{layers.CHZLcfzW.js → layers.CSi2XRJ2.js} +1 -1
  96. package/dist/{layers.CxxIH2di.js → layers.CUV1fBKt.js} +12 -15
  97. package/dist/{layers.C2uP3dSX.js → layers.CV3PBAi0.js} +1 -1
  98. package/dist/{layers.BqRK5hcw.js → layers.CXPJGJnh.js} +1 -1
  99. package/dist/{layers.hgaybOo2.js → layers.CXp0yiA_.js} +1 -1
  100. package/dist/{layers.zxBrRE1P.js → layers.CYMmJIgK.js} +4 -7
  101. package/dist/{layers.D6MKuxHB.js → layers.Ca_hxCzh.js} +1 -1
  102. package/dist/{layers.CvQemHpn.js → layers.CadrukAB.js} +1 -1
  103. package/dist/{layers.Cz08SEjI.js → layers.Cc1VRWwn.js} +1 -1
  104. package/dist/{layers.pU2_Gt2w.js → layers.CeuPBpSS.js} +1 -1
  105. package/dist/{layers.DxJkl90c.js → layers.Cf85CE4j.js} +1 -1
  106. package/dist/{layers.CsMF9Mcc.js → layers.CfJUJqdv.js} +1 -1
  107. package/dist/layers.CgDb5aPr.js +2 -0
  108. package/dist/{layers.Bk6_Os8z.js → layers.CiFtNCp_.js} +1 -1
  109. package/dist/{layers.CA6t_Bjs.js → layers.CkEhuwys.js} +8 -11
  110. package/dist/{layers.BVKQ1q-V.js → layers.CmWWurhR.js} +1 -1
  111. package/dist/layers.CmxZ8EKk.js +1 -0
  112. package/dist/{layers.Q_PS-tRN.js → layers.Co1X8jDP.js} +1 -1
  113. package/dist/{layers.B2HAS3jD.js → layers.CoCdUjOH.js} +1 -1
  114. package/dist/layers.Cp63Ydn2.js +50707 -0
  115. package/dist/{layers.C4B4dvWx.js → layers.CqggRfmv.js} +1 -1
  116. package/dist/layers.CtCTIWni.js +1 -0
  117. package/dist/layers.Ctzw3Xb5.js +1 -0
  118. package/dist/{layers.DTuGifBE.js → layers.CvU_g0Ek.js} +1 -1
  119. package/dist/layers.Cw5bBQfp.js +118 -0
  120. package/dist/{layers.CP2XIdh_.js → layers.Cynva3D_.js} +1 -1
  121. package/dist/{layers.KlKmfsBA.js → layers.Czdt779o.js} +1 -1
  122. package/dist/{layers.-Tff0gbg.js → layers.D-iLQKYz.js} +1 -1
  123. package/dist/layers.D0GEGoV_.js +373 -0
  124. package/dist/{layers.uzQ-2V7t.js → layers.D0ptqEmo.js} +1 -1
  125. package/dist/{layers.CwqZ78CF.js → layers.D33lu-eC.js} +1 -1
  126. package/dist/{layers.CIBX4kN6.js → layers.D4VJ5B0e.js} +1 -1
  127. package/dist/layers.D5DNThwz.js +208 -0
  128. package/dist/{layers.Bu85fkOP.js → layers.D6XgZ8Az.js} +1 -1
  129. package/dist/layers.D71D_04V.js +1359 -0
  130. package/dist/{layers.D2f2ApIk.js → layers.D8vSQAh0.js} +8 -8
  131. package/dist/{layers.CnjADqOy.js → layers.D9yXBIuK.js} +1 -1
  132. package/dist/{layers.Cnqb7wKB.js → layers.DAF65Eyh.js} +1 -1
  133. package/dist/{layers.C4mOUFRJ.js → layers.DD5DttRP.js} +1 -1
  134. package/dist/{layers.C24-EacD.js → layers.DH-cj5fE.js} +2 -2
  135. package/dist/{layers.B-kCa5Od.js → layers.DJ7ZL_sW.js} +6 -9
  136. package/dist/layers.DJnnhy8m.js +96 -0
  137. package/dist/{layers.CMxdtuyk.js → layers.DM9hpazD.js} +1 -1
  138. package/dist/{layers.CSqoVmKS.js → layers.DNJEfwiQ.js} +1 -1
  139. package/dist/{layers.CupTWZsA.js → layers.DNOD_LF5.js} +1 -1
  140. package/dist/{layers.BLzus7b8.js → layers.DO1NcRAM.js} +1 -1
  141. package/dist/{layers.DbhnKU2H.js → layers.DPP6_cbD.js} +6 -9
  142. package/dist/{layers.C7SPnzuD.js → layers.DQIT2lCm.js} +1 -1
  143. package/dist/{layers.V47hYk_p.js → layers.DRZylWPP.js} +1 -1
  144. package/dist/{layers.uaIfPWsI.js → layers.DU7EZINs.js} +1 -1
  145. package/dist/{layers.4pgTRQX0.js → layers.DXyBsBF5.js} +1 -1
  146. package/dist/{layers.BJzTny2j.js → layers.D_XM1OQx.js} +3 -3
  147. package/dist/{layers.CJAH6bhp.js → layers.DcKjvxHE.js} +1 -1
  148. package/dist/{layers.BhTu7lKR.js → layers.DenZLHkn.js} +1 -1
  149. package/dist/{layers.BsHOozaJ.js → layers.Df79MJjN.js} +3 -3
  150. package/dist/{layers.DV77DVIT.js → layers.DfgtWeVl.js} +1 -1
  151. package/dist/layers.DgCaJXYg.js +257 -0
  152. package/dist/{layers.BOMJfSmk.js → layers.DjGdrDC1.js} +1 -1
  153. package/dist/{layers.Ba0U3m_a.js → layers.DmEW632Y.js} +2 -2
  154. package/dist/{layers.CG2UCtoJ.js → layers.DnvUnO-4.js} +1 -1
  155. package/dist/{layers.CfE7zjUC.js → layers.DpAWXloN.js} +7 -10
  156. package/dist/{layers.2nKKnihc.js → layers.Dq9b1xqh.js} +1 -1
  157. package/dist/{layers.CO_gtBDp.js → layers.DrZAE5o5.js} +1 -1
  158. package/dist/{layers.DDIAJqfF.js → layers.DrprvZC4.js} +1 -1
  159. package/dist/{layers.HUBCzsU0.js → layers.DvNvJZss.js} +1 -1
  160. package/dist/layers.Dvl1mlTI.js +1 -0
  161. package/dist/{layers.CbbuOQ3N.js → layers.DyvnTlHi.js} +1 -1
  162. package/dist/layers.DzDR_oG4.js +8 -0
  163. package/dist/{layers.Cf41PJM_.js → layers.DzghPRf3.js} +3813 -3230
  164. package/dist/{layers._pWN5IRm.js → layers.EXQpfQWq.js} +1 -1
  165. package/dist/{layers.y9K1nFwM.js → layers.FBzg3C04.js} +50 -50
  166. package/dist/{layers.DHXWA0Q_.js → layers.FlOgidCp.js} +1 -1
  167. package/dist/{layers.CyXyFV7h.js → layers.I85BW5o2.js} +1 -1
  168. package/dist/{layers.DYQ3Thdf.js → layers.IPxhkSfj.js} +1 -1
  169. package/dist/{layers.CPCRYtsi.js → layers.Lc29kAuz.js} +1 -1
  170. package/dist/{layers.DdfRdbPy.js → layers.MHEFRzDP.js} +5 -8
  171. package/dist/{layers.Cbgf19EI.js → layers.MNW-ShKu.js} +11 -14
  172. package/dist/{layers.CtKHNDRt.js → layers.Me9S-22r.js} +7 -10
  173. package/dist/{layers.u5kr3hHk.js → layers.Q-xFVVwC.js} +1 -1
  174. package/dist/layers.Qn6nodoY.js +2 -0
  175. package/dist/layers.R8mPlCA0.js +261 -0
  176. package/dist/{layers.BO4uJmfR.js → layers.RpoUh8kq.js} +1 -1
  177. package/dist/{layers.8ytQIYJn.js → layers.SsSYgMGG.js} +1 -1
  178. package/dist/{layers.BwTGqVnK.js → layers.V-9Fvifr.js} +1 -1
  179. package/dist/{layers.SlCB94vp.js → layers.W66NF2U9.js} +1 -1
  180. package/dist/{layers.CkH00BH2.js → layers.WwL-1p8w.js} +1 -1
  181. package/dist/{layers.CJc3FMhy.js → layers.X0J3BhYy.js} +4 -7
  182. package/dist/{layers.B9y931t5.js → layers.XS2AIvBG.js} +1 -1
  183. package/dist/{layers.CGId_znN.js → layers.XZft6Ook.js} +1 -1
  184. package/dist/{layers.BTZO4D1M.js → layers.adnwY8ML.js} +1 -1
  185. package/dist/layers.b9B2NY7n.js +11690 -0
  186. package/dist/{layers.7RM-Rgpr.js → layers.cf3uaysm.js} +1 -1
  187. package/dist/{layers.B2lIQaKn.js → layers.d9OooXQC.js} +1 -1
  188. package/dist/{layers.RDvNC_8V.js → layers.eNGl-u4H.js} +1 -1
  189. package/dist/{layers.SgNVpv0G.js → layers.eaKLR5Q2.js} +1 -1
  190. package/dist/{layers.BqssQgQi.js → layers.edPrT81i.js} +1 -1
  191. package/dist/{layers.C2gSNxMr.js → layers.ekCtLRbA.js} +1 -1
  192. package/dist/{layers.CiWApQBX.js → layers.fiMaf-_a.js} +3 -3
  193. package/dist/{layers.CnYkQAte.js → layers.gnAUWHV-.js} +1 -1
  194. package/dist/{layers.CnwMf9I0.js → layers.h4L4Mc41.js} +1 -1
  195. package/dist/{layers.C92eHUWa.js → layers.iyoop3cH.js} +3 -3
  196. package/dist/{layers.CrJ6Ln86.js → layers.jTaJiZzk.js} +1 -1
  197. package/dist/{layers.Dx6XWGBv.js → layers.jZvrWKJt.js} +1 -1
  198. package/dist/{layers.BNduWBRP.js → layers.l-ywSwa2.js} +1 -1
  199. package/dist/{layers.CuHedZYG.js → layers.lG7Mase1.js} +1 -1
  200. package/dist/{layers.B-9SWmBm.js → layers.mgh4Cwfx.js} +1 -1
  201. package/dist/{layers.ovBuAp5w.js → layers.mnoq184J.js} +1 -1
  202. package/dist/{layers.bHAHcDTt.js → layers.nFMauJSN.js} +1 -1
  203. package/dist/{layers.BuwjUr0U.js → layers.nNlLwZ_E.js} +1 -1
  204. package/dist/{layers.nVkvDfax.js → layers.oJ61CNkw.js} +1 -1
  205. package/dist/{layers.D3iO0BYj.js → layers.rzToPUAK.js} +1 -1
  206. package/dist/{layers.CdbUVvAx.js → layers.soJefnD3.js} +1 -1
  207. package/dist/{layers.mLGxc7Zs.js → layers.waYEJRmN.js} +1 -1
  208. package/dist/{layers.PUiCNtZG.js → layers.y0ia1Vp6.js} +1 -1
  209. package/dist/{layers.3URzBh7V.js → layers.zDfwTCmT.js} +1 -1
  210. package/package.json +1 -1
  211. package/dist/layers.BORw_DXM.js +0 -1
  212. package/dist/layers.BPXfA_Bi.js +0 -389
  213. package/dist/layers.Bn96IwAe.js +0 -96
  214. package/dist/layers.C5Ndiwef.js +0 -8
  215. package/dist/layers.C7XeME1v.js +0 -6
  216. package/dist/layers.C9iwVv2g.js +0 -1
  217. package/dist/layers.CCjwwvUf.js +0 -1
  218. package/dist/layers.CCsKL6P-.js +0 -1
  219. package/dist/layers.CTq-VHKd.js +0 -8
  220. package/dist/layers.D0BbR-kO.js +0 -76
  221. package/dist/layers.D1-NVvB4.js +0 -2
  222. package/dist/layers.D3ej58GE.js +0 -118
  223. package/dist/layers.D3kEalRl.js +0 -1
  224. package/dist/layers.DNR3bB9r.js +0 -2
  225. package/dist/layers.DVRVApG_.js +0 -22
  226. package/dist/layers.DzXJQPQT.js +0 -257
  227. package/dist/layers.GYLtRKCK.js +0 -1
  228. package/dist/layers.KJwFQi9T.js +0 -1
  229. package/dist/layers.RUMhBCMz.js +0 -1
  230. package/dist/layers.TF5UbhSz.js +0 -39287
  231. package/dist/layers.WIHPbs6I.js +0 -1225
  232. package/dist/layers.XvSvPUQo.js +0 -213
  233. package/dist/layers._fDrpnXx.js +0 -1
  234. package/dist/layers.fQ35NBL8.js +0 -271
@@ -0,0 +1,373 @@
1
+ "use strict";var C4=Object.defineProperty;var x4=(n,t,e)=>t in n?C4(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var z=(n,t,e)=>x4(n,typeof t!="symbol"?t+"":t,e);require("@mantine/dropzone");const A=require("react/jsx-runtime"),k=require("react"),it=require("react-i18next"),Or=require("react-dom"),O=require("@mantine/core"),v4=require("i18next"),Ct=require("@layers-app/shared"),$=require("@tabler/icons-react"),S4=require("react-dom/server"),ml=require("lodash-es"),$a=require("@mantine/hooks");function E4(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:()=>n[e]})}}return t.default=n,Object.freeze(t)}const ET=E4(k);function pe(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function kT(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);e.search=r.toString(),console.warn(`Minified Lexical warning #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Ns=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,k4=Ns&&"documentMode"in document?document.documentMode:null,ps=Ns&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Sl=Ns&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),kh=!(!Ns||!("InputEvent"in window)||k4)&&"getTargetRanges"in new window.InputEvent("input"),Bu=Ns&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ec=Ns&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,T4=Ns&&/Android/.test(navigator.userAgent),TT=Ns&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Pv=Ns&&T4&&TT,ju=Ns&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&ps&&!TT;function _T(...n){const t=[];for(const e of n)if(e&&typeof e=="string")for(const[r]of e.matchAll(/\S+/g))t.push(r);return t}const _4=0,N4=1,I4=2,NT=128,L4=1,M4=2,D4=3,O4=4,R4=5,P4=6,Tg=Bu||ec||ju?" ":"​",Eo=`
2
+
3
+ `,B4=Sl?" ":Tg,IT="֑-߿יִ-﷽ﹰ-ﻼ",LT="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",j4=new RegExp("^[^"+LT+"]*["+IT+"]"),F4=new RegExp("^[^"+IT+"]*["+LT+"]"),Ri={bold:1,capitalize:1024,code:16,highlight:NT,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},z4={directionless:1,unmergeable:2},Bv={center:2,end:6,justify:4,left:1,right:3,start:5},U4={[M4]:"center",[P4]:"end",[O4]:"justify",[L4]:"left",[D4]:"right",[R4]:"start"},K4={normal:0,segmented:2,token:1},W4={[_4]:"normal",[I4]:"segmented",[N4]:"token"},jv="$config";function MT(n,t,e,r,s,i){let o=n.getFirstChild();for(;o!==null;){const l=o.__key;o.__parent===t&&(Y(o)&&MT(o,l,e,r,s,i),e.has(l)||i.delete(l),s.push(l)),o=o.getNextSibling()}}let ey=!1,Wb=0;function H4(n){Wb=n.timeStamp}function Ym(n,t,e){const r=n.nodeName==="BR",s=t.__lexicalLineBreak;return s&&(n===s||r&&n.previousSibling===s)||r&&zg(n,e)!==void 0}function Y4(n,t,e){const r=ls(os(e));let s=null,i=null;r!==null&&r.anchorNode===n&&(s=r.anchorOffset,i=r.focusOffset);const o=n.nodeValue;o!==null&&s0(t,o,s,i,!1)}function G4(n,t,e){if(H(n)){const r=n.anchor.getNode();if(r.is(e)&&n.format!==r.getFormat())return!1}return Zi(t)&&e.isAttached()}function Z4(n,t,e,r){for(let s=n;s&&!N3(s);s=md(s)){const i=zg(s,t);if(i!==void 0){const o=me(i,e);if(o)return tt(o)||!Et(s)?void 0:[s,o]}else if(s===r)return[r,x_(e)]}}function DT(n,t,e){ey=!0;const r=performance.now()-Wb>100;try{Ir(n,()=>{const s=G()||(function(g){return g.getEditorState().read(()=>{const p=G();return p!==null?p.clone():null})})(n),i=new Map,o=n.getRootElement(),l=n._editorState,a=n._blockCursorElement;let u=!1,d="";for(let g=0;g<t.length;g++){const p=t[g],m=p.type,y=p.target,b=Z4(y,n,l,o);if(!b)continue;const[x,C]=b;if(m==="characterData")r&&ie(C)&&Zi(y)&&G4(s,y,C)&&Y4(y,C,n);else if(m==="childList"){u=!0;const v=p.addedNodes;for(let S=0;S<v.length;S++){const _=v[S],I=w_(_),L=_.parentNode;if(L!=null&&_!==a&&I===null&&!Ym(_,L,n)){if(Sl){const M=(Et(_)?_.innerText:null)||_.nodeValue;M&&(d+=M)}L.removeChild(_)}}const E=p.removedNodes,N=E.length;if(N>0){let S=0;for(let _=0;_<N;_++){const I=E[_];(Ym(I,y,n)||a===I)&&(y.appendChild(I),S++)}N!==S&&i.set(x,C)}}}if(i.size>0)for(const[g,p]of i)p.reconcileObservedMutation(g,n);const f=e.takeRecords();if(f.length>0){for(let g=0;g<f.length;g++){const p=f[g],m=p.addedNodes,y=p.target;for(let b=0;b<m.length;b++){const x=m[b],C=x.parentNode;C==null||x.nodeName!=="BR"||Ym(x,y,n)||C.removeChild(x)}}e.takeRecords()}s!==null&&(u&&Ge(s),Sl&&T_(n)&&s.insertRawText(d))})}finally{ey=!1}}function OT(n){const t=n._observer;t!==null&&DT(n,t.takeRecords(),t)}function RT(n){(function(t){Wb===0&&os(t).addEventListener("textInput",H4,!0)})(n),n._observer=new MutationObserver((t,e)=>{DT(n,t,e)})}let J4=class{constructor(t,e){z(this,"key");z(this,"parse");z(this,"unparse");z(this,"isEqual");z(this,"defaultValue");this.key=t,this.parse=e.parse.bind(e),this.unparse=(e.unparse||Q4).bind(e),this.isEqual=(e.isEqual||Object.is).bind(e),this.defaultValue=this.parse(void 0)}};function PT(n,t){return new J4(n,t)}function BT(n,t,e="latest"){const r=(e==="latest"?n.getLatest():n).__state;return r?r.getValue(t):t.defaultValue}function Gm(n,t,e){let r;if(In(),typeof e=="function"){const i=n.getLatest(),o=BT(i,t);if(r=e(o),t.isEqual(o,r))return i}else r=e;const s=n.getWritable();return _g(s).updateFromKnown(t,r),s}function jT(n){const t=new Map,e=new Set;for(let r=typeof n=="function"?n:n.replace;r.prototype&&r.prototype.getType!==void 0;r=Object.getPrototypeOf(r)){const{ownNodeConfig:s}=Kg(r);if(s&&s.stateConfigs)for(const i of s.stateConfigs){let o;"stateConfig"in i?(o=i.stateConfig,i.flat&&e.add(o.key)):o=i,t.set(o.key,o)}}return{flatKeys:e,sharedConfigMap:t}}let V4=class FT{constructor(t,e,r=void 0,s=new Map,i=void 0){z(this,"node");z(this,"knownState");z(this,"unknownState");z(this,"sharedNodeState");z(this,"size");this.node=t,this.sharedNodeState=e,this.unknownState=r,this.knownState=s;const{sharedConfigMap:o}=this.sharedNodeState,l=i!==void 0?i:(function(a,u,d){let f=d.size;if(u)for(const g in u){const p=a.get(g);p&&d.has(p)||f++}return f})(o,r,s);this.size=l}getValue(t){const e=this.knownState.get(t);if(e!==void 0)return e;this.sharedNodeState.sharedConfigMap.set(t.key,t);let r=t.defaultValue;if(this.unknownState&&t.key in this.unknownState){const s=this.unknownState[t.key];s!==void 0&&(r=t.parse(s)),this.updateFromKnown(t,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const t={...this.unknownState},e={};for(const[r,s]of this.knownState)r.isEqual(s,r.defaultValue)?delete t[r.key]:t[r.key]=r.unparse(s);for(const r of this.sharedNodeState.flatKeys)r in t&&(e[r]=t[r],delete t[r]);return Fv(t)&&(e.$=t),e}getWritable(t){if(this.node===t)return this;const{sharedNodeState:e,unknownState:r}=this,s=new Map(this.knownState);return new FT(t,e,(function(i,o,l){let a;if(l)for(const[u,d]of Object.entries(l)){const f=i.get(u);f?o.has(f)||o.set(f,f.parse(d)):(a=a||{},a[u]=d)}return a})(e.sharedConfigMap,s,r),s,this.size)}updateFromKnown(t,e){const r=t.key;this.sharedNodeState.sharedConfigMap.set(r,t);const{knownState:s,unknownState:i}=this;s.has(t)||i&&r in i||(i&&(delete i[r],this.unknownState=Fv(i)),this.size++),s.set(t,e)}updateFromUnknown(t,e){const r=this.sharedNodeState.sharedConfigMap.get(t);r?this.updateFromKnown(r,r.parse(e)):(this.unknownState=this.unknownState||{},t in this.unknownState||this.size++,this.unknownState[t]=e)}updateFromJSON(t){const{knownState:e}=this;for(const r of e.keys())e.set(r,r.defaultValue);if(this.size=e.size,this.unknownState=void 0,t)for(const[r,s]of Object.entries(t))this.updateFromUnknown(r,s)}};function _g(n){const t=n.getWritable(),e=t.__state?t.__state.getWritable(t):new V4(t,zT(t));return t.__state=e,e}function zT(n){return n.__state?n.__state.sharedNodeState:m_(Xl(),n.getType()).sharedNodeState}function Fv(n){if(n)for(const t in n)return n}function Q4(n){return n}function zv(n,t,e){for(const[r,s]of t.knownState){if(n.has(r.key))continue;n.add(r.key);const i=e?e.getValue(r):r.defaultValue;if(i!==s&&!r.isEqual(i,s))return!0}return!1}function Uv(n,t,e){const{unknownState:r}=t,s=e?e.unknownState:void 0;if(r){for(const[i,o]of Object.entries(r))if(!n.has(i)&&(n.add(i),o!==(s?s[i]:void 0)))return!0}return!1}function Kv(n,t){const e=n.__state;return e&&e.node===n?e.getWritable(t):e}function Wv(n,t){const e=n.__mode,r=n.__format,s=n.__style,i=t.__mode,o=t.__format,l=t.__style,a=n.__state,u=t.__state;return(e===null||e===i)&&(r===null||r===o)&&(s===null||s===l)&&(n.__state===null||a===u||(function(d,f){if(d===f)return!0;if(d&&f&&d.size!==f.size)return!1;const g=new Set;return!(d&&zv(g,d,f)||f&&zv(g,f,d)||d&&Uv(g,d,f)||f&&Uv(g,f,d))})(a,u))}function Hv(n,t){const e=n.mergeWithSibling(t),r=$t()._normalizedNodes;return r.add(n.__key),r.add(t.__key),e}function Yv(n){let t,e,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&ie(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(Wv(t,r)){r=Hv(t,r);break}break}t.remove()}for(;(e=r.getNextSibling())!==null&&ie(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(Wv(r,e)){r=Hv(r,e);break}break}e.remove()}}else r.remove()}function ko(n){return Gv(n.anchor),Gv(n.focus),n}function Gv(n){for(;n.type==="element";){const t=n.getNode(),e=n.offset;let r,s;if(e===t.getChildrenSize()?(r=t.getChildAtIndex(e-1),s=!0):(r=t.getChildAtIndex(e),s=!1),ie(r)){n.set(r.__key,s?r.getTextContentSize():0,"text",!0);break}if(!Y(r))break;n.set(r.__key,s?r.getChildrenSize():0,"element",!0)}}let El,Qn,Fu,Ng,ty,ny,kl,bs,ry,zu,vn="",Os=null,Rs="",Ei="",Na=!1,Th=!1;function _h(n,t){const e=kl.get(n);if(t!==null){const r=ly(n);r.parentNode===t&&t.removeChild(r)}if(bs.has(n)||Qn._keyToDOMMap.delete(n),Y(e)){const r=Ih(e,kl);sy(r,0,r.length-1,null)}e!==void 0&&i0(zu,Fu,Ng,e,"destroyed")}function sy(n,t,e,r){let s=t;for(;s<=e;++s){const i=n[s];i!==void 0&&_h(i,r)}}function rl(n,t){n.setProperty("text-align",t)}const X4="40px";function UT(n,t){const e=El.theme.indent;if(typeof e=="string"){const s=n.classList.contains(e);t>0&&!s?n.classList.add(e):t<1&&s&&n.classList.remove(e)}const r=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||X4;n.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${r})`)}function KT(n,t){const e=n.style;t===0?rl(e,""):t===1?rl(e,"left"):t===2?rl(e,"center"):t===3?rl(e,"right"):t===4?rl(e,"justify"):t===5?rl(e,"start"):t===6&&rl(e,"end")}function iy(n,t){const e=(function(r){const s=r.__dir;if(s!==null)return s;if(Zt(r))return null;const i=r.getParentOrThrow();return Zt(i)&&i.__dir===null?"auto":null})(t);e!==null?n.dir=e:n.removeAttribute("dir")}function Nh(n,t){const e=bs.get(n);e===void 0&&pe(60);const r=e.createDOM(El,Qn);if((function(s,i,o){const l=o._keyToDOMMap;(function(a,u,d){const f=`__lexicalKey_${u._key}`;a[f]=d})(i,o,s),l.set(s,i)})(n,r,Qn),ie(e)?r.setAttribute("data-lexical-text","true"):tt(e)&&r.setAttribute("data-lexical-decorator","true"),Y(e)){const s=e.__indent,i=e.__size;if(iy(r,e),s!==0&&UT(r,s),i!==0){const l=i-1;oy(Ih(e,bs),e,0,l,e.getDOMSlot(r))}const o=e.__format;o!==0&&KT(r,o),e.isInline()||WT(null,e,r),Ug(e)&&(vn+=Eo,Ei+=Eo)}else{const s=e.getTextContent();if(tt(e)){const i=e.decorate(Qn,El);i!==null&&HT(n,i),r.contentEditable="false"}vn+=s,Ei+=s}return t!==null&&t.insertChild(r),i0(zu,Fu,Ng,e,"created"),r}function oy(n,t,e,r,s){const i=vn;vn="";let o=e;for(;o<=r;++o){Nh(n[o],s);const l=bs.get(n[o]);l!==null&&ie(l)&&(Os===null&&(Os=l.getFormat()),Rs===""&&(Rs=l.getStyle()))}Ug(t)&&(vn+=Eo),s.element.__lexicalTextContent=vn,vn=i+vn}function Zv(n,t){if(n){const e=n.__last;if(e){const r=t.get(e);if(r)return St(r)?"line-break":tt(r)&&r.isInline()?"decorator":null}return"empty"}return null}function WT(n,t,e){const r=Zv(n,kl),s=Zv(t,bs);r!==s&&t.getDOMSlot(e).setManagedLineBreak(s)}function q4(n,t,e){var r;Os=null,Rs="",(function(s,i,o){const l=vn,a=s.__size,u=i.__size;vn="";const d=o.element;if(a===1&&u===1){const f=s.__first,g=i.__first;if(f===g)du(f,d);else{const m=ly(f),y=Nh(g,null);try{d.replaceChild(y,m)}catch(b){if(typeof b=="object"&&b!=null){const x=`${b.toString()} Parent: ${d.tagName}, new child: {tag: ${y.tagName} key: ${g}}, old child: {tag: ${m.tagName}, key: ${f}}.`;throw new Error(x)}throw b}_h(f,null)}const p=bs.get(g);ie(p)&&(Os===null&&(Os=p.getFormat()),Rs===""&&(Rs=p.getStyle()))}else{const f=Ih(s,kl),g=Ih(i,bs);if(f.length!==a&&pe(227),g.length!==u&&pe(228),a===0)u!==0&&oy(g,i,0,u-1,o);else if(u===0){if(a!==0){const p=o.after==null&&o.before==null&&o.element.__lexicalLineBreak==null;sy(f,0,a-1,p?null:d),p&&(d.textContent="")}}else(function(p,m,y,b,x,C){const v=b-1,E=x-1;let N,S,_=C.getFirstChild(),I=0,L=0;for(;I<=v&&L<=E;){const F=m[I],j=y[L];if(F===j)_=Zm(du(j,C.element)),I++,L++;else{N===void 0&&(N=new Set(m)),S===void 0&&(S=new Set(y));const V=S.has(F),ne=N.has(j);if(V)if(ne){const ae=Ll(Qn,j);ae===_?_=Zm(du(j,C.element)):(C.withBefore(_).insertChild(ae),du(j,C.element)),I++,L++}else Nh(j,C.withBefore(_)),L++;else _=Zm(ly(F)),_h(F,C.element),I++}const U=bs.get(j);U!==null&&ie(U)&&(Os===null&&(Os=U.getFormat()),Rs===""&&(Rs=U.getStyle()))}const M=I>v,R=L>E;if(M&&!R){const F=y[E+1],j=F===void 0?null:Qn.getElementByKey(F);oy(y,p,L,E,C.withBefore(j))}else R&&!M&&sy(m,I,v,C.element)})(i,f,g,a,u,o)}Ug(i)&&(vn+=Eo),d.__lexicalTextContent=vn,vn=l+vn})(n,t,t.getDOMSlot(e)),r=t,Os==null||Os===r.__textFormat||Th||r.setTextFormat(Os),(function(s){Rs===""||Rs===s.__textStyle||Th||s.setTextStyle(Rs)})(t)}function Ih(n,t){const e=[];let r=n.__first;for(;r!==null;){const s=t.get(r);s===void 0&&pe(101),e.push(r),r=s.__next}return e}function du(n,t){const e=kl.get(n);let r=bs.get(n);e!==void 0&&r!==void 0||pe(61);const s=Na||ny.has(n)||ty.has(n),i=Ll(Qn,n);if(e===r&&!s){if(Y(e)){const o=i.__lexicalTextContent;o!==void 0&&(vn+=o,Ei+=o)}else{const o=e.getTextContent();Ei+=o,vn+=o}return i}if(e!==r&&s&&i0(zu,Fu,Ng,r,"updated"),r.updateDOM(e,i,El)){const o=Nh(n,null);return t===null&&pe(62),t.replaceChild(o,i),_h(n,null),o}if(Y(e)&&Y(r)){const o=r.__indent;(Na||o!==e.__indent)&&UT(i,o);const l=r.__format;if((Na||l!==e.__format)&&KT(i,l),s&&(q4(e,r,i),Zt(r)||r.isInline()||WT(e,r,i)),Ug(r)&&(vn+=Eo,Ei+=Eo),(Na||r.__dir!==e.__dir)&&(iy(i,r),Zt(r)&&!Na))for(const a of r.getChildren())Y(a)&&iy(Ll(Qn,a.getKey()),a)}else{const o=r.getTextContent();if(tt(r)){const l=r.decorate(Qn,El);l!==null&&HT(n,l)}vn+=o,Ei+=o}if(!Th&&Zt(r)&&r.__cachedText!==Ei){const o=r.getWritable();o.__cachedText=Ei,r=o}return i}function HT(n,t){let e=Qn._pendingDecorators;const r=Qn._decorators;if(e===null){if(r[n]===t)return;e=C_(Qn)}e[n]=t}function Zm(n){let t=n.nextSibling;return t!==null&&t===Qn._blockCursorElement&&(t=t.nextSibling),t}function $4(n,t,e,r,s,i){vn="",Ei="",Na=r===2,Qn=e,El=e._config,Fu=e._nodes,Ng=Qn._listeners.mutation,ty=s,ny=i,kl=n._nodeMap,bs=t._nodeMap,Th=t._readOnly,ry=new Map(e._keyToDOMMap);const o=new Map;return zu=o,du("root",null),Qn=void 0,Fu=void 0,ty=void 0,ny=void 0,kl=void 0,bs=void 0,El=void 0,ry=void 0,zu=void 0,o}function ly(n){const t=ry.get(n);return t===void 0&&pe(75,n),t}function be(n){return{type:n}}const Xr=be("SELECTION_CHANGE_COMMAND"),YT=be("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Hi=be("CLICK_COMMAND"),Ys=be("DELETE_CHARACTER_COMMAND"),Al=be("INSERT_LINE_BREAK_COMMAND"),Pi=be("INSERT_PARAGRAPH_COMMAND"),yo=be("CONTROLLED_TEXT_INSERTION_COMMAND"),Uo=be("PASTE_COMMAND"),ay=be("REMOVE_TEXT_COMMAND"),tc=be("DELETE_WORD_COMMAND"),Tl=be("DELETE_LINE_COMMAND"),Lt=be("FORMAT_TEXT_COMMAND"),Ac=be("UNDO_COMMAND"),Hl=be("REDO_COMMAND"),Ko=be("KEYDOWN_COMMAND"),Ig=be("KEY_ARROW_RIGHT_COMMAND"),cy=be("MOVE_TO_END"),Lg=be("KEY_ARROW_LEFT_COMMAND"),Lh=be("MOVE_TO_START"),qs=be("KEY_ARROW_UP_COMMAND"),To=be("KEY_ARROW_DOWN_COMMAND"),_l=be("KEY_ENTER_COMMAND"),Hb=be("KEY_SPACE_COMMAND"),Yl=be("KEY_BACKSPACE_COMMAND"),yc=be("KEY_ESCAPE_COMMAND"),bc=be("KEY_DELETE_COMMAND"),wc=be("KEY_TAB_COMMAND"),uy=be("INSERT_TAB_COMMAND"),Gs=be("INDENT_CONTENT_COMMAND"),ho=be("OUTDENT_CONTENT_COMMAND"),Yb=be("DROP_COMMAND"),go=be("FORMAT_ELEMENT_COMMAND"),Gb=be("DRAGSTART_COMMAND"),Zb=be("DRAGOVER_COMMAND"),e3=be("DRAGEND_COMMAND"),Gl=be("COPY_COMMAND"),ud=be("CUT_COMMAND"),dy=be("SELECT_ALL_COMMAND"),Mg=be("CLEAR_EDITOR_COMMAND"),Jb=be("CLEAR_HISTORY_COMMAND"),Ra=be("CAN_REDO_COMMAND"),Pa=be("CAN_UNDO_COMMAND"),Wo=be("FOCUS_COMMAND"),Dg=be("BLUR_COMMAND"),GT=be("KEY_MODIFIER_COMMAND"),wi=Object.freeze({}),fy=[["keydown",function(n,t){if(Cu=n.timeStamp,ZT=n.key,!t.isComposing()&&!Ne(t,Ko,n)&&n.key!=null){if(Jm&&xS(n))return Ir(t,()=>{Lf(t,Vm)}),Jm=!1,void(Vm="");if((function(e){return Nt(e,"ArrowRight",{shiftKey:"any"})})(n))Ne(t,Ig,n);else if((function(e){return Nt(e,"ArrowRight",Si)})(n))Ne(t,cy,n);else if((function(e){return Nt(e,"ArrowLeft",{shiftKey:"any"})})(n))Ne(t,Lg,n);else if((function(e){return Nt(e,"ArrowLeft",Si)})(n))Ne(t,Lh,n);else if((function(e){return Nt(e,"ArrowUp",{altKey:"any",shiftKey:"any"})})(n))Ne(t,qs,n);else if((function(e){return Nt(e,"ArrowDown",{altKey:"any",shiftKey:"any"})})(n))Ne(t,To,n);else if((function(e){return Nt(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})})(n))xu=!0,Ne(t,_l,n);else if((function(e){return e.key===" "})(n))Ne(t,Hb,n);else if((function(e){return ps&&Nt(e,"o",{ctrlKey:!0})})(n))n.preventDefault(),xu=!0,Ne(t,Al,!0);else if((function(e){return Nt(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})})(n))xu=!1,Ne(t,_l,n);else if((function(e){return Nt(e,"Backspace",{shiftKey:"any"})||ps&&Nt(e,"h",{ctrlKey:!0})})(n))xS(n)?Ne(t,Yl,n):(n.preventDefault(),Ne(t,Ys,!0));else if((function(e){return e.key==="Escape"})(n))Ne(t,yc,n);else if((function(e){return Nt(e,"Delete",{})||ps&&Nt(e,"d",{ctrlKey:!0})})(n))(function(e){return e.key==="Delete"})(n)?Ne(t,bc,n):(n.preventDefault(),Ne(t,Ys,!1));else if((function(e){return Nt(e,"Backspace",CS)})(n))n.preventDefault(),Ne(t,tc,!0);else if((function(e){return Nt(e,"Delete",CS)})(n))n.preventDefault(),Ne(t,tc,!1);else if((function(e){return ps&&Nt(e,"Backspace",{metaKey:!0})})(n))n.preventDefault(),Ne(t,Tl,!0);else if((function(e){return ps&&(Nt(e,"Delete",{metaKey:!0})||Nt(e,"k",{ctrlKey:!0}))})(n))n.preventDefault(),Ne(t,Tl,!1);else if((function(e){return Nt(e,"b",Si)})(n))n.preventDefault(),Ne(t,Lt,"bold");else if((function(e){return Nt(e,"u",Si)})(n))n.preventDefault(),Ne(t,Lt,"underline");else if((function(e){return Nt(e,"i",Si)})(n))n.preventDefault(),Ne(t,Lt,"italic");else if((function(e){return Nt(e,"Tab",{shiftKey:"any"})})(n))Ne(t,wc,n);else if((function(e){return Nt(e,"z",Si)})(n))n.preventDefault(),Ne(t,Ac,void 0);else if((function(e){return ps?Nt(e,"z",{metaKey:!0,shiftKey:!0}):Nt(e,"y",{ctrlKey:!0})||Nt(e,"z",{ctrlKey:!0,shiftKey:!0})})(n))n.preventDefault(),Ne(t,Hl,void 0);else{const e=t._editorState._selection;e===null||H(e)?vS(n)&&(n.preventDefault(),Ne(t,dy,n)):(function(r){return Nt(r,"c",Si)})(n)?(n.preventDefault(),Ne(t,Gl,n)):(function(r){return Nt(r,"x",Si)})(n)?(n.preventDefault(),Ne(t,ud,n)):vS(n)&&(n.preventDefault(),Ne(t,dy,n))}(function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey})(n)&&Ne(t,GT,n)}}],["pointerdown",function(n,t){const e=n.target,r=n.pointerType;Ql(e)&&r!=="touch"&&r!=="pen"&&n.button===0&&Ir(t,()=>{yS(e)||(py=!0)})}],["compositionstart",function(n,t){Ir(t,()=>{const e=G();if(H(e)&&!t.isComposing()){const r=e.anchor,s=e.anchor.getNode();Un(r.key),(n.timeStamp<Cu+30||r.type==="element"||!e.isCollapsed()||s.getFormat()!==e.format||ie(s)&&s.getStyle()!==e.style)&&Ne(t,yo,B4)}})}],["compositionend",function(n,t){Sl?nu=!0:ec||!Bu&&!ju?Ir(t,()=>{Lf(t,n.data)}):(Jm=!0,Vm=n.data)}],["input",function(n,t){n.stopPropagation(),Ir(t,()=>{if(Et(n.target)&&yS(n.target))return;const e=G(),r=n.data,s=qT(n);if(r!=null&&H(e)&&QT(e,s,r,n.timeStamp,!1)){nu&&(Lf(t,r),nu=!1);const i=e.anchor.getNode(),o=ls(os(t));if(o===null)return;const l=e.isBackward(),a=l?e.anchor.offset:e.focus.offset,u=l?e.focus.offset:e.anchor.offset;kh&&!e.isCollapsed()&&ie(i)&&o.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+u)===E_(o.anchorNode)||Ne(t,yo,r);const d=r.length;Sl&&d>1&&n.inputType==="insertCompositionText"&&!t.isComposing()&&(e.anchor.offset-=d),Bu||ec||ju||!t.isComposing()||(Cu=0,Un(null))}else r0(!1,t,r!==null?r:void 0),nu&&(Lf(t,r||void 0),nu=!1);(function(){In();const i=$t();OT(i)})()},{event:n}),Ia=null}],["click",function(n,t){Ir(t,()=>{const e=G(),r=ls(os(t)),s=Yi();if(r){if(H(e)){const i=e.anchor,o=i.getNode();if(i.type==="element"&&i.offset===0&&e.isCollapsed()&&!Zt(o)&&xe().getChildrenSize()===1&&o.getTopLevelElementOrThrow().isEmpty()&&s!==null&&e.is(s))r.removeAllRanges(),e.dirty=!0;else if(n.detail===3&&!e.isCollapsed()&&o!==e.focus.getNode()){const l=Se(o,a=>Y(a)&&!a.isInline());Y(l)&&l.select(0)}}else if(n.pointerType==="touch"||n.pointerType==="pen"){const i=r.anchorNode;(Et(i)||Zi(i))&&Ge(Pg(s,r,t,n))}}Ne(t,Hi,n)})}],["cut",wi],["copy",wi],["dragstart",wi],["dragover",wi],["dragend",wi],["paste",wi],["focus",wi],["blur",wi],["drop",wi]];kh&&fy.push(["beforeinput",(n,t)=>(function(e,r){const s=e.inputType,i=qT(e);s==="deleteCompositionText"||Sl&&T_(r)||s!=="insertCompositionText"&&Ir(r,()=>{const o=G();if(s==="deleteContentBackward"){if(o===null){const p=Yi();if(!H(p))return;Ge(p.clone())}if(H(o)){const p=o.anchor.key===o.focus.key;if(l=e.timeStamp,ZT==="MediaLast"&&l<Cu+30&&r.isComposing()&&p){if(Un(null),Cu=0,setTimeout(()=>{Ir(r,()=>{Un(null)})},30),H(o)){const m=o.anchor.getNode();m.markDirty(),ie(m)||pe(142),XT(o,m)}}else{Un(null),e.preventDefault();const m=o.anchor.getNode(),y=m.getTextContent(),b=m.canInsertTextAfter(),x=o.anchor.offset===0&&o.focus.offset===y.length;let C=Pv&&p&&!x&&b;if(C&&o.isCollapsed()&&(C=!tt(wy(o.anchor,!0))),!C){Ne(r,Ys,!0);const v=G();Pv&&H(v)&&v.isCollapsed()&&(al=v,setTimeout(()=>al=null))}}return}}var l;if(!H(o))return;const a=e.data;Ia!==null&&r0(!1,r,Ia),o.dirty&&Ia===null||!o.isCollapsed()||Zt(o.anchor.getNode())||i===null||o.applyDOMRange(i),Ia=null;const u=o.anchor,d=o.focus,f=u.getNode(),g=d.getNode();if(s!=="insertText"&&s!=="insertTranspose")switch(e.preventDefault(),s){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Ne(r,yo,e);break;case"insertFromComposition":Un(null),Ne(r,yo,e);break;case"insertLineBreak":Un(null),Ne(r,Al,!1);break;case"insertParagraph":Un(null),xu&&!ec?(xu=!1,Ne(r,Al,!1)):Ne(r,Pi,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Ne(r,Uo,e);break;case"deleteByComposition":(function(p,m){return p!==m||Y(p)||Y(m)||!yl(p)||!yl(m)})(f,g)&&Ne(r,ay,e);break;case"deleteByDrag":case"deleteByCut":Ne(r,ay,e);break;case"deleteContent":Ne(r,Ys,!1);break;case"deleteWordBackward":Ne(r,tc,!0);break;case"deleteWordForward":Ne(r,tc,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Ne(r,Tl,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Ne(r,Tl,!1);break;case"formatStrikeThrough":Ne(r,Lt,"strikethrough");break;case"formatBold":Ne(r,Lt,"bold");break;case"formatItalic":Ne(r,Lt,"italic");break;case"formatUnderline":Ne(r,Lt,"underline");break;case"historyUndo":Ne(r,Ac,void 0);break;case"historyRedo":Ne(r,Hl,void 0)}else{if(a===`
4
+ `)e.preventDefault(),Ne(r,Al,!1);else if(a===Eo)e.preventDefault(),Ne(r,Pi,void 0);else if(a==null&&e.dataTransfer){const p=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(p)}else a!=null&&QT(o,i,a,e.timeStamp,!0)?(e.preventDefault(),Ne(r,yo,a)):Ia=a;JT=e.timeStamp}})})(n,t)]);let Cu=0,ZT=null,JT=0,Ia=null;const hy=new WeakMap,Mh=new WeakMap;let gy=!1,py=!1,xu=!1,nu=!1,Jm=!1,Vm="",al=null,VT=[0,"",0,"root",0];function QT(n,t,e,r,s){const i=n.anchor,o=n.focus,l=i.getNode(),a=$t(),u=ls(os(a)),d=u!==null?u.anchorNode:null,f=i.key,g=a.getElementByKey(f),p=e.length;return f!==o.key||!ie(l)||(!s&&(!kh||JT<r+50)||l.isDirty()&&p<2||v_(e))&&i.offset!==o.offset&&!l.isComposing()||Ps(l)||l.isDirty()&&p>1||(s||!kh)&&g!==null&&!l.isComposing()&&d!==nc(g)||u!==null&&t!==null&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||l.getFormat()!==n.format||l.getStyle()!==n.style||(function(m,y){if(y.isSegmented())return!0;if(!m.isCollapsed())return!1;const b=m.anchor.offset,x=y.getParentOrThrow(),C=yl(y);return b===0?!y.canInsertTextBefore()||!x.canInsertTextBefore()&&!y.isComposing()||C||(function(v){const E=v.getPreviousSibling();return(ie(E)||Y(E)&&E.isInline())&&!E.canInsertTextAfter()})(y):b===y.getTextContentSize()&&(!y.canInsertTextAfter()||!x.canInsertTextAfter()&&!y.isComposing()||C)})(n,l)}function Jv(n,t){return Zi(n)&&n.nodeValue!==null&&t!==0&&t!==n.nodeValue.length}function Vv(n,t,e){const{anchorNode:r,anchorOffset:s,focusNode:i,focusOffset:o}=n;gy&&(gy=!1,Jv(r,s)&&Jv(i,o)&&!al)||Ir(t,()=>{if(!e)return void Ge(null);if(!gd(t,r,i))return;let l=G();if(al&&H(l)&&l.isCollapsed()){const a=l.anchor,u=al.anchor;(a.key===u.key&&a.offset===u.offset+1||a.offset===1&&u.getNode().is(a.getNode().getPreviousSibling()))&&(l=al.clone(),Ge(l))}if(al=null,H(l)){const a=l.anchor,u=a.getNode();if(l.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(l.dirty=!0);const d=os(t).event,f=d?d.timeStamp:performance.now(),[g,p,m,y,b]=VT,x=xe(),C=t.isComposing()===!1&&x.getTextContent()==="";if(f<b+200&&a.offset===m&&a.key===y)ch(l,g,p);else if(a.type==="text")ie(u)||pe(141),XT(l,u);else if(a.type==="element"&&!C){Y(u)||pe(259);const v=a.getNode();v.isEmpty()?(function(E,N){const S=N.getTextFormat(),_=N.getTextStyle();ch(E,S,_)})(l,v):ch(l,0,"")}}else{const d=a.key,f=l.focus.key,g=l.getNodes(),p=g.length,m=l.isBackward(),y=m?o:s,b=m?s:o,x=m?f:d,C=m?d:f;let v=2047,E=!1;for(let N=0;N<p;N++){const S=g[N],_=S.getTextContentSize();if(ie(S)&&_!==0&&!(N===0&&S.__key===x&&y===_||N===p-1&&S.__key===C&&b===0)&&(E=!0,v&=S.getFormat(),v===0))break}l.format=E?v:0}}Ne(t,Xr,void 0)})}function ch(n,t,e){n.format===t&&n.style===e||(n.format=t,n.style=e,n.dirty=!0)}function XT(n,t){ch(n,t.getFormat(),t.getStyle())}function qT(n){if(!n.getTargetRanges)return null;const t=n.getTargetRanges();return t.length===0?null:t[0]}function Lf(n,t){const e=n._compositionKey;if(Un(null),e!==null&&t!=null){if(t===""){const r=me(e),s=nc(n.getElementByKey(e));return void(s!==null&&s.nodeValue!==null&&ie(r)&&s0(r,s.nodeValue,null,null,!0))}if(t[t.length-1]===`
5
+ `){const r=G();if(H(r)){const s=r.focus;return r.anchor.set(s.key,s.offset,s.type),void Ne(n,_l,null)}}}r0(!0,n,t)}function $T(n){let t=n.__lexicalEventHandles;return t===void 0&&(t=[],n.__lexicalEventHandles=t),t}const Ka=new Map;function e_(n){const t=k3(n.target);if(t===null)return;const e=pd(t.anchorNode);if(e===null)return;py&&(py=!1,Ir(e,()=>{const a=Yi(),u=t.anchorNode;(Et(u)||Zi(u))&&Ge(Pg(a,t,e,n))}));const r=n0(e),s=r[r.length-1],i=s._key,o=Ka.get(i),l=o||s;l!==e&&Vv(t,l,!1),Vv(t,e,!0),e!==s?Ka.set(i,e):o&&Ka.delete(i)}function Qv(n){n._lexicalHandled=!0}function Xv(n){return n._lexicalHandled===!0}function t3(n){const t=hy.get(n);if(t===void 0)return;const e=Mh.get(t);if(e===void 0)return;const r=e-1;r>=0||pe(164),hy.delete(n),Mh.set(t,r),r===0&&t.removeEventListener("selectionchange",e_);const s=Fg(n);t0(s)?((function(o){if(o._parentEditor!==null){const l=n0(o),a=l[l.length-1]._key;Ka.get(a)===o&&Ka.delete(a)}else Ka.delete(o._key)})(s),n.__lexicalEditor=null):s&&pe(198);const i=$T(n);for(let o=0;o<i.length;o++)i[o]();n.__lexicalEventHandles=[]}function my(n,t,e){In();const r=n.__key,s=n.getParent();if(s===null)return;const i=(function(l){const a=G();if(!H(a)||!Y(l))return a;const{anchor:u,focus:d}=a,f=u.getNode(),g=d.getNode();return Cy(f,l)&&u.set(l.__key,0,"element"),Cy(g,l)&&d.set(l.__key,0,"element"),a})(n);let o=!1;if(H(i)&&t){const l=i.anchor,a=i.focus;l.key===r&&(Rh(l,n,s,n.getPreviousSibling(),n.getNextSibling()),o=!0),a.key===r&&(Rh(a,n,s,n.getPreviousSibling(),n.getNextSibling()),o=!0)}else Gt(i)&&t&&n.isSelected()&&n.selectPrevious();if(H(i)&&t&&!o){const l=n.getIndexWithinParent();Li(n),Oh(i,s,l,-1)}else Li(n);e||$n(s)||s.canBeEmpty()||!s.isEmpty()||my(s,t),t&&i&&Zt(s)&&s.isEmpty()&&s.selectEnd()}const t_=Symbol.for("ephemeral");function Dh(n){return n[t_]||!1}class ws{constructor(t){z(this,"__type");z(this,"__key");z(this,"__parent");z(this,"__prev");z(this,"__next");z(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),b_(this,t)}static getType(){const{ownNodeType:t}=Kg(this);return t===void 0&&pe(64,this.name),t}static clone(t){pe(65,this.name)}$config(){return{}}config(t,e){const r=e.extends||Object.getPrototypeOf(this.constructor);return Object.assign(e,{extends:r,type:t}),{[t]:e}}afterCloneFrom(t){this.__key===t.__key?(this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev,this.__state=t.__state):t.__state&&(this.__state=t.__state.getWritable(this))}getType(){return this.__type}isInline(){pe(137,this.constructor.name)}isAttached(){let t=this.__key;for(;t!==null;){if(t==="root")return!0;const e=me(t);if(e===null)break;t=e.__parent}return!1}isSelected(t){const e=t||G();if(e==null)return!1;const r=e.getNodes().some(s=>s.__key===this.__key);if(ie(this))return r;if(H(e)&&e.anchor.type==="element"&&e.focus.type==="element"){if(e.isCollapsed())return!1;const s=this.getParent();if(tt(this)&&this.isInline()&&s){const i=e.isBackward()?e.focus:e.anchor;if(s.is(i.getNode())&&i.offset===s.getChildrenSize()&&this.is(s.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(t===null)return-1;let e=t.getFirstChild(),r=0;for(;e!==null;){if(this.is(e))return r;r++,e=e.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return t===null?null:me(t)}getParentOrThrow(){const t=this.getParent();return t===null&&pe(66,this.__key),t}getTopLevelElement(){let t=this;for(;t!==null;){const e=t.getParent();if($n(e))return Y(t)||t===this&&tt(t)||pe(194),t;t=e}return null}getTopLevelElementOrThrow(){const t=this.getTopLevelElement();return t===null&&pe(67,this.__key),t}getParents(){const t=[];let e=this.getParent();for(;e!==null;)t.push(e),e=e.getParent();return t}getParentKeys(){const t=[];let e=this.getParent();for(;e!==null;)t.push(e.__key),e=e.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return t===null?null:me(t)}getPreviousSiblings(){const t=[],e=this.getParent();if(e===null)return t;let r=e.getFirstChild();for(;r!==null&&!r.is(this);)t.push(r),r=r.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return t===null?null:me(t)}getNextSiblings(){const t=[];let e=this.getNextSibling();for(;e!==null;)t.push(e),e=e.getNextSibling();return t}getCommonAncestor(t){const e=Y(this)?this:this.getParent(),r=Y(t)?t:t.getParent(),s=e&&r?dh(e,r):null;return s?s.commonAncestor:null}is(t){return t!=null&&this.__key===t.__key}isBefore(t){const e=dh(this,t);return e!==null&&(e.type==="descendant"||(e.type==="branch"?R_(e)===-1:(e.type!=="same"&&e.type!=="ancestor"&&pe(279),!1)))}isParentOf(t){const e=dh(this,t);return e!==null&&e.type==="ancestor"}getNodesBetween(t){const e=this.isBefore(t),r=[],s=new Set;let i=this;for(;i!==null;){const o=i.__key;if(s.has(o)||(s.add(o),r.push(i)),i===t)break;const l=Y(i)?e?i.getFirstChild():i.getLastChild():null;if(l!==null){i=l;continue}const a=e?i.getNextSibling():i.getPreviousSibling();if(a!==null){i=a;continue}const u=i.getParentOrThrow();if(s.has(u.__key)||r.push(u),u===t)break;let d=null,f=u;do{if(f===null&&pe(68),d=e?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),f===null)break;d!==null||s.has(f.__key)||r.push(f)}while(d===null);i=d}return e||r.reverse(),r}isDirty(){const t=$t()._dirtyLeaves;return t!==null&&t.has(this.__key)}getLatest(){if(Dh(this))return this;const t=me(this.__key);return t===null&&pe(113),t}getWritable(){if(Dh(this))return this;In();const t=Ho(),e=$t(),r=t._nodeMap,s=this.__key,i=this.getLatest(),o=e._cloneNotNeeded,l=G();if(l!==null&&l.setCachedNodes(null),o.has(s))return Bh(i),i;const a=a0(i);return o.add(s),Bh(a),r.set(s,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(t,e){pe(70)}updateDOM(t,e,r){pe(71)}exportDOM(t){return{element:this.createDOM(t._config,t)}}exportJSON(){const t=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...t}}static importJSON(t){pe(18,this.name)}updateFromJSON(t){return(function(e,r){const s=e.getWritable(),i=r.$;let o=i;for(const l of zT(s).flatKeys)l in r&&(o!==void 0&&o!==i||(o={...i}),o[l]=r[l]);return(s.__state||o)&&_g(e).updateFromJSON(o),s})(this,t)}static transform(){return null}remove(t){my(this,!0,t)}replace(t,e){In();let r=G();r!==null&&(r=r.clone()),tA(this,t);const s=this.getLatest(),i=this.__key,o=t.__key,l=t.getWritable(),a=this.getParentOrThrow().getWritable(),u=a.__size;Li(l);const d=s.getPreviousSibling(),f=s.getNextSibling(),g=s.__prev,p=s.__next,m=s.__parent;if(my(s,!1,!0),d===null?a.__first=o:d.getWritable().__next=o,l.__prev=g,f===null?a.__last=o:f.getWritable().__prev=o,l.__next=p,l.__parent=m,a.__size=u,e&&(Y(this)&&Y(l)||pe(139),this.getChildren().forEach(y=>{l.append(y)})),H(r)){Ge(r);const y=r.anchor,b=r.focus;y.key===i&&nS(y,l),b.key===i&&nS(b,l)}return po()===i&&Un(o),l}insertAfter(t,e=!0){In(),tA(this,t);const r=this.getWritable(),s=t.getWritable(),i=s.getParent(),o=G();let l=!1,a=!1;if(i!==null){const p=t.getIndexWithinParent();if(Li(s),H(o)){const m=i.__key,y=o.anchor,b=o.focus;l=y.type==="element"&&y.key===m&&y.offset===p+1,a=b.type==="element"&&b.key===m&&b.offset===p+1}}const u=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),f=s.__key,g=r.__next;if(u===null?d.__last=f:u.getWritable().__prev=f,d.__size++,r.__next=f,s.__next=g,s.__prev=r.__key,s.__parent=r.__parent,e&&H(o)){const p=this.getIndexWithinParent();Oh(o,d,p+1);const m=d.__key;l&&o.anchor.set(m,p+2,"element"),a&&o.focus.set(m,p+2,"element")}return t}insertBefore(t,e=!0){In(),tA(this,t);const r=this.getWritable(),s=t.getWritable(),i=s.__key;Li(s);const o=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),a=r.__prev,u=this.getIndexWithinParent();o===null?l.__first=i:o.getWritable().__next=i,l.__size++,r.__prev=i,s.__prev=a,s.__next=r.__key,s.__parent=r.__parent;const d=G();return e&&H(d)&&Oh(d,this.getParentOrThrow(),u),t}isParentRequired(){return!1}createParentElementNode(){return we()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,e){In();const r=this.getPreviousSibling(),s=this.getParentOrThrow();if(r===null)return s.select(0,0);if(Y(r))return r.select();if(!ie(r)){const i=r.getIndexWithinParent()+1;return s.select(i,i)}return r.select(t,e)}selectNext(t,e){In();const r=this.getNextSibling(),s=this.getParentOrThrow();if(r===null)return s.select();if(Y(r))return r.select(0,0);if(!ie(r)){const i=r.getIndexWithinParent();return s.select(i,i)}return r.select(t,e)}markDirty(){this.getWritable()}reconcileObservedMutation(t,e){this.markDirty()}}z(ws,"importDOM");const Nl="historic",n3="history-push",qr="history-merge",r3="paste",dd="collaboration",qv="skip-collab",n_="skip-scroll-into-view",s3="skip-dom-selection",i3="skip-selection-focus";class Cc extends ws{static getType(){return"linebreak"}static clone(t){return new Cc(t.__key)}constructor(t){super(t)}getTextContent(){return`
6
+ `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:t=>(function(e){const r=e.parentElement;if(r!==null&&jh(r)){const s=r.firstChild;if(s===e||s.nextSibling===e&&Mf(s)){const i=r.lastChild;if(i===e||i.previousSibling===e&&Mf(i))return!0}}return!1})(t)||(function(e){const r=e.parentElement;if(r!==null&&jh(r)){const s=r.firstChild;if(s===e||s.nextSibling===e&&Mf(s))return!1;const i=r.lastChild;if(i===e||i.previousSibling===e&&Mf(i))return!0}return!1})(t)?null:{conversion:o3,priority:0}}}static importJSON(t){return dr().updateFromJSON(t)}}function o3(n){return{node:dr()}}function dr(){return Mt(new Cc)}function St(n){return n instanceof Cc}function Mf(n){return Zi(n)&&/^( |\t|\r?\n)+$/.test(n.textContent||"")}function Qm(n,t){return 16&t?"code":t&NT?"mark":32&t?"sub":64&t?"sup":null}function Xm(n,t){return 1&t?"strong":2&t?"em":"span"}function r_(n,t,e,r,s){const i=r.classList;let o=Wa(s,"base");o!==void 0&&i.add(...o),o=Wa(s,"underlineStrikethrough");let l=!1;const a=8&t&&4&t;o!==void 0&&(8&e&&4&e?(l=!0,a||i.add(...o)):a&&i.remove(...o));for(const u in Ri){const d=Ri[u];if(o=Wa(s,u),o!==void 0)if(e&d){if(l&&(u==="underline"||u==="strikethrough")){t&d&&i.remove(...o);continue}((t&d)===0||a&&u==="underline"||u==="strikethrough")&&i.add(...o)}else t&d&&i.remove(...o)}}function s_(n,t,e){const r=t.firstChild,s=e.isComposing(),i=n+(s?Tg:"");if(r==null)t.textContent=i;else{const o=r.nodeValue;if(o!==i)if(s||Sl){const[l,a,u]=(function(d,f){const g=d.length,p=f.length;let m=0,y=0;for(;m<g&&m<p&&d[m]===f[m];)m++;for(;y+m<g&&y+m<p&&d[g-y-1]===f[p-y-1];)y++;return[m,g-m-y,f.slice(m,p-y)]})(o,i);a!==0&&r.deleteData(l,a),r.insertData(l,u)}else r.nodeValue=i}}function $v(n,t,e,r,s,i){s_(s,n,t);const o=i.theme.text;o!==void 0&&r_(0,0,r,n,o)}function Df(n,t){const e=document.createElement(t);return e.appendChild(n),e}class Dn extends ws{constructor(e="",r){super(r);z(this,"__text");z(this,"__format");z(this,"__style");z(this,"__mode");z(this,"__detail");this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(e){return new Dn(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return W4[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===po()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const r=Ri[e];return(this.getFormat()&r)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,r){return Ph(this.getLatest().__format,e,r)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,r){const s=this.__format,i=Qm(0,s),o=Xm(0,s),l=i===null?o:i,a=document.createElement(l);let u=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),i!==null&&(u=document.createElement(o),a.appendChild(u)),$v(u,this,0,s,this.__text,e);const d=this.__style;return d!==""&&(a.style.cssText=d),a}updateDOM(e,r,s){const i=this.__text,o=e.__format,l=this.__format,a=Qm(0,o),u=Qm(0,l),d=Xm(0,o),f=Xm(0,l);if((a===null?d:a)!==(u===null?f:u))return!0;if(a===u&&d!==f){const b=r.firstChild;b==null&&pe(48);const x=document.createElement(f);return $v(x,this,0,l,i,s),r.replaceChild(x,b),!1}let g=r;u!==null&&a!==null&&(g=r.firstChild,g==null&&pe(49)),s_(i,g,this);const p=s.theme.text;p!==void 0&&o!==l&&r_(0,o,l,g,p);const m=e.__style,y=this.__style;return m!==y&&(r.style.cssText=y),!1}static importDOM(){return{"#text":()=>({conversion:u3,priority:0}),b:()=>({conversion:a3,priority:0}),code:()=>({conversion:Ci,priority:0}),em:()=>({conversion:Ci,priority:0}),i:()=>({conversion:Ci,priority:0}),mark:()=>({conversion:Ci,priority:0}),s:()=>({conversion:Ci,priority:0}),span:()=>({conversion:l3,priority:0}),strong:()=>({conversion:Ci,priority:0}),sub:()=>({conversion:Ci,priority:0}),sup:()=>({conversion:Ci,priority:0}),u:()=>({conversion:Ci,priority:0})}}static importJSON(e){return $e().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:r}=super.exportDOM(e);return Et(r)||pe(132),r.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?r.style.textTransform="lowercase":this.hasFormat("uppercase")?r.style.textTransform="uppercase":this.hasFormat("capitalize")&&(r.style.textTransform="capitalize"),this.hasFormat("bold")&&(r=Df(r,"b")),this.hasFormat("italic")&&(r=Df(r,"i")),this.hasFormat("strikethrough")&&(r=Df(r,"s")),this.hasFormat("underline")&&(r=Df(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,r){}setFormat(e){const r=this.getWritable();return r.__format=typeof e=="string"?Ri[e]:e,r}setDetail(e){const r=this.getWritable();return r.__detail=typeof e=="string"?z4[e]:e,r}setStyle(e){const r=this.getWritable();return r.__style=e,r}toggleFormat(e){const r=Ph(this.getFormat(),e,null);return this.setFormat(r)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const r=K4[e];if(this.__mode===r)return this;const s=this.getWritable();return s.__mode=r,s}setTextContent(e){if(this.__text===e)return this;const r=this.getWritable();return r.__text=e,r}select(e,r){In();let s=e,i=r;const o=G(),l=this.getTextContent(),a=this.__key;if(typeof l=="string"){const u=l.length;s===void 0&&(s=u),i===void 0&&(i=u)}else s=0,i=0;if(!H(o))return l_(a,s,a,i,"text","text");{const u=po();u!==o.anchor.key&&u!==o.focus.key||Un(a),o.setTextNodeRange(this,s,this,i)}return o}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,r,s,i){const o=this.getWritable(),l=o.__text,a=s.length;let u=e;u<0&&(u=a+u,u<0&&(u=0));const d=G();if(i&&H(d)){const g=e+a;d.setTextNodeRange(o,g,o,g)}const f=l.slice(0,u)+s+l.slice(u+r);return o.__text=f,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){In();const r=this.getLatest(),s=r.getTextContent();if(s==="")return[];const i=r.__key,o=po(),l=s.length;e.sort((L,M)=>L-M),e.push(l);const a=[],u=e.length;for(let L=0,M=0;L<l&&M<=u;M++){const R=e[M];R>L&&(a.push(s.slice(L,R)),L=R)}const d=a.length;if(d===1)return[r];const f=a[0],g=r.getParent();let p;const m=r.getFormat(),y=r.getStyle(),b=r.__detail;let x=!1,C=null,v=null;const E=G();if(H(E)){const[L,M]=E.isBackward()?[E.focus,E.anchor]:[E.anchor,E.focus];L.type==="text"&&L.key===i&&(C=L),M.type==="text"&&M.key===i&&(v=M)}r.isSegmented()?(p=$e(f),p.__format=m,p.__style=y,p.__detail=b,p.__state=Kv(r,p),x=!0):p=r.setTextContent(f);const N=[p];for(let L=1;L<d;L++){const M=$e(a[L]);M.__format=m,M.__style=y,M.__detail=b,M.__state=Kv(r,M);const R=M.__key;o===i&&Un(R),N.push(M)}const S=C?C.offset:null,_=v?v.offset:null;let I=0;for(const L of N){if(!C&&!v)break;const M=I+L.getTextContentSize();if(C!==null&&S!==null&&S<=M&&S>=I&&(C.set(L.getKey(),S-I,"text"),S<M&&(C=null)),v!==null&&_!==null&&_<=M&&_>=I){v.set(L.getKey(),_-I,"text");break}I=M}if(g!==null){(function(R){const F=R.getPreviousSibling(),j=R.getNextSibling();F!==null&&Bh(F),j!==null&&Bh(j)})(this);const L=g.getWritable(),M=this.getIndexWithinParent();x?(L.splice(M,0,N),this.remove()):L.splice(M,1,N),H(E)&&Oh(E,g,M,d-1)}return N}mergeWithSibling(e){const r=e===this.getPreviousSibling();r||e===this.getNextSibling()||pe(50);const s=this.__key,i=e.__key,o=this.__text,l=o.length;po()===i&&Un(s);const a=G();if(H(a)){const g=a.anchor,p=a.focus;g!==null&&g.key===i&&cS(g,r,s,e,l),p!==null&&p.key===i&&cS(p,r,s,e,l)}const u=e.__text,d=r?u+o:o+u;this.setTextContent(d);const f=this.getWritable();return e.remove(),f}isTextEntity(){return!1}}function l3(n){return{forChild:Vb(n.style),node:null}}function a3(n){const t=n,e=t.style.fontWeight==="normal";return{forChild:Vb(t.style,e?void 0:"bold"),node:null}}const eS=new WeakMap;function c3(n){if(!Et(n))return!1;if(n.nodeName==="PRE")return!0;const t=n.style.whiteSpace;return typeof t=="string"&&t.startsWith("pre")}function u3(n){const t=n;n.parentElement===null&&pe(129);let e=t.textContent||"";if((function(r){let s,i=r.parentNode;const o=[r];for(;i!==null&&(s=eS.get(i))===void 0&&!c3(i);)o.push(i),i=i.parentNode;const l=s===void 0?i:s;for(let a=0;a<o.length;a++)eS.set(o[a],l);return l})(t)!==null){const r=e.split(/(\r?\n|\t)/),s=[],i=r.length;for(let o=0;o<i;o++){const l=r[o];l===`
7
+ `||l===`\r
8
+ `?s.push(dr()):l===" "?s.push(ns()):l!==""&&s.push($e(l))}return{node:s}}if(e=e.replace(/\r/g,"").replace(/[ \t\n]+/g," "),e==="")return{node:null};if(e[0]===" "){let r=t,s=!0;for(;r!==null&&(r=tS(r,!1))!==null;){const i=r.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(e=e.slice(1)),s=!1;break}}s&&(e=e.slice(1))}if(e[e.length-1]===" "){let r=t,s=!0;for(;r!==null&&(r=tS(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){s=!1;break}s&&(e=e.slice(0,e.length-1))}return e===""?{node:null}:{node:$e(e)}}function tS(n,t){let e=n;for(;;){let r;for(;(r=t?e.nextSibling:e.previousSibling)===null;){const i=e.parentElement;if(i===null)return null;e=i}if(e=r,Et(e)){const i=e.style.display;if(i===""&&!Ey(e)||i!==""&&!i.startsWith("inline"))return null}let s=e;for(;(s=t?e.firstChild:e.lastChild)!==null;)e=s;if(Zi(e))return e;if(e.nodeName==="BR")return null}}const d3={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Ci(n){const t=d3[n.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:Vb(n.style,t),node:null}}function $e(n=""){return Mt(new Dn(n))}function ie(n){return n instanceof Dn}function Vb(n,t){const e=n.fontWeight,r=n.textDecoration.split(" "),s=e==="700"||e==="bold",i=r.includes("line-through"),o=n.fontStyle==="italic",l=r.includes("underline"),a=n.verticalAlign;return u=>(ie(u)&&(s&&!u.hasFormat("bold")&&u.toggleFormat("bold"),i&&!u.hasFormat("strikethrough")&&u.toggleFormat("strikethrough"),o&&!u.hasFormat("italic")&&u.toggleFormat("italic"),l&&!u.hasFormat("underline")&&u.toggleFormat("underline"),a!=="sub"||u.hasFormat("subscript")||u.toggleFormat("subscript"),a!=="super"||u.hasFormat("superscript")||u.toggleFormat("superscript"),t&&!u.hasFormat(t)&&u.toggleFormat(t)),u)}class xc extends Dn{static getType(){return"tab"}static clone(t){return new xc(t.__key)}constructor(t){super(" ",t),this.__detail=2}static importDOM(){return null}createDOM(t){const e=super.createDOM(t),r=Wa(t.theme,"tab");return r!==void 0&&e.classList.add(...r),e}static importJSON(t){return ns().updateFromJSON(t)}setTextContent(t){return t!==" "&&t!==""&&kT(126),super.setTextContent(" ")}spliceText(t,e,r,s){return r===""&&e===0||r===" "&&e===1||pe(286),this}setDetail(t){return t!==2&&pe(127),this}setMode(t){return t!=="normal"&&pe(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function ns(){return Mt(new xc)}function Kn(n){return n instanceof xc}class f3{constructor(t,e,r){z(this,"key");z(this,"offset");z(this,"type");z(this,"_selection");this._selection=null,this.key=t,this.offset=e,this.type=r}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){return this.key===t.key?this.offset<t.offset:O_($r($s(this,"next")),$r($s(t,"next")))<0}getNode(){const t=me(this.key);return t===null&&pe(20),t}set(t,e,r,s){const i=this._selection,o=this.key;s&&this.key===t&&this.offset===e&&this.type===r||(this.key=t,this.offset=e,this.type=r,Jl()||(po()===o&&Un(t),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}}function Rn(n,t,e){return new f3(n,t,e)}function qm(n,t){let e=t.__key,r=n.offset,s="element";if(ie(t)){s="text";const i=t.getTextContentSize();r>i&&(r=i)}else if(!Y(t)){const i=t.getNextSibling();if(ie(i))e=i.__key,r=0,s="text";else{const o=t.getParent();o&&(e=o.__key,r=t.getIndexWithinParent()+1)}}n.set(e,r,s)}function nS(n,t){if(Y(t)){const e=t.getLastDescendant();Y(e)||ie(e)?qm(n,e):qm(n,t)}else qm(n,t)}class Og{constructor(t){z(this,"_nodes");z(this,"_cachedNodes");z(this,"dirty");this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!Gt(t))return!1;const e=this._nodes,r=t._nodes;return e.size===r.size&&Array.from(e).every(s=>r.has(s))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new Og(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const e=this.getNodes(),r=e.length,s=e[r-1];let i;if(ie(s))i=s.select();else{const o=s.getIndexWithinParent()+1;i=s.getParentOrThrow().select(o,o)}i.insertNodes(t);for(let o=0;o<r;o++)e[o].remove()}getNodes(){const t=this._cachedNodes;if(t!==null)return t;const e=this._nodes,r=[];for(const s of e){const i=me(s);i!==null&&r.push(i)}return Jl()||(this._cachedNodes=r),r}getTextContent(){const t=this.getNodes();let e="";for(let r=0;r<t.length;r++)e+=t[r].getTextContent();return e}deleteNodes(){const t=this.getNodes();if((G()||Yi())===this&&t[0]){const e=tn(t[0],"next");p0(Bi(e,e))}for(const e of t)e.remove()}}function H(n){return n instanceof Zl}class Zl{constructor(t,e,r,s){z(this,"format");z(this,"style");z(this,"anchor");z(this,"focus");z(this,"_cachedNodes");z(this,"dirty");this.anchor=t,this.focus=e,t._selection=this,e._selection=this,this._cachedNodes=null,this.format=r,this.style=s,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return!!H(t)&&this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(t!==null)return t;const e=(function(r){const s=[],[i,o]=r.getTextSlices();i&&s.push(i.caret.origin);const l=new Set,a=new Set;for(const u of r)if(rs(u)){const{origin:d}=u;s.length===0?l.add(d):(a.add(d),s.push(d))}else{const{origin:d}=u;Y(d)&&a.has(d)||s.push(d)}if(o&&s.push(o.caret.origin),Ol(r.focus)&&Y(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let u=as(r.focus.origin,"previous");rs(u)&&l.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(s[s.length-1]);u=rc(u))l.delete(u.origin),s.pop();for(;s.length>1;){const u=s[s.length-1];if(!Y(u)||a.has(u)||u.isEmpty()||l.has(u))break;s.pop()}if(s.length===0&&r.isCollapsed()){const u=$r(r.anchor),d=$r(r.anchor.getFlipped()),f=p=>Zs(p)?p.origin:p.getNodeAtCaret(),g=f(u)||f(d)||(r.anchor.getNodeAtCaret()?u.origin:d.origin);s.push(g)}return s})(m0(ky(this),"next"));return Jl()||(this._cachedNodes=e),e}setTextNodeRange(t,e,r,s){this.anchor.set(t.__key,e,"text"),this.focus.set(r.__key,s,"text")}getTextContent(){const t=this.getNodes();if(t.length===0)return"";const e=t[0],r=t[t.length-1],s=this.anchor,i=this.focus,o=s.isBefore(i),[l,a]=Ay(this);let u="",d=!0;for(let f=0;f<t.length;f++){const g=t[f];if(Y(g)&&!g.isInline())d||(u+=`
9
+ `),d=!g.isEmpty();else if(d=!1,ie(g)){let p=g.getTextContent();g===e?g===r?s.type==="element"&&i.type==="element"&&i.offset!==s.offset||(p=l<a?p.slice(l,a):p.slice(a,l)):p=o?p.slice(l):p.slice(a):g===r&&(p=o?p.slice(0,a):p.slice(0,l)),u+=p}else!tt(g)&&!St(g)||g===r&&this.isCollapsed()||(u+=g.getTextContent())}return u}applyDOMRange(t){const e=$t(),r=e.getEditorState()._selection,s=o_(t.startContainer,t.startOffset,t.endContainer,t.endOffset,e,r);if(s===null)return;const[i,o]=s;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(o.key,o.offset,o.type,!0),ko(this)}clone(){const t=this.anchor,e=this.focus;return new Zl(Rn(t.key,t.offset,t.type),Rn(e.key,e.offset,e.type),this.format,this.style)}toggleFormat(t){this.format=Ph(this.format,t,null),this.dirty=!0}setFormat(t){this.format=t,this.dirty=!0}setStyle(t){this.style=t,this.dirty=!0}hasFormat(t){const e=Ri[t];return(this.format&e)!==0}insertRawText(t){const e=t.split(/(\r?\n|\t)/),r=[],s=e.length;for(let i=0;i<s;i++){const o=e[i];o===`
10
+ `||o===`\r
11
+ `?r.push(dr()):o===" "?r.push(ns()):r.push($e(o))}this.insertNodes(r)}insertText(t){const e=this.anchor,r=this.focus,s=this.format,i=this.style;let o=e,l=r;!this.isCollapsed()&&r.isBefore(e)&&(o=r,l=e),o.type==="element"&&(function(b,x,C,v){const E=b.getNode(),N=E.getChildAtIndex(b.offset),S=$e();if(S.setFormat(C),S.setStyle(v),un(N))N.splice(0,0,[S]);else{const _=Zt(E)?we().append(S):S;N===null?E.append(_):N.insertBefore(_)}b.is(x)&&x.set(S.__key,0,"text"),b.set(S.__key,0,"text")})(o,l,s,i),l.type==="element"&&Ku(l,$r($s(l,"next")));const a=o.offset;let u=l.offset;const d=this.getNodes(),f=d.length;let g=d[0];ie(g)||pe(26);const p=g.getTextContent().length,m=g.getParentOrThrow();let y=d[f-1];if(f===1&&l.type==="element"&&(u=p,l.set(o.key,u,"text")),this.isCollapsed()&&a===p&&(Ps(g)||!g.canInsertTextAfter()||!m.canInsertTextAfter()&&g.getNextSibling()===null)){let b=g.getNextSibling();if(ie(b)&&b.canInsertTextBefore()&&!Ps(b)||(b=$e(),b.setFormat(s),b.setStyle(i),m.canInsertTextAfter()?g.insertAfter(b):m.insertAfter(b)),b.select(0,0),g=b,t!=="")return void this.insertText(t)}else if(this.isCollapsed()&&a===0&&(Ps(g)||!g.canInsertTextBefore()||!m.canInsertTextBefore()&&g.getPreviousSibling()===null)){let b=g.getPreviousSibling();if(ie(b)&&!Ps(b)||(b=$e(),b.setFormat(s),m.canInsertTextBefore()?g.insertBefore(b):m.insertBefore(b)),b.select(),g=b,t!=="")return void this.insertText(t)}else if(g.isSegmented()&&a!==p){const b=$e(g.getTextContent());b.setFormat(s),g.replace(b),g=b}else if(!this.isCollapsed()&&t!==""){const b=y.getParent();if(!m.canInsertTextBefore()||!m.canInsertTextAfter()||Y(b)&&(!b.canInsertTextBefore()||!b.canInsertTextAfter()))return this.insertText(""),i_(this.anchor,this.focus,null),void this.insertText(t)}if(f===1){if(yl(g)){const v=$e(t);return v.select(),void g.replace(v)}const b=g.getFormat(),x=g.getStyle();if(a!==u||b===s&&x===i){if(Kn(g)){const v=$e(t);return v.setFormat(s),v.setStyle(i),v.select(),void g.replace(v)}}else{if(g.getTextContent()!==""){const v=$e(t);if(v.setFormat(s),v.setStyle(i),v.select(),a===0)g.insertBefore(v,!1);else{const[E]=g.splitText(a);E.insertAfter(v,!1)}return void(v.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length))}g.setFormat(s),g.setStyle(i)}const C=u-a;g=g.spliceText(a,C,t,!0),g.getTextContent()===""?g.remove():this.anchor.type==="text"&&(g.isComposing()?this.anchor.offset-=t.length:(this.format=b,this.style=x))}else{const b=new Set([...g.getParentKeys(),...y.getParentKeys()]),x=Y(g)?g:g.getParentOrThrow();let C=Y(y)?y:y.getParentOrThrow(),v=y;if(!x.is(C)&&C.isInline())do v=C,C=C.getParentOrThrow();while(C.isInline());if(l.type==="text"&&(u!==0||y.getTextContent()==="")||l.type==="element"&&y.getIndexWithinParent()<u)if(ie(y)&&!yl(y)&&u!==y.getTextContentSize()){if(y.isSegmented()){const I=$e(y.getTextContent());y.replace(I),y=I}Zt(l.getNode())||l.type!=="text"||(y=y.spliceText(0,u,"")),b.add(y.__key)}else{const I=y.getParentOrThrow();I.canBeEmpty()||I.getChildrenSize()!==1?y.remove():I.remove()}else b.add(y.__key);const E=C.getChildren(),N=new Set(d),S=x.is(C),_=x.isInline()&&g.getNextSibling()===null?x:g;for(let I=E.length-1;I>=0;I--){const L=E[I];if(L.is(g)||Y(L)&&L.isParentOf(g))break;L.isAttached()&&(!N.has(L)||L.is(v)?S||_.insertAfter(L,!1):L.remove())}if(!S){let I=C,L=null;for(;I!==null;){const M=I.getChildren(),R=M.length;(R===0||M[R-1].is(L))&&(b.delete(I.__key),L=I),I=I.getParent()}}if(yl(g))if(a===p)g.select();else{const I=$e(t);I.select(),g.replace(I)}else g=g.spliceText(a,p-a,t,!0),g.getTextContent()===""?g.remove():g.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length);for(let I=1;I<f;I++){const L=d[I],M=L.__key;b.has(M)||L.remove()}}}removeText(){const t=G()===this;fh(this,P3(ky(this))),t&&G()!==this&&Ge(this)}formatText(t,e=null){if(this.isCollapsed())return this.toggleFormat(t),void Un(null);const r=this.getNodes(),s=[];for(const E of r)ie(E)&&s.push(E);const i=E=>{r.forEach(N=>{if(Y(N)){const S=N.getFormatFlags(t,E);N.setTextFormat(S)}})},o=s.length;if(o===0)return this.toggleFormat(t),Un(null),void i(e);const l=this.anchor,a=this.focus,u=this.isBackward(),d=u?a:l,f=u?l:a;let g=0,p=s[0],m=d.type==="element"?0:d.offset;if(d.type==="text"&&m===p.getTextContentSize()&&(g=1,p=s[1],m=0),p==null)return;const y=p.getFormatFlags(t,e);i(y);const b=o-1;let x=s[b];const C=f.type==="text"?f.offset:x.getTextContentSize();if(p.is(x)){if(m===C)return;if(Ps(p)||m===0&&C===p.getTextContentSize())p.setFormat(y);else{const E=p.splitText(m,C),N=m===0?E[0]:E[1];N.setFormat(y),d.type==="text"&&d.set(N.__key,0,"text"),f.type==="text"&&f.set(N.__key,C-m,"text")}return void(this.format=y)}m===0||Ps(p)||([,p]=p.splitText(m),m=0),p.setFormat(y);const v=x.getFormatFlags(t,y);C>0&&(C===x.getTextContentSize()||Ps(x)||([x]=x.splitText(C)),x.setFormat(v));for(let E=g+1;E<b;E++){const N=s[E],S=N.getFormatFlags(t,v);N.setFormat(S)}d.type==="text"&&d.set(p.__key,m,"text"),f.type==="text"&&f.set(x.__key,C,"text"),this.format=y|v}insertNodes(t){if(t.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const m=G();return H(m)||pe(134),m.insertNodes(t)}const e=(this.isBackward()?this.focus:this.anchor).getNode(),r=Se(e,Zr),s=t[t.length-1];if(Y(r)&&"__language"in r){if("__language"in t[0])this.insertText(t[0].getTextContent());else{const m=$m(this);r.splice(m,0,t),s.selectEnd()}return}if(!t.some(m=>(Y(m)||tt(m))&&!m.isInline())){Y(r)||pe(211,e.constructor.name,e.getType());const m=$m(this);return r.splice(m,0,t),void s.selectEnd()}const i=(function(m){const y=we();let b=null;for(let x=0;x<m.length;x++){const C=m[x],v=St(C);if(v||tt(C)&&C.isInline()||Y(C)&&C.isInline()||ie(C)||C.isParentRequired()){if(b===null&&(b=C.createParentElementNode(),y.append(b),v))continue;b!==null&&b.append(C)}else y.append(C),b=null}return y})(t),o=i.getLastDescendant(),l=i.getChildren(),a=!Y(r)||!r.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var f;Y(f=d)&&Zr(f)&&!f.isEmpty()&&Y(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(Y(r)||pe(211,e.constructor.name,e.getType()),r.append(...d.getChildren()),d=l[1]),d&&(r===null&&pe(212,e.constructor.name,e.getType()),(function(m,y){const b=y.getParentOrThrow().getLastChild();let x=y;const C=[y];for(;x!==b;)x.getNextSibling()||pe(140),x=x.getNextSibling(),C.push(x);let v=m;for(const E of C)v=v.insertAfter(E)})(r,d));const g=Se(o,Zr);a&&Y(g)&&(a.canMergeWhenEmpty()||Zr(u))&&(g.append(...a.getChildren()),a.remove()),Y(r)&&r.isEmpty()&&r.remove(),o.selectEnd();const p=Y(r)?r.getLastChild():null;St(p)&&g!==r&&p.remove()}insertParagraph(){if(this.anchor.key==="root"){const o=we();return xe().splice(this.anchor.offset,0,[o]),o.select(),o}const t=$m(this),e=Se(this.anchor.getNode(),Zr);Y(e)||pe(213);const r=e.getChildAtIndex(t),s=r?[r,...r.getNextSiblings()]:[],i=e.insertNewAfter(this,!1);return i?(i.append(...s),i.selectStart(),i):null}insertLineBreak(t){const e=dr();if(this.insertNodes([e]),t){const r=e.getParentOrThrow(),s=e.getIndexWithinParent();r.select(s,s)}}extract(){const t=[...this.getNodes()],e=t.length;let r=t[0],s=t[e-1];const[i,o]=Ay(this),l=this.isBackward(),[a,u]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,f]=l?[o,i]:[i,o];if(e===0)return[];if(e===1){if(ie(r)&&!this.isCollapsed()){const g=r.splitText(d,f),p=d===0?g[0]:g[1];return p?(a.set(p.getKey(),0,"text"),u.set(p.getKey(),p.getTextContentSize(),"text"),[p]):[]}return[r]}if(ie(r)&&(d===r.getTextContentSize()?t.shift():d!==0&&([,r]=r.splitText(d),t[0]=r,a.set(r.getKey(),0,"text"))),ie(s)){const g=s.getTextContent().length;f===0?t.pop():f!==g&&([s]=s.splitText(f),t[t.length-1]=s,u.set(s.getKey(),s.getTextContentSize(),"text"))}return t}modify(t,e,r){if(uS(this,t,e,r))return;const s=t==="move",i=$t(),o=ls(os(i));if(!o)return;const l=i._blockCursorElement,a=i._rootElement,u=this.focus.getNode();if(a===null||l===null||!Y(u)||u.isInline()||u.canBeEmpty()||vy(l,i,a),this.dirty){let d=Ll(i,this.anchor.key),f=Ll(i,this.focus.key);this.anchor.type==="text"&&(d=nc(d)),this.focus.type==="text"&&(f=nc(f)),d&&f&&a_(o,d,this.anchor.offset,f,this.focus.offset)}if((function(d,f,g,p){d.modify(f,g,p)})(o,t,e?"backward":"forward",r),o.rangeCount>0){const d=o.getRangeAt(0),f=this.anchor.getNode(),g=Zt(f)?f:E3(f);if(this.applyDOMRange(d),this.dirty=!0,!s){const p=this.getNodes(),m=[];let y=!1;for(let b=0;b<p.length;b++){const x=p[b];Cy(x,g)?m.push(x):y=!0}if(y&&m.length>0)if(e){const b=m[0];Y(b)?b.selectStart():b.getParentOrThrow().selectStart()}else{const b=m[m.length-1];Y(b)?b.selectEnd():b.getParentOrThrow().selectEnd()}o.anchorNode===d.startContainer&&o.anchorOffset===d.startOffset||(function(b){const x=b.focus,C=b.anchor,v=C.key,E=C.offset,N=C.type;C.set(x.key,x.offset,x.type,!0),x.set(v,E,N,!0)})(this)}}r==="lineboundary"&&uS(this,t,e,r,"decorators")}forwardDeletion(t,e,r){if(!r&&(t.type==="element"&&Y(e)&&t.offset===e.getChildrenSize()||t.type==="text"&&t.offset===e.getTextContentSize())){const s=e.getParent(),i=e.getNextSibling()||(s===null?null:s.getNextSibling());if(Y(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(t){const e=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let s=r.getNode();if(this.forwardDeletion(r,s,t))return;const i=h0($s(r,t?"previous":"next"));if(i.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const a of i.iterNodeCarets("shadowRoot"))if(rs(a)){if(!a.origin.isInline()){if(a.origin.isShadowRoot()){if(l.type==="merge-block")break;if(Y(i.anchor.origin)&&i.anchor.origin.isEmpty()){const u=$r(a);fh(this,Bi(u,u)),i.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:a,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(Ol(a)){if(Y(a.origin)){if(a.origin.isInline()){if(!a.origin.isParentOf(i.anchor.origin))break}else l={block:a.origin,type:"merge-next-block"};continue}if(tt(a.origin)){if(!a.origin.isIsolated())if(l.type==="merge-next-block"&&(a.origin.isKeyboardSelectable()||!a.origin.isInline())&&Y(i.anchor.origin)&&i.anchor.origin.isEmpty()){i.anchor.origin.remove();const u=Rg();u.add(a.origin.getKey()),Ge(u)}else a.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:a,block:u}=l;return fh(this,Bi(!a.origin.isEmpty()&&u.isEmpty()?Ad(tn(u,a.direction)):i.anchor,a)),this.removeText()}}const o=this.focus;if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&r.offset===0&&sS(this,r.getNode()))return}else{const l=o.type==="text"?o.getNode():null;if(s=r.type==="text"?r.getNode():null,l!==null&&l.isSegmented()){const a=o.offset,u=l.getTextContentSize();if(l.is(s)||t&&a!==u||!t&&a!==0)return void iS(l,t,a)}else if(s!==null&&s.isSegmented()){const a=r.offset,u=s.getTextContentSize();if(s.is(l)||t&&a!==0||!t&&a!==u)return void iS(s,t,a)}(function(a,u){const d=a.anchor,f=a.focus,g=d.getNode(),p=f.getNode();if(g===p&&d.type==="text"&&f.type==="text"){const m=d.offset,y=f.offset,b=m<y,x=b?m:y,C=b?y:m,v=C-1;x!==v&&(function(E){return!(v_(E)||h3(E))})(g.getTextContent().slice(x,C))&&(u?f.set(f.key,v,f.type):d.set(d.key,v,d.type))}})(this,t)}}if(this.removeText(),t&&!e&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&Zt(r.getParent())&&r.getPreviousSibling()===null&&sS(this,r)}}deleteLine(t){this.isCollapsed()&&this.modify("extend",t,"lineboundary"),this.isCollapsed()?this.deleteCharacter(t):this.removeText()}deleteWord(t){if(this.isCollapsed()){const e=this.anchor,r=e.getNode();if(this.forwardDeletion(e,r,t))return;this.modify("extend",t,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Gt(n){return n instanceof Og}function rS(n){const t=n.offset;if(n.type==="text")return t;const e=n.getNode();return t===e.getChildrenSize()?e.getTextContent().length:0}function Ay(n){const t=n.getStartEndPoints();if(t===null)return[0,0];const[e,r]=t;return e.type==="element"&&r.type==="element"&&e.key===r.key&&e.offset===r.offset?[0,0]:[rS(e),rS(r)]}function sS(n,t){for(let e=t;e;e=e.getParent()){if(Y(e)){if(e.collapseAtStart(n))return!0;if($n(e))break}if(e.getPreviousSibling())break}return!1}const h3=(()=>{try{const n=new RegExp("\\p{Emoji}","u"),t=n.test.bind(n);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch{}return()=>!1})();function iS(n,t,e){const r=n,s=r.getTextContent().split(/(?=\s)/g),i=s.length;let o=0,l=0;for(let u=0;u<i;u++){const d=u===i-1;if(l=o,o+=s[u].length,t&&o===e||o>e||d){s.splice(u,1),d&&(l=void 0);break}}const a=s.join("").trim();a===""?r.remove():(r.setTextContent(a),r.select(l,l))}function oS(n,t,e,r){let s,i=t;if(Et(n)){let o=!1;const l=n.childNodes,a=l.length,u=r._blockCursorElement;i===a&&(o=!0,i=a-1);let d=l[i],f=!1;if(d===u)d=l[i+1],f=!0;else if(u!==null){const g=u.parentNode;n===g&&t>Array.prototype.indexOf.call(g.children,u)&&i--}if(s=Ba(d),ie(s))i=Js(s,o?"next":"previous");else{let g=Ba(n);if(g===null)return null;if(Y(g)){const p=r.getElementByKey(g.getKey());p===null&&pe(214),[g,i]=g.getDOMSlot(p).resolveChildIndex(g,p,n,t),Y(g)||pe(215),o&&i>=g.getChildrenSize()&&(i=Math.max(0,g.getChildrenSize()-1));let y=g.getChildAtIndex(i);if(Y(y)&&(function(b,x,C){const v=b.getParent();return C===null||v===null||!v.canBeEmpty()||v!==C.getNode()})(y,0,e)){const b=o?y.getLastDescendant():y.getFirstDescendant();b===null?g=y:(y=b,g=Y(y)?y:y.getParentOrThrow()),i=0}ie(y)?(s=y,g=null,i=Js(y,o?"next":"previous")):y!==g&&o&&!f&&(Y(g)||pe(216),i=Math.min(g.getChildrenSize(),i+1))}else{const p=g.getIndexWithinParent();i=t===0&&tt(g)&&Ba(n)===g?p:p+1,g=g.getParentOrThrow()}if(Y(g))return Rn(g.__key,i,"element")}}else s=Ba(n);return ie(s)?Rn(s.__key,Js(s,i,"clamp"),"text"):null}function lS(n,t,e){const r=n.offset,s=n.getNode();if(r===0){const i=s.getPreviousSibling(),o=s.getParent();if(t){if((e||!t)&&i===null&&Y(o)&&o.isInline()){const l=o.getPreviousSibling();ie(l)&&n.set(l.__key,l.getTextContent().length,"text")}}else Y(i)&&!e&&i.isInline()?n.set(i.__key,i.getChildrenSize(),"element"):ie(i)&&n.set(i.__key,i.getTextContent().length,"text")}else if(r===s.getTextContent().length){const i=s.getNextSibling(),o=s.getParent();if(t&&Y(i)&&i.isInline())n.set(i.__key,0,"element");else if((e||t)&&i===null&&Y(o)&&o.isInline()&&!o.canInsertTextAfter()){const l=o.getNextSibling();ie(l)&&n.set(l.__key,0,"text")}}}function i_(n,t,e){if(n.type==="text"&&t.type==="text"){const r=n.isBefore(t),s=n.is(t);lS(n,r,s),lS(t,!r,s),s&&t.set(n.key,n.offset,n.type);const i=$t();if(i.isComposing()&&i._compositionKey!==n.key&&H(e)){const o=e.anchor,l=e.focus;n.set(o.key,o.offset,o.type,!0),t.set(l.key,l.offset,l.type,!0)}}}function o_(n,t,e,r,s,i){if(n===null||e===null||!gd(s,n,e))return null;const o=oS(n,t,H(i)?i.anchor:null,s);if(o===null)return null;const l=oS(e,r,H(i)?i.focus:null,s);if(l===null)return null;if(o.type==="element"&&l.type==="element"){const a=Ba(n),u=Ba(e);if(tt(a)&&tt(u))return null}return i_(o,l,i),[o,l]}function yy(n){return Y(n)&&!n.isInline()}function l_(n,t,e,r,s,i){const o=Ho(),l=new Zl(Rn(n,t,s),Rn(e,r,i),0,"");return l.dirty=!0,o._selection=l,l}function ii(){const n=Rn("root",0,"element"),t=Rn("root",0,"element");return new Zl(n,t,0,"")}function Rg(){return new Og(new Set)}function g3(n,t){return Pg(null,n,t,null)}function Pg(n,t,e,r){const s=e._window;if(s===null)return null;const i=r||s.event,o=i?i.type:void 0,l=o==="selectionchange",a=!ey&&(l||o==="beforeinput"||o==="compositionstart"||o==="compositionend"||o==="click"&&i&&i.detail===3||o==="drop"||o===void 0);let u,d,f,g;if(H(n)&&!a)return n.clone();if(t===null)return null;if(u=t.anchorNode,d=t.focusNode,f=t.anchorOffset,g=t.focusOffset,(l||o===void 0)&&H(n)&&!gd(e,u,d))return n.clone();const p=o_(u,f,d,g,e,n);if(p===null)return null;const[m,y]=p;return new Zl(m,y,H(n)?n.format:0,H(n)?n.style:"")}function G(){return Ho()._selection}function Yi(){return $t()._editorState._selection}function Oh(n,t,e,r=1){const s=n.anchor,i=n.focus,o=s.getNode(),l=i.getNode();if(!t.is(o)&&!t.is(l))return;const a=t.__key;if(n.isCollapsed()){const u=s.offset;if(e<=u&&r>0||e<u&&r<0){const d=Math.max(0,u+r);s.set(a,d,"element"),i.set(a,d,"element"),aS(n)}}else{const u=n.isBackward(),d=u?i:s,f=d.getNode(),g=u?s:i,p=g.getNode();if(t.is(f)){const m=d.offset;(e<=m&&r>0||e<m&&r<0)&&d.set(a,Math.max(0,m+r),"element")}if(t.is(p)){const m=g.offset;(e<=m&&r>0||e<m&&r<0)&&g.set(a,Math.max(0,m+r),"element")}}aS(n)}function aS(n){const t=n.anchor,e=t.offset,r=n.focus,s=r.offset,i=t.getNode(),o=r.getNode();if(n.isCollapsed()){if(!Y(i))return;const l=i.getChildrenSize(),a=e>=l,u=a?i.getChildAtIndex(l-1):i.getChildAtIndex(e);if(ie(u)){let d=0;a&&(d=u.getTextContentSize()),t.set(u.__key,d,"text"),r.set(u.__key,d,"text")}return}if(Y(i)){const l=i.getChildrenSize(),a=e>=l,u=a?i.getChildAtIndex(l-1):i.getChildAtIndex(e);if(ie(u)){let d=0;a&&(d=u.getTextContentSize()),t.set(u.__key,d,"text")}}if(Y(o)){const l=o.getChildrenSize(),a=s>=l,u=a?o.getChildAtIndex(l-1):o.getChildAtIndex(s);if(ie(u)){let d=0;a&&(d=u.getTextContentSize()),r.set(u.__key,d,"text")}}}function Rh(n,t,e,r,s){let i=null,o=0,l=null;r!==null?(i=r.__key,ie(r)?(o=r.getTextContentSize(),l="text"):Y(r)&&(o=r.getChildrenSize(),l="element")):s!==null&&(i=s.__key,ie(s)?l="text":Y(s)&&(l="element")),i!==null&&l!==null?n.set(i,o,l):(o=t.getIndexWithinParent(),o===-1&&(o=e.getChildrenSize()),n.set(e.__key,o,"element"))}function cS(n,t,e,r,s){n.type==="text"?n.set(e,n.offset+(t?0:s),"text"):n.offset>r.getIndexWithinParent()&&n.set(n.key,n.offset-1,"element")}function a_(n,t,e,r,s){try{n.setBaseAndExtent(t,e,r,s)}catch{}}function p3(n,t,e,r,s,i,o){const l=r.anchorNode,a=r.focusNode,u=r.anchorOffset,d=r.focusOffset,f=document.activeElement;if(s.has(dd)&&f!==i||f!==null&&e0(f))return;if(!H(t))return void(n!==null&&gd(e,l,a)&&r.removeAllRanges());const g=t.anchor,p=t.focus,m=g.key,y=p.key,b=Ll(e,m),x=Ll(e,y),C=g.offset,v=p.offset,E=t.format,N=t.style,S=t.isCollapsed();let _=b,I=x,L=!1;if(g.type==="text"){_=nc(b);const V=g.getNode();L=V.getFormat()!==E||V.getStyle()!==N}else H(n)&&n.anchor.type==="text"&&(L=!0);var M,R,F,j,U;if(p.type==="text"&&(I=nc(x)),_!==null&&I!==null&&(S&&(n===null||L||H(n)&&(n.format!==E||n.style!==N))&&(M=E,R=N,F=C,j=m,U=performance.now(),VT=[M,R,F,j,U]),u!==C||d!==v||l!==_||a!==I||r.type==="Range"&&S||(f!==null&&i.contains(f)||s.has(i3)||i.focus({preventScroll:!0}),g.type==="element"))){if(a_(r,_,C,I,v),!s.has(n_)&&t.isCollapsed()&&i!==null&&i===document.activeElement){const V=H(t)&&t.anchor.type==="element"?_.childNodes[C]||null:r.rangeCount>0?r.getRangeAt(0):null;if(V!==null){let ne;if(V instanceof Text){const ae=document.createRange();ae.selectNode(V),ne=ae.getBoundingClientRect()}else ne=V.getBoundingClientRect();(function(ae,re,ee){const se=__(ee),q=o0(se);if(se===null||q===null)return;let{top:W,bottom:J}=re,te=0,le=0,ce=ee;for(;ce!==null;){const de=ce===se.body;if(de)te=0,le=os(ae).innerHeight;else{const ke=ce.getBoundingClientRect();te=ke.top,le=ke.bottom}let Ae=0;if(W<te?Ae=-(te-W):J>le&&(Ae=J-le),Ae!==0)if(de)q.scrollBy(0,Ae);else{const ke=ce.scrollTop;ce.scrollTop+=Ae;const ye=ce.scrollTop-ke;W-=ye,J-=ye}if(de)break;ce=md(ce)}})(e,ne,i)}}gy=!0}}function vc(n){let t=G()||Yi();t===null&&(t=xe().selectEnd()),t.insertNodes(n)}function $m(n){let t=n;n.isCollapsed()||t.removeText();const e=G();H(e)&&(t=e),H(t)||pe(161);const r=t.anchor;let s=r.getNode(),i=r.offset;for(;!Zr(s);){const o=s;if([s,i]=m3(s,i),o.is(s))break}return i}function m3(n,t){const e=n.getParent();if(!e){const s=we();return xe().append(s),s.select(),[xe(),0]}if(ie(n)){const s=n.splitText(t);if(s.length===0)return[e,n.getIndexWithinParent()];const i=t===0?0:1;return[e,s[0].getIndexWithinParent()+i]}if(!Y(n)||t===0)return[e,n.getIndexWithinParent()];const r=n.getChildAtIndex(t);if(r){const s=new Zl(Rn(n.__key,t,"element"),Rn(n.__key,t,"element"),0,""),i=n.insertNewAfter(s);i&&i.append(r,...r.getNextSiblings())}return[e,n.getIndexWithinParent()+1]}function uS(n,t,e,r,s="decorators-and-blocks"){if(t==="move"&&r==="character"&&!n.isCollapsed()){const[d,f]=e===n.isBackward()?[n.focus,n.anchor]:[n.anchor,n.focus];return f.set(d.key,d.offset,d.type),!0}const i=$s(n.focus,e?"previous":"next"),o=r==="lineboundary",l=t==="move";let a=i,u=s==="decorators-and-blocks";if(!P_(a)){for(const d of a){u=!1;const{origin:f}=d;if(!tt(f)||f.isIsolated()||(a=d,!o||!f.isInline()))break}if(u)for(const d of h0(i).iterNodeCarets(t==="extend"?"shadowRoot":"root")){if(rs(d))d.origin.isInline()||(a=d);else{if(Y(d.origin))continue;tt(d.origin)&&!d.origin.isInline()&&(a=d)}break}}if(a===i)return!1;if(l&&!o&&tt(a.origin)&&a.origin.isKeyboardSelectable()){const d=Rg();return d.add(a.origin.getKey()),Ge(d),!0}return a=$r(a),l&&Ku(n.anchor,a),Ku(n.focus,a),u||!o}let Ln=null,Mn=null,Cr=!1,eA=!1,uh=0;const dS={characterData:!0,childList:!0,subtree:!0};function Jl(){return Cr||Ln!==null&&Ln._readOnly}function In(){Cr&&pe(13)}function c_(){uh>99&&pe(14)}function Ho(){return Ln===null&&pe(195,u_()),Ln}function $t(){return Mn===null&&pe(196,u_()),Mn}function u_(){let n=0;const t=new Set,e=Il.version;if(typeof window<"u")for(const s of document.querySelectorAll("[contenteditable]")){const i=Fg(s);if(t0(i))n++;else if(i){let o=String(i.constructor.version||"<0.17.1");o===e&&(o+=" (separately built, likely a bundler configuration issue)"),t.add(o)}}let r=` Detected on the page: ${n} compatible editor(s) with version ${e}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function A3(){return Mn}function fS(n,t,e){const r=t.__type,s=m_(n,r);let i=e.get(r);i===void 0&&(i=Array.from(s.transforms),e.set(r,i));const o=i.length;for(let l=0;l<o&&(i[l](t),t.isAttached());l++);}function hS(n,t){return n!==void 0&&n.__key!==t&&n.isAttached()}function d_(n,t){if(!t)return;const e=n._updateTags;let r=t;Array.isArray(t)||(r=[t]);for(const s of r)e.add(s)}function bo(n){return Qb(n,$t()._nodes)}function Qb(n,t){const e=n.type,r=t.get(e);r===void 0&&pe(17,e);const s=r.klass;n.type!==s.getType()&&pe(18,s.name);const i=s.importJSON(n),o=n.children;if(Y(i)&&Array.isArray(o))for(let l=0;l<o.length;l++){const a=Qb(o[l],t);i.append(a)}return i}function gS(n,t,e){const r=Ln,s=Cr,i=Mn;Ln=t,Cr=!0,Mn=n;try{return e()}finally{Ln=r,Cr=s,Mn=i}}function Ti(n,t){const e=n._pendingEditorState,r=n._rootElement,s=n._headless||r===null;if(e===null)return;const i=n._editorState,o=i._selection,l=e._selection,a=n._dirtyType!==0,u=Ln,d=Cr,f=Mn,g=n._updating,p=n._observer;let m=null;if(n._pendingEditorState=null,n._editorState=e,!s&&a&&p!==null){Mn=n,Ln=e,Cr=!1,n._updating=!0;try{const S=n._dirtyType,_=n._dirtyElements,I=n._dirtyLeaves;p.disconnect(),m=$4(i,e,n,S,_,I)}catch(S){if(S instanceof Error&&n._onError(S),eA)throw S;return g_(n,null,r,e),RT(n),n._dirtyType=2,eA=!0,Ti(n,i),void(eA=!1)}finally{p.observe(r,dS),n._updating=g,Ln=u,Cr=d,Mn=f}}e._readOnly||(e._readOnly=!0);const y=n._dirtyLeaves,b=n._dirtyElements,x=n._normalizedNodes,C=n._updateTags,v=n._deferred;a&&(n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements=new Map,n._normalizedNodes=new Set,n._updateTags=new Set),(function(S,_){const I=S._decorators;let L=S._pendingDecorators||I;const M=_._nodeMap;let R;for(R in L)M.has(R)||(L===I&&(L=C_(S)),delete L[R])})(n,e);const E=s?null:ls(os(n));if(n._editable&&E!==null&&(a||l===null||l.dirty||!l.is(o))&&r!==null&&!C.has(s3)){Mn=n,Ln=e;try{if(p!==null&&p.disconnect(),a||l===null||l.dirty){const S=n._blockCursorElement;S!==null&&vy(S,n,r),p3(o,l,n,E,C,r)}(function(S,_,I){let L=S._blockCursorElement;if(H(I)&&I.isCollapsed()&&I.anchor.type==="element"&&_.contains(document.activeElement)){const M=I.anchor,R=M.getNode(),F=M.offset;let j=!1,U=null;if(F===R.getChildrenSize())nA(R.getChildAtIndex(F-1))&&(j=!0);else{const V=R.getChildAtIndex(F);if(V!==null&&nA(V)){const ne=V.getPreviousSibling();(ne===null||nA(ne))&&(j=!0,U=S.getElementByKey(V.__key))}}if(j){const V=S.getElementByKey(R.__key);return L===null&&(S._blockCursorElement=L=(function(ne){const ae=ne.theme,re=document.createElement("div");re.contentEditable="false",re.setAttribute("data-lexical-cursor","true");let ee=ae.blockCursor;if(ee!==void 0){if(typeof ee=="string"){const se=_T(ee);ee=ae.blockCursor=se}ee!==void 0&&re.classList.add(...ee)}return re})(S._config)),_.style.caretColor="transparent",void(U===null?V.appendChild(L):V.insertBefore(L,U))}}L!==null&&vy(L,S,_)})(n,r,l)}finally{p!==null&&p.observe(r,dS),Mn=f,Ln=u}}m!==null&&(function(S,_,I,L,M){const R=Array.from(S._listeners.mutation),F=R.length;for(let j=0;j<F;j++){const[U,V]=R[j];for(const ne of V){const ae=_.get(ne);ae!==void 0&&U(ae,{dirtyLeaves:L,prevEditorState:M,updateTags:I})}}})(n,m,C,y,i),H(l)||l===null||o!==null&&o.is(l)||n.dispatchCommand(Xr,void 0);const N=n._pendingDecorators;N!==null&&(n._decorators=N,n._pendingDecorators=null,vu("decorator",n,!0,N)),(function(S,_,I){const L=bS(_),M=bS(I);L!==M&&vu("textcontent",S,!0,M)})(n,t||i,e),vu("update",n,!0,{dirtyElements:b,dirtyLeaves:y,editorState:e,mutatedNodes:m,normalizedNodes:x,prevEditorState:t||i,tags:C}),(function(S,_){if(S._deferred=[],_.length!==0){const I=S._updating;S._updating=!0;try{for(let L=0;L<_.length;L++)_[L]()}finally{S._updating=I}}})(n,v),(function(S){const _=S._updates;if(_.length!==0){const I=_.shift();if(I){const[L,M]=I;Bg(S,L,M)}}})(n)}function vu(n,t,e,...r){const s=t._updating;t._updating=e;try{const i=Array.from(t._listeners[n]);for(let o=0;o<i.length;o++)i[o].apply(null,r)}finally{t._updating=s}}function pS(n,t){const e=n._updates;let r=t||!1;for(;e.length!==0;){const s=e.shift();if(s){const[i,o]=s,l=n._pendingEditorState;let a;o!==void 0&&(a=o.onUpdate,o.skipTransforms&&(r=!0),o.discrete&&(l===null&&pe(191),l._flushSync=!0),a&&n._deferred.push(a),d_(n,o.tag)),l==null?Bg(n,i,o):i()}}return r}function Bg(n,t,e){const r=n._updateTags;let s,i=!1,o=!1;e!==void 0&&(s=e.onUpdate,d_(n,e.tag),i=e.skipTransforms||!1,o=e.discrete||!1),s&&n._deferred.push(s);const l=n._editorState;let a=n._pendingEditorState,u=!1;(a===null||a._readOnly)&&(a=n._pendingEditorState=f_(a||l),u=!0),a._flushSync=o;const d=Ln,f=Cr,g=Mn,p=n._updating;Ln=a,Cr=!1,n._updating=!0,Mn=n;const m=n._headless||n.getRootElement()===null;$b(null);try{u&&(m?l._selection!==null&&(a._selection=l._selection.clone()):a._selection=(function(C,v){const E=C.getEditorState()._selection,N=ls(os(C));return H(E)||E==null?Pg(E,N,C,v):E.clone()})(n,e&&e.event||null));const b=n._compositionKey;t(),i=pS(n,i),(function(C,v){const E=v.getEditorState()._selection,N=C._selection;if(H(N)){const S=N.anchor,_=N.focus;let I;if(S.type==="text"&&(I=S.getNode(),I.selectionTransform(E,N)),_.type==="text"){const L=_.getNode();I!==L&&L.selectionTransform(E,N)}}})(a,n),n._dirtyType!==0&&(i?(function(C,v){const E=v._dirtyLeaves,N=C._nodeMap;for(const S of E){const _=N.get(S);ie(_)&&_.isAttached()&&_.isSimpleText()&&!_.isUnmergeable()&&Yv(_)}})(a,n):(function(C,v){const E=v._dirtyLeaves,N=v._dirtyElements,S=C._nodeMap,_=po(),I=new Map;let L=E,M=L.size,R=N,F=R.size;for(;M>0||F>0;){if(M>0){v._dirtyLeaves=new Set;for(const j of L){const U=S.get(j);ie(U)&&U.isAttached()&&U.isSimpleText()&&!U.isUnmergeable()&&Yv(U),U!==void 0&&hS(U,_)&&fS(v,U,I),E.add(j)}if(L=v._dirtyLeaves,M=L.size,M>0){uh++;continue}}v._dirtyLeaves=new Set,v._dirtyElements=new Map,R.delete("root")&&R.set("root",!0);for(const j of R){const U=j[0],V=j[1];if(N.set(U,V),!V)continue;const ne=S.get(U);ne!==void 0&&hS(ne,_)&&fS(v,ne,I)}L=v._dirtyLeaves,M=L.size,R=v._dirtyElements,F=R.size,uh++}v._dirtyLeaves=E,v._dirtyElements=N})(a,n),pS(n),(function(C,v,E,N){const S=C._nodeMap,_=v._nodeMap,I=[];for(const[L]of N){const M=_.get(L);M!==void 0&&(M.isAttached()||(Y(M)&&MT(M,L,S,_,I,N),S.has(L)||N.delete(L),I.push(L)))}for(const L of I)_.delete(L);for(const L of E){const M=_.get(L);M===void 0||M.isAttached()||(S.has(L)||E.delete(L),_.delete(L))}})(l,a,n._dirtyLeaves,n._dirtyElements)),b!==n._compositionKey&&(a._flushSync=!0);const x=a._selection;if(H(x)){const C=a._nodeMap,v=x.anchor.key,E=x.focus.key;C.get(v)!==void 0&&C.get(E)!==void 0||pe(19)}else Gt(x)&&x._nodes.size===0&&(a._selection=null)}catch(b){return b instanceof Error&&n._onError(b),n._pendingEditorState=l,n._dirtyType=2,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),void Ti(n)}finally{Ln=d,Cr=f,Mn=g,n._updating=p,uh=0}n._dirtyType!==0||n._deferred.length>0||(function(b,x){const C=x.getEditorState()._selection,v=b._selection;if(v!==null){if(v.dirty||!v.is(C))return!0}else if(C!==null)return!0;return!1})(a,n)?a._flushSync?(a._flushSync=!1,Ti(n)):u&&C3(()=>{Ti(n)}):(a._flushSync=!1,u&&(r.clear(),n._deferred=[],n._pendingEditorState=null))}function Ir(n,t,e){Mn===n&&e===void 0?t():Bg(n,t,e)}class Su{constructor(t,e,r){z(this,"element");z(this,"before");z(this,"after");this.element=t,this.before=e||null,this.after=r||null}withBefore(t){return new Su(this.element,t,this.after)}withAfter(t){return new Su(this.element,this.before,t)}withElement(t){return this.element===t?this:new Su(t,this.before,this.after)}insertChild(t){const e=this.before||this.getManagedLineBreak();return e!==null&&e.parentElement!==this.element&&pe(222),this.element.insertBefore(t,e),this}removeChild(t){return t.parentElement!==this.element&&pe(223),this.element.removeChild(t),this}replaceChild(t,e){return e.parentElement!==this.element&&pe(224),this.element.replaceChild(t,e),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(t===null)this.removeManagedLineBreak();else{const e=t==="decorator"&&(ju||ec||Bu);this.insertManagedLineBreak(e)}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const e=this.element,r=t.nodeName==="IMG"?t.nextSibling:null;r&&e.removeChild(r),e.removeChild(t),e.__lexicalLineBreak=void 0}}insertManagedLineBreak(t){const e=this.getManagedLineBreak();if(e){if(t===(e.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,s=this.before,i=document.createElement("br");if(r.insertBefore(i,s),t){const o=document.createElement("img");o.setAttribute("data-lexical-linebreak","true"),o.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",o.alt="",r.insertBefore(o,i),r.__lexicalLineBreak=o}else r.__lexicalLineBreak=i}getFirstChildOffset(){let t=0;for(let e=this.after;e!==null;e=e.previousSibling)t++;return t}resolveChildIndex(t,e,r,s){if(r===this.element){const a=this.getFirstChildOffset();return[t,Math.min(a+t.getChildrenSize(),Math.max(a,s))]}const i=mS(e,r);i.push(s);const o=mS(e,this.element);let l=t.getIndexWithinParent();for(let a=0;a<o.length;a++){const u=i[a],d=o[a];if(u===void 0||u<d)break;if(u>d){l+=1;break}}return[t.getParentOrThrow(),l]}}function mS(n,t){const e=[];let r=t;for(;r!==n&&r!==null;r=r.parentNode){let s=0;for(let i=r.previousSibling;i!==null;i=i.previousSibling)s++;e.push(s)}return r!==n&&pe(225),e.reverse()}class gt extends ws{constructor(e){super(e);z(this,"__first");z(this,"__last");z(this,"__size");z(this,"__format");z(this,"__style");z(this,"__indent");z(this,"__dir");z(this,"__textFormat");z(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return U4[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let r=this.getFirstChild();for(;r!==null;)e.push(r),r=r.getNextSibling();return e}getChildrenKeys(){const e=[];let r=this.getFirstChild();for(;r!==null;)e.push(r.__key),r=r.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const e=$t()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(e)}getAllTextNodes(){const e=[];let r=this.getFirstChild();for(;r!==null;){if(ie(r)&&e.push(r),Y(r)){const s=r.getAllTextNodes();e.push(...s)}r=r.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;Y(e);){const r=e.getFirstChild();if(r===null)break;e=r}return e}getLastDescendant(){let e=this.getLastChild();for(;Y(e);){const r=e.getLastChild();if(r===null)break;e=r}return e}getDescendantByIndex(e){const r=this.getChildren(),s=r.length;if(e>=s){const o=r[s-1];return Y(o)&&o.getLastDescendant()||o||null}const i=r[e];return Y(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const e=this.getLatest().__first;return e===null?null:me(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return e===null&&pe(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return e===null?null:me(e)}getLastChildOrThrow(){const e=this.getLastChild();return e===null&&pe(96,this.__key),e}getChildAtIndex(e){const r=this.getChildrenSize();let s,i;if(e<r/2){for(s=this.getFirstChild(),i=0;s!==null&&i<=e;){if(i===e)return s;s=s.getNextSibling(),i++}return null}for(s=this.getLastChild(),i=r-1;s!==null&&i>=e;){if(i===e)return s;s=s.getPreviousSibling(),i--}return null}getTextContent(){let e="";const r=this.getChildren(),s=r.length;for(let i=0;i<s;i++){const o=r[i];e+=o.getTextContent(),Y(o)&&i!==s-1&&!o.isInline()&&(e+=Eo)}return e}getTextContentSize(){let e=0;const r=this.getChildren(),s=r.length;for(let i=0;i<s;i++){const o=r[i];e+=o.getTextContentSize(),Y(o)&&i!==s-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(e!==""){const r=Bv[e];return(this.getFormat()&r)!==0}return!1}hasTextFormat(e){const r=Ri[e];return(this.getTextFormat()&r)!==0}getFormatFlags(e,r){return Ph(this.getLatest().__textFormat,e,r)}getTextStyle(){return this.getLatest().__textStyle}select(e,r){In();const s=G();let i=e,o=r;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&r===0){const u=this.getFirstChild();if(ie(u)||Y(u))return u.select(0,0)}else if(!(e!==void 0&&e!==l||r!==void 0&&r!==l)){const u=this.getLastChild();if(ie(u)||Y(u))return u.select()}}i===void 0&&(i=l),o===void 0&&(o=l);const a=this.__key;return H(s)?(s.anchor.set(a,i,"element"),s.focus.set(a,o,"element"),s.dirty=!0,s):l_(a,i,a,o,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach(r=>r.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const r=this.getWritable();return r.__dir=e,r}setFormat(e){return this.getWritable().__format=e!==""?Bv[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){const r=this.getWritable();return r.__textFormat=e,r}setTextStyle(e){const r=this.getWritable();return r.__textStyle=e,r}setIndent(e){return this.getWritable().__indent=e,this}splice(e,r,s){Dh(this)&&pe(324,this.__key,this.__type);const i=this.getChildrenSize(),o=this.getWritable();e+r<=i||pe(226,String(e),String(r),String(i));const l=o.__key,a=[],u=[],d=this.getChildAtIndex(e+r);let f=null,g=i-r+s.length;if(e!==0)if(e===i)f=this.getLastChild();else{const m=this.getChildAtIndex(e);m!==null&&(f=m.getPreviousSibling())}if(r>0){let m=f===null?this.getFirstChild():f.getNextSibling();for(let y=0;y<r;y++){m===null&&pe(100);const b=m.getNextSibling(),x=m.__key;Li(m.getWritable()),u.push(x),m=b}}let p=f;for(const m of s){p!==null&&m.is(p)&&(f=p=p.getPreviousSibling());const y=m.getWritable();y.__parent===l&&g--,Li(y);const b=m.__key;if(p===null)o.__first=b,y.__prev=null;else{const x=p.getWritable();x.__next=b,y.__prev=x.__key}m.__key===l&&pe(76),y.__parent=l,a.push(b),p=m}if(e+r===i)p!==null&&(p.getWritable().__next=null,o.__last=p.__key);else if(d!==null){const m=d.getWritable();if(p!==null){const y=p.getWritable();m.__prev=p.__key,y.__next=d.__key}else m.__prev=null}if(o.__size=g,u.length){const m=G();if(H(m)){const y=new Set(u),b=new Set(a),{anchor:x,focus:C}=m;AS(x,y,b)&&Rh(x,x.getNode(),this,f,d),AS(C,y,b)&&Rh(C,C.getNode(),this,f,d),g!==0||this.canBeEmpty()||$n(this)||this.remove()}}return o}getDOMSlot(e){return new Su(e)}exportDOM(e){const{element:r}=super.exportDOM(e);if(Et(r)){const s=this.getIndent();s>0&&(r.style.paddingInlineStart=40*s+"px");const i=this.getDirection();i&&(r.dir=i)}return{element:r}}exportJSON(){const e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},r=this.getTextFormat(),s=this.getTextStyle();return r!==0&&(e.textFormat=r),s!==""&&(e.textStyle=s),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,r){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,r,s){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,r){const s=this.getDOMSlot(e);let i=s.getFirstChild();for(let o=this.getFirstChild();o;o=o.getNextSibling()){const l=r.getElementByKey(o.getKey());l!==null&&(i==null?(s.insertChild(l),i=l):i!==l&&s.replaceChild(l,i),i=i.nextSibling)}}}function Y(n){return n instanceof gt}function AS(n,t,e){let r=n.getNode();for(;r;){const s=r.__key;if(t.has(s)&&!e.has(s))return!0;r=r.getParent()}return!1}class oi extends ws{decorate(t,e){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function tt(n){return n instanceof oi}class Vl extends gt{constructor(){super("root");z(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new Vl}getTopLevelElementOrThrow(){pe(51)}getTextContent(){const e=this.__cachedText;return!Jl()&&$t()._dirtyType!==0||e===null?super.getTextContent():e}remove(){pe(52)}replace(e){pe(53)}insertBefore(e){pe(54)}insertAfter(e){pe(55)}updateDOM(e,r){return!1}splice(e,r,s){for(const i of s)Y(i)||tt(i)||pe(282);return super.splice(e,r,s)}static importJSON(e){return xe().updateFromJSON(e)}collapseAtStart(){return!0}}function Zt(n){return n instanceof Vl}function f_(n){return new fd(new Map(n._nodeMap))}function Xb(){return new fd(new Map([["root",new Vl]]))}function h_(n){const t=n.exportJSON(),e=n.constructor;if(t.type!==e.getType()&&pe(130,e.name),Y(n)){const r=t.children;Array.isArray(r)||pe(59,e.name);const s=n.getChildren();for(let i=0;i<s.length;i++){const o=h_(s[i]);r.push(o)}}return t}function y3(n){return n instanceof fd}class fd{constructor(t,e){z(this,"_nodeMap");z(this,"_selection");z(this,"_flushSync");z(this,"_readOnly");this._nodeMap=t,this._selection=e||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(t,e){return gS(e&&e.editor||null,this,t)}clone(t){const e=new fd(this._nodeMap,t===void 0?this._selection:t);return e._readOnly=!0,e}toJSON(){return gS(null,this,()=>({root:h_(xe())}))}}class qb extends gt{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class Gi extends gt{static getType(){return"paragraph"}static clone(t){return new Gi(t.__key)}createDOM(t){const e=document.createElement("p"),r=Wa(t.theme,"paragraph");return r!==void 0&&e.classList.add(...r),e}updateDOM(t,e,r){return!1}static importDOM(){return{p:t=>({conversion:b3,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(Et(e)){this.isEmpty()&&e.append(document.createElement("br"));const r=this.getFormatType();r&&(e.style.textAlign=r)}return{element:e}}static importJSON(t){return we().updateFromJSON(t)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(t,e){const r=we();r.setTextFormat(t.format),r.setTextStyle(t.style);const s=this.getDirection();return r.setDirection(s),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,e),r}collapseAtStart(){const t=this.getChildren();if(t.length===0||ie(t[0])&&t[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function b3(n){const t=we();return n.style&&(t.setFormat(n.style.textAlign),c0(n,t)),{node:t}}function we(){return Mt(new Gi)}function un(n){return n instanceof Gi}const Fe=0,Te=1,ks=2,As=3,xn=4;function g_(n,t,e,r){const s=n._keyToDOMMap;s.clear(),n._editorState=Xb(),n._pendingEditorState=r,n._compositionKey=null,n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),n._normalizedNodes=new Set,n._updateTags=new Set,n._updates=[],n._blockCursorElement=null;const i=n._observer;i!==null&&(i.disconnect(),n._observer=null),t!==null&&(t.textContent=""),e!==null&&(e.textContent="",s.set("root",e))}function p_(n){const t=new Set,e=new Set;let r=n;for(;r;){const{ownNodeConfig:s}=Kg(r),i=r.transform;if(!e.has(i)){e.add(i);const o=r.transform();o&&t.add(o)}if(s){const o=s.$transform;o&&t.add(o),r=s.extends}else{const o=Object.getPrototypeOf(r);r=o.prototype instanceof ws&&o!==ws?o:void 0}}return t}function hd(n){const t=n||{},e=A3(),r=t.theme||{},s=n===void 0?e:t.parentEditor||null,i=t.disableEvents||!1,o=Xb(),l=t.namespace||(s!==null?s._config.namespace:S_()),a=t.editorState,u=[Vl,Dn,Cc,xc,Gi,qb,...t.nodes||[]],{onError:d,html:f}=t,g=t.editable===void 0||t.editable;let p;if(n===void 0&&e!==null)p=e._nodes;else{p=new Map;for(let y=0;y<u.length;y++){let b=u[y],x=null,C=null;if(typeof b!="function"){const N=b;b=N.replace,x=N.with,C=N.withKlass||null}Kg(b);const v=b.getType(),E=p_(b);p.set(v,{exportDOM:f&&f.export?f.export.get(b):void 0,klass:b,replace:x,replaceWithKlass:C,sharedNodeState:jT(u[y]),transforms:E})}}const m=new Il(o,s,p,{disableEvents:i,namespace:l,theme:r},d||console.error,(function(y,b){const x=new Map,C=new Set,v=E=>{Object.keys(E).forEach(N=>{let S=x.get(N);S===void 0&&(S=[],x.set(N,S)),S.push(E[N])})};return y.forEach(E=>{const N=E.klass.importDOM;if(N==null||C.has(N))return;C.add(N);const S=N.call(E.klass);S!==null&&v(S)}),b&&v(b),x})(p,f?f.import:void 0),g,n);return a!==void 0&&(m._pendingEditorState=a,m._dirtyType=2),m}class Il{constructor(t,e,r,s,i,o,l,a){z(this,"_headless");z(this,"_parentEditor");z(this,"_rootElement");z(this,"_editorState");z(this,"_pendingEditorState");z(this,"_compositionKey");z(this,"_deferred");z(this,"_keyToDOMMap");z(this,"_updates");z(this,"_updating");z(this,"_listeners");z(this,"_commands");z(this,"_nodes");z(this,"_decorators");z(this,"_pendingDecorators");z(this,"_config");z(this,"_dirtyType");z(this,"_cloneNotNeeded");z(this,"_dirtyLeaves");z(this,"_dirtyElements");z(this,"_normalizedNodes");z(this,"_updateTags");z(this,"_observer");z(this,"_key");z(this,"_onError");z(this,"_htmlConversions");z(this,"_window");z(this,"_editable");z(this,"_blockCursorElement");z(this,"_createEditorArgs");this._createEditorArgs=a,this._parentEditor=e,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=s,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=S_(),this._onError=i,this._htmlConversions=o,this._editable=l,this._headless=e!==null&&e._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(t){const e=this._listeners.update;return e.add(t),()=>{e.delete(t)}}registerEditableListener(t){const e=this._listeners.editable;return e.add(t),()=>{e.delete(t)}}registerDecoratorListener(t){const e=this._listeners.decorator;return e.add(t),()=>{e.delete(t)}}registerTextContentListener(t){const e=this._listeners.textcontent;return e.add(t),()=>{e.delete(t)}}registerRootListener(t){const e=this._listeners.root;return t(this._rootElement,null),e.add(t),()=>{t(null,this._rootElement),e.delete(t)}}registerCommand(t,e,r){r===void 0&&pe(35);const s=this._commands;s.has(t)||s.set(t,[new Set,new Set,new Set,new Set,new Set]);const i=s.get(t);i===void 0&&pe(36,String(t));const o=i[r];return o.add(e),()=>{o.delete(e),i.every(l=>l.size===0)&&s.delete(t)}}registerMutationListener(t,e,r){const s=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;let o=i.get(e);o===void 0&&(o=new Set,i.set(e,o)),o.add(s);const l=r&&r.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(e,s),()=>{o.delete(s),o.size===0&&i.delete(e)}}getRegisteredNode(t){const e=this._nodes.get(t.getType());return e===void 0&&pe(37,t.name),e}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,e){const r=this._editorState,s=kS(r).get(e.getType());if(!s)return;const i=new Map;for(const o of s.keys())i.set(o,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(t,e){const r=this.getRegisteredNode(t);return r.transforms.add(e),r}registerNodeTransform(t,e){const r=this.registerNodeTransformToKlass(t,e),s=[r],i=r.replaceWithKlass;if(i!=null){const o=this.registerNodeTransformToKlass(i,e);s.push(o)}return(function(o,l){const a=kS(o.getEditorState()),u=[];for(const d of l){const f=a.get(d);f&&u.push(f)}u.length!==0&&o.update(()=>{for(const d of u)for(const f of d.keys()){const g=me(f);g&&g.markDirty()}},o._pendingEditorState===null?{tag:qr}:void 0)})(this,s.map(o=>o.klass.getType())),()=>{s.forEach(o=>o.transforms.delete(e))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,e){return Ne(this,t,e)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const e=this._rootElement;if(t!==e){const r=Wa(this._config.theme,"root"),s=this._pendingEditorState||this._editorState;if(this._rootElement=t,g_(this,e,t,s),e!==null&&(this._config.disableEvents||t3(e),r!=null&&e.classList.remove(...r)),t!==null){const i=o0(t),o=t.style;o.userSelect="text",o.whiteSpace="pre-wrap",o.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,RT(this),this._updateTags.add(qr),Ti(this),this._config.disableEvents||(function(l,a){const u=l.ownerDocument;hy.set(l,u);const d=Mh.get(u)??0;d<1&&u.addEventListener("selectionchange",e_),Mh.set(u,d+1),l.__lexicalEditor=a;const f=$T(l);for(let g=0;g<fy.length;g++){const[p,m]=fy[g],y=typeof m=="function"?b=>{Xv(b)||(Qv(b),(a.isEditable()||p==="click")&&m(b,a))}:b=>{if(Xv(b))return;Qv(b);const x=a.isEditable();switch(p){case"cut":return x&&Ne(a,ud,b);case"copy":return Ne(a,Gl,b);case"paste":return x&&Ne(a,Uo,b);case"dragstart":return x&&Ne(a,Gb,b);case"dragover":return x&&Ne(a,Zb,b);case"dragend":return x&&Ne(a,e3,b);case"focus":return x&&Ne(a,Wo,b);case"blur":return x&&Ne(a,Dg,b);case"drop":return x&&Ne(a,Yb,b)}};l.addEventListener(p,y),f.push(()=>{l.removeEventListener(p,y)})}})(t,this),r!=null&&t.classList.add(...r)}else this._window=null,this._updateTags.add(qr),Ti(this);vu("root",this,!1,t,e)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(t,e){t.isEmpty()&&pe(38);let r=t;r._readOnly&&(r=f_(t),r._selection=t._selection?t._selection.clone():null),OT(this);const s=this._pendingEditorState,i=this._updateTags,o=e!==void 0?e.tag:null;s===null||s.isEmpty()||(o!=null&&i.add(o),Ti(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,o!=null&&i.add(o),this._updating||Ti(this)}parseEditorState(t,e){return(function(r,s,i){const o=Xb(),l=Ln,a=Cr,u=Mn,d=s._dirtyElements,f=s._dirtyLeaves,g=s._cloneNotNeeded,p=s._dirtyType;s._dirtyElements=new Map,s._dirtyLeaves=new Set,s._cloneNotNeeded=new Set,s._dirtyType=0,Ln=o,Cr=!1,Mn=s,$b(null);try{const m=s._nodes;Qb(r.root,m),i&&i(),o._readOnly=!0}catch(m){m instanceof Error&&s._onError(m)}finally{s._dirtyElements=d,s._dirtyLeaves=f,s._cloneNotNeeded=g,s._dirtyType=p,Ln=l,Cr=a,Mn=u}return o})(typeof t=="string"?JSON.parse(t):t,this,e)}read(t){return Ti(this),this.getEditorState().read(t,{editor:this})}update(t,e){(function(r,s,i){r._updating?r._updates.push([s,i]):Bg(r,s,i)})(this,t,e)}focus(t,e={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Ir(this,()=>{const s=G(),i=xe();s!==null?s.dirty||Ge(s.clone()):i.getChildrenSize()!==0&&(e.defaultSelection==="rootStart"?i.selectStart():i.selectEnd()),N_("focus"),v3(()=>{r.removeAttribute("autocapitalize"),t&&t()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;t!==null&&t.blur();const e=ls(this._window);e!==null&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,vu("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}z(Il,"version");Il.version="0.38.2+prod.esm";let by=null;function $b(n){by=n}let w3=1;function m_(n,t){const e=jg(n,t);return e===void 0&&pe(30,t),e}function jg(n,t){return n._nodes.get(t)}const C3=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function yS(n){return tt(Oe(n))}function e0(n){const t=document.activeElement;if(!Et(t))return!1;const e=t.nodeName;return tt(Oe(n))&&(e==="INPUT"||e==="TEXTAREA"||t.contentEditable==="true"&&Fg(t)==null)}function gd(n,t,e){const r=n.getRootElement();try{return r!==null&&r.contains(t)&&r.contains(e)&&t!==null&&!e0(t)&&pd(t)===n}catch{return!1}}function t0(n){return n instanceof Il}function pd(n){let t=n;for(;t!=null;){const e=Fg(t);if(t0(e))return e;t=md(t)}return null}function Fg(n){return n?n.__lexicalEditor:null}function x3(n){return j4.test(n)?"rtl":F4.test(n)?"ltr":null}function yl(n){return Kn(n)||n.isToken()}function Ps(n){return yl(n)||n.isSegmented()}function Zi(n){return Ql(n)&&n.nodeType===3}function A_(n){return Ql(n)&&n.nodeType===9}function nc(n){let t=n;for(;t!=null;){if(Zi(t))return t;t=t.firstChild}return null}function Ph(n,t,e){const r=Ri[t];if(e!==null&&(n&r)===(e&r))return n;let s=n^r;return t==="subscript"?s&=-65:t==="superscript"?s&=-33:t==="lowercase"?(s&=-513,s&=-1025):t==="uppercase"?(s&=-257,s&=-1025):t==="capitalize"&&(s&=-257,s&=-513),s}function y_(n){return ie(n)||St(n)||tt(n)}function b_(n,t){const e=(function(){const o=by;return by=null,o})();if((t=t||e&&e.__key)!=null)return void(n.__key=t);In(),c_();const r=$t(),s=Ho(),i=""+w3++;s._nodeMap.set(i,n),Y(n)?r._dirtyElements.set(i,!0):r._dirtyLeaves.add(i),r._cloneNotNeeded.add(i),r._dirtyType=1,n.__key=i}function Li(n){const t=n.getParent();if(t!==null){const e=n.getWritable(),r=t.getWritable(),s=n.getPreviousSibling(),i=n.getNextSibling(),o=i!==null?i.__key:null,l=s!==null?s.__key:null,a=s!==null?s.getWritable():null,u=i!==null?i.getWritable():null;s===null&&(r.__first=o),i===null&&(r.__last=l),a!==null&&(a.__next=o),u!==null&&(u.__prev=l),e.__prev=null,e.__next=null,e.__parent=null,r.__size--}}function Bh(n){c_(),Dh(n)&&pe(323,n.__key,n.__type);const t=n.getLatest(),e=t.__parent,r=Ho(),s=$t(),i=r._nodeMap,o=s._dirtyElements;e!==null&&(function(a,u,d){let f=a;for(;f!==null;){if(d.has(f))return;const g=u.get(f);if(g===void 0)break;d.set(f,!1),f=g.__parent}})(e,i,o);const l=t.__key;s._dirtyType=1,Y(n)?o.set(l,!0):s._dirtyLeaves.add(l)}function Un(n){In();const t=$t(),e=t._compositionKey;if(n!==e){if(t._compositionKey=n,e!==null){const r=me(e);r!==null&&r.getWritable()}if(n!==null){const r=me(n);r!==null&&r.getWritable()}}}function po(){return Jl()?null:$t()._compositionKey}function me(n,t){const e=(t||Ho())._nodeMap.get(n);return e===void 0?null:e}function w_(n,t){const e=zg(n,$t());return e!==void 0?me(e,t):null}function zg(n,t){return n[`__lexicalKey_${t._key}`]}function Oe(n,t){let e=n;for(;e!=null;){const r=w_(e,t);if(r!==null)return r;e=md(e)}return null}function C_(n){const t=n._decorators,e=Object.assign({},t);return n._pendingDecorators=e,e}function bS(n){return n.read(()=>xe().getTextContent())}function xe(){return x_(Ho())}function x_(n){return n._nodeMap.get("root")}function Ge(n){In();const t=Ho();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),t._selection=n}function Ba(n){const t=$t(),e=(function(r,s){let i=r;for(;i!=null;){const o=zg(i,s);if(o!==void 0)return o;i=md(i)}return null})(n,t);return e===null?n===t.getRootElement()?me("root"):null:me(e)}function v_(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function n0(n){const t=[];let e=n;for(;e!==null;)t.push(e),e=e._parentEditor;return t}function S_(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function E_(n){return Zi(n)?n.nodeValue:null}function r0(n,t,e){const r=ls(os(t));if(r===null)return;const s=r.anchorNode;let{anchorOffset:i,focusOffset:o}=r;if(s!==null){let l=E_(s);const a=Oe(s);if(l!==null&&ie(a)){if(l===Tg&&e){const u=e.length;l=e,i=u,o=u}l!==null&&s0(a,l,i,o,n)}}}function s0(n,t,e,r,s){let i=n;if(i.isAttached()&&(s||!i.isDirty())){const o=i.isComposing();let l=t;(o||s)&&t[t.length-1]===Tg&&(l=t.slice(0,-1));const a=i.getTextContent();if(s||l!==a){if(l===""){if(Un(null),Bu||ec||ju)i.remove();else{const y=$t();setTimeout(()=>{y.update(()=>{i.isAttached()&&i.remove()})},20)}return}const u=i.getParent(),d=Yi(),f=i.getTextContentSize(),g=po(),p=i.getKey();if(i.isToken()||g!==null&&p===g&&!o||H(d)&&(u!==null&&!u.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===n.__key&&d.anchor.offset===0&&!i.canInsertTextBefore()&&!o||d.focus.key===n.__key&&d.focus.offset===f&&!i.canInsertTextAfter()&&!o))return void i.markDirty();const m=G();if(!H(m)||e===null||r===null)return void wS(i,l,m);if(m.setTextNodeRange(i,e,i,r),i.isSegmented()){const y=$e(i.getTextContent());i.replace(y),i=y}wS(i,l,m)}}}function wS(n,t,e){if(n.setTextContent(t),H(e)){const r=n.getKey();for(const s of["anchor","focus"]){const i=e[s];i.type==="text"&&i.key===r&&(i.offset=Js(n,i.offset,"clamp"))}}}function Of(n,t,e){const r=t[e]||!1;return r==="any"||r===n[e]}function Ft(n,t){return Of(n,t,"altKey")&&Of(n,t,"ctrlKey")&&Of(n,t,"shiftKey")&&Of(n,t,"metaKey")}function Nt(n,t,e){return Ft(n,e)&&n.key.toLowerCase()===t.toLowerCase()}const Si={ctrlKey:!ps,metaKey:ps},CS={altKey:ps,ctrlKey:!ps};function xS(n){return n.key==="Backspace"}function vS(n){return Nt(n,"a",Si)}function k_(n){const t=xe();if(H(n)){const e=n.anchor,r=n.focus,s=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();return e.set(s.getKey(),0,"element"),r.set(s.getKey(),s.getChildrenSize(),"element"),ko(n),n}{const e=t.select(0,t.getChildrenSize());return Ge(ko(e)),e}}function Wa(n,t){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const e=n.__lexicalClassNameCache,r=e[t];if(r!==void 0)return r;const s=n[t];if(typeof s=="string"){const i=_T(s);return e[t]=i,i}return s}function i0(n,t,e,r,s){if(e.size===0)return;const i=r.__type,o=r.__key,l=t.get(i);l===void 0&&pe(33,i);const a=l.klass;let u=n.get(a);u===void 0&&(u=new Map,n.set(a,u));const d=u.get(o),f=d==="destroyed"&&s==="created";(d===void 0||f)&&u.set(o,f?"updated":s)}function SS(n,t,e){const r=n.getParent();let s=e,i=n;return r!==null&&(t&&e===0?(s=i.getIndexWithinParent(),i=r):t||e!==i.getChildrenSize()||(s=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?s-1:s)}function wy(n,t){const e=n.offset;if(n.type==="element")return SS(n.getNode(),t,e);{const r=n.getNode();if(t&&e===0||!t&&e===r.getTextContentSize()){const s=t?r.getPreviousSibling():r.getNextSibling();return s===null?SS(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):s}}return null}function T_(n){const t=os(n).event,e=t&&t.inputType;return e==="insertFromPaste"||e==="insertFromPasteAsQuotation"}function Ne(n,t,e){return(function(r,s,i){const o=n0(r);for(let l=4;l>=0;l--)for(let a=0;a<o.length;a++){const u=o[a],d=u._commands.get(s);if(d!==void 0){const f=d[l];if(f!==void 0){const g=Array.from(f),p=g.length;let m=!1;if(Ir(u,()=>{for(let y=0;y<p;y++)if(g[y](i,r))return void(m=!0)}),m)return m}}}return!1})(n,t,e)}function Ug(n){return!Zt(n)&&!n.isLastChild()&&!n.isInline()}function Ll(n,t){const e=n._keyToDOMMap.get(t);return e===void 0&&pe(75,t),e}function md(n){const t=n.assignedSlot||n.parentElement;return Sy(t)?t.host:t}function __(n){return A_(n)?n:Et(n)?n.ownerDocument:null}function N_(n){In(),$t()._updateTags.add(n)}function v3(n){In(),$t()._deferred.push(n)}function Cy(n,t){let e=n.getParent();for(;e!==null;){if(e.is(t))return!0;e=e.getParent()}return!1}function o0(n){const t=__(n);return t?t.defaultView:null}function os(n){const t=n._window;return t===null&&pe(78),t}function S3(n){return Y(n)&&n.isInline()||tt(n)&&n.isInline()}function E3(n){let t=n.getParentOrThrow();for(;t!==null;){if($n(t))return t;t=t.getParentOrThrow()}return t}function $n(n){return Zt(n)||Y(n)&&n.isShadowRoot()}function xy(n){const t=n.constructor.clone(n);return b_(t,null),t.afterCloneFrom(n),t}function Mt(n){const t=$t(),e=n.getType(),r=jg(t,e);r===void 0&&pe(200,n.constructor.name,e);const{replace:s,replaceWithKlass:i}=r;if(s!==null){const o=s(n),l=o.constructor;return i!==null?o instanceof i||pe(201,i.name,i.getType(),l.name,l.getType(),n.constructor.name,e):o instanceof n.constructor&&l!==n.constructor||pe(202,l.name,l.getType(),n.constructor.name,e),o.__key===n.__key&&pe(203,n.constructor.name,e,l.name,l.getType()),o}return n}function tA(n,t){!Zt(n.getParent())||Y(t)||tt(t)||pe(99)}function La(n){const t=me(n);return t===null&&pe(63,n),t}function nA(n){return(tt(n)||Y(n)&&!n.canBeEmpty())&&!n.isInline()}function vy(n,t,e){e.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function ls(n){return Ns?(n||window).getSelection():null}function k3(n){const t=o0(n);return t?t.getSelection():null}function l0(n){return Et(n)&&n.tagName==="A"}function Et(n){return Ql(n)&&n.nodeType===1}function Ql(n){return typeof n=="object"&&n!==null&&"nodeType"in n&&typeof n.nodeType=="number"}function Sy(n){return Ql(n)&&n.nodeType===11}function Ey(n){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return n.nodeName.match(t)!==null}function jh(n){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return n.nodeName.match(t)!==null}function Zr(n){if(tt(n)&&!n.isInline())return!0;if(!Y(n)||$n(n))return!1;const t=n.getFirstChild(),e=t===null||St(t)||ie(t)||t.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&e}function Xl(){return $t()}const ES=new WeakMap,T3=new Map;function kS(n){if(!n._readOnly&&n.isEmpty())return T3;n._readOnly||pe(192);let t=ES.get(n);return t||(t=(function(e){const r=new Map;for(const[s,i]of e._nodeMap){const o=i.__type;let l=r.get(o);l||(l=new Map,r.set(o,l)),l.set(s,i)}return r})(n),ES.set(n,t)),t}function a0(n){const t=n.constructor.clone(n);return t.afterCloneFrom(n),t}function _3(n){return(t=a0(n))[t_]=!0,t;var t}function c0(n,t){const e=parseInt(n.style.paddingInlineStart,10)||0,r=Math.round(e/40);t.setIndent(r)}function I_(n){n.__lexicalUnmanaged=!0}function N3(n){return n.__lexicalUnmanaged===!0}function ru(n,t){return(function(e,r){return Object.prototype.hasOwnProperty.call(e,r)})(n,t)&&n[t]!==ws[t]}function Kg(n){const t=jv in n.prototype?n.prototype[jv]():void 0,e=(function(o){if(!(o===ws||o.prototype instanceof ws)){let l="<unknown>",a="<unknown>";try{l=o.getType()}catch{}try{Il.version&&(a=JSON.parse(Il.version))}catch{}pe(290,o.name,l,a)}return o===oi||o===gt||o===ws})(n),r=!e&&ru(n,"getType")?n.getType():void 0;let s,i=r;if(t)if(r)s=t[r];else for(const[o,l]of Object.entries(t))i=o,s=l;if(!e&&i&&(ru(n,"getType")||(n.getType=()=>i),ru(n,"clone")||(n.clone=o=>($b(o),new n)),ru(n,"importJSON")||(n.importJSON=s&&s.$importJSON||(o=>new n().updateFromJSON(o))),!ru(n,"importDOM")&&s)){const{importDOM:o}=s;o&&(n.importDOM=()=>o)}return{ownNodeConfig:s,ownNodeType:i}}function L_(n){const t=Xl();return In(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(n))).klass}const Se=(n,t)=>{let e=n;for(;e!=null&&!Zt(e);){if(t(e))return e;e=e.getParent()}return null},I3={next:"previous",previous:"next"};class u0{constructor(t){z(this,"origin");this.origin=t}[Symbol.iterator](){return g0({hasNext:Ol,initial:this.getAdjacentCaret(),map:t=>t,step:t=>t.getAdjacentCaret()})}getAdjacentCaret(){return tn(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return tn(this.origin,this.direction)}remove(){const t=this.getNodeAtCaret();return t&&t.remove(),this}replaceOrInsert(t,e){const r=this.getNodeAtCaret();return t.is(this.origin)||t.is(r)||(r===null?this.insert(t):r.replace(t,e)),this}splice(t,e,r="next"){const s=r===this.direction?e:Array.from(e).reverse();let i=this;const o=this.getParentAtCaret(),l=new Map;for(let a=i.getAdjacentCaret();a!==null&&l.size<t;a=a.getAdjacentCaret()){const u=a.origin.getWritable();l.set(u.getKey(),u)}for(const a of s){if(l.size>0){const u=i.getNodeAtCaret();if(u){if(l.delete(u.getKey()),l.delete(a.getKey()),!(u.is(a)||i.origin.is(a))){const d=a.getParent();d&&d.is(o)&&a.remove(),u.replace(a)}}else u===null&&pe(263,Array.from(l).join(" "))}else i.insert(a);i=tn(a,this.direction)}for(const a of l.values())a.remove();return this}}class Uu extends u0{constructor(){super(...arguments);z(this,"type","child")}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:as(e,this.direction)}getParentCaret(e="root"){return tn(d0(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=ql(this.direction);return tn(this.getNodeAtCaret(),e)||as(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof Uu&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const L3={root:Zt,shadowRoot:$n};function ql(n){return I3[n]}function d0(n,t="root"){return L3[t](n)?null:n}class Ml extends u0{constructor(){super(...arguments);z(this,"type","sibling")}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:tn(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return Y(this.origin)?as(this.origin,this.direction):null}getParentCaret(e="root"){return tn(d0(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=ql(this.direction);return tn(this.getNodeAtCaret(),e)||as(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof Ml&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof Ml||e instanceof Dl)&&this.direction===e.direction&&this.origin.is(e.origin)}}class Dl extends u0{constructor(e,r){super(e);z(this,"type","text");z(this,"offset");this.offset=r}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:_o(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return tn(d0(this.getParentAtCaret(),e),this.direction)}getFlipped(){return _o(this.origin,ql(this.direction),this.offset)}isSamePointCaret(e){return e instanceof Dl&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof Ml||e instanceof Dl)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return tn(this.origin,this.direction)}}function Zs(n){return n instanceof Dl}function Ol(n){return n instanceof Ml}function rs(n){return n instanceof Uu}const M3={next:class extends Dl{constructor(){super(...arguments);z(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends Dl{constructor(){super(...arguments);z(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},D3={next:class extends Ml{constructor(){super(...arguments);z(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends Ml{constructor(){super(...arguments);z(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},O3={next:class extends Uu{constructor(){super(...arguments);z(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends Uu{constructor(){super(...arguments);z(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function tn(n,t){return n?new D3[t](n):null}function _o(n,t,e){return n?new M3[t](n,Js(n,e)):null}function Js(n,t,e="error"){const r=n.getTextContentSize();let s=t==="next"?r:t==="previous"?0:t;return(s<0||s>r)&&(e!=="clamp"&&kT(284,String(t),String(r),n.getKey()),s=s<0?0:r),s}function TS(n,t){return new R3(n,t)}function as(n,t){return Y(n)?new O3[t](n):null}function M_(n){return n&&n.getChildCaret()||n}function rc(n){return n&&M_(n.getAdjacentCaret())}class f0{constructor(t,e,r){z(this,"type","node-caret-range");z(this,"direction");z(this,"anchor");z(this,"focus");this.anchor=t,this.focus=e,this.direction=r}getLatest(){const t=this.anchor.getLatest(),e=this.focus.getLatest();return t===this.anchor&&e===this.focus?this:new f0(t,e,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const t=s=>{const i=this[s].getLatest();return Zs(i)?(function(o,l){const{direction:a,origin:u}=o,d=Js(u,l==="focus"?ql(a):a);return TS(o,d-o.offset)})(i,s):null},e=t("anchor"),r=t("focus");if(e&&r){const{caret:s}=e,{caret:i}=r;if(s.isSameNodeCaret(i))return[TS(s,i.offset-s.offset),null]}return[e,r]}iterNodeCarets(t="root"){const e=Zs(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),s=Zs(r),i=o=>o.isSameNodeCaret(r)?null:rc(o)||o.getParentCaret(t);return g0({hasNext:o=>o!==null&&!(s&&r.isSameNodeCaret(o)),initial:e.isSameNodeCaret(r)?null:i(e),map:o=>o,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class R3{constructor(t,e){z(this,"type","slice");z(this,"caret");z(this,"distance");this.caret=t,this.distance=e}getSliceIndices(){const{distance:t,caret:{offset:e}}=this,r=e+t;return r<e?[r,e]:[e,r]}getTextContent(){const[t,e]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(t,e)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:t,direction:e}}=this,[r,s]=this.getSliceIndices(),i=t.getTextContent();return _o(t.setTextContent(i.slice(0,r)+i.slice(s)),e,r)}}function h0(n){return Bi(n,tn(xe(),n.direction))}function D_(n){return Bi(n,n)}function Bi(n,t){return n.direction!==t.direction&&pe(265),new f0(n,t,n.direction)}function g0(n){const{initial:t,hasNext:e,step:r,map:s}=n;let i=t;return{[Symbol.iterator](){return this},next(){if(!e(i))return{done:!0,value:void 0};const o={done:!1,value:s(i)};return i=r(i),o}}}function O_(n,t){const e=dh(n.origin,t.origin);switch(e===null&&pe(275,n.origin.getKey(),t.origin.getKey()),e.type){case"same":{const r=n.type==="text",s=t.type==="text";return r&&s?(function(i,o){return Math.sign(i-o)})(n.offset,t.offset):n.type===t.type?0:r?-1:s?1:n.type==="child"?-1:1}case"ancestor":return n.type==="child"?-1:1;case"descendant":return t.type==="child"?1:-1;case"branch":return R_(e)}}function R_(n){const{a:t,b:e}=n,r=t.__key,s=e.__key;let i=t,o=e;for(;i&&o;i=i.getNextSibling(),o=o.getNextSibling()){if(i.__key===s)return-1;if(o.__key===r)return 1}return i===null?1:-1}function Rf(n,t){return t.is(n)}function _S(n){return Y(n)?[n.getLatest(),null]:[n.getParent(),n.getLatest()]}function dh(n,t){if(n.is(t))return{commonAncestor:n,type:"same"};const e=new Map;for(let[r,s]=_S(n);r;s=r,r=r.getParent())e.set(r,s);for(let[r,s]=_S(t);r;s=r,r=r.getParent()){const i=e.get(r);if(i!==void 0)return i===null?(Rf(n,r)||pe(276),{commonAncestor:r,type:"ancestor"}):s===null?(Rf(t,r)||pe(277),{commonAncestor:r,type:"descendant"}):((Y(i)||Rf(n,i))&&(Y(s)||Rf(t,s))&&r.is(i.getParent())&&r.is(s.getParent())||pe(278),{a:i,b:s,commonAncestor:r,type:"branch"})}return null}function $s(n,t){const{type:e,key:r,offset:s}=n,i=La(n.key);return e==="text"?(ie(i)||pe(266,i.getType(),r),_o(i,t,s)):(Y(i)||pe(267,i.getType(),r),B3(i,n.offset,t))}function Ku(n,t){const{origin:e,direction:r}=t,s=r==="next";Zs(t)?n.set(e.getKey(),t.offset,"text"):Ol(t)?ie(e)?n.set(e.getKey(),Js(e,r),"text"):n.set(e.getParentOrThrow().getKey(),e.getIndexWithinParent()+(s?1:0),"element"):(rs(t)&&Y(e)||pe(268),n.set(e.getKey(),s?0:e.getChildrenSize(),"element"))}function p0(n){const t=G(),e=H(t)?t:ii();return fh(e,n),Ge(e),e}function fh(n,t){Ku(n.anchor,t.anchor),Ku(n.focus,t.focus)}function ky(n){const{anchor:t,focus:e}=n,r=$s(t,"next"),s=$s(e,"next"),i=O_(r,s)<=0?"next":"previous";return Bi(ji(r,i),ji(s,i))}function Ad(n){const{direction:t,origin:e}=n,r=tn(e,ql(t)).getNodeAtCaret();return r?tn(r,t):as(e.getParentOrThrow(),t)}function NS(n,t="root"){const e=[n];for(let r=rs(n)?n.getParentCaret(t):n.getSiblingCaret();r!==null;r=r.getParentCaret(t))e.push(Ad(r));return e}function rA(n){return!!n&&n.origin.isAttached()}function P3(n,t="removeEmptySlices"){if(n.isCollapsed())return n;const e="root",r="next";let s=t;const i=m0(n,r),o=NS(i.anchor,e),l=NS(i.focus.getFlipped(),e),a=new Set,u=[];for(const m of i.iterNodeCarets(e))if(rs(m))a.add(m.origin.getKey());else if(Ol(m)){const{origin:y}=m;Y(y)&&!a.has(y.getKey())||u.push(y)}for(const m of u)m.remove();for(const m of i.getTextSlices()){if(!m)continue;const{origin:y}=m.caret,b=y.getTextContentSize(),x=Ad(tn(y,r)),C=y.getMode();if(Math.abs(m.distance)===b&&s==="removeEmptySlices"||C==="token"&&m.distance!==0)x.remove();else if(m.distance!==0){s="removeEmptySlices";let v=m.removeTextSlice();const E=m.caret.origin;if(C==="segmented"){const N=v.origin,S=$e(N.getTextContent()).setStyle(N.getStyle()).setFormat(N.getFormat());x.replaceOrInsert(S),v=_o(S,r,v.offset)}E.is(o[0].origin)&&(o[0]=v),E.is(l[0].origin)&&(l[0]=v.getFlipped())}}let d,f;for(const m of o)if(rA(m)){d=$r(m);break}for(const m of l)if(rA(m)){f=$r(m);break}const g=(function(m,y,b){if(!m||!y)return null;const x=m.getParentAtCaret(),C=y.getParentAtCaret();if(!x||!C)return null;const v=x.getParents().reverse();v.push(x);const E=C.getParents().reverse();E.push(C);const N=Math.min(v.length,E.length);let S;for(S=0;S<N&&v[S]===E[S];S++);const _=(M,R)=>{let F;for(let j=S;j<M.length;j++){const U=M[j];if($n(U))return;!F&&R(U)&&(F=U)}return F},I=_(v,Zr),L=I&&_(E,M=>b.has(M.getKey())&&Zr(M));return I&&L?[I,L]:null})(d,f,a);if(g){const[m,y]=g;as(m,"previous").splice(0,y.getChildren()),y.remove()}const p=[d,f,...o,...l].find(rA);if(p)return D_(ji($r(p),n.direction));pe(269,JSON.stringify(o.map(m=>m.origin.__key)))}function $r(n){const t=(function(s){let i=s;for(;rs(i);){const o=rc(i);if(!rs(o))break;i=o}return i})(n.getLatest()),{direction:e}=t;if(ie(t.origin))return Zs(t)?t:_o(t.origin,e,e);const r=t.getAdjacentCaret();return Ol(r)&&ie(r.origin)?_o(r.origin,e,ql(e)):t}function P_(n){return Zs(n)&&n.offset!==Js(n.origin,n.direction)}function ji(n,t){return n.direction===t?n:n.getFlipped()}function m0(n,t){return n.direction===t?n:Bi(ji(n.focus,t),ji(n.anchor,t))}function B3(n,t,e){let r=as(n,"next");for(let s=0;s<t;s++){const i=r.getAdjacentCaret();if(i===null)break;r=i}return ji(r,e)}function j3(n,t="root"){let e=0,r=n,s=rc(r);for(;s===null;){if(e--,s=r.getParentCaret(t),!s)return null;r=s,s=rc(r)}return s&&[s,e]}function F3(n){const{origin:t,offset:e,direction:r}=n;if(e===Js(t,r))return n.getSiblingCaret();if(e===Js(t,ql(r)))return Ad(n.getSiblingCaret());const[s]=t.splitText(e);return ie(s)||pe(281),ji(tn(s,"next"),r)}function z3(n,t){return!0}function U3(n,{$copyElementNode:t=xy,$splitTextPointCaretNext:e=F3,rootMode:r="shadowRoot",$shouldSplit:s=z3}={}){if(Zs(n))return e(n);const i=n.getParentCaret(r);if(i){const{origin:o}=i;if(rs(n)&&(!o.canBeEmpty()||!s(o,"first")))return Ad(i);const l=(function(a){const u=[];for(let d=a.getAdjacentCaret();d;d=d.getAdjacentCaret())u.push(d.origin);return u})(n);(l.length>0||o.canBeEmpty()&&s(o,"last"))&&i.insert(t(o).splice(0,0,l))}return i}function K3(...n){return n}function W3(n,t){if(!t||n===t)return n;for(const e in t)if(n[e]!==t[e])return{...n,...t};return n}function B_(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Fh=new Map;function IS(n){let t=n;for(;t!=null;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function LS(n){const t=n.parentNode;if(t==null)throw new Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(n)]}function j_(n,t,e,r,s){const i=t.getKey(),o=r.getKey(),l=document.createRange();let a=n.getElementByKey(i),u=n.getElementByKey(o),d=e,f=s;if(ie(t)&&(a=IS(a)),ie(r)&&(u=IS(u)),t===void 0||r===void 0||a===null||u===null)return null;a.nodeName==="BR"&&([a,d]=LS(a)),u.nodeName==="BR"&&([u,f]=LS(u));const g=a.firstChild;a===u&&g!=null&&g.nodeName==="BR"&&d===0&&f===0&&(f=1);try{l.setStart(a,d),l.setEnd(u,f)}catch{return null}return!l.collapsed||d===f&&i===o||(l.setStart(u,f),l.setEnd(a,d)),l}function F_(n,t){const e=n.getRootElement();if(e===null)return[];const r=e.getBoundingClientRect(),s=getComputedStyle(e),i=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),o=Array.from(t.getClientRects());let l,a=o.length;o.sort((u,d)=>{const f=u.top-d.top;return Math.abs(f)<=3?u.left-d.left:f});for(let u=0;u<a;u++){const d=o[u],f=l&&l.top<=d.top&&l.top+l.height>d.top&&l.left+l.width>d.left,g=d.width+i===r.width;f||g?(o.splice(u--,1),a--):l=d}return o}function z_(n){const t={};if(!n)return t;const e=n.split(";");for(const r of e)if(r!==""){const[s,i]=r.split(/:([^]+)/);s&&i&&(t[s.trim()]=i.trim())}return t}function Wu(n){let t=Fh.get(n);return t===void 0&&(t=z_(n),Fh.set(n,t)),t}function H3(n){let t="";for(const e in n)e&&(t+=`${e}: ${n[e]};`);return t}function U_(n){const t=Xl().getElementByKey(n.getKey());if(t===null)return null;const e=t.ownerDocument.defaultView;return e===null?null:e.getComputedStyle(t)}function K_(n){return U_(Zt(n)?n:n.getParentOrThrow())}function MS(n){const t=K_(n);return t!==null&&t.direction==="rtl"}function W_(n,t,e="self"){const r=n.getStartEndPoints();if(t.isSelected(n)&&!Ps(t)&&r!==null){const[s,i]=r,o=n.isBackward(),l=s.getNode(),a=i.getNode(),u=t.is(l),d=t.is(a);if(u||d){const[f,g]=Ay(n),p=l.is(a),m=t.is(o?a:l),y=t.is(o?l:a);let b,x=0;p?(x=f>g?g:f,b=f>g?f:g):m?(x=o?g:f,b=void 0):y&&(x=0,b=o?f:g);const C=t.__text.slice(x,b);C!==t.__text&&(e==="clone"&&(t=_3(t)),t.__text=C)}}return t}function DS(n){if(n.type==="text")return n.offset===n.getNode().getTextContentSize();const t=n.getNode();return Y(t)||B_(177),n.offset===t.getChildrenSize()}function Y3(n,t,e){let r=t.getNode(),s=e;if(Y(r)){const i=r.getDescendantByIndex(t.offset);i!==null&&(r=i)}for(;s>0&&r!==null;){if(Y(r)){const u=r.getLastDescendant();u!==null&&(r=u)}let i=r.getPreviousSibling(),o=0;if(i===null){let u=r.getParentOrThrow(),d=u.getPreviousSibling();for(;d===null;){if(u=u.getParent(),u===null){i=null;break}d=u.getPreviousSibling()}u!==null&&(o=u.isInline()?0:2,i=d)}let l=r.getTextContent();l===""&&Y(r)&&!r.isInline()&&(l=`
12
+
13
+ `);const a=l.length;if(!ie(r)||s>=a){const u=r.getParent();r.remove(),u==null||u.getChildrenSize()!==0||Zt(u)||u.remove(),s-=a+o,r=i}else{const u=r.getKey(),d=n.getEditorState().read(()=>{const p=me(u);return ie(p)&&p.isSimpleText()?p.getTextContent():null}),f=a-s,g=l.slice(0,f);if(d!==null&&d!==l){const p=Yi();let m=r;if(r.isSimpleText())r.setTextContent(d);else{const y=$e(d);r.replace(y),m=y}if(H(p)&&p.isCollapsed()){const y=p.anchor.offset;m.select(y,y)}}else if(r.isSimpleText()){const p=t.key===u;let m=t.offset;m<s&&(m=a);const y=p?m-s:0,b=p?m:f;if(p&&y===0){const[x]=r.splitText(y,b);x.remove()}else{const[,x]=r.splitText(y,b);x.remove()}}else{const p=$e(g);r.replace(p)}s=0}}}function G3(n){const t=n.getStyle(),e=z_(t);Fh.set(t,e)}function sA(n,t){(H(n)?n.isCollapsed():ie(n)||Y(n))||B_(280);const e=Wu(H(n)?n.style:ie(n)?n.getStyle():n.getTextStyle()),r=Object.entries(t).reduce((i,[o,l])=>(typeof l=="function"?i[o]=l(e[o],n):l===null?delete i[o]:i[o]=l,i),{...e}),s=H3(r);H(n)||ie(n)?n.setStyle(s):n.setTextStyle(s),Fh.set(s,r)}function zh(n,t){if(H(n)&&n.isCollapsed()){sA(n,t);const e=n.anchor.getNode();Y(e)&&e.isEmpty()&&sA(e,t)}Z3(e=>{sA(e,t)})}function Z3(n){const t=G();if(!t)return;const e=new Map,r=i=>e.get(i.getKey())||[0,i.getTextContentSize()];if(H(t))for(const i of ky(t).getTextSlices())i&&e.set(i.caret.origin.getKey(),i.getSliceIndices());const s=t.getNodes();for(const i of s){if(!ie(i)||!i.canHaveFormat())continue;const[o,l]=r(i);l!==o&&(Ps(i)||o===0&&l===i.getTextContentSize()?n(i):n(i.splitText(o,l)[o===0?0:1]))}H(t)&&t.anchor.type==="text"&&t.focus.type==="text"&&t.anchor.key===t.focus.key&&J3(t)}function J3(n){if(n.isBackward()){const{anchor:t,focus:e}=n,{key:r,offset:s,type:i}=t;t.set(e.key,e.offset,e.type),e.set(r,s,i)}}function V3(n,t){const e=n.getFormatType(),r=n.getIndent();e!==t.getFormatType()&&t.setFormat(e),r!==t.getIndent()&&t.setIndent(r)}function Sc(n,t,e=V3){if(n===null)return;const r=n.getStartEndPoints(),s=new Map;let i=null;if(r){const[o,l]=r;i=ii(),i.anchor.set(o.key,o.offset,o.type),i.focus.set(l.key,l.offset,l.type);const a=Se(o.getNode(),Zr),u=Se(l.getNode(),Zr);Y(a)&&s.set(a.getKey(),a),Y(u)&&s.set(u.getKey(),u)}for(const o of n.getNodes())if(Y(o)&&Zr(o))s.set(o.getKey(),o);else if(r===null){const l=Se(o,Zr);Y(l)&&s.set(l.getKey(),l)}for(const[o,l]of s){const a=t();e(l,a),l.replace(a,!0),i&&(o===i.anchor.key&&i.anchor.set(a.getKey(),i.anchor.offset,i.anchor.type),o===i.focus.key&&i.focus.set(a.getKey(),i.focus.offset,i.focus.type))}i&&n.is(G())&&Ge(i)}function H_(n){const t=Y_(n);return t!==null&&t.writingMode==="vertical-rl"}function Y_(n){const t=n.anchor.getNode();return Y(t)?U_(t):K_(t)}function OS(n,t){let e=H_(n)?!t:t;G_(n)&&(e=!e);const r=$s(n.focus,e?"previous":"next");if(P_(r))return!1;for(const s of h0(r)){if(rs(s))return!s.origin.isInline();if(!Y(s.origin)){if(tt(s.origin))return!0;break}}return!1}function Q3(n,t,e,r){n.modify(t?"extend":"move",e,r)}function G_(n){const t=Y_(n);return t!==null&&t.direction==="rtl"}function RS(n,t,e){const r=G_(n);let s;s=H_(n)||r?!e:e,Q3(n,t,s,"character")}function X3(n,t,e){const r=Wu(n.getStyle());return r!==null&&r[t]||e}function Uh(n,t,e=""){let r=null;const s=n.getNodes(),i=n.anchor,o=n.focus,l=n.isBackward(),a=l?o.offset:i.offset,u=l?o.getNode():i.getNode();if(H(n)&&n.isCollapsed()&&n.style!==""){const d=Wu(n.style);if(d!==null&&t in d)return d[t]}for(let d=0;d<s.length;d++){const f=s[d];if((d===0||a!==0||!f.is(u))&&ie(f)){const g=X3(f,t,e);if(r===null)r=g;else if(r!==g){r="";break}}}return r===null?e:r}const q3=Y3;function Z_(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const yd=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,$3=yd&&"documentMode"in document?document.documentMode:null,e5=yd&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),t5=yd&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);!(!yd||!("InputEvent"in window)||$3)&&"getTargetRanges"in new window.InputEvent("input");function J_(...n){const t=[];for(const e of n)if(e&&typeof e=="string")for(const[r]of e.matchAll(/\S+/g))t.push(r);return t}function Xe(...n){return()=>{for(let t=n.length-1;t>=0;t--)n[t]();n.length=0}}const n5=yd,PS=e5,r5=t5;function st(n,...t){const e=J_(...t);e.length>0&&n.classList.add(...e)}function Lr(n,...t){const e=J_(...t);e.length>0&&n.classList.remove(...e)}function s5(n){return n?n.getAdjacentCaret():null}function BS(n){const t=M_(tn(n,"previous")),e=j3(t,"root");return e&&e[0].origin}function A0(n,t){let e=n;for(;e!=null;){if(e instanceof t)return e;e=e.getParent()}return null}function Ec(n){const t=Se(n,e=>Y(e)&&!e.isInline());return Y(t)||Z_(4,n.__key),t}function i5(n,t,e,r){const s=i=>i instanceof t;return n.registerNodeTransform(t,i=>{const o=(l=>{const a=l.getChildren();for(let f=0;f<a.length;f++){const g=a[f];if(s(g))return null}let u=l,d=l;for(;u!==null;)if(d=u,u=u.getParent(),s(u))return{child:d,parent:u};return null})(i);if(o!==null){const{child:l,parent:a}=o;if(l.is(i)){r(a,i);const u=l.getNextSiblings(),d=u.length;if(a.insertAfter(l),d!==0){const f=e(a);l.insertAfter(f);for(let g=0;g<d;g++)f.append(u[g])}a.canBeEmpty()||a.getChildrenSize()!==0||a.remove()}}})}function o5(n,t){const e=new Map,r=n._pendingEditorState;for(const[i,o]of t._nodeMap)e.set(i,a0(o));r&&(r._nodeMap=e),n._dirtyType=2;const s=t._selection;Ge(s===null?null:s.clone())}function V_(n){const t=G()||Yi();let e;if(H(t))e=$s(t.focus,"next");else{if(t!=null){const o=t.getNodes(),l=o[o.length-1];l&&(e=tn(l,"next"))}e=e||as(xe(),"previous").getFlipped().insert(we())}const r=l5(n,e),s=rc(r),i=rs(s)?$r(s):r;return p0(D_(i)),n.getLatest()}function l5(n,t,e){let r=ji(t,"next");for(let s=r;s;s=U3(s,e))r=s;return Zs(r)&&Z_(283),r.insert(n.isInline()?we().append(n):n),ji(tn(n.getLatest(),"next"),t.direction)}function Ii(n,t){return n!==null&&Object.getPrototypeOf(n).constructor.name===t.name}function a5(n,t){as(n,"next").insert(t)}let iA=!(r5||!n5)&&void 0;function c5(n){let t=1;if((function(){if(iA===void 0){const e=document.createElement("div");e.style.cssText="position: absolute; opacity: 0; width: 100px; left: -1000px;",document.body.appendChild(e);const r=e.getBoundingClientRect();e.style.setProperty("zoom","2"),iA=e.getBoundingClientRect().width===r.width,document.body.removeChild(e)}return iA})())for(;n;)t*=Number(window.getComputedStyle(n).getPropertyValue("zoom")),n=n.parentElement;return t}function Q_(n,t){const e=[],r=Array.from(n).reverse();for(let s=r.pop();s!==void 0;s=r.pop())if(t(s))e.push(s);else if(Y(s))for(const i of u5(s))r.push(i);return e}function u5(n){return d5(as(n,"previous"))}function d5(n){return g0({hasNext:Ol,initial:n.getAdjacentCaret(),map:t=>t.origin.getLatest(),step:t=>t.getAdjacentCaret()})}function bd(n,t){const e=A_(t)?t.body.childNodes:t.childNodes;let r=[];const s=[];for(const i of e)if(!q_.has(i.nodeName)){const o=$_(i,n,s,!1);o!==null&&(r=r.concat(o))}return(function(i){for(const o of i)o.getNextSibling()instanceof qb&&o.insertAfter(dr());for(const o of i){const l=o.getChildren();for(const a of l)o.insertBefore(a);o.remove()}})(s),r}function Kh(n,t){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const e=document.createElement("div"),r=xe().getChildren();for(let s=0;s<r.length;s++)X_(n,r[s],e,t);return e.innerHTML}function X_(n,t,e,r=null){let s=r===null||t.isSelected(r);const i=Y(t)&&t.excludeFromCopy("html");let o=t;r!==null&&ie(t)&&(o=W_(r,t,"clone"));const l=Y(o)?o.getChildren():[],a=jg(n,o.getType());let u;u=a&&a.exportDOM!==void 0?a.exportDOM(n,o):o.exportDOM(n);const{element:d,after:f}=u;if(!d)return!1;const g=document.createDocumentFragment();for(let p=0;p<l.length;p++){const m=l[p],y=X_(n,m,g,r);!s&&Y(t)&&y&&t.extractWithChild(m,r,"html")&&(s=!0)}if(s&&!i){if((Et(d)||Sy(d))&&d.append(g),e.append(d),f){const p=f.call(o,d);p&&(Sy(d)?d.replaceChildren(p):d.replaceWith(p))}}else e.append(g);return s}const q_=new Set(["STYLE","SCRIPT"]);function $_(n,t,e,r,s=new Map,i){let o=[];if(q_.has(n.nodeName))return o;let l=null;const a=(function(m,y){const{nodeName:b}=m,x=y._htmlConversions.get(b.toLowerCase());let C=null;if(x!==void 0)for(const v of x){const E=v(m);E!==null&&(C===null||(C.priority||0)<=(E.priority||0))&&(C=E)}return C!==null?C.conversion:null})(n,t),u=a?a(n):null;let d=null;if(u!==null){d=u.after;const m=u.node;if(l=Array.isArray(m)?m[m.length-1]:m,l!==null){for(const[,y]of s)if(l=y(l,i),!l)break;l&&o.push(...Array.isArray(m)?m:[l])}u.forChild!=null&&s.set(n.nodeName,u.forChild)}const f=n.childNodes;let g=[];const p=(l==null||!$n(l))&&(l!=null&&yy(l)||r);for(let m=0;m<f.length;m++)g.push(...$_(f[m],t,e,p,new Map(s),l));return d!=null&&(g=d(g)),jh(n)&&(g=f5(n,g,p?()=>{const m=new qb;return e.push(m),m}:we)),l==null?g.length>0?o=o.concat(g):jh(n)&&(function(m){return m.nextSibling==null||m.previousSibling==null?!1:Ey(m.nextSibling)&&Ey(m.previousSibling)})(n)&&(o=o.concat(dr())):Y(l)&&l.append(...g),o}function f5(n,t,e){const r=n.style.textAlign,s=[];let i=[];for(let o=0;o<t.length;o++){const l=t[o];if(yy(l))r&&!l.getFormat()&&l.setFormat(r),s.push(l);else if(i.push(l),o===t.length-1||o<t.length-1&&yy(t[o+1])){const a=e();a.setFormat(r),a.append(...i),s.push(a),i=[]}}return s}const jS=[["Cat","rgb(125, 50, 0)"],["Dog","rgb(100, 0, 0)"],["Rabbit","rgb(150, 0, 0)"],["Frog","rgb(200, 0, 0)"],["Fox","rgb(200, 75, 0)"],["Hedgehog","rgb(0, 75, 0)"],["Pigeon","rgb(0, 125, 0)"],["Squirrel","rgb(75, 100, 0)"],["Bear","rgb(125, 100, 0)"],["Tiger","rgb(0, 0, 150)"],["Leopard","rgb(0, 0, 200)"],["Zebra","rgb(0, 0, 250)"],["Wolf","rgb(0, 100, 150)"],["Owl","rgb(0, 100, 100)"],["Gull","rgb(100, 0, 100)"],["Squid","rgb(150, 0, 150)"]],FS=jS[Math.floor(Math.random()*jS.length)],y0=k.createContext(null);function eN(){return{color:FS[1],isCollabActive:!1,name:FS[0],yjsDocMap:new Map}}const h5=eN();function g5({children:n}){const t=k.useMemo(()=>eN(),[]);return A.jsx(y0.Provider,{value:t,children:n})}function p5(n,t){let e=k.useContext(y0);return e==null&&(function(r,...s){const i=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",r);for(const l of s)o.append("v",l);i.search=o.toString(),console.warn(`Minified Lexical warning #${r}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(319),e=e??h5,n!=null&&(e.name=n),t!=null&&(e.color=t),e}const b0=k.createContext(null);function tN(n,t){let e=null;return n!=null&&(e=n[1]),{getTheme:function(){return t??(e!=null?e.getTheme():null)}}}function _e(){const n=k.useContext(b0);return n==null&&(function(t,...e){const r=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",t);for(const i of e)s.append("v",i);throw r.search=s.toString(),Error(`Minified Lexical error #${t}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(8),n}const xr=()=>new Map,Ty=n=>{const t=xr();return n.forEach((e,r)=>{t.set(r,e)}),t},li=(n,t,e)=>{let r=n.get(t);return r===void 0&&n.set(t,r=e()),r},m5=(n,t)=>{const e=[];for(const[r,s]of n)e.push(t(s,r));return e},A5=(n,t)=>{for(const[e,r]of n)if(t(r,e))return!0;return!1},No=()=>new Set,oA=n=>n[n.length-1],y5=(n,t)=>{for(let e=0;e<t.length;e++)n.push(t[e])},Fi=Array.from,w0=(n,t)=>{for(let e=0;e<n.length;e++)if(!t(n[e],e,n))return!1;return!0},C0=(n,t)=>{for(let e=0;e<n.length;e++)if(t(n[e],e,n))return!0;return!1},b5=(n,t)=>{const e=new Array(n);for(let r=0;r<n;r++)e[r]=t(r,e);return e},sc=Array.isArray;class nN{constructor(){this._observers=xr()}on(t,e){return li(this._observers,t,No).add(e),e}once(t,e){const r=(...s)=>{this.off(t,r),e(...s)};this.on(t,r)}off(t,e){const r=this._observers.get(t);r!==void 0&&(r.delete(e),r.size===0&&this._observers.delete(t))}emit(t,e){return Fi((this._observers.get(t)||xr()).values()).forEach(r=>r(...e))}destroy(){this._observers=xr()}}class rN{constructor(){this._observers=xr()}on(t,e){li(this._observers,t,No).add(e)}once(t,e){const r=(...s)=>{this.off(t,r),e(...s)};this.on(t,r)}off(t,e){const r=this._observers.get(t);r!==void 0&&(r.delete(e),r.size===0&&this._observers.delete(t))}emit(t,e){return Fi((this._observers.get(t)||xr()).values()).forEach(r=>r(...e))}destroy(){this._observers=xr()}}const Ts=Math.floor,hh=Math.abs,x0=(n,t)=>n<t?n:t,$l=(n,t)=>n>t?n:t,w5=Math.pow,sN=n=>n!==0?n<0:1/n<0,zS=1,US=2,lA=4,aA=8,Hu=32,Mi=64,Mr=128,Wg=31,_y=63,bl=127,C5=2147483647,Wh=Number.MAX_SAFE_INTEGER,KS=Number.MIN_SAFE_INTEGER,x5=Number.isInteger||(n=>typeof n=="number"&&isFinite(n)&&Ts(n)===n),iN=String.fromCharCode,v5=n=>n.toLowerCase(),S5=/^\s*/g,E5=n=>n.replace(S5,""),k5=/([A-Z])/g,WS=(n,t)=>E5(n.replace(k5,e=>`${t}${v5(e)}`)),T5=n=>{const t=unescape(encodeURIComponent(n)),e=t.length,r=new Uint8Array(e);for(let s=0;s<e;s++)r[s]=t.codePointAt(s);return r},Yu=typeof TextEncoder<"u"?new TextEncoder:null,_5=n=>Yu.encode(n),N5=Yu?_5:T5;let Eu=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});Eu&&Eu.decode(new Uint8Array).length===1&&(Eu=null);const I5=(n,t)=>b5(t,()=>n).join("");class wd{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const Jn=()=>new wd,v0=n=>{let t=n.cpos;for(let e=0;e<n.bufs.length;e++)t+=n.bufs[e].length;return t},qt=n=>{const t=new Uint8Array(v0(n));let e=0;for(let r=0;r<n.bufs.length;r++){const s=n.bufs[r];t.set(s,e),e+=s.length}return t.set(new Uint8Array(n.cbuf.buffer,0,n.cpos),e),t},L5=(n,t)=>{const e=n.cbuf.length;e-n.cpos<t&&(n.bufs.push(new Uint8Array(n.cbuf.buffer,0,n.cpos)),n.cbuf=new Uint8Array($l(e,t)*2),n.cpos=0)},_n=(n,t)=>{const e=n.cbuf.length;n.cpos===e&&(n.bufs.push(n.cbuf),n.cbuf=new Uint8Array(e*2),n.cpos=0),n.cbuf[n.cpos++]=t},Ny=_n,je=(n,t)=>{for(;t>bl;)_n(n,Mr|bl&t),t=Ts(t/128);_n(n,bl&t)},S0=(n,t)=>{const e=sN(t);for(e&&(t=-t),_n(n,(t>_y?Mr:0)|(e?Mi:0)|_y&t),t=Ts(t/64);t>0;)_n(n,(t>bl?Mr:0)|bl&t),t=Ts(t/128)},Iy=new Uint8Array(3e4),M5=Iy.length/3,D5=(n,t)=>{if(t.length<M5){const e=Yu.encodeInto(t,Iy).written||0;je(n,e);for(let r=0;r<e;r++)_n(n,Iy[r])}else on(n,N5(t))},O5=(n,t)=>{const e=unescape(encodeURIComponent(t)),r=e.length;je(n,r);for(let s=0;s<r;s++)_n(n,e.codePointAt(s))},wl=Yu&&Yu.encodeInto?D5:O5,Hg=(n,t)=>{const e=n.cbuf.length,r=n.cpos,s=x0(e-r,t.length),i=t.length-s;n.cbuf.set(t.subarray(0,s),r),n.cpos+=s,i>0&&(n.bufs.push(n.cbuf),n.cbuf=new Uint8Array($l(e*2,i)),n.cbuf.set(t.subarray(s)),n.cpos=i)},on=(n,t)=>{je(n,t.byteLength),Hg(n,t)},E0=(n,t)=>{L5(n,t);const e=new DataView(n.cbuf.buffer,n.cpos,t);return n.cpos+=t,e},R5=(n,t)=>E0(n,4).setFloat32(0,t,!1),P5=(n,t)=>E0(n,8).setFloat64(0,t,!1),B5=(n,t)=>E0(n,8).setBigInt64(0,t,!1),HS=new DataView(new ArrayBuffer(4)),j5=n=>(HS.setFloat32(0,n),HS.getFloat32(0)===n),Gu=(n,t)=>{switch(typeof t){case"string":_n(n,119),wl(n,t);break;case"number":x5(t)&&hh(t)<=C5?(_n(n,125),S0(n,t)):j5(t)?(_n(n,124),R5(n,t)):(_n(n,123),P5(n,t));break;case"bigint":_n(n,122),B5(n,t);break;case"object":if(t===null)_n(n,126);else if(sc(t)){_n(n,117),je(n,t.length);for(let e=0;e<t.length;e++)Gu(n,t[e])}else if(t instanceof Uint8Array)_n(n,116),on(n,t);else{_n(n,118);const e=Object.keys(t);je(n,e.length);for(let r=0;r<e.length;r++){const s=e[r];wl(n,s),Gu(n,t[s])}}break;case"boolean":_n(n,t?120:121);break;default:_n(n,127)}};class YS extends wd{constructor(t){super(),this.w=t,this.s=null,this.count=0}write(t){this.s===t?this.count++:(this.count>0&&je(this,this.count-1),this.count=1,this.w(this,t),this.s=t)}}const GS=n=>{n.count>0&&(S0(n.encoder,n.count===1?n.s:-n.s),n.count>1&&je(n.encoder,n.count-2))};class gh{constructor(){this.encoder=new wd,this.s=0,this.count=0}write(t){this.s===t?this.count++:(GS(this),this.count=1,this.s=t)}toUint8Array(){return GS(this),qt(this.encoder)}}const ZS=n=>{if(n.count>0){const t=n.diff*2+(n.count===1?0:1);S0(n.encoder,t),n.count>1&&je(n.encoder,n.count-2)}};class cA{constructor(){this.encoder=new wd,this.s=0,this.count=0,this.diff=0}write(t){this.diff===t-this.s?(this.s=t,this.count++):(ZS(this),this.count=1,this.diff=t-this.s,this.s=t)}toUint8Array(){return ZS(this),qt(this.encoder)}}class F5{constructor(){this.sarr=[],this.s="",this.lensE=new gh}write(t){this.s+=t,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(t.length)}toUint8Array(){const t=new wd;return this.sarr.push(this.s),this.s="",wl(t,this.sarr.join("")),Hg(t,this.lensE.toUint8Array()),qt(t)}}const ei=n=>new Error(n),Cs=()=>{throw ei("Method unimplemented")},Rr=()=>{throw ei("Unexpected case")},oN=ei("Unexpected end of array"),lN=ei("Integer out of Range");class Yg{constructor(t){this.arr=t,this.pos=0}}const Yo=n=>new Yg(n),z5=n=>n.pos!==n.arr.length,U5=(n,t)=>{const e=new Uint8Array(n.arr.buffer,n.pos+n.arr.byteOffset,t);return n.pos+=t,e},Zn=n=>U5(n,Ve(n)),ic=n=>n.arr[n.pos++],Ve=n=>{let t=0,e=1;const r=n.arr.length;for(;n.pos<r;){const s=n.arr[n.pos++];if(t=t+(s&bl)*e,e*=128,s<Mr)return t;if(t>Wh)throw lN}throw oN},k0=n=>{let t=n.arr[n.pos++],e=t&_y,r=64;const s=(t&Mi)>0?-1:1;if((t&Mr)===0)return s*e;const i=n.arr.length;for(;n.pos<i;){if(t=n.arr[n.pos++],e=e+(t&bl)*r,r*=128,t<Mr)return s*e;if(e>Wh)throw lN}throw oN},K5=n=>{let t=Ve(n);if(t===0)return"";{let e=String.fromCodePoint(ic(n));if(--t<100)for(;t--;)e+=String.fromCodePoint(ic(n));else for(;t>0;){const r=t<1e4?t:1e4,s=n.arr.subarray(n.pos,n.pos+r);n.pos+=r,e+=String.fromCodePoint.apply(null,s),t-=r}return decodeURIComponent(escape(e))}},W5=n=>Eu.decode(Zn(n)),wo=Eu?W5:K5,T0=(n,t)=>{const e=new DataView(n.arr.buffer,n.arr.byteOffset+n.pos,t);return n.pos+=t,e},H5=n=>T0(n,4).getFloat32(0,!1),Y5=n=>T0(n,8).getFloat64(0,!1),G5=n=>T0(n,8).getBigInt64(0,!1),Z5=[n=>{},n=>null,k0,H5,Y5,G5,n=>!1,n=>!0,wo,n=>{const t=Ve(n),e={};for(let r=0;r<t;r++){const s=wo(n);e[s]=Zu(n)}return e},n=>{const t=Ve(n),e=[];for(let r=0;r<t;r++)e.push(Zu(n));return e},Zn],Zu=n=>Z5[127-ic(n)](n);class JS extends Yg{constructor(t,e){super(t),this.reader=e,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),z5(this)?this.count=Ve(this)+1:this.count=-1),this.count--,this.s}}class ph extends Yg{constructor(t){super(t),this.s=0,this.count=0}read(){if(this.count===0){this.s=k0(this);const t=sN(this.s);this.count=1,t&&(this.s=-this.s,this.count=Ve(this)+2)}return this.count--,this.s}}class uA extends Yg{constructor(t){super(t),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){const t=k0(this),e=t&1;this.diff=Ts(t/2),this.count=1,e&&(this.count=Ve(this)+2)}return this.s+=this.diff,this.count--,this.s}}class J5{constructor(t){this.decoder=new ph(t),this.str=wo(this.decoder),this.spos=0}read(){const t=this.spos+this.decoder.read(),e=this.str.slice(this.spos,t);return this.spos=t,e}}const V5=crypto.getRandomValues.bind(crypto),aN=()=>V5(new Uint32Array(1))[0],Q5="10000000-1000-4000-8000"+-1e11,X5=()=>Q5.replace(/[018]/g,n=>(n^aN()&15>>n/4).toString(16)),Io=Date.now,VS=n=>new Promise(n);Promise.all.bind(Promise);const QS=n=>n===void 0?null:n;class q5{constructor(){this.map=new Map}setItem(t,e){this.map.set(t,e)}getItem(t){return this.map.get(t)}}let cN=new q5,_0=!0;try{typeof localStorage<"u"&&localStorage&&(cN=localStorage,_0=!1)}catch{}const uN=cN,$5=n=>_0||addEventListener("storage",n),ez=n=>_0||removeEventListener("storage",n),Ju=Symbol("Equality"),dN=(n,t)=>{var e;return n===t||!!((e=n==null?void 0:n[Ju])!=null&&e.call(n,t))||!1},tz=n=>typeof n=="object",nz=Object.assign,rz=Object.keys,sz=(n,t)=>{for(const e in n)t(n[e],e)},iz=(n,t)=>{const e=[];for(const r in n)e.push(t(n[r],r));return e},Hh=n=>rz(n).length,oz=n=>{for(const t in n)return!1;return!0},Cd=(n,t)=>{for(const e in n)if(!t(n[e],e))return!1;return!0},N0=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),lz=(n,t)=>n===t||Hh(n)===Hh(t)&&Cd(n,(e,r)=>(e!==void 0||N0(t,r))&&dN(t[r],e)),az=Object.freeze,fN=n=>{for(const t in n){const e=n[t];(typeof e=="object"||typeof e=="function")&&fN(n[t])}return az(n)},I0=(n,t,e=0)=>{try{for(;e<n.length;e++)n[e](...t)}finally{e<n.length&&I0(n,t,e+1)}},cz=n=>n,Ha=(n,t)=>{if(n===t)return!0;if(n==null||t==null||n.constructor!==t.constructor&&(n.constructor||Object)!==(t.constructor||Object))return!1;if(n[Ju]!=null)return n[Ju](t);switch(n.constructor){case ArrayBuffer:n=new Uint8Array(n),t=new Uint8Array(t);case Uint8Array:{if(n.byteLength!==t.byteLength)return!1;for(let e=0;e<n.length;e++)if(n[e]!==t[e])return!1;break}case Set:{if(n.size!==t.size)return!1;for(const e of n)if(!t.has(e))return!1;break}case Map:{if(n.size!==t.size)return!1;for(const e of n.keys())if(!t.has(e)||!Ha(n.get(e),t.get(e)))return!1;break}case void 0:case Object:if(Hh(n)!==Hh(t))return!1;for(const e in n)if(!N0(n,e)||!Ha(n[e],t[e]))return!1;break;case Array:if(n.length!==t.length)return!1;for(let e=0;e<n.length;e++)if(!Ha(n[e],t[e]))return!1;break;default:return!1}return!0},uz=(n,t)=>t.includes(n),Lo=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]",hN=typeof window<"u"&&typeof document<"u"&&!Lo;let Ds;const dz=()=>{if(Ds===void 0)if(Lo){Ds=xr();const n=process.argv;let t=null;for(let e=0;e<n.length;e++){const r=n[e];r[0]==="-"?(t!==null&&Ds.set(t,""),t=r):t!==null&&(Ds.set(t,r),t=null)}t!==null&&Ds.set(t,"")}else typeof location=="object"?(Ds=xr(),(location.search||"?").slice(1).split("&").forEach(n=>{if(n.length!==0){const[t,e]=n.split("=");Ds.set(`--${WS(t,"-")}`,e),Ds.set(`-${WS(t,"-")}`,e)}})):Ds=xr();return Ds},Ly=n=>dz().has(n),Yh=n=>QS(Lo?process.env[n.toUpperCase().replaceAll("-","_")]:uN.getItem(n)),gN=n=>Ly("--"+n)||Yh(n)!==null,fz=gN("production"),hz=Lo&&uz(process.env.FORCE_COLOR,["true","1","2"]),gz=hz||!Ly("--no-colors")&&!gN("no-color")&&(!Lo||process.stdout.isTTY)&&(!Lo||Ly("--color")||Yh("COLORTERM")!==null||(Yh("TERM")||"").includes("color")),pN=n=>new Uint8Array(n),pz=(n,t,e)=>new Uint8Array(n,t,e),mz=n=>new Uint8Array(n),Az=n=>{let t="";for(let e=0;e<n.byteLength;e++)t+=iN(n[e]);return btoa(t)},yz=n=>Buffer.from(n.buffer,n.byteOffset,n.byteLength).toString("base64"),bz=n=>{const t=atob(n),e=pN(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e},wz=n=>{const t=Buffer.from(n,"base64");return pz(t.buffer,t.byteOffset,t.byteLength)},Cz=hN?Az:yz,xz=hN?bz:wz,vz=n=>{const t=pN(n.byteLength);return t.set(n),t};class Sz{constructor(t,e){this.left=t,this.right=e}}const xi=(n,t)=>new Sz(n,t),XS=n=>n.next()>=.5,dA=(n,t,e)=>Ts(n.next()*(e+1-t)+t),mN=(n,t,e)=>Ts(n.next()*(e+1-t)+t),L0=(n,t,e)=>mN(n,t,e),Ez=n=>iN(L0(n,97,122)),kz=(n,t=0,e=20)=>{const r=L0(n,t,e);let s="";for(let i=0;i<r;i++)s+=Ez(n);return s},fA=(n,t)=>t[L0(n,0,t.length-1)],Tz=Symbol("0schema");class _z{constructor(){this._rerrs=[]}extend(t,e,r,s=null){this._rerrs.push({path:t,expected:e,has:r,message:s})}toString(){const t=[];for(let e=this._rerrs.length-1;e>0;e--){const r=this._rerrs[e];t.push(I5(" ",(this._rerrs.length-e)*2)+`${r.path!=null?`[${r.path}] `:""}${r.has} doesn't match ${r.expected}. ${r.message}`)}return t.join(`
14
+ `)}}const My=(n,t)=>n===t?!0:n==null||t==null||n.constructor!==t.constructor?!1:n[Ju]?dN(n,t):sc(n)?w0(n,e=>C0(t,r=>My(e,r))):tz(n)?Cd(n,(e,r)=>My(e,t[r])):!1;class tr{extends(t){let[e,r]=[this.shape,t.shape];return this.constructor._dilutes&&([r,e]=[e,r]),My(e,r)}equals(t){return this.constructor===t.constructor&&Ha(this.shape,t.shape)}[Tz](){return!0}[Ju](t){return this.equals(t)}validate(t){return this.check(t)}check(t,e){Cs()}get nullable(){return kc(this,Qg)}get optional(){return new bN(this)}cast(t){return qS(t,this),t}expect(t){return qS(t,this),t}}z(tr,"_dilutes",!1);class M0 extends tr{constructor(t,e){super(),this.shape=t,this._c=e}check(t,e=void 0){const r=(t==null?void 0:t.constructor)===this.shape&&(this._c==null||this._c(t));return!r&&(e==null||e.extend(null,this.shape.name,t==null?void 0:t.constructor.name,(t==null?void 0:t.constructor)!==this.shape?"Constructor match failed":"Check failed")),r}}const bn=(n,t=null)=>new M0(n,t);bn(M0);class D0 extends tr{constructor(t){super(),this.shape=t}check(t,e){const r=this.shape(t);return!r&&(e==null||e.extend(null,"custom prop",t==null?void 0:t.constructor.name,"failed to check custom prop")),r}}const Pn=n=>new D0(n);bn(D0);class Gg extends tr{constructor(t){super(),this.shape=t}check(t,e){const r=this.shape.some(s=>s===t);return!r&&(e==null||e.extend(null,this.shape.join(" | "),t.toString())),r}}const Zg=(...n)=>new Gg(n),AN=bn(Gg),Nz=RegExp.escape||(n=>n.replace(/[().|&,$^[\]]/g,t=>"\\"+t)),yN=n=>{if(oc.check(n))return[Nz(n)];if(AN.check(n))return n.shape.map(t=>t+"");if(_N.check(n))return["[+-]?\\d+.?\\d*"];if(NN.check(n))return[".*"];if(Zh.check(n))return n.shape.map(yN).flat(1);Rr()};class Iz extends tr{constructor(t){super(),this.shape=t,this._r=new RegExp("^"+t.map(yN).map(e=>`(${e.join("|")})`).join("")+"$")}check(t,e){const r=this._r.exec(t)!=null;return!r&&(e==null||e.extend(null,this._r.toString(),t.toString(),"String doesn't match string template.")),r}}bn(Iz);const Lz=Symbol("optional");class bN extends tr{constructor(t){super(),this.shape=t}check(t,e){const r=t===void 0||this.shape.check(t);return!r&&(e==null||e.extend(null,"undefined (optional)","()")),r}get[Lz](){return!0}}const Mz=bn(bN);class Dz extends tr{check(t,e){return e==null||e.extend(null,"never",typeof t),!1}}bn(Dz);const kg=class kg extends tr{constructor(t,e=!1){super(),this.shape=t,this._isPartial=e}get partial(){return new kg(this.shape,!0)}check(t,e){return t==null?(e==null||e.extend(null,"object","null"),!1):Cd(this.shape,(r,s)=>{const i=this._isPartial&&!N0(t,s)||r.check(t[s],e);return!i&&(e==null||e.extend(s.toString(),r.toString(),typeof t[s],"Object property does not match")),i})}};z(kg,"_dilutes",!0);let Gh=kg;const Oz=n=>new Gh(n),Rz=bn(Gh),Pz=Pn(n=>n!=null&&(n.constructor===Object||n.constructor==null));class wN extends tr{constructor(t,e){super(),this.shape={keys:t,values:e}}check(t,e){return t!=null&&Cd(t,(r,s)=>{const i=this.shape.keys.check(s,e);return!i&&(e==null||e.extend(s+"","Record",typeof t,i?"Key doesn't match schema":"Value doesn't match value")),i&&this.shape.values.check(r,e)})}}const CN=(n,t)=>new wN(n,t),Bz=bn(wN);class xN extends tr{constructor(t){super(),this.shape=t}check(t,e){return t!=null&&Cd(this.shape,(r,s)=>{const i=r.check(t[s],e);return!i&&(e==null||e.extend(s.toString(),"Tuple",typeof r)),i})}}const jz=(...n)=>new xN(n);bn(xN);class vN extends tr{constructor(t){super(),this.shape=t.length===1?t[0]:new Jg(t)}check(t,e){const r=sc(t)&&w0(t,s=>this.shape.check(s));return!r&&(e==null||e.extend(null,"Array","")),r}}const SN=(...n)=>new vN(n),Fz=bn(vN),zz=Pn(n=>sc(n));class EN extends tr{constructor(t,e){super(),this.shape=t,this._c=e}check(t,e){const r=t instanceof this.shape&&(this._c==null||this._c(t));return!r&&(e==null||e.extend(null,this.shape.name,t==null?void 0:t.constructor.name)),r}}const Uz=(n,t=null)=>new EN(n,t);bn(EN);const Kz=Uz(tr);class Wz extends tr{constructor(t){super(),this.len=t.length-1,this.args=jz(...t.slice(-1)),this.res=t[this.len]}check(t,e){const r=t.constructor===Function&&t.length<=this.len;return!r&&(e==null||e.extend(null,"function",typeof t)),r}}const Hz=bn(Wz),Yz=Pn(n=>typeof n=="function");class Gz extends tr{constructor(t){super(),this.shape=t}check(t,e){const r=w0(this.shape,s=>s.check(t,e));return!r&&(e==null||e.extend(null,"Intersectinon",typeof t)),r}}bn(Gz,n=>n.shape.length>0);class Jg extends tr{constructor(t){super(),this.shape=t}check(t,e){const r=C0(this.shape,s=>s.check(t,e));return e==null||e.extend(null,"Union",typeof t),r}}z(Jg,"_dilutes",!0);const kc=(...n)=>n.findIndex(t=>Zh.check(t))>=0?kc(...n.map(t=>Vu(t)).map(t=>Zh.check(t)?t.shape:[t]).flat(1)):n.length===1?n[0]:new Jg(n),Zh=bn(Jg),kN=()=>!0,Jh=Pn(kN),Zz=bn(D0,n=>n.shape===kN),O0=Pn(n=>typeof n=="bigint"),Jz=Pn(n=>n===O0),TN=Pn(n=>typeof n=="symbol");Pn(n=>n===TN);const Ya=Pn(n=>typeof n=="number"),_N=Pn(n=>n===Ya),oc=Pn(n=>typeof n=="string"),NN=Pn(n=>n===oc),Vg=Pn(n=>typeof n=="boolean"),Vz=Pn(n=>n===Vg),IN=Zg(void 0);bn(Gg,n=>n.shape.length===1&&n.shape[0]===void 0);Zg(void 0);const Qg=Zg(null),Qz=bn(Gg,n=>n.shape.length===1&&n.shape[0]===null);bn(Uint8Array);bn(M0,n=>n.shape===Uint8Array);const Xz=kc(Ya,oc,Qg,IN,O0,Vg,TN);(()=>{const n=SN(Jh),t=CN(oc,Jh),e=kc(Ya,oc,Qg,Vg,n,t);return n.shape=e,t.shape.values=e,e})();const Vu=n=>{if(Kz.check(n))return n;if(Pz.check(n)){const t={};for(const e in n)t[e]=Vu(n[e]);return Oz(t)}else{if(zz.check(n))return kc(...n.map(Vu));if(Xz.check(n))return Zg(n);if(Yz.check(n))return bn(n)}Rr()},qS=fz?()=>{}:(n,t)=>{const e=new _z;if(!t.check(n,e))throw ei(`Expected value to be of type ${t.constructor.name}.
15
+ ${e.toString()}`)};class qz{constructor(t){this.patterns=[],this.$state=t}if(t,e){return this.patterns.push({if:Vu(t),h:e}),this}else(t){return this.if(Jh,t)}done(){return(t,e)=>{for(let r=0;r<this.patterns.length;r++){const s=this.patterns[r];if(s.if.check(t))return s.h(t,e)}throw ei("Unhandled pattern")}}}const $z=n=>new qz(n),LN=$z(Jh).if(_N,(n,t)=>dA(t,KS,Wh)).if(NN,(n,t)=>kz(t)).if(Vz,(n,t)=>XS(t)).if(Jz,(n,t)=>BigInt(dA(t,KS,Wh))).if(Zh,(n,t)=>va(t,fA(t,n.shape))).if(Rz,(n,t)=>{const e={};for(const r in n.shape){let s=n.shape[r];if(Mz.check(s)){if(XS(t))continue;s=s.shape}e[r]=LN(s,t)}return e}).if(Fz,(n,t)=>{const e=[],r=mN(t,0,42);for(let s=0;s<r;s++)e.push(va(t,n.shape));return e}).if(AN,(n,t)=>fA(t,n.shape)).if(Qz,(n,t)=>null).if(Hz,(n,t)=>{const e=va(t,n.res);return()=>e}).if(Zz,(n,t)=>va(t,fA(t,[Ya,oc,Qg,IN,O0,Vg,SN(Ya),CN(kc("a","b","c"),Ya)]))).if(Bz,(n,t)=>{const e={},r=dA(t,0,3);for(let s=0;s<r;s++){const i=va(t,n.shape.keys),o=va(t,n.shape.values);e[i]=o}return e}).done(),va=(n,t)=>LN(Vu(t),n),Xg=typeof document<"u"?document:{};Pn(n=>n.nodeType===s8);typeof DOMParser<"u"&&new DOMParser;Pn(n=>n.nodeType===t8);Pn(n=>n.nodeType===n8);const e8=n=>m5(n,(t,e)=>`${e}:${t};`).join(""),t8=Xg.ELEMENT_NODE,n8=Xg.TEXT_NODE,r8=Xg.DOCUMENT_NODE,s8=Xg.DOCUMENT_FRAGMENT_NODE;Pn(n=>n.nodeType===r8);const Ji=Symbol,MN=Ji(),DN=Ji(),i8=Ji(),o8=Ji(),l8=Ji(),ON=Ji(),a8=Ji(),R0=Ji(),c8=Ji(),u8=n=>{var s;n.length===1&&((s=n[0])==null?void 0:s.constructor)===Function&&(n=n[0]());const t=[],e=[];let r=0;for(;r<n.length;r++){const i=n[r];if(i===void 0)break;if(i.constructor===String||i.constructor===Number)t.push(i);else if(i.constructor===Object)break}for(r>0&&e.push(t.join(""));r<n.length;r++){const i=n[r];i instanceof Symbol||e.push(i)}return e},d8={[MN]:xi("font-weight","bold"),[DN]:xi("font-weight","normal"),[i8]:xi("color","blue"),[l8]:xi("color","green"),[o8]:xi("color","grey"),[ON]:xi("color","red"),[a8]:xi("color","purple"),[R0]:xi("color","orange"),[c8]:xi("color","black")},f8=n=>{var o;n.length===1&&((o=n[0])==null?void 0:o.constructor)===Function&&(n=n[0]());const t=[],e=[],r=xr();let s=[],i=0;for(;i<n.length;i++){const l=n[i],a=d8[l];if(a!==void 0)r.set(a.left,a.right);else{if(l===void 0)break;if(l.constructor===String||l.constructor===Number){const u=e8(r);i>0||u.length>0?(t.push("%c"+l),e.push(u)):t.push(l)}else break}}for(i>0&&(s=e,s.unshift(t.join("")));i<n.length;i++){const l=n[i];l instanceof Symbol||s.push(l)}return s},RN=gz?f8:u8,h8=(...n)=>{console.log(...RN(n)),BN.forEach(t=>t.print(n))},PN=(...n)=>{console.warn(...RN(n)),n.unshift(R0),BN.forEach(t=>t.print(n))},BN=No(),jN=n=>({[Symbol.iterator](){return this},next:n}),g8=(n,t)=>jN(()=>{let e;do e=n.next();while(!e.done&&!t(e.value));return e}),hA=(n,t)=>jN(()=>{const{done:e,value:r}=n.next();return{done:e,value:e?void 0:t(r)}});class P0{constructor(t,e){this.clock=t,this.len=e}}class Tc{constructor(){this.clients=new Map}}const lc=(n,t,e)=>t.clients.forEach((r,s)=>{const i=n.doc.store.clients.get(s);if(i!=null){const o=i[i.length-1],l=o.id.clock+o.length;for(let a=0,u=r[a];a<r.length&&u.clock<l;u=r[++a])XN(n,i,u.clock,u.len,e)}}),p8=(n,t)=>{let e=0,r=n.length-1;for(;e<=r;){const s=Ts((e+r)/2),i=n[s],o=i.clock;if(o<=t){if(t<o+i.len)return s;e=s+1}else r=s-1}return null},xd=(n,t)=>{const e=n.clients.get(t.client);return e!==void 0&&p8(e,t.clock)!==null},B0=n=>{n.clients.forEach(t=>{t.sort((s,i)=>s.clock-i.clock);let e,r;for(e=1,r=1;e<t.length;e++){const s=t[r-1],i=t[e];s.clock+s.len>=i.clock?s.len=$l(s.len,i.clock+i.len-s.clock):(r<e&&(t[r]=i),r++)}t.length=r})},Dy=n=>{const t=new Tc;for(let e=0;e<n.length;e++)n[e].clients.forEach((r,s)=>{if(!t.clients.has(s)){const i=r.slice();for(let o=e+1;o<n.length;o++)y5(i,n[o].clients.get(s)||[]);t.clients.set(s,i)}});return B0(t),t},Qu=(n,t,e,r)=>{li(n.clients,t,()=>[]).push(new P0(e,r))},m8=()=>new Tc,A8=n=>{const t=m8();return n.clients.forEach((e,r)=>{const s=[];for(let i=0;i<e.length;i++){const o=e[i];if(o.deleted){const l=o.id.clock;let a=o.length;if(i+1<e.length)for(let u=e[i+1];i+1<e.length&&u.deleted;u=e[++i+1])a+=u.length;s.push(new P0(l,a))}}s.length>0&&t.clients.set(r,s)}),t},_c=(n,t)=>{je(n.restEncoder,t.clients.size),Fi(t.clients.entries()).sort((e,r)=>r[0]-e[0]).forEach(([e,r])=>{n.resetDsCurVal(),je(n.restEncoder,e);const s=r.length;je(n.restEncoder,s);for(let i=0;i<s;i++){const o=r[i];n.writeDsClock(o.clock),n.writeDsLen(o.len)}})},j0=n=>{const t=new Tc,e=Ve(n.restDecoder);for(let r=0;r<e;r++){n.resetDsCurVal();const s=Ve(n.restDecoder),i=Ve(n.restDecoder);if(i>0){const o=li(t.clients,s,()=>[]);for(let l=0;l<i;l++)o.push(new P0(n.readDsClock(),n.readDsLen()))}}return t},$S=(n,t,e)=>{const r=new Tc,s=Ve(n.restDecoder);for(let i=0;i<s;i++){n.resetDsCurVal();const o=Ve(n.restDecoder),l=Ve(n.restDecoder),a=e.clients.get(o)||[],u=an(e,o);for(let d=0;d<l;d++){const f=n.readDsClock(),g=f+n.readDsLen();if(f<u){u<g&&Qu(r,o,u,g-u);let p=ni(a,f),m=a[p];for(!m.deleted&&m.id.clock<f&&(a.splice(p+1,0,tg(t,m,f-m.id.clock)),p++);p<a.length&&(m=a[p++],m.id.clock<g);)m.deleted||(g<m.id.clock+m.length&&a.splice(p,0,tg(t,m,g-m.id.clock)),m.delete(t))}else Qu(r,o,f,g-f)}}if(r.clients.size>0){const i=new Rl;return je(i.restEncoder,0),_c(i,r),i.toUint8Array()}return null},FN=aN;class ti extends nN{constructor({guid:t=X5(),collectionid:e=null,gc:r=!0,gcFilter:s=()=>!0,meta:i=null,autoLoad:o=!1,shouldLoad:l=!0}={}){super(),this.gc=r,this.gcFilter=s,this.clientID=FN(),this.guid=t,this.collectionid=e,this.share=new Map,this.store=new VN,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=l,this.autoLoad=o,this.meta=i,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=VS(u=>{this.on("load",()=>{this.isLoaded=!0,u(this)})});const a=()=>VS(u=>{const d=f=>{(f===void 0||f===!0)&&(this.off("sync",d),u())};this.on("sync",d)});this.on("sync",u=>{u===!1&&this.isSynced&&(this.whenSynced=a()),this.isSynced=u===void 0||u===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[this])}),this.whenSynced=a()}load(){const t=this._item;t!==null&&!this.shouldLoad&&Bt(t.parent.doc,e=>{e.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(Fi(this.subdocs).map(t=>t.guid))}transact(t,e=null){return Bt(this,t,e)}get(t,e=On){const r=li(this.share,t,()=>{const i=new e;return i._integrate(this,null),i}),s=r.constructor;if(e!==On&&s!==e)if(s===On){const i=new e;i._map=r._map,r._map.forEach(o=>{for(;o!==null;o=o.left)o.parent=i}),i._start=r._start;for(let o=i._start;o!==null;o=o.right)o.parent=i;return i._length=r._length,this.share.set(t,i),i._integrate(this,null),i}else throw new Error(`Type with the name ${t} has already been defined with a different constructor`);return r}getArray(t=""){return this.get(t,Ja)}getText(t=""){return this.get(t,cc)}getMap(t=""){return this.get(t,er)}getXmlElement(t=""){return this.get(t,cs)}getXmlFragment(t=""){return this.get(t,Pl)}toJSON(){const t={};return this.share.forEach((e,r)=>{t[r]=e.toJSON()}),t}destroy(){this.isDestroyed=!0,Fi(this.subdocs).forEach(e=>e.destroy());const t=this._item;if(t!==null){this._item=null;const e=t.content;e.doc=new ti({guid:this.guid,...e.opts,shouldLoad:!1}),e.doc._item=t,Bt(t.parent.doc,r=>{const s=e.doc;t.deleted||r.subdocsAdded.add(s),r.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}}class zN{constructor(t){this.restDecoder=t}resetDsCurVal(){}readDsClock(){return Ve(this.restDecoder)}readDsLen(){return Ve(this.restDecoder)}}class UN extends zN{readLeftID(){return nt(Ve(this.restDecoder),Ve(this.restDecoder))}readRightID(){return nt(Ve(this.restDecoder),Ve(this.restDecoder))}readClient(){return Ve(this.restDecoder)}readInfo(){return ic(this.restDecoder)}readString(){return wo(this.restDecoder)}readParentInfo(){return Ve(this.restDecoder)===1}readTypeRef(){return Ve(this.restDecoder)}readLen(){return Ve(this.restDecoder)}readAny(){return Zu(this.restDecoder)}readBuf(){return vz(Zn(this.restDecoder))}readJSON(){return JSON.parse(wo(this.restDecoder))}readKey(){return wo(this.restDecoder)}}class y8{constructor(t){this.dsCurrVal=0,this.restDecoder=t}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=Ve(this.restDecoder),this.dsCurrVal}readDsLen(){const t=Ve(this.restDecoder)+1;return this.dsCurrVal+=t,t}}class ac extends y8{constructor(t){super(t),this.keys=[],Ve(t),this.keyClockDecoder=new uA(Zn(t)),this.clientDecoder=new ph(Zn(t)),this.leftClockDecoder=new uA(Zn(t)),this.rightClockDecoder=new uA(Zn(t)),this.infoDecoder=new JS(Zn(t),ic),this.stringDecoder=new J5(Zn(t)),this.parentInfoDecoder=new JS(Zn(t),ic),this.typeRefDecoder=new ph(Zn(t)),this.lenDecoder=new ph(Zn(t))}readLeftID(){return new Ga(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new Ga(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return Zu(this.restDecoder)}readBuf(){return Zn(this.restDecoder)}readJSON(){return Zu(this.restDecoder)}readKey(){const t=this.keyClockDecoder.read();if(t<this.keys.length)return this.keys[t];{const e=this.stringDecoder.read();return this.keys.push(e),e}}}class KN{constructor(){this.restEncoder=Jn()}toUint8Array(){return qt(this.restEncoder)}resetDsCurVal(){}writeDsClock(t){je(this.restEncoder,t)}writeDsLen(t){je(this.restEncoder,t)}}class vd extends KN{writeLeftID(t){je(this.restEncoder,t.client),je(this.restEncoder,t.clock)}writeRightID(t){je(this.restEncoder,t.client),je(this.restEncoder,t.clock)}writeClient(t){je(this.restEncoder,t)}writeInfo(t){Ny(this.restEncoder,t)}writeString(t){wl(this.restEncoder,t)}writeParentInfo(t){je(this.restEncoder,t?1:0)}writeTypeRef(t){je(this.restEncoder,t)}writeLen(t){je(this.restEncoder,t)}writeAny(t){Gu(this.restEncoder,t)}writeBuf(t){on(this.restEncoder,t)}writeJSON(t){wl(this.restEncoder,JSON.stringify(t))}writeKey(t){wl(this.restEncoder,t)}}class WN{constructor(){this.restEncoder=Jn(),this.dsCurrVal=0}toUint8Array(){return qt(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(t){const e=t-this.dsCurrVal;this.dsCurrVal=t,je(this.restEncoder,e)}writeDsLen(t){t===0&&Rr(),je(this.restEncoder,t-1),this.dsCurrVal+=t}}class Rl extends WN{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new cA,this.clientEncoder=new gh,this.leftClockEncoder=new cA,this.rightClockEncoder=new cA,this.infoEncoder=new YS(Ny),this.stringEncoder=new F5,this.parentInfoEncoder=new YS(Ny),this.typeRefEncoder=new gh,this.lenEncoder=new gh}toUint8Array(){const t=Jn();return je(t,0),on(t,this.keyClockEncoder.toUint8Array()),on(t,this.clientEncoder.toUint8Array()),on(t,this.leftClockEncoder.toUint8Array()),on(t,this.rightClockEncoder.toUint8Array()),on(t,qt(this.infoEncoder)),on(t,this.stringEncoder.toUint8Array()),on(t,qt(this.parentInfoEncoder)),on(t,this.typeRefEncoder.toUint8Array()),on(t,this.lenEncoder.toUint8Array()),Hg(t,qt(this.restEncoder)),qt(t)}writeLeftID(t){this.clientEncoder.write(t.client),this.leftClockEncoder.write(t.clock)}writeRightID(t){this.clientEncoder.write(t.client),this.rightClockEncoder.write(t.clock)}writeClient(t){this.clientEncoder.write(t)}writeInfo(t){this.infoEncoder.write(t)}writeString(t){this.stringEncoder.write(t)}writeParentInfo(t){this.parentInfoEncoder.write(t?1:0)}writeTypeRef(t){this.typeRefEncoder.write(t)}writeLen(t){this.lenEncoder.write(t)}writeAny(t){Gu(this.restEncoder,t)}writeBuf(t){on(this.restEncoder,t)}writeJSON(t){Gu(this.restEncoder,t)}writeKey(t){const e=this.keyMap.get(t);e===void 0?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(t)):this.keyClockEncoder.write(e)}}const b8=(n,t,e,r)=>{r=$l(r,t[0].id.clock);const s=ni(t,r);je(n.restEncoder,t.length-s),n.writeClient(e),je(n.restEncoder,r);const i=t[s];i.write(n,r-i.id.clock);for(let o=s+1;o<t.length;o++)t[o].write(n,0)},F0=(n,t,e)=>{const r=new Map;e.forEach((s,i)=>{an(t,i)>s&&r.set(i,s)}),qg(t).forEach((s,i)=>{e.has(i)||r.set(i,0)}),je(n.restEncoder,r.size),Fi(r.entries()).sort((s,i)=>i[0]-s[0]).forEach(([s,i])=>{b8(n,t.clients.get(s),s,i)})},w8=(n,t)=>{const e=xr(),r=Ve(n.restDecoder);for(let s=0;s<r;s++){const i=Ve(n.restDecoder),o=new Array(i),l=n.readClient();let a=Ve(n.restDecoder);e.set(l,{i:0,refs:o});for(let u=0;u<i;u++){const d=n.readInfo();switch(Wg&d){case 0:{const f=n.readLen();o[u]=new Jr(nt(l,a),f),a+=f;break}case 10:{const f=Ve(n.restDecoder);o[u]=new Vr(nt(l,a),f),a+=f;break}default:{const f=(d&(Mi|Mr))===0,g=new jt(nt(l,a),null,(d&Mr)===Mr?n.readLeftID():null,null,(d&Mi)===Mi?n.readRightID():null,f?n.readParentInfo()?t.get(n.readString()):n.readLeftID():null,f&&(d&Hu)===Hu?n.readString():null,wI(n,d));o[u]=g,a+=g.length}}}}return e},C8=(n,t,e)=>{const r=[];let s=Fi(e.keys()).sort((p,m)=>p-m);if(s.length===0)return null;const i=()=>{if(s.length===0)return null;let p=e.get(s[s.length-1]);for(;p.refs.length===p.i;)if(s.pop(),s.length>0)p=e.get(s[s.length-1]);else return null;return p};let o=i();if(o===null)return null;const l=new VN,a=new Map,u=(p,m)=>{const y=a.get(p);(y==null||y>m)&&a.set(p,m)};let d=o.refs[o.i++];const f=new Map,g=()=>{for(const p of r){const m=p.id.client,y=e.get(m);y?(y.i--,l.clients.set(m,y.refs.slice(y.i)),e.delete(m),y.i=0,y.refs=[]):l.clients.set(m,[p]),s=s.filter(b=>b!==m)}r.length=0};for(;;){if(d.constructor!==Vr){const m=li(f,d.id.client,()=>an(t,d.id.client))-d.id.clock;if(m<0)r.push(d),u(d.id.client,d.id.clock-1),g();else{const y=d.getMissing(n,t);if(y!==null){r.push(d);const b=e.get(y)||{refs:[],i:0};if(b.refs.length===b.i)u(y,an(t,y)),g();else{d=b.refs[b.i++];continue}}else(m===0||m<d.length)&&(d.integrate(n,m),f.set(d.id.client,d.id.clock+d.length))}}if(r.length>0)d=r.pop();else if(o!==null&&o.i<o.refs.length)d=o.refs[o.i++];else{if(o=i(),o===null)break;d=o.refs[o.i++]}}if(l.clients.size>0){const p=new Rl;return F0(p,l,new Map),je(p.restEncoder,0),{missing:a,update:p.toUint8Array()}}return null},x8=(n,t)=>F0(n,t.doc.store,t.beforeState),v8=(n,t,e,r=new ac(n))=>Bt(t,s=>{s.local=!1;let i=!1;const o=s.doc,l=o.store,a=w8(r,o),u=C8(s,l,a),d=l.pendingStructs;if(d){for(const[g,p]of d.missing)if(p<an(l,g)){i=!0;break}if(u){for(const[g,p]of u.missing){const m=d.missing.get(g);(m==null||m>p)&&d.missing.set(g,p)}d.update=Qh([d.update,u.update])}}else l.pendingStructs=u;const f=$S(r,s,l);if(l.pendingDs){const g=new ac(Yo(l.pendingDs));Ve(g.restDecoder);const p=$S(g,s,l);f&&p?l.pendingDs=Qh([f,p]):l.pendingDs=f||p}else l.pendingDs=f;if(i){const g=l.pendingStructs.update;l.pendingStructs=null,HN(s.doc,g)}},e,!1),HN=(n,t,e,r=ac)=>{const s=Yo(t);v8(s,n,e,new r(s))},S8=(n,t,e)=>HN(n,t,e,UN),E8=(n,t,e=new Map)=>{F0(n,t.store,e),_c(n,A8(t.store))},k8=(n,t=new Uint8Array([0]),e=new Rl)=>{const r=YN(t);E8(e,n,r);const s=[e.toUint8Array()];if(n.store.pendingDs&&s.push(n.store.pendingDs),n.store.pendingStructs&&s.push(J8(n.store.pendingStructs.update,t)),s.length>1){if(e.constructor===vd)return G8(s.map((i,o)=>o===0?i:Q8(i)));if(e.constructor===Rl)return Qh(s)}return s[0]},T8=(n,t)=>k8(n,t,new vd),_8=n=>{const t=new Map,e=Ve(n.restDecoder);for(let r=0;r<e;r++){const s=Ve(n.restDecoder),i=Ve(n.restDecoder);t.set(s,i)}return t},YN=n=>_8(new zN(Yo(n))),GN=(n,t)=>(je(n.restEncoder,t.size),Fi(t.entries()).sort((e,r)=>r[0]-e[0]).forEach(([e,r])=>{je(n.restEncoder,e),je(n.restEncoder,r)}),n),N8=(n,t)=>GN(n,qg(t.store)),I8=(n,t=new WN)=>(n instanceof Map?GN(t,n):N8(t,n),t.toUint8Array()),L8=n=>I8(n,new KN);class M8{constructor(){this.l=[]}}const e1=()=>new M8,t1=(n,t)=>n.l.push(t),n1=(n,t)=>{const e=n.l,r=e.length;n.l=e.filter(s=>t!==s),r===n.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},ZN=(n,t,e)=>I0(n.l,[t,e]);class Ga{constructor(t,e){this.client=t,this.clock=e}}const ja=(n,t)=>n===t||n!==null&&t!==null&&n.client===t.client&&n.clock===t.clock,nt=(n,t)=>new Ga(n,t),JN=n=>{for(const[t,e]of n.doc.share.entries())if(e===n)return t;throw Rr()},Vh=(n,t)=>{for(;t!==null;){if(t.parent===n)return!0;t=t.parent._item}return!1};class D8{constructor(t,e,r,s=0){this.type=t,this.tname=e,this.item=r,this.assoc=s}}class O8{constructor(t,e,r=0){this.type=t,this.index=e,this.assoc=r}}const R8=(n,t,e=0)=>new O8(n,t,e),Pf=(n,t,e)=>{let r=null,s=null;return n._item===null?s=JN(n):r=nt(n._item.id.client,n._item.id.clock),new D8(r,s,t,e)},Oy=(n,t,e=0)=>{let r=n._start;if(e<0){if(t===0)return Pf(n,null,e);t--}for(;r!==null;){if(!r.deleted&&r.countable){if(r.length>t)return Pf(n,nt(r.id.client,r.id.clock+t),e);t-=r.length}if(r.right===null&&e<0)return Pf(n,r.lastId,e);r=r.right}return Pf(n,null,e)},P8=(n,t)=>{const e=Za(n,t),r=t.clock-e.id.clock;return{item:e,diff:r}},B8=(n,t,e=!0)=>{const r=t.store,s=n.item,i=n.type,o=n.tname,l=n.assoc;let a=null,u=0;if(s!==null){if(an(r,s.client)<=s.clock)return null;const d=e?Fy(r,s):P8(r,s),f=d.item;if(!(f instanceof jt))return null;if(a=f.parent,a._item===null||!a._item.deleted){u=f.deleted||!f.countable?0:d.diff+(l>=0?0:1);let g=f.left;for(;g!==null;)!g.deleted&&g.countable&&(u+=g.length),g=g.left}}else{if(o!==null)a=t.get(o);else if(i!==null){if(an(r,i.client)<=i.clock)return null;const{item:d}=e?Fy(r,i):{item:Za(r,i)};if(d instanceof jt&&d.content instanceof ai)a=d.content.type;else return null}else throw Rr();l>=0?u=a._length:u=0}return R8(a,u,n.assoc)},j8=(n,t)=>n===t||n!==null&&t!==null&&n.tname===t.tname&&ja(n.item,t.item)&&ja(n.type,t.type)&&n.assoc===t.assoc,Ma=(n,t)=>t===void 0?!n.deleted:t.sv.has(n.id.client)&&(t.sv.get(n.id.client)||0)>n.id.clock&&!xd(t.ds,n.id),Ry=(n,t)=>{const e=li(n.meta,Ry,No),r=n.doc.store;e.has(t)||(t.sv.forEach((s,i)=>{s<an(r,i)&&wr(n,nt(i,s))}),lc(n,t.ds,s=>{}),e.add(t))};class VN{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const qg=n=>{const t=new Map;return n.clients.forEach((e,r)=>{const s=e[e.length-1];t.set(r,s.id.clock+s.length)}),t},an=(n,t)=>{const e=n.clients.get(t);if(e===void 0)return 0;const r=e[e.length-1];return r.id.clock+r.length},QN=(n,t)=>{let e=n.clients.get(t.id.client);if(e===void 0)e=[],n.clients.set(t.id.client,e);else{const r=e[e.length-1];if(r.id.clock+r.length!==t.id.clock)throw Rr()}e.push(t)},ni=(n,t)=>{let e=0,r=n.length-1,s=n[r],i=s.id.clock;if(i===t)return r;let o=Ts(t/(i+s.length-1)*r);for(;e<=r;){if(s=n[o],i=s.id.clock,i<=t){if(t<i+s.length)return o;e=o+1}else r=o-1;o=Ts((e+r)/2)}throw Rr()},F8=(n,t)=>{const e=n.clients.get(t.client);return e[ni(e,t.clock)]},Za=F8,Py=(n,t,e)=>{const r=ni(t,e),s=t[r];return s.id.clock<e&&s instanceof jt?(t.splice(r+1,0,tg(n,s,e-s.id.clock)),r+1):r},wr=(n,t)=>{const e=n.doc.store.clients.get(t.client);return e[Py(n,e,t.clock)]},r1=(n,t,e)=>{const r=t.clients.get(e.client),s=ni(r,e.clock),i=r[s];return e.clock!==i.id.clock+i.length-1&&i.constructor!==Jr&&r.splice(s+1,0,tg(n,i,e.clock-i.id.clock+1)),i},z8=(n,t,e)=>{const r=n.clients.get(t.id.client);r[ni(r,t.id.clock)]=e},XN=(n,t,e,r,s)=>{if(r===0)return;const i=e+r;let o=Py(n,t,e),l;do l=t[o++],i<l.id.clock+l.length&&Py(n,t,i),s(l);while(o<t.length&&t[o].id.clock<i)};class U8{constructor(t,e,r){this.doc=t,this.deleteSet=new Tc,this.beforeState=qg(t.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=e,this.meta=new Map,this.local=r,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}}const s1=(n,t)=>t.deleteSet.clients.size===0&&!A5(t.afterState,(e,r)=>t.beforeState.get(r)!==e)?!1:(B0(t.deleteSet),x8(n,t),_c(n,t.deleteSet),!0),i1=(n,t,e)=>{const r=t._item;(r===null||r.id.clock<(n.beforeState.get(r.id.client)||0)&&!r.deleted)&&li(n.changed,t,No).add(e)},mh=(n,t)=>{let e=n[t],r=n[t-1],s=t;for(;s>0;e=r,r=n[--s-1]){if(r.deleted===e.deleted&&r.constructor===e.constructor&&r.mergeWith(e)){e instanceof jt&&e.parentSub!==null&&e.parent._map.get(e.parentSub)===e&&e.parent._map.set(e.parentSub,r);continue}break}const i=t-s;return i&&n.splice(t+1-i,i),i},K8=(n,t,e)=>{for(const[r,s]of n.clients.entries()){const i=t.clients.get(r);for(let o=s.length-1;o>=0;o--){const l=s[o],a=l.clock+l.len;for(let u=ni(i,l.clock),d=i[u];u<i.length&&d.id.clock<a;d=i[++u]){const f=i[u];if(l.clock+l.len<=f.id.clock)break;f instanceof jt&&f.deleted&&!f.keep&&e(f)&&f.gc(t,!1)}}}},W8=(n,t)=>{n.clients.forEach((e,r)=>{const s=t.clients.get(r);for(let i=e.length-1;i>=0;i--){const o=e[i],l=x0(s.length-1,1+ni(s,o.clock+o.len-1));for(let a=l,u=s[a];a>0&&u.id.clock>=o.clock;u=s[a])a-=1+mh(s,a)}})},qN=(n,t)=>{if(t<n.length){const e=n[t],r=e.doc,s=r.store,i=e.deleteSet,o=e._mergeStructs;try{B0(i),e.afterState=qg(e.doc.store),r.emit("beforeObserverCalls",[e,r]);const l=[];e.changed.forEach((a,u)=>l.push(()=>{(u._item===null||!u._item.deleted)&&u._callObserver(e,a)})),l.push(()=>{e.changedParentTypes.forEach((a,u)=>{u._dEH.l.length>0&&(u._item===null||!u._item.deleted)&&(a=a.filter(d=>d.target._item===null||!d.target._item.deleted),a.forEach(d=>{d.currentTarget=u,d._path=null}),a.sort((d,f)=>d.path.length-f.path.length),ZN(u._dEH,a,e))})}),l.push(()=>r.emit("afterTransaction",[e,r])),I0(l,[]),e._needFormattingCleanup&&c6(e)}finally{r.gc&&K8(i,s,r.gcFilter),W8(i,s),e.afterState.forEach((d,f)=>{const g=e.beforeState.get(f)||0;if(g!==d){const p=s.clients.get(f),m=$l(ni(p,g),1);for(let y=p.length-1;y>=m;)y-=1+mh(p,y)}});for(let d=o.length-1;d>=0;d--){const{client:f,clock:g}=o[d].id,p=s.clients.get(f),m=ni(p,g);m+1<p.length&&mh(p,m+1)>1||m>0&&mh(p,m)}if(!e.local&&e.afterState.get(r.clientID)!==e.beforeState.get(r.clientID)&&(h8(R0,MN,"[yjs] ",DN,ON,"Changed the client-id because another client seems to be using it."),r.clientID=FN()),r.emit("afterTransactionCleanup",[e,r]),r._observers.has("update")){const d=new vd;s1(d,e)&&r.emit("update",[d.toUint8Array(),e.origin,r,e])}if(r._observers.has("updateV2")){const d=new Rl;s1(d,e)&&r.emit("updateV2",[d.toUint8Array(),e.origin,r,e])}const{subdocsAdded:l,subdocsLoaded:a,subdocsRemoved:u}=e;(l.size>0||u.size>0||a.size>0)&&(l.forEach(d=>{d.clientID=r.clientID,d.collectionid==null&&(d.collectionid=r.collectionid),r.subdocs.add(d)}),u.forEach(d=>r.subdocs.delete(d)),r.emit("subdocs",[{loaded:a,added:l,removed:u},r,e]),u.forEach(d=>d.destroy())),n.length<=t+1?(r._transactionCleanups=[],r.emit("afterAllTransactions",[r,n])):qN(n,t+1)}}},Bt=(n,t,e=null,r=!0)=>{const s=n._transactionCleanups;let i=!1,o=null;n._transaction===null&&(i=!0,n._transaction=new U8(n,e,r),s.push(n._transaction),s.length===1&&n.emit("beforeAllTransactions",[n]),n.emit("beforeTransaction",[n._transaction,n]));try{o=t(n._transaction)}finally{if(i){const l=n._transaction===s[0];n._transaction=null,l&&qN(s,0)}}return o};class H8{constructor(t,e){this.insertions=e,this.deletions=t,this.meta=new Map}}const o1=(n,t,e)=>{lc(n,e.deletions,r=>{r instanceof jt&&t.scope.some(s=>s===n.doc||Vh(s,r))&&Z0(r,!1)})},l1=(n,t,e)=>{let r=null;const s=n.doc,i=n.scope;Bt(s,l=>{for(;t.length>0&&n.currStackItem===null;){const a=s.store,u=t.pop(),d=new Set,f=[];let g=!1;lc(l,u.insertions,p=>{if(p instanceof jt){if(p.redone!==null){let{item:m,diff:y}=Fy(a,p.id);y>0&&(m=wr(l,nt(m.id.client,m.id.clock+y))),p=m}!p.deleted&&i.some(m=>m===l.doc||Vh(m,p))&&f.push(p)}}),lc(l,u.deletions,p=>{p instanceof jt&&i.some(m=>m===l.doc||Vh(m,p))&&!xd(u.insertions,p.id)&&d.add(p)}),d.forEach(p=>{g=bI(l,p,d,u.insertions,n.ignoreRemoteMapChanges,n)!==null||g});for(let p=f.length-1;p>=0;p--){const m=f[p];n.deleteFilter(m)&&(m.delete(l),g=!0)}n.currStackItem=g?u:null}l.changed.forEach((a,u)=>{a.has(null)&&u._searchMarker&&(u._searchMarker.length=0)}),r=l},n);const o=n.currStackItem;if(o!=null){const l=r.changedParentTypes;n.emit("stack-item-popped",[{stackItem:o,type:e,changedParentTypes:l,origin:n},n]),n.currStackItem=null}return o};class $N extends nN{constructor(t,{captureTimeout:e=500,captureTransaction:r=a=>!0,deleteFilter:s=()=>!0,trackedOrigins:i=new Set([null]),ignoreRemoteMapChanges:o=!1,doc:l=sc(t)?t[0].doc:t instanceof ti?t:t.doc}={}){super(),this.scope=[],this.doc=l,this.addToScope(t),this.deleteFilter=s,i.add(this),this.trackedOrigins=i,this.captureTransaction=r,this.undoStack=[],this.redoStack=[],this.undoing=!1,this.redoing=!1,this.currStackItem=null,this.lastChange=0,this.ignoreRemoteMapChanges=o,this.captureTimeout=e,this.afterTransactionHandler=a=>{if(!this.captureTransaction(a)||!this.scope.some(b=>a.changedParentTypes.has(b)||b===this.doc)||!this.trackedOrigins.has(a.origin)&&(!a.origin||!this.trackedOrigins.has(a.origin.constructor)))return;const u=this.undoing,d=this.redoing,f=u?this.redoStack:this.undoStack;u?this.stopCapturing():d||this.clear(!1,!0);const g=new Tc;a.afterState.forEach((b,x)=>{const C=a.beforeState.get(x)||0,v=b-C;v>0&&Qu(g,x,C,v)});const p=Io();let m=!1;if(this.lastChange>0&&p-this.lastChange<this.captureTimeout&&f.length>0&&!u&&!d){const b=f[f.length-1];b.deletions=Dy([b.deletions,a.deleteSet]),b.insertions=Dy([b.insertions,g])}else f.push(new H8(a.deleteSet,g)),m=!0;!u&&!d&&(this.lastChange=p),lc(a,a.deleteSet,b=>{b instanceof jt&&this.scope.some(x=>x===a.doc||Vh(x,b))&&Z0(b,!0)});const y=[{stackItem:f[f.length-1],origin:a.origin,type:u?"redo":"undo",changedParentTypes:a.changedParentTypes},this];m?this.emit("stack-item-added",y):this.emit("stack-item-updated",y)},this.doc.on("afterTransaction",this.afterTransactionHandler),this.doc.on("destroy",()=>{this.destroy()})}addToScope(t){const e=new Set(this.scope);t=sc(t)?t:[t],t.forEach(r=>{e.has(r)||(e.add(r),(r instanceof On?r.doc!==this.doc:r!==this.doc)&&PN("[yjs#509] Not same Y.Doc"),this.scope.push(r))})}addTrackedOrigin(t){this.trackedOrigins.add(t)}removeTrackedOrigin(t){this.trackedOrigins.delete(t)}clear(t=!0,e=!0){(t&&this.canUndo()||e&&this.canRedo())&&this.doc.transact(r=>{t&&(this.undoStack.forEach(s=>o1(r,this,s)),this.undoStack=[]),e&&(this.redoStack.forEach(s=>o1(r,this,s)),this.redoStack=[]),this.emit("stack-cleared",[{undoStackCleared:t,redoStackCleared:e}])})}stopCapturing(){this.lastChange=0}undo(){this.undoing=!0;let t;try{t=l1(this,this.undoStack,"undo")}finally{this.undoing=!1}return t}redo(){this.redoing=!0;let t;try{t=l1(this,this.redoStack,"redo")}finally{this.redoing=!1}return t}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}destroy(){this.trackedOrigins.delete(this),this.doc.off("afterTransaction",this.afterTransactionHandler),super.destroy()}}function*Y8(n){const t=Ve(n.restDecoder);for(let e=0;e<t;e++){const r=Ve(n.restDecoder),s=n.readClient();let i=Ve(n.restDecoder);for(let o=0;o<r;o++){const l=n.readInfo();if(l===10){const a=Ve(n.restDecoder);yield new Vr(nt(s,i),a),i+=a}else if((Wg&l)!==0){const a=(l&(Mi|Mr))===0,u=new jt(nt(s,i),null,(l&Mr)===Mr?n.readLeftID():null,null,(l&Mi)===Mi?n.readRightID():null,a?n.readParentInfo()?n.readString():n.readLeftID():null,a&&(l&Hu)===Hu?n.readString():null,wI(n,l));yield u,i+=u.length}else{const a=n.readLen();yield new Jr(nt(s,i),a),i+=a}}}}class z0{constructor(t,e){this.gen=Y8(t),this.curr=null,this.done=!1,this.filterSkips=e,this.next()}next(){do this.curr=this.gen.next().value||null;while(this.filterSkips&&this.curr!==null&&this.curr.constructor===Vr);return this.curr}}class U0{constructor(t){this.currClient=0,this.startClock=0,this.written=0,this.encoder=t,this.clientStructs=[]}}const G8=n=>Qh(n,UN,vd),Z8=(n,t)=>{if(n.constructor===Jr){const{client:e,clock:r}=n.id;return new Jr(nt(e,r+t),n.length-t)}else if(n.constructor===Vr){const{client:e,clock:r}=n.id;return new Vr(nt(e,r+t),n.length-t)}else{const e=n,{client:r,clock:s}=e.id;return new jt(nt(r,s+t),null,nt(r,s+t-1),null,e.rightOrigin,e.parent,e.parentSub,e.content.splice(t))}},Qh=(n,t=ac,e=Rl)=>{if(n.length===1)return n[0];const r=n.map(d=>new t(Yo(d)));let s=r.map(d=>new z0(d,!0)),i=null;const o=new e,l=new U0(o);for(;s=s.filter(g=>g.curr!==null),s.sort((g,p)=>{if(g.curr.id.client===p.curr.id.client){const m=g.curr.id.clock-p.curr.id.clock;return m===0?g.curr.constructor===p.curr.constructor?0:g.curr.constructor===Vr?1:-1:m}else return p.curr.id.client-g.curr.id.client}),s.length!==0;){const d=s[0],f=d.curr.id.client;if(i!==null){let g=d.curr,p=!1;for(;g!==null&&g.id.clock+g.length<=i.struct.id.clock+i.struct.length&&g.id.client>=i.struct.id.client;)g=d.next(),p=!0;if(g===null||g.id.client!==f||p&&g.id.clock>i.struct.id.clock+i.struct.length)continue;if(f!==i.struct.id.client)uo(l,i.struct,i.offset),i={struct:g,offset:0},d.next();else if(i.struct.id.clock+i.struct.length<g.id.clock)if(i.struct.constructor===Vr)i.struct.length=g.id.clock+g.length-i.struct.id.clock;else{uo(l,i.struct,i.offset);const m=g.id.clock-i.struct.id.clock-i.struct.length;i={struct:new Vr(nt(f,i.struct.id.clock+i.struct.length),m),offset:0}}else{const m=i.struct.id.clock+i.struct.length-g.id.clock;m>0&&(i.struct.constructor===Vr?i.struct.length-=m:g=Z8(g,m)),i.struct.mergeWith(g)||(uo(l,i.struct,i.offset),i={struct:g,offset:0},d.next())}}else i={struct:d.curr,offset:0},d.next();for(let g=d.curr;g!==null&&g.id.client===f&&g.id.clock===i.struct.id.clock+i.struct.length&&g.constructor!==Vr;g=d.next())uo(l,i.struct,i.offset),i={struct:g,offset:0}}i!==null&&(uo(l,i.struct,i.offset),i=null),K0(l);const a=r.map(d=>j0(d)),u=Dy(a);return _c(o,u),o.toUint8Array()},J8=(n,t,e=ac,r=Rl)=>{const s=YN(t),i=new r,o=new U0(i),l=new e(Yo(n)),a=new z0(l,!1);for(;a.curr;){const d=a.curr,f=d.id.client,g=s.get(f)||0;if(a.curr.constructor===Vr){a.next();continue}if(d.id.clock+d.length>g)for(uo(o,d,$l(g-d.id.clock,0)),a.next();a.curr&&a.curr.id.client===f;)uo(o,a.curr,0),a.next();else for(;a.curr&&a.curr.id.client===f&&a.curr.id.clock+a.curr.length<=g;)a.next()}K0(o);const u=j0(l);return _c(i,u),i.toUint8Array()},eI=n=>{n.written>0&&(n.clientStructs.push({written:n.written,restEncoder:qt(n.encoder.restEncoder)}),n.encoder.restEncoder=Jn(),n.written=0)},uo=(n,t,e)=>{n.written>0&&n.currClient!==t.id.client&&eI(n),n.written===0&&(n.currClient=t.id.client,n.encoder.writeClient(t.id.client),je(n.encoder.restEncoder,t.id.clock+e)),t.write(n.encoder,e),n.written++},K0=n=>{eI(n);const t=n.encoder.restEncoder;je(t,n.clientStructs.length);for(let e=0;e<n.clientStructs.length;e++){const r=n.clientStructs[e];je(t,r.written),Hg(t,r.restEncoder)}},V8=(n,t,e,r)=>{const s=new e(Yo(n)),i=new z0(s,!1),o=new r,l=new U0(o);for(let u=i.curr;u!==null;u=i.next())uo(l,t(u),0);K0(l);const a=j0(s);return _c(o,a),o.toUint8Array()},Q8=n=>V8(n,cz,ac,vd),a1="You must not compute changes after the event-handler fired.";class $g{constructor(t,e){this.target=t,this.currentTarget=t,this.transaction=e,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=X8(this.currentTarget,this.target))}deletes(t){return xd(this.transaction.deleteSet,t.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw ei(a1);const t=new Map,e=this.target;this.transaction.changed.get(e).forEach(s=>{if(s!==null){const i=e._map.get(s);let o,l;if(this.adds(i)){let a=i.left;for(;a!==null&&this.adds(a);)a=a.left;if(this.deletes(i))if(a!==null&&this.deletes(a))o="delete",l=oA(a.content.getContent());else return;else a!==null&&this.deletes(a)?(o="update",l=oA(a.content.getContent())):(o="add",l=void 0)}else if(this.deletes(i))o="delete",l=oA(i.content.getContent());else return;t.set(s,{action:o,oldValue:l})}}),this._keys=t}return this._keys}get delta(){return this.changes.delta}adds(t){return t.id.clock>=(this.transaction.beforeState.get(t.id.client)||0)}get changes(){let t=this._changes;if(t===null){if(this.transaction.doc._transactionCleanups.length===0)throw ei(a1);const e=this.target,r=No(),s=No(),i=[];if(t={added:r,deleted:s,delta:i,keys:this.keys},this.transaction.changed.get(e).has(null)){let l=null;const a=()=>{l&&i.push(l)};for(let u=e._start;u!==null;u=u.right)u.deleted?this.deletes(u)&&!this.adds(u)&&((l===null||l.delete===void 0)&&(a(),l={delete:0}),l.delete+=u.length,s.add(u)):this.adds(u)?((l===null||l.insert===void 0)&&(a(),l={insert:[]}),l.insert=l.insert.concat(u.content.getContent()),r.add(u)):((l===null||l.retain===void 0)&&(a(),l={retain:0}),l.retain+=u.length);l!==null&&l.retain===void 0&&a()}this._changes=t}return t}}const X8=(n,t)=>{const e=[];for(;t._item!==null&&t!==n;){if(t._item.parentSub!==null)e.unshift(t._item.parentSub);else{let r=0,s=t._item.parent._start;for(;s!==t._item&&s!==null;)!s.deleted&&s.countable&&(r+=s.length),s=s.right;e.unshift(r)}t=t._item.parent}return e},Xn=()=>{PN("Invalid access: Add Yjs type to a document before reading data.")},tI=80;let W0=0;class q8{constructor(t,e){t.marker=!0,this.p=t,this.index=e,this.timestamp=W0++}}const $8=n=>{n.timestamp=W0++},nI=(n,t,e)=>{n.p.marker=!1,n.p=t,t.marker=!0,n.index=e,n.timestamp=W0++},e6=(n,t,e)=>{if(n.length>=tI){const r=n.reduce((s,i)=>s.timestamp<i.timestamp?s:i);return nI(r,t,e),r}else{const r=new q8(t,e);return n.push(r),r}},ep=(n,t)=>{if(n._start===null||t===0||n._searchMarker===null)return null;const e=n._searchMarker.length===0?null:n._searchMarker.reduce((i,o)=>hh(t-i.index)<hh(t-o.index)?i:o);let r=n._start,s=0;for(e!==null&&(r=e.p,s=e.index,$8(e));r.right!==null&&s<t;){if(!r.deleted&&r.countable){if(t<s+r.length)break;s+=r.length}r=r.right}for(;r.left!==null&&s>t;)r=r.left,!r.deleted&&r.countable&&(s-=r.length);for(;r.left!==null&&r.left.id.client===r.id.client&&r.left.id.clock+r.left.length===r.id.clock;)r=r.left,!r.deleted&&r.countable&&(s-=r.length);return e!==null&&hh(e.index-s)<r.parent.length/tI?(nI(e,r,s),e):e6(n._searchMarker,r,s)},Xu=(n,t,e)=>{for(let r=n.length-1;r>=0;r--){const s=n[r];if(e>0){let i=s.p;for(i.marker=!1;i&&(i.deleted||!i.countable);)i=i.left,i&&!i.deleted&&i.countable&&(s.index-=i.length);if(i===null||i.marker===!0){n.splice(r,1);continue}s.p=i,i.marker=!0}(t<s.index||e>0&&t===s.index)&&(s.index=$l(t,s.index+e))}},tp=(n,t,e)=>{const r=n,s=t.changedParentTypes;for(;li(s,n,()=>[]).push(e),n._item!==null;)n=n._item.parent;ZN(r._eH,e,t)};class On{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=e1(),this._dEH=e1(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(t,e){this.doc=t,this._item=e}_copy(){throw Cs()}clone(){throw Cs()}_write(t){}get _first(){let t=this._start;for(;t!==null&&t.deleted;)t=t.right;return t}_callObserver(t,e){!t.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(t){t1(this._eH,t)}observeDeep(t){t1(this._dEH,t)}unobserve(t){n1(this._eH,t)}unobserveDeep(t){n1(this._dEH,t)}toJSON(){}}const rI=(n,t,e)=>{n.doc??Xn(),t<0&&(t=n._length+t),e<0&&(e=n._length+e);let r=e-t;const s=[];let i=n._start;for(;i!==null&&r>0;){if(i.countable&&!i.deleted){const o=i.content.getContent();if(o.length<=t)t-=o.length;else{for(let l=t;l<o.length&&r>0;l++)s.push(o[l]),r--;t=0}}i=i.right}return s},sI=n=>{n.doc??Xn();const t=[];let e=n._start;for(;e!==null;){if(e.countable&&!e.deleted){const r=e.content.getContent();for(let s=0;s<r.length;s++)t.push(r[s])}e=e.right}return t},qu=(n,t)=>{let e=0,r=n._start;for(n.doc??Xn();r!==null;){if(r.countable&&!r.deleted){const s=r.content.getContent();for(let i=0;i<s.length;i++)t(s[i],e++,n)}r=r.right}},iI=(n,t)=>{const e=[];return qu(n,(r,s)=>{e.push(t(r,s,n))}),e},t6=n=>{let t=n._start,e=null,r=0;return{[Symbol.iterator](){return this},next:()=>{if(e===null){for(;t!==null&&t.deleted;)t=t.right;if(t===null)return{done:!0,value:void 0};e=t.content.getContent(),r=0,t=t.right}const s=e[r++];return e.length<=r&&(e=null),{done:!1,value:s}}}},oI=(n,t)=>{n.doc??Xn();const e=ep(n,t);let r=n._start;for(e!==null&&(r=e.p,t-=e.index);r!==null;r=r.right)if(!r.deleted&&r.countable){if(t<r.length)return r.content.getContent()[t];t-=r.length}},Xh=(n,t,e,r)=>{let s=e;const i=n.doc,o=i.clientID,l=i.store,a=e===null?t._start:e.right;let u=[];const d=()=>{u.length>0&&(s=new jt(nt(o,an(l,o)),s,s&&s.lastId,a,a&&a.id,t,null,new Bl(u)),s.integrate(n,0),u=[])};r.forEach(f=>{if(f===null)u.push(f);else switch(f.constructor){case Number:case Object:case Boolean:case Array:case String:u.push(f);break;default:switch(d(),f.constructor){case Uint8Array:case ArrayBuffer:s=new jt(nt(o,an(l,o)),s,s&&s.lastId,a,a&&a.id,t,null,new Sd(new Uint8Array(f))),s.integrate(n,0);break;case ti:s=new jt(nt(o,an(l,o)),s,s&&s.lastId,a,a&&a.id,t,null,new Ed(f)),s.integrate(n,0);break;default:if(f instanceof On)s=new jt(nt(o,an(l,o)),s,s&&s.lastId,a,a&&a.id,t,null,new ai(f)),s.integrate(n,0);else throw new Error("Unexpected content type in insert operation")}}}),d()},lI=()=>ei("Length exceeded!"),aI=(n,t,e,r)=>{if(e>t._length)throw lI();if(e===0)return t._searchMarker&&Xu(t._searchMarker,e,r.length),Xh(n,t,null,r);const s=e,i=ep(t,e);let o=t._start;for(i!==null&&(o=i.p,e-=i.index,e===0&&(o=o.prev,e+=o&&o.countable&&!o.deleted?o.length:0));o!==null;o=o.right)if(!o.deleted&&o.countable){if(e<=o.length){e<o.length&&wr(n,nt(o.id.client,o.id.clock+e));break}e-=o.length}return t._searchMarker&&Xu(t._searchMarker,s,r.length),Xh(n,t,o,r)},n6=(n,t,e)=>{let s=(t._searchMarker||[]).reduce((i,o)=>o.index>i.index?o:i,{index:0,p:t._start}).p;if(s)for(;s.right;)s=s.right;return Xh(n,t,s,e)},cI=(n,t,e,r)=>{if(r===0)return;const s=e,i=r,o=ep(t,e);let l=t._start;for(o!==null&&(l=o.p,e-=o.index);l!==null&&e>0;l=l.right)!l.deleted&&l.countable&&(e<l.length&&wr(n,nt(l.id.client,l.id.clock+e)),e-=l.length);for(;r>0&&l!==null;)l.deleted||(r<l.length&&wr(n,nt(l.id.client,l.id.clock+r)),l.delete(n),r-=l.length),l=l.right;if(r>0)throw lI();t._searchMarker&&Xu(t._searchMarker,s,-i+r)},qh=(n,t,e)=>{const r=t._map.get(e);r!==void 0&&r.delete(n)},H0=(n,t,e,r)=>{const s=t._map.get(e)||null,i=n.doc,o=i.clientID;let l;if(r==null)l=new Bl([r]);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:case Date:case BigInt:l=new Bl([r]);break;case Uint8Array:l=new Sd(r);break;case ti:l=new Ed(r);break;default:if(r instanceof On)l=new ai(r);else throw new Error("Unexpected content type")}new jt(nt(o,an(i.store,o)),s,s&&s.lastId,null,null,t,e,l).integrate(n,0)},Y0=(n,t)=>{n.doc??Xn();const e=n._map.get(t);return e!==void 0&&!e.deleted?e.content.getContent()[e.length-1]:void 0},uI=n=>{const t={};return n.doc??Xn(),n._map.forEach((e,r)=>{e.deleted||(t[r]=e.content.getContent()[e.length-1])}),t},dI=(n,t)=>{n.doc??Xn();const e=n._map.get(t);return e!==void 0&&!e.deleted},r6=(n,t)=>{const e={};return n._map.forEach((r,s)=>{let i=r;for(;i!==null&&(!t.sv.has(i.id.client)||i.id.clock>=(t.sv.get(i.id.client)||0));)i=i.left;i!==null&&Ma(i,t)&&(e[s]=i.content.getContent()[i.length-1])}),e},Bf=n=>(n.doc??Xn(),g8(n._map.entries(),t=>!t[1].deleted));class s6 extends $g{}class Ja extends On{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(t){const e=new Ja;return e.push(t),e}_integrate(t,e){super._integrate(t,e),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Ja}clone(){const t=new Ja;return t.insert(0,this.toArray().map(e=>e instanceof On?e.clone():e)),t}get length(){return this.doc??Xn(),this._length}_callObserver(t,e){super._callObserver(t,e),tp(this,t,new s6(this,t))}insert(t,e){this.doc!==null?Bt(this.doc,r=>{aI(r,this,t,e)}):this._prelimContent.splice(t,0,...e)}push(t){this.doc!==null?Bt(this.doc,e=>{n6(e,this,t)}):this._prelimContent.push(...t)}unshift(t){this.insert(0,t)}delete(t,e=1){this.doc!==null?Bt(this.doc,r=>{cI(r,this,t,e)}):this._prelimContent.splice(t,e)}get(t){return oI(this,t)}toArray(){return sI(this)}slice(t=0,e=this.length){return rI(this,t,e)}toJSON(){return this.map(t=>t instanceof On?t.toJSON():t)}map(t){return iI(this,t)}forEach(t){qu(this,t)}[Symbol.iterator](){return t6(this)}_write(t){t.writeTypeRef(k6)}}const i6=n=>new Ja;class By extends $g{constructor(t,e,r){super(t,e),this.keysChanged=r}}class er extends On{constructor(t){super(),this._prelimContent=null,t===void 0?this._prelimContent=new Map:this._prelimContent=new Map(t)}_integrate(t,e){super._integrate(t,e),this._prelimContent.forEach((r,s)=>{this.set(s,r)}),this._prelimContent=null}_copy(){return new er}clone(){const t=new er;return this.forEach((e,r)=>{t.set(r,e instanceof On?e.clone():e)}),t}_callObserver(t,e){tp(this,t,new By(this,t,e))}toJSON(){this.doc??Xn();const t={};return this._map.forEach((e,r)=>{if(!e.deleted){const s=e.content.getContent()[e.length-1];t[r]=s instanceof On?s.toJSON():s}}),t}get size(){return[...Bf(this)].length}keys(){return hA(Bf(this),t=>t[0])}values(){return hA(Bf(this),t=>t[1].content.getContent()[t[1].length-1])}entries(){return hA(Bf(this),t=>[t[0],t[1].content.getContent()[t[1].length-1]])}forEach(t){this.doc??Xn(),this._map.forEach((e,r)=>{e.deleted||t(e.content.getContent()[e.length-1],r,this)})}[Symbol.iterator](){return this.entries()}delete(t){this.doc!==null?Bt(this.doc,e=>{qh(e,this,t)}):this._prelimContent.delete(t)}set(t,e){return this.doc!==null?Bt(this.doc,r=>{H0(r,this,t,e)}):this._prelimContent.set(t,e),e}get(t){return Y0(this,t)}has(t){return dI(this,t)}clear(){this.doc!==null?Bt(this.doc,t=>{this.forEach(function(e,r,s){qh(t,s,r)})}):this._prelimContent.clear()}_write(t){t.writeTypeRef(T6)}}const o6=n=>new er,mo=(n,t)=>n===t||typeof n=="object"&&typeof t=="object"&&n&&t&&lz(n,t);class jy{constructor(t,e,r,s){this.left=t,this.right=e,this.index=r,this.currentAttributes=s}forward(){switch(this.right===null&&Rr(),this.right.content.constructor){case kn:this.right.deleted||Nc(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}}const c1=(n,t,e)=>{for(;t.right!==null&&e>0;){switch(t.right.content.constructor){case kn:t.right.deleted||Nc(t.currentAttributes,t.right.content);break;default:t.right.deleted||(e<t.right.length&&wr(n,nt(t.right.id.client,t.right.id.clock+e)),t.index+=t.right.length,e-=t.right.length);break}t.left=t.right,t.right=t.right.right}return t},jf=(n,t,e,r)=>{const s=new Map,i=r?ep(t,e):null;if(i){const o=new jy(i.p.left,i.p,i.index,s);return c1(n,o,e-i.index)}else{const o=new jy(null,t._start,0,s);return c1(n,o,e)}},fI=(n,t,e,r)=>{for(;e.right!==null&&(e.right.deleted===!0||e.right.content.constructor===kn&&mo(r.get(e.right.content.key),e.right.content.value));)e.right.deleted||r.delete(e.right.content.key),e.forward();const s=n.doc,i=s.clientID;r.forEach((o,l)=>{const a=e.left,u=e.right,d=new jt(nt(i,an(s.store,i)),a,a&&a.lastId,u,u&&u.id,t,null,new kn(l,o));d.integrate(n,0),e.right=d,e.forward()})},Nc=(n,t)=>{const{key:e,value:r}=t;r===null?n.delete(e):n.set(e,r)},hI=(n,t)=>{for(;n.right!==null;){if(!(n.right.deleted||n.right.content.constructor===kn&&mo(t[n.right.content.key]??null,n.right.content.value)))break;n.forward()}},gI=(n,t,e,r)=>{const s=n.doc,i=s.clientID,o=new Map;for(const l in r){const a=r[l],u=e.currentAttributes.get(l)??null;if(!mo(u,a)){o.set(l,u);const{left:d,right:f}=e;e.right=new jt(nt(i,an(s.store,i)),d,d&&d.lastId,f,f&&f.id,t,null,new kn(l,a)),e.right.integrate(n,0),e.forward()}}return o},gA=(n,t,e,r,s)=>{e.currentAttributes.forEach((g,p)=>{s[p]===void 0&&(s[p]=null)});const i=n.doc,o=i.clientID;hI(e,s);const l=gI(n,t,e,s),a=r.constructor===String?new si(r):r instanceof On?new ai(r):new ea(r);let{left:u,right:d,index:f}=e;t._searchMarker&&Xu(t._searchMarker,e.index,a.getLength()),d=new jt(nt(o,an(i.store,o)),u,u&&u.lastId,d,d&&d.id,t,null,a),d.integrate(n,0),e.right=d,e.index=f,e.forward(),fI(n,t,e,l)},u1=(n,t,e,r,s)=>{const i=n.doc,o=i.clientID;hI(e,s);const l=gI(n,t,e,s);e:for(;e.right!==null&&(r>0||l.size>0&&(e.right.deleted||e.right.content.constructor===kn));){if(!e.right.deleted)switch(e.right.content.constructor){case kn:{const{key:a,value:u}=e.right.content,d=s[a];if(d!==void 0){if(mo(d,u))l.delete(a);else{if(r===0)break e;l.set(a,u)}e.right.delete(n)}else e.currentAttributes.set(a,u);break}default:r<e.right.length&&wr(n,nt(e.right.id.client,e.right.id.clock+r)),r-=e.right.length;break}e.forward()}if(r>0){let a="";for(;r>0;r--)a+=`
16
+ `;e.right=new jt(nt(o,an(i.store,o)),e.left,e.left&&e.left.lastId,e.right,e.right&&e.right.id,t,null,new si(a)),e.right.integrate(n,0),e.forward()}fI(n,t,e,l)},pI=(n,t,e,r,s)=>{let i=t;const o=xr();for(;i&&(!i.countable||i.deleted);){if(!i.deleted&&i.content.constructor===kn){const u=i.content;o.set(u.key,u)}i=i.right}let l=0,a=!1;for(;t!==i;){if(e===t&&(a=!0),!t.deleted){const u=t.content;switch(u.constructor){case kn:{const{key:d,value:f}=u,g=r.get(d)??null;(o.get(d)!==u||g===f)&&(t.delete(n),l++,!a&&(s.get(d)??null)===f&&g!==f&&(g===null?s.delete(d):s.set(d,g))),!a&&!t.deleted&&Nc(s,u);break}}}t=t.right}return l},l6=(n,t)=>{for(;t&&t.right&&(t.right.deleted||!t.right.countable);)t=t.right;const e=new Set;for(;t&&(t.deleted||!t.countable);){if(!t.deleted&&t.content.constructor===kn){const r=t.content.key;e.has(r)?t.delete(n):e.add(r)}t=t.left}},a6=n=>{let t=0;return Bt(n.doc,e=>{let r=n._start,s=n._start,i=xr();const o=Ty(i);for(;s;){if(s.deleted===!1)switch(s.content.constructor){case kn:Nc(o,s.content);break;default:t+=pI(e,r,s,i,o),i=Ty(o),r=s;break}s=s.right}}),t},c6=n=>{const t=new Set,e=n.doc;for(const[r,s]of n.afterState.entries()){const i=n.beforeState.get(r)||0;s!==i&&XN(n,e.store.clients.get(r),i,s,o=>{!o.deleted&&o.content.constructor===kn&&o.constructor!==Jr&&t.add(o.parent)})}Bt(e,r=>{lc(n,n.deleteSet,s=>{if(s instanceof Jr||!s.parent._hasFormatting||t.has(s.parent))return;const i=s.parent;s.content.constructor===kn?t.add(i):l6(r,s)});for(const s of t)a6(s)})},d1=(n,t,e)=>{const r=e,s=Ty(t.currentAttributes),i=t.right;for(;e>0&&t.right!==null;){if(t.right.deleted===!1)switch(t.right.content.constructor){case ai:case ea:case si:e<t.right.length&&wr(n,nt(t.right.id.client,t.right.id.clock+e)),e-=t.right.length,t.right.delete(n);break}t.forward()}i&&pI(n,i,t.right,s,t.currentAttributes);const o=(t.left||t.right).parent;return o._searchMarker&&Xu(o._searchMarker,t.index,-r+e),t};class mI extends $g{constructor(t,e,r){super(t,e),this.childListChanged=!1,this.keysChanged=new Set,r.forEach(s=>{s===null?this.childListChanged=!0:this.keysChanged.add(s)})}get changes(){if(this._changes===null){const t={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=t}return this._changes}get delta(){if(this._delta===null){const t=this.target.doc,e=[];Bt(t,r=>{const s=new Map,i=new Map;let o=this.target._start,l=null;const a={};let u="",d=0,f=0;const g=()=>{if(l!==null){let p=null;switch(l){case"delete":f>0&&(p={delete:f}),f=0;break;case"insert":(typeof u=="object"||u.length>0)&&(p={insert:u},s.size>0&&(p.attributes={},s.forEach((m,y)=>{m!==null&&(p.attributes[y]=m)}))),u="";break;case"retain":d>0&&(p={retain:d},oz(a)||(p.attributes=nz({},a))),d=0;break}p&&e.push(p),l=null}};for(;o!==null;){switch(o.content.constructor){case ai:case ea:this.adds(o)?this.deletes(o)||(g(),l="insert",u=o.content.getContent()[0],g()):this.deletes(o)?(l!=="delete"&&(g(),l="delete"),f+=1):o.deleted||(l!=="retain"&&(g(),l="retain"),d+=1);break;case si:this.adds(o)?this.deletes(o)||(l!=="insert"&&(g(),l="insert"),u+=o.content.str):this.deletes(o)?(l!=="delete"&&(g(),l="delete"),f+=o.length):o.deleted||(l!=="retain"&&(g(),l="retain"),d+=o.length);break;case kn:{const{key:p,value:m}=o.content;if(this.adds(o)){if(!this.deletes(o)){const y=s.get(p)??null;mo(y,m)?m!==null&&o.delete(r):(l==="retain"&&g(),mo(m,i.get(p)??null)?delete a[p]:a[p]=m)}}else if(this.deletes(o)){i.set(p,m);const y=s.get(p)??null;mo(y,m)||(l==="retain"&&g(),a[p]=y)}else if(!o.deleted){i.set(p,m);const y=a[p];y!==void 0&&(mo(y,m)?y!==null&&o.delete(r):(l==="retain"&&g(),m===null?delete a[p]:a[p]=m))}o.deleted||(l==="insert"&&g(),Nc(s,o.content));break}}o=o.right}for(g();e.length>0;){const p=e[e.length-1];if(p.retain!==void 0&&p.attributes===void 0)e.pop();else break}}),this._delta=e}return this._delta}}class cc extends On{constructor(t){super(),this._pending=t!==void 0?[()=>this.insert(0,t)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this.doc??Xn(),this._length}_integrate(t,e){super._integrate(t,e);try{this._pending.forEach(r=>r())}catch(r){console.error(r)}this._pending=null}_copy(){return new cc}clone(){const t=new cc;return t.applyDelta(this.toDelta()),t}_callObserver(t,e){super._callObserver(t,e);const r=new mI(this,t,e);tp(this,t,r),!t.local&&this._hasFormatting&&(t._needFormattingCleanup=!0)}toString(){this.doc??Xn();let t="",e=this._start;for(;e!==null;)!e.deleted&&e.countable&&e.content.constructor===si&&(t+=e.content.str),e=e.right;return t}toJSON(){return this.toString()}applyDelta(t,{sanitize:e=!0}={}){this.doc!==null?Bt(this.doc,r=>{const s=new jy(null,this._start,0,new Map);for(let i=0;i<t.length;i++){const o=t[i];if(o.insert!==void 0){const l=!e&&typeof o.insert=="string"&&i===t.length-1&&s.right===null&&o.insert.slice(-1)===`
17
+ `?o.insert.slice(0,-1):o.insert;(typeof l!="string"||l.length>0)&&gA(r,this,s,l,o.attributes||{})}else o.retain!==void 0?u1(r,this,s,o.retain,o.attributes||{}):o.delete!==void 0&&d1(r,s,o.delete)}}):this._pending.push(()=>this.applyDelta(t))}toDelta(t,e,r){this.doc??Xn();const s=[],i=new Map,o=this.doc;let l="",a=this._start;function u(){if(l.length>0){const f={};let g=!1;i.forEach((m,y)=>{g=!0,f[y]=m});const p={insert:l};g&&(p.attributes=f),s.push(p),l=""}}const d=()=>{for(;a!==null;){if(Ma(a,t)||e!==void 0&&Ma(a,e))switch(a.content.constructor){case si:{const f=i.get("ychange");t!==void 0&&!Ma(a,t)?(f===void 0||f.user!==a.id.client||f.type!=="removed")&&(u(),i.set("ychange",r?r("removed",a.id):{type:"removed"})):e!==void 0&&!Ma(a,e)?(f===void 0||f.user!==a.id.client||f.type!=="added")&&(u(),i.set("ychange",r?r("added",a.id):{type:"added"})):f!==void 0&&(u(),i.delete("ychange")),l+=a.content.str;break}case ai:case ea:{u();const f={insert:a.content.getContent()[0]};if(i.size>0){const g={};f.attributes=g,i.forEach((p,m)=>{g[m]=p})}s.push(f);break}case kn:Ma(a,t)&&(u(),Nc(i,a.content));break}a=a.right}u()};return t||e?Bt(o,f=>{t&&Ry(f,t),e&&Ry(f,e),d()},"cleanup"):d(),s}insert(t,e,r){if(e.length<=0)return;const s=this.doc;s!==null?Bt(s,i=>{const o=jf(i,this,t,!r);r||(r={},o.currentAttributes.forEach((l,a)=>{r[a]=l})),gA(i,this,o,e,r)}):this._pending.push(()=>this.insert(t,e,r))}insertEmbed(t,e,r){const s=this.doc;s!==null?Bt(s,i=>{const o=jf(i,this,t,!r);gA(i,this,o,e,r||{})}):this._pending.push(()=>this.insertEmbed(t,e,r||{}))}delete(t,e){if(e===0)return;const r=this.doc;r!==null?Bt(r,s=>{d1(s,jf(s,this,t,!0),e)}):this._pending.push(()=>this.delete(t,e))}format(t,e,r){if(e===0)return;const s=this.doc;s!==null?Bt(s,i=>{const o=jf(i,this,t,!1);o.right!==null&&u1(i,this,o,e,r)}):this._pending.push(()=>this.format(t,e,r))}removeAttribute(t){this.doc!==null?Bt(this.doc,e=>{qh(e,this,t)}):this._pending.push(()=>this.removeAttribute(t))}setAttribute(t,e){this.doc!==null?Bt(this.doc,r=>{H0(r,this,t,e)}):this._pending.push(()=>this.setAttribute(t,e))}getAttribute(t){return Y0(this,t)}getAttributes(){return uI(this)}_write(t){t.writeTypeRef(_6)}}const u6=n=>new cc;class pA{constructor(t,e=()=>!0){this._filter=e,this._root=t,this._currentNode=t._start,this._firstCall=!0,t.doc??Xn()}[Symbol.iterator](){return this}next(){let t=this._currentNode,e=t&&t.content&&t.content.type;if(t!==null&&(!this._firstCall||t.deleted||!this._filter(e)))do if(e=t.content.type,!t.deleted&&(e.constructor===cs||e.constructor===Pl)&&e._start!==null)t=e._start;else for(;t!==null;){const r=t.next;if(r!==null){t=r;break}else t.parent===this._root?t=null:t=t.parent._item}while(t!==null&&(t.deleted||!this._filter(t.content.type)));return this._firstCall=!1,t===null?{value:void 0,done:!0}:(this._currentNode=t,{value:t.content.type,done:!1})}}class Pl extends On{constructor(){super(),this._prelimContent=[]}get firstChild(){const t=this._first;return t?t.content.getContent()[0]:null}_integrate(t,e){super._integrate(t,e),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Pl}clone(){const t=new Pl;return t.insert(0,this.toArray().map(e=>e instanceof On?e.clone():e)),t}get length(){return this.doc??Xn(),this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(t){return new pA(this,t)}querySelector(t){t=t.toUpperCase();const r=new pA(this,s=>s.nodeName&&s.nodeName.toUpperCase()===t).next();return r.done?null:r.value}querySelectorAll(t){return t=t.toUpperCase(),Fi(new pA(this,e=>e.nodeName&&e.nodeName.toUpperCase()===t))}_callObserver(t,e){tp(this,t,new AI(this,e,t))}toString(){return iI(this,t=>t.toString()).join("")}toJSON(){return this.toString()}toDOM(t=document,e={},r){const s=t.createDocumentFragment();return r!==void 0&&r._createAssociation(s,this),qu(this,i=>{s.insertBefore(i.toDOM(t,e,r),null)}),s}insert(t,e){this.doc!==null?Bt(this.doc,r=>{aI(r,this,t,e)}):this._prelimContent.splice(t,0,...e)}insertAfter(t,e){if(this.doc!==null)Bt(this.doc,r=>{const s=t&&t instanceof On?t._item:t;Xh(r,this,s,e)});else{const r=this._prelimContent,s=t===null?0:r.findIndex(i=>i===t)+1;if(s===0&&t!==null)throw ei("Reference item not found");r.splice(s,0,...e)}}delete(t,e=1){this.doc!==null?Bt(this.doc,r=>{cI(r,this,t,e)}):this._prelimContent.splice(t,e)}toArray(){return sI(this)}push(t){this.insert(this.length,t)}unshift(t){this.insert(0,t)}get(t){return oI(this,t)}slice(t=0,e=this.length){return rI(this,t,e)}forEach(t){qu(this,t)}_write(t){t.writeTypeRef(I6)}}const d6=n=>new Pl;class cs extends Pl{constructor(t="UNDEFINED"){super(),this.nodeName=t,this._prelimAttrs=new Map}get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_integrate(t,e){super._integrate(t,e),this._prelimAttrs.forEach((r,s)=>{this.setAttribute(s,r)}),this._prelimAttrs=null}_copy(){return new cs(this.nodeName)}clone(){const t=new cs(this.nodeName),e=this.getAttributes();return sz(e,(r,s)=>{t.setAttribute(s,r)}),t.insert(0,this.toArray().map(r=>r instanceof On?r.clone():r)),t}toString(){const t=this.getAttributes(),e=[],r=[];for(const l in t)r.push(l);r.sort();const s=r.length;for(let l=0;l<s;l++){const a=r[l];e.push(a+'="'+t[a]+'"')}const i=this.nodeName.toLocaleLowerCase(),o=e.length>0?" "+e.join(" "):"";return`<${i}${o}>${super.toString()}</${i}>`}removeAttribute(t){this.doc!==null?Bt(this.doc,e=>{qh(e,this,t)}):this._prelimAttrs.delete(t)}setAttribute(t,e){this.doc!==null?Bt(this.doc,r=>{H0(r,this,t,e)}):this._prelimAttrs.set(t,e)}getAttribute(t){return Y0(this,t)}hasAttribute(t){return dI(this,t)}getAttributes(t){return t?r6(this,t):uI(this)}toDOM(t=document,e={},r){const s=t.createElement(this.nodeName),i=this.getAttributes();for(const o in i){const l=i[o];typeof l=="string"&&s.setAttribute(o,l)}return qu(this,o=>{s.appendChild(o.toDOM(t,e,r))}),r!==void 0&&r._createAssociation(s,this),s}_write(t){t.writeTypeRef(N6),t.writeKey(this.nodeName)}}const f6=n=>new cs(n.readKey());class AI extends $g{constructor(t,e,r){super(t,r),this.childListChanged=!1,this.attributesChanged=new Set,e.forEach(s=>{s===null?this.childListChanged=!0:this.attributesChanged.add(s)})}}class $h extends er{constructor(t){super(),this.hookName=t}_copy(){return new $h(this.hookName)}clone(){const t=new $h(this.hookName);return this.forEach((e,r)=>{t.set(r,e)}),t}toDOM(t=document,e={},r){const s=e[this.hookName];let i;return s!==void 0?i=s.createDom(this):i=document.createElement(this.hookName),i.setAttribute("data-yjs-hook",this.hookName),r!==void 0&&r._createAssociation(i,this),i}_write(t){t.writeTypeRef(L6),t.writeKey(this.hookName)}}const h6=n=>new $h(n.readKey());class ri extends cc{get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_copy(){return new ri}clone(){const t=new ri;return t.applyDelta(this.toDelta()),t}toDOM(t=document,e,r){const s=t.createTextNode(this.toString());return r!==void 0&&r._createAssociation(s,this),s}toString(){return this.toDelta().map(t=>{const e=[];for(const s in t.attributes){const i=[];for(const o in t.attributes[s])i.push({key:o,value:t.attributes[s][o]});i.sort((o,l)=>o.key<l.key?-1:1),e.push({nodeName:s,attrs:i})}e.sort((s,i)=>s.nodeName<i.nodeName?-1:1);let r="";for(let s=0;s<e.length;s++){const i=e[s];r+=`<${i.nodeName}`;for(let o=0;o<i.attrs.length;o++){const l=i.attrs[o];r+=` ${l.key}="${l.value}"`}r+=">"}r+=t.insert;for(let s=e.length-1;s>=0;s--)r+=`</${e[s].nodeName}>`;return r}).join("")}toJSON(){return this.toString()}_write(t){t.writeTypeRef(M6)}}const g6=n=>new ri;class G0{constructor(t,e){this.id=t,this.length=e}get deleted(){throw Cs()}mergeWith(t){return!1}write(t,e,r){throw Cs()}integrate(t,e){throw Cs()}}const p6=0;class Jr extends G0{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor!==t.constructor?!1:(this.length+=t.length,!0)}integrate(t,e){e>0&&(this.id.clock+=e,this.length-=e),QN(t.doc.store,this)}write(t,e){t.writeInfo(p6),t.writeLen(this.length-e)}getMissing(t,e){return null}}class Sd{constructor(t){this.content=t}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new Sd(this.content)}splice(t){throw Cs()}mergeWith(t){return!1}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeBuf(this.content)}getRef(){return 3}}const m6=n=>new Sd(n.readBuf());class $u{constructor(t){this.len=t}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new $u(this.len)}splice(t){const e=new $u(this.len-t);return this.len=t,e}mergeWith(t){return this.len+=t.len,!0}integrate(t,e){Qu(t.deleteSet,e.id.client,e.id.clock,this.len),e.markDeleted()}delete(t){}gc(t){}write(t,e){t.writeLen(this.len-e)}getRef(){return 1}}const A6=n=>new $u(n.readLen()),yI=(n,t)=>new ti({guid:n,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1});class Ed{constructor(t){t._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=t;const e={};this.opts=e,t.gc||(e.gc=!1),t.autoLoad&&(e.autoLoad=!0),t.meta!==null&&(e.meta=t.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new Ed(yI(this.doc.guid,this.opts))}splice(t){throw Cs()}mergeWith(t){return!1}integrate(t,e){this.doc._item=e,t.subdocsAdded.add(this.doc),this.doc.shouldLoad&&t.subdocsLoaded.add(this.doc)}delete(t){t.subdocsAdded.has(this.doc)?t.subdocsAdded.delete(this.doc):t.subdocsRemoved.add(this.doc)}gc(t){}write(t,e){t.writeString(this.doc.guid),t.writeAny(this.opts)}getRef(){return 9}}const y6=n=>new Ed(yI(n.readString(),n.readAny()));class ea{constructor(t){this.embed=t}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new ea(this.embed)}splice(t){throw Cs()}mergeWith(t){return!1}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeJSON(this.embed)}getRef(){return 5}}const b6=n=>new ea(n.readJSON());class kn{constructor(t,e){this.key=t,this.value=e}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new kn(this.key,this.value)}splice(t){throw Cs()}mergeWith(t){return!1}integrate(t,e){const r=e.parent;r._searchMarker=null,r._hasFormatting=!0}delete(t){}gc(t){}write(t,e){t.writeKey(this.key),t.writeJSON(this.value)}getRef(){return 6}}const w6=n=>new kn(n.readKey(),n.readJSON());class eg{constructor(t){this.arr=t}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new eg(this.arr)}splice(t){const e=new eg(this.arr.slice(t));return this.arr=this.arr.slice(0,t),e}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,e){}delete(t){}gc(t){}write(t,e){const r=this.arr.length;t.writeLen(r-e);for(let s=e;s<r;s++){const i=this.arr[s];t.writeString(i===void 0?"undefined":JSON.stringify(i))}}getRef(){return 2}}const C6=n=>{const t=n.readLen(),e=[];for(let r=0;r<t;r++){const s=n.readString();s==="undefined"?e.push(void 0):e.push(JSON.parse(s))}return new eg(e)},x6=Yh("node_env")==="development";class Bl{constructor(t){this.arr=t,x6&&fN(t)}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new Bl(this.arr)}splice(t){const e=new Bl(this.arr.slice(t));return this.arr=this.arr.slice(0,t),e}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,e){}delete(t){}gc(t){}write(t,e){const r=this.arr.length;t.writeLen(r-e);for(let s=e;s<r;s++){const i=this.arr[s];t.writeAny(i)}}getRef(){return 8}}const v6=n=>{const t=n.readLen(),e=[];for(let r=0;r<t;r++)e.push(n.readAny());return new Bl(e)};class si{constructor(t){this.str=t}getLength(){return this.str.length}getContent(){return this.str.split("")}isCountable(){return!0}copy(){return new si(this.str)}splice(t){const e=new si(this.str.slice(t));this.str=this.str.slice(0,t);const r=this.str.charCodeAt(t-1);return r>=55296&&r<=56319&&(this.str=this.str.slice(0,t-1)+"�",e.str="�"+e.str.slice(1)),e}mergeWith(t){return this.str+=t.str,!0}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeString(e===0?this.str:this.str.slice(e))}getRef(){return 4}}const S6=n=>new si(n.readString()),E6=[i6,o6,u6,f6,d6,h6,g6],k6=0,T6=1,_6=2,N6=3,I6=4,L6=5,M6=6;class ai{constructor(t){this.type=t}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new ai(this.type._copy())}splice(t){throw Cs()}mergeWith(t){return!1}integrate(t,e){this.type._integrate(t.doc,e)}delete(t){let e=this.type._start;for(;e!==null;)e.deleted?e.id.clock<(t.beforeState.get(e.id.client)||0)&&t._mergeStructs.push(e):e.delete(t),e=e.right;this.type._map.forEach(r=>{r.deleted?r.id.clock<(t.beforeState.get(r.id.client)||0)&&t._mergeStructs.push(r):r.delete(t)}),t.changed.delete(this.type)}gc(t){let e=this.type._start;for(;e!==null;)e.gc(t,!0),e=e.right;this.type._start=null,this.type._map.forEach(r=>{for(;r!==null;)r.gc(t,!0),r=r.left}),this.type._map=new Map}write(t,e){this.type._write(t)}getRef(){return 7}}const D6=n=>new ai(E6[n.readTypeRef()](n)),Fy=(n,t)=>{let e=t,r=0,s;do r>0&&(e=nt(e.client,e.clock+r)),s=Za(n,e),r=e.clock-s.id.clock,e=s.redone;while(e!==null&&s instanceof jt);return{item:s,diff:r}},Z0=(n,t)=>{for(;n!==null&&n.keep!==t;)n.keep=t,n=n.parent._item},tg=(n,t,e)=>{const{client:r,clock:s}=t.id,i=new jt(nt(r,s+e),t,nt(r,s+e-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(e));return t.deleted&&i.markDeleted(),t.keep&&(i.keep=!0),t.redone!==null&&(i.redone=nt(t.redone.client,t.redone.clock+e)),t.right=i,i.right!==null&&(i.right.left=i),n._mergeStructs.push(i),i.parentSub!==null&&i.right===null&&i.parent._map.set(i.parentSub,i),t.length=e,i},f1=(n,t)=>C0(n,e=>xd(e.deletions,t)),bI=(n,t,e,r,s,i)=>{const o=n.doc,l=o.store,a=o.clientID,u=t.redone;if(u!==null)return wr(n,u);let d=t.parent._item,f=null,g;if(d!==null&&d.deleted===!0){if(d.redone===null&&(!e.has(d)||bI(n,d,e,r,s,i)===null))return null;for(;d.redone!==null;)d=wr(n,d.redone)}const p=d===null?t.parent:d.content.type;if(t.parentSub===null){for(f=t.left,g=t;f!==null;){let x=f;for(;x!==null&&x.parent._item!==d;)x=x.redone===null?null:wr(n,x.redone);if(x!==null&&x.parent._item===d){f=x;break}f=f.left}for(;g!==null;){let x=g;for(;x!==null&&x.parent._item!==d;)x=x.redone===null?null:wr(n,x.redone);if(x!==null&&x.parent._item===d){g=x;break}g=g.right}}else if(g=null,t.right&&!s){for(f=t;f!==null&&f.right!==null&&(f.right.redone||xd(r,f.right.id)||f1(i.undoStack,f.right.id)||f1(i.redoStack,f.right.id));)for(f=f.right;f.redone;)f=wr(n,f.redone);if(f&&f.right!==null)return null}else f=p._map.get(t.parentSub)||null;const m=an(l,a),y=nt(a,m),b=new jt(y,f,f&&f.lastId,g,g&&g.id,p,t.parentSub,t.content.copy());return t.redone=y,Z0(b,!0),b.integrate(n,0),b};class jt extends G0{constructor(t,e,r,s,i,o,l,a){super(t,a.getLength()),this.origin=r,this.left=e,this.right=s,this.rightOrigin=i,this.parent=o,this.parentSub=l,this.redone=null,this.content=a,this.info=this.content.isCountable()?US:0}set marker(t){(this.info&aA)>0!==t&&(this.info^=aA)}get marker(){return(this.info&aA)>0}get keep(){return(this.info&zS)>0}set keep(t){this.keep!==t&&(this.info^=zS)}get countable(){return(this.info&US)>0}get deleted(){return(this.info&lA)>0}set deleted(t){this.deleted!==t&&(this.info^=lA)}markDeleted(){this.info|=lA}getMissing(t,e){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=an(e,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=an(e,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===Ga&&this.id.client!==this.parent.client&&this.parent.clock>=an(e,this.parent.client))return this.parent.client;if(this.origin&&(this.left=r1(t,e,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=wr(t,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===Jr||this.right&&this.right.constructor===Jr)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===jt?(this.parent=this.left.parent,this.parentSub=this.left.parentSub):this.right&&this.right.constructor===jt&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===Ga){const r=Za(e,this.parent);r.constructor===Jr?this.parent=null:this.parent=r.content.type}return null}integrate(t,e){if(e>0&&(this.id.clock+=e,this.left=r1(t,t.doc.store,nt(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(e),this.length-=e),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let r=this.left,s;if(r!==null)s=r.right;else if(this.parentSub!==null)for(s=this.parent._map.get(this.parentSub)||null;s!==null&&s.left!==null;)s=s.left;else s=this.parent._start;const i=new Set,o=new Set;for(;s!==null&&s!==this.right;){if(o.add(s),i.add(s),ja(this.origin,s.origin)){if(s.id.client<this.id.client)r=s,i.clear();else if(ja(this.rightOrigin,s.rightOrigin))break}else if(s.origin!==null&&o.has(Za(t.doc.store,s.origin)))i.has(Za(t.doc.store,s.origin))||(r=s,i.clear());else break;s=s.right}this.left=r}if(this.left!==null){const r=this.left.right;this.right=r,this.left.right=this}else{let r;if(this.parentSub!==null)for(r=this.parent._map.get(this.parentSub)||null;r!==null&&r.left!==null;)r=r.left;else r=this.parent._start,this.parent._start=this;this.right=r}this.right!==null?this.right.left=this:this.parentSub!==null&&(this.parent._map.set(this.parentSub,this),this.left!==null&&this.left.delete(t)),this.parentSub===null&&this.countable&&!this.deleted&&(this.parent._length+=this.length),QN(t.doc.store,this),this.content.integrate(t,this),i1(t,this.parent,this.parentSub),(this.parent._item!==null&&this.parent._item.deleted||this.parentSub!==null&&this.right!==null)&&this.delete(t)}else new Jr(this.id,this.length).integrate(t,0)}get next(){let t=this.right;for(;t!==null&&t.deleted;)t=t.right;return t}get prev(){let t=this.left;for(;t!==null&&t.deleted;)t=t.left;return t}get lastId(){return this.length===1?this.id:nt(this.id.client,this.id.clock+this.length-1)}mergeWith(t){if(this.constructor===t.constructor&&ja(t.origin,this.lastId)&&this.right===t&&ja(this.rightOrigin,t.rightOrigin)&&this.id.client===t.id.client&&this.id.clock+this.length===t.id.clock&&this.deleted===t.deleted&&this.redone===null&&t.redone===null&&this.content.constructor===t.content.constructor&&this.content.mergeWith(t.content)){const e=this.parent._searchMarker;return e&&e.forEach(r=>{r.p===t&&(r.p=this,!this.deleted&&this.countable&&(r.index-=this.length))}),t.keep&&(this.keep=!0),this.right=t.right,this.right!==null&&(this.right.left=this),this.length+=t.length,!0}return!1}delete(t){if(!this.deleted){const e=this.parent;this.countable&&this.parentSub===null&&(e._length-=this.length),this.markDeleted(),Qu(t.deleteSet,this.id.client,this.id.clock,this.length),i1(t,e,this.parentSub),this.content.delete(t)}}gc(t,e){if(!this.deleted)throw Rr();this.content.gc(t),e?z8(t,this,new Jr(this.id,this.length)):this.content=new $u(this.length)}write(t,e){const r=e>0?nt(this.id.client,this.id.clock+e-1):this.origin,s=this.rightOrigin,i=this.parentSub,o=this.content.getRef()&Wg|(r===null?0:Mr)|(s===null?0:Mi)|(i===null?0:Hu);if(t.writeInfo(o),r!==null&&t.writeLeftID(r),s!==null&&t.writeRightID(s),r===null&&s===null){const l=this.parent;if(l._item!==void 0){const a=l._item;if(a===null){const u=JN(l);t.writeParentInfo(!0),t.writeString(u)}else t.writeParentInfo(!1),t.writeLeftID(a.id)}else l.constructor===String?(t.writeParentInfo(!0),t.writeString(l)):l.constructor===Ga?(t.writeParentInfo(!1),t.writeLeftID(l)):Rr();i!==null&&t.writeString(i)}this.content.write(t,e)}}const wI=(n,t)=>O6[t&Wg](n),O6=[()=>{Rr()},A6,C6,m6,S6,b6,w6,D6,v6,y6,()=>{Rr()}],R6=10;class Vr extends G0{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor!==t.constructor?!1:(this.length+=t.length,!0)}integrate(t,e){Rr()}write(t,e){t.writeInfo(R6),je(t.restEncoder,this.length-e)}getMissing(t,e){return null}}const CI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{},xI="__ $YJS$ __";CI[xI]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438");CI[xI]=!0;function P6(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function mA(n,t){const e=[];let r=n.__first;for(;r!==null;){const s=t===null?me(r):t.get(r);s==null&&P6(174),e.push(r),r=s.__next}return e}function ln(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function B6(n,t,e){const r=n.length,s=t.length;let i=0,o=0;for(;i<r&&i<s&&n[i]===t[i]&&i<e;)i++;for(;o+i<r&&o+i<s&&n[r-o-1]===t[s-o-1];)o++;for(;o+i<r&&o+i<s&&n[i]===t[i];)i++;return{index:i,insert:t.slice(i,s-o),remove:r-i-o}}let fo=class{constructor(t,e,r){z(this,"_xmlElem");z(this,"_key");z(this,"_parent");z(this,"_type");this._key="",this._xmlElem=t,this._parent=e,this._type=r}getPrevNode(t){if(t===null)return null;const e=t.get(this._key);return tt(e)?e:null}getNode(){const t=me(this._key);return tt(t)?t:null}getSharedType(){return this._xmlElem}getType(){return this._type}getKey(){return this._key}getSize(){return 1}getOffset(){return this._parent.getChildOffset(this)}syncPropertiesFromLexical(t,e,r){const s=this.getPrevNode(r);X0(t,this._xmlElem,s,e)}syncPropertiesFromYjs(t,e){const r=this.getNode();r===null&&ln(83),Q0(t,this._xmlElem,r,e)}destroy(t){const e=t.collabNodeMap;e.get(this._key)===this&&e.delete(this._key)}};function vI(n,t,e){const r=new fo(n,t,e);return n._collabNode=r,r}let fu=class{constructor(t,e){z(this,"_map");z(this,"_key");z(this,"_parent");z(this,"_type");this._key="",this._map=t,this._parent=e,this._type="linebreak"}getNode(){const t=me(this._key);return St(t)?t:null}getKey(){return this._key}getSharedType(){return this._map}getType(){return this._type}getSize(){return 1}getOffset(){return this._parent.getChildOffset(this)}destroy(t){const e=t.collabNodeMap;e.get(this._key)===this&&e.delete(this._key)}};function SI(n,t){const e=new fu(n,t);return n._collabNode=e,e}class cr{constructor(t,e,r,s){z(this,"_map");z(this,"_key");z(this,"_parent");z(this,"_text");z(this,"_type");z(this,"_normalized");this._key="",this._map=t,this._parent=r,this._text=e,this._type=s,this._normalized=!1}getPrevNode(t){if(t===null)return null;const e=t.get(this._key);return ie(e)?e:null}getNode(){const t=me(this._key);return ie(t)?t:null}getSharedType(){return this._map}getType(){return this._type}getKey(){return this._key}getSize(){return this._text.length+(this._normalized?0:1)}getOffset(){return this._parent.getChildOffset(this)}spliceText(t,e,r){const s=this._parent._xmlText,i=this.getOffset()+1+t;e!==0&&s.delete(i,e),r!==""&&s.insert(i,r)}syncPropertiesAndTextFromLexical(t,e,r){const s=this.getPrevNode(r),i=e.__text;if(X0(t,this._map,s,e),s!==null){const o=s.__text;o!==i&&((function(l,a,u,d){const f=G();let g=d.length;if(H(f)&&f.isCollapsed()){const m=f.anchor;m.key===a&&(g=m.offset)}const p=B6(u,d,g);l.spliceText(p.index,p.remove,p.insert)})(this,e.__key,o,i),this._text=i)}}syncPropertiesAndTextFromYjs(t,e){const r=this.getNode();r===null&&ln(84),Q0(t,this._map,r,e);const s=this._text;r.__text!==s&&r.setTextContent(s)}destroy(t){const e=t.collabNodeMap;e.get(this._key)===this&&e.delete(this._key)}}function EI(n,t,e,r){const s=new cr(n,t,e,r);return n._collabNode=s,s}class Qr{constructor(t,e,r){z(this,"_key");z(this,"_children");z(this,"_xmlText");z(this,"_type");z(this,"_parent");this._key="",this._children=[],this._xmlText=t,this._type=r,this._parent=e}getPrevNode(t){if(t===null)return null;const e=t.get(this._key);return Y(e)?e:null}getNode(){const t=me(this._key);return Y(t)?t:null}getSharedType(){return this._xmlText}getType(){return this._type}getKey(){return this._key}isEmpty(){return this._children.length===0}getSize(){return 1}getOffset(){const t=this._parent;return t===null&&ln(90),t.getChildOffset(this)}syncPropertiesFromYjs(t,e){const r=this.getNode();r===null&&ln(91),Q0(t,this._xmlText,r,e)}applyChildrenYjsDelta(t,e){const r=this._children;let s=0,i=null;for(let o=0;o<e.length;o++){const l=e[o],a=l.insert,u=l.delete;if(l.retain!=null)s+=l.retain;else if(typeof u=="number"){let d=u;for(;d>0;){const{node:f,nodeIndex:g,offset:p,length:m}=Ah(this,s,!1);if(f instanceof Qr||f instanceof fu||f instanceof fo)r.splice(g,1),d-=1;else{if(!(f instanceof cr))break;{const y=Math.min(d,m),b=g!==0?r[g-1]:null,x=f.getSize();if(p===0&&m===x){r.splice(g,1);const C=su(f._text,p,y-1,"");C.length>0&&(b instanceof cr?b._text+=C:this._xmlText.delete(p,C.length))}else f._text=su(f._text,p,y,"");d-=y}}}}else{if(a==null)throw new Error("Unexpected delta format");if(typeof a=="string"){const{node:d,offset:f}=Ah(this,s,!0);d instanceof cr?d._text=su(d._text,f,0,a):this._xmlText.delete(f,a.length),s+=a.length}else{const d=a,{node:f,nodeIndex:g,length:p}=Ah(this,s,!1),m=ng(t,d,this);if(f instanceof cr&&p>0&&p<f._text.length){const y=f._text,b=y.length-p;f._text=su(y,b,p,""),r.splice(g+1,0,m),i=su(y,0,b,"")}else r.splice(g,0,m);i!==null&&m instanceof cr&&(m._text=i+m._text,i=null),s+=1}}}}syncChildrenFromYjs(t){const e=this.getNode();e===null&&ln(92);const r=e.__key,s=mA(e,null),i=s.length,o=this._children,l=o.length,a=t.collabNodeMap,u=new Set;let d,f,g=0,p=null;l!==i&&(f=e.getWritable());for(let m=0;m<l;m++){const y=s[g],b=o[m],x=b.getNode(),C=b._key;if(x!==null&&y===C){const v=ie(x);if(u.add(y),v)if(b._key=y,b instanceof Qr){const E=b._xmlText;b.syncPropertiesFromYjs(t,null),b.applyChildrenYjsDelta(t,E.toDelta()),b.syncChildrenFromYjs(t)}else b instanceof cr?b.syncPropertiesAndTextFromYjs(t,null):b instanceof fo?b.syncPropertiesFromYjs(t,null):b instanceof fu||ln(93);p=x,g++}else{if(d===void 0){d=new Set;for(let N=0;N<l;N++){const S=o[N]._key;S!==""&&d.add(S)}}if(x!==null&&y!==void 0&&!d.has(y)){const N=La(y);Li(N),m--,g++;continue}f=e.getWritable();const v=Y6(t,b,r),E=v.__key;if(a.set(E,b),p===null){const N=f.getFirstChild();if(f.__first=E,N!==null){const S=N.getWritable();S.__prev=E,v.__next=S.__key}}else{const N=p.getWritable(),S=p.getNextSibling();if(N.__next=E,v.__prev=p.__key,S!==null){const _=S.getWritable();_.__prev=E,v.__next=_.__key}}m===l-1&&(f.__last=E),f.__size++,p=v}}for(let m=0;m<i;m++){const y=s[m];if(!u.has(y)){const b=La(y),x=t.collabNodeMap.get(y);x!==void 0&&x.destroy(t),Li(b)}}}syncPropertiesFromLexical(t,e,r){X0(t,this._xmlText,this.getPrevNode(r),e)}_syncChildFromLexical(t,e,r,s,i,o){const l=this._children[e],a=La(r);l instanceof Qr&&Y(a)?(l.syncPropertiesFromLexical(t,a,s),l.syncChildrenFromLexical(t,a,s,i,o)):l instanceof cr&&ie(a)?l.syncPropertiesAndTextFromLexical(t,a,s):l instanceof fo&&tt(a)&&l.syncPropertiesFromLexical(t,a,s)}syncChildrenFromLexical(t,e,r,s,i){const o=this.getPrevNode(r),l=o===null?[]:mA(o,r),a=mA(e,null),u=l.length-1,d=a.length-1,f=t.collabNodeMap;let g,p,m=0,y=0;for(;m<=u&&y<=d;){const C=l[m],v=a[y];if(C===v)this._syncChildFromLexical(t,y,v,r,s,i),m++,y++;else{g===void 0&&(g=new Set(l)),p===void 0&&(p=new Set(a));const E=p.has(C),N=g.has(v);if(E){const S=h1(t,La(v),this);f.set(v,S),N?(this.splice(t,y,1,S),m++,y++):(this.splice(t,y,0,S),y++)}else this.splice(t,y,1),m++}}const b=m>u,x=y>d;if(b&&!x)for(;y<=d;++y){const C=a[y],v=h1(t,La(C),this);this.append(v),f.set(C,v)}else if(x&&!b)for(let C=this._children.length-1;C>=y;C--)this.splice(t,C,1)}append(t){const e=this._xmlText,r=this._children,s=r[r.length-1],i=s!==void 0?s.getOffset()+s.getSize():0;if(t instanceof Qr)e.insertEmbed(i,t._xmlText);else if(t instanceof cr){const o=t._map;o.parent===null&&e.insertEmbed(i,o),e.insert(i+1,t._text)}else t instanceof fu?e.insertEmbed(i,t._map):t instanceof fo&&e.insertEmbed(i,t._xmlElem);this._children.push(t)}splice(t,e,r,s){const i=this._children,o=i[e];if(o===void 0)return s===void 0&&ln(94),void this.append(s);const l=o.getOffset();l===-1&&ln(95);const a=this._xmlText;if(r!==0&&a.delete(l,o.getSize()),s instanceof Qr)a.insertEmbed(l,s._xmlText);else if(s instanceof cr){const u=s._map;u.parent===null&&a.insertEmbed(l,u),a.insert(l+1,s._text)}else s instanceof fu?a.insertEmbed(l,s._map):s instanceof fo&&a.insertEmbed(l,s._xmlElem);if(r!==0){const u=i.slice(e,e+r);for(let d=0;d<u.length;d++)u[d].destroy(t)}s!==void 0?i.splice(e,r,s):i.splice(e,r)}getChildOffset(t){let e=0;const r=this._children;for(let s=0;s<r.length;s++){const i=r[s];if(i===t)return e;e+=i.getSize()}return-1}destroy(t){const e=t.collabNodeMap,r=this._children;for(let s=0;s<r.length;s++)r[s].destroy(t);e.get(this._key)===this&&e.delete(this._key)}}function J0(n,t,e){const r=new Qr(n,t,e);return n._collabNode=r,r}function j6(n,t,e,r,s){e==null&&ln(81);const i={clientID:e.clientID,cursors:new Map,cursorsContainer:null,doc:e,docMap:r,editor:n,excludedProperties:s||new Map,id:t,nodeProperties:new Map};return(function(o){const{editor:l,nodeProperties:a}=o;l.update(()=>{l._nodes.forEach(u=>{const d=new u.klass,f={};for(const[g,p]of Object.entries(d))kI(g,d,o)||(f[g]=p);a.set(d.__type,Object.freeze(f))})})})(i),i}function F6(n,t,e,r,s,i){r==null&&ln(81);const o=J0(r.get("root",ri),null,"root");return o._key="root",{...j6(n,e,r,s,i),collabNodeMap:new Map,root:o}}function V0(n){return Object.hasOwn(n,"collabNodeMap")}const z6=new Set(["__key","__parent","__next","__prev","__state"]),U6=new Set(["__first","__last","__size"]),K6=new Set(["__cachedText"]),W6=new Set(["__text"]);function kI(n,t,e){if(z6.has(n)||typeof t[n]=="function")return!0;if(ie(t)){if(W6.has(n))return!0}else if(Y(t)&&(U6.has(n)||Zt(t)&&K6.has(n)))return!0;const r=t.constructor,s=e.excludedProperties.get(r);return s!=null&&s.has(n)}function H6(n,t){const e=n.__type,{nodeProperties:r}=t,s=r.get(e);return s===void 0&&ln(330,e),s}function h1(n,t,e){const r=t.__type;let s;if(Y(t))s=J0(new ri,e,r),s.syncPropertiesFromLexical(n,t,null),s.syncChildrenFromLexical(n,t,null,null,null);else if(ie(t))s=EI(new er,t.__text,e,r),s.syncPropertiesAndTextFromLexical(n,t,null);else if(St(t)){const i=new er;i.set("__type","linebreak"),s=SI(i,e)}else tt(t)?(s=vI(new cs,e,r),s.syncPropertiesFromLexical(n,t,null)):ln(86);return s._key=t.__key,s}function TI(n){const t=np(n,"__type");return typeof t!="string"&&t!==void 0&&ln(87),t}function ng(n,t,e){const r=t._collabNode;if(r===void 0){const s=n.editor._nodes,i=TI(t);typeof i!="string"&&ln(87),s.get(i)===void 0&&ln(88,i);const o=t.parent,l=e===void 0&&o!==null?ng(n,o):e||null;if(l instanceof Qr||ln(89),t instanceof ri)return J0(t,l,i);if(t instanceof er)return i==="linebreak"?SI(t,l):EI(t,"",l,i);if(t instanceof cs)return vI(t,l,i)}return r}function Y6(n,t,e){const r=t.getType(),s=n.editor._nodes.get(r);s===void 0&&ln(88,r);const i=new s.klass;if(i.__parent=e,t._key=i.__key,t instanceof Qr){const o=t._xmlText;t.syncPropertiesFromYjs(n,null),t.applyChildrenYjsDelta(n,o.toDelta()),t.syncChildrenFromYjs(n)}else t instanceof cr?t.syncPropertiesAndTextFromYjs(n,null):t instanceof fo&&t.syncPropertiesFromYjs(n,null);return n.collabNodeMap.set(i.__key,t),i}function Q0(n,t,e,r){const s=r===null?t instanceof er?Array.from(t.keys()):t instanceof ri||t instanceof cs?Object.keys(t.getAttributes()):Object.keys(t):Array.from(r);let i;for(let o=0;o<s.length;o++){const l=s[o];if(kI(l,e,n)){l==="__state"&&V0(n)&&(i||(i=e.getWritable()),G6(t,i));continue}const a=e[l];let u=np(t,l);if(a!==u){if(u instanceof ti){const d=n.docMap;a instanceof ti&&d.delete(a.guid);const f=hd(),g=u.guid;f._key=g,d.set(g,u),u=f}i===void 0&&(i=e.getWritable()),i[l]=u}}}function np(n,t){return n instanceof er?n.get(t):n instanceof ri||n instanceof cs?n.getAttribute(t):n[t]}function g1(n,t,e){n instanceof er?n.set(t,e):n.setAttribute(t,e)}function G6(n,t){const e=np(n,"__state");e instanceof er&&_g(t).updateFromJSON(e.toJSON())}function X0(n,t,e,r){const s=Object.keys(H6(r,n)),i=n.editor.constructor;(function(o,l,a,u){const d=u.__state,f=np(l,"__state");if(!d)return;const[g,p]=d.getInternalState(),m=a&&a.__state,y=f instanceof er?f:new er;if(m===d)return;const[b,x]=m&&y.doc?m.getInternalState():[void 0,new Map];if(g)for(const[C,v]of Object.entries(g))b&&v!==b[C]&&y.set(C,v);for(const[C,v]of p)x.get(C)!==v&&y.set(C.key,C.unparse(v));f||g1(l,"__state",y)})(0,t,e,r);for(let o=0;o<s.length;o++){const l=s[o],a=e===null?void 0:e[l];let u=r[l];if(a!==u){if(u instanceof i){const d=n.docMap;let f;if(a instanceof i){const m=a._key;f=d.get(m),d.delete(m)}const g=f||new ti,p=g.guid;u._key=p,d.set(p,g),u=g,n.editor.update(()=>{r.markDirty()})}g1(t,l,u)}}}function su(n,t,e,r){return n.slice(0,t)+r+n.slice(t+e)}function Ah(n,t,e){let r=0,s=0;const i=n._children,o=i.length;for(;s<o;s++){const l=i[s],a=r;if(r+=l.getSize(),(e?r>=t:r>t)&&l instanceof cr){let u=t-a-1;return u<0&&(u=0),{length:r-t,node:l,nodeIndex:s,offset:u}}if(r>t)return{length:0,node:l,nodeIndex:s,offset:a};if(s===o-1)return{length:0,node:null,nodeIndex:s+1,offset:a+1}}return{length:0,node:null,nodeIndex:0,offset:0}}function p1(n){const t=n.anchor,e=n.focus;let r=!1;try{const s=t.getNode(),i=e.getNode();(!s.isAttached()||!i.isAttached()||ie(s)&&t.offset>s.getTextContentSize()||ie(i)&&e.offset>i.getTextContentSize())&&(r=!0)}catch{r=!0}return r}function Z6(n,t){n.doc.transact(t,n)}function _I(n,t){const e=t._nodeMap.get(n);if(!e)return void xe().selectStart();const r=e.__prev;let s=null;r&&(s=me(r)),s===null&&e.__parent!==null&&(s=me(e.__parent)),s!==null?s!==null&&s.isAttached()?s.selectEnd():_I(s.__key,t):xe().selectStart()}PT("ychange",{isEqual:(n,t)=>n===t,parse:n=>n??null});function m1(n,t){const e=t.collabNodeMap.get(n.key);if(e===void 0)return null;let r=n.offset,s=e.getSharedType();if(e instanceof cr){s=e._parent._xmlText;const i=e.getOffset();if(i===-1)return null;r=i+1+r}else if(e instanceof Qr&&n.type==="element"){const i=n.getNode();Y(i)||ln(184);let o=0,l=0,a=i.getFirstChild();for(;a!==null&&l++<r;)ie(a)?o+=a.getTextContentSize()+1:o++,a=a.getNextSibling();r=o}return Oy(s,r)}function A1(n,t){const{mapping:e}=t,{offset:r}=n,s=n.getNode(),i=e.getSharedType(s);if(i===void 0)return null;if(n.type==="text"){ie(s)||ln(326);let o=s.getPreviousSibling(),l=r;for(;ie(o);)l+=o.getTextContentSize(),o=o.getPreviousSibling();return Oy(i,l)}if(n.type==="element"){Y(s)||ln(184);let o=0,l=s.getFirstChild();for(;l!==null&&o<r;){if(ie(l)){let a=l.getNextSibling();for(;ie(a);)a=a.getNextSibling()}o++,l=l.getNextSibling()}return Oy(i,o)}return null}function y1(n,t){return B8(n,t.doc)}function b1(n,t){if(n==null){if(t!=null)return!0}else if(t==null||!j8(n,t))return!0;return!1}function J6(n,t){return{color:t,name:n,selection:null}}function NI(n,t){const e=n.cursorsContainer;if(e!==null){const r=t.selections,s=r.length;for(let i=0;i<s;i++)e.removeChild(r[i])}}function V6(n,t){const e=t.selection;e!==null&&NI(n,e)}function Q6(n,t,e,r,s){const i=n.color,o=document.createElement("span");o.style.cssText=`position:absolute;top:0;bottom:0;right:-1px;width:1px;background-color:${i};z-index:10;`;const l=document.createElement("span");return l.textContent=n.name,l.style.cssText=`position:absolute;left:-2px;top:-16px;background-color:${i};color:#fff;line-height:12px;font-size:12px;padding:2px;font-family:Arial;font-weight:bold;white-space:nowrap;`,o.appendChild(l),{anchor:{key:t,offset:e},caret:o,color:i,focus:{key:r,offset:s},name:l,selections:[]}}function X6(n,t,e,r){const s=n.editor,i=s.getRootElement(),o=n.cursorsContainer;if(o===null||i===null)return;const l=o.offsetParent;if(l===null)return;const a=l.getBoundingClientRect(),u=t.selection;if(e===null)return u===null?void 0:(t.selection=null,void NI(n,u));t.selection=e;const d=e.caret,f=e.color,g=e.selections,p=e.anchor,m=e.focus,y=p.key,b=m.key,x=r.get(y),C=r.get(b);if(x==null||C==null)return;let v;if(x===C&&St(x))v=[s.getElementByKey(y).getBoundingClientRect()];else{const S=j_(s,x,p.offset,C,m.offset);if(S===null)return;v=F_(s,S)}const E=g.length,N=v.length;for(let S=0;S<N;S++){const _=v[S];let I=g[S];if(I===void 0){I=document.createElement("span"),g[S]=I;const M=document.createElement("span");I.appendChild(M),o.appendChild(I)}const L=`position:absolute;top:${_.top-a.top}px;left:${_.left-a.left}px;height:${_.height}px;width:${_.width}px;pointer-events:none;z-index:5;`;I.style.cssText=L,I.firstChild.style.cssText=`${L}left:0;top:0;background-color:${f};opacity:0.3;`,S===N-1&&d.parentNode!==I&&I.appendChild(d)}for(let S=E-1;S>=N;S--){const _=g[S];o.removeChild(_),g.pop()}}function II(n,t){const{anchorPos:e,focusPos:r}=t,s=e?y1(e,n):null,i=r?y1(r,n):null;if(s===null||i===null)return{anchorKey:null,anchorOffset:0,focusKey:null,focusOffset:0};if(V0(n)){const[d,f]=x1(s.type,s.index),[g,p]=x1(i.type,i.index);return{anchorKey:d!==null?d.getKey():null,anchorOffset:f,focusKey:g!==null?g.getKey():null,focusOffset:p}}let[o,l]=v1(n.mapping,s),[a,u]=v1(n.mapping,i);if(a&&o&&(a!==o||u!==l)){const d=a.isBefore(o),f=d?a:o,g=d?u:l;ie(f)&&ie(f.getNextSibling())&&g===f.getTextContentSize()&&(d?(a=f.getNextSibling(),u=0):(o=f.getNextSibling(),l=0))}return{anchorKey:o!==null?o.getKey():null,anchorOffset:l,focusKey:a!==null?a.getKey():null,focusOffset:u}}function w1(n,t){const e=t.awareness.getLocalState();if(e===null)return;const{anchorKey:r,anchorOffset:s,focusKey:i,focusOffset:o}=II(n,e);if(r!==null&&i!==null){const l=G();if(!H(l))return;C1(l.anchor,r,s),C1(l.focus,i,o)}}function C1(n,t,e){if(n.key!==t||n.offset!==e){let r=me(t);if(r!==null&&!Y(r)&&!ie(r)){const s=r.getParentOrThrow();t=s.getKey(),e=r.getIndexWithinParent(),r=s}n.set(t,e,Y(r)?"element":"text")}}function x1(n,t){const e=n._collabNode;if(e===void 0)return[null,0];if(e instanceof Qr){const{node:r,offset:s}=Ah(e,t,!0);return r===null?[e,0]:[r,s]}return[null,0]}function v1(n,t){const e=t.type,r=t.index;if(e instanceof cs){const s=n.get(e);if(s===void 0)return[null,0];if(!Y(s))return[s,r];let i=r,o=0;const l=s.getChildren();for(;i>0&&o<l.length;){const a=l[o];if(i-=1,o+=1,ie(a))for(;o<l.length&&ie(l[o]);)o+=1}return[s,o]}{const s=n.get(e);if(s===void 0)return[null,0];let i=0,o=r;for(;o>s[i].getTextContentSize()&&i+1<s.length;)o-=s[i].getTextContentSize(),i++;const l=s[i];return[l,Math.min(o,l.getTextContentSize())]}}function q6(n,t){return t.awareness.getStates()}function q0(n,t,e){const{getAwarenessStates:r=q6}=e??{},s=Array.from(r(n,t)),i=n.clientID,o=n.cursors,l=n.editor,a=l._editorState._nodeMap,u=new Set;for(let f=0;f<s.length;f++){const g=s[f],[p,m]=g;if(p!==0&&p!==i){u.add(p);const{name:y,color:b,focusing:x}=m;let C=null,v=o.get(p);if(v===void 0&&(v=J6(y,b),o.set(p,v)),x){const{anchorKey:E,anchorOffset:N,focusKey:S,focusOffset:_}=l.read(()=>II(n,m));if(E!==null&&S!==null)if(C=v.selection,C===null)C=Q6(v,E,N,S,_);else{const I=C.anchor,L=C.focus;I.key=E,I.offset=N,L.key=S,L.offset=_}}X6(n,v,C,a)}}const d=Array.from(o.keys());for(let f=0;f<d.length;f++){const g=d[f];if(!u.has(g)){const p=o.get(g);p!==void 0&&(V6(n,p),o.delete(g))}}}function LI(n,t,e,r){const s=t.awareness,i=s.getLocalState();if(i===null)return;const{anchorPos:o,focusPos:l,name:a,color:u,focusing:d,awarenessData:f}=i;let g=null,p=null;(r!==null&&(o===null||r.is(e))||e!==null)&&(H(r)&&(V0(n)?(g=m1(r.anchor,n),p=m1(r.focus,n)):(g=A1(r.anchor,n),p=A1(r.focus,n))),(b1(o,g)||b1(l,p))&&s.setLocalState({...i,anchorPos:g,awarenessData:f,color:u,focusPos:p,focusing:d,name:a}))}function $6(n,t){if(t instanceof By&&(function(s,i){const{target:o}=i;if(!o._item||o._item.parentSub!=="__state"||TI(o)!==void 0||!(o.parent instanceof ri||o.parent instanceof cs||o.parent instanceof er))return!1;const l=ng(s,o.parent).getNode();if(l){const a=_g(l.getWritable());for(const u of i.keysChanged)a.updateFromUnknown(u,o.get(u))}return!0})(n,t))return;const{target:e}=t,r=ng(n,e);if(r instanceof Qr&&t instanceof mI){const{keysChanged:s,childListChanged:i,delta:o}=t;s.size>0&&r.syncPropertiesFromYjs(n,s),i&&(r.applyChildrenYjsDelta(n,o),r.syncChildrenFromYjs(n))}else if(r instanceof cr&&t instanceof By){const{keysChanged:s}=t;s.size>0&&r.syncPropertiesAndTextFromYjs(n,s)}else if(r instanceof fo&&t instanceof AI){const{attributesChanged:s}=t;s.size>0&&r.syncPropertiesFromYjs(n,s)}else ln(82)}function eU(n,t,e,r,s=q0){const i=n.editor,o=i._editorState;e.forEach(l=>l.delta),i.update(()=>{for(let l=0;l<e.length;l++){const a=e[l];$6(n,a)}tU(o,n,t),r||N_(n_)},{onUpdate:()=>{s(n,t),i.update(()=>nU())},skipTransforms:!0,tag:r?Nl:dd})}function tU(n,t,e){const r=G();if(H(r))if(p1(r)){const s=n._selection;H(s)&&(w1(t,e),p1(r))&&_I(r.anchor.key,n),LI(t,e,s,G())}else w1(t,e)}function nU(){xe().getChildrenSize()===0&&xe().append(we())}function rU(n,t,e,r,s,i,o,l){Z6(n,()=>{r.read(()=>{if(l.has(dd)||l.has(Nl))return void(o.size>0&&(function(d,f){const g=Array.from(f),p=d.collabNodeMap,m=[],y=[];for(let b=0;b<g.length;b++){const x=g[b],C=me(x),v=p.get(x);if(v instanceof cr)if(ie(C))m.push([v,C.__text]);else{const E=v.getOffset();if(E===-1)continue;const N=v._parent;v._normalized=!0,N._xmlText.delete(E,1),y.push(v)}}for(let b=0;b<y.length;b++){const x=y[b],C=x.getKey();p.delete(C);const v=x._parent._children,E=v.indexOf(x);v.splice(E,1)}for(let b=0;b<m.length;b++){const[x,C]=m[b];x._text=C}})(n,o));if(s.has("root")){const d=e._nodeMap,f=xe(),g=n.root;g.syncPropertiesFromLexical(n,f,d),g.syncChildrenFromLexical(n,f,d,s,i)}const a=G(),u=e._selection;LI(n,t,u,a)})})}const MI=be("CONNECTED_COMMAND"),sU=be("TOGGLE_CONNECT_COMMAND");function iU(n,t){return new $N(t,{trackedOrigins:new Set([n,null])})}function oU(n,t,e,r,s){n.awareness.setLocalState({anchorPos:null,awarenessData:s,color:e,focusPos:null,focusing:r,name:t})}function S1(n,t,e,r,s){const{awareness:i}=n;let o=i.getLocalState();o===null&&(o={anchorPos:null,awarenessData:s,color:e,focusPos:null,focusing:r,name:t}),o.focusing=r,i.setLocalState(o)}function lU(n,t,e,r,s,i,o,l,a,u,d,f,g=q0){const p=k.useRef(!1),m=k.useCallback(()=>{const{root:y}=l;o&&y.isEmpty()&&y._xmlText._length===0&&hU(n,d)},[l,n,d,o]);return k.useEffect(()=>{const{root:y}=l,b=(C,v)=>{const E=v.origin;E!==l&&eU(l,e,C,E instanceof $N,g)};y.getSharedType().observeDeep(b);const x=n.registerUpdateListener(({prevEditorState:C,editorState:v,dirtyLeaves:E,dirtyElements:N,normalizedNodes:S,tags:_})=>{_.has(qv)||rU(l,e,C,v,N,E,S,_)});return()=>{y.getSharedType().unobserveDeep(b),x()}},[l,e,n,a,r,t,g]),k.useEffect(()=>{const y=x=>{(function(C,v){if(C.update(()=>{const _=xe();_.clear(),_.select()},{tag:qv}),v.cursors==null)return;const E=v.cursors;if(E==null)return;const N=v.cursorsContainer;if(N==null)return;const S=Array.from(E.values());for(let _=0;_<S.length;_++){const I=S[_].selection;if(I&&I.selections!=null){const L=I.selections;for(let M=0;M<L.length;M++)N.removeChild(L[_])}}})(n,l),a(x),r.set(t,x),p.current=!0},b=()=>{p.current=!1};return e.on("reload",y),e.on("sync",b),()=>{e.off("reload",y),e.off("sync",b)}},[l,e,n,a,r,t]),aU(n,e,s,i,p,f,m),cU(l,e),uU(l,u)}function aU(n,t,e,r,s,i,o){const l=k.useCallback(()=>t.connect(),[t]),a=k.useCallback(()=>{try{t.disconnect()}catch{}},[t]);k.useEffect(()=>{const u=({status:g})=>{n.dispatchCommand(MI,g==="connected")},d=g=>{g&&s.current===!1&&o&&o()};oU(t,e,r,document.activeElement===n.getRootElement(),i||{}),t.on("status",u),t.on("sync",d);const f=l();return()=>{s.current===!1&&(f?f.then(a):a()),t.off("sync",d),t.off("status",u)}},[n,t,e,r,s,i,o,l,a]),k.useEffect(()=>n.registerCommand(sU,u=>(u?(console.log("Collaboration connected!"),l()):(console.log("Collaboration disconnected!"),a()),!0),Fe),[l,a,n])}function cU(n,t){k.useEffect(()=>{const{awareness:e}=t,r=()=>{q0(n,t)};return e.on("update",r),()=>{e.off("update",r)}},[n,t])}function uU(n,t){return k.useMemo(()=>Or.createPortal(A.jsx("div",{ref:e=>{n.cursorsContainer=e}}),t&&t.current||document.body),[n,t])}function dU(n,t,e,r,s){k.useEffect(()=>Xe(n.registerCommand(Wo,()=>(S1(t,e,r,!0,s||{}),!1),Fe),n.registerCommand(Dg,()=>(S1(t,e,r,!1,s||{}),!1),Fe)),[r,n,e,t,s])}function fU(n,t){k.useEffect(()=>Xe(n.registerCommand(Ac,()=>(t.undo(),!0),Fe),n.registerCommand(Hl,()=>(t.redo(),!0),Fe)));const e=k.useCallback(()=>{t.clear()},[t]);return ET.useEffect(()=>{const r=()=>{n.dispatchCommand(Pa,t.undoStack.length>0),n.dispatchCommand(Ra,t.redoStack.length>0)};return t.on("stack-item-added",r),t.on("stack-item-popped",r),t.on("stack-cleared",r),()=>{t.off("stack-item-added",r),t.off("stack-item-popped",r),t.off("stack-cleared",r)}},[n,t]),e}function hU(n,t){n.update(()=>{const e=xe();if(e.isEmpty())if(t)switch(typeof t){case"string":{const r=n.parseEditorState(t);n.setEditorState(r,{tag:qr});break}case"object":n.setEditorState(t,{tag:qr});break;case"function":n.update(()=>{xe().isEmpty()&&t(n)},{tag:qr})}else{const r=we();e.append(r);const{activeElement:s}=document;(G()!==null||s!==null&&s===n.getRootElement())&&r.select()}},{tag:qr})}function gU({id:n,providerFactory:t,shouldBootstrap:e,username:r,cursorColor:s,cursorsContainerRef:i,initialEditorState:o,excludedProperties:l,awarenessData:a,syncCursorPositionsFn:u}){const d=k.useRef(!1),f=k.useRef(!1),g=p5(r,s),{yjsDocMap:p,name:m,color:y}=g,[b]=_e();mU(g,b);const[x,C]=k.useState(),[v,E]=k.useState();k.useEffect(()=>{if(f.current)return;f.current=!0;const _=t(n,p);return C(_),E(p.get(n)),()=>{_.disconnect()}},[n,t,p]);const[N,S]=k.useState();return k.useEffect(()=>{if(!x||d.current)return;d.current=!0;const _=F6(b,x,n,v||p.get(n),p,l);return S(_),()=>{_.root.destroy(_)}},[b,x,n,p,v,l]),x&&N?A.jsx(pU,{awarenessData:a,binding:N,collabContext:g,color:y,cursorsContainerRef:i,editor:b,id:n,initialEditorState:o,name:m,provider:x,setDoc:E,shouldBootstrap:e,yjsDocMap:p,syncCursorPositionsFn:u}):A.jsx(A.Fragment,{})}function pU({editor:n,id:t,provider:e,yjsDocMap:r,name:s,color:i,shouldBootstrap:o,cursorsContainerRef:l,initialEditorState:a,awarenessData:u,collabContext:d,binding:f,setDoc:g,syncCursorPositionsFn:p}){const m=lU(n,t,e,r,s,i,o,f,g,l,a,u,p);return(function(y,b){fU(y,k.useMemo(()=>iU(b,b.root.getSharedType()),[b]))})(n,f),dU(n,e,s,i,u),m}const mU=(n,t)=>{k.useEffect(()=>(n.isCollabActive=!0,()=>{t._parentEditor==null&&(n.isCollabActive=!1)}),[n,t])},DI=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,AU=DI?k.useLayoutEffect:k.useEffect,Ff={tag:qr};function yU({initialConfig:n,children:t}){const e=k.useMemo(()=>{const{theme:r,namespace:s,nodes:i,onError:o,editorState:l,html:a}=n,u=tN(null,r),d=hd({editable:n.editable,html:a,namespace:s,nodes:i,onError:f=>o(f,d),theme:r});return(function(f,g){if(g!==null){if(g===void 0)f.update(()=>{const p=xe();if(p.isEmpty()){const m=we();p.append(m);const y=DI?document.activeElement:null;(G()!==null||y!==null&&y===f.getRootElement())&&m.select()}},Ff);else if(g!==null)switch(typeof g){case"string":{const p=f.parseEditorState(g);f.setEditorState(p,Ff);break}case"object":f.setEditorState(g,Ff);break;case"function":f.update(()=>{xe().isEmpty()&&g(f)},Ff)}}})(d,l),[d,u]},[]);return AU(()=>{const r=n.editable,[s]=e;s.setEditable(r===void 0||r)},[]),A.jsx(b0.Provider,{value:e,children:t})}const bU=Symbol.for("preact-signals");function rp(){if(Co>1)return void Co--;let n,t=!1;for(;ku!==void 0;){let e=ku;for(ku=void 0,zy++;e!==void 0;){const r=e.o;if(e.o=void 0,e.f&=-3,!(8&e.f)&&OI(e))try{e.c()}catch(s){t||(n=s,t=!0)}e=r}}if(zy=0,Co--,t)throw n}function wU(n){if(Co>0)return n();Co++;try{return n()}finally{rp()}}let vt,ku;function E1(n){const t=vt;vt=void 0;try{return n()}finally{vt=t}}let Co=0,zy=0,yh=0;function k1(n){if(vt===void 0)return;let t=n.n;return t===void 0||t.t!==vt?(t={i:0,S:n,p:vt.s,n:void 0,t:vt,e:void 0,x:void 0,r:t},vt.s!==void 0&&(vt.s.n=t),vt.s=t,n.n=t,32&vt.f&&n.S(t),t):t.i===-1?(t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=vt.s,t.n=void 0,vt.s.n=t,vt.s=t),t):void 0}function ar(n,t){this.v=n,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}function CU(n,t){return new ar(n,t)}function OI(n){for(let t=n.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function T1(n){for(let t=n.s;t!==void 0;t=t.n){const e=t.S.n;if(e!==void 0&&(t.r=e),t.S.n=t,t.i=-1,t.n===void 0){n.s=t;break}}}function RI(n){let t,e=n.s;for(;e!==void 0;){const r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):t=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r}n.s=t}function Sa(n,t){ar.call(this,void 0),this.x=n,this.s=void 0,this.g=yh-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}function PI(n){const t=n.u;if(n.u=void 0,typeof t=="function"){Co++;const e=vt;vt=void 0;try{t()}catch(r){throw n.f&=-2,n.f|=8,$0(n),r}finally{vt=e,rp()}}}function $0(n){for(let t=n.s;t!==void 0;t=t.n)t.S.U(t);n.x=void 0,n.s=void 0,PI(n)}function xU(n){if(vt!==this)throw new Error("Out-of-order effect");RI(this),vt=n,this.f&=-2,8&this.f&&$0(this),rp()}function Da(n,t){this.x=n,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}function ed(n,t){const e=new Da(n,t);try{e.c()}catch(s){throw e.d(),s}const r=e.d.bind(e);return r[Symbol.dispose]=r,r}function ew(n,t={}){const e={};for(const r in n){const s=t[r],i=CU(s===void 0?n[r]:s);e[r]=i}return e}ar.prototype.brand=bU,ar.prototype.h=function(){return!0},ar.prototype.S=function(n){const t=this.t;t!==n&&n.e===void 0&&(n.x=t,this.t=n,t!==void 0?t.e=n:E1(()=>{var e;(e=this.W)==null||e.call(this)}))},ar.prototype.U=function(n){if(this.t!==void 0){const t=n.e,e=n.x;t!==void 0&&(t.x=e,n.e=void 0),e!==void 0&&(e.e=t,n.x=void 0),n===this.t&&(this.t=e,e===void 0&&E1(()=>{var r;(r=this.Z)==null||r.call(this)}))}},ar.prototype.subscribe=function(n){return ed(()=>{const t=this.value,e=vt;vt=void 0;try{n(t)}finally{vt=e}},{name:"sub"})},ar.prototype.valueOf=function(){return this.value},ar.prototype.toString=function(){return this.value+""},ar.prototype.toJSON=function(){return this.value},ar.prototype.peek=function(){const n=vt;vt=void 0;try{return this.value}finally{vt=n}},Object.defineProperty(ar.prototype,"value",{get(){const n=k1(this);return n!==void 0&&(n.i=this.i),this.v},set(n){if(n!==this.v){if(zy>100)throw new Error("Cycle detected");this.v=n,this.i++,yh++,Co++;try{for(let t=this.t;t!==void 0;t=t.x)t.t.N()}finally{rp()}}}}),Sa.prototype=new ar,Sa.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===yh))return!0;if(this.g=yh,this.f|=1,this.i>0&&!OI(this))return this.f&=-2,!0;const n=vt;try{T1(this),vt=this;const t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return vt=n,RI(this),this.f&=-2,!0},Sa.prototype.S=function(n){if(this.t===void 0){this.f|=36;for(let t=this.s;t!==void 0;t=t.n)t.S.S(t)}ar.prototype.S.call(this,n)},Sa.prototype.U=function(n){if(this.t!==void 0&&(ar.prototype.U.call(this,n),this.t===void 0)){this.f&=-33;for(let t=this.s;t!==void 0;t=t.n)t.S.U(t)}},Sa.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let n=this.t;n!==void 0;n=n.x)n.t.N()}},Object.defineProperty(Sa.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const n=k1(this);if(this.h(),n!==void 0&&(n.i=this.i),16&this.f)throw this.v;return this.v}}),Da.prototype.c=function(){const n=this.S();try{if(8&this.f||this.x===void 0)return;const t=this.x();typeof t=="function"&&(this.u=t)}finally{n()}},Da.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,PI(this),T1(this),Co++;const n=vt;return vt=this,xU.bind(this,n)},Da.prototype.N=function(){2&this.f||(this.f|=2,this.o=ku,ku=this)},Da.prototype.d=function(){this.f|=8,1&this.f||$0(this)},Da.prototype.dispose=function(){this.d()};function vU(){const n=xe(),t=G(),e=we();n.clear(),n.append(e),t!==null&&e.select(),H(t)&&(t.format=0)}function SU(n,t=vU){return n.registerCommand(Mg,e=>(n.update(t),!0),Fe)}function EU(n){return(typeof n.nodes=="function"?n.nodes():n.nodes)||[]}function Pt(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function BI(n,t){if(n&&t&&!Array.isArray(t)&&typeof n=="object"&&typeof t=="object"){const e=n,r=t;for(const s in r)e[s]=BI(e[s],r[s]);return n}return t}const tw=0,Uy=1,jI=2,AA=3,zf=4,Ea=5,yA=6,iu=7;function bA(n){return n.id===tw}function FI(n){return n.id===jI}function kU(n){return(function(t){return t.id===Uy})(n)||Pt(305,String(n.id),String(Uy)),Object.assign(n,{id:jI})}const TU=new Set;let _U=class{constructor(t,e){z(this,"builder");z(this,"configs");z(this,"_dependency");z(this,"_peerNameSet");z(this,"extension");z(this,"state");z(this,"_signal");this.builder=t,this.extension=e,this.configs=new Set,this.state={id:tw}}mergeConfigs(){let t=this.extension.config||{};const e=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):W3;for(const r of this.configs)t=e(t,r);return t}init(t){const e=this.state;FI(e)||Pt(306,String(e.id));const r={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},s={...r,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},i=(function(l,a,u){return Object.assign(l,{config:a,id:AA,registerState:u})})(e,this.mergeConfigs(),r);let o;this.state=i,this.extension.init&&(o=this.extension.init(t,i.config,r)),this.state=(function(l,a,u){return Object.assign(l,{id:zf,initResult:a,registerState:u})})(i,o,s)}build(t){const e=this.state;let r;e.id!==zf&&Pt(307,String(e.id),String(Ea)),this.extension.build&&(r=this.extension.build(t,e.config,e.registerState));const s={...e.registerState,getOutput:()=>r,getSignal:this.getSignal.bind(this)};this.state=(function(i,o,l){return Object.assign(i,{id:Ea,output:o,registerState:l})})(e,r,s)}register(t,e){this._signal=e;const r=this.state;r.id!==Ea&&Pt(308,String(r.id),String(Ea));const s=this.extension.register&&this.extension.register(t,r.config,r.registerState);return this.state=(function(i){return Object.assign(i,{id:yA})})(r),()=>{const i=this.state;i.id!==iu&&Pt(309,String(r.id),String(iu)),this.state=(function(o){return Object.assign(o,{id:Ea})})(i),s&&s()}}afterRegistration(t){const e=this.state;let r;return e.id!==yA&&Pt(310,String(e.id),String(yA)),this.extension.afterRegistration&&(r=this.extension.afterRegistration(t,e.config,e.registerState)),this.state=(function(s){return Object.assign(s,{id:iu})})(e),r}getSignal(){return this._signal===void 0&&Pt(311),this._signal}getInitResult(){this.extension.init===void 0&&Pt(312,this.extension.name);const t=this.state;return(function(e){return e.id>=zf})(t)||Pt(313,String(t.id),String(zf)),t.initResult}getInitPeer(t){const e=this.builder.extensionNameMap.get(t);return e?e.getExtensionInitDependency():void 0}getExtensionInitDependency(){const t=this.state;return(function(e){return e.id>=AA})(t)||Pt(314,String(t.id),String(AA)),{config:t.config}}getPeer(t){const e=this.builder.extensionNameMap.get(t);return e?e.getExtensionDependency():void 0}getInitDependency(t){const e=this.builder.getExtensionRep(t);return e===void 0&&Pt(315,this.extension.name,t.name),e.getExtensionInitDependency()}getDependency(t){const e=this.builder.getExtensionRep(t);return e===void 0&&Pt(315,this.extension.name,t.name),e.getExtensionDependency()}getState(){const t=this.state;return(function(e){return e.id>=iu})(t)||Pt(316,String(t.id),String(iu)),t}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||TU}getPeerNameSet(){let t=this._peerNameSet;return t||(t=new Set((this.extension.peerDependencies||[]).map(([e])=>e)),this._peerNameSet=t),t}getExtensionDependency(){if(!this._dependency){const t=this.state;(function(e){return e.id>=Ea})(t)||Pt(317,this.extension.name),this._dependency={config:t.config,init:t.initResult,output:t.output}}return this._dependency}};const _1={tag:qr};function NU(){const n=xe();n.isEmpty()&&n.append(we())}const IU={config:{setOptions:_1,updateOptions:_1},init:({$initialEditorState:n=NU})=>({$initialEditorState:n,initialized:!1}),afterRegistration(n,{updateOptions:t,setOptions:e},r){const s=r.getInitResult();if(!s.initialized){s.initialized=!0;const{$initialEditorState:i}=s;if(y3(i))n.setEditorState(i,e);else if(typeof i=="function")n.update(()=>{i(n)},t);else if(i&&(typeof i=="string"||typeof i=="object")){const o=n.parseEditorState(i);n.setEditorState(o,e)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[Vl,Dn,Cc,xc,Gi]},N1=Symbol.for("@lexical/extension/LexicalBuilder");function I1(){}function LU(n){throw n}function Uf(n){return Array.isArray(n)?n:[n]}const wA="0.38.2+prod.esm";let zI=class bh{constructor(t){z(this,"roots");z(this,"extensionNameMap");z(this,"outgoingConfigEdges");z(this,"incomingEdges");z(this,"conflicts");z(this,"_sortedExtensionReps");z(this,"PACKAGE_VERSION");this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=wA,this.roots=t;for(const e of t)this.addExtension(e)}static fromExtensions(t){const e=[Uf(IU)];for(const r of t)e.push(Uf(r));return new bh(e)}static maybeFromEditor(t){const e=t[N1];return e&&(e.PACKAGE_VERSION!==wA&&Pt(292,e.PACKAGE_VERSION,wA),e instanceof bh||Pt(293)),e}static fromEditor(t){const e=bh.maybeFromEditor(t);return e===void 0&&Pt(294),e}constructEditor(){const{$initialEditorState:t,onError:e,...r}=this.buildCreateEditorArgs(),s=Object.assign(hd({...r,...e?{onError:i=>{e(i,s)}}:{}}),{[N1]:this});for(const i of this.sortedExtensionReps())i.build(s);return s}buildEditor(){let t=I1;function e(){try{t()}finally{t=I1}}const r=Object.assign(this.constructEditor(),{dispose:e,[Symbol.dispose]:e});return t=Xe(this.registerEditor(r),()=>r.setRootElement(null)),r}hasExtensionByName(t){return this.extensionNameMap.has(t)}getExtensionRep(t){const e=this.extensionNameMap.get(t.name);if(e)return e.extension!==t&&Pt(295,t.name),e}addEdge(t,e,r){const s=this.outgoingConfigEdges.get(t);s?s.set(e,r):this.outgoingConfigEdges.set(t,new Map([[e,r]]));const i=this.incomingEdges.get(e);i?i.add(t):this.incomingEdges.set(e,new Set([t]))}addExtension(t){this._sortedExtensionReps!==void 0&&Pt(296);const e=Uf(t),[r]=e;typeof r.name!="string"&&Pt(297,typeof r.name);let s=this.extensionNameMap.get(r.name);if(s!==void 0&&s.extension!==r&&Pt(298,r.name),!s){s=new _U(this,r),this.extensionNameMap.set(r.name,s);const i=this.conflicts.get(r.name);typeof i=="string"&&Pt(299,r.name,i);for(const o of r.conflictsWith||[])this.extensionNameMap.has(o)&&Pt(299,r.name,o),this.conflicts.set(o,r.name);for(const o of r.dependencies||[]){const l=Uf(o);this.addEdge(r.name,l[0].name,l.slice(1)),this.addExtension(l)}for(const[o,l]of r.peerDependencies||[])this.addEdge(r.name,o,l?[l]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const t=[],e=(r,s)=>{let i=r.state;if(FI(i))return;const o=r.extension.name;var l;bA(i)||Pt(300,o,s||"[unknown]"),bA(l=i)||Pt(304,String(l.id),String(tw)),i=Object.assign(l,{id:Uy}),r.state=i;const a=this.outgoingConfigEdges.get(o);if(a)for(const u of a.keys()){const d=this.extensionNameMap.get(u);d&&e(d,o)}i=kU(i),r.state=i,t.push(r)};for(const r of this.extensionNameMap.values())bA(r.state)&&e(r);for(const r of t)for(const[s,i]of this.outgoingConfigEdges.get(r.extension.name)||[])if(i.length>0){const o=this.extensionNameMap.get(s);if(o)for(const l of i)o.configs.add(l)}for(const[r,...s]of this.roots)if(s.length>0){const i=this.extensionNameMap.get(r.name);i===void 0&&Pt(301,r.name);for(const o of s)i.configs.add(o)}return this._sortedExtensionReps=t,this._sortedExtensionReps}registerEditor(t){const e=this.sortedExtensionReps(),r=new AbortController,s=[()=>r.abort()],i=r.signal;for(const o of e){const l=o.register(t,i);l&&s.push(l)}for(const o of e){const l=o.afterRegistration(t);l&&s.push(l)}return Xe(...s)}buildCreateEditorArgs(){const t={},e=new Set,r=new Map,s=new Map,i={},o={},l=this.sortedExtensionReps();for(const d of l){const{extension:f}=d;if(f.onError!==void 0&&(t.onError=f.onError),f.disableEvents!==void 0&&(t.disableEvents=f.disableEvents),f.parentEditor!==void 0&&(t.parentEditor=f.parentEditor),f.editable!==void 0&&(t.editable=f.editable),f.namespace!==void 0&&(t.namespace=f.namespace),f.$initialEditorState!==void 0&&(t.$initialEditorState=f.$initialEditorState),f.nodes)for(const g of EU(f)){if(typeof g!="function"){const p=r.get(g.replace);p&&Pt(302,f.name,g.replace.name,p.extension.name),r.set(g.replace,d)}e.add(g)}if(f.html){if(f.html.export)for(const[g,p]of f.html.export.entries())s.set(g,p);f.html.import&&Object.assign(i,f.html.import)}f.theme&&BI(o,f.theme)}Object.keys(o).length>0&&(t.theme=o),e.size&&(t.nodes=[...e]);const a=Object.keys(i).length>0,u=s.size>0;(a||u)&&(t.html={},a&&(t.html.import=i),u&&(t.html.export=s));for(const d of l)d.init(t);return t.onError||(t.onError=LU),t}};function MU(n,t){const e=zI.fromEditor(n).extensionNameMap.get(t);return e?e.getExtensionDependency():void 0}const UI=be("INSERT_HORIZONTAL_RULE_COMMAND");let nw=class KI extends oi{static getType(){return"horizontalrule"}static clone(t){return new KI(t.__key)}static importJSON(t){return WI().updateFromJSON(t)}static importDOM(){return{hr:()=>({conversion:DU,priority:0})}}exportDOM(){return{element:document.createElement("hr")}}createDOM(t){const e=document.createElement("hr");return st(e,t.theme.hr),e}getTextContent(){return`
18
+ `}isInline(){return!1}updateDOM(){return!1}};function DU(){return{node:WI()}}function WI(){return L_(nw)}function HI(n){return n instanceof nw}function OU(n,t,e,r,s){if(n===null||e.size===0&&r.size===0&&!s)return 0;const i=t._selection,o=n._selection;if(s)return 1;if(!(H(i)&&H(o)&&o.isCollapsed()&&i.isCollapsed()))return 0;const l=(function(x,C,v){const E=x._nodeMap,N=[];for(const S of C){const _=E.get(S);_!==void 0&&N.push(_)}for(const[S,_]of v){if(!_)continue;const I=E.get(S);I===void 0||Zt(I)||N.push(I)}return N})(t,e,r);if(l.length===0)return 0;if(l.length>1){const x=t._nodeMap,C=x.get(i.anchor.key),v=x.get(o.anchor.key);return C&&v&&!n._nodeMap.has(C.__key)&&ie(C)&&C.__text.length===1&&i.anchor.offset===1?2:0}const a=l[0],u=n._nodeMap.get(a.__key);if(!ie(u)||!ie(a)||u.__mode!==a.__mode)return 0;const d=u.__text,f=a.__text;if(d===f)return 0;const g=i.anchor,p=o.anchor;if(g.key!==p.key||g.type!=="text")return 0;const m=g.offset,y=p.offset,b=f.length-d.length;return b===1&&y===m-1?2:b===-1&&y===m+1?3:b===-1&&y===m?4:0}function RU(n,t){let e=Date.now(),r=0;return(s,i,o,l,a,u)=>{const d=Date.now();if(u.has(Nl))return r=0,e=d,2;const f=OU(s,i,l,a,n.isComposing()),g=(()=>{const p=o===null||o.editor===n,m=u.has(n3);if(!m&&p&&u.has(qr))return 0;if(s===null)return 1;const y=i._selection;if(!(l.size>0||a.size>0))return y!==null?0:2;const b=typeof t=="number"?t:t.peek();return m===!1&&f!==0&&f===r&&d<e+b&&p||l.size===1&&(function(x,C,v){const E=C._nodeMap.get(x),N=v._nodeMap.get(x),S=C._selection,_=v._selection;return!(H(S)&&H(_)&&S.anchor.type==="element"&&S.focus.type==="element"&&_.anchor.type==="text"&&_.focus.type==="text"||!ie(E)||!ie(N)||E.__parent!==N.__parent)&&JSON.stringify(C.read(()=>E.exportJSON()))===JSON.stringify(v.read(()=>N.exportJSON()))})(Array.from(l)[0],s,i)?0:1})();return e=d,r=f,g}}function L1(n){n.undoStack=[],n.redoStack=[],n.current=null}function YI(n,t,e){const r=RU(n,e);return Xe(n.registerCommand(Ac,()=>((function(i,o){const l=o.redoStack,a=o.undoStack;if(a.length!==0){const u=o.current,d=a.pop();u!==null&&(l.push(u),i.dispatchCommand(Ra,!0)),a.length===0&&i.dispatchCommand(Pa,!1),o.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:Nl})}})(n,t),!0),Fe),n.registerCommand(Hl,()=>((function(i,o){const l=o.redoStack,a=o.undoStack;if(l.length!==0){const u=o.current;u!==null&&(a.push(u),i.dispatchCommand(Pa,!0));const d=l.pop();l.length===0&&i.dispatchCommand(Ra,!1),o.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:Nl})}})(n,t),!0),Fe),n.registerCommand(Mg,()=>(L1(t),!1),Fe),n.registerCommand(Jb,()=>(L1(t),n.dispatchCommand(Ra,!1),n.dispatchCommand(Pa,!1),!0),Fe),n.registerUpdateListener(({editorState:i,prevEditorState:o,dirtyLeaves:l,dirtyElements:a,tags:u})=>{const d=t.current,f=t.redoStack,g=t.undoStack,p=d===null?null:d.editorState;if(d!==null&&i===p)return;const m=r(o,i,d,l,a,u);if(m===1)f.length!==0&&(t.redoStack=[],n.dispatchCommand(Ra,!1)),d!==null&&(g.push({...d}),n.dispatchCommand(Pa,!0));else if(m===2)return;t.current={editor:n,editorState:i}}))}function rw(){return{current:null,redoStack:[],undoStack:[]}}const CA={build:(n,{delay:t,createInitialHistoryState:e,disabled:r})=>ew({delay:t,disabled:r,historyState:e(n)}),config:{createInitialHistoryState:rw,delay:300,disabled:typeof window>"u"},name:"@lexical/history/History",register:(n,t,e)=>{const r=e.getOutput();return ed(()=>r.disabled.value?void 0:YI(n,r.historyState.value,r.delay))}};K3(CA,{createInitialHistoryState:()=>{throw new Error("SharedHistory did not inherit parent history")},disabled:!0});function GI({delay:n,externalHistoryState:t}){const[e]=_e();return(function(r,s,i=1e3){const o=k.useMemo(()=>s||rw(),[s]);k.useEffect(()=>YI(r,o,i),[i,r,o])})(e,t,n),null}const ZI=new Map;class PU{constructor(t){this.room=t,this.onmessage=null,this._onChange=e=>e.key===t&&this.onmessage!==null&&this.onmessage({data:xz(e.newValue||"")}),$5(this._onChange)}postMessage(t){uN.setItem(this.room,Cz(mz(t)))}close(){ez(this._onChange)}}const BU=typeof BroadcastChannel>"u"?PU:BroadcastChannel,sw=n=>li(ZI,n,()=>{const t=No(),e=new BU(n);return e.onmessage=r=>t.forEach(s=>s(r.data,"broadcastchannel")),{bc:e,subs:t}}),jU=(n,t)=>(sw(n).subs.add(t),t),FU=(n,t)=>{const e=sw(n),r=e.subs.delete(t);return r&&e.subs.size===0&&(e.bc.close(),ZI.delete(n)),r},Oa=(n,t,e=null)=>{const r=sw(n);r.bc.postMessage(t),r.subs.forEach(s=>s(t,e))},JI=0,iw=1,VI=2,Ky=(n,t)=>{je(n,JI);const e=L8(t);on(n,e)},QI=(n,t,e)=>{je(n,iw),on(n,T8(t,e))},zU=(n,t,e)=>QI(t,e,Zn(n)),XI=(n,t,e,r)=>{try{S8(t,Zn(n),e)}catch(s){r!=null&&r(s),console.error("Caught error while handling a Yjs update",s)}},UU=(n,t)=>{je(n,VI),on(n,t)},KU=XI,WU=(n,t,e,r,s)=>{const i=Ve(n);switch(i){case JI:zU(n,t,e);break;case iw:XI(n,e,r,s);break;case VI:KU(n,e,r,s);break;default:throw new Error("Unknown message type")}return i},HU=0,YU=(n,t,e)=>{switch(Ve(n)){case HU:e(t,wo(n))}},xA=3e4;class GU extends rN{constructor(t){super(),this.doc=t,this.clientID=t.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const e=Io();this.getLocalState()!==null&&xA/2<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const r=[];this.meta.forEach((s,i)=>{i!==this.clientID&&xA<=e-s.lastUpdated&&this.states.has(i)&&r.push(i)}),r.length>0&&ow(this,r,"timeout")},Ts(xA/10)),t.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(t){const e=this.clientID,r=this.meta.get(e),s=r===void 0?0:r.clock+1,i=this.states.get(e);t===null?this.states.delete(e):this.states.set(e,t),this.meta.set(e,{clock:s,lastUpdated:Io()});const o=[],l=[],a=[],u=[];t===null?u.push(e):i==null?t!=null&&o.push(e):(l.push(e),Ha(i,t)||a.push(e)),(o.length>0||a.length>0||u.length>0)&&this.emit("change",[{added:o,updated:a,removed:u},"local"]),this.emit("update",[{added:o,updated:l,removed:u},"local"])}setLocalStateField(t,e){const r=this.getLocalState();r!==null&&this.setLocalState({...r,[t]:e})}getStates(){return this.states}}const ow=(n,t,e)=>{const r=[];for(let s=0;s<t.length;s++){const i=t[s];if(n.states.has(i)){if(n.states.delete(i),i===n.clientID){const o=n.meta.get(i);n.meta.set(i,{clock:o.clock+1,lastUpdated:Io()})}r.push(i)}}r.length>0&&(n.emit("change",[{added:[],updated:[],removed:r},e]),n.emit("update",[{added:[],updated:[],removed:r},e]))},Tu=(n,t,e=n.states)=>{const r=t.length,s=Jn();je(s,r);for(let i=0;i<r;i++){const o=t[i],l=e.get(o)||null,a=n.meta.get(o).clock;je(s,o),je(s,a),wl(s,JSON.stringify(l))}return qt(s)},ZU=(n,t,e)=>{const r=Yo(t),s=Io(),i=[],o=[],l=[],a=[],u=Ve(r);for(let d=0;d<u;d++){const f=Ve(r);let g=Ve(r);const p=JSON.parse(wo(r)),m=n.meta.get(f),y=n.states.get(f),b=m===void 0?0:m.clock;(b<g||b===g&&p===null&&n.states.has(f))&&(p===null?f===n.clientID&&n.getLocalState()!=null?g++:n.states.delete(f):n.states.set(f,p),n.meta.set(f,{clock:g,lastUpdated:s}),m===void 0&&p!==null?i.push(f):m!==void 0&&p===null?a.push(f):p!==null&&(Ha(p,y)||l.push(f),o.push(f)))}(i.length>0||l.length>0||a.length>0)&&n.emit("change",[{added:i,updated:l,removed:a},e]),(i.length>0||o.length>0||a.length>0)&&n.emit("update",[{added:i,updated:o,removed:a},e])},JU=n=>iz(n,(t,e)=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("&"),cl=0,qI=3,Va=1,VU=2,kd=[];kd[cl]=(n,t,e,r,s)=>{je(n,cl);const i=WU(t,n,e.doc,e);r&&i===iw&&!e.synced&&(e.synced=!0)};kd[qI]=(n,t,e,r,s)=>{je(n,Va),on(n,Tu(e.awareness,Array.from(e.awareness.getStates().keys())))};kd[Va]=(n,t,e,r,s)=>{ZU(e.awareness,Zn(t),e)};kd[VU]=(n,t,e,r,s)=>{YU(t,e.doc,(i,o)=>QU(e,o))};const M1=3e4,QU=(n,t)=>console.warn(`Permission denied to access ${n.url}.
19
+ ${t}`),$I=(n,t,e)=>{const r=Yo(t),s=Jn(),i=Ve(r),o=n.messageHandlers[i];return o?o(s,r,n,e,i):console.error("Unable to compute message"),s},eL=n=>{if(n.shouldConnect&&n.ws===null){const t=new n._WS(n.url);t.binaryType="arraybuffer",n.ws=t,n.wsconnecting=!0,n.wsconnected=!1,n.synced=!1,t.onmessage=e=>{n.wsLastMessageReceived=Io();const r=$I(n,new Uint8Array(e.data),!0);v0(r)>1&&t.send(qt(r))},t.onerror=e=>{n.emit("connection-error",[e,n])},t.onclose=e=>{n.emit("connection-close",[e,n]),n.ws=null,n.wsconnecting=!1,n.wsconnected?(n.wsconnected=!1,n.synced=!1,ow(n.awareness,Array.from(n.awareness.getStates().keys()).filter(r=>r!==n.doc.clientID),n),n.emit("status",[{status:"disconnected"}])):n.wsUnsuccessfulReconnects++,setTimeout(eL,x0(w5(2,n.wsUnsuccessfulReconnects)*100,n.maxBackoffTime),n)},t.onopen=()=>{n.wsLastMessageReceived=Io(),n.wsconnecting=!1,n.wsconnected=!0,n.wsUnsuccessfulReconnects=0,n.emit("status",[{status:"connected"}]);const e=Jn();if(je(e,cl),Ky(e,n.doc),t.send(qt(e)),n.awareness.getLocalState()!==null){const r=Jn();je(r,Va),on(r,Tu(n.awareness,[n.doc.clientID])),t.send(qt(r))}},n.emit("status",[{status:"connecting"}])}},vA=(n,t)=>{const e=n.ws;n.wsconnected&&e&&e.readyState===e.OPEN&&e.send(t),n.bcconnected&&Oa(n.bcChannel,t,n)};class tL extends rN{constructor(t,e,r,{connect:s=!0,awareness:i=new GU(r),params:o={},WebSocketPolyfill:l=WebSocket,resyncInterval:a=-1,maxBackoffTime:u=2500,disableBc:d=!1}={}){for(super();t[t.length-1]==="/";)t=t.slice(0,t.length-1);const f=JU(o);this.maxBackoffTime=u,this.bcChannel=t+"/"+e,this.url=t+"/"+e+(f.length===0?"":"?"+f),this.roomname=e,this.doc=r,this._WS=l,this.awareness=i,this.wsconnected=!1,this.wsconnecting=!1,this.bcconnected=!1,this.disableBc=d,this.wsUnsuccessfulReconnects=0,this.messageHandlers=kd.slice(),this._synced=!1,this.ws=null,this.wsLastMessageReceived=0,this.shouldConnect=s,this._resyncInterval=0,a>0&&(this._resyncInterval=setInterval(()=>{if(this.ws&&this.ws.readyState===WebSocket.OPEN){const g=Jn();je(g,cl),Ky(g,r),this.ws.send(qt(g))}},a)),this._bcSubscriber=(g,p)=>{if(p!==this){const m=$I(this,new Uint8Array(g),!1);v0(m)>1&&Oa(this.bcChannel,qt(m),this)}},this._updateHandler=(g,p)=>{if(p!==this){const m=Jn();je(m,cl),UU(m,g),vA(this,qt(m))}},this.doc.on("update",this._updateHandler),this._awarenessUpdateHandler=({added:g,updated:p,removed:m},y)=>{const b=g.concat(p).concat(m),x=Jn();je(x,Va),on(x,Tu(i,b)),vA(this,qt(x))},this._exitHandler=()=>{ow(this.awareness,[r.clientID],"app closed")},Lo&&typeof process<"u"&&process.on("exit",this._exitHandler),i.on("update",this._awarenessUpdateHandler),this._checkInterval=setInterval(()=>{this.wsconnected&&M1<Io()-this.wsLastMessageReceived&&this.ws.close()},M1/10),s&&this.connect()}get synced(){return this._synced}set synced(t){this._synced!==t&&(this._synced=t,this.emit("synced",[t]),this.emit("sync",[t]))}destroy(){this._resyncInterval!==0&&clearInterval(this._resyncInterval),clearInterval(this._checkInterval),this.disconnect(),Lo&&typeof process<"u"&&process.off("exit",this._exitHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.doc.off("update",this._updateHandler),super.destroy()}connectBc(){if(this.disableBc)return;this.bcconnected||(jU(this.bcChannel,this._bcSubscriber),this.bcconnected=!0);const t=Jn();je(t,cl),Ky(t,this.doc),Oa(this.bcChannel,qt(t),this);const e=Jn();je(e,cl),QI(e,this.doc),Oa(this.bcChannel,qt(e),this);const r=Jn();je(r,qI),Oa(this.bcChannel,qt(r),this);const s=Jn();je(s,Va),on(s,Tu(this.awareness,[this.doc.clientID])),Oa(this.bcChannel,qt(s),this)}disconnectBc(){const t=Jn();je(t,Va),on(t,Tu(this.awareness,[this.doc.clientID],new Map)),vA(this,qt(t)),this.bcconnected&&(FU(this.bcChannel,this._bcSubscriber),this.bcconnected=!1)}disconnect(){this.shouldConnect=!1,this.disconnectBc(),this.ws!==null&&this.ws.close()}connect(){this.shouldConnect=!0,!this.wsconnected&&this.ws===null&&(eL(this),this.connectBc())}}const XU="0.7.24-beta.1",qU={version:XU},$U=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","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"},"emoji":{"name":"Emoji","subtitle":"Add emoji"}},"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"},"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","smartPaste":{"title":"We can improve your text","subtitle":"The text is already pasted. Press \\"Apply\\" to format it neatly.","aiButton":"Apply","rulesButton":"Split via Rules (Safe)","plainButton":"Don't show again","remember":"Remember my choice","processing":"Processing...","fallback":"Processing failed, pasting as-is","textTooLong":"The text is too long — some content will be trimmed during formatting. Continue?"}}`),eK={editor:$U},tK=JSON.parse(`{"placeholder":"Escribe algo o pulsa '/' para comandos...","heading":{"h1":"Encabezado 1","h2":"Encabezado 2","h3":"Encabezado 3","name":"Encabezado"},"close":"Cerrar","upload":"Subir","unsavedChanges":{"title":"Cambios no guardados","message":"¿Está seguro de que desea cerrar la página? Todos los datos no guardados se perderán.","cancel":"Cancelar","closeWithoutSaving":"Cerrar sin guardar"},"menu":{"heading":{"title":"Encabezados","hintShowCase":"Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}: un espacio de trabajo conectado donde el trabajo mejora y se acelera.","h1":{"subtitle":"Encabezado grande","hintDescription":"H1 se utiliza para crear el encabezado principal de una página o sección, estableciendo el tema general. También se utiliza para generar automáticamente el índice de contenidos del documento.","keywords":{"header1":"encabezado1","headerOne":"encabezadouno","h1":"h1"}},"h2":{"subtitle":"Encabezado mediano","hintDescription":"H2 se utiliza para crear un encabezado secundario de una página o sección, estableciendo un tema general. También se utiliza para generar automáticamente el índice de contenidos.","keywords":{"header2":"encabezado2","headerTwo":"encabezadodos","h2":"h2"}},"h3":{"subtitle":"Encabezado pequeño","hintDescription":"H3 se utiliza para crear un subencabezado de una página o sección. También genera automáticamente el índice de contenidos.","keywords":{"header3":"encabezado3","headerThree":"encabezadotres","h3":"h3"}}},"lists":{"title":"Listas","numberList":{"name":"Lista numerada","subtitle":"Una lista numerada simple","hint":{"firstItem":"Primer elemento","secondItem":"Segundo elemento","firstSubItem":"Primer subelemento","secondSubItem":"Segundo subelemento","firstSubSubItem":"Primer sub-subelemento","secondSubSubItem":"Segundo sub-subelemento","description":"Esta herramienta crea una lista con elementos que se numeran automáticamente al agregar nuevas filas."}},"bulletList":{"name":"Lista con viñetas","subtitle":"Lista con marcadores automáticos","hint":{"firstItem":"Primer elemento","secondItem":"Segundo elemento","firstSubItem":"Primer subelemento","secondSubItem":"Segundo subelemento","firstSubSubItem":"Primer sub-subelemento","secondSubSubItem":"Segundo sub-subelemento","description":"Crea una lista cuyos elementos están marcados automáticamente con viñetas."}},"checkList":{"name":"Lista de tareas","subtitle":"Gestión de tareas fácil","hint":{"indeterminate":"Indeterminado","unchecked":"No marcado","checked":"Marcado","description":"Crea una lista de tareas con opción de marcar como completadas."}}},"main":{"title":"Elementos básicos","paragraph":{"name":"Párrafo","subtitle":"Comienza a escribir texto normal","hint":{"text":"Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}: un espacio de trabajo conectado donde el trabajo mejora y se acelera.","description":"Un bloque de texto alineado a la izquierda."}},"quote":{"name":"Cita","subtitle":"Escribe una cita","hint":{"text":"/quote Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}: un espacio de trabajo conectado donde el trabajo mejora y se acelera.","description":"Inserta citas o destaca bloques de texto importantes."}},"collapse":{"name":"Plegable","subtitle":"Oculta contenido del bloque","hint":{"firstItemEmpty":"Primer elemento vacío","secondItem":"Segundo elemento","firstSubItemEmpty":"Primer subelemento vacío","secondSubItem":"Segundo subelemento","firstSubSubItemEmpty":"Primer sub-subelemento vacío","secondSubSubItem":"Segundo sub-subelemento","description":"Crea bloques cuyo contenido se puede ocultar o mostrar al hacer clic."}},"horizontal-rule":{"name":"Divisor","subtitle":"Visualiza divisores de bloques","hint":{"topText":"Presionó la barra diagonal. Luego ingresó algo...","bottomText":"Al día siguiente, todo quedó más claro. Lo que ayer era desconocido, hoy es familiar. Por ejemplo...","description":"Separa visualmente secciones o bloques de texto."}},"table":{"name":"Tabla","subtitle":"Agrega una tabla simple a la página","hint":{"firstRow":"Primera celda con texto","secondRow":"Otra celda con texto","description":"Crea tablas con múltiples filas y columnas para organizar datos."}},"grid":{"name":"Cuadrícula","subtitle":"Hasta 4 columnas de bloques","hint":{"firstColumn":"Al día siguiente todo fue más claro...","secondColumn":"Tus ideas, documentos y planes. Unidos...","description":"Divide el documento en múltiples columnas que pueden contener bloques."}},"code":{"name":"Código","subtitle":"Escribe un fragmento de código","copy":"Copiar código","exitCommandText":"Shift + Enter para salir del bloque","collapsible":{"hidden":"Colapsar código","expand":"Expandir código"},"hint":{"description":"Inserta fragmentos de código con resaltado de sintaxis."}},"callout":{"name":"Llamado","subtitle":"Destaca un bloque de texto","hint":{"description":"-."}}},"callout":{"title":"Llamado","default":{"name":"Por defecto","hint":{"description":"Bloque de texto alineado a la izquierda.","body":"/callout Tus ideas, documentos y planes. Unidos. Bienvenido a {{projectName}}..."},"keywords":{"callout":"llamado","type":"default"},"subtitle":"Llamado por defecto"},"success":{"name":"Éxito","subtitle":"Notificación de éxito","keywords":{"callout":"llamado","type":"success"}},"warning":{"name":"Advertencia","hint":{"description":"Bloque de texto alineado a la izquierda."},"keywords":{"callout":"llamado","type":"warning"},"subtitle":"Notificación importante"},"alert":{"name":"Alerta","hint":{"description":"Bloque de texto alineado a la izquierda."},"keywords":{"callout":"llamado","type":"alert"},"subtitle":"Notificación crítica"}},"media":{"title":"Multimedia","photo":{"name":"Imagen","hint":{"description":"Agrega una imagen a la página."},"subtitle":"Sube o enlaza una imagen"},"form":{"name":"Formulario","subtitle":"Agrega un formulario"},"video":{"name":"Video","hint":{"description":"Incrusta un video en la página."},"subtitle":"Agrega un video"},"file":{"name":"Archivo","hint":{"description":"Sube archivos de hasta 500 MB para que puedan ser descargados por quienes tengan el enlace."},"subtitle":"Agrega un archivo"},"audio":{"name":"Audio","hint":{"description":"Sube archivos de audio de hasta 5 MB para compartir y escuchar."},"subtitle":"Agrega un audio"},"excalidraw":{"name":"Dibujo","hint":{"description":"Dibuja cualquier esquema o paisaje. Creatividad sin límites."},"keywords":{"video":"dibujo"},"subtitle":"Trabaja con gráficos vectoriales","tools":{"frameTool":"Herramienta de marco","webEmbed":"Incrustación web","generate":"Generar"}}},"other":{"title":"Otros","documents":{"empty":"No tienes documentos anidados","loading":"Cargando documentos...","name":"Documentos Anidados","subtitle":"Muestra una lista de documentos anidados"},"emoji":{"name":"Emoji","subtitle":"Agrega emoji"}},"integrations":{"title":"Integraciones"}},"toolbar":{"turnInto":"Convertir en","bold":"Negrita","italic":"Cursiva","underline":"Subrayado","strike":"Tachado","superscript":"Superíndice","subscript":"Subíndice","align":"Alineación","left":"Alinear a la izquierda","center":"Alinear al centro","right":"Alinear a la derecha","justify":"Justificar","indent":"Aumentar sangría","outdent":"Disminuir sangría","color":"Color","code":"Código","link":"Agregar enlace","clear":"Quitar formato","comment":"Comentario"},"link":{"linkName":"Nombre del enlace","link":"Enlace","name":"Nombre","save":"Guardar","remove":"Eliminar","edit":"Editar","copy":"Copiar","type":{"web":"Enlace web","phone":"Número de teléfono","email":"Dirección de correo electrónico","sms":"Mensaje SMS"}},"contextMenu":{"copy":"Copiar","cut":"Cortar","paste":"Pegar","delete":"Eliminar","add":"Agregar","selectAll":"Seleccionar todo","duplicate":"Duplicar","appearance":"Apariencia"},"colors":{"lastTimeUsed":"Último uso","color":"Color","background":"Fondo","theme":"Tema","colors":{"standard":"Estándar","gray":"Gris","brown":"Marrón","orange":"Naranja","yellow":"Amarillo","green":"Verde","blue":"Azul","purple":"Púrpura","pink":"Rosa","red":"Rojo"},"callout":{"success":"Éxito","alert":"Alerta","warning":"Advertencia"}},"video":{"insert":"Insertar","apply":"Aplicar","worksWith":"Funciona con","add_video":"Agregar video"},"swagger":{"insert":"Swagger","worksWith":"Funciona con","add":"Agregar Swagger"},"image":{"add_photo":"Agregar imagen","preview":"Vista previa"},"file":{"add_file":"Agregar archivo"},"audio":{"add_audio":"Agregar audio"},"mention":{"mark":"Mencionar a alguien"},"validation":{"link":"Enlace inválido","shouldNotExceed":"El tamaño del archivo no debe exceder {{maxSize}} MB.","doNotUploadMoreThanSingleFile":"Por favor, no subas más de un archivo.","swaggerUnavailable":"La documentación de Swagger no está disponible. Asegúrese de que la URL sea correcta y que el servidor esté respondiendo."},"table":{"background_one":"Color de fondo de celda","background_other":"Color de fondo de las celdas","settings":"Configuraciones","menu":{"addColAfter":"Agregar columna a la derecha","addColBefore":"Agregar columna a la izquierda","addRowAbove":"Agregar fila arriba","addRowBelow":"Agregar fila abajo","deleteCol":"Eliminar columna","deleteRow":"Eliminar fila","mergeCells":"Combinar celdas","disconnectCells":"Desconectar celdas","splitCell":"Dividir celda","deleteTable":"Eliminar tabla","insertRow_one":"Insertar fila","insertRow_other":"Insertar {{count}} filas","deleteRow_one":"Eliminar fila","deleteRow_other":"Eliminar {{count}} filas","insertCol_one":"Insertar columna","insertCol_other":"Insertar {{count}} columnas","deleteCol_one":"Eliminar columna","deleteCol_other":"Eliminar {{count}} columnas","headTable_col":"Columna de fila {{value}}","headTable_row":"Encabezado de fila {{value}}","below":"Debajo","above":"Arriba","left":"Izquierda","right":"Derecha","row":"Fila","rows":"Filas","column":"Columna","columns":"Columnas"}},"column":{"name":"Insertar cuadrícula","insert":"Insertar","columns":"Columnas","addRight":"Agregar columna a la derecha","addLeft":"Agregar columna a la izquierda","moveLeft":"Mover columna a la izquierda","changeColor":"Cambiar color de la columna","moveRight":"Mover columna a la derecha","deleteColumn":"Eliminar columna"},"hoverOptions":{"addNewBlockBelow":"Agregar bloque debajo","addNewBlockAbove":"Agregar bloque arriba","drag":"Arrastrar","click":"Clic","clickAction":"Para abrir el menú","dragAction":"Para mover"},"embed":{"placeholder":"Introduce una URL válida para incrustar","insert":"Insertar","addEmbed":"Agregar incrustación"},"content":"Contenido","emoji":{"emojis":"Emoji","icons":"Íconos","search":"Buscar","searchResults":"Resultado de búsqueda","searchNoResults":"Emoji no encontrado","remove":"Eliminar","emojiCategory":{"frequent":"Usados frecuentemente","people":"Emociones y personas","nature":"Animales y naturaleza","foods":"Comida y bebidas","activity":"Actividades","places":"Viajes y lugares","objects":"Objetos","symbols":"Símbolos","flags":"Banderas"}},"form":{"url":"Introduce una URL válida."},"noTitle":"Sin título","gallery":{"download":"Descargar","close":"Cerrar","errorFile":"No se pudo descargar el archivo"},"emptyPageOptions":{"heading":"Un encabezado que generará automáticamente un índice interactivo","grid":"La cuadrícula ayuda a estructurar horizontalmente la página","list":"Lista numerada para estructurar fácilmente reuniones","template":"Crear desde plantilla","code":"Bloque de código con resaltado de sintaxis","callout":"Llamado para resaltar información","table":"Tabla para encontrar dependencias en los datos","integrations":"Muchas integraciones de servicios externos"},"composer":{"discardCommentTitle":"¿Cerrar sin guardar?","discardCommentDescription":"Tu contenido ingresado se perderá.","discardConfirm":"Cerrar","cancel":"Continuar","replaceComment":{"title":"El comentario ya existe","description":"Has seleccionado un texto que ya contiene un comentario.\\nEl comentario anterior será eliminado.","confirm":"Reemplazar","cancel":"Cancelar"},"uploadErrors":{"fileTooLarge":"El archivo es demasiado grande — el tamaño máximo es de 5 MB.","tooManyFiles":"No puedes subir más de 10 archivos."},"placeholder":"Agregar comentario"},"ai":{"placeholder":"Prompt personalizado","copied":"copiado","copy":"copiar","back":"Atrás","menu":{"style":{"professional":"Profesional","straightforward":"Directo","passiveAggressive":"Pasivo-agresivo","friendly":"Amistoso","poetic":"Poético","passive_aggressive":"Pasivo agresivo","pirate":"Pirata"},"main":{"modifySelection":"Modificar selección","improveWriting":"Mejorar redacción","fixMistakes":"Corregir errores","simplify":"Simplificar","addMoreDetail":"Agregar más detalle","generate":"Generar","summarise":"Resumir","translate":"Traducir a...","changeStyle":"Cambiar estilo a...","explain":"Explicar"},"answer":{"replaceSelection":"Reemplazar selección","addTextInline":"Agregar texto en línea","addBelowParagraph":"Agregar debajo del párrafo","modifyFurther":"Modificar más","continueWriting":"Seguir escribiendo","regenerate":"Regenerar","otherOptions":"Otras opciones","discard":"Descartar"},"languages":{"arabic":"Árabe","bengali":"Bengalí","chinese":"Chino","dutch":"Holandés","english":"Inglés","french":"Francés","german":"Alemán","hindi":"Hindi","japanese":"Japonés","korean":"Coreano","nepali":"Nepalí","portuguese":"Portugués","spanish":"Español"}}},"actions":{"delete":"Eliminar","align":"Alineación"},"cancel":"Cancelar","smartPaste":{"title":"Podemos mejorar tu texto","subtitle":"El texto ya está pegado. Pulsa \\"Aplicar\\" para darle formato.","aiButton":"Aplicar","rulesButton":"Dividir con Rules (Safe)","plainButton":"No volver a mostrar","remember":"Recordar mi elección","processing":"Procesando...","fallback":"Error al procesar, pegando tal cual","textTooLong":"El texto es demasiado largo — parte del contenido se recortará al formatear. ¿Continuar?"}}`),nK={editor:tK},rK=JSON.parse(`{"placeholder":"Напишите что-нибудь, или нажмите '/' для команд...","upload":"Загрузить","heading":{"h1":"Заголовок 1","h2":"Заголовок 2","h3":"Заголовок 3","name":"Заголовок"},"close":"Закрыть","unsavedChanges":{"title":"Несохранённые изменения","message":"Вы действительно хотите закрыть страницу? Все несохранённые данные будут потеряны.","cancel":"Отмена","closeWithoutSaving":"Закрыть без сохранения"},"menu":{"heading":{"title":"Заголовоки","hintShowCase":"Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее.","h1":{"subtitle":"Большой заголовок","hintDescription":"H1 используется для создания основного заголовка страницы или раздела, который задает общую тему. Так же используется для автоматического формирования содержания документа.","keywords":{"heading":"оглавление","header1":"заголовок1","headerOne":"заголовокодин","h1":"з1"}},"h2":{"subtitle":"средний заголовок","hintDescription":"H2 используется для создания дополнительного заголовка страницы или раздела, который задает общую тему. Так же используется для автоматического формирования содержания документа.","keywords":{"heading":"оглавление","header2":"заголовок2","headerTwo":"заголовокдва","h2":"з2"}},"h3":{"subtitle":"Маленький заголовок","hintDescription":"H3 используется для создания подзаголовка страницы или раздела, который задает общую тему. Так же используется для автоматического формирования содержания документа.","keywords":{"heading":"оглавление","header3":"заголовок3","headerThree":"заголовоктри","h3":"з3"}}},"lists":{"title":"Списки","numberList":{"name":"Нумерованный Список","subtitle":"Простой нумерованный список","hint":{"firstItem":"Первый пункт","secondItem":"Второй пункт","firstSubItem":"Первый подпункт","secondSubItem":"Второй подпункт","firstSubSubItem":"Первый подподпункт","secondSubSubItem":"Второй подподпункт","description":"Этот инструмент создает список с элементами, которые автоматически нумеруются при добавлении новых строк."},"keywords":{"headingList":"нумерованныйсписок","heading":"нумерация","markers":"цифры"}},"bulletList":{"name":"Маркированный список","subtitle":"Автоматически маркированный список","hint":{"firstItem":"Первый пункт","secondItem":"Второй пункт","firstSubItem":"Первый подпункт","secondSubItem":"Второй подпункт","firstSubSubItem":"Первый подподпункт","secondSubSubItem":"Второй подподпункт","description":"Этот инструмент создает список с элементами, которые маркируются автоматически при добавлении новых строк."},"keywords":{"headingList":"маркированныйсписок","heading":"маркеры","markers":"точки","bulletsAlt1":"буллеты","bulletsAlt2":"булеты"}},"checkList":{"name":"Чек-лист","subtitle":"Простое управление задачами","hint":{"indeterminate":"Неопределен","unchecked":"Неотмечен","checked":"Отмечен","description":"Создает список задач с возможностью отметки выполненных пунктов и подпунктов"},"keywords":{"headingList":"списокзадач","heading":"чеклист","markers":"флажки","shoppingList":"списокпокупок"}}},"main":{"title":"Базовые","paragraph":{"name":"Парараграф","subtitle":"Просто начнийте писать обычным текстом","hint":{"text":"Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее.","description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок"},"keywords":{"paragraph":"параграф","text":"текст"}},"quote":{"name":"Цитата","subtitle":"Запишите цитату","hint":{"text":"/quote Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее. Оставайтесь сосредоточенными, действуйте слаженно и добивайтесь большего с Layers.","description":"Используется для вставки цитат или выделения важных блоков текста. Визуально выносится отдельно от основного текста"},"keywords":{"quote":"цитата","mark":"кавычки","citation":"цитирование"}},"collapse":{"name":"Сворачиваемый","subtitle":"Прячет содержимое блока","hint":{"firstItemEmpty":"Первый пункт пустой","secondItem":"Второй пункт","firstSubItemEmpty":"Первый подпункт пустой","secondSubItem":"Второй подпункт","firstSubSubItemEmpty":"Первый подподпункт пустой ","secondSubSubItem":"Второй подподпункт","description":"Используется для создания блоков с содержимым, которое можно скрыть или показать при нажатии. Внутри такого списка может быть почти любой другой блок"},"keywords":{"collapsibleList":"сворачиваемыйсписок","expandList":"раскрыть","hideList":"скрыть","turnList":"свернуть"}},"horizontal-rule":{"name":"Разделитель","subtitle":"Визуализирует разделитель блоков","hint":{"topText":"нажал на слэш. Потом что-то ввёл...","bottomText":"На следующий день всё стало яснее и понятнее. Будто то, что ещё вчера было чем-то неизведанным сегодня стало совершенно знакомым и обыденным. Вот взять, к примеру","description":"Используется для визуального разделения разделов или блоков текста на странице"},"keywords":{"divider":"разделитель","horizontalLine":"линия","border":"граница"}},"table":{"name":"Таблица","subtitle":"Добавьте на свою страницу простую таблицу","hint":{"firstRow":"Первая ячейка заполненная текстом","secondRow":"И ещё одна с текстом ячейка","description":"Инструмент для создания таблиц с несколькими строками и столбцами для организации данных"},"keywords":{"table":"таблица"}},"grid":{"name":"Сетка","subtitle":"До 4-х колонок из блоков","hint":{"firstColumn":"На следующий день всё стало яснее и понятнее. Будто то, что ещё вчера было чем-то неизведанным сегодня стало совершенно знакомым и обыденным. Вот взять, к примеру","secondColumn":"Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее.","description":"Инструмент для разделения докуента на несколько столбцов, в которые можно помещать любые блоки"},"keywords":{"net":"сетка","grid":"грид","columns":"столбцы"}},"code":{"name":"Код","subtitle":"Запишите фрагмент кода","copy":"Копировать код","exitCommandText":"Shift + Enter чтобы выйти из блока кода","collapsible":{"hidden":"Свернуть код","expand":"Развернуть код"},"hint":{"description":"Инструмент для вставки фрагментов программного кода с подсветкой синтаксиса"},"keywords":{"code":"код","snippet":"сниппет"}}},"media":{"title":"Медиа","photo":{"name":"Картинка","hint":{"description":"Инструмент для добавления изображения на страницу"},"keywords":{"picture":"картинка","display":"изображение","meme":"мем","drawing":"иллюстрация","memePic":"пикча"},"subtitle":"Загрузите и разместите с помощью ссылки"},"form":{"name":"Форма","subtitle":"Добавьте форму"},"video":{"name":"Видео","hint":{"description":"Инструмент для вставки видео на страницу"},"keywords":{"video":"видео"},"subtitle":"Добавьте видео"},"file":{"name":"Файл","hint":{"description":"Загружайте любые файлы объёмом до 500 Мб и они будут доступны для скачивания всем, с кем вы поделитесь ссылкой на эту страницу."},"keywords":{"video":"файл"},"subtitle":"Добавьте файл"},"audio":{"name":"Аудио","hint":{"description":"Загружайте любые аудиофайлы объёмом до 5 Мб и они будут доступны для скачивания и прослушивания всем, с кем вы поделитесь ссылкой на эту страницу."},"keywords":{"video":"аудио"},"subtitle":"Добавьте аудио"},"excalidraw":{"name":"Доска для рисования","hint":{"description":"Нарисуй любую схему или концепт. Полная свобода творчества — всё в твоих руках."},"keywords":{"draw":"рисовать","drawing":"рисовалка"},"subtitle":"Работайте с векторной графикой","tools":{"frameTool":"Инструмент рамки","webEmbed":"Веб-встраивание","generate":"Генерировать"}}},"callout":{"title":"Уведомления","default":{"name":"По умолчанию","hint":{"description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок.","body":"/callout Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее. Ваши Идеи и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа становится лучше и быстрее. Ваши Идеи, Документы и Планы. Объединены. Добро пожаловать в {{projectName}} — это связанное рабочее пространство, где работа"},"keywords":{"callout":"оповещение","type":"поумолчанию"},"subtitle":"Уведомление по умолчанию"},"success":{"name":"Успех","subtitle":"Успешное уведомления","keywords":{"callout":"оповещение","type":"успех"}},"warning":{"name":"Предупреждение","hint":{"description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок."},"keywords":{"callout":"оповещение","type":"предупреждение"},"subtitle":"Важное уведомления"},"alert":{"name":"Внимание","hint":{"description":"Несколько строк текста, выровненных по левому краю, имитирующих текстовый блок."},"keywords":{"callout":"оповещение","type":"внимание"},"subtitle":"Критическое уведомление"}},"other":{"title":"Прочее","documents":{"empty":"У вас нет вложенных документов","loading":"Загрузка документов...","name":"Вложенные документы","subtitle":"Отображает список вложенных документов"},"emoji":{"name":"Эмодзи","subtitle":"Добавьте эмодзи"}},"integrations":{"title":"Интеграции"}},"toolbar":{"turnInto":"Превратить в","bold":"Жирный","italic":"Курсив","underline":"Подчеркнутый","strike":"Зачеркнутый","superscript":"Надстрочный","subscript":"Подстрочный","align":"Выравнивание","left":"По левому краю","center":"По центру","right":"По правому краю","justify":"Выравнивание по ширине","indent":"Отступ","outdent":"Отступ","color":"Цвет","code":"Код","link":"Добавить ссылку","clear":"Очистить формат","comment":"Комментарий"},"link":{"linkName":"Название ссылки","link":"Ссылка","name":"Название","save":"Сохранить","remove":"Удалить","edit":"Редактировать","copy":"Копировать","type":{"web":"Веб-ссылка","phone":"Номер телефона","email":"Адрес почты","sms":"SMS сообщение"}},"contextMenu":{"copy":"Копировать","cut":"Вырезать","paste":"Вставить","delete":"Удалить","add":"Добавить","selectAll":"Выбрать все","duplicate":"Дублировать","appearance":"Внешний вид"},"colors":{"lastTimeUsed":"Последнее раз использовался","color":"Цвет","background":"Фон","theme":"Темы","colors":{"standard":"Стандартный","gray":"Серый","brown":"Коричневый","orange":"Оранжевый","yellow":"Желтый","green":"Зеленый","blue":"Синий","purple":"Фиолетовый","pink":"Розовый","red":"Красный"},"callout":{"success":"Успех","alert":"Внимание","warning":"Предупреждение"}},"video":{"insert":"Встроить","apply":"Применить","worksWith":"Работает с","add_video":"Добавить видео"},"swagger":{"insert":"Swagger","worksWith":"Works with","add":"Добавить Swagger"},"image":{"add_photo":"Добавить картинку","preview":"Превью"},"file":{"add_file":"Добавить файл"},"audio":{"add_audio":"Добавить аудио"},"mention":{"mark":"Отменить кого-то"},"validation":{"link":"Неверная ссылка","shouldNotExceed":"Размер файла не должен превышать {{maxSize}} МБ.","doNotUploadMoreThanSingleFile":"Пожалуйста, загружайте не более одного файла.","swaggerUnavailable":"Swagger-документация недоступна. Убедитесь, что адрес указан правильно и сервер отвечает."},"table":{"background_one":"Цвет фона ячейки","background_few":"Цвет фона ячеек","background_other":"Цвет фона ячеек","settings":"Настройки","menu":{"addColAfter":"Добавить столбец справа","addColBefore":"Добавить столбец слева","addRowAbove":"Добавить строку выше","addRowBelow":"Добавить строку ниже","deleteCol":"Удалить столбец","deleteRow":"Удалить строку","mergeCells":"Объединить ячейки","disconnectCells":"Разъединить ячейки","splitCell":"Разделить ячейку","deleteTable":"Удалить таблицу","insertRow_one":"Вставить строку","insertRow_few":"Вставить {{count}} строки","insertRow_many":"Вставить {{count}} строк","deleteRow_one":"Удалить строку","deleteRow_few":"Удалить {{count}} строки","deleteRow_many":"Удалить {{count}} строк","insertCol_one":"Вставить столбец","insertCol_few":"Вставить {{count}} столбца","insertCol_many":"Вставить {{count}} столбец","deleteCol_one":"Удалить столбец","deleteCol_few":"Удалить {{count}} столбца","deleteCol_many":"Удалить {{count}} столбец","headTable_col":"{{value}} заголовок столбца","headTable_row":"{{value}} заголовок строки","below":"ниже","above":"выше","left":"слева","right":"справа","row":"cтроку","rows":"cтроки","column":"cтолбец","columns":"cтолбца"}},"column":{"name":"Вставить сетку","insert":"Вставить","columns":"Колонки","addRight":"Добавить колонку справа","addLeft":"Добавить колонку слева","moveLeft":"Переместить колонку влево","moveRight":"Переместить колонку вправо","deleteColumn":"Удалить колонку","changeColor":"Поменять цвет колонки"},"hoverOptions":{"addNewBlockBelow":"Добавить блок выше","addNewBlockAbove":"Добавить блок ниже","drag":"Перетащите","click":"Нажмите","clickAction":"Чтобы открыть меню","dragAction":"Чтобы переместить"},"embed":{"placeholder":"Введите действительный URL-адрес для встраивания","insert":"Встроить","addEmbed":"Встроить внешний контент"},"content":"Содержание","emoji":{"emojis":"Эмодзи","icons":"Иконки","search":"Поиск","searchResults":"Результат поиска","searchNoResults":"Эмодзи не найдено","remove":"Удалить","emojiCategory":{"frequent":"Часто используемые","people":"Эмоции и люди","nature":"Животные и природа","foods":"Еда и напитки","activity":"Активности","places":"Путешествия и места","objects":"Предметы","symbols":"Символы","flags":"Флаги"}},"form":{"url":"Укажите правильный URL."},"noTitle":"Без названия","gallery":{"download":"Загрузить","close":"Закрыть","errorFile":"Не удалось загрузить файл"},"emptyPageOptions":{"heading":"Заголовок, который автоматически создаст интерактивное оглавление","template":"Создать из шаблона","grid":"Сетка поможет структурировать страницу по горизонтали","list":"Нумерованный список для удобного планирования встречи","code":"Блок кода с поддержкой синтаксиса","callout":"Выделенный блок для акцента","table":"Таблица для поиска зависимостей в данных","integrations":"Множество интеграций от сторонних сервисов"},"composer":{"discardCommentTitle":"Закрыть без сохранения?","discardCommentDescription":"Ваш введённый контент будет утерян.","discardConfirm":"Закрыть","cancel":"Продолжить","replaceComment":{"title":"Комментарий уже существует","description":"Вы выделили текст, который уже содержит комментарий.\\nПредыдущий комментарий будет удалён.","confirm":"Заменить","cancel":"Отмена"},"uploadErrors":{"fileTooLarge":"Файл слишком большой — максимальный размер 5 МБ.","tooManyFiles":"Нельзя загружать больше 10 файлов."},"placeholder":"Добавить комментарий"},"actions":{"delete":"Удалить","align":"Выравнивание"},"ai":{"placeholder":"Пользовательский запрос","copied":"скопировано","copy":"копировать","back":"Назад","menu":{"style":{"professional":"Профессиональный","straightforward":"Простой и понятный","friendly":"Дружелюбный","poetic":"Поэтический","passiveAggressive":"Пассивно-агрессивный","pirate":"Пиратский"},"main":{"modifySelection":"Изменить выделение","improveWriting":"Улучшить текст","fixMistakes":"Исправить ошибки","simplify":"Упростить","addMoreDetail":"Добавить подробности","generate":"Сгенерировать","summarise":"Резюме","translate":"Перевести на...","changeStyle":"Изменить стиль на...","explain":"Объяснить"},"answer":{"replaceSelection":"Заменить выделение","addTextInline":"Добавить текст в строку","addBelowParagraph":"Добавить под абзацем","modifyFurther":"Дополнительно изменить","continueWriting":"Продолжить написание","regenerate":"Сгенерировать заново","otherOptions":"Другие варианты","discard":"Удалить"},"languages":{"arabic":"Арабский","bengali":"Бенгальский","chinese":"Китайский","dutch":"Голландский","english":"Английский","french":"Французский","german":"Немецкий","hindi":"Хинди","japanese":"Японский","korean":"Корейский","nepali":"Непальский","portuguese":"Португальский","spanish":"Испанский"}}},"cancel":"Отменить","smartPaste":{"title":"Мы можем улучшить твой текст","subtitle":"Текст уже вставлен. Нажми «Применить», чтобы оформить его аккуратно.","aiButton":"Применить","rulesButton":"Разделить через Rules (Safe)","plainButton":"Больше не показывать","remember":"Запомнить мой выбор","processing":"Обработка...","fallback":"Не удалось обработать, вставляем как есть","textTooLong":"Текст слишком длинный — часть будет обрезана при форматировании. Продолжить?"}}`),sK={editor:rK},Wy=v4.createInstance();Wy.use(it.initReactI18next).init({resources:{en:{translation:eK,ui:Ct.enUI},ru:{translation:sK,ui:Ct.ruUI},es:{translation:nK,ui:Ct.esUI}},lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1}}).then(()=>{}).catch(n=>{});let Vi=class extends oi{constructor(e,r){super(r);z(this,"__format");this.__format=e||""}exportJSON(){return{...super.exportJSON(),format:this.__format||""}}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format||"")}canIndent(){return!1}createDOM(){return document.createElement("div")}updateDOM(){return!1}setFormat(e){const r=this.getWritable();return r.__format=e,r}isInline(){return!1}};function rg(n){return n instanceof Vi}function D1(n,t){return n.getEditorState().read(()=>{const e=me(t);return e!==null&&e.isSelected()})}function sp(n){const[t]=_e(),[e,r]=k.useState(()=>D1(t,n));return k.useEffect(()=>{let s=!0;const i=t.registerUpdateListener(()=>{s&&r(D1(t,n))});return()=>{s=!1,i()}},[t,n]),[e,k.useCallback(s=>{t.update(()=>{let i=G();Gt(i)||(i=Rg(),Ge(i)),Gt(i)&&(s?i.add(n):i.delete(n))})},[t,n]),k.useCallback(()=>{t.update(()=>{const s=G();Gt(s)&&s.clear()})},[t])]}function jl({children:n,format:t,nodeKey:e,className:r}){const[s]=_e(),[i,o,l]=sp(e),a=k.useRef(null);return k.useEffect(()=>Xe(s.registerCommand(go,u=>{if(i){const d=G();if(Gt(d)){const f=me(e);rg(f)&&f.setFormat(u)}else if(H(d)){const f=d.getNodes();for(const g of f)rg(g)?g.setFormat(u):Ec(g).setFormat(u)}return!0}return!1},Te),s.registerCommand(Hi,u=>u.target===a.current&&(u.preventDefault(),u.shiftKey||l(),o(!i),!0),Te)),[l,s,i,e,o]),A.jsx("div",{className:[r.base,i?r.focus:null].filter(Boolean).join(" "),ref:a,style:{textAlign:t||void 0},children:n})}function ip(){const n=k.useRef(null),t=k.useCallback(()=>{var r;return(r=n.current)==null||r.abort(),n.current=new AbortController,n.current.signal},[]),e=k.useCallback(()=>{var r;(r=n.current)==null||r.abort(),n.current=null},[]);return{start:t,cancel:e}}function iK(){const[n,t]=k.useState(!1),e=()=>t(!0),r=()=>t(!1);return k.useEffect(()=>{const s=i=>{n&&(i.preventDefault(),i.returnValue="")};return n&&window.addEventListener("beforeunload",s),()=>{n&&window.removeEventListener("beforeunload",s)}},[n]),{startLoading:e,stopLoading:r}}var ul=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oK(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var SA={exports:{}},O1;function lK(){return O1||(O1=1,(function(n){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
20
+ * Prism: Lightweight, robust, elegant syntax highlighting
21
+ *
22
+ * @license MIT <https://opensource.org/licenses/MIT>
23
+ * @author Lea Verou <https://lea.verou.me>
24
+ * @namespace
25
+ * @public
26
+ */var e=(function(r){var s=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},l={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function C(v){return v instanceof a?new a(v.type,C(v.content),v.alias):Array.isArray(v)?v.map(C):v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(C){return Object.prototype.toString.call(C).slice(8,-1)},objId:function(C){return C.__id||Object.defineProperty(C,"__id",{value:++i}),C.__id},clone:function C(v,E){E=E||{};var N,S;switch(l.util.type(v)){case"Object":if(S=l.util.objId(v),E[S])return E[S];N={},E[S]=N;for(var _ in v)v.hasOwnProperty(_)&&(N[_]=C(v[_],E));return N;case"Array":return S=l.util.objId(v),E[S]?E[S]:(N=[],E[S]=N,v.forEach(function(I,L){N[L]=C(I,E)}),N);default:return v}},getLanguage:function(C){for(;C;){var v=s.exec(C.className);if(v)return v[1].toLowerCase();C=C.parentElement}return"none"},setLanguage:function(C,v){C.className=C.className.replace(RegExp(s,"gi"),""),C.classList.add("language-"+v)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(N){var C=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(N.stack)||[])[1];if(C){var v=document.getElementsByTagName("script");for(var E in v)if(v[E].src==C)return v[E]}return null}},isActive:function(C,v,E){for(var N="no-"+v;C;){var S=C.classList;if(S.contains(v))return!0;if(S.contains(N))return!1;C=C.parentElement}return!!E}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(C,v){var E=l.util.clone(l.languages[C]);for(var N in v)E[N]=v[N];return E},insertBefore:function(C,v,E,N){N=N||l.languages;var S=N[C],_={};for(var I in S)if(S.hasOwnProperty(I)){if(I==v)for(var L in E)E.hasOwnProperty(L)&&(_[L]=E[L]);E.hasOwnProperty(I)||(_[I]=S[I])}var M=N[C];return N[C]=_,l.languages.DFS(l.languages,function(R,F){F===M&&R!=C&&(this[R]=_)}),_},DFS:function C(v,E,N,S){S=S||{};var _=l.util.objId;for(var I in v)if(v.hasOwnProperty(I)){E.call(v,I,v[I],N||I);var L=v[I],M=l.util.type(L);M==="Object"&&!S[_(L)]?(S[_(L)]=!0,C(L,E,null,S)):M==="Array"&&!S[_(L)]&&(S[_(L)]=!0,C(L,E,I,S))}}},plugins:{},highlightAll:function(C,v){l.highlightAllUnder(document,C,v)},highlightAllUnder:function(C,v,E){var N={callback:E,container:C,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",N),N.elements=Array.prototype.slice.apply(N.container.querySelectorAll(N.selector)),l.hooks.run("before-all-elements-highlight",N);for(var S=0,_;_=N.elements[S++];)l.highlightElement(_,v===!0,N.callback)},highlightElement:function(C,v,E){var N=l.util.getLanguage(C),S=l.languages[N];l.util.setLanguage(C,N);var _=C.parentElement;_&&_.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(_,N);var I=C.textContent,L={element:C,language:N,grammar:S,code:I};function M(F){L.highlightedCode=F,l.hooks.run("before-insert",L),L.element.innerHTML=L.highlightedCode,l.hooks.run("after-highlight",L),l.hooks.run("complete",L),E&&E.call(L.element)}if(l.hooks.run("before-sanity-check",L),_=L.element.parentElement,_&&_.nodeName.toLowerCase()==="pre"&&!_.hasAttribute("tabindex")&&_.setAttribute("tabindex","0"),!L.code){l.hooks.run("complete",L),E&&E.call(L.element);return}if(l.hooks.run("before-highlight",L),!L.grammar){M(l.util.encode(L.code));return}if(v&&r.Worker){var R=new Worker(l.filename);R.onmessage=function(F){M(F.data)},R.postMessage(JSON.stringify({language:L.language,code:L.code,immediateClose:!0}))}else M(l.highlight(L.code,L.grammar,L.language))},highlight:function(C,v,E){var N={code:C,grammar:v,language:E};if(l.hooks.run("before-tokenize",N),!N.grammar)throw new Error('The language "'+N.language+'" has no grammar.');return N.tokens=l.tokenize(N.code,N.grammar),l.hooks.run("after-tokenize",N),a.stringify(l.util.encode(N.tokens),N.language)},tokenize:function(C,v){var E=v.rest;if(E){for(var N in E)v[N]=E[N];delete v.rest}var S=new f;return g(S,S.head,C),d(C,S,v,S.head,0),m(S)},hooks:{all:{},add:function(C,v){var E=l.hooks.all;E[C]=E[C]||[],E[C].push(v)},run:function(C,v){var E=l.hooks.all[C];if(!(!E||!E.length))for(var N=0,S;S=E[N++];)S(v)}},Token:a};r.Prism=l;function a(C,v,E,N){this.type=C,this.content=v,this.alias=E,this.length=(N||"").length|0}a.stringify=function C(v,E){if(typeof v=="string")return v;if(Array.isArray(v)){var N="";return v.forEach(function(M){N+=C(M,E)}),N}var S={type:v.type,content:C(v.content,E),tag:"span",classes:["token",v.type],attributes:{},language:E},_=v.alias;_&&(Array.isArray(_)?Array.prototype.push.apply(S.classes,_):S.classes.push(_)),l.hooks.run("wrap",S);var I="";for(var L in S.attributes)I+=" "+L+'="'+(S.attributes[L]||"").replace(/"/g,"&quot;")+'"';return"<"+S.tag+' class="'+S.classes.join(" ")+'"'+I+">"+S.content+"</"+S.tag+">"};function u(C,v,E,N){C.lastIndex=v;var S=C.exec(E);if(S&&N&&S[1]){var _=S[1].length;S.index+=_,S[0]=S[0].slice(_)}return S}function d(C,v,E,N,S,_){for(var I in E)if(!(!E.hasOwnProperty(I)||!E[I])){var L=E[I];L=Array.isArray(L)?L:[L];for(var M=0;M<L.length;++M){if(_&&_.cause==I+","+M)return;var R=L[M],F=R.inside,j=!!R.lookbehind,U=!!R.greedy,V=R.alias;if(U&&!R.pattern.global){var ne=R.pattern.toString().match(/[imsuy]*$/)[0];R.pattern=RegExp(R.pattern.source,ne+"g")}for(var ae=R.pattern||R,re=N.next,ee=S;re!==v.tail&&!(_&&ee>=_.reach);ee+=re.value.length,re=re.next){var se=re.value;if(v.length>C.length)return;if(!(se instanceof a)){var q=1,W;if(U){if(W=u(ae,ee,C,j),!W||W.index>=C.length)break;var ce=W.index,J=W.index+W[0].length,te=ee;for(te+=re.value.length;ce>=te;)re=re.next,te+=re.value.length;if(te-=re.value.length,ee=te,re.value instanceof a)continue;for(var le=re;le!==v.tail&&(te<J||typeof le.value=="string");le=le.next)q++,te+=le.value.length;q--,se=C.slice(ee,te),W.index-=ee}else if(W=u(ae,0,se,j),!W)continue;var ce=W.index,de=W[0],Ae=se.slice(0,ce),ke=se.slice(ce+de.length),ye=ee+se.length;_&&ye>_.reach&&(_.reach=ye);var Ee=re.prev;Ae&&(Ee=g(v,Ee,Ae),ee+=Ae.length),p(v,Ee,q);var Ye=new a(I,F?l.tokenize(de,F):de,V,de);if(re=g(v,Ee,Ye),ke&&g(v,re,ke),q>1){var ft={cause:I+","+M,reach:ye};d(C,v,E,re.prev,ee,ft),_&&ft.reach>_.reach&&(_.reach=ft.reach)}}}}}}function f(){var C={value:null,prev:null,next:null},v={value:null,prev:C,next:null};C.next=v,this.head=C,this.tail=v,this.length=0}function g(C,v,E){var N=v.next,S={value:E,prev:v,next:N};return v.next=S,N.prev=S,C.length++,S}function p(C,v,E){for(var N=v.next,S=0;S<E&&N!==C.tail;S++)N=N.next;v.next=N,N.prev=v,C.length-=S}function m(C){for(var v=[],E=C.head.next;E!==C.tail;)v.push(E.value),E=E.next;return v}if(!r.document)return r.addEventListener&&(l.disableWorkerMessageHandler||r.addEventListener("message",function(C){var v=JSON.parse(C.data),E=v.language,N=v.code,S=v.immediateClose;r.postMessage(l.highlight(N,l.languages[E],E)),S&&r.close()},!1)),l;var y=l.util.currentScript();y&&(l.filename=y.src,y.hasAttribute("data-manual")&&(l.manual=!0));function b(){l.manual||l.highlightAll()}if(!l.manual){var x=document.readyState;x==="loading"||x==="interactive"&&y&&y.defer?document.addEventListener("DOMContentLoaded",b):window.requestAnimationFrame?window.requestAnimationFrame(b):window.setTimeout(b,16)}return l})(t);n.exports&&(n.exports=e),typeof ul<"u"&&(ul.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(s,i){var o={};o["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[i]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};l["language-"+i]={pattern:/[\s\S]+/,inside:e.languages[i]};var a={};a[s]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return s}),"i"),lookbehind:!0,greedy:!0,inside:l},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(r,s){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[s,"language-"+s],inside:e.languages[s]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,(function(r){var s=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+s.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+s.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+s.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+s.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:s,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var i=r.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,(function(){if(typeof e>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",s=function(y,b){return"✖ Error "+y+" while fetching file: "+b},i="✖ Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",a="loading",u="loaded",d="failed",f="pre[data-src]:not(["+l+'="'+u+'"]):not(['+l+'="'+a+'"])';function g(y,b,x){var C=new XMLHttpRequest;C.open("GET",y,!0),C.onreadystatechange=function(){C.readyState==4&&(C.status<400&&C.responseText?b(C.responseText):C.status>=400?x(s(C.status,C.statusText)):x(i))},C.send(null)}function p(y){var b=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(y||"");if(b){var x=Number(b[1]),C=b[2],v=b[3];return C?v?[x,Number(v)]:[x,void 0]:[x,x]}}e.hooks.add("before-highlightall",function(y){y.selector+=", "+f}),e.hooks.add("before-sanity-check",function(y){var b=y.element;if(b.matches(f)){y.code="",b.setAttribute(l,a);var x=b.appendChild(document.createElement("CODE"));x.textContent=r;var C=b.getAttribute("data-src"),v=y.language;if(v==="none"){var E=(/\.(\w+)$/.exec(C)||[,"none"])[1];v=o[E]||E}e.util.setLanguage(x,v),e.util.setLanguage(b,v);var N=e.plugins.autoloader;N&&N.loadLanguages(v),g(C,function(S){b.setAttribute(l,u);var _=p(b.getAttribute("data-range"));if(_){var I=S.split(/\r\n?|\n/g),L=_[0],M=_[1]==null?I.length:_[1];L<0&&(L+=I.length),L=Math.max(0,Math.min(L-1,I.length)),M<0&&(M+=I.length),M=Math.max(0,Math.min(M,I.length)),S=I.slice(L,M).join(`
27
+ `),b.hasAttribute("data-start")||b.setAttribute("data-start",String(L+1))}x.textContent=S,e.highlightElement(x)},function(S){b.setAttribute(l,d),x.textContent=S})}}),e.plugins.fileHighlight={highlight:function(b){for(var x=(b||document).querySelectorAll(f),C=0,v;v=x[C++];)e.highlightElement(v)}};var m=!1;e.fileHighlight=function(){m||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),m=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(SA)),SA.exports}lK();Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var r={};r["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};s["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:s},Prism.languages.insertBefore("markup","cdata",i)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(n,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;(function(n){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function e(d){return d=d.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+i+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+i+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:e(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:e(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:e(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:e(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(f){d!==f&&(n.languages.markdown[d].inside.content.inside[f]=n.languages.markdown[f])})}),n.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function f(g){if(!(!g||typeof g=="string"))for(var p=0,m=g.length;p<m;p++){var y=g[p];if(y.type!=="code"){f(y.content);continue}var b=y.content[1],x=y.content[3];if(b&&x&&b.type==="code-language"&&x.type==="code-block"&&typeof b.content=="string"){var C=b.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");C=(/[a-z][\w-]*/i.exec(C)||[""])[0].toLowerCase();var v="language-"+C;x.alias?typeof x.alias=="string"?x.alias=[x.alias,v]:x.alias.push(v):x.alias=[v]}}}f(d.tokens)}),n.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var f="",g=0,p=d.classes.length;g<p;g++){var m=d.classes[g],y=/language-(.+)/.exec(m);if(y){f=y[1];break}}var b=n.languages[f];if(b)d.content=n.highlight(u(d.content),b,f);else if(f&&f!=="none"&&n.plugins.autoloader){var x="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=x,n.plugins.autoloader.loadLanguages(f,function(){var C=document.getElementById(x);C&&(C.innerHTML=n.highlight(C.textContent,n.languages[f],f))})}}});var o=RegExp(n.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;function u(d){var f=d.replace(o,"");return f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(g,p){if(p=p.toLowerCase(),p[0]==="#"){var m;return p[1]==="x"?m=parseInt(p.slice(2),16):m=Number(p.slice(1)),a(m)}else{var y=l[p];return y||g}}),f}n.languages.md=n.languages.markdown})(Prism);Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(n){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var e=n.languages.markup;e&&(e.tag.addInlined("style","css"),e.tag.addAttribute("style","css"))})(Prism);Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/});delete Prism.languages.objectivec["class-name"];Prism.languages.objc=Prism.languages.objectivec;Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(n){var t=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}})(Prism);var R1={},P1;function aK(){return P1||(P1=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python),R1}aK();var B1={},j1;function cK(){return j1||(j1=1,(function(n){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,e=0;e<2;e++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(Prism)),B1}cK();Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/};Prism.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=Prism.languages.swift});var F1={},z1;function uK(){return z1||(z1=1,(function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var t=n.languages.extend("typescript",{});delete t["class-name"],n.languages.typescript["class-name"].inside=t,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),n.languages.ts=n.languages.typescript})(Prism)),F1}uK();var U1={},K1;function dK(){return K1||(K1=1,(function(n){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,e=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+e+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+e+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+e+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+e+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+e+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism)),U1}dK();var W1={},H1;function fK(){return H1||(H1=1,(function(n){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,e=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});n.languages.cpp=n.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),n.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return e})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),n.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n.languages.cpp}}}}),n.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:n.languages.extend("cpp",{})}}),n.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},n.languages.cpp["base-clause"])})(Prism)),W1}fK();function op(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const hK="javascript";function nL(n,t){for(const e of n.childNodes){if(Et(e)&&e.tagName===t)return!0;nL(e,t)}return!1}const hu="data-language",ou="data-highlight-language",Kf="data-theme";let Di=class rL extends gt{constructor(e,r){super(r);z(this,"__language");z(this,"__theme");z(this,"__isSyntaxHighlightSupported");this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(e){return new rL(e.__language,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){const r=document.createElement("code");st(r,e.theme.code),r.setAttribute("spellcheck","false");const s=this.getLanguage();s&&(r.setAttribute(hu,s),this.getIsSyntaxHighlightSupported()&&r.setAttribute(ou,s));const i=this.getTheme();i&&r.setAttribute(Kf,i);const o=this.getStyle();return o&&r.setAttribute("style",o),r}updateDOM(e,r,s){const i=this.__language,o=e.__language;i?i!==o&&r.setAttribute(hu,i):o&&r.removeAttribute(hu);const l=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&o?l&&i?i!==o&&r.setAttribute(ou,i):r.removeAttribute(ou):l&&i&&r.setAttribute(ou,i);const a=this.__theme,u=e.__theme;a?a!==u&&r.setAttribute(Kf,a):u&&r.removeAttribute(Kf);const d=this.__style,f=e.__style;return d?d!==f&&r.setAttribute("style",d):f&&r.removeAttribute("style"),!1}exportDOM(e){const r=document.createElement("pre");st(r,e._config.theme.code),r.setAttribute("spellcheck","false");const s=this.getLanguage();s&&(r.setAttribute(hu,s),this.getIsSyntaxHighlightSupported()&&r.setAttribute(ou,s));const i=this.getTheme();i&&r.setAttribute(Kf,i);const o=this.getStyle();return o&&r.setAttribute("style",o),{element:r}}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||nL(e,"BR"))?{conversion:Y1,priority:1}:null,div:()=>({conversion:gK,priority:1}),pre:()=>({conversion:Y1,priority:0}),table:e=>EA(e)?{conversion:pK,priority:3}:null,td:e=>{const r=e,s=r.closest("table");return r.classList.contains("js-file-line")||s&&EA(s)?{conversion:G1,priority:3}:null},tr:e=>{const r=e.closest("table");return r&&EA(r)?{conversion:G1,priority:3}:null}}}static importJSON(e){return es().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language).setTheme(e.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(e,r=!0){const s=this.getChildren(),i=s.length;if(i>=2&&s[i-1].getTextContent()===`
28
+ `&&s[i-2].getTextContent()===`
29
+ `&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===i){s[i-1].remove(),s[i-2].remove();const u=we();return this.insertAfter(u,r),u}const{anchor:o,focus:l}=e,a=(o.isBefore(l)?o:l).getNode();if(ie(a)){let u=Cl(a);const d=[];for(;;)if(Kn(u))d.push(ns()),u=u.getNextSibling();else{if(!Qt(u))break;{let x=0;const C=u.getTextContent(),v=u.getTextContentSize();for(;x<v&&C[x]===" ";)x++;if(x!==0&&d.push(lw(" ".repeat(x))),x!==v)break;u=u.getNextSibling()}}const f=a.splitText(o.offset)[0],g=o.offset===0?0:1,p=f.getIndexWithinParent()+g,m=a.getParentOrThrow(),y=[dr(),...d];m.splice(p,0,y);const b=d[d.length-1];b?b.select():o.offset===0?f.selectPrevious():f.getNextSibling().selectNext(0,0)}if(qn(a)){const{offset:u}=e.anchor;a.splice(u,0,[dr()]),a.select(u+1,u+1)}return null}canIndent(){return!1}collapseAtStart(){const e=we();return this.getChildren().forEach(r=>e.append(r)),this.replace(e),!0}setLanguage(e){const r=this.getWritable();return r.__language=e||void 0,r}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(e){const r=this.getWritable();return r.__isSyntaxHighlightSupported=e,r}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(e){const r=this.getWritable();return r.__theme=e||void 0,r}getTheme(){return this.getLatest().__theme}};function es(n,t){return L_(Di).setLanguage(n).setTheme(t)}function qn(n){return n instanceof Di}function Y1(n){return{node:es(n.getAttribute(hu))}}function gK(n){const t=n,e=Z1(t);return e||(function(r){let s=r.parentElement;for(;s!==null;){if(Z1(s))return!0;s=s.parentElement}return!1})(t)?{node:e?es():null}:{node:null}}function pK(){return{node:es()}}function G1(){return{node:null}}function Z1(n){return n.style.fontFamily.match("monospace")!==null}function EA(n){return n.classList.contains("js-file-line-container")}let Fl=class sL extends Dn{constructor(e="",r,s){super(e,s);z(this,"__highlightType");this.__highlightType=r}static getType(){return"code-highlight"}static clone(e){return new sL(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){const r=this.getWritable();return r.__highlightType=e||void 0,r}canHaveFormat(){return!1}createDOM(e){const r=super.createDOM(e),s=kA(e.theme,this.__highlightType);return st(r,s),r}updateDOM(e,r,s){const i=super.updateDOM(e,r,s),o=kA(s.theme,e.__highlightType),l=kA(s.theme,this.__highlightType);return o!==l&&(o&&Lr(r,o),l&&st(r,l)),i}static importJSON(e){return lw().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return es()}};function kA(n,t){return t&&n&&n.codeHighlight&&n.codeHighlight[t]}function lw(n="",t){return Mt(new Fl(n,t))}function Qt(n){return n instanceof Fl}function iL(n,t){let e=n;for(let r=tn(n,t);r&&(Qt(r.origin)||Kn(r.origin));r=s5(r))e=r.origin;return e}function Cl(n){return iL(n,"previous")}function Qa(n){return iL(n,"next")}function mK(n){const t=Cl(n),e=Qa(n);let r=t;for(;r!==null;){if(Qt(r)){const i=x3(r.getTextContent());if(i!==null)return i}if(r===e)break;r=r.getNextSibling()}const s=t.getParent();if(Y(s)){const i=s.getDirection();if(i==="ltr"||i==="rtl")return i}return null}function AK(n,t){let e=null,r=null,s=n,i=t,o=n.getTextContent();for(;;){if(i===0){if(s=s.getPreviousSibling(),s===null)break;if(Qt(s)||Kn(s)||St(s)||op(167),St(s)){e={node:s,offset:1};break}i=Math.max(0,s.getTextContentSize()-1),o=s.getTextContent()}else i--;const a=o[i];Qt(s)&&a!==" "&&(r={node:s,offset:i})}if(r!==null)return r;let l=null;if(t<n.getTextContentSize())Qt(n)&&(l=n.getTextContent()[t]);else{const a=n.getNextSibling();Qt(a)&&(l=a.getTextContent()[0])}if(l!==null&&l!==" ")return e;{const a=(function(u,d){let f=u,g=d,p=u.getTextContent(),m=u.getTextContentSize();for(;;){if(!Qt(f)||g===m){if(f=f.getNextSibling(),f===null||St(f))return null;Qt(f)&&(g=0,p=f.getTextContent(),m=f.getTextContentSize())}if(Qt(f)){if(p[g]!==" ")return{node:f,offset:g};g++}}})(n,t);return a!==null?a:e}}function yK(n){const t=Qa(n);return St(t)&&op(168),t}(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach(function(e){var r=t[e],s=[];/^\w+$/.test(e)||s.push(/\w+/.exec(e)[0]),e==="diff"&&s.push("bold"),n.languages.diff[e]={pattern:RegExp("^(?:["+r+`].*(?:\r
30
+ ?|
31
+ |(?![\\s\\S])))+`,"m"),alias:s,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(e)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:t})})(Prism);const Bs=globalThis.Prism||window.Prism,bK={c:"C",clike:"C-like",cpp:"C++",css:"CSS",html:"HTML",java:"Java",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",powershell:"PowerShell",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",typescript:"TypeScript",xml:"XML"},J1={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};function Hy(n){return typeof n=="string"?n:Array.isArray(n)?n.map(Hy).join(""):Hy(n.content)}function wK(n,t){const e=/^diff-([\w-]+)/i.exec(t),r=n.getTextContent();let s=Bs.tokenize(r,Bs.languages[e?"diff":t]);return e&&(s=(function(i,o){const l=o,a=Bs.languages[l],u={tokens:i},d=Bs.languages.diff.PREFIXES;for(const f of u.tokens){if(typeof f=="string"||!(f.type in d)||!Array.isArray(f.content))continue;const g=f.type;let p=0;const m=()=>(p++,new Bs.Token("prefix",d[g],g.replace(/^(\w+).*/,"$1"))),y=f.content.filter(N=>typeof N=="string"||N.type!=="prefix"),b=f.content.length-y.length,x=Bs.tokenize(Hy(y),a);x.unshift(m());const C=/\r\n|\n/g,v=N=>{const S=[];C.lastIndex=0;let _,I=0;for(;p<b&&(_=C.exec(N));){const L=_.index+_[0].length;S.push(N.slice(I,L)),I=L,S.push(m())}if(S.length!==0)return I<N.length&&S.push(N.slice(I)),S},E=N=>{for(let S=0;S<N.length&&p<b;S++){const _=N[S];if(typeof _=="string"){const I=v(_);I&&(N.splice(S,1,...I),S+=I.length-1)}else if(typeof _.content=="string"){const I=v(_.content);I&&(_.content=I)}else Array.isArray(_.content)?E(_.content):E([_.content])}};E(x),p<b&&x.push(m()),f.content=x}return u.tokens})(s,e[1])),Yy(s)}function Yy(n,t){const e=[];for(const r of n)if(typeof r=="string"){const s=r.split(/(\n|\t)/),i=s.length;for(let o=0;o<i;o++){const l=s[o];l===`
32
+ `||l===`\r
33
+ `?e.push(dr()):l===" "?e.push(ns()):l.length>0&&e.push(lw(l,t))}}else{const{content:s,alias:i}=r;typeof s=="string"?e.push(...Yy([s],r.type==="prefix"&&typeof i=="string"?i:r.type)):Array.isArray(s)&&e.push(...Yy(s,r.type==="unchanged"?void 0:r.type))}return e}const CK={$tokenize(n,t){return wK(n,t||this.defaultLanguage)},defaultLanguage:hK,tokenize(n,t){return Bs.tokenize(n,Bs.languages[t||""]||Bs.languages[this.defaultLanguage])}};function V1(n,t,e){const r=n.getParent();qn(r)?oL(r,t,e):Qt(n)&&n.replace($e(n.__text))}function xK(n,t){const e=t.getElementByKey(n.getKey());if(e===null)return;const r=n.getChildren(),s=r.length;if(s===e.__cachedChildrenLength)return;e.__cachedChildrenLength=s;let i="1",o=1;for(let l=0;l<s;l++)St(r[l])&&(i+=`
34
+ `+ ++o);e.setAttribute("data-gutter",i)}const TA=new Set;function oL(n,t,e){const r=n.getKey();n.getLanguage()===void 0&&n.setLanguage(e.defaultLanguage);const s=n.getLanguage()||e.defaultLanguage;if(!(function(i){const o=(function(a){const u=/^diff-([\w-]+)/i.exec(a);return u?u[1]:null})(i),l=o||i;try{return!!l&&Bs.languages.hasOwnProperty(l)}catch{return!1}})(s))return n.getIsSyntaxHighlightSupported()&&n.setIsSyntaxHighlightSupported(!1),void(async function(){})();n.getIsSyntaxHighlightSupported()||n.setIsSyntaxHighlightSupported(!0),TA.has(r)||(TA.add(r),t.update(()=>{(function(i,o){const l=me(i);if(!qn(l)||!l.isAttached())return;const a=G();if(!H(a))return void o();const u=a.anchor,d=u.offset,f=u.type==="element"&&St(l.getChildAtIndex(u.offset-1));let g=0;if(!f){const p=u.getNode();g=d+p.getPreviousSiblings().reduce((m,y)=>m+y.getTextContentSize(),0)}if(o()){if(f)return void u.getNode().select(d,d);l.getChildren().some(p=>{const m=ie(p);if(m||St(p)){const y=p.getTextContentSize();if(m&&y>=g)return p.select(g,g),!0;g-=y}return!1})}})(r,()=>{const i=me(r);if(!qn(i)||!i.isAttached())return!1;const o=i.getLanguage()||e.defaultLanguage,l=e.$tokenize(i,o),a=(function(g,p){let m=0;for(;m<g.length&&Q1(g[m],p[m]);)m++;const y=g.length,b=p.length,x=Math.min(y,b)-m;let C=0;for(;C<x;)if(C++,!Q1(g[y-C],p[b-C])){C--;break}const v=m,E=y-C,N=p.slice(m,b-C);return{from:v,nodesForReplacement:N,to:E}})(i.getChildren(),l),{from:u,to:d,nodesForReplacement:f}=a;return!(u===d&&!f.length)&&(n.splice(u,d-u,f),!0)})},{onUpdate:()=>{TA.delete(r)},skipTransforms:!0}))}function Q1(n,t){return Qt(n)&&Qt(t)&&n.__text===t.__text&&n.__highlightType===t.__highlightType||Kn(n)&&Kn(t)||St(n)&&St(t)}function dl(n){if(!H(n))return!1;const t=n.anchor.getNode(),e=qn(t)?t:t.getParent(),r=n.focus.getNode(),s=qn(r)?r:r.getParent();return qn(e)&&e.is(s)}function lL(n){const t=n.getNodes(),e=[];if(t.length===1&&qn(t[0]))return e;let r=[];for(let s=0;s<t.length;s++){const i=t[s];Qt(i)||Kn(i)||St(i)||op(169),St(i)?r.length>0&&(e.push(r),r=[]):r.push(i)}if(r.length>0){const s=n.isBackward()?n.anchor:n.focus,i=Rn(r[0].getKey(),0,"text");s.is(i)||e.push(r)}return e}function X1(n){const t=G();if(!H(t)||!dl(t))return!1;const e=lL(t),r=e.length;if(r===0&&t.isCollapsed())return n===Gs&&t.insertNodes([ns()]),!0;if(r===0&&n===Gs&&t.getTextContent()===`
35
+ `){const s=ns(),i=dr(),o=t.isBackward()?"previous":"next";return t.insertNodes([s,i]),p0(m0(Bi(_o(s,"next",0),$r(tn(i,"next"))),o)),!0}for(let s=0;s<r;s++){const i=e[s];if(i.length>0){let o=i[0];if(s===0&&(o=Cl(o)),n===Gs){const l=ns();if(o.insertBefore(l),s===0){const a=t.isBackward()?"focus":"anchor",u=Rn(o.getKey(),0,"text");t[a].is(u)&&t[a].set(l.getKey(),0,"text")}}else Kn(o)&&o.remove()}}return!0}function q1(n,t){const e=G();if(!H(e))return!1;const{anchor:r,focus:s}=e,i=r.offset,o=s.offset,l=r.getNode(),a=s.getNode(),u=n===qs;if(!dl(e)||!Qt(l)&&!Kn(l)||!Qt(a)&&!Kn(a))return!1;if(!t.altKey){if(e.isCollapsed()){const x=l.getParentOrThrow();if(u&&i===0&&l.getPreviousSibling()===null){if(x.getPreviousSibling()===null)return x.selectPrevious(),t.preventDefault(),!0}else if(!u&&i===l.getTextContentSize()&&l.getNextSibling()===null&&x.getNextSibling()===null)return x.selectNext(),t.preventDefault(),!0}return!1}let d,f;if(l.isBefore(a)?(d=Cl(l),f=Qa(a)):(d=Cl(a),f=Qa(l)),d==null||f==null)return!1;const g=d.getNodesBetween(f);for(let x=0;x<g.length;x++){const C=g[x];if(!Qt(C)&&!Kn(C)&&!St(C))return!1}t.preventDefault(),t.stopPropagation();const p=u?d.getPreviousSibling():f.getNextSibling();if(!St(p))return!0;const m=u?p.getPreviousSibling():p.getNextSibling();if(m==null)return!0;const y=Qt(m)||Kn(m)||St(m)?u?Cl(m):Qa(m):null;let b=y??m;return p.remove(),g.forEach(x=>x.remove()),n===qs?(g.forEach(x=>b.insertBefore(x)),b.insertBefore(p)):(b.insertAfter(p),b=p,g.forEach(x=>{b.insertAfter(x),b=x})),e.setTextNodeRange(l,i,a,o),!0}function $1(n,t){const e=G();if(!H(e))return!1;const{anchor:r,focus:s}=e,i=r.getNode(),o=s.getNode(),l=n===Lh;if(!dl(e)||!Qt(i)&&!Kn(i)||!Qt(o)&&!Kn(o))return!1;const a=o;if(mK(a)==="rtl"?!l:l){const u=AK(a,s.offset);if(u!==null){const{node:d,offset:f}=u;St(d)?d.selectNext(0,0):e.setTextNodeRange(d,f,d,f)}else a.getParentOrThrow().selectStart()}else yK(a).select();return t.preventDefault(),t.stopPropagation(),!0}function vK(n,t){if(!n.hasNodes([Di,Fl]))throw new Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");t==null&&(t=CK);const e=[];return n._headless!==!0&&e.push(n.registerMutationListener(Di,r=>{n.getEditorState().read(()=>{for(const[s,i]of r)if(i!=="destroyed"){const o=me(s);o!==null&&xK(o,n)}})},{skipInitialization:!1})),e.push(n.registerNodeTransform(Di,r=>oL(r,n,t)),n.registerNodeTransform(Dn,r=>V1(r,n,t)),n.registerNodeTransform(Fl,r=>V1(r,n,t)),n.registerCommand(wc,r=>{const s=(function(i){const o=G();if(!H(o)||!dl(o))return null;const l=i?ho:Gs,a=i?ho:uy,u=o.anchor,d=o.focus;if(u.is(d))return a;const f=lL(o);if(f.length!==1)return l;const g=f[0];let p,m;g.length===0&&op(285),o.isBackward()?(p=d,m=u):(p=u,m=d);const y=Cl(g[0]),b=Qa(g[0]),x=Rn(y.getKey(),0,"text"),C=Rn(b.getKey(),b.getTextContentSize(),"text");return p.isBefore(x)||C.isBefore(m)?l:x.isBefore(p)||m.isBefore(C)?a:l})(r.shiftKey);return s!==null&&(r.preventDefault(),n.dispatchCommand(s,void 0),!0)},Te),n.registerCommand(uy,()=>!!dl(G())&&(vc([ns()]),!0),Te),n.registerCommand(Gs,r=>X1(Gs),Te),n.registerCommand(ho,r=>X1(ho),Te),n.registerCommand(qs,r=>{const s=G();if(!H(s))return!1;const{anchor:i}=s,o=i.getNode();return!!dl(s)&&(s.isCollapsed()&&i.offset===0&&o.getPreviousSibling()===null&&qn(o.getParentOrThrow())?(r.preventDefault(),!0):q1(qs,r))},Te),n.registerCommand(To,r=>{const s=G();if(!H(s))return!1;const{anchor:i}=s,o=i.getNode();return!!dl(s)&&(s.isCollapsed()&&i.offset===o.getTextContentSize()&&o.getNextSibling()===null&&qn(o.getParentOrThrow())?(r.preventDefault(),!0):q1(To,r))},Te),n.registerCommand(Lh,r=>$1(Lh,r),Te),n.registerCommand(cy,r=>$1(cy,r),Te)),Xe(...e)}function SK(){return xe().getTextContent()}function EK(n,t=!0){if(n)return!1;let e=SK();return t&&(e=e.trim()),e===""}function kK(n){if(!EK(n,!1))return!1;const t=xe().getChildren(),e=t.length;if(e>1)return!1;for(let r=0;r<e;r++){const s=t[r];if(tt(s))return!1;if(Y(s)){if(!un(s)||s.__indent!==0)return!1;const i=s.getChildren(),o=i.length;for(let l=0;l<o;l++){const a=i[r];if(!ie(a))return!1}}}return!0}function aL(n){return()=>kK(n)}function TK(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function _K(n,t,e,r){const s=o=>o instanceof e,i=o=>{const l=$e(o.getTextContent());l.setFormat(o.getFormat()),o.replace(l)};return[n.registerNodeTransform(Dn,o=>{if(!o.isSimpleText())return;let l,a=o.getPreviousSibling(),u=o.getTextContent(),d=o;if(ie(a)){const g=a.getTextContent(),p=t(g+u);if(s(a)){if(p===null||(m=>m.getLatest().__mode)(a)!==0)return void i(a);{const m=p.end-g.length;if(m>0){const y=g+u.slice(0,m);if(a.select(),a.setTextContent(y),m===u.length)o.remove();else{const b=u.slice(m);o.setTextContent(b)}return}}}else if(p===null||p.start<g.length)return}let f=0;for(;;){l=t(u);let g,p=l===null?"":u.slice(l.end);if(u=p,p===""){const y=d.getNextSibling();if(ie(y)){p=d.getTextContent()+y.getTextContent();const b=t(p);if(b===null)return void(s(y)?i(y):y.markDirty());if(b.start!==0)return}}if(l===null)return;if(l.start===0&&ie(a)&&a.isTextEntity()){f+=l.end;continue}l.start===0?[g,d]=d.splitText(l.end):[,g,d]=d.splitText(l.start+f,l.end+f),g===void 0&&TK(165,"nodeToReplace");const m=r(g);if(m.setFormat(g.getFormat()),g.replace(m),d==null)return;f=0,a=m}}),n.registerNodeTransform(e,o=>{const l=o.getTextContent(),a=t(l);if(a===null||a.start!==0)return void i(o);if(l.length>a.end)return void o.splitText(a.end);const u=o.getPreviousSibling();ie(u)&&u.isTextEntity()&&(i(u),i(o));const d=o.getNextSibling();ie(d)&&d.isTextEntity()&&(i(d),s(o)&&i(o))})]}let lp=class cL extends Dn{static getType(){return"hashtag"}static clone(t){return new cL(t.__text,t.__key)}createDOM(t){const e=super.createDOM(t);return st(e,t.theme.hashtag),e}static importJSON(t){return uL().updateFromJSON(t)}canInsertTextBefore(){return!1}isTextEntity(){return!0}};function uL(n=""){return Mt(new lp(n))}const NK=new RegExp((function(){const{alpha:n,alphanumeric:t,hashChars:e}=(function(){const s=String.fromCharCode,i="A-Za-zªµºÀ-ÖØ-öø-Ɂɐ-ˁˆ-ˑˠ-ˤˮͺΆΈ-ΊΌΎ-ΡΣ-ώϐ-ϵϷ-ҁҊ-ӎӐ-ӹԀ-ԏԱ-Ֆՙա-ևא-תװ-ײء-غـ-يٮ-ٯٱ-ۓەۥ-ۦۮ-ۯۺ-ۼۿܐܒ-ܯݍ-ݭހ-ޥޱऄ-हऽॐक़-ॡॽঅ-ঌএ-ঐও-নপ-রলশ-হঽৎড়-ঢ়য়-ৡৰ-ৱਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽૐૠ-ૡଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽଡ଼-ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹఅ-ఌఎ-ఐఒ-నప-ళవ-హౠ-ౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠ-ೡഅ-ഌഎ-ഐഒ-നപ-ഹൠ-ൡඅ-ඖක-නඳ-රලව-ෆก-ะา-ำเ-ๆກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆໜ-ໝༀཀ-ཇཉ-ཪྈ-ྋက-အဣ-ဧဩ-ဪၐ-ၕႠ-Ⴥა-ჺჼᄀ-ᅙᅟ-ᆢᆨ-ᇹሀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙶᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦩᧁ-ᧇᨀ-ᨖᴀ-ᶿḀ-ẛẠ-ỹἀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₔℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℱℳ-ℹℼ-ℿⅅ-ⅉⰀ-Ⱞⰰ-ⱞⲀ-ⳤⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〆〱-〵〻-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄬㄱ-ㆎㆠ-ㆷㇰ-ㇿ㐀-䶵一-龻ꀀ-ꒌꠀ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢ가-힣豈-鶴侮-頻並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵÀ-ÖØ-öø-ÿĀ-ɏɓ-ɔɖ-ɗəɛɣɨɯɲʉʋʻ̀-ͯḀ-ỿЀ-ӿԀ-ԧⷠ-ⷿꙀ-֑ꚟ-ֿׁ-ׂׄ-ׇׅא-תװ-״﬒-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏؐ-ؚؠ-ٟٮ-ۓە-ۜ۞-۪ۨ-ۯۺ-ۼۿݐ-ݿࢠࢢ-ࢬࣤ-ࣾﭐ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼ‌-‌ก-ฺเ-๎ᄀ-ᇿ㄰-ㆅꥠ-꥿가-힯ힰ-퟿ᄀ-ᅵァ-ヺー-ヾヲ-゚0-9A-Za-zぁ-ゖ゙-ゞ㐀-䶿一-鿿"+s(173824)+"-"+s(177983)+s(177984)+"-"+s(178207)+s(194560)+"-"+s(195103)+"〃々〻";return{alpha:i,alphanumeric:i+"̀-ͯ҃-֑҆-ֹֻ-ֽֿׁ-ׂׄ-ׇׅؐ-ًؕ-ٰٞۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ްँ-ः़ा-्॑-॔ॢ-ॣঁ-ঃ়া-ৄে-ৈো-্ৗৢ-ৣਁ-ਃ਼ਾ-ੂੇ-ੈੋ-੍ੰ-ੱઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣଁ-ଃ଼ା-ୃେ-ୈୋ-୍ୖ-ୗஂா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕ-ౖಂ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕ-ೖം-ഃാ-ൃെ-ൈൊ-്ൗං-ඃ්ා-ුූෘ-ෟෲ-ෳัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-༹༙༵༷༾-༿ཱ-྄྆-྇ྐ-ྗྙ-ྼ࿆ာ-ဲံ-္ၖ-ၙ፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳា-៓៝᠋-᠍ᢩᤠ-ᤫᤰ-᤻ᦰ-ᧀᧈ-ᧉᨗ-ᨛ᷀-᷃⃐-⃥⃜⃡-⃫〪-゙〯-゚ꠂ꠆ꠋꠣ-ꠧﬞ︀-️︠-︣0-9٠-٩۰-۹०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉០-៩᠐-᠙᥆-᥏᧐-᧙0-9_",hashChars:"#\\uFF03"}})(),r="["+t+"]";return"("+("^|$|[^&/"+t+"]")+")("+("["+e+"]")+")("+r+"*"+("["+n+"]")+r+"*)"})(),"i"),IK={getHashtagMatch:function(n){const t=NK.exec(n);if(t===null)return null;const e=t[3].length+1,r=t.index+t[1].length;return{end:r+e,start:r}}};function LK(n,t=IK){return Xe(..._K(n,t.getHashtagMatch,lp,e=>uL(e.getTextContent())))}const MK=new Set(["http:","https:","mailto:","sms:","tel:"]);let ta=class dL extends gt{constructor(e="",r={},s){super(s);z(this,"__url");z(this,"__target");z(this,"__rel");z(this,"__title");const{target:i=null,rel:o=null,title:l=null}=r;this.__url=e,this.__target=i,this.__rel=o,this.__title=l}static getType(){return"link"}static clone(e){return new dL(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}createDOM(e){const r=document.createElement("a");return this.updateLinkDOM(null,r,e),st(r,e.theme.link),r}updateLinkDOM(e,r,s){if(l0(r)){e&&e.__url===this.__url||(r.href=this.sanitizeUrl(this.__url));for(const i of["target","rel","title"]){const o=`__${i}`,l=this[o];e&&e[o]===l||(l?r[i]=l:r.removeAttribute(i))}}}updateDOM(e,r,s){return this.updateLinkDOM(e,r,s),!1}static importDOM(){return{a:e=>({conversion:DK,priority:1})}}static importJSON(e){return xo().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=nE(e);try{const r=new URL(nE(e));if(!MK.has(r.protocol))return"about:blank"}catch{return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){const r=this.getWritable();return r.__url=e,r}getTarget(){return this.getLatest().__target}setTarget(e){const r=this.getWritable();return r.__target=e,r}getRel(){return this.getLatest().__rel}setRel(e){const r=this.getWritable();return r.__rel=e,r}getTitle(){return this.getLatest().__title}setTitle(e){const r=this.getWritable();return r.__title=e,r}insertNewAfter(e,r=!0){const s=xo(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(s,r),s}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,r,s){if(!H(r))return!1;const i=r.anchor.getNode(),o=r.focus.getNode();return this.isParentOf(i)&&this.isParentOf(o)&&r.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}};function DK(n){let t=null;if(l0(n)){const e=n.textContent;(e!==null&&e!==""||n.children.length>0)&&(t=xo(n.getAttribute("href")||"",{rel:n.getAttribute("rel"),target:n.getAttribute("target"),title:n.getAttribute("title")}))}return{node:t}}function xo(n="",t){return Mt(new ta(n,t))}function Nn(n){return n instanceof ta}let ap=class fL extends ta{constructor(e="",r={},s){super(e,r,s);z(this,"__isUnlinked");this.__isUnlinked=r.isUnlinked!==void 0&&r.isUnlinked!==null&&r.isUnlinked}static getType(){return"autolink"}static clone(e){return new fL(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){const r=this.getWritable();return r.__isUnlinked=e,r}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,r,s){return super.updateDOM(e,r,s)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return eE().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,r=!0){const s=this.getParentOrThrow().insertNewAfter(e,r);if(Y(s)){const i=eE(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return s.append(i),i}return null}};function eE(n="",t){return Mt(new ap(n,t))}function fl(n){return n instanceof ap}const vo=be("TOGGLE_LINK_COMMAND");function tE(n,t){if(n.type==="element"){const e=n.getNode();return Y(e)||(function(r,...s){const i=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",r);for(const l of s)o.append("v",l);throw i.search=o.toString(),Error(`Minified Lexical error #${r}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(252),e.getChildren()[n.offset+t]||null}return null}function _A(n,t={}){let e;if(n&&typeof n=="object"){const{url:d,...f}=n;e=d,t={...f,...t}}else e=n;const{target:r,title:s}=t,i=t.rel===void 0?"noreferrer":t.rel,o=G();if(o===null||!H(o)&&!Gt(o))return;if(Gt(o)){const d=o.getNodes();return d.length===0?void 0:void d.forEach(f=>{if(e===null){const g=Se(f,p=>!fl(p)&&Nn(p));g&&(g.insertBefore(f),g.getChildren().length===0&&g.remove())}else{const g=Se(f,p=>!fl(p)&&Nn(p));if(g)g.setURL(e),r!==void 0&&g.setTarget(r),i!==void 0&&g.setRel(i);else{const p=xo(e,{rel:i,target:r});f.insertBefore(p),p.append(f)}}})}const l=o.extract();if(e===null){const d=new Set;return void l.forEach(f=>{const g=f.getParent();if(Nn(g)&&!fl(g)){const p=g.getKey();if(d.has(p))return;(function(m,y){const b=new Set(y.filter(_=>m.isParentOf(_)).map(_=>_.getKey())),x=m.getChildren(),C=x.filter(_=>b.has(_.getKey()));if(C.length===x.length)return x.forEach(_=>m.insertBefore(_)),void m.remove();const v=x.findIndex(_=>b.has(_.getKey())),E=x.findLastIndex(_=>b.has(_.getKey())),N=v===0,S=E===x.length-1;if(N)C.forEach(_=>m.insertBefore(_));else if(S)for(let _=C.length-1;_>=0;_--)m.insertAfter(C[_]);else{for(let I=C.length-1;I>=0;I--)m.insertAfter(C[I]);const _=x.slice(E+1);if(_.length>0){const I=xo(m.getURL(),{rel:m.getRel(),target:m.getTarget(),title:m.getTitle()});C[C.length-1].insertAfter(I),_.forEach(L=>I.append(L))}}})(g,l),d.add(p)}})}const a=new Set,u=d=>{a.has(d.getKey())||(a.add(d.getKey()),d.setURL(e),r!==void 0&&d.setTarget(r),i!==void 0&&d.setRel(i),s!==void 0&&d.setTitle(s))};if(l.length===1){const d=l[0],f=Se(d,Nn);if(f!==null)return u(f)}(function(d){const f=G();if(!H(f))return d();const g=ko(f),p=g.isBackward(),m=tE(g.anchor,p?-1:0),y=tE(g.focus,p?0:-1);if(d(),m||y){const b=G();if(H(b)){const x=b.clone();if(m){const C=m.getParent();C&&x.anchor.set(C.getKey(),m.getIndexWithinParent()+(p?1:0),"element")}if(y){const C=y.getParent();C&&x.focus.set(C.getKey(),y.getIndexWithinParent()+(p?0:1),"element")}Ge(ko(x))}}})(()=>{let d=null;for(const f of l){if(!f.isAttached())continue;const g=Se(f,Nn);if(g){u(g);continue}if(Y(f)){if(!f.isInline())continue;if(Nn(f)){if(!(fl(f)||d!==null&&d.getParentOrThrow().isParentOf(f))){u(f),d=f;continue}for(const m of f.getChildren())f.insertBefore(m);f.remove();continue}}const p=f.getPreviousSibling();Nn(p)&&p.is(d)?p.append(f):(d=xo(e,{rel:i,target:r,title:s}),f.insertAfter(d),d.append(f))}})}const OK=/^\+?[0-9\s()-]{5,}$/;function nE(n){return n.match(/^[a-z][a-z0-9+.-]*:/i)||n.match(/^[/#.]/)?n:n.includes("@")?`mailto:${n}`:OK.test(n)?`tel:${n}`:`https://${n}`}function RK(n,t){return Xe(ed(()=>n.registerCommand(vo,e=>{const r=t.validateUrl.peek(),s=t.attributes.peek();if(e===null)return _A(null),!0;if(typeof e=="string")return!(r!==void 0&&!r(e))&&(_A(e,s),!0);{const{url:i,target:o,rel:l,title:a}=e;return _A(i,{...s,rel:l,target:o,title:a}),!0}},Te)),ed(()=>{const e=t.validateUrl.value;if(!e)return;const r=t.attributes.value;return n.registerCommand(Uo,s=>{const i=G();if(!H(i)||i.isCollapsed()||!Ii(s,ClipboardEvent)||s.clipboardData===null)return!1;const o=s.clipboardData.getData("text");return!!e(o)&&!i.getNodes().some(l=>Y(l))&&(n.dispatchCommand(vo,{...r,url:o}),s.preventDefault(),!0)},Te)}))}function PK(n,t,e={}){const r=i=>{const o=i.target;if(!Ql(o))return;const l=pd(o);if(l===null)return;let a=null,u=null;if(l.update(()=>{const g=Oe(o);if(g!==null){const p=Se(g,Y);if(!t.disabled.peek())if(Nn(p))a=p.sanitizeUrl(p.getURL()),u=p.getTarget();else{const m=(function(y,b){let x=y;for(;x!=null;){if(b(x))return x;x=x.parentNode}return null})(o,l0);m!==null&&(a=m.href,u=m.target)}}}),a===null||a==="")return;const d=n.getEditorState().read(G);if(H(d)&&!d.isCollapsed())return void i.preventDefault();const f=i.type==="auxclick"&&i.button===1;window.open(a,t.newTab.peek()||f||i.metaKey||i.ctrlKey||u==="_blank"?"_blank":"_self"),i.preventDefault()},s=i=>{i.button===1&&r(i)};return n.registerRootListener((i,o)=>{o!==null&&(o.removeEventListener("click",r),o.removeEventListener("mouseup",s)),i!==null&&(i.addEventListener("click",r,e),i.addEventListener("mouseup",s,e))})}const hL=[];let Td=class gL extends gt{constructor(e=hL,r){super(r);z(this,"__ids");this.__ids=e}static getType(){return"mark"}static clone(e){return new gL(e.__ids,e.__key)}static importDOM(){return null}static importJSON(e){return Gy().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIDs(e.ids)}exportJSON(){return{...super.exportJSON(),ids:this.getIDs()}}createDOM(e){const r=document.createElement("mark");return st(r,e.theme.mark),this.__ids.length>1&&st(r,e.theme.markOverlap),r}updateDOM(e,r,s){const i=e.__ids,o=this.__ids,l=i.length,a=o.length,u=s.theme.markOverlap;return l!==a&&(l===1?a===2&&st(r,u):a===1&&Lr(r,u)),!1}hasID(e){return this.getIDs().includes(e)}getIDs(){return Array.from(this.getLatest().__ids)}setIDs(e){const r=this.getWritable();return r.__ids=e,r}addID(e){const r=this.getWritable();return r.__ids.includes(e)?r:r.setIDs([...r.__ids,e])}deleteID(e){const r=this.getWritable(),s=r.__ids.indexOf(e);if(s===-1)return r;const i=Array.from(r.__ids);return i.splice(s,1),r.setIDs(i)}insertNewAfter(e,r=!0){const s=Gy(this.__ids);return this.insertAfter(s,r),s}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,r,s){if(!H(r)||s==="html")return!1;const i=r.anchor,o=r.focus,l=i.getNode(),a=o.getNode(),u=r.isBackward()?i.offset-o.offset:o.offset-i.offset;return this.isParentOf(l)&&this.isParentOf(a)&&this.getTextContent().length===u}excludeFromCopy(e){return e!=="clone"}};function Gy(n=hL){return Mt(new Td(n))}function sg(n){return n instanceof Td}function rE(n){const t=n.getChildren();let e=null;for(let r=0;r<t.length;r++){const s=t[r];e===null?n.insertBefore(s):e.insertAfter(s),e=s}n.remove()}function BK(n,t,e,r){const s=ii(),[i,o]=n.isBackward()?[n.focus,n.anchor]:[n.anchor,n.focus];let l,a;s.anchor.set(i.key,i.offset,i.type),s.focus.set(o.key,o.offset,o.type);const u=s.extract();for(const d of u){if(Y(a)&&a.isParentOf(d))continue;let f=null;if(ie(d))f=d;else{if(sg(d))continue;(Y(d)||tt(d))&&d.isInline()&&(f=d)}if(f!==null){if(f&&f.is(l))continue;const g=f.getParent();g!=null&&g.is(l)||(a=void 0),l=g,a===void 0&&(a=(r||Gy)([e]),f.insertBefore(a)),a.append(f)}else l=void 0,a=void 0}Y(a)&&(t?a.selectStart():a.selectEnd())}function jK(n,t){let e=n;for(;e!==null;){if(sg(e))return e.getIDs();if(ie(e)&&t===e.getTextContentSize()){const r=e.getNextSibling();if(sg(r))return r.getIDs()}e=e.getParent()}return null}let pL=class extends gt{$config(){return this.config("overflow",{$transform(t){t.isEmpty()&&t.remove()},extends:gt})}createDOM(t){const e=document.createElement("span"),r=t.theme.characterLimit;return typeof r=="string"&&(e.className=r),e}updateDOM(t,e){return!1}insertNewAfter(t,e=!0){return this.getParentOrThrow().insertNewAfter(t,e)}excludeFromCopy(){return!0}};function FK({nodeKey:n}){const[t]=_e(),[e,r,s]=sp(n);return k.useEffect(()=>Xe(t.registerCommand(Hi,i=>{const o=t.getElementByKey(n);return i.target===o&&(i.shiftKey||s(),r(!e),!0)},Te)),[s,t,e,n,r]),k.useEffect(()=>{const i=t.getElementByKey(n),o=t._config.theme.hrSelected??"selected";i!==null&&(e?st(i,o):Lr(i,o))},[t,e,n]),null}let cp=class mL extends nw{static getType(){return"horizontalrule"}static clone(t){return new mL(t.__key)}static importJSON(t){return na().updateFromJSON(t)}static importDOM(){return{hr:()=>({conversion:zK,priority:0})}}decorate(){return A.jsx(FK,{nodeKey:this.__key})}};function zK(){return{node:na()}}function na(){return Mt(new cp)}function ig(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function UK(n,t=G()){return t==null&&ig(166),H(t)&&t.isCollapsed()||t.getNodes().length===0?"":Kh(n,t)}function KK(n,t=G()){return t==null&&ig(166),H(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(WK(n,t))}function sE(n,t,e){const r=n.getData("application/x-lexical-editor");if(r)try{const l=JSON.parse(r);if(l.namespace===e._config.namespace&&Array.isArray(l.nodes))return iE(e,HK(l.nodes),t)}catch(l){console.error(l)}const s=n.getData("text/html"),i=n.getData("text/plain");if(s&&i!==s)try{const l=new DOMParser().parseFromString((function(a){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:u=>u}).createHTML(a):a})(s),"text/html");return iE(e,bd(e,l),t)}catch(l){console.error(l)}const o=i||n.getData("text/uri-list");if(o!=null)if(H(t)){const l=o.split(/(\r?\n|\t)/);l[l.length-1]===""&&l.pop();for(let a=0;a<l.length;a++){const u=G();if(H(u)){const d=l[a];d===`
36
+ `||d===`\r
37
+ `?u.insertParagraph():d===" "?u.insertNodes([ns()]):u.insertText(d)}}}else t.insertRawText(o)}function iE(n,t,e){n.dispatchCommand(YT,{nodes:t,selection:e})||(e.insertNodes(t),(function(r){if(H(r)&&r.isCollapsed()){const s=r.anchor;let i=null;const o=$s(s,"previous");if(o)if(Zs(o))i=o.origin;else{const l=Bi(o,as(xe(),"next").getFlipped());for(const a of l){if(ie(a.origin)){i=a.origin;break}if(Y(a.origin)&&!a.origin.isInline())break}}if(i&&ie(i)){const l=i.getFormat(),a=i.getStyle();r.format===l&&r.style===a||(r.format=l,r.style=a,r.dirty=!0)}}})(e))}function AL(n,t,e,r=[]){let s=t===null||e.isSelected(t);const i=Y(e)&&e.excludeFromCopy("html");let o=e;t!==null&&ie(o)&&(o=W_(t,o,"clone"));const l=Y(o)?o.getChildren():[],a=(function(u){const d=u.exportJSON(),f=u.constructor;if(d.type!==f.getType()&&ig(58,f.name),Y(u)){const g=d.children;Array.isArray(g)||ig(59,f.name)}return d})(o);ie(o)&&o.getTextContentSize()===0&&(s=!1);for(let u=0;u<l.length;u++){const d=l[u],f=AL(n,t,d,a.children);!s&&Y(e)&&f&&e.extractWithChild(d,t,"clone")&&(s=!0)}if(s&&!i)r.push(a);else if(Array.isArray(a.children))for(let u=0;u<a.children.length;u++){const d=a.children[u];r.push(d)}return s}function WK(n,t){const e=[],r=xe().getChildren();for(let s=0;s<r.length;s++)AL(n,t,r[s],e);return{namespace:n._config.namespace,nodes:e}}function HK(n){const t=[];for(let e=0;e<n.length;e++){const r=n[e],s=bo(r);ie(s)&&G3(s),t.push(s)}return t}let ka=null;async function Zy(n,t,e){if(ka!==null)return!1;if(t!==null)return new Promise((u,d)=>{n.update(()=>{u(oE(n,t,e))})});const r=n.getRootElement(),s=n._window||window,i=s.document,o=ls(s);if(r===null||o===null)return!1;const l=i.createElement("span");l.style.cssText="position: fixed; top: -1000px;",l.append(i.createTextNode("#")),r.append(l);const a=new Range;return a.setStart(l,0),a.setEnd(l,1),o.removeAllRanges(),o.addRange(a),new Promise((u,d)=>{const f=n.registerCommand(Gl,g=>(Ii(g,ClipboardEvent)&&(f(),ka!==null&&(s.clearTimeout(ka),ka=null),u(oE(n,g,e))),!0),xn);ka=s.setTimeout(()=>{f(),ka=null,u(!1)},50),i.execCommand("copy"),l.remove()})}function oE(n,t,e){if(e===void 0){const s=ls(n._window),i=G();if(!i||i.isCollapsed()||!s)return!1;const o=s.anchorNode,l=s.focusNode;if(o!==null&&l!==null&&!gd(n,o,l))return!1;e=up(i)}t.preventDefault();const r=t.clipboardData;return r!==null&&(YK(r,e),!0)}const yL=[["text/html",UK],["application/x-lexical-editor",KK]];function up(n=G()){const t={"text/plain":n?n.getTextContent():""};if(n){const e=Xl();for(const[r,s]of yL){const i=s(e,n);i!==null&&(t[r]=i)}}return t}function YK(n,t){for(const[e]of yL)t[e]===void 0&&n.setData(e,"");for(const e in t){const r=t[e];r!==void 0&&n.setData(e,r)}}function GK(n){const t=window.location.origin,e=r=>{if(r.origin!==t)return;const s=n.getRootElement();if(document.activeElement!==s)return;const i=r.data;if(typeof i=="string"){let o;try{o=JSON.parse(i)}catch{return}if(o&&o.protocol==="nuanria_messaging"&&o.type==="request"){const l=o.payload;if(l&&l.functionId==="makeChanges"){const a=l.args;if(a){const[u,d,f,g,p]=a;n.update(()=>{const m=G();if(H(m)){const y=m.anchor;let b=y.getNode(),x=0,C=0;if(ie(b)&&u>=0&&d>=0&&(x=u,C=u+d,m.setTextNodeRange(b,x,b,C)),x===C&&f===""||(m.insertRawText(f),b=y.getNode()),ie(b)){x=g,C=g+p;const v=b.getTextContentSize();x=x>v?v:x,C=C>v?v:C,m.setTextNodeRange(b,x,b,C)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",e,!0),()=>{window.removeEventListener("message",e,!0)}}function lE(n,t){if(document.caretRangeFromPoint!==void 0){const e=document.caretRangeFromPoint(n,t);return e===null?null:{node:e.startContainer,offset:e.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const e=document.caretPositionFromPoint(n,t);return e===null?null:{node:e.offsetNode,offset:e.offset}}return null}const ra=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,ZK=ra&&"documentMode"in document?document.documentMode:null,JK=ra&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),VK=!(!ra||!("InputEvent"in window)||ZK)&&"getTargetRanges"in new window.InputEvent("input"),QK=ra&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),aE=ra&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,XK=ra&&/^(?=.*Chrome).*/i.test(navigator.userAgent),qK=ra&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&JK&&!XK,cE=be("DRAG_DROP_PASTE_FILE");let dp=class bL extends gt{static getType(){return"quote"}static clone(t){return new bL(t.__key)}createDOM(t){const e=document.createElement("blockquote");return st(e,t.theme.quote),e}updateDOM(t,e){return!1}static importDOM(){return{blockquote:t=>({conversion:$K,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(Et(e)){this.isEmpty()&&e.append(document.createElement("br"));const r=this.getFormatType();r&&(e.style.textAlign=r);const s=this.getDirection();s&&(e.dir=s)}return{element:e}}static importJSON(t){return Ic().updateFromJSON(t)}insertNewAfter(t,e){const r=we(),s=this.getDirection();return r.setDirection(s),this.insertAfter(r,e),r}collapseAtStart(){const t=we();return this.getChildren().forEach(e=>t.append(e)),this.replace(t),!0}canMergeWhenEmpty(){return!0}};function Ic(){return Mt(new dp)}function Mo(n){return n instanceof dp}let _d=class wL extends gt{constructor(e,r){super(r);z(this,"__tag");this.__tag=e}static getType(){return"heading"}static clone(e){return new wL(e.__tag,e.__key)}getTag(){return this.__tag}setTag(e){const r=this.getWritable();return this.__tag=e,r}createDOM(e){const r=this.__tag,s=document.createElement(r),i=e.theme.heading;if(i!==void 0){const o=i[r];st(s,o)}return s}updateDOM(e,r,s){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:Ta,priority:0}),h2:e=>({conversion:Ta,priority:0}),h3:e=>({conversion:Ta,priority:0}),h4:e=>({conversion:Ta,priority:0}),h5:e=>({conversion:Ta,priority:0}),h6:e=>({conversion:Ta,priority:0}),p:e=>{const r=e.firstChild;return r!==null&&uE(r)?{conversion:()=>({node:null}),priority:3}:null},span:e=>uE(e)?{conversion:r=>({node:Ws("h1")}),priority:3}:null}}exportDOM(e){const{element:r}=super.exportDOM(e);if(Et(r)){this.isEmpty()&&r.append(document.createElement("br"));const s=this.getFormatType();s&&(r.style.textAlign=s);const i=this.getDirection();i&&(r.dir=i)}return{element:r}}static importJSON(e){return Ws(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,r=!0){const s=e?e.anchor.offset:0,i=this.getLastDescendant(),o=!i||e&&e.anchor.key===i.getKey()&&s===i.getTextContentSize()||!e?we():Ws(this.getTag()),l=this.getDirection();if(o.setDirection(l),this.insertAfter(o,r),s===0&&!this.isEmpty()&&e){const a=we();a.select(),this.replace(a,!0)}return o}collapseAtStart(){const e=this.isEmpty()?we():Ws(this.getTag());return this.getChildren().forEach(r=>e.append(r)),this.replace(e),!0}extractWithChild(){return!0}};function uE(n){return n.nodeName.toLowerCase()==="span"&&n.style.fontSize==="26pt"}function Ta(n){const t=n.nodeName.toLowerCase();let e=null;return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6"||(e=Ws(t),n.style!==null&&(c0(n,e),e.setFormat(n.style.textAlign))),{node:e}}function $K(n){const t=Ic();return n.style!==null&&(t.setFormat(n.style.textAlign),c0(n,t)),{node:t}}function Ws(n="h1"){return Mt(new _d(n))}function Vs(n){return n instanceof _d}function Fa(n){let t=null;if(Ii(n,DragEvent)?t=n.dataTransfer:Ii(n,ClipboardEvent)&&(t=n.clipboardData),t===null)return[!1,[],!1];const e=t.types,r=e.includes("Files"),s=e.includes("text/html")||e.includes("text/plain");return[r,Array.from(t.files),s]}function dE(n){const t=G();if(!H(t))return!1;const e=new Set,r=t.getNodes();for(let s=0;s<r.length;s++){const i=r[s],o=i.getKey();if(e.has(o))continue;const l=Se(i,u=>Y(u)&&!u.isInline());if(l===null)continue;const a=l.getKey();l.canIndent()&&!e.has(a)&&(e.add(a),n(l))}return e.size>0}function fE(n){const t=Oe(n);return tt(t)}function NA(n){for(const t of["lowercase","uppercase","capitalize"])n.hasFormat(t)&&n.toggleFormat(t)}function e9(n){return Xe(n.registerCommand(Hi,t=>{const e=G();return!!Gt(e)&&(e.clear(),!0)},Fe),n.registerCommand(Ys,t=>{const e=G();return H(e)?(e.deleteCharacter(t),!0):!!Gt(e)&&(e.deleteNodes(),!0)},Fe),n.registerCommand(tc,t=>{const e=G();return!!H(e)&&(e.deleteWord(t),!0)},Fe),n.registerCommand(Tl,t=>{const e=G();return!!H(e)&&(e.deleteLine(t),!0)},Fe),n.registerCommand(yo,t=>{const e=G();if(typeof t=="string")e!==null&&e.insertText(t);else{if(e===null)return!1;const r=t.dataTransfer;if(r!=null)sE(r,e,n);else if(H(e)){const s=t.data;return s&&e.insertText(s),!0}}return!0},Fe),n.registerCommand(ay,()=>{const t=G();return!!H(t)&&(t.removeText(),!0)},Fe),n.registerCommand(Lt,t=>{const e=G();return!!H(e)&&(e.formatText(t),!0)},Fe),n.registerCommand(go,t=>{const e=G();if(!H(e)&&!Gt(e))return!1;const r=e.getNodes();for(const s of r){const i=Se(s,o=>Y(o)&&!o.isInline());i!==null&&i.setFormat(t)}return!0},Fe),n.registerCommand(Al,t=>{const e=G();return!!H(e)&&(e.insertLineBreak(t),!0)},Fe),n.registerCommand(Pi,()=>{const t=G();return!!H(t)&&(t.insertParagraph(),!0)},Fe),n.registerCommand(uy,()=>(vc([ns()]),!0),Fe),n.registerCommand(Gs,()=>dE(t=>{const e=t.getIndent();t.setIndent(e+1)}),Fe),n.registerCommand(ho,()=>dE(t=>{const e=t.getIndent();e>0&&t.setIndent(Math.max(0,e-1))}),Fe),n.registerCommand(qs,t=>{const e=G();if(Gt(e)){const r=e.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectPrevious(),!0}else if(H(e)){const r=wy(e.focus,!0);if(!t.shiftKey&&tt(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),t.preventDefault(),!0}return!1},Fe),n.registerCommand(To,t=>{const e=G();if(Gt(e)){const r=e.getNodes();if(r.length>0)return t.preventDefault(),r[0].selectNext(0,0),!0}else if(H(e)){if((function(s){const i=s.focus;return i.key==="root"&&i.offset===xe().getChildrenSize()})(e))return t.preventDefault(),!0;const r=wy(e.focus,!1);if(!t.shiftKey&&tt(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),t.preventDefault(),!0}return!1},Fe),n.registerCommand(Lg,t=>{const e=G();if(Gt(e)){const r=e.getNodes();if(r.length>0)return t.preventDefault(),MS(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!H(e))return!1;if(OS(e,!0)){const r=t.shiftKey;return t.preventDefault(),RS(e,r,!0),!0}return!1},Fe),n.registerCommand(Ig,t=>{const e=G();if(Gt(e)){const s=e.getNodes();if(s.length>0)return t.preventDefault(),MS(s[0])?s[0].selectPrevious():s[0].selectNext(0,0),!0}if(!H(e))return!1;const r=t.shiftKey;return!!OS(e,!1)&&(t.preventDefault(),RS(e,r,!1),!0)},Fe),n.registerCommand(Yl,t=>{if(fE(t.target))return!1;const e=G();if(H(e)){if((function(r){if(!r.isCollapsed())return!1;const{anchor:s}=r;if(s.offset!==0)return!1;const i=s.getNode();if(Zt(i))return!1;const o=Ec(i);return o.getIndent()>0&&(o.is(i)||i.is(o.getFirstDescendant()))})(e))return t.preventDefault(),n.dispatchCommand(ho,void 0);if(aE&&navigator.language==="ko-KR")return!1}else if(!Gt(e))return!1;return t.preventDefault(),n.dispatchCommand(Ys,!0)},Fe),n.registerCommand(bc,t=>{if(fE(t.target))return!1;const e=G();return!(!H(e)&&!Gt(e))&&(t.preventDefault(),n.dispatchCommand(Ys,!1))},Fe),n.registerCommand(_l,t=>{const e=G();if(!H(e))return!1;if(NA(e),t!==null){if((aE||QK||qK)&&VK)return!1;if(t.preventDefault(),t.shiftKey)return n.dispatchCommand(Al,!1)}return n.dispatchCommand(Pi,void 0)},Fe),n.registerCommand(yc,()=>{const t=G();return!!H(t)&&(n.blur(),!0)},Fe),n.registerCommand(Yb,t=>{const[,e]=Fa(t);if(e.length>0){const s=lE(t.clientX,t.clientY);if(s!==null){const{offset:i,node:o}=s,l=Oe(o);if(l!==null){const a=ii();if(ie(l))a.anchor.set(l.getKey(),i,"text"),a.focus.set(l.getKey(),i,"text");else{const d=l.getParentOrThrow().getKey(),f=l.getIndexWithinParent()+1;a.anchor.set(d,f,"element"),a.focus.set(d,f,"element")}const u=ko(a);Ge(u)}n.dispatchCommand(cE,e)}return t.preventDefault(),!0}const r=G();return!!H(r)},Fe),n.registerCommand(Gb,t=>{const[e]=Fa(t),r=G();return!(e&&!H(r))},Fe),n.registerCommand(Zb,t=>{const[e]=Fa(t),r=G();if(e&&!H(r))return!1;const s=lE(t.clientX,t.clientY);if(s!==null){const i=Oe(s.node);tt(i)&&t.preventDefault()}return!0},Fe),n.registerCommand(dy,()=>(k_(),!0),Fe),n.registerCommand(Gl,t=>(Zy(n,Ii(t,ClipboardEvent)?t:null),!0),Fe),n.registerCommand(ud,t=>((async function(e,r){await Zy(r,Ii(e,ClipboardEvent)?e:null),r.update(()=>{const s=G();H(s)?s.removeText():Gt(s)&&s.getNodes().forEach(i=>i.remove())})})(t,n),!0),Fe),n.registerCommand(Uo,t=>{const[,e,r]=Fa(t);return e.length>0&&!r?(n.dispatchCommand(cE,e),!0):Ql(t.target)&&e0(t.target)?!1:G()!==null&&((function(s,i){s.preventDefault(),i.update(()=>{const o=G(),l=Ii(s,InputEvent)||Ii(s,KeyboardEvent)?null:s.clipboardData;l!=null&&o!==null&&sE(l,o,i)},{tag:r3})})(t,n),!0)},Fe),n.registerCommand(Hb,t=>{const e=G();return H(e)&&NA(e),!1},Fe),n.registerCommand(wc,t=>{const e=G();return H(e)&&NA(e),!1},Fe))}function Pe(n,t,...e){if(!n)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+t)}function og(...n){const t=[];for(const e of n)if(e&&typeof e=="string")for(const[r]of e.matchAll(/\S+/g))t.push(r);return t}const Do={blockCursor:"dsd__theme__blockCursor",characterLimit:"dsd__theme__characterLimit",code:"dsd__theme__code",codeCollapsed:"dsd__theme__code_сollapsed",codeHighlight:{atrule:"dsd__theme__tokenAttr",attr:"dsd__theme__tokenAttr",boolean:"dsd__theme__tokenProperty",builtin:"dsd__theme__tokenSelector",cdata:"dsd__theme__tokenComment",char:"dsd__theme__tokenSelector",class:"dsd__theme__tokenFunction","class-name":"dsd__theme__tokenFunction",comment:"dsd__theme__tokenComment",constant:"dsd__theme__tokenProperty",deleted:"dsd__theme__tokenProperty",doctype:"dsd__theme__tokenComment",entity:"dsd__theme__tokenOperator",function:"dsd__theme__tokenFunction",important:"dsd__theme__tokenVariable",inserted:"dsd__theme__tokenSelector",keyword:"dsd__theme__tokenAttr",namespace:"dsd__theme__tokenVariable",number:"dsd__theme__tokenProperty",operator:"dsd__theme__tokenOperator",prolog:"dsd__theme__tokenComment",property:"dsd__theme__tokenProperty",punctuation:"dsd__theme__tokenPunctuation",regex:"dsd__theme__tokenVariable",selector:"dsd__theme__tokenSelector",string:"dsd__theme__tokenSelector",symbol:"dsd__theme__tokenProperty",tag:"dsd__theme__tokenProperty",url:"dsd__theme__tokenOperator",variable:"dsd__theme__tokenVariable"},embedBlock:{base:"dsd__theme__embedBlock",focus:"dsd__theme__embedBlockFocus"},hashtag:"dsd__theme__hashtag",heading:{h1:"dsd__theme__h1",h2:"dsd__theme__h2",h3:"dsd__theme__h3",h4:"dsd__theme__h4",h5:"dsd__theme__h5",h6:"dsd__theme__h6"},excalidraw:"editor-excalidraw",image:"editor-image",indent:"dsd__theme__indent",inlineImage:"inline-editor-image",layoutContainer:"dsd__theme__layoutContainer",layoutItem:"dsd__theme__layoutItem",layoutDivider:"dsd__theme__layoutDivider",calloutIcon:"dsd__theme__callout-icon",callout:"dsd__theme__callout-container",calloutWrapper:"dsd__theme__callout-wrapper",calloutContainer:"dsd__theme__callout-main-container",link:"dsd__theme__link",list:{checklist:"dsd__theme__checklist",listitem:"dsd__theme__listItem",listitemChecked:"dsd__theme__listItemChecked",listitemUnchecked:"dsd__theme__listItemUnchecked",nested:{listitem:"dsd__theme__nestedListItem"},olDepth:["dsd__theme__ol1","dsd__theme__ol2","dsd__theme__ol3","dsd__theme__ol4","dsd__theme__ol5"],ul:"dsd__theme__ul"},listitemIndeterminate:"dsd__theme__listIndeterminate",mark:"dsd__theme__mark",markOverlap:"dsd__theme__markOverlap",paragraph:"dsd__theme__paragraph",quote:"dsd__theme__quote",rtl:"dsd__theme__rtl",table:"dsd__theme__table",tableAddColumns:"dsd__theme__tableAddColumns",tableAddRows:"dsd__theme__tableAddRows",tableCell:"dsd__theme__tableCell",tableCellActionButton:"dsd__theme__tableCellActionButton",tableCellActionButtonContainer:"dsd__theme__tableCellActionButtonContainer",tableCellEditing:"dsd__theme__tableCellEditing",tableCellHeader:"dsd__theme__tableCellHeader",tableCellPrimarySelected:"dsd__theme__tableCellPrimarySelected",tableCellResizer:"dsd__theme__tableCellResizer",tableCellSelected:"dsd__theme__tableCellSelected",tableCellSortedIndicator:"dsd__theme__tableCellSortedIndicator",tableResizeRuler:"dsd__theme__tableCellResizeRuler",tableSelected:"dsd__theme__tableSelected",tableSelection:"dsd__theme__tableSelection",tableScrollableWrapper:"dsd__theme__table-scrollable-wrapper",text:{bold:"dsd__theme__textBold",capitalize:"dsd__theme__textCapitalize",code:"dsd__theme__textCode",highlight:"dsd__theme__textHighlight",italic:"dsd__theme__textItalic",lowercase:"dsd__theme__textLowercase",strikethrough:"dsd__theme__textStrikethrough",subscript:"dsd__theme__textSubscript",superscript:"dsd__theme__textSuperscript",underline:"dsd__theme__textUnderline",underlineStrikethrough:"dsd__theme__textUnderlineStrikethrough",uppercase:"dsd__theme__textUppercase"}},t9=n=>{const t={...Do,text:{...Do.text}};return n==="comment"&&t.text&&(delete t.text.strikethrough,delete t.text.underlineStrikethrough),t};function Jy(n){let t=1,e=n.getParent();for(;e!=null;){if(dt(e)){const r=e.getParent();if(Ze(r)){t++,e=r.getParent();continue}Pe(!1,"A ListItemNode must have a ListNode for a parent.")}return t}return t}function Vy(n){let t=n.getParent();Ze(t)||Pe(!1,"A ListItemNode must have a ListNode for a parent.");let e=t;for(;e!==null;)e=e.getParent(),Ze(e)&&(t=e);return t}function CL(n){let t=[];const e=n.getChildren().filter(dt);for(let r=0;r<e.length;r++){const s=e[r],i=s.getFirstChild();Ze(i)?t=t.concat(CL(i)):t.push(s)}return t}function Us(n){return dt(n)&&Ze(n.getFirstChild())}function n9(n){let t=n;for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){const e=t.getParent();if(e==null||!(dt(t)||Ze(t)))break;t=e}t.remove()}function hE(n){return fr().append(n)}let xL=!1;function _u(n){xL=n}function vL(n,t){return dt(n)&&(t.length===0||t.length===1&&n.is(t[0])&&n.getChildrenSize()===0)}function Qy(n,t){n.update(()=>{const e=G();if(e!==null){const r=e.getNodes();if(H(e)){const i=e.getStartEndPoints();Pe(i!==null,"insertList: anchor should be defined");const[o]=i,l=o.getNode(),a=l.getParent();if(vL(l,r)){const u=yn(t);if($n(a)){l.replace(u);const d=fr();Y(l)&&(d.setFormat(l.getFormatType()),d.setIndent(l.getIndent())),u.append(d)}else if(dt(l)){const d=l.getParentOrThrow();zl(u,d.getChildren()),d.replace(u)}return}}const s=new Set;for(let i=0;i<r.length;i++){const o=r[i];if(Y(o)&&o.isEmpty()&&!dt(o)&&!s.has(o.getKey())){gE(o,t);continue}if(y_(o)){let l=o.getParent();for(;l!=null;){const a=l.getKey();if(Ze(l)){if(!s.has(a)){const u=yn(t);zl(u,l.getChildren()),l.replace(u),s.add(a)}break}else{const u=l.getParent();if($n(u)&&!s.has(a)){s.add(a),gE(l,t);break}l=u}}}}}})}function zl(n,t){n.splice(n.getChildrenSize(),0,t)}function gE(n,t){if(Ze(n))return n;const e=n.getPreviousSibling(),r=n.getNextSibling(),s=fr();if(s.setFormat(n.getFormatType()),s.setIndent(n.getIndent()),zl(s,n.getChildren()),Ze(e)&&t===e.getListType())return e.append(s),n.remove(),Ze(r)&&t===r.getListType()&&(zl(e,r.getChildren()),r.remove()),e;if(Ze(r)&&t===r.getListType())return r.getFirstChildOrThrow().insertBefore(s),n.remove(),r;{const i=yn(t);return i.append(s),n.replace(i),i}}function aw(n,t){const e=n.getLastChild(),r=t.getFirstChild();e&&r&&Us(e)&&Us(r)&&(aw(e.getFirstChild(),r.getFirstChild()),r.remove());const s=t.getChildren();s.length>0&&n.append(...s),t.remove()}function r9(n){n.update(()=>{const t=G();if(H(t)){const e=new Set,r=t.getNodes(),s=t.anchor.getNode();if(vL(s,r))e.add(Vy(s));else for(let i=0;i<r.length;i++){const o=r[i];if(y_(o)){const l=A0(o,En);l!=null&&e.add(Vy(l))}}for(const i of e){let o=i;const l=CL(i);for(const a of l){const u=we();zl(u,a.getChildren()),o.insertAfter(u),o=u,a.__key===t.anchor.key&&t.anchor.set(u.getKey(),0,"element"),a.__key===t.focus.key&&t.focus.set(u.getKey(),0,"element"),a.remove()}i.remove()}}})}function s9(n){const t=n.getListType()!=="check";let e=n.getStart();for(const r of n.getChildren())dt(r)&&(r.getValue()!==e&&r.setValue(e),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),Ze(r.getFirstChild())||e++)}function i9(n){if(xL)return;const t=n.getNextSibling();Ze(t)&&n.getListType()===t.getListType()&&aw(n,t)}function o9(n){const t=new Set;if(Us(n)||t.has(n.getKey()))return;const e=n.getParent(),r=n.getNextSibling(),s=n.getPreviousSibling();if(Us(r)&&Us(s)){const i=s.getFirstChild();if(Ze(i)){i.append(n);const o=r.getFirstChild();if(Ze(o)){const l=o.getChildren();zl(i,l),r.remove(),t.add(r.getKey())}}}else if(Us(r)){const i=r.getFirstChild();if(Ze(i)){const o=i.getFirstChild();o!==null&&o.insertBefore(n)}}else if(Us(s)){const i=s.getFirstChild();Ze(i)&&i.append(n)}else if(Ze(e)){const i=fr(),o=yn(e.getListType());i.append(o),o.append(n),s?s.insertAfter(i):r?r.insertBefore(i):e.append(i)}}function l9(n){if(Us(n))return;const t=n.getParent(),e=t?t.getParent():void 0,r=e?e.getParent():void 0;if(Ze(r)&&dt(e)&&Ze(t)){const s=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(n.is(s))e.insertBefore(n),t.isEmpty()&&e.remove();else if(n.is(i))e.insertAfter(n),t.isEmpty()&&e.remove();else{const o=t.getListType(),l=fr(),a=yn(o);l.append(a),n.getPreviousSiblings().forEach(f=>a.append(f));const u=fr(),d=yn(o);u.append(d),zl(d,n.getNextSiblings()),e.insertBefore(l),e.insertAfter(u),e.replace(n)}}}function a9(){const n=G();if(!H(n)||!n.isCollapsed())return!1;const t=n.anchor.getNode();if(!dt(t)||t.getChildrenSize()!==0)return!1;const e=Vy(t),r=t.getParent();Pe(Ze(r),"A ListItemNode must have a ListNode for a parent.");const s=r.getParent();let i;if($n(s))i=we(),e.insertAfter(i);else if(dt(s))i=fr(),s.insertAfter(i);else return!1;i.select();const o=t.getNextSiblings();if(o.length>0){const l=yn(r.getListType());if(un(i))i.insertAfter(l);else{const a=fr();a.append(l),i.insertAfter(a)}o.forEach(a=>{a.remove(),l.append(a)})}return n9(t),!0}class En extends gt{constructor(e,r,s,i,o){super(o);z(this,"__value");z(this,"__checked");z(this,"__opened");z(this,"__isIndeterminate");this.__value=e===void 0?1:e,this.__checked=r,this.__opened=s,this.__isIndeterminate=i}static getType(){return"listitem"}static clone(e){return new En(e.__value,e.__checked,e.__opened,e.__isIndeterminate,e.__key)}createDOM(e){const r=document.createElement("li"),s=this.getParent();return Ze(s)&&s.getListType()==="check"&&mE(r,this,null),r.value=this.__value,pE(r,e.theme,this),r}updateDOM(e,r,s){const i=this.getParent();return Ze(i)&&i.getListType()==="check"&&mE(r,this,e),r.value=this.__value,pE(r,s.theme,this),!1}static transform(){return e=>{if(Pe(dt(e),"node is not a ListItemNode"),e.__checked==null)return;const r=e.getParent();Ze(r)&&r.getListType()!=="check"&&e.getChecked()!=null&&e.setChecked(void 0)}}static importDOM(){return{li:()=>({conversion:c9,priority:0})}}static importJSON(e){const r=fr(e.checked,e.opened,e.isIndeterminate);return r.setValue(e.value),r.setFormat(e.format),r.setDirection(e.direction),r}exportDOM(e){const r=this.createDOM(e._config);return r.style.textAlign=this.getFormatType(),{element:r}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),opened:this.getOpened(),isIndeterminate:this.__isIndeterminate,version:1}}append(...e){for(let r=0;r<e.length;r++){const s=e[r];if(Y(s)&&this.canMergeWith(s)){const i=s.getChildren();this.append(...i),s.remove()}else super.append(s)}return this}replace(e,r){if(dt(e))return super.replace(e);this.setIndent(0);const s=this.getParentOrThrow();if(!Ze(s))return e;if(s.__first===this.getKey())s.insertBefore(e);else if(s.__last===this.getKey())s.insertAfter(e);else{const i=yn(s.getListType());let o=this.getNextSibling();for(;o;){const l=o;o=o.getNextSibling(),i.append(l)}s.insertAfter(e),e.insertAfter(i)}return r&&(Pe(Y(e),"includeChildren should only be true for ElementNodes"),this.getChildren().forEach(i=>{e.append(i)})),this.remove(),s.getChildrenSize()===0&&s.remove(),e}insertAfter(e,r=!0){const s=this.getParentOrThrow();if(Ze(s)||Pe(!1,"insertAfter: list node is not parent of list item node"),dt(e))return super.insertAfter(e,r);const i=this.getNextSiblings();if(s.insertAfter(e,r),i.length!==0){const o=yn(s.getListType());i.forEach(l=>o.append(l)),e.insertAfter(o,r)}return e}remove(e){const r=this.getPreviousSibling(),s=this.getNextSibling();super.remove(e),r&&s&&Us(r)&&Us(s)&&(aw(r.getFirstChild(),s.getFirstChild()),s.remove())}insertNewAfter(e,r=!0){const s=fr(this.__checked==null?void 0:!1);return this.insertAfter(s,r),s}collapseAtStart(e){const r=we();this.getChildren().forEach(a=>r.append(a));const i=this.getParentOrThrow(),o=i.getParentOrThrow(),l=dt(o);if(i.getChildrenSize()===1)if(l)i.remove(),o.select();else{i.insertBefore(r),i.remove();const a=e.anchor,u=e.focus,d=r.getKey();a.type==="element"&&a.getNode().is(this)&&a.set(d,a.offset,"element"),u.type==="element"&&u.getNode().is(this)&&u.set(d,u.offset,"element")}else i.insertBefore(r),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){const r=this.getWritable();r.__value=e}getChecked(){const e=this.getLatest();let r;const s=this.getParent();return Ze(s)&&(r=s.getListType()),r==="check"?!!e.__checked:void 0}getOpened(){const e=this.getLatest();let r;const s=this.getParent();return Ze(s)&&(r=s.getListType()),r==="check"?!!e.__opened:void 0}setChecked(e){const r=this.getWritable();r.__checked=e}setOpened(e){const r=this.getWritable();r.__opened=e}setIndeterminate(e){const r=this.getWritable();r.__isIndeterminate=e}toggleChecked(){this.setChecked(!this.__checked)}toggleOpen(){const e=!(this.__opened===!0||this.__opened===void 0);this.setOpened(e)}getIndent(){const e=this.getParent();if(e===null)return this.getLatest().__indent;let r=e.getParentOrThrow(),s=0;for(;dt(r);)r=r.getParentOrThrow().getParentOrThrow(),s++;return s}setIndent(e){Pe(typeof e=="number","Invalid indent value."),e=Math.floor(e),Pe(e>=0,"Indent value must be non-negative.");let r=this.getIndent();for(;r!==e;)r<e?(o9(this),r++):(l9(this),r--);return this}canInsertAfter(e){return dt(e)}canReplaceWith(e){return dt(e)}canMergeWith(e){return un(e)||dt(e)}extractWithChild(e,r){if(!H(r))return!1;const s=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(s)&&this.isParentOf(i)&&this.getTextContent().length===r.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return yn("bullet")}canMergeWhenEmpty(){return!0}}function pE(n,t,e){let r=[],s=[];const i=t.list,o=i?i.listitem:void 0;let l;if(i&&i.nested&&(l=i.nested.listitem),o!==void 0&&r.push(...og(o)),i){const a=e.getParent(),u=Ze(a)&&a.getListType()==="check",d=e.getChecked();(!u||d)&&s.push(i.listitemUnchecked),(!u||!d)&&s.push(i.listitemChecked),u&&r.push(d?i.listitemChecked:i.listitemUnchecked)}if(l!==void 0){const a=og(l);e.getChildren().some(u=>Ze(u))?r.push(...a):s.push(...a)}e.__isIndeterminate?r=[...r,Do.listitemIndeterminate]:s=[...s,Do.listitemIndeterminate],s.length>0&&Lr(n,...s),r.length>0&&st(n,...r)}function mE(n,t,e,r){Ze(t.getFirstChild())?(n.removeAttribute("role"),n.removeAttribute("tabIndex"),n.removeAttribute("aria-checked")):(n.setAttribute("role","checkbox"),n.setAttribute("tabIndex","-1"),(!e||t.__checked!==e.__checked)&&n.setAttribute("aria-checked",t.getChecked()?"true":"false"),t.__opened===!1?n.setAttribute("data-list","closed"):n.setAttribute("data-list","opened"))}function c9(n){if(n.classList.contains("task-list-item")){for(const l of n.children)if(l.tagName==="INPUT")return u9(l)}const e=n.getAttribute("aria-checked"),r=n.getAttribute("data-list"),s=e==="true"?!0:e==="false"?!1:void 0,i=!r||r==="opened",o=n.className.includes(Do.listitemIndeterminate);return{node:fr(s,i,o)}}function u9(n){if(!(n.getAttribute("type")==="checkbox"))return{node:null};const e=n.hasAttribute("checked");return{node:fr(e,!1,!0)}}function fr(n,t,e){return Mt(new En(void 0,n,t,e))}function dt(n){return n instanceof En}class zi extends Dn{constructor(t,e){super(t,e)}static getType(){return"extended-text"}static clone(t){return new zi(t.__text,t.__key)}static importDOM(){const t=Dn.importDOM(),e=document.body.getAttribute("mode")?{code:()=>({conversion:lo(t==null?void 0:t.span),priority:1}),s:()=>({conversion:lo(t==null?void 0:t.span),priority:1})}:{code:()=>({conversion:lo(t==null?void 0:t.code),priority:1})};return{...t,...e,em:()=>({conversion:lo(t==null?void 0:t.em),priority:1}),span:()=>({conversion:lo(t==null?void 0:t.span),priority:1}),strong:()=>({conversion:lo(t==null?void 0:t.strong),priority:1}),sub:()=>({conversion:lo(t==null?void 0:t.sub),priority:1}),sup:()=>({conversion:lo(t==null?void 0:t.sup),priority:1})}}static importJSON(t){return Dn.importJSON(t)}isSimpleText(){return(this.__type==="text"||this.__type==="extended-text")&&this.__mode===0}exportDOM(t){let{element:e}=super.exportDOM(t);return e instanceof HTMLElement&&e.setAttribute("lexical-element","true"),{element:e}}exportJSON(){return{...super.exportJSON(),type:"extended-text",version:1}}}function Oo(n=""){return Mt(new zi(n))}function Hn(n){return n instanceof zi}function lo(n){return t=>{const e=n==null?void 0:n(t);if(!e)return null;const r=e.conversion(t);if(!r)return r;const s=t.getAttribute("lexical-element")&&!document.body.getAttribute("mode"),i=s?t.style.backgroundColor:"",o=s?t.style.color:"",l=t.style.textDecoration;return{...r,forChild:(a,u)=>{const f=((r==null?void 0:r.forChild)??(g=>g))(a,u);if(Hn(f)){const g=[i?`background-color: ${i}`:null,o?`color: ${o}`:null,l?`text-decoration: ${l}`:null].filter(p=>p!=null).join("; ");if(g.length)return f.setStyle(g)}return f}}}}class Br extends gt{constructor(e,r,s){super(s);z(this,"__tag");z(this,"__start");z(this,"__listType");const i=bE[e]||e;this.__listType=i,this.__tag=i==="number"?"ol":"ul",this.__start=r}static getType(){return"list"}static clone(e){const r=e.__listType||bE[e.__tag];return new Br(r,e.__start,e.__key)}getTag(){return this.__tag}setListType(e){const r=this.getWritable();r.__listType=e,r.__tag=e==="number"?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e,r){const s=this.__tag,i=document.createElement(s);return this.__start!==1&&i.setAttribute("start",String(this.__start)),i.__lexicalListType=this.__listType,AE(i,e.theme,this),i}updateDOM(e,r,s){return e.__tag!==this.__tag?!0:(AE(r,s.theme,this),!1)}static transform(){return e=>{Pe(Ze(e),"node is not a ListNode"),i9(e),s9(e)}}static importDOM(){return{ol:()=>({conversion:yE,priority:0}),ul:()=>({conversion:yE,priority:0})}}static importJSON(e){const r=yn(e.listType,e.start);return r.setFormat(e.format),r.setIndent(e.indent),r.setDirection(e.direction),r}exportDOM(e){const{element:r}=super.exportDOM(e);return r&&Et(r)&&(this.__start!==1&&r.setAttribute("start",String(this.__start)),this.__listType==="check"&&r.setAttribute("__lexicalListType","check")),{element:r}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let r=0;r<e.length;r++){const s=e[r];if(dt(s))super.append(s);else{const i=fr();if(Ze(s))i.append(s);else if(Y(s)){const o=Oo(s.getTextContent());i.append(o)}else i.append(s);super.append(i)}}return this}extractWithChild(e){return dt(e)}}function AE(n,t,e){const r=[],s=[],i=t.list;if(i!==void 0){const o=i[`${e.__tag}Depth`]||[],l=Jy(e)-1,a=l%o.length,u=o[a],d=i[e.__tag];let f;const g=i.nested,p=i.checklist;if(g!==void 0&&g.list&&(f=g.list),d!==void 0&&r.push(d),p!==void 0&&e.__listType==="check"&&r.push(p),u!==void 0){r.push(...og(u));for(let m=0;m<o.length;m++)m!==a&&s.push(e.__tag+m)}if(f!==void 0){const m=og(f);l>1?r.push(...m):s.push(...m)}}s.length>0&&Lr(n,...s),r.length>0&&st(n,...r)}function d9(n){const t=[];for(let e=0;e<n.length;e++){const r=n[e];if(dt(r)){t.push(r);const s=r.getChildren();s.length>1&&s.forEach(i=>{Ze(i)&&t.push(hE(i))})}else t.push(hE(r))}return t}function f9(n){if(n.getAttribute("__lexicallisttype")==="check"||n.classList.contains("contains-task-list"))return!0;for(const t of n.childNodes)if(Et(t)&&t.hasAttribute("aria-checked"))return!0;return!1}function yE(n){const t=n.nodeName.toLowerCase();let e=null;if(t==="ol"){const r=n.start;e=yn("number",r)}else t==="ul"&&(f9(n)?e=yn("check"):e=yn("bullet"));return{after:d9,node:e}}const bE={ol:"number",ul:"bullet"};function yn(n,t=1){return Mt(new Br(n,t))}function Ze(n){return n instanceof Br}const cw=be("INSERT_UNORDERED_LIST_COMMAND"),fp=be("INSERT_ORDERED_LIST_COMMAND"),uw=be("INSERT_CHECK_LIST_COMMAND"),h9=be("REMOVE_LIST_COMMAND");function g9(n){return Xe(n.registerCommand(fp,()=>(Qy(n,"number"),!0),Te),n.registerCommand(cw,()=>(Qy(n,"bullet"),!0),Te),n.registerCommand(h9,()=>(r9(n),!0),Te),n.registerCommand(Pi,()=>!!a9(),Te))}const lg=/^(\d+(?:\.\d+)?)px$/,An={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1};class xs extends gt{constructor(e=An.NO_STATUS,r=1,s,i){super(i);z(this,"__colSpan");z(this,"__rowSpan");z(this,"__headerState");z(this,"__width");z(this,"__backgroundColor");this.__colSpan=r,this.__rowSpan=1,this.__headerState=e,this.__width=s,this.__backgroundColor=null}static getType(){return"tablecell"}static clone(e){return new xs(e.__headerState,e.__colSpan,e.__width,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor}static importDOM(){return{td:e=>({conversion:wE,priority:0}),th:e=>({conversion:wE,priority:0})}}static importJSON(e){const r=e.colSpan||1,s=e.rowSpan||1;return vs(e.headerState,r,e.width||void 0).setRowSpan(s).setBackgroundColor(e.backgroundColor||null)}createDOM(e){const r=document.createElement(this.getTag());return this.__width&&(r.style.maxWidth=`${this.__width}px`,r.style.minWidth=`${this.__width}px`),this.__colSpan>1&&(r.colSpan=this.__colSpan),this.__rowSpan>1&&(r.rowSpan=this.__rowSpan),this.__backgroundColor!==null&&(r.style.backgroundColor=this.__backgroundColor),st(r,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),r}exportDOM(e){const{element:r}=super.exportDOM(e);if(r){const s=r;this.__colSpan>1&&(s.colSpan=this.__colSpan),this.__rowSpan>1&&(s.rowSpan=this.__rowSpan),this.getWidth()&&(s.style.maxWidth=`${this.getWidth()}px`,s.style.minWidth=`${this.getWidth()}px`),s.style.verticalAlign="top",s.style.textAlign="start";const i=this.getBackgroundColor();i!==null?s.style.backgroundColor=i:this.hasHeader()&&(s.style.backgroundColor="#f2f3f5")}return{element:r}}exportJSON(){return{...super.exportJSON(),backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,type:"tablecell",width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){const r=this.getWritable();return r.__colSpan=e,r}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){const r=this.getWritable();return r.__rowSpan=e,r}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(e,r=An.BOTH){const s=this.getWritable();return s.__headerState=e&r|s.__headerState&~r,s}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){const r=this.getWritable();return r.__width=e,r}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){const r=this.getWritable();return r.__backgroundColor=e,r}toggleHeaderStyle(e){const r=this.getWritable();return(r.__headerState&e)===e?r.__headerState-=e:r.__headerState+=e,r}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==An.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function wE(n){const t=n,e=n.nodeName.toLowerCase();let r;(lg.test(t.style.minWidth)||lg.test(t.style.maxWidth))&&(r=parseFloat(t.style.minWidth));const s=vs(e==="th"?An.ROW:An.NO_STATUS,t.colSpan,r);s.__rowSpan=t.rowSpan;const i=t.style.backgroundColor;i!==""&&(s.__backgroundColor=i);const o=t.style,l=(o&&o.textDecoration||"").split(" "),a=o.fontWeight==="700"||o.fontWeight==="bold",u=l.includes("line-through"),d=o.fontStyle==="italic",f=l.includes("underline");return{after:g=>(g.length===0&&g.push(we()),g),forChild:(g,p)=>{if(Le(p)&&!Y(g)){const m=we();return St(g)&&g.getTextContent()===`
38
+ `?null:(Hn(g)&&(a&&g.toggleFormat("bold"),u&&g.toggleFormat("strikethrough"),d&&g.toggleFormat("italic"),f&&g.toggleFormat("underline")),m.append(g),m)}return g},node:s}}function vs(n,t=1,e){return Mt(new xs(n,t,e))}function Le(n){return n instanceof xs}const hp=be("INSERT_TABLE_COMMAND");function SL(n,t){if(t.add(n.getKey()),Y(n))for(const e of n.getChildren())SL(e,t)}function EL(n){const t=n.getNodes();if(t.length===0)return!1;const e=t[0],r=t[t.length-1],s=ii(),i=Y(e)?"element":"text",o=Y(r)?"element":"text";s.anchor.set(e.getKey(),0,i),s.focus.set(r.getKey(),Y(r)?r.getChildrenSize():r.getTextContentSize(),o),Ge(s)}const gp=[".ContentEditable__root > *:not(ol):not(ul):not(.dsd__theme__table-scrollable-wrapper):not(.editor-image:not(:has(button))):not(div.video-container):not(div.editor-iframe)",".dsd__theme__table-scrollable-wrapper > table",".editor-image > div.resizable-container > div.resizable-container__inner",".video-container > div.resizable-container > div.resizable-container__inner",".editor-iframe > div.resizable-container > div.resizable-container__inner"],Xy=[...gp,"ul.dsd__theme__ul > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol1 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol2 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol3 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol4 > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol5 > li:not(.dsd__theme__nestedListItem)"],p9=[...gp,"ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li:not(.dsd__theme__nestedListItem)","ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li.dsd__theme__nestedListItem","ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li.dsd__theme__nestedListItem"],m9=[...gp,"ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li:not(.dsd__theme__nestedListItem)","ul.dsd__theme__ul:not(.dsd__theme__nestedListItem ul) > li.dsd__theme__nestedListItem"],A9=[...gp,"ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li:not(.dsd__theme__nestedListItem)","ol.dsd__theme__ol1:not(.dsd__theme__nestedListItem ol) > li.dsd__theme__nestedListItem"],y9=n=>{const t=document.querySelectorAll(".selected-block");if(t.length===0)return;setTimeout(()=>{n.update(()=>{const r=Rg();t.forEach(s=>{const i=Oe(s);i&&SL(i,r)}),Ge(r)})},100);const e=r=>{const s=!!document.querySelector(".draggable-menu");if(r.button===2||s){r.preventDefault();return}const i=r.target;i.closest(".draggable-block-menu")||i.closest(".draggable-menu")||(t.forEach(o=>{Go(o)}),document.body.removeEventListener("mousedown",e))};setTimeout(()=>{document.body.addEventListener("mousedown",e)}),n.update(()=>{const r=document.querySelector(".ContentEditable__root");r==null||r.focus({preventScroll:!0})})},b9=(n,t,e)=>{var o;const r=t.code==="ArrowUp"||t.code==="ArrowLeft",s=t.code==="ArrowDown"||t.code==="ArrowRight";if(!r&&!s)return!1;const i=e[0];return i?(t.preventDefault(),(o=n.getRootElement())==null||o.focus({preventScroll:!0}),n.update(()=>{var f,g,p,m;const l=Oe(i);if(!l)return;const a=r?(f=l.getPreviousSibling)==null?void 0:f.call(l):(g=l.getNextSibling)==null?void 0:g.call(l);if(!a)return;let u=a;for(;Y(u)&&u.getChildrenSize()>0&&(u=r?((p=u.getLastChild)==null?void 0:p.call(u))??u:((m=u.getFirstChild)==null?void 0:m.call(u))??u,u!==a););const d=(r?u==null?void 0:u.selectEnd:u==null?void 0:u.selectStart)||(u==null?void 0:u.select)||(a==null?void 0:a.select);d&&d.call(u||a)}),e.forEach(l=>Go(l)),!0):!1},w9=(n,t,e)=>{var s;const r=e[0];return r?(t.preventDefault(),(s=n.getRootElement())==null||s.focus({preventScroll:!0}),n.update(()=>{const i=Oe(r);if(!i||typeof i.insertAfter!="function")return;const o=we();i.insertAfter(o),o.selectStart()}),e.forEach(i=>Go(i)),!0):!1},C9=(n,t,e)=>{const{hasSelectedBlock:r}=hl(),s=(e==null?void 0:e.getSelectedTargets())||[];return!r||!s.length?!1:t.key==="Backspace"||t.key==="Delete"?(s.forEach(l=>Go(l)),e==null||e.setSelectedTargets([]),!1):t.code==="Enter"&&w9(n,t,s)?(e==null||e.setSelectedTargets([]),!0):b9(n,t,s)?(e==null||e.setSelectedTargets([]),!0):!1},x9={container:document.body,getScrollPosition:()=>[document.documentElement.scrollLeft,document.documentElement.scrollTop],throttleTime:30,threshold:0},CE=(n,t,e)=>function r(s){if(s instanceof KeyboardEvent&&s.key!=="Backspace"&&s.key!=="Delete"&&s.key!=="Escape")return!1;const i=s.target;i.closest(".draggable-block-menu")||i.closest(".toolbar")||i.closest(".draggable-menu")||(n==null||n.classList.remove(t),e.update(()=>{i.closest(".ContentEditable__root")||Ge(null),s instanceof KeyboardEvent&&t==="selected-all-document"&&s.key!=="Escape"&&e.update(()=>{var l;(l=xe().getFirstChild())==null||l.selectStart()}),s instanceof KeyboardEvent&&t==="selected-all-document"&&s.key==="Escape"&&e.blur()}),setTimeout(()=>{document.body.removeEventListener("mousedown",r),document.removeEventListener("keydown",r)}))},dw=(n,t)=>{var e,r;if(t&&t.block){const{block:s,isCreateEventListener:i}=t,o="selected-block";if(s.classList.add(o),s.classList.remove("selected-block-hidden"),i){const l=CE(s,o,n);document.body.addEventListener("mousedown",l),document.addEventListener("keydown",l)}}else{const s="selected-all-document",i=CE(n._rootElement,s,n);document.body.addEventListener("mousedown",i),document.addEventListener("keydown",i),(e=n._rootElement)==null||e.classList.add(s),(r=n._rootElement)==null||r.classList.remove("selected-block-hidden")}},Go=n=>{n.classList.remove("selected-block"),n.classList.add("selected-block-hidden")},IA=n=>{n.querySelectorAll(".selected-block").forEach(e=>{Go(e)})},v9=(n,t,e,r,s)=>{var i;if(((i=n.selected[0])==null?void 0:i.tagName)==="LI"){let o=n.added[0];if(!n.added.length&&n.beforeSelected.length>=2){const f=n.beforeSelected[0],g=n.beforeSelected[1],p=f.getBoundingClientRect().top;g.getBoundingClientRect().top<p?o=kL(n.selected[0]):o=n.selected[0]}let a=(o==null?void 0:o.classList.contains("dsd__theme__nestedListItem"))&&n.added.length===0?1:0,u=o,d=null;for(;u;){const f=u.tagName.toUpperCase();if(f==="UL"||f==="OL")d||(d=f.toLowerCase()),a++;else if(f!=="LI")break;u=u.parentElement}if(a!==0&&e.depth!==a){if(!d)return;r({depth:a,targets:S9(a,d)}),setTimeout(()=>{s==null||s.findSelectableTargets(),s==null||s.setSelectedTargets(n.selected)})}}else!e.depth&&n.added.length&&(r({depth:999,targets:p9}),setTimeout(()=>{s==null||s.findSelectableTargets(),s==null||s.setSelectedTargets(n.selected)}));n.added.forEach(o=>{dw(t,{block:o,isCreateEventListener:!1})}),n.removed.forEach(o=>{Go(o)})},hl=()=>{const n=document.querySelector("div.ContentEditable__root"),t=(n==null?void 0:n.querySelector(".selected-block"))!==null,e=n==null?void 0:n.classList.contains("selected-all-document");return{hasSelectedBlock:t,selectedAllDocument:e}},xE=(n,t,e,r)=>{if(n==="ol"){const s=Array.from({length:t},(a,u)=>`ol.dsd__theme__ol${u+1}`).join(" ");let i="";t===1&&(i=":not(.dsd__theme__nestedListItem ol)");const o=`${s}${i} >`;return e?`${o} li.dsd__theme__nestedListItem`:`${o} li:not(.dsd__theme__nestedListItem)`}else{const s=" ul".repeat(t-1).trim(),i=" ul".repeat(t).trim(),l=`ul.dsd__theme__ul${s?` ${s}`:""}:not(.dsd__theme__nestedListItem ${i}) >`;let a=`${l} li:not(.dsd__theme__nestedListItem)`;return e?`${l} li.dsd__theme__nestedListItem`:a}};function S9(n,t){if(n<1)throw new Error("Depth must be >= 1");const e=[];if(e.push(xE(t,n,!1)),e.push(xE(t,n,!0)),t==="ol"){if(n>1)for(let r=1;r<n;r++)e.push(`ol.dsd__theme__ol${r} > li:not(.dsd__theme__nestedListItem)`);return[...m9,...e]}else if(t==="ul"){if(n>1)for(let r=1;r<n;r++)e.push(`ul.dsd__theme__ul${" ul".repeat(r-1)}:not(.dsd__theme__nestedListItem ${"ul ".repeat(r).trim()}) > li:not(.dsd__theme__nestedListItem):not(:has(ul))`);return[...A9,...e]}return[...Xy,...e]}function kL(n){const t=n.querySelector("ul, ol");let e=t==null?void 0:t.lastElementChild;for(;e&&e.tagName!=="LI";)e=e.previousElementSibling;return e!=null&&e.classList.contains("dsd__theme__nestedListItem")?kL(e)??e:e}const Lc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function _i(n){n.preventDefault(),n.stopImmediatePropagation(),n.stopPropagation()}class Mc extends gt{constructor(e,r){super(r);z(this,"__height");this.__height=e}static getType(){return"tablerow"}static clone(e){return new Mc(e.__height,e.__key)}static importDOM(){return{tr:e=>({conversion:E9,priority:0})}}static importJSON(e){return td(e.height)}exportJSON(){return{...super.exportJSON(),...this.getHeight()&&{height:this.getHeight()},type:"tablerow",version:1}}createDOM(e){const r=document.createElement("tr");return this.__height&&(r.style.height=`${this.__height}px`),st(r,e.theme.tableRow),r}isShadowRoot(){return!0}setHeight(e){const r=this.getWritable();return r.__height=e,this.__height}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function E9(n){const t=n;let e;return lg.test(t.style.height)&&(e=parseFloat(t.style.height)),{node:td(e)}}function td(n){return Mt(new Mc(n))}function dn(n){return n instanceof Mc}function k9(n,t,e=!0){const r=mw();for(let s=0;s<n;s++){const i=td();for(let o=0;o<t;o++){let l=An.NO_STATUS;typeof e=="object"?(s===0&&e.rows&&(l|=An.ROW),o===0&&e.columns&&(l|=An.COLUMN)):e&&(s===0&&(l|=An.ROW),o===0&&(l|=An.COLUMN));const a=vs(l),u=we();u.append(Oo()),a.append(u),i.append(a)}r.append(i)}return r}function TL(n){const t=Se(n,e=>dn(e));if(dn(t))return t;throw new Error("Expected table cell to be inside of table row.")}function Ao(n){const t=Se(n,e=>yt(e));if(yt(t))return t;throw new Error("Expected table cell to be inside of table.")}function pp(n){const t=TL(n);return Ao(t).getChildren().findIndex(r=>r.is(t))}function mp(n){return TL(n).getChildren().findIndex(e=>e.is(n))}const T9=(n,t)=>n===An.BOTH||n===t?t:An.NO_STATUS;function ag(n=!0){const t=G();Pe(H(t)||pt(t),"Expected a RangeSelection or TableSelection");const e=t.focus.getNode(),[r,,s]=Wn(e),[i,o]=ss(s,r,r),l=i[0].length,{startRow:a}=o;let u=null;if(n){const d=a+r.__rowSpan-1,f=i[d],g=td();for(let m=0;m<l;m++){const{cell:y,startRow:b}=f[m];if(b+y.__rowSpan-1<=d){const C=f[m].cell.__headerState;g.append(vs(C).append(we()))}else y.setRowSpan(y.__rowSpan+1)}const p=s.getChildAtIndex(d);Pe(dn(p),"focusEndRow is not a TableRowNode"),p.insertAfter(g),u=g}else{const d=i[a],f=td();for(let p=0;p<l;p++){const{cell:m,startRow:y}=d[p];if(y===a){const x=d[p].cell.__headerState;f.append(vs(x).append(we()))}else m.setRowSpan(m.__rowSpan+1)}const g=s.getChildAtIndex(a);Pe(dn(g),"focusEndRow is not a TableRowNode"),g.insertBefore(f),u=f}return u}function qy(n=!0){const t=G();Pe(H(t)||pt(t),"Expected a RangeSelection or TableSelection");const e=t.anchor.getNode(),r=t.focus.getNode(),[s]=Wn(e),[i,,o]=Wn(r),[l,a,u]=ss(o,i,s),d=l.length,f=n?Math.max(a.startColumn,u.startColumn):Math.min(a.startColumn,u.startColumn),g=n?f+i.__colSpan-1:f-1,p=o.getFirstChild();Pe(dn(p),"Expected firstTable child to be a row");let m=null;function y(C=An.NO_STATUS){const v=vs(C).append(we());return m===null&&(m=v),v}let b=p;e:for(let C=0;C<d;C++){if(C!==0){const L=b.getNextSibling();Pe(dn(L),"Expected row nextSibling to be a row"),b=L}const v=l[C],E=v[g<0?0:g].cell.__headerState,N=T9(E,An.ROW);if(g<0){fw(b,y(N));continue}const{cell:S,startColumn:_,startRow:I}=v[g];if(_+S.__colSpan-1<=g){let L=S,M=I,R=g;for(;M!==C&&L.__rowSpan>1;)if(R-=S.__colSpan,R>=0){const{cell:j,startRow:U}=v[R];L=j,M=U}else{b.append(y(N));continue e}const F=C?0:N;L.insertAfter(y(F))}else S.setColSpan(S.__colSpan+1)}m!==null&&nd(m);const x=o.getColWidths();if(x){const C=[...x],v=g<0?0:g,E=C[v];C.splice(v,0,E),o.setColWidths(C)}return m}function _9(){const n=G();Pe(H(n)||pt(n),"Expected a RangeSelection or TableSelection");const[t,e]=n.isBackward()?[n.focus.getNode(),n.anchor.getNode()]:[n.anchor.getNode(),n.focus.getNode()],[r,,s]=Wn(t),[i]=Wn(e),[o,l,a]=ss(s,r,i),{startRow:u}=l,{startRow:d}=a,f=d+i.__rowSpan-1;if(o.length===f-u+1){s.remove();return}const g=o[0].length,p=o[f+1],m=s.getChildAtIndex(f+1);for(let y=f;y>=u;y--){for(let x=g-1;x>=0;x--){const{cell:C,startRow:v,startColumn:E}=o[y][x];if(E===x&&(y===u&&v<u&&C.setRowSpan(C.__rowSpan-(v-u)),v>=u&&v+C.__rowSpan-1>f))if(C.setRowSpan(C.__rowSpan-(f-v+1)),Pe(m!==null,"Expected nextRowNode not to be null"),x===0)fw(m,C);else{const{cell:N}=p[x-1];N.insertAfter(C)}}const b=s.getChildAtIndex(y);Pe(dn(b),"Expected TableNode childAtIndex(%s) to be RowNode",String(y)),b.remove()}if(p!==void 0){const{cell:y}=p[0];nd(y)}else{const y=o[u-1],{cell:b}=y[0];nd(b)}}function N9(){const n=G();Pe(H(n)||pt(n),"Expected a RangeSelection or TableSelection");const t=n.anchor.getNode(),e=n.focus.getNode(),[r,,s]=Wn(t),[i]=Wn(e),[o,l,a]=ss(s,r,i),{startColumn:u}=l,{startRow:d,startColumn:f}=a,g=Math.min(u,f),p=Math.max(u+r.__colSpan-1,f+i.__colSpan-1),m=p-g+1;if(o[0].length===p-g+1){s.selectPrevious(),s.remove();return}const b=o.length;for(let E=0;E<b;E++)for(let N=g;N<=p;N++){const{cell:S,startColumn:_}=o[E][N];if(_<g){if(N===g){const I=g-_;S.setColSpan(S.__colSpan-Math.min(m,S.__colSpan-I))}}else if(_+S.__colSpan-1>p){if(N===p){const I=p-_+1;S.setColSpan(S.__colSpan-I)}}else S.remove()}const x=o[d],C=u>f?x[u+r.__colSpan]:x[f+i.__colSpan];if(C!==void 0){const{cell:E}=C;nd(E)}else{const E=f<u?x[f-1]:x[u-1],{cell:N}=E;nd(N)}const v=s.getColWidths();if(v){const E=[...v];E.splice(g,m),s.setColWidths(E)}}function nd(n){const t=n.getFirstDescendant();t==null?n.selectStart():t.getParentOrThrow().selectStart()}function fw(n,t){const e=n.getFirstChild();e!==null?e.insertBefore(t):n.append(t)}function I9(){const n=G();Pe(H(n)||pt(n),"Expected a RangeSelection or TableSelection");const t=n.anchor.getNode(),[e,r,s]=Wn(t),i=e.__colSpan,o=e.__rowSpan;if(i===1&&o===1)return;const[l,a]=ss(s,e,e),{startColumn:u,startRow:d}=a,f=e.__headerState&An.COLUMN,g=Array.from({length:i},(y,b)=>{let x=f;for(let C=0;x!==0&&C<l.length;C++)x&=l[C][b+u].cell.__headerState;return x}),p=e.__headerState&An.ROW,m=Array.from({length:o},(y,b)=>{let x=p;for(let C=0;x!==0&&C<l[0].length;C++)x&=l[b+d][C].cell.__headerState;return x});if(i>1){for(let y=1;y<i;y++)e.insertAfter(vs(g[y]|m[0]).append(we()));e.setColSpan(1)}if(o>1){let y;for(let b=1;b<o;b++){const x=d+b,C=l[x];y=(y||r).getNextSibling(),Pe(dn(y),"Expected row next sibling to be a row");let v=null;for(let E=0;E<u;E++){const N=C[E],S=N.cell;N.startRow===x&&(v=S),S.__colSpan>1&&(E+=S.__colSpan-1)}if(v===null)for(let E=i-1;E>=0;E--)fw(y,vs(g[E]|m[b]).append(we()));else for(let E=i-1;E>=0;E--)v.insertAfter(vs(g[E]|m[b]).append(we()))}e.setRowSpan(1)}}function ss(n,t,e){const[r,s,i]=_L(n,t,e);return Pe(s!==null,"Anchor not found in Table"),Pe(i!==null,"Focus not found in Table"),[r,s,i]}function _L(n,t,e){const r=[];let s=null,i=null;function o(a){let u=r[a];return u===void 0&&(r[a]=u=[]),u}const l=n.getChildren();for(let a=0;a<l.length;a++){const u=l[a];Pe(dn(u),"Expected TableNode children to be TableRowNode");for(let d=u.getFirstChild(),f=0;d!=null;d=d.getNextSibling()){Pe(Le(d),"Expected TableRowNode children to be TableCellNode");const g=o(a);for(;g[f]!==void 0;)f++;const p={cell:d,startColumn:f,startRow:a},{__rowSpan:m,__colSpan:y}=d;for(let b=0;b<m&&!(a+b>=l.length);b++){const x=o(a+b);for(let C=0;C<y;C++)x[f+C]=p}t!==null&&s===null&&t.is(d)&&(s=p),e!==null&&i===null&&e.is(d)&&(i=p)}}return[r,s,i]}function Wn(n){let t;if(n instanceof xs)t=n;else if("__type"in n){const s=Se(n,Le);Pe(Le(s),"Expected to find a parent TableCellNode"),t=s}else{const s=Se(n.getNode(),Le);Pe(Le(s),"Expected to find a parent TableCellNode"),t=s}const e=t.getParent();Pe(dn(e),"Expected TableCellNode to have a parent TableRowNode");const r=e.getParent();return Pe(yt(r),"Expected TableRowNode to have a parent TableNode"),[t,e,r]}function vE(n){const[t,,e]=Wn(n),r=e.getChildren(),s=r.length,i=r[0].getChildren().length,o=new Array(s);for(let l=0;l<s;l++)o[l]=new Array(i);for(let l=0;l<s;l++){const u=r[l].getChildren();let d=0;for(let f=0;f<u.length;f++){for(;o[l][d];)d++;const g=u[f],p=g.__rowSpan||1,m=g.__colSpan||1;for(let y=0;y<p;y++)for(let b=0;b<m;b++)o[l+y][d+b]=g;if(t===g)return{colSpan:m,columnIndex:d,rowIndex:l,rowSpan:p};d+=m}}return null}class Ap{constructor(t,e,r){z(this,"tableKey");z(this,"anchor");z(this,"focus");z(this,"_cachedNodes");z(this,"dirty");this.anchor=e,this.focus=r,e._selection=this,r._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=t}getStartEndPoints(){return[this.anchor,this.focus]}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return pt(t)?this.tableKey===t.tableKey&&this.anchor.is(t.anchor)&&this.focus.is(t.focus):!1}set(t,e,r){this.dirty=!0,this.tableKey=t,this.anchor.key=e,this.focus.key=r,this._cachedNodes=null}clone(){return new Ap(this.tableKey,this.anchor,this.focus)}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(t){}insertText(){}hasFormat(t){let e=0;this.getNodes().filter(Le).forEach(i=>{const o=i.getFirstChild();un(o)&&(e|=o.getTextFormat())});const s=Ri[t];return(e&s)!==0}insertNodes(t){const e=this.focus.getNode();Pe(Y(e),"Expected TableSelection focus to be an ElementNode"),ko(e.select(0,e.getChildrenSize())).insertNodes(t)}getShape(){const t=me(this.anchor.key);Pe(Le(t),"Expected TableSelection anchor to be (or a child of) TableCellNode");const e=vE(t);Pe(e!==null,"getCellRect: expected to find AnchorNode");const r=me(this.focus.key);Pe(Le(r),"Expected TableSelection focus to be (or a child of) TableCellNode");const s=vE(r);Pe(s!==null,"getCellRect: expected to find focusCellNode");const i=Math.min(e.columnIndex,s.columnIndex),o=Math.max(e.columnIndex+e.colSpan-1,s.columnIndex+s.colSpan-1),l=Math.min(e.rowIndex,s.rowIndex),a=Math.max(e.rowIndex+e.rowSpan-1,s.rowIndex+s.rowSpan-1);return{fromX:Math.min(i,o),fromY:Math.min(l,a),toX:Math.max(i,o),toY:Math.max(l,a)}}getNodes(){const t=this._cachedNodes;if(t!==null)return t;const e=this.anchor.getNode(),r=this.focus.getNode(),s=Se(e,Le),i=Se(r,Le);Pe(Le(s),"Expected TableSelection anchor to be (or a child of) TableCellNode"),Pe(Le(i),"Expected TableSelection focus to be (or a child of) TableCellNode");const o=s.getParent();Pe(dn(o),"Expected anchorCell to have a parent TableRowNode");const l=o.getParent();Pe(yt(l),"Expected tableNode to have a parent TableNode");const a=i.getParents()[1];if(a!==l){if(l.isParentOf(i)){const I=a.getParent();Pe(I!=null,"Expected focusCellParent to have a parent"),this.set(this.tableKey,i.getKey(),I.getKey())}else{const I=l.getParent();Pe(I!=null,"Expected gridParent to have a parent"),this.set(this.tableKey,I.getKey(),i.getKey())}return this.getNodes()}const[u,d,f]=ss(l,s,i);let g=Math.min(d.startColumn,f.startColumn),p=Math.min(d.startRow,f.startRow),m=Math.max(d.startColumn+d.cell.__colSpan-1,f.startColumn+f.cell.__colSpan-1),y=Math.max(d.startRow+d.cell.__rowSpan-1,f.startRow+f.cell.__rowSpan-1),b=g,x=p,C=g,v=p;function E(I){const{cell:L,startColumn:M,startRow:R}=I;g=Math.min(g,M),p=Math.min(p,R),m=Math.max(m,M+L.__colSpan-1),y=Math.max(y,R+L.__rowSpan-1)}for(;g<b||p<x||m>C||y>v;){if(g<b){const I=v-x,L=b-1;for(let M=0;M<=I;M++)E(u[x+M][L]);b=L}if(p<x){const I=C-b,L=x-1;for(let M=0;M<=I;M++)E(u[L][b+M]);x=L}if(m>C){const I=v-x,L=C+1;for(let M=0;M<=I;M++)E(u[x+M][L]);C=L}if(y>v){const I=C-b,L=v+1;for(let M=0;M<=I;M++)E(u[L][b+M]);v=L}}const N=new Map([[l.getKey(),l]]);let S=null;for(let I=p;I<=y;I++)for(let L=g;L<=m;L++){const{cell:M}=u[I][L],R=M.getParent();Pe(dn(R),"Expected TableCellNode parent to be a TableRowNode"),R!==S&&N.set(R.getKey(),R),N.set(M.getKey(),M);for(const F of L9(M))N.set(F.getKey(),F);S=R}const _=Array.from(N.values());return Jl()||(this._cachedNodes=_),_}getTextContent(){const t=this.getNodes().filter(r=>Le(r));let e="";for(let r=0;r<t.length;r++){const s=t[r],i=s.__parent,o=(t[r+1]||{}).__parent;e+=s.getTextContent()+(o!==i?`
39
+ `:" ")}return e}}function pt(n){return n instanceof Ap}function SE(){const n=Rn("root",0,"element"),t=Rn("root",0,"element");return new Ap("root",n,t)}function L9(n){const t=[],e=[n];for(;e.length>0;){const r=e.pop();Pe(r!==void 0,"Stack.length > 0; can't be undefined"),Y(r)&&e.unshift(...r.getChildren()),r!==n&&t.push(r)}return t}function NL(n,t=Xl()){const e=me(n);Pe(yt(e),"TableObserver: Expected tableNodeKey %s to be a TableNode",n);const r=Ul(e,t.getElementByKey(n));return Pe(r!==null,"TableObserver: Expected to find TableElement in DOM for key %s",n),{tableElement:r,tableNode:e}}class M9{constructor(t,e){z(this,"focusX");z(this,"focusY");z(this,"listenersToRemove");z(this,"table");z(this,"isHighlightingCells");z(this,"anchorX");z(this,"anchorY");z(this,"tableNodeKey");z(this,"anchorCell");z(this,"focusCell");z(this,"anchorCellNodeKey");z(this,"focusCellNodeKey");z(this,"editor");z(this,"tableSelection");z(this,"hasHijackedSelectionStyles");z(this,"isSelecting");z(this,"shouldCheckSelection");z(this,"abortController");z(this,"listenerOptions");this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=e,this.editor=t,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.isSelecting=!1,this.shouldCheckSelection=!1,this.abortController=new AbortController,this.listenerOptions={signal:this.abortController.signal},this.trackTable()}getTable(){return this.table}removeListeners(){this.abortController.abort("removeListeners"),Array.from(this.listenersToRemove).forEach(t=>t()),this.listenersToRemove.clear()}$lookup(){return NL(this.tableNodeKey,this.editor)}trackTable(){const t=new MutationObserver(e=>{this.editor.getEditorState().read(()=>{let r=!1;for(let s=0;s<e.length;s++){const l=e[s].target.nodeName;if(l==="TABLE"||l==="TBODY"||l==="THEAD"||l==="TR"){r=!0;break}}if(r)try{const{tableNode:s,tableElement:i}=this.$lookup();this.table=Nu(s,i)}catch{}},{editor:this.editor})});this.editor.getEditorState().read(()=>{const{tableNode:e,tableElement:r}=this.$lookup();this.table=Nu(e,r),t.observe(r,{attributes:!0,childList:!0,subtree:!0})},{editor:this.editor})}clearHighlight(){const t=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.enableHighlightStyle(),t.update(()=>{const{tableNode:e,tableElement:r}=this.$lookup(),s=Nu(e,r);Wf(t,s,null),Ge(null),t.dispatchCommand(Xr,void 0)})}enableHighlightStyle(){const t=this.editor;t.getEditorState().read(()=>{const{tableElement:e}=this.$lookup();Lr(e,t._config.theme.tableSelection),e.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1},{editor:t})}disableHighlightStyle(){const t=this.editor;t.getEditorState().read(()=>{const{tableElement:e}=this.$lookup();st(e,t._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0},{editor:t})}updateTableTableSelection(t){if(t!==null&&t.tableKey===this.tableNodeKey){const e=this.editor;this.tableSelection=t,this.isHighlightingCells=!0,this.disableHighlightStyle(),Wf(e,this.table,this.tableSelection)}else t==null?this.clearHighlight():(this.tableNodeKey=t.tableKey,this.updateTableTableSelection(t))}setShouldCheckSelection(){this.shouldCheckSelection=!0}getAndClearShouldCheckSelection(){return this.shouldCheckSelection?(this.shouldCheckSelection=!1,!0):!1}setFocusCellForSelection(t,e=!1){const r=this.editor;r.update(()=>{const{tableNode:s}=this.$lookup(),i=t.x,o=t.y;if(this.focusCell=t,this.anchorCell!==null){const l=IL(r._window);l&&l.setBaseAndExtent(this.anchorCell.elem,0,this.focusCell.elem,0)}if(!this.isHighlightingCells&&(this.anchorX!==i||this.anchorY!==o||e))this.isHighlightingCells=!0,this.disableHighlightStyle();else if(i===this.focusX&&o===this.focusY)return;if(this.focusX=i,this.focusY=o,this.isHighlightingCells){const l=Oe(t.elem);if(this.tableSelection!=null&&this.anchorCellNodeKey!=null&&Le(l)&&s.is(za(l))){const a=l.getKey();this.tableSelection=this.tableSelection.clone()||SE(),this.focusCellNodeKey=a,this.tableSelection.set(this.tableNodeKey,this.anchorCellNodeKey,this.focusCellNodeKey),Ge(this.tableSelection),r.dispatchCommand(Xr,void 0),Wf(r,this.table,this.tableSelection)}}})}setAnchorCellForSelection(t){this.isHighlightingCells=!1,this.anchorCell=t,this.anchorX=t.x,this.anchorY=t.y,this.editor.update(()=>{const e=Oe(t.elem);if(Le(e)){const r=e.getKey();this.tableSelection=this.tableSelection!=null?this.tableSelection.clone():SE(),this.anchorCellNodeKey=r}})}formatCells(t){this.editor.update(()=>{const e=G();pt(e)||Pe(!1,"Expected grid selection");const r=ii(),s=r.anchor,i=r.focus,o=e.getNodes().filter(Le),l=o[0].getFirstChild(),a=un(l)?l.getFormatFlags(t,null):null;o.forEach(u=>{s.set(u.getKey(),0,"element"),i.set(u.getKey(),u.getChildrenSize(),"element"),r.formatText(t,a)}),Ge(e),this.editor.dispatchCommand(Xr,void 0)})}clearText(){const t=this.editor;t.update(()=>{const e=me(this.tableNodeKey);if(!yt(e))throw new Error("Expected TableNode.");const r=G();pt(r)||Pe(!1,"Expected grid selection");const s=r.getNodes().filter(Le);if(s.length===this.table.columns*this.table.rows){e.selectPrevious(),e.remove(),xe().selectStart();return}s.forEach(i=>{if(Y(i)){const o=we(),l=Oo();o.append(l),i.append(o),i.getChildren().forEach(a=>{a!==o&&a.remove()})}}),Wf(t,this.table,null),Ge(null),t.dispatchCommand(Xr,void 0)})}}const hw="__lexicalTableSelection",IL=n=>Lc?(n||window).getSelection():null,D9=n=>(n.buttons&1)===1;function Ul(n,t){if(!t)return t;const e=t.nodeName==="TABLE"?t:n.getDOMSlot(t).element;return Pe(e.nodeName==="TABLE","getTableElement: Expecting table in as DOM node for TableNode, not %s",t.nodeName),e}function O9(n,t,e,r){const s=e.getRootElement();if(s===null)throw new Error("No root element.");const i=new M9(e,n.getKey()),o=e._window||window,l=Ul(n,t);P9(l,i),i.listenersToRemove.add(()=>R9(l,i));const a=()=>{const m=()=>{i.isSelecting=!1,o.removeEventListener("mouseup",m),o.removeEventListener("mousemove",y)},y=ml.debounce(b=>{setTimeout(()=>{if(!D9(b)&&i.isSelecting){i.isSelecting=!1,o.removeEventListener("mouseup",m),o.removeEventListener("mousemove",y);return}const x=cg(b.target);x!==null&&(i.anchorX!==x.x||i.anchorY!==x.y)&&(b.preventDefault(),i.setFocusCellForSelection(x))},0)},20);return{onMouseMove:y,onMouseUp:m}},u=m=>{setTimeout(()=>{if(m.button!==0||!o)return;const y=cg(m.target);y!==null&&(_i(m),i.setAnchorCellForSelection(y));const{onMouseUp:b,onMouseMove:x}=a();i.isSelecting=!0,o.addEventListener("mouseup",b,i.listenerOptions),o.addEventListener("mousemove",x,i.listenerOptions)},0)};l.addEventListener("mousedown",u,i.listenerOptions);const d=m=>{m.button===0&&e.update(()=>{const y=G(),b=m.target;pt(y)&&y.tableKey===i.tableNodeKey&&s.contains(b)&&i.clearHighlight()})};o.addEventListener("mousedown",d,i.listenerOptions),i.listenersToRemove.add(e.registerCommand(To,m=>gu(e,m,"down",n,i),As)),i.listenersToRemove.add(e.registerCommand(qs,m=>gu(e,m,"up",n,i),As)),i.listenersToRemove.add(e.registerCommand(Lg,m=>gu(e,m,"backward",n,i),As)),i.listenersToRemove.add(e.registerCommand(Ig,m=>gu(e,m,"forward",n,i),As));const f=m=>()=>{const y=G();if(!il(y,n))return!1;if(pt(y))return i.clearText(),!0;if(H(y)){const b=Se(y.anchor.getNode(),I=>Le(I));if(!Le(b))return!1;const x=y.anchor.getNode(),C=y.focus.getNode(),v=n.isParentOf(x),E=n.isParentOf(C);if(v&&!E||E&&!v)return i.clearText(),!0;const S=Se(y.anchor.getNode(),I=>Y(I)),_=S&&Se(S,I=>Y(I)&&Le(I.getParent()));if(!Y(_)||!Y(S))return!1;if(m===Tl&&_.getPreviousSibling()===null)return!0}return!1};[tc,Tl,Ys].forEach(m=>{i.listenersToRemove.add(e.registerCommand(m,f(m),xn))});const g=m=>{const y=G();if(!(pt(y)||H(y)))return!1;const b=n.isParentOf(y.anchor.getNode()),x=n.isParentOf(y.focus.getNode());if(b!==x){const C=b?"anchor":"focus",v=b?"focus":"anchor",{key:E,offset:N,type:S}=y[v];return n[y[C].isBefore(y[v])?"selectPrevious":"selectNext"]()[v].set(E,N,S),!1}return pt(y)?(m&&(m.preventDefault(),m.stopPropagation()),i.clearText(),!0):!1};i.listenersToRemove.add(e.registerCommand(Yl,g,xn)),i.listenersToRemove.add(e.registerCommand(bc,g,xn)),i.listenersToRemove.add(e.registerCommand(ud,m=>{const y=G();if(y){if(!(pt(y)||H(y)))return!1;Zy(e,Ii(m,ClipboardEvent)?m:null,up(y));const b=g(m);return H(y)?(y.removeText(),!0):b}return!1},xn)),i.listenersToRemove.add(e.registerCommand(Lt,m=>{const y=G();if(!il(y,n))return!1;if(pt(y))return i.formatCells(m),!0;if(H(y)){const b=Se(y.anchor.getNode(),x=>Le(x));if(!Le(b))return!1}return!1},xn)),i.listenersToRemove.add(e.registerCommand(go,m=>{const y=G();if(!pt(y)||!il(y,n))return!1;const b=y.anchor.getNode(),x=y.focus.getNode();if(!Le(b)||!Le(x))return!1;const[C,v,E]=ss(n,b,x),N=Math.max(v.startRow,E.startRow),S=Math.max(v.startColumn,E.startColumn),_=Math.min(v.startRow,E.startRow),I=Math.min(v.startColumn,E.startColumn);for(let L=_;L<=N;L++)for(let M=I;M<=S;M++){const R=C[L][M].cell;R.setFormat(m);const F=R.getChildren();for(let j=0;j<F.length;j++){const U=F[j];Y(U)&&!U.isInline()&&U.setFormat(m)}}return!0},xn)),i.listenersToRemove.add(e.registerCommand(yo,m=>{const y=G(),b=y==null?void 0:y.getNodes(),x=Le(b[1]),C=xe(),v=e._keyToDOMMap.size-1===(y==null?void 0:y.getNodes().length);if(x&&e.update(()=>{const E=we(),N=Oo(m);E.append(N),b.forEach(S=>{if(!yt(S))return;const _=S.getPreviousSibling(),I=S.getNextSibling();_?_.insertAfter(E,!0):I&&I.insertBefore(E).selectEnd(),S.remove()}),v&&(C.clear(),y.insertText(m))}),!il(y,n))return!1;if(pt(y))return i.clearHighlight(),!1;if(H(y)){const E=Se(y.anchor.getNode(),N=>Le(N));if(!Le(E))return!1;if(typeof m=="string"){const N=TE(e,y,n);if(N)return kE(N,n,[Oo(m)]),!0}}return!1},xn)),r&&i.listenersToRemove.add(e.registerCommand(wc,m=>{const y=G();if(!H(y)||!y.isCollapsed()||!il(y,n))return!1;const b=Yf(y.anchor.getNode());if(b===null)return!1;_i(m);const x=n.getCordsFromCellNode(b,i.table);return LL(i,n,x.x,x.y,m.shiftKey?"backward":"forward"),!0},xn)),i.listenersToRemove.add(e.registerCommand(Wo,m=>n.isSelected(),As));function p(m){const y=n.getCordsFromCellNode(m,i.table);return n.getDOMCellFromCordsOrThrow(y.x,y.y,i.table)}return i.listenersToRemove.add(e.registerCommand(YT,m=>{const{nodes:y,selection:b}=m,x=b.focus.getNode().getParent();return Le(x)?(y[0].getFirstChildOrThrow().getChildrenSize(),!0):!1},xn)),i.listenersToRemove.add(e.registerCommand(Xr,()=>{const m=G(),y=Yi();if(i.getAndClearShouldCheckSelection()&&H(y)&&H(m)&&m.isCollapsed()){const C=m.anchor.getNode(),v=n.getFirstChild(),E=Yf(C);if(E!==null&&dn(v)){const N=v.getFirstChild();if(Le(N)&&!Se(E,S=>S.is(N)))return N.selectStart(),!0}}const{hasSelectedBlock:b,selectedAllDocument:x}=hl();if(H(m)){const{anchor:C,focus:v}=m,E=C.getNode(),N=v.getNode(),S=Yf(E),_=Yf(N),I=!!(S&&n.is(za(S))),L=!!(_&&n.is(za(_))),M=I!==L,R=I&&L,F=m.isBackward();if(M){const j=m.clone();if(L){const[U]=ss(n,_,_),V=U[0][0].cell,ne=U[U.length-1].at(-1).cell;j.focus.set(F?V.getKey():ne.getKey(),F?V.getChildrenSize():ne.getChildrenSize(),"element")}else if(I){const[U]=ss(n,S,S),V=U[0][0].cell,ne=U[U.length-1].at(-1).cell;j.anchor.set(F?ne.getKey():V.getKey(),F?ne.getChildrenSize():0,"element")}Ge(j),!b&&!x&&EE(e,i)}else R&&(S.is(_)||(i.setAnchorCellForSelection(p(S)),i.setFocusCellForSelection(p(_),!0),i.isSelecting||setTimeout(()=>{const{onMouseUp:j,onMouseMove:U}=a();i.isSelecting=!0,o.addEventListener("mouseup",j),o.addEventListener("mousemove",U)},0)))}else if(m&&pt(m)&&m.is(y)&&m.tableKey===n.getKey()){const C=IL(e._window);if(C&&C.anchorNode&&C.focusNode){const v=Oe(C.focusNode),E=v&&!n.is(za(v)),N=Oe(C.anchorNode),S=N&&n.is(za(N));if(E&&S&&C.rangeCount>0){const _=g3(C,e);_&&(_.anchor.set(n.getKey(),m.isBackward()?n.getChildrenSize():0,"element"),C.removeAllRanges(),Ge(_))}}}return m&&!m.is(y)&&(pt(m)||pt(y))&&i.tableSelection&&!i.tableSelection.is(y)?(pt(m)&&m.tableKey===i.tableNodeKey?i.updateTableTableSelection(m):!pt(m)&&pt(y)&&y.tableKey===i.tableNodeKey&&i.updateTableTableSelection(null),!1):(i.hasHijackedSelectionStyles&&!n.isSelected()?B9(e,i):!i.hasHijackedSelectionStyles&&n.isSelected()&&!b&&!x&&EE(e,i),!1)},xn)),i.listenersToRemove.add(e.registerCommand(Pi,()=>{const m=G();if(!H(m)||!m.isCollapsed()||!il(m,n))return!1;const y=TE(e,m,n);return y?(kE(y,n),!0):!1},xn)),i}function R9(n,t){gw(n)===t&&delete n[hw]}function P9(n,t){Pe(gw(n)===null,"tableElement already has an attached TableObserver"),n[hw]=t}function gw(n){return n[hw]||null}function cg(n){let t=n;for(;t!=null;){const e=t.nodeName;if(e==="TD"||e==="TH"){const r=t._cell;return r===void 0?null:r}t=t.parentNode}return null}function Nu(n,t){const e=Ul(n,t),r=[],s={columns:0,domRows:r,rows:0};let i=e.querySelector("tr"),o=0,l=0;for(r.length=0;i!=null;){const a=i.nodeName;if(a==="TD"||a==="TH"){const f=i,g={elem:f,hasBackgroundColor:f.style.backgroundColor!=="",highlighted:!1,x:o,y:l};i._cell=g;let p=r[l];p===void 0&&(p=r[l]=[]),p[o]=g}else{const f=i.firstChild;if(f!=null){i=f;continue}}const u=i.nextSibling;if(u!=null){o++,i=u;continue}const d=i.parentNode;if(d!=null){const f=d.nextSibling;if(f==null)break;l++,o=0,i=f}}return s.columns=o+1,s.rows=l+1,s}function Wf(n,t,e){const r=new Set(e?e.getNodes():[]);pw(t,(s,i)=>{const o=s.elem;r.has(i)?(s.highlighted=!0,ML(n,s)):(s.highlighted=!1,DL(n,s),o.getAttribute("style")||o.removeAttribute("style"))})}function pw(n,t){const{domRows:e}=n;for(let r=0;r<e.length;r++){const s=e[r];if(s)for(let i=0;i<s.length;i++){const o=s[i];if(!o)continue;const l=Oe(o.elem);l!==null&&t(o,l,{x:i,y:r})}}}function EE(n,t){t.disableHighlightStyle(),pw(t.table,e=>{e.highlighted=!0,ML(n,e)})}function B9(n,t){t.enableHighlightStyle(),pw(t.table,e=>{const r=e.elem;e.highlighted=!1,DL(n,e),r.getAttribute("style")||r.removeAttribute("style")})}const LL=(n,t,e,r,s)=>{const i=s==="forward";switch(s){case"backward":case"forward":return e!==(i?n.table.columns-1:0)?Hf(t.getCellNodeFromCordsOrThrow(e+(i?1:-1),r,n.table),i):r!==(i?n.table.rows-1:0)?Hf(t.getCellNodeFromCordsOrThrow(i?0:n.table.columns-1,r+(i?1:-1),n.table),i):i?t.selectNext():t.selectPrevious(),!0;case"up":return r!==0?Hf(t.getCellNodeFromCordsOrThrow(e,r-1,n.table),!1):t.selectPrevious(),!0;case"down":return r!==n.table.rows-1?Hf(t.getCellNodeFromCordsOrThrow(e,r+1,n.table),!0):t.selectNext(),!0;default:return!1}},j9=(n,t,e,r,s)=>{const i=s==="forward";switch(s){case"backward":case"forward":return e!==(i?n.table.columns-1:0)&&n.setFocusCellForSelection(t.getDOMCellFromCordsOrThrow(e+(i?1:-1),r,n.table)),!0;case"up":return r!==0?(n.setFocusCellForSelection(t.getDOMCellFromCordsOrThrow(e,r-1,n.table)),!0):!1;case"down":return r!==n.table.rows-1?(n.setFocusCellForSelection(t.getDOMCellFromCordsOrThrow(e,r+1,n.table)),!0):!1;default:return!1}};function il(n,t){if(H(n)||pt(n)){const e=t.isParentOf(n.anchor.getNode()),r=t.isParentOf(n.focus.getNode());return e&&r}return!1}function Hf(n,t){t?n.selectStart():n.selectEnd()}const LA="172,206,247";function ML(n,t){const e=t.elem,r=Oe(e);Pe(Le(r),"Expected to find LexicalNode from Table Cell DOMNode"),r.getBackgroundColor()===null?e.style.setProperty("background-color",`rgb(${LA})`):e.style.setProperty("background-image",`linear-gradient(to right, rgba(${LA},0.85), rgba(${LA},0.85))`),e.style.setProperty("caret-color","transparent")}function DL(n,t){const e=t.elem,r=Oe(e);Pe(Le(r),"Expected to find LexicalNode from Table Cell DOMNode"),r.getBackgroundColor()===null&&e.style.removeProperty("background-color"),e.style.removeProperty("background-image"),e.style.removeProperty("caret-color")}function Yf(n){const t=Se(n,Le);return Le(t)?t:null}function za(n){const t=Se(n,yt);return yt(t)?t:null}function gu(n,t,e,r,s){if((e==="up"||e==="down")&&F9(n))return!1;const i=G();if(!il(i,r)){if(H(i)){if(i.isCollapsed()&&e==="backward"){const o=i.anchor.type,l=i.anchor.offset;if(o!=="element"&&!(o==="text"&&l===0))return!1;const a=i.anchor.getNode();if(!a)return!1;const u=Se(a,f=>Y(f)&&!f.isInline());if(!u)return!1;const d=u.getPreviousSibling();return!d||!yt(d)?!1:(_i(t),d.selectEnd(),!0)}else if(t.shiftKey&&(e==="up"||e==="down")){const o=i.focus.getNode();if(!i.isCollapsed()&&(e==="up"&&!i.isBackward()||e==="down"&&i.isBackward())){let a=Se(o,p=>yt(p));if(Le(a)&&(a=Se(a,yt)),a!==r||!a)return!1;const u=e==="down"?a.getNextSibling():a.getPreviousSibling();if(!u)return!1;let d=0;e==="up"&&Y(u)&&(d=u.getChildrenSize());let f=u;if(e==="up"&&Y(u)){const p=u.getLastChild();f=p||u,d=Hn(f)?f.getTextContentSize():0}const g=i.clone();return g.focus.set(f.getKey(),d,Hn(f)?"text":"element"),Ge(g),_i(t),!0}else if($n(o)){const a=e==="up"?i.getNodes()[i.getNodes().length-1]:i.getNodes()[0];if(a){const u=Se(a,Le);if(u&&r.isParentOf(u)){const d=r.getFirstDescendant(),f=r.getLastDescendant();if(!d||!f)return!1;const[g]=Wn(d),[p]=Wn(f),m=r.getCordsFromCellNode(g,s.table),y=r.getCordsFromCellNode(p,s.table),b=r.getDOMCellFromCordsOrThrow(m.x,m.y,s.table),x=r.getDOMCellFromCordsOrThrow(y.x,y.y,s.table);return s.setAnchorCellForSelection(b),s.setFocusCellForSelection(x,!0),!0}}return!1}else{let a=Se(o,d=>Y(d)&&!d.isInline());if(Le(a)&&(a=Se(a,yt)),!a)return!1;const u=e==="down"?a.getNextSibling():a.getPreviousSibling();if(yt(u)&&s.tableNodeKey===u.getKey()){const d=u.getFirstDescendant(),f=u.getLastDescendant();if(!d||!f)return!1;const[g]=Wn(d),[p]=Wn(f),m=i.clone();return m.focus.set((e==="up"?g:p).getKey(),e==="up"?0:p.getChildrenSize(),"element"),_i(t),Ge(m),!0}}}}return e==="down"&&OL(n)&&s.setShouldCheckSelection(),!1}if(H(i)&&i.isCollapsed()){const{anchor:o,focus:l}=i,a=Se(o.getNode(),Le),u=Se(l.getNode(),Le);if(!Le(a)||!a.is(u))return!1;const d=za(a);if(d!==r&&d!=null){const C=Ul(d,n.getElementByKey(d.getKey()));if(C!=null)return s.table=Nu(d,C),gu(n,t,e,d,s)}if(e==="backward"||e==="forward"){const C=o.type,v=o.offset,E=o.getNode();if(!E)return!1;const N=i.getNodes();return N.length===1&&tt(N[0])?!1:z9(C,v,E,e)?W9(t,E,r,e):!1}const f=n.getElementByKey(a.__key),g=n.getElementByKey(o.key);if(g==null||f==null)return!1;let p;if(o.type==="element")p=g.getBoundingClientRect();else{const C=window.getSelection();if(C===null||C.rangeCount===0)return!1;p=C.getRangeAt(0).getBoundingClientRect()}const m=e==="up"?a.getFirstChild():a.getLastChild();if(m==null)return!1;const y=n.getElementByKey(m.__key);if(y==null)return!1;const b=y.getBoundingClientRect();if(e==="up"?b.top>p.top-p.height:p.bottom+p.height>b.bottom){_i(t);const C=r.getCordsFromCellNode(a,s.table);if(t.shiftKey){const v=r.getDOMCellFromCordsOrThrow(C.x,C.y,s.table);s.setAnchorCellForSelection(v),s.setFocusCellForSelection(v,!0)}else return LL(s,r,C.x,C.y,e);return!0}}else if(pt(i)){const{anchor:o,focus:l}=i,a=Se(o.getNode(),Le),u=Se(l.getNode(),Le),[d]=i.getNodes();Pe(yt(d),"$handleArrowKey: TableSelection.getNodes()[0] expected to be TableNode");const f=Ul(d,n.getElementByKey(d.getKey()));if(!Le(a)||!Le(u)||!yt(d)||f==null)return!1;s.updateTableTableSelection(i);const g=Nu(d,f),p=r.getCordsFromCellNode(a,g),m=r.getDOMCellFromCordsOrThrow(p.x,p.y,g);if(s.setAnchorCellForSelection(m),_i(t),t.shiftKey){const y=r.getCordsFromCellNode(u,g);return j9(s,d,y.x,y.y,e)}else u.selectEnd();return!0}return!1}function F9(n){const t=n.getRootElement();return t?t.hasAttribute("aria-controls")&&t.getAttribute("aria-controls")==="typeahead-menu":!1}function z9(n,t,e,r){return U9(n,e,r)||K9(n,t,e,r)}function U9(n,t,e){return n==="element"&&(e==="backward"?t.getPreviousSibling()===null:t.getNextSibling()===null)}function K9(n,t,e,r){const s=Se(e,o=>Y(o)&&!o.isInline());if(!s)return!1;const i=r==="backward"?t===0:t===e.getTextContentSize();return n==="text"&&i&&(r==="backward"?s.getPreviousSibling()===null:s.getNextSibling()===null)}function W9(n,t,e,r){const s=Se(t,Le);if(!Le(s))return!1;const[i,o]=ss(e,s,s);if(!H9(i,o,r))return!1;const l=Y9(t,r,e);return!l||yt(l)?!1:(_i(n),r==="backward"?l.selectEnd():l.selectStart(),!0)}function H9(n,t,e){const r=n[0][0],s=n[n.length-1][n[0].length-1],{startColumn:i,startRow:o}=t;return e==="backward"?i===r.startColumn&&o===r.startRow:i===s.startColumn&&o===s.startRow}function Y9(n,t,e){const r=Se(n,i=>Y(i)&&!i.isInline());if(!r)return;const s=t==="backward"?r.getPreviousSibling():r.getNextSibling();return s&&yt(s)?s:t==="backward"?e.getPreviousSibling():e.getNextSibling()}function kE(n,t,e){const r=we();n==="first"?t.insertBefore(r):t.insertAfter(r),r.append(...e||[]),r.selectEnd()}function TE(n,t,e){const r=e.getParent();if(!r)return;const s=window.getSelection();if(!s)return;const i=s.anchorNode,o=n.getElementByKey(r.getKey()),l=Ul(e,n.getElementByKey(e.getKey()));if(!i||!o||!l||!o.contains(i)||l.contains(i))return;const a=Se(t.anchor.getNode(),C=>Le(C));if(!a)return;const u=Se(a,C=>yt(C));if(!yt(u)||!u.is(e))return;const[d,f]=ss(e,a,a),g=d[0][0],p=d[d.length-1][d[0].length-1],{startRow:m,startColumn:y}=f,b=m===g.startRow&&y===g.startColumn,x=m===p.startRow&&y===p.startColumn;return b?"first":x?"last":void 0}function _E(n,t,e,r){const s=n.querySelector("colgroup");if(!s)return;const i=[];for(let o=0;o<e;o++){const l=document.createElement("col"),a=r&&r[o];a&&(l.style.width=`${a}px`),i.push(l)}s.replaceChildren(...i)}function NE(n,t,e){e?(st(n,t.theme.tableRowStriping),n.setAttribute("data-lexical-row-striping","true")):(Lr(n,t.theme.tableRowStriping),n.removeAttribute("data-lexical-row-striping"))}const $y=new WeakSet;function OL(n=Xl()){return $y.has(n)}function G9(n,t){t?(n._config.theme.tableScrollableWrapper||console.warn("TableNode: hasHorizontalScroll is active but theme.tableScrollableWrapper is not defined."),$y.add(n)):$y.delete(n)}class Ss extends gt{constructor(e){super(e);z(this,"__rowStriping");z(this,"__colWidths");this.__rowStriping=!1}static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){const r=this.getWritable();return r.__colWidths=e,r}static clone(e){return new Ss(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping}static importDOM(){return{table:e=>({conversion:Z9,priority:1})}}static importJSON(e){const r=mw();return r.__rowStriping=e.rowStriping||!1,r.__colWidths=e.colWidths,r}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),rowStriping:this.__rowStriping?this.__rowStriping:void 0,type:"table",version:1}}getDOMSlot(e){const r=e.nodeName!=="TABLE"&&e.querySelector("table")||e;return Pe(r.nodeName==="TABLE","TableNode.getDOMSlot: createDOM() did not return a table"),super.getDOMSlot(r).withAfter(r.querySelector("colgroup"))}createDOM(e,r){const s=document.createElement("table"),i=document.createElement("colgroup");if(s.appendChild(i),_E(s,e,this.getColumnCount(),this.getColWidths()),I_(i),st(s,e.theme.table),this.__rowStriping&&NE(s,e,!0),OL(r)){const o=document.createElement("div"),l=e.theme.tableScrollableWrapper;return l?st(o,l):o.style.cssText="overflow-x: auto;",o.appendChild(s),o}return s}updateDOM(e,r,s){const o=this.getDOMSlot(r).element;return e.__rowStriping!==this.__rowStriping&&NE(r,s,this.__rowStriping),_E(o,s,this.getColumnCount(),this.getColWidths()),e!==this}exportDOM(e){return{...super.exportDOM(e),after:r=>{if(!r||!Et(r))return null;const s=r.firstChild;if(!(s instanceof HTMLTableElement))return null;const i=r.querySelectorAll(":scope > tr");if(i.length>0){const o=document.createElement("tbody");o.append(...i),s.append(o),r.append(s)}return r}}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,r){const{rows:s,domRows:i}=r;for(let o=0;o<s;o++){const l=i[o];if(l==null)continue;const a=l.findIndex(u=>{if(!u)return;const{elem:d}=u;return Oe(d)===e});if(a!==-1)return{x:a,y:o}}throw new Error("Cell not found in table.")}getDOMCellFromCords(e,r,s){const{domRows:i}=s,o=i[r];if(o==null)return null;const l=e<o.length?e:o.length-1,a=o[l];return a??null}getDOMCellFromCordsOrThrow(e,r,s){const i=this.getDOMCellFromCords(e,r,s);if(!i)throw new Error("Cell not found at cords.");return i}getCellNodeFromCords(e,r,s){const i=this.getDOMCellFromCords(e,r,s);if(i==null)return null;const o=Oe(i.elem);return Le(o)?o:null}getCellNodeFromCordsOrThrow(e,r,s){const i=this.getCellNodeFromCords(e,r,s);if(!i)throw new Error("Node at cords not TableCellNode.");return i}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(e){this.getWritable().__rowStriping=e}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){const e=this.getFirstChild();if(!e)return 0;let r=0;return e.getChildren().forEach(s=>{Le(s)&&(r+=s.getColSpan())}),r}}function Z9(n){const t=mw();n.hasAttribute("data-lexical-row-striping")&&t.setRowStriping(!0);const e=n.querySelector(":scope > colgroup");if(e){let r=[];for(const s of e.querySelectorAll(":scope > col")){const i=s.style.width;if(!i||!lg.test(i)){r=void 0;break}r.push(parseFloat(i))}r&&t.setColWidths(r)}return{node:t}}function mw(){return Mt(new Ss)}function yt(n){return n instanceof Ss}function J9(n){var s;const t=n.getAttribute("open");return((s=n.firstElementChild)==null?void 0:s.tagName)==="SPAN"?{node:null}:{node:Aw(t!==null)}}class Kl extends gt{constructor(e,r){super(r);z(this,"__open");this.__open=e}static getType(){return"collapsible-container"}static clone(e){return new Kl(e.__open,e.__key)}createDOM(e,r){let s;const i=document.createElement("details");return i.open=this.__open,i.addEventListener("toggle",()=>{r.getEditorState().read(()=>this.getOpen())!==i.open&&r.update(()=>this.toggleOpen())}),s=i,s.classList.add("Collapsible__container"),s}updateDOM(e,r){const s=this.__open;return e.__open!==s&&(r.open=this.__open),!1}static importDOM(){return{details:e=>({conversion:J9,priority:1})}}static importJSON(e){return Aw(e.open)}exportDOM(){const e=document.createElement("details");return e.classList.add("Collapsible__container"),this.__open&&e.setAttribute("open",""),{element:e}}exportJSON(){return{...super.exportJSON(),open:this.__open,type:"collapsible-container",version:1}}setOpen(e){const r=this.getWritable();r.__open=e}getOpen(){return this.getLatest().__open}toggleOpen(){this.setOpen(!this.getOpen())}}function Aw(n){return new Kl(n)}function Dr(n){return n instanceof Kl}function V9(n){return{node:yw()}}class Ui extends gt{static getType(){return"collapsible-content"}static clone(t){return new Ui(t.__key)}createDOM(t,e){const r=document.createElement("div");return r.classList.add("Collapsible__content"),r}updateDOM(t,e){return!1}static importDOM(){return{div:t=>t.hasAttribute("data-lexical-collapsible-content")?{conversion:V9,priority:2}:null}}exportDOM(){const t=document.createElement("div");return t.classList.add("Collapsible__content"),t.setAttribute("data-lexical-collapsible-content","true"),{element:t}}static importJSON(t){return yw()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"collapsible-content",version:1}}}function yw(){return new Ui}function rd(n){return n instanceof Ui}const Q9=Lc&&"documentMode"in document?document.documentMode:null;var ST;const X9=(ST=navigator.userAgentData)==null?void 0:ST.platform,eb=Lc&&/macOS|iPod|iPhone|iPad/.test(X9);Lc&&"InputEvent"in window&&!Q9&&"getTargetRanges"in new window.InputEvent("input");const q9=Lc&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent);function $9(n){return{node:bw()}}class Ro extends gt{static getType(){return"collapsible-title"}static clone(t){return new Ro(t.__key)}createDOM(t,e){const r=document.createElement("summary");return r.classList.add("Collapsible__title"),q9&&(r.style.cursor="pointer"),r}updateDOM(t,e){return!1}static importDOM(){return{summary:t=>({conversion:$9,priority:1})}}static importJSON(t){return bw()}exportJSON(){return{...super.exportJSON(),type:"collapsible-title",version:1}}collapseAtStart(t){return this.getParentOrThrow().insertBefore(this),!0}insertNewAfter(t,e=!0){const r=this.getParentOrThrow();if(!Dr(r))throw new Error("CollapsibleTitleNode expects to be child of CollapsibleContainerNode");if(r.getOpen()){const s=this.getNextSibling();if(!rd(s))throw new Error("CollapsibleTitleNode expects to have CollapsibleContentNode sibling");const i=s.getFirstChild();if(Y(i))return i;{const o=we();return s.append(o),o}}else{const s=we();return r.insertAfter(s,e),s}}}function bw(){return new Ro}function xl(n){return n instanceof Ro}const RL=k.createContext([n=>()=>{},n=>{}]),eW=({children:n})=>{const t=k.useMemo(()=>{let e=null;const r=new Set;return[s=>(s(e),r.add(s),()=>{r.delete(s)}),s=>{e=s;for(const i of r)i(s)}]},[]);return A.jsx(RL.Provider,{value:t,children:n})},tW=()=>{const[n,t]=k.useContext(RL),[e,r]=k.useState(null);return k.useEffect(()=>n(s=>{r(s)}),[n]),[e,t]},nW=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);class yp extends oi{constructor(e,r){super(r);z(this,"__uuid");this.__uuid=e}static clone(e){return new yp(e.__uuid,e.__key)}static getType(){return"autocomplete"}static importJSON(e){return rW(e.uuid)}exportJSON(){return{...super.exportJSON(),type:"autocomplete",uuid:this.__uuid,version:1}}updateDOM(){return!1}createDOM(){return document.createElement("span")}decorate(){return this.__uuid!==nW?null:A.jsx(sW,{})}}function rW(n){return new yp(n)}function sW(){const[n]=tW(),t=window.navigator.userAgentData,e=t!==void 0?t.mobile:window.innerWidth<=800&&window.innerHeight<=600;return A.jsxs("span",{style:{color:"#ccc"},spellCheck:"false",children:[n," ",e?"(SWIPE ⮕)":"(TAB)"]})}const tb={...Do};function iW(){return{node:Nd()}}class sa extends gt{static getType(){return"callout"}static clone(t){return new sa(t.__key)}constructor(t){super(t)}createDOM(t){const e=document.createElement("div");return typeof t.theme.callout=="string"&&st(e,tb.callout),e}updateDOM(){return!1}isShadowRoot(){return!0}static importDOM(){return{div:t=>t.className!==tb.callout?null:{conversion:iW,priority:2}}}static importJSON(){return Nd()}exportJSON(){return{...super.exportJSON(),type:"callout",version:1}}}function Nd(){return new sa}function Dc(n){return n instanceof sa}const ci={transition:"fade",duration:400},oW=({editor:n,keyNode:t,emoji:e})=>{const{t:r}=it.useTranslation(),s=k.useRef(null);return k.useEffect(()=>{n.update(()=>{var l,a;const i=me(t),o=((a=(l=s.current)==null?void 0:l.firstChild)==null?void 0:a.outerHTML)||"";i instanceof Po&&i.setRef(o)})},[e]),A.jsx("div",{ref:s,children:A.jsx(Ct.EmojiPicker,{value:e,onChange:i=>{n.update(()=>{var l;const o=me(t);o instanceof Po&&((l=o.getNextSibling())==null||l.selectStart(),o.setEmoji(i))})},locales:{emojis:r("editor.emoji.emojis"),icons:r("editor.emoji.icons"),search:r("editor.emoji.search"),searchResults:r("editor.emoji.searchResults"),searchNoResults:r("editor.emoji.searchNoResults"),remove:r("editor.emoji.remove"),emojiCategory:{frequent:r("editor.emoji.emojiCategory.frequent"),people:r("editor.emoji.emojiCategory.people"),nature:r("editor.emoji.emojiCategory.nature"),foods:r("editor.emoji.emojiCategory.foods"),activity:r("editor.emoji.emojiCategory.activity"),places:r("editor.emoji.emojiCategory.places"),objects:r("editor.emoji.emojiCategory.objects"),symbols:r("editor.emoji.emojiCategory.symbols"),flags:r("editor.emoji.emojiCategory.flags")}},popoverProps:{classNames:{dropdown:"emoji-picker-callout"},withinPortal:!0,transitionProps:ci},children:A.jsx(O.ActionIcon,{size:28,variant:"subtle",children:A.jsx(Ct.ProjectIcon,{size:27,fz:27,icon:e,fallback:A.jsx($.IconFile,{size:"1em"})})})})})};function lW(n){const t=n.getAttribute("data-emoji");return{node:Id(t||"","")}}const IE=new Map;class Po extends Vi{constructor(e,r,s,i){super(s,i);z(this,"__emojiCode");z(this,"__refElem");this.__emojiCode=e||"",this.__refElem=r||""}static getType(){return"callout-image"}static clone(e){return new Po(e.__emojiCode,e.__refElem,e.__format,e.__key)}static importJSON(e){return Id(e.emojiCode)}exportJSON(){return{...super.exportJSON(),type:"callout-image",version:1,emojiCode:this.__emojiCode,refElem:""}}static importDOM(){return{div:e=>e.classList.contains("callout-image")?{conversion:lW,priority:2}:null}}createDOM(){const e=document.createElement("div");return e.className="callout-image",e}updateDOM(){return!1}exportDOM(){const e=document.createElement("div"),r=IE.get(this.__key)||"";return e.innerHTML=r,e.classList.add("callout-image"),e.setAttribute("data-emoji",this.__emojiCode),{element:e}}setEmoji(e){const r=this.getWritable();r.__emojiCode=e}setRef(e){IE.set(this.__key,e)}decorate(e,r){return A.jsx(oW,{emoji:this.__emojiCode,editor:e,keyNode:this.__key})}}function Id(n,t){return new Po(n||"",t||"")}function aW(n){const t=n.getAttribute("data-type"),e=n.style.backgroundColor;return{node:Ld(e,t||"default")}}class Bo extends gt{constructor(e,r,s){super(s);z(this,"__backgroundColor");z(this,"__calloutType");this.__backgroundColor=e===void 0?"#f3f3f4":e,this.__calloutType=r===void 0?"😊":r}static getType(){return"callout-wrapper"}static clone(e){return new Bo(e.__backgroundColor,e.__calloutType,e.__key)}createDOM(e){const r=document.createElement("div");return typeof e.theme.callout=="string"&&st(r,e.theme.calloutWrapper),r.setAttribute("data-type",this.__calloutType),r.style.backgroundColor=this.__backgroundColor,r}updateDOM(e,r){return e&&(r.setAttribute("data-type",this.__calloutType),r.style.backgroundColor=this.__backgroundColor),!1}static importDOM(){return{div:e=>e.className!==tb.calloutWrapper?null:{conversion:aW,priority:2}}}static importJSON(e){return Ld(e.backgroundColor,e.calloutType)}setBackgroundColor(e){const r=this.getWritable();r.__backgroundColor=e}setType(e="default"){const r=this.getWritable();r.__calloutType=e}exportJSON(){return{...super.exportJSON(),type:"callout-wrapper",backgroundColor:this.__backgroundColor,calloutType:this.__calloutType,version:1}}}function Ld(n="#f3f3f4",t="default"){return new Bo(n,t)}function Ki(n){return n instanceof Bo}const LE={bullet:$.IconList,check:$.IconListCheck,"check-mark":$.IconCheck,code:$.IconCode,h1:$.IconH1,h2:$.IconH2,h3:$.IconH3,number:$.IconListNumbers,paragraph:$.IconIndentIncrease,quote:$.IconQuote,fontFamily:$.IconLetterT,undo:$.IconArrowBackUp,redo:$.IconArrowForwardUp,bold:$.IconBold,italic:$.IconItalic,underline:$.IconUnderline,link:$.IconLink,"color-picker":$.IconColorPicker,background:$.IconBucketDroplet,photo:$.IconPhoto,"photo-check":$.IconPhotoCheck,"align-left":$.IconAlignLeft,"align-end":$.IconAlignLeft,"align-start":$.IconAlignLeft,"align-right":$.IconAlignRight,"align-center":$.IconAlignCenter,"align-justify":$.IconAlignJustified,"horizontal-rule":$.IconFlipHorizontal,strikethrough:$.IconStrikethrough,subscript:$.IconSubscript,superscript:$.IconSuperscript,minus:$.IconMinus,plus:$.IconPlus,"chevron-down":$.IconChevronDown,"chevron-right":$.IconChevronRight,grip:$.IconGripVertical,"circle-check":$.IconCircleCheck,"circle-x":$.IconCircleX,pencil:$.IconPencil,trash:$.IconTrash,table:$.IconTable,"caret-right":$.IconCaretRight,grid:$.IconColumns3,"dots-vertical":$.IconDotsVertical,copy:$.IconCopy,clipboard:$.IconClipboard,cut:$.IconCut,"arrow-bar-to-up":$.IconArrowBarToUp,"arrow-bar-to-down":$.IconArrowBarToDown,"arrow-bar-to-left":$.IconArrowBarToLeft,"arrow-bar-to-right":$.IconArrowBarToRight,"column-insert-left":$.IconColumnInsertLeft,"column-insert-right":$.IconColumnInsertRight,"row-insert-top":$.IconRowInsertTop,"row-insert-bottom":$.IconRowInsertBottom,"container-off":$.IconContainerOff,"table-off":$.IconTableOff,"layers-union":$.IconLayersUnion,"layers-substract":$.IconLayersSubtract,"сlear-format":$.IconDropletOff,form:$.IconCheckupList,youtube:$.IconBrandYoutube,emoji:$.IconMoodSmile,file:$.IconFile,success:$.IconCheck,warning:$.IconAlertTriangle,alert:$.IconExclamationCircle,defaultOff:$.IconBaseline,embed:$.IconCodeCircle,at:$.IconAt,paperclip:$.IconPaperclip,close:$.IconX,api:$.IconApi,music:$.IconMusic,message:$.IconMessage,reply:$.IconArrowBackUp,filter:$.IconFilter,messages:$.IconMessages,"shield-check":$.IconShieldCheckFilled,reOpen:$.IconReload,send:$.IconSend,expandSidebar:$.IconLayoutSidebarLeftExpand,palette:$.IconPalette},Ce=({name:n,iconStyle:t,...e})=>{const r=LE[n]||LE.bullet;return A.jsx(O.Flex,{gap:0,justify:"center",align:"center",...e,children:A.jsx(r,{size:18,stroke:2,style:t,...e})})},Oc=({icon:n,title:t,pointerEvents:e="auto",isLoading:r,progress:s,nodeKey:i,onAfterCancel:o,...l})=>{const[a]=_e(),{t:u}=it.useTranslation(),{fetchUploadMedia:d}=k.useContext(kt),f=s?((d==null?void 0:d.length)??0)>=5:!1,g=()=>{a.update(()=>{const m=me(i);m&&m.remove()})},p=m=>{m.stopPropagation(),o==null||o()};return A.jsxs(O.UnstyledButton,{className:"image-node-picker-button",styles:{root:{width:"100%",display:"flex",alignItems:"center",gap:"var(--mantine-spacing-sm)",flexDirection:"column",padding:"var(--mantine-spacing-md)",background:"var(--mantine-primary-color-light)",color:"var(--mantine-color-text)",borderRadius:"var(--mantine-radius-default)",opacity:.75,pointerEvents:r?"none":e,boxSizing:"border-box"}},...l,children:[A.jsxs("div",{className:"empty-node-button__content",children:[r&&!f&&A.jsx(O.Loader,{size:"xs",mb:2,mr:4,color:"gray"}),!r&&A.jsx(Ce,{name:n}),t,r&&o&&A.jsx(O.Text,{component:"span",onClick:p,variant:"link",style:{marginLeft:"auto",cursor:"pointer",pointerEvents:"auto"},children:u("editor.cancel")}),i&&!r&&A.jsx(Ce,{style:{pointerEvents:"auto"},className:"delete-icon",name:"close",size:22,onClick:g})]}),r&&typeof s=="number"&&f&&A.jsx(O.Progress,{w:"100%",value:s,animated:!0,transitionDuration:200})]})},cW="_title_81iwv_1",uW="_icon_81iwv_11",dW="_link_81iwv_20",MA={title:cW,icon:uW,link:dW},fW=({page:n})=>{const{t}=it.useTranslation();return A.jsxs("div",{className:MA.link,onClick:n.onClick,children:[A.jsx("div",{className:MA.icon,children:n.icon?A.jsx(Ct.ProjectIcon,{size:16,fz:16,icon:n.icon,fallback:A.jsx($.IconFile,{size:"1em"})}):A.jsx(Ct.EntityIcon,{item:{...n,type:"PAGE"}})}),A.jsx(O.Tooltip,{label:n.title,disabled:!n.title,openDelay:400,children:A.jsx(O.Text,{truncate:!0,className:MA.title,"data-empty":!n.title,children:n.title||t("editor.noTitle")})})]})},hW=k.memo,gW=hW(fW),pW=({page:n})=>A.jsx("div",{className:"docs-item",children:A.jsx(gW,{page:n})});function mW({nodeKey:n}){const{pages:t,childPagesLoading:e}=k.useContext(kt),{t:r}=it.useTranslation();return t.length===0?A.jsx("p",{style:{margin:0},children:A.jsx(Oc,{title:r(e?"editor.menu.other.documents.loading":"editor.menu.other.documents.empty"),icon:"file",pointerEvents:"none",nodeKey:n,isLoading:e})}):A.jsx("div",{className:"docs-container",children:t.map(s=>A.jsx(pW,{page:s},s.id))})}function AW(n){return n.getAttribute("data-child-docs")?{node:PL()}:null}class uc extends Vi{static getType(){return"childDocs"}static clone(t){return new uc(t.__format,t.__key)}constructor(t,e){super(t,e)}createDOM(){const t=document.createElement("div");return t.className="editor-child-docs",t}updateDOM(){return!1}decorate(t,e){return A.jsx(mW,{nodeKey:this.__key})}static importJSON(t){const{format:e,key:r}=t;return new uc(e,r)}exportJSON(){return{type:"childDocs",format:this.__format,key:this.__key}}exportDOM(){const t=document.createElement("div");return t.setAttribute("data-child-docs","true"),{element:t}}static importDOM(){return{div:t=>t.getAttribute("data-child-docs")?{conversion:AW,priority:2}:null}}}function PL(){return new uc(void 0)}const yW=n=>{if(n==="left")return["n-resize","s-resize","e-resize","se-resize","ne-resize"];if(n==="center")return["sw-resize","nw-resize","w-resize","n-resize","s-resize","e-resize","se-resize","ne-resize"];if(n==="right")return["sw-resize","nw-resize","w-resize","n-resize","s-resize"]},Oi=be(),nb=be(),ww=be(),rb=be(),Cw=be(),BL=be(),jL=be(),FL=be(),sb=(()=>{var t;const n=(t=window.navigator)==null?void 0:t.userAgentData;return n!==void 0?n.mobile:window.innerWidth<=800&&window.innerHeight<=600})(),bW={center:-8,right:2,left:-18},wW=(n,t,e,r)=>{const i=n.width/2,o=n.height/2,l=r==null?void 0:r.classList[1],a=bW[l];switch(t){case"nw-resize":return{x:0,y:0};case"ne-resize":return{x:n.width-16,y:0};case"sw-resize":return{x:0,y:n.height-16};case"se-resize":return{x:n.width-16,y:n.height-16};case"n-resize":return{x:i+a,y:0};case"s-resize":return{x:i+a,y:n.height-16};case"w-resize":return{x:0,y:o-8};case"e-resize":return{x:n.width-16,y:o-(e?17:8)}}},CW=(n,t,e,r=["nw-resize","ne-resize","sw-resize","se-resize","n-resize","s-resize","w-resize","e-resize"])=>{const i=e<=32,o=e>=n.height-32,l=t<=32,a=t>=n.width-32;return i&&l?r.includes("nw-resize")?"nw-resize":"default":i&&a?r.includes("ne-resize")?"ne-resize":"default":o&&l?r.includes("sw-resize")?"sw-resize":"default":o&&a?r.includes("se-resize")?"se-resize":"default":i?r.includes("n-resize")?"n-resize":"default":o?r.includes("s-resize")?"s-resize":"default":l?r.includes("w-resize")?"w-resize":"default":a&&r.includes("e-resize")?"e-resize":"default"},Gf=32,Zf=(n,t)=>n&&typeof n=="number"?Math.min(n/t*100,95.5):95.5;function xW(n){const e=100-4e3/n;return{minResizePercent:Math.max(5,9792/n),maxWidthPercent:e}}const xw=({editor:n,width:t,height:e,initialHeight:r,initialWidth:s,children:i,onResizeStart:o,isIcon:l,onResizeEnd:a,alignment:u,isEmbed:d,type:f,disableInteractions:g=!1})=>{const[p,m]=k.useState({x:-1e3,y:-1e3}),[y,b]=k.useState(30),[x,C]=k.useState("default"),[v,E]=k.useState(!1),{imperativeHandleRef:N}=k.useContext(kt),[S,_]=k.useState(null),I=k.useMemo(()=>yW(u)||["e-resize"],[u]),L=I.length===1&&I[0]==="e-resize",M=k.useRef(null),R=k.useRef(null),F=k.useRef({rootHeight:0,rootWidth:0,ratio:1,currentWidth:0,currentWidthPercent:0,currentHeight:0,currentHeightPercent:0,startWidth:0,startWidthPercent:0,startHeight:0,startHeightPercent:0,startX:0,startY:0,direction:"x",isResizing:!1,isTop:!1,isBottom:!1,isLeft:!1,isRight:!1}),j=(W,J=95.5)=>{var le;const te=(le=n._window)==null?void 0:le.innerWidth;if(te){let ce=100;d&&(ce=250);const de=ce/te*100;return W<de?de:W>J?J:W}else return W<20?20:W>100?100:W},U=(W,J)=>{const te=Math.min(W,J);return 15+(Math.max(200,Math.min(800,te))-100)/500*15},V=(W,J,te)=>{if(C("default"),!v)return;let le=x;le=CW(W,J,te,I),F.current.isResizing&&(le=x),C(le),b(y),m(ce=>wW(W,le,d||!1,M.current)||ce)},ne=W=>{var ce;if(sb)return;W.preventDefault();const J=(ce=M.current)==null?void 0:ce.getBoundingClientRect();if(!J)return;const te=W.clientX-J.left,le=W.clientY-J.top;F.current.isResizing||V(J,te,le)},ae=(W,J=12,te=95.5,le=F.current.rootWidth)=>{const ce=M.current,de=F.current;if(!ce||W.button===2||!(de!=null&&de.isResizing))return;const Ae=ce.getBoundingClientRect(),ke=W.clientX-Ae.left,ye=W.clientY-Ae.top;V(Ae,ke,ye);const Ee=.17,Ye=u==="right",ft=u==="center",Ke=de.isLeft,mt=de.isTop,At=de.isBottom,Re=de.direction==="y",Me=de.isRight,lt=Math.floor(Ye?Ae.right-W.clientX-(Ae.right-de.startX):W.clientX-de.startX),Jt=Math.floor(W.clientY-de.startY);let Dt=0;Ke||Me?Dt=lt/le*100:(mt||At||ft)&&(Dt=Jt*Ee),(Ke||mt)&&(!Ye||Re&&!Ke)&&(!At||ft)&&(Dt=-Dt),(mt&&Me||At&&Me)&&(Dt=lt/le*100),Dt=Math.max(-100,Math.min(100,Dt));const hr=de.startWidthPercent+Dt,Be=de.startHeightPercent+Dt;de.currentWidthPercent=j(Math.max(J,hr),te),de.currentHeightPercent=j(Math.max(J,Be),te),ce.style.width=`${de.currentWidthPercent}%`,ce.style.height=`${de.currentHeightPercent}%`},re=W=>{var ce,de;const J=F.current;if(J.isResizing=!1,(ce=M.current)==null||ce.classList.remove("is-resizing"),(de=M.current)==null||de.releasePointerCapture(W.pointerId),a(J.currentWidthPercent+"%",J.currentHeightPercent+"%"),document.removeEventListener("pointermove",ae),!M.current)return;const te=M.current.getBoundingClientRect(),le=U(te.width,te.height);b(le)},ee=W=>{var Ut,ct;if(W.button===2||!v){W.preventDefault(),W.stopPropagation();return}if(!M.current)return;M.current.classList.add("is-resizing");const J=n.getRootElement();if(!J)return;const te=J.getBoundingClientRect();if(!n.isEditable()||x==="default")return;const le=R.current;if(le===null)return;const ce=(Ut=M.current)==null?void 0:Ut.getBoundingClientRect();if(!le.getBoundingClientRect()||!ce)return;const{width:Ae,height:ke,top:ye,left:Ee}=ce,Ye=W.clientX-Ee,ft=W.clientY-ye,Ke=ft<=Gf,mt=ft>=ke-Gf,At=Ye<=Gf,Re=Ye>=Ae-Gf,Me=F.current,lt=window.getComputedStyle(J),Jt=parseFloat(lt.paddingTop),Dt=parseFloat(lt.paddingBottom),hr=parseFloat(lt.paddingLeft),Be=parseFloat(lt.paddingRight);Me.rootHeight=te.height-Jt-Dt||0,Me.rootWidth=te.width-hr-Be||0,Me.ratio=Ae/ke,Me.currentWidth=Me.currentWidth||Ae,Me.currentWidthPercent=+M.current.style.width.replace("%",""),Me.currentHeight=Me.currentHeight||ke,Me.currentHeightPercent=+M.current.style.height.replace("%",""),Me.startX=W.clientX,Me.startY=W.clientY,Me.startWidth=Me.currentWidth||Ae,Me.startWidthPercent=Me.currentWidthPercent,Me.startHeight=Me.currentHeight||ke,Me.startHeightPercent=Me.currentHeightPercent,Me.isResizing=!0,Me.isTop=Ke,Me.isBottom=mt,Me.isLeft=At,Me.isRight=Re,Me.direction=mt||Ke?"y":"x",o&&o(),M.current.setPointerCapture(W.pointerId);const ot=((ct=M.current.parentElement)==null?void 0:ct.offsetWidth)??Me.rootWidth,{maxWidthPercent:bt,minResizePercent:zt}=xW(ot);document.addEventListener("pointermove",nr=>{var Ht,rr;return ae(nr,f==="video"?40:zt,bt,(rr=(Ht=M.current)==null?void 0:Ht.parentElement)==null?void 0:rr.offsetWidth)}),document.addEventListener("pointerup",re,{capture:!0,once:!0})};k.useEffect(()=>{var ce;const W=M.current;if(!W)return;if(typeof t=="number"&&typeof e=="number"){W.style.width=`${j(t)}%`,W.style.height=`${j(e)}%`;return}const J=(ce=W.parentElement)==null?void 0:ce.getBoundingClientRect();if(!J)return;const te=Zf(r,J.height),le=Zf(s,J.width);W.style.width=`${le}%`,W.style.height=`${te}%`},[t,e,s,r]),k.useEffect(()=>{var le;if(!M.current)return;const W=M.current.getBoundingClientRect(),J=(le=M.current.parentElement)==null?void 0:le.getBoundingClientRect(),te=U(W.width,W.height);if(b(te),typeof t=="number"&&typeof e=="number")M.current.style.width=`${j(t)}%`,M.current.style.height=`${j(e)}%`,F.current.currentWidthPercent=t,F.current.currentHeightPercent=e;else if(J){const ce=Zf(r,J.height),de=Zf(s,J.width);requestAnimationFrame(()=>{M.current&&(M.current.style.height=`${ce}%`,M.current.style.width=`${de}%`)}),F.current.currentWidthPercent=de,F.current.currentHeightPercent=ce}else M.current.style.height="100%",M.current.style.width="100%",F.current.currentWidthPercent=100,F.current.currentHeightPercent=100},[M.current,l,r,s]);const se=W=>{const te=W.target.closest("[data-lexical-decorator]");return te?n.update(()=>{const le=Oe(te);le&&le instanceof oi&&(typeof le.select=="function"&&le.select(),_(le))}):_(null),!1},q=()=>(S&&setTimeout(()=>{n.update(()=>(S.insertAfter(we()).selectStart(),_(null),!0))}),!1);return N!=null&&N.current&&(N.current.decoratorEnterAction=q),k.useEffect(()=>{const W=n.registerCommand(Hi,se,ks);return()=>{W()}},[S]),sb?i:A.jsxs("div",{ref:M,className:`resizable-container ${u||""} ${L?"hide-padding":""}`,style:{cursor:x,pointerEvents:g?"none":"auto"},onMouseMove:g?void 0:ne,onMouseEnter:g?void 0:()=>E(!0),onMouseLeave:g?void 0:()=>{E(!1),C("default")},onMouseUp:g?void 0:()=>{n.dispatchCommand(Oi,"show_menu")},onPointerDown:g?void 0:ee,children:[A.jsx("svg",{className:`resizable-container__handle ${v?"hovered":""}`,style:{"--clip-x1":`${p.x-y}px`,"--clip-y1":`${p.y-y}px`,"--clip-x2":`${p.x+y}px`,"--clip-y2":`${p.y-y}px`,"--clip-x3":`${p.x+y}px`,"--clip-y3":`${p.y+y}px`,"--clip-x4":`${p.x-y}px`,"--clip-y4":`${p.y+y}px`,clipPath:`polygon(
40
+ var(--clip-x1) var(--clip-y1),
41
+ var(--clip-x2) var(--clip-y2),
42
+ var(--clip-x3) var(--clip-y3),
43
+ var(--clip-x4) var(--clip-y4)
44
+ )`,opacity:v?1:0,transition:`${F.current.isResizing?"none":` opacity 0.3s ease-in-out, clip-path ${(I==null?void 0:I.length)<4?"0.2s":"0.3s"} cubic-bezier(0.825, 0.225, 0.280, 0.770)`}`},children:A.jsx("rect",{x:0,y:0,width:"100%",height:"100%",stroke:"#D9D9D9",strokeWidth:8,rx:15,ry:15,fill:"none"})}),A.jsx("div",{ref:R,className:"resizable-container__inner",style:{height:"100%",width:"100%",pointerEvents:F.current.isResizing?"none":"auto"},children:i})]})},ug=n=>typeof n=="string"&&n.includes("%")?parseFloat(n):n;function So(n,t){if(!t||!(t instanceof HTMLElement)){console.error("Invalid DOM element provided.");return}n?t.classList.add("disable-scroll"):t.classList.remove("disable-scroll")}function vW(n,t){if(n.match(/\n/))return!1;try{const e=new URL(n);return["javascript:","file:","vbscript:","data:"].includes(e.protocol)?!1:e.hostname?!0:e.protocol!==""&&(e.pathname.startsWith("//")||e.pathname.startsWith("http"))&&!(t!=null&&t.requireHostname)}catch{return!1}}function zL(n){try{if(n.includes("maps/embed"))return n;const t=new URL(n),e=t.href.match(/@([0-9.]+),([0-9.]+),([0-9]+)m/),r=t.href.match(/1s([^!]+)/),s=t.href.match(/!3d([0-9.]+)!4d([0-9.]+)/);if(!e&&!s)throw new Error("Неверный формат ссылки Google Maps");const i=s?s[1]:e?e[1]:"0",o=s?s[2]:e?e[2]:"0",l=e?Math.round(Math.log2(40075016686e-3/(parseFloat(e[3])*2))):14,a=r?r[1]:"";return`https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d14774!2d${o}!3d${i}!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f${l}!3m3!1m2!1s${a}!2z!5e1!3m2!1sru!2s!4v${Date.now()}!5m2!1sru!2s`}catch(t){return console.error("Error link:",t),""}}function SW(n){const t=/https:\/\/lookerstudio\.google\.com\/u\/\d+\/reporting\/([^\/]+)\/page\/([^\/]+)(\/edit)?/;return n.replace(t,"https://lookerstudio.google.com/embed/reporting/$1/page/$2")}function EW(n){if(n)return n.includes("lookerstudio")?SW(n):n.includes("maps")?zL(n):!vW(n,{requireHostname:!1})&&!n.startsWith("/")&&!n.startsWith("#")&&!n.startsWith("mailto:")&&!n.startsWith("sms:")&&!n.startsWith("fax:")&&!n.startsWith("tel:")?`https://${n}`:n}const kW=28,Wl=k.forwardRef(({src:n,title:t,icon:e,canonicalUrl:r,isSelected:s,width:i="100%",height:o,saveUrl:l,editor:a,updateMinHeight:u,disableOutline:d},f)=>{var x;const g=k.useRef(null),[p,m]=k.useState(!1),y=!!(e||r),b=k.useMemo(()=>{var v;return(o?parseFloat(String(o)):((v=g.current)==null?void 0:v.scrollHeight)||0)+kW},[o,(x=g.current)==null?void 0:x.scrollHeight]);return k.useEffect(()=>{const C=setTimeout(()=>{m(!0),n&&(a==null||a.update(()=>{l(n)}))},0);return()=>clearTimeout(C)},[n]),k.useEffect(()=>{b&&u(b)},[b]),A.jsxs(O.Box,{className:`frame-container ${s?"selected":""}`,style:{overflow:"hidden",width:"inherit",height:"100%",padding:"0px"},children:[p&&A.jsx("iframe",{ref:f||g,style:d?{outline:"none"}:{outline:"1px"},className:`editor-video ${y?"with-bar":""}`,sandbox:"allow-same-origin allow-scripts allow-popups allow-forms allow-downloads allow-storage-access-by-user-activation",width:"100%",height:o,frameBorder:"0",title:t||"embed",loading:"lazy",src:EW(n),allowFullScreen:!0}),A.jsxs("div",{className:"frame-bar",children:[e," ",A.jsx(O.Text,{className:"frame-title",children:t}),r&&A.jsx(O.Anchor,{className:"frame-open-link",href:r,target:"_blank",rel:"noopener noreferrer",children:A.jsxs(O.Flex,{gap:2,children:[A.jsx($.IconExternalLink,{size:16}),A.jsx(O.Text,{children:"Open"})]})})]})]})}),TW="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAACglBMVEUAAAAktvjtMET/wAAmtfkhsfkltPjsL0nxVAD/vwAltfj/wgD/wAD/vwD/wAD/wAD/wQD/wgAArvYltvj/wAD/wAD/uwD/vQAQr/8ltvnqKUPHJ0LuMUrKKEL/wAAlt/n/wQDeADn/wQD/vwAbsf3/wQDJKEIltvn/wAD/wQD/wAD/wAD/wQD/wgD/wAD/wAD/wAAjtPYis/oZsPn/sQD0JC4mtfjIJ0Iltvn/wAD/wAD/wAAltvj/wQAltvn/wADvMEn/wQD/wAD/wQD/wAD/wAAjtvjVK0P/wwDjKkD/wADIJ0Iltvn/wQD/wQDvMEoltvnPKUP/wADvMUkktfjRKUP/wAAktvsjufoitfgitfggtPn/wQD/xADjKEX/uQAlt/r/wQDwMEoltfjKKEImuPvNKUPKKEIltvn/wQDKKEL/wQAlt/slt/omt/r/wQD/wQAltfjQKUMktvn/wADQKUP/wAD/wAAitfn/vwDXKUMjtfn/wAD/vgD/wADnK0UftvjuMEruMEnvMEomtfjOKUPvMUn/wADOKUPNKUPRKUT/wQAlt/rRKUMlt/r/wQD/wAD/wQAltvkkt/nNKEIltvoltvjuL0nSKEP/wADVKUTSKEH/vwAjt/ntLkj/vQDiK0TmJ0TRJUPhHj3MKUPPKUMmtvkltfj/wQDuMErMKELwMErvMEkltvjvMUrVKkPUKUP/vgDdK0bwL0jVKkPyMEjXKD/vMEjrMUnuMUrtMErfLUcmtvjvMUnPKUTPKET/wADRKkP/wAD/wAD/wwAmtff/vwDtMUrGKELsMEnHKELKKELqL0jRKkPMKUPjLkffLUbbLEXnL0jlL0jXK0XUKkRKdu7EAAAAxXRSTlMAIw7++C7NlwL9/gLQHfjvuAcD9/v0DAkG6Rb9/Ondz8kEnzAN9vDu5dO9mmZcPTcYFRIKBgX69vHp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GTdxybhVrUqn/NRwfwLGwJOuPmImTjYgTg4ipSzsXdFaYWMCFrB/PPAvFP9cGxABvq+vbg2lc2m3tD1zycVUtD2ljbwf7F8RF4FuKoqgENqBqyBl0BOZeqpy2xNdK0BAxJuA/t+a4OaqjTX2K1TajjP25eCls4kJeHA/o0enbh4O4BcPS+I/SQziN4wr9jTKBrYFugnek6eVmxBRxvyhaidjGcy0hh/RtAEiaWLbdAXwh1t6aF+ppxcfl/GD6NurIGm8AAAAAASUVORK5CYII=",HW="data:image/svg+xml,%3csvg%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20256%20256'%20width='256'%20height='256'%20preserveAspectRatio='xMidYMid'%3e%3cpath%20fill='%23625DF5'%20d='M256%20113.765h-74.858l64.83-37.43-14.237-24.667-64.83%2037.43%2037.421-64.825-24.667-14.246-37.421%2064.826V0h-28.476v74.86L76.326%2010.027%2051.667%2024.266%2089.096%2089.09%2024.265%2051.668l-14.238%2024.66%2064.83%2037.43H0v28.477h74.85l-64.823%2037.43%2014.238%2024.667%2064.824-37.423-37.43%2064.825%2024.667%2014.239%2037.429-64.832V256h28.476v-74.853l37.422%2064.826%2024.665-14.239-37.428-64.832%2064.83%2037.43%2014.24-24.667-64.825-37.423h74.85v-28.477H256ZM128%20166.73c-21.472%200-38.876-17.403-38.876-38.876%200-21.472%2017.404-38.876%2038.876-38.876%2021.472%200%2038.875%2017.404%2038.875%2038.876%200%2021.473-17.403%2038.876-38.875%2038.876Z'/%3e%3c/svg%3e",YW="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAAn1BMVEUAAAD3jR3zhhT1hxTthxb3dwD3jR34jR74jR33jR33ihf4jB33jB34jR33jRz4jBz3jBz4ixv4iRn3hgD3jR33jRz3jB34ixf5iBb3jRz3jR33jR33jB33jB32jBz4jBz4jBz4jBn4jR33jR33jRz3jBz3ixv4jR33jR33jBz3jB34jRz4j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jZQljHGhyUyCknLFVjWVSXFDh8WS1rK7ShCDYt6Pc+kBYWXRf8uV5P3M7QvKFvFJBnNy5OJfafD4SmBZDc1YP9K6Jze5KZ18CAbZz5n5AJL8HaQ4Lvq12P01+q6qEJPnUQJPbSWJYrBapJoq2Aw/5KYnFntMCbd635LcTrNuLSIvcJdosVfcdDl1OM7x2b5MsWQpr65H11eWuFewL4epnVvbSzPg5ND2eZnc3PGvxOy8ilrhITRPvolcPImOnYu8uNoZ3I+H+C9Yd6ZxyF9La9sw2mOzbFNara8bNu9S8BideF27sprMr0oKOj9Ec8TsNKfq7hOnG3iUcKSB+j1PTuo3Gtnc+Yz473e7h7vw+X2mGJV+P4/siVuy8Ae9ff0wouNpoXU2Is2lSXI+tmpoXdBLu0wbiPdqaFa8rXS/O7mdO6xVIsmMZscMiCWMoNfmvQDOWZuYJb89/DMu2kyTbBHHschDuXZEmfhrSNgQCyyH1iVgkKo0JED/+HEz4IvDCcezrp36UJ1X5ThGlikSGDfBO4vDxOo5rzwfKoqtfOPYGuTUjMj4BNv860O6n0nzXSGruiknflX4vxaH9ODLxIlmrZtUMH1zolZ6udiEVMrHjpTjcGSsxWpKNxRkUONUcvPMHQDB/BA/9FdC+FSC0BtTC9FI/rwDhvUod9gci2UPYhkmlqMH3QFqlyAZ+onrvIp+e+v9+1d2Lv4munAAAAABJRU5ErkJggg==",VW="data:image/svg+xml,%3csvg%20height='256'%20preserveAspectRatio='xMidYMid'%20viewBox='0%200%20256%20256'%20width='256'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m127.059657%20255.996921c-68.2090026-.470449-127.51673062-57.078479-127.05700194-128.998618.44199434-69.2024402%2057.94900474-127.46727058%20129.10736494-126.99545745%2069.157108.45954053%20127.503089%2057.86392555%20126.885116%20128.19135345.572955%2069.689254-58.060868%20128.29499-128.935479%20127.802722zm0%200c-68.2090026-.470449-127.51673062-57.078479-127.05700194-128.998618.44199434-69.2024402%2057.94900474-127.46727058%20129.10736494-126.99545745%2069.157108.45954053%20127.503089%2057.86392555%20126.885116%20128.19135345.572955%2069.689254-58.060868%20128.29499-128.935479%20127.802722z'%20fill='%23fff'/%3e%3cpath%20d='m127.184644%20238.997327c-59.1522675-.408056-110.5810349-49.498583-110.1823412-111.865899.3837257-60.0128327%2050.2530972-110.5397174%20111.9608142-110.1289408%2059.971427.3985349%20110.568788%2050.1800369%20110.032661%20111.1667638.496666%2060.43313-50.348348%20111.255175-111.811134%20110.828076zm0%200c-59.1522675-.408056-110.5810349-49.498583-110.1823412-111.865899.3837257-60.0128327%2050.2530972-110.5397174%20111.9608142-110.1289408%2059.971427.3985349%20110.568788%2050.1800369%20110.032661%20111.1667638.496666%2060.43313-50.348348%20111.255175-111.811134%20110.828076z'%20fill='%2349a32b'/%3e%3cpath%20d='m169.327319%20127.956161c-.284596%205.290212-4.906213%209.683063-9.461106%208.916425-.021787%200-.044936%200-.068085%200-5.045107.006809-9.139745-4.078298-9.145192-9.123404.171575-5.058724%204.366979-9.045787%209.427064-8.96%205.045106.02451%209.51966%204.288%209.247319%209.166979zm-81.1261275%2051.264c1.9022979.055829%203.8059574.014978%205.9996596.014978v13.785873c-13.6347234%202.305361-24.8660426-1.565958-27.6221277-13.091405-.9436596-4.237617-1.5237447-8.548766-1.7361702-12.885787-.292766-4.591659.2137872-9.235064-.1361702-13.818553-.9695319-12.612085-2.6035745-16.917787-14.706383-17.514213v-15.69634c.8674043-.202894%201.7470638-.352681%202.6321702-.452085%206.6355745-.326809%209.4325107-2.361192%2010.916766-8.897362.6754042-3.672511%201.0757447-7.389958%201.1942127-11.1223831.5256171-7.2170212.3390639-14.5511489%201.5414468-21.6510638%201.737532-10.267234%208.1116596-15.2551489%2018.6403405-15.8134468%202.9957447-.1606808%206.0010212-.0245106%209.3957447-.0245106v14.0908936c-1.3971064.0994042-2.6771064.3022979-3.9489362.2641702-8.5800851-.2628085-9.024%202.6594043-9.650383%209.7620426-.3908085%204.4541276.1484255%208.9845106-.155234%2013.453617-.3172766%204.4473189-.9123405%208.8714889-1.7811064%2013.2452769-1.2377873%206.338723-5.1349787%2011.052936-10.5354894%2015.053617%2010.4837447%206.822127%2011.6765958%2017.422978%2012.3574468%2028.187234.3662979%205.78451.1988085%2011.609872.7857022%2017.365787.4575319%204.467745%202.1950638%205.607489%206.8085106%205.74366zm8.8360851-60.430979h.1620425c5.0124259.083064%209.0103829%204.213106%208.9273189%209.226893%200%20.164766-.005447.328171-.014978.491575-.281873%204.899404-4.481362%208.641362-9.3807664%208.359489-.1974468.004085-.3935319%200-.5909787-.009532-4.9892766-.247829-8.8333617-4.493617-8.5855319-9.482893.2478298-4.989277%204.493617-8.833362%209.4828936-8.585532zm31.2360854%200c5.482212-.042213%209.123404%203.510468%209.152%208.930042.029957%205.565277-3.421958%209.126128-8.868766%209.149277-5.539405.024511-9.186043-3.479149-9.216-8.866043-.016341-.275063-.020426-.550127-.012256-.825191.153873-4.786383%204.158639-8.541958%208.945022-8.388085zm65.399829-6.865702c1.458383%205.446808%204.297532%207.361361%2010.03166%207.622808.939575.043575%201.875064.202894%203.163234.345873v15.692255c-.697191.228766-1.412085.40034-2.137872.512-7.684085.477957-11.186383%203.630298-11.962553%2011.334808-.49566%204.918468-.454809%209.891405-.795234%2014.827575-.142979%205.419574-.635915%2010.82417-1.476086%2016.179745-1.960851%209.703489-8.019063%2014.54434-18.028936%2015.135319-3.221787.190638-6.466723.029957-9.940425.029957v-14.025532c1.869617-.115744%203.52-.275064%205.174468-.314553%205.980596-.142979%208.095319-2.071149%208.388085-8.010894.324085-6.525276.465702-13.058723.757106-19.585361.42349-9.433873%203.006639-17.861447%2011.795064-23.745362-5.028766-3.585362-9.066213-7.92783-10.112-13.783149-1.265021-7.097191-1.673532-14.3509787-2.354383-21.5475744-.33634-3.597617-.32-7.2265532-.671319-10.8214468-.378553-3.8808511-3.044766-5.2234894-6.577021-5.3106383-2.02349-.0490213-4.055149-.0095319-6.642383-.0095319v-13.696c16.509276-2.7411064%2027.913532%202.752%2028.972936%2018.5477446.443915%206.6328511.378553%2013.2970213.803404%2019.9298728.186553%203.60851.725787%207.189787%201.612255%2010.692085z'%20fill='%23fff'/%3e%3c/svg%3e",QW="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAG5ElEQVR42u2dX4jUVRTH787Mzm5l/yiIwictVgS3ohcfQiVyE/9kQRFmDyZUkNhDURTqQ+FbZGhqICmpvSz9QQtTMgkW/PtSEvWQBfrSPzAr13Vnd2fsXPYe9nj39/M3OzMx957f98KX329mZ4ad+5lz7v3dc879GTO5FbzH80mbSCdIf5FqpCtQW2T7/gLppGOyIIPdpFYU54tIp9Cpwes4qS+F4VWtJF6wTXzAKKnijrDeMKxYMuHntwkLLqZZbhfpkHuD/YBhdGjwsoxG3PlhUtmHLP32PvfCi6QqOi8qq77kzg/4Y3KHe7DevWDQeyM6MB5ddseNjilbs5ntjbnorHgtmc975Rj8oXtyCJYbvcbcsZ/hThdgMe7qsWI7j5phAa8Ws2Z0kC43vcYC3gnA6gAz5L0W8FFMrtSJh9pjFvDP3uAM6XHTlq05iwmWWsDnAFg34LMADMAQAEMADAEwBMAQACev6lRcrHTIHYeVL+zkAvCYA1rNCJBXADjezAbWv6SfSKdJP5D+SHh9DYDjg/spaSVpDukO0s2k20j3kBaTtpD+ca8dUeS2VQKuiSzQ70kPmfra3aTPvJRUAA7wC/FY+iXpJi8luDNBJQ/02wlpLwAcUG6wPQ6QukVGYVFkjZqUMp2yeLxVdFAVgMMQW+6fpB4H6joztdYlzo8rsGI1gKvi/17nAHVmWG1au8Ed+xS4ajWA2Xp/I810gLpNY60gfhgDok9qANw+cU3Ovnqq6+po7NrXRV7doQKwtK6NTbpnH/CShAQ2AG5TBr/V2oTJUiON3/+A8A4AHADgF5ocf33Ac8SKGAAHAPjlFlvwXPH5ANzGL8H/8xYxwWrFGLwCY3BYl0kDYumxswnA3QkrWphFB3CZZMfLBxtcxTL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kASQJrW0sTdzAwV5qXOxXwc7rgYq3NHi0hOYSUF7Si74bUMkzTlHedLeq+1jIXthtA/hBVltoC8d6Op1+0kCXAz4ZEOaEtAlrlXgjv7+o/QiGCmntwW6zhFfHT2x5G+VxoA/1gPOeZ73jj1/PndVopf6Pvflzej336v35yecXbD7o/O1kBaAvVZe64TtZyRlSqYLSrkmXy709Kej9PBmSFWkSV2H+DyyQ+axcpVrZAAAAAElFTkSuQmCC",$W="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAIAAAC2BqGFAAAACXBIWXMAACE4AAAhOAFFljFgAAAHGUlEQVR42u2cW2wNWxjHN1rtbiXud1td69pWEGkiHjxIiBcqrhGJB4+ePJCQiKBRgod6aCWSulX1uCVCvKDauJ4iSDy4Bm3qEkIoysH5Z/9jZcyemb2nu86xp//fw8p0Zs2sWf/9rW9935qZhkJCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBAiaGRkZGRlZYV/BXvS09MlTlsycODAYcOGDRkyZKgF7OnTpw+OdujQQRK1AdnZ2R5He/ToIa2Tgtp1794d5YkTJ27dunX16tX6+vq/o1y7du327du7d+/GUVi6tE5W6P79+6NsaGj44cSVK1dwdPz48RI6WaH79euH8v79+5D169ev336CbeypqanB0bFjx0rothH64cOHkBX6Glvmdm1tLY6OGzdOQktoCf3HdjsR2rCtjh07+hIa9X/HzfzRZtiGp/fq1Suu0GPGjPkdN/M/CJeWloZYFZkY8zE3IpFIt27dkmkuMzMTyg4ePJgXzMnJobW6CV1XV4ejhYWF5hTe5PDhw1MvaUTnfdVHV9m9BDtpquG3pKOI5d69e45Cnz171uPKTHZSg549e6KcPHnygQMHjh49Wl1d/ZcLOLRjxw6YEurDpvz6ilGjRnFj/vz5paWlhw8f5mWPHDlSWVn56tUryPr9+3cjNLdh6Xv37j127JjtTpBJrl+/Hlfr27dvahg1hUPnrZ304PXr18XFxb60traC3Prz58+OV469Ae9bunTpEt13p06dUkBo6jV37tz379+b3Ow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h8PhcDj8ezj8Hd8AxYE9wZItsP4AAAAASUVORK5CYII=";function t7({matches:n,...t}){const e=n[0],r=new URL(e).searchParams,s="Draw.io",i=r.get("title")?`${s} (${r.get("title")})`:s;return A.jsx(Wl,{...t,src:t.attrs.href,icon:A.jsx(O.Image,{src:UL,alt:"Diagrams.net",width:16,height:16}),canonicalUrl:t.attrs.href,title:i})}function n7(n){return n.endsWith(".pibb")?n:`${n}.pibb`}function r7(n){const t=n7(n.attrs.href);return A.jsx(Wl,{...n,src:t,canonicalUrl:t,width:"100%",title:"GitHub Gist"})}function s7({matches:n,...t}){let e="";try{e=new URL(n[0]).pathname}catch{e=""}const r=e.replace(/^\/embed/,"/");let s;return r.includes("episode")||r.includes("show")?s=232:r.includes("track")?s=80:s=380,A.jsx(Wl,{...t,disableOutline:!0,width:"100%",height:`${s}px`,src:`https://open.spotify.com/embed${r}`,title:"Spotify Embed",allow:"encrypted-media"})}function i7({matches:n,...t}){const e=n[2];return n[1]==="c"?A.jsx(Wl,{...t,width:"316px",height:"141px",src:`https://trello.com/embed/card?id=${e}`,title:`Trello Card (${e})`}):A.jsx(Wl,{...t,width:"248px",height:"185px",src:`https://trello.com/embed/board?id=${e}`,title:`Trello Board (${e})`})}function o7({matches:n,...t}){const e=n[4],r=n[5],s=`https://player.vimeo.com/video/${e}?byline=0${r?`&h=${r}`:""}`;return A.jsx(Wl,{...t,src:s,canonicalUrl:s,title:`Vimeo Embed (${e})`,height:"412px",referrerPolicy:"origin"})}const l7={github:"GitHub Gist",figma:"Figma",vimeo:"Vimeo Embed"},Rc=[{parentKey:"integrations",platform:"spotify",keywords:["spotify"],key:"spotify",hide:!1,regexMatches:[/(?:https?:\/\/)?(?:open\.)?spotify\.com\/(?:embed\/)?(track|album|playlist|show|episode)\/([a-zA-Z0-9]+)/],icon:A.jsx(_t,{className:"integration-icon",src:JW}),name:"Spotify",component:s7},{parentKey:"integrations",platform:"figma",keywords:["figma","design"],key:"figma",hide:!1,regexMatches:[new RegExp("^https://([w.-]+\\.)?figma\\.com/(file|proto|board|design)/([0-9a-zA-Z]{22,128})(?:/.*)?$"),new RegExp("^https://([w.-]+\\.)?figma\\.com/embed(.*)$")],transformMatch:n=>n[0].includes("/embed")?n[0]:`https://www.figma.com/embed?embed_host=outline&url=${encodeURIComponent(n[0])}`,icon:A.jsx(_t,{className:"integration-icon",src:LW}),name:"Figma",getIframeUrl:n=>`https://www.figma.com/embed?embed_host=share&url=${n}`},{parentKey:"integrations",platform:"airtable",keywords:["spreadsheet"],key:"airtable",hide:!1,regexMatches:[new RegExp("^https://airtable.com/(?:embed/)?(app.*/)?(shr.*)$"),new RegExp("^https://airtable.com/(app.*/)?(pag.*)/form$")],icon:A.jsx(_t,{className:"integration-icon",src:TW}),name:"Airtable",transformMatch:n=>`https://airtable.com/embed/${n[1]??""}${n[2]}`,getIframeUrl:n=>`https://airtable.com/embed/${n}`},{parentKey:"integrations",platform:"codepen",keywords:["code","editor"],key:"codepen",hide:!1,regexMatches:[/^https:\/\/codepen\.io\/(.*?)\/(pen|embed)\/(.*)$/],icon:A.jsx(_t,{className:"integration-icon",src:_W}),name:"Codepen",transformMatch:n=>`https://codepen.io/${n[1]}/embed/${n[3]}`,getIframeUrl:n=>`https://codepen.io/${n}/embed/`},{parentKey:"integrations",platform:"dbdiagram",keywords:["diagrams","database"],key:"dbdiagram",hide:!1,regexMatches:[/^https:\/\/dbdiagram\.io\/(embed|e|d)\/(\w+)(\/.*)?$/],icon:A.jsx(_t,{className:"integration-icon",src:NW}),name:"DBDiagram",transformMatch:n=>`https://dbdiagram.io/embed/${n[2]}`,getIframeUrl:n=>`https://dbdiagram.io/embed/${n}`},{parentKey:"integrations",platform:"diagrams",keywords:["diagrams","drawio"],key:"diagrams",hide:!1,regexMatches:[/^https:\/\/viewer\.diagrams\.net\/(?!proxy).*(title=\\w+)?/],icon:A.jsx(_t,{className:"integration-icon",src:UL}),name:"Diagrams.net",component:t7},{parentKey:"integrations",platform:"descript",keywords:["audio"],key:"descript",hide:!1,regexMatches:[/^https?:\/\/share\.descript\.com\/view\/(\w+)$/],icon:A.jsx(_t,{className:"integration-icon",src:IW}),name:"Descript",transformMatch:n=>`https://share.descript.com/embed/${n[1]}`,getIframeUrl:n=>`https://share.descript.com/embed/${n}`},{parentKey:"integrations",platform:"github",keywords:["code"],key:"gist",hide:!1,regexMatches:[/^https:\/\/gist\.github\.com\/([a-zA-Z\d](?:[a-zA-Z\d]|-(?=[a-zA-Z\d])){0,38})\/(.*)$/],icon:A.jsx(_t,{className:"integration-icon",src:MW}),name:"GitHub Gist",component:r7},{parentKey:"integrations",platform:"google-maps",keywords:["maps"],key:"google-maps",hide:!1,regexMatches:[/https?:\/\/(?!maps\.app\.goo\.gl\/2SrY88FwWBpKDkk88)(?:maps\.app\.goo\.gl\/[\w-]+|www\.google\.com\/maps\/[\S]+)/],icon:A.jsx(_t,{className:"integration-icon",src:FW}),name:"Google Maps",transformMatch:n=>n[0]},{parentKey:"integrations",platform:"google-drawings",keywords:["drawings"],key:"google-drawings",hide:!1,regexMatches:[/^https:\/\/docs\.google\.com\/drawings\/d\/(.*)\/(edit|preview)(.*)$/],icon:A.jsx(_t,{className:"integration-icon",src:RW}),name:"Google Drawings",transformMatch:n=>n[0].replace("/edit","/preview")},{parentKey:"integrations",platform:"google-drive",keywords:["drive"],key:"google-drive",hide:!1,regexMatches:[/^https?:\/\/drive\.google\.com\/file\/d\/(.*)$/],icon:A.jsx(_t,{className:"integration-icon",src:PW}),name:"Google Drive",transformMatch:n=>n[0].replace("/view","/preview").replace("/edit","/preview")},{parentKey:"integrations",platform:"google-docs",keywords:["documents","word"],key:"google-docs",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/document\/(.*)$/],icon:A.jsx(_t,{className:"integration-icon",src:OW}),name:"Google Docs",transformMatch:n=>n[0].replace("/view","/preview").replace("/edit","/preview")},{parentKey:"integrations",platform:"google-sheets",keywords:["excel","spreadsheet"],key:"google-sheets",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/spreadsheets\/d\/(.*)$/],icon:A.jsx(_t,{className:"integration-icon",src:zW}),name:"Google Sheets",transformMatch:n=>n[0].replace("/view","/preview").replace("/edit","/preview")},{parentKey:"integrations",platform:"google-slides",keywords:["presentation","slideshow"],key:"slides",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/presentation\/d\/(.*)$/],transformMatch:n=>n[0].replace("/edit","/preview").replace("/pub","/embed"),icon:A.jsx(_t,{className:"integration-icon",src:UW,alt:"Google Slides"}),name:"Google Slides"},{parentKey:"integrations",platform:"google-calendar",keywords:["calendar"],key:"calendar",hide:!1,regexMatches:[/^https:\/\/calendar\.google\.com\/calendar\/embed\?src=(.*)$/],transformMatch:n=>n[0],icon:A.jsx(_t,{className:"integration-icon",src:DW,alt:"Google Calendar"}),name:"Google Calendar"},{parentKey:"integrations",platform:"google-forms",keywords:["form","survey"],key:"forms",hide:!1,regexMatches:[/^https?:\/\/docs\.google\.com\/forms\/d\/(.+)$/],transformMatch:n=>n[0].replace(/\/(edit|viewform)(\?.+)?$/,"/viewform?embedded=true"),icon:A.jsx(_t,{className:"integration-icon",src:BW,alt:"Google Forms"}),name:"Google Forms"},{parentKey:"integrations",platform:"google-business",keywords:["bi","business intelligence"],key:"lookerstudio",hide:!1,regexMatches:[/^https?:\/\/(lookerstudio|datastudio)\.google\.com\/(embed|u\/0)\/reporting\/(.*)\/page\/(.*)(\/edit)?$/],transformMatch:n=>n[0].replace("u/0","embed").replace("/edit",""),icon:A.jsx(_t,{className:"integration-icon",src:jW,alt:"Google Looker Studio"}),name:"Google Looker Studio"},{parentKey:"integrations",platform:"grist",keywords:["spreadsheet"],key:"grist",hide:!1,regexMatches:[/^https?:\/\/([a-z.-]+\.)?getgrist\.com\/(.+)$/],transformMatch:n=>{const t=n.input??n[0];return t.includes("style=singlePage")?t:t.replace(/(\?embed=true)?$/,"?embed=true")},icon:A.jsx(_t,{className:"integration-icon",src:KW,alt:"Grist"}),name:"Grist"},{parentKey:"integrations",platform:"instagram",keywords:["post"],key:"instagram",hide:!1,regexMatches:[/^https?:\/\/www\.instagram\.com\/(p|reel)\/([\w-]+)(\/?utm_source=\w+)?/],transformMatch:n=>`${n[0]}/embed`,icon:A.jsx(_t,{className:"integration-icon",src:WW,alt:"Instagram"}),name:"Instagram"},{parentKey:"integrations",platform:"loom",keywords:["video","screencast"],key:"loom",hide:!1,regexMatches:[/^https:\/\/(www\.)?(use)?loom\.com\/(embed|share)\/(.*)$/],transformMatch:n=>n[0].replace("share","embed"),icon:A.jsx(_t,{className:"integration-icon",src:HW,alt:"Loom"}),name:"Loom"},{parentKey:"integrations",platform:"lucidchart",keywords:["chart"],key:"lucidchart",hide:!1,regexMatches:[/^https?:\/\/(www\.|app\.)?(lucidchart\.com|lucid\.app)\/documents\/(embeddedchart|view|edit)\/(?<chartId>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})(?:.*)?$/,/^https?:\/\/(www\.|app\.)?(lucid\.app|lucidchart\.com)\/lucidchart\/(?<chartId>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})\/(embeddedchart|view|edit)(?:.*)?$/],transformMatch:n=>{var t;return`https://lucidchart.com/documents/embeddedchart/${(t=n.groups)==null?void 0:t.chartId}`},icon:A.jsx(_t,{className:"integration-icon",src:YW,alt:"Lucidchart"}),name:"Lucidchart"},{parentKey:"integrations",platform:"miro",keywords:["whiteboard"],key:"miro",hide:!1,regexMatches:[/^https:\/\/(realtimeboard|miro)\.com\/app\/board\/(.*)$/],transformMatch:n=>`https://${n[1]}.com/app/embed/${n[2]}`,icon:A.jsx(_t,{className:"integration-icon",src:GW,alt:"Miro"}),name:"Miro"},{parentKey:"integrations",platform:"scribe",keywords:["screencast"],key:"scribe",hide:!1,regexMatches:[/^https?:\/\/scribehow\.com\/shared\/(.*)$/],transformMatch:n=>`https://scribehow.com/embed/${n[1]}`,icon:A.jsx(_t,{className:"integration-icon",src:ZW,alt:"Scribe"}),name:"Scribe"},{parentKey:"integrations",platform:"swagger",keywords:["swagger","api"],key:"swagger",hide:!0,regexMatches:[/^https?:\/\/([a-z.-]+\.)?getgrist\.com\/(.+)$/],transformMatch:n=>n.input??n[0],icon:A.jsx(_t,{className:"integration-icon",src:VW,alt:"Swagger"}),name:"Swagger"},{parentKey:"integrations",platform:"tldraw",keywords:["draw","schematics","diagrams"],key:"tldraw",hide:!1,regexMatches:[/^https?:\/\/(beta|www|old)\.tldraw\.com\/[rsvo]+\/(.*)$/],transformMatch:n=>n[0],icon:A.jsx(_t,{className:"integration-icon",src:QW,alt:"Tldraw"}),name:"Tldraw"},{parentKey:"integrations",platform:"trello",keywords:["kanban"],key:"trello",hide:!1,regexMatches:[/^https:\/\/trello\.com\/(c|b)\/([^/]*)(.*)?$/],icon:A.jsx(_t,{className:"integration-icon",src:XW,alt:"Trello"}),component:i7,name:"Trello"},{parentKey:"integrations",platform:"typeform",keywords:["form","survey"],key:"typeform",hide:!1,regexMatches:[/^https:\/\/([A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)\.typeform\.com\/to\/(.*)$/],transformMatch:n=>n[0],icon:A.jsx(_t,{className:"integration-icon",src:qW,alt:"Typeform"}),name:"Typeform"},{parentKey:"integrations",platform:"valtown",keywords:["code"],key:"valtown",hide:!1,regexMatches:[/^https?:\/\/(?:www.)?val\.town\/(?:v|embed)\/(.*)$/],transformMatch:n=>`https://www.val.town/embed/${n[1]}`,icon:A.jsx(_t,{className:"integration-icon",src:$W,alt:"Valtown"}),name:"Valtown"},{parentKey:"integrations",platform:"vimeo",keywords:["video"],key:"vimeo",hide:!1,regexMatches:[/(http|https)?:\/\/(www\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|)(\d+)(?:\/|\?)?([\d\w]+)?/],icon:A.jsx(_t,{className:"integration-icon",src:e7,alt:"Vimeo"}),name:"Vimeo",component:o7}];function _t({w:n=34,h:t=34,...e}){return A.jsx(O.Image,{w:n,h:t,...e})}const ib=(n,t=[])=>{const e=t??[];for(const r of e){const s=n.match(r);if(s)return s}return!1};function a7(n){for(const t of Rc){const e=ib(n,t.regexMatches);if(e)return{embed:t,matches:e}}}function KL(n){var r;let t=null;const e=Rc.find(s=>s.regexMatches.some(i=>{var o;return t=n.match(i),t?{platform:s.platform,id:((o=s==null?void 0:s.transformMatch)==null?void 0:o.call(s,t))||"valid"}:{platform:"unknown",id:null}}));return e?{platform:e.platform,id:t?((r=e.transformMatch)==null?void 0:r.call(e,t))||"valid":null}:{platform:"unknown",id:null}}function c7(n,t){var r;const e=Rc.find(s=>s.platform===n);return e?((r=e==null?void 0:e.getIframeUrl)==null?void 0:r.call(e,t))||"valid":""}const u7=({height:n,width:t,id:e,platform:r,src:s})=>{const i=l7[r]||r,l=`${parseInt(n,10)-24}px`;return A.jsxs("span",{className:"frame-container",style:{width:t,height:n},children:[A.jsx("iframe",{"data-lexical-embedid":e,"data-lexical-platform":r,src:s,style:{margin:0},width:"100%","data-exportheight":n,"data-exportwidth":t,height:l,allowFullScreen:!0,frameBorder:"0"}),A.jsx("span",{className:"frame-bar","data-title":i,children:A.jsx("a",{className:"frame-open-link",href:s,target:"_blank",rel:"noopener noreferrer"})})]})};function d7({className:n,format:t,platform:e,embedId:r,width:s,editor:i,nodeKey:o,create:l}){const[a,u]=k.useState(r||""),[d,f]=k.useState(!1),[g,p]=k.useState(l||!1),{t:m}=it.useTranslation(),y=k.useMemo(()=>Rc.find(S=>S.platform===e),[e]);k.useEffect(()=>{const S=document.documentElement;So(g,S)},[g]);const b=k.useMemo(()=>a7(a),[a]),x=S=>{i.update(()=>{const _=me(o);return DA(_)&&_.setMinHeight(S),!0})},C=S=>{const _=me(o),I=ib(a,(b==null?void 0:b.embed.regexMatches)||[]);if(DA(_)&&I){const L=a.includes("maps");if(S&&!L){_.setSrc(S);return}_.setPlatform(b==null?void 0:b.embed.platform),_.setId(a),L?_.setSrc(zL(a)):b!=null&&b.embed.transformMatch?_.setSrc(b==null?void 0:b.embed.transformMatch(b==null?void 0:b.matches)):_.setSrc(a)}},v=(S,_)=>{i.update(()=>{Ge(null);const I=me(o);return DA(I)&&I.setWidthAndHeight(S,_),!0})},E=S=>{if(S.preventDefault(),!ib(a,(b==null?void 0:b.embed.regexMatches)||[])&&!(b!=null&&b.embed.platform)){f(!0);return}i.update(()=>{const I=me(o);if(!I)return;C(),p(!1);const L=I.getNextSibling();L&&Ge(L.selectNext())}),f(!1)},N=()=>{if(b!=null&&b.embed.transformMatch){const S=b==null?void 0:b.embed.transformMatch(b==null?void 0:b.matches);return A.jsx(Wl,{src:S,width:"100%",height:"400px",canonicalUrl:a,title:y==null?void 0:y.name,allow:"encrypted-media",saveUrl:C,editor:i,updateMinHeight:x})}return y!=null&&y.component?y.component({saveUrl:C,attrs:{href:a},matches:b==null?void 0:b.matches,isSelected:!1,isEditable:!1,embed:y,editor:i,updateMinHeight:x}):A.jsx("div",{})};return k.useEffect(()=>{l&&p(!0)},[l]),r?b?A.jsx(xw,{editor:i,width:ug(s),isIcon:!1,isEmbed:!0,height:400,onResizeEnd:v,children:A.jsx("div",{className:"media-wrapper",children:A.jsx(jl,{className:n,format:t,nodeKey:o,children:N()})})}):null:A.jsxs(O.Popover,{width:400,position:"bottom",shadow:"md",opened:g,trapFocus:!0,onChange:S=>{p(S),S||(u(""),f(!1))},withinPortal:!0,children:[A.jsx(O.Popover.Target,{children:A.jsx(O.Flex,{w:"100%",children:A.jsx(jl,{className:n,format:t,nodeKey:o,children:A.jsx(Oc,{title:m("editor.embed.addEmbed"),icon:"embed",onClick:()=>p(S=>!S),nodeKey:o})})})}),A.jsx(O.Popover.Dropdown,{children:A.jsx("form",{onSubmit:E,children:A.jsxs(O.Stack,{gap:16,children:[A.jsxs(O.Box,{children:[A.jsx(O.TextInput,{placeholder:m("editor.embed.placeholder"),type:"url","data-autofocus":!0,value:a,onChange:S=>{u(S.currentTarget.value)}}),d&&A.jsx(O.Text,{size:"xs",mt:8,color:"red",children:m("editor.validation.link")})]}),A.jsx(O.Center,{children:A.jsx(O.Button,{w:"100%",type:"submit",disabled:!a,children:m("editor.embed.insert")})})]})})})]})}function f7(n){const t=n.getAttribute("data-lexical-platform"),e=n.getAttribute("src"),r=n.getAttribute("data-lexical-embedid")||"",s=parseFloat(n.getAttribute("data-exportwidth")??"100%"),i=parseFloat(n.getAttribute("height")??"100%"),o=n.getAttribute("data-exportheight");if(t&&typeof e=="string"){const l=vw(e,s,i,r,!1,t);return l.setMinHeight(parseFloat(o)),{node:l}}return{node:null}}class Pc extends Vi{constructor(e,r,s,i,o,l,a,u,d){super(s,l);z(this,"__platform");z(this,"__id");z(this,"__create");z(this,"__width");z(this,"__height");z(this,"__src");z(this,"__minHeight");this.__platform=e,this.__id=r,this.__create=a||!1,this.__width=i||560,this.__height=o||315,this.__src=u,this.__minHeight=d||400}static getType(){return"embed"}static clone(e){return new Pc(e.__platform,e.__id,e.__format,e.__width,e.__height,e.__key,e.__create,e.__src,e.__minHeight)}static importJSON(e){const r=vw(e.src,e.width,e.height,e.embedId,e.create,e.platform);return r.setFormat(e.format),r}exportJSON(){return{...super.exportJSON(),type:"embed",version:1,platform:this.__platform,embedId:this.__id,width:this.__width,height:this.__height,src:this.__src}}createDOM(){const e=document.createElement("div");return e.className="editor-iframe",e}static importDOM(){return{iframe:e=>{const r=e.getAttribute("data-lexical-platform"),s=e.getAttribute("data-lexical-embedid");return r&&typeof s=="string"?{conversion:f7,priority:1}:null}}}updateDOM(){return!1}exportDOM(){if(!this.__src)return{element:null};const e=typeof this.__width=="string"&&this.__width.includes("%")?this.__width:`${this.__width}%`,r=S4.renderToString(A.jsx(u7,{platform:this.__platform,id:this.__id,src:this.__src||"",height:(typeof this.__height=="number"?this.__height:this.__minHeight).toString()+"px",width:e})),s=document.createElement("div");return s.innerHTML=r,this.__src!==""?{element:s.firstChild}:{element:null}}decorate(e,r){const i={base:(r.theme.embedBlock||{}).base||"",focus:""};return A.jsx(d7,{editor:e,nodeKey:this.getKey(),format:this.__format,className:i,platform:this.__platform,embedId:this.__id,width:this.__width,height:this.__height,create:this.__create})}setMinHeight(e){const r=this.getWritable();r.__minHeight=e}setPlatform(e){const r=this.getWritable();r.__platform=e}setId(e){const r=this.getWritable();r.__id=e}setSrc(e){const r=this.getWritable();r.__src=e}getId(){return this.__id}setCreated(e){const r=this.getWritable();r.__create=e}getTextContent(){return c7(this.__platform,this.__id)}setWidthAndHeight(e,r){const s=this.getWritable();s.__width=e,s.__height=r}}function vw(n,t,e,r,s,i){let o=i||"unknown";if(!i){const{platform:l}=KL(n||"");o=l||"unknown"}return new Pc(o,r,void 0,t,e,void 0,s,n)}function DA(n){return n instanceof Pc}const ME=k.lazy(()=>Promise.resolve().then(()=>require("./layers.Bfcc7TOH.js")));function h7(n){const t=n.getAttribute("data-lexical-excalidraw-json"),e=n.firstChild.style.height||"0",r=n.firstChild.style.width||"0",s=n.style.justifyContent||"left",i=e==="inherit"?"inherit":parseInt(e,10),o=r==="inherit"?"inherit":parseInt(r,10);return t?{node:WL(t,o,i,s)}:null}class jo extends oi{constructor(e="[]",r="inherit",s="inherit",i="left",o){super(o);z(this,"__data");z(this,"__width");z(this,"__height");z(this,"__alignment");this.__data=e,this.__width=r,this.__height=s,this.__alignment=i}static getType(){return"excalidraw"}static clone(e){return new jo(e.__data,e.__width,e.__height,e.__alignment,e.__key)}static importJSON(e){return new jo(e.data,e.width??"inherit",e.height??"inherit",e.alignment??"left")}exportJSON(){return{data:this.__data,height:this.__height==="inherit"?void 0:this.__height,type:"excalidraw",version:1,width:this.__width==="inherit"?void 0:this.__width,alignment:this.__alignment||"left"}}createDOM(e){const r=document.createElement("span"),i=e.theme.excalidraw;return i!==void 0&&(r.className=i),r}updateDOM(){return!1}static importDOM(){return{span:e=>e.className==="editor-excalidraw"?{conversion:h7,priority:2}:null}}exportDOM(e){const r=document.createElement("span"),s=document.createElement("span");r.style.display="inline-block",r.style.width="100%";const i=e.getElementByKey(this.getKey());if(i!==null){const o=i.querySelector(".excalidraw-svg");o!==null&&(s.innerHTML=o.outerHTML)}return s.style.width=this.__width==="inherit"?"inherit":`${parseInt(String(this.__width))}%`,s.style.height=this.__height==="inherit"?"inherit":`${parseInt(String(this.__height))}%`,r.setAttribute("data-lexical-excalidraw-json",this.__data),r.className="editor-excalidraw",r.style.justifyContent=this.__alignment,r.style.display="flex",r.appendChild(s),{element:r}}setData(e){const r=this.getWritable();r.__data=e}getWidth(){return this.getLatest().__width}setWidth(e){const r=this.getWritable();r.__width=e}getHeight(){return this.getLatest().__height}setHeight(e){const r=this.getWritable();r.__height=e}setWidthAndHeight(e,r){const s=this.getWritable();s.__width=e,s.__height=r}setAlignment(e){const r=this.getWritable();r.__alignment=e}isInline(){return!1}decorate(){return ME?A.jsx(k.Suspense,{fallback:null,children:A.jsx(ME,{nodeKey:this.getKey(),data:this.__data,width:this.__width,height:this.__height,alignment:this.__alignment})}):A.jsx("div",{})}}function WL(n="[]",t="inherit",e="inherit",r="left"){return new jo(n,t,e,r)}function g7(n){return n instanceof jo}const HL=[{name:"alert",color:"rgb(250, 82, 82)",icon:A.jsx($.IconExclamationCircle,{size:16}),emoji:"❗"},{name:"success",color:"rgb(18, 184, 134)",icon:A.jsx($.IconCheck,{size:16}),emoji:"✅"},{name:"warning",color:"rgb(242, 188, 57)",icon:A.jsx($.IconAlertTriangle,{size:16}),emoji:"⚠️"}],YL=n=>n.mode==="callout",Sw="calc(50% - 25px) calc(50% - 25px)";function Wt(n){const t=G();if(H(t)){const r=t.anchor.getNode();if(r!==null){const s=r.getParent();return n?s:r}}return null}function p7(n){n.update(()=>{const t=G();if(H(t)){const e=t.getNodes();let r=null,s=null;if(e.forEach((i,o)=>{o===0&&(r=i.getParent()),o===e.length-1&&(s=i.getParent())}),r&&s){const i=G();H(i)&&(r.isAttached()&&s.isAttached()?Hn(r)&&Hn(s)?i.setTextNodeRange(r,0,s,s.getTextContentSize()):(i.anchor.set(r.getKey(),0,"element"),i.focus.set(s.getKey(),s.getChildrenSize(),"element")):console.error("Error: One of the nodes is not attached."))}}})}const Ew=(n,t)=>{n.update(()=>{if(typeof t=="string"){const e=me(t);e&&e.remove();return}t&&t.remove()})};function m7(n,t){t.update(()=>{let e=ii();n.getParent()&&(e.anchor.set(n.getKey(),0,"element"),e.focus.set(n.getKey(),0,"element"),Ge(e))})}function A7(){const n=G();if(H(n)){const t=n.anchor,e=n.focus,r=e.getNode(),s=ts(r)?r.__size:r.getTextContentSize(),i=t.offset===0,o=e.offset===s;if(i&&o)return!0}return!1}function Iu(n,t){const e=xy(n),r=[[n,e]];let s;for(;(s=r.length)>0;)for(let i=0;i<s;i++){const o=r.shift();if(o!==void 0){const[l,a]=o;if(Y(l)&&Y(a)){const u=l.getChildren();for(const d of u){if(t&&d.is(t))continue;const f=xy(d);Hn(d)&&Hn(f)&&(f.setFormat(d.__format),f.setStyle(d.__style)),a.append(f),r.push([d,f])}}}}return e}function y7(n,t,e=3){if(!n)return null;let r=n,s=0;for(;r&&s<e;){if(t(r))return r;if(r.__type==="root")break;r=r.getParent(),s++}return null}function dc(n,t,e){var s;const r=e||{root:!0};if(n){let i=n.getParent();if(r[i==null?void 0:i.__type]){const o=t.getElementByKey(n.__key),l=y7(i,Dc);if(l&&(l.getFirstChild()===n.getTopLevelElement()||l.getFirstChild()===((s=n.getTopLevelElement())==null?void 0:s.getParent()))){const u=l.getParent(),d=u?t.getElementByKey(u.__key):null;if(d)return{htmlElement:d,lexicalNode:Oe(d)}}return{htmlElement:o,lexicalNode:n}}return dc(i,t,r)}return{htmlElement:null,lexicalNode:null}}function DE(n,t,e,r){var s;if(n)if((n==null?void 0:n.__type)==="root"||(n==null?void 0:n.__type)==="layout-item"||(n==null?void 0:n.__type)==="callout-wrapper"||(n==null?void 0:n.__type)==="collapsible-content"){const i=(r==null?void 0:r.clientY)||0,{left:o}=((s=t.getElementByKey(n.__key))==null?void 0:s.getBoundingClientRect())||{left:0},{paddingLeft:l}=window.getComputedStyle(r==null?void 0:r.target),a=document.elementFromPoint(o+parseFloat(l)+10,i),u=Oe(a||document.body);return u?dc(u,t,e):{htmlElement:null,lexicalNode:null}}else return dc(n,t,e);return{htmlElement:null,lexicalNode:null}}const dg=n=>{n.update(()=>{G()!==null&&Ge(null)})},ob=()=>{const n=xe(),t=n==null?void 0:n.getFirstChild();return n.getChildren().length>1?!1:t&&Y(t)&&t.isEmpty()&&!ts(t)},GL=n=>{n.update(()=>{const t=xe(),e=we(),r=G();H(r)&&(r.format=0,r.setStyle("")),t.append(e).selectEnd()})},ZL=(n,t,e)=>{const r=n.target;if(r&&(r instanceof HTMLElement||r instanceof SVGElement)){let s=null;const i=r.closest(t);for(const l of e)if(s=r.closest(l),s)break;return{lexicalDOMNode:i,isOutside:!(i||s)}}else return{lexicalDOMNode:null,isOutside:!0}},b7=({setIsMenuOpen:n,onCodeLanguageSelect:t,codeLanguage:e,CODE_LANGUAGE_OPTIONS:r})=>(k.useEffect(()=>()=>{document.documentElement.classList.remove("disable-scroll"),n(!1)},[]),A.jsx(O.Select,{onChange:s=>t(s),data:r.map(([s,i])=>({value:s,label:i})),searchable:!0,defaultValue:e,allowDeselect:!1,style:{width:140},className:"dropdown-select-language",checkIconPosition:"right",rightSection:A.jsx($.IconChevronDown,{style:{width:14,height:14,marginLeft:2}}),maxDropdownHeight:400,variant:"default",styles:{dropdown:{overflow:"auto",zIndex:1e3}}}));function w7({codeLanguage:n,CODE_LANGUAGE_OPTIONS:t,onCodeLanguageSelect:e,onCollapsibleCode:r,copyToClipboard:s,pointerEvents:i,showExpandButton:o,isCollapsed:l}){const[a,u]=k.useState(!1),{t:d}=it.useTranslation(),f=()=>{u(g=>{const p=document.documentElement;return g?p.classList.remove("disable-scroll"):p.classList.add("disable-scroll"),!g})};return A.jsxs(O.Menu,{shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3}},children:[A.jsx(O.Menu.Target,{children:A.jsx(O.Button,{style:{pointerEvents:i},radius:"sm",h:25,px:5,size:"xs",variant:"default",children:A.jsx($.IconMenu2,{size:18})})}),A.jsxs(O.Menu.Dropdown,{children:[A.jsx(O.Menu.Item,{style:{position:"relative",padding:0},disabled:a,closeMenuOnClick:!1,onClick:f,children:A.jsx(b7,{setIsMenuOpen:u,codeLanguage:n,onCodeLanguageSelect:e,CODE_LANGUAGE_OPTIONS:t})}),A.jsx(O.Menu.Item,{rightSection:A.jsx($.IconCopy,{size:14}),onClick:s,children:A.jsx(O.Text,{size:"12px",children:d("editor.menu.main.code.copy")})}),o&&A.jsx(O.Menu.Item,{onClick:r,rightSection:l?A.jsx($.IconArrowsDiagonal,{size:14}):A.jsx($.IconArrowsDiagonalMinimize2,{size:14}),children:A.jsx(O.Text,{size:"12px",children:d(l?"editor.menu.main.code.collapsible.hidden":"editor.menu.main.code.collapsible.expand")})})]})]})}function JL({onClick:n,ariaLabel:t,children:e,...r}){return A.jsx(O.Button,{radius:"sm",h:25,px:5,mr:3,size:"xs",variant:"default",onClick:n,"aria-label":t,...r,children:e})}const C7={copy:$.IconCopy,success:$.IconCheck,loader:$.IconCircleDashed};function x7({copyToClipboard:n,pointerEvents:t}){const[e,r]=k.useState("copy"),{t:s}=it.useTranslation();async function i(){await n()&&(r("loader"),setTimeout(()=>{r("success"),setTimeout(()=>{r("copy")},1e3)},1e3))}const o=C7[e];return A.jsxs(JL,{style:{pointerEvents:t},onClick:i,ariaLabel:"copy",children:[A.jsx(O.Text,{mr:"4px",size:"12px",children:s("editor.menu.main.code.copy")}),A.jsx(o,{size:14})]})}function bp(n,t,e){const r=k.useRef(null);return r.current=n,k.useMemo(()=>ml.debounce((...s)=>{r.current&&r.current(...s)},t,{maxWait:e}),[t,e])}const VL={json:"JSON",...bK};function v7({anchorElem:n}){var R,F;const[t]=_e(),{t:e}=it.useTranslation(),[r,s]=k.useState(""),[i,o]=k.useState(!1),[l,a]=k.useState(null),[u,d]=k.useState(null),[f,g]=k.useState({right:"0",top:"0"}),p=k.useRef(null),m=k.useRef(null),y=(R=E())==null?void 0:R.classList.contains("dsd__theme__callout-wrapper"),b=m.current&&((F=m.current)==null?void 0:F.offsetWidth)<=300,x=m.current&&m.current.scrollHeight>280,C=i?"auto":"none",v=N();function E(){return m.current}function N(){const j=[];for(const[U,V]of Object.entries(VL))j.push([U,V]);return j.sort(([U],[V])=>U.localeCompare(V)),j}const S=bp(j=>{const{lexicalDOMNode:U,isOutside:V}=ZL(j,"code.dsd__theme__code, div.dsd__theme__callout-wrapper",["div.dropdown-select-language","div.mantine-Select-option","div.action-menu-container","div.mantine-Menu-dropdown"]);if(V){o(!1);return}if(!U)return;m.current=U;let ne=null,ae="";if(t.update(()=>{const re=Oe(U);re&&a(re.__key),ts(re)?(ne=re,ae=ne.getLanguage()||"",s(ae?J1[ae]||ae:"Выберите форматирование"),d(ne.__isCollapsed)):Ki(re)&&(ne=re)}),ne){const{y:re,right:ee,left:se}=n.getBoundingClientRect(),{y:q,right:W,left:J}=U.getBoundingClientRect();o(!0),p.current&&(p.current.style.visibility="visible");const te=q-re,le=ee-W,ce=J-se;g(()=>({right:`${le}px`,left:`${ce}px`,top:`${te}px`}))}},50,500);k.useEffect(()=>Xe(t.registerMutationListener(Di,j=>{t.getEditorState().read(()=>{for(const[U,V]of j)V==="destroyed"&&o(!1)})}),t.registerUpdateListener(({dirtyElements:j,dirtyLeaves:U})=>{i&&(j.size>0||U.size>0)&&t.getEditorState().read(()=>{const V=Wt();(V==null?void 0:V.__type)!=="extend-code"&&(V==null?void 0:V.__type)!=="code-highlight"&&p.current&&(p.current.style.visibility="hidden")})})),[t,i]),k.useEffect(()=>(document.addEventListener("mousemove",S),()=>{o(!1),S.cancel(),document.removeEventListener("mousemove",S)}),[S]);const _=k.useCallback(()=>{d(j=>!j),t.update(()=>{if(l!==null){const j=me(l);ts(j)&&j.toggleCodeState()}})},[t,l]),I=k.useCallback(j=>{t.update(()=>{if(l!==null){const U=me(l);if(ts(U)){U.setLanguage(j),U.selectStart();const V=U.getLanguage()||"";s(V?J1[V]||V:"")}}})},[t,l]),L=j=>{t.update(()=>{const U=me(l);Ki(U)&&t.update(()=>{const V=YL(j);U.setType(V?j.meta.type:void 0),U.setBackgroundColor(j.value),o(!1)})})};async function M(){const j=E();if(!j)return!1;let U="";t.update(()=>{const V=Oe(j);ts(V)&&(U=V.getTextContent());const ne=G();Ge(ne)});try{return await navigator.clipboard.writeText(U),!0}catch(V){return console.error("Failed to copy: ",V),!1}}return y?A.jsx("div",{className:`action-menu-container callout-action ${i?"visible":""}`,ref:p,style:{right:f.right,top:f.top,pointerEvents:C},children:i&&A.jsx(Ct.NewColorPicker,{data:{callout:{label:e("editor.colors.theme"),filled:!0,palette:HL.map(j=>({label:e(`editor.colors.callout.${j.name}`),value:O.alpha(j.color,.19),icon:j.icon,meta:{type:j.name,emoji:j.emoji}}))}},onChange:j=>{L(j)},modes:["callout","background"],hideInherit:!0,target:A.jsx(O.ActionIcon,{variant:"default","aria-label":"Settings",children:A.jsx(Ce,{name:"palette",style:{cursor:"pointer"}})}),menuProps:{trigger:"click",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}},value:{background:"",callout:""}})}):A.jsxs("div",{className:`action-menu-container ${i?"visible":""}`,ref:p,style:{right:f.right,top:f.top,left:f.left,pointerEvents:C},children:[!b&&A.jsx(O.Select,{onChange:j=>I(j),data:v.map(([j,U])=>({value:j,label:U})),searchable:!0,value:r,allowDeselect:!1,style:{pointerEvents:C,width:140},className:"dropdown-select-language",checkIconPosition:"right",rightSection:A.jsx($.IconChevronDown,{style:{width:14,height:14,marginLeft:2}}),maxDropdownHeight:400,variant:"default"}),A.jsxs("div",{className:"code-action-button-container",children:[!b&&A.jsxs(A.Fragment,{children:[A.jsx(x7,{pointerEvents:C,copyToClipboard:M}),x?A.jsx(JL,{style:{pointerEvents:C},onClick:_,ariaLabel:"expand",children:u?A.jsx(O.Tooltip,{label:e("editor.menu.main.code.collapsible.hidden"),children:A.jsx($.IconArrowsDiagonal,{size:14})}):A.jsx(O.Tooltip,{label:e("editor.menu.main.code.collapsible.expand"),children:A.jsx($.IconArrowsDiagonalMinimize2,{size:14})})}):null]}),A.jsx(O.Tooltip,{label:e("editor.menu.main.code.exitCommandText"),children:A.jsx(O.Text,{truncate:"end",size:"sm",id:"exitCommandParagraph",children:"Shift + Enter"})})]}),b&&A.jsx(w7,{onCodeLanguageSelect:I,CODE_LANGUAGE_OPTIONS:v,codeLanguage:r,onCollapsibleCode:_,copyToClipboard:M,pointerEvents:C,showExpandButton:x,isCollapsed:u})]})}function S7({anchorElem:n=document.body}){return Or.createPortal(A.jsx(v7,{anchorElem:n}),(n==null?void 0:n.parentElement)||document.body)}const OA=new Map;class vr extends Di{constructor(e=!1,r="plain",s){super(r,s);z(this,"__isCollapsed");this.__isCollapsed=e}static getType(){return"extend-code"}static clone(e){return new vr(e.__isCollapsed,e.getLanguage(),e.__key)}static importJSON(e){const{isCollapsed:r=!0,language:s=null}=e,i=new vr(r,s,e.key);return i.setLanguage(e.language||""),i}createDOM(e,r){const s=document.createElement("code");return s.classList.add("dsd__theme__code"),s.setAttribute("spellcheck","false"),s.setAttribute("data-language",String(this.__language)),s.setAttribute("data-highlight-language",String(this.__language)),this.__isCollapsed?(s.classList.add(e.theme.codeCollapsed),s.setAttribute("data-collapsed",String(this.__isCollapsed))):s.setAttribute("data-collapsed","false"),setTimeout(()=>{OA.set(this.__key,s.getAttribute("data-gutter")||"")},0),s}updateDOM(e,r,s){return this.__isCollapsed!==e.__isCollapsed?(this.__isCollapsed?(r.classList.add(Do.codeCollapsed),r.setAttribute("data-collapsed","true")):(r.classList.remove(Do.codeCollapsed),r.setAttribute("data-collapsed","false")),!1):(setTimeout(()=>{OA.set(this.__key,r.getAttribute("data-gutter")||"")},0),super.updateDOM(e,r,s))}exportDOM(e){var o;const r=document.createElement("pre");st(r,e._config.theme.code,(o=e._config.theme.ltr)==null?void 0:o[0]),r.setAttribute("spellcheck","false"),r.setAttribute("data-language",String(this.__language)||"plain"),r.setAttribute("data-highlight-language",String(this.__language)||"plain");const s=VL[this.__language||"plain"]||this.__language;r.setAttribute("data-name-language",String(s)),r.setAttribute("data-collapsed",String(this.__isCollapsed)),this.__isCollapsed&&r.classList.add(e._config.theme.codeCollapsed);const i=OA.get(this.__key);return r.setAttribute("data-gutter",i||"1"),{element:r}}static importDOM(){return{...super.importDOM(),pre:r=>{const s=r.getAttribute("data-collapsed")==="true",i=r.getAttribute("data-language")||"";return r.hasAttribute("data-collapsed")?{conversion:()=>({node:new vr(s,i)}),priority:1}:null}}}exportJSON(){return{...super.exportJSON(),isCollapsed:this.__isCollapsed,language:this.getLanguage(),type:"extend-code",version:1}}toggleCodeState(){const e=this.getWritable();return e.__isCollapsed=!this.__isCollapsed}insertNewAfter(e,r=!0){const{anchor:s,focus:i}=e,l=(s.isBefore(i)?s:i).getNode();if(ie(l)){let a=E7(l);const u=[];for(;;)if(Kn(a))u.push(ns()),a=a.getNextSibling();else if(Qt(a)){let b=0;const x=a.getTextContent(),C=a.getTextContentSize();for(;b<C&&x[b]===" ";)b++;if(b!==0&&u.push(Mt(new Fl(" ".repeat(b)))),b!==C)break;a=a.getNextSibling()}else break;const d=l.splitText(s.offset)[0],f=s.offset===0?0:1,g=d.getIndexWithinParent()+f,p=l.getParentOrThrow(),m=[dr(),...u];p.splice(g,0,m);const y=u[u.length-1];y?y.select():s.offset===0?d.selectPrevious():d.getNextSibling().selectNext(0,0)}if(ts(l)){const{offset:a}=e.anchor;l.splice(a,0,[dr()]),l.select(a+1,a+1)}return null}}function QL(n=!1){return Mt(new vr(n))}function ts(n){return n instanceof vr}function E7(n){let t=n,e=n;for(;Qt(e)||Kn(e);)t=e,e=e.getPreviousSibling();return t}function k7({className:n,format:t,editor:e,nodeKey:r,formID:s}){const i={base:"dsd__theme__embedBlock dsd__theme__embedBlock__form",focus:"dsd__theme__embedBlockFocus"};return A.jsxs(jl,{className:i,format:t,nodeKey:r,children:[A.jsx(O.Tooltip,{label:"Удалить",children:A.jsx(O.ActionIcon,{color:"gray","aria-label":"Settings",className:"image-delete-icon",variant:"default",onClick:o=>{o.stopPropagation(),e.update(()=>{if(G()){const l=me(r);l&&l.remove()}return!1})},children:A.jsx(Ce,{name:"trash"})})}),A.jsx("iframe",{width:"100%",height:"500",src:`https://dudoc.io/f/${s}`,title:"Form",style:{border:"none"}})]})}function T7(n){const t=n.getAttribute("data-form");return t?{node:kw(t)}:null}class Md extends Vi{constructor(e,r,s){super(r,s);z(this,"__id");this.__id=e}static getType(){return"form"}static clone(e){return new Md(e.__id,e.__format,e.__key)}static importJSON(e){const r=kw(e.formID);return r.setFormat(e.format),r}exportJSON(){return{...super.exportJSON(),type:"form",version:1,formID:this.__id}}exportDOM(){const e=document.createElement("iframe");return e.setAttribute("data-form",this.__id),e.setAttribute("width","100%"),e.setAttribute("height","500"),e.setAttribute("src",`https://dudoc.io/f/${this.__id}`),e.setAttribute("title","Form"),{element:e}}static importDOM(){return{iframe:e=>e.hasAttribute("data-form")?{conversion:T7,priority:1}:null}}updateDOM(){return!1}getId(){return this.__id}getTextContent(){return`https://dudoc.io/f/${this.__id}`}decorate(e,r){const s=r.theme.embedBlock||{},i={base:s.base||"",focus:s.focus||""};return A.jsx(k7,{className:i,format:this.__format,nodeKey:this.getKey(),formID:this.__id,editor:e})}}function kw(n){return new Md(n)}const _7=k.lazy(()=>Promise.resolve().then(()=>require("./layers.CtCTIWni.js")));function N7(n){const t=n;if(t.src.startsWith("file:///"))return null;const{alt:e,src:r,width:s,height:i}=t,o=t.getAttribute("data-id"),l=t.getAttribute("height")??"inherit",a=t.getAttribute("width")??"inherit",u=r===window.location.href?"":r,d=t.style.justifyContent||"left";return{node:wp({altText:e,height:l!=null&&l.includes("%")?l:i,src:u,width:a!=null&&a.includes("%")?a:s,id:String(o),alignment:d})}}class Qi extends oi{constructor(e,r,s,i,o,l,a,u,d,f,g,p){super(d);z(this,"__src");z(this,"__altText");z(this,"__width");z(this,"__height");z(this,"__maxWidth");z(this,"__showCaption");z(this,"__caption");z(this,"__captionsEnabled");z(this,"__id");z(this,"__create");z(this,"__alignment");this.__src=e,this.__altText=r,this.__maxWidth=Number(s),this.__width=i||"inherit",this.__height=o||"inherit",this.__showCaption=l||!1,this.__caption=a||hd(),this.__captionsEnabled=u||u===void 0,this.__id=f||"0",this.__create=g||!1,this.__alignment=p||"left"}static getType(){return"image"}static clone(e){return new Qi(e.__src,e.__altText,e.__maxWidth,e.__width,e.__height,e.__showCaption,e.__caption,e.__captionsEnabled,e.__key,e.__id,e.__create,e.__alignment)}static importJSON(e){const{altText:r,height:s,width:i,maxWidth:o,caption:l,src:a,showCaption:u,alignment:d}=e,f=wp({altText:r,height:s,maxWidth:o,showCaption:u,src:a,width:i,create:!1,alignment:d}),g=f.__caption,p=g.parseEditorState(l.editorState);return p.isEmpty()||g.setEditorState(p),f}exportDOM(){const e=document.createElement("img");e.setAttribute("src",this.__src),e.setAttribute("alt",""),e.setAttribute("data-id",this.__id),(this.__width==="auto"||typeof this.__width=="number"&&this.__width%1!==0)&&e.setAttribute("data-type","icon/image"),typeof this.__width=="number"?(e.setAttribute("width","inherit"),e.setAttribute("height","inherit")):(e.setAttribute("width",this.__width.toString()),e.setAttribute("height",this.__height.toString())),e.setAttribute("data-id",this.__id),e.style.justifyContent=this.__alignment||"left";const r=document.createElement("span");return r.className="editor-image",r.style.justifyContent=this.__alignment||"left",r.appendChild(e),{element:r}}static importDOM(){return{img:()=>({conversion:N7,priority:0})}}exportJSON(){return{altText:this.getAltText(),caption:this.__caption.toJSON(),height:this.__height==="inherit"?0:this.__height,maxWidth:this.__maxWidth,showCaption:this.__showCaption,src:this.getSrc(),type:"image",version:1,width:this.__width==="inherit"?0:this.__width,alignment:this.__alignment}}setId(e){const r=this.getWritable();r.__id=e}setSrc(e){if(this.getSrc()!==""&&e.trim()==="")return;const s=this.getWritable();s.__src=e}setAlt(e){const r=this.getWritable();r.__altText=e}setAlignment(e){const r=this.getWritable();r.__alignment=e}setWidthAndHeight(e,r){const s=this.getWritable();s.__width=e,s.__height=r}setShowCaption(e){const r=this.getWritable();r.__showCaption=e}createDOM(e){const r=document.createElement("span"),i=e.theme.image;return r.style.justifyContent=this.__alignment||"left",i!==void 0&&(r.className=i),r}updateDOM(e,r){return this.__alignment!==e.__alignment&&(r.style.display="flex",r.style.justifyContent=this.__alignment||"left"),!1}getSrc(){return this.__src}replaceBase64(e,r){const s=this.getWritable();s.__src=e,r&&(s.__id=r)}getAltText(){return this.__altText}isInline(){return!1}isKeyboardSelectable(){return!0}setCreated(e){const r=this.getWritable();r.__create=e}decorate(){return A.jsx(_7,{src:this.__src,altText:this.__altText,width:this.__width,height:this.__height,maxWidth:this.__maxWidth,nodeKey:this.getKey(),showCaption:this.__showCaption,caption:this.__caption,id:this.__id,alignment:this.__alignment||"left",create:this.__create})}}function wp({altText:n,height:t,maxWidth:e,captionsEnabled:r,src:s,width:i,showCaption:o,caption:l,key:a,id:u,create:d,alignment:f}){return Mt(new Qi(s,n,e,i,t,o,l,r,a,u,d,f))}function fc(n){return n instanceof Qi}const I7=k.lazy(()=>Promise.resolve().then(()=>require("./layers.CmxZ8EKk.js")));function L7(n){if(n instanceof HTMLImageElement){const{alt:t,src:e,width:r,height:s}=n;return{node:XL({altText:t,height:s,src:e,width:r})}}return null}class Cp extends oi{constructor(e,r,s,i,o,l,a,u){super(u);z(this,"__src");z(this,"__altText");z(this,"__width");z(this,"__height");z(this,"__showCaption");z(this,"__caption");z(this,"__position");this.__src=e,this.__altText=r,this.__width=i||"inherit",this.__height=o||"inherit",this.__showCaption=l||!1,this.__caption=a||hd(),this.__position=s}static getType(){return"inline-image"}static clone(e){return new Cp(e.__src,e.__altText,e.__position,e.__width,e.__height,e.__showCaption,e.__caption,e.__key)}static importJSON(e){const{altText:r,height:s,width:i,caption:o,src:l,showCaption:a,position:u}=e,d=XL({altText:r,height:s,position:u,showCaption:a,src:l,width:i}),f=d.__caption,g=f.parseEditorState(o.editorState);return g.isEmpty()||f.setEditorState(g),d}static importDOM(){return{img:()=>({conversion:L7,priority:0})}}exportDOM(){const e=document.createElement("img");return e.setAttribute("src",this.__src),e.setAttribute("alt",this.__altText),e.setAttribute("width",this.__width.toString()),e.setAttribute("height",this.__height.toString()),{element:e}}exportJSON(){return{altText:this.getAltText(),caption:this.__caption.toJSON(),height:this.__height==="inherit"?0:this.__height,position:this.__position,showCaption:this.__showCaption,src:this.getSrc(),type:"inline-image",version:1,width:this.__width==="inherit"?0:this.__width}}getSrc(){return this.__src}getAltText(){return this.__altText}setAltText(e){const r=this.getWritable();r.__altText=e}setWidthAndHeight(e,r){const s=this.getWritable();s.__width=e,s.__height=r}getShowCaption(){return this.__showCaption}setShowCaption(e){const r=this.getWritable();r.__showCaption=e}getPosition(){return this.__position}setPosition(e){const r=this.getWritable();r.__position=e}update(e){const r=this.getWritable(),{altText:s,showCaption:i,position:o}=e;s!==void 0&&(r.__altText=s),i!==void 0&&(r.__showCaption=i),o!==void 0&&(r.__position=o)}createDOM(e){const r=document.createElement("span"),s=`${e.theme.inlineImage} position-${this.__position}`;return s!==void 0&&(r.className=s),r}updateDOM(e,r,s){const i=this.__position;if(i!==e.__position){const o=`${s.theme.inlineImage} position-${i}`;o!==void 0&&(r.className=o)}return!1}decorate(){return A.jsx(k.Suspense,{fallback:null,children:A.jsx(I7,{src:this.__src,altText:this.__altText,width:this.__width,height:this.__height,nodeKey:this.getKey(),showCaption:this.__showCaption,caption:this.__caption,position:this.__position})})}}function XL({altText:n,position:t,height:e,src:r,width:s,showCaption:i,caption:o,key:l}){return Mt(new Cp(r,n,t,s,e,i,o,l))}function M7(n){return n instanceof Cp}class xp extends Dn{static getType(){return"keyword"}static clone(t){return new xp(t.__text,t.__key)}static importJSON(t){const e=D7(t.text);return e.setFormat(t.format),e.setDetail(t.detail),e.setMode(t.mode),e.setStyle(t.style),e}exportJSON(){return{...super.exportJSON(),type:"keyword",version:1}}createDOM(t){const e=super.createDOM(t);return e.style.cursor="default",e.className="keyword",e}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}isTextEntity(){return!0}}function D7(n){return new xp(n)}function O7(n){const t=n.style.gridTemplateColumns;return t?{node:vp(t)}:null}class is extends gt{constructor(e,r){super(r);z(this,"__templateColumns");this.__templateColumns=e}static getType(){return"layout-container"}static clone(e){return new is(e.__templateColumns,e.__key)}createDOM(e){const r=document.createElement("div");return r.style.gridTemplateColumns=this.__templateColumns,typeof e.theme.layoutContainer=="string"&&st(r,e.theme.layoutContainer),r}exportDOM(){const e=document.createElement("div");return e.style.gridTemplateColumns=this.__templateColumns,e.setAttribute("data-lexical-layout-container","true"),e.classList.add("dsd__theme__layoutContainer"),{element:e}}updateDOM(e,r){return e.__templateColumns!==this.__templateColumns&&(r.style.gridTemplateColumns=this.__templateColumns),!1}static importDOM(){return{div:e=>e.hasAttribute("data-lexical-layout-container")?{conversion:O7,priority:2}:null}}static importJSON(e){return vp(e.templateColumns)}isShadowRoot(){return!0}canBeEmpty(){return!1}exportJSON(){return{...super.exportJSON(),templateColumns:this.__templateColumns,type:"layout-container",version:1}}getTemplateColumns(){return this.getLatest().__templateColumns}setTemplateColumns(e){this.getWritable().__templateColumns=e}}function vp(n){return new is(n)}function fg(n){return n instanceof is}function R7(n){var e;const t=ms();return(e=n.parentElement)!=null&&e.classList.contains("dsd__theme__layoutItem")?{node:t}:null}class _s extends gt{static getType(){return"layout-divider"}static clone(t){return new _s(t.__key)}createDOM(t){const e=document.createElement("div");return typeof t.theme.layoutDivider=="string"&&st(e,t.theme.layoutDivider),e.setAttribute("contenteditable","false"),e}updateDOM(){return!1}static importDOM(){return{div:t=>t.className!=="dsd__theme__layoutDivider"?null:{conversion:R7,priority:2}}}static importJSON(){return ms()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"layout-divider",version:1}}}function ms(){return new _s}function P7(n){return n instanceof _s}function B7(n){const t=n.style.backgroundColor||"transparent";return{node:js(t)}}class Pr extends gt{constructor(e,r){super(r);z(this,"__backgroundColor");this.__backgroundColor=e}static getType(){return"layout-item"}static clone(e){return new Pr(e.__backgroundColor,e.__key)}createDOM(e){const r=document.createElement("div");return r.style.backgroundColor=this.__backgroundColor,typeof e.theme.layoutItem=="string"&&st(r,e.theme.layoutItem),r}exportDOM(){const e=document.createElement("div");return e.style.backgroundColor=this.__backgroundColor,e.classList.add("dsd__theme__layoutItem"),{element:e}}updateDOM(e,r){return e.__backgroundColor!==this.__backgroundColor&&(r.style.backgroundColor=this.__backgroundColor),!1}static importDOM(){return{div:e=>e.className!=="dsd__theme__layoutItem"?null:{conversion:B7,priority:2}}}static importJSON(){return js()}isShadowRoot(){return!1}setLayoutBackground(e){this.getWritable().__backgroundColor=e}exportJSON(){return{...super.exportJSON(),type:"layout-item",backgroundColor:this.__backgroundColor,version:1}}}function js(n="transparent"){return new Pr(n)}function Hs(n){return n instanceof Pr}function j7(n){const t=n.textContent;return t!==null?{node:qL(t)}:null}const F7="background-color: rgba(24, 119, 232, 0.2)";class Sp extends Dn{constructor(e,r,s){super(r??e,s);z(this,"__mention");this.__mention=e}static getType(){return"mention"}static clone(e){return new Sp(e.__mention,e.__text,e.__key)}static importJSON(e){const r=qL(e.mentionName);return r.setTextContent(e.text),r.setFormat(e.format),r.setDetail(e.detail),r.setMode(e.mode),r.setStyle(e.style),r}exportJSON(){return{...super.exportJSON(),mentionName:this.__mention,type:"mention",version:1}}createDOM(e){const r=super.createDOM(e);return r.style.cssText=F7,r.className="mention",r}exportDOM(){const e=document.createElement("span");return e.setAttribute("data-lexical-mention","true"),e.textContent=this.__text,{element:e}}static importDOM(){return{span:e=>e.hasAttribute("data-lexical-mention")?{conversion:j7,priority:1}:null}}isTextEntity(){return!0}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function qL(n){const t=new Sp(n);return t.setMode("segmented").toggleDirectionless(),Mt(t)}const lb=be("INSERT_MUSIC_COMMAND"),$L=be("UPLOAD_MUSIC_COMMAND");function z7(){const[n]=_e(),{t}=it.useTranslation(),{imperativeHandleRef:e,maxFileSize:r}=k.useContext(kt);return k.useEffect(()=>{if(!n.hasNodes([Bc]))throw new Error("MusicPlugin: MusicNode not registered on editor");const s=i=>{const o=i.filter(l=>l.type.includes("Music/"));if(i.length>1){Ct.showMessageNotification({message:t("editor.validation.doNotUploadMoreThanSingleFile")});return}if(o[0].size>r*1024*1024){Ct.showErrorNotification({message:t("editor.validation.shouldNotExceed",{maxSize:r})});return}n.dispatchCommand(lb,"upload"),setTimeout(()=>{n.dispatchCommand($L,i)})};return e!=null&&e.current&&(e.current.insertMusics=s),n.registerCommand(lb,i=>{const l=Tw(i==="upload"?"":i,i!=="upload");return Ep(l),!1},Te)},[n]),null}function U7({className:n,format:t,src:e,editor:r,nodeKey:s,create:i}){const{t:o}=it.useTranslation(),{t:l}=it.useTranslation("ui"),[a,u]=k.useState(!1),[d,f]=k.useState(!1),{start:g,cancel:p}=ip(),[m,y]=k.useState(0),{fetchUploadMedia:b,maxFileSize:x}=k.useContext(kt);k.useEffect(()=>{i&&f(!0)},[i]),k.useEffect(()=>{const N=document.documentElement;So(d,N)},[d]);const C=k.useMemo(()=>[{key:"link",enabled:!0},{key:"upload",enabled:!0}].filter(S=>S.enabled).map(S=>S.key),[]);k.useEffect(()=>r.registerCommand($L,N=>!1,Te),[]);const v=N=>{r.update(()=>{const S=me(s);if(!S)return;hg(S)&&(f(!1),S.setSrc(N));const _=S.getNextSibling();_&&Ge(_.selectNext())})},E=N=>{r.update(()=>{u(!0),f(!1);const S=g();b&&b(N[0],(_,I,L)=>{const{originalFileName:M}=L,R=new URLSearchParams({originalFileName:M}),F=`${_}?${R.toString()}`;v(F),y(0),u(!1)},()=>{y(0),u(!1)},S,_=>{y(_)})})};return e?A.jsx("audio",{src:e,controls:!0}):A.jsx(Ct.FilePicker,{showTabs:C,uploading:!1,type:"audio",dropZoneProps:{multiple:!1,maxSize:x*1024*1024,accept:{"audio/*":[]}},onUpload:E,onChange:N=>{v(N)},popoverProps:{opened:d,position:"bottom",onChange:f},children:A.jsx(O.Flex,{w:"100%",children:A.jsx(jl,{className:n,format:t,nodeKey:s,children:A.jsx(Oc,{isLoading:a,title:o("editor.audio.add_audio"),icon:"music",onClick:()=>f(N=>!N),nodeKey:s,progress:m,onAfterCancel:()=>{p(),u(!1)}})})})})}function K7(n){const t=n.getAttribute("data-src");return{node:Tw(t||"")}}class Bc extends Vi{constructor(e,r,s,i){super(r,s);z(this,"__src");z(this,"__create");this.__src=e,this.__create=i||!1}static getType(){return"music"}static clone(e){return new Bc(e.__src,e.__format,e.__key,e.__create)}static importJSON(e){const r=Tw(e.src);return r.setFormat(e.format),r}exportJSON(){return{...super.exportJSON(),type:"music",version:1,src:this.__src}}static importDOM(){return{span:e=>e.classList.contains("audio-container")?{conversion:K7,priority:1}:null}}createDOM(){const e=document.createElement("div");return e.className="audio-container",e}updateDOM(e,r){return!1}exportDOM(){const e=document.createElement("span"),r=document.createElement("audio");return e.className="audio-container",r.setAttribute("controls","true"),r.setAttribute("src",this.__src),e.setAttribute("data-src",this.__src),e.appendChild(r),{element:e}}decorate(e,r){const i={base:(r.theme.embedBlock||{}).base||"",focus:""};return A.jsx(U7,{editor:e,nodeKey:this.getKey(),format:this.__format,className:i,src:this.__src,create:this.__create})}setSrc(e){const r=this.getWritable();r.__src=e}setCreated(e){const r=this.getWritable();r.__create=e}}function Tw(n,t){return new Bc(n,void 0,void 0,t)}function hg(n){return n instanceof Bc}function W7({nodeKey:n}){const[t]=_e(),[e,r,s]=sp(n),i=k.useCallback(o=>{if(o.preventDefault(),e&&Gt(G())){const l=me(n);if(Y7(l))return l.remove(),!0}return!1},[e,n]);return k.useEffect(()=>Xe(t.registerCommand(Hi,o=>{const l=t.getElementByKey(n);return o.target===l?(o.shiftKey||s(),r(!e),!0):!1},Te),t.registerCommand(bc,i,Te),t.registerCommand(Yl,i,Te)),[s,t,e,n,i,r]),k.useEffect(()=>{const o=t.getElementByKey(n);o!==null&&(o.className=e?"selected":"")},[t,e,n]),null}class Dd extends oi{static getType(){return"page-break"}static clone(t){return new Dd(t.__key)}static importJSON(){return e2()}static importDOM(){return{figure:t=>t.getAttribute("type")!==this.getType()?null:{conversion:H7,priority:As}}}exportJSON(){return{type:this.getType(),version:1}}createDOM(){const t=document.createElement("figure");return t.style.pageBreakAfter="always",t.setAttribute("type",this.getType()),t}getTextContent(){return`
45
+ `}isInline(){return!1}updateDOM(){return!1}decorate(){return A.jsx(W7,{nodeKey:this.__key})}}function H7(){return{node:e2()}}function e2(){return new Dd}function Y7(n){return n instanceof Dd}function G7(n){const t=n.getAttribute("data-src"),e=n.getAttribute("data-json");return{node:_w(t||"",e||"",!1)}}class Od extends Vi{constructor(e,r,s,i,o){super(i,o);z(this,"__src");z(this,"__json");z(this,"__create");this.__src=e,this.__json=r,this.__create=s}static getType(){return"swagger"}static clone(e){return new Od(e.__src,e.__json,!1,e.__format,e.__key)}static importJSON(e){const r=_w(e.src,e.json);return r.setFormat(e.format),r}exportJSON(){return{...super.exportJSON(),src:this.__src,json:this.__json,create:this.__create,type:"swagger",version:1}}createDOM(){const e=document.createElement("span");return e.className="editor-swagger",e}setSrc(e){const r=this.getWritable();r.__src=e}setJSON(e){const r=this.getWritable();r.__json=e}updateDOM(){return!1}getSrc(){return this.__src}getJSON(){return this.__json}exportDOM(){const e=document.createElement("span");return e.classList.add("editor-swagger"),e.setAttribute("data-src",this.getSrc()),e.setAttribute("data-json",this.getJSON()),{element:e}}static importDOM(){return{span:e=>e.classList.contains("editor-swagger")?{conversion:G7,priority:1}:null}}decorate(e,r){return(r.theme.embedBlock||{}).base,A.jsx("div",{})}}function _w(n,t,e){return new Od(n,t,e)}function Nw(n,t=!1){const e=n.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);if(e&&e[2].length===11)return{platform:"youtube",id:e[2]};const r=n.match(/vk\.com\/video(?:_ext\.php\?oid=-?(\d+)&id=(\d+)|-(\d+)_(\d+))/);if(r){const o=r[1]||r[3],l=r[2]||r[4];return{platform:"vk",id:`${o}-${l}`}}const s=n.match(/rutube\.ru\/(?:play\/embed|video)\/([a-zA-Z0-9]+)/);if(s)return{platform:"rutube",id:s[1]};if(n==="upload")return{platform:"upload",id:null};if(t)return{platform:"link",id:n};const i=n.split("/").pop();return i?{platform:"download",id:i}:{platform:"unknown",id:null}}function hc(n,t){let e="";switch(n){case"youtube":e=`https://www.youtube-nocookie.com/embed/${t}`;break;case"download":t.includes("/")?e=`${t}`:/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)?e=`/v1/attachments/${t}`:e=`${t}`;break;case"vk":const r=t.split("-");e=`https://vk.com/video_ext.php?oid=-${r[0]}&id=${r[1]}`;break;case"link":e=t;break;case"rutube":e=`https://rutube.ru/play/embed/${t}`;break}return e}function Z7(n,t){if(n==="download"){const r=/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/i,s=t.match(r);return{attachmentId:s?s[0]:t.split("/").pop()||t}}const e=hc(n,t);return e.startsWith("http://")||e.startsWith("https://")?{src:e,attachmentId:t}:{attachmentId:e}}function J7(n){const t=n.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return!!(t&&t[2].length===11||n.match(/vk\.com\/video(?:_ext\.php\?oid=-?(\d+)&id=(\d+)|-(\d+)_(\d+))/)||n.match(/rutube\.ru\/(?:play\/embed|video)\/([a-zA-Z0-9]+)/)||n.match(/\.(mp4|webm|ogg|mov|avi|mkv)(\?.*)?$/i))}const ab=be("INSERT_VIDEO_COMMAND"),t2=be("UPLOAD_VIDEO_COMMAND");function V7(){const[n]=_e(),{t}=it.useTranslation(),{imperativeHandleRef:e,maxFileSize:r}=k.useContext(kt);return k.useEffect(()=>{if(!n.hasNodes([ia]))throw new Error("VideoPlugin: VideoNode not registered on editor");const s=i=>{const o=i.filter(l=>l.type.includes("video/"));if(i.length>1){Ct.showMessageNotification({message:t("editor.validation.doNotUploadMoreThanSingleFile")});return}if(o[0].size>r*1024*1024){Ct.showErrorNotification({message:t("editor.validation.shouldNotExceed",{maxSize:r})});return}n.dispatchCommand(ab,"upload"),setTimeout(()=>{n.dispatchCommand(t2,i)})};return e!=null&&e.current&&(e.current.insertVideos=s),n.registerCommand(ab,i=>{const o=Lw(i,"100%","100%","left",i!=="upload");return Ep(o),!1},Te)},[n]),null}const Iw=({editor:n,nodeKey:t,opened:e,setOpened:r,t:s,setShown:i,isShown:o})=>{const l=a=>{t&&n.update(()=>{const u=me(t);(u instanceof Qi||u instanceof ia||u instanceof jo)&&(u.setAlignment(a),u.getPreviousSibling()?u.selectPrevious():u.selectStart(),i&&i(!1))})};return A.jsxs(O.Menu,{opened:e,shadow:"md",onChange:r,transitionProps:ci,children:[A.jsx(O.Menu.Target,{children:A.jsx(O.Tooltip,{label:s("editor.toolbar.align"),disabled:o,children:A.jsx(O.ActionIcon,{size:24,variant:"default",color:"gray","aria-label":"Settings",children:A.jsx(Ce,{size:"14",name:"align-justify"})})})}),A.jsxs(O.Menu.Dropdown,{p:0,py:3,children:[A.jsx(O.Menu.Item,{onClick:()=>{l("left")},leftSection:A.jsx(Ce,{size:"16",name:"align-left"}),children:s("editor.toolbar.left")}),A.jsx(O.Menu.Item,{onClick:()=>l("center"),leftSection:A.jsx(Ce,{size:"16",name:"align-center"}),children:s("editor.toolbar.center")}),A.jsx(O.Menu.Item,{onClick:()=>l("right"),leftSection:A.jsx(Ce,{size:"16",name:"align-right"}),children:s("editor.toolbar.right")})]})]})};function Q7({className:n,format:t,platform:e,videoID:r,nodeKey:s,editor:i,alignment:o,isFullscreen:l,openedAlignment:a,setOpenedAlignment:u,onDelete:d,containerRef:f}){const{t:g}=it.useTranslation();return A.jsx("div",{className:"media-wrapper",ref:f,children:A.jsxs(jl,{className:n,format:t,nodeKey:s,children:[!l&&A.jsxs("div",{className:"media-actions",children:[A.jsx(Iw,{opened:a,setOpened:u,t:g,editor:i,nodeKey:s}),A.jsx(O.Tooltip,{label:"Удалить",children:A.jsx(O.ActionIcon,{color:"gray","aria-label":"Settings",className:"media-action",variant:"default",size:24,onClick:d,children:A.jsx(Ce,{name:"trash",size:"14"})})})]}),e==="download"?A.jsx(A.Fragment,{children:A.jsx(O.Flex,{justify:"center",align:"center",styles:{root:{height:"100%",width:"100%",minHeight:200}},children:A.jsx(Ct.ShakaVideoPlayer,{attachmentId:r,stylesContainer:{boxShadow:"none",borderRadius:6,height:"100%",aspectRatio:"auto"},loader:A.jsx(O.LoadingOverlay,{visible:!0,zIndex:1e3,loaderProps:{size:"sm",color:"gray"},overlayProps:{radius:"sm",blur:2,color:"dark"}}),autoPlay:!1,...Z7(e,r)})})}):e==="link"?A.jsx("video",{src:hc(e,r),className:"editor-video",controls:!0,style:{width:"100%",height:"100%",aspectRatio:"auto",objectFit:"contain"}}):A.jsx("iframe",{src:hc(e,r),className:"editor-video",width:"100%",height:"100%",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:"YouTube video"})]})})}const X7=n=>{const[t,e]=k.useState(!1);return k.useEffect(()=>{const r=()=>{requestAnimationFrame(()=>{setTimeout(()=>{const s=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;if(!s){e(!1);return}if(!n.current)return;const i=n.current,o=i.contains(s)||s.contains(i)||s===i;e(!!o)},0)})};return document.addEventListener("fullscreenchange",r),document.addEventListener("webkitfullscreenchange",r),document.addEventListener("mozfullscreenchange",r),document.addEventListener("MSFullscreenChange",r),()=>{document.removeEventListener("fullscreenchange",r),document.removeEventListener("webkitfullscreenchange",r),document.removeEventListener("mozfullscreenchange",r),document.removeEventListener("MSFullscreenChange",r)}},[n]),t};function q7({className:n,format:t,platform:e,videoID:r,editor:s,nodeKey:i,create:o,width:l,height:a,alignment:u}){const{t:d}=it.useTranslation(),[f,g]=k.useState(!1),[,p]=k.useState(!1),[m,y]=k.useState(!1),[b,x]=k.useState(!1),{start:C,cancel:v}=ip(),[E,N]=k.useState(0),S=k.useRef(null),_=X7(S),{fetchUploadMedia:I,maxFileSize:L}=k.useContext(kt),M=k.useMemo(()=>[{key:"link",enabled:!0},{key:"upload",enabled:!0}].filter(ae=>ae.enabled).map(ae=>ae.key),[]);k.useEffect(()=>{o&&y(!0)},[o]),k.useEffect(()=>{const ne=document.documentElement;So(m,ne)},[m]),k.useEffect(()=>s.registerCommand(t2,ne=>(e==="upload"&&V(ne),!1),Te),[e]);const R=(ne,ae=!1)=>{const{platform:re,id:ee}=Nw(ne,ae);if(!ee){p(!0);return}s.update(()=>{const se=me(i);if(!se)return;sd(se)&&(y(!1),se.setPlatform(re),se.setId(ee),se.setUrl(ne));const q=se.getNextSibling();q&&Ge(q.selectNext())})},F=(ne,ae)=>{s.update(()=>{Ge(null);const re=me(i);return sd(re)&&re.setWidthAndHeight(ne,ae),!0})},j=()=>{s.update(()=>{const ne=me(i);return ne&&ne.remove(),!1})},U=()=>{j()},V=ne=>{s.update(()=>{g(!0),y(!1);const ae=C();I&&I(ne[0],(re,ee)=>{R(re),g(!1),N(0)},()=>{g(!1),N(0)},ae,re=>{N(re)})})};return!r||e==="upload"?A.jsx(Ct.FilePicker,{showTabs:M,uploading:!1,type:"video",dropZoneProps:{multiple:!1,maxSize:L*1024*1024,accept:{"video/mp4":[".mp4"],"video/webm":[".webm"],"video/x-msvideo":[".avi"],"video/x-matroska":[".mkv"]}},isValidMediaUrl:J7,onUpload:V,onChange:ne=>{R(ne,!0)},popoverProps:{opened:m,position:"bottom",onChange:y},children:A.jsx(jl,{className:n,format:t,nodeKey:i,children:A.jsx(Oc,{isLoading:f,title:d("editor.video.add_video"),icon:"youtube",onClick:()=>y(ne=>!ne),nodeKey:i,progress:E,onAfterCancel:()=>{v(),g(!1)}})})}):A.jsx(xw,{editor:s,isIcon:!1,isEmbed:!0,width:ug(l),height:ug(a),onResizeEnd:F,alignment:u,type:"video",disableInteractions:_,children:A.jsx(Q7,{className:n,format:t,platform:e,videoID:r,nodeKey:i,editor:s,alignment:u,isFullscreen:_,openedAlignment:b,setOpenedAlignment:x,onDelete:U,containerRef:S})})}function OE(n){const t=n.getAttribute("data-lexical-platform"),e=n.getAttribute("data-lexical-videoid"),r=n.getAttribute("src"),s=parseFloat(n.getAttribute("width")??"100%"),i=parseFloat(n.getAttribute("height")??"100%"),o=n.style.justifyContent||"left";if(t&&typeof e=="string"){const l=Lw(hc(t,e),s,i,o);return t==="download"&&r&&l.setUrl(r),{node:l}}return{node:null}}class ia extends Vi{constructor(e,r,s,i,o,l,a="left",u){super(s,l);z(this,"__platform");z(this,"__id");z(this,"__url");z(this,"__create");z(this,"__width");z(this,"__height");z(this,"__alignment");this.__platform=e,this.__id=r,this.__url="",this.__create=u||!1,this.__width=i||560,this.__height=o||315,this.__height=o||315,this.__alignment=a||"left"}static getType(){return"video"}static clone(e){const r=new ia(e.__platform,e.__id,e.__format,e.__width,e.__height,e.__key,e.__alignment);return r.__url=e.__url,r}static importJSON(e){const r=Lw(e.videoID,e.width,e.height);return r.setFormat(e.format),r}exportJSON(){return{...super.exportJSON(),type:"video",version:1,platform:this.__platform,videoID:this.__id,width:this.__width,height:this.__height}}static importDOM(){return{iframe:e=>{const r=e.getAttribute("data-lexical-platform"),s=e.getAttribute("data-lexical-videoid");return r!=="download"&&typeof s=="string"?{conversion:OE,priority:1}:null},video:e=>{const r=e.getAttribute("data-lexical-platform"),s=e.getAttribute("data-lexical-videoid");return(r==="download"||r==="link")&&typeof s=="string"?{conversion:OE,priority:1}:null}}}createDOM(){const e=document.createElement("div");return e.className="video-container",e.style.justifyContent=this.__alignment||"left",e.style.display="flex",e}updateDOM(e,r){return this.__alignment!==e.__alignment&&(r.style.justifyContent=this.__alignment||"left"),!1}exportDOM(){const e=this.__platform==="download"||this.__platform==="link"?"video":"iframe",r=document.createElement(e),s=this.__platform==="download"&&this.__url?this.__url:this.__id,i=hc(this.__platform,s),o=i==="upload"?"":i;this.__platform==="download"||this.__platform==="link"?r.setAttribute("controls","true"):(r.setAttribute("frameborder","0"),r.setAttribute("allowfullscreen","true")),r.setAttribute("src",o),r.setAttribute("data-lexical-platform",this.__platform),r.setAttribute("data-lexical-videoid",this.__id),r.setAttribute("width",this.__width.toString()+"%"),r.setAttribute("height",this.__height.toString()+"%"),r.setAttribute("style","aspect-ratio: 128 / 72 ");const l=document.createElement("span");return l.setAttribute("data-src",o),l.className="video-container",l.style.justifyContent=this.__alignment||"left",r.style.justifyContent=this.__alignment||"left",l.appendChild(r),{element:l}}decorate(e,r){const i={base:(r.theme.embedBlock||{}).base||"",focus:""};return A.jsx(q7,{editor:e,nodeKey:this.getKey(),format:this.__format,className:i,platform:this.__platform,videoID:this.__id,width:this.__width,height:this.__height,create:this.__create,alignment:this.__alignment})}setPlatform(e){const r=this.getWritable();r.__platform=e}setId(e){const r=this.getWritable();r.__id=e}setUrl(e){const r=this.getWritable();r.__url=e}setCreated(e){const r=this.getWritable();r.__create=e}getId(){return this.__id}getUrl(){return this.__url}setAlignment(e){const r=this.getWritable();r.__alignment=e}getTextContent(){const e=this.__platform==="download"&&this.__url?this.__url:this.__id;return hc(this.__platform,e)}setWidthAndHeight(e,r){const s=this.getWritable();s.__width=e,s.__height=r}}function Lw(n,t,e,r,s){const i=n.startsWith("https")||n.startsWith("http"),{platform:o,id:l}=Nw(n,i),a=new ia(o,l||"",void 0,t,e,void 0,r,s);return o==="download"&&n.startsWith("/")&&a.setUrl(n),a}function sd(n){return n instanceof ia}const gg=be("INSERT_IMAGE_COMMAND"),n2=be("UPLOAD_IMAGE_COMMAND");function $7(){const[n]=_e(),{t}=it.useTranslation(),{imperativeHandleRef:e}=k.useContext(kt),{maxFileSize:r}=k.useContext(kt);return k.useEffect(()=>{if(!n.hasNodes([Qi]))throw new Error("ImageOlugin: FileNode not registered on editor");const s=i=>{if(i.length>1){Ct.showMessageNotification({message:t("editor.validation.doNotUploadMoreThanSingleFile")});return}if(i[0].size>r*1024*1024){Ct.showErrorNotification({message:t("editor.validation.shouldNotExceed",{maxSize:r})});return}n.dispatchCommand(gg,{src:"upload",create:!1,altText:""}),setTimeout(()=>{n.dispatchCommand(n2,i)},100)};return e!=null&&e.current&&(e.current.insertImages=s),n.registerCommand(gg,i=>{const o=wp(i);return Ep(o),!1},Te)},[n]),null}const Ep=n=>{var o;const t=Wt();if(Zt(t))return t.append(n),!0;let e=t==null?void 0:t.getParent();const r=e instanceof Gi||e instanceof En||e instanceof Br,s=t instanceof zi&&!!t.__text,i=Y(t)&&(t==null?void 0:t.getChildrenSize())>0;if(i&&(e=t),r&&s||r||i)return e.insertAfter(n),!0;if(t&&e)return t instanceof _s?((o=t.getPreviousSibling())==null||o.replace(n),!0):(t==null||t.replace(n),!0);if(!t)return xe().append(n),!0},cb=be("INSERT_FILE_COMMAND"),r2=be("UPLOAD_FILE_COMMAND");function eH(){const[n]=_e(),{t}=it.useTranslation(),{imperativeHandleRef:e,maxFileSize:r}=k.useContext(kt);return k.useEffect(()=>{if(!n.hasNodes([oa]))throw new Error("FilePlugin: FileNode not registered on editor");const s=i=>{if(i.length>1){Ct.showMessageNotification({message:t("editor.validation.doNotUploadMoreThanSingleFile")});return}if(i[0].size>r*1024*1024){Ct.showErrorNotification({message:t("editor.validation.shouldNotExceed",{maxSize:r})});return}n.dispatchCommand(cb,"upload"),setTimeout(()=>{n.dispatchCommand(r2,i)})};return e!=null&&e.current&&(e.current.insertFiles=s),n.registerCommand(cb,i=>{const o=Mw(i,"100%","100%","left",i!=="upload");return Ep(o),!1},Te)},[n]),null}function tH(n,t=2){if(n===0)return"0 B";const e=1024,r=["B","KB","MB","GB","TB","PB"];if(n<e)return`${n} B`;if(n<=0)return"0 B";const s=Math.floor(Math.log(n)/Math.log(e)),i=(n/Math.pow(e,s)).toFixed(1);return`${parseFloat(i).toString()}${r[s]}`}function nH({className:n,format:t,src:e,editor:r,nodeKey:s,create:i}){const{t:o}=it.useTranslation(),{t:l}=it.useTranslation("ui"),[a,u]=k.useState(!1),[d,f]=k.useState(!1),[g,p]=k.useState(0),m=k.useRef(null),{fetchUploadMedia:y,maxFileSize:b}=k.useContext(kt),{startLoading:x,stopLoading:C}=iK(),{start:v,cancel:E}=ip();k.useEffect(()=>{r.update(()=>{var j,U;const R=me(s),F=((U=(j=m.current)==null?void 0:j.firstChild)==null?void 0:U.outerHTML)||"";R instanceof oa&&e&&R.setRef(F)})},[e]),k.useEffect(()=>{i&&f(!0)},[i]);const{fileSize:N,fileName:S}=k.useMemo(()=>{const R=new URL(window.location.href+e),F=R.searchParams.get("contentType"),j=R.searchParams.get("fileSize"),U=R.searchParams.get("originalFileName");return{contentType:F,fileName:U||e,fileSize:j}},[e]),_=k.useMemo(()=>[{key:"link",enabled:!0},{key:"upload",enabled:!0}].filter(F=>F.enabled).map(F=>F.key),[]);k.useEffect(()=>{const R=document.documentElement;So(d,R)},[d]),k.useEffect(()=>r.registerCommand(r2,R=>(e==="upload"&&L(R),!1),Te),[e]);const I=R=>{r.update(()=>{const F=me(s);if(!F)return;ub(F)&&(f(!1),F.setSrc(R));const j=F.getNextSibling();j&&Ge(j.selectNext())})},L=R=>{r.update(()=>{u(!0),f(!1),x();const F=v();y&&y(R[0],(j,U,V)=>{const{contentType:ne,fileSize:ae,originalFileName:re}=V,ee=new URLSearchParams({contentType:ne,fileSize:ae,originalFileName:re}),se=j.includes("?")?`${j}&${ee.toString()}`:`${j}?${ee.toString()}`;I(se),C(),u(!1),p(0)},j=>{j&&!F.aborted&&Ct.showErrorNotification({message:o("editor.gallery.errorFile")}),u(!1),p(0),C()},F,j=>{p(j)})})},M=R=>{R.stopPropagation(),R.preventDefault(),r.update(()=>{const F=me(s);F&&F.remove()})};return!e||e==="upload"?A.jsx(Ct.FilePicker,{showTabs:_,uploading:!1,type:"file",dropZoneProps:{multiple:!1,maxSize:b*1024*1024,accept:{}},onUpload:L,onChange:R=>I(R),popoverProps:{opened:d,position:"bottom",onChange:f},children:A.jsx(O.Flex,{w:"100%",children:A.jsx(jl,{className:n,format:t,nodeKey:s,children:A.jsx(Oc,{isLoading:a,title:o("editor.file.add_file"),icon:"file",progress:g,onClick:()=>f(R=>!R),onAfterCancel:()=>{E(),u(!1)},nodeKey:s})})})}):A.jsx("div",{ref:m,children:A.jsx(O.Anchor,{href:e,target:"_blank",children:A.jsxs(O.Button,{fullWidth:!0,className:"file-button",style:{boxSizing:"border-box"},leftSection:A.jsx($.IconFile,{}),rightSection:A.jsx($.IconX,{onClick:M}),variant:"light",color:"gray",justify:"left",m:0,children:[S," ",tH(Number(N),2)]})})})}const RE=new Map;function rH(n){const t=n.getAttribute("data-src"),e=parseFloat(n.getAttribute("width")??"100%"),r=parseFloat(n.getAttribute("height")??"100%"),s=n.style.justifyContent||"left";return{node:Mw(t||"",e,r,s)}}class oa extends Vi{constructor(e,r,s,i,o,l="left",a){super(r,o);z(this,"__src");z(this,"__create");z(this,"__width");z(this,"__height");z(this,"__alignment");this.__src=e,this.__create=a||!1,this.__width=s||560,this.__height=i||315,this.__height=i||315,this.__alignment=l||"left"}static getType(){return"file"}static clone(e){return new oa(e.__src,e.__format,e.__width,e.__height,e.__key,e.__alignment)}static importJSON(e){const r=Mw(e.src,e.width,e.height);return r.setFormat(e.format),r}exportJSON(){return{...super.exportJSON(),type:"file",version:1,src:this.__src,width:this.__width,height:this.__height}}static importDOM(){return{span:e=>e.className=="file-container"?{conversion:rH,priority:1}:null}}createDOM(){const e=document.createElement("div");return e.className="file-container",e.style.justifyContent=this.__alignment||"left",e}updateDOM(e,r){return this.__alignment!==e.__alignment&&(r.style.justifyContent=this.__alignment||"left"),!1}exportDOM(){const e=this.__src==="upload"?"":this.__src,r=document.createElement("div"),s=document.createElement("span"),i=RE.get(this.__key)||"";return r.innerHTML=i,s.className="file-container",s.setAttribute("data-src",e),s.appendChild(r),{element:s}}decorate(e,r){const i={base:(r.theme.embedBlock||{}).base||"",focus:""};return A.jsx(nH,{editor:e,nodeKey:this.getKey(),format:this.__format,className:i,src:this.__src,create:this.__create})}setRef(e){RE.set(this.__key,e)}setSrc(e){const r=this.getWritable();r.__src=e}setCreated(e){const r=this.getWritable();r.__create=e}setAlignment(e){const r=this.getWritable();r.__alignment=e}setWidthAndHeight(e,r){const s=this.getWritable();s.__width=e,s.__height=r}}function Mw(n,t,e,r,s){return new oa(n,void 0,t,e,void 0,r,s)}function ub(n){return n instanceof oa}function Jf(n){if(n&&n.includes("unsplash"))return null;const t=/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/i,e=n==null?void 0:n.match(t);return e&&(n.startsWith("/v1/attachments/")||n.includes(window.location.origin))?e[0]:null}function PE(n,t,e){n.update(()=>{const r=me(t);fc(r)||hg(r)?r.setSrc(e):sd(r)&&e.trim()&&r.setId(e)},{tag:"historic"})}const Gr=new Map;function sH({editor:n}){const{fetchDeleteMedia:t,fetchRestoreMedia:e,pageId:r}=k.useContext(kt);return k.useEffect(()=>()=>{Gr.clear()},[r]),k.useEffect(()=>{if(n)return n.getEditorState().read(()=>{var o;const s=((o=n.getDecorators)==null?void 0:o.call(n))||n._decorators,i=new Map;for(const[l,a]of Object.entries(s)){const u=a.props,d=a._self,g=fc(d)||sd(d)||ub(d)||hg(d);if(!u&&g)continue;const p=(u==null?void 0:u.src)||(u==null?void 0:u.videoID);if(p!=null&&p.trim()&&!(p!=null&&p.includes("unsplash"))&&Jf(p)){const m=i.get(p)||[],y=m.includes(l)?m:[...m,l];i.set(p,y)}}for(const[l,a]of i.entries())Gr.set(l,{mediaNodeKeys:a})}),n.registerDecoratorListener(s=>{var l;const i=new Map;let o=!1;for(const[a,u]of Object.entries(s)){const d=u==null?void 0:u.props,f=u==null?void 0:u._self,g=sd(f)||fc(f)||ub(f)||hg(f);if(g&&((l=d==null?void 0:d.src)!=null&&l.includes("unsplash"))||!d&&g)continue;const p=d.src||d.videoID;if(!p)continue;if(p.trim()==="")return;const m=i.get(p)||[];!m.includes(a)&&Jf(d==null?void 0:d.src)&&i.set(p,[...m,a])}for(const[a,u]of Gr.entries()){const d=i.get(a);if(Array.isArray(u.mediaNodeKeys)&&u.mediaNodeKeys.length>0&&(!d||d.length===0)){const f=Jf(a);if(f&&t){const g=n.registerCommand(Ac,()=>!0,ks);t(f,()=>{g()}),Gr.set(a,{mediaNodeKeys:[]})}}}for(const[a]of Gr.entries())i.has(a)||Gr.set(a,{mediaNodeKeys:[]});if(Gr.size>0)for(const[a,u]of i.entries()){const d=Gr.get(a);if(d&&Array.isArray(d.mediaNodeKeys)&&d.mediaNodeKeys.length===0&&u.length>0){PE(n,u[0]," "),o=!0;const f=Jf(a);if(Gr.set(a,{mediaNodeKeys:u}),f&&e){const g=n.registerCommand(Hl,()=>!0,ks);e(f,()=>{g(),PE(n,u[0],a)})}}}if(!o)for(const[a,u]of i.entries())Gr.set(a,{mediaNodeKeys:u})})},[n,e,t]),Gr}const iH=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?k.useLayoutEffect:k.useEffect;function oH({onClear:n}){const[t]=_e();return iH(()=>SU(t,n),[t,n]),null}function lH({newTab:n=!0,disabled:t=!1}){const[e]=_e();return k.useEffect(()=>PK(e,ew({disabled:t,newTab:n})),[e,n,t]),null}const aH=k.createContext(null),RA={didCatch:!1,error:null};let cH=class extends k.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=RA}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(...t){var r,s;const{error:e}=this.state;e!==null&&((s=(r=this.props).onReset)==null||s.call(r,{args:t,reason:"imperative-api"}),this.setState(RA))}componentDidCatch(t,e){var r,s;(s=(r=this.props).onError)==null||s.call(r,t,e)}componentDidUpdate(t,e){var i,o;const{didCatch:r}=this.state,{resetKeys:s}=this.props;r&&e.error!==null&&uH(t.resetKeys,s)&&((o=(i=this.props).onReset)==null||o.call(i,{next:s,prev:t.resetKeys,reason:"keys"}),this.setState(RA))}render(){const{children:t,fallbackRender:e,FallbackComponent:r,fallback:s}=this.props,{didCatch:i,error:o}=this.state;let l=t;if(i){const a={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof e=="function")l=e(a);else if(r)l=k.createElement(r,a);else if(s!==void 0)l=s;else throw o}return k.createElement(aH.Provider,{value:{didCatch:i,error:o,resetErrorBoundary:this.resetErrorBoundary}},l)}};function uH(n=[],t=[]){return n.length!==t.length||n.some((e,r)=>!Object.is(e,t[r]))}function s2({children:n,onError:t}){return A.jsx(cH,{fallback:A.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:n})}function dH(){const[n]=_e();return k.useEffect(()=>{if(!n.hasNodes([lp]))throw new Error("HashtagPlugin: HashtagNode not registered on editor");return LK(n)},[n]),null}function fH(){const[n]=_e();return k.useEffect(()=>n.registerCommand(UI,t=>{const e=G();if(!H(e))return!1;if(e.focus.getNode()!==null){const r=na();V_(r)}return!0},Fe),[n]),null}const hH=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?k.useLayoutEffect:k.useEffect;function gH({ignoreHistoryMergeTagChange:n=!0,ignoreSelectionChange:t=!1,onChange:e}){const[r]=_e();return hH(()=>{if(e)return r.registerUpdateListener(({editorState:s,dirtyElements:i,dirtyLeaves:o,prevEditorState:l,tags:a})=>{t&&i.size===0&&o.size===0||n&&a.has(qr)||l.isEmpty()||e(s,r,a)})},[r,n,t,e]),null}const pH=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?k.useLayoutEffect:k.useEffect;function mH(n){return{initialValueFn:()=>n.isEditable(),subscribe:t=>n.registerEditableListener(t)}}function Dw(){return(function(n){const[t]=_e(),e=k.useMemo(()=>n(t),[t,n]),[r,s]=k.useState(()=>e.initialValueFn()),i=k.useRef(r);return pH(()=>{const{initialValueFn:o,subscribe:l}=e,a=o();return i.current!==a&&(i.current=a,s(a)),l(u=>{i.current=u,s(u)})},[e,n]),r})(mH)}const AH={name:"@lexical/react/ReactProvider"};function yH(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Ow=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?k.useLayoutEffect:k.useEffect;function bH({editor:n,ErrorBoundary:t}){return(function(e,r){const[s,i]=k.useState(()=>e.getDecorators());return Ow(()=>e.registerDecoratorListener(o=>{Or.flushSync(()=>{i(o)})}),[e]),k.useEffect(()=>{i(e.getDecorators())},[e]),k.useMemo(()=>{const o=[],l=Object.keys(s);for(let a=0;a<l.length;a++){const u=l[a],d=A.jsx(r,{onError:g=>e._onError(g),children:A.jsx(k.Suspense,{fallback:null,children:s[u]})}),f=e.getElementByKey(u);f!==null&&o.push(Or.createPortal(d,f,u))}return o},[r,s,e])})(n,t)}function wH({editor:n,ErrorBoundary:t}){return(function(e){const r=zI.maybeFromEditor(e);if(r&&r.hasExtensionByName(AH.name)){for(const s of["@lexical/plain-text","@lexical/rich-text"])r.hasExtensionByName(s)&&yH(320,s);return!0}return!1})(n)?null:A.jsx(bH,{editor:n,ErrorBoundary:t})}function BE(n){return n.getEditorState().read(aL(n.isComposing()))}function i2({contentEditable:n,placeholder:t=null,ErrorBoundary:e}){const[r]=_e();return(function(s){Ow(()=>Xe(e9(s),GK(s)),[s])})(r),A.jsxs(A.Fragment,{children:[n,A.jsx(CH,{content:t}),A.jsx(wH,{editor:r,ErrorBoundary:e})]})}function CH({content:n}){const[t]=_e(),e=(function(s){const[i,o]=k.useState(()=>BE(s));return Ow(()=>{function l(){const a=BE(s);o(a)}return l(),Xe(s.registerUpdateListener(()=>{l()}),s.registerEditableListener(()=>{l()}))},[s]),i})(t),r=Dw();return e?typeof n=="function"?n(r):n:null}const jE=window.location.hostname,xH=jE!=="playground.lexical.dev"&&jE!=="lexical-playground.vercel.app",vH=new URLSearchParams(window.location.search),FE=n=>vH.get(n)==="true",{isShowTreeView:SH,isMaxLength:EH}={isShowTreeView:FE("showTreeView"),isMaxLength:FE("isMaxLength")},id={disableBeforeInput:!1,emptyEditor:xH,isAutocomplete:!1,isCharLimit:!1,isCharLimitUtf8:!1,isCollab:!1,isMaxLength:EH,isRichText:!0,measureTypingPerf:!1,shouldUseLexicalContextMenu:!1,showNestedEditorTreeView:!1,showTableOfContents:!1,showTreeView:SH,tableCellBackgroundColor:!0,tableCellMerge:!0},zE={...id},o2=k.createContext({setOption:(n,t)=>{},settings:id});function kH(){const n={},t=new URLSearchParams(window.location.search);for(const e of Object.keys(id)){const r=t.get(e);r!==null&&(n[e]=r==="true")}return n}const TH=({children:n})=>{const[t,e]=k.useState(()=>({...id,...kH()})),r=k.useCallback((i,o)=>{e(l=>({...l,[i]:o})),id[i]===o?UE(i,null):UE(i,o)},[]),s=k.useMemo(()=>({setOption:r,settings:t}),[r,t]);return A.jsx(o2.Provider,{value:s,children:n})},Rw=()=>k.useContext(o2);function UE(n,t){const e=new URL(window.location.href),r=new URLSearchParams(e.search);t!==null?r.has(n)?r.set(n,String(t)):r.append(n,String(t)):r.has(n)&&r.delete(n),e.search=r.toString(),window.history.pushState(null,"",e.toString())}const l2=k.createContext({}),_H=({children:n})=>{const t=k.useMemo(()=>({historyState:rw()}),[]);return A.jsx(l2.Provider,{value:t,children:n})},Pw=()=>k.useContext(l2),NH=({t:n,src:t,isShown:e,setShown:r,id:s})=>{const[i,{open:o,close:l}]=$a.useDisclosure(!1),a=k.useMemo(()=>[{id:!s||s==="0"?"":s,Url:t??"",contentType:"",originalFileName:"",fileSize:0,storageType:"",storagePath:"",fileName:"",parentType:"",parentId:"",ownerId:"",createdAt:new Date,updatedAt:new Date,version:0,deleted:!1,deletedAt:new Date}],[t,s]),u=d=>{d?o():l()};return A.jsxs(A.Fragment,{children:[A.jsx(Ct.AttachmentsGalleryModal,{opened:i,onOpenChange:u,attachments:a}),A.jsx(O.Tooltip,{disabled:!e,label:n("editor.image.preview"),children:A.jsx(O.ActionIcon,{onClick:()=>{r(!1),o()},size:24,variant:"default",color:"gray","aria-label":"Settings",children:A.jsx(Ce,{size:"14",name:"photo-check"})})})]})},KE=8,IH=({anchorElem:n=document.body})=>{var y;const[t]=_e(),[e,r]=k.useState(!1),[s,i]=k.useState(!1),[o,l]=k.useState(null),a=k.useRef(null),[u,d]=k.useState({right:"0",top:"0"}),{t:f}=it.useTranslation(),g=bp(b=>{if(b.target instanceof HTMLElement&&b.target.clientWidth<100)return;const{lexicalDOMNode:C,isOutside:v}=ZL(b,"img",["div.media-actions"]);if(v){i(!1);return}if(a.current=C,C){t.update(()=>{const M=Oe(C);M&&l({key:M.__key,src:M.__src})});const{y:E,right:N}=n.getBoundingClientRect(),{y:S,right:_}=C.getBoundingClientRect();i(!0);const I=S-E+KE,L=N-_+KE;d(()=>({right:`${L}px`,top:`${I}px`}))}},50,500);k.useEffect(()=>(document.addEventListener("mousemove",g),document.addEventListener("touchstart",g),()=>{i(!1),g.cancel(),document.removeEventListener("mousemove",g)}),[g]);const p=(b,x)=>{{b();return}},m=s?"auto":"none";return Or.createPortal(A.jsxs("div",{className:`media-actions ${s?"visible":""}`,style:{right:u.right,top:u.top,pointerEvents:m},children:[!sb&&A.jsx(Iw,{opened:e,setOpened:r,t:f,editor:t,nodeKey:o==null?void 0:o.key,setShown:i,isShown:s}),A.jsx(NH,{setShown:i,isShown:s,t:f,src:o==null?void 0:o.src,id:(y=a.current)==null?void 0:y.getAttribute("data-id")}),A.jsx(O.Tooltip,{disabled:!s,label:f("editor.contextMenu.delete"),children:A.jsx(O.ActionIcon,{color:"gray","aria-label":"Settings",className:"media-action",size:24,onClick:b=>{b.stopPropagation(),p(()=>{t.update(()=>{if(o!=null&&o.key){const x=me(o==null?void 0:o.key);fc(x)&&(x.getPreviousSibling()?x.remove():x.replace(we()),t.dispatchCommand(Oi,"hide_menu"),i(!1))}return!1})})},variant:"default",children:A.jsx(Ce,{size:"14",name:"trash"})})})]}),n)},LH=[["path",{d:"M17 11C17 13.7614 14.7614 16 12 16C9.23858 16 7 13.7614 7 11V7C7 4.23858 9.23858 2 12 2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20 11C20 15.4183 16.4183 19 12 19M12 19C7.58172 19 4 15.4183 4 11M12 19V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.3327 4.64612C15.5394 4.49594 16.4959 3.53944 16.6461 2.33267C16.6689 2.14999 16.8159 2 17 2C17.1841 2 17.3311 2.14999 17.3539 2.33267C17.5041 3.53944 18.4606 4.49594 19.6673 4.64612C19.85 4.66885 20 4.81591 20 5C20 5.1841 19.85 5.33115 19.6673 5.35388C18.4606 5.50406 17.5041 6.46056 17.3539 7.66733C17.3311 7.85001 17.1841 8 17 8C16.8159 8 16.6689 7.85001 16.6461 7.66733C16.4959 6.46056 15.5394 5.50406 14.3327 5.35388C14.15 5.33115 14 5.1841 14 5C14 4.81591 14.15 4.66885 14.3327 4.64612Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],MH=[["path",{d:"M8 3C7.28543 3.05475 6.78159 3.18135 6.34921 3.47408C5.58736 3.98988 5.22202 4.90323 4.49134 6.72994L2.42914 11.9271C2.21522 12.4619 2.10826 12.7293 2.05413 13.0104C2 13.2915 2 13.5795 2 14.1555V15C2 17.8284 2 19.2426 2.87868 20.1213C3.75736 21 5.17157 21 8 21H16C18.8284 21 20.2426 21 21.1213 20.1213C22 19.2426 22 17.8284 22 15V14.1555C22 13.5795 22 13.2915 21.9459 13.0104C21.8917 12.7293 21.7848 12.4619 21.5709 11.9271L19.5087 6.72994C18.778 4.90323 18.4126 3.98988 17.6508 3.47408C17.2184 3.18135 16.7146 3.05475 16 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 13H5.58579C6.16263 13 6.45105 13 6.71982 13.0766C6.86747 13.1187 7.00978 13.1776 7.14394 13.2523C7.38816 13.3882 7.59211 13.5921 8 14C8.40789 14.4079 8.61184 14.6118 8.85606 14.7477C8.99022 14.8224 9.13253 14.8813 9.28018 14.9234C9.54895 15 9.83737 15 10.4142 15H13.5858C14.1626 15 14.4511 15 14.7198 14.9234C14.8675 14.8813 15.0098 14.8224 15.1439 14.7477C15.3882 14.6118 15.5921 14.4079 16 14C16.4079 13.5921 16.6118 13.3882 16.8561 13.2523C16.9902 13.1776 17.1325 13.1187 17.2802 13.0766C17.5489 13 17.8374 13 18.4142 13H21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 7.00002C15 7.00002 12.7905 9.99999 12 10C11.2094 10 9 7 9 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 3V9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],DH=[["path",{d:"M8 3C7.28543 3.05475 6.78159 3.18135 6.34921 3.47408C5.58736 3.98988 5.22202 4.90323 4.49134 6.72994L2.42914 11.9271C2.21522 12.4619 2.10826 12.7293 2.05413 13.0104C2 13.2915 2 13.5795 2 14.1555V15C2 17.8284 2 19.2426 2.87868 20.1213C3.75736 21 5.17157 21 8 21H16C18.8284 21 20.2426 21 21.1213 20.1213C22 19.2426 22 17.8284 22 15V14.1555C22 13.5795 22 13.2915 21.9459 13.0104C21.8917 12.7293 21.7848 12.4619 21.5709 11.9271L19.5087 6.72994C18.778 4.90323 18.4126 3.98988 17.6508 3.47408C17.2184 3.18135 16.7146 3.05475 16 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 13H5.58579C6.16263 13 6.45105 13 6.71982 13.0766C6.86747 13.1187 7.00978 13.1776 7.14394 13.2523C7.38816 13.3882 7.59211 13.5921 8 14C8.40789 14.4079 8.61184 14.6118 8.85606 14.7477C8.99022 14.8224 9.13253 14.8813 9.28018 14.9234C9.54895 15 9.83737 15 10.4142 15H13.5858C14.1626 15 14.4511 15 14.7198 14.9234C14.8675 14.8813 15.0098 14.8224 15.1439 14.7477C15.3882 14.6118 15.5921 14.4079 16 14C16.4079 13.5921 16.6118 13.3882 16.8561 13.2523C16.9902 13.1776 17.1325 13.1187 17.2802 13.0766C17.5489 13 17.8374 13 18.4142 13H21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15 5.99998C15 5.99998 12.7905 3.00001 12 3C11.2094 2.99999 9 6 9 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 10V3.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],OH=[["path",{d:"M5 15C5 11.134 8.13401 8 12 8C15.866 8 19 11.134 19 15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.5 9.5V6.5C16.5 4.01472 14.4853 2 12 2C9.51472 2 7.5 4.01472 7.5 6.5V9.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 15H12.009",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"2"}]],RH=[["path",{d:"M5 15C5 11.134 8.13401 8 12 8C15.866 8 19 11.134 19 15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 9.5V6.5C7.5 4.01472 9.51472 2 12 2C13.5602 2 14.935 2.79401 15.7422 4",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 15H12.009",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",key:"2"}]],PH=[["path",{d:"M16.9767 19.5C19.4017 17.8876 21 15.1305 21 12C21 7.02944 16.9706 3 12 3C11.3126 3 10.6432 3.07706 10 3.22302M16.9767 19.5V16M16.9767 19.5H20.5M7 4.51555C4.58803 6.13007 3 8.87958 3 12C3 16.9706 7.02944 21 12 21C12.6874 21 13.3568 20.9229 14 20.777M7 4.51555V8M7 4.51555H3.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]],BH=[["path",{d:"M21 6.5C21 8.15685 19.6569 9.5 18 9.5C16.3431 9.5 15 8.15685 15 6.5C15 4.84315 16.3431 3.5 18 3.5C19.6569 3.5 21 4.84315 21 6.5Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 12C9 13.6569 7.65685 15 6 15C4.34315 15 3 13.6569 3 12C3 10.3431 4.34315 9 6 9C7.65685 9 9 10.3431 9 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 17.5C21 19.1569 19.6569 20.5 18 20.5C16.3431 20.5 15 19.1569 15 17.5C15 15.8431 16.3431 14.5 18 14.5C19.6569 14.5 21 15.8431 21 17.5Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.72852 10.7495L15.2285 7.75M8.72852 13.25L15.2285 16.2495",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]],jH=[["path",{d:"M11 20.001H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 4L8 20.0008M12 4C13.3874 4 15.1695 4.03054 16.5884 4.17648C17.1885 4.23819 17.4886 4.26905 17.7541 4.37789C18.3066 4.60428 18.7518 5.10062 18.9194 5.6768C19 5.95381 19 6.26991 19 6.90214M12 4C10.6126 4 8.83047 4.03054 7.41161 4.17648C6.8115 4.23819 6.51144 4.26905 6.24586 4.37789C5.69344 4.60428 5.24816 5.10062 5.08057 5.6768C5 5.95381 5 6.26991 5 6.90214",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14 15L19 20M14 20L19 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]],FH={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},co=k.forwardRef(({color:n="currentColor",size:t=24,strokeWidth:e,absoluteStrokeWidth:r=!1,className:s="",altIcon:i,showAlt:o=!1,icon:l,primaryColor:a,secondaryColor:u,disableSecondaryOpacity:d=!1,...f},g)=>{const p=e!==void 0?r?Number(e)*24/Number(t):e:void 0,m=p!==void 0?{strokeWidth:p,stroke:"currentColor"}:{},y={ref:g,...FH,width:t,height:t,color:a||n,className:s,...m,...f},x=[...o&&i?i:l].sort(([,C],[,v])=>{const E=C.opacity!==void 0;return v.opacity!==void 0?1:E?-1:0}).map(([C,v])=>{const E=v.opacity!==void 0,N=E&&!d?v.opacity:void 0,S=u?{...v.stroke!==void 0?{stroke:E?u:a||n}:{fill:E?u:a||n}}:{};return k.createElement(C,{...v,...m,...S,opacity:N,key:v.key})});return k.createElement("svg",y,x)});co.displayName="HugeiconsIcon";function a2(n,t=Object.freeze({})){return{editorState:n.toJSON(),lastSaved:t.lastSaved||Date.now(),source:t.source||"Lexical",version:"0.38.2"}}function c2(n,t){const e=typeof t=="string"?JSON.parse(t):t;return n.parseEditorState(e.editorState)}function zH(n){(function(t){const e=document.createElement("input");e.type="file",e.accept=".lexical",e.addEventListener("change",r=>{const s=r.target;if(s.files){const i=s.files[0],o=new FileReader;o.readAsText(i,"UTF-8"),o.onload=l=>{if(l.target){const a=l.target.result;t(a)}}}}),e.click()})(t=>{n.setEditorState(c2(n,t)),n.dispatchCommand(Jb,void 0)})}function UH(n,t=Object.freeze({})){const e=new Date;(function(r,s){const i=document.createElement("a"),o=document.body;if(o===null)return;o.appendChild(i),i.style.display="none";const l=JSON.stringify(r),a=new Blob([l],{type:"octet/stream"}),u=window.URL.createObjectURL(a);i.href=u,i.download=s,i.click(),window.URL.revokeObjectURL(u),i.remove()})(a2(n.getEditorState(),{...t,lastSaved:e.getTime()}),`${t.fileName||e.toISOString()}.lexical`)}function pu(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function KH(n){let t=1,e=n.getParent();for(;e!=null;){if(Vn(e)){const r=e.getParent();if(It(r)){t++,e=r.getParent();continue}pu(40)}return t}return t}function Ks(n){return Vn(n)&&It(n.getFirstChild())}function WE(n){return Wi().append(n)}function u2(n,t){n.splice(n.getChildrenSize(),0,t)}function Bw(n,t){const e=n.getLastChild(),r=t.getFirstChild();e&&r&&Ks(e)&&Ks(r)&&(Bw(e.getFirstChild(),r.getFirstChild()),r.remove());const s=t.getChildren();s.length>0&&n.append(...s),t.remove()}function WH(n){const t=n.getListType()!=="check";let e=n.getStart();for(const r of n.getChildren())Vn(r)&&(r.getValue()!==e&&r.setValue(e),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),It(r.getFirstChild())||e++)}function HH(n){const t=new Set;if(Ks(n)||t.has(n.getKey()))return;const e=n.getParent(),r=n.getNextSibling(),s=n.getPreviousSibling();if(Ks(r)&&Ks(s)){const i=s.getFirstChild();if(It(i)){i.append(n);const o=r.getFirstChild();It(o)&&(u2(i,o.getChildren()),r.remove(),t.add(r.getKey()))}}else if(Ks(r)){const i=r.getFirstChild();if(It(i)){const o=i.getFirstChild();o!==null&&o.insertBefore(n)}}else if(Ks(s)){const i=s.getFirstChild();It(i)&&i.append(n)}else if(It(e)){const i=Wi().setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle()),o=Qs(e.getListType()).setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle());i.append(o),o.append(n),s?s.insertAfter(i):r?r.insertBefore(i):e.append(i)}}function YH(n){if(Ks(n))return;const t=n.getParent(),e=t?t.getParent():void 0;if(It(e?e.getParent():void 0)&&Vn(e)&&It(t)){const r=t?t.getFirstChild():void 0,s=t?t.getLastChild():void 0;if(n.is(r))e.insertBefore(n),t.isEmpty()&&e.remove();else if(n.is(s))e.insertAfter(n),t.isEmpty()&&e.remove();else{const i=t.getListType(),o=Wi(),l=Qs(i);o.append(l),n.getPreviousSiblings().forEach(d=>l.append(d));const a=Wi(),u=Qs(i);a.append(u),u2(u,n.getNextSiblings()),e.insertBefore(o),e.insertAfter(a),e.replace(n)}}}function pg(...n){const t=[];for(const e of n)if(e&&typeof e=="string")for(const[r]of e.matchAll(/\S+/g))t.push(r);return t}let Rd=class extends gt{constructor(e=1,r=void 0,s){super(s);z(this,"__value");z(this,"__checked");this.__value=e===void 0?1:e,this.__checked=r}$config(){return this.config("listitem",{$transform:e=>{if(e.__checked==null)return;const r=e.getParent();It(r)&&r.getListType()!=="check"&&e.getChecked()!=null&&e.setChecked(void 0)},extends:gt,importDOM:{li:()=>({conversion:GH,priority:0})}})}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){const r=document.createElement("li");return this.updateListItemDOM(null,r,e),r}updateListItemDOM(e,r,s){(function(l,a,u){const d=a.getParent();!It(d)||d.getListType()!=="check"||It(a.getFirstChild())?(l.removeAttribute("role"),l.removeAttribute("tabIndex"),l.removeAttribute("aria-checked")):(l.setAttribute("role","checkbox"),l.setAttribute("tabIndex","-1"),u&&a.__checked===u.__checked||l.setAttribute("aria-checked",a.getChecked()?"true":"false"))})(r,this,e),r.value=this.__value,(function(l,a,u){const d=[],f=[],g=a.list,p=g?g.listitem:void 0;let m;if(g&&g.nested&&(m=g.nested.listitem),p!==void 0&&d.push(...pg(p)),g){const y=u.getParent(),b=It(y)&&y.getListType()==="check",x=u.getChecked();b&&!x||f.push(g.listitemUnchecked),b&&x||f.push(g.listitemChecked),b&&d.push(x?g.listitemChecked:g.listitemUnchecked)}if(m!==void 0){const y=pg(m);u.getChildren().some(b=>It(b))?d.push(...y):f.push(...y)}f.length>0&&Lr(l,...f),d.length>0&&st(l,...d)})(r,s.theme,this);const i=e?e.__style:"",o=this.__style;i!==o&&(o===""?r.removeAttribute("style"):r.style.cssText=o),(function(l,a,u){const d=Wu(a.__textStyle);for(const f in d)l.style.setProperty(`--listitem-marker-${f}`,d[f]);if(u)for(const f in Wu(u.__textStyle))f in d||l.style.removeProperty(`--listitem-marker-${f}`)})(r,this,e)}updateDOM(e,r,s){const i=r;return this.updateListItemDOM(e,i,s),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){const r=this.createDOM(e._config),s=this.getFormatType();s&&(r.style.textAlign=s);const i=this.getDirection();return i&&(r.dir=i),{element:r}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let r=0;r<e.length;r++){const s=e[r];if(Y(s)&&this.canMergeWith(s)){const i=s.getChildren();this.append(...i),s.remove()}else super.append(s)}return this}replace(e,r){if(Vn(e))return super.replace(e);this.setIndent(0);const s=this.getParentOrThrow();if(!It(s))return e;if(s.__first===this.getKey())s.insertBefore(e);else if(s.__last===this.getKey())s.insertAfter(e);else{const i=Qs(s.getListType());let o=this.getNextSibling();for(;o;){const l=o;o=o.getNextSibling(),i.append(l)}s.insertAfter(e),e.insertAfter(i)}return r&&(Y(e)||pu(139),this.getChildren().forEach(i=>{e.append(i)})),this.remove(),s.getChildrenSize()===0&&s.remove(),e}insertAfter(e,r=!0){const s=this.getParentOrThrow();if(It(s)||pu(39),Vn(e))return super.insertAfter(e,r);const i=this.getNextSiblings();if(s.insertAfter(e,r),i.length!==0){const o=Qs(s.getListType());i.forEach(l=>o.append(l)),e.insertAfter(o,r)}return e}remove(e){const r=this.getPreviousSibling(),s=this.getNextSibling();super.remove(e),r&&s&&Ks(r)&&Ks(s)&&(Bw(r.getFirstChild(),s.getFirstChild()),s.remove())}insertNewAfter(e,r=!0){const s=Wi().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(s,r),s}collapseAtStart(e){const r=we();this.getChildren().forEach(l=>r.append(l));const s=this.getParentOrThrow(),i=s.getParentOrThrow(),o=Vn(i);if(s.getChildrenSize()===1)if(o)s.remove(),i.select();else{s.insertBefore(r),s.remove();const l=e.anchor,a=e.focus,u=r.getKey();l.type==="element"&&l.getNode().is(this)&&l.set(u,l.offset,"element"),a.type==="element"&&a.getNode().is(this)&&a.set(u,a.offset,"element")}else s.insertBefore(r),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){const r=this.getWritable();return r.__value=e,r}getChecked(){const e=this.getLatest();let r;const s=this.getParent();return It(s)&&(r=s.getListType()),r==="check"?!!e.__checked:void 0}setChecked(e){const r=this.getWritable();return r.__checked=e,r}toggleChecked(){const e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){const e=this.getParent();if(e===null||!this.isAttached())return this.getLatest().__indent;let r=e.getParentOrThrow(),s=0;for(;Vn(r);)r=r.getParentOrThrow().getParentOrThrow(),s++;return s}setIndent(e){typeof e!="number"&&pu(117),(e=Math.floor(e))>=0||pu(199);let r=this.getIndent();for(;r!==e;)r<e?(HH(this),r++):(YH(this),r--);return this}canInsertAfter(e){return Vn(e)}canReplaceWith(e){return Vn(e)}canMergeWith(e){return Vn(e)||un(e)}extractWithChild(e,r){if(!H(r))return!1;const s=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(s)&&this.isParentOf(i)&&this.getTextContent().length===r.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Qs("bullet")}canMergeWhenEmpty(){return!0}};function GH(n){if(n.classList.contains("task-list-item")){for(const e of n.children)if(e.tagName==="INPUT")return HE(e)}if(n.classList.contains("joplin-checkbox")){for(const e of n.children)if(e.classList.contains("checkbox-wrapper")&&e.children.length>0&&e.children[0].tagName==="INPUT")return HE(e.children[0])}const t=n.getAttribute("aria-checked");return{node:Wi(t==="true"||t!=="false"&&void 0)}}function HE(n){return n.getAttribute("type")!=="checkbox"?{node:null}:{node:Wi(n.hasAttribute("checked"))}}function Wi(n){return Mt(new Rd(void 0,n))}function Vn(n){return n instanceof Rd}let Pd=class extends gt{constructor(e="number",r=1,s){super(s);z(this,"__tag");z(this,"__start");z(this,"__listType");const i=JH[e]||e;this.__listType=i,this.__tag=i==="number"?"ol":"ul",this.__start=r}$config(){return this.config("list",{$transform:e=>{(function(r){const s=r.getNextSibling();It(s)&&r.getListType()===s.getListType()&&Bw(r,s)})(e),WH(e)},extends:gt,importDOM:{ol:()=>({conversion:GE,priority:0}),ul:()=>({conversion:GE,priority:0})}})}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){const r=this.getWritable();return r.__listType=e,r.__tag=e==="number"?"ol":"ul",r}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){const r=this.getWritable();return r.__start=e,r}createDOM(e,r){const s=this.__tag,i=document.createElement(s);return this.__start!==1&&i.setAttribute("start",String(this.__start)),i.__lexicalListType=this.__listType,YE(i,e.theme,this),i}updateDOM(e,r,s){return e.__tag!==this.__tag||e.__listType!==this.__listType||(YE(r,s.theme,this),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){const r=this.createDOM(e._config,e);return Et(r)&&(this.__start!==1&&r.setAttribute("start",String(this.__start)),this.__listType==="check"&&r.setAttribute("__lexicalListType","check")),{element:r}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,r,s){let i=s;for(let o=0;o<s.length;o++){const l=s[o];Vn(l)||(i===s&&(i=[...s]),i[o]=Wi().append(!Y(l)||It(l)||l.isInline()?l:$e(l.getTextContent())))}return super.splice(e,r,i)}extractWithChild(e){return Vn(e)}};function YE(n,t,e){const r=[],s=[],i=t.list;if(i!==void 0){const o=i[`${e.__tag}Depth`]||[],l=KH(e)-1,a=l%o.length,u=o[a],d=i[e.__tag];let f;const g=i.nested,p=i.checklist;if(g!==void 0&&g.list&&(f=g.list),d!==void 0&&r.push(d),p!==void 0&&e.__listType==="check"&&r.push(p),u!==void 0){r.push(...pg(u));for(let m=0;m<o.length;m++)m!==a&&s.push(e.__tag+m)}if(f!==void 0){const m=pg(f);l>1?r.push(...m):s.push(...m)}}s.length>0&&Lr(n,...s),r.length>0&&st(n,...r)}function ZH(n){const t=[];for(let e=0;e<n.length;e++){const r=n[e];if(Vn(r)){t.push(r);const s=r.getChildren();s.length>1&&s.forEach(i=>{It(i)&&t.push(WE(i))})}else t.push(WE(r))}return t}function GE(n){const t=n.nodeName.toLowerCase();let e=null;return t==="ol"?e=Qs("number",n.start):t==="ul"&&(e=(function(r){if(r.getAttribute("__lexicallisttype")==="check"||r.classList.contains("contains-task-list")||r.getAttribute("data-is-checklist")==="1")return!0;for(const s of r.childNodes)if(Et(s)&&s.hasAttribute("aria-checked"))return!0;return!1})(n)?Qs("check"):Qs("bullet")),{after:ZH,node:e}}const JH={ol:"number",ul:"bullet"};function Qs(n="number",t=1){return Mt(new Pd(n,t))}function It(n){return n instanceof Pd}function db(n,t){const e={};for(const r of n){const s=t(r);s&&(e[s]?e[s].push(r):e[s]=[r])}return e}function jw(n){const t=db(n,e=>e.type);return{element:t.element||[],multilineElement:t["multiline-element"]||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}const mg=/[!-/:-@[-`{-~\s]/,VH=/^\s{0,3}$/;function fb(n){if(!un(n))return!1;const t=n.getFirstChild();return t==null||n.getChildrenSize()===1&&ie(t)&&VH.test(t.getTextContent())}function QH(n,t,e,r){for(const s of t){if(!s.export)continue;const i=s.export(n,o=>Ag(o,e,r));if(i!=null)return i}return Y(n)?Ag(n,e,r):tt(n)?n.getTextContent():null}function Ag(n,t,e,r,s){const i=[],o=n.getChildren();r||(r=[]),s||(s=[]);e:for(const l of o){for(const a of e){if(!a.export)continue;const u=a.export(l,d=>Ag(d,t,e,r,[...s,...r]),(d,f)=>ZE(d,f,t,r,s));if(u!=null){i.push(u);continue e}}St(l)?i.push(`
46
+ `):ie(l)?i.push(ZE(l,l.getTextContent(),t,r,s)):Y(l)?i.push(Ag(l,t,e,r,s)):tt(l)&&i.push(l.getTextContent())}return i.join("")}function ZE(n,t,e,r,s){let i=n.getFormat()===0?t:(function(g){return g.replace(/^\s+|\s+$/g,p=>[...p].map(m=>"&#"+m.codePointAt(0)+";").join(""))})(t);n.hasFormat("code")||(i=i.replace(/([*_`~\\])/g,"\\$1"));let o="",l="",a="";const u=JE(n,!0),d=JE(n,!1),f=new Set;for(const g of e){const p=g.format[0],m=g.tag;Vf(n,p)&&!f.has(p)&&(f.add(p),Vf(u,p)&&r.find(y=>y.tag===m)||(r.push({format:p,tag:m}),o+=m))}for(let g=0;g<r.length;g++){const p=Vf(n,r[g].format),m=Vf(d,r[g].format);if(p&&m)continue;const y=[...r];for(;y.length>g;){const b=y.pop();s&&b&&s.find(x=>x.tag===b.tag)||(b&&typeof b.tag=="string"&&(p?m||(a+=b.tag):l+=b.tag),r.pop())}break}return i=o+i+a,l+i}function JE(n,t){let e=t?n.getPreviousSibling():n.getNextSibling();if(!e){const r=n.getParentOrThrow();r.isInline()&&(e=t?r.getPreviousSibling():r.getNextSibling())}for(;e;){if(Y(e)){if(!e.isInline())break;const r=t?e.getLastDescendant():e.getFirstDescendant();if(ie(r))return r;e=t?e.getPreviousSibling():e.getNextSibling()}if(ie(e))return e;if(!Y(e))return null}return null}function Vf(n,t){return ie(n)&&n.hasFormat(t)}function XH(n,t){const e=(function(s,i){const o=s.match(i.openTagsRegExp);if(o==null)return null;for(const l of o){const a=l.replace(/^\s/,""),u=i.fullMatchRegExpByTag[a];if(u==null)continue;const d=s.match(u),f=i.transformersByTag[a];if(d!=null&&f!=null){if(f.intraword!==!1)return d;const{index:g=0}=d,p=s[g-1],m=s[g+d[0].length];if((!p||mg.test(p))&&(!m||mg.test(m)))return d}}return null})(n.getTextContent(),t);if(!e)return null;const r=e.index||0;return{endIndex:r+e[0].length,match:e,startIndex:r,transformer:t.transformersByTag[e[1]]}}function ol(n){return ie(n)&&!n.hasFormat("code")}function ll(n,t,e){let r=XH(n,t),s=(function(o,l){const a=o;let u,d,f,g;for(const p of l){if(!p.replace||!p.importRegExp)continue;const m=a.getTextContent().match(p.importRegExp);if(!m)continue;const y=m.index||0,b=p.getEndIndex?p.getEndIndex(a,m):y+m[0].length;b!==!1&&(u===void 0||d===void 0||y<u&&(b>d||b<=u))&&(u=y,d=b,f=p,g=m)}return u===void 0||d===void 0||f===void 0||g===void 0?null:{endIndex:d,match:g,startIndex:u,transformer:f}})(n,e);if(r&&s&&(r.startIndex<=s.startIndex&&r.endIndex>=s.endIndex||s.startIndex>r.endIndex?s=null:r=null),r){const o=(function(l,a,u,d,f){const g=l.getTextContent();let p,m,y;if(f[0]===g?p=l:a===0?[p,m]=l.splitText(u):[y,p,m]=l.splitText(a,u),p.setTextContent(f[2]),d)for(const b of d.format)p.hasFormat(b)||p.toggleFormat(b);return{nodeAfter:m,nodeBefore:y,transformedNode:p}})(n,r.startIndex,r.endIndex,r.transformer,r.match);ol(o.nodeAfter)&&ll(o.nodeAfter,t,e),ol(o.nodeBefore)&&ll(o.nodeBefore,t,e),ol(o.transformedNode)&&ll(o.transformedNode,t,e)}else if(s){const o=(function(l,a,u,d,f){let g,p,m;return a===0?[g,p]=l.splitText(u):[m,g,p]=l.splitText(a,u),d.replace?{nodeAfter:p,nodeBefore:m,transformedNode:d.replace(g,f)||void 0}:null})(n,s.startIndex,s.endIndex,s.transformer,s.match);if(!o)return;ol(o.nodeAfter)&&ll(o.nodeAfter,t,e),ol(o.nodeBefore)&&ll(o.nodeBefore,t,e),ol(o.transformedNode)&&ll(o.transformedNode,t,e)}const i=n.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(o,l)=>String.fromCodePoint(l));n.setTextContent(i)}function qH(n,t=!1){const e=jw(n),r=(function(s){const i={},o={},l=[],a="(?<![\\\\])";for(const u of s){const{tag:d}=u;i[d]=u;const f=d.replace(/(\*|\^|\+)/g,"\\$1");l.push(f),d.length===1?o[d]=d==="`"?new RegExp("(?<![\\\\`])(`)((?:\\\\`|[^`])+?)(`)(?!`)"):new RegExp(`(?<![\\\\${f}])(${f})((\\\\${f})?.*?[^${f}\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?![\\\\${f}])`):o[d]=new RegExp(`(?<!\\\\)(${f})((\\\\${f})?.*?[^\\s](\\\\${f})?)((?<!\\\\)|(?<=\\\\\\\\))(${f})(?!\\\\)`)}return{fullMatchRegExpByTag:o,openTagsRegExp:new RegExp(`${a}(${l.join("|")})`,"g"),transformersByTag:i}})(e.textFormat);return(s,i)=>{const o=s.split(`
47
+ `),l=o.length,a=i||xe();a.clear();for(let d=0;d<l;d++){const f=o[d],[g,p]=$H(o,d,e.multilineElement,a);g?d=p:eY(f,a,e.element,r,e.textMatch,t)}const u=a.getChildren();for(const d of u)!t&&fb(d)&&a.getChildrenSize()>1&&d.remove();G()!==null&&a.selectStart()}}function $H(n,t,e,r){for(const s of e){const{handleImportAfterStartMatch:i,regExpEnd:o,regExpStart:l,replace:a}=s,u=n[t].match(l);if(!u)continue;if(i){const m=i({lines:n,rootNode:r,startLineIndex:t,startMatch:u,transformer:s});if(m===null)continue;if(m)return m}const d=typeof o=="object"&&"regExp"in o?o.regExp:o,f=o&&typeof o=="object"&&"optional"in o?o.optional:!o;let g=t;const p=n.length;for(;g<p;){const m=d?n[g].match(d):null;if(!m&&(!f||f&&g<p-1)){g++;continue}if(m&&t===g&&m.index===u.index){g++;continue}const y=[];if(m&&t===g)y.push(n[t].slice(u[0].length,-m[0].length));else for(let b=t;b<=g;b++)if(b===t){const x=n[b].slice(u[0].length);y.push(x)}else if(b===g&&m){const x=n[b].slice(0,-m[0].length);y.push(x)}else y.push(n[b]);if(a(r,null,u,m,y,!0)!==!1)return[!0,g];break}}return[!1,t]}function eY(n,t,e,r,s,i){const o=$e(n),l=we();l.append(o),t.append(l);for(const{regExp:a,replace:u}of e){const d=n.match(a);if(d&&(o.setTextContent(n.slice(d[0].length)),u(l,[o],d,!0)!==!1))break}if(ll(o,r,s),l.isAttached()&&n.length>0){const a=l.getPreviousSibling();if(!i&&(un(a)||Mo(a)||It(a))){let u=a;if(It(a)){const d=a.getLastDescendant();u=d==null?null:Se(d,Vn)}u!=null&&u.getTextContentSize()>0&&(u.splice(u.getChildrenSize(),0,[dr(),...l.getChildren()]),l.remove())}}}function tY(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const d2=/^(\s*)(\d{1,})\.\s/,f2=/^(\s*)[-*+]\s/,h2=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,hb=/^(#{1,6})\s/,g2=/^>\s/,p2=/^[ \t]*```([\w-]+)?/,gb=/[ \t]*```$/,nY=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,rY=/^(?:\|)(.+)(?:\|)\s?$/,sY=/^(\| ?:?-*:? ?)+\|\s?$/,VE=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,QE=/^<\/[a-z_][\w-]*\s*>/i,XE=n=>new RegExp(`(?:${n.source})$`,n.flags),mu=PT("mdListMarker",{parse:n=>typeof n=="string"&&/^[-*+]$/.test(n)?n:"-"}),m2=n=>(t,e,r,s)=>{const i=n(r);i.append(...e),t.replace(i),s||i.select(0,0)},Fw=n=>(t,e,r,s)=>{const i=t.getPreviousSibling(),o=t.getNextSibling(),l=Wi(n==="check"?r[3]==="x":void 0),a=r[0].trim()[0],u=n!=="bullet"&&n!=="check"||a!==mu.parse(a)?void 0:a;if(It(o)&&o.getListType()===n){u&&Gm(o,mu,u);const f=o.getFirstChild();f!==null?f.insertBefore(l):o.append(l),t.remove()}else if(It(i)&&i.getListType()===n)u&&Gm(i,mu,u),i.append(l),t.remove();else{const f=Qs(n,n==="number"?Number(r[2]):void 0);u&&Gm(f,mu,u),f.append(l),t.replace(f)}l.append(...e),s||l.select(0,0);const d=(function(f){const g=f.match(/\t/g),p=f.match(/ /g);let m=0;return g&&(m+=g.length),p&&(m+=Math.floor(p.length/4)),m})(r[1]);d&&l.setIndent(d)},kp=(n,t,e)=>{const r=[],s=n.getChildren();let i=0;for(const o of s)if(Vn(o)){if(o.getChildrenSize()===1){const f=o.getFirstChild();if(It(f)){r.push(kp(f,t,e+1));continue}}const l=" ".repeat(4*e),a=n.getListType(),u=BT(n,mu),d=a==="number"?`${n.getStart()+i}. `:a==="check"?`${u} [${o.getChecked()?"x":" "}] `:u+" ";r.push(l+d+t(o)),i++}return r.join(`
48
+ `)},A2={dependencies:[_d],export:(n,t)=>{if(!Vs(n))return null;const e=Number(n.getTag().slice(1));return"#".repeat(e)+" "+t(n)},regExp:hb,replace:m2(n=>{const t="h"+n[1].length;return Ws(t)}),type:"element"},y2={dependencies:[dp],export:(n,t)=>{if(!Mo(n))return null;const e=t(n).split(`
49
+ `),r=[];for(const s of e)r.push("> "+s);return r.join(`
50
+ `)},regExp:g2,replace:(n,t,e,r)=>{if(r){const i=n.getPreviousSibling();if(Mo(i))return i.splice(i.getChildrenSize(),0,[dr(),...t]),void n.remove()}const s=Ic();s.append(...t),n.replace(s),r||s.select(0,0)},type:"element"},iY={dependencies:[Di],export:n=>{if(!qn(n))return null;const t=n.getTextContent();return"```"+(n.getLanguage()||"")+(t?`
51
+ `+t:"")+"\n```"},regExpEnd:{optional:!0,regExp:gb},regExpStart:p2,replace:(n,t,e,r,s,i)=>{let o,l;if(!t&&s){if(s.length===1)r?(o=es(),l=e[1]+s[0]):(o=es(e[1]),l=s[0].startsWith(" ")?s[0].slice(1):s[0]);else{if(o=es(e[1]),s[0].trim().length===0)for(;s.length>0&&!s[0].length;)s.shift();else s[0]=s[0].startsWith(" ")?s[0].slice(1):s[0];for(;s.length>0&&!s[s.length-1].length;)s.pop();l=s.join(`
52
+ `)}const a=$e(l);o.append(a),n.append(o)}else t&&m2(a=>es(a?a[1]:void 0))(n,t,e,i)},type:"multiline-element"},oY={dependencies:[Pd,Rd],export:(n,t)=>It(n)?kp(n,t,0):null,regExp:f2,replace:Fw("bullet"),type:"element"},lY={dependencies:[Pd,Rd],export:(n,t)=>It(n)?kp(n,t,0):null,regExp:h2,replace:Fw("check"),type:"element"},aY={dependencies:[Pd,Rd],export:(n,t)=>It(n)?kp(n,t,0):null,regExp:d2,replace:Fw("number"),type:"element"},cY={format:["code"],tag:"`",type:"text-format"},uY={format:["highlight"],tag:"==",type:"text-format"},dY={format:["bold","italic"],tag:"***",type:"text-format"},fY={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},hY={format:["bold"],tag:"**",type:"text-format"},gY={format:["bold"],intraword:!1,tag:"__",type:"text-format"},pY={format:["strikethrough"],tag:"~~",type:"text-format"},mY={format:["italic"],tag:"*",type:"text-format"},AY={format:["italic"],intraword:!1,tag:"_",type:"text-format"},yY={dependencies:[ta],export:(n,t,e)=>{if(!Nn(n)||fl(n))return null;const r=n.getTitle(),s=t(n);return r?`[${s}](${n.getURL()} "${r}")`:`[${s}](${n.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(n,t)=>{const[,e,r,s]=t,i=xo(r,{title:s}),o=e.split("[").length-1,l=e.split("]").length-1;let a=e,u="";if(o<l)return;if(o>l){const f=e.split("[");u="["+f[0],a=f.slice(1).join("[")}const d=$e(a);return d.setFormat(n.getFormat()),i.append(d),n.replace(i),u&&i.insertBefore($e(u)),d},trigger:")",type:"text-match"},bY=[A2,y2,oY,aY],b2=[iY],w2=[cY,dY,fY,hY,gY,uY,mY,AY,pY],C2=[yY],Tp=[...bY,...b2,...w2,...C2];function qE(n,t,e){const r=e.length;for(let s=t;s>=r;s--){const i=s-r;if(x2(n,i,e,0,r)&&n[i+r]!==" ")return i}return-1}function x2(n,t,e,r,s){for(let i=0;i<s;i++)if(n[t+i]!==e[r+i])return!1;return!0}function wY(n,t=Tp){const e=jw(t),r=db(e.textFormat,({tag:o})=>o[o.length-1]),s=db(e.textMatch,({trigger:o})=>o);for(const o of t){const l=o.type;if(l==="element"||l==="text-match"||l==="multiline-element"){const a=o.dependencies;for(const u of a)n.hasNode(u)||tY(173,u.getType())}}const i=(o,l,a)=>{(function(u,d,f,g){const p=u.getParent();if(!$n(p)||u.getFirstChild()!==d)return!1;const m=d.getTextContent();if(m[f-1]!==" ")return!1;for(const{regExp:y,replace:b}of g){const x=m.match(y);if(x&&x[0].length===(x[0].endsWith(" ")?f:f-1)){const C=d.getNextSiblings(),[v,E]=d.splitText(f);if(b(u,E?[E,...C]:C,x,!1)!==!1)return v.remove(),!0}}return!1})(o,l,a,e.element)||(function(u,d,f,g){const p=u.getParent();if(!$n(p)||u.getFirstChild()!==d)return!1;const m=d.getTextContent();if(m[f-1]!==" ")return!1;for(const{regExpStart:y,replace:b,regExpEnd:x}of g){if(x&&!("optional"in x)||x&&"optional"in x&&!x.optional)continue;const C=m.match(y);if(C&&C[0].length===(C[0].endsWith(" ")?f:f-1)){const v=d.getNextSiblings(),[E,N]=d.splitText(f);if(b(u,N?[N,...v]:v,C,null,null,!1)!==!1)return E.remove(),!0}}return!1})(o,l,a,e.multilineElement)||(function(u,d,f){let g=u.getTextContent();const p=f[g[d-1]];if(p==null)return!1;d<g.length&&(g=g.slice(0,d));for(const m of p){if(!m.replace||!m.regExp)continue;const y=g.match(m.regExp);if(y===null)continue;const b=y.index||0,x=b+y[0].length;let C;return b===0?[C]=u.splitText(x):[,C]=u.splitText(b,x),C.selectNext(0,0),m.replace(C,y),!0}return!1})(l,a,s)||(function(u,d,f){const g=u.getTextContent(),p=d-1,m=g[p],y=f[m];if(!y)return!1;for(const b of y){const{tag:x}=b,C=x.length,v=p-C+1;if(C>1&&!x2(g,v,x,0,C)||g[v-1]===" ")continue;const E=g[p+1];if(b.intraword===!1&&E&&!mg.test(E))continue;const N=u;let S=N,_=qE(g,v,x),I=S;for(;_<0&&(I=I.getPreviousSibling())&&!St(I);)if(ie(I)){if(I.hasFormat("code"))continue;const ae=I.getTextContent();S=I,_=qE(ae,ae.length,x)}if(_<0||S===N&&_+C===v)continue;const L=S.getTextContent();if(_>0&&L[_-1]===m)continue;const M=L[_-1];if(b.intraword===!1&&M&&!mg.test(M))continue;const R=N.getTextContent(),F=R.slice(0,v)+R.slice(p+1);N.setTextContent(F);const j=S===N?F:L;S.setTextContent(j.slice(0,_)+j.slice(_+C));const U=G(),V=ii();Ge(V);const ne=p-C*(S===N?2:1)+1;V.anchor.set(S.__key,_,"text"),V.focus.set(N.__key,ne,"text");for(const ae of b.format)V.hasFormat(ae)||V.formatText(ae);V.anchor.set(V.focus.key,V.focus.offset,V.focus.type);for(const ae of b.format)V.hasFormat(ae)&&V.toggleFormat(ae);return H(U)&&(V.format=U.format),!0}})(l,a,r)};return n.registerUpdateListener(({tags:o,dirtyLeaves:l,editorState:a,prevEditorState:u})=>{if(o.has(dd)||o.has(Nl)||n.isComposing())return;const d=a.read(G),f=u.read(G);if(!H(f)||!H(d)||!d.isCollapsed()||d.is(f))return;const g=d.anchor.key,p=d.anchor.offset,m=a._nodeMap.get(g);!ie(m)||!l.has(g)||p!==1&&p>f.anchor.offset+1||n.update(()=>{if(!ol(m))return;const y=m.getParent();y===null||qn(y)||i(y,m,d.anchor.offset)})})}function v2(n,t=Tp,e,r=!1,s=!1){const i=r?n:(function(o,l=!1){const a=o.split(`
53
+ `);let u=!1;const d=[];for(let f=0;f<a.length;f++){const g=a[f].trimEnd(),p=d[d.length-1];nY.test(g)?d.push(g):p2.test(g)||gb.test(g)?(u=!u,d.push(g)):u||g===""||p===""||!p||hb.test(p)||hb.test(g)||g2.test(g)||d2.test(g)||f2.test(g)||h2.test(g)||rY.test(g)||sY.test(g)||!l||VE.test(g)||QE.test(g)||XE(QE).test(p)||XE(VE).test(p)||gb.test(p)?d.push(g):d[d.length-1]=p+" "+g.trimStart()}return d.join(`
54
+ `)})(n,s);return qH(t,r)(i,e)}function S2(n=Tp,t,e=!1){return(function(s,i=!1){const o=jw(s),l=[...o.multilineElement,...o.element],a=!i,u=o.textFormat.filter(d=>d.format.length===1).sort((d,f)=>Number(d.format.includes("code"))-Number(f.format.includes("code")));return d=>{const f=[],g=(d||xe()).getChildren();for(let p=0;p<g.length;p++){const m=g[p],y=QH(m,l,u,o.textMatch);y!=null&&f.push(a&&p>0&&!fb(m)&&!fb(g[p-1])?`
55
+ `.concat(y):y)}return f.join(`
56
+ `)}})(n,e)(t)}function CY({children:n}){return Or.createPortal(A.jsx("div",{className:"FlashMessage__overlay",role:"dialog",children:A.jsx("p",{className:"FlashMessage__alert",role:"alert",children:n})}),document.body)}const E2=k.createContext(void 0),PA={},xY=1e3,vY=({children:n})=>{const[t,e]=k.useState(PA),r=k.useCallback((s,i)=>e(s?{duration:i,message:s}:PA),[]);return k.useEffect(()=>{if(t.message){const s=setTimeout(()=>e(PA),t.duration??xY);return()=>clearTimeout(s)}},[t]),A.jsxs(E2.Provider,{value:r,children:[n,t.message&&A.jsx(CY,{children:t.message})]})},SY=()=>{const n=k.useContext(E2);if(!n)throw new Error("Missing FlashMessageContext");return n};function EY(){return SY()}function kY({onClose:n,children:t,title:e,size:r}){return A.jsx(O.Modal,{className:"doc-space-editor-wrapper",size:r,centered:!0,opened:!0,onClose:n,title:e,zIndex:999,children:t})}function _p(n){const[t,e]=k.useState(null),r=k.useCallback(()=>{e(null)},[]),s=k.useMemo(()=>{if(t===null)return null;const{title:o,content:l,closeOnClickOutside:a}=t;return A.jsx(kY,{onClose:r,title:o,size:"md",closeOnClickOutside:a,children:l})},[t,r]),i=k.useCallback((o,l,a=!1)=>{e({closeOnClickOutside:a,content:l(r),title:o})},[r]);return[s,i]}function pb({"data-test-id":n,children:t,className:e,onClick:r,disabled:s,small:i,title:o}){return A.jsx(O.Button,{onClick:r,disabled:s,variant:"filled",children:t})}async function*k2(n){let t=!1;for(;!t;){const e=await n.read(),{value:r}=e;r!==void 0&&(yield r),t=e.done}}async function TY(n){const t=[];for await(const r of k2(n))for(let s=0;s<r.length;s+=32768)t.push(String.fromCharCode(...r.subarray(s,s+32768)));return t.join("")}async function _Y(n){const t=new CompressionStream("gzip"),e=t.writable.getWriter(),[,r]=await Promise.all([e.write(new TextEncoder().encode(JSON.stringify(n))).then(()=>e.close()),TY(t.readable.getReader())]);return`#doc=${btoa(r).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}`}async function NY(n){const t=/^#doc=(.*)$/.exec(n);if(!t)return null;const e=new DecompressionStream("gzip"),r=e.writable.getWriter(),s=atob(t[1].replace(/_/g,"/").replace(/-/g,"+")),i=new Uint8Array(s.length);for(let a=0;a<s.length;a++)i[a]=s.charCodeAt(a);const o=r.write(i).then(()=>r.close()),l=[];for await(const a of k2(e.readable.pipeThrough(new TextDecoderStream).getReader()))l.push(a);return await o,JSON.parse(l.join(""))}const zw=/^(\d+(?:\.\d+)?)px$/,Xs={BOTH:3,NO_STATUS:0,ROW:1};class jc extends gt{constructor(e=Xs.NO_STATUS,r=1,s,i){super(i);z(this,"__colSpan");z(this,"__rowSpan");z(this,"__headerState");z(this,"__width");z(this,"__backgroundColor");z(this,"__verticalAlign");this.__colSpan=r,this.__rowSpan=1,this.__headerState=e,this.__width=s,this.__backgroundColor=null,this.__verticalAlign=void 0}static getType(){return"tablecell"}static clone(e){return new jc(e.__headerState,e.__colSpan,e.__width,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor,this.__verticalAlign=e.__verticalAlign}static importDOM(){return{td:e=>({conversion:$E,priority:0}),th:e=>({conversion:$E,priority:0})}}static importJSON(e){return Uw().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeaderStyles(e.headerState).setColSpan(e.colSpan||1).setRowSpan(e.rowSpan||1).setWidth(e.width||void 0).setBackgroundColor(e.backgroundColor||null).setVerticalAlign(e.verticalAlign||void 0)}createDOM(e){const r=document.createElement(this.getTag());return this.__width&&(r.style.width=`${this.__width}px`),this.__colSpan>1&&(r.colSpan=this.__colSpan),this.__rowSpan>1&&(r.rowSpan=this.__rowSpan),this.__backgroundColor!==null&&(r.style.backgroundColor=this.__backgroundColor),mb(this.__verticalAlign)&&(r.style.verticalAlign=this.__verticalAlign),st(r,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),r}exportDOM(e){const r=super.exportDOM(e);if(Et(r.element)){const s=r.element;s.setAttribute("data-temporary-table-cell-lexical-key",this.getKey()),s.style.border="1px solid black",this.__colSpan>1&&(s.colSpan=this.__colSpan),this.__rowSpan>1&&(s.rowSpan=this.__rowSpan),s.style.width=`${this.getWidth()||75}px`,s.style.verticalAlign=this.getVerticalAlign()||"top",s.style.textAlign="start",this.__backgroundColor===null&&this.hasHeader()&&(s.style.backgroundColor="#f2f3f5")}return r}exportJSON(){return{...super.exportJSON(),...mb(this.__verticalAlign)&&{verticalAlign:this.__verticalAlign},backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){const r=this.getWritable();return r.__colSpan=e,r}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){const r=this.getWritable();return r.__rowSpan=e,r}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(e,r=Xs.BOTH){const s=this.getWritable();return s.__headerState=e&r|s.__headerState&~r,s}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){const r=this.getWritable();return r.__width=e,r}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){const r=this.getWritable();return r.__backgroundColor=e,r}getVerticalAlign(){return this.getLatest().__verticalAlign}setVerticalAlign(e){const r=this.getWritable();return r.__verticalAlign=e||void 0,r}toggleHeaderStyle(e){const r=this.getWritable();return(r.__headerState&e)===e?r.__headerState-=e:r.__headerState+=e,r}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==Xs.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor||e.__verticalAlign!==this.__verticalAlign}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function mb(n){return n==="middle"||n==="bottom"}function $E(n){const t=n,e=n.nodeName.toLowerCase();let r;zw.test(t.style.width)&&(r=parseFloat(t.style.width));const s=Uw(e==="th"?Xs.ROW:Xs.NO_STATUS,t.colSpan,r);s.__rowSpan=t.rowSpan;const i=t.style.backgroundColor;i!==""&&(s.__backgroundColor=i);const o=t.style.verticalAlign;mb(o)&&(s.__verticalAlign=o);const l=t.style,a=(l&&l.textDecoration||"").split(" "),u=l.fontWeight==="700"||l.fontWeight==="bold",d=a.includes("line-through"),f=l.fontStyle==="italic",g=a.includes("underline");return{after:p=>{const m=[];let y=null;const b=()=>{if(y){const x=y.getFirstChild();St(x)&&y.getChildrenSize()===1&&x.remove()}};for(const x of p)S3(x)||ie(x)||St(x)?(ie(x)&&(u&&x.toggleFormat("bold"),d&&x.toggleFormat("strikethrough"),f&&x.toggleFormat("italic"),g&&x.toggleFormat("underline")),y?y.append(x):(y=we().append(x),m.push(y))):(m.push(x),b(),y=null);return b(),m.length===0&&m.push(we()),m},node:s}}function Uw(n=Xs.NO_STATUS,t=1,e){return Mt(new jc(n,t,e))}function ur(n){return n instanceof jc}function Sn(n,...t){const e=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const s of t)r.append("v",s);throw e.search=r.toString(),Error(`Minified Lexical error #${n}; visit ${e.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}class Bd extends gt{constructor(e,r){super(r);z(this,"__height");this.__height=e}static getType(){return"tablerow"}static clone(e){return new Bd(e.__height,e.__key)}static importDOM(){return{tr:e=>({conversion:IY,priority:0})}}static importJSON(e){return Kw().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeight(e.height)}exportJSON(){const e=this.getHeight();return{...super.exportJSON(),...e===void 0?void 0:{height:e}}}createDOM(e){const r=document.createElement("tr");return this.__height&&(r.style.height=`${this.__height}px`),st(r,e.theme.tableRow),r}extractWithChild(e,r,s){return s==="html"}isShadowRoot(){return!0}setHeight(e){const r=this.getWritable();return r.__height=e,r}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function IY(n){const t=n;let e;return zw.test(t.style.height)&&(e=parseFloat(t.style.height)),{after:r=>Q_(r,ur),node:Kw(e)}}function Kw(n){return Mt(new Bd(n))}function Fo(n){return n instanceof Bd}const T2=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,LY=T2&&"documentMode"in document?document.documentMode:null;T2&&"InputEvent"in window&&!LY&&new window.InputEvent("input");function MY(n,t,e){const[r,s,i]=_2(n,t,e);return s===null&&Sn(207),i===null&&Sn(208),[r,s,i]}function _2(n,t,e){const r=[];let s=null,i=null;function o(a){let u=r[a];return u===void 0&&(r[a]=u=[]),u}const l=n.getChildren();for(let a=0;a<l.length;a++){const u=l[a];Fo(u)||Sn(209);const d=o(a);for(let f=u.getFirstChild(),g=0;f!=null;f=f.getNextSibling()){for(ur(f)||Sn(147);d[g]!==void 0;)g++;const p={cell:f,startColumn:g,startRow:a},{__rowSpan:m,__colSpan:y}=f;for(let b=0;b<m&&!(a+b>=l.length);b++){const x=o(a+b);for(let C=0;C<y;C++)x[g+C]=p}t!==null&&s===null&&t.is(f)&&(s=p),e!==null&&i===null&&e.is(f)&&(i=p)}}return[r,s,i]}function DY(n){let t;if(n instanceof jc)t=n;else if("__type"in n){const s=Se(n,ur);ur(s)||Sn(148),t=s}else{const s=Se(n.getNode(),ur);ur(s)||Sn(148),t=s}const e=t.getParent();Fo(e)||Sn(149);const r=e.getParent();return Lu(r)||Sn(210),[t,e,r]}function OY(n,t,e){let r,s=Math.min(t.startColumn,e.startColumn),i=Math.min(t.startRow,e.startRow),o=Math.max(t.startColumn+t.cell.__colSpan-1,e.startColumn+e.cell.__colSpan-1),l=Math.max(t.startRow+t.cell.__rowSpan-1,e.startRow+e.cell.__rowSpan-1);do{r=!1;for(let a=0;a<n.length;a++)for(let u=0;u<n[0].length;u++){const d=n[a][u];if(!d)continue;const f=d.startColumn+d.cell.__colSpan-1,g=d.startRow+d.cell.__rowSpan-1,p=d.startColumn<=o&&f>=s,m=d.startRow<=l&&g>=i;if(p&&m){const y=Math.min(s,d.startColumn),b=Math.max(o,f),x=Math.min(i,d.startRow),C=Math.max(l,g);y===s&&b===o&&x===i&&C===l||(s=y,o=b,i=x,l=C,r=!0)}}}while(r);return{maxColumn:o,maxRow:l,minColumn:s,minRow:i}}function ek(n){const[t,,e]=DY(n),r=e.getChildren(),s=r.length,i=r[0].getChildren().length,o=new Array(s);for(let l=0;l<s;l++)o[l]=new Array(i);for(let l=0;l<s;l++){const a=r[l].getChildren();let u=0;for(let d=0;d<a.length;d++){for(;o[l][u];)u++;const f=a[d],g=f.__rowSpan||1,p=f.__colSpan||1;for(let m=0;m<g;m++)for(let y=0;y<p;y++)o[l+m][u+y]=f;if(t===f)return{colSpan:p,columnIndex:u,rowIndex:l,rowSpan:g};u+=p}}return null}function tk(n){const[[t,e,r,s],[i,o,l,a]]=["anchor","focus"].map(u=>{const d=n[u].getNode(),f=Se(d,ur);ur(f)||Sn(238,u,d.getKey(),d.getType());const g=f.getParent();Fo(g)||Sn(239,u);const p=g.getParent();return Lu(p)||Sn(240,u),[d,f,g,p]});return s.is(a)||Sn(241),{anchorCell:e,anchorNode:t,anchorRow:r,anchorTable:s,focusCell:o,focusNode:i,focusRow:l,focusTable:a}}class Ww{constructor(t,e,r){z(this,"tableKey");z(this,"anchor");z(this,"focus");z(this,"_cachedNodes");z(this,"dirty");this.anchor=e,this.focus=r,e._selection=this,r._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=t}getStartEndPoints(){return[this.anchor,this.focus]}isValid(){if(this.tableKey==="root"||this.anchor.key==="root"||this.anchor.type!=="element"||this.focus.key==="root"||this.focus.type!=="element")return!1;const t=me(this.tableKey),e=me(this.anchor.key),r=me(this.focus.key);return t!==null&&e!==null&&r!==null}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return Hw(t)&&this.tableKey===t.tableKey&&this.anchor.is(t.anchor)&&this.focus.is(t.focus)}set(t,e,r){this.dirty=this.dirty||t!==this.tableKey||e!==this.anchor.key||r!==this.focus.key,this.tableKey=t,this.anchor.key=e,this.focus.key=r,this._cachedNodes=null}clone(){return new Ww(this.tableKey,Rn(this.anchor.key,this.anchor.offset,this.anchor.type),Rn(this.focus.key,this.focus.offset,this.focus.type))}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(t){}insertText(){}hasFormat(t){let e=0;this.getNodes().filter(ur).forEach(s=>{const i=s.getFirstChild();un(i)&&(e|=i.getTextFormat())});const r=Ri[t];return(e&r)!==0}insertNodes(t){const e=this.focus.getNode();Y(e)||Sn(151),ko(e.select(0,e.getChildrenSize())).insertNodes(t)}getShape(){const{anchorCell:t,focusCell:e}=tk(this),r=ek(t);r===null&&Sn(153);const s=ek(e);s===null&&Sn(155);const i=Math.min(r.columnIndex,s.columnIndex),o=Math.max(r.columnIndex+r.colSpan-1,s.columnIndex+s.colSpan-1),l=Math.min(r.rowIndex,s.rowIndex),a=Math.max(r.rowIndex+r.rowSpan-1,s.rowIndex+s.rowSpan-1);return{fromX:Math.min(i,o),fromY:Math.min(l,a),toX:Math.max(i,o),toY:Math.max(l,a)}}getNodes(){if(!this.isValid())return[];const t=this._cachedNodes;if(t!==null)return t;const{anchorTable:e,anchorCell:r,focusCell:s}=tk(this),i=s.getParents()[1];if(i!==e){if(e.isParentOf(s)){const b=i.getParent();b==null&&Sn(159),this.set(this.tableKey,s.getKey(),b.getKey())}else{const b=e.getParent();b==null&&Sn(158),this.set(this.tableKey,b.getKey(),s.getKey())}return this.getNodes()}const[o,l,a]=MY(e,r,s),{minColumn:u,maxColumn:d,minRow:f,maxRow:g}=OY(o,l,a),p=new Map([[e.getKey(),e]]);let m=null;for(let b=f;b<=g;b++)for(let x=u;x<=d;x++){const{cell:C}=o[b][x],v=C.getParent();Fo(v)||Sn(160),v!==m&&(p.set(v.getKey(),v),m=v),p.has(C.getKey())||RY(C,E=>{p.set(E.getKey(),E)})}const y=Array.from(p.values());return Jl()||(this._cachedNodes=y),y}getTextContent(){const t=this.getNodes().filter(r=>ur(r));let e="";for(let r=0;r<t.length;r++){const s=t[r],i=s.__parent,o=(t[r+1]||{}).__parent;e+=s.getTextContent()+(o!==i?`
57
+ `:" ")}return e}}function Hw(n){return n instanceof Ww}function RY(n,t){const e=[[n]];for(let r=e.at(-1);r!==void 0&&e.length>0;r=e.at(-1)){const s=r.pop();s===void 0?e.pop():t(s)!==!1&&Y(s)&&e.push(s.getChildren())}}function lu(n){return Et(n)&&n.nodeName==="TABLE"}function PY(n,t){for(let e=t,r=null;e!==null;e=e.getParent()){if(n.is(e))return r;ur(e)&&(r=e)}return null}function BY(n,t,e){return PY(n,Oe(t,e))}function nk(n,t,e){if(!t.theme.tableAlignment)return;const r=[],s=[];for(const i of["center","right"]){const o=t.theme.tableAlignment[i];o&&(i===e?s:r).push(o)}Lr(n,...r),st(n,...s)}const jY=new WeakSet;function rk(n=Xl()){return jY.has(n)}class jd extends gt{constructor(e){super(e);z(this,"__rowStriping");z(this,"__frozenColumnCount");z(this,"__frozenRowCount");z(this,"__colWidths");this.__rowStriping=!1,this.__frozenColumnCount=0,this.__frozenRowCount=0,this.__colWidths=void 0}static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){const r=this.getWritable();return r.__colWidths=e,r}static clone(e){return new jd(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping,this.__frozenColumnCount=e.__frozenColumnCount,this.__frozenRowCount=e.__frozenRowCount}static importDOM(){return{table:e=>({conversion:FY,priority:1})}}static importJSON(e){return Yw().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setRowStriping(e.rowStriping||!1).setFrozenColumns(e.frozenColumnCount||0).setFrozenRows(e.frozenRowCount||0).setColWidths(e.colWidths)}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),frozenColumnCount:this.__frozenColumnCount?this.__frozenColumnCount:void 0,frozenRowCount:this.__frozenRowCount?this.__frozenRowCount:void 0,rowStriping:this.__rowStriping?this.__rowStriping:void 0}}extractWithChild(e,r,s){return s==="html"}getDOMSlot(e){const r=lu(e)?e:e.querySelector("table");return lu(r)||Sn(229),super.getDOMSlot(e).withElement(r).withAfter(r.querySelector("colgroup"))}createDOM(e,r){const s=document.createElement("table");this.__style&&(s.style.cssText=this.__style);const i=document.createElement("colgroup");if(s.appendChild(i),I_(i),st(s,e.theme.table),this.updateTableElement(null,s,e),rk(r)){const o=document.createElement("div"),l=e.theme.tableScrollableWrapper;return l?st(o,l):o.style.cssText="overflow-x: auto;",o.appendChild(s),this.updateTableWrapper(null,o,s,e),o}return s}updateTableWrapper(e,r,s,i){this.__frozenColumnCount!==(e?e.__frozenColumnCount:0)&&(function(o,l,a,u){u>0?(st(o,a.theme.tableFrozenColumn),l.setAttribute("data-lexical-frozen-column","true")):(Lr(o,a.theme.tableFrozenColumn),l.removeAttribute("data-lexical-frozen-column"))})(r,s,i,this.__frozenColumnCount),this.__frozenRowCount!==(e?e.__frozenRowCount:0)&&(function(o,l,a,u){u>0?(st(o,a.theme.tableFrozenRow),l.setAttribute("data-lexical-frozen-row","true")):(Lr(o,a.theme.tableFrozenRow),l.removeAttribute("data-lexical-frozen-row"))})(r,s,i,this.__frozenRowCount)}updateTableElement(e,r,s){this.__style!==(e?e.__style:"")&&(r.style.cssText=this.__style),this.__rowStriping!==(!!e&&e.__rowStriping)&&(function(i,o,l){l?(st(i,o.theme.tableRowStriping),i.setAttribute("data-lexical-row-striping","true")):(Lr(i,o.theme.tableRowStriping),i.removeAttribute("data-lexical-row-striping"))})(r,s,this.__rowStriping),(function(i,o,l,a){const u=i.querySelector("colgroup");if(!u)return;const d=[];for(let f=0;f<l;f++){const g=document.createElement("col"),p=a&&a[f];p&&(g.style.width=`${p}px`),d.push(g)}u.replaceChildren(...d)})(r,0,this.getColumnCount(),this.getColWidths()),nk(r,s,this.getFormatType())}updateDOM(e,r,s){const i=this.getDOMSlot(r).element;return r===i===rk()||(Et(o=r)&&o.nodeName==="DIV"&&this.updateTableWrapper(e,r,i,s),this.updateTableElement(e,i,s),!1);var o}exportDOM(e){const r=super.exportDOM(e),{element:s}=r;return{after:i=>{if(r.after&&(i=r.after(i)),!lu(i)&&Et(i)&&(i=i.querySelector("table")),!lu(i))return null;nk(i,e._config,this.getFormatType());const[o]=_2(this,null,null),l=new Map;for(const f of o)for(const g of f){const p=g.cell.getKey();l.has(p)||l.set(p,{colSpan:g.cell.getColSpan(),startColumn:g.startColumn})}const a=new Set;for(const f of i.querySelectorAll(":scope > tr > [data-temporary-table-cell-lexical-key]")){const g=f.getAttribute("data-temporary-table-cell-lexical-key");if(g){const p=l.get(g);if(f.removeAttribute("data-temporary-table-cell-lexical-key"),p){l.delete(g);for(let m=0;m<p.colSpan;m++)a.add(m+p.startColumn)}}}const u=i.querySelector(":scope > colgroup");if(u){const f=Array.from(i.querySelectorAll(":scope > colgroup > col")).filter((g,p)=>a.has(p));u.replaceChildren(...f)}const d=i.querySelectorAll(":scope > tr");if(d.length>0){const f=document.createElement("tbody");for(const g of d)f.appendChild(g);i.append(f)}return i},element:!lu(s)&&Et(s)?s.querySelector("table"):s}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,r){const{rows:s,domRows:i}=r;for(let o=0;o<s;o++){const l=i[o];if(l!=null)for(let a=0;a<l.length;a++){const u=l[a];if(u==null)continue;const{elem:d}=u,f=BY(this,d);if(f!==null&&e.is(f))return{x:a,y:o}}}throw new Error("Cell not found in table.")}getDOMCellFromCords(e,r,s){const{domRows:i}=s,o=i[r];if(o==null)return null;const l=o[e<o.length?e:o.length-1];return l??null}getDOMCellFromCordsOrThrow(e,r,s){const i=this.getDOMCellFromCords(e,r,s);if(!i)throw new Error("Cell not found at cords.");return i}getCellNodeFromCords(e,r,s){const i=this.getDOMCellFromCords(e,r,s);if(i==null)return null;const o=Oe(i.elem);return ur(o)?o:null}getCellNodeFromCordsOrThrow(e,r,s){const i=this.getCellNodeFromCords(e,r,s);if(!i)throw new Error("Node at cords not TableCellNode.");return i}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(e){const r=this.getWritable();return r.__rowStriping=e,r}setFrozenColumns(e){const r=this.getWritable();return r.__frozenColumnCount=e,r}getFrozenColumns(){return this.getLatest().__frozenColumnCount}setFrozenRows(e){const r=this.getWritable();return r.__frozenRowCount=e,r}getFrozenRows(){return this.getLatest().__frozenRowCount}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){const e=this.getFirstChild();if(!e)return 0;let r=0;return e.getChildren().forEach(s=>{ur(s)&&(r+=s.getColSpan())}),r}}function FY(n){const t=Yw();n.hasAttribute("data-lexical-row-striping")&&t.setRowStriping(!0),n.hasAttribute("data-lexical-frozen-column")&&t.setFrozenColumns(1),n.hasAttribute("data-lexical-frozen-row")&&t.setFrozenRows(1);const e=n.querySelector(":scope > colgroup");if(e){let r=[];for(const s of e.querySelectorAll(":scope > col")){let i=s.style.width||"";if(!zw.test(i)&&(i=s.getAttribute("width")||"",!/^\d+$/.test(i))){r=void 0;break}r.push(parseFloat(i))}r&&t.setColWidths(r)}return{after:r=>Q_(r,Fo),node:t}}function Yw(){return Mt(new jd)}function Lu(n){return n instanceof jd}const N2=4,zY={dependencies:[cp],export:n=>HI(n)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(n,t,e,r)=>{const s=na();r||n.getNextSibling()!=null?n.replace(s):n.insertBefore(s),s.selectNext()},type:"element"},UY={dependencies:[Qi],export:n=>fc(n)?`![${n.getAltText()}](${n.getSrc()})`:null,importRegExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))/,regExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))$/,replace:(n,t)=>{const[,e,r]=t,s=wp({altText:e,maxWidth:800,src:r});n.replace(s)},trigger:")",type:"text-match"};function KY(n){const t=n.match(/\t/g),e=n.match(/ /g);let r=0;return t&&(r+=t.length),e&&(r+=Math.floor(e.length/N2)),r}const I2=n=>(t,e,r)=>{const s=t.getPreviousSibling(),i=t.getNextSibling(),o=fr(n==="check"?r[3]==="x":void 0);if(Ze(i)&&i.getListType()===n){const a=i.getFirstChild();a!==null?a.insertBefore(o):i.append(o),t.remove()}else if(Ze(s)&&s.getListType()===n)s.append(o),t.remove();else{const a=yn(n,n==="number"?Number(r[2]):void 0);a.append(o),t.replace(a)}o.append(...e),o.select(0,0);const l=KY(r[1]);l&&o.setIndent(l)},Gw=(n,t,e)=>{const r=[],s=n.getChildren();let i=0;for(const o of s)if(dt(o)){if(o.getChildrenSize()===1){const d=o.getFirstChild();if(Ze(d)){r.push(Gw(d,t,e+1));continue}}const l=" ".repeat(e*N2),a=n.getListType(),u=a==="number"?`${n.getStart()+i}. `:a==="check"?`- [${o.getChecked()?"x":" "}] `:"- ";r.push(l+u+t(o)),i++}return r.join(`
58
+ `)},WY=/^(\s*)(\d{1,})\.\s/,HY=/^(\s*)[-*+]\s/,YY={dependencies:[Br,En],export:(n,t)=>Ze(n)?Gw(n,t,0):null,regExp:WY,replace:I2("number"),type:"element"},GY={dependencies:[Br,En],export:(n,t)=>Ze(n)?Gw(n,t,0):null,regExp:HY,replace:I2("bullet"),type:"element"},L2=/^(?:\|)(.+)(?:\|)\s?$/,ZY=/^(\| ?:?-*:? ?)+\|\s?$/,JY={dependencies:[jd,Bd,jc],export:n=>{if(!Lu(n))return null;const t=[];for(const e of n.getChildren()){const r=[];if(!Fo(e))continue;let s=!1;for(const i of e.getChildren())ur(i)&&(r.push(S2(od,i).replace(/\n/g,"\\n")),i.__headerState===Xs.ROW&&(s=!0));t.push(`| ${r.join(" | ")} |`),s&&t.push(`| ${r.map(i=>"---").join(" | ")} |`)}return t.join(`
59
+ `)},regExp:L2,replace:(n,t,e)=>{if(ZY.test(e[0])){const u=n.getPreviousSibling();if(!u||!Lu(u))return;const d=u.getChildren(),f=d[d.length-1];if(!f||!Fo(f))return;f.getChildren().forEach(g=>{ur(g)&&g.setHeaderStyles(Xs.ROW,Xs.ROW)}),n.remove();return}const r=sk(e[0]);if(r==null)return;const s=[r];let i=n.getPreviousSibling(),o=r.length;for(;i&&!(!un(i)||i.getChildrenSize()!==1);){const u=i.getFirstChild();if(!Hn(u))break;const d=sk(u.getTextContent());if(d==null)break;o=Math.max(o,d.length),s.unshift(d);const f=i.getPreviousSibling();i.remove(),i=f}const l=Yw();for(const u of s){const d=Kw();l.append(d);for(let f=0;f<o;f++)d.append(f<u.length?u[f]:M2(""))}const a=n.getPreviousSibling();Lu(a)&&VY(a)===o?(a.append(...l.getChildren()),n.remove()):n.replace(l),l.selectEnd()},type:"element"};function VY(n){const t=n.getFirstChild();return Fo(t)?t.getChildrenSize():0}const M2=n=>{n=n.replace(/\\n/g,`
60
+ `);const t=Uw(Xs.NO_STATUS);return v2(n,od,t),t},sk=n=>{const t=n.match(L2);return!t||!t[1]?null:t[1].split("|").map(e=>M2(e))},od=[JY,zY,UY,lY,A2,y2,GY,YY,...b2,...w2,...C2],QY=be("SPEECH_TO_TEXT_COMMAND"),XY="SpeechRecognition"in window||"webkitSpeechRecognition"in window;async function qY(n){const t=JSON.stringify(n.getEditorState());try{await fetch("http://localhost:1235/setEditorState",{body:t,headers:{Accept:"application/json","Content-type":"application/json"},method:"POST"})}catch{}}async function $Y(n){const t=JSON.stringify(n.getEditorState());let e=null;try{e=await fetch("http://localhost:1235/validateEditorState",{body:t,headers:{Accept:"application/json","Content-type":"application/json"},method:"POST"})}catch{}if(e!==null&&e.status===403)throw new Error("Editor state validation failed! Server did not accept changes.")}async function eG(n){const t=new URL(window.location.toString());t.hash=await _Y(n);const e=t.toString();window.history.replaceState({},"",e),await window.navigator.clipboard.writeText(e)}function tG({isRichText:n,shouldPreserveNewLinesInMarkdown:t}){const[e]=_e(),[r,s]=k.useState(()=>e.isEditable()),[i,o]=k.useState(!1),[l,a]=k.useState(!1),[u,d]=k.useState(!0),[f,g]=_p(),p=EY(),m=!1;k.useEffect(()=>{zE.isCollab||NY(window.location.hash).then(b=>{b&&b.source==="Playground"&&(e.setEditorState(c2(e,b)),e.dispatchCommand(Jb,void 0))})},[e]),k.useEffect(()=>Xe(e.registerEditableListener(b=>{s(b)}),e.registerCommand(MI,b=>(a(b),!1),Fe)),[e]),k.useEffect(()=>e.registerUpdateListener(({dirtyElements:b,prevEditorState:x,tags:C})=>{!r&&b.size>0&&!C.has(Nl)&&!C.has(dd)&&$Y(e),e.getEditorState().read(()=>{const E=xe().getChildren();if(E.length>1)d(!1);else if(un(E[0])){const N=E[0].getChildren();d(N.length===0)}else d(!1)})}),[e,r]);const y=k.useCallback(()=>{e.update(()=>{const b=xe(),x=b.getFirstChild();if(qn(x)&&x.getLanguage()==="markdown")v2(x.getTextContent(),od,void 0,t);else{const C=S2(od,void 0,t),v=es("markdown");v.append($e(C)),b.clear().append(v),C.length===0&&v.select()}})},[e,t]);return A.jsxs("div",{className:"actions",children:[XY&&A.jsx("button",{onClick:()=>{e.dispatchCommand(QY,!i),o(!i)},className:"action-button action-button-mic "+(i?"active":""),title:"Speech To Text","aria-label":`${i?"Enable":"Disable"} speech to text`,children:A.jsx(co,{icon:LH,size:16})}),A.jsx("button",{className:"action-button import",onClick:()=>zH(e),title:"Import","aria-label":"Import editor state from JSON",children:A.jsx(co,{icon:MH,size:16})}),A.jsx("button",{className:"action-button export",onClick:()=>UH(e,{fileName:`Playground ${new Date().toISOString()}`,source:"Playground"}),title:"Export","aria-label":"Export editor state to JSON",children:A.jsx(co,{icon:DH,size:16})}),A.jsx("button",{className:"action-button share",disabled:zE.isCollab,onClick:()=>eG(a2(e.getEditorState(),{source:"Playground"})).then(()=>p("URL copied to clipboard"),()=>p("URL could not be copied to clipboard")),title:"Share","aria-label":"Share Playground link to current editor state",children:A.jsx(co,{icon:BH,size:16})}),A.jsx("button",{className:"action-button clear",disabled:u,onClick:()=>{g("Clear editor",b=>A.jsx(nG,{editor:e,onClose:b}))},title:"Clear","aria-label":"Clear editor contents",children:A.jsx(co,{icon:jH,size:16})}),A.jsx("button",{className:`action-button ${r?"lock":"unlock"}`,onClick:()=>{r&&qY(e),e.setEditable(!e.isEditable())},title:"Read-Only Mode","aria-label":`${r?"Lock":"Unlock"} read-only mode`,children:A.jsx(co,{icon:r?OH:RH,size:16})}),A.jsx("button",{className:"action-button",onClick:y,title:"Convert From Markdown","aria-label":"Convert from markdown",children:A.jsx(co,{icon:PH,size:16})}),m,f]})}function nG({editor:n,onClose:t}){return A.jsxs(A.Fragment,{children:["Are you sure you want to clear the editor?",A.jsxs("div",{className:"Modal__content",children:[A.jsx(pb,{onClick:()=>{n.dispatchCommand(Mg,void 0),n.focus(),t()},children:"Clear"})," ",A.jsx(pb,{onClick:()=>{n.focus(),t()},children:"Cancel"})]})]})}const rG=[".toolbar",'[role="menu"]',".floating-text-format-popup","[data-comment-submit-button]","[data-modal-content]"],sG=({onBlur:n})=>{const[t]=_e();return k.useEffect(()=>{const e=t.getRootElement();if(!e)return;const r=(i,o,l)=>i>=l.left&&i<=l.right&&o>=l.top&&o<=l.bottom,s=i=>{const o=e.getBoundingClientRect(),l=i.target,a=l instanceof Element&&rG.some(m=>l.closest(m)),{clientX:u,clientY:d}=i,f=r(u,d,o),g=document.activeElement;!e.contains(g)&&!f&&!a&&t.update(()=>{var m;Ge(null),t.dispatchCommand(Xr,void 0),(m=t._rootElement)==null||m.classList.remove("focused"),n&&(n==null||n(t.getEditorState(),t))})};return document.addEventListener("pointerdown",s,!0),()=>{document.removeEventListener("pointerdown",s,!0)}},[t,n]),null};let Zw=function(n,t){if(!n.parentElement)return null;if(n.parentElement.classList.contains("ContentEditable__root")){let e=[];if(!CSS.supports("selector(:has(*))"))e=n.querySelectorAll("li:has(+ .dsd__theme__nestedListItem)");else{const r=n.querySelectorAll("li");e=Array.from(r).filter(s=>{const i=s.nextElementSibling;return i&&i.classList.contains("dsd__theme__nestedListItem")})}return setTimeout(()=>{for(let r=0;r<e.length;r++){const s=e[r],i=s.nextElementSibling;if(!i)return;let o=!1,l=!0;Array.from(i.querySelectorAll("li:not(.dsd__theme__nestedListItem):not(:has(+ .dsd__theme__nestedListItem))")).forEach(u=>{const d=u.getAttribute("aria-checked");(d===null||d==="false")&&(l=!1),d==="true"&&(o=!0)}),t.update(()=>{if(!l&&o){const u=Oe(s);u instanceof En&&(u.setChecked(!1),u.setIndeterminate(!0))}if(!o&&!l){const u=Oe(s);u instanceof En&&(u.setChecked(!1),u.setIndeterminate(!1))}if(l){const u=Oe(s);u instanceof En&&(u.setChecked(!0),u.setIndeterminate(!1))}}),o=!1,l=!0}},0),null}return Zw(n.parentElement,t)};const iG=()=>{const n=Wt();if(!n)return!1;try{const t=Ec(n);t instanceof En&&!t.__opened&&t.setOpened(!0)}catch{return!1}return!1},oG=ml.debounce((n,t)=>{const e=t.getElementByKey(n);Zw(e,t)},100);function lG(){const[n]=_e();return k.useEffect(()=>{const t=n.registerMutationListener(Br,e=>{for(const[r,s]of e)s==="updated"&&oG(r,n)},{skipInitialization:!0});return()=>{t()}},[n]),k.useEffect(()=>Xe(n.registerCommand(uw,()=>(Qy(n,"check"),!0),Te),n.registerRootListener((t,e)=>{t!==null&&(t.addEventListener("click",ik),t.addEventListener("pointerdown",ok)),e!==null&&(e.removeEventListener("click",ik),e.removeEventListener("pointerdown",ok))})),[n]),null}function D2(n,t,e=!1){const r=n.target;if(r===null||!Et(r))return;const s=r.firstChild;if(s!=null&&Et(s)&&(s.tagName==="UL"||s.tagName==="OL"))return;const i=r.parentNode,o=r.getBoundingClientRect(),l=n.pageX/c5(r);if(i&&l>o.right){if(e){t();return}if(n.target instanceof HTMLElement){const a=pd(i);a!=null&&a.isEditable()&&a.update(()=>{const u=Oe(i);dt(u)&&u.toggleOpen()})}}!i||i.__lexicalListType!=="check"||(r.dir==="rtl"?l<o.right&&l>o.right-20:l>o.left&&l<o.left+20)&&t()}function ik(n){D2(n,()=>{if(n.target instanceof HTMLElement){const t=n.target,e=pd(t);e!=null&&e.isEditable()&&(e.update(()=>{const r=Oe(t);if(dt(r)&&(r.selectEnd(),r.toggleChecked()),t.getAttribute("data-list")&&t.getAttribute("aria-checked")==="false"&&t.nextElementSibling){Array.from(t.nextElementSibling.querySelectorAll("[aria-checked]")).forEach(s=>{const i=Oe(s);i instanceof En&&i.setChecked(!0)});return}if(t.getAttribute("data-list")&&t.getAttribute("aria-checked")==="true"&&t.nextElementSibling){Array.from(t.nextElementSibling.querySelectorAll("[aria-checked]")).forEach(s=>{const i=Oe(s);i instanceof En&&i.setChecked(!1)});return}}),Zw(t,e))}})}function ok(n){D2(n,()=>{n.preventDefault()},!0)}const O2=be("INSERT_CHILD_DOCUMENTS_COMMAND");function aG(){const[n]=_e();return k.useEffect(()=>{if(!n.hasNodes([uc]))throw new Error("ChildDocsPlugin: ChildDocsNode not registered on editor");return n.registerCommand(O2,t=>{const e=PL(),r=Wt();return r==null||r.replace(e),!0},Fe)},[n]),null}function cG(){const[n]=_e();return k.useEffect(()=>vK(n),[n]),null}const Np=(n,t,e)=>{var s,i,o,l,a;const r=G();if(H(r)&&r.isCollapsed()){const u=r.anchor.getNode(),d=u.getKey(),f=u.getParent()===e,g=e instanceof gt&&(e.__type==="layout-item"?(i=(s=e.getLastChild())==null?void 0:s.getPreviousSibling())==null?void 0:i.getKey():(o=e.getLastChild())==null?void 0:o.getKey())===d,p=e instanceof gt&&((l=e.getFirstChild())==null?void 0:l.getKey())===d;if(e&&u instanceof Gi&&!u.getTextContent()&&f&&!((a=u.getPreviousSibling())!=null&&a.getTextContent())&&g&&!p){const y=n.registerCommand(Pi,()=>(y(),!0),ks);return n.update(()=>{var x;if(e){let C=e.getChildren();const v=e.getLastChild();P7(v)&&(C=C.slice(0,-1)),C.length===2?C.slice(-1).forEach(E=>E.remove()):C.slice(-2).forEach(E=>E.remove())}const b=t==null?void 0:t.getNextSibling();if(un(b)&&b.getTextContent()==="")(x=t==null?void 0:t.getNextSibling())==null||x.selectEnd();else{const C=t==null?void 0:t.insertAfter(we());C==null||C.selectStart()}}),!0}}return!1},uG=4,dG=2,fG="draggable-block-menu",hG=16,lk="application/x-lexical-drag-block",Ip=n=>n?n.match(/(\d*\.?\d+)%/g):[],Ab=n=>n<0?0:n>100?100:n,R2=(n,t,e)=>{let r=0,s=[];n.update(()=>{if(n&&t){const a=n.getElementByKey(t.getKey());if(a){const u=a.style;s=Ip(u.getPropertyValue("grid-template-columns")).map(d=>d.slice(0,-1)),r=s?s.length:0}}const i=100/(r+1),o=[...s];o.splice(e,0,`${i}%`);let l=i/r;for(let a=0;a<o.length;a++)if(e!==a){const u=Number(o[a])-l;o[a]=`minmax(100px,${Ab(u)}%)`}else o[a]=`minmax(100px,${o[a]})`;t.setTemplateColumns(o.join(" "))})},yb=(n,t,e,r)=>{n.update(()=>{const s=n.getElementByKey(t.getKey());if(!s)return;let i=r;e<r&&(i=r-1);const l=s.style.getPropertyValue("grid-template-columns").match(/minmax\([^)]*\)|\S+/g)||[],a=l.splice(e,1)[0];l.splice(i,0,a),t.setTemplateColumns(l.join(" "))})},ld=(n,t)=>(n!=null&&n.children?Array.from(n.children):[]).indexOf(t);function gG(n,t,e,r){var a;let s=n.getAttribute("data-direction")==="left",i=n.getAttribute("data-direction")==="right",o=n.getAttribute("data-index"),l=n.getAttribute("data-index-start");if(s||i||o){let u=(a=e.getParent())==null?void 0:a.getParent();if(e instanceof is&&(u=e),e instanceof _s||e instanceof is){const d=u==null?void 0:u.getChildren();let f=r instanceof _s;if((d==null?void 0:d.length)>=4&&!f)return!0;t.update(()=>{var m;let g=0;s?g=0:i?g=((m=u==null?void 0:u.getChildren())==null?void 0:m.length)-1:g=Number(o),f?yb(t,u,Number(l),g):R2(t,u,g);let p=null;g!==void 0&&t.update(()=>{if(p=u.getChildren()[g],f)e instanceof is?p.insertAfter(r.getParent()):p.insertBefore(r.getParent());else if(i)p.insertAfter(js().append(r).append(ms()));else{const y=r.getParent(),b=y==null?void 0:y.getParent();Hs(y)&&(y==null?void 0:y.getChildrenSize())===2&&Hs(y)&&fg(b)&&gc(t,y,b),p.insertBefore(js().append(r).append(ms()))}})})}else t.update(()=>{const d=vp(Sw);let f;if(Ki(e)||Dr(e)){const g=r.getParent(),p=g==null?void 0:g.getParent();if(Hs(g)&&(g==null?void 0:g.getChildrenSize())===2&&fg(p)){const y=p.getParent(),b=y==null?void 0:y.getParent(),x=p.getChildren(),v=x.findIndex(N=>N===g)===0?1:0,E=x[v];if(Hs(E)){const N=E.getChildren()[0];Ki(b)&&(b.append(N),p.remove(),f=Iu(b))}}else f=Iu(e,r)}else f=Iu(e);f&&(s?(d.append(js().append(r).append(ms())),d.append(js().append(f).append(ms()))):(d.append(js().append(f).append(ms())),d.append(js().append(r).append(ms()))),e.insertAfter(d),e.remove(),f.selectStart())});return!0}return!1}function pG(n,t,e="right",r=!1){n.update(()=>{const s=Oe(t),i=s==null?void 0:s.getParent();if(i){if(Ip(i.__templateColumns).length===4)return;let l=ld(t.parentElement,t);e==="right"&&(l=l+1),R2(n,i,l)}const o=js().append(we()).append(ms());s&&(e==="right"?r?(s.insertBefore(Iu(s)),s.selectStart()):(s.insertAfter(o),o==null||o.selectStart()):(s.insertBefore(o),o.selectStart()))})}const P2=(n,t)=>{const e=t==null?void 0:t.getParent();let r=Ip(e==null?void 0:e.getTemplateColumns());const s=e==null?void 0:e.getChildren();let i=0;if(s&&t){for(let d=0;d<s.length;d++)if(s[d].__key===t.__key){i=d;break}}r.splice(i,1);const o=r.map(d=>parseFloat(d)),l=o.reduce((d,f)=>d+f,0),u=o.map(d=>d/l*100).map(d=>`minmax(50px,${d.toFixed(2)}%)`);e==null||e.setTemplateColumns(u.join(" "))},mG=n=>n.className.includes("editor-image")||n.className.includes("video-container")?n:n.className.includes("editor-excalidraw")?n.firstChild:null,B2=(n,t)=>t!=null&&t.__key&&n!==t.__key?B2(n,t==null?void 0:t.getParent()):n===(t==null?void 0:t.__key),ak=(n,t,e)=>{n.update(()=>{var o,l,a;const r=(o=t==null?void 0:t.getParent())==null?void 0:o.getParent(),s=t==null?void 0:t.getParent(),i=e==="right"?(l=t==null?void 0:t.getParent())==null?void 0:l.getNextSibling():(a=t==null?void 0:t.getParent())==null?void 0:a.getPreviousSibling();if(s&&i&&r instanceof is){const u=n.getElementByKey(s.getKey()),d=n.getElementByKey(r.getKey()),f=ld(d,u);s&&r&&i&&(e==="right"&&(yb(n,r,f+1,f),i.insertAfter(s)),e==="left"&&(yb(n,r,f,f+1),i.insertBefore(s)))}})};function AG(n){n&&(n.style.display="none")}function ck({blockElement:n,editor:t,isTop:e,isClickedBlockRef:r,setDraggableBlockElem:s}){n&&(r.current=!0,t.update(()=>{const i=Oe(n);if(i){const o=we();e?(i.insertBefore(o),setTimeout(()=>{s(t.getElementByKey(o.__key)),t.update(()=>{o.selectStart()})})):(i.insertAfter(o),setTimeout(()=>{s(t.getElementByKey(o.__key)),t.update(()=>{o.selectEnd()})}))}}))}function yG(n){const t=(a,u)=>a?parseFloat(window.getComputedStyle(a)[u]):0,{marginTop:e,marginBottom:r}=window.getComputedStyle(n),s=t(n.previousElementSibling,"marginBottom"),i=t(n.nextElementSibling,"marginTop"),o=Math.max(parseFloat(e),s);return{marginBottom:Math.max(parseFloat(r),i),marginTop:o}}function bG(n){return!!n.closest(`.${fG}`)}function uk(n,t,e,r){if(!n){t.style.opacity="0";return}t.style.display="block";let s=null;const i=mG(n);i&&i.style.justifyContent!=="left"&&i.firstChild instanceof HTMLElement?s=i.firstChild.getBoundingClientRect():s=n.getBoundingClientRect();let o=null,l=0,a=!0,u=0;if(s){let x=n.firstChild instanceof HTMLElement&&(n.firstChild.hasAttribute("data-lexical-text")||n.firstChild.tagName==="LI"||n.firstChild.tagName==="A")?n.firstChild:null;if(x&&!x.className.includes("editor-image")&&n.tagName!=="CODE"){const C=window.getComputedStyle(x),v=parseFloat(C.lineHeight),E=parseFloat(C.fontSize);u=Math.ceil(E+(v-E)/2),o=x.getBoundingClientRect()}else if(n.firstChild instanceof HTMLElement&&n.firstChild.tagName==="BR"&&n.tagName!=="CODE"){const C=window.getComputedStyle(n,"::before");u=parseFloat(C.height)||30}else n&&(n.tagName==="HR"||n.matches(":has(audio)")||n.classList.contains("file-container"))?u=n.clientHeight:n.firstChild instanceof HTMLElement&&n.firstChild.tagName==="SUMMARY"?u=n.firstChild.clientHeight:(o=s,a=!1)}const d=e.getBoundingClientRect(),f=(o==null?void 0:o.top)||s.top,g=u||l,p=t.clientHeight,m=g-p;let y=!a||!g?s.top+7-d.top:f+m/2-d.top,b=s.left-d.left-p*2-3;n.tagName==="LI"&&n.getAttribute("role")!=="checkbox"&&(b=b-26,y=y-1),i&&(y=f-d.top+7,(i.style.justifyContent==="center"||i.style.justifyContent==="right")&&(b=b+10)),n.matches(":has(.resizable-container__handle)")&&!n.matches(":has(.hide-padding)")&&n.tagName!=="DETAILS"&&(y=f-d.top+27),s.top<0&&(y=y+-s.top),n.className==="dsd__theme__layoutDivider"&&(t.style.display="none",s.top-t.clientHeight<0?n.style.setProperty("--height-column",`${n.clientHeight+s.top-t.clientHeight-7}px`):n.style.setProperty("--height-column",`${n.clientHeight}px`)),t.style.opacity="1",!r&&b>-40&&(t.style.transform=`translate(${b}px, ${y}px)`)}function dk(n,t){const{transform:e}=t.style;t.style.transform="translateZ(0)",n.setDragImage(t,0,0),setTimeout(()=>{t.style.transform=e})}function wG(n,t){const e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",t.forEach(r=>{const s=r.cloneNode(!0);s.style.position="relative",e.appendChild(s)}),document.body.appendChild(e),n.setDragImage(e,0,0),setTimeout(()=>document.body.removeChild(e),0)}function CG(n,t,e,r,s,i,o){var S;const{top:l,height:a,width:u,left:d}=t.getBoundingClientRect(),{top:f,left:g,width:p}=s==null?void 0:s.getBoundingClientRect(),{marginTop:m,marginBottom:y}=yG(t);let b=l;e>=l?(o.current.isBottom=!0,b+=a+y/2):(o.current.isBottom=!1,b-=m/2);const x=b-f-dG,C=hG-uG,E=i.target.closest(".dsd__theme__layoutDivider");n.setAttribute("data-index",""),n.style.background="deepskyblue";const N=d-g-C;if(r<=d&&!E){if(t.closest(".dsd__theme__layoutItem"))return;n.style.transform=`translate(${N}px, ${l-f}px)`,n.style.width="4px",n.style.height=`${a}px`,n.style.opacity=".4",n.setAttribute("data-direction","left")}else if(r>=p-N&&!E&&!t.closest(".dsd__theme__layoutItem"))t.classList.contains("dsd__theme__layoutContainer")&&!n.getAttribute("data-index-start")&&t&&t.children.length>=4&&(n.style.background="red"),n.style.transform=`translate(${p-N}px, ${l-f}px)`,n.style.width="4px",n.style.height=`${a}px`,n.style.opacity=".4",n.setAttribute("data-direction","right");else if(E){i.preventDefault();const _=(S=E.parentNode)==null?void 0:S.parentNode;(_==null?void 0:_.children.length)===4&&(n.style.background="red");const I=E.parentNode,L=ld(_,I),M=L?E.getBoundingClientRect().left-g:N+30;n.style.transform=`translate(${M}px, ${l-f}px)`,n.style.width="4px",n.style.height=`${a}px`,n.style.opacity=".4",n.setAttribute("data-index",`${L}`)}else n.style.transform=`translate(${N}px, ${x}px)`,n.style.width=`${u+C}px`,n.style.opacity=".4",n.style.height="4px",n.setAttribute("data-direction","")}function fk(n){n&&(n.style.opacity="0",n.style.transform="translate(-10000px, -10000px)")}const gc=(n,t,e)=>{var i,o,l;const r=(e==null?void 0:e.getChildren())||[];if((r==null?void 0:r.length)===2){for(const a of r)a.__key!==(t==null?void 0:t.__key)&&(e==null||e.insertBefore(a),(i=a.getFirstChild())==null||i.selectEnd());e.remove()}else for(const a of r)if(a.__key===(t==null?void 0:t.__key)){P2(n,a),Ew(n,a);const u=a.getPreviousSibling()??a.getNextSibling();(l=(o=u==null?void 0:u.getFirstChild)==null?void 0:o.call(u))==null||l.selectEnd()}const s=n.registerCommand(Ys,()=>(s(),!0),ks);return!0},j2=be(),xG=n=>{const t=G();if(H(t)&&t.isCollapsed()){const e=t.anchor.getNode(),r=Se(e,rd),s=Se(e,Dr);return Np(n,s,r)&&rd(r)}return!0},vG=()=>{const n=G();if(!H(n)||!n.isCollapsed()||n.anchor.offset!==0)return!1;const e=n.anchor.getNode().getTopLevelElement();if(e===null)return!1;const r=e.getPreviousSibling();return!Dr(r)||r.getOpen()?!1:(r.setOpen(!0),!0)},SG=()=>{var t;const n=G();if(H(n)&&n.isCollapsed()&&n.anchor.offset===0){const e=Se(n.anchor.getNode(),Dr);if(Dr(e)){const r=e.getParent();r!==null&&r.getFirstChild()===e&&n.anchor.key===((t=e.getFirstDescendant())==null?void 0:t.getKey())&&e.insertBefore(we())}}return!1},EG=()=>{const n=G();if(H(n)&&n.isCollapsed()){const t=Se(n.anchor.getNode(),Dr);if(Dr(t)){const e=t.getParent();if(e!==null&&e.getLastChild()===t){const r=t.getFirstDescendant(),s=t.getLastDescendant();(s!==null&&n.anchor.key===s.getKey()&&n.anchor.offset===s.getTextContentSize()||r!==null&&n.anchor.key===r.getKey()&&n.anchor.offset===r.getTextContentSize())&&t.insertAfter(we())}}}return!1},kG=n=>{const t=G();if(H(t)&&t.isCollapsed()){const e=t.focus.getNode().getParent(),r=e==null?void 0:e.getParent();return gc(n,e,r)}return!1};function TG(){const[n]=_e();return k.useEffect(()=>{if(!n.hasNodes([Kl,Ro,Ui]))throw new Error("CollapsiblePlugin: CollapsibleContainerNode, CollapsibleTitleNode, or CollapsibleContentNode not registered on editor");return Xe(n.registerNodeTransform(Ui,t=>{const e=t.getParent();if(!Dr(e)){const r=t.getChildren();for(const s of r)t.insertBefore(s);t.remove()}}),n.registerNodeTransform(Ro,t=>{const e=t.getParent();if(!Dr(e)){t.replace(we().append(...t.getChildren()));return}}),n.registerNodeTransform(Kl,t=>{const e=t.getChildren();if(e.length!==2||!xl(e[0])||!rd(e[1])){for(const r of e)t.insertBefore(r);t.remove()}}),n.registerCommand(Pi,()=>{var e;const t=G();if(H(t)){const r=Se(t.anchor.getNode(),s=>xl(s));if(xl(r)){const s=r.getParent();if(s&&Dr(s))return s.getOpen()||s.toggleOpen(),(e=r.getNextSibling())==null||e.selectEnd(),!0}}return!1},Te),n.registerCommand(j2,()=>(n.update(()=>{const t=bw(),e=we(),r=Wt(),s=Aw(!1).append(t.append(e),yw().append(we()));r==null||r.replace(s),e.select()}),!0),Te))},[n]),null}class Es extends Td{constructor(e,r=null,s){super(e,s);z(this,"__extendIds");z(this,"__resolve");this.__extendIds=e||[],this.__resolve=r}static getType(){return"extend-mark"}static clone(e){return new Es(e.__extendIds,e.__resolve,e.__key)}static importJSON(e){return new Es(e.ids)}static importDOM(){return{mark:r=>({conversion:()=>{const s=r.getAttribute("data-key"),i=s?s.split(" "):[],o=r.getAttribute("resolve"),l=document.createDocumentFragment();return Array.from(r.childNodes).forEach(a=>l.appendChild(a.cloneNode(!0))),{node:F2(i,o)}},priority:1})}}resolveThreat(e){const r=this.getWritable();return r.__resolve=e}createDOM(e){const r=document.createElement("mark");if(st(r,e.theme.mark),st(r,e.theme.markOverlap),r.style.background="transparent",r.style.border="none",this.__extendIds.length>0){const s=this.__extendIds.join(" ");r.setAttribute("data-key",s)}return this.__resolve&&r.setAttribute("resolve",this.__resolve),r}exportDOM(e){let{element:r}=super.exportDOM(e);return this.__resolve&&r.setAttribute("resolve",this.__resolve),{element:r}}updateDOM(e,r,s){return this.__resolve&&r.setAttribute("resolve",this.__resolve),super.updateDOM(e,r,s)}exportJSON(){return{...super.exportJSON(),type:"extend-mark",ids:this.__extendIds}}excludeFromCopy(e){return!1}updateExtendId(e,r){const s=this.getWritable(),i=s.__extendIds.indexOf(e);i!==-1&&(s.__extendIds[i]=r)}}function F2(n,t=null){return Mt(new Es(n,t))}function gs(n){return n instanceof Es}function _G(n,t){if(n=n.trim(),n.startsWith("rgb"))return n.replace("rgb","rgba").replace(")",`, ${t})`);const e=n.replace("#",""),r=parseInt(e,16),s=r>>16&255,i=r>>8&255,o=r&255;return`rgba(${s}, ${i}, ${o}, ${t})`}const Jw=be("INSERT_INLINE_COMMAND");function NG(){var N;const[n]=_e(),[t,e]=k.useState([]),[r,s]=k.useState(!1),i=k.useRef(new Map),{t:o}=it.useTranslation(),l=(N=k.useContext(kt))==null?void 0:N.commentController,{onHighlight:a,activeCommentId:u,actions:d,editorComments:f}=l??{onHighlight:void 0,activeCommentId:{id:"",source:""},actions:{add:async()=>{},delete:()=>{},restore:()=>{}},editorComments:new Map};k.useEffect(()=>{const S=document.documentElement,_=getComputedStyle(S).getPropertyValue("--mantine-primary-color-filled").trim()||"#4c6ef5",I=_G(_,.35);S.style.setProperty("--comment-selection-color",I)},[]),k.useEffect(()=>{const S=u==null?void 0:u.id;!S||u.source==="editor"||n.update(()=>{const _=g.get(S);if(!_)return;const I=Array.from(_).filter(M=>!!me(M)),L=me(I[0]);L&&gs(L)&&L.selectStart()})},[u==null?void 0:u.id,u==null?void 0:u.source]);const g=k.useMemo(()=>new Map,[]),p=k.useRef(f);k.useEffect(()=>{p.current=f},[f]);function m(S,_){n.update(()=>{const I=g.get(S);if(I)for(const L of I){const M=me(L);gs(M)&&M.resolveThreat(_)}})}function y(S){const _=g.get(S);!_||_.size===0||(n.update(()=>{for(const I of _){const L=me(I);gs(L)&&(L.deleteID(S),L.getIDs().length===0&&rE(L))}}),g.delete(S))}function b(S,_){_&&y(S)}k.useEffect(()=>{if(f){for(const[S,_]of f.entries()){const I=i.current.get(S);I&&(I.resolution!==_.resolution&&m(S,_.resolution),I.deleted!==_.deleted&&b(S,_.deleted))}i.current=new Map(f)}},[f]),k.useEffect(()=>{const S=[];if(t.length!==0){for(let _=0;_<t.length;_++){const I=t[0],L=g.get(I);if(L!==void 0)for(const M of L){const R=n.getElementByKey(M);R!==null&&(R.classList.add("selected"),S.push(R))}}return()=>{for(let _=0;_<S.length;_++)S[_].classList.remove("selected")}}},[t,n,g]),k.useEffect(()=>{const S=new Map;return Xe(i5(n,Es,_=>F2(_.getIDs()),(_,I)=>{_.getIDs().forEach(M=>{I.addID(M)})}),n.registerMutationListener(Es,_=>{n.getEditorState().read(()=>{for(const[I,L]of _){const M=me(I);let R=[];if(L==="created"&&gs(M)&&M.getIDs().forEach(j=>{var V;const U=(V=p.current)==null?void 0:V.get(j);U!=null&&U.deleted&&(d==null||d.restore(j))}),L==="destroyed"){const F=S.get(I)||[];for(const j of F)d==null||d.delete(j)}L==="destroyed"?R=S.get(I)||[]:gs(M)&&(R=M.getIDs());for(let F=0;F<R.length;F++){const j=R[F];let U=g.get(j);if(S.set(I,R),L==="destroyed"){let V=!1;for(const[ne,ae]of _)if(ae==="created"){const re=me(ne);gs(re)&&re.getIDs().some(ee=>R.includes(ee))&&(V=!0)}V||U!==void 0&&(U.delete(I),U.size===0&&g.delete(j))}else U===void 0&&(U=new Set,g.set(j,U)),U.has(I)||U.add(I)}}})},{skipInitialization:!1}),n.registerUpdateListener(({editorState:_})=>{_.read(()=>{const I=G();let L=!1;if(H(I)){const M=I.anchor.getNode();if(Hn(M)){const R=jK(M,I.anchor.offset);R!==null&&(a==null||a(R[0],"editor"),e(F=>F[0]===R[0]?F:R),L=!0)}}L||(a==null||a(null,"editor"),e(M=>M.length===0?M:[]))})}),n.registerCommand(Jw,()=>{const _=window.getSelection();return _!==null&&_.removeAllRanges(),s(!0),!0},Fe),n.registerCommand(Gl,_=>{if(!(_!=null&&_.clipboardData))return!1;_.preventDefault();const I=G();if(!I||!I.getNodes().some(F=>gs(F)||gs(F.getParent())))return!1;const R=I.getTextContent();return _.clipboardData.setData("text/plain",R),!0},Te))},[n,g]);const x=k.useCallback((S,_,I)=>{n.getEditorState().read(()=>{const L=G();if(H(L)){_.current=L.clone();const M=L.anchor,R=L.focus,F=j_(n,M.getNode(),M.offset,R.getNode(),R.offset);if(F!==null&&S!==null){const{left:j,bottom:U,top:V,width:ne}=F.getBoundingClientRect(),ae=F_(n,F),re=S.offsetHeight||200,ee=window.pageYOffset||document.documentElement.scrollTop,se=window.innerHeight-U>re+20;let q=ae.length===1?j+ne/2-125:j-125;q<10&&(q=10),S.style.left=`${q}px`,S.style.top=se?`${U+10+ee}px`:`${V-re-55+ee}px`;const W=ae.length,{container:J,elements:te}=I,le=te.length;for(let ce=0;ce<W;ce++){const de=ae[ce];let Ae=te[ce];Ae===void 0&&(Ae=document.createElement("span"),te[ce]=Ae,J.appendChild(Ae));const ye=document.body.scrollHeight>window.innerHeight?0:8;Ae.style.cssText=`
61
+ position:absolute;
62
+ top:${de.top+ee}px;
63
+ left:${de.left+ye}px;
64
+ height:${de.height}px;
65
+ width:${de.width}px;
66
+ background-color: var(--comment-selection-color, rgba(76, 110, 245, 0.35));
67
+ pointer-events:none;
68
+ z-index:5;
69
+ `}for(let ce=le-1;ce>=W;ce--){const de=te[ce];J.removeChild(de),te.pop()}}}})},[n]);function C(S){n.update(()=>{const _=G();if(!H(_))return;const I=_.isBackward(),L=_.getNodes(),M=new Set;for(const R of L){const F=R.getParent();if(gs(F)){if(M.has(F.getKey()))continue;M.add(F.getKey()),gs(F)&&F.getIDs().length>0&&rE(F)}}BK(_,I,S,R=>new Es(R,null))})}function v(){let S=!1;return n.getEditorState().read(()=>{const _=G();if(!H(_))return;const I=_.getNodes();for(const L of I){const M=L.getParent();if(gs(M)&&M.getIDs().length>0){S=!0;break}}}),S}function E(S){return async _=>{if(_.mode!=="create")return;const I=v();let L="";n.getEditorState().read(()=>{const R=G();H(R)&&(L=R.getTextContent())});const M=async()=>{const R=await(d==null?void 0:d.add({text:_.data.text,files:_.data.files},L));R&&(S(R),s(!1))};if(I){await new Promise((R,F)=>{Ct.openRemoveConfirmModal({title:o("editor.composer.replaceComment.title"),children:o("editor.composer.replaceComment.description"),labels:{cancel:o("editor.composer.replaceComment.cancel"),confirm:o("editor.composer.replaceComment.confirm")},icon:null,onConfirm:async()=>{await M(),R()},onCancel:()=>{s(!1),F()}})});return}await M()}}return A.jsx(A.Fragment,{children:r&&Or.createPortal(A.jsx(Ct.CommentComposer,{updateLocation:x,onSubmit:E(C),onBlur:()=>s(!1),ns:"",children:S=>{const{handleBlur:_,setCommentDraft:I,editorRef:L}=S;return A.jsx(UM,{initialContent:"",outputFormat:"html",debounce:1,editorRef:L,mode:"comment",placeholder:" ",shiftEnterInsertNewLine:!0,onBlur:_,onChange:M=>I(R=>({...R,text:M}))})}}),document.body)})}const hk="startTransition",bb=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,IG=bb?k.useLayoutEffect:k.useEffect;class LG{constructor(t){z(this,"key");z(this,"ref");this.key=t,this.ref={current:null},this.setRefElement=this.setRefElement.bind(this)}setRefElement(t){this.ref={current:t}}}const gk=n=>{const t=document.getElementById("typeahead-menu");if(!t)return;const e=t.getBoundingClientRect();e.top+e.height>window.innerHeight&&t.scrollIntoView({block:"center"}),e.top<0&&t.scrollIntoView({block:"center"}),n.scrollIntoView({block:"nearest"})};function pk(n,t){const e=n.getBoundingClientRect(),r=t.getBoundingClientRect();return e.top>=r.top-6&&e.top<=r.bottom+6}function MG(n,t,e,r){const[s]=_e();k.useEffect(()=>{if(t!=null&&n!=null){const i=s.getRootElement(),o=i!=null?(function(f){let g=getComputedStyle(f);const p=g.position==="absolute",m=/(auto|scroll)/;if(g.position==="fixed")return document.body;for(let y=f;y=y.parentElement;)if(g=getComputedStyle(y),(!p||g.position!=="static")&&m.test(g.overflow+g.overflowY+g.overflowX))return y;return document.body})(i):document.body;let l=!1,a=pk(t,o);const u=function(){l||(window.requestAnimationFrame(function(){e(),l=!1}),l=!0);const f=pk(t,o);f!==a&&(a=f,r!=null&&r(f))},d=new ResizeObserver(e);return window.addEventListener("resize",e),document.addEventListener("scroll",u,{capture:!0,passive:!0}),d.observe(t),()=>{d.unobserve(t),window.removeEventListener("resize",e),document.removeEventListener("scroll",u,!0)}}},[t,s,r,e,n])}const mk=be("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");function DG({close:n,editor:t,anchorElementRef:e,resolution:r,options:s,menuRenderFn:i,onSelectOption:o,shouldSplitNodeWithQuery:l=!1,commandPriority:a=Te,preselectFirstItem:u=!0}){const[d,f]=k.useState(null),g=d!==null?Math.min(s.length-1,d):null,p=r.match&&r.match.matchingString;k.useEffect(()=>{u&&f(0)},[p,u]);const m=k.useCallback(b=>{t.update(()=>{const x=r.match!=null&&l?(function(C){const v=G();if(!H(v)||!v.isCollapsed())return null;const E=v.anchor;if(E.type!=="text")return null;const N=E.getNode();if(!N.isSimpleText())return null;const S=E.offset,_=N.getTextContent().slice(0,S),I=C.replaceableString.length,L=S-(function(R,F,j){let U=j;for(let V=U;V<=F.length;V++)R.slice(-V)===F.substring(0,V)&&(U=V);return U})(_,C.matchingString,I);if(L<0)return null;let M;return L===0?[M]=N.splitText(S):[,M]=N.splitText(L,S),M})(r.match):null;o(b,x,n,r.match?r.match.matchingString:"")})},[t,l,r.match,o,n]),y=k.useCallback(b=>{const x=t.getRootElement();x!==null&&(x.setAttribute("aria-activedescendant","typeahead-item-"+b),f(b))},[t]);return k.useEffect(()=>()=>{const b=t.getRootElement();b!==null&&b.removeAttribute("aria-activedescendant")},[t]),IG(()=>{s===null?f(null):g===null&&u&&y(0)},[s,g,y,u]),k.useEffect(()=>Xe(t.registerCommand(mk,({option:b})=>!(!b.ref||b.ref.current==null)&&(gk(b.ref.current),!0),a)),[t,y,a]),k.useEffect(()=>Xe(t.registerCommand(To,b=>{const x=b;if(s!==null&&s.length){const C=g===null?0:g!==s.length-1?g+1:0;y(C);const v=s[C];if(!v)return y(-1),x.preventDefault(),x.stopImmediatePropagation(),!0;v.ref&&v.ref.current&&t.dispatchCommand(mk,{index:C,option:v}),x.preventDefault(),x.stopImmediatePropagation()}return!0},a),t.registerCommand(qs,b=>{const x=b;if(s!==null&&s.length){const C=g===null?s.length-1:g!==0?g-1:s.length-1;y(C);const v=s[C];if(!v)return y(-1),x.preventDefault(),x.stopImmediatePropagation(),!0;v.ref&&v.ref.current&&gk(v.ref.current),x.preventDefault(),x.stopImmediatePropagation()}return!0},a),t.registerCommand(yc,b=>{const x=b;return x.preventDefault(),x.stopImmediatePropagation(),n(),!0},a),t.registerCommand(wc,b=>{const x=b;return s!==null&&g!==null&&s[g]!=null&&(x.preventDefault(),x.stopImmediatePropagation(),m(s[g]),!0)},a),t.registerCommand(_l,b=>s!==null&&g!==null&&s[g]!=null&&(b!==null&&(b.preventDefault(),b.stopImmediatePropagation()),m(s[g]),!0),a)),[m,n,t,s,g,y,a]),i(e,k.useMemo(()=>({options:s,selectOptionAndCleanUp:m,selectedIndex:g,setHighlightedIndex:f}),[m,g,s]),r.match?r.match.matchingString:"")}function Ak(n,t){t!=null&&(n.className=t),n.setAttribute("aria-label","Typeahead menu"),n.setAttribute("role","listbox"),n.style.display="block",n.style.position="absolute"}const OG=`\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`;function RG(n,{minLength:t=1,maxLength:e=75,punctuation:r=OG,allowWhitespace:s=!1}){return k.useCallback(i=>{const o=new RegExp("(^|\\s|\\()(["+n+"]((?:"+("[^"+n+r+(s?"":"\\s")+"]")+"){0,"+e+"}))$").exec(i);if(o!==null){const l=o[1],a=o[3];if(a.length>=t)return{leadOffset:o.index+l.length,matchingString:a,replaceableString:o[2]}}return null},[s,n,r,e,t])}function z2({options:n,onQueryChange:t,onSelectOption:e,onOpen:r,onClose:s,menuRenderFn:i,triggerFn:o,anchorClassName:l,commandPriority:a=Te,parent:u,preselectFirstItem:d=!0,ignoreEntityBoundary:f=!1}){const[g]=_e(),[p,m]=k.useState(null),y=(function(C,v,E,N=bb?document.body:void 0,S=!0){const[_]=_e(),I=bb?document.createElement("div"):null,L=k.useRef(I),M=k.useCallback(()=>{if(L.current===null||N===void 0)return;L.current.style.top=L.current.style.bottom;const F=_.getRootElement(),j=L.current,U=j.firstChild;if(F!==null&&C!==null){const{left:V,top:ne,width:ae,height:re}=C.getRect(),ee=L.current.offsetHeight;if(j.style.top=`${ne+ee+3+(S?window.pageYOffset:0)}px`,j.style.left=`${V+window.pageXOffset}px`,j.style.height=`${re}px`,j.style.width=`${ae}px`,U!==null){U.style.top=`${ne}`;const se=U.getBoundingClientRect(),q=se.height,W=se.width,J=F.getBoundingClientRect();V+W>J.right&&(j.style.left=`${J.right-W+window.pageXOffset}px`),(ne+q>window.innerHeight||ne+q>J.bottom)&&ne-J.top>q+re&&(j.style.top=`${ne-q-re+(S?window.pageYOffset:0)}px`)}j.isConnected||(Ak(j,E),N.append(j)),j.setAttribute("id","typeahead-menu"),F.setAttribute("aria-controls","typeahead-menu")}},[_,C,S,E,N]);k.useEffect(()=>{const F=_.getRootElement();return C!==null&&M(),()=>{F!==null&&F.removeAttribute("aria-controls");const j=L.current;j!==null&&j.isConnected&&(j.remove(),j.removeAttribute("id"))}},[_,M,C]);const R=k.useCallback(F=>{C!==null&&(F||v(null))},[C,v]);return MG(C,L.current,M,R),I!=null&&I===L.current&&(Ak(I,E),N!=null&&N.append(I)),L})(p,m,l,u),b=k.useCallback(()=>{m(null),s!=null&&p!==null&&s()},[s,p]),x=k.useCallback(C=>{m(C),r!=null&&p===null&&r(C)},[r,p]);return k.useEffect(()=>{const C=g.registerUpdateListener(()=>{g.getEditorState().read(()=>{if(!g.isEditable())return void b();const v=g._window||window,E=v.document.createRange(),N=G(),S=(function(L){let M=null;return L.getEditorState().read(()=>{const R=G();H(R)&&(M=(function(F){const j=F.anchor;if(j.type!=="text")return null;const U=j.getNode();if(!U.isSimpleText())return null;const V=j.offset;return U.getTextContent().slice(0,V)})(R))}),M})(g);if(!H(N)||!N.isCollapsed()||S===null||E===null)return void b();const _=o(S,g);if(t(_?_.matchingString:null),_!==null&&(f||!(function(L,M){return M===0&&L.getEditorState().read(()=>{const R=G();if(H(R)){const F=R.anchor.getNode().getPreviousSibling();return ie(F)&&F.isTextEntity()}return!1})})(g,_.leadOffset))&&(function(M,R,F){const j=ls(F);if(j===null||!j.isCollapsed)return!1;const U=j.anchorNode,V=M,ne=j.anchorOffset;if(U==null||ne==null)return!1;try{R.setStart(U,V),R.setEnd(U,ne)}catch{return!1}return!0})(_.leadOffset,E,v)!==null)return I=()=>x({getRect:()=>E.getBoundingClientRect(),match:_}),void(hk in k?k[hk](I):I());var I;b()})});return()=>{C()}},[g,o,t,p,b,x,f]),k.useEffect(()=>g.registerEditableListener(C=>{C||b()}),[g,b]),p===null||g===null||y.current===null?null:A.jsx(DG,{close:b,resolution:p,editor:g,anchorElementRef:y,options:n,menuRenderFn:i,shouldSplitNodeWithQuery:!0,onSelectOption:e,commandPriority:a,preselectFirstItem:d})}const yk=(n,t,e)=>{if(!n)return null;let r=null;return e.read(()=>{const s=Oe(n);r=s&&A0(s,t)}),r},Vw=be("INSERT_EMBED_INTEGRATION_COMMAND ");function PG(){const[n]=_e();return k.useEffect(()=>{if(!n.hasNodes([Pc]))throw new Error("EmbedPlugin: EmbedNode not registered on editor");return n.registerCommand(Vw,t=>{const e=vw(t,"100%","100%","",!0,"unknown"),r=Wt();return r&&r.getParent()&&(r==null||r.replace(e)),!0},Fe)},[n]),null}const Qw=be(),BG=n=>{const t=G();if(H(t)&&t.isCollapsed()){const e=t.anchor.getNode(),r=Se(e,fg),s=Se(e,Hs),{lexicalNode:i}=dc(e,n,{"layout-item":!0});if(i&&!i.getTextContent()&&r)return Np(n,r,s)&&Hs(i)}return!0},jG=n=>{const t=G();if(H(t)&&t.isCollapsed()){const e=t.focus.getNode().getParent(),r=e==null?void 0:e.getParent();if((e==null?void 0:e.getTextContent())===`
70
+
71
+ `&&(un(e==null?void 0:e.getChildren()[0])||un(e==null?void 0:e.getChildren()[1])))return gc(n,e,r)}return!1};function FG(){const[n]=_e();return k.useEffect(()=>{if(!n.hasNodes([is,Pr,_s]))throw new Error("LayoutPlugin: LayoutContainerNode, or LayoutItemNode not registered on editor");return Xe(n.registerCommand(Qw,t=>(n.update(()=>{const e=vp(t),r=zG(t);for(let i=0;i<r;i++)e.append(js().append(we()).append(ms()));const s=Wt();s&&(s==null||s.replace(e),e.selectStart())}),!0),Fe),n.registerCommand(Yl,()=>{var i,o;const t=G();if(!H(t))return!1;const e=(i=t.focus)==null?void 0:i.getNode(),r=(o=Se(e,Hs))==null?void 0:o.getKey(),s=e==null?void 0:e.getPreviousSibling();return setTimeout(()=>{n.update(()=>{if(s instanceof is){const a=ms(),u=s.getLastChild();u==null||u.append(a)}const l=r?me(r):null;if(l!=null&&l.getChildren&&l.getChildren().length===1){const a=we();l.append(a),a.selectStart()}})},50),!1},xn),n.registerNodeTransform(Pr,t=>{const e=t.getParent();if(!fg(e)){const r=t.getChildren();for(const s of r)t.insertBefore(s);t.remove()}}),n.registerNodeTransform(is,t=>{const e=t.getChildren();if(!e.every(Hs)){for(const r of e)t.insertBefore(r);t.remove()}}))},[n]),k.useEffect(()=>{const t=a=>{const u=a.target.closest(".dsd__theme__layoutItem"),d=a.target.closest(".dsd__theme__layoutDivider");u&&d&&(a.preventDefault(),n.update(()=>{const f=Oe(u);f&&f.selectStart()}),o(u,a),d.classList.add("dragging"))};let e=!1,r=0,s=[],i;function o(a,u){e=!0;const d=document.querySelector("code");d&&(d.style.pointerEvents="none"),r=u.clientX,i=a.closest(".dsd__theme__layoutContainer");const f=i.querySelectorAll(".dsd__theme__layoutItem"),g=Array.from(f).indexOf(a),p=f[g-1];s[0]=p?p.getBoundingClientRect().width:0,s[1]=a.getBoundingClientRect().width;const m=b=>l(b,g,f),y=b=>{e=!1,n.dispatchCommand(rb,"up"),d&&d.style.pointerEvents==="none"&&(d.style.pointerEvents="auto");const x=b.target.closest(".dsd__theme__layoutContainer"),C=document.querySelector(".dsd__theme__layoutDivider.dragging");C&&C.classList.remove("dragging"),x&&n.update(()=>{Oe(x).setTemplateColumns(x.style.gridTemplateColumns)}),document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",m),document.addEventListener("mouseup",y)}function l(a,u,d){if(!e)return;n.dispatchCommand(rb,"move");const f=a.clientX-r;if(Math.abs(f)<4||!u)return;const p=s[0]+f,m=s[1]-f;let y=u;const{columnGap:b,gap:x}=getComputedStyle(i),C=parseFloat(b||x||"0")||0,v=i.clientWidth-C*Math.max(0,d.length-1),E=y===1?50:100,N=100,S=Math.max(E,p),_=Math.max(N,m),I=S/v*100,L=_/v*100,M=Array.from(d).map((F,j)=>{const U=j?100:50;if(j===y-1)return`minmax(${U}px,${Ab(I)}%)`;if(j===y)return`minmax(${U}px, ${Ab(L)}%)`;const V=Ip(i.style.gridTemplateColumns)[j];return`minmax(${U}px,${V})`}),R=document.querySelector(".dsd__theme__layoutDivider.dragging");if(R&&i){const F=i.clientHeight+"px";R.style.getPropertyValue("--height-column")!==F&&requestAnimationFrame(()=>{R.style.setProperty("--height-column",F)})}i.style.gridTemplateColumns=M.join(" ")}return document.body.addEventListener("mousedown",t),()=>{document.body.removeEventListener("mousedown",t)}},[n]),null}function zG(n){return n.replace(/\(([^)]+)\)/g,e=>e.replace(/\s+/g,"")).trim().split(/\s+/).length}const U2=be("INSERT_SWAGGER_COMMAND");function UG(){const[n]=_e();return k.useEffect(()=>{if(!n.hasNodes([Od]))throw new Error("SwaggerPlugin: SwaggerPlugin not registered on editor");return n.registerCommand(U2,t=>{const e=Wt();if(e&&e.getParent()){const r=_w(t,"",!0);e==null||e.replace(r)}return!0},Fe)},[n]),null}const KG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARQAAACWCAYAAAAff3ceAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAGPRSURBVHgB7b1LyG1RUucZcfJW01iZpkU1dKcPqBr4mlWrAxFUUFAHCgWCIx0UOHPiY644VFBHjhzUQB3bDQrqQMGJImIXCIIKnUX7yFFDolbVwPSLuufcHWv/4h+x9jlXHeaC7ztn770e8fxHrLXX3sftffnsZz/37+IT8Z/ff/0P7/++zL5Yvli+WL5YXixh9n/d/pX/2L//zGf+qx9g8v/8m09/6su+9FP/Om7uftYzn9sb69im3gt02LOxdvUC191eo9XsepyPLR8rB9bZ8bSTx6t0P6u3G8vsX04uH1tesYOP1ZvaiW+u24vned3sNVvd0WJPaJp0b/bPs+NnMn7FBse+3iLs7//+v/v///m//bz/K/8/b2+fiF/4t//m05/+si/9pN3crwjiJ79PzNvFuandlXCu6jk+SWNc1J9o1DLx+4wulcNkQL5pq7Tt+NzRqd+nY57/mP52/b5yfZKDyXWWZ7a068c2/ahedu1eBdVnfSlIx0CLD/V0jBj6fcUm8/qVXP8pgWPr//cE5H0iYl/26U9+WfxD/Ofb+97/4ye/5H+9MnQl7EpZE/Lxc9fvVJT4nZBUmTuFXRm3DX3HRT/T96mPqZAO7Wsnv92xjncFmHFRZwI1vTaNN9H8qjNf8cqI+Uxn1NGz+rFpYy+0+Ri9TbTZ8H2qq+fUN6/kOpVnoK592/B9R8+q8+lP/uv7x3+43f/fbjcdYOqIxF1FshgI2EWeZw6zQ/5p7Ak8NOpPEcQ23yfh7s5re9IwRRt/MgbPPTvmWGb7tPmZsTzLFp5F06mPHSiTxsmYTa5/rGPu7ELrXfXPetpmd13PxaaO6kppVblObafzKlOz6+D6TH9TH6P/v8eQ++eX3TYNdwNQARO6XQHEJKxJOTsA8KHeZJBX5826Qz9zlMmB7cm1XWQx2/c1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B8RAQEAAgMBAQEBAQAAAAAAAAEAAhARIEAwUGAhcP/aAAgBAwEDPwD/AJJx/B8a5/JZ8fH53NzcesiI/BWZnXHp5sp4uX/blnn2LOyOh7edcS2UySeTmfzTRDGk2zP043z+iMREadMz9+fwT4GudGyCI1xHy40NjH4LPZnRBoiNERpZfoySbIiGPORFjY2NjER1ZsrKyn1JZWUz4mbKyn9pmZnsvZuPIzOmdcTLMzBGudEafIREWNiaZ8J2I06IIjRHUiI8fGmZbnqzJpspmbKy2GuYiPyTscx2INER246n4xERERERERERERERERH7RGmbKZmZ7M9j3H1LGxsbHuzM7fgzMzMz5iIixsYjTLNzM2Usz8iIiOhERERG2dvZ+jZWUzMzNlZWUzs0eZ6keBnbM7ZZnQRERsiPuz9GZmfAREbPaRGiIiLGxsbGwiNMzNlM2UzPVmZmfwWZmZmZmZ06erP2I8LMzM/wrMz/AAZERERER4yOyz+E2VlMzMzMzP3Ieg6CxmfwCIiIiI0d2WymZmeiaNcd2fUREbI6ER8OIsWPC+oufqzMzPxZmZ6ERERGyPMRcQ/IiIiIiIiIjZFjEWNjERER1IiIiPzGfERYxpn+HZ+LMzM/hY2NjY2P8T//2Q==",mn={header:(n,t)=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{px:"sm",pt:"sm",gap:0,children:A.jsxs(O.Group,{p:8,gap:0,className:"hintBoard",children:[A.jsx(O.Title,{order:t,mb:"sm",mt:12-(t-1)*4,h:40-(t-1)*4,children:n("editor.heading.name")+` H${t}`}),A.jsx(O.Text,{size:"sm",h:80,lh:"21px",children:n("editor.menu.heading.hintShowCase",{projectName:"Layers"})})]})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n(`editor.menu.heading.h${t}.hintDescription`)})]}),ol:n=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:A.jsx(O.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",children:A.jsxs(O.List,{type:"ordered",mt:2,children:[A.jsx(O.List.Item,{fz:"sm",children:n("editor.menu.lists.numberList.hint.firstItem")}),A.jsx(O.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondItem")}),A.jsxs(O.List,{pl:18,listStyleType:"upper-alpha",children:[A.jsx(O.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.firstSubItem")}),A.jsx(O.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondSubItem")}),A.jsxs(O.List,{pl:22,withPadding:!0,listStyleType:"lower-roman",children:[A.jsx(O.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.firstSubSubItem")}),A.jsx(O.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondSubSubItem")})]})]})]})})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.lists.numberList.hint.description")})]}),ul:n=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:A.jsx(O.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",children:A.jsxs(O.List,{type:"unordered",mt:2,children:[A.jsx(O.List.Item,{fz:"sm",children:n("editor.menu.lists.numberList.hint.firstItem")}),A.jsx(O.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondItem")}),A.jsxs(O.List,{pl:18,listStyleType:"circle",children:[A.jsx(O.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.firstSubItem")}),A.jsx(O.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondSubItem")}),A.jsxs(O.List,{pl:22,withPadding:!0,listStyleType:"square",children:[A.jsx(O.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.firstSubSubItem")}),A.jsx(O.List.Item,{fz:"sm",mt:2,children:n("editor.menu.lists.numberList.hint.secondSubSubItem")})]})]})]})})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.lists.bulletList.hint.description")})]}),checkList:n=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:A.jsx(O.Group,{p:8,gap:0,w:"100%",h:150,className:"hintBoard",pt:"sm",children:A.jsxs(O.Checkbox.Group,{defaultValue:["indeterminate","checked"],mt:4,children:[A.jsx(O.Checkbox,{radius:"sm",size:"xs",value:"indeterminate",indeterminate:!0,pb:3,label:n("editor.menu.lists.checkList.hint.indeterminate")}),A.jsxs(O.Checkbox.Group,{pl:18,defaultValue:["indeterminate"],children:[A.jsx(O.Checkbox,{radius:"sm",size:"xs",value:"unchecked",py:3,label:n("editor.menu.lists.checkList.hint.unchecked")}),A.jsx(O.Checkbox,{radius:"sm",size:"xs",value:"indeterminate",indeterminate:!0,py:3,label:n("editor.menu.lists.checkList.hint.indeterminate")}),A.jsxs(O.Checkbox.Group,{pl:18,defaultValue:["check"],children:[A.jsx(O.Checkbox,{value:"check",size:"xs",radius:"sm",py:3,label:n("editor.menu.lists.checkList.hint.checked")}),A.jsx(O.Checkbox,{radius:"sm",size:"xs",value:"unchecked",py:3,label:n("editor.menu.lists.checkList.hint.unchecked")})]})]}),A.jsx(O.Checkbox,{radius:"sm",size:"xs",value:"checked",pt:3,label:n("editor.menu.lists.checkList.hint.checked")})]})})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.lists.checkList.hint.description")})]}),type:(n,t,e)=>r=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:A.jsxs(O.Group,{p:8,gap:0,w:"100%",h:150,align:"start",wrap:"nowrap",className:"hintBoard dsd__theme__callout-wrapper","data-emoji":n,"data-type":e,style:{backgroundColor:t},children:[A.jsx(O.Box,{children:A.jsx(O.Text,{w:26,mr:"sm",ta:"center",children:n})}),A.jsx(O.Text,{size:"sm",lh:"21px",children:r("editor.menu.callout.default.hint.body",{projectName:"Layers"})})]})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:r("editor.menu.callout.warning.hint.description")})]}),paragraph:n=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{px:"sm",pt:"sm",gap:0,children:A.jsx(O.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:A.jsx(O.Text,{size:"sm",lh:"21px",children:n("editor.menu.main.paragraph.hint.text",{projectName:"Layers"})})})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.paragraph.hint.description")})]}),quote:n=>A.jsxs(O.Group,{gap:0,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{p:"sm",gap:0,children:A.jsx(O.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:A.jsx(O.Group,{gap:0,className:"quote",children:A.jsx(O.Text,{size:"sm",lh:"21px",children:n("editor.menu.main.quote.hint.text",{projectName:"Layers"})})})})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.quote.hint.description")})]}),collapse:n=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{px:"sm",pt:"sm",w:"100%",gap:0,children:A.jsx(O.Group,{p:8,pt:"sm",gap:0,w:"100%",h:150,className:"hintBoard",children:A.jsxs(O.List,{type:"unordered",children:[A.jsx(O.List.Item,{icon:A.jsx($.IconTriangleFilled,{size:8,className:"rotate-90deg"}),fz:"sm",children:n("editor.menu.main.collapse.hint.firstItemEmpty")}),A.jsx(O.List.Item,{icon:A.jsx($.IconTriangleFilled,{size:8,className:"rotate-180deg"}),fz:"sm",mt:2,children:n("editor.menu.main.collapse.hint.secondItem")}),A.jsxs(O.List,{pl:18,listStyleType:"circle",children:[A.jsx(O.List.Item,{fz:"sm",mt:3,icon:A.jsx($.IconTriangleFilled,{size:8,className:"rotate-90deg"}),children:n("editor.menu.main.collapse.hint.firstSubItemEmpty")}),A.jsx(O.List.Item,{fz:"sm",mt:2,icon:A.jsx($.IconTriangleFilled,{size:8,className:"rotate-180deg"}),children:n("editor.menu.main.collapse.hint.secondSubItem")}),A.jsxs(O.List,{pl:22,withPadding:!0,listStyleType:"square",children:[A.jsx(O.List.Item,{fz:"sm",mt:2,icon:A.jsx($.IconTriangleFilled,{size:8,className:"rotate-90deg"}),children:n("editor.menu.main.collapse.hint.firstSubSubItemEmpty")}),A.jsx(O.List.Item,{fz:"sm",mt:2,icon:A.jsx($.IconTriangleFilled,{size:8,className:"rotate-180deg"}),children:n("editor.menu.main.collapse.hint.secondSubSubItem")})]})]})]})})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.collapse.hint.description")})]}),divider:n=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{px:"sm",pt:"sm",gap:0,children:A.jsx(O.Group,{p:8,pt:"sm",gap:0,className:"hintBoard",children:A.jsxs(O.Box,{children:[A.jsx(O.Text,{size:"sm",lh:"21px",children:n("editor.menu.main.horizontal-rule.hint.topText")}),A.jsx(O.Divider,{my:"sm"}),A.jsx(O.Text,{size:"sm",lh:"21px",children:n("editor.menu.main.horizontal-rule.hint.bottomText")})]})})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.horizontal-rule.hint.description")})]}),table:n=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{px:"sm",pt:"sm",gap:0,children:A.jsx(O.Group,{gap:0,p:8,pt:"sm",className:"hintBoard",w:276,children:A.jsxs(O.Table,{p:8,withTableBorder:!0,withRowBorders:!0,withColumnBorders:!0,h:150,children:[A.jsx(O.Table.Thead,{children:A.jsxs(O.Table.Tr,{h:58,children:[A.jsxs(O.Table.Th,{fz:"sm",fw:400,miw:177,style:{position:"relative"},children:[A.jsx(O.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{right:5,top:5},children:A.jsx(Ce,{stroke:1,size:10,name:"chevron-down"})}),A.jsx(O.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{left:-7.5,bottom:-7},children:A.jsx(Ce,{stroke:1,size:10,name:"plus"})}),A.jsx(O.ActionIcon,{className:"hintActionIcon",color:"var(--mantine-color-gray-light)",variant:"filled",size:14,style:{right:-7.5,top:-7},children:A.jsx(Ce,{stroke:1,size:10,name:"plus"})}),n("editor.menu.main.table.hint.firstRow")]}),A.jsx(O.Table.Th,{w:177,fz:"sm",fw:400})]})}),A.jsxs(O.Table.Tbody,{children:[A.jsxs(O.Table.Tr,{h:47,children:[A.jsx(O.Table.Td,{}),A.jsx(O.Table.Td,{})]}),A.jsxs(O.Table.Tr,{children:[A.jsxs(O.Table.Td,{miw:177,children:[" ",A.jsx(O.Checkbox,{mt:-19,radius:"sm",size:"xs",value:"checked",defaultChecked:!0,indeterminate:!0,label:n("editor.menu.lists.checkList.hint.indeterminate")})]}),A.jsx(O.Table.Td,{miw:177,children:A.jsx(O.Text,{fz:"sm",fw:400,children:n("editor.menu.main.table.hint.secondRow")})})]})]})]})})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.table.hint.description")})]}),grid:n=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{px:"sm",pt:"sm",gap:0,children:A.jsx(O.Group,{gap:0,p:8,className:"hintBoard",w:276,children:A.jsxs(O.Flex,{align:"flex-start",gap:"sm",children:[A.jsx(O.Text,{size:"sm",lh:"21px",miw:180,children:n("editor.menu.main.grid.hint.firstColumn")}),A.jsx(O.Text,{size:"sm",lh:"21px",miw:180,children:n("editor.menu.main.grid.hint.secondColumn",{projectName:"Layers"})})]})})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.grid.hint.description")})]}),code:n=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{px:"sm",pt:"sm",gap:0,children:A.jsx(O.Group,{px:8,gap:0,className:"hintBoard",children:A.jsx(O.Image,{style:{flex:1},radius:"sm",fit:"cover",src:WG,w:"110%",h:"110%"})})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.main.code.hint.description")})]}),image:n=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{px:"sm",pt:"sm",gap:0,children:A.jsx(O.Image,{style:{border:"1px solid #E9ECEF",flex:1},radius:"sm",fit:"cover",src:GG,w:"100%",h:"100%"})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.media.photo.hint.description")})]}),video:n=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsxs(O.Group,{px:"sm",pt:"sm",gap:0,children:[A.jsx(O.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:ZG,w:"100%",h:"100%"}),A.jsx(O.Box,{w:274,style:{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},children:A.jsx($.IconPlayerPlayFilled,{size:32})})]}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.media.video.hint.description")})]}),audio:n=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{px:"sm",pt:"sm",gap:0,children:A.jsx(O.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:KG,w:"100%",h:"100%"})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.media.audio.hint.description")})]}),file:n=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{px:"sm",pt:"sm",gap:0,children:A.jsx(O.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:HG,w:"100%",h:"100%"})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.media.file.hint.description")})]}),excalidraw:n=>A.jsxs(O.Group,{gap:10,style:{borderRadius:"var(--mantine-radius-lg)",backgroundColor:"var(--mantine-color-default-hover)"},children:[A.jsx(O.Group,{px:"sm",pt:"sm",gap:0,children:A.jsx(O.Image,{style:{border:"1px solid var(--mantine-color-default-border)",flex:1},radius:"sm",fit:"cover",src:YG,w:"100%",h:"100%"})}),A.jsx(O.Text,{px:"sm",pb:"sm",size:"xs",lh:"14px",children:n("editor.menu.media.excalidraw.hint.description")})]})};function Fs(n,t,e){return e.filter(r=>n(r)).map(r=>t(r))}const JG=["editor.menu.lists.bulletList.keywords.bulletsAlt1","editor.menu.lists.bulletList.keywords.bulletsAlt2"],VG=["editor.menu.main.quote.keywords.quote","editor.menu.main.quote.keywords.mark","editor.menu.main.quote.keywords.citation"],QG=["editor.menu.main.collapse.keywords.collapsibleList","editor.menu.main.collapse.keywords.expandList","editor.menu.main.collapse.keywords.hideList","editor.menu.main.collapse.keywords.turnList"],XG=["editor.menu.main.horizontalRule.keywords.divider","editor.menu.main.horizontalRule.keywords.horizontalLine","editor.menu.main.horizontalRule.keywords.border"],qG=["editor.menu.main.table.keywords.table"],$G=["editor.menu.main.grid.keywords.net","editor.menu.main.grid.keywords.grid","editor.menu.main.grid.keywords.columns"],eZ=["editor.menu.main.code.keywords.code","editor.menu.main.code.keywords.snippet"],tZ=["editor.menu.media.photo.keywords.picture","editor.menu.media.photo.keywords.display","editor.menu.media.photo.keywords.meme","editor.menu.media.photo.keywords.drawing","editor.menu.media.photo.keywords.memePic"],nZ=["editor.menu.media.form.keywords"],rZ=["editor.menu.media.video.keywords.video"],bk=(n,t,e)=>{const r=l=>e?Fs(e,t,l):[],s=r(JG),i=r([`editor.menu.lists.${n}List.keywords.heading`,`editor.menu.lists.${n}List.keywords.headingList`,`editor.menu.lists.${n}List.keywords.markers`]);return({number:["numberedlist","orderedlist","ol","numbers"],bullet:["bulletedlist","unorderedlist","ul","bullets"],check:["checklist","todolist","check","done","shoppinglist"]}[n]||[]).concat(s,i)},sl=(n,t,e)=>{const r=e?Fs(e,t,VG):[],s=e?Fs(e,t,QG):[],i=e?Fs(e,t,XG):[],o=e?Fs(e,t,qG):[],l=e?Fs(e,t,$G):[],a=e?Fs(e,t,eZ):[];switch(n){case"quote":return["blockquote","quote"].concat(r);case"collapse":return["collapse","collapsiblelist","toggle"].concat(s);case"horizontal-rule":return["horizontalrule","divider","hr","line"].concat(i);case"table":return["table","spreadsheet","rows","columns"].concat(o);case"grid":return["columns","layout","grid"].concat(l);case"code":return["javascript","python","js","codeblock","code","snippet"].concat(a)}},au=(n,t,e)=>{const r=e?Fs(e,t,tZ):[],s=e?Fs(e,t,nZ):[],i=e?Fs(e,t,rZ):[];switch(n){case"photo":return["image","photo","picture","img","png","jpg","jpeg","media"].concat(r);case"file":return["file","pdf","zip","media"].concat(r);case"excalidraw":return["excalidraw","paint","draw","media"].concat(r);case"audio":return["audio","music"].concat(r);case"form":return["form","embed","media"].concat(s);case"video":return["youtube","rutube","vkvideos","video","mp4","webm","media"].concat(i)}},Fn={size:18},sZ=[{type:"number",command:fp,name:"editor.menu.lists.numberList.name",iconName:"number",hint:mn.ol,description:"editor.menu.lists.numberList.subtitle"},{type:"bullet",command:cw,name:"editor.menu.lists.bulletList.name",iconName:"bullet",hint:mn.ul,description:"editor.menu.lists.bulletList.subtitle"},{type:"check",command:uw,name:"editor.menu.lists.checkList.name",iconName:"check",hint:mn.checkList,description:"editor.menu.lists.checkList.subtitle"}],iZ=[{type:"default",command:"default",name:"editor.menu.callout.default.name",iconName:"defaultOff",hint:mn.type("🙂","","default"),description:"editor.menu.callout.default.subtitle"},{type:"alert",command:"alert",name:"editor.menu.callout.alert.name",iconName:"alert",hint:mn.type("❗","rgba(255, 224, 223, 1)","alert"),description:"editor.menu.callout.alert.subtitle"},{type:"success",command:"success",name:"editor.menu.callout.success.name",iconName:"success",hint:mn.type("✅","rgba(219, 242, 233, 1)","success"),description:"editor.menu.callout.success.subtitle"},{type:"warning",command:"warning",name:"editor.menu.callout.warning.name",iconName:"warning",hint:mn.type("⚠️","rgba(254, 247, 230)","warning"),description:"editor.menu.callout.warning.subtitle"}],oZ=n=>({1:n("editor.menu.heading.h1.subtitle"),2:n("editor.menu.heading.h2.subtitle"),3:n("editor.menu.heading.h3.subtitle")}),zn=(n,t,e)=>{n.update(()=>{let r=Wt();if(!e&&((r==null?void 0:r.__type)==="text"||(r==null?void 0:r.__type)==="listitem")){const s=we(),{lexicalNode:i}=dc(r,n,{root:!0,"layout-item":!0,callout:!0,"collapsible-content":!0});s.append(),i==null||i.insertAfter(s).selectStart(),t(s)}else t(r)})};function K2(n){return n?"active dropdown-item-active":""}const W2={flip:!0,size:{padding:8,apply({availableHeight:n,elements:t}){requestAnimationFrame(()=>{Object.assign(t.floating.style,{maxHeight:`${n>=425?425:n}px`})})}}};function lZ(n,t){return n==="swagger"?!0:t}function Qf(n,t){n.update(()=>{const e=G();e&&(Gt(e)&&EL(e),Sc(G(),t))})}function H2({editor:n,isToolbar:t,excludeNodes:e,t:r,exists:s}){const i=oZ(r),o=y=>{switch(y){case 1:return["heading1","hone","h1",r("editor.menu.heading.h1.keywords.headerOne")];case 2:return["heading2","htwo","h2",r("editor.menu.heading.h2.keywords.headerTwo")];case 3:return["heading3","hthree","h3",r("editor.menu.heading.h3.keywords.headerThree")]}},l=y=>r(y).toUpperCase(),a=()=>[1,2,3].map(y=>({parentKey:"heading",name:`${r("editor.heading.name")} ${y}`,description:i[y]||"Добавите заголовок",hint:mn.header(r,y),keywords:[`${o(y)}`,`${r(`editor.menu.heading.h${y}.keywords.header${y}`)}`,`${r(`editor.menu.heading.h${y}.keywords.heading`)}`,`${r(`editor.menu.heading.h${y}.keywords.h${y}`)}`],icon:A.jsx(Ce,{...Fn,radius:"xs",name:`h${y}`}),key:`${y}`,hide:e[`${y}`],"data-test-id":`block-type-h${y}`,onSelect:()=>{zn(n,()=>{Qf(n,()=>Ws(`h${y}`))},t)}})),u=()=>sZ.map(({type:y,command:b,iconName:x,hint:C,description:v,name:E})=>({parentKey:"list",name:r(E),description:r(v),icon:A.jsx(Ce,{...Fn,name:x}),keywords:[`${bk(y,r,s)}`],key:y,hint:C(r),hide:e[y],"data-test-id":`block-type-${y}`,onSelect:()=>zn(n,()=>{n.dispatchCommand(b,void 0)},t)})),d=()=>[{parentKey:"main",name:r("editor.menu.main.paragraph.name"),description:r("editor.menu.main.paragraph.subtitle"),icon:A.jsx(Ce,{...Fn,name:"paragraph"}),keywords:[`${sl("paragraph",r,s)}`],key:"paragraph","data-test-id":"block-type-paragraph",hint:mn.paragraph(r),hide:e.paragraph||!t,onSelect:()=>zn(n,()=>{Qf(n,()=>we())},t)},{parentKey:"main",name:r("editor.menu.main.quote.name"),description:r("editor.menu.main.quote.subtitle"),icon:A.jsx(Ce,{...Fn,name:"quote"}),keywords:[`${sl("quote",r,s)}`],key:"quote",hint:mn.quote(r),hide:e.quote,"data-test-id":"block-type-quote",onSelect:()=>zn(n,()=>{Qf(n,()=>Ic())},t)},{parentKey:"main",name:r("editor.menu.main.collapse.name"),description:r("editor.menu.main.collapse.subtitle"),icon:A.jsx(Ce,{...Fn,name:"caret-right"}),keywords:[`${sl("collapse",r,s)}`],key:"caret-right",hint:mn.collapse(r),hide:t||e["caret-right"],"data-test-id":"block-type-collapse",onSelect:()=>zn(n,()=>{n.dispatchCommand(j2,void 0)},t)},{parentKey:"main",name:r("editor.menu.main.horizontal-rule.name"),description:r("editor.menu.main.horizontal-rule.subtitle"),icon:A.jsx(Ce,{...Fn,name:"horizontal-rule"}),keywords:[`${sl("horizontal-rule",r,s)}`],hint:mn.divider(r),hide:t||e["horizontal-rule"],key:"horizontal-rule","data-test-id":"block-type-horizontal-rule",onSelect:()=>{zn(n,y=>{const b=y==null?void 0:y.getParent();if(Hs(b)){const x=na(),C=y==null?void 0:y.replace(x);C==null||C.insertAfter(we())}else n.dispatchCommand(UI,void 0);!(y!=null&&y.getTextContent())&&!Dc(y==null?void 0:y.getParent())&&(y==null||y.remove())},t)}},{parentKey:"main",name:r("editor.menu.main.table.name"),description:r("editor.menu.main.table.subtitle"),icon:A.jsx(Ce,{...Fn,name:"table"}),keywords:[`${sl("table",r,s)}`],key:"table",hint:mn.table(r),hide:t||e.table,"data-test-id":"block-type-table",onSelect:()=>zn(n,()=>{n.dispatchCommand(hp,{columns:"4",includeHeaders:!1,rows:"3"})},t)},{parentKey:"main",name:r("editor.menu.main.grid.name"),description:r("editor.menu.main.grid.subtitle"),icon:A.jsx(Ce,{...Fn,name:"grid"}),keywords:[`${sl("grid",r,s)}`],hide:t||e.grid,hint:mn.grid(r),key:"grid","data-test-id":"block-type-grid",onSelect:()=>zn(n,()=>{n.dispatchCommand(Qw,Sw)},t)},{parentKey:"main",name:r("editor.menu.main.code.name"),description:r("editor.menu.main.code.subtitle"),icon:A.jsx(Ce,{...Fn,name:"code"}),keywords:[`${sl("code",r,s)}`],key:"code",hint:mn.code(r),hide:e.code,"data-test-id":"block-type-code",onSelect:()=>zn(n,()=>{Qf(n,()=>QL())},t)}],f=()=>iZ.map(({type:y,command:b,iconName:x,hint:C,description:v,name:E})=>({parentKey:"callout",name:r(E),description:r(v),icon:A.jsx(Ce,{...Fn,name:x}),keywords:[`${bk(y,r,s)}`,`${r(`editor.menu.callout.${y}.keywords.heading`)}`,`${r(`editor.menu.callout.${y}.keywords.headingList`)}`,`${r(`editor.menu.callout.${y}.keywords.markers`)}`],key:y,hint:C(r),hide:e[y],"data-test-id":`block-type-${y}`,onSelect:()=>{zn(n,()=>{n.dispatchCommand(ww,b)},t)}})),g=()=>[{parentKey:"media",name:r("editor.menu.media.photo.name"),description:r("editor.menu.media.photo.subtitle"),icon:A.jsx(Ce,{...Fn,name:"photo"}),keywords:[`${au("photo",r,s)}`],hide:t||e.photo,hint:mn.image(r),key:"photo",onSelect:()=>{zn(n,()=>{n.dispatchCommand(gg,{altText:"new-image",src:"",create:!0})},t)}},{parentKey:"media",name:r("editor.menu.media.video.name"),description:r("editor.menu.media.video.subtitle"),hint:mn.video(r),keywords:[`${au("video",r,s)}`],icon:A.jsx(Ce,{...Fn,name:"youtube"}),key:"video",hide:t||e.video,onSelect:()=>{zn(n,()=>{n.dispatchCommand(ab,"")},t)}},{parentKey:"media",name:r("editor.menu.media.audio.name"),description:r("editor.menu.media.audio.subtitle"),hint:mn.audio(r),keywords:[`${au("audio",r,s)}`],icon:A.jsx(Ce,{...Fn,name:"music"}),key:"audio",hide:t||e.audio,onSelect:()=>{zn(n,()=>{n.dispatchCommand(lb,"")},t)}},{parentKey:"media",name:r("editor.menu.media.file.name"),description:r("editor.menu.media.file.subtitle"),hint:mn.file(r),keywords:[`${au("file",r,s)}`],icon:A.jsx(Ce,{...Fn,name:"file"}),key:"file",hide:t||e.file,onSelect:()=>{zn(n,()=>{n.dispatchCommand(cb,"")},t)}},{parentKey:"media",name:r("editor.menu.media.excalidraw.name"),description:r("editor.menu.media.excalidraw.subtitle"),hint:mn.excalidraw(r),keywords:[`${au("excalidraw",r,s)}`,"media"],icon:A.jsx(Ce,{...Fn,name:"palette"}),key:"excalidraw",hide:t||e.excalidraw,onSelect:()=>{e.excalidraw||Promise.resolve().then(()=>require("./layers.CQR0Nl7I.js")).then(({INSERT_EXCALIDRAW_COMMAND:y})=>{zn(n,()=>{n.dispatchCommand(y,void 0)},t)})}}],p=()=>[{parentKey:"other",name:r("editor.menu.other.documents.name"),description:r("editor.menu.other.documents.subtitle"),icon:A.jsx(Ce,{...Fn,name:"book2"}),keywords:["page","document","child"],hide:t||e.childDocs,key:"childDocuments",onSelect:()=>{zn(n,()=>{n.dispatchCommand(O2,void 0)},t)}},{parentKey:"other",name:r("editor.menu.other.emoji.name"),description:r("editor.menu.other.emoji.subtitle"),icon:A.jsx(Ce,{...Fn,name:"emoji"}),keywords:["emoji","smile"],key:"emoji",hide:t||e.emoji,onSelect:()=>{n.focus(),n.dispatchCommand(FL,void 0)}}],m=()=>[...Rc.map(y=>({...y,keywords:["iframe",...y.keywords],"data-test-id":`block-type-${y.platform}`,onSelect:()=>{zn(n,()=>{y.platform==="swagger"?n.dispatchCommand(U2,""):n.dispatchCommand(Vw,"")},t)},hide:lZ(y.platform,t)}))];return[{key:"heading",name:l("editor.menu.heading.title"),blocks:a()},{key:"list",name:l("editor.menu.lists.title"),blocks:u()},{key:"main",name:l("editor.menu.main.title"),blocks:d()},{key:"callout",name:l("editor.menu.callout.title"),blocks:f()},{key:"media",name:l("editor.menu.media.title"),blocks:g()},{key:"other",name:l("editor.menu.other.title"),blocks:p()},{key:"integrations",name:l("editor.menu.integrations.title"),blocks:m()}]}const aZ=(n,t,e)=>{var r;return(t==null?void 0:t.__key)!==e.current.key&&(e.current={show:!0,key:t.__key,isCheck:!0}),t&&e.current.show&&e.current.isCheck&&(Se(t,xl)||Se(t,yt)||((r=Se(t,dt))==null?void 0:r.__checked)!==void 0)&&(e.current={show:!1,key:t.__key,isCheck:!1}),e.current.show&&(t==null?void 0:t.__key)===e.current.key&&(e.current={show:!0,key:(t==null?void 0:t.__key)||"",isCheck:!1}),e.current.show?n:""};class Y2 extends LG{constructor(e,r,s,i,o,l){super(e);z(this,"key");z(this,"title");z(this,"description");z(this,"icon");z(this,"keywords");z(this,"keyboardShortcut");z(this,"onSelect");z(this,"hide");z(this,"parentKey");z(this,"index");z(this,"hint");this.key=e,this.title=r,this.hide=i,this.description=s,this.keywords=l.keywords||[],this.icon=l.icon,this.hint=l.hint,this.parentKey=o,this.index=0,this.keyboardShortcut=l.keyboardShortcut,this.onSelect=l.onSelect.bind(this)}}function cZ({index:n,isSelected:t,onClick:e,onMouseEnter:r,option:s}){return A.jsxs(O.HoverCard,{width:300,openDelay:200,closeDelay:0,shadow:"md",disabled:window.innerWidth<=800,position:"right",zIndex:1001,offset:-20,children:[A.jsx(O.HoverCard.Target,{children:A.jsxs("li",{tabIndex:-1,style:s.description?{padding:"12px 8px",flex:1}:{padding:"6px 8px",flex:1},className:"item",role:"option",id:"typeahead-item-"+n,ref:s.setRefElement,"aria-selected":t,onMouseEnter:r,onClick:e,"data-selected":t,"data-test-id":`block-type-${s.key}`,children:[s.icon,A.jsxs(O.Flex,{gap:0,direction:"column",justify:s.description?"flex-start":"center",ml:"sm",children:[A.jsx(O.Text,{style:{alignSelf:"flex-start"},mb:0,size:"sm",h:16,children:s.title}),s.description&&A.jsx(O.Text,{style:{alignSelf:"flex-start"},c:"dimmed",size:"xs",mb:0,h:14,children:s.description})]})]},s.key)}),s.hint&&A.jsx(O.HoverCard.Dropdown,{p:0,style:{borderRadius:"var(--mantine-radius-lg)"},children:s.hint})]})}function uZ(n,t){const e=[];if(t==null)return e;const r=t.match(/^([1-9]\d?)(?:x([1-9]\d?)?)?$/);if(r!==null){const s=r[1],i=r[2]?[r[2]]:[1,2,3,4,5,6,7,8,9,10].map(String);e.push(...i.map(o=>new Y2("table",`${s}x${o} Table`,"",!1,"heading",{icon:A.jsx("i",{className:"icon table"}),keywords:["table"],onSelect:()=>n.dispatchCommand(hp,{columns:o,rows:s})})))}return e}function dZ({editor:n,excludeNodes:t,t:e}){const r=H2({editor:n,isToolbar:!1,excludeNodes:t,t:e});let s=[],i={};r.forEach(l=>{i[l.key]=l,s=[...s,...l.blocks]});let o=[];return s.forEach(l=>{l.hide||(o=[...o,new Y2(l.key,l.name,l.description,l.hide,l.parentKey,{hint:l.hint,icon:l.icon,keywords:l.keywords,onSelect:l.onSelect})])}),{groupedOptions:i,baseOptions:o}}function fZ({mode:n,setOpenedMenu:t,opened:e}){const[r]=_e(),s=k.useRef({show:!0,key:"",isCheck:!0}),[i,o]=k.useState(null),[l,a]=k.useState(0),{t:u}=it.useTranslation(),d=(l===100).toString(),{fetchUploadMedia:f,excludeNodes:g}=k.useContext(kt),p=RG("/",{minLength:0}),{options:m,groupOptions:y,groupedInitialOptions:b}=k.useMemo(()=>{const{groupedOptions:N,baseOptions:S}=dZ({editor:r,excludeNodes:g,t:u}),_=M=>{const R=M.reduce((F,j,U)=>{const V=j.parentKey;return F[V]||(F[V]=[]),F[V].push({...j,index:U}),F},{});return Object.entries(R).map(([F,j])=>({name:F,items:j}))};if(!i)return{options:S,groupOptions:_(S),groupedInitialOptions:N};const I=new RegExp(i,"i"),L=[...uZ(r,i),...S.filter(M=>I.test(M.title)||M.keywords.some(R=>I.test(R)))];return{options:L,groupOptions:_(L),groupedInitialOptions:N}},[r,f,n,i]),x=k.useCallback((N,S,_,I)=>{r.update(()=>{S==null||S.remove(),N.onSelect(I),_()})},[r]),C=N=>{const S=N.target;if(yk(S,Ss,r)){a(100),t(!1);return}(!(S!=null&&S.closest(".editor-scroller"))||S instanceof HTMLButtonElement)&&(t(!1),document.removeEventListener("click",C))};k.useEffect(()=>(e&&document.addEventListener("click",C),()=>{document.removeEventListener("click",C)}),[e]);const v=N=>{var M;if(!N){setTimeout(()=>{t(!0),a(R=>R+1)},50);return}const{x:S,y:_}=((M=N.getRect)==null?void 0:M.call(N))??{},I=document.elementFromPoint(S+1,_+1);!I||yk(I,Ss,r)||setTimeout(()=>{t(!0),a(R=>R+1)},50)},E=(N,S)=>{if(N.substring(0,1)!=="/")return p(N,S);const I=Wt();if(!I)return p(N,S);const L=aZ(N,I,s);return v(),p(L,S)};return A.jsx(A.Fragment,{children:A.jsx(z2,{onQueryChange:o,onSelectOption:x,triggerFn:E,options:m,onOpen:v,anchorClassName:"reset-anchor",onClose:()=>{t(!1)},menuRenderFn:(N,{selectedIndex:S,selectOptionAndCleanUp:_,setHighlightedIndex:I})=>A.jsx(A.Fragment,{children:N.current&&A.jsx(O.Portal,{target:N.current||document.body,children:A.jsxs(O.Menu,{shadow:"md",opened:e,loop:!1,trapFocus:!1,menuItemTabIndex:0,styles:{dropdown:{overflow:"auto",zIndex:1e3,display:m.length?"block":"none"}},middlewares:{flip:!0,size:{padding:8,apply({availableHeight:L,elements:M,y:R,placement:F}){requestAnimationFrame(()=>{Object.assign(M.floating.style,{maxHeight:`${L>=425?425:L}px`,top:F==="top-start"?`${R-20}px`:`${R}px`})})}}},closeOnItemClick:!1,position:"bottom-start",transitionProps:ci,children:[A.jsx(O.Menu.Target,{children:A.jsx("span",{})},l),A.jsx(O.Menu.Dropdown,{className:"typeahead-popover component-picker-menu",children:y.map(L=>{const M=b[L.name].name;return A.jsxs("div",{children:[A.jsx(O.Text,{ml:8,mt:12,size:"xs",c:"dimmed",children:M}),A.jsx("ul",{children:L.items.length&&L.items.map(R=>A.jsx(cZ,{index:R.index,isSelected:S===R.index,onClick:()=>{I(R.index),_(R)},onMouseEnter:()=>{I(R.index)},option:R},R.key))})]},M)})})]},d)})})})})}function hZ({isLoading:n}){const[t]=_e();return k.useEffect(()=>{t.update(()=>{xe().getFirstChild()&&setTimeout(()=>{var s;(s=t._rootElement)==null||s.setAttribute("contenteditable","true")},0)})},[t,n]),null}const gZ=n=>n.getEditorState().read(()=>xe().getChildrenKeys()).map(e=>({key:e,node:me(e),htmlElement:n.getElementByKey(e)})),G2=(n,t,e)=>{let r;if(Vs(n)){const l=n.getTag();switch(r=t("editor.heading.name"),l){case"h1":{r+=" 1";break}case"h2":{r+=" 2";break}case"h3":{r+=" 3";break}case"h4":{r+=" 4";break}case"h5":{r+="5";break}case"h6":{r+="6";break}}}const s=Se(n,yt),i=Se(n,xl);return(un(n)?n:un(n.getParent())?n.getParent():null)&&!s&&!i&&(r=e||t("editor.placeholder")),r},BA="node-placeholder";let Xf=null;const pZ=n=>n instanceof HTMLHeadingElement,mZ=({selection:n,editor:t,t:e,customPlaceholder:r})=>{var l,a;const s=gZ(t);if(s[0]&&s.length===0&&s[0].htmlElement&&!pZ(s[0].htmlElement)){const u=t.getElementByKey(n.anchor.getNode().__key);(l=u==null?void 0:u.classList)==null||l.remove(BA),u==null||u.removeAttribute("data-placeholder");return}const i=n.anchor,o=G2(i.getNode(),e,r);if(o){const u=i.getNode().getTextContentSize(),d=t.getElementByKey(i.key);if(u===0&&(d==null||d.classList.add(BA),d==null||d.setAttribute("data-placeholder",o)),Xf&&(Xf!==i.key||u!==0)){const f=t.getElementByKey(Xf);(a=f==null?void 0:f.classList)==null||a.remove(BA),f==null||f.removeAttribute("data-placeholder")}Xf=i.key}},AZ=(n,t,e)=>{n.getEditorState().read(()=>{const r=G();H(r)&&mZ({selection:r,editor:n,t,customPlaceholder:e})})},yZ=()=>{const[n]=_e(),{t}=it.useTranslation(),{placeholder:e}=k.useContext(kt);return k.useEffect(()=>(n.read(()=>{const s=xe().getChildren();if(s.length===1){const i=s[0];i.getTextContent()||setTimeout(()=>{n.update(()=>{const l=n.getElementByKey(i.getKey()),a=G2(i,t,e);l&&a&&(l.classList.add("node-placeholder"),l.setAttribute("data-placeholder",a))})})}}),n.registerUpdateListener(()=>{AZ(n,t,e)})),[n,e]),null};function qf(n){return n instanceof HTMLElement}function yg(n){let t=0;n instanceof WheelEvent?t=n.deltaY:n instanceof TouchEvent&&(t=1);let e=n.target;for(;e&&e!==document.body&&e!==document.documentElement;){if(e.scrollHeight>e.clientHeight&&(t<0&&e.scrollTop>0||t>0&&e.scrollTop+e.clientHeight<e.scrollHeight))return;e=e.parentElement}n.preventDefault()}function Z2(){document.addEventListener("wheel",yg,{passive:!1}),document.addEventListener("touchmove",yg,{passive:!1})}function J2(){document.removeEventListener("wheel",yg),document.removeEventListener("touchmove",yg)}const bZ=({hoveredButton:n,insertNewParagraph:t,currentDraggableBlockRef:e,setHoveredButton:r,isClickedBlockRef:s,setDraggableBlockElem:i,editor:o,t:l})=>A.jsx("div",{className:`icon add-block-menu ${n?"active":""}`,onClick:()=>{t({blockElement:e.current.htmlElement,editor:o,isTop:!1,isClickedBlockRef:s,setDraggableBlockElem:i}),r("both")},onMouseEnter:()=>{r("bottom")},onMouseLeave:()=>{r("both")},children:A.jsx(O.Tooltip,{openDelay:300,label:l("editor.hoverOptions.addNewBlockAbove"),position:"bottom",disabled:s.current||!n,children:A.jsx(O.ActionIcon,{radius:"sm",color:"gray",size:"xs",variant:"subtle","aria-label":"Settings",children:n==="bottom"?A.jsx($.IconPlus,{}):A.jsx($.IconMinus,{})})})}),wZ=({hoveredButton:n,insertNewParagraph:t,currentDraggableBlockRef:e,setHoveredButton:r,isClickedBlockRef:s,setDraggableBlockElem:i,editor:o,t:l})=>A.jsx("div",{className:`icon add-block-menu add-block-menu_top ${n?"active":""}`,onClick:()=>{t({blockElement:e.current.htmlElement,editor:o,isTop:!0,isClickedBlockRef:s,setDraggableBlockElem:i}),r("both")},onMouseEnter:()=>{r("top")},onMouseLeave:()=>{r("both")},children:A.jsx(O.Tooltip,{disabled:s.current||!n,openDelay:300,label:l("editor.hoverOptions.addNewBlockBelow"),position:"top",children:A.jsx(O.ActionIcon,{radius:"sm",color:"gray",size:"xs",variant:"subtle","aria-label":"Settings",children:n==="top"?A.jsx($.IconPlus,{}):A.jsx($.IconMinus,{})})})}),jA=({label:n,icon:t,dataNameAttribute:e})=>A.jsxs("div",{className:"custom-menu-item","data-test-id":e||"color-picker",children:[A.jsxs("div",{children:[t,A.jsx("span",{children:n})]}),A.jsx(Ce,{name:"chevron-right"})]}),CZ={bullet:"Маркированный список",check:"Чек-лист",code:"Кодовый блок",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",h6:"Заголовок 6",number:"Нумерованный список",paragraph:"Параграф",quote:"Цитата"};function V2({editor:n,blockType:t,disabled:e=!1,mode:r,fetchUploadMedia:s,excludeNodes:i,children:o,menuProps:l,onChange:a}){const[u,d]=_p(),{t:f,i18n:g}=it.useTranslation(),p=k.useMemo(()=>H2({editor:n,isToolbar:!0,excludeNodes:i,t:f}).map(m=>({...m,blocks:m.blocks.filter(y=>!y.hide)})),[n,d,s,r,g.language]);return A.jsxs(A.Fragment,{children:[u,A.jsxs(O.Menu,{shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3,overscrollBehavior:"contain"}},middlewares:W2,position:"bottom-start",transitionProps:ci,...l,children:[A.jsx(O.Menu.Target,{children:o||A.jsx(O.Tooltip,{label:f("editor.toolbar.turnInto"),children:A.jsxs("button",{disabled:e,className:"toolbar-item block-controls","aria-label":"Formatting options for text style",title:CZ[t],type:"button","data-test-id":"toolbar-block-controls",children:[A.jsx(Ce,{size:18,mr:5,name:t}),A.jsx(Ce,{name:"chevron-down"})]})})}),A.jsx(O.Menu.Dropdown,{children:p.map(m=>A.jsxs("div",{children:[m.blocks.length!==0&&A.jsx(O.Menu.Label,{children:m.name}),m.blocks.map(y=>A.jsx(k.Fragment,{children:A.jsx(O.Menu.Item,{className:"item "+K2(y.key==="1"),leftSection:y.icon,onClick:()=>{y.onSelect(),a&&a()},"data-test-id":y["data-test-id"],children:y.name})},y.key))]},m.key))})]})]})}function Q2(n,t){var i,o;const e=(i=t.exportDOM)==null?void 0:i.call(t,n),r=(e==null?void 0:e.element)??null;if(Y(t)){const l=r??document.createElement("div"),a=((o=t.getChildren)==null?void 0:o.call(t))??[];for(const u of a){const d=Q2(n,u);if(d)l.appendChild(d);else{const f=typeof u.getTextContent=="function"?u.getTextContent():"";f&&l.appendChild(document.createTextNode(f))}}return typeof(e==null?void 0:e.after)=="function"&&e.after(l),l}if(r)return typeof(e==null?void 0:e.after)=="function"&&e.after(r),r;const s=typeof t.getTextContent=="function"?t.getTextContent():"";return s?document.createTextNode(s):null}async function wk(n,t){const e=n.getRootElement(),r=Array.from(e.querySelectorAll(".selected-block"));if(!r.length)return;let s="",i="";n.getEditorState().read(()=>{n.update(()=>{let o=r.map(a=>Oe(a)).filter(a=>!!a);s=o.map(a=>typeof a.getTextContent=="function"?a.getTextContent():"").filter(Boolean).join(`
72
+ `);const l=document.createElement("div");o.forEach(a=>{const u=Q2(n,a);t==="cut"&&a.remove(),u&&l.appendChild(u)}),i=l.innerHTML})}),(s||i)&&await xZ(s,i)}async function xZ(n,t){if(navigator.clipboard&&"write"in navigator.clipboard&&window.ClipboardItem){const e=new ClipboardItem({"text/plain":new Blob([n],{type:"text/plain"}),...t?{"text/html":new Blob([t],{type:"text/html"})}:{}});await navigator.clipboard.write([e])}}const Ck=(n,t,e,r)=>{if(e)if(r==="layout"){const s=e.getParent(),i=s.getParent();gc(n,s,i),t("delete")}else{const s=e==null?void 0:e.getParent();if(s instanceof Pr&&s.getChildren().length===2){const i=s,o=s.getParent();if(e.__type==="image"){i.append(we());return}gc(n,i,o)}Ew(n,e),t("delete")}},vZ=n=>{const t=n._rootElement;return Array.from(t.querySelectorAll(".selected-block"))},wb=(n,t,e,r=!1)=>{t&&n.update(()=>{const s=n.getElementByKey(t.getParent().getKey());pG(n,s,e,r)})},SZ=(n,t,e,r)=>{if(r==="layout")wb(n,e,"right",!0);else{const s=n._rootElement,i=Array.from(s.querySelectorAll(".selected-block")).reverse();i.length&&(n.update(()=>{const o=Oe(i[0]);i.forEach(l=>{let a=Oe(l);a&&(o==null||o.insertAfter(Iu(a))),Go(l)})}),t())}},EZ=({editor:n,onChange:t,currentEditorNode:e,textBlock:r,t:s,isDisabledAddColumnButton:i,disabledMoveColumnButtons:o})=>{const{fetchUploadMedia:l,excludeNodes:a}=k.useContext(kt),[u,d]=k.useState("inherit"),[f,g]=k.useState("inherit"),[p,m]=k.useState("inherit"),[y,b]=k.useState("");k.useEffect(()=>{const E=e==null?void 0:e.__type;n.read(()=>{var N;((N=e==null?void 0:e.getParent())==null?void 0:N.__type)==="layout-item"?b("layout"):b(E==="callout-wrapper"?E:"block")})},[e==null?void 0:e.__key]);const x=E=>{n.update(()=>{const N=G();N&&zh(N,E)})},C=(E,N)=>{const S=N||y;S==="callout-wrapper"&&e instanceof Bo?n.update(()=>{const _=YL(E);e.setType(_?E.meta.type:void 0),e.setBackgroundColor(E.value)}):S==="layout-color"?n.update(()=>{const _=e==null?void 0:e.getParent(),I=E.value===f?"inherit":E.value;_ instanceof Pr&&_.setLayoutBackground(I)}):x({color:p,"background-color":u,[E.mode==="color"?"color":"background-color"]:E.value})},v=E=>{const N=vZ(n);N.length?N.forEach(S=>{n.update(()=>{let _=Oe(S);_&&Ck(n,t,_,E)})}):n.update(()=>{let S=Oe(N[0]);Ck(n,t,S,E)})};return k.useEffect(()=>{setTimeout(()=>{n.read(()=>{if(y==="callout-wrapper"&&e instanceof Bo){d(e.__backgroundColor);return}const E=e==null?void 0:e.getParent();E instanceof Pr&&g(E.__backgroundColor);const N=G();H(N)&&(m(Uh(N,"color","inherit")),d(Uh(N,"background-color","inherit")))})})},[]),A.jsxs(A.Fragment,{children:[A.jsx(O.Menu.Item,{onMouseDown:E=>{E.preventDefault(),wk(n,"copy"),t("copy")},leftSection:A.jsx($.IconClipboard,{style:{width:O.rem(14),height:O.rem(14)}}),"data-test-id":"copy-draggable",children:s("editor.link.copy")}),A.jsx(O.Menu.Item,{onMouseDown:E=>{E.preventDefault(),wk(n,"cut"),t("cut")},"data-test-id":"cut-draggable",leftSection:A.jsx($.IconCut,{style:{width:O.rem(14),height:O.rem(14)}}),children:s("editor.contextMenu.cut")}),A.jsx(O.Menu.Item,{"data-test-id":"delete-draggable",onClick:()=>v(""),leftSection:A.jsx($.IconTrash,{style:{width:O.rem(14),height:O.rem(14)}}),children:s("editor.contextMenu.delete")}),A.jsx(O.Menu.Item,{"data-test-id":"duplicate-draggable",disabled:y==="layout"&&i,onClick:()=>SZ(n,t,e,y),leftSection:A.jsx($.IconCopy,{style:{width:O.rem(14),height:O.rem(14)}}),children:s("editor.contextMenu.duplicate")}),r==="text"&&y!=="callout-wrapper"&&A.jsxs(A.Fragment,{children:[A.jsx(O.Menu.Divider,{}),A.jsx(V2,{disabled:!1,blockType:"paragraph",rootType:"root",editor:n,mode:"editor",fetchUploadMedia:l,excludeNodes:a,onChange:t,menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}},children:A.jsx("div",{children:A.jsx(jA,{label:s("editor.toolbar.turnInto"),dataNameAttribute:"turn-into",icon:A.jsx($.IconArrowsRightLeft,{style:{width:O.rem(14),height:O.rem(14)}})})})})]}),(r==="text"||y=="callout-wrapper")&&A.jsxs(A.Fragment,{children:[A.jsx(O.Menu.Divider,{}),A.jsx(Ct.NewColorPicker,{data:{callout:{label:s("editor.colors.theme"),filled:!0,palette:HL.map(E=>({label:s(`editor.colors.callout.${E.name}`),value:O.alpha(E.color,.19),icon:E.icon,meta:{type:E.name,emoji:E.emoji}}))}},modes:y==="callout-wrapper"?["callout","background"]:["color","background"],value:{color:p,background:u,callout:u},onChange:E=>{C(E),t()},hideInherit:!0,target:A.jsx("div",{children:A.jsx(jA,{dataNameAttribute:"color-picker",label:s(y==="callout-wrapper"?"editor.contextMenu.appearance":"editor.toolbar.color"),icon:A.jsx($.IconPaint,{size:14})})}),menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}}})]}),y==="layout"&&A.jsxs(A.Fragment,{children:[A.jsx(O.Menu.Divider,{}),A.jsx(Ct.NewColorPicker,{modes:["background"],value:{background:f},onChange:E=>{C(E,"layout-color"),t()},hideInherit:!0,target:A.jsx("div",{children:A.jsx(jA,{label:s("editor.column.changeColor"),icon:A.jsx($.IconPaint,{size:14})})}),menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:0,alignmentAxis:0}}}),A.jsx(O.Menu.Item,{disabled:i,onClick:()=>{wb(n,e,"left")},leftSection:A.jsx($.IconColumnInsertLeft,{style:{width:O.rem(14),height:O.rem(14)}}),"data-test-id":"column-left",children:s("editor.column.addLeft")}),A.jsx(O.Menu.Item,{disabled:i,"data-test-id":"column-right",onClick:()=>{wb(n,e,"right")},leftSection:A.jsx($.IconColumnInsertRight,{style:{width:O.rem(14),height:O.rem(14)}}),children:s("editor.column.addRight")}),A.jsx(O.Menu.Item,{disabled:o.left,"data-test-id":"column-move-left",onClick:()=>{ak(n,e,"left"),dg(n)},leftSection:A.jsx($.IconColumnInsertRight,{style:{width:O.rem(14),height:O.rem(14)}}),children:s("editor.column.moveLeft")}),A.jsx(O.Menu.Item,{disabled:o.right,"data-test-id":"column-move-right",onClick:()=>{ak(n,e,"right"),dg(n)},leftSection:A.jsx($.IconColumnInsertRight,{style:{width:O.rem(14),height:O.rem(14)}}),children:s("editor.column.moveRight")}),A.jsx(O.Menu.Item,{"data-test-id":"column-delete",onClick:()=>v("layout"),leftSection:A.jsx($.IconTrash,{style:{width:O.rem(14),height:O.rem(14)}}),children:s("editor.column.deleteColumn")})]})]})};var Au={exports:{}};/**
73
+ * @license
74
+ * Lodash <https://lodash.com/>
75
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
76
+ * Released under MIT license <https://lodash.com/license>
77
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
78
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
79
+ */var kZ=Au.exports,xk;function TZ(){return xk||(xk=1,(function(n,t){(function(){var e,r="4.17.21",s=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",l="Invalid `variable` option passed into `_.template`",a="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",f=1,g=2,p=4,m=1,y=2,b=1,x=2,C=4,v=8,E=16,N=32,S=64,_=128,I=256,L=512,M=30,R="...",F=800,j=16,U=1,V=2,ne=3,ae=1/0,re=9007199254740991,ee=17976931348623157e292,se=NaN,q=4294967295,W=q-1,J=q>>>1,te=[["ary",_],["bind",b],["bindKey",x],["curry",v],["curryRight",E],["flip",L],["partial",N],["partialRight",S],["rearg",I]],le="[object Arguments]",ce="[object Array]",de="[object AsyncFunction]",Ae="[object Boolean]",ke="[object Date]",ye="[object DOMException]",Ee="[object Error]",Ye="[object Function]",ft="[object GeneratorFunction]",Ke="[object Map]",mt="[object Number]",At="[object Null]",Re="[object Object]",Me="[object Promise]",lt="[object Proxy]",Jt="[object RegExp]",Dt="[object Set]",hr="[object String]",Be="[object Symbol]",ot="[object Undefined]",bt="[object WeakMap]",zt="[object WeakSet]",Ut="[object ArrayBuffer]",ct="[object DataView]",nr="[object Float32Array]",Ht="[object Float64Array]",rr="[object Int8Array]",sr="[object Int16Array]",ui="[object Int32Array]",Zo="[object Uint8Array]",zc="[object Uint8ClampedArray]",gr="[object Uint16Array]",Xi="[object Uint32Array]",KM=/\b__p \+= '';/g,WM=/\b(__p \+=) '' \+/g,HM=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lC=/&(?:amp|lt|gt|quot|#39);/g,aC=/[&<>"']/g,YM=RegExp(lC.source),GM=RegExp(aC.source),ZM=/<%-([\s\S]+?)%>/g,JM=/<%([\s\S]+?)%>/g,cC=/<%=([\s\S]+?)%>/g,VM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,QM=/^\w*$/,XM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dp=/[\\^$.*+?()[\]{}|]/g,qM=RegExp(Dp.source),Op=/^\s+/,$M=/\s/,eD=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,tD=/\{\n\/\* \[wrapped with (.+)\] \*/,nD=/,? & /,rD=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,sD=/[()=,{}\[\]\/\s]/,iD=/\\(\\)?/g,oD=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,uC=/\w*$/,lD=/^[-+]0x[0-9a-f]+$/i,aD=/^0b[01]+$/i,cD=/^\[object .+?Constructor\]$/,uD=/^0o[0-7]+$/i,dD=/^(?:0|[1-9]\d*)$/,fD=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kd=/($^)/,hD=/['\n\r\u2028\u2029\\]/g,Wd="\\ud800-\\udfff",gD="\\u0300-\\u036f",pD="\\ufe20-\\ufe2f",mD="\\u20d0-\\u20ff",dC=gD+pD+mD,fC="\\u2700-\\u27bf",hC="a-z\\xdf-\\xf6\\xf8-\\xff",AD="\\xac\\xb1\\xd7\\xf7",yD="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bD="\\u2000-\\u206f",wD=" \\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",gC="A-Z\\xc0-\\xd6\\xd8-\\xde",pC="\\ufe0e\\ufe0f",mC=AD+yD+bD+wD,Rp="['’]",CD="["+Wd+"]",AC="["+mC+"]",Hd="["+dC+"]",yC="\\d+",xD="["+fC+"]",bC="["+hC+"]",wC="[^"+Wd+mC+yC+fC+hC+gC+"]",Pp="\\ud83c[\\udffb-\\udfff]",vD="(?:"+Hd+"|"+Pp+")",CC="[^"+Wd+"]",Bp="(?:\\ud83c[\\udde6-\\uddff]){2}",jp="[\\ud800-\\udbff][\\udc00-\\udfff]",ca="["+gC+"]",xC="\\u200d",vC="(?:"+bC+"|"+wC+")",SD="(?:"+ca+"|"+wC+")",SC="(?:"+Rp+"(?:d|ll|m|re|s|t|ve))?",EC="(?:"+Rp+"(?:D|LL|M|RE|S|T|VE))?",kC=vD+"?",TC="["+pC+"]?",ED="(?:"+xC+"(?:"+[CC,Bp,jp].join("|")+")"+TC+kC+")*",kD="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",TD="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",_C=TC+kC+ED,_D="(?:"+[xD,Bp,jp].join("|")+")"+_C,ND="(?:"+[CC+Hd+"?",Hd,Bp,jp,CD].join("|")+")",ID=RegExp(Rp,"g"),LD=RegExp(Hd,"g"),Fp=RegExp(Pp+"(?="+Pp+")|"+ND+_C,"g"),MD=RegExp([ca+"?"+bC+"+"+SC+"(?="+[AC,ca,"$"].join("|")+")",SD+"+"+EC+"(?="+[AC,ca+vC,"$"].join("|")+")",ca+"?"+vC+"+"+SC,ca+"+"+EC,TD,kD,yC,_D].join("|"),"g"),DD=RegExp("["+xC+Wd+dC+pC+"]"),OD=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,RD=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],PD=-1,Yt={};Yt[nr]=Yt[Ht]=Yt[rr]=Yt[sr]=Yt[ui]=Yt[Zo]=Yt[zc]=Yt[gr]=Yt[Xi]=!0,Yt[le]=Yt[ce]=Yt[Ut]=Yt[Ae]=Yt[ct]=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",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},jD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},FD={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},zD={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},UD=parseFloat,KD=parseInt,NC=typeof ul=="object"&&ul&&ul.Object===Object&&ul,WD=typeof self=="object"&&self&&self.Object===Object&&self,Bn=NC||WD||Function("return this")(),zp=t&&!t.nodeType&&t,Jo=zp&&!0&&n&&!n.nodeType&&n,IC=Jo&&Jo.exports===zp,Up=IC&&NC.process,jr=(function(){try{var Q=Jo&&Jo.require&&Jo.require("util").types;return Q||Up&&Up.binding&&Up.binding("util")}catch{}})(),LC=jr&&jr.isArrayBuffer,MC=jr&&jr.isDate,DC=jr&&jr.isMap,OC=jr&&jr.isRegExp,RC=jr&&jr.isSet,PC=jr&&jr.isTypedArray;function Sr(Q,ue,oe){switch(oe.length){case 0:return Q.call(ue);case 1:return Q.call(ue,oe[0]);case 2:return Q.call(ue,oe[0],oe[1]);case 3:return Q.call(ue,oe[0],oe[1],oe[2])}return Q.apply(ue,oe)}function HD(Q,ue,oe,Ie){for(var Je=-1,wt=Q==null?0:Q.length;++Je<wt;){var wn=Q[Je];ue(Ie,wn,oe(wn),Q)}return Ie}function Fr(Q,ue){for(var oe=-1,Ie=Q==null?0:Q.length;++oe<Ie&&ue(Q[oe],oe,Q)!==!1;);return Q}function YD(Q,ue){for(var oe=Q==null?0:Q.length;oe--&&ue(Q[oe],oe,Q)!==!1;);return Q}function BC(Q,ue){for(var oe=-1,Ie=Q==null?0:Q.length;++oe<Ie;)if(!ue(Q[oe],oe,Q))return!1;return!0}function qi(Q,ue){for(var oe=-1,Ie=Q==null?0:Q.length,Je=0,wt=[];++oe<Ie;){var wn=Q[oe];ue(wn,oe,Q)&&(wt[Je++]=wn)}return wt}function Yd(Q,ue){var oe=Q==null?0:Q.length;return!!oe&&ua(Q,ue,0)>-1}function Kp(Q,ue,oe){for(var Ie=-1,Je=Q==null?0:Q.length;++Ie<Je;)if(oe(ue,Q[Ie]))return!0;return!1}function Vt(Q,ue){for(var oe=-1,Ie=Q==null?0:Q.length,Je=Array(Ie);++oe<Ie;)Je[oe]=ue(Q[oe],oe,Q);return Je}function $i(Q,ue){for(var oe=-1,Ie=ue.length,Je=Q.length;++oe<Ie;)Q[Je+oe]=ue[oe];return Q}function Wp(Q,ue,oe,Ie){var Je=-1,wt=Q==null?0:Q.length;for(Ie&&wt&&(oe=Q[++Je]);++Je<wt;)oe=ue(oe,Q[Je],Je,Q);return oe}function GD(Q,ue,oe,Ie){var Je=Q==null?0:Q.length;for(Ie&&Je&&(oe=Q[--Je]);Je--;)oe=ue(oe,Q[Je],Je,Q);return oe}function Hp(Q,ue){for(var oe=-1,Ie=Q==null?0:Q.length;++oe<Ie;)if(ue(Q[oe],oe,Q))return!0;return!1}var ZD=Yp("length");function JD(Q){return Q.split("")}function VD(Q){return Q.match(rD)||[]}function jC(Q,ue,oe){var Ie;return oe(Q,function(Je,wt,wn){if(ue(Je,wt,wn))return Ie=wt,!1}),Ie}function Gd(Q,ue,oe,Ie){for(var Je=Q.length,wt=oe+(Ie?1:-1);Ie?wt--:++wt<Je;)if(ue(Q[wt],wt,Q))return wt;return-1}function ua(Q,ue,oe){return ue===ue?lO(Q,ue,oe):Gd(Q,FC,oe)}function QD(Q,ue,oe,Ie){for(var Je=oe-1,wt=Q.length;++Je<wt;)if(Ie(Q[Je],ue))return Je;return-1}function FC(Q){return Q!==Q}function zC(Q,ue){var oe=Q==null?0:Q.length;return oe?Zp(Q,ue)/oe:se}function Yp(Q){return function(ue){return ue==null?e:ue[Q]}}function Gp(Q){return function(ue){return Q==null?e:Q[ue]}}function UC(Q,ue,oe,Ie,Je){return Je(Q,function(wt,wn,Ot){oe=Ie?(Ie=!1,wt):ue(oe,wt,wn,Ot)}),oe}function XD(Q,ue){var oe=Q.length;for(Q.sort(ue);oe--;)Q[oe]=Q[oe].value;return Q}function Zp(Q,ue){for(var oe,Ie=-1,Je=Q.length;++Ie<Je;){var wt=ue(Q[Ie]);wt!==e&&(oe=oe===e?wt:oe+wt)}return oe}function Jp(Q,ue){for(var oe=-1,Ie=Array(Q);++oe<Q;)Ie[oe]=ue(oe);return Ie}function qD(Q,ue){return Vt(ue,function(oe){return[oe,Q[oe]]})}function KC(Q){return Q&&Q.slice(0,GC(Q)+1).replace(Op,"")}function Er(Q){return function(ue){return Q(ue)}}function Vp(Q,ue){return Vt(ue,function(oe){return Q[oe]})}function Uc(Q,ue){return Q.has(ue)}function WC(Q,ue){for(var oe=-1,Ie=Q.length;++oe<Ie&&ua(ue,Q[oe],0)>-1;);return oe}function HC(Q,ue){for(var oe=Q.length;oe--&&ua(ue,Q[oe],0)>-1;);return oe}function $D(Q,ue){for(var oe=Q.length,Ie=0;oe--;)Q[oe]===ue&&++Ie;return Ie}var eO=Gp(BD),tO=Gp(jD);function nO(Q){return"\\"+zD[Q]}function rO(Q,ue){return Q==null?e:Q[ue]}function da(Q){return DD.test(Q)}function sO(Q){return OD.test(Q)}function iO(Q){for(var ue,oe=[];!(ue=Q.next()).done;)oe.push(ue.value);return oe}function Qp(Q){var ue=-1,oe=Array(Q.size);return Q.forEach(function(Ie,Je){oe[++ue]=[Je,Ie]}),oe}function YC(Q,ue){return function(oe){return Q(ue(oe))}}function eo(Q,ue){for(var oe=-1,Ie=Q.length,Je=0,wt=[];++oe<Ie;){var wn=Q[oe];(wn===ue||wn===d)&&(Q[oe]=d,wt[Je++]=oe)}return wt}function Zd(Q){var ue=-1,oe=Array(Q.size);return Q.forEach(function(Ie){oe[++ue]=Ie}),oe}function oO(Q){var ue=-1,oe=Array(Q.size);return Q.forEach(function(Ie){oe[++ue]=[Ie,Ie]}),oe}function lO(Q,ue,oe){for(var Ie=oe-1,Je=Q.length;++Ie<Je;)if(Q[Ie]===ue)return Ie;return-1}function aO(Q,ue,oe){for(var Ie=oe+1;Ie--;)if(Q[Ie]===ue)return Ie;return Ie}function fa(Q){return da(Q)?uO(Q):ZD(Q)}function us(Q){return da(Q)?dO(Q):JD(Q)}function GC(Q){for(var ue=Q.length;ue--&&$M.test(Q.charAt(ue)););return ue}var cO=Gp(FD);function uO(Q){for(var ue=Fp.lastIndex=0;Fp.test(Q);)++ue;return ue}function dO(Q){return Q.match(Fp)||[]}function fO(Q){return Q.match(MD)||[]}var hO=(function Q(ue){ue=ue==null?Bn:ha.defaults(Bn.Object(),ue,ha.pick(Bn,RD));var oe=ue.Array,Ie=ue.Date,Je=ue.Error,wt=ue.Function,wn=ue.Math,Ot=ue.Object,Xp=ue.RegExp,gO=ue.String,zr=ue.TypeError,Jd=oe.prototype,pO=wt.prototype,ga=Ot.prototype,Vd=ue["__core-js_shared__"],Qd=pO.toString,Tt=ga.hasOwnProperty,mO=0,ZC=(function(){var c=/[^.]+$/.exec(Vd&&Vd.keys&&Vd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),Xd=ga.toString,AO=Qd.call(Ot),yO=Bn._,bO=Xp("^"+Qd.call(Tt).replace(Dp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qd=IC?ue.Buffer:e,to=ue.Symbol,$d=ue.Uint8Array,JC=qd?qd.allocUnsafe:e,ef=YC(Ot.getPrototypeOf,Ot),VC=Ot.create,QC=ga.propertyIsEnumerable,tf=Jd.splice,XC=to?to.isConcatSpreadable:e,Kc=to?to.iterator:e,Vo=to?to.toStringTag:e,nf=(function(){try{var c=el(Ot,"defineProperty");return c({},"",{}),c}catch{}})(),wO=ue.clearTimeout!==Bn.clearTimeout&&ue.clearTimeout,CO=Ie&&Ie.now!==Bn.Date.now&&Ie.now,xO=ue.setTimeout!==Bn.setTimeout&&ue.setTimeout,rf=wn.ceil,sf=wn.floor,qp=Ot.getOwnPropertySymbols,vO=qd?qd.isBuffer:e,qC=ue.isFinite,SO=Jd.join,EO=YC(Ot.keys,Ot),Cn=wn.max,Yn=wn.min,kO=Ie.now,TO=ue.parseInt,$C=wn.random,_O=Jd.reverse,$p=el(ue,"DataView"),Wc=el(ue,"Map"),em=el(ue,"Promise"),pa=el(ue,"Set"),Hc=el(ue,"WeakMap"),Yc=el(Ot,"create"),of=Hc&&new Hc,ma={},NO=tl($p),IO=tl(Wc),LO=tl(em),MO=tl(pa),DO=tl(Hc),lf=to?to.prototype:e,Gc=lf?lf.valueOf:e,ex=lf?lf.toString:e;function P(c){if(en(c)&&!Qe(c)&&!(c instanceof ut)){if(c instanceof Ur)return c;if(Tt.call(c,"__wrapped__"))return tv(c)}return new Ur(c)}var Aa=(function(){function c(){}return function(h){if(!Xt(h))return{};if(VC)return VC(h);c.prototype=h;var w=new c;return c.prototype=e,w}})();function af(){}function Ur(c,h){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=e}P.templateSettings={escape:ZM,evaluate:JM,interpolate:cC,variable:"",imports:{_:P}},P.prototype=af.prototype,P.prototype.constructor=P,Ur.prototype=Aa(af.prototype),Ur.prototype.constructor=Ur;function ut(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function OO(){var c=new ut(this.__wrapped__);return c.__actions__=pr(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=pr(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=pr(this.__views__),c}function RO(){if(this.__filtered__){var c=new ut(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function PO(){var c=this.__wrapped__.value(),h=this.__dir__,w=Qe(c),T=h<0,D=w?c.length:0,B=JR(0,D,this.__views__),K=B.start,Z=B.end,X=Z-K,fe=T?Z:K-1,he=this.__iteratees__,ge=he.length,ve=0,De=Yn(X,this.__takeCount__);if(!w||!T&&D==X&&De==X)return Sx(c,this.__actions__);var We=[];e:for(;X--&&ve<De;){fe+=h;for(var et=-1,He=c[fe];++et<ge;){var at=he[et],ht=at.iteratee,_r=at.type,lr=ht(He);if(_r==V)He=lr;else if(!lr){if(_r==U)continue e;break e}}We[ve++]=He}return We}ut.prototype=Aa(af.prototype),ut.prototype.constructor=ut;function Qo(c){var h=-1,w=c==null?0:c.length;for(this.clear();++h<w;){var T=c[h];this.set(T[0],T[1])}}function BO(){this.__data__=Yc?Yc(null):{},this.size=0}function jO(c){var h=this.has(c)&&delete this.__data__[c];return this.size-=h?1:0,h}function FO(c){var h=this.__data__;if(Yc){var w=h[c];return w===a?e:w}return Tt.call(h,c)?h[c]:e}function zO(c){var h=this.__data__;return Yc?h[c]!==e:Tt.call(h,c)}function UO(c,h){var w=this.__data__;return this.size+=this.has(c)?0:1,w[c]=Yc&&h===e?a:h,this}Qo.prototype.clear=BO,Qo.prototype.delete=jO,Qo.prototype.get=FO,Qo.prototype.has=zO,Qo.prototype.set=UO;function di(c){var h=-1,w=c==null?0:c.length;for(this.clear();++h<w;){var T=c[h];this.set(T[0],T[1])}}function KO(){this.__data__=[],this.size=0}function WO(c){var h=this.__data__,w=cf(h,c);if(w<0)return!1;var T=h.length-1;return w==T?h.pop():tf.call(h,w,1),--this.size,!0}function HO(c){var h=this.__data__,w=cf(h,c);return w<0?e:h[w][1]}function YO(c){return cf(this.__data__,c)>-1}function GO(c,h){var w=this.__data__,T=cf(w,c);return T<0?(++this.size,w.push([c,h])):w[T][1]=h,this}di.prototype.clear=KO,di.prototype.delete=WO,di.prototype.get=HO,di.prototype.has=YO,di.prototype.set=GO;function fi(c){var h=-1,w=c==null?0:c.length;for(this.clear();++h<w;){var T=c[h];this.set(T[0],T[1])}}function ZO(){this.size=0,this.__data__={hash:new Qo,map:new(Wc||di),string:new Qo}}function JO(c){var h=Cf(this,c).delete(c);return this.size-=h?1:0,h}function VO(c){return Cf(this,c).get(c)}function QO(c){return Cf(this,c).has(c)}function XO(c,h){var w=Cf(this,c),T=w.size;return w.set(c,h),this.size+=w.size==T?0:1,this}fi.prototype.clear=ZO,fi.prototype.delete=JO,fi.prototype.get=VO,fi.prototype.has=QO,fi.prototype.set=XO;function Xo(c){var h=-1,w=c==null?0:c.length;for(this.__data__=new fi;++h<w;)this.add(c[h])}function qO(c){return this.__data__.set(c,a),this}function $O(c){return this.__data__.has(c)}Xo.prototype.add=Xo.prototype.push=qO,Xo.prototype.has=$O;function ds(c){var h=this.__data__=new di(c);this.size=h.size}function eR(){this.__data__=new di,this.size=0}function tR(c){var h=this.__data__,w=h.delete(c);return this.size=h.size,w}function nR(c){return this.__data__.get(c)}function rR(c){return this.__data__.has(c)}function sR(c,h){var w=this.__data__;if(w instanceof di){var T=w.__data__;if(!Wc||T.length<s-1)return T.push([c,h]),this.size=++w.size,this;w=this.__data__=new fi(T)}return w.set(c,h),this.size=w.size,this}ds.prototype.clear=eR,ds.prototype.delete=tR,ds.prototype.get=nR,ds.prototype.has=rR,ds.prototype.set=sR;function tx(c,h){var w=Qe(c),T=!w&&nl(c),D=!w&&!T&&oo(c),B=!w&&!T&&!D&&Ca(c),K=w||T||D||B,Z=K?Jp(c.length,gO):[],X=Z.length;for(var fe in c)(h||Tt.call(c,fe))&&!(K&&(fe=="length"||D&&(fe=="offset"||fe=="parent")||B&&(fe=="buffer"||fe=="byteLength"||fe=="byteOffset")||mi(fe,X)))&&Z.push(fe);return Z}function nx(c){var h=c.length;return h?c[dm(0,h-1)]:e}function iR(c,h){return xf(pr(c),qo(h,0,c.length))}function oR(c){return xf(pr(c))}function tm(c,h,w){(w!==e&&!fs(c[h],w)||w===e&&!(h in c))&&hi(c,h,w)}function Zc(c,h,w){var T=c[h];(!(Tt.call(c,h)&&fs(T,w))||w===e&&!(h in c))&&hi(c,h,w)}function cf(c,h){for(var w=c.length;w--;)if(fs(c[w][0],h))return w;return-1}function lR(c,h,w,T){return no(c,function(D,B,K){h(T,D,w(D),K)}),T}function rx(c,h){return c&&Ls(h,Tn(h),c)}function aR(c,h){return c&&Ls(h,Ar(h),c)}function hi(c,h,w){h=="__proto__"&&nf?nf(c,h,{configurable:!0,enumerable:!0,value:w,writable:!0}):c[h]=w}function nm(c,h){for(var w=-1,T=h.length,D=oe(T),B=c==null;++w<T;)D[w]=B?e:Pm(c,h[w]);return D}function qo(c,h,w){return c===c&&(w!==e&&(c=c<=w?c:w),h!==e&&(c=c>=h?c:h)),c}function Kr(c,h,w,T,D,B){var K,Z=h&f,X=h&g,fe=h&p;if(w&&(K=D?w(c,T,D,B):w(c)),K!==e)return K;if(!Xt(c))return c;var he=Qe(c);if(he){if(K=QR(c),!Z)return pr(c,K)}else{var ge=Gn(c),ve=ge==Ye||ge==ft;if(oo(c))return Tx(c,Z);if(ge==Re||ge==le||ve&&!D){if(K=X||ve?{}:Gx(c),!Z)return X?FR(c,aR(K,c)):jR(c,rx(K,c))}else{if(!Kt[ge])return D?c:{};K=XR(c,ge,Z)}}B||(B=new ds);var De=B.get(c);if(De)return De;B.set(c,K),Cv(c)?c.forEach(function(He){K.add(Kr(He,h,w,He,c,B))}):bv(c)&&c.forEach(function(He,at){K.set(at,Kr(He,h,w,at,c,B))});var We=fe?X?xm:Cm:X?Ar:Tn,et=he?e:We(c);return Fr(et||c,function(He,at){et&&(at=He,He=c[at]),Zc(K,at,Kr(He,h,w,at,c,B))}),K}function cR(c){var h=Tn(c);return function(w){return sx(w,c,h)}}function sx(c,h,w){var T=w.length;if(c==null)return!T;for(c=Ot(c);T--;){var D=w[T],B=h[D],K=c[D];if(K===e&&!(D in c)||!B(K))return!1}return!0}function ix(c,h,w){if(typeof c!="function")throw new zr(o);return eu(function(){c.apply(e,w)},h)}function Jc(c,h,w,T){var D=-1,B=Yd,K=!0,Z=c.length,X=[],fe=h.length;if(!Z)return X;w&&(h=Vt(h,Er(w))),T?(B=Kp,K=!1):h.length>=s&&(B=Uc,K=!1,h=new Xo(h));e:for(;++D<Z;){var he=c[D],ge=w==null?he:w(he);if(he=T||he!==0?he:0,K&&ge===ge){for(var ve=fe;ve--;)if(h[ve]===ge)continue e;X.push(he)}else B(h,ge,T)||X.push(he)}return X}var no=Mx(Is),ox=Mx(sm,!0);function uR(c,h){var w=!0;return no(c,function(T,D,B){return w=!!h(T,D,B),w}),w}function uf(c,h,w){for(var T=-1,D=c.length;++T<D;){var B=c[T],K=h(B);if(K!=null&&(Z===e?K===K&&!Tr(K):w(K,Z)))var Z=K,X=B}return X}function dR(c,h,w,T){var D=c.length;for(w=qe(w),w<0&&(w=-w>D?0:D+w),T=T===e||T>D?D:qe(T),T<0&&(T+=D),T=w>T?0:vv(T);w<T;)c[w++]=h;return c}function lx(c,h){var w=[];return no(c,function(T,D,B){h(T,D,B)&&w.push(T)}),w}function jn(c,h,w,T,D){var B=-1,K=c.length;for(w||(w=$R),D||(D=[]);++B<K;){var Z=c[B];h>0&&w(Z)?h>1?jn(Z,h-1,w,T,D):$i(D,Z):T||(D[D.length]=Z)}return D}var rm=Dx(),ax=Dx(!0);function Is(c,h){return c&&rm(c,h,Tn)}function sm(c,h){return c&&ax(c,h,Tn)}function df(c,h){return qi(h,function(w){return Ai(c[w])})}function $o(c,h){h=so(h,c);for(var w=0,T=h.length;c!=null&&w<T;)c=c[Ms(h[w++])];return w&&w==T?c:e}function cx(c,h,w){var T=h(c);return Qe(c)?T:$i(T,w(c))}function ir(c){return c==null?c===e?ot:At:Vo&&Vo in Ot(c)?ZR(c):oP(c)}function im(c,h){return c>h}function fR(c,h){return c!=null&&Tt.call(c,h)}function hR(c,h){return c!=null&&h in Ot(c)}function gR(c,h,w){return c>=Yn(h,w)&&c<Cn(h,w)}function om(c,h,w){for(var T=w?Kp:Yd,D=c[0].length,B=c.length,K=B,Z=oe(B),X=1/0,fe=[];K--;){var he=c[K];K&&h&&(he=Vt(he,Er(h))),X=Yn(he.length,X),Z[K]=!w&&(h||D>=120&&he.length>=120)?new Xo(K&&he):e}he=c[0];var ge=-1,ve=Z[0];e:for(;++ge<D&&fe.length<X;){var De=he[ge],We=h?h(De):De;if(De=w||De!==0?De:0,!(ve?Uc(ve,We):T(fe,We,w))){for(K=B;--K;){var et=Z[K];if(!(et?Uc(et,We):T(c[K],We,w)))continue e}ve&&ve.push(We),fe.push(De)}}return fe}function pR(c,h,w,T){return Is(c,function(D,B,K){h(T,w(D),B,K)}),T}function Vc(c,h,w){h=so(h,c),c=Qx(c,h);var T=c==null?c:c[Ms(Hr(h))];return T==null?e:Sr(T,c,w)}function ux(c){return en(c)&&ir(c)==le}function mR(c){return en(c)&&ir(c)==Ut}function AR(c){return en(c)&&ir(c)==ke}function Qc(c,h,w,T,D){return c===h?!0:c==null||h==null||!en(c)&&!en(h)?c!==c&&h!==h:yR(c,h,w,T,Qc,D)}function yR(c,h,w,T,D,B){var K=Qe(c),Z=Qe(h),X=K?ce:Gn(c),fe=Z?ce:Gn(h);X=X==le?Re:X,fe=fe==le?Re:fe;var he=X==Re,ge=fe==Re,ve=X==fe;if(ve&&oo(c)){if(!oo(h))return!1;K=!0,he=!1}if(ve&&!he)return B||(B=new ds),K||Ca(c)?Wx(c,h,w,T,D,B):YR(c,h,X,w,T,D,B);if(!(w&m)){var De=he&&Tt.call(c,"__wrapped__"),We=ge&&Tt.call(h,"__wrapped__");if(De||We){var et=De?c.value():c,He=We?h.value():h;return B||(B=new ds),D(et,He,w,T,B)}}return ve?(B||(B=new ds),GR(c,h,w,T,D,B)):!1}function bR(c){return en(c)&&Gn(c)==Ke}function lm(c,h,w,T){var D=w.length,B=D,K=!T;if(c==null)return!B;for(c=Ot(c);D--;){var Z=w[D];if(K&&Z[2]?Z[1]!==c[Z[0]]:!(Z[0]in c))return!1}for(;++D<B;){Z=w[D];var X=Z[0],fe=c[X],he=Z[1];if(K&&Z[2]){if(fe===e&&!(X in c))return!1}else{var ge=new ds;if(T)var ve=T(fe,he,X,c,h,ge);if(!(ve===e?Qc(he,fe,m|y,T,ge):ve))return!1}}return!0}function dx(c){if(!Xt(c)||tP(c))return!1;var h=Ai(c)?bO:cD;return h.test(tl(c))}function wR(c){return en(c)&&ir(c)==Jt}function CR(c){return en(c)&&Gn(c)==Dt}function xR(c){return en(c)&&_f(c.length)&&!!Yt[ir(c)]}function fx(c){return typeof c=="function"?c:c==null?yr:typeof c=="object"?Qe(c)?px(c[0],c[1]):gx(c):Ov(c)}function am(c){if(!$c(c))return EO(c);var h=[];for(var w in Ot(c))Tt.call(c,w)&&w!="constructor"&&h.push(w);return h}function vR(c){if(!Xt(c))return iP(c);var h=$c(c),w=[];for(var T in c)T=="constructor"&&(h||!Tt.call(c,T))||w.push(T);return w}function cm(c,h){return c<h}function hx(c,h){var w=-1,T=mr(c)?oe(c.length):[];return no(c,function(D,B,K){T[++w]=h(D,B,K)}),T}function gx(c){var h=Sm(c);return h.length==1&&h[0][2]?Jx(h[0][0],h[0][1]):function(w){return w===c||lm(w,c,h)}}function px(c,h){return km(c)&&Zx(h)?Jx(Ms(c),h):function(w){var T=Pm(w,c);return T===e&&T===h?Bm(w,c):Qc(h,T,m|y)}}function ff(c,h,w,T,D){c!==h&&rm(h,function(B,K){if(D||(D=new ds),Xt(B))SR(c,h,K,w,ff,T,D);else{var Z=T?T(_m(c,K),B,K+"",c,h,D):e;Z===e&&(Z=B),tm(c,K,Z)}},Ar)}function SR(c,h,w,T,D,B,K){var Z=_m(c,w),X=_m(h,w),fe=K.get(X);if(fe){tm(c,w,fe);return}var he=B?B(Z,X,w+"",c,h,K):e,ge=he===e;if(ge){var ve=Qe(X),De=!ve&&oo(X),We=!ve&&!De&&Ca(X);he=X,ve||De||We?Qe(Z)?he=Z:nn(Z)?he=pr(Z):De?(ge=!1,he=Tx(X,!0)):We?(ge=!1,he=_x(X,!0)):he=[]:tu(X)||nl(X)?(he=Z,nl(Z)?he=Sv(Z):(!Xt(Z)||Ai(Z))&&(he=Gx(X))):ge=!1}ge&&(K.set(X,he),D(he,X,T,B,K),K.delete(X)),tm(c,w,he)}function mx(c,h){var w=c.length;if(w)return h+=h<0?w:0,mi(h,w)?c[h]:e}function Ax(c,h,w){h.length?h=Vt(h,function(B){return Qe(B)?function(K){return $o(K,B.length===1?B[0]:B)}:B}):h=[yr];var T=-1;h=Vt(h,Er(ze()));var D=hx(c,function(B,K,Z){var X=Vt(h,function(fe){return fe(B)});return{criteria:X,index:++T,value:B}});return XD(D,function(B,K){return BR(B,K,w)})}function ER(c,h){return yx(c,h,function(w,T){return Bm(c,T)})}function yx(c,h,w){for(var T=-1,D=h.length,B={};++T<D;){var K=h[T],Z=$o(c,K);w(Z,K)&&Xc(B,so(K,c),Z)}return B}function kR(c){return function(h){return $o(h,c)}}function um(c,h,w,T){var D=T?QD:ua,B=-1,K=h.length,Z=c;for(c===h&&(h=pr(h)),w&&(Z=Vt(c,Er(w)));++B<K;)for(var X=0,fe=h[B],he=w?w(fe):fe;(X=D(Z,he,X,T))>-1;)Z!==c&&tf.call(Z,X,1),tf.call(c,X,1);return c}function bx(c,h){for(var w=c?h.length:0,T=w-1;w--;){var D=h[w];if(w==T||D!==B){var B=D;mi(D)?tf.call(c,D,1):gm(c,D)}}return c}function dm(c,h){return c+sf($C()*(h-c+1))}function TR(c,h,w,T){for(var D=-1,B=Cn(rf((h-c)/(w||1)),0),K=oe(B);B--;)K[T?B:++D]=c,c+=w;return K}function fm(c,h){var w="";if(!c||h<1||h>re)return w;do h%2&&(w+=c),h=sf(h/2),h&&(c+=c);while(h);return w}function rt(c,h){return Nm(Vx(c,h,yr),c+"")}function _R(c){return nx(xa(c))}function NR(c,h){var w=xa(c);return xf(w,qo(h,0,w.length))}function Xc(c,h,w,T){if(!Xt(c))return c;h=so(h,c);for(var D=-1,B=h.length,K=B-1,Z=c;Z!=null&&++D<B;){var X=Ms(h[D]),fe=w;if(X==="__proto__"||X==="constructor"||X==="prototype")return c;if(D!=K){var he=Z[X];fe=T?T(he,X,Z):e,fe===e&&(fe=Xt(he)?he:mi(h[D+1])?[]:{})}Zc(Z,X,fe),Z=Z[X]}return c}var wx=of?function(c,h){return of.set(c,h),c}:yr,IR=nf?function(c,h){return nf(c,"toString",{configurable:!0,enumerable:!1,value:Fm(h),writable:!0})}:yr;function LR(c){return xf(xa(c))}function Wr(c,h,w){var T=-1,D=c.length;h<0&&(h=-h>D?0:D+h),w=w>D?D:w,w<0&&(w+=D),D=h>w?0:w-h>>>0,h>>>=0;for(var B=oe(D);++T<D;)B[T]=c[T+h];return B}function MR(c,h){var w;return no(c,function(T,D,B){return w=h(T,D,B),!w}),!!w}function hf(c,h,w){var T=0,D=c==null?T:c.length;if(typeof h=="number"&&h===h&&D<=J){for(;T<D;){var B=T+D>>>1,K=c[B];K!==null&&!Tr(K)&&(w?K<=h:K<h)?T=B+1:D=B}return D}return hm(c,h,yr,w)}function hm(c,h,w,T){var D=0,B=c==null?0:c.length;if(B===0)return 0;h=w(h);for(var K=h!==h,Z=h===null,X=Tr(h),fe=h===e;D<B;){var he=sf((D+B)/2),ge=w(c[he]),ve=ge!==e,De=ge===null,We=ge===ge,et=Tr(ge);if(K)var He=T||We;else fe?He=We&&(T||ve):Z?He=We&&ve&&(T||!De):X?He=We&&ve&&!De&&(T||!et):De||et?He=!1:He=T?ge<=h:ge<h;He?D=he+1:B=he}return Yn(B,W)}function Cx(c,h){for(var w=-1,T=c.length,D=0,B=[];++w<T;){var K=c[w],Z=h?h(K):K;if(!w||!fs(Z,X)){var X=Z;B[D++]=K===0?0:K}}return B}function xx(c){return typeof c=="number"?c:Tr(c)?se:+c}function kr(c){if(typeof c=="string")return c;if(Qe(c))return Vt(c,kr)+"";if(Tr(c))return ex?ex.call(c):"";var h=c+"";return h=="0"&&1/c==-ae?"-0":h}function ro(c,h,w){var T=-1,D=Yd,B=c.length,K=!0,Z=[],X=Z;if(w)K=!1,D=Kp;else if(B>=s){var fe=h?null:WR(c);if(fe)return Zd(fe);K=!1,D=Uc,X=new Xo}else X=h?[]:Z;e:for(;++T<B;){var he=c[T],ge=h?h(he):he;if(he=w||he!==0?he:0,K&&ge===ge){for(var ve=X.length;ve--;)if(X[ve]===ge)continue e;h&&X.push(ge),Z.push(he)}else D(X,ge,w)||(X!==Z&&X.push(ge),Z.push(he))}return Z}function gm(c,h){return h=so(h,c),c=Qx(c,h),c==null||delete c[Ms(Hr(h))]}function vx(c,h,w,T){return Xc(c,h,w($o(c,h)),T)}function gf(c,h,w,T){for(var D=c.length,B=T?D:-1;(T?B--:++B<D)&&h(c[B],B,c););return w?Wr(c,T?0:B,T?B+1:D):Wr(c,T?B+1:0,T?D:B)}function Sx(c,h){var w=c;return w instanceof ut&&(w=w.value()),Wp(h,function(T,D){return D.func.apply(D.thisArg,$i([T],D.args))},w)}function pm(c,h,w){var T=c.length;if(T<2)return T?ro(c[0]):[];for(var D=-1,B=oe(T);++D<T;)for(var K=c[D],Z=-1;++Z<T;)Z!=D&&(B[D]=Jc(B[D]||K,c[Z],h,w));return ro(jn(B,1),h,w)}function Ex(c,h,w){for(var T=-1,D=c.length,B=h.length,K={};++T<D;){var Z=T<B?h[T]:e;w(K,c[T],Z)}return K}function mm(c){return nn(c)?c:[]}function Am(c){return typeof c=="function"?c:yr}function so(c,h){return Qe(c)?c:km(c,h)?[c]:ev(xt(c))}var DR=rt;function io(c,h,w){var T=c.length;return w=w===e?T:w,!h&&w>=T?c:Wr(c,h,w)}var kx=wO||function(c){return Bn.clearTimeout(c)};function Tx(c,h){if(h)return c.slice();var w=c.length,T=JC?JC(w):new c.constructor(w);return c.copy(T),T}function ym(c){var h=new c.constructor(c.byteLength);return new $d(h).set(new $d(c)),h}function OR(c,h){var w=h?ym(c.buffer):c.buffer;return new c.constructor(w,c.byteOffset,c.byteLength)}function RR(c){var h=new c.constructor(c.source,uC.exec(c));return h.lastIndex=c.lastIndex,h}function PR(c){return Gc?Ot(Gc.call(c)):{}}function _x(c,h){var w=h?ym(c.buffer):c.buffer;return new c.constructor(w,c.byteOffset,c.length)}function Nx(c,h){if(c!==h){var w=c!==e,T=c===null,D=c===c,B=Tr(c),K=h!==e,Z=h===null,X=h===h,fe=Tr(h);if(!Z&&!fe&&!B&&c>h||B&&K&&X&&!Z&&!fe||T&&K&&X||!w&&X||!D)return 1;if(!T&&!B&&!fe&&c<h||fe&&w&&D&&!T&&!B||Z&&w&&D||!K&&D||!X)return-1}return 0}function BR(c,h,w){for(var T=-1,D=c.criteria,B=h.criteria,K=D.length,Z=w.length;++T<K;){var X=Nx(D[T],B[T]);if(X){if(T>=Z)return X;var fe=w[T];return X*(fe=="desc"?-1:1)}}return c.index-h.index}function Ix(c,h,w,T){for(var D=-1,B=c.length,K=w.length,Z=-1,X=h.length,fe=Cn(B-K,0),he=oe(X+fe),ge=!T;++Z<X;)he[Z]=h[Z];for(;++D<K;)(ge||D<B)&&(he[w[D]]=c[D]);for(;fe--;)he[Z++]=c[D++];return he}function Lx(c,h,w,T){for(var D=-1,B=c.length,K=-1,Z=w.length,X=-1,fe=h.length,he=Cn(B-Z,0),ge=oe(he+fe),ve=!T;++D<he;)ge[D]=c[D];for(var De=D;++X<fe;)ge[De+X]=h[X];for(;++K<Z;)(ve||D<B)&&(ge[De+w[K]]=c[D++]);return ge}function pr(c,h){var w=-1,T=c.length;for(h||(h=oe(T));++w<T;)h[w]=c[w];return h}function Ls(c,h,w,T){var D=!w;w||(w={});for(var B=-1,K=h.length;++B<K;){var Z=h[B],X=T?T(w[Z],c[Z],Z,w,c):e;X===e&&(X=c[Z]),D?hi(w,Z,X):Zc(w,Z,X)}return w}function jR(c,h){return Ls(c,Em(c),h)}function FR(c,h){return Ls(c,Hx(c),h)}function pf(c,h){return function(w,T){var D=Qe(w)?HD:lR,B=h?h():{};return D(w,c,ze(T,2),B)}}function ya(c){return rt(function(h,w){var T=-1,D=w.length,B=D>1?w[D-1]:e,K=D>2?w[2]:e;for(B=c.length>3&&typeof B=="function"?(D--,B):e,K&&or(w[0],w[1],K)&&(B=D<3?e:B,D=1),h=Ot(h);++T<D;){var Z=w[T];Z&&c(h,Z,T,B)}return h})}function Mx(c,h){return function(w,T){if(w==null)return w;if(!mr(w))return c(w,T);for(var D=w.length,B=h?D:-1,K=Ot(w);(h?B--:++B<D)&&T(K[B],B,K)!==!1;);return w}}function Dx(c){return function(h,w,T){for(var D=-1,B=Ot(h),K=T(h),Z=K.length;Z--;){var X=K[c?Z:++D];if(w(B[X],X,B)===!1)break}return h}}function zR(c,h,w){var T=h&b,D=qc(c);function B(){var K=this&&this!==Bn&&this instanceof B?D:c;return K.apply(T?w:this,arguments)}return B}function Ox(c){return function(h){h=xt(h);var w=da(h)?us(h):e,T=w?w[0]:h.charAt(0),D=w?io(w,1).join(""):h.slice(1);return T[c]()+D}}function ba(c){return function(h){return Wp(Mv(Lv(h).replace(ID,"")),c,"")}}function qc(c){return function(){var h=arguments;switch(h.length){case 0:return new c;case 1:return new c(h[0]);case 2:return new c(h[0],h[1]);case 3:return new c(h[0],h[1],h[2]);case 4:return new c(h[0],h[1],h[2],h[3]);case 5:return new c(h[0],h[1],h[2],h[3],h[4]);case 6:return new c(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new c(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var w=Aa(c.prototype),T=c.apply(w,h);return Xt(T)?T:w}}function UR(c,h,w){var T=qc(c);function D(){for(var B=arguments.length,K=oe(B),Z=B,X=wa(D);Z--;)K[Z]=arguments[Z];var fe=B<3&&K[0]!==X&&K[B-1]!==X?[]:eo(K,X);if(B-=fe.length,B<w)return Fx(c,h,mf,D.placeholder,e,K,fe,e,e,w-B);var he=this&&this!==Bn&&this instanceof D?T:c;return Sr(he,this,K)}return D}function Rx(c){return function(h,w,T){var D=Ot(h);if(!mr(h)){var B=ze(w,3);h=Tn(h),w=function(Z){return B(D[Z],Z,D)}}var K=c(h,w,T);return K>-1?D[B?h[K]:K]:e}}function Px(c){return pi(function(h){var w=h.length,T=w,D=Ur.prototype.thru;for(c&&h.reverse();T--;){var B=h[T];if(typeof B!="function")throw new zr(o);if(D&&!K&&wf(B)=="wrapper")var K=new Ur([],!0)}for(T=K?T:w;++T<w;){B=h[T];var Z=wf(B),X=Z=="wrapper"?vm(B):e;X&&Tm(X[0])&&X[1]==(_|v|N|I)&&!X[4].length&&X[9]==1?K=K[wf(X[0])].apply(K,X[3]):K=B.length==1&&Tm(B)?K[Z]():K.thru(B)}return function(){var fe=arguments,he=fe[0];if(K&&fe.length==1&&Qe(he))return K.plant(he).value();for(var ge=0,ve=w?h[ge].apply(this,fe):he;++ge<w;)ve=h[ge].call(this,ve);return ve}})}function mf(c,h,w,T,D,B,K,Z,X,fe){var he=h&_,ge=h&b,ve=h&x,De=h&(v|E),We=h&L,et=ve?e:qc(c);function He(){for(var at=arguments.length,ht=oe(at),_r=at;_r--;)ht[_r]=arguments[_r];if(De)var lr=wa(He),Nr=$D(ht,lr);if(T&&(ht=Ix(ht,T,D,De)),B&&(ht=Lx(ht,B,K,De)),at-=Nr,De&&at<fe){var rn=eo(ht,lr);return Fx(c,h,mf,He.placeholder,w,ht,rn,Z,X,fe-at)}var hs=ge?w:this,bi=ve?hs[c]:c;return at=ht.length,Z?ht=lP(ht,Z):We&&at>1&&ht.reverse(),he&&X<at&&(ht.length=X),this&&this!==Bn&&this instanceof He&&(bi=et||qc(bi)),bi.apply(hs,ht)}return He}function Bx(c,h){return function(w,T){return pR(w,c,h(T),{})}}function Af(c,h){return function(w,T){var D;if(w===e&&T===e)return h;if(w!==e&&(D=w),T!==e){if(D===e)return T;typeof w=="string"||typeof T=="string"?(w=kr(w),T=kr(T)):(w=xx(w),T=xx(T)),D=c(w,T)}return D}}function bm(c){return pi(function(h){return h=Vt(h,Er(ze())),rt(function(w){var T=this;return c(h,function(D){return Sr(D,T,w)})})})}function yf(c,h){h=h===e?" ":kr(h);var w=h.length;if(w<2)return w?fm(h,c):h;var T=fm(h,rf(c/fa(h)));return da(h)?io(us(T),0,c).join(""):T.slice(0,c)}function KR(c,h,w,T){var D=h&b,B=qc(c);function K(){for(var Z=-1,X=arguments.length,fe=-1,he=T.length,ge=oe(he+X),ve=this&&this!==Bn&&this instanceof K?B:c;++fe<he;)ge[fe]=T[fe];for(;X--;)ge[fe++]=arguments[++Z];return Sr(ve,D?w:this,ge)}return K}function jx(c){return function(h,w,T){return T&&typeof T!="number"&&or(h,w,T)&&(w=T=e),h=yi(h),w===e?(w=h,h=0):w=yi(w),T=T===e?h<w?1:-1:yi(T),TR(h,w,T,c)}}function bf(c){return function(h,w){return typeof h=="string"&&typeof w=="string"||(h=Yr(h),w=Yr(w)),c(h,w)}}function Fx(c,h,w,T,D,B,K,Z,X,fe){var he=h&v,ge=he?K:e,ve=he?e:K,De=he?B:e,We=he?e:B;h|=he?N:S,h&=~(he?S:N),h&C||(h&=-4);var et=[c,h,D,De,ge,We,ve,Z,X,fe],He=w.apply(e,et);return Tm(c)&&Xx(He,et),He.placeholder=T,qx(He,c,h)}function wm(c){var h=wn[c];return function(w,T){if(w=Yr(w),T=T==null?0:Yn(qe(T),292),T&&qC(w)){var D=(xt(w)+"e").split("e"),B=h(D[0]+"e"+(+D[1]+T));return D=(xt(B)+"e").split("e"),+(D[0]+"e"+(+D[1]-T))}return h(w)}}var WR=pa&&1/Zd(new pa([,-0]))[1]==ae?function(c){return new pa(c)}:Km;function zx(c){return function(h){var w=Gn(h);return w==Ke?Qp(h):w==Dt?oO(h):qD(h,c(h))}}function gi(c,h,w,T,D,B,K,Z){var X=h&x;if(!X&&typeof c!="function")throw new zr(o);var fe=T?T.length:0;if(fe||(h&=-97,T=D=e),K=K===e?K:Cn(qe(K),0),Z=Z===e?Z:qe(Z),fe-=D?D.length:0,h&S){var he=T,ge=D;T=D=e}var ve=X?e:vm(c),De=[c,h,w,T,D,he,ge,B,K,Z];if(ve&&sP(De,ve),c=De[0],h=De[1],w=De[2],T=De[3],D=De[4],Z=De[9]=De[9]===e?X?0:c.length:Cn(De[9]-fe,0),!Z&&h&(v|E)&&(h&=-25),!h||h==b)var We=zR(c,h,w);else h==v||h==E?We=UR(c,h,Z):(h==N||h==(b|N))&&!D.length?We=KR(c,h,w,T):We=mf.apply(e,De);var et=ve?wx:Xx;return qx(et(We,De),c,h)}function Ux(c,h,w,T){return c===e||fs(c,ga[w])&&!Tt.call(T,w)?h:c}function Kx(c,h,w,T,D,B){return Xt(c)&&Xt(h)&&(B.set(h,c),ff(c,h,e,Kx,B),B.delete(h)),c}function HR(c){return tu(c)?e:c}function Wx(c,h,w,T,D,B){var K=w&m,Z=c.length,X=h.length;if(Z!=X&&!(K&&X>Z))return!1;var fe=B.get(c),he=B.get(h);if(fe&&he)return fe==h&&he==c;var ge=-1,ve=!0,De=w&y?new Xo:e;for(B.set(c,h),B.set(h,c);++ge<Z;){var We=c[ge],et=h[ge];if(T)var He=K?T(et,We,ge,h,c,B):T(We,et,ge,c,h,B);if(He!==e){if(He)continue;ve=!1;break}if(De){if(!Hp(h,function(at,ht){if(!Uc(De,ht)&&(We===at||D(We,at,w,T,B)))return De.push(ht)})){ve=!1;break}}else if(!(We===et||D(We,et,w,T,B))){ve=!1;break}}return B.delete(c),B.delete(h),ve}function YR(c,h,w,T,D,B,K){switch(w){case ct:if(c.byteLength!=h.byteLength||c.byteOffset!=h.byteOffset)return!1;c=c.buffer,h=h.buffer;case Ut:return!(c.byteLength!=h.byteLength||!B(new $d(c),new $d(h)));case Ae:case ke:case mt:return fs(+c,+h);case Ee:return c.name==h.name&&c.message==h.message;case Jt:case hr:return c==h+"";case Ke:var Z=Qp;case Dt:var X=T&m;if(Z||(Z=Zd),c.size!=h.size&&!X)return!1;var fe=K.get(c);if(fe)return fe==h;T|=y,K.set(c,h);var he=Wx(Z(c),Z(h),T,D,B,K);return K.delete(c),he;case Be:if(Gc)return Gc.call(c)==Gc.call(h)}return!1}function GR(c,h,w,T,D,B){var K=w&m,Z=Cm(c),X=Z.length,fe=Cm(h),he=fe.length;if(X!=he&&!K)return!1;for(var ge=X;ge--;){var ve=Z[ge];if(!(K?ve in h:Tt.call(h,ve)))return!1}var De=B.get(c),We=B.get(h);if(De&&We)return De==h&&We==c;var et=!0;B.set(c,h),B.set(h,c);for(var He=K;++ge<X;){ve=Z[ge];var at=c[ve],ht=h[ve];if(T)var _r=K?T(ht,at,ve,h,c,B):T(at,ht,ve,c,h,B);if(!(_r===e?at===ht||D(at,ht,w,T,B):_r)){et=!1;break}He||(He=ve=="constructor")}if(et&&!He){var lr=c.constructor,Nr=h.constructor;lr!=Nr&&"constructor"in c&&"constructor"in h&&!(typeof lr=="function"&&lr instanceof lr&&typeof Nr=="function"&&Nr instanceof Nr)&&(et=!1)}return B.delete(c),B.delete(h),et}function pi(c){return Nm(Vx(c,e,sv),c+"")}function Cm(c){return cx(c,Tn,Em)}function xm(c){return cx(c,Ar,Hx)}var vm=of?function(c){return of.get(c)}:Km;function wf(c){for(var h=c.name+"",w=ma[h],T=Tt.call(ma,h)?w.length:0;T--;){var D=w[T],B=D.func;if(B==null||B==c)return D.name}return h}function wa(c){var h=Tt.call(P,"placeholder")?P:c;return h.placeholder}function ze(){var c=P.iteratee||zm;return c=c===zm?fx:c,arguments.length?c(arguments[0],arguments[1]):c}function Cf(c,h){var w=c.__data__;return eP(h)?w[typeof h=="string"?"string":"hash"]:w.map}function Sm(c){for(var h=Tn(c),w=h.length;w--;){var T=h[w],D=c[T];h[w]=[T,D,Zx(D)]}return h}function el(c,h){var w=rO(c,h);return dx(w)?w:e}function ZR(c){var h=Tt.call(c,Vo),w=c[Vo];try{c[Vo]=e;var T=!0}catch{}var D=Xd.call(c);return T&&(h?c[Vo]=w:delete c[Vo]),D}var Em=qp?function(c){return c==null?[]:(c=Ot(c),qi(qp(c),function(h){return QC.call(c,h)}))}:Wm,Hx=qp?function(c){for(var h=[];c;)$i(h,Em(c)),c=ef(c);return h}:Wm,Gn=ir;($p&&Gn(new $p(new ArrayBuffer(1)))!=ct||Wc&&Gn(new Wc)!=Ke||em&&Gn(em.resolve())!=Me||pa&&Gn(new pa)!=Dt||Hc&&Gn(new Hc)!=bt)&&(Gn=function(c){var h=ir(c),w=h==Re?c.constructor:e,T=w?tl(w):"";if(T)switch(T){case NO:return ct;case IO:return Ke;case LO:return Me;case MO:return Dt;case DO:return bt}return h});function JR(c,h,w){for(var T=-1,D=w.length;++T<D;){var B=w[T],K=B.size;switch(B.type){case"drop":c+=K;break;case"dropRight":h-=K;break;case"take":h=Yn(h,c+K);break;case"takeRight":c=Cn(c,h-K);break}}return{start:c,end:h}}function VR(c){var h=c.match(tD);return h?h[1].split(nD):[]}function Yx(c,h,w){h=so(h,c);for(var T=-1,D=h.length,B=!1;++T<D;){var K=Ms(h[T]);if(!(B=c!=null&&w(c,K)))break;c=c[K]}return B||++T!=D?B:(D=c==null?0:c.length,!!D&&_f(D)&&mi(K,D)&&(Qe(c)||nl(c)))}function QR(c){var h=c.length,w=new c.constructor(h);return h&&typeof c[0]=="string"&&Tt.call(c,"index")&&(w.index=c.index,w.input=c.input),w}function Gx(c){return typeof c.constructor=="function"&&!$c(c)?Aa(ef(c)):{}}function XR(c,h,w){var T=c.constructor;switch(h){case Ut:return ym(c);case Ae:case ke:return new T(+c);case ct:return OR(c,w);case nr:case Ht:case rr:case sr:case ui:case Zo:case zc:case gr:case Xi:return _x(c,w);case Ke:return new T;case mt:case hr:return new T(c);case Jt:return RR(c);case Dt:return new T;case Be:return PR(c)}}function qR(c,h){var w=h.length;if(!w)return c;var T=w-1;return h[T]=(w>1?"& ":"")+h[T],h=h.join(w>2?", ":" "),c.replace(eD,`{
80
+ /* [wrapped with `+h+`] */
81
+ `)}function $R(c){return Qe(c)||nl(c)||!!(XC&&c&&c[XC])}function mi(c,h){var w=typeof c;return h=h??re,!!h&&(w=="number"||w!="symbol"&&dD.test(c))&&c>-1&&c%1==0&&c<h}function or(c,h,w){if(!Xt(w))return!1;var T=typeof h;return(T=="number"?mr(w)&&mi(h,w.length):T=="string"&&h in w)?fs(w[h],c):!1}function km(c,h){if(Qe(c))return!1;var w=typeof c;return w=="number"||w=="symbol"||w=="boolean"||c==null||Tr(c)?!0:QM.test(c)||!VM.test(c)||h!=null&&c in Ot(h)}function eP(c){var h=typeof c;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?c!=="__proto__":c===null}function Tm(c){var h=wf(c),w=P[h];if(typeof w!="function"||!(h in ut.prototype))return!1;if(c===w)return!0;var T=vm(w);return!!T&&c===T[0]}function tP(c){return!!ZC&&ZC in c}var nP=Vd?Ai:Hm;function $c(c){var h=c&&c.constructor,w=typeof h=="function"&&h.prototype||ga;return c===w}function Zx(c){return c===c&&!Xt(c)}function Jx(c,h){return function(w){return w==null?!1:w[c]===h&&(h!==e||c in Ot(w))}}function rP(c){var h=kf(c,function(T){return w.size===u&&w.clear(),T}),w=h.cache;return h}function sP(c,h){var w=c[1],T=h[1],D=w|T,B=D<(b|x|_),K=T==_&&w==v||T==_&&w==I&&c[7].length<=h[8]||T==(_|I)&&h[7].length<=h[8]&&w==v;if(!(B||K))return c;T&b&&(c[2]=h[2],D|=w&b?0:C);var Z=h[3];if(Z){var X=c[3];c[3]=X?Ix(X,Z,h[4]):Z,c[4]=X?eo(c[3],d):h[4]}return Z=h[5],Z&&(X=c[5],c[5]=X?Lx(X,Z,h[6]):Z,c[6]=X?eo(c[5],d):h[6]),Z=h[7],Z&&(c[7]=Z),T&_&&(c[8]=c[8]==null?h[8]:Yn(c[8],h[8])),c[9]==null&&(c[9]=h[9]),c[0]=h[0],c[1]=D,c}function iP(c){var h=[];if(c!=null)for(var w in Ot(c))h.push(w);return h}function oP(c){return Xd.call(c)}function Vx(c,h,w){return h=Cn(h===e?c.length-1:h,0),function(){for(var T=arguments,D=-1,B=Cn(T.length-h,0),K=oe(B);++D<B;)K[D]=T[h+D];D=-1;for(var Z=oe(h+1);++D<h;)Z[D]=T[D];return Z[h]=w(K),Sr(c,this,Z)}}function Qx(c,h){return h.length<2?c:$o(c,Wr(h,0,-1))}function lP(c,h){for(var w=c.length,T=Yn(h.length,w),D=pr(c);T--;){var B=h[T];c[T]=mi(B,w)?D[B]:e}return c}function _m(c,h){if(!(h==="constructor"&&typeof c[h]=="function")&&h!="__proto__")return c[h]}var Xx=$x(wx),eu=xO||function(c,h){return Bn.setTimeout(c,h)},Nm=$x(IR);function qx(c,h,w){var T=h+"";return Nm(c,qR(T,aP(VR(T),w)))}function $x(c){var h=0,w=0;return function(){var T=kO(),D=j-(T-w);if(w=T,D>0){if(++h>=F)return arguments[0]}else h=0;return c.apply(e,arguments)}}function xf(c,h){var w=-1,T=c.length,D=T-1;for(h=h===e?T:h;++w<h;){var B=dm(w,D),K=c[B];c[B]=c[w],c[w]=K}return c.length=h,c}var ev=rP(function(c){var h=[];return c.charCodeAt(0)===46&&h.push(""),c.replace(XM,function(w,T,D,B){h.push(D?B.replace(iD,"$1"):T||w)}),h});function Ms(c){if(typeof c=="string"||Tr(c))return c;var h=c+"";return h=="0"&&1/c==-ae?"-0":h}function tl(c){if(c!=null){try{return Qd.call(c)}catch{}try{return c+""}catch{}}return""}function aP(c,h){return Fr(te,function(w){var T="_."+w[0];h&w[1]&&!Yd(c,T)&&c.push(T)}),c.sort()}function tv(c){if(c instanceof ut)return c.clone();var h=new Ur(c.__wrapped__,c.__chain__);return h.__actions__=pr(c.__actions__),h.__index__=c.__index__,h.__values__=c.__values__,h}function cP(c,h,w){(w?or(c,h,w):h===e)?h=1:h=Cn(qe(h),0);var T=c==null?0:c.length;if(!T||h<1)return[];for(var D=0,B=0,K=oe(rf(T/h));D<T;)K[B++]=Wr(c,D,D+=h);return K}function uP(c){for(var h=-1,w=c==null?0:c.length,T=0,D=[];++h<w;){var B=c[h];B&&(D[T++]=B)}return D}function dP(){var c=arguments.length;if(!c)return[];for(var h=oe(c-1),w=arguments[0],T=c;T--;)h[T-1]=arguments[T];return $i(Qe(w)?pr(w):[w],jn(h,1))}var fP=rt(function(c,h){return nn(c)?Jc(c,jn(h,1,nn,!0)):[]}),hP=rt(function(c,h){var w=Hr(h);return nn(w)&&(w=e),nn(c)?Jc(c,jn(h,1,nn,!0),ze(w,2)):[]}),gP=rt(function(c,h){var w=Hr(h);return nn(w)&&(w=e),nn(c)?Jc(c,jn(h,1,nn,!0),e,w):[]});function pP(c,h,w){var T=c==null?0:c.length;return T?(h=w||h===e?1:qe(h),Wr(c,h<0?0:h,T)):[]}function mP(c,h,w){var T=c==null?0:c.length;return T?(h=w||h===e?1:qe(h),h=T-h,Wr(c,0,h<0?0:h)):[]}function AP(c,h){return c&&c.length?gf(c,ze(h,3),!0,!0):[]}function yP(c,h){return c&&c.length?gf(c,ze(h,3),!0):[]}function bP(c,h,w,T){var D=c==null?0:c.length;return D?(w&&typeof w!="number"&&or(c,h,w)&&(w=0,T=D),dR(c,h,w,T)):[]}function nv(c,h,w){var T=c==null?0:c.length;if(!T)return-1;var D=w==null?0:qe(w);return D<0&&(D=Cn(T+D,0)),Gd(c,ze(h,3),D)}function rv(c,h,w){var T=c==null?0:c.length;if(!T)return-1;var D=T-1;return w!==e&&(D=qe(w),D=w<0?Cn(T+D,0):Yn(D,T-1)),Gd(c,ze(h,3),D,!0)}function sv(c){var h=c==null?0:c.length;return h?jn(c,1):[]}function wP(c){var h=c==null?0:c.length;return h?jn(c,ae):[]}function CP(c,h){var w=c==null?0:c.length;return w?(h=h===e?1:qe(h),jn(c,h)):[]}function xP(c){for(var h=-1,w=c==null?0:c.length,T={};++h<w;){var D=c[h];T[D[0]]=D[1]}return T}function iv(c){return c&&c.length?c[0]:e}function vP(c,h,w){var T=c==null?0:c.length;if(!T)return-1;var D=w==null?0:qe(w);return D<0&&(D=Cn(T+D,0)),ua(c,h,D)}function SP(c){var h=c==null?0:c.length;return h?Wr(c,0,-1):[]}var EP=rt(function(c){var h=Vt(c,mm);return h.length&&h[0]===c[0]?om(h):[]}),kP=rt(function(c){var h=Hr(c),w=Vt(c,mm);return h===Hr(w)?h=e:w.pop(),w.length&&w[0]===c[0]?om(w,ze(h,2)):[]}),TP=rt(function(c){var h=Hr(c),w=Vt(c,mm);return h=typeof h=="function"?h:e,h&&w.pop(),w.length&&w[0]===c[0]?om(w,e,h):[]});function _P(c,h){return c==null?"":SO.call(c,h)}function Hr(c){var h=c==null?0:c.length;return h?c[h-1]:e}function NP(c,h,w){var T=c==null?0:c.length;if(!T)return-1;var D=T;return w!==e&&(D=qe(w),D=D<0?Cn(T+D,0):Yn(D,T-1)),h===h?aO(c,h,D):Gd(c,FC,D,!0)}function IP(c,h){return c&&c.length?mx(c,qe(h)):e}var LP=rt(ov);function ov(c,h){return c&&c.length&&h&&h.length?um(c,h):c}function MP(c,h,w){return c&&c.length&&h&&h.length?um(c,h,ze(w,2)):c}function DP(c,h,w){return c&&c.length&&h&&h.length?um(c,h,e,w):c}var OP=pi(function(c,h){var w=c==null?0:c.length,T=nm(c,h);return bx(c,Vt(h,function(D){return mi(D,w)?+D:D}).sort(Nx)),T});function RP(c,h){var w=[];if(!(c&&c.length))return w;var T=-1,D=[],B=c.length;for(h=ze(h,3);++T<B;){var K=c[T];h(K,T,c)&&(w.push(K),D.push(T))}return bx(c,D),w}function Im(c){return c==null?c:_O.call(c)}function PP(c,h,w){var T=c==null?0:c.length;return T?(w&&typeof w!="number"&&or(c,h,w)?(h=0,w=T):(h=h==null?0:qe(h),w=w===e?T:qe(w)),Wr(c,h,w)):[]}function BP(c,h){return hf(c,h)}function jP(c,h,w){return hm(c,h,ze(w,2))}function FP(c,h){var w=c==null?0:c.length;if(w){var T=hf(c,h);if(T<w&&fs(c[T],h))return T}return-1}function zP(c,h){return hf(c,h,!0)}function UP(c,h,w){return hm(c,h,ze(w,2),!0)}function KP(c,h){var w=c==null?0:c.length;if(w){var T=hf(c,h,!0)-1;if(fs(c[T],h))return T}return-1}function WP(c){return c&&c.length?Cx(c):[]}function HP(c,h){return c&&c.length?Cx(c,ze(h,2)):[]}function YP(c){var h=c==null?0:c.length;return h?Wr(c,1,h):[]}function GP(c,h,w){return c&&c.length?(h=w||h===e?1:qe(h),Wr(c,0,h<0?0:h)):[]}function ZP(c,h,w){var T=c==null?0:c.length;return T?(h=w||h===e?1:qe(h),h=T-h,Wr(c,h<0?0:h,T)):[]}function JP(c,h){return c&&c.length?gf(c,ze(h,3),!1,!0):[]}function VP(c,h){return c&&c.length?gf(c,ze(h,3)):[]}var QP=rt(function(c){return ro(jn(c,1,nn,!0))}),XP=rt(function(c){var h=Hr(c);return nn(h)&&(h=e),ro(jn(c,1,nn,!0),ze(h,2))}),qP=rt(function(c){var h=Hr(c);return h=typeof h=="function"?h:e,ro(jn(c,1,nn,!0),e,h)});function $P(c){return c&&c.length?ro(c):[]}function eB(c,h){return c&&c.length?ro(c,ze(h,2)):[]}function tB(c,h){return h=typeof h=="function"?h:e,c&&c.length?ro(c,e,h):[]}function Lm(c){if(!(c&&c.length))return[];var h=0;return c=qi(c,function(w){if(nn(w))return h=Cn(w.length,h),!0}),Jp(h,function(w){return Vt(c,Yp(w))})}function lv(c,h){if(!(c&&c.length))return[];var w=Lm(c);return h==null?w:Vt(w,function(T){return Sr(h,e,T)})}var nB=rt(function(c,h){return nn(c)?Jc(c,h):[]}),rB=rt(function(c){return pm(qi(c,nn))}),sB=rt(function(c){var h=Hr(c);return nn(h)&&(h=e),pm(qi(c,nn),ze(h,2))}),iB=rt(function(c){var h=Hr(c);return h=typeof h=="function"?h:e,pm(qi(c,nn),e,h)}),oB=rt(Lm);function lB(c,h){return Ex(c||[],h||[],Zc)}function aB(c,h){return Ex(c||[],h||[],Xc)}var cB=rt(function(c){var h=c.length,w=h>1?c[h-1]:e;return w=typeof w=="function"?(c.pop(),w):e,lv(c,w)});function av(c){var h=P(c);return h.__chain__=!0,h}function uB(c,h){return h(c),c}function vf(c,h){return h(c)}var dB=pi(function(c){var h=c.length,w=h?c[0]:0,T=this.__wrapped__,D=function(B){return nm(B,c)};return h>1||this.__actions__.length||!(T instanceof ut)||!mi(w)?this.thru(D):(T=T.slice(w,+w+(h?1:0)),T.__actions__.push({func:vf,args:[D],thisArg:e}),new Ur(T,this.__chain__).thru(function(B){return h&&!B.length&&B.push(e),B}))});function fB(){return av(this)}function hB(){return new Ur(this.value(),this.__chain__)}function gB(){this.__values__===e&&(this.__values__=xv(this.value()));var c=this.__index__>=this.__values__.length,h=c?e:this.__values__[this.__index__++];return{done:c,value:h}}function pB(){return this}function mB(c){for(var h,w=this;w instanceof af;){var T=tv(w);T.__index__=0,T.__values__=e,h?D.__wrapped__=T:h=T;var D=T;w=w.__wrapped__}return D.__wrapped__=c,h}function AB(){var c=this.__wrapped__;if(c instanceof ut){var h=c;return this.__actions__.length&&(h=new ut(this)),h=h.reverse(),h.__actions__.push({func:vf,args:[Im],thisArg:e}),new Ur(h,this.__chain__)}return this.thru(Im)}function yB(){return Sx(this.__wrapped__,this.__actions__)}var bB=pf(function(c,h,w){Tt.call(c,w)?++c[w]:hi(c,w,1)});function wB(c,h,w){var T=Qe(c)?BC:uR;return w&&or(c,h,w)&&(h=e),T(c,ze(h,3))}function CB(c,h){var w=Qe(c)?qi:lx;return w(c,ze(h,3))}var xB=Rx(nv),vB=Rx(rv);function SB(c,h){return jn(Sf(c,h),1)}function EB(c,h){return jn(Sf(c,h),ae)}function kB(c,h,w){return w=w===e?1:qe(w),jn(Sf(c,h),w)}function cv(c,h){var w=Qe(c)?Fr:no;return w(c,ze(h,3))}function uv(c,h){var w=Qe(c)?YD:ox;return w(c,ze(h,3))}var TB=pf(function(c,h,w){Tt.call(c,w)?c[w].push(h):hi(c,w,[h])});function _B(c,h,w,T){c=mr(c)?c:xa(c),w=w&&!T?qe(w):0;var D=c.length;return w<0&&(w=Cn(D+w,0)),Nf(c)?w<=D&&c.indexOf(h,w)>-1:!!D&&ua(c,h,w)>-1}var NB=rt(function(c,h,w){var T=-1,D=typeof h=="function",B=mr(c)?oe(c.length):[];return no(c,function(K){B[++T]=D?Sr(h,K,w):Vc(K,h,w)}),B}),IB=pf(function(c,h,w){hi(c,w,h)});function Sf(c,h){var w=Qe(c)?Vt:hx;return w(c,ze(h,3))}function LB(c,h,w,T){return c==null?[]:(Qe(h)||(h=h==null?[]:[h]),w=T?e:w,Qe(w)||(w=w==null?[]:[w]),Ax(c,h,w))}var MB=pf(function(c,h,w){c[w?0:1].push(h)},function(){return[[],[]]});function DB(c,h,w){var T=Qe(c)?Wp:UC,D=arguments.length<3;return T(c,ze(h,4),w,D,no)}function OB(c,h,w){var T=Qe(c)?GD:UC,D=arguments.length<3;return T(c,ze(h,4),w,D,ox)}function RB(c,h){var w=Qe(c)?qi:lx;return w(c,Tf(ze(h,3)))}function PB(c){var h=Qe(c)?nx:_R;return h(c)}function BB(c,h,w){(w?or(c,h,w):h===e)?h=1:h=qe(h);var T=Qe(c)?iR:NR;return T(c,h)}function jB(c){var h=Qe(c)?oR:LR;return h(c)}function FB(c){if(c==null)return 0;if(mr(c))return Nf(c)?fa(c):c.length;var h=Gn(c);return h==Ke||h==Dt?c.size:am(c).length}function zB(c,h,w){var T=Qe(c)?Hp:MR;return w&&or(c,h,w)&&(h=e),T(c,ze(h,3))}var UB=rt(function(c,h){if(c==null)return[];var w=h.length;return w>1&&or(c,h[0],h[1])?h=[]:w>2&&or(h[0],h[1],h[2])&&(h=[h[0]]),Ax(c,jn(h,1),[])}),Ef=CO||function(){return Bn.Date.now()};function KB(c,h){if(typeof h!="function")throw new zr(o);return c=qe(c),function(){if(--c<1)return h.apply(this,arguments)}}function dv(c,h,w){return h=w?e:h,h=c&&h==null?c.length:h,gi(c,_,e,e,e,e,h)}function fv(c,h){var w;if(typeof h!="function")throw new zr(o);return c=qe(c),function(){return--c>0&&(w=h.apply(this,arguments)),c<=1&&(h=e),w}}var Mm=rt(function(c,h,w){var T=b;if(w.length){var D=eo(w,wa(Mm));T|=N}return gi(c,T,h,w,D)}),hv=rt(function(c,h,w){var T=b|x;if(w.length){var D=eo(w,wa(hv));T|=N}return gi(h,T,c,w,D)});function gv(c,h,w){h=w?e:h;var T=gi(c,v,e,e,e,e,e,h);return T.placeholder=gv.placeholder,T}function pv(c,h,w){h=w?e:h;var T=gi(c,E,e,e,e,e,e,h);return T.placeholder=pv.placeholder,T}function mv(c,h,w){var T,D,B,K,Z,X,fe=0,he=!1,ge=!1,ve=!0;if(typeof c!="function")throw new zr(o);h=Yr(h)||0,Xt(w)&&(he=!!w.leading,ge="maxWait"in w,B=ge?Cn(Yr(w.maxWait)||0,h):B,ve="trailing"in w?!!w.trailing:ve);function De(rn){var hs=T,bi=D;return T=D=e,fe=rn,K=c.apply(bi,hs),K}function We(rn){return fe=rn,Z=eu(at,h),he?De(rn):K}function et(rn){var hs=rn-X,bi=rn-fe,Rv=h-hs;return ge?Yn(Rv,B-bi):Rv}function He(rn){var hs=rn-X,bi=rn-fe;return X===e||hs>=h||hs<0||ge&&bi>=B}function at(){var rn=Ef();if(He(rn))return ht(rn);Z=eu(at,et(rn))}function ht(rn){return Z=e,ve&&T?De(rn):(T=D=e,K)}function _r(){Z!==e&&kx(Z),fe=0,T=X=D=Z=e}function lr(){return Z===e?K:ht(Ef())}function Nr(){var rn=Ef(),hs=He(rn);if(T=arguments,D=this,X=rn,hs){if(Z===e)return We(X);if(ge)return kx(Z),Z=eu(at,h),De(X)}return Z===e&&(Z=eu(at,h)),K}return Nr.cancel=_r,Nr.flush=lr,Nr}var WB=rt(function(c,h){return ix(c,1,h)}),HB=rt(function(c,h,w){return ix(c,Yr(h)||0,w)});function YB(c){return gi(c,L)}function kf(c,h){if(typeof c!="function"||h!=null&&typeof h!="function")throw new zr(o);var w=function(){var T=arguments,D=h?h.apply(this,T):T[0],B=w.cache;if(B.has(D))return B.get(D);var K=c.apply(this,T);return w.cache=B.set(D,K)||B,K};return w.cache=new(kf.Cache||fi),w}kf.Cache=fi;function Tf(c){if(typeof c!="function")throw new zr(o);return function(){var h=arguments;switch(h.length){case 0:return!c.call(this);case 1:return!c.call(this,h[0]);case 2:return!c.call(this,h[0],h[1]);case 3:return!c.call(this,h[0],h[1],h[2])}return!c.apply(this,h)}}function GB(c){return fv(2,c)}var ZB=DR(function(c,h){h=h.length==1&&Qe(h[0])?Vt(h[0],Er(ze())):Vt(jn(h,1),Er(ze()));var w=h.length;return rt(function(T){for(var D=-1,B=Yn(T.length,w);++D<B;)T[D]=h[D].call(this,T[D]);return Sr(c,this,T)})}),Dm=rt(function(c,h){var w=eo(h,wa(Dm));return gi(c,N,e,h,w)}),Av=rt(function(c,h){var w=eo(h,wa(Av));return gi(c,S,e,h,w)}),JB=pi(function(c,h){return gi(c,I,e,e,e,h)});function VB(c,h){if(typeof c!="function")throw new zr(o);return h=h===e?h:qe(h),rt(c,h)}function QB(c,h){if(typeof c!="function")throw new zr(o);return h=h==null?0:Cn(qe(h),0),rt(function(w){var T=w[h],D=io(w,0,h);return T&&$i(D,T),Sr(c,this,D)})}function XB(c,h,w){var T=!0,D=!0;if(typeof c!="function")throw new zr(o);return Xt(w)&&(T="leading"in w?!!w.leading:T,D="trailing"in w?!!w.trailing:D),mv(c,h,{leading:T,maxWait:h,trailing:D})}function qB(c){return dv(c,1)}function $B(c,h){return Dm(Am(h),c)}function ej(){if(!arguments.length)return[];var c=arguments[0];return Qe(c)?c:[c]}function tj(c){return Kr(c,p)}function nj(c,h){return h=typeof h=="function"?h:e,Kr(c,p,h)}function rj(c){return Kr(c,f|p)}function sj(c,h){return h=typeof h=="function"?h:e,Kr(c,f|p,h)}function ij(c,h){return h==null||sx(c,h,Tn(h))}function fs(c,h){return c===h||c!==c&&h!==h}var oj=bf(im),lj=bf(function(c,h){return c>=h}),nl=ux((function(){return arguments})())?ux:function(c){return en(c)&&Tt.call(c,"callee")&&!QC.call(c,"callee")},Qe=oe.isArray,aj=LC?Er(LC):mR;function mr(c){return c!=null&&_f(c.length)&&!Ai(c)}function nn(c){return en(c)&&mr(c)}function cj(c){return c===!0||c===!1||en(c)&&ir(c)==Ae}var oo=vO||Hm,uj=MC?Er(MC):AR;function dj(c){return en(c)&&c.nodeType===1&&!tu(c)}function fj(c){if(c==null)return!0;if(mr(c)&&(Qe(c)||typeof c=="string"||typeof c.splice=="function"||oo(c)||Ca(c)||nl(c)))return!c.length;var h=Gn(c);if(h==Ke||h==Dt)return!c.size;if($c(c))return!am(c).length;for(var w in c)if(Tt.call(c,w))return!1;return!0}function hj(c,h){return Qc(c,h)}function gj(c,h,w){w=typeof w=="function"?w:e;var T=w?w(c,h):e;return T===e?Qc(c,h,e,w):!!T}function Om(c){if(!en(c))return!1;var h=ir(c);return h==Ee||h==ye||typeof c.message=="string"&&typeof c.name=="string"&&!tu(c)}function pj(c){return typeof c=="number"&&qC(c)}function Ai(c){if(!Xt(c))return!1;var h=ir(c);return h==Ye||h==ft||h==de||h==lt}function yv(c){return typeof c=="number"&&c==qe(c)}function _f(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=re}function Xt(c){var h=typeof c;return c!=null&&(h=="object"||h=="function")}function en(c){return c!=null&&typeof c=="object"}var bv=DC?Er(DC):bR;function mj(c,h){return c===h||lm(c,h,Sm(h))}function Aj(c,h,w){return w=typeof w=="function"?w:e,lm(c,h,Sm(h),w)}function yj(c){return wv(c)&&c!=+c}function bj(c){if(nP(c))throw new Je(i);return dx(c)}function wj(c){return c===null}function Cj(c){return c==null}function wv(c){return typeof c=="number"||en(c)&&ir(c)==mt}function tu(c){if(!en(c)||ir(c)!=Re)return!1;var h=ef(c);if(h===null)return!0;var w=Tt.call(h,"constructor")&&h.constructor;return typeof w=="function"&&w instanceof w&&Qd.call(w)==AO}var Rm=OC?Er(OC):wR;function xj(c){return yv(c)&&c>=-re&&c<=re}var Cv=RC?Er(RC):CR;function Nf(c){return typeof c=="string"||!Qe(c)&&en(c)&&ir(c)==hr}function Tr(c){return typeof c=="symbol"||en(c)&&ir(c)==Be}var Ca=PC?Er(PC):xR;function vj(c){return c===e}function Sj(c){return en(c)&&Gn(c)==bt}function Ej(c){return en(c)&&ir(c)==zt}var kj=bf(cm),Tj=bf(function(c,h){return c<=h});function xv(c){if(!c)return[];if(mr(c))return Nf(c)?us(c):pr(c);if(Kc&&c[Kc])return iO(c[Kc]());var h=Gn(c),w=h==Ke?Qp:h==Dt?Zd:xa;return w(c)}function yi(c){if(!c)return c===0?c:0;if(c=Yr(c),c===ae||c===-ae){var h=c<0?-1:1;return h*ee}return c===c?c:0}function qe(c){var h=yi(c),w=h%1;return h===h?w?h-w:h:0}function vv(c){return c?qo(qe(c),0,q):0}function Yr(c){if(typeof c=="number")return c;if(Tr(c))return se;if(Xt(c)){var h=typeof c.valueOf=="function"?c.valueOf():c;c=Xt(h)?h+"":h}if(typeof c!="string")return c===0?c:+c;c=KC(c);var w=aD.test(c);return w||uD.test(c)?KD(c.slice(2),w?2:8):lD.test(c)?se:+c}function Sv(c){return Ls(c,Ar(c))}function _j(c){return c?qo(qe(c),-re,re):c===0?c:0}function xt(c){return c==null?"":kr(c)}var Nj=ya(function(c,h){if($c(h)||mr(h)){Ls(h,Tn(h),c);return}for(var w in h)Tt.call(h,w)&&Zc(c,w,h[w])}),Ev=ya(function(c,h){Ls(h,Ar(h),c)}),If=ya(function(c,h,w,T){Ls(h,Ar(h),c,T)}),Ij=ya(function(c,h,w,T){Ls(h,Tn(h),c,T)}),Lj=pi(nm);function Mj(c,h){var w=Aa(c);return h==null?w:rx(w,h)}var Dj=rt(function(c,h){c=Ot(c);var w=-1,T=h.length,D=T>2?h[2]:e;for(D&&or(h[0],h[1],D)&&(T=1);++w<T;)for(var B=h[w],K=Ar(B),Z=-1,X=K.length;++Z<X;){var fe=K[Z],he=c[fe];(he===e||fs(he,ga[fe])&&!Tt.call(c,fe))&&(c[fe]=B[fe])}return c}),Oj=rt(function(c){return c.push(e,Kx),Sr(kv,e,c)});function Rj(c,h){return jC(c,ze(h,3),Is)}function Pj(c,h){return jC(c,ze(h,3),sm)}function Bj(c,h){return c==null?c:rm(c,ze(h,3),Ar)}function jj(c,h){return c==null?c:ax(c,ze(h,3),Ar)}function Fj(c,h){return c&&Is(c,ze(h,3))}function zj(c,h){return c&&sm(c,ze(h,3))}function Uj(c){return c==null?[]:df(c,Tn(c))}function Kj(c){return c==null?[]:df(c,Ar(c))}function Pm(c,h,w){var T=c==null?e:$o(c,h);return T===e?w:T}function Wj(c,h){return c!=null&&Yx(c,h,fR)}function Bm(c,h){return c!=null&&Yx(c,h,hR)}var Hj=Bx(function(c,h,w){h!=null&&typeof h.toString!="function"&&(h=Xd.call(h)),c[h]=w},Fm(yr)),Yj=Bx(function(c,h,w){h!=null&&typeof h.toString!="function"&&(h=Xd.call(h)),Tt.call(c,h)?c[h].push(w):c[h]=[w]},ze),Gj=rt(Vc);function Tn(c){return mr(c)?tx(c):am(c)}function Ar(c){return mr(c)?tx(c,!0):vR(c)}function Zj(c,h){var w={};return h=ze(h,3),Is(c,function(T,D,B){hi(w,h(T,D,B),T)}),w}function Jj(c,h){var w={};return h=ze(h,3),Is(c,function(T,D,B){hi(w,D,h(T,D,B))}),w}var Vj=ya(function(c,h,w){ff(c,h,w)}),kv=ya(function(c,h,w,T){ff(c,h,w,T)}),Qj=pi(function(c,h){var w={};if(c==null)return w;var T=!1;h=Vt(h,function(B){return B=so(B,c),T||(T=B.length>1),B}),Ls(c,xm(c),w),T&&(w=Kr(w,f|g|p,HR));for(var D=h.length;D--;)gm(w,h[D]);return w});function Xj(c,h){return Tv(c,Tf(ze(h)))}var qj=pi(function(c,h){return c==null?{}:ER(c,h)});function Tv(c,h){if(c==null)return{};var w=Vt(xm(c),function(T){return[T]});return h=ze(h),yx(c,w,function(T,D){return h(T,D[0])})}function $j(c,h,w){h=so(h,c);var T=-1,D=h.length;for(D||(D=1,c=e);++T<D;){var B=c==null?e:c[Ms(h[T])];B===e&&(T=D,B=w),c=Ai(B)?B.call(c):B}return c}function eF(c,h,w){return c==null?c:Xc(c,h,w)}function tF(c,h,w,T){return T=typeof T=="function"?T:e,c==null?c:Xc(c,h,w,T)}var _v=zx(Tn),Nv=zx(Ar);function nF(c,h,w){var T=Qe(c),D=T||oo(c)||Ca(c);if(h=ze(h,4),w==null){var B=c&&c.constructor;D?w=T?new B:[]:Xt(c)?w=Ai(B)?Aa(ef(c)):{}:w={}}return(D?Fr:Is)(c,function(K,Z,X){return h(w,K,Z,X)}),w}function rF(c,h){return c==null?!0:gm(c,h)}function sF(c,h,w){return c==null?c:vx(c,h,Am(w))}function iF(c,h,w,T){return T=typeof T=="function"?T:e,c==null?c:vx(c,h,Am(w),T)}function xa(c){return c==null?[]:Vp(c,Tn(c))}function oF(c){return c==null?[]:Vp(c,Ar(c))}function lF(c,h,w){return w===e&&(w=h,h=e),w!==e&&(w=Yr(w),w=w===w?w:0),h!==e&&(h=Yr(h),h=h===h?h:0),qo(Yr(c),h,w)}function aF(c,h,w){return h=yi(h),w===e?(w=h,h=0):w=yi(w),c=Yr(c),gR(c,h,w)}function cF(c,h,w){if(w&&typeof w!="boolean"&&or(c,h,w)&&(h=w=e),w===e&&(typeof h=="boolean"?(w=h,h=e):typeof c=="boolean"&&(w=c,c=e)),c===e&&h===e?(c=0,h=1):(c=yi(c),h===e?(h=c,c=0):h=yi(h)),c>h){var T=c;c=h,h=T}if(w||c%1||h%1){var D=$C();return Yn(c+D*(h-c+UD("1e-"+((D+"").length-1))),h)}return dm(c,h)}var uF=ba(function(c,h,w){return h=h.toLowerCase(),c+(w?Iv(h):h)});function Iv(c){return jm(xt(c).toLowerCase())}function Lv(c){return c=xt(c),c&&c.replace(fD,eO).replace(LD,"")}function dF(c,h,w){c=xt(c),h=kr(h);var T=c.length;w=w===e?T:qo(qe(w),0,T);var D=w;return w-=h.length,w>=0&&c.slice(w,D)==h}function fF(c){return c=xt(c),c&&GM.test(c)?c.replace(aC,tO):c}function hF(c){return c=xt(c),c&&qM.test(c)?c.replace(Dp,"\\$&"):c}var gF=ba(function(c,h,w){return c+(w?"-":"")+h.toLowerCase()}),pF=ba(function(c,h,w){return c+(w?" ":"")+h.toLowerCase()}),mF=Ox("toLowerCase");function AF(c,h,w){c=xt(c),h=qe(h);var T=h?fa(c):0;if(!h||T>=h)return c;var D=(h-T)/2;return yf(sf(D),w)+c+yf(rf(D),w)}function yF(c,h,w){c=xt(c),h=qe(h);var T=h?fa(c):0;return h&&T<h?c+yf(h-T,w):c}function bF(c,h,w){c=xt(c),h=qe(h);var T=h?fa(c):0;return h&&T<h?yf(h-T,w)+c:c}function wF(c,h,w){return w||h==null?h=0:h&&(h=+h),TO(xt(c).replace(Op,""),h||0)}function CF(c,h,w){return(w?or(c,h,w):h===e)?h=1:h=qe(h),fm(xt(c),h)}function xF(){var c=arguments,h=xt(c[0]);return c.length<3?h:h.replace(c[1],c[2])}var vF=ba(function(c,h,w){return c+(w?"_":"")+h.toLowerCase()});function SF(c,h,w){return w&&typeof w!="number"&&or(c,h,w)&&(h=w=e),w=w===e?q:w>>>0,w?(c=xt(c),c&&(typeof h=="string"||h!=null&&!Rm(h))&&(h=kr(h),!h&&da(c))?io(us(c),0,w):c.split(h,w)):[]}var EF=ba(function(c,h,w){return c+(w?" ":"")+jm(h)});function kF(c,h,w){return c=xt(c),w=w==null?0:qo(qe(w),0,c.length),h=kr(h),c.slice(w,w+h.length)==h}function TF(c,h,w){var T=P.templateSettings;w&&or(c,h,w)&&(h=e),c=xt(c),h=If({},h,T,Ux);var D=If({},h.imports,T.imports,Ux),B=Tn(D),K=Vp(D,B),Z,X,fe=0,he=h.interpolate||Kd,ge="__p += '",ve=Xp((h.escape||Kd).source+"|"+he.source+"|"+(he===cC?oD:Kd).source+"|"+(h.evaluate||Kd).source+"|$","g"),De="//# sourceURL="+(Tt.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++PD+"]")+`
82
+ `;c.replace(ve,function(He,at,ht,_r,lr,Nr){return ht||(ht=_r),ge+=c.slice(fe,Nr).replace(hD,nO),at&&(Z=!0,ge+=`' +
83
+ __e(`+at+`) +
84
+ '`),lr&&(X=!0,ge+=`';
85
+ `+lr+`;
86
+ __p += '`),ht&&(ge+=`' +
87
+ ((__t = (`+ht+`)) == null ? '' : __t) +
88
+ '`),fe=Nr+He.length,He}),ge+=`';
89
+ `;var We=Tt.call(h,"variable")&&h.variable;if(!We)ge=`with (obj) {
90
+ `+ge+`
91
+ }
92
+ `;else if(sD.test(We))throw new Je(l);ge=(X?ge.replace(KM,""):ge).replace(WM,"$1").replace(HM,"$1;"),ge="function("+(We||"obj")+`) {
93
+ `+(We?"":`obj || (obj = {});
94
+ `)+"var __t, __p = ''"+(Z?", __e = _.escape":"")+(X?`, __j = Array.prototype.join;
95
+ function print() { __p += __j.call(arguments, '') }
96
+ `:`;
97
+ `)+ge+`return __p
98
+ }`;var et=Dv(function(){return wt(B,De+"return "+ge).apply(e,K)});if(et.source=ge,Om(et))throw et;return et}function _F(c){return xt(c).toLowerCase()}function NF(c){return xt(c).toUpperCase()}function IF(c,h,w){if(c=xt(c),c&&(w||h===e))return KC(c);if(!c||!(h=kr(h)))return c;var T=us(c),D=us(h),B=WC(T,D),K=HC(T,D)+1;return io(T,B,K).join("")}function LF(c,h,w){if(c=xt(c),c&&(w||h===e))return c.slice(0,GC(c)+1);if(!c||!(h=kr(h)))return c;var T=us(c),D=HC(T,us(h))+1;return io(T,0,D).join("")}function MF(c,h,w){if(c=xt(c),c&&(w||h===e))return c.replace(Op,"");if(!c||!(h=kr(h)))return c;var T=us(c),D=WC(T,us(h));return io(T,D).join("")}function DF(c,h){var w=M,T=R;if(Xt(h)){var D="separator"in h?h.separator:D;w="length"in h?qe(h.length):w,T="omission"in h?kr(h.omission):T}c=xt(c);var B=c.length;if(da(c)){var K=us(c);B=K.length}if(w>=B)return c;var Z=w-fa(T);if(Z<1)return T;var X=K?io(K,0,Z).join(""):c.slice(0,Z);if(D===e)return X+T;if(K&&(Z+=X.length-Z),Rm(D)){if(c.slice(Z).search(D)){var fe,he=X;for(D.global||(D=Xp(D.source,xt(uC.exec(D))+"g")),D.lastIndex=0;fe=D.exec(he);)var ge=fe.index;X=X.slice(0,ge===e?Z:ge)}}else if(c.indexOf(kr(D),Z)!=Z){var ve=X.lastIndexOf(D);ve>-1&&(X=X.slice(0,ve))}return X+T}function OF(c){return c=xt(c),c&&YM.test(c)?c.replace(lC,cO):c}var RF=ba(function(c,h,w){return c+(w?" ":"")+h.toUpperCase()}),jm=Ox("toUpperCase");function Mv(c,h,w){return c=xt(c),h=w?e:h,h===e?sO(c)?fO(c):VD(c):c.match(h)||[]}var Dv=rt(function(c,h){try{return Sr(c,e,h)}catch(w){return Om(w)?w:new Je(w)}}),PF=pi(function(c,h){return Fr(h,function(w){w=Ms(w),hi(c,w,Mm(c[w],c))}),c});function BF(c){var h=c==null?0:c.length,w=ze();return c=h?Vt(c,function(T){if(typeof T[1]!="function")throw new zr(o);return[w(T[0]),T[1]]}):[],rt(function(T){for(var D=-1;++D<h;){var B=c[D];if(Sr(B[0],this,T))return Sr(B[1],this,T)}})}function jF(c){return cR(Kr(c,f))}function Fm(c){return function(){return c}}function FF(c,h){return c==null||c!==c?h:c}var zF=Px(),UF=Px(!0);function yr(c){return c}function zm(c){return fx(typeof c=="function"?c:Kr(c,f))}function KF(c){return gx(Kr(c,f))}function WF(c,h){return px(c,Kr(h,f))}var HF=rt(function(c,h){return function(w){return Vc(w,c,h)}}),YF=rt(function(c,h){return function(w){return Vc(c,w,h)}});function Um(c,h,w){var T=Tn(h),D=df(h,T);w==null&&!(Xt(h)&&(D.length||!T.length))&&(w=h,h=c,c=this,D=df(h,Tn(h)));var B=!(Xt(w)&&"chain"in w)||!!w.chain,K=Ai(c);return Fr(D,function(Z){var X=h[Z];c[Z]=X,K&&(c.prototype[Z]=function(){var fe=this.__chain__;if(B||fe){var he=c(this.__wrapped__),ge=he.__actions__=pr(this.__actions__);return ge.push({func:X,args:arguments,thisArg:c}),he.__chain__=fe,he}return X.apply(c,$i([this.value()],arguments))})}),c}function GF(){return Bn._===this&&(Bn._=yO),this}function Km(){}function ZF(c){return c=qe(c),rt(function(h){return mx(h,c)})}var JF=bm(Vt),VF=bm(BC),QF=bm(Hp);function Ov(c){return km(c)?Yp(Ms(c)):kR(c)}function XF(c){return function(h){return c==null?e:$o(c,h)}}var qF=jx(),$F=jx(!0);function Wm(){return[]}function Hm(){return!1}function e4(){return{}}function t4(){return""}function n4(){return!0}function r4(c,h){if(c=qe(c),c<1||c>re)return[];var w=q,T=Yn(c,q);h=ze(h),c-=q;for(var D=Jp(T,h);++w<c;)h(w);return D}function s4(c){return Qe(c)?Vt(c,Ms):Tr(c)?[c]:pr(ev(xt(c)))}function i4(c){var h=++mO;return xt(c)+h}var o4=Af(function(c,h){return c+h},0),l4=wm("ceil"),a4=Af(function(c,h){return c/h},1),c4=wm("floor");function u4(c){return c&&c.length?uf(c,yr,im):e}function d4(c,h){return c&&c.length?uf(c,ze(h,2),im):e}function f4(c){return zC(c,yr)}function h4(c,h){return zC(c,ze(h,2))}function g4(c){return c&&c.length?uf(c,yr,cm):e}function p4(c,h){return c&&c.length?uf(c,ze(h,2),cm):e}var m4=Af(function(c,h){return c*h},1),A4=wm("round"),y4=Af(function(c,h){return c-h},0);function b4(c){return c&&c.length?Zp(c,yr):0}function w4(c,h){return c&&c.length?Zp(c,ze(h,2)):0}return P.after=KB,P.ary=dv,P.assign=Nj,P.assignIn=Ev,P.assignInWith=If,P.assignWith=Ij,P.at=Lj,P.before=fv,P.bind=Mm,P.bindAll=PF,P.bindKey=hv,P.castArray=ej,P.chain=av,P.chunk=cP,P.compact=uP,P.concat=dP,P.cond=BF,P.conforms=jF,P.constant=Fm,P.countBy=bB,P.create=Mj,P.curry=gv,P.curryRight=pv,P.debounce=mv,P.defaults=Dj,P.defaultsDeep=Oj,P.defer=WB,P.delay=HB,P.difference=fP,P.differenceBy=hP,P.differenceWith=gP,P.drop=pP,P.dropRight=mP,P.dropRightWhile=AP,P.dropWhile=yP,P.fill=bP,P.filter=CB,P.flatMap=SB,P.flatMapDeep=EB,P.flatMapDepth=kB,P.flatten=sv,P.flattenDeep=wP,P.flattenDepth=CP,P.flip=YB,P.flow=zF,P.flowRight=UF,P.fromPairs=xP,P.functions=Uj,P.functionsIn=Kj,P.groupBy=TB,P.initial=SP,P.intersection=EP,P.intersectionBy=kP,P.intersectionWith=TP,P.invert=Hj,P.invertBy=Yj,P.invokeMap=NB,P.iteratee=zm,P.keyBy=IB,P.keys=Tn,P.keysIn=Ar,P.map=Sf,P.mapKeys=Zj,P.mapValues=Jj,P.matches=KF,P.matchesProperty=WF,P.memoize=kf,P.merge=Vj,P.mergeWith=kv,P.method=HF,P.methodOf=YF,P.mixin=Um,P.negate=Tf,P.nthArg=ZF,P.omit=Qj,P.omitBy=Xj,P.once=GB,P.orderBy=LB,P.over=JF,P.overArgs=ZB,P.overEvery=VF,P.overSome=QF,P.partial=Dm,P.partialRight=Av,P.partition=MB,P.pick=qj,P.pickBy=Tv,P.property=Ov,P.propertyOf=XF,P.pull=LP,P.pullAll=ov,P.pullAllBy=MP,P.pullAllWith=DP,P.pullAt=OP,P.range=qF,P.rangeRight=$F,P.rearg=JB,P.reject=RB,P.remove=RP,P.rest=VB,P.reverse=Im,P.sampleSize=BB,P.set=eF,P.setWith=tF,P.shuffle=jB,P.slice=PP,P.sortBy=UB,P.sortedUniq=WP,P.sortedUniqBy=HP,P.split=SF,P.spread=QB,P.tail=YP,P.take=GP,P.takeRight=ZP,P.takeRightWhile=JP,P.takeWhile=VP,P.tap=uB,P.throttle=XB,P.thru=vf,P.toArray=xv,P.toPairs=_v,P.toPairsIn=Nv,P.toPath=s4,P.toPlainObject=Sv,P.transform=nF,P.unary=qB,P.union=QP,P.unionBy=XP,P.unionWith=qP,P.uniq=$P,P.uniqBy=eB,P.uniqWith=tB,P.unset=rF,P.unzip=Lm,P.unzipWith=lv,P.update=sF,P.updateWith=iF,P.values=xa,P.valuesIn=oF,P.without=nB,P.words=Mv,P.wrap=$B,P.xor=rB,P.xorBy=sB,P.xorWith=iB,P.zip=oB,P.zipObject=lB,P.zipObjectDeep=aB,P.zipWith=cB,P.entries=_v,P.entriesIn=Nv,P.extend=Ev,P.extendWith=If,Um(P,P),P.add=o4,P.attempt=Dv,P.camelCase=uF,P.capitalize=Iv,P.ceil=l4,P.clamp=lF,P.clone=tj,P.cloneDeep=rj,P.cloneDeepWith=sj,P.cloneWith=nj,P.conformsTo=ij,P.deburr=Lv,P.defaultTo=FF,P.divide=a4,P.endsWith=dF,P.eq=fs,P.escape=fF,P.escapeRegExp=hF,P.every=wB,P.find=xB,P.findIndex=nv,P.findKey=Rj,P.findLast=vB,P.findLastIndex=rv,P.findLastKey=Pj,P.floor=c4,P.forEach=cv,P.forEachRight=uv,P.forIn=Bj,P.forInRight=jj,P.forOwn=Fj,P.forOwnRight=zj,P.get=Pm,P.gt=oj,P.gte=lj,P.has=Wj,P.hasIn=Bm,P.head=iv,P.identity=yr,P.includes=_B,P.indexOf=vP,P.inRange=aF,P.invoke=Gj,P.isArguments=nl,P.isArray=Qe,P.isArrayBuffer=aj,P.isArrayLike=mr,P.isArrayLikeObject=nn,P.isBoolean=cj,P.isBuffer=oo,P.isDate=uj,P.isElement=dj,P.isEmpty=fj,P.isEqual=hj,P.isEqualWith=gj,P.isError=Om,P.isFinite=pj,P.isFunction=Ai,P.isInteger=yv,P.isLength=_f,P.isMap=bv,P.isMatch=mj,P.isMatchWith=Aj,P.isNaN=yj,P.isNative=bj,P.isNil=Cj,P.isNull=wj,P.isNumber=wv,P.isObject=Xt,P.isObjectLike=en,P.isPlainObject=tu,P.isRegExp=Rm,P.isSafeInteger=xj,P.isSet=Cv,P.isString=Nf,P.isSymbol=Tr,P.isTypedArray=Ca,P.isUndefined=vj,P.isWeakMap=Sj,P.isWeakSet=Ej,P.join=_P,P.kebabCase=gF,P.last=Hr,P.lastIndexOf=NP,P.lowerCase=pF,P.lowerFirst=mF,P.lt=kj,P.lte=Tj,P.max=u4,P.maxBy=d4,P.mean=f4,P.meanBy=h4,P.min=g4,P.minBy=p4,P.stubArray=Wm,P.stubFalse=Hm,P.stubObject=e4,P.stubString=t4,P.stubTrue=n4,P.multiply=m4,P.nth=IP,P.noConflict=GF,P.noop=Km,P.now=Ef,P.pad=AF,P.padEnd=yF,P.padStart=bF,P.parseInt=wF,P.random=cF,P.reduce=DB,P.reduceRight=OB,P.repeat=CF,P.replace=xF,P.result=$j,P.round=A4,P.runInContext=Q,P.sample=PB,P.size=FB,P.snakeCase=vF,P.some=zB,P.sortedIndex=BP,P.sortedIndexBy=jP,P.sortedIndexOf=FP,P.sortedLastIndex=zP,P.sortedLastIndexBy=UP,P.sortedLastIndexOf=KP,P.startCase=EF,P.startsWith=kF,P.subtract=y4,P.sum=b4,P.sumBy=w4,P.template=TF,P.times=r4,P.toFinite=yi,P.toInteger=qe,P.toLength=vv,P.toLower=_F,P.toNumber=Yr,P.toSafeInteger=_j,P.toString=xt,P.toUpper=NF,P.trim=IF,P.trimEnd=LF,P.trimStart=MF,P.truncate=DF,P.unescape=OF,P.uniqueId=i4,P.upperCase=RF,P.upperFirst=jm,P.each=cv,P.eachRight=uv,P.first=iv,Um(P,(function(){var c={};return Is(P,function(h,w){Tt.call(P.prototype,w)||(c[w]=h)}),c})(),{chain:!1}),P.VERSION=r,Fr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Fr(["drop","take"],function(c,h){ut.prototype[c]=function(w){w=w===e?1:Cn(qe(w),0);var T=this.__filtered__&&!h?new ut(this):this.clone();return T.__filtered__?T.__takeCount__=Yn(w,T.__takeCount__):T.__views__.push({size:Yn(w,q),type:c+(T.__dir__<0?"Right":"")}),T},ut.prototype[c+"Right"]=function(w){return this.reverse()[c](w).reverse()}}),Fr(["filter","map","takeWhile"],function(c,h){var w=h+1,T=w==U||w==ne;ut.prototype[c]=function(D){var B=this.clone();return B.__iteratees__.push({iteratee:ze(D,3),type:w}),B.__filtered__=B.__filtered__||T,B}}),Fr(["head","last"],function(c,h){var w="take"+(h?"Right":"");ut.prototype[c]=function(){return this[w](1).value()[0]}}),Fr(["initial","tail"],function(c,h){var w="drop"+(h?"":"Right");ut.prototype[c]=function(){return this.__filtered__?new ut(this):this[w](1)}}),ut.prototype.compact=function(){return this.filter(yr)},ut.prototype.find=function(c){return this.filter(c).head()},ut.prototype.findLast=function(c){return this.reverse().find(c)},ut.prototype.invokeMap=rt(function(c,h){return typeof c=="function"?new ut(this):this.map(function(w){return Vc(w,c,h)})}),ut.prototype.reject=function(c){return this.filter(Tf(ze(c)))},ut.prototype.slice=function(c,h){c=qe(c);var w=this;return w.__filtered__&&(c>0||h<0)?new ut(w):(c<0?w=w.takeRight(-c):c&&(w=w.drop(c)),h!==e&&(h=qe(h),w=h<0?w.dropRight(-h):w.take(h-c)),w)},ut.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},ut.prototype.toArray=function(){return this.take(q)},Is(ut.prototype,function(c,h){var w=/^(?:filter|find|map|reject)|While$/.test(h),T=/^(?:head|last)$/.test(h),D=P[T?"take"+(h=="last"?"Right":""):h],B=T||/^find/.test(h);D&&(P.prototype[h]=function(){var K=this.__wrapped__,Z=T?[1]:arguments,X=K instanceof ut,fe=Z[0],he=X||Qe(K),ge=function(at){var ht=D.apply(P,$i([at],Z));return T&&ve?ht[0]:ht};he&&w&&typeof fe=="function"&&fe.length!=1&&(X=he=!1);var ve=this.__chain__,De=!!this.__actions__.length,We=B&&!ve,et=X&&!De;if(!B&&he){K=et?K:new ut(this);var He=c.apply(K,Z);return He.__actions__.push({func:vf,args:[ge],thisArg:e}),new Ur(He,ve)}return We&&et?c.apply(this,Z):(He=this.thru(ge),We?T?He.value()[0]:He.value():He)})}),Fr(["pop","push","shift","sort","splice","unshift"],function(c){var h=Jd[c],w=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",T=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var D=arguments;if(T&&!this.__chain__){var B=this.value();return h.apply(Qe(B)?B:[],D)}return this[w](function(K){return h.apply(Qe(K)?K:[],D)})}}),Is(ut.prototype,function(c,h){var w=P[h];if(w){var T=w.name+"";Tt.call(ma,T)||(ma[T]=[]),ma[T].push({name:h,func:w})}}),ma[mf(e,x).name]=[{name:"wrapper",func:e}],ut.prototype.clone=OO,ut.prototype.reverse=RO,ut.prototype.value=PO,P.prototype.at=dB,P.prototype.chain=fB,P.prototype.commit=hB,P.prototype.next=gB,P.prototype.plant=mB,P.prototype.reverse=AB,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=yB,P.prototype.first=P.prototype.head,Kc&&(P.prototype[Kc]=pB),P}),ha=hO();Jo?((Jo.exports=ha)._=ha,zp._=ha):Bn._=ha}).call(kZ)})(Au,Au.exports)),Au.exports}var _Z=TZ();function NZ(n){if(!n)return window;let t=n;for(;t;){if(t===document.body||t===document.documentElement)return window;const r=getComputedStyle(t).overflowY;if((r==="auto"||r==="scroll"||r==="overlay")&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return window}function IZ(n,t){let e=150;const{clientY:r}=n;if(t===window){const s=window.innerHeight;r<e?window.scrollBy(0,Math.max(-15,(r-e)/15)):r>s-e&&window.scrollBy(0,Math.min(15,(r-(s-e))/15))}else{e=100;const s=t.getBoundingClientRect();r<s.top+e?t.scrollTop-=5:r>s.bottom-e&&(t.scrollTop+=5)}}const LZ=_Z.throttle((n,t)=>{n.preventDefault(),IZ(n,t)},16);let $f=null;function MZ(n){return n?n.classList.contains("dsd__theme__table-scrollable-wrapper")?n.firstElementChild:n:null}function DZ(n,t,e){const r=k.useRef(null),s=k.useRef(null),i=k.useRef(!1),o=k.useRef(!1),l=k.useRef({htmlElement:null,lexicalNode:null,isBottom:!1}),a=k.useRef(null),[u,d]=k.useState(null),{disable:f}=k.useContext(kt),[g,p]=k.useState(!1),[m,y]=k.useState({opened:!1}),[b,x]=k.useState(""),[C,v]=k.useState(null),[E,N]=k.useState(!1),[S,_]=k.useState({left:!1,right:!1}),[I,L]=k.useState(null),{t:M}=it.useTranslation(),R=bp(W=>{const J=W.target;o.current||qf(J)&&(bG(J)||n.read(()=>{var Ae;const te=J.className.includes("content-editable-wrapper"),le=te?xe():Oe(J),{htmlElement:ce,lexicalNode:de}=DE(le,n,{root:!0,"layout-container":!0,"layout-item":!0,callout:!0,"collapsible-content":!0},W);if((de==null?void 0:de.__type)==="callout"||(de==null?void 0:de.__type)==="callout-image"||((Ae=de==null?void 0:de.getParent())==null?void 0:Ae.__type)==="callout"&&(de==null?void 0:de.getPreviousSibling())===null){d(null);return}if(!(te&&de instanceof _s||te&&!de)&&de!=null&&de.__key){if(de.__type==="layout-container"||de.__type==="layout-item"||de.__type==="collapsible-content"){d(null);return}ce&&(l.current.htmlElement=ce,l.current.lexicalNode=de),(de==null?void 0:de.__type)==="collapsible-title"&&(l.current.htmlElement=(ce==null?void 0:ce.parentElement)||ce,l.current.lexicalNode=de.getParent()),v(null),d(l.current.htmlElement)}}))},20,50);k.useEffect(()=>()=>{$f=null},[]),k.useEffect(()=>{function W(){o.current||d(null)}function J(le){if(!i.current)return!1;const[ce]=Fa(le);if(ce)return!1;const{target:de,dataTransfer:Ae}=le,ke=(Ae==null?void 0:Ae.getData(lk))||"";n.update(()=>{var Me;let ye=me(ke);if(!ye||!(qf(de)||de.closest(".resizable-container")))return!1;const{htmlElement:Ee,lexicalNode:Ye,isBottom:ft}=l.current;let Ke=Ye,mt=null;if(Ke!=null&&Ke.__key&&(mt=Ee),!mt||!Ke)return!1;if(Ke===ye)return!0;if(s.current&&gG(s.current,n,Ke,ye))return!1;if(ye.__type==="layout-divider"){if(ye=ye.getParent(),Ye&&(ye!=null&&ye.isParentOf(Ye)))return!1;P2(n,ye)}if(ye.getParent()instanceof Pr&&((Me=ye.getParent())==null?void 0:Me.getChildren().length)===2){const lt=ye.getParent(),Jt=lt.getParent();gc(n,lt,Jt)}if(Ee!=null&&Ee.classList.contains("selected-block"))return;let At;const Re=n._rootElement;ft?At=Array.from(Re.querySelectorAll(".selected-block")).reverse():At=Array.from(Re.querySelectorAll(".selected-block")),At.length?At.forEach(lt=>{let Jt=Oe(lt);ft?Ke==null||Ke.insertAfter(Jt):Ke==null||Ke.insertBefore(Jt)}):ft?Ke.insertAfter(ye):Ke.insertBefore(ye),d(null)})}function te(le){const{target:ce}=le;qf(ce)&&ce.className==="ContentEditable__root"&&fk(s.current)}return t==null||t.addEventListener("mousemove",R),t==null||t.addEventListener("drop",J),t==null||t.addEventListener("mouseleave",W),t==null||t.addEventListener("dragleave",te),()=>{t==null||t.removeEventListener("mousemove",R),t==null||t.addEventListener("drop",J),t==null||t.removeEventListener("mouseleave",W),t==null||t.removeEventListener("dragleave",te)}},[t,n]),k.useEffect(()=>{if(r.current){if(o.current||m.opened)return;uk(u,r.current,t,m.opened)}},[t,u,o.current,m.opened]),k.useEffect(()=>{function W(J){var ft,Ke;const{clientY:te,target:le,pageX:ce}=J;if(!i.current)return!1;const[de]=Fa(J);if(de||!qf(le))return!1;const Ae=Oe(le)||xe(),{htmlElement:ke,lexicalNode:ye}=DE(Ae,n,{root:!0,"layout-container":!0,"layout-item":!0,"callout-wrapper":!0,callout:!0,"collapsible-content":!0,"collapsible-container":!0},J);if(J.preventDefault(),(ye==null?void 0:ye.__type)==="callout"||(ye==null?void 0:ye.__type)==="collapsible-content"||B2(a.current,ye==null?void 0:ye.getParent())||(ye==null?void 0:ye.__type)==="layout-item"&&Ae.__type!=="root")return!1;ke&&(l.current.htmlElement=ke,l.current.lexicalNode=ye);let Ee=null;Ee=l.current.htmlElement||ke,Ee!=null&&Ee.closest(".dsd__theme__layoutContainer")&&Ae.__type==="root"&&ye&&((ye==null?void 0:ye.__type)==="layout-item"&&Ae.__type==="root"?(Ee=Ee==null?void 0:Ee.parentElement,l.current.htmlElement=Ee,l.current.lexicalNode=ye==null?void 0:ye.getParent()):(Ee=(ft=Ee.parentElement)==null?void 0:ft.parentElement,l.current.htmlElement=Ee,l.current.lexicalNode=(Ke=ye.getParent())==null?void 0:Ke.getParent()));const Ye=s.current;return!Ee&&Ye?(Ye.style.background="transparent",!1):Ee===null||Ye===null||Ee!=null&&Ee.classList.contains("selected-block")?!1:(CG(Ye,Ee,te,ce,t,J,l),!0)}return Xe(n.registerCommand(Oi,J=>J==="hide_menu"?(AG(r.current),setTimeout(()=>{o.current=!0},0),!1):J==="show_menu"?(o.current=!1,!1):(J===!0&&!o.current&&d(null),o.current=!1,!1),Te),n.registerCommand(jL,J=>((J==null?void 0:J.target)instanceof HTMLElement&&r.current instanceof HTMLElement&&(V(J,!0),uk(J.target,r.current,t,m.opened)),!1),Te),n.registerCommand(Zb,J=>($f||($f=NZ(J.target)),LZ(J,$f),W(J)),Te),n.registerCommand(To,()=>(n.dispatchCommand(Oi,!0),!1),Te),n.registerCommand(qs,()=>(n.dispatchCommand(Oi,!0),!1),Te))},[t,n]);function F(W){var de;const J=W.dataTransfer;(de=s.current)==null||de.setAttribute("data-index-start","");const te=u||l.current.htmlElement;if(!J||!te)return;const le=n._rootElement;if(te!=null&&te.classList.contains("selected-block")){const Ae=n._rootElement,ke=Array.from(Ae.querySelectorAll(".selected-block"));wG(W.dataTransfer,ke)}else IA(le),te.className.includes("_layoutDivider")&&te.parentElement?dk(J,te.parentElement):dk(J,te);let ce="";n.read(()=>{var ke,ye;const Ae=Oe(te);if(Ae&&(ce=Ae.getKey()),Ae instanceof _s){const Ee=ld((ke=te.parentElement)==null?void 0:ke.parentElement,te.parentElement);(ye=s.current)==null||ye.setAttribute("data-index-start",Ee.toString())}}),r.current&&(p(!0),r.current.style.opacity="0"),i.current=!0,a.current=ce,J.setData(lk,ce)}function j(){i.current=!1,fk(s.current),p(!1)}if(f)return A.jsx("div",{});function U(){var te;const W=l.current.htmlElement,J=(te=W==null?void 0:W.parentElement)==null?void 0:te.parentElement;if(J!=null&&J.classList.contains("dsd__theme__layoutContainer")&&(J.children.length===4?N(!0):N(!1),W!=null&&W.parentElement)){const le=ld(J,W==null?void 0:W.parentElement);le?le===J.children.length-1?_({left:!1,right:!0}):_({left:!1,right:!1}):_({left:!0,right:!1})}}function V(W,J=!1){o.current=!0;const te=MZ((W==null?void 0:W.target)??l.current.htmlElement);if(!te)return;const le=n._rootElement;U(),te.classList.contains("selected-block")||IA(le),n.update(()=>{const de=G(),ke=((de==null?void 0:de.getNodes())??[]).filter(Re=>!ie(Re)&&Re.__parent==="root"),ye=ke.map(Re=>{const Me=n.getElementByKey(Re.getKey());return Re.getType()==="table"?Me==null?void 0:Me.firstElementChild:Me}).filter(Re=>Re!==null),Ee=ke.length&&ye.includes(te)?ye:[te];if(Ee.length===1){const Re=Oe(te);if(!Re)return;J||(Y(Re)?Re.select(0):Re.selectStart()),L(Re)}else L(null);const Ye=document.querySelector(".selected-all-document"),ft=!!Ye;ft||Ee.forEach(Re=>{dw(n,{block:Re,isCreateEventListener:!1})});const mt=Array.from(ft?Ye.children:document.querySelectorAll(".selected-block")).reduce((Re,Me)=>{const lt=Oe(Me);return lt&&Re.push(lt),Re},[]),At=mt.length>0&&mt.every(Re=>Ki(Re)||yt(Re)||Dr(Re)?!1:Y(Re)||ie(Re));x(At?"text":"block")}),Z2();const ce=Number(W==null?void 0:W.y)+240>window.innerHeight?Number(W==null?void 0:W.y)-200:W==null?void 0:W.y;y({opened:!0,x:(W==null?void 0:W.x)??0,y:ce??0}),n.dispatchCommand(nb,!0)}const ne=()=>{n.update(()=>{const W=Wt();if(o.current=!1,y(J=>({opened:!1,x:J.x,y:J.y})),(W==null?void 0:W.__key)==="root"){const J=we();W.append(J)}Ge(null)})},ae=e?"hide-add-button":"",re=m.x!==0?{position:"fixed",top:0,left:0,transform:`translate(${m.x}px, ${m.y}px)`}:{},ee=()=>{var W;ne(),J2(),IA(n._rootElement),(W=n._rootElement)==null||W.classList.remove("selected-all-document")},se=(W=!1)=>{W?n.update(()=>{const J=G();let te=null,le=null;H(J)&&(le=J.anchor.getNode(),te=le.getParent()),ee(),setTimeout(()=>{n.update(()=>{(te==null?void 0:te.__type)==="root"?le==null||le.selectEnd():te==null||te.selectEnd()})},100)}):setTimeout(()=>{ee()},100)},q=k.useCallback(W=>{const J=document.querySelector(".draggable-menu");if(!m&&W.button!==2)return;const te=W.target;if(te.closest(".mantine-Menu-dropdown"))return;!((J==null?void 0:J.contains(te))&&te.closest("div.custom-menu-item"))&&W.button!==2&&m.opened&&(W.stopPropagation(),W.preventDefault())},[n,m]);return k.useEffect(()=>(m.opened?document.addEventListener("mousedown",q):document.removeEventListener("mousedown",q),()=>{document.removeEventListener("mousedown",q)}),[m.opened,q]),Or.createPortal(A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:`draggable-block-container ${ae} ${u?"visible":""}`,ref:r,onMouseEnter:()=>{var W;m||v("both"),(W=r.current)!=null&&W.style&&(r.current.style.opacity="1")},onMouseLeave:()=>{v(null)},children:[A.jsx(wZ,{hoveredButton:C,insertNewParagraph:ck,currentDraggableBlockRef:l,setHoveredButton:v,isClickedBlockRef:o,setDraggableBlockElem:d,editor:n,t:M}),A.jsxs(O.Menu,{onOpen:V,opened:m.opened,styles:{dropdown:re},position:"left-start",width:320,shadow:"md",withinPortal:!0,onClose:()=>{se()},transitionProps:ci,children:[A.jsx(O.Menu.Target,{children:A.jsx("div",{className:"icon draggable-block-menu",draggable:!0,onDragStart:F,onDragEnd:j,children:A.jsx(O.Tooltip,{openDelay:300,multiline:!0,disabled:g||o.current,label:A.jsxs(A.Fragment,{children:[A.jsxs("span",{children:[A.jsx("strong",{children:M("editor.hoverOptions.drag")}),","," ",M("editor.hoverOptions.dragAction")]}),A.jsx("br",{}),A.jsxs("span",{children:[A.jsx("strong",{children:M("editor.hoverOptions.click")}),","," ",M("editor.hoverOptions.clickAction")]})]}),position:"bottom-start",children:A.jsx(O.ActionIcon,{radius:"sm",color:"gray",size:"sm",variant:"subtle","aria-label":"Settings",children:A.jsx($.IconGripVertical,{size:20})})})})}),A.jsx(bZ,{hoveredButton:C,insertNewParagraph:ck,currentDraggableBlockRef:l,setHoveredButton:v,isClickedBlockRef:o,setDraggableBlockElem:d,editor:n,t:M}),A.jsx(O.Menu.Dropdown,{className:"draggable-menu",children:A.jsx(EZ,{onChange:()=>{se(!0),dg(n)},t:M,textBlock:b,currentEditorNode:I,editor:n,isDisabledAddColumnButton:E,disabledMoveColumnButtons:S})})]})]}),A.jsx("div",{className:"draggable-block-target-line",ref:s})]}),t)}function OZ({anchorElem:n=document.body,isShowAddButton:t=!1}){const[e]=_e();return DZ(e,n,t)}const X2=/(^|\s):([a-z0-9_+-]+)$/i,RZ=/(^|\s)(:\)|:-\)|:d|:-d|;\)|;-\)|:\(|:-\(|:\*|<3)$/i,PZ=/(^|\s):$/,BZ=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","Escape","Enter","Tab"]);function jZ(n,t){return{leadOffset:t.index+t[1].length,matchingString:"",replaceableString:":"}}const FZ=n=>BZ.has(n),zZ=n=>n.key.length===1&&!n.ctrlKey&&!n.metaKey&&!n.altKey&&!n.isComposing;function UZ(n,t){if(t<=0)return{activate:!1,colonAt:-1,expectAt:-1};const e=n[t-1]??"",r=n[t-2]??"",s=t-2<0;return e===":"&&(s||/\s/.test(r))?{activate:!0,colonAt:t-1,expectAt:t}:{activate:!1,colonAt:-1,expectAt:-1}}function vk(n,t){const e=t.index+t[1].length,r=t[0].slice(t[1].length),s=t===n.match(X2)?t[2]??"":r;return{leadOffset:e,matchingString:s,replaceableString:r}}function KZ(){const[n]=_e(),{t}=it.useTranslation(),[e,r]=k.useState(!1),[s,i]=k.useState({top:0,left:0}),o=k.useRef(""),l=k.useRef({key:null,offset:null}),a=k.useRef({nodeKey:null,colonOffset:null,expectNextAt:null,active:!1,ts:0}),u=f=>{if(!a.current.active||f.length<1)return null;const g=f.match(PZ);if(g)return jZ(f,g);const p=f.match(X2);if(p)return vk(f,p);const m=f.match(RZ);return m?vk(f,m):null};k.useEffect(()=>n.registerCommand(FL,()=>(n.update(()=>{let f=G();if(!H(f)&&(xe().selectEnd(),f=G(),!H(f)))return!1;let g=f.anchor.getNode();if(Y(g)){const N=$e("");g.append(N),N.select(),g=N}const p=f.anchor.getNode();if(!Hn(p))return;const m=p.getTextContent(),y=f.anchor.offset,b=y>0?m[y-1]:"",C=(y>0&&!/\s/.test(b)?" ":"")+":",v=m.slice(0,y)+C+m.slice(y);p.setTextContent(v);const E=y+C.length;f.anchor.set(p.getKey(),E,"text"),f.focus.set(p.getKey(),E,"text"),a.current={nodeKey:p.getKey(),colonOffset:E-1,expectNextAt:E,active:!0,ts:Date.now()},o.current=":",e&&r(!1)}),!1),Te),[n,e]),k.useEffect(()=>n.registerUpdateListener(({editorState:f})=>{f.read(()=>{const g=G();if(H(g)&&g.isCollapsed()?l.current={key:g.anchor.getNode().getKey(),offset:g.anchor.offset}:l.current={key:null,offset:null},!e&&!a.current.active)return;if(!H(g)||!g.isCollapsed()){e&&r(!1),a.current.active=!1;return}const p=g.anchor.getNode().getKey(),m=g.anchor.offset,y=l.current;y.key!==null&&(p!==y.key||y.offset!==null&&Math.abs(m-y.offset)>1)&&(e&&r(!1),a.current.active=!1)})}),[n,e]),k.useEffect(()=>n.registerCommand(Hi,()=>(e&&r(!1),a.current.active=!1,!1),Te),[n,e]),k.useEffect(()=>n.registerCommand(Ko,f=>FZ(f.key)?(f.key==="Escape"&&e&&r(!1),a.current.active=!1,!1):(zZ(f)&&n.getEditorState().read(()=>{const g=G();if(!H(g)||!g.isCollapsed()){a.current.active=!1;return}const p=g.anchor.getNode(),m=p.getKey(),y=g.anchor.offset;if(f.key===":"){a.current={nodeKey:m,colonOffset:y,expectNextAt:y+1,active:!1,ts:Date.now()};return}const b=typeof(p==null?void 0:p.getTextContent)=="function"?p.getTextContent():"",{activate:x,colonAt:C,expectAt:v}=UZ(b,y);if(x){a.current={nodeKey:m,colonOffset:C,expectNextAt:v,active:!0,ts:Date.now()};return}a.current.active&&a.current.nodeKey===m||(a.current.active=!1)}),!1),Te),[n,e]);const d=k.useCallback(f=>{n.update(()=>{const g=G();if(!H(g)||!g.isCollapsed())return;const p=g.anchor.getNode(),m=g.anchor.offset,b=(F=>typeof(F==null?void 0:F.getTextContent)=="function"?F.getTextContent():"")(p),x=Math.max(0,m-1);let C=a.current.active&&a.current.colonOffset!=null?a.current.colonOffset:-1;if(C===-1){const F=b.lastIndexOf(":",x),j=b.lastIndexOf(";",x),U=b.lastIndexOf("<",x);C=Math.max(F,j,U)}if(C===-1)return;const v=b[C],E=C>0?b[C-1]:null;if(E&&!/\s/.test(E))return;const N=b.slice(C),S=/^(?:\:\)|\:\-\)|\:d|\:\-d|\;\)|\;\-\)|\:\(|\:\-\(|\:\*|<3)/i;let _=C,I=null;const L=N.match(S);if(L)I=C+L[0].length;else if(v===":"){const F=U=>/[a-z0-9_+\-]/i.test(U);let j=C+1;for(;j<b.length&&F(b[j]);)j++;j===C+1?I=C+1:I=j}else if(v===";"){const F=N.match(/^(?:\;\)|\;\-\))/);if(F)I=C+F[0].length;else return}else if(v==="<"){const F=N.match(/^(?:<3)/);if(F)I=C+F[0].length;else return}if(I==null)return;const M=b.slice(0,_)+f+b.slice(I);p.setTextContent(M);const R=_+f.length;g.anchor.set(p.getKey(),R,"text"),g.focus.set(p.getKey(),R,"text"),e&&r(!1),a.current.active=!1})},[n,e]);return A.jsx(z2,{onSelectOption:()=>{},triggerFn:u,onQueryChange:f=>{o.current=f},options:[],onClose:()=>{e&&r(!1),a.current.active=!1},onOpen:()=>{a.current.active&&n.update(()=>{const f=Wt();if(!f)return;const g=n.getElementByKey(f.getKey());g&&requestAnimationFrame(()=>{const p=g.getBoundingClientRect();i({top:p.bottom,left:p.left}),r(!0)})})},menuRenderFn:()=>A.jsx(O.Portal,{target:document.body,children:e&&A.jsx("div",{style:{position:"fixed",top:`${s.top}px`,left:`${s.left}px`,zIndex:1e4},children:A.jsx(Ct.EmojiPicker,{onChange:f=>{var g;d(((g=Ct.IconEntity.parse(f))==null?void 0:g.emoji)+" ")},querySearch:String(o.current)||"",locales:{emojis:t("editor.emoji.emojis"),search:t("editor.emoji.search"),searchResults:t("editor.emoji.searchResults"),searchNoResults:t("editor.emoji.searchNoResults"),remove:t("editor.emoji.remove"),emojiCategory:{frequent:t("editor.emoji.emojiCategory.frequent"),people:t("editor.emoji.emojiCategory.people"),nature:t("editor.emoji.emojiCategory.nature"),foods:t("editor.emoji.emojiCategory.foods"),activity:t("editor.emoji.emojiCategory.activity"),places:t("editor.emoji.emojiCategory.places"),objects:t("editor.emoji.emojiCategory.objects"),symbols:t("editor.emoji.emojiCategory.symbols"),flags:t("editor.emoji.emojiCategory.flags")}},popoverProps:{opened:e,transitionProps:ci,withinPortal:!0,onClose:()=>{e&&r(!1),a.current.active=!1}},children:A.jsx(A.Fragment,{})})})})})}const q2=be("INSERT_CODE_COMMAND"),WZ=()=>{var l;const n=G(),t=n.anchor,e=n.focus,r=t.getNode(),s=e.getNode(),i=(l=r.getParent())==null?void 0:l.getIndexWithinParent();return(s instanceof vr||s.getParent()instanceof vr)&&(i===0||i||-1)&&t.key!==e.key?(n.removeText(),!0):!1};function HZ(){const[n]=_e();return k.useEffect(()=>Xe(n.registerCommand(q2,()=>(n.update(()=>{const t=Wt(),e=xe();if(t){const r=QL().append(Oo(t.getTextContent()||""));t.replace(r),e.getChildrenSize()===1&&r.insertAfter(we())}}),!0),Te),n.registerCommand(Ko,t=>{const e=G();let r=null;if(t.shiftKey&&t.code==="Enter"&&H(e)&&(ts(e.anchor.getNode())?r=e.anchor.getNode():Qt(e.anchor.getNode())&&(r=e.anchor.getNode().getParent()),r)){const s=n.registerCommand(Al,()=>(s(),!0),ks);return n.update(()=>{const i=r==null?void 0:r.getNextSibling();i instanceof Gi&&!i.getTextContent()?i==null||i.selectStart():r.insertAfter(we()).selectStart()}),!0}return!1},0),n.registerCommand(Gl,t=>{var a;if(!(t!=null&&t.target)||!(t!=null&&t.clipboardData))return!1;t.preventDefault();const e=G(),s=up(e)["text/plain"],i=Object.values(t.target)[0],o=(a=me(i))==null?void 0:a.getParent(),l=(o==null?void 0:o.getTextContent())===s;if(ts(o)&&l){const u=`<pre data-highlight-language="${o.__language}" data-language="${o.__language}" data-collapsed="${o.__isCollapsed}"><code>${o.getTextContent()}</code></pre>`;return t.clipboardData.setData("text/html",u),!0}return!1},Te)),[n]),null}const Xw=()=>!!document.querySelector(".selected-all-document");function YZ(n,t){const e=n.getRangeAt(0);let r;if(n.anchorNode===t){let s=t;for(;s.firstElementChild!=null;)s=s.firstElementChild;r=s.getBoundingClientRect()}else r=e.getBoundingClientRect();return r}const Sk=()=>{var e;const n=(e=window.getSelection())==null?void 0:e.toString().trim();return n==null?void 0:n.replace(/\s+/g,"")};function Xa(n){const t=n.anchor,e=n.focus,r=n.anchor.getNode(),s=n.focus.getNode();return r===s?r:n.isBackward()?DS(e)?r:s:DS(t)?r:s}const GZ=10,ZZ=5;function cu(n,t,e,r=!1,s=GZ,i=ZZ){const o=e.parentElement,l=document.querySelector(".ai-editor-menu");if(n===null||!o||l){t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)",J2();return}const a=t.getBoundingClientRect(),u=o.getBoundingClientRect();let d=n.top-a.height-s;d<0&&(d=10);let f=n.left-i;if(d<u.top&&(d+=a.height+n.height+s*2),f+a.width>u.right&&(f=u.right-a.width-i),n.bottom-n.height>u.bottom){t.style.transform="translate(-1000px, -1000px)";return}if(n.bottom+n.height<u.top){t.style.transform="translate(-1000px, -1000px)";return}let g=d;a.top>=u.bottom&&(g=u.bottom),t.style.transform=`translate(${f}px, ${g}px)`,t.style.opacity="1",Z2()}function JZ({editor:n,anchorElem:t,isLink:e,isBold:r,isItalic:s,isUnderline:i,isCode:o,isStrikethrough:l,isSubscript:a,isSuperscript:u,component:d,isText:f}){const g=k.useRef(null),p=k.useRef(!1),m=k.useRef(null),y=k.useCallback(()=>{n.dispatchCommand(Cw,"create")},[n,e]);function b(){var C,v;g.current&&(p.current=!0,cu(((C=m.current)==null?void 0:C.rect)||null,g==null?void 0:g.current,t,(v=m.current)==null?void 0:v.isLink))}k.useEffect(()=>{const C=Sk();if(!f&&!(C!=null&&C.length)){let v=function(_){return _ instanceof HTMLElement};const E=g.current,N=window.getSelection();let S=!1;N!=null&&N.anchorNode&&v(N.anchorNode)&&N.anchorNode.className==="toolbar"&&(S=!0),E&&!S&&(m.current={rect:null,floatingElem:E,anchorElem:t,isLink:e},cu(null,E,t,e),p.current=!1)}},[f,n]),k.useEffect(()=>{if(g!=null&&g.current)return document.addEventListener("mouseup",b),()=>{document.removeEventListener("mouseup",b)}},[g]),k.useEffect(()=>{n.registerCommand(Ko,C=>{var v;return(C.metaKey||C.ctrlKey)&&C.code==="KeyA"?(C.preventDefault(),p7(n),Wt(!0)&&(A7()&&(g!=null&&g.current)?(cu(null,g==null?void 0:g.current,t,(v=m.current)==null?void 0:v.isLink),k_(),dw(n)):setTimeout(()=>{b()})),!0):!1},Te),n.registerCommand(nb,()=>(setTimeout(()=>{var C;g!=null&&g.current&&cu(null,g==null?void 0:g.current,t,(C=m.current)==null?void 0:C.isLink)},100),!1),Te)},[n]);const x=k.useCallback(()=>{const C=G(),v=g.current,E=window.getSelection();if(v===null)return;const N=n.getRootElement();let S=!1;const _=Sk();if(_&&_.length>0&&(S=!0),C!==null&&E!==null&&!E.isCollapsed&&N!==null&&N.contains(E.anchorNode)&&S){const I=YZ(E,N);if(m.current={rect:I,floatingElem:v,anchorElem:t,isLink:e},H(C)){const M=Xa(C).getParent(),R=M==null?void 0:M.getFormatType();p.current&&R&&g&&n.registerCommand(nb,F=>(F||setTimeout(()=>{var j,U;cu(((j=m.current)==null?void 0:j.rect)||null,v,t,(U=m.current)==null?void 0:U.isLink)},100),!1),Te)}}else m.current={rect:null,floatingElem:v,anchorElem:t,isLink:e}},[n,t,e]);return k.useEffect(()=>{const C=t.parentElement,v=()=>{n.getEditorState().read(()=>{x()})};return window.addEventListener("resize",v),C&&C.addEventListener("scroll",v),()=>{window.removeEventListener("resize",v),C&&C.removeEventListener("scroll",v)}},[n,x,t]),k.useEffect(()=>(n.getEditorState().read(()=>{x()}),Xe(n.registerUpdateListener(({editorState:C})=>{C.read(()=>{x()})}),n.registerCommand(Xr,()=>(x(),!1),Te))),[n,x]),A.jsx("div",{ref:g,className:`floating-text-format-popup doc-space-editor-wrapper ${f?"":"floating-text-format-popup-hidden"}`,onMouseDown:C=>C.preventDefault(),children:A.jsx("div",{children:n.isEditable()&&(d||A.jsxs(A.Fragment,{children:[A.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Lt,"bold")},className:"popup-item spaced "+(r?"active":""),"data-test-id":"toolbar-bold",children:A.jsx(Ce,{name:"bold",stroke:r?3:2})}),A.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Lt,"italic")},className:"popup-item spaced "+(s?"active":""),"data-test-id":"toolbar-italic",children:A.jsx(Ce,{name:"italic",stroke:s?3:2})}),A.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Lt,"underline")},className:"popup-item spaced "+(i?"active":""),"data-test-id":"toolbar-underline",children:A.jsx(Ce,{name:"underline",stroke:i?3:2})}),A.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Lt,"strikethrough")},className:"popup-item spaced "+(l?"active":""),"data-test-id":"toolbar-strikethrough",children:A.jsx(Ce,{name:"strikethrough",stroke:l?3:2})}),A.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Lt,"subscript")},className:"popup-item spaced "+(a?"active":""),"data-test-id":"toolbar-subscript",children:A.jsx(Ce,{name:"subscript",stroke:a?3:2})}),A.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Lt,"superscript")},className:"popup-item spaced "+(u?"active":""),"data-test-id":"toolbar-superscript",children:A.jsx(Ce,{name:"superscript",stroke:u?3:2})}),A.jsx("button",{type:"button",onClick:()=>{n.dispatchCommand(Lt,"code")},className:"popup-item spaced "+(o?"active":""),"data-test-id":"toolbar-code",children:A.jsx(Ce,{name:"code"})}),A.jsx("button",{type:"button",onClick:y,className:"popup-item spaced "+(e?"active":""),"data-test-id":"toolbar-link",children:A.jsx(Ce,{name:"link"})})]}))})})}function VZ(n,t,e){const[r,s]=k.useState(!1),[i,o]=k.useState(!1),[l,a]=k.useState(!1),[u,d]=k.useState(!1),[f,g]=k.useState(!1),[p,m]=k.useState(!1),[y,b]=k.useState(!1),[x,C]=k.useState(!1),[v,E]=k.useState(!1),N=Xw(),{disable:S}=k.useContext(kt),_=k.useCallback(()=>{n.getEditorState().read(()=>{var ne,ae,re;if(n.isComposing())return;const I=G(),L=window.getSelection(),M=n.getRootElement();if(L!==null&&(!H(I)||M===null||!M.contains(L.anchorNode))){s(!1);return}if(!H(I))return;const R=Xa(I);a(I.hasFormat("bold")),d(I.hasFormat("italic")),g(I.hasFormat("underline")),m(I.hasFormat("strikethrough")),b(I.hasFormat("subscript")),C(I.hasFormat("superscript")),E(I.hasFormat("code"));const F=R.getParent();Nn(F)||Nn(R)?o(!0):o(!1);const j=Qt(I.anchor.getNode()),U=(re=(ae=(ne=n.getElementByKey(R.__key))==null?void 0:ne.parentElement)==null?void 0:ae.parentElement)==null?void 0:re.classList.contains("Collapsible__title");!j&&I.getTextContent()!==""&&!U?s(Hn(R)||un(R)||Vs(R)||Mo(R)||dt(R)):s(!1);const V=I.getTextContent().replace(/\n/g,"");if(!I.isCollapsed()&&V===""){s(!1);return}})},[n]);return k.useEffect(()=>(document.addEventListener("selectionchange",_),()=>{document.removeEventListener("selectionchange",_)}),[_]),k.useEffect(()=>Xe(n.registerUpdateListener(()=>{_()}),n.registerRootListener(()=>{n.getRootElement()===null&&s(!1)})),[n,_]),S?null:Or.createPortal(A.jsx(JZ,{editor:n,anchorElem:t,isLink:i,isBold:l,isItalic:u,isStrikethrough:p,isSubscript:y,isSuperscript:x,isUnderline:f,isCode:v,component:e,isText:r&&!N}),document.body)}function Cb({anchorElem:n=document.body,component:t}){const[e]=_e();return VZ(e,n,t)}const QZ=({onFocus:n})=>{const[t]=_e();return k.useEffect(()=>{t.registerCommand(Wo,e=>{var r;return(r=t._rootElement)==null||r.classList.add("focused"),!e.relatedTarget&&n&&n(),!1},Te)},[]),null},XZ=be("INSERT_FORM_COMMAND");function qZ(){const[n]=_e();return k.useEffect(()=>{if(!n.hasNodes([Md]))throw new Error("FormPlugin: FormNode not registered on editor");return n.registerCommand(XZ,t=>{const e=kw(t);return V_(e),!0},Fe)},[n]),null}function $Z({validateUrl:n,attributes:t}){const[e]=_e();return k.useEffect(()=>{if(!e.hasNodes([ta]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),k.useEffect(()=>RK(e,ew({attributes:t,validateUrl:n})),[e,n,t]),null}function $2(){return A.jsx($Z,{attributes:{target:null,rel:"noreferrer"}})}const eJ=" ";function tJ(n){const t=n.getNodes();return t.length===0?new Set([n.anchor.getNode().getParentOrThrow(),n.focus.getNode().getParentOrThrow()]):new Set(t.map(e=>Y(e)?e:e.getParentOrThrow()))}function nJ(n){const t=G();if(!H(t))return!1;const e=t.focus.getNode();if(!(Ze(e)||dt(e)||dt(e.getParent())))return t.insertText(eJ),!1;const s=tJ(t);let i=0;for(const o of s)if(Ze(o))i=Math.max(Jy(o)+1,i);else if(dt(o)){const l=o.getParent();if(!Ze(l))throw new Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");i=Math.max(Jy(l)+1,i)}return i<=n}function rJ({maxDepth:n}){const[t]=_e();return k.useEffect(()=>Xe(t.registerCommand(Gs,()=>!nJ(n??7),xn)),[t,n]),null}function sJ(n){k.useEffect(()=>g9(n),[n])}function iJ(){const[n]=_e();return k.useEffect(()=>{if(!n.hasNodes([Br,En]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),sJ(n),null}const oJ=[{dependencies:[cp],export:n=>HI(n)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(n,t,e,r)=>{const s=na();r||n.getNextSibling()!=null?n.replace(s):n.insertBefore(s),s.selectNext()},type:"element"},...Tp];function lJ({transformers:n=oJ}){const[t]=_e();return k.useEffect(()=>wY(t,n),[t,n]),null}function aJ(){return A.jsx(lJ,{transformers:od})}function cJ({maxLength:n}){const[t]=_e();return k.useEffect(()=>{let e=null;return t.registerNodeTransform(Vl,r=>{const s=G();if(!H(s)||!s.isCollapsed())return;const i=t.getEditorState(),o=i.read(()=>r.getTextContentSize()),l=r.getTextContentSize();if(o!==l){const a=l-n,u=s.anchor;a>0&&(o===n&&e!==i?(e=i,o5(t,i)):q3(t,u,a))}})},[t,n]),null}function uJ(){const[n]=_e(),{maxHeight:t}=k.useContext(kt),e=()=>{GL(n)};return t?null:A.jsx("div",{className:"new-paragraph",onClick:e})}var dJ="function",fJ="object",hJ="string",gJ="undefined",pJ=typeof document!==gJ&&document,mJ=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],ys=1e-7,eh={cm:function(n){return n*96/2.54},mm:function(n){return n*96/254},in:function(n){return n*96},pt:function(n){return n*96/72},pc:function(n){return n*96/6},"%":function(n,t){return n*t/100},vw:function(n,t){return t===void 0&&(t=window.innerWidth),n/100*t},vh:function(n,t){return t===void 0&&(t=window.innerHeight),n/100*t},vmax:function(n,t){return t===void 0&&(t=Math.max(window.innerWidth,window.innerHeight)),n/100*t},vmin:function(n,t){return t===void 0&&(t=Math.min(window.innerWidth,window.innerHeight)),n/100*t}};/*! *****************************************************************************
99
+ Copyright (c) Microsoft Corporation.
100
+
101
+ Permission to use, copy, modify, and/or distribute this software for any
102
+ purpose with or without fee is hereby granted.
103
+
104
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
105
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
106
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
107
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
108
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
109
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
110
+ PERFORMANCE OF THIS SOFTWARE.
111
+ ***************************************************************************** */function AJ(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var r=Array(n),s=0,t=0;t<e;t++)for(var i=arguments[t],o=0,l=i.length;o<l;o++,s++)r[s]=i[o];return r}function zo(n){return n&&typeof n===fJ}function bg(n){return Array.isArray(n)}function ad(n){return typeof n===hJ}function qw(n){return typeof n===dJ}function yJ(n,t){var e=n===""||n==" ",r=t===""||t==" ";return r&&e||n===t}function eM(n,t,e,r,s){var i=$w(n,t,e);return i?e:bJ(n,t,e+1,r,s)}function $w(n,t,e){if(!n.ignore)return null;var r=t.slice(Math.max(e-3,0),e+3).join("");return new RegExp(n.ignore).exec(r)}function bJ(n,t,e,r,s){for(var i=function(u){var d=t[u].trim();if(d===n.close&&!$w(n,t,u))return{value:u};var f=u,g=cd(s,function(p){var m=p.open;return m===d});if(g&&(f=eM(g,t,u,r,s)),f===-1)return o=u,"break";u=f,o=u},o,l=e;l<r;++l){var a=i(l);if(l=o,typeof a=="object")return a.value;if(a==="break")break}return-1}function eC(n,t){var e=ad(t)?{separator:t}:t,r=e.separator,s=r===void 0?",":r,i=e.isSeparateFirst,o=e.isSeparateOnlyOpenClose,l=e.isSeparateOpenClose,a=l===void 0?o:l,u=e.openCloseCharacters,d=u===void 0?mJ:u,f=d.map(function(_){var I=_.open,L=_.close;return I===L?I:I+"|"+L}).join("|"),g="(\\s*"+s+"\\s*|"+f+"|\\s+)",p=new RegExp(g,"g"),m=n.split(p).filter(function(_){return _&&_!=="undefined"}),y=m.length,b=[],x=[];function C(){return x.length?(b.push(x.join("")),x=[],!0):!1}for(var v=function(_){var I=m[_].trim(),L=_,M=cd(d,function(j){var U=j.open;return U===I}),R=cd(d,function(j){var U=j.close;return U===I});if(M){if(L=eM(M,m,_,y,d),L!==-1&&a)return C()&&i||(b.push(m.slice(_,L+1).join("")),_=L,i)?(E=_,"break"):(E=_,"continue")}else if(R&&!$w(R,m,_)){var F=AJ(d);return F.splice(d.indexOf(R),1),{value:eC(n,{separator:s,isSeparateFirst:i,isSeparateOnlyOpenClose:o,isSeparateOpenClose:a,openCloseCharacters:F})}}else if(yJ(I,s)&&!o)return C(),i?(E=_,"break"):(E=_,"continue");L===-1&&(L=y-1),x.push(m.slice(_,L+1).join("")),_=L,E=_},E,N=0;N<y;++N){var S=v(N);if(N=E,typeof S=="object")return S.value;if(S==="break")break}return x.length&&b.push(x.join("")),b}function wJ(n){return eC(n,"")}function yu(n){return eC(n,",")}function CJ(n){var t=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(n);return!t||t.length<4?{}:{prefix:t[1],value:t[2],suffix:t[3]}}function wg(n){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(n);if(!t)return{prefix:"",unit:"",value:NaN};var e=t[1],r=t[2],s=t[3];return{prefix:e,unit:s,value:parseFloat(r)}}function xb(n){return n.replace(/[\s-_]+([^\s-_])/g,function(t,e){return e.toUpperCase()})}function vb(){return Date.now?Date.now():new Date().getTime()}function Cg(n,t,e){e===void 0&&(e=-1);for(var r=n.length,s=0;s<r;++s)if(t(n[s],s,n))return s;return e}function cd(n,t,e){var r=Cg(n,t);return r>-1?n[r]:e}function Ek(n,t){var e=wg(n),r=e.value,s=e.unit;if(zo(t)){var i=t[s];if(i){if(qw(i))return i(r);if(eh[s])return eh[s](r,i)}}else if(s==="%")return r*t/100;return eh[s]?eh[s](r):r}function tM(n,t,e){return Math.max(t,Math.min(n,e))}function kk(n,t,e,r){return r===void 0&&(r=n[0]/n[1]),[[Ni(t[0],ys),Ni(t[0]/r,ys)],[Ni(t[1]*r,ys),Ni(t[1],ys)]].filter(function(s){return s.every(function(i,o){var l=t[o],a=Ni(l,ys);return e?i<=l||i<=a:i>=l||i>=a})})[0]||n}function xJ(n,t,e,r){if(!r)return n.map(function(p,m){return tM(p,t[m],e[m])});var s=n[0],i=n[1],o=r===!0?s/i:r,l=kk(n,t,!1,o),a=l[0],u=l[1],d=kk(n,e,!0,o),f=d[0],g=d[1];return s<a||i<u?(s=a,i=u):(s>f||i>g)&&(s=f,i=g),[s,i]}function vJ(n){for(var t=n.length,e=0,r=t-1;r>=0;--r)e+=n[r];return e}function SJ(n){for(var t=n.length,e=0,r=t-1;r>=0;--r)e+=n[r];return t?e/t:0}function Tk(n,t){var e=t[0]-n[0],r=t[1]-n[1],s=Math.atan2(r,e);return s>=0?s:s+Math.PI*2}function EJ(n){return[0,1].map(function(t){return SJ(n.map(function(e){return e[t]}))})}function _k(n){var t=EJ(n),e=Tk(t,n[0]),r=Tk(t,n[1]);return e<r&&r-e<Math.PI||e>r&&r-e<-Math.PI?1:-1}function Sb(n,t){return Math.sqrt(Math.pow((t?t[0]:0)-n[0],2)+Math.pow((t?t[1]:0)-n[1],2))}function Ni(n,t){var e=1/t;return Math.round(n/t)/e}function kJ(n,t){return n.classList?n.classList.contains(t):!!n.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function TJ(n,t){n.classList?n.classList.add(t):n.className+=" "+t}function pn(n,t,e,r){n.addEventListener(t,e,r)}function sn(n,t,e,r){n.removeEventListener(t,e,r)}function ki(n){return(n==null?void 0:n.ownerDocument)||pJ}function gl(n){var t;return((t=n==null?void 0:n.ownerDocument)===null||t===void 0?void 0:t.defaultView)||window}function _J(n){return n&&"postMessage"in n&&"blur"in n&&"self"in n}function Nk(n){return zo(n)&&n.nodeName&&n.nodeType&&"ownerDocument"in n}/*! *****************************************************************************
112
+ Copyright (c) Microsoft Corporation.
113
+
114
+ Permission to use, copy, modify, and/or distribute this software for any
115
+ purpose with or without fee is hereby granted.
116
+
117
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
118
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
119
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
120
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
121
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
122
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
123
+ PERFORMANCE OF THIS SOFTWARE.
124
+ ***************************************************************************** */var Eb=function(){return Eb=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Eb.apply(this,arguments)};function NJ(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var r=Array(n),s=0,t=0;t<e;t++)for(var i=arguments[t],o=0,l=i.length;o<l;o++,s++)r[s]=i[o];return r}var Lp=(function(){function n(){this._events={}}var t=n.prototype;return t.on=function(e,r){if(zo(e))for(var s in e)this.on(s,e[s]);else this._addEvent(e,r,{});return this},t.off=function(e,r){if(!e)this._events={};else if(zo(e))for(var s in e)this.off(s);else if(!r)this._events[e]=[];else{var i=this._events[e];if(i){var o=Cg(i,function(l){return l.listener===r});o>-1&&i.splice(o,1)}}return this},t.once=function(e,r){var s=this;return r&&this._addEvent(e,r,{once:!0}),new Promise(function(i){s._addEvent(e,i,{once:!0})})},t.emit=function(e,r){var s=this;r===void 0&&(r={});var i=this._events[e];if(!e||!i)return!0;var o=!1;return r.eventType=e,r.stop=function(){o=!0},r.currentTarget=this,NJ(i).forEach(function(l){l.listener(r),l.once&&s.off(e,l.listener)}),!o},t.trigger=function(e,r){return r===void 0&&(r={}),this.emit(e,r)},t._addEvent=function(e,r,s){var i=this._events;i[e]=i[e]||[];var o=i[e];o.push(Eb({listener:r},s))},n})();/*! *****************************************************************************
125
+ Copyright (c) Microsoft Corporation.
126
+
127
+ Permission to use, copy, modify, and/or distribute this software for any
128
+ purpose with or without fee is hereby granted.
129
+
130
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
131
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
132
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
133
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
134
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
135
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
136
+ PERFORMANCE OF THIS SOFTWARE.
137
+ ***************************************************************************** */var kb=function(n,t){return kb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])},kb(n,t)};function IJ(n,t){kb(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var hn=function(){return hn=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},hn.apply(this,arguments)};function LJ(n,t){var e=t[0]-n[0],r=t[1]-n[1],s=Math.atan2(r,e);return s>=0?s:s+Math.PI*2}function FA(n){return LJ([n[0].clientX,n[0].clientY],[n[1].clientX,n[1].clientY])/Math.PI*180}function MJ(n){return n.touches&&n.touches.length>=2}function th(n){return n?n.touches?OJ(n.touches):[nM(n)]:[]}function DJ(n){return n&&(n.type.indexOf("mouse")>-1||"button"in n)}function Ik(n,t,e){var r=e.length,s=Mu(n,r),i=s.clientX,o=s.clientY,l=s.originalClientX,a=s.originalClientY,u=Mu(t,r),d=u.clientX,f=u.clientY,g=Mu(e,r),p=g.clientX,m=g.clientY,y=i-d,b=o-f,x=i-p,C=o-m;return{clientX:l,clientY:a,deltaX:y,deltaY:b,distX:x,distY:C}}function zA(n){return Math.sqrt(Math.pow(n[0].clientX-n[1].clientX,2)+Math.pow(n[0].clientY-n[1].clientY,2))}function OJ(n){for(var t=Math.min(n.length,2),e=[],r=0;r<t;++r)e.push(nM(n[r]));return e}function nM(n){return{clientX:n.clientX,clientY:n.clientY}}function Mu(n,t){t===void 0&&(t=n.length);for(var e={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(n.length,t),s=0;s<r;++s){var i=n[s];e.originalClientX+="originalClientX"in i?i.originalClientX:i.clientX,e.originalClientY+="originalClientY"in i?i.originalClientY:i.clientY,e.clientX+=i.clientX,e.clientY+=i.clientY}return t?{clientX:e.clientX/t,clientY:e.clientY/t,originalClientX:e.originalClientX/t,originalClientY:e.originalClientY/t}:e}var UA=(function(){function n(t){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=t,this.prevClients=t,this.length=t.length}return n.prototype.getAngle=function(t){return t===void 0&&(t=this.prevClients),FA(t)},n.prototype.getRotation=function(t){return t===void 0&&(t=this.prevClients),FA(t)-FA(this.startClients)},n.prototype.getPosition=function(t,e){t===void 0&&(t=this.prevClients);var r=Ik(t||this.prevClients,this.prevClients,this.startClients),s=r.deltaX,i=r.deltaY;return this.movement+=Math.sqrt(s*s+i*i),this.prevClients=t,r},n.prototype.getPositions=function(t){t===void 0&&(t=this.prevClients);for(var e=this.prevClients,r=this.startClients,s=Math.min(this.length,e.length),i=[],o=0;o<s;++o)i[o]=Ik([t[o]],[e[o]],[r[o]]);return i},n.prototype.getMovement=function(t){var e=this.movement;if(!t)return e;var r=Mu(t,this.length),s=Mu(this.prevClients,this.length),i=r.clientX-s.clientX,o=r.clientY-s.clientY;return Math.sqrt(i*i+o*o)+e},n.prototype.getDistance=function(t){return t===void 0&&(t=this.prevClients),zA(t)},n.prototype.getScale=function(t){return t===void 0&&(t=this.prevClients),zA(t)/zA(this.startClients)},n.prototype.move=function(t,e){this.startClients.forEach(function(r){r.clientX-=t,r.clientY-=e}),this.prevClients.forEach(function(r){r.clientX-=t,r.clientY-=e})},n})(),Lk=["textarea","input"],RJ=(function(n){IJ(t,n);function t(e,r){r===void 0&&(r={});var s=n.call(this)||this;s.options={},s.flag=!1,s.pinchFlag=!1,s.data={},s.isDrag=!1,s.isPinch=!1,s.clientStores=[],s.targets=[],s.prevTime=0,s.doubleFlag=!1,s._useMouse=!1,s._useTouch=!1,s._useDrag=!1,s._dragFlag=!1,s._isTrusted=!1,s._isMouseEvent=!1,s._isSecondaryButton=!1,s._preventMouseEvent=!1,s._prevInputEvent=null,s._isDragAPI=!1,s._isIdle=!0,s._preventMouseEventId=0,s._window=window,s.onDragStart=function(g,p){if(p===void 0&&(p=!0),!(!s.flag&&g.cancelable===!1)){var m=g.type.indexOf("drag")>=-1;if(!(s.flag&&m)){s._isDragAPI=!0;var y=s.options,b=y.container,x=y.pinchOutside,C=y.preventWheelClick,v=y.preventRightClick,E=y.preventDefault,N=y.checkInput,S=y.dragFocusedInput,_=y.preventClickEventOnDragStart,I=y.preventClickEventOnDrag,L=y.preventClickEventByCondition,M=s._useTouch,R=!s.flag;if(s._isSecondaryButton=g.which===3||g.button===2,C&&(g.which===2||g.button===1)||v&&(g.which===3||g.button===2))return s.stop(),!1;if(R){var F=s._window.document.activeElement,j=g.target;if(j){var U=j.tagName.toLowerCase(),V=Lk.indexOf(U)>-1,ne=j.isContentEditable;if(V||ne){if(N||!S&&F===j)return!1;if(F&&(F===j||ne&&F.isContentEditable&&F.contains(j)))if(S)j.blur();else return!1}else if((E||g.type==="touchstart")&&F){var ae=F.tagName.toLowerCase();(F.isContentEditable||Lk.indexOf(ae)>-1)&&F.blur()}(_||I||L)&&pn(s._window,"click",s._onClick,!0)}s.clientStores=[new UA(th(g))],s._isIdle=!1,s.flag=!0,s.isDrag=!1,s._isTrusted=p,s._dragFlag=!0,s._prevInputEvent=g,s.data={},s.doubleFlag=vb()-s.prevTime<200,s._isMouseEvent=DJ(g),!s._isMouseEvent&&s._preventMouseEvent&&s._allowMouseEvent();var re=s._preventMouseEvent||s.emit("dragStart",hn(hn({data:s.data,datas:s.data,inputEvent:g,isMouseEvent:s._isMouseEvent,isSecondaryButton:s._isSecondaryButton,isTrusted:p,isDouble:s.doubleFlag},s.getCurrentStore().getPosition()),{preventDefault:function(){g.preventDefault()},preventDrag:function(){s._dragFlag=!1}}));re===!1&&s.stop(),s._isMouseEvent&&s.flag&&E&&g.preventDefault()}if(!s.flag)return!1;var ee=0;if(R?(s._attchDragEvent(),M&&x&&(ee=setTimeout(function(){pn(b,"touchstart",s.onDragStart,{passive:!1})}))):M&&x&&sn(b,"touchstart",s.onDragStart),s.flag&&MJ(g)){if(clearTimeout(ee),R&&g.touches.length!==g.changedTouches.length)return;s.pinchFlag||s.onPinchStart(g)}}}},s.onDrag=function(g,p){if(s.flag){var m=s.options.preventDefault;!s._isMouseEvent&&m&&g.preventDefault(),s._prevInputEvent=g;var y=th(g),b=s.moveClients(y,g,!1);if(s._dragFlag){if(s.pinchFlag||b.deltaX||b.deltaY){var x=s._preventMouseEvent||s.emit("drag",hn(hn({},b),{isScroll:!!p,inputEvent:g}));if(x===!1){s.stop();return}}s.pinchFlag&&s.onPinch(g,y)}s.getCurrentStore().getPosition(y,!0)}},s.onDragEnd=function(g){if(s.flag){var p=s.options,m=p.pinchOutside,y=p.container,b=p.preventClickEventOnDrag,x=p.preventClickEventOnDragStart,C=p.preventClickEventByCondition,v=s.isDrag;(b||x||C)&&requestAnimationFrame(function(){s._allowClickEvent()}),!C&&!x&&b&&!v&&s._allowClickEvent(),s._useTouch&&m&&sn(y,"touchstart",s.onDragStart),s.pinchFlag&&s.onPinchEnd(g);var E=g!=null&&g.touches?th(g):[],N=E.length;N===0||!s.options.keepDragging?s.flag=!1:s._addStore(new UA(E));var S=s._getPosition(),_=vb(),I=!v&&s.doubleFlag;s._prevInputEvent=null,s.prevTime=v||I?0:_,s.flag||(s._dettachDragEvent(),s._preventMouseEvent||s.emit("dragEnd",hn({data:s.data,datas:s.data,isDouble:I,isDrag:v,isClick:!v,isMouseEvent:s._isMouseEvent,isSecondaryButton:s._isSecondaryButton,inputEvent:g,isTrusted:s._isTrusted},S)),s.clientStores=[],s._isMouseEvent||(s._preventMouseEvent=!0,clearTimeout(s._preventMouseEventId),s._preventMouseEventId=setTimeout(function(){s._preventMouseEvent=!1},200)),s._isIdle=!0)}},s.onBlur=function(){s.onDragEnd()},s._allowClickEvent=function(){sn(s._window,"click",s._onClick,!0)},s._onClick=function(g){s._allowClickEvent(),s._allowMouseEvent();var p=s.options.preventClickEventByCondition;p!=null&&p(g)||(g.stopPropagation(),g.preventDefault())},s._onContextMenu=function(g){var p=s.options;p.preventRightClick?s.onDragEnd(g):g.preventDefault()},s._passCallback=function(){};var i=[].concat(e),o=i[0];s._window=_J(o)?o:gl(o),s.options=hn({checkInput:!1,container:o&&!("document"in o)?gl(o):o,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},r);var l=s.options,a=l.container,u=l.events,d=l.checkWindowBlur;if(s._useDrag=u.indexOf("drag")>-1,s._useTouch=u.indexOf("touch")>-1,s._useMouse=u.indexOf("mouse")>-1,s.targets=i,s._useDrag&&i.forEach(function(g){pn(g,"dragstart",s.onDragStart)}),s._useMouse&&(i.forEach(function(g){pn(g,"mousedown",s.onDragStart),pn(g,"mousemove",s._passCallback)}),pn(a,"contextmenu",s._onContextMenu)),d&&pn(gl(),"blur",s.onBlur),s._useTouch){var f={passive:!1};i.forEach(function(g){pn(g,"touchstart",s.onDragStart,f),pn(g,"touchmove",s._passCallback,f)})}return s}return 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(e){return this.getCurrentStore().getMovement(e)+this.clientStores.slice(1).reduce(function(r,s){return r+s.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(e,r,s,i){i===void 0&&(i=!0),this.flag&&(this.clientStores[0].move(e,r),i&&this.onDrag(s,!0))},t.prototype.move=function(e,r){var s=e[0],i=e[1],o=this.getCurrentStore(),l=o.prevClients;return this.moveClients(l.map(function(a){var u=a.clientX,d=a.clientY;return{clientX:u+s,clientY:d+i,originalClientX:u,originalClientY:d}}),r,!0)},t.prototype.triggerDragStart=function(e){this.onDragStart(e,!1)},t.prototype.setEventData=function(e){var r=this.data;for(var s in e)r[s]=e[s];return this},t.prototype.setEventDatas=function(e){return this.setEventData(e)},t.prototype.getCurrentEvent=function(e){return e===void 0&&(e=this._prevInputEvent),hn(hn({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:e})},t.prototype.getEventData=function(){return this.data},t.prototype.getEventDatas=function(){return this.data},t.prototype.unset=function(){var e=this,r=this.targets,s=this.options.container;this.off(),sn(this._window,"blur",this.onBlur),this._useDrag&&r.forEach(function(i){sn(i,"dragstart",e.onDragStart)}),this._useMouse&&(r.forEach(function(i){sn(i,"mousedown",e.onDragStart)}),sn(s,"contextmenu",this._onContextMenu)),this._useTouch&&(r.forEach(function(i){sn(i,"touchstart",e.onDragStart)}),sn(s,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(e){var r=this,s=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>s)){var i=new UA(th(e));this.pinchFlag=!0,this._addStore(i);var o=this.emit("pinchStart",hn(hn({data:this.data,datas:this.data,angle:i.getAngle(),touches:this.getCurrentStore().getPositions()},i.getPosition()),{inputEvent:e,isTrusted:this._isTrusted,preventDefault:function(){e.preventDefault()},preventDrag:function(){r._dragFlag=!1}}));o===!1&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(e,r){if(!(!this.flag||!this.pinchFlag||r.length<2)){var s=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",hn(hn({data:this.data,datas:this.data,movement:this.getMovement(r),angle:s.getAngle(r),rotation:s.getRotation(r),touches:s.getPositions(r),scale:s.getScale(r),distance:s.getDistance(r)},s.getPosition(r)),{inputEvent:e,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(e){if(this.pinchFlag){var r=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var s=this.getCurrentStore();this.emit("pinchEnd",hn(hn({data:this.data,datas:this.data,isPinch:r,touches:s.getPositions()},s.getPosition()),{inputEvent:e}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(e,r,s){var i=this._getPosition(e,s),o=this.isDrag;(i.deltaX||i.deltaY)&&(this.isDrag=!0);var l=!1;return!o&&this.isDrag&&(l=!0),hn(hn({data:this.data,datas:this.data},i),{movement:this.getMovement(e),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:r,isTrusted:this._isTrusted,isFirstDrag:l})},t.prototype._addStore=function(e){this.clientStores.splice(0,0,e)},t.prototype._getPosition=function(e,r){var s=this.getCurrentStore(),i=s.getPosition(e,r),o=this.clientStores.slice(1).reduce(function(u,d){var f=d.getPosition();return u.distX+=f.distX,u.distY+=f.distY,u},i),l=o.distX,a=o.distY;return hn(hn({},i),{distX:l,distY:a})},t.prototype._attchDragEvent=function(){var e=this._window,r=this.options.container,s={passive:!1};this._isDragAPI&&(pn(r,"dragover",this.onDrag,s),pn(e,"dragend",this.onDragEnd)),this._useMouse&&(pn(r,"mousemove",this.onDrag),pn(e,"mouseup",this.onDragEnd)),this._useTouch&&(pn(r,"touchmove",this.onDrag,s),pn(e,"touchend",this.onDragEnd,s),pn(e,"touchcancel",this.onDragEnd,s))},t.prototype._dettachDragEvent=function(){var e=this._window,r=this.options.container;this._isDragAPI&&(sn(r,"dragover",this.onDrag),sn(e,"dragend",this.onDragEnd)),this._useMouse&&(sn(r,"mousemove",this.onDrag),sn(e,"mouseup",this.onDragEnd)),this._useTouch&&(sn(r,"touchstart",this.onDragStart),sn(r,"touchmove",this.onDrag),sn(e,"touchend",this.onDragEnd),sn(e,"touchcancel",this.onDragEnd))},t.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},t})(Lp);function PJ(n,t){return function(e){e&&(n[t]=e)}}function BJ(n,t){return function(e){var r=e.prototype;n.forEach(function(s){t(r,s)})}}function jJ(n,t){return t===void 0&&(t={}),function(e,r){n.forEach(function(s){var i=t[s]||s;i in e||(e[i]=function(){for(var o,l=[],a=0;a<arguments.length;a++)l[a]=arguments[a];var u=(o=this[r])[s].apply(o,l);return u===this[r]?this:u})})}}var FJ=(function(){function n(){this.keys=[],this.values=[]}var t=n.prototype;return t.get=function(e){return this.values[this.keys.indexOf(e)]},t.set=function(e,r){var s=this.keys,i=this.values,o=s.indexOf(e),l=o===-1?s.length:o;s[l]=e,i[l]=r},n})(),zJ=(function(){function n(){this.object={}}var t=n.prototype;return t.get=function(e){return this.object[e]},t.set=function(e,r){this.object[e]=r},n})(),UJ=typeof Map=="function",KJ=(function(){function n(){}var t=n.prototype;return t.connect=function(e,r){this.prev=e,this.next=r,e&&(e.next=this),r&&(r.prev=this)},t.disconnect=function(){var e=this.prev,r=this.next;e&&(e.next=r),r&&(r.prev=e)},t.getIndex=function(){for(var e=this,r=-1;e;)e=e.prev,++r;return r},n})();function WJ(n,t){var e=[],r=[];return n.forEach(function(s){var i=s[0],o=s[1],l=new KJ;e[i]=l,r[o]=l}),e.forEach(function(s,i){s.connect(e[i-1])}),n.filter(function(s,i){return!t[i]}).map(function(s,i){var o=s[0],l=s[1];if(o===l)return[0,0];var a=e[o],u=r[l-1],d=a.getIndex();a.disconnect(),u?a.connect(u,u.next):a.connect(void 0,e[0]);var f=a.getIndex();return[d,f]})}var HJ=(function(){function n(e,r,s,i,o,l,a,u){this.prevList=e,this.list=r,this.added=s,this.removed=i,this.changed=o,this.maintained=l,this.changedBeforeAdded=a,this.fixed=u}var t=n.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 e=WJ(this.changedBeforeAdded,this.fixed),r=this.changed,s=[];this.cacheOrdered=e.filter(function(i,o){var l=i[0],a=i[1],u=r[o],d=u[0],f=u[1];if(l!==a)return s.push([d,f]),!0}),this.cachePureChanged=s},n})();function YJ(n,t,e){var r=UJ?Map:e?zJ:FJ,s=e||function(C){return C},i=[],o=[],l=[],a=n.map(s),u=t.map(s),d=new r,f=new r,g=[],p=[],m={},y=[],b=0,x=0;return a.forEach(function(C,v){d.set(C,v)}),u.forEach(function(C,v){f.set(C,v)}),a.forEach(function(C,v){var E=f.get(C);typeof E>"u"?(++x,o.push(v)):m[E]=x}),u.forEach(function(C,v){var E=d.get(C);typeof E>"u"?(i.push(v),++b):(l.push([E,v]),x=m[v]||0,g.push([E-x,v-b]),p.push(v===E),E!==v&&y.push([E,v]))}),o.reverse(),new HJ(n,t,i,o,y,l,g,p)}var GJ=typeof Map=="function"?void 0:(function(){var n=0;return function(t){return t.__DIFF_KEY__||(t.__DIFF_KEY__=++n)}})();function bu(n,t){return YJ(n,t,GJ)}/*! *****************************************************************************
138
+ Copyright (c) Microsoft Corporation.
139
+
140
+ Permission to use, copy, modify, and/or distribute this software for any
141
+ purpose with or without fee is hereby granted.
142
+
143
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
144
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
145
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
146
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
147
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
148
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
149
+ PERFORMANCE OF THIS SOFTWARE.
150
+ ***************************************************************************** */var Tb=function(n,t){return Tb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])},Tb(n,t)};function ZJ(n,t){Tb(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Ua=function(){return Ua=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Ua.apply(this,arguments)};function JJ(n){var t=n.container;return t===document.body?[t.scrollLeft||document.documentElement.scrollLeft,t.scrollTop||document.documentElement.scrollTop]:[t.scrollLeft,t.scrollTop]}function Mk(n,t){return n.addEventListener("scroll",t),function(){n.removeEventListener("scroll",t)}}function nh(n){if(n){if(ad(n))return document.querySelector(n)}else return null;if(qw(n))return n();if(n instanceof Element)return n;if("current"in n)return n.current;if("value"in n)return n.value}var VJ=(function(n){ZJ(t,n);function t(){var r=n!==null&&n.apply(this,arguments)||this;return r._startRect=null,r._startPos=[],r._prevTime=0,r._timer=0,r._prevScrollPos=[0,0],r._isWait=!1,r._flag=!1,r._currentOptions=null,r._lock=!1,r._unregister=null,r._onScroll=function(){var s=r._currentOptions;r._lock||!s||r.emit("scrollDrag",{next:function(i){r.checkScroll({container:s.container,inputEvent:i})}})},r}var e=t.prototype;return e.dragStart=function(r,s){var i=nh(s.container);if(!i){this._flag=!1;return}var o=0,l=0,a=0,u=0;if(i===document.body)a=window.innerWidth,u=window.innerHeight;else{var d=i.getBoundingClientRect();o=d.top,l=d.left,a=d.width,u=d.height}this._flag=!0,this._startPos=[r.clientX,r.clientY],this._startRect={top:o,left:l,width:a,height:u},this._prevScrollPos=this._getScrollPosition([0,0],s),this._currentOptions=s,this._registerScrollEvent(s)},e.drag=function(r,s){if(clearTimeout(this._timer),!!this._flag){var i=r.clientX,o=r.clientY,l=s.threshold,a=l===void 0?0:l,u=this,d=u._startRect,f=u._startPos;this._currentOptions=s;var g=[0,0];return d.top>o-a?(f[1]>d.top||o<f[1])&&(g[1]=-1):d.top+d.height<o+a&&(f[1]<d.top+d.height||o>f[1])&&(g[1]=1),d.left>i-a?(f[0]>d.left||i<f[0])&&(g[0]=-1):d.left+d.width<i+a&&(f[0]<d.left+d.width||i>f[0])&&(g[0]=1),!g[0]&&!g[1]?!1:this._continueDrag(Ua(Ua({},s),{direction:g,inputEvent:r,isDrag:!0}))}},e.checkScroll=function(r){var s=this;if(this._isWait)return!1;var i=r.prevScrollPos,o=i===void 0?this._prevScrollPos:i,l=r.direction,a=r.throttleTime,u=a===void 0?0:a,d=r.inputEvent,f=r.isDrag,g=this._getScrollPosition(l||[0,0],r),p=g[0]-o[0],m=g[1]-o[1],y=l||[p?Math.abs(p)/p:0,m?Math.abs(m)/m:0];return this._prevScrollPos=g,this._lock=!1,!p&&!m?!1:(this.emit("move",{offsetX:y[0]?p:0,offsetY:y[1]?m:0,inputEvent:d}),u&&f&&(clearTimeout(this._timer),this._timer=window.setTimeout(function(){s._continueDrag(r)},u)),!0)},e.dragEnd=function(){this._flag=!1,this._lock=!1,clearTimeout(this._timer),this._unregisterScrollEvent()},e._getScrollPosition=function(r,s){var i=s.container,o=s.getScrollPosition,l=o===void 0?JJ:o;return l({container:nh(i),direction:r})},e._continueDrag=function(r){var s=this,i,o=r.container,l=r.direction,a=r.throttleTime,u=r.useScroll,d=r.isDrag,f=r.inputEvent;if(!(!this._flag||d&&this._isWait)){var g=vb(),p=Math.max(a+this._prevTime-g,0);if(p>0)return clearTimeout(this._timer),this._timer=window.setTimeout(function(){s._continueDrag(r)},p),!1;this._prevTime=g;var m=this._getScrollPosition(l,r);this._prevScrollPos=m,d&&(this._isWait=!0),u||(this._lock=!0);var y={container:nh(o),direction:l,inputEvent:f};return(i=r.requestScroll)===null||i===void 0||i.call(r,y),this.emit("scroll",y),this._isWait=!1,u||this.checkScroll(Ua(Ua({},r),{prevScrollPos:m,direction:l,inputEvent:f}))}},e._registerScrollEvent=function(r){this._unregisterScrollEvent();var s=r.checkScrollEvent;if(s){var i=s===!0?Mk:s,o=nh(r.container);s===!0&&(o===document.body||o===document.documentElement)?this._unregister=Mk(window,this._onScroll):this._unregister=i(o,this._onScroll)}},e._unregisterScrollEvent=function(){var r;(r=this._unregister)===null||r===void 0||r.call(this),this._unregister=null},t})(Lp),_b=function(n,t){return _b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])},_b(n,t)};function QJ(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");_b(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function XJ(n,t){return t={exports:{}},n(t,t.exports),t.exports}var Fd=XJ(function(n,t){function e(a){if(a&&typeof a=="object"){var u=a.which||a.keyCode||a.charCode;u&&(a=u)}if(typeof a=="number")return o[a];var d=String(a),f=r[d.toLowerCase()];if(f)return f;var f=s[d.toLowerCase()];if(f)return f;if(d.length===1)return d.charCodeAt(0)}e.isEventKey=function(u,d){if(u&&typeof u=="object"){var f=u.which||u.keyCode||u.charCode;if(f==null)return!1;if(typeof d=="string"){var g=r[d.toLowerCase()];if(g)return g===f;var g=s[d.toLowerCase()];if(g)return g===f}else if(typeof d=="number")return d===f;return!1}},t=n.exports=e;var r=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},s=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
151
+ * Programatically add the following
152
+ */for(i=97;i<123;i++)r[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)r[i-48]=i;for(i=1;i<13;i++)r["f"+i]=i+111;for(i=0;i<10;i++)r["numpad "+i]=i+96;var o=t.names=t.title={};for(i in r)o[r[i]]=i;for(var l in s)r[l]=s[l]});Fd.code;Fd.codes;Fd.aliases;var qJ=Fd.names;Fd.title;var Dk={"+":"plus","left command":"meta","right command":"meta"},Ok={shift:1,ctrl:2,alt:3,meta:4};function rM(n,t){var e=(qJ[n]||t||"").toLowerCase();for(var r in Dk)e=e.replace(r,Dk[r]);return e.replace(/\s/g,"")}function sM(n,t){t===void 0&&(t=rM(n.keyCode,n.key));var e=$J(n);return e.indexOf(t)===-1&&e.push(t),e.filter(Boolean)}function $J(n){var t=[n.shiftKey&&"shift",n.ctrlKey&&"ctrl",n.altKey&&"alt",n.metaKey&&"meta"];return t.filter(Boolean)}function Rk(n){var t=n.slice();return t.sort(function(e,r){var s=Ok[e]||5,i=Ok[r]||5;return s-i}),t}var Pk,eV=(function(n){QJ(t,n);function t(r){r===void 0&&(r=window);var s=n.call(this)||this;return s.container=r,s.ctrlKey=!1,s.altKey=!1,s.shiftKey=!1,s.metaKey=!1,s.clear=function(){return s.ctrlKey=!1,s.altKey=!1,s.shiftKey=!1,s.metaKey=!1,s},s.keydownEvent=function(i){s.triggerEvent("keydown",i)},s.keyupEvent=function(i){s.triggerEvent("keyup",i)},s.blur=function(){s.clear(),s.trigger("blur")},pn(r,"blur",s.blur),pn(r,"keydown",s.keydownEvent),pn(r,"keyup",s.keyupEvent),s}var e=t.prototype;return Object.defineProperty(t,"global",{get:function(){return Pk||(Pk=new t)},enumerable:!1,configurable:!0}),t.setGlobal=function(){return this.global},e.destroy=function(){var r=this.container;this.clear(),this.off(),sn(r,"blur",this.blur),sn(r,"keydown",this.keydownEvent),sn(r,"keyup",this.keyupEvent)},e.keydown=function(r,s){return this.addEvent("keydown",r,s)},e.offKeydown=function(r,s){return this.removeEvent("keydown",r,s)},e.offKeyup=function(r,s){return this.removeEvent("keyup",r,s)},e.keyup=function(r,s){return this.addEvent("keyup",r,s)},e.addEvent=function(r,s,i){return bg(s)?this.on("".concat(r,".").concat(Rk(s).join(".")),i):ad(s)?this.on("".concat(r,".").concat(s),i):this.on(r,s),this},e.removeEvent=function(r,s,i){return bg(s)?this.off("".concat(r,".").concat(Rk(s).join(".")),i):ad(s)?this.off("".concat(r,".").concat(s),i):this.off(r,s),this},e.triggerEvent=function(r,s){this.ctrlKey=s.ctrlKey,this.shiftKey=s.shiftKey,this.altKey=s.altKey,this.metaKey=s.metaKey;var i=rM(s.keyCode,s.key),o=i==="ctrl"||i==="shift"||i==="meta"||i==="alt",l={key:i,isToggle:o,inputEvent:s,keyCode:s.keyCode,ctrlKey:s.ctrlKey,altKey:s.altKey,shiftKey:s.shiftKey,metaKey:s.metaKey};this.trigger(r,l),this.trigger("".concat(r,".").concat(i),l);var a=sM(s,i);a.length>1&&this.trigger("".concat(r,".").concat(a.join(".")),l)},t})(Lp);/*! *****************************************************************************
153
+ Copyright (c) Microsoft Corporation.
154
+
155
+ Permission to use, copy, modify, and/or distribute this software for any
156
+ purpose with or without fee is hereby granted.
157
+
158
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
159
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
160
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
161
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
162
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
163
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
164
+ PERFORMANCE OF THIS SOFTWARE.
165
+ ***************************************************************************** */function tV(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var r=Array(n),s=0,t=0;t<e;t++)for(var i=arguments[t],o=0,l=i.length;o<l;o++,s++)r[s]=i[o];return r}function br(n){return Ni(n,ys)}function nV(n,t){return n.every(function(e,r){return br(e-t[r])===0})}function rV(n,t){return!br(n[0]-t[0])&&!br(n[1]-t[1])}function KA(n){return n.length<3?0:Math.abs(vJ(n.map(function(t,e){var r=n[e+1]||n[0];return t[0]*r[1]-r[0]*t[1]})))/2}function sV(n,t){var e=t.width,r=t.height,s=t.left,i=t.top,o=iM(n),l=o.minX,a=o.minY,u=o.maxX,d=o.maxY,f=e/(u-l),g=r/(d-a);return n.map(function(p){return[s+(p[0]-l)*f,i+(p[1]-a)*g]})}function iM(n){var t=n.map(function(r){return r[0]}),e=n.map(function(r){return r[1]});return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,e),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,e)}}function Nb(n,t,e){var r=n[0],s=n[1],i=iM(t),o=i.minX,l=i.maxX,a=[[o,s],[l,s]],u=xg(a[0],a[1]),d=Ib(t),f=[];if(d.forEach(function(m){var y=xg(m[0],m[1]),b=m[0];if(nV(u,y))f.push({pos:n,line:m,type:"line"});else{var x=lM(oM(u,y),[a,m]);x.forEach(function(C){m.some(function(v){return rV(v,C)})?f.push({pos:C,line:m,type:"point"}):br(b[1]-s)!==0&&f.push({pos:C,line:m,type:"intersection"})})}}),cd(f,function(m){return m[0]===r}))return!0;var g=0,p={};return f.forEach(function(m){var y=m.pos,b=m.type,x=m.line;if(!(y[0]>r))if(b==="intersection")++g;else{if(b==="line")return;if(b==="point"){var C=cd(x,function(N){return N[1]!==s}),v=p[y[0]],E=C[1]>s?1:-1;v?v!==E&&++g:p[y[0]]=E}}}),g%2===1}function xg(n,t){var e=n[0],r=n[1],s=t[0],i=t[1],o=s-e,l=i-r;Math.abs(o)<ys&&(o=0),Math.abs(l)<ys&&(l=0);var a=0,u=0,d=0;return o?l?(a=-l/o,u=1,d=-a*e-r):(u=1,d=-r):l&&(a=-1,d=e),[a,u,d]}function oM(n,t){var e=n[0],r=n[1],s=n[2],i=t[0],o=t[1],l=t[2],a=e===0&&i===0,u=r===0&&o===0,d=[];if(a&&u)return[];if(a){var f=-s/r,g=-l/o;return f!==g?[]:[[-1/0,f],[1/0,f]]}else if(u){var p=-s/e,m=-l/i;return p!==m?[]:[[p,-1/0],[p,1/0]]}else if(e===0){var y=-s/r,b=-(o*y+l)/i;d=[[b,y]]}else if(i===0){var y=-l/o,b=-(r*y+s)/e;d=[[b,y]]}else if(r===0){var b=-s/e,y=-(i*b+l)/o;d=[[b,y]]}else if(o===0){var b=-l/i,y=-(e*b+s)/r;d=[[b,y]]}else{var b=(r*l-o*s)/(o*e-r*i),y=-(e*b+s)/r;d=[[b,y]]}return d.map(function(x){return[x[0],x[1]]})}function lM(n,t){var e=t.map(function(f){return[0,1].map(function(g){return[Math.min(f[0][g],f[1][g]),Math.max(f[0][g],f[1][g])]})}),r=[];if(n.length===2){var s=n[0],i=s[0],o=s[1];if(br(i-n[1][0])){if(!br(o-n[1][1])){var u=Math.max.apply(Math,e.map(function(f){return f[0][0]})),d=Math.min.apply(Math,e.map(function(f){return f[0][1]}));if(br(u-d)>0)return[];r=[[u,o],[d,o]]}}else{var l=Math.max.apply(Math,e.map(function(f){return f[1][0]})),a=Math.min.apply(Math,e.map(function(f){return f[1][1]}));if(br(l-a)>0)return[];r=[[i,l],[i,a]]}}return r.length||(r=n.filter(function(f){var g=f[0],p=f[1];return e.every(function(m){return 0<=br(g-m[0][0])&&0<=br(m[0][1]-g)&&0<=br(p-m[1][0])&&0<=br(m[1][1]-p)})})),r.map(function(f){return[br(f[0]),br(f[1])]})}function Ib(n){return tV(n.slice(1),[n[0]]).map(function(t,e){return[n[e],t]})}function iV(n,t){var e=n.slice(),r=t.slice();_k(e)===-1&&e.reverse(),_k(r)===-1&&r.reverse();var s=Ib(e),i=Ib(r),o=s.map(function(d){return xg(d[0],d[1])}),l=i.map(function(d){return xg(d[0],d[1])}),a=[];o.forEach(function(d,f){var g=s[f],p=[];l.forEach(function(m,y){var b=oM(d,m),x=lM(b,[g,i[y]]);p.push.apply(p,x.map(function(C){return{index1:f,index2:y,pos:C,type:"intersection"}}))}),p.sort(function(m,y){return Sb(g[0],m.pos)-Sb(g[0],y.pos)}),a.push.apply(a,p),Nb(g[1],r)&&a.push({index1:f,index2:-1,pos:g[1],type:"inside"})}),i.forEach(function(d,f){if(Nb(d[1],e)){var g=!1,p=Cg(a,function(m){var y=m.index2;return y===f?(g=!0,!1):!!g});p===-1&&(g=!1,p=Cg(a,function(m){var y=m.index1,b=m.index2;return y===-1&&b+1===f?(g=!0,!1):!!g})),p===-1?a.push({index1:-1,index2:f,pos:d[1],type:"inside"}):a.splice(p,0,{index1:-1,index2:f,pos:d[1],type:"inside"})}});var u={};return a.filter(function(d){var f=d.pos,g=f[0]+"x"+f[1];return u[g]?!1:(u[g]=!0,!0)})}function Bk(n,t){var e=iV(n,t);return e.map(function(r){var s=r.pos;return s})}function oV(n,t,e,r,s,i){for(var o=0;o<s;++o){var l=e+o*s,a=r+o*s;n[l]+=n[a]*i,t[l]+=t[a]*i}}function lV(n,t,e,r,s){for(var i=0;i<s;++i){var o=e+i*s,l=r+i*s,a=n[o],u=t[o];n[o]=n[l],n[l]=a,t[o]=t[l],t[l]=u}}function aV(n,t,e,r,s){for(var i=0;i<r;++i){var o=e+i*r;n[o]/=s,t[o]/=s}}function cV(n,t){for(var e=n.slice(),r=aM(t),s=0;s<t;++s){var i=t*s+s;if(!Ni(e[i],ys)){for(var o=s+1;o<t;++o)if(e[t*s+o]){lV(e,r,s,o,t);break}}if(!Ni(e[i],ys))return[];aV(e,r,s,t,e[i]);for(var o=0;o<t;++o){var l=o,a=o+s*t,u=e[a];!Ni(u,ys)||s===o||oV(e,r,l,s,t,-u)}}return r}function la(n,t,e){e===void 0&&(e=Math.sqrt(n.length));var r=[],s=n.length/e,i=t.length/s;if(s){if(!i)return n}else return t;for(var o=0;o<e;++o)for(var l=0;l<i;++l){r[l*e+o]=0;for(var a=0;a<s;++a)r[l*e+o]+=n[a*e+o]*t[l*s+a]}return r}function uV(n,t,e){var r=la(n,t,e),s=r[e-1];return r.map(function(i){return i/s})}function dV(n,t){return la(n,[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 fV(n,t){return la(n,[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 hV(n,t){return la(n,gV(t,4))}function rh(n,t){var e=t[0],r=e===void 0?1:e,s=t[1],i=s===void 0?1:s,o=t[2],l=o===void 0?1:o;return la(n,[r,0,0,0,0,i,0,0,0,0,l,0,0,0,0,1],4)}function WA(n,t){var e=t[0],r=e===void 0?0:e,s=t[1],i=s===void 0?0:s,o=t[2],l=o===void 0?0:o;return la(n,[1,0,0,0,0,1,0,0,0,0,1,0,r,i,l,1],4)}function Lb(n,t){return la(n,t,4)}function gV(n,t){var e=Math.cos(n),r=Math.sin(n),s=aM(t);return s[0]=e,s[1]=r,s[t]=-r,s[t+1]=e,s}function aM(n){for(var t=n*n,e=[],r=0;r<t;++r)e[r]=r%(n+1)?0:1;return e}var Du=function(){return Du=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Du.apply(this,arguments)};function tC(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function pV(n,t){return t===void 0&&(t=0),AV(yV(n,t))}function HA(n,t){var e=uV(n,[t[0],t[1]||0,t[2]||0,1],4),r=e[3]||1;return[e[0]/r,e[1]/r,e[2]/r]}function mV(n,t){t===void 0&&(t=document.body);for(var e=n,r=tC();e;){var s=getComputedStyle(e).transform;if(r=Lb(pV(s),r),e===t)break;e=e.parentElement}return r=cV(r,4),r[12]=0,r[13]=0,r[14]=0,r}function AV(n){var t=tC();return n.forEach(function(e){var r=e.matrixFunction,s=e.functionValue;r&&(t=r(t,s))}),t}function yV(n,t){t===void 0&&(t=0);var e=bg(n)?n:wJ(n);return e.map(function(r){var s=CJ(r),i=s.prefix,o=s.value,l=null,a=i,u="";if(i==="translate"||i==="translateX"||i==="translate3d"){var d=zo(t)?Du(Du({},t),{"o%":t["%"]}):{"%":t,"o%":t},f=yu(o).map(function(j,U){return U===0&&"x%"in d?d["%"]=t["x%"]:U===1&&"y%"in d?d["%"]=t["y%"]:d["%"]=t["o%"],Ek(j,d)}),g=f[0],p=f[1],m=p===void 0?0:p,y=f[2],b=y===void 0?0:y;l=WA,u=[g,m,b]}else if(i==="translateY"){var x=zo(t)?Du({"%":t["y%"]},t):{"%":t},m=Ek(o,x);l=WA,u=[0,m,0]}else if(i==="translateZ"){var b=parseFloat(o);l=WA,u=[0,0,b]}else if(i==="scale"||i==="scale3d"){var C=yu(o).map(function(j){return parseFloat(j)}),v=C[0],E=C[1],N=E===void 0?v:E,S=C[2],_=S===void 0?1:S;l=rh,u=[v,N,_]}else if(i==="scaleX"){var v=parseFloat(o);l=rh,u=[v,1,1]}else if(i==="scaleY"){var N=parseFloat(o);l=rh,u=[1,N,1]}else if(i==="scaleZ"){var _=parseFloat(o);l=rh,u=[1,1,_]}else if(i==="rotate"||i==="rotateZ"||i==="rotateX"||i==="rotateY"){var I=wg(o),L=I.unit,M=I.value,R=L==="rad"?M:M*Math.PI/180;i==="rotate"||i==="rotateZ"?(a="rotateZ",l=hV):i==="rotateX"?l=dV:i==="rotateY"&&(l=fV),u=R}else if(i==="matrix3d")l=Lb,u=yu(o).map(function(j){return parseFloat(j)});else if(i==="matrix"){var F=yu(o).map(function(j){return parseFloat(j)});l=Lb,u=[F[0],F[1],0,0,F[2],F[3],0,0,0,0,1,0,F[4],F[5],0,1]}else a="";return{name:i,functionName:a,value:o,matrixFunction:l,functionValue:u}})}function bV(n){for(var t=5381,e=n.length;e;)t=t*33^n.charCodeAt(--e);return t>>>0}var wV=bV;function CV(n){return wV(n).toString(36)}function xV(n){if(n&&n.getRootNode){var t=n.getRootNode();if(t.nodeType===11)return t}}function vV(n,t,e){return e.original?t:t.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(r,s){var i=s.trim();return(i?yu(i):[""]).map(function(o){var l=o.trim();return l.indexOf("@")===0?l:l.indexOf(":global")>-1?l.replace(/\:global/g,""):l.indexOf(":host")>-1?"".concat(l.replace(/\:host/g,".".concat(n))):l?".".concat(n," ").concat(l):".".concat(n)}).join(", ")+" {"})}function SV(n,t,e,r,s){var i=ki(r),o=i.createElement("style");return o.setAttribute("type","text/css"),o.setAttribute("data-styled-id",n),o.setAttribute("data-styled-count","1"),e.nonce&&o.setAttribute("nonce",e.nonce),o.innerHTML=vV(n,t,e),(s||i.head||i.body).appendChild(o),o}function EV(n){var t="rCS"+CV(n);return{className:t,inject:function(e,r){r===void 0&&(r={});var s=xV(e),i=(s||e.ownerDocument||document).querySelector('style[data-styled-id="'.concat(t,'"]'));if(!i)i=SV(t,n,r,e,s);else{var o=parseFloat(i.getAttribute("data-styled-count"))||0;i.setAttribute("data-styled-count","".concat(o+1))}return{destroy:function(){var l,a=parseFloat(i.getAttribute("data-styled-count"))||0;a<=1?(i.remove?i.remove():(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null):i.setAttribute("data-styled-count","".concat(a-1))}}}}}var Mb=function(n,t){return Mb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])},Mb(n,t)};function cM(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Mb(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var gn=function(){return gn=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},gn.apply(this,arguments)};function kV(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(n);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(n,r[s])&&(e[r[s]]=n[r[s]]);return e}function TV(n,t,e,r){var s=arguments.length,i=s<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var l=n.length-1;l>=0;l--)(o=n[l])&&(i=(s<3?o(i):s>3?o(t,e,i):o(t,e))||i);return s>3&&i&&Object.defineProperty(t,e,i),i}function Ou(n,t,e){for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return n.concat(i||Array.prototype.slice.call(t))}function _V(n){if("touches"in n){var t=n.touches[0]||n.changedTouches[0];return{clientX:t.clientX,clientY:t.clientY}}else return{clientX:n.clientX,clientY:n.clientY}}function NV(n){if(typeof Map>"u")return n.filter(function(e,r){return n.indexOf(e)===r});var t=new Map;return n.filter(function(e){return t.has(e)?!1:(t.set(e,!0),!0)})}function IV(n,t,e){var r=ki(n);return r.elementFromPoint&&r.elementFromPoint(t,e)||null}function uM(n,t,e){var r=n.tag,s=n.children,i=n.attributes,o=n.className,l=n.style,a=t||ki(e).createElement(r);for(var u in i)a.setAttribute(u,i[u]);var d=a.children;if(s.forEach(function(g,p){uM(g,d[p],a)}),o&&o.split(/\s+/g).forEach(function(g){g&&!kJ(a,g)&&TJ(a,g)}),l){var f=a.style;for(var u in l)f[u]=l[u]}return!t&&e&&e.appendChild(a),a}function LV(n,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];var s=t||{},i=s.className,o=i===void 0?"":i,l=s.style,a=l===void 0?{}:l,u=kV(s,["className","style"]);return{tag:n,className:o,style:a,attributes:u,children:e}}function YA(n,t,e){n!==t&&e(n,t)}function jk(n,t,e){var r;e===void 0&&(e=n.data.boundArea);var s=n.distX,i=s===void 0?0:s,o=n.distY,l=o===void 0?0:o,a=n.data,u=a.startX,d=a.startY;if(t>0){var f=Math.sqrt((i*i+l*l)/(1+t*t)),g=t*f;i=(i>=0?1:-1)*g,l=(l>=0?1:-1)*f}var p=Math.abs(i),m=Math.abs(l),y=i<0?u-e.left:e.right-u,b=l<0?d-e.top:e.bottom-d;r=xJ([p,m],[0,0],[y,b],!!t),p=r[0],m=r[1],i=(i>=0?1:-1)*p,l=(l>=0?1:-1)*m;var x=Math.min(0,i),C=Math.min(0,l),v=u+x,E=d+C;return{left:v,top:E,right:v+p,bottom:E+m,width:p,height:m}}function sh(n){var t=n.getBoundingClientRect(),e=t.left,r=t.top,s=t.width,i=t.height;return{pos1:[e,r],pos2:[e+s,r],pos3:[e,r+i],pos4:[e+s,r+i]}}function Fk(n,t,e){var r=bu(n,t),s=r.list,i=r.prevList,o=r.added,l=r.removed,a=r.maintained;return Ou(Ou(Ou([],o.map(function(u){return s[u]}),!0),l.map(function(u){return i[u]}),!0),e?a.map(function(u){var d=u[1];return s[d]}):[])}function zk(n){for(var t=0,e=n.length,r=1;r<e;++r)t=Math.max(Sb(n[r],n[r-1]),t);return t}var dM=EV(`
166
+ :host {
167
+ position: fixed;
168
+ display: none;
169
+ border: 1px solid #4af;
170
+ background: rgba(68, 170, 255, 0.5);
171
+ pointer-events: none;
172
+ will-change: transform;
173
+ z-index: 100;
174
+ }
175
+ `),Db="selecto-selection ".concat(dM.className),nC=["className","boundContainer","selectableTargets","selectByClick","selectFromInside","continueSelect","continueSelectWithoutDeselect","toggleContinueSelect","toggleContinueSelectWithoutDeselect","keyContainer","hitRate","scrollOptions","checkInput","preventDefault","ratio","getElementRect","preventDragFromInside","rootContainer","dragCondition","clickBySelectEnd","checkOverflow","innerScrollOptions"],MV=Ou(["dragContainer","cspNonce","preventClickEventOnDrag","preventClickEventOnDragStart","preventRightClick"],nC),fM=["dragStart","drag","dragEnd","selectStart","select","selectEnd","keydown","keyup","scroll","innerScroll"],DV=["clickTarget","getSelectableElements","setSelectedTargets","getElementPoints","getSelectedTargets","findSelectableTargets","triggerDragStart","checkScroll","selectTargetsByPoints","setSelectedTargetsByPoints"],OV=(function(n){cM(t,n);function t(r){r===void 0&&(r={});var s=n.call(this)||this;s.selectedTargets=[],s.dragScroll=new VJ,s._onDragStart=function(l,a){var u=l.data,d=l.clientX,f=l.clientY,g=l.inputEvent,p=s.options,m=p.selectFromInside,y=p.selectByClick,b=p.rootContainer,x=p.boundContainer,C=p.preventDragFromInside,v=C===void 0?!0:C,E=p.clickBySelectEnd,N=p.dragCondition;if(N&&!N(l)){l.stop();return}u.data={};var S=gl(s.container);u.innerWidth=S.innerWidth,u.innerHeight=S.innerHeight,s.findSelectableTargets(u),u.startSelectedTargets=s.selectedTargets,u.scaleMatrix=tC(),u.containerX=0,u.containerY=0;var _=s.container,I={left:-1/0,top:-1/0,right:1/0,bottom:1/0};if(b){var L=s.container.getBoundingClientRect();u.containerX=L.left,u.containerY=L.top,u.scaleMatrix=mV(s.container,b)}if(x){var M=zo(x)&&"element"in x?gn({left:!0,top:!0,bottom:!0,right:!0},x):{element:x,left:!0,top:!0,bottom:!0,right:!0},R=M.element,F=void 0;if(R){ad(R)?F=ki(_).querySelector(R):R===!0?F=s.container:F=R;var j=F.getBoundingClientRect();M.left&&(I.left=j.left),M.top&&(I.top=j.top),M.right&&(I.right=j.right),M.bottom&&(I.bottom=j.bottom)}}u.boundArea=I;var U={left:d,top:f,right:d,bottom:f,width:0,height:0},V=[],ne=y&&!E,ae=!1;if(!m||ne){var re=s._findElement(a||g.target,u.selectableTargets);ae=!!re,ne&&(V=re?[re]:[])}var ee=!m&&ae;if(ee&&!y)return l.stop(),!1;var se=g.type,q=se==="mousedown"||se==="touchstart",W=!l.isClick&&q?s.emit("dragStart",gn(gn({},l),{data:u.data})):!0;if(!W)return l.stop(),!1;if(s.continueSelect?(V=Fk(s.selectedTargets,V,s.continueSelectWithoutDeselect),u.startPassedTargets=s.selectedTargets):u.startPassedTargets=[],s._select(V,U,l,!0,ee&&y&&!E&&v),u.startX=d,u.startY=f,u.selectFlag=!1,u.preventDragFromInside=!1,g.target){var J=HA(u.scaleMatrix,[d-u.containerX,f-u.containerY]);s.target.style.cssText+="position: ".concat(b?"absolute":"fixed",";")+"left:0px;top:0px;"+"transform: translate(".concat(J[0],"px, ").concat(J[1],"px)")}if(ee&&y&&!E)g.preventDefault(),v&&(s._selectEnd(u.startSelectedTargets,u.startPassedTargets,U,l,!0),u.preventDragFromInside=!0);else{u.selectFlag=!0;var te=s.options,le=te.scrollOptions,ce=te.innerScrollOptions,de=!1;if(ce){for(var Ae=l.inputEvent,ke=Ae.target,ye=null,Ee=ke;Ee&&Ee!==ki(_).body;){var Ye=getComputedStyle(Ee).overflow!=="visible";if(Ye){ye=Ee;break}Ee=Ee.parentElement}ye&&(u.innerScrollOptions=gn({container:ye,checkScrollEvent:!0},ce===!0?{}:ce),s.dragScroll.dragStart(l,u.innerScrollOptions),de=!0)}!de&&le&&le.container&&s.dragScroll.dragStart(l,le),ee&&y&&E&&(u.selectFlag=!1,l.preventDrag())}return!0},s._onDrag=function(l){if(l.data.selectFlag){var a=s.scrollOptions,u=l.data.innerScrollOptions,d=u||(a==null?void 0:a.container);if(d&&!l.isScroll&&s.dragScroll.drag(l,u||a))return}s._checkSelected(l)},s._onDragEnd=function(l){var a=l.data,u=l.inputEvent,d=jk(l,s.options.ratio),f=a.selectFlag,g=s.container;if(u&&s.emit("dragEnd",gn(gn({isDouble:!!l.isDouble,isClick:!!l.isClick,isDrag:!1,isSelect:f},l),{data:a.data,rect:d})),s.target.style.cssText+="display: none;",f)a.selectFlag=!1,s.dragScroll.dragEnd();else if(s.selectByClick&&s.clickBySelectEnd){var p=s._findElement((u==null?void 0:u.target)||IV(g,l.clientX,l.clientY),a.selectableTargets);s._select(p?[p]:[],d,l)}a.preventDragFromInside||s._selectEnd(a.startSelectedTargets,a.startPassedTargets,d,l)},s._onKeyDown=function(l){var a=s.options,u=!1;if(!s._keydownContinueSelect){var d=s._sameCombiKey(l,a.toggleContinueSelect);s._keydownContinueSelect=d,u||(u=d)}if(!s._keydownContinueSelectWithoutDeselection){var d=s._sameCombiKey(l,a.toggleContinueSelectWithoutDeselect);s._keydownContinueSelectWithoutDeselection=d,u||(u=d)}u&&s.emit("keydown",{keydownContinueSelect:s._keydownContinueSelect,keydownContinueSelectWithoutDeselection:s._keydownContinueSelectWithoutDeselection})},s._onKeyUp=function(l){var a=s.options,u=!1;if(s._keydownContinueSelect){var d=s._sameCombiKey(l,a.toggleContinueSelect,!0);s._keydownContinueSelect=!d,u||(u=d)}if(s._keydownContinueSelectWithoutDeselection){var d=s._sameCombiKey(l,a.toggleContinueSelectWithoutDeselect,!0);s._keydownContinueSelectWithoutDeselection=!d,u||(u=d)}u&&s.emit("keyup",{keydownContinueSelect:s._keydownContinueSelect,keydownContinueSelectWithoutDeselection:s._keydownContinueSelectWithoutDeselection})},s._onBlur=function(){(s._keydownContinueSelect||s._keydownContinueSelectWithoutDeselection)&&(s._keydownContinueSelect=!1,s._keydownContinueSelectWithoutDeselection=!1,s.emit("keyup",{keydownContinueSelect:s._keydownContinueSelect,keydownContinueSelectWithoutDeselection:s._keydownContinueSelectWithoutDeselection}))},s._onDocumentSelectStart=function(l){var a=ki(s.container);if(s.gesto.isFlag()){var u=s.dragContainer;u===gl(s.container)&&(u=a.documentElement);var d=Nk(u)?[u]:[].slice.call(u),f=l.target;d.some(function(g){if(g===f||g.contains(f))return l.preventDefault(),!0})}},s.target=r.portalContainer;var i=r.container;s.options=gn({className:"",portalContainer:null,container:null,dragContainer:null,selectableTargets:[],selectByClick:!0,selectFromInside:!0,clickBySelectEnd:!1,hitRate:100,continueSelect:!1,continueSelectWithoutDeselect:!1,toggleContinueSelect:null,toggleContinueSelectWithoutDeselect:null,keyContainer:null,scrollOptions:null,checkInput:!1,preventDefault:!1,boundContainer:!1,preventDragFromInside:!0,dragCondition:null,rootContainer:null,checkOverflow:!1,innerScrollOptions:!1,getElementRect:sh,cspNonce:"",ratio:0},r);var o=s.options.portalContainer;return o&&(i=o.parentElement),s.container=i||document.body,s.initElement(),s.initDragScroll(),s.setKeyController(),s}var e=t.prototype;return e.setSelectedTargets=function(r){var s=this.selectedTargets,i=bu(s,r),o=i.added,l=i.removed,a=i.prevList,u=i.list;return this.selectedTargets=r,{added:o.map(function(d){return u[d]}),removed:l.map(function(d){return a[d]}),beforeSelected:s,selected:r}},e.setSelectedTargetsByPoints=function(r,s){var i=Math.min(r[0],s[0]),o=Math.min(r[1],s[1]),l=Math.max(r[0],s[0]),a=Math.max(r[1],s[1]),u={left:i,top:o,right:l,bottom:a,width:l-i,height:a-o},d={ignoreClick:!0};this.findSelectableTargets(d);var f=this.hitTest(u,d,!0,null),g=this.setSelectedTargets(f);return gn(gn({},g),{rect:u})},e.selectTargetsByPoints=function(r,s){var i=new MouseEvent("mousedown",{clientX:r[0],clientY:r[1],cancelable:!0,bubbles:!0}),o=new MouseEvent("mousemove",{clientX:s[0],clientY:s[1],cancelable:!0,bubbles:!0}),l=new MouseEvent("mousemove",{clientX:s[0],clientY:s[1],cancelable:!0,bubbles:!0}),a=this.gesto,u=a.onDragStart(i);u!==!1&&(a.onDrag(o),a.onDragEnd(l))},e.getSelectedTargets=function(){return this.selectedTargets},e.triggerDragStart=function(r){return this.gesto.triggerDragStart(r),this},e.destroy=function(){var r;this.off(),this.keycon&&this.keycon.destroy(),this.gesto.unset(),this.injectResult.destroy(),this.dragScroll.dragEnd(),sn(document,"selectstart",this._onDocumentSelectStart),this.options.portalContainer||(r=this.target.parentElement)===null||r===void 0||r.removeChild(this.target),this.keycon=null,this.gesto=null,this.injectResult=null,this.target=null,this.container=null,this.options=null},e.getElementPoints=function(r){var s=this.getElementRect||sh,i=s(r),o=[i.pos1,i.pos2,i.pos4,i.pos3];if(s!==sh){var l=r.getBoundingClientRect();return sV(o,l)}return o},e.getSelectableElements=function(){var r=this.container,s=[];return this.options.selectableTargets.forEach(function(i){if(qw(i)){var o=i();o&&s.push.apply(s,[].slice.call(o))}else if(Nk(i))s.push(i);else if(zo(i))s.push(i.value||i.current);else{var l=[].slice.call(ki(r).querySelectorAll(i));s.push.apply(s,l)}}),s},e.checkScroll=function(){if(this.gesto.isFlag()){var r=this.scrollOptions,s=this.gesto.getEventData().innerScrollOptions,i=s||(r==null?void 0:r.container);i&&this.dragScroll.checkScroll(gn({inputEvent:this.gesto.getCurrentEvent()},s||r))}},e.findSelectableTargets=function(r){var s=this;r===void 0&&(r=this.gesto.getEventData());var i=this.getSelectableElements(),o=i.map(function(f){return s.getElementPoints(f)});r.selectableTargets=i,r.selectablePoints=o,r.selectableParentMap=null;var l=this.options,a=l.checkOverflow||l.innerScrollOptions,u=ki(this.container);if(a){var d=new Map;r.selectableInnerScrollParentMap=d,r.selectableInnerScrollPathsList=i.map(function(f,g){for(var p=f.parentElement,m=[],y=[],b=function(){var x=d.get(p);if(!x){var C=getComputedStyle(p).overflow!=="visible";if(C){var v=sh(p);x={parentElement:p,indexes:[],points:[v.pos1,v.pos2,v.pos4,v.pos3],paths:Ou([],y)},m.push(p),m.forEach(function(E){d.set(E,x)}),m=[]}}x?(p=x.parentElement,d.get(p).indexes.push(g),y.push(p)):m.push(p),p=p.parentElement};p&&p!==u.body;)b();return y})}return l.checkOverflow||(r.selectableInners=i.map(function(){return!0})),this._refreshGroups(r),i},e.clickTarget=function(r,s){var i=_V(r),o=i.clientX,l=i.clientY,a={data:{selectFlag:!1},clientX:o,clientY:l,inputEvent:r,isClick:!0,isTrusted:!1,stop:function(){return!1}};return this._onDragStart(a,s)&&this._onDragEnd(a),this},e.setKeyController=function(){var r=this.options,s=r.keyContainer,i=r.toggleContinueSelect,o=r.toggleContinueSelectWithoutDeselect;this.keycon&&(this.keycon.destroy(),this.keycon=null),(i||o)&&(this.keycon=new eV(s||gl(this.container)),this.keycon.keydown(this._onKeyDown).keyup(this._onKeyUp).on("blur",this._onBlur))},e.setClassName=function(r){this.options.className=r,this.target.setAttribute("class","".concat(Db," ").concat(r||""))},e.setKeyEvent=function(){var r=this.options,s=r.toggleContinueSelect,i=r.toggleContinueSelectWithoutDeselect;!s&&!i||this.keycon||this.setKeyController()},e.setKeyContainer=function(r){var s=this,i=this.options;YA(i.keyContainer,r,function(){i.keyContainer=r,s.setKeyController()})},e.getContinueSelect=function(){var r=this.options,s=r.continueSelect,i=r.toggleContinueSelect;return!i||!this._keydownContinueSelect?s:!s},e.getContinueSelectWithoutDeselect=function(){var r=this.options,s=r.continueSelectWithoutDeselect,i=r.toggleContinueSelectWithoutDeselect;return!i||!this._keydownContinueSelectWithoutDeselection?s:!s},e.setToggleContinueSelect=function(r){var s=this,i=this.options;YA(i.toggleContinueSelect,r,function(){i.toggleContinueSelect=r,s.setKeyEvent()})},e.setToggleContinueSelectWithoutDeselect=function(r){var s=this,i=this.options;YA(i.toggleContinueSelectWithoutDeselect,r,function(){i.toggleContinueSelectWithoutDeselect=r,s.setKeyEvent()})},e.setPreventDefault=function(r){this.gesto.options.preventDefault=r},e.setCheckInput=function(r){this.gesto.options.checkInput=r},e.initElement=function(){var r=this.options,s=r.dragContainer,i=r.checkInput,o=r.preventDefault,l=r.preventClickEventOnDragStart,a=r.preventClickEventOnDrag,u=r.preventClickEventByCondition,d=r.preventRightClick,f=d===void 0?!0:d,g=r.className,p=this.container;this.target=uM(LV("div",{className:"".concat(Db," ").concat(g||"")}),this.target,p);var m=this.target;this.dragContainer=typeof s=="string"?[].slice.call(ki(p).querySelectorAll(s)):s||this.target.parentNode,this.gesto=new RJ(this.dragContainer,{checkWindowBlur:!0,container:gl(p),checkInput:i,preventDefault:o,preventClickEventOnDragStart:l,preventClickEventOnDrag:a,preventClickEventByCondition:u,preventRightClick:f}).on({dragStart:this._onDragStart,drag:this._onDrag,dragEnd:this._onDragEnd}),pn(document,"selectstart",this._onDocumentSelectStart),this.injectResult=dM.inject(m,{nonce:this.options.cspNonce})},e.hitTest=function(r,s,i,o){var l=this.options,a=l.hitRate,u=l.selectByClick,d=r.left,f=r.top,g=r.right,p=r.bottom,m=s.innerGroups,y=s.innerWidth,b=s.innerHeight,x=o==null?void 0:o.clientX,C=o==null?void 0:o.clientY,v=s.ignoreClick,E=[[d,f],[g,f],[g,p],[d,p]],N=function(re,ee){var se=wg(typeof a=="function"?"".concat(a(ee)):"".concat(a)),q=v?!1:Nb([x,C],re);if(!i&&u&&q)return!0;var W=Bk(E,re);if(!W.length)return!1;var J=KA(W),te=0;if(J===0&&KA(re)===0?(te=zk(re),J=zk(W)):te=KA(re),se.unit==="px")return J>=se.value;var le=tM(Math.round(J/te*100),0,100);return le>=Math.min(100,se.value)},S=s.selectableTargets,_=s.selectablePoints,I=s.selectableInners;if(!m)return S.filter(function(re,ee){return I[ee]?N(_[ee],S[ee]):!1});for(var L=[],M=Math.floor(d/y),R=Math.floor(g/y),F=Math.floor(f/b),j=Math.floor(p/b),U=M;U<=R;++U){var V=m[U];if(V)for(var ne=F;ne<=j;++ne){var ae=V[ne];ae&&ae.forEach(function(re){var ee=_[re],se=I[re],q=S[re];se&&N(ee,q)&&L.push(q)})}}return NV(L)},e.initDragScroll=function(){var r=this;this.dragScroll.on("scrollDrag",function(s){var i=s.next;i(r.gesto.getCurrentEvent())}).on("scroll",function(s){var i=s.container,o=s.direction,l=r.gesto.getEventData().innerScrollOptions;l?r.emit("innerScroll",{container:i,direction:o}):r.emit("scroll",{container:i,direction:o})}).on("move",function(s){var i=s.offsetX,o=s.offsetY,l=s.inputEvent,a=r.gesto;if(!(!a||!a.isFlag())){var u=r.gesto.getEventData(),d=u.boundArea;u.startX-=i,u.startY-=o;var f=r.gesto.getEventData().innerScrollOptions,g=f==null?void 0:f.container,p=!1;if(g){var m=u.selectableInnerScrollParentMap,y=m.get(g);y&&(y.paths.forEach(function(b){var x=m.get(b);x.points.forEach(function(C){C[0]-=i,C[1]-=o})}),y.indexes.forEach(function(b){u.selectablePoints[b].forEach(function(x){x[0]-=i,x[1]-=o})}),p=!0)}p||u.selectablePoints.forEach(function(b){b.forEach(function(x){x[0]-=i,x[1]-=o})}),r._refreshGroups(u),d.left-=i,d.right-=i,d.top-=o,d.bottom-=o,r.gesto.scrollBy(i,o,l.inputEvent),r._checkSelected(r.gesto.getCurrentEvent())}})},e._select=function(r,s,i,o,l){l===void 0&&(l=!1);var a=i.inputEvent,u=i.data,d=this.setSelectedTargets(r),f=bu(u.startSelectedTargets,r),g=f.added,p=f.removed,m=f.prevList,y=f.list,b={startSelected:m,startAdded:g.map(function(x){return y[x]}),startRemoved:p.map(function(x){return m[x]})};o&&this.emit("selectStart",gn(gn(gn({},d),b),{rect:s,inputEvent:a,data:u.data,isTrusted:i.isTrusted,isDragStartEnd:l})),(d.added.length||d.removed.length)&&this.emit("select",gn(gn(gn({},d),b),{rect:s,inputEvent:a,data:u.data,isTrusted:i.isTrusted,isDragStartEnd:l}))},e._selectEnd=function(r,s,i,o,l){l===void 0&&(l=!1);var a=o.inputEvent,u=o.isDouble,d=o.data,f=a&&a.type,g=f==="mousedown"||f==="touchstart",p=bu(r,this.selectedTargets),m=p.added,y=p.removed,b=p.prevList,x=p.list,C=bu(s,this.selectedTargets),v=C.added,E=C.removed,N=C.prevList,S=C.list;this.emit("selectEnd",{startSelected:r,beforeSelected:s,selected:this.selectedTargets,added:m.map(function(_){return x[_]}),removed:y.map(function(_){return b[_]}),afterAdded:v.map(function(_){return S[_]}),afterRemoved:E.map(function(_){return N[_]}),isDragStart:g&&l,isDragStartEnd:g&&l,isClick:!!o.isClick,isDouble:!!u,rect:i,inputEvent:a,data:d.data,isTrusted:o.isTrusted})},e._checkSelected=function(r,s){s===void 0&&(s=jk(r,this.options.ratio));var i=r.data,o=s.top,l=s.left,a=s.width,u=s.height,d=i.selectFlag,f=i.containerX,g=i.containerY,p=i.scaleMatrix,m=HA(p,[l-f,o-g]),y=HA(p,[a,u]),b=[];if(d){this.target.style.cssText+="display: block;left:0px;top:0px;"+"transform: translate(".concat(m[0],"px, ").concat(m[1],"px);")+"width:".concat(y[0],"px;height:").concat(y[1],"px;");var x=this.hitTest(s,i,!0,r);b=Fk(i.startPassedTargets,x,this.continueSelect&&this.continueSelectWithoutDeselect)}var C=this.emit("drag",gn(gn({},r),{data:i.data,isSelect:d,rect:s}));if(C===!1){this.target.style.cssText+="display: none;",r.stop();return}d&&this._select(b,s,r)},e._sameCombiKey=function(r,s,i){if(!s)return!1;var o=sM(r.inputEvent,r.key),l=[].concat(s),a=bg(l[0])?l:[l];if(i){var u=r.key;return a.some(function(d){return d.some(function(f){return f===u})})}return a.some(function(d){return d.every(function(f){return o.indexOf(f)>-1})})},e._findElement=function(r,s){for(var i=r;i&&!(s.indexOf(i)>-1);)i=i.parentElement;return i},e._refreshGroups=function(r){var s,i=r.innerWidth,o=r.innerHeight,l=r.selectablePoints;if(this.options.checkOverflow){var a=(s=this.gesto.getEventData().innerScrollOptions)===null||s===void 0?void 0:s.container,u=r.selectableInnerScrollParentMap,d=r.selectableInnerScrollPathsList;r.selectableInners=d.map(function(p,m){var y=!1;return p.every(function(b){if(y)return!0;if(b===a)return y=!0,!0;var x=u.get(b);if(x){var C=l[m],v=x.points,E=Bk(C,v);if(!E.length)return!1}return!0})})}if(!i||!o)r.innerGroups=null;else{var f=r.selectablePoints,g={};f.forEach(function(p,m){var y=1/0,b=-1/0,x=1/0,C=-1/0;p.forEach(function(N){var S=Math.floor(N[0]/i),_=Math.floor(N[1]/o);y=Math.min(S,y),b=Math.max(S,b),x=Math.min(_,x),C=Math.max(_,C)});for(var v=y;v<=b;++v)for(var E=x;E<=C;++E)g[v]=g[v]||{},g[v][E]=g[v][E]||[],g[v][E].push(m)}),r.innerGroups=g}},t=TV([BJ(nC,function(r,s){var i={enumerable:!0,configurable:!0,get:function(){return this.options[s]}},o=xb("get ".concat(s));r[o]?i.get=function(){return this[o]()}:i.get=function(){return this.options[s]};var l=xb("set ".concat(s));r[l]?i.set=function(a){this[l](a)}:i.set=function(a){this.options[s]=a},Object.defineProperty(r,s,i)})],t),t})(Lp),RV=(function(n){cM(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t})(OV),Ob=function(n,t){return Ob=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])},Ob(n,t)};function PV(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ob(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var vg=function(){return vg=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},vg.apply(this,arguments)};function BV(n,t,e,r){var s=arguments.length,i=s<3?t:r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,t,e,r);else for(var l=n.length-1;l>=0;l--)(o=n[l])&&(i=(s<3?o(i):s>3?o(t,e,i):o(t,e))||i);return s>3&&i&&Object.defineProperty(t,e,i),i}var Uk=fM.map(function(n){return xb("on ".concat(n))}),jV=(function(n){PV(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}var e=t.prototype;return e.render=function(){return k.createElement("div",{className:Db,ref:PJ(this,"selectionElement")})},e.componentDidMount=function(){var r=this,s=this.props,i={};MV.forEach(function(o){o in s&&(i[o]=s[o])}),this.selecto=new RV(vg(vg({},i),{portalContainer:this.selectionElement})),fM.forEach(function(o,l){r.selecto.on(o,function(a){var u=r.props,d=u[Uk[l]]&&u[Uk[l]](a);d===!1&&a.stop()})})},e.componentDidUpdate=function(r){var s=this.props,i=this.selecto;nC.forEach(function(o){r[o]!==s[o]&&(i[o]=s[o])})},e.componentWillUnmount=function(){this.selecto.destroy()},BV([jJ(DV)],t.prototype,"selecto",void 0),t})(k.PureComponent);const FV=({editor:n})=>{const t=k.useRef(null),[e,r]=k.useState({depth:0,targets:Xy});return k.useEffect(()=>{const s=()=>{var i;return(i=t.current)==null?void 0:i.checkScroll()};return window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[n]),k.useEffect(()=>{let s=null;const i=()=>{s=Xe(n.registerCommand(yc,()=>{var f;const a=((f=t.current)==null?void 0:f.getSelectedTargets())||[],{hasSelectedBlock:u,selectedAllDocument:d}=hl();if(u)a.forEach(g=>Go(g));else if(d){const g=document.querySelector("div.ContentEditable__root");g==null||g.classList.remove("selected-all-document")}return!1},ks),n.registerCommand(Ko,a=>{const{hasSelectedBlock:u,selectedAllDocument:d}=hl();if(C9(n,a,t.current))return!0;const g=a.ctrlKey||a.metaKey||a.altKey;return a.key.length===1&&!g&&n.update(()=>{var b;const m=we(),y=Oo();if(m.append(y),u)(((b=t.current)==null?void 0:b.getSelectedTargets())||[]).forEach((C,v)=>{const E=Oe(C);E&&(v===0?E.replace(m).selectEnd():E.remove())});else if(d){const x=document.querySelector("div.ContentEditable__root");x==null||x.classList.remove("selected-all-document");const C=xe();C.clear(),C.append(m).selectEnd()}},{tag:"historic"}),!1},Te),n.registerCommand(ud,()=>{const{selectedAllDocument:a}=hl();if(a){const u=document.querySelector("div.ContentEditable__root");u==null||u.classList.remove("selected-all-document")}return!1},ks))},o=n.registerUpdateListener(()=>{const{hasSelectedBlock:a,selectedAllDocument:u}=hl(),d=a||u;d&&!s?i():!d&&s&&(s(),s=null)}),l=a=>{const u=a.target,d=t.current;if(!d)return;const f=u.closest(".resizable-container__inner")||u.closest("iframe");f instanceof HTMLElement&&(f.classList.contains("selected-block")||(f.classList.add("selected-block"),d.setSelectedTargets([f]),setTimeout(()=>{var g,p;(p=(g=d.props).onSelectEnd)==null||p.call(g,n)},100)))};return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l),s&&s(),o()}},[n]),A.jsx(jV,{ref:t,className:"editor-selecto",dragContainer:".editor",selectableTargets:e.targets,selectByClick:!1,selectFromInside:!1,checkInput:!0,toggleContinueSelect:"shift",toggleContinueSelectWithoutDeselect:[["ctrl"],["meta"]],ratio:0,hitRate:0,onDragStart:s=>{s.inputEvent.target.className!=="editor"&&s.stop()},onSelectEnd:()=>{y9(n),r({targets:Xy,depth:0})},onSelect:s=>v9(s,n,e,r,t.current),scrollOptions:x9,onScroll:s=>{document.documentElement.scrollBy(s.direction[0]*10,s.direction[1]*10)}})},GA=8,ZA=72,Rb=15,zV={bgColor:"#fff",blockType:"paragraph",canRedo:!1,canUndo:!1,codeLanguage:"",codeTheme:"",elementFormat:"left",fontColor:"#000",fontFamily:"Arial",fontSize:`${Rb}px`,fontSizeInputValue:`${Rb}`,isBold:!1,isCode:!1,isHighlight:!1,isImageCaption:!1,isItalic:!1,isLink:!1,isRTL:!1,isStrikethrough:!1,isSubscript:!1,isSuperscript:!1,isUnderline:!1,isLowercase:!0,isUppercase:!0,isCapitalize:!0,rootType:"root",listStartNumber:null},hM=k.createContext(void 0),UV=({children:n})=>{const[t,e]=k.useState(zV),r=t.fontSize,s=k.useCallback((o,l)=>{e(a=>({...a,[o]:l}))},[]);k.useEffect(()=>{s("fontSizeInputValue",r.slice(0,-2))},[r,s]);const i=k.useMemo(()=>({toolbarState:t,updateToolbarState:s}),[t,s]);return A.jsx(hM.Provider,{value:i,children:n})},KV=()=>{const n=k.useContext(hM);if(n===void 0)throw new Error("useToolbarState must be used within a ToolbarProvider");return n},wh=new Set(["http:","https:","mailto:","sms:","tel:"]);function pl(n){try{const t=new URL(n);if(!wh.has(t.protocol))return"about:blank"}catch{return n}return n}const fn={ctrlKey:!PS,metaKey:PS};function WV(n){const{code:t}=n;return(t==="Numpad0"||t==="Digit0")&&Ft(n,{...fn,altKey:!0})}function HV(n){const{code:t}=n;if(!t)return!1;const e=t[t.length-1];return["1","2","3"].includes(e)&&Ft(n,{...fn,altKey:!0})}function YV(n){const{code:t}=n;return(t==="Numpad7"||t==="Digit7")&&Ft(n,{...fn,shiftKey:!0})}function GV(n){const{code:t}=n;return(t==="Numpad8"||t==="Digit8")&&Ft(n,{...fn,shiftKey:!0})}function ZV(n){const{code:t}=n;return(t==="Numpad9"||t==="Digit9")&&Ft(n,{...fn,shiftKey:!0})}function JV(n){const{code:t}=n;return t==="KeyC"&&Ft(n,{...fn,altKey:!0})}function VV(n){const{code:t}=n;return t==="KeyQ"&&Ft(n,{ctrlKey:!0,shiftKey:!0})}function QV(n){const{code:t}=n;return(t==="Numpad1"||t==="Digit1")&&Ft(n,{ctrlKey:!0,shiftKey:!0})}function XV(n){const{code:t}=n;return(t==="Numpad2"||t==="Digit2")&&Ft(n,{ctrlKey:!0,shiftKey:!0})}function qV(n){const{code:t}=n;return(t==="Numpad3"||t==="Digit3")&&Ft(n,{ctrlKey:!0,shiftKey:!0})}function $V(n){const{code:t}=n;return t==="KeyX"&&Ft(n,{...fn,shiftKey:!0})}function eQ(n){const{code:t}=n;return t==="BracketRight"&&Ft(n,fn)}function tQ(n){const{code:t}=n;return t==="BracketLeft"&&Ft(n,fn)}function nQ(n){const{code:t}=n;return t==="KeyE"&&Ft(n,{...fn,shiftKey:!0})}function rQ(n){const{code:t}=n;return t==="KeyL"&&Ft(n,{...fn,shiftKey:!0})}function sQ(n){const{code:t}=n;return t==="KeyR"&&Ft(n,{...fn,shiftKey:!0})}function iQ(n){const{code:t}=n;return t==="KeyJ"&&Ft(n,{...fn,shiftKey:!0})}function oQ(n){const{code:t}=n;return t==="Comma"&&Ft(n,fn)}function lQ(n){const{code:t}=n;return t==="Period"&&Ft(n,fn)}function aQ(n){const{code:t}=n;return t==="KeyC"&&Ft(n,{...fn,shiftKey:!0})}function cQ(n){const{code:t}=n;return t==="Period"&&Ft(n,{...fn,shiftKey:!0})}function uQ(n){const{code:t}=n;return t==="Comma"&&Ft(n,{...fn,shiftKey:!0})}function dQ(n){const{code:t}=n;return t==="Backslash"&&Ft(n,fn)}function fQ(n){const{code:t}=n;return t==="KeyK"&&Ft(n,fn)}function hQ(n){const{code:t}=n;return t==="KeyM"&&Ft(n,{...fn,altKey:!0})}var Pb=(n=>(n[n.increment=1]="increment",n[n.decrement=2]="decrement",n))(Pb||{});const gM=(n,t)=>{if(!t)return n;let e=n;switch(t){case 2:switch(!0){case n>ZA:e=ZA;break;case n>=48:e-=12;break;case n>=24:e-=4;break;case n>=14:e-=2;break;case n>=9:e-=1;break;default:e=GA;break}break;case 1:switch(!0){case n<GA:e=GA;break;case n<12:e+=1;break;case n<20:e+=2;break;case n<36:e+=4;break;case n<=60:e+=12;break;default:e=ZA;break}break}return e},Kk=(n,t,e)=>{const r=s=>(s||(s=`${Rb}px`),s=s.slice(0,-2),`${gM(Number(s),e)}px`);n.update(()=>{if(n.isEditable()){const s=G();s!==null&&zh(s,{"font-size":t||r})}})},Wk=(n,t,e)=>{if(e!==""){const r=gM(Number(e),t);Kk(n,String(r)+"px",null)}else Kk(n,null,t)},Mp=n=>{n.update(()=>{const t=G();Sc(t,()=>we())})},gQ=(n,t,e)=>{t!==e&&n.update(()=>{const r=G();Sc(r,()=>Ws(e))})},pQ=(n,t)=>{t!=="bullet"?n.dispatchCommand(cw,void 0):Mp(n)},mQ=(n,t)=>{t!=="check"?n.dispatchCommand(uw,void 0):Mp(n)},AQ=(n,t)=>{t!=="number"?n.dispatchCommand(fp,void 0):Mp(n)},yQ=(n,t)=>{t!=="quote"&&n.update(()=>{const e=G();Sc(e,()=>Ic())})},bQ=(n,t)=>{t!=="code"&&n.update(()=>{let e=G();if(e)if(!H(e)||e.isCollapsed())Sc(e,()=>es());else{const r=e.getTextContent(),s=es();e.insertNodes([s]),e=G(),H(e)&&e.insertRawText(r)}})},wQ=n=>{n.update(()=>{const t=G();if(H(t)||Hw(t)){const e=t.anchor,r=t.focus,s=t.getNodes(),i=t.extract();if(e.key===r.key&&e.offset===r.offset)return;s.forEach((o,l)=>{if(ie(o)){let a=o;l===0&&e.offset!==0&&(a=a.splitText(e.offset)[1]||a),l===s.length-1&&(a=a.splitText(r.offset)[0]||a);const u=i[0];s.length===1&&ie(u)&&(a=u),a.__style!==""&&a.setStyle(""),a.__format!==0&&a.setFormat(0);const d=Ec(a);d.__format!==0&&d.setFormat(""),d.__indent!==0&&d.setIndent(0),o=a}else Vs(o)||Mo(o)?o.replace(we(),!0):rg(o)&&o.setFormat("")})}})};function CQ({editor:n,setIsLinkEditMode:t}){const{toolbarState:e}=KV();return k.useEffect(()=>{const r=s=>{if(Ft(s,{}))return!1;if(WV(s))Mp(n);else if(HV(s)){const{code:i}=s,o=`h${i[i.length-1]}`;gQ(n,e.blockType,o)}else if(GV(s))pQ(n,e.blockType);else if(YV(s))AQ(n,e.blockType);else if(ZV(s))mQ(n,e.blockType);else if(JV(s))bQ(n,e.blockType);else if(VV(s))yQ(n,e.blockType);else if($V(s))n.dispatchCommand(Lt,"strikethrough");else if(QV(s))console.log("isLowercase"),n.dispatchCommand(Lt,"lowercase");else if(XV(s))console.log("isUppercase"),n.dispatchCommand(Lt,"uppercase");else if(qV(s))n.dispatchCommand(Lt,"capitalize");else if(eQ(s))n.dispatchCommand(Gs,void 0);else if(tQ(s))n.dispatchCommand(ho,void 0);else if(nQ(s))n.dispatchCommand(go,"center");else if(rQ(s))n.dispatchCommand(go,"left");else if(sQ(s))n.dispatchCommand(go,"right");else if(iQ(s))n.dispatchCommand(go,"justify");else if(oQ(s))n.dispatchCommand(Lt,"subscript");else if(lQ(s))n.dispatchCommand(Lt,"superscript");else if(aQ(s))n.dispatchCommand(Lt,"code");else if(cQ(s))Wk(n,Pb.increment,e.fontSizeInputValue);else if(uQ(s))Wk(n,Pb.decrement,e.fontSizeInputValue);else if(dQ(s))wQ(n);else if(fQ(s)){const i=e.isLink?null:pl("https://");t(!e.isLink),n.dispatchCommand(vo,i)}else if(hQ(s))n.dispatchCommand(Jw,void 0);else return!1;return s.preventDefault(),!0};return n.registerCommand(Ko,r,ks)},[n,e.isLink,e.blockType,e.fontSizeInputValue,t]),null}const Sg="smart-paste-preference",Bb=6e4,pc=1e4,pM=400,xQ=7,vQ=new Set(["paragraph","heading","bullet-list","number-list","quote","code","callout","horizontal-rule"]);function SQ(n,t){let e=0;for(const r of n)if(r.kind==="paragraph"){const s=r.combinedText.split(/\s+/);if(s.length<3)continue;const i=s.slice(0,3).join(" "),o=s.slice(-3).join(" "),l=t.indexOf(i,e);if(l!==-1){const a=t.indexOf(o,l);a!==-1&&(r.combinedText=t.slice(l,a+o.length).trim(),e=a+o.length)}}else{const i=r.serializedNodes.map(o=>mc(o).trim()).join(" ").split(/\s+/);if(i.length>=3){const o=i.slice(-3).join(" "),l=t.indexOf(o,e);l!==-1&&(e=l+o.length)}}}const rC=new Set(["table","image","inline-image","video","embed","heading","list","extend-code","code","callout-wrapper","quote","horizontalrule","excalidraw","collapsible-container","layout-container","page-break","music","file","swagger"]),EQ=new Set(["paragraph","element","linebreak"]);function mc(n){return"text"in n&&typeof n.text=="string"?n.text:"children"in n&&Array.isArray(n.children)?n.children.map(mc).join(""):""}function mM(n){const t=[];for(const e of n){const r=e.type;if(r==="paragraph"||rC.has(r))t.push(e);else if("children"in e&&Array.isArray(e.children)){const s=e.children;s.length>0&&t.push(...mM(s))}else mc(e).trim()&&t.push({...e,type:"paragraph"})}return t}const kQ=[/\n\s*\n/,/^[-*+]\s/m,/^\d+\.\s/m,/^```/m,/^#{1,6}\s/m,/^>\s/m,/\|.*\|.*\|/,/^(ВНИМАНИЕ|WARNING|ВАЖНО|NOTE|TIP):/im,/^[⚠️❗🔥💡ℹ️]/m];function TQ(n){for(const t of kQ)if(t.test(n))return!0;return!1}function Hk(n){const t=mM(n),e=[];let r=null,s=[],i=[],o=[];function l(){s.length>0&&(e.push({kind:"stable",nodes:s}),s=[])}function a(){i.length>0&&(e.push({kind:"paragraph",texts:i,combinedText:i.join(`
176
+ `),originalNodes:o}),i=[],o=[])}for(const y of t){const b=y.type;if(b==="paragraph"||EQ.has(b)){const x=mc(y).trim();if(!x)continue;r!=="paragraph"&&(l(),r="paragraph"),i.push(x),o.push(y)}else if(rC.has(b))r!=="stable"&&(a(),r="stable"),s.push(y);else{const x=mc(y).trim();x?(r!=="paragraph"&&(l(),r="paragraph"),i.push(x),o.push(y)):(r!=="stable"&&(a(),r="stable"),s.push(y))}}l(),a();let u=0,d="";for(const y of e)y.kind==="paragraph"&&(u+=y.combinedText.length,d+=(d?`
177
+ `:"")+y.combinedText);const f=e.some(y=>y.kind==="paragraph"),g=e.some(y=>y.kind==="stable"),p=f&&(g||u>=pM),m=d?TQ(d):!1;return{runs:e,hasParagraphRuns:p,totalParagraphChars:u,hasStructuralSignals:m}}function _Q(n){var r,s;let t=n.previousSibling;for(;t;){const i=(r=t.textContent)==null?void 0:r.trim();if(i)return i;t=t.previousSibling}let e=n.parentElement;for(;e&&e!==e.ownerDocument.body;){let i=e.previousElementSibling;for(;i;){const o=(s=i.textContent)==null?void 0:s.trim();if(o)return o;i=i.previousElementSibling}e=e.parentElement}return""}function NQ(n){if(!n)return[];try{const e=new DOMParser().parseFromString(n,"text/html"),r=[];return e.querySelectorAll("img, iframe").forEach(s=>{const i=_Q(s);if(s.tagName==="IMG"){const o=s,l=o.src;if(!l||l.startsWith("file:///")||l===window.location.href)return;r.push({kind:"image",src:l,altText:o.alt||"",width:o.getAttribute("width")||void 0,height:o.getAttribute("height")||void 0,anchorText:i});return}if(s.tagName==="IFRAME"){const o=s,l=o.getAttribute("src")||"";if(!l)return;const a=o.getAttribute("width")||void 0,u=o.getAttribute("height")||void 0,d=Nw(l);if(d.id&&d.platform!=="download"&&d.platform!=="upload"&&d.platform!=="unknown"&&d.platform!=="link"){r.push({kind:"video",src:l,platform:d.platform,mediaId:d.id,width:a,height:u,anchorText:i});return}const f=KL(l);f.id&&f.platform!=="unknown"&&r.push({kind:"embed",src:l,platform:f.platform,mediaId:f.id,width:a,height:u,anchorText:i})}}),r}catch{return[]}}function IQ(n,t,e){const r=()=>{var g;let s=G();if(H(s)||(xe().selectEnd(),s=G()),!H(s)){const p=xe(),m=we(),y=$e(t);return m.append(y),p.append(m),m.selectEnd(),{start:{key:y.getKey(),offset:0,type:"text"},end:{key:y.getKey(),offset:t.length,type:"text"},anchorTopKey:m.getKey(),tracking:"fallback"}}const i=s.isBackward()?s.focus:s.anchor,o={key:i.key,offset:i.offset,type:i.type},l=((g=i.getNode().getTopLevelElement())==null?void 0:g.getKey())??null,a=(e==null?void 0:e.trim())||"";if(a)try{const m=new DOMParser().parseFromString(a,"text/html"),y=bd(n,m);if(y.length>0){s.removeText(),vc(y);const b=y[0].getTopLevelElement()??y[0],x=y[y.length-1].getTopLevelElement()??y[y.length-1],C=Array.from(new Set(y.map(N=>(N.getTopLevelElement()??N).getKey()))),v=ie(b)?{key:b.getKey(),offset:0,type:"text"}:{key:b.getKey(),offset:0,type:"element"},E=ie(x)?{key:x.getKey(),offset:x.getTextContentSize(),type:"text"}:{key:x.getKey(),offset:Y(x)?x.getChildrenSize():0,type:"element"};return{start:v,end:E,anchorTopKey:b.getKey(),tracking:"exact",insertedTopLevelKeys:C}}s.insertRawText(t)}catch{s.insertRawText(t)}else s.insertRawText(t);const u=G();if(H(u)){const p=u.anchor;return{start:o,end:{key:p.key,offset:p.offset,type:p.type},anchorTopKey:l,tracking:"exact"}}let d={...o};const f=me(o.key);return ie(f)&&(d={key:o.key,type:"text",offset:Math.min(f.getTextContentSize(),o.offset+t.length)}),{start:o,end:d,anchorTopKey:l,tracking:"fallback"}};try{return r()}catch{let s=null;return n.update(()=>{s=r()},{discrete:!0}),s}}function Rt(n){return n.replace(/\s+/g," ").trim()}function zd(n){return n?Rt(n).slice(0,180):""}function AM(n,t,e){if(e==="fallback")return!0;const r=Rt(n);if(!r)return!0;const s=zd(t);if(s.length<=20)return!1;const i=s.slice(0,Math.min(s.length,80));return r.includes(i)}function sC(n){try{const t=ii();return t.anchor.set(n.start.key,n.start.offset,n.start.type),t.focus.set(n.end.key,n.end.offset,n.end.type),Ge(t),!0}catch{return!1}}function yM(n,t){let e=null;const r=zd(t),s=Rt(t);return r.length<=20||!s?null:(n.read(()=>{const o=xe().getChildren();if(o.length===0)return;const l=b=>ie(b)?{key:b.getKey(),offset:0,type:"text"}:{key:b.getKey(),offset:0,type:"element"},a=b=>ie(b)?{key:b.getKey(),offset:b.getTextContentSize(),type:"text"}:{key:b.getKey(),offset:Y(b)?b.getChildrenSize():0,type:"element"},u=b=>{var E;const x=b.filter(N=>N.isAttached());if(x.length===0)return null;const C=x[0],v=x[x.length-1];return{start:l(C),end:a(v),anchorTopKey:((E=C.getTopLevelElement())==null?void 0:E.getKey())??C.getKey(),tracking:"fallback",insertedTopLevelKeys:x.map(N=>N.getKey())}},d=G(),f=H(d)?(d.anchor.getNode().getTopLevelElement()??d.anchor.getNode()).getKey():null;let g=f!==null?o.findIndex(b=>b.getKey()===f):-1;g>=0?!Rt(o[g].getTextContent())&&g>0&&(g-=1):g=o.length-1;const p=[];let m="";for(let b=g;b>=0;b--){const x=o[b],C=Rt(x.getTextContent());if(!C){if(p.length>0)break;continue}const v=Rt(`${C} ${m}`);if(s.endsWith(v)||s.includes(v)){if(p.unshift(x),m=v,m.length>=Math.min(s.length,220))break;continue}if(p.length>0)break}if(p.length>0&&m.length>=Math.min(s.length,40)&&(e=u(p),e))return;const y=o.find(b=>{const x=Rt(b.getTextContent());return x?x.includes(r)||r.includes(x):!1})??null;y&&(e=u([y]))}),e)}const LQ=[[/^>\s*\[!WARNING\]\s*/im,"warning"],[/^>\s*\[!CAUTION\]\s*/im,"warning"],[/^>\s*\[!NOTE\]\s*/im,"default"],[/^>\s*\[!TIP\]\s*/im,"default"],[/^>\s*\[!IMPORTANT\]\s*/im,"alert"],[/^>\s*\[!ERROR\]\s*/im,"alert"],[/^>\s*\[!SUCCESS\]\s*/im,"success"],[/^ВАЖНОЕ ПРИМЕЧАНИЕ:\s*/im,"alert"],[/^ВАЖНО:\s*/im,"alert"],[/^IMPORTANT:\s*/im,"alert"],[/^ALERT:\s*/im,"alert"],[/^ВНИМАНИЕ:\s*/im,"alert"],[/^WARNING:\s*/im,"warning"],[/^CAUTION:\s*/im,"warning"],[/^NOTE:\s*/im,"default"],[/^TIP:\s*/im,"default"],[/^ПРИМЕЧАНИЕ:\s*/im,"default"],[/^SUCCESS:\s*/im,"success"]];function bM(n){return n.split(`
178
+ `).map(t=>{for(const[e,r]of LQ){const s=t.match(e);if(s)return`[CALLOUT:${r}] ${t.slice(s[0].length)}`}return t}).join(`
179
+ `)}function wM(n){return n.map(t=>{if("text"in t&&t.text&&t.type!=="callout"){const e=t.text.match(/^\[CALLOUT:(\w+)\]\s*(.*)/);if(e)return{type:"callout",style:e[1],text:e[2]}}if(t.type==="callout"&&"text"in t&&t.text){const e=t.text.match(/^\[CALLOUT:(\w+)\]\s*(.*)/);if(e)return{...t,style:e[1],text:e[2]}}return t})}function MQ(n,t,e){const r=n.trim();if(!r)return null;const s=d=>e.some(f=>d>=f.start&&d<f.end),i=[...new Set(r.match(/\b\w{5,}\b/g)||[])],o=d=>i.length<=2?!0:i.filter(g=>d.includes(g)).length/i.length>=.4;let l=-1,a=0,u=null;{let d=0;for(;;){const f=t.indexOf(r,d);if(f===-1)break;if(!s(f)){u={code:r,start:f,end:f+r.length},l=f;break}d=f+1}}if(l===-1){const d=r.match(/\b\w{4,}\b/g);if(!(d!=null&&d.length))return null;const f=[...new Set(d)],g=f.sort((b,x)=>x.length-b.length),p=g[0],m=[];let y=0;for(;;){const b=t.indexOf(p,y);if(b===-1)break;s(b)||m.push(b),y=b+1}if(m.length===0)for(const b of g.slice(1)){for(y=0;;){const x=t.indexOf(b,y);if(x===-1)break;if(!s(x)){l=x;break}y=x+1}if(l!==-1)break}else if(m.length===1)l=m[0];else{const b=r.length+200,x=f.slice(0,20);let C=-1;for(const v of m){const E=Math.max(0,v-100),N=Math.min(t.length,v+b),S=t.slice(E,N);let _=0;for(const I of x)S.includes(I)&&(_+=I.length);_>C&&(C=_,l=v)}}l!==-1&&(a=r.indexOf(p))}if(l===-1)return null;{const d=Math.max(0,l-300),f=Math.min(t.length,l+r.length+300),g=t.slice(d,f),p=/```\w*\s*\n?([\s\S]*?)```/g;let m;for(;(m=p.exec(g))!==null;){const y=d+m.index+m[0].indexOf(m[1]),b=y+m[1].length;if(l>=d+m.index&&l<d+m.index+m[0].length){const x=m[1].trim();if(x.length>0)return{code:x,start:y,end:b}}}}if(u)return u;{const d=Math.max(0,l-2e3);let f=0,g=-1;for(let S=l-1;S>=d;S--)if(t[S]==="}"&&f++,t[S]==="{")if(f>0)f--;else{g=S;break}const p=g!==-1?g:l,m=t.slice(Math.max(0,p-500),p),y=m.match(/(?:void|int|float|double|char|bool|def|function|class|struct|fn|func|async|module|pub|export|const|let|var)\s+\w+[^.!?]*$/i);let b;if((y==null?void 0:y.index)!==void 0)b=Math.max(0,p-500)+y.index;else if(g!==-1){const S=m.match(/\b(\w+)\s*\([^)]*\)\s*(?:=>)?\s*$/);(S==null?void 0:S.index)!==void 0?b=Math.max(0,p-500)+S.index:b=g}else b=l;let x=0,C=b,v=!1,E=-1;for(let S=b;S<t.length&&S<b+3e3;S++)if(t[S]==="{"&&(v||(E=S),x++,v=!0),t[S]==="}"&&(x--,x<=0&&v)){C=S+1;break}const N=Math.max(r.length,300);if(v&&C>b&&E-b<=N){const S=t.slice(b,C).trim(),_=S.replace(/\s/g,"").length,I=r.replace(/\s/g,"").length;if(_>=I*.7&&o(S))return{code:S,start:b,end:C}}}{const d=t.slice(Math.max(0,l-500),l),f=d.lastIndexOf(`
180
+
181
+ `),g=d.search(/(?:^|\n)\s*(?:def |class |import |from |#include|package |pub |async |module |export |const |let |var |function )[^\n]*$/m),p=d.search(/(?:cpp|c\+\+|python|java|javascript|typescript|html|css|sql|ruby|go|bash|sh|swift|kotlin|rust|php|perl|scala)\s+(?:void|int|float|double|char|bool|def|function|class|struct|import|from|const|let|var|#include|package|pub|async|module|export|return)\b/i);let m;f!==-1?m=Math.max(0,l-500)+f+2:g!==-1?m=Math.max(0,l-500)+g+1:p!==-1?m=Math.max(0,l-500)+p:m=Math.max(0,l-a-20);const y=m+r.length+40,b=t.slice(l),x=b.search(/\n\s*\n/),C=r.length-a;let v=-1;if(x!==-1)v=x;else{const I=b.search(/[.!?]\s+[A-ZА-ЯЁ]|>\s*\[!/);I!==-1&&I>=C&&l+I<=y&&(v=I)}let E=v!==-1?l+v+1:Math.min(y,t.length);if(v===-1&&i.length>0){const I=t.slice(m,E);let L=0;for(const M of i){const R=I.lastIndexOf(M);R!==-1&&(L=Math.max(L,R+M.length))}L>0&&(E=m+L)}const N=t.slice(m,E).trim(),S=N.replace(/\s/g,"").length,_=r.replace(/\s/g,"").length;if(S>=_*.7&&o(N))return{code:N,start:m,end:E}}return u||null}const DQ=new Set(["c","cpp","c++","h","hpp","java","javascript","js","jsx","typescript","ts","tsx","go","rust","rs","swift","kotlin","kt","php","scala","dart","csharp","cs","c#","css","scss","less","arduino","ino","plain"]);function OQ(n){if(n.includes(`
182
+ `))return n;let t=n.trim();t=t.replace(/\s+(def |class |import |from )/g,`
183
+ $1`),t=t.replace(/([)'"a-zA-Z0-9_])\s+(while |for |with |try:|elif |else:|except|finally:|return |break\b|continue\b|pass\b|raise )/g,`$1
184
+ $2`),t=t.replace(/:\s+([a-zA-Z_"'(])/g,`:
185
+ $1`);const e=t.split(`
186
+ `).map(i=>i.trim()).filter(Boolean);if(e.length<=1)return n;const r=[];let s=0;for(const i of e)/^(elif\b|else:|except\b|finally:)/.test(i)&&(s=Math.max(0,s-1)),r.push(" ".repeat(s)+i),i.endsWith(":")&&s++,/^(return|break|continue|pass)\b/.test(i)&&(s=Math.max(0,s-1));return r.join(`
187
+ `)}function Yk(n,t){if(n.includes(`
188
+ `))return n;const e=(t||"plain").toLowerCase();if(e==="python"||e==="py")return OQ(n);if(!n.includes("{")||!DQ.has(e))return n;const r=[];let s=0,i="",o=null,l=0;const a=u=>{const d=u.trim();d&&r.push(" ".repeat(s)+d)};for(let u=0;u<n.length;u++){const d=n[u];if(o){i+=d,d==="\\"&&u+1<n.length?i+=n[++u]:d===o&&(o=null);continue}if(d==='"'||d==="'"||d==="`"){o=d,i+=d;continue}if(d==="("){l++,i+=d;continue}if(d===")"){l--,i+=d;continue}if(d==="{"){i=i.trimEnd()+" {",a(i),i="",s++,u+1<n.length&&n[u+1]===" "&&u++;continue}if(d==="}"){i.trim()&&(a(i),i=""),s=Math.max(0,s-1),r.push(" ".repeat(s)+"}"),u+1<n.length&&n[u+1]===" "&&u++;continue}if(d===";"&&l<=0){i+=";";let f=u+1;for(;f<n.length&&n[f]===" ";)f++;if(f<n.length-1&&n[f]==="/"&&n[f+1]==="/"){let g=f+2;for(;g<n.length&&n[g]!=="{"&&n[g]!=="}";)g++;i+=n.slice(u+1,g).trimEnd(),u=g-1}a(i),i="",u+1<n.length&&n[u+1]===" "&&u++;continue}i+=d}return i.trim()&&a(i),r.length<=1?n:r.join(`
189
+ `)}function Gk(n,t){if(!t)return n;const e=new RegExp(`^${t}\\s+`,"i");return n.replace(e,"")}function CM(n,t,e){const r=e??[];return n.map(s=>{var l;if(s.type!=="code"||!((l=s.text)!=null&&l.trim()))return s;const i=MQ(s.text,t,r);if(i){r.push({start:i.start,end:i.end});const a=Gk(i.code,s.lang);return{type:"code",lang:s.lang,text:Yk(a,s.lang)}}const o=Gk(s.text||"",s.lang);return{...s,text:Yk(o,s.lang)}})}const RQ=["h1","h2","h3","h4","h5","h6"];function qa(n){return RQ.includes(n)}function Ch(n){return parseInt(n.charAt(1),10)}function PQ(n){let t=!1;const e=n.findIndex(o=>qa(o.type));if(e!==-1&&n[e].type!=="h1"&&!n.some(l=>l.type==="h1")){const l=Ch(n[e].type);n.some(u=>qa(u.type)&&Ch(u.type)>l)&&(n=n.map((u,d)=>d===e?{...u,type:"h1"}:u))}let r=n.map(o=>{if(o.type==="h1"){if(t)return{...o,type:"h2"};t=!0}return o});const s=new Map;let i=0;return r=r.map(o=>{if(!qa(o.type))return o;const l=Ch(o.type);if(s.has(l)){const u=s.get(l);return i=u,{...o,type:`h${u}`}}let a=l;return i>0&&l>i+1&&(a=i+1),s.set(l,a),i=a,{...o,type:`h${a}`}}),r=BQ(r),r}function JA(n,t){for(let e=t+1;e<n.length;e++){if(qa(n[e].type))return null;const r=n[e].type;if(r!=="p")return r}return null}function BQ(n){const t=[...n];let e=0;for(;e<t.length;){if(t[e].type!=="h2"){e++;continue}const r=e,s=[e];let i=e+1;for(;i<t.length;)if(qa(t[i].type))if(t[i].type==="h2")s.push(i),i++;else break;else i++;if(s.length>=2){const o=JA(t,s[0]),l=s.slice(1).every(a=>JA(t,a)==="code"||JA(t,a)==="table");if(o!=="code"&&o!=="table"&&l)for(let a=1;a<s.length;a++)t[s[a]]={...t[s[a]],type:"h3"}}e=r+1}return t}const cn={text:{detail:0,format:0,mode:"normal",style:"",text:"{{TEXT}}",type:"extended-text",version:1},paragraph:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"paragraph",version:1,textFormat:0,textStyle:""},heading:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"heading",version:1,tag:"h1|h2|h3"},bulletList:{children:["{{LISTITEMS}}"],direction:null,format:"",indent:0,type:"list",version:1,listType:"bullet",start:1,tag:"ul"},numberList:{children:["{{LISTITEMS}}"],direction:null,format:"",indent:0,type:"list",version:1,listType:"number",start:1,tag:"ol"},checkList:{children:["{{CHECK_LISTITEMS}}"],direction:null,format:"",indent:0,type:"list",version:1,listType:"check",start:1,tag:"ul"},listitem:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"listitem",version:1,value:1},checkListitem:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"listitem",version:1,checked:!1,value:1,opened:!0},quote:{children:["{{TEXT_NODES}}"],direction:null,format:"",indent:0,type:"quote",version:1},code:{children:["{{CODE_HIGHLIGHT + LINEBREAK nodes}}"],direction:null,format:"",indent:0,type:"extend-code",version:1,language:"plain",isCollapsed:!1},codeHighlight:{detail:0,format:0,mode:"normal",style:"",text:"{{LINE}}",type:"code-highlight",version:1},linebreak:{type:"linebreak",version:1},calloutWrapper:{children:["{{CALLOUT_IMAGE}}","{{CALLOUT_CONTENT}}"],direction:null,format:"",indent:0,type:"callout-wrapper",version:1,backgroundColor:"",calloutType:""},calloutImage:{type:"callout-image",version:1,format:"",emojiCode:"e=%F0%9F%99%82",refElem:""},calloutContent:{children:["{{PARAGRAPH}}"],direction:null,format:"",indent:0,type:"callout",version:1},horizontalRule:{type:"horizontalrule",version:1},table:{children:["{{TABLEROWS}}"],direction:null,format:"",indent:0,type:"table",version:1},tableRow:{children:["{{TABLECELLS}}"],direction:null,format:"",indent:0,type:"tablerow",version:1},tableCell:{children:["{{PARAGRAPH}}"],direction:null,format:"",indent:0,type:"tablecell",version:1,backgroundColor:null,colSpan:1,headerState:0,rowSpan:1}},Zk={default:{emoji:"e=%F0%9F%99%82",bg:""},success:{emoji:"e=%E2%9C%85",bg:"rgba(219, 242, 233, 1)"},warning:{emoji:"e=%E2%9A%A0%EF%B8%8F",bg:"rgba(254, 247, 230, 1)"},alert:{emoji:"e=%E2%9D%97",bg:"rgba(255, 224, 223, 1)"}};function wu(n){return{...cn.text,text:n}}const Jk=/[\s([{]$/,Vk=/^[\s)\]}.,:;!?]/;function ih(n){const t=[],e=/(\*\*(.+?)\*\*|`([^`]+)`)/g;let r=0,s;for(;(s=e.exec(n))!==null;){if(s.index>r){let i=n.slice(r,s.index);t.length>0&&i.length>0&&!Vk.test(i)&&(i=" "+i),i.length>0&&!Jk.test(i)&&(i+=" "),t.push(wu(i))}else if(t.length>0){const i=t[t.length-1];i.text&&!Jk.test(i.text)&&t.push(wu(" "))}s[2]?t.push({...cn.text,text:s[2],format:1}):s[3]&&t.push({...cn.text,text:s[3],format:16}),r=s.index+s[0].length}if(r<n.length){let i=n.slice(r);t.length>0&&i.length>0&&!Vk.test(i)&&(i=" "+i),t.push(wu(i))}return t.length>0?t:[wu(n)]}function jQ(n,t){return{type:"link",version:1,url:n,rel:"noreferrer",target:null,title:null,direction:null,format:"",indent:0,children:[wu(t)]}}function Ud(n,t){if(!t.length)return ih(n);const e=[];let r=n;for(;r.length>0;){let s=1/0,i=null;for(const o of t){const l=r.indexOf(o.text);l!==-1&&l<s&&(s=l,i=o)}i!==null&&s<1/0?(s>0&&e.push(...ih(r.slice(0,s))),e.push(jQ(i.url,i.text)),r=r.slice(s+i.text.length)):(e.push(...ih(r)),r="")}return e.length>0?e:ih(n)}function Ru(n,t=[]){return{...cn.paragraph,children:Ud(n,t)}}function FQ(n,t,e=[]){return{...cn.heading,tag:n,children:Ud(t,e)}}function zQ(n,t,e=[]){return{...n==="bullet"?cn.bulletList:cn.numberList,children:t.map((s,i)=>({...cn.listitem,value:i+1,children:Ud(s,e)}))}}function UQ(n,t=[]){return{...cn.checkList,children:n.map((e,r)=>({...cn.checkListitem,value:r+1,checked:e.checked,children:Ud(e.text,t)}))}}function KQ(n,t=[]){return{...cn.quote,children:Ud(n,t)}}function WQ(n,t,e=[]){const r=Zk[n]??Zk.default;return{...cn.calloutWrapper,backgroundColor:r.bg,calloutType:n,children:[{...cn.calloutImage,emojiCode:r.emoji},{...cn.calloutContent,children:[Ru(t,e)]}]}}const HQ=new Set(["c","clike","cpp","css","html","java","js","json","markdown","objc","plain","powershell","py","rust","sql","swift","typescript","xml"]),Qk={javascript:"js",python:"py","c++":"cpp","objective-c":"objc",ts:"typescript",tsx:"typescript",jsx:"js"};function YQ(n){if(!n)return"plain";const t=n.toLowerCase();return HQ.has(t)?t:Qk[t]?Qk[t]:"plain"}function GQ(n,t){const e=t.split(`
190
+ `),r=[];return e.forEach((s,i)=>{r.push({...cn.codeHighlight,text:s}),i<e.length-1&&r.push({...cn.linebreak})}),{...cn.code,language:YQ(n),children:r}}function ZQ(n,t,e,r){return{type:"video",version:1,format:"",platform:n,videoID:t,width:e||"inherit",height:r||"inherit"}}function JQ(n,t,e,r,s){return{type:"embed",version:1,format:"",platform:t,embedId:e,src:n,width:r?parseInt(r,10)||r:560,height:s?parseInt(s,10)||s:315}}function Pu(n){switch(n.kind){case"image":return VQ(n.src,n.altText,n.width,n.height);case"video":return ZQ(n.platform,n.mediaId,n.width,n.height);case"embed":return JQ(n.src,n.platform,n.mediaId,n.width,n.height)}}function VQ(n,t,e,r){return{type:"image",version:1,src:n,altText:t||"",maxWidth:e||"inherit",width:e||"inherit",height:r||"inherit",showCaption:!1,caption:{editorState:{root:{children:[],direction:null,format:"",indent:0,type:"root",version:1}}}}}function xM(n,t){if(!t)return!1;const e=t.slice(0,60).toLowerCase().replace(/\s+/g," ").trim(),r=n.toLowerCase().replace(/\s+/g," ").trim();return e.length>5&&(r.includes(e)||e.includes(r))}function QQ(n,t=[]){return{...cn.table,children:n.map((e,r)=>({...cn.tableRow,children:e.map(s=>({...cn.tableCell,headerState:r===0?1:0,children:[Ru(s,t)]}))}))}}function Xk(n,t){switch(n.type){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.some(r=>r.text===n.text.trim())?Ru(n.text,t):FQ(n.type,n.text,t);case"p":return Ru(n.text,t);case"bullet":case"number":return zQ(n.type,n.items,t);case"check":return UQ(n.items,t);case"quote":return KQ(n.text,t);case"callout":return WQ(n.style,n.text||"",t);case"code":return GQ(n.lang,n.text||"");case"table":return QQ(n.rows,t);case"hr":return cn.horizontalRule;default:return Ru(n.text??"",t)}}function XQ(n){return"text"in n?n.text??"":"items"in n?n.items.map(e=>typeof e=="string"?e:e.text).join(" "):""}function vM(n,t=[],e=[]){if(!e.length)return n.map(i=>Xk(i,t));const r=[],s=new Set;for(const i of n){r.push(Xk(i,t));const o=XQ(i);for(let l=0;l<e.length;l++)s.has(l)||xM(o,e[l].anchorText)&&(r.push(Pu(e[l])),s.add(l))}for(let i=0;i<e.length;i++)s.has(i)||r.push(Pu(e[i]));return r}function SM(n){const t=n.split(`
191
+ `);if(n.length/Math.max(t.length,1)<200&&t.length>3)return n;let r=n;return r=r.replace(new RegExp("(\\p{L}{2,}):([A-ZА-ЯЁ])","gu"),`$1:
192
+ $2`),r=r.replace(/([.:!?])\s*(«[^»]+»[^.!?\n]*\.\s*—\s*[^.!?\n]+[.!?]?)\s*/g,`$1
193
+ $2
194
+ `),r=r.replace(/\s*(```\w*)\s*/g,`
195
+
196
+ $1
197
+
198
+ `),r=r.replace(/\s+(#{1,6}\s)/g,`
199
+
200
+ $1`),r=r.replace(/\s+(>\s)/g,`
201
+
202
+ $1`),r=r.replace(new RegExp('(?<=[.!?:>)\\]»"])\\s+([-*•]\\s)',"g"),`
203
+ $1`),r=r.replace(/\s{2,}([-*•]\s)/g,`
204
+ $1`),r=r.replace(/\s+(\d+\.\s)/g,`
205
+ $1`),r=r.split(`
206
+ `).flatMap(s=>{const i=s.match(/^(\d+\.\s.*?[.!?)]+)\s+(?=[A-ZА-ЯЁ])/u);if(i){const o=i[0].length-1,l=s.slice(0,o).trimEnd(),a=s.slice(o).trimStart();if(a.length>0)return[l,a]}return[s]}).join(`
207
+ `),r=r.split(`
208
+ `).flatMap(s=>{if(!/^>\s*\[!\w+\]/.test(s)||s.length<=120)return[s];const i=s.split(new RegExp('(?<=[.!?])\\s+(?=[A-ZА-ЯЁ0-9«"\\p{Emoji_Presentation}])',"gu"));if(i.length<=1)return[s];let o=1;for(let u=1;u<i.length&&!(/^.{1,50}:\s*$/.test(i[u])||/^\d+\.\s/.test(i[u])||/^[A-ZА-ЯЁ]\S*(?:\s+\S+){0,4}:\s/.test(i[u])||(o=u+1,o>=3));u++);if(o>=i.length)return[s];const l=i.slice(0,o).join(" "),a=i.slice(o).join(" ");return[l,a]}).join(`
209
+ `),r=r.split(`
210
+ `).flatMap(s=>/^>\s*\[!/.test(s)?[s]:s.length<=200?[s]:s.split(new RegExp("(?<=:)\\s+(?=[A-ZА-ЯЁ][a-zа-яё])","gu"))).join(`
211
+ `),r=r.split(`
212
+ `).flatMap(s=>{if(/^>\s*\[!/.test(s))return[s];const i=s.match(/^(.+?)\s+([A-ZА-ЯЁ][а-яёa-z]\S*(?:\s+\S+){0,4}:)\s*$/u);return i?[i[1],i[2]]:[s]}).join(`
213
+ `),r=r.split(`
214
+ `).flatMap(s=>{if(/^>\s*\[!/.test(s))return[s];const i=s.match(/^(.+?[.!?])\s+([А-ЯЁ][а-яёa-z]\S*(?:\s+\S+){0,4}:)\s+([А-ЯЁ].+)/u);return i?[i[1],i[2],i[3]]:[s]}).join(`
215
+ `),r=r.split(`
216
+ `).flatMap(s=>{if(/^>\s*\[!/.test(s))return[s];const i=s.match(/^([^:\n]{5,55}:)\s+([А-ЯЁ].{30,})/u);return i?[i[1],i[2]]:[s]}).join(`
217
+ `),r=r.replace(/(\s)((?:cpp|c\+\+|python|java|javascript|typescript|html|css|sql|ruby|go|bash|sh|swift|kotlin|rust|php|perl|scala)\s+(?:void|int|float|double|char|bool|def|function|class|struct|import|from|const|let|var|#include|package|pub|async|module|export|return)\b)/gi,`
218
+ $2`),r=r.split(`
219
+ `).flatMap(s=>{if(/^>\s*\[!/.test(s))return[s];if(s.length<=150)return[s];const i=s.split(new RegExp('(?<=[.!?])\\s+(?=[A-ZА-ЯЁ0-9«"\\p{Emoji_Presentation}])',"gu"));return i.reduce((l,a)=>l+a.length,0)/i.length>=85?[s]:i}).join(`
220
+ `),r=r.replace(/\n{3,}/g,`
221
+
222
+ `),r=r.trim(),r}const EM=`You are a text structure detector. Input is plain text. Return a JSON object {"blocks":[...]} detecting structure.
223
+
224
+ BLOCK TYPES:
225
+ {"type":"h1"|"h2"|"h3"|"h4"|"h5"|"h6", "text":"..."}
226
+ {"type":"p", "text":"..."}
227
+ {"type":"bullet", "items":["...", "..."]}
228
+ {"type":"number", "items":["...", "..."]}
229
+ {"type":"check", "items":[{"text":"...", "checked":true|false}]}
230
+ {"type":"quote", "text":"..."}
231
+ {"type":"callout", "style":"default"|"success"|"warning"|"alert", "text":"..."}
232
+ {"type":"code", "lang":"...", "text":"..."}
233
+ {"type":"table", "rows":[["A","B"],["C","D"]]} (first row = header)
234
+ {"type":"hr"}
235
+
236
+ IMPORTANT — CODE BLOCKS:
237
+ For code, return {"type":"code", "lang":"...", "text":"..."}.
238
+ Copy code VERBATIM — every character, every line. NEVER truncate, summarize or shorten code.
239
+ If code is inside \`\`\` fences, omit the fences, keep only the code content.
240
+ Text BEFORE code (intro phrases like "Вот код:", "Here is the script:", "Пример:") MUST be output as a separate p block BEFORE the code block. NEVER drop intro text.
241
+
242
+ INLINE FORMATTING:
243
+ - Preserve **bold** and \`code\` markers from input text EXACTLY as-is.
244
+ - For text without markers: add **bold** for key terms, important concepts, parameter names.
245
+ Add \`code\` for function names, variable names, commands, file paths, code identifiers, version strings (v1.0.0, stable-build-v2.1.0-alpha, etc.), config keys, env vars.
246
+ - Bold and code markers go INSIDE the "text" field of blocks. Example:
247
+ {"type":"p", "text":"**Important:** use \`fetchData()\` to load items"}
248
+ - NEVER add formatting inside code blocks (type "code").
249
+
250
+ DETECTION (priority order):
251
+ - \`\`\` fences → code (lang from fence label). Lines with code syntax (function, if(, while(, for(, switch(, try, catch, =>, {}, var/let/const, import, return, class, console.log, etc.) without natural language → code.
252
+ - "- "/"* "/"• " → bullet, "1. " → number, "[ ]"/"[x]" → check. Group consecutive items. ✅/👉/➡️ at line start are NOT list markers and NOT checkboxes — they are decorative emoji, keep them in p text.
253
+ - CRITICAL — CHECK TYPE: {"type":"check"} is ONLY for explicit text markers [ ] and [x]. NEVER use check type for lines starting with emoji (✅❌🟢🔴☑️⬜🎯👉 etc.). Emoji at line start = decorative, keep in heading or p text. Examples:
254
+ "✅ Добавляй лейбл когда:" → {"type":"h2","text":"✅ Добавляй лейбл когда:"}
255
+ "❌ НЕ добавляй когда:" → {"type":"h2","text":"❌ НЕ добавляй когда:"}
256
+ "[ ] Task not done" → {"type":"check","items":[{"text":"Task not done","checked":false}]}
257
+ "[x] Task done" → {"type":"check","items":[{"text":"Task done","checked":true}]}
258
+ - CRITICAL — NUMBER/BULLET EMOJI: 1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣ at line start are NOT numbered list markers. They are decorative emoji — keep them in the text as-is. NEVER convert to {"type":"number"}. Output as p or heading with the emoji preserved.
259
+ "1️⃣ PR → stage (Staging окружение)" → {"type":"h2","text":"1️⃣ PR → stage (Staging окружение)"}
260
+ "2️⃣ PR → main (Production окружение)" → {"type":"h2","text":"2️⃣ PR → main (Production окружение)"}
261
+ - 3+ consecutive short lines (1-4 words each) after a line ending with ":" → bullet list (unmarked list pattern).
262
+ - 3+ consecutive "Key: Value" pairs (like "Framework: React 18.3.1", "Build Tool: Vite 7.0.0") → bullet list. Each pair becomes one bullet. Keep the "Key: Value" text as-is. Tech specs, configs, metadata lists — always bullet.
263
+
264
+ - QUOTES — detect ALL these patterns as {"type":"quote"}:
265
+ "> " at line start, «text» — Author, "text" — Author, „text" — Author.
266
+ Intro words BEFORE the quote are NOT part of the quote — output intro as separate p.
267
+ CRITICAL RULE: ANY text containing «...» followed by " — Name" or ". — Name" MUST be split into p + quote. This applies even when the quote is embedded in a longer sentence or paragraph.
268
+ Examples:
269
+ 'Цитата дня: «Программирование — это искусство». — Автор' → {"type":"p","text":"Цитата дня:"} + {"type":"quote","text":"«Программирование — это искусство». — Автор"}
270
+ 'Важные мысли садоводов (записал в интернете): «Базилик — это фермерство». — Неизвестный автор.' → {"type":"p","text":"Важные мысли садоводов (записал в интернете):"} + {"type":"quote","text":"«Базилик — это фермерство». — Неизвестный автор."}
271
+ 'Мне понравилась фраза «Код — поэзия». — Кнут' → {"type":"p","text":"Мне понравилась фраза"} + {"type":"quote","text":"«Код — поэзия». — Кнут"}
272
+ ALWAYS split. NEVER leave «...» — Author inside a p block.
273
+ - ВАЖНОЕ ПРИМЕЧАНИЕ/NOTE/WARNING/IMPORTANT/TIP/ALERT/CAUTION/ВНИМАНИЕ/ПРИМЕЧАНИЕ: at line start → callout. Remove marker. Style: NOTE/TIP/ПРИМЕЧАНИЕ→default, SUCCESS→success, WARNING/CAUTION→warning, IMPORTANT/ALERT/ВНИМАНИЕ/ВАЖНОЕ ПРИМЕЧАНИЕ→alert.
274
+ - > [!WARNING], > [!NOTE], > [!TIP], > [!IMPORTANT], > [!ERROR], > [!SUCCESS], > [!CAUTION] → callout. Remove the > [!...] marker. Map: WARNING/CAUTION→warning, NOTE/TIP→default, IMPORTANT/ERROR→alert, SUCCESS→success.
275
+ - Emoji ⚠️❗🔥💡ℹ️ at line start → callout. REMOVE the emoji from text. Style: ⚠️→warning, ❗🔥→alert, 💡ℹ️→default. Callout = ONLY that single line, following lines are separate blocks.
276
+ - Any OTHER emoji at line start (🎯👉🙂💰🎮📌🚨➡️ etc.) → NOT a callout. KEEP the emoji in the text. Example: "🎯 Мой совет" → {"type":"h2","text":"🎯 Мой совет"}.
277
+ - SHELL WORKFLOW BLOCKS — CRITICAL: When you see a sequence of shell commands (git, npm, npx, cd, mkdir, rm, cp, mv, ls, echo, docker, curl, wget, pip, python, node, yarn, pnpm, brew, apt, sudo, chmod, ssh, make, cargo) mixed with "# comment" lines (# followed by a space), this is a SINGLE bash code block. Rules:
278
+ 1. "# text" lines near shell commands are bash COMMENTS, NOT headings. NEVER output them as h1/h2/h3.
279
+ 2. Group the ENTIRE consecutive sequence (commands + # comments + empty lines between them) into ONE {"type":"code", "lang":"bash", "text":"..."} block.
280
+ 3. NEVER split a shell workflow into multiple code blocks. NEVER interleave heading/p blocks between commands.
281
+ 4. Text BEFORE the shell sequence (intro like "Стандартный workflow:") → separate p or heading. Text AFTER → separate block.
282
+ 5. Example input:
283
+ "Стандартный workflow
284
+ # 1. Создать ветку
285
+ git checkout stage
286
+ git pull origin stage
287
+
288
+ # 2. Разработка
289
+ npm start
290
+
291
+ # 3. Коммит
292
+ git add .
293
+ git commit -m \\"feat\\"
294
+
295
+ # 4. Push
296
+ git push origin feature/x
297
+ Готово!"
298
+ Correct output: heading "Стандартный workflow" + ONE code block (lang:"bash") containing ALL lines from "# 1. Создать ветку" through "git push origin feature/x" + p "Готово!"
299
+ WRONG: multiple code blocks, or h2 "1. Создать ветку" + code "git checkout stage" + h2 "2. Разработка" etc.
300
+ - ENV/CONFIG FILE BLOCKS — CRITICAL: When ALL or MOST lines follow UPPER_SNAKE_CASE=value format (e.g. VITE_APP_NAME=Layers, DB_HOST=localhost, NODE_ENV=production), this is a configuration/env file. Rules:
301
+ 1. Output the ENTIRE block as ONE {"type":"code","lang":"dotenv","text":"..."} block.
302
+ 2. "# comment" lines within the block are part of the code — NEVER output them as headings or p blocks.
303
+ 3. Empty lines between groups of vars → keep inside the single code block (part of the text).
304
+ 4. NEVER split env vars into multiple blocks or individual p lines.
305
+ 5. Example: "VITE_APP=Layers
306
+ VITE_KEY=<secret>
307
+
308
+ # Sentry
309
+ VITE_DSN=<secret>" → ONE code block (lang:"dotenv") containing all lines.
310
+ - # through ###### → h1-h6. ONLY ONE h1 per document (the main title). All other sections → h2 or lower. ALL CAPS line (>3 chars) → h1 (only if no h1 exists yet, otherwise h2). REMEMBER: "# text" near shell commands = bash comment, NOT heading (see SHELL WORKFLOW BLOCKS above).
311
+ - "---"/"***" → hr. Lines with "|" → table (skip |---| separator rows).
312
+ - HEADINGS — CRITICAL: A short phrase (2-8 words, no ending period) followed by explanatory text, list, or code block is ALWAYS a heading, NEVER a p. Rules:
313
+ 1. Standalone short line (10-80 chars, ≥2 words, no ending .!?) → h2.
314
+ 2. Short phrase at START of paragraph before a longer sentence or code → split into heading + content.
315
+ 3. Lines with decorative emoji at start that match heading criteria (10-80 chars, ≥2 words) → heading WITH the emoji in text. Example: "📘 Инструкция: «Как делать X»" → h1, "🔵 Шаг 1. Настройка" → h2.
316
+ 4. NEVER split a single heading into multiple blocks. ALL words of a heading line MUST stay in ONE block. "🔵 Шаг 0. Подготовь гипотезу в формате H1/H0" → ONE h2, NOT two p blocks.
317
+ 5. HEADING HIERARCHY — NOT everything is h2! Analyze semantic nesting:
318
+ - Top-level sections under h1 → h2 (major topics like "Монорепозиторий структура", "Path Mapping")
319
+ - Sub-topics that belong INSIDE an h2 section → h3 (e.g. "Основное приложение (apps/layers)" and "Модули (packages/*)" are sub-topics of "Монорепозиторий структура" → h3, not h2)
320
+ - Sibling sections at the same semantic level MUST have the same heading level
321
+ - Example: h1 "Project Architecture" → h2 "Монорепозиторий структура" → h3 "Основное приложение" + h3 "Модули" → h2 "Path Mapping" → h3 "Примеры использования:"
322
+ 6. Examples of HEADINGS (not p!): "Монорепозиторий структура", "Основное приложение (apps/layers)", "Path Mapping", "Примеры использования:", "Переменные и функции", "Качество кода", "Системные требования", "📘 Инструкция: «Название»", "🔵 Шаг 0. Описание".
323
+ 7. These are NOT headings → regular p: single words (<10 chars), full sentences ending with period, lines >80 chars.
324
+ Single words and lines <10 chars → p.
325
+ - Empty line (double newline) = paragraph break. Each text block separated by empty lines → separate p. NEVER merge multiple paragraphs into one.
326
+ - Long text without empty lines: split into separate p blocks by semantic topic. When subject changes, new argument starts, or a new idea begins → new p. Aim for 2-5 sentences per paragraph. Never output a single giant p for multi-topic text.
327
+ - Everything else → p
328
+
329
+ RULES:
330
+ 1. Return ONLY {"blocks":[...]}. No markdown fences, no explanation.
331
+ 2. EVERY line of input MUST appear in output VERBATIM. Do NOT skip, drop, summarize, shorten, paraphrase, or rewrite any text. Copy the EXACT original words. You are a formatter, NOT a summarizer.
332
+ 3. NEVER remove emoji from text — except callout-trigger emoji (⚠️❗🔥💡ℹ️) which are replaced by the callout icon. All other emoji must stay in text as-is.
333
+ 4. ALWAYS split heading phrases from paragraph text.
334
+ 5. Callout = single line only. Following lines → separate blocks.
335
+ 6. For code blocks: copy the FULL code text verbatim, never truncate.
336
+ 7. BLOCK BOUNDARY INTEGRITY: When splitting one input line into multiple blocks (heading+p, callout+p, p+code, etc.), the concatenation of ALL resulting block texts MUST contain EVERY word from the original line. NEVER drop words at split boundaries. Example: "ВАЖНО: Версионирование Не забудьте увеличить minor версию в package.json перед созданием PR!" → callout "Версионирование" + p "Не забудьте увеличить minor версию в package.json перед созданием PR!" — ALL words preserved.`,qQ="https://denindka.online/smart-paste";function $Q(n,t,e=[]){let r=n.trim();const s=r.match(/```(?:json)?\s*([\s\S]*?)```/);s&&(r=s[1].trim());const i=JSON.parse(r);let o=Array.isArray(i)?i:i.blocks||i.children;if(!(o!=null&&o.length))throw new Error("Invalid AI response: empty blocks");return o=CM(o,t),o=wM(o),o=PQ(o),vM(o,[],e)}async function kM(n,t,e=[]){const r=n.slice(0,pc),s=SM(r),i=bM(s),o=JSON.stringify({messages:[{role:"system",content:EM},{role:"user",content:i}]});return new Promise((l,a)=>{const u=setTimeout(()=>{a(new Error("AI timeout"))},Bb);t(o,d=>{clearTimeout(u);try{const f=$Q(d,r,e);l(f)}catch(f){a(f)}},()=>{clearTimeout(u),a(new Error("AI request failed"))})})}function iC(n,t,e,r,s,i){let o=setTimeout(()=>i(),Bb),l=n.length>pc;const a=new Set,u=[];let d=!1,f=0;const g=new Map,p=n.slice(0,pc),m=SM(p),y=bM(m),b=C=>{clearTimeout(o),o=setTimeout(()=>i(),Bb);let v=C;if(qa(v.type)){v.type==="h1"&&d&&(v={...v,type:"h2"}),v.type==="h1"&&(d=!0);const _=Ch(v.type);if(g.has(_)){const I=g.get(_);v={...v,type:`h${I}`},f=I}else{let I=_;f>0&&_>f+1&&(I=f+1),g.set(_,I),f=I,v={...v,type:`h${I}`}}}const[E]=CM([v],p,u),[N]=wM([E]),S=vM([N],t);if(e.length>0){const _="text"in N?N.text??"":"";for(let I=0;I<e.length;I++)!a.has(I)&&xM(_,e[I].anchorText)&&(S.push(Pu(e[I])),a.add(I))}r(S)},x=JSON.stringify({messages:[{role:"system",content:EM},{role:"user",content:y}]});fetch(qQ,{method:"POST",headers:{"Content-Type":"application/json"},body:x}).then(async C=>{if(!C.ok||!C.body){clearTimeout(o),i();return}const v=C.body.getReader(),E=new TextDecoder;let N="";for(;;){const{done:S,value:_}=await v.read();if(S)break;N+=E.decode(_,{stream:!0});const I=N.split(`
337
+ `);N=I.pop()||"";for(const L of I){const M=L.trim();if(M){if(M==="data: [DONE]"){if(clearTimeout(o),e.length>0){const R=e.filter((F,j)=>!a.has(j)).map(F=>Pu(F));R.length>0&&r(R)}s(l);return}if(M.startsWith("data: "))try{const R=JSON.parse(M.slice(6));if(R.error){clearTimeout(o),i();return}if(R.warning==="truncated"){l=!0;continue}b(R)}catch{}}}}if(clearTimeout(o),e.length>0){const S=e.filter((_,I)=>!a.has(I)).map(_=>Pu(_));S.length>0&&r(S)}s(l)}).catch(()=>{clearTimeout(o),i()})}const eX=Object.freeze(Object.defineProperty({__proto__:null,segmentByAI:kM,segmentByAIStream:iC},Symbol.toStringTag,{value:"Module"})),tX={note:"default",tip:"success",warning:"warning",caution:"alert",important:"alert"};function qk(n){const t=n.replace(/\r\n/g,`
338
+ `),e=[];let r=0;const i=t.replace(/^```(\w*)\n([\s\S]*?)^```\s*$/gm,(a,u,d)=>{const f=`\0CODE_BLOCK_${r++}\0`;return e.push({placeholder:f,content:d,language:u||"plain",fullMatch:a}),f}).split(/(\n\s*\n)/),o=[];for(let a=0;a<i.length;a++)a%2===0?o.push(i[a]):o.length>0?o[o.length-1]+=i[a]:o.push(i[a]);const l=[];for(const a of o){const u=a.trim();if(u.length===0){l.length>0&&(l[l.length-1].rawText+=a);continue}const d=e.find(p=>u===p.placeholder);if(d){l.push({blockType:"code",rawText:a.replace(d.placeholder,d.fullMatch),meta:{language:d.language}});continue}let f=a;for(const p of e)f.includes(p.placeholder)&&(f=f.replace(p.placeholder,p.fullMatch));const g=nX(u,f);l.push(g)}return rX(l)}function nX(n,t){if(/^(---|___|\*\*\*)\s*$/.test(n))return{blockType:"horizontal-rule",rawText:t};const e=n.match(/^(#{1,6})\s+(.*)$/);if(e){const s=`h${e[1].length}`;return{blockType:"heading",rawText:t,meta:{headingLevel:s}}}const r=n.match(/^\[!(NOTE|TIP|WARNING|CAUTION|IMPORTANT)\]\s*([\s\S]*)$/im);if(r){const s=tX[r[1].toLowerCase()]||"default";return{blockType:"callout",rawText:t,meta:{calloutType:s}}}if(/^>\s/m.test(n)&&n.split(`
339
+ `).every(i=>i.trim()===""||/^>\s?/.test(i)))return{blockType:"quote",rawText:t};if(/^(\s*[-*+]\s)/m.test(n)){const s=n.split(`
340
+ `);if(s.every(o=>o.trim()===""||/^\s*[-*+]\s/.test(o))){const o=s.filter(l=>l.trim().length>0).map(l=>l.replace(/^\s*[-*+]\s/,""));return{blockType:"bullet-list",rawText:t,meta:{listItems:o}}}}if(/^(\s*\d+\.\s)/m.test(n)){const s=n.split(`
341
+ `);if(s.every(o=>o.trim()===""||/^\s*\d+\.\s/.test(o))){const o=s.filter(l=>l.trim().length>0).map(l=>l.replace(/^\s*\d+\.\s/,""));return{blockType:"number-list",rawText:t,meta:{listItems:o}}}}return{blockType:"paragraph",rawText:t}}function rX(n){var e,r;const t=[];for(const s of n){const i=t[t.length-1];i&&i.blockType===s.blockType&&(s.blockType==="bullet-list"||s.blockType==="number-list")?(i.rawText+=s.rawText,i.meta={...i.meta,listItems:[...((e=i.meta)==null?void 0:e.listItems)||[],...((r=s.meta)==null?void 0:r.listItems)||[]]}):t.push({...s})}return t}function sX(n,t){if(!n||n.length===0)return{valid:!1,reason:"No segments produced"};for(const i of n)if(!vQ.has(i.blockType))return{valid:!1,reason:`Unknown block type: ${i.blockType}`};const e=n.map(i=>i.rawText).join(""),r=t.replace(/\r\n/g,`
342
+ `);return e.replace(/\r\n/g,`
343
+ `)!==r?{valid:!1,reason:"Reassembled text does not match original"}:{valid:!0}}function ao(n){typeof window<"u"&&window.dispatchEvent(new CustomEvent("smart-paste-telemetry",{detail:n}))}function iX(n,t){for(let e=0;e<t.length;e++){const r=t[e];if(dt(r)){const s=r.getParent(),i=Ze(s)?s.getListType():"bullet",o=yn(i);for(;e<t.length&&dt(t[e]);)o.append(t[e]),e++;n.append(o),e--}else n.append(r)}}function oX(n,t){const e=n.getChildren();if(e.length===0){n.remove();return}const r=e.findIndex(l=>l.getKey()===t.getKey());if(r===-1)return;const s=e.slice(r+1),i=n.getParent(),o=n.getNextSibling();if(t.remove(),n.getChildrenSize()===0){if(i&&dt(i)){const l=i.getParent();if(l&&Ze(l)){const a=l.getChildren().findIndex(u=>u.getKey()===i.getKey());if(a!==-1){i.remove();const u=l.getChildren(),d=l.getListType(),f=yn(d),g=yn(d);for(let p=0;p<a;p++)f.append(u[p]);for(let p=a;p<u.length;p++)g.append(u[p]);l.insertBefore(f),f.insertAfter(t),t.insertAfter(g),l.isAttached()&&l.remove();return}}}i&&Y(i)&&(o?o.insertBefore(t):i.append(t)),n.isAttached()&&n.remove();return}if(r===0)n.insertBefore(t);else if(r===e.length-1)n.insertAfter(t);else{const l=n.getListType(),a=yn(l);for(const u of s)a.append(u);n.insertAfter(t),t.insertAfter(a)}}const $k=n=>{for(;n;){if(Ki(n))return n;const t=n.getParent();if(!t)break;n=t}return null},TM=n=>{switch(n){case"warning":return{emoji:"e=%E2%9A%A0%EF%B8%8F",backgroundColor:"rgba(254, 247, 230, 1)",calloutType:"warning"};case"alert":return{emoji:"e=%E2%9D%97",backgroundColor:"rgba(255, 224, 223, 1)",calloutType:"alert"};case"success":return{emoji:"e=%E2%9C%85",backgroundColor:"rgba(219, 242, 233, 1)",calloutType:"success"};default:return{emoji:"e=%F0%9F%99%82",backgroundColor:"",calloutType:""}}},eT=n=>n.replace(/\s+/g," ").trim(),lX=n=>{const t=Wt();if(t){const e=Se(t,Dc);if((e==null?void 0:e.__type)==="callout"){const r=G();if(H(r)&&r.isCollapsed()){const s=r.anchor.getNode(),i=Se(s,Ki);return Np(n,i,e)}}}return!0};function VA(n,t){let e=n;for(;e;){if(Y(e)){const r=e.getParent();if(dt(e)||(r==null?void 0:r.getKey())===t.getKey())return e}e=e.getParent()}return null}function aX(n){const t=[];function e(r){if(Ze(r))for(const s of r.getChildren())e(s);else if(dt(r)){t.push(r);for(const s of r.getChildren())e(s)}else Y(r)&&t.push(r)}for(const r of n.getChildren())e(r);return t}function _M(n){const t=xe(),e=n.anchor.getNode(),r=n.focus.getNode(),s=VA(e,t),i=VA(r,t);if(!s||!i)return[];const o=new Set([s.getKey(),i.getKey()]);for(const d of n.getNodes()){const f=VA(d,t);f&&o.add(f.getKey())}const a=aX(t).filter(d=>o.has(d.getKey())),u=new Set(a.map(d=>d.getKey()));return a.filter(d=>{let f=d.getParent();for(;f;){if(u.has(f.getKey()))return!1;f=f.getParent()}return!0})}const cX=(n,t,e)=>()=>{const r=Ld(t,e),s=Id(n),i=we(),o=Nd().append(i);return r.append(s),r.append(o),r};function uX(n,t,e){const r=Ld(t,e),s=Id(n),i=Nd();return r.append(s),r.append(i),r}function dX(n,t,e,r){const s=_M(n);if(s.length===0)return!1;const i=s[0],o=i.getParent(),l=uX(t,e,r),a=l.getChildren().find(Dc);return!a||!Y(a)?!1:(i.insertBefore(l),iX(a,s),o&&Ze(o)&&oX(o,l),!0)}const fX=(n,t)=>{const r=t.getChildren().find(Dc);if(!r)return;const s=r.getFirstChild();if(!s||!Y(s))return;const i=n.getChildren();for(const o of i)s.append(o)};function Fc(n,t){return n._nodes.has(t)}function tT(n){return n.trim().replace(/^#{1,6}\s+/,"")}function nT(n){return n.trim().split(`
344
+ `).map(t=>t.replace(/^>\s?/,"")).join(`
345
+ `)}function rT(n){return n.trim().replace(/^\[!(NOTE|TIP|WARNING|CAUTION|IMPORTANT)\]\s*/im,"")}function aa(n){const t=we();return n.trim()&&t.append($e(n.trim())),t}function hX(n,t){const e=[];for(const r of n){const s=gX(r,t);e.push(...s)}return e}function gX(n,t){switch(n.blockType){case"heading":return pX(n,t);case"bullet-list":return sT(n,"bullet",t);case"number-list":return sT(n,"number",t);case"quote":return mX(n,t);case"code":return AX(n,t);case"callout":return yX(n,t);case"horizontal-rule":return bX(t);case"paragraph":default:return[aa(n.rawText)]}}function pX(n,t){var s;const e=((s=n.meta)==null?void 0:s.headingLevel)||"h1";if(!Fc(t,"heading"))return[aa(tT(n.rawText))];const r=Ws(e);return r.append($e(tT(n.rawText))),[r]}function sT(n,t,e){var i,o;if(!Fc(e,"list"))return(((i=n.meta)==null?void 0:i.listItems)||[n.rawText.trim()]).map(a=>aa(a));const r=yn(t),s=((o=n.meta)==null?void 0:o.listItems)||[n.rawText.trim()];for(const l of s){const a=fr();a.append($e(l)),r.append(a)}return[r]}function mX(n,t){if(!Fc(t,"quote"))return[aa(nT(n.rawText))];const e=Ic();return e.append($e(nT(n.rawText))),[e]}function AX(n,t){var o;if(!Fc(t,"extend-code"))return[aa(n.rawText)];const e=((o=n.meta)==null?void 0:o.language)||"plain";let r=n.rawText.trim();const s=r.match(/^```\w*\n([\s\S]*?)```\s*$/);s&&(r=s[1]),r.endsWith(`
346
+ `)&&(r=r.slice(0,-1));const i=new vr(!1,e);return r&&i.append($e(r)),[i]}function yX(n,t){var f;if(!Fc(t,"callout-wrapper"))return[aa(rT(n.rawText))];const e=((f=n.meta)==null?void 0:f.calloutType)||"default",{emoji:r,backgroundColor:s,calloutType:i}=TM(e),o=Ld(s||"#f3f3f4",i||"default"),l=Id(r||"e=%F0%9F%99%82"),a=Nd(),u=we(),d=rT(n.rawText);return d.trim()&&u.append($e(d.trim())),a.append(u),o.append(l),o.append(a),[o]}function bX(n){return Fc(n,"horizontalrule")?[na()]:[aa("---")]}function iT(n,t,e,r){n.update(()=>{const s=!!(e&&(e.start.key!==e.end.key||e.start.offset!==e.end.offset)),i=xe();let o=!1;s&&e&&(o=sC(e));let l=null,a=!1;if(!o&&(e!=null&&e.anchorTopKey)){const d=me(e.anchorTopKey),f=(d==null?void 0:d.getTopLevelElement())??d??null;f&&f.isAttached()&&(l=f,a=!0)}if(!l&&r){const d=zd(r);d.length>20&&(l=i.getChildren().find(f=>Rt(f.getTextContent()).includes(d))??null,l&&(a=!0))}if(!l&&o){const d=G();if(H(d)){const f=d.anchor.getNode().getTopLevelElement();if(d.removeText(),f&&f.isAttached()&&AM(f.getTextContent(),r,e==null?void 0:e.tracking))l=f,a=!0;else{const g=d.getNodes()[0];l=g?g.getTopLevelElement():i.getLastChild(),a=!!l}}}l||(l=i.getLastChild());const u=hX(t,n);if(u.length>0){let d=l,f=!1;for(const g of u)!f&&d&&d.getTextContent().trim()===""?(d.replace(g),d=g,f=!0):(d?d.insertAfter(g):i.append(g),d=g);(!f&&a&&l&&l.isAttached()||f&&l&&l.isAttached())&&l.remove()}})}function wX(n,t,e,r){n.update(()=>{const s=!!(e&&(e.start.key!==e.end.key||e.start.offset!==e.end.offset)),i=xe();let o=!1;s&&e&&(o=sC(e));let l=null,a=!1;if(!o&&(e!=null&&e.anchorTopKey)){const f=me(e.anchorTopKey),g=(f==null?void 0:f.getTopLevelElement())??f??null;g&&g.isAttached()&&(l=g,a=!0)}if(!l&&r){const f=zd(r);f.length>20&&(l=i.getChildren().find(g=>Rt(g.getTextContent()).includes(f))??null,l&&(a=!0))}if(!l&&o){const f=G();if(!H(f))return;const g=f.anchor.getNode().getTopLevelElement();if(f.removeText(),g&&g.isAttached()&&AM(g.getTextContent(),r,e==null?void 0:e.tracking))l=g,a=!0;else{const p=f.getNodes()[0];l=p?p.getTopLevelElement():i.getLastChild(),a=!!l}}l||(l=i.getLastChild());let u=l,d=!1;for(const f of t)try{const g=bo(f);!d&&u&&u.getTextContent().trim()===""?(u.replace(g),u=g,d=!0):(u?u.insertAfter(g):i.append(g),u=g)}catch{}(!d&&a&&l&&l.isAttached()||d&&l&&l.isAttached())&&l.remove()})}let vl=Promise.resolve();function jb(){vl=Promise.resolve()}function xh(n){vl=n}function vh(n){if(!qn(n)&&!ts(n)||!Y(n))return null;const t=n.getChildren();if(t.length===0)return null;const e=[];let r=[];for(const s of t){const i=s.exportJSON();St(s)?(r.push(i),e.push(r),r=[]):r.push(i)}return r.length>0&&e.push(r),n.clear(),{codeNodeKey:n.getKey(),lines:e}}function Fb(n){const t=[],e=[];function r(s){if(ie(s)&&e.push(s),Y(s)){if(qn(s)||ts(s))return;for(const i of s.getChildren())r(i)}}r(n);for(const s of e){const i=s.getTextContent();if(i.trim()){const o=i.split(/\s+/).filter(l=>l);t.push({textNodeKey:s.getKey(),fullText:i,words:o}),s.setTextContent(" ")}}return t}async function zb(n,t){const e=t.words;let r="";for(let s=0;s<e.length;s++)if(await new Promise(i=>setTimeout(i,50)),r+=(s>0?" ":"")+e[s],n.update(()=>{const i=me(t.textNodeKey);i&&i.isAttached()&&(i.setTextContent(r),i.select(r.length,r.length))}),s%10===0||s===e.length-1){const i=n.getElementByKey(t.textNodeKey);i&&i.scrollIntoView({behavior:"smooth",block:"center"})}r!==t.fullText&&n.update(()=>{const s=me(t.textNodeKey);s&&s.isAttached()&&s.setTextContent(t.fullText)})}async function Sh(n,t){for(let e=0;e<t.lines.length;e++)if(await new Promise(r=>setTimeout(r,30)),n.update(()=>{const r=me(t.codeNodeKey);if(!(!r||!Y(r)))for(const s of t.lines[e])try{const i=bo(s);r.append(i)}catch{}},{discrete:!0}),e%3===0||e===t.lines.length-1){const r=n.getElementByKey(t.codeNodeKey);r&&r.scrollIntoView({behavior:"smooth",block:"center"})}}async function CX(n,t,e,r){const{editor:s,fetchSmartPastePrompt:i,serverStreamAvailable:o}=n;function l(p){const m=p.exportJSON();return Y(p)&&(m.children=p.getChildren().map(l)),m}const a=[];let u=null;s.update(()=>{let p=null,m=[],y=[];for(const x of e){const C=me(x);if(!C)continue;const v=C.getType();if(rC.has(v))p==="paragraph"&&y.length>0&&(a.push({kind:"paragraph",texts:y,combinedText:y.join(`
347
+ `)}),y=[]),p="stable",m.push(l(C));else{const N=C.getTextContent().trim();if(!N)continue;p==="stable"&&m.length>0&&(a.push({kind:"stable",serializedNodes:m}),m=[]),p="paragraph",y.push(N)}}m.length>0&&a.push({kind:"stable",serializedNodes:m}),y.length>0&&a.push({kind:"paragraph",texts:y,combinedText:y.join(`
348
+ `)});const b=me(e[0]);if(b!=null&&b.isAttached()){const x=b.getPreviousSibling();u=(x==null?void 0:x.getKey())??null}_u(!0);for(const x of e){const C=me(x);C!=null&&C.isAttached()&&C.remove()}},{discrete:!0}),SQ(a,r),jb();const d=async p=>{if(i){const{segmentByAI:m}=await Promise.resolve().then(()=>eX);return m(p.combinedText,i,n.pendingRichElementsRef.current)}throw new Error("No classic AI provider")},f=new Map;if(i)for(let p=0;p<a.length;p++){const m=a[p];if(m.kind==="paragraph"){const y={texts:m.texts,combinedText:m.combinedText};f.set(p,d(y))}}function g(p){if(u){const m=me(u);m!=null&&m.isAttached()?m.insertAfter(p):xe().append(p)}else{const m=xe(),y=m.getFirstChild();y?y.insertBefore(p):m.append(p)}u=p.getKey()}for(let p=0;p<a.length;p++){const m=a[p],y=p;m.kind==="stable"?xh(vl.then(async()=>{const b=[];s.update(()=>{for(const x of m.serializedNodes)try{const C=bo(x);g(C);const v=vh(C);v&&b.push(v)}catch{}},{discrete:!0});for(const x of b)await Sh(s,x)})):xh(vl.then(async()=>{if(i){let b;try{b=await f.get(y)}catch{return}for(let x=0;x<b.length;x++){const C=b[x],v=[];let E=null;if(s.update(()=>{try{const N=bo(C);g(N),E=vh(N),E||v.push(...Fb(N))}catch{}},{discrete:!0}),await new Promise(N=>requestAnimationFrame(N)),E)await Sh(s,E);else for(const N of v)await zb(s,N)}}else if(o){const x=m.combinedText.slice(0,15e3),C=[];let v=!1,E=null;for(iC(x,n.pendingLinksRef.current,n.pendingRichElementsRef.current,N=>{C.push(N),E&&(E(),E=null)},()=>{v=!0,E&&(E(),E=null)},()=>{v=!0,E&&(E(),E=null)});!v||C.length>0;){if(C.length===0){await new Promise(S=>{E=S});continue}const N=C.shift();for(const S of N){const _=[];let I=null;if(s.update(()=>{try{const L=bo(S);g(L),I=vh(L),I||_.push(...Fb(L))}catch{}},{discrete:!0}),await new Promise(L=>requestAnimationFrame(L)),I)await Sh(s,I);else for(const L of _)await zb(s,L)}}}}))}xh(vl.then(()=>{_u(!1),n.setIsProcessing(!1),n.setModalOpen(!1),n.setPendingText(""),n.resetPendingRefs(),jb()}))}function uu(n){n.setModalOpen(!1),n.setPendingText(""),n.pendingLinksRef.current=[],n.pendingRichElementsRef.current=[],n.pendingRangeRef.current=null,n.pendingClassificationRef.current=null,n.pendingInsertedKeysRef.current=[]}async function xX(n,t,e){const{editor:r,fetchSmartPastePrompt:s,serverStreamAvailable:i}=n,o=performance.now();if(t==="plain"){uu(n),ao({choice:"plain",textLength:e.length,segmentCount:0,processingTimeMs:performance.now()-o});return}try{if(t==="ai"){if(n.pendingClassificationRef.current&&n.pendingInsertedKeysRef.current.length>0){const g=n.pendingClassificationRef.current,p=[...n.pendingInsertedKeysRef.current];n.pendingClassificationRef.current=null,n.pendingInsertedKeysRef.current=[],await CX({editor:r,fetchSmartPastePrompt:s,pendingLinksRef:n.pendingLinksRef,pendingRichElementsRef:n.pendingRichElementsRef,setIsProcessing:n.setIsProcessing,setModalOpen:n.setModalOpen,setPendingText:n.setPendingText,resetPendingRefs:()=>{n.pendingLinksRef.current=[],n.pendingRichElementsRef.current=[],n.pendingRangeRef.current=null,n.pendingClassificationRef.current=null,n.pendingInsertedKeysRef.current=[]},serverStreamAvailable:i},g,p,e),ao({choice:"ai",textLength:e.length,segmentCount:g.runs.length,processingTimeMs:performance.now()-o});return}let d=n.pendingRangeRef.current;if(!d){const g=yM(r,e);g&&(n.pendingRangeRef.current=g,d=g)}const f=!!s&&(!d||d.tracking==="fallback");if(i&&!f){let g=0,p=null,m=null,y=null,b=!1,x=Promise.resolve();const C=[],v=zd(e),E=v.slice(0,Math.min(v.length,80));r.update(()=>{const N=xe(),S=n.pendingRangeRef.current;n.pendingRangeRef.current=null;let _=!1;if(S){const I=(S.insertedTopLevelKeys||[]).map(M=>{const R=me(M);return(R==null?void 0:R.getTopLevelElement())??R??null}).filter(M=>!!(M&&M.isAttached()));if(I.length>0){const[M,...R]=I;m=M,y=M.getKey(),b=!0,_=!0,R.forEach(F=>{F.isAttached()&&F.remove()})}if(!m&&sC(S)){const R=G();H(R)&&R.removeText()}const L=S.anchorTopKey?me(S.anchorTopKey):null;if(L&&L.isAttached()){if(!m){m=L,y=m.getKey();const M=Rt(m.getTextContent());b=S.tracking==="fallback"||E.length>20&&M.includes(E),Y(m)&&S.start.offset===0&&S.end.key===S.start.key&&m.clear()}}else{const M=G(),R=M==null?void 0:M.getNodes()[0];if(m=(R==null?void 0:R.getTopLevelElement())??null,y=(m==null?void 0:m.getKey())??null,m){const F=Rt(m.getTextContent());b=E.length>20&&F.includes(E)}}p=m??N.getLastChild()}else{const I=G();H(I)&&I.removeText();const L=I==null?void 0:I.getNodes()[0];if(m=(L==null?void 0:L.getTopLevelElement())??null,y=(m==null?void 0:m.getKey())??null,m){const M=Rt(m.getTextContent());b=E.length>20&&M.includes(E)}else if(E.length>20){const M=N.getChildren().find(R=>Rt(R.getTextContent()).includes(E))??null;M&&(m=M,y=M.getKey(),b=!0)}p=m??N.getLastChild()}if((S==null?void 0:S.tracking)==="fallback"&&m&&m.isAttached()){const I=m.getTopLevelElement()??m,L=N.getChildren(),M=L.findIndex(R=>R.getKey()===I.getKey());if(M>=0){const R=Rt(e);let F=Rt(I.getTextContent());const j=[];if(F&&R.startsWith(F))for(let U=M+1;U<L.length;U+=1){const V=L[U],ne=Rt(V.getTextContent());if(!ne)continue;const ae=Rt(`${F} ${ne}`);if(R.startsWith(ae)){j.push(V),F=ae;continue}break}j.length>0&&j.forEach(U=>{U.isAttached()&&U.remove()})}}if((S==null?void 0:S.tracking)==="fallback"&&E.length>20&&m&&m.isAttached()){const I=m.getTopLevelElement()??m,L=N.getChildren(),M=L.findIndex(R=>R.getKey()===I.getKey());if(M>0){const R=L.slice(0,M),F=Rt(e);let j=R.findIndex(U=>Rt(U.getTextContent()).includes(E));if(j<0&&R.length>0){const U=Rt(R[0].getTextContent());U&&F.startsWith(U)&&(j=0)}if(j>=0){const U=[];let V="";for(let ne=j;ne<R.length;ne+=1){const ae=Rt(R[ne].getTextContent()),re=Rt(`${V} ${ae}`);if(F.startsWith(re)||F.includes(re)){U.push(R[ne]),V=re;continue}break}U.length>0&&U.forEach(ne=>{ne.isAttached()&&ne.remove()})}}}_&&m&&m.isAttached()&&(Y(m)?m.clear():ie(m)&&m.setTextContent(""))}),_u(!0),iC(e,n.pendingLinksRef.current,n.pendingRichElementsRef.current,N=>{xh(vl.then(async()=>{const S=[],_=[],I=[];let L=g===0;if(r.update(()=>{L&&b&&m&&m.isAttached()&&m.getTextContent().trim()!==""&&(Y(m)?m.clear():ie(m)&&m.setTextContent(""));for(const M of N)try{const R=bo(M);L&&m&&m.isAttached()&&m.getTextContent().trim()===""?(m.replace(R),p=R,m=null,L=!1):(p?p.insertAfter(R):xe().append(R),p=R,L=!1),g++;const F=R.getKey();S.push(F);const j=vh(R);if(j)I.push(j);else{const U=Fb(R);_.push(...U)}}catch(R){console.error("[SmartPaste] Error inserting node:",R,M)}xe().selectEnd()},{discrete:!0}),C.push(...S),await new Promise(M=>requestAnimationFrame(M)),await new Promise(M=>requestAnimationFrame(M)),S.length>0){const M=S[0],R=r.getElementByKey(M);R&&R.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}for(const M of I)await Sh(r,M);for(const M of _)await zb(r,M)})),x=vl},async()=>{await x,jb(),r.update(()=>{var _,I;let N=!1;if(E.length>20&&C.length>0){const L=xe(),M=(_=C.map(R=>{const F=me(R);return(F==null?void 0:F.getTopLevelElement())??F??null}).find(Boolean))==null?void 0:_.getKey();if(M){const R=L.getChildren(),F=R.findIndex(j=>j.getKey()===M);if(F>0){const j=R.slice(0,F),U=Rt(e);let V=j.findIndex(ne=>Rt(ne.getTextContent()).includes(E));if(V<0&&j.length>0){const ne=Rt(j[0].getTextContent());ne&&U.startsWith(ne)&&(V=0)}if(V>=0){const ne=[];let ae="";for(let re=V;re<j.length;re++){const ee=Rt(j[re].getTextContent()),se=Rt(`${ae} ${ee}`);if(U.startsWith(se)||U.includes(se)){ne.push(j[re]),ae=se;continue}break}ne.forEach(re=>{re.isAttached()&&re.remove()}),N=!0}}}}const S=y?((I=me(y))==null?void 0:I.getTopLevelElement())??me(y):null;if(!N&&S&&S.isAttached()&&g>0&&b){S.remove();return}S&&S.isAttached()&&S.getTextContent().trim()===""&&xe().getChildrenSize()>1&&S.remove()}),ao({choice:"ai",textLength:e.length,segmentCount:g,processingTimeMs:performance.now()-o}),_u(!1),n.setIsProcessing(!1),uu(n)},()=>{const N=qk(e);iT(r,N,d,e),ao({choice:"ai",textLength:e.length,segmentCount:N.length,processingTimeMs:performance.now()-o,fallback:!0,fallbackReason:"AI stream failed"}),_u(!1),n.setIsProcessing(!1),uu(n)});return}if(s){const g=n.pendingRangeRef.current;n.pendingRangeRef.current=null;const p=await kM(e,s,n.pendingRichElementsRef.current);wX(r,p,g,e),ao({choice:"ai",textLength:e.length,segmentCount:p.length,processingTimeMs:performance.now()-o}),n.setIsProcessing(!1),uu(n);return}}const l=n.pendingRangeRef.current;n.pendingRangeRef.current=null;const a=qk(e);sX(a,e).valid?(iT(r,a,l,e),ao({choice:"rules",textLength:e.length,segmentCount:a.length,processingTimeMs:performance.now()-o})):ao({choice:"rules",textLength:e.length,segmentCount:0,processingTimeMs:performance.now()-o,fallback:!0,fallbackReason:"Validation failed for rules engine"})}catch(l){ao({choice:t,textLength:e.length,segmentCount:0,processingTimeMs:performance.now()-o,fallback:!0,fallbackReason:`Error: ${l instanceof Error?l.message:String(l)}`})}finally{t!=="ai"&&(n.setIsProcessing(!1),uu(n))}}function vX(n){if(!n)return[];try{const r=new DOMParser().parseFromString(n,"text/html").querySelectorAll("a[href]"),s=[];return r.forEach(i=>{var a;const o=(a=i.textContent)==null?void 0:a.trim(),l=i.getAttribute("href");o&&l&&s.push({text:o,url:l})}),s}catch{return[]}}function SX(){const[n]=_e(),{fetchSmartPastePrompt:t}=k.useContext(kt),e=!0,[r,s]=k.useState(!1),[i,o]=k.useState(""),[l,a]=k.useState(!1),u=k.useRef([]),d=k.useRef([]),f=k.useRef(null),g=k.useRef(null),p=k.useRef([]),m=k.useCallback(()=>({editor:n,fetchSmartPastePrompt:t,serverStreamAvailable:e,pendingLinksRef:u,pendingRichElementsRef:d,pendingRangeRef:f,pendingClassificationRef:g,pendingInsertedKeysRef:p,setModalOpen:s,setPendingText:o,setIsProcessing:a}),[n,t,e]),y=k.useCallback((v,E)=>{xX(m(),v,E)},[m]);k.useEffect(()=>{const v=n.registerCommand(Uo,E=>{var U,V,ne,ae,re;if((U=E.clipboardData)!=null&&U.files&&E.clipboardData.files.length>0)return!1;const N=(V=E.clipboardData)==null?void 0:V.getData("application/x-lexical-editor");if(N){try{const ee=JSON.parse(N),se=ee.nodes??ee;if(Array.isArray(se)&&se.length>0){const q=Hk(se);if(!q.hasParagraphRuns||!q.hasStructuralSignals)return!1;E.preventDefault();const W=[];n.update(()=>{const te=G();H(te)&&te.removeText();for(const le of se)try{const ce=bo(le);xe().append(ce),W.push(ce.getKey())}catch{}},{discrete:!0}),g.current=q,p.current=W;const J=((ne=E.clipboardData)==null?void 0:ne.getData("text/plain"))||"";return o(J||se.map(te=>mc(te)).join(`
349
+ `)),s(!0),!0}}catch{}return!1}const S=G();if(H(S)){const ee=S.anchor.getNode();if(Se(ee,q=>qn(q)||ts(q))!==null)return!1}const _=((ae=E.clipboardData)==null?void 0:ae.getData("text/plain"))||"";if(!_.trim())return!1;const I=_.trim(),L=I.split(`
350
+ `).filter(ee=>ee.trim()).length;if(I.length<pM&&L<xQ)return!1;const M=((re=E.clipboardData)==null?void 0:re.getData("text/html"))||"";u.current=vX(M),d.current=NQ(M),E.preventDefault();const R=IQ(n,_,M);if(!R){const ee=yM(n,_);return f.current=ee,o(_),s(!0),!0}if(f.current=R,M&&R.insertedTopLevelKeys&&R.insertedTopLevelKeys.length>0&&(t||e)){let ee=function(q){const W=q.exportJSON();return Y(q)&&(W.children=q.getChildren().map(ee)),W},se=[];for(const q of R.insertedTopLevelKeys){const W=me(q);W&&se.push(ee(W))}if(se.length>0){const q=Hk(se);q.hasParagraphRuns&&(g.current=q,p.current=[...R.insertedTopLevelKeys])}}o(_);let F=null;try{const ee=localStorage.getItem(Sg);ee==="ai"||ee==="plain"?F=ee:ee==="rules"&&localStorage.removeItem(Sg)}catch{}const j=_.length>pc;return F&&!(F==="ai"&&j)?(F==="ai"&&a(!0),y(F,_),!0):(s(!0),!0)},As);return()=>{v(),u.current=[],f.current=null,g.current=null,p.current=[]}},[n,t,e,y]),k.useEffect(()=>{if(!r||l)return;const v=n.registerCommand(Ko,E=>(E.defaultPrevented||E.ctrlKey||E.metaKey||E.altKey||!(E.isComposing||E.key.length===1||E.key==="Enter"||E.key==="Backspace"||E.key==="Delete"||E.key==="Tab")||(s(!1),o(""),u.current=[],d.current=[],f.current=null,g.current=null,p.current=[]),!1),As);return()=>{v()}},[n,l,r]);const b=k.useCallback(()=>{l||(s(!1),o(""),u.current=[],d.current=[],f.current=null,g.current=null,p.current=[])},[l]),x=k.useCallback(()=>{i&&(a(!0),s(!1),y("ai",i))},[i,y]),C=k.useCallback(()=>{y("plain",i)},[i,y]);return{modalOpen:r,isProcessing:l,isTextTooLong:i.length>pc,textLength:i.length,onClose:b,onApply:x,onDismiss:C}}function EX({opened:n,onClose:t,onApply:e,onDismiss:r,isProcessing:s,isTextTooLong:i,textLength:o}){const{t:l}=it.useTranslation(),[a,u]=k.useState(!1),d=()=>{if(a)try{localStorage.setItem(Sg,"ai")}catch{}e(a)},f=()=>{if(a)try{localStorage.setItem(Sg,"plain")}catch{}r(a)};return n?A.jsx(O.Portal,{children:A.jsxs(O.Paper,{className:"doc-space-editor-wrapper",shadow:"xl",radius:"md",p:"md",withBorder:!0,style:{position:"fixed",right:16,bottom:16,width:360,maxWidth:"calc(100vw - 32px)",zIndex:999},children:[A.jsxs(O.Group,{align:"flex-start",justify:"space-between",wrap:"nowrap",mb:8,children:[A.jsxs(O.Stack,{gap:4,style:{flex:1},children:[A.jsx(O.Text,{fw:600,children:l("editor.smartPaste.title")}),A.jsx(O.Text,{size:"sm",c:"dimmed",children:l("editor.smartPaste.subtitle")})]}),A.jsx(O.ActionIcon,{variant:"subtle",onClick:t,disabled:s,"aria-label":l("editor.close"),children:A.jsx($.IconX,{size:18})})]}),A.jsxs(O.Stack,{gap:"xs",children:[i&&A.jsxs(O.Text,{size:"xs",c:"orange",style:{lineHeight:1.3},children:[l("editor.smartPaste.textTooLong"),o!=null&&A.jsxs(O.Text,{span:!0,size:"xs",c:"orange",fw:600,children:[" ","(",o.toLocaleString()," / ",pc.toLocaleString(),")"]})]}),A.jsx(O.Button,{leftSection:A.jsx($.IconSparkles,{size:18}),fullWidth:!0,loading:s,onClick:d,disabled:s,children:l(s?"editor.smartPaste.processing":"editor.smartPaste.aiButton")}),A.jsx(O.Button,{variant:"light",fullWidth:!0,onClick:f,disabled:s,children:l("editor.smartPaste.plainButton")}),!i&&A.jsx(O.Checkbox,{label:l("editor.smartPaste.remember"),checked:a,onChange:g=>u(g.currentTarget.checked),size:"xs"})]})]})}):null}function kX(){return A.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",children:[A.jsx("path",{className:"wand-stick",d:"M13.9258 12.7775L11.7775 10.6292C11.4847 10.3364 11.3383 10.19 11.1803 10.1117C10.8798 9.96277 10.527 9.96277 10.2264 10.1117C10.0685 10.19 9.92207 10.3364 9.62923 10.6292C9.33638 10.9221 9.18996 11.0685 9.11169 11.2264C8.96277 11.527 8.96277 11.8798 9.11169 12.1803C9.18996 12.3383 9.33638 12.4847 9.62923 12.7775L11.7775 14.9258M13.9258 12.7775L20.3708 19.2225C20.6636 19.5153 20.81 19.6617 20.8883 19.8197C21.0372 20.1202 21.0372 20.473 20.8883 20.7736C20.81 20.9315 20.6636 21.0779 20.3708 21.3708C20.0779 21.6636 19.9315 21.81 19.7736 21.8883C19.473 22.0372 19.1202 22.0372 18.8197 21.8883C18.6617 21.81 18.5153 21.6636 18.2225 21.3708L11.7775 14.9258M13.9258 12.7775L11.7775 14.9258",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),A.jsx("path",{className:"wand-star-1",d:"M17 2L17.2948 2.7966C17.6813 3.84117 17.8746 4.36345 18.2556 4.74445C18.6366 5.12545 19.1588 5.31871 20.2034 5.70523L21 6L20.2034 6.29477C19.1588 6.68129 18.6366 6.87456 18.2556 7.25555C17.8746 7.63655 17.6813 8.15883 17.2948 9.2034L17 10L16.7052 9.2034C16.3187 8.15884 16.1254 7.63655 15.7444 7.25555C15.3634 6.87455 14.8412 6.68129 13.7966 6.29477L13 6L13.7966 5.70523C14.8412 5.31871 15.3634 5.12545 15.7444 4.74445C16.1254 4.36345 16.3187 3.84117 16.7052 2.7966L17 2Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),A.jsx("path",{className:"wand-star-2",d:"M6 4L6.22108 4.59745C6.51097 5.38087 6.65592 5.77259 6.94167 6.05834C7.22741 6.34408 7.61913 6.48903 8.40255 6.77892L9 7L8.40255 7.22108C7.61913 7.51097 7.22741 7.65592 6.94166 7.94167C6.65592 8.22741 6.51097 8.61913 6.22108 9.40255L6 10L5.77892 9.40255C5.48903 8.61913 5.34408 8.22741 5.05833 7.94167C4.77259 7.65592 4.38087 7.51097 3.59745 7.22108L3 7L3.59745 6.77892C4.38087 6.48903 4.77259 6.34408 5.05833 6.05833C5.34408 5.77259 5.48903 5.38087 5.77892 4.59745L6 4Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})]})}function TX({visible:n}){return n?A.jsx(O.Overlay,{fixed:!0,center:!0,blur:1,zIndex:998,style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.15)"},children:A.jsx(O.Box,{className:"magic-wand-wrapper",children:A.jsx(kX,{})})}):null}function _X(){const n=SX();return A.jsxs(A.Fragment,{children:[A.jsx(TX,{visible:n.isProcessing}),A.jsx(EX,{opened:n.modalOpen,onClose:n.onClose,onApply:n.onApply,onDismiss:n.onDismiss,isProcessing:n.isProcessing,isTextTooLong:n.isTextTooLong,textLength:n.textLength})]})}const NX=1,IX=100;let NM=0,oT=!1;function LX(n){n.addEventListener("keydown",t=>{t.key==="Tab"&&(t.preventDefault(),NM=t.timeStamp)},!0)}function MX(){const[n]=_e();return k.useEffect(()=>{if(!oT){const t=n.getRootElement();t&&LX(t),oT=!0}return n.registerCommand(Wo,t=>{const e=G();return H(e)&&NM+IX>t.timeStamp&&Ge(e.clone()),!1},NX)},[n]),null}function DX(n,t){const e=n.anchor,r=n.focus,i=(r.isBefore(e)?r:e).getNode(),o=Ec(i);if(!t&&o.__prev===null)return!0;o instanceof En&&!o.__opened&&o.setOpened(!0);const l=a=>{const u=a.getNextSibling(),d=u==null?void 0:u.getFirstChild();(d==null?void 0:d.__type)==="list"&&d.getChildren().forEach(g=>{g instanceof En&&(l(g),g.setIndent(Math.max(0,g.getIndent()-1)))})};return t&&l(o),!1}function OX(n){return n.registerCommand(wc,t=>{const e=G();if(!H(e))return!1;try{if(DX(e,t.shiftKey))return!1;t.preventDefault();const s=t.shiftKey?ho:Gs;return n.dispatchCommand(s,void 0)}catch{return!1}},Fe)}function RX(){const[n]=_e();return k.useEffect(()=>OX(n)),null}function lT(n){let t=1;for(;n;)t*=Number(window.getComputedStyle(n).getPropertyValue("zoom")),n=n.parentElement;return t}const PX=33,BX=50;function jX({editor:n}){const t=k.useRef(null),e=k.useRef(null),r=k.useRef(null),[s,i]=k.useState(null),[o,l]=k.useState(null),[a,u]=k.useState(!1),[d,f]=k.useState(null),[g,p]=k.useState({right:!1,bottom:!1});k.useEffect(()=>n.registerCommand(Xr,S=>{const _=G(),I=pt(_);return a!==I&&u(I),!1},As));const m=k.useCallback(()=>{l(null),f(null),r.current=null,e.current=null,p({right:!1,bottom:!1})},[]);k.useEffect(()=>{const S=_=>{setTimeout(()=>{const I=_.target;if(d){i({x:_.clientX,y:_.clientY});return}if(t.current&&t.current.contains(I))return;const L=5;let M=null,R=null,F=1/0,j=null;if(o&&(j=o.elem.closest("table")),!j&&I instanceof HTMLElement){const U=cg(I);U?j=U.elem.closest("table"):j=I.closest("table")}if(j&&j.querySelectorAll("td, th").forEach(V=>{const ne=V.getBoundingClientRect(),ae=cg(V);if(!ae)return;const re=Math.abs(_.clientX-ne.right),ee=_.clientY>=ne.top-L&&_.clientY<=ne.bottom+L;re<=L&&ee&&re<F&&(F=re,M=ae,R="right");const se=Math.abs(_.clientY-ne.bottom),q=_.clientX>=ne.left-L&&_.clientX<=ne.right+L;se<=L&&q&&se<F&&(F=se,M=ae,R="bottom")}),M&&R)p({right:R==="right",bottom:R==="bottom"}),o!==M&&n.update(()=>{const U=Oe(M.elem);if(!U)return;const V=Ao(U),ne=n.getElementByKey(V.getKey());ne&&(e.current=ne.children[0].getBoundingClientRect(),l(M))});else{if(o){const U=o.elem.getBoundingClientRect(),V=Math.abs(_.clientX-U.right),ne=Math.abs(_.clientY-U.bottom),ae=Math.abs(_.clientY-U.top),re=Math.abs(_.clientX-U.left),ee=Math.min(V,ne,ae,re);p({right:V<=L&&V===ee,bottom:ne<=L&&ne===ee})}else p({right:!1,bottom:!1});o&&!j&&m()}},0)};return document.addEventListener("mousemove",S),()=>{document.removeEventListener("mousemove",S)}},[o,d,n,m]);const y=S=>S==="bottom",b=k.useCallback(S=>{if(!o)throw new Error("TableCellResizer: Expected active cell.");n.update(()=>{const _=Oe(o.elem);if(!Le(_))throw new Error("TableCellResizer: Table cell node not found.");const I=Ao(_),L=pp(_),M=I.getChildren();if(L>=M.length||L<0)throw new Error("Expected table cell to be inside of table row.");const R=M[L];if(!dn(R))throw new Error("Expected table row");R.setHeight(S)})},[o,n]),x=k.useCallback((S,_)=>{if(!o)throw new Error("TableCellResizer: Expected active cell.");n.update(()=>{const I=Oe(o.elem);if(!Le(I))throw new Error("TableCellResizer: Table cell node not found.");const L=Ao(I),M=mp(I),R=L.getChildren();for(let F=0;F<R.length;F++){const j=R[F];if(!dn(j))throw new Error("Expected table row");const U=j.getChildren(),ae=U.map(ee=>ee.getColSpan()).reduce((ee,se)=>{const q=ee[ee.length-1]??0;return ee.push(q+se),ee},[]).findIndex(ee=>ee>M);if(ae>=U.length||ae<0)throw new Error("Expected table cell to be inside of table row.");const re=U[ae];if(!Le(re))throw new Error("Expected table cell");re.setWidth(S)}})},[o,n]),C=k.useCallback(S=>{const _=I=>{if(I.preventDefault(),I.stopPropagation(),n.dispatchCommand(Oi,!0),!o)throw new Error("TableCellResizer: Expected active cell.");if(r.current){const{x:L,y:M}=r.current;if(o===null)return;const R=lT(I.target);if(y(S)){const F=o.elem.getBoundingClientRect().height,j=Math.abs(I.clientY-M)/R,U=S==="bottom"&&M>I.clientY;b(Math.max(U?F-j:j+F,PX))}else{const F=getComputedStyle(o.elem);let j=o.elem.clientWidth;j-=parseFloat(F.paddingLeft)+parseFloat(F.paddingRight);const U=Math.abs(I.clientX-L)/R,V=S==="right"&&L>I.clientX;x(Math.max(V?j-U:U+j,BX),j),n.update(()=>{Ge(null)})}m(),document.removeEventListener("mouseup",_)}};return _},[o,m,x,b]),v=k.useCallback(S=>_=>{const I=n.getRootElement();if(I&&I.contains(document.activeElement)&&dg(n),_.preventDefault(),_.stopPropagation(),n.dispatchCommand(Oi,!0),!o)throw new Error("TableCellResizer: Expected active cell.");r.current={x:_.clientX,y:_.clientY},i(r.current),f(S),document.addEventListener("mouseup",C(S))},[o,C]),N=k.useCallback(()=>{if(o){const{height:S,width:_,top:I,left:L,right:M}=o.elem.getBoundingClientRect(),{right:R}=n._rootElement.getBoundingClientRect(),F=lT(o.elem),j=M>R?M-R+20:0,U={bottom:{backgroundColor:"transparent",cursor:"row-resize",height:"10px",left:`${L+5}px`,top:`${I+S-5}px`,width:`${_-j}px`,opacity:d==="bottom"||g.bottom?1:0,pointerEvents:d==="bottom"||g.bottom?"auto":"none"},right:{backgroundColor:"transparent",cursor:"col-resize",height:`${S-7}px`,left:`${L+_-5}px`,display:j?"none":"block",top:`${I+7}px`,width:"12px",opacity:d==="right"||g.right?1:0,pointerEvents:d==="right"||g.right?"auto":"none"}},V=e.current;return d&&s&&V&&(y(d)?(U[d].left=`${V.left}px`,U[d].top=`${s.y/F}px`,U[d].height="3px",U[d].width=`${V.width}px`):(U[d].top=`${V.top}px`,U[d].left=`${s.x/F}px`,U[d].width="3px",U[d].height=`${V.height}px`),U[d].backgroundColor="#adf"),U}return{bottom:null,left:null,right:null,top:null}},[o,d,s,g])();return A.jsx("div",{ref:t,children:o!=null&&!a&&A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"TableCellResizer__resizer TableCellResizer__ui",style:N.right||void 0,onMouseDown:v("right")}),A.jsx("div",{className:"TableCellResizer__resizer TableCellResizer__ui",style:N.bottom||void 0,onMouseDown:v("bottom")})]})})}function FX({}){var r,s;const[n]=_e(),t=Dw(),e=((s=(r=n.getRootElement())==null?void 0:r.ownerDocument)==null?void 0:s.body)||document.body;return k.useMemo(()=>t?Or.createPortal(A.jsx(jX,{editor:n}),e):null,[n,t,e])}function zX(n,t){if(!n)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+t)}function Eh(n){const t=n.getShape();return{columns:t.toX-t.fromX+1,rows:t.toY-t.fromY+1}}function UX(n){const t=n.getNodes(),e=[];let r=null,s=null,i=0;for(let o=0;o<t.length;o++){const l=t[o];if(Le(l)){const a=l.getParentOrThrow();if(zX(dn(a),"Expected CellNode to have a RowNode parent"),r!==a){if(s!==null&&i!==s)return!1;r!==null&&(s=i),r=a,i=0}const u=l.__colSpan;for(let d=0;d<u;d++)e[i+d]===void 0&&(e[i+d]=0),e[i+d]+=l.__rowSpan;i+=u}}return(s===null||i===s)&&e.every(o=>o===e[0])}function KX(){const n=G();if(H(n)&&!n.isCollapsed()||pt(n)&&!n.anchor.is(n.focus)||!H(n)&&!pt(n))return!1;const[t]=Wn(n.anchor);return t.__colSpan>1||t.__rowSpan>1}function aT(n){if(n.getChildrenSize()!==1)return!1;const t=n.getFirstChildOrThrow();return!(!un(t)||!t.isEmpty())}function WX(n){const t=n.getLastDescendant();Hn(t)?t.select():Y(t)?t.selectEnd():t!==null&&t.selectNext()}function HX(n){return n.getEditorState().read(()=>{const t=G();if(H(t)||pt(t)){const[e]=Wn(t.anchor);if(Le(e))return e.getBackgroundColor()}return null})}function YX(n,t){const e=t.querySelectorAll("tr");let r=!1;return Array.from(e).forEach((s,i)=>{i&&s.children[0].tagName==="TH"&&(r=!0)}),r}function GX(n){const t=n.querySelector("tr");let e=!1;return t&&Array.from(t.children).forEach((r,s)=>{s&&r.tagName==="TH"&&(e=!0)}),e}const ZX=({tableCellNode:n,setIsMenuOpen:t,contextRef:e,cellMerge:r,isMenuOpen:s,selectionBeforeMenuOpenedRef:i,currentIndexColumn:o,currentIndexRow:l,tableDom:a})=>{const[u]=_e(),d=k.useRef(null),[f,g]=k.useState(n),[p,m]=k.useState({columns:1,rows:1}),[y,b]=k.useState(!1),[x,C]=k.useState(!1),[v,E]=k.useState(""),{t:N}=it.useTranslation();k.useEffect(()=>u.registerMutationListener(xs,ee=>{ee.get(f.getKey())==="updated"&&(u.getEditorState().read(()=>{g(f.getLatest())}),E(HX(u)||""))}),[u,f]),k.useEffect(()=>{s?u.getEditorState().read(()=>{const ee=i.current;if(ee&&pt(ee)){const se=Eh(ee);m(Eh(ee)),b(UX(ee)&&(se.columns>1||se.rows>1))}try{C(KX())}catch{}}):u.update(()=>{G()!==null&&setTimeout(()=>{b(!1),i.current=null,m({columns:1,rows:1});try{f.getParent(),S()}catch{}},200)})},[s]),k.useEffect(()=>{const ee=e.current,se=d.current,q=u.getRootElement();if(ee!=null&&se!=null&&q!=null){const W=q.getBoundingClientRect(),J=ee.getBoundingClientRect();se.style.opacity="1";const te=se.getBoundingClientRect(),le=5;let ce=J.right+le;if(ce+te.width>window.innerWidth||ce+te.width>W.right){const Ae=J.left-te.width-le;ce=(Ae<0?le:Ae)+window.pageXOffset}se.style.left=`${ce+window.pageXOffset}px`;let de=J.top;if(de+te.height>window.innerHeight){const Ae=J.bottom-te.height;de=(Ae<0?le:Ae)+window.pageYOffset}se.style.top=`${de+ +window.pageYOffset}px`}},[e,d,u]),k.useEffect(()=>{function ee(se){d.current!=null&&e.current!=null&&!d.current.contains(se.target)&&!e.current.contains(se.target)&&t(!1)}return window.addEventListener("click",ee),()=>window.removeEventListener("click",ee)},[t,e]);const S=k.useCallback(()=>{u.update(()=>{if(f.isAttached()){const se=Ao(f),q=u.getElementByKey(se.getKey());if(!q)throw new Error("Expected to find tableElement in DOM");const W=gw(q);W!==null&&W.clearHighlight(),se.markDirty(),g(f.getLatest())}xe().selectStart()})},[u,f]),_=()=>{u.update(()=>{const ee=i.current;if(pt(ee)){const{columns:se,rows:q}=Eh(ee),W=ee.getNodes();let J=null;for(let te=0;te<W.length;te++){const le=W[te];if(Le(le))if(J===null){le.setColSpan(se).setRowSpan(q),J=le;const ce=aT(le);let de;ce&&un(de=le.getFirstChild())&&de.remove()}else Le(J)&&(aT(le)||J.append(...le.getChildren()),le.remove())}J!==null&&(J.getChildrenSize()===0&&J.append(we()),WX(J))}})},I=()=>{u.update(()=>{I9()})},L=k.useCallback(ee=>{u.update(()=>{for(let se=0;se<p.rows;se++)ag(ee)})},[u,p.rows]),M=k.useCallback(ee=>{u.update(()=>{for(let se=0;se<p.columns;se++)qy(ee)})},[u,p.columns]),R=k.useCallback(()=>{u.update(()=>{_9()})},[u]),F=k.useCallback(()=>{u.update(()=>{Ao(n).remove(),S()})},[u,n,S]),j=k.useCallback(()=>{u.update(()=>{N9()})},[u]),U=k.useCallback(()=>{u.update(()=>{const ee=Ao(f),se=pp(f),q=ee.getChildren();if(se>=q.length||se<0)throw new Error("Expected table cell to be inside of table row.");const W=q[se];if(!dn(W))throw new Error("Expected table row");const J=f.getHeaderStyles()^An.ROW;W.getChildren().forEach(te=>{if(!Le(te))throw new Error("Expected table cell");te.getBackgroundColor()==="rgb(242, 243, 245)"&&te.setBackgroundColor(null),te.setHeaderStyles(J,An.ROW)}),S()})},[u,f,S]),V=k.useCallback(ee=>{u.update(()=>{const se=Ao(f),q=mp(f),W=se.getChildren(),J=Math.max(...W.map(le=>le.getChildren().length));if(q>=J||q<0)throw new Error("Expected table cell to be inside of table row.");const te=f.getHeaderStyles()^An.COLUMN;for(let le=0;le<W.length;le++){const ce=W[le];if(!dn(ce))throw new Error("Expected table row");const de=ce.getChildren();if(q>=de.length)continue;const Ae=de[q];if(!Le(Ae))throw new Error("Expected table cell");ee?(Ae.getBackgroundColor()==="rgb(242, 243, 245)"&&Ae.setBackgroundColor(null),Ae.setHeaderStyles(0,3)):Ae.setHeaderStyles(te,An.COLUMN)}S()})},[u,f,S]),ne=k.useCallback(ee=>{u.update(()=>{const se=i.current;if(H(se)||pt(se)){const[q]=Wn(se.anchor);if(Le(q)&&q.setBackgroundColor(ee),pt(se)){const W=se.getNodes();for(let J=0;J<W.length;J++){const te=W[J];Le(te)&&te.setBackgroundColor(ee)}}}})},[u]),ae=l===0&&GX(a),re=o===0&&YX(o||0,a);return A.jsxs(A.Fragment,{children:[r&&A.jsxs(A.Fragment,{children:[y&&A.jsx(O.Menu.Item,{leftSection:A.jsx(Ce,{name:"layers-union"}),"data-test-id":"table-merge-cells",onClick:()=>_(),children:N("editor.table.menu.mergeCells")}),x&&A.jsx(O.Menu.Item,{leftSection:A.jsx(Ce,{name:"layers-substract"}),"data-test-id":"table-unmerge-cells",onClick:()=>I(),children:N("editor.table.menu.disconnectCells")})]}),A.jsx(Ct.NewColorPicker,{modes:["background"],value:{background:v},onChange:ee=>ne(ee.value),menuProps:{trigger:"hover",position:"right-start",offset:{mainAxis:10,alignmentAxis:-5},closeDelay:2e4},target:A.jsx(O.Menu.Item,{leftSection:A.jsx(Ce,{name:"color-picker"}),rightSection:A.jsx(Ce,{name:"chevron-right"}),"data-test-id":"table-background-color",children:N("editor.table.background",{count:p.columns>1||p.rows>1?2:1})})}),A.jsx(O.Menu.Divider,{}),!ae&&A.jsxs(O.Menu.Item,{leftSection:A.jsx(Ce,{name:"row-insert-top"}),"data-test-id":"table-insert-row-above",onClick:()=>L(!1),children:[N("editor.table.menu.insertRow",{count:p.rows})," ",N("editor.table.menu.above")]}),A.jsxs(O.Menu.Item,{leftSection:A.jsx(Ce,{name:"row-insert-bottom"}),"data-test-id":"table-insert-row-below",onClick:()=>L(!0),children:[N("editor.table.menu.insertRow",{count:p.rows})," ",N("editor.table.menu.below")]}),!re&&A.jsxs(O.Menu.Item,{leftSection:A.jsx(Ce,{name:"column-insert-left"}),"data-test-id":"table-insert-column-before",onClick:()=>M(!0),children:[N("editor.table.menu.insertCol",{count:p.columns})," ",N("editor.table.menu.right")]}),A.jsxs(O.Menu.Item,{leftSection:A.jsx(Ce,{name:"column-insert-right"}),onClick:()=>M(!1),"data-test-id":"table-insert-column-after",children:[N("editor.table.menu.insertCol",{count:p.columns})," ",N("editor.table.menu.left")]}),A.jsx(O.Menu.Divider,{}),A.jsx(O.Menu.Item,{leftSection:A.jsx(Ce,{name:"container-off"}),"data-test-id":"table-delete-columns",onClick:()=>j(),children:N("editor.table.menu.deleteCol",{count:p.columns})}),A.jsx(O.Menu.Item,{leftSection:A.jsx(Ce,{name:"container-off",iconStyle:{transform:"rotate(90deg)"}}),"data-test-id":"table-delete-rows",onClick:()=>R(),children:N("editor.table.menu.deleteRow",{count:p.rows})}),A.jsx(O.Menu.Item,{leftSection:A.jsx(Ce,{name:"table-off"}),onClick:()=>F(),children:N("editor.table.menu.deleteTable")}),(!l||!o)&&A.jsx(O.Menu.Divider,{}),l===0&&A.jsx(O.Menu.Item,{onClick:()=>U(),"data-test-id":"table-row-header",children:N("editor.table.menu.headTable_row",{value:N(ae?"editor.contextMenu.delete":"editor.contextMenu.add")})}),o===0&&A.jsx(O.Menu.Item,{onClick:()=>V(re),"data-test-id":"table-column-header",children:N("editor.table.menu.headTable_col",{value:N(re?"editor.contextMenu.delete":"editor.contextMenu.add")})})]})},JX=({tableCellNode:n,setIsMenuOpen:t,contextRef:e,cellMerge:r,children:s,tableDom:i,isMenuOpen:o})=>{const[l]=_e(),a=k.useRef(null),u=k.useRef(null),d=k.useRef(null),f=()=>{t(!0),l.read(()=>{const g=mp(n),p=pp(n);u.current=g,d.current=p;const m=G();if(pt(m)){const{columns:y,rows:b}=Eh(m);(y>1||b>1)&&(a.current=m)}else m7(n,l),setTimeout(()=>{l.read(()=>{const y=G();a.current=y})},200)})};return A.jsxs(O.Menu,{onOpen:f,onClose:()=>t(!1),shadow:"md",position:"right",opened:o,transitionProps:ci,children:[A.jsx(O.Menu.Target,{children:s}),A.jsx(O.Menu.Dropdown,{children:A.jsx(ZX,{isMenuOpen:o,contextRef:e,tableCellNode:n,cellMerge:r,setIsMenuOpen:t,tableDom:i,currentIndexColumn:u.current,currentIndexRow:d.current,selectionBeforeMenuOpenedRef:a})})]})},VX=(n,t)=>{window.matchMedia("(pointer: coarse)").matches&&t&&setTimeout(()=>{t.scrollBy({left:n+25,behavior:"smooth"})},100)},vi=12;function QX({anchorElem:n,isShowTableOptions:t,cellMerge:e}){var ee,se;const[r]=_e(),[s,i]=k.useState(!1),[o,l]=k.useState({}),[a,u]=k.useState({}),[d,f]=k.useState({}),[g,p]=k.useState({}),[m,y]=k.useState({}),[b,x]=k.useState({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),[C,v]=k.useState(!1),E=k.useRef(null),N=k.useRef(new Set),S=k.useRef(null),_=k.useRef(null),I=k.useRef(null),L=k.useRef(null),M=k.useRef(null),{t:R}=it.useTranslation(),F=bp(q=>{const{isOutside:W,tableDOMNode:J}=XX(q,r,b.row),te=q.target;if(te!=null&&te.closest(".table-cell-add-container")||te!=null&&te.closest(".table-row-add-container"))return;if(W&&(b.top||b.bottom||b.left||b.right||b.column||b.row)){x({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),M.current=null,v(!1);return}if(!J)return;_.current=J;let le=null,ce=null,de=null;r.update(()=>{var ye,Ee,Ye,ft,Ke;const Ae=Oe(J),ke=J==null?void 0:J.getAttribute("data-show-button-near-table");if(((ye=M.current)==null?void 0:ye.__key)!==(Ae==null?void 0:Ae.__key)&&(x({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),M.current=Ae,Le(Ae))){const mt=Se(Ae,At=>yt(At));if(!yt(mt))return;if(de=r.getElementByKey(mt==null?void 0:mt.getKey()),de){const At=mt.getChildrenSize(),Re=(Ee=mt.getChildAtIndex(0))==null?void 0:Ee.getChildrenSize(),Me=pp(Ae),lt=mp(Ae);I.current=(Ye=de.firstChild)==null?void 0:Ye.childNodes[Me+1].firstChild,L.current=(Ke=(ft=de.firstChild)==null?void 0:ft.childNodes[1])==null?void 0:Ke.childNodes[lt],setTimeout(()=>{ke==="bottom"?(le=Ae,M.current=null,x({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!0,options:!1})):ke==="right"?(ce=Ae,M.current=null,x({top:!1,bottom:!1,left:!1,right:!1,column:!0,row:!1,options:!1})):Me===At-1&&lt===Re-1?(le=Ae,ce=Ae,x({top:!1,bottom:!1,left:!1,right:!1,column:!0,row:!0,options:!0})):!Me&&!lt?x({top:!1,bottom:!0,left:!1,right:!0,column:!1,row:!1,options:!0}):lt&&!Me&&lt!==Re-1?x({top:!1,bottom:!1,left:!0,right:!0,column:!1,row:!1,options:!0}):!lt&&Me&&Me!==At-1?x({top:!0,bottom:!0,left:!1,right:!1,column:!1,row:!1,options:!0}):!lt&&Me===At-1?(le=Ae,x({top:!0,bottom:!1,left:!1,right:!1,column:!1,row:!0,options:!0})):!Me&&lt===Re-1?(ce=Ae,x({top:!1,bottom:!1,left:!0,right:!1,column:!0,row:!1,options:!0})):!lt&&Me&&Me!==At-1?x({top:!0,bottom:!0,left:!1,right:!0,column:!1,row:!1,options:!0}):Me===At-1?(le=Ae,x({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!0,options:!0})):lt===Re-1?(ce=Ae,x({top:!1,bottom:!1,left:!1,right:!1,column:!0,row:!1,options:!0})):x({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!0})},100)}}}),setTimeout(()=>{var Ae,ke,ye,Ee,Ye;if(de){const{width:ft,y:Ke,left:mt,right:At,bottom:Re,height:Me}=de.getBoundingClientRect(),{y:lt,left:Jt}=n.getBoundingClientRect();if(M.current){const ot=r.getElementByKey(M.current.getKey());if(ot!=null){const bt=ot.getBoundingClientRect(),Ut=de.getBoundingClientRect().left+de.clientWidth,ct=bt.top-lt+6;let nr=bt.right-Jt-20;nr>Ut-Jt&&(nr=Ut-Jt-20),C||y({top:ct,left:nr})}}if(L.current){const{top:ot,width:bt,left:zt,right:Ut}=L.current.getBoundingClientRect(),ct=vi,nr=zt-Jt-ct/2,Ht=ot-lt-ct/2;let rr=bt+ct+2;Ut>At&&(rr=rr-(Ut-At)),f({width:rr,height:ct,top:Ht,left:nr})}if(I.current){const{top:ot,height:bt}=I.current.getBoundingClientRect(),zt=vi,Ut=mt-Jt-zt/2,ct=ot-lt-zt/2;p({height:bt+zt+2,top:ct,left:Ut})}const Dt=(Ae=de.parentElement)!=null&&Ae.classList.contains("dsd__theme__callout-container")&&document.documentElement.getAttribute("data-mantine-color-scheme")==="light"?"rgba(173, 181, 189, 0.7)":"";if(le){const ot=Re-lt+3,bt=((ke=de.firstElementChild)==null?void 0:ke.clientWidth)||0;l({left:mt-Jt,top:ot,width:ft>bt?bt-2:ft,padding:0,backgroundColor:Dt})}const{right:hr}=(ye=de.firstElementChild)==null?void 0:ye.getBoundingClientRect(),Be=At>hr?hr:At;ce&&(VX(At,(Ye=(Ee=r._rootElement)==null?void 0:Ee.parentElement)==null?void 0:Ye.parentElement),u({height:Me,left:Be-Jt+3,top:Ke-lt,padding:0,backgroundColor:Dt}))}},100)},50,150),j=()=>{x({top:!1,bottom:!1,left:!1,right:!1,column:!1,row:!1,options:!1}),M.current=null,v(!1)},U=(se=(ee=I.current)==null?void 0:ee.parentElement)==null?void 0:se.parentElement;k.useEffect(()=>{var q;U&&((q=U.parentElement)==null||q.addEventListener("scroll",()=>{j()}))},[U]),k.useEffect(()=>{if(s)return document.addEventListener("mousemove",F),()=>{j(),F.cancel(),document.removeEventListener("mousemove",F)}},[s,F]),k.useEffect(()=>r.registerCommand(Oi,q=>(q&&j(),!1),Te),[]),k.useEffect(()=>Xe(r.registerMutationListener(Ss,q=>{r.getEditorState().read(()=>{for(const[W,J]of q)switch(J){case"created":N.current.add(W),S.current=r.getElementByKey(W),i(N.current.size>0);break;case"destroyed":N.current.delete(W),i(N.current.size>0);break;case"updated":i(!0);const te=r.getElementByKey(W);S.current=te;break}})})),[r]);const V=q=>{r.update(()=>{if(_.current){const W=Oe(_.current);q?(W==null||W.selectNext(),ag(),j()):(W==null||W.selectEnd(),qy(),j())}})},ne=k.useCallback(q=>{r.update(()=>{const W=I.current;if(W){const J=Oe(W);J==null||J.selectEnd(),ag(q),j()}})},[r]),ae=k.useCallback(q=>{r.update(()=>{const W=L.current;if(W){const J=Oe(W);J==null||J.selectEnd(),qy(q),j()}})},[r]),re=window.matchMedia("(pointer: coarse)").matches;return A.jsxs(A.Fragment,{children:[A.jsx(O.Transition,{mounted:!!(M.current&&b.options&&!re),transition:"fade",duration:300,timingFunction:"ease",children:q=>A.jsx("div",{className:"table-cell-action-button-container",style:{...q,...m},children:M.current&&A.jsx(JX,{isMenuOpen:C,contextRef:E,tableCellNode:M.current,cellMerge:e,setIsMenuOpen:v,tableDom:S.current,children:A.jsx(O.Tooltip,{label:R("editor.table.settings"),children:A.jsx(O.ActionIcon,{tabIndex:-1,className:"table-cell-action-button",ref:E,size:vi,color:"gray",variant:"light",children:A.jsx(Ce,{style:{width:"100%",height:"100%"},name:"chevron-down"})})})})})}),A.jsx(O.Transition,{mounted:b.row,transition:"fade",duration:300,timingFunction:"ease",children:q=>A.jsx(O.Tooltip,{label:R("editor.table.menu.addRowBelow"),position:"bottom",children:A.jsx(O.Button,{className:"dsd__theme__tableAddRows",style:{...q,...o},onClick:()=>V(!0),variant:"light",size:"xs",color:"gray",radius:"sm",h:23,children:A.jsx($.IconPlus,{size:vi,className:"dsd__theme__tableAddRows-icon",stroke:1})})})}),A.jsx(O.Transition,{mounted:b.column,transition:"fade",duration:300,timingFunction:"ease",children:q=>A.jsx(O.Tooltip,{label:R("editor.table.menu.addColAfter"),position:"right",children:A.jsx(O.Button,{className:"dsd__theme__tableAddColumns",style:{...q,...a},onClick:()=>V(!1),variant:"light",justify:"center",size:"xs",color:"gray",w:23,radius:"sm",children:A.jsx($.IconPlus,{className:"dsd__theme__tableAddColumns-icon",size:vi,stroke:1})})})}),A.jsx(O.Transition,{mounted:I.current!=null&&(b.top||b.bottom)&&!re,transition:"fade",duration:300,timingFunction:"ease",children:q=>A.jsx("div",{className:"table-row-add-container",style:{...q,...g},children:I.current&&A.jsxs(O.Stack,{align:"stretch",justify:"space-between",h:"100%",children:[A.jsx(O.Tooltip,{label:R("editor.table.menu.addRowAbove"),children:A.jsx(O.ActionIcon,{onClick:()=>ne(!1),size:vi,variant:"light",radius:"xl","aria-label":"Settings",color:"gray",style:{opacity:b.top?1:0,pointerEvents:b.top?"auto":"none"},children:A.jsx($.IconPlus,{size:10,stroke:1})})}),A.jsx(O.Tooltip,{label:R("editor.table.menu.addRowBelow"),children:A.jsx(O.ActionIcon,{onClick:()=>ne(!0),size:vi,variant:"light","aria-label":"Settings",radius:"xl",color:"gray",style:{opacity:b.bottom?1:0,pointerEvents:b.bottom?"auto":"none"},children:A.jsx($.IconPlus,{size:10,stroke:1})})})]})})}),A.jsx(O.Transition,{mounted:L.current!=null&&(b.left||b.right),transition:"fade",duration:300,timingFunction:"ease",keepMounted:!0,children:q=>A.jsx("div",{className:"table-cell-add-container",style:{...q,...d},children:A.jsxs(O.Group,{justify:b.left?"space-between":"flex-end",children:[A.jsx(A.Fragment,{children:b.left&&A.jsx(O.Tooltip,{label:R("editor.table.menu.addColBefore"),children:A.jsx(O.ActionIcon,{onClick:()=>ae(!1),size:vi,variant:"light","aria-label":"Settings",radius:"xl",color:"gray",children:A.jsx($.IconPlus,{size:10,stroke:1})})})}),A.jsx(A.Fragment,{children:b.right&&A.jsx(O.Tooltip,{label:R("editor.table.menu.addColAfter"),children:A.jsx(O.ActionIcon,{onClick:()=>ae(!0),size:vi,variant:"light","aria-label":"Settings",radius:"xl",color:"gray",children:A.jsx($.IconPlus,{size:10,stroke:1})})})})]})})})]})}function XX(n,t,e){const r=n.target;let s="";const i=document.querySelector("div.new-paragraph");if(t.read(()=>{const o=xe().getLastChild();yt(o)&&!e&&i&&(s="editor",i.style.visibility="hidden")}),r&&(r instanceof HTMLElement||r instanceof SVGElement)){const o="td.dsd__theme__tableCell, th.dsd__theme__tableCell";let l=r.closest(o);if(l==null||l.setAttribute("data-show-button-near-table",""),r.className==="ContentEditable__root"||r.className==="ContentEditable__root focused"||r.className==="dsd__theme__table-scrollable-wrapper"||r.className==="dsd__theme__callout-wrapper"||r.className==="dsd__theme__layoutItem"||r.className==="dsd__theme__callout-container"||r.className===s){const f=document.elementFromPoint(n.x-40,n.y),g=document.elementFromPoint(n.x,n.y-40);if(f||g){const p=f==null?void 0:f.closest(o),m=g==null?void 0:g.closest(o);p&&r.className!=="dsd__theme__layoutItem"&&(l=p,l.setAttribute("data-show-button-near-table","right")),m&&(l=m,l.setAttribute("data-show-button-near-table","bottom"))}}let a=r.closest(".dsd__theme__tableAddRows")||r.closest(".table-cell-action-button-container")||r.closest(".dsd__theme__tableAddColumns");const u=r.closest(".mantine-Menu-dropdown"),d=!(l||a||u||r.closest("div.TableCellResizer__resizer"));return d&&!e&&(i==null?void 0:i.style.visibility)==="hidden"&&(i.style.visibility=""),{isOutside:d,tableDOMNode:l}}else return{isOutside:!0,tableDOMNode:null}}function qX({anchorElem:n=document.body,cellMerge:t=!1}){return Or.createPortal(A.jsx(QX,{isShowTableOptions:!1,cellMerge:t,anchorElem:n}),n)}function oC(n){return[n.getKey(),n.getTextContent(),n.getTag()]}function $X(n,t,e){if(t===null)return e;const r=oC(t);let s=[];if(n===null){if(e.length>0&&e[0][0]===t.__key)return e;s=[r,...e]}else for(let i=0;i<e.length;i++){const o=e[i][0];if(s.push(e[i]),o===n.getKey()&&o!==t.getKey()){if(i+1<e.length&&e[i+1][0]===t.__key)return e;s.push(r)}}return s}function eq(n,t){const e=[];for(const r of t)r[0]!==n&&e.push(r);return e}function tq(n,t){const e=[];for(const r of t)r[0]===n.getKey()?e.push(oC(n)):e.push(r);return e}function cT(n,t,e){const r=[],s=oC(t);n||r.push(s);for(const i of e)i[0]!==t.getKey()&&(r.push(i),n&&i[0]===n.getKey()&&r.push(s));return r}function QA(n){let t=BS(n);for(;t!==null&&!Vs(t);)t=BS(t);return t}function nq({children:n}){const[t,e]=k.useState([]),[r]=_e();return k.useEffect(()=>{let s=[];r.getEditorState().read(()=>{const a=u=>{for(const d of u.getChildren())Vs(d)?s.push([d.getKey(),d.getTextContent(),d.getTag()]):Y(d)&&a(d)};a(xe()),e(s)});const i=r.registerUpdateListener(({editorState:a,dirtyElements:u})=>{a.read(()=>{const d=f=>{for(const g of f.getChildren())if(Vs(g)){const p=QA(g);s=cT(p,g,s),e(s)}else Y(g)&&d(g)};xe().getChildren().forEach(f=>{Y(f)&&u.get(f.__key)&&d(f)})})}),o=r.registerMutationListener(_d,a=>{r.getEditorState().read(()=>{for(const[u,d]of a)if(d==="created"){const f=me(u);if(f!==null){const g=QA(f);s=$X(g,f,s)}}else if(d==="destroyed")s=eq(u,s);else if(d==="updated"){const f=me(u);if(f!==null){const g=QA(f);s=cT(g,f,s)}}e(s)})},{skipInitialization:!0}),l=r.registerMutationListener(Dn,a=>{r.getEditorState().read(()=>{for(const[u,d]of a)if(d==="updated"){const f=me(u);if(f!==null){const g=f.getParentOrThrow();Vs(g)&&(s=tq(g,s),e(s))}}})},{skipInitialization:!0});return()=>{o(),l(),i()}},[r]),n(t,r)}const Eg=624,IM=9;function rq(n,t,e){return n||`${e("editor.heading.name")} ${t.split("")[1]}`}function sq(n){var e;const t=(e=n==null?void 0:n.getClientRects()[0])==null?void 0:e.y;return t>=Eg&&t<=Eg+IM}function oh(n){var e;return((e=n==null?void 0:n.getClientRects()[0])==null?void 0:e.y)<Eg}function XA(n){var e;return((e=n==null?void 0:n.getClientRects()[0])==null?void 0:e.y)>=Eg+IM}function iq({tableOfContents:n}){const[t,e]=k.useState(""),r=k.useRef(0),[s]=_e(),{t:i}=it.useTranslation(),[o,l]=k.useState(!1);function a(u,d){s.getEditorState().read(()=>{const f=s.getElementByKey(u);f!==null&&(f.classList.add("ScrollToBlock"),f.scrollIntoView({behavior:"smooth",block:"center"}),e(u),r.current=d,setTimeout(()=>{f.classList.remove("ScrollToBlock")},2e3))})}return k.useEffect(()=>{function u(){if(n.length>0&&r.current<n.length-1){let p=s.getElementByKey(n[r.current][0]);if(p!==null){if(XA(p)){for(;p!==null&&XA(p)&&r.current>0;){const y=s.getElementByKey(n[r.current-1][0]);y!==null&&(oh(y)||XA(y))&&r.current--,p=y}const m=n[r.current][0];e(m)}else if(oh(p)){for(;p!==null&&oh(p)&&r.current<n.length-1;){const y=s.getElementByKey(n[r.current+1][0]);y!==null&&(sq(y)||oh(y))&&r.current++,p=y}const m=n[r.current][0];e(m)}}}else r.current=0}let d;function f(p,m){clearTimeout(d),d=setTimeout(p,m)}function g(){f(u,10)}return document.addEventListener("scroll",g),()=>document.removeEventListener("scroll",g)},[n,s]),n.length<2?A.jsx(A.Fragment,{}):A.jsxs(O.Popover,{opened:o,onClose:()=>l(!1),width:300,position:"left",offset:-55,transitionProps:{transition:{in:{opacity:1,transform:"translateX(0px)"},out:{opacity:0,transform:"translateX(25px)"},transitionProperty:"transform, opacity"},duration:100,exitDelay:50,exitDuration:200},children:[A.jsx(O.Popover.Target,{children:A.jsx(O.Box,{className:"table-of-contents-container",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:A.jsx(O.Box,{className:"table-of-contents",children:A.jsx(O.Stack,{gap:12,style:{alignItems:"flex-end",transition:"all 0.7s"},children:n.map(([u,,d],f)=>A.jsx(O.Box,{onClick:()=>a(u,f),style:{height:4,borderRadius:"4px",cursor:"pointer",backgroundColor:t===u?"light-dark(var(--mantine-color-dark-2), var(--mantine-color-dark-3))":"light-dark(var(--mantine-color-dark-0), var(--mantine-color-dark-2))",width:d==="h1"?"38px":d==="h2"?"25px":"15px",transition:"all 0.7s"}},u))})})})}),A.jsxs(O.Popover.Dropdown,{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",overflowY:"auto",maxHeight:"400px"},children:[A.jsx(O.Text,{size:"xs",children:i("editor.content")}),n.map(([u,d,f],g)=>A.jsx(O.Text,{className:"table-of-contents-item",lineClamp:2,onClick:()=>a(u,g),style:{fontSize:f==="h1"?"1.25rem":f==="h2"?"1rem":"0.875rem",marginLeft:f==="h1"?"0.25rem":f==="h2"?"0.75rem":"2.25rem",color:t===u?"light-dark(var(--mantine-color-blue-6), var(--mantine-color-dark-3))":"light-dark(var(--mantine-color-dark-8), var(--mantine-color-dark-2))"},children:rq(d,f,i)},u))]})]})}function Ub(){return A.jsx(nq,{children:n=>A.jsx(iq,{tableOfContents:n})})}function oq({hasCellMerge:n=!0,hasCellBackgroundColor:t=!0,hasTabHandler:e=!0,hasHorizontalScroll:r=!0}){const[s]=_e();return k.useEffect(()=>{G9(s,r)},[s,r]),k.useEffect(()=>(s.hasNodes([Ss,xs,Mc])||Pe(!1,"TablePlugin: TableNode, TableCellNode or TableRowNode not registered on editor"),Xe(s.registerCommand(hp,({columns:i,rows:o,includeHeaders:l})=>{const a=k9(Number(o),Number(i),l),u=Wt();u&&u.replace(a);const d=a.getFirstDescendant();return Hn(d)&&d.select(),!0},Fe),s.registerNodeTransform(Ss,i=>{const[o]=_L(i,null,null),l=o.reduce((u,d)=>Math.max(u,d.length),0),a=i.getChildren();for(let u=0;u<o.length;++u){const d=a[u];if(!d)continue;const f=o[u].reduce((g,p)=>p?1+g:g,0);if(f!==l)for(let g=f;g<l;++g){const p=vs(0);p.append(we()),d.append(p)}}}))),[s]),k.useEffect(()=>{const i=new Map,o=(a,u,d)=>{const f=Ul(a,d),g=O9(a,f,s,e);i.set(u,[g,f])},l=s.registerMutationListener(Ss,a=>{s.getEditorState().read(()=>{for(const[u,d]of a){const f=i.get(u);if(d==="created"||d==="updated"){const{tableNode:g,tableElement:p}=NL(u);f===void 0?o(g,u,p):p!==f[1]&&(f[0].removeListeners(),i.delete(u),o(g,u,p))}else d==="destroyed"&&f!==void 0&&(f[0].removeListeners(),i.delete(u))}},{editor:s})},{skipInitialization:!1});return()=>{l();for(const[,[a]]of i)a.removeListeners()}},[s,e]),k.useEffect(()=>{if(!n)return s.registerNodeTransform(xs,i=>{if(i.getColSpan()>1||i.getRowSpan()>1){const[,,o]=Wn(i),[l]=ss(o,i,i),a=l.length,u=l[0].length;let d=o.getFirstChild();Pe(dn(d),"Expected TableNode first child to be a RowNode");const f=[];for(let g=0;g<a;g++){g!==0&&(d=d.getNextSibling(),Pe(dn(d),"Expected TableNode first child to be a RowNode"));let p=null;for(let m=0;m<u;m++){const y=l[g][m],b=y.cell;if(y.startRow===g&&y.startColumn===m)p=b,f.push(b);else if(b.getColSpan()>1||b.getRowSpan()>1){Pe(Le(b),"Expected TableNode cell to be a TableCellNode");const x=vs(b.__headerState);p!==null?p.insertAfter(x):a5(d,x)}}}for(const g of f)g.setColSpan(1),g.setRowSpan(1)}})},[s,n]),k.useEffect(()=>{if(!t)return s.registerNodeTransform(xs,i=>{i.getBackgroundColor()!==null&&i.setBackgroundColor(null)})},[s,t,n]),null}function uT(n){return(n==null?void 0:n.tagName)==="TABLE"}const lq=n=>{const t=G();if(H(t)&&t.isCollapsed()){const e=t.anchor.getNode(),r=Se(e,yt),s=Se(e,Le);return Np(n,r,s)}return!0};function aq(n){const{floatingAnchorElem:t,isSmallWidthViewport:e}=n,[r]=_e(),{settings:{tableCellMerge:s,showTableOfContents:i,tableCellBackgroundColor:o}}=Rw();return k.useEffect(()=>Xe(r.registerCommand(Uo,l=>{var f,g;try{const p=l.clipboardData||window.clipboardData;if(!p)return!1;const m=p.getData("text/html"),y=document.createElement("div");y.innerHTML=m;let b=null;y.childNodes.length===1&&uT(y.firstChild)&&(b=y.firstChild),y.childNodes.length===2&&uT(y.childNodes[1])&&(b=y.childNodes[1]);const x=eb?1:2;if(y.childNodes.length===(eb?2:5)&&((f=y.childNodes[x].className)!=null&&f.includes("table-scrollable-wrapper"))&&(b=y.childNodes[x].firstChild),b){l.preventDefault();const C=Wt();if(C){const v=Se(C,Le),E=Se(C,dn),N=Se(C,yt);if(!N||!E||!v)return!1;const S=b.querySelectorAll("tr"),_=S[0].childNodes,I=N.getChildren();let L=null,M=0;for(let j=0;j<N.getChildren().length;j++)if(N.getChildren()[j].__key===(E==null?void 0:E.__key)&&(M=j,j+S.length>I.length)){let V=j+S.length-I.length;(g=N==null?void 0:N.getLastChild())==null||g.selectStart();for(let ne=0;ne<V;ne++)ag(!0);break}let R=0;N.getChildren().forEach((j,U)=>{if(U>=M&&S[R]){let V=0;j.getChildren().forEach((ae,re)=>{var ee,se;if(Le(ae)&&(ae.__key===(v==null?void 0:v.__key)&&(L=re,ae==null||ae.selectStart()),L!==null&&re>=L&&re<_.length+L)){const q=((se=(ee=S[R])==null?void 0:ee.childNodes[V])==null?void 0:se.innerText)||"";ae.clear();const W=we(),J=Oo(q||"");W.append(J),ae.append(W),V++}}),R++}})}return!0}}catch(p){console.error("TABLE PASTE",p)}const a=G(),u=a==null?void 0:a.getNodes();return Le(u[1])&&r.update(()=>{u.forEach(p=>{yt(p)&&p.remove()})}),!1},Te)),[r]),A.jsxs(A.Fragment,{children:[A.jsx(oq,{hasCellMerge:s,hasCellBackgroundColor:o,hasTabHandler:!0,hasHorizontalScroll:!0}),A.jsx(FX,{}),t&&A.jsxs(A.Fragment,{children:[A.jsx(qX,{anchorElem:t,cellMerge:!0}),A.jsx("div",{children:i&&A.jsx(Ub,{})})]})]})}const cq=n=>({center:{icon:"align-center",iconRTL:"center-align",name:n("editor.toolbar.center")},end:{icon:"align-end",iconRTL:"left-align",name:"End Align"},justify:{icon:"align-justify",iconRTL:"justify-align",name:n("editor.toolbar.justify")},left:{icon:"align-left",iconRTL:"left-align",name:n("editor.toolbar.left")},right:{icon:"align-right",iconRTL:"left-align",name:n("editor.toolbar.right")},start:{icon:"align-start",iconRTL:"right-align",name:"Start Align"}});function uq({editor:n,value:t,disabled:e=!1,setElementFormat:r}){const{t:s,i18n:i}=it.useTranslation(),o=k.useMemo(()=>cq(s),[i.language]),l=k.useMemo(()=>t==="start"||t==="end"?o.left:o[t||"left"],[t,i.language]),a=u=>{r(u),n.dispatchCommand(go,u)};return A.jsxs(O.Menu,{transitionProps:ci,shadow:"md",styles:{dropdown:{zIndex:1e3}},children:[A.jsx(O.Menu.Target,{children:A.jsx(O.Tooltip,{label:s("editor.toolbar.align"),children:A.jsxs("button",{disabled:e,className:"toolbar-item spaced alignment","aria-label":"Formatting options for text alignment",type:"button","data-test-id":"toolbar-align-menu",children:[A.jsx(Ce,{size:18,name:l.icon}),A.jsxs(O.Text,{mx:5,size:"sm",children:[" ",l.name]}),A.jsx(Ce,{name:"chevron-down"})]})})}),A.jsxs(O.Menu.Dropdown,{onMouseDown:u=>{u.preventDefault()},children:[A.jsx(O.Menu.Item,{leftSection:A.jsx(Ce,{size:18,name:"align-left"}),rightSection:t==="left"&&A.jsx(Ce,{name:"check-mark"}),onClick:()=>a("left"),"data-test-id":"toolbar-align-left",children:o.left.name}),A.jsx(O.Menu.Item,{leftSection:A.jsx(Ce,{size:18,name:"align-center"}),rightSection:t==="center"&&A.jsx(Ce,{name:"check-mark"}),onClick:()=>a("center"),"data-test-id":"toolbar-align-center",children:o.center.name}),A.jsx(O.Menu.Item,{leftSection:A.jsx(Ce,{size:18,name:"align-right"}),rightSection:t==="right"&&A.jsx(Ce,{name:"check-mark"}),onClick:()=>a("right"),"data-test-id":"toolbar-align-right",children:o.right.name}),A.jsx(O.Menu.Item,{leftSection:A.jsx(Ce,{size:18,name:"align-justify"}),rightSection:t==="justify"&&A.jsx(Ce,{name:"check-mark"}),onClick:()=>a("justify"),"data-test-id":"toolbar-align-justify",children:o.justify.name})]})]})}const dq=(n,t,e,r)=>{n.update(()=>{if(H(e)){const s=$e(t);e.insertNodes([s]),r()}})},fq=(n,t,e,r)=>{n.update(()=>{if(H(e)){const s=$e(t);e.insertNodes([]);const i=s.getParent()??e.focus.getNode().getParent();if(i){const o=e.focus.getNode().getNextSibling();o?o.insertBefore(s):i.append(s),r()}}})},hq=(n,t="",e,r)=>{n.update(()=>{if(!H(e))return;const i=e.anchor.getNode().getTopLevelElementOrThrow(),o=we();t&&o.append($e(t)),i.insertAfter(o),r()})},gq=(n,t)=>{n.update(()=>{const e=G();if(H(e)){const r=e.getTextContent();t(r)}})},pq=({editor:n,response:t,onSubmit:e,setTypeMenu:r,onClose:s,t:i,selection:o})=>A.jsxs(A.Fragment,{children:[A.jsx(O.Menu.Item,{leftSection:A.jsx($.IconArrowNarrowLeft,{size:14}),onClick:()=>r("main"),children:i("editor.ai.back")}),A.jsx(O.Menu.Item,{onClick:()=>{dq(n,t,o,s)},leftSection:A.jsx($.IconReplace,{size:14}),children:i("editor.ai.menu.answer.replaceSelection")}),A.jsx(O.Menu.Item,{onClick:()=>{fq(n,` ${t}`,o,s)},leftSection:A.jsx($.IconTextPlus,{size:14}),children:i("editor.ai.menu.answer.addTextInline")}),A.jsx(O.Menu.Item,{onClick:()=>{hq(n,t,o,s),s()},leftSection:A.jsx($.IconIndentIncrease,{size:14}),children:i("editor.ai.menu.answer.addBelowParagraph")}),A.jsx(O.Menu.Divider,{}),A.jsx(O.Menu.Label,{children:i("editor.ai.menu.answer.modifyFurther")}),A.jsx(O.Menu.Item,{onClick:()=>{e(`Start with this text and continue. Output this text at the start: "${t}"`,!1)},leftSection:A.jsx($.IconPlayerPlay,{size:14}),children:i("editor.ai.menu.answer.continueWriting")}),A.jsx(O.Menu.Item,{onClick:()=>{e("Regenerate this text with another way: ")},leftSection:A.jsx($.IconReload,{size:14}),children:i("editor.ai.menu.answer.regenerate")}),A.jsx(O.Menu.Item,{onClick:s,leftSection:A.jsx($.IconTrash,{size:14}),children:i("editor.ai.menu.answer.discard")})]}),mq=["arabic","bengali","chinese","dutch","english","french","german","hindi","japanese","korean","nepali","portuguese","spanish"],Aq=["professional","straightforward","friendly","poetic","passiveAggressive","pirate"],yq=[{title:"modifySelection",options:[{title:"improveWriting",prompt:"Improve the quality of the text",icon:A.jsx($.IconWand,{size:14})},{title:"fixMistakes",prompt:"Fix any typos or general errors in the text",icon:A.jsx($.IconTextSpellcheck,{size:14})},{title:"simplify",prompt:"Shorten the text, simplifying it",icon:A.jsx($.IconSortAscending,{size:14})},{title:"addMoreDetail",prompt:"Lengthen the text, going into more detail",icon:A.jsx($.IconSortDescending,{size:14})}]},{title:"generate",options:[{title:"summarise",prompt:"Summarise the text",icon:A.jsx($.IconNotes,{size:14})},{title:"translate",icon:A.jsx($.IconLanguage,{size:14}),type:"language"},{title:"changeStyle",icon:A.jsx($.IconScript,{size:14}),type:"style"},{title:"explain",prompt:"Explain what the text is about",icon:A.jsx($.IconHelpOctagon,{size:14})}]}],bq=({setTypeMenu:n,onSubmit:t,t:e})=>A.jsxs(A.Fragment,{children:[A.jsx(O.Menu.Item,{leftSection:A.jsx($.IconArrowNarrowLeft,{size:14}),onClick:()=>n("main"),children:e("editor.ai.back")}),mq.map(r=>A.jsx(O.Menu.Item,{onClick:()=>{t(`Translate text into the ${r} language`)},children:e(`editor.ai.menu.languages.${r}`)},r))]}),wq=({setTypeMenu:n,onSubmit:t,t:e})=>A.jsx(A.Fragment,{children:yq.map(r=>A.jsxs("div",{children:[A.jsx(O.Menu.Label,{children:e(`editor.ai.menu.main.${r.title}`)}),r.options.map(s=>A.jsx(O.Menu.Item,{onClick:()=>{if(s.type){n(s.type);return}t(s.prompt||"")},leftSection:s.icon,children:e(`editor.ai.menu.main.${s.title}`)},s.title))]},r.title))}),Cq=({setTypeMenu:n,onSubmit:t,t:e})=>A.jsxs(A.Fragment,{children:[A.jsx(O.Menu.Item,{leftSection:A.jsx($.IconArrowNarrowLeft,{size:14}),onClick:()=>n("main"),children:e("editor.ai.back")}),Aq.map(r=>A.jsx(O.Menu.Item,{onClick:()=>{t(`Change text into ${r} style`)},children:e(`editor.ai.menu.style.${r}`)},r))]}),xq=({keyType:n,setTypeMenu:t,editor:e,onSubmit:r,response:s,onClose:i,t:o,selection:l})=>{switch(n){case"main":return A.jsx(wq,{t:o,setTypeMenu:t,onSubmit:r});case"answer":return A.jsx(pq,{t:o,onSubmit:r,editor:e,response:s,setTypeMenu:t,onClose:i,selection:l});case"language":return A.jsx(bq,{t:o,onSubmit:r,setTypeMenu:t});case"style":return A.jsx(Cq,{t:o,onSubmit:r,setTypeMenu:t});default:return null}};function vq(n,t=40){const[e,r]=k.useState(""),s=k.useRef(0),i=k.useRef(null),o=k.useRef(null);return k.useEffect(()=>{if(i.current&&clearInterval(i.current),r(""),s.current=0,!!n)return i.current=setInterval(()=>{r(l=>{const a=n[s.current];return s.current+=1,s.current>=n.length&&clearInterval(i.current),l+(a||"")})},t),()=>{i.current&&clearInterval(i.current)}},[n,t]),k.useEffect(()=>{o.current&&(o.current.scrollTop=o.current.scrollHeight)},[e]),{displayedText:e,containerRef:o}}const Sq=()=>{var F;const[n,t]=k.useState({top:"0px",bottom:"auto"}),[e,r]=k.useState(!1),[s,i]=k.useState(!1),[o]=_e(),[l,a]=k.useState("main"),[u,d]=k.useState(""),[f,g]=k.useState(""),[p,m]=k.useState(""),[y,b]=k.useState(null),[x,C]=k.useState(!1),{fetchPromptResult:v}=k.useContext(kt),{t:E}=it.useTranslation(),[N,S]=$a.useResizeObserver(),_=()=>{r(!1),i(!1),m(""),a("main"),setTimeout(()=>{t({top:"0px",bottom:"auto"})},200)},I=$a.useClickOutside(()=>{_()});k.useEffect(()=>{e?(gq(o,g),document.documentElement.style.overflow="hidden",o.update(()=>{const j=G();j&&b(j)})):(a("main"),document.documentElement.style.overflow="auto",m(""))},[e]);const{displayedText:L,containerRef:M}=vq(p,10),R=(j,U=!0)=>{const V=j+` "${U?f:""}"Only return the modified text. Do not include any explanations, introductions, or formatting.`;C(!0),v&&v(V,ne=>{m(ne),C(!1),a("answer"),d("")},()=>{C(!1)})};return k.useEffect(()=>{var U,V,ne;const{bottom:j}=((U=N.current)==null?void 0:U.getBoundingClientRect())||{bottom:0};if(j>window.innerHeight){const ae=(((ne=(V=o._rootElement)==null?void 0:V.getBoundingClientRect())==null?void 0:ne.bottom)||0)-window.innerHeight;t({...n,top:"auto",bottom:`${ae}px`})}},[S.height,e,N.current]),(F=o._rootElement)!=null&&F.parentElement?A.jsxs(A.Fragment,{children:[n.top?Or.createPortal(A.jsx(O.Transition,{mounted:!!e,transition:"scale-x",duration:300,timingFunction:"ease",children:j=>A.jsx(O.Box,{ref:I,style:{position:"absolute",...n,...j},className:"ai-editor-menu",children:A.jsxs(O.Menu,{opened:!!s,closeOnItemClick:!1,position:"bottom-start",zIndex:99,transitionProps:{transition:"fade",duration:300},styles:{dropdown:{overflow:"auto"}},offset:8,middlewares:{flip:!0,size:{apply({availableHeight:U,elements:V}){requestAnimationFrame(()=>{Object.assign(V.floating.style,{maxHeight:`${U>=425?425:U}px`})})}}},disabled:x,children:[A.jsx(O.Menu.Target,{children:A.jsxs(O.Paper,{withBorder:!0,ref:N,shadow:"lg",radius:"md",p:"0",px:"xs",children:[p&&A.jsxs(A.Fragment,{children:[A.jsxs(O.Group,{gap:3,align:"flex-start",style:{overflowY:"auto"},mah:120,ref:M,children:[A.jsx(O.Box,{style:{flex:1},w:"auto",py:"xs",children:L}),A.jsx(O.Box,{w:"auto",mt:"xs",children:A.jsx(O.CopyButton,{value:p,timeout:2e3,children:({copied:U,copy:V})=>A.jsx(O.Tooltip,{label:U?"Copied":"Copy",withArrow:!0,position:"right",children:A.jsx(O.ActionIcon,{color:U?"teal":"gray",variant:"subtle",onClick:V,children:U?A.jsx($.IconCheck,{size:16}):A.jsx($.IconCopy,{size:16})})})})})]}),A.jsx(O.Divider,{my:"0"})]}),A.jsx(O.Box,{children:A.jsx(O.Input,{size:"md",placeholder:E("editor.ai.placeholder"),rightSectionPointerEvents:"all",variant:"unstyled",value:u,onKeyDown:U=>{if(U.key==="Enter"){if(x)return;R(u)}},onChange:U=>{d(U.target.value)},rightSection:A.jsx(A.Fragment,{children:x?A.jsx(O.Loader,{color:"violet",size:"16",mr:"xs"}):A.jsx(O.ActionIcon,{color:"violet",disabled:!u,variant:"subtle",onClick:()=>{R(u)},children:A.jsx($.IconSparkles,{size:16})})})})})]})}),A.jsx(O.Menu.Dropdown,{className:"menu-dropdown-ai",onMouseDown:U=>{U.stopPropagation()},children:A.jsx(xq,{keyType:l,setTypeMenu:a,editor:o,onSubmit:R,response:p,onClose:_,t:E,selection:y})})]})})}),o._rootElement.parentElement):null,A.jsxs("button",{disabled:!1,className:"toolbar-item spaced alignment","aria-label":"Formatting options for text alignment",type:"button","data-test-id":"toolbar-ai",onClick:()=>{const j=document.querySelector(".floating-text-format-popup");if(j.style.opacity="0",j.style.transform="translate(-10000px, -10000px)",j!=null&&j.style){const U=window.getSelection();if((U==null?void 0:U.rangeCount)===0)return null;if(U){const ne=U.getRangeAt(0).getBoundingClientRect(),ae=document.querySelector(".content-editable-wrapper"),re=ae.getBoundingClientRect(),ee=ne.top-re.top+ae.scrollTop+ne.height+"px";t({top:ee,bottom:"auto"}),setTimeout(()=>{r(!0)},0),setTimeout(()=>{i(!0)},100)}}},children:[A.jsx($.IconSparkles,{color:"#7950f2",size:18}),A.jsx($.IconAi,{size:21,color:"#7950f2"})]})]}):null},LM=({children:n,...t})=>{const{imagePickerSettings:e,maxFileSize:r}=k.useContext(kt),{t:s}=it.useTranslation("ui"),{giphyToken:i,unsplashClientId:o,link:l,download:a,maxUploadFiles:u}=e,d=k.useMemo(()=>[{key:"gallery",enabled:!0},{key:"giphy",enabled:i},{key:"unsplash",enabled:o},{key:"link",enabled:l===void 0?!0:l},{key:"upload",enabled:a===void 0?!0:a}].filter(g=>g.enabled).map(g=>g.key),[e]);return A.jsx(Ct.FilePicker,{showTabs:d,dropZoneProps:{maxFiles:u||1,maxSize:r*1024*1024},giphyToken:i,unsplashClientId:o,...t,children:n})},Eq=({editor:n,isEditable:t,t:e})=>{const{fetchUploadMedia:r,imperativeHandleRef:s}=k.useContext(kt),[i,o]=k.useState(!1);return r?A.jsx(LM,{popoverProps:{opened:i,position:"bottom",onChange:o},onUpload:l=>{var a,u;!r||!l.length||(o(!1),(a=s==null?void 0:s.current)!=null&&a.insertImages&&((u=s.current)==null||u.insertImages(l)))},onChange:l=>{n.dispatchCommand(gg,{altText:"",src:l}),o(!1)},children:A.jsx(O.Tooltip,{label:e("editor.image.add_photo"),children:A.jsx("button",{disabled:!t,type:"button",onClick:()=>o(l=>!l),className:"toolbar-item spaced","data-test-id":"toolbar-insert-image",children:A.jsx(Ce,{name:"photo"})})})}):null},kq={bullet:"Маркированный список",check:"Чек-лист",code:"Кодовый блок",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",h6:"Заголовок 6",number:"Нумерованный список",paragraph:"Параграф",quote:"Цитата"};function lh(){return A.jsx("div",{className:"divider"})}function dT({mode:n,isFloating:t}){const[e]=_e(),[r,s]=k.useState(e),[i,o]=k.useState("paragraph"),[l,a]=k.useState("root"),[u,d]=k.useState(null),[f,g]=k.useState("#000"),[p,m]=k.useState("#fff"),[y,b]=k.useState("left"),[x,C]=k.useState(!1),[v,E]=k.useState(!1),[N,S]=k.useState(!1),[_,I]=k.useState(!1),[L,M]=k.useState(!1),[R,F]=k.useState(!1),[j,U]=k.useState(!1),[V,ne]=k.useState(!1),[ae,re]=k.useState(!1),[ee,se]=k.useState(!1),[q]=_p(),[W,J]=k.useState(!1),[te,le]=k.useState(!0),[ce,de]=k.useState(!0),[Ae,ke]=k.useState(0),[ye,Ee]=k.useState(()=>e.isEditable()),Ye=n||"default",{excludeNodes:ft,fetchUploadMedia:Ke,fetchPromptResult:mt,commentController:At}=k.useContext(kt),{t:Re}=it.useTranslation(),Me=k.useCallback(()=>{const Be=G();if(H(Be)){const ot=Be.anchor.getNode(),bt=Be.focus.getNode(),zt=Zt(ot)?null:ot.getTopLevelElementOrThrow(),Ut=Zt(bt)?null:bt.getTopLevelElementOrThrow();let ct=ot.getKey()==="root"?ot:Se(ot,gr=>{const Xi=gr.getParent();return Xi!==null&&$n(Xi)});Be.getNodes().length===1?le(!0):le(!1),ct===null&&(ct=ot.getTopLevelElementOrThrow());const Ht=ct.getKey(),rr=r.getElementByKey(Ht);e.update(()=>{E(Be.hasFormat("bold")),S(Be.hasFormat("italic")),I(Be.hasFormat("underline")),M(Be.hasFormat("strikethrough")),F(Be.hasFormat("subscript")),U(Be.hasFormat("superscript")),ne(Be.hasFormat("code"))});const sr=Xa(Be),ui=sr.getParent();Nn(ui)||Nn(sr)?C(!0):C(!1),g(Uh(Be,"color","inherit")),m(Uh(Be,"background-color","inherit"));let Zo;Nn(ui)&&(Zo=Se(sr,gr=>Y(gr)&&!gr.isInline())),b(Y(Zo)?Zo.getFormatType():Y(sr)?sr.getFormatType():(ui==null?void 0:ui.getFormatType())||"left");const zc=Se(sr,yt);if(yt(zc)?a("table"):a("root"),rr!==null&&(zt==null?void 0:zt.getKey())===(Ut==null?void 0:Ut.getKey()))if(d(Ht),Ze(ct)){const gr=A0(ot,Br),Xi=gr?gr.getListType():ct.getListType();o(Xi)}else{const gr=Vs(ct)?ct.getTag():ct.getType();gr in kq&&o(gr)}else o("")}},[r,le]);k.useEffect(()=>e.registerCommand(Xr,(Be,ot)=>(Me(),s(ot),!1),xn),[e,Me]),k.useEffect(()=>Xe(e.registerEditableListener(Be=>{Ee(Be)}),r.registerUpdateListener(({editorState:Be})=>{Be.read(()=>{Me()})}),r.registerCommand(Pa,Be=>(re(Be),!1),xn),r.registerCommand(Ra,Be=>(se(Be),!1),xn)),[Me,r,e]),k.useEffect(()=>Xe(r.registerCommand(GT,Be=>{const ot=Be,{code:bt,metaKey:zt}=ot;if(bt==="KeyK"&&zt){ot.preventDefault();let Ut;return x?Ut=null:Ut=pl("https://"),r.dispatchCommand(vo,Ut)}return!1},ks),r.registerCommand(Hi,()=>{const Be=G();if(H(Be)){const ot=Be.getNodes(),bt=ot.length>0&&ot.every(zt=>Ki(zt)||yt(zt)||Dr(zt)?!1:Y(zt)||ie(zt));de(!bt)}return!1},ks)),[r,x]),k.useCallback((Be,ot)=>{r.update(()=>{const bt=G();bt!==null&&zh(bt,Be)},ot?{tag:"historic"}:{})},[r]);const lt=k.useCallback(()=>{setTimeout(()=>{r.dispatchCommand(Lt,"")}),r.update(()=>{const Be=G();if(H(Be)){const ot=Be.anchor,bt=Be.focus,zt=Be.getNodes(),Ut=Be.extract();if(ot.key===bt.key&&ot.offset===bt.offset)return;zt.forEach((ct,nr)=>{if(Hn(ct)){let Ht=ct;nr===0&&ot.offset!==0&&(Ht=Ht.splitText(ot.offset)[1]||Ht),nr===zt.length-1&&(Ht=Ht.splitText(bt.offset)[0]||Ht);const rr=Ut[0];zt.length===1&&Hn(rr)&&(Ht=rr),Ht.__style!==""&&Ht.setStyle(""),Ht.__format!==0&&Ht.setFormat(0);const sr=Ec(Ht);sr.__format!==0&&sr.setFormat(""),sr.__indent!==0&&sr.setIndent(0),ct=Ht}else Vs(ct)||Mo(ct)?ct.replace(we(),!0):rg(ct)&&ct.setFormat("")})}})},[r]),Jt=Be=>{g(Be.color),m(Be["background-color"]),r.update(()=>{const ot=G();ot!==null&&zh(ot,Be)})},Dt=k.useCallback(()=>{e.dispatchCommand(Cw,"create"),setTimeout(()=>{Ee(!0)},1e3)},[e]),hr=()=>{e.dispatchCommand(Jw,void 0),ke(Be=>Be+1)};return A.jsx("div",{className:"toolbar-wrapper",tabIndex:-1,children:A.jsxs("div",{className:"toolbar",children:[A.jsxs(A.Fragment,{children:[A.jsx(V2,{disabled:ce,blockType:i,rootType:l,editor:e,mode:Ye,fetchUploadMedia:Ke,excludeNodes:ft}),A.jsx(lh,{})]}),n==="editor"&&!0&&mt&&A.jsxs(A.Fragment,{children:[A.jsx(k.Suspense,{fallback:null,children:A.jsx(Sq,{})}),A.jsx(lh,{})]}),A.jsxs(A.Fragment,{children:[A.jsx(O.Tooltip,{label:Re("editor.toolbar.bold"),children:A.jsx("button",{disabled:!ye,onClick:()=>{r.dispatchCommand(Lt,"bold")},className:"toolbar-item spaced "+(v?"active":""),type:"button","data-test-id":"toolbar-bold",children:A.jsx(Ce,{name:"bold"})})}),A.jsx(O.Tooltip,{label:Re("editor.toolbar.italic"),children:A.jsx("button",{disabled:!ye,onClick:()=>{r.dispatchCommand(Lt,"italic")},className:"toolbar-item spaced "+(N?"active":""),type:"button","data-test-id":"toolbar-italic",children:A.jsx(Ce,{name:"italic"})})}),A.jsx(O.Tooltip,{label:Re("editor.toolbar.underline"),children:A.jsx("button",{disabled:!ye,"data-test-id":"toolbar-underline",onClick:()=>{r.dispatchCommand(Lt,"underline")},className:"toolbar-item spaced "+(_?"active":""),type:"button",children:A.jsx(Ce,{name:"underline"})})}),A.jsx(O.Tooltip,{label:Re("editor.toolbar.strike"),children:A.jsx("button",{disabled:!ye,className:"toolbar-item spaced "+(L?"active":""),"data-test-id":"toolbar-strikethrough",onClick:()=>{r.dispatchCommand(Lt,"strikethrough")},children:A.jsx(Ce,{name:"strikethrough"})})}),A.jsx(O.Tooltip,{label:Re("editor.toolbar.code"),children:A.jsx("button",{disabled:!ye,onClick:()=>{r.dispatchCommand(Lt,"code")},className:"toolbar-item spaced "+(V?"active":""),type:"button","data-test-id":"toolbar-code",children:A.jsx(Ce,{name:"code"})})}),A.jsx(O.Tooltip,{label:Re("editor.toolbar.clear"),children:A.jsx("button",{disabled:!ye,className:"toolbar-item",onClick:lt,"data-test-id":"toolbar-clear-format",children:A.jsx(Ce,{name:"сlear-format"})})}),A.jsx(O.Tooltip,{disabled:!ye,label:Re("editor.toolbar.link"),children:A.jsx("button",{onClick:Dt,className:"toolbar-item spaced "+(x?"active":""),onMouseDown:()=>{Ee(!1)},type:"button","data-test-id":"toolbar-link",children:A.jsx(Ce,{name:"link"})})}),At&&n==="editor"&&A.jsx(O.Tooltip,{label:Re("editor.toolbar.comment"),children:A.jsx("button",{onClick:hr,className:"toolbar-item spaced "+(x?"active":""),type:"button","data-test-id":"toolbar-comment",children:A.jsx(Ce,{name:"message"})})},Ae),A.jsx(Ct.NewColorPicker,{value:{color:f,background:p},menuProps:{closeOnItemClick:!0},onChange:Be=>{Jt({color:f,"background-color":p,[Be.mode==="color"?"color":"background-color"]:Be.value})},disabled:!ye,modes:["color","background"]})]}),A.jsx(lh,{}),A.jsx(uq,{disabled:!ye,value:y,editor:e,isRTL:W,setElementFormat:b}),n==="default"&&A.jsxs(A.Fragment,{children:[A.jsx(lh,{}),A.jsx(Eq,{editor:e,t:Re,isEditable:ye})]}),q]})})}const MM=Object.freeze({" ":"\\t","\n":"\\n"}),fT=new RegExp(Object.keys(MM).join("|"),"g"),zs=Object.freeze({ancestorHasNextSibling:"|",ancestorIsLastChild:" ",hasNextSibling:"├",isLastChild:"└",selectedChar:"^",selectedLine:">"}),Tq=[n=>n.hasFormat("bold")&&"Bold",n=>n.hasFormat("code")&&"Code",n=>n.hasFormat("italic")&&"Italic",n=>n.hasFormat("strikethrough")&&"Strikethrough",n=>n.hasFormat("subscript")&&"Subscript",n=>n.hasFormat("superscript")&&"Superscript",n=>n.hasFormat("underline")&&"Underline",n=>n.hasFormat("highlight")&&"Highlight"],_q=[n=>n.hasTextFormat("bold")&&"Bold",n=>n.hasTextFormat("code")&&"Code",n=>n.hasTextFormat("italic")&&"Italic",n=>n.hasTextFormat("strikethrough")&&"Strikethrough",n=>n.hasTextFormat("subscript")&&"Subscript",n=>n.hasTextFormat("superscript")&&"Superscript",n=>n.hasTextFormat("underline")&&"Underline",n=>n.hasTextFormat("highlight")&&"Highlight"],Nq=[n=>n.isDirectionless()&&"Directionless",n=>n.isUnmergeable()&&"Unmergeable"],Iq=[n=>n.isToken()&&"Token",n=>n.isSegmented()&&"Segmented"];function Lq(n,t,e,r,s=!1){const i=n.getEditorState(),o=n._config,l=n._compositionKey,a=n._editable;if(e){let g="";return i.read(()=>{g=(function(p){const m=document.createElement("div");return m.innerHTML=p.trim(),OM(m,0).innerHTML})(Kh(n))}),g}let u=` root
351
+ `;const d=i.read(()=>{const g=G();return DM(xe(),(p,m)=>{const y=`(${p.getKey()})`,b=p.getType()||"",x=p.isSelected();u+=`${x?zs.selectedLine:" "} ${m.join(" ")} ${y} ${b} ${(function(C,v,E=!1){const N=v?v(C,E):void 0;if(N!==void 0&&N.length>0)return N;if(ie(C)){const S=C.getTextContent(),_=S.length===0?"(empty)":`"${hT(S,E)}"`,I=(function(L){return[gT(L),Mq(L),Dq(L),pT(L)].filter(Boolean).join(", ")})(C);return[_,I.length!==0?`{ ${I} }`:null].filter(Boolean).join(" ").trim()}if(Nn(C)){const S=C.getURL(),_=S.length===0?"(empty)":`"${hT(S,E)}"`,I=(function(L){return[Oq(L),Rq(L),Pq(L),pT(L)].filter(Boolean).join(", ")})(C);return[_,I.length!==0?`{ ${I} }`:null].filter(Boolean).join(" ").trim()}if(sg(C))return`ids: [ ${C.getIDs().join(", ")} ]`;if(un(C)){const S=(function(I){let L=_q.map(M=>M(I)).filter(Boolean).join(", ").toLocaleLowerCase();return L!==""&&(L="format: "+L),L})(C);let _=S!==""?`{ ${S} }`:"";return _+=C.__style?`(${C.__style})`:"",_}return""})(p,r,s)}
352
+ `,u+=(function({indent:C,isSelected:v,node:E,nodeKeyDisplay:N,selection:S,typeDisplay:_}){if(!ie(E)||!H(S)||!v||Y(E))return"";const I=S.anchor,L=S.focus;if(E.getTextContent()===""||I.getNode()===S.focus.getNode()&&I.offset===L.offset)return"";const[M,R]=(function(re,ee){const se=ee.getStartEndPoints();if(Gt(ee)||se===null)return[-1,-1];const[q,W]=se,J=re.getTextContent(),te=J.length;let le=-1,ce=-1;if(q.type==="text"&&W.type==="text"){const ke=q.getNode(),ye=W.getNode();ke===ye&&re===ke&&q.offset!==W.offset?[le,ce]=q.offset<W.offset?[q.offset,W.offset]:[W.offset,q.offset]:[le,ce]=re===ke?ke.isBefore(ye)?[q.offset,te]:[0,q.offset]:re===ye?ye.isBefore(ke)?[W.offset,te]:[0,W.offset]:[0,te]}const de=(J.slice(0,le).match(fT)||[]).length,Ae=(J.slice(le,ce).match(fT)||[]).length;return[le+de,ce+de+Ae]})(E,S);if(M===R)return"";const F=C[C.length-1]===zs.hasNextSibling?zs.ancestorHasNextSibling:zs.ancestorIsLastChild,j=[...C.slice(0,C.length-1),F],U=Array(M+1).fill(" "),V=Array(R-M).fill(zs.selectedChar),ne=_.length+2,ae=Array(N.length+ne).fill(" ");return[zs.selectedLine,j.join(" "),[...ae,...U,...V].join("")].join(" ")+`
353
+ `})({indent:m,isSelected:x,node:p,nodeKeyDisplay:y,selection:g,typeDisplay:b})}),g===null?": null":H(g)?(function(p){let m="";const y=gT(p);m+=`: range ${y!==""?`{ ${y} }`:""} ${p.style!==""?`{ style: ${p.style} } `:""}`;const b=p.anchor,x=p.focus,C=b.offset,v=x.offset;return m+=`
354
+ ├ anchor { key: ${b.key}, offset: ${C===null?"null":C}, type: ${b.type} }`,m+=`
355
+ └ focus { key: ${x.key}, offset: ${v===null?"null":v}, type: ${x.type} }`,m})(g):Hw(g)?(function(p){return`: table
356
+ └ { table: ${p.tableKey}, anchorCell: ${p.anchor.key}, focusCell: ${p.focus.key} }`})(g):(function(p){return Gt(p)?`: node
357
+ └ [${Array.from(p._nodes).join(", ")}]`:""})(g)});if(u+=`
358
+ selection`+d,u+=`
359
+
360
+ commands:`,t.length)for(const{index:g,type:p,payload:m}of t)u+=`
361
+ └ ${g}. { type: ${p}, payload: ${m instanceof Event?m.constructor.name:m} }`;else u+=`
362
+ └ None dispatched.`;const{version:f}=n.constructor;return u+=`
363
+
364
+ editor${f?` (v${f})`:""}:`,u+=`
365
+ └ namespace ${o.namespace}`,l!==null&&(u+=`
366
+ └ compositionKey ${l}`),u+=`
367
+ └ editable ${String(a)}`,u}function DM(n,t,e=[]){const r=n.getChildren(),s=r.length;r.forEach((i,o)=>{t(i,e.concat(o===s-1?zs.isLastChild:zs.hasNextSibling)),Y(i)&&DM(i,t,e.concat(o===s-1?zs.ancestorIsLastChild:zs.ancestorHasNextSibling))})}function hT(n,t=!1){const e=Object.entries(MM).reduce((r,[s,i])=>r.replace(new RegExp(s,"g"),String(i)),n);return t?e.replace(/[^\s]/g,"*"):e}function Mq(n){let t=Nq.map(e=>e(n)).filter(Boolean).join(", ").toLocaleLowerCase();return t!==""&&(t="detail: "+t),t}function Dq(n){let t=Iq.map(e=>e(n)).filter(Boolean).join(", ").toLocaleLowerCase();return t!==""&&(t="mode: "+t),t}function gT(n){let t=Tq.map(e=>e(n)).filter(Boolean).join(", ").toLocaleLowerCase();return t!==""&&(t="format: "+t),t}function Oq(n){let t=n.getTarget();return t!=null&&(t="target: "+t),t}function Rq(n){let t=n.getRel();return t!=null&&(t="rel: "+t),t}function Pq(n){let t=n.getTitle();return t!=null&&(t="title: "+t),t}function pT(n){if(!n.__state)return!1;const t=[];for(const[r,s]of n.__state.knownState.entries()){if(r.isEqual(s,r.defaultValue))continue;const i=JSON.stringify(r.unparse(s));t.push(`[${r.key}: ${i}]`)}let e=t.join(",");return e!==""&&(e="state: "+e),e}function OM(n,t){const e=new Array(1+t++).join(" "),r=new Array(t-1).join(" ");let s;for(let i=0;i<n.children.length;i++)s=document.createTextNode(`
368
+ `+e),n.insertBefore(s,n.children[i]),OM(n.children[i],t),n.lastElementChild===n.children[i]&&(s=document.createTextNode(`
369
+ `+r),n.appendChild(s));return n}const Bq=k.forwardRef(function({treeTypeButtonClassName:n,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:e,timeTravelPanelButtonClassName:r,viewClassName:s,timeTravelPanelClassName:i,editorState:o,setEditorState:l,setEditorReadOnly:a,generateContent:u,commandsLog:d=[]},f){const[g,p]=k.useState([]),[m,y]=k.useState(""),[b,x]=k.useState(!1),[C,v]=k.useState(!1),E=k.useRef(0),N=k.useRef(null),[S,_]=k.useState(!1),[I,L]=k.useState(!1),[M,R]=k.useState(!1),F=k.useRef(null),j=k.useRef([]),U=k.useRef(0),V=k.useCallback(ae=>{const re=++U.current;u(ae).then(ee=>{re===U.current&&y(ee)}).catch(ee=>{re===U.current&&y(`Error rendering tree: ${ee.message}
370
+
371
+ Stack:
372
+ ${ee.stack}`)})},[u]);k.useEffect(()=>{if(!(!M&&o._nodeMap.size>1e3&&(L(!0),!M))&&(F.current!==o||j.current!==d)){const ae=F.current!==o;F.current=o,j.current=d,V(C),!b&&ae&&p(re=>[...re,[Date.now(),o]])}},[o,V,C,M,b,d]);const ne=g.length;return k.useEffect(()=>{if(S){let ae;const re=()=>{const ee=E.current;if(ee===ne-1)return void _(!1);const se=g[ee][0],q=g[ee+1][0];ae=setTimeout(()=>{E.current++;const W=E.current,J=N.current;J!==null&&(J.value=String(W)),l(g[W][1]),re()},q-se)};return re(),()=>{clearTimeout(ae)}}},[g,S,ne,l]),A.jsxs("div",{className:s,children:[!M&&I?A.jsxs("div",{style:{padding:20},children:[A.jsx("span",{style:{marginRight:20},children:"Detected large EditorState, this can impact debugging performance."}),A.jsx("button",{onClick:()=>{R(!0)},style:{background:"transparent",border:"1px solid white",color:"white",cursor:"pointer",padding:5},children:"Show full tree"})]}):null,M?null:A.jsx("button",{onClick:()=>(V(!C),void v(!C)),className:n,type:"button",children:C?"Tree":"Export DOM"}),!b&&(M||!I)&&ne>2&&A.jsx("button",{onClick:()=>{a(!0),E.current=ne-1,x(!0)},className:t,type:"button",children:"Time Travel"}),(M||!I)&&A.jsx("pre",{ref:f,children:m}),b&&(M||!I)&&A.jsxs("div",{className:i,children:[A.jsx("button",{className:r,onClick:()=>{E.current===ne-1&&(E.current=1),_(!S)},type:"button",children:S?"Pause":"Play"}),A.jsx("input",{className:e,ref:N,onChange:ae=>{const re=Number(ae.target.value),ee=g[re];ee&&(E.current=re,l(ee[1]))},type:"range",min:"1",max:ne-1}),A.jsx("button",{className:r,onClick:()=>{a(!1);const ae=g.length-1,re=g[ae];l(re[1]);const ee=N.current;ee!==null&&(ee.value=String(ae)),x(!1),_(!1)},type:"button",children:"Exit"})]})]})});function jq(n,t){const e=new Set;let r=0;for(const[s]of n._commands)e.add(n.registerCommand(s,i=>(t(o=>{r+=1;const l=[...o];return l.push({index:r,payload:i,type:s.type?s.type:"UNKNOWN"}),l.length>10&&l.shift(),l}),!1),xn));return()=>e.forEach(s=>s())}function Fq(n){const[t,e]=k.useState([]);return k.useEffect(()=>jq(n,e),[n]),k.useMemo(()=>t,[t])}function zq({treeTypeButtonClassName:n,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:e,timeTravelPanelButtonClassName:r,timeTravelPanelClassName:s,viewClassName:i,editor:o,customPrintNode:l}){const a=ET.createRef(),[u,d]=k.useState(o.getEditorState()),f=Fq(o);return k.useEffect(()=>Xe(o.registerUpdateListener(({editorState:g})=>{d(g)}),o.registerEditableListener(()=>{d(o.getEditorState())})),[o]),k.useEffect(()=>{const g=a.current;if(g!==null)return g.__lexicalEditor=o,()=>{g.__lexicalEditor=null}},[o,a]),A.jsx(Bq,{treeTypeButtonClassName:n,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:e,timeTravelPanelButtonClassName:r,viewClassName:i,timeTravelPanelClassName:s,setEditorReadOnly:g=>{const p=o.getRootElement();p!=null&&(p.contentEditable=g?"false":"true")},editorState:u,setEditorState:g=>o.setEditorState(g),generateContent:async function(g){return Lq(o,f,g,l)},ref:a,commandsLog:f})}function mT(n){let t=0;const e=[];return n.split(/(<[^>]+>)/g).filter(Boolean).forEach(s=>{s.startsWith("</")?(t=Math.max(0,t-2),e.push(" ".repeat(t)+s)):s.startsWith("<")?(e.push(" ".repeat(t)+s),!s.endsWith("/>")&&!s.match(/<(br|img|hr|input)[^>]*>/)&&(t+=2)):s.trim()&&e.push(" ".repeat(t)+s)}),e.join(`
373
+ `)}function Uq(){const[n]=_e(),[t,e]=k.useState("tree"),[r,s]=k.useState(""),[i,o]=k.useState(!1);k.useEffect(()=>{if(t==="dom"){const a=()=>{const u=n.getRootElement();u&&s(u.innerHTML)};return a(),n.registerUpdateListener(a)}},[t,n]);const l=async(a=!1)=>{try{const u=a?mT(r):r;await navigator.clipboard.writeText(u),o(!0),setTimeout(()=>o(!1),2e3)}catch(u){console.error("Failed to copy:",u)}};return A.jsxs("div",{className:"tree-view-output",children:[A.jsxs("div",{style:{display:"flex",gap:"4px",padding:"8px",borderBottom:"1px solid #333",background:"#1e1e1e"},children:[A.jsx("button",{onClick:()=>e("tree"),style:{padding:"6px 12px",background:t==="tree"?"#0078d4":"#2d2d2d",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px",fontWeight:t==="tree"?"bold":"normal"},children:"Tree View"}),A.jsx("button",{onClick:()=>e("dom"),style:{padding:"6px 12px",background:t==="dom"?"#0078d4":"#2d2d2d",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"12px",fontWeight:t==="dom"?"bold":"normal"},children:"DOM HTML"})]}),t==="tree"&&A.jsx(zq,{viewClassName:"tree-view-output",treeTypeButtonClassName:"debug-treetype-button",timeTravelPanelClassName:"debug-timetravel-panel",timeTravelButtonClassName:"debug-timetravel-button",timeTravelPanelSliderClassName:"debug-timetravel-panel-slider",timeTravelPanelButtonClassName:"debug-timetravel-panel-button",editor:n}),t==="dom"&&A.jsxs("div",{style:{padding:"16px",background:"#1e1e1e",height:"100%",overflow:"auto"},children:[A.jsx("div",{style:{display:"flex",gap:"8px",marginBottom:"16px",position:"sticky",top:0,background:"#1e1e1e",paddingBottom:"8px",zIndex:10},children:A.jsx("button",{onClick:()=>l(!0),style:{padding:"6px 12px",background:i?"#28a745":"#6c757d",color:"#fff",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"11px",fontWeight:"bold"},children:i?"✓ Copied!":"Copy Formatted"})}),A.jsx("div",{style:{padding:"12px",background:"#252526",borderRadius:"4px",border:"1px solid #3e3e42"},children:A.jsx("pre",{style:{margin:0,whiteSpace:"pre",color:"#9cdcfe",fontFamily:"monospace",fontSize:"11px",lineHeight:"1.4"},children:mT(r)})})]})]})}function Kq(){const[n]=_e(),{imperativeHandleRef:t}=k.useContext(kt),e=k.useCallback(()=>{const r=Wt(),{lexicalNode:s}=dc(r,n,{"callout-wrapper":!0});return s&&Y(s)&&s.getChildren().length===1&&n.update(()=>{const i=we();i.append($e(""));const o=s.getParent();o&&(o.replace(i),i.selectStart())}),!1},[n]);k.useEffect(()=>{t!=null&&t.current&&(t.current.onDeleteCallout=e)},[t,e]),k.useEffect(()=>{if(!n.hasNodes([sa,Bo,Po]))throw new Error("CalloutPlugin: CalloutNode not registered on editor");return Xe(n.registerMutationListener(Po,r=>{n.getEditorState().read(()=>{for(const[s,i]of r)if(i==="destroyed"){const o=Number(s),l=String(o-1);n.update(()=>{const a=me(l);if(a&&Ki(a)){const u=a.getChildren();for(const d of u)a==null||a.insertBefore(d);a.remove()}},{tag:qr})}})}),n.registerCommand(ww,r=>{const{emoji:s,backgroundColor:i,calloutType:o}=TM(r);let l=G();if(Gt(l)&&(EL(l),l=G()),!H(l))return!1;const a=_M(l);if(a.length===0)return!1;const u=a[0],d=u.getParent();return Mo(u)||d!=null&&Mo(d)?(Sc(l,cX(s,i,o),fX),!0):dX(l,s,i,o)},Fe),n.registerCommand(bc,e,Te),n.registerCommand(yo,()=>Xw()&&n._keyToDOMMap.size>2,Te),n.registerCommand(Gl,r=>{if(!r.clipboardData)return!1;const s=G();if(!H(s))return!1;const i=$k(s.anchor.getNode()),o=$k(s.focus.getNode());if(!i||!o||i.__key!==o.__key)return!1;const{hasSelectedBlock:l,selectedAllDocument:a}=hl(),u=eT(s.getTextContent()),d=eT(i.getTextContent());if(!(u===d&&(l||a)))return!1;r.preventDefault();const m=i.__calloutType??"default",y=up(s)["text/html"],b=i.getTextContent(),x=`<div class="dsd__theme__callout-wrapper" style="background-color: ${i.__backgroundColor}" data-type="${m}">${y}</div>`;return r.clipboardData.setData("text/html",x),r.clipboardData.setData("text/plain",b),!0},Te))},[n,e])}function Wq(){return Kq(),null}function Hq(n,t){n.update(()=>{const e=window.getSelection();if(e&&e.rangeCount>0){const r=e.getRangeAt(0),s=r.startOffset,i=Math.max(0,s-t);r.setStart(r.startContainer,i),e.removeAllRanges(),e.addRange(r)}})}function AT(n){const t=/^(https?:\/\/)?[\w-]+(\.[\w-]+)+/,e=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return t.test(n)||e.test(n)}function Yq({onChange:n}){const[t]=_e(),e=k.useRef(null),r=k.useRef(""),s=k.useRef(!1);k.useEffect(()=>t.registerCommand(Hb,()=>(t.update(()=>{const i=G();if(!H(i))return!1;const o=i.anchor,l=o.getNode();if(ie(l)){const a=l.getTextContent().substring(0,o.offset),u=a.match(/(\S+)$/);if(u){const d=u[1],f=a.lastIndexOf(d),g=f>0?a[f-1]:"";if((g===""||g===" ")&&AT(d)){n(d,yT.SPACE);const p=xo(d,{rel:"noopener noreferrer",target:"_blank"}),m=$e(d);p.append(m);const y=f,b=y+d.length;i.anchor.set(l.__key,y,"text"),i.focus.set(l.__key,b,"text"),i.insertNodes([p]);const x=G();H(x)&&(x.anchor.set(p.getKey(),d.length,"element"),x.focus.set(p.getKey(),d.length,"element")),p.selectEnd()}}}}),!1),xn),[t,n]),k.useEffect(()=>{const i=l=>{var u,d;const a=((u=l.clipboardData)==null?void 0:u.getData("text"))||((d=l.clipboardData)==null?void 0:d.getData("text/plain"));a&&AT(a)&&(s.current=!0,setTimeout(()=>{n(a,yT.PASTE),Hq(t,a.length),t.dispatchCommand(vo,pl(a)),t.update(()=>{const f=Wt();G()&&Ge(null),f==null||f.selectEnd()}),r.current=a,s.current=!1},10))},o=t.getRootElement();if(o)return o.addEventListener("paste",i),()=>{o.removeEventListener("paste",i),e.current&&clearTimeout(e.current)}},[t,n])}const yT={PASTE:"paste",SPACE:"space"};function Gq({onChange:n}){return Yq({onChange:n}),null}function Zq(n){switch(n){case"phone":return"tel:";case"email":return"mailto:";case"sms":return"sms:";case"web":default:return"https://"}}function Jq(n,t){if(!n)return!1;try{if(t==="phone"||n.startsWith("tel:")){const r=n.startsWith("tel:")?n.substring(4):n;return/^\+?[\d\s\-\(\)]+$/.test(r)&&/\d/.test(r)}if(t==="sms"||n.startsWith("sms:")){const r=n.startsWith("sms:")?n.substring(4):n;return/^\+?[\d\s\-\(\)]+$/.test(r)&&/\d/.test(r)}if(t==="email"||n.startsWith("mailto:")){const r=n.startsWith("mailto:")?n.substring(7):n;return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)}if(t==="web"){const r=[".","::","://","https://","http://"],s=n.trim();if(!s||r.includes(s)||s.startsWith("://"))return!1;const i=s.startsWith("http://")||s.startsWith("https://")?s:`https://${s}`;try{const o=new URL(i);if(!wh.has(o.protocol))return!1;const l=o.hostname;return l?l==="localhost"||l.includes(".")&&l.split(".").every(a=>a.length>0):!1}catch{return!1}}if(n.startsWith("http://")||n.startsWith("https://")){const r=new URL(n);return wh.has(r.protocol)}const e=new URL(n);return wh.has(e.protocol)}catch{return!1}}function qA(n,t){return!n||n.includes("://")||n.startsWith("tel:")||n.startsWith("mailto:")||n.startsWith("sms:")?n:Zq(t)+n}function ah(n){return n?n.startsWith("tel:")?"phone":n.startsWith("mailto:")?"email":n.startsWith("sms:")?"sms":(n.startsWith("http://")||n.startsWith("https://"),"web"):"web"}function _a(n){return n&&(n.startsWith("tel:")?n.substring(4):n.startsWith("mailto:")?n.substring(7):n.startsWith("sms:")?n.substring(4):n.startsWith("https://")?n.substring(8):n.startsWith("http://")?n.substring(7):n)}function Vq(n){switch(n){case"phone":return"+79001234567";case"email":return"example@example.com";case"sms":return"+79001234567";case"web":default:return"https://"}}function Qq(n){return n==="phone"||n==="sms"?"tel":n==="email"?"email":"text"}function Xq(n){return n==="email"?"email":n==="phone"||n==="sms"?"phone":"url"}function RM(n){return(n==null?void 0:n.closest(".doc-space-editor-wrapper"))??null}function qq(n){return(n==null?void 0:n.closest(".dsd__theme__link"))??null}function $q(n){return!!RM(n)}function PM(n){return n?n.closest('[data-portal="true"]')?!0:!!(n.closest("[data-combobox-dropdown]")||n.closest(".mantine-Combobox-dropdown")||n.closest('[class*="Combobox-dropdown"]')):!1}function e$(n){return{top:n.y,left:n.x}}function t$(n){const t=n.getBoundingClientRect();return{top:t.y,left:t.x+t.width/2}}function n$(){const n=window.getSelection();return!n||n.rangeCount===0?null:n.getRangeAt(0).getBoundingClientRect()}function r$(){const n=window.getSelection();return!n||n.rangeCount===0?null:n.getRangeAt(0).startContainer.parentElement}function bT(n,t=!1){var s;if(!n)return;const e=document.createRange(),r=window.getSelection();return e.setStart(n,Number(t)),e.collapse(!0),r&&(r.removeAllRanges(),r.addRange(e)),(s=n.textContent)==null?void 0:s.length}function s$(n){const t=document.createRange(),e=window.getSelection();if(!e||e.rangeCount===0)return;const r=e.getRangeAt(0),s=r.startContainer,i=r.startOffset,o=i+n;if(s.nodeType===Node.TEXT_NODE){const l=s.length,a=Math.min(o,l);t.setStart(s,a),t.setEnd(s,a)}else{const l=s.childNodes[i];if(l&&l.nodeType===Node.TEXT_NODE){const a=l.length,u=Math.min(o,a);t.setStart(l,u),t.setEnd(l,u)}else return}t.collapse(!0),e.removeAllRanges(),e.addRange(t)}async function i$(n){try{return await navigator.clipboard.writeText(n),!0}catch{return!1}}function o$({showTextToolbar:n,updateLink:t}){const e=k.useRef(null),r=k.useRef(!1),s=k.useRef(null),i=k.useRef(null),o=k.useRef(null),[l,a]=k.useState(""),[u,d]=k.useState(""),[f,g]=k.useState(!0),[p,m]=k.useState(!1),[y,b]=k.useState(!1),[x,C]=k.useState("delete"),[v,E]=k.useState({top:0,left:0}),[N,S]=k.useState("web"),[_]=_e(),I=k.useCallback(()=>{setTimeout(()=>{r.current=!1,C("delete"),a(""),m(!1),b(!1),S("web"),E({top:0,left:-999}),o.current=null,s.current=null,So(!1,document.documentElement)})},[]),L=k.useMemo(()=>ml.debounce(q=>{if(!q||!RM(q)||r.current)return;const J=qq(q);if(J){const te=_.getRootElement();if(!(te!=null&&te.contains(J)))return;const le=J.getAttribute("href");if(E(t$(J)),le){const ce=ah(le);S(ce),a(_a(le))}else a("");b(!0),s.current=J}else I(),E({top:0,left:0})},300),[_,I]),M=k.useCallback(q=>{const W=G();if(q==="create"&&(C("create"),r.current=!0,S("web"),a(""),So(!0,document.documentElement)),H(W)){const te=Xa(W),le=Se(te,Nn);if(o.current={anchorKey:W.anchor.key,anchorOffset:W.anchor.offset,anchorType:W.anchor.type,focusKey:W.focus.key,focusOffset:W.focus.offset,focusType:W.focus.type},le){const ce=le.getURL(),de=ah(ce);S(de),a(_a(ce))}else if(Nn(te)){const ce=te.getURL(),de=ah(ce);S(de),a(_a(ce))}}const J=W?n$():null;return J&&E(e$(J)),b(!0),!0},[]);k.useEffect(()=>{t.current&&(t.current.updateLinkEditor=()=>{const q=r$();r.current=!1,L(q),setTimeout(()=>{r.current=!0,C("edit")},300)})},[L,t]),k.useEffect(()=>{const q=ml.debounce(W=>{if(n.current)return;const J=W.target;J instanceof HTMLElement&&L(J)},150);return document.body.addEventListener("mouseover",q),()=>{document.body.removeEventListener("mouseover",q),q.cancel()}},[L,n]),k.useEffect(()=>{const q=ml.debounce(W=>{const J=W.target;if(!(J instanceof HTMLElement))return;const te=$q(J),le=PM(J);!te&&!le&&(I(),E({top:0,left:0}))},150);return document.addEventListener("mousemove",q),()=>{document.removeEventListener("mousemove",q),q.cancel()}},[I]),k.useEffect(()=>()=>{L.cancel()},[L]),k.useEffect(()=>Xe(_.registerCommand(Cw,q=>(M(q),!0),Te)),[_,M]),k.useEffect(()=>{setTimeout(()=>{x&&e.current&&(e.current.focus(),setTimeout(()=>{e.current&&e.current.select()}),_.read(()=>{const q=G();if(H(q)){i.current=Wt();const W=Xa(q);Se(W,Nn)&&W&&d(W.getTextContent())}}))})},[_,x]);const R=k.useCallback(()=>{const q=G();if(H(q))return!0;const W=o.current;if(W){const te=me(W.anchorKey),le=me(W.focusKey);if(te&&le){const ce=ii();return ce.anchor.set(W.anchorKey,W.anchorOffset,W.anchorType),ce.focus.set(W.focusKey,W.focusOffset,W.focusType),Ge(ce),!0}}const J=i.current;if(!J)return!1;if(ie(J))return J.select(0,J.getTextContentSize()),!0;if(Y(J)){const te=J.getFirstDescendant();if(ie(te))return te.select(0,te.getTextContentSize()),!0}return!1},[]),F=k.useCallback(()=>{const q=qA(l,N);if(Jq(q,N)&&q)m(!1);else{m(!0);return}_.update(()=>{if(!R())return;const W=G();if(!H(W))return;const J=Xa(W),te=J?J.getParent():null,le=(fl(J)?J:null)??(fl(te)?te:null);if(!le)_.dispatchCommand(vo,pl(q)),x==="edit"&&J&&Hn(J)&&(J.setTextContent(u),J.selectEnd());else{const ce=$e(u),de=le.getParent();de&&(le.remove(),de.append(ce),_.dispatchCommand(vo,pl(q)),ce.selectEnd())}}),setTimeout(()=>{I()})},[_,x,l,N,I,R,u]),j=k.useCallback(q=>{q.key==="Enter"?(q.preventDefault(),F()):q.key==="Escape"&&q.preventDefault()},[F]),U=q=>{p&&m(!1),a(q)},V=q=>{if(p&&m(!1),S(q),l){const W=ah(l);W!=="web"&&W!==q&&a(_a(l));const J=_a(l),te=qA(J,q);a(_a(te))}},ne=()=>{setTimeout(()=>{bT(s.current),C("edit"),So(!0,document.documentElement),r.current=!0},100)},ae=()=>{const q=pl(l)||"";g(!1),i$(q).finally(()=>{setTimeout(()=>{g(!0)},300)})},re=()=>{const q=bT(s.current)||0;setTimeout(()=>{_.dispatchCommand(vo,null),I(),setTimeout(()=>{s$(q)})})},ee=x==="edit",se=pl(qA(l,N));return{inputRef:e,isOpen:y,position:v,linkUrl:l,textUrl:u,setTextUrl:d,error:p,copied:f,isLinkEditMode:x,isShowEditTextLink:ee,safeLinkUrl:se,linkType:N,reset:I,onUrlInputChange:U,onLinkTypeChange:V,onUrlInputKeyDown:j,onSubmit:F,onEditClick:ne,onCopyClick:ae,onRemoveClick:re}}function l$({size:n="sm",w:t=150,comboboxProps:e,rightSection:r,renderOption:s,...i}){return A.jsx(O.Select,{size:n,w:t,comboboxProps:e,classNames:{input:"editor-select__input"},renderOption:s??(({option:o,checked:l})=>A.jsxs(O.Group,{justify:"space-between",wrap:"nowrap",w:"100%",children:[o.label,l&&A.jsx($.IconCheck,{size:16,color:"var(--primary-color-text, #4C6EF5)"})]})),rightSection:r??A.jsx($.IconChevronDown,{size:16,className:"editor-select__chevron"}),...i})}function a$({onClick:n}){return A.jsx(O.ActionIcon,{size:"20",variant:"filled",radius:"4",bg:"var(--mantine-primary-color-light, rgba(76, 110, 245, 0.1))",onClick:n,"data-test-id":"floating-link-save",children:A.jsx($.IconCheck,{size:16,color:"var(--primary-color-text, #4C6EF5)"})})}function BM({inputRef:n,linkUrl:t,linkType:e,error:r,onLinkTypeChange:s,onUrlInputChange:i,onUrlInputKeyDown:o,onSubmit:l}){const{t:a}=it.useTranslation();return A.jsxs(O.Group,{wrap:"nowrap",gap:0,children:[A.jsx(l$,{data:[{value:"web",label:a("editor.link.type.web")},{value:"phone",label:a("editor.link.type.phone")},{value:"email",label:a("editor.link.type.email")},{value:"sms",label:a("editor.link.type.sms")}],comboboxProps:{width:200,position:"bottom-start"},value:e,onChange:u=>{u&&s(u)},placeholder:"Web link","data-test-id":"floating-link-type-select",styles:{input:{borderTopRightRadius:0,borderBottomRightRadius:0,borderRight:0}}}),A.jsx(O.Divider,{orientation:"vertical",my:0,className:"floating-link-divider"}),A.jsx(O.Input,{ref:n,value:t,error:r,type:Qq(e),name:Xq(e),size:"sm",rightSectionPointerEvents:l?"auto":void 0,styles:{input:{borderTopLeftRadius:0,borderBottomLeftRadius:0,borderLeft:0,width:200}},placeholder:Vq(e),"data-test-id":"floating-link-url-input",onChange:u=>{i(u.target.value)},onKeyDown:o,rightSection:l?A.jsx(a$,{onClick:l}):void 0})]})}function c$({linkUrl:n,safeLinkUrl:t,linkType:e,copied:r,onEditClick:s,onCopyClick:i,onRemoveClick:o}){const{t:l}=it.useTranslation();return A.jsxs(O.Stack,{gap:0,children:[A.jsxs(O.Group,{wrap:"nowrap",pl:"sm",gap:"xs",children:[A.jsx(Ce,{name:"link"}),A.jsx(O.Tooltip,{label:n,zIndex:1e3,openDelay:500,children:A.jsx(O.Anchor,{href:t,target:e==="web"?"_blank":void 0,rel:e==="web"?"noopener noreferrer":void 0,truncate:!0,w:300,children:n})})]}),A.jsx(O.Button,{tabIndex:0,onMouseDown:a=>a.preventDefault(),onClick:s,leftSection:A.jsx(Ce,{name:"pencil"}),justify:"left",size:"sm",color:"#000",style:{border:0},variant:"default","data-test-id":"floating-link-edit",children:l("editor.link.edit")}),A.jsx(O.Button,{tabIndex:0,onMouseDown:a=>a.preventDefault(),onClick:i,leftSection:A.jsx(Ce,{size:16,name:r?"copy":"check-mark"}),justify:"left",size:"sm",color:"#000",variant:"default",style:{border:0},"data-test-id":"floating-link-copy",children:l("editor.link.copy")}),A.jsx(O.Button,{tabIndex:0,onMouseDown:a=>a.preventDefault(),onClick:o,leftSection:A.jsx(Ce,{size:16,name:"trash",color:"red"}),justify:"left",size:"sm",color:"#000",variant:"default",style:{border:0},"data-test-id":"floating-link-remove",children:l("editor.link.remove")})]})}function u$({inputRef:n,textUrl:t,linkUrl:e,linkType:r,error:s,setTextUrl:i,onLinkTypeChange:o,onUrlInputChange:l,onUrlInputKeyDown:a,onCancel:u,onSave:d}){const{t:f}=it.useTranslation();return A.jsxs(O.Box,{p:10,children:[A.jsxs(O.Stack,{gap:5,mb:10,children:[A.jsx(O.Text,{fw:500,size:"xs",children:f("editor.link.link")}),A.jsx(BM,{inputRef:n,linkUrl:e,linkType:r,error:s,onLinkTypeChange:o,onUrlInputChange:l,onUrlInputKeyDown:a})]}),A.jsxs(O.Stack,{gap:5,children:[A.jsx(O.Text,{fw:500,size:"xs",children:f("editor.link.name")}),A.jsx(O.Input,{ref:n,value:t,size:"sm",placeholder:f("editor.link.linkName"),"data-test-id":"floating-link-text-input",onChange:g=>{i(g.target.value)},onKeyDown:a})]}),A.jsxs(O.Group,{justify:"flex-end",mt:16,children:[A.jsx(O.Button,{h:30,variant:"subtle",color:"gray",onClick:u,children:f("editor.cancel")}),A.jsx(O.Button,{h:30,type:"submit",onClick:d,children:f("editor.link.save")})]})]})}function d$({showTextToolbar:n,updateLink:t}){const{inputRef:e,isOpen:r,position:s,linkUrl:i,textUrl:o,setTextUrl:l,error:a,copied:u,isLinkEditMode:d,isShowEditTextLink:f,safeLinkUrl:g,linkType:p,reset:m,onUrlInputChange:y,onLinkTypeChange:b,onUrlInputKeyDown:x,onSubmit:C,onEditClick:v,onCopyClick:E,onRemoveClick:N}=o$({showTextToolbar:n,updateLink:t}),S=$a.useClickOutside(_=>{const I=_.target;PM(I)||m()});return A.jsx(A.Fragment,{children:A.jsxs(O.Popover,{width:320,opened:r,position:"bottom",offset:10,transitionProps:ci,withArrow:d==="delete",zIndex:102,children:[A.jsx(O.Popover.Target,{children:A.jsx("div",{style:{position:"fixed",left:s.left,top:s.top+8,width:10,height:10,background:"transparent"}})}),A.jsx(O.Popover.Dropdown,{bdrs:"10px",className:`floating-link-dropdown floating-link-dropdown--${d}-mode`,"data-test-id":"floating-link-dropdown",children:A.jsx("div",{ref:S,children:{create:A.jsx(BM,{inputRef:e,linkUrl:i,linkType:p,error:a,onLinkTypeChange:b,onUrlInputChange:y,onUrlInputKeyDown:x,onSubmit:C}),edit:A.jsx(u$,{inputRef:e,textUrl:o,linkUrl:i,linkType:p,error:a,setTextUrl:l,onLinkTypeChange:b,onUrlInputChange:y,onUrlInputKeyDown:x,onCancel:m,onSave:C}),delete:A.jsx(c$,{linkUrl:i,safeLinkUrl:g,linkType:p,copied:u,onEditClick:v,onCopyClick:E,onRemoveClick:N})}[d==="delete"?"delete":f?"edit":"create"]})})]})})}function f$(n){const[t]=_e(),e=k.useRef({updateLinkEditor:()=>{}}),r=ml.debounce(()=>{t.update(()=>{e.current.updateLinkEditor()})},200);return A.jsxs(A.Fragment,{children:[A.jsx(Gq,{onChange:(...s)=>{s[1]==="paste"&&r()}}),Or.createPortal(A.jsx(d$,{showTextToolbar:n,updateLink:e}),document.body)]})}function h$({showTextToolbar:n}){return f$(n)}const jM=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?k.useLayoutEffect:k.useEffect;function g$({editor:n,ariaActiveDescendant:t,ariaAutoComplete:e,ariaControls:r,ariaDescribedBy:s,ariaErrorMessage:i,ariaExpanded:o,ariaInvalid:l,ariaLabel:a,ariaLabelledBy:u,ariaMultiline:d,ariaOwns:f,ariaRequired:g,autoCapitalize:p,className:m,id:y,role:b="textbox",spellCheck:x=!0,style:C,tabIndex:v,"data-testid":E,...N},S){const[_,I]=k.useState(n.isEditable()),L=k.useCallback(R=>{R&&R.ownerDocument&&R.ownerDocument.defaultView?n.setRootElement(R):n.setRootElement(null)},[n]),M=k.useMemo(()=>(function(...R){return F=>{for(const j of R)typeof j=="function"?j(F):j!=null&&(j.current=F)}})(S,L),[L,S]);return jM(()=>(I(n.isEditable()),n.registerEditableListener(R=>{I(R)})),[n]),A.jsx("div",{"aria-activedescendant":_?t:void 0,"aria-autocomplete":_?e:"none","aria-controls":_?r:void 0,"aria-describedby":s,...i!=null?{"aria-errormessage":i}:{},"aria-expanded":_&&b==="combobox"?!!o:void 0,...l!=null?{"aria-invalid":l}:{},"aria-label":a,"aria-labelledby":u,"aria-multiline":d,"aria-owns":_?f:void 0,"aria-readonly":!_||void 0,"aria-required":g,autoCapitalize:p,className:m,contentEditable:_,"data-testid":E,id:y,ref:M,role:b,spellCheck:x,style:C,tabIndex:v,...N})}const p$=k.forwardRef(g$);function wT(n){return n.getEditorState().read(aL(n.isComposing()))}const m$=k.forwardRef(A$);function A$(n,t){const{placeholder:e,...r}=n,[s]=_e();return A.jsxs(A.Fragment,{children:[A.jsx(p$,{editor:s,...r,ref:t}),e!=null&&A.jsx(y$,{editor:s,content:e})]})}function y$({content:n,editor:t}){const e=(function(o){const[l,a]=k.useState(()=>wT(o));return jM(()=>{function u(){const d=wT(o);a(d)}return u(),Xe(o.registerUpdateListener(()=>{u()}),o.registerEditableListener(()=>{u()}))},[o]),l})(t),[r,s]=k.useState(t.isEditable());if(k.useLayoutEffect(()=>(s(t.isEditable()),t.registerEditableListener(o=>{s(o)})),[t]),!e)return null;let i=null;return typeof n=="function"?i=n(r):n!==null&&(i=n),i===null?null:A.jsx("div",{"aria-hidden":!0,children:i})}function Kb({className:n}){return A.jsx(m$,{contentEditable:!1,className:n||"ContentEditable__root"})}const b$="_listContainer_1d88b_1",w$="_list_1d88b_1",C$="_text_1d88b_28",$A={listContainer:b$,list:w$,text:C$},x$=({editor:n})=>{var u;const[t,e]=k.useState(!1),{t:r,i18n:s}=it.useTranslation(),{excludeNodes:i}=k.useContext(kt),o=d=>{const f=document.querySelector(".editor-container");if(d){f.classList.add("empty-editor");return}f.classList.remove("empty-editor")};k.useEffect(()=>{n.update(()=>{ob()&&(e(!0),o(!0))}),Xe(n.registerCommand(Dg,()=>{const d=!!ob();return e(d),o(d),!1},Te),n.registerCommand(Wo,()=>(e(!1),o(!1),!1),Te))},[]);const l=(d,f)=>{d==null||d.update(()=>{d.focus();const p=xe().getFirstChild();p&&f&&(f(p),e(!1))})},a=k.useMemo(()=>[{title:r("editor.emptyPageOptions.heading"),icon:A.jsx($.IconH1,{stroke:2,size:18}),onSelect:()=>l(n,d=>{d.replace(Ws("h1"))})},{title:r("editor.emptyPageOptions.grid"),icon:A.jsx($.IconColumns2,{stroke:2,size:18}),onSelect:()=>{l(n,()=>{n==null||n.dispatchCommand(Qw,Sw)})}},{title:r("editor.emptyPageOptions.list"),icon:A.jsx($.IconListNumbers,{stroke:2,size:18}),onSelect:()=>{l(n,()=>{n==null||n.dispatchCommand(fp,void 0)})}},{title:r("editor.emptyPageOptions.code"),icon:A.jsx($.IconCode,{stroke:2,size:18}),onSelect:()=>{l(n,()=>{n==null||n.dispatchCommand(q2,void 0)})}},{title:r("editor.menu.media.excalidraw.hint.description"),icon:A.jsx($.IconPalette,{stroke:2,size:18}),onSelect:()=>{Promise.resolve().then(()=>require("./layers.CQR0Nl7I.js")).then(({INSERT_EXCALIDRAW_COMMAND:d})=>{l(n,()=>{n.dispatchCommand(d,void 0)})})}},i.template?{title:r("editor.emptyPageOptions.template"),icon:A.jsx($.IconTemplate,{stroke:2,size:18}),onSelect:()=>{l(n,()=>{n==null||n.dispatchCommand(BL,void 0)})}}:null,{title:r("editor.emptyPageOptions.callout"),icon:A.jsx($.IconBaseline,{stroke:2,size:18}),onSelect:()=>{l(n,()=>{setTimeout(()=>{n==null||n.dispatchCommand(ww,"success")})})}},{title:r("editor.emptyPageOptions.table"),icon:A.jsx($.IconTable,{stroke:2,size:18}),onSelect:()=>{l(n,()=>{setTimeout(()=>{n==null||n.dispatchCommand(hp,{columns:"4",includeHeaders:!1,rows:"3"})})})}},{title:r("editor.emptyPageOptions.integrations"),icon:A.jsx($.IconApps,{stroke:2,size:18}),onSelect:()=>{}}],[s.language]);return t?A.jsx(O.Portal,{target:((u=n==null?void 0:n._rootElement)==null?void 0:u.parentElement)||document.body,children:A.jsx("ul",{className:`${$A.listContainer} empty-page-options`,children:a.map((d,f)=>d?A.jsxs(O.Menu,{disabled:f!==a.length-1,position:"bottom-start",shadow:"md",styles:{dropdown:{overflow:"auto",zIndex:1e3}},middlewares:W2,width:200,transitionProps:ci,children:[A.jsx(O.Menu.Target,{children:A.jsxs("li",{className:$A.list,onClick:d.onSelect,children:[d.icon," ",A.jsx("span",{className:$A.text,children:d.title})]})}),A.jsx(O.Menu.Dropdown,{children:Rc.map(g=>A.jsx(O.Menu.Item,{className:"item "+K2(g.key==="1"),leftSection:g.icon,style:{borderRadius:"var(--mantine-radius-sm)",paddingBlock:"calc(var(--mantine-spacing-xs) / 1.5)"},onClick:()=>{l(n,()=>{setTimeout(()=>{n==null||n.dispatchCommand(Vw,""),e(!1)})})},children:g.name},g.name))})]},d.title):null)})}):null};function v$({editor:n,outputFormat:t,debounceMs:e=500,onChange:r,onBlur:s,isCommentVariant:i,checkIsEmpty:o,onChangeCommand:l}){const a=$a.useDebouncedCallback(f=>{l&&f.dispatchCommand(l,!0)},100),u=$a.useDebouncedCallback((f,g)=>{if(t==="html")f.read(()=>{let m=Kh(g,null);const y=xe();y&&(o()&&(m=""),y.getChildrenSize()===0&&(g.update(()=>{y.append(we())}),m=""));const b=xe().getTextContent();r(m,b)});else{const p=f.toJSON();r(p)}},e),d=(f,g)=>{if(s)if(t==="html")g.update(()=>{const p=Kh(g,null);s(p)});else{const p=f.toJSON();s(p)}};return k.useEffect(()=>n.registerCommand(Uo,g=>{if(!i)return!1;try{const p=g.clipboardData||window.clipboardData;if(!p||!p.getData("application/x-lexical-editor"))return!1;const y=p.getData("text/html");if(!y)return!1;const x=new DOMParser().parseFromString(y,"text/html"),C=bd(n,x);return vc(C),!0}catch{return!1}},Te),[n,i]),{triggerOnChangeCommand:a,onChangeValue:u,onBlurValue:d}}const S$={toolbar:{comment:!1,default:!0,editor:!1},componentPicker:{comment:!1,default:!0,editor:!0},floatingTextToolbar:{comment:!0,default:!0,editor:!0},floatingLinkEditor:{comment:!0,default:!0,editor:!0},actionMenu:{comment:!1,default:!0,editor:!0},mediaActions:{comment:!1,default:!0,editor:!0},richText:{comment:!0,default:!0,editor:!0},history:{comment:!1,default:!0,editor:!0},treeView:{comment:!1,default:!0,editor:!0},actionsInspector:{comment:!1,default:!0,editor:!0},onChange:{comment:!0,default:!0,editor:!0},blur:{comment:!0,default:!0,editor:!0},focus:{comment:!0,default:!0,editor:!0},autoFocus:{comment:!0,default:!0,editor:!0},placeholder:{comment:!0,default:!0,editor:!0},clearEditor:{comment:!0,default:!1,editor:!1},maxLength:{comment:!1,default:!0,editor:!0},emoji:{comment:!0,default:!0,editor:!0},hashtag:{comment:!1,default:!0,editor:!0},markdownShortcut:{comment:!1,default:!0,editor:!0},extendCode:{comment:!1,default:!0,editor:!0},codeHighlight:{comment:!1,default:!0,editor:!0},list:{comment:!0,default:!0,editor:!0},checkList:{comment:!0,default:!0,editor:!0},listMaxIndent:{comment:!0,default:!0,editor:!0},link:{comment:!0,default:!0,editor:!0},clickableLink:{comment:!0,default:!0,editor:!0},horizontalRule:{comment:!1,default:!0,editor:!0},tabFocus:{comment:!0,default:!0,editor:!0},tabIndentation:{comment:!0,default:!0,editor:!0},collapsible:{comment:!1,default:!0,editor:!0},callout:{comment:!1,default:!0,editor:!0},layout:{comment:!1,default:!0,editor:!0},table:{comment:!1,default:!0,editor:!0},draggableBlock:{comment:!1,default:!0,editor:!0},newParagraph:{comment:!0,default:!0,editor:!0},tableOfContents:{comment:!1,default:!0,editor:!0},embed:{comment:!1,default:!0,editor:!0},swagger:{comment:!1,default:!0,editor:!0},images:{comment:!1,default:!0,editor:!0},video:{comment:!1,default:!0,editor:!0},audio:{comment:!1,default:!0,editor:!0},file:{comment:!1,default:!0,editor:!0},excalidraw:{comment:!1,default:!0,editor:!0},childDocs:{comment:!1,default:!0,editor:!0},comment:{comment:!1,default:!0,editor:!0},form:{comment:!1,default:!0,editor:!0},select:{comment:!1,default:!0,editor:!0},shortcuts:{comment:!1,default:!0,editor:!0},smartPaste:{comment:!1,default:!0,editor:!0}},CT=k.lazy(()=>Promise.resolve().then(()=>require("./layers.CQR0Nl7I.js")));function Ue(n,t){const e=S$[n];return e?e[t]:!0}function E$(n){const{onRef:t,floatingAnchorElem:e,isSmallWidthViewport:r,maxHeight:s,showTextToolbar:i,mode:o,isLoading:l,editor:a,onBlur:u,onFocus:d,onChange:f,outputFormat:g,debounceMs:p}=n,m=o==="editor",y=o==="comment",[b,x]=k.useState(!1),{excludeNodes:C}=k.useContext(kt),{settings:{isRichText:v,showTreeView:E,isMaxLength:N}}=Rw(),{historyState:S}=Pw(),{triggerOnChangeCommand:_,onChangeValue:I,onBlurValue:L}=v$({editor:a,outputFormat:g,debounceMs:p,onChange:f,onBlur:u,isCommentVariant:y,checkIsEmpty:ob,onChangeCommand:Oi});let M={};s?M={maxHeight:s}:m&&(M={overflowY:"hidden"});const R=m?A.jsx("div",{className:"editor-scroller",style:M,children:A.jsx("div",{className:"editor",ref:t,children:A.jsx("div",{className:"content-editable-wrapper",children:A.jsx("div",{children:A.jsx(Kb,{})})})})}):A.jsx("div",{className:"editor-scroller",style:M,children:A.jsx("div",{className:"editor",ref:t,children:A.jsx(Kb,{})})});return A.jsxs(A.Fragment,{children:[Ue("toolbar",o)&&!m&&A.jsx(dT,{mode:o}),Ue("componentPicker",o)&&A.jsx(fZ,{mode:o,opened:b,setOpenedMenu:x}),Ue("history",o)&&A.jsx(GI,{externalHistoryState:S}),Ue("floatingTextToolbar",o)&&e&&!r&&(m?A.jsx(Cb,{anchorElem:e,component:A.jsx(dT,{mode:o,isFloating:!0})}):A.jsx(Cb,{anchorElem:e})),A.jsxs("div",{className:`editor-container ${v?"":"plain-text"}`,children:[Ue("placeholder",o)&&A.jsx(yZ,{}),Ue("autoFocus",o)&&A.jsx(hZ,{isLoading:l}),Ue("emoji",o)&&A.jsx(KZ,{}),Ue("hashtag",o)&&A.jsx(dH,{}),Ue("clearEditor",o)&&A.jsx(oH,{}),Ue("richText",o)&&A.jsx(i2,{contentEditable:R,ErrorBoundary:s2}),Ue("markdownShortcut",o)&&A.jsx(aJ,{}),Ue("shortcuts",o)&&A.jsx(CQ,{editor:a,setIsLinkEditMode:()=>{}}),Ue("extendCode",o)&&A.jsx(HZ,{}),Ue("codeHighlight",o)&&A.jsx(cG,{}),Ue("list",o)&&A.jsx(iJ,{}),Ue("checkList",o)&&A.jsx(lG,{}),Ue("listMaxIndent",o)&&A.jsx(rJ,{maxDepth:7}),Ue("link",o)&&A.jsx($2,{}),Ue("comment",o)&&A.jsx(NG,{}),CT&&Ue("excalidraw",o)&&A.jsx(k.Suspense,{children:A.jsx(CT,{})}),Ue("swagger",o)&&A.jsx(UG,{}),Ue("childDocs",o)&&A.jsx(aG,{}),Ue("newParagraph",o)&&!E&&A.jsx(uJ,{}),Ue("form",o)&&A.jsx(qZ,{}),Ue("video",o)&&!C.video&&A.jsx(V7,{}),Ue("audio",o)&&!C.audio&&A.jsx(z7,{}),Ue("file",o)&&!C.file&&A.jsx(eH,{}),Ue("embed",o)&&A.jsx(PG,{}),Ue("images",o)&&!C.photo&&A.jsx($7,{}),Ue("onChange",o)&&A.jsx(gH,{ignoreSelectionChange:!0,onChange:(F,j)=>{I(F,j),_(j)}}),Ue("maxLength",o)&&N&&A.jsx(cJ,{maxLength:30}),Ue("blur",o)&&A.jsx(sG,{onBlur:L}),Ue("focus",o)&&A.jsx(QZ,{onFocus:d}),Ue("treeView",o)&&E&&A.jsx(Uq,{}),Ue("actionsInspector",o)&&E&&A.jsx(tG,{isRichText:!0,shouldPreserveNewLinesInMarkdown:!0}),Ue("select",o)&&A.jsx(FV,{editor:a}),Ue("smartPaste",o)&&A.jsx(_X,{}),Ue("clickableLink",o)&&A.jsx(lH,{}),Ue("horizontalRule",o)&&A.jsx(fH,{}),Ue("tabFocus",o)&&A.jsx(MX,{}),Ue("tabIndentation",o)&&A.jsx(RX,{}),Ue("collapsible",o)&&A.jsx(TG,{}),Ue("callout",o)&&A.jsx(Wq,{}),Ue("layout",o)&&A.jsx(FG,{}),Ue("table",o)&&e&&(m||!r)&&A.jsx(aq,{floatingAnchorElem:e,isSmallWidthViewport:r}),Ue("draggableBlock",o)&&e&&!r&&A.jsx(OZ,{isShowAddButton:!0,anchorElem:e}),e&&A.jsxs(A.Fragment,{children:[Ue("floatingLinkEditor",o)&&A.jsx(h$,{showTextToolbar:i}),Ue("actionMenu",o)&&A.jsx(S7,{anchorElem:e}),Ue("mediaActions",o)&&A.jsx(IH,{anchorElem:e})]})]}),Ue("tableOfContents",o)&&(m?C.contents&&A.jsx(Ub,{}):(C.contents||C.contents===void 0)&&A.jsx(Ub,{})),Ue("emptyPage",o)&&m&&A.jsx(x$,{editor:a})]})}const k$=n=>{const t=G(),e=Wt(),r=e==null?void 0:e.getParent(),s=r==null?void 0:r.getParent();if(e){if(Xw())return xe().clear(),t.insertParagraph(),!0;if(s instanceof Ui||s instanceof Ro)return vG();if(r instanceof vr)return WZ()}return!1},T$=(n,t)=>{var e,r,s,i,o,l;if(n.dataTransfer){const a=Object.values(n.dataTransfer.files);if(a&&a.length)return n.preventDefault(),n.target instanceof HTMLElement&&((e=t.current)!=null&&e.insertImages)&&((r=Oe(n.target))==null||r.selectEnd(),a[0].type.includes("video")&&((s=t.current)!=null&&s.insertVideos)?t.current.insertVideos(a):a[0].type.includes("image")&&((i=t.current)!=null&&i.insertImages)?t.current.insertImages(a):a[0].type.includes("audio")&&((o=t.current)!=null&&o.insertMusics)?t.current.insertMusics(a):(l=t.current)!=null&&l.insertFiles&&(t==null||t.current.insertFiles(a))),!0}return!1},xT=()=>{const n=Wt(),t=n==null?void 0:n.getParent();return n&&rd(t)?EG():!1},vT=()=>{const n=Wt(),t=n==null?void 0:n.getParent();return n&&xl(t)?SG():!1},_$=n=>{const t=G();if(!H(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(e.getPreviousSibling()===null&&t.anchor.offset===0){const r=e.getParent();if(r){const s=we();return s.append(...r.getChildren()),r.replace(s),n.preventDefault(),!0}}return!1};function N$(n){if(!n)return null;const e=new DOMParser().parseFromString(n,"text/html").body,r=Array.from(e.children);if(r.length!==1)return null;const s=r[0];return s.tagName!=="IMG"||e.textContent&&e.textContent.trim().length>0?null:s.getAttribute("src")||""||null}const I$=(n,t,e)=>{var i,o;const r=Wt(),s=r==null?void 0:r.getParent();if(r){if(xl(s))return kG(n);if(Dc(s))(o=(i=e.current)==null?void 0:i.onDeleteCallout)==null||o.call(i,t);else{if(Hs(s))return jG(n);if(dt(s))return _$(t)}}return!1},L$=(n,t)=>{const e=t.ctrlKey||t.metaKey,r=t.shiftKey,s=t.code==="KeyZ";return e&&r&&s?(t.preventDefault(),n.dispatchCommand(Hl,void 0),!0):!1},M$=(n,t,e,r,s)=>{var l,a;if(s)return r.preventDefault(),r.key==="Enter"&&r.shiftKey&&t.insertParagraph(),!0;const i=Wt(),o=i==null?void 0:i.getParent();if(i){if(o instanceof Pr)return BG(n);if(o instanceof Ui)return xG(n);if(o instanceof sa)return lX(n);if(o instanceof xs)return lq(n);if(o instanceof Br||Pr)return iG()}return(a=(l=e.current)==null?void 0:l.decoratorEnterAction)==null||a.call(l),!1};function D$(n,t){var e,r,s,i,o,l,a,u;if("dataTransfer"in n&&((r=(e=n.dataTransfer)==null?void 0:e.files)!=null&&r.length)){const d=Array.from(n.dataTransfer.files),f=d[0];return f.type.includes("video")&&((s=t.current)!=null&&s.insertVideos)?t.current.insertVideos(d):f.type.includes("image")&&((i=t.current)!=null&&i.insertImages)?t.current.insertImages(d):f.type.includes("audio")&&((o=t.current)!=null&&o.insertMusics)?t.current.insertMusics(d):(l=t.current)!=null&&l.insertFiles&&t.current.insertFiles(d),!0}if("clipboardData"in n){const d=(u=(a=n.clipboardData)==null?void 0:a.getData("text/html"))==null?void 0:u.trim();if(N$(d))return!0}return!1}function O$(n){if(!n||n.classList.contains("video-container")||n.classList.contains("resizable-container")||n.classList.contains("editor-image"))return null;if(n.closest("ol, ul"))return n;let t=n;for(;t&&!t.classList.contains("ContentEditable__root");)t=t.parentElement;if(t!=null&&t.classList.contains("ContentEditable__root")){let e=n;for(;e&&e.parentElement!==t;)e=e.parentElement;return e}return null}function R$(n){const{mode:t,maxHeight:e,disable:r,isErrorWs:s,content:i,isLoading:o,imperativeHandleRef:l,editorRef:a,onBlur:u,onFocus:d,onChange:f,outputFormat:g,debounceMs:p}=n,[m,y]=k.useState(null),[b,x]=k.useState(!1),C=k.useRef(!1),[v,...E]=_e(),{shiftEnterInsertNewLine:N}=k.useContext(kt);sH({editor:v}),k.useEffect(()=>{v&&(v.setEditable(!r),a&&(a.current=v),s&&v.update(()=>{if(typeof i=="string"){xe().clear();const M=new DOMParser().parseFromString(i,"text/html"),R=bd(v,M);xe().select(),vc(R)}else{const I=v.parseEditorState(JSON.stringify(i));v.setEditorState(I)}}))},[s]),k.useEffect(()=>{function I(){v.dispatchCommand(rb,!0)}function L(R){const F=R.target,U=(F.tagName.toLowerCase()==="img"?F.closest("div.resizable-container__inner"):null)||O$(F);if(!U||F.classList.contains("dsd__theme__table-scrollable-wrapper"))return;(U.classList.contains("selected-block")||U.querySelector(".selected-block"))&&(R.preventDefault(),v.dispatchCommand(jL,{x:R.clientX,y:R.clientY,target:U}))}window.addEventListener("scroll",I);const M=v.getRootElement();return M==null||M.addEventListener("contextmenu",L),()=>{window.removeEventListener("scroll",I),M==null||M.removeEventListener("contextmenu",L)}},[v]);const S=I=>{I!==null&&y(I)};k.useEffect(()=>{const I=L=>{const M=navigator.platform.toUpperCase().includes("MAC"),R=M&&L.metaKey&&!L.shiftKey&&L.code==="KeyZ"||!M&&L.ctrlKey&&!L.shiftKey&&L.code==="KeyZ",F=M&&L.metaKey&&L.shiftKey&&L.code==="KeyZ"||!M&&L.ctrlKey&&L.shiftKey&&L.code==="KeyZ";R&&(L.preventDefault(),v.dispatchCommand(Ac,void 0)),F&&(L.preventDefault(),v.dispatchCommand(Hl,void 0))};return Xe(v.registerCommand(Dg,()=>(window.addEventListener("keydown",I),!1),Te),v.registerCommand(Wo,()=>(window.removeEventListener("keydown",I),!1),Te))},[v]),k.useEffect(()=>{const I=()=>{const L=Lc&&window.matchMedia("(max-width: 600px)").matches;L!==b&&x(L)};return I(),window.addEventListener("resize",I),()=>{window.removeEventListener("resize",I)}},[b]),k.useEffect(()=>Xe(v.registerCommand(_l,I=>{const L=G();return M$(v,L,l,I,N)},Te),v.registerCommand(Ys,()=>k$(),Te),v.registerCommand(yc,I=>G()?(v.blur(),Ge(null),_i(I),!0):!1,Te),v.registerCommand(Ko,I=>L$(v,I),Te),v.registerCommand(qs,()=>vT(),Te),v.registerCommand(Lg,()=>vT(),Te),v.registerCommand(To,()=>xT(),Te),v.registerCommand(Uo,I=>D$(I,l),Te),v.registerCommand(Yb,I=>T$(I,l),As),v.registerCommand(Ig,()=>xT(),Te),v.registerCommand(Pi,()=>{const I=G();I.format=0,I.setStyle("");const L=I.insertParagraph();return L&&(L.__format=0),!0},Te),v.registerCommand(Yl,I=>I$(v,I,l),As)),[v]);const _={onRef:S,floatingAnchorElem:m,isSmallWidthViewport:b,maxHeight:e,showTextToolbar:C,mode:t,isLoading:o,editor:v,onBlur:u,onFocus:d,onChange:f,outputFormat:g,debounceMs:p};return A.jsx(E$,{..._})}const FM=[{replace:Dn,with:n=>new zi(n.getTextContent()),withKlass:zi},{replace:Di,with:n=>new vr(!1),withKlass:vr},{replace:Td,with:n=>new Es(n.__ids),withKlass:Es}],P$=[_d,Br,En,dp,Ss,xs,Mc,lp,ap,ta,pL,Qi,zi,Sp,yp,xp,cp,ia,Pc,Md,Td,Kl,Ui,Ro,Dd,is,Pr,_s,uc,Bo,sa,Es,Po,vr,Fl,Od,Bc,oa,jo,...FM.map(n=>n)],B$=n=>n==="comment"?[Br,En,ap,ta,pL,Qi,zi,vr,Fl,...FM.map(t=>t)]:P$,j$=k.createContext({cellEditorConfig:null,cellEditorPlugins:null,set:()=>{}});function F$({children:n}){const[t,e]=k.useState({cellEditorConfig:null,cellEditorPlugins:null});return A.jsx(j$.Provider,{value:k.useMemo(()=>({cellEditorConfig:t.cellEditorConfig,cellEditorPlugins:t.cellEditorPlugins,set:(r,s)=>{e({cellEditorConfig:r,cellEditorPlugins:s})}}),[t.cellEditorConfig,t.cellEditorPlugins]),children:n})}function z$(n){const t=new URL(n),e=`${t.origin}${t.pathname}`,r=t.searchParams.get("token");return{baseUrl:e,token:r}}function U$(n,t,e="http://localhost"){const r=K$(n,t),{baseUrl:s,token:i}=z$(e);let o={};return i&&(o={params:{token:i}}),new tL(s,n,r,{connect:!1,...o})}function K$(n,t){let e=t.get(n);return e===void 0?(e=new ti,t.set(n,e)):e.load(),e}const W$=eb?"":"os-windows",zM=({children:n})=>A.jsx("div",{className:`doc-space-styles-provider ${W$}`,children:n}),kt=k.createContext({maxFileSize:5,disable:!1,excludeNodes:{},imagePickerSettings:{},pages:[]}),UM=({initialContent:n,onChange:t,outputFormat:e,mode:r,maxHeight:s,onBlur:i,onFocus:o,fetchUploadMedia:l,fetchPromptResult:a,fetchSmartPastePrompt:u,fetchSmartPasteStreamPrompt:d,fetchDeleteMedia:f,fetchRestoreMedia:g,pageId:p,commentController:m,maxFileSize:y,contentModalUploadImage:b,maxImageSizeError:x,debounce:C,disable:v,ws:E,excludeNodes:N={},imagePickerSettings:S={},childPages:_,language:I,shiftEnterInsertNewLine:L,editorRef:M,placeholder:R})=>{const F=r||"default",j=n||"<p></p>";let U=!!(E!=null&&E.url);const{historyState:V}=Pw(),ne=k.useRef({}),ae=k.useRef(null),[re,ee]=k.useState("initial"),[se,q]=k.useState(null),W=k.useCallback(ke=>{ke.update(()=>{if(typeof j=="string"){const Ee=new DOMParser().parseFromString(j,"text/html"),Ye=bd(ke,Ee);xe().select(),vc(Ye)}})},[]),J=k.useMemo(()=>(window.editorAppVersion=`version @layers-app/editor:${qU.version}`,F==="comment"&&document.body.setAttribute("mode","true"),{editorState:null,namespace:"layers",nodes:B$(F),onError:ke=>{throw ke},theme:t9(F)}),[]);k.useEffect(()=>{I&&Wy.changeLanguage(I)},[I]);const te=()=>typeof j=="string"?W:JSON.stringify(j),le=k.useCallback((ke,ye)=>{const Ee=U$(ke,ye,E==null?void 0:E.url);return Ee.on("status",Ye=>{Ye.status==="connecting"&&ee(Ye.status)}),setTimeout(()=>q(Ee),0),Ee},[]),ce=k.useCallback(()=>{var Ye;const ke=se.awareness,Ee=Array.from(ke.getStates().entries()).map(([ft,Ke])=>({id:String(ft),userId:ft,name:Ke.name,color:Ke.color,awarenessData:Ke.awarenessData})).filter((ft,Ke,mt)=>Ke===mt.findIndex(At=>At.name===ft.name));(Ye=E==null?void 0:E.getActiveUsers)==null||Ye.call(E,Ee)},[se]);k.useEffect(()=>{if(se!=null)return se.awareness.on("update",ce),()=>se.awareness.off("update",ce)},[se,ce]),k.useEffect(()=>{if(se!=null&&se.ws){const ke=se.ws;let ye=0;ke?(ke.addEventListener("message",Ee=>{if(typeof Ee.data!="string"){ye===1&&ee("connected"),ye++;return}const Ye=JSON.parse(Ee.data);Ye["active-users"]&&console.log("message",Ye["active-users"]),Ye.error&&(Ye.error==="Unauthorized"?(console.error("Connection unauthorized: You are not authorized to access this WebSocket."),se.disconnect()):Ye.error==="No token provided"?(console.error("No token provided: You must provide a token."),se.disconnect()):(console.error("Unknown error:",Ye.error),se.disconnect()),ee("error"))}),ke.addEventListener("close",Ee=>{console.error("WebSocket connection closed:",Ee),ee("error")})):console.error("WebSocket is not initialized yet.")}},[se==null?void 0:se.ws]),k.useEffect(()=>()=>{se instanceof tL&&(se.destroy(),se.disconnect())},[se]),U||(J.editorState=te());const de=re==="connecting"&&U,Ae=k.useMemo(()=>{const ke={...N};return l||(ke.photo=!0,ke.video=!0,ke.audio=!0,ke.file=!0),r!=="editor"&&(ke.childDocs=!0),{fetchDeleteMedia:f,fetchUploadMedia:l,fetchRestoreMedia:g,fetchPromptResult:a,fetchSmartPastePrompt:u,fetchSmartPasteStreamPrompt:d,maxFileSize:y||5,contentModalUploadImage:b,maxImageSizeError:x,shiftEnterInsertNewLine:L,commentController:m,disable:v||!1,mode:F,excludeNodes:ke,imagePickerSettings:S,imperativeHandleRef:ne,maxHeight:s,pages:(_==null?void 0:_.items)??[],childPagesLoading:(_==null?void 0:_.isLoading)??!1,placeholder:R}},[_,p,m,R]);return A.jsx(kt.Provider,{value:Ae,children:A.jsx(it.I18nextProvider,{i18n:Wy,children:A.jsx(zM,{children:A.jsxs(vY,{children:[A.jsx("div",{ref:ae}),A.jsxs("div",{className:`doc-space-editor-wrapper ${F}`,children:[A.jsx(O.LoadingOverlay,{visible:de,overlayProps:{radius:"sm",blur:2}}),A.jsx(TH,{children:A.jsx(g5,{children:A.jsxs(yU,{initialConfig:J,children:[E&&re!=="error"?A.jsx(gU,{id:E.id,providerFactory:le,username:E.user.name,cursorColor:E.user.color,awarenessData:E.user.awarenessData,shouldBootstrap:!0,cursorsContainerRef:ae,initialEditorState:te()}):A.jsx(GI,{externalHistoryState:V}),A.jsx(_H,{children:A.jsx(F$,{children:A.jsx(UV,{children:A.jsx(eW,{children:A.jsx("div",{className:"editor-shell",children:A.jsx(R$,{editorRef:M,maxHeight:s,mode:F,disable:v||!1,isErrorWs:re==="error",content:j,isLoading:de,imperativeHandleRef:ne,onBlur:i,onFocus:o,onChange:t,outputFormat:e,debounceMs:C})})})})})})]})})})]})]})})})})};function H$(n,t=!1){n.focus(),n.update(()=>{var r,s;const e=xe();t?(e.selectStart(),(r=e.getFirstChild())==null||r.selectEnd()):(e.selectEnd(),(s=e.getLastChild())==null||s.selectEnd())})}exports.$createExcalidrawNode=WL;exports.$createNewParagraph=GL;exports.$isExcalidrawNode=g7;exports.$isImageNode=fc;exports.$isInlineImageNode=M7;exports.AlignmentImage=Iw;exports.Button=pb;exports.CREATE_TEMPLATE=BL;exports.Context=kt;exports.Editor=UM;exports.Ee=yc;exports.EmptyNodeButton=Oc;exports.ExcalidrawNode=jo;exports.FloatingTextFormatToolbarPlugin=Cb;exports.Icon=Ce;exports.Ie=Gb;exports.ImagePicker=LM;exports.Je=Mg;exports.Ki=Fe;exports.L=i2;exports.LexicalContentEditable=Kb;exports.LinkPlugin=$2;exports.Lr=G;exports.Ne=_l;exports.Oe=bc;exports.ResizableContainer=xw;exports.StylesProvider=zM;exports.U=Xe;exports.UPLOAD_IMAGE_COMMAND=n2;exports.Ve=Wo;exports.Xi=jg;exports.a=Dw;exports.at=jT;exports.commonjsGlobal=ul;exports.deleteNode=Ew;exports.focusEditor=H$;exports.getCurrentElement=Wt;exports.getDefaultExportFromCjs=oK;exports.ie=Xr;exports.ji=p_;exports.l=y0;exports.mediaMap=Gr;exports.n=s2;exports.o=_e;exports.parseContainerSize=ug;exports.r=b0;exports.re=be;exports.se=Hi;exports.t=tN;exports.toggleLockScroll=So;exports.u=sp;exports.useCancelUpload=ip;exports.useModal=_p;exports.useSettings=Rw;exports.useSharedHistoryContext=Pw;exports.we=Yl;exports.wo=Ge;exports.xo=me;exports.xr=Gt;exports.zi=Te;