machinaos 0.0.76 → 0.0.78

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 (393) hide show
  1. package/README.md +143 -107
  2. package/client/dist/assets/ActionBar-Du2MSFSz.js +1 -0
  3. package/client/dist/assets/ApiKeyInput-k2LBmBjb.js +1 -0
  4. package/client/dist/assets/ApiKeyPanel-C_bV9U0X.js +1 -0
  5. package/client/dist/assets/ApiUsageSection-CmVfwZzL.js +1 -0
  6. package/client/dist/assets/EmailPanel-CeKIMGu-.js +1 -0
  7. package/client/dist/assets/OAuthPanel-KA3t3Q2K.js +1 -0
  8. package/client/dist/assets/QrPairingPanel-NgNpJNuk.js +1 -0
  9. package/client/dist/assets/RateLimitSection-Du5YNVIA.js +1 -0
  10. package/client/dist/assets/StatusCard-DNLyayXc.js +1 -0
  11. package/client/dist/assets/index-DQ0nwhec.js +257 -0
  12. package/client/dist/assets/index-DxmbVskS.css +1 -0
  13. package/client/dist/assets/vendor-flow-CZmBvHRo.js +1 -0
  14. package/client/dist/assets/vendor-icons-CVrPjN2Q.js +22 -0
  15. package/client/dist/assets/vendor-markdown-CRou3yQ5.js +62 -0
  16. package/client/dist/assets/vendor-misc-C4VxKHs5.js +1 -0
  17. package/client/dist/assets/vendor-query-SzWcOU0G.js +1 -0
  18. package/client/dist/assets/vendor-radix-Dnos29jG.js +56 -0
  19. package/client/dist/assets/vendor-react-DvWIbVx0.js +1 -0
  20. package/client/dist/index.html +37 -3
  21. package/client/index.html +28 -1
  22. package/client/package.json +44 -40
  23. package/client/src/App.tsx +2 -0
  24. package/client/src/Dashboard.tsx +157 -45
  25. package/client/src/ParameterPanel.tsx +3 -5
  26. package/client/src/adapters/nodeSpecToDescription.ts +1 -0
  27. package/client/src/assets/icons/NodeIcon.tsx +32 -0
  28. package/client/src/assets/icons/index.ts +4 -0
  29. package/client/src/assets/icons/stripe.svg +1 -0
  30. package/client/src/assets/icons/themedGlyphs.ts +404 -0
  31. package/client/src/components/AIAgentNode.tsx +77 -53
  32. package/client/src/components/GenericNode.tsx +34 -52
  33. package/client/src/components/OutputPanel.tsx +64 -147
  34. package/client/src/components/ParameterRenderer.tsx +5 -3
  35. package/client/src/components/SkillEditorModal.tsx +9 -18
  36. package/client/src/components/SquareNode.tsx +97 -115
  37. package/client/src/components/StartNode.tsx +32 -42
  38. package/client/src/components/SvgFilterDefs.tsx +54 -0
  39. package/client/src/components/TeamMonitorNode.tsx +12 -14
  40. package/client/src/components/ToolkitNode.tsx +35 -60
  41. package/client/src/components/TriggerNode.tsx +43 -77
  42. package/client/src/components/__tests__/CredentialsModal.test.tsx +49 -45
  43. package/client/src/components/credentials/CredentialsModal.tsx +98 -30
  44. package/client/src/components/credentials/CredentialsPalette.tsx +73 -5
  45. package/client/src/components/credentials/catalogueAdapter.ts +17 -1
  46. package/client/src/components/credentials/panels/ApiKeyPanel.tsx +102 -37
  47. package/client/src/components/credentials/panels/EmailPanel.tsx +7 -19
  48. package/client/src/components/credentials/panels/OAuthPanel.tsx +5 -1
  49. package/client/src/components/credentials/panels/QrPairingPanel.tsx +1 -3
  50. package/client/src/components/credentials/primitives/ActionBar.tsx +7 -11
  51. package/client/src/components/credentials/primitives/OAuthConnect.tsx +19 -28
  52. package/client/src/components/credentials/sections/ProviderDefaultsSection.tsx +24 -3
  53. package/client/src/components/credentials/types.ts +12 -2
  54. package/client/src/components/credentials/useCredentialPanel.ts +43 -19
  55. package/client/src/components/icons/AIProviderIcons.tsx +16 -0
  56. package/client/src/components/onboarding/OnboardingWizard.tsx +23 -63
  57. package/client/src/components/onboarding/nodeRoleClasses.ts +23 -0
  58. package/client/src/components/onboarding/steps/CanvasStep.tsx +15 -21
  59. package/client/src/components/onboarding/steps/ConceptsStep.tsx +2 -11
  60. package/client/src/components/onboarding/steps/GetStartedStep.tsx +2 -10
  61. package/client/src/components/parameterPanel/InputSection.tsx +9 -7
  62. package/client/src/components/parameterPanel/MasterSkillEditor.tsx +84 -198
  63. package/client/src/components/parameterPanel/MiddleSection.tsx +57 -80
  64. package/client/src/components/parameterPanel/ToolSchemaEditor.tsx +31 -25
  65. package/client/src/components/parameterPanel/__tests__/InputSection.test.tsx +7 -2
  66. package/client/src/components/ui/AIResultModal.tsx +1 -1
  67. package/client/src/components/ui/CollapsibleSection.tsx +9 -5
  68. package/client/src/components/ui/CommandPalette.tsx +147 -0
  69. package/client/src/components/ui/CommandPaletteHost.tsx +189 -0
  70. package/client/src/components/ui/ComponentItem.tsx +13 -7
  71. package/client/src/components/ui/ComponentPalette.tsx +24 -13
  72. package/client/src/components/ui/ConsolePanel.tsx +19 -11
  73. package/client/src/components/ui/DropCap.tsx +28 -0
  74. package/client/src/components/ui/EditableNodeLabel.tsx +10 -2
  75. package/client/src/components/ui/InputNodesPanel.tsx +1 -1
  76. package/client/src/components/ui/Modal.tsx +38 -6
  77. package/client/src/components/ui/OutputDisplayPanel.tsx +1 -1
  78. package/client/src/components/ui/SettingsPanel.tsx +42 -13
  79. package/client/src/components/ui/StatusBar.tsx +108 -0
  80. package/client/src/components/ui/ThemeSwitcher.tsx +109 -0
  81. package/client/src/components/ui/TopToolbar.tsx +42 -25
  82. package/client/src/components/ui/WorkflowSidebar.tsx +32 -16
  83. package/client/src/components/ui/action-button.tsx +40 -15
  84. package/client/src/components/ui/button.tsx +24 -1
  85. package/client/src/components/ui/dropdown-menu.tsx +24 -2
  86. package/client/src/components/ui/input.tsx +19 -2
  87. package/client/src/components/ui/select.tsx +15 -0
  88. package/client/src/components/ui/textarea.tsx +15 -2
  89. package/client/src/contexts/AuthContext.tsx +148 -109
  90. package/client/src/contexts/ThemeContext.tsx +93 -17
  91. package/client/src/contexts/WebSocketContext.tsx +373 -206
  92. package/client/src/contexts/__tests__/AuthContext.test.tsx +221 -0
  93. package/client/src/hooks/__tests__/useDragVariable.test.ts +7 -1
  94. package/client/src/hooks/__tests__/useWorkflowOpsListener.test.ts +142 -0
  95. package/client/src/hooks/useAppTheme.ts +209 -7
  96. package/client/src/hooks/useAutoSkillEdges.ts +7 -2
  97. package/client/src/hooks/useCatalogueQuery.ts +67 -1
  98. package/client/src/hooks/useDragVariable.ts +1 -1
  99. package/client/src/hooks/useNodeAllowlist.ts +115 -8
  100. package/client/src/hooks/useOnboarding.ts +20 -8
  101. package/client/src/hooks/useParameterPanel.ts +2 -1
  102. package/client/src/hooks/useReactFlowNodes.ts +2 -1
  103. package/client/src/hooks/useSound.ts +185 -0
  104. package/client/src/hooks/useWorkflowManagement.ts +6 -8
  105. package/client/src/hooks/useWorkflowOpsListener.ts +90 -0
  106. package/client/src/index.css +65 -3
  107. package/client/src/lib/__tests__/connectionConfig.test.ts +91 -0
  108. package/client/src/lib/aiModelProviders.ts +8 -0
  109. package/client/src/lib/connectionConfig.ts +107 -0
  110. package/client/src/lib/queryPersist.ts +13 -5
  111. package/client/src/lib/sound.ts +393 -0
  112. package/client/src/main.tsx +20 -0
  113. package/client/src/store/useAppStore.ts +26 -0
  114. package/client/src/styles/canvasAnimations.ts +37 -36
  115. package/client/src/styles/theme.ts +36 -20
  116. package/client/src/test/setup.ts +1 -0
  117. package/client/src/themes/atomic.css +253 -0
  118. package/client/src/themes/base.css +373 -0
  119. package/client/src/themes/cyber.css +890 -0
  120. package/client/src/themes/dark.css +70 -0
  121. package/client/src/themes/edo.css +246 -0
  122. package/client/src/themes/greek.css +293 -0
  123. package/client/src/themes/light.css +78 -0
  124. package/client/src/themes/plague.css +253 -0
  125. package/client/src/themes/renaissance.css +727 -0
  126. package/client/src/themes/rot.css +249 -0
  127. package/client/src/themes/steampunk.css +272 -0
  128. package/client/src/themes/surveillance.css +289 -0
  129. package/client/src/themes/wasteland.css +250 -0
  130. package/client/src/types/INodeProperties.ts +5 -0
  131. package/client/src/types/NodeTypes.ts +11 -1
  132. package/client/src/types/__tests__/cloudEvents.test.ts +99 -0
  133. package/client/src/types/cloudEvents.ts +78 -0
  134. package/client/src/vite-env.d.ts +7 -0
  135. package/client/tsconfig.json +1 -1
  136. package/client/vite.config.js +62 -2
  137. package/install.ps1 +1 -1
  138. package/install.sh +1 -1
  139. package/machina/commands/build.py +51 -7
  140. package/machina/pyproject.toml +4 -0
  141. package/machina/supervisor.py +12 -2
  142. package/machina/tree.py +71 -21
  143. package/package.json +4 -4
  144. package/scripts/install.js +16 -1
  145. package/server/config/ai_cli_providers.json +54 -0
  146. package/server/config/credential_providers.json +109 -2
  147. package/server/config/llm_defaults.json +24 -0
  148. package/server/config/model_registry.json +338 -499
  149. package/server/config/node_allowlist.json +16 -1
  150. package/server/config/pricing.json +8 -0
  151. package/server/constants.py +38 -15
  152. package/server/core/container.py +2 -2
  153. package/server/core/credentials_database.py +35 -2
  154. package/server/core/logging.py +4 -3
  155. package/server/main.py +99 -13
  156. package/server/models/node_metadata.py +1 -0
  157. package/server/nodejs/package.json +8 -6
  158. package/server/nodejs/src/index.ts +22 -5
  159. package/server/nodes/README.md +31 -4
  160. package/server/nodes/agent/_inline.py +2 -0
  161. package/server/nodes/agent/_specialized.py +6 -3
  162. package/server/nodes/agent/ai_agent.py +13 -3
  163. package/server/nodes/agent/chat_agent.py +6 -3
  164. package/server/nodes/agent/claude_code_agent.py +287 -75
  165. package/server/nodes/agent/codex_agent.py +239 -0
  166. package/server/nodes/agent/deep_agent.py +3 -3
  167. package/server/nodes/agent/rlm_agent.py +3 -3
  168. package/server/nodes/android/__init__.py +31 -1
  169. package/server/nodes/android/_base.py +9 -5
  170. package/server/{services/android_service.py → nodes/android/_dispatcher.py} +2 -2
  171. package/server/nodes/android/_handlers.py +154 -0
  172. package/server/nodes/android/_option_loaders.py +44 -0
  173. package/server/nodes/android/_refresh.py +127 -0
  174. package/server/{services/android → nodes/android/_relay}/client.py +4 -4
  175. package/server/{routers/android.py → nodes/android/_router.py} +27 -8
  176. package/server/nodes/browser/browser.py +2 -2
  177. package/server/nodes/code/_base.py +6 -2
  178. package/server/nodes/code/_claude_code.py +134 -0
  179. package/server/nodes/document/embedding_generator.py +3 -3
  180. package/server/nodes/document/http_scraper.py +3 -3
  181. package/server/nodes/document/vector_store.py +5 -5
  182. package/server/nodes/email/__init__.py +11 -1
  183. package/server/nodes/email/_filters.py +21 -0
  184. package/server/{services/himalaya_service.py → nodes/email/_himalaya.py} +6 -10
  185. package/server/{services/email_service.py → nodes/email/_service.py} +9 -13
  186. package/server/nodes/email/email_read.py +1 -1
  187. package/server/nodes/email/email_receive.py +54 -5
  188. package/server/nodes/email/email_send.py +1 -1
  189. package/server/nodes/filesystem/shell.py +24 -1
  190. package/server/nodes/google/__init__.py +55 -1
  191. package/server/{services/handlers/google_auth.py → nodes/google/_auth_helper.py} +8 -5
  192. package/server/nodes/google/_base.py +2 -2
  193. package/server/nodes/google/_credentials.py +5 -5
  194. package/server/nodes/google/_filters.py +25 -0
  195. package/server/nodes/google/_handlers.py +57 -0
  196. package/server/{services/google_oauth.py → nodes/google/_oauth.py} +195 -162
  197. package/server/nodes/google/_option_loaders.py +107 -0
  198. package/server/nodes/google/_refresh.py +66 -0
  199. package/server/nodes/google/_router.py +131 -0
  200. package/server/nodes/google/gmail_receive.py +41 -4
  201. package/server/nodes/groups.py +1 -0
  202. package/server/nodes/location/_credentials.py +45 -1
  203. package/server/{services/maps.py → nodes/location/_service.py} +18 -3
  204. package/server/nodes/location/gmaps_create.py +4 -4
  205. package/server/nodes/location/gmaps_locations.py +4 -4
  206. package/server/nodes/location/gmaps_nearby_places.py +4 -4
  207. package/server/nodes/model/_base.py +8 -3
  208. package/server/nodes/model/_credentials.py +96 -8
  209. package/server/nodes/model/_local_validator.py +345 -0
  210. package/server/nodes/model/lmstudio_chat_model.py +23 -0
  211. package/server/nodes/model/ollama_chat_model.py +25 -0
  212. package/server/nodes/proxy/_usage.py +2 -2
  213. package/server/nodes/proxy/proxy_config.py +14 -14
  214. package/server/nodes/proxy/proxy_request.py +4 -4
  215. package/server/nodes/scraper/_credentials.py +29 -1
  216. package/server/nodes/scraper/apify_actor.py +9 -9
  217. package/server/nodes/scraper/crawlee_scraper.py +5 -5
  218. package/server/nodes/search/brave_search.py +4 -0
  219. package/server/nodes/search/perplexity_search.py +9 -0
  220. package/server/nodes/search/serper_search.py +3 -0
  221. package/server/nodes/skill/simple_memory.py +12 -0
  222. package/server/nodes/social/_base.py +2 -2
  223. package/server/nodes/stripe/__init__.py +46 -0
  224. package/server/nodes/stripe/_credentials.py +33 -0
  225. package/server/nodes/stripe/_handlers.py +270 -0
  226. package/server/nodes/stripe/_install.py +127 -0
  227. package/server/nodes/stripe/_source.py +174 -0
  228. package/server/nodes/stripe/stripe_action.py +81 -0
  229. package/server/nodes/stripe/stripe_receive.py +92 -0
  230. package/server/nodes/telegram/_credentials.py +52 -1
  231. package/server/nodes/telegram/_handlers.py +19 -18
  232. package/server/nodes/telegram/_service.py +134 -32
  233. package/server/nodes/telegram/telegram_send.py +5 -6
  234. package/server/nodes/text/file_handler.py +2 -2
  235. package/server/nodes/text/text_generator.py +2 -2
  236. package/server/nodes/tool/agent_builder.py +630 -0
  237. package/server/nodes/tool/task_manager.py +144 -2
  238. package/server/nodes/twitter/__init__.py +38 -1
  239. package/server/nodes/twitter/_base.py +7 -7
  240. package/server/nodes/twitter/_credentials.py +1 -1
  241. package/server/nodes/twitter/_filters.py +37 -0
  242. package/server/nodes/twitter/_handlers.py +77 -0
  243. package/server/nodes/twitter/_oauth.py +124 -0
  244. package/server/nodes/twitter/_refresh.py +78 -0
  245. package/server/nodes/twitter/_router.py +29 -0
  246. package/server/nodes/twitter/twitter_receive.py +4 -0
  247. package/server/nodes/visuals.json +64 -19
  248. package/server/nodes/whatsapp/__init__.py +45 -5
  249. package/server/nodes/whatsapp/_base.py +3 -3
  250. package/server/nodes/whatsapp/_filters.py +137 -0
  251. package/server/nodes/whatsapp/_handlers.py +167 -0
  252. package/server/nodes/whatsapp/_option_loaders.py +68 -0
  253. package/server/nodes/whatsapp/_refresh.py +62 -0
  254. package/server/nodes/whatsapp/_runtime.py +1 -1
  255. package/server/pyproject.toml +29 -7
  256. package/server/routers/schemas.py +2 -2
  257. package/server/routers/webhook.py +26 -9
  258. package/server/routers/websocket.py +149 -810
  259. package/server/services/ai.py +89 -8
  260. package/server/services/auth.py +220 -43
  261. package/server/services/claude_oauth.py +126 -100
  262. package/server/services/cli_agent/__init__.py +78 -0
  263. package/server/services/cli_agent/_handlers.py +237 -0
  264. package/server/services/cli_agent/config.py +112 -0
  265. package/server/services/cli_agent/factory.py +48 -0
  266. package/server/services/cli_agent/lockfile.py +141 -0
  267. package/server/services/cli_agent/mcp_server.py +482 -0
  268. package/server/services/cli_agent/protocol.py +173 -0
  269. package/server/services/cli_agent/providers/__init__.py +9 -0
  270. package/server/services/cli_agent/providers/anthropic_claude.py +419 -0
  271. package/server/services/cli_agent/providers/google_gemini.py +80 -0
  272. package/server/services/cli_agent/providers/openai_codex.py +310 -0
  273. package/server/services/cli_agent/service.py +607 -0
  274. package/server/services/cli_agent/session.py +618 -0
  275. package/server/services/cli_agent/types.py +227 -0
  276. package/server/services/cli_agent/workflow_tools.py +233 -0
  277. package/server/services/credential_registry.py +26 -1
  278. package/server/services/deployment/manager.py +26 -145
  279. package/server/services/deployment/poll_registry.py +59 -0
  280. package/server/services/event_waiter.py +76 -246
  281. package/server/services/events/__init__.py +54 -0
  282. package/server/services/events/cli.py +78 -0
  283. package/server/services/events/daemon.py +163 -0
  284. package/server/services/events/envelope.py +281 -0
  285. package/server/services/events/lifecycle.py +99 -0
  286. package/server/services/events/oauth_lifecycle.py +534 -0
  287. package/server/services/events/polling.py +60 -0
  288. package/server/services/events/push.py +36 -0
  289. package/server/services/events/source.py +63 -0
  290. package/server/services/events/triggers.py +118 -0
  291. package/server/services/events/verifiers/__init__.py +25 -0
  292. package/server/services/events/verifiers/base.py +28 -0
  293. package/server/services/events/verifiers/github.py +25 -0
  294. package/server/services/events/verifiers/hmac_basic.py +32 -0
  295. package/server/services/events/verifiers/standard_webhooks.py +47 -0
  296. package/server/services/events/verifiers/stripe.py +42 -0
  297. package/server/services/events/webhook.py +105 -0
  298. package/server/services/handlers/tools.py +28 -186
  299. package/server/services/llm/config.py +7 -0
  300. package/server/services/llm/factory.py +8 -2
  301. package/server/services/memory/__init__.py +52 -0
  302. package/server/services/memory/jsonl.py +80 -0
  303. package/server/services/memory/markdown.py +65 -0
  304. package/server/services/memory/state.py +112 -0
  305. package/server/services/memory/vector_store.py +40 -0
  306. package/server/services/model_registry.py +76 -0
  307. package/server/services/node_allowlist.py +71 -15
  308. package/server/services/node_executor.py +2 -2
  309. package/server/services/node_output_schemas.py +21 -10
  310. package/server/services/node_spec.py +1 -1
  311. package/server/services/oauth_utils.py +1 -1
  312. package/server/services/plugin/__init__.py +2 -0
  313. package/server/services/plugin/base.py +44 -2
  314. package/server/services/plugin/credential.py +288 -1
  315. package/server/services/plugin/deps.py +105 -0
  316. package/server/services/plugin/edge_walker.py +12 -4
  317. package/server/services/plugin/oauth.py +381 -0
  318. package/server/services/plugin/polling.py +247 -0
  319. package/server/services/plugin/registry.py +145 -0
  320. package/server/services/plugin/singleton.py +65 -0
  321. package/server/services/plugin/ws.py +81 -0
  322. package/server/services/process_service.py +31 -2
  323. package/server/services/status_broadcaster.py +155 -238
  324. package/server/services/temporal/workflow.py +7 -7
  325. package/server/services/workflow.py +21 -3
  326. package/server/services/ws_handler_registry.py +111 -28
  327. package/server/skills/GUIDE.md +16 -1
  328. package/server/skills/assistant/agent-builder-skill/SKILL.md +166 -0
  329. package/server/skills/payments_agent/stripe-skill/SKILL.md +306 -0
  330. package/server/tests/credentials/test_auth_service.py +16 -9
  331. package/server/tests/credentials/test_credential_broadcasts.py +219 -0
  332. package/server/tests/credentials/test_google_oauth.py +6 -6
  333. package/server/tests/credentials/test_oauth_utils.py +1 -1
  334. package/server/tests/credentials/test_twitter_oauth.py +2 -2
  335. package/server/tests/credentials/test_websocket_handlers.py +44 -20
  336. package/server/tests/llm/test_factory.py +1 -0
  337. package/server/tests/llm/test_wiring.py +5 -1
  338. package/server/tests/nodes/_compat.py +24 -24
  339. package/server/tests/nodes/test_agent_builder.py +439 -0
  340. package/server/tests/nodes/test_ai_tools.py +18 -14
  341. package/server/tests/nodes/test_code_fs_process.py +17 -8
  342. package/server/tests/nodes/test_email.py +10 -9
  343. package/server/tests/nodes/test_google_workspace.py +2 -2
  344. package/server/tests/nodes/test_specialized_agents.py +100 -53
  345. package/server/tests/nodes/test_stripe_plugin.py +293 -0
  346. package/server/tests/nodes/test_telegram_social.py +4 -4
  347. package/server/tests/nodes/test_twitter.py +1 -1
  348. package/server/tests/nodes/test_web_automation.py +2 -2
  349. package/server/tests/nodes/test_whatsapp.py +9 -9
  350. package/server/tests/services/cli_agent/__init__.py +0 -0
  351. package/server/tests/services/cli_agent/test_mcp_server.py +432 -0
  352. package/server/tests/services/cli_agent/test_providers.py +358 -0
  353. package/server/tests/services/cli_agent/test_service.py +298 -0
  354. package/server/tests/services/memory/__init__.py +0 -0
  355. package/server/tests/services/memory/test_jsonl.py +188 -0
  356. package/server/tests/services/test_events.py +333 -0
  357. package/server/tests/test_node_spec.py +56 -16
  358. package/server/tests/test_plugin_helpers.py +116 -0
  359. package/server/tests/test_plugin_self_containment.py +486 -0
  360. package/server/tests/test_status_broadcasts.py +425 -0
  361. package/workflows/{AI Assistant_workflow-1777421105154-0m4snkzjf.json → AI Assistant_workflow-1778504793388-ou1m1tz2x.json } +70 -266
  362. package/workflows/{AI Employee_workflow-1777720598005-u4cm858dv.json → AI Employee_example_workflow-1777720598005-u4cm858dv.json } +112 -112
  363. package/workflows/Claude Assistant_workflow-1778380124051-mdibn807c.json +709 -0
  364. package/client/dist/assets/ActionBar-vzPpSR77.js +0 -1
  365. package/client/dist/assets/ApiKeyInput-Ds7AKFe8.js +0 -1
  366. package/client/dist/assets/ApiKeyPanel-gfblELep.js +0 -1
  367. package/client/dist/assets/ApiUsageSection-BMNWTe2r.js +0 -1
  368. package/client/dist/assets/EmailPanel-B1Om64p5.js +0 -1
  369. package/client/dist/assets/OAuthPanel-CXyQYGBz.js +0 -1
  370. package/client/dist/assets/QrPairingPanel-BgNuI1we.js +0 -1
  371. package/client/dist/assets/RateLimitSection-YYK8sx1T.js +0 -1
  372. package/client/dist/assets/StatusCard-DuYA5hJR.js +0 -1
  373. package/client/dist/assets/index-D9tZfgvi.js +0 -363
  374. package/client/dist/assets/index-al7snTkG.css +0 -1
  375. package/client/src/components/credentials/providers.tsx +0 -177
  376. package/server/routers/google.py +0 -277
  377. package/server/routers/maps.py +0 -142
  378. package/server/routers/twitter.py +0 -365
  379. package/server/services/claude_code_service.py +0 -106
  380. package/server/services/memory.py +0 -159
  381. package/server/services/node_option_loaders/__init__.py +0 -77
  382. package/server/services/node_option_loaders/android_loaders.py +0 -55
  383. package/server/services/node_option_loaders/google_loaders.py +0 -97
  384. package/server/services/node_option_loaders/whatsapp_loaders.py +0 -69
  385. package/server/services/twitter_oauth.py +0 -411
  386. package/server/services/websocket_client.py +0 -29
  387. /package/server/{services/android → nodes/android/_relay}/__init__.py +0 -0
  388. /package/server/{services/android → nodes/android/_relay}/broadcaster.py +0 -0
  389. /package/server/{services/android → nodes/android/_relay}/manager.py +0 -0
  390. /package/server/{services/android → nodes/android/_relay}/protocol.py +0 -0
  391. /package/server/{services/browser_service.py → nodes/browser/_service.py} +0 -0
  392. /package/server/{services/whatsapp_service.py → nodes/whatsapp/_service.py} +0 -0
  393. /package/server/skills/{task_agent → assistant}/write-todos-skill/SKILL.md +0 -0
