@mx-space/cli 0.14.2 → 0.15.1

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 (617) hide show
  1. package/README.md +36 -12
  2. package/dist/{Lexical.dev-CtGmYDoh.mjs → Lexical.dev-BSvx45_E.mjs} +350 -402
  3. package/dist/{Lexical.node-8sRFmq2X.mjs → Lexical.node-kAh5GM2n.mjs} +2 -2
  4. package/dist/{Lexical.prod-D-VfeKDz.mjs → Lexical.prod-Bqwgb3ez.mjs} +1757 -1785
  5. package/dist/{LexicalClipboard.dev-CzQ15z6E.mjs → LexicalClipboard.dev-BWU3KXIa.mjs} +19 -15
  6. package/dist/{LexicalClipboard.node-D4gMGws6.mjs → LexicalClipboard.node-BygAdNdF.mjs} +2 -2
  7. package/dist/{LexicalClipboard.prod-CltkQpzS.mjs → LexicalClipboard.prod-BtMuKNyT.mjs} +11 -11
  8. package/dist/{LexicalCodeCore.dev-DkYBZRGB.mjs → LexicalCodeCore.dev-CD2xgvDs.mjs} +95 -89
  9. package/dist/{LexicalCodeCore.prod-COc3_QL8.mjs → LexicalCodeCore.prod-Bl6FFMc7.mjs} +146 -158
  10. package/dist/{LexicalDragon.dev-Dv5_WUae.mjs → LexicalDragon.dev-BwdYhm4K.mjs} +3 -3
  11. package/dist/{LexicalDragon.node-DgjrmWkd.mjs → LexicalDragon.node-CpJhkCVV.mjs} +2 -2
  12. package/dist/{LexicalDragon.prod-DnpbDe-_.mjs → LexicalDragon.prod-CvXmWwo1.mjs} +3 -3
  13. package/dist/{LexicalExtension.dev-JMH_6-OZ.mjs → LexicalExtension.dev-LcRLXI5Z.mjs} +33 -30
  14. package/dist/{LexicalExtension.node-BUozzx4t.mjs → LexicalExtension.node-BwJt2LXV.mjs} +2 -2
  15. package/dist/{LexicalExtension.prod-UiyDgmou.mjs → LexicalExtension.prod-lg8_33-H.mjs} +87 -93
  16. package/dist/{LexicalHeadless.dev-BfLGciiX.mjs → LexicalHeadless.dev-BeUbKBes.mjs} +2 -2
  17. package/dist/{LexicalHeadless.prod-CWF7edmQ.mjs → LexicalHeadless.prod-4gbIA8HM.mjs} +2 -2
  18. package/dist/{LexicalHtml.dev-D5EF5PGW.mjs → LexicalHtml.dev-BLdZWTCJ.mjs} +22 -16
  19. package/dist/{LexicalHtml.node-BYbzHNVe.mjs → LexicalHtml.node-BeuJMvvt.mjs} +2 -2
  20. package/dist/{LexicalHtml.prod-D_FfkvVD.mjs → LexicalHtml.prod-CHUyCocN.mjs} +6 -6
  21. package/dist/{LexicalLink.dev-D3Pgh6ik.mjs → LexicalLink.dev-DgsFRqw0.mjs} +41 -58
  22. package/dist/{LexicalLink.prod-XZoAYVYD.mjs → LexicalLink.prod-CkXkeKY2.mjs} +115 -138
  23. package/dist/{LexicalList.dev-B5d3ObhB.mjs → LexicalList.dev-OOms3kQi.mjs} +15 -47
  24. package/dist/{LexicalList.prod-OQDpVAEb.mjs → LexicalList.prod-DzMBeqHn.mjs} +208 -224
  25. package/dist/{LexicalMarkdown.dev-BkM8G3DG.mjs → LexicalMarkdown.dev-DJLKbZtD.mjs} +42 -30
  26. package/dist/{LexicalMarkdown.prod-DcVXCex6.mjs → LexicalMarkdown.prod-Cp21kDCU.mjs} +12 -8
  27. package/dist/{LexicalRichText.dev-DppD7IrA.mjs → LexicalRichText.dev-0rkAGjUf.mjs} +84 -86
  28. package/dist/{LexicalRichText.node-CPSn7dkg.mjs → LexicalRichText.node-Cd-BySPE.mjs} +8 -8
  29. package/dist/{LexicalRichText.prod-h7JPxFNp.mjs → LexicalRichText.prod-DTQiEr8C.mjs} +96 -100
  30. package/dist/{LexicalSelection.dev-CD0SLbxP.mjs → LexicalSelection.dev-Bi0VlUEv.mjs} +29 -25
  31. package/dist/{LexicalSelection.node-CGlJgUlZ.mjs → LexicalSelection.node-t2U46EF_.mjs} +2 -2
  32. package/dist/{LexicalSelection.prod-DbVZN5AV.mjs → LexicalSelection.prod-CrFG111g.mjs} +3 -3
  33. package/dist/{LexicalTable.dev-D0HU14UV.mjs → LexicalTable.dev-D-sFhO-o.mjs} +288 -154
  34. package/dist/{LexicalTable.prod-BcPNSrxP.mjs → LexicalTable.prod-DwYaa_dN.mjs} +689 -632
  35. package/dist/{LexicalUtils.dev-iKy_TrRT.mjs → LexicalUtils.dev-Q2q3-UDM.mjs} +9 -6
  36. package/dist/{LexicalUtils.node-CIgMS8cG.mjs → LexicalUtils.node-Dl7OvqJV.mjs} +2 -2
  37. package/dist/{LexicalUtils.prod-DIAsKJzu.mjs → LexicalUtils.prod-CBnq_iEV.mjs} +8 -7
  38. package/dist/bin/mxs.mjs +1 -1
  39. package/dist/esm-CNZ7kdTg.mjs +2 -0
  40. package/dist/{esm-CwXl1N0a.mjs → esm-ZXjJmLEC.mjs} +422 -391
  41. package/dist/index.d.mts +16 -16
  42. package/dist/index.mjs +1 -1
  43. package/dist/{mxs-iW9DgqSZ.mjs → mxs-DC9zR3f2.mjs} +2203 -2782
  44. package/dist/{rolldown-runtime-JspESFgx.mjs → rolldown-runtime-B4iAMlE-.mjs} +1 -1
  45. package/dist/src/bin/mxs.d.ts +2 -0
  46. package/dist/src/bin/mxs.js +310 -0
  47. package/dist/src/cli/ai/_poll.d.ts +12 -0
  48. package/dist/src/cli/ai/_poll.js +38 -0
  49. package/dist/src/cli/ai/_resolve.d.ts +8 -0
  50. package/dist/src/cli/ai/_resolve.js +27 -0
  51. package/dist/src/cli/ai/index.d.ts +127 -0
  52. package/dist/src/cli/ai/index.js +46 -0
  53. package/dist/src/cli/ai/insights/by-article.d.ts +10 -0
  54. package/dist/src/cli/ai/insights/by-article.js +21 -0
  55. package/dist/src/cli/ai/insights/delete.d.ts +7 -0
  56. package/dist/src/cli/ai/insights/delete.js +18 -0
  57. package/dist/src/cli/ai/insights/edit.d.ts +8 -0
  58. package/dist/src/cli/ai/insights/edit.js +54 -0
  59. package/dist/src/cli/ai/insights/get.d.ts +6 -0
  60. package/dist/src/cli/ai/insights/get.js +11 -0
  61. package/dist/src/cli/ai/insights/index.d.ts +30 -0
  62. package/dist/src/cli/ai/insights/index.js +17 -0
  63. package/dist/src/cli/ai/insights/list.d.ts +10 -0
  64. package/dist/src/cli/ai/insights/list.js +20 -0
  65. package/dist/src/cli/ai/insights/refresh.d.ts +10 -0
  66. package/dist/src/cli/ai/insights/refresh.js +25 -0
  67. package/dist/src/cli/ai/insights/translate.d.ts +10 -0
  68. package/dist/src/cli/ai/insights/translate.js +25 -0
  69. package/dist/src/cli/ai/overview/by-article.d.ts +7 -0
  70. package/dist/src/cli/ai/overview/by-article.js +15 -0
  71. package/dist/src/cli/ai/overview/index.d.ts +11 -0
  72. package/dist/src/cli/ai/overview/index.js +4 -0
  73. package/dist/src/cli/ai/overview/list.d.ts +10 -0
  74. package/dist/src/cli/ai/overview/list.js +20 -0
  75. package/dist/src/cli/ai/summary/by-article.d.ts +10 -0
  76. package/dist/src/cli/ai/summary/by-article.js +21 -0
  77. package/dist/src/cli/ai/summary/delete.d.ts +7 -0
  78. package/dist/src/cli/ai/summary/delete.js +18 -0
  79. package/dist/src/cli/ai/summary/edit.d.ts +8 -0
  80. package/dist/src/cli/ai/summary/edit.js +54 -0
  81. package/dist/src/cli/ai/summary/get.d.ts +6 -0
  82. package/dist/src/cli/ai/summary/get.js +11 -0
  83. package/dist/src/cli/ai/summary/index.d.ts +30 -0
  84. package/dist/src/cli/ai/summary/index.js +9 -0
  85. package/dist/src/cli/ai/summary/list.d.ts +10 -0
  86. package/dist/src/cli/ai/summary/list.js +20 -0
  87. package/dist/src/cli/ai/summary/regen.d.ts +10 -0
  88. package/dist/src/cli/ai/summary/regen.js +25 -0
  89. package/dist/src/cli/ai/summary/translate.d.ts +10 -0
  90. package/dist/src/cli/ai/summary/translate.js +25 -0
  91. package/dist/src/cli/ai/translate/by-article.d.ts +9 -0
  92. package/dist/src/cli/ai/translate/by-article.js +19 -0
  93. package/dist/src/cli/ai/translate/delete.d.ts +7 -0
  94. package/dist/src/cli/ai/translate/delete.js +18 -0
  95. package/dist/src/cli/ai/translate/edit.d.ts +8 -0
  96. package/dist/src/cli/ai/translate/edit.js +97 -0
  97. package/dist/src/cli/ai/translate/entries/delete.d.ts +7 -0
  98. package/dist/src/cli/ai/translate/entries/delete.js +18 -0
  99. package/dist/src/cli/ai/translate/entries/edit.d.ts +8 -0
  100. package/dist/src/cli/ai/translate/entries/edit.js +73 -0
  101. package/dist/src/cli/ai/translate/entries/generate.d.ts +7 -0
  102. package/dist/src/cli/ai/translate/entries/generate.js +15 -0
  103. package/dist/src/cli/ai/translate/entries/index.d.ts +17 -0
  104. package/dist/src/cli/ai/translate/entries/index.js +6 -0
  105. package/dist/src/cli/ai/translate/entries/list.d.ts +10 -0
  106. package/dist/src/cli/ai/translate/entries/list.js +20 -0
  107. package/dist/src/cli/ai/translate/get.d.ts +6 -0
  108. package/dist/src/cli/ai/translate/get.js +11 -0
  109. package/dist/src/cli/ai/translate/index.d.ts +40 -0
  110. package/dist/src/cli/ai/translate/index.js +19 -0
  111. package/dist/src/cli/ai/translate/languages.d.ts +7 -0
  112. package/dist/src/cli/ai/translate/languages.js +15 -0
  113. package/dist/src/cli/ai/translate/list.d.ts +9 -0
  114. package/dist/src/cli/ai/translate/list.js +19 -0
  115. package/dist/src/cli/ai/translate/run.d.ts +10 -0
  116. package/dist/src/cli/ai/translate/run.js +31 -0
  117. package/dist/src/cli/ai/tts/by-article.d.ts +7 -0
  118. package/dist/src/cli/ai/tts/by-article.js +15 -0
  119. package/dist/src/cli/ai/tts/delete.d.ts +7 -0
  120. package/dist/src/cli/ai/tts/delete.js +18 -0
  121. package/dist/src/cli/ai/tts/index.d.ts +22 -0
  122. package/dist/src/cli/ai/tts/index.js +7 -0
  123. package/dist/src/cli/ai/tts/list.d.ts +10 -0
  124. package/dist/src/cli/ai/tts/list.js +20 -0
  125. package/dist/src/cli/ai/tts/run.d.ts +10 -0
  126. package/dist/src/cli/ai/tts/run.js +25 -0
  127. package/dist/src/cli/ai/tts/voices.d.ts +7 -0
  128. package/dist/src/cli/ai/tts/voices.js +12 -0
  129. package/dist/src/cli/ai/views.d.ts +3 -0
  130. package/dist/src/cli/ai/views.js +45 -0
  131. package/dist/src/cli/auth/index.d.ts +6 -0
  132. package/dist/src/cli/auth/index.js +22 -0
  133. package/dist/src/cli/auth/login.d.ts +11 -0
  134. package/dist/src/cli/auth/login.js +168 -0
  135. package/dist/src/cli/auth/logout.d.ts +6 -0
  136. package/dist/src/cli/auth/logout.js +21 -0
  137. package/dist/src/cli/auth/status.d.ts +4 -0
  138. package/dist/src/cli/auth/status.js +31 -0
  139. package/dist/src/cli/auth/view.d.ts +25 -0
  140. package/dist/src/cli/auth/view.js +46 -0
  141. package/dist/src/cli/auth/whoami.d.ts +7 -0
  142. package/dist/src/cli/auth/whoami.js +44 -0
  143. package/dist/src/cli/category/create.d.ts +10 -0
  144. package/dist/src/cli/category/create.js +24 -0
  145. package/dist/src/cli/category/delete.d.ts +8 -0
  146. package/dist/src/cli/category/delete.js +21 -0
  147. package/dist/src/cli/category/get.d.ts +6 -0
  148. package/dist/src/cli/category/get.js +11 -0
  149. package/dist/src/cli/category/index.d.ts +20 -0
  150. package/dist/src/cli/category/index.js +41 -0
  151. package/dist/src/cli/category/list.d.ts +4 -0
  152. package/dist/src/cli/category/list.js +10 -0
  153. package/dist/src/cli/category/update.d.ts +12 -0
  154. package/dist/src/cli/category/update.js +34 -0
  155. package/dist/src/cli/comment/_flags.d.ts +28 -0
  156. package/dist/src/cli/comment/_flags.js +48 -0
  157. package/dist/src/cli/comment/approve.d.ts +9 -0
  158. package/dist/src/cli/comment/approve.js +23 -0
  159. package/dist/src/cli/comment/delete.d.ts +9 -0
  160. package/dist/src/cli/comment/delete.js +24 -0
  161. package/dist/src/cli/comment/get.d.ts +6 -0
  162. package/dist/src/cli/comment/get.js +12 -0
  163. package/dist/src/cli/comment/index.d.ts +34 -0
  164. package/dist/src/cli/comment/index.js +53 -0
  165. package/dist/src/cli/comment/list.d.ts +9 -0
  166. package/dist/src/cli/comment/list.js +20 -0
  167. package/dist/src/cli/comment/reject.d.ts +9 -0
  168. package/dist/src/cli/comment/reject.js +23 -0
  169. package/dist/src/cli/comment/reply.d.ts +9 -0
  170. package/dist/src/cli/comment/reply.js +31 -0
  171. package/dist/src/cli/comment/unread.d.ts +7 -0
  172. package/dist/src/cli/comment/unread.js +21 -0
  173. package/dist/src/cli/comment/view.d.ts +3 -0
  174. package/dist/src/cli/comment/view.js +197 -0
  175. package/dist/src/cli/config/edit.d.ts +5 -0
  176. package/dist/src/cli/config/edit.js +36 -0
  177. package/dist/src/cli/config/get.d.ts +6 -0
  178. package/dist/src/cli/config/get.js +11 -0
  179. package/dist/src/cli/config/index.d.ts +10 -0
  180. package/dist/src/cli/config/index.js +22 -0
  181. package/dist/src/cli/config/list.d.ts +4 -0
  182. package/dist/src/cli/config/list.js +10 -0
  183. package/dist/src/cli/config/set.d.ts +9 -0
  184. package/dist/src/cli/config/set.js +48 -0
  185. package/dist/src/cli/draft/_shared.d.ts +27 -0
  186. package/dist/src/cli/draft/_shared.js +85 -0
  187. package/dist/src/cli/draft/create.d.ts +21 -0
  188. package/dist/src/cli/draft/create.js +34 -0
  189. package/dist/src/cli/draft/delete.d.ts +7 -0
  190. package/dist/src/cli/draft/delete.js +20 -0
  191. package/dist/src/cli/draft/get.d.ts +6 -0
  192. package/dist/src/cli/draft/get.js +11 -0
  193. package/dist/src/cli/draft/index.d.ts +54 -0
  194. package/dist/src/cli/draft/index.js +42 -0
  195. package/dist/src/cli/draft/list.d.ts +11 -0
  196. package/dist/src/cli/draft/list.js +23 -0
  197. package/dist/src/cli/draft/publish.d.ts +8 -0
  198. package/dist/src/cli/draft/publish.js +64 -0
  199. package/dist/src/cli/draft/update.d.ts +22 -0
  200. package/dist/src/cli/draft/update.js +29 -0
  201. package/dist/src/cli/file/_shared.d.ts +6 -0
  202. package/dist/src/cli/file/_shared.js +5 -0
  203. package/dist/src/cli/file/delete.d.ts +8 -0
  204. package/dist/src/cli/file/delete.js +21 -0
  205. package/dist/src/cli/file/index.d.ts +19 -0
  206. package/dist/src/cli/file/index.js +33 -0
  207. package/dist/src/cli/file/list.d.ts +6 -0
  208. package/dist/src/cli/file/list.js +11 -0
  209. package/dist/src/cli/file/rename.d.ts +8 -0
  210. package/dist/src/cli/file/rename.js +16 -0
  211. package/dist/src/cli/file/upload.d.ts +9 -0
  212. package/dist/src/cli/file/upload.js +32 -0
  213. package/dist/src/cli/help/index.d.ts +62 -0
  214. package/dist/src/cli/help/index.js +276 -0
  215. package/dist/src/cli/help/registry.d.ts +28 -0
  216. package/dist/src/cli/help/registry.js +29 -0
  217. package/dist/src/cli/note/_flags.d.ts +66 -0
  218. package/dist/src/cli/note/_flags.js +73 -0
  219. package/dist/src/cli/note/create.d.ts +23 -0
  220. package/dist/src/cli/note/create.js +25 -0
  221. package/dist/src/cli/note/delete.d.ts +8 -0
  222. package/dist/src/cli/note/delete.js +21 -0
  223. package/dist/src/cli/note/edit.d.ts +28 -0
  224. package/dist/src/cli/note/edit.js +114 -0
  225. package/dist/src/cli/note/get.d.ts +6 -0
  226. package/dist/src/cli/note/get.js +29 -0
  227. package/dist/src/cli/note/index.d.ts +77 -0
  228. package/dist/src/cli/note/index.js +63 -0
  229. package/dist/src/cli/note/list.d.ts +10 -0
  230. package/dist/src/cli/note/list.js +22 -0
  231. package/dist/src/cli/note/publish.d.ts +7 -0
  232. package/dist/src/cli/note/publish.js +17 -0
  233. package/dist/src/cli/note/unpublish.d.ts +7 -0
  234. package/dist/src/cli/note/unpublish.js +17 -0
  235. package/dist/src/cli/note/update.d.ts +25 -0
  236. package/dist/src/cli/note/update.js +36 -0
  237. package/dist/src/cli/note/view.d.ts +3 -0
  238. package/dist/src/cli/note/view.js +162 -0
  239. package/dist/src/cli/page/create.d.ts +41 -0
  240. package/dist/src/cli/page/create.js +56 -0
  241. package/dist/src/cli/page/delete.d.ts +7 -0
  242. package/dist/src/cli/page/delete.js +37 -0
  243. package/dist/src/cli/page/edit.d.ts +19 -0
  244. package/dist/src/cli/page/edit.js +117 -0
  245. package/dist/src/cli/page/get.d.ts +6 -0
  246. package/dist/src/cli/page/get.js +16 -0
  247. package/dist/src/cli/page/index.d.ts +44 -0
  248. package/dist/src/cli/page/index.js +38 -0
  249. package/dist/src/cli/page/list.d.ts +4 -0
  250. package/dist/src/cli/page/list.js +10 -0
  251. package/dist/src/cli/page/update.d.ts +16 -0
  252. package/dist/src/cli/page/update.js +48 -0
  253. package/dist/src/cli/page/view.d.ts +2 -0
  254. package/dist/src/cli/page/view.js +79 -0
  255. package/dist/src/cli/post/_flags.d.ts +66 -0
  256. package/dist/src/cli/post/_flags.js +96 -0
  257. package/dist/src/cli/post/apply.d.ts +7 -0
  258. package/dist/src/cli/post/apply.js +70 -0
  259. package/dist/src/cli/post/create.d.ts +21 -0
  260. package/dist/src/cli/post/create.js +24 -0
  261. package/dist/src/cli/post/delete.d.ts +8 -0
  262. package/dist/src/cli/post/delete.js +21 -0
  263. package/dist/src/cli/post/edit.d.ts +26 -0
  264. package/dist/src/cli/post/edit.js +115 -0
  265. package/dist/src/cli/post/get.d.ts +7 -0
  266. package/dist/src/cli/post/get.js +15 -0
  267. package/dist/src/cli/post/index.d.ts +91 -0
  268. package/dist/src/cli/post/index.js +73 -0
  269. package/dist/src/cli/post/list.d.ts +10 -0
  270. package/dist/src/cli/post/list.js +23 -0
  271. package/dist/src/cli/post/publish.d.ts +7 -0
  272. package/dist/src/cli/post/publish.js +17 -0
  273. package/dist/src/cli/post/stage.d.ts +23 -0
  274. package/dist/src/cli/post/stage.js +55 -0
  275. package/dist/src/cli/post/unpublish.d.ts +7 -0
  276. package/dist/src/cli/post/unpublish.js +17 -0
  277. package/dist/src/cli/post/update.d.ts +23 -0
  278. package/dist/src/cli/post/update.js +38 -0
  279. package/dist/src/cli/post/view.d.ts +3 -0
  280. package/dist/src/cli/post/view.js +150 -0
  281. package/dist/src/cli/preview/index.d.ts +13 -0
  282. package/dist/src/cli/preview/index.js +226 -0
  283. package/dist/src/cli/profile/index.d.ts +14 -0
  284. package/dist/src/cli/profile/index.js +36 -0
  285. package/dist/src/cli/profile/ls.d.ts +5 -0
  286. package/dist/src/cli/profile/ls.js +26 -0
  287. package/dist/src/cli/profile/mark.d.ts +9 -0
  288. package/dist/src/cli/profile/mark.js +23 -0
  289. package/dist/src/cli/profile/rm.d.ts +12 -0
  290. package/dist/src/cli/profile/rm.js +50 -0
  291. package/dist/src/cli/profile/show.d.ts +9 -0
  292. package/dist/src/cli/profile/show.js +40 -0
  293. package/dist/src/cli/profile/use.d.ts +6 -0
  294. package/dist/src/cli/profile/use.js +11 -0
  295. package/dist/src/cli/profile/view.d.ts +8 -0
  296. package/dist/src/cli/profile/view.js +21 -0
  297. package/dist/src/cli/project/_flags.d.ts +56 -0
  298. package/dist/src/cli/project/_flags.js +130 -0
  299. package/dist/src/cli/project/create.d.ts +17 -0
  300. package/dist/src/cli/project/create.js +25 -0
  301. package/dist/src/cli/project/delete.d.ts +8 -0
  302. package/dist/src/cli/project/delete.js +22 -0
  303. package/dist/src/cli/project/edit.d.ts +11 -0
  304. package/dist/src/cli/project/edit.js +61 -0
  305. package/dist/src/cli/project/get.d.ts +7 -0
  306. package/dist/src/cli/project/get.js +14 -0
  307. package/dist/src/cli/project/index.d.ts +43 -0
  308. package/dist/src/cli/project/index.js +52 -0
  309. package/dist/src/cli/project/list.d.ts +8 -0
  310. package/dist/src/cli/project/list.js +19 -0
  311. package/dist/src/cli/project/update.d.ts +18 -0
  312. package/dist/src/cli/project/update.js +24 -0
  313. package/dist/src/cli/project/view-cmd.d.ts +7 -0
  314. package/dist/src/cli/project/view-cmd.js +15 -0
  315. package/dist/src/cli/project/view.d.ts +3 -0
  316. package/dist/src/cli/project/view.js +102 -0
  317. package/dist/src/cli/render/codehighlight.d.ts +8 -0
  318. package/dist/src/cli/render/codehighlight.js +264 -0
  319. package/dist/src/cli/render/envelope.d.ts +7 -0
  320. package/dist/src/cli/render/envelope.js +23 -0
  321. package/dist/src/cli/render/frontmatter.d.ts +8 -0
  322. package/dist/src/cli/render/frontmatter.js +50 -0
  323. package/dist/src/cli/render/helpers.d.ts +2 -0
  324. package/dist/src/cli/render/helpers.js +11 -0
  325. package/dist/src/cli/render/index.d.ts +7 -0
  326. package/dist/src/cli/render/index.js +10 -0
  327. package/dist/src/cli/render/lexical/blocks.d.ts +19 -0
  328. package/dist/src/cli/render/lexical/blocks.js +208 -0
  329. package/dist/src/cli/render/lexical/code.d.ts +2 -0
  330. package/dist/src/cli/render/lexical/code.js +22 -0
  331. package/dist/src/cli/render/lexical/embeds.d.ts +6 -0
  332. package/dist/src/cli/render/lexical/embeds.js +51 -0
  333. package/dist/src/cli/render/lexical/index.d.ts +9 -0
  334. package/dist/src/cli/render/lexical/index.js +25 -0
  335. package/dist/src/cli/render/lexical/inlines.d.ts +17 -0
  336. package/dist/src/cli/render/lexical/inlines.js +76 -0
  337. package/dist/src/cli/render/lexical/parser.d.ts +10 -0
  338. package/dist/src/cli/render/lexical/parser.js +64 -0
  339. package/dist/src/cli/render/lexical/walker.d.ts +21 -0
  340. package/dist/src/cli/render/lexical/walker.js +51 -0
  341. package/dist/src/cli/render/markdown.d.ts +18 -0
  342. package/dist/src/cli/render/markdown.js +196 -0
  343. package/dist/src/cli/render/metadata-block.d.ts +14 -0
  344. package/dist/src/cli/render/metadata-block.js +50 -0
  345. package/dist/src/cli/skill/all.d.ts +4 -0
  346. package/dist/src/cli/skill/all.js +11 -0
  347. package/dist/src/cli/skill/get.d.ts +6 -0
  348. package/dist/src/cli/skill/get.js +12 -0
  349. package/dist/src/cli/skill/index.d.ts +10 -0
  350. package/dist/src/cli/skill/index.js +34 -0
  351. package/dist/src/cli/skill/list.d.ts +4 -0
  352. package/dist/src/cli/skill/list.js +11 -0
  353. package/dist/src/cli/skill/search.d.ts +6 -0
  354. package/dist/src/cli/skill/search.js +12 -0
  355. package/dist/src/cli/skill/views.d.ts +6 -0
  356. package/dist/src/cli/skill/views.js +90 -0
  357. package/dist/src/cli/snippet/_flags.d.ts +57 -0
  358. package/dist/src/cli/snippet/_flags.js +123 -0
  359. package/dist/src/cli/snippet/_resolve.d.ts +4 -0
  360. package/dist/src/cli/snippet/_resolve.js +32 -0
  361. package/dist/src/cli/snippet/_sync.d.ts +5 -0
  362. package/dist/src/cli/snippet/_sync.js +54 -0
  363. package/dist/src/cli/snippet/create.d.ts +19 -0
  364. package/dist/src/cli/snippet/create.js +35 -0
  365. package/dist/src/cli/snippet/delete.d.ts +8 -0
  366. package/dist/src/cli/snippet/delete.js +28 -0
  367. package/dist/src/cli/snippet/edit.d.ts +7 -0
  368. package/dist/src/cli/snippet/edit.js +29 -0
  369. package/dist/src/cli/snippet/get.d.ts +6 -0
  370. package/dist/src/cli/snippet/get.js +12 -0
  371. package/dist/src/cli/snippet/index.d.ts +43 -0
  372. package/dist/src/cli/snippet/index.js +58 -0
  373. package/dist/src/cli/snippet/list.d.ts +9 -0
  374. package/dist/src/cli/snippet/list.js +20 -0
  375. package/dist/src/cli/snippet/pull.d.ts +8 -0
  376. package/dist/src/cli/snippet/pull.js +33 -0
  377. package/dist/src/cli/snippet/push.d.ts +10 -0
  378. package/dist/src/cli/snippet/push.js +31 -0
  379. package/dist/src/cli/snippet/update.d.ts +8 -0
  380. package/dist/src/cli/snippet/update.js +16 -0
  381. package/dist/src/cli/topic/create.d.ts +10 -0
  382. package/dist/src/cli/topic/create.js +24 -0
  383. package/dist/src/cli/topic/delete.d.ts +7 -0
  384. package/dist/src/cli/topic/delete.js +37 -0
  385. package/dist/src/cli/topic/get.d.ts +6 -0
  386. package/dist/src/cli/topic/get.js +15 -0
  387. package/dist/src/cli/topic/index.d.ts +20 -0
  388. package/dist/src/cli/topic/index.js +32 -0
  389. package/dist/src/cli/topic/list.d.ts +4 -0
  390. package/dist/src/cli/topic/list.js +10 -0
  391. package/dist/src/cli/topic/update.d.ts +11 -0
  392. package/dist/src/cli/topic/update.js +51 -0
  393. package/dist/src/cli/ui/index.d.ts +24 -0
  394. package/dist/src/cli/ui/index.js +83 -0
  395. package/dist/src/cli/update/index.d.ts +10 -0
  396. package/dist/src/cli/update/index.js +142 -0
  397. package/dist/src/domain/admin-link.d.ts +12 -0
  398. package/dist/src/domain/admin-link.js +45 -0
  399. package/dist/src/domain/content-spec.d.ts +20 -0
  400. package/dist/src/domain/content-spec.js +78 -0
  401. package/dist/src/domain/envelope-compat.d.ts +68 -0
  402. package/dist/src/domain/envelope-compat.js +121 -0
  403. package/dist/src/domain/envelope.d.ts +34 -0
  404. package/dist/src/domain/envelope.js +355 -0
  405. package/dist/src/domain/errors.d.ts +336 -0
  406. package/dist/src/domain/errors.js +239 -0
  407. package/dist/src/domain/gate.d.ts +14 -0
  408. package/dist/src/domain/gate.js +18 -0
  409. package/dist/src/domain/payload.d.ts +64 -0
  410. package/dist/src/domain/payload.js +237 -0
  411. package/dist/src/domain/preflight-guards.d.ts +54 -0
  412. package/dist/src/domain/preflight-guards.js +130 -0
  413. package/dist/src/domain/runtime-flags.d.ts +33 -0
  414. package/dist/src/domain/runtime-flags.js +166 -0
  415. package/dist/src/domain/schema/api-envelope.d.ts +67 -0
  416. package/dist/src/domain/schema/api-envelope.js +65 -0
  417. package/dist/src/domain/schema/category.d.ts +23 -0
  418. package/dist/src/domain/schema/category.js +19 -0
  419. package/dist/src/domain/schema/config.d.ts +13 -0
  420. package/dist/src/domain/schema/config.js +18 -0
  421. package/dist/src/domain/schema/note.d.ts +76 -0
  422. package/dist/src/domain/schema/note.js +35 -0
  423. package/dist/src/domain/schema/page.d.ts +40 -0
  424. package/dist/src/domain/schema/page.js +22 -0
  425. package/dist/src/domain/schema/post.d.ts +68 -0
  426. package/dist/src/domain/schema/post.js +35 -0
  427. package/dist/src/domain/schema/profile.d.ts +14 -0
  428. package/dist/src/domain/schema/profile.js +22 -0
  429. package/dist/src/domain/schema/topic.d.ts +24 -0
  430. package/dist/src/domain/schema/topic.js +16 -0
  431. package/dist/src/domain/version.d.ts +15 -0
  432. package/dist/src/domain/version.js +43 -0
  433. package/dist/src/index.d.ts +4 -0
  434. package/dist/src/index.js +8 -0
  435. package/dist/src/layers/App.d.ts +30 -0
  436. package/dist/src/layers/App.js +39 -0
  437. package/dist/src/services/Ai/index.d.ts +13 -0
  438. package/dist/src/services/Ai/index.js +127 -0
  439. package/dist/src/services/Ai/overview.d.ts +7 -0
  440. package/dist/src/services/Ai/overview.js +11 -0
  441. package/dist/src/services/Ai/resources.d.ts +7 -0
  442. package/dist/src/services/Ai/resources.js +59 -0
  443. package/dist/src/services/Ai/shared.d.ts +2 -0
  444. package/dist/src/services/Ai/shared.js +11 -0
  445. package/dist/src/services/Ai/tasks.d.ts +8 -0
  446. package/dist/src/services/Ai/tasks.js +144 -0
  447. package/dist/src/services/Ai/types.d.ts +130 -0
  448. package/dist/src/services/Ai/types.js +1 -0
  449. package/dist/src/services/Api.d.ts +67 -0
  450. package/dist/src/services/Api.js +348 -0
  451. package/dist/src/services/Auth.d.ts +101 -0
  452. package/dist/src/services/Auth.js +402 -0
  453. package/dist/src/services/Backup.d.ts +8 -0
  454. package/dist/src/services/Backup.js +4 -0
  455. package/dist/src/services/Cache.d.ts +8 -0
  456. package/dist/src/services/Cache.js +4 -0
  457. package/dist/src/services/Comment.d.ts +48 -0
  458. package/dist/src/services/Comment.js +102 -0
  459. package/dist/src/services/Config.d.ts +95 -0
  460. package/dist/src/services/Config.js +359 -0
  461. package/dist/src/services/Editor.d.ts +28 -0
  462. package/dist/src/services/Editor.js +95 -0
  463. package/dist/src/services/Lexical.d.ts +27 -0
  464. package/dist/src/services/Lexical.js +56 -0
  465. package/dist/src/services/Migration.d.ts +31 -0
  466. package/dist/src/services/Migration.js +177 -0
  467. package/dist/src/services/Profile.d.ts +29 -0
  468. package/dist/src/services/Profile.js +115 -0
  469. package/dist/src/services/Renderer/content.d.ts +16 -0
  470. package/dist/src/services/Renderer/content.js +110 -0
  471. package/dist/src/services/Renderer/datetime.d.ts +38 -0
  472. package/dist/src/services/Renderer/datetime.js +147 -0
  473. package/dist/src/services/Renderer/errors.d.ts +3 -0
  474. package/dist/src/services/Renderer/errors.js +59 -0
  475. package/dist/src/services/Renderer/index.d.ts +13 -0
  476. package/dist/src/services/Renderer/index.js +11 -0
  477. package/dist/src/services/Renderer/lists.d.ts +1 -0
  478. package/dist/src/services/Renderer/lists.js +101 -0
  479. package/dist/src/services/Renderer/options.d.ts +10 -0
  480. package/dist/src/services/Renderer/options.js +13 -0
  481. package/dist/src/services/Renderer/primitives.d.ts +4 -0
  482. package/dist/src/services/Renderer/primitives.js +12 -0
  483. package/dist/src/services/Renderer/service.d.ts +35 -0
  484. package/dist/src/services/Renderer/service.js +123 -0
  485. package/dist/src/services/Renderer/view.d.ts +16 -0
  486. package/dist/src/services/Renderer/view.js +1 -0
  487. package/dist/src/services/Resolver.d.ts +47 -0
  488. package/dist/src/services/Resolver.js +269 -0
  489. package/dist/src/services/Skill.d.ts +29 -0
  490. package/dist/src/services/Skill.js +421 -0
  491. package/dist/src/services/UpdateNotifier.d.ts +162 -0
  492. package/dist/src/services/UpdateNotifier.js +572 -0
  493. package/dist/test/cli/ai/ai.test.d.ts +1 -0
  494. package/dist/test/cli/ai/ai.test.js +507 -0
  495. package/dist/test/cli/ai/verbs.test.d.ts +1 -0
  496. package/dist/test/cli/ai/verbs.test.js +235 -0
  497. package/dist/test/cli/auth/login.test.d.ts +1 -0
  498. package/dist/test/cli/auth/login.test.js +236 -0
  499. package/dist/test/cli/auth/logout-whoami.test.d.ts +1 -0
  500. package/dist/test/cli/auth/logout-whoami.test.js +124 -0
  501. package/dist/test/cli/auth/status.test.d.ts +1 -0
  502. package/dist/test/cli/auth/status.test.js +90 -0
  503. package/dist/test/cli/category/category.test.d.ts +1 -0
  504. package/dist/test/cli/category/category.test.js +175 -0
  505. package/dist/test/cli/comment/comment.test.d.ts +1 -0
  506. package/dist/test/cli/comment/comment.test.js +445 -0
  507. package/dist/test/cli/config/config.test.d.ts +1 -0
  508. package/dist/test/cli/config/config.test.js +281 -0
  509. package/dist/test/cli/edit-roundtrip.test.d.ts +1 -0
  510. package/dist/test/cli/edit-roundtrip.test.js +259 -0
  511. package/dist/test/cli/file/file.test.d.ts +1 -0
  512. package/dist/test/cli/file/file.test.js +185 -0
  513. package/dist/test/cli/help.test.d.ts +1 -0
  514. package/dist/test/cli/help.test.js +289 -0
  515. package/dist/test/cli/note/create.test.d.ts +1 -0
  516. package/dist/test/cli/note/create.test.js +155 -0
  517. package/dist/test/cli/note/list.test.d.ts +1 -0
  518. package/dist/test/cli/note/list.test.js +115 -0
  519. package/dist/test/cli/note/publish.test.d.ts +1 -0
  520. package/dist/test/cli/note/publish.test.js +123 -0
  521. package/dist/test/cli/page/page.test.d.ts +1 -0
  522. package/dist/test/cli/page/page.test.js +185 -0
  523. package/dist/test/cli/post/create.test.d.ts +1 -0
  524. package/dist/test/cli/post/create.test.js +172 -0
  525. package/dist/test/cli/post/list.test.d.ts +1 -0
  526. package/dist/test/cli/post/list.test.js +133 -0
  527. package/dist/test/cli/post/publish.test.d.ts +1 -0
  528. package/dist/test/cli/post/publish.test.js +139 -0
  529. package/dist/test/cli/post/stage-apply.test.d.ts +1 -0
  530. package/dist/test/cli/post/stage-apply.test.js +215 -0
  531. package/dist/test/cli/post/update.test.d.ts +1 -0
  532. package/dist/test/cli/post/update.test.js +160 -0
  533. package/dist/test/cli/post-note-crud.test.d.ts +1 -0
  534. package/dist/test/cli/post-note-crud.test.js +362 -0
  535. package/dist/test/cli/profile/ls.test.d.ts +1 -0
  536. package/dist/test/cli/profile/ls.test.js +93 -0
  537. package/dist/test/cli/profile/mark-use.test.d.ts +1 -0
  538. package/dist/test/cli/profile/mark-use.test.js +216 -0
  539. package/dist/test/cli/project-crud.test.d.ts +1 -0
  540. package/dist/test/cli/project-crud.test.js +315 -0
  541. package/dist/test/cli/render/lexical.test.d.ts +1 -0
  542. package/dist/test/cli/render/lexical.test.js +216 -0
  543. package/dist/test/cli/render/markdown.test.d.ts +1 -0
  544. package/dist/test/cli/render/markdown.test.js +39 -0
  545. package/dist/test/cli/snippet-crud.test.d.ts +1 -0
  546. package/dist/test/cli/snippet-crud.test.js +293 -0
  547. package/dist/test/cli/topic/topic.test.d.ts +1 -0
  548. package/dist/test/cli/topic/topic.test.js +181 -0
  549. package/dist/test/cli/update.test.d.ts +1 -0
  550. package/dist/test/cli/update.test.js +395 -0
  551. package/dist/test/domain/content-spec.test.d.ts +1 -0
  552. package/dist/test/domain/content-spec.test.js +126 -0
  553. package/dist/test/domain/envelope-compat.test.d.ts +1 -0
  554. package/dist/test/domain/envelope-compat.test.js +126 -0
  555. package/dist/test/domain/envelope.test.d.ts +1 -0
  556. package/dist/test/domain/envelope.test.js +149 -0
  557. package/dist/test/domain/errors.test.d.ts +1 -0
  558. package/dist/test/domain/errors.test.js +127 -0
  559. package/dist/test/domain/gate.test.d.ts +1 -0
  560. package/dist/test/domain/gate.test.js +128 -0
  561. package/dist/test/domain/payload.test.d.ts +1 -0
  562. package/dist/test/domain/payload.test.js +259 -0
  563. package/dist/test/helper/test-fs.d.ts +24 -0
  564. package/dist/test/helper/test-fs.js +161 -0
  565. package/dist/test/helper/test-http.d.ts +31 -0
  566. package/dist/test/helper/test-http.js +66 -0
  567. package/dist/test/integration/_helpers.d.ts +5 -0
  568. package/dist/test/integration/_helpers.js +24 -0
  569. package/dist/test/integration/cli-error-envelope.test.d.ts +1 -0
  570. package/dist/test/integration/cli-error-envelope.test.js +137 -0
  571. package/dist/test/integration/cli-help-render.test.d.ts +1 -0
  572. package/dist/test/integration/cli-help-render.test.js +149 -0
  573. package/dist/test/integration/cli-help.test.d.ts +1 -0
  574. package/dist/test/integration/cli-help.test.js +67 -0
  575. package/dist/test/integration/cli-post-list.test.d.ts +1 -0
  576. package/dist/test/integration/cli-post-list.test.js +140 -0
  577. package/dist/test/integration/cli-skill.test.d.ts +1 -0
  578. package/dist/test/integration/cli-skill.test.js +74 -0
  579. package/dist/test/integration/cli-version.test.d.ts +1 -0
  580. package/dist/test/integration/cli-version.test.js +37 -0
  581. package/dist/test/services/Api.test.d.ts +1 -0
  582. package/dist/test/services/Api.test.js +553 -0
  583. package/dist/test/services/Auth.test.d.ts +1 -0
  584. package/dist/test/services/Auth.test.js +650 -0
  585. package/dist/test/services/Config.test.d.ts +1 -0
  586. package/dist/test/services/Config.test.js +510 -0
  587. package/dist/test/services/Datetime.test.d.ts +1 -0
  588. package/dist/test/services/Datetime.test.js +113 -0
  589. package/dist/test/services/Editor.test.d.ts +1 -0
  590. package/dist/test/services/Editor.test.js +205 -0
  591. package/dist/test/services/Lexical.errors.test.d.ts +1 -0
  592. package/dist/test/services/Lexical.errors.test.js +60 -0
  593. package/dist/test/services/Lexical.test.d.ts +1 -0
  594. package/dist/test/services/Lexical.test.js +68 -0
  595. package/dist/test/services/Migration.test.d.ts +1 -0
  596. package/dist/test/services/Migration.test.js +376 -0
  597. package/dist/test/services/Profile.test.d.ts +1 -0
  598. package/dist/test/services/Profile.test.js +277 -0
  599. package/dist/test/services/Renderer.test.d.ts +1 -0
  600. package/dist/test/services/Renderer.test.js +538 -0
  601. package/dist/test/services/Resolver.test.d.ts +1 -0
  602. package/dist/test/services/Resolver.test.js +320 -0
  603. package/dist/test/services/Skill.test.d.ts +1 -0
  604. package/dist/test/services/Skill.test.js +261 -0
  605. package/dist/test/services/UpdateNotifier.spawn.test.d.ts +1 -0
  606. package/dist/test/services/UpdateNotifier.spawn.test.js +73 -0
  607. package/dist/test/services/UpdateNotifier.test.d.ts +1 -0
  608. package/dist/test/services/UpdateNotifier.test.js +912 -0
  609. package/dist/vendor/litexml/cli.mjs +2481 -2561
  610. package/dist/vendor/litexml/litexml-html-preview-client.css +178 -60
  611. package/dist/vendor/litexml/litexml-html-preview-client.js +9950 -8762
  612. package/dist/vendor/litexml/style.css +11 -7
  613. package/package.json +23 -21
  614. package/skills/commands-ai.md +45 -12
  615. package/skills/overview.md +1 -1
  616. package/skills/safety.md +1 -1
  617. package/dist/esm-CH7CrOvh.mjs +0 -2
