@tickernelz/wardmote-ui 2026.1109.0 → 2026.1111.0

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 (499) hide show
  1. package/dist/assets/AccessSelectIdentity-BzNL_ZaL.js +1 -0
  2. package/dist/assets/ActiveAgentsPanel-CLj_ucN7.js +1 -0
  3. package/dist/assets/AdapterManager-8ofINbXH.js +1 -0
  4. package/dist/assets/AdvancedToolsRoute-dQcLG_fZ.js +39 -0
  5. package/dist/assets/AgentActionButtons-pRsHFtLW.js +1 -0
  6. package/dist/assets/AgentAvatar-EsXsSxSG.js +1 -0
  7. package/dist/assets/AgentBubbleActionRow-nLDgzu9o.js +1 -0
  8. package/dist/assets/AgentCharacter-DzxzveQH.js +2 -0
  9. package/dist/assets/AgentChat-DTQT-Wek.js +1 -0
  10. package/dist/assets/AgentChats-DztS4ACV.js +1 -0
  11. package/dist/assets/AgentDefaults-xGoI264I.js +1 -0
  12. package/dist/assets/AgentDetail-BbpgFl_G.js +38 -0
  13. package/dist/assets/AgentIconPicker-DHCKaIkZ.js +1 -0
  14. package/dist/assets/AgentIdentity-GjMQAWCv.js +1 -0
  15. package/dist/assets/AgentMailCredentialField-CJcF0Clw.js +1 -0
  16. package/dist/assets/AgentMultiSelect-ChKUNflE.js +1 -0
  17. package/dist/assets/AgentRoleEditor-BaT_mb8k.js +1 -0
  18. package/dist/assets/AgentSetupPrompt-CRMBM6wm.js +30 -0
  19. package/dist/assets/AgentTodoCard-BCx1biOy.js +1 -0
  20. package/dist/assets/Agents-BTZu-vy-.js +3 -0
  21. package/dist/assets/AppDetail-Bw4J28Ak.js +5 -0
  22. package/dist/assets/AppLogo-DTmvrLai.js +1 -0
  23. package/dist/assets/AppNotConnected-CBliUH8m.js +1 -0
  24. package/dist/assets/ApprovalCard-DKGjyQt-.js +1 -0
  25. package/dist/assets/ApprovalDetail-DVVR3EtT.js +1 -0
  26. package/dist/assets/ApprovalPayload-DekKq-IE.js +1 -0
  27. package/dist/assets/Approvals-CLeSmmEV.js +1 -0
  28. package/dist/assets/AppsConnect-C35NNIiG.js +1 -0
  29. package/dist/assets/AppsReview-lab3deOa.js +1 -0
  30. package/dist/assets/ArtifactCard-BOcWFgmA.js +1 -0
  31. package/dist/assets/Artifacts-DAtpWAuL.js +1 -0
  32. package/dist/assets/AssistantConnection-gcHktiyu.js +1 -0
  33. package/dist/assets/AttentionInteractionResolver-Cm0k_3MB.js +1 -0
  34. package/dist/assets/AuditHub-C6U9wM2v.js +1 -0
  35. package/dist/assets/Auth-BdXfGiLC.js +3 -0
  36. package/dist/assets/BoardChat-BTFAl90K.js +18 -0
  37. package/dist/assets/BoardClaim-Cv56WNDU.js +1 -0
  38. package/dist/assets/BootstrapSetupUxLab-DbE6ARGg.js +1 -0
  39. package/dist/assets/BreadcrumbContext-C1Pz9E0M.js +1 -0
  40. package/dist/assets/Browse-0mLkYDuT.js +1 -0
  41. package/dist/assets/BudgetPolicyCard-BwV8P4n4.js +1 -0
  42. package/dist/assets/CaseDetail-X0DGQoca.js +2 -0
  43. package/dist/assets/CaseIdentifierKey-DgiLO3Rb.js +1 -0
  44. package/dist/assets/Cases-gjrf6tmu.js +2 -0
  45. package/dist/assets/ChatEndpointDetail-Co2K-j6p.js +5 -0
  46. package/dist/assets/ChatEndpointSetup-XspGek-A.js +1 -0
  47. package/dist/assets/ChatIdentityConfirm-m3fNvAJx.js +1 -0
  48. package/dist/assets/ChoiceControls-Cy8E_BqQ.js +1 -0
  49. package/dist/assets/CliAuth-CTkJ-3kI.js +1 -0
  50. package/dist/assets/CommentAttributionChip-DHuPOHJh.js +1 -0
  51. package/dist/assets/Companies-BbbaWb0v.js +1 -0
  52. package/dist/assets/CompanyAccess-Dmq_cs8a.js +1 -0
  53. package/dist/assets/CompanyActivity-D1j2INEB.js +1 -0
  54. package/dist/assets/CompanyConnections-CZOQquHF.js +1 -0
  55. package/dist/assets/CompanyContext-BxCDBNSH.js +1 -0
  56. package/dist/assets/CompanyEnvironments-DDbrQrMB.js +3 -0
  57. package/dist/assets/CompanyExport-B0eLuNvu.js +4 -0
  58. package/dist/assets/CompanyImport-DbbCQEFp.js +1 -0
  59. package/dist/assets/CompanySettings-8ROAg5aG.js +1 -0
  60. package/dist/assets/CompanySettingsPluginPage-B-79nVuk.js +1 -0
  61. package/dist/assets/CompanySkills-BfBhMNaP.js +10 -0
  62. package/dist/assets/ComposerAddMenu-DBuHSmG4.js +3 -0
  63. package/dist/assets/ConfigureBuiltInAgentModal-BkaylF48.js +1 -0
  64. package/dist/assets/ConnectionSetupFlow-Dzuzx7jk.js +40 -0
  65. package/dist/assets/CopyText-CW3qWFPY.js +1 -0
  66. package/dist/assets/CopyableGatewayUrl-C8LwXvVu.js +1 -0
  67. package/dist/assets/CrossIssueCollaborationUxLab-BNEDnULO.js +1 -0
  68. package/dist/assets/Dashboard-C_87MSE2.js +2 -0
  69. package/dist/assets/DashboardLive-CdHY1mHk.js +1 -0
  70. package/dist/assets/DecisionDateChips-BckDENkn.js +1 -0
  71. package/dist/assets/DecisionModelSettings-DiqQ14Zd.js +1 -0
  72. package/dist/assets/DecisionQueuePage-BZrUoCk3.js +1 -0
  73. package/dist/assets/DesignGuide-B38yltct.js +23 -0
  74. package/dist/assets/DocumentFrameHeader-C57Py4YE.js +1 -0
  75. package/dist/assets/EmailConnectionAccess-CgZl2FFX.js +1 -0
  76. package/dist/assets/EmailEndpointSetup-Dpg3e5IP.js +1 -0
  77. package/dist/assets/EnforcementBanner-CqY3eZb5.js +1 -0
  78. package/dist/assets/EntityRow-CsMXIXXb.js +1 -0
  79. package/dist/assets/ExecutionWorkspaceDetail-w0tph5fx.js +19 -0
  80. package/dist/assets/FilterBar-BsmtWqB7.js +1 -0
  81. package/dist/assets/FoldCurtain-BirYTOEh.js +1 -0
  82. package/dist/assets/FolderControls-DfQCO8-2.js +1 -0
  83. package/dist/assets/GatewayDetail-Cf6WshG5.js +2 -0
  84. package/dist/assets/GatewaysList-C3fEQHRs.js +1 -0
  85. package/dist/assets/GoalDetail-B2jZMNHQ.js +1 -0
  86. package/dist/assets/GoalTree-Btaagjxs.js +1 -0
  87. package/dist/assets/Goals-0Q2Gnko1.js +1 -0
  88. package/dist/assets/Identity-DHk25Fo0.js +1 -0
  89. package/dist/assets/ImageGalleryModal-OwUAU2AO.js +1 -0
  90. package/dist/assets/Inbox-Bk8khlSh.js +2 -0
  91. package/dist/assets/InlineBanner-DnQWPYOq.js +1 -0
  92. package/dist/assets/InlineEditor-B-oEEW8R.js +1 -0
  93. package/dist/assets/InlineEntitySelector-NCqeSVBt.js +1 -0
  94. package/dist/assets/InstanceAccess-DyQFxK_O.js +1 -0
  95. package/dist/assets/InstanceAdvanced-C8uDSsPL.js +1 -0
  96. package/dist/assets/InstanceFeatures-CPYwZmZk.js +1 -0
  97. package/dist/assets/InviteLanding-o-enK_RP.js +1 -0
  98. package/dist/assets/IssueChatLongThreadPerf-CjaD3woT.js +2 -0
  99. package/dist/assets/IssueChatThread-CUlN-lN0.js +40 -0
  100. package/dist/assets/IssueDetail-CdKGl1_O.js +9 -0
  101. package/dist/assets/IssueDocumentAnnotations-DqMdyd5R.js +2 -0
  102. package/dist/assets/IssueOutputSection-BReOvQxZ.js +1 -0
  103. package/dist/assets/IssueRecoveryActionCard-DXthkoa2.js +1 -0
  104. package/dist/assets/IssueReferenceActivitySummary-BybOSmTQ.js +1 -0
  105. package/dist/assets/IssueReferencePill-Byyo3mWU.js +1 -0
  106. package/dist/assets/IssueThreadInteractionCard-CnGISjFd.js +9 -0
  107. package/dist/assets/IssueWriteDenialNotice-CFwpbsKd.js +1 -0
  108. package/dist/assets/Issues-BrnnvHeE.js +3 -0
  109. package/dist/assets/JoinRequestQueue-D2RLtri2.js +1 -0
  110. package/dist/assets/JsonSchemaForm-Cn579kgp.js +1 -0
  111. package/dist/assets/LiveNowTodoLine-DJoyO8eZ.js +1 -0
  112. package/dist/assets/ManagedAiConnectionDetails-DsAuL_cK.js +1 -0
  113. package/dist/assets/MarkdownBody-BfIbo0pr.js +16 -0
  114. package/dist/assets/MarkdownEditor-CCqgqbbX.js +85 -0
  115. package/dist/assets/McpConnect-BJhgeezW.js +1 -0
  116. package/dist/assets/MembershipAction-Bu1nqQYv.js +1 -0
  117. package/dist/assets/MetricCard-DCSvmMqn.js +1 -0
  118. package/dist/assets/MissingPluginTabPlaceholder-UM0Cgk9J.js +1 -0
  119. package/dist/assets/ModelsAndProviders-B0gYOLvd.js +1 -0
  120. package/dist/assets/MootMark-DpAqNyxE.js +1 -0
  121. package/dist/assets/NewAgent-E1cSVMu1.js +1 -0
  122. package/dist/assets/OmpAllSettings-fSc31cIu.js +1 -0
  123. package/dist/assets/OmpSignIn-BSLYU6uC.js +3 -0
  124. package/dist/assets/OpenwaGatewayManager-UG0cEqQK.js +2 -0
  125. package/dist/assets/PathInstructionsModal-CEyWg69s.js +1 -0
  126. package/dist/assets/PipelineSettings-CY-XoAGe.js +2 -0
  127. package/dist/assets/Pipelines-lSbZ6-uQ.js +1 -0
  128. package/dist/assets/PixelsOffice-s8WCydt9.js +2 -0
  129. package/dist/assets/PluginManager-BLY48Rdb.js +1 -0
  130. package/dist/assets/PluginPage-CIvrzBLJ.js +1 -0
  131. package/dist/assets/PluginSettings-DugaPtGC.js +1 -0
  132. package/dist/assets/ProfileDetailRoute-CY9Zo_L-.js +1 -0
  133. package/dist/assets/ProfileSettings-Bfeh1MlI.js +1 -0
  134. package/dist/assets/ProfileWizardRoute-DQ8Wf6CN.js +1 -0
  135. package/dist/assets/ProjectDetail-Cie7YkeD.js +1 -0
  136. package/dist/assets/ProjectWorkspaceDetail-4Eh2xMnt.js +29 -0
  137. package/dist/assets/ProjectWorkspacesContent-CAEuHcwN.js +1 -0
  138. package/dist/assets/Projects-B7XDgtru.js +1 -0
  139. package/dist/assets/PublicIssueSharePage-D7UqYVp1.js +1 -0
  140. package/dist/assets/QuestionForm-BexjfwBC.js +7 -0
  141. package/dist/assets/QuotaBar-85eAFwZM.js +1 -0
  142. package/dist/assets/RepositoryEditor-C783DHwy.js +1 -0
  143. package/dist/assets/ResponsibleUserDenialNotice-CKbMq_8f.js +1 -0
  144. package/dist/assets/ResponsibleUserDenialUxLab-CFDLXQbq.js +1 -0
  145. package/dist/assets/ReviewQueueCard-LPKXTa7p.js +1 -0
  146. package/dist/assets/RichWorkProductCard-BO_PVS_R.js +1 -0
  147. package/dist/assets/RoutineActivityRow-BAIWOkSU.js +1 -0
  148. package/dist/assets/RoutineDetail-CxBrkRyy.js +2 -0
  149. package/dist/assets/RoutineRunVariablesDialog-BmocvukK.js +1 -0
  150. package/dist/assets/RoutineVariablesEditor-CBxgGYWn.js +1 -0
  151. package/dist/assets/Routines-BOD80kz-.js +1 -0
  152. package/dist/assets/ScrollToBottom-MElZx9KC.js +1 -0
  153. package/dist/assets/Search-CBYkMobM.js +1 -0
  154. package/dist/assets/SearchableSelect-DF7YpkdT.js +1 -0
  155. package/dist/assets/Secrets-Bu6q9QVj.js +4 -0
  156. package/dist/assets/SetupWizard-C3-3uNXq.js +1 -0
  157. package/dist/assets/SidebarContext-BDwcx9eV.js +1 -0
  158. package/dist/assets/SidebarNavItem-BFemYMPb.js +1 -0
  159. package/dist/assets/SkillBinaryFile-lsCfxI4Z.js +1 -0
  160. package/dist/assets/SkillCardIcon-D6Sde9N1.js +2 -0
  161. package/dist/assets/SkillSourceTree-BCndxsNf.js +2 -0
  162. package/dist/assets/SkillSources-B7fG3KBv.js +2 -0
  163. package/dist/assets/SkillStudio-BEAfNXcI.js +9 -0
  164. package/dist/assets/SourceTrustBadge-BaYEFytm.js +1 -0
  165. package/dist/assets/StatusCards-BfwQO3yd.js +1 -0
  166. package/dist/assets/StatusIcon-C2NWeA8n.js +1 -0
  167. package/dist/assets/SummarySlotCard-CmxW3-lC.js +1 -0
  168. package/dist/assets/TaskChatComposerTakeoverContext-DWOxDlEu.js +1 -0
  169. package/dist/assets/TaskChatLab-B0aJ05Zn.js +11 -0
  170. package/dist/assets/TaskChatMarker-CqvZL5i4.js +2 -0
  171. package/dist/assets/TaskChatProtocolCard-poluyifm.js +1 -0
  172. package/dist/assets/TaskChatThreadView-QQeO-S6o.js +4 -0
  173. package/dist/assets/TaskDetailRelationsPanel-Bk1aFfQv.js +1 -0
  174. package/dist/assets/TaskTreeControls-CDIjiEFr.js +3 -0
  175. package/dist/assets/Terminal-_XGdPaFV.js +1 -0
  176. package/dist/assets/TerminalView-DYJK_6rV.js +58 -0
  177. package/dist/assets/ThemeContext-DD1EP5qf.js +1 -0
  178. package/dist/assets/ThemeToggle-CYTGbBo5.js +1 -0
  179. package/dist/assets/ToastContext-hirVjDXt.js +1 -0
  180. package/dist/assets/ToolsAdminGate-CGmWPDuY.js +1 -0
  181. package/dist/assets/TrustPresetSection-BE9L2eQf.js +1 -0
  182. package/dist/assets/UserProfile-DUpHIz3U.js +1 -0
  183. package/dist/assets/WebhookUrlWarning-DEtZrsXR.js +1 -0
  184. package/dist/assets/WhatNeedsMe-s8nEWFq9.js +1 -0
  185. package/dist/assets/WorkspaceRuntimeControls-UK1xSSV7.js +1 -0
  186. package/dist/assets/Workspaces-J1XIkM6C.js +1 -0
  187. package/dist/assets/access-CbJiLazn.js +1 -0
  188. package/dist/assets/activity-Cvh9YJZ4.js +1 -0
  189. package/dist/assets/activity-format-B1sPfZ7Q.js +1 -0
  190. package/dist/assets/activity-in5dxqje.js +1 -0
  191. package/dist/assets/adapter-display-registry-DLd1q9Lr.js +1 -0
  192. package/dist/assets/adapters-qgEEm2Iw.js +1 -0
  193. package/dist/assets/agent-avatar-url-BqlU_BLu.js +1 -0
  194. package/dist/assets/agent-config-primitives-CB06SePU.js +1 -0
  195. package/dist/assets/agent-order-BE-pAWdx.js +1 -0
  196. package/dist/assets/agentChats-C2bFjmaS.js +1 -0
  197. package/dist/assets/agents-HNnobIne.js +1 -0
  198. package/dist/assets/alert-dialog-DnlZalnH.js +1 -0
  199. package/dist/assets/app-connect-policy-IJzJACTA.js +1 -0
  200. package/dist/assets/archive-CSkC2INB.js +1 -0
  201. package/dist/assets/archive-restore-lk6xiO1p.js +1 -0
  202. package/dist/assets/arrow-down-B0zOBhzU.js +1 -0
  203. package/dist/assets/arrow-down-left-DW1TelNZ.js +1 -0
  204. package/dist/assets/arrow-left-CKq5sdlw.js +1 -0
  205. package/dist/assets/arrow-right-CDTbNhTa.js +1 -0
  206. package/dist/assets/arrow-up-DgjI5OHn.js +1 -0
  207. package/dist/assets/arrow-up-down-RwrdXrTc.js +1 -0
  208. package/dist/assets/arrow-up-right-CnSONOF5.js +1 -0
  209. package/dist/assets/artifacts-CaQr7P1r.js +1 -0
  210. package/dist/assets/assets-j5Kg0sqV.js +1 -0
  211. package/dist/assets/assignees-DkQNbPzi.js +1 -0
  212. package/dist/assets/audit-navigation-IalprBz0.js +1 -0
  213. package/dist/assets/avatar-Cliaab6i.js +1 -0
  214. package/dist/assets/badge-CmRCZQXu.js +1 -0
  215. package/dist/assets/badge-check-ByHo5kUl.js +1 -0
  216. package/dist/assets/bot-TL3Jdr73.js +1 -0
  217. package/dist/assets/boxes-BxuK2fXe.js +1 -0
  218. package/dist/assets/braces-Cc8xLJ1U.js +1 -0
  219. package/dist/assets/browser-use-DEYvGklp.js +1 -0
  220. package/dist/assets/budgets-ifaLm6Di.js +1 -0
  221. package/dist/assets/button-Cq79rkKD.js +1 -0
  222. package/dist/assets/calendar-clock-Bm_UA63E.js +1 -0
  223. package/dist/assets/card-DCb-JOH-.js +1 -0
  224. package/dist/assets/cases-DVp6Rjr-.js +1 -0
  225. package/dist/assets/chatEndpoints-DkjTRXJB.js +1 -0
  226. package/dist/assets/check-vba7RPNV.js +1 -0
  227. package/dist/assets/checkbox-BGLv5God.js +1 -0
  228. package/dist/assets/chevron-down-CTfmQYtZ.js +1 -0
  229. package/dist/assets/chevron-left-DbSymkYp.js +1 -0
  230. package/dist/assets/chevron-right-CZqG6c6-.js +1 -0
  231. package/dist/assets/chevron-up-CzC1gtv6.js +1 -0
  232. package/dist/assets/chip-BzNFVgX5.js +1 -0
  233. package/dist/assets/circle-3iXc8Bn9.js +1 -0
  234. package/dist/assets/circle-alert-DXWfyHyZ.js +1 -0
  235. package/dist/assets/circle-dot-ClSiVq7g.js +1 -0
  236. package/dist/assets/circle-question-mark-CqwY53-2.js +1 -0
  237. package/dist/assets/circle-slash-CFjhY0cX.js +1 -0
  238. package/dist/assets/circle-x-DlwqHtyY.js +1 -0
  239. package/dist/assets/clipboard-CTLKYvRL.js +1 -0
  240. package/dist/assets/clipboard-paste-0RG8HmtD.js +1 -0
  241. package/dist/assets/clock-BoEHLMU_.js +1 -0
  242. package/dist/assets/cloud-J5TXOfaU.js +1 -0
  243. package/dist/assets/code-xml-CfpLGfdE.js +1 -0
  244. package/dist/assets/coins-BzhY_8bw.js +1 -0
  245. package/dist/assets/collapsible-BVnhGR5_.js +1 -0
  246. package/dist/assets/color-contrast-BHHcEMtO.js +1 -0
  247. package/dist/assets/columns-3-BEJ-fVu5.js +1 -0
  248. package/dist/assets/command-Cq8PZDyP.js +5 -0
  249. package/dist/assets/companies-query-CmKa9bVw.js +1 -0
  250. package/dist/assets/company-skill-routes-D5LJ1l8M.js +1 -0
  251. package/dist/assets/connection-identity-HeZN7f9X.js +1 -0
  252. package/dist/assets/connection-owner-DfXYDqVS.js +1 -0
  253. package/dist/assets/copy-DWkF-rFH.js +1 -0
  254. package/dist/assets/createLucideIcon-C01KAfc1.js +94 -0
  255. package/dist/assets/decision-models-B27g9stT.js +1 -0
  256. package/dist/assets/{definition-CvJN1sEp.js → definition-CP66xiVi.js} +1 -1
  257. package/dist/assets/dialog-DAYoqqlE.js +1 -0
  258. package/dist/assets/dist-B6TpBrd3.js +1 -0
  259. package/dist/assets/dist-BAtkULn4.js +1 -0
  260. package/dist/assets/{dist-DmAaaBQr.js → dist-BEo-uoE2.js} +2 -2
  261. package/dist/assets/dist-BPuuaNc6.js +1 -0
  262. package/dist/assets/dist-BQx_Sj8Z.js +1 -0
  263. package/dist/assets/dist-BX4PSqp4.js +1 -0
  264. package/dist/assets/dist-BY93_d3Z.js +1 -0
  265. package/dist/assets/{dist-FvdhiKSj.js → dist-Bc6S4vv3.js} +2 -2
  266. package/dist/assets/dist-BgbeNgQ7.js +1 -0
  267. package/dist/assets/dist-BhEZ0cZQ.js +1 -0
  268. package/dist/assets/dist-BhxPxuMy.js +13 -0
  269. package/dist/assets/dist-BoCmQaxU.js +1 -0
  270. package/dist/assets/{dist-CIoBkeiq.js → dist-Bp5Y-deP.js} +1 -1
  271. package/dist/assets/dist-C7_8mWOJ.js +1 -0
  272. package/dist/assets/dist-CD47N__7.js +1 -0
  273. package/dist/assets/{dist-BiCFUZfM.js → dist-CN5Rg9XU.js} +4 -4
  274. package/dist/assets/dist-CcBZFMdg.js +1 -0
  275. package/dist/assets/dist-CdFTLNcc.js +1 -0
  276. package/dist/assets/dist-CjIC-l6P.js +1 -0
  277. package/dist/assets/{dist-DjLR87Xu.js → dist-Cv1Aw0YM.js} +1 -1
  278. package/dist/assets/dist-CxscfvXr.js +1 -0
  279. package/dist/assets/dist-D4qkWMdz.js +1 -0
  280. package/dist/assets/{dist-DbicEUjQ.js → dist-D61jI6QA.js} +1 -1
  281. package/dist/assets/dist-DTj_cM7l.js +1 -0
  282. package/dist/assets/dist-DTwCbVsv.js +7 -0
  283. package/dist/assets/dist-DXN4Acbb.js +1 -0
  284. package/dist/assets/dist-DY5RRJBY.js +1 -0
  285. package/dist/assets/dist-Dqr5P1yA.js +1 -0
  286. package/dist/assets/dist-DrXWoUSy.js +1 -0
  287. package/dist/assets/dist-Uvf9OORN.js +1 -0
  288. package/dist/assets/dist-Wi1mdRva.js +1 -0
  289. package/dist/assets/dist-ZRlzTkPa.js +1 -0
  290. package/dist/assets/dist-ds5P5TFe.js +13 -0
  291. package/dist/assets/dist-t8wEz_ib.js +1 -0
  292. package/dist/assets/dist-xt2ddRNe.js +1 -0
  293. package/dist/assets/dist-yKrp-Qew.js +1 -0
  294. package/dist/assets/dropdown-menu-BgB3ZFIW.js +1 -0
  295. package/dist/assets/dynamic-loader-ehitOaJV.js +103 -0
  296. package/dist/assets/ellipsis-BK2IHFgt.js +1 -0
  297. package/dist/assets/ellipsis-vertical-C5e3-e9R.js +1 -0
  298. package/dist/assets/email-CV3yYcNq.js +1 -0
  299. package/dist/assets/environment-variables-editor-BitLLMXQ.js +1 -0
  300. package/dist/assets/environments-CfHweeFn.js +1 -0
  301. package/dist/assets/es2015-DhDTIiZX.js +41 -0
  302. package/dist/assets/execution-projection-BGI5f3kX.js +1 -0
  303. package/dist/assets/external-link-CFqVy5ry.js +1 -0
  304. package/dist/assets/eye-BwNiGG0K.js +1 -0
  305. package/dist/assets/eye-off-DM4Mn0Ui.js +1 -0
  306. package/dist/assets/fast-responses-DPQkf5ib.js +1 -0
  307. package/dist/assets/file-_5byK_0p.js +1 -0
  308. package/dist/assets/file-code-corner-P0uyjZIh.js +1 -0
  309. package/dist/assets/file-pen-line-kClOj_yW.js +1 -0
  310. package/dist/assets/file-question-mark-CkUR8QEW.js +1 -0
  311. package/dist/assets/file-search-B7lfsYmF.js +1 -0
  312. package/dist/assets/file-text-Chu49UHl.js +1 -0
  313. package/dist/assets/flag-CrPUL4EW.js +1 -0
  314. package/dist/assets/flask-conical-Dcrf_nx_.js +1 -0
  315. package/dist/assets/folder-git-2-CLpnZyIw.js +1 -0
  316. package/dist/assets/folder-open-Kn4cJ9z0.js +1 -0
  317. package/dist/assets/folder-search-B8ukxS6T.js +1 -0
  318. package/dist/assets/funnel-DCdgde5v.js +1 -0
  319. package/dist/assets/git-pull-request-BpJt0qs7.js +1 -0
  320. package/dist/assets/github-icon-Cd7zG3cl.js +1 -0
  321. package/dist/assets/health-DgXwfcgQ.js +1 -0
  322. package/dist/assets/heartbeats-DqejhX23.js +1 -0
  323. package/dist/assets/inbox-Cbfplszq.js +1 -0
  324. package/dist/assets/inboxArchiveCache-BtWGk_ob.js +1 -0
  325. package/dist/assets/index-B68fUztV.js +63 -0
  326. package/dist/assets/index-EGhEwKJ3.css +2 -0
  327. package/dist/assets/info-DH5P_pOB.js +1 -0
  328. package/dist/assets/input-ChF32KiE.js +1 -0
  329. package/dist/assets/instance-settings-QXUWVmQs.js +1 -0
  330. package/dist/assets/instanceSettings-CUD5DYwc.js +1 -0
  331. package/dist/assets/interaction-audience-B7SSjTOH.js +1 -0
  332. package/dist/assets/interaction-card-visibility-BruS_M_b.js +1 -0
  333. package/dist/assets/invite-memory-CHGcQdLs.js +1 -0
  334. package/dist/assets/issue-attribution-DfN_3u2W.js +1 -0
  335. package/dist/assets/issue-blockers-CPChygIu.js +1 -0
  336. package/dist/assets/issue-filters-BO9xiK0c.js +1 -0
  337. package/dist/assets/issue-output-BWw5hGM4.js +1 -0
  338. package/dist/assets/issue-properties-DImTADpL.js +4 -0
  339. package/dist/assets/issue-share-BziUBrKs.js +1 -0
  340. package/dist/assets/issue-workspace-selection-ZZQ5MvBX.js +1 -0
  341. package/dist/assets/issueActiveRun-s6f-GUHq.js +1 -0
  342. package/dist/assets/key-round-hIknfaVC.js +1 -0
  343. package/dist/assets/label-B8cGBdHV.js +1 -0
  344. package/dist/assets/layout-dashboard-B47lh1t7.js +1 -0
  345. package/dist/assets/line-diff-DAcZgvm2.js +3 -0
  346. package/dist/assets/link-2-Czdp7P22.js +1 -0
  347. package/dist/assets/link-B5IDCTfS.js +1 -0
  348. package/dist/assets/list-filter-DGszpYtY.js +1 -0
  349. package/dist/assets/list-todo-mtfpHiej.js +1 -0
  350. package/dist/assets/log-in-xaKdjJ3s.js +1 -0
  351. package/dist/assets/managed-sandbox-environment-B8DewKvK.js +1 -0
  352. package/dist/assets/maximize-2-D_7SnXGd.js +1 -0
  353. package/dist/assets/{mention-chips-s9KWPIZD.js → mention-chips-rgpUYSS0.js} +9 -9
  354. package/dist/assets/message-square-plus-Bx97bVFn.js +1 -0
  355. package/dist/assets/minus-Cksvqs-H.js +1 -0
  356. package/dist/assets/model-DidtFy-U.js +1 -0
  357. package/dist/assets/model-fallback-BA1V-ii-.js +1 -0
  358. package/dist/assets/model-picker-fields-reyKlVR2.js +1 -0
  359. package/dist/assets/network-DuLdTW_2.js +1 -0
  360. package/dist/assets/octagon-alert-CDc0IOFm.js +1 -0
  361. package/dist/assets/octagon-x-BnObTt3C.js +1 -0
  362. package/dist/assets/omp-settings-model-RrukAqFT.js +1 -0
  363. package/dist/assets/package-CAlqg80l.js +1 -0
  364. package/dist/assets/paperclip-CdwdbvAb.js +1 -0
  365. package/dist/assets/pause-D5LWH4m4.js +1 -0
  366. package/dist/assets/pen-line-BctzdUrl.js +1 -0
  367. package/dist/assets/pencil-4y59RLDI.js +1 -0
  368. package/dist/assets/pipeline-stage-presentation-DplSUQ-v.js +2 -0
  369. package/dist/assets/pipelines-zw8JXnEw.js +1 -0
  370. package/dist/assets/play-DYcWlP80.js +1 -0
  371. package/dist/assets/plug-Dlmv_sib.js +1 -0
  372. package/dist/assets/plugins-DxlXA9g_.js +1 -0
  373. package/dist/assets/plus-XHeYelml.js +1 -0
  374. package/dist/assets/popover-Dq6_MkmZ.js +1 -0
  375. package/dist/assets/portable-files-CloN_vbk.js +1 -0
  376. package/dist/assets/power-Df1YORDz.js +1 -0
  377. package/dist/assets/presentation-mode-B1mYfRtC.js +1 -0
  378. package/dist/assets/primary-sidebar-styles-BdMiagDc.js +1 -0
  379. package/dist/assets/profile-summary-ClLOCEcJ.js +1 -0
  380. package/dist/assets/projects-DebVPi8C.js +1 -0
  381. package/dist/assets/proposal-review-COOriT05.js +1 -0
  382. package/dist/assets/query-placeholder-data-Bg4z2kcq.js +1 -0
  383. package/dist/assets/queryClient-zvH4bKo9.js +1 -0
  384. package/dist/assets/queryKeys-Br82Auye.js +1 -0
  385. package/dist/assets/radio-BIjLcReK.js +1 -0
  386. package/dist/assets/radio-card-BO_94Vo8.js +1 -0
  387. package/dist/assets/recent-agent-chats-BzbiZr3S.js +1 -0
  388. package/dist/assets/recent-assignees-DmalYaLf.js +1 -0
  389. package/dist/assets/recent-selections-BnN_nb6Y.js +1 -0
  390. package/dist/assets/refresh-cw-CqldqiKu.js +1 -0
  391. package/dist/assets/repeat-5LyAUYWe.js +1 -0
  392. package/dist/assets/resizable-panels-D6N09g1s.js +1 -0
  393. package/dist/assets/responsible-user-denial-Dyl0BwU5.js +1 -0
  394. package/dist/assets/retired-composio-DrxhEOpx.js +1 -0
  395. package/dist/assets/review-policy-C0aUsC3B.js +1 -0
  396. package/dist/assets/rotate-ccw-CMMEfcO3.js +1 -0
  397. package/dist/assets/rotate-cw-chXO5k8L.js +1 -0
  398. package/dist/assets/router-Bo2oJyq_.js +1 -0
  399. package/dist/assets/routines-Dj56gU5g.js +1 -0
  400. package/dist/assets/run-log-chunks-ZnzOvrXs.js +2 -0
  401. package/dist/assets/runRetryState-BykQUNQw.js +1 -0
  402. package/dist/assets/save-B-X79KYj.js +1 -0
  403. package/dist/assets/schema-config-fields-BKzRKOf-.js +1 -0
  404. package/dist/assets/scroll-area-C1fbWVPu.js +1 -0
  405. package/dist/assets/scroll-text-C2dYnVvE.js +1 -0
  406. package/dist/assets/search-BXCEz7xF.js +1 -0
  407. package/dist/assets/searchable-select-fvMNMcqm.js +1 -0
  408. package/dist/assets/secrets-DhK8O7Pz.js +1 -0
  409. package/dist/assets/segmented-tifc6Dov.js +1 -0
  410. package/dist/assets/select-zH7gqAbB.js +1 -0
  411. package/dist/assets/send-DixgMXzs.js +1 -0
  412. package/dist/assets/separator-B65gZ5VY.js +1 -0
  413. package/dist/assets/server-DnsT1uDe.js +1 -0
  414. package/dist/assets/server-cog-vS2OmfoT.js +1 -0
  415. package/dist/assets/settings-D88XZaPT.js +1 -0
  416. package/dist/assets/shared-CT8xZIqu.js +1 -0
  417. package/dist/assets/sheet-DnX__vl2.js +1 -0
  418. package/dist/assets/shield-KDhiJeJq.js +1 -0
  419. package/dist/assets/shield-alert-BEyIvSqK.js +1 -0
  420. package/dist/assets/shield-check-BBMPASnP.js +1 -0
  421. package/dist/assets/shield-question-mark-CzkOeQok.js +1 -0
  422. package/dist/assets/shield-x-Cf3sKG3X.js +1 -0
  423. package/dist/assets/sidebarPreferences-CdgZXAKV.js +1 -0
  424. package/dist/assets/skeleton-B4cIa_g2.js +1 -0
  425. package/dist/assets/skill-source-connect-return-C3vV7DQP.js +1 -0
  426. package/dist/assets/slots-FyJ3Hfus.js +49 -0
  427. package/dist/assets/smoke-lab-matrix-DWiBJIcl.js +1 -0
  428. package/dist/assets/square-DPfXoq29.js +1 -0
  429. package/dist/assets/star-B0Mu4cdA.js +15 -0
  430. package/dist/assets/sun-Bl_UqCKR.js +1 -0
  431. package/dist/assets/system-notice-comment-CoRAcwGq.js +1 -0
  432. package/dist/assets/tabs-B0vo1rAq.js +1 -0
  433. package/dist/assets/task-chat-attachments-DtAs6_z7.js +10 -0
  434. package/dist/assets/terminal-Bm6kwzsr.js +1 -0
  435. package/dist/assets/terminal-font-B-qtwS34.js +10 -0
  436. package/dist/assets/textarea-DddKJofz.js +1 -0
  437. package/dist/assets/thumbs-down-BVyvvF51.js +1 -0
  438. package/dist/assets/thumbs-up-BueMhd4r.js +1 -0
  439. package/dist/assets/toggle-switch-D8RWluFT.js +1 -0
  440. package/dist/assets/tool-taxonomy-ChJ16HLB.js +1 -0
  441. package/dist/assets/tools-ClJdhG8w.js +1 -0
  442. package/dist/assets/tooltip-BF1EZSM_.js +1 -0
  443. package/dist/assets/transcript-adapter-8zQ2IrC0.js +5 -0
  444. package/dist/assets/trash-CN4Xf2am.js +1 -0
  445. package/dist/assets/triangle-alert-DuUA72IB.js +1 -0
  446. package/dist/assets/use-adapter-capabilities-DIMhQ3jT.js +1 -0
  447. package/dist/assets/use-copy-action-JoIz-xmX.js +1 -0
  448. package/dist/assets/useAgentChatEnabled-hizcCAft.js +1 -0
  449. package/dist/assets/useAutosaveIndicator-DT0E_3dy.js +1 -0
  450. package/dist/assets/useHiddenSettings-CXOyNixn.js +1 -0
  451. package/dist/assets/useInfiniteQuery-Desl5o9L.js +1 -0
  452. package/dist/assets/useInstanceFeatureSettings-DVYS6vi6.js +1 -0
  453. package/dist/assets/useManagedSandboxOnly-Buxyl4mU.js +1 -0
  454. package/dist/assets/useMobileEntityPickerViewportStyle-CTKldW72.js +1 -0
  455. package/dist/assets/usePrefersReducedMotion-D9kOF5TM.js +1 -0
  456. package/dist/assets/useProfilesData-BaJegHE_.js +1 -0
  457. package/dist/assets/useQueries-Dsz6Nov_.js +1 -0
  458. package/dist/assets/useSecondTick-BpSp0EL3.js +1 -0
  459. package/dist/assets/useSharedPolling-BsEZUKWE.js +1 -0
  460. package/dist/assets/useSummaryDraftStream-B5G7DDoN.js +3 -0
  461. package/dist/assets/user-DrmBwrR4.js +1 -0
  462. package/dist/assets/user-check-wxCkYhKI.js +1 -0
  463. package/dist/assets/user-minus-D4gqJyh-.js +1 -0
  464. package/dist/assets/user-round-CafDnRCl.js +1 -0
  465. package/dist/assets/user-x-Cc_Mqj5k.js +1 -0
  466. package/dist/assets/users-BCTPIiOj.js +1 -0
  467. package/dist/assets/wand-sparkles-BAzjtC-H.js +1 -0
  468. package/dist/assets/webhook-BmdMp-g8.js +1 -0
  469. package/dist/assets/workspace-restore-Dz-CzQw6.js +1 -0
  470. package/dist/assets/x-s4V0MRUq.js +1 -0
  471. package/dist/brands/adapters/openai-dot.README.md +1 -1
  472. package/dist/fonts/NOTICE.md +1 -1
  473. package/dist/index.html +218 -15
  474. package/dist/sw.js +3 -3
  475. package/package.json +2 -2
  476. package/dist/assets/CompanyExport-CYFxCC1Q.js +0 -4
  477. package/dist/assets/Terminal-D1sTHQz6.js +0 -1
  478. package/dist/assets/clipboard-CxyEkvoK.js +0 -15
  479. package/dist/assets/dist-ADmyJC_l.js +0 -13
  480. package/dist/assets/dist-B-HzyktT.js +0 -1
  481. package/dist/assets/dist-BFga0g2x.js +0 -1
  482. package/dist/assets/dist-BaK4o7bx.js +0 -1
  483. package/dist/assets/dist-CJbhfiNe.js +0 -1
  484. package/dist/assets/dist-CZszqimh.js +0 -1
  485. package/dist/assets/dist-CcGiAOx5.js +0 -1
  486. package/dist/assets/dist-DSh9Dw6X.js +0 -1
  487. package/dist/assets/dist-DdOpxUxb.js +0 -1
  488. package/dist/assets/dist-DoyNzsOy.js +0 -1
  489. package/dist/assets/dist-EhfI7z6A.js +0 -1
  490. package/dist/assets/dist-SsWiWYLA.js +0 -1
  491. package/dist/assets/dist-XkY8-Aoh.js +0 -1
  492. package/dist/assets/dist-YRhRUevc.js +0 -1
  493. package/dist/assets/dist-r5__r9vw.js +0 -1
  494. package/dist/assets/dist-rLXyysom.js +0 -1
  495. package/dist/assets/dist-sxtw4GAs.js +0 -1
  496. package/dist/assets/dist-vVWPSW6f.js +0 -7
  497. package/dist/assets/index-Cs83aobu.js +0 -760
  498. package/dist/assets/index-DkK79TGw.css +0 -2
  499. package/dist/assets/x-CRY3o83U.js +0 -134
