@xopcai/xopc 0.0.460 → 0.0.463

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 (319) hide show
  1. package/dist/browser-ext/_locales/en/messages.json +1 -0
  2. package/dist/browser-ext/_locales/zh_CN/messages.json +1 -0
  3. package/dist/browser-ext/dist/assets/{auth-CQmxIyWw.js → auth-YPMDpWOW.js} +32 -1
  4. package/dist/browser-ext/dist/assets/{pcm-capture-worklet-CGN9Mlhg.js → pcm-capture-worklet-Df5TcFw4.js} +4 -2
  5. package/dist/browser-ext/dist/background.js +24 -19
  6. package/dist/browser-ext/dist/sidepanel.html +1 -1
  7. package/dist/browser-ext/dist/sidepanel.js +10 -9
  8. package/dist/browser-ext/manifest.json +1 -1
  9. package/dist/extensions/telegram/xopc.extension.json +1 -1
  10. package/dist/gateway/static/root/assets/agent-plugin-dialog-C_rlXuEe.js +1 -0
  11. package/dist/gateway/static/root/assets/{agents-CGUdvmIT.js → agents-DC0lHtl5.js} +3 -3
  12. package/dist/gateway/static/root/assets/{apps-page-M2XD1Pzu.js → apps-page-D1qzENN_.js} +1 -1
  13. package/dist/gateway/static/root/assets/{automation-task-card-CiJmJ7_h.js → automation-task-card-CJbIHRxN.js} +1 -1
  14. package/dist/gateway/static/root/assets/{automations-page-CVjgENMO.js → automations-page-HYFnPiNG.js} +1 -1
  15. package/dist/gateway/static/root/assets/{automations-workspace-CGPWyL0P.js → automations-workspace-JCQ1IXFk.js} +2 -2
  16. package/dist/gateway/static/root/assets/{block-editor-CmnkluMF.js → block-editor-DrZyRQQ0.js} +5 -5
  17. package/dist/gateway/static/root/assets/{capabilities-DDqDvCBs.js → capabilities-Dr-vvMez.js} +1 -1
  18. package/dist/gateway/static/root/assets/capabilities-hSb-qEgL.js +1 -0
  19. package/dist/gateway/static/root/assets/capabilities-page-kPv2dOzf.js +2 -0
  20. package/dist/gateway/static/root/assets/{capabilities-settings-panel-CvF8VRTv.js → capabilities-settings-panel-B08mjrGB.js} +1 -1
  21. package/dist/gateway/static/root/assets/{channels-BDVQ6Z7A.js → channels-B--IHNs4.js} +1 -1
  22. package/dist/gateway/static/root/assets/{chat-chart-block-stPJEZ90.js → chat-chart-block-ClCZyIi0.js} +1 -1
  23. package/dist/gateway/static/root/assets/chat-page-CalELOKj.js +71 -0
  24. package/dist/gateway/static/root/assets/{chat-terminal-dock-B4uA_W6R.js → chat-terminal-dock-eneTvxV3.js} +1 -1
  25. package/dist/gateway/static/root/assets/{connectors-page-DyzDVVfz.js → connectors-page-B9mpz_Rt.js} +1 -1
  26. package/dist/gateway/static/root/assets/constants-Bg1wM2nv.js +1 -0
  27. package/dist/gateway/static/root/assets/diagnostics-Bo0Z42P_.js +1 -0
  28. package/dist/gateway/static/root/assets/{extension-debug-page-BPwRrP3L.js → extension-debug-page-Bn_5xu_M.js} +1 -1
  29. package/dist/gateway/static/root/assets/{extension-iframe-host-DIH4TcdH.js → extension-iframe-host-Vs6USa0c.js} +1 -1
  30. package/dist/gateway/static/root/assets/{extension-message-router-C9JDpo_7.js → extension-message-router-GIekDj_w.js} +1 -1
  31. package/dist/gateway/static/root/assets/{extension-page-CLDoL5N8.js → extension-page-C_3bIjSB.js} +1 -1
  32. package/dist/gateway/static/root/assets/{extension-provider-BPIoHw4r.js → extension-provider-D-LolObs.js} +1 -1
  33. package/dist/gateway/static/root/assets/{extension-settings-page-BO_UKeG8.js → extension-settings-page-BV51dk16.js} +1 -1
  34. package/dist/gateway/static/root/assets/home-page-DefKShSW.js +8 -0
  35. package/dist/gateway/static/root/assets/index-CChzK_5b.css +1 -0
  36. package/dist/gateway/static/root/assets/index-DUo6H0PC.js +11 -0
  37. package/dist/gateway/static/root/assets/{local-app-workbench-page-D8oqDDAn.js → local-app-workbench-page-CfnixDO3.js} +1 -1
  38. package/dist/gateway/static/root/assets/{markdown-view-BlxIaCCQ.js → markdown-view-CNJaAdNN.js} +39 -39
  39. package/dist/gateway/static/root/assets/mcp-conversation-setup-page-DCIEL5bA.js +1 -0
  40. package/dist/gateway/static/root/assets/note-detail-panel-DsXb1qjW.js +7 -0
  41. package/dist/gateway/static/root/assets/note-image-lightbox-D6mvMSKr.js +1 -0
  42. package/dist/gateway/static/root/assets/{notes-api-CdXA-g9r.js → notes-api-BOIM9Q_D.js} +1 -1
  43. package/dist/gateway/static/root/assets/notes-page-BTpiOw67.js +8 -0
  44. package/dist/gateway/static/root/assets/{page-context-capture-button-Dibmspef.js → page-context-capture-button-B_Vdo2Ai.js} +1 -1
  45. package/dist/gateway/static/root/assets/pcm-capture-worklet-CpXsv44v.js +1 -0
  46. package/dist/gateway/static/root/assets/{personal-page-BwfyW7Hx.js → personal-page-I3IGVSJh.js} +1 -1
  47. package/dist/gateway/static/root/assets/{personal-profile-settings-CQhZjoK6.js → personal-profile-settings-C4CxmQLQ.js} +1 -1
  48. package/dist/gateway/static/root/assets/{personal-settings-panel-peD05ktj.js → personal-settings-panel-CnxI2TL0.js} +1 -1
  49. package/dist/gateway/static/root/assets/{plugin-details-dialog-nSDw8sfo.js → plugin-details-dialog-F08k_k2u.js} +1 -1
  50. package/dist/gateway/static/root/assets/{product-automation-feedback-D51I7Lg3.js → product-automation-feedback-CGso8wGv.js} +1 -1
  51. package/dist/gateway/static/root/assets/{product-preview-content-WkF2j_c-.js → product-preview-content-Dgtb4LF7.js} +1 -1
  52. package/dist/gateway/static/root/assets/product-preview-modal-C35EWUps.js +2 -0
  53. package/dist/gateway/static/root/assets/project-detail-page-Dy46uSEt.js +7 -0
  54. package/dist/gateway/static/root/assets/recording-upload-CFX7CANT.js +1 -0
  55. package/dist/gateway/static/root/assets/route-preload-ChTaYgpA.js +2 -0
  56. package/dist/gateway/static/root/assets/routine-panel-KH1VaEdC.js +2 -0
  57. package/dist/gateway/static/root/assets/{service-recommendation-list-DDlMyPvC.js → service-recommendation-list-BmRtbJz2.js} +1 -1
  58. package/dist/gateway/static/root/assets/session-manager-63NaXb1s.js +25 -0
  59. package/dist/gateway/static/root/assets/{settings-page-BHImcF1q.js → settings-page-C39lKVRv.js} +1 -1
  60. package/dist/gateway/static/root/assets/{share-preview-page-fV5USZb1.js → share-preview-page-Cqy-7-rd.js} +1 -1
  61. package/dist/gateway/static/root/assets/{shares-settings-sl40lqND.js → shares-settings-BDr50uTV.js} +1 -1
  62. package/dist/gateway/static/root/assets/{skills-page-FTd0Z7Ey.js → skills-page-DReUQ4Ug.js} +1 -1
  63. package/dist/gateway/static/root/assets/star-CnYNmpLd.js +1 -0
  64. package/dist/gateway/static/root/assets/task-detail-page-D1dNWTnP.js +3 -0
  65. package/dist/gateway/static/root/assets/{task-result-evidence-CSJeB9AH.js → task-result-evidence-CW_tN93T.js} +1 -1
  66. package/dist/gateway/static/root/assets/{use-composer-attachments-CO7XLI4x.js → use-composer-attachments-Xn6eUus2.js} +1 -1
  67. package/dist/gateway/static/root/assets/{use-file-preview-expanded-BXXeXnT0.js → use-file-preview-expanded-D0IBFhM9.js} +1 -1
  68. package/dist/gateway/static/root/assets/use-realtime-voice-B5IsKrRW.js +1 -0
  69. package/dist/gateway/static/root/assets/{use-workspace-tree-D27u-eoX.js → use-workspace-tree-7X2ydgS8.js} +1 -1
  70. package/dist/gateway/static/root/assets/{voice-settings-BiqJ0tlf.js → voice-settings-57pwZeKD.js} +1 -1
  71. package/dist/gateway/static/root/assets/{work-discovery-overlay-UvWbDUXi.js → work-discovery-overlay-BJ15p4rH.js} +1 -1
  72. package/dist/gateway/static/root/assets/{work-discovery-page-BM1HsYz6.js → work-discovery-page-8XciWNs5.js} +1 -1
  73. package/dist/gateway/static/root/assets/workspace-api-Dd_UDfeo.js +2 -0
  74. package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-NffP-UXC.js → workspace-file-preview-dialog-Clj9hMj5.js} +1 -1
  75. package/dist/gateway/static/root/assets/{workspace-preview-store-Do31QQH5.js → workspace-preview-store-imhtuEIP.js} +1 -1
  76. package/dist/gateway/static/root/index.html +30 -29
  77. package/dist/package.js +1 -1
  78. package/dist/packages/gateway-contract/src/follow-ups.js +97 -0
  79. package/dist/packages/gateway-contract/src/home.js +1 -0
  80. package/dist/packages/gateway-contract/src/index.js +4 -0
  81. package/dist/packages/gateway-contract/src/observation-starters.js +95 -0
  82. package/dist/packages/gateway-contract/src/observation.js +7 -0
  83. package/dist/packages/gateway-contract/src/task-research-result.js +3 -0
  84. package/dist/src/agent/agent-manager.d.ts +1 -1
  85. package/dist/src/agent/background-review/prompts.d.ts +1 -0
  86. package/dist/src/agent/background-review/prompts.js +7 -1
  87. package/dist/src/agent/background-review/run-background-review.js +85 -7
  88. package/dist/src/agent/coding/run-verification.d.ts +14 -7
  89. package/dist/src/agent/coding/run-verification.js +28 -6
  90. package/dist/src/agent/context/coordinator.js +1 -1
  91. package/dist/src/agent/context/deep-recall.js +1 -1
  92. package/dist/src/agent/embedded/execution-tool-policy.d.ts +1 -0
  93. package/dist/src/agent/embedded/execution-tool-policy.js +4 -2
  94. package/dist/src/agent/embedded/run-for-session.d.ts +2 -0
  95. package/dist/src/agent/embedded/run-for-session.js +9 -0
  96. package/dist/src/agent/embedded/run-turn.js +63 -14
  97. package/dist/src/agent/embedded/session-runner.js +2 -2
  98. package/dist/src/agent/embedded/types.d.ts +2 -0
  99. package/dist/src/agent/external-tools/gateway-tools.js +8 -1
  100. package/dist/src/agent/inbound/turn-dispatcher.d.ts +1 -0
  101. package/dist/src/agent/inbound/turn-dispatcher.js +1 -0
  102. package/dist/src/agent/mcp/connection-setup.js +46 -42
  103. package/dist/src/agent/mcp/conversation-setup.js +13 -8
  104. package/dist/src/agent/mcp/discovery.d.ts +22 -1
  105. package/dist/src/agent/mcp/discovery.js +19 -3
  106. package/dist/src/agent/mcp/managed-discovery.d.ts +8 -0
  107. package/dist/src/agent/mcp/managed-discovery.js +77 -0
  108. package/dist/src/agent/mcp/tool-catalog.js +1 -1
  109. package/dist/src/agent/prompt/conversational-configuration-guide.js +1 -1
  110. package/dist/src/agent/service/direct-turn-helpers.d.ts +1 -0
  111. package/dist/src/agent/service/direct-turn-helpers.js +17 -2
  112. package/dist/src/agent/service/process-direct-streaming.d.ts +1 -0
  113. package/dist/src/agent/service/process-direct-streaming.js +1 -0
  114. package/dist/src/agent/service.d.ts +1 -1
  115. package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.d.ts +6 -2
  116. package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +10 -7
  117. package/dist/src/agent/tasks/task-judge-service.js +1 -0
  118. package/dist/src/agent/tool-manuals/browser.d.ts +1 -1
  119. package/dist/src/agent/tool-manuals/browser.js +3 -1
  120. package/dist/src/agent/tool-manuals/xopc-configuration.d.ts +1 -1
  121. package/dist/src/agent/tool-manuals/xopc-configuration.js +12 -4
  122. package/dist/src/agent/tools/factory.d.ts +1 -1
  123. package/dist/src/agent/tools/factory.js +1 -1
  124. package/dist/src/agent/tools/personal-request-tool.js +36 -4
  125. package/dist/src/agent/tools/personal-task-tool.d.ts +7 -1
  126. package/dist/src/agent/tools/personal-task-tool.js +68 -3
  127. package/dist/src/agent/tools/session-search-tool.js +1 -1
  128. package/dist/src/agent/tools/task-collaboration-tool.d.ts +1 -1
  129. package/dist/src/agent/tools/task-collaboration-tool.js +54 -3
  130. package/dist/src/agent/tools/task-result-tool.js +31 -0
  131. package/dist/src/agent/tools/xopc-use-tool.js +50 -19
  132. package/dist/src/automations/capabilities/write.d.ts +2 -2
  133. package/dist/src/automations/domain/validation.d.ts +4 -4
  134. package/dist/src/automations/draft/automation-draft-validator.d.ts +1 -1
  135. package/dist/src/browser/drivers/browser-driver.d.ts +1 -0
  136. package/dist/src/browser/drivers/create-driver.js +2 -11
  137. package/dist/src/browser/drivers/playwright-driver.d.ts +5 -2
  138. package/dist/src/browser/drivers/playwright-driver.js +83 -38
  139. package/dist/src/browser/runtime/browser-runtime.d.ts +5 -0
  140. package/dist/src/browser/runtime/browser-runtime.js +71 -9
  141. package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
  142. package/dist/src/cli/commands/extension-agent-plugin.js +1 -1
  143. package/dist/src/cli/commands/gateway/lifecycle.js +2 -2
  144. package/dist/src/cli/commands/update.js +1 -1
  145. package/dist/src/computer/diagnostics.d.ts +4 -4
  146. package/dist/src/computer/errors.d.ts +4 -4
  147. package/dist/src/computer/evaluation.d.ts +3 -3
  148. package/dist/src/computer/flows.d.ts +1 -1
  149. package/dist/src/computer/runtime.d.ts +3 -3
  150. package/dist/src/config/schema.d.ts +6 -2
  151. package/dist/src/config/schema.js +3 -0
  152. package/dist/src/connectors/connected-source-understanding.js +11 -3
  153. package/dist/src/connectors/connection-recovery-service.js +38 -5
  154. package/dist/src/connectors/excluded-connectors.d.ts +1 -0
  155. package/dist/src/connectors/excluded-connectors.js +5 -1
  156. package/dist/src/connectors/learning-coordinator.js +45 -11
  157. package/dist/src/connectors/plugin-connection.d.ts +10 -0
  158. package/dist/src/connectors/plugin-connection.js +105 -0
  159. package/dist/src/discussions/recording.js +13 -6
  160. package/dist/src/endpoint-tools/device-host.d.ts +2 -2
  161. package/dist/src/extensions/agent-plugins/setup.js +1 -1
  162. package/dist/src/extensions/agent-plugins/skill-catalog.js +1 -1
  163. package/dist/src/gateway/hono/lib/config-payload.d.ts +4 -0
  164. package/dist/src/gateway/hono/middleware/auth.js +1 -1
  165. package/dist/src/gateway/hono/routes/agent-plugins.js +2 -2
  166. package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
  167. package/dist/src/gateway/hono/routes/connectors.js +1 -1
  168. package/dist/src/gateway/hono/routes/desktop-host.js +1 -1
  169. package/dist/src/gateway/hono/routes/home.js +51 -0
  170. package/dist/src/gateway/hono/routes/imports.js +1 -1
  171. package/dist/src/gateway/hono/routes/personal-agent.js +3 -3
  172. package/dist/src/gateway/hono/routes/projects.js +1 -1
  173. package/dist/src/gateway/hono/routes/session-command-handler.js +15 -1
  174. package/dist/src/gateway/hono/routes/update.js +2 -2
  175. package/dist/src/gateway/hono/routes/user-model.js +1 -1
  176. package/dist/src/gateway/index.js +1 -1
  177. package/dist/src/gateway/run-loop.js +2 -2
  178. package/dist/src/gateway/security/gateway-scopes.js +1 -0
  179. package/dist/src/gateway/service/agent-runner.d.ts +2 -8
  180. package/dist/src/gateway/service/agent-runner.js +2 -1
  181. package/dist/src/gateway/service/config-coordinator.d.ts +5 -1
  182. package/dist/src/gateway/service/run-gateway-agent.d.ts +13 -8
  183. package/dist/src/gateway/service/run-gateway-agent.js +6 -3
  184. package/dist/src/gateway/service/session-input-coordinator.d.ts +4 -0
  185. package/dist/src/gateway/service/session-input-coordinator.js +6 -1
  186. package/dist/src/gateway/service.d.ts +1 -0
  187. package/dist/src/gateway/service.js +19 -12
  188. package/dist/src/home-intelligence/follow-ups.d.ts +36 -0
  189. package/dist/src/home-intelligence/follow-ups.js +496 -0
  190. package/dist/src/home-intelligence/host.d.ts +80 -4
  191. package/dist/src/home-intelligence/host.js +124 -4
  192. package/dist/src/home-intelligence/observation-starters.d.ts +3 -0
  193. package/dist/src/home-intelligence/observation-starters.js +27 -0
  194. package/dist/src/home-intelligence/observation.d.ts +1 -1
  195. package/dist/src/home-intelligence/observation.js +16 -4
  196. package/dist/src/infra/gateway-processes.js +1 -1
  197. package/dist/src/infra/update-restart.js +2 -2
  198. package/dist/src/infra/update-runner.js +2 -2
  199. package/dist/src/infra/update-startup.js +1 -1
  200. package/dist/src/local-apps/automation-proposals.d.ts +4 -4
  201. package/dist/src/local-apps/capabilities/projections.d.ts +38 -38
  202. package/dist/src/memory-learning/choice-observations.d.ts +9 -0
  203. package/dist/src/memory-learning/choice-observations.js +155 -0
  204. package/dist/src/memory-learning/evidence-repair.d.ts +12 -0
  205. package/dist/src/memory-learning/evidence-repair.js +31 -0
  206. package/dist/src/memory-learning/repository.d.ts +1 -0
  207. package/dist/src/memory-learning/repository.js +43 -5
  208. package/dist/src/memory-learning/source-learning.js +52 -7
  209. package/dist/src/memory-learning/task-receipts.js +19 -10
  210. package/dist/src/memory-learning/transcript-source.js +7 -0
  211. package/dist/src/memory-learning/work-candidate.d.ts +14 -0
  212. package/dist/src/memory-learning/work-candidate.js +17 -2
  213. package/dist/src/memory-learning/work-capture.d.ts +1 -0
  214. package/dist/src/memory-learning/work-capture.js +28 -10
  215. package/dist/src/memory-learning/work-review.d.ts +46 -0
  216. package/dist/src/memory-learning/work-review.js +209 -0
  217. package/dist/src/notes/agent-context.js +1 -1
  218. package/dist/src/notifications/service.js +2 -2
  219. package/dist/src/personal-agent/communication.d.ts +1 -1
  220. package/dist/src/personal-agent/communication.js +1 -1
  221. package/dist/src/personal-agent/default-style.d.ts +1 -1
  222. package/dist/src/personal-agent/default-style.js +1 -1
  223. package/dist/src/personal-agent/proactivity/repository.d.ts +1 -1
  224. package/dist/src/personal-agent/prompts.js +4 -4
  225. package/dist/src/personal-agent/reply-composer.d.ts +1 -1
  226. package/dist/src/personal-agent/reply-composer.js +52 -34
  227. package/dist/src/personal-agent/reply-style.d.ts +2 -2
  228. package/dist/src/personal-agent/reply-style.js +3 -2
  229. package/dist/src/personal-agent/request-repository.d.ts +3 -0
  230. package/dist/src/personal-agent/request-service.d.ts +2 -0
  231. package/dist/src/personal-agent/request-service.js +8 -2
  232. package/dist/src/phone/contracts.d.ts +1 -1
  233. package/dist/src/phone/stream-gateway.js +1 -1
  234. package/dist/src/projects/capabilities/write.js +1 -1
  235. package/dist/src/projects/index.js +1 -1
  236. package/dist/src/projects/project-service.js +1 -1
  237. package/dist/src/storage/sqlite/schema.d.ts +2 -2
  238. package/dist/src/storage/sqlite/schema.js +7 -7
  239. package/dist/src/storage/sqlite/schema.sql +22 -0
  240. package/dist/src/storage/sqlite/upgrades/274_home_followups.sql +21 -0
  241. package/dist/src/tasks/capabilities/management.d.ts +3 -3
  242. package/dist/src/tasks/capabilities/relations.d.ts +3 -3
  243. package/dist/src/tasks/capabilities/write.d.ts +4 -4
  244. package/dist/src/tasks/capabilities/write.js +2 -0
  245. package/dist/src/tasks/home-query-service.js +4 -2
  246. package/dist/src/tasks/task-allocation-service.js +10 -2
  247. package/dist/src/tasks/task-application-service.d.ts +4 -0
  248. package/dist/src/tasks/task-application-service.js +6 -1
  249. package/dist/src/tasks/task-context-assembler.js +7 -2
  250. package/dist/src/tasks/task-contract-planner.js +3 -3
  251. package/dist/src/tasks/task-conversation-summary.d.ts +64 -0
  252. package/dist/src/tasks/task-conversation-summary.js +105 -0
  253. package/dist/src/tasks/task-delay-notice.d.ts +4 -0
  254. package/dist/src/tasks/task-delay-notice.js +113 -0
  255. package/dist/src/tasks/task-deletion-service.js +6 -1
  256. package/dist/src/tasks/task-handoff.d.ts +21 -0
  257. package/dist/src/tasks/task-handoff.js +77 -1
  258. package/dist/src/tasks/task-json-acceptance.d.ts +22 -0
  259. package/dist/src/tasks/task-json-acceptance.js +96 -0
  260. package/dist/src/tasks/task-main-update-decision-service.js +17 -21
  261. package/dist/src/tasks/task-main-update-delivery.js +34 -7
  262. package/dist/src/tasks/task-notification-preference.d.ts +16 -0
  263. package/dist/src/tasks/task-notification-preference.js +42 -0
  264. package/dist/src/tasks/task-origin-repository.d.ts +1 -0
  265. package/dist/src/tasks/task-origin-repository.js +3 -0
  266. package/dist/src/tasks/task-read-model-projector.js +1 -1
  267. package/dist/src/tasks/task-repository.js +1 -0
  268. package/dist/src/tasks/task-research-repair.d.ts +19 -1
  269. package/dist/src/tasks/task-research-repair.js +14 -4
  270. package/dist/src/tasks/task-research-result.d.ts +12 -0
  271. package/dist/src/tasks/task-research-result.js +5 -0
  272. package/dist/src/tasks/task-result-delivery-repository.d.ts +4 -1
  273. package/dist/src/tasks/task-result-delivery-repository.js +8 -5
  274. package/dist/src/tasks/task-result-delivery-service.js +9 -1
  275. package/dist/src/tasks/task-run-coordinator.js +45 -10
  276. package/dist/src/tui/tui-management.js +2 -2
  277. package/dist/src/usage/cloud-wire.d.ts +1 -0
  278. package/dist/src/user-context/config.d.ts +8 -0
  279. package/dist/src/user-context/config.js +10 -0
  280. package/dist/src/user-model/capture/evidence-policy.d.ts +2 -0
  281. package/dist/src/user-model/capture/evidence-policy.js +8 -1
  282. package/dist/src/user-model/capture/executor.js +16 -4
  283. package/dist/src/user-model/capture/semantic.d.ts +4 -0
  284. package/dist/src/user-model/capture/semantic.js +3 -0
  285. package/dist/src/user-model/index.js +1 -1
  286. package/dist/src/user-model/observation-repository.d.ts +6 -0
  287. package/dist/src/user-model/observation-repository.js +12 -0
  288. package/dist/src/user-model/repository.js +10 -1
  289. package/dist/src/voice/realtime/agentEngine.js +29 -7
  290. package/dist/src/voice/realtime/pcmPlaybackEcho.d.ts +10 -0
  291. package/dist/src/voice/realtime/pcmPlaybackEcho.js +56 -0
  292. package/dist/src/voice/realtime/playback-echo.d.ts +3 -0
  293. package/dist/src/voice/realtime/playback-echo.js +35 -5
  294. package/dist/src/voice/realtime/runtime.js +6 -1
  295. package/dist/src/voice/realtime/turnPolicy.js +1 -1
  296. package/package.json +14 -8
  297. package/dist/gateway/static/root/assets/agent-plugin-dialog-CikzCYAG.js +0 -1
  298. package/dist/gateway/static/root/assets/capabilities-DB713nRi.js +0 -1
  299. package/dist/gateway/static/root/assets/capabilities-page-D2hq4cgE.js +0 -2
  300. package/dist/gateway/static/root/assets/chat-page-BhPw56Vc.js +0 -71
  301. package/dist/gateway/static/root/assets/constants-DpkUgykJ.js +0 -1
  302. package/dist/gateway/static/root/assets/discussion-annotation-sync-fwPPMPv9.js +0 -1
  303. package/dist/gateway/static/root/assets/home-page-BPPe4JXB.js +0 -7
  304. package/dist/gateway/static/root/assets/index-DjzrnmBA.js +0 -11
  305. package/dist/gateway/static/root/assets/index-YQxumvaS.css +0 -1
  306. package/dist/gateway/static/root/assets/mcp-conversation-setup-page-CsTSmjmX.js +0 -1
  307. package/dist/gateway/static/root/assets/note-detail-panel-BbHlfAju.js +0 -7
  308. package/dist/gateway/static/root/assets/note-image-lightbox-CqK_uJ6Y.js +0 -1
  309. package/dist/gateway/static/root/assets/notes-page-8w2Stfak.js +0 -8
  310. package/dist/gateway/static/root/assets/pcm-capture-worklet-uW_SEACy.js +0 -1
  311. package/dist/gateway/static/root/assets/product-preview-modal-DMHOKocl.js +0 -2
  312. package/dist/gateway/static/root/assets/project-detail-page-CNFuzmRr.js +0 -7
  313. package/dist/gateway/static/root/assets/recording-upload-CyZSl2DJ.js +0 -1
  314. package/dist/gateway/static/root/assets/route-preload-CuxNu-LB.js +0 -2
  315. package/dist/gateway/static/root/assets/routine-panel-CXs4PjW0.js +0 -2
  316. package/dist/gateway/static/root/assets/session-manager-D2LaQymu.js +0 -25
  317. package/dist/gateway/static/root/assets/task-detail-page-_5TEldtl.js +0 -3
  318. package/dist/gateway/static/root/assets/use-realtime-voice-C7iWQuUv.js +0 -1
  319. package/dist/gateway/static/root/assets/workspace-api-LghfbP5g.js +0 -2
@@ -1,15 +1,15 @@
1
- import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,i as n,n as r,t as i}from"./vendor-react-BOUWij0V.js";import{l as a,u as o}from"./chunk-KS7C4IRE-CiwuuyV8.js";import{n as s}from"./locale-store-Dy1EByeG.js";import{t as c}from"./messages-BAnhwALN.js";import{a as l,n as u,o as d,r as f,s as p,t as m}from"./dist-CY7CS_D3.js";import{t as h}from"./createLucideIcon-DPHK1VkS.js";import{t as g}from"./download-Dk-ZjtO6.js";import{t as _}from"./file-image-CDUPkZvG.js";import{t as v}from"./plus-Q2yW6OE7.js";import{t as y}from"./x-B_N4OPjy.js";import{t as b}from"./cn-0WouolD0.js";import{n as x,r as S,t as C}from"./app-link-DImAfVs5.js";import{t as ee}from"./copy-to-clipboard-HOJ79TWv.js";import{a as te,c as ne,i as re,l as w,n as ie,o as ae,r as oe,s as se,t as ce}from"./xml-_d7dTN2Q.js";import{n as le}from"./mermaid-render-oOellPHt.js";var ue=h(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),de=h(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]);function fe(e,t){this.v=e,this.k=t}function pe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function me(e){if(Array.isArray(e))return e}function he(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function ge(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(e,t){return me(e)||he(e,t)||_e(e,t)||ge()}function _e(e,t){if(e){if(typeof e==`string`)return pe(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}function ve(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof fe;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}ve.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},ve.prototype.next=function(e){return this._invoke(`next`,e)},ve.prototype.throw=function(e){return this._invoke(`throw`,e)},ve.prototype.return=function(e){return this._invoke(`return`,e)};var ye=Object.entries,be=Object.setPrototypeOf,xe=Object.isFrozen,Se=Object.getPrototypeOf,Ce=Object.getOwnPropertyDescriptor,we=Object.freeze,Te=Object.seal,Ee=Object.create,De=typeof Reflect<`u`&&Reflect,Oe=De.apply,ke=De.construct;we||=function(e){return e},Te||=function(e){return e},Oe||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},ke||=function(e){return new e(...[...arguments].slice(1))};var Ae=D(Array.prototype.forEach);Array.prototype.indexOf;var je=D(Array.prototype.lastIndexOf),Me=D(Array.prototype.pop),Ne=D(Array.prototype.push),Pe=D(Array.prototype.slice),Fe=D(Array.prototype.splice),Ie=Array.isArray,Le=$e(Set),Re=D(Set.prototype.add),ze=D(Set.prototype.has),Be=D(String.prototype.toLowerCase),Ve=D(String.prototype.toString),He=D(String.prototype.match),Ue=D(String.prototype.replace),We=D(String.prototype.indexOf),Ge=D(String.prototype.trim),Ke=D(Number.prototype.toString),qe=D(Boolean.prototype.toString),E=typeof BigInt>`u`?null:D(BigInt.prototype.toString),Je=typeof Symbol>`u`?null:D(Symbol.prototype.toString),Ye=D(Object.prototype.hasOwnProperty),Xe=D(Object.prototype.toString),Ze=D(RegExp.prototype.test),Qe=$e(TypeError);function D(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Oe(e,t,n)}}function $e(e){return function(){return ke(e,[...arguments])}}function O(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Be;if(be&&be(e,null),!Ie(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(xe(t)||(t[r]=e),i=e)}e[i]=!0}return e}function et(e){for(let t=0;t<e.length;t++)Ye(e,t)||(e[t]=null);return e}function tt(e){let t=Ee(null);for(let r of ye(e)){var n=T(r,2);let i=n[0],a=n[1];Ye(e,i)&&(Ie(a)?t[i]=et(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=tt(a):t[i]=a)}return t}function nt(e){switch(typeof e){case`string`:return e;case`number`:return Ke(e);case`boolean`:return qe(e);case`bigint`:return E?E(e):`0`;case`symbol`:return Je?Je(e):`Symbol()`;case`undefined`:return Xe(e);case`function`:case`object`:{if(e===null)return Xe(e);let t=e,n=rt(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Xe(e)}return Xe(e)}default:return Xe(e)}}function rt(e,t){for(;e!==null;){let n=Ce(e,t);if(n){if(n.get)return D(n.get);if(typeof n.value==`function`)return D(n.value)}e=Se(e)}function n(){return null}return n}function it(e,t){for(;e!==null;){let n=Ce(e,t);if(n)return n.get?D(n.get):null;e=Se(e)}return null}function at(e){try{return Ze(e,``),!0}catch{return!1}}var ot=we(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),st=we(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),ct=we([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),lt=we([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),ut=we(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),dt=we([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),ft=we([`#text`]),pt=we(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),mt=we(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),ht=we(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),gt=we([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),_t=Te(/{{[\w\W]*|^[\w\W]*}}/g),vt=Te(/<%[\w\W]*|^[\w\W]*%>/g),yt=Te(/\${[\w\W]*/g),bt=Te(/^data-[\-\w.\u00B7-\uFFFF]+$/),xt=Te(/^aria-[\-\w]+$/),St=Te(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ct=Te(/^(?:\w+script|data):/i),wt=Te(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Tt=Te(/^html$/i),Et=Te(/^[a-z][.\w]*(-[.\w]+)+$/i),Dt=Te(/<[/\w!]/g),Ot=Te(/<[/\w]/g),kt=Te(/<\/no(script|embed|frames)/i),At=Te(/\/>/i),jt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Mt=we(O({},[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`])),Nt=function(){return typeof window>`u`?null:window},Pt=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Ft=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},It=function(e,t,n,r){return Ye(e,t)&&Ie(e[t])?O(r.base?tt(r.base):{},e[t],r.transform):n},Lt=function(e,t,n){let r=Ye(e,t)?e[t]:void 0;return r&&typeof r==`object`?tt(r):n()};function Rt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Nt(),t=e=>Rt(e);if(t.version=`3.4.17`,t.removed=[],!e||!e.document||e.document.nodeType!==jt.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=rt(d,`cloneNode`),p=rt(d,`remove`),m=rt(d,`removeAttributeNode`),h=rt(d,`nextSibling`),g=rt(d,`childNodes`),_=rt(d,`parentNode`),v=rt(d,`shadowRoot`),y=rt(d,`attributes`),b=o&&o.prototype?rt(o.prototype,`nodeType`):null,x=o&&o.prototype?rt(o.prototype,`nodeName`):null,S=o&&o.prototype?rt(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},ee=function(e){return x?x(e):e.nodeName},te=it(d,`namespaceURI`),ne=function(e){return te?te(e):e.namespaceURI};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let re,w=``,ie,ae=!1,oe=0,se=function(){if(oe>0)throw Qe(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},ce=function(e){se(),oe++;try{return re.createHTML(e)}finally{oe--}},le=function(e){se(),oe++;try{return re.createScriptURL(e)}finally{oe--}},ue=function(){return ae||=(ie=Pt(u,i),!0),ie},de=n,fe=de.implementation,pe=de.createNodeIterator,me=de.createDocumentFragment,he=de.getElementsByTagName,ge=r.importNode,T=Ft();t.isSupported=typeof ye==`function`&&typeof _==`function`&&fe&&fe.createHTMLDocument!==void 0;let _e=_t,ve=vt,be=yt,xe=bt,Se=xt,Ce=Ct,De=wt,Oe=Et,ke=St,Ke=null,qe=O({},[...ot,...st,...ct,...ut,...ft]),E=null,Je=O({},[...pt,...mt,...ht,...gt]),Xe=Object.seal(Ee(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),D=null,$e=null,et=Object.seal(Ee(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),zt=!0,Bt=!0,Vt=!1,Ht=!0,Ut=!1,k=!0,Wt=!1,Gt=!1,Kt=null,qt=null,Jt=!1,Yt=!1,Xt=!1,Zt=!1,Qt=!0,$t=!1,en=`user-content-`,tn=!0,nn=!1,rn=null,an={},on=null,sn=O({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),cn=null,ln=O({},[`audio`,`video`,`img`,`source`,`image`,`track`]),un=null,dn=O({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),fn=`http://www.w3.org/1998/Math/MathML`,pn=`http://www.w3.org/2000/svg`,mn=`http://www.w3.org/1999/xhtml`,hn=mn,gn=!1,_n=null,vn=O({},[fn,pn,mn],Ve),yn=we([`mi`,`mo`,`mn`,`ms`,`mtext`]),bn=O({},yn),xn=we([`annotation-xml`]),Sn=O({},xn),Cn=O({},[`title`,`style`,`font`,`a`,`script`]),wn=null,Tn=[`application/xhtml+xml`,`text/html`],En=null,Dn=null,On=n.createElement(`form`),A=function(e){return e instanceof RegExp||e instanceof Function},kn=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Dn&&Dn===e)return;(!e||typeof e!=`object`)&&(e={}),e=tt(e),wn=Tn.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,En=wn===`application/xhtml+xml`?Ve:Be,Ke=It(e,`ALLOWED_TAGS`,qe,{transform:En}),E=It(e,`ALLOWED_ATTR`,Je,{transform:En}),_n=It(e,`ALLOWED_NAMESPACES`,vn,{transform:Ve}),un=It(e,`ADD_URI_SAFE_ATTR`,dn,{transform:En,base:dn}),cn=It(e,`ADD_DATA_URI_TAGS`,ln,{transform:En,base:ln}),on=It(e,`FORBID_CONTENTS`,sn,{transform:En}),D=It(e,`FORBID_TAGS`,tt({}),{transform:En}),$e=It(e,`FORBID_ATTR`,tt({}),{transform:En}),an=Ye(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?tt(e.USE_PROFILES):e.USE_PROFILES:!1,zt=e.ALLOW_ARIA_ATTR!==!1,Bt=e.ALLOW_DATA_ATTR!==!1,Vt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ht=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ut=e.SAFE_FOR_TEMPLATES||!1,k=e.SAFE_FOR_XML!==!1,Wt=e.WHOLE_DOCUMENT||!1,Yt=e.RETURN_DOM||!1,Xt=e.RETURN_DOM_FRAGMENT||!1,Zt=e.RETURN_TRUSTED_TYPE||!1,Jt=e.FORCE_BODY||!1,Qt=e.SANITIZE_DOM!==!1,$t=e.SANITIZE_NAMED_PROPS||!1,tn=e.KEEP_CONTENT!==!1,nn=e.IN_PLACE||!1,ke=at(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:St,hn=typeof e.NAMESPACE==`string`?e.NAMESPACE:mn,bn=Lt(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>O({},yn)),Sn=Lt(e,`HTML_INTEGRATION_POINTS`,()=>O({},xn));let t=Lt(e,`CUSTOM_ELEMENT_HANDLING`,()=>Ee(null));if(Xe=Ee(null),Ye(t,`tagNameCheck`)&&A(t.tagNameCheck)&&(Xe.tagNameCheck=t.tagNameCheck),Ye(t,`attributeNameCheck`)&&A(t.attributeNameCheck)&&(Xe.attributeNameCheck=t.attributeNameCheck),Ye(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(Xe.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Te(Xe),Ut&&(Bt=!1),Xt&&(Yt=!0),an&&(Ke=O({},ft),E=Ee(null),an.html===!0&&(O(Ke,ot),O(E,pt)),an.svg===!0&&(O(Ke,st),O(E,mt),O(E,gt)),an.svgFilters===!0&&(O(Ke,ct),O(E,mt),O(E,gt)),an.mathMl===!0&&(O(Ke,ut),O(E,ht),O(E,gt))),et.tagCheck=null,et.attributeCheck=null,Ye(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?et.tagCheck=e.ADD_TAGS:Ie(e.ADD_TAGS)&&(Ke===qe&&(Ke=tt(Ke)),O(Ke,e.ADD_TAGS,En))),Ye(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?et.attributeCheck=e.ADD_ATTR:Ie(e.ADD_ATTR)&&(E===Je&&(E=tt(E)),O(E,e.ADD_ATTR,En))),Ye(e,`ADD_FORBID_CONTENTS`)&&Ie(e.ADD_FORBID_CONTENTS)&&(on===sn&&(on=tt(on)),O(on,e.ADD_FORBID_CONTENTS,En)),tn&&(Ke[`#text`]=!0),Wt&&O(Ke,[`html`,`head`,`body`]),Ke.table&&(O(Ke,[`tbody`]),delete D.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Qe(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Qe(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=re;re=e.TRUSTED_TYPES_POLICY;try{w=ce(``)}catch(e){throw re=t,e}}else e.TRUSTED_TYPES_POLICY===null?(re=void 0,w=``):(re===void 0&&(re=ue()),re&&typeof w==`string`&&(w=ce(``)));we&&we(e),Dn=e},An=O({},[...st,...ct,...lt]),jn=O({},[...ut,...dt]),Mn=function(e,t,n){return t.namespaceURI===mn?e===`svg`:t.namespaceURI===fn?e===`svg`&&(n===`annotation-xml`||bn[n]):!!An[e]},Nn=function(e,t,n){return t.namespaceURI===mn?e===`math`:t.namespaceURI===pn?e===`math`&&Sn[n]:!!jn[e]},Pn=function(e,t,n){return t.namespaceURI===pn&&!Sn[n]||t.namespaceURI===fn&&!bn[n]?!1:!jn[e]&&(Cn[e]||!An[e])},Fn=function(e){let t=ne(e),n=Be(ee(e)),r=_(e),i,a;return r&&C(r)===jt.element?(i={namespaceURI:ne(r)},a=Be(ee(r))):(i={namespaceURI:hn},a=`template`),_n[t]?t===pn?Mn(n,i,a):t===fn?Nn(n,i,a):t===mn?Pn(n,i,a):!!(wn===`application/xhtml+xml`&&_n[t]):!1},In=function(e){Ne(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw Qe(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Ln=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},Rn=function(e){Hn(e);let t=g(e);t&&Ae(Pe(t),e=>{try{p(e)}catch{}});let n=C(e)===jt.element?y(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&Ln(e,r,i)}},zn=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Ne(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`)if(Yt||Xt)try{In(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Bn=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||E[En(i)]||Ln(e,r,i)}},Vn=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(t(e)===!1)continue;if(n&&C(e)===jt.element){let t=v(e);rr(t)&&r.push(t)}let i=g(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},Hn=function(e){Vn(e,e=>{C(e)===jt.element&&Bn(e)})},Un=function(e){let t=[];return Vn(e,e=>{t.push(e)},!0),t},Wn=function(e,t){let n=Le();Ae(Un(e),e=>{C(e)===jt.element&&Re(n,e)}),Ae(t,e=>{C(e)===jt.element&&!ze(n,e)&&Bn(e)})},Gn=function(e,n){let r=!1;return Ae(t.removed,t=>{t.element&&(r||=t.element===e,Hn(t.element))}),Wn(e,n),r},Kn=function(e,t){let n=rn,r=null,i=()=>(r||(r=Le(),Ae(t,e=>{Re(r,e)})),r);for(let t=0;;t++){let r=Un(e),a=[e],o=!1;if(Ae(r,e=>{C(e)===jt.documentFragment?Ne(a,e):!o&&!ze(n,e)&&(o=ze(i(),e))}),!o)return;if(t>=8)throw Qe(`the tree kept changing during in-place sanitization; refusing to return it`);Ae(a,(t,n)=>{qn(t,n>0,e,i())})}},qn=function(e,t,n,r){let i=Qn(e),a;for(;a=i.nextNode();)!ze(r,a)||ze(rn,a)||(t&&ar(T.uponSanitizeShadowNode,a,null),dr(a,n),vr(a,n),rr(a.content)&&yr(a.content))},Jn=function(e){rn&&Re(rn,e)},Yn=function(e,t){return k?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Xn=function(e){k&&Vn(e,e=>{let t=C(e);if(t===jt.processingInstruction||t===jt.comment&&Ze(Ot,e.data)){try{p(e)}catch{}return!1}if(t===jt.element){let t=e,n=En(ee(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&Yn(`for`,n)&&t.removeAttribute(`for`)}catch{}}return!0})},Zn=function(e){let t=null,r=null;if(Jt)e=`<remove></remove>`+e;else{let t=He(e,/^[\r\n\t ]+/);r=t&&t[0]}wn===`application/xhtml+xml`&&hn===mn&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=re?ce(e):e;if(hn===mn)try{t=new l().parseFromString(i,wn)}catch{}if(!t||!t.documentElement){t=fe.createDocument(hn,`template`,null);try{t.documentElement.innerHTML=gn?w:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),hn===mn?he.call(t,Wt?`html`:`body`)[0]:Wt?t.documentElement:a},Qn=function(e){let t=S?S(e):e.ownerDocument;return pe.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},$n=function(e){return e=Ue(e,_e,` `),e=Ue(e,ve,` `),e=Ue(e,be,` `),e},er=function(e){tr(e);let t=e.querySelectorAll?.call(e,`template`);t&&Ae(t,e=>{rr(e.content)&&er(e.content)})},tr=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=pe.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=$n(r.data),r=n.nextNode()},nr=function(e){let t=x?x(e):null;return typeof t!=`string`||En(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},rr=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===jt.documentFragment}catch{return!1}},ir=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function ar(e,n,r){e.length!==0&&Ae(e,e=>{e.call(t,n,r,Dn)})}let or=function(e,t){return!!(k&&e.hasChildNodes()&&!ir(e.firstElementChild)&&Ze(Dt,e.textContent)&&Ze(Dt,e.innerHTML)||k&&Mt[t]&&C(e)===jt.element&&ne(e)===mn&&(ir(e.firstElementChild)||typeof e.textContent==`string`&&Ze(Dt,e.textContent))||e.nodeType===jt.processingInstruction||k&&e.nodeType===jt.comment&&Ze(Ot,e.data))},sr=function(e,t){return e instanceof RegExp?Ze(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},cr=function(e,t,n){if(!D[t]&&mr(t)&&sr(Xe.tagNameCheck,t))return!1;if(tn&&!on[t]&&!on[Be(t)]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return In(e),!0},lr=function(e,t,n,r){return e.length===0?t:t===n||t===r?tt(t):t},ur=function(e,t){return e===t||_(e)!==null?!1:(nn&&Hn(e),!0)},dr=function(e,n){if(Jn(e),ar(T.beforeSanitizeElements,e,null),ur(e,n))return!0;if(nr(e))return In(e),!0;let r=En(ee(e));if(Ke=lr(T.uponSanitizeElement,Ke,qe,Kt),ar(T.uponSanitizeElement,e,{tagName:r,allowedTags:Ke}),ur(e,n))return!0;if(or(e,r))return In(e),!0;if(D[r]||!(et.tagCheck instanceof Function&&et.tagCheck(r))&&!Ke[r]){let t=cr(e,r,n);return t===!1&&(ar(T.afterSanitizeElements,e,null),ur(e,n))?!0:t}if(C(e)===jt.element&&!Fn(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Ze(kt,e.innerHTML))return In(e),!0;if(Ut&&e.nodeType===jt.text){let n=$n(e.textContent);e.textContent!==n&&(Ne(t.removed,{element:e.cloneNode()}),e.textContent=n)}return ar(T.afterSanitizeElements,e,null),ur(e,n)},fr=function(e,t,r){if($e[t]||Yn(t,e)||Qt&&(t===`id`||t===`name`)&&(r in n||r in On))return!1;let i=E[t]||et.attributeCheck instanceof Function&&et.attributeCheck(t,e);return Bt&&Ze(xe,t)||zt&&Ze(Se,t)?!0:i?un[t]||Ze(ke,Ue(r,De,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&We(r,`data:`)===0&&cn[e]||Vt&&!Ze(Ce,Ue(r,De,``))?!0:!r:mr(e)&&sr(Xe.tagNameCheck,e)&&sr(Xe.attributeNameCheck,t,e)||t===`is`&&Xe.allowCustomizedBuiltInElements&&sr(Xe.tagNameCheck,r)},pr=O({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),mr=function(e){return!pr[Be(e)]&&Ze(Oe,e)},hr=function(e,t,n,r){if(re&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return ce(r);case`TrustedScriptURL`:return le(r)}return r},gr=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),nr(e)?(In(e),!1):!0}catch{return zn(t,e),!1}},_r=function(e,t){return k&&Ze(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t)?!0:Be(e)===`attributename`&&He(t,`href`)!==null},vr=function(e,n){if(ar(T.beforeSanitizeAttributes,e,null),ur(e,n))return;let r=e.attributes;if(!r||nr(e))return;E=lr(T.uponSanitizeAttribute,E,Je,qt);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:E,forceKeepAttr:void 0},a=r.length,o=En(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=En(s),d=l,f=s===`value`?d:Ge(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,ar(T.uponSanitizeAttribute,e,i),f=i.attrValue,$t&&(u===`id`||u===`name`)&&We(f,en)!==0&&(zn(s,e,n),f=en+f,p=!0),_r(s,f)){zn(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){zn(s,e,n);continue}if(!Ht&&Ze(At,f)){zn(s,e,n);continue}if(Ut&&(f=$n(f)),!fr(o,u,f)){zn(s,e,n);continue}f=hr(o,u,c,f),f!==d&&gr(e,s,c,f)&&p&&Me(t.removed)}}ar(T.afterSanitizeAttributes,e,null),ur(e,n)},yr=function(e){let t=null,n=Qn(e);for(ar(T.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(ar(T.uponSanitizeShadowNode,t,null),dr(t,e),vr(t,e),rr(t.content)&&yr(t.content),C(t)===jt.element){let e=v(t);rr(e)&&(br(e),yr(e))}Ut&&tr(e),ar(T.afterSanitizeShadowDOM,e,null)},br=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){yr(e.shadow);continue}let n=e.node,r=C(n)===jt.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&En(e)===`template`){let e=n.content;rr(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);rr(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(gn=!e,gn&&(e=`<!-->`),typeof e!=`string`&&!ir(e)&&(e=nt(e),typeof e!=`string`))throw Qe(`dirty is not a string, aborting`);if(!t.isSupported)return e;Gt?(Ke=Kt,E=qt):kn(n),(T.uponSanitizeElement.length>0||T.uponSanitizeAttribute.length>0)&&(Ke=tt(Ke)),T.uponSanitizeAttribute.length>0&&(E=tt(E)),t.removed=[];let c=nn&&typeof e!=`string`&&ir(e),l=[],u=rn;if(c){Xn(e);let t=ee(e);if(typeof t==`string`){let n=En(t);if(!Ke[n]||D[n])throw Rn(e),Qe(`root node is forbidden and cannot be sanitized in-place`)}if(nr(e))throw Rn(e),Qe(`root node is clobbered and cannot be sanitized in-place`);l=Un(e),rn=Le()}else if(ir(e))i=Zn(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===jt.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),br(i);else{if(!Yt&&!Ut&&!Wt&&e.indexOf(`<`)===-1)return re&&Zt?ce(e):e;if(i=Zn(e),!i)return Yt?null:Zt?w:``}i&&Jt&&In(i.firstChild);let d=c?e:i;try{c&&br(e);let t=Qn(d);for(;o=t.nextNode();)dr(o,d),vr(o,d),rr(o.content)&&yr(o.content);c&&Kn(e,l)}catch(t){throw c&&(Rn(e),Gn(e,l)),t}finally{rn=u}if(c){if(Gn(e,l))throw Qe(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Ut&&er(e),e}if(Yt){if(Ut&&er(i),Xt)for(s=me.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(E.shadowroot||E.shadowrootmode)&&(s=ge.call(r,s,!0)),s}let f=Wt?i.outerHTML:i.innerHTML;return Wt&&Ke[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Ze(Tt,i.ownerDocument.doctype.name)&&(f=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
3
- `+f),Ut&&(f=$n(f)),re&&Zt?ce(f):f},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};kn(e),Gt=!0,Kt=Ke,qt=E},t.clearConfig=function(){Dn=null,Gt=!1,Kt=null,qt=null,re=ie,w=``},t.isValidAttribute=function(e,t,n){Dn||kn({});let r=En(e),i=En(t);return typeof n==`string`&&(_r(t,n)||!Ht&&Ze(At,n))?!1:fr(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Ye(T,e)&&Ne(T[e],t)},t.removeHook=function(e,t){if(Ye(T,e)){if(t!==void 0){let n=je(T[e],t);return n===-1?void 0:Fe(T[e],n,1)[0]}return Me(T[e])}},t.removeHooks=function(e){Ye(T,e)&&(T[e]=[])},t.removeAllHooks=function(){T=Ft()},t}var zt=Rt(),Bt=[`base`,`button`,`embed`,`form`,`iframe`,`input`,`link`,`meta`,`object`,`option`,`select`,`style`,`template`,`textarea`],Vt=[`action`,`formaction`,`id`,`name`,`srcdoc`,`style`];function Ht(e){return zt.sanitize(e,{USE_PROFILES:{html:!0},FORBID_TAGS:Bt,FORBID_ATTR:Vt})}function Ut(e){let t=e.replace(/@import\s+url\([^)]*\)\s*;?/gi,``);return zt.sanitize(t,{USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},FORBID_TAGS:[`foreignObject`,`script`],FORBID_ATTR:[`href`,`xlink:href`]})}var k=e(t(),1),Wt=e(n(),1),Gt=r();function Kt(e){return e===`/personal`||e===`/automations`||e===`/chat`||e.startsWith(`/chat/`)}function qt(e,t,n){let r=e?.trim();if(!r||!r.startsWith(`/`)||r.startsWith(`//`)||r.includes(`://`)||r.includes(`\\`))return t;let i=r.split(/[?#]/,1)[0]||`/`;return n.some(e=>i===e||i.startsWith(`${e}/`))?r:t}function Jt(e,t){let n=t?.trim();if(!n)return e;let r=e.indexOf(`#`),i=r>=0?e.slice(0,r):e,a=r>=0?e.slice(r):``;return`${i}${i.includes(`?`)?`&`:`?`}returnTo=${encodeURIComponent(n)}${a}`}var Yt=[`/notes/`,`/tasks/`,`/projects/`];function Xt(e,t){let n=e.split(/[?#]/,1)[0]??``;if(!Yt.some(e=>n.startsWith(e)))return e;let r=e.slice(n.length).split(`#`,1)[0];return new URLSearchParams(r.startsWith(`?`)?r.slice(1):r).has(`returnTo`)?e:Jt(e,t)}var Zt=`note`;function Qt(e,t){let n=new URLSearchParams(t);n.delete(Zt);let r=n.toString();return r?`${e}?${r}`:e}function $t(e,t){let[n,r=``]=e.split(`?`);if(!Kt(n))return Xt(`/notes/${encodeURIComponent(t)}`,e);let i=new URLSearchParams(r);return i.delete(`task`),i.delete(`preview`),i.set(Zt,t),`${n}?${i.toString()}`}function en(e,t){let n=/^\/notes\/([^/?#]+)(?:\?.*)?$/.exec(t);if(!n)return t;let r=new URLSearchParams(t.split(`?`)[1]??``);if(r.has(`edit`)||r.has(`action`))return t;try{return $t(e,decodeURIComponent(n[1]))}catch{return $t(e,n[1])}}var tn=`task`;function nn(e){return`/chat/task/${encodeURIComponent(e)}`}function rn(e,t){let[n,r=``]=e.split(`?`),i=new URLSearchParams(r);return i.delete(`note`),i.delete(`preview`),i.set(tn,t),`${n}?${i.toString()}`}function an(e,t){return e.split(`?`)[0]?.startsWith(`/tasks/`)?`/tasks/${encodeURIComponent(t)}`:rn(e,t)}function on(e,t){let n=/^\/tasks\/([^/?#]+)/.exec(t);if(!n)return t;try{return an(e,decodeURIComponent(n[1]))}catch{return an(e,n[1])}}function sn(e,t){let n=new URLSearchParams(t);n.delete(tn);let r=n.toString();return r?`${e}?${r}`:e}var cn=`preview`;function ln(e){if(!e.startsWith(`/`)||e.startsWith(`//`)||e.includes(`\\`)||e.includes(`#`))return null;let t=new URL(e,`https://xopc.local`);if([`edit`,`copy`,`action`,`draft`,`add`,`autogenerate`].some(e=>t.searchParams.has(e)))return null;let n,r,i;if(i=/^\/projects\/([^/]+)$/.exec(t.pathname))n=`project`,r=i[1];else if(t.pathname===`/automations`&&t.searchParams.get(`automation`))n=`automation`,r=encodeURIComponent(t.searchParams.get(`automation`));else if(i=/^\/local-apps\/([^/]+)$/.exec(t.pathname))n=`local_app`,r=i[1];else if(t.pathname===`/open`&&t.searchParams.get(`kind`)===`local_app`&&t.searchParams.get(`id`))n=`local_app`,r=encodeURIComponent(t.searchParams.get(`id`));else return null;let a;try{a=decodeURIComponent(r)}catch{return null}if(!a.trim())return null;let o=t.searchParams.get(`agentId`)||t.searchParams.get(`agent`)||void 0,s=t.searchParams.get(`sourceHash`)||void 0,c=new URLSearchParams(t.searchParams);for(let e of[`def`,`agent`,`returnTo`])c.delete(e);n!==`automation`&&c.delete(`run`),o&&c.set(`agentId`,o);let l=n===`project`?`/projects/${encodeURIComponent(a)}`:n===`automation`?`/automations`:`/local-apps/${encodeURIComponent(a)}`;return n===`automation`&&c.set(`automation`,a),n===`local_app`&&(c.delete(`kind`),c.delete(`id`)),l+=c.size?`?${c.toString()}`:``,{kind:n,id:a,href:l,ownerAgentId:o,sourceHash:s,...n===`automation`&&(c.get(`view`)===`run`||c.get(`run`))?{view:`run`,runId:c.get(`run`)||void 0}:{}}}function un(e,t){let n=new URLSearchParams(t);return n.delete(cn),`${e}${n.size?`?${n.toString()}`:``}`}function dn(e,t){let[n,r=``]=e.split(`?`),i=Kt(n)?ln(t):null;if(!i)return en(e,on(e,t));let a=new URLSearchParams(r);return a.delete(`note`),a.delete(`task`),a.set(cn,i.href),`${n}?${a.toString()}`}function fn(){let e=(0,Gt.c)(4),t=a(),n=o(),r;return e[0]!==t.pathname||e[1]!==t.search||e[2]!==n?(r=async e=>{let r=S(e);if(r.kind===`internal-route`){let e=`${t.pathname}${t.search}`;return n(Xt(dn(e,r.route),e)),{ok:!0,kind:r.kind}}if(r.kind===`external-http`){let e=await x(r.url);return e.ok?{ok:!0,kind:r.kind}:e}return{ok:!1,error:`Unsupported link`}},e[0]=t.pathname,e[1]=t.search,e[2]=n,e[3]=r):r=e[3],r}function pn(e,t){let n=0;for(;t>0&&e[--t]===`\\`;)n++;return n%2==1}function mn(e,t,n,r){let i=!1;for(let a=t;a<e.length;a++){if(e[a]===`
4
- `||e[a]===`\r`){if(r)return-1;i=!1}if(!i){if(e[a]===`%`&&!pn(e,a)){i=!0;continue}if(e.startsWith(n,a)&&!pn(e,a))return a}}return-1}function hn(e,t=0){if(pn(e,t))return;let n=e.startsWith(`\\(`,t);if(!n&&(e[t]!==`$`||e[t+1]===`$`||e[t-1]===`$`))return;let r=n?2:1,i=t+r;if(n&&/^xopc:\/\//i.test(e.slice(i))||!n&&(!e[i]||/\s/.test(e[i])))return;let a=mn(e,i,n?`\\)`:`$`,!0);if(a===-1){if(!n)return;let r=e.slice(i).search(/[\r\n]/),a=r<0?e.length:i+r;return{raw:e.slice(t,a),latex:e.slice(i,a),display:!1,delimiter:`paren`,state:`pending`,range:{start:t,end:a}}}let o=e.slice(i,a);if(!n&&(!o||/\s$/.test(o)||/\d/.test(e[a+1]??``)||e[a+1]===`$`||/^[\d\s.,+\-€£¥¥]+$/.test(o)))return;let s=a+r;return{raw:e.slice(t,s),latex:o,display:!1,delimiter:n?`paren`:`dollar`,state:`complete`,range:{start:t,end:s}}}function gn(e,t=0){let n=/^( {0,3})(\\\[|\$\$)/.exec(e.slice(t));if(!n)return;let r=t+n[0].length,i=n[2]===`\\[`,a=mn(e,r,i?`\\]`:`$$`,!1);if(a>=0){let n=a+2,o=e.slice(n).match(/^[^\r\n]*/)?.[0]??``;return o.trim()?void 0:{raw:e.slice(t,n+o.length),latex:e.slice(r,a),display:!0,delimiter:i?`bracket`:`double-dollar`,state:`complete`,range:{start:t,end:n+o.length}}}if(!(!i&&/^\S.*\$\$/.test(e.slice(r).split(/\r?\n/,1)[0])))return{raw:e.slice(t),latex:e.slice(r),display:!0,delimiter:i?`bracket`:`double-dollar`,state:`pending`,range:{start:t,end:e.length}}}function _n(e,t,n=!0){return{raw:e,latex:t,display:!0,delimiter:`math-fence`,state:n?`complete`:`pending`,range:{start:0,end:e.length}}}function vn(e){let t=/^ {0,3}(`{3,}|~{3,})math[^\S\r\n]*(?:\r?\n|$)/.exec(e);if(!t)return;let n=t[1],r=t[0].length;for(;r<e.length;){let i=e.indexOf(`
5
- `,r),a=i<0?e.length:i,o=e.slice(r,a).replace(/\r$/,``),s=/^ {0,3}(`{3,}|~{3,})\s*$/.exec(o);if(s&&s[1][0]===n[0]&&s[1].length>=n.length)return _n(e.slice(0,a),e.slice(t[0].length,r).replace(/\r?\n$/,``));if(i<0)break;r=i+1}return _n(e,e.slice(t[0].length),!1)}function yn(e){return e.replace(/[&<>"']/g,e=>({"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`})[e])}function bn(e){return encodeURIComponent(JSON.stringify(e))}function xn(e){try{let t=JSON.parse(decodeURIComponent(e));return typeof t.raw!=`string`||typeof t.latex!=`string`||typeof t.display!=`boolean`||![`pending`,`complete`].includes(t.state)||![`paren`,`dollar`,`bracket`,`double-dollar`,`math-fence`].includes(t.delimiter)?void 0:t}catch{return}}function Sn(e){let t=`<code class="${e.display?`math-display`:`math-inline`}" data-xopc-math-source="${yn(bn(e))}">${yn(e.raw)}</code>`;return e.display?`<pre>${t}</pre>\n`:t}var Cn={walkTokens(e){if(e.type!==`image`)return;function t(e){e.type===`xopcMathInline`&&(e.type=`text`,e.text=e.source.raw,e.escaped=!1);for(let n of e.tokens??[])t(n)}for(let n of e.tokens??[])t(n)},extensions:[{name:`xopcMathBlock`,level:`block`,start:e=>{let t=e.search(/(?:^|\n) {0,3}(?:\\\[|\$\$)/);return t<0?void 0:t},tokenizer(e){let t=gn(e);if(t)return{type:`xopcMathBlock`,raw:t.raw,source:t}},renderer(e){return Sn(e.source)}},{name:`xopcMathInline`,level:`inline`,start:e=>{let t=e.search(/\\\(|\$/);return t<0?void 0:t},tokenizer(e){let t=hn(e);if(t)return{type:`xopcMathInline`,raw:t.raw,source:t}},renderer(e){return Sn(e.source)}}]};function wn(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Tn=wn();function En(e){Tn=e}var Dn={exec:()=>null};function On(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function A(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(An.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var kn=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),An={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:On(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:On(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:On(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:On(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:On(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:On(e=>RegExp(`^ {0,${e}}>`))},jn=/^(?:[ \t]*(?:\n|$))+/,Mn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Nn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Pn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Fn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,In=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Ln=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Rn=A(Ln).replace(/bull/g,In).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),zn=A(Ln).replace(/bull/g,In).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Bn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Vn=/^[^\n]+/,Hn=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Un=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Hn).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Wn=A(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,In).getRegex(),Gn=`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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Kn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,qn=A(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Kn).replace(`tag`,Gn).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Jn=A(Bn).replace(`hr`,Pn).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Gn).getRegex(),Yn={blockquote:A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Jn).getRegex(),code:Mn,def:Un,fences:Nn,heading:Fn,hr:Pn,html:qn,lheading:Rn,list:Wn,newline:jn,paragraph:Jn,table:Dn,text:Vn},Xn=A(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Pn).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Gn).getRegex(),Zn={...Yn,lheading:zn,table:Xn,paragraph:A(Bn).replace(`hr`,Pn).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Xn).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Gn).getRegex()},Qn={...Yn,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Kn).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Dn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(Bn).replace(`hr`,Pn).replace(`heading`,` *#{1,6} *[^
6
- ]`).replace(`lheading`,Rn).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},$n=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,er=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,tr=/^( {2,}|\\)\n(?!\s*$)/,nr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,rr=/[\p{P}\p{S}]/u,ir=/[\s\p{P}\p{S}]/u,ar=/[^\s\p{P}\p{S}]/u,or=A(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,ir).getRegex(),sr=/(?!~)[\p{P}\p{S}]/u,cr=/(?!~)[\s\p{P}\p{S}]/u,lr=/(?:[^\s\p{P}\p{S}]|~)/u,ur=A(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,kn?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),dr=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,fr=A(dr,`u`).replace(/punct/g,rr).getRegex(),pr=A(dr,`u`).replace(/punct/g,sr).getRegex(),mr=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,hr=A(mr,`gu`).replace(/notPunctSpace/g,ar).replace(/punctSpace/g,ir).replace(/punct/g,rr).getRegex(),gr=A(mr,`gu`).replace(/notPunctSpace/g,lr).replace(/punctSpace/g,cr).replace(/punct/g,sr).getRegex(),_r=A(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,ar).replace(/punctSpace/g,ir).replace(/punct/g,rr).getRegex(),vr=A(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,rr).getRegex(),yr=A(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,ar).replace(/punctSpace/g,ir).replace(/punct/g,rr).getRegex(),br=A(/\\(punct)/,`gu`).replace(/punct/g,rr).getRegex(),xr=A(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Sr=A(Kn).replace(`(?:-->|$)`,`-->`).getRegex(),Cr=A(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Sr).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),wr=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Tr=A(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,wr).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Er=A(/^!?\[(label)\]\[(ref)\]/).replace(`label`,wr).replace(`ref`,Hn).getRegex(),Dr=A(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Hn).getRegex(),Or=A(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Er).replace(`nolink`,Dr).getRegex(),kr=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ar={_backpedal:Dn,anyPunctuation:br,autolink:xr,blockSkip:ur,br:tr,code:er,del:Dn,delLDelim:Dn,delRDelim:Dn,emStrongLDelim:fr,emStrongRDelimAst:hr,emStrongRDelimUnd:_r,escape:$n,link:Tr,nolink:Dr,punctuation:or,reflink:Er,reflinkSearch:Or,tag:Cr,text:nr,url:Dn},jr={...Ar,link:A(/^!?\[(label)\]\((.*?)\)/).replace(`label`,wr).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,wr).getRegex()},Mr={...Ar,emStrongRDelimAst:gr,emStrongLDelim:pr,delLDelim:vr,delRDelim:yr,url:A(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,kr).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:A(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,kr).getRegex()},Nr={...Mr,br:A(tr).replace(`{2,}`,`*`).getRegex(),text:A(Mr.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Pr={normal:Yn,gfm:Zn,pedantic:Qn},Fr={normal:Ar,gfm:Mr,breaks:Nr,pedantic:jr},Ir={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Lr=e=>Ir[e];function Rr(e,t){if(t){if(An.escapeTest.test(e))return e.replace(An.escapeReplace,Lr)}else if(An.escapeTestNoEncode.test(e))return e.replace(An.escapeReplaceNoEncode,Lr);return e}function zr(e){try{e=encodeURI(e).replace(An.percentDecode,`%`)}catch{return null}return e}function Br(e,t){let n=e.replace(An.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(An.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(An.slashPipe,`|`);return n}function Vr(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Hr(e){let t=e.split(`
7
- `),n=t.length-1;for(;n>=0&&An.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
8
- `)}function Ur(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Wr(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function Gr(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Kr(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
1
+ import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{n as t}from"./diagnostics-Bo0Z42P_.js";import{a as n,i as r,n as i,t as a}from"./vendor-react-BOUWij0V.js";import{l as o,u as s}from"./chunk-KS7C4IRE-CiwuuyV8.js";import{n as c}from"./locale-store-Dy1EByeG.js";import{t as l}from"./messages-BAnhwALN.js";import{a as u,n as d,o as f,r as p,s as m,t as h}from"./dist-CY7CS_D3.js";import{t as g}from"./createLucideIcon-DPHK1VkS.js";import{t as _}from"./download-Dk-ZjtO6.js";import{t as v}from"./file-image-CDUPkZvG.js";import{t as y}from"./plus-Q2yW6OE7.js";import{t as b}from"./x-B_N4OPjy.js";import{t as x}from"./cn-0WouolD0.js";import{n as S,r as C,t as ee}from"./app-link-DImAfVs5.js";import{t as te}from"./copy-to-clipboard-HOJ79TWv.js";import{a as ne,c as re,i as ie,l as w,n as ae,o as oe,r as se,s as ce,t as le}from"./xml-_d7dTN2Q.js";import{n as ue}from"./mermaid-render-oOellPHt.js";var de=g(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),fe=g(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]);function pe(e,t){this.v=e,this.k=t}function me(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function he(e){if(Array.isArray(e))return e}function ge(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function T(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _e(e,t){return he(e)||ge(e,t)||ve(e,t)||T()}function ve(e,t){if(e){if(typeof e==`string`)return me(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}function ye(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof pe;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}ye.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},ye.prototype.next=function(e){return this._invoke(`next`,e)},ye.prototype.throw=function(e){return this._invoke(`throw`,e)},ye.prototype.return=function(e){return this._invoke(`return`,e)};var be=Object.entries,xe=Object.setPrototypeOf,Se=Object.isFrozen,Ce=Object.getPrototypeOf,we=Object.getOwnPropertyDescriptor,Te=Object.freeze,Ee=Object.seal,De=Object.create,Oe=typeof Reflect<`u`&&Reflect,ke=Oe.apply,Ae=Oe.construct;Te||=function(e){return e},Ee||=function(e){return e},ke||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Ae||=function(e){return new e(...[...arguments].slice(1))};var je=E(Array.prototype.forEach);Array.prototype.indexOf;var Me=E(Array.prototype.lastIndexOf),Ne=E(Array.prototype.pop),Pe=E(Array.prototype.push),Fe=E(Array.prototype.slice),Ie=E(Array.prototype.splice),Le=Array.isArray,Re=tt(Set),ze=E(Set.prototype.add),Be=E(Set.prototype.has),Ve=E(String.prototype.toLowerCase),He=E(String.prototype.toString),Ue=E(String.prototype.match),We=E(String.prototype.replace),Ge=E(String.prototype.indexOf),Ke=E(String.prototype.trim),qe=E(Number.prototype.toString),Je=E(Boolean.prototype.toString),Ye=typeof BigInt>`u`?null:E(BigInt.prototype.toString),Xe=typeof Symbol>`u`?null:E(Symbol.prototype.toString),Ze=E(Object.prototype.hasOwnProperty),Qe=E(Object.prototype.toString),$e=E(RegExp.prototype.test),et=tt(TypeError);function E(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return ke(e,t,n)}}function tt(e){return function(){return Ae(e,[...arguments])}}function D(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ve;if(xe&&xe(e,null),!Le(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Se(t)||(t[r]=e),i=e)}e[i]=!0}return e}function nt(e){for(let t=0;t<e.length;t++)Ze(e,t)||(e[t]=null);return e}function rt(e){let t=De(null);for(let r of be(e)){var n=_e(r,2);let i=n[0],a=n[1];Ze(e,i)&&(Le(a)?t[i]=nt(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=rt(a):t[i]=a)}return t}function it(e){switch(typeof e){case`string`:return e;case`number`:return qe(e);case`boolean`:return Je(e);case`bigint`:return Ye?Ye(e):`0`;case`symbol`:return Xe?Xe(e):`Symbol()`;case`undefined`:return Qe(e);case`function`:case`object`:{if(e===null)return Qe(e);let t=e,n=at(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Qe(e)}return Qe(e)}default:return Qe(e)}}function at(e,t){for(;e!==null;){let n=we(e,t);if(n){if(n.get)return E(n.get);if(typeof n.value==`function`)return E(n.value)}e=Ce(e)}function n(){return null}return n}function ot(e,t){for(;e!==null;){let n=we(e,t);if(n)return n.get?E(n.get):null;e=Ce(e)}return null}function st(e){try{return $e(e,``),!0}catch{return!1}}var ct=Te(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),lt=Te(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),ut=Te([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),dt=Te([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),ft=Te(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),pt=Te([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),mt=Te([`#text`]),ht=Te(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),gt=Te(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),_t=Te(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),vt=Te([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),yt=Ee(/{{[\w\W]*|^[\w\W]*}}/g),bt=Ee(/<%[\w\W]*|^[\w\W]*%>/g),xt=Ee(/\${[\w\W]*/g),St=Ee(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ct=Ee(/^aria-[\-\w]+$/),wt=Ee(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Tt=Ee(/^(?:\w+script|data):/i),Et=Ee(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Dt=Ee(/^html$/i),Ot=Ee(/^[a-z][.\w]*(-[.\w]+)+$/i),kt=Ee(/<[/\w!]/g),At=Ee(/<[/\w]/g),jt=Ee(/<\/no(script|embed|frames)/i),Mt=Ee(/\/>/i),Nt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Pt=Te(D({},[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`])),Ft=function(){return typeof window>`u`?null:window},It=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Lt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Rt=function(e,t,n,r){return Ze(e,t)&&Le(e[t])?D(r.base?rt(r.base):{},e[t],r.transform):n},zt=function(e,t,n){let r=Ze(e,t)?e[t]:void 0;return r&&typeof r==`object`?rt(r):n()};function Bt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ft(),t=e=>Bt(e);if(t.version=`3.4.17`,t.removed=[],!e||!e.document||e.document.nodeType!==Nt.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=at(d,`cloneNode`),p=at(d,`remove`),m=at(d,`removeAttributeNode`),h=at(d,`nextSibling`),g=at(d,`childNodes`),_=at(d,`parentNode`),v=at(d,`shadowRoot`),y=at(d,`attributes`),b=o&&o.prototype?at(o.prototype,`nodeType`):null,x=o&&o.prototype?at(o.prototype,`nodeName`):null,S=o&&o.prototype?at(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},ee=function(e){return x?x(e):e.nodeName},te=ot(d,`namespaceURI`),ne=function(e){return te?te(e):e.namespaceURI};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let re,ie=``,w,ae=!1,oe=0,se=function(){if(oe>0)throw et(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},ce=function(e){se(),oe++;try{return re.createHTML(e)}finally{oe--}},le=function(e){se(),oe++;try{return re.createScriptURL(e)}finally{oe--}},ue=function(){return ae||=(w=It(u,i),!0),w},de=n,fe=de.implementation,pe=de.createNodeIterator,me=de.createDocumentFragment,he=de.getElementsByTagName,ge=r.importNode,T=Lt();t.isSupported=typeof be==`function`&&typeof _==`function`&&fe&&fe.createHTMLDocument!==void 0;let _e=yt,ve=bt,ye=xt,xe=St,Se=Ct,Ce=Tt,we=Et,Oe=Ot,ke=wt,Ae=null,qe=D({},[...ct,...lt,...ut,...ft,...mt]),Je=null,Ye=D({},[...ht,...gt,..._t,...vt]),Xe=Object.seal(De(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Qe=null,E=null,tt=Object.seal(De(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),nt=!0,Vt=!0,Ht=!1,Ut=!0,Wt=!1,Gt=!0,O=!1,Kt=!1,qt=null,Jt=null,Yt=!1,Xt=!1,Zt=!1,Qt=!1,$t=!0,en=!1,tn=`user-content-`,nn=!0,rn=!1,an=null,on={},sn=null,cn=D({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),ln=null,un=D({},[`audio`,`video`,`img`,`source`,`image`,`track`]),dn=null,fn=D({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),pn=`http://www.w3.org/1998/Math/MathML`,mn=`http://www.w3.org/2000/svg`,hn=`http://www.w3.org/1999/xhtml`,gn=hn,_n=!1,vn=null,yn=D({},[pn,mn,hn],He),bn=Te([`mi`,`mo`,`mn`,`ms`,`mtext`]),xn=D({},bn),Sn=Te([`annotation-xml`]),Cn=D({},Sn),wn=D({},[`title`,`style`,`font`,`a`,`script`]),Tn=null,En=[`application/xhtml+xml`,`text/html`],k=null,Dn=null,On=n.createElement(`form`),kn=function(e){return e instanceof RegExp||e instanceof Function},A=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Dn&&Dn===e)return;(!e||typeof e!=`object`)&&(e={}),e=rt(e),Tn=En.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,k=Tn===`application/xhtml+xml`?He:Ve,Ae=Rt(e,`ALLOWED_TAGS`,qe,{transform:k}),Je=Rt(e,`ALLOWED_ATTR`,Ye,{transform:k}),vn=Rt(e,`ALLOWED_NAMESPACES`,yn,{transform:He}),dn=Rt(e,`ADD_URI_SAFE_ATTR`,fn,{transform:k,base:fn}),ln=Rt(e,`ADD_DATA_URI_TAGS`,un,{transform:k,base:un}),sn=Rt(e,`FORBID_CONTENTS`,cn,{transform:k}),Qe=Rt(e,`FORBID_TAGS`,rt({}),{transform:k}),E=Rt(e,`FORBID_ATTR`,rt({}),{transform:k}),on=Ze(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?rt(e.USE_PROFILES):e.USE_PROFILES:!1,nt=e.ALLOW_ARIA_ATTR!==!1,Vt=e.ALLOW_DATA_ATTR!==!1,Ht=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ut=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Wt=e.SAFE_FOR_TEMPLATES||!1,Gt=e.SAFE_FOR_XML!==!1,O=e.WHOLE_DOCUMENT||!1,Xt=e.RETURN_DOM||!1,Zt=e.RETURN_DOM_FRAGMENT||!1,Qt=e.RETURN_TRUSTED_TYPE||!1,Yt=e.FORCE_BODY||!1,$t=e.SANITIZE_DOM!==!1,en=e.SANITIZE_NAMED_PROPS||!1,nn=e.KEEP_CONTENT!==!1,rn=e.IN_PLACE||!1,ke=st(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:wt,gn=typeof e.NAMESPACE==`string`?e.NAMESPACE:hn,xn=zt(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>D({},bn)),Cn=zt(e,`HTML_INTEGRATION_POINTS`,()=>D({},Sn));let t=zt(e,`CUSTOM_ELEMENT_HANDLING`,()=>De(null));if(Xe=De(null),Ze(t,`tagNameCheck`)&&kn(t.tagNameCheck)&&(Xe.tagNameCheck=t.tagNameCheck),Ze(t,`attributeNameCheck`)&&kn(t.attributeNameCheck)&&(Xe.attributeNameCheck=t.attributeNameCheck),Ze(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(Xe.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Ee(Xe),Wt&&(Vt=!1),Zt&&(Xt=!0),on&&(Ae=D({},mt),Je=De(null),on.html===!0&&(D(Ae,ct),D(Je,ht)),on.svg===!0&&(D(Ae,lt),D(Je,gt),D(Je,vt)),on.svgFilters===!0&&(D(Ae,ut),D(Je,gt),D(Je,vt)),on.mathMl===!0&&(D(Ae,ft),D(Je,_t),D(Je,vt))),tt.tagCheck=null,tt.attributeCheck=null,Ze(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?tt.tagCheck=e.ADD_TAGS:Le(e.ADD_TAGS)&&(Ae===qe&&(Ae=rt(Ae)),D(Ae,e.ADD_TAGS,k))),Ze(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?tt.attributeCheck=e.ADD_ATTR:Le(e.ADD_ATTR)&&(Je===Ye&&(Je=rt(Je)),D(Je,e.ADD_ATTR,k))),Ze(e,`ADD_FORBID_CONTENTS`)&&Le(e.ADD_FORBID_CONTENTS)&&(sn===cn&&(sn=rt(sn)),D(sn,e.ADD_FORBID_CONTENTS,k)),nn&&(Ae[`#text`]=!0),O&&D(Ae,[`html`,`head`,`body`]),Ae.table&&(D(Ae,[`tbody`]),delete Qe.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw et(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw et(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=re;re=e.TRUSTED_TYPES_POLICY;try{ie=ce(``)}catch(e){throw re=t,e}}else e.TRUSTED_TYPES_POLICY===null?(re=void 0,ie=``):(re===void 0&&(re=ue()),re&&typeof ie==`string`&&(ie=ce(``)));Te&&Te(e),Dn=e},An=D({},[...lt,...ut,...dt]),jn=D({},[...ft,...pt]),Mn=function(e,t,n){return t.namespaceURI===hn?e===`svg`:t.namespaceURI===pn?e===`svg`&&(n===`annotation-xml`||xn[n]):!!An[e]},Nn=function(e,t,n){return t.namespaceURI===hn?e===`math`:t.namespaceURI===mn?e===`math`&&Cn[n]:!!jn[e]},Pn=function(e,t,n){return t.namespaceURI===mn&&!Cn[n]||t.namespaceURI===pn&&!xn[n]?!1:!jn[e]&&(wn[e]||!An[e])},Fn=function(e){let t=ne(e),n=Ve(ee(e)),r=_(e),i,a;return r&&C(r)===Nt.element?(i={namespaceURI:ne(r)},a=Ve(ee(r))):(i={namespaceURI:gn},a=`template`),vn[t]?t===mn?Mn(n,i,a):t===pn?Nn(n,i,a):t===hn?Pn(n,i,a):!!(Tn===`application/xhtml+xml`&&vn[t]):!1},In=function(e){Pe(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw et(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Ln=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},Rn=function(e){Hn(e);let t=g(e);t&&je(Fe(t),e=>{try{p(e)}catch{}});let n=C(e)===Nt.element?y(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&Ln(e,r,i)}},zn=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Pe(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`)if(Xt||Zt)try{In(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Bn=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||Je[k(i)]||Ln(e,r,i)}},Vn=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(t(e)===!1)continue;if(n&&C(e)===Nt.element){let t=v(e);rr(t)&&r.push(t)}let i=g(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},Hn=function(e){Vn(e,e=>{C(e)===Nt.element&&Bn(e)})},Un=function(e){let t=[];return Vn(e,e=>{t.push(e)},!0),t},Wn=function(e,t){let n=Re();je(Un(e),e=>{C(e)===Nt.element&&ze(n,e)}),je(t,e=>{C(e)===Nt.element&&!Be(n,e)&&Bn(e)})},Gn=function(e,n){let r=!1;return je(t.removed,t=>{t.element&&(r||=t.element===e,Hn(t.element))}),Wn(e,n),r},Kn=function(e,t){let n=an,r=null,i=()=>(r||(r=Re(),je(t,e=>{ze(r,e)})),r);for(let t=0;;t++){let r=Un(e),a=[e],o=!1;if(je(r,e=>{C(e)===Nt.documentFragment?Pe(a,e):!o&&!Be(n,e)&&(o=Be(i(),e))}),!o)return;if(t>=8)throw et(`the tree kept changing during in-place sanitization; refusing to return it`);je(a,(t,n)=>{qn(t,n>0,e,i())})}},qn=function(e,t,n,r){let i=Qn(e),a;for(;a=i.nextNode();)!Be(r,a)||Be(an,a)||(t&&ar(T.uponSanitizeShadowNode,a,null),dr(a,n),vr(a,n),rr(a.content)&&yr(a.content))},Jn=function(e){an&&ze(an,e)},Yn=function(e,t){return Gt?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Xn=function(e){Gt&&Vn(e,e=>{let t=C(e);if(t===Nt.processingInstruction||t===Nt.comment&&$e(At,e.data)){try{p(e)}catch{}return!1}if(t===Nt.element){let t=e,n=k(ee(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&Yn(`for`,n)&&t.removeAttribute(`for`)}catch{}}return!0})},Zn=function(e){let t=null,r=null;if(Yt)e=`<remove></remove>`+e;else{let t=Ue(e,/^[\r\n\t ]+/);r=t&&t[0]}Tn===`application/xhtml+xml`&&gn===hn&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=re?ce(e):e;if(gn===hn)try{t=new l().parseFromString(i,Tn)}catch{}if(!t||!t.documentElement){t=fe.createDocument(gn,`template`,null);try{t.documentElement.innerHTML=_n?ie:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),gn===hn?he.call(t,O?`html`:`body`)[0]:O?t.documentElement:a},Qn=function(e){let t=S?S(e):e.ownerDocument;return pe.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},$n=function(e){return e=We(e,_e,` `),e=We(e,ve,` `),e=We(e,ye,` `),e},er=function(e){tr(e);let t=e.querySelectorAll?.call(e,`template`);t&&je(t,e=>{rr(e.content)&&er(e.content)})},tr=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=pe.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=$n(r.data),r=n.nextNode()},nr=function(e){let t=x?x(e):null;return typeof t!=`string`||k(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},rr=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===Nt.documentFragment}catch{return!1}},ir=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function ar(e,n,r){e.length!==0&&je(e,e=>{e.call(t,n,r,Dn)})}let or=function(e,t){return!!(Gt&&e.hasChildNodes()&&!ir(e.firstElementChild)&&$e(kt,e.textContent)&&$e(kt,e.innerHTML)||Gt&&Pt[t]&&C(e)===Nt.element&&ne(e)===hn&&(ir(e.firstElementChild)||typeof e.textContent==`string`&&$e(kt,e.textContent))||e.nodeType===Nt.processingInstruction||Gt&&e.nodeType===Nt.comment&&$e(At,e.data))},sr=function(e,t){return e instanceof RegExp?$e(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},cr=function(e,t,n){if(!Qe[t]&&mr(t)&&sr(Xe.tagNameCheck,t))return!1;if(nn&&!sn[t]&&!sn[Ve(t)]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return In(e),!0},lr=function(e,t,n,r){return e.length===0?t:t===n||t===r?rt(t):t},ur=function(e,t){return e===t||_(e)!==null?!1:(rn&&Hn(e),!0)},dr=function(e,n){if(Jn(e),ar(T.beforeSanitizeElements,e,null),ur(e,n))return!0;if(nr(e))return In(e),!0;let r=k(ee(e));if(Ae=lr(T.uponSanitizeElement,Ae,qe,qt),ar(T.uponSanitizeElement,e,{tagName:r,allowedTags:Ae}),ur(e,n))return!0;if(or(e,r))return In(e),!0;if(Qe[r]||!(tt.tagCheck instanceof Function&&tt.tagCheck(r))&&!Ae[r]){let t=cr(e,r,n);return t===!1&&(ar(T.afterSanitizeElements,e,null),ur(e,n))?!0:t}if(C(e)===Nt.element&&!Fn(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&$e(jt,e.innerHTML))return In(e),!0;if(Wt&&e.nodeType===Nt.text){let n=$n(e.textContent);e.textContent!==n&&(Pe(t.removed,{element:e.cloneNode()}),e.textContent=n)}return ar(T.afterSanitizeElements,e,null),ur(e,n)},fr=function(e,t,r){if(E[t]||Yn(t,e)||$t&&(t===`id`||t===`name`)&&(r in n||r in On))return!1;let i=Je[t]||tt.attributeCheck instanceof Function&&tt.attributeCheck(t,e);return Vt&&$e(xe,t)||nt&&$e(Se,t)?!0:i?dn[t]||$e(ke,We(r,we,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Ge(r,`data:`)===0&&ln[e]||Ht&&!$e(Ce,We(r,we,``))?!0:!r:mr(e)&&sr(Xe.tagNameCheck,e)&&sr(Xe.attributeNameCheck,t,e)||t===`is`&&Xe.allowCustomizedBuiltInElements&&sr(Xe.tagNameCheck,r)},pr=D({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),mr=function(e){return!pr[Ve(e)]&&$e(Oe,e)},hr=function(e,t,n,r){if(re&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return ce(r);case`TrustedScriptURL`:return le(r)}return r},gr=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),nr(e)?(In(e),!1):!0}catch{return zn(t,e),!1}},_r=function(e,t){return Gt&&$e(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t)?!0:Ve(e)===`attributename`&&Ue(t,`href`)!==null},vr=function(e,n){if(ar(T.beforeSanitizeAttributes,e,null),ur(e,n))return;let r=e.attributes;if(!r||nr(e))return;Je=lr(T.uponSanitizeAttribute,Je,Ye,Jt);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:Je,forceKeepAttr:void 0},a=r.length,o=k(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=k(s),d=l,f=s===`value`?d:Ke(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,ar(T.uponSanitizeAttribute,e,i),f=i.attrValue,en&&(u===`id`||u===`name`)&&Ge(f,tn)!==0&&(zn(s,e,n),f=tn+f,p=!0),_r(s,f)){zn(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){zn(s,e,n);continue}if(!Ut&&$e(Mt,f)){zn(s,e,n);continue}if(Wt&&(f=$n(f)),!fr(o,u,f)){zn(s,e,n);continue}f=hr(o,u,c,f),f!==d&&gr(e,s,c,f)&&p&&Ne(t.removed)}}ar(T.afterSanitizeAttributes,e,null),ur(e,n)},yr=function(e){let t=null,n=Qn(e);for(ar(T.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(ar(T.uponSanitizeShadowNode,t,null),dr(t,e),vr(t,e),rr(t.content)&&yr(t.content),C(t)===Nt.element){let e=v(t);rr(e)&&(br(e),yr(e))}Wt&&tr(e),ar(T.afterSanitizeShadowDOM,e,null)},br=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){yr(e.shadow);continue}let n=e.node,r=C(n)===Nt.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&k(e)===`template`){let e=n.content;rr(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);rr(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(_n=!e,_n&&(e=`<!-->`),typeof e!=`string`&&!ir(e)&&(e=it(e),typeof e!=`string`))throw et(`dirty is not a string, aborting`);if(!t.isSupported)return e;Kt?(Ae=qt,Je=Jt):A(n),(T.uponSanitizeElement.length>0||T.uponSanitizeAttribute.length>0)&&(Ae=rt(Ae)),T.uponSanitizeAttribute.length>0&&(Je=rt(Je)),t.removed=[];let c=rn&&typeof e!=`string`&&ir(e),l=[],u=an;if(c){Xn(e);let t=ee(e);if(typeof t==`string`){let n=k(t);if(!Ae[n]||Qe[n])throw Rn(e),et(`root node is forbidden and cannot be sanitized in-place`)}if(nr(e))throw Rn(e),et(`root node is clobbered and cannot be sanitized in-place`);l=Un(e),an=Re()}else if(ir(e))i=Zn(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Nt.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),br(i);else{if(!Xt&&!Wt&&!O&&e.indexOf(`<`)===-1)return re&&Qt?ce(e):e;if(i=Zn(e),!i)return Xt?null:Qt?ie:``}i&&Yt&&In(i.firstChild);let d=c?e:i;try{c&&br(e);let t=Qn(d);for(;o=t.nextNode();)dr(o,d),vr(o,d),rr(o.content)&&yr(o.content);c&&Kn(e,l)}catch(t){throw c&&(Rn(e),Gn(e,l)),t}finally{an=u}if(c){if(Gn(e,l))throw et(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Wt&&er(e),e}if(Xt){if(Wt&&er(i),Zt)for(s=me.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(Je.shadowroot||Je.shadowrootmode)&&(s=ge.call(r,s,!0)),s}let f=O?i.outerHTML:i.innerHTML;return O&&Ae[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&$e(Dt,i.ownerDocument.doctype.name)&&(f=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
3
+ `+f),Wt&&(f=$n(f)),re&&Qt?ce(f):f},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};A(e),Kt=!0,qt=Ae,Jt=Je},t.clearConfig=function(){Dn=null,Kt=!1,qt=null,Jt=null,re=w,ie=``},t.isValidAttribute=function(e,t,n){Dn||A({});let r=k(e),i=k(t);return typeof n==`string`&&(_r(t,n)||!Ut&&$e(Mt,n))?!1:fr(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Ze(T,e)&&Pe(T[e],t)},t.removeHook=function(e,t){if(Ze(T,e)){if(t!==void 0){let n=Me(T[e],t);return n===-1?void 0:Ie(T[e],n,1)[0]}return Ne(T[e])}},t.removeHooks=function(e){Ze(T,e)&&(T[e]=[])},t.removeAllHooks=function(){T=Lt()},t}var Vt=Bt(),Ht=[`base`,`button`,`embed`,`form`,`iframe`,`input`,`link`,`meta`,`object`,`option`,`select`,`style`,`template`,`textarea`],Ut=[`action`,`formaction`,`id`,`name`,`srcdoc`,`style`];function Wt(e){return Vt.sanitize(e,{USE_PROFILES:{html:!0},FORBID_TAGS:Ht,FORBID_ATTR:Ut})}function Gt(e){let t=e.replace(/@import\s+url\([^)]*\)\s*;?/gi,``);return Vt.sanitize(t,{USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},FORBID_TAGS:[`foreignObject`,`script`],FORBID_ATTR:[`href`,`xlink:href`]})}var O=e(n(),1),Kt=e(r(),1),qt=i();function Jt(e){return e===`/personal`||e===`/automations`||e===`/chat`||e.startsWith(`/chat/`)}function Yt(e,t,n){let r=e?.trim();if(!r||!r.startsWith(`/`)||r.startsWith(`//`)||r.includes(`://`)||r.includes(`\\`))return t;let i=r.split(/[?#]/,1)[0]||`/`;return n.some(e=>i===e||i.startsWith(`${e}/`))?r:t}function Xt(e,t){let n=t?.trim();if(!n)return e;let r=e.indexOf(`#`),i=r>=0?e.slice(0,r):e,a=r>=0?e.slice(r):``;return`${i}${i.includes(`?`)?`&`:`?`}returnTo=${encodeURIComponent(n)}${a}`}var Zt=[`/notes/`,`/tasks/`,`/projects/`];function Qt(e,t){let n=e.split(/[?#]/,1)[0]??``;if(!Zt.some(e=>n.startsWith(e)))return e;let r=e.slice(n.length).split(`#`,1)[0];return new URLSearchParams(r.startsWith(`?`)?r.slice(1):r).has(`returnTo`)?e:Xt(e,t)}var $t=`note`;function en(e,t){let n=new URLSearchParams(t);n.delete($t);let r=n.toString();return r?`${e}?${r}`:e}function tn(e,t){let[n,r=``]=e.split(`?`);if(!Jt(n))return Qt(`/notes/${encodeURIComponent(t)}`,e);let i=new URLSearchParams(r);return i.delete(`task`),i.delete(`preview`),i.set($t,t),`${n}?${i.toString()}`}function nn(e,t){let n=/^\/notes\/([^/?#]+)(?:\?.*)?$/.exec(t);if(!n)return t;let r=new URLSearchParams(t.split(`?`)[1]??``);if(r.has(`edit`)||r.has(`action`))return t;try{return tn(e,decodeURIComponent(n[1]))}catch{return tn(e,n[1])}}var rn=`task`;function an(e){return`/chat/task/${encodeURIComponent(e)}`}function on(e,t){let[n,r=``]=e.split(`?`),i=new URLSearchParams(r);return i.delete(`note`),i.delete(`preview`),i.set(rn,t),`${n}?${i.toString()}`}function sn(e,t){return e.split(`?`)[0]?.startsWith(`/tasks/`)?`/tasks/${encodeURIComponent(t)}`:on(e,t)}function cn(e,t){let n=/^\/tasks\/([^/?#]+)/.exec(t);if(!n)return t;try{return sn(e,decodeURIComponent(n[1]))}catch{return sn(e,n[1])}}function ln(e,t){let n=new URLSearchParams(t);n.delete(rn);let r=n.toString();return r?`${e}?${r}`:e}var un=`preview`;function dn(e){if(!e.startsWith(`/`)||e.startsWith(`//`)||e.includes(`\\`)||e.includes(`#`))return null;let t=new URL(e,`https://xopc.local`);if([`edit`,`copy`,`action`,`draft`,`add`,`autogenerate`].some(e=>t.searchParams.has(e)))return null;let n,r,i;if(i=/^\/projects\/([^/]+)$/.exec(t.pathname))n=`project`,r=i[1];else if(t.pathname===`/automations`&&t.searchParams.get(`automation`))n=`automation`,r=encodeURIComponent(t.searchParams.get(`automation`));else if(i=/^\/local-apps\/([^/]+)$/.exec(t.pathname))n=`local_app`,r=i[1];else if(t.pathname===`/open`&&t.searchParams.get(`kind`)===`local_app`&&t.searchParams.get(`id`))n=`local_app`,r=encodeURIComponent(t.searchParams.get(`id`));else return null;let a;try{a=decodeURIComponent(r)}catch{return null}if(!a.trim())return null;let o=t.searchParams.get(`agentId`)||t.searchParams.get(`agent`)||void 0,s=t.searchParams.get(`sourceHash`)||void 0,c=new URLSearchParams(t.searchParams);for(let e of[`def`,`agent`,`returnTo`])c.delete(e);n!==`automation`&&c.delete(`run`),o&&c.set(`agentId`,o);let l=n===`project`?`/projects/${encodeURIComponent(a)}`:n===`automation`?`/automations`:`/local-apps/${encodeURIComponent(a)}`;return n===`automation`&&c.set(`automation`,a),n===`local_app`&&(c.delete(`kind`),c.delete(`id`)),l+=c.size?`?${c.toString()}`:``,{kind:n,id:a,href:l,ownerAgentId:o,sourceHash:s,...n===`automation`&&(c.get(`view`)===`run`||c.get(`run`))?{view:`run`,runId:c.get(`run`)||void 0}:{}}}function fn(e,t){let n=new URLSearchParams(t);return n.delete(un),`${e}${n.size?`?${n.toString()}`:``}`}function pn(e,t){let[n,r=``]=e.split(`?`),i=Jt(n)?dn(t):null;if(!i)return nn(e,cn(e,t));let a=new URLSearchParams(r);return a.delete(`note`),a.delete(`task`),a.set(un,i.href),`${n}?${a.toString()}`}function mn(){let e=(0,qt.c)(4),t=o(),n=s(),r;return e[0]!==t.pathname||e[1]!==t.search||e[2]!==n?(r=async e=>{let r=C(e);if(r.kind===`internal-route`){let e=`${t.pathname}${t.search}`;return n(Qt(pn(e,r.route),e)),{ok:!0,kind:r.kind}}if(r.kind===`external-http`){let e=await S(r.url);return e.ok?{ok:!0,kind:r.kind}:e}return{ok:!1,error:`Unsupported link`}},e[0]=t.pathname,e[1]=t.search,e[2]=n,e[3]=r):r=e[3],r}function hn(e,t){let n=0;for(;t>0&&e[--t]===`\\`;)n++;return n%2==1}function gn(e,t,n,r){let i=!1;for(let a=t;a<e.length;a++){if(e[a]===`
4
+ `||e[a]===`\r`){if(r)return-1;i=!1}if(!i){if(e[a]===`%`&&!hn(e,a)){i=!0;continue}if(e.startsWith(n,a)&&!hn(e,a))return a}}return-1}function _n(e,t=0){if(hn(e,t))return;let n=e.startsWith(`\\(`,t);if(!n&&(e[t]!==`$`||e[t+1]===`$`||e[t-1]===`$`))return;let r=n?2:1,i=t+r;if(n&&/^xopc:\/\//i.test(e.slice(i))||!n&&(!e[i]||/\s/.test(e[i])))return;let a=gn(e,i,n?`\\)`:`$`,!0);if(a===-1){if(!n)return;let r=e.slice(i).search(/[\r\n]/),a=r<0?e.length:i+r;return{raw:e.slice(t,a),latex:e.slice(i,a),display:!1,delimiter:`paren`,state:`pending`,range:{start:t,end:a}}}let o=e.slice(i,a);if(!n&&(!o||/\s$/.test(o)||/\d/.test(e[a+1]??``)||e[a+1]===`$`||/^[\d\s.,+\-€£¥¥]+$/.test(o)))return;let s=a+r;return{raw:e.slice(t,s),latex:o,display:!1,delimiter:n?`paren`:`dollar`,state:`complete`,range:{start:t,end:s}}}function vn(e,t=0){let n=/^( {0,3})(\\\[|\$\$)/.exec(e.slice(t));if(!n)return;let r=t+n[0].length,i=n[2]===`\\[`,a=gn(e,r,i?`\\]`:`$$`,!1);if(a>=0){let n=a+2,o=e.slice(n).match(/^[^\r\n]*/)?.[0]??``;return o.trim()?void 0:{raw:e.slice(t,n+o.length),latex:e.slice(r,a),display:!0,delimiter:i?`bracket`:`double-dollar`,state:`complete`,range:{start:t,end:n+o.length}}}if(!(!i&&/^\S.*\$\$/.test(e.slice(r).split(/\r?\n/,1)[0])))return{raw:e.slice(t),latex:e.slice(r),display:!0,delimiter:i?`bracket`:`double-dollar`,state:`pending`,range:{start:t,end:e.length}}}function yn(e,t,n=!0){return{raw:e,latex:t,display:!0,delimiter:`math-fence`,state:n?`complete`:`pending`,range:{start:0,end:e.length}}}function bn(e){let t=/^ {0,3}(`{3,}|~{3,})math[^\S\r\n]*(?:\r?\n|$)/.exec(e);if(!t)return;let n=t[1],r=t[0].length;for(;r<e.length;){let i=e.indexOf(`
5
+ `,r),a=i<0?e.length:i,o=e.slice(r,a).replace(/\r$/,``),s=/^ {0,3}(`{3,}|~{3,})\s*$/.exec(o);if(s&&s[1][0]===n[0]&&s[1].length>=n.length)return yn(e.slice(0,a),e.slice(t[0].length,r).replace(/\r?\n$/,``));if(i<0)break;r=i+1}return yn(e,e.slice(t[0].length),!1)}function xn(e){return e.replace(/[&<>"']/g,e=>({"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`})[e])}function Sn(e){return encodeURIComponent(JSON.stringify(e))}function Cn(e){try{let t=JSON.parse(decodeURIComponent(e));return typeof t.raw!=`string`||typeof t.latex!=`string`||typeof t.display!=`boolean`||![`pending`,`complete`].includes(t.state)||![`paren`,`dollar`,`bracket`,`double-dollar`,`math-fence`].includes(t.delimiter)?void 0:t}catch{return}}function wn(e){let t=`<code class="${e.display?`math-display`:`math-inline`}" data-xopc-math-source="${xn(Sn(e))}">${xn(e.raw)}</code>`;return e.display?`<pre>${t}</pre>\n`:t}var Tn={walkTokens(e){if(e.type!==`image`)return;function t(e){e.type===`xopcMathInline`&&(e.type=`text`,e.text=e.source.raw,e.escaped=!1);for(let n of e.tokens??[])t(n)}for(let n of e.tokens??[])t(n)},extensions:[{name:`xopcMathBlock`,level:`block`,start:e=>{let t=e.search(/(?:^|\n) {0,3}(?:\\\[|\$\$)/);return t<0?void 0:t},tokenizer(e){let t=vn(e);if(t)return{type:`xopcMathBlock`,raw:t.raw,source:t}},renderer(e){return wn(e.source)}},{name:`xopcMathInline`,level:`inline`,start:e=>{let t=e.search(/\\\(|\$/);return t<0?void 0:t},tokenizer(e){let t=_n(e);if(t)return{type:`xopcMathInline`,raw:t.raw,source:t}},renderer(e){return wn(e.source)}}]};function En(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var k=En();function Dn(e){k=e}var On={exec:()=>null};function kn(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function A(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(jn.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var An=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),jn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:kn(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:kn(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:kn(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:kn(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:kn(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:kn(e=>RegExp(`^ {0,${e}}>`))},Mn=/^(?:[ \t]*(?:\n|$))+/,Nn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Pn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Fn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,In=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ln=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Rn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,zn=A(Rn).replace(/bull/g,Ln).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Bn=A(Rn).replace(/bull/g,Ln).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Vn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Hn=/^[^\n]+/,Un=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Wn=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Un).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Gn=A(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ln).getRegex(),Kn=`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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,qn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Jn=A(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,qn).replace(`tag`,Kn).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Yn=A(Vn).replace(`hr`,Fn).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Kn).getRegex(),Xn={blockquote:A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Yn).getRegex(),code:Nn,def:Wn,fences:Pn,heading:In,hr:Fn,html:Jn,lheading:zn,list:Gn,newline:Mn,paragraph:Yn,table:On,text:Hn},Zn=A(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Fn).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Kn).getRegex(),Qn={...Xn,lheading:Bn,table:Zn,paragraph:A(Vn).replace(`hr`,Fn).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Zn).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Kn).getRegex()},$n={...Xn,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,qn).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:On,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(Vn).replace(`hr`,Fn).replace(`heading`,` *#{1,6} *[^
6
+ ]`).replace(`lheading`,zn).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},er=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,tr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,nr=/^( {2,}|\\)\n(?!\s*$)/,rr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ir=/[\p{P}\p{S}]/u,ar=/[\s\p{P}\p{S}]/u,or=/[^\s\p{P}\p{S}]/u,sr=A(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,ar).getRegex(),cr=/(?!~)[\p{P}\p{S}]/u,lr=/(?!~)[\s\p{P}\p{S}]/u,ur=/(?:[^\s\p{P}\p{S}]|~)/u,dr=A(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,An?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),fr=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,pr=A(fr,`u`).replace(/punct/g,ir).getRegex(),mr=A(fr,`u`).replace(/punct/g,cr).getRegex(),hr=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,gr=A(hr,`gu`).replace(/notPunctSpace/g,or).replace(/punctSpace/g,ar).replace(/punct/g,ir).getRegex(),_r=A(hr,`gu`).replace(/notPunctSpace/g,ur).replace(/punctSpace/g,lr).replace(/punct/g,cr).getRegex(),vr=A(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,or).replace(/punctSpace/g,ar).replace(/punct/g,ir).getRegex(),yr=A(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,ir).getRegex(),br=A(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,or).replace(/punctSpace/g,ar).replace(/punct/g,ir).getRegex(),xr=A(/\\(punct)/,`gu`).replace(/punct/g,ir).getRegex(),Sr=A(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Cr=A(qn).replace(`(?:-->|$)`,`-->`).getRegex(),wr=A(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Cr).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Tr=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Er=A(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,Tr).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Dr=A(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Tr).replace(`ref`,Un).getRegex(),Or=A(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Un).getRegex(),kr=A(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Dr).replace(`nolink`,Or).getRegex(),Ar=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,jr={_backpedal:On,anyPunctuation:xr,autolink:Sr,blockSkip:dr,br:nr,code:tr,del:On,delLDelim:On,delRDelim:On,emStrongLDelim:pr,emStrongRDelimAst:gr,emStrongRDelimUnd:vr,escape:er,link:Er,nolink:Or,punctuation:sr,reflink:Dr,reflinkSearch:kr,tag:wr,text:rr,url:On},Mr={...jr,link:A(/^!?\[(label)\]\((.*?)\)/).replace(`label`,Tr).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,Tr).getRegex()},Nr={...jr,emStrongRDelimAst:_r,emStrongLDelim:mr,delLDelim:yr,delRDelim:br,url:A(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,Ar).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:A(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,Ar).getRegex()},Pr={...Nr,br:A(nr).replace(`{2,}`,`*`).getRegex(),text:A(Nr.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Fr={normal:Xn,gfm:Qn,pedantic:$n},Ir={normal:jr,gfm:Nr,breaks:Pr,pedantic:Mr},Lr={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Rr=e=>Lr[e];function zr(e,t){if(t){if(jn.escapeTest.test(e))return e.replace(jn.escapeReplace,Rr)}else if(jn.escapeTestNoEncode.test(e))return e.replace(jn.escapeReplaceNoEncode,Rr);return e}function Br(e){try{e=encodeURI(e).replace(jn.percentDecode,`%`)}catch{return null}return e}function Vr(e,t){let n=e.replace(jn.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(jn.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(jn.slashPipe,`|`);return n}function Hr(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Ur(e){let t=e.split(`
7
+ `),n=t.length-1;for(;n>=0&&jn.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
8
+ `)}function Wr(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Gr(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function Kr(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function qr(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
9
9
  `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
10
- `)}var qr=class{options;rules;lexer;constructor(e){this.options=e||Tn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:Hr(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Kr(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Vr(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:Vr(t[0],`
11
- `),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Vr(t[0],`
12
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Vr(t[0],`
10
+ `)}var Jr=class{options;rules;lexer;constructor(e){this.options=e||k}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:Ur(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=qr(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Hr(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:Hr(t[0],`
11
+ `),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Hr(t[0],`
12
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Hr(t[0],`
13
13
  `).split(`
14
14
  `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
15
15
  `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
@@ -20,20 +20,20 @@ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
20
20
  `),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
21
21
  `+e.join(`
22
22
  `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
23
- `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Wr(t[2].split(`
23
+ `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Gr(t[2].split(`
24
24
  `,1)[0],t[1].length),l=e.split(`
25
25
  `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
26
26
  `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
27
27
  `,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
28
28
  `+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
29
29
  `+l}u=!l.trim(),r+=p+`
30
- `,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1;if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=Hr(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:Vr(t[0],`
31
- `),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Br(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
32
- `):[],a={type:`table`,raw:Vr(t[0],`
33
- `),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Br(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:Vr(t[0],`
30
+ `,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1;if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=Ur(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:Hr(t[0],`
31
+ `),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Vr(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
32
+ `):[],a={type:`table`,raw:Hr(t[0],`
33
+ `),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Vr(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:Hr(t[0],`
34
34
  `),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
35
- `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Vr(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Ur(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),Gr(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return Gr(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},Jr=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Tn,this.options.tokenizer=this.options.tokenizer||new qr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:An,block:Pr.normal,inline:Fr.normal};this.options.pedantic?(t.block=Pr.pedantic,t.inline=Fr.pedantic):this.options.gfm&&(t.block=Pr.gfm,this.options.breaks?t.inline=Fr.breaks:t.inline=Fr.gfm),this.tokenizer.rules=t}static get rules(){return{block:Pr,inline:Fr}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(An.carriageReturn,`
36
- `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(An.tabCharGlobal,` `).replace(An.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
35
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Hr(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Wr(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),Kr(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return Kr(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},Yr=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||k,this.options.tokenizer=this.options.tokenizer||new Jr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:jn,block:Fr.normal,inline:Ir.normal};this.options.pedantic?(t.block=Fr.pedantic,t.inline=Ir.pedantic):this.options.gfm&&(t.block=Fr.gfm,this.options.breaks?t.inline=Ir.breaks:t.inline=Ir.gfm),this.tokenizer.rules=t}static get rules(){return{block:Fr,inline:Ir}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(jn.carriageReturn,`
36
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(jn.tabCharGlobal,` `).replace(jn.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
37
37
  `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
38
38
  `)?``:`
39
39
  `)+i.raw,n.text+=`
@@ -46,9 +46,9 @@ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
46
46
  `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
47
47
  `)?``:`
48
48
  `)+i.raw,n.text+=`
49
- `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``,s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},Yr=class{options;parser;constructor(e){this.options=e||Tn}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(An.notSpaceStart)?.[0],i=e.replace(An.endingNewline,``)+`
50
- `;return r?`<pre><code class="language-`+Rr(r)+`">`+(n?i:Rr(i,!0))+`</code></pre>
51
- `:`<pre><code>`+(n?i:Rr(i,!0))+`</code></pre>
49
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``,s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},Xr=class{options;parser;constructor(e){this.options=e||k}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(jn.notSpaceStart)?.[0],i=e.replace(jn.endingNewline,``)+`
50
+ `;return r?`<pre><code class="language-`+zr(r)+`">`+(n?i:zr(i,!0))+`</code></pre>
51
+ `:`<pre><code>`+(n?i:zr(i,!0))+`</code></pre>
52
52
  `}blockquote({tokens:e}){return`<blockquote>
53
53
  ${this.parser.parse(e)}</blockquote>
54
54
  `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
@@ -64,8 +64,8 @@ ${this.parser.parse(e)}</blockquote>
64
64
  `}tablerow({text:e}){return`<tr>
65
65
  ${e}</tr>
66
66
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
67
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Rr(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=zr(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+Rr(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=zr(e);if(i===null)return Rr(n);e=i;let a=`<img src="${e}" alt="${Rr(n)}"`;return t&&(a+=` title="${Rr(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Rr(e.text)}},Xr=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},Zr=class e{options;renderer;textRenderer;constructor(e){this.options=e||Tn,this.options.renderer=this.options.renderer||new Yr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Xr}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},Qr=class{options;block;constructor(e){this.options=e||Tn}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Jr.lex:Jr.lexInline}provideParser(e=this.block){return e?Zr.parse:Zr.parseInline}},$r=class{defaults=wn();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Zr;Renderer=Yr;TextRenderer=Xr;Lexer=Jr;Tokenizer=qr;Hooks=Qr;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Yr(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new qr(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Qr;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];Qr.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&Qr.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Jr.lex(e,t??this.defaults)}parser(e,t){return Zr.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?Jr.lex:Jr.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?Zr.parse:Zr.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?Jr.lex:Jr.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?Zr.parse:Zr.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
68
- Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Rr(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},ei=new $r;function j(e,t){return ei.parse(e,t)}j.options=j.setOptions=function(e){return ei.setOptions(e),j.defaults=ei.defaults,En(j.defaults),j},j.getDefaults=wn,j.defaults=Tn,j.use=function(...e){return ei.use(...e),j.defaults=ei.defaults,En(j.defaults),j},j.walkTokens=function(e,t){return ei.walkTokens(e,t)},j.parseInline=ei.parseInline,j.Parser=Zr,j.parser=Zr.parse,j.Renderer=Yr,j.TextRenderer=Xr,j.Lexer=Jr,j.lexer=Jr.lex,j.Tokenizer=qr,j.Hooks=Qr,j.parse=j,j.options,j.setOptions,j.use,j.walkTokens,j.parseInline,Zr.parse,Jr.lex;function ti(e){if(typeof e==`function`&&(e={highlight:e}),!e||typeof e.highlight!=`function`)throw Error(`Must provide highlight function`);return typeof e.langPrefix!=`string`&&(e.langPrefix=`language-`),typeof e.emptyLangClass!=`string`&&(e.emptyLangClass=``),{async:!!e.async,walkTokens(t){if(t.type!==`code`)return;let n=ni(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||``)).then(ri(t));let r=e.highlight(t.text,n,t.lang||``);if(r instanceof Promise)throw Error(`markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.`);ri(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t==`object`&&(r=t.escaped,n=t.lang,t=t.text);let i=ni(n),a=i?e.langPrefix+ui(i):e.emptyLangClass,o=a?` class="${a}"`:``;return t=t.replace(/\n$/,``),`<pre><code${o}>${r?t:ui(t,!0)}\n</code></pre>`}}}}function ni(e){return(e||``).match(/\S*/)[0]}function ri(e){return t=>{typeof t==`string`&&t!==e.text&&(e.escaped=!0,e.text=t)}}var ii=/[&<>"']/,ai=new RegExp(ii.source,`g`),oi=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,si=new RegExp(oi.source,`g`),ci={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},li=e=>ci[e];function ui(e,t){if(t){if(ii.test(e))return e.replace(ai,li)}else if(oi.test(e))return e.replace(si,li);return e}function di(e){return e.replace(/\\([\\_()[\]*])/g,`$1`).replace(/&(?:amp|#0*38|#x0*26);/gi,`&`)}var fi={walkTokens(e){if(e.type!==`link`)return;let t=di(e.href);if(!/^xopc:\/\//i.test(t))return;let n=S(t,`https://xopc.local/`);n.kind===`internal-route`&&(e.href=`#${n.route}`)},extensions:[{name:`xopcLink`,level:`inline`,start(e){let t=e.search(/xopc:\/\/|\[[^\]\n]+\]\\\(xopc:\/\//i);return t<0?void 0:t},tokenizer(e){if(this.lexer.state.inLink)return;let t=/^\[([^\]\n]+)\]\\\((xopc:\/\/[^\s<>]+?)\\\)/i.exec(e),n=/^(?:xopc:\/\/)[^\s<>\[\]()"',。;!?、]+/i.exec(e),r=t?.[0]??n?.[0]?.replace(/[.,;!?]+$/,``);if(!r)return;let i=di(t?.[2]??r),a=di(t?.[1]??r);return{type:`link`,raw:r,href:i,text:a,title:null,tokens:[{type:`text`,raw:a,text:a.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}]}}}]};w.registerLanguage(`bash`,ne),w.registerLanguage(`css`,se),w.registerLanguage(`html`,ce),w.registerLanguage(`javascript`,ae),w.registerLanguage(`json`,te),w.registerLanguage(`markdown`,re),w.registerLanguage(`md`,re),w.registerLanguage(`plaintext`,oe),w.registerLanguage(`typescript`,ie),w.registerLanguage(`xml`,ce),w.registerAliases([`js`,`jsx`],{languageName:`javascript`}),w.registerAliases([`ts`,`tsx`],{languageName:`typescript`}),w.registerAliases([`sh`,`shell`,`zsh`],{languageName:`bash`});function pi(e){return new $r(fi,Cn,ti({emptyLangClass:`hljs`,langPrefix:`hljs language-`,highlight(e,t){if(t?.trim()===`math`||t?.trim()===`chart`)return e;let n=(t??``).trim()||`plaintext`,r=w.getLanguage(n)?n:`plaintext`;return w.highlight(e,{language:r}).value}}),{renderer:{code(t){if(e&&t.lang?.trim().split(/\s+/)[0]===`chart`)return e(t);if(t.lang?.trim()!==`math`)return!1;let n=vn(t.raw);return n?Sn(n):!1},html({text:e}){return gi(e)}},extensions:[{name:`punctuationBoundStrong`,level:`inline`,start(e){let t=e.indexOf(`**`);return t>=0?t:void 0},tokenizer(e){return yi(e,e=>this.lexer.inlineTokens(e))}}]})}var mi=pi();function hi(e,t){let n=[];return{html:pi(e=>{let t=e.raw.trimEnd().split(/\r?\n/),r=t[0]?.match(/^ {0,3}(`{3,}|~{3,})[ \t]*chart(?:\s|$)/)?.[1],i=t.at(-1)?.match(/^ {0,3}(`{3,}|~{3,})[ \t]*$/)?.[1],a=!!(t.length>1&&r&&i&&r[0]===i[0]&&i.length>=r.length);return`<div data-md-chart="${n.push({source:e.text,closed:a})-1}"></div>`}).parse(e,{...bi,...t,async:!1}),charts:n}}function gi(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`)}var _i=/^\p{P}$/u;function vi(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function yi(e,t){if(!e.startsWith(`**`)||e.startsWith(`***`))return;let n=0;for(let r=2;r<e.length-1;){if(e[r]===`\\`){r+=2;continue}if(e[r]==="`"){let t=r+1;for(;e[t]==="`";)t+=1;let i=t-r;n===0?n=i:n===i&&(n=0),r=t;continue}if(n===0&&e.startsWith(`**`,r)&&e[r+2]!==`*`&&!vi(e,r)){let n=e.slice(2,r),i=Array.from(n)[0]??``,a=Array.from(n).at(-1)??``;return n.length>0&&!/^\s|\s$/u.test(n)&&(_i.test(i)||_i.test(a))?{type:`strong`,raw:e.slice(0,r+2),text:n,tokens:t(n)}:void 0}r+=1}}var bi={gfm:!0,breaks:!1,async:!1};function xi(e,t){return mi.parse(e,{...bi,...t,async:!1})}var Si=new Map,Ci=new Set;function wi(){return typeof performance>`u`?Date.now():performance.now()}function Ti(e){return null}function Ei(e){let t=Ti(e);t&&(t.active=!0,Ci.add(e))}function Di(e){let t=Si.get(e);t&&(t.active=!1,Ci.delete(e))}function Oi(e,t){let n=Ti(e);n&&(n.deltaCount+=1,n.latestContentLength=t)}function ki(e,t){let n=Ti(e);if(!n)return;let r=wi();n.commitCount+=1,n.firstCommitAt??=r,n.lastCommitAt=r,n.latestContentLength=t}function Ai(e,t){let n=Ti(e);n&&(n.parseCount+=1,n.totalParseMs+=t,n.latestParseMs=t,n.longestParseMs=Math.max(n.longestParseMs,t),n.parseSamples.push(t),n.parseSamples.length>200&&n.parseSamples.shift())}function ji(e){return Si.get(e)?.latestParseMs??0}var Mi=`png|jpe?g|gif|webp|bmp|svg|pdf|docx?|xlsx?|pptx?|csv|tsv|txt|md|json|html?|css|mjs?|cjs|jsx|js|tsx|ts|yaml|yml|toml|xml|zip|mp3|wav|ogg|m4a|mp4|mov|webm`,Ni=String.raw`[\p{L}\p{N}_.()()【】-]`,Pi=new RegExp(String.raw`((?:\.\/)?(?:${Ni}+\/)+${Ni}+\.(?:${Mi})(?::\d+|#L\d+)?)`,`giu`),Fi=new RegExp(String.raw`(\/(?:Users|usr|var|opt|tmp|home|root|System|private|dev|media|mnt|Volumes|data)\/[^\s"'<>()|*?\n]+?\.(?:${Mi})(?::\d+|#L\d+)?)`,`gi`),Ii=new RegExp(String.raw`([A-Za-z]:[\\/][^"'<>()\n|*?=]+?\.(?:${Mi})(?::\d+|#L\d+)?)`,`gi`),Li=new RegExp(String.raw`(${Ni}+\.(?:${Mi})(?::\d+|#L\d+)?)`,`giu`);function Ri(e){try{let t=new URL(e);return t.protocol!==`xopc:`||t.hostname!==`workspace`||t.pathname!==`/file`||!t.searchParams.get(`path`)?.trim()?null:`/xopc/workspace/file${t.search}${t.hash}`}catch{return null}}function zi(e,t=!0,n=!1){let r=String.raw`xopc:\/\/workspace\/file[^\s[\]()<>"']*`,i=new RegExp(r,`gi`),a=n?/\[([^\]\n]*)\]\(([^)\n]+)\)/g:/(?<!!)\[([^\]\n]*)\]\(([^)\n]+)\)/g;return(t?e.replace(a,(e,t,n)=>{let r=Bi(n.trim().replace(/^<|>$/g,``));if(!r)return e;let i=/^xopc:\/\//i.test(t.trim())?`Open in xopc`:t,a=new URLSearchParams({path:r.path});return r.line&&a.set(`line`,String(r.line)),`[${i}](/xopc/workspace/file?${a.toString()})`}):e).replace(i,e=>Ri(e)??e)}function Bi(e){let t=e.trim();if(!t)return null;if(t.startsWith(`xopc://workspace/file`)||t.startsWith(`/xopc/workspace/file`))try{let e=t.startsWith(`/xopc/`)?new URL(t,`https://xopc.local`):new URL(t),n=e.searchParams.get(`path`)?.trim()??``;if(!n)return null;t=n;let r=Number(e.searchParams.get(`line`)??``),i=Number.isFinite(r)&&r>0?Math.floor(r):void 0,a=Ui(t);return a?{...a,...i?{line:i}:{}}:Hi(t,i)}catch{return null}let n=Vi(t);return n?(t=n,Ui(t)||(/^[a-z][a-z0-9+.-]*:/i.test(t)||t.startsWith(`/`)||t.startsWith(`\\`)?null:Hi(t))):null}function Vi(e){let t=e.trim();if(!t)return null;if(/^file:/i.test(t))try{let e=new URL(t);if(e.protocol!==`file:`||e.hostname&&e.hostname!==`localhost`)return null;t=decodeURIComponent(e.pathname),/^\/[A-Za-z]:\//.test(t)&&(t=t.slice(1)),e.hash&&(t+=e.hash)}catch{return null}else try{t=decodeURIComponent(t)}catch{}return t}function Hi(e,t){let n=e.trim().replace(/\\/g,`/`);if(!n)return null;let r=t,i=n.match(/#L(\d+)$/i);if(i?.[1])r=Number(i[1]),n=n.slice(0,-i[0].length);else{let e=n.match(/:(\d+)$/);e?.[1]&&(r=Number(e[1]),n=n.slice(0,-e[0].length))}return n=n.replace(/^\.\//,``),!n||n.startsWith(`/`)||/^[A-Za-z]:/.test(n)||!new RegExp(String.raw`\.(?:${Mi})$`,`i`).test(n)?null:{path:n,line:Number.isFinite(r)&&r&&r>0?Math.floor(r):void 0,kind:`workspace-relative`}}function Ui(e){let t=e.trim().replace(/\\/g,`/`);if(!t||/^[A-Za-z]:\/{2,}/.test(t)||!(t.startsWith(`~/`)||t.startsWith(`/`)||/^[A-Za-z]:\//.test(t)))return null;let n,r=t.match(/#L(\d+)$/i);if(r?.[1])n=Number(r[1]),t=t.slice(0,-r[0].length);else{let e=t.match(/:(\d+)$/);e?.[1]&&(n=Number(e[1]),t=t.slice(0,-e[0].length))}return new RegExp(String.raw`\.(?:${Mi})$`,`i`).test(t)?{path:t,line:Number.isFinite(n)&&n&&n>0?Math.floor(n):void 0,kind:`absolute`}:null}function Wi(e){let t=[],n=[Fi,Ii,Pi,Li];for(let r of n){r.lastIndex=0;let n;for(;(n=r.exec(e))!==null;){let r=n[1];if(!r)continue;let i=n.index,a=i+r.length,o=e[i-1]??``;if(o===`:`||o===`@`)continue;let s=e[a]??``;if(s&&/[\p{L}\p{N}_]/u.test(s))continue;let c=Bi(r);c&&(c.kind===`workspace-relative`&&o===`/`||t.push({raw:r,start:i,end:a,target:c}))}}t.sort((e,t)=>e.start-t.start||t.end-e.end);let r=[],i=-1;for(let e of t)e.start<i||(r.push(e),i=e.end);return r}function Gi(e){let t=e.parentElement;return!t||!!t.closest(`a, code, pre, kbd, samp, textarea, script, style, [data-xopc-math], [data-xopc-inline-file]`)}function Ki(e){let t=e.ownerDocument,n=t.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(e){return!(e instanceof Text)||Gi(e)?NodeFilter.FILTER_REJECT:Wi(e.data).length>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r=[],i;for(;i=n.nextNode();)r.push(i);for(let e of r){let n=e.data,r=Wi(n);if(r.length===0)continue;let i=t.createDocumentFragment(),a=0;for(let e of r){e.start>a&&i.appendChild(t.createTextNode(n.slice(a,e.start)));let r=t.createElement(`a`);r.href=`#`,r.className=`markdown-file-link`,r.dataset.xopcFilePath=e.target.path,r.dataset.xopcFileKind=e.target.kind,e.target.line&&(r.dataset.xopcLine=String(e.target.line)),r.textContent=e.raw,i.appendChild(r),a=e.end}a!==0&&(a<n.length&&i.appendChild(t.createTextNode(n.slice(a))),e.parentNode?.replaceChild(i,e))}}var qi=`#ffffff`,Ji=`#27272a`,Yi=`#2563eb`,Xi=`#d4d4d8`,Zi=8192,Qi=32e6,$i=2;function ea(e,t){return Number.isFinite(e)&&e>0?e:t}function ta(e){let t=(e.getAttribute(`viewBox`)??``).trim().split(/[\s,]+/).map(Number);return t.length===4&&t.every(Number.isFinite)?{width:ea(t[2],800),height:ea(t[3],600)}:{width:ea(Number.parseFloat(e.getAttribute(`width`)??``),800),height:ea(Number.parseFloat(e.getAttribute(`height`)??``),600)}}function na(e,t,n){let r=document.createElement(`span`);r.setAttribute(`aria-hidden`,`true`),r.style.position=`absolute`,r.style.visibility=`hidden`,r.style.pointerEvents=`none`,r.style.color=`var(${t}, ${n})`,e.appendChild(r);let i=getComputedStyle(r).color.trim();return r.remove(),i&&!i.includes(`var(`)?i:n}function ra(e){e.querySelectorAll(`script, foreignObject`).forEach(e=>e.remove()),e.querySelectorAll(`*`).forEach(e=>{e.removeAttribute(`href`),e.removeAttributeNS(`http://www.w3.org/1999/xlink`,`href`)}),e.querySelectorAll(`style`).forEach(e=>{e.textContent=(e.textContent??``).replace(/@import\s+url\([^)]*\)\s*;?/gi,``)})}function ia(e,t){let{width:n,height:r}=ta(e),i=na(t,`--color-surface-hover`,qi),a=na(t,`--color-fg`,Ji),o=na(t,`--color-accent-fg`,Yi),s=na(t,`--color-edge`,Xi),c=e.cloneNode(!0);ra(c),c.setAttribute(`xmlns`,`http://www.w3.org/2000/svg`),c.setAttribute(`width`,String(n)),c.setAttribute(`height`,String(r)),c.style.setProperty(`--bg`,i),c.style.setProperty(`--fg`,a),c.style.setProperty(`--accent`,o),c.style.setProperty(`--border`,s);let l=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`);return l.setAttribute(`width`,`100%`),l.setAttribute(`height`,`100%`),l.setAttribute(`fill`,i),l.setAttribute(`data-mermaid-export-background`,``),c.insertBefore(l,c.firstChild),{svg:new XMLSerializer().serializeToString(c),width:n,height:r,background:i}}function aa(e,t,n=$i){let r=ea(e,800),i=ea(t,600),a=ea(n,$i),o=Math.min(a,Zi/r,Zi/i,Math.sqrt(Qi/(r*i)));return{width:Math.max(1,Math.floor(r*o)),height:Math.max(1,Math.floor(i*o)),scale:o}}function oa(e){return new Blob([e.svg],{type:`image/svg+xml;charset=utf-8`})}function sa(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),window.setTimeout(()=>URL.revokeObjectURL(n),0)}function ca(e){let t=URL.createObjectURL(e);return new Promise((e,n)=>{let r=new Image;r.onload=()=>e({image:r,url:t}),r.onerror=()=>{URL.revokeObjectURL(t),n(Error(`mermaid_svg_load_failed`))},r.src=t})}function la(e){return new Promise((t,n)=>{e.toBlob(e=>{e?t(e):n(Error(`mermaid_png_encode_failed`))},`image/png`)})}async function ua(e){await document.fonts?.ready;let t=aa(e.width,e.height),{image:n,url:r}=await ca(oa(e));try{let r=document.createElement(`canvas`);r.width=t.width,r.height=t.height;let i=r.getContext(`2d`);if(!i)throw Error(`mermaid_canvas_unavailable`);return i.fillStyle=e.background,i.fillRect(0,0,r.width,r.height),i.drawImage(n,0,0,r.width,r.height),await la(r)}finally{URL.revokeObjectURL(r)}}async function da(e,t){sa(await ua(e),t)}function fa(e,t){sa(oa(e),t)}var pa=/^(?:(?:flowchart|graph)\s+(?:TD|TB|LR|BT|RL)\b|stateDiagram(?:-v2)?\b|sequenceDiagram\b|classDiagram\b|erDiagram\b|xychart(?:-beta)?\b)/i;function ma(e){let t=e.trimStart().split(/[\r\n;]/,1)[0]?.trim()??``;return pa.test(t)}var M=i(),ha=.25,ga=4,_a=.25;function va({preview:e,labels:t,onClose:n}){let r=(0,k.useRef)(null),[i,a]=(0,k.useState)(1),[o,s]=(0,k.useState)(1),[c,h]=(0,k.useState)(!0),[x,S]=(0,k.useState)(!1),[C,ee]=(0,k.useState)(!1),te=(0,k.useCallback)(()=>{let t=r.current,n=e?.snapshot;if(!t||!n)return;let i=Math.max(1,t.clientWidth-48),a=Math.max(1,t.clientHeight-48);s(Math.min(1,i/n.width,a/n.height))},[e]);(0,k.useEffect)(()=>{if(!e)return;a(1),h(!0),ee(!1);let t=requestAnimationFrame(te),n=r.current,i=typeof ResizeObserver>`u`?null:new ResizeObserver(te);return n&&i?.observe(n),window.addEventListener(`resize`,te),()=>{cancelAnimationFrame(t),i?.disconnect(),window.removeEventListener(`resize`,te)}},[e,te]);let ne=e=>{a(Math.min(ga,Math.max(ha,(c?o:i)+e))),h(!1)},re=async()=>{if(!(!e||x)){S(!0),ee(!1);try{await da(e.snapshot,`${e.baseName}.png`)}catch{ee(!0)}finally{S(!1)}}},w=c?o:i,ie=e?.snapshot;return(0,M.jsx)(m,{open:e!==null,onOpenChange:e=>{e||n()},children:(0,M.jsxs)(d,{children:[(0,M.jsx)(l,{className:`fixed inset-0 z-[90] bg-scrim/90 backdrop-blur-sm`}),(0,M.jsxs)(f,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-[91] flex h-[min(92dvh,64rem)] w-[min(96vw,96rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-overlay outline-none`,children:[(0,M.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 border-b border-edge px-3 py-2`,children:[(0,M.jsx)(p,{className:`min-w-0 flex-1 truncate text-sm font-semibold text-fg`,children:t.title}),(0,M.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button`,onClick:()=>ne(-.25),title:t.zoomOut,"aria-label":t.zoomOut,children:(0,M.jsx)(de,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsxs)(`span`,{className:`mermaid-preview-secondary-action w-12 text-center text-xs tabular-nums text-fg-muted`,children:[Math.round(w*100),`%`]}),(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button`,onClick:()=>ne(_a),title:t.zoomIn,"aria-label":t.zoomIn,children:(0,M.jsx)(v,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsx)(`button`,{type:`button`,className:b(`mermaid-preview-toolbar-button`,c&&`bg-surface-hover text-fg`),onClick:()=>h(!0),title:t.fit,"aria-label":t.fit,children:(0,M.jsx)(ue,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsx)(`span`,{className:`mermaid-preview-secondary-action mx-1 h-5 w-px bg-edge`,"aria-hidden":!0}),(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button`,onClick:()=>void re(),disabled:x,title:C?t.downloadFailed:t.downloadPng,"aria-label":C?t.downloadFailed:t.downloadPng,"aria-busy":x,children:(0,M.jsx)(g,{className:b(`size-4`,x&&`animate-bounce`),"aria-hidden":!0})}),(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button mermaid-preview-secondary-action`,onClick:()=>{e&&fa(e.snapshot,`${e.baseName}.svg`)},title:t.downloadSvg,"aria-label":t.downloadSvg,children:(0,M.jsx)(_,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsx)(u,{asChild:!0,children:(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button ml-1`,title:t.close,"aria-label":t.close,children:(0,M.jsx)(y,{className:`size-4`,"aria-hidden":!0})})})]})]}),(0,M.jsx)(`div`,{ref:r,className:`min-h-0 flex-1 overflow-auto bg-surface-base`,children:ie?(0,M.jsx)(`div`,{className:`min-h-full min-w-full p-6`,children:(0,M.jsx)(`div`,{className:`m-auto select-none overflow-hidden rounded-lg border border-edge bg-surface-hover shadow-sm [&>svg]:block [&>svg]:size-full [&>svg]:max-w-none`,style:{width:`${ie.width*w}px`,height:`${ie.height*w}px`},dangerouslySetInnerHTML:{__html:ie.svg}})}):null})]})]})})}var ya=`xopc-math-v1`,N=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},ba=/([A-Z])/g,xa=e=>e.replace(ba,`-$1`).toLowerCase(),Sa={"&":`&amp;`,">":`&gt;`,"<":`&lt;`,'"':`&quot;`,"'":`&#x27;`},Ca=/[&><"']/g,wa=e=>String(e).replace(Ca,e=>Sa[e]),Ta=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?Ta(e.body[0]):e:e.type===`font`?Ta(e.body):e,Ea=new Set([`mathord`,`textord`,`atom`]),Da=e=>Ea.has(Ta(e).type),Oa=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},ka={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function Aa(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function ja(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:Aa(Array.isArray(e.type)?e.type[0]:e.type)}function Ma(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?ja(r):a?a(i):i}var Na=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(ka)){var n=ka[t];n&&Ma(this,t,e,n)}}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=Oa(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},Pa=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Ua[Wa[this.id]]}sub(){return Ua[Ga[this.id]]}fracNum(){return Ua[Ka[this.id]]}fracDen(){return Ua[qa[this.id]]}cramp(){return Ua[Ja[this.id]]}text(){return Ua[Ya[this.id]]}isTight(){return this.size>=2}},Fa=0,Ia=1,La=2,Ra=3,za=4,Ba=5,Va=6,Ha=7,Ua=[new Pa(Fa,0,!1),new Pa(Ia,0,!0),new Pa(La,1,!1),new Pa(Ra,1,!0),new Pa(za,2,!1),new Pa(Ba,2,!0),new Pa(Va,3,!1),new Pa(Ha,3,!0)],Wa=[za,Ba,za,Ba,Va,Ha,Va,Ha],Ga=[Ba,Ba,Ba,Ba,Ha,Ha,Ha,Ha],Ka=[La,Ra,za,Ba,Va,Ha,Va,Ha],qa=[Ra,Ra,Ba,Ba,Ha,Ha,Ha,Ha],Ja=[Ia,Ia,Ra,Ra,Ba,Ba,Ha,Ha],Ya=[Fa,Ia,La,Ra,La,Ra,La,Ra],P={DISPLAY:Ua[Fa],TEXT:Ua[La],SCRIPT:Ua[za],SCRIPTSCRIPT:Ua[Va]},Xa=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function Za(e){for(var t=0;t<Xa.length;t++)for(var n=Xa[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var Qa=[];Xa.forEach(e=>e.blocks.forEach(e=>Qa.push(...e)));function $a(e){for(var t=0;t<Qa.length;t+=2)if(e>=Qa[t]&&e<=Qa[t+1])return!0;return!1}var eo=e=>e+` `+e,to=80,no=function(e,t){return`M95,`+(622+e+t)+`
67
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${zr(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Br(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+zr(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Br(e);if(i===null)return zr(n);e=i;let a=`<img src="${e}" alt="${zr(n)}"`;return t&&(a+=` title="${zr(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:zr(e.text)}},Zr=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},Qr=class e{options;renderer;textRenderer;constructor(e){this.options=e||k,this.options.renderer=this.options.renderer||new Xr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Zr}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},$r=class{options;block;constructor(e){this.options=e||k}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Yr.lex:Yr.lexInline}provideParser(e=this.block){return e?Qr.parse:Qr.parseInline}},ei=class{defaults=En();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Qr;Renderer=Xr;TextRenderer=Zr;Lexer=Yr;Tokenizer=Jr;Hooks=$r;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Xr(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Jr(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new $r;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];$r.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&$r.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Yr.lex(e,t??this.defaults)}parser(e,t){return Qr.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?Yr.lex:Yr.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?Qr.parse:Qr.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?Yr.lex:Yr.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?Qr.parse:Qr.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
68
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+zr(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},ti=new ei;function j(e,t){return ti.parse(e,t)}j.options=j.setOptions=function(e){return ti.setOptions(e),j.defaults=ti.defaults,Dn(j.defaults),j},j.getDefaults=En,j.defaults=k,j.use=function(...e){return ti.use(...e),j.defaults=ti.defaults,Dn(j.defaults),j},j.walkTokens=function(e,t){return ti.walkTokens(e,t)},j.parseInline=ti.parseInline,j.Parser=Qr,j.parser=Qr.parse,j.Renderer=Xr,j.TextRenderer=Zr,j.Lexer=Yr,j.lexer=Yr.lex,j.Tokenizer=Jr,j.Hooks=$r,j.parse=j,j.options,j.setOptions,j.use,j.walkTokens,j.parseInline,Qr.parse,Yr.lex;function ni(e){if(typeof e==`function`&&(e={highlight:e}),!e||typeof e.highlight!=`function`)throw Error(`Must provide highlight function`);return typeof e.langPrefix!=`string`&&(e.langPrefix=`language-`),typeof e.emptyLangClass!=`string`&&(e.emptyLangClass=``),{async:!!e.async,walkTokens(t){if(t.type!==`code`)return;let n=ri(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||``)).then(ii(t));let r=e.highlight(t.text,n,t.lang||``);if(r instanceof Promise)throw Error(`markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.`);ii(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t==`object`&&(r=t.escaped,n=t.lang,t=t.text);let i=ri(n),a=i?e.langPrefix+di(i):e.emptyLangClass,o=a?` class="${a}"`:``;return t=t.replace(/\n$/,``),`<pre><code${o}>${r?t:di(t,!0)}\n</code></pre>`}}}}function ri(e){return(e||``).match(/\S*/)[0]}function ii(e){return t=>{typeof t==`string`&&t!==e.text&&(e.escaped=!0,e.text=t)}}var ai=/[&<>"']/,oi=new RegExp(ai.source,`g`),si=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ci=new RegExp(si.source,`g`),li={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},ui=e=>li[e];function di(e,t){if(t){if(ai.test(e))return e.replace(oi,ui)}else if(si.test(e))return e.replace(ci,ui);return e}function fi(e){return e.replace(/\\([\\_()[\]*])/g,`$1`).replace(/&(?:amp|#0*38|#x0*26);/gi,`&`)}var pi={walkTokens(e){if(e.type!==`link`)return;let t=fi(e.href);if(!/^xopc:\/\//i.test(t))return;let n=C(t,`https://xopc.local/`);n.kind===`internal-route`&&(e.href=`#${n.route}`)},extensions:[{name:`xopcLink`,level:`inline`,start(e){let t=e.search(/xopc:\/\/|\[[^\]\n]+\]\\\(xopc:\/\//i);return t<0?void 0:t},tokenizer(e){if(this.lexer.state.inLink)return;let t=/^\[([^\]\n]+)\]\\\((xopc:\/\/[^\s<>]+?)\\\)/i.exec(e),n=/^(?:xopc:\/\/)[^\s<>\[\]()"',。;!?、]+/i.exec(e),r=t?.[0]??n?.[0]?.replace(/[.,;!?]+$/,``);if(!r)return;let i=fi(t?.[2]??r),a=fi(t?.[1]??r);return{type:`link`,raw:r,href:i,text:a,title:null,tokens:[{type:`text`,raw:a,text:a.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}]}}}]};w.registerLanguage(`bash`,re),w.registerLanguage(`css`,ce),w.registerLanguage(`html`,le),w.registerLanguage(`javascript`,oe),w.registerLanguage(`json`,ne),w.registerLanguage(`markdown`,ie),w.registerLanguage(`md`,ie),w.registerLanguage(`plaintext`,se),w.registerLanguage(`typescript`,ae),w.registerLanguage(`xml`,le),w.registerAliases([`js`,`jsx`],{languageName:`javascript`}),w.registerAliases([`ts`,`tsx`],{languageName:`typescript`}),w.registerAliases([`sh`,`shell`,`zsh`],{languageName:`bash`});function mi(e){return new ei(pi,Tn,ni({emptyLangClass:`hljs`,langPrefix:`hljs language-`,highlight(e,t){if(t?.trim()===`math`||t?.trim()===`chart`)return e;let n=(t??``).trim()||`plaintext`,r=w.getLanguage(n)?n:`plaintext`;return w.highlight(e,{language:r}).value}}),{renderer:{code(t){if(e&&t.lang?.trim().split(/\s+/)[0]===`chart`)return e(t);if(t.lang?.trim()!==`math`)return!1;let n=bn(t.raw);return n?wn(n):!1},html({text:e}){return _i(e)}},extensions:[{name:`punctuationBoundStrong`,level:`inline`,start(e){let t=e.indexOf(`**`);return t>=0?t:void 0},tokenizer(e){return bi(e,e=>this.lexer.inlineTokens(e))}}]})}var hi=mi();function gi(e,t){let n=[];return{html:mi(e=>{let t=e.raw.trimEnd().split(/\r?\n/),r=t[0]?.match(/^ {0,3}(`{3,}|~{3,})[ \t]*chart(?:\s|$)/)?.[1],i=t.at(-1)?.match(/^ {0,3}(`{3,}|~{3,})[ \t]*$/)?.[1],a=!!(t.length>1&&r&&i&&r[0]===i[0]&&i.length>=r.length);return`<div data-md-chart="${n.push({source:e.text,closed:a})-1}"></div>`}).parse(e,{...xi,...t,async:!1}),charts:n}}function _i(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`)}var vi=/^\p{P}$/u;function yi(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function bi(e,t){if(!e.startsWith(`**`)||e.startsWith(`***`))return;let n=0;for(let r=2;r<e.length-1;){if(e[r]===`\\`){r+=2;continue}if(e[r]==="`"){let t=r+1;for(;e[t]==="`";)t+=1;let i=t-r;n===0?n=i:n===i&&(n=0),r=t;continue}if(n===0&&e.startsWith(`**`,r)&&e[r+2]!==`*`&&!yi(e,r)){let n=e.slice(2,r),i=Array.from(n)[0]??``,a=Array.from(n).at(-1)??``;return n.length>0&&!/^\s|\s$/u.test(n)&&(vi.test(i)||vi.test(a))?{type:`strong`,raw:e.slice(0,r+2),text:n,tokens:t(n)}:void 0}r+=1}}var xi={gfm:!0,breaks:!1,async:!1};function Si(e,t){return hi.parse(e,{...xi,...t,async:!1})}var Ci=40,wi=new Map,Ti=new Set,Ei=!1;function Di(){return typeof performance>`u`?Date.now():performance.now()}function Oi(e){if(!t||!e)return null;let n=wi.get(e);if(n)return n;if(wi.size>=Ci){let e=wi.keys().next().value;e&&(wi.delete(e),Ti.delete(e))}let r={key:e,deltaCount:0,commitCount:0,parseCount:0,totalParseMs:0,latestParseMs:0,longestParseMs:0,parseSamples:[],stableBlockCount:0,tailLength:0,latestContentLength:0,terminalBacklogChars:0,active:!1};return wi.set(e,r),r}var ki={layoutShiftScore:0,longTaskCount:0,longestTaskMs:0};function Ai(){return{...ki}}function ji(){if(!(Ei||!t||typeof PerformanceObserver>`u`)){Ei=!0;try{new PerformanceObserver(e=>{for(let t of e.getEntries()){let e=t;e.hadRecentInput||!Number.isFinite(e.value)||Ti.size&&(ki.layoutShiftScore+=e.value??0)}}).observe({type:`layout-shift`})}catch{}try{new PerformanceObserver(e=>{for(let t of e.getEntries())Ti.size&&(ki.longTaskCount+=1,ki.longestTaskMs=Math.max(ki.longestTaskMs,t.duration))}).observe({type:`longtask`})}catch{}}}function Mi(e){let t=Oi(e);t&&(t.active=!0,Ti.add(e),ji())}function Ni(e){let t=wi.get(e);t&&(t.active=!1,Ti.delete(e))}function Pi(e,t){let n=Oi(e);n&&(n.deltaCount+=1,n.latestContentLength=t)}function Fi(e,t){let n=Oi(e);if(!n)return;let r=Di();n.commitCount+=1,n.firstCommitAt??=r,n.lastCommitAt=r,n.latestContentLength=t}function Ii(e,t){let n=Oi(e);n&&(n.parseCount+=1,n.totalParseMs+=t,n.latestParseMs=t,n.longestParseMs=Math.max(n.longestParseMs,t),n.parseSamples.push(t),n.parseSamples.length>200&&n.parseSamples.shift())}function Li(e,t,n){let r=Oi(e);r&&(r.stableBlockCount=t,r.tailLength=n)}function Ri(e){let t=e.firstCommitAt!=null&&e.lastCommitAt!=null?e.lastCommitAt-e.firstCommitAt:0;return{key:e.key,deltaCount:e.deltaCount,commitCount:e.commitCount,averageCommitIntervalMs:e.commitCount>1?t/(e.commitCount-1):0,parseCount:e.parseCount,averageParseMs:e.parseCount>0?e.totalParseMs/e.parseCount:0,latestParseMs:e.latestParseMs,longestParseMs:e.longestParseMs,parseP95Ms:[...e.parseSamples].sort((e,t)=>e-t)[Math.max(0,Math.ceil(e.parseSamples.length*.95)-1)]??0,stableBlockCount:e.stableBlockCount,tailLength:e.tailLength,latestContentLength:e.latestContentLength,terminalBacklogChars:e.terminalBacklogChars,active:e.active}}function zi(){return Array.from(wi.values(),Ri)}function Bi(e){return wi.get(e)?.latestParseMs??0}t&&typeof window<`u`&&(window.__xopcStreamingRenderMetrics=zi,window.__xopcPageRenderMetrics=Ai);var Vi=`png|jpe?g|gif|webp|bmp|svg|pdf|docx?|xlsx?|pptx?|csv|tsv|txt|md|json|html?|css|mjs?|cjs|jsx|js|tsx|ts|yaml|yml|toml|xml|zip|mp3|wav|ogg|m4a|mp4|mov|webm`,Hi=String.raw`[\p{L}\p{N}_.()()【】-]`,Ui=new RegExp(String.raw`((?:\.\/)?(?:${Hi}+\/)+${Hi}+\.(?:${Vi})(?::\d+|#L\d+)?)`,`giu`),Wi=new RegExp(String.raw`(\/(?:Users|usr|var|opt|tmp|home|root|System|private|dev|media|mnt|Volumes|data)\/[^\s"'<>()|*?\n]+?\.(?:${Vi})(?::\d+|#L\d+)?)`,`gi`),Gi=new RegExp(String.raw`([A-Za-z]:[\\/][^"'<>()\n|*?=]+?\.(?:${Vi})(?::\d+|#L\d+)?)`,`gi`),Ki=new RegExp(String.raw`(${Hi}+\.(?:${Vi})(?::\d+|#L\d+)?)`,`giu`);function qi(e){try{let t=new URL(e);return t.protocol!==`xopc:`||t.hostname!==`workspace`||t.pathname!==`/file`||!t.searchParams.get(`path`)?.trim()?null:`/xopc/workspace/file${t.search}${t.hash}`}catch{return null}}function Ji(e,t=!0,n=!1){let r=String.raw`xopc:\/\/workspace\/file[^\s[\]()<>"']*`,i=new RegExp(r,`gi`),a=n?/\[([^\]\n]*)\]\(([^)\n]+)\)/g:/(?<!!)\[([^\]\n]*)\]\(([^)\n]+)\)/g;return(t?e.replace(a,(e,t,n)=>{let r=Yi(n.trim().replace(/^<|>$/g,``));if(!r)return e;let i=/^xopc:\/\//i.test(t.trim())?`Open in xopc`:t,a=new URLSearchParams({path:r.path});return r.line&&a.set(`line`,String(r.line)),`[${i}](/xopc/workspace/file?${a.toString()})`}):e).replace(i,e=>qi(e)??e)}function Yi(e){let t=e.trim();if(!t)return null;if(t.startsWith(`xopc://workspace/file`)||t.startsWith(`/xopc/workspace/file`))try{let e=t.startsWith(`/xopc/`)?new URL(t,`https://xopc.local`):new URL(t),n=e.searchParams.get(`path`)?.trim()??``;if(!n)return null;t=n;let r=Number(e.searchParams.get(`line`)??``),i=Number.isFinite(r)&&r>0?Math.floor(r):void 0,a=Qi(t);return a?{...a,...i?{line:i}:{}}:Zi(t,i)}catch{return null}let n=Xi(t);return n?(t=n,Qi(t)||(/^[a-z][a-z0-9+.-]*:/i.test(t)||t.startsWith(`/`)||t.startsWith(`\\`)?null:Zi(t))):null}function Xi(e){let t=e.trim();if(!t)return null;if(/^file:/i.test(t))try{let e=new URL(t);if(e.protocol!==`file:`||e.hostname&&e.hostname!==`localhost`)return null;t=decodeURIComponent(e.pathname),/^\/[A-Za-z]:\//.test(t)&&(t=t.slice(1)),e.hash&&(t+=e.hash)}catch{return null}else try{t=decodeURIComponent(t)}catch{}return t}function Zi(e,t){let n=e.trim().replace(/\\/g,`/`);if(!n)return null;let r=t,i=n.match(/#L(\d+)$/i);if(i?.[1])r=Number(i[1]),n=n.slice(0,-i[0].length);else{let e=n.match(/:(\d+)$/);e?.[1]&&(r=Number(e[1]),n=n.slice(0,-e[0].length))}return n=n.replace(/^\.\//,``),!n||n.startsWith(`/`)||/^[A-Za-z]:/.test(n)||!new RegExp(String.raw`\.(?:${Vi})$`,`i`).test(n)?null:{path:n,line:Number.isFinite(r)&&r&&r>0?Math.floor(r):void 0,kind:`workspace-relative`}}function Qi(e){let t=e.trim().replace(/\\/g,`/`);if(!t||/^[A-Za-z]:\/{2,}/.test(t)||!(t.startsWith(`~/`)||t.startsWith(`/`)||/^[A-Za-z]:\//.test(t)))return null;let n,r=t.match(/#L(\d+)$/i);if(r?.[1])n=Number(r[1]),t=t.slice(0,-r[0].length);else{let e=t.match(/:(\d+)$/);e?.[1]&&(n=Number(e[1]),t=t.slice(0,-e[0].length))}return new RegExp(String.raw`\.(?:${Vi})$`,`i`).test(t)?{path:t,line:Number.isFinite(n)&&n&&n>0?Math.floor(n):void 0,kind:`absolute`}:null}function $i(e){let t=[],n=[Wi,Gi,Ui,Ki];for(let r of n){r.lastIndex=0;let n;for(;(n=r.exec(e))!==null;){let r=n[1];if(!r)continue;let i=n.index,a=i+r.length,o=e[i-1]??``;if(o===`:`||o===`@`)continue;let s=e[a]??``;if(s&&/[\p{L}\p{N}_]/u.test(s))continue;let c=Yi(r);c&&(c.kind===`workspace-relative`&&o===`/`||t.push({raw:r,start:i,end:a,target:c}))}}t.sort((e,t)=>e.start-t.start||t.end-e.end);let r=[],i=-1;for(let e of t)e.start<i||(r.push(e),i=e.end);return r}function ea(e){let t=e.parentElement;return!t||!!t.closest(`a, code, pre, kbd, samp, textarea, script, style, [data-xopc-math], [data-xopc-inline-file]`)}function ta(e){let t=e.ownerDocument,n=t.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(e){return!(e instanceof Text)||ea(e)?NodeFilter.FILTER_REJECT:$i(e.data).length>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r=[],i;for(;i=n.nextNode();)r.push(i);for(let e of r){let n=e.data,r=$i(n);if(r.length===0)continue;let i=t.createDocumentFragment(),a=0;for(let e of r){e.start>a&&i.appendChild(t.createTextNode(n.slice(a,e.start)));let r=t.createElement(`a`);r.href=`#`,r.className=`markdown-file-link`,r.dataset.xopcFilePath=e.target.path,r.dataset.xopcFileKind=e.target.kind,e.target.line&&(r.dataset.xopcLine=String(e.target.line)),r.textContent=e.raw,i.appendChild(r),a=e.end}a!==0&&(a<n.length&&i.appendChild(t.createTextNode(n.slice(a))),e.parentNode?.replaceChild(i,e))}}var na=`#ffffff`,ra=`#27272a`,ia=`#2563eb`,aa=`#d4d4d8`,oa=8192,sa=32e6,ca=2;function la(e,t){return Number.isFinite(e)&&e>0?e:t}function ua(e){let t=(e.getAttribute(`viewBox`)??``).trim().split(/[\s,]+/).map(Number);return t.length===4&&t.every(Number.isFinite)?{width:la(t[2],800),height:la(t[3],600)}:{width:la(Number.parseFloat(e.getAttribute(`width`)??``),800),height:la(Number.parseFloat(e.getAttribute(`height`)??``),600)}}function da(e,t,n){let r=document.createElement(`span`);r.setAttribute(`aria-hidden`,`true`),r.style.position=`absolute`,r.style.visibility=`hidden`,r.style.pointerEvents=`none`,r.style.color=`var(${t}, ${n})`,e.appendChild(r);let i=getComputedStyle(r).color.trim();return r.remove(),i&&!i.includes(`var(`)?i:n}function fa(e){e.querySelectorAll(`script, foreignObject`).forEach(e=>e.remove()),e.querySelectorAll(`*`).forEach(e=>{e.removeAttribute(`href`),e.removeAttributeNS(`http://www.w3.org/1999/xlink`,`href`)}),e.querySelectorAll(`style`).forEach(e=>{e.textContent=(e.textContent??``).replace(/@import\s+url\([^)]*\)\s*;?/gi,``)})}function pa(e,t){let{width:n,height:r}=ua(e),i=da(t,`--color-surface-hover`,na),a=da(t,`--color-fg`,ra),o=da(t,`--color-accent-fg`,ia),s=da(t,`--color-edge`,aa),c=e.cloneNode(!0);fa(c),c.setAttribute(`xmlns`,`http://www.w3.org/2000/svg`),c.setAttribute(`width`,String(n)),c.setAttribute(`height`,String(r)),c.style.setProperty(`--bg`,i),c.style.setProperty(`--fg`,a),c.style.setProperty(`--accent`,o),c.style.setProperty(`--border`,s);let l=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`);return l.setAttribute(`width`,`100%`),l.setAttribute(`height`,`100%`),l.setAttribute(`fill`,i),l.setAttribute(`data-mermaid-export-background`,``),c.insertBefore(l,c.firstChild),{svg:new XMLSerializer().serializeToString(c),width:n,height:r,background:i}}function ma(e,t,n=ca){let r=la(e,800),i=la(t,600),a=la(n,ca),o=Math.min(a,oa/r,oa/i,Math.sqrt(sa/(r*i)));return{width:Math.max(1,Math.floor(r*o)),height:Math.max(1,Math.floor(i*o)),scale:o}}function ha(e){return new Blob([e.svg],{type:`image/svg+xml;charset=utf-8`})}function ga(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),window.setTimeout(()=>URL.revokeObjectURL(n),0)}function _a(e){let t=URL.createObjectURL(e);return new Promise((e,n)=>{let r=new Image;r.onload=()=>e({image:r,url:t}),r.onerror=()=>{URL.revokeObjectURL(t),n(Error(`mermaid_svg_load_failed`))},r.src=t})}function va(e){return new Promise((t,n)=>{e.toBlob(e=>{e?t(e):n(Error(`mermaid_png_encode_failed`))},`image/png`)})}async function ya(e){await document.fonts?.ready;let t=ma(e.width,e.height),{image:n,url:r}=await _a(ha(e));try{let r=document.createElement(`canvas`);r.width=t.width,r.height=t.height;let i=r.getContext(`2d`);if(!i)throw Error(`mermaid_canvas_unavailable`);return i.fillStyle=e.background,i.fillRect(0,0,r.width,r.height),i.drawImage(n,0,0,r.width,r.height),await va(r)}finally{URL.revokeObjectURL(r)}}async function ba(e,t){ga(await ya(e),t)}function xa(e,t){ga(ha(e),t)}var Sa=/^(?:(?:flowchart|graph)\s+(?:TD|TB|LR|BT|RL)\b|stateDiagram(?:-v2)?\b|sequenceDiagram\b|classDiagram\b|erDiagram\b|xychart(?:-beta)?\b)/i;function Ca(e){let t=e.trimStart().split(/[\r\n;]/,1)[0]?.trim()??``;return Sa.test(t)}var M=a(),wa=.25,Ta=4,Ea=.25;function Da({preview:e,labels:t,onClose:n}){let r=(0,O.useRef)(null),[i,a]=(0,O.useState)(1),[o,s]=(0,O.useState)(1),[c,l]=(0,O.useState)(!0),[g,S]=(0,O.useState)(!1),[C,ee]=(0,O.useState)(!1),te=(0,O.useCallback)(()=>{let t=r.current,n=e?.snapshot;if(!t||!n)return;let i=Math.max(1,t.clientWidth-48),a=Math.max(1,t.clientHeight-48);s(Math.min(1,i/n.width,a/n.height))},[e]);(0,O.useEffect)(()=>{if(!e)return;a(1),l(!0),ee(!1);let t=requestAnimationFrame(te),n=r.current,i=typeof ResizeObserver>`u`?null:new ResizeObserver(te);return n&&i?.observe(n),window.addEventListener(`resize`,te),()=>{cancelAnimationFrame(t),i?.disconnect(),window.removeEventListener(`resize`,te)}},[e,te]);let ne=e=>{a(Math.min(Ta,Math.max(wa,(c?o:i)+e))),l(!1)},re=async()=>{if(!(!e||g)){S(!0),ee(!1);try{await ba(e.snapshot,`${e.baseName}.png`)}catch{ee(!0)}finally{S(!1)}}},ie=c?o:i,w=e?.snapshot;return(0,M.jsx)(h,{open:e!==null,onOpenChange:e=>{e||n()},children:(0,M.jsxs)(f,{children:[(0,M.jsx)(u,{className:`fixed inset-0 z-[90] bg-scrim/90 backdrop-blur-sm`}),(0,M.jsxs)(p,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-[91] flex h-[min(92dvh,64rem)] w-[min(96vw,96rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-overlay outline-none`,children:[(0,M.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 border-b border-edge px-3 py-2`,children:[(0,M.jsx)(m,{className:`min-w-0 flex-1 truncate text-sm font-semibold text-fg`,children:t.title}),(0,M.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button`,onClick:()=>ne(-.25),title:t.zoomOut,"aria-label":t.zoomOut,children:(0,M.jsx)(fe,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsxs)(`span`,{className:`mermaid-preview-secondary-action w-12 text-center text-xs tabular-nums text-fg-muted`,children:[Math.round(ie*100),`%`]}),(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button`,onClick:()=>ne(Ea),title:t.zoomIn,"aria-label":t.zoomIn,children:(0,M.jsx)(y,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsx)(`button`,{type:`button`,className:x(`mermaid-preview-toolbar-button`,c&&`bg-surface-hover text-fg`),onClick:()=>l(!0),title:t.fit,"aria-label":t.fit,children:(0,M.jsx)(de,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsx)(`span`,{className:`mermaid-preview-secondary-action mx-1 h-5 w-px bg-edge`,"aria-hidden":!0}),(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button`,onClick:()=>void re(),disabled:g,title:C?t.downloadFailed:t.downloadPng,"aria-label":C?t.downloadFailed:t.downloadPng,"aria-busy":g,children:(0,M.jsx)(_,{className:x(`size-4`,g&&`animate-bounce`),"aria-hidden":!0})}),(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button mermaid-preview-secondary-action`,onClick:()=>{e&&xa(e.snapshot,`${e.baseName}.svg`)},title:t.downloadSvg,"aria-label":t.downloadSvg,children:(0,M.jsx)(v,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsx)(d,{asChild:!0,children:(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button ml-1`,title:t.close,"aria-label":t.close,children:(0,M.jsx)(b,{className:`size-4`,"aria-hidden":!0})})})]})]}),(0,M.jsx)(`div`,{ref:r,className:`min-h-0 flex-1 overflow-auto bg-surface-base`,children:w?(0,M.jsx)(`div`,{className:`min-h-full min-w-full p-6`,children:(0,M.jsx)(`div`,{className:`m-auto select-none overflow-hidden rounded-lg border border-edge bg-surface-hover shadow-sm [&>svg]:block [&>svg]:size-full [&>svg]:max-w-none`,style:{width:`${w.width*ie}px`,height:`${w.height*ie}px`},dangerouslySetInnerHTML:{__html:w.svg}})}):null})]})]})})}var Oa=`xopc-math-v1`,N=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},ka=/([A-Z])/g,Aa=e=>e.replace(ka,`-$1`).toLowerCase(),ja={"&":`&amp;`,">":`&gt;`,"<":`&lt;`,'"':`&quot;`,"'":`&#x27;`},Ma=/[&><"']/g,Na=e=>String(e).replace(Ma,e=>ja[e]),Pa=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?Pa(e.body[0]):e:e.type===`font`?Pa(e.body):e,Fa=new Set([`mathord`,`textord`,`atom`]),Ia=e=>Fa.has(Pa(e).type),La=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},Ra={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function za(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function Ba(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:za(Array.isArray(e.type)?e.type[0]:e.type)}function Va(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?Ba(r):a?a(i):i}var Ha=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(Ra)){var n=Ra[t];n&&Va(this,t,e,n)}}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=La(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},Ua=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Qa[$a[this.id]]}sub(){return Qa[eo[this.id]]}fracNum(){return Qa[to[this.id]]}fracDen(){return Qa[no[this.id]]}cramp(){return Qa[ro[this.id]]}text(){return Qa[io[this.id]]}isTight(){return this.size>=2}},Wa=0,Ga=1,Ka=2,qa=3,Ja=4,Ya=5,Xa=6,Za=7,Qa=[new Ua(Wa,0,!1),new Ua(Ga,0,!0),new Ua(Ka,1,!1),new Ua(qa,1,!0),new Ua(Ja,2,!1),new Ua(Ya,2,!0),new Ua(Xa,3,!1),new Ua(Za,3,!0)],$a=[Ja,Ya,Ja,Ya,Xa,Za,Xa,Za],eo=[Ya,Ya,Ya,Ya,Za,Za,Za,Za],to=[Ka,qa,Ja,Ya,Xa,Za,Xa,Za],no=[qa,qa,Ya,Ya,Za,Za,Za,Za],ro=[Ga,Ga,qa,qa,Ya,Ya,Za,Za],io=[Wa,Ga,Ka,qa,Ka,qa,Ka,qa],P={DISPLAY:Qa[Wa],TEXT:Qa[Ka],SCRIPT:Qa[Ja],SCRIPTSCRIPT:Qa[Xa]},ao=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function oo(e){for(var t=0;t<ao.length;t++)for(var n=ao[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var so=[];ao.forEach(e=>e.blocks.forEach(e=>so.push(...e)));function co(e){for(var t=0;t<so.length;t+=2)if(e>=so[t]&&e<=so[t+1])return!0;return!1}var lo=e=>e+` `+e,uo=80,fo=function(e,t){return`M95,`+(622+e+t)+`
69
69
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
70
70
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
71
71
  c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
@@ -76,7 +76,7 @@ c5.3,-9.3,12,-14,20,-14
76
76
  H400000v`+(40+e)+`H845.2724
77
77
  s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
78
78
  c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
79
- M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},ro=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119
79
+ M`+(834+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},po=function(e,t){return`M263,`+(601+e+t)+`c0.7,0,18,39.7,52,119
80
80
  c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
81
81
  c340,-704.7,510.7,-1060.3,512,-1067
82
82
  l`+e/2.084+` -`+e+`
@@ -86,7 +86,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,
86
86
  c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
87
87
  s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
88
88
  c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
89
- M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},io=function(e,t){return`M983 `+(10+e+t)+`
89
+ M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},mo=function(e,t){return`M983 `+(10+e+t)+`
90
90
  l`+e/3.13+` -`+e+`
91
91
  c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
92
92
  H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
@@ -95,7 +95,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
95
95
  c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
96
96
  c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
97
97
  c53.7,-170.3,84.5,-266.8,92.5,-289.5z
98
- M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},ao=function(e,t){return`M424,`+(2398+e+t)+`
98
+ M`+(1001+e)+` `+t+`h400000v`+(40+e)+`h-400000z`},ho=function(e,t){return`M424,`+(2398+e+t)+`
99
99
  c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
100
100
  c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
101
101
  s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
@@ -105,18 +105,18 @@ v`+(40+e)+`H1014.6
105
105
  s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
106
106
  c-2,6,-10,9,-24,9
107
107
  c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+` `+t+`
108
- h400000v`+(40+e)+`h-400000z`},oo=function(e,t){return`M473,`+(2713+e+t)+`
108
+ h400000v`+(40+e)+`h-400000z`},go=function(e,t){return`M473,`+(2713+e+t)+`
109
109
  c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+` -`+e+`
110
110
  c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
111
111
  s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
112
112
  c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
113
113
  c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
114
114
  s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
115
- 606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},so=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},co=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+`
115
+ 606zM`+(1001+e)+` `+t+`h400000v`+(40+e)+`H1017.7z`},_o=function(e){var t=e/2;return`M400000 `+e+` H0 L`+t+` 0 l65 45 L145 `+(e-80)+` H400000z`},vo=function(e,t,n){var r=n-54-t-e;return`M702 `+(e+t)+`H400000`+(40+e)+`
116
116
  H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
117
117
  h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
118
118
  c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
119
- 219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},lo=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=no(t,to);break;case`sqrtSize1`:r=ro(t,to);break;case`sqrtSize2`:r=io(t,to);break;case`sqrtSize3`:r=ao(t,to);break;case`sqrtSize4`:r=oo(t,to);break;case`sqrtTall`:r=co(t,to,n)}return r},uo=function(e,t){switch(e){case`⎜`:return eo(`M291 0 H417 V`+t+` H291z`);case`∣`:return eo(`M145 0 H188 V`+t+` H145z`);case`∥`:return eo(`M145 0 H188 V`+t+` H145z`)+eo(`M367 0 H410 V`+t+` H367z`);case`⎟`:return eo(`M457 0 H583 V`+t+` H457z`);case`⎢`:return eo(`M319 0 H403 V`+t+` H319z`);case`⎥`:return eo(`M263 0 H347 V`+t+` H263z`);case`⎪`:return eo(`M384 0 H504 V`+t+` H384z`);case`⏐`:return eo(`M312 0 H355 V`+t+` H312z`);case`‖`:return eo(`M257 0 H300 V`+t+` H257z`)+eo(`M478 0 H521 V`+t+` H478z`);default:return``}},fo={doubleleftarrow:`M262 157
119
+ 219 661 l218 661zM702 `+t+`H400000v`+(40+e)+`H742z`},yo=function(e,t,n){t=1e3*t;var r=``;switch(e){case`sqrtMain`:r=fo(t,uo);break;case`sqrtSize1`:r=po(t,uo);break;case`sqrtSize2`:r=mo(t,uo);break;case`sqrtSize3`:r=ho(t,uo);break;case`sqrtSize4`:r=go(t,uo);break;case`sqrtTall`:r=vo(t,uo,n)}return r},bo=function(e,t){switch(e){case`⎜`:return lo(`M291 0 H417 V`+t+` H291z`);case`∣`:return lo(`M145 0 H188 V`+t+` H145z`);case`∥`:return lo(`M145 0 H188 V`+t+` H145z`)+lo(`M367 0 H410 V`+t+` H367z`);case`⎟`:return lo(`M457 0 H583 V`+t+` H457z`);case`⎢`:return lo(`M319 0 H403 V`+t+` H319z`);case`⎥`:return lo(`M263 0 H347 V`+t+` H263z`);case`⎪`:return lo(`M384 0 H504 V`+t+` H384z`);case`⏐`:return lo(`M312 0 H355 V`+t+` H312z`);case`‖`:return lo(`M257 0 H300 V`+t+` H257z`)+lo(`M478 0 H521 V`+t+` H478z`);default:return``}},xo={doubleleftarrow:`M262 157
120
120
  l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
121
121
  0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
122
122
  14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
@@ -162,10 +162,10 @@ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9
162
162
  v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
163
163
  -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
164
164
  -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
165
- 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:eo(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:eo(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:eo(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:eo(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
165
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:lo(`M40 281 V428 H0 V94 H40 V241 H400000 v40z`),leftbracketunder:lo(`M0 0 h120 V290 H399995 v120 H0z`),leftbracketover:lo(`M0 440 h120 V150 H399995 v-120 H0z`),leftmapsto:lo(`M40 281 V448H0V74H40V241H400000v40z`),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
166
166
  -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
167
167
  c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
168
- 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:eo(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334
168
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:lo(`M0 50 h400000 v40H0z m0 194h40000v40H0z`),midbrace:`M200428 334
169
169
  c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
170
170
  -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
171
171
  311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
@@ -214,7 +214,7 @@ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown
214
214
  m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
215
215
  15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
216
216
  -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
217
- 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:eo(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:eo(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:eo(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
217
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:lo(`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`),rightbracketunder:lo(`M399995 0 h-120 V290 H0 v120 H400000z`),rightbracketover:lo(`M399995 440 h-120 V150 H0 v-120 H399995z`),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
218
218
  1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
219
219
  -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
220
220
  -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
@@ -287,7 +287,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`
287
287
  c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
288
288
  -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
289
289
  c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
290
- M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},po=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84
290
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},So=function(e,t){switch(e){case`lbrack`:return`M403 1759 V84 H666 V0 H319 V1759 v`+t+` v1759 v84 h347 v-84
291
291
  H403z M403 1759 V0 H319 V1759 v`+t+` v1759 v84 h84z`;case`rbrack`:return`M347 1759 V0 H0 V84 H263 V1759 v`+t+` v1759 H0 v84 H347z
292
292
  M347 1759 V0 H263 V1759 v`+t+` v1759 h84z`;case`vert`:return`M145 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
293
293
  c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
@@ -315,10 +315,10 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6
315
315
  c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
316
316
  c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
317
317
  l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
318
- -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function mo(e){return`toText`in e}var ho=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(mo(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},go={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},_o={ex:!0,em:!0,mu:!0},vo=function(e){return typeof e!=`string`&&(e=e.unit),e in go||e in _o||e===`ex`},yo=function(e,t){var n;if(e.unit in go)n=go[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new N(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},F=function(e){return+e.toFixed(4)+`em`},bo=function(e){return e.filter(e=>e).join(` `)},xo=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=xa(n)+`:`+r+`;`)}return t},So=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},Co=function(e){var t=document.createElement(e);t.className=bo(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},wo=/[\s"'>/=\x00-\x1f]/,To=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+wa(bo(this.classes))+`"`);var n=xo(this.style);n&&(t+=` style="`+wa(n)+`"`);for(var r of Object.keys(this.attributes)){if(wo.test(r))throw new N(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+wa(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},Eo=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,So.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Co.call(this,`span`)}toMarkup(){return To.call(this,`span`)}},Do=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,So.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Co.call(this,`a`)}toMarkup(){return To.call(this,`a`)}},Oo=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=`<img src="`+wa(this.src)+`"`+(` alt="`+wa(this.alt)+`"`),t=xo(this.style);return t&&(e+=` style="`+wa(t)+`"`),e+=`'/>`,e}},ko={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},Ao=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=Za(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=ko[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=F(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=bo(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=wa(bo(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+F(this.italic)+`;`),n+=xo(this.style),n&&(e=!0,t+=` style="`+wa(n)+`"`);var r=wa(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},jo=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+wa(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},Mo=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,fo[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+wa(this.alternate)+`"/>`:`<path d="`+wa(fo[this.pathName])+`"/>`}},No=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+wa(this.attributes[t])+`"`;return e+=`/>`,e}};function Po(e){if(e instanceof Ao)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function Fo(e){if(e instanceof Eo)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var Io=e=>e instanceof Eo||e instanceof Do||e instanceof ho,Lo={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Ro={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},zo={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function Bo(e,t){Lo[e]=t}function Vo(e,t,n){if(!Lo[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=Lo[t][r];if(!i&&e[0]in zo&&(r=zo[e[0]].charCodeAt(0),i=Lo[t][r]),!i&&n===`text`&&$a(r)&&(i=Lo[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Ho={};function Uo(e){var t=e>=5?0:e>=3?1:2;if(!Ho[t]){var n=Ho[t]={cssEmPerMu:Ro.quad[t]/18};for(var r of Object.keys(Ro))n[r]=Ro[r][t]}return Ho[t]}var Wo={math:{},text:{}};function I(e,t,n,r,i,a){Wo[e][i]={font:t,group:n,replace:r},a&&r&&(Wo[e][r]=Wo[e][i])}var L=`math`,R=`text`,z=`main`,B=`ams`,Go=`accent-token`,V=`bin`,Ko=`close`,qo=`inner`,H=`mathord`,Jo=`op-token`,Yo=`open`,Xo=`punct`,U=`rel`,Zo=`spacing`,W=`textord`;I(L,z,U,`≡`,`\\equiv`,!0),I(L,z,U,`≺`,`\\prec`,!0),I(L,z,U,`≻`,`\\succ`,!0),I(L,z,U,`∼`,`\\sim`,!0),I(L,z,U,`⊥`,`\\perp`),I(L,z,U,`⪯`,`\\preceq`,!0),I(L,z,U,`⪰`,`\\succeq`,!0),I(L,z,U,`≃`,`\\simeq`,!0),I(L,z,U,`∣`,`\\mid`,!0),I(L,z,U,`≪`,`\\ll`,!0),I(L,z,U,`≫`,`\\gg`,!0),I(L,z,U,`≍`,`\\asymp`,!0),I(L,z,U,`∥`,`\\parallel`),I(L,z,U,`⋈`,`\\bowtie`,!0),I(L,z,U,`⌣`,`\\smile`,!0),I(L,z,U,`⊑`,`\\sqsubseteq`,!0),I(L,z,U,`⊒`,`\\sqsupseteq`,!0),I(L,z,U,`≐`,`\\doteq`,!0),I(L,z,U,`⌢`,`\\frown`,!0),I(L,z,U,`∋`,`\\ni`,!0),I(L,z,U,`∝`,`\\propto`,!0),I(L,z,U,`⊢`,`\\vdash`,!0),I(L,z,U,`⊣`,`\\dashv`,!0),I(L,z,U,`∋`,`\\owns`),I(L,z,Xo,`.`,`\\ldotp`),I(L,z,Xo,`⋅`,`\\cdotp`),I(L,z,Xo,`⋅`,`·`),I(R,z,W,`⋅`,`·`),I(L,z,W,`#`,`\\#`),I(R,z,W,`#`,`\\#`),I(L,z,W,`&`,`\\&`),I(R,z,W,`&`,`\\&`),I(L,z,W,`ℵ`,`\\aleph`,!0),I(L,z,W,`∀`,`\\forall`,!0),I(L,z,W,`ℏ`,`\\hbar`,!0),I(L,z,W,`∃`,`\\exists`,!0),I(L,z,W,`∇`,`\\nabla`,!0),I(L,z,W,`♭`,`\\flat`,!0),I(L,z,W,`ℓ`,`\\ell`,!0),I(L,z,W,`♮`,`\\natural`,!0),I(L,z,W,`♣`,`\\clubsuit`,!0),I(L,z,W,`℘`,`\\wp`,!0),I(L,z,W,`♯`,`\\sharp`,!0),I(L,z,W,`♢`,`\\diamondsuit`,!0),I(L,z,W,`ℜ`,`\\Re`,!0),I(L,z,W,`♡`,`\\heartsuit`,!0),I(L,z,W,`ℑ`,`\\Im`,!0),I(L,z,W,`♠`,`\\spadesuit`,!0),I(L,z,W,`§`,`\\S`,!0),I(R,z,W,`§`,`\\S`),I(L,z,W,`¶`,`\\P`,!0),I(R,z,W,`¶`,`\\P`),I(L,z,W,`†`,`\\dag`),I(R,z,W,`†`,`\\dag`),I(R,z,W,`†`,`\\textdagger`),I(L,z,W,`‡`,`\\ddag`),I(R,z,W,`‡`,`\\ddag`),I(R,z,W,`‡`,`\\textdaggerdbl`),I(L,z,Ko,`⎱`,`\\rmoustache`,!0),I(L,z,Yo,`⎰`,`\\lmoustache`,!0),I(L,z,Ko,`⟯`,`\\rgroup`,!0),I(L,z,Yo,`⟮`,`\\lgroup`,!0),I(L,z,V,`∓`,`\\mp`,!0),I(L,z,V,`⊖`,`\\ominus`,!0),I(L,z,V,`⊎`,`\\uplus`,!0),I(L,z,V,`⊓`,`\\sqcap`,!0),I(L,z,V,`∗`,`\\ast`),I(L,z,V,`⊔`,`\\sqcup`,!0),I(L,z,V,`◯`,`\\bigcirc`,!0),I(L,z,V,`∙`,`\\bullet`,!0),I(L,z,V,`‡`,`\\ddagger`),I(L,z,V,`≀`,`\\wr`,!0),I(L,z,V,`⨿`,`\\amalg`),I(L,z,V,`&`,`\\And`),I(L,z,U,`⟵`,`\\longleftarrow`,!0),I(L,z,U,`⇐`,`\\Leftarrow`,!0),I(L,z,U,`⟸`,`\\Longleftarrow`,!0),I(L,z,U,`⟶`,`\\longrightarrow`,!0),I(L,z,U,`⇒`,`\\Rightarrow`,!0),I(L,z,U,`⟹`,`\\Longrightarrow`,!0),I(L,z,U,`↔`,`\\leftrightarrow`,!0),I(L,z,U,`⟷`,`\\longleftrightarrow`,!0),I(L,z,U,`⇔`,`\\Leftrightarrow`,!0),I(L,z,U,`⟺`,`\\Longleftrightarrow`,!0),I(L,z,U,`↦`,`\\mapsto`,!0),I(L,z,U,`⟼`,`\\longmapsto`,!0),I(L,z,U,`↗`,`\\nearrow`,!0),I(L,z,U,`↩`,`\\hookleftarrow`,!0),I(L,z,U,`↪`,`\\hookrightarrow`,!0),I(L,z,U,`↘`,`\\searrow`,!0),I(L,z,U,`↼`,`\\leftharpoonup`,!0),I(L,z,U,`⇀`,`\\rightharpoonup`,!0),I(L,z,U,`↙`,`\\swarrow`,!0),I(L,z,U,`↽`,`\\leftharpoondown`,!0),I(L,z,U,`⇁`,`\\rightharpoondown`,!0),I(L,z,U,`↖`,`\\nwarrow`,!0),I(L,z,U,`⇌`,`\\rightleftharpoons`,!0),I(L,B,U,`≮`,`\\nless`,!0),I(L,B,U,``,`\\@nleqslant`),I(L,B,U,``,`\\@nleqq`),I(L,B,U,`⪇`,`\\lneq`,!0),I(L,B,U,`≨`,`\\lneqq`,!0),I(L,B,U,``,`\\@lvertneqq`),I(L,B,U,`⋦`,`\\lnsim`,!0),I(L,B,U,`⪉`,`\\lnapprox`,!0),I(L,B,U,`⊀`,`\\nprec`,!0),I(L,B,U,`⋠`,`\\npreceq`,!0),I(L,B,U,`⋨`,`\\precnsim`,!0),I(L,B,U,`⪹`,`\\precnapprox`,!0),I(L,B,U,`≁`,`\\nsim`,!0),I(L,B,U,``,`\\@nshortmid`),I(L,B,U,`∤`,`\\nmid`,!0),I(L,B,U,`⊬`,`\\nvdash`,!0),I(L,B,U,`⊭`,`\\nvDash`,!0),I(L,B,U,`⋪`,`\\ntriangleleft`),I(L,B,U,`⋬`,`\\ntrianglelefteq`,!0),I(L,B,U,`⊊`,`\\subsetneq`,!0),I(L,B,U,``,`\\@varsubsetneq`),I(L,B,U,`⫋`,`\\subsetneqq`,!0),I(L,B,U,``,`\\@varsubsetneqq`),I(L,B,U,`≯`,`\\ngtr`,!0),I(L,B,U,``,`\\@ngeqslant`),I(L,B,U,``,`\\@ngeqq`),I(L,B,U,`⪈`,`\\gneq`,!0),I(L,B,U,`≩`,`\\gneqq`,!0),I(L,B,U,``,`\\@gvertneqq`),I(L,B,U,`⋧`,`\\gnsim`,!0),I(L,B,U,`⪊`,`\\gnapprox`,!0),I(L,B,U,`⊁`,`\\nsucc`,!0),I(L,B,U,`⋡`,`\\nsucceq`,!0),I(L,B,U,`⋩`,`\\succnsim`,!0),I(L,B,U,`⪺`,`\\succnapprox`,!0),I(L,B,U,`≆`,`\\ncong`,!0),I(L,B,U,``,`\\@nshortparallel`),I(L,B,U,`∦`,`\\nparallel`,!0),I(L,B,U,`⊯`,`\\nVDash`,!0),I(L,B,U,`⋫`,`\\ntriangleright`),I(L,B,U,`⋭`,`\\ntrianglerighteq`,!0),I(L,B,U,``,`\\@nsupseteqq`),I(L,B,U,`⊋`,`\\supsetneq`,!0),I(L,B,U,``,`\\@varsupsetneq`),I(L,B,U,`⫌`,`\\supsetneqq`,!0),I(L,B,U,``,`\\@varsupsetneqq`),I(L,B,U,`⊮`,`\\nVdash`,!0),I(L,B,U,`⪵`,`\\precneqq`,!0),I(L,B,U,`⪶`,`\\succneqq`,!0),I(L,B,U,``,`\\@nsubseteqq`),I(L,B,V,`⊴`,`\\unlhd`),I(L,B,V,`⊵`,`\\unrhd`),I(L,B,U,`↚`,`\\nleftarrow`,!0),I(L,B,U,`↛`,`\\nrightarrow`,!0),I(L,B,U,`⇍`,`\\nLeftarrow`,!0),I(L,B,U,`⇏`,`\\nRightarrow`,!0),I(L,B,U,`↮`,`\\nleftrightarrow`,!0),I(L,B,U,`⇎`,`\\nLeftrightarrow`,!0),I(L,B,U,`△`,`\\vartriangle`),I(L,B,W,`ℏ`,`\\hslash`),I(L,B,W,`▽`,`\\triangledown`),I(L,B,W,`◊`,`\\lozenge`),I(L,B,W,`Ⓢ`,`\\circledS`),I(L,B,W,`®`,`\\circledR`),I(R,B,W,`®`,`\\circledR`),I(L,B,W,`∡`,`\\measuredangle`,!0),I(L,B,W,`∄`,`\\nexists`),I(L,B,W,`℧`,`\\mho`),I(L,B,W,`Ⅎ`,`\\Finv`,!0),I(L,B,W,`⅁`,`\\Game`,!0),I(L,B,W,`‵`,`\\backprime`),I(L,B,W,`▲`,`\\blacktriangle`),I(L,B,W,`▼`,`\\blacktriangledown`),I(L,B,W,`■`,`\\blacksquare`),I(L,B,W,`⧫`,`\\blacklozenge`),I(L,B,W,`★`,`\\bigstar`),I(L,B,W,`∢`,`\\sphericalangle`,!0),I(L,B,W,`∁`,`\\complement`,!0),I(L,B,W,`ð`,`\\eth`,!0),I(R,z,W,`ð`,`ð`),I(L,B,W,`╱`,`\\diagup`),I(L,B,W,`╲`,`\\diagdown`),I(L,B,W,`□`,`\\square`),I(L,B,W,`□`,`\\Box`),I(L,B,W,`◊`,`\\Diamond`),I(L,B,W,`¥`,`\\yen`,!0),I(R,B,W,`¥`,`\\yen`,!0),I(L,B,W,`✓`,`\\checkmark`,!0),I(R,B,W,`✓`,`\\checkmark`),I(L,B,W,`ℶ`,`\\beth`,!0),I(L,B,W,`ℸ`,`\\daleth`,!0),I(L,B,W,`ℷ`,`\\gimel`,!0),I(L,B,W,`ϝ`,`\\digamma`,!0),I(L,B,W,`ϰ`,`\\varkappa`),I(L,B,Yo,`┌`,`\\@ulcorner`,!0),I(L,B,Ko,`┐`,`\\@urcorner`,!0),I(L,B,Yo,`└`,`\\@llcorner`,!0),I(L,B,Ko,`┘`,`\\@lrcorner`,!0),I(L,B,U,`≦`,`\\leqq`,!0),I(L,B,U,`⩽`,`\\leqslant`,!0),I(L,B,U,`⪕`,`\\eqslantless`,!0),I(L,B,U,`≲`,`\\lesssim`,!0),I(L,B,U,`⪅`,`\\lessapprox`,!0),I(L,B,U,`≊`,`\\approxeq`,!0),I(L,B,V,`⋖`,`\\lessdot`),I(L,B,U,`⋘`,`\\lll`,!0),I(L,B,U,`≶`,`\\lessgtr`,!0),I(L,B,U,`⋚`,`\\lesseqgtr`,!0),I(L,B,U,`⪋`,`\\lesseqqgtr`,!0),I(L,B,U,`≑`,`\\doteqdot`),I(L,B,U,`≓`,`\\risingdotseq`,!0),I(L,B,U,`≒`,`\\fallingdotseq`,!0),I(L,B,U,`∽`,`\\backsim`,!0),I(L,B,U,`⋍`,`\\backsimeq`,!0),I(L,B,U,`⫅`,`\\subseteqq`,!0),I(L,B,U,`⋐`,`\\Subset`,!0),I(L,B,U,`⊏`,`\\sqsubset`,!0),I(L,B,U,`≼`,`\\preccurlyeq`,!0),I(L,B,U,`⋞`,`\\curlyeqprec`,!0),I(L,B,U,`≾`,`\\precsim`,!0),I(L,B,U,`⪷`,`\\precapprox`,!0),I(L,B,U,`⊲`,`\\vartriangleleft`),I(L,B,U,`⊴`,`\\trianglelefteq`),I(L,B,U,`⊨`,`\\vDash`,!0),I(L,B,U,`⊪`,`\\Vvdash`,!0),I(L,B,U,`⌣`,`\\smallsmile`),I(L,B,U,`⌢`,`\\smallfrown`),I(L,B,U,`≏`,`\\bumpeq`,!0),I(L,B,U,`≎`,`\\Bumpeq`,!0),I(L,B,U,`≧`,`\\geqq`,!0),I(L,B,U,`⩾`,`\\geqslant`,!0),I(L,B,U,`⪖`,`\\eqslantgtr`,!0),I(L,B,U,`≳`,`\\gtrsim`,!0),I(L,B,U,`⪆`,`\\gtrapprox`,!0),I(L,B,V,`⋗`,`\\gtrdot`),I(L,B,U,`⋙`,`\\ggg`,!0),I(L,B,U,`≷`,`\\gtrless`,!0),I(L,B,U,`⋛`,`\\gtreqless`,!0),I(L,B,U,`⪌`,`\\gtreqqless`,!0),I(L,B,U,`≖`,`\\eqcirc`,!0),I(L,B,U,`≗`,`\\circeq`,!0),I(L,B,U,`≜`,`\\triangleq`,!0),I(L,B,U,`∼`,`\\thicksim`),I(L,B,U,`≈`,`\\thickapprox`),I(L,B,U,`⫆`,`\\supseteqq`,!0),I(L,B,U,`⋑`,`\\Supset`,!0),I(L,B,U,`⊐`,`\\sqsupset`,!0),I(L,B,U,`≽`,`\\succcurlyeq`,!0),I(L,B,U,`⋟`,`\\curlyeqsucc`,!0),I(L,B,U,`≿`,`\\succsim`,!0),I(L,B,U,`⪸`,`\\succapprox`,!0),I(L,B,U,`⊳`,`\\vartriangleright`),I(L,B,U,`⊵`,`\\trianglerighteq`),I(L,B,U,`⊩`,`\\Vdash`,!0),I(L,B,U,`∣`,`\\shortmid`),I(L,B,U,`∥`,`\\shortparallel`),I(L,B,U,`≬`,`\\between`,!0),I(L,B,U,`⋔`,`\\pitchfork`,!0),I(L,B,U,`∝`,`\\varpropto`),I(L,B,U,`◀`,`\\blacktriangleleft`),I(L,B,U,`∴`,`\\therefore`,!0),I(L,B,U,`∍`,`\\backepsilon`),I(L,B,U,`▶`,`\\blacktriangleright`),I(L,B,U,`∵`,`\\because`,!0),I(L,B,U,`⋘`,`\\llless`),I(L,B,U,`⋙`,`\\gggtr`),I(L,B,V,`⊲`,`\\lhd`),I(L,B,V,`⊳`,`\\rhd`),I(L,B,U,`≂`,`\\eqsim`,!0),I(L,z,U,`⋈`,`\\Join`),I(L,B,U,`≑`,`\\Doteq`,!0),I(L,B,V,`∔`,`\\dotplus`,!0),I(L,B,V,`∖`,`\\smallsetminus`),I(L,B,V,`⋒`,`\\Cap`,!0),I(L,B,V,`⋓`,`\\Cup`,!0),I(L,B,V,`⩞`,`\\doublebarwedge`,!0),I(L,B,V,`⊟`,`\\boxminus`,!0),I(L,B,V,`⊞`,`\\boxplus`,!0),I(L,B,V,`⋇`,`\\divideontimes`,!0),I(L,B,V,`⋉`,`\\ltimes`,!0),I(L,B,V,`⋊`,`\\rtimes`,!0),I(L,B,V,`⋋`,`\\leftthreetimes`,!0),I(L,B,V,`⋌`,`\\rightthreetimes`,!0),I(L,B,V,`⋏`,`\\curlywedge`,!0),I(L,B,V,`⋎`,`\\curlyvee`,!0),I(L,B,V,`⊝`,`\\circleddash`,!0),I(L,B,V,`⊛`,`\\circledast`,!0),I(L,B,V,`⋅`,`\\centerdot`),I(L,B,V,`⊺`,`\\intercal`,!0),I(L,B,V,`⋒`,`\\doublecap`),I(L,B,V,`⋓`,`\\doublecup`),I(L,B,V,`⊠`,`\\boxtimes`,!0),I(L,B,U,`⇢`,`\\dashrightarrow`,!0),I(L,B,U,`⇠`,`\\dashleftarrow`,!0),I(L,B,U,`⇇`,`\\leftleftarrows`,!0),I(L,B,U,`⇆`,`\\leftrightarrows`,!0),I(L,B,U,`⇚`,`\\Lleftarrow`,!0),I(L,B,U,`↞`,`\\twoheadleftarrow`,!0),I(L,B,U,`↢`,`\\leftarrowtail`,!0),I(L,B,U,`↫`,`\\looparrowleft`,!0),I(L,B,U,`⇋`,`\\leftrightharpoons`,!0),I(L,B,U,`↶`,`\\curvearrowleft`,!0),I(L,B,U,`↺`,`\\circlearrowleft`,!0),I(L,B,U,`↰`,`\\Lsh`,!0),I(L,B,U,`⇈`,`\\upuparrows`,!0),I(L,B,U,`↿`,`\\upharpoonleft`,!0),I(L,B,U,`⇃`,`\\downharpoonleft`,!0),I(L,z,U,`⊶`,`\\origof`,!0),I(L,z,U,`⊷`,`\\imageof`,!0),I(L,B,U,`⊸`,`\\multimap`,!0),I(L,B,U,`↭`,`\\leftrightsquigarrow`,!0),I(L,B,U,`⇉`,`\\rightrightarrows`,!0),I(L,B,U,`⇄`,`\\rightleftarrows`,!0),I(L,B,U,`↠`,`\\twoheadrightarrow`,!0),I(L,B,U,`↣`,`\\rightarrowtail`,!0),I(L,B,U,`↬`,`\\looparrowright`,!0),I(L,B,U,`↷`,`\\curvearrowright`,!0),I(L,B,U,`↻`,`\\circlearrowright`,!0),I(L,B,U,`↱`,`\\Rsh`,!0),I(L,B,U,`⇊`,`\\downdownarrows`,!0),I(L,B,U,`↾`,`\\upharpoonright`,!0),I(L,B,U,`⇂`,`\\downharpoonright`,!0),I(L,B,U,`⇝`,`\\rightsquigarrow`,!0),I(L,B,U,`⇝`,`\\leadsto`),I(L,B,U,`⇛`,`\\Rrightarrow`,!0),I(L,B,U,`↾`,`\\restriction`),I(L,z,W,`‘`,"`"),I(L,z,W,`$`,`\\$`),I(R,z,W,`$`,`\\$`),I(R,z,W,`$`,`\\textdollar`),I(L,z,W,`%`,`\\%`),I(R,z,W,`%`,`\\%`),I(L,z,W,`_`,`\\_`),I(R,z,W,`_`,`\\_`),I(R,z,W,`_`,`\\textunderscore`),I(L,z,W,`∠`,`\\angle`,!0),I(L,z,W,`∞`,`\\infty`,!0),I(L,z,W,`′`,`\\prime`),I(L,z,W,`△`,`\\triangle`),I(L,z,W,`Γ`,`\\Gamma`,!0),I(L,z,W,`Δ`,`\\Delta`,!0),I(L,z,W,`Θ`,`\\Theta`,!0),I(L,z,W,`Λ`,`\\Lambda`,!0),I(L,z,W,`Ξ`,`\\Xi`,!0),I(L,z,W,`Π`,`\\Pi`,!0),I(L,z,W,`Σ`,`\\Sigma`,!0),I(L,z,W,`Υ`,`\\Upsilon`,!0),I(L,z,W,`Φ`,`\\Phi`,!0),I(L,z,W,`Ψ`,`\\Psi`,!0),I(L,z,W,`Ω`,`\\Omega`,!0),I(L,z,W,`A`,`Α`),I(L,z,W,`B`,`Β`),I(L,z,W,`E`,`Ε`),I(L,z,W,`Z`,`Ζ`),I(L,z,W,`H`,`Η`),I(L,z,W,`I`,`Ι`),I(L,z,W,`K`,`Κ`),I(L,z,W,`M`,`Μ`),I(L,z,W,`N`,`Ν`),I(L,z,W,`O`,`Ο`),I(L,z,W,`P`,`Ρ`),I(L,z,W,`T`,`Τ`),I(L,z,W,`X`,`Χ`),I(L,z,W,`¬`,`\\neg`,!0),I(L,z,W,`¬`,`\\lnot`),I(L,z,W,`⊤`,`\\top`),I(L,z,W,`⊥`,`\\bot`),I(L,z,W,`∅`,`\\emptyset`),I(L,B,W,`∅`,`\\varnothing`),I(L,z,H,`α`,`\\alpha`,!0),I(L,z,H,`β`,`\\beta`,!0),I(L,z,H,`γ`,`\\gamma`,!0),I(L,z,H,`δ`,`\\delta`,!0),I(L,z,H,`ϵ`,`\\epsilon`,!0),I(L,z,H,`ζ`,`\\zeta`,!0),I(L,z,H,`η`,`\\eta`,!0),I(L,z,H,`θ`,`\\theta`,!0),I(L,z,H,`ι`,`\\iota`,!0),I(L,z,H,`κ`,`\\kappa`,!0),I(L,z,H,`λ`,`\\lambda`,!0),I(L,z,H,`μ`,`\\mu`,!0),I(L,z,H,`ν`,`\\nu`,!0),I(L,z,H,`ξ`,`\\xi`,!0),I(L,z,H,`ο`,`\\omicron`,!0),I(L,z,H,`π`,`\\pi`,!0),I(L,z,H,`ρ`,`\\rho`,!0),I(L,z,H,`σ`,`\\sigma`,!0),I(L,z,H,`τ`,`\\tau`,!0),I(L,z,H,`υ`,`\\upsilon`,!0),I(L,z,H,`ϕ`,`\\phi`,!0),I(L,z,H,`χ`,`\\chi`,!0),I(L,z,H,`ψ`,`\\psi`,!0),I(L,z,H,`ω`,`\\omega`,!0),I(L,z,H,`ε`,`\\varepsilon`,!0),I(L,z,H,`ϑ`,`\\vartheta`,!0),I(L,z,H,`ϖ`,`\\varpi`,!0),I(L,z,H,`ϱ`,`\\varrho`,!0),I(L,z,H,`ς`,`\\varsigma`,!0),I(L,z,H,`φ`,`\\varphi`,!0),I(L,z,V,`∗`,`*`,!0),I(L,z,V,`+`,`+`),I(L,z,V,`−`,`-`,!0),I(L,z,V,`⋅`,`\\cdot`,!0),I(L,z,V,`∘`,`\\circ`,!0),I(L,z,V,`÷`,`\\div`,!0),I(L,z,V,`±`,`\\pm`,!0),I(L,z,V,`×`,`\\times`,!0),I(L,z,V,`∩`,`\\cap`,!0),I(L,z,V,`∪`,`\\cup`,!0),I(L,z,V,`∖`,`\\setminus`,!0),I(L,z,V,`∧`,`\\land`),I(L,z,V,`∨`,`\\lor`),I(L,z,V,`∧`,`\\wedge`,!0),I(L,z,V,`∨`,`\\vee`,!0),I(L,z,W,`√`,`\\surd`),I(L,z,Yo,`⟨`,`\\langle`,!0),I(L,z,Yo,`∣`,`\\lvert`),I(L,z,Yo,`∥`,`\\lVert`),I(L,z,Ko,`?`,`?`),I(L,z,Ko,`!`,`!`),I(L,z,Ko,`⟩`,`\\rangle`,!0),I(L,z,Ko,`∣`,`\\rvert`),I(L,z,Ko,`∥`,`\\rVert`),I(L,z,U,`=`,`=`),I(L,z,U,`:`,`:`),I(L,z,U,`≈`,`\\approx`,!0),I(L,z,U,`≅`,`\\cong`,!0),I(L,z,U,`≥`,`\\ge`),I(L,z,U,`≥`,`\\geq`,!0),I(L,z,U,`←`,`\\gets`),I(L,z,U,`>`,`\\gt`,!0),I(L,z,U,`∈`,`\\in`,!0),I(L,z,U,``,`\\@not`),I(L,z,U,`⊂`,`\\subset`,!0),I(L,z,U,`⊃`,`\\supset`,!0),I(L,z,U,`⊆`,`\\subseteq`,!0),I(L,z,U,`⊇`,`\\supseteq`,!0),I(L,B,U,`⊈`,`\\nsubseteq`,!0),I(L,B,U,`⊉`,`\\nsupseteq`,!0),I(L,z,U,`⊨`,`\\models`),I(L,z,U,`←`,`\\leftarrow`,!0),I(L,z,U,`≤`,`\\le`),I(L,z,U,`≤`,`\\leq`,!0),I(L,z,U,`<`,`\\lt`,!0),I(L,z,U,`→`,`\\rightarrow`,!0),I(L,z,U,`→`,`\\to`),I(L,B,U,`≱`,`\\ngeq`,!0),I(L,B,U,`≰`,`\\nleq`,!0),I(L,z,Zo,`\xA0`,`\\ `),I(L,z,Zo,`\xA0`,`\\space`),I(L,z,Zo,`\xA0`,`\\nobreakspace`),I(R,z,Zo,`\xA0`,`\\ `),I(R,z,Zo,`\xA0`,` `),I(R,z,Zo,`\xA0`,`\\space`),I(R,z,Zo,`\xA0`,`\\nobreakspace`),I(L,z,Zo,``,`\\nobreak`),I(L,z,Zo,``,`\\allowbreak`),I(L,z,Xo,`,`,`,`),I(L,z,Xo,`;`,`;`),I(L,B,V,`⊼`,`\\barwedge`,!0),I(L,B,V,`⊻`,`\\veebar`,!0),I(L,z,V,`⊙`,`\\odot`,!0),I(L,z,V,`⊕`,`\\oplus`,!0),I(L,z,V,`⊗`,`\\otimes`,!0),I(L,z,W,`∂`,`\\partial`,!0),I(L,z,V,`⊘`,`\\oslash`,!0),I(L,B,V,`⊚`,`\\circledcirc`,!0),I(L,B,V,`⊡`,`\\boxdot`,!0),I(L,z,V,`△`,`\\bigtriangleup`),I(L,z,V,`▽`,`\\bigtriangledown`),I(L,z,V,`†`,`\\dagger`),I(L,z,V,`⋄`,`\\diamond`),I(L,z,V,`⋆`,`\\star`),I(L,z,V,`◃`,`\\triangleleft`),I(L,z,V,`▹`,`\\triangleright`),I(L,z,Yo,`{`,`\\{`),I(R,z,W,`{`,`\\{`),I(R,z,W,`{`,`\\textbraceleft`),I(L,z,Ko,`}`,`\\}`),I(R,z,W,`}`,`\\}`),I(R,z,W,`}`,`\\textbraceright`),I(L,z,Yo,`{`,`\\lbrace`),I(L,z,Ko,`}`,`\\rbrace`),I(L,z,Yo,`[`,`\\lbrack`,!0),I(R,z,W,`[`,`\\lbrack`,!0),I(L,z,Ko,`]`,`\\rbrack`,!0),I(R,z,W,`]`,`\\rbrack`,!0),I(L,z,Yo,`(`,`\\lparen`,!0),I(L,z,Ko,`)`,`\\rparen`,!0),I(R,z,W,`<`,`\\textless`,!0),I(R,z,W,`>`,`\\textgreater`,!0),I(L,z,Yo,`⌊`,`\\lfloor`,!0),I(L,z,Ko,`⌋`,`\\rfloor`,!0),I(L,z,Yo,`⌈`,`\\lceil`,!0),I(L,z,Ko,`⌉`,`\\rceil`,!0),I(L,z,W,`\\`,`\\backslash`),I(L,z,W,`∣`,`|`),I(L,z,W,`∣`,`\\vert`),I(R,z,W,`|`,`\\textbar`,!0),I(L,z,W,`∥`,`\\|`),I(L,z,W,`∥`,`\\Vert`),I(R,z,W,`∥`,`\\textbardbl`),I(R,z,W,`~`,`\\textasciitilde`),I(R,z,W,`\\`,`\\textbackslash`),I(R,z,W,`^`,`\\textasciicircum`),I(L,z,U,`↑`,`\\uparrow`,!0),I(L,z,U,`⇑`,`\\Uparrow`,!0),I(L,z,U,`↓`,`\\downarrow`,!0),I(L,z,U,`⇓`,`\\Downarrow`,!0),I(L,z,U,`↕`,`\\updownarrow`,!0),I(L,z,U,`⇕`,`\\Updownarrow`,!0),I(L,z,Jo,`∐`,`\\coprod`),I(L,z,Jo,`⋁`,`\\bigvee`),I(L,z,Jo,`⋀`,`\\bigwedge`),I(L,z,Jo,`⨄`,`\\biguplus`),I(L,z,Jo,`⋂`,`\\bigcap`),I(L,z,Jo,`⋃`,`\\bigcup`),I(L,z,Jo,`∫`,`\\int`),I(L,z,Jo,`∫`,`\\intop`),I(L,z,Jo,`∬`,`\\iint`),I(L,z,Jo,`∭`,`\\iiint`),I(L,z,Jo,`∏`,`\\prod`),I(L,z,Jo,`∑`,`\\sum`),I(L,z,Jo,`⨂`,`\\bigotimes`),I(L,z,Jo,`⨁`,`\\bigoplus`),I(L,z,Jo,`⨀`,`\\bigodot`),I(L,z,Jo,`∮`,`\\oint`),I(L,z,Jo,`∯`,`\\oiint`),I(L,z,Jo,`∰`,`\\oiiint`),I(L,z,Jo,`⨆`,`\\bigsqcup`),I(L,z,Jo,`∫`,`\\smallint`),I(R,z,qo,`…`,`\\textellipsis`),I(L,z,qo,`…`,`\\mathellipsis`),I(R,z,qo,`…`,`\\ldots`,!0),I(L,z,qo,`…`,`\\ldots`,!0),I(L,z,qo,`⋯`,`\\@cdots`,!0),I(L,z,qo,`⋱`,`\\ddots`,!0),I(L,z,W,`⋮`,`\\varvdots`),I(R,z,W,`⋮`,`\\varvdots`),I(L,z,Go,`ˊ`,`\\acute`),I(L,z,Go,`ˋ`,`\\grave`),I(L,z,Go,`¨`,`\\ddot`),I(L,z,Go,`~`,`\\tilde`),I(L,z,Go,`ˉ`,`\\bar`),I(L,z,Go,`˘`,`\\breve`),I(L,z,Go,`ˇ`,`\\check`),I(L,z,Go,`^`,`\\hat`),I(L,z,Go,`⃗`,`\\vec`),I(L,z,Go,`˙`,`\\dot`),I(L,z,Go,`˚`,`\\mathring`),I(L,z,H,``,`\\@imath`),I(L,z,H,``,`\\@jmath`),I(L,z,W,`ı`,`ı`),I(L,z,W,`ȷ`,`ȷ`),I(R,z,W,`ı`,`\\i`,!0),I(R,z,W,`ȷ`,`\\j`,!0),I(R,z,W,`ß`,`\\ss`,!0),I(R,z,W,`æ`,`\\ae`,!0),I(R,z,W,`œ`,`\\oe`,!0),I(R,z,W,`ø`,`\\o`,!0),I(R,z,W,`Æ`,`\\AE`,!0),I(R,z,W,`Œ`,`\\OE`,!0),I(R,z,W,`Ø`,`\\O`,!0),I(R,z,Go,`ˊ`,`\\'`),I(R,z,Go,`ˋ`,"\\`"),I(R,z,Go,`ˆ`,`\\^`),I(R,z,Go,`˜`,`\\~`),I(R,z,Go,`ˉ`,`\\=`),I(R,z,Go,`˘`,`\\u`),I(R,z,Go,`˙`,`\\.`),I(R,z,Go,`¸`,`\\c`),I(R,z,Go,`˚`,`\\r`),I(R,z,Go,`ˇ`,`\\v`),I(R,z,Go,`¨`,`\\"`),I(R,z,Go,`˝`,`\\H`),I(R,z,Go,`◯`,`\\textcircled`);var Qo={"--":!0,"---":!0,"``":!0,"''":!0};I(R,z,W,`–`,`--`,!0),I(R,z,W,`–`,`\\textendash`),I(R,z,W,`—`,`---`,!0),I(R,z,W,`—`,`\\textemdash`),I(R,z,W,`‘`,"`",!0),I(R,z,W,`‘`,`\\textquoteleft`),I(R,z,W,`’`,`'`,!0),I(R,z,W,`’`,`\\textquoteright`),I(R,z,W,`“`,"``",!0),I(R,z,W,`“`,`\\textquotedblleft`),I(R,z,W,`”`,`''`,!0),I(R,z,W,`”`,`\\textquotedblright`),I(L,z,W,`°`,`\\degree`,!0),I(R,z,W,`°`,`\\degree`),I(R,z,W,`°`,`\\textdegree`,!0),I(L,z,W,`£`,`\\pounds`),I(L,z,W,`£`,`\\mathsterling`,!0),I(R,z,W,`£`,`\\pounds`),I(R,z,W,`£`,`\\textsterling`,!0),I(L,B,W,`✠`,`\\maltese`),I(R,B,W,`✠`,`\\maltese`);for(var $o=`0123456789/@."`,es=0;es<$o.length;es++){var ts=$o.charAt(es);I(L,z,W,ts,ts)}for(var ns=`0123456789!@*()-=+";:?/.,`,rs=0;rs<ns.length;rs++){var is=ns.charAt(rs);I(R,z,W,is,is)}for(var as=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,os=0;os<as.length;os++){var ss=as.charAt(os);I(L,z,H,ss,ss),I(R,z,W,ss,ss)}I(L,B,W,`C`,`ℂ`),I(R,B,W,`C`,`ℂ`),I(L,B,W,`H`,`ℍ`),I(R,B,W,`H`,`ℍ`),I(L,B,W,`N`,`ℕ`),I(R,B,W,`N`,`ℕ`),I(L,B,W,`P`,`ℙ`),I(R,B,W,`P`,`ℙ`),I(L,B,W,`Q`,`ℚ`),I(R,B,W,`Q`,`ℚ`),I(L,B,W,`R`,`ℝ`),I(R,B,W,`R`,`ℝ`),I(L,B,W,`Z`,`ℤ`),I(R,B,W,`Z`,`ℤ`),I(L,z,H,`h`,`ℎ`),I(R,z,H,`h`,`ℎ`);for(var G,cs=0;cs<as.length;cs++){var ls=as.charAt(cs);G=String.fromCharCode(55349,56320+cs),I(L,z,H,ls,G),I(R,z,W,ls,G),G=String.fromCharCode(55349,56372+cs),I(L,z,H,ls,G),I(R,z,W,ls,G),G=String.fromCharCode(55349,56424+cs),I(L,z,H,ls,G),I(R,z,W,ls,G),G=String.fromCharCode(55349,56580+cs),I(L,z,H,ls,G),I(R,z,W,ls,G),G=String.fromCharCode(55349,56684+cs),I(L,z,H,ls,G),I(R,z,W,ls,G),G=String.fromCharCode(55349,56736+cs),I(L,z,H,ls,G),I(R,z,W,ls,G),G=String.fromCharCode(55349,56788+cs),I(L,z,H,ls,G),I(R,z,W,ls,G),G=String.fromCharCode(55349,56840+cs),I(L,z,H,ls,G),I(R,z,W,ls,G),G=String.fromCharCode(55349,56944+cs),I(L,z,H,ls,G),I(R,z,W,ls,G),cs<26&&(G=String.fromCharCode(55349,56632+cs),I(L,z,H,ls,G),I(R,z,W,ls,G),G=String.fromCharCode(55349,56476+cs),I(L,z,H,ls,G),I(R,z,W,ls,G))}G=String.fromCharCode(55349,56668),I(L,z,H,`k`,G),I(R,z,W,`k`,G);for(var us=0;us<10;us++){var ds=us.toString();G=String.fromCharCode(55349,57294+us),I(L,z,H,ds,G),I(R,z,W,ds,G),G=String.fromCharCode(55349,57314+us),I(L,z,H,ds,G),I(R,z,W,ds,G),G=String.fromCharCode(55349,57324+us),I(L,z,H,ds,G),I(R,z,W,ds,G),G=String.fromCharCode(55349,57334+us),I(L,z,H,ds,G),I(R,z,W,ds,G)}for(var fs=`ÐÞþ`,ps=0;ps<fs.length;ps++){var ms=fs.charAt(ps);I(L,z,H,ms,ms),I(R,z,W,ms,ms)}var hs={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},gs={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},_s={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},vs={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},ys={mathClass:``,textClass:``,font:``},bs={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},xs={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},Ss={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},Cs={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},ws={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},Ts={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},Es={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},Ds=[hs,hs,gs,gs,_s,_s,vs,ys,ys,ys,bs,bs,xs,xs,Ss,Ss,Cs,Cs,ws,ws,Ts,Ts,ys,ys,Es,Es],Os=[hs,ys,Cs,ws,Es],ks=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return Ds[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return Os[Math.floor((r-120782)/10)];if(r===120485||r===120486)return Ds[0];if(120486<r&&r<120782)return ys;throw new N(`Unsupported character: `+e)};function As(e){var t=e.strict,n=e.errorCode,r=e.errorMsg,i=e.token,a=e.report,o=t;if(typeof t==`function`)if(a)o=t(n,r,i);else try{o=t(n,r,i)}catch{o=`error`}switch(o){case!0:case`error`:if(a)throw new N(`LaTeX-incompatible input and strict mode is set to 'error': `+(r+` [`+n+`]`),i);return!0;case!1:case`ignore`:if(!a)return!1;break;default:if(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(r+` [`+n+`]`)),!a)return!1;break}}var js=function(e,t,n){if(Wo[n][e]){var r=Wo[n][e].replace;r&&(e=r)}return{value:e,metrics:Vo(e,t,n)}},Ms=function(e,t,n,r,i){var a=js(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new Ao(e,o.height,o.depth,c,o.skew,o.width,i)}else As({strict:r.strict,errorCode:`symbolNotInFont`,errorMsg:`No character metrics for '`+e+`' in style '`+t+`' and mode '`+n+`'`,report:!0}),s=new Ao(e,0,0,0,0,0,i);s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();return l&&(s.style.color=l),s},Ns=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&js(e,`Main-Bold`,t).metrics?Ms(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||Wo[t][e].font===`main`?Ms(e,`Main-Regular`,t,n,r):Ms(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},Ps=function(e,t,n){return n!==`textord`&&js(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},Fs=function(e,t){var n=e.type===`mathord`?`mathord`:`textord`,r=e.mode,i=e.text,a=[`mord`],o=t.font,s=t.fontFamily,c=t.fontWeight,l=t.fontShape,u=r===`math`||r===`text`&&!!o,d=u?o:s,f=``,p=``;if(i.charCodeAt(0)===55349){var m=ks(i);f=m.font,p=m[r+`Class`]}if(f)return Ms(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=Ps(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=qs[o].fontName,g=[o]):(h=Ks(s,c,l),g=[s,c,l]);if(js(i,h,r).metrics)return Ms(i,h,r,t,a.concat(g));if(Object.prototype.hasOwnProperty.call(Qo,i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(Ms(i[y],h,r,t,a.concat(g)));return Hs(v)}}if(n===`mathord`)return Ms(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=Wo[r][i]&&Wo[r][i].font;if(b===`ams`)return Ms(i,Ks(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return Ms(i,Ks(`textrm`,c,l),r,t,a.concat(c,l));var x=Ks(b,c,l);return Ms(i,x,r,t,a.concat(x,c,l))}else throw Error(`unexpected type: `+n+` in makeOrd`)},Is=(e,t)=>{if(bo(e.classes)!==bo(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},Ls=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof Ao&&r instanceof Ao&&Is(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},Rs=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},K=function(e,t,n,r){var i=new Eo(e,t,n,r);return Rs(i),i},zs=(e,t,n,r)=>new Eo(e,t,n,r),Bs=function(e,t,n){var r=K([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=F(r.height),r.maxFontSize=1,r},Vs=function(e,t,n,r){var i=new Do(e,t,n,r);return Rs(i),i},Hs=function(e){var t=new ho(e);return Rs(t),t},Us=function(e,t){return e instanceof ho?K([],[e],t):e},Ws=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},q=function(e,t){for(var n=Ws(e),r=n.children,i=n.depth,a=0,o=0;o<r.length;o++){var s=r[o];if(s.type===`elem`){var c=s.elem;a=Math.max(a,c.maxFontSize,c.height)}}a+=2;var l=K([`pstrut`],[]);l.style.height=F(a);for(var u=[],d=i,f=i,p=i,m=0;m<r.length;m++){var h=r[m];if(h.type===`kern`)p+=h.size;else{var g=h.elem,_=h.wrapperClasses||[],v=h.wrapperStyle||{},y=K(_,[l,g],void 0,v);y.style.top=F(-a-p-g.depth),h.marginLeft&&(y.style.marginLeft=h.marginLeft),h.marginRight&&(y.style.marginRight=h.marginRight),u.push(y),p+=g.height+g.depth}d=Math.min(d,p),f=Math.max(f,p)}var b=K([`vlist`],u);b.style.height=F(f);var x;if(d<0){var S=K([`vlist`],[K([],[])]);S.style.height=F(-d),x=[K([`vlist-r`],[b,K([`vlist-s`],[new Ao(`​`)])]),K([`vlist-r`],[S])]}else x=[K([`vlist-r`],[b])];var C=K([`vlist-t`],x);return x.length===2&&C.classes.push(`vlist-t2`),C.height=f,C.depth=-d,C},Gs=(e,t)=>{var n=K([`mspace`],[],t),r=yo(e,t);return n.style.marginRight=F(r),n},Ks=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},qs={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},Js={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},Ys=function(e,t){var n=Js[e],r=n[0],i=n[1],a=n[2],o=zs([`katex-overlay`],[new jo([new Mo(r)],{width:F(i),height:F(a),style:`width:`+F(i),viewBox:`0 0 `+1e3*i+` `+1e3*a,preserveAspectRatio:`xMinYMin`})],t);return o.height=a,o.style.height=F(a),o.style.width=F(i),o},Xs={number:3,unit:`mu`},Zs={number:4,unit:`mu`},Qs={number:5,unit:`mu`},$s={mord:{mop:Xs,mbin:Zs,mrel:Qs,minner:Xs},mop:{mord:Xs,mop:Xs,mrel:Qs,minner:Xs},mbin:{mord:Zs,mop:Zs,mopen:Zs,minner:Zs},mrel:{mord:Qs,mop:Qs,mopen:Qs,minner:Qs},mopen:{},mclose:{mop:Xs,mbin:Zs,mrel:Qs,minner:Xs},mpunct:{mord:Xs,mop:Xs,mrel:Qs,mopen:Xs,mclose:Xs,mpunct:Xs,minner:Xs},minner:{mord:Xs,mop:Xs,mbin:Zs,mrel:Qs,mopen:Xs,mpunct:Xs,minner:Xs}},ec={mord:{mop:Xs},mop:{mord:Xs,mop:Xs},mbin:{},mrel:{},mopen:{},mclose:{mop:Xs},mpunct:{},minner:{mop:Xs}},tc={},nc={},rc={};function J(e){for(var t=e.type,n=e.names,r=e.htmlBuilder,i=e.mathmlBuilder,a=0;a<n.length;++a)tc[n[a]]=e;t&&(r&&(nc[t]=r),i&&(rc[t]=i))}function ic(e){var t=e.type,n=e.htmlBuilder,r=e.mathmlBuilder;n&&(nc[t]=n),r&&(rc[t]=r)}var ac=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},oc=function(e){return e.type===`ordgroup`?e.body:[e]},sc=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),cc=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),lc={display:P.DISPLAY,text:P.TEXT,script:P.SCRIPT,scriptscript:P.SCRIPTSCRIPT},uc={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},dc=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=Y(e[a],t);if(o instanceof ho){var s=o.children;i.push(...s)}else i.push(o)}if(Ls(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(lc[l.style]))}var u=K([r[0]||`leftmost`],[],t),d=K([r[1]||`rightmost`],[],t),f=n===`root`;return fc(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&cc.has(r)?t.classes[0]=`mord`:r===`mbin`&&sc.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),fc(i,(e,t)=>{var n=hc(t),r=hc(e),i=n&&r?e.hasClass(`mtight`)?ec[n]?.[r]:$s[n]?.[r]:null;if(i)return Gs(i,c)},{node:u},d,f),i},fc=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=pc(o);if(s){fc(s.children,t,n,null,i);continue}var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`katex-newline`)&&(n.node=K([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},pc=function(e){return e instanceof ho||e instanceof Do||e instanceof Eo&&e.hasClass(`enclosing`)?e:null},mc=function(e,t){var n=pc(e);if(n){var r=n.children;if(r.length){if(t===`right`)return mc(r[r.length-1],`right`);if(t===`left`)return mc(r[0],`left`)}}return e},hc=function(e,t){return e?(t&&(e=mc(e,t)),uc[e.classes[0]]||null):null},gc=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return K(t.concat(n))},Y=function(e,t,n){if(!e)return K();if(nc[e.type]){var r=nc[e.type](e,t);if(n&&t.size!==n.size){r=K(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}else throw new N(`Got group of unknown type: '`+e.type+`'`)};function _c(e,t){var n=K([`katex-base`],e,t),r=K([`katex-strut`]);return r.style.height=F(n.height+n.depth),n.depth&&(r.style.verticalAlign=F(-n.depth)),n.children.unshift(r),n}function vc(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=dc(e,t,`root`),i;r.length===2&&r[1].hasClass(`katex-tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`katex-newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(_c(o,t)),o=[])}else r[s].hasClass(`katex-newline`)&&(o.pop(),o.length>0&&(a.push(_c(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(_c(o,t));var l;n?(l=_c(dc(n,t,!0),t),l.classes=[`katex-tag`],a.push(l)):i&&a.push(i);var u=K([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=F(u.height+u.depth),u.depth&&(d.style.verticalAlign=F(-u.depth))}return u}function yc(e){return new ho(e)}var X=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e.setAttribute(n,r)}this.classes.length>0&&(e.className=bo(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof bc&&this.children[i+1]instanceof bc){for(var a=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof bc;)a+=this.children[++i].toText();e.appendChild(new bc(a).toNode())}else e.appendChild(this.children[i].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e+=` `+n+`="`,e+=wa(r),e+=`"`}this.classes.length>0&&(e+=` class ="`+wa(bo(this.classes))+`"`),e+=`>`;for(var i=0;i<this.children.length;i++)e+=this.children[i].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},bc=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return wa(this.toText())}toText(){return this.text}},xc=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=` `:e>=.1666&&e<=.1667?this.character=` `:e>=.2222&&e<=.2223?this.character=` `:e>=.2777&&e<=.2778?this.character=`  `:e>=-.05556&&e<=-.05555?this.character=` ⁣`:e>=-.1667&&e<=-.1666?this.character=` ⁣`:e>=-.2223&&e<=-.2222?this.character=` ⁣`:e>=-.2778&&e<=-.2777?this.character=` ⁣`:this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,F(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+F(this.width)+`"/>`}toText(){return this.character?this.character:` `}},Sc=new Set([`\\imath`,`\\jmath`]),Cc=new Set([`mrow`,`mtable`]),wc=function(e,t,n){var r,i;return Wo[t][e]&&Wo[t][e].replace&&e.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(Qo,e)&&((n==null||(r=n.fontFamily)==null?void 0:r.slice(4,6))===`tt`||(n==null||(i=n.font)==null?void 0:i.slice(4,6))===`tt`))&&(e=Wo[t][e].replace),new bc(e)},Tc=function(e){return e.length===1?e[0]:new X(`mrow`,e)},Ec={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},Dc=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=Ec[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(Sc.has(a))return null;if(Wo[r][a]){var o=Wo[r][a].replace;o&&(a=o)}var s=qs[n].fontName;return Vo(a,s,r)?qs[n].variant:null};function Oc(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof bc&&t.text===`.`}else if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof bc&&n.text===`,`}else return!1}var kc=function(e,t,n){if(e.length===1){var r=Z(e[0],t);return n&&r instanceof X&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=Z(e[o],t);if(s instanceof X&&a instanceof X){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}else if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}else if(Oc(s)&&a.type===`mn`){a.children.push(...s.children);continue}else if(s.type===`mn`&&Oc(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||Oc(a))){var c=s.children[0];c instanceof X&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof bc&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof bc&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},Ac=function(e,t,n){return Tc(kc(e,t,n))},Z=function(e,t){if(!e)return new X(`mrow`);if(rc[e.type])return rc[e.type](e,t);throw new N(`Got group of unknown type: '`+e.type+`'`)};function jc(e,t,n,r,i){var a=kc(e,n),o=a.length===1&&a[0]instanceof X&&Cc.has(a[0].type)?a[0]:new X(`mrow`,a),s=new X(`annotation`,[new bc(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new X(`math`,[new X(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),K([i?`katex`:`katex-mathml`],[c])}var Mc=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Nc=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Pc=function(e,t){return t.size<2?e:Mc[e-1][t.size-1]},Fc=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.strict=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=Nc[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this.strict=t.strict,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness,strict:this.strict};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Pc(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Nc[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=Pc(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`katex-sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`katex-sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=Uo(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};Fc.BASESIZE=6;var Ic=e=>new Fc({style:e.displayMode?P.DISPLAY:P.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness,strict:e.strict}),Lc=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=K(n,[e])}return e},Rc=function(e,t,n){var r=Ic(n),i;return n.output===`mathml`?jc(e,t,r,n.displayMode,!0):(i=n.output===`html`?K([`katex`],[vc(e,r)]):K([`katex`],[jc(e,t,r,n.displayMode,!1),vc(e,r)]),Lc(i,n))},zc=function(e,t){return Lc(K([`katex`],[vc(e,Ic(t))]),t)},Bc={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},Vc=function(e){var t=new X(`mo`,[new bc(Bc[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},Hc={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},Uc=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),Wc=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(Uc.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:zs([],[new jo([new Mo(o)],{width:`100%`,height:F(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}else{var l=[],u=Hc[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var d=u[0],f=u[1],p=u[2],m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
319
- `+h+` children.`);for(var v=0;v<h;v++){var y=new jo([new Mo(d[v])],{width:`400em`,height:F(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=zs([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=F(m),l.push(b)}return{span:K([`katex-stretchy`],l,t),minWidth:f,height:m}}}var r=n(),i=r.span,a=r.minWidth,o=r.height;return i.height=o,i.style.height=F(o),a>0&&(i.style.minWidth=F(a)),i},Gc=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=K([`katex-stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new No({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new No({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=zs([],[new jo(c,{width:`100%`,height:F(o)})],i)}return a.height=o,a.style.height=F(o),a},Kc=[`bin`,`close`,`inner`,`open`,`punct`,`rel`],qc=[`accent-token`,`mathord`,`op-token`,`spacing`,`textord`],Jc=new Set(Kc),Yc=new Set(qc);function Xc(e){return Jc.has(e)}function Q(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function Zc(e){var t=Qc(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function Qc(e){return e.type===`atom`||Yc.has(e.type)?e:null}function $c(e,t,n){var r=``;for(var i of e.body)if(i.type===`textord`)r+=i.text;else if(n&&i.type===`spacing`&&i.text===` `)r+=` `;else throw new N(t,e);return r}var el=e=>{if(e instanceof Ao)return e;if(Io(e)&&e.children.length===1)return el(e.children[0])},tl=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=Q(e.base,`accent`),n=r.base,e.base=n,i=Fo(Y(e,t)),e.base=r):(r=Q(e,`accent`),n=r.base);var a=Y(n,t.havingCrampedStyle()),o=r.isShifty&&Da(n),s=0;o&&(s=el(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=Wc(r,t),u=q({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+F(2*s)+`)`,marginLeft:F(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=Ys(`vec`,t),f=Js.vec[1]):(d=Fs({type:`textord`,mode:r.mode,text:r.label},t),d=Po(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=K([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=F(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=q({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=K([`mord`,`katex-accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},nl=(e,t)=>{var n=e.isStretchy?Vc(e.label):new X(`mo`,[wc(e.label,e.mode)]),r=new X(`mover`,[Z(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},rl=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));J({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],numArgs:1,handler:(e,t)=>{var n=ac(t[0]),r=!rl.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:tl,mathmlBuilder:nl}),J({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`],handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(As({strict:e.parser.settings.strict,errorCode:`mathVsTextAccents`,errorMsg:`LaTeX's accent `+e.funcName+` works only in text mode`,report:!0}),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}}}),J({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Y(e.base,t),r=Wc(e,t),i=e.label===`\\utilde`?.12:0;return K([`mord`,`accentunder`],[q({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=Vc(e.label),r=new X(`munder`,[Z(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var il=e=>{var t=new X(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};J({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=e.funcName;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Us(Y(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=Us(Y(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=Wc(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=q({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=q({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return K([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=Vc(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=il(Z(e.body,t));r=e.below?new X(`munderover`,[n,il(Z(e.below,t)),i]):new X(`mover`,[n,i])}else e.below?r=new X(`munder`,[n,il(Z(e.below,t))]):(r=il(),r=new X(`mover`,[n,r]));return r}});function al(e,t){var n=dc(e.body,t,!0);return K([e.mclass],n,t)}function ol(e,t){var n,r=kc(e.body,t);return e.mclass===`minner`?n=new X(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new X(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new X(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):(e.mclass===`mopen`||e.mclass===`mclose`)&&(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`)),n}J({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],numArgs:1,primitive:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:oc(i),isCharacterBox:Da(i)}},htmlBuilder:al,mathmlBuilder:ol});var sl=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};J({type:`mclass`,names:[`\\@binrel`],numArgs:2,handler(e,t){return{type:`mclass`,mode:e.parser.mode,mclass:sl(t[0]),body:oc(t[1]),isCharacterBox:Da(t[1])}}}),J({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],numArgs:2,handler(e,t){var n=e.parser,r=e.funcName,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:sl(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:oc(i)},c=r===`\\underset`?{type:`supsub`,mode:a.mode,base:s,sub:a}:{type:`supsub`,mode:a.mode,base:s,sup:a};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:Da(c)}}}),J({type:`pmb`,names:[`\\pmb`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`pmb`,mode:e.parser.mode,mclass:sl(t[0]),body:oc(t[0])}},htmlBuilder(e,t){var n=dc(e.body,t,!0),r=K([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new X(`mstyle`,kc(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var cl={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},ll=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),ul=e=>e.type===`textord`&&e.text===`@`,dl=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function fl(e,t,n){var r=cl[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function pl(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new N(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=ll(),c=0;c<o.length;c++)if(!ul(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=Zc(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l))if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(dl(o[p],l)){f=!1,c=p;break}if(ul(o[p]))throw new N(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new N(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new N(`Expected one of "<>AV=|." after @`,o[c]);var m={type:`styling`,body:[fl(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=ll()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}J({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Us(Y(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=F(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new X(`mrow`,[Z(e.label,t)]);return n=new X(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new X(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),J({type:`cdlabelparent`,names:[`\\\\cdparent`],numArgs:1,handler(e,t){return{type:`cdlabelparent`,mode:e.parser.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Us(Y(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new X(`mrow`,[Z(e.fragment,t)])}}),J({type:`textord`,names:[`\\@char`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=$c(Q(t[0],`ordgroup`),`\\@char has non-numeric argument`),i=parseInt(r),a;if(isNaN(i))throw new N(`\\@char has non-numeric argument `+r);if(i<0||i>1114111)throw new N(`\\@char with invalid code point `+r);return i<=65535?a=String.fromCharCode(i):(i-=65536,a=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:`textord`,mode:n.mode,text:a}}}),J({type:`color`,names:[`\\textcolor`],numArgs:2,allowedInText:!0,argTypes:[`color`,`original`],handler(e,t){var n=e.parser,r=Q(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:oc(i)}},htmlBuilder:(e,t)=>Hs(dc(e.body,t.withColor(e.color),!1)),mathmlBuilder:(e,t)=>{var n=new X(`mstyle`,kc(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n}}),J({type:`color`,names:[`\\color`],numArgs:1,allowedInText:!0,argTypes:[`color`],handler(e,t){var n=e.parser,r=e.breakOnTokenText,i=Q(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}}}),J({type:`cr`,names:[`\\\\`],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=t.gullet.future().text===`[`?t.parseSizeGroup(!0):null,r=!t.settings.displayMode||!As({strict:t.settings.strict,errorCode:`newLineInDisplayMode`,errorMsg:`In LaTeX, \\\\ or \\newline does nothing in display mode`,report:!1});return{type:`cr`,mode:t.mode,newLine:r,size:n&&Q(n,`size`).value}},htmlBuilder(e,t){var n=K([`mspace`],[],t);return e.newLine&&(n.classes.push(`katex-newline`),e.size&&(n.style.marginTop=F(yo(e.size,t)))),n},mathmlBuilder(e,t){var n=new X(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,F(yo(e.size,t)))),n}});var ml={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},hl=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new N(`Expected a control sequence`,e);return t},gl=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},_l=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};J({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],numArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var r=t.fetch();if(ml[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=ml[r.text]),Q(t.parseFunction(),`internal`);throw new N(`Invalid token after macro prefix`,r)}}),J({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new N(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new N(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new N(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new N(`Expected a macro definition`);else s[a].push(r.text);var c=t.gullet.consumeArg().tokens;return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===ml[n]),{type:`internal`,mode:t.mode}}}),J({type:`internal`,names:[`\\let`,`\\\\globallet`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=hl(t.gullet.popToken());return t.gullet.consumeSpaces(),_l(t,r,gl(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),J({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=hl(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return _l(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var vl=function(e,t,n){var r=Vo(Wo.math[e]&&Wo.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},yl=function(e,t,n,r){var i=n.havingBaseStyle(t),a=K(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},bl=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=F(i),e.height-=i,e.depth+=i},xl=function(e,t,n,r,i,a){var o=yl(Ms(e,`Main-Regular`,i,r),t,r,a);return n&&bl(o,r,t),o},Sl=function(e,t,n,r){return Ms(e,`Size`+t+`-Regular`,n,r)},Cl=function(e,t,n,r,i,a){var o=Sl(e,t,i,r),s=yl(K([`delimsizing`,`size`+t],[o],r),P.TEXT,r,a);return n&&bl(s,r,P.TEXT),s},wl=function(e,t,n,r){return{type:`elem`,elem:K([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[K([],[Ms(e,t,n,r)])])}},Tl=function(e,t,n){var r=Lo[`Size4-Regular`][e.charCodeAt(0)]?Lo[`Size4-Regular`][e.charCodeAt(0)][4]:Lo[`Size1-Regular`][e.charCodeAt(0)][4],i=zs([],[new jo([new Mo(`inner`,uo(e,Math.round(1e3*t)))],{width:F(r),height:F(t),style:`width:`+F(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=F(t),i.style.width=F(r),{type:`elem`,elem:i}},El=.008,Dl={type:`kern`,size:-1*El},Ol=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),kl=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),Al=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):Ol.has(e)?(c=`∣`,u=`vert`,d=333):kl.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=vl(o,f,i),m=p.height+p.depth,h=vl(c,f,i),g=h.height+h.depth,_=vl(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=vl(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,ee=r.fontMetrics().axisHeight;n&&(ee*=r.sizeMultiplier);var te=C/2-ee,ne=[];if(u.length>0){var re=C-m-v,w=Math.round(C*1e3),ie=po(u,Math.round(re*1e3)),ae=new Mo(u,ie),oe=F(d/1e3),se=F(w/1e3),ce=zs([],[new jo([ae],{width:oe,height:se,viewBox:`0 0 `+d+` `+w})],r);ce.height=w/1e3,ce.style.width=oe,ce.style.height=se,ne.push({type:`elem`,elem:ce})}else{if(ne.push(wl(l,f,i,r)),ne.push(Dl),s===null){var le=C-m-v+2*El;ne.push(Tl(c,le,r))}else{var ue=(C-m-v-y)/2+2*El;ne.push(Tl(c,ue,r)),ne.push(Dl),ne.push(wl(s,f,i,r)),ne.push(Dl),ne.push(Tl(c,ue,r))}ne.push(Dl),ne.push(wl(o,f,i,r))}var de=r.havingBaseStyle(P.TEXT);return yl(K([`delimsizing`,`mult`],[q({positionType:`bottom`,positionData:te,children:ne})],de),P.TEXT,r,a)},jl=80,Ml=.08,Nl=function(e,t,n,r,i){return zs([`hide-tail`],[new jo([new Mo(e,lo(e,r,n))],{width:`400em`,height:F(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},Pl=function(e,t){var n=t.havingBaseSizing(),r=Wl(`\\surd`,e*n.sizeMultiplier,Hl,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+jl,e<1?i=1:e<1.4&&(i=.7),s=(1+a+Ml)/i,c=(1+a)/i,o=Nl(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+jl)*Rl[r.size],c=(Rl[r.size]+a)/i,s=(Rl[r.size]+a+Ml)/i,o=Nl(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+Ml,c=e+a,l=Math.floor(1e3*e+a)+jl,o=Nl(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=F(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},Fl=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),Il=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),Ll=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),Rl=[0,1.2,1.8,2.4,3],zl=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),Fl.has(e)||Ll.has(e))return Cl(e,t,!1,n,r,i);if(Il.has(e))return Al(e,Rl[t],!1,n,r,i);throw new N(`Illegal delimiter: '`+e+`'`)},Bl=[{type:`small`,style:P.SCRIPTSCRIPT},{type:`small`,style:P.SCRIPT},{type:`small`,style:P.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],Vl=[{type:`small`,style:P.SCRIPTSCRIPT},{type:`small`,style:P.SCRIPT},{type:`small`,style:P.TEXT},{type:`stack`}],Hl=[{type:`small`,style:P.SCRIPTSCRIPT},{type:`small`,style:P.SCRIPT},{type:`small`,style:P.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],Ul=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},Wl=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=vl(e,Ul(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},Gl=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=Ll.has(e)?Bl:Fl.has(e)?Hl:Vl,s=Wl(e,t,o,r);return s.type===`small`?xl(e,s.style,n,r,i,a):s.type===`large`?Cl(e,s.size,n,r,i,a):Al(e,t,n,r,i,a)},Kl=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return Gl(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},ql={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},Jl=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function Yl(e){return`isMiddle`in e}function Xl(e,t){var n=Qc(e);if(n&&Jl.has(n.text))return n;throw n?new N(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new N(`Invalid delimiter type '`+e.type+`'`,e)}J({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],numArgs:1,argTypes:[`primitive`],handler:(e,t)=>{var n=Xl(ac(t[0]),e);return{type:`delimsizing`,mode:e.parser.mode,size:ql[e.funcName].size,mclass:ql[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?K([e.mclass]):zl(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(wc(e.delim,e.mode));var n=new X(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=F(Rl[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function Zl(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}J({type:`leftright-right`,names:[`\\right`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new N(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:Xl(t[0],e).text,color:n}}}),J({type:`leftright`,names:[`\\left`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=Xl(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=Q(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Zl(e);for(var n=dc(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];Yl(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?gc(t,[`mopen`]):Kl(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(Yl(u)){var d=u.isMiddle;n[l]=Kl(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=gc(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=Kl(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),K([`minner`],n,t)},mathmlBuilder:(e,t)=>{Zl(e);var n=kc(e.body,t);if(e.left!==`.`){var r=new X(`mo`,[wc(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new X(`mo`,[wc(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return Tc(n)}}),J({type:`middle`,names:[`\\middle`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=Xl(t[0],e);if(!e.parser.leftrightDepth)throw new N(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=gc(t,[]):(n=zl(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new X(`mo`,[e.delim===`\\vert`||e.delim===`|`?wc(`|`,`text`):wc(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}}),J({type:`enclose`,names:[`\\colorbox`],numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Q(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:(e,t)=>{var n=Us(Y(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=Da(e.body);if(r===`sout`)a=K([`katex-stretchy`,`katex-sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=yo({number:.6,unit:`pt`},t),l=yo({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=F(d/2+c);var f=Math.floor(1e3*d*i);a=zs([`hide-tail`],[new jo([new Mo(`phase`,so(f))],{width:`400em`,height:F(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=F(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=Gc(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=F(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=F(h),a.style.borderRightWidth=F(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=q({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=q({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?K([`mord`,`cancel-lap`],[g],t):K([`mord`],[g],t)},mathmlBuilder:(e,t)=>{var n,r=new X(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[Z(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+F(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`);break}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r}}),J({type:`enclose`,names:[`\\fcolorbox`],numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Q(t[0],`color-token`).color,o=Q(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}}}),J({type:`enclose`,names:[`\\fbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\fbox`,body:t[0]}}}),J({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),J({type:`enclose`,names:[`\\sout`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName;n.mode===`math`&&As({strict:n.settings.strict,errorCode:`mathVsSout`,errorMsg:`LaTeX's \\sout works only in text mode`,report:!0});var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),J({type:`enclose`,names:[`\\angl`],numArgs:1,argTypes:[`hbox`],allowedInText:!1,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\angl`,body:t[0]}}});var Ql={};function $l(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)Ql[n[c]]=s;a&&(nc[t]=a),o&&(rc[t]=o)}var eu={};function $(e,t){eu[e]=t}var tu=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},nu=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,tu.range(this,t))}};function ru(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var iu=e=>{if(!e.parser.settings.displayMode)throw new N(`{`+e.envName+`} can be used only in display mode.`)},au=new Set([`gather`,`gather*`]);function ou(e){if(!e.includes(`ed`))return!e.includes(`*`)}function su(e,t,n){var r=t.hskipBeforeAndAfter,i=t.addJot,a=t.cols,o=t.arraystretch,s=t.colSeparationType,c=t.autoTag,l=t.singleRow,u=t.emptySingleRow,d=t.maxNumCols,f=t.leqno;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new N(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new nu(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(ru(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new N(`Too many tab characters: &`,e.nextToken);As({strict:e.settings.strict,errorCode:`textEnv`,errorMsg:`Too few columns specified in the {array} column argument.`,report:!0})}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&!Array.isArray(v?.[v.length-1])&&!(c&&v?.[v.length-1]===!0)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var ee=void 0;e.gullet.future().text!==` `&&(ee=e.parseSizeGroup(!0)),g.push(ee?ee.value:null),b(),_.push(ru(e)),m=[],h.push(m),y()}else throw new N(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function cu(e){return e.slice(0,1)===`d`?`display`:`text`}var lu=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(P.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?yo({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var C=Y(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S.cells[r]=C}var ee=e.rowGaps[n],te=0;ee&&(te=yo(ee,t),te>0&&(te+=g,x<te&&(x=te),te=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+te,s[n]=S,v(a[n+1])}var ne=_/2+t.fontMetrics().axisHeight,re=e.cols||[],w=[],ie,ae,oe=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var se=s[n],ce=se.pos-ne,le=e.tags[n],ue=void 0;ue=le===!0?K([`eqn-num`],[],t):le===!1?K([],[],t):K([],dc(le,t,!0),t),ue.depth=se.depth,ue.height=se.height,oe.push({type:`elem`,elem:ue,shift:ce})}for(r=0,ae=0;r<o||ae<re.length;++r,++ae){for(var de=re[ae],fe=!0;(pe=de)?.type===`separator`;){var pe;if(fe||(ie=K([`arraycolsep`],[]),ie.style.width=F(t.fontMetrics().doubleRuleSep),w.push(ie)),de.separator===`|`||de.separator===`:`){var me=de.separator===`|`?`solid`:`dashed`,he=K([`vertical-separator`],[],t);he.style.height=F(_),he.style.borderRightWidth=F(l),he.style.borderRightStyle=me,he.style.margin=`0 `+F(-l/2);var ge=_-ne;ge&&(he.style.verticalAlign=F(-ge)),w.push(he)}else throw new N(`Invalid separator type: `+de.separator);ae++,de=re[ae],fe=!1}if(!(r>=o)){var T=void 0;(r>0||e.hskipBeforeAndAfter)&&(T=de?.pregap??d,T!==0&&(ie=K([`arraycolsep`],[]),ie.style.width=F(T),w.push(ie)));var _e=[];for(n=0;n<i;++n){var ve=s[n],ye=ve.cells[r];if(ye){var be=ve.pos-ne;ye.depth=ve.depth,ye.height=ve.height,_e.push({type:`elem`,elem:ye,shift:be})}}var xe=q({positionType:`individualShift`,children:_e}),Se=K([`col-align-`+(de?.align||`c`)],[xe]);w.push(Se),(r<o-1||e.hskipBeforeAndAfter)&&(T=de?.postgap??d,T!==0&&(ie=K([`arraycolsep`],[]),ie.style.width=F(T),w.push(ie)))}}var Ce=K([`mtable`],w);if(c.length>0){for(var we=Bs(`katex-hline`,t,l),Te=Bs(`katex-hdashline`,t,l),Ee=[{type:`elem`,elem:Ce,shift:0}];c.length>0;){var De=c.pop(),Oe=De.pos-ne;De.isDashed?Ee.push({type:`elem`,elem:Te,shift:Oe}):Ee.push({type:`elem`,elem:we,shift:Oe})}Ce=q({positionType:`individualShift`,children:Ee})}if(oe.length===0)return K([`mord`],[Ce],t);var ke=K([`katex-tag`],[q({positionType:`individualShift`,children:oe})],t);return Hs([Ce,ke])},uu={c:`center `,l:`left `,r:`right `},du=function(e,t){for(var n=[],r=new X(`mtd`,[],[`mtr-glue`]),i=new X(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new X(`mtd`,[Z(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new X(`mtr`,s))}var l=new X(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,F(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=uu[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,ee=e.hLinesBeforeRow;d+=ee[0].length>0?`left `:``,d+=ee[ee.length-1].length>0?`right `:``;for(var te=1;te<ee.length-1;te++)C+=ee[te].length===0?`none `:ee[te][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new X(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new X(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},fu=function(e,t){e.envName.includes(`ed`)||iu(e);var n=[],r=e.envName===`split`,i=su(e.parser,{cols:n,addJot:!0,autoTag:r?void 0:ou(e.envName),emptySingleRow:!0,colSeparationType:e.envName.includes(`at`)?`alignat`:`align`,maxNumCols:r?2:void 0,leqno:e.parser.settings.leqno},`display`),a=0,o=0,s={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){var c=`Number of columns should be a positive integer`,l=$c(t[0],c);if(!/^[0-9]+$/.test(l)||Number(l)<1)throw new N(c,t[0]);a=Number(l),o=a*2}var u=!o;i.body.forEach(function(e){for(var t=1;t<e.length;t+=2)Q(Q(e[t],`styling`).body[0],`ordgroup`).body.unshift(s);if(u)o<e.length&&(o=e.length);else{var n=e.length/2;if(a<n)throw new N(`Too many math in a row: `+(`expected `+a+`, but got `+n),e[0])}});for(var d=0;d<o;++d){var f=`r`,p=0;d%2==1?f=`l`:d>0&&u&&(p=1),n[d]={type:`align`,align:f,pregap:p,postgap:0}}return i.colSeparationType=u?`align`:`alignat`,i};$l({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(Qc(t[0])?[t[0]]:Q(t[0],`ordgroup`).body).map(function(e){var t=Zc(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new N(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return su(e.parser,r,cu(e.envName))},htmlBuilder:lu,mathmlBuilder:du}),$l({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new N(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=su(e.parser,r,cu(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:lu,mathmlBuilder:du}),$l({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=su(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:lu,mathmlBuilder:du}),$l({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(Qc(t[0])?[t[0]]:Q(t[0],`ordgroup`).body).map(function(e){var t=Zc(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new N(`Unknown column alignment: `+t,e)});if(n.length>1)throw new N(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=su(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new N(`{subarray} can contain only one column`);return i},htmlBuilder:lu,mathmlBuilder:du}),$l({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=su(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},cu(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:lu,mathmlBuilder:du}),$l({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:fu,htmlBuilder:lu,mathmlBuilder:du}),$l({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){au.has(e.envName)&&iu(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:ou(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return su(e.parser,t,`display`)},htmlBuilder:lu,mathmlBuilder:du}),$l({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:fu,htmlBuilder:lu,mathmlBuilder:du}),$l({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){iu(e);var t={autoTag:ou(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return su(e.parser,t,`display`)},htmlBuilder:lu,mathmlBuilder:du}),$l({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return iu(e),pl(e.parser)},htmlBuilder:lu,mathmlBuilder:du}),$(`\\nonumber`,`\\gdef\\@eqnsw{0}`),$(`\\notag`,`\\nonumber`),J({type:`text`,names:[`\\hline`,`\\hdashline`],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,t){throw new N(e.funcName+` valid only within array environment`)}});var pu=Ql;J({type:`environment`,names:[`\\begin`,`\\end`],numArgs:1,argTypes:[`text`],handler(e,t){var n=e.parser,r=e.funcName,i=t[0];if(i.type!==`ordgroup`)throw new N(`Invalid environment name`,i);var a=$c(i,`Environment name should contain only text characters and spaces`,!0);if(r===`\\begin`){if(!Object.prototype.hasOwnProperty.call(pu,a))throw new N(`No such environment: `+a,i);var o=pu[a],s=n.parseArguments(`\\begin{`+a+`}`,o),c=s.args,l=s.optArgs,u={mode:n.mode,envName:a,parser:n},d=o.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=Q(n.parseFunction(),`environment`);if(p.name!==a)throw new N(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var mu=(e,t)=>{var n=e.font,r=t.withFont(n);return Y(e.body,r)},hu=(e,t)=>{var n=e.font,r=t.withFont(n);return Z(e.body,r)},gu={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};J({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],numArgs:1,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=ac(t[0]),a=r in gu?gu[r]:r;return{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:mu,mathmlBuilder:hu}),J({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`mclass`,mode:n.mode,mclass:sl(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:Da(r)}}}),J({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=e.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}}});var _u=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Y(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=Y(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=yo(e.barSize,t),u=Bs(`frac-line`,t,d)):u=Bs(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===P.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=q({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=q({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===P.DISPLAY.size?t.fontMetrics().delim1:n.size===P.SCRIPTSCRIPT.size?t.havingStyle(P.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?gc(t,[`mopen`]):Gl(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?K([]):e.rightDelim==null?gc(t,[`mclose`]):Gl(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return K([`mord`].concat(a.sizingClasses(t)),[x,K([`mfrac`],[g]),S],t)},vu=(e,t)=>{var n=new X(`mfrac`,[Z(e.numer,t),Z(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=yo(e.barSize,t);n.setAttribute(`linethickness`,F(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new X(`mo`,[new bc(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new X(`mo`,[new bc(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return Tc(i)}return n},yu=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;J({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],numArgs:2,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),yu({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:_u,mathmlBuilder:vu}),J({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],numArgs:0,infix:!0,handler(e){var t=e.parser,n=e.funcName,r=e.token,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var bu=[`display`,`text`,`script`,`scriptscript`],xu=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};J({type:`genfrac`,names:[`\\genfrac`],numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`],handler(e,t){var n=e.parser,r=t[4],i=t[5],a=ac(t[0]),o=a.type===`atom`&&a.family===`open`?xu(a.text):null,s=ac(t[1]),c=s.type===`atom`&&s.family===`close`?xu(s.text):null,l=Q(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=Q(p.body[0],`textord`);f=bu[Number(m.text)]}}else p=Q(p,`textord`),f=bu[Number(p.text)];return yu({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),J({type:`infix`,names:[`\\above`],numArgs:1,argTypes:[`size`],infix:!0,handler(e,t){var n=e.parser;e.funcName;var r=e.token;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:Q(t[0],`size`).value,token:r}}}),J({type:`genfrac`,names:[`\\\\abovefrac`],numArgs:3,argTypes:[`math`,`size`,`math`],handler:(e,t)=>{var n=e.parser;e.funcName;var r=t[0],i=Q(t[1],`infix`).size;if(!i)throw Error(`\\\\abovefrac expected size, but got `+String(i));var a=t[2],o=i.number>0;return{type:`genfrac`,mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}});var Su=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Y(e.sup,t.havingStyle(n.sup()),t):Y(e.sub,t.havingStyle(n.sub()),t),i=Q(e.base,`horizBrace`)):i=Q(e,`horizBrace`);var a=Y(i.base,t.havingBaseStyle(P.DISPLAY)),o=Wc(i,t),s=i.isOver?q({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):q({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=K([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?q({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):q({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return K([`minner`,i.isOver?`mover`:`munder`],[s],t)};J({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:Su,mathmlBuilder:(e,t)=>{var n=Vc(e.label);return new X(e.isOver?`mover`:`munder`,[Z(e.base,t),n])}}),J({type:`href`,names:[`\\href`],numArgs:2,argTypes:[`url`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[1],i=Q(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:oc(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=dc(e.body,t,!1);return Vs(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Ac(e.body,t);return n instanceof X||(n=new X(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),J({type:`href`,names:[`\\url`],numArgs:1,argTypes:[`url`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=Q(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:oc(s)}}}),J({type:`hbox`,names:[`\\hbox`],numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0,handler(e,t){return{type:`hbox`,mode:e.parser.mode,body:oc(t[0])}},htmlBuilder(e,t){return Hs(dc(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new X(`mrow`,kc(e.body,t.withFont(``)))}}),J({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName;e.token;var i=Q(t[0],`raw`).string,a=t[1];n.settings.strict&&As({strict:n.settings.strict,errorCode:`htmlExtension`,errorMsg:`HTML extension is disabled on strict mode`,report:!0});var o,s={};switch(r){case`\\htmlClass`:s.class=i,o={command:`\\htmlClass`,class:i};break;case`\\htmlId`:s.id=i,o={command:`\\htmlId`,id:i};break;case`\\htmlStyle`:s.style=i,o={command:`\\htmlStyle`,style:i};break;case`\\htmlData`:for(var c=`{,}`,l=[],u=``,d=0;d<i.length;d++)i.startsWith(c,d)?(u+=`,`,d+=c.length-1):i[d]===`,`?(l.push(u),u=``):u+=i[d];l.push(u);for(var f=0;f<l.length;f++){var p=l[f],m=p.indexOf(`=`);if(m<0)throw new N(`\\htmlData key/value '`+p+`' missing equals sign`);var h=p.slice(0,m),g=p.slice(m+1);s[`data-`+h.trim()]=g}o={command:`\\htmlData`,attributes:s};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(o)?{type:`html`,mode:n.mode,attributes:s,body:oc(a)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=dc(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=K(r,n,t);for(var a of Object.entries(e.attributes)){var o=a[0],s=a[1];o!==`class`&&i.setAttribute(o,s)}return i},mathmlBuilder:(e,t)=>Ac(e.body,t)}),J({type:`htmlmathml`,names:[`\\html@mathml`],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,t)=>({type:`htmlmathml`,mode:e.parser.mode,html:oc(t[0]),mathml:oc(t[1])}),htmlBuilder:(e,t)=>Hs(dc(e.html,t,!1)),mathmlBuilder:(e,t)=>Ac(e.mathml,t)});var Cu=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new N(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!vo(n))throw new N(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};J({type:`includegraphics`,names:[`\\includegraphics`],numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1,handler:(e,t,n)=>{var r=e.parser,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=Q(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=Cu(d);break;case`height`:a=Cu(d);break;case`totalheight`:o=Cu(d);break;default:throw new N(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=Q(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=yo(e.height,t),r=0;e.totalheight.number>0&&(r=yo(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=yo(e.width,t));var a={height:F(n+r)};i>0&&(a.width=F(i)),r>0&&(a.verticalAlign=F(-r));var o=new Oo(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new X(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=yo(e.height,t),i=0;if(e.totalheight.number>0&&(i=yo(e.totalheight,t)-r,n.setAttribute(`valign`,F(-i))),n.setAttribute(`height`,F(r+i)),e.width.number>0){var a=yo(e.width,t);n.setAttribute(`width`,F(a))}return n.setAttribute(`src`,e.src),n}}),J({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=Q(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||As({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`),report:!0}),n.mode!==`math`&&As({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` works only in math mode`,report:!0})):o&&As({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` doesn't support mu units`,report:!0})}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return Gs(e.dimension,t)},mathmlBuilder(e,t){return new xc(yo(e.dimension,t))}}),J({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=K([],[Y(e.body,t)]),n=K([`katex-inner`],[n],t)):n=K([`katex-inner`],[Y(e.body,t)]);var r=K([`katex-fix`],[]),i=K([e.alignment],[n,r],t),a=K([`katex-strut`]);return a.style.height=F(i.height+i.depth),i.depth&&(a.style.verticalAlign=F(-i.depth)),i.children.unshift(a),i=K([`katex-thinbox`],[i],t),K([`mord`,`katex-vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[Z(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),J({type:`styling`,names:[`\\(`,`$`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),J({type:`text`,names:[`\\)`,`\\]`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){throw new N(`Mismatched `+e.funcName)}});var wu=(e,t)=>{switch(t.style.size){case P.DISPLAY.size:return e.display;case P.TEXT.size:return e.text;case P.SCRIPT.size:return e.script;case P.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};J({type:`mathchoice`,names:[`\\mathchoice`],numArgs:4,primitive:!0,handler:(e,t)=>({type:`mathchoice`,mode:e.parser.mode,display:oc(t[0]),text:oc(t[1]),script:oc(t[2]),scriptscript:oc(t[3])}),htmlBuilder:(e,t)=>Hs(dc(wu(e,t),t,!1)),mathmlBuilder:(e,t)=>Ac(wu(e,t),t)});var Tu=(e,t,n,r,i,a,o)=>{e=K([],[e]);var s=n&&Da(n),c,l;if(t){var u=Y(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Y(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=q({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:F(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:F(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=q({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:F(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=q({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:F(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=K([`mspace`],[],r);m.style.marginRight=F(a),p.unshift(m)}return K([`mop`,`op-limits`],p,r)},Eu=new Set([`\\smallint`]),Du=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Q(e.base,`op`),i=!0):a=Q(e,`op`);var o=t.style,s=!1;o.size===P.DISPLAY.size&&a.symbol&&!Eu.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=Ms(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=Ys(d+`Size`+(s?`2`:`1`),t);c=q({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=dc(a.body,t,!0);p.length===1&&p[0]instanceof Ao?(c=p[0],c.classes[0]=`mop`):c=K([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(Ns(a.name[h],a.mode,t));c=K([`mop`],m,t)}var g=0,_=0;return(c instanceof Ao||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?Tu(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=F(g)),c)},Ou=(e,t)=>{var n;if(e.symbol)n=new X(`mo`,[wc(e.name,e.mode)]),Eu.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new X(`mo`,kc(e.body,t));else{n=new X(`mi`,[new bc(e.name.slice(1))]);var r=new X(`mo`,[wc(`⁡`,`text`)]);n=e.parentIsSupSub?new X(`mrow`,[n,r]):yc([n,r])}return n},ku={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};J({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),numArgs:0,handler:(e,t)=>{var n=e.parser,r=e.funcName;return r.length===1&&(r=ku[r]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Du,mathmlBuilder:Ou}),J({type:`op`,names:[`\\mathop`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:oc(r)}}});var Au={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};J({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}}}),J({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}}}),J({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],numArgs:0,allowedInArgument:!0,handler(e){var t=e.parser,n=e.funcName;return n.length===1&&(n=Au[n]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var ju=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Q(e.base,`operatorname`),i=!0):a=Q(e,`operatorname`);var o;if(a.body.length>0){for(var s=dc(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof Ao&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=K([`mop`],s,t)}else o=K([`mop`],[],t);return i?Tu(o,n,r,t,t.style,0,0):o};J({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`operatorname`,mode:n.mode,body:oc(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:ju,mathmlBuilder:(e,t)=>{for(var n=kc(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof xc))if(a instanceof X)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof bc?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}r&&(n=[new bc(n.map(e=>e.toText()).join(``))]);var s=new X(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new X(`mo`,[wc(`⁡`,`text`)]);return e.parentIsSupSub?new X(`mrow`,[s,c]):yc([s,c])}}),$(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),ic({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?Hs(dc(e.body,t,!1)):K([`mord`],dc(e.body,t,!0),t)},mathmlBuilder(e,t){return Ac(e.body,t,!0)}}),J({type:`overline`,names:[`\\overline`],numArgs:1,handler(e,t){var n=e.parser,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=Y(e.body,t.havingCrampedStyle()),r=Bs(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return K([`mord`,`katex-overline`],[q({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new X(`mo`,[new bc(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`mover`,[Z(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),J({type:`phantom`,names:[`\\phantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`phantom`,mode:n.mode,body:oc(r)}},htmlBuilder:(e,t)=>Hs(dc(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new X(`mphantom`,kc(e.body,t))}),$(`\\hphantom`,`\\smash{\\phantom{#1}}`),J({type:`vphantom`,names:[`\\vphantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>K([`mord`,`rlap`],[K([`katex-inner`],[Y(e.body,t.withPhantom())]),K([`katex-fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[new X(`mphantom`,kc(oc(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),J({type:`raisebox`,names:[`\\raisebox`],numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0,handler(e,t){var n=e.parser,r=Q(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Y(e.body,t);return q({positionType:`shift`,positionData:-yo(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new X(`mpadded`,[Z(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}});var Mu=(e,t)=>({type:`reflectbox`,mode:e.parser.mode,body:t[0]});J({type:`reflectbox`,names:[`\\reflectbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler:Mu,htmlBuilder(e,t){return K([`mord`,`reflectbox`],[Y(e.body,t)],t)},mathmlBuilder(e,t){return Z(e.body,t)}}),J({type:`reflectbox`,names:[`\\mathreflectbox`],numArgs:1,argTypes:[`math`],handler:Mu}),J({type:`internal`,names:[`\\relax`],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){return{type:`internal`,mode:e.parser.mode}}}),J({type:`rule`,names:[`\\rule`],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`],handler(e,t,n){var r=e.parser,i=n[0],a=Q(t[0],`size`),o=Q(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&Q(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=K([`mord`,`katex-rule`],[],t),r=yo(e.width,t),i=yo(e.height,t),a=e.shift?yo(e.shift,t):0;return n.style.borderRightWidth=F(r),n.style.borderTopWidth=F(i),n.style.bottom=F(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=yo(e.width,t),r=yo(e.height,t),i=e.shift?yo(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new X(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,F(n)),o.setAttribute(`height`,F(r));var s=new X(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,F(i)):(s.setAttribute(`height`,F(i)),s.setAttribute(`depth`,F(-i))),s.setAttribute(`voffset`,F(i)),s}});function Nu(e,t,n){for(var r=dc(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`katex-sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return Hs(r)}var Pu=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];J({type:`sizing`,names:Pu,numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:Pu.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return Nu(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new X(`mstyle`,kc(e.body,n));return r.setAttribute(`mathsize`,F(n.sizeMultiplier)),r}}),J({type:`smash`,names:[`\\smash`],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,t,n)=>{var r=e.parser,i=!1,a=!1,o=n[0]&&Q(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=Zc(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=K([],[Y(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return K([`mord`,`katex-smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return K([`mord`],[q({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[Z(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),J({type:`sqrt`,names:[`\\sqrt`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Y(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Us(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<P.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,o=Pl(n.height+n.depth+a+r,t),s=o.span,c=o.ruleWidth,l=o.advanceWidth,u=s.height-c;u>n.height+n.depth+a&&(a=(a+u-n.height-n.depth)/2);var d=s.height-n.height-a-c;n.style.paddingLeft=F(l);var f=q({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+d)},{type:`elem`,elem:s},{type:`kern`,size:c}]});if(e.index){var p=t.havingStyle(P.SCRIPTSCRIPT),m=Y(e.index,p,t);return K([`mord`,`sqrt`],[K([`katex-root`],[q({positionType:`shift`,positionData:-(.6*(f.height-f.depth)),children:[{type:`elem`,elem:m}]})]),f],t)}else return K([`mord`,`sqrt`],[f],t)},mathmlBuilder(e,t){var n=e.body,r=e.index;return r?new X(`mroot`,[Z(n,t),Z(r,t)]):new X(`msqrt`,[Z(n,t)])}});var Fu={display:P.DISPLAY,text:P.TEXT,script:P.SCRIPT,scriptscript:P.SCRIPTSCRIPT};function Iu(e){return e in Fu}J({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],numArgs:0,allowedInText:!0,primitive:!0,handler(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!Iu(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=Fu[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),Nu(e.body,r,t)},mathmlBuilder(e,t){var n=Fu[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new X(`mstyle`,kc(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var Lu=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===P.DISPLAY.size||n.alwaysHandleSupSub)?Du:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===P.DISPLAY.size||n.limits)?ju:null:n.type===`accent`?Da(n.base)?tl:null:n.type===`horizBrace`&&!e.sub===n.isOver?Su:null:null};ic({type:`supsub`,htmlBuilder(e,t){var n=Lu(e,t);if(n)return n(e,t);var r=e.base,i=e.sup,a=e.sub,o=Y(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&Da(r);if(i){var p=t.havingStyle(t.style.sup());s=Y(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=Y(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===P.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=F(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof Ao||y)&&(v=F(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=q({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=q({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=q({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return K([hc(o,`right`)||`mord`],[o,K([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[Z(e.base,t)];e.sub&&a.push(Z(e.sub,t)),e.sup&&a.push(Z(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===P.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===P.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===P.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===P.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===P.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===P.DISPLAY)?`munder`:`msub`}return new X(o,a)}}),ic({type:`atom`,htmlBuilder(e,t){return Ns(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new X(`mo`,[wc(e.text,e.mode)]);if(e.family===`bin`){var r=Dc(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var Ru={mi:`italic`,mn:`normal`,mtext:`normal`};ic({type:`mathord`,htmlBuilder(e,t){return Fs(e,t)},mathmlBuilder(e,t){var n=new X(`mi`,[wc(e.text,e.mode,t)]),r=Dc(e,t)||`italic`;return r!==Ru[n.type]&&n.setAttribute(`mathvariant`,r),n}}),ic({type:`textord`,htmlBuilder(e,t){return Fs(e,t)},mathmlBuilder(e,t){var n=wc(e.text,e.mode,t),r=Dc(e,t)||`normal`,i=e.mode===`text`?new X(`mtext`,[n]):/[0-9]/.test(e.text)?new X(`mn`,[n]):e.text===`\\prime`?new X(`mo`,[n]):new X(`mi`,[n]);return r!==Ru[i.type]&&i.setAttribute(`mathvariant`,r),i}});var zu=new Map([[`\\nobreak`,`nobreak`],[`\\allowbreak`,`allowbreak`]]),Bu=new Map([[` `,{}],[`\\ `,{}],[`~`,{className:`nobreak`}],[`\\space`,{}],[`\\nobreakspace`,{className:`nobreak`}]]);ic({type:`spacing`,htmlBuilder(e,t){var n=Bu.get(e.text),r=zu.get(e.text);if(n){var i=n.className||``;if(e.mode===`text`){var a=Fs(e,t);return a.classes.push(i),a}else return K([`mspace`,i],[Ns(e.text,e.mode,t)],t)}else if(r)return K([`mspace`,r],[],t);else throw new N(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(Bu.has(e.text))n=new X(`mtext`,[new bc(`\xA0`)]);else if(zu.has(e.text))return new X(`mspace`);else throw new N(`Unknown type of space "`+e.text+`"`);return n}});var Vu=()=>{var e=new X(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};ic({type:`tag`,mathmlBuilder(e,t){var n=new X(`mtable`,[new X(`mtr`,[Vu(),new X(`mtd`,[Ac(e.body,t)]),Vu(),new X(`mtd`,[Ac(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var Hu={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},Uu={"\\textbf":`textbf`,"\\textmd":`textmd`},Wu={"\\textit":`textit`,"\\textup":`textup`},Gu=(e,t)=>{var n=e.font;return n?Hu[n]?t.withTextFontFamily(Hu[n]):Uu[n]?t.withTextFontWeight(Uu[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(Wu[n]):t};J({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`text`,mode:n.mode,body:oc(i),font:r}},htmlBuilder(e,t){var n=Gu(e,t);return K([`mord`,`text`],dc(e.body,n,!0),n)},mathmlBuilder(e,t){var n=Gu(e,t);return Ac(e.body,n)}}),J({type:`underline`,names:[`\\underline`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`underline`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Y(e.body,t),r=Bs(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return K([`mord`,`katex-underline`],[q({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new X(`mo`,[new bc(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`munder`,[Z(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),J({type:`vcenter`,names:[`\\vcenter`],numArgs:1,argTypes:[`original`],allowedInText:!1,handler(e,t){return{type:`vcenter`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Y(e.body,t),r=t.fontMetrics().axisHeight;return q({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new X(`mrow`,[new X(`mpadded`,[Z(e.body,t)],[`vcenter`])])}}),J({type:`verb`,names:[`\\verb`],numArgs:0,allowedInText:!0,handler(e,t,n){throw new N(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=Ku(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(Ms(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return K([`mord`,`text`].concat(i.sizingClasses(t)),Ls(r),i)},mathmlBuilder(e,t){var n=new X(`mtext`,[new bc(Ku(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var Ku=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),qu=tc,Ju=`[ \r
320
- ]`,Yu=`\\\\[a-zA-Z@]+`,Xu=`\\\\[^\ud800-\udfff]`,Zu=`(`+Yu+`)`+Ju+`*`,Qu=`\\\\(
318
+ -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function Co(e){return`toText`in e}var wo=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if(Co(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},To={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Eo={ex:!0,em:!0,mu:!0},Do=function(e){return typeof e!=`string`&&(e=e.unit),e in To||e in Eo||e===`ex`},Oo=function(e,t){var n;if(e.unit in To)n=To[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new N(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},F=function(e){return+e.toFixed(4)+`em`},ko=function(e){return e.filter(e=>e).join(` `)},Ao=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=Aa(n)+`:`+r+`;`)}return t},jo=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},Mo=function(e){var t=document.createElement(e);t.className=ko(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},No=/[\s"'>/=\x00-\x1f]/,Po=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+Na(ko(this.classes))+`"`);var n=Ao(this.style);n&&(t+=` style="`+Na(n)+`"`);for(var r of Object.keys(this.attributes)){if(No.test(r))throw new N(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+Na(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},Fo=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,jo.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Mo.call(this,`span`)}toMarkup(){return Po.call(this,`span`)}},Io=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,jo.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Mo.call(this,`a`)}toMarkup(){return Po.call(this,`a`)}},Lo=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=`<img src="`+Na(this.src)+`"`+(` alt="`+Na(this.alt)+`"`),t=Ao(this.style);return t&&(e+=` style="`+Na(t)+`"`),e+=`'/>`,e}},Ro={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},zo=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=oo(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=Ro[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=F(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=ko(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=Na(ko(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+F(this.italic)+`;`),n+=Ao(this.style),n&&(e=!0,t+=` style="`+Na(n)+`"`);var r=Na(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},Bo=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+Na(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},Vo=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,xo[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+Na(this.alternate)+`"/>`:`<path d="`+Na(xo[this.pathName])+`"/>`}},Ho=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+Na(this.attributes[t])+`"`;return e+=`/>`,e}};function Uo(e){if(e instanceof zo)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function Wo(e){if(e instanceof Fo)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var Go=e=>e instanceof Fo||e instanceof Io||e instanceof wo,Ko={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},qo={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Jo={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function Yo(e,t){Ko[e]=t}function Xo(e,t,n){if(!Ko[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=Ko[t][r];if(!i&&e[0]in Jo&&(r=Jo[e[0]].charCodeAt(0),i=Ko[t][r]),!i&&n===`text`&&co(r)&&(i=Ko[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Zo={};function Qo(e){var t=e>=5?0:e>=3?1:2;if(!Zo[t]){var n=Zo[t]={cssEmPerMu:qo.quad[t]/18};for(var r of Object.keys(qo))n[r]=qo[r][t]}return Zo[t]}var $o={math:{},text:{}};function I(e,t,n,r,i,a){$o[e][i]={font:t,group:n,replace:r},a&&r&&($o[e][r]=$o[e][i])}var L=`math`,R=`text`,z=`main`,B=`ams`,es=`accent-token`,V=`bin`,ts=`close`,ns=`inner`,H=`mathord`,rs=`op-token`,is=`open`,as=`punct`,U=`rel`,os=`spacing`,W=`textord`;I(L,z,U,`≡`,`\\equiv`,!0),I(L,z,U,`≺`,`\\prec`,!0),I(L,z,U,`≻`,`\\succ`,!0),I(L,z,U,`∼`,`\\sim`,!0),I(L,z,U,`⊥`,`\\perp`),I(L,z,U,`⪯`,`\\preceq`,!0),I(L,z,U,`⪰`,`\\succeq`,!0),I(L,z,U,`≃`,`\\simeq`,!0),I(L,z,U,`∣`,`\\mid`,!0),I(L,z,U,`≪`,`\\ll`,!0),I(L,z,U,`≫`,`\\gg`,!0),I(L,z,U,`≍`,`\\asymp`,!0),I(L,z,U,`∥`,`\\parallel`),I(L,z,U,`⋈`,`\\bowtie`,!0),I(L,z,U,`⌣`,`\\smile`,!0),I(L,z,U,`⊑`,`\\sqsubseteq`,!0),I(L,z,U,`⊒`,`\\sqsupseteq`,!0),I(L,z,U,`≐`,`\\doteq`,!0),I(L,z,U,`⌢`,`\\frown`,!0),I(L,z,U,`∋`,`\\ni`,!0),I(L,z,U,`∝`,`\\propto`,!0),I(L,z,U,`⊢`,`\\vdash`,!0),I(L,z,U,`⊣`,`\\dashv`,!0),I(L,z,U,`∋`,`\\owns`),I(L,z,as,`.`,`\\ldotp`),I(L,z,as,`⋅`,`\\cdotp`),I(L,z,as,`⋅`,`·`),I(R,z,W,`⋅`,`·`),I(L,z,W,`#`,`\\#`),I(R,z,W,`#`,`\\#`),I(L,z,W,`&`,`\\&`),I(R,z,W,`&`,`\\&`),I(L,z,W,`ℵ`,`\\aleph`,!0),I(L,z,W,`∀`,`\\forall`,!0),I(L,z,W,`ℏ`,`\\hbar`,!0),I(L,z,W,`∃`,`\\exists`,!0),I(L,z,W,`∇`,`\\nabla`,!0),I(L,z,W,`♭`,`\\flat`,!0),I(L,z,W,`ℓ`,`\\ell`,!0),I(L,z,W,`♮`,`\\natural`,!0),I(L,z,W,`♣`,`\\clubsuit`,!0),I(L,z,W,`℘`,`\\wp`,!0),I(L,z,W,`♯`,`\\sharp`,!0),I(L,z,W,`♢`,`\\diamondsuit`,!0),I(L,z,W,`ℜ`,`\\Re`,!0),I(L,z,W,`♡`,`\\heartsuit`,!0),I(L,z,W,`ℑ`,`\\Im`,!0),I(L,z,W,`♠`,`\\spadesuit`,!0),I(L,z,W,`§`,`\\S`,!0),I(R,z,W,`§`,`\\S`),I(L,z,W,`¶`,`\\P`,!0),I(R,z,W,`¶`,`\\P`),I(L,z,W,`†`,`\\dag`),I(R,z,W,`†`,`\\dag`),I(R,z,W,`†`,`\\textdagger`),I(L,z,W,`‡`,`\\ddag`),I(R,z,W,`‡`,`\\ddag`),I(R,z,W,`‡`,`\\textdaggerdbl`),I(L,z,ts,`⎱`,`\\rmoustache`,!0),I(L,z,is,`⎰`,`\\lmoustache`,!0),I(L,z,ts,`⟯`,`\\rgroup`,!0),I(L,z,is,`⟮`,`\\lgroup`,!0),I(L,z,V,`∓`,`\\mp`,!0),I(L,z,V,`⊖`,`\\ominus`,!0),I(L,z,V,`⊎`,`\\uplus`,!0),I(L,z,V,`⊓`,`\\sqcap`,!0),I(L,z,V,`∗`,`\\ast`),I(L,z,V,`⊔`,`\\sqcup`,!0),I(L,z,V,`◯`,`\\bigcirc`,!0),I(L,z,V,`∙`,`\\bullet`,!0),I(L,z,V,`‡`,`\\ddagger`),I(L,z,V,`≀`,`\\wr`,!0),I(L,z,V,`⨿`,`\\amalg`),I(L,z,V,`&`,`\\And`),I(L,z,U,`⟵`,`\\longleftarrow`,!0),I(L,z,U,`⇐`,`\\Leftarrow`,!0),I(L,z,U,`⟸`,`\\Longleftarrow`,!0),I(L,z,U,`⟶`,`\\longrightarrow`,!0),I(L,z,U,`⇒`,`\\Rightarrow`,!0),I(L,z,U,`⟹`,`\\Longrightarrow`,!0),I(L,z,U,`↔`,`\\leftrightarrow`,!0),I(L,z,U,`⟷`,`\\longleftrightarrow`,!0),I(L,z,U,`⇔`,`\\Leftrightarrow`,!0),I(L,z,U,`⟺`,`\\Longleftrightarrow`,!0),I(L,z,U,`↦`,`\\mapsto`,!0),I(L,z,U,`⟼`,`\\longmapsto`,!0),I(L,z,U,`↗`,`\\nearrow`,!0),I(L,z,U,`↩`,`\\hookleftarrow`,!0),I(L,z,U,`↪`,`\\hookrightarrow`,!0),I(L,z,U,`↘`,`\\searrow`,!0),I(L,z,U,`↼`,`\\leftharpoonup`,!0),I(L,z,U,`⇀`,`\\rightharpoonup`,!0),I(L,z,U,`↙`,`\\swarrow`,!0),I(L,z,U,`↽`,`\\leftharpoondown`,!0),I(L,z,U,`⇁`,`\\rightharpoondown`,!0),I(L,z,U,`↖`,`\\nwarrow`,!0),I(L,z,U,`⇌`,`\\rightleftharpoons`,!0),I(L,B,U,`≮`,`\\nless`,!0),I(L,B,U,``,`\\@nleqslant`),I(L,B,U,``,`\\@nleqq`),I(L,B,U,`⪇`,`\\lneq`,!0),I(L,B,U,`≨`,`\\lneqq`,!0),I(L,B,U,``,`\\@lvertneqq`),I(L,B,U,`⋦`,`\\lnsim`,!0),I(L,B,U,`⪉`,`\\lnapprox`,!0),I(L,B,U,`⊀`,`\\nprec`,!0),I(L,B,U,`⋠`,`\\npreceq`,!0),I(L,B,U,`⋨`,`\\precnsim`,!0),I(L,B,U,`⪹`,`\\precnapprox`,!0),I(L,B,U,`≁`,`\\nsim`,!0),I(L,B,U,``,`\\@nshortmid`),I(L,B,U,`∤`,`\\nmid`,!0),I(L,B,U,`⊬`,`\\nvdash`,!0),I(L,B,U,`⊭`,`\\nvDash`,!0),I(L,B,U,`⋪`,`\\ntriangleleft`),I(L,B,U,`⋬`,`\\ntrianglelefteq`,!0),I(L,B,U,`⊊`,`\\subsetneq`,!0),I(L,B,U,``,`\\@varsubsetneq`),I(L,B,U,`⫋`,`\\subsetneqq`,!0),I(L,B,U,``,`\\@varsubsetneqq`),I(L,B,U,`≯`,`\\ngtr`,!0),I(L,B,U,``,`\\@ngeqslant`),I(L,B,U,``,`\\@ngeqq`),I(L,B,U,`⪈`,`\\gneq`,!0),I(L,B,U,`≩`,`\\gneqq`,!0),I(L,B,U,``,`\\@gvertneqq`),I(L,B,U,`⋧`,`\\gnsim`,!0),I(L,B,U,`⪊`,`\\gnapprox`,!0),I(L,B,U,`⊁`,`\\nsucc`,!0),I(L,B,U,`⋡`,`\\nsucceq`,!0),I(L,B,U,`⋩`,`\\succnsim`,!0),I(L,B,U,`⪺`,`\\succnapprox`,!0),I(L,B,U,`≆`,`\\ncong`,!0),I(L,B,U,``,`\\@nshortparallel`),I(L,B,U,`∦`,`\\nparallel`,!0),I(L,B,U,`⊯`,`\\nVDash`,!0),I(L,B,U,`⋫`,`\\ntriangleright`),I(L,B,U,`⋭`,`\\ntrianglerighteq`,!0),I(L,B,U,``,`\\@nsupseteqq`),I(L,B,U,`⊋`,`\\supsetneq`,!0),I(L,B,U,``,`\\@varsupsetneq`),I(L,B,U,`⫌`,`\\supsetneqq`,!0),I(L,B,U,``,`\\@varsupsetneqq`),I(L,B,U,`⊮`,`\\nVdash`,!0),I(L,B,U,`⪵`,`\\precneqq`,!0),I(L,B,U,`⪶`,`\\succneqq`,!0),I(L,B,U,``,`\\@nsubseteqq`),I(L,B,V,`⊴`,`\\unlhd`),I(L,B,V,`⊵`,`\\unrhd`),I(L,B,U,`↚`,`\\nleftarrow`,!0),I(L,B,U,`↛`,`\\nrightarrow`,!0),I(L,B,U,`⇍`,`\\nLeftarrow`,!0),I(L,B,U,`⇏`,`\\nRightarrow`,!0),I(L,B,U,`↮`,`\\nleftrightarrow`,!0),I(L,B,U,`⇎`,`\\nLeftrightarrow`,!0),I(L,B,U,`△`,`\\vartriangle`),I(L,B,W,`ℏ`,`\\hslash`),I(L,B,W,`▽`,`\\triangledown`),I(L,B,W,`◊`,`\\lozenge`),I(L,B,W,`Ⓢ`,`\\circledS`),I(L,B,W,`®`,`\\circledR`),I(R,B,W,`®`,`\\circledR`),I(L,B,W,`∡`,`\\measuredangle`,!0),I(L,B,W,`∄`,`\\nexists`),I(L,B,W,`℧`,`\\mho`),I(L,B,W,`Ⅎ`,`\\Finv`,!0),I(L,B,W,`⅁`,`\\Game`,!0),I(L,B,W,`‵`,`\\backprime`),I(L,B,W,`▲`,`\\blacktriangle`),I(L,B,W,`▼`,`\\blacktriangledown`),I(L,B,W,`■`,`\\blacksquare`),I(L,B,W,`⧫`,`\\blacklozenge`),I(L,B,W,`★`,`\\bigstar`),I(L,B,W,`∢`,`\\sphericalangle`,!0),I(L,B,W,`∁`,`\\complement`,!0),I(L,B,W,`ð`,`\\eth`,!0),I(R,z,W,`ð`,`ð`),I(L,B,W,`╱`,`\\diagup`),I(L,B,W,`╲`,`\\diagdown`),I(L,B,W,`□`,`\\square`),I(L,B,W,`□`,`\\Box`),I(L,B,W,`◊`,`\\Diamond`),I(L,B,W,`¥`,`\\yen`,!0),I(R,B,W,`¥`,`\\yen`,!0),I(L,B,W,`✓`,`\\checkmark`,!0),I(R,B,W,`✓`,`\\checkmark`),I(L,B,W,`ℶ`,`\\beth`,!0),I(L,B,W,`ℸ`,`\\daleth`,!0),I(L,B,W,`ℷ`,`\\gimel`,!0),I(L,B,W,`ϝ`,`\\digamma`,!0),I(L,B,W,`ϰ`,`\\varkappa`),I(L,B,is,`┌`,`\\@ulcorner`,!0),I(L,B,ts,`┐`,`\\@urcorner`,!0),I(L,B,is,`└`,`\\@llcorner`,!0),I(L,B,ts,`┘`,`\\@lrcorner`,!0),I(L,B,U,`≦`,`\\leqq`,!0),I(L,B,U,`⩽`,`\\leqslant`,!0),I(L,B,U,`⪕`,`\\eqslantless`,!0),I(L,B,U,`≲`,`\\lesssim`,!0),I(L,B,U,`⪅`,`\\lessapprox`,!0),I(L,B,U,`≊`,`\\approxeq`,!0),I(L,B,V,`⋖`,`\\lessdot`),I(L,B,U,`⋘`,`\\lll`,!0),I(L,B,U,`≶`,`\\lessgtr`,!0),I(L,B,U,`⋚`,`\\lesseqgtr`,!0),I(L,B,U,`⪋`,`\\lesseqqgtr`,!0),I(L,B,U,`≑`,`\\doteqdot`),I(L,B,U,`≓`,`\\risingdotseq`,!0),I(L,B,U,`≒`,`\\fallingdotseq`,!0),I(L,B,U,`∽`,`\\backsim`,!0),I(L,B,U,`⋍`,`\\backsimeq`,!0),I(L,B,U,`⫅`,`\\subseteqq`,!0),I(L,B,U,`⋐`,`\\Subset`,!0),I(L,B,U,`⊏`,`\\sqsubset`,!0),I(L,B,U,`≼`,`\\preccurlyeq`,!0),I(L,B,U,`⋞`,`\\curlyeqprec`,!0),I(L,B,U,`≾`,`\\precsim`,!0),I(L,B,U,`⪷`,`\\precapprox`,!0),I(L,B,U,`⊲`,`\\vartriangleleft`),I(L,B,U,`⊴`,`\\trianglelefteq`),I(L,B,U,`⊨`,`\\vDash`,!0),I(L,B,U,`⊪`,`\\Vvdash`,!0),I(L,B,U,`⌣`,`\\smallsmile`),I(L,B,U,`⌢`,`\\smallfrown`),I(L,B,U,`≏`,`\\bumpeq`,!0),I(L,B,U,`≎`,`\\Bumpeq`,!0),I(L,B,U,`≧`,`\\geqq`,!0),I(L,B,U,`⩾`,`\\geqslant`,!0),I(L,B,U,`⪖`,`\\eqslantgtr`,!0),I(L,B,U,`≳`,`\\gtrsim`,!0),I(L,B,U,`⪆`,`\\gtrapprox`,!0),I(L,B,V,`⋗`,`\\gtrdot`),I(L,B,U,`⋙`,`\\ggg`,!0),I(L,B,U,`≷`,`\\gtrless`,!0),I(L,B,U,`⋛`,`\\gtreqless`,!0),I(L,B,U,`⪌`,`\\gtreqqless`,!0),I(L,B,U,`≖`,`\\eqcirc`,!0),I(L,B,U,`≗`,`\\circeq`,!0),I(L,B,U,`≜`,`\\triangleq`,!0),I(L,B,U,`∼`,`\\thicksim`),I(L,B,U,`≈`,`\\thickapprox`),I(L,B,U,`⫆`,`\\supseteqq`,!0),I(L,B,U,`⋑`,`\\Supset`,!0),I(L,B,U,`⊐`,`\\sqsupset`,!0),I(L,B,U,`≽`,`\\succcurlyeq`,!0),I(L,B,U,`⋟`,`\\curlyeqsucc`,!0),I(L,B,U,`≿`,`\\succsim`,!0),I(L,B,U,`⪸`,`\\succapprox`,!0),I(L,B,U,`⊳`,`\\vartriangleright`),I(L,B,U,`⊵`,`\\trianglerighteq`),I(L,B,U,`⊩`,`\\Vdash`,!0),I(L,B,U,`∣`,`\\shortmid`),I(L,B,U,`∥`,`\\shortparallel`),I(L,B,U,`≬`,`\\between`,!0),I(L,B,U,`⋔`,`\\pitchfork`,!0),I(L,B,U,`∝`,`\\varpropto`),I(L,B,U,`◀`,`\\blacktriangleleft`),I(L,B,U,`∴`,`\\therefore`,!0),I(L,B,U,`∍`,`\\backepsilon`),I(L,B,U,`▶`,`\\blacktriangleright`),I(L,B,U,`∵`,`\\because`,!0),I(L,B,U,`⋘`,`\\llless`),I(L,B,U,`⋙`,`\\gggtr`),I(L,B,V,`⊲`,`\\lhd`),I(L,B,V,`⊳`,`\\rhd`),I(L,B,U,`≂`,`\\eqsim`,!0),I(L,z,U,`⋈`,`\\Join`),I(L,B,U,`≑`,`\\Doteq`,!0),I(L,B,V,`∔`,`\\dotplus`,!0),I(L,B,V,`∖`,`\\smallsetminus`),I(L,B,V,`⋒`,`\\Cap`,!0),I(L,B,V,`⋓`,`\\Cup`,!0),I(L,B,V,`⩞`,`\\doublebarwedge`,!0),I(L,B,V,`⊟`,`\\boxminus`,!0),I(L,B,V,`⊞`,`\\boxplus`,!0),I(L,B,V,`⋇`,`\\divideontimes`,!0),I(L,B,V,`⋉`,`\\ltimes`,!0),I(L,B,V,`⋊`,`\\rtimes`,!0),I(L,B,V,`⋋`,`\\leftthreetimes`,!0),I(L,B,V,`⋌`,`\\rightthreetimes`,!0),I(L,B,V,`⋏`,`\\curlywedge`,!0),I(L,B,V,`⋎`,`\\curlyvee`,!0),I(L,B,V,`⊝`,`\\circleddash`,!0),I(L,B,V,`⊛`,`\\circledast`,!0),I(L,B,V,`⋅`,`\\centerdot`),I(L,B,V,`⊺`,`\\intercal`,!0),I(L,B,V,`⋒`,`\\doublecap`),I(L,B,V,`⋓`,`\\doublecup`),I(L,B,V,`⊠`,`\\boxtimes`,!0),I(L,B,U,`⇢`,`\\dashrightarrow`,!0),I(L,B,U,`⇠`,`\\dashleftarrow`,!0),I(L,B,U,`⇇`,`\\leftleftarrows`,!0),I(L,B,U,`⇆`,`\\leftrightarrows`,!0),I(L,B,U,`⇚`,`\\Lleftarrow`,!0),I(L,B,U,`↞`,`\\twoheadleftarrow`,!0),I(L,B,U,`↢`,`\\leftarrowtail`,!0),I(L,B,U,`↫`,`\\looparrowleft`,!0),I(L,B,U,`⇋`,`\\leftrightharpoons`,!0),I(L,B,U,`↶`,`\\curvearrowleft`,!0),I(L,B,U,`↺`,`\\circlearrowleft`,!0),I(L,B,U,`↰`,`\\Lsh`,!0),I(L,B,U,`⇈`,`\\upuparrows`,!0),I(L,B,U,`↿`,`\\upharpoonleft`,!0),I(L,B,U,`⇃`,`\\downharpoonleft`,!0),I(L,z,U,`⊶`,`\\origof`,!0),I(L,z,U,`⊷`,`\\imageof`,!0),I(L,B,U,`⊸`,`\\multimap`,!0),I(L,B,U,`↭`,`\\leftrightsquigarrow`,!0),I(L,B,U,`⇉`,`\\rightrightarrows`,!0),I(L,B,U,`⇄`,`\\rightleftarrows`,!0),I(L,B,U,`↠`,`\\twoheadrightarrow`,!0),I(L,B,U,`↣`,`\\rightarrowtail`,!0),I(L,B,U,`↬`,`\\looparrowright`,!0),I(L,B,U,`↷`,`\\curvearrowright`,!0),I(L,B,U,`↻`,`\\circlearrowright`,!0),I(L,B,U,`↱`,`\\Rsh`,!0),I(L,B,U,`⇊`,`\\downdownarrows`,!0),I(L,B,U,`↾`,`\\upharpoonright`,!0),I(L,B,U,`⇂`,`\\downharpoonright`,!0),I(L,B,U,`⇝`,`\\rightsquigarrow`,!0),I(L,B,U,`⇝`,`\\leadsto`),I(L,B,U,`⇛`,`\\Rrightarrow`,!0),I(L,B,U,`↾`,`\\restriction`),I(L,z,W,`‘`,"`"),I(L,z,W,`$`,`\\$`),I(R,z,W,`$`,`\\$`),I(R,z,W,`$`,`\\textdollar`),I(L,z,W,`%`,`\\%`),I(R,z,W,`%`,`\\%`),I(L,z,W,`_`,`\\_`),I(R,z,W,`_`,`\\_`),I(R,z,W,`_`,`\\textunderscore`),I(L,z,W,`∠`,`\\angle`,!0),I(L,z,W,`∞`,`\\infty`,!0),I(L,z,W,`′`,`\\prime`),I(L,z,W,`△`,`\\triangle`),I(L,z,W,`Γ`,`\\Gamma`,!0),I(L,z,W,`Δ`,`\\Delta`,!0),I(L,z,W,`Θ`,`\\Theta`,!0),I(L,z,W,`Λ`,`\\Lambda`,!0),I(L,z,W,`Ξ`,`\\Xi`,!0),I(L,z,W,`Π`,`\\Pi`,!0),I(L,z,W,`Σ`,`\\Sigma`,!0),I(L,z,W,`Υ`,`\\Upsilon`,!0),I(L,z,W,`Φ`,`\\Phi`,!0),I(L,z,W,`Ψ`,`\\Psi`,!0),I(L,z,W,`Ω`,`\\Omega`,!0),I(L,z,W,`A`,`Α`),I(L,z,W,`B`,`Β`),I(L,z,W,`E`,`Ε`),I(L,z,W,`Z`,`Ζ`),I(L,z,W,`H`,`Η`),I(L,z,W,`I`,`Ι`),I(L,z,W,`K`,`Κ`),I(L,z,W,`M`,`Μ`),I(L,z,W,`N`,`Ν`),I(L,z,W,`O`,`Ο`),I(L,z,W,`P`,`Ρ`),I(L,z,W,`T`,`Τ`),I(L,z,W,`X`,`Χ`),I(L,z,W,`¬`,`\\neg`,!0),I(L,z,W,`¬`,`\\lnot`),I(L,z,W,`⊤`,`\\top`),I(L,z,W,`⊥`,`\\bot`),I(L,z,W,`∅`,`\\emptyset`),I(L,B,W,`∅`,`\\varnothing`),I(L,z,H,`α`,`\\alpha`,!0),I(L,z,H,`β`,`\\beta`,!0),I(L,z,H,`γ`,`\\gamma`,!0),I(L,z,H,`δ`,`\\delta`,!0),I(L,z,H,`ϵ`,`\\epsilon`,!0),I(L,z,H,`ζ`,`\\zeta`,!0),I(L,z,H,`η`,`\\eta`,!0),I(L,z,H,`θ`,`\\theta`,!0),I(L,z,H,`ι`,`\\iota`,!0),I(L,z,H,`κ`,`\\kappa`,!0),I(L,z,H,`λ`,`\\lambda`,!0),I(L,z,H,`μ`,`\\mu`,!0),I(L,z,H,`ν`,`\\nu`,!0),I(L,z,H,`ξ`,`\\xi`,!0),I(L,z,H,`ο`,`\\omicron`,!0),I(L,z,H,`π`,`\\pi`,!0),I(L,z,H,`ρ`,`\\rho`,!0),I(L,z,H,`σ`,`\\sigma`,!0),I(L,z,H,`τ`,`\\tau`,!0),I(L,z,H,`υ`,`\\upsilon`,!0),I(L,z,H,`ϕ`,`\\phi`,!0),I(L,z,H,`χ`,`\\chi`,!0),I(L,z,H,`ψ`,`\\psi`,!0),I(L,z,H,`ω`,`\\omega`,!0),I(L,z,H,`ε`,`\\varepsilon`,!0),I(L,z,H,`ϑ`,`\\vartheta`,!0),I(L,z,H,`ϖ`,`\\varpi`,!0),I(L,z,H,`ϱ`,`\\varrho`,!0),I(L,z,H,`ς`,`\\varsigma`,!0),I(L,z,H,`φ`,`\\varphi`,!0),I(L,z,V,`∗`,`*`,!0),I(L,z,V,`+`,`+`),I(L,z,V,`−`,`-`,!0),I(L,z,V,`⋅`,`\\cdot`,!0),I(L,z,V,`∘`,`\\circ`,!0),I(L,z,V,`÷`,`\\div`,!0),I(L,z,V,`±`,`\\pm`,!0),I(L,z,V,`×`,`\\times`,!0),I(L,z,V,`∩`,`\\cap`,!0),I(L,z,V,`∪`,`\\cup`,!0),I(L,z,V,`∖`,`\\setminus`,!0),I(L,z,V,`∧`,`\\land`),I(L,z,V,`∨`,`\\lor`),I(L,z,V,`∧`,`\\wedge`,!0),I(L,z,V,`∨`,`\\vee`,!0),I(L,z,W,`√`,`\\surd`),I(L,z,is,`⟨`,`\\langle`,!0),I(L,z,is,`∣`,`\\lvert`),I(L,z,is,`∥`,`\\lVert`),I(L,z,ts,`?`,`?`),I(L,z,ts,`!`,`!`),I(L,z,ts,`⟩`,`\\rangle`,!0),I(L,z,ts,`∣`,`\\rvert`),I(L,z,ts,`∥`,`\\rVert`),I(L,z,U,`=`,`=`),I(L,z,U,`:`,`:`),I(L,z,U,`≈`,`\\approx`,!0),I(L,z,U,`≅`,`\\cong`,!0),I(L,z,U,`≥`,`\\ge`),I(L,z,U,`≥`,`\\geq`,!0),I(L,z,U,`←`,`\\gets`),I(L,z,U,`>`,`\\gt`,!0),I(L,z,U,`∈`,`\\in`,!0),I(L,z,U,``,`\\@not`),I(L,z,U,`⊂`,`\\subset`,!0),I(L,z,U,`⊃`,`\\supset`,!0),I(L,z,U,`⊆`,`\\subseteq`,!0),I(L,z,U,`⊇`,`\\supseteq`,!0),I(L,B,U,`⊈`,`\\nsubseteq`,!0),I(L,B,U,`⊉`,`\\nsupseteq`,!0),I(L,z,U,`⊨`,`\\models`),I(L,z,U,`←`,`\\leftarrow`,!0),I(L,z,U,`≤`,`\\le`),I(L,z,U,`≤`,`\\leq`,!0),I(L,z,U,`<`,`\\lt`,!0),I(L,z,U,`→`,`\\rightarrow`,!0),I(L,z,U,`→`,`\\to`),I(L,B,U,`≱`,`\\ngeq`,!0),I(L,B,U,`≰`,`\\nleq`,!0),I(L,z,os,`\xA0`,`\\ `),I(L,z,os,`\xA0`,`\\space`),I(L,z,os,`\xA0`,`\\nobreakspace`),I(R,z,os,`\xA0`,`\\ `),I(R,z,os,`\xA0`,` `),I(R,z,os,`\xA0`,`\\space`),I(R,z,os,`\xA0`,`\\nobreakspace`),I(L,z,os,``,`\\nobreak`),I(L,z,os,``,`\\allowbreak`),I(L,z,as,`,`,`,`),I(L,z,as,`;`,`;`),I(L,B,V,`⊼`,`\\barwedge`,!0),I(L,B,V,`⊻`,`\\veebar`,!0),I(L,z,V,`⊙`,`\\odot`,!0),I(L,z,V,`⊕`,`\\oplus`,!0),I(L,z,V,`⊗`,`\\otimes`,!0),I(L,z,W,`∂`,`\\partial`,!0),I(L,z,V,`⊘`,`\\oslash`,!0),I(L,B,V,`⊚`,`\\circledcirc`,!0),I(L,B,V,`⊡`,`\\boxdot`,!0),I(L,z,V,`△`,`\\bigtriangleup`),I(L,z,V,`▽`,`\\bigtriangledown`),I(L,z,V,`†`,`\\dagger`),I(L,z,V,`⋄`,`\\diamond`),I(L,z,V,`⋆`,`\\star`),I(L,z,V,`◃`,`\\triangleleft`),I(L,z,V,`▹`,`\\triangleright`),I(L,z,is,`{`,`\\{`),I(R,z,W,`{`,`\\{`),I(R,z,W,`{`,`\\textbraceleft`),I(L,z,ts,`}`,`\\}`),I(R,z,W,`}`,`\\}`),I(R,z,W,`}`,`\\textbraceright`),I(L,z,is,`{`,`\\lbrace`),I(L,z,ts,`}`,`\\rbrace`),I(L,z,is,`[`,`\\lbrack`,!0),I(R,z,W,`[`,`\\lbrack`,!0),I(L,z,ts,`]`,`\\rbrack`,!0),I(R,z,W,`]`,`\\rbrack`,!0),I(L,z,is,`(`,`\\lparen`,!0),I(L,z,ts,`)`,`\\rparen`,!0),I(R,z,W,`<`,`\\textless`,!0),I(R,z,W,`>`,`\\textgreater`,!0),I(L,z,is,`⌊`,`\\lfloor`,!0),I(L,z,ts,`⌋`,`\\rfloor`,!0),I(L,z,is,`⌈`,`\\lceil`,!0),I(L,z,ts,`⌉`,`\\rceil`,!0),I(L,z,W,`\\`,`\\backslash`),I(L,z,W,`∣`,`|`),I(L,z,W,`∣`,`\\vert`),I(R,z,W,`|`,`\\textbar`,!0),I(L,z,W,`∥`,`\\|`),I(L,z,W,`∥`,`\\Vert`),I(R,z,W,`∥`,`\\textbardbl`),I(R,z,W,`~`,`\\textasciitilde`),I(R,z,W,`\\`,`\\textbackslash`),I(R,z,W,`^`,`\\textasciicircum`),I(L,z,U,`↑`,`\\uparrow`,!0),I(L,z,U,`⇑`,`\\Uparrow`,!0),I(L,z,U,`↓`,`\\downarrow`,!0),I(L,z,U,`⇓`,`\\Downarrow`,!0),I(L,z,U,`↕`,`\\updownarrow`,!0),I(L,z,U,`⇕`,`\\Updownarrow`,!0),I(L,z,rs,`∐`,`\\coprod`),I(L,z,rs,`⋁`,`\\bigvee`),I(L,z,rs,`⋀`,`\\bigwedge`),I(L,z,rs,`⨄`,`\\biguplus`),I(L,z,rs,`⋂`,`\\bigcap`),I(L,z,rs,`⋃`,`\\bigcup`),I(L,z,rs,`∫`,`\\int`),I(L,z,rs,`∫`,`\\intop`),I(L,z,rs,`∬`,`\\iint`),I(L,z,rs,`∭`,`\\iiint`),I(L,z,rs,`∏`,`\\prod`),I(L,z,rs,`∑`,`\\sum`),I(L,z,rs,`⨂`,`\\bigotimes`),I(L,z,rs,`⨁`,`\\bigoplus`),I(L,z,rs,`⨀`,`\\bigodot`),I(L,z,rs,`∮`,`\\oint`),I(L,z,rs,`∯`,`\\oiint`),I(L,z,rs,`∰`,`\\oiiint`),I(L,z,rs,`⨆`,`\\bigsqcup`),I(L,z,rs,`∫`,`\\smallint`),I(R,z,ns,`…`,`\\textellipsis`),I(L,z,ns,`…`,`\\mathellipsis`),I(R,z,ns,`…`,`\\ldots`,!0),I(L,z,ns,`…`,`\\ldots`,!0),I(L,z,ns,`⋯`,`\\@cdots`,!0),I(L,z,ns,`⋱`,`\\ddots`,!0),I(L,z,W,`⋮`,`\\varvdots`),I(R,z,W,`⋮`,`\\varvdots`),I(L,z,es,`ˊ`,`\\acute`),I(L,z,es,`ˋ`,`\\grave`),I(L,z,es,`¨`,`\\ddot`),I(L,z,es,`~`,`\\tilde`),I(L,z,es,`ˉ`,`\\bar`),I(L,z,es,`˘`,`\\breve`),I(L,z,es,`ˇ`,`\\check`),I(L,z,es,`^`,`\\hat`),I(L,z,es,`⃗`,`\\vec`),I(L,z,es,`˙`,`\\dot`),I(L,z,es,`˚`,`\\mathring`),I(L,z,H,``,`\\@imath`),I(L,z,H,``,`\\@jmath`),I(L,z,W,`ı`,`ı`),I(L,z,W,`ȷ`,`ȷ`),I(R,z,W,`ı`,`\\i`,!0),I(R,z,W,`ȷ`,`\\j`,!0),I(R,z,W,`ß`,`\\ss`,!0),I(R,z,W,`æ`,`\\ae`,!0),I(R,z,W,`œ`,`\\oe`,!0),I(R,z,W,`ø`,`\\o`,!0),I(R,z,W,`Æ`,`\\AE`,!0),I(R,z,W,`Œ`,`\\OE`,!0),I(R,z,W,`Ø`,`\\O`,!0),I(R,z,es,`ˊ`,`\\'`),I(R,z,es,`ˋ`,"\\`"),I(R,z,es,`ˆ`,`\\^`),I(R,z,es,`˜`,`\\~`),I(R,z,es,`ˉ`,`\\=`),I(R,z,es,`˘`,`\\u`),I(R,z,es,`˙`,`\\.`),I(R,z,es,`¸`,`\\c`),I(R,z,es,`˚`,`\\r`),I(R,z,es,`ˇ`,`\\v`),I(R,z,es,`¨`,`\\"`),I(R,z,es,`˝`,`\\H`),I(R,z,es,`◯`,`\\textcircled`);var ss={"--":!0,"---":!0,"``":!0,"''":!0};I(R,z,W,`–`,`--`,!0),I(R,z,W,`–`,`\\textendash`),I(R,z,W,`—`,`---`,!0),I(R,z,W,`—`,`\\textemdash`),I(R,z,W,`‘`,"`",!0),I(R,z,W,`‘`,`\\textquoteleft`),I(R,z,W,`’`,`'`,!0),I(R,z,W,`’`,`\\textquoteright`),I(R,z,W,`“`,"``",!0),I(R,z,W,`“`,`\\textquotedblleft`),I(R,z,W,`”`,`''`,!0),I(R,z,W,`”`,`\\textquotedblright`),I(L,z,W,`°`,`\\degree`,!0),I(R,z,W,`°`,`\\degree`),I(R,z,W,`°`,`\\textdegree`,!0),I(L,z,W,`£`,`\\pounds`),I(L,z,W,`£`,`\\mathsterling`,!0),I(R,z,W,`£`,`\\pounds`),I(R,z,W,`£`,`\\textsterling`,!0),I(L,B,W,`✠`,`\\maltese`),I(R,B,W,`✠`,`\\maltese`);for(var cs=`0123456789/@."`,ls=0;ls<cs.length;ls++){var us=cs.charAt(ls);I(L,z,W,us,us)}for(var ds=`0123456789!@*()-=+";:?/.,`,fs=0;fs<ds.length;fs++){var ps=ds.charAt(fs);I(R,z,W,ps,ps)}for(var ms=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,hs=0;hs<ms.length;hs++){var gs=ms.charAt(hs);I(L,z,H,gs,gs),I(R,z,W,gs,gs)}I(L,B,W,`C`,`ℂ`),I(R,B,W,`C`,`ℂ`),I(L,B,W,`H`,`ℍ`),I(R,B,W,`H`,`ℍ`),I(L,B,W,`N`,`ℕ`),I(R,B,W,`N`,`ℕ`),I(L,B,W,`P`,`ℙ`),I(R,B,W,`P`,`ℙ`),I(L,B,W,`Q`,`ℚ`),I(R,B,W,`Q`,`ℚ`),I(L,B,W,`R`,`ℝ`),I(R,B,W,`R`,`ℝ`),I(L,B,W,`Z`,`ℤ`),I(R,B,W,`Z`,`ℤ`),I(L,z,H,`h`,`ℎ`),I(R,z,H,`h`,`ℎ`);for(var G,_s=0;_s<ms.length;_s++){var vs=ms.charAt(_s);G=String.fromCharCode(55349,56320+_s),I(L,z,H,vs,G),I(R,z,W,vs,G),G=String.fromCharCode(55349,56372+_s),I(L,z,H,vs,G),I(R,z,W,vs,G),G=String.fromCharCode(55349,56424+_s),I(L,z,H,vs,G),I(R,z,W,vs,G),G=String.fromCharCode(55349,56580+_s),I(L,z,H,vs,G),I(R,z,W,vs,G),G=String.fromCharCode(55349,56684+_s),I(L,z,H,vs,G),I(R,z,W,vs,G),G=String.fromCharCode(55349,56736+_s),I(L,z,H,vs,G),I(R,z,W,vs,G),G=String.fromCharCode(55349,56788+_s),I(L,z,H,vs,G),I(R,z,W,vs,G),G=String.fromCharCode(55349,56840+_s),I(L,z,H,vs,G),I(R,z,W,vs,G),G=String.fromCharCode(55349,56944+_s),I(L,z,H,vs,G),I(R,z,W,vs,G),_s<26&&(G=String.fromCharCode(55349,56632+_s),I(L,z,H,vs,G),I(R,z,W,vs,G),G=String.fromCharCode(55349,56476+_s),I(L,z,H,vs,G),I(R,z,W,vs,G))}G=String.fromCharCode(55349,56668),I(L,z,H,`k`,G),I(R,z,W,`k`,G);for(var ys=0;ys<10;ys++){var bs=ys.toString();G=String.fromCharCode(55349,57294+ys),I(L,z,H,bs,G),I(R,z,W,bs,G),G=String.fromCharCode(55349,57314+ys),I(L,z,H,bs,G),I(R,z,W,bs,G),G=String.fromCharCode(55349,57324+ys),I(L,z,H,bs,G),I(R,z,W,bs,G),G=String.fromCharCode(55349,57334+ys),I(L,z,H,bs,G),I(R,z,W,bs,G)}for(var xs=`ÐÞþ`,Ss=0;Ss<xs.length;Ss++){var Cs=xs.charAt(Ss);I(L,z,H,Cs,Cs),I(R,z,W,Cs,Cs)}var ws={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},Ts={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},Es={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},Ds={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},Os={mathClass:``,textClass:``,font:``},ks={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},As={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},js={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},Ms={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},Ns={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},Ps={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},Fs={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},Is=[ws,ws,Ts,Ts,Es,Es,Ds,Os,Os,Os,ks,ks,As,As,js,js,Ms,Ms,Ns,Ns,Ps,Ps,Os,Os,Fs,Fs],Ls=[ws,Os,Ms,Ns,Fs],Rs=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return Is[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return Ls[Math.floor((r-120782)/10)];if(r===120485||r===120486)return Is[0];if(120486<r&&r<120782)return Os;throw new N(`Unsupported character: `+e)};function zs(e){var t=e.strict,n=e.errorCode,r=e.errorMsg,i=e.token,a=e.report,o=t;if(typeof t==`function`)if(a)o=t(n,r,i);else try{o=t(n,r,i)}catch{o=`error`}switch(o){case!0:case`error`:if(a)throw new N(`LaTeX-incompatible input and strict mode is set to 'error': `+(r+` [`+n+`]`),i);return!0;case!1:case`ignore`:if(!a)return!1;break;default:if(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(r+` [`+n+`]`)),!a)return!1;break}}var Bs=function(e,t,n){if($o[n][e]){var r=$o[n][e].replace;r&&(e=r)}return{value:e,metrics:Xo(e,t,n)}},Vs=function(e,t,n,r,i){var a=Bs(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new zo(e,o.height,o.depth,c,o.skew,o.width,i)}else zs({strict:r.strict,errorCode:`symbolNotInFont`,errorMsg:`No character metrics for '`+e+`' in style '`+t+`' and mode '`+n+`'`,report:!0}),s=new zo(e,0,0,0,0,0,i);s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();return l&&(s.style.color=l),s},Hs=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&Bs(e,`Main-Bold`,t).metrics?Vs(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||$o[t][e].font===`main`?Vs(e,`Main-Regular`,t,n,r):Vs(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},Us=function(e,t,n){return n!==`textord`&&Bs(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},Ws=function(e,t){var n=e.type===`mathord`?`mathord`:`textord`,r=e.mode,i=e.text,a=[`mord`],o=t.font,s=t.fontFamily,c=t.fontWeight,l=t.fontShape,u=r===`math`||r===`text`&&!!o,d=u?o:s,f=``,p=``;if(i.charCodeAt(0)===55349){var m=Rs(i);f=m.font,p=m[r+`Class`]}if(f)return Vs(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=Us(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=nc[o].fontName,g=[o]):(h=tc(s,c,l),g=[s,c,l]);if(Bs(i,h,r).metrics)return Vs(i,h,r,t,a.concat(g));if(Object.prototype.hasOwnProperty.call(ss,i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(Vs(i[y],h,r,t,a.concat(g)));return Zs(v)}}if(n===`mathord`)return Vs(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=$o[r][i]&&$o[r][i].font;if(b===`ams`)return Vs(i,tc(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return Vs(i,tc(`textrm`,c,l),r,t,a.concat(c,l));var x=tc(b,c,l);return Vs(i,x,r,t,a.concat(x,c,l))}else throw Error(`unexpected type: `+n+` in makeOrd`)},Gs=(e,t)=>{if(ko(e.classes)!==ko(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},Ks=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof zo&&r instanceof zo&&Gs(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},qs=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},K=function(e,t,n,r){var i=new Fo(e,t,n,r);return qs(i),i},Js=(e,t,n,r)=>new Fo(e,t,n,r),Ys=function(e,t,n){var r=K([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=F(r.height),r.maxFontSize=1,r},Xs=function(e,t,n,r){var i=new Io(e,t,n,r);return qs(i),i},Zs=function(e){var t=new wo(e);return qs(t),t},Qs=function(e,t){return e instanceof wo?K([],[e],t):e},$s=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},q=function(e,t){for(var n=$s(e),r=n.children,i=n.depth,a=0,o=0;o<r.length;o++){var s=r[o];if(s.type===`elem`){var c=s.elem;a=Math.max(a,c.maxFontSize,c.height)}}a+=2;var l=K([`pstrut`],[]);l.style.height=F(a);for(var u=[],d=i,f=i,p=i,m=0;m<r.length;m++){var h=r[m];if(h.type===`kern`)p+=h.size;else{var g=h.elem,_=h.wrapperClasses||[],v=h.wrapperStyle||{},y=K(_,[l,g],void 0,v);y.style.top=F(-a-p-g.depth),h.marginLeft&&(y.style.marginLeft=h.marginLeft),h.marginRight&&(y.style.marginRight=h.marginRight),u.push(y),p+=g.height+g.depth}d=Math.min(d,p),f=Math.max(f,p)}var b=K([`vlist`],u);b.style.height=F(f);var x;if(d<0){var S=K([`vlist`],[K([],[])]);S.style.height=F(-d),x=[K([`vlist-r`],[b,K([`vlist-s`],[new zo(`​`)])]),K([`vlist-r`],[S])]}else x=[K([`vlist-r`],[b])];var C=K([`vlist-t`],x);return x.length===2&&C.classes.push(`vlist-t2`),C.height=f,C.depth=-d,C},ec=(e,t)=>{var n=K([`mspace`],[],t),r=Oo(e,t);return n.style.marginRight=F(r),n},tc=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},nc={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},rc={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},ic=function(e,t){var n=rc[e],r=n[0],i=n[1],a=n[2],o=Js([`katex-overlay`],[new Bo([new Vo(r)],{width:F(i),height:F(a),style:`width:`+F(i),viewBox:`0 0 `+1e3*i+` `+1e3*a,preserveAspectRatio:`xMinYMin`})],t);return o.height=a,o.style.height=F(a),o.style.width=F(i),o},ac={number:3,unit:`mu`},oc={number:4,unit:`mu`},sc={number:5,unit:`mu`},cc={mord:{mop:ac,mbin:oc,mrel:sc,minner:ac},mop:{mord:ac,mop:ac,mrel:sc,minner:ac},mbin:{mord:oc,mop:oc,mopen:oc,minner:oc},mrel:{mord:sc,mop:sc,mopen:sc,minner:sc},mopen:{},mclose:{mop:ac,mbin:oc,mrel:sc,minner:ac},mpunct:{mord:ac,mop:ac,mrel:sc,mopen:ac,mclose:ac,mpunct:ac,minner:ac},minner:{mord:ac,mop:ac,mbin:oc,mrel:sc,mopen:ac,mpunct:ac,minner:ac}},lc={mord:{mop:ac},mop:{mord:ac,mop:ac},mbin:{},mrel:{},mopen:{},mclose:{mop:ac},mpunct:{},minner:{mop:ac}},uc={},dc={},fc={};function J(e){for(var t=e.type,n=e.names,r=e.htmlBuilder,i=e.mathmlBuilder,a=0;a<n.length;++a)uc[n[a]]=e;t&&(r&&(dc[t]=r),i&&(fc[t]=i))}function pc(e){var t=e.type,n=e.htmlBuilder,r=e.mathmlBuilder;n&&(dc[t]=n),r&&(fc[t]=r)}var mc=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},hc=function(e){return e.type===`ordgroup`?e.body:[e]},gc=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),_c=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),vc={display:P.DISPLAY,text:P.TEXT,script:P.SCRIPT,scriptscript:P.SCRIPTSCRIPT},yc={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},bc=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=Y(e[a],t);if(o instanceof wo){var s=o.children;i.push(...s)}else i.push(o)}if(Ks(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(vc[l.style]))}var u=K([r[0]||`leftmost`],[],t),d=K([r[1]||`rightmost`],[],t),f=n===`root`;return xc(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&_c.has(r)?t.classes[0]=`mord`:r===`mbin`&&gc.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),xc(i,(e,t)=>{var n=wc(t),r=wc(e),i=n&&r?e.hasClass(`mtight`)?lc[n]?.[r]:cc[n]?.[r]:null;if(i)return ec(i,c)},{node:u},d,f),i},xc=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=Sc(o);if(s){xc(s.children,t,n,null,i);continue}var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`katex-newline`)&&(n.node=K([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},Sc=function(e){return e instanceof wo||e instanceof Io||e instanceof Fo&&e.hasClass(`enclosing`)?e:null},Cc=function(e,t){var n=Sc(e);if(n){var r=n.children;if(r.length){if(t===`right`)return Cc(r[r.length-1],`right`);if(t===`left`)return Cc(r[0],`left`)}}return e},wc=function(e,t){return e?(t&&(e=Cc(e,t)),yc[e.classes[0]]||null):null},Tc=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return K(t.concat(n))},Y=function(e,t,n){if(!e)return K();if(dc[e.type]){var r=dc[e.type](e,t);if(n&&t.size!==n.size){r=K(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}else throw new N(`Got group of unknown type: '`+e.type+`'`)};function Ec(e,t){var n=K([`katex-base`],e,t),r=K([`katex-strut`]);return r.style.height=F(n.height+n.depth),n.depth&&(r.style.verticalAlign=F(-n.depth)),n.children.unshift(r),n}function Dc(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=bc(e,t,`root`),i;r.length===2&&r[1].hasClass(`katex-tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`katex-newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(Ec(o,t)),o=[])}else r[s].hasClass(`katex-newline`)&&(o.pop(),o.length>0&&(a.push(Ec(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(Ec(o,t));var l;n?(l=Ec(bc(n,t,!0),t),l.classes=[`katex-tag`],a.push(l)):i&&a.push(i);var u=K([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=F(u.height+u.depth),u.depth&&(d.style.verticalAlign=F(-u.depth))}return u}function Oc(e){return new wo(e)}var X=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e.setAttribute(n,r)}this.classes.length>0&&(e.className=ko(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof kc&&this.children[i+1]instanceof kc){for(var a=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof kc;)a+=this.children[++i].toText();e.appendChild(new kc(a).toNode())}else e.appendChild(this.children[i].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e+=` `+n+`="`,e+=Na(r),e+=`"`}this.classes.length>0&&(e+=` class ="`+Na(ko(this.classes))+`"`),e+=`>`;for(var i=0;i<this.children.length;i++)e+=this.children[i].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},kc=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Na(this.toText())}toText(){return this.text}},Ac=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=` `:e>=.1666&&e<=.1667?this.character=` `:e>=.2222&&e<=.2223?this.character=` `:e>=.2777&&e<=.2778?this.character=`  `:e>=-.05556&&e<=-.05555?this.character=` ⁣`:e>=-.1667&&e<=-.1666?this.character=` ⁣`:e>=-.2223&&e<=-.2222?this.character=` ⁣`:e>=-.2778&&e<=-.2777?this.character=` ⁣`:this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,F(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+F(this.width)+`"/>`}toText(){return this.character?this.character:` `}},jc=new Set([`\\imath`,`\\jmath`]),Mc=new Set([`mrow`,`mtable`]),Nc=function(e,t,n){var r,i;return $o[t][e]&&$o[t][e].replace&&e.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(ss,e)&&((n==null||(r=n.fontFamily)==null?void 0:r.slice(4,6))===`tt`||(n==null||(i=n.font)==null?void 0:i.slice(4,6))===`tt`))&&(e=$o[t][e].replace),new kc(e)},Pc=function(e){return e.length===1?e[0]:new X(`mrow`,e)},Fc={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},Ic=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=Fc[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(jc.has(a))return null;if($o[r][a]){var o=$o[r][a].replace;o&&(a=o)}var s=nc[n].fontName;return Xo(a,s,r)?nc[n].variant:null};function Lc(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof kc&&t.text===`.`}else if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof kc&&n.text===`,`}else return!1}var Rc=function(e,t,n){if(e.length===1){var r=Z(e[0],t);return n&&r instanceof X&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=Z(e[o],t);if(s instanceof X&&a instanceof X){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}else if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}else if(Lc(s)&&a.type===`mn`){a.children.push(...s.children);continue}else if(s.type===`mn`&&Lc(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||Lc(a))){var c=s.children[0];c instanceof X&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof kc&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof kc&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},zc=function(e,t,n){return Pc(Rc(e,t,n))},Z=function(e,t){if(!e)return new X(`mrow`);if(fc[e.type])return fc[e.type](e,t);throw new N(`Got group of unknown type: '`+e.type+`'`)};function Bc(e,t,n,r,i){var a=Rc(e,n),o=a.length===1&&a[0]instanceof X&&Mc.has(a[0].type)?a[0]:new X(`mrow`,a),s=new X(`annotation`,[new kc(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new X(`math`,[new X(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),K([i?`katex`:`katex-mathml`],[c])}var Vc=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Hc=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Uc=function(e,t){return t.size<2?e:Vc[e-1][t.size-1]},Wc=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.strict=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=Hc[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this.strict=t.strict,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness,strict:this.strict};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Uc(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Hc[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=Uc(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`katex-sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`katex-sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=Qo(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};Wc.BASESIZE=6;var Gc=e=>new Wc({style:e.displayMode?P.DISPLAY:P.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness,strict:e.strict}),Kc=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=K(n,[e])}return e},qc=function(e,t,n){var r=Gc(n),i;return n.output===`mathml`?Bc(e,t,r,n.displayMode,!0):(i=n.output===`html`?K([`katex`],[Dc(e,r)]):K([`katex`],[Bc(e,t,r,n.displayMode,!1),Dc(e,r)]),Kc(i,n))},Jc=function(e,t){return Kc(K([`katex`],[Dc(e,Gc(t))]),t)},Yc={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},Xc=function(e){var t=new X(`mo`,[new kc(Yc[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},Zc={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},Qc=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),$c=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(Qc.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:Js([],[new Bo([new Vo(o)],{width:`100%`,height:F(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}else{var l=[],u=Zc[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var d=u[0],f=u[1],p=u[2],m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
319
+ `+h+` children.`);for(var v=0;v<h;v++){var y=new Bo([new Vo(d[v])],{width:`400em`,height:F(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=Js([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=F(m),l.push(b)}return{span:K([`katex-stretchy`],l,t),minWidth:f,height:m}}}var r=n(),i=r.span,a=r.minWidth,o=r.height;return i.height=o,i.style.height=F(o),a>0&&(i.style.minWidth=F(a)),i},el=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=K([`katex-stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new Ho({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new Ho({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=Js([],[new Bo(c,{width:`100%`,height:F(o)})],i)}return a.height=o,a.style.height=F(o),a},tl=[`bin`,`close`,`inner`,`open`,`punct`,`rel`],nl=[`accent-token`,`mathord`,`op-token`,`spacing`,`textord`],rl=new Set(tl),il=new Set(nl);function al(e){return rl.has(e)}function Q(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function ol(e){var t=sl(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function sl(e){return e.type===`atom`||il.has(e.type)?e:null}function cl(e,t,n){var r=``;for(var i of e.body)if(i.type===`textord`)r+=i.text;else if(n&&i.type===`spacing`&&i.text===` `)r+=` `;else throw new N(t,e);return r}var ll=e=>{if(e instanceof zo)return e;if(Go(e)&&e.children.length===1)return ll(e.children[0])},ul=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=Q(e.base,`accent`),n=r.base,e.base=n,i=Wo(Y(e,t)),e.base=r):(r=Q(e,`accent`),n=r.base);var a=Y(n,t.havingCrampedStyle()),o=r.isShifty&&Ia(n),s=0;o&&(s=ll(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=$c(r,t),u=q({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+F(2*s)+`)`,marginLeft:F(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=ic(`vec`,t),f=rc.vec[1]):(d=Ws({type:`textord`,mode:r.mode,text:r.label},t),d=Uo(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=K([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=F(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=q({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=K([`mord`,`katex-accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},dl=(e,t)=>{var n=e.isStretchy?Xc(e.label):new X(`mo`,[Nc(e.label,e.mode)]),r=new X(`mover`,[Z(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},fl=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));J({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],numArgs:1,handler:(e,t)=>{var n=mc(t[0]),r=!fl.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:ul,mathmlBuilder:dl}),J({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`],handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(zs({strict:e.parser.settings.strict,errorCode:`mathVsTextAccents`,errorMsg:`LaTeX's accent `+e.funcName+` works only in text mode`,report:!0}),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}}}),J({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Y(e.base,t),r=$c(e,t),i=e.label===`\\utilde`?.12:0;return K([`mord`,`accentunder`],[q({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=Xc(e.label),r=new X(`munder`,[Z(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var pl=e=>{var t=new X(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};J({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=e.funcName;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Qs(Y(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=Qs(Y(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=$c(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=q({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=q({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return K([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=Xc(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=pl(Z(e.body,t));r=e.below?new X(`munderover`,[n,pl(Z(e.below,t)),i]):new X(`mover`,[n,i])}else e.below?r=new X(`munder`,[n,pl(Z(e.below,t))]):(r=pl(),r=new X(`mover`,[n,r]));return r}});function ml(e,t){var n=bc(e.body,t,!0);return K([e.mclass],n,t)}function hl(e,t){var n,r=Rc(e.body,t);return e.mclass===`minner`?n=new X(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new X(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new X(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):(e.mclass===`mopen`||e.mclass===`mclose`)&&(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`)),n}J({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],numArgs:1,primitive:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:hc(i),isCharacterBox:Ia(i)}},htmlBuilder:ml,mathmlBuilder:hl});var gl=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};J({type:`mclass`,names:[`\\@binrel`],numArgs:2,handler(e,t){return{type:`mclass`,mode:e.parser.mode,mclass:gl(t[0]),body:hc(t[1]),isCharacterBox:Ia(t[1])}}}),J({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],numArgs:2,handler(e,t){var n=e.parser,r=e.funcName,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:gl(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:hc(i)},c=r===`\\underset`?{type:`supsub`,mode:a.mode,base:s,sub:a}:{type:`supsub`,mode:a.mode,base:s,sup:a};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:Ia(c)}}}),J({type:`pmb`,names:[`\\pmb`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`pmb`,mode:e.parser.mode,mclass:gl(t[0]),body:hc(t[0])}},htmlBuilder(e,t){var n=bc(e.body,t,!0),r=K([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new X(`mstyle`,Rc(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var _l={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},vl=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),yl=e=>e.type===`textord`&&e.text===`@`,bl=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function xl(e,t,n){var r=_l[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function Sl(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new N(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=vl(),c=0;c<o.length;c++)if(!yl(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=ol(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l))if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(bl(o[p],l)){f=!1,c=p;break}if(yl(o[p]))throw new N(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new N(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new N(`Expected one of "<>AV=|." after @`,o[c]);var m={type:`styling`,body:[xl(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=vl()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}J({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Qs(Y(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=F(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new X(`mrow`,[Z(e.label,t)]);return n=new X(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new X(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),J({type:`cdlabelparent`,names:[`\\\\cdparent`],numArgs:1,handler(e,t){return{type:`cdlabelparent`,mode:e.parser.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Qs(Y(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new X(`mrow`,[Z(e.fragment,t)])}}),J({type:`textord`,names:[`\\@char`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=cl(Q(t[0],`ordgroup`),`\\@char has non-numeric argument`),i=parseInt(r),a;if(isNaN(i))throw new N(`\\@char has non-numeric argument `+r);if(i<0||i>1114111)throw new N(`\\@char with invalid code point `+r);return i<=65535?a=String.fromCharCode(i):(i-=65536,a=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:`textord`,mode:n.mode,text:a}}}),J({type:`color`,names:[`\\textcolor`],numArgs:2,allowedInText:!0,argTypes:[`color`,`original`],handler(e,t){var n=e.parser,r=Q(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:hc(i)}},htmlBuilder:(e,t)=>Zs(bc(e.body,t.withColor(e.color),!1)),mathmlBuilder:(e,t)=>{var n=new X(`mstyle`,Rc(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n}}),J({type:`color`,names:[`\\color`],numArgs:1,allowedInText:!0,argTypes:[`color`],handler(e,t){var n=e.parser,r=e.breakOnTokenText,i=Q(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}}}),J({type:`cr`,names:[`\\\\`],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=t.gullet.future().text===`[`?t.parseSizeGroup(!0):null,r=!t.settings.displayMode||!zs({strict:t.settings.strict,errorCode:`newLineInDisplayMode`,errorMsg:`In LaTeX, \\\\ or \\newline does nothing in display mode`,report:!1});return{type:`cr`,mode:t.mode,newLine:r,size:n&&Q(n,`size`).value}},htmlBuilder(e,t){var n=K([`mspace`],[],t);return e.newLine&&(n.classes.push(`katex-newline`),e.size&&(n.style.marginTop=F(Oo(e.size,t)))),n},mathmlBuilder(e,t){var n=new X(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,F(Oo(e.size,t)))),n}});var Cl={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},wl=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new N(`Expected a control sequence`,e);return t},Tl=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},El=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};J({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],numArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var r=t.fetch();if(Cl[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=Cl[r.text]),Q(t.parseFunction(),`internal`);throw new N(`Invalid token after macro prefix`,r)}}),J({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new N(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new N(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new N(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new N(`Expected a macro definition`);else s[a].push(r.text);var c=t.gullet.consumeArg().tokens;return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===Cl[n]),{type:`internal`,mode:t.mode}}}),J({type:`internal`,names:[`\\let`,`\\\\globallet`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=wl(t.gullet.popToken());return t.gullet.consumeSpaces(),El(t,r,Tl(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),J({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=wl(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return El(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var Dl=function(e,t,n){var r=Xo($o.math[e]&&$o.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},Ol=function(e,t,n,r){var i=n.havingBaseStyle(t),a=K(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},kl=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=F(i),e.height-=i,e.depth+=i},Al=function(e,t,n,r,i,a){var o=Ol(Vs(e,`Main-Regular`,i,r),t,r,a);return n&&kl(o,r,t),o},jl=function(e,t,n,r){return Vs(e,`Size`+t+`-Regular`,n,r)},Ml=function(e,t,n,r,i,a){var o=jl(e,t,i,r),s=Ol(K([`delimsizing`,`size`+t],[o],r),P.TEXT,r,a);return n&&kl(s,r,P.TEXT),s},Nl=function(e,t,n,r){return{type:`elem`,elem:K([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[K([],[Vs(e,t,n,r)])])}},Pl=function(e,t,n){var r=Ko[`Size4-Regular`][e.charCodeAt(0)]?Ko[`Size4-Regular`][e.charCodeAt(0)][4]:Ko[`Size1-Regular`][e.charCodeAt(0)][4],i=Js([],[new Bo([new Vo(`inner`,bo(e,Math.round(1e3*t)))],{width:F(r),height:F(t),style:`width:`+F(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=F(t),i.style.width=F(r),{type:`elem`,elem:i}},Fl=.008,Il={type:`kern`,size:-1*Fl},Ll=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),Rl=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),zl=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):Ll.has(e)?(c=`∣`,u=`vert`,d=333):Rl.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=Dl(o,f,i),m=p.height+p.depth,h=Dl(c,f,i),g=h.height+h.depth,_=Dl(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=Dl(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,ee=r.fontMetrics().axisHeight;n&&(ee*=r.sizeMultiplier);var te=C/2-ee,ne=[];if(u.length>0){var re=C-m-v,ie=Math.round(C*1e3),w=So(u,Math.round(re*1e3)),ae=new Vo(u,w),oe=F(d/1e3),se=F(ie/1e3),ce=Js([],[new Bo([ae],{width:oe,height:se,viewBox:`0 0 `+d+` `+ie})],r);ce.height=ie/1e3,ce.style.width=oe,ce.style.height=se,ne.push({type:`elem`,elem:ce})}else{if(ne.push(Nl(l,f,i,r)),ne.push(Il),s===null){var le=C-m-v+2*Fl;ne.push(Pl(c,le,r))}else{var ue=(C-m-v-y)/2+2*Fl;ne.push(Pl(c,ue,r)),ne.push(Il),ne.push(Nl(s,f,i,r)),ne.push(Il),ne.push(Pl(c,ue,r))}ne.push(Il),ne.push(Nl(o,f,i,r))}var de=r.havingBaseStyle(P.TEXT);return Ol(K([`delimsizing`,`mult`],[q({positionType:`bottom`,positionData:te,children:ne})],de),P.TEXT,r,a)},Bl=80,Vl=.08,Hl=function(e,t,n,r,i){return Js([`hide-tail`],[new Bo([new Vo(e,yo(e,r,n))],{width:`400em`,height:F(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},Ul=function(e,t){var n=t.havingBaseSizing(),r=$l(`\\surd`,e*n.sizeMultiplier,Zl,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+Bl,e<1?i=1:e<1.4&&(i=.7),s=(1+a+Vl)/i,c=(1+a)/i,o=Hl(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+Bl)*ql[r.size],c=(ql[r.size]+a)/i,s=(ql[r.size]+a+Vl)/i,o=Hl(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+Vl,c=e+a,l=Math.floor(1e3*e+a)+Bl,o=Hl(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=F(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},Wl=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),Gl=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),Kl=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),ql=[0,1.2,1.8,2.4,3],Jl=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),Wl.has(e)||Kl.has(e))return Ml(e,t,!1,n,r,i);if(Gl.has(e))return zl(e,ql[t],!1,n,r,i);throw new N(`Illegal delimiter: '`+e+`'`)},Yl=[{type:`small`,style:P.SCRIPTSCRIPT},{type:`small`,style:P.SCRIPT},{type:`small`,style:P.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],Xl=[{type:`small`,style:P.SCRIPTSCRIPT},{type:`small`,style:P.SCRIPT},{type:`small`,style:P.TEXT},{type:`stack`}],Zl=[{type:`small`,style:P.SCRIPTSCRIPT},{type:`small`,style:P.SCRIPT},{type:`small`,style:P.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],Ql=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},$l=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=Dl(e,Ql(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},eu=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=Kl.has(e)?Yl:Wl.has(e)?Zl:Xl,s=$l(e,t,o,r);return s.type===`small`?Al(e,s.style,n,r,i,a):s.type===`large`?Ml(e,s.size,n,r,i,a):zl(e,t,n,r,i,a)},tu=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return eu(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},nu={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},ru=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function iu(e){return`isMiddle`in e}function au(e,t){var n=sl(e);if(n&&ru.has(n.text))return n;throw n?new N(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new N(`Invalid delimiter type '`+e.type+`'`,e)}J({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],numArgs:1,argTypes:[`primitive`],handler:(e,t)=>{var n=au(mc(t[0]),e);return{type:`delimsizing`,mode:e.parser.mode,size:nu[e.funcName].size,mclass:nu[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?K([e.mclass]):Jl(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(Nc(e.delim,e.mode));var n=new X(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=F(ql[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function ou(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}J({type:`leftright-right`,names:[`\\right`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new N(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:au(t[0],e).text,color:n}}}),J({type:`leftright`,names:[`\\left`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=au(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=Q(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{ou(e);for(var n=bc(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];iu(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?Tc(t,[`mopen`]):tu(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(iu(u)){var d=u.isMiddle;n[l]=tu(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=Tc(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=tu(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),K([`minner`],n,t)},mathmlBuilder:(e,t)=>{ou(e);var n=Rc(e.body,t);if(e.left!==`.`){var r=new X(`mo`,[Nc(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new X(`mo`,[Nc(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return Pc(n)}}),J({type:`middle`,names:[`\\middle`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=au(t[0],e);if(!e.parser.leftrightDepth)throw new N(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=Tc(t,[]):(n=Jl(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new X(`mo`,[e.delim===`\\vert`||e.delim===`|`?Nc(`|`,`text`):Nc(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}}),J({type:`enclose`,names:[`\\colorbox`],numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Q(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:(e,t)=>{var n=Qs(Y(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=Ia(e.body);if(r===`sout`)a=K([`katex-stretchy`,`katex-sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=Oo({number:.6,unit:`pt`},t),l=Oo({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=F(d/2+c);var f=Math.floor(1e3*d*i);a=Js([`hide-tail`],[new Bo([new Vo(`phase`,_o(f))],{width:`400em`,height:F(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=F(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=el(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=F(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=F(h),a.style.borderRightWidth=F(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=q({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=q({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?K([`mord`,`cancel-lap`],[g],t):K([`mord`],[g],t)},mathmlBuilder:(e,t)=>{var n,r=new X(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[Z(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+F(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`);break}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r}}),J({type:`enclose`,names:[`\\fcolorbox`],numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Q(t[0],`color-token`).color,o=Q(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}}}),J({type:`enclose`,names:[`\\fbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\fbox`,body:t[0]}}}),J({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),J({type:`enclose`,names:[`\\sout`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName;n.mode===`math`&&zs({strict:n.settings.strict,errorCode:`mathVsSout`,errorMsg:`LaTeX's \\sout works only in text mode`,report:!0});var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),J({type:`enclose`,names:[`\\angl`],numArgs:1,argTypes:[`hbox`],allowedInText:!1,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\angl`,body:t[0]}}});var su={};function cu(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)su[n[c]]=s;a&&(dc[t]=a),o&&(fc[t]=o)}var lu={};function $(e,t){lu[e]=t}var uu=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},du=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,uu.range(this,t))}};function fu(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var pu=e=>{if(!e.parser.settings.displayMode)throw new N(`{`+e.envName+`} can be used only in display mode.`)},mu=new Set([`gather`,`gather*`]);function hu(e){if(!e.includes(`ed`))return!e.includes(`*`)}function gu(e,t,n){var r=t.hskipBeforeAndAfter,i=t.addJot,a=t.cols,o=t.arraystretch,s=t.colSeparationType,c=t.autoTag,l=t.singleRow,u=t.emptySingleRow,d=t.maxNumCols,f=t.leqno;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new N(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new du(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(fu(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new N(`Too many tab characters: &`,e.nextToken);zs({strict:e.settings.strict,errorCode:`textEnv`,errorMsg:`Too few columns specified in the {array} column argument.`,report:!0})}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&!Array.isArray(v?.[v.length-1])&&!(c&&v?.[v.length-1]===!0)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var ee=void 0;e.gullet.future().text!==` `&&(ee=e.parseSizeGroup(!0)),g.push(ee?ee.value:null),b(),_.push(fu(e)),m=[],h.push(m),y()}else throw new N(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function _u(e){return e.slice(0,1)===`d`?`display`:`text`}var vu=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(P.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?Oo({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var C=Y(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S.cells[r]=C}var ee=e.rowGaps[n],te=0;ee&&(te=Oo(ee,t),te>0&&(te+=g,x<te&&(x=te),te=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+te,s[n]=S,v(a[n+1])}var ne=_/2+t.fontMetrics().axisHeight,re=e.cols||[],ie=[],w,ae,oe=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var se=s[n],ce=se.pos-ne,le=e.tags[n],ue=void 0;ue=le===!0?K([`eqn-num`],[],t):le===!1?K([],[],t):K([],bc(le,t,!0),t),ue.depth=se.depth,ue.height=se.height,oe.push({type:`elem`,elem:ue,shift:ce})}for(r=0,ae=0;r<o||ae<re.length;++r,++ae){for(var de=re[ae],fe=!0;(pe=de)?.type===`separator`;){var pe;if(fe||(w=K([`arraycolsep`],[]),w.style.width=F(t.fontMetrics().doubleRuleSep),ie.push(w)),de.separator===`|`||de.separator===`:`){var me=de.separator===`|`?`solid`:`dashed`,he=K([`vertical-separator`],[],t);he.style.height=F(_),he.style.borderRightWidth=F(l),he.style.borderRightStyle=me,he.style.margin=`0 `+F(-l/2);var ge=_-ne;ge&&(he.style.verticalAlign=F(-ge)),ie.push(he)}else throw new N(`Invalid separator type: `+de.separator);ae++,de=re[ae],fe=!1}if(!(r>=o)){var T=void 0;(r>0||e.hskipBeforeAndAfter)&&(T=de?.pregap??d,T!==0&&(w=K([`arraycolsep`],[]),w.style.width=F(T),ie.push(w)));var _e=[];for(n=0;n<i;++n){var ve=s[n],ye=ve.cells[r];if(ye){var be=ve.pos-ne;ye.depth=ve.depth,ye.height=ve.height,_e.push({type:`elem`,elem:ye,shift:be})}}var xe=q({positionType:`individualShift`,children:_e}),Se=K([`col-align-`+(de?.align||`c`)],[xe]);ie.push(Se),(r<o-1||e.hskipBeforeAndAfter)&&(T=de?.postgap??d,T!==0&&(w=K([`arraycolsep`],[]),w.style.width=F(T),ie.push(w)))}}var Ce=K([`mtable`],ie);if(c.length>0){for(var we=Ys(`katex-hline`,t,l),Te=Ys(`katex-hdashline`,t,l),Ee=[{type:`elem`,elem:Ce,shift:0}];c.length>0;){var De=c.pop(),Oe=De.pos-ne;De.isDashed?Ee.push({type:`elem`,elem:Te,shift:Oe}):Ee.push({type:`elem`,elem:we,shift:Oe})}Ce=q({positionType:`individualShift`,children:Ee})}if(oe.length===0)return K([`mord`],[Ce],t);var ke=K([`katex-tag`],[q({positionType:`individualShift`,children:oe})],t);return Zs([Ce,ke])},yu={c:`center `,l:`left `,r:`right `},bu=function(e,t){for(var n=[],r=new X(`mtd`,[],[`mtr-glue`]),i=new X(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new X(`mtd`,[Z(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new X(`mtr`,s))}var l=new X(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,F(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=yu[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,ee=e.hLinesBeforeRow;d+=ee[0].length>0?`left `:``,d+=ee[ee.length-1].length>0?`right `:``;for(var te=1;te<ee.length-1;te++)C+=ee[te].length===0?`none `:ee[te][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new X(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new X(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},xu=function(e,t){e.envName.includes(`ed`)||pu(e);var n=[],r=e.envName===`split`,i=gu(e.parser,{cols:n,addJot:!0,autoTag:r?void 0:hu(e.envName),emptySingleRow:!0,colSeparationType:e.envName.includes(`at`)?`alignat`:`align`,maxNumCols:r?2:void 0,leqno:e.parser.settings.leqno},`display`),a=0,o=0,s={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){var c=`Number of columns should be a positive integer`,l=cl(t[0],c);if(!/^[0-9]+$/.test(l)||Number(l)<1)throw new N(c,t[0]);a=Number(l),o=a*2}var u=!o;i.body.forEach(function(e){for(var t=1;t<e.length;t+=2)Q(Q(e[t],`styling`).body[0],`ordgroup`).body.unshift(s);if(u)o<e.length&&(o=e.length);else{var n=e.length/2;if(a<n)throw new N(`Too many math in a row: `+(`expected `+a+`, but got `+n),e[0])}});for(var d=0;d<o;++d){var f=`r`,p=0;d%2==1?f=`l`:d>0&&u&&(p=1),n[d]={type:`align`,align:f,pregap:p,postgap:0}}return i.colSeparationType=u?`align`:`alignat`,i};cu({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(sl(t[0])?[t[0]]:Q(t[0],`ordgroup`).body).map(function(e){var t=ol(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new N(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return gu(e.parser,r,_u(e.envName))},htmlBuilder:vu,mathmlBuilder:bu}),cu({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new N(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=gu(e.parser,r,_u(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:vu,mathmlBuilder:bu}),cu({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=gu(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:vu,mathmlBuilder:bu}),cu({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(sl(t[0])?[t[0]]:Q(t[0],`ordgroup`).body).map(function(e){var t=ol(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new N(`Unknown column alignment: `+t,e)});if(n.length>1)throw new N(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=gu(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new N(`{subarray} can contain only one column`);return i},htmlBuilder:vu,mathmlBuilder:bu}),cu({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=gu(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},_u(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:vu,mathmlBuilder:bu}),cu({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:xu,htmlBuilder:vu,mathmlBuilder:bu}),cu({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){mu.has(e.envName)&&pu(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:hu(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return gu(e.parser,t,`display`)},htmlBuilder:vu,mathmlBuilder:bu}),cu({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:xu,htmlBuilder:vu,mathmlBuilder:bu}),cu({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){pu(e);var t={autoTag:hu(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return gu(e.parser,t,`display`)},htmlBuilder:vu,mathmlBuilder:bu}),cu({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return pu(e),Sl(e.parser)},htmlBuilder:vu,mathmlBuilder:bu}),$(`\\nonumber`,`\\gdef\\@eqnsw{0}`),$(`\\notag`,`\\nonumber`),J({type:`text`,names:[`\\hline`,`\\hdashline`],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,t){throw new N(e.funcName+` valid only within array environment`)}});var Su=su;J({type:`environment`,names:[`\\begin`,`\\end`],numArgs:1,argTypes:[`text`],handler(e,t){var n=e.parser,r=e.funcName,i=t[0];if(i.type!==`ordgroup`)throw new N(`Invalid environment name`,i);var a=cl(i,`Environment name should contain only text characters and spaces`,!0);if(r===`\\begin`){if(!Object.prototype.hasOwnProperty.call(Su,a))throw new N(`No such environment: `+a,i);var o=Su[a],s=n.parseArguments(`\\begin{`+a+`}`,o),c=s.args,l=s.optArgs,u={mode:n.mode,envName:a,parser:n},d=o.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=Q(n.parseFunction(),`environment`);if(p.name!==a)throw new N(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var Cu=(e,t)=>{var n=e.font,r=t.withFont(n);return Y(e.body,r)},wu=(e,t)=>{var n=e.font,r=t.withFont(n);return Z(e.body,r)},Tu={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};J({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],numArgs:1,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=mc(t[0]),a=r in Tu?Tu[r]:r;return{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Cu,mathmlBuilder:wu}),J({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`mclass`,mode:n.mode,mclass:gl(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:Ia(r)}}}),J({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=e.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}}});var Eu=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Y(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=Y(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=Oo(e.barSize,t),u=Ys(`frac-line`,t,d)):u=Ys(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===P.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=q({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=q({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===P.DISPLAY.size?t.fontMetrics().delim1:n.size===P.SCRIPTSCRIPT.size?t.havingStyle(P.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?Tc(t,[`mopen`]):eu(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?K([]):e.rightDelim==null?Tc(t,[`mclose`]):eu(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return K([`mord`].concat(a.sizingClasses(t)),[x,K([`mfrac`],[g]),S],t)},Du=(e,t)=>{var n=new X(`mfrac`,[Z(e.numer,t),Z(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=Oo(e.barSize,t);n.setAttribute(`linethickness`,F(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new X(`mo`,[new kc(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new X(`mo`,[new kc(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return Pc(i)}return n},Ou=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;J({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],numArgs:2,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),Ou({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:Eu,mathmlBuilder:Du}),J({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],numArgs:0,infix:!0,handler(e){var t=e.parser,n=e.funcName,r=e.token,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var ku=[`display`,`text`,`script`,`scriptscript`],Au=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};J({type:`genfrac`,names:[`\\genfrac`],numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`],handler(e,t){var n=e.parser,r=t[4],i=t[5],a=mc(t[0]),o=a.type===`atom`&&a.family===`open`?Au(a.text):null,s=mc(t[1]),c=s.type===`atom`&&s.family===`close`?Au(s.text):null,l=Q(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=Q(p.body[0],`textord`);f=ku[Number(m.text)]}}else p=Q(p,`textord`),f=ku[Number(p.text)];return Ou({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),J({type:`infix`,names:[`\\above`],numArgs:1,argTypes:[`size`],infix:!0,handler(e,t){var n=e.parser;e.funcName;var r=e.token;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:Q(t[0],`size`).value,token:r}}}),J({type:`genfrac`,names:[`\\\\abovefrac`],numArgs:3,argTypes:[`math`,`size`,`math`],handler:(e,t)=>{var n=e.parser;e.funcName;var r=t[0],i=Q(t[1],`infix`).size;if(!i)throw Error(`\\\\abovefrac expected size, but got `+String(i));var a=t[2],o=i.number>0;return{type:`genfrac`,mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}});var ju=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Y(e.sup,t.havingStyle(n.sup()),t):Y(e.sub,t.havingStyle(n.sub()),t),i=Q(e.base,`horizBrace`)):i=Q(e,`horizBrace`);var a=Y(i.base,t.havingBaseStyle(P.DISPLAY)),o=$c(i,t),s=i.isOver?q({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):q({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=K([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?q({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):q({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return K([`minner`,i.isOver?`mover`:`munder`],[s],t)};J({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:ju,mathmlBuilder:(e,t)=>{var n=Xc(e.label);return new X(e.isOver?`mover`:`munder`,[Z(e.base,t),n])}}),J({type:`href`,names:[`\\href`],numArgs:2,argTypes:[`url`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[1],i=Q(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:hc(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=bc(e.body,t,!1);return Xs(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=zc(e.body,t);return n instanceof X||(n=new X(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),J({type:`href`,names:[`\\url`],numArgs:1,argTypes:[`url`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=Q(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:hc(s)}}}),J({type:`hbox`,names:[`\\hbox`],numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0,handler(e,t){return{type:`hbox`,mode:e.parser.mode,body:hc(t[0])}},htmlBuilder(e,t){return Zs(bc(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new X(`mrow`,Rc(e.body,t.withFont(``)))}}),J({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName;e.token;var i=Q(t[0],`raw`).string,a=t[1];n.settings.strict&&zs({strict:n.settings.strict,errorCode:`htmlExtension`,errorMsg:`HTML extension is disabled on strict mode`,report:!0});var o,s={};switch(r){case`\\htmlClass`:s.class=i,o={command:`\\htmlClass`,class:i};break;case`\\htmlId`:s.id=i,o={command:`\\htmlId`,id:i};break;case`\\htmlStyle`:s.style=i,o={command:`\\htmlStyle`,style:i};break;case`\\htmlData`:for(var c=`{,}`,l=[],u=``,d=0;d<i.length;d++)i.startsWith(c,d)?(u+=`,`,d+=c.length-1):i[d]===`,`?(l.push(u),u=``):u+=i[d];l.push(u);for(var f=0;f<l.length;f++){var p=l[f],m=p.indexOf(`=`);if(m<0)throw new N(`\\htmlData key/value '`+p+`' missing equals sign`);var h=p.slice(0,m),g=p.slice(m+1);s[`data-`+h.trim()]=g}o={command:`\\htmlData`,attributes:s};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(o)?{type:`html`,mode:n.mode,attributes:s,body:hc(a)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=bc(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=K(r,n,t);for(var a of Object.entries(e.attributes)){var o=a[0],s=a[1];o!==`class`&&i.setAttribute(o,s)}return i},mathmlBuilder:(e,t)=>zc(e.body,t)}),J({type:`htmlmathml`,names:[`\\html@mathml`],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,t)=>({type:`htmlmathml`,mode:e.parser.mode,html:hc(t[0]),mathml:hc(t[1])}),htmlBuilder:(e,t)=>Zs(bc(e.html,t,!1)),mathmlBuilder:(e,t)=>zc(e.mathml,t)});var Mu=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new N(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!Do(n))throw new N(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};J({type:`includegraphics`,names:[`\\includegraphics`],numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1,handler:(e,t,n)=>{var r=e.parser,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=Q(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=Mu(d);break;case`height`:a=Mu(d);break;case`totalheight`:o=Mu(d);break;default:throw new N(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=Q(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=Oo(e.height,t),r=0;e.totalheight.number>0&&(r=Oo(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Oo(e.width,t));var a={height:F(n+r)};i>0&&(a.width=F(i)),r>0&&(a.verticalAlign=F(-r));var o=new Lo(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new X(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=Oo(e.height,t),i=0;if(e.totalheight.number>0&&(i=Oo(e.totalheight,t)-r,n.setAttribute(`valign`,F(-i))),n.setAttribute(`height`,F(r+i)),e.width.number>0){var a=Oo(e.width,t);n.setAttribute(`width`,F(a))}return n.setAttribute(`src`,e.src),n}}),J({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=Q(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||zs({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`),report:!0}),n.mode!==`math`&&zs({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` works only in math mode`,report:!0})):o&&zs({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` doesn't support mu units`,report:!0})}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return ec(e.dimension,t)},mathmlBuilder(e,t){return new Ac(Oo(e.dimension,t))}}),J({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=K([],[Y(e.body,t)]),n=K([`katex-inner`],[n],t)):n=K([`katex-inner`],[Y(e.body,t)]);var r=K([`katex-fix`],[]),i=K([e.alignment],[n,r],t),a=K([`katex-strut`]);return a.style.height=F(i.height+i.depth),i.depth&&(a.style.verticalAlign=F(-i.depth)),i.children.unshift(a),i=K([`katex-thinbox`],[i],t),K([`mord`,`katex-vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[Z(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),J({type:`styling`,names:[`\\(`,`$`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),J({type:`text`,names:[`\\)`,`\\]`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){throw new N(`Mismatched `+e.funcName)}});var Nu=(e,t)=>{switch(t.style.size){case P.DISPLAY.size:return e.display;case P.TEXT.size:return e.text;case P.SCRIPT.size:return e.script;case P.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};J({type:`mathchoice`,names:[`\\mathchoice`],numArgs:4,primitive:!0,handler:(e,t)=>({type:`mathchoice`,mode:e.parser.mode,display:hc(t[0]),text:hc(t[1]),script:hc(t[2]),scriptscript:hc(t[3])}),htmlBuilder:(e,t)=>Zs(bc(Nu(e,t),t,!1)),mathmlBuilder:(e,t)=>zc(Nu(e,t),t)});var Pu=(e,t,n,r,i,a,o)=>{e=K([],[e]);var s=n&&Ia(n),c,l;if(t){var u=Y(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Y(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=q({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:F(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:F(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=q({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:F(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=q({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:F(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=K([`mspace`],[],r);m.style.marginRight=F(a),p.unshift(m)}return K([`mop`,`op-limits`],p,r)},Fu=new Set([`\\smallint`]),Iu=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Q(e.base,`op`),i=!0):a=Q(e,`op`);var o=t.style,s=!1;o.size===P.DISPLAY.size&&a.symbol&&!Fu.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=Vs(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=ic(d+`Size`+(s?`2`:`1`),t);c=q({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=bc(a.body,t,!0);p.length===1&&p[0]instanceof zo?(c=p[0],c.classes[0]=`mop`):c=K([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(Hs(a.name[h],a.mode,t));c=K([`mop`],m,t)}var g=0,_=0;return(c instanceof zo||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?Pu(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=F(g)),c)},Lu=(e,t)=>{var n;if(e.symbol)n=new X(`mo`,[Nc(e.name,e.mode)]),Fu.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new X(`mo`,Rc(e.body,t));else{n=new X(`mi`,[new kc(e.name.slice(1))]);var r=new X(`mo`,[Nc(`⁡`,`text`)]);n=e.parentIsSupSub?new X(`mrow`,[n,r]):Oc([n,r])}return n},Ru={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};J({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),numArgs:0,handler:(e,t)=>{var n=e.parser,r=e.funcName;return r.length===1&&(r=Ru[r]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Iu,mathmlBuilder:Lu}),J({type:`op`,names:[`\\mathop`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:hc(r)}}});var zu={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};J({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}}}),J({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}}}),J({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],numArgs:0,allowedInArgument:!0,handler(e){var t=e.parser,n=e.funcName;return n.length===1&&(n=zu[n]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var Bu=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Q(e.base,`operatorname`),i=!0):a=Q(e,`operatorname`);var o;if(a.body.length>0){for(var s=bc(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof zo&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=K([`mop`],s,t)}else o=K([`mop`],[],t);return i?Pu(o,n,r,t,t.style,0,0):o};J({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`operatorname`,mode:n.mode,body:hc(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:Bu,mathmlBuilder:(e,t)=>{for(var n=Rc(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof Ac))if(a instanceof X)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof kc?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}r&&(n=[new kc(n.map(e=>e.toText()).join(``))]);var s=new X(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new X(`mo`,[Nc(`⁡`,`text`)]);return e.parentIsSupSub?new X(`mrow`,[s,c]):Oc([s,c])}}),$(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),pc({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?Zs(bc(e.body,t,!1)):K([`mord`],bc(e.body,t,!0),t)},mathmlBuilder(e,t){return zc(e.body,t,!0)}}),J({type:`overline`,names:[`\\overline`],numArgs:1,handler(e,t){var n=e.parser,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=Y(e.body,t.havingCrampedStyle()),r=Ys(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return K([`mord`,`katex-overline`],[q({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new X(`mo`,[new kc(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`mover`,[Z(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),J({type:`phantom`,names:[`\\phantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`phantom`,mode:n.mode,body:hc(r)}},htmlBuilder:(e,t)=>Zs(bc(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new X(`mphantom`,Rc(e.body,t))}),$(`\\hphantom`,`\\smash{\\phantom{#1}}`),J({type:`vphantom`,names:[`\\vphantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>K([`mord`,`rlap`],[K([`katex-inner`],[Y(e.body,t.withPhantom())]),K([`katex-fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[new X(`mphantom`,Rc(hc(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),J({type:`raisebox`,names:[`\\raisebox`],numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0,handler(e,t){var n=e.parser,r=Q(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Y(e.body,t);return q({positionType:`shift`,positionData:-Oo(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new X(`mpadded`,[Z(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}});var Vu=(e,t)=>({type:`reflectbox`,mode:e.parser.mode,body:t[0]});J({type:`reflectbox`,names:[`\\reflectbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler:Vu,htmlBuilder(e,t){return K([`mord`,`reflectbox`],[Y(e.body,t)],t)},mathmlBuilder(e,t){return Z(e.body,t)}}),J({type:`reflectbox`,names:[`\\mathreflectbox`],numArgs:1,argTypes:[`math`],handler:Vu}),J({type:`internal`,names:[`\\relax`],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){return{type:`internal`,mode:e.parser.mode}}}),J({type:`rule`,names:[`\\rule`],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`],handler(e,t,n){var r=e.parser,i=n[0],a=Q(t[0],`size`),o=Q(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&Q(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=K([`mord`,`katex-rule`],[],t),r=Oo(e.width,t),i=Oo(e.height,t),a=e.shift?Oo(e.shift,t):0;return n.style.borderRightWidth=F(r),n.style.borderTopWidth=F(i),n.style.bottom=F(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Oo(e.width,t),r=Oo(e.height,t),i=e.shift?Oo(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new X(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,F(n)),o.setAttribute(`height`,F(r));var s=new X(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,F(i)):(s.setAttribute(`height`,F(i)),s.setAttribute(`depth`,F(-i))),s.setAttribute(`voffset`,F(i)),s}});function Hu(e,t,n){for(var r=bc(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`katex-sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return Zs(r)}var Uu=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];J({type:`sizing`,names:Uu,numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:Uu.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return Hu(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new X(`mstyle`,Rc(e.body,n));return r.setAttribute(`mathsize`,F(n.sizeMultiplier)),r}}),J({type:`smash`,names:[`\\smash`],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,t,n)=>{var r=e.parser,i=!1,a=!1,o=n[0]&&Q(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=ol(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=K([],[Y(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return K([`mord`,`katex-smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return K([`mord`],[q({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[Z(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),J({type:`sqrt`,names:[`\\sqrt`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Y(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Qs(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<P.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,o=Ul(n.height+n.depth+a+r,t),s=o.span,c=o.ruleWidth,l=o.advanceWidth,u=s.height-c;u>n.height+n.depth+a&&(a=(a+u-n.height-n.depth)/2);var d=s.height-n.height-a-c;n.style.paddingLeft=F(l);var f=q({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+d)},{type:`elem`,elem:s},{type:`kern`,size:c}]});if(e.index){var p=t.havingStyle(P.SCRIPTSCRIPT),m=Y(e.index,p,t);return K([`mord`,`sqrt`],[K([`katex-root`],[q({positionType:`shift`,positionData:-(.6*(f.height-f.depth)),children:[{type:`elem`,elem:m}]})]),f],t)}else return K([`mord`,`sqrt`],[f],t)},mathmlBuilder(e,t){var n=e.body,r=e.index;return r?new X(`mroot`,[Z(n,t),Z(r,t)]):new X(`msqrt`,[Z(n,t)])}});var Wu={display:P.DISPLAY,text:P.TEXT,script:P.SCRIPT,scriptscript:P.SCRIPTSCRIPT};function Gu(e){return e in Wu}J({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],numArgs:0,allowedInText:!0,primitive:!0,handler(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!Gu(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=Wu[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),Hu(e.body,r,t)},mathmlBuilder(e,t){var n=Wu[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new X(`mstyle`,Rc(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var Ku=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===P.DISPLAY.size||n.alwaysHandleSupSub)?Iu:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===P.DISPLAY.size||n.limits)?Bu:null:n.type===`accent`?Ia(n.base)?ul:null:n.type===`horizBrace`&&!e.sub===n.isOver?ju:null:null};pc({type:`supsub`,htmlBuilder(e,t){var n=Ku(e,t);if(n)return n(e,t);var r=e.base,i=e.sup,a=e.sub,o=Y(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&Ia(r);if(i){var p=t.havingStyle(t.style.sup());s=Y(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=Y(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===P.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=F(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof zo||y)&&(v=F(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=q({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=q({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=q({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return K([wc(o,`right`)||`mord`],[o,K([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[Z(e.base,t)];e.sub&&a.push(Z(e.sub,t)),e.sup&&a.push(Z(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===P.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===P.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===P.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===P.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===P.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===P.DISPLAY)?`munder`:`msub`}return new X(o,a)}}),pc({type:`atom`,htmlBuilder(e,t){return Hs(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new X(`mo`,[Nc(e.text,e.mode)]);if(e.family===`bin`){var r=Ic(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var qu={mi:`italic`,mn:`normal`,mtext:`normal`};pc({type:`mathord`,htmlBuilder(e,t){return Ws(e,t)},mathmlBuilder(e,t){var n=new X(`mi`,[Nc(e.text,e.mode,t)]),r=Ic(e,t)||`italic`;return r!==qu[n.type]&&n.setAttribute(`mathvariant`,r),n}}),pc({type:`textord`,htmlBuilder(e,t){return Ws(e,t)},mathmlBuilder(e,t){var n=Nc(e.text,e.mode,t),r=Ic(e,t)||`normal`,i=e.mode===`text`?new X(`mtext`,[n]):/[0-9]/.test(e.text)?new X(`mn`,[n]):e.text===`\\prime`?new X(`mo`,[n]):new X(`mi`,[n]);return r!==qu[i.type]&&i.setAttribute(`mathvariant`,r),i}});var Ju=new Map([[`\\nobreak`,`nobreak`],[`\\allowbreak`,`allowbreak`]]),Yu=new Map([[` `,{}],[`\\ `,{}],[`~`,{className:`nobreak`}],[`\\space`,{}],[`\\nobreakspace`,{className:`nobreak`}]]);pc({type:`spacing`,htmlBuilder(e,t){var n=Yu.get(e.text),r=Ju.get(e.text);if(n){var i=n.className||``;if(e.mode===`text`){var a=Ws(e,t);return a.classes.push(i),a}else return K([`mspace`,i],[Hs(e.text,e.mode,t)],t)}else if(r)return K([`mspace`,r],[],t);else throw new N(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(Yu.has(e.text))n=new X(`mtext`,[new kc(`\xA0`)]);else if(Ju.has(e.text))return new X(`mspace`);else throw new N(`Unknown type of space "`+e.text+`"`);return n}});var Xu=()=>{var e=new X(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};pc({type:`tag`,mathmlBuilder(e,t){var n=new X(`mtable`,[new X(`mtr`,[Xu(),new X(`mtd`,[zc(e.body,t)]),Xu(),new X(`mtd`,[zc(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var Zu={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},Qu={"\\textbf":`textbf`,"\\textmd":`textmd`},$u={"\\textit":`textit`,"\\textup":`textup`},ed=(e,t)=>{var n=e.font;return n?Zu[n]?t.withTextFontFamily(Zu[n]):Qu[n]?t.withTextFontWeight(Qu[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape($u[n]):t};J({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`text`,mode:n.mode,body:hc(i),font:r}},htmlBuilder(e,t){var n=ed(e,t);return K([`mord`,`text`],bc(e.body,n,!0),n)},mathmlBuilder(e,t){var n=ed(e,t);return zc(e.body,n)}}),J({type:`underline`,names:[`\\underline`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`underline`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Y(e.body,t),r=Ys(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return K([`mord`,`katex-underline`],[q({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new X(`mo`,[new kc(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`munder`,[Z(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),J({type:`vcenter`,names:[`\\vcenter`],numArgs:1,argTypes:[`original`],allowedInText:!1,handler(e,t){return{type:`vcenter`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Y(e.body,t),r=t.fontMetrics().axisHeight;return q({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new X(`mrow`,[new X(`mpadded`,[Z(e.body,t)],[`vcenter`])])}}),J({type:`verb`,names:[`\\verb`],numArgs:0,allowedInText:!0,handler(e,t,n){throw new N(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=td(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(Vs(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return K([`mord`,`text`].concat(i.sizingClasses(t)),Ks(r),i)},mathmlBuilder(e,t){var n=new X(`mtext`,[new kc(td(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var td=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),nd=uc,rd=`[ \r
320
+ ]`,id=`\\\\[a-zA-Z@]+`,ad=`\\\\[^\ud800-\udfff]`,od=`(`+id+`)`+rd+`*`,sd=`\\\\(
321
321
  |[ \r ]+
322
- ?)[ \r ]*`,$u=`[̀-ͯ]`,ed=RegExp($u+`+$`),td=`(`+Ju+`+)|`+(Qu+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+($u+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+($u+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+Zu)+(`|`+Xu+`)`),nd=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(td,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new nu(`EOF`,new tu(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new N(`Unexpected character: '`+e[t]+`'`,new nu(e[t],new tu(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
323
- `,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,As({strict:this.settings.strict,errorCode:`commentAtEnd`,errorMsg:`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`,report:!0})):this.tokenRegex.lastIndex=i+1,this.lex()}return new nu(r,new tu(this,t,this.tokenRegex.lastIndex))}},rd=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new N(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t of Object.keys(e))e[t]===void 0?delete this.current[t]:this.current[t]=e[t]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){if(Object.prototype.hasOwnProperty.call(this.current,e))return this.current[e];if(Object.prototype.hasOwnProperty.call(this.builtins,e))return this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}t==null?delete this.current[e]:this.current[e]=t}},id=eu;$(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),$(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),$(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),$(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),$(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),$(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),$(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var ad={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};$(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new N("\\char` missing argument");else r=t.text.charCodeAt(0);else n=10;if(n){if(r=ad[t.text],r==null||r>=n)throw new N(`Invalid base-`+n+` digit `+t.text);for(var i;(i=ad[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var od=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new N(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new N(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new N(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new N(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};$(`\\newcommand`,e=>od(e,!1,!0,!1)),$(`\\renewcommand`,e=>od(e,!0,!1,!1)),$(`\\providecommand`,e=>od(e,!0,!0,!0)),$(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),$(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),$(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),qu[n],Wo.math[n],Wo.text[n]),``}),$(`\\bgroup`,`{`),$(`\\egroup`,`}`),$(`~`,`\\nobreakspace`),$(`\\lq`,"`"),$(`\\rq`,`'`),$(`\\aa`,`\\r a`),$(`\\AA`,`\\r A`),$(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),$(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),$(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),$(`ℬ`,`\\mathscr{B}`),$(`ℰ`,`\\mathscr{E}`),$(`ℱ`,`\\mathscr{F}`),$(`ℋ`,`\\mathscr{H}`),$(`ℐ`,`\\mathscr{I}`),$(`ℒ`,`\\mathscr{L}`),$(`ℳ`,`\\mathscr{M}`),$(`ℛ`,`\\mathscr{R}`),$(`ℭ`,`\\mathfrak{C}`),$(`ℌ`,`\\mathfrak{H}`),$(`ℨ`,`\\mathfrak{Z}`),$(`\\Bbbk`,`\\Bbb{k}`),$(`\\llap`,`\\mathllap{\\textrm{#1}}`),$(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),$(`\\clap`,`\\mathclap{\\textrm{#1}}`),$(`\\mathstrut`,`\\vphantom{(}`),$(`\\underbar`,`\\underline{\\text{#1}}`),$(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),$(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),$(`\\ne`,`\\neq`),$(`≠`,`\\neq`),$(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),$(`∉`,`\\notin`),$(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),$(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),$(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),$(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),$(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),$(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),$(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),$(`⟂`,`\\perp`),$(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),$(`∌`,`\\notni`),$(`⌜`,`\\ulcorner`),$(`⌝`,`\\urcorner`),$(`⌞`,`\\llcorner`),$(`⌟`,`\\lrcorner`),$(`©`,`\\copyright`),$(`®`,`\\textregistered`),$(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),$(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),$(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),$(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),$(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),$(`⋮`,`\\vdots`),$(`\\varGamma`,`\\mathit{\\Gamma}`),$(`\\varDelta`,`\\mathit{\\Delta}`),$(`\\varTheta`,`\\mathit{\\Theta}`),$(`\\varLambda`,`\\mathit{\\Lambda}`),$(`\\varXi`,`\\mathit{\\Xi}`),$(`\\varPi`,`\\mathit{\\Pi}`),$(`\\varSigma`,`\\mathit{\\Sigma}`),$(`\\varUpsilon`,`\\mathit{\\Upsilon}`),$(`\\varPhi`,`\\mathit{\\Phi}`),$(`\\varPsi`,`\\mathit{\\Psi}`),$(`\\varOmega`,`\\mathit{\\Omega}`),$(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),$(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),$(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),$(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),$(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),$(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),$(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),$(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var sd={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},cd=new Set([`bin`,`rel`]);$(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in sd?t=sd[n]:(n.slice(0,4)===`\\not`||n in Wo.math&&cd.has(Wo.math[n].group))&&(t=`\\dotsb`),t});var ld={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};$(`\\dotso`,function(e){return e.future().text in ld?`\\ldots\\,`:`\\ldots`}),$(`\\dotsc`,function(e){var t=e.future().text;return t in ld&&t!==`,`?`\\ldots\\,`:`\\ldots`}),$(`\\cdots`,function(e){return e.future().text in ld?`\\@cdots\\,`:`\\@cdots`}),$(`\\dotsb`,`\\cdots`),$(`\\dotsm`,`\\cdots`),$(`\\dotsi`,`\\!\\cdots`),$(`\\dotsx`,`\\ldots\\,`),$(`\\DOTSI`,`\\relax`),$(`\\DOTSB`,`\\relax`),$(`\\DOTSX`,`\\relax`),$(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),$(`\\,`,`\\tmspace+{3mu}{.1667em}`),$(`\\thinspace`,`\\,`),$(`\\>`,`\\mskip{4mu}`),$(`\\:`,`\\tmspace+{4mu}{.2222em}`),$(`\\medspace`,`\\:`),$(`\\;`,`\\tmspace+{5mu}{.2777em}`),$(`\\thickspace`,`\\;`),$(`\\!`,`\\tmspace-{3mu}{.1667em}`),$(`\\negthinspace`,`\\!`),$(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),$(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),$(`\\enspace`,`\\kern.5em `),$(`\\enskip`,`\\hskip.5em\\relax`),$(`\\quad`,`\\hskip1em\\relax`),$(`\\qquad`,`\\hskip2em\\relax`),$(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),$(`\\tag@paren`,`\\tag@literal{({#1})}`),$(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new N(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),$(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),$(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),$(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),$(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),$(`\\newline`,`\\\\\\relax`),$(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var ud=F(Lo[`Main-Regular`][84][1]-.7*Lo[`Main-Regular`][65][1]);$(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+ud+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),$(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+ud+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),$(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),$(`\\@hspace`,`\\hskip #1\\relax`),$(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),$(`\\ordinarycolon`,`:`),$(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),$(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),$(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),$(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),$(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),$(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),$(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),$(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),$(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),$(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),$(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),$(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),$(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),$(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),$(`∷`,`\\dblcolon`),$(`∹`,`\\eqcolon`),$(`≔`,`\\coloneqq`),$(`≕`,`\\eqqcolon`),$(`⩴`,`\\Coloneqq`),$(`\\ratio`,`\\vcentcolon`),$(`\\coloncolon`,`\\dblcolon`),$(`\\colonequals`,`\\coloneqq`),$(`\\coloncolonequals`,`\\Coloneqq`),$(`\\equalscolon`,`\\eqqcolon`),$(`\\equalscoloncolon`,`\\Eqqcolon`),$(`\\colonminus`,`\\coloneq`),$(`\\coloncolonminus`,`\\Coloneq`),$(`\\minuscolon`,`\\eqcolon`),$(`\\minuscoloncolon`,`\\Eqcolon`),$(`\\coloncolonapprox`,`\\Colonapprox`),$(`\\coloncolonsim`,`\\Colonsim`),$(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),$(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),$(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),$(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),$(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),$(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),$(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),$(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),$(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),$(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),$(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),$(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),$(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),$(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),$(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),$(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),$(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),$(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),$(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),$(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),$(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),$(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),$(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),$(`\\imath`,`\\html@mathml{\\@imath}{ı}`),$(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),$(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),$(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),$(`⟦`,`\\llbracket`),$(`⟧`,`\\rrbracket`),$(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),$(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),$(`↤`,`\\mapsfrom`),$(`\\mapsfrom`,"\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}"),$(`⦃`,`\\lBrace`),$(`⦄`,`\\rBrace`),$(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),$(`⦵`,`\\minuso`),$(`\\darr`,`\\downarrow`),$(`\\dArr`,`\\Downarrow`),$(`\\Darr`,`\\Downarrow`),$(`\\lang`,`\\langle`),$(`\\rang`,`\\rangle`),$(`\\uarr`,`\\uparrow`),$(`\\uArr`,`\\Uparrow`),$(`\\Uarr`,`\\Uparrow`),$(`\\N`,`\\mathbb{N}`),$(`\\R`,`\\mathbb{R}`),$(`\\Z`,`\\mathbb{Z}`),$(`\\alef`,`\\aleph`),$(`\\alefsym`,`\\aleph`),$(`\\Alpha`,`\\mathrm{A}`),$(`\\Beta`,`\\mathrm{B}`),$(`\\bull`,`\\bullet`),$(`\\Chi`,`\\mathrm{X}`),$(`\\clubs`,`\\clubsuit`),$(`\\cnums`,`\\mathbb{C}`),$(`\\Complex`,`\\mathbb{C}`),$(`\\Dagger`,`\\ddagger`),$(`\\diamonds`,`\\diamondsuit`),$(`\\empty`,`\\emptyset`),$(`\\Epsilon`,`\\mathrm{E}`),$(`\\Eta`,`\\mathrm{H}`),$(`\\exist`,`\\exists`),$(`\\harr`,`\\leftrightarrow`),$(`\\hArr`,`\\Leftrightarrow`),$(`\\Harr`,`\\Leftrightarrow`),$(`\\hearts`,`\\heartsuit`),$(`\\image`,`\\Im`),$(`\\infin`,`\\infty`),$(`\\Iota`,`\\mathrm{I}`),$(`\\isin`,`\\in`),$(`\\Kappa`,`\\mathrm{K}`),$(`\\larr`,`\\leftarrow`),$(`\\lArr`,`\\Leftarrow`),$(`\\Larr`,`\\Leftarrow`),$(`\\lrarr`,`\\leftrightarrow`),$(`\\lrArr`,`\\Leftrightarrow`),$(`\\Lrarr`,`\\Leftrightarrow`),$(`\\Mu`,`\\mathrm{M}`),$(`\\natnums`,`\\mathbb{N}`),$(`\\Nu`,`\\mathrm{N}`),$(`\\Omicron`,`\\mathrm{O}`),$(`\\plusmn`,`\\pm`),$(`\\rarr`,`\\rightarrow`),$(`\\rArr`,`\\Rightarrow`),$(`\\Rarr`,`\\Rightarrow`),$(`\\real`,`\\Re`),$(`\\reals`,`\\mathbb{R}`),$(`\\Reals`,`\\mathbb{R}`),$(`\\Rho`,`\\mathrm{P}`),$(`\\sdot`,`\\cdot`),$(`\\sect`,`\\S`),$(`\\spades`,`\\spadesuit`),$(`\\sub`,`\\subset`),$(`\\sube`,`\\subseteq`),$(`\\supe`,`\\supseteq`),$(`\\Tau`,`\\mathrm{T}`),$(`\\thetasym`,`\\vartheta`),$(`\\weierp`,`\\wp`),$(`\\Zeta`,`\\mathrm{Z}`),$(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),$(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),$(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),$(`\\bra`,`\\mathinner{\\langle{#1}|}`),$(`\\ket`,`\\mathinner{|{#1}\\rangle}`),$(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),$(`\\Bra`,`\\left\\langle#1\\right|`),$(`\\Ket`,`\\left|#1\\right\\rangle`);var dd=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};$(`\\bra@ket`,dd(!1)),$(`\\bra@set`,dd(!0)),$(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),$(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),$(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),$(`\\angln`,`{\\angl n}`),$(`\\blue`,`\\textcolor{##6495ed}{#1}`),$(`\\orange`,`\\textcolor{##ffa500}{#1}`),$(`\\pink`,`\\textcolor{##ff00af}{#1}`),$(`\\red`,`\\textcolor{##df0030}{#1}`),$(`\\green`,`\\textcolor{##28ae7b}{#1}`),$(`\\gray`,`\\textcolor{gray}{#1}`),$(`\\purple`,`\\textcolor{##9d38bd}{#1}`),$(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),$(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),$(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),$(`\\blueD`,`\\textcolor{##11accd}{#1}`),$(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),$(`\\tealA`,`\\textcolor{##94fff5}{#1}`),$(`\\tealB`,`\\textcolor{##26edd5}{#1}`),$(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),$(`\\tealD`,`\\textcolor{##01a995}{#1}`),$(`\\tealE`,`\\textcolor{##208170}{#1}`),$(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),$(`\\greenB`,`\\textcolor{##8af281}{#1}`),$(`\\greenC`,`\\textcolor{##74cf70}{#1}`),$(`\\greenD`,`\\textcolor{##1fab54}{#1}`),$(`\\greenE`,`\\textcolor{##0d923f}{#1}`),$(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),$(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),$(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),$(`\\goldD`,`\\textcolor{##e07d10}{#1}`),$(`\\goldE`,`\\textcolor{##a75a05}{#1}`),$(`\\redA`,`\\textcolor{##fca9a9}{#1}`),$(`\\redB`,`\\textcolor{##ff8482}{#1}`),$(`\\redC`,`\\textcolor{##f9685d}{#1}`),$(`\\redD`,`\\textcolor{##e84d39}{#1}`),$(`\\redE`,`\\textcolor{##bc2612}{#1}`),$(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),$(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),$(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),$(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),$(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),$(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),$(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),$(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),$(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),$(`\\purpleE`,`\\textcolor{##543b78}{#1}`),$(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),$(`\\mintB`,`\\textcolor{##edf2df}{#1}`),$(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),$(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),$(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),$(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),$(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),$(`\\grayE`,`\\textcolor{##babec2}{#1}`),$(`\\grayF`,`\\textcolor{##888d93}{#1}`),$(`\\grayG`,`\\textcolor{##626569}{#1}`),$(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),$(`\\grayI`,`\\textcolor{##21242c}{#1}`),$(`\\kaBlue`,`\\textcolor{##314453}{#1}`),$(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var fd={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},pd=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new rd(id,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new nd(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken();var i=this.consumeArg([`]`]);r=i.tokens,n=i.end}else{var a=this.consumeArg();r=a.tokens,t=a.start,n=a.end}return this.pushToken(new nu(`EOF`,n.loc)),this.pushTokens(r),new nu(``,tu.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new N(`Extra }`,i)}else if(i.text===`EOF`)throw new N(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n)if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new N(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new N(`Use of the macro doesn't match its definition`,i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new N(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new N(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new N(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new N(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new nu(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new nd(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(qu,e)||Object.prototype.hasOwnProperty.call(Wo.math,e)||Object.prototype.hasOwnProperty.call(Wo.text,e)||Object.prototype.hasOwnProperty.call(fd,e)}isExpandable(e){var t=this.macros.get(e);return t==null?Object.prototype.hasOwnProperty.call(qu,e)&&!qu[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},md=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,hd=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),gd={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},_d={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},vd=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new pd(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new N(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new nu(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&qu[i.text]&&qu[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new N(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}else return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new N(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new N(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new N(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new N(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new N(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(hd[i.text]){var s=md.test(i.text),c=[];for(c.push(new nu(hd[i.text])),this.consume();;){var l=this.fetch().text;if(!hd[l]||md.test(l)!==s)break;c.unshift(new nu(hd[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n&&r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:n?{type:`supsub`,mode:this.mode,base:t,sup:n}:r?{type:`supsub`,mode:this.mode,base:t,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=qu[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new N(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new N(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new N(`Can't use function '`+r+`' in math mode`,n);var a=this.parseArguments(r,i),o=a.args,s=a.optArgs;return this.callFunction(r,o,s,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=qu[e];if(o&&o.handler)return o.handler(a,t,n);throw new N(`No function handler for `+e)}parseArguments(e,t){var n=t.numOptionalArgs??0,r=t.numArgs+n;if(r===0)return{args:[],optArgs:[]};for(var i=[],a=[],o=0;o<r;o++){var s=t.argTypes?.[o],c=o<n;(`primitive`in t&&t.primitive&&s==null||t.type===`sqrt`&&o===1&&a[0]==null)&&(s=`primitive`);var l=this.parseGroupOfType(`argument to '`+e+`'`,s,c);if(c)a.push(l);else if(l!=null)i.push(l);else throw new N(`Null argument, please report this as a bug`)}return{args:i,optArgs:a}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:var i=this.parseStringGroup(n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new N(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new N(`Expected group as `+e,this.fetch());return a;case`original`:case void 0:return this.parseArgumentGroup(n);default:throw new N(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e){var t=this.gullet.scanArgument(e);if(t==null)return null;for(var n=``,r;(r=this.fetch()).text!==`EOF`;)n+=r.text,this.consume();return this.consume(),t.text=n,t}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new N(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new N(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new N(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!vo(i))throw new N(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:tu.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!Object.prototype.hasOwnProperty.call(fd,r)){if(this.settings.throwOnError)throw new N(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(!(!a||a.type!==`textord`)){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:tu.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:tu.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:tu.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new N(`\\verb assertion failed --
324
- please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}Object.prototype.hasOwnProperty.call(_d,t[0])&&!Wo[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&As({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Accented Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}),t=_d[t[0]]+t.slice(1));var i=ed.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(Wo[this.mode][t]){this.settings.strict&&this.mode===`math`&&fs.includes(t)&&As({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e});var o=Wo[this.mode][t].group,s=tu.range(e);a=Xc(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&($a(t.charCodeAt(0))?this.mode===`math`&&As({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}):As({strict:this.settings.strict,errorCode:`unknownSymbol`,errorMsg:`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),report:!0,token:e})),a={type:`textord`,mode:`text`,loc:tu.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!gd[l])throw new N(`Unknown accent ' `+l+`'`,e);var u=gd[l][this.mode]||gd[l].text;if(!u)throw new N(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:tu.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};vd.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var yd=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new vd(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new N(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new nu(`\\df@tag`)])}]}return r},bd=function(e,t,n){t.textContent=``;var r=wd(e,n).toNode();t.appendChild(r)};typeof document<`u`&&document.compatMode!==`CSS1Compat`&&(typeof console<`u`&&console.warn(`Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.`),bd=function(){throw new N(`KaTeX doesn't work in quirks mode.`)});var xd=function(e,t){return wd(e,t).toMarkup()},Sd=function(e,t){return yd(e,new Na(t))},Cd=function(e,t,n){if(n.throwOnError||!(e instanceof N))throw e;var r=K([`katex-error`],[new Ao(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},wd=function(e,t){var n=new Na(t);try{return Rc(yd(e,n),e,n)}catch(t){return Cd(t,e,n)}},Td={version:`0.19.0`,render:bd,renderToString:xd,ParseError:N,SETTINGS_SCHEMA:ka,__parse:Sd,__renderToDomTree:wd,__renderToHTMLTree:function(e,t){var n=new Na(t);try{return zc(yd(e,n),n)}catch(t){return Cd(t,e,n)}},__setFontMetrics:Bo,__defineSymbol:I,__defineFunction:J,__defineMacro:$,__domTree:{Span:Eo,Anchor:Do,SymbolNode:Ao,SvgNode:jo,PathNode:Mo,LineNode:No}},Ed=new Map,Dd=0;function Od(e,t={streaming:!1}){if(e.latex.length>16384)return{status:`fallback`,reason:`limit`,source:e.raw};if(e.state===`pending`)return t.streaming?{status:`pending`}:{status:`fallback`,reason:`invalid`,source:e.raw};let n=`${Td.version}:${ya}:${e.display}:${e.latex}`,r=Ed.get(n);if(r)return Ed.delete(n),Ed.set(n,r),r.result.status===`fallback`?{...r.result,source:e.raw}:r.result;let i;try{i={status:`ready`,html:Td.renderToString(e.latex,{displayMode:e.display,output:`htmlAndMathml`,trust:!1,throwOnError:!0,strict:`ignore`,maxExpand:1e3,maxSize:20,globalGroup:!1,macros:{}})}}catch{i={status:`fallback`,reason:`invalid`,source:e.raw}}let a=(n.length+(i.status===`ready`?i.html.length:e.raw.length))*2;if(a<=2097152){for(;Ed.size>=256||Dd+a>2097152;){let e=Ed.keys().next().value;Dd-=Ed.get(e).bytes,Ed.delete(e)}Ed.set(n,{result:i,bytes:a}),Dd+=a}return i}function kd(e,t={streaming:!1},n=!1){let r=n?{status:`fallback`,reason:`limit`,source:e.raw}:Od(e,t),i=e.display?`div`:`span`,a=r.status===`ready`?r.html:`<span class="markdown-math-source">${yn(e.raw)}</span>`;return`<${i} class="markdown-math ${e.display?`markdown-math-display`:`markdown-math-inline`}" data-xopc-math="${r.status}" data-xopc-math-source="${yn(bn(e))}">${a}</${i}>`}var Ad=e=>`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${e}</svg>`,jd={latex:Ad(`<rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>`),markdown:Ad(`<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z"/><path d="M14 2v6h6M10 12l-2 2 2 2M14 12l2 2-2 2"/>`),copied:Ad(`<path d="m20 6-11 11-5-5"/>`)};function Md(e,t,n){let r=e.querySelectorAll(`code[data-xopc-math-source]`),i=0;for(let e of r){let r=xn(e.dataset.xopcMathSource??``);if(!r)continue;let a=document.createElement(`template`);a.innerHTML=kd(r,{streaming:t},++i>256);let o=a.content.firstElementChild;if(o.dataset.xopcMath===`pending`&&(o.title=n.mathPending),o.dataset.xopcMath===`fallback`&&(o.title=n.mathFailed),r.display){let e=document.createElement(`span`);e.className=`markdown-math-actions`;for(let[t,i,a]of[[n.mathCopyLatex,r.latex,jd.latex],[n.mathCopyMarkdown,r.raw,jd.markdown]]){let r=document.createElement(`button`);r.type=`button`,r.title=t,r.setAttribute(`aria-label`,t),r.innerHTML=a;let o;r.addEventListener(`click`,()=>{ee(i).then(e=>{!e||!r.isConnected||(r.innerHTML=jd.copied,r.title=n.messageCopied,window.clearTimeout(o),o=window.setTimeout(()=>{r.isConnected&&(r.innerHTML=a,r.title=t)},2e3))})}),e.appendChild(r)}o.appendChild(e)}(e.parentElement?.tagName===`PRE`?e.parentElement:e).replaceWith(o)}}var Nd=`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,Pd=`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg>`,Fd=`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/></svg>`,Id=`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/></svg>`;function Ld(e){return e.querySelector(`code`)?.textContent??e.textContent??``}function Rd(e){let t=e.querySelector(`code`);if(!t?.className)return`plaintext`;for(let e of t.className.split(/\s+/))if(e.startsWith(`language-`))return e.slice(9).trim()||`plaintext`;return`plaintext`}function zd(e){let t=document.createDocumentFragment(),n=document.createElement(`span`);return n.className=`markdown-code-copy-inner`,n.innerHTML=e===`idle`?Nd:Pd,t.appendChild(n),t}function Bd(e){e.querySelectorAll(`[data-md-code-block]`).forEach(e=>{if(e.closest(`[data-md-chart]`))return;let t=e.querySelector(`:scope > pre`),n=e.parentNode;t&&n&&(n.insertBefore(t,e),e.remove())})}function Vd(e,t){let n=e.querySelectorAll(`.markdown-body pre`),r=[];for(let e of n){if(e.closest(`[data-md-chart]`)||e.closest(`[data-md-code-block]`))continue;let n=e.parentNode;if(!n)continue;let i=document.createElement(`div`);i.className=`markdown-code-block`,i.setAttribute(`data-md-code-block`,``);let a=document.createElement(`div`);a.className=`markdown-code-block-header`;let o=document.createElement(`span`);o.className=`markdown-code-block-lang`,o.textContent=Rd(e);let s=document.createElement(`button`);s.type=`button`,s.className=`markdown-code-copy-btn`,s.dataset.mdCodeCopy=``,s.title=t.copy,s.setAttribute(`aria-label`,t.copy),s.replaceChildren(zd(`idle`));let c=n=>{n.preventDefault(),n.stopPropagation(),ee(Ld(e)).then(e=>{!e||!s.isConnected||(s.replaceChildren(zd(`copied`)),s.title=t.copied,s.setAttribute(`aria-label`,t.copied),window.setTimeout(()=>{s.isConnected&&(s.replaceChildren(zd(`idle`)),s.title=t.copy,s.setAttribute(`aria-label`,t.copy))},2e3))})};s.addEventListener(`click`,c),a.appendChild(o),a.appendChild(s),i.appendChild(a),n.insertBefore(i,e),i.appendChild(e),r.push(()=>{s.removeEventListener(`click`,c);let t=e.parentElement;t?.matches(`[data-md-code-block]`)&&t.parentNode&&(t.parentNode.insertBefore(e,t),t.remove())})}return()=>{for(let e of r)e()}}function Hd(e){return e.classList.contains(`language-mermaid`)?!0:!Array.from(e.classList).some(e=>e.startsWith(`language-`))&&ma(e.textContent??``)}function Ud(e){return Array.from(e.querySelectorAll(`pre code`)).filter(e=>!e.closest(`[data-md-chart]`)&&Hd(e))}function Wd(e){let t=e.closest(`pre`);if(!t?.parentNode)return null;let n=t.closest(`[data-md-code-block]`),r=n??document.createElement(`div`);return n||(t.parentNode.insertBefore(r,t),r.appendChild(t)),r.classList.add(`markdown-mermaid-shell`),r}function Gd(e,t){e.replaceChildren(t),e.className=`markdown-mermaid markdown-mermaid-shell`,e.removeAttribute(`data-md-code-block`),e.setAttribute(`data-mermaid-diagram`,``)}function Kd(e,t,n){let r=document.createElement(`div`);r.className=`markdown-mermaid-error-message`,r.setAttribute(`role`,`alert`),r.textContent=t,n instanceof Error&&n.message&&(r.title=n.message),e.replaceChildren(r),e.className=`markdown-mermaid markdown-mermaid-error markdown-mermaid-shell`,e.removeAttribute(`data-md-code-block`),e.setAttribute(`data-mermaid-error`,``)}function qd(e,t,n){let r=document.createElement(`button`);return r.type=`button`,r.className=`markdown-mermaid-action-button`,r.title=e,r.setAttribute(`aria-label`,e),r.dataset.mermaidAction=n,r.innerHTML=t,r}function Jd(e,t,n,r){let i=e.querySelector(`svg`);if(!i)return()=>{};let a=`mermaid-diagram-${t+1}`,o=document.createElement(`div`);o.className=`markdown-mermaid-actions`;let s=qd(n.downloadPng,Fd,`download-png`),c=qd(n.preview,Id,`preview`);o.append(s,c),e.appendChild(o),e.classList.add(`markdown-mermaid-interactive`);let l=()=>({snapshot:ia(i,e),baseName:a}),u=()=>r(l()),d=e=>{e.preventDefault(),e.stopPropagation(),u()},f=e=>{e.preventDefault(),e.stopPropagation(),!s.disabled&&(s.disabled=!0,s.title=n.downloadPng,s.setAttribute(`aria-label`,n.downloadPng),s.setAttribute(`aria-busy`,`true`),da(l().snapshot,`${a}.png`).catch(()=>{s.title=n.downloadFailed,s.setAttribute(`aria-label`,n.downloadFailed)}).finally(()=>{s.isConnected&&(s.disabled=!1,s.removeAttribute(`aria-busy`))}))},p=e=>{let t=e.target instanceof Element?e.target:null;t?.closest(`svg`)&&!t.closest(`.markdown-mermaid-actions`)&&u()};return c.addEventListener(`click`,d),s.addEventListener(`click`,f),e.addEventListener(`click`,p),()=>{c.removeEventListener(`click`,d),s.removeEventListener(`click`,f),e.removeEventListener(`click`,p),o.remove(),e.classList.remove(`markdown-mermaid-interactive`)}}function Yd({content:e,compact:t=!1,breaks:n=!1,className:r,codeCopy:i=!0,onWorkspaceFileOpen:a,onWorkspaceImageLoad:o,renderMermaid:l=!0,mermaidActions:u=!1,streamingMetricsKey:d,streaming:f=!1,renderChart:p}){let m=fn(),h=s(e=>e.language),g=(0,k.useMemo)(()=>{let e=c(h).chat;return{...e,copy:e.codeBlockCopy,copied:e.messageCopied,links:e.contentLinks,mermaidRenderError:e.mermaidRenderError,mermaidInline:{preview:e.mermaidPreview,downloadPng:e.mermaidDownloadPng,downloadFailed:e.mermaidDownloadFailed},mermaidPreview:{title:e.mermaidPreviewTitle,close:e.mermaidPreviewClose,zoomIn:e.mermaidZoomIn,zoomOut:e.mermaidZoomOut,fit:e.mermaidFit,downloadPng:e.mermaidDownloadPng,downloadSvg:e.mermaidDownloadSvg,downloadFailed:e.mermaidDownloadFailed}}},[h]),_=(0,k.useMemo)(()=>{if(!e.trim())return{html:``,charts:[]};let t=d?performance.now():0,r=zi(e,!!a,!!o),i=n?{breaks:!0}:void 0,s=p?hi(r,i):{html:xi(r,i),charts:[]},c=Ht(s.html);return d&&Ai(d,performance.now()-t),{html:c+(c.includes(`data-xopc-math-source`)?`<!--math-context:${f}:${h}-->`:``),charts:s.charts}},[e,n,a,o,d,f,h,p]),v=_.html,y=(0,k.useMemo)(()=>({__html:v}),[v]),b=(0,k.useRef)(null),[x,S]=(0,k.useState)(null);(0,k.useLayoutEffect)(()=>{let e=p?Array.from(b.current?.querySelectorAll(`[data-md-chart]`)??[]):[];S(e.length?{html:v,nodes:e}:null)},[v,p]);let[ee,te]=(0,k.useState)(null),[ne,re]=(0,k.useState)(!1),w=(0,k.useCallback)(e=>{te(e)},[]);return(0,k.useEffect)(()=>{te(null),re(!1)},[v]),(0,k.useEffect)(()=>{let e=b.current;if(!e||!o)return;let t=!1,n=[];for(let r of e.querySelectorAll(`img`)){let e=r.dataset.xopcImageSource??r.getAttribute(`src`)??``,i=Bi(e);i&&(r.dataset.xopcImageSource=e,o(i).then(e=>{if(t)return;let i=URL.createObjectURL(e);n.push(i),r.src=i}).catch(()=>{}))}return()=>{t=!0;for(let e of n)URL.revokeObjectURL(e)}},[v,o]),(0,k.useLayoutEffect)(()=>{let e=b.current;if(e&&(Bd(e),Md(e,f,g),a&&Ki(e),!(!i||!v)))return Vd(e,g)},[i,v,g,a,f]),(0,k.useLayoutEffect)(()=>{let e=b.current;e&&C(e,g.links,e=>!!(a&&(e.dataset.xopcFilePath||Bi(e.getAttribute(`href`)??``))))},[v,g.links,a]),(0,k.useLayoutEffect)(()=>{let e=b.current;if(!e||!v||!l)return;let t=Ud(e);if(t.length===0)return;let n=t.map(e=>({code:e,shell:Wd(e)})).filter(e=>e.shell!==null);for(let{code:e,shell:t}of n)try{let n=document.createElement(`template`);n.innerHTML=Ut(le(e.textContent??``)).trim();let r=n.content.firstElementChild;if(!(r instanceof SVGElement))throw Error(`Mermaid renderer returned invalid SVG`);Gd(t,r)}catch(e){console.error(`[markdown:mermaid] render failed`,e),Kd(t,g.mermaidRenderError,e)}},[g.mermaidRenderError,l,v]),(0,k.useLayoutEffect)(()=>{let e=b.current;if(!e||!u)return;let t=Array.from(e.querySelectorAll(`[data-mermaid-diagram]`),(e,t)=>Jd(e,t,g.mermaidInline,w));return()=>{for(let e of t)e()}},[g.mermaidInline,u,w,l,v]),(0,k.useLayoutEffect)(()=>{let e=b.current;if(!e)return;let t=t=>{let n=(t.target instanceof Element?t.target:null)?.closest(`a[href]`);if(!n||!e.contains(n))return;let r=n.dataset.xopcFilePath;if(r&&a){t.preventDefault();let e=Number(n.dataset.xopcLine??``);a({path:r,line:Number.isFinite(e)&&e>0?Math.floor(e):void 0,kind:n.dataset.xopcFileKind===`absolute`?`absolute`:`workspace-relative`});return}let i=n.getAttribute(`href`)??``,o=a?Bi(i):null;if(o&&a){t.preventDefault(),a(o);return}t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),re(!1),m(i).then(e=>re(!e.ok)).catch(()=>re(!0)))};return e.addEventListener(`click`,t),()=>e.removeEventListener(`click`,t)},[a,m]),(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{ref:b,className:`markdown-render-boundary`,children:(0,M.jsx)(`div`,{className:[`markdown-body`,t?`markdown-compact`:``,r??``].filter(Boolean).join(` `),dangerouslySetInnerHTML:y})}),p&&x?.html===v?x.nodes.map(e=>{let t=Number(e.dataset.mdChart),n=_.charts[t];return n?(0,Wt.createPortal)(p(n),e,String(t)):null}):null,ne?(0,M.jsx)(`p`,{role:`alert`,className:`mt-2 text-sm text-danger`,children:g.links.failed}):null,u?(0,M.jsx)(va,{preview:ee,labels:g.mermaidPreview,onClose:()=>te(null)}):null]})}var Xd=(0,k.memo)(Yd);Xd.displayName=`MarkdownView`;export{tn as A,Xt as B,hn as C,dn as D,cn as E,rn as F,de as G,Kt as H,Zt as I,ue as K,Qt as L,on as M,nn as N,un as O,an as P,$t as R,gn as S,fn as T,Ut as U,Jt as V,zt as W,xn as _,ma as a,_n as b,Wi as c,ji as d,ki as f,j as g,Ei as h,va as i,sn as j,ln as k,Bi as l,Ai as m,jd as n,ia as o,Oi as p,kd as r,da as s,Xd as t,Di as u,bn as v,vn as w,Sn as x,pn as y,qt as z};
322
+ ?)[ \r ]*`,cd=`[̀-ͯ]`,ld=RegExp(cd+`+$`),ud=`(`+rd+`+)|`+(sd+`|`)+`([!-\\[\\]-‧‪-퟿豈-￿]`+(cd+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(cd+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+od)+(`|`+ad+`)`),dd=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(ud,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new du(`EOF`,new uu(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new N(`Unexpected character: '`+e[t]+`'`,new du(e[t],new uu(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
323
+ `,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,zs({strict:this.settings.strict,errorCode:`commentAtEnd`,errorMsg:`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`,report:!0})):this.tokenRegex.lastIndex=i+1,this.lex()}return new du(r,new uu(this,t,this.tokenRegex.lastIndex))}},fd=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new N(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t of Object.keys(e))e[t]===void 0?delete this.current[t]:this.current[t]=e[t]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){if(Object.prototype.hasOwnProperty.call(this.current,e))return this.current[e];if(Object.prototype.hasOwnProperty.call(this.builtins,e))return this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}t==null?delete this.current[e]:this.current[e]=t}},pd=lu;$(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),$(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),$(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),$(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),$(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),$(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),$(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var md={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};$(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new N("\\char` missing argument");else r=t.text.charCodeAt(0);else n=10;if(n){if(r=md[t.text],r==null||r>=n)throw new N(`Invalid base-`+n+` digit `+t.text);for(var i;(i=md[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var hd=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new N(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new N(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new N(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new N(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};$(`\\newcommand`,e=>hd(e,!1,!0,!1)),$(`\\renewcommand`,e=>hd(e,!0,!1,!1)),$(`\\providecommand`,e=>hd(e,!0,!0,!0)),$(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),$(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),$(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),nd[n],$o.math[n],$o.text[n]),``}),$(`\\bgroup`,`{`),$(`\\egroup`,`}`),$(`~`,`\\nobreakspace`),$(`\\lq`,"`"),$(`\\rq`,`'`),$(`\\aa`,`\\r a`),$(`\\AA`,`\\r A`),$(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),$(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),$(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),$(`ℬ`,`\\mathscr{B}`),$(`ℰ`,`\\mathscr{E}`),$(`ℱ`,`\\mathscr{F}`),$(`ℋ`,`\\mathscr{H}`),$(`ℐ`,`\\mathscr{I}`),$(`ℒ`,`\\mathscr{L}`),$(`ℳ`,`\\mathscr{M}`),$(`ℛ`,`\\mathscr{R}`),$(`ℭ`,`\\mathfrak{C}`),$(`ℌ`,`\\mathfrak{H}`),$(`ℨ`,`\\mathfrak{Z}`),$(`\\Bbbk`,`\\Bbb{k}`),$(`\\llap`,`\\mathllap{\\textrm{#1}}`),$(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),$(`\\clap`,`\\mathclap{\\textrm{#1}}`),$(`\\mathstrut`,`\\vphantom{(}`),$(`\\underbar`,`\\underline{\\text{#1}}`),$(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),$(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),$(`\\ne`,`\\neq`),$(`≠`,`\\neq`),$(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),$(`∉`,`\\notin`),$(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),$(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),$(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),$(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),$(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),$(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),$(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),$(`⟂`,`\\perp`),$(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),$(`∌`,`\\notni`),$(`⌜`,`\\ulcorner`),$(`⌝`,`\\urcorner`),$(`⌞`,`\\llcorner`),$(`⌟`,`\\lrcorner`),$(`©`,`\\copyright`),$(`®`,`\\textregistered`),$(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),$(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),$(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),$(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),$(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),$(`⋮`,`\\vdots`),$(`\\varGamma`,`\\mathit{\\Gamma}`),$(`\\varDelta`,`\\mathit{\\Delta}`),$(`\\varTheta`,`\\mathit{\\Theta}`),$(`\\varLambda`,`\\mathit{\\Lambda}`),$(`\\varXi`,`\\mathit{\\Xi}`),$(`\\varPi`,`\\mathit{\\Pi}`),$(`\\varSigma`,`\\mathit{\\Sigma}`),$(`\\varUpsilon`,`\\mathit{\\Upsilon}`),$(`\\varPhi`,`\\mathit{\\Phi}`),$(`\\varPsi`,`\\mathit{\\Psi}`),$(`\\varOmega`,`\\mathit{\\Omega}`),$(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),$(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),$(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),$(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),$(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),$(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),$(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),$(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var gd={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},_d=new Set([`bin`,`rel`]);$(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in gd?t=gd[n]:(n.slice(0,4)===`\\not`||n in $o.math&&_d.has($o.math[n].group))&&(t=`\\dotsb`),t});var vd={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};$(`\\dotso`,function(e){return e.future().text in vd?`\\ldots\\,`:`\\ldots`}),$(`\\dotsc`,function(e){var t=e.future().text;return t in vd&&t!==`,`?`\\ldots\\,`:`\\ldots`}),$(`\\cdots`,function(e){return e.future().text in vd?`\\@cdots\\,`:`\\@cdots`}),$(`\\dotsb`,`\\cdots`),$(`\\dotsm`,`\\cdots`),$(`\\dotsi`,`\\!\\cdots`),$(`\\dotsx`,`\\ldots\\,`),$(`\\DOTSI`,`\\relax`),$(`\\DOTSB`,`\\relax`),$(`\\DOTSX`,`\\relax`),$(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),$(`\\,`,`\\tmspace+{3mu}{.1667em}`),$(`\\thinspace`,`\\,`),$(`\\>`,`\\mskip{4mu}`),$(`\\:`,`\\tmspace+{4mu}{.2222em}`),$(`\\medspace`,`\\:`),$(`\\;`,`\\tmspace+{5mu}{.2777em}`),$(`\\thickspace`,`\\;`),$(`\\!`,`\\tmspace-{3mu}{.1667em}`),$(`\\negthinspace`,`\\!`),$(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),$(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),$(`\\enspace`,`\\kern.5em `),$(`\\enskip`,`\\hskip.5em\\relax`),$(`\\quad`,`\\hskip1em\\relax`),$(`\\qquad`,`\\hskip2em\\relax`),$(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),$(`\\tag@paren`,`\\tag@literal{({#1})}`),$(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new N(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),$(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),$(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),$(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),$(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),$(`\\newline`,`\\\\\\relax`),$(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var yd=F(Ko[`Main-Regular`][84][1]-.7*Ko[`Main-Regular`][65][1]);$(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+yd+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),$(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+yd+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),$(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),$(`\\@hspace`,`\\hskip #1\\relax`),$(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),$(`\\ordinarycolon`,`:`),$(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),$(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),$(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),$(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),$(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),$(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),$(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),$(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),$(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),$(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),$(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),$(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),$(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),$(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),$(`∷`,`\\dblcolon`),$(`∹`,`\\eqcolon`),$(`≔`,`\\coloneqq`),$(`≕`,`\\eqqcolon`),$(`⩴`,`\\Coloneqq`),$(`\\ratio`,`\\vcentcolon`),$(`\\coloncolon`,`\\dblcolon`),$(`\\colonequals`,`\\coloneqq`),$(`\\coloncolonequals`,`\\Coloneqq`),$(`\\equalscolon`,`\\eqqcolon`),$(`\\equalscoloncolon`,`\\Eqqcolon`),$(`\\colonminus`,`\\coloneq`),$(`\\coloncolonminus`,`\\Coloneq`),$(`\\minuscolon`,`\\eqcolon`),$(`\\minuscoloncolon`,`\\Eqcolon`),$(`\\coloncolonapprox`,`\\Colonapprox`),$(`\\coloncolonsim`,`\\Colonsim`),$(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),$(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),$(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),$(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),$(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),$(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),$(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),$(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),$(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),$(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),$(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),$(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),$(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),$(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),$(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),$(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),$(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),$(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),$(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),$(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),$(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),$(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),$(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),$(`\\imath`,`\\html@mathml{\\@imath}{ı}`),$(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),$(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),$(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),$(`⟦`,`\\llbracket`),$(`⟧`,`\\rrbracket`),$(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),$(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),$(`↤`,`\\mapsfrom`),$(`\\mapsfrom`,"\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}"),$(`⦃`,`\\lBrace`),$(`⦄`,`\\rBrace`),$(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),$(`⦵`,`\\minuso`),$(`\\darr`,`\\downarrow`),$(`\\dArr`,`\\Downarrow`),$(`\\Darr`,`\\Downarrow`),$(`\\lang`,`\\langle`),$(`\\rang`,`\\rangle`),$(`\\uarr`,`\\uparrow`),$(`\\uArr`,`\\Uparrow`),$(`\\Uarr`,`\\Uparrow`),$(`\\N`,`\\mathbb{N}`),$(`\\R`,`\\mathbb{R}`),$(`\\Z`,`\\mathbb{Z}`),$(`\\alef`,`\\aleph`),$(`\\alefsym`,`\\aleph`),$(`\\Alpha`,`\\mathrm{A}`),$(`\\Beta`,`\\mathrm{B}`),$(`\\bull`,`\\bullet`),$(`\\Chi`,`\\mathrm{X}`),$(`\\clubs`,`\\clubsuit`),$(`\\cnums`,`\\mathbb{C}`),$(`\\Complex`,`\\mathbb{C}`),$(`\\Dagger`,`\\ddagger`),$(`\\diamonds`,`\\diamondsuit`),$(`\\empty`,`\\emptyset`),$(`\\Epsilon`,`\\mathrm{E}`),$(`\\Eta`,`\\mathrm{H}`),$(`\\exist`,`\\exists`),$(`\\harr`,`\\leftrightarrow`),$(`\\hArr`,`\\Leftrightarrow`),$(`\\Harr`,`\\Leftrightarrow`),$(`\\hearts`,`\\heartsuit`),$(`\\image`,`\\Im`),$(`\\infin`,`\\infty`),$(`\\Iota`,`\\mathrm{I}`),$(`\\isin`,`\\in`),$(`\\Kappa`,`\\mathrm{K}`),$(`\\larr`,`\\leftarrow`),$(`\\lArr`,`\\Leftarrow`),$(`\\Larr`,`\\Leftarrow`),$(`\\lrarr`,`\\leftrightarrow`),$(`\\lrArr`,`\\Leftrightarrow`),$(`\\Lrarr`,`\\Leftrightarrow`),$(`\\Mu`,`\\mathrm{M}`),$(`\\natnums`,`\\mathbb{N}`),$(`\\Nu`,`\\mathrm{N}`),$(`\\Omicron`,`\\mathrm{O}`),$(`\\plusmn`,`\\pm`),$(`\\rarr`,`\\rightarrow`),$(`\\rArr`,`\\Rightarrow`),$(`\\Rarr`,`\\Rightarrow`),$(`\\real`,`\\Re`),$(`\\reals`,`\\mathbb{R}`),$(`\\Reals`,`\\mathbb{R}`),$(`\\Rho`,`\\mathrm{P}`),$(`\\sdot`,`\\cdot`),$(`\\sect`,`\\S`),$(`\\spades`,`\\spadesuit`),$(`\\sub`,`\\subset`),$(`\\sube`,`\\subseteq`),$(`\\supe`,`\\supseteq`),$(`\\Tau`,`\\mathrm{T}`),$(`\\thetasym`,`\\vartheta`),$(`\\weierp`,`\\wp`),$(`\\Zeta`,`\\mathrm{Z}`),$(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),$(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),$(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),$(`\\bra`,`\\mathinner{\\langle{#1}|}`),$(`\\ket`,`\\mathinner{|{#1}\\rangle}`),$(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),$(`\\Bra`,`\\left\\langle#1\\right|`),$(`\\Ket`,`\\left|#1\\right\\rangle`);var bd=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};$(`\\bra@ket`,bd(!1)),$(`\\bra@set`,bd(!0)),$(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),$(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),$(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),$(`\\angln`,`{\\angl n}`),$(`\\blue`,`\\textcolor{##6495ed}{#1}`),$(`\\orange`,`\\textcolor{##ffa500}{#1}`),$(`\\pink`,`\\textcolor{##ff00af}{#1}`),$(`\\red`,`\\textcolor{##df0030}{#1}`),$(`\\green`,`\\textcolor{##28ae7b}{#1}`),$(`\\gray`,`\\textcolor{gray}{#1}`),$(`\\purple`,`\\textcolor{##9d38bd}{#1}`),$(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),$(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),$(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),$(`\\blueD`,`\\textcolor{##11accd}{#1}`),$(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),$(`\\tealA`,`\\textcolor{##94fff5}{#1}`),$(`\\tealB`,`\\textcolor{##26edd5}{#1}`),$(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),$(`\\tealD`,`\\textcolor{##01a995}{#1}`),$(`\\tealE`,`\\textcolor{##208170}{#1}`),$(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),$(`\\greenB`,`\\textcolor{##8af281}{#1}`),$(`\\greenC`,`\\textcolor{##74cf70}{#1}`),$(`\\greenD`,`\\textcolor{##1fab54}{#1}`),$(`\\greenE`,`\\textcolor{##0d923f}{#1}`),$(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),$(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),$(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),$(`\\goldD`,`\\textcolor{##e07d10}{#1}`),$(`\\goldE`,`\\textcolor{##a75a05}{#1}`),$(`\\redA`,`\\textcolor{##fca9a9}{#1}`),$(`\\redB`,`\\textcolor{##ff8482}{#1}`),$(`\\redC`,`\\textcolor{##f9685d}{#1}`),$(`\\redD`,`\\textcolor{##e84d39}{#1}`),$(`\\redE`,`\\textcolor{##bc2612}{#1}`),$(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),$(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),$(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),$(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),$(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),$(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),$(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),$(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),$(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),$(`\\purpleE`,`\\textcolor{##543b78}{#1}`),$(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),$(`\\mintB`,`\\textcolor{##edf2df}{#1}`),$(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),$(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),$(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),$(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),$(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),$(`\\grayE`,`\\textcolor{##babec2}{#1}`),$(`\\grayF`,`\\textcolor{##888d93}{#1}`),$(`\\grayG`,`\\textcolor{##626569}{#1}`),$(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),$(`\\grayI`,`\\textcolor{##21242c}{#1}`),$(`\\kaBlue`,`\\textcolor{##314453}{#1}`),$(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var xd={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Sd=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new fd(pd,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new dd(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken();var i=this.consumeArg([`]`]);r=i.tokens,n=i.end}else{var a=this.consumeArg();r=a.tokens,t=a.start,n=a.end}return this.pushToken(new du(`EOF`,n.loc)),this.pushTokens(r),new du(``,uu.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new N(`Extra }`,i)}else if(i.text===`EOF`)throw new N(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n)if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new N(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new N(`Use of the macro doesn't match its definition`,i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new N(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new N(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new N(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new N(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new du(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new dd(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(nd,e)||Object.prototype.hasOwnProperty.call($o.math,e)||Object.prototype.hasOwnProperty.call($o.text,e)||Object.prototype.hasOwnProperty.call(xd,e)}isExpandable(e){var t=this.macros.get(e);return t==null?Object.prototype.hasOwnProperty.call(nd,e)&&!nd[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Cd=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,wd=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Td={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},Ed={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},Dd=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new Sd(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new N(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new du(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&nd[i.text]&&nd[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new N(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}else return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new N(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new N(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new N(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new N(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new N(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(wd[i.text]){var s=Cd.test(i.text),c=[];for(c.push(new du(wd[i.text])),this.consume();;){var l=this.fetch().text;if(!wd[l]||Cd.test(l)!==s)break;c.unshift(new du(wd[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n&&r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:n?{type:`supsub`,mode:this.mode,base:t,sup:n}:r?{type:`supsub`,mode:this.mode,base:t,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=nd[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new N(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new N(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new N(`Can't use function '`+r+`' in math mode`,n);var a=this.parseArguments(r,i),o=a.args,s=a.optArgs;return this.callFunction(r,o,s,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=nd[e];if(o&&o.handler)return o.handler(a,t,n);throw new N(`No function handler for `+e)}parseArguments(e,t){var n=t.numOptionalArgs??0,r=t.numArgs+n;if(r===0)return{args:[],optArgs:[]};for(var i=[],a=[],o=0;o<r;o++){var s=t.argTypes?.[o],c=o<n;(`primitive`in t&&t.primitive&&s==null||t.type===`sqrt`&&o===1&&a[0]==null)&&(s=`primitive`);var l=this.parseGroupOfType(`argument to '`+e+`'`,s,c);if(c)a.push(l);else if(l!=null)i.push(l);else throw new N(`Null argument, please report this as a bug`)}return{args:i,optArgs:a}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:var i=this.parseStringGroup(n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new N(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new N(`Expected group as `+e,this.fetch());return a;case`original`:case void 0:return this.parseArgumentGroup(n);default:throw new N(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e){var t=this.gullet.scanArgument(e);if(t==null)return null;for(var n=``,r;(r=this.fetch()).text!==`EOF`;)n+=r.text,this.consume();return this.consume(),t.text=n,t}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new N(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new N(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new N(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!Do(i))throw new N(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:uu.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!Object.prototype.hasOwnProperty.call(xd,r)){if(this.settings.throwOnError)throw new N(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(!(!a||a.type!==`textord`)){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:uu.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:uu.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:uu.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new N(`\\verb assertion failed --
324
+ please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}Object.prototype.hasOwnProperty.call(Ed,t[0])&&!$o[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&zs({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Accented Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}),t=Ed[t[0]]+t.slice(1));var i=ld.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if($o[this.mode][t]){this.settings.strict&&this.mode===`math`&&xs.includes(t)&&zs({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e});var o=$o[this.mode][t].group,s=uu.range(e);a=al(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(co(t.charCodeAt(0))?this.mode===`math`&&zs({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}):zs({strict:this.settings.strict,errorCode:`unknownSymbol`,errorMsg:`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),report:!0,token:e})),a={type:`textord`,mode:`text`,loc:uu.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!Td[l])throw new N(`Unknown accent ' `+l+`'`,e);var u=Td[l][this.mode]||Td[l].text;if(!u)throw new N(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:uu.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};Dd.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var Od=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new Dd(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new N(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new du(`\\df@tag`)])}]}return r},kd=function(e,t,n){t.textContent=``;var r=Nd(e,n).toNode();t.appendChild(r)};typeof document<`u`&&document.compatMode!==`CSS1Compat`&&(typeof console<`u`&&console.warn(`Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.`),kd=function(){throw new N(`KaTeX doesn't work in quirks mode.`)});var Ad=function(e,t){return Nd(e,t).toMarkup()},jd=function(e,t){return Od(e,new Ha(t))},Md=function(e,t,n){if(n.throwOnError||!(e instanceof N))throw e;var r=K([`katex-error`],[new zo(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},Nd=function(e,t){var n=new Ha(t);try{return qc(Od(e,n),e,n)}catch(t){return Md(t,e,n)}},Pd={version:`0.19.0`,render:kd,renderToString:Ad,ParseError:N,SETTINGS_SCHEMA:Ra,__parse:jd,__renderToDomTree:Nd,__renderToHTMLTree:function(e,t){var n=new Ha(t);try{return Jc(Od(e,n),n)}catch(t){return Md(t,e,n)}},__setFontMetrics:Yo,__defineSymbol:I,__defineFunction:J,__defineMacro:$,__domTree:{Span:Fo,Anchor:Io,SymbolNode:zo,SvgNode:Bo,PathNode:Vo,LineNode:Ho}},Fd=new Map,Id=0;function Ld(e,t={streaming:!1}){if(e.latex.length>16384)return{status:`fallback`,reason:`limit`,source:e.raw};if(e.state===`pending`)return t.streaming?{status:`pending`}:{status:`fallback`,reason:`invalid`,source:e.raw};let n=`${Pd.version}:${Oa}:${e.display}:${e.latex}`,r=Fd.get(n);if(r)return Fd.delete(n),Fd.set(n,r),r.result.status===`fallback`?{...r.result,source:e.raw}:r.result;let i;try{i={status:`ready`,html:Pd.renderToString(e.latex,{displayMode:e.display,output:`htmlAndMathml`,trust:!1,throwOnError:!0,strict:`ignore`,maxExpand:1e3,maxSize:20,globalGroup:!1,macros:{}})}}catch{i={status:`fallback`,reason:`invalid`,source:e.raw}}let a=(n.length+(i.status===`ready`?i.html.length:e.raw.length))*2;if(a<=2097152){for(;Fd.size>=256||Id+a>2097152;){let e=Fd.keys().next().value;Id-=Fd.get(e).bytes,Fd.delete(e)}Fd.set(n,{result:i,bytes:a}),Id+=a}return i}function Rd(e,t={streaming:!1},n=!1){let r=n?{status:`fallback`,reason:`limit`,source:e.raw}:Ld(e,t),i=e.display?`div`:`span`,a=r.status===`ready`?r.html:`<span class="markdown-math-source">${xn(e.raw)}</span>`;return`<${i} class="markdown-math ${e.display?`markdown-math-display`:`markdown-math-inline`}" data-xopc-math="${r.status}" data-xopc-math-source="${xn(Sn(e))}">${a}</${i}>`}var zd=e=>`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${e}</svg>`,Bd={latex:zd(`<rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>`),markdown:zd(`<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z"/><path d="M14 2v6h6M10 12l-2 2 2 2M14 12l2 2-2 2"/>`),copied:zd(`<path d="m20 6-11 11-5-5"/>`)};function Vd(e,t,n){let r=e.querySelectorAll(`code[data-xopc-math-source]`),i=0;for(let e of r){let r=Cn(e.dataset.xopcMathSource??``);if(!r)continue;let a=document.createElement(`template`);a.innerHTML=Rd(r,{streaming:t},++i>256);let o=a.content.firstElementChild;if(o.dataset.xopcMath===`pending`&&(o.title=n.mathPending),o.dataset.xopcMath===`fallback`&&(o.title=n.mathFailed),r.display){let e=document.createElement(`span`);e.className=`markdown-math-actions`;for(let[t,i,a]of[[n.mathCopyLatex,r.latex,Bd.latex],[n.mathCopyMarkdown,r.raw,Bd.markdown]]){let r=document.createElement(`button`);r.type=`button`,r.title=t,r.setAttribute(`aria-label`,t),r.innerHTML=a;let o;r.addEventListener(`click`,()=>{te(i).then(e=>{!e||!r.isConnected||(r.innerHTML=Bd.copied,r.title=n.messageCopied,window.clearTimeout(o),o=window.setTimeout(()=>{r.isConnected&&(r.innerHTML=a,r.title=t)},2e3))})}),e.appendChild(r)}o.appendChild(e)}(e.parentElement?.tagName===`PRE`?e.parentElement:e).replaceWith(o)}}var Hd=`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,Ud=`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg>`,Wd=`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/></svg>`,Gd=`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/></svg>`;function Kd(e){return e.querySelector(`code`)?.textContent??e.textContent??``}function qd(e){let t=e.querySelector(`code`);if(!t?.className)return`plaintext`;for(let e of t.className.split(/\s+/))if(e.startsWith(`language-`))return e.slice(9).trim()||`plaintext`;return`plaintext`}function Jd(e){let t=document.createDocumentFragment(),n=document.createElement(`span`);return n.className=`markdown-code-copy-inner`,n.innerHTML=e===`idle`?Hd:Ud,t.appendChild(n),t}function Yd(e){e.querySelectorAll(`[data-md-code-block]`).forEach(e=>{if(e.closest(`[data-md-chart]`))return;let t=e.querySelector(`:scope > pre`),n=e.parentNode;t&&n&&(n.insertBefore(t,e),e.remove())})}function Xd(e,t){let n=e.querySelectorAll(`.markdown-body pre`),r=[];for(let e of n){if(e.closest(`[data-md-chart]`)||e.closest(`[data-md-code-block]`))continue;let n=e.parentNode;if(!n)continue;let i=document.createElement(`div`);i.className=`markdown-code-block`,i.setAttribute(`data-md-code-block`,``);let a=document.createElement(`div`);a.className=`markdown-code-block-header`;let o=document.createElement(`span`);o.className=`markdown-code-block-lang`,o.textContent=qd(e);let s=document.createElement(`button`);s.type=`button`,s.className=`markdown-code-copy-btn`,s.dataset.mdCodeCopy=``,s.title=t.copy,s.setAttribute(`aria-label`,t.copy),s.replaceChildren(Jd(`idle`));let c=n=>{n.preventDefault(),n.stopPropagation(),te(Kd(e)).then(e=>{!e||!s.isConnected||(s.replaceChildren(Jd(`copied`)),s.title=t.copied,s.setAttribute(`aria-label`,t.copied),window.setTimeout(()=>{s.isConnected&&(s.replaceChildren(Jd(`idle`)),s.title=t.copy,s.setAttribute(`aria-label`,t.copy))},2e3))})};s.addEventListener(`click`,c),a.appendChild(o),a.appendChild(s),i.appendChild(a),n.insertBefore(i,e),i.appendChild(e),r.push(()=>{s.removeEventListener(`click`,c);let t=e.parentElement;t?.matches(`[data-md-code-block]`)&&t.parentNode&&(t.parentNode.insertBefore(e,t),t.remove())})}return()=>{for(let e of r)e()}}function Zd(e){return e.classList.contains(`language-mermaid`)?!0:!Array.from(e.classList).some(e=>e.startsWith(`language-`))&&Ca(e.textContent??``)}function Qd(e){return Array.from(e.querySelectorAll(`pre code`)).filter(e=>!e.closest(`[data-md-chart]`)&&Zd(e))}function $d(e){let t=e.closest(`pre`);if(!t?.parentNode)return null;let n=t.closest(`[data-md-code-block]`),r=n??document.createElement(`div`);return n||(t.parentNode.insertBefore(r,t),r.appendChild(t)),r.classList.add(`markdown-mermaid-shell`),r}function ef(e,t){e.replaceChildren(t),e.className=`markdown-mermaid markdown-mermaid-shell`,e.removeAttribute(`data-md-code-block`),e.setAttribute(`data-mermaid-diagram`,``)}function tf(e,t,n){let r=document.createElement(`div`);r.className=`markdown-mermaid-error-message`,r.setAttribute(`role`,`alert`),r.textContent=t,n instanceof Error&&n.message&&(r.title=n.message),e.replaceChildren(r),e.className=`markdown-mermaid markdown-mermaid-error markdown-mermaid-shell`,e.removeAttribute(`data-md-code-block`),e.setAttribute(`data-mermaid-error`,``)}function nf(e,t,n){let r=document.createElement(`button`);return r.type=`button`,r.className=`markdown-mermaid-action-button`,r.title=e,r.setAttribute(`aria-label`,e),r.dataset.mermaidAction=n,r.innerHTML=t,r}function rf(e,t,n,r){let i=e.querySelector(`svg`);if(!i)return()=>{};let a=`mermaid-diagram-${t+1}`,o=document.createElement(`div`);o.className=`markdown-mermaid-actions`;let s=nf(n.downloadPng,Wd,`download-png`),c=nf(n.preview,Gd,`preview`);o.append(s,c),e.appendChild(o),e.classList.add(`markdown-mermaid-interactive`);let l=()=>({snapshot:pa(i,e),baseName:a}),u=()=>r(l()),d=e=>{e.preventDefault(),e.stopPropagation(),u()},f=e=>{e.preventDefault(),e.stopPropagation(),!s.disabled&&(s.disabled=!0,s.title=n.downloadPng,s.setAttribute(`aria-label`,n.downloadPng),s.setAttribute(`aria-busy`,`true`),ba(l().snapshot,`${a}.png`).catch(()=>{s.title=n.downloadFailed,s.setAttribute(`aria-label`,n.downloadFailed)}).finally(()=>{s.isConnected&&(s.disabled=!1,s.removeAttribute(`aria-busy`))}))},p=e=>{let t=e.target instanceof Element?e.target:null;t?.closest(`svg`)&&!t.closest(`.markdown-mermaid-actions`)&&u()};return c.addEventListener(`click`,d),s.addEventListener(`click`,f),e.addEventListener(`click`,p),()=>{c.removeEventListener(`click`,d),s.removeEventListener(`click`,f),e.removeEventListener(`click`,p),o.remove(),e.classList.remove(`markdown-mermaid-interactive`)}}function af({content:e,compact:t=!1,breaks:n=!1,className:r,codeCopy:i=!0,onWorkspaceFileOpen:a,onWorkspaceImageLoad:o,renderMermaid:s=!0,mermaidActions:u=!1,streamingMetricsKey:d,streaming:f=!1,renderChart:p}){let m=mn(),h=c(e=>e.language),g=(0,O.useMemo)(()=>{let e=l(h).chat;return{...e,copy:e.codeBlockCopy,copied:e.messageCopied,links:e.contentLinks,mermaidRenderError:e.mermaidRenderError,mermaidInline:{preview:e.mermaidPreview,downloadPng:e.mermaidDownloadPng,downloadFailed:e.mermaidDownloadFailed},mermaidPreview:{title:e.mermaidPreviewTitle,close:e.mermaidPreviewClose,zoomIn:e.mermaidZoomIn,zoomOut:e.mermaidZoomOut,fit:e.mermaidFit,downloadPng:e.mermaidDownloadPng,downloadSvg:e.mermaidDownloadSvg,downloadFailed:e.mermaidDownloadFailed}}},[h]),_=(0,O.useMemo)(()=>{if(!e.trim())return{html:``,charts:[]};let t=d?performance.now():0,r=Ji(e,!!a,!!o),i=n?{breaks:!0}:void 0,s=p?gi(r,i):{html:Si(r,i),charts:[]},c=Wt(s.html);return d&&Ii(d,performance.now()-t),{html:c+(c.includes(`data-xopc-math-source`)?`<!--math-context:${f}:${h}-->`:``),charts:s.charts}},[e,n,a,o,d,f,h,p]),v=_.html,y=(0,O.useMemo)(()=>({__html:v}),[v]),b=(0,O.useRef)(null),[x,S]=(0,O.useState)(null);(0,O.useLayoutEffect)(()=>{let e=p?Array.from(b.current?.querySelectorAll(`[data-md-chart]`)??[]):[];S(e.length?{html:v,nodes:e}:null)},[v,p]);let[C,te]=(0,O.useState)(null),[ne,re]=(0,O.useState)(!1),ie=(0,O.useCallback)(e=>{te(e)},[]);return(0,O.useEffect)(()=>{te(null),re(!1)},[v]),(0,O.useEffect)(()=>{let e=b.current;if(!e||!o)return;let t=!1,n=[];for(let r of e.querySelectorAll(`img`)){let e=r.dataset.xopcImageSource??r.getAttribute(`src`)??``,i=Yi(e);i&&(r.dataset.xopcImageSource=e,o(i).then(e=>{if(t)return;let i=URL.createObjectURL(e);n.push(i),r.src=i}).catch(()=>{}))}return()=>{t=!0;for(let e of n)URL.revokeObjectURL(e)}},[v,o]),(0,O.useLayoutEffect)(()=>{let e=b.current;if(e&&(Yd(e),Vd(e,f,g),a&&ta(e),!(!i||!v)))return Xd(e,g)},[i,v,g,a,f]),(0,O.useLayoutEffect)(()=>{let e=b.current;e&&ee(e,g.links,e=>!!(a&&(e.dataset.xopcFilePath||Yi(e.getAttribute(`href`)??``))))},[v,g.links,a]),(0,O.useLayoutEffect)(()=>{let e=b.current;if(!e||!v||!s)return;let t=Qd(e);if(t.length===0)return;let n=t.map(e=>({code:e,shell:$d(e)})).filter(e=>e.shell!==null);for(let{code:e,shell:t}of n)try{let n=document.createElement(`template`);n.innerHTML=Gt(ue(e.textContent??``)).trim();let r=n.content.firstElementChild;if(!(r instanceof SVGElement))throw Error(`Mermaid renderer returned invalid SVG`);ef(t,r)}catch(e){console.error(`[markdown:mermaid] render failed`,e),tf(t,g.mermaidRenderError,e)}},[g.mermaidRenderError,s,v]),(0,O.useLayoutEffect)(()=>{let e=b.current;if(!e||!u)return;let t=Array.from(e.querySelectorAll(`[data-mermaid-diagram]`),(e,t)=>rf(e,t,g.mermaidInline,ie));return()=>{for(let e of t)e()}},[g.mermaidInline,u,ie,s,v]),(0,O.useLayoutEffect)(()=>{let e=b.current;if(!e)return;let t=t=>{let n=(t.target instanceof Element?t.target:null)?.closest(`a[href]`);if(!n||!e.contains(n))return;let r=n.dataset.xopcFilePath;if(r&&a){t.preventDefault();let e=Number(n.dataset.xopcLine??``);a({path:r,line:Number.isFinite(e)&&e>0?Math.floor(e):void 0,kind:n.dataset.xopcFileKind===`absolute`?`absolute`:`workspace-relative`});return}let i=n.getAttribute(`href`)??``,o=a?Yi(i):null;if(o&&a){t.preventDefault(),a(o);return}t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),re(!1),m(i).then(e=>re(!e.ok)).catch(()=>re(!0)))};return e.addEventListener(`click`,t),()=>e.removeEventListener(`click`,t)},[a,m]),(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{ref:b,className:`markdown-render-boundary`,children:(0,M.jsx)(`div`,{className:[`markdown-body`,t?`markdown-compact`:``,r??``].filter(Boolean).join(` `),dangerouslySetInnerHTML:y})}),p&&x?.html===v?x.nodes.map(e=>{let t=Number(e.dataset.mdChart),n=_.charts[t];return n?(0,Kt.createPortal)(p(n),e,String(t)):null}):null,ne?(0,M.jsx)(`p`,{role:`alert`,className:`mt-2 text-sm text-danger`,children:g.links.failed}):null,u?(0,M.jsx)(Da,{preview:C,labels:g.mermaidPreview,onClose:()=>te(null)}):null]})}var of=(0,O.memo)(af);of.displayName=`MarkdownView`;export{dn as A,Yt as B,vn as C,un as D,mn as E,sn as F,Vt as G,Xt as H,on as I,fe as K,$t as L,ln as M,cn as N,pn as O,an as P,en as R,wn as S,bn as T,Jt as U,Qt as V,Gt as W,j as _,Ca as a,hn as b,$i as c,Bi as d,Fi as f,Mi as g,Li as h,Da as i,rn as j,fn as k,Yi as l,Ii as m,Bd as n,pa as o,Pi as p,de as q,Rd as r,ba as s,of as t,Ni as u,Cn as v,_n as w,yn as x,Sn as y,tn as z};