@@ -0,0 +1,62 @@
1
+ import{r as Fl,c as fr,g as ri,j as I,a as M}from"./vendor-query-SzWcOU0G.js";function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A.apply(null,arguments)}function Y(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ll(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var ve={},pr;function ad(){if(pr)return ve;pr=1;var e=ve&&ve.__assign||function(){return e=Object.assign||function(C){for(var d,N=1,L=arguments.length;N<L;N++){d=arguments[N];for(var F in d)Object.prototype.hasOwnProperty.call(d,F)&&(C[F]=d[F])}return C},e.apply(this,arguments)},t=ve&&ve.__createBinding||(Object.create?(function(C,d,N,L){L===void 0&&(L=N);var F=Object.getOwnPropertyDescriptor(d,N);(!F||("get"in F?!d.__esModule:F.writable||F.configurable))&&(F={enumerable:!0,get:function(){return d[N]}}),Object.defineProperty(C,L,F)}):(function(C,d,N,L){L===void 0&&(L=N),C[L]=d[N]})),n=ve&&ve.__setModuleDefault||(Object.create?(function(C,d){Object.defineProperty(C,"default",{enumerable:!0,value:d})}):function(C,d){C.default=d}),r=ve&&ve.__importStar||function(C){if(C&&C.__esModule)return C;var d={};if(C!=null)for(var N in C)N!=="default"&&Object.prototype.hasOwnProperty.call(C,N)&&t(d,C,N);return n(d,C),d},i=ve&&ve.__rest||function(C,d){var N={};for(var L in C)Object.prototype.hasOwnProperty.call(C,L)&&d.indexOf(L)<0&&(N[L]=C[L]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,L=Object.getOwnPropertySymbols(C);F<L.length;F++)d.indexOf(L[F])<0&&Object.prototype.propertyIsEnumerable.call(C,L[F])&&(N[L[F]]=C[L[F]]);return N};Object.defineProperty(ve,"__esModule",{value:!0});var l=r(Fl()),a=89,o=90,s=77,u=57,f=219,c=222,h=192,p=100,v=3e3,w=typeof window<"u"&&"navigator"in window&&/Win/i.test(navigator.platform),S=typeof window<"u"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),k="npm__react-simple-code-editor__textarea",y=`
2
+ /**
3
+ * Reset the text fill color so that placeholder is visible
4
+ */
5
+ .`.concat(k,`:empty {
6
+ -webkit-text-fill-color: inherit !important;
7
+ }
8
+
9
+ /**
10
+ * Hack to apply on some CSS on IE10 and IE11
11
+ */
12
+ @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
13
+ /**
14
+ * IE doesn't support '-webkit-text-fill-color'
15
+ * So we use 'color: transparent' to make the text transparent on IE
16
+ * Unlike other browsers, it doesn't affect caret color in IE
17
+ */
18
+ .`).concat(k,` {
19
+ color: transparent !important;
20
+ }
21
+
22
+ .`).concat(k,`::selection {
23
+ background-color: #accef7 !important;
24
+ color: transparent !important;
25
+ }
26
+ }
27
+ `),m=l.forwardRef(function(d,N){var L=d.autoFocus,F=d.disabled,b=d.form,D=d.highlight,z=d.ignoreTabKey,J=z===void 0?!1:z,O=d.insertSpaces,P=O===void 0?!0:O,Z=d.maxLength,oe=d.minLength,X=d.name,ce=d.onBlur,g=d.onClick,pe=d.onFocus,se=d.onKeyDown,x=d.onKeyUp,le=d.onValueChange,he=d.padding,W=he===void 0?0:he,Ie=d.placeholder,xe=d.preClassName,Re=d.readOnly,Ne=d.required,je=d.style,tt=d.tabSize,Qe=tt===void 0?2:tt,Rt=d.textareaClassName,jt=d.textareaId,ft=d.value,Dt=i(d,["autoFocus","disabled","form","highlight","ignoreTabKey","insertSpaces","maxLength","minLength","name","onBlur","onClick","onFocus","onKeyDown","onKeyUp","onValueChange","padding","placeholder","preClassName","readOnly","required","style","tabSize","textareaClassName","textareaId","value"]),ue=l.useRef({stack:[],offset:-1}),Ye=l.useRef(null),pt=l.useState(!0),Zt=pt[0],Xt=pt[1],Pt={paddingTop:typeof W=="object"?W.top:W,paddingRight:typeof W=="object"?W.right:W,paddingBottom:typeof W=="object"?W.bottom:W,paddingLeft:typeof W=="object"?W.left:W},ht=D(ft),Be=function(j,Q){return j.substring(0,Q).split(`
28
+ `)},T=l.useCallback(function(j,Q){var V,H,ee;Q===void 0&&(Q=!1);var ge=ue.current,$e=ge.stack,dt=ge.offset;if($e.length&&dt>-1){ue.current.stack=$e.slice(0,dt+1);var mt=ue.current.stack.length;if(mt>p){var nt=mt-p;ue.current.stack=$e.slice(nt,mt),ue.current.offset=Math.max(ue.current.offset-nt,0)}}var ze=Date.now();if(Q){var qe=ue.current.stack[ue.current.offset];if(qe&&ze-qe.timestamp<v){var gt=/[^a-z0-9]([a-z0-9]+)$/i,Se=(V=Be(qe.value,qe.selectionStart).pop())===null||V===void 0?void 0:V.match(gt),yt=(H=Be(j.value,j.selectionStart).pop())===null||H===void 0?void 0:H.match(gt);if(Se?.[1]&&(!((ee=yt?.[1])===null||ee===void 0)&&ee.startsWith(Se[1]))){ue.current.stack[ue.current.offset]=e(e({},j),{timestamp:ze});return}}}ue.current.stack.push(e(e({},j),{timestamp:ze})),ue.current.offset++},[]),_=l.useCallback(function(){var j=Ye.current;if(j){var Q=j.value,V=j.selectionStart,H=j.selectionEnd;T({value:Q,selectionStart:V,selectionEnd:H})}},[T]),$=function(j){var Q=Ye.current;Q&&(Q.value=j.value,Q.selectionStart=j.selectionStart,Q.selectionEnd=j.selectionEnd,le?.(j.value))},U=function(j){var Q=Ye.current,V=ue.current.stack[ue.current.offset];V&&Q&&(ue.current.stack[ue.current.offset]=e(e({},V),{selectionStart:Q.selectionStart,selectionEnd:Q.selectionEnd})),T(j),$(j)},te=function(){var j=ue.current,Q=j.stack,V=j.offset,H=Q[V-1];H&&($(H),ue.current.offset=Math.max(V-1,0))},Ce=function(){var j=ue.current,Q=j.stack,V=j.offset,H=Q[V+1];H&&($(H),ue.current.offset=Math.min(V+1,Q.length-1))},Ve=function(j){if(!(se&&(se(j),j.defaultPrevented))){j.key==="Escape"&&j.currentTarget.blur();var Q=j.currentTarget,V=Q.value,H=Q.selectionStart,ee=Q.selectionEnd,ge=(P?" ":" ").repeat(Qe);if(j.key==="Tab"&&!J&&Zt)if(j.preventDefault(),j.shiftKey){var $e=Be(V,H),dt=$e.length-1,mt=Be(V,ee).length-1,nt=V.split(`
29
+ `).map(function(xt,sr){return sr>=dt&&sr<=mt&&xt.startsWith(ge)?xt.substring(ge.length):xt}).join(`
30
+ `);if(V!==nt){var ze=$e[dt];U({value:nt,selectionStart:ze?.startsWith(ge)?H-ge.length:H,selectionEnd:ee-(V.length-nt.length)})}}else if(H!==ee){var $e=Be(V,H),qe=$e.length-1,gt=Be(V,ee).length-1,ze=$e[qe];U({value:V.split(`
31
+ `).map(function(ur,cr){return cr>=qe&&cr<=gt?ge+ur:ur}).join(`
32
+ `),selectionStart:ze&&/\S/.test(ze)?H+ge.length:H,selectionEnd:ee+ge.length*(gt-qe+1)})}else{var Se=H+ge.length;U({value:V.substring(0,H)+ge+V.substring(ee),selectionStart:Se,selectionEnd:Se})}else if(j.key==="Backspace"){var yt=H!==ee,Nl=V.substring(0,H);if(Nl.endsWith(ge)&&!yt){j.preventDefault();var Se=H-ge.length;U({value:V.substring(0,H-ge.length)+V.substring(ee),selectionStart:Se,selectionEnd:Se})}}else if(j.key==="Enter"){if(H===ee){var en=Be(V,H).pop(),_t=en?.match(/^\s+/);if(_t?.[0]){j.preventDefault();var or=`
33
+ `+_t[0],Se=H+or.length;U({value:V.substring(0,H)+or+V.substring(ee),selectionStart:Se,selectionEnd:Se})}}}else if(j.keyCode===u||j.keyCode===f||j.keyCode===c||j.keyCode===h){var Ue=void 0;j.keyCode===u&&j.shiftKey?Ue=["(",")"]:j.keyCode===f?j.shiftKey?Ue=["{","}"]:Ue=["[","]"]:j.keyCode===c?j.shiftKey?Ue=['"','"']:Ue=["'","'"]:j.keyCode===h&&!j.shiftKey&&(Ue=["`","`"]),H!==ee&&Ue&&(j.preventDefault(),U({value:V.substring(0,H)+Ue[0]+V.substring(H,ee)+Ue[1]+V.substring(ee),selectionStart:H,selectionEnd:ee+2}))}else(S?j.metaKey&&j.keyCode===o:j.ctrlKey&&j.keyCode===o)&&!j.shiftKey&&!j.altKey?(j.preventDefault(),te()):(S?j.metaKey&&j.keyCode===o&&j.shiftKey:w?j.ctrlKey&&j.keyCode===a:j.ctrlKey&&j.keyCode===o&&j.shiftKey)&&!j.altKey?(j.preventDefault(),Ce()):j.keyCode===s&&j.ctrlKey&&(!S||j.shiftKey)&&(j.preventDefault(),Xt(function(xt){return!xt}))}},De=function(j){var Q=j.currentTarget,V=Q.value,H=Q.selectionStart,ee=Q.selectionEnd;T({value:V,selectionStart:H,selectionEnd:ee},!0),le(V)};return l.useEffect(function(){_()},[_]),l.useImperativeHandle(N,function(){return{get session(){return{history:ue.current}},set session(j){ue.current=j.history}}},[]),l.createElement("div",e({},Dt,{style:e(e({},E.container),je)}),l.createElement("pre",e({className:xe,"aria-hidden":"true",style:e(e(e({},E.editor),E.highlight),Pt)},typeof ht=="string"?{dangerouslySetInnerHTML:{__html:ht+"<br />"}}:{children:ht})),l.createElement("textarea",{ref:function(j){return Ye.current=j},style:e(e(e({},E.editor),E.textarea),Pt),className:k+(Rt?" ".concat(Rt):""),id:jt,value:ft,onChange:De,onKeyDown:Ve,onClick:g,onKeyUp:x,onFocus:pe,onBlur:ce,disabled:F,form:b,maxLength:Z,minLength:oe,name:X,placeholder:Ie,readOnly:Re,required:Ne,autoFocus:L,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),l.createElement("style",{dangerouslySetInnerHTML:{__html:y}}))}),E={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};return ve.default=m,ve}var tn={exports:{}},hr;function ld(){return hr||(hr=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var n=(function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,l=0,a={},o={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function y(m){return m instanceof s?new s(m.type,y(m.content),m.alias):Array.isArray(m)?m.map(y):m.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++l}),y.__id},clone:function y(m,E){E=E||{};var C,d;switch(o.util.type(m)){case"Object":if(d=o.util.objId(m),E[d])return E[d];C={},E[d]=C;for(var N in m)m.hasOwnProperty(N)&&(C[N]=y(m[N],E));return C;case"Array":return d=o.util.objId(m),E[d]?E[d]:(C=[],E[d]=C,m.forEach(function(L,F){C[F]=y(L,E)}),C);default:return m}},getLanguage:function(y){for(;y;){var m=i.exec(y.className);if(m)return m[1].toLowerCase();y=y.parentElement}return"none"},setLanguage:function(y,m){y.className=y.className.replace(RegExp(i,"gi"),""),y.classList.add("language-"+m)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(C){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(C.stack)||[])[1];if(y){var m=document.getElementsByTagName("script");for(var E in m)if(m[E].src==y)return m[E]}return null}},isActive:function(y,m,E){for(var C="no-"+m;y;){var d=y.classList;if(d.contains(m))return!0;if(d.contains(C))return!1;y=y.parentElement}return!!E}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(y,m){var E=o.util.clone(o.languages[y]);for(var C in m)E[C]=m[C];return E},insertBefore:function(y,m,E,C){C=C||o.languages;var d=C[y],N={};for(var L in d)if(d.hasOwnProperty(L)){if(L==m)for(var F in E)E.hasOwnProperty(F)&&(N[F]=E[F]);E.hasOwnProperty(L)||(N[L]=d[L])}var b=C[y];return C[y]=N,o.languages.DFS(o.languages,function(D,z){z===b&&D!=y&&(this[D]=N)}),N},DFS:function y(m,E,C,d){d=d||{};var N=o.util.objId;for(var L in m)if(m.hasOwnProperty(L)){E.call(m,L,m[L],C||L);var F=m[L],b=o.util.type(F);b==="Object"&&!d[N(F)]?(d[N(F)]=!0,y(F,E,null,d)):b==="Array"&&!d[N(F)]&&(d[N(F)]=!0,y(F,E,L,d))}}},plugins:{},highlightAll:function(y,m){o.highlightAllUnder(document,y,m)},highlightAllUnder:function(y,m,E){var C={callback:E,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",C),C.elements=Array.prototype.slice.apply(C.container.querySelectorAll(C.selector)),o.hooks.run("before-all-elements-highlight",C);for(var d=0,N;N=C.elements[d++];)o.highlightElement(N,m===!0,C.callback)},highlightElement:function(y,m,E){var C=o.util.getLanguage(y),d=o.languages[C];o.util.setLanguage(y,C);var N=y.parentElement;N&&N.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(N,C);var L=y.textContent,F={element:y,language:C,grammar:d,code:L};function b(z){F.highlightedCode=z,o.hooks.run("before-insert",F),F.element.innerHTML=F.highlightedCode,o.hooks.run("after-highlight",F),o.hooks.run("complete",F),E&&E.call(F.element)}if(o.hooks.run("before-sanity-check",F),N=F.element.parentElement,N&&N.nodeName.toLowerCase()==="pre"&&!N.hasAttribute("tabindex")&&N.setAttribute("tabindex","0"),!F.code){o.hooks.run("complete",F),E&&E.call(F.element);return}if(o.hooks.run("before-highlight",F),!F.grammar){b(o.util.encode(F.code));return}if(m&&r.Worker){var D=new Worker(o.filename);D.onmessage=function(z){b(z.data)},D.postMessage(JSON.stringify({language:F.language,code:F.code,immediateClose:!0}))}else b(o.highlight(F.code,F.grammar,F.language))},highlight:function(y,m,E){var C={code:y,grammar:m,language:E};if(o.hooks.run("before-tokenize",C),!C.grammar)throw new Error('The language "'+C.language+'" has no grammar.');return C.tokens=o.tokenize(C.code,C.grammar),o.hooks.run("after-tokenize",C),s.stringify(o.util.encode(C.tokens),C.language)},tokenize:function(y,m){var E=m.rest;if(E){for(var C in E)m[C]=E[C];delete m.rest}var d=new c;return h(d,d.head,y),f(y,d,m,d.head,0),v(d)},hooks:{all:{},add:function(y,m){var E=o.hooks.all;E[y]=E[y]||[],E[y].push(m)},run:function(y,m){var E=o.hooks.all[y];if(!(!E||!E.length))for(var C=0,d;d=E[C++];)d(m)}},Token:s};r.Prism=o;function s(y,m,E,C){this.type=y,this.content=m,this.alias=E,this.length=(C||"").length|0}s.stringify=function y(m,E){if(typeof m=="string")return m;if(Array.isArray(m)){var C="";return m.forEach(function(b){C+=y(b,E)}),C}var d={type:m.type,content:y(m.content,E),tag:"span",classes:["token",m.type],attributes:{},language:E},N=m.alias;N&&(Array.isArray(N)?Array.prototype.push.apply(d.classes,N):d.classes.push(N)),o.hooks.run("wrap",d);var L="";for(var F in d.attributes)L+=" "+F+'="'+(d.attributes[F]||"").replace(/"/g,"&quot;")+'"';return"<"+d.tag+' class="'+d.classes.join(" ")+'"'+L+">"+d.content+"</"+d.tag+">"};function u(y,m,E,C){y.lastIndex=m;var d=y.exec(E);if(d&&C&&d[1]){var N=d[1].length;d.index+=N,d[0]=d[0].slice(N)}return d}function f(y,m,E,C,d,N){for(var L in E)if(!(!E.hasOwnProperty(L)||!E[L])){var F=E[L];F=Array.isArray(F)?F:[F];for(var b=0;b<F.length;++b){if(N&&N.cause==L+","+b)return;var D=F[b],z=D.inside,J=!!D.lookbehind,O=!!D.greedy,P=D.alias;if(O&&!D.pattern.global){var Z=D.pattern.toString().match(/[imsuy]*$/)[0];D.pattern=RegExp(D.pattern.source,Z+"g")}for(var oe=D.pattern||D,X=C.next,ce=d;X!==m.tail&&!(N&&ce>=N.reach);ce+=X.value.length,X=X.next){var g=X.value;if(m.length>y.length)return;if(!(g instanceof s)){var pe=1,se;if(O){if(se=u(oe,ce,y,J),!se||se.index>=y.length)break;var W=se.index,x=se.index+se[0].length,le=ce;for(le+=X.value.length;W>=le;)X=X.next,le+=X.value.length;if(le-=X.value.length,ce=le,X.value instanceof s)continue;for(var he=X;he!==m.tail&&(le<x||typeof he.value=="string");he=he.next)pe++,le+=he.value.length;pe--,g=y.slice(ce,le),se.index-=ce}else if(se=u(oe,0,g,J),!se)continue;var W=se.index,Ie=se[0],xe=g.slice(0,W),Re=g.slice(W+Ie.length),Ne=ce+g.length;N&&Ne>N.reach&&(N.reach=Ne);var je=X.prev;xe&&(je=h(m,je,xe),ce+=xe.length),p(m,je,pe);var tt=new s(L,z?o.tokenize(Ie,z):Ie,P,Ie);if(X=h(m,je,tt),Re&&h(m,X,Re),pe>1){var Qe={cause:L+","+b,reach:Ne};f(y,m,E,X.prev,ce,Qe),N&&Qe.reach>N.reach&&(N.reach=Qe.reach)}}}}}}function c(){var y={value:null,prev:null,next:null},m={value:null,prev:y,next:null};y.next=m,this.head=y,this.tail=m,this.length=0}function h(y,m,E){var C=m.next,d={value:E,prev:m,next:C};return m.next=d,C.prev=d,y.length++,d}function p(y,m,E){for(var C=m.next,d=0;d<E&&C!==y.tail;d++)C=C.next;m.next=C,C.prev=m,y.length-=d}function v(y){for(var m=[],E=y.head.next;E!==y.tail;)m.push(E.value),E=E.next;return m}if(!r.document)return r.addEventListener&&(o.disableWorkerMessageHandler||r.addEventListener("message",function(y){var m=JSON.parse(y.data),E=m.language,C=m.code,d=m.immediateClose;r.postMessage(o.highlight(C,o.languages[E],E)),d&&r.close()},!1)),o;var w=o.util.currentScript();w&&(o.filename=w.src,w.hasAttribute("data-manual")&&(o.manual=!0));function S(){o.manual||o.highlightAll()}if(!o.manual){var k=document.readyState;k==="loading"||k==="interactive"&&w&&w.defer?document.addEventListener("DOMContentLoaded",S):window.requestAnimationFrame?window.requestAnimationFrame(S):window.setTimeout(S,16)}return o})(t);e.exports&&(e.exports=n),typeof fr<"u"&&(fr.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,l){var a={};a["language-"+l]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[l]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};o["language-"+l]={pattern:/[\s\S]+/,inside:n.languages[l]};var s={};s[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:o},n.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var l=r.languages.markup;l&&(l.tag.addInlined("style","css"),l.tag.addAttribute("style","css"))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,(function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(w,S){return"✖ Error "+w+" while fetching file: "+S},l="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",s="loading",u="loaded",f="failed",c="pre[data-src]:not(["+o+'="'+u+'"]):not(['+o+'="'+s+'"])';function h(w,S,k){var y=new XMLHttpRequest;y.open("GET",w,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?S(y.responseText):y.status>=400?k(i(y.status,y.statusText)):k(l))},y.send(null)}function p(w){var S=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(w||"");if(S){var k=Number(S[1]),y=S[2],m=S[3];return y?m?[k,Number(m)]:[k,void 0]:[k,k]}}n.hooks.add("before-highlightall",function(w){w.selector+=", "+c}),n.hooks.add("before-sanity-check",function(w){var S=w.element;if(S.matches(c)){w.code="",S.setAttribute(o,s);var k=S.appendChild(document.createElement("CODE"));k.textContent=r;var y=S.getAttribute("data-src"),m=w.language;if(m==="none"){var E=(/\.(\w+)$/.exec(y)||[,"none"])[1];m=a[E]||E}n.util.setLanguage(k,m),n.util.setLanguage(S,m);var C=n.plugins.autoloader;C&&C.loadLanguages(m),h(y,function(d){S.setAttribute(o,u);var N=p(S.getAttribute("data-range"));if(N){var L=d.split(/\r\n?|\n/g),F=N[0],b=N[1]==null?L.length:N[1];F<0&&(F+=L.length),F=Math.max(0,Math.min(F-1,L.length)),b<0&&(b+=L.length),b=Math.max(0,Math.min(b,L.length)),d=L.slice(F,b).join(`
34
+ `),S.hasAttribute("data-start")||S.setAttribute("data-start",String(F+1))}k.textContent=d,n.highlightElement(k)},function(d){S.setAttribute(o,f),k.textContent=d})}}),n.plugins.fileHighlight={highlight:function(S){for(var k=(S||document).querySelectorAll(c),y=0,m;m=k[y++];)n.highlightElement(m)}};var v=!1;n.fileHighlight=function(){v||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),v=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(tn)),tn.exports}function Rl(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const jl=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Dl=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Pl={};function dr(e,t){return(Pl.jsx?Dl:jl).test(e)}const _l=/[ \t\n\f\r]/g;function zl(e){return typeof e=="object"?e.type==="text"?mr(e.value):!1:mr(e)}function mr(e){return e.replace(_l,"")===""}class Nt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Nt.prototype.normal={};Nt.prototype.property={};Nt.prototype.space=void 0;function ii(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Nt(n,r,t)}function kn(e){return e.toLowerCase()}class be{constructor(t,n){this.attribute=n,this.property=t}}be.prototype.attribute="";be.prototype.booleanish=!1;be.prototype.boolean=!1;be.prototype.commaOrSpaceSeparated=!1;be.prototype.commaSeparated=!1;be.prototype.defined=!1;be.prototype.mustUseProperty=!1;be.prototype.number=!1;be.prototype.overloadedBoolean=!1;be.prototype.property="";be.prototype.spaceSeparated=!1;be.prototype.space=void 0;let Ol=0;const q=Xe(),fe=Xe(),bn=Xe(),R=Xe(),ie=Xe(),lt=Xe(),Ee=Xe();function Xe(){return 2**++Ol}const wn=Object.freeze(Object.defineProperty({__proto__:null,boolean:q,booleanish:fe,commaOrSpaceSeparated:Ee,commaSeparated:lt,number:R,overloadedBoolean:bn,spaceSeparated:ie},Symbol.toStringTag,{value:"Module"})),nn=Object.keys(wn);class jn extends be{constructor(t,n,r,i){let l=-1;if(super(t,n),gr(this,"space",i),typeof r=="number")for(;++l<nn.length;){const a=nn[l];gr(this,nn[l],(r&wn[a])===wn[a])}}}jn.prototype.defined=!0;function gr(e,t,n){n&&(e[t]=n)}function st(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new jn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[kn(r)]=r,n[kn(l.attribute)]=r}return new Nt(t,n,e.space)}const ai=st({properties:{ariaActiveDescendant:null,ariaAtomic:fe,ariaAutoComplete:null,ariaBusy:fe,ariaChecked:fe,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:ie,ariaCurrent:null,ariaDescribedBy:ie,ariaDetails:null,ariaDisabled:fe,ariaDropEffect:ie,ariaErrorMessage:null,ariaExpanded:fe,ariaFlowTo:ie,ariaGrabbed:fe,ariaHasPopup:null,ariaHidden:fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ie,ariaLevel:R,ariaLive:null,ariaModal:fe,ariaMultiLine:fe,ariaMultiSelectable:fe,ariaOrientation:null,ariaOwns:ie,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:fe,ariaReadOnly:fe,ariaRelevant:null,ariaRequired:fe,ariaRoleDescription:ie,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:fe,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function li(e,t){return t in e?e[t]:t}function oi(e,t){return li(e,t.toLowerCase())}const Ml=st({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lt,acceptCharset:ie,accessKey:ie,action:null,allow:null,allowFullScreen:q,allowPaymentRequest:q,allowUserMedia:q,alt:null,as:null,async:q,autoCapitalize:null,autoComplete:ie,autoFocus:q,autoPlay:q,blocking:ie,capture:null,charSet:null,checked:q,cite:null,className:ie,cols:R,colSpan:null,content:null,contentEditable:fe,controls:q,controlsList:ie,coords:R|lt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:q,defer:q,dir:null,dirName:null,disabled:q,download:bn,draggable:fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:q,formTarget:null,headers:ie,height:R,hidden:bn,high:R,href:null,hrefLang:null,htmlFor:ie,httpEquiv:ie,id:null,imageSizes:null,imageSrcSet:null,inert:q,inputMode:null,integrity:null,is:null,isMap:q,itemId:null,itemProp:ie,itemRef:ie,itemScope:q,itemType:ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:q,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:q,muted:q,name:null,nonce:null,noModule:q,noValidate:q,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:q,optimum:R,pattern:null,ping:ie,placeholder:null,playsInline:q,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:q,referrerPolicy:null,rel:ie,required:q,reversed:q,rows:R,rowSpan:R,sandbox:ie,scope:null,scoped:q,seamless:q,selected:q,shadowRootClonable:q,shadowRootDelegatesFocus:q,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:q,useMap:null,value:fe,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ie,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:q,declare:q,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:q,noHref:q,noShade:q,noWrap:q,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:fe,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:q,disableRemotePlayback:q,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:oi}),Bl=st({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ee,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:ie,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:q,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:lt,g2:lt,glyphName:lt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:Ee,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:R,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ee,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ee,rev:Ee,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ee,requiredFeatures:Ee,requiredFonts:Ee,requiredFormats:Ee,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:Ee,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ee,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ee,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:li}),si=st({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),ui=st({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:oi}),ci=st({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Vl={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},$l=/[A-Z]/g,yr=/-[a-z]/g,Ul=/^data[-\w.:]+$/i;function Hl(e,t){const n=kn(t);let r=t,i=be;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ul.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(yr,Jl);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!yr.test(l)){let a=l.replace($l,ql);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=jn}return new i(r,t)}function ql(e){return"-"+e.toLowerCase()}function Jl(e){return e.charAt(1).toUpperCase()}const Kl=ii([ai,Ml,si,ui,ci],"html"),Dn=ii([ai,Bl,si,ui,ci],"svg");function Wl(e){return e.join(" ").trim()}var rt={},rn,xr;function Ql(){if(xr)return rn;xr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,s=`
35
+ `,u="/",f="*",c="",h="comment",p="declaration";function v(S,k){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];k=k||{};var y=1,m=1;function E(O){var P=O.match(t);P&&(y+=P.length);var Z=O.lastIndexOf(s);m=~Z?O.length-Z:m+O.length}function C(){var O={line:y,column:m};return function(P){return P.position=new d(O),F(),P}}function d(O){this.start=O,this.end={line:y,column:m},this.source=k.source}d.prototype.content=S;function N(O){var P=new Error(k.source+":"+y+":"+m+": "+O);if(P.reason=O,P.filename=k.source,P.line=y,P.column=m,P.source=S,!k.silent)throw P}function L(O){var P=O.exec(S);if(P){var Z=P[0];return E(Z),S=S.slice(Z.length),P}}function F(){L(n)}function b(O){var P;for(O=O||[];P=D();)P!==!1&&O.push(P);return O}function D(){var O=C();if(!(u!=S.charAt(0)||f!=S.charAt(1))){for(var P=2;c!=S.charAt(P)&&(f!=S.charAt(P)||u!=S.charAt(P+1));)++P;if(P+=2,c===S.charAt(P-1))return N("End of comment missing");var Z=S.slice(2,P-2);return m+=2,E(Z),S=S.slice(P),m+=2,O({type:h,comment:Z})}}function z(){var O=C(),P=L(r);if(P){if(D(),!L(i))return N("property missing ':'");var Z=L(l),oe=O({type:p,property:w(P[0].replace(e,c)),value:Z?w(Z[0].replace(e,c)):c});return L(a),oe}}function J(){var O=[];b(O);for(var P;P=z();)P!==!1&&(O.push(P),b(O));return O}return F(),J()}function w(S){return S?S.replace(o,c):c}return rn=v,rn}var vr;function Yl(){if(vr)return rt;vr=1;var e=rt&&rt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=n;const t=e(Ql());function n(r,i){let l=null;if(!r||typeof r!="string")return l;const a=(0,t.default)(r),o=typeof i=="function";return a.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:f}=s;o?i(u,f,s):f&&(l=l||{},l[u]=f)}),l}return rt}var vt={},kr;function Gl(){if(kr)return vt;kr=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(u){return!u||n.test(u)||e.test(u)},a=function(u,f){return f.toUpperCase()},o=function(u,f){return"".concat(f,"-")},s=function(u,f){return f===void 0&&(f={}),l(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,o):u=u.replace(r,o),u.replace(t,a))};return vt.camelCase=s,vt}var kt,br;function Zl(){if(br)return kt;br=1;var e=kt&&kt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Yl()),n=Gl();function r(i,l){var a={};return!i||typeof i!="string"||(0,t.default)(i,function(o,s){o&&s&&(a[(0,n.camelCase)(o,l)]=s)}),a}return r.default=r,kt=r,kt}var Xl=Zl();const eo=ri(Xl),fi=pi("end"),Pn=pi("start");function pi(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function to(e){const t=Pn(e),n=fi(e);if(t&&n)return{start:t,end:n}}function Ct(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?wr(e.position):"start"in e||"end"in e?wr(e):"line"in e||"column"in e?Cn(e):""}function Cn(e){return Cr(e&&e.line)+":"+Cr(e&&e.column)}function wr(e){return Cn(e&&e.start)+"-"+Cn(e&&e.end)}function Cr(e){return e&&typeof e=="number"?e:1}class me extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},a=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(a=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?l.ruleId=r:(l.source=r.slice(0,s),l.ruleId=r.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const o=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=Ct(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=a&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}me.prototype.file="";me.prototype.name="";me.prototype.reason="";me.prototype.message="";me.prototype.stack="";me.prototype.column=void 0;me.prototype.line=void 0;me.prototype.ancestors=void 0;me.prototype.cause=void 0;me.prototype.fatal=void 0;me.prototype.place=void 0;me.prototype.ruleId=void 0;me.prototype.source=void 0;const _n={}.hasOwnProperty,no=new Map,ro=/[A-Z]/g,io=new Set(["table","tbody","thead","tfoot","tr"]),ao=new Set(["td","th"]),hi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function lo(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=mo(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ho(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Dn:Kl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=di(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function di(e,t,n){if(t.type==="element")return oo(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return so(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return co(e,t,n);if(t.type==="mdxjsEsm")return uo(e,t);if(t.type==="root")return fo(e,t,n);if(t.type==="text")return po(e,t)}function oo(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Dn,e.schema=i),e.ancestors.push(t);const l=gi(e,t.tagName,!1),a=go(e,t);let o=On(e,t);return io.has(t.tagName)&&(o=o.filter(function(s){return typeof s=="string"?!zl(s):!0})),mi(e,a,l,t),zn(a,o),e.ancestors.pop(),e.schema=r,e.create(t,l,a,n)}function so(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}At(e,t.position)}function uo(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);At(e,t.position)}function co(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Dn,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:gi(e,t.name,!0),a=yo(e,t),o=On(e,t);return mi(e,a,l,t),zn(a,o),e.ancestors.pop(),e.schema=r,e.create(t,l,a,n)}function fo(e,t,n){const r={};return zn(r,On(e,t)),e.create(t,e.Fragment,r,n)}function po(e,t){return t.value}function mi(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function zn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ho(e,t,n){return r;function r(i,l,a,o){const u=Array.isArray(a.children)?n:t;return o?u(l,a,o):u(l,a)}}function mo(e,t){return n;function n(r,i,l,a){const o=Array.isArray(l.children),s=Pn(r);return t(i,l,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function go(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&_n.call(t.properties,i)){const l=xo(e,i,t.properties[i]);if(l){const[a,o]=l;e.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&ao.has(t.tagName)?r=o:n[a]=o}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function yo(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const a=l.expression;a.type;const o=a.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else At(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,l=e.evaluater.evaluateExpression(o.expression)}else At(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function On(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:no;for(;++r<t.children.length;){const l=t.children[r];let a;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const u=i.get(s)||0;a=s+"-"+u,i.set(s,u+1)}}const o=di(e,l,a);o!==void 0&&n.push(o)}return n}function xo(e,t,n){const r=Hl(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Rl(n):Wl(n)),r.property==="style"){let i=typeof n=="object"?n:vo(e,String(n));return e.stylePropertyNameCase==="css"&&(i=ko(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Vl[r.property]||r.property:r.attribute,n]}}function vo(e,t){try{return eo(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new me("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=hi+"#cannot-parse-style-attribute",i}}function gi(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,a;for(;++l<i.length;){const o=dr(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};a=a?{type:"MemberExpression",object:a,property:o,computed:!!(l&&o.type==="Literal"),optional:!1}:o}r=a}else r=dr(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return _n.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);At(e)}function At(e,t){const n=new me("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=hi+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ko(e){const t={};let n;for(n in e)_n.call(e,n)&&(t[bo(n)]=e[n]);return t}function bo(e){let t=e.replace(ro,wo);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function wo(e){return"-"+e.toLowerCase()}const an={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Co={};function Mn(e,t){const n=Co,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return yi(e,r,i)}function yi(e,t,n){if(So(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Sr(e.children,t,n)}return Array.isArray(e)?Sr(e,t,n):""}function Sr(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=yi(e[i],t,n);return r.join("")}function So(e){return!!(e&&typeof e=="object")}const Er=document.createElement("i");function Bn(e){const t="&"+e+";";Er.innerHTML=t;const n=Er.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ae(e,t,n,r){const i=e.length;let l=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);l<r.length;)a=r.slice(l,l+1e4),a.unshift(t,0),e.splice(...a),l+=1e4,t+=1e4}function Fe(e,t){return e.length>0?(Ae(e,e.length,0,t),e):t}const Ar={}.hasOwnProperty;function xi(e){const t={};let n=-1;for(;++n<e.length;)Eo(t,e[n]);return t}function Eo(e,t){let n;for(n in t){const i=(Ar.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let a;if(l)for(a in l){Ar.call(i,a)||(i[a]=[]);const o=l[a];Ao(i[a],Array.isArray(o)?o:o?[o]:[])}}}function Ao(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ae(e,0,0,r)}function vi(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Pe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ye=Ke(/[A-Za-z]/),de=Ke(/[\dA-Za-z]/),To=Ke(/[#-'*+\--9=?A-Z^-~]/);function $t(e){return e!==null&&(e<32||e===127)}const Sn=Ke(/\d/),Io=Ke(/[\dA-Fa-f]/),No=Ke(/[!-/:-@[-`{-~]/);function B(e){return e!==null&&e<-2}function re(e){return e!==null&&(e<0||e===32)}function K(e){return e===-2||e===-1||e===32}const Jt=Ke(/\p{P}|\p{S}/u),Ze=Ke(/\s/);function Ke(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ut(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let a="";if(l===37&&de(e.charCodeAt(n+1))&&de(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(a=String.fromCharCode(l));else if(l>55295&&l<57344){const o=e.charCodeAt(n+1);l<56320&&o>56319&&o<57344?(a=String.fromCharCode(l,o),i=1):a="�"}else a=String.fromCharCode(l);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function G(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return a;function a(s){return K(s)?(e.enter(n),o(s)):t(s)}function o(s){return K(s)&&l++<i?(e.consume(s),o):(e.exit(n),t(s))}}const Fo={tokenize:Lo};function Lo(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),G(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),l(o)}function l(o){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return B(o)?(e.consume(o),e.exit("chunkText"),l):(e.consume(o),a)}}const Ro={tokenize:jo},Tr={tokenize:Do};function jo(e){const t=this,n=[];let r=0,i,l,a;return o;function o(m){if(r<n.length){const E=n[r];return t.containerState=E[1],e.attempt(E[0].continuation,s,u)(m)}return u(m)}function s(m){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();const E=t.events.length;let C=E,d;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){d=t.events[C][1].end;break}k(r);let N=E;for(;N<t.events.length;)t.events[N][1].end={...d},N++;return Ae(t.events,C+1,0,t.events.slice(E)),t.events.length=N,u(m)}return o(m)}function u(m){if(r===n.length){if(!i)return h(m);if(i.currentConstruct&&i.currentConstruct.concrete)return v(m);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Tr,f,c)(m)}function f(m){return i&&y(),k(r),h(m)}function c(m){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,v(m)}function h(m){return t.containerState={},e.attempt(Tr,p,v)(m)}function p(m){return r++,n.push([t.currentConstruct,t.containerState]),h(m)}function v(m){if(m===null){i&&y(),k(0),e.consume(m);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),w(m)}function w(m){if(m===null){S(e.exit("chunkFlow"),!0),k(0),e.consume(m);return}return B(m)?(e.consume(m),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(m),w)}function S(m,E){const C=t.sliceStream(m);if(E&&C.push(null),m.previous=l,l&&(l.next=m),l=m,i.defineSkip(m.start),i.write(C),t.parser.lazy[m.start.line]){let d=i.events.length;for(;d--;)if(i.events[d][1].start.offset<a&&(!i.events[d][1].end||i.events[d][1].end.offset>a))return;const N=t.events.length;let L=N,F,b;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(F){b=t.events[L][1].end;break}F=!0}for(k(r),d=N;d<t.events.length;)t.events[d][1].end={...b},d++;Ae(t.events,L+1,0,t.events.slice(N)),t.events.length=d}}function k(m){let E=n.length;for(;E-- >m;){const C=n[E];t.containerState=C[1],C[0].exit.call(t,e)}n.length=m}function y(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Do(e,t,n){return G(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ot(e){if(e===null||re(e)||Ze(e))return 1;if(Jt(e))return 2}function Kt(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const En={name:"attention",resolveAll:Po,tokenize:_o};function Po(e,t){let n=-1,r,i,l,a,o,s,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},h={...e[n][1].start};Ir(c,-s),Ir(h,s),a={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[r][1].end={...a.start},e[n][1].start={...o.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Fe(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Fe(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",l,t]]),u=Fe(u,Kt(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Fe(u,[["exit",l,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=Fe(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Ae(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function _o(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ot(r);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 u=e.exit("attentionSequence"),f=ot(s),c=!f||f===2&&i||n.includes(s),h=!i||i===2&&f||n.includes(r);return u._open=!!(l===42?c:c&&(i||!h)),u._close=!!(l===42?h:h&&(f||!c)),t(s)}}function Ir(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const zo={name:"autolink",tokenize:Oo};function Oo(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return ye(p)?(e.consume(p),a):p===64?n(p):u(p)}function a(p){return p===43||p===45||p===46||de(p)?(r=1,o(p)):u(p)}function o(p){return p===58?(e.consume(p),r=0,s):(p===43||p===45||p===46||de(p))&&r++<32?(e.consume(p),o):(r=0,u(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||$t(p)?n(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),f):To(p)?(e.consume(p),u):n(p)}function f(p){return de(p)?c(p):n(p)}function c(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||de(p))&&r++<63){const v=p===45?h:c;return e.consume(p),v}return n(p)}}const Ft={partial:!0,tokenize:Mo};function Mo(e,t,n){return r;function r(l){return K(l)?G(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||B(l)?t(l):n(l)}}const ki={continuation:{tokenize:Vo},exit:$o,name:"blockQuote",tokenize:Bo};function Bo(e,t,n){const r=this;return i;function i(a){if(a===62){const o=r.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 n(a)}function l(a){return K(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function Vo(e,t,n){const r=this;return i;function i(a){return K(a)?G(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):l(a)}function l(a){return e.attempt(ki,t,n)(a)}}function $o(e){e.exit("blockQuote")}const bi={name:"characterEscape",tokenize:Uo};function Uo(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return No(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const wi={name:"characterReference",tokenize:Ho};function Ho(e,t,n){const r=this;let i=0,l,a;return o;function o(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,a=de,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,a=Io,f):(e.enter("characterReferenceValue"),l=7,a=Sn,f(c))}function f(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return a===de&&!Bn(r.sliceSerialize(h))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(c)&&i++<l?(e.consume(c),f):n(c)}}const Nr={partial:!0,tokenize:Jo},Fr={concrete:!0,name:"codeFenced",tokenize:qo};function qo(e,t,n){const r=this,i={partial:!0,tokenize:C};let l=0,a=0,o;return s;function s(d){return u(d)}function u(d){const N=r.events[r.events.length-1];return l=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,o=d,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(d)}function f(d){return d===o?(a++,e.consume(d),f):a<3?n(d):(e.exit("codeFencedFenceSequence"),K(d)?G(e,c,"whitespace")(d):c(d))}function c(d){return d===null||B(d)?(e.exit("codeFencedFence"),r.interrupt?t(d):e.check(Nr,w,E)(d)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(d))}function h(d){return d===null||B(d)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(d)):K(d)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),G(e,p,"whitespace")(d)):d===96&&d===o?n(d):(e.consume(d),h)}function p(d){return d===null||B(d)?c(d):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(d))}function v(d){return d===null||B(d)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(d)):d===96&&d===o?n(d):(e.consume(d),v)}function w(d){return e.attempt(i,E,S)(d)}function S(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),k}function k(d){return l>0&&K(d)?G(e,y,"linePrefix",l+1)(d):y(d)}function y(d){return d===null||B(d)?e.check(Nr,w,E)(d):(e.enter("codeFlowValue"),m(d))}function m(d){return d===null||B(d)?(e.exit("codeFlowValue"),y(d)):(e.consume(d),m)}function E(d){return e.exit("codeFenced"),t(d)}function C(d,N,L){let F=0;return b;function b(P){return d.enter("lineEnding"),d.consume(P),d.exit("lineEnding"),D}function D(P){return d.enter("codeFencedFence"),K(P)?G(d,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):z(P)}function z(P){return P===o?(d.enter("codeFencedFenceSequence"),J(P)):L(P)}function J(P){return P===o?(F++,d.consume(P),J):F>=a?(d.exit("codeFencedFenceSequence"),K(P)?G(d,O,"whitespace")(P):O(P)):L(P)}function O(P){return P===null||B(P)?(d.exit("codeFencedFence"),N(P)):L(P)}}}function Jo(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l)}function l(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const ln={name:"codeIndented",tokenize:Wo},Ko={partial:!0,tokenize:Qo};function Wo(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),G(e,l,"linePrefix",5)(u)}function l(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?s(u):B(u)?e.attempt(Ko,a,s)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||B(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),o)}function s(u){return e.exit("codeIndented"),t(u)}}function Qo(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):B(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):G(e,l,"linePrefix",5)(a)}function l(a){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):B(a)?i(a):n(a)}}const Yo={name:"codeText",previous:Zo,resolve:Go,tokenize:Xo};function Go(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Zo(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Xo(e,t,n){let r=0,i,l;return a;function a(c){return e.enter("codeText"),e.enter("codeTextSequence"),o(c)}function o(c){return c===96?(e.consume(c),r++,o):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):B(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||B(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",u(c))}}class es{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&bt(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),bt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),bt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);bt(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);bt(this.left,n.reverse())}}}function bt(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ci(e){const t={};let n=-1,r,i,l,a,o,s,u;const f=new es(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(s=r[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(r[0]==="enter")r[1].contentType&&(Object.assign(t,ts(f,n)),n=t[n],u=!0);else if(r[1]._container){for(l=n,i=void 0;l--;)if(a=f.get(l),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=l);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},o=f.slice(i,n),o.unshift(r),f.splice(i,n-i+1,o))}}return Ae(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function ts(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const l=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,s=[],u={};let f,c,h=-1,p=n,v=0,w=0;const S=[w];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),c&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++h<o.length;)o[h][0]==="exit"&&o[h-1][0]==="enter"&&o[h][1].type===o[h-1][1].type&&o[h][1].start.line!==o[h][1].end.line&&(w=h+1,S.push(w),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):S.pop(),h=S.length;h--;){const k=o.slice(S[h],S[h+1]),y=l.pop();s.push([y,y+k.length-1]),e.splice(y,2,k)}for(s.reverse(),h=-1;++h<s.length;)u[v+s[h][0]]=v+s[h][1],v+=s[h][1]-s[h][0]-1;return u}const ns={resolve:is,tokenize:as},rs={partial:!0,tokenize:ls};function is(e){return Ci(e),e}function as(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?l(o):B(o)?e.check(rs,a,l)(o):(e.consume(o),i)}function l(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function a(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function ls(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),G(e,l,"linePrefix")}function l(a){if(a===null||B(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Si(e,t,n,r,i,l,a,o,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(k){return k===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(k),e.exit(l),h):k===null||k===32||k===41||$t(k)?n(k):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),w(k))}function h(k){return k===62?(e.enter(l),e.consume(k),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===62?(e.exit("chunkString"),e.exit(o),h(k)):k===null||k===60||B(k)?n(k):(e.consume(k),k===92?v:p)}function v(k){return k===60||k===62||k===92?(e.consume(k),p):p(k)}function w(k){return!f&&(k===null||k===41||re(k))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),t(k)):f<u&&k===40?(e.consume(k),f++,w):k===41?(e.consume(k),f--,w):k===null||k===32||k===40||$t(k)?n(k):(e.consume(k),k===92?S:w)}function S(k){return k===40||k===41||k===92?(e.consume(k),w):w(k)}}function Ei(e,t,n,r,i,l){const a=this;let o=0,s;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),f}function f(p){return o>999||p===null||p===91||p===93&&!s||p===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):B(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||B(p)||o++>999?(e.exit("chunkString"),f(p)):(e.consume(p),s||(s=!K(p)),p===92?h:c)}function h(p){return p===91||p===92||p===93?(e.consume(p),o++,c):c(p)}}function Ai(e,t,n,r,i,l){let a;return o;function o(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),a=h===40?41:h,s):n(h)}function s(h){return h===a?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(l),u(h))}function u(h){return h===a?(e.exit(l),s(a)):h===null?n(h):B(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),G(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===a||h===null||B(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?c:f)}function c(h){return h===a||h===92?(e.consume(h),f):f(h)}}function St(e,t){let n;return r;function r(i){return B(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):K(i)?G(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const os={name:"definition",tokenize:us},ss={partial:!0,tokenize:cs};function us(e,t,n){const r=this;let i;return l;function l(p){return e.enter("definition"),a(p)}function a(p){return Ei.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return i=Pe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return re(p)?St(e,u)(p):u(p)}function u(p){return Si(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(ss,c,c)(p)}function c(p){return K(p)?G(e,h,"whitespace")(p):h(p)}function h(p){return p===null||B(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function cs(e,t,n){return r;function r(o){return re(o)?St(e,i)(o):n(o)}function i(o){return Ai(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function l(o){return K(o)?G(e,a,"whitespace")(o):a(o)}function a(o){return o===null||B(o)?t(o):n(o)}}const fs={name:"hardBreakEscape",tokenize:ps};function ps(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return B(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const hs={name:"headingAtx",resolve:ds,tokenize:ms};function ds(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ae(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function ms(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&r++<6?(e.consume(f),a):f===null||re(f)?(e.exit("atxHeadingSequence"),o(f)):n(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||B(f)?(e.exit("atxHeading"),t(f)):K(f)?G(e,o,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),o(f))}function u(f){return f===null||f===35||re(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),u)}}const gs=["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"],Lr=["pre","script","style","textarea"],ys={concrete:!0,name:"htmlFlow",resolveTo:ks,tokenize:bs},xs={partial:!0,tokenize:Cs},vs={partial:!0,tokenize:ws};function ks(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function bs(e,t,n){const r=this;let i,l,a,o,s;return u;function u(x){return f(x)}function f(x){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(x),c}function c(x){return x===33?(e.consume(x),h):x===47?(e.consume(x),l=!0,w):x===63?(e.consume(x),i=3,r.interrupt?t:g):ye(x)?(e.consume(x),a=String.fromCharCode(x),S):n(x)}function h(x){return x===45?(e.consume(x),i=2,p):x===91?(e.consume(x),i=5,o=0,v):ye(x)?(e.consume(x),i=4,r.interrupt?t:g):n(x)}function p(x){return x===45?(e.consume(x),r.interrupt?t:g):n(x)}function v(x){const le="CDATA[";return x===le.charCodeAt(o++)?(e.consume(x),o===le.length?r.interrupt?t:z:v):n(x)}function w(x){return ye(x)?(e.consume(x),a=String.fromCharCode(x),S):n(x)}function S(x){if(x===null||x===47||x===62||re(x)){const le=x===47,he=a.toLowerCase();return!le&&!l&&Lr.includes(he)?(i=1,r.interrupt?t(x):z(x)):gs.includes(a.toLowerCase())?(i=6,le?(e.consume(x),k):r.interrupt?t(x):z(x)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(x):l?y(x):m(x))}return x===45||de(x)?(e.consume(x),a+=String.fromCharCode(x),S):n(x)}function k(x){return x===62?(e.consume(x),r.interrupt?t:z):n(x)}function y(x){return K(x)?(e.consume(x),y):b(x)}function m(x){return x===47?(e.consume(x),b):x===58||x===95||ye(x)?(e.consume(x),E):K(x)?(e.consume(x),m):b(x)}function E(x){return x===45||x===46||x===58||x===95||de(x)?(e.consume(x),E):C(x)}function C(x){return x===61?(e.consume(x),d):K(x)?(e.consume(x),C):m(x)}function d(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),s=x,N):K(x)?(e.consume(x),d):L(x)}function N(x){return x===s?(e.consume(x),s=null,F):x===null||B(x)?n(x):(e.consume(x),N)}function L(x){return x===null||x===34||x===39||x===47||x===60||x===61||x===62||x===96||re(x)?C(x):(e.consume(x),L)}function F(x){return x===47||x===62||K(x)?m(x):n(x)}function b(x){return x===62?(e.consume(x),D):n(x)}function D(x){return x===null||B(x)?z(x):K(x)?(e.consume(x),D):n(x)}function z(x){return x===45&&i===2?(e.consume(x),Z):x===60&&i===1?(e.consume(x),oe):x===62&&i===4?(e.consume(x),pe):x===63&&i===3?(e.consume(x),g):x===93&&i===5?(e.consume(x),ce):B(x)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(xs,se,J)(x)):x===null||B(x)?(e.exit("htmlFlowData"),J(x)):(e.consume(x),z)}function J(x){return e.check(vs,O,se)(x)}function O(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),P}function P(x){return x===null||B(x)?J(x):(e.enter("htmlFlowData"),z(x))}function Z(x){return x===45?(e.consume(x),g):z(x)}function oe(x){return x===47?(e.consume(x),a="",X):z(x)}function X(x){if(x===62){const le=a.toLowerCase();return Lr.includes(le)?(e.consume(x),pe):z(x)}return ye(x)&&a.length<8?(e.consume(x),a+=String.fromCharCode(x),X):z(x)}function ce(x){return x===93?(e.consume(x),g):z(x)}function g(x){return x===62?(e.consume(x),pe):x===45&&i===2?(e.consume(x),g):z(x)}function pe(x){return x===null||B(x)?(e.exit("htmlFlowData"),se(x)):(e.consume(x),pe)}function se(x){return e.exit("htmlFlow"),t(x)}}function ws(e,t,n){const r=this;return i;function i(a){return B(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):n(a)}function l(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function Cs(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ft,t,n)}}const Ss={name:"htmlText",tokenize:Es};function Es(e,t,n){const r=this;let i,l,a;return o;function o(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),s}function s(g){return g===33?(e.consume(g),u):g===47?(e.consume(g),C):g===63?(e.consume(g),m):ye(g)?(e.consume(g),L):n(g)}function u(g){return g===45?(e.consume(g),f):g===91?(e.consume(g),l=0,v):ye(g)?(e.consume(g),y):n(g)}function f(g){return g===45?(e.consume(g),p):n(g)}function c(g){return g===null?n(g):g===45?(e.consume(g),h):B(g)?(a=c,oe(g)):(e.consume(g),c)}function h(g){return g===45?(e.consume(g),p):c(g)}function p(g){return g===62?Z(g):g===45?h(g):c(g)}function v(g){const pe="CDATA[";return g===pe.charCodeAt(l++)?(e.consume(g),l===pe.length?w:v):n(g)}function w(g){return g===null?n(g):g===93?(e.consume(g),S):B(g)?(a=w,oe(g)):(e.consume(g),w)}function S(g){return g===93?(e.consume(g),k):w(g)}function k(g){return g===62?Z(g):g===93?(e.consume(g),k):w(g)}function y(g){return g===null||g===62?Z(g):B(g)?(a=y,oe(g)):(e.consume(g),y)}function m(g){return g===null?n(g):g===63?(e.consume(g),E):B(g)?(a=m,oe(g)):(e.consume(g),m)}function E(g){return g===62?Z(g):m(g)}function C(g){return ye(g)?(e.consume(g),d):n(g)}function d(g){return g===45||de(g)?(e.consume(g),d):N(g)}function N(g){return B(g)?(a=N,oe(g)):K(g)?(e.consume(g),N):Z(g)}function L(g){return g===45||de(g)?(e.consume(g),L):g===47||g===62||re(g)?F(g):n(g)}function F(g){return g===47?(e.consume(g),Z):g===58||g===95||ye(g)?(e.consume(g),b):B(g)?(a=F,oe(g)):K(g)?(e.consume(g),F):Z(g)}function b(g){return g===45||g===46||g===58||g===95||de(g)?(e.consume(g),b):D(g)}function D(g){return g===61?(e.consume(g),z):B(g)?(a=D,oe(g)):K(g)?(e.consume(g),D):F(g)}function z(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),i=g,J):B(g)?(a=z,oe(g)):K(g)?(e.consume(g),z):(e.consume(g),O)}function J(g){return g===i?(e.consume(g),i=void 0,P):g===null?n(g):B(g)?(a=J,oe(g)):(e.consume(g),J)}function O(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||re(g)?F(g):(e.consume(g),O)}function P(g){return g===47||g===62||re(g)?F(g):n(g)}function Z(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function oe(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),X}function X(g){return K(g)?G(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):ce(g)}function ce(g){return e.enter("htmlTextData"),a(g)}}const Vn={name:"labelEnd",resolveAll:Ns,resolveTo:Fs,tokenize:Ls},As={tokenize:Rs},Ts={tokenize:js},Is={tokenize:Ds};function Ns(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ae(e,0,e.length,n),e}function Fs(e,t){let n=e.length,r=0,i,l,a,o;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[a][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",s,t],["enter",u,t]],o=Fe(o,e.slice(l+1,l+r+3)),o=Fe(o,[["enter",f,t]]),o=Fe(o,Kt(t.parser.constructs.insideSpan.null,e.slice(l+r+4,a-3),t)),o=Fe(o,[["exit",f,t],e[a-2],e[a-1],["exit",u,t]]),o=Fe(o,e.slice(a+1)),o=Fe(o,[["exit",s,t]]),Ae(e,l,e.length,o),e}function Ls(e,t,n){const r=this;let i=r.events.length,l,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return o;function o(h){return l?l._inactive?c(h):(a=r.parser.defined.includes(Pe(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),s):n(h)}function s(h){return h===40?e.attempt(As,f,a?f:c)(h):h===91?e.attempt(Ts,f,a?u:c)(h):a?f(h):c(h)}function u(h){return e.attempt(Is,f,c)(h)}function f(h){return t(h)}function c(h){return l._balanced=!0,n(h)}}function Rs(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return re(c)?St(e,l)(c):l(c)}function l(c){return c===41?f(c):Si(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function a(c){return re(c)?St(e,s)(c):f(c)}function o(c){return n(c)}function s(c){return c===34||c===39||c===40?Ai(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return re(c)?St(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function js(e,t,n){const r=this;return i;function i(o){return Ei.call(r,e,l,a,"reference","referenceMarker","referenceString")(o)}function l(o){return r.parser.defined.includes(Pe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function a(o){return n(o)}}function Ds(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const Ps={name:"labelStartImage",resolveAll:Vn.resolveAll,tokenize:_s};function _s(e,t,n){const r=this;return i;function i(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):n(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const zs={name:"labelStartLink",resolveAll:Vn.resolveAll,tokenize:Os};function Os(e,t,n){const r=this;return i;function i(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 r.parser.constructs?n(a):t(a)}}const on={name:"lineEnding",tokenize:Ms};function Ms(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),G(e,t,"linePrefix")}}const Vt={name:"thematicBreak",tokenize:Bs};function Bs(e,t,n){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),a(u)}function a(u){return i=u,o(u)}function o(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||B(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),K(u)?G(e,o,"whitespace")(u):o(u))}}const ke={continuation:{tokenize:Hs},exit:Js,name:"list",tokenize:Us},Vs={partial:!0,tokenize:Ks},$s={partial:!0,tokenize:qs};function Us(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(p){const v=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Sn(p)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Vt,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return Sn(p)&&++a<10?(e.consume(p),s):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ft,r.interrupt?n:f,e.attempt(Vs,h,c))}function f(p){return r.containerState.initialBlankLine=!0,l++,h(p)}function c(p){return K(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Hs(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ft,i,l);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,G(e,t,"listItemIndent",r.containerState.size+1)(o)}function l(o){return r.containerState.furtherBlankLines||!K(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($s,t,a)(o))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,G(e,e.attempt(ke,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function qs(e,t,n){const r=this;return G(e,i,"listItemIndent",r.containerState.size+1);function i(l){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(l):n(l)}}function Js(e){e.exit(this.containerState.type)}function Ks(e,t,n){const r=this;return G(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const a=r.events[r.events.length-1];return!K(l)&&a&&a[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const Rr={name:"setextUnderline",resolveTo:Ws,tokenize:Qs};function Ws(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",a,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function Qs(e,t,n){const r=this;let i;return l;function l(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),K(u)?G(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||B(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Ys={tokenize:Gs};function Gs(e){const t=this,n=e.attempt(Ft,r,e.attempt(this.parser.constructs.flowInitial,i,G(e,e.attempt(this.parser.constructs.flow,i,e.attempt(ns,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Zs={resolveAll:Ii()},Xs=Ti("string"),eu=Ti("text");function Ti(e){return{resolveAll:Ii(e==="text"?tu:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,a,o);return a;function a(f){return u(f)?l(f):o(f)}function o(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),s}function s(f){return u(f)?(n.exit("data"),l(f)):(n.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let h=-1;if(c)for(;++h<c.length;){const p=c[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Ii(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function tu(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,a=-1,o=0,s;for(;l--;){const u=i[l];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(u===-2)s=!0,o++;else if(u!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const u={type:n===e.length||s||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:r.start._bufferIndex+a,_index:r.start._index+l,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const nu={42:ke,43:ke,45:ke,48:ke,49:ke,50:ke,51:ke,52:ke,53:ke,54:ke,55:ke,56:ke,57:ke,62:ki},ru={91:os},iu={[-2]:ln,[-1]:ln,32:ln},au={35:hs,42:Vt,45:[Rr,Vt],60:ys,61:Rr,95:Vt,96:Fr,126:Fr},lu={38:wi,92:bi},ou={[-5]:on,[-4]:on,[-3]:on,33:Ps,38:wi,42:En,60:[zo,Ss],91:zs,92:[fs,bi],93:Vn,95:En,96:Yo},su={null:[En,Zs]},uu={null:[42,95]},cu={null:[]},fu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:uu,contentInitial:ru,disable:cu,document:nu,flow:au,flowInitial:iu,insideSpan:su,string:lu,text:ou},Symbol.toStringTag,{value:"Module"}));function pu(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let a=[],o=[];const s={attempt:N(C),check:N(d),consume:y,enter:m,exit:E,interrupt:N(d,{interrupt:!0})},u={code:null,containerState:{},defineSkip:w,events:[],now:v,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:c};let f=t.tokenize.call(u,s);return t.resolveAll&&l.push(t),u;function c(D){return a=Fe(a,D),S(),a[a.length-1]!==null?[]:(L(t,0),u.events=Kt(l,u.events,u),u.events)}function h(D,z){return du(p(D),z)}function p(D){return hu(a,D)}function v(){const{_bufferIndex:D,_index:z,line:J,column:O,offset:P}=r;return{_bufferIndex:D,_index:z,line:J,column:O,offset:P}}function w(D){i[D.line]=D.column,b()}function S(){let D;for(;r._index<a.length;){const z=a[r._index];if(typeof z=="string")for(D=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===D&&r._bufferIndex<z.length;)k(z.charCodeAt(r._bufferIndex));else k(z)}}function k(D){f=f(D)}function y(D){B(D)?(r.line++,r.column=1,r.offset+=D===-3?2:1,b()):D!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=D}function m(D,z){const J=z||{};return J.type=D,J.start=v(),u.events.push(["enter",J,u]),o.push(J),J}function E(D){const z=o.pop();return z.end=v(),u.events.push(["exit",z,u]),z}function C(D,z){L(D,z.from)}function d(D,z){z.restore()}function N(D,z){return J;function J(O,P,Z){let oe,X,ce,g;return Array.isArray(O)?se(O):"tokenize"in O?se([O]):pe(O);function pe(W){return Ie;function Ie(xe){const Re=xe!==null&&W[xe],Ne=xe!==null&&W.null,je=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(Ne)?Ne:Ne?[Ne]:[]];return se(je)(xe)}}function se(W){return oe=W,X=0,W.length===0?Z:x(W[X])}function x(W){return Ie;function Ie(xe){return g=F(),ce=W,W.partial||(u.currentConstruct=W),W.name&&u.parser.constructs.disable.null.includes(W.name)?he():W.tokenize.call(z?Object.assign(Object.create(u),z):u,s,le,he)(xe)}}function le(W){return D(ce,g),P}function he(W){return g.restore(),++X<oe.length?x(oe[X]):Z}}}function L(D,z){D.resolveAll&&!l.includes(D)&&l.push(D),D.resolve&&Ae(u.events,z,u.events.length-z,D.resolve(u.events.slice(z),u)),D.resolveTo&&(u.events=D.resolveTo(u.events,u))}function F(){const D=v(),z=u.previous,J=u.currentConstruct,O=u.events.length,P=Array.from(o);return{from:O,restore:Z};function Z(){r=D,u.previous=z,u.currentConstruct=J,u.events.length=O,o=P,b()}}function b(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function hu(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,l)];else{if(a=e.slice(n,i),r>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(r):a.shift()}l>0&&a.push(e[i].slice(0,l))}return a}function du(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let a;if(typeof l=="string")a=l;else switch(l){case-5:{a="\r";break}case-4:{a=`
36
+ `;break}case-3:{a=`\r
37
+ `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(l)}i=l===-2,r.push(a)}return r.join("")}function mu(e){const r={constructs:xi([fu,...(e||{}).extensions||[]]),content:i(Fo),defined:[],document:i(Ro),flow:i(Ys),lazy:{},string:i(Xs),text:i(eu)};return r;function i(l){return a;function a(o){return pu(r,l,o)}}}function gu(e){for(;!Ci(e););return e}const jr=/[\0\t\n\r]/g;function yu(){let e=1,t="",n=!0,r;return i;function i(l,a,o){const s=[];let u,f,c,h,p;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(a||void 0).decode(l)),c=0,t="",n&&(l.charCodeAt(0)===65279&&c++,n=void 0);c<l.length;){if(jr.lastIndex=c,u=jr.exec(l),h=u&&u.index!==void 0?u.index:l.length,p=l.charCodeAt(h),!u){t=l.slice(c);break}if(p===10&&c===h&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<h&&(s.push(l.slice(c,h)),e+=h-c),p){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const xu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vu(e){return e.replace(xu,ku)}function ku(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return vi(n.slice(l?2:1),l?16:10)}return Bn(n)||e}const Ni={}.hasOwnProperty;function bu(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),wu(n)(gu(mu(n).document().write(yu()(e,t,!0))))}function wu(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ye),autolinkProtocol:F,autolinkEmail:F,atxHeading:l(jt),blockQuote:l(Ne),characterEscape:F,characterReference:F,codeFenced:l(je),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(je,a),codeText:l(tt,a),codeTextData:F,data:F,codeFlowValue:F,definition:l(Qe),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(Rt),hardBreakEscape:l(ft),hardBreakTrailing:l(ft),htmlFlow:l(Dt,a),htmlFlowData:F,htmlText:l(Dt,a),htmlTextData:F,image:l(ue),label:a,link:l(Ye),listItem:l(Zt),listItemValue:h,listOrdered:l(pt,c),listUnordered:l(pt),paragraph:l(Xt),reference:x,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(jt),strong:l(Pt),thematicBreak:l(Be)},exit:{atxHeading:s(),atxHeadingSequence:C,autolink:s(),autolinkEmail:Re,autolinkProtocol:xe,blockQuote:s(),characterEscapeValue:b,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:W,characterReference:Ie,codeFenced:s(S),codeFencedFence:w,codeFencedFenceInfo:p,codeFencedFenceMeta:v,codeFlowValue:b,codeIndented:s(k),codeText:s(P),codeTextData:b,data:b,definition:s(),definitionDestinationString:E,definitionLabelString:y,definitionTitleString:m,emphasis:s(),hardBreakEscape:s(z),hardBreakTrailing:s(z),htmlFlow:s(J),htmlFlowData:b,htmlText:s(O),htmlTextData:b,image:s(oe),label:ce,labelText:X,lineEnding:D,link:s(Z),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:le,resourceDestinationString:g,resourceTitleString:pe,resource:se,setextHeading:s(L),setextHeadingLineSequence:N,setextHeadingText:d,strong:s(),thematicBreak:s()}};Fi(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let _={type:"root",children:[]};const $={stack:[_],tokenStack:[],config:t,enter:o,exit:u,buffer:a,resume:f,data:n},U=[];let te=-1;for(;++te<T.length;)if(T[te][1].type==="listOrdered"||T[te][1].type==="listUnordered")if(T[te][0]==="enter")U.push(te);else{const Ce=U.pop();te=i(T,Ce,te)}for(te=-1;++te<T.length;){const Ce=t[T[te][0]];Ni.call(Ce,T[te][1].type)&&Ce[T[te][1].type].call(Object.assign({sliceSerialize:T[te][2].sliceSerialize},$),T[te][1])}if($.tokenStack.length>0){const Ce=$.tokenStack[$.tokenStack.length-1];(Ce[1]||Dr).call($,void 0,Ce[0])}for(_.position={start:Je(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:Je(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},te=-1;++te<t.transforms.length;)_=t.transforms[te](_)||_;return _}function i(T,_,$){let U=_-1,te=-1,Ce=!1,Ve,De,j,Q;for(;++U<=$;){const V=T[U];switch(V[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{V[0]==="enter"?te++:te--,Q=void 0;break}case"lineEndingBlank":{V[0]==="enter"&&(Ve&&!Q&&!te&&!j&&(j=U),Q=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Q=void 0}if(!te&&V[0]==="enter"&&V[1].type==="listItemPrefix"||te===-1&&V[0]==="exit"&&(V[1].type==="listUnordered"||V[1].type==="listOrdered")){if(Ve){let H=U;for(De=void 0;H--;){const ee=T[H];if(ee[1].type==="lineEnding"||ee[1].type==="lineEndingBlank"){if(ee[0]==="exit")continue;De&&(T[De][1].type="lineEndingBlank",Ce=!0),ee[1].type="lineEnding",De=H}else if(!(ee[1].type==="linePrefix"||ee[1].type==="blockQuotePrefix"||ee[1].type==="blockQuotePrefixWhitespace"||ee[1].type==="blockQuoteMarker"||ee[1].type==="listItemIndent"))break}j&&(!De||j<De)&&(Ve._spread=!0),Ve.end=Object.assign({},De?T[De][1].start:V[1].end),T.splice(De||U,0,["exit",Ve,V[2]]),U++,$++}if(V[1].type==="listItemPrefix"){const H={type:"listItem",_spread:!1,start:Object.assign({},V[1].start),end:void 0};Ve=H,T.splice(U,0,["enter",H,V[2]]),U++,$++,j=void 0,Q=!0}}}return T[_][1]._spread=Ce,$}function l(T,_){return $;function $(U){o.call(this,T(U),U),_&&_.call(this,U)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(T,_,$){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([_,$||void 0]),T.position={start:Je(_.start),end:void 0}}function s(T){return _;function _($){T&&T.call(this,$),u.call(this,$)}}function u(T,_){const $=this.stack.pop(),U=this.tokenStack.pop();if(U)U[0].type!==T.type&&(_?_.call(this,T,U[0]):(U[1]||Dr).call(this,T,U[0]));else throw new Error("Cannot close `"+T.type+"` ("+Ct({start:T.start,end:T.end})+"): it’s not open");$.position.end=Je(T.end)}function f(){return Mn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(T){if(this.data.expectingFirstListItemValue){const _=this.stack[this.stack.length-2];_.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function p(){const T=this.resume(),_=this.stack[this.stack.length-1];_.lang=T}function v(){const T=this.resume(),_=this.stack[this.stack.length-1];_.meta=T}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const T=this.resume(),_=this.stack[this.stack.length-1];_.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const T=this.resume(),_=this.stack[this.stack.length-1];_.value=T.replace(/(\r?\n|\r)$/g,"")}function y(T){const _=this.resume(),$=this.stack[this.stack.length-1];$.label=_,$.identifier=Pe(this.sliceSerialize(T)).toLowerCase()}function m(){const T=this.resume(),_=this.stack[this.stack.length-1];_.title=T}function E(){const T=this.resume(),_=this.stack[this.stack.length-1];_.url=T}function C(T){const _=this.stack[this.stack.length-1];if(!_.depth){const $=this.sliceSerialize(T).length;_.depth=$}}function d(){this.data.setextHeadingSlurpLineEnding=!0}function N(T){const _=this.stack[this.stack.length-1];_.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function F(T){const $=this.stack[this.stack.length-1].children;let U=$[$.length-1];(!U||U.type!=="text")&&(U=ht(),U.position={start:Je(T.start),end:void 0},$.push(U)),this.stack.push(U)}function b(T){const _=this.stack.pop();_.value+=this.sliceSerialize(T),_.position.end=Je(T.end)}function D(T){const _=this.stack[this.stack.length-1];if(this.data.atHardBreak){const $=_.children[_.children.length-1];$.position.end=Je(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(_.type)&&(F.call(this,T),b.call(this,T))}function z(){this.data.atHardBreak=!0}function J(){const T=this.resume(),_=this.stack[this.stack.length-1];_.value=T}function O(){const T=this.resume(),_=this.stack[this.stack.length-1];_.value=T}function P(){const T=this.resume(),_=this.stack[this.stack.length-1];_.value=T}function Z(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const _=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=_,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function oe(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const _=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=_,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function X(T){const _=this.sliceSerialize(T),$=this.stack[this.stack.length-2];$.label=vu(_),$.identifier=Pe(_).toLowerCase()}function ce(){const T=this.stack[this.stack.length-1],_=this.resume(),$=this.stack[this.stack.length-1];if(this.data.inReference=!0,$.type==="link"){const U=T.children;$.children=U}else $.alt=_}function g(){const T=this.resume(),_=this.stack[this.stack.length-1];_.url=T}function pe(){const T=this.resume(),_=this.stack[this.stack.length-1];_.title=T}function se(){this.data.inReference=void 0}function x(){this.data.referenceType="collapsed"}function le(T){const _=this.resume(),$=this.stack[this.stack.length-1];$.label=_,$.identifier=Pe(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function he(T){this.data.characterReferenceType=T.type}function W(T){const _=this.sliceSerialize(T),$=this.data.characterReferenceType;let U;$?(U=vi(_,$==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):U=Bn(_);const te=this.stack[this.stack.length-1];te.value+=U}function Ie(T){const _=this.stack.pop();_.position.end=Je(T.end)}function xe(T){b.call(this,T);const _=this.stack[this.stack.length-1];_.url=this.sliceSerialize(T)}function Re(T){b.call(this,T);const _=this.stack[this.stack.length-1];_.url="mailto:"+this.sliceSerialize(T)}function Ne(){return{type:"blockquote",children:[]}}function je(){return{type:"code",lang:null,meta:null,value:""}}function tt(){return{type:"inlineCode",value:""}}function Qe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Rt(){return{type:"emphasis",children:[]}}function jt(){return{type:"heading",depth:0,children:[]}}function ft(){return{type:"break"}}function Dt(){return{type:"html",value:""}}function ue(){return{type:"image",title:null,url:"",alt:null}}function Ye(){return{type:"link",title:null,url:"",children:[]}}function pt(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function Zt(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Xt(){return{type:"paragraph",children:[]}}function Pt(){return{type:"strong",children:[]}}function ht(){return{type:"text",value:""}}function Be(){return{type:"thematicBreak"}}}function Je(e){return{line:e.line,column:e.column,offset:e.offset}}function Fi(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Fi(e,r):Cu(e,r)}}function Cu(e,t){let n;for(n in t)if(Ni.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Dr(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ct({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ct({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ct({start:t.start,end:t.end})+") is still open")}function Su(e){const t=this;t.parser=n;function n(r){return bu(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Eu(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Au(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
38
+ `}]}function Tu(e,t){const n=t.value?t.value+`
39
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function Iu(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nu(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Fu(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=ut(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let a,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=l+1,o+=1,e.footnoteCounts.set(r,o);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function Lu(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ru(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Li(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function ju(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Li(e,t);const i={src:ut(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function Du(e,t){const n={src:ut(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Pu(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function _u(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Li(e,t);const i={href:ut(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function zu(e,t){const n={href:ut(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ou(e,t,n){const r=e.all(t),i=n?Mu(n):Ri(t),l={},a=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const f=r[o];(i||o!==0||f.type!=="element"||f.tagName!=="p")&&a.push({type:"text",value:`
40
+ `}),f.type==="element"&&f.tagName==="p"&&!i?a.push(...f.children):a.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&a.push({type:"text",value:`
41
+ `});const u={type:"element",tagName:"li",properties:l,children:a};return e.patch(t,u),e.applyData(t,u)}function Mu(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ri(n[r])}return t}function Ri(e){const t=e.spread;return t??e.children.length>1}function Bu(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function Vu(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $u(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Uu(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Hu(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Pn(t.children[1]),s=fi(t.children[t.children.length-1]);o&&s&&(a.position={start:o,end:s}),i.push(a)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function qu(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,o=a?a.length:t.children.length;let s=-1;const u=[];for(;++s<o;){const c=t.children[s],h={},p=a?a[s]:void 0;p&&(h.align=p);let v={type:"element",tagName:l,properties:h,children:[]};c&&(v.children=e.all(c),e.patch(c,v),v=e.applyData(c,v)),u.push(v)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function Ju(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Pr=9,_r=32;function Ku(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(zr(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(zr(t.slice(i),i>0,!1)),l.join("")}function zr(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===Pr||l===_r;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===Pr||l===_r;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Wu(e,t){const n={type:"text",value:Ku(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Qu(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Yu={blockquote:Eu,break:Au,code:Tu,delete:Iu,emphasis:Nu,footnoteReference:Fu,heading:Lu,html:Ru,imageReference:ju,image:Du,inlineCode:Pu,linkReference:_u,link:zu,listItem:Ou,list:Bu,paragraph:Vu,root:$u,strong:Uu,table:Hu,tableCell:Ju,tableRow:qu,text:Wu,thematicBreak:Qu,toml:zt,yaml:zt,definition:zt,footnoteDefinition:zt};function zt(){}const ji=-1,Wt=0,Et=1,Ut=2,$n=3,Un=4,Hn=5,qn=6,Di=7,Pi=8,Gu=typeof self=="object"?self:globalThis,Or=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Gu[e](t)},Zu=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,a]=t[i];switch(l){case Wt:case ji:return n(a,i);case Et:{const o=n([],i);for(const s of a)o.push(r(s));return o}case Ut:{const o=n({},i);for(const[s,u]of a)o[r(s)]=r(u);return o}case $n:return n(new Date(a),i);case Un:{const{source:o,flags:s}=a;return n(new RegExp(o,s),i)}case Hn:{const o=n(new Map,i);for(const[s,u]of a)o.set(r(s),r(u));return o}case qn:{const o=n(new Set,i);for(const s of a)o.add(r(s));return o}case Di:{const{name:o,message:s}=a;return n(Or(o,s),i)}case Pi:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:o}=new Uint8Array(a);return n(new DataView(o),a)}}return n(Or(l,a),i)};return r},Mr=e=>Zu(new Map,e)(0),it="",{toString:Xu}={},{keys:ec}=Object,wt=e=>{const t=typeof e;if(t!=="object"||!e)return[Wt,t];const n=Xu.call(e).slice(8,-1);switch(n){case"Array":return[Et,it];case"Object":return[Ut,it];case"Date":return[$n,it];case"RegExp":return[Un,it];case"Map":return[Hn,it];case"Set":return[qn,it];case"DataView":return[Et,n]}return n.includes("Array")?[Et,n]:n.includes("Error")?[Di,n]:[Ut,n]},Ot=([e,t])=>e===Wt&&(t==="function"||t==="symbol"),tc=(e,t,n,r)=>{const i=(a,o)=>{const s=r.push(a)-1;return n.set(o,s),s},l=a=>{if(n.has(a))return n.get(a);let[o,s]=wt(a);switch(o){case Wt:{let f=a;switch(s){case"bigint":o=Pi,f=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([ji],a)}return i([o,f],a)}case Et:{if(s){let h=a;return s==="DataView"?h=new Uint8Array(a.buffer):s==="ArrayBuffer"&&(h=new Uint8Array(a)),i([s,[...h]],a)}const f=[],c=i([o,f],a);for(const h of a)f.push(l(h));return c}case Ut:{if(s)switch(s){case"BigInt":return i([s,a.toString()],a);case"Boolean":case"Number":case"String":return i([s,a.valueOf()],a)}if(t&&"toJSON"in a)return l(a.toJSON());const f=[],c=i([o,f],a);for(const h of ec(a))(e||!Ot(wt(a[h])))&&f.push([l(h),l(a[h])]);return c}case $n:return i([o,a.toISOString()],a);case Un:{const{source:f,flags:c}=a;return i([o,{source:f,flags:c}],a)}case Hn:{const f=[],c=i([o,f],a);for(const[h,p]of a)(e||!(Ot(wt(h))||Ot(wt(p))))&&f.push([l(h),l(p)]);return c}case qn:{const f=[],c=i([o,f],a);for(const h of a)(e||!Ot(wt(h)))&&f.push(l(h));return c}}const{message:u}=a;return i([o,{name:s,message:u}],a)};return l},Br=(e,{json:t,lossy:n}={})=>{const r=[];return tc(!(t||n),!!t,new Map,r)(e),r},Ht=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Mr(Br(e,t)):structuredClone(e):(e,t)=>Mr(Br(e,t));function nc(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function rc(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function ic(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||nc,r=e.options.footnoteBackLabel||rc,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),h=ut(c.toLowerCase());let p=0;const v=[],w=e.footnoteCounts.get(c);for(;w!==void 0&&++p<=w;){v.length>0&&v.push({type:"text",value:" "});let y=typeof n=="string"?n:n(s,p);typeof y=="string"&&(y={type:"text",value:y}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const S=f[f.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const y=S.children[S.children.length-1];y&&y.type==="text"?y.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...v)}else f.push(...v);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(u,k),o.push(k)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Ht(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
42
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
43
+ `}]}}const Qt=(function(e){if(e==null)return sc;if(typeof e=="function")return Yt(e);if(typeof e=="object")return Array.isArray(e)?ac(e):lc(e);if(typeof e=="string")return oc(e);throw new Error("Expected function, string, or object as test")});function ac(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Qt(e[n]);return Yt(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function lc(e){const t=e;return Yt(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function oc(e){return Yt(t);function t(n){return n&&n.type===e}}function Yt(e){return t;function t(n,r,i){return!!(uc(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function sc(){return!0}function uc(e){return e!==null&&typeof e=="object"&&"type"in e}const _i=[],cc=!0,An=!1,fc="skip";function zi(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=Qt(i),a=r?-1:1;o(e,void 0,[])();function o(s,u,f){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=_i,v,w,S;if((!t||l(s,u,f[f.length-1]||void 0))&&(p=pc(n(s,f)),p[0]===An))return p;if("children"in s&&s.children){const k=s;if(k.children&&p[0]!==fc)for(w=(r?k.children.length:-1)+a,S=f.concat(k);w>-1&&w<k.children.length;){const y=k.children[w];if(v=o(y,w,S)(),v[0]===An)return v;w=typeof v[1]=="number"?v[1]:w+a}}return p}}}function pc(e){return Array.isArray(e)?e:typeof e=="number"?[cc,e]:e==null?_i:[e]}function Jn(e,t,n,r){let i,l,a;typeof t=="function"&&typeof n!="function"?(l=void 0,a=t,i=n):(l=t,a=n,i=r),zi(e,l,o,i);function o(s,u){const f=u[u.length-1],c=f?f.children.indexOf(s):void 0;return a(s,c,f)}}const Tn={}.hasOwnProperty,hc={};function dc(e,t){const n=t||hc,r=new Map,i=new Map,l=new Map,a={...Yu,...n.handlers},o={all:u,applyData:gc,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:a,one:s,options:n,patch:mc,wrap:xc};return Jn(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,h=String(f.identifier).toUpperCase();c.has(h)||c.set(h,f)}}),o;function s(f,c){const h=f.type,p=o.handlers[h];if(Tn.call(o.handlers,h)&&p)return p(o,f,c);if(o.options.passThrough&&o.options.passThrough.includes(h)){if("children"in f){const{children:w,...S}=f,k=Ht(S);return k.children=o.all(f),k}return Ht(f)}return(o.options.unknownHandler||yc)(o,f,c)}function u(f){const c=[];if("children"in f){const h=f.children;let p=-1;for(;++p<h.length;){const v=o.one(h[p],f);if(v){if(p&&h[p-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=Vr(v.value)),!Array.isArray(v)&&v.type==="element")){const w=v.children[0];w&&w.type==="text"&&(w.value=Vr(w.value))}Array.isArray(v)?c.push(...v):c.push(v)}}}return c}}function mc(e,t){e.position&&(t.position=to(e))}function gc(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&l&&Object.assign(n.properties,Ht(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function yc(e,t){const n=t.data||{},r="value"in t&&!(Tn.call(n,"hProperties")||Tn.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xc(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
44
+ `});++r<e.length;)r&&n.push({type:"text",value:`
45
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
46
+ `}),n}function Vr(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function $r(e,t){const n=dc(e,t),r=n.one(e,void 0),i=ic(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
47
+ `},i),l}function vc(e,t){return e&&"run"in e?async function(n,r){const i=$r(n,{file:r,...t});await e.run(i,r)}:function(n,r){return $r(n,{file:r,...e||t})}}function Ur(e){if(e)throw e}var sn,Hr;function kc(){if(Hr)return sn;Hr=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},l=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!c)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},a=function(u,f){n&&f.name==="__proto__"?n(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},o=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(r)return r(u,f).value}else return;return u[f]};return sn=function s(){var u,f,c,h,p,v,w=arguments[0],S=1,k=arguments.length,y=!1;for(typeof w=="boolean"&&(y=w,w=arguments[1]||{},S=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});S<k;++S)if(u=arguments[S],u!=null)for(f in u)c=o(w,f),h=o(u,f),w!==h&&(y&&h&&(l(h)||(p=i(h)))?(p?(p=!1,v=c&&i(c)?c:[]):v=c&&l(c)?c:{},a(w,{name:f,newValue:s(y,v,h)})):typeof h<"u"&&a(w,{name:f,newValue:h}));return w},sn}var bc=kc();const un=ri(bc);function In(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function wc(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...i);function o(s,...u){const f=e[++l];let c=-1;if(s){a(s);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?Cc(f,o)(...u):a(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Cc(e,t){let n;return r;function r(...a){const o=e.length>a.length;let s;o&&a.push(i);try{s=e.apply(this,a)}catch(u){const f=u;if(o&&n)throw f;return i(f)}o||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(a,...o){n||(n=!0,t(a,...o))}function l(a){i(null,a)}}const Oe={basename:Sc,dirname:Ec,extname:Ac,join:Tc,sep:"/"};function Sc(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Lt(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else a<0&&(l=!0,a=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function Ec(e){if(Lt(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Ac(e){Lt(e);let t=e.length,n=-1,r=0,i=-1,l=0,a;for(;t--;){const o=e.codePointAt(t);if(o===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),o===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Tc(...e){let t=-1,n;for(;++t<e.length;)Lt(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Ic(n)}function Ic(e){Lt(e);const t=e.codePointAt(0)===47;let n=Nc(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Nc(e,t){let n="",r=0,i=-1,l=0,a=-1,o,s;for(;++a<=e.length;){if(a<e.length)o=e.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||l===1))if(i!==a-1&&l===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=a,l=0;continue}}else if(n.length>0){n="",r=0,i=a,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,l=0}else o===46&&l>-1?l++:l=-1}return n}function Lt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Fc={cwd:Lc};function Lc(){return"/"}function Nn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Rc(e){if(typeof e=="string")e=new URL(e);else if(!Nn(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return jc(e)}function jc(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const cn=["history","path","basename","stem","extname","dirname"];class Oi{constructor(t){let n;t?Nn(t)?n={path:t}:typeof t=="string"||Dc(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Fc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<cn.length;){const l=cn[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)cn.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Oe.basename(this.path):void 0}set basename(t){pn(t,"basename"),fn(t,"basename"),this.path=Oe.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Oe.dirname(this.path):void 0}set dirname(t){qr(this.basename,"dirname"),this.path=Oe.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Oe.extname(this.path):void 0}set extname(t){if(fn(t,"extname"),qr(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Oe.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Nn(t)&&(t=Rc(t)),pn(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Oe.basename(this.path,this.extname):void 0}set stem(t){pn(t,"stem"),fn(t,"stem"),this.path=Oe.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new me(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function fn(e,t){if(e&&e.includes(Oe.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Oe.sep+"`")}function pn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function qr(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Dc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Pc=(function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l}),_c={}.hasOwnProperty;class Kn extends Pc{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=wc()}copy(){const t=new Kn;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(un(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(mn("data",this.frozen),this.namespace[t]=n,this):_c.call(this.namespace,t)&&this.namespace[t]||void 0:t?(mn("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Mt(t),r=this.parser||this.Parser;return hn("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),hn("process",this.parser||this.Parser),dn("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,a){const o=Mt(t),s=r.parse(o);r.run(s,o,function(f,c,h){if(f||!c||!h)return u(f);const p=c,v=r.stringify(p,h);Mc(v)?h.value=v:h.result=v,u(f,h)});function u(f,c){f||!c?a(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),hn("processSync",this.parser||this.Parser),dn("processSync",this.compiler||this.Compiler),this.process(t,i),Kr("processSync","process",n),r;function i(l,a){n=!0,Ur(l),r=a}}run(t,n,r){Jr(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(a,o){const s=Mt(n);i.run(t,s,u);function u(f,c,h){const p=c||t;f?o(f):a?a(p):r(void 0,p,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),Kr("runSync","run",r),i;function l(a,o){Ur(a),i=o,r=!0}}stringify(t,n){this.freeze();const r=Mt(n),i=this.compiler||this.Compiler;return dn("stringify",i),Jr(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(mn("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;s(f,c)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(i.settings=un(!0,i.settings,u.settings))}function o(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,f){let c=-1,h=-1;for(;++c<r.length;)if(r[c][0]===u){h=c;break}if(h===-1)r.push([u,...f]);else if(f.length>0){let[p,...v]=f;const w=r[h][1];In(w)&&In(p)&&(p=un(!0,w,p)),r[h]=[u,p,...v]}}}}const zc=new Kn().freeze();function hn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function dn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function mn(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Jr(e){if(!In(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Kr(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Mt(e){return Oc(e)?e:new Oi(e)}function Oc(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Mc(e){return typeof e=="string"||Bc(e)}function Bc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Vc="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Wr=[],Qr={allowDangerousHtml:!0},$c=/^(https?|ircs?|mailto|xmpp)$/i,Uc=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function od(e){const t=Hc(e),n=qc(e);return Jc(t.runSync(t.parse(n),n),e)}function Hc(e){const t=e.rehypePlugins||Wr,n=e.remarkPlugins||Wr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Qr}:Qr;return zc().use(Su).use(n).use(vc,r).use(t)}function qc(e){const t=e.children||"",n=new Oi;return typeof t=="string"&&(n.value=t),n}function Jc(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,a=t.skipHtml,o=t.unwrapDisallowed,s=t.urlTransform||Kc;for(const f of Uc)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Vc+f.id,void 0);return Jn(e,u),lo(e,{Fragment:I.Fragment,components:i,ignoreInvalidStyle:!0,jsx:I.jsx,jsxs:I.jsxs,passKeys:!0,passNode:!0});function u(f,c,h){if(f.type==="raw"&&h&&typeof c=="number")return a?h.children.splice(c,1):h.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let p;for(p in an)if(Object.hasOwn(an,p)&&Object.hasOwn(f.properties,p)){const v=f.properties[p],w=an[p];(w===null||w.includes(f.tagName))&&(f.properties[p]=s(String(v||""),p,f))}}if(f.type==="element"){let p=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(f,c,h)),p&&h&&typeof c=="number")return o&&f.children?h.children.splice(c,1,...f.children):h.children.splice(c,1),c}}}function Kc(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||$c.test(e.slice(0,t))?e:""}function Yr(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Wc(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Mi(e,t,n){const i=Qt((n||{}).ignore||[]),l=Qc(t);let a=-1;for(;++a<l.length;)zi(e,"text",o);function o(u,f){let c=-1,h;for(;++c<f.length;){const p=f[c],v=h?h.children:void 0;if(i(p,v?v.indexOf(p):void 0,h))return;h=p}if(h)return s(u,f)}function s(u,f){const c=f[f.length-1],h=l[a][0],p=l[a][1];let v=0;const S=c.children.indexOf(u);let k=!1,y=[];h.lastIndex=0;let m=h.exec(u.value);for(;m;){const E=m.index,C={index:m.index,input:m.input,stack:[...f,u]};let d=p(...m,C);if(typeof d=="string"&&(d=d.length>0?{type:"text",value:d}:void 0),d===!1?h.lastIndex=E+1:(v!==E&&y.push({type:"text",value:u.value.slice(v,E)}),Array.isArray(d)?y.push(...d):d&&y.push(d),v=E+m[0].length,k=!0),!h.global)break;m=h.exec(u.value)}return k?(v<u.value.length&&y.push({type:"text",value:u.value.slice(v)}),c.children.splice(S,1,...y)):y=[u],S+y.length}}function Qc(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Yc(i[0]),Gc(i[1])])}return t}function Yc(e){return typeof e=="string"?new RegExp(Wc(e),"g"):e}function Gc(e){return typeof e=="function"?e:function(){return e}}const gn="phrasing",yn=["autolink","link","image","label"];function Zc(){return{transforms:[lf],enter:{literalAutolink:ef,literalAutolinkEmail:xn,literalAutolinkHttp:xn,literalAutolinkWww:xn},exit:{literalAutolink:af,literalAutolinkEmail:rf,literalAutolinkHttp:tf,literalAutolinkWww:nf}}}function Xc(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gn,notInConstruct:yn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gn,notInConstruct:yn},{character:":",before:"[ps]",after:"\\/",inConstruct:gn,notInConstruct:yn}]}}function ef(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function xn(e){this.config.enter.autolinkProtocol.call(this,e)}function tf(e){this.config.exit.autolinkProtocol.call(this,e)}function nf(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function rf(e){this.config.exit.autolinkEmail.call(this,e)}function af(e){this.exit(e)}function lf(e){Mi(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,of],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,sf]],{ignore:["link","linkReference"]})}function of(e,t,n,r,i){let l="";if(!Bi(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!uf(n)))return!1;const a=cf(n+r);if(!a[0])return!1;const o={type:"link",title:null,url:l+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}function sf(e,t,n,r){return!Bi(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function uf(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function cf(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Yr(e,"(");let l=Yr(e,")");for(;r!==-1&&i>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function Bi(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ze(n)||Jt(n))&&(!t||n!==47)}Vi.peek=vf;function ff(){this.buffer()}function pf(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function hf(){this.buffer()}function df(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function mf(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Pe(this.sliceSerialize(e)).toLowerCase(),n.label=t}function gf(e){this.exit(e)}function yf(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Pe(this.sliceSerialize(e)).toLowerCase(),n.label=t}function xf(e){this.exit(e)}function vf(){return"["}function Vi(e,t,n,r){const i=n.createTracker(r);let l=i.move("[^");const a=n.enter("footnoteReference"),o=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),o(),a(),l+=i.move("]"),l}function kf(){return{enter:{gfmFootnoteCallString:ff,gfmFootnoteCall:pf,gfmFootnoteDefinitionLabelString:hf,gfmFootnoteDefinition:df},exit:{gfmFootnoteCallString:mf,gfmFootnoteCall:gf,gfmFootnoteDefinitionLabelString:yf,gfmFootnoteDefinition:xf}}}function bf(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Vi},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,l,a){const o=l.createTracker(a);let s=o.move("[^");const u=l.enter("footnoteDefinition"),f=l.enter("label");return s+=o.move(l.safe(l.associationId(r),{before:s,after:"]"})),f(),s+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),s+=o.move((t?`
48
+ `:" ")+l.indentLines(l.containerFlow(r,o.current()),t?$i:wf))),u(),s}}function wf(e,t,n){return t===0?e:$i(e,t,n)}function $i(e,t,n){return(n?"":" ")+e}const Cf=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ui.peek=If;function Sf(){return{canContainEols:["delete"],enter:{strikethrough:Af},exit:{strikethrough:Tf}}}function Ef(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Cf}],handlers:{delete:Ui}}}function Af(e){this.enter({type:"delete",children:[]},e)}function Tf(e){this.exit(e)}function Ui(e,t,n,r){const i=n.createTracker(r),l=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),l(),a}function If(){return"~"}function Nf(e){return e.length}function Ff(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Nf,l=[],a=[],o=[],s=[];let u=0,f=-1;for(;++f<e.length;){const w=[],S=[];let k=-1;for(e[f].length>u&&(u=e[f].length);++k<e[f].length;){const y=Lf(e[f][k]);if(n.alignDelimiters!==!1){const m=i(y);S[k]=m,(s[k]===void 0||m>s[k])&&(s[k]=m)}w.push(y)}a[f]=w,o[f]=S}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)l[c]=Gr(r[c]);else{const w=Gr(r);for(;++c<u;)l[c]=w}c=-1;const h=[],p=[];for(;++c<u;){const w=l[c];let S="",k="";w===99?(S=":",k=":"):w===108?S=":":w===114&&(k=":");let y=n.alignDelimiters===!1?1:Math.max(1,s[c]-S.length-k.length);const m=S+"-".repeat(y)+k;n.alignDelimiters!==!1&&(y=S.length+y+k.length,y>s[c]&&(s[c]=y),p[c]=y),h[c]=m}a.splice(1,0,h),o.splice(1,0,p),f=-1;const v=[];for(;++f<a.length;){const w=a[f],S=o[f];c=-1;const k=[];for(;++c<u;){const y=w[c]||"";let m="",E="";if(n.alignDelimiters!==!1){const C=s[c]-(S[c]||0),d=l[c];d===114?m=" ".repeat(C):d===99?C%2?(m=" ".repeat(C/2+.5),E=" ".repeat(C/2-.5)):(m=" ".repeat(C/2),E=m):E=" ".repeat(C)}n.delimiterStart!==!1&&!c&&k.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||c)&&k.push(" "),n.alignDelimiters!==!1&&k.push(m),k.push(y),n.alignDelimiters!==!1&&k.push(E),n.padding!==!1&&k.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&k.push("|")}v.push(n.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return v.join(`
49
+ `)}function Lf(e){return e==null?"":String(e)}function Gr(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Rf(e,t,n,r){const i=n.enter("blockquote"),l=n.createTracker(r);l.move("> "),l.shift(2);const a=n.indentLines(n.containerFlow(e,l.current()),jf);return i(),a}function jf(e,t,n){return">"+(n?"":" ")+e}function Df(e,t){return Zr(e,t.inConstruct,!0)&&!Zr(e,t.notInConstruct,!1)}function Zr(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Xr(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
50
+ `&&Df(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
51
+ `}function Pf(e,t){const n=String(e);let r=n.indexOf(t),i=r,l=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>a&&(a=l):l=1,i=r+t.length,r=n.indexOf(t,i);return a}function _f(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function zf(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Of(e,t,n,r){const i=zf(n),l=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(_f(e,n)){const c=n.enter("codeIndented"),h=n.indentLines(l,Mf);return c(),h}const o=n.createTracker(r),s=i.repeat(Math.max(Pf(l,i)+1,3)),u=n.enter("codeFenced");let f=o.move(s);if(e.lang){const c=n.enter(`codeFencedLang${a}`);f+=o.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...o.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${a}`);f+=o.move(" "),f+=o.move(n.safe(e.meta,{before:f,after:`
52
+ `,encode:["`"],...o.current()})),c()}return f+=o.move(`
53
+ `),l&&(f+=o.move(l+`
54
+ `)),f+=o.move(s),u(),f}function Mf(e,t,n){return(n?"":" ")+e}function Wn(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Bf(e,t,n,r){const i=Wn(n),l=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let o=n.enter("label");const s=n.createTracker(r);let u=s.move("[");return u+=s.move(n.safe(n.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(o=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":`
55
+ `,...s.current()}))),o(),e.title&&(o=n.enter(`title${l}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),o()),a(),u}function Vf(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Tt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function qt(e,t,n){const r=ot(e),i=ot(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Hi.peek=$f;function Hi(e,t,n,r){const i=Vf(n),l=n.enter("emphasis"),a=n.createTracker(r),o=a.move(i);let s=a.move(n.containerPhrasing(e,{after:i,before:o,...a.current()}));const u=s.charCodeAt(0),f=qt(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=Tt(u)+s.slice(1));const c=s.charCodeAt(s.length-1),h=qt(r.after.charCodeAt(0),c,i);h.inside&&(s=s.slice(0,-1)+Tt(c));const p=a.move(i);return l(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},o+s+p}function $f(e,t,n){return n.options.emphasis||"*"}function Uf(e,t){let n=!1;return Jn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,An}),!!((!e.depth||e.depth<3)&&Mn(e)&&(t.options.setext||n))}function Hf(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if(Uf(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),h=n.containerPhrasing(e,{...l.current(),before:`
56
+ `,after:`
57
+ `});return c(),f(),h+`
58
+ `+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
59
+ `))+1))}const a="#".repeat(i),o=n.enter("headingAtx"),s=n.enter("phrasing");l.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
60
+ `,...l.current()});return/^[\t ]/.test(u)&&(u=Tt(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),s(),o(),u}qi.peek=qf;function qi(e){return e.value||""}function qf(){return"<"}Ji.peek=Jf;function Ji(e,t,n,r){const i=Wn(n),l=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let o=n.enter("label");const s=n.createTracker(r);let u=s.move("![");return u+=s.move(n.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(o=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=n.enter(`title${l}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),o()),u+=s.move(")"),a(),u}function Jf(){return"!"}Ki.peek=Kf;function Ki(e,t,n,r){const i=e.referenceType,l=n.enter("imageReference");let a=n.enter("label");const o=n.createTracker(r);let s=o.move("![");const u=n.safe(e.alt,{before:s,after:"]",...o.current()});s+=o.move(u+"]["),a();const f=n.stack;n.stack=[],a=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...o.current()});return a(),n.stack=f,l(),i==="full"||!u||u!==c?s+=o.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}function Kf(){return"!"}Wi.peek=Wf;function Wi(e,t,n){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){const a=n.unsafe[l],o=n.compilePattern(a);let s;if(a.atBreak)for(;s=o.exec(r);){let u=s.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1)}}return i+r+i}function Wf(){return"`"}function Qi(e,t){const n=Mn(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Yi.peek=Qf;function Yi(e,t,n,r){const i=Wn(n),l=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let o,s;if(Qi(e,n)){const f=n.stack;n.stack=[],o=n.enter("autolink");let c=a.move("<");return c+=a.move(n.containerPhrasing(e,{before:c,after:">",...a.current()})),c+=a.move(">"),o(),n.stack=f,c}o=n.enter("link"),s=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(s=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=n.enter(`title${l}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),s()),u+=a.move(")"),o(),u}function Qf(e,t,n){return Qi(e,n)?"<":"["}Gi.peek=Yf;function Gi(e,t,n,r){const i=e.referenceType,l=n.enter("linkReference");let a=n.enter("label");const o=n.createTracker(r);let s=o.move("[");const u=n.containerPhrasing(e,{before:s,after:"]",...o.current()});s+=o.move(u+"]["),a();const f=n.stack;n.stack=[],a=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...o.current()});return a(),n.stack=f,l(),i==="full"||!u||u!==c?s+=o.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}function Yf(){return"["}function Qn(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Gf(e){const t=Qn(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Zf(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Zi(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Xf(e,t,n,r){const i=n.enter("list"),l=n.bulletCurrent;let a=e.ordered?Zf(n):Qn(n);const o=e.ordered?a==="."?")":".":Gf(n);let s=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),Zi(n)===a&&f){let c=-1;for(;++c<e.children.length;){const h=e.children[c];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(a=o),n.bulletCurrent=a;const u=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=l,i(),u}function ep(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function tp(e,t,n,r){const i=ep(n);let l=n.bulletCurrent||Qn(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let a=l.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const o=n.createTracker(r);o.move(l+" ".repeat(a-l.length)),o.shift(a);const s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),f);return s(),u;function f(c,h,p){return h?(p?"":" ".repeat(a))+c:(p?l:l+" ".repeat(a-l.length))+c}}function np(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),a=n.containerPhrasing(e,r);return l(),i(),a}const rp=Qt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ip(e,t,n,r){return(e.children.some(function(a){return rp(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function ap(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Xi.peek=lp;function Xi(e,t,n,r){const i=ap(n),l=n.enter("strong"),a=n.createTracker(r),o=a.move(i+i);let s=a.move(n.containerPhrasing(e,{after:i,before:o,...a.current()}));const u=s.charCodeAt(0),f=qt(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=Tt(u)+s.slice(1));const c=s.charCodeAt(s.length-1),h=qt(r.after.charCodeAt(0),c,i);h.inside&&(s=s.slice(0,-1)+Tt(c));const p=a.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},o+s+p}function lp(e,t,n){return n.options.strong||"*"}function op(e,t,n,r){return n.safe(e.value,r)}function sp(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function up(e,t,n){const r=(Zi(n)+(n.options.ruleSpaces?" ":"")).repeat(sp(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ea={blockquote:Rf,break:Xr,code:Of,definition:Bf,emphasis:Hi,hardBreak:Xr,heading:Hf,html:qi,image:Ji,imageReference:Ki,inlineCode:Wi,link:Yi,linkReference:Gi,list:Xf,listItem:tp,paragraph:np,root:ip,strong:Xi,text:op,thematicBreak:up};function cp(){return{enter:{table:fp,tableData:ei,tableHeader:ei,tableRow:hp},exit:{codeText:dp,table:pp,tableData:vn,tableHeader:vn,tableRow:vn}}}function fp(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function pp(e){this.exit(e),this.data.inTable=void 0}function hp(e){this.enter({type:"tableRow",children:[]},e)}function vn(e){this.exit(e)}function ei(e){this.enter({type:"tableCell",children:[]},e)}function dp(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,mp));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function mp(e,t){return t==="|"?t:e}function gp(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
61
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:a,tableCell:s,tableRow:o}};function a(p,v,w,S){return u(f(p,w,S),p.align)}function o(p,v,w,S){const k=c(p,w,S),y=u([k]);return y.slice(0,y.indexOf(`
62
+ `))}function s(p,v,w,S){const k=w.enter("tableCell"),y=w.enter("phrasing"),m=w.containerPhrasing(p,{...S,before:l,after:l});return y(),k(),m}function u(p,v){return Ff(p,{align:v,alignDelimiters:r,padding:n,stringLength:i})}function f(p,v,w){const S=p.children;let k=-1;const y=[],m=v.enter("table");for(;++k<S.length;)y[k]=c(S[k],v,w);return m(),y}function c(p,v,w){const S=p.children;let k=-1;const y=[],m=v.enter("tableRow");for(;++k<S.length;)y[k]=s(S[k],p,v,w);return m(),y}function h(p,v,w){let S=ea.inlineCode(p,v,w);return w.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function yp(){return{exit:{taskListCheckValueChecked:ti,taskListCheckValueUnchecked:ti,paragraph:vp}}}function xp(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:kp}}}function ti(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function vp(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let l=-1,a;for(;++l<i.length;){const o=i[l];if(o.type==="paragraph"){a=o;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function kp(e,t,n,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);l&&o.move(a);let s=ea.listItem(e,t,n,{...r,...o.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+a}}function bp(){return[Zc(),kf(),Sf(),cp(),yp()]}function wp(e){return{extensions:[Xc(),bf(e),Ef(),gp(e),xp()]}}const Cp={tokenize:Np,partial:!0},ta={tokenize:Fp,partial:!0},na={tokenize:Lp,partial:!0},ra={tokenize:Rp,partial:!0},Sp={tokenize:jp,partial:!0},ia={name:"wwwAutolink",tokenize:Tp,previous:la},aa={name:"protocolAutolink",tokenize:Ip,previous:oa},He={name:"emailAutolink",tokenize:Ap,previous:sa},Me={};function Ep(){return{text:Me}}let Ge=48;for(;Ge<123;)Me[Ge]=He,Ge++,Ge===58?Ge=65:Ge===91&&(Ge=97);Me[43]=He;Me[45]=He;Me[46]=He;Me[95]=He;Me[72]=[He,aa];Me[104]=[He,aa];Me[87]=[He,ia];Me[119]=[He,ia];function Ap(e,t,n){const r=this;let i,l;return a;function a(c){return!Fn(c)||!sa.call(r,r.previous)||Yn(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(c))}function o(c){return Fn(c)?(e.consume(c),o):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(Sp,f,u)(c):c===45||c===95||de(c)?(l=!0,e.consume(c),s):f(c)}function u(c){return e.consume(c),i=!0,s}function f(c){return l&&i&&ye(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function Tp(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!la.call(r,r.previous)||Yn(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Cp,e.attempt(ta,e.attempt(na,l),n),n)(a))}function l(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function Ip(e,t,n){const r=this;let i="",l=!1;return a;function a(c){return(c===72||c===104)&&oa.call(r,r.previous)&&!Yn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),o):n(c)}function o(c){if(ye(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),o;if(c===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),l?u:(l=!0,s)):n(c)}function u(c){return c===null||$t(c)||re(c)||Ze(c)||Jt(c)?n(c):e.attempt(ta,e.attempt(na,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function Np(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),l):n(a)}function l(a){return a===null?n(a):t(a)}}function Fp(e,t,n){let r,i,l;return a;function a(u){return u===46||u===95?e.check(ra,s,o)(u):u===null||re(u)||Ze(u)||u!==45&&Jt(u)?s(u):(l=!0,e.consume(u),a)}function o(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),a}function s(u){return i||r||!l?n(u):t(u)}}function Lp(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?l(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(ra,t,l)(a):a===null||re(a)||Ze(a)?t(a):(e.consume(a),i)}function l(a){return a===41&&r++,e.consume(a),i}}function Rp(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),l):o===93?(e.consume(o),i):o===60||o===null||re(o)||Ze(o)?t(o):n(o)}function i(o){return o===null||o===40||o===91||re(o)||Ze(o)?t(o):r(o)}function l(o){return ye(o)?a(o):n(o)}function a(o){return o===59?(e.consume(o),r):ye(o)?(e.consume(o),a):n(o)}}function jp(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return de(l)?n(l):t(l)}}function la(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||re(e)}function oa(e){return!ye(e)}function sa(e){return!(e===47||Fn(e))}function Fn(e){return e===43||e===45||e===46||e===95||de(e)}function Yn(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Dp={tokenize:$p,partial:!0};function Pp(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Mp,continuation:{tokenize:Bp},exit:Vp}},text:{91:{name:"gfmFootnoteCall",tokenize:Op},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:_p,resolveTo:zp}}}}function _p(e,t,n){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){a=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return o;function o(s){if(!a||!a._balanced)return n(s);const u=Pe(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!l.includes(u.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function zp(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",a,t],["exit",a,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function Op(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,a;return o;function o(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(l>999||c===93&&!a||c===null||c===91||re(c))return n(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(Pe(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return re(c)||(a=!0),l++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,u):u(c)}}function Mp(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,a=0,o;return s;function s(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(v)}function f(v){if(a>999||v===93&&!o||v===null||v===91||re(v))return n(v);if(v===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return l=Pe(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return re(v)||(o=!0),a++,e.consume(v),v===92?c:f}function c(v){return v===91||v===92||v===93?(e.consume(v),a++,f):f(v)}function h(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),i.includes(l)||i.push(l),G(e,p,"gfmFootnoteDefinitionWhitespace")):n(v)}function p(v){return t(v)}}function Bp(e,t,n){return e.check(Ft,t,e.attempt(Dp,t,n))}function Vp(e){e.exit("gfmFootnoteDefinition")}function $p(e,t,n){const r=this;return G(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(l):n(l)}}function Up(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,o){let s=-1;for(;++s<a.length;)if(a[s][0]==="enter"&&a[s][1].type==="strikethroughSequenceTemporary"&&a[s][1]._close){let u=s;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[s][1].end.offset-a[s][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[s][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[s][1].end)},c={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[s][1].start)},h=[["enter",f,o],["enter",a[u][1],o],["exit",a[u][1],o],["enter",c,o]],p=o.parser.constructs.insideSpan.null;p&&Ae(h,h.length,0,Kt(p,a.slice(u+1,s),o)),Ae(h,h.length,0,[["exit",c,o],["enter",a[s][1],o],["exit",a[s][1],o],["exit",f,o]]),Ae(a,u-1,s-u+3,h),s=u+h.length-2;break}}for(s=-1;++s<a.length;)a[s][1].type==="strikethroughSequenceTemporary"&&(a[s][1].type="data");return a}function l(a,o,s){const u=this.previous,f=this.events;let c=0;return h;function h(v){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(v):(a.enter("strikethroughSequenceTemporary"),p(v))}function p(v){const w=ot(u);if(v===126)return c>1?s(v):(a.consume(v),c++,p);if(c<2&&!n)return s(v);const S=a.exit("strikethroughSequenceTemporary"),k=ot(v);return S._open=!k||k===2&&!!w,S._close=!w||w===2&&!!k,o(v)}}}class Hp{constructor(){this.map=[]}add(t,n,r){qp(this,t,n,r)}consume(t){if(this.map.sort(function(l,a){return l[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const l of i)t.push(l);i=r.pop()}this.map.length=0}}function qp(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Jp(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Kp(){return{flow:{null:{name:"table",tokenize:Wp,resolveAll:Qp}}}}function Wp(e,t,n){const r=this;let i=0,l=0,a;return o;function o(b){let D=r.events.length-1;for(;D>-1;){const O=r.events[D][1].type;if(O==="lineEnding"||O==="linePrefix")D--;else break}const z=D>-1?r.events[D][1].type:null,J=z==="tableHead"||z==="tableRow"?d:s;return J===d&&r.parser.lazy[r.now().line]?n(b):J(b)}function s(b){return e.enter("tableHead"),e.enter("tableRow"),u(b)}function u(b){return b===124||(a=!0,l+=1),f(b)}function f(b){return b===null?n(b):B(b)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),p):n(b):K(b)?G(e,f,"whitespace")(b):(l+=1,a&&(a=!1,i+=1),b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),a=!0,f):(e.enter("data"),c(b)))}function c(b){return b===null||b===124||re(b)?(e.exit("data"),f(b)):(e.consume(b),b===92?h:c)}function h(b){return b===92||b===124?(e.consume(b),c):c(b)}function p(b){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(b):(e.enter("tableDelimiterRow"),a=!1,K(b)?G(e,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):v(b))}function v(b){return b===45||b===58?S(b):b===124?(a=!0,e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),w):C(b)}function w(b){return K(b)?G(e,S,"whitespace")(b):S(b)}function S(b){return b===58?(l+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),k):b===45?(l+=1,k(b)):b===null||B(b)?E(b):C(b)}function k(b){return b===45?(e.enter("tableDelimiterFiller"),y(b)):C(b)}function y(b){return b===45?(e.consume(b),y):b===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),m):(e.exit("tableDelimiterFiller"),m(b))}function m(b){return K(b)?G(e,E,"whitespace")(b):E(b)}function E(b){return b===124?v(b):b===null||B(b)?!a||i!==l?C(b):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(b)):C(b)}function C(b){return n(b)}function d(b){return e.enter("tableRow"),N(b)}function N(b){return b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),N):b===null||B(b)?(e.exit("tableRow"),t(b)):K(b)?G(e,N,"whitespace")(b):(e.enter("data"),L(b))}function L(b){return b===null||b===124||re(b)?(e.exit("data"),N(b)):(e.consume(b),b===92?F:L)}function F(b){return b===92||b===124?(e.consume(b),L):L(b)}}function Qp(e,t){let n=-1,r=!0,i=0,l=[0,0,0,0],a=[0,0,0,0],o=!1,s=0,u,f,c;const h=new Hp;for(;++n<e.length;){const p=e[n],v=p[1];p[0]==="enter"?v.type==="tableHead"?(o=!1,s!==0&&(ni(h,t,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},h.add(n,0,[["enter",u,t]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],a=[0,n+1,0,0],o&&(o=!1,f={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},h.add(n,0,[["enter",f,t]])),i=v.type==="tableDelimiterRow"?2:f?3:1):i&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(l[1]!==0&&(a[0]=a[1],c=Bt(h,t,l,i,void 0,c),l=[0,0,0,0]),a[2]=n)):v.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(a[0]=a[1],c=Bt(h,t,l,i,void 0,c)),l=a,a=[l[1],n,0,0])):v.type==="tableHead"?(o=!0,s=n):v.type==="tableRow"||v.type==="tableDelimiterRow"?(s=n,l[1]!==0?(a[0]=a[1],c=Bt(h,t,l,i,n,c)):a[1]!==0&&(c=Bt(h,t,a,i,n,c)),i=0):i&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(a[3]=n)}for(s!==0&&ni(h,t,s,u,f),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=Jp(t.events,n))}return e}function Bt(e,t,n,r,i,l){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(l.end=Object.assign({},at(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const s=at(t.events,n[1]);if(l={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const u=at(t.events,n[2]),f=at(t.events,n[3]),c={type:o,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const v=n[2]+1,w=n[3]-n[2]-1;e.add(v,w,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},at(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function ni(e,t,n,r,i){const l=[],a=at(t.events,n);i&&(i.end=Object.assign({},a),l.push(["exit",i,t])),r.end=Object.assign({},a),l.push(["exit",r,t]),e.add(n+1,0,l)}function at(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Yp={name:"tasklistCheck",tokenize:Zp};function Gp(){return{text:{91:Yp}}}function Zp(e,t,n){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return re(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):n(s)}function a(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(s)}function o(s){return B(s)?t(s):K(s)?e.check({tokenize:Xp},t,n)(s):n(s)}}function Xp(e,t,n){return G(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function eh(e){return xi([Ep(),Pp(),Up(e),Kp(),Gp()])}const th={};function sd(e){const t=this,n=e||th,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(eh(n)),l.push(bp()),a.push(wp(n))}function nh(e){Mi(e,[/\r?\n|\r/g,rh])}function rh(){return{type:"break"}}function ud(){return function(e){nh(e)}}var ua={},ca=M.createContext(ua),ih=(e,t)=>A({},e,t),ah=()=>M.useContext(ca),Gn=M.createContext(()=>{});Gn.displayName="JVR.DispatchShowTools";function lh(){return M.useReducer(ih,ua)}function fa(){return M.useContext(Gn)}var pa=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(ca.Provider,{value:t,children:I.jsx(Gn.Provider,{value:n,children:r})})};pa.displayName="JVR.ShowTools";var ha={},da=M.createContext(ha),oh=(e,t)=>A({},e,t),Gt=()=>M.useContext(da),Zn=M.createContext(()=>{});Zn.displayName="JVR.DispatchExpands";function sh(){return M.useReducer(oh,ha)}function uh(){return M.useContext(Zn)}var ma=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(da.Provider,{value:t,children:I.jsx(Zn.Provider,{value:n,children:r})})};ma.displayName="JVR.Expands";var ga={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},ya=M.createContext(ga),ch=(e,t)=>A({},e,t),ae=()=>M.useContext(ya),Xn=M.createContext(()=>{});Xn.displayName="JVR.DispatchTypes";function fh(){return M.useReducer(ch,ga)}function ph(){return M.useContext(Xn)}function xa(e){var{initial:t,dispatch:n,children:r}=e;return I.jsx(ya.Provider,{value:t,children:I.jsx(Xn.Provider,{value:n,children:r})})}xa.displayName="JVR.Types";var hh=["style"];function va(e){var{style:t}=e,n=Y(e,hh),r=A({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);return I.jsx("svg",A({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:r},n,{children:I.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}va.displayName="JVR.TriangleArrow";var ka={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:I.jsx(va,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},ba=M.createContext(ka),dh=(e,t)=>A({},e,t),we=()=>M.useContext(ba),er=M.createContext(()=>{});er.displayName="JVR.DispatchSymbols";function mh(){return M.useReducer(dh,ka)}function gh(){return M.useContext(er)}var wa=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(ba.Provider,{value:t,children:I.jsx(er.Provider,{value:n,children:r})})};wa.displayName="JVR.Symbols";var Ca={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Sa=M.createContext(Ca),yh=(e,t)=>A({},e,t),Le=()=>M.useContext(Sa),tr=M.createContext(()=>{});tr.displayName="JVR.DispatchSection";function xh(){return M.useReducer(yh,Ca)}function vh(){return M.useContext(tr)}var Ea=e=>{var{initial:t,dispatch:n,children:r}=e;return I.jsx(Sa.Provider,{value:t,children:I.jsx(tr.Provider,{value:n,children:r})})};Ea.displayName="JVR.Section";var Aa={objectSortKeys:!1,indentWidth:15},nr=M.createContext(Aa);nr.displayName="JVR.Context";var Ta=M.createContext(()=>{});Ta.displayName="JVR.DispatchContext";function kh(e,t){return A({},e,t)}var et=()=>M.useContext(nr),Ia=e=>{var{children:t,initialState:n,initialTypes:r}=e,[i,l]=M.useReducer(kh,Object.assign({},Aa,n)),[a,o]=lh(),[s,u]=sh(),[f,c]=fh(),[h,p]=mh(),[v,w]=xh();return M.useEffect(()=>l(A({},n)),[n]),I.jsx(nr.Provider,{value:i,children:I.jsx(Ta.Provider,{value:l,children:I.jsx(pa,{initial:a,dispatch:o,children:I.jsx(ma,{initial:s,dispatch:u,children:I.jsx(xa,{initial:A({},f,r),dispatch:c,children:I.jsx(wa,{initial:h,dispatch:p,children:I.jsx(Ea,{initial:v,dispatch:w,children:t})})})})})})})};Ia.displayName="JVR.Provider";var bh=["isNumber","value","parentValue","keyName","keys"],wh=["as","render"],Ch=["as","render"],Sh=["as","render"],Eh=["as","style","render"],Ah=["as","render"],Th=["as","render"],Ih=["as","render"],Nh=["as","render"],Ln=e=>{var{Quote:t={}}=we(),{isNumber:n,value:r,parentValue:i,keyName:l,keys:a}=e,o=Y(e,bh);if(n)return null;var{as:s,render:u}=t,f=Y(t,wh),c=s||"span",h=A({},o,f);if(typeof h.children=="string"){var p=h.children.trim();h.children=p||void 0}var v={value:r,parentValue:i,keyName:l,keys:a||(l?[l]:[])},w=u&&typeof u=="function"&&u(h,v);return w||I.jsx(c,A({},h))};Ln.displayName="JVR.Quote";var It=e=>{var{ValueQuote:t={}}=we(),n=A({},(Ll(e),e)),{as:r,render:i}=t,l=Y(t,Ch),a=r||"span",o=A({},n,l),s=i&&typeof i=="function"&&i(o,{});return s||I.jsx(a,A({},o))};It.displayName="JVR.ValueQuote";var Na=e=>{var{value:t,parentValue:n,keyName:r,keys:i}=e,{Colon:l={}}=we(),{as:a,render:o}=l,s=Y(l,Sh),u=a||"span",f=o&&typeof o=="function"&&o(s,{value:t,parentValue:n,keyName:r,keys:i||(r?[r]:[])});return f||I.jsx(u,A({},s))};Na.displayName="JVR.Colon";var Fa=e=>{var{Arrow:t={}}=we(),n=Gt(),{expandKey:r,style:i,value:l,parentValue:a,keyName:o,keys:s}=e,u=!!n[r],{as:f,style:c,render:h}=t,p=Y(t,Eh),v=f||"span",w=h&&typeof h=="function",S=A({},p,{"data-expanded":u,style:A({},c,i)}),k={value:l,parentValue:a,keyName:o,keys:s||(o?[o]:[])},y=w&&h(S,k);return y||I.jsx(v,A({},p,{style:A({},c,i)}))};Fa.displayName="JVR.Arrow";var La=e=>{var{isBrackets:t,value:n,parentValue:r,keyName:i,keys:l}=e,{BracketsLeft:a={},BraceLeft:o={}}=we(),s={value:n,parentValue:r,keyName:i,keys:l||(i?[i]:[])};if(t){var{as:u,render:f}=a,c=Y(a,Ah),h=u||"span",p=f&&typeof f=="function"&&f(c,s);return p||I.jsx(h,A({},c))}var{as:v,render:w}=o,S=Y(o,Th),k=v||"span",y=w&&typeof w=="function"&&w(S,s);return y||I.jsx(k,A({},S))};La.displayName="JVR.BracketsOpen";var rr=e=>{var{isBrackets:t,isVisiable:n,value:r,parentValue:i,keyName:l,keys:a}=e,o={value:r,parentValue:i,keyName:l,keys:a||(l?[l]:[])};if(!n)return null;var{BracketsRight:s={},BraceRight:u={}}=we();if(t){var{as:f,render:c}=s,h=Y(s,Ih),p=f||"span",v=c&&typeof c=="function"&&c(h,o);return v||I.jsx(p,A({},h))}var{as:w,render:S}=u,k=Y(u,Nh),y=w||"span",m=S&&typeof S=="function"&&S(k,o);return m||I.jsx(y,A({},k))};rr.displayName="JVR.BracketsClose";var Ra=e=>{var t,{keyName:n,value:r,expandKey:i,parentValue:l,level:a,keys:o=[]}=e,s=Gt(),{collapsed:u,shouldExpandNodeInitially:f}=et(),c=typeof u=="boolean"?u:typeof u=="number"?a>u:!1,h=(t=s[i])!=null?t:f?!1:c,p=f&&f(!h,{value:r,keys:o,level:a,keyName:n,parentValue:l});if(f&&u===!1){if(s[i]===void 0&&!p)return null}else if(s[i]===void 0&&p)return null;var v=Object.keys(r).length;if(h||v===0)return null;var w={paddingLeft:4},S={keyName:n,value:r,keys:o,parentValue:l},k=Array.isArray(r),y=r instanceof Set;return I.jsx("div",{style:w,children:I.jsx(rr,A({isBrackets:k||y},S,{isVisiable:!0}))})};Ra.displayName="JVR.NestedClose";var Fh=["as","render"],Lh=["as","render"],Rh=["as","render"],jh=["as","render"],Dh=["as","render"],Ph=["as","render"],_h=["as","render"],zh=["as","render"],Oh=["as","render"],Mh=["as","render"],Bh=["as","render"],Vh=["as","render"],$h=["as","render"],Rn=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},ja=e=>{var{value:t,keyName:n}=e,{Set:r={},displayDataTypes:i}=ae(),l=t instanceof Set;if(!l||!i)return null;var{as:a,render:o}=r,s=Y(r,Fh),u=o&&typeof o=="function",f=u&&o(s,{type:"type",value:t,keyName:n});if(f)return f;var c=a||"span";return I.jsx(c,A({},s))};ja.displayName="JVR.SetComp";var Da=e=>{var{value:t,keyName:n}=e,{Map:r={},displayDataTypes:i}=ae(),l=t instanceof Map;if(!l||!i)return null;var{as:a,render:o}=r,s=Y(r,Lh),u=o&&typeof o=="function",f=u&&o(s,{type:"type",value:t,keyName:n});if(f)return f;var c=a||"span";return I.jsx(c,A({},s))};Da.displayName="JVR.MapComp";var _e={opacity:.75,paddingRight:4},Pa=e=>{var{children:t="",keyName:n,keys:r}=e,{Str:i={},displayDataTypes:l}=ae(),{shortenTextAfterLength:a=30,stringEllipsis:o="..."}=et(),{as:s,render:u}=i,f=Y(i,Rh),c=t,[h,p]=M.useState(a&&c.length>a);M.useEffect(()=>p(a&&c.length>a),[a]);var v=s||"span",w=A({},_e,i.style||{});a>0&&(f.style=A({},f.style,{cursor:c.length<=a?"initial":"pointer"}),c.length>a&&(f.onClick=()=>{p(!h)}));var S=h?""+c.slice(0,a)+o:c,k=u&&typeof u=="function",y=k&&u(A({},f,{style:w}),{type:"type",value:t,keyName:n,keys:r}),m=h?"w-rjv-value w-rjv-value-short":"w-rjv-value",E=k&&u(A({},f,{children:S,className:m}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(M.Fragment,{children:[l&&(y||I.jsx(v,A({},f,{style:w}))),E||I.jsxs(M.Fragment,{children:[I.jsx(It,{}),I.jsx(v,A({},f,{className:m,children:S})),I.jsx(It,{})]})]})};Pa.displayName="JVR.TypeString";var _a=e=>{var{children:t,keyName:n,keys:r}=e,{True:i={},displayDataTypes:l}=ae(),{as:a,render:o}=i,s=Y(i,jh),u=a||"span",f=A({},_e,i.style||{}),c=o&&typeof o=="function",h=c&&o(A({},s,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&o(A({},s,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(M.Fragment,{children:[l&&(h||I.jsx(u,A({},s,{style:f}))),p||I.jsx(u,A({},s,{className:"w-rjv-value",children:t?.toString()}))]})};_a.displayName="JVR.TypeTrue";var za=e=>{var{children:t,keyName:n,keys:r}=e,{False:i={},displayDataTypes:l}=ae(),{as:a,render:o}=i,s=Y(i,Dh),u=a||"span",f=A({},_e,i.style||{}),c=o&&typeof o=="function",h=c&&o(A({},s,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&o(A({},s,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(M.Fragment,{children:[l&&(h||I.jsx(u,A({},s,{style:f}))),p||I.jsx(u,A({},s,{className:"w-rjv-value",children:t?.toString()}))]})};za.displayName="JVR.TypeFalse";var Oa=e=>{var{children:t,keyName:n,keys:r}=e,{Float:i={},displayDataTypes:l}=ae(),{as:a,render:o}=i,s=Y(i,Ph),u=a||"span",f=A({},_e,i.style||{}),c=o&&typeof o=="function",h=c&&o(A({},s,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&o(A({},s,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(M.Fragment,{children:[l&&(h||I.jsx(u,A({},s,{style:f}))),p||I.jsx(u,A({},s,{className:"w-rjv-value",children:t?.toString()}))]})};Oa.displayName="JVR.TypeFloat";var Ma=e=>{var{children:t,keyName:n,keys:r}=e,{Int:i={},displayDataTypes:l}=ae(),{as:a,render:o}=i,s=Y(i,_h),u=a||"span",f=A({},_e,i.style||{}),c=o&&typeof o=="function",h=c&&o(A({},s,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&o(A({},s,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(M.Fragment,{children:[l&&(h||I.jsx(u,A({},s,{style:f}))),p||I.jsx(u,A({},s,{className:"w-rjv-value",children:t?.toString()}))]})};Ma.displayName="JVR.TypeInt";var Ba=e=>{var{children:t,keyName:n,keys:r}=e,{Bigint:i={},displayDataTypes:l}=ae(),{as:a,render:o}=i,s=Y(i,zh),u=a||"span",f=A({},_e,i.style||{}),c=o&&typeof o=="function",h=c&&o(A({},s,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&o(A({},s,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(M.Fragment,{children:[l&&(h||I.jsx(u,A({},s,{style:f}))),p||I.jsx(u,A({},s,{className:"w-rjv-value",children:Rn(t?.toString())}))]})};Ba.displayName="JVR.TypeFloat";var Va=e=>{var{children:t,keyName:n,keys:r}=e,{Url:i={},displayDataTypes:l}=ae(),{as:a,render:o}=i,s=Y(i,Oh),u=a||"span",f=A({},_e,i.style),c=o&&typeof o=="function",h=c&&o(A({},s,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&o(A({},s,{children:t?.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(M.Fragment,{children:[l&&(h||I.jsx(u,A({},s,{style:f}))),p||I.jsxs("a",A({href:t?.href,target:"_blank"},s,{className:"w-rjv-value",children:[I.jsx(It,{}),t?.href,I.jsx(It,{})]}))]})};Va.displayName="JVR.TypeUrl";var $a=e=>{var{children:t,keyName:n,keys:r}=e,{Date:i={},displayDataTypes:l}=ae(),{as:a,render:o}=i,s=Y(i,Mh),u=a||"span",f=A({},_e,i.style||{}),c=o&&typeof o=="function",h=c&&o(A({},s,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=t instanceof Date?t.toLocaleString():t,v=c&&o(A({},s,{children:p,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(M.Fragment,{children:[l&&(h||I.jsx(u,A({},s,{style:f}))),v||I.jsx(u,A({},s,{className:"w-rjv-value",children:p}))]})};$a.displayName="JVR.TypeDate";var Ua=e=>{var{children:t,keyName:n,keys:r}=e,{Undefined:i={},displayDataTypes:l}=ae(),{as:a,render:o}=i,s=Y(i,Bh),u=a||"span",f=A({},_e,i.style||{}),c=o&&typeof o=="function",h=c&&o(A({},s,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&o(A({},s,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(M.Fragment,{children:[l&&(h||I.jsx(u,A({},s,{style:f}))),p]})};Ua.displayName="JVR.TypeUndefined";var Ha=e=>{var{children:t,keyName:n,keys:r}=e,{Null:i={},displayDataTypes:l}=ae(),{as:a,render:o}=i,s=Y(i,Vh),u=a||"span",f=A({},_e,i.style||{}),c=o&&typeof o=="function",h=c&&o(A({},s,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&o(A({},s,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(M.Fragment,{children:[l&&(h||I.jsx(u,A({},s,{style:f}))),p]})};Ha.displayName="JVR.TypeNull";var qa=e=>{var{children:t,keyName:n,keys:r}=e,{Nan:i={},displayDataTypes:l}=ae(),{as:a,render:o}=i,s=Y(i,$h),u=a||"span",f=A({},_e,i.style||{}),c=o&&typeof o=="function",h=c&&o(A({},s,{style:f}),{type:"type",value:t,keyName:n,keys:r}),p=c&&o(A({},s,{children:t?.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:n,keys:r});return I.jsxs(M.Fragment,{children:[l&&(h||I.jsx(u,A({},s,{style:f}))),p]})};qa.displayName="JVR.TypeNan";var Uh=e=>Number(e)===e&&e%1!==0||isNaN(e),Ja=e=>{var{value:t,keyName:n,keys:r}=e,i={keyName:n,keys:r};return t instanceof URL?I.jsx(Va,A({},i,{children:t})):typeof t=="string"?I.jsx(Pa,A({},i,{children:t})):t===!0?I.jsx(_a,A({},i,{children:t})):t===!1?I.jsx(za,A({},i,{children:t})):t===null?I.jsx(Ha,A({},i,{children:t})):t===void 0?I.jsx(Ua,A({},i,{children:t})):t instanceof Date?I.jsx($a,A({},i,{children:t})):typeof t=="number"&&isNaN(t)?I.jsx(qa,A({},i,{children:t})):typeof t=="number"&&Uh(t)?I.jsx(Oa,A({},i,{children:t})):typeof t=="bigint"?I.jsx(Ba,A({},i,{children:t})):typeof t=="number"?I.jsx(Ma,A({},i,{children:t})):null};Ja.displayName="JVR.Value";function We(e,t,n){var r=gh(),i=[e.className,t.className].filter(Boolean).join(" "),l=A({},e,t,{className:i,style:A({},e.style,t.style),children:t.children||e.children});M.useEffect(()=>r({[n]:l}),[t])}function Te(e,t,n){var r=ph(),i=[e.className,t.className].filter(Boolean).join(" "),l=A({},e,t,{className:i,style:A({},e.style,t.style),children:t.children||e.children});M.useEffect(()=>r({[n]:l}),[t])}function ct(e,t,n){var r=vh(),i=[e.className,t.className].filter(Boolean).join(" "),l=A({},e,t,{className:i,style:A({},e.style,t.style),children:t.children||e.children});M.useEffect(()=>r({[n]:l}),[t])}var Hh=["as","render"],Ka=e=>{var{KeyName:t={}}=Le();return ct(t,e,"KeyName"),null};Ka.displayName="JVR.KeyName";var Wa=e=>{var{children:t,value:n,parentValue:r,keyName:i,keys:l}=e,a=typeof t=="number",o={color:a?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:s={}}=Le(),{as:u,render:f}=s,c=Y(s,Hh);c.style=A({},c.style,o);var h=u||"span",p=f&&typeof f=="function"&&f(A({},c,{children:t}),{value:n,parentValue:r,keyName:i,keys:l||(i?[i]:[])});return p||I.jsx(h,A({},c,{children:t}))};Wa.displayName="JVR.KeyNameComp";var qh=["children","value","parentValue","keyName","keys"],Jh=["as","render","children"],Qa=e=>{var{Row:t={}}=Le();return ct(t,e,"Row"),null};Qa.displayName="JVR.Row";var Ya=e=>{var{children:t,value:n,parentValue:r,keyName:i,keys:l}=e,a=Y(e,qh),{Row:o={}}=Le(),{as:s,render:u}=o,f=Y(o,Jh),c=s||"div",h=u&&typeof u=="function"&&u(A({},a,f,{children:t}),{value:n,keyName:i,parentValue:r,keys:l});return h||I.jsx(c,A({},a,f,{children:t}))};Ya.displayName="JVR.RowComp";function Kh(e){var t=M.useRef();return M.useEffect(()=>{t.current=e}),t.current}function Wh(e){var{value:t,highlightUpdates:n,highlightContainer:r}=e,i=Kh(t),l=M.useMemo(()=>{if(!n||i===void 0)return!1;if(typeof t!=typeof i)return!0;if(typeof t=="number")return isNaN(t)&&isNaN(i)?!1:t!==i;if(Array.isArray(t)!==Array.isArray(i))return!0;if(typeof t=="object"||typeof t=="function")return!1;if(t!==i)return!0},[n,t]);M.useEffect(()=>{r&&r.current&&l&&"animate"in r.current&&r.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[l,t,r])}var Qh=["keyName","value","parentValue","expandKey","keys","beforeCopy"],Yh=["as","render"],ir=e=>{var{keyName:t,value:n,parentValue:r,expandKey:i,keys:l,beforeCopy:a}=e,o=Y(e,Qh),{onCopied:s,enableClipboard:u,beforeCopy:f}=et(),c=ah(),h=c[i],[p,v]=M.useState(!1),{Copied:w={}}=Le(),S=w?.beforeCopy;if(u===!1||!h)return null;var k=L=>{L.stopPropagation();var F="";typeof n=="number"&&n===1/0?F="Infinity":typeof n=="number"&&isNaN(n)?F="NaN":typeof n=="bigint"?F=Rn(n):n instanceof Date?F=n.toLocaleString():F=JSON.stringify(n,(z,J)=>typeof J=="bigint"?Rn(J):J,2);var b=a||S||f;b&&typeof b=="function"&&(F=b(F,t,n,r,i,l)),s&&s(F,n),v(!0);var D=navigator.clipboard||{writeText(z){return new Promise((J,O)=>{var P=document.createElement("textarea");P.style.position="absolute",P.style.opacity="0",P.style.left="-99999999px",P.value=z,document.body.appendChild(P),P.select(),document.execCommand("copy")?J():O(),P.remove()})}};D.writeText(F).then(()=>{var z=setTimeout(()=>{v(!1),clearTimeout(z)},3e3)}).catch(z=>{})},y={style:{display:"inline-flex"},fill:p?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:k},{render:m}=w,E=Y(w,Yh),C=A({},E,o,y,{style:A({},E.style,o.style,y.style)}),d=m&&typeof m=="function",N=d&&m(A({},C,{"data-copied":p}),{value:n,keyName:t,keys:l,parentValue:r});return N||(p?I.jsx("svg",A({viewBox:"0 0 32 36"},C,{children:I.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):I.jsx("svg",A({viewBox:"0 0 32 36"},C,{children:I.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};ir.displayName="JVR.Copied";function Ga(){var e=M.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var Za=e=>{var t,{keyName:n,value:r,expandKey:i="",level:l,keys:a=[],parentValue:o}=e,s=Gt(),{objectSortKeys:u,indentWidth:f,collapsed:c,shouldExpandNodeInitially:h}=et(),p=typeof c=="boolean"?c:typeof c=="number"?l>c:!1,v=(t=s[i])!=null?t:h?!1:p,w=h&&h(!v,{value:r,keys:a,level:l,keyName:n,parentValue:o});if(h&&c===!1){if(s[i]===void 0&&!w)return null}else if(s[i]===void 0&&w)return null;if(v)return null;var S=Array.isArray(r),k=S?Object.entries(r).map(m=>[Number(m[0]),m[1]]):Object.entries(r);u&&(k=u===!0?k.sort((m,E)=>{var[C]=m,[d]=E;return typeof C=="string"&&typeof d=="string"?C.localeCompare(d):0}):k.sort((m,E)=>{var[C,d]=m,[N,L]=E;return typeof C=="string"&&typeof N=="string"?u(C,N,d,L):0}));var y={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:f,marginLeft:6};return I.jsx("div",{className:"w-rjv-wrap",style:y,children:k.map((m,E)=>{var[C,d]=m;return I.jsx(Xa,{parentValue:r,keyName:C,keys:[...a,C],value:d,level:l},E)})})};Za.displayName="JVR.KeyValues";var ar=e=>{var{keyName:t,parentValue:n,keys:r,value:i}=e,{highlightUpdates:l}=et(),a=typeof t=="number",o=M.useRef(null);Wh({value:i,highlightUpdates:l,highlightContainer:o});var s={keyName:t,value:i,keys:r,parentValue:n};return I.jsxs(M.Fragment,{children:[I.jsxs("span",{ref:o,children:[I.jsx(Ln,A({isNumber:a,"data-placement":"left"},s)),I.jsx(Wa,A({},s,{children:t})),I.jsx(Ln,A({isNumber:a,"data-placement":"right"},s))]}),I.jsx(Na,A({},s))]})};ar.displayName="JVR.KayName";var Xa=e=>{var{keyName:t,value:n,parentValue:r,level:i=0,keys:l=[]}=e,a=fa(),o=Ga(),s=Array.isArray(n),u=n instanceof Set,f=n instanceof Map,c=n instanceof Date,h=n instanceof URL,p=n&&typeof n=="object"&&!s&&!u&&!f&&!c&&!h,v=p||s||u||f;if(v){var w=u?Array.from(n):f?Object.fromEntries(n):n;return I.jsx(lr,{keyName:t,value:w,parentValue:r,initialValue:n,keys:l,level:i+1})}var S={onMouseEnter:()=>a({[o]:!0}),onMouseLeave:()=>a({[o]:!1})};return I.jsxs(Ya,A({className:"w-rjv-line",value:n,keyName:t,keys:l,parentValue:r},S,{children:[I.jsx(ar,{keyName:t,value:n,keys:l,parentValue:r}),I.jsx(Ja,{keyName:t,value:n,keys:l}),I.jsx(ir,{keyName:t,value:n,keys:l,parentValue:r,expandKey:o})]}))};Xa.displayName="JVR.KeyValuesItem";var Gh=["value","keyName"],Zh=["as","render"],el=e=>{var{CountInfoExtra:t={}}=Le();return ct(t,e,"CountInfoExtra"),null};el.displayName="JVR.CountInfoExtra";var tl=e=>{var{value:t={},keyName:n}=e,r=Y(e,Gh),{CountInfoExtra:i={}}=Le(),{as:l,render:a}=i,o=Y(i,Zh);if(!a&&!o.children)return null;var s=l||"span",u=a&&typeof a=="function",f=A({},o,r),c=u&&a(f,{value:t,keyName:n});return c||I.jsx(s,A({},f))};tl.displayName="JVR.CountInfoExtraComps";var Xh=["value","keyName"],ed=["as","render"],nl=e=>{var{CountInfo:t={}}=Le();return ct(t,e,"CountInfo"),null};nl.displayName="JVR.CountInfo";var rl=e=>{var{value:t={},keyName:n}=e,r=Y(e,Xh),{displayObjectSize:i}=et(),{CountInfo:l={}}=Le();if(!i)return null;var{as:a,render:o}=l,s=Y(l,ed),u=a||"span";s.style=A({},s.style,e.style);var f=Object.keys(t).length;s.children||(s.children=f+" item"+(f===1?"":"s"));var c=A({},s,r),h=o&&typeof o=="function",p=h&&o(A({},c,{"data-length":f}),{value:t,keyName:n});return p||I.jsx(u,A({},c))};rl.displayName="JVR.CountInfoComp";var td=["as","render"],il=e=>{var{Ellipsis:t={}}=Le();return ct(t,e,"Ellipsis"),null};il.displayName="JVR.Ellipsis";var al=e=>{var{isExpanded:t,value:n,keyName:r}=e,{Ellipsis:i={}}=Le(),{as:l,render:a}=i,o=Y(i,td),s=l||"span",u=a&&typeof a=="function"&&a(A({},o,{"data-expanded":t}),{value:n,keyName:r});return u||(!t||typeof n=="object"&&Object.keys(n).length==0?null:I.jsx(s,A({},o)))};al.displayName="JVR.EllipsisComp";var ll=e=>{var t,{keyName:n,expandKey:r,keys:i=[],initialValue:l,value:a,parentValue:o,level:s}=e,u=Gt(),f=uh(),{onExpand:c,collapsed:h,shouldExpandNodeInitially:p}=et(),v=typeof h=="boolean"?h:typeof h=="number"?s>h:!1,w=(t=u[r])!=null?t:p?!1:v,S=p&&p(!w,{value:a,keys:i,level:s,keyName:n,parentValue:o});u[r]===void 0&&p&&(w=!S);var k=()=>{var D={expand:!w,value:a,keyid:r,keyName:n};c&&c(D),f({[r]:D.expand})},y={display:"inline-flex",alignItems:"center"},m={transform:"rotate("+(w?"-90":"0")+"deg)",transition:"all 0.3s"},E=Object.keys(a).length,C=typeof a=="object",d=Array.isArray(a),N=a instanceof Set,L=E!==0&&(d||N||C),F={style:y};L&&(F.onClick=k);var b={keyName:n,value:a,keys:i,parentValue:o};return I.jsxs("span",A({},F,{children:[L&&I.jsx(Fa,A({style:m,expandKey:r},b)),(n||typeof n=="number")&&I.jsx(ar,A({},b)),I.jsx(ja,{value:l,keyName:n}),I.jsx(Da,{value:l,keyName:n}),I.jsx(La,A({isBrackets:d||N},b)),I.jsx(al,{keyName:n,value:a,isExpanded:w}),I.jsx(rr,A({isVisiable:w||!L,isBrackets:d||N},b)),I.jsx(rl,{value:a,keyName:n}),I.jsx(tl,{value:a,keyName:n}),I.jsx(ir,{keyName:n,value:a,expandKey:r,parentValue:o,keys:i})]}))};ll.displayName="JVR.NestedOpen";var nd=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],lr=M.forwardRef((e,t)=>{var{className:n="",parentValue:r,level:i=1,value:l,initialValue:a,keys:o,keyName:s}=e,u=Y(e,nd),f=fa(),c=Ga(),h=[n,"w-rjv-inner"].filter(Boolean).join(" "),p={onMouseEnter:()=>f({[c]:!0}),onMouseLeave:()=>f({[c]:!1})};return I.jsxs("div",A({className:h,ref:t},u,p,{children:[I.jsx(ll,{expandKey:c,value:l,level:i,keys:o,parentValue:r,keyName:s,initialValue:a}),I.jsx(Za,{expandKey:c,value:l,level:i,keys:o,parentValue:r,keyName:s}),I.jsx(Ra,{expandKey:c,value:l,level:i,keys:o,parentValue:r,keyName:s})]}))});lr.displayName="JVR.Container";var ol=e=>{var{BraceLeft:t={}}=we();return We(t,e,"BraceLeft"),null};ol.displayName="JVR.BraceLeft";var sl=e=>{var{BraceRight:t={}}=we();return We(t,e,"BraceRight"),null};sl.displayName="JVR.BraceRight";var ul=e=>{var{BracketsLeft:t={}}=we();return We(t,e,"BracketsLeft"),null};ul.displayName="JVR.BracketsLeft";var cl=e=>{var{BracketsRight:t={}}=we();return We(t,e,"BracketsRight"),null};cl.displayName="JVR.BracketsRight";var fl=e=>{var{Arrow:t={}}=we();return We(t,e,"Arrow"),null};fl.displayName="JVR.Arrow";var pl=e=>{var{Colon:t={}}=we();return We(t,e,"Colon"),null};pl.displayName="JVR.Colon";var hl=e=>{var{Quote:t={}}=we();return We(t,e,"Quote"),null};hl.displayName="JVR.Quote";var dl=e=>{var{ValueQuote:t={}}=we();return We(t,e,"ValueQuote"),null};dl.displayName="JVR.ValueQuote";var ml=e=>{var{Bigint:t={}}=ae();return Te(t,e,"Bigint"),null};ml.displayName="JVR.Bigint";var gl=e=>{var{Date:t={}}=ae();return Te(t,e,"Date"),null};gl.displayName="JVR.Date";var yl=e=>{var{False:t={}}=ae();return Te(t,e,"False"),null};yl.displayName="JVR.False";var xl=e=>{var{Float:t={}}=ae();return Te(t,e,"Float"),null};xl.displayName="JVR.Float";var vl=e=>{var{Int:t={}}=ae();return Te(t,e,"Int"),null};vl.displayName="JVR.Int";var kl=e=>{var{Map:t={}}=ae();return Te(t,e,"Map"),null};kl.displayName="JVR.Map";var bl=e=>{var{Nan:t={}}=ae();return Te(t,e,"Nan"),null};bl.displayName="JVR.Nan";var wl=e=>{var{Null:t={}}=ae();return Te(t,e,"Null"),null};wl.displayName="JVR.Null";var Cl=e=>{var{Set:t={}}=ae();return Te(t,e,"Set"),null};Cl.displayName="JVR.Set";var Sl=e=>{var{Str:t={}}=ae();return Te(t,e,"Str"),null};Sl.displayName="JVR.StringText";var El=e=>{var{True:t={}}=ae();return Te(t,e,"True"),null};El.displayName="JVR.True";var Al=e=>{var{Undefined:t={}}=ae();return Te(t,e,"Undefined"),null};Al.displayName="JVR.Undefined";var Tl=e=>{var{Url:t={}}=ae();return Te(t,e,"Url"),null};Tl.displayName="JVR.Url";var Il=e=>{var{Copied:t={}}=Le();return ct(t,e,"Copied"),null};Il.displayName="JVR.Copied";var rd=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied","beforeCopy"],ne=M.forwardRef((e,t)=>{var{className:n="",style:r,value:i,children:l,collapsed:a=!1,shouldExpandNodeInitially:o,indentWidth:s=15,displayObjectSize:u=!0,shortenTextAfterLength:f=30,stringEllipsis:c,highlightUpdates:h=!0,enableClipboard:p=!0,displayDataTypes:v=!0,objectSortKeys:w=!1,onExpand:S,onCopied:k,beforeCopy:y}=e,m=Y(e,rd),E=A({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},r),C=["w-json-view-container","w-rjv",n].filter(Boolean).join(" ");return I.jsxs(Ia,{initialState:{value:i,objectSortKeys:w,indentWidth:s,shouldExpandNodeInitially:a===!1?o:void 0,displayObjectSize:u,collapsed:a,enableClipboard:p,shortenTextAfterLength:f,stringEllipsis:c,highlightUpdates:h,onCopied:k,onExpand:S,beforeCopy:y},initialTypes:{displayDataTypes:v},children:[I.jsx(lr,A({value:i},m,{ref:t,className:C,style:E})),l]})});ne.Bigint=ml;ne.Date=gl;ne.False=yl;ne.Float=xl;ne.Int=vl;ne.Map=kl;ne.Nan=bl;ne.Null=wl;ne.Set=Cl;ne.String=Sl;ne.True=El;ne.Undefined=Al;ne.Url=Tl;ne.ValueQuote=dl;ne.Arrow=fl;ne.Colon=pl;ne.Quote=hl;ne.Ellipsis=il;ne.BraceLeft=ol;ne.BraceRight=sl;ne.BracketsLeft=ul;ne.BracketsRight=cl;ne.Copied=Il;ne.CountInfo=nl;ne.CountInfoExtra=el;ne.KeyName=Ka;ne.Row=Qa;ne.displayName="JVR.JsonView";export{ne as J,od as M,Y as _,ld as a,sd as b,ud as c,ad as r};