@@ -1,17 +1,17 @@
1
- var fn=Object.defineProperty;var r=(e,n)=>fn(e,"name",{value:n,configurable:!0});import{n as pn}from"./rolldown-runtime-ZpX3ckPj.js";import{cr as mn,fr as gn}from"./x-CRY3o83U.js";var Je="project://",et="agent://",kn="user://",tt="skill://",xn="routine://",dn=/^[0-9a-f]{6}$/i,bn=/^[0-9a-f]{3}$/i,yn=/^#[0-9a-f]{6}$/i,wn=/^#[0-9a-f]{3}$/i,In=/\[[^\]]*]\((agent:\/\/[^)\s]+)\)/gi,Sn=/^[a-z0-9-]+$/i,Cn=/^[a-z0-9][a-z0-9-]*$/i;function St(e){if(!e)return null;const n=e.trim();if(!n)return null;if(yn.test(n))return n.toLowerCase();if(dn.test(n))return`#${n.toLowerCase()}`;if(wn.test(n)){const t=n.slice(1).toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}if(bn.test(n)){const t=n.toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}return null}r(St,"normalizeHexColor");function al(e,n){const t=e.trim(),i=St(n??null);return i?`${Je}${t}?c=${encodeURIComponent(i.slice(1))}`:`${Je}${t}`}r(al,"buildProjectMentionHref");function vn(e){if(!e.startsWith("project://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="project:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{projectId:t,color:St(n.searchParams.get("c")??n.searchParams.get("color"))}:null}r(vn,"parseProjectMentionHref");function ol(e,n){const t=e.trim(),i=vt(n??null);return i?`${et}${t}?i=${encodeURIComponent(i)}`:`${et}${t}`}r(ol,"buildAgentMentionHref");function Ct(e){if(!e.startsWith("agent://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="agent:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{agentId:t,icon:vt(n.searchParams.get("i")??n.searchParams.get("icon"))}:null}r(Ct,"parseAgentMentionHref");function sl(e){return`${kn}${e.trim()}`}r(sl,"buildUserMentionHref");function En(e){if(!e.startsWith("user://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="user:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{userId:t}:null}r(En,"parseUserMentionHref");function cl(e,n){const t=e.trim(),i=Et(n??null);return i?`${tt}${t}?s=${encodeURIComponent(i)}`:`${tt}${t}`}r(cl,"buildSkillMentionHref");function Tn(e){if(!e.startsWith("skill://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="skill:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{skillId:t,slug:Et(n.searchParams.get("s")??n.searchParams.get("slug"))}:null}r(Tn,"parseSkillMentionHref");function hl(e){return`${xn}${e.trim()}`}r(hl,"buildRoutineMentionHref");function zn(e){if(!e.startsWith("routine://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="routine:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{routineId:t}:null}r(zn,"parseRoutineMentionHref");function fl(e){if(!e)return[];const n=new Set,t=new RegExp(In);let i;for(;(i=t.exec(e))!==null;){const u=Ct(i[1]);u&&n.add(u.agentId)}return[...n]}r(fl,"extractAgentMentionIds");function vt(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!Sn.test(n)?null:n}r(vt,"normalizeAgentIcon");function Et(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!Cn.test(n)?null:n}r(Et,"normalizeSkillSlug");var _n=/^[A-Z][A-Z0-9]*-\d+$/;function Tt(e){const n=e.trim().toUpperCase();return _n.test(n)?n:null}r(Tt,"normalizeIssueIdentifier");function pl(e){return`/issues/${Tt(e)??e.trim()}`}r(pl,"buildIssueReferenceHref");function An(e){const n=e.trim();if(!n)return null;let t;try{t=n.startsWith("/")?new URL(n,"https://paperclip.invalid"):new URL(n)}catch{return null}const i=t.pathname.split("/").map(u=>u.trim()).filter(Boolean);for(let u=0;u<i.length-1;u+=1){if(i[u]?.toLowerCase()!=="issues")continue;const l=Tt(i[u+1]??"");if(l)return{identifier:l}}return null}r(An,"parseIssueReferenceHref");function K(e,n,t,i){const u=e.length;let l=0,a;if(n<0?n=-n>u?0:u+n:n=n>u?u:n,t=t>0?t:0,i.length<1e4)a=Array.from(i),a.unshift(n,t),e.splice(...a);else for(t&&e.splice(n,t);l<i.length;)a=i.slice(l,l+1e4),a.unshift(n,0),e.splice(...a),l+=1e4,n+=1e4}r(K,"splice");function X(e,n){return e.length>0?(K(e,e.length,0,n),e):n}r(X,"push");var ee=ce(/[A-Za-z]/),J=ce(/[\dA-Za-z]/),Ln=ce(/[#-'*+\--9=?A-Z^-~]/);function Pe(e){return e!==null&&(e<32||e===127)}r(Pe,"asciiControl");var Oe=ce(/\d/),Fn=ce(/[\dA-Fa-f]/),Rn=ce(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}r(z,"markdownLineEnding");function U(e){return e!==null&&(e<0||e===32)}r(U,"markdownLineEndingOrSpace");function L(e){return e===-2||e===-1||e===32}r(L,"markdownSpace");var Bn=ce(new RegExp("\\p{P}|\\p{S}","u")),Mn=ce(/\s/);function ce(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}r(ce,"regexCheck");function de(e){if(e===null||U(e)||Mn(e))return 1;if(Bn(e))return 2}r(de,"classifyCharacter");function _e(e,n,t){const i=[];let u=-1;for(;++u<e.length;){const l=e[u].resolveAll;l&&!i.includes(l)&&(n=l(n,t),i.push(l))}return n}r(_e,"resolveAll");function ml(e){let n=(e||{}).singleTilde;const t={name:"strikethrough",tokenize:u,resolveAll:i};return n==null&&(n=!0),{text:{126:t},insideSpan:{null:[t]},attentionMarkers:{null:[126]}};function i(l,a){let o=-1;for(;++o<l.length;)if(l[o][0]==="enter"&&l[o][1].type==="strikethroughSequenceTemporary"&&l[o][1]._close){let s=o;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[o][1].end.offset-l[o][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[o][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[o][1].end)},p={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[o][1].start)},f=[["enter",c,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",p,a]],k=a.parser.constructs.insideSpan.null;k&&K(f,f.length,0,_e(k,l.slice(s+1,o),a)),K(f,f.length,0,[["exit",p,a],["enter",l[o][1],a],["exit",l[o][1],a],["exit",c,a]]),K(l,s-1,o-s+3,f),o=s+f.length-2;break}}for(o=-1;++o<l.length;)l[o][1].type==="strikethroughSequenceTemporary"&&(l[o][1].type="data");return l}r(i,"resolveAllStrikethrough");function u(l,a,o){const s=this.previous,c=this.events;let p=0;return f;function f(h){return s===126&&c[c.length-1][1].type!=="characterEscape"?o(h):(l.enter("strikethroughSequenceTemporary"),k(h))}function k(h){const w=de(s);if(h===126)return p>1?o(h):(l.consume(h),p++,k);if(p<2&&!n)return o(h);const C=l.exit("strikethroughSequenceTemporary"),v=de(h);return C._open=!v||v===2&&!!w,C._close=!w||w===2&&!!v,a(h)}}r(u,"tokenizeStrikethrough")}r(ml,"gfmStrikethrough");var Dn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];zt.peek=$n;function gl(){return{canContainEols:["delete"],enter:{strikethrough:Pn},exit:{strikethrough:On}}}r(gl,"gfmStrikethroughFromMarkdown");function kl(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Dn}],handlers:{delete:zt}}}r(kl,"gfmStrikethroughToMarkdown");function Pn(e){this.enter({type:"delete",children:[]},e)}r(Pn,"enterStrikethrough");function On(e){this.exit(e)}r(On,"exitStrikethrough");function zt(e,n,t,i){const u=t.createTracker(i),l=t.enter("strikethrough");let a=u.move("~~");return a+=t.containerPhrasing(e,{...u.current(),before:a,after:"~"}),a+=u.move("~~"),l(),a}r(zt,"handleDelete");function $n(){return"~"}r($n,"peekDelete");function xl(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,u=t.indexOf(n);for(;u!==-1;)i++,u=t.indexOf(n,u+n.length);return i}r(xl,"ccount");function dl(){}r(dl,"ok$1");function bl(){}r(bl,"unreachable");var nt=document.createElement("i");function Ne(e){const n="&"+e+";";nt.innerHTML=n;const t=nt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}r(Ne,"decodeNamedCharacterReference");function Se(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?rt(e.position):"start"in e||"end"in e?rt(e):"line"in e||"column"in e?$e(e):""}r(Se,"stringifyPosition");function $e(e){return it(e&&e.line)+":"+it(e&&e.column)}r($e,"point$1");function rt(e){return $e(e&&e.start)+"-"+$e(e&&e.end)}r(rt,"position");function it(e){return e&&typeof e=="number"?e:1}r(it,"index");var Y=class extends Error{static{r(this,"VFileMessage")}constructor(e,n,t){super(),typeof n=="string"&&(t=n,n=void 0);let i="",u={},l=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u={...n}),typeof e=="string"?i=e:!u.cause&&e&&(l=!0,i=e.message,u.cause=e),!u.ruleId&&!u.source&&typeof t=="string"){const o=t.indexOf(":");o===-1?u.ruleId=t:(u.source=t.slice(0,o),u.ruleId=t.slice(o+1))}if(!u.place&&u.ancestors&&u.ancestors){const o=u.ancestors[u.ancestors.length-1];o&&(u.place=o.position)}const a=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Se(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=l&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Y.prototype.file="";Y.prototype.name="";Y.prototype.reason="";Y.prototype.message="";Y.prototype.stack="";Y.prototype.column=void 0;Y.prototype.line=void 0;Y.prototype.ancestors=void 0;Y.prototype.cause=void 0;Y.prototype.fatal=void 0;Y.prototype.place=void 0;Y.prototype.ruleId=void 0;Y.prototype.source=void 0;var Hn=/[$_\p{ID_Start}]/u,Nn=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,jn=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,qn=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_t={};function yl(e){return e?Hn.test(String.fromCodePoint(e)):!1}r(yl,"start");function wl(e,n){const t=(n||_t).jsx?jn:Nn;return e?t.test(String.fromCodePoint(e)):!1}r(wl,"cont");function Il(e,n){return((n||_t).jsx?Vn:qn).test(e)}r(Il,"name");function D(e,n,t,i){const u=i?i-1:Number.POSITIVE_INFINITY;let l=0;return a;function a(s){return L(s)?(e.enter(t),o(s)):n(s)}function o(s){return L(s)&&l++<u?(e.consume(s),o):(e.exit(t),n(s))}}r(D,"factorySpace");function Un(e,n,t,i){const u=t.enter("blockquote"),l=t.createTracker(i);l.move("> "),l.shift(2);const a=t.indentLines(t.containerFlow(e,l.current()),Qn);return u(),a}r(Un,"blockquote");function Qn(e,n,t){return">"+(t?"":" ")+e}r(Qn,"map$1");function Wn(e,n){return ut(e,n.inConstruct,!0)&&!ut(e,n.notInConstruct,!1)}r(Wn,"patternInScope");function ut(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}r(ut,"listInScope");function lt(e,n,t,i){let u=-1;for(;++u<t.unsafe.length;)if(t.unsafe[u].character===`
2
- `&&Wn(t.stack,t.unsafe[u]))return/[ \t]/.test(i.before)?"":" ";return`\\
3
- `}r(lt,"hardBreak");function Gn(e,n){const t=String(e);let i=t.indexOf(n),u=i,l=0,a=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===u?++l>a&&(a=l):l=1,u=i+n.length,i=t.indexOf(n,u);return a}r(Gn,"longestStreak");function Kn(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}r(Kn,"formatCodeAsIndented");function Yn(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}r(Yn,"checkFence");function Xn(e,n,t,i){const u=Yn(t),l=e.value||"",a=u==="`"?"GraveAccent":"Tilde";if(Kn(e,t)){const f=t.enter("codeIndented"),k=t.indentLines(l,Zn);return f(),k}const o=t.createTracker(i),s=u.repeat(Math.max(Gn(l,u)+1,3)),c=t.enter("codeFenced");let p=o.move(s);if(e.lang){const f=t.enter(`codeFencedLang${a}`);p+=o.move(t.safe(e.lang,{before:p,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=t.enter(`codeFencedMeta${a}`);p+=o.move(" "),p+=o.move(t.safe(e.meta,{before:p,after:`
1
+ var an=Object.defineProperty;var r=(e,n)=>an(e,"name",{value:n,configurable:!0});import{n as on}from"./rolldown-runtime-ZpX3ckPj.js";import{mn as sn,vn as cn}from"./createLucideIcon-C01KAfc1.js";import"./agent-avatar-url-BqlU_BLu.js";import{i as hn,r as fn}from"./color-contrast-BHHcEMtO.js";var Xe="project://",Ze="agent://",pn="user://",Je="skill://",mn="routine://",gn=/^[0-9a-f]{6}$/i,kn=/^[0-9a-f]{3}$/i,xn=/^#[0-9a-f]{6}$/i,dn=/^#[0-9a-f]{3}$/i,bn=/\[[^\]]*]\((agent:\/\/[^)\s]+)\)/gi,yn=/^[a-z0-9-]+$/i,wn=/^[a-z0-9][a-z0-9-]*$/i;function bt(e){if(!e)return null;const n=e.trim();if(!n)return null;if(xn.test(n))return n.toLowerCase();if(gn.test(n))return`#${n.toLowerCase()}`;if(dn.test(n)){const t=n.slice(1).toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}if(kn.test(n)){const t=n.toLowerCase();return`#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`}return null}r(bt,"normalizeHexColor");function Zu(e,n){const t=e.trim(),i=bt(n??null);return i?`${Xe}${t}?c=${encodeURIComponent(i.slice(1))}`:`${Xe}${t}`}r(Zu,"buildProjectMentionHref");function In(e){if(!e.startsWith("project://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="project:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{projectId:t,color:bt(n.searchParams.get("c")??n.searchParams.get("color"))}:null}r(In,"parseProjectMentionHref");function Ju(e,n){const t=e.trim(),i=wt(n??null);return i?`${Ze}${t}?i=${encodeURIComponent(i)}`:`${Ze}${t}`}r(Ju,"buildAgentMentionHref");function yt(e){if(!e.startsWith("agent://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="agent:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{agentId:t,icon:wt(n.searchParams.get("i")??n.searchParams.get("icon"))}:null}r(yt,"parseAgentMentionHref");function el(e){return`${pn}${e.trim()}`}r(el,"buildUserMentionHref");function Sn(e){if(!e.startsWith("user://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="user:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{userId:t}:null}r(Sn,"parseUserMentionHref");function tl(e,n){const t=e.trim(),i=It(n??null);return i?`${Je}${t}?s=${encodeURIComponent(i)}`:`${Je}${t}`}r(tl,"buildSkillMentionHref");function Cn(e){if(!e.startsWith("skill://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="skill:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{skillId:t,slug:It(n.searchParams.get("s")??n.searchParams.get("slug"))}:null}r(Cn,"parseSkillMentionHref");function nl(e){return`${mn}${e.trim()}`}r(nl,"buildRoutineMentionHref");function vn(e){if(!e.startsWith("routine://"))return null;let n;try{n=new URL(e)}catch{return null}if(n.protocol!=="routine:")return null;const t=`${n.hostname}${n.pathname}`.replace(/^\/+/,"").trim();return t?{routineId:t}:null}r(vn,"parseRoutineMentionHref");function rl(e){if(!e)return[];const n=new Set,t=new RegExp(bn);let i;for(;(i=t.exec(e))!==null;){const u=yt(i[1]);u&&n.add(u.agentId)}return[...n]}r(rl,"extractAgentMentionIds");function wt(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!yn.test(n)?null:n}r(wt,"normalizeAgentIcon");function It(e){if(!e)return null;const n=e.trim().toLowerCase();return!n||!wn.test(n)?null:n}r(It,"normalizeSkillSlug");var En=/^[A-Z][A-Z0-9]*-\d+$/;function St(e){const n=e.trim().toUpperCase();return En.test(n)?n:null}r(St,"normalizeIssueIdentifier");function il(e){return`/issues/${St(e)??e.trim()}`}r(il,"buildIssueReferenceHref");function Tn(e){const n=e.trim();if(!n)return null;let t;try{t=n.startsWith("/")?new URL(n,"https://wardmote.invalid"):new URL(n)}catch{return null}const i=t.pathname.split("/").map(u=>u.trim()).filter(Boolean);for(let u=0;u<i.length-1;u+=1){if(i[u]?.toLowerCase()!=="issues")continue;const l=St(i[u+1]??"");if(l)return{identifier:l}}return null}r(Tn,"parseIssueReferenceHref");function K(e,n,t,i){const u=e.length;let l=0,a;if(n<0?n=-n>u?0:u+n:n=n>u?u:n,t=t>0?t:0,i.length<1e4)a=Array.from(i),a.unshift(n,t),e.splice(...a);else for(t&&e.splice(n,t);l<i.length;)a=i.slice(l,l+1e4),a.unshift(n,0),e.splice(...a),l+=1e4,n+=1e4}r(K,"splice");function X(e,n){return e.length>0?(K(e,e.length,0,n),e):n}r(X,"push");var ee=ce(/[A-Za-z]/),J=ce(/[\dA-Za-z]/),zn=ce(/[#-'*+\--9=?A-Z^-~]/);function Me(e){return e!==null&&(e<32||e===127)}r(Me,"asciiControl");var De=ce(/\d/),_n=ce(/[\dA-Fa-f]/),An=ce(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}r(z,"markdownLineEnding");function U(e){return e!==null&&(e<0||e===32)}r(U,"markdownLineEndingOrSpace");function L(e){return e===-2||e===-1||e===32}r(L,"markdownSpace");var Ln=ce(new RegExp("\\p{P}|\\p{S}","u")),Fn=ce(/\s/);function ce(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}r(ce,"regexCheck");function de(e){if(e===null||U(e)||Fn(e))return 1;if(Ln(e))return 2}r(de,"classifyCharacter");function _e(e,n,t){const i=[];let u=-1;for(;++u<e.length;){const l=e[u].resolveAll;l&&!i.includes(l)&&(n=l(n,t),i.push(l))}return n}r(_e,"resolveAll");function ul(e){let n=(e||{}).singleTilde;const t={name:"strikethrough",tokenize:u,resolveAll:i};return n==null&&(n=!0),{text:{126:t},insideSpan:{null:[t]},attentionMarkers:{null:[126]}};function i(l,a){let o=-1;for(;++o<l.length;)if(l[o][0]==="enter"&&l[o][1].type==="strikethroughSequenceTemporary"&&l[o][1]._close){let s=o;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[o][1].end.offset-l[o][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[o][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[o][1].end)},p={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[o][1].start)},f=[["enter",c,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",p,a]],k=a.parser.constructs.insideSpan.null;k&&K(f,f.length,0,_e(k,l.slice(s+1,o),a)),K(f,f.length,0,[["exit",p,a],["enter",l[o][1],a],["exit",l[o][1],a],["exit",c,a]]),K(l,s-1,o-s+3,f),o=s+f.length-2;break}}for(o=-1;++o<l.length;)l[o][1].type==="strikethroughSequenceTemporary"&&(l[o][1].type="data");return l}r(i,"resolveAllStrikethrough");function u(l,a,o){const s=this.previous,c=this.events;let p=0;return f;function f(h){return s===126&&c[c.length-1][1].type!=="characterEscape"?o(h):(l.enter("strikethroughSequenceTemporary"),k(h))}function k(h){const w=de(s);if(h===126)return p>1?o(h):(l.consume(h),p++,k);if(p<2&&!n)return o(h);const C=l.exit("strikethroughSequenceTemporary"),v=de(h);return C._open=!v||v===2&&!!w,C._close=!w||w===2&&!!v,a(h)}}r(u,"tokenizeStrikethrough")}r(ul,"gfmStrikethrough");var Rn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ct.peek=Dn;function ll(){return{canContainEols:["delete"],enter:{strikethrough:Bn},exit:{strikethrough:Mn}}}r(ll,"gfmStrikethroughFromMarkdown");function al(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Rn}],handlers:{delete:Ct}}}r(al,"gfmStrikethroughToMarkdown");function Bn(e){this.enter({type:"delete",children:[]},e)}r(Bn,"enterStrikethrough");function Mn(e){this.exit(e)}r(Mn,"exitStrikethrough");function Ct(e,n,t,i){const u=t.createTracker(i),l=t.enter("strikethrough");let a=u.move("~~");return a+=t.containerPhrasing(e,{...u.current(),before:a,after:"~"}),a+=u.move("~~"),l(),a}r(Ct,"handleDelete");function Dn(){return"~"}r(Dn,"peekDelete");function ol(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,u=t.indexOf(n);for(;u!==-1;)i++,u=t.indexOf(n,u+n.length);return i}r(ol,"ccount");function sl(){}r(sl,"ok$1");function cl(){}r(cl,"unreachable");var et=document.createElement("i");function $e(e){const n="&"+e+";";et.innerHTML=n;const t=et.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}r($e,"decodeNamedCharacterReference");function Se(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?tt(e.position):"start"in e||"end"in e?tt(e):"line"in e||"column"in e?Pe(e):""}r(Se,"stringifyPosition");function Pe(e){return nt(e&&e.line)+":"+nt(e&&e.column)}r(Pe,"point$1");function tt(e){return Pe(e&&e.start)+"-"+Pe(e&&e.end)}r(tt,"position");function nt(e){return e&&typeof e=="number"?e:1}r(nt,"index");var G=class extends Error{static{r(this,"VFileMessage")}constructor(e,n,t){super(),typeof n=="string"&&(t=n,n=void 0);let i="",u={},l=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u={...n}),typeof e=="string"?i=e:!u.cause&&e&&(l=!0,i=e.message,u.cause=e),!u.ruleId&&!u.source&&typeof t=="string"){const o=t.indexOf(":");o===-1?u.ruleId=t:(u.source=t.slice(0,o),u.ruleId=t.slice(o+1))}if(!u.place&&u.ancestors&&u.ancestors){const o=u.ancestors[u.ancestors.length-1];o&&(u.place=o.position)}const a=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Se(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=l&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};G.prototype.file="";G.prototype.name="";G.prototype.reason="";G.prototype.message="";G.prototype.stack="";G.prototype.column=void 0;G.prototype.line=void 0;G.prototype.ancestors=void 0;G.prototype.cause=void 0;G.prototype.fatal=void 0;G.prototype.place=void 0;G.prototype.ruleId=void 0;G.prototype.source=void 0;var Pn=/[$_\p{ID_Start}]/u,On=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,$n=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Nn=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hn=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vt={};function hl(e){return e?Pn.test(String.fromCodePoint(e)):!1}r(hl,"start");function fl(e,n){const t=(n||vt).jsx?$n:On;return e?t.test(String.fromCodePoint(e)):!1}r(fl,"cont");function pl(e,n){return((n||vt).jsx?Hn:Nn).test(e)}r(pl,"name");function D(e,n,t,i){const u=i?i-1:Number.POSITIVE_INFINITY;let l=0;return a;function a(s){return L(s)?(e.enter(t),o(s)):n(s)}function o(s){return L(s)&&l++<u?(e.consume(s),o):(e.exit(t),n(s))}}r(D,"factorySpace");function jn(e,n,t,i){const u=t.enter("blockquote"),l=t.createTracker(i);l.move("> "),l.shift(2);const a=t.indentLines(t.containerFlow(e,l.current()),qn);return u(),a}r(jn,"blockquote");function qn(e,n,t){return">"+(t?"":" ")+e}r(qn,"map$1");function Vn(e,n){return rt(e,n.inConstruct,!0)&&!rt(e,n.notInConstruct,!1)}r(Vn,"patternInScope");function rt(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}r(rt,"listInScope");function it(e,n,t,i){let u=-1;for(;++u<t.unsafe.length;)if(t.unsafe[u].character===`
2
+ `&&Vn(t.stack,t.unsafe[u]))return/[ \t]/.test(i.before)?"":" ";return`\\
3
+ `}r(it,"hardBreak");function Un(e,n){const t=String(e);let i=t.indexOf(n),u=i,l=0,a=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===u?++l>a&&(a=l):l=1,u=i+n.length,i=t.indexOf(n,u);return a}r(Un,"longestStreak");function Qn(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}r(Qn,"formatCodeAsIndented");function Wn(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}r(Wn,"checkFence");function Yn(e,n,t,i){const u=Wn(t),l=e.value||"",a=u==="`"?"GraveAccent":"Tilde";if(Qn(e,t)){const f=t.enter("codeIndented"),k=t.indentLines(l,Kn);return f(),k}const o=t.createTracker(i),s=u.repeat(Math.max(Un(l,u)+1,3)),c=t.enter("codeFenced");let p=o.move(s);if(e.lang){const f=t.enter(`codeFencedLang${a}`);p+=o.move(t.safe(e.lang,{before:p,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=t.enter(`codeFencedMeta${a}`);p+=o.move(" "),p+=o.move(t.safe(e.meta,{before:p,after:`
4
4
  `,encode:["`"],...o.current()})),f()}return p+=o.move(`