@@ -1,8 +1,8 @@
1
- import { f as namedSignals, l as effect } from "./LexicalExtension.node-BUozzx4t.mjs";
2
- import { $r as isHTMLElement, $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, B as $getNodeByKey, Et as $normalizeCaret, G as $getSelection, Hr as getStyleObjectFromCSS, I as $getDocument, K as $getSiblingCaret, Kn as KEY_ARROW_UP_COMMAND, Lr as getNearestEditorFromDOMNode, Mt as $setDirectionFromDOM, Nt as $setFormatFromDOM, Or as getActiveElement, Pt as $setPointFromCaret, St as $isTextNode, Tr as defineExtension, Un as KEY_ARROW_DOWN_COMMAND, Wn as KEY_ARROW_LEFT_COMMAND, Xn as KEY_ESCAPE_COMMAND, Yt as COMMAND_PRIORITY_BEFORE_EDITOR, Zn as KEY_SPACE_COMMAND, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, d as $createLineBreakNode, di as registerEventListeners, et as $insertNodeToNearestRootAtCaret, fi as removeClassNamesFromElement, fr as SKIP_DOM_SELECTION_TAG, gt as $isRootOrShadowRoot, hn as ElementNode, it as $isDecoratorNode, l as $copyNode, li as normalizeClassNames, lt as $isLeafNode, mi as setDOMStyleFromCSS, mr as SKIP_SELECTION_FOCUS_TAG, mt as $isRangeSelection, n as $applyNodeReplacement, ot as $isElementNode, p as $createParagraphNode, pi as safeCast, pt as $isParagraphNode, qn as KEY_BACKSPACE_COMMAND, t as $addUpdateTag, ui as registerEventListener, v as $createTextNode, vr as addClassNamesToElement, wn as INSERT_PARAGRAPH_COMMAND, xr as createCommand, yr as buildImportMap, z as $getNearestNodeFromDOMNode } from "./Lexical.node-8sRFmq2X.mjs";
3
- import { a as $isBlockLevel, c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, o as $propagateTextAlignToBlockChildren, v as isElementOfTag, y as sel } from "./LexicalHtml.node-BYbzHNVe.mjs";
4
- import { f as calculateZoomLevel, i as $getNearestNodeOfType } from "./LexicalUtils.node-CIgMS8cG.mjs";
5
- //#region ../../node_modules/.pnpm/@lexical+list@0.48.0_typescript@6.0.3/node_modules/@lexical/list/dist/LexicalList.prod.mjs
1
+ import { f as namedSignals, l as effect } from "./LexicalExtension.node-BwJt2LXV.mjs";
2
+ import { $r as isHTMLElement, $t as COMMAND_PRIORITY_LOW, A as $getChildCaret, At as $rewindSiblingCaret, B as $getNodeByKey, Et as $normalizeCaret, G as $getSelection, Hr as getStyleObjectFromCSS, I as $getDocument, K as $getSiblingCaret, Kn as KEY_ARROW_UP_COMMAND, Lr as getNearestEditorFromDOMNode, Mt as $setDirectionFromDOM, Nt as $setFormatFromDOM, Or as getActiveElement, Pt as $setPointFromCaret, St as $isTextNode, Tr as defineExtension, Un as KEY_ARROW_DOWN_COMMAND, Wn as KEY_ARROW_LEFT_COMMAND, Xn as KEY_ESCAPE_COMMAND, Yt as COMMAND_PRIORITY_BEFORE_EDITOR, Zn as KEY_SPACE_COMMAND, _r as TextNode, b as $findMatchingParent, br as configExtension, ci as mergeRegister, d as $createLineBreakNode, di as registerEventListeners, et as $insertNodeToNearestRootAtCaret, fi as removeClassNamesFromElement, fr as SKIP_DOM_SELECTION_TAG, gt as $isRootOrShadowRoot, hn as ElementNode, l as $copyNode, li as normalizeClassNames, lt as $isLeafNode, mi as setDOMStyleFromCSS, mr as SKIP_SELECTION_FOCUS_TAG, mt as $isRangeSelection, n as $applyNodeReplacement, ot as $isElementNode, p as $createParagraphNode, pi as safeCast, pt as $isParagraphNode, qn as KEY_BACKSPACE_COMMAND, t as $addUpdateTag, ui as registerEventListener, v as $createTextNode, vr as addClassNamesToElement, wn as INSERT_PARAGRAPH_COMMAND, xr as createCommand, yr as buildImportMap, z as $getNearestNodeFromDOMNode } from "./Lexical.node-kAh5GM2n.mjs";
3
+ import { a as $isBlockLevel, c as CoreImportExtension, g as defineImportRule, l as DOMImportExtension, o as $propagateTextAlignToBlockChildren, v as isElementOfTag, y as sel } from "./LexicalHtml.node-BeuJMvvt.mjs";
4
+ import { f as calculateZoomLevel, i as $getNearestNodeOfType } from "./LexicalUtils.node-Dl7OvqJV.mjs";
5
+ //#region ../../node_modules/.pnpm/@lexical+list@0.49.0_typescript@6.0.3/node_modules/@lexical/list/dist/LexicalList.prod.mjs
6
6
  /**
7
7
  * Copyright (c) Meta Platforms, Inc. and affiliates.
8
8
  *
@@ -10,50 +10,50 @@ import { f as calculateZoomLevel, i as $getNearestNodeOfType } from "./LexicalUt
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  *
12
12
  */
