@surething/cockpit 1.0.277 → 1.0.278

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 (700) hide show
  1. package/.next-prod/BUILD_ID +1 -1
  2. package/.next-prod/app-path-routes-manifest.json +6 -5
  3. package/.next-prod/build-manifest.json +2 -2
  4. package/.next-prod/cockpit-build.json +1 -1
  5. package/.next-prod/prerender-manifest.json +3 -3
  6. package/.next-prod/routes-manifest.json +6 -0
  7. package/.next-prod/server/app/_global-error/page.js +2 -2
  8. package/.next-prod/server/app/_global-error/page.js.nft.json +1 -1
  9. package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
  10. package/.next-prod/server/app/_global-error.html +1 -1
  11. package/.next-prod/server/app/_global-error.rsc +1 -1
  12. package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
  13. package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  14. package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  15. package/.next-prod/server/app/_not-found/page.js +1 -1
  16. package/.next-prod/server/app/_not-found/page.js.nft.json +1 -1
  17. package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
  18. package/.next-prod/server/app/_not-found.html +2 -2
  19. package/.next-prod/server/app/_not-found.rsc +3 -3
  20. package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +3 -3
  21. package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +3 -3
  22. package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  23. package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  24. package/.next-prod/server/app/api/agent/test/route.js +1 -1
  25. package/.next-prod/server/app/api/agent/test/route.js.nft.json +1 -1
  26. package/.next-prod/server/app/api/bash/route.js +1 -1
  27. package/.next-prod/server/app/api/bash/route.js.nft.json +1 -1
  28. package/.next-prod/server/app/api/bots/[id]/route.js +1 -1
  29. package/.next-prod/server/app/api/bots/[id]/route.js.nft.json +1 -1
  30. package/.next-prod/server/app/api/bots/route.js +1 -1
  31. package/.next-prod/server/app/api/bots/route.js.nft.json +1 -1
  32. package/.next-prod/server/app/api/chat/codex/route.js +1 -1
  33. package/.next-prod/server/app/api/chat/codex/route.js.nft.json +1 -1
  34. package/.next-prod/server/app/api/chat/deepseek/route.js +1 -1
  35. package/.next-prod/server/app/api/chat/deepseek/route.js.nft.json +1 -1
  36. package/.next-prod/server/app/api/chat/glm/route.js +1 -1
  37. package/.next-prod/server/app/api/chat/glm/route.js.nft.json +1 -1
  38. package/.next-prod/server/app/api/chat/kimi/route.js +1 -1
  39. package/.next-prod/server/app/api/chat/kimi/route.js.nft.json +1 -1
  40. package/.next-prod/server/app/api/chat/ollama/route.js +1 -1
  41. package/.next-prod/server/app/api/chat/ollama/route.js.nft.json +1 -1
  42. package/.next-prod/server/app/api/chat/route.js +1 -1
  43. package/.next-prod/server/app/api/chat/route.js.nft.json +1 -1
  44. package/.next-prod/server/app/api/chat/stop/route.js +1 -1
  45. package/.next-prod/server/app/api/chat/stop/route.js.nft.json +1 -1
  46. package/.next-prod/server/app/api/claude-stats/route.js +1 -1
  47. package/.next-prod/server/app/api/claude-stats/route.js.nft.json +1 -1
  48. package/.next-prod/server/app/api/commands/route.js +1 -1
  49. package/.next-prod/server/app/api/commands/route.js.nft.json +1 -1
  50. package/.next-prod/server/app/api/comments/route.js +1 -1
  51. package/.next-prod/server/app/api/comments/route.js.nft.json +1 -1
  52. package/.next-prod/server/app/api/db/columns/route.js +2 -2
  53. package/.next-prod/server/app/api/db/columns/route.js.nft.json +1 -1
  54. package/.next-prod/server/app/api/db/connect/route.js +1 -1
  55. package/.next-prod/server/app/api/db/connect/route.js.nft.json +1 -1
  56. package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
  57. package/.next-prod/server/app/api/db/disconnect/route.js.nft.json +1 -1
  58. package/.next-prod/server/app/api/db/export/route.js +1 -1
  59. package/.next-prod/server/app/api/db/export/route.js.nft.json +1 -1
  60. package/.next-prod/server/app/api/db/query/route.js +1 -1
  61. package/.next-prod/server/app/api/db/query/route.js.nft.json +1 -1
  62. package/.next-prod/server/app/api/db/schemas/route.js +1 -1
  63. package/.next-prod/server/app/api/db/schemas/route.js.nft.json +1 -1
  64. package/.next-prod/server/app/api/deepseek/balance/route.js +1 -1
  65. package/.next-prod/server/app/api/deepseek/balance/route.js.nft.json +1 -1
  66. package/.next-prod/server/app/api/deepseek/credentials/route.js +1 -1
  67. package/.next-prod/server/app/api/deepseek/credentials/route.js.nft.json +1 -1
  68. package/.next-prod/server/app/api/deepseek/models/route.js +1 -1
  69. package/.next-prod/server/app/api/deepseek/models/route.js.nft.json +1 -1
  70. package/.next-prod/server/app/api/dev/spans/route.js +1 -1
  71. package/.next-prod/server/app/api/dev/spans/route.js.nft.json +1 -1
  72. package/.next-prod/server/app/api/extension/version/route.js +1 -1
  73. package/.next-prod/server/app/api/extension/version/route.js.nft.json +1 -1
  74. package/.next-prod/server/app/api/file/route.js +1 -1
  75. package/.next-prod/server/app/api/file/route.js.nft.json +1 -1
  76. package/.next-prod/server/app/api/files/blame/route.js +1 -1
  77. package/.next-prod/server/app/api/files/blame/route.js.nft.json +1 -1
  78. package/.next-prod/server/app/api/files/clipboard/route.js +1 -1
  79. package/.next-prod/server/app/api/files/clipboard/route.js.nft.json +1 -1
  80. package/.next-prod/server/app/api/files/copy/route.js +1 -1
  81. package/.next-prod/server/app/api/files/copy/route.js.nft.json +1 -1
  82. package/.next-prod/server/app/api/files/delete/route.js +1 -1
  83. package/.next-prod/server/app/api/files/delete/route.js.nft.json +1 -1
  84. package/.next-prod/server/app/api/files/expanded/route.js +1 -1
  85. package/.next-prod/server/app/api/files/expanded/route.js.nft.json +1 -1
  86. package/.next-prod/server/app/api/files/index/route.js +1 -1
  87. package/.next-prod/server/app/api/files/index/route.js.nft.json +1 -1
  88. package/.next-prod/server/app/api/files/init/route.js +1 -1
  89. package/.next-prod/server/app/api/files/init/route.js.nft.json +1 -1
  90. package/.next-prod/server/app/api/files/paste/route.js +1 -1
  91. package/.next-prod/server/app/api/files/paste/route.js.nft.json +1 -1
  92. package/.next-prod/server/app/api/files/read/route.js +1 -1
  93. package/.next-prod/server/app/api/files/read/route.js.nft.json +1 -1
  94. package/.next-prod/server/app/api/files/readdir/route.js +1 -1
  95. package/.next-prod/server/app/api/files/readdir/route.js.nft.json +1 -1
  96. package/.next-prod/server/app/api/files/recent/route.js +1 -1
  97. package/.next-prod/server/app/api/files/recent/route.js.nft.json +1 -1
  98. package/.next-prod/server/app/api/files/save/route.js +1 -1
  99. package/.next-prod/server/app/api/files/save/route.js.nft.json +1 -1
  100. package/.next-prod/server/app/api/files/search/route.js +1 -1
  101. package/.next-prod/server/app/api/files/search/route.js.nft.json +1 -1
  102. package/.next-prod/server/app/api/files/stat/route.js +1 -1
  103. package/.next-prod/server/app/api/files/stat/route.js.nft.json +1 -1
  104. package/.next-prod/server/app/api/files/text/route.js +1 -1
  105. package/.next-prod/server/app/api/files/text/route.js.nft.json +1 -1
  106. package/.next-prod/server/app/api/git/blob/route.js +1 -1
  107. package/.next-prod/server/app/api/git/blob/route.js.nft.json +1 -1
  108. package/.next-prod/server/app/api/git/branch-diff/route.js +1 -1
  109. package/.next-prod/server/app/api/git/branch-diff/route.js.nft.json +1 -1
  110. package/.next-prod/server/app/api/git/branches/route.js +1 -1
  111. package/.next-prod/server/app/api/git/branches/route.js.nft.json +1 -1
  112. package/.next-prod/server/app/api/git/commit-diff/route.js +1 -1
  113. package/.next-prod/server/app/api/git/commit-diff/route.js.nft.json +1 -1
  114. package/.next-prod/server/app/api/git/commits/route.js +1 -1
  115. package/.next-prod/server/app/api/git/commits/route.js.nft.json +1 -1
  116. package/.next-prod/server/app/api/git/current-branch/route.js +1 -1
  117. package/.next-prod/server/app/api/git/current-branch/route.js.nft.json +1 -1
  118. package/.next-prod/server/app/api/git/diff/route.js +1 -1
  119. package/.next-prod/server/app/api/git/diff/route.js.nft.json +1 -1
  120. package/.next-prod/server/app/api/git/discard/route.js +1 -1
  121. package/.next-prod/server/app/api/git/discard/route.js.nft.json +1 -1
  122. package/.next-prod/server/app/api/git/stage/route.js +1 -1
  123. package/.next-prod/server/app/api/git/stage/route.js.nft.json +1 -1
  124. package/.next-prod/server/app/api/git/status/route.js +1 -1
  125. package/.next-prod/server/app/api/git/status/route.js.nft.json +1 -1
  126. package/.next-prod/server/app/api/git/unstage/route.js +1 -1
  127. package/.next-prod/server/app/api/git/unstage/route.js.nft.json +1 -1
  128. package/.next-prod/server/app/api/git/worktree/route.js +1 -1
  129. package/.next-prod/server/app/api/git/worktree/route.js.nft.json +1 -1
  130. package/.next-prod/server/app/api/glm/credentials/route.js +1 -1
  131. package/.next-prod/server/app/api/glm/credentials/route.js.nft.json +1 -1
  132. package/.next-prod/server/app/api/glm/models/route.js +1 -1
  133. package/.next-prod/server/app/api/glm/models/route.js.nft.json +1 -1
  134. package/.next-prod/server/app/api/glm/usage/route.js +1 -1
  135. package/.next-prod/server/app/api/glm/usage/route.js.nft.json +1 -1
  136. package/.next-prod/server/app/api/global-state/route.js +1 -1
  137. package/.next-prod/server/app/api/global-state/route.js.nft.json +1 -1
  138. package/.next-prod/server/app/api/health/route.js +1 -1
  139. package/.next-prod/server/app/api/health/route.js.nft.json +1 -1
  140. package/.next-prod/server/app/api/html-apps/[id]/route.js +1 -1
  141. package/.next-prod/server/app/api/html-apps/[id]/route.js.nft.json +1 -1
  142. package/.next-prod/server/app/api/html-apps/route.js +1 -1
  143. package/.next-prod/server/app/api/html-apps/route.js.nft.json +1 -1
  144. package/.next-prod/server/app/api/instructions/config/route.js +1 -1
  145. package/.next-prod/server/app/api/instructions/config/route.js.nft.json +1 -1
  146. package/.next-prod/server/app/api/kimi/credentials/route.js +1 -1
  147. package/.next-prod/server/app/api/kimi/credentials/route.js.nft.json +1 -1
  148. package/.next-prod/server/app/api/kimi/models/route.js +1 -1
  149. package/.next-prod/server/app/api/kimi/models/route.js.nft.json +1 -1
  150. package/.next-prod/server/app/api/kimi/usage/route.js +1 -1
  151. package/.next-prod/server/app/api/kimi/usage/route.js.nft.json +1 -1
  152. package/.next-prod/server/app/api/lsp/definition/route.js +1 -1
  153. package/.next-prod/server/app/api/lsp/definition/route.js.nft.json +1 -1
  154. package/.next-prod/server/app/api/lsp/hover/route.js +1 -1
  155. package/.next-prod/server/app/api/lsp/hover/route.js.nft.json +1 -1
  156. package/.next-prod/server/app/api/lsp/references/route.js +1 -1
  157. package/.next-prod/server/app/api/lsp/references/route.js.nft.json +1 -1
  158. package/.next-prod/server/app/api/lsp/status/route.js +1 -1
  159. package/.next-prod/server/app/api/lsp/status/route.js.nft.json +1 -1
  160. package/.next-prod/server/app/api/lsp/warmup/route.js +1 -1
  161. package/.next-prod/server/app/api/lsp/warmup/route.js.nft.json +1 -1
  162. package/.next-prod/server/app/api/mysql/columns/route.js +2 -2
  163. package/.next-prod/server/app/api/mysql/columns/route.js.nft.json +1 -1
  164. package/.next-prod/server/app/api/mysql/connect/route.js +1 -1
  165. package/.next-prod/server/app/api/mysql/connect/route.js.nft.json +1 -1
  166. package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -1
  167. package/.next-prod/server/app/api/mysql/disconnect/route.js.nft.json +1 -1
  168. package/.next-prod/server/app/api/mysql/export/route.js +1 -1
  169. package/.next-prod/server/app/api/mysql/export/route.js.nft.json +1 -1
  170. package/.next-prod/server/app/api/mysql/query/route.js +1 -1
  171. package/.next-prod/server/app/api/mysql/query/route.js.nft.json +1 -1
  172. package/.next-prod/server/app/api/mysql/schemas/route.js +1 -1
  173. package/.next-prod/server/app/api/mysql/schemas/route.js.nft.json +1 -1
  174. package/.next-prod/server/app/api/neo4j/connect/route.js +1 -1
  175. package/.next-prod/server/app/api/neo4j/connect/route.js.nft.json +1 -1
  176. package/.next-prod/server/app/api/neo4j/disconnect/route.js +1 -1
  177. package/.next-prod/server/app/api/neo4j/disconnect/route.js.nft.json +1 -1
  178. package/.next-prod/server/app/api/neo4j/query/route.js +1 -1
  179. package/.next-prod/server/app/api/neo4j/query/route.js.nft.json +1 -1
  180. package/.next-prod/server/app/api/neo4j/schema/route.js +1 -1
  181. package/.next-prod/server/app/api/neo4j/schema/route.js.nft.json +1 -1
  182. package/.next-prod/server/app/api/note/route.js +1 -1
  183. package/.next-prod/server/app/api/note/route.js.nft.json +1 -1
  184. package/.next-prod/server/app/api/ollama/config/route.js +1 -1
  185. package/.next-prod/server/app/api/ollama/config/route.js.nft.json +1 -1
  186. package/.next-prod/server/app/api/ollama/default-model/route.js +1 -1
  187. package/.next-prod/server/app/api/ollama/default-model/route.js.nft.json +1 -1
  188. package/.next-prod/server/app/api/ollama/models/route.js +1 -1
  189. package/.next-prod/server/app/api/ollama/models/route.js.nft.json +1 -1
  190. package/.next-prod/server/app/api/ollama/start/route.js +1 -1
  191. package/.next-prod/server/app/api/ollama/start/route.js.nft.json +1 -1
  192. package/.next-prod/server/app/api/open-cursor/route.js +1 -1
  193. package/.next-prod/server/app/api/open-cursor/route.js.nft.json +1 -1
  194. package/.next-prod/server/app/api/open-vscode/route.js +1 -1
  195. package/.next-prod/server/app/api/open-vscode/route.js.nft.json +1 -1
  196. package/.next-prod/server/app/api/output-styles/config/route.js +1 -0
  197. package/.next-prod/server/app/api/output-styles/config/route.js.nft.json +1 -0
  198. package/.next-prod/server/app/api/output-styles/config/route_client-reference-manifest.js +1 -0
  199. package/.next-prod/server/app/api/pick-folder/route.js +1 -1
  200. package/.next-prod/server/app/api/pick-folder/route.js.nft.json +1 -1
  201. package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
  202. package/.next-prod/server/app/api/pinned-sessions/route.js.nft.json +1 -1
  203. package/.next-prod/server/app/api/project-settings/route.js +1 -1
  204. package/.next-prod/server/app/api/project-settings/route.js.nft.json +1 -1
  205. package/.next-prod/server/app/api/project-state/route.js +2 -2
  206. package/.next-prod/server/app/api/project-state/route.js.nft.json +1 -1
  207. package/.next-prod/server/app/api/projectGraph/affected/route.js +1 -1
  208. package/.next-prod/server/app/api/projectGraph/affected/route.js.nft.json +1 -1
  209. package/.next-prod/server/app/api/projectGraph/callees/route.js +1 -1
  210. package/.next-prod/server/app/api/projectGraph/callees/route.js.nft.json +1 -1
  211. package/.next-prod/server/app/api/projectGraph/callers/route.js +1 -1
  212. package/.next-prod/server/app/api/projectGraph/callers/route.js.nft.json +1 -1
  213. package/.next-prod/server/app/api/projectGraph/coedit/route.js +1 -1
  214. package/.next-prod/server/app/api/projectGraph/coedit/route.js.nft.json +1 -1
  215. package/.next-prod/server/app/api/projectGraph/context/route.js +1 -1
  216. package/.next-prod/server/app/api/projectGraph/context/route.js.nft.json +1 -1
  217. package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
  218. package/.next-prod/server/app/api/projectGraph/file/route.js.nft.json +1 -1
  219. package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
  220. package/.next-prod/server/app/api/projectGraph/file-functions/route.js.nft.json +1 -1
  221. package/.next-prod/server/app/api/projectGraph/impact/route.js +1 -1
  222. package/.next-prod/server/app/api/projectGraph/impact/route.js.nft.json +1 -1
  223. package/.next-prod/server/app/api/projectGraph/related/route.js +1 -1
  224. package/.next-prod/server/app/api/projectGraph/related/route.js.nft.json +1 -1
  225. package/.next-prod/server/app/api/projectGraph/risk/route.js +1 -1
  226. package/.next-prod/server/app/api/projectGraph/risk/route.js.nft.json +1 -1
  227. package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
  228. package/.next-prod/server/app/api/projectGraph/search/route.js.nft.json +1 -1
  229. package/.next-prod/server/app/api/projects/route.js +1 -1
  230. package/.next-prod/server/app/api/projects/route.js.nft.json +1 -1
  231. package/.next-prod/server/app/api/push/public-key/route.js +1 -1
  232. package/.next-prod/server/app/api/push/public-key/route.js.nft.json +1 -1
  233. package/.next-prod/server/app/api/push/subscribe/route.js +1 -1
  234. package/.next-prod/server/app/api/push/subscribe/route.js.nft.json +1 -1
  235. package/.next-prod/server/app/api/push/unsubscribe/route.js +1 -1
  236. package/.next-prod/server/app/api/push/unsubscribe/route.js.nft.json +1 -1
  237. package/.next-prod/server/app/api/redis/command/route.js +1 -1
  238. package/.next-prod/server/app/api/redis/command/route.js.nft.json +1 -1
  239. package/.next-prod/server/app/api/redis/connect/route.js +1 -1
  240. package/.next-prod/server/app/api/redis/connect/route.js.nft.json +1 -1
  241. package/.next-prod/server/app/api/redis/delete/route.js +1 -1
  242. package/.next-prod/server/app/api/redis/delete/route.js.nft.json +1 -1
  243. package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
  244. package/.next-prod/server/app/api/redis/disconnect/route.js.nft.json +1 -1
  245. package/.next-prod/server/app/api/redis/get/route.js +1 -1
  246. package/.next-prod/server/app/api/redis/get/route.js.nft.json +1 -1
  247. package/.next-prod/server/app/api/redis/keys/route.js +1 -1
  248. package/.next-prod/server/app/api/redis/keys/route.js.nft.json +1 -1
  249. package/.next-prod/server/app/api/redis/set/route.js +1 -1
  250. package/.next-prod/server/app/api/redis/set/route.js.nft.json +1 -1
  251. package/.next-prod/server/app/api/restart/route.js +1 -1
  252. package/.next-prod/server/app/api/restart/route.js.nft.json +1 -1
  253. package/.next-prod/server/app/api/review/[id]/comments/route.js +1 -1
  254. package/.next-prod/server/app/api/review/[id]/comments/route.js.nft.json +1 -1
  255. package/.next-prod/server/app/api/review/[id]/replies/route.js +1 -1
  256. package/.next-prod/server/app/api/review/[id]/replies/route.js.nft.json +1 -1
  257. package/.next-prod/server/app/api/review/[id]/route.js +1 -1
  258. package/.next-prod/server/app/api/review/[id]/route.js.nft.json +1 -1
  259. package/.next-prod/server/app/api/review/identify/route.js +1 -1
  260. package/.next-prod/server/app/api/review/identify/route.js.nft.json +1 -1
  261. package/.next-prod/server/app/api/review/order/route.js +1 -1
  262. package/.next-prod/server/app/api/review/order/route.js.nft.json +1 -1
  263. package/.next-prod/server/app/api/review/route.js +1 -1
  264. package/.next-prod/server/app/api/review/route.js.nft.json +1 -1
  265. package/.next-prod/server/app/api/review/share-info/route.js +1 -1
  266. package/.next-prod/server/app/api/review/share-info/route.js.nft.json +1 -1
  267. package/.next-prod/server/app/api/review/users/route.js +1 -1
  268. package/.next-prod/server/app/api/review/users/route.js.nft.json +1 -1
  269. package/.next-prod/server/app/api/scheduled-tasks/route.js +2 -2
  270. package/.next-prod/server/app/api/scheduled-tasks/route.js.nft.json +1 -1
  271. package/.next-prod/server/app/api/services/config/route.js +1 -1
  272. package/.next-prod/server/app/api/services/config/route.js.nft.json +1 -1
  273. package/.next-prod/server/app/api/services/scripts/route.js +1 -1
  274. package/.next-prod/server/app/api/services/scripts/route.js.nft.json +1 -1
  275. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
  276. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js.nft.json +1 -1
  277. package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
  278. package/.next-prod/server/app/api/session/[sessionId]/history/route.js.nft.json +1 -1
  279. package/.next-prod/server/app/api/session/[sessionId]/turn/route.js +2 -2
  280. package/.next-prod/server/app/api/session/[sessionId]/turn/route.js.nft.json +1 -1
  281. package/.next-prod/server/app/api/session/user-messages/route.js +1 -1
  282. package/.next-prod/server/app/api/session/user-messages/route.js.nft.json +1 -1
  283. package/.next-prod/server/app/api/session-by-path/route.js +1 -1
  284. package/.next-prod/server/app/api/session-by-path/route.js.nft.json +1 -1
  285. package/.next-prod/server/app/api/sessions/delegate/route.js +1 -1
  286. package/.next-prod/server/app/api/sessions/delegate/route.js.nft.json +1 -1
  287. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
  288. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js.nft.json +1 -1
  289. package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
  290. package/.next-prod/server/app/api/sessions/projects/route.js.nft.json +1 -1
  291. package/.next-prod/server/app/api/sessions/search/route.js +1 -1
  292. package/.next-prod/server/app/api/sessions/search/route.js.nft.json +1 -1
  293. package/.next-prod/server/app/api/sessions/status/route.js +1 -1
  294. package/.next-prod/server/app/api/sessions/status/route.js.nft.json +1 -1
  295. package/.next-prod/server/app/api/settings/route.js +1 -1
  296. package/.next-prod/server/app/api/settings/route.js.nft.json +1 -1
  297. package/.next-prod/server/app/api/shutdown/route.js +1 -1
  298. package/.next-prod/server/app/api/shutdown/route.js.nft.json +1 -1
  299. package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
  300. package/.next-prod/server/app/api/skills/[id]/route.js.nft.json +1 -1
  301. package/.next-prod/server/app/api/skills/content/route.js +1 -1
  302. package/.next-prod/server/app/api/skills/content/route.js.nft.json +1 -1
  303. package/.next-prod/server/app/api/skills/route.js +1 -1
  304. package/.next-prod/server/app/api/skills/route.js.nft.json +1 -1
  305. package/.next-prod/server/app/api/snapshots/blob/route.js +1 -1
  306. package/.next-prod/server/app/api/snapshots/blob/route.js.nft.json +1 -1
  307. package/.next-prod/server/app/api/snapshots/diff/route.js +1 -1
  308. package/.next-prod/server/app/api/snapshots/diff/route.js.nft.json +1 -1
  309. package/.next-prod/server/app/api/snapshots/range-diff/route.js +1 -1
  310. package/.next-prod/server/app/api/snapshots/range-diff/route.js.nft.json +1 -1
  311. package/.next-prod/server/app/api/snapshots/route.js +1 -1
  312. package/.next-prod/server/app/api/snapshots/route.js.nft.json +1 -1
  313. package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
  314. package/.next-prod/server/app/api/terminal/aliases/route.js.nft.json +1 -1
  315. package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
  316. package/.next-prod/server/app/api/terminal/autocomplete/route.js.nft.json +1 -1
  317. package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
  318. package/.next-prod/server/app/api/terminal/bubble-order/route.js.nft.json +1 -1
  319. package/.next-prod/server/app/api/terminal/env/route.js +1 -1
  320. package/.next-prod/server/app/api/terminal/env/route.js.nft.json +1 -1
  321. package/.next-prod/server/app/api/terminal/history/route.js +1 -1
  322. package/.next-prod/server/app/api/terminal/history/route.js.nft.json +1 -1
  323. package/.next-prod/server/app/api/update/route.js +1 -1
  324. package/.next-prod/server/app/api/update/route.js.nft.json +1 -1
  325. package/.next-prod/server/app/api/update-state/route.js +1 -1
  326. package/.next-prod/server/app/api/update-state/route.js.nft.json +1 -1
  327. package/.next-prod/server/app/api/version/route.js +1 -1
  328. package/.next-prod/server/app/api/version/route.js.nft.json +1 -1
  329. package/.next-prod/server/app/apps/[...path]/route.js +1 -1
  330. package/.next-prod/server/app/apps/[...path]/route.js.nft.json +1 -1
  331. package/.next-prod/server/app/favicon.ico/route.js +1 -1
  332. package/.next-prod/server/app/favicon.ico/route.js.nft.json +1 -1
  333. package/.next-prod/server/app/m/page.js +1 -1
  334. package/.next-prod/server/app/m/page.js.nft.json +1 -1
  335. package/.next-prod/server/app/m/page_client-reference-manifest.js +1 -1
  336. package/.next-prod/server/app/manifest.webmanifest/route.js +2 -2
  337. package/.next-prod/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  338. package/.next-prod/server/app/page.js +1 -1
  339. package/.next-prod/server/app/page.js.nft.json +1 -1
  340. package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
  341. package/.next-prod/server/app/project/page.js +1 -1
  342. package/.next-prod/server/app/project/page.js.nft.json +1 -1
  343. package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
  344. package/.next-prod/server/app/review/[id]/page.js +1 -1
  345. package/.next-prod/server/app/review/[id]/page.js.nft.json +1 -1
  346. package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
  347. package/.next-prod/server/app-paths-manifest.json +6 -5
  348. package/.next-prod/server/chunks/2493.js +23 -17
  349. package/.next-prod/server/chunks/4949.js +1 -1
  350. package/.next-prod/server/chunks/{8131.js → 5591.js} +4 -4
  351. package/.next-prod/server/chunks/6495.js +1 -1
  352. package/.next-prod/server/chunks/6548.js +1 -1
  353. package/.next-prod/server/chunks/7438.js +12 -11
  354. package/.next-prod/server/functions-config-manifest.json +1 -0
  355. package/.next-prod/server/middleware-build-manifest.js +1 -1
  356. package/.next-prod/server/pages/404.html +2 -2
  357. package/.next-prod/server/pages/500.html +1 -1
  358. package/.next-prod/server/server-reference-manifest.json +1 -1
  359. package/.next-prod/static/I8gbcTQRiRdMF09goE7WI/_buildManifest.js +1 -0
  360. package/.next-prod/static/chunks/{99365-c697e983b9728d08.js → 21829-993d9bfd63c1ee9e.js} +2 -2
  361. package/.next-prod/static/chunks/60875-acaae14dd7ddcd91.js +35 -0
  362. package/.next-prod/static/chunks/95313-eb607273c688b022.js +17 -0
  363. package/.next-prod/static/chunks/99092-f94ee242866d22b9.js +716 -0
  364. package/.next-prod/static/chunks/app/_global-error/{page-6ac899b2cd280c12.js → page-b3c86dd8f06140fe.js} +1 -1
  365. package/.next-prod/static/chunks/app/api/agent/test/{route-6ac899b2cd280c12.js → route-b3c86dd8f06140fe.js} +1 -1
  366. package/.next-prod/static/chunks/app/api/bash/{route-6ac899b2cd280c12.js → route-b3c86dd8f06140fe.js} +1 -1
  367. package/.next-prod/static/chunks/app/api/bots/[id]/{route-6ac899b2cd280c12.js → route-b3c86dd8f06140fe.js} +1 -1
  368. package/.next-prod/static/chunks/app/api/bots/route-b3c86dd8f06140fe.js +1 -0
  369. package/.next-prod/static/chunks/app/api/chat/codex/route-b3c86dd8f06140fe.js +1 -0
  370. package/.next-prod/static/chunks/app/api/chat/deepseek/route-b3c86dd8f06140fe.js +1 -0
  371. package/.next-prod/static/chunks/app/api/chat/glm/route-b3c86dd8f06140fe.js +1 -0
  372. package/.next-prod/static/chunks/app/api/chat/kimi/route-b3c86dd8f06140fe.js +1 -0
  373. package/.next-prod/static/chunks/app/api/chat/ollama/route-b3c86dd8f06140fe.js +1 -0
  374. package/.next-prod/static/chunks/app/api/chat/route-b3c86dd8f06140fe.js +1 -0
  375. package/.next-prod/static/chunks/app/api/chat/stop/route-b3c86dd8f06140fe.js +1 -0
  376. package/.next-prod/static/chunks/app/api/claude-stats/route-b3c86dd8f06140fe.js +1 -0
  377. package/.next-prod/static/chunks/app/api/commands/route-b3c86dd8f06140fe.js +1 -0
  378. package/.next-prod/static/chunks/app/api/comments/route-b3c86dd8f06140fe.js +1 -0
  379. package/.next-prod/static/chunks/app/api/db/columns/route-b3c86dd8f06140fe.js +1 -0
  380. package/.next-prod/static/chunks/app/api/db/connect/route-b3c86dd8f06140fe.js +1 -0
  381. package/.next-prod/static/chunks/app/api/db/disconnect/route-b3c86dd8f06140fe.js +1 -0
  382. package/.next-prod/static/chunks/app/api/db/export/route-b3c86dd8f06140fe.js +1 -0
  383. package/.next-prod/static/chunks/app/api/db/query/route-b3c86dd8f06140fe.js +1 -0
  384. package/.next-prod/static/chunks/app/api/db/schemas/route-b3c86dd8f06140fe.js +1 -0
  385. package/.next-prod/static/chunks/app/api/deepseek/balance/route-b3c86dd8f06140fe.js +1 -0
  386. package/.next-prod/static/chunks/app/api/deepseek/credentials/route-b3c86dd8f06140fe.js +1 -0
  387. package/.next-prod/static/chunks/app/api/deepseek/models/route-b3c86dd8f06140fe.js +1 -0
  388. package/.next-prod/static/chunks/app/api/dev/spans/route-b3c86dd8f06140fe.js +1 -0
  389. package/.next-prod/static/chunks/app/api/extension/version/route-b3c86dd8f06140fe.js +1 -0
  390. package/.next-prod/static/chunks/app/api/file/route-b3c86dd8f06140fe.js +1 -0
  391. package/.next-prod/static/chunks/app/api/files/blame/route-b3c86dd8f06140fe.js +1 -0
  392. package/.next-prod/static/chunks/app/api/files/clipboard/route-b3c86dd8f06140fe.js +1 -0
  393. package/.next-prod/static/chunks/app/api/files/copy/route-b3c86dd8f06140fe.js +1 -0
  394. package/.next-prod/static/chunks/app/api/files/delete/route-b3c86dd8f06140fe.js +1 -0
  395. package/.next-prod/static/chunks/app/api/files/expanded/route-b3c86dd8f06140fe.js +1 -0
  396. package/.next-prod/static/chunks/app/api/files/index/route-b3c86dd8f06140fe.js +1 -0
  397. package/.next-prod/static/chunks/app/api/files/init/route-b3c86dd8f06140fe.js +1 -0
  398. package/.next-prod/static/chunks/app/api/files/paste/route-b3c86dd8f06140fe.js +1 -0
  399. package/.next-prod/static/chunks/app/api/files/read/route-b3c86dd8f06140fe.js +1 -0
  400. package/.next-prod/static/chunks/app/api/files/readdir/route-b3c86dd8f06140fe.js +1 -0
  401. package/.next-prod/static/chunks/app/api/files/recent/route-b3c86dd8f06140fe.js +1 -0
  402. package/.next-prod/static/chunks/app/api/files/save/route-b3c86dd8f06140fe.js +1 -0
  403. package/.next-prod/static/chunks/app/api/files/search/route-b3c86dd8f06140fe.js +1 -0
  404. package/.next-prod/static/chunks/app/api/files/stat/route-b3c86dd8f06140fe.js +1 -0
  405. package/.next-prod/static/chunks/app/api/files/text/route-b3c86dd8f06140fe.js +1 -0
  406. package/.next-prod/static/chunks/app/api/git/blob/route-b3c86dd8f06140fe.js +1 -0
  407. package/.next-prod/static/chunks/app/api/git/branch-diff/route-b3c86dd8f06140fe.js +1 -0
  408. package/.next-prod/static/chunks/app/api/git/branches/route-b3c86dd8f06140fe.js +1 -0
  409. package/.next-prod/static/chunks/app/api/git/commit-diff/route-b3c86dd8f06140fe.js +1 -0
  410. package/.next-prod/static/chunks/app/api/git/commits/route-b3c86dd8f06140fe.js +1 -0
  411. package/.next-prod/static/chunks/app/api/git/current-branch/route-b3c86dd8f06140fe.js +1 -0
  412. package/.next-prod/static/chunks/app/api/git/diff/route-b3c86dd8f06140fe.js +1 -0
  413. package/.next-prod/static/chunks/app/api/git/discard/route-b3c86dd8f06140fe.js +1 -0
  414. package/.next-prod/static/chunks/app/api/git/stage/route-b3c86dd8f06140fe.js +1 -0
  415. package/.next-prod/static/chunks/app/api/git/status/route-b3c86dd8f06140fe.js +1 -0
  416. package/.next-prod/static/chunks/app/api/git/unstage/route-b3c86dd8f06140fe.js +1 -0
  417. package/.next-prod/static/chunks/app/api/git/worktree/route-b3c86dd8f06140fe.js +1 -0
  418. package/.next-prod/static/chunks/app/api/glm/credentials/route-b3c86dd8f06140fe.js +1 -0
  419. package/.next-prod/static/chunks/app/api/glm/models/route-b3c86dd8f06140fe.js +1 -0
  420. package/.next-prod/static/chunks/app/api/glm/usage/route-b3c86dd8f06140fe.js +1 -0
  421. package/.next-prod/static/chunks/app/api/global-state/route-b3c86dd8f06140fe.js +1 -0
  422. package/.next-prod/static/chunks/app/api/health/route-b3c86dd8f06140fe.js +1 -0
  423. package/.next-prod/static/chunks/app/api/html-apps/[id]/route-b3c86dd8f06140fe.js +1 -0
  424. package/.next-prod/static/chunks/app/api/html-apps/route-b3c86dd8f06140fe.js +1 -0
  425. package/.next-prod/static/chunks/app/api/instructions/config/route-b3c86dd8f06140fe.js +1 -0
  426. package/.next-prod/static/chunks/app/api/kimi/credentials/route-b3c86dd8f06140fe.js +1 -0
  427. package/.next-prod/static/chunks/app/api/kimi/models/route-b3c86dd8f06140fe.js +1 -0
  428. package/.next-prod/static/chunks/app/api/kimi/usage/route-b3c86dd8f06140fe.js +1 -0
  429. package/.next-prod/static/chunks/app/api/lsp/definition/route-b3c86dd8f06140fe.js +1 -0
  430. package/.next-prod/static/chunks/app/api/lsp/hover/route-b3c86dd8f06140fe.js +1 -0
  431. package/.next-prod/static/chunks/app/api/lsp/references/route-b3c86dd8f06140fe.js +1 -0
  432. package/.next-prod/static/chunks/app/api/lsp/status/route-b3c86dd8f06140fe.js +1 -0
  433. package/.next-prod/static/chunks/app/api/lsp/warmup/route-b3c86dd8f06140fe.js +1 -0
  434. package/.next-prod/static/chunks/app/api/mysql/columns/route-b3c86dd8f06140fe.js +1 -0
  435. package/.next-prod/static/chunks/app/api/mysql/connect/route-b3c86dd8f06140fe.js +1 -0
  436. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-b3c86dd8f06140fe.js +1 -0
  437. package/.next-prod/static/chunks/app/api/mysql/export/route-b3c86dd8f06140fe.js +1 -0
  438. package/.next-prod/static/chunks/app/api/mysql/query/route-b3c86dd8f06140fe.js +1 -0
  439. package/.next-prod/static/chunks/app/api/mysql/schemas/route-b3c86dd8f06140fe.js +1 -0
  440. package/.next-prod/static/chunks/app/api/neo4j/connect/route-b3c86dd8f06140fe.js +1 -0
  441. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-b3c86dd8f06140fe.js +1 -0
  442. package/.next-prod/static/chunks/app/api/neo4j/query/route-b3c86dd8f06140fe.js +1 -0
  443. package/.next-prod/static/chunks/app/api/neo4j/schema/route-b3c86dd8f06140fe.js +1 -0
  444. package/.next-prod/static/chunks/app/api/note/route-b3c86dd8f06140fe.js +1 -0
  445. package/.next-prod/static/chunks/app/api/ollama/config/route-b3c86dd8f06140fe.js +1 -0
  446. package/.next-prod/static/chunks/app/api/ollama/default-model/route-b3c86dd8f06140fe.js +1 -0
  447. package/.next-prod/static/chunks/app/api/ollama/models/route-b3c86dd8f06140fe.js +1 -0
  448. package/.next-prod/static/chunks/app/api/ollama/start/route-b3c86dd8f06140fe.js +1 -0
  449. package/.next-prod/static/chunks/app/api/open-cursor/route-b3c86dd8f06140fe.js +1 -0
  450. package/.next-prod/static/chunks/app/api/open-vscode/route-b3c86dd8f06140fe.js +1 -0
  451. package/.next-prod/static/chunks/app/api/output-styles/config/route-b3c86dd8f06140fe.js +1 -0
  452. package/.next-prod/static/chunks/app/api/pick-folder/route-b3c86dd8f06140fe.js +1 -0
  453. package/.next-prod/static/chunks/app/api/pinned-sessions/route-b3c86dd8f06140fe.js +1 -0
  454. package/.next-prod/static/chunks/app/api/project-settings/route-b3c86dd8f06140fe.js +1 -0
  455. package/.next-prod/static/chunks/app/api/project-state/route-b3c86dd8f06140fe.js +1 -0
  456. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-b3c86dd8f06140fe.js +1 -0
  457. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-b3c86dd8f06140fe.js +1 -0
  458. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-b3c86dd8f06140fe.js +1 -0
  459. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-b3c86dd8f06140fe.js +1 -0
  460. package/.next-prod/static/chunks/app/api/projectGraph/context/route-b3c86dd8f06140fe.js +1 -0
  461. package/.next-prod/static/chunks/app/api/projectGraph/file/route-b3c86dd8f06140fe.js +1 -0
  462. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-b3c86dd8f06140fe.js +1 -0
  463. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-b3c86dd8f06140fe.js +1 -0
  464. package/.next-prod/static/chunks/app/api/projectGraph/related/route-b3c86dd8f06140fe.js +1 -0
  465. package/.next-prod/static/chunks/app/api/projectGraph/risk/route-b3c86dd8f06140fe.js +1 -0
  466. package/.next-prod/static/chunks/app/api/projectGraph/search/route-b3c86dd8f06140fe.js +1 -0
  467. package/.next-prod/static/chunks/app/api/projects/route-b3c86dd8f06140fe.js +1 -0
  468. package/.next-prod/static/chunks/app/api/push/public-key/route-b3c86dd8f06140fe.js +1 -0
  469. package/.next-prod/static/chunks/app/api/push/subscribe/route-b3c86dd8f06140fe.js +1 -0
  470. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-b3c86dd8f06140fe.js +1 -0
  471. package/.next-prod/static/chunks/app/api/redis/command/route-b3c86dd8f06140fe.js +1 -0
  472. package/.next-prod/static/chunks/app/api/redis/connect/route-b3c86dd8f06140fe.js +1 -0
  473. package/.next-prod/static/chunks/app/api/redis/delete/route-b3c86dd8f06140fe.js +1 -0
  474. package/.next-prod/static/chunks/app/api/redis/disconnect/route-b3c86dd8f06140fe.js +1 -0
  475. package/.next-prod/static/chunks/app/api/redis/get/route-b3c86dd8f06140fe.js +1 -0
  476. package/.next-prod/static/chunks/app/api/redis/keys/route-b3c86dd8f06140fe.js +1 -0
  477. package/.next-prod/static/chunks/app/api/redis/set/route-b3c86dd8f06140fe.js +1 -0
  478. package/.next-prod/static/chunks/app/api/restart/route-b3c86dd8f06140fe.js +1 -0
  479. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-b3c86dd8f06140fe.js +1 -0
  480. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-b3c86dd8f06140fe.js +1 -0
  481. package/.next-prod/static/chunks/app/api/review/[id]/route-b3c86dd8f06140fe.js +1 -0
  482. package/.next-prod/static/chunks/app/api/review/identify/route-b3c86dd8f06140fe.js +1 -0
  483. package/.next-prod/static/chunks/app/api/review/order/route-b3c86dd8f06140fe.js +1 -0
  484. package/.next-prod/static/chunks/app/api/review/route-b3c86dd8f06140fe.js +1 -0
  485. package/.next-prod/static/chunks/app/api/review/share-info/route-b3c86dd8f06140fe.js +1 -0
  486. package/.next-prod/static/chunks/app/api/review/users/route-b3c86dd8f06140fe.js +1 -0
  487. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-b3c86dd8f06140fe.js +1 -0
  488. package/.next-prod/static/chunks/app/api/services/config/route-b3c86dd8f06140fe.js +1 -0
  489. package/.next-prod/static/chunks/app/api/services/scripts/route-b3c86dd8f06140fe.js +1 -0
  490. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-b3c86dd8f06140fe.js +1 -0
  491. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-b3c86dd8f06140fe.js +1 -0
  492. package/.next-prod/static/chunks/app/api/session/[sessionId]/turn/route-b3c86dd8f06140fe.js +1 -0
  493. package/.next-prod/static/chunks/app/api/session/user-messages/route-b3c86dd8f06140fe.js +1 -0
  494. package/.next-prod/static/chunks/app/api/session-by-path/route-b3c86dd8f06140fe.js +1 -0
  495. package/.next-prod/static/chunks/app/api/sessions/delegate/route-b3c86dd8f06140fe.js +1 -0
  496. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-b3c86dd8f06140fe.js +1 -0
  497. package/.next-prod/static/chunks/app/api/sessions/projects/route-b3c86dd8f06140fe.js +1 -0
  498. package/.next-prod/static/chunks/app/api/sessions/search/route-b3c86dd8f06140fe.js +1 -0
  499. package/.next-prod/static/chunks/app/api/sessions/status/route-b3c86dd8f06140fe.js +1 -0
  500. package/.next-prod/static/chunks/app/api/settings/route-b3c86dd8f06140fe.js +1 -0
  501. package/.next-prod/static/chunks/app/api/shutdown/route-b3c86dd8f06140fe.js +1 -0
  502. package/.next-prod/static/chunks/app/api/skills/[id]/route-b3c86dd8f06140fe.js +1 -0
  503. package/.next-prod/static/chunks/app/api/skills/content/route-b3c86dd8f06140fe.js +1 -0
  504. package/.next-prod/static/chunks/app/api/skills/route-b3c86dd8f06140fe.js +1 -0
  505. package/.next-prod/static/chunks/app/api/snapshots/blob/route-b3c86dd8f06140fe.js +1 -0
  506. package/.next-prod/static/chunks/app/api/snapshots/diff/route-b3c86dd8f06140fe.js +1 -0
  507. package/.next-prod/static/chunks/app/api/snapshots/range-diff/route-b3c86dd8f06140fe.js +1 -0
  508. package/.next-prod/static/chunks/app/api/snapshots/route-b3c86dd8f06140fe.js +1 -0
  509. package/.next-prod/static/chunks/app/api/terminal/aliases/route-b3c86dd8f06140fe.js +1 -0
  510. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-b3c86dd8f06140fe.js +1 -0
  511. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-b3c86dd8f06140fe.js +1 -0
  512. package/.next-prod/static/chunks/app/api/terminal/env/route-b3c86dd8f06140fe.js +1 -0
  513. package/.next-prod/static/chunks/app/api/terminal/history/route-b3c86dd8f06140fe.js +1 -0
  514. package/.next-prod/static/chunks/app/api/update/route-b3c86dd8f06140fe.js +1 -0
  515. package/.next-prod/static/chunks/app/api/update-state/route-b3c86dd8f06140fe.js +1 -0
  516. package/.next-prod/static/chunks/app/api/version/route-b3c86dd8f06140fe.js +1 -0
  517. package/.next-prod/static/chunks/app/apps/[...path]/route-b3c86dd8f06140fe.js +1 -0
  518. package/.next-prod/static/chunks/app/{layout-f3f9426dccb507b2.js → layout-589122feb9071556.js} +1 -1
  519. package/.next-prod/static/chunks/app/manifest.webmanifest/route-b3c86dd8f06140fe.js +1 -0
  520. package/.next-prod/static/chunks/app/{page-d97e5df9486f39cb.js → page-a69072e6dbd4a059.js} +1 -1
  521. package/.next-prod/static/chunks/app/project/{page-d97e5df9486f39cb.js → page-a69072e6dbd4a059.js} +1 -1
  522. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-b3c86dd8f06140fe.js +1 -0
  523. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-b3c86dd8f06140fe.js +1 -0
  524. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-b3c86dd8f06140fe.js +1 -0
  525. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-b3c86dd8f06140fe.js +1 -0
  526. package/.next-prod/static/css/2abfec9d3e93011f.css +1 -0
  527. package/.next-prod/trace +15 -15
  528. package/.next-prod/trace-build +1 -1
  529. package/.next-prod/types/app/api/output-styles/config/route.ts +353 -0
  530. package/.next-prod/types/routes.d.ts +2 -1
  531. package/.next-prod/types/validator.ts +9 -0
  532. package/dist/{chunk-SGVT4QFB.mjs → chunk-LPZXJPD6.mjs} +231 -53
  533. package/dist/{chunk-5ZXPIG4Z.mjs → chunk-W5MB7DIM.mjs} +1 -1
  534. package/dist/httpApi.mjs +2 -2
  535. package/dist/scheduledTasks.mjs +32 -2
  536. package/dist/wsServer.mjs +12 -3
  537. package/package.json +3 -3
  538. package/skills/bot-run/SKILL.md +6 -6
  539. package/skills/bot-run/followup.md +1 -1
  540. package/skills/bot-run/wait.md +1 -1
  541. package/.next-prod/static/chunks/89656-1b5bae337f6b6892.js +0 -34
  542. package/.next-prod/static/chunks/95313-96a541e7ce6f76c4.js +0 -17
  543. package/.next-prod/static/chunks/99092-7b5fa4560a398020.js +0 -716
  544. package/.next-prod/static/chunks/app/api/bots/route-6ac899b2cd280c12.js +0 -1
  545. package/.next-prod/static/chunks/app/api/chat/codex/route-6ac899b2cd280c12.js +0 -1
  546. package/.next-prod/static/chunks/app/api/chat/deepseek/route-6ac899b2cd280c12.js +0 -1
  547. package/.next-prod/static/chunks/app/api/chat/glm/route-6ac899b2cd280c12.js +0 -1
  548. package/.next-prod/static/chunks/app/api/chat/kimi/route-6ac899b2cd280c12.js +0 -1
  549. package/.next-prod/static/chunks/app/api/chat/ollama/route-6ac899b2cd280c12.js +0 -1
  550. package/.next-prod/static/chunks/app/api/chat/route-6ac899b2cd280c12.js +0 -1
  551. package/.next-prod/static/chunks/app/api/chat/stop/route-6ac899b2cd280c12.js +0 -1
  552. package/.next-prod/static/chunks/app/api/claude-stats/route-6ac899b2cd280c12.js +0 -1
  553. package/.next-prod/static/chunks/app/api/commands/route-6ac899b2cd280c12.js +0 -1
  554. package/.next-prod/static/chunks/app/api/comments/route-6ac899b2cd280c12.js +0 -1
  555. package/.next-prod/static/chunks/app/api/db/columns/route-6ac899b2cd280c12.js +0 -1
  556. package/.next-prod/static/chunks/app/api/db/connect/route-6ac899b2cd280c12.js +0 -1
  557. package/.next-prod/static/chunks/app/api/db/disconnect/route-6ac899b2cd280c12.js +0 -1
  558. package/.next-prod/static/chunks/app/api/db/export/route-6ac899b2cd280c12.js +0 -1
  559. package/.next-prod/static/chunks/app/api/db/query/route-6ac899b2cd280c12.js +0 -1
  560. package/.next-prod/static/chunks/app/api/db/schemas/route-6ac899b2cd280c12.js +0 -1
  561. package/.next-prod/static/chunks/app/api/deepseek/balance/route-6ac899b2cd280c12.js +0 -1
  562. package/.next-prod/static/chunks/app/api/deepseek/credentials/route-6ac899b2cd280c12.js +0 -1
  563. package/.next-prod/static/chunks/app/api/deepseek/models/route-6ac899b2cd280c12.js +0 -1
  564. package/.next-prod/static/chunks/app/api/dev/spans/route-6ac899b2cd280c12.js +0 -1
  565. package/.next-prod/static/chunks/app/api/extension/version/route-6ac899b2cd280c12.js +0 -1
  566. package/.next-prod/static/chunks/app/api/file/route-6ac899b2cd280c12.js +0 -1
  567. package/.next-prod/static/chunks/app/api/files/blame/route-6ac899b2cd280c12.js +0 -1
  568. package/.next-prod/static/chunks/app/api/files/clipboard/route-6ac899b2cd280c12.js +0 -1
  569. package/.next-prod/static/chunks/app/api/files/copy/route-6ac899b2cd280c12.js +0 -1
  570. package/.next-prod/static/chunks/app/api/files/delete/route-6ac899b2cd280c12.js +0 -1
  571. package/.next-prod/static/chunks/app/api/files/expanded/route-6ac899b2cd280c12.js +0 -1
  572. package/.next-prod/static/chunks/app/api/files/index/route-6ac899b2cd280c12.js +0 -1
  573. package/.next-prod/static/chunks/app/api/files/init/route-6ac899b2cd280c12.js +0 -1
  574. package/.next-prod/static/chunks/app/api/files/paste/route-6ac899b2cd280c12.js +0 -1
  575. package/.next-prod/static/chunks/app/api/files/read/route-6ac899b2cd280c12.js +0 -1
  576. package/.next-prod/static/chunks/app/api/files/readdir/route-6ac899b2cd280c12.js +0 -1
  577. package/.next-prod/static/chunks/app/api/files/recent/route-6ac899b2cd280c12.js +0 -1
  578. package/.next-prod/static/chunks/app/api/files/save/route-6ac899b2cd280c12.js +0 -1
  579. package/.next-prod/static/chunks/app/api/files/search/route-6ac899b2cd280c12.js +0 -1
  580. package/.next-prod/static/chunks/app/api/files/stat/route-6ac899b2cd280c12.js +0 -1
  581. package/.next-prod/static/chunks/app/api/files/text/route-6ac899b2cd280c12.js +0 -1
  582. package/.next-prod/static/chunks/app/api/git/blob/route-6ac899b2cd280c12.js +0 -1
  583. package/.next-prod/static/chunks/app/api/git/branch-diff/route-6ac899b2cd280c12.js +0 -1
  584. package/.next-prod/static/chunks/app/api/git/branches/route-6ac899b2cd280c12.js +0 -1
  585. package/.next-prod/static/chunks/app/api/git/commit-diff/route-6ac899b2cd280c12.js +0 -1
  586. package/.next-prod/static/chunks/app/api/git/commits/route-6ac899b2cd280c12.js +0 -1
  587. package/.next-prod/static/chunks/app/api/git/current-branch/route-6ac899b2cd280c12.js +0 -1
  588. package/.next-prod/static/chunks/app/api/git/diff/route-6ac899b2cd280c12.js +0 -1
  589. package/.next-prod/static/chunks/app/api/git/discard/route-6ac899b2cd280c12.js +0 -1
  590. package/.next-prod/static/chunks/app/api/git/stage/route-6ac899b2cd280c12.js +0 -1
  591. package/.next-prod/static/chunks/app/api/git/status/route-6ac899b2cd280c12.js +0 -1
  592. package/.next-prod/static/chunks/app/api/git/unstage/route-6ac899b2cd280c12.js +0 -1
  593. package/.next-prod/static/chunks/app/api/git/worktree/route-6ac899b2cd280c12.js +0 -1
  594. package/.next-prod/static/chunks/app/api/glm/credentials/route-6ac899b2cd280c12.js +0 -1
  595. package/.next-prod/static/chunks/app/api/glm/models/route-6ac899b2cd280c12.js +0 -1
  596. package/.next-prod/static/chunks/app/api/glm/usage/route-6ac899b2cd280c12.js +0 -1
  597. package/.next-prod/static/chunks/app/api/global-state/route-6ac899b2cd280c12.js +0 -1
  598. package/.next-prod/static/chunks/app/api/health/route-6ac899b2cd280c12.js +0 -1
  599. package/.next-prod/static/chunks/app/api/html-apps/[id]/route-6ac899b2cd280c12.js +0 -1
  600. package/.next-prod/static/chunks/app/api/html-apps/route-6ac899b2cd280c12.js +0 -1
  601. package/.next-prod/static/chunks/app/api/instructions/config/route-6ac899b2cd280c12.js +0 -1
  602. package/.next-prod/static/chunks/app/api/kimi/credentials/route-6ac899b2cd280c12.js +0 -1
  603. package/.next-prod/static/chunks/app/api/kimi/models/route-6ac899b2cd280c12.js +0 -1
  604. package/.next-prod/static/chunks/app/api/kimi/usage/route-6ac899b2cd280c12.js +0 -1
  605. package/.next-prod/static/chunks/app/api/lsp/definition/route-6ac899b2cd280c12.js +0 -1
  606. package/.next-prod/static/chunks/app/api/lsp/hover/route-6ac899b2cd280c12.js +0 -1
  607. package/.next-prod/static/chunks/app/api/lsp/references/route-6ac899b2cd280c12.js +0 -1
  608. package/.next-prod/static/chunks/app/api/lsp/status/route-6ac899b2cd280c12.js +0 -1
  609. package/.next-prod/static/chunks/app/api/lsp/warmup/route-6ac899b2cd280c12.js +0 -1
  610. package/.next-prod/static/chunks/app/api/mysql/columns/route-6ac899b2cd280c12.js +0 -1
  611. package/.next-prod/static/chunks/app/api/mysql/connect/route-6ac899b2cd280c12.js +0 -1
  612. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-6ac899b2cd280c12.js +0 -1
  613. package/.next-prod/static/chunks/app/api/mysql/export/route-6ac899b2cd280c12.js +0 -1
  614. package/.next-prod/static/chunks/app/api/mysql/query/route-6ac899b2cd280c12.js +0 -1
  615. package/.next-prod/static/chunks/app/api/mysql/schemas/route-6ac899b2cd280c12.js +0 -1
  616. package/.next-prod/static/chunks/app/api/neo4j/connect/route-6ac899b2cd280c12.js +0 -1
  617. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-6ac899b2cd280c12.js +0 -1
  618. package/.next-prod/static/chunks/app/api/neo4j/query/route-6ac899b2cd280c12.js +0 -1
  619. package/.next-prod/static/chunks/app/api/neo4j/schema/route-6ac899b2cd280c12.js +0 -1
  620. package/.next-prod/static/chunks/app/api/note/route-6ac899b2cd280c12.js +0 -1
  621. package/.next-prod/static/chunks/app/api/ollama/config/route-6ac899b2cd280c12.js +0 -1
  622. package/.next-prod/static/chunks/app/api/ollama/default-model/route-6ac899b2cd280c12.js +0 -1
  623. package/.next-prod/static/chunks/app/api/ollama/models/route-6ac899b2cd280c12.js +0 -1
  624. package/.next-prod/static/chunks/app/api/ollama/start/route-6ac899b2cd280c12.js +0 -1
  625. package/.next-prod/static/chunks/app/api/open-cursor/route-6ac899b2cd280c12.js +0 -1
  626. package/.next-prod/static/chunks/app/api/open-vscode/route-6ac899b2cd280c12.js +0 -1
  627. package/.next-prod/static/chunks/app/api/pick-folder/route-6ac899b2cd280c12.js +0 -1
  628. package/.next-prod/static/chunks/app/api/pinned-sessions/route-6ac899b2cd280c12.js +0 -1
  629. package/.next-prod/static/chunks/app/api/project-settings/route-6ac899b2cd280c12.js +0 -1
  630. package/.next-prod/static/chunks/app/api/project-state/route-6ac899b2cd280c12.js +0 -1
  631. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-6ac899b2cd280c12.js +0 -1
  632. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-6ac899b2cd280c12.js +0 -1
  633. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-6ac899b2cd280c12.js +0 -1
  634. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-6ac899b2cd280c12.js +0 -1
  635. package/.next-prod/static/chunks/app/api/projectGraph/context/route-6ac899b2cd280c12.js +0 -1
  636. package/.next-prod/static/chunks/app/api/projectGraph/file/route-6ac899b2cd280c12.js +0 -1
  637. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-6ac899b2cd280c12.js +0 -1
  638. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-6ac899b2cd280c12.js +0 -1
  639. package/.next-prod/static/chunks/app/api/projectGraph/related/route-6ac899b2cd280c12.js +0 -1
  640. package/.next-prod/static/chunks/app/api/projectGraph/risk/route-6ac899b2cd280c12.js +0 -1
  641. package/.next-prod/static/chunks/app/api/projectGraph/search/route-6ac899b2cd280c12.js +0 -1
  642. package/.next-prod/static/chunks/app/api/projects/route-6ac899b2cd280c12.js +0 -1
  643. package/.next-prod/static/chunks/app/api/push/public-key/route-6ac899b2cd280c12.js +0 -1
  644. package/.next-prod/static/chunks/app/api/push/subscribe/route-6ac899b2cd280c12.js +0 -1
  645. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-6ac899b2cd280c12.js +0 -1
  646. package/.next-prod/static/chunks/app/api/redis/command/route-6ac899b2cd280c12.js +0 -1
  647. package/.next-prod/static/chunks/app/api/redis/connect/route-6ac899b2cd280c12.js +0 -1
  648. package/.next-prod/static/chunks/app/api/redis/delete/route-6ac899b2cd280c12.js +0 -1
  649. package/.next-prod/static/chunks/app/api/redis/disconnect/route-6ac899b2cd280c12.js +0 -1
  650. package/.next-prod/static/chunks/app/api/redis/get/route-6ac899b2cd280c12.js +0 -1
  651. package/.next-prod/static/chunks/app/api/redis/keys/route-6ac899b2cd280c12.js +0 -1
  652. package/.next-prod/static/chunks/app/api/redis/set/route-6ac899b2cd280c12.js +0 -1
  653. package/.next-prod/static/chunks/app/api/restart/route-6ac899b2cd280c12.js +0 -1
  654. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-6ac899b2cd280c12.js +0 -1
  655. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-6ac899b2cd280c12.js +0 -1
  656. package/.next-prod/static/chunks/app/api/review/[id]/route-6ac899b2cd280c12.js +0 -1
  657. package/.next-prod/static/chunks/app/api/review/identify/route-6ac899b2cd280c12.js +0 -1
  658. package/.next-prod/static/chunks/app/api/review/order/route-6ac899b2cd280c12.js +0 -1
  659. package/.next-prod/static/chunks/app/api/review/route-6ac899b2cd280c12.js +0 -1
  660. package/.next-prod/static/chunks/app/api/review/share-info/route-6ac899b2cd280c12.js +0 -1
  661. package/.next-prod/static/chunks/app/api/review/users/route-6ac899b2cd280c12.js +0 -1
  662. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-6ac899b2cd280c12.js +0 -1
  663. package/.next-prod/static/chunks/app/api/services/config/route-6ac899b2cd280c12.js +0 -1
  664. package/.next-prod/static/chunks/app/api/services/scripts/route-6ac899b2cd280c12.js +0 -1
  665. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-6ac899b2cd280c12.js +0 -1
  666. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-6ac899b2cd280c12.js +0 -1
  667. package/.next-prod/static/chunks/app/api/session/[sessionId]/turn/route-6ac899b2cd280c12.js +0 -1
  668. package/.next-prod/static/chunks/app/api/session/user-messages/route-6ac899b2cd280c12.js +0 -1
  669. package/.next-prod/static/chunks/app/api/session-by-path/route-6ac899b2cd280c12.js +0 -1
  670. package/.next-prod/static/chunks/app/api/sessions/delegate/route-6ac899b2cd280c12.js +0 -1
  671. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-6ac899b2cd280c12.js +0 -1
  672. package/.next-prod/static/chunks/app/api/sessions/projects/route-6ac899b2cd280c12.js +0 -1
  673. package/.next-prod/static/chunks/app/api/sessions/search/route-6ac899b2cd280c12.js +0 -1
  674. package/.next-prod/static/chunks/app/api/sessions/status/route-6ac899b2cd280c12.js +0 -1
  675. package/.next-prod/static/chunks/app/api/settings/route-6ac899b2cd280c12.js +0 -1
  676. package/.next-prod/static/chunks/app/api/shutdown/route-6ac899b2cd280c12.js +0 -1
  677. package/.next-prod/static/chunks/app/api/skills/[id]/route-6ac899b2cd280c12.js +0 -1
  678. package/.next-prod/static/chunks/app/api/skills/content/route-6ac899b2cd280c12.js +0 -1
  679. package/.next-prod/static/chunks/app/api/skills/route-6ac899b2cd280c12.js +0 -1
  680. package/.next-prod/static/chunks/app/api/snapshots/blob/route-6ac899b2cd280c12.js +0 -1
  681. package/.next-prod/static/chunks/app/api/snapshots/diff/route-6ac899b2cd280c12.js +0 -1
  682. package/.next-prod/static/chunks/app/api/snapshots/range-diff/route-6ac899b2cd280c12.js +0 -1
  683. package/.next-prod/static/chunks/app/api/snapshots/route-6ac899b2cd280c12.js +0 -1
  684. package/.next-prod/static/chunks/app/api/terminal/aliases/route-6ac899b2cd280c12.js +0 -1
  685. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-6ac899b2cd280c12.js +0 -1
  686. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-6ac899b2cd280c12.js +0 -1
  687. package/.next-prod/static/chunks/app/api/terminal/env/route-6ac899b2cd280c12.js +0 -1
  688. package/.next-prod/static/chunks/app/api/terminal/history/route-6ac899b2cd280c12.js +0 -1
  689. package/.next-prod/static/chunks/app/api/update/route-6ac899b2cd280c12.js +0 -1
  690. package/.next-prod/static/chunks/app/api/update-state/route-6ac899b2cd280c12.js +0 -1
  691. package/.next-prod/static/chunks/app/api/version/route-6ac899b2cd280c12.js +0 -1
  692. package/.next-prod/static/chunks/app/apps/[...path]/route-6ac899b2cd280c12.js +0 -1
  693. package/.next-prod/static/chunks/app/manifest.webmanifest/route-6ac899b2cd280c12.js +0 -1
  694. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-6ac899b2cd280c12.js +0 -1
  695. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-6ac899b2cd280c12.js +0 -1
  696. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-6ac899b2cd280c12.js +0 -1
  697. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-6ac899b2cd280c12.js +0 -1
  698. package/.next-prod/static/css/e6181fb6c73884b4.css +0 -1
  699. package/.next-prod/static/yEJ9Z5Bjv9ti4WeYINfCs/_buildManifest.js +0 -1
  700. /package/.next-prod/static/{yEJ9Z5Bjv9ti4WeYINfCs → I8gbcTQRiRdMF09goE7WI}/_ssgManifest.js +0 -0
@@ -1,7 +1,7 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[99365],{5989:(r,n,i)=>{"use strict";let s,o;i.d(n,{XI:()=>ts,nA:()=>e0,A0:()=>e1,Hj:()=>e2});var l=i(82159),a=i(76865),u=i(27050),c=i(63197),h=i(12894),d=i(8242);if("u">typeof WeakMap){let r=new WeakMap;s=n=>r.get(n),o=(n,i)=>(r.set(n,i),i)}else{let r=[],n=10,i=0;s=n=>{for(let i=0;i<r.length;i+=2)if(r[i]==n)return r[i+1]},o=(s,o)=>(i==n&&(i=0),r[i++]=s,r[i++]=o)}var p=class{constructor(r,n,i,s){this.width=r,this.height=n,this.map=i,this.problems=s}findCell(r){for(let n=0;n<this.map.length;n++){let i=this.map[n];if(i!=r)continue;let s=n%this.width,o=n/this.width|0,l=s+1,a=o+1;for(let r=1;l<this.width&&this.map[n+r]==i;r++)l++;for(let r=1;a<this.height&&this.map[n+this.width*r]==i;r++)a++;return{left:s,top:o,right:l,bottom:a}}throw RangeError(`No cell with offset ${r} found`)}colCount(r){for(let n=0;n<this.map.length;n++)if(this.map[n]==r)return n%this.width;throw RangeError(`No cell with offset ${r} found`)}nextCell(r,n,i){let{left:s,right:o,top:l,bottom:a}=this.findCell(r);return"horiz"==n?(i<0?0==s:o==this.width)?null:this.map[l*this.width+(i<0?s-1:o)]:(i<0?0==l:a==this.height)?null:this.map[s+this.width*(i<0?l-1:a)]}rectBetween(r,n){let{left:i,right:s,top:o,bottom:l}=this.findCell(r),{left:a,right:u,top:c,bottom:h}=this.findCell(n);return{left:Math.min(i,a),top:Math.min(o,c),right:Math.max(s,u),bottom:Math.max(l,h)}}cellsInRect(r){let n=[],i={};for(let s=r.top;s<r.bottom;s++)for(let o=r.left;o<r.right;o++){let l=s*this.width+o,a=this.map[l];!i[a]&&(i[a]=!0,o==r.left&&o&&this.map[l-1]==a||s==r.top&&s&&this.map[l-this.width]==a||n.push(a))}return n}positionAt(r,n,i){for(let s=0,o=0;;s++){let l=o+i.child(s).nodeSize;if(s==r){let i=n+r*this.width,s=(r+1)*this.width;for(;i<s&&this.map[i]<o;)i++;return i==s?l-1:this.map[i]}o=l}}static get(r){return s(r)||o(r,f(r))}};function f(r){if("table"!=r.type.spec.tableRole)throw RangeError("Not a table node: "+r.type.name);let n=m(r),i=r.childCount,s=[],o=0,l=null,a=[];for(let r=0,o=n*i;r<o;r++)s[r]=0;for(let u=0,c=0;u<i;u++){let h=r.child(u);c++;for(let r=0;;r++){for(;o<s.length&&0!=s[o];)o++;if(r==h.childCount)break;let d=h.child(r),{colspan:p,rowspan:f,colwidth:m}=d.attrs;for(let r=0;r<f;r++){if(r+u>=i){(l||(l=[])).push({type:"overlong_rowspan",pos:c,n:f-r});break}let h=o+r*n;for(let r=0;r<p;r++){0==s[h+r]?s[h+r]=c:(l||(l=[])).push({type:"collision",row:u,pos:c,n:p-r});let i=m&&m[r];if(i){let s=(h+r)%n*2,o=a[s];null==o||o!=i&&1==a[s+1]?(a[s]=i,a[s+1]=1):o==i&&a[s+1]++}}}o+=p,c+=d.nodeSize}let d=(u+1)*n,p=0;for(;o<d;)0==s[o++]&&p++;p&&(l||(l=[])).push({type:"missing",row:u,n:p}),c++}(0===n||0===i)&&(l||(l=[])).push({type:"zero_sized"});let u=new p(n,i,s,l),c=!1;for(let r=0;!c&&r<a.length;r+=2)null!=a[r]&&a[r+1]<i&&(c=!0);return c&&g(u,a,r),u}function m(r){let n=-1,i=!1;for(let s=0;s<r.childCount;s++){let o=r.child(s),l=0;if(i)for(let n=0;n<s;n++){let i=r.child(n);for(let r=0;r<i.childCount;r++){let o=i.child(r);n+o.attrs.rowspan>s&&(l+=o.attrs.colspan)}}for(let r=0;r<o.childCount;r++){let n=o.child(r);l+=n.attrs.colspan,n.attrs.rowspan>1&&(i=!0)}-1==n?n=l:n!=l&&(n=Math.max(n,l))}return n}function g(r,n,i){r.problems||(r.problems=[]);let s={};for(let o=0;o<r.map.length;o++){let l=r.map[o];if(s[l])continue;s[l]=!0;let a=i.nodeAt(l);if(!a)throw RangeError(`No cell with offset ${l} found`);let u=null,c=a.attrs;for(let i=0;i<c.colspan;i++){let s=n[(o+i)%r.width*2];null==s||c.colwidth&&c.colwidth[i]==s||((u||(u=_(c)))[i]=s)}u&&r.problems.unshift({type:"colwidth mismatch",pos:l,colwidth:u})}}function _(r){if(r.colwidth)return r.colwidth.slice();let n=[];for(let i=0;i<r.colspan;i++)n.push(0);return n}function y(r){let n=r.cached.tableNodeTypes;if(!n)for(let i in n=r.cached.tableNodeTypes={},r.nodes){let s=r.nodes[i],o=s.spec.tableRole;o&&(n[o]=s)}return n}let k=new a.hs("selectingCells");function b(r){for(let n=r.depth-1;n>0;n--)if("row"==r.node(n).type.spec.tableRole)return r.node(0).resolve(r.before(n+1));return null}function w(r){for(let n=r.depth;n>0;n--){let i=r.node(n).type.spec.tableRole;if("cell"===i||"header_cell"===i)return r.node(n)}return null}function x(r){let n=r.selection.$head;for(let r=n.depth;r>0;r--)if("row"==n.node(r).type.spec.tableRole)return!0;return!1}function v(r){let n=r.selection;if("$anchorCell"in n&&n.$anchorCell)return n.$anchorCell.pos>n.$headCell.pos?n.$anchorCell:n.$headCell;if("node"in n&&n.node&&"cell"==n.node.type.spec.tableRole)return n.$anchor;let i=b(n.$head)||C(n.$head);if(i)return i;throw RangeError(`No cell found around position ${n.head}`)}function C(r){for(let n=r.nodeAfter,i=r.pos;n;n=n.firstChild,i++){let s=n.type.spec.tableRole;if("cell"==s||"header_cell"==s)return r.doc.resolve(i)}for(let n=r.nodeBefore,i=r.pos;n;n=n.lastChild,i--){let s=n.type.spec.tableRole;if("cell"==s||"header_cell"==s)return r.doc.resolve(i-n.nodeSize)}}function A(r){return"row"==r.parent.type.spec.tableRole&&!!r.nodeAfter}function E(r){return r.node(0).resolve(r.pos+r.nodeAfter.nodeSize)}function S(r,n){return r.depth==n.depth&&r.pos>=n.start(-1)&&r.pos<=n.end(-1)}function M(r,n,i){let s=r.node(-1),o=p.get(s),l=r.start(-1),a=o.nextCell(r.pos-l,n,i);return null==a?null:r.node(0).resolve(l+a)}function T(r,n,i=1){let s={...r,colspan:r.colspan-i};return s.colwidth&&(s.colwidth=s.colwidth.slice(),s.colwidth.splice(n,i),s.colwidth.some(r=>r>0)||(s.colwidth=null)),s}function D(r,n,i=1){let s={...r,colspan:r.colspan+i};if(s.colwidth){s.colwidth=s.colwidth.slice();for(let r=0;r<i;r++)s.colwidth.splice(n,0,0)}return s}function F(r,n,i){let s=y(n.type.schema).header_cell;for(let o=0;o<r.height;o++)if(n.nodeAt(r.map[i+o*r.width]).type!=s)return!1;return!0}var I=class r extends a.LN{constructor(r,n=r){const i=r.node(-1),s=p.get(i),o=r.start(-1),l=s.rectBetween(r.pos-o,n.pos-o),u=r.node(0),c=s.cellsInRect(l).filter(r=>r!=n.pos-o);c.unshift(n.pos-o);const h=c.map(r=>{let n=i.nodeAt(r);if(!n)throw RangeError(`No cell with offset ${r} found`);let s=o+r+1;return new a.yn(u.resolve(s),u.resolve(s+n.content.size))});super(h[0].$from,h[0].$to,h),this.$anchorCell=r,this.$headCell=n}map(n,i){let s=n.resolve(i.map(this.$anchorCell.pos)),o=n.resolve(i.map(this.$headCell.pos));if(A(s)&&A(o)&&S(s,o)){let n=this.$anchorCell.node(-1)!=s.node(-1);return n&&this.isRowSelection()?r.rowSelection(s,o):n&&this.isColSelection()?r.colSelection(s,o):new r(s,o)}return a.U3.between(s,o)}content(){let r=this.$anchorCell.node(-1),n=p.get(r),i=this.$anchorCell.start(-1),s=n.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i),o={},l=[];for(let i=s.top;i<s.bottom;i++){let a=[];for(let l=i*n.width+s.left,u=s.left;u<s.right;u++,l++){let i=n.map[l];if(o[i])continue;o[i]=!0;let u=n.findCell(i),c=r.nodeAt(i);if(!c)throw RangeError(`No cell with offset ${i} found`);let h=s.left-u.left,d=u.right-s.right;if(h>0||d>0){let r=c.attrs;if(h>0&&(r=T(r,0,h)),d>0&&(r=T(r,r.colspan-d,d)),u.left<s.left){if(!(c=c.type.createAndFill(r)))throw RangeError(`Could not create cell with attrs ${JSON.stringify(r)}`)}else c=c.type.create(r,c.content)}if(u.top<s.top||u.bottom>s.bottom){let r={...c.attrs,rowspan:Math.min(u.bottom,s.bottom)-Math.max(u.top,s.top)};c=u.top<s.top?c.type.createAndFill(r):c.type.create(r,c.content)}a.push(c)}l.push(r.child(i).copy(u.FK.from(a)))}let a=this.isColSelection()&&this.isRowSelection()?r:l;return new u.Ji(u.FK.from(a),1,1)}replace(r,n=u.Ji.empty){let i=r.steps.length,s=this.ranges;for(let o=0;o<s.length;o++){let{$from:l,$to:a}=s[o],c=r.mapping.slice(i);r.replace(c.map(l.pos),c.map(a.pos),o?u.Ji.empty:n)}let o=a.LN.findFrom(r.doc.resolve(r.mapping.slice(i).map(this.to)),-1);o&&r.setSelection(o)}replaceWith(r,n){this.replace(r,new u.Ji(u.FK.from(n),0,0))}forEachCell(r){let n=this.$anchorCell.node(-1),i=p.get(n),s=this.$anchorCell.start(-1),o=i.cellsInRect(i.rectBetween(this.$anchorCell.pos-s,this.$headCell.pos-s));for(let i=0;i<o.length;i++)r(n.nodeAt(o[i]),s+o[i])}isColSelection(){let r=this.$anchorCell.index(-1),n=this.$headCell.index(-1);return!(Math.min(r,n)>0)&&Math.max(r+this.$anchorCell.nodeAfter.attrs.rowspan,n+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(n,i=n){let s=n.node(-1),o=p.get(s),l=n.start(-1),a=o.findCell(n.pos-l),u=o.findCell(i.pos-l),c=n.node(0);return a.top<=u.top?(a.top>0&&(n=c.resolve(l+o.map[a.left])),u.bottom<o.height&&(i=c.resolve(l+o.map[o.width*(o.height-1)+u.right-1]))):(u.top>0&&(i=c.resolve(l+o.map[u.left])),a.bottom<o.height&&(n=c.resolve(l+o.map[o.width*(o.height-1)+a.right-1]))),new r(n,i)}isRowSelection(){let r=this.$anchorCell.node(-1),n=p.get(r),i=this.$anchorCell.start(-1),s=n.colCount(this.$anchorCell.pos-i),o=n.colCount(this.$headCell.pos-i);return!(Math.min(s,o)>0)&&Math.max(s+this.$anchorCell.nodeAfter.attrs.colspan,o+this.$headCell.nodeAfter.attrs.colspan)==n.width}eq(n){return n instanceof r&&n.$anchorCell.pos==this.$anchorCell.pos&&n.$headCell.pos==this.$headCell.pos}static rowSelection(n,i=n){let s=n.node(-1),o=p.get(s),l=n.start(-1),a=o.findCell(n.pos-l),u=o.findCell(i.pos-l),c=n.node(0);return a.left<=u.left?(a.left>0&&(n=c.resolve(l+o.map[a.top*o.width])),u.right<o.width&&(i=c.resolve(l+o.map[o.width*(u.top+1)-1]))):(u.left>0&&(i=c.resolve(l+o.map[u.top*o.width])),a.right<o.width&&(n=c.resolve(l+o.map[o.width*(a.top+1)-1]))),new r(n,i)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(n,i){return new r(n.resolve(i.anchor),n.resolve(i.head))}static create(n,i,s=i){return new r(n.resolve(i),n.resolve(s))}getBookmark(){return new L(this.$anchorCell.pos,this.$headCell.pos)}};I.prototype.visible=!1,a.LN.jsonID("cell",I);var L=class r{constructor(r,n){this.anchor=r,this.head=n}map(n){return new r(n.map(this.anchor),n.map(this.head))}resolve(r){let n=r.resolve(this.anchor),i=r.resolve(this.head);return"row"==n.parent.type.spec.tableRole&&"row"==i.parent.type.spec.tableRole&&n.index()<n.parent.childCount&&i.index()<i.parent.childCount&&S(n,i)?new I(n,i):a.LN.near(i,1)}};function R(r){if(!(r.selection instanceof I))return null;let n=[];return r.selection.forEachCell((r,i)=>{n.push(c.NZ.node(i,i+r.nodeSize,{class:"selectedCell"}))}),c.zF.create(r.doc,n)}function N({$from:r,$to:n}){if(r.pos==n.pos||r.pos<n.pos-6)return!1;let i=r.pos,s=n.pos,o=r.depth;for(;o>=0&&!(r.after(o+1)<r.end(o));o--,i++);for(let r=n.depth;r>=0&&!(n.before(r+1)>n.start(r));r--,s--);return i==s&&/row|table/.test(r.node(o).type.spec.tableRole)}function O({$from:r,$to:n}){let i,s;for(let n=r.depth;n>0;n--){let s=r.node(n);if("cell"===s.type.spec.tableRole||"header_cell"===s.type.spec.tableRole){i=s;break}}for(let r=n.depth;r>0;r--){let i=n.node(r);if("cell"===i.type.spec.tableRole||"header_cell"===i.type.spec.tableRole){s=i;break}}return i!==s&&0===n.parentOffset}function z(r,n,i){let s,o,l=(n||r).selection,u=(n||r).doc;if(l instanceof a.nh&&(o=l.node.type.spec.tableRole)){if("cell"==o||"header_cell"==o)s=I.create(u,l.from);else if("row"==o){let r=u.resolve(l.from+1);s=I.rowSelection(r,r)}else if(!i){let r=p.get(l.node),n=l.from+1,i=n+r.map[r.width*r.height-1];s=I.create(u,n+1,i)}}else l instanceof a.U3&&N(l)?s=a.U3.create(u,l.from):l instanceof a.U3&&O(l)&&(s=a.U3.create(u,l.$from.start(),l.$from.end()));return s&&(n||(n=r.tr)).setSelection(s),n}let P=new a.hs("fix-tables");function $(r,n,i,s){let o=r.childCount,l=n.childCount;e:for(let a=0,u=0;a<l;a++){let l=n.child(a);for(let n=u,s=Math.min(o,a+3);n<s;n++)if(r.child(n)==l){u=n+1,i+=l.nodeSize;continue e}s(l,i),u<o&&r.child(u).sameMarkup(l)?$(r.child(u),l,i+1,s):l.nodesBetween(0,l.content.size,s,i+1),i+=l.nodeSize}}function B(r,n){let i,s=(n,s)=>{"table"==n.type.spec.tableRole&&(i=q(r,n,s,i))};return n?n.doc!=r.doc&&$(n.doc,r.doc,0,s):r.doc.descendants(s),i}function q(r,n,i,s){let o,l,a=p.get(n);if(!a.problems)return s;s||(s=r.tr);let u=[];for(let r=0;r<a.height;r++)u.push(0);for(let r=0;r<a.problems.length;r++){let o=a.problems[r];if("collision"==o.type){let r=n.nodeAt(o.pos);if(!r)continue;let l=r.attrs;for(let r=0;r<l.rowspan;r++)u[o.row+r]+=o.n;s.setNodeMarkup(s.mapping.map(i+1+o.pos),null,T(l,l.colspan-o.n,o.n))}else if("missing"==o.type)u[o.row]+=o.n;else if("overlong_rowspan"==o.type){let r=n.nodeAt(o.pos);if(!r)continue;s.setNodeMarkup(s.mapping.map(i+1+o.pos),null,{...r.attrs,rowspan:r.attrs.rowspan-o.n})}else if("colwidth mismatch"==o.type){let r=n.nodeAt(o.pos);if(!r)continue;s.setNodeMarkup(s.mapping.map(i+1+o.pos),null,{...r.attrs,colwidth:o.colwidth})}else if("zero_sized"==o.type){let r=s.mapping.map(i);s.delete(r,r+n.nodeSize)}}for(let r=0;r<u.length;r++)u[r]&&(null==o&&(o=r),l=r);for(let c=0,h=i+1;c<a.height;c++){let i=n.child(c),a=h+i.nodeSize,d=u[c];if(d>0){let n="cell";i.firstChild&&(n=i.firstChild.type.spec.tableRole);let u=[];for(let i=0;i<d;i++){let i=y(r.schema)[n].createAndFill();i&&u.push(i)}let p=(0==c||o==c-1)&&l==c?h+1:a-1;s.insert(s.mapping.map(p),u)}h=a}return s.setMeta(P,{fixTables:!0})}function j(r){let n=r.selection,i=v(r),s=i.node(-1),o=i.start(-1),l=p.get(s);return{...n instanceof I?l.rectBetween(n.$anchorCell.pos-o,n.$headCell.pos-o):l.findCell(i.pos-o),tableStart:o,map:l,table:s}}function H(r,{map:n,tableStart:i,table:s},o){let l=o>0?-1:0;F(n,s,o+l)&&(l=0==o||o==n.width?null:0);for(let a=0;a<n.height;a++){let u=a*n.width+o;if(o>0&&o<n.width&&n.map[u-1]==n.map[u]){let l=n.map[u],c=s.nodeAt(l);r.setNodeMarkup(r.mapping.map(i+l),null,D(c.attrs,o-n.colCount(l))),a+=c.attrs.rowspan-1}else{let c=null==l?y(s.type.schema).cell:s.nodeAt(n.map[u+l]).type,h=n.positionAt(a,o,s);r.insert(r.mapping.map(i+h),c.createAndFill())}}return r}function V(r,n){if(!x(r))return!1;if(n){let i=j(r);n(H(r.tr,i,i.left))}return!0}function U(r,n){if(!x(r))return!1;if(n){let i=j(r);n(H(r.tr,i,i.right))}return!0}function W(r,{map:n,table:i,tableStart:s},o){let l=r.mapping.maps.length;for(let a=0;a<n.height;){let u=a*n.width+o,c=n.map[u],h=i.nodeAt(c),d=h.attrs;if(o>0&&n.map[u-1]==c||o<n.width-1&&n.map[u+1]==c)r.setNodeMarkup(r.mapping.slice(l).map(s+c),null,T(d,o-n.colCount(c)));else{let n=r.mapping.slice(l).map(s+c);r.delete(n,n+h.nodeSize)}a+=d.rowspan}}function J(r,n){if(!x(r))return!1;if(n){let i=j(r),s=r.tr;if(0==i.left&&i.right==i.map.width)return!1;for(let r=i.right-1;W(s,i,r),r!=i.left;r--){let r=i.tableStart?s.doc.nodeAt(i.tableStart-1):s.doc;if(!r)throw RangeError("No table found");i.table=r,i.map=p.get(r)}n(s)}return!0}function K(r,n,i){var s;let o=y(n.type.schema).header_cell;for(let l=0;l<r.width;l++)if((null==(s=n.nodeAt(r.map[l+i*r.width]))?void 0:s.type)!=o)return!1;return!0}function G(r,{map:n,tableStart:i,table:s},o){let l=i;for(let r=0;r<o;r++)l+=s.child(r).nodeSize;let a=[],u=o>0?-1:0;K(n,s,o+u)&&(u=0==o||o==n.height?null:0);for(let l=0,h=n.width*o;l<n.width;l++,h++)if(o>0&&o<n.height&&n.map[h]==n.map[h-n.width]){let o=n.map[h],a=s.nodeAt(o).attrs;r.setNodeMarkup(i+o,null,{...a,rowspan:a.rowspan+1}),l+=a.colspan-1}else{var c;let r=null==u?y(s.type.schema).cell:null==(c=s.nodeAt(n.map[h+u*n.width]))?void 0:c.type,i=null==r?void 0:r.createAndFill();i&&a.push(i)}return r.insert(l,y(s.type.schema).row.create(null,a)),r}function Z(r,n){if(!x(r))return!1;if(n){let i=j(r);n(G(r.tr,i,i.top))}return!0}function X(r,n){if(!x(r))return!1;if(n){let i=j(r);n(G(r.tr,i,i.bottom))}return!0}function Y(r,{map:n,table:i,tableStart:s},o){let l=0;for(let r=0;r<o;r++)l+=i.child(r).nodeSize;let a=l+i.child(o).nodeSize,u=r.mapping.maps.length;r.delete(l+s,a+s);let c=new Set;for(let l=0,a=o*n.width;l<n.width;l++,a++){let h=n.map[a];if(!c.has(h)){if(c.add(h),o>0&&h==n.map[a-n.width]){let n=i.nodeAt(h).attrs;r.setNodeMarkup(r.mapping.slice(u).map(h+s),null,{...n,rowspan:n.rowspan-1}),l+=n.colspan-1}else if(o<n.height&&h==n.map[a+n.width]){let a=i.nodeAt(h),c=a.attrs,d=a.type.create({...c,rowspan:a.attrs.rowspan-1},a.content),p=n.positionAt(o+1,l,i);r.insert(r.mapping.slice(u).map(s+p),d),l+=c.colspan-1}}}}function Q(r,n){if(!x(r))return!1;if(n){let i=j(r),s=r.tr;if(0==i.top&&i.bottom==i.map.height)return!1;for(let r=i.bottom-1;Y(s,i,r),r!=i.top;r--){let r=i.tableStart?s.doc.nodeAt(i.tableStart-1):s.doc;if(!r)throw RangeError("No table found");i.table=r,i.map=p.get(i.table)}n(s)}return!0}function ee(r){let n=r.content;return 1==n.childCount&&n.child(0).isTextblock&&0==n.child(0).childCount}function et({width:r,height:n,map:i},s){let o=s.top*r+s.left,l=o,a=(s.bottom-1)*r+s.left,u=o+(s.right-s.left-1);for(let n=s.top;n<s.bottom;n++){if(s.left>0&&i[l]==i[l-1]||s.right<r&&i[u]==i[u+1])return!0;l+=r,u+=r}for(let l=s.left;l<s.right;l++){if(s.top>0&&i[o]==i[o-r]||s.bottom<n&&i[a]==i[a+r])return!0;o++,a++}return!1}function er(r,n){let i=r.selection;if(!(i instanceof I)||i.$anchorCell.pos==i.$headCell.pos)return!1;let s=j(r),{map:o}=s;if(et(o,s))return!1;if(n){let i,l,a=r.tr,c={},h=u.FK.empty;for(let r=s.top;r<s.bottom;r++)for(let n=s.left;n<s.right;n++){let u=o.map[r*o.width+n],d=s.table.nodeAt(u);if(!c[u]&&d)if(c[u]=!0,null==i)i=u,l=d;else{ee(d)||(h=h.append(d.content));let r=a.mapping.map(u+s.tableStart);a.delete(r,r+d.nodeSize)}}if(null==i||null==l)return!0;if(a.setNodeMarkup(i+s.tableStart,null,{...D(l.attrs,l.attrs.colspan,s.right-s.left-l.attrs.colspan),rowspan:s.bottom-s.top}),h.size>0){let r=i+1+l.content.size,n=ee(l)?i+1:r;a.replaceWith(n+s.tableStart,r+s.tableStart,h)}a.setSelection(new I(a.doc.resolve(i+s.tableStart))),n(a)}return!0}function en(r,n){let i=y(r.schema);return ei(({node:r})=>i[r.type.spec.tableRole])(r,n)}function ei(r){return(n,i)=>{let s,o,l=n.selection;if(l instanceof I){if(l.$anchorCell.pos!=l.$headCell.pos)return!1;s=l.$anchorCell.nodeAfter,o=l.$anchorCell.pos}else{var a;if(!(s=w(l.$from)))return!1;o=null==(a=b(l.$from))?void 0:a.pos}if(null==s||null==o||1==s.attrs.colspan&&1==s.attrs.rowspan)return!1;if(i){let a,u=s.attrs,c=[],h=u.colwidth;u.rowspan>1&&(u={...u,rowspan:1}),u.colspan>1&&(u={...u,colspan:1});let d=j(n),p=n.tr;for(let r=0;r<d.right-d.left;r++)c.push(h?{...u,colwidth:h&&h[r]?[h[r]]:null}:u);for(let n=d.top;n<d.bottom;n++){let i=d.map.positionAt(n,d.left,d.table);n==d.top&&(i+=s.nodeSize);for(let o=d.left,l=0;o<d.right;o++,l++)(o!=d.left||n!=d.top)&&p.insert(a=p.mapping.map(i+d.tableStart,1),r({node:s,row:n,col:o}).createAndFill(c[l]))}p.setNodeMarkup(o,r({node:s,row:d.top,col:d.left}),c[0]),l instanceof I&&p.setSelection(new I(p.doc.resolve(l.$anchorCell.pos),a?p.doc.resolve(a):void 0)),i(p)}return!0}}function es(r,n){return function(i,s){if(!x(i))return!1;let o=v(i);if(o.nodeAfter.attrs[r]===n)return!1;if(s){let l=i.tr;i.selection instanceof I?i.selection.forEachCell((i,s)=>{i.attrs[r]!==n&&l.setNodeMarkup(s,null,{...i.attrs,[r]:n})}):l.setNodeMarkup(o.pos,null,{...o.nodeAfter.attrs,[r]:n}),s(l)}return!0}}function eo(r){return function(n,i){if(!x(n))return!1;if(i){let s=y(n.schema),o=j(n),l=n.tr,a=o.map.cellsInRect("column"==r?{left:o.left,top:0,right:o.right,bottom:o.map.height}:"row"==r?{left:0,top:o.top,right:o.map.width,bottom:o.bottom}:o),u=a.map(r=>o.table.nodeAt(r));for(let r=0;r<a.length;r++)u[r].type==s.header_cell&&l.setNodeMarkup(o.tableStart+a[r],s.cell,u[r].attrs);if(0===l.steps.length)for(let r=0;r<a.length;r++)l.setNodeMarkup(o.tableStart+a[r],s.header_cell,u[r].attrs);i(l)}return!0}}function el(r,n,i){let s=n.map.cellsInRect({left:0,top:0,right:"row"==r?n.map.width:1,bottom:"column"==r?n.map.height:1});for(let r=0;r<s.length;r++){let o=n.table.nodeAt(s[r]);if(o&&o.type!==i.header_cell)return!1}return!0}function ea(r,n){return(n=n||{useDeprecatedLogic:!1}).useDeprecatedLogic?eo(r):function(n,i){if(!x(n))return!1;if(i){let s=y(n.schema),o=j(n),l=n.tr,a=el("row",o,s),u=el("column",o,s),c=+("column"===r?!!a:"row"===r&&!!u),h="column"==r?{left:0,top:c,right:1,bottom:o.map.height}:"row"==r?{left:c,top:0,right:o.map.width,bottom:1}:o,d="column"==r?u?s.cell:s.header_cell:"row"==r?a?s.cell:s.header_cell:s.cell;o.map.cellsInRect(h).forEach(r=>{let n=r+o.tableStart,i=l.doc.nodeAt(n);i&&l.setNodeMarkup(n,d,i.attrs)}),i(l)}return!0}}ea("row",{useDeprecatedLogic:!0}),ea("column",{useDeprecatedLogic:!0});let eu=ea("cell",{useDeprecatedLogic:!0});function ec(r,n){if(n<0){let n=r.nodeBefore;if(n)return r.pos-n.nodeSize;for(let n=r.index(-1)-1,i=r.before();n>=0;n--){let s=r.node(-1).child(n),o=s.lastChild;if(o)return i-1-o.nodeSize;i-=s.nodeSize}}else{if(r.index()<r.parent.childCount-1)return r.pos+r.nodeAfter.nodeSize;let n=r.node(-1);for(let i=r.indexAfter(-1),s=r.after();i<n.childCount;i++){let r=n.child(i);if(r.childCount)return s+1;s+=r.nodeSize}}return null}function eh(r){return function(n,i){if(!x(n))return!1;let s=ec(v(n),r);if(null==s)return!1;if(i){let r=n.doc.resolve(s);i(n.tr.setSelection(a.U3.between(r,E(r))).scrollIntoView())}return!0}}function ed(r,n){let i=r.selection.$anchor;for(let s=i.depth;s>0;s--)if("table"==i.node(s).type.spec.tableRole)return n&&n(r.tr.delete(i.before(s),i.after(s)).scrollIntoView()),!0;return!1}function ep(r,n){let i=r.selection;if(!(i instanceof I))return!1;if(n){let s=r.tr,o=y(r.schema).cell.createAndFill().content;i.forEachCell((r,n)=>{r.content.eq(o)||s.replace(s.mapping.map(n+1),s.mapping.map(n+r.nodeSize-1),new u.Ji(o,0,0))}),s.docChanged&&n(s)}return!0}function ef(r){if(0===r.size)return null;let{content:n,openStart:i,openEnd:s}=r;for(;1==n.childCount&&(i>0&&s>0||"table"==n.child(0).type.spec.tableRole);)i--,s--,n=n.child(0).content;let o=n.child(0),l=o.type.spec.tableRole,a=o.type.schema,c=[];if("row"==l)for(let r=0;r<n.childCount;r++){let o=n.child(r).content,l=r?0:Math.max(0,i-1),h=r<n.childCount-1?0:Math.max(0,s-1);(l||h)&&(o=eg(y(a).row,new u.Ji(o,l,h)).content),c.push(o)}else{if("cell"!=l&&"header_cell"!=l)return null;c.push(i||s?eg(y(a).row,new u.Ji(n,i,s)).content:n)}return em(a,c)}function em(r,n){let i=[];for(let r=0;r<n.length;r++){let s=n[r];for(let n=s.childCount-1;n>=0;n--){let{rowspan:o,colspan:l}=s.child(n).attrs;for(let n=r;n<r+o;n++)i[n]=(i[n]||0)+l}}let s=0;for(let r=0;r<i.length;r++)s=Math.max(s,i[r]);for(let o=0;o<i.length;o++)if(o>=n.length&&n.push(u.FK.empty),i[o]<s){let l=y(r).cell.createAndFill(),a=[];for(let r=i[o];r<s;r++)a.push(l);n[o]=n[o].append(u.FK.from(a))}return{height:n.length,width:s,rows:n}}function eg(r,n){let i=r.createAndFill();return new d.dL(i).replace(0,i.content.size,n).doc}function e_({width:r,height:n,rows:i},s,o){if(r!=s){let n=[],o=[];for(let r=0;r<i.length;r++){let l=i[r],a=[];for(let i=n[r]||0,o=0;i<s;o++){let u=l.child(o%l.childCount);i+u.attrs.colspan>s&&(u=u.type.createChecked(T(u.attrs,u.attrs.colspan,i+u.attrs.colspan-s),u.content)),a.push(u),i+=u.attrs.colspan;for(let i=1;i<u.attrs.rowspan;i++)n[r+i]=(n[r+i]||0)+u.attrs.colspan}o.push(u.FK.from(a))}i=o,r=s}if(n!=o){let r=[];for(let s=0,l=0;s<o;s++,l++){let a=[],c=i[l%n];for(let r=0;r<c.childCount;r++){let n=c.child(r);s+n.attrs.rowspan>o&&(n=n.type.create({...n.attrs,rowspan:Math.max(1,o-n.attrs.rowspan)},n.content)),a.push(n)}r.push(u.FK.from(a))}i=r,n=o}return{width:r,height:n,rows:i}}function ey(r,n,i,s,o,l,a){let c,h,d=y(r.doc.type.schema);if(o>n.width)for(let l=0,u=0;l<n.height;l++){let p,f=i.child(l);u+=f.nodeSize;let m=[];p=null==f.lastChild||f.lastChild.type==d.cell?c||(c=d.cell.createAndFill()):h||(h=d.header_cell.createAndFill());for(let r=n.width;r<o;r++)m.push(p);r.insert(r.mapping.slice(a).map(u-1+s),m)}if(l>n.height){let p=[];for(let r=0,s=(n.height-1)*n.width;r<Math.max(n.width,o);r++){let o=!(r>=n.width)&&i.nodeAt(n.map[s+r]).type==d.header_cell;p.push(o?h||(h=d.header_cell.createAndFill()):c||(c=d.cell.createAndFill()))}let f=d.row.create(null,u.FK.from(p)),m=[];for(let r=n.height;r<l;r++)m.push(f);r.insert(r.mapping.slice(a).map(s+i.nodeSize-2),m)}return!!(c||h)}function ek(r,n,i,s,o,l,a,u){if(0==a||a==n.height)return!1;let c=!1;for(let h=o;h<l;h++){let o=a*n.width+h,l=n.map[o];if(n.map[o-n.width]==l){c=!0;let o=i.nodeAt(l),{top:d,left:p}=n.findCell(l);r.setNodeMarkup(r.mapping.slice(u).map(l+s),null,{...o.attrs,rowspan:a-d}),r.insert(r.mapping.slice(u).map(n.positionAt(a,p,i)),o.type.createAndFill({...o.attrs,rowspan:d+o.attrs.rowspan-a})),h+=o.attrs.colspan-1}}return c}function eb(r,n,i,s,o,l,a,u){if(0==a||a==n.width)return!1;let c=!1;for(let h=o;h<l;h++){let o=h*n.width+a,l=n.map[o];if(n.map[o-1]==l){c=!0;let o=i.nodeAt(l),d=n.colCount(l),p=r.mapping.slice(u).map(l+s);r.setNodeMarkup(p,null,T(o.attrs,a-d,o.attrs.colspan-(a-d))),r.insert(p+o.nodeSize,o.type.createAndFill(T(o.attrs,0,a-d))),h+=o.attrs.rowspan-1}}return c}function ew(r,n,i,s,o){let l=i?r.doc.nodeAt(i-1):r.doc;if(!l)throw Error("No table found");let a=p.get(l),{top:c,left:h}=s,d=h+o.width,f=c+o.height,m=r.tr,g=0;function _(){if(!(l=i?m.doc.nodeAt(i-1):m.doc))throw Error("No table found");a=p.get(l),g=m.mapping.maps.length}ey(m,a,l,i,d,f,0)&&_(),ek(m,a,l,i,h,d,c,g)&&_(),ek(m,a,l,i,h,d,f,g)&&_(),eb(m,a,l,i,c,f,h,g)&&_(),eb(m,a,l,i,c,f,d,g)&&_();for(let r=c;r<f;r++){let n=a.positionAt(r,h,l),s=a.positionAt(r,d,l);m.replace(m.mapping.slice(g).map(n+i),m.mapping.slice(g).map(s+i),new u.Ji(o.rows[r-c],0,0))}_(),m.setSelection(new I(m.doc.resolve(i+a.positionAt(c,h,l)),m.doc.resolve(i+a.positionAt(f-1,d-1,l)))),n(m)}let ex=(0,h.K)({ArrowLeft:eC("horiz",-1),ArrowRight:eC("horiz",1),ArrowUp:eC("vert",-1),ArrowDown:eC("vert",1),"Shift-ArrowLeft":eA("horiz",-1),"Shift-ArrowRight":eA("horiz",1),"Shift-ArrowUp":eA("vert",-1),"Shift-ArrowDown":eA("vert",1),Backspace:ep,"Mod-Backspace":ep,Delete:ep,"Mod-Delete":ep});function ev(r,n,i){return!i.eq(r.selection)&&(n&&n(r.tr.setSelection(i).scrollIntoView()),!0)}function eC(r,n){return(i,s,o)=>{if(!o)return!1;let l=i.selection;if(l instanceof I)return ev(i,s,a.LN.near(l.$headCell,n));if("horiz"!=r&&!l.empty)return!1;let u=eT(o,r,n);if(null==u)return!1;if("horiz"==r)return ev(i,s,a.LN.near(i.doc.resolve(l.head+n),n));{let o,l=i.doc.resolve(u),c=M(l,r,n);return o=c?a.LN.near(c,1):n<0?a.LN.near(i.doc.resolve(l.before(-1)),-1):a.LN.near(i.doc.resolve(l.after(-1)),1),ev(i,s,o)}}}function eA(r,n){return(i,s,o)=>{let l;if(!o)return!1;let a=i.selection;if(a instanceof I)l=a;else{let s=eT(o,r,n);if(null==s)return!1;l=new I(i.doc.resolve(s))}let u=M(l.$headCell,r,n);return!!u&&ev(i,s,new I(l.$anchorCell,u))}}function eE(r,n){let i=b(r.state.doc.resolve(n));return!!i&&(r.dispatch(r.state.tr.setSelection(new I(i))),!0)}function eS(r,n,i){if(!x(r.state))return!1;let s=ef(i),o=r.state.selection;if(o instanceof I){s||(s={width:1,height:1,rows:[u.FK.from(eg(y(r.state.schema).cell,i))]});let n=o.$anchorCell.node(-1),l=o.$anchorCell.start(-1),a=p.get(n).rectBetween(o.$anchorCell.pos-l,o.$headCell.pos-l);return s=e_(s,a.right-a.left,a.bottom-a.top),ew(r.state,r.dispatch,l,a,s),!0}if(!s)return!1;{let n=v(r.state),i=n.start(-1);return ew(r.state,r.dispatch,i,p.get(n.node(-1)).findCell(n.pos-i),s),!0}}function eM(r,n){var i;let s;if(0!=n.button||n.ctrlKey||n.metaKey)return;let o=eD(r,n.target);if(n.shiftKey&&r.state.selection instanceof I)l(r.state.selection.$anchorCell,n),n.preventDefault();else if(n.shiftKey&&o&&null!=(s=b(r.state.selection.$anchor))&&(null==(i=eF(r,n))?void 0:i.pos)!=s.pos)l(s,n),n.preventDefault();else if(!o)return;function l(n,i){let s=eF(r,i),o=null==k.getState(r.state);if(!s||!S(n,s))if(!o)return;else s=n;let l=new I(n,s);if(o||!r.state.selection.eq(l)){let i=r.state.tr.setSelection(l);o&&i.setMeta(k,n.pos),r.dispatch(i)}}function a(){r.root.removeEventListener("mouseup",a),r.root.removeEventListener("dragstart",a),r.root.removeEventListener("mousemove",u),null!=k.getState(r.state)&&r.dispatch(r.state.tr.setMeta(k,-1))}function u(i){let s,u=i,c=k.getState(r.state);if(null!=c)s=r.state.doc.resolve(c);else if(eD(r,u.target)!=o&&!(s=eF(r,n)))return a();s&&l(s,u)}r.root.addEventListener("mouseup",a),r.root.addEventListener("dragstart",a),r.root.addEventListener("mousemove",u)}function eT(r,n,i){if(!(r.state.selection instanceof a.U3))return null;let{$head:s}=r.state.selection;for(let o=s.depth-1;o>=0;o--){let l=s.node(o);if((i<0?s.index(o):s.indexAfter(o))!=(i<0?0:l.childCount))break;if("cell"==l.type.spec.tableRole||"header_cell"==l.type.spec.tableRole){let l=s.before(o),a="vert"==n?i>0?"down":"up":i>0?"right":"left";return r.endOfTextblock(a)?l:null}}return null}function eD(r,n){for(;n&&n!=r.dom;n=n.parentNode)if("TD"==n.nodeName||"TH"==n.nodeName)return n;return null}function eF(r,n){let i=r.posAtCoords({left:n.clientX,top:n.clientY});if(!i)return null;let{inside:s,pos:o}=i;return s>=0&&b(r.state.doc.resolve(s))||b(r.state.doc.resolve(o))}var eI=class{constructor(r,n){this.node=r,this.defaultCellMinWidth=n,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${n}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),eL(r,this.colgroup,this.table,n),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(r){return r.type==this.node.type&&(this.node=r,eL(r,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(r){return"attributes"==r.type&&(r.target==this.table||this.colgroup.contains(r.target))}};function eL(r,n,i,s,o,l){let a=0,u=!0,c=n.firstChild,h=r.firstChild;if(h){for(let r=0,i=0;r<h.childCount;r++){let{colspan:d,colwidth:p}=h.child(r).attrs;for(let r=0;r<d;r++,i++){let h=o==i?l:p&&p[r],d=h?h+"px":"";if(a+=h||s,h||(u=!1),c)c.style.width!=d&&(c.style.width=d),c=c.nextSibling;else{let r=document.createElement("col");r.style.width=d,n.appendChild(r)}}}for(;c;){var d;let r=c.nextSibling;null==(d=c.parentNode)||d.removeChild(c),c=r}u?(i.style.width=a+"px",i.style.minWidth=""):(i.style.width="",i.style.minWidth=a+"px")}}let eR=new a.hs("tableColumnResizing");function eN({handleWidth:r=5,cellMinWidth:n=25,defaultCellMinWidth:i=100,View:s=eI,lastColumnResizable:o=!0}={}){let l=new a.k_({key:eR,state:{init(r,n){var o;let a=null==(o=l.spec)||null==(o=o.props)?void 0:o.nodeViews,u=y(n.schema).table.name;return s&&a&&(a[u]=(r,n)=>new s(r,i,n)),new eO(-1,!1)},apply:(r,n)=>n.apply(r)},props:{attributes:r=>{let n=eR.getState(r);return n&&n.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(n,i)=>{ez(n,i,r,o)},mouseleave:r=>{eP(r)},mousedown:(r,s)=>{e$(r,s,n,i)}},decorations:r=>{let n=eR.getState(r);if(n&&n.activeHandle>-1)return eK(r,n.activeHandle)},nodeViews:{}}});return l}var eO=class r{constructor(r,n){this.activeHandle=r,this.dragging=n}apply(n){let i=this,s=n.getMeta(eR);if(s&&null!=s.setHandle)return new r(s.setHandle,!1);if(s&&void 0!==s.setDragging)return new r(i.activeHandle,s.setDragging);if(i.activeHandle>-1&&n.docChanged){let s=n.mapping.map(i.activeHandle,-1);return A(n.doc.resolve(s))||(s=-1),new r(s,i.dragging)}return i}};function ez(r,n,i,s){if(!r.editable)return;let o=eR.getState(r.state);if(o&&!o.dragging){let l=eq(n.target),a=-1;if(l){let{left:s,right:o}=l.getBoundingClientRect();n.clientX-s<=i?a=ej(r,n,"left",i):o-n.clientX<=i&&(a=ej(r,n,"right",i))}if(a!=o.activeHandle){if(!s&&-1!==a){let n=r.state.doc.resolve(a),i=n.node(-1),s=p.get(i),o=n.start(-1);if(s.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1==s.width-1)return}eV(r,a)}}}function eP(r){if(!r.editable)return;let n=eR.getState(r.state);n&&n.activeHandle>-1&&!n.dragging&&eV(r,-1)}function e$(r,n,i,s){var o;if(!r.editable)return!1;let l=null!=(o=r.dom.ownerDocument.defaultView)?o:window,a=eR.getState(r.state);if(!a||-1==a.activeHandle||a.dragging)return!1;let u=r.state.doc.nodeAt(a.activeHandle),c=eB(r,a.activeHandle,u.attrs);function h(n){l.removeEventListener("mouseup",h),l.removeEventListener("mousemove",d);let s=eR.getState(r.state);(null==s?void 0:s.dragging)&&(eU(r,s.activeHandle,eH(s.dragging,n,i)),r.dispatch(r.state.tr.setMeta(eR,{setDragging:null})))}function d(n){if(!n.which)return h(n);let o=eR.getState(r.state);if(o&&o.dragging){let l=eH(o.dragging,n,i);eW(r,o.activeHandle,l,s)}}return r.dispatch(r.state.tr.setMeta(eR,{setDragging:{startX:n.clientX,startWidth:c}})),eW(r,a.activeHandle,c,s),l.addEventListener("mouseup",h),l.addEventListener("mousemove",d),n.preventDefault(),!0}function eB(r,n,{colspan:i,colwidth:s}){let o=s&&s[s.length-1];if(o)return o;let l=r.domAtPos(n),a=l.node.childNodes[l.offset].offsetWidth,u=i;if(s)for(let r=0;r<i;r++)s[r]&&(a-=s[r],u--);return a/u}function eq(r){for(;r&&"TD"!=r.nodeName&&"TH"!=r.nodeName;)r=r.classList&&r.classList.contains("ProseMirror")?null:r.parentNode;return r}function ej(r,n,i,s){let o="right"==i?-s:s,l=r.posAtCoords({left:n.clientX+o,top:n.clientY});if(!l)return -1;let{pos:a}=l,u=b(r.state.doc.resolve(a));if(!u)return -1;if("right"==i)return u.pos;let c=p.get(u.node(-1)),h=u.start(-1),d=c.map.indexOf(u.pos-h);return d%c.width==0?-1:h+c.map[d-1]}function eH(r,n,i){let s=n.clientX-r.startX;return Math.max(i,r.startWidth+s)}function eV(r,n){r.dispatch(r.state.tr.setMeta(eR,{setHandle:n}))}function eU(r,n,i){let s=r.state.doc.resolve(n),o=s.node(-1),l=p.get(o),a=s.start(-1),u=l.colCount(s.pos-a)+s.nodeAfter.attrs.colspan-1,c=r.state.tr;for(let r=0;r<l.height;r++){let n=r*l.width+u;if(r&&l.map[n]==l.map[n-l.width])continue;let s=l.map[n],h=o.nodeAt(s).attrs,d=1==h.colspan?0:u-l.colCount(s);if(h.colwidth&&h.colwidth[d]==i)continue;let p=h.colwidth?h.colwidth.slice():eJ(h.colspan);p[d]=i,c.setNodeMarkup(a+s,null,{...h,colwidth:p})}c.docChanged&&r.dispatch(c)}function eW(r,n,i,s){let o=r.state.doc.resolve(n),l=o.node(-1),a=o.start(-1),u=p.get(l).colCount(o.pos-a)+o.nodeAfter.attrs.colspan-1,c=r.domAtPos(o.start(-1)).node;for(;c&&"TABLE"!=c.nodeName;)c=c.parentNode;c&&eL(l,c.firstChild,c,s,u,i)}function eJ(r){return Array(r).fill(0)}function eK(r,n){let i=[],s=r.doc.resolve(n),o=s.node(-1);if(!o)return c.zF.empty;let l=p.get(o),a=s.start(-1),u=l.colCount(s.pos-a)+s.nodeAfter.attrs.colspan-1;for(let n=0;n<l.height;n++){let s=u+n*l.width;if((u==l.width-1||l.map[s]!=l.map[s+1])&&(0==n||l.map[s]!=l.map[s-l.width])){var h;let n=l.map[s],u=a+n+o.nodeAt(n).nodeSize-1,d=document.createElement("div");d.className="column-resize-handle",(null==(h=eR.getState(r))?void 0:h.dragging)&&i.push(c.NZ.node(a+n,a+n+o.nodeAt(n).nodeSize,{class:"column-resize-dragging"})),i.push(c.NZ.widget(u,d))}}return c.zF.create(r.doc,i)}function eG({allowTableNodeSelection:r=!1}={}){return new a.k_({key:k,state:{init:()=>null,apply(r,n){let i=r.getMeta(k);if(null!=i)return -1==i?null:i;if(null==n||!r.docChanged)return n;let{deleted:s,pos:o}=r.mapping.mapResult(n);return s?null:o}},props:{decorations:R,handleDOMEvents:{mousedown:eM},createSelectionBetween:r=>null!=k.getState(r.state)?r.state.selection:null,handleTripleClick:eE,handleKeyDown:ex,handlePaste:eS},appendTransaction:(n,i,s)=>z(s,B(s,i),r)})}function eZ(r){return"left"===r||"right"===r||"center"===r?r:null}function eX(r){let n=(r.style.textAlign||"").trim().toLowerCase(),i=(r.getAttribute("align")||"").trim().toLowerCase();return eZ(n||i)}function eY(r){return eZ(null==r?void 0:r.align)}function eQ(){return{default:null,parseHTML:r=>eX(r),renderHTML:r=>r.align?{style:`text-align: ${r.align}`}:{}}}var e0=l.bP.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:r=>{var n,i;let s=r.getAttribute("colwidth"),o=s?s.split(",").map(r=>parseInt(r,10)):null;if(!o){let s=null==(n=r.closest("table"))?void 0:n.querySelectorAll("colgroup > col"),o=Array.from((null==(i=r.parentElement)?void 0:i.children)||[]).indexOf(r);if(o&&o>-1&&s&&s[o]){let r=s[o].getAttribute("width");return r?[parseInt(r,10)]:null}}return o}},align:eQ()}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:r}){return["td",(0,l.KV)(this.options.HTMLAttributes,r),0]}}),e1=l.bP.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:r=>{let n=r.getAttribute("colwidth");return n?n.split(",").map(r=>parseInt(r,10)):null}},align:eQ()}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:r}){return["th",(0,l.KV)(this.options.HTMLAttributes,r),0]}}),e2=l.bP.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:r}){return["tr",(0,l.KV)(this.options.HTMLAttributes,r),0]}});function e3(r,n){return n?["width",`${Math.max(n,r)}px`]:["min-width",`${r}px`]}function e5(r,n,i,s,o,l){var a;let u=0,c=!0,h=n.firstChild,d=r.firstChild;if(null!==d)for(let r=0,i=0;r<d.childCount;r+=1){let{colspan:a,colwidth:p}=d.child(r).attrs;for(let r=0;r<a;r+=1,i+=1){let a=o===i?l:p&&p[r],d=a?`${a}px`:"";if(u+=a||s,a||(c=!1),h){if(h.style.width!==d){let[r,n]=e3(s,a);h.style.setProperty(r,n)}h=h.nextSibling}else{let r=document.createElement("col"),[i,o]=e3(s,a);r.style.setProperty(i,o),n.appendChild(r)}}}for(;h;){let r=h.nextSibling;null==(a=h.parentNode)||a.removeChild(h),h=r}let p=r.attrs.style&&"string"==typeof r.attrs.style&&/\bwidth\s*:/i.test(r.attrs.style);c&&!p?(i.style.width=`${u}px`,i.style.minWidth=""):(i.style.width="",i.style.minWidth=`${u}px`)}var e4=class{constructor(r,n){this.node=r,this.cellMinWidth=n,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),r.attrs.style&&(this.table.style.cssText=r.attrs.style),this.colgroup=this.table.appendChild(document.createElement("colgroup")),e5(r,this.colgroup,this.table,n),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(r){return r.type===this.node.type&&(this.node=r,e5(r,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(r){let n=r.target,i=this.dom.contains(n),s=this.contentDOM.contains(n);return!!i&&!s&&("attributes"===r.type||"childList"===r.type||"characterData"===r.type)}};function e6(r,n,i,s){let o=0,l=!0,a=[],u=r.firstChild;if(!u)return{};for(let r=0,c=0;r<u.childCount;r+=1){let{colspan:h,colwidth:d}=u.child(r).attrs;for(let r=0;r<h;r+=1,c+=1){let u=i===c?s:d&&d[r];o+=u||n,u||(l=!1);let[h,p]=e3(n,u);a.push(["col",{style:`${h}: ${p}`}])}}return{colgroup:["colgroup",{},...a],tableWidth:l?`${o}px`:"",tableMinWidth:l?"":`${o}px`}}function e8(r,n){return n?r.createChecked(null,n):r.createAndFill()}function e9(r){if(r.cached.tableNodeTypes)return r.cached.tableNodeTypes;let n={};return Object.keys(r.nodes).forEach(i=>{let s=r.nodes[i];s.spec.tableRole&&(n[s.spec.tableRole]=s)}),r.cached.tableNodeTypes=n,n}function e7(r,n,i,s,o){let l=e9(r),a=[],u=[];for(let r=0;r<i;r+=1){let r=e8(l.cell,o);if(r&&u.push(r),s){let r=e8(l.header_cell,o);r&&a.push(r)}}let c=[];for(let r=0;r<n;r+=1)c.push(l.row.createChecked(null,s&&0===r?a:u));return l.table.createChecked(null,c)}function te(r){return r instanceof I}var tt=({editor:r})=>{let{selection:n}=r.state;if(!te(n))return!1;let i=0,s=(0,l.eL)(n.ranges[0].$from,r=>"table"===r.type.name);return null==s||s.node.descendants(r=>{if("table"===r.type.name)return!1;["tableCell","tableHeader"].includes(r.type.name)&&(i+=1)}),i===n.ranges.length&&(r.commands.deleteTable(),!0)},tr="\x1f";function tn(r){return(r||"").replace(/\s+/g," ").trim()}var ti=function(r,n,i={}){var s;let o=null!=(s=i.cellLineSeparator)?s:tr;if(!r||!r.content||0===r.content.length)return"";let l=[];r.content.forEach(r=>{let i=[];r.content&&r.content.forEach(r=>{let s="",l=tn(s=r.content&&Array.isArray(r.content)&&r.content.length>1?r.content.map(r=>n.renderChildren(r)).join(o):r.content?n.renderChildren(r.content):""),a="tableHeader"===r.type,u=eY(r.attrs);i.push({text:l,isHeader:a,align:u})}),l.push(i)});let a=l.reduce((r,n)=>Math.max(r,n.length),0);if(0===a)return"";let u=Array(a).fill(0);l.forEach(r=>{var n;for(let i=0;i<a;i+=1){let s=((null==(n=r[i])?void 0:n.text)||"").length;s>u[i]&&(u[i]=s),u[i]<3&&(u[i]=3)}});let c=(r,n)=>r+" ".repeat(Math.max(0,n-r.length)),h=l[0],d=h.some(r=>r.isHeader),p=Array(a).fill(null);l.forEach(r=>{var n;for(let i=0;i<a;i+=1)!p[i]&&(null==(n=r[i])?void 0:n.align)&&(p[i]=r[i].align)});let f="\n",m=Array(a).fill(0).map((r,n)=>d&&h[n]&&h[n].text||"");return f+=`| ${m.map((r,n)=>c(r,u[n])).join(" | ")} |
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21829],{5989:(r,n,i)=>{"use strict";let s,o;i.d(n,{XI:()=>ts,nA:()=>e0,A0:()=>e1,Hj:()=>e2});var l=i(82159),a=i(76865),u=i(27050),c=i(63197),h=i(12894),d=i(8242);if("u">typeof WeakMap){let r=new WeakMap;s=n=>r.get(n),o=(n,i)=>(r.set(n,i),i)}else{let r=[],n=10,i=0;s=n=>{for(let i=0;i<r.length;i+=2)if(r[i]==n)return r[i+1]},o=(s,o)=>(i==n&&(i=0),r[i++]=s,r[i++]=o)}var p=class{constructor(r,n,i,s){this.width=r,this.height=n,this.map=i,this.problems=s}findCell(r){for(let n=0;n<this.map.length;n++){let i=this.map[n];if(i!=r)continue;let s=n%this.width,o=n/this.width|0,l=s+1,a=o+1;for(let r=1;l<this.width&&this.map[n+r]==i;r++)l++;for(let r=1;a<this.height&&this.map[n+this.width*r]==i;r++)a++;return{left:s,top:o,right:l,bottom:a}}throw RangeError(`No cell with offset ${r} found`)}colCount(r){for(let n=0;n<this.map.length;n++)if(this.map[n]==r)return n%this.width;throw RangeError(`No cell with offset ${r} found`)}nextCell(r,n,i){let{left:s,right:o,top:l,bottom:a}=this.findCell(r);return"horiz"==n?(i<0?0==s:o==this.width)?null:this.map[l*this.width+(i<0?s-1:o)]:(i<0?0==l:a==this.height)?null:this.map[s+this.width*(i<0?l-1:a)]}rectBetween(r,n){let{left:i,right:s,top:o,bottom:l}=this.findCell(r),{left:a,right:u,top:c,bottom:h}=this.findCell(n);return{left:Math.min(i,a),top:Math.min(o,c),right:Math.max(s,u),bottom:Math.max(l,h)}}cellsInRect(r){let n=[],i={};for(let s=r.top;s<r.bottom;s++)for(let o=r.left;o<r.right;o++){let l=s*this.width+o,a=this.map[l];!i[a]&&(i[a]=!0,o==r.left&&o&&this.map[l-1]==a||s==r.top&&s&&this.map[l-this.width]==a||n.push(a))}return n}positionAt(r,n,i){for(let s=0,o=0;;s++){let l=o+i.child(s).nodeSize;if(s==r){let i=n+r*this.width,s=(r+1)*this.width;for(;i<s&&this.map[i]<o;)i++;return i==s?l-1:this.map[i]}o=l}}static get(r){return s(r)||o(r,f(r))}};function f(r){if("table"!=r.type.spec.tableRole)throw RangeError("Not a table node: "+r.type.name);let n=m(r),i=r.childCount,s=[],o=0,l=null,a=[];for(let r=0,o=n*i;r<o;r++)s[r]=0;for(let u=0,c=0;u<i;u++){let h=r.child(u);c++;for(let r=0;;r++){for(;o<s.length&&0!=s[o];)o++;if(r==h.childCount)break;let d=h.child(r),{colspan:p,rowspan:f,colwidth:m}=d.attrs;for(let r=0;r<f;r++){if(r+u>=i){(l||(l=[])).push({type:"overlong_rowspan",pos:c,n:f-r});break}let h=o+r*n;for(let r=0;r<p;r++){0==s[h+r]?s[h+r]=c:(l||(l=[])).push({type:"collision",row:u,pos:c,n:p-r});let i=m&&m[r];if(i){let s=(h+r)%n*2,o=a[s];null==o||o!=i&&1==a[s+1]?(a[s]=i,a[s+1]=1):o==i&&a[s+1]++}}}o+=p,c+=d.nodeSize}let d=(u+1)*n,p=0;for(;o<d;)0==s[o++]&&p++;p&&(l||(l=[])).push({type:"missing",row:u,n:p}),c++}(0===n||0===i)&&(l||(l=[])).push({type:"zero_sized"});let u=new p(n,i,s,l),c=!1;for(let r=0;!c&&r<a.length;r+=2)null!=a[r]&&a[r+1]<i&&(c=!0);return c&&g(u,a,r),u}function m(r){let n=-1,i=!1;for(let s=0;s<r.childCount;s++){let o=r.child(s),l=0;if(i)for(let n=0;n<s;n++){let i=r.child(n);for(let r=0;r<i.childCount;r++){let o=i.child(r);n+o.attrs.rowspan>s&&(l+=o.attrs.colspan)}}for(let r=0;r<o.childCount;r++){let n=o.child(r);l+=n.attrs.colspan,n.attrs.rowspan>1&&(i=!0)}-1==n?n=l:n!=l&&(n=Math.max(n,l))}return n}function g(r,n,i){r.problems||(r.problems=[]);let s={};for(let o=0;o<r.map.length;o++){let l=r.map[o];if(s[l])continue;s[l]=!0;let a=i.nodeAt(l);if(!a)throw RangeError(`No cell with offset ${l} found`);let u=null,c=a.attrs;for(let i=0;i<c.colspan;i++){let s=n[(o+i)%r.width*2];null==s||c.colwidth&&c.colwidth[i]==s||((u||(u=_(c)))[i]=s)}u&&r.problems.unshift({type:"colwidth mismatch",pos:l,colwidth:u})}}function _(r){if(r.colwidth)return r.colwidth.slice();let n=[];for(let i=0;i<r.colspan;i++)n.push(0);return n}function y(r){let n=r.cached.tableNodeTypes;if(!n)for(let i in n=r.cached.tableNodeTypes={},r.nodes){let s=r.nodes[i],o=s.spec.tableRole;o&&(n[o]=s)}return n}let k=new a.hs("selectingCells");function b(r){for(let n=r.depth-1;n>0;n--)if("row"==r.node(n).type.spec.tableRole)return r.node(0).resolve(r.before(n+1));return null}function w(r){for(let n=r.depth;n>0;n--){let i=r.node(n).type.spec.tableRole;if("cell"===i||"header_cell"===i)return r.node(n)}return null}function x(r){let n=r.selection.$head;for(let r=n.depth;r>0;r--)if("row"==n.node(r).type.spec.tableRole)return!0;return!1}function v(r){let n=r.selection;if("$anchorCell"in n&&n.$anchorCell)return n.$anchorCell.pos>n.$headCell.pos?n.$anchorCell:n.$headCell;if("node"in n&&n.node&&"cell"==n.node.type.spec.tableRole)return n.$anchor;let i=b(n.$head)||C(n.$head);if(i)return i;throw RangeError(`No cell found around position ${n.head}`)}function C(r){for(let n=r.nodeAfter,i=r.pos;n;n=n.firstChild,i++){let s=n.type.spec.tableRole;if("cell"==s||"header_cell"==s)return r.doc.resolve(i)}for(let n=r.nodeBefore,i=r.pos;n;n=n.lastChild,i--){let s=n.type.spec.tableRole;if("cell"==s||"header_cell"==s)return r.doc.resolve(i-n.nodeSize)}}function A(r){return"row"==r.parent.type.spec.tableRole&&!!r.nodeAfter}function E(r){return r.node(0).resolve(r.pos+r.nodeAfter.nodeSize)}function S(r,n){return r.depth==n.depth&&r.pos>=n.start(-1)&&r.pos<=n.end(-1)}function M(r,n,i){let s=r.node(-1),o=p.get(s),l=r.start(-1),a=o.nextCell(r.pos-l,n,i);return null==a?null:r.node(0).resolve(l+a)}function T(r,n,i=1){let s={...r,colspan:r.colspan-i};return s.colwidth&&(s.colwidth=s.colwidth.slice(),s.colwidth.splice(n,i),s.colwidth.some(r=>r>0)||(s.colwidth=null)),s}function D(r,n,i=1){let s={...r,colspan:r.colspan+i};if(s.colwidth){s.colwidth=s.colwidth.slice();for(let r=0;r<i;r++)s.colwidth.splice(n,0,0)}return s}function F(r,n,i){let s=y(n.type.schema).header_cell;for(let o=0;o<r.height;o++)if(n.nodeAt(r.map[i+o*r.width]).type!=s)return!1;return!0}var I=class r extends a.LN{constructor(r,n=r){const i=r.node(-1),s=p.get(i),o=r.start(-1),l=s.rectBetween(r.pos-o,n.pos-o),u=r.node(0),c=s.cellsInRect(l).filter(r=>r!=n.pos-o);c.unshift(n.pos-o);const h=c.map(r=>{let n=i.nodeAt(r);if(!n)throw RangeError(`No cell with offset ${r} found`);let s=o+r+1;return new a.yn(u.resolve(s),u.resolve(s+n.content.size))});super(h[0].$from,h[0].$to,h),this.$anchorCell=r,this.$headCell=n}map(n,i){let s=n.resolve(i.map(this.$anchorCell.pos)),o=n.resolve(i.map(this.$headCell.pos));if(A(s)&&A(o)&&S(s,o)){let n=this.$anchorCell.node(-1)!=s.node(-1);return n&&this.isRowSelection()?r.rowSelection(s,o):n&&this.isColSelection()?r.colSelection(s,o):new r(s,o)}return a.U3.between(s,o)}content(){let r=this.$anchorCell.node(-1),n=p.get(r),i=this.$anchorCell.start(-1),s=n.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i),o={},l=[];for(let i=s.top;i<s.bottom;i++){let a=[];for(let l=i*n.width+s.left,u=s.left;u<s.right;u++,l++){let i=n.map[l];if(o[i])continue;o[i]=!0;let u=n.findCell(i),c=r.nodeAt(i);if(!c)throw RangeError(`No cell with offset ${i} found`);let h=s.left-u.left,d=u.right-s.right;if(h>0||d>0){let r=c.attrs;if(h>0&&(r=T(r,0,h)),d>0&&(r=T(r,r.colspan-d,d)),u.left<s.left){if(!(c=c.type.createAndFill(r)))throw RangeError(`Could not create cell with attrs ${JSON.stringify(r)}`)}else c=c.type.create(r,c.content)}if(u.top<s.top||u.bottom>s.bottom){let r={...c.attrs,rowspan:Math.min(u.bottom,s.bottom)-Math.max(u.top,s.top)};c=u.top<s.top?c.type.createAndFill(r):c.type.create(r,c.content)}a.push(c)}l.push(r.child(i).copy(u.FK.from(a)))}let a=this.isColSelection()&&this.isRowSelection()?r:l;return new u.Ji(u.FK.from(a),1,1)}replace(r,n=u.Ji.empty){let i=r.steps.length,s=this.ranges;for(let o=0;o<s.length;o++){let{$from:l,$to:a}=s[o],c=r.mapping.slice(i);r.replace(c.map(l.pos),c.map(a.pos),o?u.Ji.empty:n)}let o=a.LN.findFrom(r.doc.resolve(r.mapping.slice(i).map(this.to)),-1);o&&r.setSelection(o)}replaceWith(r,n){this.replace(r,new u.Ji(u.FK.from(n),0,0))}forEachCell(r){let n=this.$anchorCell.node(-1),i=p.get(n),s=this.$anchorCell.start(-1),o=i.cellsInRect(i.rectBetween(this.$anchorCell.pos-s,this.$headCell.pos-s));for(let i=0;i<o.length;i++)r(n.nodeAt(o[i]),s+o[i])}isColSelection(){let r=this.$anchorCell.index(-1),n=this.$headCell.index(-1);return!(Math.min(r,n)>0)&&Math.max(r+this.$anchorCell.nodeAfter.attrs.rowspan,n+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(n,i=n){let s=n.node(-1),o=p.get(s),l=n.start(-1),a=o.findCell(n.pos-l),u=o.findCell(i.pos-l),c=n.node(0);return a.top<=u.top?(a.top>0&&(n=c.resolve(l+o.map[a.left])),u.bottom<o.height&&(i=c.resolve(l+o.map[o.width*(o.height-1)+u.right-1]))):(u.top>0&&(i=c.resolve(l+o.map[u.left])),a.bottom<o.height&&(n=c.resolve(l+o.map[o.width*(o.height-1)+a.right-1]))),new r(n,i)}isRowSelection(){let r=this.$anchorCell.node(-1),n=p.get(r),i=this.$anchorCell.start(-1),s=n.colCount(this.$anchorCell.pos-i),o=n.colCount(this.$headCell.pos-i);return!(Math.min(s,o)>0)&&Math.max(s+this.$anchorCell.nodeAfter.attrs.colspan,o+this.$headCell.nodeAfter.attrs.colspan)==n.width}eq(n){return n instanceof r&&n.$anchorCell.pos==this.$anchorCell.pos&&n.$headCell.pos==this.$headCell.pos}static rowSelection(n,i=n){let s=n.node(-1),o=p.get(s),l=n.start(-1),a=o.findCell(n.pos-l),u=o.findCell(i.pos-l),c=n.node(0);return a.left<=u.left?(a.left>0&&(n=c.resolve(l+o.map[a.top*o.width])),u.right<o.width&&(i=c.resolve(l+o.map[o.width*(u.top+1)-1]))):(u.left>0&&(i=c.resolve(l+o.map[u.top*o.width])),a.right<o.width&&(n=c.resolve(l+o.map[o.width*(a.top+1)-1]))),new r(n,i)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(n,i){return new r(n.resolve(i.anchor),n.resolve(i.head))}static create(n,i,s=i){return new r(n.resolve(i),n.resolve(s))}getBookmark(){return new L(this.$anchorCell.pos,this.$headCell.pos)}};I.prototype.visible=!1,a.LN.jsonID("cell",I);var L=class r{constructor(r,n){this.anchor=r,this.head=n}map(n){return new r(n.map(this.anchor),n.map(this.head))}resolve(r){let n=r.resolve(this.anchor),i=r.resolve(this.head);return"row"==n.parent.type.spec.tableRole&&"row"==i.parent.type.spec.tableRole&&n.index()<n.parent.childCount&&i.index()<i.parent.childCount&&S(n,i)?new I(n,i):a.LN.near(i,1)}};function R(r){if(!(r.selection instanceof I))return null;let n=[];return r.selection.forEachCell((r,i)=>{n.push(c.NZ.node(i,i+r.nodeSize,{class:"selectedCell"}))}),c.zF.create(r.doc,n)}function N({$from:r,$to:n}){if(r.pos==n.pos||r.pos<n.pos-6)return!1;let i=r.pos,s=n.pos,o=r.depth;for(;o>=0&&!(r.after(o+1)<r.end(o));o--,i++);for(let r=n.depth;r>=0&&!(n.before(r+1)>n.start(r));r--,s--);return i==s&&/row|table/.test(r.node(o).type.spec.tableRole)}function O({$from:r,$to:n}){let i,s;for(let n=r.depth;n>0;n--){let s=r.node(n);if("cell"===s.type.spec.tableRole||"header_cell"===s.type.spec.tableRole){i=s;break}}for(let r=n.depth;r>0;r--){let i=n.node(r);if("cell"===i.type.spec.tableRole||"header_cell"===i.type.spec.tableRole){s=i;break}}return i!==s&&0===n.parentOffset}function z(r,n,i){let s,o,l=(n||r).selection,u=(n||r).doc;if(l instanceof a.nh&&(o=l.node.type.spec.tableRole)){if("cell"==o||"header_cell"==o)s=I.create(u,l.from);else if("row"==o){let r=u.resolve(l.from+1);s=I.rowSelection(r,r)}else if(!i){let r=p.get(l.node),n=l.from+1,i=n+r.map[r.width*r.height-1];s=I.create(u,n+1,i)}}else l instanceof a.U3&&N(l)?s=a.U3.create(u,l.from):l instanceof a.U3&&O(l)&&(s=a.U3.create(u,l.$from.start(),l.$from.end()));return s&&(n||(n=r.tr)).setSelection(s),n}let P=new a.hs("fix-tables");function $(r,n,i,s){let o=r.childCount,l=n.childCount;e:for(let a=0,u=0;a<l;a++){let l=n.child(a);for(let n=u,s=Math.min(o,a+3);n<s;n++)if(r.child(n)==l){u=n+1,i+=l.nodeSize;continue e}s(l,i),u<o&&r.child(u).sameMarkup(l)?$(r.child(u),l,i+1,s):l.nodesBetween(0,l.content.size,s,i+1),i+=l.nodeSize}}function B(r,n){let i,s=(n,s)=>{"table"==n.type.spec.tableRole&&(i=q(r,n,s,i))};return n?n.doc!=r.doc&&$(n.doc,r.doc,0,s):r.doc.descendants(s),i}function q(r,n,i,s){let o,l,a=p.get(n);if(!a.problems)return s;s||(s=r.tr);let u=[];for(let r=0;r<a.height;r++)u.push(0);for(let r=0;r<a.problems.length;r++){let o=a.problems[r];if("collision"==o.type){let r=n.nodeAt(o.pos);if(!r)continue;let l=r.attrs;for(let r=0;r<l.rowspan;r++)u[o.row+r]+=o.n;s.setNodeMarkup(s.mapping.map(i+1+o.pos),null,T(l,l.colspan-o.n,o.n))}else if("missing"==o.type)u[o.row]+=o.n;else if("overlong_rowspan"==o.type){let r=n.nodeAt(o.pos);if(!r)continue;s.setNodeMarkup(s.mapping.map(i+1+o.pos),null,{...r.attrs,rowspan:r.attrs.rowspan-o.n})}else if("colwidth mismatch"==o.type){let r=n.nodeAt(o.pos);if(!r)continue;s.setNodeMarkup(s.mapping.map(i+1+o.pos),null,{...r.attrs,colwidth:o.colwidth})}else if("zero_sized"==o.type){let r=s.mapping.map(i);s.delete(r,r+n.nodeSize)}}for(let r=0;r<u.length;r++)u[r]&&(null==o&&(o=r),l=r);for(let c=0,h=i+1;c<a.height;c++){let i=n.child(c),a=h+i.nodeSize,d=u[c];if(d>0){let n="cell";i.firstChild&&(n=i.firstChild.type.spec.tableRole);let u=[];for(let i=0;i<d;i++){let i=y(r.schema)[n].createAndFill();i&&u.push(i)}let p=(0==c||o==c-1)&&l==c?h+1:a-1;s.insert(s.mapping.map(p),u)}h=a}return s.setMeta(P,{fixTables:!0})}function j(r){let n=r.selection,i=v(r),s=i.node(-1),o=i.start(-1),l=p.get(s);return{...n instanceof I?l.rectBetween(n.$anchorCell.pos-o,n.$headCell.pos-o):l.findCell(i.pos-o),tableStart:o,map:l,table:s}}function H(r,{map:n,tableStart:i,table:s},o){let l=o>0?-1:0;F(n,s,o+l)&&(l=0==o||o==n.width?null:0);for(let a=0;a<n.height;a++){let u=a*n.width+o;if(o>0&&o<n.width&&n.map[u-1]==n.map[u]){let l=n.map[u],c=s.nodeAt(l);r.setNodeMarkup(r.mapping.map(i+l),null,D(c.attrs,o-n.colCount(l))),a+=c.attrs.rowspan-1}else{let c=null==l?y(s.type.schema).cell:s.nodeAt(n.map[u+l]).type,h=n.positionAt(a,o,s);r.insert(r.mapping.map(i+h),c.createAndFill())}}return r}function V(r,n){if(!x(r))return!1;if(n){let i=j(r);n(H(r.tr,i,i.left))}return!0}function U(r,n){if(!x(r))return!1;if(n){let i=j(r);n(H(r.tr,i,i.right))}return!0}function W(r,{map:n,table:i,tableStart:s},o){let l=r.mapping.maps.length;for(let a=0;a<n.height;){let u=a*n.width+o,c=n.map[u],h=i.nodeAt(c),d=h.attrs;if(o>0&&n.map[u-1]==c||o<n.width-1&&n.map[u+1]==c)r.setNodeMarkup(r.mapping.slice(l).map(s+c),null,T(d,o-n.colCount(c)));else{let n=r.mapping.slice(l).map(s+c);r.delete(n,n+h.nodeSize)}a+=d.rowspan}}function J(r,n){if(!x(r))return!1;if(n){let i=j(r),s=r.tr;if(0==i.left&&i.right==i.map.width)return!1;for(let r=i.right-1;W(s,i,r),r!=i.left;r--){let r=i.tableStart?s.doc.nodeAt(i.tableStart-1):s.doc;if(!r)throw RangeError("No table found");i.table=r,i.map=p.get(r)}n(s)}return!0}function K(r,n,i){var s;let o=y(n.type.schema).header_cell;for(let l=0;l<r.width;l++)if((null==(s=n.nodeAt(r.map[l+i*r.width]))?void 0:s.type)!=o)return!1;return!0}function G(r,{map:n,tableStart:i,table:s},o){let l=i;for(let r=0;r<o;r++)l+=s.child(r).nodeSize;let a=[],u=o>0?-1:0;K(n,s,o+u)&&(u=0==o||o==n.height?null:0);for(let l=0,h=n.width*o;l<n.width;l++,h++)if(o>0&&o<n.height&&n.map[h]==n.map[h-n.width]){let o=n.map[h],a=s.nodeAt(o).attrs;r.setNodeMarkup(i+o,null,{...a,rowspan:a.rowspan+1}),l+=a.colspan-1}else{var c;let r=null==u?y(s.type.schema).cell:null==(c=s.nodeAt(n.map[h+u*n.width]))?void 0:c.type,i=null==r?void 0:r.createAndFill();i&&a.push(i)}return r.insert(l,y(s.type.schema).row.create(null,a)),r}function Z(r,n){if(!x(r))return!1;if(n){let i=j(r);n(G(r.tr,i,i.top))}return!0}function X(r,n){if(!x(r))return!1;if(n){let i=j(r);n(G(r.tr,i,i.bottom))}return!0}function Y(r,{map:n,table:i,tableStart:s},o){let l=0;for(let r=0;r<o;r++)l+=i.child(r).nodeSize;let a=l+i.child(o).nodeSize,u=r.mapping.maps.length;r.delete(l+s,a+s);let c=new Set;for(let l=0,a=o*n.width;l<n.width;l++,a++){let h=n.map[a];if(!c.has(h)){if(c.add(h),o>0&&h==n.map[a-n.width]){let n=i.nodeAt(h).attrs;r.setNodeMarkup(r.mapping.slice(u).map(h+s),null,{...n,rowspan:n.rowspan-1}),l+=n.colspan-1}else if(o<n.height&&h==n.map[a+n.width]){let a=i.nodeAt(h),c=a.attrs,d=a.type.create({...c,rowspan:a.attrs.rowspan-1},a.content),p=n.positionAt(o+1,l,i);r.insert(r.mapping.slice(u).map(s+p),d),l+=c.colspan-1}}}}function Q(r,n){if(!x(r))return!1;if(n){let i=j(r),s=r.tr;if(0==i.top&&i.bottom==i.map.height)return!1;for(let r=i.bottom-1;Y(s,i,r),r!=i.top;r--){let r=i.tableStart?s.doc.nodeAt(i.tableStart-1):s.doc;if(!r)throw RangeError("No table found");i.table=r,i.map=p.get(i.table)}n(s)}return!0}function ee(r){let n=r.content;return 1==n.childCount&&n.child(0).isTextblock&&0==n.child(0).childCount}function et({width:r,height:n,map:i},s){let o=s.top*r+s.left,l=o,a=(s.bottom-1)*r+s.left,u=o+(s.right-s.left-1);for(let n=s.top;n<s.bottom;n++){if(s.left>0&&i[l]==i[l-1]||s.right<r&&i[u]==i[u+1])return!0;l+=r,u+=r}for(let l=s.left;l<s.right;l++){if(s.top>0&&i[o]==i[o-r]||s.bottom<n&&i[a]==i[a+r])return!0;o++,a++}return!1}function er(r,n){let i=r.selection;if(!(i instanceof I)||i.$anchorCell.pos==i.$headCell.pos)return!1;let s=j(r),{map:o}=s;if(et(o,s))return!1;if(n){let i,l,a=r.tr,c={},h=u.FK.empty;for(let r=s.top;r<s.bottom;r++)for(let n=s.left;n<s.right;n++){let u=o.map[r*o.width+n],d=s.table.nodeAt(u);if(!c[u]&&d)if(c[u]=!0,null==i)i=u,l=d;else{ee(d)||(h=h.append(d.content));let r=a.mapping.map(u+s.tableStart);a.delete(r,r+d.nodeSize)}}if(null==i||null==l)return!0;if(a.setNodeMarkup(i+s.tableStart,null,{...D(l.attrs,l.attrs.colspan,s.right-s.left-l.attrs.colspan),rowspan:s.bottom-s.top}),h.size>0){let r=i+1+l.content.size,n=ee(l)?i+1:r;a.replaceWith(n+s.tableStart,r+s.tableStart,h)}a.setSelection(new I(a.doc.resolve(i+s.tableStart))),n(a)}return!0}function en(r,n){let i=y(r.schema);return ei(({node:r})=>i[r.type.spec.tableRole])(r,n)}function ei(r){return(n,i)=>{let s,o,l=n.selection;if(l instanceof I){if(l.$anchorCell.pos!=l.$headCell.pos)return!1;s=l.$anchorCell.nodeAfter,o=l.$anchorCell.pos}else{var a;if(!(s=w(l.$from)))return!1;o=null==(a=b(l.$from))?void 0:a.pos}if(null==s||null==o||1==s.attrs.colspan&&1==s.attrs.rowspan)return!1;if(i){let a,u=s.attrs,c=[],h=u.colwidth;u.rowspan>1&&(u={...u,rowspan:1}),u.colspan>1&&(u={...u,colspan:1});let d=j(n),p=n.tr;for(let r=0;r<d.right-d.left;r++)c.push(h?{...u,colwidth:h&&h[r]?[h[r]]:null}:u);for(let n=d.top;n<d.bottom;n++){let i=d.map.positionAt(n,d.left,d.table);n==d.top&&(i+=s.nodeSize);for(let o=d.left,l=0;o<d.right;o++,l++)(o!=d.left||n!=d.top)&&p.insert(a=p.mapping.map(i+d.tableStart,1),r({node:s,row:n,col:o}).createAndFill(c[l]))}p.setNodeMarkup(o,r({node:s,row:d.top,col:d.left}),c[0]),l instanceof I&&p.setSelection(new I(p.doc.resolve(l.$anchorCell.pos),a?p.doc.resolve(a):void 0)),i(p)}return!0}}function es(r,n){return function(i,s){if(!x(i))return!1;let o=v(i);if(o.nodeAfter.attrs[r]===n)return!1;if(s){let l=i.tr;i.selection instanceof I?i.selection.forEachCell((i,s)=>{i.attrs[r]!==n&&l.setNodeMarkup(s,null,{...i.attrs,[r]:n})}):l.setNodeMarkup(o.pos,null,{...o.nodeAfter.attrs,[r]:n}),s(l)}return!0}}function eo(r){return function(n,i){if(!x(n))return!1;if(i){let s=y(n.schema),o=j(n),l=n.tr,a=o.map.cellsInRect("column"==r?{left:o.left,top:0,right:o.right,bottom:o.map.height}:"row"==r?{left:0,top:o.top,right:o.map.width,bottom:o.bottom}:o),u=a.map(r=>o.table.nodeAt(r));for(let r=0;r<a.length;r++)u[r].type==s.header_cell&&l.setNodeMarkup(o.tableStart+a[r],s.cell,u[r].attrs);if(0===l.steps.length)for(let r=0;r<a.length;r++)l.setNodeMarkup(o.tableStart+a[r],s.header_cell,u[r].attrs);i(l)}return!0}}function el(r,n,i){let s=n.map.cellsInRect({left:0,top:0,right:"row"==r?n.map.width:1,bottom:"column"==r?n.map.height:1});for(let r=0;r<s.length;r++){let o=n.table.nodeAt(s[r]);if(o&&o.type!==i.header_cell)return!1}return!0}function ea(r,n){return(n=n||{useDeprecatedLogic:!1}).useDeprecatedLogic?eo(r):function(n,i){if(!x(n))return!1;if(i){let s=y(n.schema),o=j(n),l=n.tr,a=el("row",o,s),u=el("column",o,s),c=+("column"===r?!!a:"row"===r&&!!u),h="column"==r?{left:0,top:c,right:1,bottom:o.map.height}:"row"==r?{left:c,top:0,right:o.map.width,bottom:1}:o,d="column"==r?u?s.cell:s.header_cell:"row"==r?a?s.cell:s.header_cell:s.cell;o.map.cellsInRect(h).forEach(r=>{let n=r+o.tableStart,i=l.doc.nodeAt(n);i&&l.setNodeMarkup(n,d,i.attrs)}),i(l)}return!0}}ea("row",{useDeprecatedLogic:!0}),ea("column",{useDeprecatedLogic:!0});let eu=ea("cell",{useDeprecatedLogic:!0});function ec(r,n){if(n<0){let n=r.nodeBefore;if(n)return r.pos-n.nodeSize;for(let n=r.index(-1)-1,i=r.before();n>=0;n--){let s=r.node(-1).child(n),o=s.lastChild;if(o)return i-1-o.nodeSize;i-=s.nodeSize}}else{if(r.index()<r.parent.childCount-1)return r.pos+r.nodeAfter.nodeSize;let n=r.node(-1);for(let i=r.indexAfter(-1),s=r.after();i<n.childCount;i++){let r=n.child(i);if(r.childCount)return s+1;s+=r.nodeSize}}return null}function eh(r){return function(n,i){if(!x(n))return!1;let s=ec(v(n),r);if(null==s)return!1;if(i){let r=n.doc.resolve(s);i(n.tr.setSelection(a.U3.between(r,E(r))).scrollIntoView())}return!0}}function ed(r,n){let i=r.selection.$anchor;for(let s=i.depth;s>0;s--)if("table"==i.node(s).type.spec.tableRole)return n&&n(r.tr.delete(i.before(s),i.after(s)).scrollIntoView()),!0;return!1}function ep(r,n){let i=r.selection;if(!(i instanceof I))return!1;if(n){let s=r.tr,o=y(r.schema).cell.createAndFill().content;i.forEachCell((r,n)=>{r.content.eq(o)||s.replace(s.mapping.map(n+1),s.mapping.map(n+r.nodeSize-1),new u.Ji(o,0,0))}),s.docChanged&&n(s)}return!0}function ef(r){if(0===r.size)return null;let{content:n,openStart:i,openEnd:s}=r;for(;1==n.childCount&&(i>0&&s>0||"table"==n.child(0).type.spec.tableRole);)i--,s--,n=n.child(0).content;let o=n.child(0),l=o.type.spec.tableRole,a=o.type.schema,c=[];if("row"==l)for(let r=0;r<n.childCount;r++){let o=n.child(r).content,l=r?0:Math.max(0,i-1),h=r<n.childCount-1?0:Math.max(0,s-1);(l||h)&&(o=eg(y(a).row,new u.Ji(o,l,h)).content),c.push(o)}else{if("cell"!=l&&"header_cell"!=l)return null;c.push(i||s?eg(y(a).row,new u.Ji(n,i,s)).content:n)}return em(a,c)}function em(r,n){let i=[];for(let r=0;r<n.length;r++){let s=n[r];for(let n=s.childCount-1;n>=0;n--){let{rowspan:o,colspan:l}=s.child(n).attrs;for(let n=r;n<r+o;n++)i[n]=(i[n]||0)+l}}let s=0;for(let r=0;r<i.length;r++)s=Math.max(s,i[r]);for(let o=0;o<i.length;o++)if(o>=n.length&&n.push(u.FK.empty),i[o]<s){let l=y(r).cell.createAndFill(),a=[];for(let r=i[o];r<s;r++)a.push(l);n[o]=n[o].append(u.FK.from(a))}return{height:n.length,width:s,rows:n}}function eg(r,n){let i=r.createAndFill();return new d.dL(i).replace(0,i.content.size,n).doc}function e_({width:r,height:n,rows:i},s,o){if(r!=s){let n=[],o=[];for(let r=0;r<i.length;r++){let l=i[r],a=[];for(let i=n[r]||0,o=0;i<s;o++){let u=l.child(o%l.childCount);i+u.attrs.colspan>s&&(u=u.type.createChecked(T(u.attrs,u.attrs.colspan,i+u.attrs.colspan-s),u.content)),a.push(u),i+=u.attrs.colspan;for(let i=1;i<u.attrs.rowspan;i++)n[r+i]=(n[r+i]||0)+u.attrs.colspan}o.push(u.FK.from(a))}i=o,r=s}if(n!=o){let r=[];for(let s=0,l=0;s<o;s++,l++){let a=[],c=i[l%n];for(let r=0;r<c.childCount;r++){let n=c.child(r);s+n.attrs.rowspan>o&&(n=n.type.create({...n.attrs,rowspan:Math.max(1,o-n.attrs.rowspan)},n.content)),a.push(n)}r.push(u.FK.from(a))}i=r,n=o}return{width:r,height:n,rows:i}}function ey(r,n,i,s,o,l,a){let c,h,d=y(r.doc.type.schema);if(o>n.width)for(let l=0,u=0;l<n.height;l++){let p,f=i.child(l);u+=f.nodeSize;let m=[];p=null==f.lastChild||f.lastChild.type==d.cell?c||(c=d.cell.createAndFill()):h||(h=d.header_cell.createAndFill());for(let r=n.width;r<o;r++)m.push(p);r.insert(r.mapping.slice(a).map(u-1+s),m)}if(l>n.height){let p=[];for(let r=0,s=(n.height-1)*n.width;r<Math.max(n.width,o);r++){let o=!(r>=n.width)&&i.nodeAt(n.map[s+r]).type==d.header_cell;p.push(o?h||(h=d.header_cell.createAndFill()):c||(c=d.cell.createAndFill()))}let f=d.row.create(null,u.FK.from(p)),m=[];for(let r=n.height;r<l;r++)m.push(f);r.insert(r.mapping.slice(a).map(s+i.nodeSize-2),m)}return!!(c||h)}function ek(r,n,i,s,o,l,a,u){if(0==a||a==n.height)return!1;let c=!1;for(let h=o;h<l;h++){let o=a*n.width+h,l=n.map[o];if(n.map[o-n.width]==l){c=!0;let o=i.nodeAt(l),{top:d,left:p}=n.findCell(l);r.setNodeMarkup(r.mapping.slice(u).map(l+s),null,{...o.attrs,rowspan:a-d}),r.insert(r.mapping.slice(u).map(n.positionAt(a,p,i)),o.type.createAndFill({...o.attrs,rowspan:d+o.attrs.rowspan-a})),h+=o.attrs.colspan-1}}return c}function eb(r,n,i,s,o,l,a,u){if(0==a||a==n.width)return!1;let c=!1;for(let h=o;h<l;h++){let o=h*n.width+a,l=n.map[o];if(n.map[o-1]==l){c=!0;let o=i.nodeAt(l),d=n.colCount(l),p=r.mapping.slice(u).map(l+s);r.setNodeMarkup(p,null,T(o.attrs,a-d,o.attrs.colspan-(a-d))),r.insert(p+o.nodeSize,o.type.createAndFill(T(o.attrs,0,a-d))),h+=o.attrs.rowspan-1}}return c}function ew(r,n,i,s,o){let l=i?r.doc.nodeAt(i-1):r.doc;if(!l)throw Error("No table found");let a=p.get(l),{top:c,left:h}=s,d=h+o.width,f=c+o.height,m=r.tr,g=0;function _(){if(!(l=i?m.doc.nodeAt(i-1):m.doc))throw Error("No table found");a=p.get(l),g=m.mapping.maps.length}ey(m,a,l,i,d,f,0)&&_(),ek(m,a,l,i,h,d,c,g)&&_(),ek(m,a,l,i,h,d,f,g)&&_(),eb(m,a,l,i,c,f,h,g)&&_(),eb(m,a,l,i,c,f,d,g)&&_();for(let r=c;r<f;r++){let n=a.positionAt(r,h,l),s=a.positionAt(r,d,l);m.replace(m.mapping.slice(g).map(n+i),m.mapping.slice(g).map(s+i),new u.Ji(o.rows[r-c],0,0))}_(),m.setSelection(new I(m.doc.resolve(i+a.positionAt(c,h,l)),m.doc.resolve(i+a.positionAt(f-1,d-1,l)))),n(m)}let ex=(0,h.K)({ArrowLeft:eC("horiz",-1),ArrowRight:eC("horiz",1),ArrowUp:eC("vert",-1),ArrowDown:eC("vert",1),"Shift-ArrowLeft":eA("horiz",-1),"Shift-ArrowRight":eA("horiz",1),"Shift-ArrowUp":eA("vert",-1),"Shift-ArrowDown":eA("vert",1),Backspace:ep,"Mod-Backspace":ep,Delete:ep,"Mod-Delete":ep});function ev(r,n,i){return!i.eq(r.selection)&&(n&&n(r.tr.setSelection(i).scrollIntoView()),!0)}function eC(r,n){return(i,s,o)=>{if(!o)return!1;let l=i.selection;if(l instanceof I)return ev(i,s,a.LN.near(l.$headCell,n));if("horiz"!=r&&!l.empty)return!1;let u=eT(o,r,n);if(null==u)return!1;if("horiz"==r)return ev(i,s,a.LN.near(i.doc.resolve(l.head+n),n));{let o,l=i.doc.resolve(u),c=M(l,r,n);return o=c?a.LN.near(c,1):n<0?a.LN.near(i.doc.resolve(l.before(-1)),-1):a.LN.near(i.doc.resolve(l.after(-1)),1),ev(i,s,o)}}}function eA(r,n){return(i,s,o)=>{let l;if(!o)return!1;let a=i.selection;if(a instanceof I)l=a;else{let s=eT(o,r,n);if(null==s)return!1;l=new I(i.doc.resolve(s))}let u=M(l.$headCell,r,n);return!!u&&ev(i,s,new I(l.$anchorCell,u))}}function eE(r,n){let i=b(r.state.doc.resolve(n));return!!i&&(r.dispatch(r.state.tr.setSelection(new I(i))),!0)}function eS(r,n,i){if(!x(r.state))return!1;let s=ef(i),o=r.state.selection;if(o instanceof I){s||(s={width:1,height:1,rows:[u.FK.from(eg(y(r.state.schema).cell,i))]});let n=o.$anchorCell.node(-1),l=o.$anchorCell.start(-1),a=p.get(n).rectBetween(o.$anchorCell.pos-l,o.$headCell.pos-l);return s=e_(s,a.right-a.left,a.bottom-a.top),ew(r.state,r.dispatch,l,a,s),!0}if(!s)return!1;{let n=v(r.state),i=n.start(-1);return ew(r.state,r.dispatch,i,p.get(n.node(-1)).findCell(n.pos-i),s),!0}}function eM(r,n){var i;let s;if(0!=n.button||n.ctrlKey||n.metaKey)return;let o=eD(r,n.target);if(n.shiftKey&&r.state.selection instanceof I)l(r.state.selection.$anchorCell,n),n.preventDefault();else if(n.shiftKey&&o&&null!=(s=b(r.state.selection.$anchor))&&(null==(i=eF(r,n))?void 0:i.pos)!=s.pos)l(s,n),n.preventDefault();else if(!o)return;function l(n,i){let s=eF(r,i),o=null==k.getState(r.state);if(!s||!S(n,s))if(!o)return;else s=n;let l=new I(n,s);if(o||!r.state.selection.eq(l)){let i=r.state.tr.setSelection(l);o&&i.setMeta(k,n.pos),r.dispatch(i)}}function a(){r.root.removeEventListener("mouseup",a),r.root.removeEventListener("dragstart",a),r.root.removeEventListener("mousemove",u),null!=k.getState(r.state)&&r.dispatch(r.state.tr.setMeta(k,-1))}function u(i){let s,u=i,c=k.getState(r.state);if(null!=c)s=r.state.doc.resolve(c);else if(eD(r,u.target)!=o&&!(s=eF(r,n)))return a();s&&l(s,u)}r.root.addEventListener("mouseup",a),r.root.addEventListener("dragstart",a),r.root.addEventListener("mousemove",u)}function eT(r,n,i){if(!(r.state.selection instanceof a.U3))return null;let{$head:s}=r.state.selection;for(let o=s.depth-1;o>=0;o--){let l=s.node(o);if((i<0?s.index(o):s.indexAfter(o))!=(i<0?0:l.childCount))break;if("cell"==l.type.spec.tableRole||"header_cell"==l.type.spec.tableRole){let l=s.before(o),a="vert"==n?i>0?"down":"up":i>0?"right":"left";return r.endOfTextblock(a)?l:null}}return null}function eD(r,n){for(;n&&n!=r.dom;n=n.parentNode)if("TD"==n.nodeName||"TH"==n.nodeName)return n;return null}function eF(r,n){let i=r.posAtCoords({left:n.clientX,top:n.clientY});if(!i)return null;let{inside:s,pos:o}=i;return s>=0&&b(r.state.doc.resolve(s))||b(r.state.doc.resolve(o))}var eI=class{constructor(r,n){this.node=r,this.defaultCellMinWidth=n,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${n}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),eL(r,this.colgroup,this.table,n),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(r){return r.type==this.node.type&&(this.node=r,eL(r,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(r){return"attributes"==r.type&&(r.target==this.table||this.colgroup.contains(r.target))}};function eL(r,n,i,s,o,l){let a=0,u=!0,c=n.firstChild,h=r.firstChild;if(h){for(let r=0,i=0;r<h.childCount;r++){let{colspan:d,colwidth:p}=h.child(r).attrs;for(let r=0;r<d;r++,i++){let h=o==i?l:p&&p[r],d=h?h+"px":"";if(a+=h||s,h||(u=!1),c)c.style.width!=d&&(c.style.width=d),c=c.nextSibling;else{let r=document.createElement("col");r.style.width=d,n.appendChild(r)}}}for(;c;){var d;let r=c.nextSibling;null==(d=c.parentNode)||d.removeChild(c),c=r}u?(i.style.width=a+"px",i.style.minWidth=""):(i.style.width="",i.style.minWidth=a+"px")}}let eR=new a.hs("tableColumnResizing");function eN({handleWidth:r=5,cellMinWidth:n=25,defaultCellMinWidth:i=100,View:s=eI,lastColumnResizable:o=!0}={}){let l=new a.k_({key:eR,state:{init(r,n){var o;let a=null==(o=l.spec)||null==(o=o.props)?void 0:o.nodeViews,u=y(n.schema).table.name;return s&&a&&(a[u]=(r,n)=>new s(r,i,n)),new eO(-1,!1)},apply:(r,n)=>n.apply(r)},props:{attributes:r=>{let n=eR.getState(r);return n&&n.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(n,i)=>{ez(n,i,r,o)},mouseleave:r=>{eP(r)},mousedown:(r,s)=>{e$(r,s,n,i)}},decorations:r=>{let n=eR.getState(r);if(n&&n.activeHandle>-1)return eK(r,n.activeHandle)},nodeViews:{}}});return l}var eO=class r{constructor(r,n){this.activeHandle=r,this.dragging=n}apply(n){let i=this,s=n.getMeta(eR);if(s&&null!=s.setHandle)return new r(s.setHandle,!1);if(s&&void 0!==s.setDragging)return new r(i.activeHandle,s.setDragging);if(i.activeHandle>-1&&n.docChanged){let s=n.mapping.map(i.activeHandle,-1);return A(n.doc.resolve(s))||(s=-1),new r(s,i.dragging)}return i}};function ez(r,n,i,s){if(!r.editable)return;let o=eR.getState(r.state);if(o&&!o.dragging){let l=eq(n.target),a=-1;if(l){let{left:s,right:o}=l.getBoundingClientRect();n.clientX-s<=i?a=ej(r,n,"left",i):o-n.clientX<=i&&(a=ej(r,n,"right",i))}if(a!=o.activeHandle){if(!s&&-1!==a){let n=r.state.doc.resolve(a),i=n.node(-1),s=p.get(i),o=n.start(-1);if(s.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1==s.width-1)return}eV(r,a)}}}function eP(r){if(!r.editable)return;let n=eR.getState(r.state);n&&n.activeHandle>-1&&!n.dragging&&eV(r,-1)}function e$(r,n,i,s){var o;if(!r.editable)return!1;let l=null!=(o=r.dom.ownerDocument.defaultView)?o:window,a=eR.getState(r.state);if(!a||-1==a.activeHandle||a.dragging)return!1;let u=r.state.doc.nodeAt(a.activeHandle),c=eB(r,a.activeHandle,u.attrs);function h(n){l.removeEventListener("mouseup",h),l.removeEventListener("mousemove",d);let s=eR.getState(r.state);(null==s?void 0:s.dragging)&&(eU(r,s.activeHandle,eH(s.dragging,n,i)),r.dispatch(r.state.tr.setMeta(eR,{setDragging:null})))}function d(n){if(!n.which)return h(n);let o=eR.getState(r.state);if(o&&o.dragging){let l=eH(o.dragging,n,i);eW(r,o.activeHandle,l,s)}}return r.dispatch(r.state.tr.setMeta(eR,{setDragging:{startX:n.clientX,startWidth:c}})),eW(r,a.activeHandle,c,s),l.addEventListener("mouseup",h),l.addEventListener("mousemove",d),n.preventDefault(),!0}function eB(r,n,{colspan:i,colwidth:s}){let o=s&&s[s.length-1];if(o)return o;let l=r.domAtPos(n),a=l.node.childNodes[l.offset].offsetWidth,u=i;if(s)for(let r=0;r<i;r++)s[r]&&(a-=s[r],u--);return a/u}function eq(r){for(;r&&"TD"!=r.nodeName&&"TH"!=r.nodeName;)r=r.classList&&r.classList.contains("ProseMirror")?null:r.parentNode;return r}function ej(r,n,i,s){let o="right"==i?-s:s,l=r.posAtCoords({left:n.clientX+o,top:n.clientY});if(!l)return -1;let{pos:a}=l,u=b(r.state.doc.resolve(a));if(!u)return -1;if("right"==i)return u.pos;let c=p.get(u.node(-1)),h=u.start(-1),d=c.map.indexOf(u.pos-h);return d%c.width==0?-1:h+c.map[d-1]}function eH(r,n,i){let s=n.clientX-r.startX;return Math.max(i,r.startWidth+s)}function eV(r,n){r.dispatch(r.state.tr.setMeta(eR,{setHandle:n}))}function eU(r,n,i){let s=r.state.doc.resolve(n),o=s.node(-1),l=p.get(o),a=s.start(-1),u=l.colCount(s.pos-a)+s.nodeAfter.attrs.colspan-1,c=r.state.tr;for(let r=0;r<l.height;r++){let n=r*l.width+u;if(r&&l.map[n]==l.map[n-l.width])continue;let s=l.map[n],h=o.nodeAt(s).attrs,d=1==h.colspan?0:u-l.colCount(s);if(h.colwidth&&h.colwidth[d]==i)continue;let p=h.colwidth?h.colwidth.slice():eJ(h.colspan);p[d]=i,c.setNodeMarkup(a+s,null,{...h,colwidth:p})}c.docChanged&&r.dispatch(c)}function eW(r,n,i,s){let o=r.state.doc.resolve(n),l=o.node(-1),a=o.start(-1),u=p.get(l).colCount(o.pos-a)+o.nodeAfter.attrs.colspan-1,c=r.domAtPos(o.start(-1)).node;for(;c&&"TABLE"!=c.nodeName;)c=c.parentNode;c&&eL(l,c.firstChild,c,s,u,i)}function eJ(r){return Array(r).fill(0)}function eK(r,n){let i=[],s=r.doc.resolve(n),o=s.node(-1);if(!o)return c.zF.empty;let l=p.get(o),a=s.start(-1),u=l.colCount(s.pos-a)+s.nodeAfter.attrs.colspan-1;for(let n=0;n<l.height;n++){let s=u+n*l.width;if((u==l.width-1||l.map[s]!=l.map[s+1])&&(0==n||l.map[s]!=l.map[s-l.width])){var h;let n=l.map[s],u=a+n+o.nodeAt(n).nodeSize-1,d=document.createElement("div");d.className="column-resize-handle",(null==(h=eR.getState(r))?void 0:h.dragging)&&i.push(c.NZ.node(a+n,a+n+o.nodeAt(n).nodeSize,{class:"column-resize-dragging"})),i.push(c.NZ.widget(u,d))}}return c.zF.create(r.doc,i)}function eG({allowTableNodeSelection:r=!1}={}){return new a.k_({key:k,state:{init:()=>null,apply(r,n){let i=r.getMeta(k);if(null!=i)return -1==i?null:i;if(null==n||!r.docChanged)return n;let{deleted:s,pos:o}=r.mapping.mapResult(n);return s?null:o}},props:{decorations:R,handleDOMEvents:{mousedown:eM},createSelectionBetween:r=>null!=k.getState(r.state)?r.state.selection:null,handleTripleClick:eE,handleKeyDown:ex,handlePaste:eS},appendTransaction:(n,i,s)=>z(s,B(s,i),r)})}function eZ(r){return"left"===r||"right"===r||"center"===r?r:null}function eX(r){let n=(r.style.textAlign||"").trim().toLowerCase(),i=(r.getAttribute("align")||"").trim().toLowerCase();return eZ(n||i)}function eY(r){return eZ(null==r?void 0:r.align)}function eQ(){return{default:null,parseHTML:r=>eX(r),renderHTML:r=>r.align?{style:`text-align: ${r.align}`}:{}}}var e0=l.bP.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:r=>{var n,i;let s=r.getAttribute("colwidth"),o=s?s.split(",").map(r=>parseInt(r,10)):null;if(!o){let s=null==(n=r.closest("table"))?void 0:n.querySelectorAll("colgroup > col"),o=Array.from((null==(i=r.parentElement)?void 0:i.children)||[]).indexOf(r);if(o&&o>-1&&s&&s[o]){let r=s[o].getAttribute("width");return r?[parseInt(r,10)]:null}}return o}},align:eQ()}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:r}){return["td",(0,l.KV)(this.options.HTMLAttributes,r),0]}}),e1=l.bP.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:r=>{let n=r.getAttribute("colwidth");return n?n.split(",").map(r=>parseInt(r,10)):null}},align:eQ()}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:r}){return["th",(0,l.KV)(this.options.HTMLAttributes,r),0]}}),e2=l.bP.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:r}){return["tr",(0,l.KV)(this.options.HTMLAttributes,r),0]}});function e3(r,n){return n?["width",`${Math.max(n,r)}px`]:["min-width",`${r}px`]}function e5(r,n,i,s,o,l){var a;let u=0,c=!0,h=n.firstChild,d=r.firstChild;if(null!==d)for(let r=0,i=0;r<d.childCount;r+=1){let{colspan:a,colwidth:p}=d.child(r).attrs;for(let r=0;r<a;r+=1,i+=1){let a=o===i?l:p&&p[r],d=a?`${a}px`:"";if(u+=a||s,a||(c=!1),h){if(h.style.width!==d){let[r,n]=e3(s,a);h.style.setProperty(r,n)}h=h.nextSibling}else{let r=document.createElement("col"),[i,o]=e3(s,a);r.style.setProperty(i,o),n.appendChild(r)}}}for(;h;){let r=h.nextSibling;null==(a=h.parentNode)||a.removeChild(h),h=r}let p=r.attrs.style&&"string"==typeof r.attrs.style&&/\bwidth\s*:/i.test(r.attrs.style);c&&!p?(i.style.width=`${u}px`,i.style.minWidth=""):(i.style.width="",i.style.minWidth=`${u}px`)}var e4=class{constructor(r,n){this.node=r,this.cellMinWidth=n,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),r.attrs.style&&(this.table.style.cssText=r.attrs.style),this.colgroup=this.table.appendChild(document.createElement("colgroup")),e5(r,this.colgroup,this.table,n),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(r){return r.type===this.node.type&&(this.node=r,e5(r,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(r){let n=r.target,i=this.dom.contains(n),s=this.contentDOM.contains(n);return!!i&&!s&&("attributes"===r.type||"childList"===r.type||"characterData"===r.type)}};function e6(r,n,i,s){let o=0,l=!0,a=[],u=r.firstChild;if(!u)return{};for(let r=0,c=0;r<u.childCount;r+=1){let{colspan:h,colwidth:d}=u.child(r).attrs;for(let r=0;r<h;r+=1,c+=1){let u=i===c?s:d&&d[r];o+=u||n,u||(l=!1);let[h,p]=e3(n,u);a.push(["col",{style:`${h}: ${p}`}])}}return{colgroup:["colgroup",{},...a],tableWidth:l?`${o}px`:"",tableMinWidth:l?"":`${o}px`}}function e8(r,n){return n?r.createChecked(null,n):r.createAndFill()}function e9(r){if(r.cached.tableNodeTypes)return r.cached.tableNodeTypes;let n={};return Object.keys(r.nodes).forEach(i=>{let s=r.nodes[i];s.spec.tableRole&&(n[s.spec.tableRole]=s)}),r.cached.tableNodeTypes=n,n}function e7(r,n,i,s,o){let l=e9(r),a=[],u=[];for(let r=0;r<i;r+=1){let r=e8(l.cell,o);if(r&&u.push(r),s){let r=e8(l.header_cell,o);r&&a.push(r)}}let c=[];for(let r=0;r<n;r+=1)c.push(l.row.createChecked(null,s&&0===r?a:u));return l.table.createChecked(null,c)}function te(r){return r instanceof I}var tt=({editor:r})=>{let{selection:n}=r.state;if(!te(n))return!1;let i=0,s=(0,l.eL)(n.ranges[0].$from,r=>"table"===r.type.name);return null==s||s.node.descendants(r=>{if("table"===r.type.name)return!1;["tableCell","tableHeader"].includes(r.type.name)&&(i+=1)}),i===n.ranges.length&&(r.commands.deleteTable(),!0)},tr="\x1f";function tn(r){return(r||"").replace(/\s+/g," ").trim()}var ti=function(r,n,i={}){var s;let o=null!=(s=i.cellLineSeparator)?s:tr;if(!r||!r.content||0===r.content.length)return"";let l=[];r.content.forEach(r=>{let i=[];r.content&&r.content.forEach(r=>{let s="",l=tn(s=r.content&&Array.isArray(r.content)&&r.content.length>1?r.content.map(r=>n.renderChildren(r)).join(o):r.content?n.renderChildren(r.content):""),a="tableHeader"===r.type,u=eY(r.attrs);i.push({text:l,isHeader:a,align:u})}),l.push(i)});let a=l.reduce((r,n)=>Math.max(r,n.length),0);if(0===a)return"";let u=Array(a).fill(0);l.forEach(r=>{var n;for(let i=0;i<a;i+=1){let s=((null==(n=r[i])?void 0:n.text)||"").length;s>u[i]&&(u[i]=s),u[i]<3&&(u[i]=3)}});let c=(r,n)=>r+" ".repeat(Math.max(0,n-r.length)),h=l[0],d=h.some(r=>r.isHeader),p=Array(a).fill(null);l.forEach(r=>{var n;for(let i=0;i<a;i+=1)!p[i]&&(null==(n=r[i])?void 0:n.align)&&(p[i]=r[i].align)});let f="\n",m=Array(a).fill(0).map((r,n)=>d&&h[n]&&h[n].text||"");return f+=`| ${m.map((r,n)=>c(r,u[n])).join(" | ")} |
2
2
  | ${u.map((r,n)=>{let i=Math.max(3,r),s=p[n];return"left"===s?`:${"-".repeat(i)}`:"right"===s?`${"-".repeat(i)}:`:"center"===s?`:${"-".repeat(i)}:`:"-".repeat(i)}).join(" | ")} |
3
3
  `,(d?l.slice(1):l).forEach(r=>{f+=`| ${Array(a).fill(0).map((n,i)=>c(r[i]&&r[i].text||"",u[i])).join(" | ")} |
4
- `}),f},ts=l.bP.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:e4,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:r,HTMLAttributes:n}){let{colgroup:i,tableWidth:s,tableMinWidth:o}=e6(r,this.options.cellMinWidth),a=n.style;function u(){return a||(s?`width: ${s}`:`min-width: ${o}`)}let c=["table",(0,l.KV)(this.options.HTMLAttributes,n,{style:u()}),i,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},c]:c},parseMarkdown:(r,n)=>{let i=[],s=Array.isArray(r.align)?r.align:[];if(r.header){let o=[];r.header.forEach((r,i)=>{var l;let a=eZ(null!=(l=s[i])?l:r.align),u=a?{align:a}:{};o.push(n.createNode("tableHeader",u,[{type:"paragraph",content:n.parseInline(r.tokens)}]))}),i.push(n.createNode("tableRow",{},o))}return r.rows&&r.rows.forEach(r=>{let o=[];r.forEach((r,i)=>{var l;let a=eZ(null!=(l=s[i])?l:r.align),u=a?{align:a}:{};o.push(n.createNode("tableCell",u,[{type:"paragraph",content:n.parseInline(r.tokens)}]))}),i.push(n.createNode("tableRow",{},o))}),n.createNode("table",void 0,i)},renderMarkdown:(r,n)=>ti(r,n),addCommands:()=>({insertTable:({rows:r=3,cols:n=3,withHeaderRow:i=!0}={})=>({tr:s,dispatch:o,editor:l})=>{let u=e7(l.schema,r,n,i);if(o){let r=s.selection.from+1;s.replaceSelectionWith(u).scrollIntoView().setSelection(a.U3.near(s.doc.resolve(r)))}return!0},addColumnBefore:()=>({state:r,dispatch:n})=>V(r,n),addColumnAfter:()=>({state:r,dispatch:n})=>U(r,n),deleteColumn:()=>({state:r,dispatch:n})=>J(r,n),addRowBefore:()=>({state:r,dispatch:n})=>Z(r,n),addRowAfter:()=>({state:r,dispatch:n})=>X(r,n),deleteRow:()=>({state:r,dispatch:n})=>Q(r,n),deleteTable:()=>({state:r,dispatch:n})=>ed(r,n),mergeCells:()=>({state:r,dispatch:n})=>er(r,n),splitCell:()=>({state:r,dispatch:n})=>en(r,n),toggleHeaderColumn:()=>({state:r,dispatch:n})=>ea("column")(r,n),toggleHeaderRow:()=>({state:r,dispatch:n})=>ea("row")(r,n),toggleHeaderCell:()=>({state:r,dispatch:n})=>eu(r,n),mergeOrSplit:()=>({state:r,dispatch:n})=>!!er(r,n)||en(r,n),setCellAttribute:(r,n)=>({state:i,dispatch:s})=>es(r,n)(i,s),goToNextCell:()=>({state:r,dispatch:n})=>eh(1)(r,n),goToPreviousCell:()=>({state:r,dispatch:n})=>eh(-1)(r,n),fixTables:()=>({state:r,dispatch:n})=>(n&&B(r),!0),setCellSelection:r=>({tr:n,dispatch:i})=>{if(i){let i=I.create(n.doc,r.anchorCell,r.headCell);n.setSelection(i)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:tt,"Mod-Backspace":tt,Delete:tt,"Mod-Delete":tt}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[eN({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],eG({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(r){let n={name:r.name,options:r.options,storage:r.storage};return{tableRole:(0,l.gk)((0,l.iI)(r,"tableRole",n))}}});l.YY.create({name:"tableKit",addExtensions(){let r=[];return!1!==this.options.table&&r.push(ts.configure(this.options.table)),!1!==this.options.tableCell&&r.push(e0.configure(this.options.tableCell)),!1!==this.options.tableHeader&&r.push(e1.configure(this.options.tableHeader)),!1!==this.options.tableRow&&r.push(e2.configure(this.options.tableRow)),r}})},6268:(r,n,i)=>{"use strict";i.d(n,{A:()=>s.A0});var s=i(5989)},8242:(r,n,i)=>{"use strict";i.d(n,{$L:()=>ee,Ln:()=>E,N0:()=>Z,Um:()=>Q,Wg:()=>S,X9:()=>_,Ys:()=>v,dL:()=>ey,jP:()=>L,n9:()=>J,oM:()=>N,zy:()=>U});var s=i(27050);let o=65535,l=65536;function a(r,n){return r+n*l}function u(r){return r&o}function c(r){return(r-(r&o))/l}let h=1,d=2,p=4,f=8;class m{constructor(r,n,i){this.pos=r,this.delInfo=n,this.recover=i}get deleted(){return(this.delInfo&f)>0}get deletedBefore(){return(this.delInfo&(h|p))>0}get deletedAfter(){return(this.delInfo&(d|p))>0}get deletedAcross(){return(this.delInfo&p)>0}}class g{constructor(r,n=!1){if(this.ranges=r,this.inverted=n,!r.length&&g.empty)return g.empty}recover(r){let n=0,i=u(r);if(!this.inverted)for(let r=0;r<i;r++)n+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*i]+n+c(r)}mapResult(r,n=1){return this._map(r,n,!1)}map(r,n=1){return this._map(r,n,!0)}_map(r,n,i){let s=0,o=this.inverted?2:1,l=this.inverted?1:2;for(let u=0;u<this.ranges.length;u+=3){let c=this.ranges[u]-(this.inverted?s:0);if(c>r)break;let g=this.ranges[u+o],_=this.ranges[u+l],y=c+g;if(r<=y){let o=g?r==c?-1:r==y?1:n:n,l=c+s+(o<0?0:_);if(i)return l;let k=r==(n<0?c:y)?null:a(u/3,r-c),b=r==c?d:r==y?h:p;return(n<0?r!=c:r!=y)&&(b|=f),new m(l,b,k)}s+=_-g}return i?r+s:new m(r+s,0,null)}touches(r,n){let i=0,s=u(n),o=this.inverted?2:1,l=this.inverted?1:2;for(let n=0;n<this.ranges.length;n+=3){let a=this.ranges[n]-(this.inverted?i:0);if(a>r)break;let u=this.ranges[n+o];if(r<=a+u&&n==3*s)return!0;i+=this.ranges[n+l]-u}return!1}forEach(r){let n=this.inverted?2:1,i=this.inverted?1:2;for(let s=0,o=0;s<this.ranges.length;s+=3){let l=this.ranges[s],a=l-(this.inverted?o:0),u=l+(this.inverted?0:o),c=this.ranges[s+n],h=this.ranges[s+i];r(a,a+c,u,u+h),o+=h-c}}invert(){return new g(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(r){return 0==r?g.empty:new g(r<0?[0,-r,0]:[0,0,r])}}g.empty=new g([]);class _{constructor(r,n,i=0,s=r?r.length:0){this.mirror=n,this.from=i,this.to=s,this._maps=r||[],this.ownData=!(r||n)}get maps(){return this._maps}slice(r=0,n=this.maps.length){return new _(this._maps,this.mirror,r,n)}appendMap(r,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(r),null!=n&&this.setMirror(this._maps.length-1,n)}appendMapping(r){for(let n=0,i=this._maps.length;n<r._maps.length;n++){let s=r.getMirror(n);this.appendMap(r._maps[n],null!=s&&s<n?i+s:void 0)}}getMirror(r){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==r)return this.mirror[n+(n%2?-1:1)]}}setMirror(r,n){this.mirror||(this.mirror=[]),this.mirror.push(r,n)}appendMappingInverted(r){for(let n=r.maps.length-1,i=this._maps.length+r._maps.length;n>=0;n--){let s=r.getMirror(n);this.appendMap(r._maps[n].invert(),null!=s&&s>n?i-s-1:void 0)}}invert(){let r=new _;return r.appendMappingInverted(this),r}map(r,n=1){if(this.mirror)return this._map(r,n,!0);for(let i=this.from;i<this.to;i++)r=this._maps[i].map(r,n);return r}mapResult(r,n=1){return this._map(r,n,!1)}_map(r,n,i){let s=0;for(let i=this.from;i<this.to;i++){let o=this._maps[i].mapResult(r,n);if(null!=o.recover){let n=this.getMirror(i);if(null!=n&&n>i&&n<this.to){i=n,r=this._maps[n].recover(o.recover);continue}}s|=o.delInfo,r=o.pos}return i?r:new m(r,s,null)}}let y=Object.create(null);class k{getMap(){return g.empty}merge(r){return null}static fromJSON(r,n){if(!n||!n.stepType)throw RangeError("Invalid input for Step.fromJSON");let i=y[n.stepType];if(!i)throw RangeError(`No step type ${n.stepType} defined`);return i.fromJSON(r,n)}static jsonID(r,n){if(r in y)throw RangeError("Duplicate use of step JSON ID "+r);return y[r]=n,n.prototype.jsonID=r,n}}class b{constructor(r,n){this.doc=r,this.failed=n}static ok(r){return new b(r,null)}static fail(r){return new b(null,r)}static fromReplace(r,n,i,o){try{return b.ok(r.replace(n,i,o))}catch(r){if(r instanceof s.vI)return b.fail(r.message);throw r}}}function w(r,n,i){let o=[];for(let s=0;s<r.childCount;s++){let l=r.child(s);l.content.size&&(l=l.copy(w(l.content,n,l))),l.isInline&&(l=n(l,i,s)),o.push(l)}return s.FK.fromArray(o)}class x extends k{constructor(r,n,i){super(),this.from=r,this.to=n,this.mark=i}apply(r){let n=r.slice(this.from,this.to),i=r.resolve(this.from),o=i.node(i.sharedDepth(this.to)),l=new s.Ji(w(n.content,(r,n)=>r.isAtom&&n.type.allowsMarkType(this.mark.type)?r.mark(this.mark.addToSet(r.marks)):r,o),n.openStart,n.openEnd);return b.fromReplace(r,this.from,this.to,l)}invert(){return new v(this.from,this.to,this.mark)}map(r){let n=r.mapResult(this.from,1),i=r.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new x(n.pos,i.pos,this.mark)}merge(r){return r instanceof x&&r.mark.eq(this.mark)&&this.from<=r.to&&this.to>=r.from?new x(Math.min(this.from,r.from),Math.max(this.to,r.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(r,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new x(n.from,n.to,r.markFromJSON(n.mark))}}k.jsonID("addMark",x);class v extends k{constructor(r,n,i){super(),this.from=r,this.to=n,this.mark=i}apply(r){let n=r.slice(this.from,this.to),i=new s.Ji(w(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),r),n.openStart,n.openEnd);return b.fromReplace(r,this.from,this.to,i)}invert(){return new x(this.from,this.to,this.mark)}map(r){let n=r.mapResult(this.from,1),i=r.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new v(n.pos,i.pos,this.mark)}merge(r){return r instanceof v&&r.mark.eq(this.mark)&&this.from<=r.to&&this.to>=r.from?new v(Math.min(this.from,r.from),Math.max(this.to,r.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(r,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new v(n.from,n.to,r.markFromJSON(n.mark))}}k.jsonID("removeMark",v);class C extends k{constructor(r,n){super(),this.pos=r,this.mark=n}apply(r){let n=r.nodeAt(this.pos);if(!n)return b.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return b.fromReplace(r,this.pos,this.pos+1,new s.Ji(s.FK.from(i),0,+!n.isLeaf))}invert(r){let n=r.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new C(this.pos,n.marks[i]);return new C(this.pos,this.mark)}}return new A(this.pos,this.mark)}map(r){let n=r.mapResult(this.pos,1);return n.deletedAfter?null:new C(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(r,n){if("number"!=typeof n.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new C(n.pos,r.markFromJSON(n.mark))}}k.jsonID("addNodeMark",C);class A extends k{constructor(r,n){super(),this.pos=r,this.mark=n}apply(r){let n=r.nodeAt(this.pos);if(!n)return b.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return b.fromReplace(r,this.pos,this.pos+1,new s.Ji(s.FK.from(i),0,+!n.isLeaf))}invert(r){let n=r.nodeAt(this.pos);return n&&this.mark.isInSet(n.marks)?new C(this.pos,this.mark):this}map(r){let n=r.mapResult(this.pos,1);return n.deletedAfter?null:new A(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(r,n){if("number"!=typeof n.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new A(n.pos,r.markFromJSON(n.mark))}}k.jsonID("removeNodeMark",A);class E extends k{constructor(r,n,i,s=!1){super(),this.from=r,this.to=n,this.slice=i,this.structure=s}apply(r){return this.structure&&M(r,this.from,this.to)?b.fail("Structure replace would overwrite content"):b.fromReplace(r,this.from,this.to,this.slice)}getMap(){return new g([this.from,this.to-this.from,this.slice.size])}invert(r){return new E(this.from,this.from+this.slice.size,r.slice(this.from,this.to))}map(r){let n=r.mapResult(this.to,-1),i=this.from==this.to&&E.MAP_BIAS<0?n:r.mapResult(this.from,1);return i.deletedAcross&&n.deletedAcross?null:new E(i.pos,Math.max(i.pos,n.pos),this.slice,this.structure)}merge(r){if(!(r instanceof E)||r.structure||this.structure)return null;if(this.from+this.slice.size!=r.from||this.slice.openEnd||r.slice.openStart)if(r.to!=this.from||this.slice.openStart||r.slice.openEnd)return null;else{let n=this.slice.size+r.slice.size==0?s.Ji.empty:new s.Ji(r.slice.content.append(this.slice.content),r.slice.openStart,this.slice.openEnd);return new E(r.from,this.to,n,this.structure)}{let n=this.slice.size+r.slice.size==0?s.Ji.empty:new s.Ji(this.slice.content.append(r.slice.content),this.slice.openStart,r.slice.openEnd);return new E(this.from,this.to+(r.to-r.from),n,this.structure)}}toJSON(){let r={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(r.slice=this.slice.toJSON()),this.structure&&(r.structure=!0),r}static fromJSON(r,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new E(n.from,n.to,s.Ji.fromJSON(r,n.slice),!!n.structure)}}E.MAP_BIAS=1,k.jsonID("replace",E);class S extends k{constructor(r,n,i,s,o,l,a=!1){super(),this.from=r,this.to=n,this.gapFrom=i,this.gapTo=s,this.slice=o,this.insert=l,this.structure=a}apply(r){if(this.structure&&(M(r,this.from,this.gapFrom)||M(r,this.gapTo,this.to)))return b.fail("Structure gap-replace would overwrite content");let n=r.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return b.fail("Gap is not a flat range");let i=this.slice.insertAt(this.insert,n.content);return i?b.fromReplace(r,this.from,this.to,i):b.fail("Content does not fit in gap")}getMap(){return new g([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(r){let n=this.gapTo-this.gapFrom;return new S(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,r.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(r){let n=r.mapResult(this.from,1),i=r.mapResult(this.to,-1),s=this.from==this.gapFrom?n.pos:r.map(this.gapFrom,-1),o=this.to==this.gapTo?i.pos:r.map(this.gapTo,1);return n.deletedAcross&&i.deletedAcross||s<n.pos||o>i.pos?null:new S(n.pos,i.pos,s,o,this.slice,this.insert,this.structure)}toJSON(){let r={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(r.slice=this.slice.toJSON()),this.structure&&(r.structure=!0),r}static fromJSON(r,n){if("number"!=typeof n.from||"number"!=typeof n.to||"number"!=typeof n.gapFrom||"number"!=typeof n.gapTo||"number"!=typeof n.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new S(n.from,n.to,n.gapFrom,n.gapTo,s.Ji.fromJSON(r,n.slice),n.insert,!!n.structure)}}function M(r,n,i){let s=r.resolve(n),o=i-n,l=s.depth;for(;o>0&&l>0&&s.indexAfter(l)==s.node(l).childCount;)l--,o--;if(o>0){let r=s.node(l).maybeChild(s.indexAfter(l));for(;o>0;){if(!r||r.isLeaf)return!0;r=r.firstChild,o--}}return!1}function T(r,n,i,s){let o,l,a=[],u=[];r.doc.nodesBetween(n,i,(r,c,h)=>{if(!r.isInline)return;let d=r.marks;if(!s.isInSet(d)&&h.type.allowsMarkType(s.type)){let h=Math.max(c,n),p=Math.min(c+r.nodeSize,i),f=s.addToSet(d);for(let r=0;r<d.length;r++)d[r].isInSet(f)||(o&&o.to==h&&o.mark.eq(d[r])?o.to=p:a.push(o=new v(h,p,d[r])));l&&l.to==h?l.to=p:u.push(l=new x(h,p,s))}}),a.forEach(n=>r.step(n)),u.forEach(n=>r.step(n))}function D(r,n,i,o){let l=[],a=0;r.doc.nodesBetween(n,i,(r,u)=>{if(!r.isInline)return;a++;let c=null;if(o instanceof s.sX){let n=r.marks,i;for(;i=o.isInSet(n);)(c||(c=[])).push(i),n=i.removeFromSet(n)}else o?o.isInSet(r.marks)&&(c=[o]):c=r.marks;if(c&&c.length){let s=Math.min(u+r.nodeSize,i);for(let r=0;r<c.length;r++){let i=c[r],o;for(let r=0;r<l.length;r++){let n=l[r];n.step==a-1&&i.eq(l[r].style)&&(o=n)}o?(o.to=s,o.step=a):l.push({style:i,from:Math.max(u,n),to:s,step:a})}}}),l.forEach(n=>r.step(new v(n.from,n.to,n.style)))}function F(r,n,i,o=i.contentMatch,l=!0){let a=r.doc.nodeAt(n),u=[],c=n+1;for(let n=0;n<a.childCount;n++){let h=a.child(n),d=c+h.nodeSize,p=o.matchType(h.type);if(p){o=p;for(let n=0;n<h.marks.length;n++)i.allowsMarkType(h.marks[n].type)||r.step(new v(c,d,h.marks[n]));if(l&&h.isText&&"pre"!=i.whitespace){let r,n=/\r?\n|\r/g,o;for(;r=n.exec(h.text);)o||(o=new s.Ji(s.FK.from(i.schema.text(" ",i.allowedMarks(h.marks))),0,0)),u.push(new E(c+r.index,c+r.index+r[0].length,o))}}else u.push(new E(c,d,s.Ji.empty));c=d}if(!o.validEnd){let n=o.fillBefore(s.FK.empty,!0);r.replace(c,c,new s.Ji(n,0,0))}for(let n=u.length-1;n>=0;n--)r.step(u[n])}function I(r,n,i){return(0==n||r.canReplace(n,r.childCount))&&(i==r.childCount||r.canReplace(0,i))}function L(r){let n=r.parent.content.cutByIndex(r.startIndex,r.endIndex);for(let i=r.depth,s=0,o=0;;--i){let l=r.$from.node(i),a=r.$from.index(i)+s,u=r.$to.indexAfter(i)-o;if(i<r.depth&&l.canReplace(a,u,n))return i;if(0==i||l.type.spec.isolating||!I(l,a,u))break;a&&(s=1),u<l.childCount&&(o=1)}return null}function R(r,n,i){let{$from:o,$to:l,depth:a}=n,u=o.before(a+1),c=l.after(a+1),h=u,d=c,p=s.FK.empty,f=0;for(let r=a,n=!1;r>i;r--)n||o.index(r)>0?(n=!0,p=s.FK.from(o.node(r).copy(p)),f++):h--;let m=s.FK.empty,g=0;for(let r=a,n=!1;r>i;r--)n||l.after(r+1)<l.end(r)?(n=!0,m=s.FK.from(l.node(r).copy(m)),g++):d++;r.step(new S(h,d,u,c,new s.Ji(p.append(m),f,g),p.size-f,!0))}function N(r,n,i=null,s=r){let o=z(r,n),l=o&&P(s,n);return l?o.map(O).concat({type:n,attrs:i}).concat(l.map(O)):null}function O(r){return{type:r,attrs:null}}function z(r,n){let{parent:i,startIndex:s,endIndex:o}=r,l=i.contentMatchAt(s).findWrapping(n);if(!l)return null;let a=l.length?l[0]:n;return i.canReplaceWith(s,o,a)?l:null}function P(r,n){let{parent:i,startIndex:s,endIndex:o}=r,l=i.child(s),a=n.contentMatch.findWrapping(l.type);if(!a)return null;let u=(a.length?a[a.length-1]:n).contentMatch;for(let r=s;u&&r<o;r++)u=u.matchType(i.child(r).type);return u&&u.validEnd?a:null}function $(r,n,i){let o=s.FK.empty;for(let r=i.length-1;r>=0;r--){if(o.size){let n=i[r].type.contentMatch.matchFragment(o);if(!n||!n.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=s.FK.from(i[r].type.create(i[r].attrs,o))}let l=n.start,a=n.end;r.step(new S(l,a,l,a,new s.Ji(o,0,0),i.length,!0))}function B(r,n,i,o,l){if(!o.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let a=r.steps.length;r.doc.nodesBetween(n,i,(n,i)=>{let u="function"==typeof l?l(n):l;if(n.isTextblock&&!n.hasMarkup(o,u)&&H(r.doc,r.mapping.slice(a).map(i),o)){let l=null;if(o.schema.linebreakReplacement){let r="pre"==o.whitespace,n=!!o.contentMatch.matchType(o.schema.linebreakReplacement);r&&!n?l=!1:!r&&n&&(l=!0)}!1===l&&j(r,n,i,a),F(r,r.mapping.slice(a).map(i,1),o,void 0,null===l);let c=r.mapping.slice(a),h=c.map(i,1),d=c.map(i+n.nodeSize,1);return r.step(new S(h,d,h+1,d-1,new s.Ji(s.FK.from(o.create(u,null,n.marks)),0,0),1,!0)),!0===l&&q(r,n,i,a),!1}})}function q(r,n,i,s){n.forEach((o,l)=>{if(o.isText){let a,u=/\r?\n|\r/g;for(;a=u.exec(o.text);){let o=r.mapping.slice(s).map(i+1+l+a.index);r.replaceWith(o,o+1,n.type.schema.linebreakReplacement.create())}}})}function j(r,n,i,s){n.forEach((o,l)=>{if(o.type==o.type.schema.linebreakReplacement){let o=r.mapping.slice(s).map(i+1+l);r.replaceWith(o,o+1,n.type.schema.text("\n"))}})}function H(r,n,i){let s=r.resolve(n),o=s.index();return s.parent.canReplaceWith(o,o+1,i)}function V(r,n,i,o,l){let a=r.doc.nodeAt(n);if(!a)throw RangeError("No node at given position");i||(i=a.type);let u=i.create(o,null,l||a.marks);if(a.isLeaf)return r.replaceWith(n,n+a.nodeSize,u);if(!i.validContent(a.content))throw RangeError("Invalid content for node type "+i.name);r.step(new S(n,n+a.nodeSize,n+1,n+a.nodeSize-1,new s.Ji(s.FK.from(u),0,0),1,!0))}function U(r,n,i=1,s){let o=r.resolve(n),l=o.depth-i,a=s&&s[s.length-1]||o.parent;if(l<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let r=o.depth-1,n=i-2;r>l;r--,n--){let i=o.node(r),l=o.index(r);if(i.type.spec.isolating)return!1;let a=i.content.cutByIndex(l,i.childCount),u=s&&s[n+1];u&&(a=a.replaceChild(0,u.type.create(u.attrs)));let c=s&&s[n]||i;if(!i.canReplace(l+1,i.childCount)||!c.type.validContent(a))return!1}let u=o.indexAfter(l),c=s&&s[0];return o.node(l).canReplaceWith(u,u,c?c.type:o.node(l+1).type)}function W(r,n,i=1,o){let l=r.doc.resolve(n),a=s.FK.empty,u=s.FK.empty;for(let r=l.depth,n=l.depth-i,c=i-1;r>n;r--,c--){a=s.FK.from(l.node(r).copy(a));let n=o&&o[c];u=s.FK.from(n?n.type.create(n.attrs,u):l.node(r).copy(u))}r.step(new E(n,n,new s.Ji(a.append(u),i,i),!0))}function J(r,n){let i=r.resolve(n),s=i.index();return G(i.nodeBefore,i.nodeAfter)&&i.parent.canReplace(s,s+1)}function K(r,n){n.content.size||r.type.compatibleContent(n.type);let i=r.contentMatchAt(r.childCount),{linebreakReplacement:s}=r.type.schema;for(let o=0;o<n.childCount;o++){let l=n.child(o),a=l.type==s?r.type.schema.nodes.text:l.type;if(!(i=i.matchType(a))||!r.type.allowsMarks(l.marks))return!1}return i.validEnd}function G(r,n){return!!(r&&n&&!r.isLeaf&&K(r,n))}function Z(r,n,i=-1){let s=r.resolve(n);for(let r=s.depth;;r--){let o,l,a=s.index(r);if(r==s.depth?(o=s.nodeBefore,l=s.nodeAfter):i>0?(o=s.node(r+1),a++,l=s.node(r).maybeChild(a)):(o=s.node(r).maybeChild(a-1),l=s.node(r+1)),o&&!o.isTextblock&&G(o,l)&&s.node(r).canReplace(a,a+1))return n;if(0==r)break;n=i<0?s.before(r):s.after(r)}}function X(r,n,i){let o=null,{linebreakReplacement:l}=r.doc.type.schema,a=r.doc.resolve(n-i),u=a.node().type;if(l&&u.inlineContent){let r="pre"==u.whitespace,n=!!u.contentMatch.matchType(l);r&&!n?o=!1:!r&&n&&(o=!0)}let c=r.steps.length;if(!1===o){let s=r.doc.resolve(n+i);j(r,s.node(),s.before(),c)}u.inlineContent&&F(r,n+i-1,u,a.node().contentMatchAt(a.index()),null==o);let h=r.mapping.slice(c),d=h.map(n-i);if(r.step(new E(d,h.map(n+i,-1),s.Ji.empty,!0)),!0===o){let n=r.doc.resolve(d);q(r,n.node(),n.before(),r.steps.length)}return r}function Y(r,n,i){let s=r.resolve(n);if(s.parent.canReplaceWith(s.index(),s.index(),i))return n;if(0==s.parentOffset)for(let r=s.depth-1;r>=0;r--){let n=s.index(r);if(s.node(r).canReplaceWith(n,n,i))return s.before(r+1);if(n>0)return null}if(s.parentOffset==s.parent.content.size)for(let r=s.depth-1;r>=0;r--){let n=s.indexAfter(r);if(s.node(r).canReplaceWith(n,n,i))return s.after(r+1);if(n<s.node(r).childCount)break}return null}function Q(r,n,i){let s=r.resolve(n);if(!i.content.size)return n;let o=i.content;for(let r=0;r<i.openStart;r++)o=o.firstChild.content;for(let r=1;r<=(0==i.openStart&&i.size?2:1);r++)for(let n=s.depth;n>=0;n--){let i=n==s.depth?0:s.pos<=(s.start(n+1)+s.end(n+1))/2?-1:1,l=s.index(n)+ +(i>0),a=s.node(n),u=!1;if(1==r)u=a.canReplace(l,l,o);else{let r=a.contentMatchAt(l).findWrapping(o.firstChild.type);u=r&&a.canReplaceWith(l,l,r[0])}if(u)return 0==i?s.pos:i<0?s.before(n+1):s.after(n+1)}return null}function ee(r,n,i=n,o=s.Ji.empty){if(n==i&&!o.size)return null;let l=r.resolve(n),a=r.resolve(i);return et(l,a,o)?new E(n,i,o):new er(l,a,o).fit()}function et(r,n,i){return!i.openStart&&!i.openEnd&&r.start()==n.start()&&r.parent.canReplace(r.index(),n.index(),i.content)}k.jsonID("replaceAround",S);class er{constructor(r,n,i){this.$from=r,this.$to=n,this.unplaced=i,this.frontier=[],this.placed=s.FK.empty;for(let n=0;n<=r.depth;n++){let i=r.node(n);this.frontier.push({type:i.type,match:i.contentMatchAt(r.indexAfter(n))})}for(let n=r.depth;n>0;n--)this.placed=s.FK.from(r.node(n).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let r=this.findFittable();r?this.placeNodes(r):this.openMore()||this.dropNode()}let r=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,o=this.close(r<0?this.$to:i.doc.resolve(r));if(!o)return null;let l=this.placed,a=i.depth,u=o.depth;for(;a&&u&&1==l.childCount;)l=l.firstChild.content,a--,u--;let c=new s.Ji(l,a,u);return r>-1?new S(i.pos,r,this.$to.pos,this.$to.end(),c,n):c.size||i.pos!=this.$to.pos?new E(i.pos,o.pos,c):null}findFittable(){let r=this.unplaced.openStart;for(let n=this.unplaced.content,i=0,s=this.unplaced.openEnd;i<r;i++){let o=n.firstChild;if(n.childCount>1&&(s=0),o.type.spec.isolating&&s<=i){r=i;break}n=o.content}for(let n=1;n<=2;n++)for(let i=1==n?r:this.unplaced.openStart;i>=0;i--){let r,o=null,l=(r=i?(o=es(this.unplaced.content,i-1).firstChild).content:this.unplaced.content).firstChild;for(let r=this.depth;r>=0;r--){let{type:a,match:u}=this.frontier[r],c,h=null;if(1==n&&(l?u.matchType(l.type)||(h=u.fillBefore(s.FK.from(l),!1)):o&&a.compatibleContent(o.type)))return{sliceDepth:i,frontierDepth:r,parent:o,inject:h};if(2==n&&l&&(c=u.findWrapping(l.type)))return{sliceDepth:i,frontierDepth:r,parent:o,wrap:c};if(o&&u.matchType(o.type))break}}}openMore(){let{content:r,openStart:n,openEnd:i}=this.unplaced,o=es(r,n);return!!o.childCount&&!o.firstChild.isLeaf&&(this.unplaced=new s.Ji(r,n+1,Math.max(i,o.size+n>=r.size-i?n+1:0)),!0)}dropNode(){let{content:r,openStart:n,openEnd:i}=this.unplaced,o=es(r,n);if(o.childCount<=1&&n>0){let l=r.size-n<=n+o.size;this.unplaced=new s.Ji(en(r,n-1,1),n-1,l?n-1:i)}else this.unplaced=new s.Ji(en(r,n,1),n,i)}placeNodes({sliceDepth:r,frontierDepth:n,parent:i,inject:o,wrap:l}){for(;this.depth>n;)this.closeFrontierNode();if(l)for(let r=0;r<l.length;r++)this.openFrontierNode(l[r]);let a=this.unplaced,u=i?i.content:a.content,c=a.openStart-r,h=0,d=[],{match:p,type:f}=this.frontier[n];if(o){for(let r=0;r<o.childCount;r++)d.push(o.child(r));p=p.matchFragment(o)}let m=u.size+r-(a.content.size-a.openEnd);for(;h<u.childCount;){let r=u.child(h),n=p.matchType(r.type);if(!n)break;(++h>1||0==c||r.content.size)&&(p=n,d.push(eo(r.mark(f.allowedMarks(r.marks)),1==h?c:0,h==u.childCount?m:-1)))}let g=h==u.childCount;g||(m=-1),this.placed=ei(this.placed,n,s.FK.from(d)),this.frontier[n].match=p,g&&m<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let r=0,n=u;r<m;r++){let r=n.lastChild;this.frontier.push({type:r.type,match:r.contentMatchAt(r.childCount)}),n=r.content}this.unplaced=g?0==r?s.Ji.empty:new s.Ji(en(a.content,r-1,1),r-1,m<0?a.openEnd:r-1):new s.Ji(en(a.content,r,h),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let r=this.frontier[this.depth],n;if(!r.type.isTextblock||!el(this.$to,this.$to.depth,r.type,r.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return -1;let{depth:i}=this.$to,s=this.$to.after(i);for(;i>1&&s==this.$to.end(--i);)++s;return s}findCloseLevel(r){t:for(let n=Math.min(this.depth,r.depth);n>=0;n--){let{match:i,type:s}=this.frontier[n],o=n<r.depth&&r.end(n+1)==r.pos+(r.depth-(n+1)),l=el(r,n,s,i,o);if(l){for(let i=n-1;i>=0;i--){let{match:n,type:s}=this.frontier[i],o=el(r,i,s,n,!0);if(!o||o.childCount)continue t}return{depth:n,fit:l,move:o?r.doc.resolve(r.after(n+1)):r}}}}close(r){let n=this.findCloseLevel(r);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=ei(this.placed,n.depth,n.fit)),r=n.move;for(let i=n.depth+1;i<=r.depth;i++){let n=r.node(i),s=n.type.contentMatch.fillBefore(n.content,!0,r.index(i));this.openFrontierNode(n.type,n.attrs,s)}return r}openFrontierNode(r,n=null,i){let o=this.frontier[this.depth];o.match=o.match.matchType(r),this.placed=ei(this.placed,this.depth,s.FK.from(r.create(n,i))),this.frontier.push({type:r,match:r.contentMatch})}closeFrontierNode(){let r=this.frontier.pop().match.fillBefore(s.FK.empty,!0);r.childCount&&(this.placed=ei(this.placed,this.frontier.length,r))}}function en(r,n,i){return 0==n?r.cutByIndex(i,r.childCount):r.replaceChild(0,r.firstChild.copy(en(r.firstChild.content,n-1,i)))}function ei(r,n,i){return 0==n?r.append(i):r.replaceChild(r.childCount-1,r.lastChild.copy(ei(r.lastChild.content,n-1,i)))}function es(r,n){for(let i=0;i<n;i++)r=r.firstChild.content;return r}function eo(r,n,i){if(n<=0)return r;let o=r.content;return n>1&&(o=o.replaceChild(0,eo(o.firstChild,n-1,1==o.childCount?i-1:0))),n>0&&(o=r.type.contentMatch.fillBefore(o).append(o),i<=0&&(o=o.append(r.type.contentMatch.matchFragment(o).fillBefore(s.FK.empty,!0)))),r.copy(o)}function el(r,n,i,s,o){let l=r.node(n),a=o?r.indexAfter(n):r.index(n);if(a==l.childCount&&!i.compatibleContent(l.type))return null;let u=s.fillBefore(l.content,!0,a);return u&&!ea(i,l.content,a)?u:null}function ea(r,n,i){for(let s=i;s<n.childCount;s++)if(!r.allowsMarks(n.child(s).marks))return!0;return!1}function eu(r){return r.spec.defining||r.spec.definingForContent}function ec(r,n,i,o){if(!o.size)return r.deleteRange(n,i);let l=r.doc.resolve(n),a=r.doc.resolve(i);if(et(l,a,o))return r.step(new E(n,i,o));let u=ef(l,a);0==u[u.length-1]&&u.pop();let c=-(l.depth+1);u.unshift(c);for(let r=l.depth,n=l.pos-1;r>0;r--,n--){let i=l.node(r).type.spec;if(i.defining||i.definingAsContext||i.isolating)break;u.indexOf(r)>-1?c=r:l.before(r)==n&&u.splice(1,0,-r)}let h=u.indexOf(c),d=[],p=o.openStart;for(let r=o.content,n=0;;n++){let i=r.firstChild;if(d.push(i),n==o.openStart)break;r=i.content}for(let r=p-1;r>=0;r--){let n=d[r],i=eu(n.type);if(i&&!n.sameMarkup(l.node(Math.abs(c)-1)))p=r;else if(i||!n.type.isTextblock)break}for(let n=o.openStart;n>=0;n--){let c=(n+p+1)%(o.openStart+1),f=d[c];if(f)for(let n=0;n<u.length;n++){let d=u[(n+h)%u.length],p=!0;d<0&&(p=!1,d=-d);let m=l.node(d-1),g=l.index(d-1);if(m.canReplaceWith(g,g,f.type,f.marks))return r.replace(l.before(d),p?a.after(d):i,new s.Ji(eh(o.content,0,o.openStart,c),c,o.openEnd))}}let f=r.steps.length;for(let s=u.length-1;s>=0&&(r.replace(n,i,o),!(r.steps.length>f));s--){let r=u[s];r<0||(n=l.before(r),i=a.after(r))}}function eh(r,n,i,o,l){if(n<i){let s=r.firstChild;r=r.replaceChild(0,s.copy(eh(s.content,n+1,i,o,s)))}if(n>o){let n=l.contentMatchAt(0),i=n.fillBefore(r).append(r);r=i.append(n.matchFragment(i).fillBefore(s.FK.empty,!0))}return r}function ed(r,n,i,o){if(!o.isInline&&n==i&&r.doc.resolve(n).parent.content.size){let s=Y(r.doc,n,o.type);null!=s&&(n=i=s)}r.replaceRange(n,i,new s.Ji(s.FK.from(o),0,0))}function ep(r,n,i){let s=r.doc.resolve(n),o=r.doc.resolve(i);if(s.parent.isTextblock&&o.parent.isTextblock&&s.start()!=o.start()&&0==s.parentOffset&&0==o.parentOffset){let l=s.sharedDepth(i),a=!1;for(let r=s.depth;r>l;r--)s.node(r).type.spec.isolating&&(a=!0);for(let r=o.depth;r>l;r--)o.node(r).type.spec.isolating&&(a=!0);if(!a){for(let r=s.depth;r>0&&n==s.start(r);r--)n=s.before(r);for(let r=o.depth;r>0&&i==o.start(r);r--)i=o.before(r);s=r.doc.resolve(n),o=r.doc.resolve(i)}}let l=ef(s,o);for(let n=0;n<l.length;n++){let i=l[n],a=n==l.length-1;if(a&&0==i||s.node(i).type.contentMatch.validEnd)return r.delete(s.start(i),o.end(i));if(i>0&&(a||s.node(i-1).canReplace(s.index(i-1),o.indexAfter(i-1))))return r.delete(s.before(i),o.after(i))}for(let l=1;l<=s.depth&&l<=o.depth;l++)if(n-s.start(l)==s.depth-l&&i>s.end(l)&&o.end(l)-i!=o.depth-l&&s.start(l-1)==o.start(l-1)&&s.node(l-1).canReplace(s.index(l-1),o.index(l-1)))return r.delete(s.before(l),i);r.delete(n,i)}function ef(r,n){let i=[],s=Math.min(r.depth,n.depth);for(let o=s;o>=0;o--){let s=r.start(o);if(s<r.pos-(r.depth-o)||n.end(o)>n.pos+(n.depth-o)||r.node(o).type.spec.isolating||n.node(o).type.spec.isolating)break;(s==n.start(o)||o==r.depth&&o==n.depth&&r.parent.inlineContent&&n.parent.inlineContent&&o&&n.start(o-1)==s-1)&&i.push(o)}return i}class em extends k{constructor(r,n,i){super(),this.pos=r,this.attr=n,this.value=i}apply(r){let n=r.nodeAt(this.pos);if(!n)return b.fail("No node at attribute step's position");let i=Object.create(null);for(let r in n.attrs)i[r]=n.attrs[r];i[this.attr]=this.value;let o=n.type.create(i,null,n.marks);return b.fromReplace(r,this.pos,this.pos+1,new s.Ji(s.FK.from(o),0,+!n.isLeaf))}getMap(){return g.empty}invert(r){return new em(this.pos,this.attr,r.nodeAt(this.pos).attrs[this.attr])}map(r){let n=r.mapResult(this.pos,1);return n.deletedAfter?null:new em(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(r,n){if("number"!=typeof n.pos||"string"!=typeof n.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new em(n.pos,n.attr,n.value)}}k.jsonID("attr",em);class eg extends k{constructor(r,n){super(),this.attr=r,this.value=n}apply(r){let n=Object.create(null);for(let i in r.attrs)n[i]=r.attrs[i];n[this.attr]=this.value;let i=r.type.create(n,r.content,r.marks);return b.ok(i)}getMap(){return g.empty}invert(r){return new eg(this.attr,r.attrs[this.attr])}map(r){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(r,n){if("string"!=typeof n.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new eg(n.attr,n.value)}}k.jsonID("docAttr",eg);let e_=class extends Error{};(e_=function r(n){let i=Error.call(this,n);return i.__proto__=r.prototype,i}).prototype=Object.create(Error.prototype),e_.prototype.constructor=e_,e_.prototype.name="TransformError";class ey{constructor(r){this.doc=r,this.steps=[],this.docs=[],this.mapping=new _}get before(){return this.docs.length?this.docs[0]:this.doc}step(r){let n=this.maybeStep(r);if(n.failed)throw new e_(n.failed);return this}maybeStep(r){let n=r.apply(this.doc);return n.failed||this.addStep(r,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let r=1e9,n=-1e9;for(let i=0;i<this.mapping.maps.length;i++){let s=this.mapping.maps[i];i&&(r=s.map(r,1),n=s.map(n,-1)),s.forEach((i,s,o,l)=>{r=Math.min(r,o),n=Math.max(n,l)})}return 1e9==r?null:{from:r,to:n}}addStep(r,n){this.docs.push(this.doc),this.steps.push(r),this.mapping.appendMap(r.getMap()),this.doc=n}replace(r,n=r,i=s.Ji.empty){let o=ee(this.doc,r,n,i);return o&&this.step(o),this}replaceWith(r,n,i){return this.replace(r,n,new s.Ji(s.FK.from(i),0,0))}delete(r,n){return this.replace(r,n,s.Ji.empty)}insert(r,n){return this.replaceWith(r,r,n)}replaceRange(r,n,i){return ec(this,r,n,i),this}replaceRangeWith(r,n,i){return ed(this,r,n,i),this}deleteRange(r,n){return ep(this,r,n),this}lift(r,n){return R(this,r,n),this}join(r,n=1){return X(this,r,n),this}wrap(r,n){return $(this,r,n),this}setBlockType(r,n=r,i,s=null){return B(this,r,n,i,s),this}setNodeMarkup(r,n,i=null,s){return V(this,r,n,i,s),this}setNodeAttribute(r,n,i){return this.step(new em(r,n,i)),this}setDocAttribute(r,n){return this.step(new eg(r,n)),this}addNodeMark(r,n){return this.step(new C(r,n)),this}removeNodeMark(r,n){let i=this.doc.nodeAt(r);if(!i)throw RangeError("No node at position "+r);if(n instanceof s.CU)n.isInSet(i.marks)&&this.step(new A(r,n));else{let s=i.marks,o,l=[];for(;o=n.isInSet(s);)l.push(new A(r,o)),s=o.removeFromSet(s);for(let r=l.length-1;r>=0;r--)this.step(l[r])}return this}split(r,n=1,i){return W(this,r,n,i),this}addMark(r,n,i){return T(this,r,n,i),this}removeMark(r,n,i){return D(this,r,n,i),this}clearIncompatible(r,n,i){return F(this,r,n,i),this}}},10762:(r,n,i)=>{"use strict";i.d(n,{A:()=>l});var s=i(90425);let o=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],l=(0,s.A)("terminal",o)},12894:(r,n,i)=>{"use strict";i.d(n,{K:()=>k,w:()=>y});for(var s={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},l="u">typeof navigator&&/Mac/.test(navigator.platform),a="u">typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=0;u<10;u++)s[48+u]=s[96+u]=String(u);for(var u=1;u<=24;u++)s[u+111]="F"+u;for(var u=65;u<=90;u++)s[u]=String.fromCharCode(u+32),o[u]=String.fromCharCode(u);for(var c in s)o.hasOwnProperty(c)||(o[c]=s[c]);function h(r){var n=!(l&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||a&&r.shiftKey&&r.key&&1==r.key.length||"Unidentified"==r.key)&&r.key||(r.shiftKey?o:s)[r.keyCode]||r.key||"Unidentified";return"Esc"==n&&(n="Escape"),"Del"==n&&(n="Delete"),"Left"==n&&(n="ArrowLeft"),"Up"==n&&(n="ArrowUp"),"Right"==n&&(n="ArrowRight"),"Down"==n&&(n="ArrowDown"),n}var d=i(76865);let p="u">typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),f="u">typeof navigator&&/Win/.test(navigator.platform);function m(r){let n,i,s,o,l=r.split(/-(?!$)/),a=l[l.length-1];"Space"==a&&(a=" ");for(let r=0;r<l.length-1;r++){let a=l[r];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))n=!0;else if(/^(c|ctrl|control)$/i.test(a))i=!0;else if(/^s(hift)?$/i.test(a))s=!0;else if(/^mod$/i.test(a))p?o=!0:i=!0;else throw Error("Unrecognized modifier name: "+a)}return n&&(a="Alt-"+a),i&&(a="Ctrl-"+a),o&&(a="Meta-"+a),s&&(a="Shift-"+a),a}function g(r){let n=Object.create(null);for(let i in r)n[m(i)]=r[i];return n}function _(r,n,i=!0){return n.altKey&&(r="Alt-"+r),n.ctrlKey&&(r="Ctrl-"+r),n.metaKey&&(r="Meta-"+r),i&&n.shiftKey&&(r="Shift-"+r),r}function y(r){return new d.k_({props:{handleKeyDown:k(r)}})}function k(r){let n=g(r);return function(r,i){let o=h(i),l,a=n[_(o,i)];if(a&&a(r.state,r.dispatch,r))return!0;if(1==o.length&&" "!=o){if(i.shiftKey){let s=n[_(o,i,!1)];if(s&&s(r.state,r.dispatch,r))return!0}if((i.altKey||i.metaKey||i.ctrlKey)&&!(f&&i.ctrlKey&&i.altKey)&&(l=s[i.keyCode])&&l!=o){let s=n[_(l,i)];if(s&&s(r.state,r.dispatch,r))return!0}}return!1}}},13439:(r,n,i)=>{"use strict";i.d(n,{$Z:()=>ep,hG:()=>ew});var s=i(12115),o=i(47650),l=i(8039),a=i(95155),u=i(82159);let{getOwnPropertyNames:c,getOwnPropertySymbols:h}=Object,{hasOwnProperty:d}=Object.prototype;function p(r,n){return function(i,s,o){return r(i,s,o)&&n(i,s,o)}}function f(r){return function(n,i,s){if(!n||!i||"object"!=typeof n||"object"!=typeof i)return r(n,i,s);let{cache:o}=s,l=o.get(n),a=o.get(i);if(l&&a)return l===i&&a===n;o.set(n,i),o.set(i,n);let u=r(n,i,s);return o.delete(n),o.delete(i),u}}function m(r){return null!=r?r[Symbol.toStringTag]:void 0}function g(r){return c(r).concat(h(r))}let _=Object.hasOwn||((r,n)=>d.call(r,n));function y(r,n){return r===n||!r&&!n&&r!=r&&n!=n}let k="__v",b="__o",w="_owner",{getOwnPropertyDescriptor:x,keys:v}=Object;function C(r,n){return r.byteLength===n.byteLength&&z(new Uint8Array(r),new Uint8Array(n))}function A(r,n,i){let s=r.length;if(n.length!==s)return!1;for(;s-- >0;)if(!i.equals(r[s],n[s],s,s,r,n,i))return!1;return!0}function E(r,n){return r.byteLength===n.byteLength&&z(new Uint8Array(r.buffer,r.byteOffset,r.byteLength),new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}function S(r,n){return y(r.getTime(),n.getTime())}function M(r,n){return r.name===n.name&&r.message===n.message&&r.cause===n.cause&&r.stack===n.stack}function T(r,n){return r===n}function D(r,n,i){let s,o,l=r.size;if(l!==n.size)return!1;if(!l)return!0;let a=Array(l),u=r.entries(),c=0;for(;(s=u.next())&&!s.done;){let l=n.entries(),u=!1,h=0;for(;(o=l.next())&&!o.done;){if(a[h]){h++;continue}let l=s.value,d=o.value;if(i.equals(l[0],d[0],c,h,r,n,i)&&i.equals(l[1],d[1],l[0],d[0],r,n,i)){u=a[h]=!0;break}h++}if(!u)return!1;c++}return!0}let F=y;function I(r,n,i){let s=v(r),o=s.length;if(v(n).length!==o)return!1;for(;o-- >0;)if(!$(r,n,i,s[o]))return!1;return!0}function L(r,n,i){let s,o,l,a=g(r),u=a.length;if(g(n).length!==u)return!1;for(;u-- >0;)if(!$(r,n,i,s=a[u])||(o=x(r,s),l=x(n,s),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function R(r,n){return y(r.valueOf(),n.valueOf())}function N(r,n){return r.source===n.source&&r.flags===n.flags}function O(r,n,i){let s,o,l=r.size;if(l!==n.size)return!1;if(!l)return!0;let a=Array(l),u=r.values();for(;(s=u.next())&&!s.done;){let l=n.values(),u=!1,c=0;for(;(o=l.next())&&!o.done;){if(!a[c]&&i.equals(s.value,o.value,s.value,o.value,r,n,i)){u=a[c]=!0;break}c++}if(!u)return!1}return!0}function z(r,n){let i=r.byteLength;if(n.byteLength!==i||r.byteOffset!==n.byteOffset)return!1;for(;i-- >0;)if(r[i]!==n[i])return!1;return!0}function P(r,n){return r.hostname===n.hostname&&r.pathname===n.pathname&&r.protocol===n.protocol&&r.port===n.port&&r.hash===n.hash&&r.username===n.username&&r.password===n.password}function $(r,n,i,s){return(s===w||s===b||s===k)&&(!!r.$$typeof||!!n.$$typeof)||_(n,s)&&i.equals(r[s],n[s],s,s,r,n,i)}let B="[object ArrayBuffer]",q="[object Arguments]",j="[object Boolean]",H="[object DataView]",V="[object Date]",U="[object Error]",W="[object Map]",J="[object Number]",K="[object Object]",G="[object RegExp]",Z="[object Set]",X="[object String]",Y={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Q="[object URL]",ee=Object.prototype.toString;function et({areArrayBuffersEqual:r,areArraysEqual:n,areDataViewsEqual:i,areDatesEqual:s,areErrorsEqual:o,areFunctionsEqual:l,areMapsEqual:a,areNumbersEqual:u,areObjectsEqual:c,arePrimitiveWrappersEqual:h,areRegExpsEqual:d,areSetsEqual:p,areTypedArraysEqual:f,areUrlsEqual:g,unknownTagComparators:_}){return function(y,k,b){if(y===k)return!0;if(null==y||null==k)return!1;let w=typeof y;if(w!==typeof k)return!1;if("object"!==w)return"number"===w?u(y,k,b):"function"===w&&l(y,k,b);let x=y.constructor;if(x!==k.constructor)return!1;if(x===Object)return c(y,k,b);if(Array.isArray(y))return n(y,k,b);if(x===Date)return s(y,k,b);if(x===RegExp)return d(y,k,b);if(x===Map)return a(y,k,b);if(x===Set)return p(y,k,b);let v=ee.call(y);if(v===V)return s(y,k,b);if(v===G)return d(y,k,b);if(v===W)return a(y,k,b);if(v===Z)return p(y,k,b);if(v===K)return"function"!=typeof y.then&&"function"!=typeof k.then&&c(y,k,b);if(v===Q)return g(y,k,b);if(v===U)return o(y,k,b);if(v===q)return c(y,k,b);if(Y[v])return f(y,k,b);if(v===B)return r(y,k,b);if(v===H)return i(y,k,b);if(v===j||v===J||v===X)return h(y,k,b);if(_){let r=_[v];if(!r){let n=m(y);n&&(r=_[n])}if(r)return r(y,k,b)}return!1}}function er({circular:r,createCustomConfig:n,strict:i}){let s={areArrayBuffersEqual:C,areArraysEqual:i?L:A,areDataViewsEqual:E,areDatesEqual:S,areErrorsEqual:M,areFunctionsEqual:T,areMapsEqual:i?p(D,L):D,areNumbersEqual:F,areObjectsEqual:i?L:I,arePrimitiveWrappersEqual:R,areRegExpsEqual:N,areSetsEqual:i?p(O,L):O,areTypedArraysEqual:i?p(z,L):z,areUrlsEqual:P,unknownTagComparators:void 0};if(n&&(s=Object.assign({},s,n(s))),r){let r=f(s.areArraysEqual),n=f(s.areMapsEqual),i=f(s.areObjectsEqual),o=f(s.areSetsEqual);s=Object.assign({},s,{areArraysEqual:r,areMapsEqual:n,areObjectsEqual:i,areSetsEqual:o})}return s}function en(r){return function(n,i,s,o,l,a,u){return r(n,i,u)}}function ei({circular:r,comparator:n,createState:i,equals:s,strict:o}){if(i)return function(l,a){let{cache:u=r?new WeakMap:void 0,meta:c}=i();return n(l,a,{cache:u,equals:s,meta:c,strict:o})};if(r)return function(r,i){return n(r,i,{cache:new WeakMap,equals:s,meta:void 0,strict:o})};let l={cache:void 0,equals:s,meta:void 0,strict:o};return function(r,i){return n(r,i,l)}}let es=eo();function eo(r={}){let{circular:n=!1,createInternalComparator:i,createState:s,strict:o=!1}=r,l=et(er(r)),a=i?i(l):en(l);return ei({circular:n,comparator:l,createState:s,equals:a,strict:o})}eo({strict:!0}),eo({circular:!0}),eo({circular:!0,strict:!0}),eo({createInternalComparator:()=>y}),eo({strict:!0,createInternalComparator:()=>y}),eo({circular:!0,createInternalComparator:()=>y}),eo({circular:!0,createInternalComparator:()=>y,strict:!0});var el=i(94577),ea=(...r)=>n=>{r.forEach(r=>{"function"==typeof r?r(n):r&&(r.current=n)})},eu=({contentComponent:r})=>{let n=(0,l.useSyncExternalStore)(r.subscribe,r.getSnapshot,r.getServerSnapshot);return(0,a.jsx)(a.Fragment,{children:Object.values(n)})};function ec(){let r=new Set,n={};return{subscribe:n=>(r.add(n),()=>{r.delete(n)}),getSnapshot:()=>n,getServerSnapshot:()=>n,setRenderer(i,s){n={...n,[i]:o.createPortal(s.reactElement,s.element,i)},r.forEach(r=>r())},removeRenderer(i){let s={...n};delete s[i],n=s,r.forEach(r=>r())}}}var eh=class extends s.Component{constructor(r){super(r),this.editorContentRef=s.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var r;let n=this.props.editor;if(n&&!n.isDestroyed&&(null==(r=n.view.dom)?void 0:r.parentNode)){if(n.contentComponent)return;let r=this.editorContentRef.current;r.append(...n.view.dom.parentNode.childNodes),n.setOptions({element:r}),n.contentComponent=ec(),n.createNodeViews(),n.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var r;let n=this.props.editor;if(n){n.isEditorContentInitialized=!1,n.isDestroyed||n.view.setProps({nodeViews:{}}),n.contentComponent=null;try{if(!(null==(r=n.view.dom)?void 0:r.parentNode))return;let i=document.createElement("div");i.append(...n.view.dom.parentNode.childNodes),n.setOptions({element:i})}catch{}}}render(){let{editor:r,innerRef:n,...i}=this.props;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:ea(n,this.editorContentRef),...i}),(null==r?void 0:r.contentComponent)&&(0,a.jsx)(eu,{contentComponent:r.contentComponent})]})}},ed=(0,s.forwardRef)((r,n)=>{let i=s.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[r.editor]);return s.createElement(eh,{key:i,innerRef:n,...r})}),ep=s.memo(ed),ef="u">typeof window?s.useLayoutEffect:s.useEffect,em=class{constructor(r){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=r,this.lastSnapshot={editor:r,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(r){return this.subscribers.add(r),()=>{this.subscribers.delete(r)}}watch(r){if(this.editor=r,this.editor){let r=()=>{this.transactionNumber+=1,this.subscribers.forEach(r=>r())},n=this.editor;return n.on("transaction",r),()=>{n.off("transaction",r)}}}};function eg(r){var n;let[i]=(0,s.useState)(()=>new em(r.editor)),o=(0,el.useSyncExternalStoreWithSelector)(i.subscribe,i.getSnapshot,i.getServerSnapshot,r.selector,null!=(n=r.equalityFn)?n:es);return ef(()=>i.watch(r.editor),[r.editor,i]),(0,s.useDebugValue)(o),o}var e_=!1,ey="u"<typeof window,ek=ey||!!("u">typeof window&&window.next),eb=class r{constructor(r){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=r,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(r){this.editor=r,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(r=>r())}getInitialEditor(){if(void 0===this.options.current.immediatelyRender){if(ey||ek){if(e_)throw Error("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches.");return null}return this.createEditor()}if(this.options.current.immediatelyRender&&ey&&e_)throw Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){let r={...this.options.current,onBeforeCreate:(...r)=>{var n,i;return null==(i=(n=this.options.current).onBeforeCreate)?void 0:i.call(n,...r)},onBlur:(...r)=>{var n,i;return null==(i=(n=this.options.current).onBlur)?void 0:i.call(n,...r)},onCreate:(...r)=>{var n,i;return null==(i=(n=this.options.current).onCreate)?void 0:i.call(n,...r)},onDestroy:(...r)=>{var n,i;return null==(i=(n=this.options.current).onDestroy)?void 0:i.call(n,...r)},onFocus:(...r)=>{var n,i;return null==(i=(n=this.options.current).onFocus)?void 0:i.call(n,...r)},onSelectionUpdate:(...r)=>{var n,i;return null==(i=(n=this.options.current).onSelectionUpdate)?void 0:i.call(n,...r)},onTransaction:(...r)=>{var n,i;return null==(i=(n=this.options.current).onTransaction)?void 0:i.call(n,...r)},onUpdate:(...r)=>{var n,i;return null==(i=(n=this.options.current).onUpdate)?void 0:i.call(n,...r)},onContentError:(...r)=>{var n,i;return null==(i=(n=this.options.current).onContentError)?void 0:i.call(n,...r)},onDrop:(...r)=>{var n,i;return null==(i=(n=this.options.current).onDrop)?void 0:i.call(n,...r)},onPaste:(...r)=>{var n,i;return null==(i=(n=this.options.current).onPaste)?void 0:i.call(n,...r)},onDelete:(...r)=>{var n,i;return null==(i=(n=this.options.current).onDelete)?void 0:i.call(n,...r)}};return new u.KE(r)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(r){return this.subscriptions.add(r),()=>{this.subscriptions.delete(r)}}static compareOptions(r,n){return Object.keys(r).every(i=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(i)||("extensions"===i&&r.extensions&&n.extensions?r.extensions.length===n.extensions.length&&r.extensions.every((r,i)=>{var s;return r===(null==(s=n.extensions)?void 0:s[i])}):r[i]===n[i]))}onRender(n){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===n.length?r.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(n),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(r){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=r;return}if(this.previousDeps.length===r.length&&this.previousDeps.every((n,i)=>n===r[i]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=r}scheduleDestroy(){let r=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===r){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===r&&this.setEditor(null))},1)}};function ew(r={},n=[]){let i=(0,s.useRef)(r);i.current=r;let[o]=(0,s.useState)(()=>new eb(i)),a=(0,l.useSyncExternalStore)(o.subscribe,o.getEditor,o.getServerSnapshot);return(0,s.useDebugValue)(a),(0,s.useEffect)(o.onRender(n)),eg({editor:a,selector:({transactionNumber:n})=>!1===r.shouldRerenderOnTransaction||void 0===r.shouldRerenderOnTransaction?null:r.immediatelyRender&&0===n?0:n+1}),a}var ex=(0,s.createContext)({editor:null});ex.Consumer;var ev=(0,s.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),eC=()=>(0,s.useContext)(ev);s.forwardRef((r,n)=>{let{onDragStart:i}=eC(),s=r.as||"div";return(0,a.jsx)(s,{...r,ref:n,"data-node-view-wrapper":"",onDragStart:i,style:{whiteSpace:"normal",...r.style}})}),s.createContext({markViewContentRef:()=>{}}),u.Db,u.Yv;var eA=(0,s.createContext)({get editor(){throw Error("useTiptap must be used within a <Tiptap> provider")}});eA.displayName="TiptapContext";var eE=()=>(0,s.useContext)(eA);function eS({editor:r,instance:n,children:i}){let o=null!=r?r:n;if(!o)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let l=(0,s.useMemo)(()=>({editor:o}),[o]),u=(0,s.useMemo)(()=>({editor:o}),[o]);return(0,a.jsx)(ex.Provider,{value:u,children:(0,a.jsx)(eA.Provider,{value:l,children:i})})}function eM({...r}){let{editor:n}=eE();return(0,a.jsx)(ep,{editor:n,...r})}eS.displayName="Tiptap",eM.displayName="Tiptap.Content",Object.assign(eS,{Content:eM})},14066:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{TM:()=>Language,iX:()=>Parser});var C,TRANSFER_BUFFER,LANGUAGE_VERSION,MIN_COMPATIBLE_VERSION,process=__webpack_require__(41463),__defProp=Object.defineProperty,__name=(r,n)=>__defProp(r,"name",{value:n,configurable:!0}),Edit=class{static{__name(this,"Edit")}startPosition;oldEndPosition;newEndPosition;startIndex;oldEndIndex;newEndIndex;constructor({startIndex:r,oldEndIndex:n,newEndIndex:i,startPosition:s,oldEndPosition:o,newEndPosition:l}){this.startIndex=r>>>0,this.oldEndIndex=n>>>0,this.newEndIndex=i>>>0,this.startPosition=s,this.oldEndPosition=o,this.newEndPosition=l}editPoint(r,n){let i=n,s={...r};if(n>=this.oldEndIndex){i=this.newEndIndex+(n-this.oldEndIndex);let o=r.row;s.row=this.newEndPosition.row+(r.row-this.oldEndPosition.row),s.column=o===this.oldEndPosition.row?this.newEndPosition.column+(r.column-this.oldEndPosition.column):r.column}else n>this.startIndex&&(i=this.newEndIndex,s.row=this.newEndPosition.row,s.column=this.newEndPosition.column);return{point:s,index:i}}editRange(r){let n={startIndex:r.startIndex,startPosition:{...r.startPosition},endIndex:r.endIndex,endPosition:{...r.endPosition}};return r.endIndex>=this.oldEndIndex?r.endIndex!==Number.MAX_SAFE_INTEGER&&(n.endIndex=this.newEndIndex+(r.endIndex-this.oldEndIndex),n.endPosition={row:this.newEndPosition.row+(r.endPosition.row-this.oldEndPosition.row),column:r.endPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(r.endPosition.column-this.oldEndPosition.column):r.endPosition.column},n.endIndex<this.newEndIndex&&(n.endIndex=Number.MAX_SAFE_INTEGER,n.endPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):r.endIndex>this.startIndex&&(n.endIndex=this.startIndex,n.endPosition={...this.startPosition}),r.startIndex>=this.oldEndIndex?(n.startIndex=this.newEndIndex+(r.startIndex-this.oldEndIndex),n.startPosition={row:this.newEndPosition.row+(r.startPosition.row-this.oldEndPosition.row),column:r.startPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(r.startPosition.column-this.oldEndPosition.column):r.startPosition.column},n.startIndex<this.newEndIndex&&(n.startIndex=Number.MAX_SAFE_INTEGER,n.startPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):r.startIndex>this.startIndex&&(n.startIndex=this.startIndex,n.startPosition={...this.startPosition}),n}},SIZE_OF_SHORT=2,SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},INTERNAL=Symbol("INTERNAL");function assertInternal(r){if(r!==INTERNAL)throw Error("Illegal constructor")}function isPoint(r){return!!r&&"number"==typeof r.row&&"number"==typeof r.column}function setModule(r){C=r}__name(assertInternal,"assertInternal"),__name(isPoint,"isPoint"),__name(setModule,"setModule");var LookaheadIterator=class{static{__name(this,"LookaheadIterator")}0=0;language;constructor(r,n,i){assertInternal(r),this[0]=n,this.language=i}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}reset(r,n){return!!C._ts_lookahead_iterator_reset(this[0],r[0],n)&&(this.language=r,!0)}resetState(r){return!!C._ts_lookahead_iterator_reset_state(this[0],r)}[Symbol.iterator](){return{next:__name(()=>C._ts_lookahead_iterator_next(this[0])?{done:!1,value:this.currentType}:{done:!0,value:""},"next")}}};function getText(r,n,i,s){let o=i-n,l=r.textCallback(n,s);if(l){for(n+=l.length;n<i;){let i=r.textCallback(n,s);if(i&&i.length>0)n+=i.length,l+=i;else break}n>i&&(l=l.slice(0,o))}return l??""}__name(getText,"getText");var Tree=class _Tree{static{__name(this,"Tree")}0=0;textCallback;language;constructor(r,n,i,s){assertInternal(r),this[0]=n,this.language=i,this.textCallback=s}copy(){return new _Tree(INTERNAL,C._ts_tree_copy(this[0]),this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(r,n){let i=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(i,r,"i32"),marshalPoint(i+SIZE_OF_INT,n),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}edit(r){marshalEdit(r),C._ts_tree_edit_wasm(this[0])}walk(){return this.rootNode.walk()}getChangedRanges(r){if(!(r instanceof _Tree))throw TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],r[0]);let n=C.getValue(TRANSFER_BUFFER,"i32"),i=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=Array(n);if(n>0){let r=i;for(let i=0;i<n;i++)s[i]=unmarshalRange(r),r+=SIZE_OF_RANGE;C._free(i)}return s}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);let r=C.getValue(TRANSFER_BUFFER,"i32"),n=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),i=Array(r);if(r>0){let s=n;for(let n=0;n<r;n++)i[n]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(n)}return i}},TreeCursor=class _TreeCursor{static{__name(this,"TreeCursor")}0=0;1=0;2=0;3=0;tree;constructor(r,n){assertInternal(r),this.tree=n,unmarshalTreeCursor(this)}copy(){let r=new _TreeCursor(INTERNAL,this.tree);return C._ts_tree_cursor_copy_wasm(this.tree[0]),unmarshalTreeCursor(r),r}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);let r=C._ts_tree_cursor_start_index_wasm(this.tree[0]),n=C._ts_tree_cursor_end_index_wasm(this.tree[0]);C._ts_tree_cursor_start_position_wasm(this.tree[0]);let i=unmarshalPoint(TRANSFER_BUFFER);return getText(this.tree,r,n,i)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);let r=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===r}gotoLastChild(){marshalTreeCursor(this);let r=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===r}gotoParent(){marshalTreeCursor(this);let r=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===r}gotoNextSibling(){marshalTreeCursor(this);let r=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===r}gotoPreviousSibling(){marshalTreeCursor(this);let r=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===r}gotoDescendant(r){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],r),unmarshalTreeCursor(this)}gotoFirstChildForIndex(r){marshalTreeCursor(this),C.setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,r,"i32");let n=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===n}gotoFirstChildForPosition(r){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,r);let n=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===n}reset(r){marshalNode(r),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(r){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(r,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],r.tree[0]),unmarshalTreeCursor(this)}},Node=class{static{__name(this,"Node")}0=0;_children;_namedChildren;constructor(r,{id:n,tree:i,startIndex:s,startPosition:o,other:l}){assertInternal(r),this[0]=l,this.id=n,this.tree=i,this.startIndex=s,this.startPosition=o}id;startIndex;startPosition;tree;get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get text(){return getText(this.tree,this.startIndex,this.endIndex,this.startPosition)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}equals(r){return this.tree===r.tree&&this.id===r.id}child(r){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],r),unmarshalNode(this.tree)}namedChild(r){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],r),unmarshalNode(this.tree)}childForFieldId(r){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],r),unmarshalNode(this.tree)}childForFieldName(r){let n=this.tree.language.fields.indexOf(r);return -1!==n?this.childForFieldId(n):null}fieldNameForChild(r){marshalNode(this);let n=C._ts_node_field_name_for_child_wasm(this.tree[0],r);return n?C.AsciiToString(n):null}fieldNameForNamedChild(r){marshalNode(this);let n=C._ts_node_field_name_for_named_child_wasm(this.tree[0],r);return n?C.AsciiToString(n):null}childrenForFieldName(r){let n=this.tree.language.fields.indexOf(r);return -1!==n&&0!==n?this.childrenForFieldId(n):[]}childrenForFieldId(r){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],r);let n=C.getValue(TRANSFER_BUFFER,"i32"),i=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=Array(n);if(n>0){let r=i;for(let i=0;i<n;i++)s[i]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(i)}return s}firstChildForIndex(r){marshalNode(this);let n=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(n,r,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(r){marshalNode(this);let n=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(n,r,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);let r=C.getValue(TRANSFER_BUFFER,"i32"),n=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=Array(r),r>0){let i=n;for(let n=0;n<r;n++)this._children[n]=unmarshalNode(this.tree,i),i+=SIZE_OF_NODE;C._free(n)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);let r=C.getValue(TRANSFER_BUFFER,"i32"),n=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=Array(r),r>0){let i=n;for(let n=0;n<r;n++)this._namedChildren[n]=unmarshalNode(this.tree,i),i+=SIZE_OF_NODE;C._free(n)}}return this._namedChildren}descendantsOfType(r,n=ZERO_POINT,i=ZERO_POINT){Array.isArray(r)||(r=[r]);let s=[],o=this.tree.language.types;for(let n of r)"ERROR"==n&&s.push(65535);for(let n=0,i=o.length;n<i;n++)r.includes(o[n])&&s.push(n);let l=C._malloc(SIZE_OF_INT*s.length);for(let r=0,n=s.length;r<n;r++)C.setValue(l+r*SIZE_OF_INT,s[r],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],l,s.length,n.row,n.column,i.row,i.column);let a=C.getValue(TRANSFER_BUFFER,"i32"),u=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=Array(a);if(a>0){let r=u;for(let n=0;n<a;n++)c[n]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE}return C._free(u),C._free(l),c}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}childWithDescendant(r){return marshalNode(this),marshalNode(r,1),C._ts_node_child_with_descendant_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(r,n=r){if("number"!=typeof r||"number"!=typeof n)throw Error("Arguments must be numbers");marshalNode(this);let i=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(i,r,"i32"),C.setValue(i+SIZE_OF_INT,n,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(r,n=r){if("number"!=typeof r||"number"!=typeof n)throw Error("Arguments must be numbers");marshalNode(this);let i=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(i,r,"i32"),C.setValue(i+SIZE_OF_INT,n,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(r,n=r){if(!isPoint(r)||!isPoint(n))throw Error("Arguments must be {row, column} objects");marshalNode(this);let i=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(i,r),marshalPoint(i+SIZE_OF_POINT,n),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(r,n=r){if(!isPoint(r)||!isPoint(n))throw Error("Arguments must be {row, column} objects");marshalNode(this);let i=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(i,r),marshalPoint(i+SIZE_OF_POINT,n),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}edit(r){if(this.startIndex>=r.oldEndIndex){let n,i;this.startIndex=r.newEndIndex+(this.startIndex-r.oldEndIndex),this.startPosition.row>r.oldEndPosition.row?(n=this.startPosition.row-r.oldEndPosition.row,i=this.startPosition.column):(n=0,i=this.startPosition.column,this.startPosition.column>=r.oldEndPosition.column&&(i=this.startPosition.column-r.oldEndPosition.column)),n>0?(this.startPosition.row+=n,this.startPosition.column=i):this.startPosition.column+=i}else this.startIndex>r.startIndex&&(this.startIndex=r.newEndIndex,this.startPosition.row=r.newEndPosition.row,this.startPosition.column=r.newEndPosition.column)}toString(){marshalNode(this);let r=C._ts_node_to_string_wasm(this.tree[0]),n=C.AsciiToString(r);return C._free(r),n}};function unmarshalCaptures(r,n,i,s,o){for(let l=0,a=o.length;l<a;l++){let a=C.getValue(i,"i32"),u=unmarshalNode(n,i+=SIZE_OF_INT);i+=SIZE_OF_NODE,o[l]={patternIndex:s,name:r.captureNames[a],node:u}}return i}function marshalNode(r,n=0){let i=TRANSFER_BUFFER+n*SIZE_OF_NODE;C.setValue(i,r.id,"i32"),i+=SIZE_OF_INT,C.setValue(i,r.startIndex,"i32"),i+=SIZE_OF_INT,C.setValue(i,r.startPosition.row,"i32"),i+=SIZE_OF_INT,C.setValue(i,r.startPosition.column,"i32"),i+=SIZE_OF_INT,C.setValue(i,r[0],"i32")}function unmarshalNode(r,n=TRANSFER_BUFFER){let i=C.getValue(n,"i32");if(n+=SIZE_OF_INT,0===i)return null;let s=C.getValue(n,"i32");n+=SIZE_OF_INT;let o=C.getValue(n,"i32");n+=SIZE_OF_INT;let l=C.getValue(n,"i32");return n+=SIZE_OF_INT,new Node(INTERNAL,{id:i,tree:r,startIndex:s,startPosition:{row:o,column:l},other:C.getValue(n,"i32")})}function marshalTreeCursor(r,n=TRANSFER_BUFFER){C.setValue(n+0*SIZE_OF_INT,r[0],"i32"),C.setValue(n+ +SIZE_OF_INT,r[1],"i32"),C.setValue(n+2*SIZE_OF_INT,r[2],"i32"),C.setValue(n+3*SIZE_OF_INT,r[3],"i32")}function unmarshalTreeCursor(r){r[0]=C.getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),r[1]=C.getValue(TRANSFER_BUFFER+ +SIZE_OF_INT,"i32"),r[2]=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),r[3]=C.getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(r,n){C.setValue(r,n.row,"i32"),C.setValue(r+SIZE_OF_INT,n.column,"i32")}function unmarshalPoint(r){return{row:C.getValue(r,"i32")>>>0,column:C.getValue(r+SIZE_OF_INT,"i32")>>>0}}function marshalRange(r,n){marshalPoint(r,n.startPosition),marshalPoint(r+=SIZE_OF_POINT,n.endPosition),r+=SIZE_OF_POINT,C.setValue(r,n.startIndex,"i32"),r+=SIZE_OF_INT,C.setValue(r,n.endIndex,"i32")}function unmarshalRange(r){let n={};return n.startPosition=unmarshalPoint(r),n.endPosition=unmarshalPoint(r+=SIZE_OF_POINT),r+=SIZE_OF_POINT,n.startIndex=C.getValue(r,"i32")>>>0,r+=SIZE_OF_INT,n.endIndex=C.getValue(r,"i32")>>>0,n}function marshalEdit(r,n=TRANSFER_BUFFER){marshalPoint(n,r.startPosition),marshalPoint(n+=SIZE_OF_POINT,r.oldEndPosition),marshalPoint(n+=SIZE_OF_POINT,r.newEndPosition),n+=SIZE_OF_POINT,C.setValue(n,r.startIndex,"i32"),n+=SIZE_OF_INT,C.setValue(n,r.oldEndIndex,"i32"),n+=SIZE_OF_INT,C.setValue(n,r.newEndIndex,"i32")}function unmarshalLanguageMetadata(r){let n=C.getValue(r,"i32");return{major_version:n,minor_version:C.getValue(r+=SIZE_OF_INT,"i32"),patch_version:C.getValue(r+=SIZE_OF_INT,"i32")}}__name(unmarshalCaptures,"unmarshalCaptures"),__name(marshalNode,"marshalNode"),__name(unmarshalNode,"unmarshalNode"),__name(marshalTreeCursor,"marshalTreeCursor"),__name(unmarshalTreeCursor,"unmarshalTreeCursor"),__name(marshalPoint,"marshalPoint"),__name(unmarshalPoint,"unmarshalPoint"),__name(marshalRange,"marshalRange"),__name(unmarshalRange,"unmarshalRange"),__name(marshalEdit,"marshalEdit"),__name(unmarshalLanguageMetadata,"unmarshalLanguageMetadata");var LANGUAGE_FUNCTION_REGEX=/^tree_sitter_\w+$/,Language=class _Language{static{__name(this,"Language")}0=0;types;fields;constructor(r,n){assertInternal(r),this[0]=n,this.types=Array(C._ts_language_symbol_count(this[0]));for(let r=0,n=this.types.length;r<n;r++)2>C._ts_language_symbol_type(this[0],r)&&(this.types[r]=C.UTF8ToString(C._ts_language_symbol_name(this[0],r)));this.fields=Array(C._ts_language_field_count(this[0])+1);for(let r=0,n=this.fields.length;r<n;r++){const n=C._ts_language_field_name_for_id(this[0],r);0!==n?this.fields[r]=C.UTF8ToString(n):this.fields[r]=null}}get name(){let r=C._ts_language_name(this[0]);return 0===r?null:C.UTF8ToString(r)}get abiVersion(){return C._ts_language_abi_version(this[0])}get metadata(){return(C._ts_language_metadata_wasm(this[0]),0===C.getValue(TRANSFER_BUFFER,"i32"))?null:unmarshalLanguageMetadata(TRANSFER_BUFFER+SIZE_OF_INT)}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(r){let n=this.fields.indexOf(r);return -1!==n?n:null}fieldNameForId(r){return this.fields[r]??null}idForNodeType(r,n){let i=C.lengthBytesUTF8(r),s=C._malloc(i+1);C.stringToUTF8(r,s,i+1);let o=C._ts_language_symbol_for_name(this[0],s,i,+!!n);return C._free(s),o||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(r){let n=C._ts_language_symbol_name(this[0],r);return n?C.UTF8ToString(n):null}nodeTypeIsNamed(r){return!!C._ts_language_type_is_named_wasm(this[0],r)}nodeTypeIsVisible(r){return!!C._ts_language_type_is_visible_wasm(this[0],r)}get supertypes(){C._ts_language_supertypes_wasm(this[0]);let r=C.getValue(TRANSFER_BUFFER,"i32"),n=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),i=Array(r);if(r>0){let s=n;for(let n=0;n<r;n++)i[n]=C.getValue(s,"i16"),s+=SIZE_OF_SHORT}return i}subtypes(r){C._ts_language_subtypes_wasm(this[0],r);let n=C.getValue(TRANSFER_BUFFER,"i32"),i=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=Array(n);if(n>0){let r=i;for(let i=0;i<n;i++)s[i]=C.getValue(r,"i16"),r+=SIZE_OF_SHORT}return s}nextState(r,n){return C._ts_language_next_state(this[0],r,n)}lookaheadIterator(r){let n=C._ts_lookahead_iterator_new(this[0],r);return n?new LookaheadIterator(INTERNAL,n,this):null}static async load(r){let n;if(r instanceof Uint8Array)n=r;else if(globalThis.process?.versions.node){let i=await __webpack_require__.e(80480).then(__webpack_require__.t.bind(__webpack_require__,80480,19));n=await i.readFile(r)}else{let i=await fetch(r);if(!i.ok){let r=await i.text();throw Error(`Language.load failed with status ${i.status}.
4
+ `}),f},ts=l.bP.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:e4,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:r,HTMLAttributes:n}){let{colgroup:i,tableWidth:s,tableMinWidth:o}=e6(r,this.options.cellMinWidth),a=n.style;function u(){return a||(s?`width: ${s}`:`min-width: ${o}`)}let c=["table",(0,l.KV)(this.options.HTMLAttributes,n,{style:u()}),i,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},c]:c},parseMarkdown:(r,n)=>{let i=[],s=Array.isArray(r.align)?r.align:[];if(r.header){let o=[];r.header.forEach((r,i)=>{var l;let a=eZ(null!=(l=s[i])?l:r.align),u=a?{align:a}:{};o.push(n.createNode("tableHeader",u,[{type:"paragraph",content:n.parseInline(r.tokens)}]))}),i.push(n.createNode("tableRow",{},o))}return r.rows&&r.rows.forEach(r=>{let o=[];r.forEach((r,i)=>{var l;let a=eZ(null!=(l=s[i])?l:r.align),u=a?{align:a}:{};o.push(n.createNode("tableCell",u,[{type:"paragraph",content:n.parseInline(r.tokens)}]))}),i.push(n.createNode("tableRow",{},o))}),n.createNode("table",void 0,i)},renderMarkdown:(r,n)=>ti(r,n),addCommands:()=>({insertTable:({rows:r=3,cols:n=3,withHeaderRow:i=!0}={})=>({tr:s,dispatch:o,editor:l})=>{let u=e7(l.schema,r,n,i);if(o){let r=s.selection.from+1;s.replaceSelectionWith(u).scrollIntoView().setSelection(a.U3.near(s.doc.resolve(r)))}return!0},addColumnBefore:()=>({state:r,dispatch:n})=>V(r,n),addColumnAfter:()=>({state:r,dispatch:n})=>U(r,n),deleteColumn:()=>({state:r,dispatch:n})=>J(r,n),addRowBefore:()=>({state:r,dispatch:n})=>Z(r,n),addRowAfter:()=>({state:r,dispatch:n})=>X(r,n),deleteRow:()=>({state:r,dispatch:n})=>Q(r,n),deleteTable:()=>({state:r,dispatch:n})=>ed(r,n),mergeCells:()=>({state:r,dispatch:n})=>er(r,n),splitCell:()=>({state:r,dispatch:n})=>en(r,n),toggleHeaderColumn:()=>({state:r,dispatch:n})=>ea("column")(r,n),toggleHeaderRow:()=>({state:r,dispatch:n})=>ea("row")(r,n),toggleHeaderCell:()=>({state:r,dispatch:n})=>eu(r,n),mergeOrSplit:()=>({state:r,dispatch:n})=>!!er(r,n)||en(r,n),setCellAttribute:(r,n)=>({state:i,dispatch:s})=>es(r,n)(i,s),goToNextCell:()=>({state:r,dispatch:n})=>eh(1)(r,n),goToPreviousCell:()=>({state:r,dispatch:n})=>eh(-1)(r,n),fixTables:()=>({state:r,dispatch:n})=>(n&&B(r),!0),setCellSelection:r=>({tr:n,dispatch:i})=>{if(i){let i=I.create(n.doc,r.anchorCell,r.headCell);n.setSelection(i)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:tt,"Mod-Backspace":tt,Delete:tt,"Mod-Delete":tt}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[eN({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],eG({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(r){let n={name:r.name,options:r.options,storage:r.storage};return{tableRole:(0,l.gk)((0,l.iI)(r,"tableRole",n))}}});l.YY.create({name:"tableKit",addExtensions(){let r=[];return!1!==this.options.table&&r.push(ts.configure(this.options.table)),!1!==this.options.tableCell&&r.push(e0.configure(this.options.tableCell)),!1!==this.options.tableHeader&&r.push(e1.configure(this.options.tableHeader)),!1!==this.options.tableRow&&r.push(e2.configure(this.options.tableRow)),r}})},6268:(r,n,i)=>{"use strict";i.d(n,{A:()=>s.A0});var s=i(5989)},6489:(r,n,i)=>{"use strict";i.d(n,{A:()=>l});var s=i(90425);let o=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],l=(0,s.A)("palette",o)},8242:(r,n,i)=>{"use strict";i.d(n,{$L:()=>ee,Ln:()=>E,N0:()=>Z,Um:()=>Q,Wg:()=>S,X9:()=>_,Ys:()=>v,dL:()=>ey,jP:()=>L,n9:()=>J,oM:()=>N,zy:()=>U});var s=i(27050);let o=65535,l=65536;function a(r,n){return r+n*l}function u(r){return r&o}function c(r){return(r-(r&o))/l}let h=1,d=2,p=4,f=8;class m{constructor(r,n,i){this.pos=r,this.delInfo=n,this.recover=i}get deleted(){return(this.delInfo&f)>0}get deletedBefore(){return(this.delInfo&(h|p))>0}get deletedAfter(){return(this.delInfo&(d|p))>0}get deletedAcross(){return(this.delInfo&p)>0}}class g{constructor(r,n=!1){if(this.ranges=r,this.inverted=n,!r.length&&g.empty)return g.empty}recover(r){let n=0,i=u(r);if(!this.inverted)for(let r=0;r<i;r++)n+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*i]+n+c(r)}mapResult(r,n=1){return this._map(r,n,!1)}map(r,n=1){return this._map(r,n,!0)}_map(r,n,i){let s=0,o=this.inverted?2:1,l=this.inverted?1:2;for(let u=0;u<this.ranges.length;u+=3){let c=this.ranges[u]-(this.inverted?s:0);if(c>r)break;let g=this.ranges[u+o],_=this.ranges[u+l],y=c+g;if(r<=y){let o=g?r==c?-1:r==y?1:n:n,l=c+s+(o<0?0:_);if(i)return l;let k=r==(n<0?c:y)?null:a(u/3,r-c),b=r==c?d:r==y?h:p;return(n<0?r!=c:r!=y)&&(b|=f),new m(l,b,k)}s+=_-g}return i?r+s:new m(r+s,0,null)}touches(r,n){let i=0,s=u(n),o=this.inverted?2:1,l=this.inverted?1:2;for(let n=0;n<this.ranges.length;n+=3){let a=this.ranges[n]-(this.inverted?i:0);if(a>r)break;let u=this.ranges[n+o];if(r<=a+u&&n==3*s)return!0;i+=this.ranges[n+l]-u}return!1}forEach(r){let n=this.inverted?2:1,i=this.inverted?1:2;for(let s=0,o=0;s<this.ranges.length;s+=3){let l=this.ranges[s],a=l-(this.inverted?o:0),u=l+(this.inverted?0:o),c=this.ranges[s+n],h=this.ranges[s+i];r(a,a+c,u,u+h),o+=h-c}}invert(){return new g(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(r){return 0==r?g.empty:new g(r<0?[0,-r,0]:[0,0,r])}}g.empty=new g([]);class _{constructor(r,n,i=0,s=r?r.length:0){this.mirror=n,this.from=i,this.to=s,this._maps=r||[],this.ownData=!(r||n)}get maps(){return this._maps}slice(r=0,n=this.maps.length){return new _(this._maps,this.mirror,r,n)}appendMap(r,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(r),null!=n&&this.setMirror(this._maps.length-1,n)}appendMapping(r){for(let n=0,i=this._maps.length;n<r._maps.length;n++){let s=r.getMirror(n);this.appendMap(r._maps[n],null!=s&&s<n?i+s:void 0)}}getMirror(r){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==r)return this.mirror[n+(n%2?-1:1)]}}setMirror(r,n){this.mirror||(this.mirror=[]),this.mirror.push(r,n)}appendMappingInverted(r){for(let n=r.maps.length-1,i=this._maps.length+r._maps.length;n>=0;n--){let s=r.getMirror(n);this.appendMap(r._maps[n].invert(),null!=s&&s>n?i-s-1:void 0)}}invert(){let r=new _;return r.appendMappingInverted(this),r}map(r,n=1){if(this.mirror)return this._map(r,n,!0);for(let i=this.from;i<this.to;i++)r=this._maps[i].map(r,n);return r}mapResult(r,n=1){return this._map(r,n,!1)}_map(r,n,i){let s=0;for(let i=this.from;i<this.to;i++){let o=this._maps[i].mapResult(r,n);if(null!=o.recover){let n=this.getMirror(i);if(null!=n&&n>i&&n<this.to){i=n,r=this._maps[n].recover(o.recover);continue}}s|=o.delInfo,r=o.pos}return i?r:new m(r,s,null)}}let y=Object.create(null);class k{getMap(){return g.empty}merge(r){return null}static fromJSON(r,n){if(!n||!n.stepType)throw RangeError("Invalid input for Step.fromJSON");let i=y[n.stepType];if(!i)throw RangeError(`No step type ${n.stepType} defined`);return i.fromJSON(r,n)}static jsonID(r,n){if(r in y)throw RangeError("Duplicate use of step JSON ID "+r);return y[r]=n,n.prototype.jsonID=r,n}}class b{constructor(r,n){this.doc=r,this.failed=n}static ok(r){return new b(r,null)}static fail(r){return new b(null,r)}static fromReplace(r,n,i,o){try{return b.ok(r.replace(n,i,o))}catch(r){if(r instanceof s.vI)return b.fail(r.message);throw r}}}function w(r,n,i){let o=[];for(let s=0;s<r.childCount;s++){let l=r.child(s);l.content.size&&(l=l.copy(w(l.content,n,l))),l.isInline&&(l=n(l,i,s)),o.push(l)}return s.FK.fromArray(o)}class x extends k{constructor(r,n,i){super(),this.from=r,this.to=n,this.mark=i}apply(r){let n=r.slice(this.from,this.to),i=r.resolve(this.from),o=i.node(i.sharedDepth(this.to)),l=new s.Ji(w(n.content,(r,n)=>r.isAtom&&n.type.allowsMarkType(this.mark.type)?r.mark(this.mark.addToSet(r.marks)):r,o),n.openStart,n.openEnd);return b.fromReplace(r,this.from,this.to,l)}invert(){return new v(this.from,this.to,this.mark)}map(r){let n=r.mapResult(this.from,1),i=r.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new x(n.pos,i.pos,this.mark)}merge(r){return r instanceof x&&r.mark.eq(this.mark)&&this.from<=r.to&&this.to>=r.from?new x(Math.min(this.from,r.from),Math.max(this.to,r.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(r,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new x(n.from,n.to,r.markFromJSON(n.mark))}}k.jsonID("addMark",x);class v extends k{constructor(r,n,i){super(),this.from=r,this.to=n,this.mark=i}apply(r){let n=r.slice(this.from,this.to),i=new s.Ji(w(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),r),n.openStart,n.openEnd);return b.fromReplace(r,this.from,this.to,i)}invert(){return new x(this.from,this.to,this.mark)}map(r){let n=r.mapResult(this.from,1),i=r.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new v(n.pos,i.pos,this.mark)}merge(r){return r instanceof v&&r.mark.eq(this.mark)&&this.from<=r.to&&this.to>=r.from?new v(Math.min(this.from,r.from),Math.max(this.to,r.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(r,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new v(n.from,n.to,r.markFromJSON(n.mark))}}k.jsonID("removeMark",v);class C extends k{constructor(r,n){super(),this.pos=r,this.mark=n}apply(r){let n=r.nodeAt(this.pos);if(!n)return b.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return b.fromReplace(r,this.pos,this.pos+1,new s.Ji(s.FK.from(i),0,+!n.isLeaf))}invert(r){let n=r.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new C(this.pos,n.marks[i]);return new C(this.pos,this.mark)}}return new A(this.pos,this.mark)}map(r){let n=r.mapResult(this.pos,1);return n.deletedAfter?null:new C(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(r,n){if("number"!=typeof n.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new C(n.pos,r.markFromJSON(n.mark))}}k.jsonID("addNodeMark",C);class A extends k{constructor(r,n){super(),this.pos=r,this.mark=n}apply(r){let n=r.nodeAt(this.pos);if(!n)return b.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return b.fromReplace(r,this.pos,this.pos+1,new s.Ji(s.FK.from(i),0,+!n.isLeaf))}invert(r){let n=r.nodeAt(this.pos);return n&&this.mark.isInSet(n.marks)?new C(this.pos,this.mark):this}map(r){let n=r.mapResult(this.pos,1);return n.deletedAfter?null:new A(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(r,n){if("number"!=typeof n.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new A(n.pos,r.markFromJSON(n.mark))}}k.jsonID("removeNodeMark",A);class E extends k{constructor(r,n,i,s=!1){super(),this.from=r,this.to=n,this.slice=i,this.structure=s}apply(r){return this.structure&&M(r,this.from,this.to)?b.fail("Structure replace would overwrite content"):b.fromReplace(r,this.from,this.to,this.slice)}getMap(){return new g([this.from,this.to-this.from,this.slice.size])}invert(r){return new E(this.from,this.from+this.slice.size,r.slice(this.from,this.to))}map(r){let n=r.mapResult(this.to,-1),i=this.from==this.to&&E.MAP_BIAS<0?n:r.mapResult(this.from,1);return i.deletedAcross&&n.deletedAcross?null:new E(i.pos,Math.max(i.pos,n.pos),this.slice,this.structure)}merge(r){if(!(r instanceof E)||r.structure||this.structure)return null;if(this.from+this.slice.size!=r.from||this.slice.openEnd||r.slice.openStart)if(r.to!=this.from||this.slice.openStart||r.slice.openEnd)return null;else{let n=this.slice.size+r.slice.size==0?s.Ji.empty:new s.Ji(r.slice.content.append(this.slice.content),r.slice.openStart,this.slice.openEnd);return new E(r.from,this.to,n,this.structure)}{let n=this.slice.size+r.slice.size==0?s.Ji.empty:new s.Ji(this.slice.content.append(r.slice.content),this.slice.openStart,r.slice.openEnd);return new E(this.from,this.to+(r.to-r.from),n,this.structure)}}toJSON(){let r={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(r.slice=this.slice.toJSON()),this.structure&&(r.structure=!0),r}static fromJSON(r,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new E(n.from,n.to,s.Ji.fromJSON(r,n.slice),!!n.structure)}}E.MAP_BIAS=1,k.jsonID("replace",E);class S extends k{constructor(r,n,i,s,o,l,a=!1){super(),this.from=r,this.to=n,this.gapFrom=i,this.gapTo=s,this.slice=o,this.insert=l,this.structure=a}apply(r){if(this.structure&&(M(r,this.from,this.gapFrom)||M(r,this.gapTo,this.to)))return b.fail("Structure gap-replace would overwrite content");let n=r.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return b.fail("Gap is not a flat range");let i=this.slice.insertAt(this.insert,n.content);return i?b.fromReplace(r,this.from,this.to,i):b.fail("Content does not fit in gap")}getMap(){return new g([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(r){let n=this.gapTo-this.gapFrom;return new S(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,r.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(r){let n=r.mapResult(this.from,1),i=r.mapResult(this.to,-1),s=this.from==this.gapFrom?n.pos:r.map(this.gapFrom,-1),o=this.to==this.gapTo?i.pos:r.map(this.gapTo,1);return n.deletedAcross&&i.deletedAcross||s<n.pos||o>i.pos?null:new S(n.pos,i.pos,s,o,this.slice,this.insert,this.structure)}toJSON(){let r={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(r.slice=this.slice.toJSON()),this.structure&&(r.structure=!0),r}static fromJSON(r,n){if("number"!=typeof n.from||"number"!=typeof n.to||"number"!=typeof n.gapFrom||"number"!=typeof n.gapTo||"number"!=typeof n.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new S(n.from,n.to,n.gapFrom,n.gapTo,s.Ji.fromJSON(r,n.slice),n.insert,!!n.structure)}}function M(r,n,i){let s=r.resolve(n),o=i-n,l=s.depth;for(;o>0&&l>0&&s.indexAfter(l)==s.node(l).childCount;)l--,o--;if(o>0){let r=s.node(l).maybeChild(s.indexAfter(l));for(;o>0;){if(!r||r.isLeaf)return!0;r=r.firstChild,o--}}return!1}function T(r,n,i,s){let o,l,a=[],u=[];r.doc.nodesBetween(n,i,(r,c,h)=>{if(!r.isInline)return;let d=r.marks;if(!s.isInSet(d)&&h.type.allowsMarkType(s.type)){let h=Math.max(c,n),p=Math.min(c+r.nodeSize,i),f=s.addToSet(d);for(let r=0;r<d.length;r++)d[r].isInSet(f)||(o&&o.to==h&&o.mark.eq(d[r])?o.to=p:a.push(o=new v(h,p,d[r])));l&&l.to==h?l.to=p:u.push(l=new x(h,p,s))}}),a.forEach(n=>r.step(n)),u.forEach(n=>r.step(n))}function D(r,n,i,o){let l=[],a=0;r.doc.nodesBetween(n,i,(r,u)=>{if(!r.isInline)return;a++;let c=null;if(o instanceof s.sX){let n=r.marks,i;for(;i=o.isInSet(n);)(c||(c=[])).push(i),n=i.removeFromSet(n)}else o?o.isInSet(r.marks)&&(c=[o]):c=r.marks;if(c&&c.length){let s=Math.min(u+r.nodeSize,i);for(let r=0;r<c.length;r++){let i=c[r],o;for(let r=0;r<l.length;r++){let n=l[r];n.step==a-1&&i.eq(l[r].style)&&(o=n)}o?(o.to=s,o.step=a):l.push({style:i,from:Math.max(u,n),to:s,step:a})}}}),l.forEach(n=>r.step(new v(n.from,n.to,n.style)))}function F(r,n,i,o=i.contentMatch,l=!0){let a=r.doc.nodeAt(n),u=[],c=n+1;for(let n=0;n<a.childCount;n++){let h=a.child(n),d=c+h.nodeSize,p=o.matchType(h.type);if(p){o=p;for(let n=0;n<h.marks.length;n++)i.allowsMarkType(h.marks[n].type)||r.step(new v(c,d,h.marks[n]));if(l&&h.isText&&"pre"!=i.whitespace){let r,n=/\r?\n|\r/g,o;for(;r=n.exec(h.text);)o||(o=new s.Ji(s.FK.from(i.schema.text(" ",i.allowedMarks(h.marks))),0,0)),u.push(new E(c+r.index,c+r.index+r[0].length,o))}}else u.push(new E(c,d,s.Ji.empty));c=d}if(!o.validEnd){let n=o.fillBefore(s.FK.empty,!0);r.replace(c,c,new s.Ji(n,0,0))}for(let n=u.length-1;n>=0;n--)r.step(u[n])}function I(r,n,i){return(0==n||r.canReplace(n,r.childCount))&&(i==r.childCount||r.canReplace(0,i))}function L(r){let n=r.parent.content.cutByIndex(r.startIndex,r.endIndex);for(let i=r.depth,s=0,o=0;;--i){let l=r.$from.node(i),a=r.$from.index(i)+s,u=r.$to.indexAfter(i)-o;if(i<r.depth&&l.canReplace(a,u,n))return i;if(0==i||l.type.spec.isolating||!I(l,a,u))break;a&&(s=1),u<l.childCount&&(o=1)}return null}function R(r,n,i){let{$from:o,$to:l,depth:a}=n,u=o.before(a+1),c=l.after(a+1),h=u,d=c,p=s.FK.empty,f=0;for(let r=a,n=!1;r>i;r--)n||o.index(r)>0?(n=!0,p=s.FK.from(o.node(r).copy(p)),f++):h--;let m=s.FK.empty,g=0;for(let r=a,n=!1;r>i;r--)n||l.after(r+1)<l.end(r)?(n=!0,m=s.FK.from(l.node(r).copy(m)),g++):d++;r.step(new S(h,d,u,c,new s.Ji(p.append(m),f,g),p.size-f,!0))}function N(r,n,i=null,s=r){let o=z(r,n),l=o&&P(s,n);return l?o.map(O).concat({type:n,attrs:i}).concat(l.map(O)):null}function O(r){return{type:r,attrs:null}}function z(r,n){let{parent:i,startIndex:s,endIndex:o}=r,l=i.contentMatchAt(s).findWrapping(n);if(!l)return null;let a=l.length?l[0]:n;return i.canReplaceWith(s,o,a)?l:null}function P(r,n){let{parent:i,startIndex:s,endIndex:o}=r,l=i.child(s),a=n.contentMatch.findWrapping(l.type);if(!a)return null;let u=(a.length?a[a.length-1]:n).contentMatch;for(let r=s;u&&r<o;r++)u=u.matchType(i.child(r).type);return u&&u.validEnd?a:null}function $(r,n,i){let o=s.FK.empty;for(let r=i.length-1;r>=0;r--){if(o.size){let n=i[r].type.contentMatch.matchFragment(o);if(!n||!n.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=s.FK.from(i[r].type.create(i[r].attrs,o))}let l=n.start,a=n.end;r.step(new S(l,a,l,a,new s.Ji(o,0,0),i.length,!0))}function B(r,n,i,o,l){if(!o.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let a=r.steps.length;r.doc.nodesBetween(n,i,(n,i)=>{let u="function"==typeof l?l(n):l;if(n.isTextblock&&!n.hasMarkup(o,u)&&H(r.doc,r.mapping.slice(a).map(i),o)){let l=null;if(o.schema.linebreakReplacement){let r="pre"==o.whitespace,n=!!o.contentMatch.matchType(o.schema.linebreakReplacement);r&&!n?l=!1:!r&&n&&(l=!0)}!1===l&&j(r,n,i,a),F(r,r.mapping.slice(a).map(i,1),o,void 0,null===l);let c=r.mapping.slice(a),h=c.map(i,1),d=c.map(i+n.nodeSize,1);return r.step(new S(h,d,h+1,d-1,new s.Ji(s.FK.from(o.create(u,null,n.marks)),0,0),1,!0)),!0===l&&q(r,n,i,a),!1}})}function q(r,n,i,s){n.forEach((o,l)=>{if(o.isText){let a,u=/\r?\n|\r/g;for(;a=u.exec(o.text);){let o=r.mapping.slice(s).map(i+1+l+a.index);r.replaceWith(o,o+1,n.type.schema.linebreakReplacement.create())}}})}function j(r,n,i,s){n.forEach((o,l)=>{if(o.type==o.type.schema.linebreakReplacement){let o=r.mapping.slice(s).map(i+1+l);r.replaceWith(o,o+1,n.type.schema.text("\n"))}})}function H(r,n,i){let s=r.resolve(n),o=s.index();return s.parent.canReplaceWith(o,o+1,i)}function V(r,n,i,o,l){let a=r.doc.nodeAt(n);if(!a)throw RangeError("No node at given position");i||(i=a.type);let u=i.create(o,null,l||a.marks);if(a.isLeaf)return r.replaceWith(n,n+a.nodeSize,u);if(!i.validContent(a.content))throw RangeError("Invalid content for node type "+i.name);r.step(new S(n,n+a.nodeSize,n+1,n+a.nodeSize-1,new s.Ji(s.FK.from(u),0,0),1,!0))}function U(r,n,i=1,s){let o=r.resolve(n),l=o.depth-i,a=s&&s[s.length-1]||o.parent;if(l<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let r=o.depth-1,n=i-2;r>l;r--,n--){let i=o.node(r),l=o.index(r);if(i.type.spec.isolating)return!1;let a=i.content.cutByIndex(l,i.childCount),u=s&&s[n+1];u&&(a=a.replaceChild(0,u.type.create(u.attrs)));let c=s&&s[n]||i;if(!i.canReplace(l+1,i.childCount)||!c.type.validContent(a))return!1}let u=o.indexAfter(l),c=s&&s[0];return o.node(l).canReplaceWith(u,u,c?c.type:o.node(l+1).type)}function W(r,n,i=1,o){let l=r.doc.resolve(n),a=s.FK.empty,u=s.FK.empty;for(let r=l.depth,n=l.depth-i,c=i-1;r>n;r--,c--){a=s.FK.from(l.node(r).copy(a));let n=o&&o[c];u=s.FK.from(n?n.type.create(n.attrs,u):l.node(r).copy(u))}r.step(new E(n,n,new s.Ji(a.append(u),i,i),!0))}function J(r,n){let i=r.resolve(n),s=i.index();return G(i.nodeBefore,i.nodeAfter)&&i.parent.canReplace(s,s+1)}function K(r,n){n.content.size||r.type.compatibleContent(n.type);let i=r.contentMatchAt(r.childCount),{linebreakReplacement:s}=r.type.schema;for(let o=0;o<n.childCount;o++){let l=n.child(o),a=l.type==s?r.type.schema.nodes.text:l.type;if(!(i=i.matchType(a))||!r.type.allowsMarks(l.marks))return!1}return i.validEnd}function G(r,n){return!!(r&&n&&!r.isLeaf&&K(r,n))}function Z(r,n,i=-1){let s=r.resolve(n);for(let r=s.depth;;r--){let o,l,a=s.index(r);if(r==s.depth?(o=s.nodeBefore,l=s.nodeAfter):i>0?(o=s.node(r+1),a++,l=s.node(r).maybeChild(a)):(o=s.node(r).maybeChild(a-1),l=s.node(r+1)),o&&!o.isTextblock&&G(o,l)&&s.node(r).canReplace(a,a+1))return n;if(0==r)break;n=i<0?s.before(r):s.after(r)}}function X(r,n,i){let o=null,{linebreakReplacement:l}=r.doc.type.schema,a=r.doc.resolve(n-i),u=a.node().type;if(l&&u.inlineContent){let r="pre"==u.whitespace,n=!!u.contentMatch.matchType(l);r&&!n?o=!1:!r&&n&&(o=!0)}let c=r.steps.length;if(!1===o){let s=r.doc.resolve(n+i);j(r,s.node(),s.before(),c)}u.inlineContent&&F(r,n+i-1,u,a.node().contentMatchAt(a.index()),null==o);let h=r.mapping.slice(c),d=h.map(n-i);if(r.step(new E(d,h.map(n+i,-1),s.Ji.empty,!0)),!0===o){let n=r.doc.resolve(d);q(r,n.node(),n.before(),r.steps.length)}return r}function Y(r,n,i){let s=r.resolve(n);if(s.parent.canReplaceWith(s.index(),s.index(),i))return n;if(0==s.parentOffset)for(let r=s.depth-1;r>=0;r--){let n=s.index(r);if(s.node(r).canReplaceWith(n,n,i))return s.before(r+1);if(n>0)return null}if(s.parentOffset==s.parent.content.size)for(let r=s.depth-1;r>=0;r--){let n=s.indexAfter(r);if(s.node(r).canReplaceWith(n,n,i))return s.after(r+1);if(n<s.node(r).childCount)break}return null}function Q(r,n,i){let s=r.resolve(n);if(!i.content.size)return n;let o=i.content;for(let r=0;r<i.openStart;r++)o=o.firstChild.content;for(let r=1;r<=(0==i.openStart&&i.size?2:1);r++)for(let n=s.depth;n>=0;n--){let i=n==s.depth?0:s.pos<=(s.start(n+1)+s.end(n+1))/2?-1:1,l=s.index(n)+ +(i>0),a=s.node(n),u=!1;if(1==r)u=a.canReplace(l,l,o);else{let r=a.contentMatchAt(l).findWrapping(o.firstChild.type);u=r&&a.canReplaceWith(l,l,r[0])}if(u)return 0==i?s.pos:i<0?s.before(n+1):s.after(n+1)}return null}function ee(r,n,i=n,o=s.Ji.empty){if(n==i&&!o.size)return null;let l=r.resolve(n),a=r.resolve(i);return et(l,a,o)?new E(n,i,o):new er(l,a,o).fit()}function et(r,n,i){return!i.openStart&&!i.openEnd&&r.start()==n.start()&&r.parent.canReplace(r.index(),n.index(),i.content)}k.jsonID("replaceAround",S);class er{constructor(r,n,i){this.$from=r,this.$to=n,this.unplaced=i,this.frontier=[],this.placed=s.FK.empty;for(let n=0;n<=r.depth;n++){let i=r.node(n);this.frontier.push({type:i.type,match:i.contentMatchAt(r.indexAfter(n))})}for(let n=r.depth;n>0;n--)this.placed=s.FK.from(r.node(n).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let r=this.findFittable();r?this.placeNodes(r):this.openMore()||this.dropNode()}let r=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,o=this.close(r<0?this.$to:i.doc.resolve(r));if(!o)return null;let l=this.placed,a=i.depth,u=o.depth;for(;a&&u&&1==l.childCount;)l=l.firstChild.content,a--,u--;let c=new s.Ji(l,a,u);return r>-1?new S(i.pos,r,this.$to.pos,this.$to.end(),c,n):c.size||i.pos!=this.$to.pos?new E(i.pos,o.pos,c):null}findFittable(){let r=this.unplaced.openStart;for(let n=this.unplaced.content,i=0,s=this.unplaced.openEnd;i<r;i++){let o=n.firstChild;if(n.childCount>1&&(s=0),o.type.spec.isolating&&s<=i){r=i;break}n=o.content}for(let n=1;n<=2;n++)for(let i=1==n?r:this.unplaced.openStart;i>=0;i--){let r,o=null,l=(r=i?(o=es(this.unplaced.content,i-1).firstChild).content:this.unplaced.content).firstChild;for(let r=this.depth;r>=0;r--){let{type:a,match:u}=this.frontier[r],c,h=null;if(1==n&&(l?u.matchType(l.type)||(h=u.fillBefore(s.FK.from(l),!1)):o&&a.compatibleContent(o.type)))return{sliceDepth:i,frontierDepth:r,parent:o,inject:h};if(2==n&&l&&(c=u.findWrapping(l.type)))return{sliceDepth:i,frontierDepth:r,parent:o,wrap:c};if(o&&u.matchType(o.type))break}}}openMore(){let{content:r,openStart:n,openEnd:i}=this.unplaced,o=es(r,n);return!!o.childCount&&!o.firstChild.isLeaf&&(this.unplaced=new s.Ji(r,n+1,Math.max(i,o.size+n>=r.size-i?n+1:0)),!0)}dropNode(){let{content:r,openStart:n,openEnd:i}=this.unplaced,o=es(r,n);if(o.childCount<=1&&n>0){let l=r.size-n<=n+o.size;this.unplaced=new s.Ji(en(r,n-1,1),n-1,l?n-1:i)}else this.unplaced=new s.Ji(en(r,n,1),n,i)}placeNodes({sliceDepth:r,frontierDepth:n,parent:i,inject:o,wrap:l}){for(;this.depth>n;)this.closeFrontierNode();if(l)for(let r=0;r<l.length;r++)this.openFrontierNode(l[r]);let a=this.unplaced,u=i?i.content:a.content,c=a.openStart-r,h=0,d=[],{match:p,type:f}=this.frontier[n];if(o){for(let r=0;r<o.childCount;r++)d.push(o.child(r));p=p.matchFragment(o)}let m=u.size+r-(a.content.size-a.openEnd);for(;h<u.childCount;){let r=u.child(h),n=p.matchType(r.type);if(!n)break;(++h>1||0==c||r.content.size)&&(p=n,d.push(eo(r.mark(f.allowedMarks(r.marks)),1==h?c:0,h==u.childCount?m:-1)))}let g=h==u.childCount;g||(m=-1),this.placed=ei(this.placed,n,s.FK.from(d)),this.frontier[n].match=p,g&&m<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let r=0,n=u;r<m;r++){let r=n.lastChild;this.frontier.push({type:r.type,match:r.contentMatchAt(r.childCount)}),n=r.content}this.unplaced=g?0==r?s.Ji.empty:new s.Ji(en(a.content,r-1,1),r-1,m<0?a.openEnd:r-1):new s.Ji(en(a.content,r,h),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let r=this.frontier[this.depth],n;if(!r.type.isTextblock||!el(this.$to,this.$to.depth,r.type,r.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return -1;let{depth:i}=this.$to,s=this.$to.after(i);for(;i>1&&s==this.$to.end(--i);)++s;return s}findCloseLevel(r){t:for(let n=Math.min(this.depth,r.depth);n>=0;n--){let{match:i,type:s}=this.frontier[n],o=n<r.depth&&r.end(n+1)==r.pos+(r.depth-(n+1)),l=el(r,n,s,i,o);if(l){for(let i=n-1;i>=0;i--){let{match:n,type:s}=this.frontier[i],o=el(r,i,s,n,!0);if(!o||o.childCount)continue t}return{depth:n,fit:l,move:o?r.doc.resolve(r.after(n+1)):r}}}}close(r){let n=this.findCloseLevel(r);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=ei(this.placed,n.depth,n.fit)),r=n.move;for(let i=n.depth+1;i<=r.depth;i++){let n=r.node(i),s=n.type.contentMatch.fillBefore(n.content,!0,r.index(i));this.openFrontierNode(n.type,n.attrs,s)}return r}openFrontierNode(r,n=null,i){let o=this.frontier[this.depth];o.match=o.match.matchType(r),this.placed=ei(this.placed,this.depth,s.FK.from(r.create(n,i))),this.frontier.push({type:r,match:r.contentMatch})}closeFrontierNode(){let r=this.frontier.pop().match.fillBefore(s.FK.empty,!0);r.childCount&&(this.placed=ei(this.placed,this.frontier.length,r))}}function en(r,n,i){return 0==n?r.cutByIndex(i,r.childCount):r.replaceChild(0,r.firstChild.copy(en(r.firstChild.content,n-1,i)))}function ei(r,n,i){return 0==n?r.append(i):r.replaceChild(r.childCount-1,r.lastChild.copy(ei(r.lastChild.content,n-1,i)))}function es(r,n){for(let i=0;i<n;i++)r=r.firstChild.content;return r}function eo(r,n,i){if(n<=0)return r;let o=r.content;return n>1&&(o=o.replaceChild(0,eo(o.firstChild,n-1,1==o.childCount?i-1:0))),n>0&&(o=r.type.contentMatch.fillBefore(o).append(o),i<=0&&(o=o.append(r.type.contentMatch.matchFragment(o).fillBefore(s.FK.empty,!0)))),r.copy(o)}function el(r,n,i,s,o){let l=r.node(n),a=o?r.indexAfter(n):r.index(n);if(a==l.childCount&&!i.compatibleContent(l.type))return null;let u=s.fillBefore(l.content,!0,a);return u&&!ea(i,l.content,a)?u:null}function ea(r,n,i){for(let s=i;s<n.childCount;s++)if(!r.allowsMarks(n.child(s).marks))return!0;return!1}function eu(r){return r.spec.defining||r.spec.definingForContent}function ec(r,n,i,o){if(!o.size)return r.deleteRange(n,i);let l=r.doc.resolve(n),a=r.doc.resolve(i);if(et(l,a,o))return r.step(new E(n,i,o));let u=ef(l,a);0==u[u.length-1]&&u.pop();let c=-(l.depth+1);u.unshift(c);for(let r=l.depth,n=l.pos-1;r>0;r--,n--){let i=l.node(r).type.spec;if(i.defining||i.definingAsContext||i.isolating)break;u.indexOf(r)>-1?c=r:l.before(r)==n&&u.splice(1,0,-r)}let h=u.indexOf(c),d=[],p=o.openStart;for(let r=o.content,n=0;;n++){let i=r.firstChild;if(d.push(i),n==o.openStart)break;r=i.content}for(let r=p-1;r>=0;r--){let n=d[r],i=eu(n.type);if(i&&!n.sameMarkup(l.node(Math.abs(c)-1)))p=r;else if(i||!n.type.isTextblock)break}for(let n=o.openStart;n>=0;n--){let c=(n+p+1)%(o.openStart+1),f=d[c];if(f)for(let n=0;n<u.length;n++){let d=u[(n+h)%u.length],p=!0;d<0&&(p=!1,d=-d);let m=l.node(d-1),g=l.index(d-1);if(m.canReplaceWith(g,g,f.type,f.marks))return r.replace(l.before(d),p?a.after(d):i,new s.Ji(eh(o.content,0,o.openStart,c),c,o.openEnd))}}let f=r.steps.length;for(let s=u.length-1;s>=0&&(r.replace(n,i,o),!(r.steps.length>f));s--){let r=u[s];r<0||(n=l.before(r),i=a.after(r))}}function eh(r,n,i,o,l){if(n<i){let s=r.firstChild;r=r.replaceChild(0,s.copy(eh(s.content,n+1,i,o,s)))}if(n>o){let n=l.contentMatchAt(0),i=n.fillBefore(r).append(r);r=i.append(n.matchFragment(i).fillBefore(s.FK.empty,!0))}return r}function ed(r,n,i,o){if(!o.isInline&&n==i&&r.doc.resolve(n).parent.content.size){let s=Y(r.doc,n,o.type);null!=s&&(n=i=s)}r.replaceRange(n,i,new s.Ji(s.FK.from(o),0,0))}function ep(r,n,i){let s=r.doc.resolve(n),o=r.doc.resolve(i);if(s.parent.isTextblock&&o.parent.isTextblock&&s.start()!=o.start()&&0==s.parentOffset&&0==o.parentOffset){let l=s.sharedDepth(i),a=!1;for(let r=s.depth;r>l;r--)s.node(r).type.spec.isolating&&(a=!0);for(let r=o.depth;r>l;r--)o.node(r).type.spec.isolating&&(a=!0);if(!a){for(let r=s.depth;r>0&&n==s.start(r);r--)n=s.before(r);for(let r=o.depth;r>0&&i==o.start(r);r--)i=o.before(r);s=r.doc.resolve(n),o=r.doc.resolve(i)}}let l=ef(s,o);for(let n=0;n<l.length;n++){let i=l[n],a=n==l.length-1;if(a&&0==i||s.node(i).type.contentMatch.validEnd)return r.delete(s.start(i),o.end(i));if(i>0&&(a||s.node(i-1).canReplace(s.index(i-1),o.indexAfter(i-1))))return r.delete(s.before(i),o.after(i))}for(let l=1;l<=s.depth&&l<=o.depth;l++)if(n-s.start(l)==s.depth-l&&i>s.end(l)&&o.end(l)-i!=o.depth-l&&s.start(l-1)==o.start(l-1)&&s.node(l-1).canReplace(s.index(l-1),o.index(l-1)))return r.delete(s.before(l),i);r.delete(n,i)}function ef(r,n){let i=[],s=Math.min(r.depth,n.depth);for(let o=s;o>=0;o--){let s=r.start(o);if(s<r.pos-(r.depth-o)||n.end(o)>n.pos+(n.depth-o)||r.node(o).type.spec.isolating||n.node(o).type.spec.isolating)break;(s==n.start(o)||o==r.depth&&o==n.depth&&r.parent.inlineContent&&n.parent.inlineContent&&o&&n.start(o-1)==s-1)&&i.push(o)}return i}class em extends k{constructor(r,n,i){super(),this.pos=r,this.attr=n,this.value=i}apply(r){let n=r.nodeAt(this.pos);if(!n)return b.fail("No node at attribute step's position");let i=Object.create(null);for(let r in n.attrs)i[r]=n.attrs[r];i[this.attr]=this.value;let o=n.type.create(i,null,n.marks);return b.fromReplace(r,this.pos,this.pos+1,new s.Ji(s.FK.from(o),0,+!n.isLeaf))}getMap(){return g.empty}invert(r){return new em(this.pos,this.attr,r.nodeAt(this.pos).attrs[this.attr])}map(r){let n=r.mapResult(this.pos,1);return n.deletedAfter?null:new em(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(r,n){if("number"!=typeof n.pos||"string"!=typeof n.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new em(n.pos,n.attr,n.value)}}k.jsonID("attr",em);class eg extends k{constructor(r,n){super(),this.attr=r,this.value=n}apply(r){let n=Object.create(null);for(let i in r.attrs)n[i]=r.attrs[i];n[this.attr]=this.value;let i=r.type.create(n,r.content,r.marks);return b.ok(i)}getMap(){return g.empty}invert(r){return new eg(this.attr,r.attrs[this.attr])}map(r){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(r,n){if("string"!=typeof n.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new eg(n.attr,n.value)}}k.jsonID("docAttr",eg);let e_=class extends Error{};(e_=function r(n){let i=Error.call(this,n);return i.__proto__=r.prototype,i}).prototype=Object.create(Error.prototype),e_.prototype.constructor=e_,e_.prototype.name="TransformError";class ey{constructor(r){this.doc=r,this.steps=[],this.docs=[],this.mapping=new _}get before(){return this.docs.length?this.docs[0]:this.doc}step(r){let n=this.maybeStep(r);if(n.failed)throw new e_(n.failed);return this}maybeStep(r){let n=r.apply(this.doc);return n.failed||this.addStep(r,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let r=1e9,n=-1e9;for(let i=0;i<this.mapping.maps.length;i++){let s=this.mapping.maps[i];i&&(r=s.map(r,1),n=s.map(n,-1)),s.forEach((i,s,o,l)=>{r=Math.min(r,o),n=Math.max(n,l)})}return 1e9==r?null:{from:r,to:n}}addStep(r,n){this.docs.push(this.doc),this.steps.push(r),this.mapping.appendMap(r.getMap()),this.doc=n}replace(r,n=r,i=s.Ji.empty){let o=ee(this.doc,r,n,i);return o&&this.step(o),this}replaceWith(r,n,i){return this.replace(r,n,new s.Ji(s.FK.from(i),0,0))}delete(r,n){return this.replace(r,n,s.Ji.empty)}insert(r,n){return this.replaceWith(r,r,n)}replaceRange(r,n,i){return ec(this,r,n,i),this}replaceRangeWith(r,n,i){return ed(this,r,n,i),this}deleteRange(r,n){return ep(this,r,n),this}lift(r,n){return R(this,r,n),this}join(r,n=1){return X(this,r,n),this}wrap(r,n){return $(this,r,n),this}setBlockType(r,n=r,i,s=null){return B(this,r,n,i,s),this}setNodeMarkup(r,n,i=null,s){return V(this,r,n,i,s),this}setNodeAttribute(r,n,i){return this.step(new em(r,n,i)),this}setDocAttribute(r,n){return this.step(new eg(r,n)),this}addNodeMark(r,n){return this.step(new C(r,n)),this}removeNodeMark(r,n){let i=this.doc.nodeAt(r);if(!i)throw RangeError("No node at position "+r);if(n instanceof s.CU)n.isInSet(i.marks)&&this.step(new A(r,n));else{let s=i.marks,o,l=[];for(;o=n.isInSet(s);)l.push(new A(r,o)),s=o.removeFromSet(s);for(let r=l.length-1;r>=0;r--)this.step(l[r])}return this}split(r,n=1,i){return W(this,r,n,i),this}addMark(r,n,i){return T(this,r,n,i),this}removeMark(r,n,i){return D(this,r,n,i),this}clearIncompatible(r,n,i){return F(this,r,n,i),this}}},10762:(r,n,i)=>{"use strict";i.d(n,{A:()=>l});var s=i(90425);let o=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],l=(0,s.A)("terminal",o)},12894:(r,n,i)=>{"use strict";i.d(n,{K:()=>k,w:()=>y});for(var s={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},l="u">typeof navigator&&/Mac/.test(navigator.platform),a="u">typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=0;u<10;u++)s[48+u]=s[96+u]=String(u);for(var u=1;u<=24;u++)s[u+111]="F"+u;for(var u=65;u<=90;u++)s[u]=String.fromCharCode(u+32),o[u]=String.fromCharCode(u);for(var c in s)o.hasOwnProperty(c)||(o[c]=s[c]);function h(r){var n=!(l&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||a&&r.shiftKey&&r.key&&1==r.key.length||"Unidentified"==r.key)&&r.key||(r.shiftKey?o:s)[r.keyCode]||r.key||"Unidentified";return"Esc"==n&&(n="Escape"),"Del"==n&&(n="Delete"),"Left"==n&&(n="ArrowLeft"),"Up"==n&&(n="ArrowUp"),"Right"==n&&(n="ArrowRight"),"Down"==n&&(n="ArrowDown"),n}var d=i(76865);let p="u">typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),f="u">typeof navigator&&/Win/.test(navigator.platform);function m(r){let n,i,s,o,l=r.split(/-(?!$)/),a=l[l.length-1];"Space"==a&&(a=" ");for(let r=0;r<l.length-1;r++){let a=l[r];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))n=!0;else if(/^(c|ctrl|control)$/i.test(a))i=!0;else if(/^s(hift)?$/i.test(a))s=!0;else if(/^mod$/i.test(a))p?o=!0:i=!0;else throw Error("Unrecognized modifier name: "+a)}return n&&(a="Alt-"+a),i&&(a="Ctrl-"+a),o&&(a="Meta-"+a),s&&(a="Shift-"+a),a}function g(r){let n=Object.create(null);for(let i in r)n[m(i)]=r[i];return n}function _(r,n,i=!0){return n.altKey&&(r="Alt-"+r),n.ctrlKey&&(r="Ctrl-"+r),n.metaKey&&(r="Meta-"+r),i&&n.shiftKey&&(r="Shift-"+r),r}function y(r){return new d.k_({props:{handleKeyDown:k(r)}})}function k(r){let n=g(r);return function(r,i){let o=h(i),l,a=n[_(o,i)];if(a&&a(r.state,r.dispatch,r))return!0;if(1==o.length&&" "!=o){if(i.shiftKey){let s=n[_(o,i,!1)];if(s&&s(r.state,r.dispatch,r))return!0}if((i.altKey||i.metaKey||i.ctrlKey)&&!(f&&i.ctrlKey&&i.altKey)&&(l=s[i.keyCode])&&l!=o){let s=n[_(l,i)];if(s&&s(r.state,r.dispatch,r))return!0}}return!1}}},13439:(r,n,i)=>{"use strict";i.d(n,{$Z:()=>ep,hG:()=>ew});var s=i(12115),o=i(47650),l=i(8039),a=i(95155),u=i(82159);let{getOwnPropertyNames:c,getOwnPropertySymbols:h}=Object,{hasOwnProperty:d}=Object.prototype;function p(r,n){return function(i,s,o){return r(i,s,o)&&n(i,s,o)}}function f(r){return function(n,i,s){if(!n||!i||"object"!=typeof n||"object"!=typeof i)return r(n,i,s);let{cache:o}=s,l=o.get(n),a=o.get(i);if(l&&a)return l===i&&a===n;o.set(n,i),o.set(i,n);let u=r(n,i,s);return o.delete(n),o.delete(i),u}}function m(r){return null!=r?r[Symbol.toStringTag]:void 0}function g(r){return c(r).concat(h(r))}let _=Object.hasOwn||((r,n)=>d.call(r,n));function y(r,n){return r===n||!r&&!n&&r!=r&&n!=n}let k="__v",b="__o",w="_owner",{getOwnPropertyDescriptor:x,keys:v}=Object;function C(r,n){return r.byteLength===n.byteLength&&z(new Uint8Array(r),new Uint8Array(n))}function A(r,n,i){let s=r.length;if(n.length!==s)return!1;for(;s-- >0;)if(!i.equals(r[s],n[s],s,s,r,n,i))return!1;return!0}function E(r,n){return r.byteLength===n.byteLength&&z(new Uint8Array(r.buffer,r.byteOffset,r.byteLength),new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}function S(r,n){return y(r.getTime(),n.getTime())}function M(r,n){return r.name===n.name&&r.message===n.message&&r.cause===n.cause&&r.stack===n.stack}function T(r,n){return r===n}function D(r,n,i){let s,o,l=r.size;if(l!==n.size)return!1;if(!l)return!0;let a=Array(l),u=r.entries(),c=0;for(;(s=u.next())&&!s.done;){let l=n.entries(),u=!1,h=0;for(;(o=l.next())&&!o.done;){if(a[h]){h++;continue}let l=s.value,d=o.value;if(i.equals(l[0],d[0],c,h,r,n,i)&&i.equals(l[1],d[1],l[0],d[0],r,n,i)){u=a[h]=!0;break}h++}if(!u)return!1;c++}return!0}let F=y;function I(r,n,i){let s=v(r),o=s.length;if(v(n).length!==o)return!1;for(;o-- >0;)if(!$(r,n,i,s[o]))return!1;return!0}function L(r,n,i){let s,o,l,a=g(r),u=a.length;if(g(n).length!==u)return!1;for(;u-- >0;)if(!$(r,n,i,s=a[u])||(o=x(r,s),l=x(n,s),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function R(r,n){return y(r.valueOf(),n.valueOf())}function N(r,n){return r.source===n.source&&r.flags===n.flags}function O(r,n,i){let s,o,l=r.size;if(l!==n.size)return!1;if(!l)return!0;let a=Array(l),u=r.values();for(;(s=u.next())&&!s.done;){let l=n.values(),u=!1,c=0;for(;(o=l.next())&&!o.done;){if(!a[c]&&i.equals(s.value,o.value,s.value,o.value,r,n,i)){u=a[c]=!0;break}c++}if(!u)return!1}return!0}function z(r,n){let i=r.byteLength;if(n.byteLength!==i||r.byteOffset!==n.byteOffset)return!1;for(;i-- >0;)if(r[i]!==n[i])return!1;return!0}function P(r,n){return r.hostname===n.hostname&&r.pathname===n.pathname&&r.protocol===n.protocol&&r.port===n.port&&r.hash===n.hash&&r.username===n.username&&r.password===n.password}function $(r,n,i,s){return(s===w||s===b||s===k)&&(!!r.$$typeof||!!n.$$typeof)||_(n,s)&&i.equals(r[s],n[s],s,s,r,n,i)}let B="[object ArrayBuffer]",q="[object Arguments]",j="[object Boolean]",H="[object DataView]",V="[object Date]",U="[object Error]",W="[object Map]",J="[object Number]",K="[object Object]",G="[object RegExp]",Z="[object Set]",X="[object String]",Y={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Q="[object URL]",ee=Object.prototype.toString;function et({areArrayBuffersEqual:r,areArraysEqual:n,areDataViewsEqual:i,areDatesEqual:s,areErrorsEqual:o,areFunctionsEqual:l,areMapsEqual:a,areNumbersEqual:u,areObjectsEqual:c,arePrimitiveWrappersEqual:h,areRegExpsEqual:d,areSetsEqual:p,areTypedArraysEqual:f,areUrlsEqual:g,unknownTagComparators:_}){return function(y,k,b){if(y===k)return!0;if(null==y||null==k)return!1;let w=typeof y;if(w!==typeof k)return!1;if("object"!==w)return"number"===w?u(y,k,b):"function"===w&&l(y,k,b);let x=y.constructor;if(x!==k.constructor)return!1;if(x===Object)return c(y,k,b);if(Array.isArray(y))return n(y,k,b);if(x===Date)return s(y,k,b);if(x===RegExp)return d(y,k,b);if(x===Map)return a(y,k,b);if(x===Set)return p(y,k,b);let v=ee.call(y);if(v===V)return s(y,k,b);if(v===G)return d(y,k,b);if(v===W)return a(y,k,b);if(v===Z)return p(y,k,b);if(v===K)return"function"!=typeof y.then&&"function"!=typeof k.then&&c(y,k,b);if(v===Q)return g(y,k,b);if(v===U)return o(y,k,b);if(v===q)return c(y,k,b);if(Y[v])return f(y,k,b);if(v===B)return r(y,k,b);if(v===H)return i(y,k,b);if(v===j||v===J||v===X)return h(y,k,b);if(_){let r=_[v];if(!r){let n=m(y);n&&(r=_[n])}if(r)return r(y,k,b)}return!1}}function er({circular:r,createCustomConfig:n,strict:i}){let s={areArrayBuffersEqual:C,areArraysEqual:i?L:A,areDataViewsEqual:E,areDatesEqual:S,areErrorsEqual:M,areFunctionsEqual:T,areMapsEqual:i?p(D,L):D,areNumbersEqual:F,areObjectsEqual:i?L:I,arePrimitiveWrappersEqual:R,areRegExpsEqual:N,areSetsEqual:i?p(O,L):O,areTypedArraysEqual:i?p(z,L):z,areUrlsEqual:P,unknownTagComparators:void 0};if(n&&(s=Object.assign({},s,n(s))),r){let r=f(s.areArraysEqual),n=f(s.areMapsEqual),i=f(s.areObjectsEqual),o=f(s.areSetsEqual);s=Object.assign({},s,{areArraysEqual:r,areMapsEqual:n,areObjectsEqual:i,areSetsEqual:o})}return s}function en(r){return function(n,i,s,o,l,a,u){return r(n,i,u)}}function ei({circular:r,comparator:n,createState:i,equals:s,strict:o}){if(i)return function(l,a){let{cache:u=r?new WeakMap:void 0,meta:c}=i();return n(l,a,{cache:u,equals:s,meta:c,strict:o})};if(r)return function(r,i){return n(r,i,{cache:new WeakMap,equals:s,meta:void 0,strict:o})};let l={cache:void 0,equals:s,meta:void 0,strict:o};return function(r,i){return n(r,i,l)}}let es=eo();function eo(r={}){let{circular:n=!1,createInternalComparator:i,createState:s,strict:o=!1}=r,l=et(er(r)),a=i?i(l):en(l);return ei({circular:n,comparator:l,createState:s,equals:a,strict:o})}eo({strict:!0}),eo({circular:!0}),eo({circular:!0,strict:!0}),eo({createInternalComparator:()=>y}),eo({strict:!0,createInternalComparator:()=>y}),eo({circular:!0,createInternalComparator:()=>y}),eo({circular:!0,createInternalComparator:()=>y,strict:!0});var el=i(94577),ea=(...r)=>n=>{r.forEach(r=>{"function"==typeof r?r(n):r&&(r.current=n)})},eu=({contentComponent:r})=>{let n=(0,l.useSyncExternalStore)(r.subscribe,r.getSnapshot,r.getServerSnapshot);return(0,a.jsx)(a.Fragment,{children:Object.values(n)})};function ec(){let r=new Set,n={};return{subscribe:n=>(r.add(n),()=>{r.delete(n)}),getSnapshot:()=>n,getServerSnapshot:()=>n,setRenderer(i,s){n={...n,[i]:o.createPortal(s.reactElement,s.element,i)},r.forEach(r=>r())},removeRenderer(i){let s={...n};delete s[i],n=s,r.forEach(r=>r())}}}var eh=class extends s.Component{constructor(r){super(r),this.editorContentRef=s.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var r;let n=this.props.editor;if(n&&!n.isDestroyed&&(null==(r=n.view.dom)?void 0:r.parentNode)){if(n.contentComponent)return;let r=this.editorContentRef.current;r.append(...n.view.dom.parentNode.childNodes),n.setOptions({element:r}),n.contentComponent=ec(),n.createNodeViews(),n.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var r;let n=this.props.editor;if(n){n.isEditorContentInitialized=!1,n.isDestroyed||n.view.setProps({nodeViews:{}}),n.contentComponent=null;try{if(!(null==(r=n.view.dom)?void 0:r.parentNode))return;let i=document.createElement("div");i.append(...n.view.dom.parentNode.childNodes),n.setOptions({element:i})}catch{}}}render(){let{editor:r,innerRef:n,...i}=this.props;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:ea(n,this.editorContentRef),...i}),(null==r?void 0:r.contentComponent)&&(0,a.jsx)(eu,{contentComponent:r.contentComponent})]})}},ed=(0,s.forwardRef)((r,n)=>{let i=s.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[r.editor]);return s.createElement(eh,{key:i,innerRef:n,...r})}),ep=s.memo(ed),ef="u">typeof window?s.useLayoutEffect:s.useEffect,em=class{constructor(r){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=r,this.lastSnapshot={editor:r,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(r){return this.subscribers.add(r),()=>{this.subscribers.delete(r)}}watch(r){if(this.editor=r,this.editor){let r=()=>{this.transactionNumber+=1,this.subscribers.forEach(r=>r())},n=this.editor;return n.on("transaction",r),()=>{n.off("transaction",r)}}}};function eg(r){var n;let[i]=(0,s.useState)(()=>new em(r.editor)),o=(0,el.useSyncExternalStoreWithSelector)(i.subscribe,i.getSnapshot,i.getServerSnapshot,r.selector,null!=(n=r.equalityFn)?n:es);return ef(()=>i.watch(r.editor),[r.editor,i]),(0,s.useDebugValue)(o),o}var e_=!1,ey="u"<typeof window,ek=ey||!!("u">typeof window&&window.next),eb=class r{constructor(r){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=r,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(r){this.editor=r,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(r=>r())}getInitialEditor(){if(void 0===this.options.current.immediatelyRender){if(ey||ek){if(e_)throw Error("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches.");return null}return this.createEditor()}if(this.options.current.immediatelyRender&&ey&&e_)throw Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){let r={...this.options.current,onBeforeCreate:(...r)=>{var n,i;return null==(i=(n=this.options.current).onBeforeCreate)?void 0:i.call(n,...r)},onBlur:(...r)=>{var n,i;return null==(i=(n=this.options.current).onBlur)?void 0:i.call(n,...r)},onCreate:(...r)=>{var n,i;return null==(i=(n=this.options.current).onCreate)?void 0:i.call(n,...r)},onDestroy:(...r)=>{var n,i;return null==(i=(n=this.options.current).onDestroy)?void 0:i.call(n,...r)},onFocus:(...r)=>{var n,i;return null==(i=(n=this.options.current).onFocus)?void 0:i.call(n,...r)},onSelectionUpdate:(...r)=>{var n,i;return null==(i=(n=this.options.current).onSelectionUpdate)?void 0:i.call(n,...r)},onTransaction:(...r)=>{var n,i;return null==(i=(n=this.options.current).onTransaction)?void 0:i.call(n,...r)},onUpdate:(...r)=>{var n,i;return null==(i=(n=this.options.current).onUpdate)?void 0:i.call(n,...r)},onContentError:(...r)=>{var n,i;return null==(i=(n=this.options.current).onContentError)?void 0:i.call(n,...r)},onDrop:(...r)=>{var n,i;return null==(i=(n=this.options.current).onDrop)?void 0:i.call(n,...r)},onPaste:(...r)=>{var n,i;return null==(i=(n=this.options.current).onPaste)?void 0:i.call(n,...r)},onDelete:(...r)=>{var n,i;return null==(i=(n=this.options.current).onDelete)?void 0:i.call(n,...r)}};return new u.KE(r)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(r){return this.subscriptions.add(r),()=>{this.subscriptions.delete(r)}}static compareOptions(r,n){return Object.keys(r).every(i=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(i)||("extensions"===i&&r.extensions&&n.extensions?r.extensions.length===n.extensions.length&&r.extensions.every((r,i)=>{var s;return r===(null==(s=n.extensions)?void 0:s[i])}):r[i]===n[i]))}onRender(n){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===n.length?r.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(n),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(r){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=r;return}if(this.previousDeps.length===r.length&&this.previousDeps.every((n,i)=>n===r[i]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=r}scheduleDestroy(){let r=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===r){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===r&&this.setEditor(null))},1)}};function ew(r={},n=[]){let i=(0,s.useRef)(r);i.current=r;let[o]=(0,s.useState)(()=>new eb(i)),a=(0,l.useSyncExternalStore)(o.subscribe,o.getEditor,o.getServerSnapshot);return(0,s.useDebugValue)(a),(0,s.useEffect)(o.onRender(n)),eg({editor:a,selector:({transactionNumber:n})=>!1===r.shouldRerenderOnTransaction||void 0===r.shouldRerenderOnTransaction?null:r.immediatelyRender&&0===n?0:n+1}),a}var ex=(0,s.createContext)({editor:null});ex.Consumer;var ev=(0,s.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),eC=()=>(0,s.useContext)(ev);s.forwardRef((r,n)=>{let{onDragStart:i}=eC(),s=r.as||"div";return(0,a.jsx)(s,{...r,ref:n,"data-node-view-wrapper":"",onDragStart:i,style:{whiteSpace:"normal",...r.style}})}),s.createContext({markViewContentRef:()=>{}}),u.Db,u.Yv;var eA=(0,s.createContext)({get editor(){throw Error("useTiptap must be used within a <Tiptap> provider")}});eA.displayName="TiptapContext";var eE=()=>(0,s.useContext)(eA);function eS({editor:r,instance:n,children:i}){let o=null!=r?r:n;if(!o)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let l=(0,s.useMemo)(()=>({editor:o}),[o]),u=(0,s.useMemo)(()=>({editor:o}),[o]);return(0,a.jsx)(ex.Provider,{value:u,children:(0,a.jsx)(eA.Provider,{value:l,children:i})})}function eM({...r}){let{editor:n}=eE();return(0,a.jsx)(ep,{editor:n,...r})}eS.displayName="Tiptap",eM.displayName="Tiptap.Content",Object.assign(eS,{Content:eM})},14066:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{TM:()=>Language,iX:()=>Parser});var C,TRANSFER_BUFFER,LANGUAGE_VERSION,MIN_COMPATIBLE_VERSION,process=__webpack_require__(41463),__defProp=Object.defineProperty,__name=(r,n)=>__defProp(r,"name",{value:n,configurable:!0}),Edit=class{static{__name(this,"Edit")}startPosition;oldEndPosition;newEndPosition;startIndex;oldEndIndex;newEndIndex;constructor({startIndex:r,oldEndIndex:n,newEndIndex:i,startPosition:s,oldEndPosition:o,newEndPosition:l}){this.startIndex=r>>>0,this.oldEndIndex=n>>>0,this.newEndIndex=i>>>0,this.startPosition=s,this.oldEndPosition=o,this.newEndPosition=l}editPoint(r,n){let i=n,s={...r};if(n>=this.oldEndIndex){i=this.newEndIndex+(n-this.oldEndIndex);let o=r.row;s.row=this.newEndPosition.row+(r.row-this.oldEndPosition.row),s.column=o===this.oldEndPosition.row?this.newEndPosition.column+(r.column-this.oldEndPosition.column):r.column}else n>this.startIndex&&(i=this.newEndIndex,s.row=this.newEndPosition.row,s.column=this.newEndPosition.column);return{point:s,index:i}}editRange(r){let n={startIndex:r.startIndex,startPosition:{...r.startPosition},endIndex:r.endIndex,endPosition:{...r.endPosition}};return r.endIndex>=this.oldEndIndex?r.endIndex!==Number.MAX_SAFE_INTEGER&&(n.endIndex=this.newEndIndex+(r.endIndex-this.oldEndIndex),n.endPosition={row:this.newEndPosition.row+(r.endPosition.row-this.oldEndPosition.row),column:r.endPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(r.endPosition.column-this.oldEndPosition.column):r.endPosition.column},n.endIndex<this.newEndIndex&&(n.endIndex=Number.MAX_SAFE_INTEGER,n.endPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):r.endIndex>this.startIndex&&(n.endIndex=this.startIndex,n.endPosition={...this.startPosition}),r.startIndex>=this.oldEndIndex?(n.startIndex=this.newEndIndex+(r.startIndex-this.oldEndIndex),n.startPosition={row:this.newEndPosition.row+(r.startPosition.row-this.oldEndPosition.row),column:r.startPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(r.startPosition.column-this.oldEndPosition.column):r.startPosition.column},n.startIndex<this.newEndIndex&&(n.startIndex=Number.MAX_SAFE_INTEGER,n.startPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):r.startIndex>this.startIndex&&(n.startIndex=this.startIndex,n.startPosition={...this.startPosition}),n}},SIZE_OF_SHORT=2,SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},INTERNAL=Symbol("INTERNAL");function assertInternal(r){if(r!==INTERNAL)throw Error("Illegal constructor")}function isPoint(r){return!!r&&"number"==typeof r.row&&"number"==typeof r.column}function setModule(r){C=r}__name(assertInternal,"assertInternal"),__name(isPoint,"isPoint"),__name(setModule,"setModule");var LookaheadIterator=class{static{__name(this,"LookaheadIterator")}0=0;language;constructor(r,n,i){assertInternal(r),this[0]=n,this.language=i}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}reset(r,n){return!!C._ts_lookahead_iterator_reset(this[0],r[0],n)&&(this.language=r,!0)}resetState(r){return!!C._ts_lookahead_iterator_reset_state(this[0],r)}[Symbol.iterator](){return{next:__name(()=>C._ts_lookahead_iterator_next(this[0])?{done:!1,value:this.currentType}:{done:!0,value:""},"next")}}};function getText(r,n,i,s){let o=i-n,l=r.textCallback(n,s);if(l){for(n+=l.length;n<i;){let i=r.textCallback(n,s);if(i&&i.length>0)n+=i.length,l+=i;else break}n>i&&(l=l.slice(0,o))}return l??""}__name(getText,"getText");var Tree=class _Tree{static{__name(this,"Tree")}0=0;textCallback;language;constructor(r,n,i,s){assertInternal(r),this[0]=n,this.language=i,this.textCallback=s}copy(){return new _Tree(INTERNAL,C._ts_tree_copy(this[0]),this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(r,n){let i=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(i,r,"i32"),marshalPoint(i+SIZE_OF_INT,n),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}edit(r){marshalEdit(r),C._ts_tree_edit_wasm(this[0])}walk(){return this.rootNode.walk()}getChangedRanges(r){if(!(r instanceof _Tree))throw TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],r[0]);let n=C.getValue(TRANSFER_BUFFER,"i32"),i=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=Array(n);if(n>0){let r=i;for(let i=0;i<n;i++)s[i]=unmarshalRange(r),r+=SIZE_OF_RANGE;C._free(i)}return s}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);let r=C.getValue(TRANSFER_BUFFER,"i32"),n=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),i=Array(r);if(r>0){let s=n;for(let n=0;n<r;n++)i[n]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(n)}return i}},TreeCursor=class _TreeCursor{static{__name(this,"TreeCursor")}0=0;1=0;2=0;3=0;tree;constructor(r,n){assertInternal(r),this.tree=n,unmarshalTreeCursor(this)}copy(){let r=new _TreeCursor(INTERNAL,this.tree);return C._ts_tree_cursor_copy_wasm(this.tree[0]),unmarshalTreeCursor(r),r}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);let r=C._ts_tree_cursor_start_index_wasm(this.tree[0]),n=C._ts_tree_cursor_end_index_wasm(this.tree[0]);C._ts_tree_cursor_start_position_wasm(this.tree[0]);let i=unmarshalPoint(TRANSFER_BUFFER);return getText(this.tree,r,n,i)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);let r=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===r}gotoLastChild(){marshalTreeCursor(this);let r=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===r}gotoParent(){marshalTreeCursor(this);let r=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===r}gotoNextSibling(){marshalTreeCursor(this);let r=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===r}gotoPreviousSibling(){marshalTreeCursor(this);let r=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===r}gotoDescendant(r){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],r),unmarshalTreeCursor(this)}gotoFirstChildForIndex(r){marshalTreeCursor(this),C.setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,r,"i32");let n=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===n}gotoFirstChildForPosition(r){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,r);let n=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===n}reset(r){marshalNode(r),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(r){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(r,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],r.tree[0]),unmarshalTreeCursor(this)}},Node=class{static{__name(this,"Node")}0=0;_children;_namedChildren;constructor(r,{id:n,tree:i,startIndex:s,startPosition:o,other:l}){assertInternal(r),this[0]=l,this.id=n,this.tree=i,this.startIndex=s,this.startPosition=o}id;startIndex;startPosition;tree;get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get text(){return getText(this.tree,this.startIndex,this.endIndex,this.startPosition)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}equals(r){return this.tree===r.tree&&this.id===r.id}child(r){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],r),unmarshalNode(this.tree)}namedChild(r){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],r),unmarshalNode(this.tree)}childForFieldId(r){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],r),unmarshalNode(this.tree)}childForFieldName(r){let n=this.tree.language.fields.indexOf(r);return -1!==n?this.childForFieldId(n):null}fieldNameForChild(r){marshalNode(this);let n=C._ts_node_field_name_for_child_wasm(this.tree[0],r);return n?C.AsciiToString(n):null}fieldNameForNamedChild(r){marshalNode(this);let n=C._ts_node_field_name_for_named_child_wasm(this.tree[0],r);return n?C.AsciiToString(n):null}childrenForFieldName(r){let n=this.tree.language.fields.indexOf(r);return -1!==n&&0!==n?this.childrenForFieldId(n):[]}childrenForFieldId(r){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],r);let n=C.getValue(TRANSFER_BUFFER,"i32"),i=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=Array(n);if(n>0){let r=i;for(let i=0;i<n;i++)s[i]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(i)}return s}firstChildForIndex(r){marshalNode(this);let n=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(n,r,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(r){marshalNode(this);let n=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(n,r,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);let r=C.getValue(TRANSFER_BUFFER,"i32"),n=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=Array(r),r>0){let i=n;for(let n=0;n<r;n++)this._children[n]=unmarshalNode(this.tree,i),i+=SIZE_OF_NODE;C._free(n)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);let r=C.getValue(TRANSFER_BUFFER,"i32"),n=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=Array(r),r>0){let i=n;for(let n=0;n<r;n++)this._namedChildren[n]=unmarshalNode(this.tree,i),i+=SIZE_OF_NODE;C._free(n)}}return this._namedChildren}descendantsOfType(r,n=ZERO_POINT,i=ZERO_POINT){Array.isArray(r)||(r=[r]);let s=[],o=this.tree.language.types;for(let n of r)"ERROR"==n&&s.push(65535);for(let n=0,i=o.length;n<i;n++)r.includes(o[n])&&s.push(n);let l=C._malloc(SIZE_OF_INT*s.length);for(let r=0,n=s.length;r<n;r++)C.setValue(l+r*SIZE_OF_INT,s[r],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],l,s.length,n.row,n.column,i.row,i.column);let a=C.getValue(TRANSFER_BUFFER,"i32"),u=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=Array(a);if(a>0){let r=u;for(let n=0;n<a;n++)c[n]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE}return C._free(u),C._free(l),c}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}childWithDescendant(r){return marshalNode(this),marshalNode(r,1),C._ts_node_child_with_descendant_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(r,n=r){if("number"!=typeof r||"number"!=typeof n)throw Error("Arguments must be numbers");marshalNode(this);let i=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(i,r,"i32"),C.setValue(i+SIZE_OF_INT,n,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(r,n=r){if("number"!=typeof r||"number"!=typeof n)throw Error("Arguments must be numbers");marshalNode(this);let i=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(i,r,"i32"),C.setValue(i+SIZE_OF_INT,n,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(r,n=r){if(!isPoint(r)||!isPoint(n))throw Error("Arguments must be {row, column} objects");marshalNode(this);let i=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(i,r),marshalPoint(i+SIZE_OF_POINT,n),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(r,n=r){if(!isPoint(r)||!isPoint(n))throw Error("Arguments must be {row, column} objects");marshalNode(this);let i=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(i,r),marshalPoint(i+SIZE_OF_POINT,n),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}edit(r){if(this.startIndex>=r.oldEndIndex){let n,i;this.startIndex=r.newEndIndex+(this.startIndex-r.oldEndIndex),this.startPosition.row>r.oldEndPosition.row?(n=this.startPosition.row-r.oldEndPosition.row,i=this.startPosition.column):(n=0,i=this.startPosition.column,this.startPosition.column>=r.oldEndPosition.column&&(i=this.startPosition.column-r.oldEndPosition.column)),n>0?(this.startPosition.row+=n,this.startPosition.column=i):this.startPosition.column+=i}else this.startIndex>r.startIndex&&(this.startIndex=r.newEndIndex,this.startPosition.row=r.newEndPosition.row,this.startPosition.column=r.newEndPosition.column)}toString(){marshalNode(this);let r=C._ts_node_to_string_wasm(this.tree[0]),n=C.AsciiToString(r);return C._free(r),n}};function unmarshalCaptures(r,n,i,s,o){for(let l=0,a=o.length;l<a;l++){let a=C.getValue(i,"i32"),u=unmarshalNode(n,i+=SIZE_OF_INT);i+=SIZE_OF_NODE,o[l]={patternIndex:s,name:r.captureNames[a],node:u}}return i}function marshalNode(r,n=0){let i=TRANSFER_BUFFER+n*SIZE_OF_NODE;C.setValue(i,r.id,"i32"),i+=SIZE_OF_INT,C.setValue(i,r.startIndex,"i32"),i+=SIZE_OF_INT,C.setValue(i,r.startPosition.row,"i32"),i+=SIZE_OF_INT,C.setValue(i,r.startPosition.column,"i32"),i+=SIZE_OF_INT,C.setValue(i,r[0],"i32")}function unmarshalNode(r,n=TRANSFER_BUFFER){let i=C.getValue(n,"i32");if(n+=SIZE_OF_INT,0===i)return null;let s=C.getValue(n,"i32");n+=SIZE_OF_INT;let o=C.getValue(n,"i32");n+=SIZE_OF_INT;let l=C.getValue(n,"i32");return n+=SIZE_OF_INT,new Node(INTERNAL,{id:i,tree:r,startIndex:s,startPosition:{row:o,column:l},other:C.getValue(n,"i32")})}function marshalTreeCursor(r,n=TRANSFER_BUFFER){C.setValue(n+0*SIZE_OF_INT,r[0],"i32"),C.setValue(n+ +SIZE_OF_INT,r[1],"i32"),C.setValue(n+2*SIZE_OF_INT,r[2],"i32"),C.setValue(n+3*SIZE_OF_INT,r[3],"i32")}function unmarshalTreeCursor(r){r[0]=C.getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),r[1]=C.getValue(TRANSFER_BUFFER+ +SIZE_OF_INT,"i32"),r[2]=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),r[3]=C.getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(r,n){C.setValue(r,n.row,"i32"),C.setValue(r+SIZE_OF_INT,n.column,"i32")}function unmarshalPoint(r){return{row:C.getValue(r,"i32")>>>0,column:C.getValue(r+SIZE_OF_INT,"i32")>>>0}}function marshalRange(r,n){marshalPoint(r,n.startPosition),marshalPoint(r+=SIZE_OF_POINT,n.endPosition),r+=SIZE_OF_POINT,C.setValue(r,n.startIndex,"i32"),r+=SIZE_OF_INT,C.setValue(r,n.endIndex,"i32")}function unmarshalRange(r){let n={};return n.startPosition=unmarshalPoint(r),n.endPosition=unmarshalPoint(r+=SIZE_OF_POINT),r+=SIZE_OF_POINT,n.startIndex=C.getValue(r,"i32")>>>0,r+=SIZE_OF_INT,n.endIndex=C.getValue(r,"i32")>>>0,n}function marshalEdit(r,n=TRANSFER_BUFFER){marshalPoint(n,r.startPosition),marshalPoint(n+=SIZE_OF_POINT,r.oldEndPosition),marshalPoint(n+=SIZE_OF_POINT,r.newEndPosition),n+=SIZE_OF_POINT,C.setValue(n,r.startIndex,"i32"),n+=SIZE_OF_INT,C.setValue(n,r.oldEndIndex,"i32"),n+=SIZE_OF_INT,C.setValue(n,r.newEndIndex,"i32")}function unmarshalLanguageMetadata(r){let n=C.getValue(r,"i32");return{major_version:n,minor_version:C.getValue(r+=SIZE_OF_INT,"i32"),patch_version:C.getValue(r+=SIZE_OF_INT,"i32")}}__name(unmarshalCaptures,"unmarshalCaptures"),__name(marshalNode,"marshalNode"),__name(unmarshalNode,"unmarshalNode"),__name(marshalTreeCursor,"marshalTreeCursor"),__name(unmarshalTreeCursor,"unmarshalTreeCursor"),__name(marshalPoint,"marshalPoint"),__name(unmarshalPoint,"unmarshalPoint"),__name(marshalRange,"marshalRange"),__name(unmarshalRange,"unmarshalRange"),__name(marshalEdit,"marshalEdit"),__name(unmarshalLanguageMetadata,"unmarshalLanguageMetadata");var LANGUAGE_FUNCTION_REGEX=/^tree_sitter_\w+$/,Language=class _Language{static{__name(this,"Language")}0=0;types;fields;constructor(r,n){assertInternal(r),this[0]=n,this.types=Array(C._ts_language_symbol_count(this[0]));for(let r=0,n=this.types.length;r<n;r++)2>C._ts_language_symbol_type(this[0],r)&&(this.types[r]=C.UTF8ToString(C._ts_language_symbol_name(this[0],r)));this.fields=Array(C._ts_language_field_count(this[0])+1);for(let r=0,n=this.fields.length;r<n;r++){const n=C._ts_language_field_name_for_id(this[0],r);0!==n?this.fields[r]=C.UTF8ToString(n):this.fields[r]=null}}get name(){let r=C._ts_language_name(this[0]);return 0===r?null:C.UTF8ToString(r)}get abiVersion(){return C._ts_language_abi_version(this[0])}get metadata(){return(C._ts_language_metadata_wasm(this[0]),0===C.getValue(TRANSFER_BUFFER,"i32"))?null:unmarshalLanguageMetadata(TRANSFER_BUFFER+SIZE_OF_INT)}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(r){let n=this.fields.indexOf(r);return -1!==n?n:null}fieldNameForId(r){return this.fields[r]??null}idForNodeType(r,n){let i=C.lengthBytesUTF8(r),s=C._malloc(i+1);C.stringToUTF8(r,s,i+1);let o=C._ts_language_symbol_for_name(this[0],s,i,+!!n);return C._free(s),o||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(r){let n=C._ts_language_symbol_name(this[0],r);return n?C.UTF8ToString(n):null}nodeTypeIsNamed(r){return!!C._ts_language_type_is_named_wasm(this[0],r)}nodeTypeIsVisible(r){return!!C._ts_language_type_is_visible_wasm(this[0],r)}get supertypes(){C._ts_language_supertypes_wasm(this[0]);let r=C.getValue(TRANSFER_BUFFER,"i32"),n=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),i=Array(r);if(r>0){let s=n;for(let n=0;n<r;n++)i[n]=C.getValue(s,"i16"),s+=SIZE_OF_SHORT}return i}subtypes(r){C._ts_language_subtypes_wasm(this[0],r);let n=C.getValue(TRANSFER_BUFFER,"i32"),i=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=Array(n);if(n>0){let r=i;for(let i=0;i<n;i++)s[i]=C.getValue(r,"i16"),r+=SIZE_OF_SHORT}return s}nextState(r,n){return C._ts_language_next_state(this[0],r,n)}lookaheadIterator(r){let n=C._ts_lookahead_iterator_new(this[0],r);return n?new LookaheadIterator(INTERNAL,n,this):null}static async load(r){let n;if(r instanceof Uint8Array)n=r;else if(globalThis.process?.versions.node){let i=await __webpack_require__.e(80480).then(__webpack_require__.t.bind(__webpack_require__,80480,19));n=await i.readFile(r)}else{let i=await fetch(r);if(!i.ok){let r=await i.text();throw Error(`Language.load failed with status ${i.status}.
5
5
 
6
6
  ${r}`)}let s=i.clone();try{n=await WebAssembly.compileStreaming(i)}catch(r){console.error("wasm streaming compile failed:",r),console.error("falling back to ArrayBuffer instantiation"),n=new Uint8Array(await s.arrayBuffer())}}let i=await C.loadWebAssemblyModule(n,{loadAsync:!0}),s=Object.keys(i),o=s.find(r=>LANGUAGE_FUNCTION_REGEX.test(r)&&!r.includes("external_scanner_"));if(!o)throw console.log(`Couldn't find language function in Wasm file. Symbols:
7
7
  ${JSON.stringify(s,null,2)}`),Error("Language.load failed: no language function found in Wasm file");return new _Language(INTERNAL,i[o]())}};async function Module2(moduleArg={}){var moduleRtn,readAsync,readBinary,wasmBinary,EXITSTATUS,readyPromiseResolve,readyPromiseReject,wasmMemory,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP64,HEAPU64,HEAP_DATA_VIEW,wasmBinaryFile,functionsInTableMap,_malloc,_calloc,_realloc,_free,_ts_range_edit,_memcmp,_ts_language_symbol_count,_ts_language_state_count,_ts_language_abi_version,_ts_language_name,_ts_language_field_count,_ts_language_next_state,_ts_language_symbol_name,_ts_language_symbol_for_name,_strncmp,_ts_language_symbol_type,_ts_language_field_name_for_id,_ts_lookahead_iterator_new,_ts_lookahead_iterator_delete,_ts_lookahead_iterator_reset_state,_ts_lookahead_iterator_reset,_ts_lookahead_iterator_next,_ts_lookahead_iterator_current_symbol,_ts_point_edit,_ts_parser_delete,_ts_parser_reset,_ts_parser_set_language,_ts_parser_set_included_ranges,_ts_query_new,_ts_query_delete,_iswspace,_iswalnum,_ts_query_pattern_count,_ts_query_capture_count,_ts_query_string_count,_ts_query_capture_name_for_id,_ts_query_capture_quantifier_for_id,_ts_query_string_value_for_id,_ts_query_predicates_for_pattern,_ts_query_start_byte_for_pattern,_ts_query_end_byte_for_pattern,_ts_query_is_pattern_rooted,_ts_query_is_pattern_non_local,_ts_query_is_pattern_guaranteed_at_step,_ts_query_disable_capture,_ts_query_disable_pattern,_ts_tree_copy,_ts_tree_delete,_ts_init,_ts_parser_new_wasm,_ts_parser_enable_logger_wasm,_ts_parser_parse_wasm,_ts_parser_included_ranges_wasm,_ts_language_type_is_named_wasm,_ts_language_type_is_visible_wasm,_ts_language_metadata_wasm,_ts_language_supertypes_wasm,_ts_language_subtypes_wasm,_ts_tree_root_node_wasm,_ts_tree_root_node_with_offset_wasm,_ts_tree_edit_wasm,_ts_tree_included_ranges_wasm,_ts_tree_get_changed_ranges_wasm,_ts_tree_cursor_new_wasm,_ts_tree_cursor_copy_wasm,_ts_tree_cursor_delete_wasm,_ts_tree_cursor_reset_wasm,_ts_tree_cursor_reset_to_wasm,_ts_tree_cursor_goto_first_child_wasm,_ts_tree_cursor_goto_last_child_wasm,_ts_tree_cursor_goto_first_child_for_index_wasm,_ts_tree_cursor_goto_first_child_for_position_wasm,_ts_tree_cursor_goto_next_sibling_wasm,_ts_tree_cursor_goto_previous_sibling_wasm,_ts_tree_cursor_goto_descendant_wasm,_ts_tree_cursor_goto_parent_wasm,_ts_tree_cursor_current_node_type_id_wasm,_ts_tree_cursor_current_node_state_id_wasm,_ts_tree_cursor_current_node_is_named_wasm,_ts_tree_cursor_current_node_is_missing_wasm,_ts_tree_cursor_current_node_id_wasm,_ts_tree_cursor_start_position_wasm,_ts_tree_cursor_end_position_wasm,_ts_tree_cursor_start_index_wasm,_ts_tree_cursor_end_index_wasm,_ts_tree_cursor_current_field_id_wasm,_ts_tree_cursor_current_depth_wasm,_ts_tree_cursor_current_descendant_index_wasm,_ts_tree_cursor_current_node_wasm,_ts_node_symbol_wasm,_ts_node_field_name_for_child_wasm,_ts_node_field_name_for_named_child_wasm,_ts_node_children_by_field_id_wasm,_ts_node_first_child_for_byte_wasm,_ts_node_first_named_child_for_byte_wasm,_ts_node_grammar_symbol_wasm,_ts_node_child_count_wasm,_ts_node_named_child_count_wasm,_ts_node_child_wasm,_ts_node_named_child_wasm,_ts_node_child_by_field_id_wasm,_ts_node_next_sibling_wasm,_ts_node_prev_sibling_wasm,_ts_node_next_named_sibling_wasm,_ts_node_prev_named_sibling_wasm,_ts_node_descendant_count_wasm,_ts_node_parent_wasm,_ts_node_child_with_descendant_wasm,_ts_node_descendant_for_index_wasm,_ts_node_named_descendant_for_index_wasm,_ts_node_descendant_for_position_wasm,_ts_node_named_descendant_for_position_wasm,_ts_node_start_point_wasm,_ts_node_end_point_wasm,_ts_node_start_index_wasm,_ts_node_end_index_wasm,_ts_node_to_string_wasm,_ts_node_children_wasm,_ts_node_named_children_wasm,_ts_node_descendants_of_type_wasm,_ts_node_is_named_wasm,_ts_node_has_changes_wasm,_ts_node_has_error_wasm,_ts_node_is_error_wasm,_ts_node_is_missing_wasm,_ts_node_is_extra_wasm,_ts_node_parse_state_wasm,_ts_node_next_parse_state_wasm,_ts_query_matches_wasm,_ts_query_captures_wasm,_memset,_memcpy,_memmove,_iswalpha,_iswblank,_iswdigit,_iswlower,_iswupper,_iswxdigit,_memchr,_strlen,_strcmp,_strncat,_strncpy,_towlower,_towupper,_setThrew,__emscripten_stack_restore,__emscripten_stack_alloc,_emscripten_stack_get_current,___wasm_apply_data_relocs,wasmExports,Module=moduleArg,ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="u">typeof WorkerGlobalScope,ENVIRONMENT_IS_NODE="object"==typeof process&&void 0;if(ENVIRONMENT_IS_NODE){let{createRequire}=await __webpack_require__.e(86358).then(__webpack_require__.t.bind(__webpack_require__,86358,19));var require=createRequire("file:///home/runner/work/cockpit/cockpit/node_modules/web-tree-sitter/web-tree-sitter.js")}Module.currentQueryProgressCallback=null,Module.currentProgressCallback=null,Module.currentLogCallback=null,Module.currentParseCallback=null;var arguments_=[],thisProgram="./this.program",quit_=__name((r,n)=>{throw n},"quit_"),_scriptName="file:///home/runner/work/cockpit/cockpit/node_modules/web-tree-sitter/web-tree-sitter.js",scriptDirectory="";function locateFile(r){return Module.locateFile?Module.locateFile(r,scriptDirectory):scriptDirectory+r}if(__name(locateFile,"locateFile"),ENVIRONMENT_IS_NODE){var fs=require("fs");_scriptName.startsWith("file:")&&(scriptDirectory=require("path").dirname(require("url").fileURLToPath(_scriptName))+"/"),readBinary=__name(r=>(r=isFileURI(r)?new URL(r):r,fs.readFileSync(r)),"readBinary"),readAsync=__name(async(r,n=!0)=>(r=isFileURI(r)?new URL(r):r,fs.readFileSync(r,n?void 0:"utf8")),"readAsync"),process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),quit_=__name((r,n)=>{throw process.exitCode=r,n},"quit_")}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){try{scriptDirectory=new URL(".",_scriptName).href}catch{}ENVIRONMENT_IS_WORKER&&(readBinary=__name(r=>{var n=new XMLHttpRequest;return n.open("GET",r,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)},"readBinary")),readAsync=__name(async r=>{if(isFileURI(r))return new Promise((n,i)=>{var s=new XMLHttpRequest;s.open("GET",r,!0),s.responseType="arraybuffer",s.onload=()=>{200==s.status||0==s.status&&s.response?n(s.response):i(s.status)},s.onerror=i,s.send(null)});var n=await fetch(r,{credentials:"same-origin"});if(n.ok)return n.arrayBuffer();throw Error(n.status+" : "+n.url)},"readAsync")}var out=console.log.bind(console),err=console.error.bind(console),dynamicLibraries=[],ABORT=!1,isFileURI=__name(r=>r.startsWith("file://"),"isFileURI"),runtimeInitialized=!1;function updateMemoryViews(){var r=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(r),Module.HEAP16=HEAP16=new Int16Array(r),Module.HEAPU8=HEAPU8=new Uint8Array(r),Module.HEAPU16=HEAPU16=new Uint16Array(r),Module.HEAP32=HEAP32=new Int32Array(r),Module.HEAPU32=HEAPU32=new Uint32Array(r),Module.HEAPF32=HEAPF32=new Float32Array(r),Module.HEAPF64=HEAPF64=new Float64Array(r),Module.HEAP64=HEAP64=new BigInt64Array(r),Module.HEAPU64=HEAPU64=new BigUint64Array(r),Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(r),LE_HEAP_UPDATE()}function initMemory(){if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var r=Module.INITIAL_MEMORY||0x2000000;wasmMemory=new WebAssembly.Memory({initial:r/65536,maximum:32768})}updateMemoryViews()}__name(updateMemoryViews,"updateMemoryViews"),__name(initMemory,"initMemory");var __RELOC_FUNCS__=[];function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(onPreRuns)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),wasmExports.__wasm_call_ctors(),callRuntimeCallbacks(onPostCtors)}function preMain(){}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(onPostRuns)}function abort(r){Module.onAbort?.(r),err(r="Aborted("+r+")"),ABORT=!0,r+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(r);throw readyPromiseReject?.(n),n}function findWasmBinary(){return Module.locateFile?locateFile("web-tree-sitter.wasm"):new __webpack_require__.U(__webpack_require__(76022)).href}function getBinarySync(r){if(r==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(r);throw"both async and sync fetching of the wasm failed"}async function getWasmBinary(r){if(!wasmBinary)try{var n=await readAsync(r);return new Uint8Array(n)}catch{}return getBinarySync(r)}async function instantiateArrayBuffer(r,n){try{var i=await getWasmBinary(r);return await WebAssembly.instantiate(i,n)}catch(r){err(`failed to asynchronously prepare wasm: ${r}`),abort(r)}}async function instantiateAsync(r,n,i){if(!r&&!isFileURI(n)&&!ENVIRONMENT_IS_NODE)try{var s=fetch(n,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(s,i)}catch(r){err(`wasm streaming compile failed: ${r}`),err("falling back to ArrayBuffer instantiation")}return instantiateArrayBuffer(n,i)}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}async function createWasm(){function r(r,n){wasmExports=relocateExports(wasmExports=r.exports,1024);var i=getDylinkMetadata(n);return i.neededDynlibs&&(dynamicLibraries=i.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),assignWasmExports(wasmExports),wasmExports}function n(n){return r(n.instance,n.module)}__name(r,"receiveInstance"),__name(n,"receiveInstantiationResult");var i=getWasmImports();return Module.instantiateWasm?new Promise((n,s)=>{Module.instantiateWasm(i,(i,s)=>{n(r(i,s))})}):(wasmBinaryFile??=findWasmBinary(),n(await instantiateAsync(wasmBinary,wasmBinaryFile,i)))}__name(preRun,"preRun"),__name(initRuntime,"initRuntime"),__name(preMain,"preMain"),__name(postRun,"postRun"),__name(abort,"abort"),__name(findWasmBinary,"findWasmBinary"),__name(getBinarySync,"getBinarySync"),__name(getWasmBinary,"getWasmBinary"),__name(instantiateArrayBuffer,"instantiateArrayBuffer"),__name(instantiateAsync,"instantiateAsync"),__name(getWasmImports,"getWasmImports"),__name(createWasm,"createWasm");class ExitStatus{static{__name(this,"ExitStatus")}name="ExitStatus";constructor(r){this.message=`Program terminated with exit(${r})`,this.status=r}}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(r,n){var i=GOT[n];return i||(i=GOT[n]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(n)||(i.required=!0),i}},LE_ATOMICS_NATIVE_BYTE_ORDER=[],LE_HEAP_LOAD_F32=__name(r=>HEAP_DATA_VIEW.getFloat32(r,!0),"LE_HEAP_LOAD_F32"),LE_HEAP_LOAD_F64=__name(r=>HEAP_DATA_VIEW.getFloat64(r,!0),"LE_HEAP_LOAD_F64"),LE_HEAP_LOAD_I16=__name(r=>HEAP_DATA_VIEW.getInt16(r,!0),"LE_HEAP_LOAD_I16"),LE_HEAP_LOAD_I32=__name(r=>HEAP_DATA_VIEW.getInt32(r,!0),"LE_HEAP_LOAD_I32"),LE_HEAP_LOAD_I64=__name(r=>HEAP_DATA_VIEW.getBigInt64(r,!0),"LE_HEAP_LOAD_I64"),LE_HEAP_LOAD_U32=__name(r=>HEAP_DATA_VIEW.getUint32(r,!0),"LE_HEAP_LOAD_U32"),LE_HEAP_STORE_F32=__name((r,n)=>HEAP_DATA_VIEW.setFloat32(r,n,!0),"LE_HEAP_STORE_F32"),LE_HEAP_STORE_F64=__name((r,n)=>HEAP_DATA_VIEW.setFloat64(r,n,!0),"LE_HEAP_STORE_F64"),LE_HEAP_STORE_I16=__name((r,n)=>HEAP_DATA_VIEW.setInt16(r,n,!0),"LE_HEAP_STORE_I16"),LE_HEAP_STORE_I32=__name((r,n)=>HEAP_DATA_VIEW.setInt32(r,n,!0),"LE_HEAP_STORE_I32"),LE_HEAP_STORE_I64=__name((r,n)=>HEAP_DATA_VIEW.setBigInt64(r,n,!0),"LE_HEAP_STORE_I64"),LE_HEAP_STORE_U32=__name((r,n)=>HEAP_DATA_VIEW.setUint32(r,n,!0),"LE_HEAP_STORE_U32"),callRuntimeCallbacks=__name(r=>{for(;r.length>0;)r.shift()(Module)},"callRuntimeCallbacks"),onPostRuns=[],addOnPostRun=__name(r=>onPostRuns.push(r),"addOnPostRun"),onPreRuns=[],addOnPreRun=__name(r=>onPreRuns.push(r),"addOnPreRun"),UTF8Decoder="u">typeof TextDecoder?new TextDecoder:void 0,findStringEnd=__name((r,n,i,s)=>{var o=n+i;if(s)return o;for(;r[n]&&!(n>=o);)++n;return n},"findStringEnd"),UTF8ArrayToString=__name((r,n=0,i,s)=>{var o=findStringEnd(r,n,i,s);if(o-n>16&&r.buffer&&UTF8Decoder)return UTF8Decoder.decode(r.subarray(n,o));for(var l="";n<o;){var a=r[n++];if(!(128&a)){l+=String.fromCharCode(a);continue}var u=63&r[n++];if((224&a)==192){l+=String.fromCharCode((31&a)<<6|u);continue}var c=63&r[n++];if((a=(240&a)==224?(15&a)<<12|u<<6|c:(7&a)<<18|u<<12|c<<6|63&r[n++])<65536)l+=String.fromCharCode(a);else{var h=a-65536;l+=String.fromCharCode(55296|h>>10,56320|1023&h)}}return l},"UTF8ArrayToString"),getDylinkMetadata=__name(r=>{var n=0,i=0;function s(){return r[n++]}function o(){for(var i=0,s=1;;){var o=r[n++];if(i+=(127&o)*s,s*=128,!(128&o))break}return i}function l(){var i=o();return n+=i,UTF8ArrayToString(r,n-i,i)}function a(){for(var r=o(),n=[];r--;)n.push(l());return n}function u(r,n){if(r)throw Error(n)}if(__name(s,"getU8"),__name(o,"getLEB"),__name(l,"getString"),__name(a,"getStringList"),__name(u,"failIf"),r instanceof WebAssembly.Module){var c=WebAssembly.Module.customSections(r,"dylink.0");u(0===c.length,"need dylink section"),i=(r=new Uint8Array(c[0])).length}else{var h=new Uint32Array(new Uint8Array(r.subarray(0,24)).buffer);u(0x6d736100!=h[0]&&6386541!=h[0],"need to see wasm magic number"),u(0!==r[8],"need the dylink section to be first"),n=9;var d=o();i=n+d,u("dylink.0"!==l())}for(var p={neededDynlibs:[],tlsExports:new Set,weakImports:new Set,runtimePaths:[]},f=1,m=2,g=3,_=4,y=5,k=256,b=3,w=1;n<i;){var x=s(),v=o();if(x===f)p.memorySize=o(),p.memoryAlign=o(),p.tableSize=o(),p.tableAlign=o();else if(x===m)p.neededDynlibs=a();else if(x===g)for(var C=o();C--;){var A=l(),E=o();E&k&&p.tlsExports.add(A)}else if(x===_)for(var C=o();C--;){l();var A=l(),E=o();(E&b)==w&&p.weakImports.add(A)}else x===y?p.runtimePaths=a():n+=v}return p},"getDylinkMetadata");function getValue(r,n="i8"){switch(n.endsWith("*")&&(n="*"),n){case"i1":case"i8":return HEAP8[r];case"i16":return LE_HEAP_LOAD_I16((r>>1)*2);case"i32":return LE_HEAP_LOAD_I32((r>>2)*4);case"i64":return LE_HEAP_LOAD_I64((r>>3)*8);case"float":return LE_HEAP_LOAD_F32((r>>2)*4);case"double":return LE_HEAP_LOAD_F64((r>>3)*8);case"*":return LE_HEAP_LOAD_U32((r>>2)*4);default:abort(`invalid type for getValue: ${n}`)}}__name(getValue,"getValue");var newDSO=__name((r,n,i)=>{var s={refcount:1/0,name:r,exports:i,global:!0};return LDSO.loadedLibsByName[r]=s,void 0!=n&&(LDSO.loadedLibsByHandle[n]=s),s},"newDSO"),LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78240,alignMemory=__name((r,n)=>Math.ceil(r/n)*n,"alignMemory"),getMemory=__name(r=>{if(runtimeInitialized)return _calloc(r,1);var n=___heap_base,i=n+alignMemory(r,16);return ___heap_base=i,GOT.__heap_base.value=i,n},"getMemory"),isInternalSym=__name(r=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(r)||r.startsWith("__em_js__"),"isInternalSym"),uleb128EncodeWithLen=__name(r=>{let n=r.length;return[n%128|128,n>>7,...r]},"uleb128EncodeWithLen"),wasmTypeCodes={i:127,p:127,j:126,f:125,d:124,e:111},generateTypePack=__name(r=>uleb128EncodeWithLen(Array.from(r,r=>wasmTypeCodes[r])),"generateTypePack"),convertJsFunctionToWasm=__name((r,n)=>{var i=Uint8Array.of(0,97,115,109,1,0,0,0,1,...uleb128EncodeWithLen([1,96,...generateTypePack(n.slice(1)),...generateTypePack("v"===n[0]?"":n[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),s=new WebAssembly.Module(i);return new WebAssembly.Instance(s,{e:{f:r}}).exports.f},"convertJsFunctionToWasm"),wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:31,element:"anyfunc"}),getWasmTableEntry=__name(r=>{var n=wasmTableMirror[r];return n||(wasmTableMirror[r]=n=wasmTable.get(r)),n},"getWasmTableEntry"),updateTableMap=__name((r,n)=>{if(functionsInTableMap)for(var i=r;i<r+n;i++){var s=getWasmTableEntry(i);s&&functionsInTableMap.set(s,i)}},"updateTableMap"),getFunctionAddress=__name(r=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(r)||0),"getFunctionAddress"),freeTableIndexes=[],getEmptyTableSlot=__name(()=>freeTableIndexes.length?freeTableIndexes.pop():wasmTable.grow(1),"getEmptyTableSlot"),setWasmTableEntry=__name((r,n)=>{wasmTable.set(r,n),wasmTableMirror[r]=wasmTable.get(r)},"setWasmTableEntry"),addFunction=__name((r,n)=>{var i=getFunctionAddress(r);if(i)return i;var s=getEmptyTableSlot();try{setWasmTableEntry(s,r)}catch(i){if(!(i instanceof TypeError))throw i;setWasmTableEntry(s,convertJsFunctionToWasm(r,n))}return functionsInTableMap.set(r,s),s},"addFunction"),updateGOT=__name((r,n)=>{for(var i in r)if(!isInternalSym(i)){var s=r[i];GOT[i]||=new WebAssembly.Global({value:"i32",mutable:!0}),(n||0==GOT[i].value)&&("function"==typeof s?GOT[i].value=addFunction(s):"number"==typeof s?GOT[i].value=s:err(`unhandled export type for '${i}': ${typeof s}`))}},"updateGOT"),relocateExports=__name((r,n,i)=>{var s={};for(var o in r){var l=r[o];"object"==typeof l&&(l=l.value),"number"==typeof l&&(l+=n),s[o]=l}return updateGOT(s,i),s},"relocateExports"),isSymbolDefined=__name(r=>{var n=wasmImports[r];return!!n&&!n.stub},"isSymbolDefined"),dynCall=__name((r,n,i=[],s=!1)=>{var o=getWasmTableEntry(n)(...i);function l(r){return r}return __name(l,"convert"),l(o)},"dynCall"),stackSave=__name(()=>_emscripten_stack_get_current(),"stackSave"),stackRestore=__name(r=>__emscripten_stack_restore(r),"stackRestore"),createInvokeFunction=__name(r=>(n,...i)=>{var s=stackSave();try{return dynCall(r,n,i)}catch(n){if(stackRestore(s),n!==n+0)throw n;if(_setThrew(1,0),"j"==r[0])return 0n}},"createInvokeFunction"),resolveGlobalSymbol=__name((r,n=!1)=>{var i;return isSymbolDefined(r)?i=wasmImports[r]:r.startsWith("invoke_")&&(i=wasmImports[r]=createInvokeFunction(r.split("_")[1])),{sym:i,name:r}},"resolveGlobalSymbol"),onPostCtors=[],addOnPostCtor=__name(r=>onPostCtors.push(r),"addOnPostCtor"),UTF8ToString=__name((r,n,i)=>r?UTF8ArrayToString(HEAPU8,r,n,i):"","UTF8ToString"),loadWebAssemblyModule=__name((binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var moduleExports,memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;function resolveSymbol(r){var n=resolveGlobalSymbol(r).sym;return!n&&localScope&&(n=localScope[r]),n||(n=moduleExports[r]),n}handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32((handle+12>>2)*4,memoryBase),LE_HEAP_STORE_I32((handle+16>>2)*4,metadata.memorySize),LE_HEAP_STORE_U32((handle+20>>2)*4,tableBase),LE_HEAP_STORE_I32((handle+24>>2)*4,metadata.tableSize)),metadata.tableSize&&wasmTable.grow(metadata.tableSize),__name(resolveSymbol,"resolveSymbol");var proxyHandler={get(r,n){switch(n){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(n in wasmImports&&!wasmImports[n].stub){var i;return wasmImports[n]}return n in r||(r[n]=(...r)=>(i||=resolveSymbol(n))(...r)),r[n]}},proxy=new Proxy({},proxyHandler);currentModuleWeakSymbols=metadata.weakImports;var info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16;arity++)if(-1!=body.indexOf("$"+arity))args.push("$"+arity);else break;args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),__name(addEmAsm,"addEmAsm"),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(",")){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in __name(addEmJs,"addEmJs"),moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():addOnPostCtor(init)),moduleExports}if(__name(postInstantiation,"postInstantiation"),flags.loadAsync)return(async()=>{var r;return binary instanceof WebAssembly.Module?r=new WebAssembly.Instance(binary,info):{module:binary,instance:r}=await WebAssembly.instantiate(binary,info),postInstantiation(binary,r)})();var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return(__name(loadModule,"loadModule"),flags={...flags,rpath:{parentLibPath:libName,paths:metadata.runtimePaths}},flags.loadAsync)?metadata.neededDynlibs.reduce((r,n)=>r.then(()=>loadDynamicLibrary(n,flags,localScope)),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach(r=>loadDynamicLibrary(r,flags,localScope)),loadModule())},"loadWebAssemblyModule"),mergeLibSymbols=__name((r,n)=>{for(var[i,s]of Object.entries(r)){let r=__name(r=>{isSymbolDefined(r)||(wasmImports[r]=s)},"setImport");r(i);let n="__main_argc_argv";"main"==i&&r(n),i==n&&r("main")}},"mergeLibSymbols"),asyncLoad=__name(async r=>new Uint8Array(await readAsync(r)),"asyncLoad");function loadDynamicLibrary(r,n={global:!0,nodelete:!0},i,s){var o=LDSO.loadedLibsByName[r];if(o)return n.global?o.global||(o.global=!0,mergeLibSymbols(o.exports,r)):i&&Object.assign(i,o.exports),n.nodelete&&o.refcount!==1/0&&(o.refcount=1/0),o.refcount++,s&&(LDSO.loadedLibsByHandle[s]=o),!n.loadAsync||Promise.resolve(!0);function l(){if(s){var i=LE_HEAP_LOAD_U32((s+28>>2)*4),o=LE_HEAP_LOAD_U32((s+32>>2)*4);if(i&&o){var l=HEAP8.slice(i,i+o);return n.loadAsync?Promise.resolve(l):l}}var a=locateFile(r);if(n.loadAsync)return asyncLoad(a);if(!readBinary)throw Error(`${a}: file not found, and synchronous loading of external files is not available`);return readBinary(a)}function a(){return n.loadAsync?l().then(o=>loadWebAssemblyModule(o,n,r,i,s)):loadWebAssemblyModule(l(),n,r,i,s)}function u(n){o.global?mergeLibSymbols(n,r):i&&Object.assign(i,n),o.exports=n}return((o=newDSO(r,s,"loading")).refcount=n.nodelete?1/0:1,o.global=n.global,__name(l,"loadLibData"),__name(a,"getExports"),__name(u,"moduleLoaded"),n.loadAsync)?a().then(r=>(u(r),!0)):(u(a()),!0)}__name(loadDynamicLibrary,"loadDynamicLibrary");var reportUndefinedSymbols=__name(()=>{for(var[r,n]of Object.entries(GOT))if(0==n.value){var i=resolveGlobalSymbol(r,!0).sym;if(!i&&!n.required)continue;if("function"==typeof i)n.value=addFunction(i,i.sig);else if("number"==typeof i)n.value=i;else throw Error(`bad export type for '${r}': ${typeof i}`)}},"reportUndefinedSymbols"),runDependencies=0,dependenciesFulfilled=null,removeRunDependency=__name(r=>{if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&dependenciesFulfilled){var n=dependenciesFulfilled;dependenciesFulfilled=null,n()}},"removeRunDependency"),addRunDependency=__name(r=>{runDependencies++,Module.monitorRunDependencies?.(runDependencies)},"addRunDependency"),loadDylibs=__name(async()=>{if(!dynamicLibraries.length)return void reportUndefinedSymbols();for(var r of(addRunDependency("loadDylibs"),dynamicLibraries))await loadDynamicLibrary(r,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0});reportUndefinedSymbols(),removeRunDependency("loadDylibs")},"loadDylibs"),noExitRuntime=!0;function setValue(r,n,i="i8"){switch(i.endsWith("*")&&(i="*"),i){case"i1":case"i8":HEAP8[r]=n;break;case"i16":LE_HEAP_STORE_I16((r>>1)*2,n);break;case"i32":LE_HEAP_STORE_I32((r>>2)*4,n);break;case"i64":LE_HEAP_STORE_I64((r>>3)*8,BigInt(n));break;case"float":LE_HEAP_STORE_F32((r>>2)*4,n);break;case"double":LE_HEAP_STORE_F64((r>>3)*8,n);break;case"*":LE_HEAP_STORE_U32((r>>2)*4,n);break;default:abort(`invalid type for setValue: ${i}`)}}__name(setValue,"setValue");var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_high=78240,___stack_low=12704,___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78240),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=__name(()=>abort(""),"__abort_js");__abort_js.sig="v";var getHeapMax=__name(()=>0x80000000,"getHeapMax"),growMemory=__name(r=>{var n=(r-wasmMemory.buffer.byteLength+65535)/65536|0;try{return wasmMemory.grow(n),updateMemoryViews(),1}catch(r){}},"growMemory"),_emscripten_resize_heap=__name(r=>{var n=HEAPU8.length;r>>>=0;var i=getHeapMax();if(r>i)return!1;for(var s=1;s<=4;s*=2){var o=n*(1+.2/s);if(o=Math.min(o,r+0x6000000),growMemory(Math.min(i,alignMemory(Math.max(r,o),65536))))return!0}return!1},"_emscripten_resize_heap");_emscripten_resize_heap.sig="ip";var _fd_close=__name(r=>52,"_fd_close");_fd_close.sig="ii";var INT53_MAX=0x20000000000000,INT53_MIN=-0x20000000000000,bigintToI53Checked=__name(r=>r<INT53_MIN||r>INT53_MAX?NaN:Number(r),"bigintToI53Checked");function _fd_seek(r,n,i,s){return n=bigintToI53Checked(n),70}__name(_fd_seek,"_fd_seek"),_fd_seek.sig="iijip";var printCharBuffers=[null,[],[]],printChar=__name((r,n)=>{var i=printCharBuffers[r];0===n||10===n?((1===r?out:err)(UTF8ArrayToString(i)),i.length=0):i.push(n)},"printChar"),_fd_write=__name((r,n,i,s)=>{for(var o=0,l=0;l<i;l++){var a=LE_HEAP_LOAD_U32((n>>2)*4),u=LE_HEAP_LOAD_U32((n+4>>2)*4);n+=8;for(var c=0;c<u;c++)printChar(r,HEAPU8[a+c]);o+=u}return LE_HEAP_STORE_U32((s>>2)*4,o),0},"_fd_write");function _tree_sitter_log_callback(r,n){if(Module.currentLogCallback){let i=UTF8ToString(n);Module.currentLogCallback(i,0!==r)}}function _tree_sitter_parse_callback(r,n,i,s,o){let l=10240,a=Module.currentParseCallback(n,{row:i,column:s});"string"==typeof a?(setValue(o,a.length,"i32"),stringToUTF16(a,r,l)):setValue(o,0,"i32")}function _tree_sitter_progress_callback(r,n){return!!Module.currentProgressCallback&&Module.currentProgressCallback({currentOffset:r,hasError:n})}function _tree_sitter_query_progress_callback(r){return!!Module.currentQueryProgressCallback&&Module.currentQueryProgressCallback({currentOffset:r})}_fd_write.sig="iippp",__name(_tree_sitter_log_callback,"_tree_sitter_log_callback"),__name(_tree_sitter_parse_callback,"_tree_sitter_parse_callback"),__name(_tree_sitter_progress_callback,"_tree_sitter_progress_callback"),__name(_tree_sitter_query_progress_callback,"_tree_sitter_query_progress_callback");var runtimeKeepaliveCounter=0,keepRuntimeAlive=__name(()=>noExitRuntime||runtimeKeepaliveCounter>0,"keepRuntimeAlive"),_proc_exit=__name(r=>{EXITSTATUS=r,keepRuntimeAlive()||(Module.onExit?.(r),ABORT=!0),quit_(r,new ExitStatus(r))},"_proc_exit");_proc_exit.sig="vi";var exitJS=__name((r,n)=>{EXITSTATUS=r,_proc_exit(r)},"exitJS"),handleException=__name(r=>{if(r instanceof ExitStatus||"unwind"==r)return EXITSTATUS;quit_(1,r)},"handleException"),lengthBytesUTF8=__name(r=>{for(var n=0,i=0;i<r.length;++i){var s=r.charCodeAt(i);s<=127?n++:s<=2047?n+=2:s>=55296&&s<=57343?(n+=4,++i):n+=3}return n},"lengthBytesUTF8"),stringToUTF8Array=__name((r,n,i,s)=>{if(!(s>0))return 0;for(var o=i,l=i+s-1,a=0;a<r.length;++a){var u=r.codePointAt(a);if(u<=127){if(i>=l)break;n[i++]=u}else if(u<=2047){if(i+1>=l)break;n[i++]=192|u>>6,n[i++]=128|63&u}else if(u<=65535){if(i+2>=l)break;n[i++]=224|u>>12,n[i++]=128|u>>6&63,n[i++]=128|63&u}else{if(i+3>=l)break;n[i++]=240|u>>18,n[i++]=128|u>>12&63,n[i++]=128|u>>6&63,n[i++]=128|63&u,a++}}return n[i]=0,i-o},"stringToUTF8Array"),stringToUTF8=__name((r,n,i)=>stringToUTF8Array(r,HEAPU8,n,i),"stringToUTF8"),stackAlloc=__name(r=>__emscripten_stack_alloc(r),"stackAlloc"),stringToUTF8OnStack=__name(r=>{var n=lengthBytesUTF8(r)+1,i=stackAlloc(n);return stringToUTF8(r,i,n),i},"stringToUTF8OnStack"),AsciiToString=__name(r=>{for(var n="";;){var i=HEAPU8[r++];if(!i)return n;n+=String.fromCharCode(i)}},"AsciiToString"),stringToUTF16=__name((r,n,i)=>{if((i??=0x7fffffff)<2)return 0;for(var s=n,o=(i-=2)<2*r.length?i/2:r.length,l=0;l<o;++l)LE_HEAP_STORE_I16((n>>1)*2,r.charCodeAt(l)),n+=2;return LE_HEAP_STORE_I16((n>>1)*2,0),n-s},"stringToUTF16");function LE_HEAP_UPDATE(){HEAPU16.unsigned=r=>65535&r,HEAPU32.unsigned=r=>r>>>0}if(LE_ATOMICS_NATIVE_BYTE_ORDER=1===new Int8Array(new Int16Array([1]).buffer)[0]?[r=>r,r=>r,void 0,r=>r]:[r=>r,r=>((65280&r)<<8|(255&r)<<24)>>16,void 0,r=>r>>24&255|r>>8&65280|(65280&r)<<8|(255&r)<<24],__name(LE_HEAP_UPDATE,"LE_HEAP_UPDATE"),initMemory(),Module.noExitRuntime&&(noExitRuntime=Module.noExitRuntime),Module.print&&(out=Module.print),Module.printErr&&(err=Module.printErr),Module.dynamicLibraries&&(dynamicLibraries=Module.dynamicLibraries),Module.wasmBinary&&(wasmBinary=Module.wasmBinary),Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.shift()();Module.setValue=setValue,Module.getValue=getValue,Module.UTF8ToString=UTF8ToString,Module.stringToUTF8=stringToUTF8,Module.lengthBytesUTF8=lengthBytesUTF8,Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,Module.loadWebAssemblyModule=loadWebAssemblyModule,Module.LE_HEAP_STORE_I64=LE_HEAP_STORE_I64;var ASM_CONSTS={};function assignWasmExports(r){Module._malloc=_malloc=r.malloc,Module._calloc=_calloc=r.calloc,Module._realloc=_realloc=r.realloc,Module._free=_free=r.free,Module._ts_range_edit=_ts_range_edit=r.ts_range_edit,Module._memcmp=_memcmp=r.memcmp,Module._ts_language_symbol_count=_ts_language_symbol_count=r.ts_language_symbol_count,Module._ts_language_state_count=_ts_language_state_count=r.ts_language_state_count,Module._ts_language_abi_version=_ts_language_abi_version=r.ts_language_abi_version,Module._ts_language_name=_ts_language_name=r.ts_language_name,Module._ts_language_field_count=_ts_language_field_count=r.ts_language_field_count,Module._ts_language_next_state=_ts_language_next_state=r.ts_language_next_state,Module._ts_language_symbol_name=_ts_language_symbol_name=r.ts_language_symbol_name,Module._ts_language_symbol_for_name=_ts_language_symbol_for_name=r.ts_language_symbol_for_name,Module._strncmp=_strncmp=r.strncmp,Module._ts_language_symbol_type=_ts_language_symbol_type=r.ts_language_symbol_type,Module._ts_language_field_name_for_id=_ts_language_field_name_for_id=r.ts_language_field_name_for_id,Module._ts_lookahead_iterator_new=_ts_lookahead_iterator_new=r.ts_lookahead_iterator_new,Module._ts_lookahead_iterator_delete=_ts_lookahead_iterator_delete=r.ts_lookahead_iterator_delete,Module._ts_lookahead_iterator_reset_state=_ts_lookahead_iterator_reset_state=r.ts_lookahead_iterator_reset_state,Module._ts_lookahead_iterator_reset=_ts_lookahead_iterator_reset=r.ts_lookahead_iterator_reset,Module._ts_lookahead_iterator_next=_ts_lookahead_iterator_next=r.ts_lookahead_iterator_next,Module._ts_lookahead_iterator_current_symbol=_ts_lookahead_iterator_current_symbol=r.ts_lookahead_iterator_current_symbol,Module._ts_point_edit=_ts_point_edit=r.ts_point_edit,Module._ts_parser_delete=_ts_parser_delete=r.ts_parser_delete,Module._ts_parser_reset=_ts_parser_reset=r.ts_parser_reset,Module._ts_parser_set_language=_ts_parser_set_language=r.ts_parser_set_language,Module._ts_parser_set_included_ranges=_ts_parser_set_included_ranges=r.ts_parser_set_included_ranges,Module._ts_query_new=_ts_query_new=r.ts_query_new,Module._ts_query_delete=_ts_query_delete=r.ts_query_delete,Module._iswspace=_iswspace=r.iswspace,Module._iswalnum=_iswalnum=r.iswalnum,Module._ts_query_pattern_count=_ts_query_pattern_count=r.ts_query_pattern_count,Module._ts_query_capture_count=_ts_query_capture_count=r.ts_query_capture_count,Module._ts_query_string_count=_ts_query_string_count=r.ts_query_string_count,Module._ts_query_capture_name_for_id=_ts_query_capture_name_for_id=r.ts_query_capture_name_for_id,Module._ts_query_capture_quantifier_for_id=_ts_query_capture_quantifier_for_id=r.ts_query_capture_quantifier_for_id,Module._ts_query_string_value_for_id=_ts_query_string_value_for_id=r.ts_query_string_value_for_id,Module._ts_query_predicates_for_pattern=_ts_query_predicates_for_pattern=r.ts_query_predicates_for_pattern,Module._ts_query_start_byte_for_pattern=_ts_query_start_byte_for_pattern=r.ts_query_start_byte_for_pattern,Module._ts_query_end_byte_for_pattern=_ts_query_end_byte_for_pattern=r.ts_query_end_byte_for_pattern,Module._ts_query_is_pattern_rooted=_ts_query_is_pattern_rooted=r.ts_query_is_pattern_rooted,Module._ts_query_is_pattern_non_local=_ts_query_is_pattern_non_local=r.ts_query_is_pattern_non_local,Module._ts_query_is_pattern_guaranteed_at_step=_ts_query_is_pattern_guaranteed_at_step=r.ts_query_is_pattern_guaranteed_at_step,Module._ts_query_disable_capture=_ts_query_disable_capture=r.ts_query_disable_capture,Module._ts_query_disable_pattern=_ts_query_disable_pattern=r.ts_query_disable_pattern,Module._ts_tree_copy=_ts_tree_copy=r.ts_tree_copy,Module._ts_tree_delete=_ts_tree_delete=r.ts_tree_delete,Module._ts_init=_ts_init=r.ts_init,Module._ts_parser_new_wasm=_ts_parser_new_wasm=r.ts_parser_new_wasm,Module._ts_parser_enable_logger_wasm=_ts_parser_enable_logger_wasm=r.ts_parser_enable_logger_wasm,Module._ts_parser_parse_wasm=_ts_parser_parse_wasm=r.ts_parser_parse_wasm,Module._ts_parser_included_ranges_wasm=_ts_parser_included_ranges_wasm=r.ts_parser_included_ranges_wasm,Module._ts_language_type_is_named_wasm=_ts_language_type_is_named_wasm=r.ts_language_type_is_named_wasm,Module._ts_language_type_is_visible_wasm=_ts_language_type_is_visible_wasm=r.ts_language_type_is_visible_wasm,Module._ts_language_metadata_wasm=_ts_language_metadata_wasm=r.ts_language_metadata_wasm,Module._ts_language_supertypes_wasm=_ts_language_supertypes_wasm=r.ts_language_supertypes_wasm,Module._ts_language_subtypes_wasm=_ts_language_subtypes_wasm=r.ts_language_subtypes_wasm,Module._ts_tree_root_node_wasm=_ts_tree_root_node_wasm=r.ts_tree_root_node_wasm,Module._ts_tree_root_node_with_offset_wasm=_ts_tree_root_node_with_offset_wasm=r.ts_tree_root_node_with_offset_wasm,Module._ts_tree_edit_wasm=_ts_tree_edit_wasm=r.ts_tree_edit_wasm,Module._ts_tree_included_ranges_wasm=_ts_tree_included_ranges_wasm=r.ts_tree_included_ranges_wasm,Module._ts_tree_get_changed_ranges_wasm=_ts_tree_get_changed_ranges_wasm=r.ts_tree_get_changed_ranges_wasm,Module._ts_tree_cursor_new_wasm=_ts_tree_cursor_new_wasm=r.ts_tree_cursor_new_wasm,Module._ts_tree_cursor_copy_wasm=_ts_tree_cursor_copy_wasm=r.ts_tree_cursor_copy_wasm,Module._ts_tree_cursor_delete_wasm=_ts_tree_cursor_delete_wasm=r.ts_tree_cursor_delete_wasm,Module._ts_tree_cursor_reset_wasm=_ts_tree_cursor_reset_wasm=r.ts_tree_cursor_reset_wasm,Module._ts_tree_cursor_reset_to_wasm=_ts_tree_cursor_reset_to_wasm=r.ts_tree_cursor_reset_to_wasm,Module._ts_tree_cursor_goto_first_child_wasm=_ts_tree_cursor_goto_first_child_wasm=r.ts_tree_cursor_goto_first_child_wasm,Module._ts_tree_cursor_goto_last_child_wasm=_ts_tree_cursor_goto_last_child_wasm=r.ts_tree_cursor_goto_last_child_wasm,Module._ts_tree_cursor_goto_first_child_for_index_wasm=_ts_tree_cursor_goto_first_child_for_index_wasm=r.ts_tree_cursor_goto_first_child_for_index_wasm,Module._ts_tree_cursor_goto_first_child_for_position_wasm=_ts_tree_cursor_goto_first_child_for_position_wasm=r.ts_tree_cursor_goto_first_child_for_position_wasm,Module._ts_tree_cursor_goto_next_sibling_wasm=_ts_tree_cursor_goto_next_sibling_wasm=r.ts_tree_cursor_goto_next_sibling_wasm,Module._ts_tree_cursor_goto_previous_sibling_wasm=_ts_tree_cursor_goto_previous_sibling_wasm=r.ts_tree_cursor_goto_previous_sibling_wasm,Module._ts_tree_cursor_goto_descendant_wasm=_ts_tree_cursor_goto_descendant_wasm=r.ts_tree_cursor_goto_descendant_wasm,Module._ts_tree_cursor_goto_parent_wasm=_ts_tree_cursor_goto_parent_wasm=r.ts_tree_cursor_goto_parent_wasm,Module._ts_tree_cursor_current_node_type_id_wasm=_ts_tree_cursor_current_node_type_id_wasm=r.ts_tree_cursor_current_node_type_id_wasm,Module._ts_tree_cursor_current_node_state_id_wasm=_ts_tree_cursor_current_node_state_id_wasm=r.ts_tree_cursor_current_node_state_id_wasm,Module._ts_tree_cursor_current_node_is_named_wasm=_ts_tree_cursor_current_node_is_named_wasm=r.ts_tree_cursor_current_node_is_named_wasm,Module._ts_tree_cursor_current_node_is_missing_wasm=_ts_tree_cursor_current_node_is_missing_wasm=r.ts_tree_cursor_current_node_is_missing_wasm,Module._ts_tree_cursor_current_node_id_wasm=_ts_tree_cursor_current_node_id_wasm=r.ts_tree_cursor_current_node_id_wasm,Module._ts_tree_cursor_start_position_wasm=_ts_tree_cursor_start_position_wasm=r.ts_tree_cursor_start_position_wasm,Module._ts_tree_cursor_end_position_wasm=_ts_tree_cursor_end_position_wasm=r.ts_tree_cursor_end_position_wasm,Module._ts_tree_cursor_start_index_wasm=_ts_tree_cursor_start_index_wasm=r.ts_tree_cursor_start_index_wasm,Module._ts_tree_cursor_end_index_wasm=_ts_tree_cursor_end_index_wasm=r.ts_tree_cursor_end_index_wasm,Module._ts_tree_cursor_current_field_id_wasm=_ts_tree_cursor_current_field_id_wasm=r.ts_tree_cursor_current_field_id_wasm,Module._ts_tree_cursor_current_depth_wasm=_ts_tree_cursor_current_depth_wasm=r.ts_tree_cursor_current_depth_wasm,Module._ts_tree_cursor_current_descendant_index_wasm=_ts_tree_cursor_current_descendant_index_wasm=r.ts_tree_cursor_current_descendant_index_wasm,Module._ts_tree_cursor_current_node_wasm=_ts_tree_cursor_current_node_wasm=r.ts_tree_cursor_current_node_wasm,Module._ts_node_symbol_wasm=_ts_node_symbol_wasm=r.ts_node_symbol_wasm,Module._ts_node_field_name_for_child_wasm=_ts_node_field_name_for_child_wasm=r.ts_node_field_name_for_child_wasm,Module._ts_node_field_name_for_named_child_wasm=_ts_node_field_name_for_named_child_wasm=r.ts_node_field_name_for_named_child_wasm,Module._ts_node_children_by_field_id_wasm=_ts_node_children_by_field_id_wasm=r.ts_node_children_by_field_id_wasm,Module._ts_node_first_child_for_byte_wasm=_ts_node_first_child_for_byte_wasm=r.ts_node_first_child_for_byte_wasm,Module._ts_node_first_named_child_for_byte_wasm=_ts_node_first_named_child_for_byte_wasm=r.ts_node_first_named_child_for_byte_wasm,Module._ts_node_grammar_symbol_wasm=_ts_node_grammar_symbol_wasm=r.ts_node_grammar_symbol_wasm,Module._ts_node_child_count_wasm=_ts_node_child_count_wasm=r.ts_node_child_count_wasm,Module._ts_node_named_child_count_wasm=_ts_node_named_child_count_wasm=r.ts_node_named_child_count_wasm,Module._ts_node_child_wasm=_ts_node_child_wasm=r.ts_node_child_wasm,Module._ts_node_named_child_wasm=_ts_node_named_child_wasm=r.ts_node_named_child_wasm,Module._ts_node_child_by_field_id_wasm=_ts_node_child_by_field_id_wasm=r.ts_node_child_by_field_id_wasm,Module._ts_node_next_sibling_wasm=_ts_node_next_sibling_wasm=r.ts_node_next_sibling_wasm,Module._ts_node_prev_sibling_wasm=_ts_node_prev_sibling_wasm=r.ts_node_prev_sibling_wasm,Module._ts_node_next_named_sibling_wasm=_ts_node_next_named_sibling_wasm=r.ts_node_next_named_sibling_wasm,Module._ts_node_prev_named_sibling_wasm=_ts_node_prev_named_sibling_wasm=r.ts_node_prev_named_sibling_wasm,Module._ts_node_descendant_count_wasm=_ts_node_descendant_count_wasm=r.ts_node_descendant_count_wasm,Module._ts_node_parent_wasm=_ts_node_parent_wasm=r.ts_node_parent_wasm,Module._ts_node_child_with_descendant_wasm=_ts_node_child_with_descendant_wasm=r.ts_node_child_with_descendant_wasm,Module._ts_node_descendant_for_index_wasm=_ts_node_descendant_for_index_wasm=r.ts_node_descendant_for_index_wasm,Module._ts_node_named_descendant_for_index_wasm=_ts_node_named_descendant_for_index_wasm=r.ts_node_named_descendant_for_index_wasm,Module._ts_node_descendant_for_position_wasm=_ts_node_descendant_for_position_wasm=r.ts_node_descendant_for_position_wasm,Module._ts_node_named_descendant_for_position_wasm=_ts_node_named_descendant_for_position_wasm=r.ts_node_named_descendant_for_position_wasm,Module._ts_node_start_point_wasm=_ts_node_start_point_wasm=r.ts_node_start_point_wasm,Module._ts_node_end_point_wasm=_ts_node_end_point_wasm=r.ts_node_end_point_wasm,Module._ts_node_start_index_wasm=_ts_node_start_index_wasm=r.ts_node_start_index_wasm,Module._ts_node_end_index_wasm=_ts_node_end_index_wasm=r.ts_node_end_index_wasm,Module._ts_node_to_string_wasm=_ts_node_to_string_wasm=r.ts_node_to_string_wasm,Module._ts_node_children_wasm=_ts_node_children_wasm=r.ts_node_children_wasm,Module._ts_node_named_children_wasm=_ts_node_named_children_wasm=r.ts_node_named_children_wasm,Module._ts_node_descendants_of_type_wasm=_ts_node_descendants_of_type_wasm=r.ts_node_descendants_of_type_wasm,Module._ts_node_is_named_wasm=_ts_node_is_named_wasm=r.ts_node_is_named_wasm,Module._ts_node_has_changes_wasm=_ts_node_has_changes_wasm=r.ts_node_has_changes_wasm,Module._ts_node_has_error_wasm=_ts_node_has_error_wasm=r.ts_node_has_error_wasm,Module._ts_node_is_error_wasm=_ts_node_is_error_wasm=r.ts_node_is_error_wasm,Module._ts_node_is_missing_wasm=_ts_node_is_missing_wasm=r.ts_node_is_missing_wasm,Module._ts_node_is_extra_wasm=_ts_node_is_extra_wasm=r.ts_node_is_extra_wasm,Module._ts_node_parse_state_wasm=_ts_node_parse_state_wasm=r.ts_node_parse_state_wasm,Module._ts_node_next_parse_state_wasm=_ts_node_next_parse_state_wasm=r.ts_node_next_parse_state_wasm,Module._ts_query_matches_wasm=_ts_query_matches_wasm=r.ts_query_matches_wasm,Module._ts_query_captures_wasm=_ts_query_captures_wasm=r.ts_query_captures_wasm,Module._memset=_memset=r.memset,Module._memcpy=_memcpy=r.memcpy,Module._memmove=_memmove=r.memmove,Module._iswalpha=_iswalpha=r.iswalpha,Module._iswblank=_iswblank=r.iswblank,Module._iswdigit=_iswdigit=r.iswdigit,Module._iswlower=_iswlower=r.iswlower,Module._iswupper=_iswupper=r.iswupper,Module._iswxdigit=_iswxdigit=r.iswxdigit,Module._memchr=_memchr=r.memchr,Module._strlen=_strlen=r.strlen,Module._strcmp=_strcmp=r.strcmp,Module._strncat=_strncat=r.strncat,Module._strncpy=_strncpy=r.strncpy,Module._towlower=_towlower=r.towlower,Module._towupper=_towupper=r.towupper,_setThrew=r.setThrew,__emscripten_stack_restore=r._emscripten_stack_restore,__emscripten_stack_alloc=r._emscripten_stack_alloc,_emscripten_stack_get_current=r.emscripten_stack_get_current,___wasm_apply_data_relocs=r.__wasm_apply_data_relocs}__name(assignWasmExports,"assignWasmExports");var wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_high:___stack_high,__stack_low:___stack_low,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback,tree_sitter_progress_callback:_tree_sitter_progress_callback,tree_sitter_query_progress_callback:_tree_sitter_query_progress_callback};function callMain(r=[]){var n=resolveGlobalSymbol("main").sym;if(n){r.unshift(thisProgram);var i=r.length,s=stackAlloc((i+1)*4),o=s;r.forEach(r=>{LE_HEAP_STORE_U32((o>>2)*4,stringToUTF8OnStack(r)),o+=4}),LE_HEAP_STORE_U32((o>>2)*4,0);try{var l=n(i,s);return exitJS(l,!0),l}catch(r){return handleException(r)}}}function run(r=arguments_){if(runDependencies>0||(preRun(),runDependencies>0)){dependenciesFulfilled=run;return}function n(){if(Module.calledRun=!0,!ABORT){initRuntime(),readyPromiseResolve?.(Module),Module.onRuntimeInitialized?.();var n=Module.noInitialRun||!1;n||callMain(r),postRun()}}__name(n,"doRun"),Module.setStatus?(Module.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>Module.setStatus(""),1),n()},1)):n()}return __name(callMain,"callMain"),__name(run,"run"),wasmExports=await createWasm(),run(),moduleRtn=runtimeInitialized?Module:new Promise((r,n)=>{readyPromiseResolve=r,readyPromiseReject=n})}__name(Module2,"Module");var web_tree_sitter_default=Module2,Module3=null;async function initializeBinding(r){return Module3??=await web_tree_sitter_default(r)}function checkModule(){return!!Module3}__name(initializeBinding,"initializeBinding"),__name(checkModule,"checkModule");var Parser=class{static{__name(this,"Parser")}0=0;1=0;logCallback=null;language=null;static async init(r){setModule(await initializeBinding(r)),TRANSFER_BUFFER=C._ts_init(),LANGUAGE_VERSION=C.getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}constructor(){this.initialize()}initialize(){if(!checkModule())throw Error("cannot construct a Parser before calling `init()`");C._ts_parser_new_wasm(),this[0]=C.getValue(TRANSFER_BUFFER,"i32"),this[1]=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(r){let n;if(r)if(r.constructor===Language){n=r[0];let i=C._ts_language_abi_version(n);if(i<MIN_COMPATIBLE_VERSION||LANGUAGE_VERSION<i)throw Error(`Incompatible language version ${i}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${LANGUAGE_VERSION}.`);this.language=r}else throw Error("Argument must be a Language");else n=0,this.language=null;return C._ts_parser_set_language(this[0],n),this}parse(r,n,i){if("string"==typeof r)C.currentParseCallback=n=>r.slice(n);else if("function"==typeof r)C.currentParseCallback=r;else throw Error("Argument must be a string or a function");i?.progressCallback?C.currentProgressCallback=i.progressCallback:C.currentProgressCallback=null,this.logCallback?(C.currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(C.currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let s=0,o=0;if(i?.includedRanges){s=i.includedRanges.length;let r=o=C._calloc(s,SIZE_OF_RANGE);for(let n=0;n<s;n++)marshalRange(r,i.includedRanges[n]),r+=SIZE_OF_RANGE}let l=C._ts_parser_parse_wasm(this[0],this[1],n?n[0]:0,o,s);if(!l)return C.currentParseCallback=null,C.currentLogCallback=null,C.currentProgressCallback=null,null;if(!this.language)throw Error("Parser must have a language to parse");let a=new Tree(INTERNAL,l,this.language,C.currentParseCallback);return C.currentParseCallback=null,C.currentLogCallback=null,C.currentProgressCallback=null,a}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);let r=C.getValue(TRANSFER_BUFFER,"i32"),n=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),i=Array(r);if(r>0){let s=n;for(let n=0;n<r;n++)i[n]=unmarshalRange(s),s+=SIZE_OF_RANGE;C._free(n)}return i}setLogger(r){if(r)if("function"!=typeof r)throw Error("Logger callback must be a function");else this.logCallback=r;else this.logCallback=null;return this}getLogger(){return this.logCallback}},PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,QUERY_WORD_REGEX=/[\w-]+/g,CaptureQuantifier={},isCaptureStep=__name(r=>"capture"===r.type,"isCaptureStep"),isStringStep=__name(r=>"string"===r.type,"isStringStep"),QueryErrorKind={Syntax:1,NodeName:2,FieldName:3,CaptureName:4,PatternStructure:5},QueryError=class _QueryError extends Error{constructor(r,n,i,s){super(_QueryError.formatMessage(r,n)),this.kind=r,this.info=n,this.index=i,this.length=s,this.name="QueryError"}static{__name(this,"QueryError")}static formatMessage(r,n){switch(r){case QueryErrorKind.NodeName:return`Bad node name '${n.word}'`;case QueryErrorKind.FieldName:return`Bad field name '${n.word}'`;case QueryErrorKind.CaptureName:return`Bad capture name @${n.word}`;case QueryErrorKind.PatternStructure:return`Bad pattern structure at offset ${n.suffix}`;case QueryErrorKind.Syntax:return`Bad syntax at offset ${n.suffix}`}}};function parseAnyPredicate(r,n,i,s){if(3!==r.length)throw Error(`Wrong number of arguments to \`#${i}\` predicate. Expected 2, got ${r.length-1}`);if(!isCaptureStep(r[1]))throw Error(`First argument of \`#${i}\` predicate must be a capture. Got "${r[1].value}"`);let o="eq?"===i||"any-eq?"===i,l=!i.startsWith("any-");if(isCaptureStep(r[2])){let i=r[1].name,a=r[2].name;s[n].push(r=>{let n=[],s=[];for(let o of r)o.name===i&&n.push(o.node),o.name===a&&s.push(o.node);let u=__name((r,n,i)=>i?r.text===n.text:r.text!==n.text,"compare");return l?n.every(r=>s.some(n=>u(r,n,o))):n.some(r=>s.some(n=>u(r,n,o)))})}else{let i=r[1].name,a=r[2].value,u=__name(r=>r.text===a,"matches"),c=__name(r=>r.text!==a,"doesNotMatch");s[n].push(r=>{let n=[];for(let s of r)s.name===i&&n.push(s.node);let s=o?u:c;return l?n.every(s):n.some(s)})}}function parseMatchPredicate(r,n,i,s){if(3!==r.length)throw Error(`Wrong number of arguments to \`#${i}\` predicate. Expected 2, got ${r.length-1}.`);if("capture"!==r[1].type)throw Error(`First argument of \`#${i}\` predicate must be a capture. Got "${r[1].value}".`);if("string"!==r[2].type)throw Error(`Second argument of \`#${i}\` predicate must be a string. Got @${r[2].name}.`);let o="match?"===i||"any-match?"===i,l=!i.startsWith("any-"),a=r[1].name,u=new RegExp(r[2].value);s[n].push(r=>{let n=[];for(let i of r)i.name===a&&n.push(i.node.text);let i=__name((r,n)=>n?u.test(r):!u.test(r),"test");return 0===n.length?!o:l?n.every(r=>i(r,o)):n.some(r=>i(r,o))})}function parseAnyOfPredicate(r,n,i,s){if(r.length<2)throw Error(`Wrong number of arguments to \`#${i}\` predicate. Expected at least 1. Got ${r.length-1}.`);if("capture"!==r[1].type)throw Error(`First argument of \`#${i}\` predicate must be a capture. Got "${r[1].value}".`);let o="any-of?"===i,l=r[1].name,a=r.slice(2);if(!a.every(isStringStep))throw Error(`Arguments to \`#${i}\` predicate must be strings.".`);let u=a.map(r=>r.value);s[n].push(r=>{let n=[];for(let i of r)i.name===l&&n.push(i.node.text);return 0===n.length?!o:n.every(r=>u.includes(r))===o})}function parseIsPredicate(r,n,i,s,o){if(r.length<2||r.length>3)throw Error(`Wrong number of arguments to \`#${i}\` predicate. Expected 1 or 2. Got ${r.length-1}.`);if(!r.every(isStringStep))throw Error(`Arguments to \`#${i}\` predicate must be strings.".`);let l="is?"===i?s:o;l[n]||(l[n]={}),l[n][r[1].value]=r[2]?.value??null}function parseSetDirective(r,n,i){if(r.length<2||r.length>3)throw Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${r.length-1}.`);if(!r.every(isStringStep))throw Error('Arguments to `#set!` predicate must be strings.".');i[n]||(i[n]={}),i[n][r[1].value]=r[2]?.value??null}function parsePattern(r,n,i,s,o,l,a,u,c,h,d){if(n===PREDICATE_STEP_TYPE_CAPTURE){let r=s[i];l.push({type:"capture",name:r})}else if(n===PREDICATE_STEP_TYPE_STRING)l.push({type:"string",value:o[i]});else if(l.length>0){if("string"!==l[0].type)throw Error("Predicates must begin with a literal value");let n=l[0].value;switch(n){case"any-not-eq?":case"not-eq?":case"any-eq?":case"eq?":parseAnyPredicate(l,r,n,a);break;case"any-not-match?":case"not-match?":case"any-match?":case"match?":parseMatchPredicate(l,r,n,a);break;case"not-any-of?":case"any-of?":parseAnyOfPredicate(l,r,n,a);break;case"is?":case"is-not?":parseIsPredicate(l,r,n,h,d);break;case"set!":parseSetDirective(l,r,c);break;default:u[r].push({operator:n,operands:l.slice(1)})}l.length=0}}__name(parseAnyPredicate,"parseAnyPredicate"),__name(parseMatchPredicate,"parseMatchPredicate"),__name(parseAnyOfPredicate,"parseAnyOfPredicate"),__name(parseIsPredicate,"parseIsPredicate"),__name(parseSetDirective,"parseSetDirective"),__name(parsePattern,"parsePattern");var Query=class{static{__name(this,"Query")}0=0;exceededMatchLimit;textPredicates;captureNames;captureQuantifiers;predicates;setProperties;assertedProperties;refutedProperties;matchLimit;constructor(r,n){const i=C.lengthBytesUTF8(n),s=C._malloc(i+1);C.stringToUTF8(n,s,i+1);const o=C._ts_query_new(r[0],s,i,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!o){const r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),i=C.getValue(TRANSFER_BUFFER,"i32"),o=C.UTF8ToString(s,i).length,l=n.slice(o,o+100).split("\n")[0],a=l.match(QUERY_WORD_REGEX)?.[0]??"";switch(C._free(s),r){case QueryErrorKind.Syntax:throw new QueryError(QueryErrorKind.Syntax,{suffix:`${o}: '${l}'...`},o,0);case QueryErrorKind.NodeName:case QueryErrorKind.FieldName:case QueryErrorKind.CaptureName:throw new QueryError(r,{word:a},o,a.length);case QueryErrorKind.PatternStructure:throw new QueryError(r,{suffix:`${o}: '${l}'...`},o,0)}}const l=C._ts_query_string_count(o),a=C._ts_query_capture_count(o),u=C._ts_query_pattern_count(o),c=Array(a),h=Array(u),d=Array(l);for(let r=0;r<a;r++){const n=C._ts_query_capture_name_for_id(o,r,TRANSFER_BUFFER),i=C.getValue(TRANSFER_BUFFER,"i32");c[r]=C.UTF8ToString(n,i)}for(let r=0;r<u;r++){const n=Array(a);for(let i=0;i<a;i++){const s=C._ts_query_capture_quantifier_for_id(o,r,i);n[i]=s}h[r]=n}for(let r=0;r<l;r++){const n=C._ts_query_string_value_for_id(o,r,TRANSFER_BUFFER),i=C.getValue(TRANSFER_BUFFER,"i32");d[r]=C.UTF8ToString(n,i)}const p=Array(u),f=Array(u),m=Array(u),g=Array(u),_=Array(u);for(let r=0;r<u;r++){const n=C._ts_query_predicates_for_pattern(o,r,TRANSFER_BUFFER),i=C.getValue(TRANSFER_BUFFER,"i32");g[r]=[],_[r]=[];const s=[];let l=n;for(let n=0;n<i;n++){const n=C.getValue(l,"i32");l+=SIZE_OF_INT;const i=C.getValue(l,"i32");l+=SIZE_OF_INT,parsePattern(r,n,i,c,d,s,_,g,p,f,m)}Object.freeze(_[r]),Object.freeze(g[r]),Object.freeze(p[r]),Object.freeze(f[r]),Object.freeze(m[r])}C._free(s),this[0]=o,this.captureNames=c,this.captureQuantifiers=h,this.textPredicates=_,this.predicates=g,this.setProperties=p,this.assertedProperties=f,this.refutedProperties=m,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(r,n={}){let i=n.startPosition??ZERO_POINT,s=n.endPosition??ZERO_POINT,o=n.startIndex??0,l=n.endIndex??0,a=n.startContainingPosition??ZERO_POINT,u=n.endContainingPosition??ZERO_POINT,c=n.startContainingIndex??0,h=n.endContainingIndex??0,d=n.matchLimit??0xffffffff,p=n.maxStartDepth??0xffffffff,f=n.progressCallback;if("number"!=typeof d)throw Error("Arguments must be numbers");if(this.matchLimit=d,0!==l&&o>l)throw Error("`startIndex` cannot be greater than `endIndex`");if(s!==ZERO_POINT&&(i.row>s.row||i.row===s.row&&i.column>s.column))throw Error("`startPosition` cannot be greater than `endPosition`");if(0!==h&&c>h)throw Error("`startContainingIndex` cannot be greater than `endContainingIndex`");if(u!==ZERO_POINT&&(a.row>u.row||a.row===u.row&&a.column>u.column))throw Error("`startContainingPosition` cannot be greater than `endContainingPosition`");f&&(C.currentQueryProgressCallback=f),marshalNode(r),C._ts_query_matches_wasm(this[0],r.tree[0],i.row,i.column,s.row,s.column,o,l,a.row,a.column,u.row,u.column,c,h,d,p);let m=C.getValue(TRANSFER_BUFFER,"i32"),g=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),_=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),y=Array(m);this.exceededMatchLimit=!!_;let k=0,b=g;for(let n=0;n<m;n++){let n=C.getValue(b,"i32");b+=SIZE_OF_INT;let i=C.getValue(b,"i32");b+=SIZE_OF_INT;let s=Array(i);if(b=unmarshalCaptures(this,r.tree,b,n,s),this.textPredicates[n].every(r=>r(s))){y[k]={patternIndex:n,captures:s};let r=this.setProperties[n];y[k].setProperties=r;let i=this.assertedProperties[n];y[k].assertedProperties=i;let o=this.refutedProperties[n];y[k].refutedProperties=o,k++}}return y.length=k,C._free(g),C.currentQueryProgressCallback=null,y}captures(r,n={}){let i=n.startPosition??ZERO_POINT,s=n.endPosition??ZERO_POINT,o=n.startIndex??0,l=n.endIndex??0,a=n.startContainingPosition??ZERO_POINT,u=n.endContainingPosition??ZERO_POINT,c=n.startContainingIndex??0,h=n.endContainingIndex??0,d=n.matchLimit??0xffffffff,p=n.maxStartDepth??0xffffffff,f=n.progressCallback;if("number"!=typeof d)throw Error("Arguments must be numbers");if(this.matchLimit=d,0!==l&&o>l)throw Error("`startIndex` cannot be greater than `endIndex`");if(s!==ZERO_POINT&&(i.row>s.row||i.row===s.row&&i.column>s.column))throw Error("`startPosition` cannot be greater than `endPosition`");if(0!==h&&c>h)throw Error("`startContainingIndex` cannot be greater than `endContainingIndex`");if(u!==ZERO_POINT&&(a.row>u.row||a.row===u.row&&a.column>u.column))throw Error("`startContainingPosition` cannot be greater than `endContainingPosition`");f&&(C.currentQueryProgressCallback=f),marshalNode(r),C._ts_query_captures_wasm(this[0],r.tree[0],i.row,i.column,s.row,s.column,o,l,a.row,a.column,u.row,u.column,c,h,d,p);let m=C.getValue(TRANSFER_BUFFER,"i32"),g=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),_=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),y=[];this.exceededMatchLimit=!!_;let k=[],b=g;for(let n=0;n<m;n++){let n=C.getValue(b,"i32");b+=SIZE_OF_INT;let i=C.getValue(b,"i32");b+=SIZE_OF_INT;let s=C.getValue(b,"i32");if(b+=SIZE_OF_INT,k.length=i,b=unmarshalCaptures(this,r.tree,b,n,k),this.textPredicates[n].every(r=>r(k))){let r=k[s];r.setProperties=this.setProperties[n],r.assertedProperties=this.assertedProperties[n],r.refutedProperties=this.refutedProperties[n],y.push(r)}}return C._free(g),C.currentQueryProgressCallback=null,y}predicatesForPattern(r){return this.predicates[r]}disableCapture(r){let n=C.lengthBytesUTF8(r),i=C._malloc(n+1);C.stringToUTF8(r,i,n+1),C._ts_query_disable_capture(this[0],i,n),C._free(i)}disablePattern(r){if(r>=this.predicates.length)throw Error(`Pattern index is ${r} but the pattern count is ${this.predicates.length}`);C._ts_query_disable_pattern(this[0],r)}didExceedMatchLimit(){return this.exceededMatchLimit}startIndexForPattern(r){if(r>=this.predicates.length)throw Error(`Pattern index is ${r} but the pattern count is ${this.predicates.length}`);return C._ts_query_start_byte_for_pattern(this[0],r)}endIndexForPattern(r){if(r>=this.predicates.length)throw Error(`Pattern index is ${r} but the pattern count is ${this.predicates.length}`);return C._ts_query_end_byte_for_pattern(this[0],r)}patternCount(){return C._ts_query_pattern_count(this[0])}captureIndexForName(r){return this.captureNames.indexOf(r)}isPatternRooted(r){return 1===C._ts_query_is_pattern_rooted(this[0],r)}isPatternNonLocal(r){return 1===C._ts_query_is_pattern_non_local(this[0],r)}isPatternGuaranteedAtStep(r){return 1===C._ts_query_is_pattern_guaranteed_at_step(this[0],r)}}},15813:(r,n,i)=>{"use strict";i.d(n,{A:()=>l});var s=i(90425);let o=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],l=(0,s.A)("list",o)},20232:(r,n,i)=>{"use strict";i.d(n,{A:()=>l});var s=i(90425);let o=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],l=(0,s.A)("play",o)},20986:(r,n,i)=>{"use strict";i.d(n,{A:()=>l});var s=i(90425);let o=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],l=(0,s.A)("rotate-cw",o)},21362:(r,n,i)=>{"use strict";i.d(n,{A:()=>l});var s=i(90425);let o=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],l=(0,s.A)("chevron-right",o)},26932:(r,n,i)=>{"use strict";i.d(n,{o:()=>nK});var s,o,l,a,u,c,h,d,p,f,m,g,_,y={};i.r(y),i.d(y,{decode:()=>S,encode:()=>F,format:()=>I,parse:()=>U});var k={};i.r(k),i.d(k,{Any:()=>K,Cc:()=>G,Cf:()=>Z,P:()=>W,S:()=>J,Z:()=>X});var b={};i.r(b),i.d(b,{arrayReplaceAt:()=>ew,asciiTrim:()=>eU,assign:()=>eb,escapeHtml:()=>eN,escapeRE:()=>ez,fromCodePoint:()=>ev,has:()=>ek,isMdAsciiPunct:()=>ej,isPunctChar:()=>eB,isPunctCharCode:()=>eq,isSpace:()=>eP,isString:()=>e_,isValidEntityCode:()=>ex,isWhiteSpace:()=>e$,lib:()=>eW,normalizeReference:()=>eH,unescapeAll:()=>eD,unescapeMd:()=>eT});var w={};i.r(w),i.d(w,{parseLinkDestination:()=>eK,parseLinkLabel:()=>eJ,parseLinkTitle:()=>eG});var x=i(82159),v=i(27050);let C={};function A(r){let n=C[r];if(n)return n;n=C[r]=[];for(let r=0;r<128;r++){let i=String.fromCharCode(r);n.push(i)}for(let i=0;i<r.length;i++){let s=r.charCodeAt(i);n[s]="%"+("0"+s.toString(16).toUpperCase()).slice(-2)}return n}function E(r,n){"string"!=typeof n&&(n=E.defaultChars);let i=A(n);return r.replace(/(%[a-f0-9]{2})+/gi,function(r){let n="";for(let s=0,o=r.length;s<o;s+=3){let l=parseInt(r.slice(s+1,s+3),16);if(l<128){n+=i[l];continue}if((224&l)==192&&s+3<o){let i=parseInt(r.slice(s+4,s+6),16);if((192&i)==128){let r=l<<6&1984|63&i;r<128?n+="��":n+=String.fromCharCode(r),s+=3;continue}}if((240&l)==224&&s+6<o){let i=parseInt(r.slice(s+4,s+6),16),o=parseInt(r.slice(s+7,s+9),16);if((192&i)==128&&(192&o)==128){let r=l<<12&61440|i<<6&4032|63&o;r<2048||r>=55296&&r<=57343?n+="���":n+=String.fromCharCode(r),s+=6;continue}}if((248&l)==240&&s+9<o){let i=parseInt(r.slice(s+4,s+6),16),o=parseInt(r.slice(s+7,s+9),16),a=parseInt(r.slice(s+10,s+12),16);if((192&i)==128&&(192&o)==128&&(192&a)==128){let r=l<<18&1835008|i<<12&258048|o<<6&4032|63&a;r<65536||r>1114111?n+="����":(r-=65536,n+=String.fromCharCode(55296+(r>>10),56320+(1023&r))),s+=9;continue}}n+="�"}return n})}E.defaultChars=";/?:@&=+$,#",E.componentChars="";let S=E,M={};function T(r){let n=M[r];if(n)return n;n=M[r]=[];for(let r=0;r<128;r++){let i=String.fromCharCode(r);/^[0-9a-z]$/i.test(i)?n.push(i):n.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2))}for(let i=0;i<r.length;i++)n[r.charCodeAt(i)]=r[i];return n}function D(r,n,i){"string"!=typeof n&&(i=n,n=D.defaultChars),void 0===i&&(i=!0);let s=T(n),o="";for(let n=0,l=r.length;n<l;n++){let a=r.charCodeAt(n);if(i&&37===a&&n+2<l&&/^[0-9a-f]{2}$/i.test(r.slice(n+1,n+3))){o+=r.slice(n,n+3),n+=2;continue}if(a<128){o+=s[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&n+1<l){let i=r.charCodeAt(n+1);if(i>=56320&&i<=57343){o+=encodeURIComponent(r[n]+r[n+1]),n++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(r[n])}return o}D.defaultChars=";/?:@&=+$,-_.!~*'()#",D.componentChars="-_.!~*'()";let F=D;function I(r){let n="";return n+=r.protocol||"",n+=r.slashes?"//":"",n+=r.auth?r.auth+"@":"",r.hostname&&-1!==r.hostname.indexOf(":")?n+="["+r.hostname+"]":n+=r.hostname||"",n+=r.port?":"+r.port:"",n+=r.pathname||"",n+=r.search||"",n+=r.hash||""}function L(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}let R=/^([a-z0-9.+-]+:)/i,N=/:[0-9]*$/,O=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,z=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "]))),P=["/","?","#"],$=255,B=/^[+a-z0-9A-Z_-]{0,63}$/,q=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,j={javascript:!0,"javascript:":!0},H={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function V(r,n){if(r&&r instanceof L)return r;let i=new L;return i.parse(r,n),i}L.prototype.parse=function(r,n){let i,s,o,l=r;if(l=l.trim(),!n&&1===r.split("#").length){let r=O.exec(l);if(r)return this.pathname=r[1],r[2]&&(this.search=r[2]),this}let a=R.exec(l);if(a&&(i=(a=a[0]).toLowerCase(),this.protocol=a,l=l.substr(a.length)),(n||a||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o="//"===l.substr(0,2))&&!(a&&j[a])&&(l=l.substr(2),this.slashes=!0),!j[a]&&(o||a&&!H[a])){let r,n,i=-1;for(let r=0;r<P.length;r++)-1!==(s=l.indexOf(P[r]))&&(-1===i||s<i)&&(i=s);-1!==(n=-1===i?l.lastIndexOf("@"):l.lastIndexOf("@",i))&&(r=l.slice(0,n),l=l.slice(n+1),this.auth=r),i=-1;for(let r=0;r<z.length;r++)-1!==(s=l.indexOf(z[r]))&&(-1===i||s<i)&&(i=s);-1===i&&(i=l.length),":"===l[i-1]&&i--;let o=l.slice(0,i);l=l.slice(i),this.parseHost(o),this.hostname=this.hostname||"";let a="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!a){let r=this.hostname.split(/\./);for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i&&!i.match(B)){let s="";for(let r=0,n=i.length;r<n;r++)i.charCodeAt(r)>127?s+="x":s+=i[r];if(!s.match(B)){let s=r.slice(0,n),o=r.slice(n+1),a=i.match(q);a&&(s.push(a[1]),o.unshift(a[2])),o.length&&(l=o.join(".")+l),this.hostname=s.join(".");break}}}}this.hostname.length>$&&(this.hostname=""),a&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let u=l.indexOf("#");-1!==u&&(this.hash=l.substr(u),l=l.slice(0,u));let c=l.indexOf("?");return -1!==c&&(this.search=l.substr(c),l=l.slice(0,c)),l&&(this.pathname=l),H[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},L.prototype.parseHost=function(r){let n=N.exec(r);n&&(":"!==(n=n[0])&&(this.port=n.substr(1)),r=r.substr(0,r.length-n.length)),r&&(this.hostname=r)};let U=V,W=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,J=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,K=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,G=/[\0-\x1F\x7F-\x9F]/,Z=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,X=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Y=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\uD835\uDD04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\uD835\uDD38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\uD835\uDC9Cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\uD835\uDD05pf;쀀\uD835\uDD39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\uD835\uDC9EpĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\uD835\uDD07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\uD835\uDD3Bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\uD835\uDC9Frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\uD835\uDD08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\uD835\uDD3Csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\uD835\uDD09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\uD835\uDD3DAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\uD835\uDD0A;拙pf;쀀\uD835\uDD3Eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\uD835\uDCA2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\uD835\uDD40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\uD835\uDD0Dpf;쀀\uD835\uDD41ǣ߇\0ߌr;쀀\uD835\uDCA5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\uD835\uDD0Epf;쀀\uD835\uDD42cr;쀀\uD835\uDCA6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\uD835\uDD0FĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\uD835\uDD43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\uD835\uDD10nusPlus;戓pf;쀀\uD835\uDD44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\uD835\uDD11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\uD835\uDCA9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\uD835\uDD12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\uD835\uDD46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\uD835\uDCAAash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\uD835\uDD13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\uD835\uDCAB;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\uD835\uDD14pf;愚cr;쀀\uD835\uDCAC؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\uD835\uDD16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\uD835\uDD4Aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\uD835\uDCAEar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\uD835\uDD17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\uD835\uDD4BipleDot;惛Āctዖዛr;쀀\uD835\uDCAFrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\uD835\uDD18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\uD835\uDD4CЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\uD835\uDCB0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\uD835\uDD19pf;쀀\uD835\uDD4Dcr;쀀\uD835\uDCB1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\uD835\uDD1Apf;쀀\uD835\uDD4Ecr;쀀\uD835\uDCB2Ȁfiosᓋᓐᓒᓘr;쀀\uD835\uDD1B;䎞pf;쀀\uD835\uDD4Fcr;쀀\uD835\uDCB3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\uD835\uDD1Cpf;쀀\uD835\uDD50cr;쀀\uD835\uDCB4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\uD835\uDCB5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\uD835\uDD1Erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\uD835\uDD52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\uD835\uDCB6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\uD835\uDD1Fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\uD835\uDD53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\uD835\uDCB7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\uD835\uDD20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\uD835\uDD54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\uD835\uDCB8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\uD835\uDD21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\uD835\uDD55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\uD835\uDCB9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\uD835\uDD22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\uD835\uDD56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\uD835\uDD23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\uD835\uDD57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\uD835\uDCBBࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\uD835\uDD24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\uD835\uDD58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\uD835\uDD25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\uD835\uDD59bar;怕ƀclt≯≴≸r;쀀\uD835\uDCBDas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\uD835\uDD26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\uD835\uDD5Aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\uD835\uDCBEnʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\uD835\uDD27ath;䈷pf;쀀\uD835\uDD5Bǣ⏬\0⏱r;쀀\uD835\uDCBFrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\uD835\uDD28reen;䄸cy;䑅cy;䑜pf;쀀\uD835\uDD5Ccr;쀀\uD835\uDCC0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\uD835\uDD29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\uD835\uDD5Dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\uD835\uDCC1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\uD835\uDD2Ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\uD835\uDD5EĀct⣸⣽r;쀀\uD835\uDCC2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\uD835\uDD2BȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\uD835\uDD5F膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\uD835\uDCC3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\uD835\uDD2Cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\uD835\uDD60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\uD835\uDD2Dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\uD835\uDD61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\uD835\uDCC5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\uD835\uDD2Epf;쀀\uD835\uDD62rime;恗cr;쀀\uD835\uDCC6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\uD835\uDD2FĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\uD835\uDD63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\uD835\uDCC7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\uD835\uDD30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\uD835\uDD64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\uD835\uDCC8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\uD835\uDD31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\uD835\uDD65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\uD835\uDCC9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\uD835\uDD32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\uD835\uDD66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\uD835\uDCCAƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\uD835\uDD33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\uD835\uDD67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\uD835\uDCCBĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\uD835\uDD34pf;쀀\uD835\uDD68Ā;eᑹ㩦at\xe8ᑹcr;쀀\uD835\uDCCCૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\uD835\uDD35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\uD835\uDD69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\uD835\uDCCDĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\uD835\uDD36cy;䑗pf;쀀\uD835\uDD6Acr;쀀\uD835\uDCCEĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\uD835\uDD37cy;䐶grarr;懝pf;쀀\uD835\uDD6Bcr;쀀\uD835\uDCCFĀjn㮅㮇;怍j;怌'.split("").map(r=>r.charCodeAt(0))),Q=new Uint16Array("Ȁaglq \x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(r=>r.charCodeAt(0))),ee=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),et=null!=(h=String.fromCodePoint)?h:function(r){let n="";return r>65535&&(r-=65536,n+=String.fromCharCode(r>>>10&1023|55296),r=56320|1023&r),n+=String.fromCharCode(r)};function er(r){var n;return r>=55296&&r<=57343||r>1114111?65533:null!=(n=ee.get(r))?n:r}(s=d||(d={}))[s.NUM=35]="NUM",s[s.SEMI=59]="SEMI",s[s.EQUALS=61]="EQUALS",s[s.ZERO=48]="ZERO",s[s.NINE=57]="NINE",s[s.LOWER_A=97]="LOWER_A",s[s.LOWER_F=102]="LOWER_F",s[s.LOWER_X=120]="LOWER_X",s[s.LOWER_Z=122]="LOWER_Z",s[s.UPPER_A=65]="UPPER_A",s[s.UPPER_F=70]="UPPER_F",s[s.UPPER_Z=90]="UPPER_Z";let en=32;function ei(r){return r>=d.ZERO&&r<=d.NINE}function es(r){return r>=d.UPPER_A&&r<=d.UPPER_F||r>=d.LOWER_A&&r<=d.LOWER_F}function eo(r){return r>=d.UPPER_A&&r<=d.UPPER_Z||r>=d.LOWER_A&&r<=d.LOWER_Z||ei(r)}function el(r){return r===d.EQUALS||eo(r)}(o=p||(p={}))[o.VALUE_LENGTH=49152]="VALUE_LENGTH",o[o.BRANCH_LENGTH=16256]="BRANCH_LENGTH",o[o.JUMP_TABLE=127]="JUMP_TABLE",(l=f||(f={}))[l.EntityStart=0]="EntityStart",l[l.NumericStart=1]="NumericStart",l[l.NumericDecimal=2]="NumericDecimal",l[l.NumericHex=3]="NumericHex",l[l.NamedEntity=4]="NamedEntity",(a=m||(m={}))[a.Legacy=0]="Legacy",a[a.Strict=1]="Strict",a[a.Attribute=2]="Attribute";class ea{constructor(r,n,i){this.decodeTree=r,this.emitCodePoint=n,this.errors=i,this.state=f.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=m.Strict}startEntity(r){this.decodeMode=r,this.state=f.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(r,n){switch(this.state){case f.EntityStart:if(r.charCodeAt(n)===d.NUM)return this.state=f.NumericStart,this.consumed+=1,this.stateNumericStart(r,n+1);return this.state=f.NamedEntity,this.stateNamedEntity(r,n);case f.NumericStart:return this.stateNumericStart(r,n);case f.NumericDecimal:return this.stateNumericDecimal(r,n);case f.NumericHex:return this.stateNumericHex(r,n);case f.NamedEntity:return this.stateNamedEntity(r,n)}}stateNumericStart(r,n){return n>=r.length?-1:(r.charCodeAt(n)|en)===d.LOWER_X?(this.state=f.NumericHex,this.consumed+=1,this.stateNumericHex(r,n+1)):(this.state=f.NumericDecimal,this.stateNumericDecimal(r,n))}addToNumericResult(r,n,i,s){if(n!==i){let o=i-n;this.result=this.result*Math.pow(s,o)+parseInt(r.substr(n,o),s),this.consumed+=o}}stateNumericHex(r,n){let i=n;for(;n<r.length;){let s=r.charCodeAt(n);if(!(ei(s)||es(s)))return this.addToNumericResult(r,i,n,16),this.emitNumericEntity(s,3);n+=1}return this.addToNumericResult(r,i,n,16),-1}stateNumericDecimal(r,n){let i=n;for(;n<r.length;){let s=r.charCodeAt(n);if(!ei(s))return this.addToNumericResult(r,i,n,10),this.emitNumericEntity(s,2);n+=1}return this.addToNumericResult(r,i,n,10),-1}emitNumericEntity(r,n){var i;if(this.consumed<=n)return null==(i=this.errors)||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(r===d.SEMI)this.consumed+=1;else if(this.decodeMode===m.Strict)return 0;return this.emitCodePoint(er(this.result),this.consumed),this.errors&&(r!==d.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(r,n){let{decodeTree:i}=this,s=i[this.treeIndex],o=(s&p.VALUE_LENGTH)>>14;for(;n<r.length;n++,this.excess++){let l=r.charCodeAt(n);if(this.treeIndex=ec(i,s,this.treeIndex+Math.max(1,o),l),this.treeIndex<0)return 0===this.result||this.decodeMode===m.Attribute&&(0===o||el(l))?0:this.emitNotTerminatedNamedEntity();if(0!=(o=((s=i[this.treeIndex])&p.VALUE_LENGTH)>>14)){if(l===d.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==m.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var r;let{result:n,decodeTree:i}=this,s=(i[n]&p.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),null==(r=this.errors)||r.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(r,n,i){let{decodeTree:s}=this;return this.emitCodePoint(1===n?s[r]&~p.VALUE_LENGTH:s[r+1],i),3===n&&this.emitCodePoint(s[r+2],i),i}end(){var r;switch(this.state){case f.NamedEntity:return 0!==this.result&&(this.decodeMode!==m.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case f.NumericDecimal:return this.emitNumericEntity(0,2);case f.NumericHex:return this.emitNumericEntity(0,3);case f.NumericStart:return null==(r=this.errors)||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case f.EntityStart:return 0}}}function eu(r){let n="",i=new ea(r,r=>n+=et(r));return function(r,s){let o=0,l=0;for(;(l=r.indexOf("&",l))>=0;){n+=r.slice(o,l),i.startEntity(s);let a=i.write(r,l+1);if(a<0){o=l+i.end();break}o=l+a,l=0===a?o+1:o}let a=n+r.slice(o);return n="",a}}function ec(r,n,i,s){let o=(n&p.BRANCH_LENGTH)>>7,l=n&p.JUMP_TABLE;if(0===o)return 0!==l&&s===l?i:-1;if(l){let n=s-l;return n<0||n>=o?-1:r[i+n]-1}let a=i,u=a+o-1;for(;a<=u;){let n=a+u>>>1,i=r[n];if(i<s)a=n+1;else{if(!(i>s))return r[n+o];u=n-1}}return -1}let eh=eu(Y);function ed(r,n=m.Legacy){return eh(r,n)}function ep(r){return eh(r,m.Strict)}eu(Q);let ef=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);function em(r,n){return function(i){let s,o=0,l="";for(;s=r.exec(i);)o!==s.index&&(l+=i.substring(o,s.index)),l+=n.get(s[0].charCodeAt(0)),o=s.index+1;return l+i.substring(o)}}function eg(r){return Object.prototype.toString.call(r)}function e_(r){return"[object String]"===eg(r)}String.prototype.codePointAt,em(/[&<>'"]/g,ef),em(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),em(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),(u=g||(g={}))[u.XML=0]="XML",u[u.HTML=1]="HTML",(c=_||(_={}))[c.UTF8=0]="UTF8",c[c.ASCII=1]="ASCII",c[c.Extensive=2]="Extensive",c[c.Attribute=3]="Attribute",c[c.Text=4]="Text";let ey=Object.prototype.hasOwnProperty;function ek(r,n){return ey.call(r,n)}function eb(r){let n=Array.prototype.slice.call(arguments,1);return n.forEach(function(n){if(n){if("object"!=typeof n)throw TypeError(n+"must be object");Object.keys(n).forEach(function(i){r[i]=n[i]})}}),r}function ew(r,n,i){return[].concat(r.slice(0,n),i,r.slice(n+1))}function ex(r){return(!(r>=55296)||!(r<=57343))&&(!(r>=64976)||!(r<=65007))&&(65535&r)!=65535&&(65535&r)!=65534&&(!(r>=0)||!(r<=8))&&11!==r&&(!(r>=14)||!(r<=31))&&(!(r>=127)||!(r<=159))&&!(r>1114111)&&!0}function ev(r){return r>65535?String.fromCharCode(55296+((r-=65536)>>10),56320+(1023&r)):String.fromCharCode(r)}let eC=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,eA=/&([a-z#][a-z0-9]{1,31});/gi,eE=RegExp(eC.source+"|"+eA.source,"gi"),eS=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function eM(r,n){if(35===n.charCodeAt(0)&&eS.test(n)){let i="x"===n[1].toLowerCase()?parseInt(n.slice(2),16):parseInt(n.slice(1),10);return ex(i)?ev(i):r}let i=ed(r);return i!==r?i:r}function eT(r){return 0>r.indexOf("\\")?r:r.replace(eC,"$1")}function eD(r){return 0>r.indexOf("\\")&&0>r.indexOf("&")?r:r.replace(eE,function(r,n,i){return n||eM(r,i)})}let eF=/[&<>"]/,eI=/[&<>"]/g,eL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function eR(r){return eL[r]}function eN(r){return eF.test(r)?r.replace(eI,eR):r}let eO=/[.?*+^$[\]\\(){}|-]/g;function ez(r){return r.replace(eO,"\\$&")}function eP(r){switch(r){case 9:case 32:return!0}return!1}function e$(r){if(r>=8192&&r<=8202)return!0;switch(r){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function eB(r){return W.test(r)||J.test(r)}function eq(r){return eB(ev(r))}function ej(r){switch(r){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function eH(r){return(r=r.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}function eV(r){return 32===r||9===r||10===r||13===r}function eU(r){let n=0;for(;n<r.length&&eV(r.charCodeAt(n));n++);let i=r.length-1;for(;i>=n&&eV(r.charCodeAt(i));i--);return r.slice(n,i+1)}let eW={mdurl:y,ucmicro:k};function eJ(r,n,i){let s,o,l,a,u=r.posMax,c=r.pos;for(r.pos=n+1,s=1;r.pos<u;){if(93===(l=r.src.charCodeAt(r.pos))&&0==--s){o=!0;break}if(a=r.pos,r.md.inline.skipToken(r),91===l){if(a===r.pos-1)s++;else if(i)return r.pos=c,-1}}let h=-1;return o&&(h=r.pos),r.pos=c,h}function eK(r,n,i){let s,o=n,l={ok:!1,pos:0,str:""};if(60===r.charCodeAt(o)){for(o++;o<i&&10!==(s=r.charCodeAt(o))&&60!==s;){if(62===s){l.pos=o+1,l.str=eD(r.slice(n+1,o)),l.ok=!0;break}if(92===s&&o+1<i){o+=2;continue}o++}return l}let a=0;for(;o<i&&32!==(s=r.charCodeAt(o))&&!(s<32)&&127!==s;){if(92===s&&o+1<i){if(32===r.charCodeAt(o+1))break;o+=2;continue}if(40===s&&++a>32)return l;if(41===s){if(0===a)break;a--}o++}return n===o||0!==a||(l.str=eD(r.slice(n,o)),l.pos=o,l.ok=!0),l}function eG(r,n,i,s){let o,l=n,a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(s)a.str=s.str,a.marker=s.marker;else{if(l>=i)return a;let s=r.charCodeAt(l);if(34!==s&&39!==s&&40!==s)return a;n++,l++,40===s&&(s=41),a.marker=s}for(;l<i;){if((o=r.charCodeAt(l))===a.marker)return a.pos=l+1,a.str+=eD(r.slice(n,l)),a.ok=!0,a;if(40===o&&41===a.marker)return a;92===o&&l+1<i&&l++,l++}return a.can_continue=!0,a.str+=eD(r.slice(n,l)),a}let eZ={};function eX(){this.rules=eb({},eZ)}eZ.code_inline=function(r,n,i,s,o){let l=r[n];return"<code"+o.renderAttrs(l)+">"+eN(l.content)+"</code>"},eZ.code_block=function(r,n,i,s,o){let l=r[n];return"<pre"+o.renderAttrs(l)+"><code>"+eN(r[n].content)+"</code></pre>\n"},eZ.fence=function(r,n,i,s,o){let l,a=r[n],u=a.info?eD(a.info).trim():"",c="",h="";if(u){let r=u.split(/(\s+)/g);c=r[0],h=r.slice(2).join("")}if(0===(l=i.highlight&&i.highlight(a.content,c,h)||eN(a.content)).indexOf("<pre"))return l+"\n";if(u){let r=a.attrIndex("class"),n=a.attrs?a.attrs.slice():[];r<0?n.push(["class",i.langPrefix+c]):(n[r]=n[r].slice(),n[r][1]+=" "+i.langPrefix+c);let s={attrs:n};return`<pre><code${o.renderAttrs(s)}>${l}</code></pre>