5
5
  `),l&&(p+=o.move(l+`
6
- `)),p+=o.move(s),c(),p}r(Xn,"code");function Zn(e,n,t){return(t?"":" ")+e}r(Zn,"map");function je(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}r(je,"checkQuote");function Jn(e,n,t,i){const u=je(t),l=u==='"'?"Quote":"Apostrophe",a=t.enter("definition");let o=t.enter("label");const s=t.createTracker(i);let c=s.move("[");return c+=s.move(t.safe(t.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":`
7
- `,...s.current()}))),o(),e.title&&(o=t.enter(`title${l}`),c+=s.move(" "+u),c+=s.move(t.safe(e.title,{before:c,after:u,...s.current()})),c+=s.move(u),o()),a(),c}r(Jn,"definition$1");function er(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}r(er,"checkEmphasis");function ve(e){return"&#x"+e.toString(16).toUpperCase()+";"}r(ve,"encodeCharacterReference");function ze(e,n,t){const i=de(e),u=de(n);return i===void 0?u===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}r(ze,"encodeInfo");At.peek=tr;function At(e,n,t,i){const u=er(t),l=t.enter("emphasis"),a=t.createTracker(i),o=a.move(u);let s=a.move(t.containerPhrasing(e,{after:u,before:o,...a.current()}));const c=s.charCodeAt(0),p=ze(i.before.charCodeAt(i.before.length-1),c,u);p.inside&&(s=ve(c)+s.slice(1));const f=s.charCodeAt(s.length-1),k=ze(i.after.charCodeAt(0),f,u);k.inside&&(s=s.slice(0,-1)+ve(f));const h=a.move(u);return l(),t.attentionEncodeSurroundingInfo={after:k.outside,before:p.outside},o+s+h}r(At,"emphasis");function tr(e,n,t){return t.options.emphasis||"*"}r(tr,"emphasisPeek");var qe=r((function(e){if(e==null)return ur;if(typeof e=="function")return Ae(e);if(typeof e=="object")return Array.isArray(e)?nr(e):rr(e);if(typeof e=="string")return ir(e);throw new Error("Expected function, string, or object as test")}),"convert");function nr(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=qe(e[t]);return Ae(i);function i(...u){let l=-1;for(;++l<n.length;)if(n[l].apply(this,u))return!0;return!1}}r(nr,"anyFactory");function rr(e){const n=e;return Ae(t);function t(i){const u=i;let l;for(l in e)if(u[l]!==n[l])return!1;return!0}}r(rr,"propertiesFactory");function ir(e){return Ae(n);function n(t){return t&&t.type===e}}r(ir,"typeFactory");function Ae(e){return n;function n(t,i,u){return!!(lr(t)&&e.call(this,t,typeof i=="number"?i:void 0,u||void 0))}}r(Ae,"castFactory");function ur(){return!0}r(ur,"ok");function lr(e){return e!==null&&typeof e=="object"&&"type"in e}r(lr,"looksLikeANode");var Lt=[];function ar(e,n,t,i){let u;typeof n=="function"&&typeof t!="function"?(i=t,t=n):u=n;const l=qe(u),a=i?-1:1;o(e,void 0,[])();function o(s,c,p){const f=s&&typeof s=="object"?s:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return k;function k(){let h=Lt,w,C,v;if((!n||l(s,c,p[p.length-1]||void 0))&&(h=or(t(s,p)),h[0]===!1))return h;if("children"in s&&s.children){const b=s;if(b.children&&h[0]!=="skip")for(C=(i?b.children.length:-1)+a,v=p.concat(b);C>-1&&C<b.children.length;){const _=b.children[C];if(w=o(_,C,v)(),w[0]===!1)return w;C=typeof w[1]=="number"?w[1]:C+a}}return h}}r(o,"factory")}r(ar,"visitParents");function or(e){return Array.isArray(e)?e:typeof e=="number"?[!0,e]:e==null?Lt:[e]}r(or,"toResult");function sr(e,n,t,i){let u,l,a;typeof n=="function"&&typeof t!="function"?(l=void 0,a=n,u=t):(l=n,a=t,u=i),ar(e,l,o,u);function o(s,c){const p=c[c.length-1],f=p?p.children.indexOf(s):void 0;return a(s,f,p)}r(o,"overload")}r(sr,"visit");var cr={};function Ve(e,n){const t=n||cr;return Ft(e,typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,typeof t.includeHtml=="boolean"?t.includeHtml:!0)}r(Ve,"toString");function Ft(e,n,t){if(hr(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return at(e.children,n,t)}return Array.isArray(e)?at(e,n,t):""}r(Ft,"one");function at(e,n,t){const i=[];let u=-1;for(;++u<e.length;)i[u]=Ft(e[u],n,t);return i.join("")}r(at,"all");function hr(e){return!!(e&&typeof e=="object")}r(hr,"node");function fr(e,n){let t=!1;return sr(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return t=!0,!1}),!!((!e.depth||e.depth<3)&&Ve(e)&&(n.options.setext||t))}r(fr,"formatHeadingAsSetext");function pr(e,n,t,i){const u=Math.max(Math.min(6,e.depth||1),1),l=t.createTracker(i);if(fr(e,t)){const p=t.enter("headingSetext"),f=t.enter("phrasing"),k=t.containerPhrasing(e,{...l.current(),before:`
6
+ `)),p+=o.move(s),c(),p}r(Yn,"code");function Kn(e,n,t){return(t?"":" ")+e}r(Kn,"map");function Ne(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}r(Ne,"checkQuote");function Gn(e,n,t,i){const u=Ne(t),l=u==='"'?"Quote":"Apostrophe",a=t.enter("definition");let o=t.enter("label");const s=t.createTracker(i);let c=s.move("[");return c+=s.move(t.safe(t.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":`
7
+ `,...s.current()}))),o(),e.title&&(o=t.enter(`title${l}`),c+=s.move(" "+u),c+=s.move(t.safe(e.title,{before:c,after:u,...s.current()})),c+=s.move(u),o()),a(),c}r(Gn,"definition$1");function Xn(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}r(Xn,"checkEmphasis");function ve(e){return"&#x"+e.toString(16).toUpperCase()+";"}r(ve,"encodeCharacterReference");function ze(e,n,t){const i=de(e),u=de(n);return i===void 0?u===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}r(ze,"encodeInfo");Et.peek=Zn;function Et(e,n,t,i){const u=Xn(t),l=t.enter("emphasis"),a=t.createTracker(i),o=a.move(u);let s=a.move(t.containerPhrasing(e,{after:u,before:o,...a.current()}));const c=s.charCodeAt(0),p=ze(i.before.charCodeAt(i.before.length-1),c,u);p.inside&&(s=ve(c)+s.slice(1));const f=s.charCodeAt(s.length-1),k=ze(i.after.charCodeAt(0),f,u);k.inside&&(s=s.slice(0,-1)+ve(f));const h=a.move(u);return l(),t.attentionEncodeSurroundingInfo={after:k.outside,before:p.outside},o+s+h}r(Et,"emphasis");function Zn(e,n,t){return t.options.emphasis||"*"}r(Zn,"emphasisPeek");var He=r((function(e){if(e==null)return nr;if(typeof e=="function")return Ae(e);if(typeof e=="object")return Array.isArray(e)?Jn(e):er(e);if(typeof e=="string")return tr(e);throw new Error("Expected function, string, or object as test")}),"convert");function Jn(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=He(e[t]);return Ae(i);function i(...u){let l=-1;for(;++l<n.length;)if(n[l].apply(this,u))return!0;return!1}}r(Jn,"anyFactory");function er(e){const n=e;return Ae(t);function t(i){const u=i;let l;for(l in e)if(u[l]!==n[l])return!1;return!0}}r(er,"propertiesFactory");function tr(e){return Ae(n);function n(t){return t&&t.type===e}}r(tr,"typeFactory");function Ae(e){return n;function n(t,i,u){return!!(rr(t)&&e.call(this,t,typeof i=="number"?i:void 0,u||void 0))}}r(Ae,"castFactory");function nr(){return!0}r(nr,"ok");function rr(e){return e!==null&&typeof e=="object"&&"type"in e}r(rr,"looksLikeANode");var Tt=[];function ir(e,n,t,i){let u;typeof n=="function"&&typeof t!="function"?(i=t,t=n):u=n;const l=He(u),a=i?-1:1;o(e,void 0,[])();function o(s,c,p){const f=s&&typeof s=="object"?s:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return k;function k(){let h=Tt,w,C,v;if((!n||l(s,c,p[p.length-1]||void 0))&&(h=ur(t(s,p)),h[0]===!1))return h;if("children"in s&&s.children){const b=s;if(b.children&&h[0]!=="skip")for(C=(i?b.children.length:-1)+a,v=p.concat(b);C>-1&&C<b.children.length;){const _=b.children[C];if(w=o(_,C,v)(),w[0]===!1)return w;C=typeof w[1]=="number"?w[1]:C+a}}return h}}r(o,"factory")}r(ir,"visitParents");function ur(e){return Array.isArray(e)?e:typeof e=="number"?[!0,e]:e==null?Tt:[e]}r(ur,"toResult");function lr(e,n,t,i){let u,l,a;typeof n=="function"&&typeof t!="function"?(l=void 0,a=n,u=t):(l=n,a=t,u=i),ir(e,l,o,u);function o(s,c){const p=c[c.length-1],f=p?p.children.indexOf(s):void 0;return a(s,f,p)}r(o,"overload")}r(lr,"visit");var ar={};function je(e,n){const t=n||ar;return zt(e,typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,typeof t.includeHtml=="boolean"?t.includeHtml:!0)}r(je,"toString");function zt(e,n,t){if(or(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ut(e.children,n,t)}return Array.isArray(e)?ut(e,n,t):""}r(zt,"one");function ut(e,n,t){const i=[];let u=-1;for(;++u<e.length;)i[u]=zt(e[u],n,t);return i.join("")}r(ut,"all");function or(e){return!!(e&&typeof e=="object")}r(or,"node");function sr(e,n){let t=!1;return lr(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return t=!0,!1}),!!((!e.depth||e.depth<3)&&je(e)&&(n.options.setext||t))}r(sr,"formatHeadingAsSetext");function cr(e,n,t,i){const u=Math.max(Math.min(6,e.depth||1),1),l=t.createTracker(i);if(sr(e,t)){const p=t.enter("headingSetext"),f=t.enter("phrasing"),k=t.containerPhrasing(e,{...l.current(),before:`
8
8
  `,after:`
9
9
  `});return f(),p(),k+`
10
10
  `+(u===1?"=":"-").repeat(k.length-(Math.max(k.lastIndexOf("\r"),k.lastIndexOf(`
11
11
  `))+1))}const a="#".repeat(u),o=t.enter("headingAtx"),s=t.enter("phrasing");l.move(a+" ");let c=t.containerPhrasing(e,{before:"# ",after:`