13
- function ht(t, ...e) {
13
+ function gt(t, ...e) {
14
14
  const n = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
15
15
  r.append("code", t);
16
16
  for (const t of e) r.append("v", t);
17
17
  throw n.search = r.toString(), Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
18
18
  }
19
- function ft(t) {
19
+ function ht(t) {
20
20
  let e = 1, n = t.getParent();
21
21
  for (; null != n;) {
22
- if (It(n)) {
22
+ if (Ot(n)) {
23
23
  const t = n.getParent();
24
- if (Rt(t)) {
24
+ if ($t(t)) {
25
25
  e++, n = t.getParent();
26
26
  continue;
27
27
  }
28
- ht(40);
28
+ gt(40);
29
29
  }
30
30
  return e;
31
31
  }
32
32
  return e;
33
33
  }
34
- function dt(t) {
34
+ function ft(t) {
35
35
  const e = t.getParent();
36
- Rt(e) || ht(40);
36
+ $t(e) || gt(40);
37
37
  let n = e, r = e;
38
- for (; null !== r;) r = r.getParent(), Rt(r) && (n = r);
38
+ for (; null !== r;) r = r.getParent(), $t(r) && (n = r);
39
39
  return n;
40
40
  }
41
- function pt(t) {
41
+ function dt(t) {
42
42
  let e = [];
43
- const n = t.getChildren().filter(It);
43
+ const n = t.getChildren().filter(Ot);
44
44
  for (let t = 0; t < n.length; t++) {
45
45
  const r = n[t], i = r.getFirstChild();
46
- Rt(i) ? e = e.concat(pt(i)) : e.push(r);
46
+ $t(i) ? e = e.concat(dt(i)) : e.push(r);
47
47
  }
48
48
  return e;
49
49
  }
50
- function mt(t) {
51
- return It(t) && Rt(t.getFirstChild());
50
+ function pt(t) {
51
+ return Ot(t) && $t(t.getFirstChild());
52
52
  }
53
- function _t(t, e) {
54
- return It(t) && (0 === e.length || 1 === e.length && t.is(e[0]) && 0 === t.getChildrenSize());
53
+ function mt(t, e) {
54
+ return Ot(t) && (0 === e.length || 1 === e.length && t.is(e[0]) && 0 === t.getChildrenSize());
55
55
  }
56
- function yt(t) {
56
+ function _t(t) {
57
57
  const e = $getSelection();
58
58
  if (null !== e) {
59
59
  let n = e.getNodes();
@@ -66,15 +66,15 @@ function yt(t) {
66
66
  const t = $createParagraphNode();
67
67
  i.append(t), n = t.select().getNodes();
68
68
  }
69
- } else if (_t(i, n)) {
70
- const e = $t(t);
69
+ } else if (mt(i, n)) {
70
+ const e = Mt(t);
71
71
  if ($isRootOrShadowRoot(l)) {
72
72
  i.replace(e);
73
- const t = Ot();
73
+ const t = At();
74
74
  $isElementNode(i) && (t.setFormat(i.getFormatType()), t.setIndent(i.getIndent())), e.append(t);
75
- } else if (It(i)) {
75
+ } else if (Ot(i)) {
76
76
  const t = i.getParentOrThrow();
77
- Ct(e, t.getChildren()), t.replace(e);
77
+ yt(e, t.getChildren()), t.replace(e);
78
78
  }
79
79
  return;
80
80
  }
@@ -82,24 +82,24 @@ function yt(t) {
82
82
  const i = /* @__PURE__ */ new Set();
83
83
  for (let e = 0; e < n.length; e++) {
84
84
  const r = n[e];
85
- if ($isElementNode(r) && r.isEmpty() && !It(r) && !i.has(r.getKey())) {
86
- kt(r, t);
85
+ if ($isElementNode(r) && r.isEmpty() && !Ot(r) && !i.has(r.getKey())) {
86
+ Ct(r, t);
87
87
  continue;
88
88
  }
89
- let o = $isLeafNode(r) ? r.getParent() : It(r) && r.isEmpty() ? r : null;
89
+ let o = $isLeafNode(r) ? r.getParent() : Ot(r) && r.isEmpty() ? r : null;
90
90
  for (; null != o;) {
91
91
  const e = o.getKey();
92
- if (Rt(o)) {
92
+ if ($t(o)) {
93
93
  if (!i.has(e)) {
94
- const n = $t(t);
95
- Ct(n, o.getChildren()), o.replace(n), i.add(e);
94
+ const n = Mt(t);
95
+ yt(n, o.getChildren()), o.replace(n), i.add(e);
96
96
  }
97
97
  break;
98
98
  }
99
99
  {
100
100
  const n = o.getParent();
101
101
  if ($isRootOrShadowRoot(n) && !i.has(e)) {
102
- i.add(e), kt(o, t);
102
+ i.add(e), Ct(o, t);
103
103
  break;
104
104
  }
105
105
  o = n;
@@ -108,86 +108,86 @@ function yt(t) {
108
108
  }
109
109
  }
110
110
  }
111
- function Ct(t, e) {
111
+ function yt(t, e) {
112
112
  t.splice(t.getChildrenSize(), 0, e);
113
113
  }
114
- function kt(t, e) {
115
- if (Rt(t)) return t;
116
- const i = t.getPreviousSibling(), s = t.getNextSibling(), o = Ot();
114
+ function Ct(t, e) {
115
+ if ($t(t)) return t;
116
+ const i = t.getPreviousSibling(), s = t.getNextSibling(), o = At();
117
117
  let l;
118
- if (Ct(o, t.getChildren()), Rt(i) && e === i.getListType()) i.append(o), Rt(s) && e === s.getListType() && (Ct(i, s.getChildren()), s.remove()), l = i;
119
- else if (Rt(s) && e === s.getListType()) s.getFirstChildOrThrow().insertBefore(o), l = s;
118
+ if (yt(o, t.getChildren()), $t(i) && e === i.getListType()) i.append(o), $t(s) && e === s.getListType() && (yt(i, s.getChildren()), s.remove()), l = i;
119
+ else if ($t(s) && e === s.getListType()) s.getFirstChildOrThrow().insertBefore(o), l = s;
120
120
  else {
121
- const n = $t(e);
121
+ const n = Mt(e);
122
122
  n.append(o), t.replace(n), l = n;
123
123
  }
124
124
  o.setFormat(t.getFormatType()), o.setIndent(t.getIndent());
125
125
  const c = $getSelection();
126
126
  return $isRangeSelection(c) && (l.getKey() === c.anchor.key && c.anchor.set(o.getKey(), c.anchor.offset, "element"), l.getKey() === c.focus.key && c.focus.set(o.getKey(), c.focus.offset, "element")), t.remove(), l;
127
127
  }
128
- function bt(t, e) {
128
+ function kt(t, e) {
129
129
  const n = t.getLastChild(), r = e.getFirstChild();
130
- n && r && mt(n) && mt(r) && (bt(n.getFirstChild(), r.getFirstChild()), r.remove());
130
+ n && r && pt(n) && pt(r) && (kt(n.getFirstChild(), r.getFirstChild()), r.remove());
131
131
  const i = e.getChildren();
132
132
  i.length > 0 && t.append(...i), e.remove();
133
133
  }
134
- function St() {
134
+ function bt() {
135
135
  const e = $getSelection();
136
136
  if ($isRangeSelection(e)) {
137
137
  const n = /* @__PURE__ */ new Set(), r = e.getNodes(), i = e.anchor.getNode();
138
- if (_t(i, r)) n.add(dt(i));
138
+ if (mt(i, r)) n.add(ft(i));
139
139
  else for (let e = 0; e < r.length; e++) {
140
140
  const i = r[e];
141
141
  if ($isLeafNode(i)) {
142
- const e = $getNearestNodeOfType(i, Pt);
143
- null != e && n.add(dt(e));
142
+ const e = $getNearestNodeOfType(i, Nt);
143
+ null != e && n.add(ft(e));
144
144
  }
145
145
  }
146
146
  for (const t of n) {
147
147
  let n = t;
148
- const r = pt(t);
148
+ const r = dt(t);
149
149
  for (const t of r) {
150
150
  const r = $createParagraphNode().setTextStyle(e.style).setTextFormat(e.format);
151
- Ct(r, t.getChildren()), n.insertAfter(r), n = r, t.__key === e.anchor.key && $setPointFromCaret(e.anchor, $normalizeCaret($getChildCaret(r, "next"))), t.__key === e.focus.key && $setPointFromCaret(e.focus, $normalizeCaret($getChildCaret(r, "next"))), t.remove();
151
+ yt(r, t.getChildren()), n.insertAfter(r), n = r, t.__key === e.anchor.key && $setPointFromCaret(e.anchor, $normalizeCaret($getChildCaret(r, "next"))), t.__key === e.focus.key && $setPointFromCaret(e.focus, $normalizeCaret($getChildCaret(r, "next"))), t.remove();
152
152
  }
153
153
  t.remove();
154
154
  }
155
155
  }
156
156
  }
157
- function vt(t) {
157
+ function St(t) {
158
158
  const e = "check" !== t.getListType();
159
159
  let n = t.getStart();
160
- for (const r of t.getChildren()) It(r) && (r.getValue() !== n && r.setValue(n), e && null != r.getLatest().__checked && r.setChecked(void 0), Rt(r.getFirstChild()) || n++);
160
+ for (const r of t.getChildren()) Ot(r) && (r.getValue() !== n && r.setValue(n), e && null != r.getLatest().__checked && r.setChecked(void 0), $t(r.getFirstChild()) || n++);
161
161
  }
162
162
  function Tt(t) {
163
163
  const e = /* @__PURE__ */ new Set();
164
- if (mt(t) || e.has(t.getKey())) return;
164
+ if (pt(t) || e.has(t.getKey())) return;
165
165
  const n = t.getParent(), r = t.getNextSibling(), i = t.getPreviousSibling();
166
- if (mt(r) && mt(i)) {
166
+ if (pt(r) && pt(i)) {
167
167
  const n = i.getFirstChild();
168
- if (Rt(n)) {
168
+ if ($t(n)) {
169
169
  n.append(t);
170
170
  const i = r.getFirstChild();
171
- if (Rt(i)) Ct(n, i.getChildren()), r.remove(), e.add(r.getKey());
171
+ if ($t(i)) yt(n, i.getChildren()), r.remove(), e.add(r.getKey());
172
172
  }
173
- } else if (mt(r)) {
173
+ } else if (pt(r)) {
174
174
  const e = r.getFirstChild();
175
- if (Rt(e)) {
175
+ if ($t(e)) {
176
176
  const n = e.getFirstChild();
177
177
  null !== n && n.insertBefore(t);
178
178
  }
179
- } else if (mt(i)) {
179
+ } else if (pt(i)) {
180
180
  const e = i.getFirstChild();
181
- Rt(e) && e.append(t);
182
- } else if (Rt(n)) {
181
+ $t(e) && e.append(t);
182
+ } else if ($t(n)) {
183
183
  const e = $copyNode(t), s = $copyNode(n);
184
184
  e.append(s), s.append(t), i ? i.insertAfter(e) : r ? r.insertBefore(e) : n.append(e);
185
185
  }
186
186
  }
187
- function xt(t) {
188
- if (mt(t)) return;
187
+ function vt(t) {
188
+ if (pt(t)) return;
189
189
  const e = t.getParent(), n = e ? e.getParent() : void 0;
190
- if (Rt(n ? n.getParent() : void 0) && It(n) && Rt(e)) {
190
+ if ($t(n ? n.getParent() : void 0) && Ot(n) && $t(e)) {
191
191
  const r = e ? e.getFirstChild() : void 0, i = e ? e.getLastChild() : void 0;
192
192
  if (t.is(r)) n.insertBefore(t), e.isEmpty() && n.remove();
193
193
  else if (t.is(i)) n.insertAfter(t), e.isEmpty() && n.remove();
@@ -195,28 +195,28 @@ function xt(t) {
195
195
  const r = $copyNode(t), i = $copyNode(e);
196
196
  r.append(i), t.getPreviousSiblings().forEach((t) => i.append(t));
197
197
  const s = $copyNode(t), o = $copyNode(e);
198
- s.append(o), Ct(o, t.getNextSiblings()), n.insertBefore(r), n.insertAfter(s), n.replace(t);
198
+ s.append(o), yt(o, t.getNextSiblings()), n.insertBefore(r), n.insertAfter(s), n.replace(t);
199
199
  }
200
200
  }
201
201
  }
202
- function Nt(t = !1) {
202
+ function xt(t = !1) {
203
203
  const e = $getSelection();
204
204
  if (!$isRangeSelection(e) || !e.isCollapsed()) return !1;
205
205
  const c = e.anchor.getNode();
206
206
  let a = null;
207
- if (It(c) && 0 === c.getChildrenSize()) a = c;
207
+ if (Ot(c) && 0 === c.getChildrenSize()) a = c;
208
208
  else if ($isTextNode(c)) {
209
209
  const t = c.getParent();
210
- It(t) && t.getChildren().every((t) => $isTextNode(t) && "" === t.getTextContent().trim()) && (a = t);
210
+ Ot(t) && t.getChildren().every((t) => $isTextNode(t) && "" === t.getTextContent().trim()) && (a = t);
211
211
  }
212
212
  if (null === a) return !1;
213
- const u = dt(a), g = a.getParent();
214
- Rt(g) || ht(40);
213
+ const u = ft(a), g = a.getParent();
214
+ $t(g) || gt(40);
215
215
  const h = g.getParent();
216
216
  let f;
217
217
  if ($isRootOrShadowRoot(h)) f = $createParagraphNode(), u.insertAfter(f);
218
218
  else {
219
- if (!It(h)) return !1;
219
+ if (!Ot(h)) return !1;
220
220
  f = $copyNode(h), h.insertAfter(f);
221
221
  }
222
222
  f.setTextStyle(e.style).setTextFormat(e.format).select();
@@ -225,7 +225,7 @@ function Nt(t = !1) {
225
225
  const e = t ? function(t, e) {
226
226
  return t.getStart() + e.getIndexWithinParent();
227
227
  }(g, a) : 1, n = $copyNode(g).setStart(e);
228
- if (It(f)) {
228
+ if (Ot(f)) {
229
229
  const t = $copyNode(f);
230
230
  t.append(n), f.insertAfter(t);
231
231
  } else f.insertAfter(n);
@@ -235,28 +235,28 @@ function Nt(t = !1) {
235
235
  let e = t;
236
236
  for (; null == e.getNextSibling() && null == e.getPreviousSibling();) {
237
237
  const t = e.getParent();
238
- if (null == t || !It(t) && !Rt(t)) break;
238
+ if (null == t || !Ot(t) && !$t(t)) break;
239
239
  e = t;
240
240
  }
241
241
  e.remove();
242
242
  }(a), !0;
243
243
  }
244
- var Pt = class extends ElementNode {
244
+ var Nt = class extends ElementNode {
245
245
  __value;
246
246
  __checked;
247
247
  $config() {
248
248
  return this.config("listitem", {
249
249
  $transform: (t) => {
250
250
  const e = t.getParent();
251
- if (Rt(e)) "check" !== e.getListType() && null != t.getChecked() && t.setChecked(void 0);
251
+ if ($t(e)) "check" !== e.getListType() && null != t.getChecked() && t.setChecked(void 0);
252
252
  else if (e) {
253
253
  const n = t.createParentElementNode();
254
- Rt(n) || ht(340);
254
+ $t(n) || gt(340);
255
255
  const r = [t];
256
256
  for (const e of ["previous", "next"]) {
257
257
  r.reverse();
258
258
  for (const { origin: n } of $getSiblingCaret(t, e)) {
259
- if (!It(n)) break;
259
+ if (!Ot(n)) break;
260
260
  r.push(n);
261
261
  }
262
262
  }
@@ -268,7 +268,7 @@ var Pt = class extends ElementNode {
268
268
  },
269
269
  extends: ElementNode,
270
270
  importDOM: buildImportMap({ li: () => ({
271
- conversion: Ft,
271
+ conversion: Pt,
272
272
  priority: 0
273
273
  }) })
274
274
  });
@@ -286,11 +286,11 @@ var Pt = class extends ElementNode {
286
286
  updateListItemDOM(t, e, n) {
287
287
  (function(t, e) {
288
288
  const n = e.getParent();
289
- !Rt(n) || "check" !== n.getListType() || Rt(e.getFirstChild()) ? (t.removeAttribute("role"), t.removeAttribute("tabIndex"), t.removeAttribute("aria-checked")) : (t.setAttribute("role", "checkbox"), t.setAttribute("tabIndex", "-1"), t.setAttribute("aria-checked", e.getChecked() ? "true" : "false"));
289
+ !$t(n) || "check" !== n.getListType() || $t(e.getFirstChild()) ? (t.removeAttribute("role"), t.removeAttribute("tabIndex"), t.removeAttribute("aria-checked")) : (t.setAttribute("role", "checkbox"), t.setAttribute("tabIndex", "-1"), t.setAttribute("aria-checked", e.getChecked() ? "true" : "false"));
290
290
  })(e, this), e.value = this.__value, function(t, e, n) {
291
291
  const r = e.list;
292
292
  if (!r) return;
293
- const i = r.listitem, s = r.nested && r.nested.listitem, o = n.getParent(), l = Rt(o) && "check" === o.getListType(), c = n.getChecked(), a = n.getChildren().some((t) => Rt(t)), u = [];
293
+ const i = r.listitem, s = r.nested && r.nested.listitem, o = n.getParent(), l = $t(o) && "check" === o.getListType(), c = n.getChecked(), a = n.getChildren().some((t) => $t(t)), u = [];
294
294
  void 0 !== r.listitemChecked && u.push(r.listitemChecked);
295
295
  void 0 !== r.listitemUnchecked && u.push(r.listitemUnchecked);
296
296
  void 0 !== s && u.push(...normalizeClassNames(s));
@@ -324,7 +324,7 @@ var Pt = class extends ElementNode {
324
324
  const e = this.createDOM(t._config), n = this.getFormatType();
325
325
  n && (e.style.textAlign = n);
326
326
  const r = this.getDirection();
327
- return r && (e.dir = r), mt(this) ? {
327
+ return r && (e.dir = r), pt(this) ? {
328
328
  after(t) {
329
329
  if (isHTMLElement(t)) {
330
330
  const e = t.previousElementSibling;
@@ -356,10 +356,10 @@ var Pt = class extends ElementNode {
356
356
  return this;
357
357
  }
358
358
  replace(t, e) {
359
- if (It(t)) return super.replace(t);
359
+ if (Ot(t)) return super.replace(t);
360
360
  this.setIndent(0);
361
361
  const i = this.getParentOrThrow();
362
- if (!Rt(i)) return t;
362
+ if (!$t(i)) return t;
363
363
  if (i.__first === this.getKey()) i.insertBefore(t);
364
364
  else if (i.__last === this.getKey()) i.insertAfter(t);
365
365
  else {
@@ -373,7 +373,7 @@ var Pt = class extends ElementNode {
373
373
  }
374
374
  const s = this.__key;
375
375
  let o = 0;
376
- if (e && ($isElementNode(t) || ht(139), o = t.getChildrenSize(), t.splice(o, 0, this.getChildren())), e && $isElementNode(t)) {
376
+ if (e && ($isElementNode(t) || gt(139), o = t.getChildrenSize(), t.splice(o, 0, this.getChildren())), e && $isElementNode(t)) {
377
377
  const e = $getSelection();
378
378
  if ($isRangeSelection(e)) for (const n of e.getStartEndPoints()) n.key === s && "element" === n.type && n.set(t.getKey(), o + n.offset, "element");
379
379
  }
@@ -381,7 +381,7 @@ var Pt = class extends ElementNode {
381
381
  }
382
382
  insertAfter(t, e = !0) {
383
383
  const n = this.getParentOrThrow();
384
- if (Rt(n) || ht(39), It(t)) return super.insertAfter(t, e);
384
+ if ($t(n) || gt(39), Ot(t)) return super.insertAfter(t, e);
385
385
  const r = this.getNextSiblings();
386
386
  if (n.insertAfter(t, e), 0 !== r.length) {
387
387
  const i = $copyNode(n);
@@ -391,7 +391,7 @@ var Pt = class extends ElementNode {
391
391
  }
392
392
  remove(t) {
393
393
  const e = this.getPreviousSibling(), n = this.getNextSibling();
394
- super.remove(t), e && n && mt(e) && mt(n) && (bt(e.getFirstChild(), n.getFirstChild()), n.remove());
394
+ super.remove(t), e && n && pt(e) && pt(n) && (kt(e.getFirstChild(), n.getFirstChild()), n.remove());
395
395
  }
396
396
  resetOnCopyNodeFrom(t) {
397
397
  super.resetOnCopyNodeFrom(t), t.getChecked() && this.setChecked(!1);
@@ -401,9 +401,9 @@ var Pt = class extends ElementNode {
401
401
  return this.insertAfter(n, e), n;
402
402
  }
403
403
  collapseAtStart(t) {
404
- if (mt(this)) return !1;
404
+ if (pt(this)) return !1;
405
405
  const e = this.getParentOrThrow();
406
- if (It(e.getParentOrThrow())) return xt(this), !0;
406
+ if (Ot(e.getParentOrThrow())) return vt(this), !0;
407
407
  const n = $createParagraphNode().append(...this.getChildren()), r = this.getNextSiblings();
408
408
  if (r.length > 0) {
409
409
  const t = $copyNode(e);
@@ -422,7 +422,7 @@ var Pt = class extends ElementNode {
422
422
  const t = this.getLatest();
423
423
  let e;
424
424
  const n = this.getParent();
425
- return Rt(n) && (e = n.getListType()), "check" === e ? Boolean(t.__checked) : void 0;
425
+ return $t(n) && (e = n.getListType()), "check" === e ? Boolean(t.__checked) : void 0;
426
426
  }
427
427
  setChecked(t) {
428
428
  const e = this.getWritable();
@@ -436,23 +436,23 @@ var Pt = class extends ElementNode {
436
436
  const t = this.getParent();
437
437
  if (null === t || !this.isAttached()) return this.getLatest().__indent;
438
438
  let e = t.getParentOrThrow(), n = 0;
439
- for (; It(e);) e = e.getParentOrThrow().getParentOrThrow(), n++;
439
+ for (; Ot(e);) e = e.getParentOrThrow().getParentOrThrow(), n++;
440
440
  return n;
441
441
  }
442
442
  setIndent(t) {
443
- "number" != typeof t && ht(117), (t = Math.floor(t)) >= 0 || ht(199);
443
+ "number" != typeof t && gt(117), (t = Math.floor(t)) >= 0 || gt(199);
444
444
  let e = this.getIndent();
445
- for (; e !== t;) e < t ? (Tt(this), e++) : (xt(this), e--);
445
+ for (; e !== t;) e < t ? (Tt(this), e++) : (vt(this), e--);
446
446
  return this;
447
447
  }
448
448
  canInsertAfter(t) {
449
- return It(t);
449
+ return Ot(t);
450
450
  }
451
451
  canReplaceWith(t) {
452
- return It(t);
452
+ return Ot(t);
453
453
  }
454
454
  canMergeWith(t) {
455
- return It(t) || $isParagraphNode(t);
455
+ return Ot(t) || $isParagraphNode(t);
456
456
  }
457
457
  extractWithChild(t, e) {
458
458
  if (!$isRangeSelection(e)) return !1;
@@ -463,44 +463,44 @@ var Pt = class extends ElementNode {
463
463
  return !0;
464
464
  }
465
465
  createParentElementNode() {
466
- return $t("bullet");
466
+ return Mt("bullet");
467
467
  }
468
468
  canMergeWhenEmpty() {
469
469
  return !0;
470
470
  }
471
471
  };
472
- function Ft(t) {
472
+ function Pt(t) {
473
473
  if (t.classList.contains("task-list-item")) {
474
474
  for (const e of t.children) if ("INPUT" === e.tagName) return Lt(e);
475
475
  }
476
476
  if (t.classList.contains("joplin-checkbox")) {
477
477
  for (const e of t.children) if (e.classList.contains("checkbox-wrapper") && e.children.length > 0 && "INPUT" === e.children[0].tagName) return Lt(e.children[0]);
478
478
  }
479
- const e = t.getAttribute("aria-checked"), n = Ot("true" === e || "false" !== e && void 0);
479
+ const e = t.getAttribute("aria-checked"), n = At("true" === e || "false" !== e && void 0);
480
480
  return $setFormatFromDOM(n, t), {
481
- after: At.bind(null, n),
481
+ after: Ft.bind(null, n),
482
482
  node: $setDirectionFromDOM(n, t)
483
483
  };
484
484
  }
485
485
  function Lt(t) {
486
486
  if (!("checkbox" === t.getAttribute("type"))) return { node: null };
487
- const e = Ot(t.hasAttribute("checked"));
487
+ const e = At(t.hasAttribute("checked"));
488
488
  return {
489
- after: At.bind(null, e),
489
+ after: Ft.bind(null, e),
490
490
  node: e
491
491
  };
492
492
  }
493
- function At(t, e) {
493
+ function Ft(t, e) {
494
494
  const n = e[0];
495
495
  return 1 === e.length && $isParagraphNode(n) && !t.getFormatType() && n.getFormatType() ? (t.setFormat(n.getFormatType()), n.getChildren()) : e;
496
496
  }
497
- function Ot(t) {
498
- return $applyNodeReplacement(new Pt(void 0, t));
497
+ function At(t) {
498
+ return $applyNodeReplacement(new Nt(void 0, t));
499
499
  }
500
- function It(t) {
501
- return t instanceof Pt;
500
+ function Ot(t) {
501
+ return t instanceof Nt;
502
502
  }
503
- var Et = class extends ElementNode {
503
+ var It = class extends ElementNode {
504
504
  __tag;
505
505
  __start;
506
506
  __listType;
@@ -509,17 +509,17 @@ var Et = class extends ElementNode {
509
509
  $transform: (t) => {
510
510
  (function(t) {
511
511
  const e = t.getNextSibling();
512
- Rt(e) && t.getListType() === e.getListType() && bt(t, e);
513
- })(t), vt(t);
512
+ $t(e) && t.getListType() === e.getListType() && kt(t, e);
513
+ })(t), St(t);
514
514
  },
515
515
  extends: ElementNode,
516
516
  importDOM: buildImportMap({
517
517
  ol: () => ({
518
- conversion: wt,
518
+ conversion: Dt,
519
519
  priority: 0
520
520
  }),
521
521
  ul: () => ({
522
- conversion: wt,
522
+ conversion: Dt,
523
523
  priority: 0
524
524
  })
525
525
  })
@@ -527,7 +527,7 @@ var Et = class extends ElementNode {
527
527
  }
528
528
  constructor(t = "number", e = 1, n) {
529
529
  super(n);
530
- const r = Mt[t] || t;
530
+ const r = wt[t] || t;
531
531
  this.__listType = r, this.__tag = "number" === r ? "ol" : "ul", this.__start = e;
532
532
  }
533
533
  afterCloneFrom(t) {
@@ -552,10 +552,10 @@ var Et = class extends ElementNode {
552
552
  }
553
553
  createDOM(t, e) {
554
554
  const n = this.__tag, r = $getDocument().createElement(n);
555
- return 1 !== this.__start && r.setAttribute("start", String(this.__start)), r.__lexicalListType = this.__listType, Dt(r, t.theme, this), r;
555
+ return 1 !== this.__start && r.setAttribute("start", String(this.__start)), r.__lexicalListType = this.__listType, Et(r, t.theme, this), r;
556
556
  }
557
557
  updateDOM(t, e, n) {
558
- return t.__tag !== this.__tag || t.__listType !== this.__listType || (Dt(e, n.theme, this), t.__start !== this.__start && e.setAttribute("start", String(this.__start)), !1);
558
+ return t.__tag !== this.__tag || t.__listType !== this.__listType || (Et(e, n.theme, this), t.__start !== this.__start && e.setAttribute("start", String(this.__start)), !1);
559
559
  }
560
560
  updateFromJSON(t) {
561
561
  return super.updateFromJSON(t).setListType(t.listType).setStart(t.start);
@@ -582,21 +582,21 @@ var Et = class extends ElementNode {
582
582
  let r = n;
583
583
  for (let t = 0; t < n.length; t++) {
584
584
  const e = n[t];
585
- It(e) || (r === n && (r = [...n]), r[t] = this.createListItemNode().append(!$isElementNode(e) || Rt(e) || e.isInline() ? e : $createTextNode(e.getTextContent())));
585
+ Ot(e) || (r === n && (r = [...n]), r[t] = this.createListItemNode().append(!$isElementNode(e) || $t(e) || e.isInline() ? e : $createTextNode(e.getTextContent())));
586
586
  }
587
587
  return super.splice(t, e, r);
588
588
  }
589
589
  extractWithChild(t) {
590
- return It(t);
590
+ return Ot(t);
591
591
  }
592
592
  createListItemNode() {
593
- return Ot();
593
+ return At();
594
594
  }
595
595
  };
596
- function Dt(t, e, n) {
596
+ function Et(t, e, n) {
597
597
  const r = [], i = [], s = e.list;
598
598
  if (void 0 !== s) {
599
- const t = s[`${n.__tag}Depth`] || [], e = ft(n) - 1, o = e % t.length, l = t[o], c = s[n.__tag];
599
+ const t = s[`${n.__tag}Depth`] || [], e = ht(n) - 1, o = e % t.length, l = t[o], c = s[n.__tag];
600
600
  let a;
601
601
  const u = s.nested, g = s.checklist;
602
602
  if (void 0 !== u && u.list && (a = u.list), void 0 !== c && r.push(c), void 0 !== g && "check" === n.__listType && r.push(g), void 0 !== l) {
@@ -610,28 +610,28 @@ function Dt(t, e, n) {
610
610
  }
611
611
  i.length > 0 && removeClassNamesFromElement(t, ...i), r.length > 0 && addClassNamesToElement(t, ...r);
612
612
  }
613
- function wt(t) {
613
+ function Dt(t) {
614
614
  let e;
615
615
  if (function(t) {
616
616
  return isHTMLElement(t) && "ol" === t.nodeName.toLowerCase();
617
617
  }(t)) {
618
618
  const n = t.start;
619
- e = $t("number", n);
619
+ e = Mt("number", n);
620
620
  } else e = function(t) {
621
621
  if ("check" === t.getAttribute("__lexicallisttype") || t.classList.contains("contains-task-list") || "1" === t.getAttribute("data-is-checklist")) return !0;
622
622
  for (const e of t.childNodes) if (isHTMLElement(e) && e.hasAttribute("aria-checked")) return !0;
623
623
  return !1;
624
- }(t) ? $t("check") : $t("bullet");
624
+ }(t) ? Mt("check") : Mt("bullet");
625
625
  return $setDirectionFromDOM(e, t), {
626
626
  after: (t) => function(t, e) {
627
627
  const n = e.createListItemNode.bind(e), r = [];
628
628
  for (let e = 0; e < t.length; e++) {
629
629
  const i = t[e];
630
- if (It(i)) {
630
+ if (Ot(i)) {
631
631
  r.push(i);
632
632
  const t = i.getChildren();
633
633
  t.length > 1 && t.forEach((t) => {
634
- Rt(t) && r.push(n().append(t));
634
+ $t(t) && r.push(n().append(t));
635
635
  });
636
636
  } else r.push(n().append(i));
637
637
  }
@@ -640,18 +640,18 @@ function wt(t) {
640
640
  node: e
641
641
  };
642
642
  }
643
- const Mt = {
643
+ const wt = {
644
644
  ol: "number",
645
645
  ul: "bullet"
646
646
  };
647
- function $t(t = "number", e = 1) {
648
- return $applyNodeReplacement(new Et(t, e));
647
+ function Mt(t = "number", e = 1) {
648
+ return $applyNodeReplacement(new It(t, e));
649
649
  }
650
- function Rt(t) {
651
- return t instanceof Et;
650
+ function $t(t) {
651
+ return t instanceof It;
652
652
  }
653
- const Kt = /* @__PURE__ */ createCommand("INSERT_CHECK_LIST_COMMAND");
654
- function Bt(t, e) {
653
+ const Rt = /* @__PURE__ */ createCommand("INSERT_CHECK_LIST_COMMAND");
654
+ function Kt(t, e) {
655
655
  const i = e && e.disableTakeFocusOnClick || !1, s = "boolean" == typeof i ? () => i : i.peek.bind(i), o = (t) => {
656
656
  const e = t.target;
657
657
  if (!isHTMLElement(e)) return !1;
@@ -661,24 +661,24 @@ function Bt(t, e) {
661
661
  const e = t.target;
662
662
  isHTMLElement(e) && (e.__lexicalCheckListLastHandled = t.timeStamp);
663
663
  }, a = (t) => {
664
- o(t) || (l(t), Ut(t, s()));
664
+ o(t) || (l(t), Wt(t, s()));
665
665
  }, u = (t) => {
666
- "touch" === t.pointerType && (o(t) || (l(t), Ut(t, s())));
666
+ "touch" === t.pointerType && (o(t) || (l(t), Wt(t, s())));
667
667
  }, g = (t) => {
668
668
  (function(t, e) {
669
- Wt(t, () => {
669
+ Bt(t, () => {
670
670
  t.preventDefault(), e && t.stopPropagation();
671
671
  });
672
672
  })(t, s());
673
673
  };
674
- return mergeRegister(t.registerCommand(Kt, () => (yt("check"), !0), COMMAND_PRIORITY_LOW), t.registerCommand(KEY_ARROW_DOWN_COMMAND, (e) => Vt(e, t, !1), COMMAND_PRIORITY_LOW), t.registerCommand(KEY_ARROW_UP_COMMAND, (e) => Vt(e, t, !0), COMMAND_PRIORITY_LOW), t.registerCommand(KEY_ESCAPE_COMMAND, () => {
675
- if (null != Jt(t)) return t.getRootElement()?.focus(), !0;
674
+ return mergeRegister(t.registerCommand(Rt, () => (_t("check"), !0), COMMAND_PRIORITY_LOW), t.registerCommand(KEY_ARROW_DOWN_COMMAND, (e) => Jt(e, t, !1), COMMAND_PRIORITY_LOW), t.registerCommand(KEY_ARROW_UP_COMMAND, (e) => Jt(e, t, !0), COMMAND_PRIORITY_LOW), t.registerCommand(KEY_ESCAPE_COMMAND, () => {
675
+ if (null != Ut(t)) return t.getRootElement()?.focus(), !0;
676
676
  return !1;
677
677
  }, COMMAND_PRIORITY_LOW), t.registerCommand(KEY_SPACE_COMMAND, (e) => {
678
- const n = Jt(t);
678
+ const n = Ut(t);
679
679
  return !(null == n || !t.isEditable()) && (t.update(() => {
680
680
  const t = $getNearestNodeFromDOMNode(n);
681
- It(t) && (e.preventDefault(), t.toggleChecked());
681
+ Ot(t) && (e.preventDefault(), t.toggleChecked());
682
682
  }), !0);
683
683
  }, COMMAND_PRIORITY_LOW), t.registerCommand(KEY_ARROW_LEFT_COMMAND, (e) => t.read("latest", () => {
684
684
  const i = $getSelection();
@@ -686,9 +686,9 @@ function Bt(t, e) {
686
686
  const { anchor: n } = i, r = "element" === n.type;
687
687
  if (r || 0 === n.offset) {
688
688
  const i = n.getNode(), s = $findMatchingParent(i, (t) => $isElementNode(t) && !t.isInline());
689
- if (It(s)) {
689
+ if (Ot(s)) {
690
690
  const n = s.getParent();
691
- if (Rt(n) && "check" === n.getListType() && (r || s.getFirstDescendant() === i)) {
691
+ if ($t(n) && "check" === n.getListType() && (r || s.getFirstDescendant() === i)) {
692
692
  const n = t.getElementByKey(s.__key);
693
693
  if (null != n && getActiveElement(n) !== n) return n.focus(), e.preventDefault(), !0;
694
694
  }
@@ -709,7 +709,7 @@ function Bt(t, e) {
709
709
  }));
710
710
  }));
711
711
  }
712
- function Wt(t, n) {
712
+ function Bt(t, n) {
713
713
  const r = t.target;
714
714
  if (!isHTMLElement(r)) return;
715
715
  const i = r.firstChild;
@@ -726,32 +726,32 @@ function Wt(t, n) {
726
726
  const c = r.getBoundingClientRect(), a = o / calculateZoomLevel(r), u = r.ownerDocument.defaultView, g = u ? u.getComputedStyle(r, "::before") : { width: "0px" }, h = parseFloat(g.width), f = "touch" === l || "pointerType" in t && "touch" === t.pointerType ? 32 : 0;
727
727
  ("rtl" === r.dir ? a < c.right + f && a > c.right - h - f : a > c.left - f && a < c.left + h + f) && n();
728
728
  }
729
- function Ut(t, e) {
730
- Wt(t, () => {
729
+ function Wt(t, e) {
730
+ Bt(t, () => {
731
731
  if (isHTMLElement(t.target)) {
732
732
  const n = t.target, r = getNearestEditorFromDOMNode(n);
733
733
  null != r && r.isEditable() && r.update(() => {
734
734
  const t = $getNearestNodeFromDOMNode(n);
735
- It(t) && (e ? ($addUpdateTag(SKIP_SELECTION_FOCUS_TAG), $addUpdateTag(SKIP_DOM_SELECTION_TAG)) : n.focus(), t.toggleChecked());
735
+ Ot(t) && (e ? ($addUpdateTag(SKIP_SELECTION_FOCUS_TAG), $addUpdateTag(SKIP_DOM_SELECTION_TAG)) : n.focus(), t.toggleChecked());
736
736
  });
737
737
  }
738
738
  });
739
739
  }
740
- function Jt(t) {
740
+ function Ut(t) {
741
741
  const e = t.getRootElement(), n = e ? getActiveElement(e) : null;
742
742
  return isHTMLElement(n) && "LI" === n.tagName && null != n.parentNode && "check" === n.parentNode.__lexicalListType ? n : null;
743
743
  }
744
- function Vt(t, e, n) {
745
- const r = Jt(e);
744
+ function Jt(t, e, n) {
745
+ const r = Ut(e);
746
746
  return null != r && e.update(() => {
747
747
  const i = $getNearestNodeFromDOMNode(r);
748
- if (!It(i)) return;
748
+ if (!Ot(i)) return;
749
749
  const s = function(t, e) {
750
750
  let n = e ? t.getPreviousSibling() : t.getNextSibling(), r = t;
751
- for (; null == n && It(r);) r = r.getParentOrThrow().getParent(), null != r && (n = e ? r.getPreviousSibling() : r.getNextSibling());
752
- for (; It(n);) {
751
+ for (; null == n && Ot(r);) r = r.getParentOrThrow().getParent(), null != r && (n = e ? r.getPreviousSibling() : r.getNextSibling());
752
+ for (; Ot(n);) {
753
753
  const t = e ? n.getLastChild() : n.getFirstChild();
754
- if (!Rt(t)) return n;
754
+ if (!$t(t)) return n;
755
755
  n = e ? t.getLastChild() : t.getFirstChild();
756
756
  }
757
757
  return null;
@@ -765,31 +765,31 @@ function Vt(t, e, n) {
765
765
  }
766
766
  }), !1;
767
767
  }
768
- function qt(t) {
768
+ function Vt(t) {
769
769
  const e = [];
770
- for (const n of t) if (It(n)) {
770
+ for (const n of t) if (Ot(n)) {
771
771
  e.push(n);
772
772
  const t = n.getChildren();
773
- if (t.length > 1) for (const n of t) Rt(n) && e.push(Ot().append(n));
774
- } else e.push(Ot().append(n));
773
+ if (t.length > 1) for (const n of t) $t(n) && e.push(At().append(n));
774
+ } else e.push(At().append(n));
775
775
  return e;
776
776
  }
777
- const zt = /* @__PURE__ */ defineImportRule({
777
+ const qt = /* @__PURE__ */ defineImportRule({
778
778
  $import: (t, e) => {
779
779
  let n;
780
780
  var r;
781
- return isElementOfTag(e, "ol") ? n = $t("number", e.start) : n = (r = e).matches("[__lexicallisttype=\"check\"], .contains-task-list, [data-is-checklist=\"1\"]") || null !== r.querySelector(":scope > [aria-checked]") ? $t("check") : $t("bullet"), $setDirectionFromDOM(n, e), [n.splice(0, 0, $propagateTextAlignToBlockChildren(qt(t.$importChildren(e)), e))];
781
+ return isElementOfTag(e, "ol") ? n = Mt("number", e.start) : n = (r = e).matches("[__lexicallisttype=\"check\"], .contains-task-list, [data-is-checklist=\"1\"]") || null !== r.querySelector(":scope > [aria-checked]") ? Mt("check") : Mt("bullet"), $setDirectionFromDOM(n, e), [n.splice(0, 0, $propagateTextAlignToBlockChildren(Vt(t.$importChildren(e)), e))];
782
782
  },
783
783
  match: sel.tag("ol", "ul"),
784
784
  name: "@lexical/list/list"
785
785
  });
786
- function jt(t, e) {
786
+ function zt(t, e) {
787
787
  if (1 !== e.length) return e;
788
788
  const n = e[0];
789
789
  return $isParagraphNode(n) && !t.getFormatType() && n.getFormatType() ? (t.setFormat(n.getFormatType()), n.getChildren()) : e;
790
790
  }
791
- function Ht(t) {
792
- const e = (t) => $isBlockLevel(t) && !Rt(t);
791
+ function jt(t) {
792
+ const e = (t) => $isBlockLevel(t) && !$t(t);
793
793
  if (!t.some(e)) return t;
794
794
  const n = [];
795
795
  let r = [];
@@ -802,30 +802,30 @@ function Ht(t) {
802
802
  for (const t of n) s.length > 0 && s.push($createLineBreakNode()), s.push(...t);
803
803
  return s;
804
804
  }
805
- const Xt = /* @__PURE__ */ defineImportRule({
805
+ const Ht = /* @__PURE__ */ defineImportRule({
806
806
  $import: (t, e) => {
807
- const n = e.getAttribute("aria-checked"), r = Ot("true" === n || "false" !== n && void 0);
808
- return $setFormatFromDOM(r, e), $setDirectionFromDOM(r, e), [r.splice(0, 0, Ht(jt(r, t.$importChildren(e))))];
807
+ const n = e.getAttribute("aria-checked"), r = At("true" === n || "false" !== n && void 0);
808
+ return $setFormatFromDOM(r, e), $setDirectionFromDOM(r, e), [r.splice(0, 0, jt(zt(r, t.$importChildren(e))))];
809
809
  },
810
810
  match: sel.tag("li"),
811
811
  name: "@lexical/list/li"
812
812
  });
813
- function Gt(t, e, n) {
813
+ function Xt(t, e, n) {
814
814
  const r = isElementOfTag(n, "input") ? n : n.querySelector("input[type=\"checkbox\"]");
815
815
  if (!r || "checkbox" !== r.getAttribute("type")) return [];
816
- const i = Ot(r.hasAttribute("checked"));
817
- return $setFormatFromDOM(i, e), $setDirectionFromDOM(i, e), [i.splice(0, 0, Ht(jt(i, t.$importChildren(e))))];
816
+ const i = At(r.hasAttribute("checked"));
817
+ return $setFormatFromDOM(i, e), $setDirectionFromDOM(i, e), [i.splice(0, 0, jt(zt(i, t.$importChildren(e))))];
818
818
  }
819
- const Qt = {
820
- $accepts: (t) => It(t) || Rt(t),
821
- $packageRun: (t) => [Ot().splice(0, 0, t)],
819
+ const Gt = {
820
+ $accepts: (t) => Ot(t) || $t(t),
821
+ $packageRun: (t) => [At().splice(0, 0, t)],
822
822
  name: "ListSchema"
823
823
  };
824
- const Yt = [
824
+ const Qt = [
825
825
  /* @__PURE__ */ defineImportRule({
826
826
  $import: (t, e, n) => {
827
827
  const r = e.querySelector(":scope > input[type=\"checkbox\"]");
828
- return r ? Gt(t, e, r) : n();
828
+ return r ? Xt(t, e, r) : n();
829
829
  },
830
830
  match: sel.tag("li").classAll("task-list-item"),
831
831
  name: "@lexical/list/li-task-list-item"
@@ -835,52 +835,36 @@ const Yt = [
835
835
  const r = e.querySelector(":scope > .checkbox-wrapper");
836
836
  if (!r) return n();
837
837
  const i = r.querySelector(":scope > input[type=\"checkbox\"]");
838
- return i ? Gt(t, e, i) : n();
838
+ return i ? Xt(t, e, i) : n();
839
839
  },
840
840
  match: sel.tag("li").classAll("joplin-checkbox"),
841
841
  name: "@lexical/list/li-joplin-checkbox"
842
842
  }),
843
- zt,
844
- Xt
843
+ qt,
844
+ Ht
845
845
  ];
846
- const Zt = /* @__PURE__ */ createCommand("UPDATE_LIST_START_COMMAND");
847
- const te = /* @__PURE__ */ createCommand("INSERT_UNORDERED_LIST_COMMAND");
848
- const ee = /* @__PURE__ */ createCommand("INSERT_ORDERED_LIST_COMMAND");
849
- const ne = /* @__PURE__ */ createCommand("REMOVE_LIST_COMMAND");
850
- function re(t, e) {
851
- return mergeRegister(t.registerCommand(ee, () => (yt("number"), !0), COMMAND_PRIORITY_LOW), t.registerCommand(Zt, (t) => {
846
+ const Yt = /* @__PURE__ */ createCommand("UPDATE_LIST_START_COMMAND");
847
+ const Zt = /* @__PURE__ */ createCommand("INSERT_UNORDERED_LIST_COMMAND");
848
+ const te = /* @__PURE__ */ createCommand("INSERT_ORDERED_LIST_COMMAND");
849
+ const ee = /* @__PURE__ */ createCommand("REMOVE_LIST_COMMAND");
850
+ function ne(t, e) {
851
+ return mergeRegister(t.registerCommand(te, () => (_t("number"), !0), COMMAND_PRIORITY_LOW), t.registerCommand(Yt, (t) => {
852
852
  const { listNodeKey: e, newStart: n } = t, r = $getNodeByKey(e);
853
- return !!Rt(r) && ("number" === r.getListType() && (r.setStart(n), vt(r)), !0);
854
- }, COMMAND_PRIORITY_LOW), t.registerCommand(te, () => (yt("bullet"), !0), COMMAND_PRIORITY_LOW), t.registerCommand(ne, () => (St(), !0), COMMAND_PRIORITY_LOW), t.registerCommand(INSERT_PARAGRAPH_COMMAND, () => Nt(!!(e && e.restoreNumbering)), COMMAND_PRIORITY_LOW), t.registerCommand(KEY_BACKSPACE_COMMAND, (t) => {
855
- if (function() {
856
- const t = $getSelection();
857
- if (!$isRangeSelection(t) || !t.isCollapsed() || 0 !== t.anchor.offset) return !1;
858
- const e = t.anchor.getNode(), i = $findMatchingParent(e, It);
859
- if (!It(i)) return !1;
860
- const s = i.getFirstDescendant();
861
- if (null === s) return !1;
862
- if (!i.is(e) && !s.is(e)) return !1;
863
- const l = i.getParent();
864
- if (!Rt(l) || !i.is(l.getFirstChild())) return !1;
865
- const c = l.getPreviousSibling();
866
- if (!$isDecoratorNode(c) || c.isIsolated() || !c.isKeyboardSelectable() && c.isInline()) return !1;
867
- const a = $createParagraphNode().append(...i.getChildren());
868
- l.insertBefore(a), i.remove(), l.isEmpty() && l.remove();
869
- return a.selectStart(), !0;
870
- }()) return t.preventDefault(), !0;
853
+ return !!$t(r) && ("number" === r.getListType() && (r.setStart(n), St(r)), !0);
854
+ }, COMMAND_PRIORITY_LOW), t.registerCommand(Zt, () => (_t("bullet"), !0), COMMAND_PRIORITY_LOW), t.registerCommand(ee, () => (bt(), !0), COMMAND_PRIORITY_LOW), t.registerCommand(INSERT_PARAGRAPH_COMMAND, () => xt(!!(e && e.restoreNumbering)), COMMAND_PRIORITY_LOW), t.registerCommand(KEY_BACKSPACE_COMMAND, (t) => {
871
855
  const e = $getSelection();
872
856
  if (!$isRangeSelection(e) || !e.isCollapsed()) return !1;
873
857
  const { anchor: i } = e;
874
858
  if (0 !== i.offset) return !1;
875
859
  let s = i.getNode();
876
- for (; !It(s);) {
860
+ for (; !Ot(s);) {
877
861
  if (null !== s.getPreviousSibling()) return !1;
878
862
  const t = s.getParent();
879
863
  if (null === t) return !1;
880
864
  s = t;
881
865
  }
882
- return !(!It(s) || !s.collapseAtStart(e)) && (t.preventDefault(), !0);
883
- }, COMMAND_PRIORITY_BEFORE_EDITOR), t.registerNodeTransform(Pt, (t) => {
866
+ return !(!Ot(s) || !s.collapseAtStart(e)) && (t.preventDefault(), !0);
867
+ }, COMMAND_PRIORITY_BEFORE_EDITOR), t.registerNodeTransform(Nt, (t) => {
884
868
  const e = t.getFirstChild();
885
869
  if (e) {
886
870
  if ($isTextNode(e)) {
@@ -893,75 +877,75 @@ function re(t, e) {
893
877
  }
894
878
  }), t.registerNodeTransform(TextNode, (t) => {
895
879
  const e = t.getParent();
896
- if (It(e) && t.is(e.getFirstChild())) {
880
+ if (Ot(e) && t.is(e.getFirstChild())) {
897
881
  const n = t.getStyle(), r = t.getFormat();
898
882
  n === e.getTextStyle() && r === e.getTextFormat() || e.setTextStyle(n).setTextFormat(r);
899
883
  }
900
884
  }));
901
885
  }
902
- function ie(t) {
886
+ function re(t) {
903
887
  const e = (t) => {
904
888
  const e = t.getParent();
905
- if (Rt(t.getFirstChild()) || !Rt(e)) return;
906
- const n = $findMatchingParent(t, (t) => It(t) && Rt(t.getParent()) && It(t.getPreviousSibling()));
889
+ if ($t(t.getFirstChild()) || !$t(e)) return;
890
+ const n = $findMatchingParent(t, (t) => Ot(t) && $t(t.getParent()) && Ot(t.getPreviousSibling()));
907
891
  if (null === n && t.getIndent() > 0) t.setIndent(0);
908
- else if (It(n)) {
892
+ else if (Ot(n)) {
909
893
  const r = n.getPreviousSibling();
910
- if (It(r)) {
894
+ if (Ot(r)) {
911
895
  const i = function(t) {
912
896
  let e = t, n = e.getFirstChild();
913
- for (; Rt(n);) {
897
+ for (; $t(n);) {
914
898
  const t = n.getLastChild();
915
- if (!It(t)) break;
899
+ if (!Ot(t)) break;
916
900
  e = t, n = e.getFirstChild();
917
901
  }
918
902
  return e;
919
903
  }(r).getParent();
920
- if (Rt(i)) {
921
- const n = ft(i);
922
- n + 1 < ft(e) && t.setIndent(n);
904
+ if ($t(i)) {
905
+ const n = ht(i);
906
+ n + 1 < ht(e) && t.setIndent(n);
923
907
  }
924
908
  }
925
909
  }
926
910
  };
927
- return t.registerNodeTransform(Et, (t) => {
911
+ return t.registerNodeTransform(It, (t) => {
928
912
  const n = [t];
929
913
  for (; n.length > 0;) {
930
914
  const t = n.shift();
931
- if (Rt(t)) {
932
- for (const r of t.getChildren()) if (It(r)) {
915
+ if ($t(t)) {
916
+ for (const r of t.getChildren()) if (Ot(r)) {
933
917
  e(r);
934
918
  const t = r.getFirstChild();
935
- Rt(t) && n.push(t);
919
+ $t(t) && n.push(t);
936
920
  }
937
921
  }
938
922
  }
939
923
  });
940
924
  }
941
- const se = /* @__PURE__ */ defineExtension({
925
+ const ie = /* @__PURE__ */ defineExtension({
942
926
  build: (t, e, n) => namedSignals(e),
943
927
  config: /* @__PURE__ */ safeCast({
944
928
  hasStrictIndent: !1,
945
929
  shouldPreserveNumbering: !1
946
930
  }),
947
- dependencies: [CoreImportExtension, /* @__PURE__ */ configExtension(DOMImportExtension, { rules: Yt })],
931
+ dependencies: [CoreImportExtension, /* @__PURE__ */ configExtension(DOMImportExtension, { rules: Qt })],
948
932
  name: "@lexical/list/List",
949
- nodes: () => [Et, Pt],
933
+ nodes: () => [It, Nt],
950
934
  register(t, e, n) {
951
935
  const r = n.getOutput();
952
- return mergeRegister(effect(() => re(t, { restoreNumbering: r.shouldPreserveNumbering.value })), effect(() => r.hasStrictIndent.value ? ie(t) : void 0));
936
+ return mergeRegister(effect(() => ne(t, { restoreNumbering: r.shouldPreserveNumbering.value })), effect(() => r.hasStrictIndent.value ? re(t) : void 0));
953
937
  }
954
938
  });
955
- const oe = /* @__PURE__ */ defineExtension({
939
+ const se = /* @__PURE__ */ defineExtension({
956
940
  build: (t, e) => namedSignals(e),
957
941
  config: /* @__PURE__ */ safeCast({ disableTakeFocusOnClick: !1 }),
958
- dependencies: [se],
942
+ dependencies: [ie],
959
943
  name: "@lexical/list/CheckList",
960
- register: (t, e, n) => Bt(t, n.getOutput())
944
+ register: (t, e, n) => Kt(t, n.getOutput())
961
945
  });
962
- const le = /* @__PURE__ */ defineExtension({
963
- dependencies: [se],
946
+ const oe = /* @__PURE__ */ defineExtension({
947
+ dependencies: [ie],
964
948
  name: "@lexical/list/Import"
965
949
  });
966
950
  //#endregion
967
- export { Ot as $createListItemNode, $t as $createListNode, ft as $getListDepth, Nt as $handleListInsertParagraph, yt as $insertList, It as $isListItemNode, Rt as $isListNode, St as $removeList, oe as CheckListExtension, Kt as INSERT_CHECK_LIST_COMMAND, ee as INSERT_ORDERED_LIST_COMMAND, te as INSERT_UNORDERED_LIST_COMMAND, se as ListExtension, le as ListImportExtension, Yt as ListImportRules, Pt as ListItemNode, Et as ListNode, Qt as ListSchema, ne as REMOVE_LIST_COMMAND, Zt as UPDATE_LIST_START_COMMAND, Bt as registerCheckList, re as registerList, ie as registerListStrictIndentTransform };
951
+ export { At as $createListItemNode, Mt as $createListNode, ht as $getListDepth, xt as $handleListInsertParagraph, _t as $insertList, Ot as $isListItemNode, $t as $isListNode, bt as $removeList, se as CheckListExtension, Rt as INSERT_CHECK_LIST_COMMAND, te as INSERT_ORDERED_LIST_COMMAND, Zt as INSERT_UNORDERED_LIST_COMMAND, ie as ListExtension, oe as ListImportExtension, Qt as ListImportRules, Nt as ListItemNode, It as ListNode, Gt as ListSchema, ee as REMOVE_LIST_COMMAND, Yt as UPDATE_LIST_START_COMMAND, Kt as registerCheckList, ne as registerList, re as registerListStrictIndentTransform };