12
- `,...l.current()});return/^[\t ]/.test(c)&&(c=ve(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,t.options.closeAtx&&(c+=" "+a),s(),o(),c}r(pr,"heading");Rt.peek=mr;function Rt(e){return e.value||""}r(Rt,"html");function mr(){return"<"}r(mr,"htmlPeek");Bt.peek=gr;function Bt(e,n,t,i){const u=je(t),l=u==='"'?"Quote":"Apostrophe",a=t.enter("image");let o=t.enter("label");const s=t.createTracker(i);let c=s.move("![");return c+=s.move(t.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=t.enter(`title${l}`),c+=s.move(" "+u),c+=s.move(t.safe(e.title,{before:c,after:u,...s.current()})),c+=s.move(u),o()),c+=s.move(")"),a(),c}r(Bt,"image");function gr(){return"!"}r(gr,"imagePeek");Mt.peek=kr;function Mt(e,n,t,i){const u=e.referenceType,l=t.enter("imageReference");let a=t.enter("label");const o=t.createTracker(i);let s=o.move("![");const c=t.safe(e.alt,{before:s,after:"]",...o.current()});s+=o.move(c+"]["),a();const p=t.stack;t.stack=[],a=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return a(),t.stack=p,l(),u==="full"||!c||c!==f?s+=o.move(f+"]"):u==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}r(Mt,"imageReference");function kr(){return"!"}r(kr,"imageReferencePeek");Dt.peek=xr;function Dt(e,n,t){let i=e.value||"",u="`",l=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(i);)u+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++l<t.unsafe.length;){const a=t.unsafe[l],o=t.compilePattern(a);let s;if(a.atBreak)for(;s=o.exec(i);){let c=s.index;i.charCodeAt(c)===10&&i.charCodeAt(c-1)===13&&c--,i=i.slice(0,c)+" "+i.slice(s.index+1)}}return u+i+u}r(Dt,"inlineCode");function xr(){return"`"}r(xr,"inlineCodePeek");function Pt(e,n){const t=Ve(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}r(Pt,"formatLinkAsAutolink");Ot.peek=dr;function Ot(e,n,t,i){const u=je(t),l=u==='"'?"Quote":"Apostrophe",a=t.createTracker(i);let o,s;if(Pt(e,t)){const p=t.stack;t.stack=[],o=t.enter("autolink");let f=a.move("<");return f+=a.move(t.containerPhrasing(e,{before:f,after:">",...a.current()})),f+=a.move(">"),o(),t.stack=p,f}o=t.enter("link"),s=t.enter("label");let c=a.move("[");return c+=a.move(t.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(t.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=t.enter("destinationRaw"),c+=a.move(t.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=t.enter(`title${l}`),c+=a.move(" "+u),c+=a.move(t.safe(e.title,{before:c,after:u,...a.current()})),c+=a.move(u),s()),c+=a.move(")"),o(),c}r(Ot,"link");function dr(e,n,t){return Pt(e,t)?"<":"["}r(dr,"linkPeek");$t.peek=br;function $t(e,n,t,i){const u=e.referenceType,l=t.enter("linkReference");let a=t.enter("label");const o=t.createTracker(i);let s=o.move("[");const c=t.containerPhrasing(e,{before:s,after:"]",...o.current()});s+=o.move(c+"]["),a();const p=t.stack;t.stack=[],a=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return a(),t.stack=p,l(),u==="full"||!c||c!==f?s+=o.move(f+"]"):u==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}r($t,"linkReference");function br(){return"["}r(br,"linkReferencePeek");function Ue(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}r(Ue,"checkBullet");function yr(e){const n=Ue(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}r(yr,"checkBulletOther");function wr(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}r(wr,"checkBulletOrdered");function Ht(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}r(Ht,"checkRule");function Ir(e,n,t,i){const u=t.enter("list"),l=t.bulletCurrent;let a=e.ordered?wr(t):Ue(t);const o=e.ordered?a==="."?")":".":yr(t);let s=n&&t.bulletLastUsed?a===t.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&p&&(!p.children||!p.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),Ht(t)===a&&p){let f=-1;for(;++f<e.children.length;){const k=e.children[f];if(k&&k.type==="listItem"&&k.children&&k.children[0]&&k.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(a=o),t.bulletCurrent=a;const c=t.containerFlow(e,i);return t.bulletLastUsed=a,t.bulletCurrent=l,u(),c}r(Ir,"list$1");function Sr(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}r(Sr,"checkListItemIndent");function Cr(e,n,t,i){const u=Sr(t);let l=t.bulletCurrent||Ue(t);n&&n.type==="list"&&n.ordered&&(l=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+l);let a=l.length+1;(u==="tab"||u==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(a=Math.ceil(a/4)*4);const o=t.createTracker(i);o.move(l+" ".repeat(a-l.length)),o.shift(a);const s=t.enter("listItem"),c=t.indentLines(t.containerFlow(e,o.current()),p);return s(),c;function p(f,k,h){return k?(h?"":" ".repeat(a))+f:(h?l:l+" ".repeat(a-l.length))+f}r(p,"map")}r(Cr,"listItem");function vr(e,n,t,i){const u=t.enter("paragraph"),l=t.enter("phrasing"),a=t.containerPhrasing(e,i);return l(),u(),a}r(vr,"paragraph");var Er=qe(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Tr(e,n,t,i){return(e.children.some(function(u){return Er(u)})?t.containerPhrasing:t.containerFlow).call(t,e,i)}r(Tr,"root");function zr(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}r(zr,"checkStrong");Nt.peek=_r;function Nt(e,n,t,i){const u=zr(t),l=t.enter("strong"),a=t.createTracker(i),o=a.move(u+u);let s=a.move(t.containerPhrasing(e,{after:u,before:o,...a.current()}));const c=s.charCodeAt(0),p=ze(i.before.charCodeAt(i.before.length-1),c,u);p.inside&&(s=ve(c)+s.slice(1));const f=s.charCodeAt(s.length-1),k=ze(i.after.charCodeAt(0),f,u);k.inside&&(s=s.slice(0,-1)+ve(f));const h=a.move(u+u);return l(),t.attentionEncodeSurroundingInfo={after:k.outside,before:p.outside},o+s+h}r(Nt,"strong");function _r(e,n,t){return t.options.strong||"*"}r(_r,"strongPeek");function Ar(e,n,t,i){return t.safe(e.value,i)}r(Ar,"text$2");function Lr(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}r(Lr,"checkRuleRepetition");function Fr(e,n,t){const i=(Ht(t)+(t.options.ruleSpaces?" ":"")).repeat(Lr(t));return t.options.ruleSpaces?i.slice(0,-1):i}r(Fr,"thematicBreak$1");var jt={blockquote:Un,break:lt,code:Xn,definition:Jn,emphasis:At,hardBreak:lt,heading:pr,html:Rt,image:Bt,imageReference:Mt,inlineCode:Dt,link:Ot,linkReference:$t,list:Ir,listItem:Cr,paragraph:vr,root:Tr,strong:Nt,text:Ar,thematicBreak:Fr};function qt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}r(qt,"decodeNumericCharacterReference");var Rr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Br(e){return e.replace(Rr,Mr)}r(Br,"decodeString");function Mr(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),u=i===120||i===88;return qt(t.slice(u?2:1),u?16:10)}return Ne(t)||e}r(Mr,"decode");var ot={}.hasOwnProperty;function Dr(e){const n={};let t=-1;for(;++t<e.length;)Pr(n,e[t]);return n}r(Dr,"combineExtensions");function Pr(e,n){let t;for(t in n){const i=(ot.call(e,t)?e[t]:void 0)||(e[t]={}),u=n[t];let l;if(u)for(l in u){ot.call(i,l)||(i[l]=[]);const a=u[l];Or(i[l],Array.isArray(a)?a:a?[a]:[])}}}r(Pr,"syntaxExtension");function Or(e,n){let t=-1;const i=[];for(;++t<n.length;)(n[t].add==="after"?e:i).push(n[t]);K(e,0,0,i)}r(Or,"constructs");function xe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}r(xe,"normalizeIdentifier");var $r={tokenize:Hr};function Hr(e){const n=e.attempt(this.parser.constructs.contentInitial,i,u);let t;return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),D(e,n,"linePrefix")}function u(o){return e.enter("paragraph"),l(o)}function l(o){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return z(o)?(e.consume(o),e.exit("chunkText"),l):(e.consume(o),a)}}r(Hr,"initializeContent");var Nr={tokenize:jr},st={tokenize:qr};function jr(e){const n=this,t=[];let i=0,u,l,a;return o;function o(S){if(i<t.length){const R=t[i];return n.containerState=R[1],e.attempt(R[0].continuation,s,c)(S)}return c(S)}function s(S){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,u&&_();const R=n.events.length;let F=R,y;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){y=n.events[F][1].end;break}b(i);let B=R;for(;B<n.events.length;)n.events[B][1].end={...y},B++;return K(n.events,F+1,0,n.events.slice(R)),n.events.length=B,c(S)}return o(S)}function c(S){if(i===t.length){if(!u)return k(S);if(u.currentConstruct&&u.currentConstruct.concrete)return w(S);n.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(st,p,f)(S)}function p(S){return u&&_(),b(i),k(S)}function f(S){return n.parser.lazy[n.now().line]=i!==t.length,a=n.now().offset,w(S)}function k(S){return n.containerState={},e.attempt(st,h,w)(S)}function h(S){return i++,t.push([n.currentConstruct,n.containerState]),k(S)}function w(S){if(S===null){u&&_(),b(0),e.consume(S);return}return u=u||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:l}),C(S)}function C(S){if(S===null){v(e.exit("chunkFlow"),!0),b(0),e.consume(S);return}return z(S)?(e.consume(S),v(e.exit("chunkFlow")),i=0,n.interrupt=void 0,o):(e.consume(S),C)}function v(S,R){const F=n.sliceStream(S);if(R&&F.push(null),S.previous=l,l&&(l.next=S),l=S,u.defineSkip(S.start),u.write(F),n.parser.lazy[S.start.line]){let y=u.events.length;for(;y--;)if(u.events[y][1].start.offset<a&&(!u.events[y][1].end||u.events[y][1].end.offset>a))return;const B=n.events.length;let $=B,P,x;for(;$--;)if(n.events[$][0]==="exit"&&n.events[$][1].type==="chunkFlow"){if(P){x=n.events[$][1].end;break}P=!0}for(b(i),y=B;y<n.events.length;)n.events[y][1].end={...x},y++;K(n.events,$+1,0,n.events.slice(B)),n.events.length=y}}function b(S){let R=t.length;for(;R-- >S;){const F=t[R];n.containerState=F[1],F[0].exit.call(n,e)}t.length=S}function _(){u.write([null]),l=void 0,u=void 0,n.containerState._closeFlow=void 0}}r(jr,"initializeDocument");function qr(e,n,t){return D(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}r(qr,"tokenizeContainer");var He={name:"attention",resolveAll:Vr,tokenize:Ur};function Vr(e,n){let t=-1,i,u,l,a,o,s,c,p;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(i=t;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[i][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[i][1].end.offset-e[i][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[i][1].end},k={...e[t][1].start};ct(f,-s),ct(k,s),a={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:k},l={type:s>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[t][1].start}},u={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[i][1].end={...a.start},e[t][1].start={...o.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=X(c,[["enter",e[i][1],n],["exit",e[i][1],n]])),c=X(c,[["enter",u,n],["enter",a,n],["exit",a,n],["enter",l,n]]),c=X(c,_e(n.parser.constructs.insideSpan.null,e.slice(i+1,t),n)),c=X(c,[["exit",l,n],["enter",o,n],["exit",o,n],["exit",u,n]]),e[t][1].end.offset-e[t][1].start.offset?(p=2,c=X(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):p=0,K(e,i-1,t-i+3,c),t=i+c.length-p-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}r(Vr,"resolveAllAttention");function Ur(e,n){const t=this.parser.constructs.attentionMarkers.null,i=this.previous,u=de(i);let l;return a;function a(s){return l=s,e.enter("attentionSequence"),o(s)}function o(s){if(s===l)return e.consume(s),o;const c=e.exit("attentionSequence"),p=de(s),f=!p||p===2&&u||t.includes(s),k=!u||u===2&&p||t.includes(i);return c._open=!!(l===42?f:f&&(u||!k)),c._close=!!(l===42?k:k&&(p||!f)),n(s)}}r(Ur,"tokenizeAttention");function ct(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}r(ct,"movePoint");var Qr={name:"autolink",tokenize:Wr};function Wr(e,n,t){let i=0;return u;function u(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return ee(h)?(e.consume(h),a):h===64?t(h):c(h)}function a(h){return h===43||h===45||h===46||J(h)?(i=1,o(h)):c(h)}function o(h){return h===58?(e.consume(h),i=0,s):(h===43||h===45||h===46||J(h))&&i++<32?(e.consume(h),o):(i=0,c(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||Pe(h)?t(h):(e.consume(h),s)}function c(h){return h===64?(e.consume(h),p):Ln(h)?(e.consume(h),c):t(h)}function p(h){return J(h)?f(h):t(h)}function f(h){return h===46?(e.consume(h),i=0,p):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):k(h)}function k(h){if((h===45||J(h))&&i++<63){const w=h===45?k:f;return e.consume(h),w}return t(h)}}r(Wr,"tokenizeAutolink");var Le={partial:!0,tokenize:Gr};function Gr(e,n,t){return i;function i(l){return L(l)?D(e,u,"linePrefix")(l):u(l)}function u(l){return l===null||z(l)?n(l):t(l)}}r(Gr,"tokenizeBlankLine");var Vt={continuation:{tokenize:Yr},exit:Xr,name:"blockQuote",tokenize:Kr};function Kr(e,n,t){const i=this;return u;function u(a){if(a===62){const o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),l}return t(a)}function l(a){return L(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(a))}}r(Kr,"tokenizeBlockQuoteStart");function Yr(e,n,t){const i=this;return u;function u(a){return L(a)?D(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):l(a)}function l(a){return e.attempt(Vt,n,t)(a)}}r(Yr,"tokenizeBlockQuoteContinuation");function Xr(e){e.exit("blockQuote")}r(Xr,"exit$1");var Ut={name:"characterEscape",tokenize:Zr};function Zr(e,n,t){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),u}function u(l){return Rn(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}r(Zr,"tokenizeCharacterEscape");var Qt={name:"characterReference",tokenize:Jr};function Jr(e,n,t){const i=this;let u=0,l,a;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),l=31,a=J,p(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,a=Fn,p):(e.enter("characterReferenceValue"),l=7,a=Oe,p(f))}function p(f){if(f===59&&u){const k=e.exit("characterReferenceValue");return a===J&&!Ne(i.sliceSerialize(k))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return a(f)&&u++<l?(e.consume(f),p):t(f)}}r(Jr,"tokenizeCharacterReference");var ht={partial:!0,tokenize:ti},ft={concrete:!0,name:"codeFenced",tokenize:ei};function ei(e,n,t){const i=this,u={partial:!0,tokenize:F};let l=0,a=0,o;return s;function s(y){return c(y)}function c(y){const B=i.events[i.events.length-1];return l=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[1],!0).length:0,o=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(y)}function p(y){return y===o?(a++,e.consume(y),p):a<3?t(y):(e.exit("codeFencedFenceSequence"),L(y)?D(e,f,"whitespace")(y):f(y))}function f(y){return y===null||z(y)?(e.exit("codeFencedFence"),i.interrupt?n(y):e.check(ht,C,R)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),k(y))}function k(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):L(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),D(e,h,"whitespace")(y)):y===96&&y===o?t(y):(e.consume(y),k)}function h(y){return y===null||z(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(y))}function w(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===o?t(y):(e.consume(y),w)}function C(y){return e.attempt(u,R,v)(y)}function v(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b}function b(y){return l>0&&L(y)?D(e,_,"linePrefix",l+1)(y):_(y)}function _(y){return y===null||z(y)?e.check(ht,C,R)(y):(e.enter("codeFlowValue"),S(y))}function S(y){return y===null||z(y)?(e.exit("codeFlowValue"),_(y)):(e.consume(y),S)}function R(y){return e.exit("codeFenced"),n(y)}function F(y,B,$){let P=0;return x;function x(M){return y.enter("lineEnding"),y.consume(M),y.exit("lineEnding"),E}function E(M){return y.enter("codeFencedFence"),L(M)?D(y,T,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):T(M)}function T(M){return M===o?(y.enter("codeFencedFenceSequence"),O(M)):$(M)}function O(M){return M===o?(P++,y.consume(M),O):P>=a?(y.exit("codeFencedFenceSequence"),L(M)?D(y,j,"whitespace")(M):j(M)):$(M)}function j(M){return M===null||z(M)?(y.exit("codeFencedFence"),B(M)):$(M)}}}r(ei,"tokenizeCodeFenced");function ti(e,n,t){const i=this;return u;function u(a){return a===null?t(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l)}function l(a){return i.parser.lazy[i.now().line]?t(a):n(a)}}r(ti,"tokenizeNonLazyContinuation");var Fe={name:"codeIndented",tokenize:ri},ni={partial:!0,tokenize:ii};function ri(e,n,t){const i=this;return u;function u(c){return e.enter("codeIndented"),D(e,l,"linePrefix",5)(c)}function l(c){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(c):t(c)}function a(c){return c===null?s(c):z(c)?e.attempt(ni,a,s)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||z(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),o)}function s(c){return e.exit("codeIndented"),n(c)}}r(ri,"tokenizeCodeIndented");function ii(e,n,t){const i=this;return u;function u(a){return i.parser.lazy[i.now().line]?t(a):z(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u):D(e,l,"linePrefix",5)(a)}function l(a){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(a):z(a)?u(a):t(a)}}r(ii,"tokenizeFurtherStart");var ui={name:"codeText",previous:ai,resolve:li,tokenize:oi};function li(e){let n=e.length-4,t=3,i,u;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=t;++i<n;)if(e[i][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(i=t-1,n++;++i<=n;)u===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(u=i):(i===n||e[i][1].type==="lineEnding")&&(e[u][1].type="codeTextData",i!==u+2&&(e[u][1].end=e[i-1][1].end,e.splice(u+2,i-u-2),n-=i-u-2,i=u+2),u=void 0);return e}r(li,"resolveCodeText");function ai(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}r(ai,"previous");function oi(e,n,t){let i=0,u,l;return a;function a(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),i++,o):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(l=e.enter("codeTextSequence"),u=0,p(f)):z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||z(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),c)}function p(f){return f===96?(e.consume(f),u++,p):u===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",c(f))}}r(oi,"tokenizeCodeText");var si=class{static{r(this,"SpliceBuffer")}constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const t=n??Number.POSITIVE_INFINITY;return t<this.left.length?this.left.slice(e,t):e>this.left.length?this.right.slice(this.right.length-t+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-t+this.left.length).reverse())}splice(e,n,t){const i=n||0;this.setCursor(Math.trunc(e));const u=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return t&&Ie(this.left,t),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ie(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ie(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Ie(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Ie(this.left,n.reverse())}}};function Ie(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}r(Ie,"chunkedPush");function Wt(e){const n={};let t=-1,i,u,l,a,o,s,c;const p=new si(e);for(;++t<p.length;){for(;t in n;)t=n[t];if(i=p.get(t),t&&i[1].type==="chunkFlow"&&p.get(t-1)[1].type==="listItemPrefix"&&(s=i[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,ci(p,t)),t=n[t],c=!0);else if(i[1]._container){for(l=t,u=void 0;l--;)if(a=p.get(l),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(u&&(p.get(u)[1].type="lineEndingBlank"),a[1].type="lineEnding",u=l);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;u&&(i[1].end={...p.get(u)[1].start},o=p.slice(u,t),o.unshift(i),p.splice(u,t-u+1,o))}}return K(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!c}r(Wt,"subtokenize");function ci(e,n){const t=e.get(n)[1],i=e.get(n)[2];let u=n-1;const l=[];let a=t._tokenizer;a||(a=i.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,s=[],c={};let p,f,k=-1,h=t,w=0,C=0;const v=[C];for(;h;){for(;e.get(++u)[1]!==h;);l.push(u),h._tokenizer||(p=i.sliceStream(h),h.next||p.push(null),f&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=t;++k<o.length;)o[k][0]==="exit"&&o[k-1][0]==="enter"&&o[k][1].type===o[k-1][1].type&&o[k][1].start.line!==o[k][1].end.line&&(C=k+1,v.push(C),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),k=v.length;k--;){const b=o.slice(v[k],v[k+1]),_=l.pop();s.push([_,_+b.length-1]),e.splice(_,2,b)}for(s.reverse(),k=-1;++k<s.length;)c[w+s[k][0]]=w+s[k][1],w+=s[k][1]-s[k][0]-1;return c}r(ci,"subcontent");var hi={resolve:pi,tokenize:mi},fi={partial:!0,tokenize:gi};function pi(e){return Wt(e),e}r(pi,"resolveContent");function mi(e,n){let t;return i;function i(o){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),u(o)}function u(o){return o===null?l(o):z(o)?e.check(fi,a,l)(o):(e.consume(o),u)}function l(o){return e.exit("chunkContent"),e.exit("content"),n(o)}function a(o){return e.consume(o),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}r(mi,"tokenizeContent");function gi(e,n,t){const i=this;return u;function u(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),D(e,l,"linePrefix")}function l(a){if(a===null||z(a))return t(a);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(a):e.interrupt(i.parser.constructs.flow,t,n)(a)}}r(gi,"tokenizeContinuation");function Gt(e,n,t,i,u,l,a,o,s){const c=s||Number.POSITIVE_INFINITY;let p=0;return f;function f(b){return b===60?(e.enter(i),e.enter(u),e.enter(l),e.consume(b),e.exit(l),k):b===null||b===32||b===41||Pe(b)?t(b):(e.enter(i),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),C(b))}function k(b){return b===62?(e.enter(l),e.consume(b),e.exit(l),e.exit(u),e.exit(i),n):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(e.exit("chunkString"),e.exit(o),k(b)):b===null||b===60||z(b)?t(b):(e.consume(b),b===92?w:h)}function w(b){return b===60||b===62||b===92?(e.consume(b),h):h(b)}function C(b){return!p&&(b===null||b===41||U(b))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(i),n(b)):p<c&&b===40?(e.consume(b),p++,C):b===41?(e.consume(b),p--,C):b===null||b===32||b===40||Pe(b)?t(b):(e.consume(b),b===92?v:C)}function v(b){return b===40||b===41||b===92?(e.consume(b),C):C(b)}}r(Gt,"factoryDestination");function Kt(e,n,t,i,u,l){const a=this;let o=0,s;return c;function c(h){return e.enter(i),e.enter(u),e.consume(h),e.exit(u),e.enter(l),p}function p(h){return o>999||h===null||h===91||h===93&&!s||h===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?t(h):h===93?(e.exit(l),e.enter(u),e.consume(h),e.exit(u),e.exit(i),n):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||z(h)||o++>999?(e.exit("chunkString"),p(h)):(e.consume(h),s||(s=!L(h)),h===92?k:f)}function k(h){return h===91||h===92||h===93?(e.consume(h),o++,f):f(h)}}r(Kt,"factoryLabel");function Yt(e,n,t,i,u,l){let a;return o;function o(k){return k===34||k===39||k===40?(e.enter(i),e.enter(u),e.consume(k),e.exit(u),a=k===40?41:k,s):t(k)}function s(k){return k===a?(e.enter(u),e.consume(k),e.exit(u),e.exit(i),n):(e.enter(l),c(k))}function c(k){return k===a?(e.exit(l),s(a)):k===null?t(k):z(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),D(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===a||k===null||z(k)?(e.exit("chunkString"),c(k)):(e.consume(k),k===92?f:p)}function f(k){return k===a||k===92?(e.consume(k),p):p(k)}}r(Yt,"factoryTitle");function Ce(e,n){let t;return i;function i(u){return z(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t=!0,i):L(u)?D(e,i,t?"linePrefix":"lineSuffix")(u):n(u)}}r(Ce,"factoryWhitespace");var ki={name:"definition",tokenize:di},xi={partial:!0,tokenize:bi};function di(e,n,t){const i=this;let u;return l;function l(h){return e.enter("definition"),a(h)}function a(h){return Kt.call(i,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return u=xe(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return U(h)?Ce(e,c)(h):c(h)}function c(h){return Gt(e,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return e.attempt(xi,f,f)(h)}function f(h){return L(h)?D(e,k,"whitespace")(h):k(h)}function k(h){return h===null||z(h)?(e.exit("definition"),i.parser.defined.push(u),n(h)):t(h)}}r(di,"tokenizeDefinition");function bi(e,n,t){return i;function i(o){return U(o)?Ce(e,u)(o):t(o)}function u(o){return Yt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function l(o){return L(o)?D(e,a,"whitespace")(o):a(o)}function a(o){return o===null||z(o)?n(o):t(o)}}r(bi,"tokenizeTitleBefore");var yi={name:"hardBreakEscape",tokenize:wi};function wi(e,n,t){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),u}function u(l){return z(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}r(wi,"tokenizeHardBreakEscape");var Ii={name:"headingAtx",resolve:Si,tokenize:Ci};function Si(e,n){let t=e.length-2,i=3,u,l;return e[i][1].type==="whitespace"&&(i+=2),t-2>i&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(i===t-1||t-4>i&&e[t-2][1].type==="whitespace")&&(t-=i+1===t?2:4),t>i&&(u={type:"atxHeadingText",start:e[i][1].start,end:e[t][1].end},l={type:"chunkText",start:e[i][1].start,end:e[t][1].end,contentType:"text"},K(e,i,t-i+1,[["enter",u,n],["enter",l,n],["exit",l,n],["exit",u,n]])),e}r(Si,"resolveHeadingAtx");function Ci(e,n,t){let i=0;return u;function u(p){return e.enter("atxHeading"),l(p)}function l(p){return e.enter("atxHeadingSequence"),a(p)}function a(p){return p===35&&i++<6?(e.consume(p),a):p===null||U(p)?(e.exit("atxHeadingSequence"),o(p)):t(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),s(p)):p===null||z(p)?(e.exit("atxHeading"),n(p)):L(p)?D(e,o,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function s(p){return p===35?(e.consume(p),s):(e.exit("atxHeadingSequence"),o(p))}function c(p){return p===null||p===35||U(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),c)}}r(Ci,"tokenizeHeadingAtx");var vi=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],pt=["pre","script","style","textarea"],Ei={concrete:!0,name:"htmlFlow",resolveTo:_i,tokenize:Ai},Ti={partial:!0,tokenize:Fi},zi={partial:!0,tokenize:Li};function _i(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}r(_i,"resolveToHtmlFlow");function Ai(e,n,t){const i=this;let u,l,a,o,s;return c;function c(g){return p(g)}function p(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),f}function f(g){return g===33?(e.consume(g),k):g===47?(e.consume(g),l=!0,C):g===63?(e.consume(g),u=3,i.interrupt?n:m):ee(g)?(e.consume(g),a=String.fromCharCode(g),v):t(g)}function k(g){return g===45?(e.consume(g),u=2,h):g===91?(e.consume(g),u=5,o=0,w):ee(g)?(e.consume(g),u=4,i.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),i.interrupt?n:m):t(g)}function w(g){return g==="CDATA[".charCodeAt(o++)?(e.consume(g),o===6?i.interrupt?n:T:w):t(g)}function C(g){return ee(g)?(e.consume(g),a=String.fromCharCode(g),v):t(g)}function v(g){if(g===null||g===47||g===62||U(g)){const ae=g===47,he=a.toLowerCase();return!ae&&!l&&pt.includes(he)?(u=1,i.interrupt?n(g):T(g)):vi.includes(a.toLowerCase())?(u=6,ae?(e.consume(g),b):i.interrupt?n(g):T(g)):(u=7,i.interrupt&&!i.parser.lazy[i.now().line]?t(g):l?_(g):S(g))}return g===45||J(g)?(e.consume(g),a+=String.fromCharCode(g),v):t(g)}function b(g){return g===62?(e.consume(g),i.interrupt?n:T):t(g)}function _(g){return L(g)?(e.consume(g),_):x(g)}function S(g){return g===47?(e.consume(g),x):g===58||g===95||ee(g)?(e.consume(g),R):L(g)?(e.consume(g),S):x(g)}function R(g){return g===45||g===46||g===58||g===95||J(g)?(e.consume(g),R):F(g)}function F(g){return g===61?(e.consume(g),y):L(g)?(e.consume(g),F):S(g)}function y(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),s=g,B):L(g)?(e.consume(g),y):$(g)}function B(g){return g===s?(e.consume(g),s=null,P):g===null||z(g)?t(g):(e.consume(g),B)}function $(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||U(g)?F(g):(e.consume(g),$)}function P(g){return g===47||g===62||L(g)?S(g):t(g)}function x(g){return g===62?(e.consume(g),E):t(g)}function E(g){return g===null||z(g)?T(g):L(g)?(e.consume(g),E):t(g)}function T(g){return g===45&&u===2?(e.consume(g),Q):g===60&&u===1?(e.consume(g),q):g===62&&u===4?(e.consume(g),le):g===63&&u===3?(e.consume(g),m):g===93&&u===5?(e.consume(g),te):z(g)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(Ti,ne,O)(g)):g===null||z(g)?(e.exit("htmlFlowData"),O(g)):(e.consume(g),T)}function O(g){return e.check(zi,j,ne)(g)}function j(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),M}function M(g){return g===null||z(g)?O(g):(e.enter("htmlFlowData"),T(g))}function Q(g){return g===45?(e.consume(g),m):T(g)}function q(g){return g===47?(e.consume(g),a="",Z):T(g)}function Z(g){if(g===62){const ae=a.toLowerCase();return pt.includes(ae)?(e.consume(g),le):T(g)}return ee(g)&&a.length<8?(e.consume(g),a+=String.fromCharCode(g),Z):T(g)}function te(g){return g===93?(e.consume(g),m):T(g)}function m(g){return g===62?(e.consume(g),le):g===45&&u===2?(e.consume(g),m):T(g)}function le(g){return g===null||z(g)?(e.exit("htmlFlowData"),ne(g)):(e.consume(g),le)}function ne(g){return e.exit("htmlFlow"),n(g)}}r(Ai,"tokenizeHtmlFlow");function Li(e,n,t){const i=this;return u;function u(a){return z(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):t(a)}function l(a){return i.parser.lazy[i.now().line]?t(a):n(a)}}r(Li,"tokenizeNonLazyContinuationStart");function Fi(e,n,t){return i;function i(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(Le,n,t)}}r(Fi,"tokenizeBlankLineBefore");var Ri={name:"htmlText",tokenize:Bi};function Bi(e,n,t){const i=this;let u,l,a;return o;function o(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),s}function s(m){return m===33?(e.consume(m),c):m===47?(e.consume(m),F):m===63?(e.consume(m),S):ee(m)?(e.consume(m),$):t(m)}function c(m){return m===45?(e.consume(m),p):m===91?(e.consume(m),l=0,w):ee(m)?(e.consume(m),_):t(m)}function p(m){return m===45?(e.consume(m),h):t(m)}function f(m){return m===null?t(m):m===45?(e.consume(m),k):z(m)?(a=f,q(m)):(e.consume(m),f)}function k(m){return m===45?(e.consume(m),h):f(m)}function h(m){return m===62?Q(m):m===45?k(m):f(m)}function w(m){return m==="CDATA[".charCodeAt(l++)?(e.consume(m),l===6?C:w):t(m)}function C(m){return m===null?t(m):m===93?(e.consume(m),v):z(m)?(a=C,q(m)):(e.consume(m),C)}function v(m){return m===93?(e.consume(m),b):C(m)}function b(m){return m===62?Q(m):m===93?(e.consume(m),b):C(m)}function _(m){return m===null||m===62?Q(m):z(m)?(a=_,q(m)):(e.consume(m),_)}function S(m){return m===null?t(m):m===63?(e.consume(m),R):z(m)?(a=S,q(m)):(e.consume(m),S)}function R(m){return m===62?Q(m):S(m)}function F(m){return ee(m)?(e.consume(m),y):t(m)}function y(m){return m===45||J(m)?(e.consume(m),y):B(m)}function B(m){return z(m)?(a=B,q(m)):L(m)?(e.consume(m),B):Q(m)}function $(m){return m===45||J(m)?(e.consume(m),$):m===47||m===62||U(m)?P(m):t(m)}function P(m){return m===47?(e.consume(m),Q):m===58||m===95||ee(m)?(e.consume(m),x):z(m)?(a=P,q(m)):L(m)?(e.consume(m),P):Q(m)}function x(m){return m===45||m===46||m===58||m===95||J(m)?(e.consume(m),x):E(m)}function E(m){return m===61?(e.consume(m),T):z(m)?(a=E,q(m)):L(m)?(e.consume(m),E):P(m)}function T(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),u=m,O):z(m)?(a=T,q(m)):L(m)?(e.consume(m),T):(e.consume(m),j)}function O(m){return m===u?(e.consume(m),u=void 0,M):m===null?t(m):z(m)?(a=O,q(m)):(e.consume(m),O)}function j(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||U(m)?P(m):(e.consume(m),j)}function M(m){return m===47||m===62||U(m)?P(m):t(m)}function Q(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function q(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Z}function Z(m){return L(m)?D(e,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):te(m)}function te(m){return e.enter("htmlTextData"),a(m)}}r(Bi,"tokenizeHtmlText");var Qe={name:"labelEnd",resolveAll:Oi,resolveTo:$i,tokenize:Hi},Mi={tokenize:Ni},Di={tokenize:ji},Pi={tokenize:qi};function Oi(e){let n=-1;const t=[];for(;++n<e.length;){const i=e[n][1];if(t.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const u=i.type==="labelImage"?4:2;i.type="data",n+=u}}return e.length!==t.length&&K(e,0,e.length,t),e}r(Oi,"resolveAllLabelEnd");function $i(e,n){let t=e.length,i=0,u,l,a,o;for(;t--;)if(u=e[t][1],l){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(a){if(e[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(l=t,u.type!=="labelLink")){i=2;break}}else u.type==="labelEnd"&&(a=t);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[l][1].start},end:{...e[a][1].end}},p={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",s,n],["enter",c,n]],o=X(o,e.slice(l+1,l+i+3)),o=X(o,[["enter",p,n]]),o=X(o,_e(n.parser.constructs.insideSpan.null,e.slice(l+i+4,a-3),n)),o=X(o,[["exit",p,n],e[a-2],e[a-1],["exit",c,n]]),o=X(o,e.slice(a+1)),o=X(o,[["exit",s,n]]),K(e,l,e.length,o),e}r($i,"resolveToLabelEnd");function Hi(e,n,t){const i=this;let u=i.events.length,l,a;for(;u--;)if((i.events[u][1].type==="labelImage"||i.events[u][1].type==="labelLink")&&!i.events[u][1]._balanced){l=i.events[u][1];break}return o;function o(k){return l?l._inactive?f(k):(a=i.parser.defined.includes(xe(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(k),e.exit("labelMarker"),e.exit("labelEnd"),s):t(k)}function s(k){return k===40?e.attempt(Mi,p,a?p:f)(k):k===91?e.attempt(Di,p,a?c:f)(k):a?p(k):f(k)}function c(k){return e.attempt(Pi,p,f)(k)}function p(k){return n(k)}function f(k){return l._balanced=!0,t(k)}}r(Hi,"tokenizeLabelEnd");function Ni(e,n,t){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),u}function u(f){return U(f)?Ce(e,l)(f):l(f)}function l(f){return f===41?p(f):Gt(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return U(f)?Ce(e,s)(f):p(f)}function o(f){return t(f)}function s(f){return f===34||f===39||f===40?Yt(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):p(f)}function c(f){return U(f)?Ce(e,p)(f):p(f)}function p(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}r(Ni,"tokenizeResource");function ji(e,n,t){const i=this;return u;function u(o){return Kt.call(i,e,l,a,"reference","referenceMarker","referenceString")(o)}function l(o){return i.parser.defined.includes(xe(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(o):t(o)}function a(o){return t(o)}}r(ji,"tokenizeReferenceFull");function qi(e,n,t){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),u}function u(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}r(qi,"tokenizeReferenceCollapsed");var Vi={name:"labelStartImage",resolveAll:Qe.resolveAll,tokenize:Ui};function Ui(e,n,t){const i=this;return u;function u(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),l}function l(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),a):t(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?t(o):n(o)}}r(Ui,"tokenizeLabelStartImage");var Qi={name:"labelStartLink",resolveAll:Qe.resolveAll,tokenize:Wi};function Wi(e,n,t){const i=this;return u;function u(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),l}function l(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?t(a):n(a)}}r(Wi,"tokenizeLabelStartLink");var Re={name:"lineEnding",tokenize:Gi};function Gi(e,n){return t;function t(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),D(e,n,"linePrefix")}}r(Gi,"tokenizeLineEnding");var Te={name:"thematicBreak",tokenize:Ki};function Ki(e,n,t){let i=0,u;return l;function l(c){return e.enter("thematicBreak"),a(c)}function a(c){return u=c,o(c)}function o(c){return c===u?(e.enter("thematicBreakSequence"),s(c)):i>=3&&(c===null||z(c))?(e.exit("thematicBreak"),n(c)):t(c)}function s(c){return c===u?(e.consume(c),i++,s):(e.exit("thematicBreakSequence"),L(c)?D(e,o,"whitespace")(c):o(c))}}r(Ki,"tokenizeThematicBreak");var W={continuation:{tokenize:Ji},exit:tu,name:"list",tokenize:Zi},Yi={partial:!0,tokenize:nu},Xi={partial:!0,tokenize:eu};function Zi(e,n,t){const i=this,u=i.events[i.events.length-1];let l=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,a=0;return o;function o(h){const w=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:Oe(h)){if(i.containerState.type||(i.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Te,t,c)(h):c(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return Oe(h)&&++a<10?(e.consume(h),s):(!i.interrupt||a<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):t(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(Le,i.interrupt?t:p,e.attempt(Yi,k,f))}function p(h){return i.containerState.initialBlankLine=!0,l++,k(h)}function f(h){return L(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),k):t(h)}function k(h){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}r(Zi,"tokenizeListStart");function Ji(e,n,t){const i=this;return i.containerState._closeFlow=void 0,e.check(Le,u,l);function u(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,D(e,n,"listItemIndent",i.containerState.size+1)(o)}r(u,"onBlank");function l(o){return i.containerState.furtherBlankLines||!L(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Xi,n,a)(o))}r(l,"notBlank");function a(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,D(e,e.attempt(W,n,t),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}r(a,"notInCurrentItem")}r(Ji,"tokenizeListContinuation");function eu(e,n,t){const i=this;return D(e,u,"listItemIndent",i.containerState.size+1);function u(l){const a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?n(l):t(l)}}r(eu,"tokenizeIndent");function tu(e){e.exit(this.containerState.type)}r(tu,"tokenizeListEnd");function nu(e,n,t){const i=this;return D(e,u,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(l){const a=i.events[i.events.length-1];return!L(l)&&a&&a[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}r(nu,"tokenizeListItemPrefixWhitespace");var mt={name:"setextUnderline",resolveTo:ru,tokenize:iu};function ru(e,n){let t=e.length,i,u,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){i=t;break}e[t][1].type==="paragraph"&&(u=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[u][1].type="setextHeadingText",l?(e.splice(u,0,["enter",a,n]),e.splice(l+1,0,["exit",e[i][1],n]),e[i][1].end={...e[l][1].end}):e[i][1]=a,e.push(["exit",a,n]),e}r(ru,"resolveToSetextUnderline");function iu(e,n,t){const i=this;let u;return l;function l(c){let p=i.events.length,f;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){f=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),u=c,a(c)):t(c)}function a(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===u?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),L(c)?D(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||z(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}r(iu,"tokenizeSetextUnderline");var uu={tokenize:lu};function lu(e){const n=this,t=e.attempt(Le,i,e.attempt(this.parser.constructs.flowInitial,u,D(e,e.attempt(this.parser.constructs.flow,u,e.attempt(hi,u)),"linePrefix")));return t;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function u(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}r(lu,"initializeFlow");var au={resolveAll:Zt()},ou=Xt("string"),su=Xt("text");function Xt(e){return{resolveAll:Zt(e==="text"?cu:void 0),tokenize:n};function n(t){const i=this,u=this.parser.constructs[e],l=t.attempt(u,a,o);return a;function a(p){return c(p)?l(p):o(p)}function o(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),s}function s(p){return c(p)?(t.exit("data"),l(p)):(t.consume(p),s)}function c(p){if(p===null)return!0;const f=u[p];let k=-1;if(f)for(;++k<f.length;){const h=f[k];if(!h.previous||h.previous.call(i,i.previous))return!0}return!1}}}r(Xt,"initializeFactory");function Zt(e){return n;function n(t,i){let u=-1,l;for(;++u<=t.length;)l===void 0?t[u]&&t[u][1].type==="data"&&(l=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==l+2&&(t[l][1].end=t[u-1][1].end,t.splice(l+2,u-l-2),u=l+2),l=void 0);return e?e(t,i):t}}r(Zt,"createResolver");function cu(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const i=e[t-1][1],u=n.sliceStream(i);let l=u.length,a=-1,o=0,s;for(;l--;){const c=u[l];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(c===-2)s=!0,o++;else if(c!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(o=0),o){const c={type:t===e.length||s||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:i.start._bufferIndex+a,_index:i.start._index+l,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}r(cu,"resolveAllLineSuffixes");var hu=pn({attentionMarkers:r(()=>bu,"attentionMarkers"),contentInitial:r(()=>pu,"contentInitial"),disable:r(()=>yu,"disable"),document:r(()=>fu,"document"),flow:r(()=>gu,"flow"),flowInitial:r(()=>mu,"flowInitial"),insideSpan:r(()=>du,"insideSpan"),string:r(()=>ku,"string"),text:r(()=>xu,"text")}),fu={42:W,43:W,45:W,48:W,49:W,50:W,51:W,52:W,53:W,54:W,55:W,56:W,57:W,62:Vt},pu={91:ki},mu={[-2]:Fe,[-1]:Fe,32:Fe},gu={35:Ii,42:Te,45:[mt,Te],60:Ei,61:mt,95:Te,96:ft,126:ft},ku={38:Qt,92:Ut},xu={[-5]:Re,[-4]:Re,[-3]:Re,33:Vi,38:Qt,42:He,60:[Qr,Ri],91:Qi,92:[yi,Ut],93:Qe,95:He,96:ui},du={null:[He,au]},bu={null:[42,95]},yu={null:[]};function wu(e,n,t){let i={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const u={},l=[];let a=[],o=[];const s={attempt:B(F),check:B(y),consume:_,enter:S,exit:R,interrupt:B(y,{interrupt:!0})},c={code:null,containerState:{},defineSkip:C,events:[],now:w,parser:e,previous:null,sliceSerialize:k,sliceStream:h,write:f};let p=n.tokenize.call(c,s);return n.resolveAll&&l.push(n),c;function f(E){return a=X(a,E),v(),a[a.length-1]!==null?[]:($(n,0),c.events=_e(l,c.events,c),c.events)}r(f,"write");function k(E,T){return Su(h(E),T)}r(k,"sliceSerialize");function h(E){return Iu(a,E)}r(h,"sliceStream");function w(){const{_bufferIndex:E,_index:T,line:O,column:j,offset:M}=i;return{_bufferIndex:E,_index:T,line:O,column:j,offset:M}}r(w,"now");function C(E){u[E.line]=E.column,x()}r(C,"defineSkip");function v(){let E;for(;i._index<a.length;){const T=a[i._index];if(typeof T=="string")for(E=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===E&&i._bufferIndex<T.length;)b(T.charCodeAt(i._bufferIndex));else b(T)}}r(v,"main");function b(E){p=p(E)}r(b,"go");function _(E){z(E)?(i.line++,i.column=1,i.offset+=E===-3?2:1,x()):E!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===a[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=E}r(_,"consume");function S(E,T){const O=T||{};return O.type=E,O.start=w(),c.events.push(["enter",O,c]),o.push(O),O}r(S,"enter");function R(E){const T=o.pop();return T.end=w(),c.events.push(["exit",T,c]),T}r(R,"exit");function F(E,T){$(E,T.from)}r(F,"onsuccessfulconstruct");function y(E,T){T.restore()}r(y,"onsuccessfulcheck");function B(E,T){return O;function O(j,M,Q){let q,Z,te,m;return Array.isArray(j)?ne(j):"tokenize"in j?ne([j]):le(j);function le(V){return be;function be(re){const fe=re!==null&&V[re],pe=re!==null&&V.null;return ne([...Array.isArray(fe)?fe:fe?[fe]:[],...Array.isArray(pe)?pe:pe?[pe]:[]])(re)}}function ne(V){return q=V,Z=0,V.length===0?Q:g(V[Z])}function g(V){return be;function be(re){return m=P(),te=V,V.partial||(c.currentConstruct=V),V.name&&c.parser.constructs.disable.null.includes(V.name)?he(re):V.tokenize.call(T?Object.assign(Object.create(c),T):c,s,ae,he)(re)}}function ae(V){return E(te,m),M}function he(V){return m.restore(),++Z<q.length?g(q[Z]):Q}}}r(B,"constructFactory");function $(E,T){E.resolveAll&&!l.includes(E)&&l.push(E),E.resolve&&K(c.events,T,c.events.length-T,E.resolve(c.events.slice(T),c)),E.resolveTo&&(c.events=E.resolveTo(c.events,c))}r($,"addResult");function P(){const E=w(),T=c.previous,O=c.currentConstruct,j=c.events.length,M=Array.from(o);return{from:j,restore:Q};function Q(){i=E,c.previous=T,c.currentConstruct=O,c.events.length=j,o=M,x()}}r(P,"store");function x(){i.line in u&&i.column<2&&(i.column=u[i.line],i.offset+=u[i.line]-1)}r(x,"accountForPotentialSkip")}r(wu,"createTokenizer");function Iu(e,n){const t=n.start._index,i=n.start._bufferIndex,u=n.end._index,l=n.end._bufferIndex;let a;if(t===u)a=[e[t].slice(i,l)];else{if(a=e.slice(t,u),i>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(i):a.shift()}l>0&&a.push(e[u].slice(0,l))}return a}r(Iu,"sliceChunks");function Su(e,n){let t=-1;const i=[];let u;for(;++t<e.length;){const l=e[t];let a;if(typeof l=="string")a=l;else switch(l){case-5:a="\r";break;case-4:a=`
12
+ `,...l.current()});return/^[\t ]/.test(c)&&(c=ve(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,t.options.closeAtx&&(c+=" "+a),s(),o(),c}r(cr,"heading");_t.peek=hr;function _t(e){return e.value||""}r(_t,"html");function hr(){return"<"}r(hr,"htmlPeek");At.peek=fr;function At(e,n,t,i){const u=Ne(t),l=u==='"'?"Quote":"Apostrophe",a=t.enter("image");let o=t.enter("label");const s=t.createTracker(i);let c=s.move("![");return c+=s.move(t.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(t.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=t.enter("destinationRaw"),c+=s.move(t.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=t.enter(`title${l}`),c+=s.move(" "+u),c+=s.move(t.safe(e.title,{before:c,after:u,...s.current()})),c+=s.move(u),o()),c+=s.move(")"),a(),c}r(At,"image");function fr(){return"!"}r(fr,"imagePeek");Lt.peek=pr;function Lt(e,n,t,i){const u=e.referenceType,l=t.enter("imageReference");let a=t.enter("label");const o=t.createTracker(i);let s=o.move("![");const c=t.safe(e.alt,{before:s,after:"]",...o.current()});s+=o.move(c+"]["),a();const p=t.stack;t.stack=[],a=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return a(),t.stack=p,l(),u==="full"||!c||c!==f?s+=o.move(f+"]"):u==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}r(Lt,"imageReference");function pr(){return"!"}r(pr,"imageReferencePeek");Ft.peek=mr;function Ft(e,n,t){let i=e.value||"",u="`",l=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(i);)u+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++l<t.unsafe.length;){const a=t.unsafe[l],o=t.compilePattern(a);let s;if(a.atBreak)for(;s=o.exec(i);){let c=s.index;i.charCodeAt(c)===10&&i.charCodeAt(c-1)===13&&c--,i=i.slice(0,c)+" "+i.slice(s.index+1)}}return u+i+u}r(Ft,"inlineCode");function mr(){return"`"}r(mr,"inlineCodePeek");function Rt(e,n){const t=je(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}r(Rt,"formatLinkAsAutolink");Bt.peek=gr;function Bt(e,n,t,i){const u=Ne(t),l=u==='"'?"Quote":"Apostrophe",a=t.createTracker(i);let o,s;if(Rt(e,t)){const p=t.stack;t.stack=[],o=t.enter("autolink");let f=a.move("<");return f+=a.move(t.containerPhrasing(e,{before:f,after:">",...a.current()})),f+=a.move(">"),o(),t.stack=p,f}o=t.enter("link"),s=t.enter("label");let c=a.move("[");return c+=a.move(t.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(t.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=t.enter("destinationRaw"),c+=a.move(t.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=t.enter(`title${l}`),c+=a.move(" "+u),c+=a.move(t.safe(e.title,{before:c,after:u,...a.current()})),c+=a.move(u),s()),c+=a.move(")"),o(),c}r(Bt,"link");function gr(e,n,t){return Rt(e,t)?"<":"["}r(gr,"linkPeek");Mt.peek=kr;function Mt(e,n,t,i){const u=e.referenceType,l=t.enter("linkReference");let a=t.enter("label");const o=t.createTracker(i);let s=o.move("[");const c=t.containerPhrasing(e,{before:s,after:"]",...o.current()});s+=o.move(c+"]["),a();const p=t.stack;t.stack=[],a=t.enter("reference");const f=t.safe(t.associationId(e),{before:s,after:"]",...o.current()});return a(),t.stack=p,l(),u==="full"||!c||c!==f?s+=o.move(f+"]"):u==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}r(Mt,"linkReference");function kr(){return"["}r(kr,"linkReferencePeek");function qe(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}r(qe,"checkBullet");function xr(e){const n=qe(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}r(xr,"checkBulletOther");function dr(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}r(dr,"checkBulletOrdered");function Dt(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}r(Dt,"checkRule");function br(e,n,t,i){const u=t.enter("list"),l=t.bulletCurrent;let a=e.ordered?dr(t):qe(t);const o=e.ordered?a==="."?")":".":xr(t);let s=n&&t.bulletLastUsed?a===t.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&p&&(!p.children||!p.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),Dt(t)===a&&p){let f=-1;for(;++f<e.children.length;){const k=e.children[f];if(k&&k.type==="listItem"&&k.children&&k.children[0]&&k.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(a=o),t.bulletCurrent=a;const c=t.containerFlow(e,i);return t.bulletLastUsed=a,t.bulletCurrent=l,u(),c}r(br,"list$1");function yr(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}r(yr,"checkListItemIndent");function wr(e,n,t,i){const u=yr(t);let l=t.bulletCurrent||qe(t);n&&n.type==="list"&&n.ordered&&(l=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+l);let a=l.length+1;(u==="tab"||u==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(a=Math.ceil(a/4)*4);const o=t.createTracker(i);o.move(l+" ".repeat(a-l.length)),o.shift(a);const s=t.enter("listItem"),c=t.indentLines(t.containerFlow(e,o.current()),p);return s(),c;function p(f,k,h){return k?(h?"":" ".repeat(a))+f:(h?l:l+" ".repeat(a-l.length))+f}r(p,"map")}r(wr,"listItem");function Ir(e,n,t,i){const u=t.enter("paragraph"),l=t.enter("phrasing"),a=t.containerPhrasing(e,i);return l(),u(),a}r(Ir,"paragraph");var Sr=He(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Cr(e,n,t,i){return(e.children.some(function(u){return Sr(u)})?t.containerPhrasing:t.containerFlow).call(t,e,i)}r(Cr,"root");function vr(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}r(vr,"checkStrong");Pt.peek=Er;function Pt(e,n,t,i){const u=vr(t),l=t.enter("strong"),a=t.createTracker(i),o=a.move(u+u);let s=a.move(t.containerPhrasing(e,{after:u,before:o,...a.current()}));const c=s.charCodeAt(0),p=ze(i.before.charCodeAt(i.before.length-1),c,u);p.inside&&(s=ve(c)+s.slice(1));const f=s.charCodeAt(s.length-1),k=ze(i.after.charCodeAt(0),f,u);k.inside&&(s=s.slice(0,-1)+ve(f));const h=a.move(u+u);return l(),t.attentionEncodeSurroundingInfo={after:k.outside,before:p.outside},o+s+h}r(Pt,"strong");function Er(e,n,t){return t.options.strong||"*"}r(Er,"strongPeek");function Tr(e,n,t,i){return t.safe(e.value,i)}r(Tr,"text$2");function zr(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}r(zr,"checkRuleRepetition");function _r(e,n,t){const i=(Dt(t)+(t.options.ruleSpaces?" ":"")).repeat(zr(t));return t.options.ruleSpaces?i.slice(0,-1):i}r(_r,"thematicBreak$1");var Ot={blockquote:jn,break:it,code:Yn,definition:Gn,emphasis:Et,hardBreak:it,heading:cr,html:_t,image:At,imageReference:Lt,inlineCode:Ft,link:Bt,linkReference:Mt,list:br,listItem:wr,paragraph:Ir,root:Cr,strong:Pt,text:Tr,thematicBreak:_r};function $t(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}r($t,"decodeNumericCharacterReference");var Ar=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Lr(e){return e.replace(Ar,Fr)}r(Lr,"decodeString");function Fr(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),u=i===120||i===88;return $t(t.slice(u?2:1),u?16:10)}return $e(t)||e}r(Fr,"decode");var lt={}.hasOwnProperty;function Rr(e){const n={};let t=-1;for(;++t<e.length;)Br(n,e[t]);return n}r(Rr,"combineExtensions");function Br(e,n){let t;for(t in n){const i=(lt.call(e,t)?e[t]:void 0)||(e[t]={}),u=n[t];let l;if(u)for(l in u){lt.call(i,l)||(i[l]=[]);const a=u[l];Mr(i[l],Array.isArray(a)?a:a?[a]:[])}}}r(Br,"syntaxExtension");function Mr(e,n){let t=-1;const i=[];for(;++t<n.length;)(n[t].add==="after"?e:i).push(n[t]);K(e,0,0,i)}r(Mr,"constructs");function xe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}r(xe,"normalizeIdentifier");var Dr={tokenize:Pr};function Pr(e){const n=e.attempt(this.parser.constructs.contentInitial,i,u);let t;return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),D(e,n,"linePrefix")}function u(o){return e.enter("paragraph"),l(o)}function l(o){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return z(o)?(e.consume(o),e.exit("chunkText"),l):(e.consume(o),a)}}r(Pr,"initializeContent");var Or={tokenize:$r},at={tokenize:Nr};function $r(e){const n=this,t=[];let i=0,u,l,a;return o;function o(S){if(i<t.length){const R=t[i];return n.containerState=R[1],e.attempt(R[0].continuation,s,c)(S)}return c(S)}function s(S){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,u&&_();const R=n.events.length;let F=R,y;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){y=n.events[F][1].end;break}b(i);let B=R;for(;B<n.events.length;)n.events[B][1].end={...y},B++;return K(n.events,F+1,0,n.events.slice(R)),n.events.length=B,c(S)}return o(S)}function c(S){if(i===t.length){if(!u)return k(S);if(u.currentConstruct&&u.currentConstruct.concrete)return w(S);n.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(at,p,f)(S)}function p(S){return u&&_(),b(i),k(S)}function f(S){return n.parser.lazy[n.now().line]=i!==t.length,a=n.now().offset,w(S)}function k(S){return n.containerState={},e.attempt(at,h,w)(S)}function h(S){return i++,t.push([n.currentConstruct,n.containerState]),k(S)}function w(S){if(S===null){u&&_(),b(0),e.consume(S);return}return u=u||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:l}),C(S)}function C(S){if(S===null){v(e.exit("chunkFlow"),!0),b(0),e.consume(S);return}return z(S)?(e.consume(S),v(e.exit("chunkFlow")),i=0,n.interrupt=void 0,o):(e.consume(S),C)}function v(S,R){const F=n.sliceStream(S);if(R&&F.push(null),S.previous=l,l&&(l.next=S),l=S,u.defineSkip(S.start),u.write(F),n.parser.lazy[S.start.line]){let y=u.events.length;for(;y--;)if(u.events[y][1].start.offset<a&&(!u.events[y][1].end||u.events[y][1].end.offset>a))return;const B=n.events.length;let $=B,P,x;for(;$--;)if(n.events[$][0]==="exit"&&n.events[$][1].type==="chunkFlow"){if(P){x=n.events[$][1].end;break}P=!0}for(b(i),y=B;y<n.events.length;)n.events[y][1].end={...x},y++;K(n.events,$+1,0,n.events.slice(B)),n.events.length=y}}function b(S){let R=t.length;for(;R-- >S;){const F=t[R];n.containerState=F[1],F[0].exit.call(n,e)}t.length=S}function _(){u.write([null]),l=void 0,u=void 0,n.containerState._closeFlow=void 0}}r($r,"initializeDocument");function Nr(e,n,t){return D(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}r(Nr,"tokenizeContainer");var Oe={name:"attention",resolveAll:Hr,tokenize:jr};function Hr(e,n){let t=-1,i,u,l,a,o,s,c,p;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(i=t;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[i][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[i][1].end.offset-e[i][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[i][1].end},k={...e[t][1].start};ot(f,-s),ot(k,s),a={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:k},l={type:s>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[t][1].start}},u={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[i][1].end={...a.start},e[t][1].start={...o.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=X(c,[["enter",e[i][1],n],["exit",e[i][1],n]])),c=X(c,[["enter",u,n],["enter",a,n],["exit",a,n],["enter",l,n]]),c=X(c,_e(n.parser.constructs.insideSpan.null,e.slice(i+1,t),n)),c=X(c,[["exit",l,n],["enter",o,n],["exit",o,n],["exit",u,n]]),e[t][1].end.offset-e[t][1].start.offset?(p=2,c=X(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):p=0,K(e,i-1,t-i+3,c),t=i+c.length-p-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}r(Hr,"resolveAllAttention");function jr(e,n){const t=this.parser.constructs.attentionMarkers.null,i=this.previous,u=de(i);let l;return a;function a(s){return l=s,e.enter("attentionSequence"),o(s)}function o(s){if(s===l)return e.consume(s),o;const c=e.exit("attentionSequence"),p=de(s),f=!p||p===2&&u||t.includes(s),k=!u||u===2&&p||t.includes(i);return c._open=!!(l===42?f:f&&(u||!k)),c._close=!!(l===42?k:k&&(p||!f)),n(s)}}r(jr,"tokenizeAttention");function ot(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}r(ot,"movePoint");var qr={name:"autolink",tokenize:Vr};function Vr(e,n,t){let i=0;return u;function u(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return ee(h)?(e.consume(h),a):h===64?t(h):c(h)}function a(h){return h===43||h===45||h===46||J(h)?(i=1,o(h)):c(h)}function o(h){return h===58?(e.consume(h),i=0,s):(h===43||h===45||h===46||J(h))&&i++<32?(e.consume(h),o):(i=0,c(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||Me(h)?t(h):(e.consume(h),s)}function c(h){return h===64?(e.consume(h),p):zn(h)?(e.consume(h),c):t(h)}function p(h){return J(h)?f(h):t(h)}function f(h){return h===46?(e.consume(h),i=0,p):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):k(h)}function k(h){if((h===45||J(h))&&i++<63){const w=h===45?k:f;return e.consume(h),w}return t(h)}}r(Vr,"tokenizeAutolink");var Le={partial:!0,tokenize:Ur};function Ur(e,n,t){return i;function i(l){return L(l)?D(e,u,"linePrefix")(l):u(l)}function u(l){return l===null||z(l)?n(l):t(l)}}r(Ur,"tokenizeBlankLine");var Nt={continuation:{tokenize:Wr},exit:Yr,name:"blockQuote",tokenize:Qr};function Qr(e,n,t){const i=this;return u;function u(a){if(a===62){const o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),l}return t(a)}function l(a){return L(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(a))}}r(Qr,"tokenizeBlockQuoteStart");function Wr(e,n,t){const i=this;return u;function u(a){return L(a)?D(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):l(a)}function l(a){return e.attempt(Nt,n,t)(a)}}r(Wr,"tokenizeBlockQuoteContinuation");function Yr(e){e.exit("blockQuote")}r(Yr,"exit$1");var Ht={name:"characterEscape",tokenize:Kr};function Kr(e,n,t){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),u}function u(l){return An(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}r(Kr,"tokenizeCharacterEscape");var jt={name:"characterReference",tokenize:Gr};function Gr(e,n,t){const i=this;let u=0,l,a;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),l=31,a=J,p(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,a=_n,p):(e.enter("characterReferenceValue"),l=7,a=De,p(f))}function p(f){if(f===59&&u){const k=e.exit("characterReferenceValue");return a===J&&!$e(i.sliceSerialize(k))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return a(f)&&u++<l?(e.consume(f),p):t(f)}}r(Gr,"tokenizeCharacterReference");var st={partial:!0,tokenize:Zr},ct={concrete:!0,name:"codeFenced",tokenize:Xr};function Xr(e,n,t){const i=this,u={partial:!0,tokenize:F};let l=0,a=0,o;return s;function s(y){return c(y)}function c(y){const B=i.events[i.events.length-1];return l=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[1],!0).length:0,o=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(y)}function p(y){return y===o?(a++,e.consume(y),p):a<3?t(y):(e.exit("codeFencedFenceSequence"),L(y)?D(e,f,"whitespace")(y):f(y))}function f(y){return y===null||z(y)?(e.exit("codeFencedFence"),i.interrupt?n(y):e.check(st,C,R)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),k(y))}function k(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):L(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),D(e,h,"whitespace")(y)):y===96&&y===o?t(y):(e.consume(y),k)}function h(y){return y===null||z(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(y))}function w(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===o?t(y):(e.consume(y),w)}function C(y){return e.attempt(u,R,v)(y)}function v(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b}function b(y){return l>0&&L(y)?D(e,_,"linePrefix",l+1)(y):_(y)}function _(y){return y===null||z(y)?e.check(st,C,R)(y):(e.enter("codeFlowValue"),S(y))}function S(y){return y===null||z(y)?(e.exit("codeFlowValue"),_(y)):(e.consume(y),S)}function R(y){return e.exit("codeFenced"),n(y)}function F(y,B,$){let P=0;return x;function x(M){return y.enter("lineEnding"),y.consume(M),y.exit("lineEnding"),E}function E(M){return y.enter("codeFencedFence"),L(M)?D(y,T,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):T(M)}function T(M){return M===o?(y.enter("codeFencedFenceSequence"),O(M)):$(M)}function O(M){return M===o?(P++,y.consume(M),O):P>=a?(y.exit("codeFencedFenceSequence"),L(M)?D(y,j,"whitespace")(M):j(M)):$(M)}function j(M){return M===null||z(M)?(y.exit("codeFencedFence"),B(M)):$(M)}}}r(Xr,"tokenizeCodeFenced");function Zr(e,n,t){const i=this;return u;function u(a){return a===null?t(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l)}function l(a){return i.parser.lazy[i.now().line]?t(a):n(a)}}r(Zr,"tokenizeNonLazyContinuation");var Fe={name:"codeIndented",tokenize:ei},Jr={partial:!0,tokenize:ti};function ei(e,n,t){const i=this;return u;function u(c){return e.enter("codeIndented"),D(e,l,"linePrefix",5)(c)}function l(c){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(c):t(c)}function a(c){return c===null?s(c):z(c)?e.attempt(Jr,a,s)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||z(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),o)}function s(c){return e.exit("codeIndented"),n(c)}}r(ei,"tokenizeCodeIndented");function ti(e,n,t){const i=this;return u;function u(a){return i.parser.lazy[i.now().line]?t(a):z(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u):D(e,l,"linePrefix",5)(a)}function l(a){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(a):z(a)?u(a):t(a)}}r(ti,"tokenizeFurtherStart");var ni={name:"codeText",previous:ii,resolve:ri,tokenize:ui};function ri(e){let n=e.length-4,t=3,i,u;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=t;++i<n;)if(e[i][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(i=t-1,n++;++i<=n;)u===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(u=i):(i===n||e[i][1].type==="lineEnding")&&(e[u][1].type="codeTextData",i!==u+2&&(e[u][1].end=e[i-1][1].end,e.splice(u+2,i-u-2),n-=i-u-2,i=u+2),u=void 0);return e}r(ri,"resolveCodeText");function ii(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}r(ii,"previous");function ui(e,n,t){let i=0,u,l;return a;function a(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),i++,o):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(l=e.enter("codeTextSequence"),u=0,p(f)):z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||z(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),c)}function p(f){return f===96?(e.consume(f),u++,p):u===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",c(f))}}r(ui,"tokenizeCodeText");var li=class{static{r(this,"SpliceBuffer")}constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const t=n??Number.POSITIVE_INFINITY;return t<this.left.length?this.left.slice(e,t):e>this.left.length?this.right.slice(this.right.length-t+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-t+this.left.length).reverse())}splice(e,n,t){const i=n||0;this.setCursor(Math.trunc(e));const u=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return t&&Ie(this.left,t),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ie(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ie(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Ie(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Ie(this.left,n.reverse())}}};function Ie(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}r(Ie,"chunkedPush");function qt(e){const n={};let t=-1,i,u,l,a,o,s,c;const p=new li(e);for(;++t<p.length;){for(;t in n;)t=n[t];if(i=p.get(t),t&&i[1].type==="chunkFlow"&&p.get(t-1)[1].type==="listItemPrefix"&&(s=i[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,ai(p,t)),t=n[t],c=!0);else if(i[1]._container){for(l=t,u=void 0;l--;)if(a=p.get(l),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(u&&(p.get(u)[1].type="lineEndingBlank"),a[1].type="lineEnding",u=l);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;u&&(i[1].end={...p.get(u)[1].start},o=p.slice(u,t),o.unshift(i),p.splice(u,t-u+1,o))}}return K(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!c}r(qt,"subtokenize");function ai(e,n){const t=e.get(n)[1],i=e.get(n)[2];let u=n-1;const l=[];let a=t._tokenizer;a||(a=i.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,s=[],c={};let p,f,k=-1,h=t,w=0,C=0;const v=[C];for(;h;){for(;e.get(++u)[1]!==h;);l.push(u),h._tokenizer||(p=i.sliceStream(h),h.next||p.push(null),f&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=t;++k<o.length;)o[k][0]==="exit"&&o[k-1][0]==="enter"&&o[k][1].type===o[k-1][1].type&&o[k][1].start.line!==o[k][1].end.line&&(C=k+1,v.push(C),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),k=v.length;k--;){const b=o.slice(v[k],v[k+1]),_=l.pop();s.push([_,_+b.length-1]),e.splice(_,2,b)}for(s.reverse(),k=-1;++k<s.length;)c[w+s[k][0]]=w+s[k][1],w+=s[k][1]-s[k][0]-1;return c}r(ai,"subcontent");var oi={resolve:ci,tokenize:hi},si={partial:!0,tokenize:fi};function ci(e){return qt(e),e}r(ci,"resolveContent");function hi(e,n){let t;return i;function i(o){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),u(o)}function u(o){return o===null?l(o):z(o)?e.check(si,a,l)(o):(e.consume(o),u)}function l(o){return e.exit("chunkContent"),e.exit("content"),n(o)}function a(o){return e.consume(o),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,u}}r(hi,"tokenizeContent");function fi(e,n,t){const i=this;return u;function u(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),D(e,l,"linePrefix")}function l(a){if(a===null||z(a))return t(a);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(a):e.interrupt(i.parser.constructs.flow,t,n)(a)}}r(fi,"tokenizeContinuation");function Vt(e,n,t,i,u,l,a,o,s){const c=s||Number.POSITIVE_INFINITY;let p=0;return f;function f(b){return b===60?(e.enter(i),e.enter(u),e.enter(l),e.consume(b),e.exit(l),k):b===null||b===32||b===41||Me(b)?t(b):(e.enter(i),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),C(b))}function k(b){return b===62?(e.enter(l),e.consume(b),e.exit(l),e.exit(u),e.exit(i),n):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(e.exit("chunkString"),e.exit(o),k(b)):b===null||b===60||z(b)?t(b):(e.consume(b),b===92?w:h)}function w(b){return b===60||b===62||b===92?(e.consume(b),h):h(b)}function C(b){return!p&&(b===null||b===41||U(b))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(i),n(b)):p<c&&b===40?(e.consume(b),p++,C):b===41?(e.consume(b),p--,C):b===null||b===32||b===40||Me(b)?t(b):(e.consume(b),b===92?v:C)}function v(b){return b===40||b===41||b===92?(e.consume(b),C):C(b)}}r(Vt,"factoryDestination");function Ut(e,n,t,i,u,l){const a=this;let o=0,s;return c;function c(h){return e.enter(i),e.enter(u),e.consume(h),e.exit(u),e.enter(l),p}function p(h){return o>999||h===null||h===91||h===93&&!s||h===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?t(h):h===93?(e.exit(l),e.enter(u),e.consume(h),e.exit(u),e.exit(i),n):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||z(h)||o++>999?(e.exit("chunkString"),p(h)):(e.consume(h),s||(s=!L(h)),h===92?k:f)}function k(h){return h===91||h===92||h===93?(e.consume(h),o++,f):f(h)}}r(Ut,"factoryLabel");function Qt(e,n,t,i,u,l){let a;return o;function o(k){return k===34||k===39||k===40?(e.enter(i),e.enter(u),e.consume(k),e.exit(u),a=k===40?41:k,s):t(k)}function s(k){return k===a?(e.enter(u),e.consume(k),e.exit(u),e.exit(i),n):(e.enter(l),c(k))}function c(k){return k===a?(e.exit(l),s(a)):k===null?t(k):z(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),D(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===a||k===null||z(k)?(e.exit("chunkString"),c(k)):(e.consume(k),k===92?f:p)}function f(k){return k===a||k===92?(e.consume(k),p):p(k)}}r(Qt,"factoryTitle");function Ce(e,n){let t;return i;function i(u){return z(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t=!0,i):L(u)?D(e,i,t?"linePrefix":"lineSuffix")(u):n(u)}}r(Ce,"factoryWhitespace");var pi={name:"definition",tokenize:gi},mi={partial:!0,tokenize:ki};function gi(e,n,t){const i=this;let u;return l;function l(h){return e.enter("definition"),a(h)}function a(h){return Ut.call(i,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return u=xe(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return U(h)?Ce(e,c)(h):c(h)}function c(h){return Vt(e,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function p(h){return e.attempt(mi,f,f)(h)}function f(h){return L(h)?D(e,k,"whitespace")(h):k(h)}function k(h){return h===null||z(h)?(e.exit("definition"),i.parser.defined.push(u),n(h)):t(h)}}r(gi,"tokenizeDefinition");function ki(e,n,t){return i;function i(o){return U(o)?Ce(e,u)(o):t(o)}function u(o){return Qt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function l(o){return L(o)?D(e,a,"whitespace")(o):a(o)}function a(o){return o===null||z(o)?n(o):t(o)}}r(ki,"tokenizeTitleBefore");var xi={name:"hardBreakEscape",tokenize:di};function di(e,n,t){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),u}function u(l){return z(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}r(di,"tokenizeHardBreakEscape");var bi={name:"headingAtx",resolve:yi,tokenize:wi};function yi(e,n){let t=e.length-2,i=3,u,l;return e[i][1].type==="whitespace"&&(i+=2),t-2>i&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(i===t-1||t-4>i&&e[t-2][1].type==="whitespace")&&(t-=i+1===t?2:4),t>i&&(u={type:"atxHeadingText",start:e[i][1].start,end:e[t][1].end},l={type:"chunkText",start:e[i][1].start,end:e[t][1].end,contentType:"text"},K(e,i,t-i+1,[["enter",u,n],["enter",l,n],["exit",l,n],["exit",u,n]])),e}r(yi,"resolveHeadingAtx");function wi(e,n,t){let i=0;return u;function u(p){return e.enter("atxHeading"),l(p)}function l(p){return e.enter("atxHeadingSequence"),a(p)}function a(p){return p===35&&i++<6?(e.consume(p),a):p===null||U(p)?(e.exit("atxHeadingSequence"),o(p)):t(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),s(p)):p===null||z(p)?(e.exit("atxHeading"),n(p)):L(p)?D(e,o,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function s(p){return p===35?(e.consume(p),s):(e.exit("atxHeadingSequence"),o(p))}function c(p){return p===null||p===35||U(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),c)}}r(wi,"tokenizeHeadingAtx");var Ii=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ht=["pre","script","style","textarea"],Si={concrete:!0,name:"htmlFlow",resolveTo:Ei,tokenize:Ti},Ci={partial:!0,tokenize:_i},vi={partial:!0,tokenize:zi};function Ei(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}r(Ei,"resolveToHtmlFlow");function Ti(e,n,t){const i=this;let u,l,a,o,s;return c;function c(g){return p(g)}function p(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),f}function f(g){return g===33?(e.consume(g),k):g===47?(e.consume(g),l=!0,C):g===63?(e.consume(g),u=3,i.interrupt?n:m):ee(g)?(e.consume(g),a=String.fromCharCode(g),v):t(g)}function k(g){return g===45?(e.consume(g),u=2,h):g===91?(e.consume(g),u=5,o=0,w):ee(g)?(e.consume(g),u=4,i.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),i.interrupt?n:m):t(g)}function w(g){return g==="CDATA[".charCodeAt(o++)?(e.consume(g),o===6?i.interrupt?n:T:w):t(g)}function C(g){return ee(g)?(e.consume(g),a=String.fromCharCode(g),v):t(g)}function v(g){if(g===null||g===47||g===62||U(g)){const ae=g===47,he=a.toLowerCase();return!ae&&!l&&ht.includes(he)?(u=1,i.interrupt?n(g):T(g)):Ii.includes(a.toLowerCase())?(u=6,ae?(e.consume(g),b):i.interrupt?n(g):T(g)):(u=7,i.interrupt&&!i.parser.lazy[i.now().line]?t(g):l?_(g):S(g))}return g===45||J(g)?(e.consume(g),a+=String.fromCharCode(g),v):t(g)}function b(g){return g===62?(e.consume(g),i.interrupt?n:T):t(g)}function _(g){return L(g)?(e.consume(g),_):x(g)}function S(g){return g===47?(e.consume(g),x):g===58||g===95||ee(g)?(e.consume(g),R):L(g)?(e.consume(g),S):x(g)}function R(g){return g===45||g===46||g===58||g===95||J(g)?(e.consume(g),R):F(g)}function F(g){return g===61?(e.consume(g),y):L(g)?(e.consume(g),F):S(g)}function y(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),s=g,B):L(g)?(e.consume(g),y):$(g)}function B(g){return g===s?(e.consume(g),s=null,P):g===null||z(g)?t(g):(e.consume(g),B)}function $(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||U(g)?F(g):(e.consume(g),$)}function P(g){return g===47||g===62||L(g)?S(g):t(g)}function x(g){return g===62?(e.consume(g),E):t(g)}function E(g){return g===null||z(g)?T(g):L(g)?(e.consume(g),E):t(g)}function T(g){return g===45&&u===2?(e.consume(g),Q):g===60&&u===1?(e.consume(g),q):g===62&&u===4?(e.consume(g),le):g===63&&u===3?(e.consume(g),m):g===93&&u===5?(e.consume(g),te):z(g)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(Ci,ne,O)(g)):g===null||z(g)?(e.exit("htmlFlowData"),O(g)):(e.consume(g),T)}function O(g){return e.check(vi,j,ne)(g)}function j(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),M}function M(g){return g===null||z(g)?O(g):(e.enter("htmlFlowData"),T(g))}function Q(g){return g===45?(e.consume(g),m):T(g)}function q(g){return g===47?(e.consume(g),a="",Z):T(g)}function Z(g){if(g===62){const ae=a.toLowerCase();return ht.includes(ae)?(e.consume(g),le):T(g)}return ee(g)&&a.length<8?(e.consume(g),a+=String.fromCharCode(g),Z):T(g)}function te(g){return g===93?(e.consume(g),m):T(g)}function m(g){return g===62?(e.consume(g),le):g===45&&u===2?(e.consume(g),m):T(g)}function le(g){return g===null||z(g)?(e.exit("htmlFlowData"),ne(g)):(e.consume(g),le)}function ne(g){return e.exit("htmlFlow"),n(g)}}r(Ti,"tokenizeHtmlFlow");function zi(e,n,t){const i=this;return u;function u(a){return z(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):t(a)}function l(a){return i.parser.lazy[i.now().line]?t(a):n(a)}}r(zi,"tokenizeNonLazyContinuationStart");function _i(e,n,t){return i;function i(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(Le,n,t)}}r(_i,"tokenizeBlankLineBefore");var Ai={name:"htmlText",tokenize:Li};function Li(e,n,t){const i=this;let u,l,a;return o;function o(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),s}function s(m){return m===33?(e.consume(m),c):m===47?(e.consume(m),F):m===63?(e.consume(m),S):ee(m)?(e.consume(m),$):t(m)}function c(m){return m===45?(e.consume(m),p):m===91?(e.consume(m),l=0,w):ee(m)?(e.consume(m),_):t(m)}function p(m){return m===45?(e.consume(m),h):t(m)}function f(m){return m===null?t(m):m===45?(e.consume(m),k):z(m)?(a=f,q(m)):(e.consume(m),f)}function k(m){return m===45?(e.consume(m),h):f(m)}function h(m){return m===62?Q(m):m===45?k(m):f(m)}function w(m){return m==="CDATA[".charCodeAt(l++)?(e.consume(m),l===6?C:w):t(m)}function C(m){return m===null?t(m):m===93?(e.consume(m),v):z(m)?(a=C,q(m)):(e.consume(m),C)}function v(m){return m===93?(e.consume(m),b):C(m)}function b(m){return m===62?Q(m):m===93?(e.consume(m),b):C(m)}function _(m){return m===null||m===62?Q(m):z(m)?(a=_,q(m)):(e.consume(m),_)}function S(m){return m===null?t(m):m===63?(e.consume(m),R):z(m)?(a=S,q(m)):(e.consume(m),S)}function R(m){return m===62?Q(m):S(m)}function F(m){return ee(m)?(e.consume(m),y):t(m)}function y(m){return m===45||J(m)?(e.consume(m),y):B(m)}function B(m){return z(m)?(a=B,q(m)):L(m)?(e.consume(m),B):Q(m)}function $(m){return m===45||J(m)?(e.consume(m),$):m===47||m===62||U(m)?P(m):t(m)}function P(m){return m===47?(e.consume(m),Q):m===58||m===95||ee(m)?(e.consume(m),x):z(m)?(a=P,q(m)):L(m)?(e.consume(m),P):Q(m)}function x(m){return m===45||m===46||m===58||m===95||J(m)?(e.consume(m),x):E(m)}function E(m){return m===61?(e.consume(m),T):z(m)?(a=E,q(m)):L(m)?(e.consume(m),E):P(m)}function T(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),u=m,O):z(m)?(a=T,q(m)):L(m)?(e.consume(m),T):(e.consume(m),j)}function O(m){return m===u?(e.consume(m),u=void 0,M):m===null?t(m):z(m)?(a=O,q(m)):(e.consume(m),O)}function j(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||U(m)?P(m):(e.consume(m),j)}function M(m){return m===47||m===62||U(m)?P(m):t(m)}function Q(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function q(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Z}function Z(m){return L(m)?D(e,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):te(m)}function te(m){return e.enter("htmlTextData"),a(m)}}r(Li,"tokenizeHtmlText");var Ve={name:"labelEnd",resolveAll:Mi,resolveTo:Di,tokenize:Pi},Fi={tokenize:Oi},Ri={tokenize:$i},Bi={tokenize:Ni};function Mi(e){let n=-1;const t=[];for(;++n<e.length;){const i=e[n][1];if(t.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const u=i.type==="labelImage"?4:2;i.type="data",n+=u}}return e.length!==t.length&&K(e,0,e.length,t),e}r(Mi,"resolveAllLabelEnd");function Di(e,n){let t=e.length,i=0,u,l,a,o;for(;t--;)if(u=e[t][1],l){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[t][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(a){if(e[t][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(l=t,u.type!=="labelLink")){i=2;break}}else u.type==="labelEnd"&&(a=t);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[l][1].start},end:{...e[a][1].end}},p={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",s,n],["enter",c,n]],o=X(o,e.slice(l+1,l+i+3)),o=X(o,[["enter",p,n]]),o=X(o,_e(n.parser.constructs.insideSpan.null,e.slice(l+i+4,a-3),n)),o=X(o,[["exit",p,n],e[a-2],e[a-1],["exit",c,n]]),o=X(o,e.slice(a+1)),o=X(o,[["exit",s,n]]),K(e,l,e.length,o),e}r(Di,"resolveToLabelEnd");function Pi(e,n,t){const i=this;let u=i.events.length,l,a;for(;u--;)if((i.events[u][1].type==="labelImage"||i.events[u][1].type==="labelLink")&&!i.events[u][1]._balanced){l=i.events[u][1];break}return o;function o(k){return l?l._inactive?f(k):(a=i.parser.defined.includes(xe(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(k),e.exit("labelMarker"),e.exit("labelEnd"),s):t(k)}function s(k){return k===40?e.attempt(Fi,p,a?p:f)(k):k===91?e.attempt(Ri,p,a?c:f)(k):a?p(k):f(k)}function c(k){return e.attempt(Bi,p,f)(k)}function p(k){return n(k)}function f(k){return l._balanced=!0,t(k)}}r(Pi,"tokenizeLabelEnd");function Oi(e,n,t){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),u}function u(f){return U(f)?Ce(e,l)(f):l(f)}function l(f){return f===41?p(f):Vt(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return U(f)?Ce(e,s)(f):p(f)}function o(f){return t(f)}function s(f){return f===34||f===39||f===40?Qt(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):p(f)}function c(f){return U(f)?Ce(e,p)(f):p(f)}function p(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}r(Oi,"tokenizeResource");function $i(e,n,t){const i=this;return u;function u(o){return Ut.call(i,e,l,a,"reference","referenceMarker","referenceString")(o)}function l(o){return i.parser.defined.includes(xe(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(o):t(o)}function a(o){return t(o)}}r($i,"tokenizeReferenceFull");function Ni(e,n,t){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),u}function u(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}r(Ni,"tokenizeReferenceCollapsed");var Hi={name:"labelStartImage",resolveAll:Ve.resolveAll,tokenize:ji};function ji(e,n,t){const i=this;return u;function u(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),l}function l(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),a):t(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?t(o):n(o)}}r(ji,"tokenizeLabelStartImage");var qi={name:"labelStartLink",resolveAll:Ve.resolveAll,tokenize:Vi};function Vi(e,n,t){const i=this;return u;function u(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),l}function l(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?t(a):n(a)}}r(Vi,"tokenizeLabelStartLink");var Re={name:"lineEnding",tokenize:Ui};function Ui(e,n){return t;function t(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),D(e,n,"linePrefix")}}r(Ui,"tokenizeLineEnding");var Te={name:"thematicBreak",tokenize:Qi};function Qi(e,n,t){let i=0,u;return l;function l(c){return e.enter("thematicBreak"),a(c)}function a(c){return u=c,o(c)}function o(c){return c===u?(e.enter("thematicBreakSequence"),s(c)):i>=3&&(c===null||z(c))?(e.exit("thematicBreak"),n(c)):t(c)}function s(c){return c===u?(e.consume(c),i++,s):(e.exit("thematicBreakSequence"),L(c)?D(e,o,"whitespace")(c):o(c))}}r(Qi,"tokenizeThematicBreak");var W={continuation:{tokenize:Gi},exit:Zi,name:"list",tokenize:Ki},Wi={partial:!0,tokenize:Ji},Yi={partial:!0,tokenize:Xi};function Ki(e,n,t){const i=this,u=i.events[i.events.length-1];let l=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,a=0;return o;function o(h){const w=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:De(h)){if(i.containerState.type||(i.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Te,t,c)(h):c(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return De(h)&&++a<10?(e.consume(h),s):(!i.interrupt||a<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):t(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(Le,i.interrupt?t:p,e.attempt(Wi,k,f))}function p(h){return i.containerState.initialBlankLine=!0,l++,k(h)}function f(h){return L(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),k):t(h)}function k(h){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}r(Ki,"tokenizeListStart");function Gi(e,n,t){const i=this;return i.containerState._closeFlow=void 0,e.check(Le,u,l);function u(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,D(e,n,"listItemIndent",i.containerState.size+1)(o)}r(u,"onBlank");function l(o){return i.containerState.furtherBlankLines||!L(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Yi,n,a)(o))}r(l,"notBlank");function a(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,D(e,e.attempt(W,n,t),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}r(a,"notInCurrentItem")}r(Gi,"tokenizeListContinuation");function Xi(e,n,t){const i=this;return D(e,u,"listItemIndent",i.containerState.size+1);function u(l){const a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?n(l):t(l)}}r(Xi,"tokenizeIndent");function Zi(e){e.exit(this.containerState.type)}r(Zi,"tokenizeListEnd");function Ji(e,n,t){const i=this;return D(e,u,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(l){const a=i.events[i.events.length-1];return!L(l)&&a&&a[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}r(Ji,"tokenizeListItemPrefixWhitespace");var ft={name:"setextUnderline",resolveTo:eu,tokenize:tu};function eu(e,n){let t=e.length,i,u,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){i=t;break}e[t][1].type==="paragraph"&&(u=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[u][1].type="setextHeadingText",l?(e.splice(u,0,["enter",a,n]),e.splice(l+1,0,["exit",e[i][1],n]),e[i][1].end={...e[l][1].end}):e[i][1]=a,e.push(["exit",a,n]),e}r(eu,"resolveToSetextUnderline");function tu(e,n,t){const i=this;let u;return l;function l(c){let p=i.events.length,f;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){f=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),u=c,a(c)):t(c)}function a(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===u?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),L(c)?D(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||z(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}r(tu,"tokenizeSetextUnderline");var nu={tokenize:ru};function ru(e){const n=this,t=e.attempt(Le,i,e.attempt(this.parser.constructs.flowInitial,u,D(e,e.attempt(this.parser.constructs.flow,u,e.attempt(oi,u)),"linePrefix")));return t;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function u(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}r(ru,"initializeFlow");var iu={resolveAll:Yt()},uu=Wt("string"),lu=Wt("text");function Wt(e){return{resolveAll:Yt(e==="text"?au:void 0),tokenize:n};function n(t){const i=this,u=this.parser.constructs[e],l=t.attempt(u,a,o);return a;function a(p){return c(p)?l(p):o(p)}function o(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),s}function s(p){return c(p)?(t.exit("data"),l(p)):(t.consume(p),s)}function c(p){if(p===null)return!0;const f=u[p];let k=-1;if(f)for(;++k<f.length;){const h=f[k];if(!h.previous||h.previous.call(i,i.previous))return!0}return!1}}}r(Wt,"initializeFactory");function Yt(e){return n;function n(t,i){let u=-1,l;for(;++u<=t.length;)l===void 0?t[u]&&t[u][1].type==="data"&&(l=u,u++):(!t[u]||t[u][1].type!=="data")&&(u!==l+2&&(t[l][1].end=t[u-1][1].end,t.splice(l+2,u-l-2),u=l+2),l=void 0);return e?e(t,i):t}}r(Yt,"createResolver");function au(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const i=e[t-1][1],u=n.sliceStream(i);let l=u.length,a=-1,o=0,s;for(;l--;){const c=u[l];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(c===-2)s=!0,o++;else if(c!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(o=0),o){const c={type:t===e.length||s||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:i.start._bufferIndex+a,_index:i.start._index+l,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}r(au,"resolveAllLineSuffixes");var ou=on({attentionMarkers:r(()=>ku,"attentionMarkers"),contentInitial:r(()=>cu,"contentInitial"),disable:r(()=>xu,"disable"),document:r(()=>su,"document"),flow:r(()=>fu,"flow"),flowInitial:r(()=>hu,"flowInitial"),insideSpan:r(()=>gu,"insideSpan"),string:r(()=>pu,"string"),text:r(()=>mu,"text")}),su={42:W,43:W,45:W,48:W,49:W,50:W,51:W,52:W,53:W,54:W,55:W,56:W,57:W,62:Nt},cu={91:pi},hu={[-2]:Fe,[-1]:Fe,32:Fe},fu={35:bi,42:Te,45:[ft,Te],60:Si,61:ft,95:Te,96:ct,126:ct},pu={38:jt,92:Ht},mu={[-5]:Re,[-4]:Re,[-3]:Re,33:Hi,38:jt,42:Oe,60:[qr,Ai],91:qi,92:[xi,Ht],93:Ve,95:Oe,96:ni},gu={null:[Oe,iu]},ku={null:[42,95]},xu={null:[]};function du(e,n,t){let i={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const u={},l=[];let a=[],o=[];const s={attempt:B(F),check:B(y),consume:_,enter:S,exit:R,interrupt:B(y,{interrupt:!0})},c={code:null,containerState:{},defineSkip:C,events:[],now:w,parser:e,previous:null,sliceSerialize:k,sliceStream:h,write:f};let p=n.tokenize.call(c,s);return n.resolveAll&&l.push(n),c;function f(E){return a=X(a,E),v(),a[a.length-1]!==null?[]:($(n,0),c.events=_e(l,c.events,c),c.events)}r(f,"write");function k(E,T){return yu(h(E),T)}r(k,"sliceSerialize");function h(E){return bu(a,E)}r(h,"sliceStream");function w(){const{_bufferIndex:E,_index:T,line:O,column:j,offset:M}=i;return{_bufferIndex:E,_index:T,line:O,column:j,offset:M}}r(w,"now");function C(E){u[E.line]=E.column,x()}r(C,"defineSkip");function v(){let E;for(;i._index<a.length;){const T=a[i._index];if(typeof T=="string")for(E=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===E&&i._bufferIndex<T.length;)b(T.charCodeAt(i._bufferIndex));else b(T)}}r(v,"main");function b(E){p=p(E)}r(b,"go");function _(E){z(E)?(i.line++,i.column=1,i.offset+=E===-3?2:1,x()):E!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===a[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=E}r(_,"consume");function S(E,T){const O=T||{};return O.type=E,O.start=w(),c.events.push(["enter",O,c]),o.push(O),O}r(S,"enter");function R(E){const T=o.pop();return T.end=w(),c.events.push(["exit",T,c]),T}r(R,"exit");function F(E,T){$(E,T.from)}r(F,"onsuccessfulconstruct");function y(E,T){T.restore()}r(y,"onsuccessfulcheck");function B(E,T){return O;function O(j,M,Q){let q,Z,te,m;return Array.isArray(j)?ne(j):"tokenize"in j?ne([j]):le(j);function le(V){return be;function be(re){const fe=re!==null&&V[re],pe=re!==null&&V.null;return ne([...Array.isArray(fe)?fe:fe?[fe]:[],...Array.isArray(pe)?pe:pe?[pe]:[]])(re)}}function ne(V){return q=V,Z=0,V.length===0?Q:g(V[Z])}function g(V){return be;function be(re){return m=P(),te=V,V.partial||(c.currentConstruct=V),V.name&&c.parser.constructs.disable.null.includes(V.name)?he(re):V.tokenize.call(T?Object.assign(Object.create(c),T):c,s,ae,he)(re)}}function ae(V){return E(te,m),M}function he(V){return m.restore(),++Z<q.length?g(q[Z]):Q}}}r(B,"constructFactory");function $(E,T){E.resolveAll&&!l.includes(E)&&l.push(E),E.resolve&&K(c.events,T,c.events.length-T,E.resolve(c.events.slice(T),c)),E.resolveTo&&(c.events=E.resolveTo(c.events,c))}r($,"addResult");function P(){const E=w(),T=c.previous,O=c.currentConstruct,j=c.events.length,M=Array.from(o);return{from:j,restore:Q};function Q(){i=E,c.previous=T,c.currentConstruct=O,c.events.length=j,o=M,x()}}r(P,"store");function x(){i.line in u&&i.column<2&&(i.column=u[i.line],i.offset+=u[i.line]-1)}r(x,"accountForPotentialSkip")}r(du,"createTokenizer");function bu(e,n){const t=n.start._index,i=n.start._bufferIndex,u=n.end._index,l=n.end._bufferIndex;let a;if(t===u)a=[e[t].slice(i,l)];else{if(a=e.slice(t,u),i>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(i):a.shift()}l>0&&a.push(e[u].slice(0,l))}return a}r(bu,"sliceChunks");function yu(e,n){let t=-1;const i=[];let u;for(;++t<e.length;){const l=e[t];let a;if(typeof l=="string")a=l;else switch(l){case-5:a="\r";break;case-4:a=`
13
13
  `;break;case-3:a=`\r
14
- `;break;case-2:a=n?" ":" ";break;case-1:if(!n&&u)continue;a=" ";break;default:a=String.fromCharCode(l)}u=l===-2,i.push(a)}return i.join("")}r(Su,"serializeChunks");function Cu(e){const n={constructs:Dr([hu,...(e||{}).extensions||[]]),content:t($r),defined:[],document:t(Nr),flow:t(uu),lazy:{},string:t(ou),text:t(su)};return n;function t(i){return u;function u(l){return wu(n,i,l)}}}r(Cu,"parse");function vu(e){for(;!Wt(e););return e}r(vu,"postprocess");var gt=/[\0\t\n\r]/g;function Eu(){let e=1,n="",t=!0,i;return u;function u(l,a,o){const s=[];let c,p,f,k,h;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(a||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(gt.lastIndex=f,c=gt.exec(l),k=c&&c.index!==void 0?c.index:l.length,h=l.charCodeAt(k),!c){n=l.slice(f);break}if(h===10&&f===k&&i)s.push(-3),i=void 0;else switch(i&&(s.push(-5),i=void 0),f<k&&(s.push(l.slice(f,k)),e+=k-f),h){case 0:s.push(65533),e++;break;case 9:for(p=Math.ceil(e/4)*4,s.push(-2);e++<p;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:i=!0,e=1}f=k+1}return o&&(i&&s.push(-5),n&&s.push(n),s.push(null)),s}}r(Eu,"preprocess");var Jt={}.hasOwnProperty;function Sl(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Tu(t)(vu(Cu(t).document().write(Eu()(e,n,!0))))}r(Sl,"fromMarkdown");function Tu(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Xe),autolinkProtocol:P,autolinkEmail:P,atxHeading:l(Ge),blockQuote:l(pe),characterEscape:P,characterReference:P,codeFenced:l(We),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(We,a),codeText:l(nn,a),codeTextData:P,data:P,codeFlowValue:P,definition:l(rn),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(un),hardBreakEscape:l(Ke),hardBreakTrailing:l(Ke),htmlFlow:l(Ye,a),htmlFlowData:P,htmlText:l(Ye,a),htmlTextData:P,image:l(ln),label:a,link:l(Xe),listItem:l(an),listItemValue:k,listOrdered:l(Ze,f),listUnordered:l(Ze),paragraph:l(on),reference:g,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(Ge),strong:l(sn),thematicBreak:l(hn)},exit:{atxHeading:s(),atxHeadingSequence:F,autolink:s(),autolinkEmail:fe,autolinkProtocol:re,blockQuote:s(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:V,characterReference:be,codeFenced:s(v),codeFencedFence:C,codeFencedFenceInfo:h,codeFencedFenceMeta:w,codeFlowValue:x,codeIndented:s(b),codeText:s(M),codeTextData:x,data:x,definition:s(),definitionDestinationString:R,definitionLabelString:_,definitionTitleString:S,emphasis:s(),hardBreakEscape:s(T),hardBreakTrailing:s(T),htmlFlow:s(O),htmlFlowData:x,htmlText:s(j),htmlTextData:x,image:s(q),label:te,labelText:Z,lineEnding:E,link:s(Q),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ae,resourceDestinationString:m,resourceTitleString:le,resource:ne,setextHeading:s($),setextHeadingLineSequence:B,setextHeadingText:y,strong:s(),thematicBreak:s()}};en(n,(e||{}).mdastExtensions||[]);const t={};return i;function i(d){let I={type:"root",children:[]};const A={stack:[I],tokenStack:[],config:n,enter:o,exit:c,buffer:a,resume:p,data:t},H=[];let N=-1;for(;++N<d.length;)(d[N][1].type==="listOrdered"||d[N][1].type==="listUnordered")&&(d[N][0]==="enter"?H.push(N):N=u(d,H.pop(),N));for(N=-1;++N<d.length;){const oe=n[d[N][0]];Jt.call(oe,d[N][1].type)&&oe[d[N][1].type].call(Object.assign({sliceSerialize:d[N][2].sliceSerialize},A),d[N][1])}if(A.tokenStack.length>0){const oe=A.tokenStack[A.tokenStack.length-1];(oe[1]||kt).call(A,void 0,oe[0])}for(I.position={start:se(d.length>0?d[0][1].start:{line:1,column:1,offset:0}),end:se(d.length>0?d[d.length-2][1].end:{line:1,column:1,offset:0})},N=-1;++N<n.transforms.length;)I=n.transforms[N](I)||I;return I}function u(d,I,A){let H=I-1,N=-1,oe=!1,me,ie,ye,we;for(;++H<=A;){const G=d[H];switch(G[1].type){case"listUnordered":case"listOrdered":case"blockQuote":G[0]==="enter"?N++:N--,we=void 0;break;case"lineEndingBlank":G[0]==="enter"&&(me&&!we&&!N&&!ye&&(ye=H),we=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:we=void 0}if(!N&&G[0]==="enter"&&G[1].type==="listItemPrefix"||N===-1&&G[0]==="exit"&&(G[1].type==="listUnordered"||G[1].type==="listOrdered")){if(me){let ge=H;for(ie=void 0;ge--;){const ue=d[ge];if(ue[1].type==="lineEnding"||ue[1].type==="lineEndingBlank"){if(ue[0]==="exit")continue;ie&&(d[ie][1].type="lineEndingBlank",oe=!0),ue[1].type="lineEnding",ie=ge}else if(!(ue[1].type==="linePrefix"||ue[1].type==="blockQuotePrefix"||ue[1].type==="blockQuotePrefixWhitespace"||ue[1].type==="blockQuoteMarker"||ue[1].type==="listItemIndent"))break}ye&&(!ie||ye<ie)&&(me._spread=!0),me.end=Object.assign({},ie?d[ie][1].start:G[1].end),d.splice(ie||H,0,["exit",me,G[2]]),H++,A++}if(G[1].type==="listItemPrefix"){const ge={type:"listItem",_spread:!1,start:Object.assign({},G[1].start),end:void 0};me=ge,d.splice(H,0,["enter",ge,G[2]]),H++,A++,ye=void 0,we=!0}}}return d[I][1]._spread=oe,A}function l(d,I){return A;function A(H){o.call(this,d(H),H),I&&I.call(this,H)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(d,I,A){this.stack[this.stack.length-1].children.push(d),this.stack.push(d),this.tokenStack.push([I,A||void 0]),d.position={start:se(I.start),end:void 0}}function s(d){return I;function I(A){d&&d.call(this,A),c.call(this,A)}}function c(d,I){const A=this.stack.pop(),H=this.tokenStack.pop();if(H)H[0].type!==d.type&&(I?I.call(this,d,H[0]):(H[1]||kt).call(this,d,H[0]));else throw new Error("Cannot close `"+d.type+"` ("+Se({start:d.start,end:d.end})+"): it’s not open");A.position.end=se(d.end)}function p(){return Ve(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function k(d){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(d),10),this.data.expectingFirstListItemValue=void 0}}function h(){const d=this.resume(),I=this.stack[this.stack.length-1];I.lang=d}function w(){const d=this.resume(),I=this.stack[this.stack.length-1];I.meta=d}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d.replace(/(\r?\n|\r)$/g,"")}function _(d){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(d)).toLowerCase()}function S(){const d=this.resume(),I=this.stack[this.stack.length-1];I.title=d}function R(){const d=this.resume(),I=this.stack[this.stack.length-1];I.url=d}function F(d){const I=this.stack[this.stack.length-1];I.depth||(I.depth=this.sliceSerialize(d).length)}function y(){this.data.setextHeadingSlurpLineEnding=!0}function B(d){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(d).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function P(d){const I=this.stack[this.stack.length-1].children;let A=I[I.length-1];(!A||A.type!=="text")&&(A=cn(),A.position={start:se(d.start),end:void 0},I.push(A)),this.stack.push(A)}function x(d){const I=this.stack.pop();I.value+=this.sliceSerialize(d),I.position.end=se(d.end)}function E(d){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const A=I.children[I.children.length-1];A.position.end=se(d.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(P.call(this,d),x.call(this,d))}function T(){this.data.atHardBreak=!0}function O(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function j(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function M(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function Q(){const d=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";d.type+="Reference",d.referenceType=I,delete d.url,delete d.title}else delete d.identifier,delete d.label;this.data.referenceType=void 0}function q(){const d=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";d.type+="Reference",d.referenceType=I,delete d.url,delete d.title}else delete d.identifier,delete d.label;this.data.referenceType=void 0}function Z(d){const I=this.sliceSerialize(d),A=this.stack[this.stack.length-2];A.label=Br(I),A.identifier=xe(I).toLowerCase()}function te(){const d=this.stack[this.stack.length-1],I=this.resume(),A=this.stack[this.stack.length-1];this.data.inReference=!0,A.type==="link"?A.children=d.children:A.alt=I}function m(){const d=this.resume(),I=this.stack[this.stack.length-1];I.url=d}function le(){const d=this.resume(),I=this.stack[this.stack.length-1];I.title=d}function ne(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ae(d){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(d)).toLowerCase(),this.data.referenceType="full"}function he(d){this.data.characterReferenceType=d.type}function V(d){const I=this.sliceSerialize(d),A=this.data.characterReferenceType;let H;A?(H=qt(I,A==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):H=Ne(I);const N=this.stack[this.stack.length-1];N.value+=H}function be(d){const I=this.stack.pop();I.position.end=se(d.end)}function re(d){x.call(this,d);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(d)}function fe(d){x.call(this,d);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(d)}function pe(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function nn(){return{type:"inlineCode",value:""}}function rn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function un(){return{type:"emphasis",children:[]}}function Ge(){return{type:"heading",depth:0,children:[]}}function Ke(){return{type:"break"}}function Ye(){return{type:"html",value:""}}function ln(){return{type:"image",title:null,url:"",alt:null}}function Xe(){return{type:"link",title:null,url:"",children:[]}}function Ze(d){return{type:"list",ordered:d.type==="listOrdered",start:null,spread:d._spread,children:[]}}function an(d){return{type:"listItem",spread:d._spread,checked:null,children:[]}}function on(){return{type:"paragraph",children:[]}}function sn(){return{type:"strong",children:[]}}function cn(){return{type:"text",value:""}}function hn(){return{type:"thematicBreak"}}}r(Tu,"compiler");function se(e){return{line:e.line,column:e.column,offset:e.offset}}r(se,"point");function en(e,n){let t=-1;for(;++t<n.length;){const i=n[t];Array.isArray(i)?en(e,i):zu(e,i)}}r(en,"configure");function zu(e,n){let t;for(t in n)if(Jt.call(n,t))switch(t){case"canContainEols":{const i=n[t];i&&e[t].push(...i);break}case"transforms":{const i=n[t];i&&e[t].push(...i);break}case"enter":case"exit":{const i=n[t];i&&Object.assign(e[t],i);break}}}r(zu,"extension");function kt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Se({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Se({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Se({start:n.start,end:n.end})+") is still open")}r(kt,"defaultOnError");var _u={name:"tasklistCheck",tokenize:Au};function Cl(){return{text:{91:_u}}}r(Cl,"gfmTaskListItem");function Au(e,n,t){const i=this;return u;function u(s){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return U(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),a):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),a):t(s)}function a(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):t(s)}function o(s){return z(s)?n(s):L(s)?e.check({tokenize:Lu},n,t)(s):t(s)}}r(Au,"tokenizeTasklistCheck");function Lu(e,n,t){return D(e,i,"whitespace");function i(u){return u===null?t(u):n(u)}}r(Lu,"spaceThenNonSpace");function vl(){return{exit:{taskListCheckValueChecked:xt,taskListCheckValueUnchecked:xt,paragraph:Fu}}}r(vl,"gfmTaskListItemFromMarkdown");function El(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ru}}}r(El,"gfmTaskListItemToMarkdown");function xt(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}r(xt,"exitCheck");function Fu(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const i=t.children[0];if(i&&i.type==="text"){const u=n.children;let l=-1,a;for(;++l<u.length;){const o=u[l];if(o.type==="paragraph"){a=o;break}}a===t&&(i.value=i.value.slice(1),i.value.length===0?t.children.shift():t.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,t.position.start=Object.assign({},i.position.start)))}}this.exit(e)}r(Fu,"exitParagraphWithTaskListItem");function Ru(e,n,t,i){const u=e.children[0],l=typeof e.checked=="boolean"&&u&&u.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",o=t.createTracker(i);l&&o.move(a);let s=jt.listItem(e,n,t,{...i,...o.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(p){return p+a}r(c,"check")}r(Ru,"listItemWithTaskListItem");function Bu(e){return e.length}r(Bu,"defaultStringLength");function Mu(e,n){const t=n||{},i=(t.align||[]).concat(),u=t.stringLength||Bu,l=[],a=[],o=[],s=[];let c=0,p=-1;for(;++p<e.length;){const C=[],v=[];let b=-1;for(e[p].length>c&&(c=e[p].length);++b<e[p].length;){const _=Du(e[p][b]);if(t.alignDelimiters!==!1){const S=u(_);v[b]=S,(s[b]===void 0||S>s[b])&&(s[b]=S)}C.push(_)}a[p]=C,o[p]=v}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<c;)l[f]=dt(i[f]);else{const C=dt(i);for(;++f<c;)l[f]=C}f=-1;const k=[],h=[];for(;++f<c;){const C=l[f];let v="",b="";C===99?(v=":",b=":"):C===108?v=":":C===114&&(b=":");let _=t.alignDelimiters===!1?1:Math.max(1,s[f]-v.length-b.length);const S=v+"-".repeat(_)+b;t.alignDelimiters!==!1&&(_=v.length+_+b.length,_>s[f]&&(s[f]=_),h[f]=_),k[f]=S}a.splice(1,0,k),o.splice(1,0,h),p=-1;const w=[];for(;++p<a.length;){const C=a[p],v=o[p];f=-1;const b=[];for(;++f<c;){const _=C[f]||"";let S="",R="";if(t.alignDelimiters!==!1){const F=s[f]-(v[f]||0),y=l[f];y===114?S=" ".repeat(F):y===99?F%2?(S=" ".repeat(F/2+.5),R=" ".repeat(F/2-.5)):(S=" ".repeat(F/2),R=S):R=" ".repeat(F)}t.delimiterStart!==!1&&!f&&b.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&_==="")&&(t.delimiterStart!==!1||f)&&b.push(" "),t.alignDelimiters!==!1&&b.push(S),b.push(_),t.alignDelimiters!==!1&&b.push(R),t.padding!==!1&&b.push(" "),(t.delimiterEnd!==!1||f!==c-1)&&b.push("|")}w.push(t.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return w.join(`
15
- `)}r(Mu,"markdownTable");function Du(e){return e==null?"":String(e)}r(Du,"serialize");function dt(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}r(dt,"toAlignment");function Tl(){return{enter:{table:Pu,tableData:bt,tableHeader:bt,tableRow:$u},exit:{codeText:Hu,table:Ou,tableData:Be,tableHeader:Be,tableRow:Be}}}r(Tl,"gfmTableFromMarkdown");function Pu(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}r(Pu,"enterTable");function Ou(e){this.exit(e),this.data.inTable=void 0}r(Ou,"exitTable");function $u(e){this.enter({type:"tableRow",children:[]},e)}r($u,"enterRow");function Be(e){this.exit(e)}r(Be,"exit");function bt(e){this.enter({type:"tableCell",children:[]},e)}r(bt,"enterCell");function Hu(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Nu));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}r(Hu,"exitCodeText");function Nu(e,n){return n==="|"?n:e}r(Nu,"replace");function zl(e){const n=e||{},t=n.tableCellPadding,i=n.tablePipeAlign,u=n.stringLength,l=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
14
+ `;break;case-2:a=n?" ":" ";break;case-1:if(!n&&u)continue;a=" ";break;default:a=String.fromCharCode(l)}u=l===-2,i.push(a)}return i.join("")}r(yu,"serializeChunks");function wu(e){const n={constructs:Rr([ou,...(e||{}).extensions||[]]),content:t(Dr),defined:[],document:t(Or),flow:t(nu),lazy:{},string:t(uu),text:t(lu)};return n;function t(i){return u;function u(l){return du(n,i,l)}}}r(wu,"parse");function Iu(e){for(;!qt(e););return e}r(Iu,"postprocess");var pt=/[\0\t\n\r]/g;function Su(){let e=1,n="",t=!0,i;return u;function u(l,a,o){const s=[];let c,p,f,k,h;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(a||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(pt.lastIndex=f,c=pt.exec(l),k=c&&c.index!==void 0?c.index:l.length,h=l.charCodeAt(k),!c){n=l.slice(f);break}if(h===10&&f===k&&i)s.push(-3),i=void 0;else switch(i&&(s.push(-5),i=void 0),f<k&&(s.push(l.slice(f,k)),e+=k-f),h){case 0:s.push(65533),e++;break;case 9:for(p=Math.ceil(e/4)*4,s.push(-2);e++<p;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:i=!0,e=1}f=k+1}return o&&(i&&s.push(-5),n&&s.push(n),s.push(null)),s}}r(Su,"preprocess");var Kt={}.hasOwnProperty;function ml(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Cu(t)(Iu(wu(t).document().write(Su()(e,n,!0))))}r(ml,"fromMarkdown");function Cu(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ke),autolinkProtocol:P,autolinkEmail:P,atxHeading:l(Qe),blockQuote:l(pe),characterEscape:P,characterReference:P,codeFenced:l(Ue),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(Ue,a),codeText:l(Xt,a),codeTextData:P,data:P,codeFlowValue:P,definition:l(Zt),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(Jt),hardBreakEscape:l(We),hardBreakTrailing:l(We),htmlFlow:l(Ye,a),htmlFlowData:P,htmlText:l(Ye,a),htmlTextData:P,image:l(en),label:a,link:l(Ke),listItem:l(tn),listItemValue:k,listOrdered:l(Ge,f),listUnordered:l(Ge),paragraph:l(nn),reference:g,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(Qe),strong:l(rn),thematicBreak:l(ln)},exit:{atxHeading:s(),atxHeadingSequence:F,autolink:s(),autolinkEmail:fe,autolinkProtocol:re,blockQuote:s(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:V,characterReference:be,codeFenced:s(v),codeFencedFence:C,codeFencedFenceInfo:h,codeFencedFenceMeta:w,codeFlowValue:x,codeIndented:s(b),codeText:s(M),codeTextData:x,data:x,definition:s(),definitionDestinationString:R,definitionLabelString:_,definitionTitleString:S,emphasis:s(),hardBreakEscape:s(T),hardBreakTrailing:s(T),htmlFlow:s(O),htmlFlowData:x,htmlText:s(j),htmlTextData:x,image:s(q),label:te,labelText:Z,lineEnding:E,link:s(Q),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ae,resourceDestinationString:m,resourceTitleString:le,resource:ne,setextHeading:s($),setextHeadingLineSequence:B,setextHeadingText:y,strong:s(),thematicBreak:s()}};Gt(n,(e||{}).mdastExtensions||[]);const t={};return i;function i(d){let I={type:"root",children:[]};const A={stack:[I],tokenStack:[],config:n,enter:o,exit:c,buffer:a,resume:p,data:t},N=[];let H=-1;for(;++H<d.length;)(d[H][1].type==="listOrdered"||d[H][1].type==="listUnordered")&&(d[H][0]==="enter"?N.push(H):H=u(d,N.pop(),H));for(H=-1;++H<d.length;){const oe=n[d[H][0]];Kt.call(oe,d[H][1].type)&&oe[d[H][1].type].call(Object.assign({sliceSerialize:d[H][2].sliceSerialize},A),d[H][1])}if(A.tokenStack.length>0){const oe=A.tokenStack[A.tokenStack.length-1];(oe[1]||mt).call(A,void 0,oe[0])}for(I.position={start:se(d.length>0?d[0][1].start:{line:1,column:1,offset:0}),end:se(d.length>0?d[d.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<n.transforms.length;)I=n.transforms[H](I)||I;return I}function u(d,I,A){let N=I-1,H=-1,oe=!1,me,ie,ye,we;for(;++N<=A;){const Y=d[N];switch(Y[1].type){case"listUnordered":case"listOrdered":case"blockQuote":Y[0]==="enter"?H++:H--,we=void 0;break;case"lineEndingBlank":Y[0]==="enter"&&(me&&!we&&!H&&!ye&&(ye=N),we=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:we=void 0}if(!H&&Y[0]==="enter"&&Y[1].type==="listItemPrefix"||H===-1&&Y[0]==="exit"&&(Y[1].type==="listUnordered"||Y[1].type==="listOrdered")){if(me){let ge=N;for(ie=void 0;ge--;){const ue=d[ge];if(ue[1].type==="lineEnding"||ue[1].type==="lineEndingBlank"){if(ue[0]==="exit")continue;ie&&(d[ie][1].type="lineEndingBlank",oe=!0),ue[1].type="lineEnding",ie=ge}else if(!(ue[1].type==="linePrefix"||ue[1].type==="blockQuotePrefix"||ue[1].type==="blockQuotePrefixWhitespace"||ue[1].type==="blockQuoteMarker"||ue[1].type==="listItemIndent"))break}ye&&(!ie||ye<ie)&&(me._spread=!0),me.end=Object.assign({},ie?d[ie][1].start:Y[1].end),d.splice(ie||N,0,["exit",me,Y[2]]),N++,A++}if(Y[1].type==="listItemPrefix"){const ge={type:"listItem",_spread:!1,start:Object.assign({},Y[1].start),end:void 0};me=ge,d.splice(N,0,["enter",ge,Y[2]]),N++,A++,ye=void 0,we=!0}}}return d[I][1]._spread=oe,A}function l(d,I){return A;function A(N){o.call(this,d(N),N),I&&I.call(this,N)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(d,I,A){this.stack[this.stack.length-1].children.push(d),this.stack.push(d),this.tokenStack.push([I,A||void 0]),d.position={start:se(I.start),end:void 0}}function s(d){return I;function I(A){d&&d.call(this,A),c.call(this,A)}}function c(d,I){const A=this.stack.pop(),N=this.tokenStack.pop();if(N)N[0].type!==d.type&&(I?I.call(this,d,N[0]):(N[1]||mt).call(this,d,N[0]));else throw new Error("Cannot close `"+d.type+"` ("+Se({start:d.start,end:d.end})+"): it’s not open");A.position.end=se(d.end)}function p(){return je(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function k(d){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(d),10),this.data.expectingFirstListItemValue=void 0}}function h(){const d=this.resume(),I=this.stack[this.stack.length-1];I.lang=d}function w(){const d=this.resume(),I=this.stack[this.stack.length-1];I.meta=d}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d.replace(/(\r?\n|\r)$/g,"")}function _(d){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(d)).toLowerCase()}function S(){const d=this.resume(),I=this.stack[this.stack.length-1];I.title=d}function R(){const d=this.resume(),I=this.stack[this.stack.length-1];I.url=d}function F(d){const I=this.stack[this.stack.length-1];I.depth||(I.depth=this.sliceSerialize(d).length)}function y(){this.data.setextHeadingSlurpLineEnding=!0}function B(d){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(d).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function P(d){const I=this.stack[this.stack.length-1].children;let A=I[I.length-1];(!A||A.type!=="text")&&(A=un(),A.position={start:se(d.start),end:void 0},I.push(A)),this.stack.push(A)}function x(d){const I=this.stack.pop();I.value+=this.sliceSerialize(d),I.position.end=se(d.end)}function E(d){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const A=I.children[I.children.length-1];A.position.end=se(d.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(P.call(this,d),x.call(this,d))}function T(){this.data.atHardBreak=!0}function O(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function j(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function M(){const d=this.resume(),I=this.stack[this.stack.length-1];I.value=d}function Q(){const d=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";d.type+="Reference",d.referenceType=I,delete d.url,delete d.title}else delete d.identifier,delete d.label;this.data.referenceType=void 0}function q(){const d=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";d.type+="Reference",d.referenceType=I,delete d.url,delete d.title}else delete d.identifier,delete d.label;this.data.referenceType=void 0}function Z(d){const I=this.sliceSerialize(d),A=this.stack[this.stack.length-2];A.label=Lr(I),A.identifier=xe(I).toLowerCase()}function te(){const d=this.stack[this.stack.length-1],I=this.resume(),A=this.stack[this.stack.length-1];this.data.inReference=!0,A.type==="link"?A.children=d.children:A.alt=I}function m(){const d=this.resume(),I=this.stack[this.stack.length-1];I.url=d}function le(){const d=this.resume(),I=this.stack[this.stack.length-1];I.title=d}function ne(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ae(d){const I=this.resume(),A=this.stack[this.stack.length-1];A.label=I,A.identifier=xe(this.sliceSerialize(d)).toLowerCase(),this.data.referenceType="full"}function he(d){this.data.characterReferenceType=d.type}function V(d){const I=this.sliceSerialize(d),A=this.data.characterReferenceType;let N;A?(N=$t(I,A==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):N=$e(I);const H=this.stack[this.stack.length-1];H.value+=N}function be(d){const I=this.stack.pop();I.position.end=se(d.end)}function re(d){x.call(this,d);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(d)}function fe(d){x.call(this,d);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(d)}function pe(){return{type:"blockquote",children:[]}}function Ue(){return{type:"code",lang:null,meta:null,value:""}}function Xt(){return{type:"inlineCode",value:""}}function Zt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Jt(){return{type:"emphasis",children:[]}}function Qe(){return{type:"heading",depth:0,children:[]}}function We(){return{type:"break"}}function Ye(){return{type:"html",value:""}}function en(){return{type:"image",title:null,url:"",alt:null}}function Ke(){return{type:"link",title:null,url:"",children:[]}}function Ge(d){return{type:"list",ordered:d.type==="listOrdered",start:null,spread:d._spread,children:[]}}function tn(d){return{type:"listItem",spread:d._spread,checked:null,children:[]}}function nn(){return{type:"paragraph",children:[]}}function rn(){return{type:"strong",children:[]}}function un(){return{type:"text",value:""}}function ln(){return{type:"thematicBreak"}}}r(Cu,"compiler");function se(e){return{line:e.line,column:e.column,offset:e.offset}}r(se,"point");function Gt(e,n){let t=-1;for(;++t<n.length;){const i=n[t];Array.isArray(i)?Gt(e,i):vu(e,i)}}r(Gt,"configure");function vu(e,n){let t;for(t in n)if(Kt.call(n,t))switch(t){case"canContainEols":{const i=n[t];i&&e[t].push(...i);break}case"transforms":{const i=n[t];i&&e[t].push(...i);break}case"enter":case"exit":{const i=n[t];i&&Object.assign(e[t],i);break}}}r(vu,"extension");function mt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Se({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Se({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Se({start:n.start,end:n.end})+") is still open")}r(mt,"defaultOnError");var Eu={name:"tasklistCheck",tokenize:Tu};function gl(){return{text:{91:Eu}}}r(gl,"gfmTaskListItem");function Tu(e,n,t){const i=this;return u;function u(s){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return U(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),a):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),a):t(s)}function a(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):t(s)}function o(s){return z(s)?n(s):L(s)?e.check({tokenize:zu},n,t)(s):t(s)}}r(Tu,"tokenizeTasklistCheck");function zu(e,n,t){return D(e,i,"whitespace");function i(u){return u===null?t(u):n(u)}}r(zu,"spaceThenNonSpace");function kl(){return{exit:{taskListCheckValueChecked:gt,taskListCheckValueUnchecked:gt,paragraph:_u}}}r(kl,"gfmTaskListItemFromMarkdown");function xl(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Au}}}r(xl,"gfmTaskListItemToMarkdown");function gt(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}r(gt,"exitCheck");function _u(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const i=t.children[0];if(i&&i.type==="text"){const u=n.children;let l=-1,a;for(;++l<u.length;){const o=u[l];if(o.type==="paragraph"){a=o;break}}a===t&&(i.value=i.value.slice(1),i.value.length===0?t.children.shift():t.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,t.position.start=Object.assign({},i.position.start)))}}this.exit(e)}r(_u,"exitParagraphWithTaskListItem");function Au(e,n,t,i){const u=e.children[0],l=typeof e.checked=="boolean"&&u&&u.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",o=t.createTracker(i);l&&o.move(a);let s=Ot.listItem(e,n,t,{...i,...o.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(p){return p+a}r(c,"check")}r(Au,"listItemWithTaskListItem");function Lu(e){return e.length}r(Lu,"defaultStringLength");function Fu(e,n){const t=n||{},i=(t.align||[]).concat(),u=t.stringLength||Lu,l=[],a=[],o=[],s=[];let c=0,p=-1;for(;++p<e.length;){const C=[],v=[];let b=-1;for(e[p].length>c&&(c=e[p].length);++b<e[p].length;){const _=Ru(e[p][b]);if(t.alignDelimiters!==!1){const S=u(_);v[b]=S,(s[b]===void 0||S>s[b])&&(s[b]=S)}C.push(_)}a[p]=C,o[p]=v}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<c;)l[f]=kt(i[f]);else{const C=kt(i);for(;++f<c;)l[f]=C}f=-1;const k=[],h=[];for(;++f<c;){const C=l[f];let v="",b="";C===99?(v=":",b=":"):C===108?v=":":C===114&&(b=":");let _=t.alignDelimiters===!1?1:Math.max(1,s[f]-v.length-b.length);const S=v+"-".repeat(_)+b;t.alignDelimiters!==!1&&(_=v.length+_+b.length,_>s[f]&&(s[f]=_),h[f]=_),k[f]=S}a.splice(1,0,k),o.splice(1,0,h),p=-1;const w=[];for(;++p<a.length;){const C=a[p],v=o[p];f=-1;const b=[];for(;++f<c;){const _=C[f]||"";let S="",R="";if(t.alignDelimiters!==!1){const F=s[f]-(v[f]||0),y=l[f];y===114?S=" ".repeat(F):y===99?F%2?(S=" ".repeat(F/2+.5),R=" ".repeat(F/2-.5)):(S=" ".repeat(F/2),R=S):R=" ".repeat(F)}t.delimiterStart!==!1&&!f&&b.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&_==="")&&(t.delimiterStart!==!1||f)&&b.push(" "),t.alignDelimiters!==!1&&b.push(S),b.push(_),t.alignDelimiters!==!1&&b.push(R),t.padding!==!1&&b.push(" "),(t.delimiterEnd!==!1||f!==c-1)&&b.push("|")}w.push(t.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return w.join(`
15
+ `)}r(Fu,"markdownTable");function Ru(e){return e==null?"":String(e)}r(Ru,"serialize");function kt(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}r(kt,"toAlignment");function dl(){return{enter:{table:Bu,tableData:xt,tableHeader:xt,tableRow:Du},exit:{codeText:Pu,table:Mu,tableData:Be,tableHeader:Be,tableRow:Be}}}r(dl,"gfmTableFromMarkdown");function Bu(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}r(Bu,"enterTable");function Mu(e){this.exit(e),this.data.inTable=void 0}r(Mu,"exitTable");function Du(e){this.enter({type:"tableRow",children:[]},e)}r(Du,"enterRow");function Be(e){this.exit(e)}r(Be,"exit");function xt(e){this.enter({type:"tableCell",children:[]},e)}r(xt,"enterCell");function Pu(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Ou));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}r(Pu,"exitCodeText");function Ou(e,n){return n==="|"?n:e}r(Ou,"replace");function bl(e){const n=e||{},t=n.tableCellPadding,i=n.tablePipeAlign,u=n.stringLength,l=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
16
16
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:k,table:a,tableCell:s,tableRow:o}};function a(h,w,C,v){return c(p(h,C,v),h.align)}function o(h,w,C,v){const b=c([f(h,C,v)]);return b.slice(0,b.indexOf(`
17
- `))}function s(h,w,C,v){const b=C.enter("tableCell"),_=C.enter("phrasing"),S=C.containerPhrasing(h,{...v,before:l,after:l});return _(),b(),S}function c(h,w){return Mu(h,{align:w,alignDelimiters:i,padding:t,stringLength:u})}function p(h,w,C){const v=h.children;let b=-1;const _=[],S=w.enter("table");for(;++b<v.length;)_[b]=f(v[b],w,C);return S(),_}function f(h,w,C){const v=h.children;let b=-1;const _=[],S=w.enter("tableRow");for(;++b<v.length;)_[b]=s(v[b],h,w,C);return S(),_}function k(h,w,C){let v=jt.inlineCode(h,w,C);return C.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}r(zl,"gfmTableToMarkdown");var ju=class{static{r(this,"EditMap")}constructor(){this.map=[]}add(e,n,t){qu(this,e,n,t)}consume(e){if(this.map.sort(function(u,l){return u[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const t=[];for(;n>0;)n-=1,t.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];t.push(e.slice()),e.length=0;let i=t.pop();for(;i;){for(const u of i)e.push(u);i=t.pop()}this.map.length=0}};function qu(e,n,t,i){let u=0;if(!(t===0&&i.length===0)){for(;u<e.map.length;){if(e.map[u][0]===n){e.map[u][1]+=t,e.map[u][2].push(...i);return}u+=1}e.map.push([n,t,i])}}r(qu,"addImplementation");function Vu(e,n){let t=!1;const i=[];for(;n<e.length;){const u=e[n];if(t){if(u[0]==="enter")u[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const l=i.length-1;i[l]=i[l]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return i}r(Vu,"gfmTableAlign");function _l(){return{flow:{null:{name:"table",tokenize:Uu,resolveAll:Qu}}}}r(_l,"gfmTable");function Uu(e,n,t){const i=this;let u=0,l=0,a;return o;function o(x){let E=i.events.length-1;for(;E>-1;){const j=i.events[E][1].type;if(j==="lineEnding"||j==="linePrefix")E--;else break}const T=E>-1?i.events[E][1].type:null,O=T==="tableHead"||T==="tableRow"?y:s;return O===y&&i.parser.lazy[i.now().line]?t(x):O(x)}function s(x){return e.enter("tableHead"),e.enter("tableRow"),c(x)}function c(x){return x===124||(a=!0,l+=1),p(x)}function p(x){return x===null?t(x):z(x)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):t(x):L(x)?D(e,p,"whitespace")(x):(l+=1,a&&(a=!1,u+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),a=!0,p):(e.enter("data"),f(x)))}function f(x){return x===null||x===124||U(x)?(e.exit("data"),p(x)):(e.consume(x),x===92?k:f)}function k(x){return x===92||x===124?(e.consume(x),f):f(x)}function h(x){return i.interrupt=!1,i.parser.lazy[i.now().line]?t(x):(e.enter("tableDelimiterRow"),a=!1,L(x)?D(e,w,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):w(x))}function w(x){return x===45||x===58?v(x):x===124?(a=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),C):F(x)}function C(x){return L(x)?D(e,v,"whitespace")(x):v(x)}function v(x){return x===58?(l+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),b):x===45?(l+=1,b(x)):x===null||z(x)?R(x):F(x)}function b(x){return x===45?(e.enter("tableDelimiterFiller"),_(x)):F(x)}function _(x){return x===45?(e.consume(x),_):x===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(x))}function S(x){return L(x)?D(e,R,"whitespace")(x):R(x)}function R(x){return x===124?w(x):x===null||z(x)?!a||u!==l?F(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(x)):F(x)}function F(x){return t(x)}function y(x){return e.enter("tableRow"),B(x)}function B(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),B):x===null||z(x)?(e.exit("tableRow"),n(x)):L(x)?D(e,B,"whitespace")(x):(e.enter("data"),$(x))}function $(x){return x===null||x===124||U(x)?(e.exit("data"),B(x)):(e.consume(x),x===92?P:$)}function P(x){return x===92||x===124?(e.consume(x),$):$(x)}}r(Uu,"tokenizeTable");function Qu(e,n){let t=-1,i=!0,u=0,l=[0,0,0,0],a=[0,0,0,0],o=!1,s=0,c,p,f;const k=new ju;for(;++t<e.length;){const h=e[t],w=h[1];h[0]==="enter"?w.type==="tableHead"?(o=!1,s!==0&&(yt(k,n,s,c,p),p=void 0,s=0),c={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",c,n]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(i=!0,f=void 0,l=[0,0,0,0],a=[0,t+1,0,0],o&&(o=!1,p={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",p,n]])),u=w.type==="tableDelimiterRow"?2:p?3:1):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(i=!1,a[2]===0&&(l[1]!==0&&(a[0]=a[1],f=Ee(k,n,l,u,void 0,f),l=[0,0,0,0]),a[2]=t)):w.type==="tableCellDivider"&&(i?i=!1:(l[1]!==0&&(a[0]=a[1],f=Ee(k,n,l,u,void 0,f)),l=a,a=[l[1],t,0,0])):w.type==="tableHead"?(o=!0,s=t):w.type==="tableRow"||w.type==="tableDelimiterRow"?(s=t,l[1]!==0?(a[0]=a[1],f=Ee(k,n,l,u,t,f)):a[1]!==0&&(f=Ee(k,n,a,u,t,f)),u=0):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(a[3]=t)}for(s!==0&&yt(k,n,s,c,p),k.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Vu(n.events,t))}return e}r(Qu,"resolveTable");function Ee(e,n,t,i,u,l){const a=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";t[0]!==0&&(l.end=Object.assign({},ke(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const s=ke(n.events,t[1]);if(l={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){const c=ke(n.events,t[2]),p=ke(n.events,t[3]),f={type:o,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(t[2],0,[["enter",f,n]]),i!==2){const k=n.events[t[2]],h=n.events[t[3]];if(k[1].end=Object.assign({},h[1].end),k[1].type="chunkText",k[1].contentType="text",t[3]>t[2]+1){const w=t[2]+1,C=t[3]-t[2]-1;e.add(w,C,[])}}e.add(t[3]+1,0,[["exit",f,n]])}return u!==void 0&&(l.end=Object.assign({},ke(n.events,u)),e.add(u,0,[["exit",l,n]]),l=void 0),l}r(Ee,"flushCell");function yt(e,n,t,i,u){const l=[],a=ke(n.events,t);u&&(u.end=Object.assign({},a),l.push(["exit",u,n])),i.end=Object.assign({},a),l.push(["exit",i,n]),e.add(t+1,0,l)}r(yt,"flushTableEnd");function ke(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}r(ke,"getPoint");var Wu={r:24,g:24,b:27},Gu={r:255,g:255,b:255};function tn(e){const n=/^#?([0-9a-f]{3,6})$/i.exec(e.trim());if(!n)return null;let t=n[1];return t.length===3&&(t=t.split("").map(i=>`${i}${i}`).join("")),t.length!==6?null:{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)}}r(tn,"hexToRgb");function Me(e){const n=e/255;return n<=.03928?n/12.92:((n+.055)/1.055)**2.4}r(Me,"relativeLuminanceChannel");function De(e,n,t){return .2126*Me(e)+.7152*Me(n)+.0722*Me(t)}r(De,"relativeLuminance");function wt(e,n){const t=Math.max(e,n),i=Math.min(e,n);return(t+.05)/(i+.05)}r(wt,"contrastRatio");function Ku(){return typeof document>"u"?!0:document.documentElement.classList.contains("dark")}r(Ku,"isDarkMode");function Yu(e,n,t){return{r:Math.round(t*e.r+(1-t)*n.r),g:Math.round(t*e.g+(1-t)*n.g),b:Math.round(t*e.b+(1-t)*n.b)}}r(Yu,"composite");var Xu="#f8fafc",Zu="#111827",It=Xu,Ju=Zu;function el(e,n=.22){const t=tn(e);if(!t)return It;const i=Yu(t,Ku()?Wu:Gu,n),u=De(i.r,i.g,i.b),l=De(248,250,252),a=De(17,24,39);return wt(u,l)>=wt(u,a)?It:Ju}r(el,"pickTextColorForPillBg");function Al(e){if(/^https?:\/\//i.test(e.trim()))return null;const n=An(e);if(n)return{kind:"issue",identifier:n.identifier};const t=Ct(e);if(t)return{kind:"agent",agentId:t.agentId,icon:t.icon};const i=vn(e);if(i)return{kind:"project",projectId:i.projectId,color:i.color};const u=En(e);if(u)return{kind:"user",userId:u.userId};const l=Tn(e);if(l)return{kind:"skill",skillId:l.skillId,slug:l.slug};const a=zn(e);return a?{kind:"routine",routineId:a.routineId}:null}r(Al,"parseMentionChipHref");function tl(e){const n={};if(e.kind==="project"&&e.color){const t=rl(e.color);Object.assign(n,t),n["--paperclip-mention-project-color"]=e.color}if(e.kind==="agent"){const t=gn(e.appearance,e.agentId);n["--paperclip-mention-avatar-image"]=`url("${mn(t,16,2)}")`}return Object.keys(n).length>0?n:void 0}r(tl,"mentionChipInlineStyle");function Ll(e,n){nl(e),e.dataset.mentionKind=n.kind,e.setAttribute("contenteditable","false"),e.classList.add("paperclip-mention-chip",`paperclip-mention-chip--${n.kind}`),n.kind==="project"&&e.classList.add("paperclip-project-mention-chip");const t=tl(n);if(t)for(const[i,u]of Object.entries(t))typeof u=="string"&&(i.startsWith("--")?e.style.setProperty(i,u):e.style[i]=u)}r(Ll,"applyMentionChipDecoration");function nl(e){delete e.dataset.mentionKind,e.classList.remove("paperclip-mention-chip","paperclip-mention-chip--agent","paperclip-mention-chip--issue","paperclip-mention-chip--project","paperclip-mention-chip--routine","paperclip-mention-chip--user","paperclip-mention-chip--skill","paperclip-project-mention-chip"),e.removeAttribute("contenteditable"),e.style.removeProperty("border-color"),e.style.removeProperty("background-color"),e.style.removeProperty("color"),e.style.removeProperty("--paperclip-mention-project-color"),e.style.removeProperty("--paperclip-mention-icon-mask"),e.style.removeProperty("--paperclip-mention-avatar-image")}r(nl,"clearMentionChipDecoration");function rl(e){const n=tn(e);return n?{borderColor:e,backgroundColor:`rgba(${n.r}, ${n.g}, ${n.b}, 0.22)`,color:el(e)}:{}}r(rl,"projectMentionColors");export{ol as $,yl as A,_e as B,qe as C,D,Wn as E,bl as F,z as G,ee as H,xl as I,Bn as J,U as K,gl as L,Se as M,Ne as N,wl as O,dl as P,Tt as Q,kl as R,ar as S,Kn as T,J as U,de as V,Pe as W,K as X,Mn as Y,pl as Z,Dr as _,Zu as a,Ct as at,fr as b,_l as c,vl as d,al as et,El as f,xe as g,Le as h,Al as i,fl as it,Y as j,Il as k,Tl as l,Sl as m,nl as n,cl as nt,Xu as o,Cl as p,L as q,tl as r,sl as rt,el as s,Ll as t,hl as tt,zl as u,Br as v,ve as w,sr as x,jt as y,ml as z};
17
+ `))}function s(h,w,C,v){const b=C.enter("tableCell"),_=C.enter("phrasing"),S=C.containerPhrasing(h,{...v,before:l,after:l});return _(),b(),S}function c(h,w){return Fu(h,{align:w,alignDelimiters:i,padding:t,stringLength:u})}function p(h,w,C){const v=h.children;let b=-1;const _=[],S=w.enter("table");for(;++b<v.length;)_[b]=f(v[b],w,C);return S(),_}function f(h,w,C){const v=h.children;let b=-1;const _=[],S=w.enter("tableRow");for(;++b<v.length;)_[b]=s(v[b],h,w,C);return S(),_}function k(h,w,C){let v=Ot.inlineCode(h,w,C);return C.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}r(bl,"gfmTableToMarkdown");var $u=class{static{r(this,"EditMap")}constructor(){this.map=[]}add(e,n,t){Nu(this,e,n,t)}consume(e){if(this.map.sort(function(u,l){return u[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const t=[];for(;n>0;)n-=1,t.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];t.push(e.slice()),e.length=0;let i=t.pop();for(;i;){for(const u of i)e.push(u);i=t.pop()}this.map.length=0}};function Nu(e,n,t,i){let u=0;if(!(t===0&&i.length===0)){for(;u<e.map.length;){if(e.map[u][0]===n){e.map[u][1]+=t,e.map[u][2].push(...i);return}u+=1}e.map.push([n,t,i])}}r(Nu,"addImplementation");function Hu(e,n){let t=!1;const i=[];for(;n<e.length;){const u=e[n];if(t){if(u[0]==="enter")u[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const l=i.length-1;i[l]=i[l]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return i}r(Hu,"gfmTableAlign");function yl(){return{flow:{null:{name:"table",tokenize:ju,resolveAll:qu}}}}r(yl,"gfmTable");function ju(e,n,t){const i=this;let u=0,l=0,a;return o;function o(x){let E=i.events.length-1;for(;E>-1;){const j=i.events[E][1].type;if(j==="lineEnding"||j==="linePrefix")E--;else break}const T=E>-1?i.events[E][1].type:null,O=T==="tableHead"||T==="tableRow"?y:s;return O===y&&i.parser.lazy[i.now().line]?t(x):O(x)}function s(x){return e.enter("tableHead"),e.enter("tableRow"),c(x)}function c(x){return x===124||(a=!0,l+=1),p(x)}function p(x){return x===null?t(x):z(x)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):t(x):L(x)?D(e,p,"whitespace")(x):(l+=1,a&&(a=!1,u+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),a=!0,p):(e.enter("data"),f(x)))}function f(x){return x===null||x===124||U(x)?(e.exit("data"),p(x)):(e.consume(x),x===92?k:f)}function k(x){return x===92||x===124?(e.consume(x),f):f(x)}function h(x){return i.interrupt=!1,i.parser.lazy[i.now().line]?t(x):(e.enter("tableDelimiterRow"),a=!1,L(x)?D(e,w,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):w(x))}function w(x){return x===45||x===58?v(x):x===124?(a=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),C):F(x)}function C(x){return L(x)?D(e,v,"whitespace")(x):v(x)}function v(x){return x===58?(l+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),b):x===45?(l+=1,b(x)):x===null||z(x)?R(x):F(x)}function b(x){return x===45?(e.enter("tableDelimiterFiller"),_(x)):F(x)}function _(x){return x===45?(e.consume(x),_):x===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(x))}function S(x){return L(x)?D(e,R,"whitespace")(x):R(x)}function R(x){return x===124?w(x):x===null||z(x)?!a||u!==l?F(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(x)):F(x)}function F(x){return t(x)}function y(x){return e.enter("tableRow"),B(x)}function B(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),B):x===null||z(x)?(e.exit("tableRow"),n(x)):L(x)?D(e,B,"whitespace")(x):(e.enter("data"),$(x))}function $(x){return x===null||x===124||U(x)?(e.exit("data"),B(x)):(e.consume(x),x===92?P:$)}function P(x){return x===92||x===124?(e.consume(x),$):$(x)}}r(ju,"tokenizeTable");function qu(e,n){let t=-1,i=!0,u=0,l=[0,0,0,0],a=[0,0,0,0],o=!1,s=0,c,p,f;const k=new $u;for(;++t<e.length;){const h=e[t],w=h[1];h[0]==="enter"?w.type==="tableHead"?(o=!1,s!==0&&(dt(k,n,s,c,p),p=void 0,s=0),c={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",c,n]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(i=!0,f=void 0,l=[0,0,0,0],a=[0,t+1,0,0],o&&(o=!1,p={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(t,0,[["enter",p,n]])),u=w.type==="tableDelimiterRow"?2:p?3:1):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(i=!1,a[2]===0&&(l[1]!==0&&(a[0]=a[1],f=Ee(k,n,l,u,void 0,f),l=[0,0,0,0]),a[2]=t)):w.type==="tableCellDivider"&&(i?i=!1:(l[1]!==0&&(a[0]=a[1],f=Ee(k,n,l,u,void 0,f)),l=a,a=[l[1],t,0,0])):w.type==="tableHead"?(o=!0,s=t):w.type==="tableRow"||w.type==="tableDelimiterRow"?(s=t,l[1]!==0?(a[0]=a[1],f=Ee(k,n,l,u,t,f)):a[1]!==0&&(f=Ee(k,n,a,u,t,f)),u=0):u&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(a[3]=t)}for(s!==0&&dt(k,n,s,c,p),k.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Hu(n.events,t))}return e}r(qu,"resolveTable");function Ee(e,n,t,i,u,l){const a=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";t[0]!==0&&(l.end=Object.assign({},ke(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const s=ke(n.events,t[1]);if(l={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){const c=ke(n.events,t[2]),p=ke(n.events,t[3]),f={type:o,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(t[2],0,[["enter",f,n]]),i!==2){const k=n.events[t[2]],h=n.events[t[3]];if(k[1].end=Object.assign({},h[1].end),k[1].type="chunkText",k[1].contentType="text",t[3]>t[2]+1){const w=t[2]+1,C=t[3]-t[2]-1;e.add(w,C,[])}}e.add(t[3]+1,0,[["exit",f,n]])}return u!==void 0&&(l.end=Object.assign({},ke(n.events,u)),e.add(u,0,[["exit",l,n]]),l=void 0),l}r(Ee,"flushCell");function dt(e,n,t,i,u){const l=[],a=ke(n.events,t);u&&(u.end=Object.assign({},a),l.push(["exit",u,n])),i.end=Object.assign({},a),l.push(["exit",i,n]),e.add(t+1,0,l)}r(dt,"flushTableEnd");function ke(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}r(ke,"getPoint");function wl(e){if(/^https?:\/\//i.test(e.trim()))return null;const n=Tn(e);if(n)return{kind:"issue",identifier:n.identifier};const t=yt(e);if(t)return{kind:"agent",agentId:t.agentId,icon:t.icon};const i=In(e);if(i)return{kind:"project",projectId:i.projectId,color:i.color};const u=Sn(e);if(u)return{kind:"user",userId:u.userId};const l=Cn(e);if(l)return{kind:"skill",skillId:l.skillId,slug:l.slug};const a=vn(e);return a?{kind:"routine",routineId:a.routineId}:null}r(wl,"parseMentionChipHref");function Vu(e){const n={};if(e.kind==="project"&&e.color){const t=Qu(e.color);Object.assign(n,t),n["--wardmote-mention-project-color"]=e.color}if(e.kind==="agent"){const t=cn(e.appearance,e.agentId);n["--wardmote-mention-avatar-image"]=`url("${sn(t,16,2)}")`}return Object.keys(n).length>0?n:void 0}r(Vu,"mentionChipInlineStyle");function Il(e,n){Uu(e),e.dataset.mentionKind=n.kind,e.setAttribute("contenteditable","false"),e.classList.add("wardmote-mention-chip",`wardmote-mention-chip--${n.kind}`),n.kind==="project"&&e.classList.add("wardmote-project-mention-chip");const t=Vu(n);if(t)for(const[i,u]of Object.entries(t))typeof u=="string"&&(i.startsWith("--")?e.style.setProperty(i,u):e.style[i]=u)}r(Il,"applyMentionChipDecoration");function Uu(e){delete e.dataset.mentionKind,e.classList.remove("wardmote-mention-chip","wardmote-mention-chip--agent","wardmote-mention-chip--issue","wardmote-mention-chip--project","wardmote-mention-chip--routine","wardmote-mention-chip--user","wardmote-mention-chip--skill","wardmote-project-mention-chip"),e.removeAttribute("contenteditable"),e.style.removeProperty("border-color"),e.style.removeProperty("background-color"),e.style.removeProperty("color"),e.style.removeProperty("--wardmote-mention-project-color"),e.style.removeProperty("--wardmote-mention-icon-mask"),e.style.removeProperty("--wardmote-mention-avatar-image")}r(Uu,"clearMentionChipDecoration");function Qu(e){const n=fn(e);return n?{borderColor:e,backgroundColor:`rgba(${n.r}, ${n.g}, ${n.b}, 0.22)`,color:hn(e)}:{}}r(Qu,"projectMentionColors");export{tl as $,$e as A,J as B,Vn as C,hl as D,pl as E,al as F,Ln as G,z as H,ul as I,il as J,Fn as K,_e as L,cl as M,ol as N,G as O,ll as P,nl as Q,de as R,Qn as S,fl as T,U,Me as V,L as W,Ju as X,St as Y,Zu as Z,sr as _,yl as a,He as b,kl as c,ml as d,el as et,Le as f,Ot as g,Lr as h,wl as i,sl as j,Se as k,xl as l,Rr as m,Uu as n,yt as nt,dl as o,xe as p,K as q,Vu as r,bl as s,Il as t,rl as tt,gl as u,lr as v,D as w,ve as x,ir as y,ee as z};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-C01KAfc1.js";var a={name:"message-square-plus",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]]};a.node;var t=e(a);export{t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-C01KAfc1.js";var a={name:"minus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}]]};a.node;var o=e(a);export{o as t};
@@ -0,0 +1 @@
1
+ var i=Object.defineProperty;var n=(e,t)=>i(e,"name",{value:t,configurable:!0});var c=0;function l(){return c+=1,`env-row-${c}`}n(l,"nextRowId");function o(e="text"){return{id:l(),name:"",source:e,textValue:"",secretId:"",userSecretKey:"",required:!0,version:"latest"}}n(o,"emptyRow");function a(e){return typeof e=="object"&&e!==null&&"type"in e&&e.type==="secret_ref"}n(a,"isSecretRef");function f(e){return typeof e=="object"&&e!==null&&"type"in e&&e.type==="plain"}n(f,"isPlainObj");function m(e){return typeof e=="object"&&e!==null&&"type"in e&&e.type==="user_secret_ref"}n(m,"isUserSecretRef");function v(e){return!e||typeof e!="object"?[]:Object.entries(e).map(([t,r])=>{if(typeof r=="string")return{...o(),name:t,textValue:r};if(a(r)){const s=typeof r.version=="number"?r.version:"latest";return{...o(),name:t,source:"secret",secretId:typeof r.secretId=="string"?r.secretId:"",version:s}}if(m(r)){const s=typeof r.version=="number"?r.version:"latest";return{...o(),name:t,source:"user_secret",userSecretKey:typeof r.key=="string"?r.key:"",required:r.required!==!1,version:s}}return f(r)?{...o(),name:t,source:"text",textValue:typeof r.value=="string"?r.value:""}:{...o(),name:t}})}n(v,"rowsFromValue");function p(e){const t={};for(const r of e){const s=r.name.trim();if(s)if(r.source==="secret"){if(!r.secretId)continue;t[s]={type:"secret_ref",secretId:r.secretId,version:r.version}}else if(r.source==="user_secret"){const u=r.userSecretKey.trim();if(!u)continue;t[s]={type:"user_secret_ref",key:u,version:r.version,required:r.required}}else t[s]={type:"plain",value:r.textValue}}return Object.keys(t).length>0?t:void 0}n(p,"valueFromRows");var E="CLAUDE_CODE_OAUTH_TOKEN";function x(){return p([{...o("user_secret"),name:"CLAUDE_CODE_OAUTH_TOKEN",userSecretKey:"CLAUDE_CODE_OAUTH_TOKEN",required:!0,version:"latest"}])??{}}n(x,"buildFixedClaudeOAuthBinding");var d=/^[A-Za-z_][A-Za-z0-9_]*$/;function O(e,t,r){const s=e.trim();if(!s)return null;if(!d.test(s))return{level:"error",message:"Invalid name — use letters, digits and _"};if(t.has(s))return{level:"error",message:"Duplicate name"};for(const u of r)if(u&&s.startsWith(u))return{level:"warn",message:"Reserved prefix — provided automatically and may be overridden"};return null}n(O,"validateName");function k(e){const t=new Map;for(const s of e){const u=s.name.trim();u&&t.set(u,(t.get(u)??0)+1)}const r=new Set;for(const[s,u]of t)u>1&&r.add(s);return r}n(k,"computeDuplicateNames");function A(e,t){return t===e.source?{kind:"noop"}:t==="secret"?e.textValue.trim()?{kind:"open-store",name:y(e.name)||"secret",value:e.textValue}:{kind:"to-secret"}:{kind:"to-text",undoFrom:e.secretId?{...e}:null}}n(A,"planSourceSwitch");function K(e,t){if(e.source!=="secret"||!e.secretId)return null;const r=t.find(s=>s.id===e.secretId);return r?r.status!=="active"?{level:"warn",kind:"disabled",message:"Runs will fail until re-enabled or rebound."}:null:{level:"error",kind:"missing",message:"This secret no longer exists — runs will fail until you rebind."}}n(K,"computeRowHealth");function S(e,t){if(e.source!=="user_secret"||!e.userSecretKey||!t?.length)return null;const r=t.find(s=>s.key===e.userSecretKey);return r?r.status!=="active"?{level:"warn",kind:"disabled",message:"Runs will fail until this user secret definition is re-enabled or rebound."}:null:{level:"error",kind:"missing",message:"This user secret definition no longer exists — runs will fail until you rebind."}}n(S,"computeUserSecretRowHealth");function y(e){return e.trim().toLowerCase().replace(/[^a-z0-9_]+/g,"_").replace(/^_+|_+$/g,"").slice(0,64)}n(y,"secretNameFromKey");function w(e){return e.trim().toUpperCase().replace(/[^A-Z0-9_]+/g,"_").replace(/^_+|_+$/g,"").slice(0,64)}n(w,"envKeyFromSecretName");export{S as a,A as c,O as d,p as f,K as i,v as l,x as n,o,k as r,w as s,E as t,y as u};
@@ -0,0 +1 @@
1
+ var m=Object.defineProperty;var o=(e,t)=>m(e,"name",{value:t,configurable:!0});import{g as d}from"./model-picker-fields-reyKlVR2.js";var u={rate_limit:"rate limit",upstream:"upstream error",refusal:"refusal"},f=/:(off|minimal|low|medium|high|xhigh|max|auto)$/;function h(e,t){const r=e.trim().replace(f,"");for(const a of[e.trim(),r]){const n=d(a,t);if(n.provider)return{...n,id:e}}const l=r.indexOf("/");return l<=0||l===r.length-1?{name:r,provider:null,id:e}:{name:r.slice(l+1),provider:r.slice(0,l),id:e}}o(h,"describeFallbackModel");function s(e){return u[e]??e.replace(/_/g," ")}o(s,"modelFallbackReasonLabel");function i(e,t){const r=e?.[t];return typeof r=="string"&&r.trim()?r.trim():null}o(i,"payloadText");function F(e,t){if(e==="model.fallback"){const r=i(t,"to")??"next model",l=i(t,"primary")??i(t,"from"),a=i(t,"reason"),n=[l,a?s(a):null].filter(Boolean).join(": ");return n?`Fallback: ${r} (primary ${n})`:`Fallback: ${r}`}if(e==="model.fallback_restored"){const r=i(t,"to");return r?`Fallback ended: back on ${r}`:"Fallback ended: back on the primary model"}if(e==="model.fallback_exhausted"){const r=i(t,"primary"),l=Array.isArray(t?.tried)?t.tried.filter(c=>typeof c=="string"):[],a=i(t,"reason"),n=[r?`primary ${r}`:null,l.length>0?`tried ${l.join(", ")}`:null,a?s(a):null].filter(Boolean);return n.length>0?`Fallback models exhausted (${n.join("; ")})`:"Fallback models exhausted"}return null}o(F,"describeModelFallbackEvent");export{F as n,s as r,h as t};