@intent-hq/web 2.388.0 → 2.389.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/0AIorxUa.js +411 -0
  3. package/web/app/immutable/chunks/{DOXxx9SZ.js → 2mfr9mCI.js} +1 -1
  4. package/web/app/immutable/chunks/{CAvh8i5c.js → 2sf1Yn-s.js} +1 -1
  5. package/web/app/immutable/chunks/{DypPlx7r.js → 4VEtxogG.js} +1 -1
  6. package/web/app/immutable/chunks/5J_xNo3h.js +2 -0
  7. package/web/app/immutable/chunks/{Dk9NNzZE.js → 85NDZF0c.js} +7 -7
  8. package/web/app/immutable/chunks/{s59tMRX6.js → 86aXQThN.js} +1 -1
  9. package/web/app/immutable/chunks/{Az9cm1af.js → 958SNXkw.js} +1 -1
  10. package/web/app/immutable/chunks/{cOfTiXUW.js → 96V4v2iI.js} +1 -1
  11. package/web/app/immutable/chunks/{dSWRjbXG.js → 97-360Ms.js} +1 -1
  12. package/web/app/immutable/chunks/{D8vs9kOP.js → B-I8ZlVM.js} +1 -1
  13. package/web/app/immutable/chunks/{CJ6d7atw.js → B-r8Ld9c.js} +1 -1
  14. package/web/app/immutable/chunks/{BCG_mh8x.js → B4JMAhvp.js} +3 -3
  15. package/web/app/immutable/chunks/{DjpNk5RK.js → B5N8LmEF.js} +1 -1
  16. package/web/app/immutable/chunks/{Bzh81gre.js → B6CGcXmK.js} +1 -1
  17. package/web/app/immutable/chunks/{1EMxL5fo.js → B6dUCFoz.js} +1 -1
  18. package/web/app/immutable/chunks/{CgkqJVb4.js → B91tdOJm.js} +1 -1
  19. package/web/app/immutable/chunks/{BlDw7Cnz.js → B9vHutcJ.js} +5 -5
  20. package/web/app/immutable/chunks/{BqymqbDk.js → BE4rQlti.js} +1 -1
  21. package/web/app/immutable/chunks/{CZkav0tO.js → BF_gPEg7.js} +2 -2
  22. package/web/app/immutable/chunks/{Bggsay0U.js → BGniv2IE.js} +1 -1
  23. package/web/app/immutable/chunks/{4o_ZQ4nq.js → BGrimfDs.js} +1 -1
  24. package/web/app/immutable/chunks/{D81tH0Kz.js → BHy9cRzo.js} +1 -1
  25. package/web/app/immutable/chunks/{D9tGn9lI.js → BIFBPuAO.js} +1 -1
  26. package/web/app/immutable/chunks/BIVpRSxo.js +2 -0
  27. package/web/app/immutable/chunks/{BG4hSkx5.js → BId1zNus.js} +1 -1
  28. package/web/app/immutable/chunks/{BHMZ-wPE.js → BNJ3edFz.js} +1 -1
  29. package/web/app/immutable/chunks/{BMOvHKEB.js → BNSbhHFY.js} +1 -1
  30. package/web/app/immutable/chunks/{BexVHAqu.js → BOVEEbKv.js} +1 -1
  31. package/web/app/immutable/chunks/{B9dzo0Kz.js → BPQFiQQc.js} +2 -2
  32. package/web/app/immutable/chunks/{BZljJ1HD.js → BQGIKN0g.js} +53 -53
  33. package/web/app/immutable/chunks/{D7wcXEUr.js → BR02ohTI.js} +1 -1
  34. package/web/app/immutable/chunks/{CRTEJPHA.js → BR1TNOav.js} +1 -1
  35. package/web/app/immutable/chunks/BT5v4htV.js +1 -0
  36. package/web/app/immutable/chunks/{Psr77Z1X.js → BVXrO_xP.js} +1 -1
  37. package/web/app/immutable/chunks/{BLv7f62Z.js → BWFaOHKx.js} +1 -1
  38. package/web/app/immutable/chunks/{yOonr4tS.js → BWfc0sSK.js} +1 -1
  39. package/web/app/immutable/chunks/{DU_cYENL.js → Ba3e0br1.js} +5 -5
  40. package/web/app/immutable/chunks/{C9UZoxqu.js → Bauem7Ke.js} +1 -1
  41. package/web/app/immutable/chunks/{Dz9x1eR4.js → BbYWP3Ow.js} +1 -1
  42. package/web/app/immutable/chunks/BbhtQrkZ.js +6 -0
  43. package/web/app/immutable/chunks/{o2-I6h0N.js → BdNfyyl1.js} +1 -1
  44. package/web/app/immutable/chunks/{big6nIIy.js → BdQ54KL0.js} +1 -1
  45. package/web/app/immutable/chunks/{nxvUsKcZ.js → Be-9sO50.js} +1 -1
  46. package/web/app/immutable/chunks/{alqbgjrN.js → Beb33qQi.js} +1 -1
  47. package/web/app/immutable/chunks/{UJ0k3Qud.js → BhCMc9G0.js} +1 -1
  48. package/web/app/immutable/chunks/BhVbCtBE.js +1 -0
  49. package/web/app/immutable/chunks/{DJCr4XPV.js → BiYZcl7D.js} +1 -1
  50. package/web/app/immutable/chunks/{CFArS1mZ.js → BkYN9M7z.js} +2 -2
  51. package/web/app/immutable/chunks/{BMyJogTr.js → BksTLNI4.js} +1 -1
  52. package/web/app/immutable/chunks/{CgpdwzlC.js → BlTdGk3A.js} +1 -1
  53. package/web/app/immutable/chunks/{DMxa_WW_.js → Bm_geQt1.js} +2 -2
  54. package/web/app/immutable/chunks/Bmlx0yvl.js +2 -0
  55. package/web/app/immutable/chunks/{DPhsGkGk.js → BniyCzQ9.js} +1 -1
  56. package/web/app/immutable/chunks/{Ca8LQU_k.js → BoCCPZlL.js} +1 -1
  57. package/web/app/immutable/chunks/{BUCW0wKH.js → BpMXdC4H.js} +1 -1
  58. package/web/app/immutable/chunks/{CZ6MUIg2.js → Bq2Q6gce.js} +1 -1
  59. package/web/app/immutable/chunks/{k9WXffYo.js → BrMDTgLg.js} +1 -1
  60. package/web/app/immutable/chunks/{CSeQ6fVV.js → BsY6roFy.js} +1 -1
  61. package/web/app/immutable/chunks/{Ci82uJM3.js → BtmHyUSg.js} +1 -1
  62. package/web/app/immutable/chunks/{Cah19Qux.js → Bviyt-Xy.js} +1 -1
  63. package/web/app/immutable/chunks/{DVqkJDVT.js → BwCICkMn.js} +8 -8
  64. package/web/app/immutable/chunks/{BQDKsQdE.js → BwVhyX7o.js} +1 -1
  65. package/web/app/immutable/chunks/ByZRLPfm.js +13 -0
  66. package/web/app/immutable/chunks/{CcNxrHIL.js → ByyFoG6W.js} +1 -1
  67. package/web/app/immutable/chunks/{DYu0VnZ5.js → BzWT_wQw.js} +1 -1
  68. package/web/app/immutable/chunks/{B49CUktc.js → C-HR_nje.js} +1 -1
  69. package/web/app/immutable/chunks/{B3K7_JP4.js → C2UL5Ler.js} +13 -13
  70. package/web/app/immutable/chunks/{bMZUbxIs.js → C3dytrTL.js} +1 -1
  71. package/web/app/immutable/chunks/{xQhx6K61.js → C3vs7E1W.js} +1 -1
  72. package/web/app/immutable/chunks/{C0AUQZ53.js → C4JKtRY1.js} +1 -1
  73. package/web/app/immutable/chunks/{Cj3bM-Zt.js → C4UYdkwZ.js} +1 -1
  74. package/web/app/immutable/chunks/{CBq8Km8c.js → C4sNRwZN.js} +1 -1
  75. package/web/app/immutable/chunks/{j5i4TEa8.js → C6RhewOE.js} +1 -1
  76. package/web/app/immutable/chunks/{DxMjS0Pm.js → C8A41C8K.js} +1 -1
  77. package/web/app/immutable/chunks/{DkXzy_Gt.js → C9szebIt.js} +1 -1
  78. package/web/app/immutable/chunks/{C_nSNvQ3.js → CB2iSm6U.js} +2 -2
  79. package/web/app/immutable/chunks/{B2KfKpOG.js → CDwhmkPo.js} +1 -1
  80. package/web/app/immutable/chunks/{Q6zM48G9.js → CFjHgtjF.js} +4 -4
  81. package/web/app/immutable/chunks/{UxV1HNfb.js → CIuThArl.js} +28 -28
  82. package/web/app/immutable/chunks/{BkPn8_Se.js → CJ9ZGIU3.js} +22 -22
  83. package/web/app/immutable/chunks/CM3NPzxs.js +1 -0
  84. package/web/app/immutable/chunks/{B6blQkaw.js → CRPk37P7.js} +1 -1
  85. package/web/app/immutable/chunks/CRSiOiSR.js +1 -0
  86. package/web/app/immutable/chunks/{DUbMVsk9.js → CS9nZ0mb.js} +1 -1
  87. package/web/app/immutable/chunks/{D9zIaPA4.js → CUE71p7a.js} +1 -1
  88. package/web/app/immutable/chunks/{DipTZipA.js → CVWwz1Ss.js} +1 -1
  89. package/web/app/immutable/chunks/{BCO6MiJi.js → CWsj4Hb7.js} +1 -1
  90. package/web/app/immutable/chunks/{XTW5roGp.js → CXfRSojK.js} +1 -1
  91. package/web/app/immutable/chunks/{Cq_g40U8.js → CYxt6gzD.js} +1 -1
  92. package/web/app/immutable/chunks/{BbUT7tLT.js → CdfbvT19.js} +1 -1
  93. package/web/app/immutable/chunks/{FkijJXdh.js → CeWx_dfN.js} +1 -1
  94. package/web/app/immutable/chunks/{loi-djHu.js → CeZGOup4.js} +1 -1
  95. package/web/app/immutable/chunks/{DsBP9KJQ.js → CfYmMj5F.js} +1 -1
  96. package/web/app/immutable/chunks/{CPOCLD3T.js → CgGsxeG7.js} +1 -1
  97. package/web/app/immutable/chunks/{ts9pKvJh.js → CgzHyieN.js} +1 -1
  98. package/web/app/immutable/chunks/{D_ht3M25.js → CheN8m7G.js} +1 -1
  99. package/web/app/immutable/chunks/{7-8cUxTO.js → Chj-azz7.js} +1 -1
  100. package/web/app/immutable/chunks/{DugE9z8T.js → Ci0dPfzv.js} +1 -1
  101. package/web/app/immutable/chunks/{D3lPsVN4.js → CiRuCsUo.js} +1 -1
  102. package/web/app/immutable/chunks/{lVUEwTET.js → CjPEI4fg.js} +1 -1
  103. package/web/app/immutable/chunks/{DUfqsoW8.js → CkTunFkP.js} +1 -1
  104. package/web/app/immutable/chunks/CmBouCgt.js +2 -0
  105. package/web/app/immutable/chunks/{WULeRaWs.js → Cmw8ZiCg.js} +1 -1
  106. package/web/app/immutable/chunks/{DJz92Kg0.js → Cn4A9AjR.js} +1 -1
  107. package/web/app/immutable/chunks/CndXvgyH.js +12 -0
  108. package/web/app/immutable/chunks/{C-9CUgEH.js → Cp1B7D7t.js} +2 -2
  109. package/web/app/immutable/chunks/{C4K5_BxH.js → Cp5royN1.js} +1 -1
  110. package/web/app/immutable/chunks/{Dz_XrTI6.js → CqqkIXTJ.js} +1 -1
  111. package/web/app/immutable/chunks/CrK7N1sc.js +1 -0
  112. package/web/app/immutable/chunks/{Bl0JLobe.js → CrpG0ldr.js} +1 -1
  113. package/web/app/immutable/chunks/{CONcCUKk.js → Crz8kvLc.js} +1 -1
  114. package/web/app/immutable/chunks/{DTxjOiRH.js → Ctp-YfoS.js} +3 -3
  115. package/web/app/immutable/chunks/{B0fKMUbz.js → CwEjDuJ3.js} +1 -1
  116. package/web/app/immutable/chunks/Cy--ZUaj.js +2 -0
  117. package/web/app/immutable/chunks/{BohdTsJs.js → CzFnnQhI.js} +1 -1
  118. package/web/app/immutable/chunks/{CWwM8FRm.js → CzJm3Kxa.js} +1 -1
  119. package/web/app/immutable/chunks/{pI1-Ias6.js → D-q3diCz.js} +7 -7
  120. package/web/app/immutable/chunks/{BfBRsDbv.js → D17rwSNZ.js} +1 -1
  121. package/web/app/immutable/chunks/{rarafMnz.js → D2McplNW.js} +1 -1
  122. package/web/app/immutable/chunks/{ekoFDkzg.js → D2YDfFKv.js} +1 -1
  123. package/web/app/immutable/chunks/{DnOdQmdW.js → D36a16oA.js} +2 -2
  124. package/web/app/immutable/chunks/{CvpYq92u.js → D3shmp0V.js} +1 -1
  125. package/web/app/immutable/chunks/{CLO80vIO.js → D3vsaFn3.js} +1 -1
  126. package/web/app/immutable/chunks/{fvo80nOp.js → D4d1iyeR.js} +1 -1
  127. package/web/app/immutable/chunks/{DqYxTMZw.js → D4ytz2EC.js} +1 -1
  128. package/web/app/immutable/chunks/{FUsdAFUM.js → D5dii3q-.js} +1 -1
  129. package/web/app/immutable/chunks/D63urNNT.js +1 -0
  130. package/web/app/immutable/chunks/{Du8gfHWh.js → D7QZQ0zf.js} +1 -1
  131. package/web/app/immutable/chunks/{CIlqNohY.js → D7b2VLAz.js} +1 -1
  132. package/web/app/immutable/chunks/{DthwyZkm.js → D8EdnE4r.js} +1 -1
  133. package/web/app/immutable/chunks/{D_jbKDL6.js → DBwApbzS.js} +1 -1
  134. package/web/app/immutable/chunks/{JNgcLoIR.js → DCFeaWgZ.js} +1 -1
  135. package/web/app/immutable/chunks/{BR5drfgy.js → DCLLUF6K.js} +1 -1
  136. package/web/app/immutable/chunks/{DwYVNqD8.js → DCs992HX.js} +1 -1
  137. package/web/app/immutable/chunks/DDVnHnMH.js +5 -0
  138. package/web/app/immutable/chunks/DFh0CfhB.js +1 -0
  139. package/web/app/immutable/chunks/{2KaAZLR-.js → DHz7ym-I.js} +1 -1
  140. package/web/app/immutable/chunks/{pXRM_ktM.js → DIPIWs2Q.js} +4 -4
  141. package/web/app/immutable/chunks/{Do_lk8OO.js → DJ9ILql1.js} +1 -1
  142. package/web/app/immutable/chunks/{BuPCiCZt.js → DM3Yrkkb.js} +1 -1
  143. package/web/app/immutable/chunks/{DnEc5FO1.js → DMrzeQEi.js} +1 -1
  144. package/web/app/immutable/chunks/{0PlO4O3i.js → DN-c0DDt.js} +1 -1
  145. package/web/app/immutable/chunks/{DPA7Wx7i.js → DOmB999d.js} +1 -1
  146. package/web/app/immutable/chunks/{C6aNGAOC.js → DQw0Iiac.js} +2 -2
  147. package/web/app/immutable/chunks/{B0Uv1AyY.js → DRND1Lha.js} +1 -1
  148. package/web/app/immutable/chunks/{CThyVptW.js → DRbQVjcG.js} +1 -1
  149. package/web/app/immutable/chunks/{BL19ZvCq.js → DUJ7Uicl.js} +5 -5
  150. package/web/app/immutable/chunks/DVsXJTH5.js +1 -0
  151. package/web/app/immutable/chunks/{Cr0pYxvG.js → DZKOpbCv.js} +1 -1
  152. package/web/app/immutable/chunks/{Dkwq1aon.js → DZOkhMcO.js} +1 -1
  153. package/web/app/immutable/chunks/{BYTf4lKv.js → DZz-0U7K.js} +1 -1
  154. package/web/app/immutable/chunks/{D66KCqXw.js → Da5bNPjQ.js} +1 -1
  155. package/web/app/immutable/chunks/{DX9jQ0PS.js → DaWmj23r.js} +1 -1
  156. package/web/app/immutable/chunks/{DmyX6ZHD.js → Dd-LQrG1.js} +1 -1
  157. package/web/app/immutable/chunks/{KlB4Fhnb.js → DdNhEgdc.js} +1 -1
  158. package/web/app/immutable/chunks/{CZU3aMzM.js → DfheqyY9.js} +1 -1
  159. package/web/app/immutable/chunks/{DH-IPuJJ.js → Dfp6ssYD.js} +1 -1
  160. package/web/app/immutable/chunks/{CFwpAHza.js → Di3tMG_J.js} +1 -1
  161. package/web/app/immutable/chunks/{gMSGQkcm.js → Dl8k4QUp.js} +1 -1
  162. package/web/app/immutable/chunks/{Cl88aId_.js → Dp7Hm0g0.js} +1 -1
  163. package/web/app/immutable/chunks/{BwGrKGev.js → DpCic98X.js} +1 -1
  164. package/web/app/immutable/chunks/{CahSXEZY.js → DqRvDwkX.js} +1 -1
  165. package/web/app/immutable/chunks/{KHaGo8p4.js → Dqi2LMpO.js} +2 -2
  166. package/web/app/immutable/chunks/{BgGvUY8M.js → DrF6vLLb.js} +1 -1
  167. package/web/app/immutable/chunks/{Cm3tXeMM.js → Dsyh_lG5.js} +1 -1
  168. package/web/app/immutable/chunks/{DjVRdKmG.js → DtXgUHCj.js} +1 -1
  169. package/web/app/immutable/chunks/{COujhQNX.js → DtluaQEg.js} +4 -4
  170. package/web/app/immutable/chunks/{BtXBr5gW.js → DuaPhBil.js} +1 -1
  171. package/web/app/immutable/chunks/{g0WwLJKD.js → DxyD9o0t.js} +1 -1
  172. package/web/app/immutable/chunks/{DbRN_fBN.js → GnUYJfg_.js} +1 -1
  173. package/web/app/immutable/chunks/HYdiaHV7.js +3 -0
  174. package/web/app/immutable/chunks/{wKnHEtxm.js → Jg5r77fy.js} +1 -1
  175. package/web/app/immutable/chunks/{yvk0NmWm.js → JrdZaYjT.js} +1 -1
  176. package/web/app/immutable/chunks/{ChgSqVu2.js → KZwZoyIt.js} +1 -1
  177. package/web/app/immutable/chunks/{CgXlgTpj.js → KnkAG0HD.js} +1 -1
  178. package/web/app/immutable/chunks/KvHDUk_b.js +2 -0
  179. package/web/app/immutable/chunks/{Csg_svg6.js → Ll0WtNFW.js} +1 -1
  180. package/web/app/immutable/chunks/{AuPnYXvq.js → Nthsb-68.js} +1 -1
  181. package/web/app/immutable/chunks/{B-DC5RDK.js → R-UFG3MB.js} +1 -1
  182. package/web/app/immutable/chunks/{Dre9I3wQ.js → R69_F6ow.js} +1 -1
  183. package/web/app/immutable/chunks/{B5XUeaKM.js → T6fchQhT.js} +2 -2
  184. package/web/app/immutable/chunks/{B5M97fab.js → T7iqVsMb.js} +1 -1
  185. package/web/app/immutable/chunks/{BhvXSFFd.js → TB9r2XJy.js} +2 -2
  186. package/web/app/immutable/chunks/{CS2-6GJW.js → TBtn8giw.js} +1 -1
  187. package/web/app/immutable/chunks/{DnebYpJB.js → X0RLj3lE.js} +1 -1
  188. package/web/app/immutable/chunks/Z2wqUYyr.js +2 -0
  189. package/web/app/immutable/chunks/{CdcEumin.js → Z4vtXCdu.js} +1 -1
  190. package/web/app/immutable/chunks/_UjuBCOJ.js +1 -0
  191. package/web/app/immutable/chunks/{klTuOngC.js → aZdb_rCN.js} +1 -1
  192. package/web/app/immutable/chunks/{D3tfczF3.js → dEPZ-XrU.js} +1 -1
  193. package/web/app/immutable/chunks/{CTDDNWu2.js → etz9IKpr.js} +1 -1
  194. package/web/app/immutable/chunks/{Bfu4Gbpb.js → fCCFSMRf.js} +3 -3
  195. package/web/app/immutable/chunks/{HA0DfJ2t.js → g-pOypvE.js} +1 -1
  196. package/web/app/immutable/chunks/{B4p5jAE9.js → gsePksRf.js} +1 -1
  197. package/web/app/immutable/chunks/{BM_biE0y.js → hgE6oWwa.js} +1 -1
  198. package/web/app/immutable/chunks/{sKA-ObYb.js → hkJYqn41.js} +1 -1
  199. package/web/app/immutable/chunks/{D5b9qBIq.js → i5FUlYpy.js} +1 -1
  200. package/web/app/immutable/chunks/{BfhtD4DE.js → iIsyEXfi.js} +1 -1
  201. package/web/app/immutable/chunks/k1pjOtcg.js +2 -0
  202. package/web/app/immutable/chunks/mq9vi3Up.js +4 -0
  203. package/web/app/immutable/chunks/{CSIMWELR.js → nfiajAfR.js} +1 -1
  204. package/web/app/immutable/chunks/{DREHsvwt.js → nxtepGjE.js} +1 -1
  205. package/web/app/immutable/chunks/{Db1LGTgG.js → oBc79yRV.js} +1 -1
  206. package/web/app/immutable/chunks/{CSKrS9aV.js → oEGQGYxq.js} +1 -1
  207. package/web/app/immutable/chunks/{CuL2i1ch.js → pfX_M-aK.js} +1 -1
  208. package/web/app/immutable/chunks/{DIdR5gOD.js → qWMP3EPi.js} +1 -1
  209. package/web/app/immutable/chunks/{Bm0gGnEs.js → qhd9g-fv.js} +1 -1
  210. package/web/app/immutable/chunks/{CPR6kk_T.js → qtHim0jP.js} +1 -1
  211. package/web/app/immutable/chunks/{B3Jjdo5U.js → s6Wn05Cg.js} +2 -2
  212. package/web/app/immutable/chunks/{CJubsryt.js → sQSEv8Vy.js} +5 -5
  213. package/web/app/immutable/chunks/{CihSsq_c.js → tCg_s90g.js} +1 -1
  214. package/web/app/immutable/chunks/{D3CypRQj.js → ublLekYt.js} +1 -1
  215. package/web/app/immutable/chunks/{BOROOVR9.js → uftNwUIw.js} +1 -1
  216. package/web/app/immutable/chunks/{BVaTfwe9.js → uvhZkGDU.js} +2 -2
  217. package/web/app/immutable/chunks/{DDeZr78m.js → vJJhwCPu.js} +1 -1
  218. package/web/app/immutable/chunks/{DkdNV_U4.js → vj8NdGWd.js} +1 -1
  219. package/web/app/immutable/chunks/{BmVm-Xb9.js → vpQRVk8F.js} +1 -1
  220. package/web/app/immutable/chunks/{Ojuc-F9K.js → wX0L7qir.js} +3 -3
  221. package/web/app/immutable/chunks/{B1B2tR2P.js → x0vz7jUI.js} +1 -1
  222. package/web/app/immutable/chunks/{D5a_4V3Z.js → xXDRZ4UR.js} +1 -1
  223. package/web/app/immutable/chunks/{GMS9kh4f.js → zA4TFq_E.js} +2 -2
  224. package/web/app/immutable/entry/app.Beuvfwpq.js +4 -0
  225. package/web/app/immutable/entry/start.dSf-uLxv.js +1 -0
  226. package/web/app/immutable/nodes/{0.CZkIfk8Y.js → 0.cL5zt7Bt.js} +1 -1
  227. package/web/app/immutable/nodes/{1.DsBryxJC.js → 1.Dj9s42wq.js} +1 -1
  228. package/web/app/immutable/nodes/{10.BouqyFdq.js → 10.CQpwV39P.js} +18 -18
  229. package/web/app/immutable/nodes/{11.DVteTP5Z.js → 11.ryjds32c.js} +4 -4
  230. package/web/app/immutable/nodes/{13.ptNmqZph.js → 13.jK1i4wo4.js} +1 -1
  231. package/web/app/immutable/nodes/{14.C60Y_MCU.js → 14.DdHtnE9x.js} +1 -1
  232. package/web/app/immutable/nodes/{15.vdYCFIAo.js → 15.ffzaVnT8.js} +1 -1
  233. package/web/app/immutable/nodes/{16.BHeY8GWk.js → 16.DFPLVaTv.js} +1 -1
  234. package/web/app/immutable/nodes/{17.De1hIcCz.js → 17.Dylz7DBe.js} +1 -1
  235. package/web/app/immutable/nodes/{18.CSiSULsM.js → 18.CxblUMg0.js} +1 -1
  236. package/web/app/immutable/nodes/{19.BzhIGKWf.js → 19.COuvk-IK.js} +2 -2
  237. package/web/app/immutable/nodes/{2.DrLLJODs.js → 2.CyeHTGza.js} +11 -11
  238. package/web/app/immutable/nodes/{20.C1njt326.js → 20.CXw8Twm7.js} +1 -1
  239. package/web/app/immutable/nodes/{3.CwnUfLZi.js → 3.Cli5S3q6.js} +1 -1
  240. package/web/app/immutable/nodes/{4.BKuWUXgs.js → 4.DnwVlUKb.js} +1 -1
  241. package/web/app/immutable/nodes/5.BBLKg00X.js +1 -0
  242. package/web/app/immutable/nodes/{6.B0Ra98Z1.js → 6.D_zrx8Je.js} +2 -2
  243. package/web/app/immutable/nodes/{7.fJBI0akH.js → 7.CbiG1FxN.js} +1 -1
  244. package/web/app/immutable/nodes/{8.CGqCPOoO.js → 8.BqucsZP2.js} +1 -1
  245. package/web/app/immutable/nodes/{9.D1ubXHAz.js → 9.YctElBWI.js} +4 -4
  246. package/web/app/version.json +1 -1
  247. package/web/index.html +12 -12
  248. package/web/app/immutable/chunks/66ia1joD.js +0 -5
  249. package/web/app/immutable/chunks/8HAvvSzV.js +0 -411
  250. package/web/app/immutable/chunks/AprTGyyw.js +0 -2
  251. package/web/app/immutable/chunks/B7eueH-o.js +0 -12
  252. package/web/app/immutable/chunks/BTlwEESv.js +0 -2
  253. package/web/app/immutable/chunks/BYLBGCLl.js +0 -1
  254. package/web/app/immutable/chunks/BZCMFrfO.js +0 -1
  255. package/web/app/immutable/chunks/BhyNZfPE.js +0 -2
  256. package/web/app/immutable/chunks/BnRr64jv.js +0 -1
  257. package/web/app/immutable/chunks/CCfiEL_H.js +0 -3
  258. package/web/app/immutable/chunks/CEFRvkrn.js +0 -2
  259. package/web/app/immutable/chunks/CFPxKCYR.js +0 -1
  260. package/web/app/immutable/chunks/CJDEvb-Q.js +0 -2
  261. package/web/app/immutable/chunks/CKQfIyvh.js +0 -1
  262. package/web/app/immutable/chunks/CLwSZ8qQ.js +0 -1
  263. package/web/app/immutable/chunks/CaF73o7d.js +0 -13
  264. package/web/app/immutable/chunks/CeQeE8PY.js +0 -1
  265. package/web/app/immutable/chunks/Cgj3WZRk.js +0 -1
  266. package/web/app/immutable/chunks/Csw_wMoM.js +0 -2
  267. package/web/app/immutable/chunks/CxkFheMN.js +0 -1
  268. package/web/app/immutable/chunks/DmkTrs6I.js +0 -2
  269. package/web/app/immutable/chunks/DypB-Dwi.js +0 -1
  270. package/web/app/immutable/chunks/lNtFAHH9.js +0 -4
  271. package/web/app/immutable/chunks/nRNuB5kp.js +0 -2
  272. package/web/app/immutable/chunks/oOxvDsoj.js +0 -6
  273. package/web/app/immutable/entry/app.BszOT5UA.js +0 -4
  274. package/web/app/immutable/entry/start.BtnupdoQ.js +0 -1
  275. package/web/app/immutable/nodes/5.DBOSwfI-.js +0 -1
@@ -1,12 +1,12 @@
1
- var I1=Object.defineProperty;var js=t=>{throw TypeError(t)};var z1=(t,e,r)=>e in t?I1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var le=(t,e,r)=>z1(t,typeof e!="symbol"?e+"":e,r),R1=(t,e,r)=>e.has(t)||js("Cannot "+r);var Vs=(t,e,r)=>e.has(t)?js("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r);var tn=(t,e,r)=>(R1(t,e,"access private method"),r);import{cR as mr,b4 as D1,dJ as Xl,a7 as _n,a5 as Ia,a6 as N1,a4 as P1,aa as _1,am as L1,a1 as O1,ea as $1,X as B1,bn as Yl,cU as qr,dI as Zl,b3 as q1,b8 as F1,cC as H1,cS as U1,cn as W1,dD as si,e2 as G1,dX as j1,aK as X0,ax as V1,aF as _i,dH as Ql,dU as K1,ee as Jl,ed as X1}from"./B3K7_JP4.js";import{D as Ks,b3 as Y1,bd as Z1,aB as Q1}from"./CZkav0tO.js";import{M as J1,G as hn,I as eh}from"./Bqd7fdCF.js";import{zy as y0,JG as E,nZ as ve,nY as xe,aU as th,m as ec,I as De,br as gn,kf as Li,mf as w0,ar as Kt,me as Xs,mo as Ys,ml as Zs,jO as tc,gA as oi,I1 as rh,tJ as nh,B0 as ah,p0 as ih,n2 as k0,CA as sh,iO as oh,my as lh,m9 as ch}from"./BlDw7Cnz.js";import{bm as ie}from"./CLAmm_T1.js";import{l as rt}from"./Cu5e4npY.js";import{m as uh,f as Tr}from"./oOxvDsoj.js";import{a as vn}from"./BdWqymET.js";import{o as pe,r as Vt,e as bn,s as V,_ as Je,l as yn,g as hh,n as Le,c as hr,b as Ve,u as dh,d as ph}from"./CIyUrgF0.js";import{j as rc}from"./uXuxG9cN.js";import{u as mh}from"./4o_ZQ4nq.js";import{selectActiveWorkspaceIds as fh}from"./klTuOngC.js";import{i as je}from"./CL3a4Hm1.js";import{l as za,c as Oi}from"./ChTqQfQN.js";import"./CgXlgTpj.js";import{e as gh,h as Er}from"./DONrLvvt.js";import{h as wn}from"./BhvXSFFd.js";import{i as Qs}from"./BBWuirRW.js";import{f as $i,o as nc,p as ac,h as vh,m as ic,i as bh,k as yh}from"./C6aNGAOC.js";const Ze=[];for(let t=0;t<256;++t)Ze.push((t+256).toString(16).slice(1));function wh(t,e=0){return(Ze[t[e+0]]+Ze[t[e+1]]+Ze[t[e+2]]+Ze[t[e+3]]+"-"+Ze[t[e+4]]+Ze[t[e+5]]+"-"+Ze[t[e+6]]+Ze[t[e+7]]+"-"+Ze[t[e+8]]+Ze[t[e+9]]+"-"+Ze[t[e+10]]+Ze[t[e+11]]+Ze[t[e+12]]+Ze[t[e+13]]+Ze[t[e+14]]+Ze[t[e+15]]).toLowerCase()}const kh=new Uint8Array(16);function xh(){return crypto.getRandomValues(kh)}function Bi(t,e,r){return crypto.randomUUID?crypto.randomUUID():Sh(t)}function Sh(t,e,r){t=t||{};const n=t.random??t.rng?.()??xh();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,wh(n)}function qi(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=qi({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?J1(r.replace(/\.git\/?$/,""),e):null}function m3(t,e){return t.type==="local"?t.plainFolder?"folder":"local":qi(t,e)?.provider==="gitlab"?"gitlab":"github"}function sc(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function f3(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=sc(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function g3(t){return t.type==="local"&&t.path?t.path:void 0}const Ah=["/.clones/","/.repo-cache/"];function v3(t){const e=t.replaceAll("\\","/");return Ah.some(r=>e.includes(r))}function b3(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function Th(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function y3(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??Th(r)}}function w3(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,sc(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const Eh="known-repos",Ch=6e4;function Mh({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=y0(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(y0(s),s);for(const s of e.repos)a.set(y0(s),s)}const i=[...a.values()].filter(s=>!r[y0(s)]);return n==="all"?i:i.slice(0,9)}function k3(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function x3({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<Ch?"skip":"load"}function S3(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=qi(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function Ih({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(Ks)?Ks:null;return s===null||!i(s)?null:s}const A3=E.createSelector(t=>t.workspaceInitializer.hydrated),T3=E.createSelector(t=>t.workspaceInitializer.compactFormState),E3=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),C3=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),M3=E.createSelector(t=>t.workspaceInitializer.branchByRepo),I3=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),z3=E.createSelector(t=>ve(t.workspaceInitializer.recentRepos)),R3=E.createSelector((t,e)=>xe(t.workspaceInitializer.recentRepoRefreshes,e)),D3=E.createSelector((t,e)=>xe(t.workspaceInitializer.directoryStatusChecks,e)),N3=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),P3=E.createSelector(t=>ve(t.workspaceInitializer.remoteSetups)),_3=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),L3=E.createSelector(t=>t.workspaceInitializer.agentByRepo),O3=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),$3=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),B3=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),q3=E.createSelector((t,e)=>({restore:xe(t.workspaceInitializer.draftRestores,e),clear:xe(t.workspaceInitializer.draftClears,e)})),F3=E.createSelector((t,e,r)=>{const n=xe(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),H3=E.createSelector((t,e)=>xe(t.workspaceInitializer.initializationOutcomes,e)),U3=E.createSelector((t,e)=>xe(t.workspaceInitializer.initializationResumes,e)),W3=E.createSelector(t=>Ih({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:Z1.select(t),orchestratorId:Y1.select(t)?.id??null})),zh=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=mr.select(t);return e&&r&&D1.select(t)?JSON.stringify([r,e]):null}),G3=E.createSelector(t=>{const e=zh.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),Rh=E.createSelector(t=>{const e=xe(t.workspaceInitializer.recentRepoRefreshes,Eh),r=mr.select(t);return Mh({saved:ve(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),j3=E.createSelector(t=>Xl.select(t)?Rh.select(t):[]),V3=E.createSelector(t=>Q1.select(t)||void 0),Js="workspace-debug-flags",x0={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class Dh{constructor(){le(this,"flags");le(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return x0;try{const e=localStorage.getItem(Js);if(e)return{...x0,...JSON.parse(e)}}catch(e){za.error("Failed to load debug flags:",e)}return x0}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(Js,JSON.stringify(this.flags))}catch(e){za.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...x0},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),za.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const Ra=new Dh;function K3(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function Nh(t){return t.charAt(0).toUpperCase()+t.slice(1)}function X3(t){if(!t||t.trim().length===0)return ie.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return ie.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return ie.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return ie.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return ie.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return ie.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return ie.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return ie.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return ie.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return ie.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return ie.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return ie.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return ie.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return ie.workspace_sidebarHeader_branchTooLong_error()}function Y3(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function li(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function Z3(t,e){return`${e}:${t.agentId??"manual"}`}function Ph(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function _h(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function Lh(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function Q3(t,e,r,n){const a=Ph(t,e),i=n?` (origin/${n})`:"";return r?a===1?ie.workspace_sidebarChanges_addToPr_one({suffix:i}):ie.workspace_sidebarChanges_addToPr_many({count:rt(a),suffix:i}):a===1?ie.workspace_sidebarChanges_pushToRemote_one({suffix:i}):ie.workspace_sidebarChanges_pushToRemote_many({count:rt(a),suffix:i})}function J3(t,e,r){const n=_h(t,e),a=r?` (origin/${r})`:"";return n===1?ie.workspace_sidebarChanges_undoPush_one({suffix:a}):ie.workspace_sidebarChanges_undoPush_many({count:rt(n),suffix:a})}function e6(t,e){const r=Lh(t,e);return r===1?ie.workspace_sidebarChanges_undoCommit_one():ie.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function t6(t,e){return e===0&&t.length>0}function r6(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function n6(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function a6(t,e,r){return r?.path===t&&r?.staged===e}function i6(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function s6(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function Oh(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function o6(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=Oh(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:li(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?Fi(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:li(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function l6(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??th.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function $h(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function Da(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=_n(i),c=o.toLowerCase(),h=a.find(d=>!!o&&d.url.toLowerCase()===c||(i.resource||i.monitorAvailability?d.monitorIdentity===Ia(i):!d.resource&&!d.monitorAvailability&&(s?!d.crossRepo&&d.number===i.prNumber:d.crossRepo===i.repo&&d.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?Ia(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${N1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?Ia(i):void 0,url:o,htmlUrl:o,status:$h(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:Fi(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function Fi(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function c6(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const k of n)k.repoOwner&&k.repoName&&s.add(`${k.repoOwner}/${k.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(k=>k.crossRepo)){o=[];for(const k of t)k.crossRepo?s.has(k.crossRepo.toLowerCase())?c.push(k):h.push(k):o.push(k)}const d=[],v=[],m=[];for(const k of e){const I=k.repo.toLowerCase();_n(k)&&o.some(R=>R.url===_n(k))||!k.resource&&!k.monitorAvailability&&(!i||I===i)?d.push(k):_n(k)&&c.some(R=>R.url===_n(k))||!k.resource&&!k.monitorAvailability&&s.has(I)?v.push(k):m.push(k)}const w=Da(o,d,r),A=r?.split("/")[0],C=new Set([...w,...c,...h].map(k=>`${(k.crossRepo??r??"").toLowerCase()}#${k.number}`)),M=[...c];for(const k of n){if(!k.repoOwner||!k.repoName)continue;const I=`${k.repoOwner}/${k.repoName}`;for(const R of k.pullRequests??[]){const Z=`${I.toLowerCase()}#${R.number}`;if(C.has(Z))continue;C.add(Z);const K=R.url||`https://github.com/${I}/pull/${R.number}`,ee=i!==void 0&&I.toLowerCase()===i;M.push({number:R.number,title:a(R),url:K,htmlUrl:K,status:li(R.status),createdAt:R.createdAt,updatedAt:R.updatedAt,crossRepo:ee?void 0:I,crossRepoDisplay:ee?void 0:Fi(I,A)})}}return{own:w,otherRoots:Da(M,v,r),otherTracked:Da(h,m,r)}}function eo(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function u6(t){const e=t.status==="merged"?ie.workspace_prSection_merged_label():t.status==="closed"?ie.workspace_prSection_closed_label():t.status==="draft"?ie.workspace_prSection_statusDraft_label():eo(t)?ie.workspace_prSection_statusQueued_label():ie.workspace_prSection_statusOpen_label(),r=[P1(t)??e],n=eo(t)?uh(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(ie.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(ie.workspace_prSection_statusChecks_tooltip({passed:rt(a.checks.passed),failed:rt(a.checks.failed),pending:rt(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?ie.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?ie.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:rt(a.approvals.have),needed:rt(a.approvals.needed)}):ie.workspace_prSection_statusApprovals_tooltip({count:rt(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(ie.workspace_prSection_statusChangesRequested_tooltip({count:rt(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(ie.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(ie.workspace_prSection_statusUnresolvedThreads_tooltip({count:rt(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(ie.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(Nh(a.mergeBlockedReason))),r.join(`
2
- `)}function h6(t,e){return e.has(t??"manual")}function d6(t,e){return{path:t.relativePath,additions:t.stats.additions,deletions:t.stats.deletions,staged:e,status:t.status,attribution:t.attribution?.agent?{agentId:t.attribution.agent.agentId,agentName:t.attribution.agent.agentName,sessionId:t.attribution.agent.sessionId,turnNumber:t.attribution.agent.turnNumber,timestamp:t.attribution.timestamp}:void 0}}const oc=500;function p6(t,e=oc){const r=Math.max(0,Math.floor(e));return t.length<=r?{visible:t,shown:t.length,hiddenCount:0}:{visible:t.slice(0,r),shown:r,hiddenCount:t.length-r}}function m6(t,e,r=oc){let n=Math.max(0,Math.floor(r)),a=0,i=0;return{groups:t.map(o=>{if(e(o))return{group:o,visibleFiles:[]};const c=Math.min(n,o.files.length);return n-=c,a+=c,i+=o.files.length-c,{group:o,visibleFiles:c===o.files.length?o.files:o.files.slice(0,c)}}),shown:a,hiddenCount:i}}function f6(t){if(t.hiddenCount<=0)return"";const e=rt(t.shown),r=rt(t.shown+t.hiddenCount);return t.hiddenCount===1?ie.workspace_fileChanges_hiddenFiles_one({shown:e,total:r}):ie.workspace_fileChanges_hiddenFiles_many({shown:e,total:r,count:rt(t.hiddenCount)})}function Bh(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function ci(t){return t.startsWith("@")?t.slice(1):t}function qh(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return ci(String(a));const i=[r,e,n.trim()].map(ci).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?_1(s).path:void 0}function Fh(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function Hh(t){if(!t||t.getAttribute("data-mention")===null)return null;const e=t.getAttribute("data-type")||"",r=t.getAttribute("data-id")||"",n=t.getAttribute("data-label")||"",a=t.getAttribute("data-uri")||"",i=Bh(t.getAttribute("data-meta")),s={type:e,id:r,label:n,uri:a,meta:i},o=a.startsWith("intent://")?a:typeof i.fullUrl=="string"&&i.fullUrl.startsWith("intent://")?i.fullUrl:void 0;if(o&&(s.intentUrl=o),e==="file"||e==="file-range"){const c=qh(i,n,r,t.textContent||"");c&&(s.filePath=c);const h=Fh(i);h!==void 0&&(s.line=h)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,h=c?ci(String(c)).replace(/\/+$/,""):"";h&&(s.folderPath=h)}else if(e==="note"||e==="note-range"){const c=i.noteId||r;c&&(s.note=i.isExternalLink&&i.workspaceId?{id:c,workspaceId:String(i.workspaceId)}:{id:c})}return s}function g6(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function Hi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Fr=Hi();function lc(t){Fr=t}var Nr={exec:()=>null};function Cr(t){let e=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=e[n];return a||(a=t(n),e[n]=a),a}}function oe(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Ue.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var cc=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ue={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,listInterruptsParagraph:/^ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+)[ \t]*)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,blockquoteMarkerWhitespace:/^( {0,3}>)(\t[ \t]*)/gm,nestedBlockMarker:/^ {0,3}(?:(?:[*+-]|\d{1,9}[.)])(?: |$)|> ?)/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\][ \t]+\S/,listReplaceTask:/^\[[ xX]\][ \t]+/,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,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,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:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Cr(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Cr(t=>new RegExp(`^ {0,${t}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:Cr(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Cr(t=>new RegExp(`^ {0,${t}}#{1,6}(?:\\s|$)`)),pedanticHeadingBeginRegex:Cr(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Cr(t=>new RegExp(`^ {0,${t}}(?:</?(?:${Wi})(?:[ \\t]+|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,"i")),blockquoteBeginRegex:Cr(t=>new RegExp(`^ {0,${t}}>`)),nestedContainerMarkers:/^(?: {0,3}(?:(?:[*+-]|\d{1,9}[.)])[ \t]+|>[ \t]?))+/},Uh=/^(?:[ \t]*(?:\n|$))+/,Wh=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Gh=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}(?:(?=`)\1`*|(?=~)\1~*) *(?=\n|$)|$)/,Kn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,jh=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ui=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Wi="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",Xn=oe(" {0,3}(?:</?(?:tag)(?:[ \\t]+|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",Wi).getRegex(),uc=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+)[ \t]*(?:\n+|$)/,hc=oe(uc).replace(/bull/g,Ui).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/\|table/g,"").replace(/html/g,Xn).getRegex(),Vh=oe(uc).replace(/bull/g,Ui).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).replace(/html/g,Xn).getRegex(),Gi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Kh=/^[^\n]+/,ji=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\\n]|\n(?![ \t]*\n))+/,Xh=oe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<(?:\\.|[^\n<>\\])*>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ji).replace("title",/(?:"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\\n]|\n(?!\n))*'|\((?:\\[\s\S]|[^()\\])*\))/).getRegex(),Yh=oe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Ui).getRegex(),Vi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Zh=oe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?:[ \\t]+|\\n|/?>|$)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*?[ \\t]*/?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Vi).replace("tag",Wi).replace("attribute",/[ \t]+[a-zA-Z:_][\w.:-]*(?:[ \t]*=[ \t]*"[^"\n]*"|[ \t]*=[ \t]*'[^'\n]*'|[ \t]*=[ \t]*[^\s"'=<>`]+)?/).getRegex(),dc=t=>oe(Gi).replace("hr",Kn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html",Xn).getRegex(),Qh=dc(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Jh=dc(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),ed=oe(/^( {0,3}> ?(?:(?![ \t]*(?:\n|$))(paragraph)|[^\n]*)(?:\n|$))+/).replace("paragraph",Jh).getRegex(),Ki={blockquote:ed,code:Wh,def:Xh,fences:Gh,heading:jh,hr:Kn,html:Zh,lheading:hc,list:Yh,newline:Uh,paragraph:Qh,table:Nr,text:Kh},to=oe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Kn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html",Xn).getRegex(),td={...Ki,lheading:Vh,table:to,paragraph:oe(Gi).replace("hr",Kn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",to).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html",Xn).getRegex()},rd={...Ki,html:oe(`^ *(?:comment(?: *\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1>(?: *\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?>(?: *\\n{2,}|\\s*$))`).replace("comment",Vi).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:Nr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:oe(Gi).replace("hr",Kn).replace("heading",` *#{1,6} *[^
3
- ]`).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").replace("lheading",hc).getRegex()},nd=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ad=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,pc=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,id=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Pt=/[\p{P}\p{S}]/u,kn=/[\s\p{P}\p{S}]/u,Yn=/[^\s\p{P}\p{S}]/u,sd=oe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,kn).getRegex(),od=/[\p{Pi}\p{Ps}"']/u,mc=/(?!~)[\p{P}\p{S}]/u,ld=/(?!~)[\s\p{P}\p{S}]/u,cd=/(?:[^\s\p{P}\p{S}]|~)/u,ud=oe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",cc?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),fc=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,hd=oe(fc,"u").replace(/punct/g,Pt).getRegex(),dd=oe(fc,"u").replace(/punct/g,mc).getRegex(),pd=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,md=oe(pd,"u").replace(/openQuote/g,od).replace(/punct/g,Pt).getRegex(),gc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",fd=oe(gc,"gu").replace(/notPunctSpace/g,Yn).replace(/punctSpace/g,kn).replace(/punct/g,Pt).getRegex(),gd=oe(gc,"gu").replace(/notPunctSpace/g,cd).replace(/punctSpace/g,ld).replace(/punct/g,mc).getRegex(),vd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",bd=oe(vd,"gu").replace(/notPunctSpace/g,Yn).replace(/punctSpace/g,kn).replace(/punct/g,Pt).getRegex(),yd=oe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Yn).replace(/punctSpace/g,kn).replace(/punct/g,Pt).getRegex(),wd="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",kd=oe(wd,"gu").replace(/notPunctSpace/g,Yn).replace(/punctSpace/g,kn).replace(/punct/g,Pt).getRegex(),xd=oe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Pt).getRegex(),Sd="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Ad=oe(Sd,"gu").replace(/notPunctSpace/g,Yn).replace(/punctSpace/g,kn).replace(/punct/g,Pt).getRegex(),Td=oe(/\\(punct)/,"gu").replace(/punct/g,Pt).getRegex(),Ed=oe(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/,"gu").replace(/punct/g,Pt).getRegex(),Cd=oe(/^<(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(),Md=oe(Vi).replace("(?:-->|$)","-->").getRegex(),Id=oe("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Md).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vc=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,q0=oe(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",vc).getRegex(),zd=oe(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label",q0).replace("href",/<(?:\\.|[^\n<>\\])*>|(?!<)[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|\((?:\\[\s\S]|[^)\\])*\)/).getRegex(),Rd=oe(/^!?\[(label)\]\[(ref)\]/).replace("label",q0).replace("ref",ji).getRegex(),Dd=oe(/^!?\[(ref)\](?:\[\])?/).replace("ref",ji).getRegex(),ro=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,Nd=oe(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",vc).getRegex(),Pd=oe("reflink|nolink(?!\\()","g").replace("reflink",oe(/^!?\[(label)\]\[(ref)\]/).replace("label",Nd).replace("ref",ro).getRegex()).replace("nolink",oe(/^!?\[(ref)\](?:\[\])?/).replace("ref",ro).getRegex()).getRegex(),no=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,_d=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,Ld=oe(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,_d).getRegex(),Xi={_backpedal:Nr,anyPunctuation:Td,anyPunctuationOutsideCode:Ed,autolink:Cd,blockSkip:ud,br:pc,code:ad,del:Nr,delLDelim:Nr,delRDelim:Nr,emStrongLDelim:hd,emStrongRDelimAst:fd,emStrongRDelimUnd:yd,escape:nd,link:zd,nolink:Dd,punctuation:sd,reflink:Rd,reflinkSearch:Pd,tag:Id,text:id,url:Nr},Od={...Xi,emStrongLDelim:md,emStrongRDelimAst:bd,emStrongRDelimUnd:kd,link:oe(/^!?\[(label)\]\((.*?)\)/).replace("label",q0).getRegex(),reflink:oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",q0).getRegex()},ui={...Xi,emStrongRDelimAst:gd,emStrongLDelim:dd,delLDelim:xd,delRDelim:Ad,url:oe(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",Ld).replace("protocol",no).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:oe(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|wwwStart|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",no).replace(/emailProtocol/g,/(?:mailto|xmpp):/).replace("wwwStart",cc?"(?<![^\\s*_~(])www\\.":"www\\.").getRegex()},$d={...ui,br:oe(pc).replace("{2,}","*").getRegex(),text:oe(ui.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},S0={normal:Ki,gfm:td,pedantic:rd},Mn={normal:Xi,gfm:ui,breaks:$d,pedantic:Od},Bd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ao=t=>Bd[t];function mt(t,e){if(e){if(Ue.escapeTest.test(t))return t.replace(Ue.escapeReplace,ao)}else if(Ue.escapeTestNoEncode.test(t))return t.replace(Ue.escapeReplaceNoEncode,ao);return t}function qd(t){return Ue.numericCharacterReference.test(t)?t.replace(Ue.numericCharacterReferenceOrAmpersand,(e,r,n)=>{if(r===void 0&&n===void 0)return"&amp;";let a=r===void 0?Number.parseInt(n,16):Number.parseInt(r,10);return a===0||a>1114111||a>=55296&&a<=57343?"�":a===38?"&amp;":String.fromCodePoint(a)}):t}function io(t){try{t=encodeURI(t).replace(Ue.percentDecode,"%")}catch{return null}return t}function so(t,e){let r=t.replace(Ue.findPipe,(i,s,o)=>{let c=!1,h=s;for(;--h>=0&&o[h]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ue.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Ue.slashPipe,"|");return n}function qt(t,e,r){let n=t.length;if(n===0)return"";let a=0;for(;a<n&&t.charAt(n-a-1)===e;)a++;return t.slice(0,n-a)}function oo(t){let e=t.split(`
1
+ var z1=Object.defineProperty;var js=t=>{throw TypeError(t)};var R1=(t,e,r)=>e in t?z1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var le=(t,e,r)=>R1(t,typeof e!="symbol"?e+"":e,r),D1=(t,e,r)=>e.has(t)||js("Cannot "+r);var Vs=(t,e,r)=>e.has(t)?js("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r);var tn=(t,e,r)=>(D1(t,e,"access private method"),r);import{cR as Vt,b4 as N1,dJ as Xl,a7 as _n,a5 as Ia,a6 as P1,a4 as _1,aa as L1,am as O1,a1 as $1,ea as B1,X as q1,bn as Yl,cU as qr,dI as Zl,b3 as F1,b8 as H1,cC as U1,cS as W1,cn as G1,dD as si,e2 as j1,dX as V1,aK as X0,ax as K1,aF as _i,dH as Ql,ee as Jl,dV as X1,ed as Y1}from"./C2UL5Ler.js";import{D as Ks,b3 as Z1,bd as Q1,aB as J1}from"./BF_gPEg7.js";import{M as eh,G as hn,I as th}from"./Bqd7fdCF.js";import{zz as y0,JH as E,n_ as ve,nZ as xe,aU as rh,m as ec,I as De,br as gn,kf as Li,mf as w0,ar as Xt,me as Xs,mo as Ys,ml as Zs,jO as tc,gA as oi,I2 as nh,tK as ah,B1 as ih,p1 as sh,n3 as k0,CB as oh,iO as lh,my as ch,m9 as uh}from"./B9vHutcJ.js";import{bm as ie}from"./CLAmm_T1.js";import{l as rt}from"./Cu5e4npY.js";import{m as hh,f as Tr}from"./BbhtQrkZ.js";import{a as vn}from"./BdWqymET.js";import{o as pe,r as Kt,e as bn,s as V,_ as Je,l as yn,g as dh,n as Le,c as dr,b as Ve,u as ph,d as mh}from"./CIyUrgF0.js";import{j as rc}from"./uXuxG9cN.js";import{u as fh}from"./BGrimfDs.js";import{selectActiveWorkspaceIds as gh}from"./aZdb_rCN.js";import{i as je}from"./CL3a4Hm1.js";import{l as za,c as Oi}from"./ChTqQfQN.js";import"./KnkAG0HD.js";import{e as vh,h as Er}from"./DONrLvvt.js";import{h as wn}from"./TB9r2XJy.js";import{i as Qs}from"./BBWuirRW.js";import{f as $i,o as nc,p as ac,h as bh,m as ic,i as yh,k as wh}from"./DQw0Iiac.js";const Ze=[];for(let t=0;t<256;++t)Ze.push((t+256).toString(16).slice(1));function kh(t,e=0){return(Ze[t[e+0]]+Ze[t[e+1]]+Ze[t[e+2]]+Ze[t[e+3]]+"-"+Ze[t[e+4]]+Ze[t[e+5]]+"-"+Ze[t[e+6]]+Ze[t[e+7]]+"-"+Ze[t[e+8]]+Ze[t[e+9]]+"-"+Ze[t[e+10]]+Ze[t[e+11]]+Ze[t[e+12]]+Ze[t[e+13]]+Ze[t[e+14]]+Ze[t[e+15]]).toLowerCase()}const xh=new Uint8Array(16);function Sh(){return crypto.getRandomValues(xh)}function Bi(t,e,r){return crypto.randomUUID?crypto.randomUUID():Ah(t)}function Ah(t,e,r){t=t||{};const n=t.random??t.rng?.()??Sh();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,kh(n)}function qi(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=qi({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?eh(r.replace(/\.git\/?$/,""),e):null}function f3(t,e){return t.type==="local"?t.plainFolder?"folder":"local":qi(t,e)?.provider==="gitlab"?"gitlab":"github"}function sc(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function g3(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=sc(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function v3(t){return t.type==="local"&&t.path?t.path:void 0}const Th=["/.clones/","/.repo-cache/"];function b3(t){const e=t.replaceAll("\\","/");return Th.some(r=>e.includes(r))}function y3(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function Eh(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function w3(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??Eh(r)}}function k3(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,sc(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const Ch="known-repos",Mh=6e4;function Ih({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=y0(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(y0(s),s);for(const s of e.repos)a.set(y0(s),s)}const i=[...a.values()].filter(s=>!r[y0(s)]);return n==="all"?i:i.slice(0,9)}function x3(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function S3({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<Mh?"skip":"load"}function A3(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=qi(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function zh({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(Ks)?Ks:null;return s===null||!i(s)?null:s}const T3=E.createSelector(t=>t.workspaceInitializer.hydrated),E3=E.createSelector(t=>t.workspaceInitializer.compactFormState),C3=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),M3=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),I3=E.createSelector(t=>t.workspaceInitializer.branchByRepo),z3=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),R3=E.createSelector(t=>ve(t.workspaceInitializer.recentRepos)),D3=E.createSelector((t,e)=>xe(t.workspaceInitializer.recentRepoRefreshes,e)),N3=E.createSelector((t,e)=>xe(t.workspaceInitializer.directoryStatusChecks,e)),P3=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),_3=E.createSelector(t=>ve(t.workspaceInitializer.remoteSetups)),L3=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),O3=E.createSelector(t=>t.workspaceInitializer.agentByRepo),$3=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),B3=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),q3=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),F3=E.createSelector((t,e)=>({restore:xe(t.workspaceInitializer.draftRestores,e),clear:xe(t.workspaceInitializer.draftClears,e)})),H3=E.createSelector((t,e,r)=>{const n=xe(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),U3=E.createSelector((t,e)=>xe(t.workspaceInitializer.initializationOutcomes,e)),W3=E.createSelector((t,e)=>xe(t.workspaceInitializer.initializationResumes,e)),G3=E.createSelector(t=>zh({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:Q1.select(t),orchestratorId:Z1.select(t)?.id??null})),Rh=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=Vt.select(t);return e&&r&&N1.select(t)?JSON.stringify([r,e]):null}),j3=E.createSelector(t=>{const e=Rh.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),Dh=E.createSelector(t=>{const e=xe(t.workspaceInitializer.recentRepoRefreshes,Ch),r=Vt.select(t);return Ih({saved:ve(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),V3=E.createSelector(t=>Xl.select(t)?Dh.select(t):[]),K3=E.createSelector(t=>J1.select(t)||void 0),Js="workspace-debug-flags",x0={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class Nh{constructor(){le(this,"flags");le(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return x0;try{const e=localStorage.getItem(Js);if(e)return{...x0,...JSON.parse(e)}}catch(e){za.error("Failed to load debug flags:",e)}return x0}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(Js,JSON.stringify(this.flags))}catch(e){za.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...x0},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),za.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const Ra=new Nh;function X3(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function Ph(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Y3(t){if(!t||t.trim().length===0)return ie.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return ie.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return ie.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return ie.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return ie.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return ie.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return ie.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return ie.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return ie.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return ie.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return ie.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return ie.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return ie.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return ie.workspace_sidebarHeader_branchTooLong_error()}function Z3(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function li(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function Q3(t,e){return`${e}:${t.agentId??"manual"}`}function _h(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function Lh(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function Oh(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function J3(t,e,r,n){const a=_h(t,e),i=n?` (origin/${n})`:"";return r?a===1?ie.workspace_sidebarChanges_addToPr_one({suffix:i}):ie.workspace_sidebarChanges_addToPr_many({count:rt(a),suffix:i}):a===1?ie.workspace_sidebarChanges_pushToRemote_one({suffix:i}):ie.workspace_sidebarChanges_pushToRemote_many({count:rt(a),suffix:i})}function e6(t,e,r){const n=Lh(t,e),a=r?` (origin/${r})`:"";return n===1?ie.workspace_sidebarChanges_undoPush_one({suffix:a}):ie.workspace_sidebarChanges_undoPush_many({count:rt(n),suffix:a})}function t6(t,e){const r=Oh(t,e);return r===1?ie.workspace_sidebarChanges_undoCommit_one():ie.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function r6(t,e){return e===0&&t.length>0}function n6(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function a6(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function i6(t,e,r){return r?.path===t&&r?.staged===e}function s6(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function o6(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function $h(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function l6(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=$h(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:li(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?Fi(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:li(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function c6(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??rh.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function Bh(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function Da(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=_n(i),c=o.toLowerCase(),h=a.find(d=>!!o&&d.url.toLowerCase()===c||(i.resource||i.monitorAvailability?d.monitorIdentity===Ia(i):!d.resource&&!d.monitorAvailability&&(s?!d.crossRepo&&d.number===i.prNumber:d.crossRepo===i.repo&&d.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?Ia(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${P1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?Ia(i):void 0,url:o,htmlUrl:o,status:Bh(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:Fi(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function Fi(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function u6(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const k of n)k.repoOwner&&k.repoName&&s.add(`${k.repoOwner}/${k.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(k=>k.crossRepo)){o=[];for(const k of t)k.crossRepo?s.has(k.crossRepo.toLowerCase())?c.push(k):h.push(k):o.push(k)}const d=[],v=[],m=[];for(const k of e){const I=k.repo.toLowerCase();_n(k)&&o.some(R=>R.url===_n(k))||!k.resource&&!k.monitorAvailability&&(!i||I===i)?d.push(k):_n(k)&&c.some(R=>R.url===_n(k))||!k.resource&&!k.monitorAvailability&&s.has(I)?v.push(k):m.push(k)}const w=Da(o,d,r),A=r?.split("/")[0],C=new Set([...w,...c,...h].map(k=>`${(k.crossRepo??r??"").toLowerCase()}#${k.number}`)),M=[...c];for(const k of n){if(!k.repoOwner||!k.repoName)continue;const I=`${k.repoOwner}/${k.repoName}`;for(const R of k.pullRequests??[]){const Z=`${I.toLowerCase()}#${R.number}`;if(C.has(Z))continue;C.add(Z);const K=R.url||`https://github.com/${I}/pull/${R.number}`,ee=i!==void 0&&I.toLowerCase()===i;M.push({number:R.number,title:a(R),url:K,htmlUrl:K,status:li(R.status),createdAt:R.createdAt,updatedAt:R.updatedAt,crossRepo:ee?void 0:I,crossRepoDisplay:ee?void 0:Fi(I,A)})}}return{own:w,otherRoots:Da(M,v,r),otherTracked:Da(h,m,r)}}function eo(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function h6(t){const e=t.status==="merged"?ie.workspace_prSection_merged_label():t.status==="closed"?ie.workspace_prSection_closed_label():t.status==="draft"?ie.workspace_prSection_statusDraft_label():eo(t)?ie.workspace_prSection_statusQueued_label():ie.workspace_prSection_statusOpen_label(),r=[_1(t)??e],n=eo(t)?hh(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(ie.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(ie.workspace_prSection_statusChecks_tooltip({passed:rt(a.checks.passed),failed:rt(a.checks.failed),pending:rt(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?ie.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?ie.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:rt(a.approvals.have),needed:rt(a.approvals.needed)}):ie.workspace_prSection_statusApprovals_tooltip({count:rt(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(ie.workspace_prSection_statusChangesRequested_tooltip({count:rt(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(ie.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(ie.workspace_prSection_statusUnresolvedThreads_tooltip({count:rt(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(ie.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(Ph(a.mergeBlockedReason))),r.join(`
2
+ `)}function d6(t,e){return e.has(t??"manual")}function p6(t,e){return{path:t.relativePath,additions:t.stats.additions,deletions:t.stats.deletions,staged:e,status:t.status,attribution:t.attribution?.agent?{agentId:t.attribution.agent.agentId,agentName:t.attribution.agent.agentName,sessionId:t.attribution.agent.sessionId,turnNumber:t.attribution.agent.turnNumber,timestamp:t.attribution.timestamp}:void 0}}const oc=500;function m6(t,e=oc){const r=Math.max(0,Math.floor(e));return t.length<=r?{visible:t,shown:t.length,hiddenCount:0}:{visible:t.slice(0,r),shown:r,hiddenCount:t.length-r}}function f6(t,e,r=oc){let n=Math.max(0,Math.floor(r)),a=0,i=0;return{groups:t.map(o=>{if(e(o))return{group:o,visibleFiles:[]};const c=Math.min(n,o.files.length);return n-=c,a+=c,i+=o.files.length-c,{group:o,visibleFiles:c===o.files.length?o.files:o.files.slice(0,c)}}),shown:a,hiddenCount:i}}function g6(t){if(t.hiddenCount<=0)return"";const e=rt(t.shown),r=rt(t.shown+t.hiddenCount);return t.hiddenCount===1?ie.workspace_fileChanges_hiddenFiles_one({shown:e,total:r}):ie.workspace_fileChanges_hiddenFiles_many({shown:e,total:r,count:rt(t.hiddenCount)})}function qh(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function ci(t){return t.startsWith("@")?t.slice(1):t}function Fh(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return ci(String(a));const i=[r,e,n.trim()].map(ci).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?L1(s).path:void 0}function Hh(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function Uh(t){if(!t||t.getAttribute("data-mention")===null)return null;const e=t.getAttribute("data-type")||"",r=t.getAttribute("data-id")||"",n=t.getAttribute("data-label")||"",a=t.getAttribute("data-uri")||"",i=qh(t.getAttribute("data-meta")),s={type:e,id:r,label:n,uri:a,meta:i},o=a.startsWith("intent://")?a:typeof i.fullUrl=="string"&&i.fullUrl.startsWith("intent://")?i.fullUrl:void 0;if(o&&(s.intentUrl=o),e==="file"||e==="file-range"){const c=Fh(i,n,r,t.textContent||"");c&&(s.filePath=c);const h=Hh(i);h!==void 0&&(s.line=h)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,h=c?ci(String(c)).replace(/\/+$/,""):"";h&&(s.folderPath=h)}else if(e==="note"||e==="note-range"){const c=i.noteId||r;c&&(s.note=i.isExternalLink&&i.workspaceId?{id:c,workspaceId:String(i.workspaceId)}:{id:c})}return s}function v6(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function Hi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Fr=Hi();function lc(t){Fr=t}var Nr={exec:()=>null};function Cr(t){let e=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=e[n];return a||(a=t(n),e[n]=a),a}}function oe(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Ue.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var cc=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ue={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,listInterruptsParagraph:/^ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+)[ \t]*)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,blockquoteMarkerWhitespace:/^( {0,3}>)(\t[ \t]*)/gm,nestedBlockMarker:/^ {0,3}(?:(?:[*+-]|\d{1,9}[.)])(?: |$)|> ?)/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\][ \t]+\S/,listReplaceTask:/^\[[ xX]\][ \t]+/,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,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,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:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Cr(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Cr(t=>new RegExp(`^ {0,${t}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:Cr(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Cr(t=>new RegExp(`^ {0,${t}}#{1,6}(?:\\s|$)`)),pedanticHeadingBeginRegex:Cr(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Cr(t=>new RegExp(`^ {0,${t}}(?:</?(?:${Wi})(?:[ \\t]+|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,"i")),blockquoteBeginRegex:Cr(t=>new RegExp(`^ {0,${t}}>`)),nestedContainerMarkers:/^(?: {0,3}(?:(?:[*+-]|\d{1,9}[.)])[ \t]+|>[ \t]?))+/},Wh=/^(?:[ \t]*(?:\n|$))+/,Gh=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,jh=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}(?:(?=`)\1`*|(?=~)\1~*) *(?=\n|$)|$)/,Kn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Vh=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ui=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Wi="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",Xn=oe(" {0,3}(?:</?(?:tag)(?:[ \\t]+|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",Wi).getRegex(),uc=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+)[ \t]*(?:\n+|$)/,hc=oe(uc).replace(/bull/g,Ui).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/\|table/g,"").replace(/html/g,Xn).getRegex(),Kh=oe(uc).replace(/bull/g,Ui).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).replace(/html/g,Xn).getRegex(),Gi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Xh=/^[^\n]+/,ji=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\\n]|\n(?![ \t]*\n))+/,Yh=oe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<(?:\\.|[^\n<>\\])*>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ji).replace("title",/(?:"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\\n]|\n(?!\n))*'|\((?:\\[\s\S]|[^()\\])*\))/).getRegex(),Zh=oe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Ui).getRegex(),Vi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Qh=oe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?:[ \\t]+|\\n|/?>|$)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*?[ \\t]*/?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Vi).replace("tag",Wi).replace("attribute",/[ \t]+[a-zA-Z:_][\w.:-]*(?:[ \t]*=[ \t]*"[^"\n]*"|[ \t]*=[ \t]*'[^'\n]*'|[ \t]*=[ \t]*[^\s"'=<>`]+)?/).getRegex(),dc=t=>oe(Gi).replace("hr",Kn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html",Xn).getRegex(),Jh=dc(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),ed=dc(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),td=oe(/^( {0,3}> ?(?:(?![ \t]*(?:\n|$))(paragraph)|[^\n]*)(?:\n|$))+/).replace("paragraph",ed).getRegex(),Ki={blockquote:td,code:Gh,def:Yh,fences:jh,heading:Vh,hr:Kn,html:Qh,lheading:hc,list:Zh,newline:Wh,paragraph:Jh,table:Nr,text:Xh},to=oe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Kn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html",Xn).getRegex(),rd={...Ki,lheading:Kh,table:to,paragraph:oe(Gi).replace("hr",Kn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",to).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html",Xn).getRegex()},nd={...Ki,html:oe(`^ *(?:comment(?: *\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1>(?: *\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?>(?: *\\n{2,}|\\s*$))`).replace("comment",Vi).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:Nr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:oe(Gi).replace("hr",Kn).replace("heading",` *#{1,6} *[^
3
+ ]`).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").replace("lheading",hc).getRegex()},ad=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,id=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,pc=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,sd=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Pt=/[\p{P}\p{S}]/u,kn=/[\s\p{P}\p{S}]/u,Yn=/[^\s\p{P}\p{S}]/u,od=oe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,kn).getRegex(),ld=/[\p{Pi}\p{Ps}"']/u,mc=/(?!~)[\p{P}\p{S}]/u,cd=/(?!~)[\s\p{P}\p{S}]/u,ud=/(?:[^\s\p{P}\p{S}]|~)/u,hd=oe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",cc?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),fc=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,dd=oe(fc,"u").replace(/punct/g,Pt).getRegex(),pd=oe(fc,"u").replace(/punct/g,mc).getRegex(),md=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,fd=oe(md,"u").replace(/openQuote/g,ld).replace(/punct/g,Pt).getRegex(),gc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",gd=oe(gc,"gu").replace(/notPunctSpace/g,Yn).replace(/punctSpace/g,kn).replace(/punct/g,Pt).getRegex(),vd=oe(gc,"gu").replace(/notPunctSpace/g,ud).replace(/punctSpace/g,cd).replace(/punct/g,mc).getRegex(),bd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",yd=oe(bd,"gu").replace(/notPunctSpace/g,Yn).replace(/punctSpace/g,kn).replace(/punct/g,Pt).getRegex(),wd=oe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Yn).replace(/punctSpace/g,kn).replace(/punct/g,Pt).getRegex(),kd="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",xd=oe(kd,"gu").replace(/notPunctSpace/g,Yn).replace(/punctSpace/g,kn).replace(/punct/g,Pt).getRegex(),Sd=oe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Pt).getRegex(),Ad="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Td=oe(Ad,"gu").replace(/notPunctSpace/g,Yn).replace(/punctSpace/g,kn).replace(/punct/g,Pt).getRegex(),Ed=oe(/\\(punct)/,"gu").replace(/punct/g,Pt).getRegex(),Cd=oe(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/,"gu").replace(/punct/g,Pt).getRegex(),Md=oe(/^<(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(),Id=oe(Vi).replace("(?:-->|$)","-->").getRegex(),zd=oe("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Id).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vc=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,q0=oe(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",vc).getRegex(),Rd=oe(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label",q0).replace("href",/<(?:\\.|[^\n<>\\])*>|(?!<)[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|\((?:\\[\s\S]|[^)\\])*\)/).getRegex(),Dd=oe(/^!?\[(label)\]\[(ref)\]/).replace("label",q0).replace("ref",ji).getRegex(),Nd=oe(/^!?\[(ref)\](?:\[\])?/).replace("ref",ji).getRegex(),ro=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,Pd=oe(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",vc).getRegex(),_d=oe("reflink|nolink(?!\\()","g").replace("reflink",oe(/^!?\[(label)\]\[(ref)\]/).replace("label",Pd).replace("ref",ro).getRegex()).replace("nolink",oe(/^!?\[(ref)\](?:\[\])?/).replace("ref",ro).getRegex()).getRegex(),no=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ld=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,Od=oe(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,Ld).getRegex(),Xi={_backpedal:Nr,anyPunctuation:Ed,anyPunctuationOutsideCode:Cd,autolink:Md,blockSkip:hd,br:pc,code:id,del:Nr,delLDelim:Nr,delRDelim:Nr,emStrongLDelim:dd,emStrongRDelimAst:gd,emStrongRDelimUnd:wd,escape:ad,link:Rd,nolink:Nd,punctuation:od,reflink:Dd,reflinkSearch:_d,tag:zd,text:sd,url:Nr},$d={...Xi,emStrongLDelim:fd,emStrongRDelimAst:yd,emStrongRDelimUnd:xd,link:oe(/^!?\[(label)\]\((.*?)\)/).replace("label",q0).getRegex(),reflink:oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",q0).getRegex()},ui={...Xi,emStrongRDelimAst:vd,emStrongLDelim:pd,delLDelim:Sd,delRDelim:Td,url:oe(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",Od).replace("protocol",no).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:oe(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|wwwStart|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",no).replace(/emailProtocol/g,/(?:mailto|xmpp):/).replace("wwwStart",cc?"(?<![^\\s*_~(])www\\.":"www\\.").getRegex()},Bd={...ui,br:oe(pc).replace("{2,}","*").getRegex(),text:oe(ui.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},S0={normal:Ki,gfm:rd,pedantic:nd},Mn={normal:Xi,gfm:ui,breaks:Bd,pedantic:$d},qd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ao=t=>qd[t];function mt(t,e){if(e){if(Ue.escapeTest.test(t))return t.replace(Ue.escapeReplace,ao)}else if(Ue.escapeTestNoEncode.test(t))return t.replace(Ue.escapeReplaceNoEncode,ao);return t}function Fd(t){return Ue.numericCharacterReference.test(t)?t.replace(Ue.numericCharacterReferenceOrAmpersand,(e,r,n)=>{if(r===void 0&&n===void 0)return"&amp;";let a=r===void 0?Number.parseInt(n,16):Number.parseInt(r,10);return a===0||a>1114111||a>=55296&&a<=57343?"�":a===38?"&amp;":String.fromCodePoint(a)}):t}function io(t){try{t=encodeURI(t).replace(Ue.percentDecode,"%")}catch{return null}return t}function so(t,e){let r=t.replace(Ue.findPipe,(i,s,o)=>{let c=!1,h=s;for(;--h>=0&&o[h]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ue.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Ue.slashPipe,"|");return n}function qt(t,e,r){let n=t.length;if(n===0)return"";let a=0;for(;a<n&&t.charAt(n-a-1)===e;)a++;return t.slice(0,n-a)}function oo(t){let e=t.split(`
4
4
  `),r=e.length-1;for(;r>=0&&Ue.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
5
5
  `)}function F0(t){return t.trim().replace(Ue.multipleSpaceGlobal," ").toLowerCase().toUpperCase().toLowerCase()}function lo(t,e){if(t.indexOf(e[0])===-1&&t.indexOf(e[1])===-1)return-1;let r=0;for(let n=0;n<t.length;n++)if(t[n]==="\\")n++;else if(t[n]===e[0])r++;else if(t[n]===e[1]&&(r--,r<0))return n;return r>0?-2:-1}var dn=new WeakMap;function Yi(t){let e={"*":-1,_:-1},r=-1,n=t.length;for(let a=0;a<n;a++){let i=t[a];if(i!=="*"&&i!=="_"&&i!=="~")continue;let s=a===0?`
6
6
  `:t[a-1],o=a+1;for(;o<n&&t[o]===i;)o++;s!==" "&&s!==" "&&s!==`
7
- `&&s!=="\r"&&s!=="\f"&&(i==="~"?r=a:e[i]=a),a=o-1}return{maskedSrc:t,lastPossibleEmStrongCloserIndex:e,lastPossibleDelCloserIndex:r}}function Fd(t,e){let r=Yi(e),n=dn.get(t);n?n.push(r):dn.set(t,[r])}function Hd(t){let e=dn.get(t);e&&(e.pop(),e.length===0&&dn.delete(t))}function bc(t,e,r){let n=dn.get(t)?.at(-1);return n&&n.maskedSrc===e?n.lastPossibleEmStrongCloserIndex[r]:Yi(e).lastPossibleEmStrongCloserIndex[r]}function yc(t,e){let r=dn.get(t)?.at(-1);return r&&r.maskedSrc===e?r.lastPossibleDelCloserIndex:Yi(e).lastPossibleDelCloserIndex}function A0(t,e=0){let r=e,n="";for(let a of t)if(a===" "){let i=4-r%4;n+=" ".repeat(i),r+=i}else n+=a,r++;return n}function Ud(t,e){let r="";for(let n=0;n<t.length;n++){if(t[n]==="`"){let a=e.inline.code.exec(t.slice(n));if(a){r+=a[0],n+=a[0].length-1;continue}}if(t[n]==="\\"&&(t[n+1]==="["||t[n+1]==="]")){r+=t[n+1],n++;continue}r+=t[n]}return r}function co(t,e,r,n,a){let i=e.href,s=e.title||null,o=Ud(t[1],a),c=t[0].charAt(0)==="!",h=n.state.inLink,d=n.state.linkEmitted,v=n.state.inRawBlock;n.state.inLink=!0,n.state.linkEmitted=!1;let m=n.inlineTokens(o),w=n.state.linkEmitted;if(n.state.linkEmitted=d,n.state.inLink=h,!c){if(w){n.state.inRawBlock=v;return}n.state.linkEmitted=!0}return{type:c?"image":"link",raw:r,href:i,title:s,text:o,tokens:m}}function Wd(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(n===null)return e;let a=n[1];return e.split(`
7
+ `&&s!=="\r"&&s!=="\f"&&(i==="~"?r=a:e[i]=a),a=o-1}return{maskedSrc:t,lastPossibleEmStrongCloserIndex:e,lastPossibleDelCloserIndex:r}}function Hd(t,e){let r=Yi(e),n=dn.get(t);n?n.push(r):dn.set(t,[r])}function Ud(t){let e=dn.get(t);e&&(e.pop(),e.length===0&&dn.delete(t))}function bc(t,e,r){let n=dn.get(t)?.at(-1);return n&&n.maskedSrc===e?n.lastPossibleEmStrongCloserIndex[r]:Yi(e).lastPossibleEmStrongCloserIndex[r]}function yc(t,e){let r=dn.get(t)?.at(-1);return r&&r.maskedSrc===e?r.lastPossibleDelCloserIndex:Yi(e).lastPossibleDelCloserIndex}function A0(t,e=0){let r=e,n="";for(let a of t)if(a===" "){let i=4-r%4;n+=" ".repeat(i),r+=i}else n+=a,r++;return n}function Wd(t,e){let r="";for(let n=0;n<t.length;n++){if(t[n]==="`"){let a=e.inline.code.exec(t.slice(n));if(a){r+=a[0],n+=a[0].length-1;continue}}if(t[n]==="\\"&&(t[n+1]==="["||t[n+1]==="]")){r+=t[n+1],n++;continue}r+=t[n]}return r}function co(t,e,r,n,a){let i=e.href,s=e.title||null,o=Wd(t[1],a),c=t[0].charAt(0)==="!",h=n.state.inLink,d=n.state.linkEmitted,v=n.state.inRawBlock;n.state.inLink=!0,n.state.linkEmitted=!1;let m=n.inlineTokens(o),w=n.state.linkEmitted;if(n.state.linkEmitted=d,n.state.inLink=h,!c){if(w){n.state.inRawBlock=v;return}n.state.linkEmitted=!0}return{type:c?"image":"link",raw:r,href:i,title:s,text:o,tokens:m}}function Gd(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(n===null)return e;let a=n[1];return e.split(`
8
8
  `).map(i=>{let s=i.match(r.other.beginningSpace);if(s===null)return i;let[o]=s;return i.slice(Math.min(o.length,a.length))}).join(`
9
- `)}function uo(t,e,r,n){if(!e.includes("<"))return!1;for(let a=0;a<e.length;a++){if(e[a]==="\\"){a++;continue}if(e[a]==="`"){let o=n.inline.code.exec(e.slice(a));if(o){a+=o[0].length-1;continue}}if(e[a]!=="<")continue;let i=t.slice(r+a),s=n.inline.tag.exec(i)||n.inline.autolink.exec(i);if(s){if(s[0].length>e.length-a)return!0;a+=s[0].length-1}}return!1}var cr=class{constructor(t){le(this,"options");le(this,"rules");le(this,"lexer");this.options=t||Fr}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let r=this.options.pedantic?e[0]:oo(e[0]),n=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:n}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let r=e[0],n=Wd(r,e[3]||"",this.rules);return e[3]!==void 0&&(n===""||n.endsWith(`
9
+ `)}function uo(t,e,r,n){if(!e.includes("<"))return!1;for(let a=0;a<e.length;a++){if(e[a]==="\\"){a++;continue}if(e[a]==="`"){let o=n.inline.code.exec(e.slice(a));if(o){a+=o[0].length-1;continue}}if(e[a]!=="<")continue;let i=t.slice(r+a),s=n.inline.tag.exec(i)||n.inline.autolink.exec(i);if(s){if(s[0].length>e.length-a)return!0;a+=s[0].length-1}}return!1}var ur=class{constructor(t){le(this,"options");le(this,"rules");le(this,"lexer");this.options=t||Fr}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let r=this.options.pedantic?e[0]:oo(e[0]),n=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:n}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let r=e[0],n=Gd(r,e[3]||"",this.rules);return e[3]!==void 0&&(n===""||n.endsWith(`
10
10
  `))&&(n+=`
11
11
  `),{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let r=e[2].trim();if(this.rules.other.endingHash.test(r)){let n=qt(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceTabChar.test(n))&&(r=n.trim())}return{type:"heading",raw:qt(e[0],`
12
12
  `),depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:qt(e[0],`
@@ -39,8 +39,8 @@ ${k}`)?` ${W.replace(/^ {0,3}/,"")}`:k;m+=`
39
39
  `):[],i={type:"table",raw:qt(e[0],`
40
40
  `),header:[],align:[],rows:[]};if(r.length===n.length){for(let s of n)this.rules.other.tableAlignRight.test(s)?i.align.push("right"):this.rules.other.tableAlignCenter.test(s)?i.align.push("center"):this.rules.other.tableAlignLeft.test(s)?i.align.push("left"):i.align.push(null);for(let s=0;s<r.length;s++)i.header.push({text:r[s],tokens:this.lexer.inline(r[s]),header:!0,align:i.align[s]});for(let s of a)i.rows.push(so(s,i.header.length).map((o,c)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:i.align[c]})));return i}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let r=e[1].trim();return{type:"heading",raw:qt(e[0],`
41
41
  `),depth:e[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let r=e[1].charAt(e[1].length-1)===`
42
- `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){if(t.charCodeAt(0)!==92)return;let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){if(t.charCodeAt(0)!==60)return;let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){if(this.lexer.state.linkParenPossible===!1)return;let e=t.charCodeAt(0);if(e!==91&&e!==33)return;let r=this.rules.inline.link.exec(t);if(r){let n=r[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&uo(t,r[1],n,this.rules))return;let a=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;let c=qt(a.slice(0,-1),"\\");if((a.length-c.length)%2===0)return}else{let c=lo(r[2],"()");if(c===-2)return;if(c>-1){let h=(r[0].indexOf("!")===0?5:4)+r[1].length+c;r[2]=r[2].substring(0,c),r[0]=r[0].substring(0,h).trim(),r[3]=""}}let i=qt(r[0].slice(0,-1),"\\");if((r[0].length-i.length)%2===0)return;let s=r[2],o="";if(this.options.pedantic){let c=this.rules.other.pedanticHrefTitle.exec(s);c&&(s=c[1],o=c[3])}else o=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?s=s.slice(1):s=s.slice(1,-1)),co(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,e){let r=t.charCodeAt(0);if(r!==91&&r!==33)return;let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let a=n[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&uo(t,n[1],a,this.rules))return;let i=e[F0(n[2]||n[1])];if(!i){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return co(n,i,n[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!n||!n[1]&&!n[2]&&!n[3]&&!n[4])return;let a=n[0][0],i=r===a,s=e.length-t.length,o=s;for(;!this.options.pedantic&&o>0&&e[o-1]===a;)o--;let c=[...e.slice(Math.max(0,o-2),o)].at(-1)??"",h=c==="*"||c==="_"||!!this.rules.inline.punctuation.exec(c);o<s&&(r=c);let d=o<s?h:r==="*"||r==="_"||!!this.rules.inline.punctuation.exec(r);if(n[4]&&r.match(this.rules.other.unicodeAlphaNumeric))return;let v=n[1]||n[3]||"";if(!v||!r||d){let m=[...n[0]].length-1,w,A,C=m,M=0,k=s-o+m,I=!this.options.pedantic&&!!c.trim()&&(!!v||a==="*"&&!h);if(a!=="*"&&a!=="_")return;let R=a==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd,Z=bc(this,e,a),K=e.length-t.length+m;if(Z<K)return;e=e.slice(-1*t.length+m);let ee=Z-K;for(R.lastIndex=0;(n=R.exec(e))!==null&&!(n.index>ee);){if(w=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!w)continue;if(A=[...w].length,n[3]||n[4]){C+=A;continue}else if((n[5]||n[6]||I)&&k%3&&!((k+A)%3)){if(i&&(n[5]||n[6]))break;M+=A;continue}if(C-=A,C>0)continue;A=Math.min(A,A+C+M);let T=[...n[0]][0].length,B=t.slice(0,m+n.index+T+A);if(Math.min(m,A)%2){let X=B.slice(1,-1);return{type:"em",raw:B,text:X,tokens:this.lexer.inlineTokens(X)}}let q=B.slice(2,-2);return{type:"strong",raw:B,text:q,tokens:this.lexer.inlineTokens(q)}}}}codespan(t){if(t.charCodeAt(0)!==96)return;let e=this.rules.inline.code.exec(t);if(e){let r=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(r),a=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&a&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:e[0],text:r}}}br(t){let e=t.charCodeAt(0);if(e!==32&&e!==92&&e!==10)return;let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t,e,r=""){if(t.charCodeAt(0)!==126)return;let n=this.rules.inline.delLDelim.exec(t);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let a=[...n[0]].length-1,i,s,o=a,c=this.rules.inline.delRDelim,h=yc(this,e),d=e.length-t.length+a;if(h<d)return;e=e.slice(-1*t.length+a);let v=h-d;for(c.lastIndex=0;(n=c.exec(e))!==null&&!(n.index>v);){if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!i||(s=[...i].length,s!==a))continue;if(n[3]||n[4]){o+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o);let m=[...n[0]][0].length,w=t.slice(0,a+n.index+m+s),A=w.slice(a,-a);return{type:"del",raw:w,text:A,tokens:this.lexer.inlineTokens(A)}}}}autolink(t){if(t.charCodeAt(0)!==60)return;let e=this.rules.inline.autolink.exec(t);if(e){let r,n;return e[2]==="@"?(r=e[1],n="mailto:"+r):(r=e[1],n=r),{type:"link",raw:e[0],text:r,href:n,autolink:!0,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let r,n;if(e[2]==="@")r=e[0],n="mailto:"+r;else{let a;do a=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(a!==e[0]);r=e[0],e[1]==="www."?n="http://"+e[0]:n=e[0]}return{type:"link",raw:e[0],text:r,href:n,autolink:!0,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let r=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:r?e[0]:qd(e[0]),escaped:r}}}},It,wc,hi,kc,xc,Lr,wt=(Lr=class{constructor(e){Vs(this,It);le(this,"tokens");le(this,"options");le(this,"state");le(this,"inlineQueue");le(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Fr,this.options.tokenizer=this.options.tokenizer||new cr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,linkParenPossible:!0,top:!0};let r={other:Ue,block:S0.normal,inline:Mn.normal};this.options.pedantic?(r.block=S0.pedantic,r.inline=Mn.pedantic):this.options.gfm&&(r.block=S0.gfm,this.options.breaks?r.inline=Mn.breaks:r.inline=Mn.gfm),this.tokenizer.rules=r}static get rules(){return{block:S0,inline:Mn}}static lex(e,r){return new Lr(r).lex(e)}static lexInline(e,r){return new Lr(r).inlineTokens(e)}lex(e){e=e.replace(Ue.carriageReturn,`
43
- `),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.state.inRawBlock=!1,this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],n=!1){this.tokenizer.lexer=this;let a=this.state.lastToken;this.options.pedantic&&(e=e.replace(Ue.tabCharGlobal," ").replace(Ue.spaceLine,""));let i=1/0,s,o=this.options.gfm&&!this.options.pedantic&&this.tokenizer.paragraph===cr.prototype.paragraph;for(;e;){if(e.length<i)i=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}this.state.lastToken=r.at(-1);let c;if(this.options.extensions?.block?.some(d=>(c=d.call({lexer:this},e,r))?(e=e.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(e)){e=e.substring(c.raw.length);let d=r.at(-1);c.raw.length===1&&d!==void 0?d.raw+=`
42
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){if(t.charCodeAt(0)!==92)return;let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){if(t.charCodeAt(0)!==60)return;let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){if(this.lexer.state.linkParenPossible===!1)return;let e=t.charCodeAt(0);if(e!==91&&e!==33)return;let r=this.rules.inline.link.exec(t);if(r){let n=r[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&uo(t,r[1],n,this.rules))return;let a=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;let c=qt(a.slice(0,-1),"\\");if((a.length-c.length)%2===0)return}else{let c=lo(r[2],"()");if(c===-2)return;if(c>-1){let h=(r[0].indexOf("!")===0?5:4)+r[1].length+c;r[2]=r[2].substring(0,c),r[0]=r[0].substring(0,h).trim(),r[3]=""}}let i=qt(r[0].slice(0,-1),"\\");if((r[0].length-i.length)%2===0)return;let s=r[2],o="";if(this.options.pedantic){let c=this.rules.other.pedanticHrefTitle.exec(s);c&&(s=c[1],o=c[3])}else o=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?s=s.slice(1):s=s.slice(1,-1)),co(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,e){let r=t.charCodeAt(0);if(r!==91&&r!==33)return;let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let a=n[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&uo(t,n[1],a,this.rules))return;let i=e[F0(n[2]||n[1])];if(!i){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return co(n,i,n[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!n||!n[1]&&!n[2]&&!n[3]&&!n[4])return;let a=n[0][0],i=r===a,s=e.length-t.length,o=s;for(;!this.options.pedantic&&o>0&&e[o-1]===a;)o--;let c=[...e.slice(Math.max(0,o-2),o)].at(-1)??"",h=c==="*"||c==="_"||!!this.rules.inline.punctuation.exec(c);o<s&&(r=c);let d=o<s?h:r==="*"||r==="_"||!!this.rules.inline.punctuation.exec(r);if(n[4]&&r.match(this.rules.other.unicodeAlphaNumeric))return;let v=n[1]||n[3]||"";if(!v||!r||d){let m=[...n[0]].length-1,w,A,C=m,M=0,k=s-o+m,I=!this.options.pedantic&&!!c.trim()&&(!!v||a==="*"&&!h);if(a!=="*"&&a!=="_")return;let R=a==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd,Z=bc(this,e,a),K=e.length-t.length+m;if(Z<K)return;e=e.slice(-1*t.length+m);let ee=Z-K;for(R.lastIndex=0;(n=R.exec(e))!==null&&!(n.index>ee);){if(w=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!w)continue;if(A=[...w].length,n[3]||n[4]){C+=A;continue}else if((n[5]||n[6]||I)&&k%3&&!((k+A)%3)){if(i&&(n[5]||n[6]))break;M+=A;continue}if(C-=A,C>0)continue;A=Math.min(A,A+C+M);let T=[...n[0]][0].length,B=t.slice(0,m+n.index+T+A);if(Math.min(m,A)%2){let X=B.slice(1,-1);return{type:"em",raw:B,text:X,tokens:this.lexer.inlineTokens(X)}}let q=B.slice(2,-2);return{type:"strong",raw:B,text:q,tokens:this.lexer.inlineTokens(q)}}}}codespan(t){if(t.charCodeAt(0)!==96)return;let e=this.rules.inline.code.exec(t);if(e){let r=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(r),a=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&a&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:e[0],text:r}}}br(t){let e=t.charCodeAt(0);if(e!==32&&e!==92&&e!==10)return;let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t,e,r=""){if(t.charCodeAt(0)!==126)return;let n=this.rules.inline.delLDelim.exec(t);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let a=[...n[0]].length-1,i,s,o=a,c=this.rules.inline.delRDelim,h=yc(this,e),d=e.length-t.length+a;if(h<d)return;e=e.slice(-1*t.length+a);let v=h-d;for(c.lastIndex=0;(n=c.exec(e))!==null&&!(n.index>v);){if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!i||(s=[...i].length,s!==a))continue;if(n[3]||n[4]){o+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o);let m=[...n[0]][0].length,w=t.slice(0,a+n.index+m+s),A=w.slice(a,-a);return{type:"del",raw:w,text:A,tokens:this.lexer.inlineTokens(A)}}}}autolink(t){if(t.charCodeAt(0)!==60)return;let e=this.rules.inline.autolink.exec(t);if(e){let r,n;return e[2]==="@"?(r=e[1],n="mailto:"+r):(r=e[1],n=r),{type:"link",raw:e[0],text:r,href:n,autolink:!0,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let r,n;if(e[2]==="@")r=e[0],n="mailto:"+r;else{let a;do a=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(a!==e[0]);r=e[0],e[1]==="www."?n="http://"+e[0]:n=e[0]}return{type:"link",raw:e[0],text:r,href:n,autolink:!0,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let r=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:r?e[0]:Fd(e[0]),escaped:r}}}},It,wc,hi,kc,xc,Lr,wt=(Lr=class{constructor(e){Vs(this,It);le(this,"tokens");le(this,"options");le(this,"state");le(this,"inlineQueue");le(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Fr,this.options.tokenizer=this.options.tokenizer||new ur,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,linkParenPossible:!0,top:!0};let r={other:Ue,block:S0.normal,inline:Mn.normal};this.options.pedantic?(r.block=S0.pedantic,r.inline=Mn.pedantic):this.options.gfm&&(r.block=S0.gfm,this.options.breaks?r.inline=Mn.breaks:r.inline=Mn.gfm),this.tokenizer.rules=r}static get rules(){return{block:S0,inline:Mn}}static lex(e,r){return new Lr(r).lex(e)}static lexInline(e,r){return new Lr(r).inlineTokens(e)}lex(e){e=e.replace(Ue.carriageReturn,`
43
+ `),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.state.inRawBlock=!1,this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],n=!1){this.tokenizer.lexer=this;let a=this.state.lastToken;this.options.pedantic&&(e=e.replace(Ue.tabCharGlobal," ").replace(Ue.spaceLine,""));let i=1/0,s,o=this.options.gfm&&!this.options.pedantic&&this.tokenizer.paragraph===ur.prototype.paragraph;for(;e;){if(e.length<i)i=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}this.state.lastToken=r.at(-1);let c;if(this.options.extensions?.block?.some(d=>(c=d.call({lexer:this},e,r))?(e=e.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(e)){e=e.substring(c.raw.length);let d=r.at(-1);c.raw.length===1&&d!==void 0?d.raw+=`
44
44
  `:r.push(c);continue}if(c=this.tokenizer.code(e)){e=e.substring(c.raw.length);let d=r.at(-1);d?.type==="paragraph"||d?.type==="text"?(d.raw+=(d.raw.endsWith(`
45
45
  `)?"":`
46
46
  `)+c.raw,d.text+=`
@@ -53,7 +53,7 @@ ${k}`)?` ${W.replace(/^ {0,3}/,"")}`:k;m+=`
53
53
  `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text,s=d):(r.push(c),s=c),n=h.length!==e.length,e=e.substring(c.raw.length);continue}if(c=this.tokenizer.text(e)){e=e.substring(c.raw.length);let d=r.at(-1);d?.type==="text"?(d.raw+=(d.raw.endsWith(`
54
54
  `)?"":`
55
55
  `)+c.raw,d.text+=`
56
- `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):r.push(c);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,this.state.lastToken=a,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}linkInText(e){if(!e.includes("["))return!1;let r=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(r.test(n[0])&&e.charAt(n.index-1)!=="!")return!0;for(let n of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let a=n[0],i=a.lastIndexOf("[");if(!(a.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,F0(a.slice(i+1,-1))))&&!(i>1&&this.linkInText(a.slice(1,i-1))))return!0}return!1}inlineTokens(e,r=[]){this.tokenizer.lexer=this;let n=this.state.linkParenPossible;this.state.linkParenPossible=e.includes(")");try{return tn(this,It,wc).call(this,e,r)}finally{this.state.linkParenPossible=n}}infiniteLoopError(e){let r="Infinite loop on byte: "+e;if(this.options.silent)console.error(r);else throw new Error(r)}},It=new WeakSet,wc=function(e,r){let n=e.includes("*")||e.includes("_")||e.includes("~"),a=n||this.options.hooks?.emStrongMask||this.tokenizer.emStrong!==cr.prototype.emStrong||this.tokenizer.del!==cr.prototype.del?tn(this,It,xc).call(this,e):e;if(!n)return tn(this,It,hi).call(this,e,a,r);Fd(this.tokenizer,a);try{return tn(this,It,hi).call(this,e,a,r)}finally{Hd(this.tokenizer)}},hi=function(e,r,n){let a=!1,i="",s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(i=""),a=!1;let o;if(this.options.extensions?.inline?.some(d=>(o=d.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let d=n.at(-1);o.type==="text"&&d?.type==="text"?(d.raw+=o.raw,d.text+=o.text):n.push(o);continue}let c=e[0];if(c==="*"||c==="_"){let d=r.length-e.length;if(bc(this.tokenizer,r,c)<=d){let v=1;for(;v<e.length&&e.charCodeAt(v)===c.charCodeAt(0);)v++;let m=e.substring(0,v),w=n.at(-1);w?.type==="text"&&!w.escaped?(w.raw+=m,w.text+=m):n.push({type:"text",raw:m,text:m,escaped:!1}),e=e.substring(v),i=c,a=!0;continue}}else if(c==="~"){let d=r.length-e.length;if(yc(this.tokenizer,r)<=d){let v=1;for(;v<e.length&&e.charCodeAt(v)===126;)v++;let m=e.substring(0,v),w=n.at(-1);w?.type==="text"&&!w.escaped?(w.raw+=m,w.text+=m):n.push({type:"text",raw:m,text:m,escaped:!1}),e=e.substring(v),i=c,a=!0;continue}}if(o=this.tokenizer.emStrong(e,r,i)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.del(e,r,i)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),n.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),n.push(o);continue}let h=e;if(this.options.extensions?.startInline){let d=1/0,v=e.slice(1),m;this.options.extensions.startInline.forEach(w=>{m=w.call({lexer:this},v),typeof m=="number"&&m>=0&&(d=Math.min(d,m))}),d<1/0&&d>=0&&(h=e.substring(0,d+1))}if(o=this.tokenizer.inlineText(h)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(i=o.raw.slice(-1)),a=!0;let d=n.at(-1);d?.type==="text"?(d.raw+=o.raw,d.text+=o.text):n.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return n},kc=function(e){let{blockSkip:r,tag:n,autolink:a}=this.tokenizer.rules.inline,i="",s=0,o;for(r.lastIndex=0;o=r.exec(e);){let c=o.index+(o[2]?o[2].length:0),h=o.index+o[0].length;if(e.charAt(c)==="<"){let d=e.slice(c),v=n.exec(d)||a.exec(d);if(!v){r.lastIndex=c+1;continue}h=c+v[0].length,r.lastIndex=h}i+=e.slice(s,c)+"["+"a".repeat(h-c-2)+"]",s=h}return i+e.slice(s)},xc=function(e){let r=e;if(this.tokens.links&&e.includes("[")){let n=this.tokenizer.rules.inline.reflinkSearch,a=i=>{let s=i.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,F0(i.slice(s+1,-1))))return i;if(s>1&&i.charAt(0)!=="!"){let o=i.slice(1,s-1);if(this.linkInText(o))return"["+o.replace(n,a)+"]["+"a".repeat(i.length-s-2)+"]"}return"["+"a".repeat(i.length-2)+"]"};r=r.replace(n,a)}return r=r.replace(this.tokenizer.rules.inline.anyPunctuationOutsideCode,(n,a,i)=>i?"+".repeat(n.length):a?a+n.slice(a.length,-a.length).replace(/`/g,"+")+a:n),r=tn(this,It,kc).call(this,r),r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r,r},Lr),H0=class{constructor(t){le(this,"options");le(this,"parser");this.options=t||Fr}space(t){return""}code({text:t,lang:e,escaped:r}){let n=(e||"").match(Ue.notSpaceStart)?.[0],a=t?t.replace(Ue.endingNewline,"")+`
56
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):r.push(c);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,this.state.lastToken=a,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}linkInText(e){if(!e.includes("["))return!1;let r=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(r.test(n[0])&&e.charAt(n.index-1)!=="!")return!0;for(let n of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let a=n[0],i=a.lastIndexOf("[");if(!(a.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,F0(a.slice(i+1,-1))))&&!(i>1&&this.linkInText(a.slice(1,i-1))))return!0}return!1}inlineTokens(e,r=[]){this.tokenizer.lexer=this;let n=this.state.linkParenPossible;this.state.linkParenPossible=e.includes(")");try{return tn(this,It,wc).call(this,e,r)}finally{this.state.linkParenPossible=n}}infiniteLoopError(e){let r="Infinite loop on byte: "+e;if(this.options.silent)console.error(r);else throw new Error(r)}},It=new WeakSet,wc=function(e,r){let n=e.includes("*")||e.includes("_")||e.includes("~"),a=n||this.options.hooks?.emStrongMask||this.tokenizer.emStrong!==ur.prototype.emStrong||this.tokenizer.del!==ur.prototype.del?tn(this,It,xc).call(this,e):e;if(!n)return tn(this,It,hi).call(this,e,a,r);Hd(this.tokenizer,a);try{return tn(this,It,hi).call(this,e,a,r)}finally{Ud(this.tokenizer)}},hi=function(e,r,n){let a=!1,i="",s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(i=""),a=!1;let o;if(this.options.extensions?.inline?.some(d=>(o=d.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let d=n.at(-1);o.type==="text"&&d?.type==="text"?(d.raw+=o.raw,d.text+=o.text):n.push(o);continue}let c=e[0];if(c==="*"||c==="_"){let d=r.length-e.length;if(bc(this.tokenizer,r,c)<=d){let v=1;for(;v<e.length&&e.charCodeAt(v)===c.charCodeAt(0);)v++;let m=e.substring(0,v),w=n.at(-1);w?.type==="text"&&!w.escaped?(w.raw+=m,w.text+=m):n.push({type:"text",raw:m,text:m,escaped:!1}),e=e.substring(v),i=c,a=!0;continue}}else if(c==="~"){let d=r.length-e.length;if(yc(this.tokenizer,r)<=d){let v=1;for(;v<e.length&&e.charCodeAt(v)===126;)v++;let m=e.substring(0,v),w=n.at(-1);w?.type==="text"&&!w.escaped?(w.raw+=m,w.text+=m):n.push({type:"text",raw:m,text:m,escaped:!1}),e=e.substring(v),i=c,a=!0;continue}}if(o=this.tokenizer.emStrong(e,r,i)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.del(e,r,i)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),n.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),n.push(o);continue}let h=e;if(this.options.extensions?.startInline){let d=1/0,v=e.slice(1),m;this.options.extensions.startInline.forEach(w=>{m=w.call({lexer:this},v),typeof m=="number"&&m>=0&&(d=Math.min(d,m))}),d<1/0&&d>=0&&(h=e.substring(0,d+1))}if(o=this.tokenizer.inlineText(h)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(i=o.raw.slice(-1)),a=!0;let d=n.at(-1);d?.type==="text"?(d.raw+=o.raw,d.text+=o.text):n.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return n},kc=function(e){let{blockSkip:r,tag:n,autolink:a}=this.tokenizer.rules.inline,i="",s=0,o;for(r.lastIndex=0;o=r.exec(e);){let c=o.index+(o[2]?o[2].length:0),h=o.index+o[0].length;if(e.charAt(c)==="<"){let d=e.slice(c),v=n.exec(d)||a.exec(d);if(!v){r.lastIndex=c+1;continue}h=c+v[0].length,r.lastIndex=h}i+=e.slice(s,c)+"["+"a".repeat(h-c-2)+"]",s=h}return i+e.slice(s)},xc=function(e){let r=e;if(this.tokens.links&&e.includes("[")){let n=this.tokenizer.rules.inline.reflinkSearch,a=i=>{let s=i.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,F0(i.slice(s+1,-1))))return i;if(s>1&&i.charAt(0)!=="!"){let o=i.slice(1,s-1);if(this.linkInText(o))return"["+o.replace(n,a)+"]["+"a".repeat(i.length-s-2)+"]"}return"["+"a".repeat(i.length-2)+"]"};r=r.replace(n,a)}return r=r.replace(this.tokenizer.rules.inline.anyPunctuationOutsideCode,(n,a,i)=>i?"+".repeat(n.length):a?a+n.slice(a.length,-a.length).replace(/`/g,"+")+a:n),r=tn(this,It,kc).call(this,r),r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r,r},Lr),H0=class{constructor(t){le(this,"options");le(this,"parser");this.options=t||Fr}space(t){return""}code({text:t,lang:e,escaped:r}){let n=(e||"").match(Ue.notSpaceStart)?.[0],a=t?t.replace(Ue.endingNewline,"")+`
57
57
  `:"";return n?'<pre><code class="language-'+mt(n)+'">'+(r?a:mt(a,!0))+`</code></pre>
58
58
  `:"<pre><code>"+(r?a:mt(a,!0))+`</code></pre>
59
59
  `}blockquote({tokens:t}){return`<blockquote>
@@ -72,21 +72,21 @@ ${this.parser.parse(t)}</blockquote>
72
72
  ${t}</tr>
73
73
  `}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
74
74
  `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${mt(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,text:r,tokens:n,autolink:a}){let i=a?mt(r,!0):this.parser.parseInline(n),s=io(t);if(s===null)return i;t=mt(s,a);let o='<a href="'+t+'"';return e&&(o+=' title="'+mt(e)+'"'),o+=">"+i+"</a>",o}image({href:t,title:e,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let a=io(t);if(a===null)return mt(r);t=a;let i=`<img src="${mt(t)}" alt="${mt(r)}"`;return e&&(i+=` title="${mt(e)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:mt(t.text)}},Zi=class{constructor(){le(this,"parser")}strong({text:t,tokens:e}){return e?this.parser.parseInline(e,this):t}em({text:t,tokens:e}){return e?this.parser.parseInline(e,this):t}codespan({text:t}){return t}del({text:t,tokens:e}){return e?this.parser.parseInline(e,this):t}html({text:t}){return t}text({text:t}){return t}link({text:t,tokens:e}){return e?this.parser.parseInline(e,this):t}image({text:t,tokens:e}){return e?this.parser.parseInline(e,this):t}br(){return`
75
- `}checkbox({raw:t}){return t}},Mt=class di{constructor(e){le(this,"options");le(this,"renderer");le(this,"textRenderer");this.options=e||Fr,this.options.renderer=this.options.renderer||new H0,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Zi,this.textRenderer.parser=this}static parse(e,r){return new di(r).parse(e)}static parseInline(e,r){return new di(r).parseInline(e)}parse(e){this.renderer.parser=this;let r="";for(let n=0;n<e.length;n++){let a=e[n];if(this.options.extensions?.renderers?.[a.type]){let s=a,o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(s.type)){r+=o===!1?"":o??"";continue}}let i=a;switch(i.type){case"space":{r+=this.renderer.space(i);break}case"hr":{r+=this.renderer.hr(i);break}case"heading":{r+=this.renderer.heading(i);break}case"code":{r+=this.renderer.code(i);break}case"table":{r+=this.renderer.table(i);break}case"blockquote":{r+=this.renderer.blockquote(i);break}case"list":{r+=this.renderer.list(i);break}case"checkbox":{r+=this.renderer.checkbox(i);break}case"html":{r+=this.renderer.html(i);break}case"def":{r+=this.renderer.def(i);break}case"paragraph":{r+=this.renderer.paragraph(i);break}case"text":{r+=this.renderer.text(i);break}default:{let s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}parseInline(e,r=this.renderer){this.renderer.parser=this;let n="";for(let a=0;a<e.length;a++){let i=e[a];if(this.options.extensions?.renderers?.[i.type]){let o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(i.type)){n+=o===!1?"":o??"";continue}}let s=i;switch(s.type){case"escape":{n+=r.text(s);break}case"html":{n+=r.html(s);break}case"link":{n+=r.link(s);break}case"image":{n+=r.image(s);break}case"checkbox":{n+=r.checkbox(s);break}case"strong":{n+=r.strong(s);break}case"em":{n+=r.em(s);break}case"codespan":{n+=r.codespan(s);break}case"br":{n+=r.br(s);break}case"del":{n+=r.del(s);break}case"text":{n+=r.text(s);break}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}},_0,Ln=(_0=class{constructor(t){le(this,"options");le(this,"block");this.options=t||Fr}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?wt.lex:wt.lexInline}provideParser(t=this.block){return t?Mt.parse:Mt.parseInline}},le(_0,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),le(_0,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),_0);function nr(t,e){if(Array.isArray(e))for(let r=0;r<e.length;r++)t.push(e[r]);else t.push(e)}var Sc=class{constructor(...t){le(this,"defaults",Hi());le(this,"options",this.setOptions);le(this,"parse",this.parseMarkdown(!0));le(this,"parseInline",this.parseMarkdown(!1));le(this,"Parser",Mt);le(this,"Renderer",H0);le(this,"TextRenderer",Zi);le(this,"Lexer",wt);le(this,"Tokenizer",cr);le(this,"Hooks",Ln);this.use(...t)}walkTokens(t,e){let r=[];for(let n of t)switch(nr(r,e.call(this,n)),n.type){case"table":{let a=n;for(let i of a.header)nr(r,this.walkTokens(i.tokens,e));for(let i of a.rows)for(let s of i)nr(r,this.walkTokens(s.tokens,e));break}case"list":{let a=n;nr(r,this.walkTokens(a.items,e));break}default:{let a=n;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(i=>{let s=a[i].flat(1/0);nr(r,this.walkTokens(s,e))}):a.tokens&&nr(r,this.walkTokens(a.tokens,e))}}return r}use(...t){let e=this.defaults.extensions||{renderers:Object.create(null),childTokens:Object.create(null)};return t.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let i=e.renderers[a.name];i?e.renderers[a.name]=function(...s){let o=a.renderer.apply(this,s);return o===!1&&(o=i.apply(this,s)),o}:e.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=e[a.level];i?i.unshift(a.tokenizer):e[a.level]=[a.tokenizer],a.start&&(a.level==="block"?e.startBlock?e.startBlock.push(a.start):e.startBlock=[a.start]:a.level==="inline"&&(e.startInline?e.startInline.push(a.start):e.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(e.childTokens[a.name]=a.childTokens)}),n.extensions=e),r.renderer){let a=this.defaults.renderer||new H0(this.defaults);for(let i in r.renderer){if(!(i in a))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let s=i,o=r.renderer[s],c=a[s];a[s]=(...h)=>{let d=o.apply(a,h);return d===!1&&(d=c.apply(a,h)),d===!1?"":d??""}}n.renderer=a}if(r.tokenizer){let a=this.defaults.tokenizer||new cr(this.defaults);for(let i in r.tokenizer){if(!(i in a))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let s=i,o=r.tokenizer[s],c=a[s];a[s]=(...h)=>{let d=o.apply(a,h);return d===!1&&(d=c.apply(a,h)),d}}n.tokenizer=a}if(r.hooks){let a=this.defaults.hooks||new Ln;for(let i in r.hooks){if(!(i in a))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let s=i,o=r.hooks[s],c=a[s];Ln.passThroughHooks.has(i)?a[s]=h=>{if(a.options.async&&Ln.passThroughHooksRespectAsync.has(i))return(async()=>{let v=await o.call(a,h);return c.call(a,v)})();let d=o.call(a,h);return c.call(a,d)}:a[s]=(...h)=>{if(a.options.async)return(async()=>{let v=await o.apply(a,h);return v===!1&&(v=await c.apply(a,h)),v})();let d=o.apply(a,h);return d===!1&&(d=c.apply(a,h)),d}}n.hooks=a}if(r.walkTokens){let a=this.defaults.walkTokens,i=r.walkTokens;n.walkTokens=function(s){let o=[];return nr(o,i.call(this,s)),a&&nr(o,a.call(this,s)),o}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return wt.lex(t,e??this.defaults)}parser(t,e){return Mt.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let n={...r},a={...this.defaults,...n},i=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&n.async===!1)return i(new 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 e>"u"||e===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let s=a.hooks?await a.hooks.preprocess(e):e,o=await(a.hooks?await a.hooks.provideLexer(t):t?wt.lex:wt.lexInline)(s,a),c=a.hooks?await a.hooks.processAllTokens(o):o;a.walkTokens&&await Promise.all(this.walkTokens(c,a.walkTokens));let h=await(a.hooks?await a.hooks.provideParser(t):t?Mt.parse:Mt.parseInline)(c,a);return a.hooks?await a.hooks.postprocess(h):h})().catch(i);try{a.hooks&&(e=a.hooks.preprocess(e));let s=(a.hooks?a.hooks.provideLexer(t):t?wt.lex:wt.lexInline)(e,a);a.hooks&&(s=a.hooks.processAllTokens(s)),a.walkTokens&&this.walkTokens(s,a.walkTokens);let o=(a.hooks?a.hooks.provideParser(t):t?Mt.parse:Mt.parseInline)(s,a);return a.hooks&&(o=a.hooks.postprocess(o)),o}catch(s){return i(s)}}}onError(t,e){return r=>{if(r.message+=`
76
- Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+mt(r.message+"",!0)+"</pre>";return e?Promise.resolve(n):n}if(e)return Promise.reject(r);throw r}}},Or=new Sc;function ke(t,e){return Or.parse(t,e)}ke.options=ke.setOptions=function(t){return Or.setOptions(t),ke.defaults=Or.defaults,lc(ke.defaults),ke};ke.getDefaults=Hi;ke.defaults=Fr;function Gd(...t){return Or.use(...t),ke.defaults=Or.defaults,lc(ke.defaults),ke}ke.use=Gd;ke.walkTokens=function(t,e){return Or.walkTokens(t,e)};ke.parseInline=Or.parseInline;ke.Parser=Mt;ke.parser=Mt.parse;ke.Renderer=H0;ke.TextRenderer=Zi;ke.Lexer=wt;ke.lexer=wt.lex;ke.Tokenizer=cr;ke.Hooks=Ln;ke.parse=ke;ke.options;ke.setOptions;ke.walkTokens;ke.parseInline;Mt.parse;wt.lex;const In="@@@task";function pi(t){const e=t.endsWith("\r")?t.slice(0,-1):t;if(e.includes("\r"))return!1;const r=e.trim();if(r.length===0)return!0;const n=r.split(/\s+/),a=[];let i=0;for(;i<n.length;){let s=n[i];for(;i+1<n.length&&(s.endsWith(",")||n[i+1].startsWith(","));)i++,s+=n[i];a.push(s),i++}return a.every(s=>{const o=s.indexOf("=");return o===-1?!1:/^[A-Za-z0-9]+$/.test(s.slice(0,o))})}function jd(t){const e=[];let r=0;for(;;){const n=t.indexOf(In,r);if(n===-1)break;let a=n+In.length;t[a]==="s"&&a++;const i=t[a];if(i!==void 0&&i!==" "&&i!==" "&&i!=="\r"&&i!==`
75
+ `}checkbox({raw:t}){return t}},Mt=class di{constructor(e){le(this,"options");le(this,"renderer");le(this,"textRenderer");this.options=e||Fr,this.options.renderer=this.options.renderer||new H0,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Zi,this.textRenderer.parser=this}static parse(e,r){return new di(r).parse(e)}static parseInline(e,r){return new di(r).parseInline(e)}parse(e){this.renderer.parser=this;let r="";for(let n=0;n<e.length;n++){let a=e[n];if(this.options.extensions?.renderers?.[a.type]){let s=a,o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(s.type)){r+=o===!1?"":o??"";continue}}let i=a;switch(i.type){case"space":{r+=this.renderer.space(i);break}case"hr":{r+=this.renderer.hr(i);break}case"heading":{r+=this.renderer.heading(i);break}case"code":{r+=this.renderer.code(i);break}case"table":{r+=this.renderer.table(i);break}case"blockquote":{r+=this.renderer.blockquote(i);break}case"list":{r+=this.renderer.list(i);break}case"checkbox":{r+=this.renderer.checkbox(i);break}case"html":{r+=this.renderer.html(i);break}case"def":{r+=this.renderer.def(i);break}case"paragraph":{r+=this.renderer.paragraph(i);break}case"text":{r+=this.renderer.text(i);break}default:{let s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}parseInline(e,r=this.renderer){this.renderer.parser=this;let n="";for(let a=0;a<e.length;a++){let i=e[a];if(this.options.extensions?.renderers?.[i.type]){let o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(i.type)){n+=o===!1?"":o??"";continue}}let s=i;switch(s.type){case"escape":{n+=r.text(s);break}case"html":{n+=r.html(s);break}case"link":{n+=r.link(s);break}case"image":{n+=r.image(s);break}case"checkbox":{n+=r.checkbox(s);break}case"strong":{n+=r.strong(s);break}case"em":{n+=r.em(s);break}case"codespan":{n+=r.codespan(s);break}case"br":{n+=r.br(s);break}case"del":{n+=r.del(s);break}case"text":{n+=r.text(s);break}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return n}},_0,Ln=(_0=class{constructor(t){le(this,"options");le(this,"block");this.options=t||Fr}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?wt.lex:wt.lexInline}provideParser(t=this.block){return t?Mt.parse:Mt.parseInline}},le(_0,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),le(_0,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),_0);function ar(t,e){if(Array.isArray(e))for(let r=0;r<e.length;r++)t.push(e[r]);else t.push(e)}var Sc=class{constructor(...t){le(this,"defaults",Hi());le(this,"options",this.setOptions);le(this,"parse",this.parseMarkdown(!0));le(this,"parseInline",this.parseMarkdown(!1));le(this,"Parser",Mt);le(this,"Renderer",H0);le(this,"TextRenderer",Zi);le(this,"Lexer",wt);le(this,"Tokenizer",ur);le(this,"Hooks",Ln);this.use(...t)}walkTokens(t,e){let r=[];for(let n of t)switch(ar(r,e.call(this,n)),n.type){case"table":{let a=n;for(let i of a.header)ar(r,this.walkTokens(i.tokens,e));for(let i of a.rows)for(let s of i)ar(r,this.walkTokens(s.tokens,e));break}case"list":{let a=n;ar(r,this.walkTokens(a.items,e));break}default:{let a=n;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(i=>{let s=a[i].flat(1/0);ar(r,this.walkTokens(s,e))}):a.tokens&&ar(r,this.walkTokens(a.tokens,e))}}return r}use(...t){let e=this.defaults.extensions||{renderers:Object.create(null),childTokens:Object.create(null)};return t.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let i=e.renderers[a.name];i?e.renderers[a.name]=function(...s){let o=a.renderer.apply(this,s);return o===!1&&(o=i.apply(this,s)),o}:e.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=e[a.level];i?i.unshift(a.tokenizer):e[a.level]=[a.tokenizer],a.start&&(a.level==="block"?e.startBlock?e.startBlock.push(a.start):e.startBlock=[a.start]:a.level==="inline"&&(e.startInline?e.startInline.push(a.start):e.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(e.childTokens[a.name]=a.childTokens)}),n.extensions=e),r.renderer){let a=this.defaults.renderer||new H0(this.defaults);for(let i in r.renderer){if(!(i in a))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let s=i,o=r.renderer[s],c=a[s];a[s]=(...h)=>{let d=o.apply(a,h);return d===!1&&(d=c.apply(a,h)),d===!1?"":d??""}}n.renderer=a}if(r.tokenizer){let a=this.defaults.tokenizer||new ur(this.defaults);for(let i in r.tokenizer){if(!(i in a))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let s=i,o=r.tokenizer[s],c=a[s];a[s]=(...h)=>{let d=o.apply(a,h);return d===!1&&(d=c.apply(a,h)),d}}n.tokenizer=a}if(r.hooks){let a=this.defaults.hooks||new Ln;for(let i in r.hooks){if(!(i in a))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let s=i,o=r.hooks[s],c=a[s];Ln.passThroughHooks.has(i)?a[s]=h=>{if(a.options.async&&Ln.passThroughHooksRespectAsync.has(i))return(async()=>{let v=await o.call(a,h);return c.call(a,v)})();let d=o.call(a,h);return c.call(a,d)}:a[s]=(...h)=>{if(a.options.async)return(async()=>{let v=await o.apply(a,h);return v===!1&&(v=await c.apply(a,h)),v})();let d=o.apply(a,h);return d===!1&&(d=c.apply(a,h)),d}}n.hooks=a}if(r.walkTokens){let a=this.defaults.walkTokens,i=r.walkTokens;n.walkTokens=function(s){let o=[];return ar(o,i.call(this,s)),a&&ar(o,a.call(this,s)),o}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return wt.lex(t,e??this.defaults)}parser(t,e){return Mt.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let n={...r},a={...this.defaults,...n},i=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&n.async===!1)return i(new 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 e>"u"||e===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let s=a.hooks?await a.hooks.preprocess(e):e,o=await(a.hooks?await a.hooks.provideLexer(t):t?wt.lex:wt.lexInline)(s,a),c=a.hooks?await a.hooks.processAllTokens(o):o;a.walkTokens&&await Promise.all(this.walkTokens(c,a.walkTokens));let h=await(a.hooks?await a.hooks.provideParser(t):t?Mt.parse:Mt.parseInline)(c,a);return a.hooks?await a.hooks.postprocess(h):h})().catch(i);try{a.hooks&&(e=a.hooks.preprocess(e));let s=(a.hooks?a.hooks.provideLexer(t):t?wt.lex:wt.lexInline)(e,a);a.hooks&&(s=a.hooks.processAllTokens(s)),a.walkTokens&&this.walkTokens(s,a.walkTokens);let o=(a.hooks?a.hooks.provideParser(t):t?Mt.parse:Mt.parseInline)(s,a);return a.hooks&&(o=a.hooks.postprocess(o)),o}catch(s){return i(s)}}}onError(t,e){return r=>{if(r.message+=`
76
+ Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+mt(r.message+"",!0)+"</pre>";return e?Promise.resolve(n):n}if(e)return Promise.reject(r);throw r}}},Or=new Sc;function ke(t,e){return Or.parse(t,e)}ke.options=ke.setOptions=function(t){return Or.setOptions(t),ke.defaults=Or.defaults,lc(ke.defaults),ke};ke.getDefaults=Hi;ke.defaults=Fr;function jd(...t){return Or.use(...t),ke.defaults=Or.defaults,lc(ke.defaults),ke}ke.use=jd;ke.walkTokens=function(t,e){return Or.walkTokens(t,e)};ke.parseInline=Or.parseInline;ke.Parser=Mt;ke.parser=Mt.parse;ke.Renderer=H0;ke.TextRenderer=Zi;ke.Lexer=wt;ke.lexer=wt.lex;ke.Tokenizer=ur;ke.Hooks=Ln;ke.parse=ke;ke.options;ke.setOptions;ke.walkTokens;ke.parseInline;Mt.parse;wt.lex;const In="@@@task";function pi(t){const e=t.endsWith("\r")?t.slice(0,-1):t;if(e.includes("\r"))return!1;const r=e.trim();if(r.length===0)return!0;const n=r.split(/\s+/),a=[];let i=0;for(;i<n.length;){let s=n[i];for(;i+1<n.length&&(s.endsWith(",")||n[i+1].startsWith(","));)i++,s+=n[i];a.push(s),i++}return a.every(s=>{const o=s.indexOf("=");return o===-1?!1:/^[A-Za-z0-9]+$/.test(s.slice(0,o))})}function Vd(t){const e=[];let r=0;for(;;){const n=t.indexOf(In,r);if(n===-1)break;let a=n+In.length;t[a]==="s"&&a++;const i=t[a];if(i!==void 0&&i!==" "&&i!==" "&&i!=="\r"&&i!==`
77
77
  `){r=n+In.length;continue}const s=t.indexOf(`
78
- `,a);if(s===-1){r=n+In.length;continue}if(!pi(t.slice(a,s))){r=n+In.length;continue}const o=s+1,c=t.indexOf("@@@",o);if(c===-1)break;e.push({start:n,end:c+3,body:t.slice(o,c)}),r=c+3}return e}function Vd(t){return t.replace(/\r\n/g,`
78
+ `,a);if(s===-1){r=n+In.length;continue}if(!pi(t.slice(a,s))){r=n+In.length;continue}const o=s+1,c=t.indexOf("@@@",o);if(c===-1)break;e.push({start:n,end:c+3,body:t.slice(o,c)}),r=c+3}return e}function Kd(t){return t.replace(/\r\n/g,`
79
79
  `).replace(/\r/g,`
80
- `)}function Ac(t){const r=Vd(t).split(`
80
+ `)}function Ac(t){const r=Kd(t).split(`
81
81
  `);let n=null,a=0;for(let s=0;s<r.length;s++){const o=r[s].match(/^#\s+(.+)$/);if(o){const c=o[1].trim();if(c.length>0){n=c,a=s+1;break}}}if(!n)return null;const i=r.slice(a).join(`
82
- `).trim();return{title:n,content:i}}function Kd(t){return Ac(t)?`
82
+ `).trim();return{title:n,content:i}}function Xd(t){return Ac(t)?`
83
83
  <div data-type="task-block" class="task-block-pending">
84
84
  <input type="checkbox" disabled class="task-block-checkbox" />
85
85
  <span class="task-block-title-skeleton"></span>
86
86
  </div>
87
- `:'<div data-type="task-block" class="task-block-empty"><p>No task defined (missing # title)</p></div>'}function Xd(t){const e=jd(t);if(e.length===0)return t;let r="",n=0;for(const a of e){r+=t.slice(n,a.start);const i=Ac(a.body);r+=i?[`### ${i.title}`,i.content.trim()].filter(Boolean).join(`
87
+ `:'<div data-type="task-block" class="task-block-empty"><p>No task defined (missing # title)</p></div>'}function Yd(t){const e=Vd(t);if(e.length===0)return t;let r="",n=0;for(const a of e){r+=t.slice(n,a.start);const i=Ac(a.body);r+=i?[`### ${i.title}`,i.content.trim()].filter(Boolean).join(`
88
88
 
89
- `):a.body.trim(),n=a.end}return r+=t.slice(n),r}function Yd(t){t.use({extensions:[{name:"taskBlock",level:"block",start(e){const r=e.match(/^@@@tasks?((?:[ \t][^\n]*)?)\r?\n/);return r&&pi(r[1])?0:void 0},tokenizer(e){const n=/^(@@@tasks?((?:[ \t][^\n]*)?)\r?\n([\s\S]*?)@@@)/.exec(e);if(n&&pi(n[2]))return{type:"taskBlock",raw:n[1],text:n[3],tokens:[]}},renderer(e){return Kd(e.text)}}]})}const Zd=cr.prototype.del,Qd={tokenizer:{del(t,e,r){if(!t.startsWith("~~"))return;const n=Zd.call(this,t,e,r);return n?.raw.startsWith("~~")?n:void 0}}};class F extends Error{constructor(e,r){var n="KaTeX parse error: "+e,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var c=o.slice(a,i).replace(/[^]/g,"$&̲"),h;a>15?h="…"+o.slice(a-15,a):h=o.slice(0,a);var d;i+15<o.length?d=o.slice(i,i+15)+"…":d=o.slice(i),n+=h+c+d}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,F.prototype),this.position=a,a!=null&&i!=null&&(this.length=i-a),this.rawMessage=e}}var Jd=/([A-Z])/g,ep=t=>t.replace(Jd,"-$1").toLowerCase(),tp={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},rp=/[&><"']/g,et=t=>String(t).replace(rp,e=>tp[e]),L0=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?L0(t.body[0]):t:t.type==="font"?L0(t.body):t,np=new Set(["mathord","textord","atom"]),Xt=t=>np.has(L0(t).type),ap=t=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},ho={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:t=>"#"+t},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:(t,e)=>(e.push(t),e)},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:t=>Math.max(0,t),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:t=>Math.max(0,t),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:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function ip(t){if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function sp(t){if(Object.prototype.hasOwnProperty.call(t,"default")&&t.default!==void 0)return t.default;var e=Array.isArray(t.type)?t.type[0]:t.type;return ip(e)}function op(t,e,r,n){var a=Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0,i=Object.prototype.hasOwnProperty.call(n,"processor")?n.processor:void 0;t[e]=a!==void 0?i?i(a):a:sp(n)}class lp{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=e||{};for(var r of Object.keys(ho)){var n=ho[r];n&&op(this,r,e,n)}}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=ap(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class ar{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Dt[cp[this.id]]}sub(){return Dt[up[this.id]]}fracNum(){return Dt[hp[this.id]]}fracDen(){return Dt[dp[this.id]]}cramp(){return Dt[pp[this.id]]}text(){return Dt[mp[this.id]]}isTight(){return this.size>=2}}var Qi=0,U0=1,on=2,jt=3,Un=4,kt=5,pn=6,at=7,Dt=[new ar(Qi,0,!1),new ar(U0,0,!0),new ar(on,1,!1),new ar(jt,1,!0),new ar(Un,2,!1),new ar(kt,2,!0),new ar(pn,3,!1),new ar(at,3,!0)],cp=[Un,kt,Un,kt,pn,at,pn,at],up=[kt,kt,kt,kt,at,at,at,at],hp=[on,jt,Un,kt,pn,at,pn,at],dp=[jt,jt,kt,kt,at,at,at,at],pp=[U0,U0,jt,jt,kt,kt,at,at],mp=[Qi,U0,on,jt,on,jt,on,jt],se={DISPLAY:Dt[Qi],TEXT:Dt[on],SCRIPT:Dt[Un],SCRIPTSCRIPT:Dt[pn]},mi=[{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 fp(t){for(var e=0;e<mi.length;e++)for(var r=mi[e],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(t>=a[0]&&t<=a[1])return r.name}return null}var O0=[];mi.forEach(t=>t.blocks.forEach(e=>O0.push(...e)));function Tc(t){for(var e=0;e<O0.length;e+=2)if(t>=O0[e]&&t<=O0[e+1])return!0;return!1}var He=t=>t+" "+t,rn=80,gp=function(e,r){return"M95,"+(622+e+r)+`
89
+ `):a.body.trim(),n=a.end}return r+=t.slice(n),r}function Zd(t){t.use({extensions:[{name:"taskBlock",level:"block",start(e){const r=e.match(/^@@@tasks?((?:[ \t][^\n]*)?)\r?\n/);return r&&pi(r[1])?0:void 0},tokenizer(e){const n=/^(@@@tasks?((?:[ \t][^\n]*)?)\r?\n([\s\S]*?)@@@)/.exec(e);if(n&&pi(n[2]))return{type:"taskBlock",raw:n[1],text:n[3],tokens:[]}},renderer(e){return Xd(e.text)}}]})}const Qd=ur.prototype.del,Jd={tokenizer:{del(t,e,r){if(!t.startsWith("~~"))return;const n=Qd.call(this,t,e,r);return n?.raw.startsWith("~~")?n:void 0}}};class F extends Error{constructor(e,r){var n="KaTeX parse error: "+e,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var c=o.slice(a,i).replace(/[^]/g,"$&̲"),h;a>15?h="…"+o.slice(a-15,a):h=o.slice(0,a);var d;i+15<o.length?d=o.slice(i,i+15)+"…":d=o.slice(i),n+=h+c+d}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,F.prototype),this.position=a,a!=null&&i!=null&&(this.length=i-a),this.rawMessage=e}}var ep=/([A-Z])/g,tp=t=>t.replace(ep,"-$1").toLowerCase(),rp={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},np=/[&><"']/g,et=t=>String(t).replace(np,e=>rp[e]),L0=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?L0(t.body[0]):t:t.type==="font"?L0(t.body):t,ap=new Set(["mathord","textord","atom"]),Yt=t=>ap.has(L0(t).type),ip=t=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},ho={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:t=>"#"+t},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:(t,e)=>(e.push(t),e)},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:t=>Math.max(0,t),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:t=>Math.max(0,t),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:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function sp(t){if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function op(t){if(Object.prototype.hasOwnProperty.call(t,"default")&&t.default!==void 0)return t.default;var e=Array.isArray(t.type)?t.type[0]:t.type;return sp(e)}function lp(t,e,r,n){var a=Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0,i=Object.prototype.hasOwnProperty.call(n,"processor")?n.processor:void 0;t[e]=a!==void 0?i?i(a):a:op(n)}class cp{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=e||{};for(var r of Object.keys(ho)){var n=ho[r];n&&lp(this,r,e,n)}}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=ip(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class ir{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Dt[up[this.id]]}sub(){return Dt[hp[this.id]]}fracNum(){return Dt[dp[this.id]]}fracDen(){return Dt[pp[this.id]]}cramp(){return Dt[mp[this.id]]}text(){return Dt[fp[this.id]]}isTight(){return this.size>=2}}var Qi=0,U0=1,on=2,jt=3,Un=4,kt=5,pn=6,at=7,Dt=[new ir(Qi,0,!1),new ir(U0,0,!0),new ir(on,1,!1),new ir(jt,1,!0),new ir(Un,2,!1),new ir(kt,2,!0),new ir(pn,3,!1),new ir(at,3,!0)],up=[Un,kt,Un,kt,pn,at,pn,at],hp=[kt,kt,kt,kt,at,at,at,at],dp=[on,jt,Un,kt,pn,at,pn,at],pp=[jt,jt,kt,kt,at,at,at,at],mp=[U0,U0,jt,jt,kt,kt,at,at],fp=[Qi,U0,on,jt,on,jt,on,jt],se={DISPLAY:Dt[Qi],TEXT:Dt[on],SCRIPT:Dt[Un],SCRIPTSCRIPT:Dt[pn]},mi=[{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 gp(t){for(var e=0;e<mi.length;e++)for(var r=mi[e],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(t>=a[0]&&t<=a[1])return r.name}return null}var O0=[];mi.forEach(t=>t.blocks.forEach(e=>O0.push(...e)));function Tc(t){for(var e=0;e<O0.length;e+=2)if(t>=O0[e]&&t<=O0[e+1])return!0;return!1}var He=t=>t+" "+t,rn=80,vp=function(e,r){return"M95,"+(622+e+r)+`
90
90
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
91
91
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
92
92
  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
@@ -97,7 +97,7 @@ c5.3,-9.3,12,-14,20,-14
97
97
  H400000v`+(40+e)+`H845.2724
98
98
  s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
99
99
  c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
100
- M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},vp=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119
100
+ M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},bp=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119
101
101
  c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
102
102
  c340,-704.7,510.7,-1060.3,512,-1067
103
103
  l`+e/2.084+" -"+e+`
@@ -107,7 +107,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,
107
107
  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
108
108
  s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
109
109
  c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
110
- M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},bp=function(e,r){return"M983 "+(10+e+r)+`
110
+ M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},yp=function(e,r){return"M983 "+(10+e+r)+`
111
111
  l`+e/3.13+" -"+e+`
112
112
  c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
113
113
  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
@@ -116,7 +116,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
116
116
  c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
117
117
  c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
118
118
  c53.7,-170.3,84.5,-266.8,92.5,-289.5z
119
- M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},yp=function(e,r){return"M424,"+(2398+e+r)+`
119
+ M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},wp=function(e,r){return"M424,"+(2398+e+r)+`
120
120
  c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
121
121
  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
122
122
  s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
@@ -126,18 +126,18 @@ v`+(40+e)+`H1014.6
126
126
  s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
127
127
  c-2,6,-10,9,-24,9
128
128
  c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+r+`
129
- h400000v`+(40+e)+"h-400000z"},wp=function(e,r){return"M473,"+(2713+e+r)+`
129
+ h400000v`+(40+e)+"h-400000z"},kp=function(e,r){return"M473,"+(2713+e+r)+`
130
130
  c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
131
131
  c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
132
132
  s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
133
133
  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
134
134
  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
135
135
  s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
136
- 606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},kp=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},xp=function(e,r,n){var a=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+`
136
+ 606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},xp=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},Sp=function(e,r,n){var a=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+`
137
137
  H742v`+a+`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
138
138
  h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
139
139
  c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
140
- 219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},Sp=function(e,r,n){r=1e3*r;var a="";switch(e){case"sqrtMain":a=gp(r,rn);break;case"sqrtSize1":a=vp(r,rn);break;case"sqrtSize2":a=bp(r,rn);break;case"sqrtSize3":a=yp(r,rn);break;case"sqrtSize4":a=wp(r,rn);break;case"sqrtTall":a=xp(r,rn,n)}return a},Ap=function(e,r){switch(e){case"⎜":return He("M291 0 H417 V"+r+" H291z");case"∣":return He("M145 0 H188 V"+r+" H145z");case"∥":return He("M145 0 H188 V"+r+" H145z")+He("M367 0 H410 V"+r+" H367z");case"⎟":return He("M457 0 H583 V"+r+" H457z");case"⎢":return He("M319 0 H403 V"+r+" H319z");case"⎥":return He("M263 0 H347 V"+r+" H263z");case"⎪":return He("M384 0 H504 V"+r+" H384z");case"⏐":return He("M312 0 H355 V"+r+" H312z");case"‖":return He("M257 0 H300 V"+r+" H257z")+He("M478 0 H521 V"+r+" H478z");default:return""}},po={doubleleftarrow:`M262 157
140
+ 219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},Ap=function(e,r,n){r=1e3*r;var a="";switch(e){case"sqrtMain":a=vp(r,rn);break;case"sqrtSize1":a=bp(r,rn);break;case"sqrtSize2":a=yp(r,rn);break;case"sqrtSize3":a=wp(r,rn);break;case"sqrtSize4":a=kp(r,rn);break;case"sqrtTall":a=Sp(r,rn,n)}return a},Tp=function(e,r){switch(e){case"⎜":return He("M291 0 H417 V"+r+" H291z");case"∣":return He("M145 0 H188 V"+r+" H145z");case"∥":return He("M145 0 H188 V"+r+" H145z")+He("M367 0 H410 V"+r+" H367z");case"⎟":return He("M457 0 H583 V"+r+" H457z");case"⎢":return He("M319 0 H403 V"+r+" H319z");case"⎥":return He("M263 0 H347 V"+r+" H263z");case"⎪":return He("M384 0 H504 V"+r+" H384z");case"⏐":return He("M312 0 H355 V"+r+" H312z");case"‖":return He("M257 0 H300 V"+r+" H257z")+He("M478 0 H521 V"+r+" H478z");default:return""}},po={doubleleftarrow:`M262 157
141
141
  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
142
142
  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
143
143
  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
@@ -308,7 +308,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`
308
308
  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,
309
309
  -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
310
310
  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
311
- M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Tp=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84
311
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Ep=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84
312
312
  H403z M403 1759 V0 H319 V1759 v`+r+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
313
313
  M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
314
314
  c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
@@ -336,20 +336,20 @@ 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
336
336
  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
337
337
  c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
338
338
  l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
339
- -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function Ep(t){return"toText"in t}class xn{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(),r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){for(var e="",r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e}toText(){return this.children.map(e=>{if(Ep(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}}var fi={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},Cp={ex:!0,em:!0,mu:!0},Ec=function(e){return typeof e!="string"&&(e=e.unit),e in fi||e in Cp||e==="ex"},Ie=function(e,r){var n;if(e.unit in fi)n=fi[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,e.unit==="ex")n=a.fontMetrics().xHeight;else if(e.unit==="em")n=a.fontMetrics().quad;else throw new F("Invalid unit: '"+e.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},U=function(e){return+e.toFixed(4)+"em"},fr=function(e){return e.filter(r=>r).join(" ")},Ji=function(e){var r="";for(var n of Object.keys(e)){var a=e[n];a!==void 0&&(r+=ep(n)+":"+a+";")}return r},Cc=function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var a=r.getColor();a&&(this.style.color=a)}},Mc=function(e){var r=document.createElement(e);r.className=fr(this.classes),Object.assign(r.style,this.style);for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},Mp=/[\s"'>/=\x00-\x1f]/,Ic=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+et(fr(this.classes))+'"');var n=Ji(this.style);n&&(r+=' style="'+et(n)+'"');for(var a of Object.keys(this.attributes)){if(Mp.test(a))throw new F("Invalid attribute name '"+a+"'");r+=" "+a+'="'+et(this.attributes[a])+'"'}r+=">";for(var i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</"+e+">",r};class Zn{constructor(e,r,n,a){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,Cc.call(this,e,n,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return Mc.call(this,"span")}toMarkup(){return Ic.call(this,"span")}}class es{constructor(e,r,n,a){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,Cc.call(this,r,a),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return Mc.call(this,"a")}toMarkup(){return Ic.call(this,"a")}}class Ip{constructor(e,r,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=r,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="'+et(this.src)+'"'+(' alt="'+et(this.alt)+'"'),r=Ji(this.style);return r&&(e+=' style="'+et(r)+'"'),e+="'/>",e}}var zp={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class xt{constructor(e,r,n,a,i,s,o,c){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=r||0,this.depth=n||0,this.italic=a||0,this.skew=i||0,this.width=s||0,this.classes=o||[],this.style=c||{},this.maxFontSize=0;var h=fp(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=zp[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),r=null;return this.italic>0&&(r=document.createElement("span"),r.style.marginRight=U(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=fr(this.classes)),Object.keys(this.style).length>0&&(r=r||document.createElement("span"),Object.assign(r.style,this.style)),r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="<span";this.classes.length&&(e=!0,r+=' class="',r+=et(fr(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+U(this.italic)+";"),n+=Ji(this.style),n&&(e=!0,r+=' style="'+et(n)+'"');var a=et(this.text);return e?(r+=">",r+=a,r+="</span>",r):a}}class gr{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))e+=" "+r+'="'+et(this.attributes[r])+'"';e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>",e}}class $r{constructor(e,r){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=r}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",po[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+et(this.alternate)+'"/>':'<path d="'+et(po[this.pathName])+'"/>'}}class mo{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e="<line";for(var r of Object.keys(this.attributes))e+=" "+r+'="'+et(this.attributes[r])+'"';return e+="/>",e}}function Rp(t){if(t instanceof xt)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function Dp(t){if(t instanceof Zn)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var Np=t=>t instanceof Zn||t instanceof es||t instanceof xn,Gt={"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]}},Na={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]},fo={Å:"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 ts(t,e,r){if(!Gt[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),a=Gt[e][n];if(!a&&t[0]in fo&&(n=fo[t[0]].charCodeAt(0),a=Gt[e][n]),!a&&r==="text"&&Tc(n)&&(a=Gt[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Pa={};function Pp(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!Pa[e]){var r=Pa[e]={cssEmPerMu:Na.quad[e]/18};for(var n of Object.keys(Na))r[n]=Na[n][e]}return Pa[e]}var Ee={math:{},text:{}};function l(t,e,r,n,a,i){Ee[t][a]={font:e,group:r,replace:n},i&&n&&(Ee[t][n]=Ee[t][a])}var u="math",L="text",p="main",b="ams",Ce="accent-token",j="bin",it="close",Sn="inner",re="mathord",qe="op-token",gt="open",Qn="punct",y="rel",Yt="spacing",x="textord";l(u,p,y,"≡","\\equiv",!0);l(u,p,y,"≺","\\prec",!0);l(u,p,y,"≻","\\succ",!0);l(u,p,y,"∼","\\sim",!0);l(u,p,y,"⊥","\\perp");l(u,p,y,"⪯","\\preceq",!0);l(u,p,y,"⪰","\\succeq",!0);l(u,p,y,"≃","\\simeq",!0);l(u,p,y,"∣","\\mid",!0);l(u,p,y,"≪","\\ll",!0);l(u,p,y,"≫","\\gg",!0);l(u,p,y,"≍","\\asymp",!0);l(u,p,y,"∥","\\parallel");l(u,p,y,"⋈","\\bowtie",!0);l(u,p,y,"⌣","\\smile",!0);l(u,p,y,"⊑","\\sqsubseteq",!0);l(u,p,y,"⊒","\\sqsupseteq",!0);l(u,p,y,"≐","\\doteq",!0);l(u,p,y,"⌢","\\frown",!0);l(u,p,y,"∋","\\ni",!0);l(u,p,y,"∝","\\propto",!0);l(u,p,y,"⊢","\\vdash",!0);l(u,p,y,"⊣","\\dashv",!0);l(u,p,y,"∋","\\owns");l(u,p,Qn,".","\\ldotp");l(u,p,Qn,"⋅","\\cdotp");l(u,p,Qn,"⋅","·");l(L,p,x,"⋅","·");l(u,p,x,"#","\\#");l(L,p,x,"#","\\#");l(u,p,x,"&","\\&");l(L,p,x,"&","\\&");l(u,p,x,"ℵ","\\aleph",!0);l(u,p,x,"∀","\\forall",!0);l(u,p,x,"ℏ","\\hbar",!0);l(u,p,x,"∃","\\exists",!0);l(u,p,x,"∇","\\nabla",!0);l(u,p,x,"♭","\\flat",!0);l(u,p,x,"ℓ","\\ell",!0);l(u,p,x,"♮","\\natural",!0);l(u,p,x,"♣","\\clubsuit",!0);l(u,p,x,"℘","\\wp",!0);l(u,p,x,"♯","\\sharp",!0);l(u,p,x,"♢","\\diamondsuit",!0);l(u,p,x,"ℜ","\\Re",!0);l(u,p,x,"♡","\\heartsuit",!0);l(u,p,x,"ℑ","\\Im",!0);l(u,p,x,"♠","\\spadesuit",!0);l(u,p,x,"§","\\S",!0);l(L,p,x,"§","\\S");l(u,p,x,"¶","\\P",!0);l(L,p,x,"¶","\\P");l(u,p,x,"†","\\dag");l(L,p,x,"†","\\dag");l(L,p,x,"†","\\textdagger");l(u,p,x,"‡","\\ddag");l(L,p,x,"‡","\\ddag");l(L,p,x,"‡","\\textdaggerdbl");l(u,p,it,"⎱","\\rmoustache",!0);l(u,p,gt,"⎰","\\lmoustache",!0);l(u,p,it,"⟯","\\rgroup",!0);l(u,p,gt,"⟮","\\lgroup",!0);l(u,p,j,"∓","\\mp",!0);l(u,p,j,"⊖","\\ominus",!0);l(u,p,j,"⊎","\\uplus",!0);l(u,p,j,"⊓","\\sqcap",!0);l(u,p,j,"∗","\\ast");l(u,p,j,"⊔","\\sqcup",!0);l(u,p,j,"◯","\\bigcirc",!0);l(u,p,j,"∙","\\bullet",!0);l(u,p,j,"‡","\\ddagger");l(u,p,j,"≀","\\wr",!0);l(u,p,j,"⨿","\\amalg");l(u,p,j,"&","\\And");l(u,p,y,"⟵","\\longleftarrow",!0);l(u,p,y,"⇐","\\Leftarrow",!0);l(u,p,y,"⟸","\\Longleftarrow",!0);l(u,p,y,"⟶","\\longrightarrow",!0);l(u,p,y,"⇒","\\Rightarrow",!0);l(u,p,y,"⟹","\\Longrightarrow",!0);l(u,p,y,"↔","\\leftrightarrow",!0);l(u,p,y,"⟷","\\longleftrightarrow",!0);l(u,p,y,"⇔","\\Leftrightarrow",!0);l(u,p,y,"⟺","\\Longleftrightarrow",!0);l(u,p,y,"↦","\\mapsto",!0);l(u,p,y,"⟼","\\longmapsto",!0);l(u,p,y,"↗","\\nearrow",!0);l(u,p,y,"↩","\\hookleftarrow",!0);l(u,p,y,"↪","\\hookrightarrow",!0);l(u,p,y,"↘","\\searrow",!0);l(u,p,y,"↼","\\leftharpoonup",!0);l(u,p,y,"⇀","\\rightharpoonup",!0);l(u,p,y,"↙","\\swarrow",!0);l(u,p,y,"↽","\\leftharpoondown",!0);l(u,p,y,"⇁","\\rightharpoondown",!0);l(u,p,y,"↖","\\nwarrow",!0);l(u,p,y,"⇌","\\rightleftharpoons",!0);l(u,b,y,"≮","\\nless",!0);l(u,b,y,"","\\@nleqslant");l(u,b,y,"","\\@nleqq");l(u,b,y,"⪇","\\lneq",!0);l(u,b,y,"≨","\\lneqq",!0);l(u,b,y,"","\\@lvertneqq");l(u,b,y,"⋦","\\lnsim",!0);l(u,b,y,"⪉","\\lnapprox",!0);l(u,b,y,"⊀","\\nprec",!0);l(u,b,y,"⋠","\\npreceq",!0);l(u,b,y,"⋨","\\precnsim",!0);l(u,b,y,"⪹","\\precnapprox",!0);l(u,b,y,"≁","\\nsim",!0);l(u,b,y,"","\\@nshortmid");l(u,b,y,"∤","\\nmid",!0);l(u,b,y,"⊬","\\nvdash",!0);l(u,b,y,"⊭","\\nvDash",!0);l(u,b,y,"⋪","\\ntriangleleft");l(u,b,y,"⋬","\\ntrianglelefteq",!0);l(u,b,y,"⊊","\\subsetneq",!0);l(u,b,y,"","\\@varsubsetneq");l(u,b,y,"⫋","\\subsetneqq",!0);l(u,b,y,"","\\@varsubsetneqq");l(u,b,y,"≯","\\ngtr",!0);l(u,b,y,"","\\@ngeqslant");l(u,b,y,"","\\@ngeqq");l(u,b,y,"⪈","\\gneq",!0);l(u,b,y,"≩","\\gneqq",!0);l(u,b,y,"","\\@gvertneqq");l(u,b,y,"⋧","\\gnsim",!0);l(u,b,y,"⪊","\\gnapprox",!0);l(u,b,y,"⊁","\\nsucc",!0);l(u,b,y,"⋡","\\nsucceq",!0);l(u,b,y,"⋩","\\succnsim",!0);l(u,b,y,"⪺","\\succnapprox",!0);l(u,b,y,"≆","\\ncong",!0);l(u,b,y,"","\\@nshortparallel");l(u,b,y,"∦","\\nparallel",!0);l(u,b,y,"⊯","\\nVDash",!0);l(u,b,y,"⋫","\\ntriangleright");l(u,b,y,"⋭","\\ntrianglerighteq",!0);l(u,b,y,"","\\@nsupseteqq");l(u,b,y,"⊋","\\supsetneq",!0);l(u,b,y,"","\\@varsupsetneq");l(u,b,y,"⫌","\\supsetneqq",!0);l(u,b,y,"","\\@varsupsetneqq");l(u,b,y,"⊮","\\nVdash",!0);l(u,b,y,"⪵","\\precneqq",!0);l(u,b,y,"⪶","\\succneqq",!0);l(u,b,y,"","\\@nsubseteqq");l(u,b,j,"⊴","\\unlhd");l(u,b,j,"⊵","\\unrhd");l(u,b,y,"↚","\\nleftarrow",!0);l(u,b,y,"↛","\\nrightarrow",!0);l(u,b,y,"⇍","\\nLeftarrow",!0);l(u,b,y,"⇏","\\nRightarrow",!0);l(u,b,y,"↮","\\nleftrightarrow",!0);l(u,b,y,"⇎","\\nLeftrightarrow",!0);l(u,b,y,"△","\\vartriangle");l(u,b,x,"ℏ","\\hslash");l(u,b,x,"▽","\\triangledown");l(u,b,x,"◊","\\lozenge");l(u,b,x,"Ⓢ","\\circledS");l(u,b,x,"®","\\circledR");l(L,b,x,"®","\\circledR");l(u,b,x,"∡","\\measuredangle",!0);l(u,b,x,"∄","\\nexists");l(u,b,x,"℧","\\mho");l(u,b,x,"Ⅎ","\\Finv",!0);l(u,b,x,"⅁","\\Game",!0);l(u,b,x,"‵","\\backprime");l(u,b,x,"▲","\\blacktriangle");l(u,b,x,"▼","\\blacktriangledown");l(u,b,x,"■","\\blacksquare");l(u,b,x,"⧫","\\blacklozenge");l(u,b,x,"★","\\bigstar");l(u,b,x,"∢","\\sphericalangle",!0);l(u,b,x,"∁","\\complement",!0);l(u,b,x,"ð","\\eth",!0);l(L,p,x,"ð","ð");l(u,b,x,"╱","\\diagup");l(u,b,x,"╲","\\diagdown");l(u,b,x,"□","\\square");l(u,b,x,"□","\\Box");l(u,b,x,"◊","\\Diamond");l(u,b,x,"¥","\\yen",!0);l(L,b,x,"¥","\\yen",!0);l(u,b,x,"✓","\\checkmark",!0);l(L,b,x,"✓","\\checkmark");l(u,b,x,"ℶ","\\beth",!0);l(u,b,x,"ℸ","\\daleth",!0);l(u,b,x,"ℷ","\\gimel",!0);l(u,b,x,"ϝ","\\digamma",!0);l(u,b,x,"ϰ","\\varkappa");l(u,b,gt,"┌","\\@ulcorner",!0);l(u,b,it,"┐","\\@urcorner",!0);l(u,b,gt,"└","\\@llcorner",!0);l(u,b,it,"┘","\\@lrcorner",!0);l(u,b,y,"≦","\\leqq",!0);l(u,b,y,"⩽","\\leqslant",!0);l(u,b,y,"⪕","\\eqslantless",!0);l(u,b,y,"≲","\\lesssim",!0);l(u,b,y,"⪅","\\lessapprox",!0);l(u,b,y,"≊","\\approxeq",!0);l(u,b,j,"⋖","\\lessdot");l(u,b,y,"⋘","\\lll",!0);l(u,b,y,"≶","\\lessgtr",!0);l(u,b,y,"⋚","\\lesseqgtr",!0);l(u,b,y,"⪋","\\lesseqqgtr",!0);l(u,b,y,"≑","\\doteqdot");l(u,b,y,"≓","\\risingdotseq",!0);l(u,b,y,"≒","\\fallingdotseq",!0);l(u,b,y,"∽","\\backsim",!0);l(u,b,y,"⋍","\\backsimeq",!0);l(u,b,y,"⫅","\\subseteqq",!0);l(u,b,y,"⋐","\\Subset",!0);l(u,b,y,"⊏","\\sqsubset",!0);l(u,b,y,"≼","\\preccurlyeq",!0);l(u,b,y,"⋞","\\curlyeqprec",!0);l(u,b,y,"≾","\\precsim",!0);l(u,b,y,"⪷","\\precapprox",!0);l(u,b,y,"⊲","\\vartriangleleft");l(u,b,y,"⊴","\\trianglelefteq");l(u,b,y,"⊨","\\vDash",!0);l(u,b,y,"⊪","\\Vvdash",!0);l(u,b,y,"⌣","\\smallsmile");l(u,b,y,"⌢","\\smallfrown");l(u,b,y,"≏","\\bumpeq",!0);l(u,b,y,"≎","\\Bumpeq",!0);l(u,b,y,"≧","\\geqq",!0);l(u,b,y,"⩾","\\geqslant",!0);l(u,b,y,"⪖","\\eqslantgtr",!0);l(u,b,y,"≳","\\gtrsim",!0);l(u,b,y,"⪆","\\gtrapprox",!0);l(u,b,j,"⋗","\\gtrdot");l(u,b,y,"⋙","\\ggg",!0);l(u,b,y,"≷","\\gtrless",!0);l(u,b,y,"⋛","\\gtreqless",!0);l(u,b,y,"⪌","\\gtreqqless",!0);l(u,b,y,"≖","\\eqcirc",!0);l(u,b,y,"≗","\\circeq",!0);l(u,b,y,"≜","\\triangleq",!0);l(u,b,y,"∼","\\thicksim");l(u,b,y,"≈","\\thickapprox");l(u,b,y,"⫆","\\supseteqq",!0);l(u,b,y,"⋑","\\Supset",!0);l(u,b,y,"⊐","\\sqsupset",!0);l(u,b,y,"≽","\\succcurlyeq",!0);l(u,b,y,"⋟","\\curlyeqsucc",!0);l(u,b,y,"≿","\\succsim",!0);l(u,b,y,"⪸","\\succapprox",!0);l(u,b,y,"⊳","\\vartriangleright");l(u,b,y,"⊵","\\trianglerighteq");l(u,b,y,"⊩","\\Vdash",!0);l(u,b,y,"∣","\\shortmid");l(u,b,y,"∥","\\shortparallel");l(u,b,y,"≬","\\between",!0);l(u,b,y,"⋔","\\pitchfork",!0);l(u,b,y,"∝","\\varpropto");l(u,b,y,"◀","\\blacktriangleleft");l(u,b,y,"∴","\\therefore",!0);l(u,b,y,"∍","\\backepsilon");l(u,b,y,"▶","\\blacktriangleright");l(u,b,y,"∵","\\because",!0);l(u,b,y,"⋘","\\llless");l(u,b,y,"⋙","\\gggtr");l(u,b,j,"⊲","\\lhd");l(u,b,j,"⊳","\\rhd");l(u,b,y,"≂","\\eqsim",!0);l(u,p,y,"⋈","\\Join");l(u,b,y,"≑","\\Doteq",!0);l(u,b,j,"∔","\\dotplus",!0);l(u,b,j,"∖","\\smallsetminus");l(u,b,j,"⋒","\\Cap",!0);l(u,b,j,"⋓","\\Cup",!0);l(u,b,j,"⩞","\\doublebarwedge",!0);l(u,b,j,"⊟","\\boxminus",!0);l(u,b,j,"⊞","\\boxplus",!0);l(u,b,j,"⋇","\\divideontimes",!0);l(u,b,j,"⋉","\\ltimes",!0);l(u,b,j,"⋊","\\rtimes",!0);l(u,b,j,"⋋","\\leftthreetimes",!0);l(u,b,j,"⋌","\\rightthreetimes",!0);l(u,b,j,"⋏","\\curlywedge",!0);l(u,b,j,"⋎","\\curlyvee",!0);l(u,b,j,"⊝","\\circleddash",!0);l(u,b,j,"⊛","\\circledast",!0);l(u,b,j,"⋅","\\centerdot");l(u,b,j,"⊺","\\intercal",!0);l(u,b,j,"⋒","\\doublecap");l(u,b,j,"⋓","\\doublecup");l(u,b,j,"⊠","\\boxtimes",!0);l(u,b,y,"⇢","\\dashrightarrow",!0);l(u,b,y,"⇠","\\dashleftarrow",!0);l(u,b,y,"⇇","\\leftleftarrows",!0);l(u,b,y,"⇆","\\leftrightarrows",!0);l(u,b,y,"⇚","\\Lleftarrow",!0);l(u,b,y,"↞","\\twoheadleftarrow",!0);l(u,b,y,"↢","\\leftarrowtail",!0);l(u,b,y,"↫","\\looparrowleft",!0);l(u,b,y,"⇋","\\leftrightharpoons",!0);l(u,b,y,"↶","\\curvearrowleft",!0);l(u,b,y,"↺","\\circlearrowleft",!0);l(u,b,y,"↰","\\Lsh",!0);l(u,b,y,"⇈","\\upuparrows",!0);l(u,b,y,"↿","\\upharpoonleft",!0);l(u,b,y,"⇃","\\downharpoonleft",!0);l(u,p,y,"⊶","\\origof",!0);l(u,p,y,"⊷","\\imageof",!0);l(u,b,y,"⊸","\\multimap",!0);l(u,b,y,"↭","\\leftrightsquigarrow",!0);l(u,b,y,"⇉","\\rightrightarrows",!0);l(u,b,y,"⇄","\\rightleftarrows",!0);l(u,b,y,"↠","\\twoheadrightarrow",!0);l(u,b,y,"↣","\\rightarrowtail",!0);l(u,b,y,"↬","\\looparrowright",!0);l(u,b,y,"↷","\\curvearrowright",!0);l(u,b,y,"↻","\\circlearrowright",!0);l(u,b,y,"↱","\\Rsh",!0);l(u,b,y,"⇊","\\downdownarrows",!0);l(u,b,y,"↾","\\upharpoonright",!0);l(u,b,y,"⇂","\\downharpoonright",!0);l(u,b,y,"⇝","\\rightsquigarrow",!0);l(u,b,y,"⇝","\\leadsto");l(u,b,y,"⇛","\\Rrightarrow",!0);l(u,b,y,"↾","\\restriction");l(u,p,x,"‘","`");l(u,p,x,"$","\\$");l(L,p,x,"$","\\$");l(L,p,x,"$","\\textdollar");l(u,p,x,"%","\\%");l(L,p,x,"%","\\%");l(u,p,x,"_","\\_");l(L,p,x,"_","\\_");l(L,p,x,"_","\\textunderscore");l(u,p,x,"∠","\\angle",!0);l(u,p,x,"∞","\\infty",!0);l(u,p,x,"′","\\prime");l(u,p,x,"△","\\triangle");l(u,p,x,"Γ","\\Gamma",!0);l(u,p,x,"Δ","\\Delta",!0);l(u,p,x,"Θ","\\Theta",!0);l(u,p,x,"Λ","\\Lambda",!0);l(u,p,x,"Ξ","\\Xi",!0);l(u,p,x,"Π","\\Pi",!0);l(u,p,x,"Σ","\\Sigma",!0);l(u,p,x,"Υ","\\Upsilon",!0);l(u,p,x,"Φ","\\Phi",!0);l(u,p,x,"Ψ","\\Psi",!0);l(u,p,x,"Ω","\\Omega",!0);l(u,p,x,"A","Α");l(u,p,x,"B","Β");l(u,p,x,"E","Ε");l(u,p,x,"Z","Ζ");l(u,p,x,"H","Η");l(u,p,x,"I","Ι");l(u,p,x,"K","Κ");l(u,p,x,"M","Μ");l(u,p,x,"N","Ν");l(u,p,x,"O","Ο");l(u,p,x,"P","Ρ");l(u,p,x,"T","Τ");l(u,p,x,"X","Χ");l(u,p,x,"¬","\\neg",!0);l(u,p,x,"¬","\\lnot");l(u,p,x,"⊤","\\top");l(u,p,x,"⊥","\\bot");l(u,p,x,"∅","\\emptyset");l(u,b,x,"∅","\\varnothing");l(u,p,re,"α","\\alpha",!0);l(u,p,re,"β","\\beta",!0);l(u,p,re,"γ","\\gamma",!0);l(u,p,re,"δ","\\delta",!0);l(u,p,re,"ϵ","\\epsilon",!0);l(u,p,re,"ζ","\\zeta",!0);l(u,p,re,"η","\\eta",!0);l(u,p,re,"θ","\\theta",!0);l(u,p,re,"ι","\\iota",!0);l(u,p,re,"κ","\\kappa",!0);l(u,p,re,"λ","\\lambda",!0);l(u,p,re,"μ","\\mu",!0);l(u,p,re,"ν","\\nu",!0);l(u,p,re,"ξ","\\xi",!0);l(u,p,re,"ο","\\omicron",!0);l(u,p,re,"π","\\pi",!0);l(u,p,re,"ρ","\\rho",!0);l(u,p,re,"σ","\\sigma",!0);l(u,p,re,"τ","\\tau",!0);l(u,p,re,"υ","\\upsilon",!0);l(u,p,re,"ϕ","\\phi",!0);l(u,p,re,"χ","\\chi",!0);l(u,p,re,"ψ","\\psi",!0);l(u,p,re,"ω","\\omega",!0);l(u,p,re,"ε","\\varepsilon",!0);l(u,p,re,"ϑ","\\vartheta",!0);l(u,p,re,"ϖ","\\varpi",!0);l(u,p,re,"ϱ","\\varrho",!0);l(u,p,re,"ς","\\varsigma",!0);l(u,p,re,"φ","\\varphi",!0);l(u,p,j,"∗","*",!0);l(u,p,j,"+","+");l(u,p,j,"−","-",!0);l(u,p,j,"⋅","\\cdot",!0);l(u,p,j,"∘","\\circ",!0);l(u,p,j,"÷","\\div",!0);l(u,p,j,"±","\\pm",!0);l(u,p,j,"×","\\times",!0);l(u,p,j,"∩","\\cap",!0);l(u,p,j,"∪","\\cup",!0);l(u,p,j,"∖","\\setminus",!0);l(u,p,j,"∧","\\land");l(u,p,j,"∨","\\lor");l(u,p,j,"∧","\\wedge",!0);l(u,p,j,"∨","\\vee",!0);l(u,p,x,"√","\\surd");l(u,p,gt,"⟨","\\langle",!0);l(u,p,gt,"∣","\\lvert");l(u,p,gt,"∥","\\lVert");l(u,p,it,"?","?");l(u,p,it,"!","!");l(u,p,it,"⟩","\\rangle",!0);l(u,p,it,"∣","\\rvert");l(u,p,it,"∥","\\rVert");l(u,p,y,"=","=");l(u,p,y,":",":");l(u,p,y,"≈","\\approx",!0);l(u,p,y,"≅","\\cong",!0);l(u,p,y,"≥","\\ge");l(u,p,y,"≥","\\geq",!0);l(u,p,y,"←","\\gets");l(u,p,y,">","\\gt",!0);l(u,p,y,"∈","\\in",!0);l(u,p,y,"","\\@not");l(u,p,y,"⊂","\\subset",!0);l(u,p,y,"⊃","\\supset",!0);l(u,p,y,"⊆","\\subseteq",!0);l(u,p,y,"⊇","\\supseteq",!0);l(u,b,y,"⊈","\\nsubseteq",!0);l(u,b,y,"⊉","\\nsupseteq",!0);l(u,p,y,"⊨","\\models");l(u,p,y,"←","\\leftarrow",!0);l(u,p,y,"≤","\\le");l(u,p,y,"≤","\\leq",!0);l(u,p,y,"<","\\lt",!0);l(u,p,y,"→","\\rightarrow",!0);l(u,p,y,"→","\\to");l(u,b,y,"≱","\\ngeq",!0);l(u,b,y,"≰","\\nleq",!0);l(u,p,Yt," ","\\ ");l(u,p,Yt," ","\\space");l(u,p,Yt," ","\\nobreakspace");l(L,p,Yt," ","\\ ");l(L,p,Yt," "," ");l(L,p,Yt," ","\\space");l(L,p,Yt," ","\\nobreakspace");l(u,p,Yt,"","\\nobreak");l(u,p,Yt,"","\\allowbreak");l(u,p,Qn,",",",");l(u,p,Qn,";",";");l(u,b,j,"⊼","\\barwedge",!0);l(u,b,j,"⊻","\\veebar",!0);l(u,p,j,"⊙","\\odot",!0);l(u,p,j,"⊕","\\oplus",!0);l(u,p,j,"⊗","\\otimes",!0);l(u,p,x,"∂","\\partial",!0);l(u,p,j,"⊘","\\oslash",!0);l(u,b,j,"⊚","\\circledcirc",!0);l(u,b,j,"⊡","\\boxdot",!0);l(u,p,j,"△","\\bigtriangleup");l(u,p,j,"▽","\\bigtriangledown");l(u,p,j,"†","\\dagger");l(u,p,j,"⋄","\\diamond");l(u,p,j,"⋆","\\star");l(u,p,j,"◃","\\triangleleft");l(u,p,j,"▹","\\triangleright");l(u,p,gt,"{","\\{");l(L,p,x,"{","\\{");l(L,p,x,"{","\\textbraceleft");l(u,p,it,"}","\\}");l(L,p,x,"}","\\}");l(L,p,x,"}","\\textbraceright");l(u,p,gt,"{","\\lbrace");l(u,p,it,"}","\\rbrace");l(u,p,gt,"[","\\lbrack",!0);l(L,p,x,"[","\\lbrack",!0);l(u,p,it,"]","\\rbrack",!0);l(L,p,x,"]","\\rbrack",!0);l(u,p,gt,"(","\\lparen",!0);l(u,p,it,")","\\rparen",!0);l(L,p,x,"<","\\textless",!0);l(L,p,x,">","\\textgreater",!0);l(u,p,gt,"⌊","\\lfloor",!0);l(u,p,it,"⌋","\\rfloor",!0);l(u,p,gt,"⌈","\\lceil",!0);l(u,p,it,"⌉","\\rceil",!0);l(u,p,x,"\\","\\backslash");l(u,p,x,"∣","|");l(u,p,x,"∣","\\vert");l(L,p,x,"|","\\textbar",!0);l(u,p,x,"∥","\\|");l(u,p,x,"∥","\\Vert");l(L,p,x,"∥","\\textbardbl");l(L,p,x,"~","\\textasciitilde");l(L,p,x,"\\","\\textbackslash");l(L,p,x,"^","\\textasciicircum");l(u,p,y,"↑","\\uparrow",!0);l(u,p,y,"⇑","\\Uparrow",!0);l(u,p,y,"↓","\\downarrow",!0);l(u,p,y,"⇓","\\Downarrow",!0);l(u,p,y,"↕","\\updownarrow",!0);l(u,p,y,"⇕","\\Updownarrow",!0);l(u,p,qe,"∐","\\coprod");l(u,p,qe,"⋁","\\bigvee");l(u,p,qe,"⋀","\\bigwedge");l(u,p,qe,"⨄","\\biguplus");l(u,p,qe,"⋂","\\bigcap");l(u,p,qe,"⋃","\\bigcup");l(u,p,qe,"∫","\\int");l(u,p,qe,"∫","\\intop");l(u,p,qe,"∬","\\iint");l(u,p,qe,"∭","\\iiint");l(u,p,qe,"∏","\\prod");l(u,p,qe,"∑","\\sum");l(u,p,qe,"⨂","\\bigotimes");l(u,p,qe,"⨁","\\bigoplus");l(u,p,qe,"⨀","\\bigodot");l(u,p,qe,"∮","\\oint");l(u,p,qe,"∯","\\oiint");l(u,p,qe,"∰","\\oiiint");l(u,p,qe,"⨆","\\bigsqcup");l(u,p,qe,"∫","\\smallint");l(L,p,Sn,"…","\\textellipsis");l(u,p,Sn,"…","\\mathellipsis");l(L,p,Sn,"…","\\ldots",!0);l(u,p,Sn,"…","\\ldots",!0);l(u,p,Sn,"⋯","\\@cdots",!0);l(u,p,Sn,"⋱","\\ddots",!0);l(u,p,x,"⋮","\\varvdots");l(L,p,x,"⋮","\\varvdots");l(u,p,Ce,"ˊ","\\acute");l(u,p,Ce,"ˋ","\\grave");l(u,p,Ce,"¨","\\ddot");l(u,p,Ce,"~","\\tilde");l(u,p,Ce,"ˉ","\\bar");l(u,p,Ce,"˘","\\breve");l(u,p,Ce,"ˇ","\\check");l(u,p,Ce,"^","\\hat");l(u,p,Ce,"⃗","\\vec");l(u,p,Ce,"˙","\\dot");l(u,p,Ce,"˚","\\mathring");l(u,p,re,"","\\@imath");l(u,p,re,"","\\@jmath");l(u,p,x,"ı","ı");l(u,p,x,"ȷ","ȷ");l(L,p,x,"ı","\\i",!0);l(L,p,x,"ȷ","\\j",!0);l(L,p,x,"ß","\\ss",!0);l(L,p,x,"æ","\\ae",!0);l(L,p,x,"œ","\\oe",!0);l(L,p,x,"ø","\\o",!0);l(L,p,x,"Æ","\\AE",!0);l(L,p,x,"Œ","\\OE",!0);l(L,p,x,"Ø","\\O",!0);l(L,p,Ce,"ˊ","\\'");l(L,p,Ce,"ˋ","\\`");l(L,p,Ce,"ˆ","\\^");l(L,p,Ce,"˜","\\~");l(L,p,Ce,"ˉ","\\=");l(L,p,Ce,"˘","\\u");l(L,p,Ce,"˙","\\.");l(L,p,Ce,"¸","\\c");l(L,p,Ce,"˚","\\r");l(L,p,Ce,"ˇ","\\v");l(L,p,Ce,"¨",'\\"');l(L,p,Ce,"˝","\\H");l(L,p,Ce,"◯","\\textcircled");var zc={"--":!0,"---":!0,"``":!0,"''":!0};l(L,p,x,"–","--",!0);l(L,p,x,"–","\\textendash");l(L,p,x,"—","---",!0);l(L,p,x,"—","\\textemdash");l(L,p,x,"‘","`",!0);l(L,p,x,"‘","\\textquoteleft");l(L,p,x,"’","'",!0);l(L,p,x,"’","\\textquoteright");l(L,p,x,"“","``",!0);l(L,p,x,"“","\\textquotedblleft");l(L,p,x,"”","''",!0);l(L,p,x,"”","\\textquotedblright");l(u,p,x,"°","\\degree",!0);l(L,p,x,"°","\\degree");l(L,p,x,"°","\\textdegree",!0);l(u,p,x,"£","\\pounds");l(u,p,x,"£","\\mathsterling",!0);l(L,p,x,"£","\\pounds");l(L,p,x,"£","\\textsterling",!0);l(u,b,x,"✠","\\maltese");l(L,b,x,"✠","\\maltese");var go='0123456789/@."';for(var _a=0;_a<go.length;_a++){var vo=go.charAt(_a);l(u,p,x,vo,vo)}var bo='0123456789!@*()-=+";:?/.,';for(var La=0;La<bo.length;La++){var yo=bo.charAt(La);l(L,p,x,yo,yo)}var W0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Oa=0;Oa<W0.length;Oa++){var T0=W0.charAt(Oa);l(u,p,re,T0,T0),l(L,p,x,T0,T0)}l(u,b,x,"C","ℂ");l(L,b,x,"C","ℂ");l(u,b,x,"H","ℍ");l(L,b,x,"H","ℍ");l(u,b,x,"N","ℕ");l(L,b,x,"N","ℕ");l(u,b,x,"P","ℙ");l(L,b,x,"P","ℙ");l(u,b,x,"Q","ℚ");l(L,b,x,"Q","ℚ");l(u,b,x,"R","ℝ");l(L,b,x,"R","ℝ");l(u,b,x,"Z","ℤ");l(L,b,x,"Z","ℤ");l(u,p,re,"h","ℎ");l(L,p,re,"h","ℎ");var ae;for(var tt=0;tt<W0.length;tt++){var Re=W0.charAt(tt);ae=String.fromCharCode(55349,56320+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56372+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56424+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56580+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56684+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56736+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56788+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56840+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56944+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),tt<26&&(ae=String.fromCharCode(55349,56632+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56476+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae))}ae="𝕜";l(u,p,re,"k",ae);l(L,p,x,"k",ae);for(var Mr=0;Mr<10;Mr++){var ir=Mr.toString();ae=String.fromCharCode(55349,57294+Mr),l(u,p,re,ir,ae),l(L,p,x,ir,ae),ae=String.fromCharCode(55349,57314+Mr),l(u,p,re,ir,ae),l(L,p,x,ir,ae),ae=String.fromCharCode(55349,57324+Mr),l(u,p,re,ir,ae),l(L,p,x,ir,ae),ae=String.fromCharCode(55349,57334+Mr),l(u,p,re,ir,ae),l(L,p,x,ir,ae)}var gi="ÐÞþ";for(var $a=0;$a<gi.length;$a++){var E0=gi.charAt($a);l(u,p,re,E0,E0),l(L,p,x,E0,E0)}var vi={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},wo={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},ko={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},_p={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},Pr={mathClass:"",textClass:"",font:""},xo={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},So={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},Ao={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},bi={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},yi={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},To={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},wi={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},Eo=[vi,vi,wo,wo,ko,ko,_p,Pr,Pr,Pr,xo,xo,So,So,Ao,Ao,bi,bi,yi,yi,To,To,Pr,Pr,wi,wi],Lp=[vi,Pr,bi,yi,wi],Op=t=>{var e=t.charCodeAt(0),r=t.charCodeAt(1),n=(e-55296)*1024+(r-56320)+65536;if(119808<=n&&n<120484){var a=Math.floor((n-119808)/26);return Eo[a]}else if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return Lp[i]}else{if(n===120485||n===120486)return Eo[0];if(120486<n&&n<120782)return Pr;throw new F("Unsupported character: "+t)}};function ut(t){var e=t.strict,r=t.errorCode,n=t.errorMsg,a=t.token,i=t.report,s=e;if(typeof e=="function")if(i)s=e(r,n,a);else try{s=e(r,n,a)}catch{s="error"}switch(s){case!0:case"error":if(i)throw new F("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+r+"]"),a);return!0;case!1:case"ignore":if(!i)return!1;break;case"warn":default:if(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+r+"]")),!i)return!1;break}}var Y0=function(e,r,n){if(Ee[n][e]){var a=Ee[n][e].replace;a&&(e=a)}return{value:e,metrics:ts(e,r,n)}},nt=function(e,r,n,a,i){var s=Y0(e,r,n),o=s.metrics;e=s.value;var c;if(o){var h=o.italic;(n==="text"||a&&a.font==="mathit")&&(h=0),c=new xt(e,o.height,o.depth,h,o.skew,o.width,i)}else ut({strict:a.strict,errorCode:"symbolNotInFont",errorMsg:"No character metrics for '"+e+"' in style '"+r+"' and mode '"+n+"'",report:!0}),c=new xt(e,0,0,0,0,0,i);c.maxFontSize=a.sizeMultiplier,a.style.isTight()&&c.classes.push("mtight");var d=a.getColor();return d&&(c.style.color=d),c},rs=function(e,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&Y0(e,"Main-Bold",r).metrics?nt(e,"Main-Bold",r,n,a.concat(["mathbf"])):e==="\\"||Ee[r][e].font==="main"?nt(e,"Main-Regular",r,n,a):nt(e,"AMS-Regular",r,n,a.concat(["amsrm"]))},$p=function(e,r,n){return n!=="textord"&&Y0(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Z0=function(e,r){var n=e.type==="mathord"?"mathord":"textord",a=e.mode,i=e.text,s=["mord"],o=r.font,c=r.fontFamily,h=r.fontWeight,d=r.fontShape,v=a==="math"||a==="text"&&!!o,m=v?o:c,w="",A="";if(i.charCodeAt(0)===55349){var C=Op(i);w=C.font,A=C[a+"Class"]}if(w)return nt(i,w,a,r,s.concat(A));if(m){var M,k;if(m==="boldsymbol"){var I=$p(i,a,n);M=I.fontName,k=[I.fontClass]}else v?(M=ki[o].fontName,k=[o]):(M=C0(c,h,d),k=[c,h,d]);if(Y0(i,M,a).metrics)return nt(i,M,a,r,s.concat(k));if(Object.prototype.hasOwnProperty.call(zc,i)&&M.slice(0,10)==="Typewriter"){for(var R=[],Z=0;Z<i.length;Z++)R.push(nt(i[Z],M,a,r,s.concat(k)));return Zt(R)}}if(n==="mathord")return nt(i,"Math-Italic",a,r,s.concat(["mathnormal"]));if(n==="textord"){var K=Ee[a][i]&&Ee[a][i].font;if(K==="ams"){var ee=C0("amsrm",h,d);return nt(i,ee,a,r,s.concat("amsrm",h,d))}else if(K==="main"||!K){var T=C0("textrm",h,d);return nt(i,T,a,r,s.concat(h,d))}else{var B=C0(K,h,d);return nt(i,B,a,r,s.concat(B,h,d))}}else throw new Error("unexpected type: "+n+" in makeOrd")},Bp=(t,e)=>{if(fr(t.classes)!==fr(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(t.style))if(t.style[n]!==e.style[n])return!1;for(var a of Object.keys(e.style))if(t.style[a]!==e.style[a])return!1;return!0},Rc=t=>{for(var e=0;e<t.length-1;e++){var r=t[e],n=t[e+1];r instanceof xt&&n instanceof xt&&Bp(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,t.splice(e+1,1),e--)}return t},ns=function(e){for(var r=0,n=0,a=0,i=0;i<e.children.length;i++){var s=e.children[i];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=a},$=function(e,r,n,a){var i=new Zn(e,r,n,a);return ns(i),i},vr=(t,e,r,n)=>new Zn(t,e,r,n),mn=function(e,r,n){var a=$([e],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=U(a.height),a.maxFontSize=1,a},qp=function(e,r,n,a){var i=new es(e,r,n,a);return ns(i),i},Zt=function(e){var r=new xn(e);return ns(r),r},fn=function(e,r){return e instanceof xn?$([],[e],r):e},Fp=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s<r.length;s++){var o=-r[s].shift-i-r[s].elem.depth,c=o-(r[s-1].elem.height+r[s-1].elem.depth);i=i+o,n.push({type:"kern",size:c}),n.push(r[s])}return{children:n,depth:a}}var h;if(e.positionType==="top"){for(var d=e.positionData,v=0;v<e.children.length;v++){var m=e.children[v];d-=m.type==="kern"?m.size:m.elem.height+m.elem.depth}h=d}else if(e.positionType==="bottom")h=-e.positionData;else{var w=e.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")h=-w.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")h=-w.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:h}},fe=function(e,r){for(var n=Fp(e),a=n.children,i=n.depth,s=0,o=0;o<a.length;o++){var c=a[o];if(c.type==="elem"){var h=c.elem;s=Math.max(s,h.maxFontSize,h.height)}}s+=2;var d=$(["pstrut"],[]);d.style.height=U(s);for(var v=[],m=i,w=i,A=i,C=0;C<a.length;C++){var M=a[C];if(M.type==="kern")A+=M.size;else{var k=M.elem,I=M.wrapperClasses||[],R=M.wrapperStyle||{},Z=$(I,[d,k],void 0,R);Z.style.top=U(-s-A-k.depth),M.marginLeft&&(Z.style.marginLeft=M.marginLeft),M.marginRight&&(Z.style.marginRight=M.marginRight),v.push(Z),A+=k.height+k.depth}m=Math.min(m,A),w=Math.max(w,A)}var K=$(["vlist"],v);K.style.height=U(w);var ee;if(m<0){var T=$([],[]),B=$(["vlist"],[T]);B.style.height=U(-m);var q=$(["vlist-s"],[new xt("​")]);ee=[$(["vlist-r"],[K,q]),$(["vlist-r"],[B])]}else ee=[$(["vlist-r"],[K])];var X=$(["vlist-t"],ee);return ee.length===2&&X.classes.push("vlist-t2"),X.height=w,X.depth=-m,X},Dc=(t,e)=>{var r=$(["mspace"],[],e),n=Ie(t,e);return r.style.marginRight=U(n),r},C0=(t,e,r)=>{var n,a;switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}return e==="textbf"&&r==="textit"?a="BoldItalic":e==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",n+"-"+a},ki={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"}},Nc={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Pc=function(e,r){var n=Nc[e],a=n[0],i=n[1],s=n[2],o=new $r(a),c=new gr([o],{width:U(i),height:U(s),style:"width:"+U(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),h=vr(["katex-overlay"],[c],r);return h.height=s,h.style.height=U(s),h.style.width=U(i),h},Me={number:3,unit:"mu"},Ir={number:4,unit:"mu"},Ft={number:5,unit:"mu"},Hp={mord:{mop:Me,mbin:Ir,mrel:Ft,minner:Me},mop:{mord:Me,mop:Me,mrel:Ft,minner:Me},mbin:{mord:Ir,mop:Ir,mopen:Ir,minner:Ir},mrel:{mord:Ft,mop:Ft,mopen:Ft,minner:Ft},mopen:{},mclose:{mop:Me,mbin:Ir,mrel:Ft,minner:Me},mpunct:{mord:Me,mop:Me,mrel:Ft,mopen:Me,mclose:Me,mpunct:Me,minner:Me},minner:{mord:Me,mop:Me,mbin:Ir,mrel:Ft,mopen:Me,mpunct:Me,minner:Me}},Up={mord:{mop:Me},mop:{mord:Me,mop:Me},mbin:{},mrel:{},mopen:{},mclose:{mop:Me},mpunct:{},minner:{mop:Me}},_c={},Wn={},Gn={};function G(t){for(var e=t.type,r=t.names,n=t.htmlBuilder,a=t.mathmlBuilder,i=0;i<r.length;++i)_c[r[i]]=t;e&&(n&&(Wn[e]=n),a&&(Gn[e]=a))}function Hr(t){var e=t.type,r=t.htmlBuilder,n=t.mathmlBuilder;r&&(Wn[e]=r),n&&(Gn[e]=n)}var jn=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},Oe=function(e){return e.type==="ordgroup"?e.body:[e]},Wp=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Gp=new Set(["rightmost","mrel","mclose","mpunct"]),jp={display:se.DISPLAY,text:se.TEXT,script:se.SCRIPT,scriptscript:se.SCRIPTSCRIPT},Vp={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},We=function(e,r,n,a){a===void 0&&(a=[null,null]);for(var i=[],s=0;s<e.length;s++){var o=me(e[s],r);if(o instanceof xn){var c=o.children;i.push(...c)}else i.push(o)}if(Rc(i),!n)return i;var h=r;if(e.length===1){var d=e[0];d.type==="sizing"?h=r.havingSize(d.size):d.type==="styling"&&(h=r.havingStyle(jp[d.style]))}var v=$([a[0]||"leftmost"],[],r),m=$([a[1]||"rightmost"],[],r),w=n==="root";return xi(i,(A,C)=>{var M=C.classes[0],k=A.classes[0];M==="mbin"&&Gp.has(k)?C.classes[0]="mord":k==="mbin"&&Wp.has(M)&&(A.classes[0]="mord")},{node:v},m,w),xi(i,(A,C)=>{var M,k,I=Ai(C),R=Ai(A),Z=I&&R?A.hasClass("mtight")?(M=Up[I])==null?void 0:M[R]:(k=Hp[I])==null?void 0:k[R]:null;if(Z)return Dc(Z,h)},{node:v},m,w),i},xi=function(e,r,n,a,i){a&&e.push(a);for(var s=0;s<e.length;s++){var o=e[s],c=Lc(o);if(c){xi(c.children,r,n,null,i);continue}var h=!o.hasClass("mspace");if(h){var d=r(o,n.node);d&&(n.insertAfter?n.insertAfter(d):(e.unshift(d),s++))}h?n.node=o:i&&o.hasClass("katex-newline")&&(n.node=$(["leftmost"])),n.insertAfter=(v=>m=>{e.splice(v+1,0,m),s++})(s)}a&&e.pop()},Lc=function(e){return e instanceof xn||e instanceof es||e instanceof Zn&&e.hasClass("enclosing")?e:null},Si=function(e,r){var n=Lc(e);if(n){var a=n.children;if(a.length){if(r==="right")return Si(a[a.length-1],"right");if(r==="left")return Si(a[0],"left")}}return e},Ai=function(e,r){if(!e)return null;r&&(e=Si(e,r));var n=e.classes[0];return Vp[n]||null},Vn=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return $(r.concat(n))},me=function(e,r,n){if(!e)return $();if(Wn[e.type]){var a=Wn[e.type](e,r);if(n&&r.size!==n.size){a=$(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new F("Got group of unknown type: '"+e.type+"'")};function M0(t,e){var r=$(["katex-base"],t,e),n=$(["katex-strut"]);return n.style.height=U(r.height+r.depth),r.depth&&(n.style.verticalAlign=U(-r.depth)),r.children.unshift(n),r}function Co(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=We(t,e,"root"),a;n.length===2&&n[1].hasClass("katex-tag")&&(a=n.pop());for(var i=[],s=[],o=0;o<n.length;o++)if(s.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var c=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("katex-newline");)o++,s.push(n[o]),n[o].hasClass("nobreak")&&(c=!0);c||(i.push(M0(s,e)),s=[])}else n[o].hasClass("katex-newline")&&(s.pop(),s.length>0&&(i.push(M0(s,e)),s=[]),i.push(n[o]));s.length>0&&i.push(M0(s,e));var h;r?(h=M0(We(r,e,!0),e),h.classes=["katex-tag"],i.push(h)):a&&i.push(a);var d=$(["katex-html"],i);if(d.setAttribute("aria-hidden","true"),h){var v=h.children[0];v.style.height=U(d.height+d.depth),d.depth&&(v.style.verticalAlign=U(-d.depth))}return d}function Oc(t){return new xn(t)}class H{constructor(e,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r of Object.entries(this.attributes)){var n=r[0],a=r[1];e.setAttribute(n,a)}this.classes.length>0&&(e.className=fr(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof $e&&this.children[i+1]instanceof $e){for(var s=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof $e;)s+=this.children[++i].toText();e.appendChild(new $e(s).toNode())}else e.appendChild(this.children[i].toNode());return e}toMarkup(){var e="<"+this.type;for(var r of Object.entries(this.attributes)){var n=r[0],a=r[1];e+=" "+n+'="',e+=et(a),e+='"'}this.classes.length>0&&(e+=' class ="'+et(fr(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("")}}class $e{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return et(this.toText())}toText(){return this.text}}class $c{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",U(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+U(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Kp=new Set(["\\imath","\\jmath"]),Xp=new Set(["mrow","mtable"]),St=function(e,r,n){var a,i;return Ee[r][e]&&Ee[r][e].replace&&e.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(zc,e)&&((n==null||(a=n.fontFamily)==null?void 0:a.slice(4,6))==="tt"||(n==null||(i=n.font)==null?void 0:i.slice(4,6))==="tt"))&&(e=Ee[r][e].replace),new $e(e)},as=function(e){return e.length===1?e[0]:new H("mrow",e)},Yp={mathit:"italic",boldsymbol:t=>t.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"},is=(t,e)=>{if(t.mode==="text"){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold"}var r=e.font;if(!r||r==="mathnormal")return null;var n=t.mode,a=Yp[r];if(a)return typeof a=="function"?a(t):a;var i=t.text;if(Kp.has(i))return null;if(Ee[n][i]){var s=Ee[n][i].replace;s&&(i=s)}var o=ki[r].fontName;return ts(i,o,n)?ki[r].variant:null};function Ba(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof $e&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof $e&&r.text===","}else return!1}var vt=function(e,r,n){if(e.length===1){var a=we(e[0],r);return n&&a instanceof H&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o<e.length;o++){var c=we(e[o],r);if(c instanceof H&&s instanceof H){if(c.type==="mtext"&&s.type==="mtext"&&c.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...c.children);continue}else if(c.type==="mn"&&s.type==="mn"){s.children.push(...c.children);continue}else if(Ba(c)&&s.type==="mn"){s.children.push(...c.children);continue}else if(c.type==="mn"&&Ba(s))c.children=[...s.children,...c.children],i.pop();else if((c.type==="msup"||c.type==="msub")&&c.children.length>=1&&(s.type==="mn"||Ba(s))){var h=c.children[0];h instanceof H&&h.type==="mn"&&(h.children=[...s.children,...h.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof $e&&d.text==="̸"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var v=c.children[0];v instanceof $e&&v.text.length>0&&(v.text=v.text.slice(0,1)+"̸"+v.text.slice(1),i.pop())}}}i.push(c),s=c}return i},br=function(e,r,n){return as(vt(e,r,n))},we=function(e,r){if(!e)return new H("mrow");if(Gn[e.type])return Gn[e.type](e,r);throw new F("Got group of unknown type: '"+e.type+"'")};function Mo(t,e,r,n,a){var i=vt(t,r),s;i.length===1&&i[0]instanceof H&&Xp.has(i[0].type)?s=i[0]:s=new H("mrow",i);var o=new H("annotation",[new $e(e)]);o.setAttribute("encoding","application/x-tex");var c=new H("semantics",[s,o]),h=new H("math",[c]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&h.setAttribute("display","block");var d=a?"katex":"katex-mathml";return $([d],[h])}var Zp=[[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]],Io=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],zo=function(e,r){return r.size<2?e:Zp[e-1][r.size-1]};class Wt{constructor(e){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=e.style,this.color=e.color,this.size=e.size||Wt.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=Io[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this.strict=e.strict,this._fontMetrics=void 0}extend(e){var r={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(r,e),new Wt(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:zo(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:Io[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=zo(Wt.BASESIZE,e);return this.size===r&&this.textSize===Wt.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}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!==Wt.BASESIZE?["katex-sizing","reset-size"+this.size,"size"+Wt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Pp(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Wt.BASESIZE=6;var Qp=t=>new Wt({style:t.displayMode?se.DISPLAY:se.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness,strict:t.strict}),Jp=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=$(n,[e])}return e},em=function(e,r,n){var a=Qp(n),i;if(n.output==="mathml")return Mo(e,r,a,n.displayMode,!0);if(n.output==="html"){var s=Co(e,a);i=$(["katex"],[s])}else{var o=Mo(e,r,a,n.displayMode,!1),c=Co(e,a);i=$(["katex"],[o,c])}return Jp(i,n)},tm={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":"="},Q0=function(e){var r=new H("mo",[new $e(tm[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},rm={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]},nm=new Set(["widehat","widecheck","widetilde","utilde"]),J0=function(e,r){function n(){var c=4e5,h=e.label.slice(1);if(nm.has(h)&&"base"in e){var d=e.base.type==="ordgroup"?e.base.body.length:1,v,m,w;if(d>5)h==="widehat"||h==="widecheck"?(v=420,c=2364,w=.42,m=h+"4"):(v=312,c=2340,w=.34,m="tilde4");else{var A=[1,1,2,2,3,3][d];h==="widehat"||h==="widecheck"?(c=[0,1062,2364,2364,2364][A],v=[0,239,300,360,420][A],w=[0,.24,.3,.3,.36,.42][A],m=h+A):(c=[0,600,1033,2339,2340][A],v=[0,260,286,306,312][A],w=[0,.26,.286,.3,.306,.34][A],m="tilde"+A)}var C=new $r(m),M=new gr([C],{width:"100%",height:U(w),viewBox:"0 0 "+c+" "+v,preserveAspectRatio:"none"});return{span:vr([],[M],r),minWidth:0,height:w}}else{var k=[],I=rm[h];if(!I)throw new Error('No SVG data for "'+h+'".');var R=I[0],Z=I[1],K=I[2],ee=K/1e3,T=R.length,B,q;if(T===1){if(I.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+h+'".');B=["hide-tail"],q=[I[3]]}else if(T===2)B=["halfarrow-left","halfarrow-right"],q=["xMinYMin","xMaxYMin"];else if(T===3)B=["brace-left","brace-center","brace-right"],q=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
340
- `+T+" children.");for(var X=0;X<T;X++){var N=new $r(R[X]),D=new gr([N],{width:"400em",height:U(ee),viewBox:"0 0 "+c+" "+K,preserveAspectRatio:q[X]+" slice"}),W=vr([B[X]],[D],r);if(T===1)return{span:W,minWidth:Z,height:ee};W.style.height=U(ee),k.push(W)}return{span:$(["katex-stretchy"],k,r),minWidth:Z,height:ee}}}var a=n(),i=a.span,s=a.minWidth,o=a.height;return i.height=o,i.style.height=U(o),s>0&&(i.style.minWidth=U(s)),i},am=function(e,r,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=$(["katex-stretchy",r],[],i),r==="fbox"){var c=i.color&&i.getColor();c&&(s.style.borderColor=c)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new mo({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new mo({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new gr(h,{width:"100%",height:U(o)});s=vr([],[d],i)}return s.height=o,s.style.height=U(o),s},im=["bin","close","inner","open","punct","rel"],sm=["accent-token","mathord","op-token","spacing","textord"],om=new Set(im),lm=new Set(sm);function cm(t){return om.has(t)}function ue(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function ea(t){var e=ta(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function ta(t){return t.type==="atom"||lm.has(t.type)?t:null}function ss(t,e,r){var n="";for(var a of t.body)if(a.type==="textord")n+=a.text;else if(r&&a.type==="spacing"&&a.text===" ")n+=" ";else throw new F(e,t);return n}var Bc=t=>{if(t instanceof xt)return t;if(Np(t)&&t.children.length===1)return Bc(t.children[0])},qc=(t,e)=>{var r,n,a;t&&t.type==="supsub"?(n=ue(t.base,"accent"),r=n.base,t.base=r,a=Dp(me(t,e)),t.base=n):(n=ue(t,"accent"),r=n.base);var i=me(r,e.havingCrampedStyle()),s=n.isShifty&&Xt(r),o=0;if(s){var c,h;o=(c=(h=Bc(i))==null?void 0:h.skew)!=null?c:0}var d=n.label==="\\c",v=d?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),m;if(n.isStretchy)m=J0(n,e),m=fe({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:m,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+U(2*o)+")",marginLeft:U(2*o)}:void 0}]});else{var w,A;n.label==="\\vec"?(w=Pc("vec",e),A=Nc.vec[1]):(w=Z0({type:"textord",mode:n.mode,text:n.label},e),w=Rp(w),w.italic=0,A=w.width,d&&(v+=w.depth)),m=$(["accent-body"],[w]);var C=n.label==="\\textcircled";C&&(m.classes.push("accent-full"),v=i.height);var M=o;C||(M-=A/2),m.style.left=U(M),n.label==="\\textcircled"&&(m.style.top=".2em"),m=fe({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-v},{type:"elem",elem:m}]})}var k=$(["mord","katex-accent"],[m],e);return a?(a.children[0]=k,a.height=Math.max(k.height,a.height),a.classes[0]="mord",a):k},um=(t,e)=>{var r=t.isStretchy?Q0(t.label):new H("mo",[St(t.label,t.mode)]),n=new H("mover",[we(t.base,e),r]);return n.setAttribute("accent","true"),n},hm=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));G({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:(t,e)=>{var r=jn(e[0]),n=!hm.test(t.funcName),a=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:qc,mathmlBuilder:um});G({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(ut({strict:t.parser.settings.strict,errorCode:"mathVsTextAccents",errorMsg:"LaTeX's accent "+t.funcName+" works only in text mode",report:!0}),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}}});G({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(t,e)=>{var r=me(t.base,e),n=J0(t,e),a=t.label==="\\utilde"?.12:0,i=fe({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]});return $(["mord","accentunder"],[i],e)},mathmlBuilder:(t,e)=>{var r=Q0(t.label),n=new H("munder",[we(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var I0=t=>{var e=new H("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};G({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(t,e,r){var n=t.parser,a=t.funcName;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),a=fn(me(t.body,n,e),e),i=t.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=fn(me(t.below,n,e),e),s.classes.push(i+"-arrow-pad"));var o=J0(t,e),c=-e.fontMetrics().axisHeight+.5*o.height,h=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||t.label==="\\xleftequilibrium")&&(h-=a.depth);var d;if(s){var v=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=fe({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:v}]})}else d=fe({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]}]});return $(["mrel","x-arrow"],[d],e)},mathmlBuilder(t,e){var r=Q0(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var a=I0(we(t.body,e));if(t.below){var i=I0(we(t.below,e));n=new H("munderover",[r,i,a])}else n=new H("mover",[r,a])}else if(t.below){var s=I0(we(t.below,e));n=new H("munder",[r,s])}else n=I0(),n=new H("mover",[r,n]);return n}});function dm(t,e){var r=We(t.body,e,!0);return $([t.mclass],r,e)}function pm(t,e){var r,n=vt(t.body,e);return t.mclass==="minner"?r=new H("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new H("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new H("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):(t.mclass==="mopen"||t.mclass==="mclose")&&(r.attributes.lspace="0em",r.attributes.rspace="0em")),r}G({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Oe(a),isCharacterBox:Xt(a)}},htmlBuilder:dm,mathmlBuilder:pm});var ra=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};G({type:"mclass",names:["\\@binrel"],numArgs:2,handler(t,e){var r=t.parser;return{type:"mclass",mode:r.mode,mclass:ra(e[0]),body:Oe(e[1]),isCharacterBox:Xt(e[1])}}});G({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(t,e){var r=t.parser,n=t.funcName,a=e[1],i=e[0],s;n!=="\\stackrel"?s=ra(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Oe(a)},c=n==="\\underset"?{type:"supsub",mode:i.mode,base:o,sub:i}:{type:"supsub",mode:i.mode,base:o,sup:i};return{type:"mclass",mode:r.mode,mclass:s,body:[c],isCharacterBox:Xt(c)}}});G({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"pmb",mode:r.mode,mclass:ra(e[0]),body:Oe(e[0])}},htmlBuilder(t,e){var r=We(t.body,e,!0),n=$([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=vt(t.body,e),n=new H("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var mm={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ro=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),Do=t=>t.type==="textord"&&t.text==="@",fm=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function gm(t,e,r){var n=mm[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[e[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),c={type:"ordgroup",mode:"math",body:[a,s,o]};return r.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function vm(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new F("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],a=[n],i=0;i<e.length;i++){for(var s=e[i],o=Ro(),c=0;c<s.length;c++)if(!Do(s[c]))o.body.push(s[c]);else{n.push(o),c+=1;var h=ea(s[c]).text,d=new Array(2);if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(h))if("<>AV".includes(h))for(var v=0;v<2;v++){for(var m=!0,w=c+1;w<s.length;w++){if(fm(s[w],h)){m=!1,c=w;break}if(Do(s[w]))throw new F("Missing a "+h+" character to complete a CD arrow.",s[w]);d[v].body.push(s[w])}if(m)throw new F("Missing a "+h+" character to complete a CD arrow.",s[c])}else throw new F('Expected one of "<>AV=|." after @',s[c]);var A=gm(h,d,t),C={type:"styling",body:[A],mode:"math",style:"display",resetFont:!0};n.push(C),o=Ro()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var M=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:M,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}G({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=fn(me(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=U(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new H("mrow",[we(t.label,e)]);return r=new H("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new H("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});G({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(t,e){var r=t.parser;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=fn(me(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new H("mrow",[we(t.fragment,e)])}});G({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,n=ue(e[0],"ordgroup"),a=ss(n,"\\@char has non-numeric argument"),i=parseInt(a),s;if(isNaN(i))throw new F("\\@char has non-numeric argument "+a);if(i<0||i>1114111)throw new F("\\@char with invalid code point "+a);return i<=65535?s=String.fromCharCode(i):(i-=65536,s=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:"textord",mode:r.mode,text:s}}});var bm=(t,e)=>{var r=We(t.body,e.withColor(t.color),!1);return Zt(r)},ym=(t,e)=>{var r=vt(t.body,e.withColor(t.color)),n=new H("mstyle",r);return n.setAttribute("mathcolor",t.color),n};G({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(t,e){var r=t.parser,n=ue(e[0],"color-token").color,a=e[1];return{type:"color",mode:r.mode,color:n,body:Oe(a)}},htmlBuilder:bm,mathmlBuilder:ym});G({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(t,e){var r=t.parser,n=t.breakOnTokenText,a=ue(e[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}}});G({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(t){var e=t.parser,r=e.gullet.future().text==="["?e.parseSizeGroup(!0):null,n=!e.settings.displayMode||!ut({strict:e.settings.strict,errorCode:"newLineInDisplayMode",errorMsg:"In LaTeX, \\\\ or \\newline does nothing in display mode",report:!1});return{type:"cr",mode:e.mode,newLine:n,size:r&&ue(r,"size").value}},htmlBuilder(t,e){var r=$(["mspace"],[],e);return t.newLine&&(r.classes.push("katex-newline"),t.size&&(r.style.marginTop=U(Ie(t.size,e)))),r},mathmlBuilder(t,e){var r=new H("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",U(Ie(t.size,e)))),r}});var Ti={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Fc=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new F("Expected a control sequence",t);return e},wm=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},Hc=(t,e,r,n)=>{var a=t.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,a,n)};G({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(t){var e=t.parser,r=t.funcName;e.consumeSpaces();var n=e.fetch();if(Ti[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Ti[n.text]),ue(e.parseFunction(),"internal");throw new F("Invalid token after macro prefix",n)}});G({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=e.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new F("Expected a control sequence",n);for(var i=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new F('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new F('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new F("Expected a macro definition");o[i].push(n.text)}var c=e.gullet.consumeArg(),h=c.tokens;return s&&h.unshift(s),(r==="\\edef"||r==="\\xdef")&&(h=e.gullet.expandTokens(h),h.reverse()),e.gullet.macros.set(a,{tokens:h,numArgs:i,delimiters:o},r===Ti[r]),{type:"internal",mode:e.mode}}});G({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=Fc(e.gullet.popToken());e.gullet.consumeSpaces();var a=wm(e);return Hc(e,n,a,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});G({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=Fc(e.gullet.popToken()),a=e.gullet.popToken(),i=e.gullet.popToken();return Hc(e,n,i,r==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});var On=function(e,r,n){var a=Ee.math[e]&&Ee.math[e].replace,i=ts(a||e,r,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return i},os=function(e,r,n,a){var i=n.havingBaseStyle(r),s=$(a.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},Uc=function(e,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=U(i),e.height-=i,e.depth+=i},km=function(e,r,n,a,i,s){var o=nt(e,"Main-Regular",i,a),c=os(o,r,a,s);return Uc(c,a,r),c},xm=function(e,r,n,a){return nt(e,"Size"+r+"-Regular",n,a)},Wc=function(e,r,n,a,i,s){var o=xm(e,r,i,a),c=os($(["delimsizing","size"+r],[o],a),se.TEXT,a,s);return n&&Uc(c,a,se.TEXT),c},qa=function(e,r,n,a){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=$(["delimsizinginner",i],[$([],[nt(e,r,n,a)])]);return{type:"elem",elem:s}},Fa=function(e,r,n){var a=Gt["Size4-Regular"][e.charCodeAt(0)]?Gt["Size4-Regular"][e.charCodeAt(0)][4]:Gt["Size1-Regular"][e.charCodeAt(0)][4],i=new $r("inner",Ap(e,Math.round(1e3*r))),s=new gr([i],{width:U(a),height:U(r),style:"width:"+U(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=vr([],[s],n);return o.height=r,o.style.height=U(r),o.style.width=U(a),{type:"elem",elem:o}},Ei=.008,z0={type:"kern",size:-1*Ei},Sm=new Set(["|","\\lvert","\\rvert","\\vert"]),Am=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Gc=function(e,r,n,a,i,s){var o,c,h,d,v="",m=0;o=h=d=e,c=null;var w="Size1-Regular";e==="\\uparrow"?h=d="⏐":e==="\\Uparrow"?h=d="‖":e==="\\downarrow"?o=h="⏐":e==="\\Downarrow"?o=h="‖":e==="\\updownarrow"?(o="\\uparrow",h="⏐",d="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",h="‖",d="\\Downarrow"):Sm.has(e)?(h="∣",v="vert",m=333):Am.has(e)?(h="∥",v="doublevert",m=556):e==="["||e==="\\lbrack"?(o="⎡",h="⎢",d="⎣",w="Size4-Regular",v="lbrack",m=667):e==="]"||e==="\\rbrack"?(o="⎤",h="⎥",d="⎦",w="Size4-Regular",v="rbrack",m=667):e==="\\lfloor"||e==="⌊"?(h=o="⎢",d="⎣",w="Size4-Regular",v="lfloor",m=667):e==="\\lceil"||e==="⌈"?(o="⎡",h=d="⎢",w="Size4-Regular",v="lceil",m=667):e==="\\rfloor"||e==="⌋"?(h=o="⎥",d="⎦",w="Size4-Regular",v="rfloor",m=667):e==="\\rceil"||e==="⌉"?(o="⎤",h=d="⎥",w="Size4-Regular",v="rceil",m=667):e==="("||e==="\\lparen"?(o="⎛",h="⎜",d="⎝",w="Size4-Regular",v="lparen",m=875):e===")"||e==="\\rparen"?(o="⎞",h="⎟",d="⎠",w="Size4-Regular",v="rparen",m=875):e==="\\{"||e==="\\lbrace"?(o="⎧",c="⎨",d="⎩",h="⎪",w="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",c="⎬",d="⎭",h="⎪",w="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",d="⎩",h="⎪",w="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",d="⎭",h="⎪",w="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",d="⎭",h="⎪",w="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",d="⎩",h="⎪",w="Size4-Regular");var A=On(o,w,i),C=A.height+A.depth,M=On(h,w,i),k=M.height+M.depth,I=On(d,w,i),R=I.height+I.depth,Z=0,K=1;if(c!==null){var ee=On(c,w,i);Z=ee.height+ee.depth,K=2}var T=C+R+Z,B=Math.max(0,Math.ceil((r-T)/(K*k))),q=T+B*K*k,X=a.fontMetrics().axisHeight;n&&(X*=a.sizeMultiplier);var N=q/2-X,D=[];if(v.length>0){var W=q-C-R,_=Math.round(q*1e3),Q=Tp(v,Math.round(W*1e3)),Y=new $r(v,Q),te=U(m/1e3),be=U(_/1e3),Ne=new gr([Y],{width:te,height:be,viewBox:"0 0 "+m+" "+_}),he=vr([],[Ne],a);he.height=_/1e3,he.style.width=te,he.style.height=be,D.push({type:"elem",elem:he})}else{if(D.push(qa(d,w,i,a)),D.push(z0),c===null){var Ae=q-C-R+2*Ei;D.push(Fa(h,Ae,a))}else{var At=(q-C-R-Z)/2+2*Ei;D.push(Fa(h,At,a)),D.push(z0),D.push(qa(c,w,i,a)),D.push(z0),D.push(Fa(h,At,a))}D.push(z0),D.push(qa(o,w,i,a))}var Xe=a.havingBaseStyle(se.TEXT),Qt=fe({positionType:"bottom",positionData:N,children:D});return os($(["delimsizing","mult"],[Qt],Xe),se.TEXT,a,s)},Ha=80,Ua=.08,Wa=function(e,r,n,a,i){var s=Sp(e,a,n),o=new $r(e,s),c=new gr([o],{width:"400em",height:U(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return vr(["hide-tail"],[c],i)},Tm=function(e,r){var n=r.havingBaseSizing(),a=Yc("\\surd",e*n.sizeMultiplier,Xc,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,c,h,d,v;return a.type==="small"?(d=1e3+1e3*s+Ha,e<1?i=1:e<1.4&&(i=.7),c=(1+s+Ua)/i,h=(1+s)/i,o=Wa("sqrtMain",c,d,s,r),o.style.minWidth="0.853em",v=.833/i):a.type==="large"?(d=(1e3+Ha)*qn[a.size],h=(qn[a.size]+s)/i,c=(qn[a.size]+s+Ua)/i,o=Wa("sqrtSize"+a.size,c,d,s,r),o.style.minWidth="1.02em",v=1/i):(c=e+s+Ua,h=e+s,d=Math.floor(1e3*e+s)+Ha,o=Wa("sqrtTall",c,d,s,r),o.style.minWidth="0.742em",v=1.056),o.height=h,o.style.height=U(c),{span:o,advanceWidth:v,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*i}},jc=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Em=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Vc=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),qn=[0,1.2,1.8,2.4,3],Kc=function(e,r,n,a,i){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),jc.has(e)||Vc.has(e))return Wc(e,r,!1,n,a,i);if(Em.has(e))return Gc(e,qn[r],!1,n,a,i);throw new F("Illegal delimiter: '"+e+"'")},Cm=[{type:"small",style:se.SCRIPTSCRIPT},{type:"small",style:se.SCRIPT},{type:"small",style:se.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Mm=[{type:"small",style:se.SCRIPTSCRIPT},{type:"small",style:se.SCRIPT},{type:"small",style:se.TEXT},{type:"stack"}],Xc=[{type:"small",style:se.SCRIPTSCRIPT},{type:"small",style:se.SCRIPT},{type:"small",style:se.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Im=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 r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},Yc=function(e,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;s<n.length;s++){var o=n[s];if(o.type==="stack")break;var c=On(e,Im(o),"math"),h=c.height+c.depth;if(o.type==="small"){var d=a.havingBaseStyle(o.style);h*=d.sizeMultiplier}if(h>r)return o}return n[n.length-1]},Ci=function(e,r,n,a,i,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;Vc.has(e)?o=Cm:jc.has(e)?o=Xc:o=Mm;var c=Yc(e,r,o,a);return c.type==="small"?km(e,c.style,n,a,i,s):c.type==="large"?Wc(e,c.size,n,a,i,s):Gc(e,r,n,a,i,s)},Ga=function(e,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,c=901,h=5/a.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),v=Math.max(d/500*c,2*d-h);return Ci(e,v,!0,a,i,s)},No={"\\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}},zm=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","."]);function Po(t){return"isMiddle"in t}function na(t,e){var r=ta(t);if(r&&zm.has(r.text))return r;throw r?new F("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new F("Invalid delimiter type '"+t.type+"'",t)}G({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:(t,e)=>{var r=na(jn(e[0]),t);return{type:"delimsizing",mode:t.parser.mode,size:No[t.funcName].size,mclass:No[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?$([t.mclass]):Kc(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(St(t.delim,t.mode));var r=new H("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=U(qn[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function _o(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}G({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new F("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:na(e[0],t).text,color:r}}});G({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=na(e[0],t),n=t.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=ue(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(t,e)=>{_o(t);for(var r=We(t.body,e,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s<r.length;s++){var o=r[s];Po(o)?i=!0:(n=Math.max(r[s].height,n),a=Math.max(r[s].depth,a))}n*=e.sizeMultiplier,a*=e.sizeMultiplier;var c;if(t.left==="."?c=Vn(e,["mopen"]):c=Ga(t.left,n,a,e,t.mode,["mopen"]),r.unshift(c),i)for(var h=1;h<r.length;h++){var d=r[h];if(Po(d)){var v=d.isMiddle;r[h]=Ga(v.delim,n,a,v.options,t.mode,[])}}var m;if(t.right===".")m=Vn(e,["mclose"]);else{var w=t.rightColor?e.withColor(t.rightColor):e;m=Ga(t.right,n,a,w,t.mode,["mclose"])}return r.push(m),$(["minner"],r,e)},mathmlBuilder:(t,e)=>{_o(t);var r=vt(t.body,e);if(t.left!=="."){var n=new H("mo",[St(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var a=new H("mo",[St(t.right,t.mode)]);a.setAttribute("fence","true"),t.rightColor&&a.setAttribute("mathcolor",t.rightColor),r.push(a)}return as(r)}});G({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=na(e[0],t);if(!t.parser.leftrightDepth)throw new F("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;return t.delim==="."?r=Vn(e,[]):(r=Kc(t.delim,1,e,t.mode,[]),r.isMiddle={delim:t.delim,options:e}),r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?St("|","text"):St(t.delim,t.mode),n=new H("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Rm=(t,e)=>{var r=fn(me(t.body,e),e),n=t.label.slice(1),a=e.sizeMultiplier,i,s,o=Xt(t.body);if(n==="sout")i=$(["katex-stretchy","katex-sout"]),i.height=e.fontMetrics().defaultRuleThickness/a,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var c=Ie({number:.6,unit:"pt"},e),h=Ie({number:.35,unit:"ex"},e),d=e.havingBaseSizing();a=a/d.sizeMultiplier;var v=r.height+r.depth+c+h;r.style.paddingLeft=U(v/2+c);var m=Math.floor(1e3*v*a),w=kp(m),A=new gr([new $r("phase",w)],{width:"400em",height:U(m/1e3),viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"});i=vr(["hide-tail"],[A],e),i.style.height=U(v),s=r.depth+c+h}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var C,M,k=0;/box/.test(n)?(k=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),C=e.fontMetrics().fboxsep+(n==="colorbox"?0:k),M=C):n==="angl"?(k=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),C=4*k,M=Math.max(0,.25-r.depth)):(C=o?.2:0,M=C),i=am(r,n,C,M,e),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=U(k)):n==="angl"&&k!==.049&&(i.style.borderTopWidth=U(k),i.style.borderRightWidth=U(k)),s=r.depth+M,t.backgroundColor&&(i.style.backgroundColor=t.backgroundColor,t.borderColor&&(i.style.borderColor=t.borderColor))}var I;if(t.backgroundColor)I=fe({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:r,shift:0}]});else{var R=/cancel|phase/.test(n)?["svg-align"]:[];I=fe({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:s,wrapperClasses:R}]})}return/cancel/.test(n)&&(I.height=r.height,I.depth=r.depth),/cancel/.test(n)&&!o?$(["mord","cancel-lap"],[I],e):$(["mord"],[I],e)},Dm=(t,e)=>{var r,n=new H(t.label.includes("colorbox")?"mpadded":"menclose",[we(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var a=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+U(a)+" solid "+t.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};G({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(t,e,r){var n=t.parser,a=t.funcName,i=ue(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:Rm,mathmlBuilder:Dm});G({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(t,e,r){var n=t.parser,a=t.funcName,i=ue(e[0],"color-token").color,s=ue(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}}});G({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});G({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}}});G({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName;r.mode==="math"&&ut({strict:r.settings.strict,errorCode:"mathVsSout",errorMsg:"LaTeX's \\sout works only in text mode",report:!0});var a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}}});G({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var Zc={};function _t(t){for(var e=t.type,r=t.names,n=t.props,a=t.handler,i=t.htmlBuilder,s=t.mathmlBuilder,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},c=0;c<r.length;++c)Zc[r[c]]=o;i&&(Wn[e]=i),s&&(Gn[e]=s)}var Qc={};function f(t,e){Qc[t]=e}class ct{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new ct(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}}class ft{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new ft(r,ct.range(this,e))}}function Lo(t){var e=[];t.consumeSpaces();var r=t.fetch().text;for(r==="\\relax"&&(t.consume(),t.consumeSpaces(),r=t.fetch().text);r==="\\hline"||r==="\\hdashline";)t.consume(),e.push(r==="\\hdashline"),t.consumeSpaces(),r=t.fetch().text;return e}var aa=t=>{var e=t.parser.settings;if(!e.displayMode)throw new F("{"+t.envName+"} can be used only in display mode.")},Nm=new Set(["gather","gather*"]);function ls(t){if(!t.includes("ed"))return!t.includes("*")}function yr(t,e,r){var n=e.hskipBeforeAndAfter,a=e.addJot,i=e.cols,s=e.arraystretch,o=e.colSeparationType,c=e.autoTag,h=e.singleRow,d=e.emptySingleRow,v=e.maxNumCols,m=e.leqno;if(t.gullet.beginGroup(),h||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var w=t.gullet.expandMacroAsText("\\arraystretch");if(w==null)s=1;else if(s=parseFloat(w),!s||s<0)throw new F("Invalid \\arraystretch: "+w)}t.gullet.beginGroup();var A=[],C=[A],M=[],k=[],I=c!=null?[]:void 0;function R(){c&&t.gullet.macros.set("\\@eqnsw","1",!0)}function Z(){I&&(t.gullet.macros.get("\\df@tag")?(I.push(t.subparse([new ft("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):I.push(!!c&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(R(),k.push(Lo(t));;){var K=t.parseExpression(!1,h?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup();var ee={type:"ordgroup",mode:t.mode,body:K};r&&(ee={type:"styling",mode:t.mode,style:r,resetFont:!0,body:[ee]}),A.push(ee);var T=t.fetch().text;if(T==="&"){if(v&&A.length===v){if(h||o)throw new F("Too many tab characters: &",t.nextToken);ut({strict:t.settings.strict,errorCode:"textEnv",errorMsg:"Too few columns specified in the {array} column argument.",report:!0})}t.consume()}else if(T==="\\end"){Z(),A.length===1&&ee.type==="styling"&&ee.body.length===1&&ee.body[0].type==="ordgroup"&&ee.body[0].body.length===0&&(C.length>1||!d)&&!Array.isArray(I?.[I.length-1])&&!(c&&I?.[I.length-1]===!0)&&C.pop(),k.length<C.length+1&&k.push([]);break}else if(T==="\\\\"){t.consume();var B=void 0;t.gullet.future().text!==" "&&(B=t.parseSizeGroup(!0)),M.push(B?B.value:null),Z(),k.push(Lo(t)),A=[],C.push(A),R()}else throw new F("Expected & or \\\\ or \\cr or \\end",t.nextToken)}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:a,arraystretch:s,body:C,cols:i,rowGaps:M,hskipBeforeAndAfter:n,hLinesBeforeRow:k,colSeparationType:o,tags:I,leqno:m}}function cs(t){return t.slice(0,1)==="d"?"display":"text"}var Lt=function(e,r){var n,a,i=e.body.length,s=e.hLinesBeforeRow,o=0,c=new Array(i),h=[],d=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),v=1/r.fontMetrics().ptPerEm,m=5*v;if(e.colSeparationType&&e.colSeparationType==="small"){var w=r.havingStyle(se.SCRIPT).sizeMultiplier;m=.2778*(w/r.sizeMultiplier)}var A=e.colSeparationType==="CD"?Ie({number:3,unit:"ex"},r):12*v,C=3*v,M=e.arraystretch*A,k=.7*M,I=.3*M,R=0;function Z(tr){for(var st=0;st<tr.length;++st)st>0&&(R+=.25),h.push({pos:R,isDashed:tr[st]})}for(Z(s[0]),n=0;n<e.body.length;++n){var K=e.body[n],ee=k,T=I;o<K.length&&(o=K.length);var B={cells:new Array(K.length),height:0,depth:0,pos:0};for(a=0;a<K.length;++a){var q=me(K[a],r);T<q.depth&&(T=q.depth),ee<q.height&&(ee=q.height),B.cells[a]=q}var X=e.rowGaps[n],N=0;X&&(N=Ie(X,r),N>0&&(N+=I,T<N&&(T=N),N=0)),e.addJot&&n<e.body.length-1&&(T+=C),B.height=ee,B.depth=T,R+=ee,B.pos=R,R+=T+N,c[n]=B,Z(s[n+1])}var D=R/2+r.fontMetrics().axisHeight,W=e.cols||[],_=[],Q,Y,te=[];if(e.tags&&e.tags.some(tr=>tr))for(n=0;n<i;++n){var be=c[n],Ne=be.pos-D,he=e.tags[n],Ae=void 0;he===!0?Ae=$(["eqn-num"],[],r):he===!1?Ae=$([],[],r):Ae=$([],We(he,r,!0),r),Ae.depth=be.depth,Ae.height=be.height,te.push({type:"elem",elem:Ae,shift:Ne})}for(a=0,Y=0;a<o||Y<W.length;++a,++Y){for(var At,Xe=W[Y],Qt=!0;((ht=Xe)==null?void 0:ht.type)==="separator";){var ht;if(Qt||(Q=$(["arraycolsep"],[]),Q.style.width=U(r.fontMetrics().doubleRuleSep),_.push(Q)),Xe.separator==="|"||Xe.separator===":"){var Wr=Xe.separator==="|"?"solid":"dashed",ye=$(["vertical-separator"],[],r);ye.style.height=U(R),ye.style.borderRightWidth=U(d),ye.style.borderRightStyle=Wr,ye.style.margin="0 "+U(-d/2);var a0=R-D;a0&&(ye.style.verticalAlign=U(-a0)),_.push(ye)}else throw new F("Invalid separator type: "+Xe.separator);Y++,Xe=W[Y],Qt=!1}if(!(a>=o)){var Jt=void 0;if(a>0||e.hskipBeforeAndAfter){var i0,s0;Jt=(i0=(s0=Xe)==null?void 0:s0.pregap)!=null?i0:m,Jt!==0&&(Q=$(["arraycolsep"],[]),Q.style.width=U(Jt),_.push(Q))}var o0=[];for(n=0;n<i;++n){var Gr=c[n],jr=Gr.cells[a];if(jr){var la=Gr.pos-D;jr.depth=Gr.depth,jr.height=Gr.height,o0.push({type:"elem",elem:jr,shift:la})}}var l0=fe({positionType:"individualShift",children:o0}),Te=$(["col-align-"+(((At=Xe)==null?void 0:At.align)||"c")],[l0]);if(_.push(Te),a<o-1||e.hskipBeforeAndAfter){var Vr,Se;Jt=(Vr=(Se=Xe)==null?void 0:Se.postgap)!=null?Vr:m,Jt!==0&&(Q=$(["arraycolsep"],[]),Q.style.width=U(Jt),_.push(Q))}}}var er=$(["mtable"],_);if(h.length>0){for(var bt=mn("katex-hline",r,d),wr=mn("katex-hdashline",r,d),Kr=[{type:"elem",elem:er,shift:0}];h.length>0;){var Tt=h.pop(),An=Tt.pos-D;Tt.isDashed?Kr.push({type:"elem",elem:wr,shift:An}):Kr.push({type:"elem",elem:bt,shift:An})}er=fe({positionType:"individualShift",children:Kr})}if(te.length===0)return $(["mord"],[er],r);var Tn=fe({positionType:"individualShift",children:te}),c0=$(["katex-tag"],[Tn],r);return Zt([er,c0])},Pm={c:"center ",l:"left ",r:"right "},Ot=function(e,r){for(var n=[],a=new H("mtd",[],["mtr-glue"]),i=new H("mtd",[],["mml-eqn-num"]),s=0;s<e.body.length;s++){for(var o=e.body[s],c=[],h=0;h<o.length;h++)c.push(new H("mtd",[we(o[h],r)]));e.tags&&e.tags[s]&&(c.unshift(a),c.push(a),e.leqno?c.unshift(i):c.push(i)),n.push(new H("mtr",c))}var d=new H("mtable",n),v=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);d.setAttribute("rowspacing",U(v));var m="",w="";if(e.cols&&e.cols.length>0){var A=e.cols,C="",M=!1,k=0,I=A.length;A[0].type==="separator"&&(m+="top ",k=1),A[A.length-1].type==="separator"&&(m+="bottom ",I-=1);for(var R=k;R<I;R++){var Z=A[R];Z.type==="align"?(w+=Pm[Z.align],M&&(C+="none "),M=!0):Z.type==="separator"&&M&&(C+=Z.separator==="|"?"solid ":"dashed ",M=!1)}d.setAttribute("columnalign",w.trim()),/[sd]/.test(C)&&d.setAttribute("columnlines",C.trim())}if(e.colSeparationType==="align"){for(var K=e.cols||[],ee="",T=1;T<K.length;T++)ee+=T%2?"0em ":"1em ";d.setAttribute("columnspacing",ee.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?d.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?d.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?d.setAttribute("columnspacing","0.5em"):d.setAttribute("columnspacing","1em");var B="",q=e.hLinesBeforeRow;m+=q[0].length>0?"left ":"",m+=q[q.length-1].length>0?"right ":"";for(var X=1;X<q.length-1;X++)B+=q[X].length===0?"none ":q[X][0]?"dashed ":"solid ";return/[sd]/.test(B)&&d.setAttribute("rowlines",B.trim()),m!==""&&(d=new H("menclose",[d]),d.setAttribute("notation",m.trim())),e.arraystretch&&e.arraystretch<1&&(d=new H("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},Jc=function(e,r){e.envName.includes("ed")||aa(e);var n=[],a=e.envName==="split",i=yr(e.parser,{cols:n,addJot:!0,autoTag:a?void 0:ls(e.envName),emptySingleRow:!0,colSeparationType:e.envName.includes("at")?"alignat":"align",maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,o=0,c={type:"ordgroup",mode:e.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){var h="Number of columns should be a positive integer",d=ss(r[0],h);if(!/^[0-9]+$/.test(d)||Number(d)<1)throw new F(h,r[0]);s=Number(d),o=s*2}var v=!o;i.body.forEach(function(C){for(var M=1;M<C.length;M+=2){var k=ue(C[M],"styling"),I=ue(k.body[0],"ordgroup");I.body.unshift(c)}if(v)o<C.length&&(o=C.length);else{var R=C.length/2;if(s<R)throw new F("Too many math in a row: "+("expected "+s+", but got "+R),C[0])}});for(var m=0;m<o;++m){var w="r",A=0;m%2===1?w="l":m>0&&v&&(A=1),n[m]={type:"align",align:w,pregap:A,postgap:0}}return i.colSeparationType=v?"align":"alignat",i};_t({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=ta(e[0]),n=r?[e[0]]:ue(e[0],"ordgroup").body,a=n.map(function(s){var o=ea(s),c=o.text;if("lcr".includes(c))return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new F("Unknown column alignment: "+c,s)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return yr(t.parser,i,cs(t.envName))},htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var a=t.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,!"lcr".includes(r))throw new F("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=yr(t.parser,n,cs(t.envName)),s=Math.max(0,...i.body.map(o=>o.length));return i.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[i],left:e[0],right:e[1],rightColor:void 0}:i},htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=yr(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=ta(e[0]),n=r?[e[0]]:ue(e[0],"ordgroup").body,a=n.map(function(o){var c=ea(o),h=c.text;if("lc".includes(h))return{type:"align",align:h};throw new F("Unknown column alignment: "+h,o)});if(a.length>1)throw new F("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},s=yr(t.parser,i,"script");if(s.body.length>0&&s.body[0].length>1)throw new F("{subarray} can contain only one column");return s},htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=yr(t.parser,e,cs(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Jc,htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){Nm.has(t.envName)&&aa(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ls(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return yr(t.parser,e,"display")},htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Jc,htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){aa(t);var e={autoTag:ls(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return yr(t.parser,e,"display")},htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["CD"],props:{numArgs:0},handler(t){return aa(t),vm(t.parser)},htmlBuilder:Lt,mathmlBuilder:Ot});f("\\nonumber","\\gdef\\@eqnsw{0}");f("\\notag","\\nonumber");G({type:"text",names:["\\hline","\\hdashline"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(t,e){throw new F(t.funcName+" valid only within array environment")}});var Oo=Zc;G({type:"environment",names:["\\begin","\\end"],numArgs:1,argTypes:["text"],handler(t,e){var r=t.parser,n=t.funcName,a=e[0];if(a.type!=="ordgroup")throw new F("Invalid environment name",a);var i=ss(a,"Environment name should contain only text characters and spaces",!0);if(n==="\\begin"){if(!Object.prototype.hasOwnProperty.call(Oo,i))throw new F("No such environment: "+i,a);var s=Oo[i],o=r.parseArguments("\\begin{"+i+"}",s),c=o.args,h=o.optArgs,d={mode:r.mode,envName:i,parser:r},v=s.handler(d,c,h);r.expect("\\end",!1);var m=r.nextToken,w=ue(r.parseFunction(),"environment");if(w.name!==i)throw new F("Mismatch: \\begin{"+i+"} matched by \\end{"+w.name+"}",m);return v}return{type:"environment",mode:r.mode,name:i,nameGroup:a}}});var _m=(t,e)=>{var r=t.font,n=e.withFont(r);return me(t.body,n)},Lm=(t,e)=>{var r=t.font,n=e.withFont(r);return we(t.body,n)},$o={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};G({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],numArgs:1,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=jn(e[0]),i=n in $o?$o[n]:n;return{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:_m,mathmlBuilder:Lm});G({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"mclass",mode:r.mode,mclass:ra(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Xt(n)}}});G({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=t.breakOnTokenText,i=r.mode,s=r.parseExpression(!0,a);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}}});var Om=(t,e)=>{var r=e.style,n=r.fracNum(),a=r.fracDen(),i;i=e.havingStyle(n);var s=me(t.numer,i,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,c=3.5/e.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<c?c:s.depth}i=e.havingStyle(a);var h=me(t.denom,i,e),d,v,m;t.hasBarLine?(t.barSize?(v=Ie(t.barSize,e),d=mn("frac-line",e,v)):d=mn("frac-line",e),v=d.height,m=d.height):(d=null,v=0,m=e.fontMetrics().defaultRuleThickness);var w,A,C;r.size===se.DISPLAY.size?(w=e.fontMetrics().num1,v>0?A=3*m:A=7*m,C=e.fontMetrics().denom1):(v>0?(w=e.fontMetrics().num2,A=m):(w=e.fontMetrics().num3,A=3*m),C=e.fontMetrics().denom2);var M;if(d){var I=e.fontMetrics().axisHeight;w-s.depth-(I+.5*v)<A&&(w+=A-(w-s.depth-(I+.5*v))),I-.5*v-(h.height-C)<A&&(C+=A-(I-.5*v-(h.height-C)));var R=-(I-.5*v);M=fe({positionType:"individualShift",children:[{type:"elem",elem:h,shift:C},{type:"elem",elem:d,shift:R},{type:"elem",elem:s,shift:-w}]})}else{var k=w-s.depth-(h.height-C);k<A&&(w+=.5*(A-k),C+=.5*(A-k)),M=fe({positionType:"individualShift",children:[{type:"elem",elem:h,shift:C},{type:"elem",elem:s,shift:-w}]})}i=e.havingStyle(r),M.height*=i.sizeMultiplier/e.sizeMultiplier,M.depth*=i.sizeMultiplier/e.sizeMultiplier;var Z;r.size===se.DISPLAY.size?Z=e.fontMetrics().delim1:r.size===se.SCRIPTSCRIPT.size?Z=e.havingStyle(se.SCRIPT).fontMetrics().delim2:Z=e.fontMetrics().delim2;var K,ee;return t.leftDelim==null?K=Vn(e,["mopen"]):K=Ci(t.leftDelim,Z,!0,e.havingStyle(r),t.mode,["mopen"]),t.continued?ee=$([]):t.rightDelim==null?ee=Vn(e,["mclose"]):ee=Ci(t.rightDelim,Z,!0,e.havingStyle(r),t.mode,["mclose"]),$(["mord"].concat(i.sizingClasses(e)),[K,$(["mfrac"],[M]),ee],e)},$m=(t,e)=>{var r=new H("mfrac",[we(t.numer,e),we(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=Ie(t.barSize,e);r.setAttribute("linethickness",U(n))}if(t.leftDelim!=null||t.rightDelim!=null){var a=[];if(t.leftDelim!=null){var i=new H("mo",[new $e(t.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),t.rightDelim!=null){var s=new H("mo",[new $e(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return as(a)}return r},eu=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};G({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0],i=e[1],s,o=null,c=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",c=")";break;case"\\\\bracefrac":s=!1,o="\\{",c="\\}";break;case"\\\\brackfrac":s=!1,o="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}var h=n==="\\cfrac",d=null;return h||n.startsWith("\\d")?d="display":n.startsWith("\\t")&&(d="text"),eu({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:h,hasBarLine:s,leftDelim:o,rightDelim:c,barSize:null},d)},htmlBuilder:Om,mathmlBuilder:$m});G({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(t){var e=t.parser,r=t.funcName,n=t.token,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:a,token:n}}});var Bo=["display","text","script","scriptscript"],qo=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};G({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(t,e){var r=t.parser,n=e[4],a=e[5],i=jn(e[0]),s=i.type==="atom"&&i.family==="open"?qo(i.text):null,o=jn(e[1]),c=o.type==="atom"&&o.family==="close"?qo(o.text):null,h=ue(e[2],"size"),d,v=null;h.isBlank?d=!0:(v=h.value,d=v.number>0);var m=null,w=e[3];if(w.type==="ordgroup"){if(w.body.length>0){var A=ue(w.body[0],"textord");m=Bo[Number(A.text)]}}else w=ue(w,"textord"),m=Bo[Number(w.text)];return eu({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:d,barSize:v,leftDelim:s,rightDelim:c},m)}});G({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(t,e){var r=t.parser;t.funcName;var n=t.token;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:ue(e[0],"size").value,token:n}}});G({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:(t,e)=>{var r=t.parser;t.funcName;var n=e[0],a=ue(e[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var i=e[2],s=a.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var tu=(t,e)=>{var r=e.style,n,a;t.type==="supsub"?(n=t.sup?me(t.sup,e.havingStyle(r.sup()),e):me(t.sub,e.havingStyle(r.sub()),e),a=ue(t.base,"horizBrace")):a=ue(t,"horizBrace");var i=me(a.base,e.havingBaseStyle(se.DISPLAY)),s=J0(a,e),o;if(a.isOver?o=fe({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}):o=fe({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:i}]}),n){var c=$(["minner",a.isOver?"mover":"munder"],[o],e);a.isOver?o=fe({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=fe({positionType:"bottom",positionData:c.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:c}]})}return $(["minner",a.isOver?"mover":"munder"],[o],e)},Bm=(t,e)=>{var r=Q0(t.label);return new H(t.isOver?"mover":"munder",[we(t.base,e),r])};G({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:e[0]}},htmlBuilder:tu,mathmlBuilder:Bm});G({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[1],a=ue(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:Oe(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=We(t.body,e,!1);return qp(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=br(t.body,e);return r instanceof H||(r=new H("mrow",[r])),r.setAttribute("href",t.href),r}});G({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=ue(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<n.length;i++){var s=n[i];s==="~"&&(s="\\textasciitilde"),a.push({type:"textord",mode:"text",text:s})}var o={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:Oe(o)}}});G({type:"hbox",names:["\\hbox"],numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0,handler(t,e){var r=t.parser;return{type:"hbox",mode:r.mode,body:Oe(e[0])}},htmlBuilder(t,e){var r=We(t.body,e.withFont(""),!1);return Zt(r)},mathmlBuilder(t,e){return new H("mrow",vt(t.body,e.withFont("")))}});G({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],numArgs:2,argTypes:["raw","original"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName;t.token;var a=ue(e[0],"raw").string,i=e[1];r.settings.strict&&ut({strict:r.settings.strict,errorCode:"htmlExtension",errorMsg:"HTML extension is disabled on strict mode",report:!0});var s,o={};switch(n){case"\\htmlClass":o.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":o.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":o.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var c="{,}",h=[],d="",v=0;v<a.length;v++)a.startsWith(c,v)?(d+=",",v+=c.length-1):a[v]===","?(h.push(d),d=""):d+=a[v];h.push(d);for(var m=0;m<h.length;m++){var w=h[m],A=w.indexOf("=");if(A<0)throw new F("\\htmlData key/value '"+w+"' missing equals sign");var C=w.slice(0,A),M=w.slice(A+1);o["data-"+C.trim()]=M}s={command:"\\htmlData",attributes:o};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(s)?{type:"html",mode:r.mode,attributes:o,body:Oe(i)}:r.formatUnsupportedCmd(n)},htmlBuilder:(t,e)=>{var r=We(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var a=$(n,r,e);for(var i of Object.entries(t.attributes)){var s=i[0],o=i[1];s!=="class"&&a.setAttribute(s,o)}return a},mathmlBuilder:(t,e)=>br(t.body,e)});G({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(t,e)=>{var r=t.parser;return{type:"htmlmathml",mode:r.mode,html:Oe(e[0]),mathml:Oe(e[1])}},htmlBuilder:(t,e)=>{var r=We(t.html,e,!1);return Zt(r)},mathmlBuilder:(t,e)=>br(t.mathml,e)});var ja=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new F("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!Ec(n))throw new F("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};G({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:(t,e,r)=>{var n=t.parser,a={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var c=ue(r[0],"raw").string,h=c.split(","),d=0;d<h.length;d++){var v=h[d].split("=");if(v.length===2){var m=v[1].trim();switch(v[0].trim()){case"alt":o=m;break;case"width":a=ja(m);break;case"height":i=ja(m);break;case"totalheight":s=ja(m);break;default:throw new F("Invalid key: '"+v[0]+"' in \\includegraphics.")}}}var w=ue(e[0],"url").url;return o===""&&(o=w,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:n.mode,alt:o,width:a,height:i,totalheight:s,src:w}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(t,e)=>{var r=Ie(t.height,e),n=0;t.totalheight.number>0&&(n=Ie(t.totalheight,e)-r);var a=0;t.width.number>0&&(a=Ie(t.width,e));var i={height:U(r+n)};a>0&&(i.width=U(a)),n>0&&(i.verticalAlign=U(-n));var s=new Ip(t.src,t.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new H("mglyph",[]);r.setAttribute("alt",t.alt);var n=Ie(t.height,e),a=0;if(t.totalheight.number>0&&(a=Ie(t.totalheight,e)-n,r.setAttribute("valign",U(-a))),r.setAttribute("height",U(n+a)),t.width.number>0){var i=Ie(t.width,e);r.setAttribute("width",U(i))}return r.setAttribute("src",t.src),r}});G({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName,a=ue(e[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||ut({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units"),report:!0}),r.mode!=="math"&&ut({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" works only in math mode",report:!0})):s&&ut({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" doesn't support mu units",report:!0})}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder(t,e){return Dc(t.dimension,e)},mathmlBuilder(t,e){var r=Ie(t.dimension,e);return new $c(r)}});G({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=$([],[me(t.body,e)]),r=$(["katex-inner"],[r],e)):r=$(["katex-inner"],[me(t.body,e)]);var n=$(["katex-fix"],[]),a=$([t.alignment],[r,n],e),i=$(["katex-strut"]);return i.style.height=U(a.height+a.depth),a.depth&&(i.style.verticalAlign=U(-a.depth)),a.children.unshift(i),a=$(["katex-thinbox"],[a],e),$(["mord","katex-vbox"],[a],e)},mathmlBuilder:(t,e)=>{var r=new H("mpadded",[we(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});G({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){var r=t.funcName,n=t.parser,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:s}}});G({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){throw new F("Mismatched "+t.funcName)}});var Fo=(t,e)=>{switch(e.style.size){case se.DISPLAY.size:return t.display;case se.TEXT.size:return t.text;case se.SCRIPT.size:return t.script;case se.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};G({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:(t,e)=>{var r=t.parser;return{type:"mathchoice",mode:r.mode,display:Oe(e[0]),text:Oe(e[1]),script:Oe(e[2]),scriptscript:Oe(e[3])}},htmlBuilder:(t,e)=>{var r=Fo(t,e),n=We(r,e,!1);return Zt(n)},mathmlBuilder:(t,e)=>{var r=Fo(t,e);return br(r,e)}});var ru=(t,e,r,n,a,i,s)=>{t=$([],[t]);var o=r&&Xt(r),c,h;if(e){var d=me(e,n.havingStyle(a.sup()),n);h={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var v=me(r,n.havingStyle(a.sub()),n);c={elem:v,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-v.height)}}var m;if(h&&c){var w=n.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+t.depth+s;m=fe({positionType:"bottom",positionData:w,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:U(-i)},{type:"kern",size:c.kern},{type:"elem",elem:t},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:U(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(c){var A=t.height-s;m=fe({positionType:"top",positionData:A,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:U(-i)},{type:"kern",size:c.kern},{type:"elem",elem:t}]})}else if(h){var C=t.depth+s;m=fe({positionType:"bottom",positionData:C,children:[{type:"elem",elem:t},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:U(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var M=[m];if(c&&i!==0&&!o){var k=$(["mspace"],[],n);k.style.marginRight=U(i),M.unshift(k)}return $(["mop","op-limits"],M,n)},nu=new Set(["\\smallint"]),au=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=ue(t.base,"op"),a=!0):i=ue(t,"op");var s=e.style,o=!1;s.size===se.DISPLAY.size&&i.symbol&&!nu.has(i.name)&&(o=!0);var c,h;if(i.symbol){var d=o?"Size2-Regular":"Size1-Regular",v="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(v=i.name.slice(1),i.name=v==="oiint"?"\\iint":"\\iiint"),c=nt(i.name,d,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),h=c.italic,v.length>0){var m=Pc(v+"Size"+(o?"2":"1"),e);c=fe({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:m,shift:o?.08:0}]}),i.name="\\"+v,c.classes.unshift("mop"),c.italic=h}}else if(i.body){var w=We(i.body,e,!0);w.length===1&&w[0]instanceof xt?(c=w[0],c.classes[0]="mop"):c=$(["mop"],w,e)}else{for(var A=[],C=1;C<i.name.length;C++)A.push(rs(i.name[C],i.mode,e));c=$(["mop"],A,e)}var M=0,k=0;if((c instanceof xt||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift){var I;M=(c.height-c.depth)/2-e.fontMetrics().axisHeight,k=(I=c.italic)!=null?I:0}return a?ru(c,r,n,e,s,k,M):(M&&(c.style.position="relative",c.style.top=U(M)),c)},qm=(t,e)=>{var r;if(t.symbol)r=new H("mo",[St(t.name,t.mode)]),nu.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new H("mo",vt(t.body,e));else{r=new H("mi",[new $e(t.name.slice(1))]);var n=new H("mo",[St("⁡","text")]);t.parentIsSupSub?r=new H("mrow",[r,n]):r=Oc([r,n])}return r},Fm={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};G({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],numArgs:0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=n;return a.length===1&&(a=Fm[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:au,mathmlBuilder:qm});G({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Oe(n)}}});var Hm={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};G({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"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}}});G({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}}});G({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],numArgs:0,allowedInArgument:!0,handler(t){var e=t.parser,r=t.funcName,n=r;return n.length===1&&(n=Hm[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var iu=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=ue(t.base,"operatorname"),a=!0):i=ue(t,"operatorname");var s;if(i.body.length>0){for(var o=i.body.map(v=>{var m="text"in v?v.text:void 0;return typeof m=="string"?{type:"textord",mode:v.mode,text:m}:v}),c=We(o,e.withFont("mathrm"),!0),h=0;h<c.length;h++){var d=c[h];d instanceof xt&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=$(["mop"],c,e)}else s=$(["mop"],[],e);return a?ru(s,r,n,e,e.style,0,0):s},Um=(t,e)=>{for(var r=vt(t.body,e.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(!(i instanceof $c))if(i instanceof H)switch(i.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var s=i.children[0];i.children.length===1&&s instanceof $e?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=r.map(d=>d.toText()).join("");r=[new $e(o)]}var c=new H("mi",r);c.setAttribute("mathvariant","normal");var h=new H("mo",[St("⁡","text")]);return t.parentIsSupSub?new H("mrow",[c,h]):Oc([c,h])};G({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"operatorname",mode:r.mode,body:Oe(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:iu,mathmlBuilder:Um});f("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Hr({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?Zt(We(t.body,e,!1)):$(["mord"],We(t.body,e,!0),e)},mathmlBuilder(t,e){return br(t.body,e,!0)}});G({type:"overline",names:["\\overline"],numArgs:1,handler(t,e){var r=t.parser,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=me(t.body,e.havingCrampedStyle()),n=mn("overline-line",e),a=e.fontMetrics().defaultRuleThickness,i=fe({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return $(["mord","katex-overline"],[i],e)},mathmlBuilder(t,e){var r=new H("mo",[new $e("‾")]);r.setAttribute("stretchy","true");var n=new H("mover",[we(t.body,e),r]);return n.setAttribute("accent","true"),n}});G({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"phantom",mode:r.mode,body:Oe(n)}},htmlBuilder:(t,e)=>{var r=We(t.body,e.withPhantom(),!1);return Zt(r)},mathmlBuilder:(t,e)=>{var r=vt(t.body,e);return new H("mphantom",r)}});f("\\hphantom","\\smash{\\phantom{#1}}");G({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=$(["katex-inner"],[me(t.body,e.withPhantom())]),n=$(["katex-fix"],[]);return $(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=vt(Oe(t.body),e),n=new H("mphantom",r),a=new H("mpadded",[n]);return a.setAttribute("width","0px"),a}});G({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(t,e){var r=t.parser,n=ue(e[0],"size").value,a=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(t,e){var r=me(t.body,e),n=Ie(t.dy,e);return fe({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new H("mpadded",[we(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});var su=(t,e)=>{var r=t.parser;return{type:"reflectbox",mode:r.mode,body:e[0]}};G({type:"reflectbox",names:["\\reflectbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler:su,htmlBuilder(t,e){return $(["mord","reflectbox"],[me(t.body,e)],e)},mathmlBuilder(t,e){return we(t.body,e)}});G({type:"reflectbox",names:["\\mathreflectbox"],numArgs:1,argTypes:["math"],handler:su});G({type:"internal",names:["\\relax"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(t){var e=t.parser;return{type:"internal",mode:e.mode}}});G({type:"rule",names:["\\rule"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"],handler(t,e,r){var n=t.parser,a=r[0],i=ue(e[0],"size"),s=ue(e[1],"size");return{type:"rule",mode:n.mode,shift:a&&ue(a,"size").value,width:i.value,height:s.value}},htmlBuilder(t,e){var r=$(["mord","katex-rule"],[],e),n=Ie(t.width,e),a=Ie(t.height,e),i=t.shift?Ie(t.shift,e):0;return r.style.borderRightWidth=U(n),r.style.borderTopWidth=U(a),r.style.bottom=U(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=Ie(t.width,e),n=Ie(t.height,e),a=t.shift?Ie(t.shift,e):0,i=e.color&&e.getColor()||"black",s=new H("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",U(r)),s.setAttribute("height",U(n));var o=new H("mpadded",[s]);return a>=0?o.setAttribute("height",U(a)):(o.setAttribute("height",U(a)),o.setAttribute("depth",U(-a))),o.setAttribute("voffset",U(a)),o}});function ou(t,e,r){for(var n=We(t,e,!1),a=e.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var s=n[i].classes.indexOf("katex-sizing");s<0?Array.prototype.push.apply(n[i].classes,e.sizingClasses(r)):n[i].classes[s+1]==="reset-size"+e.size&&(n[i].classes[s+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return Zt(n)}var Ho=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Wm=(t,e)=>{var r=e.havingSize(t.size);return ou(t.body,r,e)};G({type:"sizing",names:Ho,numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.breakOnTokenText,n=t.funcName,a=t.parser,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Ho.indexOf(n)+1,body:i}},htmlBuilder:Wm,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=vt(t.body,r),a=new H("mstyle",n);return a.setAttribute("mathsize",U(r.sizeMultiplier)),a}});G({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(t,e,r)=>{var n=t.parser,a=!1,i=!1,s=r[0]&&ue(r[0],"ordgroup");if(s)for(var o,c=0;c<s.body.length;++c){var h=s.body[c];if(o=ea(h).text,o==="t")a=!0;else if(o==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var d=e[0];return{type:"smash",mode:n.mode,body:d,smashHeight:a,smashDepth:i}},htmlBuilder:(t,e)=>{var r=$([],[me(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return $(["mord","katex-smash"],[r],e);if(r.children)for(var n=0;n<r.children.length;n++)t.smashHeight&&(r.children[n].height=0),t.smashDepth&&(r.children[n].depth=0);var a=fe({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return $(["mord"],[a],e)},mathmlBuilder:(t,e)=>{var r=new H("mpadded",[we(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});G({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var n=t.parser,a=r[0],i=e[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(t,e){var r=me(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=fn(r,e);var n=e.fontMetrics(),a=n.defaultRuleThickness,i=a;e.style.id<se.TEXT.id&&(i=e.fontMetrics().xHeight);var s=a+i/4,o=r.height+r.depth+s+a,c=Tm(o,e),h=c.span,d=c.ruleWidth,v=c.advanceWidth,m=h.height-d;m>r.height+r.depth+s&&(s=(s+m-r.height-r.depth)/2);var w=h.height-r.height-s-d;r.style.paddingLeft=U(v);var A=fe({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+w)},{type:"elem",elem:h},{type:"kern",size:d}]});if(t.index){var C=e.havingStyle(se.SCRIPTSCRIPT),M=me(t.index,C,e),k=.6*(A.height-A.depth),I=fe({positionType:"shift",positionData:-k,children:[{type:"elem",elem:M}]}),R=$(["katex-root"],[I]);return $(["mord","sqrt"],[R,A],e)}else return $(["mord","sqrt"],[A],e)},mathmlBuilder(t,e){var r=t.body,n=t.index;return n?new H("mroot",[we(r,e),we(n,e)]):new H("msqrt",[we(r,e)])}});var Mi={display:se.DISPLAY,text:se.TEXT,script:se.SCRIPT,scriptscript:se.SCRIPTSCRIPT};function Gm(t){return t in Mi}G({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(t,e){var r=t.breakOnTokenText,n=t.funcName,a=t.parser,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);if(!Gm(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(t,e){var r=Mi[t.style],n=e.havingStyle(r);return t.resetFont&&(n=n.withFont("")),ou(t.body,n,e)},mathmlBuilder(t,e){var r=Mi[t.style],n=e.havingStyle(r);t.resetFont&&(n=n.withFont(""));var a=vt(t.body,n),i=new H("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var jm=function(e,r){var n=e.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===se.DISPLAY.size||n.alwaysHandleSupSub);return a?au:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===se.DISPLAY.size||n.limits);return i?iu:null}else{if(n.type==="accent")return Xt(n.base)?qc:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?tu:null}else return null}else return null};Hr({type:"supsub",htmlBuilder(t,e){var r=jm(t,e);if(r)return r(t,e);var n=t.base,a=t.sup,i=t.sub,s=me(n,e),o,c,h=e.fontMetrics(),d=0,v=0,m=n&&Xt(n);if(a){var w=e.havingStyle(e.style.sup());o=me(a,w,e),m||(d=s.height-w.fontMetrics().supDrop*w.sizeMultiplier/e.sizeMultiplier)}if(i){var A=e.havingStyle(e.style.sub());c=me(i,A,e),m||(v=s.depth+A.fontMetrics().subDrop*A.sizeMultiplier/e.sizeMultiplier)}var C;e.style===se.DISPLAY?C=h.sup1:e.style.cramped?C=h.sup3:C=h.sup2;var M=e.sizeMultiplier,k=U(.5/h.ptPerEm/M),I=null;if(c){var R=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");if(s instanceof xt||R){var Z;I=U(-((Z=s.italic)!=null?Z:0))}}var K;if(o&&c){d=Math.max(d,C,o.depth+.25*h.xHeight),v=Math.max(v,h.sub2);var ee=h.defaultRuleThickness,T=4*ee;if(d-o.depth-(c.height-v)<T){v=T-(d-o.depth)+c.height;var B=.8*h.xHeight-(d-o.depth);B>0&&(d+=B,v-=B)}var q=[{type:"elem",elem:c,shift:v,marginRight:k,marginLeft:I},{type:"elem",elem:o,shift:-d,marginRight:k}];K=fe({positionType:"individualShift",children:q})}else if(c){v=Math.max(v,h.sub1,c.height-.8*h.xHeight);var X=[{type:"elem",elem:c,marginLeft:I,marginRight:k}];K=fe({positionType:"shift",positionData:v,children:X})}else if(o)d=Math.max(d,C,o.depth+.25*h.xHeight),K=fe({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:k}]});else throw new Error("supsub must have either sup or sub.");var N=Ai(s,"right")||"mord";return $([N],[s,$(["msupsub"],[K])],e)},mathmlBuilder(t,e){var r=!1,n,a;t.base&&t.base.type==="horizBrace"&&(a=!!t.sup,a===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var i=[we(t.base,e)];t.sub&&i.push(we(t.sub,e)),t.sup&&i.push(we(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var h=t.base;h&&h.type==="op"&&h.limits&&e.style===se.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(e.style===se.DISPLAY||h.limits)?s="munderover":s="msubsup"}else{var c=t.base;c&&c.type==="op"&&c.limits&&(e.style===se.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||e.style===se.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===se.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===se.DISPLAY)?s="mover":s="msup"}return new H(s,i)}});Hr({type:"atom",htmlBuilder(t,e){return rs(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new H("mo",[St(t.text,t.mode)]);if(t.family==="bin"){var n=is(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var lu={mi:"italic",mn:"normal",mtext:"normal"};Hr({type:"mathord",htmlBuilder(t,e){return Z0(t,e)},mathmlBuilder(t,e){var r=new H("mi",[St(t.text,t.mode,e)]),n=is(t,e)||"italic";return n!==lu[r.type]&&r.setAttribute("mathvariant",n),r}});Hr({type:"textord",htmlBuilder(t,e){return Z0(t,e)},mathmlBuilder(t,e){var r=St(t.text,t.mode,e),n=is(t,e)||"normal",a;return t.mode==="text"?a=new H("mtext",[r]):/[0-9]/.test(t.text)?a=new H("mn",[r]):t.text==="\\prime"?a=new H("mo",[r]):a=new H("mi",[r]),n!==lu[a.type]&&a.setAttribute("mathvariant",n),a}});var Uo=new Map([["\\nobreak","nobreak"],["\\allowbreak","allowbreak"]]),Wo=new Map([[" ",{}],["\\ ",{}],["~",{className:"nobreak"}],["\\space",{}],["\\nobreakspace",{className:"nobreak"}]]);Hr({type:"spacing",htmlBuilder(t,e){var r=Wo.get(t.text),n=Uo.get(t.text);if(r){var a=r.className||"";if(t.mode==="text"){var i=Z0(t,e);return i.classes.push(a),i}else return $(["mspace",a],[rs(t.text,t.mode,e)],e)}else{if(n)return $(["mspace",n],[],e);throw new F('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(Wo.has(t.text))r=new H("mtext",[new $e(" ")]);else{if(Uo.has(t.text))return new H("mspace");throw new F('Unknown type of space "'+t.text+'"')}return r}});var Go=()=>{var t=new H("mtd",[]);return t.setAttribute("width","50%"),t};Hr({type:"tag",mathmlBuilder(t,e){var r=new H("mtable",[new H("mtr",[Go(),new H("mtd",[br(t.body,e)]),Go(),new H("mtd",[br(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var jo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Vo={"\\textbf":"textbf","\\textmd":"textmd"},Vm={"\\textit":"textit","\\textup":"textup"},Ko=(t,e)=>{var r=t.font;if(r){if(jo[r])return e.withTextFontFamily(jo[r]);if(Vo[r])return e.withTextFontWeight(Vo[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(Vm[r])};G({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"text",mode:r.mode,body:Oe(a),font:n}},htmlBuilder(t,e){var r=Ko(t,e),n=We(t.body,r,!0);return $(["mord","text"],n,r)},mathmlBuilder(t,e){var r=Ko(t,e);return br(t.body,r)}});G({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=me(t.body,e),n=mn("underline-line",e),a=e.fontMetrics().defaultRuleThickness,i=fe({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]});return $(["mord","katex-underline"],[i],e)},mathmlBuilder(t,e){var r=new H("mo",[new $e("‾")]);r.setAttribute("stretchy","true");var n=new H("munder",[we(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});G({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=me(t.body,e),n=e.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return fe({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new H("mpadded",[we(t.body,e)],["vcenter"]);return new H("mrow",[r])}});G({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(t,e,r){throw new F("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=Xo(t),n=[],a=e.havingStyle(e.style.text()),i=0;i<r.length;i++){var s=r[i];s==="~"&&(s="\\textasciitilde"),n.push(nt(s,"Typewriter-Regular",t.mode,a,["mord","texttt"]))}return $(["mord","text"].concat(a.sizingClasses(e)),Rc(n),a)},mathmlBuilder(t,e){var r=new $e(Xo(t)),n=new H("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Xo=t=>t.body.replace(/ /g,t.star?"␣":" "),ur=_c,cu=`[ \r
341
- ]`,Km="\\\\[a-zA-Z@]+",Xm="\\\\[^\uD800-\uDFFF]",Ym="("+Km+")"+cu+"*",Zm=`\\\\(
339
+ -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function Cp(t){return"toText"in t}class xn{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(),r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){for(var e="",r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e}toText(){return this.children.map(e=>{if(Cp(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}}var fi={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},Mp={ex:!0,em:!0,mu:!0},Ec=function(e){return typeof e!="string"&&(e=e.unit),e in fi||e in Mp||e==="ex"},Ie=function(e,r){var n;if(e.unit in fi)n=fi[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,e.unit==="ex")n=a.fontMetrics().xHeight;else if(e.unit==="em")n=a.fontMetrics().quad;else throw new F("Invalid unit: '"+e.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},U=function(e){return+e.toFixed(4)+"em"},fr=function(e){return e.filter(r=>r).join(" ")},Ji=function(e){var r="";for(var n of Object.keys(e)){var a=e[n];a!==void 0&&(r+=tp(n)+":"+a+";")}return r},Cc=function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var a=r.getColor();a&&(this.style.color=a)}},Mc=function(e){var r=document.createElement(e);r.className=fr(this.classes),Object.assign(r.style,this.style);for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},Ip=/[\s"'>/=\x00-\x1f]/,Ic=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+et(fr(this.classes))+'"');var n=Ji(this.style);n&&(r+=' style="'+et(n)+'"');for(var a of Object.keys(this.attributes)){if(Ip.test(a))throw new F("Invalid attribute name '"+a+"'");r+=" "+a+'="'+et(this.attributes[a])+'"'}r+=">";for(var i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</"+e+">",r};class Zn{constructor(e,r,n,a){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,Cc.call(this,e,n,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return Mc.call(this,"span")}toMarkup(){return Ic.call(this,"span")}}class es{constructor(e,r,n,a){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,Cc.call(this,r,a),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return Mc.call(this,"a")}toMarkup(){return Ic.call(this,"a")}}class zp{constructor(e,r,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=r,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="'+et(this.src)+'"'+(' alt="'+et(this.alt)+'"'),r=Ji(this.style);return r&&(e+=' style="'+et(r)+'"'),e+="'/>",e}}var Rp={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class xt{constructor(e,r,n,a,i,s,o,c){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=r||0,this.depth=n||0,this.italic=a||0,this.skew=i||0,this.width=s||0,this.classes=o||[],this.style=c||{},this.maxFontSize=0;var h=gp(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Rp[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),r=null;return this.italic>0&&(r=document.createElement("span"),r.style.marginRight=U(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=fr(this.classes)),Object.keys(this.style).length>0&&(r=r||document.createElement("span"),Object.assign(r.style,this.style)),r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="<span";this.classes.length&&(e=!0,r+=' class="',r+=et(fr(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+U(this.italic)+";"),n+=Ji(this.style),n&&(e=!0,r+=' style="'+et(n)+'"');var a=et(this.text);return e?(r+=">",r+=a,r+="</span>",r):a}}class gr{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))e+=" "+r+'="'+et(this.attributes[r])+'"';e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>",e}}class $r{constructor(e,r){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=r}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",po[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+et(this.alternate)+'"/>':'<path d="'+et(po[this.pathName])+'"/>'}}class mo{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e="<line";for(var r of Object.keys(this.attributes))e+=" "+r+'="'+et(this.attributes[r])+'"';return e+="/>",e}}function Dp(t){if(t instanceof xt)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function Np(t){if(t instanceof Zn)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var Pp=t=>t instanceof Zn||t instanceof es||t instanceof xn,Gt={"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]}},Na={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]},fo={Å:"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 ts(t,e,r){if(!Gt[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),a=Gt[e][n];if(!a&&t[0]in fo&&(n=fo[t[0]].charCodeAt(0),a=Gt[e][n]),!a&&r==="text"&&Tc(n)&&(a=Gt[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Pa={};function _p(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!Pa[e]){var r=Pa[e]={cssEmPerMu:Na.quad[e]/18};for(var n of Object.keys(Na))r[n]=Na[n][e]}return Pa[e]}var Ee={math:{},text:{}};function l(t,e,r,n,a,i){Ee[t][a]={font:e,group:r,replace:n},i&&n&&(Ee[t][n]=Ee[t][a])}var u="math",L="text",p="main",b="ams",Ce="accent-token",j="bin",it="close",Sn="inner",re="mathord",qe="op-token",gt="open",Qn="punct",y="rel",Zt="spacing",x="textord";l(u,p,y,"≡","\\equiv",!0);l(u,p,y,"≺","\\prec",!0);l(u,p,y,"≻","\\succ",!0);l(u,p,y,"∼","\\sim",!0);l(u,p,y,"⊥","\\perp");l(u,p,y,"⪯","\\preceq",!0);l(u,p,y,"⪰","\\succeq",!0);l(u,p,y,"≃","\\simeq",!0);l(u,p,y,"∣","\\mid",!0);l(u,p,y,"≪","\\ll",!0);l(u,p,y,"≫","\\gg",!0);l(u,p,y,"≍","\\asymp",!0);l(u,p,y,"∥","\\parallel");l(u,p,y,"⋈","\\bowtie",!0);l(u,p,y,"⌣","\\smile",!0);l(u,p,y,"⊑","\\sqsubseteq",!0);l(u,p,y,"⊒","\\sqsupseteq",!0);l(u,p,y,"≐","\\doteq",!0);l(u,p,y,"⌢","\\frown",!0);l(u,p,y,"∋","\\ni",!0);l(u,p,y,"∝","\\propto",!0);l(u,p,y,"⊢","\\vdash",!0);l(u,p,y,"⊣","\\dashv",!0);l(u,p,y,"∋","\\owns");l(u,p,Qn,".","\\ldotp");l(u,p,Qn,"⋅","\\cdotp");l(u,p,Qn,"⋅","·");l(L,p,x,"⋅","·");l(u,p,x,"#","\\#");l(L,p,x,"#","\\#");l(u,p,x,"&","\\&");l(L,p,x,"&","\\&");l(u,p,x,"ℵ","\\aleph",!0);l(u,p,x,"∀","\\forall",!0);l(u,p,x,"ℏ","\\hbar",!0);l(u,p,x,"∃","\\exists",!0);l(u,p,x,"∇","\\nabla",!0);l(u,p,x,"♭","\\flat",!0);l(u,p,x,"ℓ","\\ell",!0);l(u,p,x,"♮","\\natural",!0);l(u,p,x,"♣","\\clubsuit",!0);l(u,p,x,"℘","\\wp",!0);l(u,p,x,"♯","\\sharp",!0);l(u,p,x,"♢","\\diamondsuit",!0);l(u,p,x,"ℜ","\\Re",!0);l(u,p,x,"♡","\\heartsuit",!0);l(u,p,x,"ℑ","\\Im",!0);l(u,p,x,"♠","\\spadesuit",!0);l(u,p,x,"§","\\S",!0);l(L,p,x,"§","\\S");l(u,p,x,"¶","\\P",!0);l(L,p,x,"¶","\\P");l(u,p,x,"†","\\dag");l(L,p,x,"†","\\dag");l(L,p,x,"†","\\textdagger");l(u,p,x,"‡","\\ddag");l(L,p,x,"‡","\\ddag");l(L,p,x,"‡","\\textdaggerdbl");l(u,p,it,"⎱","\\rmoustache",!0);l(u,p,gt,"⎰","\\lmoustache",!0);l(u,p,it,"⟯","\\rgroup",!0);l(u,p,gt,"⟮","\\lgroup",!0);l(u,p,j,"∓","\\mp",!0);l(u,p,j,"⊖","\\ominus",!0);l(u,p,j,"⊎","\\uplus",!0);l(u,p,j,"⊓","\\sqcap",!0);l(u,p,j,"∗","\\ast");l(u,p,j,"⊔","\\sqcup",!0);l(u,p,j,"◯","\\bigcirc",!0);l(u,p,j,"∙","\\bullet",!0);l(u,p,j,"‡","\\ddagger");l(u,p,j,"≀","\\wr",!0);l(u,p,j,"⨿","\\amalg");l(u,p,j,"&","\\And");l(u,p,y,"⟵","\\longleftarrow",!0);l(u,p,y,"⇐","\\Leftarrow",!0);l(u,p,y,"⟸","\\Longleftarrow",!0);l(u,p,y,"⟶","\\longrightarrow",!0);l(u,p,y,"⇒","\\Rightarrow",!0);l(u,p,y,"⟹","\\Longrightarrow",!0);l(u,p,y,"↔","\\leftrightarrow",!0);l(u,p,y,"⟷","\\longleftrightarrow",!0);l(u,p,y,"⇔","\\Leftrightarrow",!0);l(u,p,y,"⟺","\\Longleftrightarrow",!0);l(u,p,y,"↦","\\mapsto",!0);l(u,p,y,"⟼","\\longmapsto",!0);l(u,p,y,"↗","\\nearrow",!0);l(u,p,y,"↩","\\hookleftarrow",!0);l(u,p,y,"↪","\\hookrightarrow",!0);l(u,p,y,"↘","\\searrow",!0);l(u,p,y,"↼","\\leftharpoonup",!0);l(u,p,y,"⇀","\\rightharpoonup",!0);l(u,p,y,"↙","\\swarrow",!0);l(u,p,y,"↽","\\leftharpoondown",!0);l(u,p,y,"⇁","\\rightharpoondown",!0);l(u,p,y,"↖","\\nwarrow",!0);l(u,p,y,"⇌","\\rightleftharpoons",!0);l(u,b,y,"≮","\\nless",!0);l(u,b,y,"","\\@nleqslant");l(u,b,y,"","\\@nleqq");l(u,b,y,"⪇","\\lneq",!0);l(u,b,y,"≨","\\lneqq",!0);l(u,b,y,"","\\@lvertneqq");l(u,b,y,"⋦","\\lnsim",!0);l(u,b,y,"⪉","\\lnapprox",!0);l(u,b,y,"⊀","\\nprec",!0);l(u,b,y,"⋠","\\npreceq",!0);l(u,b,y,"⋨","\\precnsim",!0);l(u,b,y,"⪹","\\precnapprox",!0);l(u,b,y,"≁","\\nsim",!0);l(u,b,y,"","\\@nshortmid");l(u,b,y,"∤","\\nmid",!0);l(u,b,y,"⊬","\\nvdash",!0);l(u,b,y,"⊭","\\nvDash",!0);l(u,b,y,"⋪","\\ntriangleleft");l(u,b,y,"⋬","\\ntrianglelefteq",!0);l(u,b,y,"⊊","\\subsetneq",!0);l(u,b,y,"","\\@varsubsetneq");l(u,b,y,"⫋","\\subsetneqq",!0);l(u,b,y,"","\\@varsubsetneqq");l(u,b,y,"≯","\\ngtr",!0);l(u,b,y,"","\\@ngeqslant");l(u,b,y,"","\\@ngeqq");l(u,b,y,"⪈","\\gneq",!0);l(u,b,y,"≩","\\gneqq",!0);l(u,b,y,"","\\@gvertneqq");l(u,b,y,"⋧","\\gnsim",!0);l(u,b,y,"⪊","\\gnapprox",!0);l(u,b,y,"⊁","\\nsucc",!0);l(u,b,y,"⋡","\\nsucceq",!0);l(u,b,y,"⋩","\\succnsim",!0);l(u,b,y,"⪺","\\succnapprox",!0);l(u,b,y,"≆","\\ncong",!0);l(u,b,y,"","\\@nshortparallel");l(u,b,y,"∦","\\nparallel",!0);l(u,b,y,"⊯","\\nVDash",!0);l(u,b,y,"⋫","\\ntriangleright");l(u,b,y,"⋭","\\ntrianglerighteq",!0);l(u,b,y,"","\\@nsupseteqq");l(u,b,y,"⊋","\\supsetneq",!0);l(u,b,y,"","\\@varsupsetneq");l(u,b,y,"⫌","\\supsetneqq",!0);l(u,b,y,"","\\@varsupsetneqq");l(u,b,y,"⊮","\\nVdash",!0);l(u,b,y,"⪵","\\precneqq",!0);l(u,b,y,"⪶","\\succneqq",!0);l(u,b,y,"","\\@nsubseteqq");l(u,b,j,"⊴","\\unlhd");l(u,b,j,"⊵","\\unrhd");l(u,b,y,"↚","\\nleftarrow",!0);l(u,b,y,"↛","\\nrightarrow",!0);l(u,b,y,"⇍","\\nLeftarrow",!0);l(u,b,y,"⇏","\\nRightarrow",!0);l(u,b,y,"↮","\\nleftrightarrow",!0);l(u,b,y,"⇎","\\nLeftrightarrow",!0);l(u,b,y,"△","\\vartriangle");l(u,b,x,"ℏ","\\hslash");l(u,b,x,"▽","\\triangledown");l(u,b,x,"◊","\\lozenge");l(u,b,x,"Ⓢ","\\circledS");l(u,b,x,"®","\\circledR");l(L,b,x,"®","\\circledR");l(u,b,x,"∡","\\measuredangle",!0);l(u,b,x,"∄","\\nexists");l(u,b,x,"℧","\\mho");l(u,b,x,"Ⅎ","\\Finv",!0);l(u,b,x,"⅁","\\Game",!0);l(u,b,x,"‵","\\backprime");l(u,b,x,"▲","\\blacktriangle");l(u,b,x,"▼","\\blacktriangledown");l(u,b,x,"■","\\blacksquare");l(u,b,x,"⧫","\\blacklozenge");l(u,b,x,"★","\\bigstar");l(u,b,x,"∢","\\sphericalangle",!0);l(u,b,x,"∁","\\complement",!0);l(u,b,x,"ð","\\eth",!0);l(L,p,x,"ð","ð");l(u,b,x,"╱","\\diagup");l(u,b,x,"╲","\\diagdown");l(u,b,x,"□","\\square");l(u,b,x,"□","\\Box");l(u,b,x,"◊","\\Diamond");l(u,b,x,"¥","\\yen",!0);l(L,b,x,"¥","\\yen",!0);l(u,b,x,"✓","\\checkmark",!0);l(L,b,x,"✓","\\checkmark");l(u,b,x,"ℶ","\\beth",!0);l(u,b,x,"ℸ","\\daleth",!0);l(u,b,x,"ℷ","\\gimel",!0);l(u,b,x,"ϝ","\\digamma",!0);l(u,b,x,"ϰ","\\varkappa");l(u,b,gt,"┌","\\@ulcorner",!0);l(u,b,it,"┐","\\@urcorner",!0);l(u,b,gt,"└","\\@llcorner",!0);l(u,b,it,"┘","\\@lrcorner",!0);l(u,b,y,"≦","\\leqq",!0);l(u,b,y,"⩽","\\leqslant",!0);l(u,b,y,"⪕","\\eqslantless",!0);l(u,b,y,"≲","\\lesssim",!0);l(u,b,y,"⪅","\\lessapprox",!0);l(u,b,y,"≊","\\approxeq",!0);l(u,b,j,"⋖","\\lessdot");l(u,b,y,"⋘","\\lll",!0);l(u,b,y,"≶","\\lessgtr",!0);l(u,b,y,"⋚","\\lesseqgtr",!0);l(u,b,y,"⪋","\\lesseqqgtr",!0);l(u,b,y,"≑","\\doteqdot");l(u,b,y,"≓","\\risingdotseq",!0);l(u,b,y,"≒","\\fallingdotseq",!0);l(u,b,y,"∽","\\backsim",!0);l(u,b,y,"⋍","\\backsimeq",!0);l(u,b,y,"⫅","\\subseteqq",!0);l(u,b,y,"⋐","\\Subset",!0);l(u,b,y,"⊏","\\sqsubset",!0);l(u,b,y,"≼","\\preccurlyeq",!0);l(u,b,y,"⋞","\\curlyeqprec",!0);l(u,b,y,"≾","\\precsim",!0);l(u,b,y,"⪷","\\precapprox",!0);l(u,b,y,"⊲","\\vartriangleleft");l(u,b,y,"⊴","\\trianglelefteq");l(u,b,y,"⊨","\\vDash",!0);l(u,b,y,"⊪","\\Vvdash",!0);l(u,b,y,"⌣","\\smallsmile");l(u,b,y,"⌢","\\smallfrown");l(u,b,y,"≏","\\bumpeq",!0);l(u,b,y,"≎","\\Bumpeq",!0);l(u,b,y,"≧","\\geqq",!0);l(u,b,y,"⩾","\\geqslant",!0);l(u,b,y,"⪖","\\eqslantgtr",!0);l(u,b,y,"≳","\\gtrsim",!0);l(u,b,y,"⪆","\\gtrapprox",!0);l(u,b,j,"⋗","\\gtrdot");l(u,b,y,"⋙","\\ggg",!0);l(u,b,y,"≷","\\gtrless",!0);l(u,b,y,"⋛","\\gtreqless",!0);l(u,b,y,"⪌","\\gtreqqless",!0);l(u,b,y,"≖","\\eqcirc",!0);l(u,b,y,"≗","\\circeq",!0);l(u,b,y,"≜","\\triangleq",!0);l(u,b,y,"∼","\\thicksim");l(u,b,y,"≈","\\thickapprox");l(u,b,y,"⫆","\\supseteqq",!0);l(u,b,y,"⋑","\\Supset",!0);l(u,b,y,"⊐","\\sqsupset",!0);l(u,b,y,"≽","\\succcurlyeq",!0);l(u,b,y,"⋟","\\curlyeqsucc",!0);l(u,b,y,"≿","\\succsim",!0);l(u,b,y,"⪸","\\succapprox",!0);l(u,b,y,"⊳","\\vartriangleright");l(u,b,y,"⊵","\\trianglerighteq");l(u,b,y,"⊩","\\Vdash",!0);l(u,b,y,"∣","\\shortmid");l(u,b,y,"∥","\\shortparallel");l(u,b,y,"≬","\\between",!0);l(u,b,y,"⋔","\\pitchfork",!0);l(u,b,y,"∝","\\varpropto");l(u,b,y,"◀","\\blacktriangleleft");l(u,b,y,"∴","\\therefore",!0);l(u,b,y,"∍","\\backepsilon");l(u,b,y,"▶","\\blacktriangleright");l(u,b,y,"∵","\\because",!0);l(u,b,y,"⋘","\\llless");l(u,b,y,"⋙","\\gggtr");l(u,b,j,"⊲","\\lhd");l(u,b,j,"⊳","\\rhd");l(u,b,y,"≂","\\eqsim",!0);l(u,p,y,"⋈","\\Join");l(u,b,y,"≑","\\Doteq",!0);l(u,b,j,"∔","\\dotplus",!0);l(u,b,j,"∖","\\smallsetminus");l(u,b,j,"⋒","\\Cap",!0);l(u,b,j,"⋓","\\Cup",!0);l(u,b,j,"⩞","\\doublebarwedge",!0);l(u,b,j,"⊟","\\boxminus",!0);l(u,b,j,"⊞","\\boxplus",!0);l(u,b,j,"⋇","\\divideontimes",!0);l(u,b,j,"⋉","\\ltimes",!0);l(u,b,j,"⋊","\\rtimes",!0);l(u,b,j,"⋋","\\leftthreetimes",!0);l(u,b,j,"⋌","\\rightthreetimes",!0);l(u,b,j,"⋏","\\curlywedge",!0);l(u,b,j,"⋎","\\curlyvee",!0);l(u,b,j,"⊝","\\circleddash",!0);l(u,b,j,"⊛","\\circledast",!0);l(u,b,j,"⋅","\\centerdot");l(u,b,j,"⊺","\\intercal",!0);l(u,b,j,"⋒","\\doublecap");l(u,b,j,"⋓","\\doublecup");l(u,b,j,"⊠","\\boxtimes",!0);l(u,b,y,"⇢","\\dashrightarrow",!0);l(u,b,y,"⇠","\\dashleftarrow",!0);l(u,b,y,"⇇","\\leftleftarrows",!0);l(u,b,y,"⇆","\\leftrightarrows",!0);l(u,b,y,"⇚","\\Lleftarrow",!0);l(u,b,y,"↞","\\twoheadleftarrow",!0);l(u,b,y,"↢","\\leftarrowtail",!0);l(u,b,y,"↫","\\looparrowleft",!0);l(u,b,y,"⇋","\\leftrightharpoons",!0);l(u,b,y,"↶","\\curvearrowleft",!0);l(u,b,y,"↺","\\circlearrowleft",!0);l(u,b,y,"↰","\\Lsh",!0);l(u,b,y,"⇈","\\upuparrows",!0);l(u,b,y,"↿","\\upharpoonleft",!0);l(u,b,y,"⇃","\\downharpoonleft",!0);l(u,p,y,"⊶","\\origof",!0);l(u,p,y,"⊷","\\imageof",!0);l(u,b,y,"⊸","\\multimap",!0);l(u,b,y,"↭","\\leftrightsquigarrow",!0);l(u,b,y,"⇉","\\rightrightarrows",!0);l(u,b,y,"⇄","\\rightleftarrows",!0);l(u,b,y,"↠","\\twoheadrightarrow",!0);l(u,b,y,"↣","\\rightarrowtail",!0);l(u,b,y,"↬","\\looparrowright",!0);l(u,b,y,"↷","\\curvearrowright",!0);l(u,b,y,"↻","\\circlearrowright",!0);l(u,b,y,"↱","\\Rsh",!0);l(u,b,y,"⇊","\\downdownarrows",!0);l(u,b,y,"↾","\\upharpoonright",!0);l(u,b,y,"⇂","\\downharpoonright",!0);l(u,b,y,"⇝","\\rightsquigarrow",!0);l(u,b,y,"⇝","\\leadsto");l(u,b,y,"⇛","\\Rrightarrow",!0);l(u,b,y,"↾","\\restriction");l(u,p,x,"‘","`");l(u,p,x,"$","\\$");l(L,p,x,"$","\\$");l(L,p,x,"$","\\textdollar");l(u,p,x,"%","\\%");l(L,p,x,"%","\\%");l(u,p,x,"_","\\_");l(L,p,x,"_","\\_");l(L,p,x,"_","\\textunderscore");l(u,p,x,"∠","\\angle",!0);l(u,p,x,"∞","\\infty",!0);l(u,p,x,"′","\\prime");l(u,p,x,"△","\\triangle");l(u,p,x,"Γ","\\Gamma",!0);l(u,p,x,"Δ","\\Delta",!0);l(u,p,x,"Θ","\\Theta",!0);l(u,p,x,"Λ","\\Lambda",!0);l(u,p,x,"Ξ","\\Xi",!0);l(u,p,x,"Π","\\Pi",!0);l(u,p,x,"Σ","\\Sigma",!0);l(u,p,x,"Υ","\\Upsilon",!0);l(u,p,x,"Φ","\\Phi",!0);l(u,p,x,"Ψ","\\Psi",!0);l(u,p,x,"Ω","\\Omega",!0);l(u,p,x,"A","Α");l(u,p,x,"B","Β");l(u,p,x,"E","Ε");l(u,p,x,"Z","Ζ");l(u,p,x,"H","Η");l(u,p,x,"I","Ι");l(u,p,x,"K","Κ");l(u,p,x,"M","Μ");l(u,p,x,"N","Ν");l(u,p,x,"O","Ο");l(u,p,x,"P","Ρ");l(u,p,x,"T","Τ");l(u,p,x,"X","Χ");l(u,p,x,"¬","\\neg",!0);l(u,p,x,"¬","\\lnot");l(u,p,x,"⊤","\\top");l(u,p,x,"⊥","\\bot");l(u,p,x,"∅","\\emptyset");l(u,b,x,"∅","\\varnothing");l(u,p,re,"α","\\alpha",!0);l(u,p,re,"β","\\beta",!0);l(u,p,re,"γ","\\gamma",!0);l(u,p,re,"δ","\\delta",!0);l(u,p,re,"ϵ","\\epsilon",!0);l(u,p,re,"ζ","\\zeta",!0);l(u,p,re,"η","\\eta",!0);l(u,p,re,"θ","\\theta",!0);l(u,p,re,"ι","\\iota",!0);l(u,p,re,"κ","\\kappa",!0);l(u,p,re,"λ","\\lambda",!0);l(u,p,re,"μ","\\mu",!0);l(u,p,re,"ν","\\nu",!0);l(u,p,re,"ξ","\\xi",!0);l(u,p,re,"ο","\\omicron",!0);l(u,p,re,"π","\\pi",!0);l(u,p,re,"ρ","\\rho",!0);l(u,p,re,"σ","\\sigma",!0);l(u,p,re,"τ","\\tau",!0);l(u,p,re,"υ","\\upsilon",!0);l(u,p,re,"ϕ","\\phi",!0);l(u,p,re,"χ","\\chi",!0);l(u,p,re,"ψ","\\psi",!0);l(u,p,re,"ω","\\omega",!0);l(u,p,re,"ε","\\varepsilon",!0);l(u,p,re,"ϑ","\\vartheta",!0);l(u,p,re,"ϖ","\\varpi",!0);l(u,p,re,"ϱ","\\varrho",!0);l(u,p,re,"ς","\\varsigma",!0);l(u,p,re,"φ","\\varphi",!0);l(u,p,j,"∗","*",!0);l(u,p,j,"+","+");l(u,p,j,"−","-",!0);l(u,p,j,"⋅","\\cdot",!0);l(u,p,j,"∘","\\circ",!0);l(u,p,j,"÷","\\div",!0);l(u,p,j,"±","\\pm",!0);l(u,p,j,"×","\\times",!0);l(u,p,j,"∩","\\cap",!0);l(u,p,j,"∪","\\cup",!0);l(u,p,j,"∖","\\setminus",!0);l(u,p,j,"∧","\\land");l(u,p,j,"∨","\\lor");l(u,p,j,"∧","\\wedge",!0);l(u,p,j,"∨","\\vee",!0);l(u,p,x,"√","\\surd");l(u,p,gt,"⟨","\\langle",!0);l(u,p,gt,"∣","\\lvert");l(u,p,gt,"∥","\\lVert");l(u,p,it,"?","?");l(u,p,it,"!","!");l(u,p,it,"⟩","\\rangle",!0);l(u,p,it,"∣","\\rvert");l(u,p,it,"∥","\\rVert");l(u,p,y,"=","=");l(u,p,y,":",":");l(u,p,y,"≈","\\approx",!0);l(u,p,y,"≅","\\cong",!0);l(u,p,y,"≥","\\ge");l(u,p,y,"≥","\\geq",!0);l(u,p,y,"←","\\gets");l(u,p,y,">","\\gt",!0);l(u,p,y,"∈","\\in",!0);l(u,p,y,"","\\@not");l(u,p,y,"⊂","\\subset",!0);l(u,p,y,"⊃","\\supset",!0);l(u,p,y,"⊆","\\subseteq",!0);l(u,p,y,"⊇","\\supseteq",!0);l(u,b,y,"⊈","\\nsubseteq",!0);l(u,b,y,"⊉","\\nsupseteq",!0);l(u,p,y,"⊨","\\models");l(u,p,y,"←","\\leftarrow",!0);l(u,p,y,"≤","\\le");l(u,p,y,"≤","\\leq",!0);l(u,p,y,"<","\\lt",!0);l(u,p,y,"→","\\rightarrow",!0);l(u,p,y,"→","\\to");l(u,b,y,"≱","\\ngeq",!0);l(u,b,y,"≰","\\nleq",!0);l(u,p,Zt," ","\\ ");l(u,p,Zt," ","\\space");l(u,p,Zt," ","\\nobreakspace");l(L,p,Zt," ","\\ ");l(L,p,Zt," "," ");l(L,p,Zt," ","\\space");l(L,p,Zt," ","\\nobreakspace");l(u,p,Zt,"","\\nobreak");l(u,p,Zt,"","\\allowbreak");l(u,p,Qn,",",",");l(u,p,Qn,";",";");l(u,b,j,"⊼","\\barwedge",!0);l(u,b,j,"⊻","\\veebar",!0);l(u,p,j,"⊙","\\odot",!0);l(u,p,j,"⊕","\\oplus",!0);l(u,p,j,"⊗","\\otimes",!0);l(u,p,x,"∂","\\partial",!0);l(u,p,j,"⊘","\\oslash",!0);l(u,b,j,"⊚","\\circledcirc",!0);l(u,b,j,"⊡","\\boxdot",!0);l(u,p,j,"△","\\bigtriangleup");l(u,p,j,"▽","\\bigtriangledown");l(u,p,j,"†","\\dagger");l(u,p,j,"⋄","\\diamond");l(u,p,j,"⋆","\\star");l(u,p,j,"◃","\\triangleleft");l(u,p,j,"▹","\\triangleright");l(u,p,gt,"{","\\{");l(L,p,x,"{","\\{");l(L,p,x,"{","\\textbraceleft");l(u,p,it,"}","\\}");l(L,p,x,"}","\\}");l(L,p,x,"}","\\textbraceright");l(u,p,gt,"{","\\lbrace");l(u,p,it,"}","\\rbrace");l(u,p,gt,"[","\\lbrack",!0);l(L,p,x,"[","\\lbrack",!0);l(u,p,it,"]","\\rbrack",!0);l(L,p,x,"]","\\rbrack",!0);l(u,p,gt,"(","\\lparen",!0);l(u,p,it,")","\\rparen",!0);l(L,p,x,"<","\\textless",!0);l(L,p,x,">","\\textgreater",!0);l(u,p,gt,"⌊","\\lfloor",!0);l(u,p,it,"⌋","\\rfloor",!0);l(u,p,gt,"⌈","\\lceil",!0);l(u,p,it,"⌉","\\rceil",!0);l(u,p,x,"\\","\\backslash");l(u,p,x,"∣","|");l(u,p,x,"∣","\\vert");l(L,p,x,"|","\\textbar",!0);l(u,p,x,"∥","\\|");l(u,p,x,"∥","\\Vert");l(L,p,x,"∥","\\textbardbl");l(L,p,x,"~","\\textasciitilde");l(L,p,x,"\\","\\textbackslash");l(L,p,x,"^","\\textasciicircum");l(u,p,y,"↑","\\uparrow",!0);l(u,p,y,"⇑","\\Uparrow",!0);l(u,p,y,"↓","\\downarrow",!0);l(u,p,y,"⇓","\\Downarrow",!0);l(u,p,y,"↕","\\updownarrow",!0);l(u,p,y,"⇕","\\Updownarrow",!0);l(u,p,qe,"∐","\\coprod");l(u,p,qe,"⋁","\\bigvee");l(u,p,qe,"⋀","\\bigwedge");l(u,p,qe,"⨄","\\biguplus");l(u,p,qe,"⋂","\\bigcap");l(u,p,qe,"⋃","\\bigcup");l(u,p,qe,"∫","\\int");l(u,p,qe,"∫","\\intop");l(u,p,qe,"∬","\\iint");l(u,p,qe,"∭","\\iiint");l(u,p,qe,"∏","\\prod");l(u,p,qe,"∑","\\sum");l(u,p,qe,"⨂","\\bigotimes");l(u,p,qe,"⨁","\\bigoplus");l(u,p,qe,"⨀","\\bigodot");l(u,p,qe,"∮","\\oint");l(u,p,qe,"∯","\\oiint");l(u,p,qe,"∰","\\oiiint");l(u,p,qe,"⨆","\\bigsqcup");l(u,p,qe,"∫","\\smallint");l(L,p,Sn,"…","\\textellipsis");l(u,p,Sn,"…","\\mathellipsis");l(L,p,Sn,"…","\\ldots",!0);l(u,p,Sn,"…","\\ldots",!0);l(u,p,Sn,"⋯","\\@cdots",!0);l(u,p,Sn,"⋱","\\ddots",!0);l(u,p,x,"⋮","\\varvdots");l(L,p,x,"⋮","\\varvdots");l(u,p,Ce,"ˊ","\\acute");l(u,p,Ce,"ˋ","\\grave");l(u,p,Ce,"¨","\\ddot");l(u,p,Ce,"~","\\tilde");l(u,p,Ce,"ˉ","\\bar");l(u,p,Ce,"˘","\\breve");l(u,p,Ce,"ˇ","\\check");l(u,p,Ce,"^","\\hat");l(u,p,Ce,"⃗","\\vec");l(u,p,Ce,"˙","\\dot");l(u,p,Ce,"˚","\\mathring");l(u,p,re,"","\\@imath");l(u,p,re,"","\\@jmath");l(u,p,x,"ı","ı");l(u,p,x,"ȷ","ȷ");l(L,p,x,"ı","\\i",!0);l(L,p,x,"ȷ","\\j",!0);l(L,p,x,"ß","\\ss",!0);l(L,p,x,"æ","\\ae",!0);l(L,p,x,"œ","\\oe",!0);l(L,p,x,"ø","\\o",!0);l(L,p,x,"Æ","\\AE",!0);l(L,p,x,"Œ","\\OE",!0);l(L,p,x,"Ø","\\O",!0);l(L,p,Ce,"ˊ","\\'");l(L,p,Ce,"ˋ","\\`");l(L,p,Ce,"ˆ","\\^");l(L,p,Ce,"˜","\\~");l(L,p,Ce,"ˉ","\\=");l(L,p,Ce,"˘","\\u");l(L,p,Ce,"˙","\\.");l(L,p,Ce,"¸","\\c");l(L,p,Ce,"˚","\\r");l(L,p,Ce,"ˇ","\\v");l(L,p,Ce,"¨",'\\"');l(L,p,Ce,"˝","\\H");l(L,p,Ce,"◯","\\textcircled");var zc={"--":!0,"---":!0,"``":!0,"''":!0};l(L,p,x,"–","--",!0);l(L,p,x,"–","\\textendash");l(L,p,x,"—","---",!0);l(L,p,x,"—","\\textemdash");l(L,p,x,"‘","`",!0);l(L,p,x,"‘","\\textquoteleft");l(L,p,x,"’","'",!0);l(L,p,x,"’","\\textquoteright");l(L,p,x,"“","``",!0);l(L,p,x,"“","\\textquotedblleft");l(L,p,x,"”","''",!0);l(L,p,x,"”","\\textquotedblright");l(u,p,x,"°","\\degree",!0);l(L,p,x,"°","\\degree");l(L,p,x,"°","\\textdegree",!0);l(u,p,x,"£","\\pounds");l(u,p,x,"£","\\mathsterling",!0);l(L,p,x,"£","\\pounds");l(L,p,x,"£","\\textsterling",!0);l(u,b,x,"✠","\\maltese");l(L,b,x,"✠","\\maltese");var go='0123456789/@."';for(var _a=0;_a<go.length;_a++){var vo=go.charAt(_a);l(u,p,x,vo,vo)}var bo='0123456789!@*()-=+";:?/.,';for(var La=0;La<bo.length;La++){var yo=bo.charAt(La);l(L,p,x,yo,yo)}var W0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Oa=0;Oa<W0.length;Oa++){var T0=W0.charAt(Oa);l(u,p,re,T0,T0),l(L,p,x,T0,T0)}l(u,b,x,"C","ℂ");l(L,b,x,"C","ℂ");l(u,b,x,"H","ℍ");l(L,b,x,"H","ℍ");l(u,b,x,"N","ℕ");l(L,b,x,"N","ℕ");l(u,b,x,"P","ℙ");l(L,b,x,"P","ℙ");l(u,b,x,"Q","ℚ");l(L,b,x,"Q","ℚ");l(u,b,x,"R","ℝ");l(L,b,x,"R","ℝ");l(u,b,x,"Z","ℤ");l(L,b,x,"Z","ℤ");l(u,p,re,"h","ℎ");l(L,p,re,"h","ℎ");var ae;for(var tt=0;tt<W0.length;tt++){var Re=W0.charAt(tt);ae=String.fromCharCode(55349,56320+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56372+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56424+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56580+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56684+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56736+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56788+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56840+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56944+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),tt<26&&(ae=String.fromCharCode(55349,56632+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae),ae=String.fromCharCode(55349,56476+tt),l(u,p,re,Re,ae),l(L,p,x,Re,ae))}ae="𝕜";l(u,p,re,"k",ae);l(L,p,x,"k",ae);for(var Mr=0;Mr<10;Mr++){var sr=Mr.toString();ae=String.fromCharCode(55349,57294+Mr),l(u,p,re,sr,ae),l(L,p,x,sr,ae),ae=String.fromCharCode(55349,57314+Mr),l(u,p,re,sr,ae),l(L,p,x,sr,ae),ae=String.fromCharCode(55349,57324+Mr),l(u,p,re,sr,ae),l(L,p,x,sr,ae),ae=String.fromCharCode(55349,57334+Mr),l(u,p,re,sr,ae),l(L,p,x,sr,ae)}var gi="ÐÞþ";for(var $a=0;$a<gi.length;$a++){var E0=gi.charAt($a);l(u,p,re,E0,E0),l(L,p,x,E0,E0)}var vi={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},wo={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},ko={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},Lp={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},Pr={mathClass:"",textClass:"",font:""},xo={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},So={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},Ao={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},bi={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},yi={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},To={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},wi={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},Eo=[vi,vi,wo,wo,ko,ko,Lp,Pr,Pr,Pr,xo,xo,So,So,Ao,Ao,bi,bi,yi,yi,To,To,Pr,Pr,wi,wi],Op=[vi,Pr,bi,yi,wi],$p=t=>{var e=t.charCodeAt(0),r=t.charCodeAt(1),n=(e-55296)*1024+(r-56320)+65536;if(119808<=n&&n<120484){var a=Math.floor((n-119808)/26);return Eo[a]}else if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return Op[i]}else{if(n===120485||n===120486)return Eo[0];if(120486<n&&n<120782)return Pr;throw new F("Unsupported character: "+t)}};function ut(t){var e=t.strict,r=t.errorCode,n=t.errorMsg,a=t.token,i=t.report,s=e;if(typeof e=="function")if(i)s=e(r,n,a);else try{s=e(r,n,a)}catch{s="error"}switch(s){case!0:case"error":if(i)throw new F("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+r+"]"),a);return!0;case!1:case"ignore":if(!i)return!1;break;case"warn":default:if(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+r+"]")),!i)return!1;break}}var Y0=function(e,r,n){if(Ee[n][e]){var a=Ee[n][e].replace;a&&(e=a)}return{value:e,metrics:ts(e,r,n)}},nt=function(e,r,n,a,i){var s=Y0(e,r,n),o=s.metrics;e=s.value;var c;if(o){var h=o.italic;(n==="text"||a&&a.font==="mathit")&&(h=0),c=new xt(e,o.height,o.depth,h,o.skew,o.width,i)}else ut({strict:a.strict,errorCode:"symbolNotInFont",errorMsg:"No character metrics for '"+e+"' in style '"+r+"' and mode '"+n+"'",report:!0}),c=new xt(e,0,0,0,0,0,i);c.maxFontSize=a.sizeMultiplier,a.style.isTight()&&c.classes.push("mtight");var d=a.getColor();return d&&(c.style.color=d),c},rs=function(e,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&Y0(e,"Main-Bold",r).metrics?nt(e,"Main-Bold",r,n,a.concat(["mathbf"])):e==="\\"||Ee[r][e].font==="main"?nt(e,"Main-Regular",r,n,a):nt(e,"AMS-Regular",r,n,a.concat(["amsrm"]))},Bp=function(e,r,n){return n!=="textord"&&Y0(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Z0=function(e,r){var n=e.type==="mathord"?"mathord":"textord",a=e.mode,i=e.text,s=["mord"],o=r.font,c=r.fontFamily,h=r.fontWeight,d=r.fontShape,v=a==="math"||a==="text"&&!!o,m=v?o:c,w="",A="";if(i.charCodeAt(0)===55349){var C=$p(i);w=C.font,A=C[a+"Class"]}if(w)return nt(i,w,a,r,s.concat(A));if(m){var M,k;if(m==="boldsymbol"){var I=Bp(i,a,n);M=I.fontName,k=[I.fontClass]}else v?(M=ki[o].fontName,k=[o]):(M=C0(c,h,d),k=[c,h,d]);if(Y0(i,M,a).metrics)return nt(i,M,a,r,s.concat(k));if(Object.prototype.hasOwnProperty.call(zc,i)&&M.slice(0,10)==="Typewriter"){for(var R=[],Z=0;Z<i.length;Z++)R.push(nt(i[Z],M,a,r,s.concat(k)));return Qt(R)}}if(n==="mathord")return nt(i,"Math-Italic",a,r,s.concat(["mathnormal"]));if(n==="textord"){var K=Ee[a][i]&&Ee[a][i].font;if(K==="ams"){var ee=C0("amsrm",h,d);return nt(i,ee,a,r,s.concat("amsrm",h,d))}else if(K==="main"||!K){var T=C0("textrm",h,d);return nt(i,T,a,r,s.concat(h,d))}else{var B=C0(K,h,d);return nt(i,B,a,r,s.concat(B,h,d))}}else throw new Error("unexpected type: "+n+" in makeOrd")},qp=(t,e)=>{if(fr(t.classes)!==fr(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(t.style))if(t.style[n]!==e.style[n])return!1;for(var a of Object.keys(e.style))if(t.style[a]!==e.style[a])return!1;return!0},Rc=t=>{for(var e=0;e<t.length-1;e++){var r=t[e],n=t[e+1];r instanceof xt&&n instanceof xt&&qp(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,t.splice(e+1,1),e--)}return t},ns=function(e){for(var r=0,n=0,a=0,i=0;i<e.children.length;i++){var s=e.children[i];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=a},$=function(e,r,n,a){var i=new Zn(e,r,n,a);return ns(i),i},vr=(t,e,r,n)=>new Zn(t,e,r,n),mn=function(e,r,n){var a=$([e],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=U(a.height),a.maxFontSize=1,a},Fp=function(e,r,n,a){var i=new es(e,r,n,a);return ns(i),i},Qt=function(e){var r=new xn(e);return ns(r),r},fn=function(e,r){return e instanceof xn?$([],[e],r):e},Hp=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s<r.length;s++){var o=-r[s].shift-i-r[s].elem.depth,c=o-(r[s-1].elem.height+r[s-1].elem.depth);i=i+o,n.push({type:"kern",size:c}),n.push(r[s])}return{children:n,depth:a}}var h;if(e.positionType==="top"){for(var d=e.positionData,v=0;v<e.children.length;v++){var m=e.children[v];d-=m.type==="kern"?m.size:m.elem.height+m.elem.depth}h=d}else if(e.positionType==="bottom")h=-e.positionData;else{var w=e.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")h=-w.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")h=-w.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:h}},fe=function(e,r){for(var n=Hp(e),a=n.children,i=n.depth,s=0,o=0;o<a.length;o++){var c=a[o];if(c.type==="elem"){var h=c.elem;s=Math.max(s,h.maxFontSize,h.height)}}s+=2;var d=$(["pstrut"],[]);d.style.height=U(s);for(var v=[],m=i,w=i,A=i,C=0;C<a.length;C++){var M=a[C];if(M.type==="kern")A+=M.size;else{var k=M.elem,I=M.wrapperClasses||[],R=M.wrapperStyle||{},Z=$(I,[d,k],void 0,R);Z.style.top=U(-s-A-k.depth),M.marginLeft&&(Z.style.marginLeft=M.marginLeft),M.marginRight&&(Z.style.marginRight=M.marginRight),v.push(Z),A+=k.height+k.depth}m=Math.min(m,A),w=Math.max(w,A)}var K=$(["vlist"],v);K.style.height=U(w);var ee;if(m<0){var T=$([],[]),B=$(["vlist"],[T]);B.style.height=U(-m);var q=$(["vlist-s"],[new xt("​")]);ee=[$(["vlist-r"],[K,q]),$(["vlist-r"],[B])]}else ee=[$(["vlist-r"],[K])];var X=$(["vlist-t"],ee);return ee.length===2&&X.classes.push("vlist-t2"),X.height=w,X.depth=-m,X},Dc=(t,e)=>{var r=$(["mspace"],[],e),n=Ie(t,e);return r.style.marginRight=U(n),r},C0=(t,e,r)=>{var n,a;switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}return e==="textbf"&&r==="textit"?a="BoldItalic":e==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",n+"-"+a},ki={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"}},Nc={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Pc=function(e,r){var n=Nc[e],a=n[0],i=n[1],s=n[2],o=new $r(a),c=new gr([o],{width:U(i),height:U(s),style:"width:"+U(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),h=vr(["katex-overlay"],[c],r);return h.height=s,h.style.height=U(s),h.style.width=U(i),h},Me={number:3,unit:"mu"},Ir={number:4,unit:"mu"},Ft={number:5,unit:"mu"},Up={mord:{mop:Me,mbin:Ir,mrel:Ft,minner:Me},mop:{mord:Me,mop:Me,mrel:Ft,minner:Me},mbin:{mord:Ir,mop:Ir,mopen:Ir,minner:Ir},mrel:{mord:Ft,mop:Ft,mopen:Ft,minner:Ft},mopen:{},mclose:{mop:Me,mbin:Ir,mrel:Ft,minner:Me},mpunct:{mord:Me,mop:Me,mrel:Ft,mopen:Me,mclose:Me,mpunct:Me,minner:Me},minner:{mord:Me,mop:Me,mbin:Ir,mrel:Ft,mopen:Me,mpunct:Me,minner:Me}},Wp={mord:{mop:Me},mop:{mord:Me,mop:Me},mbin:{},mrel:{},mopen:{},mclose:{mop:Me},mpunct:{},minner:{mop:Me}},_c={},Wn={},Gn={};function G(t){for(var e=t.type,r=t.names,n=t.htmlBuilder,a=t.mathmlBuilder,i=0;i<r.length;++i)_c[r[i]]=t;e&&(n&&(Wn[e]=n),a&&(Gn[e]=a))}function Hr(t){var e=t.type,r=t.htmlBuilder,n=t.mathmlBuilder;r&&(Wn[e]=r),n&&(Gn[e]=n)}var jn=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},Oe=function(e){return e.type==="ordgroup"?e.body:[e]},Gp=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),jp=new Set(["rightmost","mrel","mclose","mpunct"]),Vp={display:se.DISPLAY,text:se.TEXT,script:se.SCRIPT,scriptscript:se.SCRIPTSCRIPT},Kp={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},We=function(e,r,n,a){a===void 0&&(a=[null,null]);for(var i=[],s=0;s<e.length;s++){var o=me(e[s],r);if(o instanceof xn){var c=o.children;i.push(...c)}else i.push(o)}if(Rc(i),!n)return i;var h=r;if(e.length===1){var d=e[0];d.type==="sizing"?h=r.havingSize(d.size):d.type==="styling"&&(h=r.havingStyle(Vp[d.style]))}var v=$([a[0]||"leftmost"],[],r),m=$([a[1]||"rightmost"],[],r),w=n==="root";return xi(i,(A,C)=>{var M=C.classes[0],k=A.classes[0];M==="mbin"&&jp.has(k)?C.classes[0]="mord":k==="mbin"&&Gp.has(M)&&(A.classes[0]="mord")},{node:v},m,w),xi(i,(A,C)=>{var M,k,I=Ai(C),R=Ai(A),Z=I&&R?A.hasClass("mtight")?(M=Wp[I])==null?void 0:M[R]:(k=Up[I])==null?void 0:k[R]:null;if(Z)return Dc(Z,h)},{node:v},m,w),i},xi=function(e,r,n,a,i){a&&e.push(a);for(var s=0;s<e.length;s++){var o=e[s],c=Lc(o);if(c){xi(c.children,r,n,null,i);continue}var h=!o.hasClass("mspace");if(h){var d=r(o,n.node);d&&(n.insertAfter?n.insertAfter(d):(e.unshift(d),s++))}h?n.node=o:i&&o.hasClass("katex-newline")&&(n.node=$(["leftmost"])),n.insertAfter=(v=>m=>{e.splice(v+1,0,m),s++})(s)}a&&e.pop()},Lc=function(e){return e instanceof xn||e instanceof es||e instanceof Zn&&e.hasClass("enclosing")?e:null},Si=function(e,r){var n=Lc(e);if(n){var a=n.children;if(a.length){if(r==="right")return Si(a[a.length-1],"right");if(r==="left")return Si(a[0],"left")}}return e},Ai=function(e,r){if(!e)return null;r&&(e=Si(e,r));var n=e.classes[0];return Kp[n]||null},Vn=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return $(r.concat(n))},me=function(e,r,n){if(!e)return $();if(Wn[e.type]){var a=Wn[e.type](e,r);if(n&&r.size!==n.size){a=$(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new F("Got group of unknown type: '"+e.type+"'")};function M0(t,e){var r=$(["katex-base"],t,e),n=$(["katex-strut"]);return n.style.height=U(r.height+r.depth),r.depth&&(n.style.verticalAlign=U(-r.depth)),r.children.unshift(n),r}function Co(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=We(t,e,"root"),a;n.length===2&&n[1].hasClass("katex-tag")&&(a=n.pop());for(var i=[],s=[],o=0;o<n.length;o++)if(s.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var c=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("katex-newline");)o++,s.push(n[o]),n[o].hasClass("nobreak")&&(c=!0);c||(i.push(M0(s,e)),s=[])}else n[o].hasClass("katex-newline")&&(s.pop(),s.length>0&&(i.push(M0(s,e)),s=[]),i.push(n[o]));s.length>0&&i.push(M0(s,e));var h;r?(h=M0(We(r,e,!0),e),h.classes=["katex-tag"],i.push(h)):a&&i.push(a);var d=$(["katex-html"],i);if(d.setAttribute("aria-hidden","true"),h){var v=h.children[0];v.style.height=U(d.height+d.depth),d.depth&&(v.style.verticalAlign=U(-d.depth))}return d}function Oc(t){return new xn(t)}class H{constructor(e,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r of Object.entries(this.attributes)){var n=r[0],a=r[1];e.setAttribute(n,a)}this.classes.length>0&&(e.className=fr(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof $e&&this.children[i+1]instanceof $e){for(var s=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof $e;)s+=this.children[++i].toText();e.appendChild(new $e(s).toNode())}else e.appendChild(this.children[i].toNode());return e}toMarkup(){var e="<"+this.type;for(var r of Object.entries(this.attributes)){var n=r[0],a=r[1];e+=" "+n+'="',e+=et(a),e+='"'}this.classes.length>0&&(e+=' class ="'+et(fr(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("")}}class $e{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return et(this.toText())}toText(){return this.text}}class $c{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",U(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+U(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Xp=new Set(["\\imath","\\jmath"]),Yp=new Set(["mrow","mtable"]),St=function(e,r,n){var a,i;return Ee[r][e]&&Ee[r][e].replace&&e.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(zc,e)&&((n==null||(a=n.fontFamily)==null?void 0:a.slice(4,6))==="tt"||(n==null||(i=n.font)==null?void 0:i.slice(4,6))==="tt"))&&(e=Ee[r][e].replace),new $e(e)},as=function(e){return e.length===1?e[0]:new H("mrow",e)},Zp={mathit:"italic",boldsymbol:t=>t.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"},is=(t,e)=>{if(t.mode==="text"){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold"}var r=e.font;if(!r||r==="mathnormal")return null;var n=t.mode,a=Zp[r];if(a)return typeof a=="function"?a(t):a;var i=t.text;if(Xp.has(i))return null;if(Ee[n][i]){var s=Ee[n][i].replace;s&&(i=s)}var o=ki[r].fontName;return ts(i,o,n)?ki[r].variant:null};function Ba(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof $e&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof $e&&r.text===","}else return!1}var vt=function(e,r,n){if(e.length===1){var a=we(e[0],r);return n&&a instanceof H&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o<e.length;o++){var c=we(e[o],r);if(c instanceof H&&s instanceof H){if(c.type==="mtext"&&s.type==="mtext"&&c.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...c.children);continue}else if(c.type==="mn"&&s.type==="mn"){s.children.push(...c.children);continue}else if(Ba(c)&&s.type==="mn"){s.children.push(...c.children);continue}else if(c.type==="mn"&&Ba(s))c.children=[...s.children,...c.children],i.pop();else if((c.type==="msup"||c.type==="msub")&&c.children.length>=1&&(s.type==="mn"||Ba(s))){var h=c.children[0];h instanceof H&&h.type==="mn"&&(h.children=[...s.children,...h.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof $e&&d.text==="̸"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var v=c.children[0];v instanceof $e&&v.text.length>0&&(v.text=v.text.slice(0,1)+"̸"+v.text.slice(1),i.pop())}}}i.push(c),s=c}return i},br=function(e,r,n){return as(vt(e,r,n))},we=function(e,r){if(!e)return new H("mrow");if(Gn[e.type])return Gn[e.type](e,r);throw new F("Got group of unknown type: '"+e.type+"'")};function Mo(t,e,r,n,a){var i=vt(t,r),s;i.length===1&&i[0]instanceof H&&Yp.has(i[0].type)?s=i[0]:s=new H("mrow",i);var o=new H("annotation",[new $e(e)]);o.setAttribute("encoding","application/x-tex");var c=new H("semantics",[s,o]),h=new H("math",[c]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&h.setAttribute("display","block");var d=a?"katex":"katex-mathml";return $([d],[h])}var Qp=[[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]],Io=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],zo=function(e,r){return r.size<2?e:Qp[e-1][r.size-1]};class Wt{constructor(e){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=e.style,this.color=e.color,this.size=e.size||Wt.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=Io[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this.strict=e.strict,this._fontMetrics=void 0}extend(e){var r={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(r,e),new Wt(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:zo(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:Io[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=zo(Wt.BASESIZE,e);return this.size===r&&this.textSize===Wt.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}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!==Wt.BASESIZE?["katex-sizing","reset-size"+this.size,"size"+Wt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=_p(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Wt.BASESIZE=6;var Jp=t=>new Wt({style:t.displayMode?se.DISPLAY:se.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness,strict:t.strict}),em=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=$(n,[e])}return e},tm=function(e,r,n){var a=Jp(n),i;if(n.output==="mathml")return Mo(e,r,a,n.displayMode,!0);if(n.output==="html"){var s=Co(e,a);i=$(["katex"],[s])}else{var o=Mo(e,r,a,n.displayMode,!1),c=Co(e,a);i=$(["katex"],[o,c])}return em(i,n)},rm={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":"="},Q0=function(e){var r=new H("mo",[new $e(rm[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},nm={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]},am=new Set(["widehat","widecheck","widetilde","utilde"]),J0=function(e,r){function n(){var c=4e5,h=e.label.slice(1);if(am.has(h)&&"base"in e){var d=e.base.type==="ordgroup"?e.base.body.length:1,v,m,w;if(d>5)h==="widehat"||h==="widecheck"?(v=420,c=2364,w=.42,m=h+"4"):(v=312,c=2340,w=.34,m="tilde4");else{var A=[1,1,2,2,3,3][d];h==="widehat"||h==="widecheck"?(c=[0,1062,2364,2364,2364][A],v=[0,239,300,360,420][A],w=[0,.24,.3,.3,.36,.42][A],m=h+A):(c=[0,600,1033,2339,2340][A],v=[0,260,286,306,312][A],w=[0,.26,.286,.3,.306,.34][A],m="tilde"+A)}var C=new $r(m),M=new gr([C],{width:"100%",height:U(w),viewBox:"0 0 "+c+" "+v,preserveAspectRatio:"none"});return{span:vr([],[M],r),minWidth:0,height:w}}else{var k=[],I=nm[h];if(!I)throw new Error('No SVG data for "'+h+'".');var R=I[0],Z=I[1],K=I[2],ee=K/1e3,T=R.length,B,q;if(T===1){if(I.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+h+'".');B=["hide-tail"],q=[I[3]]}else if(T===2)B=["halfarrow-left","halfarrow-right"],q=["xMinYMin","xMaxYMin"];else if(T===3)B=["brace-left","brace-center","brace-right"],q=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
340
+ `+T+" children.");for(var X=0;X<T;X++){var N=new $r(R[X]),D=new gr([N],{width:"400em",height:U(ee),viewBox:"0 0 "+c+" "+K,preserveAspectRatio:q[X]+" slice"}),W=vr([B[X]],[D],r);if(T===1)return{span:W,minWidth:Z,height:ee};W.style.height=U(ee),k.push(W)}return{span:$(["katex-stretchy"],k,r),minWidth:Z,height:ee}}}var a=n(),i=a.span,s=a.minWidth,o=a.height;return i.height=o,i.style.height=U(o),s>0&&(i.style.minWidth=U(s)),i},im=function(e,r,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=$(["katex-stretchy",r],[],i),r==="fbox"){var c=i.color&&i.getColor();c&&(s.style.borderColor=c)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new mo({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new mo({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new gr(h,{width:"100%",height:U(o)});s=vr([],[d],i)}return s.height=o,s.style.height=U(o),s},sm=["bin","close","inner","open","punct","rel"],om=["accent-token","mathord","op-token","spacing","textord"],lm=new Set(sm),cm=new Set(om);function um(t){return lm.has(t)}function ue(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function ea(t){var e=ta(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function ta(t){return t.type==="atom"||cm.has(t.type)?t:null}function ss(t,e,r){var n="";for(var a of t.body)if(a.type==="textord")n+=a.text;else if(r&&a.type==="spacing"&&a.text===" ")n+=" ";else throw new F(e,t);return n}var Bc=t=>{if(t instanceof xt)return t;if(Pp(t)&&t.children.length===1)return Bc(t.children[0])},qc=(t,e)=>{var r,n,a;t&&t.type==="supsub"?(n=ue(t.base,"accent"),r=n.base,t.base=r,a=Np(me(t,e)),t.base=n):(n=ue(t,"accent"),r=n.base);var i=me(r,e.havingCrampedStyle()),s=n.isShifty&&Yt(r),o=0;if(s){var c,h;o=(c=(h=Bc(i))==null?void 0:h.skew)!=null?c:0}var d=n.label==="\\c",v=d?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),m;if(n.isStretchy)m=J0(n,e),m=fe({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:m,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+U(2*o)+")",marginLeft:U(2*o)}:void 0}]});else{var w,A;n.label==="\\vec"?(w=Pc("vec",e),A=Nc.vec[1]):(w=Z0({type:"textord",mode:n.mode,text:n.label},e),w=Dp(w),w.italic=0,A=w.width,d&&(v+=w.depth)),m=$(["accent-body"],[w]);var C=n.label==="\\textcircled";C&&(m.classes.push("accent-full"),v=i.height);var M=o;C||(M-=A/2),m.style.left=U(M),n.label==="\\textcircled"&&(m.style.top=".2em"),m=fe({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-v},{type:"elem",elem:m}]})}var k=$(["mord","katex-accent"],[m],e);return a?(a.children[0]=k,a.height=Math.max(k.height,a.height),a.classes[0]="mord",a):k},hm=(t,e)=>{var r=t.isStretchy?Q0(t.label):new H("mo",[St(t.label,t.mode)]),n=new H("mover",[we(t.base,e),r]);return n.setAttribute("accent","true"),n},dm=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));G({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:(t,e)=>{var r=jn(e[0]),n=!dm.test(t.funcName),a=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:qc,mathmlBuilder:hm});G({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(ut({strict:t.parser.settings.strict,errorCode:"mathVsTextAccents",errorMsg:"LaTeX's accent "+t.funcName+" works only in text mode",report:!0}),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}}});G({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(t,e)=>{var r=me(t.base,e),n=J0(t,e),a=t.label==="\\utilde"?.12:0,i=fe({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]});return $(["mord","accentunder"],[i],e)},mathmlBuilder:(t,e)=>{var r=Q0(t.label),n=new H("munder",[we(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var I0=t=>{var e=new H("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};G({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(t,e,r){var n=t.parser,a=t.funcName;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),a=fn(me(t.body,n,e),e),i=t.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=fn(me(t.below,n,e),e),s.classes.push(i+"-arrow-pad"));var o=J0(t,e),c=-e.fontMetrics().axisHeight+.5*o.height,h=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||t.label==="\\xleftequilibrium")&&(h-=a.depth);var d;if(s){var v=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=fe({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:v}]})}else d=fe({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:o,shift:c,wrapperClasses:["svg-align"]}]});return $(["mrel","x-arrow"],[d],e)},mathmlBuilder(t,e){var r=Q0(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var a=I0(we(t.body,e));if(t.below){var i=I0(we(t.below,e));n=new H("munderover",[r,i,a])}else n=new H("mover",[r,a])}else if(t.below){var s=I0(we(t.below,e));n=new H("munder",[r,s])}else n=I0(),n=new H("mover",[r,n]);return n}});function pm(t,e){var r=We(t.body,e,!0);return $([t.mclass],r,e)}function mm(t,e){var r,n=vt(t.body,e);return t.mclass==="minner"?r=new H("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new H("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new H("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):(t.mclass==="mopen"||t.mclass==="mclose")&&(r.attributes.lspace="0em",r.attributes.rspace="0em")),r}G({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Oe(a),isCharacterBox:Yt(a)}},htmlBuilder:pm,mathmlBuilder:mm});var ra=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};G({type:"mclass",names:["\\@binrel"],numArgs:2,handler(t,e){var r=t.parser;return{type:"mclass",mode:r.mode,mclass:ra(e[0]),body:Oe(e[1]),isCharacterBox:Yt(e[1])}}});G({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(t,e){var r=t.parser,n=t.funcName,a=e[1],i=e[0],s;n!=="\\stackrel"?s=ra(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Oe(a)},c=n==="\\underset"?{type:"supsub",mode:i.mode,base:o,sub:i}:{type:"supsub",mode:i.mode,base:o,sup:i};return{type:"mclass",mode:r.mode,mclass:s,body:[c],isCharacterBox:Yt(c)}}});G({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"pmb",mode:r.mode,mclass:ra(e[0]),body:Oe(e[0])}},htmlBuilder(t,e){var r=We(t.body,e,!0),n=$([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=vt(t.body,e),n=new H("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var fm={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ro=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),Do=t=>t.type==="textord"&&t.text==="@",gm=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function vm(t,e,r){var n=fm[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[e[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),c={type:"ordgroup",mode:"math",body:[a,s,o]};return r.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function bm(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new F("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],a=[n],i=0;i<e.length;i++){for(var s=e[i],o=Ro(),c=0;c<s.length;c++)if(!Do(s[c]))o.body.push(s[c]);else{n.push(o),c+=1;var h=ea(s[c]).text,d=new Array(2);if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(h))if("<>AV".includes(h))for(var v=0;v<2;v++){for(var m=!0,w=c+1;w<s.length;w++){if(gm(s[w],h)){m=!1,c=w;break}if(Do(s[w]))throw new F("Missing a "+h+" character to complete a CD arrow.",s[w]);d[v].body.push(s[w])}if(m)throw new F("Missing a "+h+" character to complete a CD arrow.",s[c])}else throw new F('Expected one of "<>AV=|." after @',s[c]);var A=vm(h,d,t),C={type:"styling",body:[A],mode:"math",style:"display",resetFont:!0};n.push(C),o=Ro()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var M=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:M,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}G({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=fn(me(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=U(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new H("mrow",[we(t.label,e)]);return r=new H("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new H("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});G({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(t,e){var r=t.parser;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=fn(me(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new H("mrow",[we(t.fragment,e)])}});G({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,n=ue(e[0],"ordgroup"),a=ss(n,"\\@char has non-numeric argument"),i=parseInt(a),s;if(isNaN(i))throw new F("\\@char has non-numeric argument "+a);if(i<0||i>1114111)throw new F("\\@char with invalid code point "+a);return i<=65535?s=String.fromCharCode(i):(i-=65536,s=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:"textord",mode:r.mode,text:s}}});var ym=(t,e)=>{var r=We(t.body,e.withColor(t.color),!1);return Qt(r)},wm=(t,e)=>{var r=vt(t.body,e.withColor(t.color)),n=new H("mstyle",r);return n.setAttribute("mathcolor",t.color),n};G({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(t,e){var r=t.parser,n=ue(e[0],"color-token").color,a=e[1];return{type:"color",mode:r.mode,color:n,body:Oe(a)}},htmlBuilder:ym,mathmlBuilder:wm});G({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(t,e){var r=t.parser,n=t.breakOnTokenText,a=ue(e[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}}});G({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(t){var e=t.parser,r=e.gullet.future().text==="["?e.parseSizeGroup(!0):null,n=!e.settings.displayMode||!ut({strict:e.settings.strict,errorCode:"newLineInDisplayMode",errorMsg:"In LaTeX, \\\\ or \\newline does nothing in display mode",report:!1});return{type:"cr",mode:e.mode,newLine:n,size:r&&ue(r,"size").value}},htmlBuilder(t,e){var r=$(["mspace"],[],e);return t.newLine&&(r.classes.push("katex-newline"),t.size&&(r.style.marginTop=U(Ie(t.size,e)))),r},mathmlBuilder(t,e){var r=new H("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",U(Ie(t.size,e)))),r}});var Ti={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Fc=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new F("Expected a control sequence",t);return e},km=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},Hc=(t,e,r,n)=>{var a=t.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,a,n)};G({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(t){var e=t.parser,r=t.funcName;e.consumeSpaces();var n=e.fetch();if(Ti[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Ti[n.text]),ue(e.parseFunction(),"internal");throw new F("Invalid token after macro prefix",n)}});G({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=e.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new F("Expected a control sequence",n);for(var i=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new F('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new F('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new F("Expected a macro definition");o[i].push(n.text)}var c=e.gullet.consumeArg(),h=c.tokens;return s&&h.unshift(s),(r==="\\edef"||r==="\\xdef")&&(h=e.gullet.expandTokens(h),h.reverse()),e.gullet.macros.set(a,{tokens:h,numArgs:i,delimiters:o},r===Ti[r]),{type:"internal",mode:e.mode}}});G({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=Fc(e.gullet.popToken());e.gullet.consumeSpaces();var a=km(e);return Hc(e,n,a,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});G({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=Fc(e.gullet.popToken()),a=e.gullet.popToken(),i=e.gullet.popToken();return Hc(e,n,i,r==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});var On=function(e,r,n){var a=Ee.math[e]&&Ee.math[e].replace,i=ts(a||e,r,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return i},os=function(e,r,n,a){var i=n.havingBaseStyle(r),s=$(a.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},Uc=function(e,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=U(i),e.height-=i,e.depth+=i},xm=function(e,r,n,a,i,s){var o=nt(e,"Main-Regular",i,a),c=os(o,r,a,s);return Uc(c,a,r),c},Sm=function(e,r,n,a){return nt(e,"Size"+r+"-Regular",n,a)},Wc=function(e,r,n,a,i,s){var o=Sm(e,r,i,a),c=os($(["delimsizing","size"+r],[o],a),se.TEXT,a,s);return n&&Uc(c,a,se.TEXT),c},qa=function(e,r,n,a){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=$(["delimsizinginner",i],[$([],[nt(e,r,n,a)])]);return{type:"elem",elem:s}},Fa=function(e,r,n){var a=Gt["Size4-Regular"][e.charCodeAt(0)]?Gt["Size4-Regular"][e.charCodeAt(0)][4]:Gt["Size1-Regular"][e.charCodeAt(0)][4],i=new $r("inner",Tp(e,Math.round(1e3*r))),s=new gr([i],{width:U(a),height:U(r),style:"width:"+U(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=vr([],[s],n);return o.height=r,o.style.height=U(r),o.style.width=U(a),{type:"elem",elem:o}},Ei=.008,z0={type:"kern",size:-1*Ei},Am=new Set(["|","\\lvert","\\rvert","\\vert"]),Tm=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Gc=function(e,r,n,a,i,s){var o,c,h,d,v="",m=0;o=h=d=e,c=null;var w="Size1-Regular";e==="\\uparrow"?h=d="⏐":e==="\\Uparrow"?h=d="‖":e==="\\downarrow"?o=h="⏐":e==="\\Downarrow"?o=h="‖":e==="\\updownarrow"?(o="\\uparrow",h="⏐",d="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",h="‖",d="\\Downarrow"):Am.has(e)?(h="∣",v="vert",m=333):Tm.has(e)?(h="∥",v="doublevert",m=556):e==="["||e==="\\lbrack"?(o="⎡",h="⎢",d="⎣",w="Size4-Regular",v="lbrack",m=667):e==="]"||e==="\\rbrack"?(o="⎤",h="⎥",d="⎦",w="Size4-Regular",v="rbrack",m=667):e==="\\lfloor"||e==="⌊"?(h=o="⎢",d="⎣",w="Size4-Regular",v="lfloor",m=667):e==="\\lceil"||e==="⌈"?(o="⎡",h=d="⎢",w="Size4-Regular",v="lceil",m=667):e==="\\rfloor"||e==="⌋"?(h=o="⎥",d="⎦",w="Size4-Regular",v="rfloor",m=667):e==="\\rceil"||e==="⌉"?(o="⎤",h=d="⎥",w="Size4-Regular",v="rceil",m=667):e==="("||e==="\\lparen"?(o="⎛",h="⎜",d="⎝",w="Size4-Regular",v="lparen",m=875):e===")"||e==="\\rparen"?(o="⎞",h="⎟",d="⎠",w="Size4-Regular",v="rparen",m=875):e==="\\{"||e==="\\lbrace"?(o="⎧",c="⎨",d="⎩",h="⎪",w="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",c="⎬",d="⎭",h="⎪",w="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",d="⎩",h="⎪",w="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",d="⎭",h="⎪",w="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",d="⎭",h="⎪",w="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",d="⎩",h="⎪",w="Size4-Regular");var A=On(o,w,i),C=A.height+A.depth,M=On(h,w,i),k=M.height+M.depth,I=On(d,w,i),R=I.height+I.depth,Z=0,K=1;if(c!==null){var ee=On(c,w,i);Z=ee.height+ee.depth,K=2}var T=C+R+Z,B=Math.max(0,Math.ceil((r-T)/(K*k))),q=T+B*K*k,X=a.fontMetrics().axisHeight;n&&(X*=a.sizeMultiplier);var N=q/2-X,D=[];if(v.length>0){var W=q-C-R,_=Math.round(q*1e3),Q=Ep(v,Math.round(W*1e3)),Y=new $r(v,Q),te=U(m/1e3),be=U(_/1e3),Ne=new gr([Y],{width:te,height:be,viewBox:"0 0 "+m+" "+_}),he=vr([],[Ne],a);he.height=_/1e3,he.style.width=te,he.style.height=be,D.push({type:"elem",elem:he})}else{if(D.push(qa(d,w,i,a)),D.push(z0),c===null){var Ae=q-C-R+2*Ei;D.push(Fa(h,Ae,a))}else{var At=(q-C-R-Z)/2+2*Ei;D.push(Fa(h,At,a)),D.push(z0),D.push(qa(c,w,i,a)),D.push(z0),D.push(Fa(h,At,a))}D.push(z0),D.push(qa(o,w,i,a))}var Xe=a.havingBaseStyle(se.TEXT),Jt=fe({positionType:"bottom",positionData:N,children:D});return os($(["delimsizing","mult"],[Jt],Xe),se.TEXT,a,s)},Ha=80,Ua=.08,Wa=function(e,r,n,a,i){var s=Ap(e,a,n),o=new $r(e,s),c=new gr([o],{width:"400em",height:U(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return vr(["hide-tail"],[c],i)},Em=function(e,r){var n=r.havingBaseSizing(),a=Yc("\\surd",e*n.sizeMultiplier,Xc,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,c,h,d,v;return a.type==="small"?(d=1e3+1e3*s+Ha,e<1?i=1:e<1.4&&(i=.7),c=(1+s+Ua)/i,h=(1+s)/i,o=Wa("sqrtMain",c,d,s,r),o.style.minWidth="0.853em",v=.833/i):a.type==="large"?(d=(1e3+Ha)*qn[a.size],h=(qn[a.size]+s)/i,c=(qn[a.size]+s+Ua)/i,o=Wa("sqrtSize"+a.size,c,d,s,r),o.style.minWidth="1.02em",v=1/i):(c=e+s+Ua,h=e+s,d=Math.floor(1e3*e+s)+Ha,o=Wa("sqrtTall",c,d,s,r),o.style.minWidth="0.742em",v=1.056),o.height=h,o.style.height=U(c),{span:o,advanceWidth:v,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*i}},jc=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Cm=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Vc=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),qn=[0,1.2,1.8,2.4,3],Kc=function(e,r,n,a,i){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),jc.has(e)||Vc.has(e))return Wc(e,r,!1,n,a,i);if(Cm.has(e))return Gc(e,qn[r],!1,n,a,i);throw new F("Illegal delimiter: '"+e+"'")},Mm=[{type:"small",style:se.SCRIPTSCRIPT},{type:"small",style:se.SCRIPT},{type:"small",style:se.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Im=[{type:"small",style:se.SCRIPTSCRIPT},{type:"small",style:se.SCRIPT},{type:"small",style:se.TEXT},{type:"stack"}],Xc=[{type:"small",style:se.SCRIPTSCRIPT},{type:"small",style:se.SCRIPT},{type:"small",style:se.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],zm=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 r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},Yc=function(e,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;s<n.length;s++){var o=n[s];if(o.type==="stack")break;var c=On(e,zm(o),"math"),h=c.height+c.depth;if(o.type==="small"){var d=a.havingBaseStyle(o.style);h*=d.sizeMultiplier}if(h>r)return o}return n[n.length-1]},Ci=function(e,r,n,a,i,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;Vc.has(e)?o=Mm:jc.has(e)?o=Xc:o=Im;var c=Yc(e,r,o,a);return c.type==="small"?xm(e,c.style,n,a,i,s):c.type==="large"?Wc(e,c.size,n,a,i,s):Gc(e,r,n,a,i,s)},Ga=function(e,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,c=901,h=5/a.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),v=Math.max(d/500*c,2*d-h);return Ci(e,v,!0,a,i,s)},No={"\\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}},Rm=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","."]);function Po(t){return"isMiddle"in t}function na(t,e){var r=ta(t);if(r&&Rm.has(r.text))return r;throw r?new F("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new F("Invalid delimiter type '"+t.type+"'",t)}G({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:(t,e)=>{var r=na(jn(e[0]),t);return{type:"delimsizing",mode:t.parser.mode,size:No[t.funcName].size,mclass:No[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?$([t.mclass]):Kc(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(St(t.delim,t.mode));var r=new H("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=U(qn[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function _o(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}G({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new F("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:na(e[0],t).text,color:r}}});G({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=na(e[0],t),n=t.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=ue(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(t,e)=>{_o(t);for(var r=We(t.body,e,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s<r.length;s++){var o=r[s];Po(o)?i=!0:(n=Math.max(r[s].height,n),a=Math.max(r[s].depth,a))}n*=e.sizeMultiplier,a*=e.sizeMultiplier;var c;if(t.left==="."?c=Vn(e,["mopen"]):c=Ga(t.left,n,a,e,t.mode,["mopen"]),r.unshift(c),i)for(var h=1;h<r.length;h++){var d=r[h];if(Po(d)){var v=d.isMiddle;r[h]=Ga(v.delim,n,a,v.options,t.mode,[])}}var m;if(t.right===".")m=Vn(e,["mclose"]);else{var w=t.rightColor?e.withColor(t.rightColor):e;m=Ga(t.right,n,a,w,t.mode,["mclose"])}return r.push(m),$(["minner"],r,e)},mathmlBuilder:(t,e)=>{_o(t);var r=vt(t.body,e);if(t.left!=="."){var n=new H("mo",[St(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var a=new H("mo",[St(t.right,t.mode)]);a.setAttribute("fence","true"),t.rightColor&&a.setAttribute("mathcolor",t.rightColor),r.push(a)}return as(r)}});G({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=na(e[0],t);if(!t.parser.leftrightDepth)throw new F("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;return t.delim==="."?r=Vn(e,[]):(r=Kc(t.delim,1,e,t.mode,[]),r.isMiddle={delim:t.delim,options:e}),r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?St("|","text"):St(t.delim,t.mode),n=new H("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Dm=(t,e)=>{var r=fn(me(t.body,e),e),n=t.label.slice(1),a=e.sizeMultiplier,i,s,o=Yt(t.body);if(n==="sout")i=$(["katex-stretchy","katex-sout"]),i.height=e.fontMetrics().defaultRuleThickness/a,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var c=Ie({number:.6,unit:"pt"},e),h=Ie({number:.35,unit:"ex"},e),d=e.havingBaseSizing();a=a/d.sizeMultiplier;var v=r.height+r.depth+c+h;r.style.paddingLeft=U(v/2+c);var m=Math.floor(1e3*v*a),w=xp(m),A=new gr([new $r("phase",w)],{width:"400em",height:U(m/1e3),viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"});i=vr(["hide-tail"],[A],e),i.style.height=U(v),s=r.depth+c+h}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var C,M,k=0;/box/.test(n)?(k=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),C=e.fontMetrics().fboxsep+(n==="colorbox"?0:k),M=C):n==="angl"?(k=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),C=4*k,M=Math.max(0,.25-r.depth)):(C=o?.2:0,M=C),i=im(r,n,C,M,e),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=U(k)):n==="angl"&&k!==.049&&(i.style.borderTopWidth=U(k),i.style.borderRightWidth=U(k)),s=r.depth+M,t.backgroundColor&&(i.style.backgroundColor=t.backgroundColor,t.borderColor&&(i.style.borderColor=t.borderColor))}var I;if(t.backgroundColor)I=fe({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:r,shift:0}]});else{var R=/cancel|phase/.test(n)?["svg-align"]:[];I=fe({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:s,wrapperClasses:R}]})}return/cancel/.test(n)&&(I.height=r.height,I.depth=r.depth),/cancel/.test(n)&&!o?$(["mord","cancel-lap"],[I],e):$(["mord"],[I],e)},Nm=(t,e)=>{var r,n=new H(t.label.includes("colorbox")?"mpadded":"menclose",[we(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var a=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+U(a)+" solid "+t.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};G({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(t,e,r){var n=t.parser,a=t.funcName,i=ue(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:Dm,mathmlBuilder:Nm});G({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(t,e,r){var n=t.parser,a=t.funcName,i=ue(e[0],"color-token").color,s=ue(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}}});G({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});G({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}}});G({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName;r.mode==="math"&&ut({strict:r.settings.strict,errorCode:"mathVsSout",errorMsg:"LaTeX's \\sout works only in text mode",report:!0});var a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}}});G({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var Zc={};function _t(t){for(var e=t.type,r=t.names,n=t.props,a=t.handler,i=t.htmlBuilder,s=t.mathmlBuilder,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},c=0;c<r.length;++c)Zc[r[c]]=o;i&&(Wn[e]=i),s&&(Gn[e]=s)}var Qc={};function f(t,e){Qc[t]=e}class ct{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new ct(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}}class ft{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new ft(r,ct.range(this,e))}}function Lo(t){var e=[];t.consumeSpaces();var r=t.fetch().text;for(r==="\\relax"&&(t.consume(),t.consumeSpaces(),r=t.fetch().text);r==="\\hline"||r==="\\hdashline";)t.consume(),e.push(r==="\\hdashline"),t.consumeSpaces(),r=t.fetch().text;return e}var aa=t=>{var e=t.parser.settings;if(!e.displayMode)throw new F("{"+t.envName+"} can be used only in display mode.")},Pm=new Set(["gather","gather*"]);function ls(t){if(!t.includes("ed"))return!t.includes("*")}function yr(t,e,r){var n=e.hskipBeforeAndAfter,a=e.addJot,i=e.cols,s=e.arraystretch,o=e.colSeparationType,c=e.autoTag,h=e.singleRow,d=e.emptySingleRow,v=e.maxNumCols,m=e.leqno;if(t.gullet.beginGroup(),h||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var w=t.gullet.expandMacroAsText("\\arraystretch");if(w==null)s=1;else if(s=parseFloat(w),!s||s<0)throw new F("Invalid \\arraystretch: "+w)}t.gullet.beginGroup();var A=[],C=[A],M=[],k=[],I=c!=null?[]:void 0;function R(){c&&t.gullet.macros.set("\\@eqnsw","1",!0)}function Z(){I&&(t.gullet.macros.get("\\df@tag")?(I.push(t.subparse([new ft("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):I.push(!!c&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(R(),k.push(Lo(t));;){var K=t.parseExpression(!1,h?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup();var ee={type:"ordgroup",mode:t.mode,body:K};r&&(ee={type:"styling",mode:t.mode,style:r,resetFont:!0,body:[ee]}),A.push(ee);var T=t.fetch().text;if(T==="&"){if(v&&A.length===v){if(h||o)throw new F("Too many tab characters: &",t.nextToken);ut({strict:t.settings.strict,errorCode:"textEnv",errorMsg:"Too few columns specified in the {array} column argument.",report:!0})}t.consume()}else if(T==="\\end"){Z(),A.length===1&&ee.type==="styling"&&ee.body.length===1&&ee.body[0].type==="ordgroup"&&ee.body[0].body.length===0&&(C.length>1||!d)&&!Array.isArray(I?.[I.length-1])&&!(c&&I?.[I.length-1]===!0)&&C.pop(),k.length<C.length+1&&k.push([]);break}else if(T==="\\\\"){t.consume();var B=void 0;t.gullet.future().text!==" "&&(B=t.parseSizeGroup(!0)),M.push(B?B.value:null),Z(),k.push(Lo(t)),A=[],C.push(A),R()}else throw new F("Expected & or \\\\ or \\cr or \\end",t.nextToken)}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:a,arraystretch:s,body:C,cols:i,rowGaps:M,hskipBeforeAndAfter:n,hLinesBeforeRow:k,colSeparationType:o,tags:I,leqno:m}}function cs(t){return t.slice(0,1)==="d"?"display":"text"}var Lt=function(e,r){var n,a,i=e.body.length,s=e.hLinesBeforeRow,o=0,c=new Array(i),h=[],d=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),v=1/r.fontMetrics().ptPerEm,m=5*v;if(e.colSeparationType&&e.colSeparationType==="small"){var w=r.havingStyle(se.SCRIPT).sizeMultiplier;m=.2778*(w/r.sizeMultiplier)}var A=e.colSeparationType==="CD"?Ie({number:3,unit:"ex"},r):12*v,C=3*v,M=e.arraystretch*A,k=.7*M,I=.3*M,R=0;function Z(rr){for(var st=0;st<rr.length;++st)st>0&&(R+=.25),h.push({pos:R,isDashed:rr[st]})}for(Z(s[0]),n=0;n<e.body.length;++n){var K=e.body[n],ee=k,T=I;o<K.length&&(o=K.length);var B={cells:new Array(K.length),height:0,depth:0,pos:0};for(a=0;a<K.length;++a){var q=me(K[a],r);T<q.depth&&(T=q.depth),ee<q.height&&(ee=q.height),B.cells[a]=q}var X=e.rowGaps[n],N=0;X&&(N=Ie(X,r),N>0&&(N+=I,T<N&&(T=N),N=0)),e.addJot&&n<e.body.length-1&&(T+=C),B.height=ee,B.depth=T,R+=ee,B.pos=R,R+=T+N,c[n]=B,Z(s[n+1])}var D=R/2+r.fontMetrics().axisHeight,W=e.cols||[],_=[],Q,Y,te=[];if(e.tags&&e.tags.some(rr=>rr))for(n=0;n<i;++n){var be=c[n],Ne=be.pos-D,he=e.tags[n],Ae=void 0;he===!0?Ae=$(["eqn-num"],[],r):he===!1?Ae=$([],[],r):Ae=$([],We(he,r,!0),r),Ae.depth=be.depth,Ae.height=be.height,te.push({type:"elem",elem:Ae,shift:Ne})}for(a=0,Y=0;a<o||Y<W.length;++a,++Y){for(var At,Xe=W[Y],Jt=!0;((ht=Xe)==null?void 0:ht.type)==="separator";){var ht;if(Jt||(Q=$(["arraycolsep"],[]),Q.style.width=U(r.fontMetrics().doubleRuleSep),_.push(Q)),Xe.separator==="|"||Xe.separator===":"){var Wr=Xe.separator==="|"?"solid":"dashed",ye=$(["vertical-separator"],[],r);ye.style.height=U(R),ye.style.borderRightWidth=U(d),ye.style.borderRightStyle=Wr,ye.style.margin="0 "+U(-d/2);var a0=R-D;a0&&(ye.style.verticalAlign=U(-a0)),_.push(ye)}else throw new F("Invalid separator type: "+Xe.separator);Y++,Xe=W[Y],Jt=!1}if(!(a>=o)){var er=void 0;if(a>0||e.hskipBeforeAndAfter){var i0,s0;er=(i0=(s0=Xe)==null?void 0:s0.pregap)!=null?i0:m,er!==0&&(Q=$(["arraycolsep"],[]),Q.style.width=U(er),_.push(Q))}var o0=[];for(n=0;n<i;++n){var Gr=c[n],jr=Gr.cells[a];if(jr){var la=Gr.pos-D;jr.depth=Gr.depth,jr.height=Gr.height,o0.push({type:"elem",elem:jr,shift:la})}}var l0=fe({positionType:"individualShift",children:o0}),Te=$(["col-align-"+(((At=Xe)==null?void 0:At.align)||"c")],[l0]);if(_.push(Te),a<o-1||e.hskipBeforeAndAfter){var Vr,Se;er=(Vr=(Se=Xe)==null?void 0:Se.postgap)!=null?Vr:m,er!==0&&(Q=$(["arraycolsep"],[]),Q.style.width=U(er),_.push(Q))}}}var tr=$(["mtable"],_);if(h.length>0){for(var bt=mn("katex-hline",r,d),wr=mn("katex-hdashline",r,d),Kr=[{type:"elem",elem:tr,shift:0}];h.length>0;){var Tt=h.pop(),An=Tt.pos-D;Tt.isDashed?Kr.push({type:"elem",elem:wr,shift:An}):Kr.push({type:"elem",elem:bt,shift:An})}tr=fe({positionType:"individualShift",children:Kr})}if(te.length===0)return $(["mord"],[tr],r);var Tn=fe({positionType:"individualShift",children:te}),c0=$(["katex-tag"],[Tn],r);return Qt([tr,c0])},_m={c:"center ",l:"left ",r:"right "},Ot=function(e,r){for(var n=[],a=new H("mtd",[],["mtr-glue"]),i=new H("mtd",[],["mml-eqn-num"]),s=0;s<e.body.length;s++){for(var o=e.body[s],c=[],h=0;h<o.length;h++)c.push(new H("mtd",[we(o[h],r)]));e.tags&&e.tags[s]&&(c.unshift(a),c.push(a),e.leqno?c.unshift(i):c.push(i)),n.push(new H("mtr",c))}var d=new H("mtable",n),v=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);d.setAttribute("rowspacing",U(v));var m="",w="";if(e.cols&&e.cols.length>0){var A=e.cols,C="",M=!1,k=0,I=A.length;A[0].type==="separator"&&(m+="top ",k=1),A[A.length-1].type==="separator"&&(m+="bottom ",I-=1);for(var R=k;R<I;R++){var Z=A[R];Z.type==="align"?(w+=_m[Z.align],M&&(C+="none "),M=!0):Z.type==="separator"&&M&&(C+=Z.separator==="|"?"solid ":"dashed ",M=!1)}d.setAttribute("columnalign",w.trim()),/[sd]/.test(C)&&d.setAttribute("columnlines",C.trim())}if(e.colSeparationType==="align"){for(var K=e.cols||[],ee="",T=1;T<K.length;T++)ee+=T%2?"0em ":"1em ";d.setAttribute("columnspacing",ee.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?d.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?d.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?d.setAttribute("columnspacing","0.5em"):d.setAttribute("columnspacing","1em");var B="",q=e.hLinesBeforeRow;m+=q[0].length>0?"left ":"",m+=q[q.length-1].length>0?"right ":"";for(var X=1;X<q.length-1;X++)B+=q[X].length===0?"none ":q[X][0]?"dashed ":"solid ";return/[sd]/.test(B)&&d.setAttribute("rowlines",B.trim()),m!==""&&(d=new H("menclose",[d]),d.setAttribute("notation",m.trim())),e.arraystretch&&e.arraystretch<1&&(d=new H("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},Jc=function(e,r){e.envName.includes("ed")||aa(e);var n=[],a=e.envName==="split",i=yr(e.parser,{cols:n,addJot:!0,autoTag:a?void 0:ls(e.envName),emptySingleRow:!0,colSeparationType:e.envName.includes("at")?"alignat":"align",maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,o=0,c={type:"ordgroup",mode:e.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){var h="Number of columns should be a positive integer",d=ss(r[0],h);if(!/^[0-9]+$/.test(d)||Number(d)<1)throw new F(h,r[0]);s=Number(d),o=s*2}var v=!o;i.body.forEach(function(C){for(var M=1;M<C.length;M+=2){var k=ue(C[M],"styling"),I=ue(k.body[0],"ordgroup");I.body.unshift(c)}if(v)o<C.length&&(o=C.length);else{var R=C.length/2;if(s<R)throw new F("Too many math in a row: "+("expected "+s+", but got "+R),C[0])}});for(var m=0;m<o;++m){var w="r",A=0;m%2===1?w="l":m>0&&v&&(A=1),n[m]={type:"align",align:w,pregap:A,postgap:0}}return i.colSeparationType=v?"align":"alignat",i};_t({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=ta(e[0]),n=r?[e[0]]:ue(e[0],"ordgroup").body,a=n.map(function(s){var o=ea(s),c=o.text;if("lcr".includes(c))return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new F("Unknown column alignment: "+c,s)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return yr(t.parser,i,cs(t.envName))},htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var a=t.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,!"lcr".includes(r))throw new F("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=yr(t.parser,n,cs(t.envName)),s=Math.max(0,...i.body.map(o=>o.length));return i.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[i],left:e[0],right:e[1],rightColor:void 0}:i},htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=yr(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=ta(e[0]),n=r?[e[0]]:ue(e[0],"ordgroup").body,a=n.map(function(o){var c=ea(o),h=c.text;if("lc".includes(h))return{type:"align",align:h};throw new F("Unknown column alignment: "+h,o)});if(a.length>1)throw new F("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},s=yr(t.parser,i,"script");if(s.body.length>0&&s.body[0].length>1)throw new F("{subarray} can contain only one column");return s},htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=yr(t.parser,e,cs(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Jc,htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){Pm.has(t.envName)&&aa(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ls(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return yr(t.parser,e,"display")},htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Jc,htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){aa(t);var e={autoTag:ls(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return yr(t.parser,e,"display")},htmlBuilder:Lt,mathmlBuilder:Ot});_t({type:"array",names:["CD"],props:{numArgs:0},handler(t){return aa(t),bm(t.parser)},htmlBuilder:Lt,mathmlBuilder:Ot});f("\\nonumber","\\gdef\\@eqnsw{0}");f("\\notag","\\nonumber");G({type:"text",names:["\\hline","\\hdashline"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(t,e){throw new F(t.funcName+" valid only within array environment")}});var Oo=Zc;G({type:"environment",names:["\\begin","\\end"],numArgs:1,argTypes:["text"],handler(t,e){var r=t.parser,n=t.funcName,a=e[0];if(a.type!=="ordgroup")throw new F("Invalid environment name",a);var i=ss(a,"Environment name should contain only text characters and spaces",!0);if(n==="\\begin"){if(!Object.prototype.hasOwnProperty.call(Oo,i))throw new F("No such environment: "+i,a);var s=Oo[i],o=r.parseArguments("\\begin{"+i+"}",s),c=o.args,h=o.optArgs,d={mode:r.mode,envName:i,parser:r},v=s.handler(d,c,h);r.expect("\\end",!1);var m=r.nextToken,w=ue(r.parseFunction(),"environment");if(w.name!==i)throw new F("Mismatch: \\begin{"+i+"} matched by \\end{"+w.name+"}",m);return v}return{type:"environment",mode:r.mode,name:i,nameGroup:a}}});var Lm=(t,e)=>{var r=t.font,n=e.withFont(r);return me(t.body,n)},Om=(t,e)=>{var r=t.font,n=e.withFont(r);return we(t.body,n)},$o={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};G({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],numArgs:1,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=jn(e[0]),i=n in $o?$o[n]:n;return{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:Lm,mathmlBuilder:Om});G({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"mclass",mode:r.mode,mclass:ra(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Yt(n)}}});G({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=t.breakOnTokenText,i=r.mode,s=r.parseExpression(!0,a);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}}});var $m=(t,e)=>{var r=e.style,n=r.fracNum(),a=r.fracDen(),i;i=e.havingStyle(n);var s=me(t.numer,i,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,c=3.5/e.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<c?c:s.depth}i=e.havingStyle(a);var h=me(t.denom,i,e),d,v,m;t.hasBarLine?(t.barSize?(v=Ie(t.barSize,e),d=mn("frac-line",e,v)):d=mn("frac-line",e),v=d.height,m=d.height):(d=null,v=0,m=e.fontMetrics().defaultRuleThickness);var w,A,C;r.size===se.DISPLAY.size?(w=e.fontMetrics().num1,v>0?A=3*m:A=7*m,C=e.fontMetrics().denom1):(v>0?(w=e.fontMetrics().num2,A=m):(w=e.fontMetrics().num3,A=3*m),C=e.fontMetrics().denom2);var M;if(d){var I=e.fontMetrics().axisHeight;w-s.depth-(I+.5*v)<A&&(w+=A-(w-s.depth-(I+.5*v))),I-.5*v-(h.height-C)<A&&(C+=A-(I-.5*v-(h.height-C)));var R=-(I-.5*v);M=fe({positionType:"individualShift",children:[{type:"elem",elem:h,shift:C},{type:"elem",elem:d,shift:R},{type:"elem",elem:s,shift:-w}]})}else{var k=w-s.depth-(h.height-C);k<A&&(w+=.5*(A-k),C+=.5*(A-k)),M=fe({positionType:"individualShift",children:[{type:"elem",elem:h,shift:C},{type:"elem",elem:s,shift:-w}]})}i=e.havingStyle(r),M.height*=i.sizeMultiplier/e.sizeMultiplier,M.depth*=i.sizeMultiplier/e.sizeMultiplier;var Z;r.size===se.DISPLAY.size?Z=e.fontMetrics().delim1:r.size===se.SCRIPTSCRIPT.size?Z=e.havingStyle(se.SCRIPT).fontMetrics().delim2:Z=e.fontMetrics().delim2;var K,ee;return t.leftDelim==null?K=Vn(e,["mopen"]):K=Ci(t.leftDelim,Z,!0,e.havingStyle(r),t.mode,["mopen"]),t.continued?ee=$([]):t.rightDelim==null?ee=Vn(e,["mclose"]):ee=Ci(t.rightDelim,Z,!0,e.havingStyle(r),t.mode,["mclose"]),$(["mord"].concat(i.sizingClasses(e)),[K,$(["mfrac"],[M]),ee],e)},Bm=(t,e)=>{var r=new H("mfrac",[we(t.numer,e),we(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=Ie(t.barSize,e);r.setAttribute("linethickness",U(n))}if(t.leftDelim!=null||t.rightDelim!=null){var a=[];if(t.leftDelim!=null){var i=new H("mo",[new $e(t.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),t.rightDelim!=null){var s=new H("mo",[new $e(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return as(a)}return r},eu=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};G({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0],i=e[1],s,o=null,c=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",c=")";break;case"\\\\bracefrac":s=!1,o="\\{",c="\\}";break;case"\\\\brackfrac":s=!1,o="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}var h=n==="\\cfrac",d=null;return h||n.startsWith("\\d")?d="display":n.startsWith("\\t")&&(d="text"),eu({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:h,hasBarLine:s,leftDelim:o,rightDelim:c,barSize:null},d)},htmlBuilder:$m,mathmlBuilder:Bm});G({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(t){var e=t.parser,r=t.funcName,n=t.token,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:a,token:n}}});var Bo=["display","text","script","scriptscript"],qo=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};G({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(t,e){var r=t.parser,n=e[4],a=e[5],i=jn(e[0]),s=i.type==="atom"&&i.family==="open"?qo(i.text):null,o=jn(e[1]),c=o.type==="atom"&&o.family==="close"?qo(o.text):null,h=ue(e[2],"size"),d,v=null;h.isBlank?d=!0:(v=h.value,d=v.number>0);var m=null,w=e[3];if(w.type==="ordgroup"){if(w.body.length>0){var A=ue(w.body[0],"textord");m=Bo[Number(A.text)]}}else w=ue(w,"textord"),m=Bo[Number(w.text)];return eu({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:d,barSize:v,leftDelim:s,rightDelim:c},m)}});G({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(t,e){var r=t.parser;t.funcName;var n=t.token;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:ue(e[0],"size").value,token:n}}});G({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:(t,e)=>{var r=t.parser;t.funcName;var n=e[0],a=ue(e[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var i=e[2],s=a.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var tu=(t,e)=>{var r=e.style,n,a;t.type==="supsub"?(n=t.sup?me(t.sup,e.havingStyle(r.sup()),e):me(t.sub,e.havingStyle(r.sub()),e),a=ue(t.base,"horizBrace")):a=ue(t,"horizBrace");var i=me(a.base,e.havingBaseStyle(se.DISPLAY)),s=J0(a,e),o;if(a.isOver?o=fe({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}):o=fe({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:i}]}),n){var c=$(["minner",a.isOver?"mover":"munder"],[o],e);a.isOver?o=fe({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=fe({positionType:"bottom",positionData:c.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:c}]})}return $(["minner",a.isOver?"mover":"munder"],[o],e)},qm=(t,e)=>{var r=Q0(t.label);return new H(t.isOver?"mover":"munder",[we(t.base,e),r])};G({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:e[0]}},htmlBuilder:tu,mathmlBuilder:qm});G({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[1],a=ue(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:Oe(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=We(t.body,e,!1);return Fp(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=br(t.body,e);return r instanceof H||(r=new H("mrow",[r])),r.setAttribute("href",t.href),r}});G({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=ue(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<n.length;i++){var s=n[i];s==="~"&&(s="\\textasciitilde"),a.push({type:"textord",mode:"text",text:s})}var o={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:Oe(o)}}});G({type:"hbox",names:["\\hbox"],numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0,handler(t,e){var r=t.parser;return{type:"hbox",mode:r.mode,body:Oe(e[0])}},htmlBuilder(t,e){var r=We(t.body,e.withFont(""),!1);return Qt(r)},mathmlBuilder(t,e){return new H("mrow",vt(t.body,e.withFont("")))}});G({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],numArgs:2,argTypes:["raw","original"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName;t.token;var a=ue(e[0],"raw").string,i=e[1];r.settings.strict&&ut({strict:r.settings.strict,errorCode:"htmlExtension",errorMsg:"HTML extension is disabled on strict mode",report:!0});var s,o={};switch(n){case"\\htmlClass":o.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":o.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":o.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var c="{,}",h=[],d="",v=0;v<a.length;v++)a.startsWith(c,v)?(d+=",",v+=c.length-1):a[v]===","?(h.push(d),d=""):d+=a[v];h.push(d);for(var m=0;m<h.length;m++){var w=h[m],A=w.indexOf("=");if(A<0)throw new F("\\htmlData key/value '"+w+"' missing equals sign");var C=w.slice(0,A),M=w.slice(A+1);o["data-"+C.trim()]=M}s={command:"\\htmlData",attributes:o};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(s)?{type:"html",mode:r.mode,attributes:o,body:Oe(i)}:r.formatUnsupportedCmd(n)},htmlBuilder:(t,e)=>{var r=We(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var a=$(n,r,e);for(var i of Object.entries(t.attributes)){var s=i[0],o=i[1];s!=="class"&&a.setAttribute(s,o)}return a},mathmlBuilder:(t,e)=>br(t.body,e)});G({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(t,e)=>{var r=t.parser;return{type:"htmlmathml",mode:r.mode,html:Oe(e[0]),mathml:Oe(e[1])}},htmlBuilder:(t,e)=>{var r=We(t.html,e,!1);return Qt(r)},mathmlBuilder:(t,e)=>br(t.mathml,e)});var ja=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new F("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!Ec(n))throw new F("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};G({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:(t,e,r)=>{var n=t.parser,a={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var c=ue(r[0],"raw").string,h=c.split(","),d=0;d<h.length;d++){var v=h[d].split("=");if(v.length===2){var m=v[1].trim();switch(v[0].trim()){case"alt":o=m;break;case"width":a=ja(m);break;case"height":i=ja(m);break;case"totalheight":s=ja(m);break;default:throw new F("Invalid key: '"+v[0]+"' in \\includegraphics.")}}}var w=ue(e[0],"url").url;return o===""&&(o=w,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:n.mode,alt:o,width:a,height:i,totalheight:s,src:w}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(t,e)=>{var r=Ie(t.height,e),n=0;t.totalheight.number>0&&(n=Ie(t.totalheight,e)-r);var a=0;t.width.number>0&&(a=Ie(t.width,e));var i={height:U(r+n)};a>0&&(i.width=U(a)),n>0&&(i.verticalAlign=U(-n));var s=new zp(t.src,t.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new H("mglyph",[]);r.setAttribute("alt",t.alt);var n=Ie(t.height,e),a=0;if(t.totalheight.number>0&&(a=Ie(t.totalheight,e)-n,r.setAttribute("valign",U(-a))),r.setAttribute("height",U(n+a)),t.width.number>0){var i=Ie(t.width,e);r.setAttribute("width",U(i))}return r.setAttribute("src",t.src),r}});G({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName,a=ue(e[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||ut({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units"),report:!0}),r.mode!=="math"&&ut({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" works only in math mode",report:!0})):s&&ut({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" doesn't support mu units",report:!0})}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder(t,e){return Dc(t.dimension,e)},mathmlBuilder(t,e){var r=Ie(t.dimension,e);return new $c(r)}});G({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=$([],[me(t.body,e)]),r=$(["katex-inner"],[r],e)):r=$(["katex-inner"],[me(t.body,e)]);var n=$(["katex-fix"],[]),a=$([t.alignment],[r,n],e),i=$(["katex-strut"]);return i.style.height=U(a.height+a.depth),a.depth&&(i.style.verticalAlign=U(-a.depth)),a.children.unshift(i),a=$(["katex-thinbox"],[a],e),$(["mord","katex-vbox"],[a],e)},mathmlBuilder:(t,e)=>{var r=new H("mpadded",[we(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});G({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){var r=t.funcName,n=t.parser,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:s}}});G({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){throw new F("Mismatched "+t.funcName)}});var Fo=(t,e)=>{switch(e.style.size){case se.DISPLAY.size:return t.display;case se.TEXT.size:return t.text;case se.SCRIPT.size:return t.script;case se.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};G({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:(t,e)=>{var r=t.parser;return{type:"mathchoice",mode:r.mode,display:Oe(e[0]),text:Oe(e[1]),script:Oe(e[2]),scriptscript:Oe(e[3])}},htmlBuilder:(t,e)=>{var r=Fo(t,e),n=We(r,e,!1);return Qt(n)},mathmlBuilder:(t,e)=>{var r=Fo(t,e);return br(r,e)}});var ru=(t,e,r,n,a,i,s)=>{t=$([],[t]);var o=r&&Yt(r),c,h;if(e){var d=me(e,n.havingStyle(a.sup()),n);h={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var v=me(r,n.havingStyle(a.sub()),n);c={elem:v,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-v.height)}}var m;if(h&&c){var w=n.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+t.depth+s;m=fe({positionType:"bottom",positionData:w,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:U(-i)},{type:"kern",size:c.kern},{type:"elem",elem:t},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:U(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(c){var A=t.height-s;m=fe({positionType:"top",positionData:A,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:U(-i)},{type:"kern",size:c.kern},{type:"elem",elem:t}]})}else if(h){var C=t.depth+s;m=fe({positionType:"bottom",positionData:C,children:[{type:"elem",elem:t},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:U(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var M=[m];if(c&&i!==0&&!o){var k=$(["mspace"],[],n);k.style.marginRight=U(i),M.unshift(k)}return $(["mop","op-limits"],M,n)},nu=new Set(["\\smallint"]),au=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=ue(t.base,"op"),a=!0):i=ue(t,"op");var s=e.style,o=!1;s.size===se.DISPLAY.size&&i.symbol&&!nu.has(i.name)&&(o=!0);var c,h;if(i.symbol){var d=o?"Size2-Regular":"Size1-Regular",v="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(v=i.name.slice(1),i.name=v==="oiint"?"\\iint":"\\iiint"),c=nt(i.name,d,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),h=c.italic,v.length>0){var m=Pc(v+"Size"+(o?"2":"1"),e);c=fe({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:m,shift:o?.08:0}]}),i.name="\\"+v,c.classes.unshift("mop"),c.italic=h}}else if(i.body){var w=We(i.body,e,!0);w.length===1&&w[0]instanceof xt?(c=w[0],c.classes[0]="mop"):c=$(["mop"],w,e)}else{for(var A=[],C=1;C<i.name.length;C++)A.push(rs(i.name[C],i.mode,e));c=$(["mop"],A,e)}var M=0,k=0;if((c instanceof xt||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift){var I;M=(c.height-c.depth)/2-e.fontMetrics().axisHeight,k=(I=c.italic)!=null?I:0}return a?ru(c,r,n,e,s,k,M):(M&&(c.style.position="relative",c.style.top=U(M)),c)},Fm=(t,e)=>{var r;if(t.symbol)r=new H("mo",[St(t.name,t.mode)]),nu.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new H("mo",vt(t.body,e));else{r=new H("mi",[new $e(t.name.slice(1))]);var n=new H("mo",[St("⁡","text")]);t.parentIsSupSub?r=new H("mrow",[r,n]):r=Oc([r,n])}return r},Hm={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};G({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],numArgs:0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=n;return a.length===1&&(a=Hm[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:au,mathmlBuilder:Fm});G({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Oe(n)}}});var Um={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};G({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"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}}});G({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}}});G({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],numArgs:0,allowedInArgument:!0,handler(t){var e=t.parser,r=t.funcName,n=r;return n.length===1&&(n=Um[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var iu=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=ue(t.base,"operatorname"),a=!0):i=ue(t,"operatorname");var s;if(i.body.length>0){for(var o=i.body.map(v=>{var m="text"in v?v.text:void 0;return typeof m=="string"?{type:"textord",mode:v.mode,text:m}:v}),c=We(o,e.withFont("mathrm"),!0),h=0;h<c.length;h++){var d=c[h];d instanceof xt&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=$(["mop"],c,e)}else s=$(["mop"],[],e);return a?ru(s,r,n,e,e.style,0,0):s},Wm=(t,e)=>{for(var r=vt(t.body,e.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(!(i instanceof $c))if(i instanceof H)switch(i.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var s=i.children[0];i.children.length===1&&s instanceof $e?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=r.map(d=>d.toText()).join("");r=[new $e(o)]}var c=new H("mi",r);c.setAttribute("mathvariant","normal");var h=new H("mo",[St("⁡","text")]);return t.parentIsSupSub?new H("mrow",[c,h]):Oc([c,h])};G({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"operatorname",mode:r.mode,body:Oe(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:iu,mathmlBuilder:Wm});f("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Hr({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?Qt(We(t.body,e,!1)):$(["mord"],We(t.body,e,!0),e)},mathmlBuilder(t,e){return br(t.body,e,!0)}});G({type:"overline",names:["\\overline"],numArgs:1,handler(t,e){var r=t.parser,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=me(t.body,e.havingCrampedStyle()),n=mn("overline-line",e),a=e.fontMetrics().defaultRuleThickness,i=fe({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return $(["mord","katex-overline"],[i],e)},mathmlBuilder(t,e){var r=new H("mo",[new $e("‾")]);r.setAttribute("stretchy","true");var n=new H("mover",[we(t.body,e),r]);return n.setAttribute("accent","true"),n}});G({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"phantom",mode:r.mode,body:Oe(n)}},htmlBuilder:(t,e)=>{var r=We(t.body,e.withPhantom(),!1);return Qt(r)},mathmlBuilder:(t,e)=>{var r=vt(t.body,e);return new H("mphantom",r)}});f("\\hphantom","\\smash{\\phantom{#1}}");G({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=$(["katex-inner"],[me(t.body,e.withPhantom())]),n=$(["katex-fix"],[]);return $(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=vt(Oe(t.body),e),n=new H("mphantom",r),a=new H("mpadded",[n]);return a.setAttribute("width","0px"),a}});G({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(t,e){var r=t.parser,n=ue(e[0],"size").value,a=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(t,e){var r=me(t.body,e),n=Ie(t.dy,e);return fe({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new H("mpadded",[we(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});var su=(t,e)=>{var r=t.parser;return{type:"reflectbox",mode:r.mode,body:e[0]}};G({type:"reflectbox",names:["\\reflectbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler:su,htmlBuilder(t,e){return $(["mord","reflectbox"],[me(t.body,e)],e)},mathmlBuilder(t,e){return we(t.body,e)}});G({type:"reflectbox",names:["\\mathreflectbox"],numArgs:1,argTypes:["math"],handler:su});G({type:"internal",names:["\\relax"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(t){var e=t.parser;return{type:"internal",mode:e.mode}}});G({type:"rule",names:["\\rule"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"],handler(t,e,r){var n=t.parser,a=r[0],i=ue(e[0],"size"),s=ue(e[1],"size");return{type:"rule",mode:n.mode,shift:a&&ue(a,"size").value,width:i.value,height:s.value}},htmlBuilder(t,e){var r=$(["mord","katex-rule"],[],e),n=Ie(t.width,e),a=Ie(t.height,e),i=t.shift?Ie(t.shift,e):0;return r.style.borderRightWidth=U(n),r.style.borderTopWidth=U(a),r.style.bottom=U(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=Ie(t.width,e),n=Ie(t.height,e),a=t.shift?Ie(t.shift,e):0,i=e.color&&e.getColor()||"black",s=new H("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",U(r)),s.setAttribute("height",U(n));var o=new H("mpadded",[s]);return a>=0?o.setAttribute("height",U(a)):(o.setAttribute("height",U(a)),o.setAttribute("depth",U(-a))),o.setAttribute("voffset",U(a)),o}});function ou(t,e,r){for(var n=We(t,e,!1),a=e.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var s=n[i].classes.indexOf("katex-sizing");s<0?Array.prototype.push.apply(n[i].classes,e.sizingClasses(r)):n[i].classes[s+1]==="reset-size"+e.size&&(n[i].classes[s+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return Qt(n)}var Ho=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Gm=(t,e)=>{var r=e.havingSize(t.size);return ou(t.body,r,e)};G({type:"sizing",names:Ho,numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.breakOnTokenText,n=t.funcName,a=t.parser,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Ho.indexOf(n)+1,body:i}},htmlBuilder:Gm,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=vt(t.body,r),a=new H("mstyle",n);return a.setAttribute("mathsize",U(r.sizeMultiplier)),a}});G({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(t,e,r)=>{var n=t.parser,a=!1,i=!1,s=r[0]&&ue(r[0],"ordgroup");if(s)for(var o,c=0;c<s.body.length;++c){var h=s.body[c];if(o=ea(h).text,o==="t")a=!0;else if(o==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var d=e[0];return{type:"smash",mode:n.mode,body:d,smashHeight:a,smashDepth:i}},htmlBuilder:(t,e)=>{var r=$([],[me(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return $(["mord","katex-smash"],[r],e);if(r.children)for(var n=0;n<r.children.length;n++)t.smashHeight&&(r.children[n].height=0),t.smashDepth&&(r.children[n].depth=0);var a=fe({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return $(["mord"],[a],e)},mathmlBuilder:(t,e)=>{var r=new H("mpadded",[we(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});G({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var n=t.parser,a=r[0],i=e[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(t,e){var r=me(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=fn(r,e);var n=e.fontMetrics(),a=n.defaultRuleThickness,i=a;e.style.id<se.TEXT.id&&(i=e.fontMetrics().xHeight);var s=a+i/4,o=r.height+r.depth+s+a,c=Em(o,e),h=c.span,d=c.ruleWidth,v=c.advanceWidth,m=h.height-d;m>r.height+r.depth+s&&(s=(s+m-r.height-r.depth)/2);var w=h.height-r.height-s-d;r.style.paddingLeft=U(v);var A=fe({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+w)},{type:"elem",elem:h},{type:"kern",size:d}]});if(t.index){var C=e.havingStyle(se.SCRIPTSCRIPT),M=me(t.index,C,e),k=.6*(A.height-A.depth),I=fe({positionType:"shift",positionData:-k,children:[{type:"elem",elem:M}]}),R=$(["katex-root"],[I]);return $(["mord","sqrt"],[R,A],e)}else return $(["mord","sqrt"],[A],e)},mathmlBuilder(t,e){var r=t.body,n=t.index;return n?new H("mroot",[we(r,e),we(n,e)]):new H("msqrt",[we(r,e)])}});var Mi={display:se.DISPLAY,text:se.TEXT,script:se.SCRIPT,scriptscript:se.SCRIPTSCRIPT};function jm(t){return t in Mi}G({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(t,e){var r=t.breakOnTokenText,n=t.funcName,a=t.parser,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);if(!jm(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(t,e){var r=Mi[t.style],n=e.havingStyle(r);return t.resetFont&&(n=n.withFont("")),ou(t.body,n,e)},mathmlBuilder(t,e){var r=Mi[t.style],n=e.havingStyle(r);t.resetFont&&(n=n.withFont(""));var a=vt(t.body,n),i=new H("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var Vm=function(e,r){var n=e.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===se.DISPLAY.size||n.alwaysHandleSupSub);return a?au:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===se.DISPLAY.size||n.limits);return i?iu:null}else{if(n.type==="accent")return Yt(n.base)?qc:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?tu:null}else return null}else return null};Hr({type:"supsub",htmlBuilder(t,e){var r=Vm(t,e);if(r)return r(t,e);var n=t.base,a=t.sup,i=t.sub,s=me(n,e),o,c,h=e.fontMetrics(),d=0,v=0,m=n&&Yt(n);if(a){var w=e.havingStyle(e.style.sup());o=me(a,w,e),m||(d=s.height-w.fontMetrics().supDrop*w.sizeMultiplier/e.sizeMultiplier)}if(i){var A=e.havingStyle(e.style.sub());c=me(i,A,e),m||(v=s.depth+A.fontMetrics().subDrop*A.sizeMultiplier/e.sizeMultiplier)}var C;e.style===se.DISPLAY?C=h.sup1:e.style.cramped?C=h.sup3:C=h.sup2;var M=e.sizeMultiplier,k=U(.5/h.ptPerEm/M),I=null;if(c){var R=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");if(s instanceof xt||R){var Z;I=U(-((Z=s.italic)!=null?Z:0))}}var K;if(o&&c){d=Math.max(d,C,o.depth+.25*h.xHeight),v=Math.max(v,h.sub2);var ee=h.defaultRuleThickness,T=4*ee;if(d-o.depth-(c.height-v)<T){v=T-(d-o.depth)+c.height;var B=.8*h.xHeight-(d-o.depth);B>0&&(d+=B,v-=B)}var q=[{type:"elem",elem:c,shift:v,marginRight:k,marginLeft:I},{type:"elem",elem:o,shift:-d,marginRight:k}];K=fe({positionType:"individualShift",children:q})}else if(c){v=Math.max(v,h.sub1,c.height-.8*h.xHeight);var X=[{type:"elem",elem:c,marginLeft:I,marginRight:k}];K=fe({positionType:"shift",positionData:v,children:X})}else if(o)d=Math.max(d,C,o.depth+.25*h.xHeight),K=fe({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:k}]});else throw new Error("supsub must have either sup or sub.");var N=Ai(s,"right")||"mord";return $([N],[s,$(["msupsub"],[K])],e)},mathmlBuilder(t,e){var r=!1,n,a;t.base&&t.base.type==="horizBrace"&&(a=!!t.sup,a===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var i=[we(t.base,e)];t.sub&&i.push(we(t.sub,e)),t.sup&&i.push(we(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var h=t.base;h&&h.type==="op"&&h.limits&&e.style===se.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(e.style===se.DISPLAY||h.limits)?s="munderover":s="msubsup"}else{var c=t.base;c&&c.type==="op"&&c.limits&&(e.style===se.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||e.style===se.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===se.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===se.DISPLAY)?s="mover":s="msup"}return new H(s,i)}});Hr({type:"atom",htmlBuilder(t,e){return rs(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new H("mo",[St(t.text,t.mode)]);if(t.family==="bin"){var n=is(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var lu={mi:"italic",mn:"normal",mtext:"normal"};Hr({type:"mathord",htmlBuilder(t,e){return Z0(t,e)},mathmlBuilder(t,e){var r=new H("mi",[St(t.text,t.mode,e)]),n=is(t,e)||"italic";return n!==lu[r.type]&&r.setAttribute("mathvariant",n),r}});Hr({type:"textord",htmlBuilder(t,e){return Z0(t,e)},mathmlBuilder(t,e){var r=St(t.text,t.mode,e),n=is(t,e)||"normal",a;return t.mode==="text"?a=new H("mtext",[r]):/[0-9]/.test(t.text)?a=new H("mn",[r]):t.text==="\\prime"?a=new H("mo",[r]):a=new H("mi",[r]),n!==lu[a.type]&&a.setAttribute("mathvariant",n),a}});var Uo=new Map([["\\nobreak","nobreak"],["\\allowbreak","allowbreak"]]),Wo=new Map([[" ",{}],["\\ ",{}],["~",{className:"nobreak"}],["\\space",{}],["\\nobreakspace",{className:"nobreak"}]]);Hr({type:"spacing",htmlBuilder(t,e){var r=Wo.get(t.text),n=Uo.get(t.text);if(r){var a=r.className||"";if(t.mode==="text"){var i=Z0(t,e);return i.classes.push(a),i}else return $(["mspace",a],[rs(t.text,t.mode,e)],e)}else{if(n)return $(["mspace",n],[],e);throw new F('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(Wo.has(t.text))r=new H("mtext",[new $e(" ")]);else{if(Uo.has(t.text))return new H("mspace");throw new F('Unknown type of space "'+t.text+'"')}return r}});var Go=()=>{var t=new H("mtd",[]);return t.setAttribute("width","50%"),t};Hr({type:"tag",mathmlBuilder(t,e){var r=new H("mtable",[new H("mtr",[Go(),new H("mtd",[br(t.body,e)]),Go(),new H("mtd",[br(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var jo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Vo={"\\textbf":"textbf","\\textmd":"textmd"},Km={"\\textit":"textit","\\textup":"textup"},Ko=(t,e)=>{var r=t.font;if(r){if(jo[r])return e.withTextFontFamily(jo[r]);if(Vo[r])return e.withTextFontWeight(Vo[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(Km[r])};G({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"text",mode:r.mode,body:Oe(a),font:n}},htmlBuilder(t,e){var r=Ko(t,e),n=We(t.body,r,!0);return $(["mord","text"],n,r)},mathmlBuilder(t,e){var r=Ko(t,e);return br(t.body,r)}});G({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=me(t.body,e),n=mn("underline-line",e),a=e.fontMetrics().defaultRuleThickness,i=fe({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]});return $(["mord","katex-underline"],[i],e)},mathmlBuilder(t,e){var r=new H("mo",[new $e("‾")]);r.setAttribute("stretchy","true");var n=new H("munder",[we(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});G({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=me(t.body,e),n=e.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return fe({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new H("mpadded",[we(t.body,e)],["vcenter"]);return new H("mrow",[r])}});G({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(t,e,r){throw new F("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=Xo(t),n=[],a=e.havingStyle(e.style.text()),i=0;i<r.length;i++){var s=r[i];s==="~"&&(s="\\textasciitilde"),n.push(nt(s,"Typewriter-Regular",t.mode,a,["mord","texttt"]))}return $(["mord","text"].concat(a.sizingClasses(e)),Rc(n),a)},mathmlBuilder(t,e){var r=new $e(Xo(t)),n=new H("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Xo=t=>t.body.replace(/ /g,t.star?"␣":" "),hr=_c,cu=`[ \r
341
+ ]`,Xm="\\\\[a-zA-Z@]+",Ym="\\\\[^\uD800-\uDFFF]",Zm="("+Xm+")"+cu+"*",Qm=`\\\\(
342
342
  |[ \r ]+
343
- ?)[ \r ]*`,Ii="[̀-ͯ]",Qm=new RegExp(Ii+"+$"),Jm="("+cu+"+)|"+(Zm+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Ii+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ii+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Ym)+("|"+Xm+")");class Yo{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(Jm,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new ft("EOF",new ct(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new F("Unexpected character: '"+e[r]+"'",new ft(e[r],new ct(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=e.indexOf(`
344
- `,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,ut({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 ft(a,new ct(this,r,this.tokenRegex.lastIndex))}}class e4{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new F("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r of Object.keys(e))e[r]===void 0?delete this.current[r]:this.current[r]=e[r]}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){return Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:Object.prototype.hasOwnProperty.call(this.builtins,e)?this.builtins[e]:void 0}set(e,r,n){if(n===void 0&&(n=!1),n){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=r)}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)}r==null?delete this.current[e]:this.current[e]=r}}var t4=Qc;f("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});f("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});f("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});f("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});f("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});f("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");f("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var Zo={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};f("\\char",function(t){var e=t.popToken(),r,n=0;if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new F("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=Zo[e.text],n==null||n>=r)throw new F("Invalid base-"+r+" digit "+e.text);for(var a;(a=Zo[t.future().text])!=null&&a<r;)n*=r,n+=a,t.popToken()}return"\\@char{"+n+"}"});var us=(t,e,r,n)=>{var a=t.consumeArg().tokens;if(a.length!==1)throw new F("\\newcommand's first argument must be a macro name");var i=a[0].text,s=t.isDefined(i);if(s&&!e)throw new F("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new F("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(a=t.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var c="",h=t.expandNextToken();h.text!=="]"&&h.text!=="EOF";)c+=h.text,h=t.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new F("Invalid number of arguments: "+c);o=parseInt(c),a=t.consumeArg().tokens}return s&&n||t.macros.set(i,{tokens:a,numArgs:o}),""};f("\\newcommand",t=>us(t,!1,!0,!1));f("\\renewcommand",t=>us(t,!0,!1,!1));f("\\providecommand",t=>us(t,!0,!0,!0));f("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});f("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});f("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),ur[r],Ee.math[r],Ee.text[r]),""});f("\\bgroup","{");f("\\egroup","}");f("~","\\nobreakspace");f("\\lq","`");f("\\rq","'");f("\\aa","\\r a");f("\\AA","\\r A");f("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");f("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");f("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");f("ℬ","\\mathscr{B}");f("ℰ","\\mathscr{E}");f("ℱ","\\mathscr{F}");f("ℋ","\\mathscr{H}");f("ℐ","\\mathscr{I}");f("ℒ","\\mathscr{L}");f("ℳ","\\mathscr{M}");f("ℛ","\\mathscr{R}");f("ℭ","\\mathfrak{C}");f("ℌ","\\mathfrak{H}");f("ℨ","\\mathfrak{Z}");f("\\Bbbk","\\Bbb{k}");f("\\llap","\\mathllap{\\textrm{#1}}");f("\\rlap","\\mathrlap{\\textrm{#1}}");f("\\clap","\\mathclap{\\textrm{#1}}");f("\\mathstrut","\\vphantom{(}");f("\\underbar","\\underline{\\text{#1}}");f("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');f("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");f("\\ne","\\neq");f("≠","\\neq");f("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");f("∉","\\notin");f("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");f("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");f("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");f("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");f("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");f("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");f("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");f("⟂","\\perp");f("‼","\\mathclose{!\\mkern-0.8mu!}");f("∌","\\notni");f("⌜","\\ulcorner");f("⌝","\\urcorner");f("⌞","\\llcorner");f("⌟","\\lrcorner");f("©","\\copyright");f("®","\\textregistered");f("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');f("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');f("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');f("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');f("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");f("⋮","\\vdots");f("\\varGamma","\\mathit{\\Gamma}");f("\\varDelta","\\mathit{\\Delta}");f("\\varTheta","\\mathit{\\Theta}");f("\\varLambda","\\mathit{\\Lambda}");f("\\varXi","\\mathit{\\Xi}");f("\\varPi","\\mathit{\\Pi}");f("\\varSigma","\\mathit{\\Sigma}");f("\\varUpsilon","\\mathit{\\Upsilon}");f("\\varPhi","\\mathit{\\Phi}");f("\\varPsi","\\mathit{\\Psi}");f("\\varOmega","\\mathit{\\Omega}");f("\\substack","\\begin{subarray}{c}#1\\end{subarray}");f("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");f("\\boxed","\\fbox{$\\displaystyle{#1}$}");f("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");f("\\implies","\\DOTSB\\;\\Longrightarrow\\;");f("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");f("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");f("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Qo={",":"\\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"},r4=new Set(["bin","rel"]);f("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in Qo?e=Qo[r]:(r.slice(0,4)==="\\not"||r in Ee.math&&r4.has(Ee.math[r].group))&&(e="\\dotsb"),e});var hs={")":!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};f("\\dotso",function(t){var e=t.future().text;return e in hs?"\\ldots\\,":"\\ldots"});f("\\dotsc",function(t){var e=t.future().text;return e in hs&&e!==","?"\\ldots\\,":"\\ldots"});f("\\cdots",function(t){var e=t.future().text;return e in hs?"\\@cdots\\,":"\\@cdots"});f("\\dotsb","\\cdots");f("\\dotsm","\\cdots");f("\\dotsi","\\!\\cdots");f("\\dotsx","\\ldots\\,");f("\\DOTSI","\\relax");f("\\DOTSB","\\relax");f("\\DOTSX","\\relax");f("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");f("\\,","\\tmspace+{3mu}{.1667em}");f("\\thinspace","\\,");f("\\>","\\mskip{4mu}");f("\\:","\\tmspace+{4mu}{.2222em}");f("\\medspace","\\:");f("\\;","\\tmspace+{5mu}{.2777em}");f("\\thickspace","\\;");f("\\!","\\tmspace-{3mu}{.1667em}");f("\\negthinspace","\\!");f("\\negmedspace","\\tmspace-{4mu}{.2222em}");f("\\negthickspace","\\tmspace-{5mu}{.277em}");f("\\enspace","\\kern.5em ");f("\\enskip","\\hskip.5em\\relax");f("\\quad","\\hskip1em\\relax");f("\\qquad","\\hskip2em\\relax");f("\\tag","\\@ifstar\\tag@literal\\tag@paren");f("\\tag@paren","\\tag@literal{({#1})}");f("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new F("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});f("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");f("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");f("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");f("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");f("\\newline","\\\\\\relax");f("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var uu=U(Gt["Main-Regular"][84][1]-.7*Gt["Main-Regular"][65][1]);f("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+uu+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");f("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+uu+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");f("\\hspace","\\@ifstar\\@hspacer\\@hspace");f("\\@hspace","\\hskip #1\\relax");f("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");f("\\ordinarycolon",":");f("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");f("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');f("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');f("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');f("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');f("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');f("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');f("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');f("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');f("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');f("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');f("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');f("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');f("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');f("∷","\\dblcolon");f("∹","\\eqcolon");f("≔","\\coloneqq");f("≕","\\eqqcolon");f("⩴","\\Coloneqq");f("\\ratio","\\vcentcolon");f("\\coloncolon","\\dblcolon");f("\\colonequals","\\coloneqq");f("\\coloncolonequals","\\Coloneqq");f("\\equalscolon","\\eqqcolon");f("\\equalscoloncolon","\\Eqqcolon");f("\\colonminus","\\coloneq");f("\\coloncolonminus","\\Coloneq");f("\\minuscolon","\\eqcolon");f("\\minuscoloncolon","\\Eqcolon");f("\\coloncolonapprox","\\Colonapprox");f("\\coloncolonsim","\\Colonsim");f("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");f("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");f("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");f("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");f("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");f("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");f("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");f("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");f("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");f("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");f("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");f("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");f("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");f("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");f("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");f("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");f("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");f("\\nleqq","\\html@mathml{\\@nleqq}{≰}");f("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");f("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");f("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");f("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");f("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");f("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");f("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");f("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");f("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");f("\\imath","\\html@mathml{\\@imath}{ı}");f("\\jmath","\\html@mathml{\\@jmath}{ȷ}");f("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");f("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");f("⟦","\\llbracket");f("⟧","\\rrbracket");f("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");f("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");f("↤","\\mapsfrom");f("\\mapsfrom","\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}");f("⦃","\\lBrace");f("⦄","\\rBrace");f("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");f("⦵","\\minuso");f("\\darr","\\downarrow");f("\\dArr","\\Downarrow");f("\\Darr","\\Downarrow");f("\\lang","\\langle");f("\\rang","\\rangle");f("\\uarr","\\uparrow");f("\\uArr","\\Uparrow");f("\\Uarr","\\Uparrow");f("\\N","\\mathbb{N}");f("\\R","\\mathbb{R}");f("\\Z","\\mathbb{Z}");f("\\alef","\\aleph");f("\\alefsym","\\aleph");f("\\Alpha","\\mathrm{A}");f("\\Beta","\\mathrm{B}");f("\\bull","\\bullet");f("\\Chi","\\mathrm{X}");f("\\clubs","\\clubsuit");f("\\cnums","\\mathbb{C}");f("\\Complex","\\mathbb{C}");f("\\Dagger","\\ddagger");f("\\diamonds","\\diamondsuit");f("\\empty","\\emptyset");f("\\Epsilon","\\mathrm{E}");f("\\Eta","\\mathrm{H}");f("\\exist","\\exists");f("\\harr","\\leftrightarrow");f("\\hArr","\\Leftrightarrow");f("\\Harr","\\Leftrightarrow");f("\\hearts","\\heartsuit");f("\\image","\\Im");f("\\infin","\\infty");f("\\Iota","\\mathrm{I}");f("\\isin","\\in");f("\\Kappa","\\mathrm{K}");f("\\larr","\\leftarrow");f("\\lArr","\\Leftarrow");f("\\Larr","\\Leftarrow");f("\\lrarr","\\leftrightarrow");f("\\lrArr","\\Leftrightarrow");f("\\Lrarr","\\Leftrightarrow");f("\\Mu","\\mathrm{M}");f("\\natnums","\\mathbb{N}");f("\\Nu","\\mathrm{N}");f("\\Omicron","\\mathrm{O}");f("\\plusmn","\\pm");f("\\rarr","\\rightarrow");f("\\rArr","\\Rightarrow");f("\\Rarr","\\Rightarrow");f("\\real","\\Re");f("\\reals","\\mathbb{R}");f("\\Reals","\\mathbb{R}");f("\\Rho","\\mathrm{P}");f("\\sdot","\\cdot");f("\\sect","\\S");f("\\spades","\\spadesuit");f("\\sub","\\subset");f("\\sube","\\subseteq");f("\\supe","\\supseteq");f("\\Tau","\\mathrm{T}");f("\\thetasym","\\vartheta");f("\\weierp","\\wp");f("\\Zeta","\\mathrm{Z}");f("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");f("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");f("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");f("\\bra","\\mathinner{\\langle{#1}|}");f("\\ket","\\mathinner{|{#1}\\rangle}");f("\\braket","\\mathinner{\\langle{#1}\\rangle}");f("\\Bra","\\left\\langle#1\\right|");f("\\Ket","\\left|#1\\right\\rangle");var hu=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,a=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var c=v=>m=>{t&&(m.macros.set("|",s),a.length&&m.macros.set("\\|",o));var w=v;if(!v&&a.length){var A=m.future();A.text==="|"&&(m.popToken(),w=!0)}return{tokens:w?a:n,numArgs:0}};e.macros.set("|",c(!1)),a.length&&e.macros.set("\\|",c(!0));var h=e.consumeArg().tokens,d=e.expandTokens([...i,...h,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};f("\\bra@ket",hu(!1));f("\\bra@set",hu(!0));f("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");f("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");f("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");f("\\angln","{\\angl n}");f("\\blue","\\textcolor{##6495ed}{#1}");f("\\orange","\\textcolor{##ffa500}{#1}");f("\\pink","\\textcolor{##ff00af}{#1}");f("\\red","\\textcolor{##df0030}{#1}");f("\\green","\\textcolor{##28ae7b}{#1}");f("\\gray","\\textcolor{gray}{#1}");f("\\purple","\\textcolor{##9d38bd}{#1}");f("\\blueA","\\textcolor{##ccfaff}{#1}");f("\\blueB","\\textcolor{##80f6ff}{#1}");f("\\blueC","\\textcolor{##63d9ea}{#1}");f("\\blueD","\\textcolor{##11accd}{#1}");f("\\blueE","\\textcolor{##0c7f99}{#1}");f("\\tealA","\\textcolor{##94fff5}{#1}");f("\\tealB","\\textcolor{##26edd5}{#1}");f("\\tealC","\\textcolor{##01d1c1}{#1}");f("\\tealD","\\textcolor{##01a995}{#1}");f("\\tealE","\\textcolor{##208170}{#1}");f("\\greenA","\\textcolor{##b6ffb0}{#1}");f("\\greenB","\\textcolor{##8af281}{#1}");f("\\greenC","\\textcolor{##74cf70}{#1}");f("\\greenD","\\textcolor{##1fab54}{#1}");f("\\greenE","\\textcolor{##0d923f}{#1}");f("\\goldA","\\textcolor{##ffd0a9}{#1}");f("\\goldB","\\textcolor{##ffbb71}{#1}");f("\\goldC","\\textcolor{##ff9c39}{#1}");f("\\goldD","\\textcolor{##e07d10}{#1}");f("\\goldE","\\textcolor{##a75a05}{#1}");f("\\redA","\\textcolor{##fca9a9}{#1}");f("\\redB","\\textcolor{##ff8482}{#1}");f("\\redC","\\textcolor{##f9685d}{#1}");f("\\redD","\\textcolor{##e84d39}{#1}");f("\\redE","\\textcolor{##bc2612}{#1}");f("\\maroonA","\\textcolor{##ffbde0}{#1}");f("\\maroonB","\\textcolor{##ff92c6}{#1}");f("\\maroonC","\\textcolor{##ed5fa6}{#1}");f("\\maroonD","\\textcolor{##ca337c}{#1}");f("\\maroonE","\\textcolor{##9e034e}{#1}");f("\\purpleA","\\textcolor{##ddd7ff}{#1}");f("\\purpleB","\\textcolor{##c6b9fc}{#1}");f("\\purpleC","\\textcolor{##aa87ff}{#1}");f("\\purpleD","\\textcolor{##7854ab}{#1}");f("\\purpleE","\\textcolor{##543b78}{#1}");f("\\mintA","\\textcolor{##f5f9e8}{#1}");f("\\mintB","\\textcolor{##edf2df}{#1}");f("\\mintC","\\textcolor{##e0e5cc}{#1}");f("\\grayA","\\textcolor{##f6f7f7}{#1}");f("\\grayB","\\textcolor{##f0f1f2}{#1}");f("\\grayC","\\textcolor{##e3e5e6}{#1}");f("\\grayD","\\textcolor{##d6d8da}{#1}");f("\\grayE","\\textcolor{##babec2}{#1}");f("\\grayF","\\textcolor{##888d93}{#1}");f("\\grayG","\\textcolor{##626569}{#1}");f("\\grayH","\\textcolor{##3b3e40}{#1}");f("\\grayI","\\textcolor{##21242c}{#1}");f("\\kaBlue","\\textcolor{##314453}{#1}");f("\\kaGreen","\\textcolor{##71B307}{#1}");var du={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class n4{constructor(e,r,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=r,this.expansionCount=0,this.feed(e),this.macros=new e4(t4,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Yo(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 r,n,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken();var i=this.consumeArg(["]"]);a=i.tokens,n=i.end}else{var s=this.consumeArg();a=s.tokens,r=s.start,n=s.end}return this.pushToken(new ft("EOF",n.loc)),this.pushTokens(a),new ft("",ct.range(r,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var a=this.future(),i,s=0,o=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new F("Extra }",i)}else if(i.text==="EOF")throw new F("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",i);if(e&&n)if((s===0||s===1&&e[o]==="{")&&i.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new F("The length of delimiters doesn't match the number of args!");for(var n=r[0],a=0;a<n.length;a++){var i=this.popToken();if(n[a]!==i.text)throw new F("Use of the macro doesn't match its definition",i)}}for(var s=[],o=0;o<e;o++)s.push(this.consumeArg(r&&r[o+1]).tokens);return s}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new F("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,a=r.noexpand?null:this._getExpansion(n);if(a==null||e&&a.unexpandable){if(e&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new F("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var c=i[o];if(c.text==="#"){if(o===0)throw new F("Incomplete placeholder at end of macro body",c);if(c=i[--o],c.text==="#")i.splice(o+1,1);else if(/^[1-9]$/.test(c.text))i.splice(o,2,...s[+c.text-1]);else throw new F("Not a valid argument number",c)}}}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 ft(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.includes("#"))for(var s=a.replace(/##/g,"");s.includes("#"+(i+1));)++i;for(var o=new Yo(a,this.settings),c=[],h=o.lex();h.text!=="EOF";)c.push(h),h=o.lex();c.reverse();var d={tokens:c,numArgs:i};return d}return a}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(ur,e)||Object.prototype.hasOwnProperty.call(Ee.math,e)||Object.prototype.hasOwnProperty.call(Ee.text,e)||Object.prototype.hasOwnProperty.call(du,e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Object.prototype.hasOwnProperty.call(ur,e)&&!ur[e].primitive}}var Jo=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,R0=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Va={"́":{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"}},el={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class ia{constructor(e,r){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 n4(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new F("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(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 r=this.nextToken;this.consume(),this.gullet.pushToken(new ft("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(ia.endOfExpression.has(a.text)||r&&a.text===r||e&&ur[a.text]&&ur[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,a=0;a<e.length;a++){var i=e[a];if(i.type==="infix"){if(r!==-1)throw new F("only one infix operator per group",i.token);r=a,n=i.replaceWith}}if(r!==-1&&n){var s,o,c=e.slice(0,r),h=e.slice(r+1);c.length===1&&c[0].type==="ordgroup"?s=c[0]:s={type:"ordgroup",mode:this.mode,body:c},h.length===1&&h[0].type==="ordgroup"?o=h[0]:o={type:"ordgroup",mode:this.mode,body:h};var d;return n==="\\\\abovefrac"?d=this.callFunction(n,[s,e[r],o],[]):d=this.callFunction(n,[s,o],[]),[d]}else return e}handleSupSubscript(e){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var a;do{var i;a=this.parseGroup(e)}while(((i=a)==null?void 0:i.type)==="internal");if(!a)throw new F("Expected group after '"+n+"'",r);return a}formatUnsupportedCmd(e){for(var r=[],n=0;n<e.length;n++)r.push({type:"textord",mode:"text",text:e[n]});var a={type:"text",mode:this.mode,body:r},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return i}parseAtom(e){var r=this.parseGroup("atom",e);if(r?.type==="internal"||this.mode==="text")return r;for(var n,a;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(r&&r.type==="op")r.limits=i.text==="\\limits",r.alwaysHandleSupSub=!0;else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=i.text==="\\limits");else throw new F("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(n)throw new F("Double superscript",i);n=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new F("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(n)throw new F("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},o=[s];for(this.consume();this.fetch().text==="'";)o.push(s),this.consume();this.fetch().text==="^"&&o.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:o}}else if(R0[i.text]){var c=Jo.test(i.text),h=[];for(h.push(new ft(R0[i.text])),this.consume();;){var d=this.fetch().text;if(!R0[d]||Jo.test(d)!==c)break;h.unshift(new ft(R0[d])),this.consume()}var v=this.subparse(h);c?a={type:"ordgroup",mode:"math",body:v}:n={type:"ordgroup",mode:"math",body:v}}else break}return n&&a?{type:"supsub",mode:this.mode,base:r,sup:n,sub:a}:n?{type:"supsub",mode:this.mode,base:r,sup:n}:a?{type:"supsub",mode:this.mode,base:r,sub:a}:r}parseFunction(e,r){var n=this.fetch(),a=n.text,i=ur[a];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new F("Got function '"+a+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!i.allowedInText)throw new F("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&i.allowedInMath===!1)throw new F("Can't use function '"+a+"' in math mode",n);var s=this.parseArguments(a,i),o=s.args,c=s.optArgs;return this.callFunction(a,o,c,n,e)}callFunction(e,r,n,a,i){var s={funcName:e,parser:this,token:a,breakOnTokenText:i},o=ur[e];if(o&&o.handler)return o.handler(s,r,n);throw new F("No function handler for "+e)}parseArguments(e,r){var n,a=(n=r.numOptionalArgs)!=null?n:0,i=r.numArgs+a;if(i===0)return{args:[],optArgs:[]};for(var s=[],o=[],c=0;c<i;c++){var h,d=(h=r.argTypes)==null?void 0:h[c],v=c<a;("primitive"in r&&r.primitive&&d==null||r.type==="sqrt"&&c===1&&o[0]==null)&&(d="primitive");var m=this.parseGroupOfType("argument to '"+e+"'",d,v);if(v)o.push(m);else if(m!=null)s.push(m);else throw new F("Null argument, please report this as a bug")}return{args:s,optArgs:o}}parseGroupOfType(e,r,n){switch(r){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,r);case"hbox":{var a=this.parseArgumentGroup(n,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text",resetFont:!0}:null}case"raw":{this.gullet.consumeSpaces();var i=this.gullet.lexer.catcodes["%"];this.gullet.lexer.setCatcode("%",12);var s=this.parseStringGroup(n);return this.gullet.lexer.setCatcode("%",i),s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(n)throw new F("A primitive argument cannot be optional");var o=this.parseGroup(e);if(o==null)throw new F("Expected group as "+e,this.fetch());return o}case"original":case void 0:return this.parseArgumentGroup(n);default:throw new F("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e){var r=this.gullet.scanArgument(e);if(r==null)return null;for(var n="",a;(a=this.fetch()).text!=="EOF";)n+=a.text,this.consume();return this.consume(),r.text=n,r}parseRegexGroup(e,r){for(var n=this.fetch(),a=n,i="",s;(s=this.fetch()).text!=="EOF"&&e.test(i+s.text);)a=s,i+=a.text,this.consume();if(i==="")throw new F("Invalid "+r+": '"+n.text+"'",n);return n.range(a,i)}parseColorGroup(e){var r=this.parseStringGroup(e);if(r==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(r.text);if(!n)throw new F("Invalid color: '"+r.text+"'",r);var a=n[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(e){var r,n=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup(e),!r)return null;!e&&r.text.length===0&&(r.text="0pt",n=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!a)throw new F("Invalid size: '"+r.text+"'",r);var i={number:+(a[1]+a[2]),unit:a[3]};if(!Ec(i))throw new F("Invalid unit: '"+i.unit+"'",r);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){var r=this.gullet.lexer.catcodes["%"],n=this.gullet.lexer.catcodes["~"];this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var a=this.parseStringGroup(e);if(this.gullet.lexer.setCatcode("%",r),this.gullet.lexer.setCatcode("~",n),a==null)return null;var i=a.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}}parseArgumentGroup(e,r){var n=this.gullet.scanArgument(e);if(n==null)return null;var a=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return r&&this.switchMode(a),s}parseGroup(e,r){var n=this.fetch(),a=n.text,i;if(a==="{"||a==="\\begingroup"){this.consume();var s=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),c=this.fetch();this.expect(s),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:ct.range(n,c),body:o,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,e)||this.parseSymbol(),i==null&&a[0]==="\\"&&!Object.prototype.hasOwnProperty.call(du,a)){if(this.settings.throwOnError)throw new F("Undefined control sequence: "+a,n);i=this.formatUnsupportedCmd(a),this.consume()}return i}formLigatures(e){for(var r=e.length-1,n=0;n<r;++n){var a=e[n];if(a.type==="textord"){var i=a.text,s=e[n+1];if(!(!s||s.type!=="textord")){if(i==="-"&&s.text==="-"){var o=e[n+2];n+1<r&&o&&o.type==="textord"&&o.text==="-"?(e.splice(n,3,{type:"textord",mode:"text",loc:ct.range(a,o),text:"---"}),r-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:ct.range(a,s),text:"--"}),r-=1)}(i==="'"||i==="`")&&s.text===i&&(e.splice(n,2,{type:"textord",mode:"text",loc:ct.range(a,s),text:i+i}),r-=1)}}}}parseSymbol(){var e=this.fetch(),r=e.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),a=n.charAt(0)==="*";if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new F(`\\verb assertion failed --
345
- please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}Object.prototype.hasOwnProperty.call(el,r[0])&&!Ee[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&ut({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Accented Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}),r=el[r[0]]+r.slice(1));var i=Qm.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(Ee[this.mode][r]){this.settings.strict&&this.mode==="math"&&gi.includes(r)&&ut({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Latin-1/Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e});var o=Ee[this.mode][r].group,c=ct.range(e),h;cm(o)?h={type:"atom",mode:this.mode,family:o,loc:c,text:r}:h={type:o,mode:this.mode,loc:c,text:r},s=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(Tc(r.charCodeAt(0))?this.mode==="math"&&ut({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}):ut({strict:this.settings.strict,errorCode:"unknownSymbol",errorMsg:'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),report:!0,token:e})),s={type:"textord",mode:"text",loc:ct.range(e),text:r};else return null;if(this.consume(),i)for(var d=0;d<i[0].length;d++){var v=i[0][d];if(!Va[v])throw new F("Unknown accent ' "+v+"'",e);var m=Va[v][this.mode]||Va[v].text;if(!m)throw new F("Accent "+v+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:ct.range(e),label:m,isStretchy:!1,isShifty:!0,base:s}}return s}}ia.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var a4=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new ia(e,r);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new F("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new ft("\\df@tag")])}]}return a};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.");var i4=function(e,r){var n=o4(e,r).toMarkup();return n},s4=function(e,r,n){if(n.throwOnError||!(e instanceof F))throw e;var a=$(["katex-error"],[new xt(r)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+n.errorColor),a},o4=function(e,r){var n=new lp(r);try{var a=a4(e,n);return em(a,e,n)}catch(i){return s4(i,e,n)}};const pu=4096,l4=t=>t==="symbolNotInFont"?"ignore":"error";function mu(t,e){return i4(t,{displayMode:e,output:"htmlAndMathml",throwOnError:!1,strict:l4,trust:!1,maxExpand:100,maxSize:20})}const ds=/<!--\s*anchor:[^:]+:[^-]+\s*-->/g,tl=/^<!--\s*anchor:[^:]+:end\s*-->$/;function Jn(t){return t.replace(ds,"")}function c4(t){return t.startsWith("<!--")&&Jn(t)!==""}function fu(t){return t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;")}function rl(t){return fu(t).replace(/>/g,"&gt;")}function nl(t){let e="",r=0;for(const n of t.matchAll(ds))e+=rl(t.slice(r,n.index))+n[0],r=n.index+n[0].length;return e+rl(t.slice(r))}function al(t,e){if(!e||t.literalOnly||t.text.length>pu){const r=nl(t.source);return t.displayMode?`<p>${r.replace(/\n/g,"<br>")}</p>
343
+ ?)[ \r ]*`,Ii="[̀-ͯ]",Jm=new RegExp(Ii+"+$"),e4="("+cu+"+)|"+(Qm+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Ii+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ii+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Zm)+("|"+Ym+")");class Yo{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(e4,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new ft("EOF",new ct(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new F("Unexpected character: '"+e[r]+"'",new ft(e[r],new ct(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=e.indexOf(`
344
+ `,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,ut({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 ft(a,new ct(this,r,this.tokenRegex.lastIndex))}}class t4{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new F("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r of Object.keys(e))e[r]===void 0?delete this.current[r]:this.current[r]=e[r]}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){return Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:Object.prototype.hasOwnProperty.call(this.builtins,e)?this.builtins[e]:void 0}set(e,r,n){if(n===void 0&&(n=!1),n){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=r)}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)}r==null?delete this.current[e]:this.current[e]=r}}var r4=Qc;f("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});f("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});f("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});f("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});f("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});f("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");f("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var Zo={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};f("\\char",function(t){var e=t.popToken(),r,n=0;if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new F("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=Zo[e.text],n==null||n>=r)throw new F("Invalid base-"+r+" digit "+e.text);for(var a;(a=Zo[t.future().text])!=null&&a<r;)n*=r,n+=a,t.popToken()}return"\\@char{"+n+"}"});var us=(t,e,r,n)=>{var a=t.consumeArg().tokens;if(a.length!==1)throw new F("\\newcommand's first argument must be a macro name");var i=a[0].text,s=t.isDefined(i);if(s&&!e)throw new F("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new F("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(a=t.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var c="",h=t.expandNextToken();h.text!=="]"&&h.text!=="EOF";)c+=h.text,h=t.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new F("Invalid number of arguments: "+c);o=parseInt(c),a=t.consumeArg().tokens}return s&&n||t.macros.set(i,{tokens:a,numArgs:o}),""};f("\\newcommand",t=>us(t,!1,!0,!1));f("\\renewcommand",t=>us(t,!0,!1,!1));f("\\providecommand",t=>us(t,!0,!0,!0));f("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});f("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});f("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),hr[r],Ee.math[r],Ee.text[r]),""});f("\\bgroup","{");f("\\egroup","}");f("~","\\nobreakspace");f("\\lq","`");f("\\rq","'");f("\\aa","\\r a");f("\\AA","\\r A");f("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");f("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");f("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");f("ℬ","\\mathscr{B}");f("ℰ","\\mathscr{E}");f("ℱ","\\mathscr{F}");f("ℋ","\\mathscr{H}");f("ℐ","\\mathscr{I}");f("ℒ","\\mathscr{L}");f("ℳ","\\mathscr{M}");f("ℛ","\\mathscr{R}");f("ℭ","\\mathfrak{C}");f("ℌ","\\mathfrak{H}");f("ℨ","\\mathfrak{Z}");f("\\Bbbk","\\Bbb{k}");f("\\llap","\\mathllap{\\textrm{#1}}");f("\\rlap","\\mathrlap{\\textrm{#1}}");f("\\clap","\\mathclap{\\textrm{#1}}");f("\\mathstrut","\\vphantom{(}");f("\\underbar","\\underline{\\text{#1}}");f("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');f("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");f("\\ne","\\neq");f("≠","\\neq");f("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");f("∉","\\notin");f("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");f("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");f("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");f("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");f("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");f("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");f("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");f("⟂","\\perp");f("‼","\\mathclose{!\\mkern-0.8mu!}");f("∌","\\notni");f("⌜","\\ulcorner");f("⌝","\\urcorner");f("⌞","\\llcorner");f("⌟","\\lrcorner");f("©","\\copyright");f("®","\\textregistered");f("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');f("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');f("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');f("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');f("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");f("⋮","\\vdots");f("\\varGamma","\\mathit{\\Gamma}");f("\\varDelta","\\mathit{\\Delta}");f("\\varTheta","\\mathit{\\Theta}");f("\\varLambda","\\mathit{\\Lambda}");f("\\varXi","\\mathit{\\Xi}");f("\\varPi","\\mathit{\\Pi}");f("\\varSigma","\\mathit{\\Sigma}");f("\\varUpsilon","\\mathit{\\Upsilon}");f("\\varPhi","\\mathit{\\Phi}");f("\\varPsi","\\mathit{\\Psi}");f("\\varOmega","\\mathit{\\Omega}");f("\\substack","\\begin{subarray}{c}#1\\end{subarray}");f("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");f("\\boxed","\\fbox{$\\displaystyle{#1}$}");f("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");f("\\implies","\\DOTSB\\;\\Longrightarrow\\;");f("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");f("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");f("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Qo={",":"\\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"},n4=new Set(["bin","rel"]);f("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in Qo?e=Qo[r]:(r.slice(0,4)==="\\not"||r in Ee.math&&n4.has(Ee.math[r].group))&&(e="\\dotsb"),e});var hs={")":!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};f("\\dotso",function(t){var e=t.future().text;return e in hs?"\\ldots\\,":"\\ldots"});f("\\dotsc",function(t){var e=t.future().text;return e in hs&&e!==","?"\\ldots\\,":"\\ldots"});f("\\cdots",function(t){var e=t.future().text;return e in hs?"\\@cdots\\,":"\\@cdots"});f("\\dotsb","\\cdots");f("\\dotsm","\\cdots");f("\\dotsi","\\!\\cdots");f("\\dotsx","\\ldots\\,");f("\\DOTSI","\\relax");f("\\DOTSB","\\relax");f("\\DOTSX","\\relax");f("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");f("\\,","\\tmspace+{3mu}{.1667em}");f("\\thinspace","\\,");f("\\>","\\mskip{4mu}");f("\\:","\\tmspace+{4mu}{.2222em}");f("\\medspace","\\:");f("\\;","\\tmspace+{5mu}{.2777em}");f("\\thickspace","\\;");f("\\!","\\tmspace-{3mu}{.1667em}");f("\\negthinspace","\\!");f("\\negmedspace","\\tmspace-{4mu}{.2222em}");f("\\negthickspace","\\tmspace-{5mu}{.277em}");f("\\enspace","\\kern.5em ");f("\\enskip","\\hskip.5em\\relax");f("\\quad","\\hskip1em\\relax");f("\\qquad","\\hskip2em\\relax");f("\\tag","\\@ifstar\\tag@literal\\tag@paren");f("\\tag@paren","\\tag@literal{({#1})}");f("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new F("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});f("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");f("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");f("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");f("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");f("\\newline","\\\\\\relax");f("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var uu=U(Gt["Main-Regular"][84][1]-.7*Gt["Main-Regular"][65][1]);f("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+uu+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");f("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+uu+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");f("\\hspace","\\@ifstar\\@hspacer\\@hspace");f("\\@hspace","\\hskip #1\\relax");f("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");f("\\ordinarycolon",":");f("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");f("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');f("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');f("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');f("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');f("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');f("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');f("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');f("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');f("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');f("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');f("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');f("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');f("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');f("∷","\\dblcolon");f("∹","\\eqcolon");f("≔","\\coloneqq");f("≕","\\eqqcolon");f("⩴","\\Coloneqq");f("\\ratio","\\vcentcolon");f("\\coloncolon","\\dblcolon");f("\\colonequals","\\coloneqq");f("\\coloncolonequals","\\Coloneqq");f("\\equalscolon","\\eqqcolon");f("\\equalscoloncolon","\\Eqqcolon");f("\\colonminus","\\coloneq");f("\\coloncolonminus","\\Coloneq");f("\\minuscolon","\\eqcolon");f("\\minuscoloncolon","\\Eqcolon");f("\\coloncolonapprox","\\Colonapprox");f("\\coloncolonsim","\\Colonsim");f("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");f("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");f("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");f("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");f("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");f("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");f("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");f("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");f("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");f("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");f("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");f("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");f("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");f("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");f("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");f("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");f("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");f("\\nleqq","\\html@mathml{\\@nleqq}{≰}");f("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");f("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");f("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");f("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");f("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");f("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");f("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");f("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");f("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");f("\\imath","\\html@mathml{\\@imath}{ı}");f("\\jmath","\\html@mathml{\\@jmath}{ȷ}");f("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");f("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");f("⟦","\\llbracket");f("⟧","\\rrbracket");f("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");f("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");f("↤","\\mapsfrom");f("\\mapsfrom","\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}");f("⦃","\\lBrace");f("⦄","\\rBrace");f("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");f("⦵","\\minuso");f("\\darr","\\downarrow");f("\\dArr","\\Downarrow");f("\\Darr","\\Downarrow");f("\\lang","\\langle");f("\\rang","\\rangle");f("\\uarr","\\uparrow");f("\\uArr","\\Uparrow");f("\\Uarr","\\Uparrow");f("\\N","\\mathbb{N}");f("\\R","\\mathbb{R}");f("\\Z","\\mathbb{Z}");f("\\alef","\\aleph");f("\\alefsym","\\aleph");f("\\Alpha","\\mathrm{A}");f("\\Beta","\\mathrm{B}");f("\\bull","\\bullet");f("\\Chi","\\mathrm{X}");f("\\clubs","\\clubsuit");f("\\cnums","\\mathbb{C}");f("\\Complex","\\mathbb{C}");f("\\Dagger","\\ddagger");f("\\diamonds","\\diamondsuit");f("\\empty","\\emptyset");f("\\Epsilon","\\mathrm{E}");f("\\Eta","\\mathrm{H}");f("\\exist","\\exists");f("\\harr","\\leftrightarrow");f("\\hArr","\\Leftrightarrow");f("\\Harr","\\Leftrightarrow");f("\\hearts","\\heartsuit");f("\\image","\\Im");f("\\infin","\\infty");f("\\Iota","\\mathrm{I}");f("\\isin","\\in");f("\\Kappa","\\mathrm{K}");f("\\larr","\\leftarrow");f("\\lArr","\\Leftarrow");f("\\Larr","\\Leftarrow");f("\\lrarr","\\leftrightarrow");f("\\lrArr","\\Leftrightarrow");f("\\Lrarr","\\Leftrightarrow");f("\\Mu","\\mathrm{M}");f("\\natnums","\\mathbb{N}");f("\\Nu","\\mathrm{N}");f("\\Omicron","\\mathrm{O}");f("\\plusmn","\\pm");f("\\rarr","\\rightarrow");f("\\rArr","\\Rightarrow");f("\\Rarr","\\Rightarrow");f("\\real","\\Re");f("\\reals","\\mathbb{R}");f("\\Reals","\\mathbb{R}");f("\\Rho","\\mathrm{P}");f("\\sdot","\\cdot");f("\\sect","\\S");f("\\spades","\\spadesuit");f("\\sub","\\subset");f("\\sube","\\subseteq");f("\\supe","\\supseteq");f("\\Tau","\\mathrm{T}");f("\\thetasym","\\vartheta");f("\\weierp","\\wp");f("\\Zeta","\\mathrm{Z}");f("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");f("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");f("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");f("\\bra","\\mathinner{\\langle{#1}|}");f("\\ket","\\mathinner{|{#1}\\rangle}");f("\\braket","\\mathinner{\\langle{#1}\\rangle}");f("\\Bra","\\left\\langle#1\\right|");f("\\Ket","\\left|#1\\right\\rangle");var hu=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,a=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var c=v=>m=>{t&&(m.macros.set("|",s),a.length&&m.macros.set("\\|",o));var w=v;if(!v&&a.length){var A=m.future();A.text==="|"&&(m.popToken(),w=!0)}return{tokens:w?a:n,numArgs:0}};e.macros.set("|",c(!1)),a.length&&e.macros.set("\\|",c(!0));var h=e.consumeArg().tokens,d=e.expandTokens([...i,...h,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};f("\\bra@ket",hu(!1));f("\\bra@set",hu(!0));f("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");f("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");f("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");f("\\angln","{\\angl n}");f("\\blue","\\textcolor{##6495ed}{#1}");f("\\orange","\\textcolor{##ffa500}{#1}");f("\\pink","\\textcolor{##ff00af}{#1}");f("\\red","\\textcolor{##df0030}{#1}");f("\\green","\\textcolor{##28ae7b}{#1}");f("\\gray","\\textcolor{gray}{#1}");f("\\purple","\\textcolor{##9d38bd}{#1}");f("\\blueA","\\textcolor{##ccfaff}{#1}");f("\\blueB","\\textcolor{##80f6ff}{#1}");f("\\blueC","\\textcolor{##63d9ea}{#1}");f("\\blueD","\\textcolor{##11accd}{#1}");f("\\blueE","\\textcolor{##0c7f99}{#1}");f("\\tealA","\\textcolor{##94fff5}{#1}");f("\\tealB","\\textcolor{##26edd5}{#1}");f("\\tealC","\\textcolor{##01d1c1}{#1}");f("\\tealD","\\textcolor{##01a995}{#1}");f("\\tealE","\\textcolor{##208170}{#1}");f("\\greenA","\\textcolor{##b6ffb0}{#1}");f("\\greenB","\\textcolor{##8af281}{#1}");f("\\greenC","\\textcolor{##74cf70}{#1}");f("\\greenD","\\textcolor{##1fab54}{#1}");f("\\greenE","\\textcolor{##0d923f}{#1}");f("\\goldA","\\textcolor{##ffd0a9}{#1}");f("\\goldB","\\textcolor{##ffbb71}{#1}");f("\\goldC","\\textcolor{##ff9c39}{#1}");f("\\goldD","\\textcolor{##e07d10}{#1}");f("\\goldE","\\textcolor{##a75a05}{#1}");f("\\redA","\\textcolor{##fca9a9}{#1}");f("\\redB","\\textcolor{##ff8482}{#1}");f("\\redC","\\textcolor{##f9685d}{#1}");f("\\redD","\\textcolor{##e84d39}{#1}");f("\\redE","\\textcolor{##bc2612}{#1}");f("\\maroonA","\\textcolor{##ffbde0}{#1}");f("\\maroonB","\\textcolor{##ff92c6}{#1}");f("\\maroonC","\\textcolor{##ed5fa6}{#1}");f("\\maroonD","\\textcolor{##ca337c}{#1}");f("\\maroonE","\\textcolor{##9e034e}{#1}");f("\\purpleA","\\textcolor{##ddd7ff}{#1}");f("\\purpleB","\\textcolor{##c6b9fc}{#1}");f("\\purpleC","\\textcolor{##aa87ff}{#1}");f("\\purpleD","\\textcolor{##7854ab}{#1}");f("\\purpleE","\\textcolor{##543b78}{#1}");f("\\mintA","\\textcolor{##f5f9e8}{#1}");f("\\mintB","\\textcolor{##edf2df}{#1}");f("\\mintC","\\textcolor{##e0e5cc}{#1}");f("\\grayA","\\textcolor{##f6f7f7}{#1}");f("\\grayB","\\textcolor{##f0f1f2}{#1}");f("\\grayC","\\textcolor{##e3e5e6}{#1}");f("\\grayD","\\textcolor{##d6d8da}{#1}");f("\\grayE","\\textcolor{##babec2}{#1}");f("\\grayF","\\textcolor{##888d93}{#1}");f("\\grayG","\\textcolor{##626569}{#1}");f("\\grayH","\\textcolor{##3b3e40}{#1}");f("\\grayI","\\textcolor{##21242c}{#1}");f("\\kaBlue","\\textcolor{##314453}{#1}");f("\\kaGreen","\\textcolor{##71B307}{#1}");var du={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class a4{constructor(e,r,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=r,this.expansionCount=0,this.feed(e),this.macros=new t4(r4,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Yo(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 r,n,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken();var i=this.consumeArg(["]"]);a=i.tokens,n=i.end}else{var s=this.consumeArg();a=s.tokens,r=s.start,n=s.end}return this.pushToken(new ft("EOF",n.loc)),this.pushTokens(a),new ft("",ct.range(r,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var a=this.future(),i,s=0,o=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new F("Extra }",i)}else if(i.text==="EOF")throw new F("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",i);if(e&&n)if((s===0||s===1&&e[o]==="{")&&i.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new F("The length of delimiters doesn't match the number of args!");for(var n=r[0],a=0;a<n.length;a++){var i=this.popToken();if(n[a]!==i.text)throw new F("Use of the macro doesn't match its definition",i)}}for(var s=[],o=0;o<e;o++)s.push(this.consumeArg(r&&r[o+1]).tokens);return s}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new F("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,a=r.noexpand?null:this._getExpansion(n);if(a==null||e&&a.unexpandable){if(e&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new F("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var c=i[o];if(c.text==="#"){if(o===0)throw new F("Incomplete placeholder at end of macro body",c);if(c=i[--o],c.text==="#")i.splice(o+1,1);else if(/^[1-9]$/.test(c.text))i.splice(o,2,...s[+c.text-1]);else throw new F("Not a valid argument number",c)}}}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 ft(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.includes("#"))for(var s=a.replace(/##/g,"");s.includes("#"+(i+1));)++i;for(var o=new Yo(a,this.settings),c=[],h=o.lex();h.text!=="EOF";)c.push(h),h=o.lex();c.reverse();var d={tokens:c,numArgs:i};return d}return a}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(hr,e)||Object.prototype.hasOwnProperty.call(Ee.math,e)||Object.prototype.hasOwnProperty.call(Ee.text,e)||Object.prototype.hasOwnProperty.call(du,e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Object.prototype.hasOwnProperty.call(hr,e)&&!hr[e].primitive}}var Jo=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,R0=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Va={"́":{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"}},el={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class ia{constructor(e,r){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 a4(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new F("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(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 r=this.nextToken;this.consume(),this.gullet.pushToken(new ft("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(ia.endOfExpression.has(a.text)||r&&a.text===r||e&&hr[a.text]&&hr[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,a=0;a<e.length;a++){var i=e[a];if(i.type==="infix"){if(r!==-1)throw new F("only one infix operator per group",i.token);r=a,n=i.replaceWith}}if(r!==-1&&n){var s,o,c=e.slice(0,r),h=e.slice(r+1);c.length===1&&c[0].type==="ordgroup"?s=c[0]:s={type:"ordgroup",mode:this.mode,body:c},h.length===1&&h[0].type==="ordgroup"?o=h[0]:o={type:"ordgroup",mode:this.mode,body:h};var d;return n==="\\\\abovefrac"?d=this.callFunction(n,[s,e[r],o],[]):d=this.callFunction(n,[s,o],[]),[d]}else return e}handleSupSubscript(e){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var a;do{var i;a=this.parseGroup(e)}while(((i=a)==null?void 0:i.type)==="internal");if(!a)throw new F("Expected group after '"+n+"'",r);return a}formatUnsupportedCmd(e){for(var r=[],n=0;n<e.length;n++)r.push({type:"textord",mode:"text",text:e[n]});var a={type:"text",mode:this.mode,body:r},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return i}parseAtom(e){var r=this.parseGroup("atom",e);if(r?.type==="internal"||this.mode==="text")return r;for(var n,a;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(r&&r.type==="op")r.limits=i.text==="\\limits",r.alwaysHandleSupSub=!0;else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=i.text==="\\limits");else throw new F("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(n)throw new F("Double superscript",i);n=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new F("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(n)throw new F("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},o=[s];for(this.consume();this.fetch().text==="'";)o.push(s),this.consume();this.fetch().text==="^"&&o.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:o}}else if(R0[i.text]){var c=Jo.test(i.text),h=[];for(h.push(new ft(R0[i.text])),this.consume();;){var d=this.fetch().text;if(!R0[d]||Jo.test(d)!==c)break;h.unshift(new ft(R0[d])),this.consume()}var v=this.subparse(h);c?a={type:"ordgroup",mode:"math",body:v}:n={type:"ordgroup",mode:"math",body:v}}else break}return n&&a?{type:"supsub",mode:this.mode,base:r,sup:n,sub:a}:n?{type:"supsub",mode:this.mode,base:r,sup:n}:a?{type:"supsub",mode:this.mode,base:r,sub:a}:r}parseFunction(e,r){var n=this.fetch(),a=n.text,i=hr[a];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new F("Got function '"+a+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!i.allowedInText)throw new F("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&i.allowedInMath===!1)throw new F("Can't use function '"+a+"' in math mode",n);var s=this.parseArguments(a,i),o=s.args,c=s.optArgs;return this.callFunction(a,o,c,n,e)}callFunction(e,r,n,a,i){var s={funcName:e,parser:this,token:a,breakOnTokenText:i},o=hr[e];if(o&&o.handler)return o.handler(s,r,n);throw new F("No function handler for "+e)}parseArguments(e,r){var n,a=(n=r.numOptionalArgs)!=null?n:0,i=r.numArgs+a;if(i===0)return{args:[],optArgs:[]};for(var s=[],o=[],c=0;c<i;c++){var h,d=(h=r.argTypes)==null?void 0:h[c],v=c<a;("primitive"in r&&r.primitive&&d==null||r.type==="sqrt"&&c===1&&o[0]==null)&&(d="primitive");var m=this.parseGroupOfType("argument to '"+e+"'",d,v);if(v)o.push(m);else if(m!=null)s.push(m);else throw new F("Null argument, please report this as a bug")}return{args:s,optArgs:o}}parseGroupOfType(e,r,n){switch(r){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,r);case"hbox":{var a=this.parseArgumentGroup(n,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text",resetFont:!0}:null}case"raw":{this.gullet.consumeSpaces();var i=this.gullet.lexer.catcodes["%"];this.gullet.lexer.setCatcode("%",12);var s=this.parseStringGroup(n);return this.gullet.lexer.setCatcode("%",i),s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(n)throw new F("A primitive argument cannot be optional");var o=this.parseGroup(e);if(o==null)throw new F("Expected group as "+e,this.fetch());return o}case"original":case void 0:return this.parseArgumentGroup(n);default:throw new F("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e){var r=this.gullet.scanArgument(e);if(r==null)return null;for(var n="",a;(a=this.fetch()).text!=="EOF";)n+=a.text,this.consume();return this.consume(),r.text=n,r}parseRegexGroup(e,r){for(var n=this.fetch(),a=n,i="",s;(s=this.fetch()).text!=="EOF"&&e.test(i+s.text);)a=s,i+=a.text,this.consume();if(i==="")throw new F("Invalid "+r+": '"+n.text+"'",n);return n.range(a,i)}parseColorGroup(e){var r=this.parseStringGroup(e);if(r==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(r.text);if(!n)throw new F("Invalid color: '"+r.text+"'",r);var a=n[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(e){var r,n=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup(e),!r)return null;!e&&r.text.length===0&&(r.text="0pt",n=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!a)throw new F("Invalid size: '"+r.text+"'",r);var i={number:+(a[1]+a[2]),unit:a[3]};if(!Ec(i))throw new F("Invalid unit: '"+i.unit+"'",r);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){var r=this.gullet.lexer.catcodes["%"],n=this.gullet.lexer.catcodes["~"];this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var a=this.parseStringGroup(e);if(this.gullet.lexer.setCatcode("%",r),this.gullet.lexer.setCatcode("~",n),a==null)return null;var i=a.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}}parseArgumentGroup(e,r){var n=this.gullet.scanArgument(e);if(n==null)return null;var a=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return r&&this.switchMode(a),s}parseGroup(e,r){var n=this.fetch(),a=n.text,i;if(a==="{"||a==="\\begingroup"){this.consume();var s=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),c=this.fetch();this.expect(s),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:ct.range(n,c),body:o,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,e)||this.parseSymbol(),i==null&&a[0]==="\\"&&!Object.prototype.hasOwnProperty.call(du,a)){if(this.settings.throwOnError)throw new F("Undefined control sequence: "+a,n);i=this.formatUnsupportedCmd(a),this.consume()}return i}formLigatures(e){for(var r=e.length-1,n=0;n<r;++n){var a=e[n];if(a.type==="textord"){var i=a.text,s=e[n+1];if(!(!s||s.type!=="textord")){if(i==="-"&&s.text==="-"){var o=e[n+2];n+1<r&&o&&o.type==="textord"&&o.text==="-"?(e.splice(n,3,{type:"textord",mode:"text",loc:ct.range(a,o),text:"---"}),r-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:ct.range(a,s),text:"--"}),r-=1)}(i==="'"||i==="`")&&s.text===i&&(e.splice(n,2,{type:"textord",mode:"text",loc:ct.range(a,s),text:i+i}),r-=1)}}}}parseSymbol(){var e=this.fetch(),r=e.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),a=n.charAt(0)==="*";if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new F(`\\verb assertion failed --
345
+ please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}Object.prototype.hasOwnProperty.call(el,r[0])&&!Ee[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&ut({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Accented Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}),r=el[r[0]]+r.slice(1));var i=Jm.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(Ee[this.mode][r]){this.settings.strict&&this.mode==="math"&&gi.includes(r)&&ut({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Latin-1/Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e});var o=Ee[this.mode][r].group,c=ct.range(e),h;um(o)?h={type:"atom",mode:this.mode,family:o,loc:c,text:r}:h={type:o,mode:this.mode,loc:c,text:r},s=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(Tc(r.charCodeAt(0))?this.mode==="math"&&ut({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}):ut({strict:this.settings.strict,errorCode:"unknownSymbol",errorMsg:'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),report:!0,token:e})),s={type:"textord",mode:"text",loc:ct.range(e),text:r};else return null;if(this.consume(),i)for(var d=0;d<i[0].length;d++){var v=i[0][d];if(!Va[v])throw new F("Unknown accent ' "+v+"'",e);var m=Va[v][this.mode]||Va[v].text;if(!m)throw new F("Accent "+v+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:ct.range(e),label:m,isStretchy:!1,isShifty:!0,base:s}}return s}}ia.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var i4=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new ia(e,r);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new F("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new ft("\\df@tag")])}]}return a};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.");var s4=function(e,r){var n=l4(e,r).toMarkup();return n},o4=function(e,r,n){if(n.throwOnError||!(e instanceof F))throw e;var a=$(["katex-error"],[new xt(r)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+n.errorColor),a},l4=function(e,r){var n=new cp(r);try{var a=i4(e,n);return tm(a,e,n)}catch(i){return o4(i,e,n)}};const pu=4096,c4=t=>t==="symbolNotInFont"?"ignore":"error";function mu(t,e){return s4(t,{displayMode:e,output:"htmlAndMathml",throwOnError:!1,strict:c4,trust:!1,maxExpand:100,maxSize:20})}const ds=/<!--\s*anchor:[^:]+:[^-]+\s*-->/g,tl=/^<!--\s*anchor:[^:]+:end\s*-->$/;function Jn(t){return t.replace(ds,"")}function u4(t){return t.startsWith("<!--")&&Jn(t)!==""}function fu(t){return t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;")}function rl(t){return fu(t).replace(/>/g,"&gt;")}function nl(t){let e="",r=0;for(const n of t.matchAll(ds))e+=rl(t.slice(r,n.index))+n[0],r=n.index+n[0].length;return e+rl(t.slice(r))}function al(t,e){if(!e||t.literalOnly||t.text.length>pu){const r=nl(t.source);return t.displayMode?`<p>${r.replace(/\n/g,"<br>")}</p>
346
346
  `:r}try{const r=mu(t.text,t.displayMode),n=t.displayMode?"div":"span",a=t.displayMode?"math-display":"math-inline",i=t.displayMode?`
347
- `:"",s=Array.from(t.source.matchAll(ds),d=>d[0]),o=s.filter(d=>!tl.test(d)).join(""),c=s.filter(d=>tl.test(d)).join(""),h=fu(Jn(t.source));return`${o}<${n} class="${a}" data-math-source="${h}">${r}</${n}>${c}${i}`}catch{return nl(t.source)}}function u4(t){if(t.startsWith("$$"))return;const e=/^\$((?:\\.|[^\\$\n])+?)\$/.exec(t);if(!e)return;const r=Jn(e[1]);if(/^\s|\s$/.test(r)||/^[\d.,]+$/.test(r))return;const n=t[e[0].length];if(!(n&&/\d/.test(n)))return{type:"mathInline",raw:e[0],text:r,source:e[0],displayMode:!1,literalOnly:!r}}function h4(t){const e=/^\$\$[^\n]*?\$\$/.exec(t)?.[0]??/^\\\[[^\n]*?\\\]/.exec(t)?.[0];if(e)return{type:"mathInline",raw:e,text:"",source:e,displayMode:!1,literalOnly:!0}}function d4(t){const e=/^\\\(((?:\\.|[^\\\n])*?)\\\)/.exec(t);if(!e){const n=/^\\\([^\n]*/.exec(t)?.[0];return n?{type:"mathInline",raw:n,text:"",source:n,displayMode:!1,literalOnly:!0}:void 0}const r=Jn(e[1]);return{type:"mathInline",raw:e[0],text:r,source:e[0],displayMode:!1,literalOnly:!r.trim()}}function gu(t){const e=/^( {0,3})\$\$[ \t]*([\s\S]*?)[ \t]*\$\$(?:[ \t]*(?:\n|$))/.exec(t),r=/^( {0,3})\\\[[ \t]*([\s\S]*?)[ \t]*\\\](?:[ \t]*(?:\n|$))/.exec(t),n=e??r;if(!n){const s=/^( {0,3})(?:\$\$|\\\[)[^\n]*(?:\n|$)/.exec(t);if(!s)return;const o=s[0].trimEnd().slice(s[1].length);return{type:"mathDisplay",raw:s[0],text:"",source:o,displayMode:!0,literalOnly:!0}}const a=n[0].trimEnd().slice(n[1].length),i=Jn(n[2]);return{type:"mathDisplay",raw:n[0],text:i,source:a,displayMode:!0,literalOnly:!i.trim()}}function vu(t){return h4(t)??u4(t)??d4(t)}function p4(t,e){const r=/\\.|\$/g,n=[];let a=0,i=-1,s=0,o;for(;o=r.exec(t);){const c=o.index,h=t.slice(c);if(c>i){const v=t.lastIndexOf(`
347
+ `:"",s=Array.from(t.source.matchAll(ds),d=>d[0]),o=s.filter(d=>!tl.test(d)).join(""),c=s.filter(d=>tl.test(d)).join(""),h=fu(Jn(t.source));return`${o}<${n} class="${a}" data-math-source="${h}">${r}</${n}>${c}${i}`}catch{return nl(t.source)}}function h4(t){if(t.startsWith("$$"))return;const e=/^\$((?:\\.|[^\\$\n])+?)\$/.exec(t);if(!e)return;const r=Jn(e[1]);if(/^\s|\s$/.test(r)||/^[\d.,]+$/.test(r))return;const n=t[e[0].length];if(!(n&&/\d/.test(n)))return{type:"mathInline",raw:e[0],text:r,source:e[0],displayMode:!1,literalOnly:!r}}function d4(t){const e=/^\$\$[^\n]*?\$\$/.exec(t)?.[0]??/^\\\[[^\n]*?\\\]/.exec(t)?.[0];if(e)return{type:"mathInline",raw:e,text:"",source:e,displayMode:!1,literalOnly:!0}}function p4(t){const e=/^\\\(((?:\\.|[^\\\n])*?)\\\)/.exec(t);if(!e){const n=/^\\\([^\n]*/.exec(t)?.[0];return n?{type:"mathInline",raw:n,text:"",source:n,displayMode:!1,literalOnly:!0}:void 0}const r=Jn(e[1]);return{type:"mathInline",raw:e[0],text:r,source:e[0],displayMode:!1,literalOnly:!r.trim()}}function gu(t){const e=/^( {0,3})\$\$[ \t]*([\s\S]*?)[ \t]*\$\$(?:[ \t]*(?:\n|$))/.exec(t),r=/^( {0,3})\\\[[ \t]*([\s\S]*?)[ \t]*\\\](?:[ \t]*(?:\n|$))/.exec(t),n=e??r;if(!n){const s=/^( {0,3})(?:\$\$|\\\[)[^\n]*(?:\n|$)/.exec(t);if(!s)return;const o=s[0].trimEnd().slice(s[1].length);return{type:"mathDisplay",raw:s[0],text:"",source:o,displayMode:!0,literalOnly:!0}}const a=n[0].trimEnd().slice(n[1].length),i=Jn(n[2]);return{type:"mathDisplay",raw:n[0],text:i,source:a,displayMode:!0,literalOnly:!i.trim()}}function vu(t){return d4(t)??h4(t)??p4(t)}function m4(t,e){const r=/\\.|\$/g,n=[];let a=0,i=-1,s=0,o;for(;o=r.exec(t);){const c=o.index,h=t.slice(c);if(c>i){const v=t.lastIndexOf(`
348
348
  `,c-1)+1,m=t.indexOf(`
349
- `,c);i=m<0?t.length:m;const w=/^(?: {0,3}>[ \t]?)*(?: {0,3}(?:[-+*]|\d+[.)])[ \t]+)? {0,3}/.exec(t.slice(v))?.[0]??"";s=v+w.length}const d=(c===s?gu(h):void 0)??vu(h);d&&(n.push(t.slice(a,c),e(d.raw)),a=c+d.raw.length,r.lastIndex=a)}return n.push(t.slice(a)),n.join("")}function m4(t,e){t.use({extensions:[{name:"mathHtmlParagraph",level:"block",tokenizer(r){if(!/^(?: {0,3})(?:<!--|<br\s*\/?>|<\/?(?:sub|sup)>)/i.test(r))return;const{pedantic:n,gfm:a,extensions:i}=this.lexer.options,s=wt.rules.block[n?"pedantic":a?"gfm":"normal"];let o=r.length;const c=r.slice(1),h=i?.startBlock??[];for(const A of h){const C=A.call(this,c);typeof C=="number"&&C>=0&&(o=Math.min(o,C+1))}let d=s.paragraph.exec(r.slice(0,o))?.[0];if(!d)return;const v=d.split(`
349
+ `,c);i=m<0?t.length:m;const w=/^(?: {0,3}>[ \t]?)*(?: {0,3}(?:[-+*]|\d+[.)])[ \t]+)? {0,3}/.exec(t.slice(v))?.[0]??"";s=v+w.length}const d=(c===s?gu(h):void 0)??vu(h);d&&(n.push(t.slice(a,c),e(d.raw)),a=c+d.raw.length,r.lastIndex=a)}return n.push(t.slice(a)),n.join("")}function f4(t,e){t.use({extensions:[{name:"mathHtmlParagraph",level:"block",tokenizer(r){if(!/^(?: {0,3})(?:<!--|<br\s*\/?>|<\/?(?:sub|sup)>)/i.test(r))return;const{pedantic:n,gfm:a,extensions:i}=this.lexer.options,s=wt.rules.block[n?"pedantic":a?"gfm":"normal"];let o=r.length;const c=r.slice(1),h=i?.startBlock??[];for(const A of h){const C=A.call(this,c);typeof C=="number"&&C>=0&&(o=Math.min(o,C+1))}let d=s.paragraph.exec(r.slice(0,o))?.[0];if(!d)return;const v=d.split(`
350
350
  `);let m=v[0].length+1;for(const A of v.slice(1)){if(h.some(C=>C.call(this,`${A}
351
- `)===0)){d=d.slice(0,m);break}m+=A.length+1}const w=this.lexer.inlineTokens(d.trimEnd()).filter(A=>!(A.type==="html"&&c4(A.raw)));if(w.some(A=>A.type==="mathInline"))return{type:"mathHtmlParagraph",raw:d,tokens:w}},renderer(r){return`<p>${this.parser.parseInline(r.tokens??[])}</p>
352
- `}},{name:"mathDisplay",level:"block",start:r=>r.search(/^(?: {0,3})(?:\$\$|\\\[)/m),tokenizer:gu,renderer:r=>al(r,e)},{name:"mathInline",level:"inline",start:r=>r.search(/\$|\\[([]/),tokenizer:vu,renderer:r=>al(r,e)}]})}const il=/<!--agent:([^>]+)-->/,sl=/^\[([ xX])\]\s*$/;function Ka(t){const e=[];let r=null;for(const n of t)if(n.type!=="checkbox")if(n.type==="text"){const a=n.tokens?[...n.tokens]:[n];r?(r.raw+=n.raw??"",r.text+=n.text??"",r.tokens.push(...a)):(r={type:"paragraph",raw:n.raw??"",text:n.text??"",tokens:a},e.push(r))}else r=null,e.push(n);return e}function ol(t){const e=t.match(il);return e?{content:t.replace(il,"").trim(),agentId:e[1]}:{content:t,agentId:null}}const f4=(t={})=>{const e=new Sc;function r(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}return e.use({gfm:!0,breaks:!0,renderer:{code(n){if(n.lang==="mermaid"){const s=n.text||"";return`<div data-type="mermaid-block" data-mermaid-code="${btoa(unescape(encodeURIComponent(s)))}"></div>
351
+ `)===0)){d=d.slice(0,m);break}m+=A.length+1}const w=this.lexer.inlineTokens(d.trimEnd()).filter(A=>!(A.type==="html"&&u4(A.raw)));if(w.some(A=>A.type==="mathInline"))return{type:"mathHtmlParagraph",raw:d,tokens:w}},renderer(r){return`<p>${this.parser.parseInline(r.tokens??[])}</p>
352
+ `}},{name:"mathDisplay",level:"block",start:r=>r.search(/^(?: {0,3})(?:\$\$|\\\[)/m),tokenizer:gu,renderer:r=>al(r,e)},{name:"mathInline",level:"inline",start:r=>r.search(/\$|\\[([]/),tokenizer:vu,renderer:r=>al(r,e)}]})}const il=/<!--agent:([^>]+)-->/,sl=/^\[([ xX])\]\s*$/;function Ka(t){const e=[];let r=null;for(const n of t)if(n.type!=="checkbox")if(n.type==="text"){const a=n.tokens?[...n.tokens]:[n];r?(r.raw+=n.raw??"",r.text+=n.text??"",r.tokens.push(...a)):(r={type:"paragraph",raw:n.raw??"",text:n.text??"",tokens:a},e.push(r))}else r=null,e.push(n);return e}function ol(t){const e=t.match(il);return e?{content:t.replace(il,"").trim(),agentId:e[1]}:{content:t,agentId:null}}const g4=(t={})=>{const e=new Sc;function r(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}return e.use({gfm:!0,breaks:!0,renderer:{code(n){if(n.lang==="mermaid"){const s=n.text||"";return`<div data-type="mermaid-block" data-mermaid-code="${btoa(unescape(encodeURIComponent(s)))}"></div>
353
353
  `}if(n.lang==="diff"){const s=n.text||"";return`<div data-type="diff-block" data-diff-code="${btoa(unescape(encodeURIComponent(s)))}"></div>
354
354
  `}const a=n.lang||"",i=r(n.text||"");return`<pre><code${a?` class="language-${a}"`:""}>${i}</code></pre>
355
355
  `},image(n){const a=n.href||"",i=n.text||"",s=n.title,o=s?` title="${r(s)}"`:"";return`<img src="${a}" alt="${r(i)}"${o} class="note-image max-w-full rounded-md">`},paragraph(n){const i=(n.tokens||[]).filter(s=>s.type!=="text"||s.text&&s.text.trim()!=="");if(i.length===1&&i[0].type==="image"){const s=i[0],o=s.href||"",c=s.text||"",h=s.title,d=h?` title="${r(h)}"`:"";return`<img src="${o}" alt="${r(c)}"${d} class="note-image max-w-full rounded-md">
@@ -364,37 +364,37 @@ ${d}
364
364
  ${n.items.map(c=>this.listitem(c)).join(`
365
365
  `)}
366
366
  </ul>
367
- `:!1},listitem(n){if(n.task===!0){const a=n.checked;let i="";n.tokens&&n.tokens.length>0?i=this.parser.parse(Ka(n.tokens)):i=n.text||"";const{content:s,agentId:o}=ol(i);i=s,(!i||i.trim()===""||i.trim()==="<p></p>")&&(i="<p></p>");const c=a?"done":"todo",h=o?` data-delegated-agent-id="${o}"`:"";return`<li class="task-item flex items-start gap-2" data-type="taskItem" data-checked="${a}" data-status="${c}"${h}><label><input type="checkbox" disabled${a?" checked":""}><span></span></label><div>${i}</div></li>`}else{const a=n.text||"",i=n.raw||"",s=a.match(sl);if(s){const h=s[1]!==" ";return`<li class="task-item flex items-start gap-2" data-type="taskItem" data-checked="${h}" data-status="${h?"done":"todo"}"><label><input type="checkbox" disabled${h?" checked":""}><span></span></label><div><p></p></div></li>`}const o=a.match(/^\[\/\]\s+(.*)$/)||i.match(/^-\s+\[\/\]\s+(.*)$/m);if(o){const h=o[1];let d="";if(n.tokens&&n.tokens.length>0){const A=[...n.tokens];if(A[0]&&A[0].type==="text"){const C=A[0].tokens?[...A[0].tokens]:[];C[0]&&C[0].type==="text"&&(C[0]={...C[0],text:C[0].text.replace(/^\[\/\]\s+/,""),raw:C[0].raw?.replace(/^\[\/\]\s+/,"")}),A[0]={...A[0],text:A[0].text.replace(/^\[\/\]\s+/,""),raw:A[0].raw?.replace(/^\[\/\]\s+/,""),tokens:C}}d=this.parser.parse(Ka(A))}else d=`<p>${h}</p>`;const{content:v,agentId:m}=ol(d);return d=v,(!d||d.trim()===""||d.trim()==="<p></p>")&&(d="<p></p>"),`<li class="task-item flex items-start gap-2" data-type="taskItem" data-checked="false" data-status="in-progress"${m?` data-delegated-agent-id="${m}"`:""}><label><input type="checkbox" disabled><span></span></label><div>${d}</div></li>`}let c="";if(n.tokens&&n.tokens.length>0)try{c=this.parser.parse(Ka(n.tokens))}catch{c=n.text||""}return`<li>${c}</li>`}}}}),e.use(Qd),m4(e,t.renderMath===!0),Yd(e),e};function bu(t){const e=t.split(`
367
+ `:!1},listitem(n){if(n.task===!0){const a=n.checked;let i="";n.tokens&&n.tokens.length>0?i=this.parser.parse(Ka(n.tokens)):i=n.text||"";const{content:s,agentId:o}=ol(i);i=s,(!i||i.trim()===""||i.trim()==="<p></p>")&&(i="<p></p>");const c=a?"done":"todo",h=o?` data-delegated-agent-id="${o}"`:"";return`<li class="task-item flex items-start gap-2" data-type="taskItem" data-checked="${a}" data-status="${c}"${h}><label><input type="checkbox" disabled${a?" checked":""}><span></span></label><div>${i}</div></li>`}else{const a=n.text||"",i=n.raw||"",s=a.match(sl);if(s){const h=s[1]!==" ";return`<li class="task-item flex items-start gap-2" data-type="taskItem" data-checked="${h}" data-status="${h?"done":"todo"}"><label><input type="checkbox" disabled${h?" checked":""}><span></span></label><div><p></p></div></li>`}const o=a.match(/^\[\/\]\s+(.*)$/)||i.match(/^-\s+\[\/\]\s+(.*)$/m);if(o){const h=o[1];let d="";if(n.tokens&&n.tokens.length>0){const A=[...n.tokens];if(A[0]&&A[0].type==="text"){const C=A[0].tokens?[...A[0].tokens]:[];C[0]&&C[0].type==="text"&&(C[0]={...C[0],text:C[0].text.replace(/^\[\/\]\s+/,""),raw:C[0].raw?.replace(/^\[\/\]\s+/,"")}),A[0]={...A[0],text:A[0].text.replace(/^\[\/\]\s+/,""),raw:A[0].raw?.replace(/^\[\/\]\s+/,""),tokens:C}}d=this.parser.parse(Ka(A))}else d=`<p>${h}</p>`;const{content:v,agentId:m}=ol(d);return d=v,(!d||d.trim()===""||d.trim()==="<p></p>")&&(d="<p></p>"),`<li class="task-item flex items-start gap-2" data-type="taskItem" data-checked="false" data-status="in-progress"${m?` data-delegated-agent-id="${m}"`:""}><label><input type="checkbox" disabled><span></span></label><div>${d}</div></li>`}let c="";if(n.tokens&&n.tokens.length>0)try{c=this.parser.parse(Ka(n.tokens))}catch{c=n.text||""}return`<li>${c}</li>`}}}}),e.use(Jd),f4(e,t.renderMath===!0),Zd(e),e};function bu(t){const e=t.split(`
368
368
  `),r=[];for(const n of e){const a=/^(\s*)((?:<!--anchor:[^>]+-->\s*)+)(#{1,6}\s+|-\s+\[[x ]\]\s+|[-*]\s+|\d+\.\s+|>\s+|```)/,i=n.match(a);if(i){const[,s,o,c]=i,h=n.slice(i[0].length);r.push(`${s}${c}${o}${h}`)}else r.push(n)}return r.join(`
369
- `)}/*! @license DOMPurify 3.4.18 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.18/LICENSE */function ll(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function g4(t){if(Array.isArray(t))return t}function v4(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,s,o=[],c=!0,h=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(c=(n=i.call(r)).done)&&(o.push(n.value),o.length!==e);c=!0);}catch(d){h=!0,a=d}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(h)throw a}}return o}}function b4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
370
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function y4(t,e){return g4(t)||v4(t,e)||w4(t,e)||b4()}function w4(t,e){if(t){if(typeof t=="string")return ll(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ll(t,e):void 0}}const yu=Object.entries,k4=Object.keys,cl=Object.setPrototypeOf,x4=Object.isFrozen,wu=Object.getPrototypeOf,ku=Object.getOwnPropertyDescriptor;let Ke=Object.freeze,Be=Object.seal,lr=Object.create,xu=typeof Reflect<"u"&&Reflect,G0=xu.apply,zi=xu.construct;Ke||(Ke=function(e){return e});Be||(Be=function(e){return e});G0||(G0=function(e,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];return e.apply(r,a)});zi||(zi=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return new e(...n)});const Ht=ze(Array.prototype.forEach),S4=ze(Array.prototype.lastIndexOf),ul=ze(Array.prototype.pop),zn=ze(Array.prototype.push),A4=ze(Array.prototype.slice),T4=ze(Array.prototype.splice),ln=Array.isArray,Xa=Su(Set),Ya=ze(Set.prototype.add),Rn=ze(Set.prototype.has),Rr=ze(String.prototype.toLowerCase),Za=ze(String.prototype.toString),E4=ze(String.prototype.match),D0=ze(String.prototype.replace),Qa=ze(String.prototype.indexOf),C4=ze(String.prototype.trim),M4=ze(Number.prototype.toString),I4=ze(Boolean.prototype.toString),hl=typeof BigInt>"u"?null:ze(BigInt.prototype.toString),dl=typeof Symbol>"u"?null:ze(Symbol.prototype.toString),Qe=ze(Object.prototype.hasOwnProperty),Dn=ze(Object.prototype.toString),z4=RegExp.prototype.test,Ge=function(e,r){return e instanceof RegExp&&(e.lastIndex=0),G0(z4,e,[r])},Ut=Su(TypeError);function ze(t){return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return G0(t,e,n)}}function Su(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return zi(t,r)}}function ge(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rr;if(cl&&cl(t,null),!ln(e))return t;let n=e.length;for(;n--;){let a=e[n];if(typeof a=="string"){const i=r(a);i!==a&&(x4(e)||(e[n]=i),a=i)}t[a]=!0}return t}function R4(t){for(let e=0;e<t.length;e++)Qe(t,e)||(t[e]=null);return t}function j0(t){const e=lr(null);for(const n of yu(t)){var r=y4(n,2);const a=r[0],i=r[1];Qe(t,a)&&(ln(i)?e[a]=R4(i):i&&typeof i=="object"&&i.constructor===Object?e[a]=j0(i):e[a]=i)}return e}function $n(t){const e=lr(null),r=k4(t);let n=r.length;for(;n--;)e[r[n]]=t[r[n]];return e}function D4(t){switch(typeof t){case"string":return t;case"number":return M4(t);case"boolean":return I4(t);case"bigint":return hl?hl(t):"0";case"symbol":return dl?dl(t):"Symbol()";case"undefined":return Dn(t);case"function":case"object":{if(t===null)return Dn(t);const e=t,r=yt(e,"toString");if(typeof r=="function"){const n=r(e);return typeof n=="string"?n:Dn(n)}return Dn(t)}default:return Dn(t)}}function yt(t,e){for(;t!==null;){const n=ku(t,e);if(n){if(n.get)return ze(n.get);if(typeof n.value=="function")return ze(n.value)}t=wu(t)}function r(){return null}return r}function N4(t,e){for(;t!==null;){const r=ku(t,e);if(r)return r.get?ze(r.get):null;t=wu(t)}return null}function P4(t){if(!t)return!1;try{return Ge(t,""),!0}catch{return!1}}const pl=Ke(["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"]),Ja=Ke(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ei=Ke(["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"]),_4=Ke(["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"]),ti=Ke(["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"]),L4=Ke(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ml=Ke(["#text"]),fl=Ke(["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"]),ri=Ke(["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"]),gl=Ke(["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"]),N0=Ke(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),O4=Be(/{{[\w\W]*|^[\w\W]*}}/g),$4=Be(/<%[\w\W]*|^[\w\W]*%>/g),B4=Be(/\${[\w\W]*/g),q4=Be(/{{|}}|\${|<%|%>|&lt;%|%&gt;/),F4=Be(/^data-[\-\w.\u00B7-\uFFFF]+$/),H4=Be(/^aria-[\-\w]+$/),vl=Be(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U4=Be(/^(?:\w+script|data):/i),W4=Be(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G4=Be(/^html$/i),j4=Be(/^[a-z][.\w]*(-[.\w]+)+$/i),ni=Be(/<[/\w!]/g),bl=Be(/<[/\w]/g),V4=Be(/<\/no(script|embed|frames)/i),yl=Be(/\/>/i),K4=Be(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i),X4=Be(/^[\r\n\t ]+/),_e={element:1,text:3,processingInstruction:7,comment:8,document:9,documentFragment:11},Y4=Ke(ge({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),Z4=function(){return typeof window>"u"?null:window},Q4=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const a="data-tt-policy-suffix";r&&r.hasAttribute(a)&&(n=r.getAttribute(a));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},wl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},sr=function(e,r,n,a){return Qe(e,r)&&ln(e[r])?ge(a.base?$n(a.base):{},e[r],a.transform):n},ai=function(e,r,n){const a=Qe(e,r)?e[r]:void 0;return a&&typeof a=="object"?j0(a):n};function Au(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Z4();const e=P=>Au(P);if(e.version="3.4.18",e.removed=[],!t||!t.document||t.document.nodeType!==_e.document||!t.Element)return e.isSupported=!1,e;let r=t.document;const n=r,a=n.currentScript,i=t.HTMLTemplateElement,s=t.Node,o=t.Element,c=t.NodeFilter,h=t.DOMParser,d=t.trustedTypes,v=o.prototype,m=yt(v,"cloneNode"),w=yt(v,"remove"),A=yt(v,"removeAttributeNode"),C=yt(v,"nextSibling"),M=yt(v,"childNodes"),k=yt(v,"parentNode"),I=yt(v,"shadowRoot"),R=yt(v,"attributes"),Z=s&&s.prototype?yt(s.prototype,"nodeType"):null,K=s&&s.prototype?yt(s.prototype,"nodeName"):null,ee=s&&s.prototype?yt(s.prototype,"ownerDocument"):null,T=function(g){return Z?Z(g):g.nodeType},B=function(g){return K?K(g):g.nodeName},q=N4(v,"namespaceURI"),X=function(g){return q?q(g):g.namespaceURI};if(typeof i=="function"){const P=r.createElement("template");P.content&&P.content.ownerDocument&&(r=P.content.ownerDocument)}let N,D="",W,_=!1,Q=0;const Y=function(){if(Q>0)throw Ut('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.')},te=function(g){Y(),Q++;try{return N.createHTML(g)}finally{Q--}},be=function(g){return N&&ha?te(g):g},Ne=function(g){Y(),Q++;try{return N.createScriptURL(g)}finally{Q--}},he=function(){return _||(W=Q4(d,a),_=!0),W},Ae=r,At=Ae.implementation,Xe=Ae.createNodeIterator,Qt=Ae.createDocumentFragment,ht=Ae.getElementsByTagName,Wr=n.importNode;let ye=wl();e.isSupported=typeof yu=="function"&&typeof k=="function"&&At&&At.createHTMLDocument!==void 0;const a0=O4,Jt=$4,i0=B4,s0=F4,o0=H4,Gr=U4,jr=W4,la=j4;let l0=vl,Te=null;const Vr=ge({},[...pl,...Ja,...ei,...ti,...ml]);let Se=null;const er=ge({},[...fl,...ri,...gl,...N0]);let bt=null,wr=null,Kr=null;const Tt=Object.seal(lr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let An=!0,Tn=!0,c0=!1,tr=!0,st=!1,kr=!0,xr=!1,ca=!1,u0=null,h0=null,ua=!1,Xr=!1,d0=!1,ha=!1,As=!0,Ts=!1;const Es="user-content-";let da=!0,pa=!1,Sr=null,Yr=!1,Ar=null;const Cs=ge({},["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"]);let Ms=null;const Is=ge({},["audio","video","img","source","image","track"]);let zs=null;const Rs=ge({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),p0="http://www.w3.org/1998/Math/MathML",m0="http://www.w3.org/2000/svg",zt="http://www.w3.org/1999/xhtml";let Zr=zt,ma=!1,Ds=null;const a1=ge({},[p0,m0,zt],Za),i1=Ke(ge({},["mi","mo","mn","ms","mtext"]));let fa=null;const s1=Ke(ge({},["annotation-xml"]));let ga=null;const o1=Ke(lr(null)),l1=ge({},["title","style","font","a","script"]);let En=null;const c1=["application/xhtml+xml","text/html"],u1="text/html";let Pe=null,f0=null;const h1=r.createElement("form"),Ns=function(g){return g instanceof RegExp||g instanceof Function},va=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(!g||typeof g!="object")&&(g={}),g=j0(g),En=c1.indexOf(g.PARSER_MEDIA_TYPE)===-1?u1:g.PARSER_MEDIA_TYPE,Pe=En==="application/xhtml+xml"?Za:Rr,Te=sr(g,"ALLOWED_TAGS",Vr,{transform:Pe}),Se=sr(g,"ALLOWED_ATTR",er,{transform:Pe}),Ds=sr(g,"ALLOWED_NAMESPACES",a1,{transform:Za}),zs=sr(g,"ADD_URI_SAFE_ATTR",Rs,{transform:Pe,base:Rs}),Ms=sr(g,"ADD_DATA_URI_TAGS",Is,{transform:Pe,base:Is}),Ar=sr(g,"FORBID_CONTENTS",Cs,{transform:Pe}),wr=sr(g,"FORBID_TAGS",lr(null),{transform:Pe}),Kr=sr(g,"FORBID_ATTR",lr(null),{transform:Pe}),Yr=Qe(g,"USE_PROFILES")?g.USE_PROFILES&&typeof g.USE_PROFILES=="object"?j0(g.USE_PROFILES):g.USE_PROFILES:!1,An=g.ALLOW_ARIA_ATTR!==!1,Tn=g.ALLOW_DATA_ATTR!==!1,c0=g.ALLOW_UNKNOWN_PROTOCOLS||!1,tr=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,st=g.SAFE_FOR_TEMPLATES||!1,kr=g.SAFE_FOR_XML!==!1,xr=g.WHOLE_DOCUMENT||!1,Xr=g.RETURN_DOM||!1,d0=g.RETURN_DOM_FRAGMENT||!1,ha=g.RETURN_TRUSTED_TYPE||!1,ua=g.FORCE_BODY||!1,As=g.SANITIZE_DOM!==!1,Ts=g.SANITIZE_NAMED_PROPS||!1,da=g.KEEP_CONTENT!==!1,pa=g.IN_PLACE||!1,l0=P4(g.ALLOWED_URI_REGEXP)?g.ALLOWED_URI_REGEXP:vl,Zr=typeof g.NAMESPACE=="string"?g.NAMESPACE:zt,fa=ai(g,"MATHML_TEXT_INTEGRATION_POINTS",i1),ga=ai(g,"HTML_INTEGRATION_POINTS",s1);const S=ai(g,"CUSTOM_ELEMENT_HANDLING",o1);if(bt=lr(null),Qe(S,"tagNameCheck")&&Ns(S.tagNameCheck)&&(bt.tagNameCheck=S.tagNameCheck),Qe(S,"attributeNameCheck")&&Ns(S.attributeNameCheck)&&(bt.attributeNameCheck=S.attributeNameCheck),Qe(S,"allowCustomizedBuiltInElements")&&typeof S.allowCustomizedBuiltInElements=="boolean"&&(bt.allowCustomizedBuiltInElements=S.allowCustomizedBuiltInElements),Be(bt),st&&(Tn=!1),d0&&(Xr=!0),Yr&&((Qe(g,"ALLOWED_TAGS")||Qe(g,"ALLOWED_ATTR"))&&typeof console<"u"&&typeof console.warn=="function"&&console.warn("DOMPurify: USE_PROFILES overrides ALLOWED_TAGS and ALLOWED_ATTR. Do not use these options together."),Te=ge({},ml),Se=lr(null),Yr.html===!0&&(ge(Te,pl),ge(Se,fl)),Yr.svg===!0&&(ge(Te,Ja),ge(Se,ri),ge(Se,N0)),Yr.svgFilters===!0&&(ge(Te,ei),ge(Se,ri),ge(Se,N0)),Yr.mathMl===!0&&(ge(Te,ti),ge(Se,gl),ge(Se,N0))),Tt.tagCheck=null,Tt.attributeCheck=null,Qe(g,"ADD_TAGS")&&(typeof g.ADD_TAGS=="function"?Tt.tagCheck=g.ADD_TAGS:ln(g.ADD_TAGS)&&(Te===Vr&&(Te=$n(Te)),ge(Te,g.ADD_TAGS,Pe))),Qe(g,"ADD_ATTR")&&(typeof g.ADD_ATTR=="function"?Tt.attributeCheck=g.ADD_ATTR:ln(g.ADD_ATTR)&&(Se===er&&(Se=$n(Se)),ge(Se,g.ADD_ATTR,Pe))),Qe(g,"ADD_FORBID_CONTENTS")&&ln(g.ADD_FORBID_CONTENTS)&&(Ar===Cs&&(Ar=$n(Ar)),ge(Ar,g.ADD_FORBID_CONTENTS,Pe)),da&&(Te["#text"]=!0),xr&&ge(Te,["html","head","body"]),Te.table&&(Te.tbody=!0,delete wr.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ut('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ut('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const z=N;N=g.TRUSTED_TYPES_POLICY;try{D=te("")}catch(O){throw N=z,O}}else g.TRUSTED_TYPES_POLICY===null?(N=void 0,D=""):(N===void 0&&(N=he()),N&&typeof D=="string"&&(D=te("")));f0=Ke(g)},Ps=ge({},[...Ja,...ei,..._4]),_s=ge({},[...ti,...L4]),d1=function(g,S,z){return S===zt?g==="svg":S===p0?g==="svg"&&(z==="annotation-xml"||fa[z]):!!Ps[g]},p1=function(g,S,z){return S===zt?g==="math":S===m0?g==="math"&&ga[z]:!!_s[g]},m1=function(g,S,z){return S===m0&&!ga[z]||S===p0&&!fa[z]?!1:!_s[g]&&(l1[g]||!Ps[g])},f1=function(g){const S=X(g),z=Rr(B(g)),O=k(g);let J=Zr,ne="template";return O&&T(O)===_e.element&&(J=X(O),ne=Rr(B(O))),Ds[S]?S===m0?d1(z,J,ne):S===p0?p1(z,J,ne):S===zt?m1(z,J,ne):En==="application/xhtml+xml":!1},rr=function(g){zn(e.removed,{element:g});try{k(g).removeChild(g)}catch{if(w(g),!k(g))throw Ut("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ls=function(g,S,z){try{A(g,S)}catch{try{g.removeAttribute(z)}catch{}}},ba=function(g){ka(g);const S=M(g);S&&Ht(A4(S),z=>{try{w(z)}catch{}}),T(g)===_e.element&&ya(g,!1)},Qr=function(g,S,z){if(!z)try{z=S.getAttributeNode(g)}catch{z=null}if(zn(e.removed,{attribute:z||null,from:S}),z)Ls(S,z,g);else try{S.removeAttribute(g)}catch{}if(g==="is")if(Xr||d0)try{rr(S)}catch{}else try{S.setAttribute(g,"")}catch{}},ya=function(g,S){const z=R(g);if(z)for(let O=z.length-1;O>=0;--O){const J=z[O],ne=J&&J.name;typeof ne=="string"&&!(S&&Se[Pe(ne)])&&Ls(g,J,ne)}},wa=function(g,S){let z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const O=[g];for(;O.length>0;){const J=O.pop();if(S(J)===!1)continue;if(z&&T(J)===_e.element){const ce=I(J);Jr(ce)&&O.push(ce)}const ne=M(J);if(ne)for(let ce=ne.length-1;ce>=0;--ce)O.push(ne[ce])}},ka=function(g){wa(g,S=>{T(S)===_e.element&&ya(S,!0)})},xa=function(g){const S=[];return wa(g,z=>{S.push(z)},!0),S},g1=function(g,S){const z=Xa();Ht(xa(g),O=>{T(O)===_e.element&&Ya(z,O)}),Ht(S,O=>{T(O)===_e.element&&!Rn(z,O)&&ya(O,!0)})},Os=function(g,S){let z=!1;return Ht(e.removed,O=>{O.element&&(z=z||O.element===g,ka(O.element))}),g1(g,S),z},v1=8,b1=function(g,S){const z=Sr;let O=null;const J=()=>(O||(O=Xa(),Ht(S,ne=>{Ya(O,ne)})),O);for(let ne=0;;ne++){const ce=xa(g),Fe=[g];let Bt=!1;if(Ht(ce,Ct=>{T(Ct)===_e.documentFragment?zn(Fe,Ct):!Bt&&!Rn(z,Ct)&&(Bt=Rn(J(),Ct))}),!Bt)return;if(ne>=v1)throw Ut("the tree kept changing during in-place sanitization; refusing to return it");Ht(Fe,(Ct,dt)=>{y1(Ct,dt>0,g,J())})}},y1=function(g,S,z,O){const J=g0(g);let ne;for(;ne=J.nextNode();)!Rn(O,ne)||Rn(Sr,ne)||(S&&Et(ye.uponSanitizeShadowNode,ne,null),Ea(ne,z))},w1=function(g){Sr&&Ya(Sr,g)},$s=function(g,S){return kr?g==="patchsrc"?!0:g==="for"&&S!=="label"&&S!=="output":!1},k1=function(g){kr&&wa(g,S=>{const z=T(S);if(z===_e.processingInstruction||z===_e.comment&&Ge(bl,S.data)){try{w(S)}catch{}return!1}if(z===_e.element){const O=S,J=Pe(B(S));try{O.hasAttribute&&O.hasAttribute("patchsrc")&&O.removeAttribute("patchsrc"),O.hasAttribute&&O.hasAttribute("for")&&$s("for",J)&&O.removeAttribute("for")}catch{}}return!0})},Bs=function(g){let S=null,z=null;if(ua)g="<remove></remove>"+g;else{const ne=E4(g,X4);z=ne&&ne[0]}En==="application/xhtml+xml"&&Zr===zt&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");const O=N?te(g):g;if(Zr===zt)try{S=new h().parseFromString(O,En)}catch{}if(!S||!S.documentElement){S=At.createDocument(Zr,"template",null);try{S.documentElement.innerHTML=ma?D:O}catch{}}const J=S.body||S.documentElement;return g&&z&&J.insertBefore(r.createTextNode(z),J.childNodes[0]||null),Zr===zt?ht.call(S,xr?"html":"body")[0]:xr?S.documentElement:J},g0=function(g){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const z=ee?ee(g):g.ownerDocument;return Xe.call(z||g,g,(S?0:c.SHOW_ELEMENT)|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Sa=function(g){return g=D0(g,a0," "),g=D0(g,Jt," "),g=D0(g,i0," "),g},Aa=function(g){var S;Ta(g);const z=(S=g.querySelectorAll)===null||S===void 0?void 0:S.call(g,"template");z&&Ht(z,O=>{Jr(O.content)&&Aa(O.content)})},Ta=function(g){g.normalize();const S=g0(g,!0);let z=S.nextNode();for(;z;)z.data=Sa(z.data),z=S.nextNode()},v0=function(g){const S=K?K(g):null;return typeof S!="string"||Pe(S)!=="form"?!1:typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||g.attributes!==R(g)||typeof g.removeAttribute!="function"||typeof g.removeAttributeNode!="function"||typeof g.getAttributeNode!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function"||g.nodeType!==Z(g)||g.childNodes!==M(g)},qs=function(g){if(!Z||typeof g!="object"||g===null)return null;try{const S=Z(g);return typeof S=="number"?S:null}catch{return null}},Jr=function(g){return qs(g)===_e.documentFragment},Cn=function(g){return qs(g)!==null};function Et(P,g,S){P.length!==0&&Ht(P,z=>{z.call(e,g,S,f0)})}const x1=function(g,S,z){return!!(kr&&z===_e.element&&g.hasChildNodes()&&!Cn(g.firstElementChild)&&Ge(ni,g.textContent)&&Ge(ni,g.innerHTML)||kr&&Y4[S]&&z===_e.element&&X(g)===zt&&(Cn(g.firstElementChild)||typeof g.textContent=="string"&&Ge(ni,g.textContent))||z===_e.processingInstruction||kr&&z===_e.comment&&Ge(bl,g.data))},b0=function(g,S){if(g instanceof RegExp)return Ge(g,S);if(g instanceof Function){for(var z=arguments.length,O=new Array(z>2?z-2:0),J=2;J<z;J++)O[J-2]=arguments[J];return!!g(S,...O)}return!1},S1=function(g,S,z){if(!wr[S]&&Us(S)&&b0(bt.tagNameCheck,S))return!1;if(da&&!Ar[S]&&!Ar[Rr(S)]){const O=k(g),J=M(g);if(J&&O){const ne=J.length;for(let ce=ne-1;ce>=0;--ce){const Fe=g===z?m(J[ce],!0):J[ce];O.insertBefore(Fe,C(g))}}}return rr(g),!0},Fs=function(g,S,z,O){return g.length===0?S:S===z||S===O?$n(S):S},en=function(g,S){return g===S||k(g)!==null?!1:(pa&&ka(g),!0)},A1=function(g,S){if(w1(g),Et(ye.beforeSanitizeElements,g,null),en(g,S))return!0;if(v0(g))return rr(g),!0;const z=Pe(B(g)),O=T(g);if(Te=Fs(ye.uponSanitizeElement,Te,Vr,u0),Et(ye.uponSanitizeElement,g,{tagName:z,allowedTags:Te}),en(g,S))return!0;if(x1(g,z,O))return rr(g),!0;if(wr[z]||!(Tt.tagCheck instanceof Function&&Tt.tagCheck(z))&&!Te[z]){const J=S1(g,z,S);return J===!1&&(Et(ye.afterSanitizeElements,g,null),en(g,S))?!0:J}if(O===_e.element&&!f1(g)||(z==="noscript"||z==="noembed"||z==="noframes")&&Ge(V4,g.innerHTML))return rr(g),!0;if(st&&O===_e.text){const J=g.textContent,ne=Sa(J);J!==ne&&(zn(e.removed,{element:g.cloneNode()}),g.textContent=ne)}return Et(ye.afterSanitizeElements,g,null),en(g,S)},Hs=function(g,S,z){if(Kr[S]||$s(S,g)||As&&(S==="id"||S==="name")&&(z in r||z in h1))return!1;const O=Se[S]||Tt.attributeCheck instanceof Function&&Tt.attributeCheck(S,g);if(Tn&&Ge(s0,S)||An&&Ge(o0,S))return!0;if(!O)return Us(g)&&b0(bt.tagNameCheck,g)&&b0(bt.attributeNameCheck,S,g)||S==="is"&&bt.allowCustomizedBuiltInElements&&b0(bt.tagNameCheck,z);if(zs[S])return!0;const J=D0(z,jr,"");return Ge(l0,J)||(S==="src"||S==="xlink:href"||S==="href")&&g!=="script"&&Qa(z,"data:")===0&&Ms[g]||c0&&!Ge(Gr,J)?!0:!z},T1=ge({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Us=function(g){return!T1[Rr(g)]&&Ge(la,g)},E1=function(g,S,z,O){if(N&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!z)switch(d.getAttributeType(g,S)){case"TrustedHTML":return te(O);case"TrustedScriptURL":return Ne(O)}return O},C1=function(g,S,z,O){try{return z?g.setAttributeNS(z,S,O):g.setAttribute(S,O),v0(g)?(rr(g),!1):!0}catch{return Qr(S,g),!1}},Ws=function(g,S){return kr&&Ge(K4,S)?!0:Rr(g)==="attributename"&&Qa(S,"href")!==-1},M1=function(g,S){if(Et(ye.beforeSanitizeAttributes,g,null),en(g,S))return;const z=g.attributes;if(!z||v0(g))return;Se=Fs(ye.uponSanitizeAttribute,Se,er,h0);const O={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0};let J=z.length;const ne=Pe(B(g));for(;J--;){const ce=z[J],Fe=ce.name,Bt=ce.namespaceURI,Ct=ce.value,dt=Pe(Fe),Rt=Ct;let Ye=Fe==="value"?Rt:C4(Rt),Gs=!1;if(O.attrName=dt,O.attrValue=Ye,O.keepAttr=!0,O.forceKeepAttr=void 0,Et(ye.uponSanitizeAttribute,g,O),Ye=O.attrValue,Ts&&(dt==="id"||dt==="name")&&Qa(Ye,Es)!==0&&(Qr(Fe,g,ce),Ye=Es+Ye,Gs=!0),Ws(Fe,Ye)){Qr(Fe,g,ce);continue}if(!O.forceKeepAttr){if(!O.keepAttr){Qr(Fe,g,ce);continue}if(!tr&&Ge(yl,Ye)){Qr(Fe,g,ce);continue}if(st&&(Ye=Sa(Ye)),!Hs(ne,dt,Ye)){Qr(Fe,g,ce);continue}Ye=E1(ne,dt,Bt,Ye),Ye!==Rt&&C1(g,Fe,Bt,Ye)&&Gs&&ul(e.removed)}}Et(ye.afterSanitizeAttributes,g,null),en(g,S)},Ea=function(g,S){A1(g,S),M1(g,S),Jr(g.content)&&Ca(g.content)},Ca=function(g){let S=null;const z=g0(g);for(Et(ye.beforeSanitizeShadowDOM,g,null);S=z.nextNode();)if(Et(ye.uponSanitizeShadowNode,S,null),Ea(S,g),T(S)===_e.element){const O=I(S);Jr(O)&&(Ma(O),Ca(O))}st&&Ta(g),Et(ye.afterSanitizeShadowDOM,g,null)},Ma=function(g){const S=[{node:g,shadow:null}];for(;S.length>0;){const z=S.pop();if(z.shadow){Ca(z.shadow);continue}const O=z.node,J=T(O)===_e.element,ne=M(O);if(ne)for(let ce=ne.length-1;ce>=0;--ce)S.push({node:ne[ce],shadow:null});if(J){const ce=K?K(O):null;if(typeof ce=="string"&&Pe(ce)==="template"){const Fe=O.content;Jr(Fe)&&S.push({node:Fe,shadow:null})}}if(J){const ce=I(O);Jr(ce)&&S.push({node:null,shadow:ce},{node:ce,shadow:null})}}};return e.sanitize=function(P){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null,z=null,O=null,J=null;if(ma=!P,ma&&(P="<!-->"),typeof P!="string"&&!Cn(P)&&(P=D4(P),typeof P!="string"))throw Ut("dirty is not a string, aborting");if(!e.isSupported)return P;ca?(Te=u0,Se=h0):va(g),e.removed=[];const ne=pa&&typeof P!="string"&&Cn(P);let ce=[];const Fe=Sr;if(ne){k1(P);const Rt=B(P);if(typeof Rt=="string"){const Ye=Pe(Rt);if(!Te[Ye]||wr[Ye])throw ba(P),Ut("root node is forbidden and cannot be sanitized in-place")}if(v0(P))throw ba(P),Ut("root node is clobbered and cannot be sanitized in-place");ce=xa(P),Sr=Xa()}else if(Cn(P))S=Bs("<!---->"),z=S.ownerDocument.importNode(P,!0),z.nodeType===_e.element&&z.nodeName==="BODY"||z.nodeName==="HTML"?S=z:S.appendChild(z),Ma(S);else{if(!Xr&&!st&&!xr&&P.indexOf("<")===-1)return be(P);if(S=Bs(P),!S)return Xr?null:ha?D:""}S&&ua&&rr(S.firstChild);const Bt=ne?P:S;try{ne&&Ma(P);const Rt=g0(Bt);for(;O=Rt.nextNode();)Ea(O,Bt);ne&&b1(P,ce)}catch(Rt){throw ne&&(ba(P),Os(P,ce)),Rt}finally{Sr=Fe}if(ne){if(Os(P,ce))throw Ut("a node selected for removal could not be safely returned; refusing to sanitize in place");return st&&Aa(P),P}if(Xr){if(st&&Aa(S),d0)for(J=Qt.call(S.ownerDocument);S.firstChild;)J.appendChild(S.firstChild);else J=S;return(Se.shadowroot||Se.shadowrootmode)&&(J=Wr.call(n,J,!0)),J}const Ct=()=>xr?S.outerHTML:S.innerHTML;let dt=Ct();return st&&Ge(q4,dt)&&(Ta(S),dt=Ct()),xr&&Te["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&Ge(G4,S.ownerDocument.doctype.name)&&(dt="<!DOCTYPE "+S.ownerDocument.doctype.name+`>
371
- `+dt),be(dt)},e.setConfig=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};va(P),ca=!0,u0=Te,h0=Se},e.clearConfig=function(){f0=null,ca=!1,u0=null,h0=null,N=W,D=""},e.isValidAttribute=function(P,g,S){f0||va({});const z=Pe(P),O=Pe(g);return typeof S=="string"&&(Ws(g,S)||!tr&&Ge(yl,S))?!1:Hs(z,O,S)},e.addHook=function(P,g){typeof g=="function"&&Qe(ye,P)&&zn(ye[P],g)},e.removeHook=function(P,g){if(Qe(ye,P)){if(g!==void 0){const S=S4(ye[P],g);return S===-1?void 0:T4(ye[P],S,1)[0]}return ul(ye[P])}},e.removeHooks=function(P){Qe(ye,P)&&(ye[P]=[])},e.removeAllHooks=function(){ye=wl()},e}var ps=Au();const ms=/\.(?:png|jpe?g|gif|webp)$/i,Tu=/\.(?:mp4|webm)$/i;function J4(t,e){return e.readOnly===!0&&t===ec}function fs(t){return ms.test(t)?"image":Tu.test(t)?"video":null}const ef=/^[A-Za-z0-9._-]+$/;function Br(t){try{return decodeURIComponent(t)}catch{return null}}function e0(t){return ef.test(t)&&t!=="."&&t!==".."}function tf(t){if(!/^[\s\u0000-\u001f]*workspace-asset:/i.test(t))return!1;const e=t.split(/[?#]/)[0].replace(/%([a-f0-9]{2})/gi,(r,n)=>String.fromCharCode(Number.parseInt(n,16)));return/\.(?:mp4|webm)$/i.test(e.trim())}function Eu(t,e){if(t!==t.trim())return null;const r=/^workspace-asset:\/\/([^/?#]+)\/([^/?#]+)(\?[^#]*)?$/.exec(t);if(!r||!e||!e0(e)||r[1]!==e)return null;const n=Br(r[2]);if(!n||!/^[A-Za-z0-9._-]+$/.test(n))return null;const a=r[3];if(a){if(!/^\?[^&=]+=[^&=]+(?:&[^&=]+=[^&=]+)*$/.test(a))return null;const i=new Set;for(const[s,o]of new URLSearchParams(a)){if(s!=="backend"&&s!=="v"||i.has(s)||!o||/[^A-Za-z0-9._-]/.test(o))return null;i.add(s)}}return n}function gs(t,e){const r=Eu(t,e);return!r||!Tu.test(r)?null:{kind:"workspace",url:t,mimeType:r.toLowerCase().endsWith(".webm")?"video/webm":"video/mp4"}}function v6(t,e){const r=Eu(t,e);return r&&ms.test(r)?t:null}function Cu(t,e,r={}){if(!t.startsWith("intent://"))return null;const a=t.slice(9).split(/[?#]/)[0].split("/"),i=a[0],s=a.slice(1);if(!i)return null;let o,c;if(s[0]==="file")o=e,c=s.slice(1);else if(s.length>=3&&s[1]==="file"){const v=Br(s[0]);if(!v||v!==e&&!J4(e,r))return null;o=v,c=s.slice(2)}else return null;if(!o||!e0(o)||c.length===0)return null;const h=[];for(const v of c){const m=Br(v);if(m===null||m.length===0||m==="."||m===".."||m.includes("/")||m.includes("\\"))return null;h.push(m)}if(/^[A-Za-z]:/.test(h[0]))return null;const d=h.map(v=>encodeURIComponent(v)).join("/");return{workspaceId:o,path:h.join("/"),encodedPath:d}}function rf(t,e,r={}){const n=Cu(t,e,r);if(!n)return null;const a=fs(n.path);return a?{url:`workspace-file://${n.workspaceId}/${n.encodedPath}`,kind:a}:null}function b6(t,e,r={}){const n=rf(t,e,r);return n?.kind==="image"?n.url:null}function kl(t){if(!t.startsWith("workspace-file://"))return null;const e=t.slice(17).split(/[?#]/)[0],[r,...n]=e.split("/");if(!r||!e0(r)||n.length===0)return null;const a=[];for(const s of n){const o=Br(s);if(o===null||o.length===0||o==="."||o===".."||o.includes("/")||o.includes("\\"))return null;a.push(o)}return/^[A-Za-z]:/.test(a[0])||!fs(a[a.length-1])?null:`intent://local/file/${a.map(s=>encodeURIComponent(s)).join("/")}`}function Ri(t){if(!t.startsWith("workspace-file://"))return null;const e=t.slice(17).split(/[?#]/)[0],[r,...n]=e.split("/");if(!r||!e0(r)||n.length===0)return null;const a=[];for(const s of n){const o=Br(s);if(o===null||o.length===0||o==="."||o===".."||o.includes("/")||o.includes("\\"))return null;a.push(o)}return/^[A-Za-z]:/.test(a[0])||!ms.test(a[a.length-1])?null:`intent://local/file/${a.map(s=>encodeURIComponent(s)).join("/")}`}const nf=/^[A-Za-z][A-Za-z0-9+.-]*:/;function af(t,e){if(!t||t!==t.trim()||nf.test(t)||/^[/\\#?]/.test(t))return null;const r=t.split(/[?#]/)[0];if(!r||r.includes("\\"))return null;const n=e?e.split("/"):[];if(n.some(a=>!a||a==="."||a===".."))return null;for(const a of r.split("/")){const i=Br(a);if(i===null||i.includes("/")||i.includes("\\")||i.includes("\0"))return null;if(!(i===""||i===".")){if(i===".."){if(n.length===0)return null;n.pop();continue}n.push(i)}}return n.length===0||/^[A-Za-z]:/.test(n[0])?null:n.join("/")}const an=t=>t.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),sf=/^intent:\/\/[^/?#]+\/file\//,of=/^intent:\/\/[^/?#]+\/([^/?#]+)\/file\//;function lf(t,e){if(sf.test(t))return e?"invalid-link":"workspace-unknown";const r=of.exec(t);if(!r)return null;const n=Br(r[1]);return e&&n&&e0(n)&&n!==e?"other-workspace":"invalid-link"}const cf="v";let xl=0;function Mu(){return xl+=1,`${Date.now().toString(36)}-${xl.toString(36)}`}function y6(t){if(/^https?:\/\//i.test(t))return t;if(t.includes("#"))return null;const e=t.indexOf("?"),r=e<0?t:t.slice(0,e),n=e<0?"":t.slice(e+1);if(t.startsWith("workspace-file://")){if(!Ri(t))return null}else if(!/^workspace-asset:\/\/[A-Za-z0-9._-]+\/[A-Za-z0-9._-]+$/.test(r))return null;if(e>=0&&!/^(?:backend|v)=[A-Za-z0-9._-]+(?:&(?:backend|v)=[A-Za-z0-9._-]+)*$/.test(n))return null;const a=new URLSearchParams(n);return a.getAll("backend").length>1||a.getAll("v").length>1?null:(a.set("v",Mu()),`${r}?${a}`)}function uf(t,e){return t.includes("workspace-file://")?t.replace(/<img\b[^>]*>/gi,r=>{const n=/\ssrc="(workspace-file:\/\/[^"?#]*)"/i.exec(r);return n?r.replace(n[0],` src="${n[1]}?${cf}=${an(e)}"`):r}):t}function hf(t){if(!t.includes("&"))return t;if(typeof document>"u")return null;const e=document.createElement("template");return e.innerHTML=`<img src="${t}">`,e.content.firstElementChild?.getAttribute("src")??null}function df(t,e){return t.includes("<img")?t.replace(/<img\b[^>]*>/gi,r=>{const n=/\ssrc="([^"]*)"/i.exec(r);if(!n)return r;const a=hf(n[1]),i=a===null?null:af(a,e);if(!i)return r;const s=i.split("/").map(o=>encodeURIComponent(o)).join("/");return r.replace(n[0],` src="${an(`intent://local/file/${s}`)}"`)}):t}function w6(t){const e=t.getAttribute("data-media-unavailable");return e==="other-workspace"||e==="invalid-link"?e:"load-failed"}function pf(t,e,r={}){return!t.includes("intent://")&&!t.includes("workspace-asset://")?t:t.replace(/<img\b[^>]*>/gi,n=>{const a=/\ssrc="([^"]*)"/i.exec(n);if(!a)return n;const i=a[1].replace(/&amp;/g,"&"),s=gs(i,e);if(s){const v=/\salt="([^"]*)"/i.exec(n)?.[1]??"";return`<video src="${an(s.url)}" controls preload="metadata" playsinline class="markdown-video" data-name="${v}"></video>`}if(!i.startsWith("intent://"))return n;const o=Cu(i,e,r);if(!o){const v=lf(i,e);return!v||v!=="workspace-unknown"&&!r.readOnly?n:n.replace(a[0],` data-media-src="${a[1]}"`).replace(/>$/,` data-media-unavailable="${v}">`)}const c=fs(o.path);if(!c){const v=o.path.split(".").pop()?.toLowerCase()??"";return n.replace(/>$/,` data-media-unsupported="${an(v)}">`)}const h={url:`workspace-file://${o.workspaceId}/${o.encodedPath}`,kind:c};if(h.kind==="image")return n.replace(a[1],an(h.url));const d=/\salt="([^"]*)"/i.exec(n)?.[1]??"";return`<video src="${an(h.url)}" controls preload="metadata" playsinline class="markdown-video" data-name="${d}"></video>`})}const Sl=new vn("html-sanitizer"),V0=t=>/^[\s\u0000-\u001f]*workspace-file:/i.test(t);let dr,Fn=!1,Bn=!1,$0=!1;const Al=/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:em|px|%)$/,mf=new Set(["border-bottom-width","border-right-width","border-top-width","border-width","bottom","height","left","margin-left","margin-right","margin-top","min-width","padding-left","top","vertical-align","width"]);function ff(t){const e=[];for(const r of t.split(";")){const n=r.indexOf(":");if(n<0)continue;const a=r.slice(0,n).trim().toLowerCase(),i=r.slice(n+1).trim().toLowerCase(),s=i.split(/\s+/);(mf.has(a)&&Al.test(i)||a==="margin"&&s.length<=4&&s.every(c=>c==="0"||Al.test(c))||a==="position"&&i==="relative"||(a==="border-style"||a==="border-right-style")&&(i==="solid"||i==="dashed"))&&e.push(`${a}:${i}`)}return e.length?`${e.join(";")};`:""}function gf(t){const e=t.closest(".math-inline[data-math-source], .math-display[data-math-source]"),r=t.closest(".katex");return e!==null&&r!==null&&e.contains(r)}function Iu(t){if(!V0(t))return!1;const e=/^[\s\u0000-\u001f]*workspace-file:\/\/([^/?#]+)/i.exec(t);if(!e||!dr)return!1;try{const r=decodeURIComponent(e[1]);return $0&&dr===ec?/^[A-Za-z0-9._-]+$/.test(r)&&r!=="."&&r!=="..":r===dr}catch{return!1}}ps.addHook("uponSanitizeElement",t=>{t instanceof Element&&t.nodeName==="VIDEO"&&!gs(t.getAttribute("src")??"",dr)&&(!V0(t.getAttribute("src")??"")||Fn&&!Iu(t.getAttribute("src")??""))&&t.remove()});ps.addHook("uponSanitizeAttribute",(t,e)=>{if(t.nodeName==="A"&&e.attrName==="href"&&/^[^/\\:?#\s]+\.[^/\\:?#\s]+:\d+(?::\d+)?$/.test(e.attrValue)&&(e.attrValue=`./${e.attrValue}`),e.attrName==="style"){if(!Bn||!(t instanceof Element)||!gf(t)){e.keepAttr=!1;return}e.attrValue=ff(e.attrValue),e.keepAttr=e.attrValue.length>0;return}if(t.nodeName==="IMG"&&e.attrName==="src"&&tf(e.attrValue)&&!gs(e.attrValue,dr)){e.keepAttr=!1;return}if(Fn&&V0(e.attrValue)&&!Iu(e.attrValue)){e.keepAttr=!1;return}V0(e.attrValue)&&!(e.attrName==="src"&&(t.nodeName==="IMG"||t.nodeName==="VIDEO"))&&(e.keepAttr=!1)});const zu=["p","br","span","div","strong","b","em","i","u","s","del","ins","mark","ul","ol","li","input","label","code","pre","kbd","samp","var","h1","h2","h3","h4","h5","h6","a","table","thead","tbody","tfoot","tr","th","td","blockquote","q","cite","abbr","address","article","aside","footer","header","main","nav","section","data","math","semantics","annotation","mrow","mi","mn","mo","mtext","mspace","mfrac","msqrt","mroot","mstyle","merror","mpadded","mphantom","menclose","msub","msup","msubsup","munder","mover","munderover","mmultiscripts","mtable","mtr","mtd","svg","path"],Tl={"*":["class","id","title","dir","lang","data-anchor-id","data-anchor-type","data-comment-id","data-mention","data-mention-id","data-mention-type","data-math-source","aria-hidden","style"],a:["href","target","rel"],span:["data-mention","data-mention-id","data-mention-type","data-comment-id","data-anchor-id","data-anchor-type"],div:["data-comment-anchor","data-comment-id","data-mermaid-code","data-diff-code","data-type"],li:["data-type","data-checked"],ul:["data-type"],input:["type","checked","disabled"],label:["for"],code:["class"],pre:["class"],td:["colspan","rowspan"],th:["colspan","rowspan","scope"]},vf={ALLOWED_TAGS:zu,ALLOWED_ATTR:Object.keys(Tl).reduce((t,e)=>{const r=Tl[e];return[...t,...r]},[]),ADD_ATTR:["data-type","data-checked"],ALLOW_DATA_ATTR:!0,KEEP_CONTENT:!0,RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,SANITIZE_DOM:!0,ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|sms|intent):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i};function bf(t,e={}){if(!t)return"";try{const r={...vf,...e},n=ps.sanitize(t,r),a=typeof n=="string"?n:String(n);return a.length!==t.length&&Sl.debug("HTML content was sanitized",{originalLength:t.length,sanitizedLength:a.length,modified:!0}),a}catch(r){return Sl.error("Failed to sanitize HTML",r),""}}function Hn(t,e,r={}){const n=dr,a=Fn,i=Bn,s=$0;dr=e,Fn=!0,Bn=r.preserveKatexLayoutStyles??!1,$0=r.readOnly??!1;try{return bf(t,{ALLOWED_TAGS:[...zu,"img","video","hr","details","summary","sub","sup"],ALLOWED_ATTR:["class","id","title","dir","lang","href","target","rel","data-mention","data-mention-id","data-mention-type","data-id","data-label","data-uri","data-meta","data-comment-id","data-anchor-id","data-anchor-type","data-comment-anchor","data-mermaid-code","data-diff-code","data-type","data-checked","data-status","data-delegated-agent-id","data-question","data-options","data-selected","type","checked","disabled","src","alt","width","height","controls","preload","playsinline","poster","data-name","data-media-unsupported","data-media-unavailable","data-media-src","data-primitive","data-primitive-type","data-primitive-id","data-primitive-base64","data-item-type","data-provider","data-title","data-identifier","data-url","data-description","data-metadata","data-math-source","aria-hidden",...Bn?["style"]:[],"display","encoding","xmlns","accent","accentunder","columnalign","columnspacing","columnlines","rowalign","rowspacing","rowlines","scriptlevel","displaystyle","fence","separator","stretchy","symmetric","minsize","maxsize","viewBox","preserveAspectRatio","d","open","tabindex"],ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|sms|intent|workspace-asset|workspace-file):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i})}finally{dr=n,Fn=a,Bn=i,$0=s}}const t0=pe({id:hh(),type:Je(["reference","cli","agent_action","patch","diagram"]),version:yn(1),label:V().optional(),description:V().optional(),createdAt:hn(),createdBy:Je(["user","agent","system"]),createdByAgentId:V().optional(),meta:Vt(V(),bn()).optional()}),yf=pe({kind:Je(["symbol","file_range"]).optional().default("file_range"),semanticId:V().optional(),filePath:V().optional(),languageId:V().optional(),range:pe({startLine:Le().nonnegative(),startColumn:Le().nonnegative().optional(),endLine:Le().nonnegative(),endColumn:Le().nonnegative().optional()}).optional()}),wf=pe({code:V(),filePath:V(),languageId:V().optional()}),kf=pe({collapsedByDefault:hr().optional(),showFilePath:hr().optional(),showSymbolName:hr().optional()}),xf=t0.extend({type:yn("reference"),target:yf,snapshot:wf.optional(),display:kf.optional()}),Sf=pe({status:Je(["running","success","error","cancelled"]),exitCode:Le().optional(),startedAt:hn(),finishedAt:hn().optional()}),Af=pe({stdout:V(),stderr:V()}),Tf=pe({collapsedOutputByDefault:hr().optional(),showCommandPrefix:V().optional()}),Ef=t0.extend({type:yn("cli"),command:V(),cwd:V().optional(),env:Vt(V(),V()).optional(),timeoutMs:Le().positive().optional(),lastRun:Sf.optional(),outputSnapshot:Af.optional(),display:Tf.optional(),terminalId:V().optional()}),Cf=pe({kind:Je(["reference","semantic_ref","text","file_glob","note_section"]),refId:V().optional(),semanticId:V().optional(),content:V().optional(),pattern:V().optional(),heading:V().optional()}),Mf=pe({temperature:Le().min(0).max(2).optional(),maxTokens:Le().positive().optional()}).passthrough(),If=pe({status:Je(["pending","running","success","error"]),startedAt:hn(),finishedAt:hn().optional(),errorMessage:V().optional()}),zf=pe({title:V().optional(),description:V().optional(),createdPrimitives:Ve(V()).optional()}),Rf=t0.extend({type:yn("agent_action"),agentId:V(),goal:V(),inputs:Ve(Cf),config:Mf.optional(),lastRun:If.optional(),resultSummary:zf.optional()}),Df=pe({status:Je(["success","conflict","error"]),appliedAt:hn(),errorMessage:V().optional()}),Nf=pe({filePath:V(),diff:V(),semanticRefs:Ve(V()).optional()}),Pf=pe({collapsedByDefault:hr().optional(),showFileNames:hr().optional()}),_f=t0.extend({type:yn("patch"),patches:Ve(Nf),lastApply:Df.optional(),display:Pf.optional()}),Lf=Je(["architecture","sequence","state_machine","data_flow","network","flowchart","timeline","dependency_graph"]),vs=Je(["highlighted","muted","danger","success","inactive","warning","active"]),Di=pe({type:Je(["file","symbol","spec","note","timeline_event","metric","log","test"]),target:V(),metadata:Vt(V(),bn()).optional()}),Of=pe({id:V(),label:V(),kind:V().optional(),semanticStyle:vs.optional(),position:pe({x:Le(),y:Le()}).optional(),size:pe({width:Le(),height:Le()}).optional(),binding:Di.optional(),bindings:Ve(Di).optional(),group:V().optional(),metadata:Vt(V(),bn()).optional()}),$f=pe({id:V(),from:V(),to:V(),label:V().optional(),kind:V().optional(),semanticStyle:vs.optional(),animated:hr().optional(),dashed:hr().optional(),flowDirection:Je(["forward","backward","bidirectional"]).optional(),bindings:Ve(Di).optional(),metadata:Vt(V(),bn()).optional()}),Bf=pe({id:V(),label:V(),nodeIds:Ve(V()),semanticStyle:vs.optional(),metadata:Vt(V(),bn()).optional()}),qf=pe({nodes:Ve(Of),edges:Ve($f),groups:Ve(Bf).optional()}),Ff=pe({type:Je(["layered","force","circular","tree","manual"]),direction:Je(["LR","RL","TB","BT"]).optional(),spacing:Le().optional(),edgeRouting:Je(["orthogonal","polyline","curved"]).optional()}),Hf=Vt(V(),pe({class:V().optional(),style:Vt(V(),V()).optional()})),Uf=pe({layout:Ff,semanticStyles:Hf.optional(),zoom:Le().optional(),pan:pe({x:Le(),y:Le()}).optional(),edgeRouting:Je(["orthogonal","polyline","curved"]).optional()}),Wf=pe({focus:V().optional(),zoom:Le().optional(),pan:pe({x:Le(),y:Le()}).optional()}),Gf=pe({title:V().optional(),text:V().optional()}),jf=pe({type:V(),data:Vt(V(),bn())}),Vf=pe({duration:Le().optional(),animate:Ve(Je(["camera","visibleEdges","visibleNodes","semanticStyle"])).optional()}),Kf=pe({id:V(),label:V().optional(),visibleNodes:Ve(V()).optional(),visibleEdges:Ve(V()).optional(),visibleGroups:Ve(V()).optional(),highlightedNodes:Ve(V()).optional(),highlightedEdges:Ve(V()).optional(),camera:Wf.optional(),narrative:dh([Gf,V()]).optional(),overlays:Ve(jf).optional(),transition:Vf.optional()}),Xf=t0.extend({type:yn("diagram"),grammar:Lf,model:qf,baseView:Uf,states:Ve(Kf).optional(),currentStateId:V().optional()}),Ru=ph("type",[xf,Ef,Rf,_f,Xf]);function k6(t){const e=t.match(/^(.+)#symbol:(.+)$/);if(e){const[,a,i]=e;return{filePath:a,type:"symbol",symbol:i}}const r=t.match(/^(.+)#L(\d+)(?:-(\d+))?$/);if(r){const[,a,i,s]=r,o={filePath:a,type:"line",startLine:parseInt(i,10)};return s&&(o.endLine=parseInt(s,10)),o}const n=t.match(/^(.+)#lines:(.+)$/);if(n){const[,a,i]=n;return{filePath:a,refSpec:{type:"lines",value:i}}}return t&&!t.includes("#")?{filePath:t,type:"file"}:null}function x6(t){return t.semanticId?t.semanticId:t.filePath?t.range?t.range.startLine===t.range.endLine?`${t.filePath}#L${t.range.startLine}`:`${t.filePath}#L${t.range.startLine}-${t.range.endLine}`:t.filePath:null}const Dr=new vn("NotesPrimitivesSerializer");function Yf(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)}class Zf{constructor(){le(this,"logger",new vn("NotesPrimitivesSerializer"))}parseMarkdown(e,r={}){return Du(e,r)}serializeToMarkdown(e,r,n={}){return Jf(e,r,n)}tiptapNodeToPrimitive(e){return t2(e)}primitiveToTiptapNode(e){return r2(e)}generateId(){return Pu()}createBasePrimitive(e,r="user"){return a2(e,r)}}function Du(t,e={}){const{validateSchema:r=!0}=e,n=[],a=t.split(`
369
+ `)}/*! @license DOMPurify 3.4.18 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.18/LICENSE */function ll(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function v4(t){if(Array.isArray(t))return t}function b4(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,a,i,s,o=[],c=!0,h=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(c=(n=i.call(r)).done)&&(o.push(n.value),o.length!==e);c=!0);}catch(d){h=!0,a=d}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(h)throw a}}return o}}function y4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
370
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function w4(t,e){return v4(t)||b4(t,e)||k4(t,e)||y4()}function k4(t,e){if(t){if(typeof t=="string")return ll(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ll(t,e):void 0}}const yu=Object.entries,x4=Object.keys,cl=Object.setPrototypeOf,S4=Object.isFrozen,wu=Object.getPrototypeOf,ku=Object.getOwnPropertyDescriptor;let Ke=Object.freeze,Be=Object.seal,cr=Object.create,xu=typeof Reflect<"u"&&Reflect,G0=xu.apply,zi=xu.construct;Ke||(Ke=function(e){return e});Be||(Be=function(e){return e});G0||(G0=function(e,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];return e.apply(r,a)});zi||(zi=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return new e(...n)});const Ht=ze(Array.prototype.forEach),A4=ze(Array.prototype.lastIndexOf),ul=ze(Array.prototype.pop),zn=ze(Array.prototype.push),T4=ze(Array.prototype.slice),E4=ze(Array.prototype.splice),ln=Array.isArray,Xa=Su(Set),Ya=ze(Set.prototype.add),Rn=ze(Set.prototype.has),Rr=ze(String.prototype.toLowerCase),Za=ze(String.prototype.toString),C4=ze(String.prototype.match),D0=ze(String.prototype.replace),Qa=ze(String.prototype.indexOf),M4=ze(String.prototype.trim),I4=ze(Number.prototype.toString),z4=ze(Boolean.prototype.toString),hl=typeof BigInt>"u"?null:ze(BigInt.prototype.toString),dl=typeof Symbol>"u"?null:ze(Symbol.prototype.toString),Qe=ze(Object.prototype.hasOwnProperty),Dn=ze(Object.prototype.toString),R4=RegExp.prototype.test,Ge=function(e,r){return e instanceof RegExp&&(e.lastIndex=0),G0(R4,e,[r])},Ut=Su(TypeError);function ze(t){return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return G0(t,e,n)}}function Su(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return zi(t,r)}}function ge(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rr;if(cl&&cl(t,null),!ln(e))return t;let n=e.length;for(;n--;){let a=e[n];if(typeof a=="string"){const i=r(a);i!==a&&(S4(e)||(e[n]=i),a=i)}t[a]=!0}return t}function D4(t){for(let e=0;e<t.length;e++)Qe(t,e)||(t[e]=null);return t}function j0(t){const e=cr(null);for(const n of yu(t)){var r=w4(n,2);const a=r[0],i=r[1];Qe(t,a)&&(ln(i)?e[a]=D4(i):i&&typeof i=="object"&&i.constructor===Object?e[a]=j0(i):e[a]=i)}return e}function $n(t){const e=cr(null),r=x4(t);let n=r.length;for(;n--;)e[r[n]]=t[r[n]];return e}function N4(t){switch(typeof t){case"string":return t;case"number":return I4(t);case"boolean":return z4(t);case"bigint":return hl?hl(t):"0";case"symbol":return dl?dl(t):"Symbol()";case"undefined":return Dn(t);case"function":case"object":{if(t===null)return Dn(t);const e=t,r=yt(e,"toString");if(typeof r=="function"){const n=r(e);return typeof n=="string"?n:Dn(n)}return Dn(t)}default:return Dn(t)}}function yt(t,e){for(;t!==null;){const n=ku(t,e);if(n){if(n.get)return ze(n.get);if(typeof n.value=="function")return ze(n.value)}t=wu(t)}function r(){return null}return r}function P4(t,e){for(;t!==null;){const r=ku(t,e);if(r)return r.get?ze(r.get):null;t=wu(t)}return null}function _4(t){if(!t)return!1;try{return Ge(t,""),!0}catch{return!1}}const pl=Ke(["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"]),Ja=Ke(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ei=Ke(["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"]),L4=Ke(["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"]),ti=Ke(["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"]),O4=Ke(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ml=Ke(["#text"]),fl=Ke(["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"]),ri=Ke(["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"]),gl=Ke(["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"]),N0=Ke(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$4=Be(/{{[\w\W]*|^[\w\W]*}}/g),B4=Be(/<%[\w\W]*|^[\w\W]*%>/g),q4=Be(/\${[\w\W]*/g),F4=Be(/{{|}}|\${|<%|%>|&lt;%|%&gt;/),H4=Be(/^data-[\-\w.\u00B7-\uFFFF]+$/),U4=Be(/^aria-[\-\w]+$/),vl=Be(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W4=Be(/^(?:\w+script|data):/i),G4=Be(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),j4=Be(/^html$/i),V4=Be(/^[a-z][.\w]*(-[.\w]+)+$/i),ni=Be(/<[/\w!]/g),bl=Be(/<[/\w]/g),K4=Be(/<\/no(script|embed|frames)/i),yl=Be(/\/>/i),X4=Be(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i),Y4=Be(/^[\r\n\t ]+/),_e={element:1,text:3,processingInstruction:7,comment:8,document:9,documentFragment:11},Z4=Ke(ge({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),Q4=function(){return typeof window>"u"?null:window},J4=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const a="data-tt-policy-suffix";r&&r.hasAttribute(a)&&(n=r.getAttribute(a));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},wl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},or=function(e,r,n,a){return Qe(e,r)&&ln(e[r])?ge(a.base?$n(a.base):{},e[r],a.transform):n},ai=function(e,r,n){const a=Qe(e,r)?e[r]:void 0;return a&&typeof a=="object"?j0(a):n};function Au(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Q4();const e=P=>Au(P);if(e.version="3.4.18",e.removed=[],!t||!t.document||t.document.nodeType!==_e.document||!t.Element)return e.isSupported=!1,e;let r=t.document;const n=r,a=n.currentScript,i=t.HTMLTemplateElement,s=t.Node,o=t.Element,c=t.NodeFilter,h=t.DOMParser,d=t.trustedTypes,v=o.prototype,m=yt(v,"cloneNode"),w=yt(v,"remove"),A=yt(v,"removeAttributeNode"),C=yt(v,"nextSibling"),M=yt(v,"childNodes"),k=yt(v,"parentNode"),I=yt(v,"shadowRoot"),R=yt(v,"attributes"),Z=s&&s.prototype?yt(s.prototype,"nodeType"):null,K=s&&s.prototype?yt(s.prototype,"nodeName"):null,ee=s&&s.prototype?yt(s.prototype,"ownerDocument"):null,T=function(g){return Z?Z(g):g.nodeType},B=function(g){return K?K(g):g.nodeName},q=P4(v,"namespaceURI"),X=function(g){return q?q(g):g.namespaceURI};if(typeof i=="function"){const P=r.createElement("template");P.content&&P.content.ownerDocument&&(r=P.content.ownerDocument)}let N,D="",W,_=!1,Q=0;const Y=function(){if(Q>0)throw Ut('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.')},te=function(g){Y(),Q++;try{return N.createHTML(g)}finally{Q--}},be=function(g){return N&&ha?te(g):g},Ne=function(g){Y(),Q++;try{return N.createScriptURL(g)}finally{Q--}},he=function(){return _||(W=J4(d,a),_=!0),W},Ae=r,At=Ae.implementation,Xe=Ae.createNodeIterator,Jt=Ae.createDocumentFragment,ht=Ae.getElementsByTagName,Wr=n.importNode;let ye=wl();e.isSupported=typeof yu=="function"&&typeof k=="function"&&At&&At.createHTMLDocument!==void 0;const a0=$4,er=B4,i0=q4,s0=H4,o0=U4,Gr=W4,jr=G4,la=V4;let l0=vl,Te=null;const Vr=ge({},[...pl,...Ja,...ei,...ti,...ml]);let Se=null;const tr=ge({},[...fl,...ri,...gl,...N0]);let bt=null,wr=null,Kr=null;const Tt=Object.seal(cr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let An=!0,Tn=!0,c0=!1,rr=!0,st=!1,kr=!0,xr=!1,ca=!1,u0=null,h0=null,ua=!1,Xr=!1,d0=!1,ha=!1,As=!0,Ts=!1;const Es="user-content-";let da=!0,pa=!1,Sr=null,Yr=!1,Ar=null;const Cs=ge({},["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"]);let Ms=null;const Is=ge({},["audio","video","img","source","image","track"]);let zs=null;const Rs=ge({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),p0="http://www.w3.org/1998/Math/MathML",m0="http://www.w3.org/2000/svg",zt="http://www.w3.org/1999/xhtml";let Zr=zt,ma=!1,Ds=null;const i1=ge({},[p0,m0,zt],Za),s1=Ke(ge({},["mi","mo","mn","ms","mtext"]));let fa=null;const o1=Ke(ge({},["annotation-xml"]));let ga=null;const l1=Ke(cr(null)),c1=ge({},["title","style","font","a","script"]);let En=null;const u1=["application/xhtml+xml","text/html"],h1="text/html";let Pe=null,f0=null;const d1=r.createElement("form"),Ns=function(g){return g instanceof RegExp||g instanceof Function},va=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(!g||typeof g!="object")&&(g={}),g=j0(g),En=u1.indexOf(g.PARSER_MEDIA_TYPE)===-1?h1:g.PARSER_MEDIA_TYPE,Pe=En==="application/xhtml+xml"?Za:Rr,Te=or(g,"ALLOWED_TAGS",Vr,{transform:Pe}),Se=or(g,"ALLOWED_ATTR",tr,{transform:Pe}),Ds=or(g,"ALLOWED_NAMESPACES",i1,{transform:Za}),zs=or(g,"ADD_URI_SAFE_ATTR",Rs,{transform:Pe,base:Rs}),Ms=or(g,"ADD_DATA_URI_TAGS",Is,{transform:Pe,base:Is}),Ar=or(g,"FORBID_CONTENTS",Cs,{transform:Pe}),wr=or(g,"FORBID_TAGS",cr(null),{transform:Pe}),Kr=or(g,"FORBID_ATTR",cr(null),{transform:Pe}),Yr=Qe(g,"USE_PROFILES")?g.USE_PROFILES&&typeof g.USE_PROFILES=="object"?j0(g.USE_PROFILES):g.USE_PROFILES:!1,An=g.ALLOW_ARIA_ATTR!==!1,Tn=g.ALLOW_DATA_ATTR!==!1,c0=g.ALLOW_UNKNOWN_PROTOCOLS||!1,rr=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,st=g.SAFE_FOR_TEMPLATES||!1,kr=g.SAFE_FOR_XML!==!1,xr=g.WHOLE_DOCUMENT||!1,Xr=g.RETURN_DOM||!1,d0=g.RETURN_DOM_FRAGMENT||!1,ha=g.RETURN_TRUSTED_TYPE||!1,ua=g.FORCE_BODY||!1,As=g.SANITIZE_DOM!==!1,Ts=g.SANITIZE_NAMED_PROPS||!1,da=g.KEEP_CONTENT!==!1,pa=g.IN_PLACE||!1,l0=_4(g.ALLOWED_URI_REGEXP)?g.ALLOWED_URI_REGEXP:vl,Zr=typeof g.NAMESPACE=="string"?g.NAMESPACE:zt,fa=ai(g,"MATHML_TEXT_INTEGRATION_POINTS",s1),ga=ai(g,"HTML_INTEGRATION_POINTS",o1);const S=ai(g,"CUSTOM_ELEMENT_HANDLING",l1);if(bt=cr(null),Qe(S,"tagNameCheck")&&Ns(S.tagNameCheck)&&(bt.tagNameCheck=S.tagNameCheck),Qe(S,"attributeNameCheck")&&Ns(S.attributeNameCheck)&&(bt.attributeNameCheck=S.attributeNameCheck),Qe(S,"allowCustomizedBuiltInElements")&&typeof S.allowCustomizedBuiltInElements=="boolean"&&(bt.allowCustomizedBuiltInElements=S.allowCustomizedBuiltInElements),Be(bt),st&&(Tn=!1),d0&&(Xr=!0),Yr&&((Qe(g,"ALLOWED_TAGS")||Qe(g,"ALLOWED_ATTR"))&&typeof console<"u"&&typeof console.warn=="function"&&console.warn("DOMPurify: USE_PROFILES overrides ALLOWED_TAGS and ALLOWED_ATTR. Do not use these options together."),Te=ge({},ml),Se=cr(null),Yr.html===!0&&(ge(Te,pl),ge(Se,fl)),Yr.svg===!0&&(ge(Te,Ja),ge(Se,ri),ge(Se,N0)),Yr.svgFilters===!0&&(ge(Te,ei),ge(Se,ri),ge(Se,N0)),Yr.mathMl===!0&&(ge(Te,ti),ge(Se,gl),ge(Se,N0))),Tt.tagCheck=null,Tt.attributeCheck=null,Qe(g,"ADD_TAGS")&&(typeof g.ADD_TAGS=="function"?Tt.tagCheck=g.ADD_TAGS:ln(g.ADD_TAGS)&&(Te===Vr&&(Te=$n(Te)),ge(Te,g.ADD_TAGS,Pe))),Qe(g,"ADD_ATTR")&&(typeof g.ADD_ATTR=="function"?Tt.attributeCheck=g.ADD_ATTR:ln(g.ADD_ATTR)&&(Se===tr&&(Se=$n(Se)),ge(Se,g.ADD_ATTR,Pe))),Qe(g,"ADD_FORBID_CONTENTS")&&ln(g.ADD_FORBID_CONTENTS)&&(Ar===Cs&&(Ar=$n(Ar)),ge(Ar,g.ADD_FORBID_CONTENTS,Pe)),da&&(Te["#text"]=!0),xr&&ge(Te,["html","head","body"]),Te.table&&(Te.tbody=!0,delete wr.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ut('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ut('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const z=N;N=g.TRUSTED_TYPES_POLICY;try{D=te("")}catch(O){throw N=z,O}}else g.TRUSTED_TYPES_POLICY===null?(N=void 0,D=""):(N===void 0&&(N=he()),N&&typeof D=="string"&&(D=te("")));f0=Ke(g)},Ps=ge({},[...Ja,...ei,...L4]),_s=ge({},[...ti,...O4]),p1=function(g,S,z){return S===zt?g==="svg":S===p0?g==="svg"&&(z==="annotation-xml"||fa[z]):!!Ps[g]},m1=function(g,S,z){return S===zt?g==="math":S===m0?g==="math"&&ga[z]:!!_s[g]},f1=function(g,S,z){return S===m0&&!ga[z]||S===p0&&!fa[z]?!1:!_s[g]&&(c1[g]||!Ps[g])},g1=function(g){const S=X(g),z=Rr(B(g)),O=k(g);let J=Zr,ne="template";return O&&T(O)===_e.element&&(J=X(O),ne=Rr(B(O))),Ds[S]?S===m0?p1(z,J,ne):S===p0?m1(z,J,ne):S===zt?f1(z,J,ne):En==="application/xhtml+xml":!1},nr=function(g){zn(e.removed,{element:g});try{k(g).removeChild(g)}catch{if(w(g),!k(g))throw Ut("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ls=function(g,S,z){try{A(g,S)}catch{try{g.removeAttribute(z)}catch{}}},ba=function(g){ka(g);const S=M(g);S&&Ht(T4(S),z=>{try{w(z)}catch{}}),T(g)===_e.element&&ya(g,!1)},Qr=function(g,S,z){if(!z)try{z=S.getAttributeNode(g)}catch{z=null}if(zn(e.removed,{attribute:z||null,from:S}),z)Ls(S,z,g);else try{S.removeAttribute(g)}catch{}if(g==="is")if(Xr||d0)try{nr(S)}catch{}else try{S.setAttribute(g,"")}catch{}},ya=function(g,S){const z=R(g);if(z)for(let O=z.length-1;O>=0;--O){const J=z[O],ne=J&&J.name;typeof ne=="string"&&!(S&&Se[Pe(ne)])&&Ls(g,J,ne)}},wa=function(g,S){let z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const O=[g];for(;O.length>0;){const J=O.pop();if(S(J)===!1)continue;if(z&&T(J)===_e.element){const ce=I(J);Jr(ce)&&O.push(ce)}const ne=M(J);if(ne)for(let ce=ne.length-1;ce>=0;--ce)O.push(ne[ce])}},ka=function(g){wa(g,S=>{T(S)===_e.element&&ya(S,!0)})},xa=function(g){const S=[];return wa(g,z=>{S.push(z)},!0),S},v1=function(g,S){const z=Xa();Ht(xa(g),O=>{T(O)===_e.element&&Ya(z,O)}),Ht(S,O=>{T(O)===_e.element&&!Rn(z,O)&&ya(O,!0)})},Os=function(g,S){let z=!1;return Ht(e.removed,O=>{O.element&&(z=z||O.element===g,ka(O.element))}),v1(g,S),z},b1=8,y1=function(g,S){const z=Sr;let O=null;const J=()=>(O||(O=Xa(),Ht(S,ne=>{Ya(O,ne)})),O);for(let ne=0;;ne++){const ce=xa(g),Fe=[g];let Bt=!1;if(Ht(ce,Ct=>{T(Ct)===_e.documentFragment?zn(Fe,Ct):!Bt&&!Rn(z,Ct)&&(Bt=Rn(J(),Ct))}),!Bt)return;if(ne>=b1)throw Ut("the tree kept changing during in-place sanitization; refusing to return it");Ht(Fe,(Ct,dt)=>{w1(Ct,dt>0,g,J())})}},w1=function(g,S,z,O){const J=g0(g);let ne;for(;ne=J.nextNode();)!Rn(O,ne)||Rn(Sr,ne)||(S&&Et(ye.uponSanitizeShadowNode,ne,null),Ea(ne,z))},k1=function(g){Sr&&Ya(Sr,g)},$s=function(g,S){return kr?g==="patchsrc"?!0:g==="for"&&S!=="label"&&S!=="output":!1},x1=function(g){kr&&wa(g,S=>{const z=T(S);if(z===_e.processingInstruction||z===_e.comment&&Ge(bl,S.data)){try{w(S)}catch{}return!1}if(z===_e.element){const O=S,J=Pe(B(S));try{O.hasAttribute&&O.hasAttribute("patchsrc")&&O.removeAttribute("patchsrc"),O.hasAttribute&&O.hasAttribute("for")&&$s("for",J)&&O.removeAttribute("for")}catch{}}return!0})},Bs=function(g){let S=null,z=null;if(ua)g="<remove></remove>"+g;else{const ne=C4(g,Y4);z=ne&&ne[0]}En==="application/xhtml+xml"&&Zr===zt&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");const O=N?te(g):g;if(Zr===zt)try{S=new h().parseFromString(O,En)}catch{}if(!S||!S.documentElement){S=At.createDocument(Zr,"template",null);try{S.documentElement.innerHTML=ma?D:O}catch{}}const J=S.body||S.documentElement;return g&&z&&J.insertBefore(r.createTextNode(z),J.childNodes[0]||null),Zr===zt?ht.call(S,xr?"html":"body")[0]:xr?S.documentElement:J},g0=function(g){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const z=ee?ee(g):g.ownerDocument;return Xe.call(z||g,g,(S?0:c.SHOW_ELEMENT)|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Sa=function(g){return g=D0(g,a0," "),g=D0(g,er," "),g=D0(g,i0," "),g},Aa=function(g){var S;Ta(g);const z=(S=g.querySelectorAll)===null||S===void 0?void 0:S.call(g,"template");z&&Ht(z,O=>{Jr(O.content)&&Aa(O.content)})},Ta=function(g){g.normalize();const S=g0(g,!0);let z=S.nextNode();for(;z;)z.data=Sa(z.data),z=S.nextNode()},v0=function(g){const S=K?K(g):null;return typeof S!="string"||Pe(S)!=="form"?!1:typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||g.attributes!==R(g)||typeof g.removeAttribute!="function"||typeof g.removeAttributeNode!="function"||typeof g.getAttributeNode!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function"||g.nodeType!==Z(g)||g.childNodes!==M(g)},qs=function(g){if(!Z||typeof g!="object"||g===null)return null;try{const S=Z(g);return typeof S=="number"?S:null}catch{return null}},Jr=function(g){return qs(g)===_e.documentFragment},Cn=function(g){return qs(g)!==null};function Et(P,g,S){P.length!==0&&Ht(P,z=>{z.call(e,g,S,f0)})}const S1=function(g,S,z){return!!(kr&&z===_e.element&&g.hasChildNodes()&&!Cn(g.firstElementChild)&&Ge(ni,g.textContent)&&Ge(ni,g.innerHTML)||kr&&Z4[S]&&z===_e.element&&X(g)===zt&&(Cn(g.firstElementChild)||typeof g.textContent=="string"&&Ge(ni,g.textContent))||z===_e.processingInstruction||kr&&z===_e.comment&&Ge(bl,g.data))},b0=function(g,S){if(g instanceof RegExp)return Ge(g,S);if(g instanceof Function){for(var z=arguments.length,O=new Array(z>2?z-2:0),J=2;J<z;J++)O[J-2]=arguments[J];return!!g(S,...O)}return!1},A1=function(g,S,z){if(!wr[S]&&Us(S)&&b0(bt.tagNameCheck,S))return!1;if(da&&!Ar[S]&&!Ar[Rr(S)]){const O=k(g),J=M(g);if(J&&O){const ne=J.length;for(let ce=ne-1;ce>=0;--ce){const Fe=g===z?m(J[ce],!0):J[ce];O.insertBefore(Fe,C(g))}}}return nr(g),!0},Fs=function(g,S,z,O){return g.length===0?S:S===z||S===O?$n(S):S},en=function(g,S){return g===S||k(g)!==null?!1:(pa&&ka(g),!0)},T1=function(g,S){if(k1(g),Et(ye.beforeSanitizeElements,g,null),en(g,S))return!0;if(v0(g))return nr(g),!0;const z=Pe(B(g)),O=T(g);if(Te=Fs(ye.uponSanitizeElement,Te,Vr,u0),Et(ye.uponSanitizeElement,g,{tagName:z,allowedTags:Te}),en(g,S))return!0;if(S1(g,z,O))return nr(g),!0;if(wr[z]||!(Tt.tagCheck instanceof Function&&Tt.tagCheck(z))&&!Te[z]){const J=A1(g,z,S);return J===!1&&(Et(ye.afterSanitizeElements,g,null),en(g,S))?!0:J}if(O===_e.element&&!g1(g)||(z==="noscript"||z==="noembed"||z==="noframes")&&Ge(K4,g.innerHTML))return nr(g),!0;if(st&&O===_e.text){const J=g.textContent,ne=Sa(J);J!==ne&&(zn(e.removed,{element:g.cloneNode()}),g.textContent=ne)}return Et(ye.afterSanitizeElements,g,null),en(g,S)},Hs=function(g,S,z){if(Kr[S]||$s(S,g)||As&&(S==="id"||S==="name")&&(z in r||z in d1))return!1;const O=Se[S]||Tt.attributeCheck instanceof Function&&Tt.attributeCheck(S,g);if(Tn&&Ge(s0,S)||An&&Ge(o0,S))return!0;if(!O)return Us(g)&&b0(bt.tagNameCheck,g)&&b0(bt.attributeNameCheck,S,g)||S==="is"&&bt.allowCustomizedBuiltInElements&&b0(bt.tagNameCheck,z);if(zs[S])return!0;const J=D0(z,jr,"");return Ge(l0,J)||(S==="src"||S==="xlink:href"||S==="href")&&g!=="script"&&Qa(z,"data:")===0&&Ms[g]||c0&&!Ge(Gr,J)?!0:!z},E1=ge({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Us=function(g){return!E1[Rr(g)]&&Ge(la,g)},C1=function(g,S,z,O){if(N&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!z)switch(d.getAttributeType(g,S)){case"TrustedHTML":return te(O);case"TrustedScriptURL":return Ne(O)}return O},M1=function(g,S,z,O){try{return z?g.setAttributeNS(z,S,O):g.setAttribute(S,O),v0(g)?(nr(g),!1):!0}catch{return Qr(S,g),!1}},Ws=function(g,S){return kr&&Ge(X4,S)?!0:Rr(g)==="attributename"&&Qa(S,"href")!==-1},I1=function(g,S){if(Et(ye.beforeSanitizeAttributes,g,null),en(g,S))return;const z=g.attributes;if(!z||v0(g))return;Se=Fs(ye.uponSanitizeAttribute,Se,tr,h0);const O={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0};let J=z.length;const ne=Pe(B(g));for(;J--;){const ce=z[J],Fe=ce.name,Bt=ce.namespaceURI,Ct=ce.value,dt=Pe(Fe),Rt=Ct;let Ye=Fe==="value"?Rt:M4(Rt),Gs=!1;if(O.attrName=dt,O.attrValue=Ye,O.keepAttr=!0,O.forceKeepAttr=void 0,Et(ye.uponSanitizeAttribute,g,O),Ye=O.attrValue,Ts&&(dt==="id"||dt==="name")&&Qa(Ye,Es)!==0&&(Qr(Fe,g,ce),Ye=Es+Ye,Gs=!0),Ws(Fe,Ye)){Qr(Fe,g,ce);continue}if(!O.forceKeepAttr){if(!O.keepAttr){Qr(Fe,g,ce);continue}if(!rr&&Ge(yl,Ye)){Qr(Fe,g,ce);continue}if(st&&(Ye=Sa(Ye)),!Hs(ne,dt,Ye)){Qr(Fe,g,ce);continue}Ye=C1(ne,dt,Bt,Ye),Ye!==Rt&&M1(g,Fe,Bt,Ye)&&Gs&&ul(e.removed)}}Et(ye.afterSanitizeAttributes,g,null),en(g,S)},Ea=function(g,S){T1(g,S),I1(g,S),Jr(g.content)&&Ca(g.content)},Ca=function(g){let S=null;const z=g0(g);for(Et(ye.beforeSanitizeShadowDOM,g,null);S=z.nextNode();)if(Et(ye.uponSanitizeShadowNode,S,null),Ea(S,g),T(S)===_e.element){const O=I(S);Jr(O)&&(Ma(O),Ca(O))}st&&Ta(g),Et(ye.afterSanitizeShadowDOM,g,null)},Ma=function(g){const S=[{node:g,shadow:null}];for(;S.length>0;){const z=S.pop();if(z.shadow){Ca(z.shadow);continue}const O=z.node,J=T(O)===_e.element,ne=M(O);if(ne)for(let ce=ne.length-1;ce>=0;--ce)S.push({node:ne[ce],shadow:null});if(J){const ce=K?K(O):null;if(typeof ce=="string"&&Pe(ce)==="template"){const Fe=O.content;Jr(Fe)&&S.push({node:Fe,shadow:null})}}if(J){const ce=I(O);Jr(ce)&&S.push({node:null,shadow:ce},{node:ce,shadow:null})}}};return e.sanitize=function(P){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null,z=null,O=null,J=null;if(ma=!P,ma&&(P="<!-->"),typeof P!="string"&&!Cn(P)&&(P=N4(P),typeof P!="string"))throw Ut("dirty is not a string, aborting");if(!e.isSupported)return P;ca?(Te=u0,Se=h0):va(g),e.removed=[];const ne=pa&&typeof P!="string"&&Cn(P);let ce=[];const Fe=Sr;if(ne){x1(P);const Rt=B(P);if(typeof Rt=="string"){const Ye=Pe(Rt);if(!Te[Ye]||wr[Ye])throw ba(P),Ut("root node is forbidden and cannot be sanitized in-place")}if(v0(P))throw ba(P),Ut("root node is clobbered and cannot be sanitized in-place");ce=xa(P),Sr=Xa()}else if(Cn(P))S=Bs("<!---->"),z=S.ownerDocument.importNode(P,!0),z.nodeType===_e.element&&z.nodeName==="BODY"||z.nodeName==="HTML"?S=z:S.appendChild(z),Ma(S);else{if(!Xr&&!st&&!xr&&P.indexOf("<")===-1)return be(P);if(S=Bs(P),!S)return Xr?null:ha?D:""}S&&ua&&nr(S.firstChild);const Bt=ne?P:S;try{ne&&Ma(P);const Rt=g0(Bt);for(;O=Rt.nextNode();)Ea(O,Bt);ne&&y1(P,ce)}catch(Rt){throw ne&&(ba(P),Os(P,ce)),Rt}finally{Sr=Fe}if(ne){if(Os(P,ce))throw Ut("a node selected for removal could not be safely returned; refusing to sanitize in place");return st&&Aa(P),P}if(Xr){if(st&&Aa(S),d0)for(J=Jt.call(S.ownerDocument);S.firstChild;)J.appendChild(S.firstChild);else J=S;return(Se.shadowroot||Se.shadowrootmode)&&(J=Wr.call(n,J,!0)),J}const Ct=()=>xr?S.outerHTML:S.innerHTML;let dt=Ct();return st&&Ge(F4,dt)&&(Ta(S),dt=Ct()),xr&&Te["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&Ge(j4,S.ownerDocument.doctype.name)&&(dt="<!DOCTYPE "+S.ownerDocument.doctype.name+`>
371
+ `+dt),be(dt)},e.setConfig=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};va(P),ca=!0,u0=Te,h0=Se},e.clearConfig=function(){f0=null,ca=!1,u0=null,h0=null,N=W,D=""},e.isValidAttribute=function(P,g,S){f0||va({});const z=Pe(P),O=Pe(g);return typeof S=="string"&&(Ws(g,S)||!rr&&Ge(yl,S))?!1:Hs(z,O,S)},e.addHook=function(P,g){typeof g=="function"&&Qe(ye,P)&&zn(ye[P],g)},e.removeHook=function(P,g){if(Qe(ye,P)){if(g!==void 0){const S=A4(ye[P],g);return S===-1?void 0:E4(ye[P],S,1)[0]}return ul(ye[P])}},e.removeHooks=function(P){Qe(ye,P)&&(ye[P]=[])},e.removeAllHooks=function(){ye=wl()},e}var ps=Au();const ms=/\.(?:png|jpe?g|gif|webp)$/i,Tu=/\.(?:mp4|webm)$/i;function ef(t,e){return e.readOnly===!0&&t===ec}function fs(t){return ms.test(t)?"image":Tu.test(t)?"video":null}const tf=/^[A-Za-z0-9._-]+$/;function Br(t){try{return decodeURIComponent(t)}catch{return null}}function e0(t){return tf.test(t)&&t!=="."&&t!==".."}function rf(t){if(!/^[\s\u0000-\u001f]*workspace-asset:/i.test(t))return!1;const e=t.split(/[?#]/)[0].replace(/%([a-f0-9]{2})/gi,(r,n)=>String.fromCharCode(Number.parseInt(n,16)));return/\.(?:mp4|webm)$/i.test(e.trim())}function Eu(t,e){if(t!==t.trim())return null;const r=/^workspace-asset:\/\/([^/?#]+)\/([^/?#]+)(\?[^#]*)?$/.exec(t);if(!r||!e||!e0(e)||r[1]!==e)return null;const n=Br(r[2]);if(!n||!/^[A-Za-z0-9._-]+$/.test(n))return null;const a=r[3];if(a){if(!/^\?[^&=]+=[^&=]+(?:&[^&=]+=[^&=]+)*$/.test(a))return null;const i=new Set;for(const[s,o]of new URLSearchParams(a)){if(s!=="backend"&&s!=="v"||i.has(s)||!o||/[^A-Za-z0-9._-]/.test(o))return null;i.add(s)}}return n}function gs(t,e){const r=Eu(t,e);return!r||!Tu.test(r)?null:{kind:"workspace",url:t,mimeType:r.toLowerCase().endsWith(".webm")?"video/webm":"video/mp4"}}function b6(t,e){const r=Eu(t,e);return r&&ms.test(r)?t:null}function Cu(t,e,r={}){if(!t.startsWith("intent://"))return null;const a=t.slice(9).split(/[?#]/)[0].split("/"),i=a[0],s=a.slice(1);if(!i)return null;let o,c;if(s[0]==="file")o=e,c=s.slice(1);else if(s.length>=3&&s[1]==="file"){const v=Br(s[0]);if(!v||v!==e&&!ef(e,r))return null;o=v,c=s.slice(2)}else return null;if(!o||!e0(o)||c.length===0)return null;const h=[];for(const v of c){const m=Br(v);if(m===null||m.length===0||m==="."||m===".."||m.includes("/")||m.includes("\\"))return null;h.push(m)}if(/^[A-Za-z]:/.test(h[0]))return null;const d=h.map(v=>encodeURIComponent(v)).join("/");return{workspaceId:o,path:h.join("/"),encodedPath:d}}function nf(t,e,r={}){const n=Cu(t,e,r);if(!n)return null;const a=fs(n.path);return a?{url:`workspace-file://${n.workspaceId}/${n.encodedPath}`,kind:a}:null}function y6(t,e,r={}){const n=nf(t,e,r);return n?.kind==="image"?n.url:null}function kl(t){if(!t.startsWith("workspace-file://"))return null;const e=t.slice(17).split(/[?#]/)[0],[r,...n]=e.split("/");if(!r||!e0(r)||n.length===0)return null;const a=[];for(const s of n){const o=Br(s);if(o===null||o.length===0||o==="."||o===".."||o.includes("/")||o.includes("\\"))return null;a.push(o)}return/^[A-Za-z]:/.test(a[0])||!fs(a[a.length-1])?null:`intent://local/file/${a.map(s=>encodeURIComponent(s)).join("/")}`}function Ri(t){if(!t.startsWith("workspace-file://"))return null;const e=t.slice(17).split(/[?#]/)[0],[r,...n]=e.split("/");if(!r||!e0(r)||n.length===0)return null;const a=[];for(const s of n){const o=Br(s);if(o===null||o.length===0||o==="."||o===".."||o.includes("/")||o.includes("\\"))return null;a.push(o)}return/^[A-Za-z]:/.test(a[0])||!ms.test(a[a.length-1])?null:`intent://local/file/${a.map(s=>encodeURIComponent(s)).join("/")}`}const af=/^[A-Za-z][A-Za-z0-9+.-]*:/;function sf(t,e){if(!t||t!==t.trim()||af.test(t)||/^[/\\#?]/.test(t))return null;const r=t.split(/[?#]/)[0];if(!r||r.includes("\\"))return null;const n=e?e.split("/"):[];if(n.some(a=>!a||a==="."||a===".."))return null;for(const a of r.split("/")){const i=Br(a);if(i===null||i.includes("/")||i.includes("\\")||i.includes("\0"))return null;if(!(i===""||i===".")){if(i===".."){if(n.length===0)return null;n.pop();continue}n.push(i)}}return n.length===0||/^[A-Za-z]:/.test(n[0])?null:n.join("/")}const an=t=>t.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),of=/^intent:\/\/[^/?#]+\/file\//,lf=/^intent:\/\/[^/?#]+\/([^/?#]+)\/file\//;function cf(t,e){if(of.test(t))return e?"invalid-link":"workspace-unknown";const r=lf.exec(t);if(!r)return null;const n=Br(r[1]);return e&&n&&e0(n)&&n!==e?"other-workspace":"invalid-link"}const uf="v";let xl=0;function Mu(){return xl+=1,`${Date.now().toString(36)}-${xl.toString(36)}`}function w6(t){if(/^https?:\/\//i.test(t))return t;if(t.includes("#"))return null;const e=t.indexOf("?"),r=e<0?t:t.slice(0,e),n=e<0?"":t.slice(e+1);if(t.startsWith("workspace-file://")){if(!Ri(t))return null}else if(!/^workspace-asset:\/\/[A-Za-z0-9._-]+\/[A-Za-z0-9._-]+$/.test(r))return null;if(e>=0&&!/^(?:backend|v)=[A-Za-z0-9._-]+(?:&(?:backend|v)=[A-Za-z0-9._-]+)*$/.test(n))return null;const a=new URLSearchParams(n);return a.getAll("backend").length>1||a.getAll("v").length>1?null:(a.set("v",Mu()),`${r}?${a}`)}function hf(t,e){return t.includes("workspace-file://")?t.replace(/<img\b[^>]*>/gi,r=>{const n=/\ssrc="(workspace-file:\/\/[^"?#]*)"/i.exec(r);return n?r.replace(n[0],` src="${n[1]}?${uf}=${an(e)}"`):r}):t}function df(t){if(!t.includes("&"))return t;if(typeof document>"u")return null;const e=document.createElement("template");return e.innerHTML=`<img src="${t}">`,e.content.firstElementChild?.getAttribute("src")??null}function pf(t,e){return t.includes("<img")?t.replace(/<img\b[^>]*>/gi,r=>{const n=/\ssrc="([^"]*)"/i.exec(r);if(!n)return r;const a=df(n[1]),i=a===null?null:sf(a,e);if(!i)return r;const s=i.split("/").map(o=>encodeURIComponent(o)).join("/");return r.replace(n[0],` src="${an(`intent://local/file/${s}`)}"`)}):t}function k6(t){const e=t.getAttribute("data-media-unavailable");return e==="other-workspace"||e==="invalid-link"?e:"load-failed"}function mf(t,e,r={}){return!t.includes("intent://")&&!t.includes("workspace-asset://")?t:t.replace(/<img\b[^>]*>/gi,n=>{const a=/\ssrc="([^"]*)"/i.exec(n);if(!a)return n;const i=a[1].replace(/&amp;/g,"&"),s=gs(i,e);if(s){const v=/\salt="([^"]*)"/i.exec(n)?.[1]??"";return`<video src="${an(s.url)}" controls preload="metadata" playsinline class="markdown-video" data-name="${v}"></video>`}if(!i.startsWith("intent://"))return n;const o=Cu(i,e,r);if(!o){const v=cf(i,e);return!v||v!=="workspace-unknown"&&!r.readOnly?n:n.replace(a[0],` data-media-src="${a[1]}"`).replace(/>$/,` data-media-unavailable="${v}">`)}const c=fs(o.path);if(!c){const v=o.path.split(".").pop()?.toLowerCase()??"";return n.replace(/>$/,` data-media-unsupported="${an(v)}">`)}const h={url:`workspace-file://${o.workspaceId}/${o.encodedPath}`,kind:c};if(h.kind==="image")return n.replace(a[1],an(h.url));const d=/\salt="([^"]*)"/i.exec(n)?.[1]??"";return`<video src="${an(h.url)}" controls preload="metadata" playsinline class="markdown-video" data-name="${d}"></video>`})}const Sl=new vn("html-sanitizer"),V0=t=>/^[\s\u0000-\u001f]*workspace-file:/i.test(t);let pr,Fn=!1,Bn=!1,$0=!1;const Al=/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:em|px|%)$/,ff=new Set(["border-bottom-width","border-right-width","border-top-width","border-width","bottom","height","left","margin-left","margin-right","margin-top","min-width","padding-left","top","vertical-align","width"]);function gf(t){const e=[];for(const r of t.split(";")){const n=r.indexOf(":");if(n<0)continue;const a=r.slice(0,n).trim().toLowerCase(),i=r.slice(n+1).trim().toLowerCase(),s=i.split(/\s+/);(ff.has(a)&&Al.test(i)||a==="margin"&&s.length<=4&&s.every(c=>c==="0"||Al.test(c))||a==="position"&&i==="relative"||(a==="border-style"||a==="border-right-style")&&(i==="solid"||i==="dashed"))&&e.push(`${a}:${i}`)}return e.length?`${e.join(";")};`:""}function vf(t){const e=t.closest(".math-inline[data-math-source], .math-display[data-math-source]"),r=t.closest(".katex");return e!==null&&r!==null&&e.contains(r)}function Iu(t){if(!V0(t))return!1;const e=/^[\s\u0000-\u001f]*workspace-file:\/\/([^/?#]+)/i.exec(t);if(!e||!pr)return!1;try{const r=decodeURIComponent(e[1]);return $0&&pr===ec?/^[A-Za-z0-9._-]+$/.test(r)&&r!=="."&&r!=="..":r===pr}catch{return!1}}ps.addHook("uponSanitizeElement",t=>{t instanceof Element&&t.nodeName==="VIDEO"&&!gs(t.getAttribute("src")??"",pr)&&(!V0(t.getAttribute("src")??"")||Fn&&!Iu(t.getAttribute("src")??""))&&t.remove()});ps.addHook("uponSanitizeAttribute",(t,e)=>{if(t.nodeName==="A"&&e.attrName==="href"&&/^[^/\\:?#\s]+\.[^/\\:?#\s]+:\d+(?::\d+)?$/.test(e.attrValue)&&(e.attrValue=`./${e.attrValue}`),e.attrName==="style"){if(!Bn||!(t instanceof Element)||!vf(t)){e.keepAttr=!1;return}e.attrValue=gf(e.attrValue),e.keepAttr=e.attrValue.length>0;return}if(t.nodeName==="IMG"&&e.attrName==="src"&&rf(e.attrValue)&&!gs(e.attrValue,pr)){e.keepAttr=!1;return}if(Fn&&V0(e.attrValue)&&!Iu(e.attrValue)){e.keepAttr=!1;return}V0(e.attrValue)&&!(e.attrName==="src"&&(t.nodeName==="IMG"||t.nodeName==="VIDEO"))&&(e.keepAttr=!1)});const zu=["p","br","span","div","strong","b","em","i","u","s","del","ins","mark","ul","ol","li","input","label","code","pre","kbd","samp","var","h1","h2","h3","h4","h5","h6","a","table","thead","tbody","tfoot","tr","th","td","blockquote","q","cite","abbr","address","article","aside","footer","header","main","nav","section","data","math","semantics","annotation","mrow","mi","mn","mo","mtext","mspace","mfrac","msqrt","mroot","mstyle","merror","mpadded","mphantom","menclose","msub","msup","msubsup","munder","mover","munderover","mmultiscripts","mtable","mtr","mtd","svg","path"],Tl={"*":["class","id","title","dir","lang","data-anchor-id","data-anchor-type","data-comment-id","data-mention","data-mention-id","data-mention-type","data-math-source","aria-hidden","style"],a:["href","target","rel"],span:["data-mention","data-mention-id","data-mention-type","data-comment-id","data-anchor-id","data-anchor-type"],div:["data-comment-anchor","data-comment-id","data-mermaid-code","data-diff-code","data-type"],li:["data-type","data-checked"],ul:["data-type"],input:["type","checked","disabled"],label:["for"],code:["class"],pre:["class"],td:["colspan","rowspan"],th:["colspan","rowspan","scope"]},bf={ALLOWED_TAGS:zu,ALLOWED_ATTR:Object.keys(Tl).reduce((t,e)=>{const r=Tl[e];return[...t,...r]},[]),ADD_ATTR:["data-type","data-checked"],ALLOW_DATA_ATTR:!0,KEEP_CONTENT:!0,RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,SANITIZE_DOM:!0,ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|sms|intent):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i};function yf(t,e={}){if(!t)return"";try{const r={...bf,...e},n=ps.sanitize(t,r),a=typeof n=="string"?n:String(n);return a.length!==t.length&&Sl.debug("HTML content was sanitized",{originalLength:t.length,sanitizedLength:a.length,modified:!0}),a}catch(r){return Sl.error("Failed to sanitize HTML",r),""}}function Hn(t,e,r={}){const n=pr,a=Fn,i=Bn,s=$0;pr=e,Fn=!0,Bn=r.preserveKatexLayoutStyles??!1,$0=r.readOnly??!1;try{return yf(t,{ALLOWED_TAGS:[...zu,"img","video","hr","details","summary","sub","sup"],ALLOWED_ATTR:["class","id","title","dir","lang","href","target","rel","data-mention","data-mention-id","data-mention-type","data-id","data-label","data-uri","data-meta","data-comment-id","data-anchor-id","data-anchor-type","data-comment-anchor","data-mermaid-code","data-diff-code","data-type","data-checked","data-status","data-delegated-agent-id","data-question","data-options","data-selected","type","checked","disabled","src","alt","width","height","controls","preload","playsinline","poster","data-name","data-media-unsupported","data-media-unavailable","data-media-src","data-primitive","data-primitive-type","data-primitive-id","data-primitive-base64","data-item-type","data-provider","data-title","data-identifier","data-url","data-description","data-metadata","data-math-source","aria-hidden",...Bn?["style"]:[],"display","encoding","xmlns","accent","accentunder","columnalign","columnspacing","columnlines","rowalign","rowspacing","rowlines","scriptlevel","displaystyle","fence","separator","stretchy","symmetric","minsize","maxsize","viewBox","preserveAspectRatio","d","open","tabindex"],ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|sms|intent|workspace-asset|workspace-file):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i})}finally{pr=n,Fn=a,Bn=i,$0=s}}const t0=pe({id:dh(),type:Je(["reference","cli","agent_action","patch","diagram"]),version:yn(1),label:V().optional(),description:V().optional(),createdAt:hn(),createdBy:Je(["user","agent","system"]),createdByAgentId:V().optional(),meta:Kt(V(),bn()).optional()}),wf=pe({kind:Je(["symbol","file_range"]).optional().default("file_range"),semanticId:V().optional(),filePath:V().optional(),languageId:V().optional(),range:pe({startLine:Le().nonnegative(),startColumn:Le().nonnegative().optional(),endLine:Le().nonnegative(),endColumn:Le().nonnegative().optional()}).optional()}),kf=pe({code:V(),filePath:V(),languageId:V().optional()}),xf=pe({collapsedByDefault:dr().optional(),showFilePath:dr().optional(),showSymbolName:dr().optional()}),Sf=t0.extend({type:yn("reference"),target:wf,snapshot:kf.optional(),display:xf.optional()}),Af=pe({status:Je(["running","success","error","cancelled"]),exitCode:Le().optional(),startedAt:hn(),finishedAt:hn().optional()}),Tf=pe({stdout:V(),stderr:V()}),Ef=pe({collapsedOutputByDefault:dr().optional(),showCommandPrefix:V().optional()}),Cf=t0.extend({type:yn("cli"),command:V(),cwd:V().optional(),env:Kt(V(),V()).optional(),timeoutMs:Le().positive().optional(),lastRun:Af.optional(),outputSnapshot:Tf.optional(),display:Ef.optional(),terminalId:V().optional()}),Mf=pe({kind:Je(["reference","semantic_ref","text","file_glob","note_section"]),refId:V().optional(),semanticId:V().optional(),content:V().optional(),pattern:V().optional(),heading:V().optional()}),If=pe({temperature:Le().min(0).max(2).optional(),maxTokens:Le().positive().optional()}).passthrough(),zf=pe({status:Je(["pending","running","success","error"]),startedAt:hn(),finishedAt:hn().optional(),errorMessage:V().optional()}),Rf=pe({title:V().optional(),description:V().optional(),createdPrimitives:Ve(V()).optional()}),Df=t0.extend({type:yn("agent_action"),agentId:V(),goal:V(),inputs:Ve(Mf),config:If.optional(),lastRun:zf.optional(),resultSummary:Rf.optional()}),Nf=pe({status:Je(["success","conflict","error"]),appliedAt:hn(),errorMessage:V().optional()}),Pf=pe({filePath:V(),diff:V(),semanticRefs:Ve(V()).optional()}),_f=pe({collapsedByDefault:dr().optional(),showFileNames:dr().optional()}),Lf=t0.extend({type:yn("patch"),patches:Ve(Pf),lastApply:Nf.optional(),display:_f.optional()}),Of=Je(["architecture","sequence","state_machine","data_flow","network","flowchart","timeline","dependency_graph"]),vs=Je(["highlighted","muted","danger","success","inactive","warning","active"]),Di=pe({type:Je(["file","symbol","spec","note","timeline_event","metric","log","test"]),target:V(),metadata:Kt(V(),bn()).optional()}),$f=pe({id:V(),label:V(),kind:V().optional(),semanticStyle:vs.optional(),position:pe({x:Le(),y:Le()}).optional(),size:pe({width:Le(),height:Le()}).optional(),binding:Di.optional(),bindings:Ve(Di).optional(),group:V().optional(),metadata:Kt(V(),bn()).optional()}),Bf=pe({id:V(),from:V(),to:V(),label:V().optional(),kind:V().optional(),semanticStyle:vs.optional(),animated:dr().optional(),dashed:dr().optional(),flowDirection:Je(["forward","backward","bidirectional"]).optional(),bindings:Ve(Di).optional(),metadata:Kt(V(),bn()).optional()}),qf=pe({id:V(),label:V(),nodeIds:Ve(V()),semanticStyle:vs.optional(),metadata:Kt(V(),bn()).optional()}),Ff=pe({nodes:Ve($f),edges:Ve(Bf),groups:Ve(qf).optional()}),Hf=pe({type:Je(["layered","force","circular","tree","manual"]),direction:Je(["LR","RL","TB","BT"]).optional(),spacing:Le().optional(),edgeRouting:Je(["orthogonal","polyline","curved"]).optional()}),Uf=Kt(V(),pe({class:V().optional(),style:Kt(V(),V()).optional()})),Wf=pe({layout:Hf,semanticStyles:Uf.optional(),zoom:Le().optional(),pan:pe({x:Le(),y:Le()}).optional(),edgeRouting:Je(["orthogonal","polyline","curved"]).optional()}),Gf=pe({focus:V().optional(),zoom:Le().optional(),pan:pe({x:Le(),y:Le()}).optional()}),jf=pe({title:V().optional(),text:V().optional()}),Vf=pe({type:V(),data:Kt(V(),bn())}),Kf=pe({duration:Le().optional(),animate:Ve(Je(["camera","visibleEdges","visibleNodes","semanticStyle"])).optional()}),Xf=pe({id:V(),label:V().optional(),visibleNodes:Ve(V()).optional(),visibleEdges:Ve(V()).optional(),visibleGroups:Ve(V()).optional(),highlightedNodes:Ve(V()).optional(),highlightedEdges:Ve(V()).optional(),camera:Gf.optional(),narrative:ph([jf,V()]).optional(),overlays:Ve(Vf).optional(),transition:Kf.optional()}),Yf=t0.extend({type:yn("diagram"),grammar:Of,model:Ff,baseView:Wf,states:Ve(Xf).optional(),currentStateId:V().optional()}),Ru=mh("type",[Sf,Cf,Df,Lf,Yf]);function x6(t){const e=t.match(/^(.+)#symbol:(.+)$/);if(e){const[,a,i]=e;return{filePath:a,type:"symbol",symbol:i}}const r=t.match(/^(.+)#L(\d+)(?:-(\d+))?$/);if(r){const[,a,i,s]=r,o={filePath:a,type:"line",startLine:parseInt(i,10)};return s&&(o.endLine=parseInt(s,10)),o}const n=t.match(/^(.+)#lines:(.+)$/);if(n){const[,a,i]=n;return{filePath:a,refSpec:{type:"lines",value:i}}}return t&&!t.includes("#")?{filePath:t,type:"file"}:null}function S6(t){return t.semanticId?t.semanticId:t.filePath?t.range?t.range.startLine===t.range.endLine?`${t.filePath}#L${t.range.startLine}`:`${t.filePath}#L${t.range.startLine}-${t.range.endLine}`:t.filePath:null}const Dr=new vn("NotesPrimitivesSerializer");function Zf(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)}class Qf{constructor(){le(this,"logger",new vn("NotesPrimitivesSerializer"))}parseMarkdown(e,r={}){return Du(e,r)}serializeToMarkdown(e,r,n={}){return e2(e,r,n)}tiptapNodeToPrimitive(e){return r2(e)}primitiveToTiptapNode(e){return n2(e)}generateId(){return Pu()}createBasePrimitive(e,r="user"){return i2(e,r)}}function Du(t,e={}){const{validateSchema:r=!0}=e,n=[],a=t.split(`
372
372
  `);let i=!1,s=-1,o=[],c="";for(let h=0;h<a.length;h++){const d=a[h];if(d.trim().startsWith("```ws-block")){i=!0,s=h,o=[];const v=d.trim().match(/^```ws-block:(\w+)/);c=v?v[1]:"";continue}if(d.trim().startsWith("```diagram")){Dr.info("[parseMarkdownToPrimitives] Found diagram block start",{line:h}),i=!0,s=h,o=[],c="diagram";continue}if(i&&d.trim()==="```"){i=!1;try{const v=o.join(`
373
- `),m=JSON.parse(v);if(!m.type&&c&&(m.type=c,Dr.debug("[parseMarkdownToPrimitives] Inferred type from fence suffix",{type:c})),(!m.id||!Yf(m.id))&&(m.id=Bi()),m.version||(m.version=1),m.createdAt||(m.createdAt=new Date().toISOString()),m.createdBy||(m.createdBy="agent"),m.type==="reference"){let w=!1;m.target||(m.target={}),!m.target.semanticId&&!m.target.filePath&&(m.semanticId&&(m.target.semanticId=m.semanticId,w=!0),(m.filePath||m.path)&&(m.target.filePath=m.filePath||m.path,w=!0),(m.startLine!==void 0||m.endLine!==void 0)&&!m.target.range&&(m.target.range={startLine:m.startLine??1,endLine:m.endLine??m.startLine??1},w=!0)),m.target.path&&!m.target.filePath&&(m.target.filePath=m.target.path,delete m.target.path),(m.target.startLine!==void 0||m.target.endLine!==void 0)&&!m.target.range&&(m.target.range={startLine:m.target.startLine??1,endLine:m.target.endLine??m.target.startLine??1},delete m.target.startLine,delete m.target.endLine);const A=m.target.kind==="symbol"||m.target.kind==="file_range";(w||!A)&&(m.target.kind=m.target.semanticId?.includes("#symbol:")?"symbol":"file_range")}if(m.type==="cli"&&(m.command||(m.command="")),m.type==="diagram"&&(Dr.info("[parseMarkdownToPrimitives] Normalizing diagram primitive",{id:m.id,hasModel:!!m.model,hasBaseView:!!m.baseView}),m.model||(m.model={nodes:[],edges:[]}),m.model.nodes||(m.model.nodes=[]),m.model.edges||(m.model.edges=[]),Array.isArray(m.model.groups)&&(m.model.groups=m.model.groups.filter(w=>w!==null&&typeof w=="object").map(w=>({...w,nodeIds:Array.isArray(w.nodeIds)?w.nodeIds:[]}))),m.baseView||(m.baseView={layout:{type:"layered",direction:"TB"}}),m.baseView.layout||(m.baseView.layout={type:"layered",direction:"TB"}),m.grammar||(m.grammar="architecture")),r){const w=Ru.safeParse(m);if(!w.success){Dr.error("Invalid primitive schema",{errors:w.error.issues,primitiveType:m.type,primitiveId:m.id,content:v});continue}}n.push({primitive:m,startLine:s,endLine:h,rawContent:a.slice(s,h+1).join(`
373
+ `),m=JSON.parse(v);if(!m.type&&c&&(m.type=c,Dr.debug("[parseMarkdownToPrimitives] Inferred type from fence suffix",{type:c})),(!m.id||!Zf(m.id))&&(m.id=Bi()),m.version||(m.version=1),m.createdAt||(m.createdAt=new Date().toISOString()),m.createdBy||(m.createdBy="agent"),m.type==="reference"){let w=!1;m.target||(m.target={}),!m.target.semanticId&&!m.target.filePath&&(m.semanticId&&(m.target.semanticId=m.semanticId,w=!0),(m.filePath||m.path)&&(m.target.filePath=m.filePath||m.path,w=!0),(m.startLine!==void 0||m.endLine!==void 0)&&!m.target.range&&(m.target.range={startLine:m.startLine??1,endLine:m.endLine??m.startLine??1},w=!0)),m.target.path&&!m.target.filePath&&(m.target.filePath=m.target.path,delete m.target.path),(m.target.startLine!==void 0||m.target.endLine!==void 0)&&!m.target.range&&(m.target.range={startLine:m.target.startLine??1,endLine:m.target.endLine??m.target.startLine??1},delete m.target.startLine,delete m.target.endLine);const A=m.target.kind==="symbol"||m.target.kind==="file_range";(w||!A)&&(m.target.kind=m.target.semanticId?.includes("#symbol:")?"symbol":"file_range")}if(m.type==="cli"&&(m.command||(m.command="")),m.type==="diagram"&&(Dr.info("[parseMarkdownToPrimitives] Normalizing diagram primitive",{id:m.id,hasModel:!!m.model,hasBaseView:!!m.baseView}),m.model||(m.model={nodes:[],edges:[]}),m.model.nodes||(m.model.nodes=[]),m.model.edges||(m.model.edges=[]),Array.isArray(m.model.groups)&&(m.model.groups=m.model.groups.filter(w=>w!==null&&typeof w=="object").map(w=>({...w,nodeIds:Array.isArray(w.nodeIds)?w.nodeIds:[]}))),m.baseView||(m.baseView={layout:{type:"layered",direction:"TB"}}),m.baseView.layout||(m.baseView.layout={type:"layered",direction:"TB"}),m.grammar||(m.grammar="architecture")),r){const w=Ru.safeParse(m);if(!w.success){Dr.error("Invalid primitive schema",{errors:w.error.issues,primitiveType:m.type,primitiveId:m.id,content:v});continue}}n.push({primitive:m,startLine:s,endLine:h,rawContent:a.slice(s,h+1).join(`
374
374
  `)})}catch(v){Dr.error("Failed to parse ws-block JSON",{error:v,content:o.join(`
375
- `),line:s})}s=-1,o=[],c="";continue}i&&o.push(d)}return i&&Dr.warn("Unclosed ws-block found",{startLine:s}),n}function Qf(t){const e=Du(t),r=[],n=t.split(`
375
+ `),line:s})}s=-1,o=[],c="";continue}i&&o.push(d)}return i&&Dr.warn("Unclosed ws-block found",{startLine:s}),n}function Jf(t){const e=Du(t),r=[],n=t.split(`
376
376
  `);let a=-1;for(const i of e){if(i.startLine>a+1){const s=n.slice(a+1,i.startLine);r.push({type:"text",content:s.join(`
377
377
  `)})}r.push({type:"primitive",content:i.rawContent,primitive:i.primitive}),a=i.endLine}if(a<n.length-1){const i=n.slice(a+1);r.push({type:"text",content:i.join(`
378
378
  `)})}return{primitives:e,segments:r}}function Nu(t,e={}){const{prettyPrint:r=!0,preserveIds:n=!0}=e,a={...t};return!n&&!a.id&&(a.id=Bi()),a.createdAt||(a.createdAt=new Date().toISOString()),`\`\`\`ws-block
379
379
  ${r?JSON.stringify(a,null,2):JSON.stringify(a)}
380
- \`\`\``}function Jf(t,e,r={}){if(!e)return t.map(i=>Nu(i,r)).join(`
380
+ \`\`\``}function e2(t,e,r={}){if(!e)return t.map(i=>Nu(i,r)).join(`
381
381
 
382
- `);const{segments:n}=Qf(e),a=n.map(i=>{if(i.type==="primitive"){const s=t.shift();if(s)return{type:"primitive",content:"",primitive:s}}return i});for(const i of t)a.push({type:"primitive",content:"",primitive:i});return e2(a,r)}function e2(t,e={}){const r=[];for(const n of t)n.type==="text"?r.push(n.content):n.primitive&&r.push(Nu(n.primitive,e));return r.join(`
383
- `)}function t2(t){if(!t.type||!t.type.endsWith("_block"))return null;const e=t.attrs?.data;return e?n2(e):null}function r2(t){return{type:`${t.type}_block`,attrs:{id:t.id,data:t}}}function n2(t){const e=Ru.safeParse(t);return e.success?e.data:(Dr.warn("Invalid primitive",{errors:e.error.issues,primitive:t}),null)}function Pu(){return Bi()}function a2(t,e="user"){return{id:Pu(),type:t,version:1,createdAt:new Date().toISOString(),createdBy:e}}const i2=/^---[ \t]+[^\r\n]+\r?\n\+\+\+[ \t]+[^\r\n]+\r?\n@@[ \t]+-\d+(?:,\d+)?[ \t]+\+\d+(?:,\d+)?[ \t]+@@/m,s2="\";function o2(t){return i2.test(t)}function S6(t){if(o2(t))return t;const e=t.replace(/\r\n?/g,`
382
+ `);const{segments:n}=Jf(e),a=n.map(i=>{if(i.type==="primitive"){const s=t.shift();if(s)return{type:"primitive",content:"",primitive:s}}return i});for(const i of t)a.push({type:"primitive",content:"",primitive:i});return t2(a,r)}function t2(t,e={}){const r=[];for(const n of t)n.type==="text"?r.push(n.content):n.primitive&&r.push(Nu(n.primitive,e));return r.join(`
383
+ `)}function r2(t){if(!t.type||!t.type.endsWith("_block"))return null;const e=t.attrs?.data;return e?a2(e):null}function n2(t){return{type:`${t.type}_block`,attrs:{id:t.id,data:t}}}function a2(t){const e=Ru.safeParse(t);return e.success?e.data:(Dr.warn("Invalid primitive",{errors:e.error.issues,primitive:t}),null)}function Pu(){return Bi()}function i2(t,e="user"){return{id:Pu(),type:t,version:1,createdAt:new Date().toISOString(),createdBy:e}}const s2=/^---[ \t]+[^\r\n]+\r?\n\+\+\+[ \t]+[^\r\n]+\r?\n@@[ \t]+-\d+(?:,\d+)?[ \t]+\+\d+(?:,\d+)?[ \t]+@@/m,o2="\";function l2(t){return s2.test(t)}function A6(t){if(l2(t))return t;const e=t.replace(/\r\n?/g,`
384
384
  `),r=e.endsWith(`
385
385
  `),n=r?e.slice(0,-1):e,a=n.length>0?n.split(`
386
- `):[],i=[];let s=0,o=0;for(const d of a)d.startsWith("-")?(s+=1,i.push(d)):d.startsWith("+")?(o+=1,i.push(d)):d===s2?i.push(d):(s+=1,o+=1,i.push(d.startsWith(" ")?d:` ${d}`));const c=s>0?1:0,h=o>0?1:0;return`--- a/file
386
+ `):[],i=[];let s=0,o=0;for(const d of a)d.startsWith("-")?(s+=1,i.push(d)):d.startsWith("+")?(o+=1,i.push(d)):d===o2?i.push(d):(s+=1,o+=1,i.push(d.startsWith(" ")?d:` ${d}`));const c=s>0?1:0,h=o>0?1:0;return`--- a/file
387
387
  +++ b/file
388
388
  @@ -${c},${s} +${h},${o} @@
389
389
  ${i.join(`
390
390
  `)}${r&&i.length>0?`
391
- `:""}`}function l2(t){try{if(/^[A-Za-z0-9+/=]+$/.test(t.trim()))return decodeURIComponent(escape(atob(t)))}catch{}return t}const c2={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&#39;":"'","&#x27;":"'","&#x2F;":"/"},u2=/&(?:lt|gt|amp|quot|#39|#x27|#x2F);/g;function h2(t){return t.replace(u2,e=>c2[e]??e)}function d2(t){return h2(l2(t))}const de=new vn("MarkdownProcessor"),p2=new Zf,m2=/^---[ \t]*\r?\n([\s\S]*?)\r?\n---[ \t]*(?:\r?\n|$)/;function f2(t){const e=t.match(m2);return e?{frontMatter:e[0],body:t.slice(e[0].length)}:{frontMatter:null,body:t}}function g2(){return new Promise(t=>setTimeout(t,0))}const v2=5e3;let Nn=null,b2=0;const Ni=new Map;function y2(){return Nn||(Nn=new Worker(new URL("/app/immutable/workers/markdown-worker-CYrirh_Z.js",import.meta.url),{type:"module"}),Nn.onmessage=t=>{const{id:e,html:r,error:n}=t.data,a=Ni.get(e);a&&(n?a.reject(new Error(n)):a.resolve(r??""))},Nn.onerror=t=>{de.error("[markdown-worker] Worker error",{message:t.message})}),Nn}const El=3e4;async function Cl(t,e){const r=e?.preserveAnchors?bu(t):t;let a=await _u(e?.renderMath).parse(r);return e?.preserveAnchors&&(a=Lu(a)),a}function w2(t,e){return new Promise((r,n)=>{const a=b2++;let i=!1;const s=()=>i?!1:(i=!0,clearTimeout(o),Ni.delete(a),!0),o=setTimeout(()=>{s()&&(de.warn("[markdown-worker] Worker timed out, falling back to main thread",{id:a,markdownLength:t.length,timeoutMs:El}),Cl(t,e).then(r,n))},El);Ni.set(a,{resolve:c=>{s()&&r(c)},reject:c=>{s()&&n(c)}});try{y2().postMessage({id:a,markdown:t,pipeline:e})}catch(c){if(!s())return;de.warn("[markdown-worker] Failed to post to worker, falling back to main thread",c),Cl(t,e).then(r,n)}})}function k2(t){let e=3735928559,r=1103547991;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=Math.imul(e^a,2654435761),r=Math.imul(r^a,1597334677)}return e=Math.imul(e^e>>>16,2246822507),e^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(e^e>>>13,3266489909),(4294967296*(2097151&r)+(e>>>0)).toString(36)}const x2=200,sn=new Map,_r=[];function S2(t){const e=sn.get(t);if(e!==void 0){const r=_r.indexOf(t);return r>-1&&(_r.splice(r,1),_r.push(t)),e}return null}function Ml(t,e){if(sn.has(t)){sn.set(t,e);return}for(;_r.length>=x2;){const r=_r.shift();r&&sn.delete(r)}sn.set(t,e),_r.push(t)}function A2(){sn.clear(),_r.length=0}const T2=/<!--\s*anchor:([^:]+):([^-]+)\s*-->/g;function E2(t){let e="__MARKDOWN_SOURCE_";for(;t.includes(e);)e+="_";const r=[],n=s=>{const o=r.push(s)-1;return`${e}${o}__`},a=s=>s.replace(new RegExp(`${e}(\\d+)__`,"g"),(o,c)=>r[parseInt(c,10)]);let i=t;return i=i.replace(/```[\s\S]*?```/g,s=>n(s)),i=i.replace(/`([^`]+)`/g,s=>n(s)),i=p4(i,s=>n(a(s))),i=i.replace(/<(\/?)\s*([a-zA-Z][a-zA-Z0-9_-]*)(\s*)([^>]*?)(\/?)>/g,(s,o,c,h,d,v)=>/^(?:<br\s*\/?>|<\/?(?:sub|sup)>)$/i.test(s)?s:`&lt;${o}${c}${h}${d}${v}&gt;`),i=a(i),i}const Il=new Map;function _u(t=!1){let e=Il.get(t);return e||(e=f4({renderMath:t}),Il.set(t,e)),e}function C2(t){return t.replace(/<div data-type="(mermaid|diff)-block" data-(?:mermaid|diff)-code="([^"]*)"><\/div>/g,(e,r,n)=>{const a=decodeURIComponent(escape(atob(n))).replace(/[&<>"']/g,i=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[i]??i);return`<pre><code class="language-${r}">${a}</code></pre>`})}function M2(t){const e=t.includes("```ws-block"),r=t.includes("```diagram"),n=t.includes("```\n{");if(!e&&!r&&!n)return t;const a=p2.parseMarkdown(t);if(de.debug("[markdown-processor] processWsBlocks:",{hasWsBlocks:e,hasDiagramBlocks:r,hasBareCodeBlocks:n,primitivesFound:a.length,primitiveTypes:a.map(o=>o.primitive.type)}),a.length===0)return(e||r)&&de.warn("[markdown-processor] ws-blocks or diagram blocks found but no primitives parsed",{contentPreview:t.substring(0,500)}),t;let i=t;const s=[...a].sort((o,c)=>c.startLine-o.startLine);for(const o of s){const{primitive:c,rawContent:h}=o,d=JSON.stringify(c),v=new TextEncoder().encode(d);let m="";for(let I=0;I<v.length;I++)m+=String.fromCharCode(v[I]);const w=btoa(m),A=`<div data-primitive-type="${c.type}" data-primitive-id="${c.id}" data-primitive-base64="${w}"></div>`;de.debug("[markdown-processor] Replacing ws-block:",{type:c.type,id:c.id,rawContentPreview:h.substring(0,100)});const C=h.indexOf("```ws-block"),M=h.indexOf("```diagram"),k=C>=0?C:M;if(k>0){const I=h.substring(0,k).trim();if(I){de.info("[markdown-processor] Recovering text before corrupted primitive block fence:",{textBeforeFence:I.substring(0,100),primitiveId:c.id,primitiveType:c.type});const R=`${I}
391
+ `:""}`}function c2(t){try{if(/^[A-Za-z0-9+/=]+$/.test(t.trim()))return decodeURIComponent(escape(atob(t)))}catch{}return t}const u2={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&#39;":"'","&#x27;":"'","&#x2F;":"/"},h2=/&(?:lt|gt|amp|quot|#39|#x27|#x2F);/g;function d2(t){return t.replace(h2,e=>u2[e]??e)}function p2(t){return d2(c2(t))}const de=new vn("MarkdownProcessor"),m2=new Qf,f2=/^---[ \t]*\r?\n([\s\S]*?)\r?\n---[ \t]*(?:\r?\n|$)/;function g2(t){const e=t.match(f2);return e?{frontMatter:e[0],body:t.slice(e[0].length)}:{frontMatter:null,body:t}}function v2(){return new Promise(t=>setTimeout(t,0))}const b2=5e3;let Nn=null,y2=0;const Ni=new Map;function w2(){return Nn||(Nn=new Worker(new URL("/app/immutable/workers/markdown-worker-CYrirh_Z.js",import.meta.url),{type:"module"}),Nn.onmessage=t=>{const{id:e,html:r,error:n}=t.data,a=Ni.get(e);a&&(n?a.reject(new Error(n)):a.resolve(r??""))},Nn.onerror=t=>{de.error("[markdown-worker] Worker error",{message:t.message})}),Nn}const El=3e4;async function Cl(t,e){const r=e?.preserveAnchors?bu(t):t;let a=await _u(e?.renderMath).parse(r);return e?.preserveAnchors&&(a=Lu(a)),a}function k2(t,e){return new Promise((r,n)=>{const a=y2++;let i=!1;const s=()=>i?!1:(i=!0,clearTimeout(o),Ni.delete(a),!0),o=setTimeout(()=>{s()&&(de.warn("[markdown-worker] Worker timed out, falling back to main thread",{id:a,markdownLength:t.length,timeoutMs:El}),Cl(t,e).then(r,n))},El);Ni.set(a,{resolve:c=>{s()&&r(c)},reject:c=>{s()&&n(c)}});try{w2().postMessage({id:a,markdown:t,pipeline:e})}catch(c){if(!s())return;de.warn("[markdown-worker] Failed to post to worker, falling back to main thread",c),Cl(t,e).then(r,n)}})}function x2(t){let e=3735928559,r=1103547991;for(let n=0;n<t.length;n++){const a=t.charCodeAt(n);e=Math.imul(e^a,2654435761),r=Math.imul(r^a,1597334677)}return e=Math.imul(e^e>>>16,2246822507),e^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(e^e>>>13,3266489909),(4294967296*(2097151&r)+(e>>>0)).toString(36)}const S2=200,sn=new Map,_r=[];function A2(t){const e=sn.get(t);if(e!==void 0){const r=_r.indexOf(t);return r>-1&&(_r.splice(r,1),_r.push(t)),e}return null}function Ml(t,e){if(sn.has(t)){sn.set(t,e);return}for(;_r.length>=S2;){const r=_r.shift();r&&sn.delete(r)}sn.set(t,e),_r.push(t)}function T2(){sn.clear(),_r.length=0}const E2=/<!--\s*anchor:([^:]+):([^-]+)\s*-->/g;function C2(t){let e="__MARKDOWN_SOURCE_";for(;t.includes(e);)e+="_";const r=[],n=s=>{const o=r.push(s)-1;return`${e}${o}__`},a=s=>s.replace(new RegExp(`${e}(\\d+)__`,"g"),(o,c)=>r[parseInt(c,10)]);let i=t;return i=i.replace(/```[\s\S]*?```/g,s=>n(s)),i=i.replace(/`([^`]+)`/g,s=>n(s)),i=m4(i,s=>n(a(s))),i=i.replace(/<(\/?)\s*([a-zA-Z][a-zA-Z0-9_-]*)(\s*)([^>]*?)(\/?)>/g,(s,o,c,h,d,v)=>/^(?:<br\s*\/?>|<\/?(?:sub|sup)>)$/i.test(s)?s:`&lt;${o}${c}${h}${d}${v}&gt;`),i=a(i),i}const Il=new Map;function _u(t=!1){let e=Il.get(t);return e||(e=g4({renderMath:t}),Il.set(t,e)),e}function M2(t){return t.replace(/<div data-type="(mermaid|diff)-block" data-(?:mermaid|diff)-code="([^"]*)"><\/div>/g,(e,r,n)=>{const a=decodeURIComponent(escape(atob(n))).replace(/[&<>"']/g,i=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[i]??i);return`<pre><code class="language-${r}">${a}</code></pre>`})}function I2(t){const e=t.includes("```ws-block"),r=t.includes("```diagram"),n=t.includes("```\n{");if(!e&&!r&&!n)return t;const a=m2.parseMarkdown(t);if(de.debug("[markdown-processor] processWsBlocks:",{hasWsBlocks:e,hasDiagramBlocks:r,hasBareCodeBlocks:n,primitivesFound:a.length,primitiveTypes:a.map(o=>o.primitive.type)}),a.length===0)return(e||r)&&de.warn("[markdown-processor] ws-blocks or diagram blocks found but no primitives parsed",{contentPreview:t.substring(0,500)}),t;let i=t;const s=[...a].sort((o,c)=>c.startLine-o.startLine);for(const o of s){const{primitive:c,rawContent:h}=o,d=JSON.stringify(c),v=new TextEncoder().encode(d);let m="";for(let I=0;I<v.length;I++)m+=String.fromCharCode(v[I]);const w=btoa(m),A=`<div data-primitive-type="${c.type}" data-primitive-id="${c.id}" data-primitive-base64="${w}"></div>`;de.debug("[markdown-processor] Replacing ws-block:",{type:c.type,id:c.id,rawContentPreview:h.substring(0,100)});const C=h.indexOf("```ws-block"),M=h.indexOf("```diagram"),k=C>=0?C:M;if(k>0){const I=h.substring(0,k).trim();if(I){de.info("[markdown-processor] Recovering text before corrupted primitive block fence:",{textBeforeFence:I.substring(0,100),primitiveId:c.id,primitiveType:c.type});const R=`${I}
392
392
 
393
- ${A}`;i=i.replace(h,R);continue}}i=i.replace(h,A)}return i}const ii="\0",I2=/\u0000/g,zl=/^ {0,3}(`{3,}|~{3,})/,z2=/^@@@tasks?(?:[ \t]|$)/,R2=/^@@@\s*$/,Rl=/^[ \t]*(?:[-*+]|\d+[.)])\s/,Dl=/^(?: {2,}|\t)/,D2=/^ {0,3}(?:#{1,6}(?:[ \t]|$)|>|(?:\*[ \t]*){3,}$|(?:-[ \t]*){3,}$|(?:_[ \t]*){3,}$|<[a-zA-Z!/?])/;function N2(t){const e=t.split(`
394
- `);e.length>1&&e[e.length-1]===""&&e.pop();const r=[];let n=null,a=!1,i=[],s=!1,o=!1,c=!1;const h=v=>{for(let m=0;m<v;m++)r.push("<p></p>","")},d=v=>{const m=i.length;m!==0&&(s?v===void 0||m>=2&&!Dl.test(v)&&!(o&&Rl.test(v))?(r.push(""),h(m-1)):r.push(...i):h(m),i=[])};for(const v of e){if(n){r.push(v);const M=zl.exec(v);M&&M[1][0]===n.char&&M[1].length>=n.length&&v.slice(M[0].length).trim()===""&&(n=null),c=!1;continue}if(a){r.push(v),R2.test(v)&&(a=!1),c=!1;continue}if(v.trim()===""){i.push(v);continue}const m=i.length>0;d(v),s=!0,r.push(v);const w=zl.exec(v),A=!w&&z2.test(v),C=w!==null||A||D2.test(v);Rl.test(v)?o=!0:!Dl.test(v)&&(C||m||!c)&&(o=!1),c=!C,w?n={char:w[1][0],length:w[1].length}:A&&(a=!0)}return d(void 0),r.join(`
395
- `)}async function A6(t,e={}){const{allowEmpty:r=!0,skipIfHTML:n=!0,allowSanitizedHtml:a=!1,preserveAnchors:i=!0,processPrimitives:s=!0,taskBlockRenderMode:o="placeholder",workspaceId:c,relativeMediaBase:h,renderRichFencesAsCode:d=!1,renderMath:v=!1,readOnly:m=!1,workspaceFileVersion:w}=e,A=k=>k.includes("workspace-file://")?uf(k,w??Mu()):k;if(!t||t.trim()===""||t.trim()==="<p></p>")return r?"":"<p></p>";if(n&&t.trim().startsWith("<")&&!t.trim().startsWith("<!--anchor:"))if(t.includes("```ws-block"))de.debug("Content looks like HTML but has ws-blocks, processing anyway");else return Hn(t,c);const C=`${k2(t)}:${t.length}|${r}|${n}|${i}|${s}|${o}|${c??""}|${h===void 0?"-":`base:${h}`}|${d}|${v}|${a}|${m}`,M=S2(C);if(M!==null)return A(M);try{const k=t.length>v2,I=k?performance.now():0;k&&de.info("[markdown-processor] Processing large content",{contentLength:t.length});const{body:R}=f2(t),Z=o==="content"?Xd(R):R,K=a?Z:E2(Z),ee=k?performance.now():0;let T=K;if(s){T=M2(K);const Q=K.includes("```ws-block"),Y=K.includes("```diagram"),te=T.includes("data-primitive-type");(Q||Y)&&de.debug("[markdown-processor] processWsBlocks result:",{hasWsBlocksInInput:Q,hasDiagramBlocksInInput:Y,hasPrimitiveDivsInOutput:te,inputPreview:K.substring(0,300),outputPreview:T.substring(0,300)})}T=N2(T);const B=k?performance.now():0;let q;if(k)q=await w2(T,{preserveAnchors:i,renderMath:v});else{const Q=i?bu(T):T,te=await _u(v).parse(Q);q=i?Lu(te):te}d&&(q=C2(q));const X=k?performance.now():0;q=P2(q),h!==void 0&&(q=df(q,h)),q=pf(q,c,{readOnly:m});const N=k?performance.now():0,D=q.includes("data-primitive-type");k&&await g2(),q=Hn(q,c,{preserveKatexLayoutStyles:v,readOnly:m});const W=k?performance.now():0,_=q.includes("data-primitive-type");return D&&!_&&de.warn("[markdown-processor] Primitive divs were stripped during sanitization"),k&&de.info("[markdown-processor] Step timings (ms)",{escapeHtml:Math.round(ee-I),wsBlocks:Math.round(B-ee),workerPipeline:Math.round(X-B),mentions:Math.round(N-X),sanitize:Math.round(W-N),total:Math.round(W-I),contentLength:t.length,usedWorker:k}),Ml(C,q),A(q)}catch(k){de.error("[markdown-processor] Failed to parse markdown:",k);const I=Hn(`<p>${t}</p>`,c);return Ml(C,I),I}}function Lu(t){return t.replace(T2,(e,r,n)=>`<span data-anchor-id="${`${r}:${n}`}" data-anchor-type="${n}" data-comment-id="${r}" style="display:none"></span>`)}function P2(t){if(typeof document>"u")return t;const e=document.createElement("template");e.innerHTML=t;const r=e.content,n=new Set(["CODE","PRE","SCRIPT","STYLE"]),a=s=>{const o=s.nodeValue||"",c=L1(o,"markdown");if(c.length===0)return;const h=document.createDocumentFragment();let d=0;for(const v of c){v.index>d&&h.appendChild(document.createTextNode(o.slice(d,v.index)));const m=v.parsed?O1(v.parsed):null;if(m){const w=document.createElement("span");for(const[A,C]of m.attributes)w.setAttribute(A,C);w.className=m.className,w.textContent=m.text,h.appendChild(w)}else h.appendChild(document.createTextNode(v.text));d=v.index+v.text.length}d<o.length&&h.appendChild(document.createTextNode(o.slice(d))),s.parentNode?.replaceChild(h,s)},i=(s,o)=>{if(s.nodeType===Node.ELEMENT_NODE){const c=s,h=o||n.has(c.tagName)||c.hasAttribute("data-mention")||c.hasAttribute("data-math-source")||c.tagName==="A";for(const d of Array.from(c.childNodes))i(d,h)}else s.nodeType===Node.TEXT_NODE&&(o||a(s))};for(const s of Array.from(r.childNodes))i(s,!1);return e.innerHTML}function _2(t){const e=document.createElement("div");return e.innerHTML=t,e.querySelectorAll("span[data-anchor-id]").forEach(n=>{const a=n.getAttribute("data-anchor-id");if(a){const i=document.createComment(`anchor:${a}`);n.parentNode?.replaceChild(i,n)}}),e.innerHTML}const Nl={hardBreak:"<br>",tableCell:!0},L2=t=>t.replace(/(\\*)\|/g,(e,r)=>`${r}${r}\\|`),O2=t=>t.replace(/(\\*)\|/g,(e,r)=>`${r.length%2?r:`${r}\\`}|`);function T6(t,e={}){const{preserveAnchors:r=!0,workspaceId:n}=e,a=t.includes("data-primitive-type"),i=t.includes("data-type="),s=t.includes("reference_block"),o=t.includes("cli_block"),c=t.includes("patch_block"),h=t.includes("agent_action_block"),d=t.includes("data-primitive");if(de.debug("[markdown-processor] processHTMLToMarkdown INPUT:",{htmlLength:t.length,hasPrimitiveType:a,hasDataType:i,hasReferenceBlock:s,hasCliBlock:o,hasPatchBlock:c,hasAgentActionBlock:h,hasDataPrimitive:d,htmlPreview:t.substring(0,500)}),!t||t.trim()==="<p></p>")return de.debug("[markdown-processor] processHTMLToMarkdown OUTPUT (empty)"),"";const v=T=>{const B=T.getAttribute("data-math-source"),q=T.tagName==="SPAN"&&T.classList.contains("math-inline"),X=T.tagName==="DIV"&&T.classList.contains("math-display");if(!B||!q&&!X)return;const N=q?/^\$((?:\\.|[^\\$\n])+?)\$$/.exec(B)??/^\\\(((?:\\.|[^\\\n])*?)\\\)$/.exec(B):/^\$\$[ \t]*([\s\S]*?)[ \t]*\$\$$/.exec(B)??/^\\\[[ \t]*([\s\S]*?)[ \t]*\\\]$/.exec(B);if(N&&!(N[1].length>pu||T.childNodes.length!==1))try{const D=document.createElement("div"),W=document.createElement(q?"span":"div");return W.className=q?"math-inline":"math-display",W.setAttribute("data-math-source",B),W.innerHTML=mu(N[1],X),D.innerHTML=Hn(W.outerHTML,n,{preserveKatexLayoutStyles:!0}),D.firstElementChild?.firstElementChild?.isEqualNode(T.firstElementChild)?B:void 0}catch{return}},m=r?_2(t):t,w=document.createElement("div");if(r)w.innerHTML=m;else{const T=Hn(m,n,{preserveKatexLayoutStyles:!0});w.innerHTML=T}const A=(T,B={})=>{const q=B.hardBreak??`
396
- `,X=W=>B.tableCell?L2(W):W,N=W=>B.tableCell?O2(W):W;let D="";for(const W of Array.from(T.childNodes))if(W.nodeType===Node.COMMENT_NODE){const _=W;_.data.startsWith("anchor:")&&(D+=`<!--${_.data}-->`)}else if(W.nodeType===Node.TEXT_NODE)D+=X(W.textContent||"");else if(W.nodeType===Node.ELEMENT_NODE){const _=W,Q=v(_);if(_.tagName==="STRONG"||_.tagName==="B")D+=`**${A(_,B)}**`;else if(_.tagName==="EM"||_.tagName==="I")D+=`*${A(_,B)}*`;else if(_.tagName==="BR")D+=q;else if(_.tagName==="CODE")D+=`\`${N(_.textContent||"")}\``;else if(Q)D+=N(Q);else if(_.tagName==="SPAN"){const Y=Hh(_);if(Y){const te=Y.label||_.textContent||"";try{D+=X($1({type:Y.type,id:Y.id||te,label:te,meta:Y.meta}))}catch{D+=te?X(`@${te}`):""}}else D+=A(_,B)}else if(_.tagName==="A"){const Y=_.getAttribute("href")||"",te=A(_,B);Y?D+=`[${te}](${X(Y)})`:D+=te}else if(_.tagName==="IMG"){const Y=_.getAttribute("src")||"",te=X(Ri(Y)??Y),be=X(_.getAttribute("alt")||""),Ne=_.getAttribute("title"),he=Ne&&X(Ne);he?D+=`![${be}](${te} "${he}")`:D+=`![${be}](${te})`}else if(_.tagName==="VIDEO"){const Y=_.getAttribute("src")||"",te=X(kl(Y)??Y),be=X(_.getAttribute("data-name")||"");te&&(D+=`![${be}](${te})`)}else _.tagName==="DIV"&&(_.hasAttribute("data-type")||_.hasAttribute("data-primitive-type"))?de.warn("[markdown-processor] Found primitive block DIV inside inline content, skipping",{dataType:_.getAttribute("data-type"),primitiveType:_.getAttribute("data-primitive-type")}):D+=X(_.textContent||"")}return D},C=T=>{const B=[];let q="";const X=()=>{B.push(q),q=""};for(const N of Array.from(T.childNodes))if(N.nodeType===Node.ELEMENT_NODE&&N.tagName==="P")X(),B.push(A(N,Nl));else{const D=document.createElement("span");D.appendChild(N.cloneNode(!0)),q+=A(D,Nl)}return X(),B.map(N=>N.replace(/\s*\n\s*/g," ").trim()).filter(Boolean).join("<br>")},M=T=>{let B="";const q=N=>{let D="";for(const W of Array.from(N))if(W.nodeType===Node.COMMENT_NODE){const _=W;_.data.startsWith("anchor:")&&(D+=`<!--${_.data}-->`)}else if(W.nodeType===Node.TEXT_NODE)D+=W.textContent||"";else if(W.nodeType===Node.ELEMENT_NODE){const _=W;(_.tagName==="P"||_.tagName!=="UL"&&_.tagName!=="OL")&&(D+=A(_))}return D},X=Array.from(T.children).filter(N=>N.tagName==="DIV");if(de.debug("[markdown-processor] getListItemTextContent:",{liOuterHTML:T.outerHTML.substring(0,500),divsCount:X.length,divContents:X.map(N=>({innerHTML:N.innerHTML.substring(0,200),childNodes:Array.from(N.childNodes).map(D=>({type:D.nodeType,name:D.tagName||"#text",content:D.textContent?.substring(0,50)}))}))}),X.length>0){const N=X[0];return B=q(N.childNodes),de.debug("[markdown-processor] getListItemTextContent result from div:",{text:B.substring(0,100)}),B.trim()}return B=q(T.childNodes),de.debug("[markdown-processor] getListItemTextContent result from fallback:",{text:B.substring(0,100)}),B.trim()},k=(T,B=0)=>{let q="";const X=T.tagName==="OL",N=T.classList.contains("task-list")||T.getAttribute("data-type")==="taskList";let D="";B>0&&(N?B===1?D=" ":D=` ${" ".repeat(B-1)}`:X?D=" ".repeat(B):D=" ".repeat(B));const W=T.children?Array.from(T.children).filter(_=>_.tagName==="LI"):[];return de.debug("[markdown-processor] Processing list:",{tagName:T.tagName,isTaskList:N,indentLevel:B,directChildrenCount:W.length}),W.forEach((_,Q)=>{if(N&&_.hasAttribute("data-type")&&_.getAttribute("data-type")==="taskItem"){const Y=_.getAttribute("data-checked"),te=_.getAttribute("data-status"),be=_.querySelector('input[type="checkbox"]');let Ne="- [ ] ";te==="in-progress"?Ne="- [/] ":(Y==="true"||Y===null&&be?.checked)&&(Ne="- [x] ");const he=M(_),Ae=_.getAttribute("data-delegated-agent-id"),At=Ae?` <!--agent:${Ae}-->`:"";de.debug("[markdown-processor] Processing task item:",{index:Q,indentLevel:B,dataChecked:Y,dataStatus:te,taskPrefix:Ne,taskText:he,delegatedAgentId:Ae}),q+=`${D+Ne+he}${At}
397
- `;const Xe=[];Xe.push(...Array.from(_.children).filter(ht=>ht.tagName==="UL"||ht.tagName==="OL"));const Qt=Array.from(_.children).filter(ht=>ht.tagName==="DIV");for(const ht of Qt)Xe.push(...Array.from(ht.children).filter(Wr=>Wr.tagName==="UL"||Wr.tagName==="OL"));for(const ht of Xe)q+=k(ht,B+1)}else{const Y=T.tagName==="OL"?`${Q+1}. `:"- ",te=M(_);de.debug("[markdown-processor] Processing regular list item:",{index:Q,indentLevel:B,prefix:Y,text:te}),q+=`${D+Y+te}
393
+ ${A}`;i=i.replace(h,R);continue}}i=i.replace(h,A)}return i}const ii="\0",z2=/\u0000/g,zl=/^ {0,3}(`{3,}|~{3,})/,R2=/^@@@tasks?(?:[ \t]|$)/,D2=/^@@@\s*$/,Rl=/^[ \t]*(?:[-*+]|\d+[.)])\s/,Dl=/^(?: {2,}|\t)/,N2=/^ {0,3}(?:#{1,6}(?:[ \t]|$)|>|(?:\*[ \t]*){3,}$|(?:-[ \t]*){3,}$|(?:_[ \t]*){3,}$|<[a-zA-Z!/?])/;function P2(t){const e=t.split(`
394
+ `);e.length>1&&e[e.length-1]===""&&e.pop();const r=[];let n=null,a=!1,i=[],s=!1,o=!1,c=!1;const h=v=>{for(let m=0;m<v;m++)r.push("<p></p>","")},d=v=>{const m=i.length;m!==0&&(s?v===void 0||m>=2&&!Dl.test(v)&&!(o&&Rl.test(v))?(r.push(""),h(m-1)):r.push(...i):h(m),i=[])};for(const v of e){if(n){r.push(v);const M=zl.exec(v);M&&M[1][0]===n.char&&M[1].length>=n.length&&v.slice(M[0].length).trim()===""&&(n=null),c=!1;continue}if(a){r.push(v),D2.test(v)&&(a=!1),c=!1;continue}if(v.trim()===""){i.push(v);continue}const m=i.length>0;d(v),s=!0,r.push(v);const w=zl.exec(v),A=!w&&R2.test(v),C=w!==null||A||N2.test(v);Rl.test(v)?o=!0:!Dl.test(v)&&(C||m||!c)&&(o=!1),c=!C,w?n={char:w[1][0],length:w[1].length}:A&&(a=!0)}return d(void 0),r.join(`
395
+ `)}async function T6(t,e={}){const{allowEmpty:r=!0,skipIfHTML:n=!0,allowSanitizedHtml:a=!1,preserveAnchors:i=!0,processPrimitives:s=!0,taskBlockRenderMode:o="placeholder",workspaceId:c,relativeMediaBase:h,renderRichFencesAsCode:d=!1,renderMath:v=!1,readOnly:m=!1,workspaceFileVersion:w}=e,A=k=>k.includes("workspace-file://")?hf(k,w??Mu()):k;if(!t||t.trim()===""||t.trim()==="<p></p>")return r?"":"<p></p>";if(n&&t.trim().startsWith("<")&&!t.trim().startsWith("<!--anchor:"))if(t.includes("```ws-block"))de.debug("Content looks like HTML but has ws-blocks, processing anyway");else return Hn(t,c);const C=`${x2(t)}:${t.length}|${r}|${n}|${i}|${s}|${o}|${c??""}|${h===void 0?"-":`base:${h}`}|${d}|${v}|${a}|${m}`,M=A2(C);if(M!==null)return A(M);try{const k=t.length>b2,I=k?performance.now():0;k&&de.info("[markdown-processor] Processing large content",{contentLength:t.length});const{body:R}=g2(t),Z=o==="content"?Yd(R):R,K=a?Z:C2(Z),ee=k?performance.now():0;let T=K;if(s){T=I2(K);const Q=K.includes("```ws-block"),Y=K.includes("```diagram"),te=T.includes("data-primitive-type");(Q||Y)&&de.debug("[markdown-processor] processWsBlocks result:",{hasWsBlocksInInput:Q,hasDiagramBlocksInInput:Y,hasPrimitiveDivsInOutput:te,inputPreview:K.substring(0,300),outputPreview:T.substring(0,300)})}T=P2(T);const B=k?performance.now():0;let q;if(k)q=await k2(T,{preserveAnchors:i,renderMath:v});else{const Q=i?bu(T):T,te=await _u(v).parse(Q);q=i?Lu(te):te}d&&(q=M2(q));const X=k?performance.now():0;q=_2(q),h!==void 0&&(q=pf(q,h)),q=mf(q,c,{readOnly:m});const N=k?performance.now():0,D=q.includes("data-primitive-type");k&&await v2(),q=Hn(q,c,{preserveKatexLayoutStyles:v,readOnly:m});const W=k?performance.now():0,_=q.includes("data-primitive-type");return D&&!_&&de.warn("[markdown-processor] Primitive divs were stripped during sanitization"),k&&de.info("[markdown-processor] Step timings (ms)",{escapeHtml:Math.round(ee-I),wsBlocks:Math.round(B-ee),workerPipeline:Math.round(X-B),mentions:Math.round(N-X),sanitize:Math.round(W-N),total:Math.round(W-I),contentLength:t.length,usedWorker:k}),Ml(C,q),A(q)}catch(k){de.error("[markdown-processor] Failed to parse markdown:",k);const I=Hn(`<p>${t}</p>`,c);return Ml(C,I),I}}function Lu(t){return t.replace(E2,(e,r,n)=>`<span data-anchor-id="${`${r}:${n}`}" data-anchor-type="${n}" data-comment-id="${r}" style="display:none"></span>`)}function _2(t){if(typeof document>"u")return t;const e=document.createElement("template");e.innerHTML=t;const r=e.content,n=new Set(["CODE","PRE","SCRIPT","STYLE"]),a=s=>{const o=s.nodeValue||"",c=O1(o,"markdown");if(c.length===0)return;const h=document.createDocumentFragment();let d=0;for(const v of c){v.index>d&&h.appendChild(document.createTextNode(o.slice(d,v.index)));const m=v.parsed?$1(v.parsed):null;if(m){const w=document.createElement("span");for(const[A,C]of m.attributes)w.setAttribute(A,C);w.className=m.className,w.textContent=m.text,h.appendChild(w)}else h.appendChild(document.createTextNode(v.text));d=v.index+v.text.length}d<o.length&&h.appendChild(document.createTextNode(o.slice(d))),s.parentNode?.replaceChild(h,s)},i=(s,o)=>{if(s.nodeType===Node.ELEMENT_NODE){const c=s,h=o||n.has(c.tagName)||c.hasAttribute("data-mention")||c.hasAttribute("data-math-source")||c.tagName==="A";for(const d of Array.from(c.childNodes))i(d,h)}else s.nodeType===Node.TEXT_NODE&&(o||a(s))};for(const s of Array.from(r.childNodes))i(s,!1);return e.innerHTML}function L2(t){const e=document.createElement("div");return e.innerHTML=t,e.querySelectorAll("span[data-anchor-id]").forEach(n=>{const a=n.getAttribute("data-anchor-id");if(a){const i=document.createComment(`anchor:${a}`);n.parentNode?.replaceChild(i,n)}}),e.innerHTML}const Nl={hardBreak:"<br>",tableCell:!0},O2=t=>t.replace(/(\\*)\|/g,(e,r)=>`${r}${r}\\|`),$2=t=>t.replace(/(\\*)\|/g,(e,r)=>`${r.length%2?r:`${r}\\`}|`);function E6(t,e={}){const{preserveAnchors:r=!0,workspaceId:n}=e,a=t.includes("data-primitive-type"),i=t.includes("data-type="),s=t.includes("reference_block"),o=t.includes("cli_block"),c=t.includes("patch_block"),h=t.includes("agent_action_block"),d=t.includes("data-primitive");if(de.debug("[markdown-processor] processHTMLToMarkdown INPUT:",{htmlLength:t.length,hasPrimitiveType:a,hasDataType:i,hasReferenceBlock:s,hasCliBlock:o,hasPatchBlock:c,hasAgentActionBlock:h,hasDataPrimitive:d,htmlPreview:t.substring(0,500)}),!t||t.trim()==="<p></p>")return de.debug("[markdown-processor] processHTMLToMarkdown OUTPUT (empty)"),"";const v=T=>{const B=T.getAttribute("data-math-source"),q=T.tagName==="SPAN"&&T.classList.contains("math-inline"),X=T.tagName==="DIV"&&T.classList.contains("math-display");if(!B||!q&&!X)return;const N=q?/^\$((?:\\.|[^\\$\n])+?)\$$/.exec(B)??/^\\\(((?:\\.|[^\\\n])*?)\\\)$/.exec(B):/^\$\$[ \t]*([\s\S]*?)[ \t]*\$\$$/.exec(B)??/^\\\[[ \t]*([\s\S]*?)[ \t]*\\\]$/.exec(B);if(N&&!(N[1].length>pu||T.childNodes.length!==1))try{const D=document.createElement("div"),W=document.createElement(q?"span":"div");return W.className=q?"math-inline":"math-display",W.setAttribute("data-math-source",B),W.innerHTML=mu(N[1],X),D.innerHTML=Hn(W.outerHTML,n,{preserveKatexLayoutStyles:!0}),D.firstElementChild?.firstElementChild?.isEqualNode(T.firstElementChild)?B:void 0}catch{return}},m=r?L2(t):t,w=document.createElement("div");if(r)w.innerHTML=m;else{const T=Hn(m,n,{preserveKatexLayoutStyles:!0});w.innerHTML=T}const A=(T,B={})=>{const q=B.hardBreak??`
396
+ `,X=W=>B.tableCell?O2(W):W,N=W=>B.tableCell?$2(W):W;let D="";for(const W of Array.from(T.childNodes))if(W.nodeType===Node.COMMENT_NODE){const _=W;_.data.startsWith("anchor:")&&(D+=`<!--${_.data}-->`)}else if(W.nodeType===Node.TEXT_NODE)D+=X(W.textContent||"");else if(W.nodeType===Node.ELEMENT_NODE){const _=W,Q=v(_);if(_.tagName==="STRONG"||_.tagName==="B")D+=`**${A(_,B)}**`;else if(_.tagName==="EM"||_.tagName==="I")D+=`*${A(_,B)}*`;else if(_.tagName==="BR")D+=q;else if(_.tagName==="CODE")D+=`\`${N(_.textContent||"")}\``;else if(Q)D+=N(Q);else if(_.tagName==="SPAN"){const Y=Uh(_);if(Y){const te=Y.label||_.textContent||"";try{D+=X(B1({type:Y.type,id:Y.id||te,label:te,meta:Y.meta}))}catch{D+=te?X(`@${te}`):""}}else D+=A(_,B)}else if(_.tagName==="A"){const Y=_.getAttribute("href")||"",te=A(_,B);Y?D+=`[${te}](${X(Y)})`:D+=te}else if(_.tagName==="IMG"){const Y=_.getAttribute("src")||"",te=X(Ri(Y)??Y),be=X(_.getAttribute("alt")||""),Ne=_.getAttribute("title"),he=Ne&&X(Ne);he?D+=`![${be}](${te} "${he}")`:D+=`![${be}](${te})`}else if(_.tagName==="VIDEO"){const Y=_.getAttribute("src")||"",te=X(kl(Y)??Y),be=X(_.getAttribute("data-name")||"");te&&(D+=`![${be}](${te})`)}else _.tagName==="DIV"&&(_.hasAttribute("data-type")||_.hasAttribute("data-primitive-type"))?de.warn("[markdown-processor] Found primitive block DIV inside inline content, skipping",{dataType:_.getAttribute("data-type"),primitiveType:_.getAttribute("data-primitive-type")}):D+=X(_.textContent||"")}return D},C=T=>{const B=[];let q="";const X=()=>{B.push(q),q=""};for(const N of Array.from(T.childNodes))if(N.nodeType===Node.ELEMENT_NODE&&N.tagName==="P")X(),B.push(A(N,Nl));else{const D=document.createElement("span");D.appendChild(N.cloneNode(!0)),q+=A(D,Nl)}return X(),B.map(N=>N.replace(/\s*\n\s*/g," ").trim()).filter(Boolean).join("<br>")},M=T=>{let B="";const q=N=>{let D="";for(const W of Array.from(N))if(W.nodeType===Node.COMMENT_NODE){const _=W;_.data.startsWith("anchor:")&&(D+=`<!--${_.data}-->`)}else if(W.nodeType===Node.TEXT_NODE)D+=W.textContent||"";else if(W.nodeType===Node.ELEMENT_NODE){const _=W;(_.tagName==="P"||_.tagName!=="UL"&&_.tagName!=="OL")&&(D+=A(_))}return D},X=Array.from(T.children).filter(N=>N.tagName==="DIV");if(de.debug("[markdown-processor] getListItemTextContent:",{liOuterHTML:T.outerHTML.substring(0,500),divsCount:X.length,divContents:X.map(N=>({innerHTML:N.innerHTML.substring(0,200),childNodes:Array.from(N.childNodes).map(D=>({type:D.nodeType,name:D.tagName||"#text",content:D.textContent?.substring(0,50)}))}))}),X.length>0){const N=X[0];return B=q(N.childNodes),de.debug("[markdown-processor] getListItemTextContent result from div:",{text:B.substring(0,100)}),B.trim()}return B=q(T.childNodes),de.debug("[markdown-processor] getListItemTextContent result from fallback:",{text:B.substring(0,100)}),B.trim()},k=(T,B=0)=>{let q="";const X=T.tagName==="OL",N=T.classList.contains("task-list")||T.getAttribute("data-type")==="taskList";let D="";B>0&&(N?B===1?D=" ":D=` ${" ".repeat(B-1)}`:X?D=" ".repeat(B):D=" ".repeat(B));const W=T.children?Array.from(T.children).filter(_=>_.tagName==="LI"):[];return de.debug("[markdown-processor] Processing list:",{tagName:T.tagName,isTaskList:N,indentLevel:B,directChildrenCount:W.length}),W.forEach((_,Q)=>{if(N&&_.hasAttribute("data-type")&&_.getAttribute("data-type")==="taskItem"){const Y=_.getAttribute("data-checked"),te=_.getAttribute("data-status"),be=_.querySelector('input[type="checkbox"]');let Ne="- [ ] ";te==="in-progress"?Ne="- [/] ":(Y==="true"||Y===null&&be?.checked)&&(Ne="- [x] ");const he=M(_),Ae=_.getAttribute("data-delegated-agent-id"),At=Ae?` <!--agent:${Ae}-->`:"";de.debug("[markdown-processor] Processing task item:",{index:Q,indentLevel:B,dataChecked:Y,dataStatus:te,taskPrefix:Ne,taskText:he,delegatedAgentId:Ae}),q+=`${D+Ne+he}${At}
397
+ `;const Xe=[];Xe.push(...Array.from(_.children).filter(ht=>ht.tagName==="UL"||ht.tagName==="OL"));const Jt=Array.from(_.children).filter(ht=>ht.tagName==="DIV");for(const ht of Jt)Xe.push(...Array.from(ht.children).filter(Wr=>Wr.tagName==="UL"||Wr.tagName==="OL"));for(const ht of Xe)q+=k(ht,B+1)}else{const Y=T.tagName==="OL"?`${Q+1}. `:"- ",te=M(_);de.debug("[markdown-processor] Processing regular list item:",{index:Q,indentLevel:B,prefix:Y,text:te}),q+=`${D+Y+te}
398
398
  `;const be=[];be.push(...Array.from(_.children).filter(he=>he.tagName==="UL"||he.tagName==="OL"));const Ne=Array.from(_.children).filter(he=>he.tagName==="DIV");for(const he of Ne)be.push(...Array.from(he.children).filter(Ae=>Ae.tagName==="UL"||Ae.tagName==="OL"));for(const he of be)q+=k(he,B+1)}}),q},I=T=>{const B=v(T);if(B)return`${B}${T.tagName==="DIV"?`
399
399
 
400
400
  `:""}`;if(T.tagName==="IMG"){const N=T.getAttribute("src")||"",D=Ri(N)??N,W=T.getAttribute("alt")||"",_=T.getAttribute("title");return _?`![${W}](${D} "${_}")
@@ -450,7 +450,7 @@ ${D}
450
450
  \`\`\`
451
451
 
452
452
  `}else if(T.tagName==="DIV"&&T.getAttribute("data-type")==="diff-block"){const N=T.getAttribute("data-diff-code")||"";return`\`\`\`diff
453
- ${d2(N)}
453
+ ${p2(N)}
454
454
  \`\`\`
455
455
 
456
456
  `}else if(T.tagName==="DIV"&&T.hasAttribute("data-primitive-type")){const N=T.getAttribute("data-primitive");if(de.debug("[markdown-processor] Found data-primitive-type div",{primitiveType:T.getAttribute("data-primitive-type"),hasPrimitiveData:!!N,primitiveDataPreview:N?.substring(0,100)}),N)try{const D=JSON.parse(N.replace(/&#39;/g,"'"));return`\`\`\`ws-block
@@ -473,8 +473,8 @@ ${JSON.stringify(Q,null,2)}
473
473
 
474
474
  `)})}else if(T.nodeType===Node.TEXT_NODE){const q=T.textContent||"";q.trim()&&de.warn("[markdown-processor] Found top-level text node (treating as paragraph):",{textPreview:q.substring(0,100),textLength:q.length})}R+=B}if(K===1&&ee!==null&&ee!=="P"){const T=R.lastIndexOf(ii);R=R.slice(0,T)+R.slice(T+1)}return R=R.replace(/\n{3,}/g,`
475
475
 
476
- `).trim().replace(I2,`
477
- `),de.debug("[markdown-processor] processHTMLToMarkdown OUTPUT:",{markdownLength:R.length,preservedAnchors:r}),R}typeof window<"u"&&(window.__clearMarkdownCache=A2);const Pl={major:15,minor:3},Ou="workspace-create:initializeGit",$2="~/Documents",_l="~/Developer";function B2(t){return rc(t,Pl.major,Pl.minor)}function E6(t){return t.some(e=>!B1(e))}function C6(t){return t.rememberedChoice!==null?t.rememberedChoice:t.hasGitWorkspace||t.githubConnected||t.gitlabConnected||t.githubFailed||t.gitlabFailed?!0:!t.workspacesLoaded||!t.githubSettled||!t.gitlabSettled?null:!1}function M6(t,e){switch(t){case"git-repo":return!e;case"new-repo":return!0;case"clone":return!1;default:return null}}function I6(t){try{const e=t?.getItem(Ou);if(e==="true")return!0;if(e==="false")return!1}catch{}return null}function z6(t,e){try{t?.setItem(Ou,String(e))}catch{}}function R6(t,e){return t&&t!==_l?t:e?$2:_l}function q2(t,e){const r=n=>n.replace(/[\\/]+$/,"");return r(t)===r(e)}function D6(t,e){return e?t.filter(r=>[r.repositoryPath,r.worktreePath,r.path].some(n=>typeof n=="string"&&n.length>0&&q2(n,e))):[]}function N6(t){const e=t.contextLinks?.filter(r=>r.kind!=="pr");return{title:t.title??"",repositoryPath:t.repositoryPath,plainFolder:!0,...e&&e.length>0?{contextLinks:e}:{},...t.linearIssue?{linearIssue:t.linearIssue}:{},...t.sentryIssue?{sentryIssue:t.sentryIssue}:{},...t.initialAgent?{initialAgent:t.initialAgent}:{}}}function P6(t,e){return!t||t.isGitRepo||t.isSubdirectoryOfGitRepo?null:t.exists?t.isDirectory?"existing":null:e===!1?"new":null}function _6(t){return t.labsEnabled&&B2(t.protocolVersion)&&t.githubSettled&&t.gitlabSettled&&!t.githubFailed&&!t.gitlabFailed&&!t.githubConnected&&!t.gitlabConnected}function L6(t,e){return!!t&&!t.plainFolder&&e.checked&&!e.available}const $t=E.createSelector(t=>Yl.select(t)?mr.select(t):null),F2=E.createSelector(t=>{const e=qr.select(t)?.principal;return e?JSON.stringify([t.connections.windowBackendId,e.id]):null}),O6=E.createSelector(t=>ve(t.workspace.workspaces).map(e=>String(e.id))),$6=E.createSelector((t,e,r=De)=>{const n=$t.select(t),a=xe(t.workspace.workspaces,gn(e)),i=Li(t.workspaceDiscussion,e,r);return n&&t.workspaceDiscussion.context===n&&a&&t.workspaceDiscussion.workspaceIds.includes(e)&&i?{context:n,workspaceId:e,conversationId:r,epoch:i.epoch}:null}),sa=E.createSelector(t=>{const e=t.workspaceDiscussion.owner;if(!e||!mh.select(t)||t.principal.status==="revoked"||t.principal.error==="incompatible-response"||t.connections.authRejected?.id===t.connections.windowBackendId)return!1;const r=F2.select(t);if(r)return r===e;try{const[n,a]=JSON.parse(e),i=t.principal.boundPrincipalId??t.principal.snapshot?.principal.id;return n===t.connections.windowBackendId&&(i==null||i===a)}catch{return!1}}),Nt=E.createSelector((t,e,r=De)=>{if(!xe(t.workspace.workspaces,gn(e))||!sa.select(t))return w0;const a=Li(t.workspaceDiscussion,e,r)??w0;return r!==De&&r!==Kt&&(!a.authorized||!a.initialized&&t.workspaceDiscussion.conversationsSupported!==!0)?{...a,draft:"",agentMentions:[],principalMentions:[],messages:w0.messages,pending:w0.pending}:a}),H2=E.createSelector((t,e,r=De)=>Nt.select(t,e,r).authorized?ve(Nt.select(t,e,r).messages):[]),B6=E.createSelector((t,e,r=De)=>Nt.select(t,e,r).authorized?ve(Nt.select(t,e,r).pending):[]),U2=E.createSelector((t,e,r=De)=>{const n=xe(t.workspace.workspaces,gn(e)),a=Nt.select(t,e,r);return!!$t.select(t)&&!!n&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&(r===De||(r===Kt?t.workspaceDiscussion.managementSupported===!0:(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)&&a.authorized))&&!a.unsupported&&a.error!=="forbidden"}),q6=E.createSelector(t=>t.workspaceDiscussion.requestedIds),F6=E.createSelector(t=>t.workspaceDiscussion.requestedIds.filter(e=>{const[r,n]=JSON.parse(e);return!Li(t.workspaceDiscussion,r,n)})),$u=E.createSelector((t,e)=>qu.select(t)===!0&&!!$t.select(t)&&!!Zl.select(t,e)),W2=E.createSelector((t,e)=>$u.select(t,e)&&!Bu.select(t)),r0=E.createSelector((t,e)=>sa.select(t)&&(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)?t.workspaceDiscussion.directories[e]??Xs:Xs),H6=E.createSelector((t,e)=>ve(r0.select(t,e).conversations)),U6=E.createSelector((t,e)=>{if(sa.select(t)&&t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,De])))return!1;if(t.workspaceDiscussion.managementSupported!==!0)return!0;const r=r0.select(t,e);return!!xe(r.conversations,De)||r.status!=="ready"||r.hasMore}),W6=E.createSelector((t,e)=>{const r=sa.select(t)?t.workspaceDiscussion.recipients[e]??Ys:Ys,n=Nt.select(t,e,Kt).recipientPrincipalIds;return{status:r.status,query:r.query,members:ve(r.members),selectedMembers:ve(r.knownMembers).filter(a=>n.includes(a.principalId)),hasMore:r.hasMore,error:r.error}});E.createSelector((t,e)=>Nt.select(t,e,Kt).createdConversationId);const G6=E.createSelector(t=>t.workspaceDiscussion.conversationsSupported),j6=E.createSelector(t=>t.workspaceDiscussion.directoryRequestedIds),V6=E.createSelector((t,e)=>t.workspaceDiscussion.recipients[e]),G2=E.createSelector(t=>{const e=qr.select(t)?.principal;return e?{principalId:e.id,login:e.login??null,displayName:e.displayName??null,avatarUrl:e.avatarUrl??null}:null}),K6=E.createSelector((t,e,r=De)=>{const n=Nt.select(t,e,r),a=t.workspaceDiscussion.owner,i=G2.select(t)?.principalId??(a?JSON.parse(a)[1]:null),s=n.readSequence??0,o=H2.select(t,e,r).filter(c=>c.sequence>s&&(c.author.agentId!==void 0||c.author.principalId!==i));return{count:o.length,firstSequence:o[0]?.sequence??null}}),Bu=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)&&t.workspaceDiscussion.sharingEnabled===!1),n0=E.createSelector((t,e,r=De)=>(r!==Kt||W2.select(t,e))&&U2.select(t,e,r)&&!Bu.select(t)&&!Y2.select(t,e,r)),X6=E.createSelector((t,e)=>q1.select(t)&&F1.select(t,e)),Y6=E.createSelector(t=>t.workspaceDiscussion.messageActionsSupported),Z6=E.createSelector((t,e,r=De)=>r!==Kt&&t.workspaceDiscussion.messageActionsSupported===!0&&n0.select(t,e,r)),Q6=E.createSelector((t,e,r=De)=>{const n=Nt.select(t,e,r);return n.replyToMessageId&&n.authorized?xe(n.messages,n.replyToMessageId)??null:null}),j2=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.agentMessagingSupported:null),V2=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.agentActivitySupported:null),J6=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.principalMentionsSupported:null),e7=E.createSelector((t,e,r=De)=>r!==Kt&&Z2.select(t,e,r)&&V2.select(t)===!0&&n0.select(t,e,r)),t7=E.createSelector((t,e,r=De)=>ve(Nt.select(t,e,r).agentControls).map(n=>n.key)),r7=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.reactionsSupported:null),qu=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.managementSupported:null),K2=E.createSelector((t,e)=>$t.select(t)===t.workspaceDiscussion.context?t.workspaceDiscussion.management[e]??Zs:Zs),X2=E.createSelector((t,e,r=De)=>{const n=Zl.select(t,e);return $u.select(t,e)&&(n?.myRole==="owner"||n?.myRole==="manager")&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&xe(r0.select(t,e).conversations,r)?.kind==="workspace"}),n7=E.createSelector((t,e,r=De)=>X2.select(t,e,r)&&H1.select(t,e)),a7=E.createSelector((t,e,r)=>{const n=K2.select(t,e);return n.pending!==null&&(r===void 0||n.conversationId===r)}),Y2=E.createSelector((t,e,r=De)=>{const n=xe(r0.select(t,e).conversations,r);return!!n&&n.kind!=="workspace"}),Z2=E.createSelector((t,e,r=De)=>j2.select(t)===!0&&n0.select(t,e,r)&&(r===De||qu.select(t)===!0&&(r===Kt||xe(r0.select(t,e).conversations,r)?.kind==="workspace"))),i7=E.createSelector(t=>t.presence.profileRevision),s7=E.createSelector(t=>t.presence.windowVisible),o7=E.createSelector(t=>t.presence.captureDrawingActive),Q2=E.createSelector(t=>Yl.select(t)?mr.select(t):null),Fu=t=>{const e=Q2.select(t);return e!==null&&t.presence.context===e},l7=E.createSelector(t=>fh.select(t).filter(e=>!!xe(t.workspace.workspaces,gn(e)))),cn=[],un=[],Ll=[],J2=(t,e)=>{const r=t.rosters[e];return r?ve(r):cn},Ur=(t,e)=>{const r=xe(t.workspace.workspaces,gn(e));return Fu(t)&&r&&(r.memberCount??1)>1?r:void 0},c7=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!Ur(t,e))return Ll;const n=t.presence.members[e];return n?ve(n).filter(a=>a.principalId!==r&&!!a.login?.trim()):Ll}),bs=(t,e)=>({principalId:t.principalId,login:t.login,displayName:t.displayName,avatarUrl:t.avatarUrl,...t.identity?{identity:t.identity}:{},...t.hostRole?{hostRole:t.hostRole}:{},...e}),e5=t=>t.some(e=>e.online&&!e.self),K0=t=>t.owner?0:t.online?1:2,Hu=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!Ur(t,e))return un;const n=t.presence.members[e];if(!n)return un;const a=t.presence.rosters[e],i=ve(n).filter(s=>s.principalId!==r).map(s=>{const o=a?xe(a,s.principalId):void 0,c=o?{...s,...o}:s;return bs(c,{owner:c.hostRole?c.hostRole==="owner":s.role==="owner",online:o!==void 0,viewing:o?.focus.some(h=>h.workspaceId===e)??!1,self:!1})}).sort((s,o)=>K0(s)-K0(o));return i.length>0?i:un}),u7=E.createSelector((t,e)=>{const r=qr.select(t)?.capabilities.hostMembership;return Hu.select(t,e).filter(n=>r&&!n.hostRole?!1:!n.hostRole||n.hostRole==="guest"||n.online)}),t5=E.createSelector((t,e)=>{if(!Ur(t,e))return un;const r=t.presence.members[e],n=t.presence.rosters[e],a=new Map;for(const s of r?ve(r):[])a.set(s.principalId,s);for(const s of n?ve(n):[])a.set(s.principalId,{...a.get(s.principalId),...s});const i=qr.select(t)?.principal;return i&&i.id===t.presence.ownPrincipalId&&!a.has(i.id)&&a.set(i.id,{...i,principalId:i.id}),[...a.values()]}),h7=E.createSelector((t,e)=>{const r=Hu.select(t,e),n=t.presence.ownPrincipalId,a=t5.select(t,e).find(s=>s.principalId===n);if(!a)return r;const i=Ur(t,e);return[bs(a,{owner:a.hostRole?a.hostRole==="owner":i?.ownerPrincipalId===n,online:!0,viewing:!0,self:!0}),...r]}),d7=E.createSelector((t,e,r)=>{const n=t.presence.ownPrincipalId,a=Ur(t,e);if(n===null||!a)return un;const i=J2(t.presence,e).filter(s=>s.principalId!==n&&s.focus.some(o=>o.workspaceId===e&&o.agentId===r)).map(s=>bs(s,{owner:s.principalId===a.ownerPrincipalId,online:!0,viewing:!0,self:!1})).sort((s,o)=>K0(s)-K0(o));return e5(i)?i:un}),p7=E.createSelector((t,e,r)=>{const n=t.presence.liveTyping[e],a=t.presence.rosters[e];if(!n||!a)return cn;const i=new Set;for(const s of Object.keys(n)){const o=n[s];o.expired||o.agentId!==r||s===t.presence.ownTypingSource||xe(a,o.principalId)&&i.add(o.principalId)}return i.size===0?cn:ve(a).filter(s=>i.has(s.principalId))}),r5=E.createSelector(t=>{const e=t.presence.discussionComposerWorkspaceId;return e&&Fu(t)&&Ur(t,e)&&t.presence.windowVisible&&t.tabState.currentTabId===e&&t.presence.discussionComposerConversationId!==Kt&&n0.select(t,e,t.presence.discussionComposerConversationId)?e:null}),n5=E.createSelector(t=>{const e=r5.select(t);return e?tc(e,t.presence.discussionComposerConversationId):null}),m7=E.createSelector((t,e,r=De)=>{if(r!==De&&!n0.select(t,e,r)||!Ur(t,e)||t.presence.ownPrincipalId===null)return cn;const n=t.presence.liveDiscussionTyping[e],a=t.presence.rosters[e];if(!n||!a)return cn;const i=new Set(Object.entries(n).filter(([s,o])=>!o.expired&&o.conversationId===r&&s!==t.presence.ownTypingSource&&o.principalId!==t.presence.ownPrincipalId).map(([,s])=>s.principalId));return i.size?ve(a).filter(s=>i.has(s.principalId)):cn}),f7=E.createSelector(t=>t.presence.liveDiscussionTyping),a5=E.createSelector(t=>{if(!t.presence.windowVisible)return{focus:[],typing:null};const e=t.tabState.currentTabId;if(!e)return{focus:[],typing:null};const r=[{workspaceId:e}],n=t.panelLayout.byWorkspaceId[e]?.panels??{};for(const i of Object.keys(n).sort()){const s=n[i],o=s.activeTabId?s.tabs.find(c=>c.id===s.activeTabId):void 0;o&&(o.type==="agent"&&o.agentId?r.push({workspaceId:e,agentId:o.agentId}):o.type==="note"&&o.noteId&&r.push({workspaceId:e,noteId:o.noteId}))}const a=t.presence.ownDiscussionTyping;return{focus:r,typing:t.presence.ownTyping,...a&&tc(a.workspaceId,a.conversationId)===n5.select(t)?{discussionTyping:a}:{}}}),g7=E.createSelector(t=>JSON.stringify(a5.select(t))),v7=E.createSelector(t=>t.presence.liveTyping),b7=E.createSelector(t=>t.presence.ownPrincipalId),y7=E.createSelector(t=>{const e=[];for(const r of Object.keys(t.tabState.openTabs)){if(t.tabState.openTabs[r]!==!0)continue;const n=xe(t.workspace.workspaces,gn(r))?.memberCount??1;n>1&&e.push(`${r}:${n}`)}return e.sort()});let pr=null;function w7(t){const e={};return pr={token:e,onCancel:t},e}function k7(t){return pr?.token===t}function x7(t){pr?.token===t&&(pr=null)}function S7(){return pr!==null}function A7(){if(pr===null)return!1;const{onCancel:t}=pr;return pr=null,t(),!0}const P0=Oi("ProviderAvailabilityClient");let nn=null;async function T7(){if(typeof window>"u")return P0.debug("Skipping provider availability check - not in browser environment"),Ol();const t=U1.select(E.state);if(nn&&nn.connection===t)return P0.debug("Joining in-flight provider availability request"),nn.promise;const e={},r=(async()=>{try{P0.debug("Checking provider availability via IPC");const n=await je(gh.GET_AVAILABILITY);if(!n.success)throw new Error(n.error||"Failed to get provider availability");const a=n.data??Ol();return P0.debug("Provider availability fetched",{hasAnyProvider:a.hasAnyProvider,auggie:a.providers.auggie.available,claudeCode:a.providers.claudeCode.available,codex:a.providers.codex.available,cortex:a.providers.cortex.available,mock:a.providers.mock?.available??!1,opencode:a.providers.opencode.available,droid:a.providers.droid?.available??!1,grok:a.providers.grok?.available??!1,unsloth:a.providers.unsloth?.available??!1}),a}finally{nn?.token===e&&(nn=null)}})();return nn={connection:t,token:e,promise:r},r}function Ol(){return{hasAnyProvider:!1,providers:{auggie:{available:!1},claudeCode:{available:!1},codex:{available:!1},cortex:{available:!1},mock:{available:!1},opencode:{available:!1},pi:{available:!1},droid:{available:!1},grok:{available:!1},unsloth:{available:!1}}}}const pt={IS_AUTHENTICATED:"github-auth:is-authenticated",GET_USER:"github-auth:get-user",START_AUTH:"github-auth:start",POLL_FOR_TOKEN:"github-auth:poll",CANCEL_AUTH:"github-auth:cancel",LOGOUT:"github-auth:logout",GET_AUTH_STATE:"github-auth:get-auth-state",GET_STATUS:"github-auth:get-status",LIST_REPOS:"github-auth:list-repos",SEARCH_REPOS:"github-auth:search-repos",SEARCH_USERS:"github-auth:search-users"},E7={async isAuthenticated(t){try{return await je(pt.IS_AUTHENTICATED,...t===void 0?[]:[{workspaceId:t}])}catch{return!1}},async getUser(t){try{return await je(pt.GET_USER,...t===void 0?[]:[{workspaceId:t}])}catch{return null}},async startAuth(t){return t?await je(pt.START_AUTH,t):await je(pt.START_AUTH)},async checkAuthComplete(){return await je(pt.POLL_FOR_TOKEN)},async cancelAuth(t){return t?je(pt.CANCEL_AUTH,t):je(pt.CANCEL_AUTH)},async logout(){return je(pt.LOGOUT)},async getAuthState(t){try{return await je(pt.GET_AUTH_STATE,...t===void 0?[]:[{workspaceId:t}])}catch{return{isAuthenticated:!1,requiresDaemonAuth:!0,user:null}}},async getStatus(t){try{return await je(pt.GET_STATUS,...t===void 0?[]:[{workspaceId:t}])}catch{return{isConfigured:!1,oauthUrl:"",configuredButNeedsUpdate:!1,updatedScopes:""}}},async listRepos(t,e){const r=await je(pt.LIST_REPOS,{page:t,...e===void 0?{}:{workspaceId:e}});if(!r.success)throw new Error(r.error||"Repository discovery failed");return r.data??[]},async searchRepos(t,e){try{return await je(pt.SEARCH_REPOS,{query:t,...e===void 0?{}:{workspaceId:e}})}catch(r){return{success:!1,error:r instanceof Error?r.message:String(r)}}},async searchUsers(t,e){try{return await je(pt.SEARCH_USERS,{query:t,...e===void 0?{}:{workspaceId:e}})}catch(r){return{success:!1,error:r instanceof Error?r.message:String(r)}}}};class i5{constructor(){le(this,"metrics",new Map);le(this,"completedMetrics",[]);le(this,"maxCompletedMetrics",100)}start(e,r){Ra.get("showPerformanceMetrics")&&this.metrics.set(e,{name:e,startTime:performance.now(),metadata:r})}end(e){if(!Ra.get("showPerformanceMetrics"))return null;const r=this.metrics.get(e);return r?(r.endTime=performance.now(),r.duration=r.endTime-r.startTime,this.metrics.delete(e),this.completedMetrics.push(r),this.completedMetrics.length>this.maxCompletedMetrics&&this.completedMetrics.shift(),Ra.get("logStateChanges")&&$l.info(`[Performance] ${e}: ${r.duration.toFixed(2)}ms`,r.metadata),r.duration):($l.warn(`Performance metric "${e}" was not started`),null)}async measure(e,r,n){this.start(e,n);try{const a=await r();return this.end(e),a}catch(a){throw this.end(e),a}}getMetrics(){return[...this.completedMetrics]}clear(){this.metrics.clear(),this.completedMetrics=[]}}const C7=new i5,$l=new vn("Performance"),Bl=t=>{t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296};class s5{constructor(e){this.dictionaries=void 0,this.length=void 0,this.separator=void 0,this.style=void 0,this.seed=void 0;const{length:r,separator:n,dictionaries:a,style:i,seed:s}=e;this.dictionaries=a,this.separator=n,this.length=r,this.style=i,this.seed=s}generate(){if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error(`The length cannot be bigger than the number of dictionaries.
478
- Length provided: ${this.length}. Number of dictionaries provided: ${this.dictionaries.length}`);let e=this.seed;return this.dictionaries.slice(0,this.length).reduce((r,n)=>{let a;e?(a=(s=>{if(typeof s=="string"){const o=s.split("").map(h=>h.charCodeAt(0)).reduce((h,d)=>h+d,1),c=Math.floor(Number(o));return Bl(c)}return Bl(s)})(e),e=4294967296*a):a=Math.random();let i=n[Math.floor(a*n.length)]||"";if(this.style==="lowerCase")i=i.toLowerCase();else if(this.style==="capital"){const[s,...o]=i.split("");i=s.toUpperCase()+o.join("")}else this.style==="upperCase"&&(i=i.toUpperCase());return r?`${r}${this.separator}${i}`:`${i}`},"")}}const ql={separator:"_",dictionaries:[]},o5=t=>{const e=[...t&&t.dictionaries||ql.dictionaries],r={...ql,...t,length:t&&t.length||e.length,dictionaries:e};if(!t||!t.dictionaries||!t.dictionaries.length)throw new Error('A "dictionaries" array must be provided. This is a breaking change introduced starting from Unique Name Generator v4. Read more about the breaking change here: https://github.com/andreasonny83/unique-names-generator#migration-guide');return new s5(r).generate()};var l5=["able","above","absent","absolute","abstract","abundant","academic","acceptable","accepted","accessible","accurate","accused","active","actual","acute","added","additional","adequate","adjacent","administrative","adorable","advanced","adverse","advisory","aesthetic","afraid","aggregate","aggressive","agreeable","agreed","agricultural","alert","alive","alleged","allied","alone","alright","alternative","amateur","amazing","ambitious","amused","ancient","angry","annoyed","annual","anonymous","anxious","appalling","apparent","applicable","appropriate","arbitrary","architectural","armed","arrogant","artificial","artistic","ashamed","asleep","assistant","associated","atomic","attractive","automatic","autonomous","available","average","awake","aware","awful","awkward","back","bad","balanced","bare","basic","beautiful","beneficial","better","bewildered","big","binding","biological","bitter","bizarre","blank","blind","blonde","bloody","blushing","boiling","bold","bored","boring","bottom","brainy","brave","breakable","breezy","brief","bright","brilliant","broad","broken","bumpy","burning","busy","calm","capable","capitalist","careful","casual","causal","cautious","central","certain","changing","characteristic","charming","cheap","cheerful","chemical","chief","chilly","chosen","christian","chronic","chubby","circular","civic","civil","civilian","classic","classical","clean","clear","clever","clinical","close","closed","cloudy","clumsy","coastal","cognitive","coherent","cold","collective","colonial","colorful","colossal","coloured","colourful","combative","combined","comfortable","coming","commercial","common","communist","compact","comparable","comparative","compatible","competent","competitive","complete","complex","complicated","comprehensive","compulsory","conceptual","concerned","concrete","condemned","confident","confidential","confused","conscious","conservation","conservative","considerable","consistent","constant","constitutional","contemporary","content","continental","continued","continuing","continuous","controlled","controversial","convenient","conventional","convinced","convincing","cooing","cool","cooperative","corporate","correct","corresponding","costly","courageous","crazy","creative","creepy","criminal","critical","crooked","crowded","crucial","crude","cruel","cuddly","cultural","curious","curly","current","curved","cute","daily","damaged","damp","dangerous","dark","dead","deaf","deafening","dear","decent","decisive","deep","defeated","defensive","defiant","definite","deliberate","delicate","delicious","delighted","delightful","democratic","dependent","depressed","desirable","desperate","detailed","determined","developed","developing","devoted","different","difficult","digital","diplomatic","direct","dirty","disabled","disappointed","disastrous","disciplinary","disgusted","distant","distinct","distinctive","distinguished","disturbed","disturbing","diverse","divine","dizzy","domestic","dominant","double","doubtful","drab","dramatic","dreadful","driving","drunk","dry","dual","due","dull","dusty","dutch","dying","dynamic","eager","early","eastern","easy","economic","educational","eerie","effective","efficient","elaborate","elated","elderly","eldest","electoral","electric","electrical","electronic","elegant","eligible","embarrassed","embarrassing","emotional","empirical","empty","enchanting","encouraging","endless","energetic","enormous","enthusiastic","entire","entitled","envious","environmental","equal","equivalent","essential","established","estimated","ethical","ethnic","eventual","everyday","evident","evil","evolutionary","exact","excellent","exceptional","excess","excessive","excited","exciting","exclusive","existing","exotic","expected","expensive","experienced","experimental","explicit","extended","extensive","external","extra","extraordinary","extreme","exuberant","faint","fair","faithful","familiar","famous","fancy","fantastic","far","fascinating","fashionable","fast","fat","fatal","favourable","favourite","federal","fellow","female","feminist","few","fierce","filthy","final","financial","fine","firm","fiscal","fit","fixed","flaky","flat","flexible","fluffy","fluttering","flying","following","fond","foolish","foreign","formal","formidable","forthcoming","fortunate","forward","fragile","frail","frantic","free","frequent","fresh","friendly","frightened","front","frozen","full","fun","functional","fundamental","funny","furious","future","fuzzy","gastric","gay","general","generous","genetic","gentle","genuine","geographical","giant","gigantic","given","glad","glamorous","gleaming","global","glorious","golden","good","gorgeous","gothic","governing","graceful","gradual","grand","grateful","greasy","great","grieving","grim","gross","grotesque","growing","grubby","grumpy","guilty","handicapped","handsome","happy","hard","harsh","head","healthy","heavy","helpful","helpless","hidden","high","hilarious","hissing","historic","historical","hollow","holy","homeless","homely","hon","honest","horizontal","horrible","hostile","hot","huge","human","hungry","hurt","hushed","husky","icy","ideal","identical","ideological","ill","illegal","imaginative","immediate","immense","imperial","implicit","important","impossible","impressed","impressive","improved","inadequate","inappropriate","inc","inclined","increased","increasing","incredible","independent","indirect","individual","industrial","inevitable","influential","informal","inherent","initial","injured","inland","inner","innocent","innovative","inquisitive","instant","institutional","insufficient","intact","integral","integrated","intellectual","intelligent","intense","intensive","interested","interesting","interim","interior","intermediate","internal","international","intimate","invisible","involved","irrelevant","isolated","itchy","jealous","jittery","joint","jolly","joyous","judicial","juicy","junior","just","keen","key","kind","known","labour","large","late","latin","lazy","leading","left","legal","legislative","legitimate","lengthy","lesser","level","lexical","liable","liberal","light","like","likely","limited","linear","linguistic","liquid","literary","little","live","lively","living","local","logical","lonely","long","loose","lost","loud","lovely","low","loyal","ltd","lucky","mad","magic","magnetic","magnificent","main","major","male","mammoth","managerial","managing","manual","many","marginal","marine","marked","married","marvellous","marxist","mass","massive","mathematical","mature","maximum","mean","meaningful","mechanical","medical","medieval","melodic","melted","mental","mere","metropolitan","mid","middle","mighty","mild","military","miniature","minimal","minimum","ministerial","minor","miserable","misleading","missing","misty","mixed","moaning","mobile","moderate","modern","modest","molecular","monetary","monthly","moral","motionless","muddy","multiple","mushy","musical","mute","mutual","mysterious","naked","narrow","nasty","national","native","natural","naughty","naval","near","nearby","neat","necessary","negative","neighbouring","nervous","net","neutral","new","nice","noble","noisy","normal","northern","nosy","notable","novel","nuclear","numerous","nursing","nutritious","nutty","obedient","objective","obliged","obnoxious","obvious","occasional","occupational","odd","official","ok","okay","old","olympic","only","open","operational","opposite","optimistic","oral","ordinary","organic","organisational","original","orthodox","other","outdoor","outer","outrageous","outside","outstanding","overall","overseas","overwhelming","painful","pale","panicky","parallel","parental","parliamentary","partial","particular","passing","passive","past","patient","payable","peaceful","peculiar","perfect","permanent","persistent","personal","petite","philosophical","physical","plain","planned","plastic","pleasant","pleased","poised","polite","political","poor","popular","positive","possible","potential","powerful","practical","precious","precise","preferred","pregnant","preliminary","premier","prepared","present","presidential","pretty","previous","prickly","primary","prime","primitive","principal","printed","prior","private","probable","productive","professional","profitable","profound","progressive","prominent","promising","proper","proposed","prospective","protective","protestant","proud","provincial","psychiatric","psychological","public","puny","pure","purring","puzzled","quaint","qualified","quarrelsome","querulous","quick","quickest","quiet","quintessential","quixotic","racial","radical","rainy","random","rapid","rare","raspy","rational","ratty","raw","ready","real","realistic","rear","reasonable","recent","reduced","redundant","regional","registered","regular","regulatory","related","relative","relaxed","relevant","reliable","relieved","religious","reluctant","remaining","remarkable","remote","renewed","representative","repulsive","required","resident","residential","resonant","respectable","respective","responsible","resulting","retail","retired","revolutionary","rich","ridiculous","right","rigid","ripe","rising","rival","roasted","robust","rolling","romantic","rotten","rough","round","royal","rubber","rude","ruling","running","rural","sacred","sad","safe","salty","satisfactory","satisfied","scared","scary","scattered","scientific","scornful","scrawny","screeching","secondary","secret","secure","select","selected","selective","selfish","semantic","senior","sensible","sensitive","separate","serious","severe","sexual","shaggy","shaky","shallow","shared","sharp","sheer","shiny","shivering","shocked","short","shrill","shy","sick","significant","silent","silky","silly","similar","simple","single","skilled","skinny","sleepy","slight","slim","slimy","slippery","slow","small","smart","smiling","smoggy","smooth","social","socialist","soft","solar","sole","solid","sophisticated","sore","sorry","sound","sour","southern","soviet","spare","sparkling","spatial","special","specific","specified","spectacular","spicy","spiritual","splendid","spontaneous","sporting","spotless","spotty","square","squealing","stable","stale","standard","static","statistical","statutory","steady","steep","sticky","stiff","still","stingy","stormy","straight","straightforward","strange","strategic","strict","striking","striped","strong","structural","stuck","stupid","subjective","subsequent","substantial","subtle","successful","successive","sudden","sufficient","suitable","sunny","super","superb","superior","supporting","supposed","supreme","sure","surprised","surprising","surrounding","surviving","suspicious","sweet","swift","symbolic","sympathetic","systematic","tall","tame","tart","tasteless","tasty","technical","technological","teenage","temporary","tender","tense","terrible","territorial","testy","then","theoretical","thick","thin","thirsty","thorough","thoughtful","thoughtless","thundering","tight","tiny","tired","top","tory","total","tough","toxic","traditional","tragic","tremendous","tricky","tropical","troubled","typical","ugliest","ugly","ultimate","unable","unacceptable","unaware","uncertain","unchanged","uncomfortable","unconscious","underground","underlying","unemployed","uneven","unexpected","unfair","unfortunate","unhappy","uniform","uninterested","unique","united","universal","unknown","unlikely","unnecessary","unpleasant","unsightly","unusual","unwilling","upper","upset","uptight","urban","urgent","used","useful","useless","usual","vague","valid","valuable","variable","varied","various","varying","vast","verbal","vertical","very","vicarious","vicious","victorious","violent","visible","visiting","visual","vital","vitreous","vivacious","vivid","vocal","vocational","voiceless","voluminous","voluntary","vulnerable","wandering","warm","wasteful","watery","weak","wealthy","weary","wee","weekly","weird","welcome","well","western","wet","whispering","whole","wicked","wide","widespread","wild","wilful","willing","willowy","wily","wise","wispy","wittering","witty","wonderful","wooden","working","worldwide","worried","worrying","worthwhile","worthy","written","wrong","xenacious","xenial","xenogeneic","xenophobic","xeric","xerothermic","yabbering","yammering","yappiest","yappy","yawning","yearling","yearning","yeasty","yelling","yelping","yielding","yodelling","young","youngest","youthful","ytterbic","yucky","yummy","zany","zealous","zeroth","zestful","zesty","zippy","zonal","zoophagous","zygomorphic","zygotic"],c5=["aardvark","aardwolf","albatross","alligator","alpaca","amphibian","anaconda","angelfish","anglerfish","ant","anteater","antelope","antlion","ape","aphid","armadillo","asp","baboon","badger","bandicoot","barnacle","barracuda","basilisk","bass","bat","bear","beaver","bedbug","bee","beetle","bird","bison","blackbird","boa","boar","bobcat","bobolink","bonobo","booby","bovid","bug","butterfly","buzzard","camel","canid","canidae","capybara","cardinal","caribou","carp","cat","caterpillar","catfish","catshark","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","cicada","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragon","dragonfly","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","felidae","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","galliform","gamefowl","gayal","gazelle","gecko","gerbil","gibbon","giraffe","goat","goldfish","goose","gopher","gorilla","grasshopper","grouse","guan","guanaco","guineafowl","gull","guppy","haddock","halibut","hamster","hare","harrier","hawk","hedgehog","heron","herring","hippopotamus","hookworm","hornet","horse","hoverfly","hummingbird","hyena","iguana","impala","jackal","jaguar","jay","jellyfish","junglefowl","kangaroo","kingfisher","kite","kiwi","koala","koi","krill","ladybug","lamprey","landfowl","lark","leech","lemming","lemur","leopard","leopon","limpet","lion","lizard","llama","lobster","locust","loon","louse","lungfish","lynx","macaw","mackerel","magpie","mammal","manatee","mandrill","marlin","marmoset","marmot","marsupial","marten","mastodon","meadowlark","meerkat","mink","minnow","mite","mockingbird","mole","mollusk","mongoose","monkey","moose","mosquito","moth","mouse","mule","muskox","narwhal","newt","nightingale","ocelot","octopus","opossum","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","parrotfish","partridge","peacock","peafowl","pelican","penguin","perch","pheasant","pig","pigeon","pike","pinniped","piranha","planarian","platypus","pony","porcupine","porpoise","possum","prawn","primate","ptarmigan","puffin","puma","python","quail","quelea","quokka","rabbit","raccoon","rat","rattlesnake","raven","reindeer","reptile","rhinoceros","roadrunner","rodent","rook","rooster","roundworm","sailfish","salamander","salmon","sawfish","scallop","scorpion","seahorse","shark","sheep","shrew","shrimp","silkworm","silverfish","skink","skunk","sloth","slug","smelt","snail","snake","snipe","sole","sparrow","spider","spoonbill","squid","squirrel","starfish","stingray","stoat","stork","sturgeon","swallow","swan","swift","swordfish","swordtail","tahr","takin","tapir","tarantula","tarsier","termite","tern","thrush","tick","tiger","tiglon","toad","tortoise","toucan","trout","tuna","turkey","turtle","tyrannosaurus","unicorn","urial","vicuna","viper","vole","vulture","wallaby","walrus","warbler","wasp","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra"];const Uu=/^[a-z]{2,15}-[a-z]{2,15}(-[0-9]+)?$/,Wu=/^[a-z]{2,15}$/,Gu=l5.filter(t=>Wu.test(t)),ju=c5.filter(t=>Wu.test(t));function M7(){return o5({dictionaries:[Gu,ju],separator:"-",style:"lowerCase",length:2})}function I7(t,e){return`${t}-${e}`}function u5(t){const e=t.match(/^([a-z]{2,15}-[a-z]{2,15})(?:-[0-9]+)?$/);return e?e[1]:t}const Fl=new Set(Gu),Hl=new Set(ju),h5=new Set;function z7(t){return!t||typeof t!="string"?!1:Uu.test(t)||/^[a-z]{2,15}-[a-z]{2,15}-[a-z0-9]{4}$/.test(t)?!0:/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(t)}function R7(t){if(!t||typeof t!="string")return!1;if(h5.has(t))return!0;if(Uu.test(t)){const n=u5(t).split("-");if(n.length===2){const[a,i]=n;if(Fl.has(a)&&Hl.has(i))return!0}}if(/^[a-z]{2,15}-[a-z]{2,15}-[a-z0-9]{4}$/.test(t)){const r=t.split("-");if(r.length===3){const[n,a]=r;if(Fl.has(n)&&Hl.has(a))return!0}}return!1}const D7=E.createSelector(t=>qr.select(t)?.capabilities.sessionImport===1),N7=E.createSelector(t=>{const e=t.importableSessions?.sessions;return e?ve(e):[]}),P7=E.createSelector(t=>{const e=t.importableSessions?.providers;return e?ve(e):[]}),_7=E.createSelector(t=>t.importableSessions?.status??"idle"),d5=Oi("ContextAPI");function L7(t){return t.some(e=>e.placementStatus==="placing"||e.placementStatus==="failed")}async function Ul(t,e,r){return d5.debug("Placing attachment",{workspaceId:t,fileName:e,viaSourcePath:r.sourcePath!==void 0,keyed:r.idempotencyKey!==void 0}),await wn("file.placeAttachment",{workspaceId:t,fileName:e,...r.data!==void 0?{data:r.data}:{},...r.sourcePath!==void 0?{sourcePath:r.sourcePath}:{},...r.mimeType!==void 0&&r.mimeType!==""?{mimeType:r.mimeType}:{},...r.idempotencyKey!==void 0?{idempotencyKey:r.idempotencyKey}:{},...r.rawScreenshot!==void 0?{rawScreenshot:r.rawScreenshot}:{}})}async function p5(t,e,r,n,a={}){return await wn("file.attachmentUpload.begin",{workspaceId:t,fileName:e,sizeBytes:r,sha256:n,...a.mimeType!==void 0&&a.mimeType!==""?{mimeType:a.mimeType}:{},...a.idempotencyKey!==void 0?{idempotencyKey:a.idempotencyKey}:{},...a.rawScreenshot!==void 0?{rawScreenshot:a.rawScreenshot}:{}})}const Vu=300*1e3;async function m5(t,e,r,n){return await wn("file.attachmentUpload.chunk",{uploadId:t,seq:e,data:r,...n!==void 0?{workspaceId:n}:{}},{timeoutMs:Vu})}async function f5(t,e){return await wn("file.attachmentUpload.commit",{uploadId:t,...e!==void 0?{workspaceId:e}:{}},{timeoutMs:Vu})}async function g5(t,e){return await wn("file.attachmentUpload.abort",{uploadId:t,...e!==void 0?{workspaceId:e}:{}})}async function v5(t){const e=typeof t=="string"?{attachmentId:t}:t.attachmentId!==void 0?{workspaceId:t.workspaceId,attachmentId:t.attachmentId}:{workspaceId:t.workspaceId,idempotencyKey:t.idempotencyKey};return await wn("file.getAttachmentInfo",e)}async function O7(t,e,r){return await je("file:download-attachment",{workspaceId:t,path:e,fileName:r})}const Ku=25*1024*1024,Wl=1024*1024*1024,b5=16*1024*1024,Xu="attachment upload cancelled";function y5(t,e){return e?.aborted===!0||t instanceof Error&&t.message===Xu}function B0(t){if(t?.aborted)throw new Error(Xu)}function w5(){return!W1.select(E.state)}function k5(t){return rc(t,9,13)}function Yu(){return k5(E.state?.daemonHealth?.stats?.protocolVersion)}function $7(t){if(Yu())return t??crypto.randomUUID()}function Zu(t){if(!t||typeof t!="object")return!1;const{rpcCode:e,code:r}=t;return e===-32602||r==="INVALID_PARAMS"}function x5(t){return Zu(t)&&/already committed/i.test(String(t.message??""))}function S5(t){return{ok:!0,path:t.path,fileName:t.fileName,size:t.size,attachmentId:t.attachmentId,...t.mimeType!==void 0?{mimeType:t.mimeType}:{},uploadedAt:t.uploadedAt,replayed:!0,...t.rawScreenshot!==void 0?{rawScreenshot:t.rawScreenshot}:{}}}async function Pi(t,e,r=v5){try{return S5(await r({workspaceId:t,idempotencyKey:e}))}catch{return}}function Qu(t,e,r){return e!==void 0&&!Zu(t)&&!y5(t,r)}async function Gl(t,e,r,n,a=()=>!0){try{return lt(a),await n()}catch(i){if(lt(a),Qu(i,e,r)){const s=await Pi(t,e);if(s)return s}throw i}}const Ju="file:read returned an unexpected response",ys="file:read failed";function ws(t){if(!t||typeof t!="object"||!("success"in t))throw new Error(Ju);if(!t.success||t.data===void 0)throw new Error(t.error?.message??ys);return t.data}async function A5(t){const e=await je("file:read",{path:t,encoding:"base64",maxSize:Ku,truncateIfLarge:!1}),r=ws(e);if(r.content===void 0)throw new Error(e.error?.message??ys);return r.content}async function e1(t,e,r){const n=await je("file:read-chunk",{path:t,offset:e,length:r});return ws(n)}async function T5(t){const{size:e}=await e1(t,0,1);return e}async function E5(t){const e=await je("file:hash",{path:t});return ws(e).sha256}const C5=new Set(["Internal error","Backend request failed",Ju,ys]);async function B7(t,e,r,n,a,i=()=>!0){lt(i);const s=Yu()?r.idempotencyKey:void 0,o=s!==void 0?{idempotencyKey:s}:{};if(!w5())return Gl(t,s,a,()=>Ul(t,e,{sourcePath:r.sourcePath,mimeType:r.mimeType,...o}),i);const c=await T5(r.sourcePath);if(lt(i),c>Wl)throw new Error(ie.chat_attachmentPlacement_tooLargeRemote_error({name:e,maxGb:Math.round(Wl/(1024*1024*1024))}));if(c>Ku)return M5(t,e,{...r,idempotencyKey:s},c,n,a,i);const h=await A5(r.sourcePath);return lt(i),B0(a),Gl(t,s,a,()=>Ul(t,e,{data:h,mimeType:r.mimeType,...o}),i)}async function M5(t,e,r,n,a,i,s=()=>!0){lt(s);const o=await E5(r.sourcePath);lt(s),B0(i);let c,h;try{({uploadId:c,maxChunkBytes:h}=await p5(t,e,n,o,{mimeType:r.mimeType,...r.idempotencyKey!==void 0?{idempotencyKey:r.idempotencyKey}:{}}))}catch(w){if(lt(s),r.idempotencyKey!==void 0&&x5(w)){const A=await Pi(t,r.idempotencyKey);if(A)return A}throw w}const d=Math.min(b5,h),v=Math.ceil(n/d);let m=!1;try{for(let w=0;w<v;w++){lt(s),B0(i);const{content:A}=await e1(r.sourcePath,w*d,d);lt(s),await m5(c,w,A,t),lt(s),a?.((w+1)/v)}return B0(i),lt(s),m=!0,await f5(c,t)}catch(w){if(lt(s),m&&Qu(w,r.idempotencyKey,i)){const A=await Pi(t,r.idempotencyKey);if(A)return A}throw lt(s),await g5(c,t).catch(()=>{}),w}}function q7(t){if(!t||typeof t!="object")return;const e=t.data;if(e&&typeof e=="object"){const n=e.detail;if(typeof n=="string"&&n.trim().length>0)return n.trim()}const r=t.message;if(typeof r=="string"&&r.trim().length>0&&!C5.has(r.trim()))return r.trim()}function lt(t){if(!t())throw new DOMException("Obsolete attachment submission","AbortError")}function t1(t){const e=t?.split(";")[0].trim().toLowerCase()??"";return e==="image/jpg"?"image/jpeg":e}function F7(t){return["image/png","image/jpeg","image/gif","image/webp"].includes(t1(t))}const I5={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/avif":"avif","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","image/heif":"heif","image/jxl":"jxl"};function H7(t,e){const r=I5[t1(t)]??"bin";return`${e}.${r}`}const z5=Oi("InAppFileInputs");function R5(t=globalThis.window){return t?.electronAPI?.preferInAppPicker===!0}function D5(t){return typeof HTMLInputElement<"u"&&t instanceof HTMLInputElement&&t.type==="file"}const r1=new WeakMap;function U7(t,e=globalThis.window){let r="";try{r=e?.electronAPI?.getPathForFile?.(t)??""}catch{r=""}return r||r1.get(t)||""}function N5(t){const e=new DataTransfer;for(const r of t)e.items.add(new File([r.data],r.name,{type:r.type}));return e.files}async function P5(t,e){const r={accept:t.accept||void 0,multiple:t.multiple},n=await e.invoke(eh.IN_APP_FILE_DIALOG.PICK_FILES,r);return!Array.isArray(n)||n.length===0?(t.dispatchEvent(new Event("cancel",{bubbles:!0})),!1):(t.files=N5(n),Array.from(t.files??[],(a,i)=>{const s=n[i]?.path;s&&r1.set(a,s)}),t.dispatchEvent(new Event("input",{bubbles:!0})),t.dispatchEvent(new Event("change",{bubbles:!0})),!0)}function W7(t=globalThis.window){if(!t||!R5(t))return()=>{};const e=t.electronAPI;let r=!1;const n=a=>{const i=a.target;!D5(i)||i.disabled||(a.preventDefault(),!r&&(r=!0,P5(i,e).catch(s=>{z5.warn("in-app picker failed",{error:s instanceof Error?s.message:String(s)})}).finally(()=>{r=!1})))};return t.addEventListener("click",n,!0),()=>t.removeEventListener("click",n,!0)}let _5=0;const ks=new WeakSet;function G7(t){const e=E.dispatch,r=E.state.connections.windowBackendId,n=si.select(E.state,t.id);if(!n||E.state.workspace.pendingDeletions[t.id])return null;const a=`operation-${++_5}`;let i=!1;const s=()=>{try{return E.dispatch===e&&E.state.connections.windowBackendId===r}catch{return!1}},o=()=>s()&&E.state.workspace.deletionTokens[t.id]===a,c=()=>s()&&mr.select(E.state)===n&&(i?o()&&E.state.workspace.invalidatedDeletions[t.id]!==a&&E.state.workspace.terminalDeletions[t.id]!==a:si.select(E.state,t.id)===n),h={workspaceId:t.id,current:c,terminal(){return!i||!o()||mr.select(E.state)!==n||E.state.workspace.terminalDeletions[t.id]!==a?null:E.state.workspace.invalidatedDeletions[t.id]===a?"denied":"removed"},begin(d=!0){return i||!c()||E.state.workspace.pendingDeletions[t.id]?!1:(e(nh(t.id,a)),d&&e(ah(t.id)),i=!0,c())},restore(){c()&&(e(oi(t.id,a)),e(rh(t)))},expire(){o()&&e(oi(t.id,a))}};return ks.add(h),h}function jl(t,e){return ks.has(t)&&t.workspaceId===e&&t.current()}function L5(t,e){return ks.has(t)&&t.workspaceId===e&&t.terminal()==="removed"}function j7(t){const e=E.dispatch,r=E.state.connections.windowBackendId,n=E.state.workspace.deletionTokens[t];return()=>{try{n&&E.dispatch===e&&E.state.connections.windowBackendId===r&&e(oi(t,n))}catch{}}}function zr(t,e){const r=()=>t===void 0?Xl.select(E.state)?mr.select(E.state):null:e?G1.select(E.state,t,e):si.select(E.state,t),n=E.dispatch,a=r();return()=>{try{return E.dispatch===n&&a!==null&&a===r()}catch{return!1}}}const ot=()=>({ok:!1,error:ie.workspace_client_accessChanged_error()}),or=new vn("WorkspaceClient"),O5=100;function Pn(t){return{...t,path:t.path?.replaceAll("\\","/"),repositoryPath:t.repositoryPath?.replaceAll("\\","/"),worktreePath:t.worktreePath?.replaceAll("\\","/")}}class $5{constructor(){le(this,"pendingRequests",new Map);le(this,"cache",new Map);le(this,"CACHE_TTL",5e3);le(this,"mutationCounter",0)}getCacheKey(e,r){return`${e}:${JSON.stringify(r||{})}`}pruneExpiredCacheEntries(e=Date.now()){for(const[r,n]of this.cache)e-n.timestamp>=this.CACHE_TTL&&this.cache.delete(r)}setCacheEntry(e,r){for(this.pruneExpiredCacheEntries(),this.cache.delete(e),this.cache.set(e,{data:r,timestamp:Date.now()});this.cache.size>O5;){const n=this.cache.keys().next().value;if(n===void 0)break;this.cache.delete(n)}}shouldCacheResponse(e){return e!==Er.LIST&&(e.includes(":get")||e.includes(":list"))}async invoke(e,r){try{const n=this.mutationCounter,a=this.getCacheKey(e,r)+(e===Er.LIST?JSON.stringify([E.state.connections.windowBackendId,mr.select(E.state)]):"");this.pruneExpiredCacheEntries();const i=this.pendingRequests.get(a);if(i)return or.debug(`[WorkspaceClient] Reusing pending request for ${e}`),i;if(this.shouldCacheResponse(e)){const o=this.cache.get(a);if(o&&Date.now()-o.timestamp<this.CACHE_TTL)return or.debug(`[WorkspaceClient] Using cached response for ${e}`),{ok:!0,data:o.data};o&&this.cache.delete(a)}const s=(async()=>{if(typeof window<"u"&&window.electronAPI){let o=r;if(r!==void 0)try{o=JSON.parse(JSON.stringify(r))}catch(d){if(or.error(`[WorkspaceClient] Data serialization failed for ${e}:`,{error:d,dataKeys:r?Object.keys(r):[]}),r&&typeof r=="object")for(const[v,m]of Object.entries(r))try{JSON.stringify(m)}catch{or.error(`[WorkspaceClient] Non-serializable field: ${v}`,{type:typeof m,constructor:m?.constructor?.name})}throw new Error(`Data serialization failed: ${d instanceof Error?d.message:"Unknown error"}`)}const c=await Qs(e,o),h=this.normalizeResponse(c);return h.ok&&this.shouldCacheResponse(e)&&n===this.mutationCounter&&this.setCacheEntry(a,h.data),h}return{ok:!1,error:"IPC not available"}})();this.pendingRequests.set(a,s);try{return await s}finally{this.pendingRequests.delete(a)}}catch(n){return or.error(`[WorkspaceClient] IPC error for ${e}:`,n),{ok:!1,error:n instanceof Error?n.message:"IPC call failed"}}}clearCache(e){if(this.mutationCounter++,e){for(const[r]of this.cache)r.includes(e)&&this.cache.delete(r);for(const[r]of this.pendingRequests)r.includes(e)&&this.pendingRequests.delete(r)}else this.cache.clear(),this.pendingRequests.clear()}normalizeResponse(e){return e==null?{ok:!1,error:"No response received"}:"ok"in e?e.ok?{ok:!0,data:e.data}:{ok:!1,error:e.error||"Unknown error"}:"success"in e?e.success?{ok:!0,data:e.data}:{ok:!1,error:e.error||"Unknown error"}:{ok:!1,error:"Invalid response format"}}async list(e){const r=await this.invoke(Er.LIST,{lite:e?.lite});return r.ok?r.data&&"workspaces"in r.data?{ok:!0,data:r.data.workspaces.map(Pn)}:{ok:!0,data:r.data.map(Pn),complete:!0}:r}async create(e){const r=e.initialAgent;or.info(`[WorkspaceClient] create called: title=${e.title}, hasInitialAgent=${!!r}, specialist=${r?.specialist}, model=${r?.model}, keys=${r?Object.keys(r).join(","):"none"}`);const n=zr();if(!n())return ot();const a=await Tr.workspaces.create(e);if(!n())return ot();if(or.info("[WorkspaceClient] create result",{success:a.success,scope:e.scope,initialAgentId:a.success?a.initialAgent?.id:void 0,error:a.success?void 0:a.error}),a.success&&a.workspace)return this.clearCache(),{ok:!0,data:{workspace:Pn(a.workspace),initialAgent:a.initialAgent,...a.proposalOrigin?{proposalOrigin:a.proposalOrigin}:{}}};const i=a.error||ie.workspace_client_createFailed_error();return a.errorCode?{ok:!1,error:i,errorCode:a.errorCode,...a.launchFailure?{launchFailure:a.launchFailure}:{},...a.baseRefreshFailure?{baseRefreshFailure:a.baseRefreshFailure}:{}}:{ok:!1,error:i}}async open(e){const r=await this.invoke(Er.OPEN,{id:e});return r.ok?{ok:!0,data:Pn(r.data)}:r}async update(e){const r=zr(e.id,Object.keys(e));if(!r())return ot();const n=await Tr.workspaces.update(e);return r()?n.success&&n.workspace?(this.clearCache(e.id),this.clearCache(),{ok:!0,data:Pn(n.workspace)}):{ok:!1,error:n.error||ie.workspace_client_updateFailed_error()}:ot()}async delete(e,r,n){const a=n?()=>jl(n,e):zr(e);if(!a())return{...ot(),obsolete:!0};const i=await Tr.workspaces.delete(e,r);return!a()&&!(n&&L5(n,e))?{...ot(),obsolete:!0}:i.success?(this.clearCache(e),this.clearCache(),i.scheduled&&i.deleteAt?{ok:!0,data:{scheduled:!0,deleteAt:i.deleteAt}}:{ok:!0,data:void 0}):{ok:!1,error:i.error||ie.workspace_client_deleteFailed_error()}}async cancelDelete(e,r){const n=r?()=>jl(r,e):zr(e);if(!n())return{...ot(),obsolete:!0};const a=await Tr.workspaces.cancelDelete(e);return n()?a.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:{cancelled:a.cancelled===!0}}):{ok:!1,error:a.error||ie.workspace_client_cancelDeleteFailed_error()}:{...ot(),obsolete:!0}}async archive(e){const r=zr(e);if(!r())return ot();const n=await Tr.workspaces.archive(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:void 0}):{ok:!1,error:n.error||ie.workspace_client_archiveFailed_error()}:ot()}async unarchive(e){const r=zr(e);if(!r())return ot();const n=await Tr.workspaces.unarchive(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:void 0}):{ok:!1,error:n.error||ie.workspace_client_unarchiveFailed_error()}:ot()}async retire(e){const r=zr(e);if(!r())return ot();const n=await Tr.workspaces.retire(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:n.workspace}):{ok:!1,error:n.error||ie.workspace_ops_purgeFailed_error(),...n.errorCode?{errorCode:n.errorCode}:{}}:ot()}async invokeFresh(e,r){try{if(typeof window<"u"&&window.electronAPI){const n=await Qs(e,r);return this.normalizeResponse(n)}return{ok:!1,error:"IPC not available"}}catch(n){return or.error(`[WorkspaceClient] IPC error for ${e}:`,n),{ok:!1,error:n instanceof Error?n.message:"IPC call failed"}}}async getDiffSummary(e){return this.invokeFresh(Er.GET_DIFF_SUMMARY,{workspaceId:e})}async getGitSummary(e){return this.invokeFresh(Er.GET_GIT_SUMMARY,{workspaceId:e})}async getTasks(e){return this.invokeFresh(Er.GET_TASKS,{workspaceId:e})}}const V7=new $5;function Vl(t,e){return{key:t.id,confirmedId:t.id,confirmed:t,content:t.content,messageMetadata:t.messageMetadata,imageBlocks:[...t.imageBlocks??[]],fileBlocks:[...t.fileBlocks??[]],deliveryGroups:t.deliveryGroups,contextItems:[...t.contextItems??[]],contributions:[],blocksMutations:e}}function Kl(t){return!t.imageBlocks?.length&&!t.fileBlocks?.length}function n1(t,e){const r=t?.supported===!0,n=r&&(t.refreshNeeded||ih(t)),a=e.map(k=>Vl(k,n));if(!t)return{conversation:[],processing:[],queue:a};const i=new Set(ve(t.seeds).flatMap(k=>k0(k,t.scope.principalId))),s=ve(t.submissions).filter(k=>!i.has(k.id)),o=new Set(e.flatMap(k=>k0(k,t.scope.principalId))),c=ve(t.processing).filter(k=>!k0(k,t.scope.principalId).some(I=>o.has(I))),h=s.filter(k=>k.destination==="conversation");if(!r)return{conversation:h,processing:c,queue:a};for(const k of ve(t.seeds)){const I=a.findIndex(K=>K.confirmedId===k.id),R=Vl(k,!0),Z=k0(k,t.scope.principalId);R.contributions=ve(t.submissions).filter(K=>Z.includes(K.id)),I>=0?(R.confirmed=a[I].confirmed,a[I]=R):(R.confirmedId=void 0,R.confirmed=void 0,a.push(R))}const d=e.filter(k=>k.mergeEligible===!0),v=!n&&d.length===1&&d[0].author?.principalId===t.scope.principalId&&d[0].submissionIds?.length&&!d[0].recoverySources?d[0].id:void 0;let m=v?a.find(k=>k.confirmedId===v):void 0;for(const k of s.filter(I=>I.destination==="queue")){const I=m&&Kl(m)&&Kl(k)?m:void 0;if(I)I.content=[I.content,k.content].filter(Boolean).join(`
476
+ `).trim().replace(z2,`
477
+ `),de.debug("[markdown-processor] processHTMLToMarkdown OUTPUT:",{markdownLength:R.length,preservedAnchors:r}),R}typeof window<"u"&&(window.__clearMarkdownCache=T2);const Pl={major:15,minor:3},Ou="workspace-create:initializeGit",B2="~/Documents",_l="~/Developer";function q2(t){return rc(t,Pl.major,Pl.minor)}function C6(t){return t.some(e=>!q1(e))}function M6(t){return t.rememberedChoice!==null?t.rememberedChoice:t.hasGitWorkspace||t.githubConnected||t.gitlabConnected||t.githubFailed||t.gitlabFailed?!0:!t.workspacesLoaded||!t.githubSettled||!t.gitlabSettled?null:!1}function I6(t,e){switch(t){case"git-repo":return!e;case"new-repo":return!0;case"clone":return!1;default:return null}}function z6(t){try{const e=t?.getItem(Ou);if(e==="true")return!0;if(e==="false")return!1}catch{}return null}function R6(t,e){try{t?.setItem(Ou,String(e))}catch{}}function D6(t,e){return t&&t!==_l?t:e?B2:_l}function F2(t,e){const r=n=>n.replace(/[\\/]+$/,"");return r(t)===r(e)}function N6(t,e){return e?t.filter(r=>[r.repositoryPath,r.worktreePath,r.path].some(n=>typeof n=="string"&&n.length>0&&F2(n,e))):[]}function P6(t){const e=t.contextLinks?.filter(r=>r.kind!=="pr");return{title:t.title??"",repositoryPath:t.repositoryPath,plainFolder:!0,...e&&e.length>0?{contextLinks:e}:{},...t.linearIssue?{linearIssue:t.linearIssue}:{},...t.sentryIssue?{sentryIssue:t.sentryIssue}:{},...t.initialAgent?{initialAgent:t.initialAgent}:{}}}function _6(t,e){return!t||t.isGitRepo||t.isSubdirectoryOfGitRepo?null:t.exists?t.isDirectory?"existing":null:e===!1?"new":null}function L6(t){return t.labsEnabled&&q2(t.protocolVersion)&&t.githubSettled&&t.gitlabSettled&&!t.githubFailed&&!t.gitlabFailed&&!t.githubConnected&&!t.gitlabConnected}function O6(t,e){return!!t&&!t.plainFolder&&e.checked&&!e.available}const $t=E.createSelector(t=>Yl.select(t)?Vt.select(t):null),H2=E.createSelector(t=>{const e=qr.select(t)?.principal;return e?JSON.stringify([t.connections.windowBackendId,e.id]):null}),$6=E.createSelector(t=>ve(t.workspace.workspaces).map(e=>String(e.id))),B6=E.createSelector((t,e,r=De)=>{const n=$t.select(t),a=xe(t.workspace.workspaces,gn(e)),i=Li(t.workspaceDiscussion,e,r);return n&&t.workspaceDiscussion.context===n&&a&&t.workspaceDiscussion.workspaceIds.includes(e)&&i?{context:n,workspaceId:e,conversationId:r,epoch:i.epoch}:null}),sa=E.createSelector(t=>{const e=t.workspaceDiscussion.owner;if(!e||!fh.select(t)||t.principal.status==="revoked"||t.principal.error==="incompatible-response"||t.connections.authRejected?.id===t.connections.windowBackendId)return!1;const r=H2.select(t);if(r)return r===e;try{const[n,a]=JSON.parse(e),i=t.principal.boundPrincipalId??t.principal.snapshot?.principal.id;return n===t.connections.windowBackendId&&(i==null||i===a)}catch{return!1}}),Nt=E.createSelector((t,e,r=De)=>{if(!xe(t.workspace.workspaces,gn(e))||!sa.select(t))return w0;const a=Li(t.workspaceDiscussion,e,r)??w0;return r!==De&&r!==Xt&&(!a.authorized||!a.initialized&&t.workspaceDiscussion.conversationsSupported!==!0)?{...a,draft:"",agentMentions:[],principalMentions:[],messages:w0.messages,pending:w0.pending}:a}),U2=E.createSelector((t,e,r=De)=>Nt.select(t,e,r).authorized?ve(Nt.select(t,e,r).messages):[]),q6=E.createSelector((t,e,r=De)=>Nt.select(t,e,r).authorized?ve(Nt.select(t,e,r).pending):[]),W2=E.createSelector((t,e,r=De)=>{const n=xe(t.workspace.workspaces,gn(e)),a=Nt.select(t,e,r);return!!$t.select(t)&&!!n&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&(r===De||(r===Xt?t.workspaceDiscussion.managementSupported===!0:(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)&&a.authorized))&&!a.unsupported&&a.error!=="forbidden"}),F6=E.createSelector(t=>t.workspaceDiscussion.requestedIds),H6=E.createSelector(t=>t.workspaceDiscussion.requestedIds.filter(e=>{const[r,n]=JSON.parse(e);return!Li(t.workspaceDiscussion,r,n)})),$u=E.createSelector((t,e)=>qu.select(t)===!0&&!!$t.select(t)&&!!Zl.select(t,e)),G2=E.createSelector((t,e)=>$u.select(t,e)&&!Bu.select(t)),r0=E.createSelector((t,e)=>sa.select(t)&&(t.workspaceDiscussion.conversationsSupported===!0||t.workspaceDiscussion.managementSupported===!0)?t.workspaceDiscussion.directories[e]??Xs:Xs),U6=E.createSelector((t,e)=>ve(r0.select(t,e).conversations)),W6=E.createSelector((t,e)=>{if(sa.select(t)&&t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,De])))return!1;if(t.workspaceDiscussion.managementSupported!==!0)return!0;const r=r0.select(t,e);return!!xe(r.conversations,De)||r.status!=="ready"||r.hasMore}),G6=E.createSelector((t,e)=>{const r=sa.select(t)?t.workspaceDiscussion.recipients[e]??Ys:Ys,n=Nt.select(t,e,Xt).recipientPrincipalIds;return{status:r.status,query:r.query,members:ve(r.members),selectedMembers:ve(r.knownMembers).filter(a=>n.includes(a.principalId)),hasMore:r.hasMore,error:r.error}});E.createSelector((t,e)=>Nt.select(t,e,Xt).createdConversationId);const j6=E.createSelector(t=>t.workspaceDiscussion.conversationsSupported),V6=E.createSelector(t=>t.workspaceDiscussion.directoryRequestedIds),K6=E.createSelector((t,e)=>t.workspaceDiscussion.recipients[e]),j2=E.createSelector(t=>{const e=qr.select(t)?.principal;return e?{principalId:e.id,login:e.login??null,displayName:e.displayName??null,avatarUrl:e.avatarUrl??null}:null}),X6=E.createSelector((t,e,r=De)=>{const n=Nt.select(t,e,r),a=t.workspaceDiscussion.owner,i=j2.select(t)?.principalId??(a?JSON.parse(a)[1]:null),s=n.readSequence??0,o=U2.select(t,e,r).filter(c=>c.sequence>s&&(c.author.agentId!==void 0||c.author.principalId!==i));return{count:o.length,firstSequence:o[0]?.sequence??null}}),Bu=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)&&t.workspaceDiscussion.sharingEnabled===!1),n0=E.createSelector((t,e,r=De)=>(r!==Xt||G2.select(t,e))&&W2.select(t,e,r)&&!Bu.select(t)&&!Z2.select(t,e,r)),Y6=E.createSelector((t,e)=>F1.select(t)&&H1.select(t,e)),Z6=E.createSelector(t=>t.workspaceDiscussion.messageActionsSupported),Q6=E.createSelector((t,e,r=De)=>r!==Xt&&t.workspaceDiscussion.messageActionsSupported===!0&&n0.select(t,e,r)),J6=E.createSelector((t,e,r=De)=>{const n=Nt.select(t,e,r);return n.replyToMessageId&&n.authorized?xe(n.messages,n.replyToMessageId)??null:null}),V2=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.agentMessagingSupported:null),K2=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.agentActivitySupported:null),e7=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.principalMentionsSupported:null),t7=E.createSelector((t,e,r=De)=>r!==Xt&&Q2.select(t,e,r)&&K2.select(t)===!0&&n0.select(t,e,r)),r7=E.createSelector((t,e,r=De)=>ve(Nt.select(t,e,r).agentControls).map(n=>n.key)),n7=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.reactionsSupported:null),qu=E.createSelector(t=>t.workspaceDiscussion.context===$t.select(t)?t.workspaceDiscussion.managementSupported:null),X2=E.createSelector((t,e)=>$t.select(t)===t.workspaceDiscussion.context?t.workspaceDiscussion.management[e]??Zs:Zs),Y2=E.createSelector((t,e,r=De)=>{const n=Zl.select(t,e);return $u.select(t,e)&&(n?.myRole==="owner"||n?.myRole==="manager")&&!t.workspaceDiscussion.deletedKeys.includes(JSON.stringify([e,r]))&&xe(r0.select(t,e).conversations,r)?.kind==="workspace"}),a7=E.createSelector((t,e,r=De)=>Y2.select(t,e,r)&&U1.select(t,e)),i7=E.createSelector((t,e,r)=>{const n=X2.select(t,e);return n.pending!==null&&(r===void 0||n.conversationId===r)}),Z2=E.createSelector((t,e,r=De)=>{const n=xe(r0.select(t,e).conversations,r);return!!n&&n.kind!=="workspace"}),Q2=E.createSelector((t,e,r=De)=>V2.select(t)===!0&&n0.select(t,e,r)&&(r===De||qu.select(t)===!0&&(r===Xt||xe(r0.select(t,e).conversations,r)?.kind==="workspace"))),s7=E.createSelector(t=>t.presence.profileRevision),o7=E.createSelector(t=>t.presence.windowVisible),l7=E.createSelector(t=>t.presence.captureDrawingActive),J2=E.createSelector(t=>Yl.select(t)?Vt.select(t):null),Fu=t=>{const e=J2.select(t);return e!==null&&t.presence.context===e},c7=E.createSelector(t=>gh.select(t).filter(e=>!!xe(t.workspace.workspaces,gn(e)))),cn=[],un=[],Ll=[],e5=(t,e)=>{const r=t.rosters[e];return r?ve(r):cn},Ur=(t,e)=>{const r=xe(t.workspace.workspaces,gn(e));return Fu(t)&&r&&(r.memberCount??1)>1?r:void 0},u7=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!Ur(t,e))return Ll;const n=t.presence.members[e];return n?ve(n).filter(a=>a.principalId!==r&&!!a.login?.trim()):Ll}),bs=(t,e)=>({principalId:t.principalId,login:t.login,displayName:t.displayName,avatarUrl:t.avatarUrl,...t.identity?{identity:t.identity}:{},...t.hostRole?{hostRole:t.hostRole}:{},...e}),t5=t=>t.some(e=>e.online&&!e.self),K0=t=>t.owner?0:t.online?1:2,Hu=E.createSelector((t,e)=>{const r=t.presence.ownPrincipalId;if(r===null||!Ur(t,e))return un;const n=t.presence.members[e];if(!n)return un;const a=t.presence.rosters[e],i=ve(n).filter(s=>s.principalId!==r).map(s=>{const o=a?xe(a,s.principalId):void 0,c=o?{...s,...o}:s;return bs(c,{owner:c.hostRole?c.hostRole==="owner":s.role==="owner",online:o!==void 0,viewing:o?.focus.some(h=>h.workspaceId===e)??!1,self:!1})}).sort((s,o)=>K0(s)-K0(o));return i.length>0?i:un}),h7=E.createSelector((t,e)=>{const r=qr.select(t)?.capabilities.hostMembership;return Hu.select(t,e).filter(n=>r&&!n.hostRole?!1:!n.hostRole||n.hostRole==="guest"||n.online)}),r5=E.createSelector((t,e)=>{if(!Ur(t,e))return un;const r=t.presence.members[e],n=t.presence.rosters[e],a=new Map;for(const s of r?ve(r):[])a.set(s.principalId,s);for(const s of n?ve(n):[])a.set(s.principalId,{...a.get(s.principalId),...s});const i=qr.select(t)?.principal;return i&&i.id===t.presence.ownPrincipalId&&!a.has(i.id)&&a.set(i.id,{...i,principalId:i.id}),[...a.values()]}),d7=E.createSelector((t,e)=>{const r=Hu.select(t,e),n=t.presence.ownPrincipalId,a=r5.select(t,e).find(s=>s.principalId===n);if(!a)return r;const i=Ur(t,e);return[bs(a,{owner:a.hostRole?a.hostRole==="owner":i?.ownerPrincipalId===n,online:!0,viewing:!0,self:!0}),...r]}),p7=E.createSelector((t,e,r)=>{const n=t.presence.ownPrincipalId,a=Ur(t,e);if(n===null||!a)return un;const i=e5(t.presence,e).filter(s=>s.principalId!==n&&s.focus.some(o=>o.workspaceId===e&&o.agentId===r)).map(s=>bs(s,{owner:s.principalId===a.ownerPrincipalId,online:!0,viewing:!0,self:!1})).sort((s,o)=>K0(s)-K0(o));return t5(i)?i:un}),m7=E.createSelector((t,e,r)=>{const n=t.presence.liveTyping[e],a=t.presence.rosters[e];if(!n||!a)return cn;const i=new Set;for(const s of Object.keys(n)){const o=n[s];o.expired||o.agentId!==r||s===t.presence.ownTypingSource||xe(a,o.principalId)&&i.add(o.principalId)}return i.size===0?cn:ve(a).filter(s=>i.has(s.principalId))}),n5=E.createSelector(t=>{const e=t.presence.discussionComposerWorkspaceId;return e&&Fu(t)&&Ur(t,e)&&t.presence.windowVisible&&t.tabState.currentTabId===e&&t.presence.discussionComposerConversationId!==Xt&&n0.select(t,e,t.presence.discussionComposerConversationId)?e:null}),a5=E.createSelector(t=>{const e=n5.select(t);return e?tc(e,t.presence.discussionComposerConversationId):null}),f7=E.createSelector((t,e,r=De)=>{if(r!==De&&!n0.select(t,e,r)||!Ur(t,e)||t.presence.ownPrincipalId===null)return cn;const n=t.presence.liveDiscussionTyping[e],a=t.presence.rosters[e];if(!n||!a)return cn;const i=new Set(Object.entries(n).filter(([s,o])=>!o.expired&&o.conversationId===r&&s!==t.presence.ownTypingSource&&o.principalId!==t.presence.ownPrincipalId).map(([,s])=>s.principalId));return i.size?ve(a).filter(s=>i.has(s.principalId)):cn}),g7=E.createSelector(t=>t.presence.liveDiscussionTyping),i5=E.createSelector(t=>{if(!t.presence.windowVisible)return{focus:[],typing:null};const e=t.tabState.currentTabId;if(!e)return{focus:[],typing:null};const r=[{workspaceId:e}],n=t.panelLayout.byWorkspaceId[e]?.panels??{};for(const i of Object.keys(n).sort()){const s=n[i],o=s.activeTabId?s.tabs.find(c=>c.id===s.activeTabId):void 0;o&&(o.type==="agent"&&o.agentId?r.push({workspaceId:e,agentId:o.agentId}):o.type==="note"&&o.noteId&&r.push({workspaceId:e,noteId:o.noteId}))}const a=t.presence.ownDiscussionTyping;return{focus:r,typing:t.presence.ownTyping,...a&&tc(a.workspaceId,a.conversationId)===a5.select(t)?{discussionTyping:a}:{}}}),v7=E.createSelector(t=>JSON.stringify(i5.select(t))),b7=E.createSelector(t=>t.presence.liveTyping),y7=E.createSelector(t=>t.presence.ownPrincipalId),w7=E.createSelector(t=>{const e=[];for(const r of Object.keys(t.tabState.openTabs)){if(t.tabState.openTabs[r]!==!0)continue;const n=xe(t.workspace.workspaces,gn(r))?.memberCount??1;n>1&&e.push(`${r}:${n}`)}return e.sort()});let mr=null;function k7(t){const e={};return mr={token:e,onCancel:t},e}function x7(t){return mr?.token===t}function S7(t){mr?.token===t&&(mr=null)}function A7(){return mr!==null}function T7(){if(mr===null)return!1;const{onCancel:t}=mr;return mr=null,t(),!0}const P0=Oi("ProviderAvailabilityClient");let nn=null;async function E7(){if(typeof window>"u")return P0.debug("Skipping provider availability check - not in browser environment"),Ol();const t=W1.select(E.state);if(nn&&nn.connection===t)return P0.debug("Joining in-flight provider availability request"),nn.promise;const e={},r=(async()=>{try{P0.debug("Checking provider availability via IPC");const n=await je(vh.GET_AVAILABILITY);if(!n.success)throw new Error(n.error||"Failed to get provider availability");const a=n.data??Ol();return P0.debug("Provider availability fetched",{hasAnyProvider:a.hasAnyProvider,auggie:a.providers.auggie.available,claudeCode:a.providers.claudeCode.available,codex:a.providers.codex.available,cortex:a.providers.cortex.available,mock:a.providers.mock?.available??!1,opencode:a.providers.opencode.available,droid:a.providers.droid?.available??!1,grok:a.providers.grok?.available??!1,unsloth:a.providers.unsloth?.available??!1}),a}finally{nn?.token===e&&(nn=null)}})();return nn={connection:t,token:e,promise:r},r}function Ol(){return{hasAnyProvider:!1,providers:{auggie:{available:!1},claudeCode:{available:!1},codex:{available:!1},cortex:{available:!1},mock:{available:!1},opencode:{available:!1},pi:{available:!1},droid:{available:!1},grok:{available:!1},unsloth:{available:!1}}}}const pt={IS_AUTHENTICATED:"github-auth:is-authenticated",GET_USER:"github-auth:get-user",START_AUTH:"github-auth:start",POLL_FOR_TOKEN:"github-auth:poll",CANCEL_AUTH:"github-auth:cancel",LOGOUT:"github-auth:logout",GET_AUTH_STATE:"github-auth:get-auth-state",GET_STATUS:"github-auth:get-status",LIST_REPOS:"github-auth:list-repos",SEARCH_REPOS:"github-auth:search-repos",SEARCH_USERS:"github-auth:search-users"},C7={async isAuthenticated(t){try{return await je(pt.IS_AUTHENTICATED,...t===void 0?[]:[{workspaceId:t}])}catch{return!1}},async getUser(t){try{return await je(pt.GET_USER,...t===void 0?[]:[{workspaceId:t}])}catch{return null}},async startAuth(t){return t?await je(pt.START_AUTH,t):await je(pt.START_AUTH)},async checkAuthComplete(){return await je(pt.POLL_FOR_TOKEN)},async cancelAuth(t){return t?je(pt.CANCEL_AUTH,t):je(pt.CANCEL_AUTH)},async logout(){return je(pt.LOGOUT)},async getAuthState(t){try{return await je(pt.GET_AUTH_STATE,...t===void 0?[]:[{workspaceId:t}])}catch{return{isAuthenticated:!1,requiresDaemonAuth:!0,user:null}}},async getStatus(t){try{return await je(pt.GET_STATUS,...t===void 0?[]:[{workspaceId:t}])}catch{return{isConfigured:!1,oauthUrl:"",configuredButNeedsUpdate:!1,updatedScopes:""}}},async listRepos(t,e){const r=await je(pt.LIST_REPOS,{page:t,...e===void 0?{}:{workspaceId:e}});if(!r.success)throw new Error(r.error||"Repository discovery failed");return r.data??[]},async searchRepos(t,e){try{return await je(pt.SEARCH_REPOS,{query:t,...e===void 0?{}:{workspaceId:e}})}catch(r){return{success:!1,error:r instanceof Error?r.message:String(r)}}},async searchUsers(t,e){try{return await je(pt.SEARCH_USERS,{query:t,...e===void 0?{}:{workspaceId:e}})}catch(r){return{success:!1,error:r instanceof Error?r.message:String(r)}}}};class s5{constructor(){le(this,"metrics",new Map);le(this,"completedMetrics",[]);le(this,"maxCompletedMetrics",100)}start(e,r){Ra.get("showPerformanceMetrics")&&this.metrics.set(e,{name:e,startTime:performance.now(),metadata:r})}end(e){if(!Ra.get("showPerformanceMetrics"))return null;const r=this.metrics.get(e);return r?(r.endTime=performance.now(),r.duration=r.endTime-r.startTime,this.metrics.delete(e),this.completedMetrics.push(r),this.completedMetrics.length>this.maxCompletedMetrics&&this.completedMetrics.shift(),Ra.get("logStateChanges")&&$l.info(`[Performance] ${e}: ${r.duration.toFixed(2)}ms`,r.metadata),r.duration):($l.warn(`Performance metric "${e}" was not started`),null)}async measure(e,r,n){this.start(e,n);try{const a=await r();return this.end(e),a}catch(a){throw this.end(e),a}}getMetrics(){return[...this.completedMetrics]}clear(){this.metrics.clear(),this.completedMetrics=[]}}const M7=new s5,$l=new vn("Performance"),Bl=t=>{t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296};class o5{constructor(e){this.dictionaries=void 0,this.length=void 0,this.separator=void 0,this.style=void 0,this.seed=void 0;const{length:r,separator:n,dictionaries:a,style:i,seed:s}=e;this.dictionaries=a,this.separator=n,this.length=r,this.style=i,this.seed=s}generate(){if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error(`The length cannot be bigger than the number of dictionaries.
478
+ Length provided: ${this.length}. Number of dictionaries provided: ${this.dictionaries.length}`);let e=this.seed;return this.dictionaries.slice(0,this.length).reduce((r,n)=>{let a;e?(a=(s=>{if(typeof s=="string"){const o=s.split("").map(h=>h.charCodeAt(0)).reduce((h,d)=>h+d,1),c=Math.floor(Number(o));return Bl(c)}return Bl(s)})(e),e=4294967296*a):a=Math.random();let i=n[Math.floor(a*n.length)]||"";if(this.style==="lowerCase")i=i.toLowerCase();else if(this.style==="capital"){const[s,...o]=i.split("");i=s.toUpperCase()+o.join("")}else this.style==="upperCase"&&(i=i.toUpperCase());return r?`${r}${this.separator}${i}`:`${i}`},"")}}const ql={separator:"_",dictionaries:[]},l5=t=>{const e=[...t&&t.dictionaries||ql.dictionaries],r={...ql,...t,length:t&&t.length||e.length,dictionaries:e};if(!t||!t.dictionaries||!t.dictionaries.length)throw new Error('A "dictionaries" array must be provided. This is a breaking change introduced starting from Unique Name Generator v4. Read more about the breaking change here: https://github.com/andreasonny83/unique-names-generator#migration-guide');return new o5(r).generate()};var c5=["able","above","absent","absolute","abstract","abundant","academic","acceptable","accepted","accessible","accurate","accused","active","actual","acute","added","additional","adequate","adjacent","administrative","adorable","advanced","adverse","advisory","aesthetic","afraid","aggregate","aggressive","agreeable","agreed","agricultural","alert","alive","alleged","allied","alone","alright","alternative","amateur","amazing","ambitious","amused","ancient","angry","annoyed","annual","anonymous","anxious","appalling","apparent","applicable","appropriate","arbitrary","architectural","armed","arrogant","artificial","artistic","ashamed","asleep","assistant","associated","atomic","attractive","automatic","autonomous","available","average","awake","aware","awful","awkward","back","bad","balanced","bare","basic","beautiful","beneficial","better","bewildered","big","binding","biological","bitter","bizarre","blank","blind","blonde","bloody","blushing","boiling","bold","bored","boring","bottom","brainy","brave","breakable","breezy","brief","bright","brilliant","broad","broken","bumpy","burning","busy","calm","capable","capitalist","careful","casual","causal","cautious","central","certain","changing","characteristic","charming","cheap","cheerful","chemical","chief","chilly","chosen","christian","chronic","chubby","circular","civic","civil","civilian","classic","classical","clean","clear","clever","clinical","close","closed","cloudy","clumsy","coastal","cognitive","coherent","cold","collective","colonial","colorful","colossal","coloured","colourful","combative","combined","comfortable","coming","commercial","common","communist","compact","comparable","comparative","compatible","competent","competitive","complete","complex","complicated","comprehensive","compulsory","conceptual","concerned","concrete","condemned","confident","confidential","confused","conscious","conservation","conservative","considerable","consistent","constant","constitutional","contemporary","content","continental","continued","continuing","continuous","controlled","controversial","convenient","conventional","convinced","convincing","cooing","cool","cooperative","corporate","correct","corresponding","costly","courageous","crazy","creative","creepy","criminal","critical","crooked","crowded","crucial","crude","cruel","cuddly","cultural","curious","curly","current","curved","cute","daily","damaged","damp","dangerous","dark","dead","deaf","deafening","dear","decent","decisive","deep","defeated","defensive","defiant","definite","deliberate","delicate","delicious","delighted","delightful","democratic","dependent","depressed","desirable","desperate","detailed","determined","developed","developing","devoted","different","difficult","digital","diplomatic","direct","dirty","disabled","disappointed","disastrous","disciplinary","disgusted","distant","distinct","distinctive","distinguished","disturbed","disturbing","diverse","divine","dizzy","domestic","dominant","double","doubtful","drab","dramatic","dreadful","driving","drunk","dry","dual","due","dull","dusty","dutch","dying","dynamic","eager","early","eastern","easy","economic","educational","eerie","effective","efficient","elaborate","elated","elderly","eldest","electoral","electric","electrical","electronic","elegant","eligible","embarrassed","embarrassing","emotional","empirical","empty","enchanting","encouraging","endless","energetic","enormous","enthusiastic","entire","entitled","envious","environmental","equal","equivalent","essential","established","estimated","ethical","ethnic","eventual","everyday","evident","evil","evolutionary","exact","excellent","exceptional","excess","excessive","excited","exciting","exclusive","existing","exotic","expected","expensive","experienced","experimental","explicit","extended","extensive","external","extra","extraordinary","extreme","exuberant","faint","fair","faithful","familiar","famous","fancy","fantastic","far","fascinating","fashionable","fast","fat","fatal","favourable","favourite","federal","fellow","female","feminist","few","fierce","filthy","final","financial","fine","firm","fiscal","fit","fixed","flaky","flat","flexible","fluffy","fluttering","flying","following","fond","foolish","foreign","formal","formidable","forthcoming","fortunate","forward","fragile","frail","frantic","free","frequent","fresh","friendly","frightened","front","frozen","full","fun","functional","fundamental","funny","furious","future","fuzzy","gastric","gay","general","generous","genetic","gentle","genuine","geographical","giant","gigantic","given","glad","glamorous","gleaming","global","glorious","golden","good","gorgeous","gothic","governing","graceful","gradual","grand","grateful","greasy","great","grieving","grim","gross","grotesque","growing","grubby","grumpy","guilty","handicapped","handsome","happy","hard","harsh","head","healthy","heavy","helpful","helpless","hidden","high","hilarious","hissing","historic","historical","hollow","holy","homeless","homely","hon","honest","horizontal","horrible","hostile","hot","huge","human","hungry","hurt","hushed","husky","icy","ideal","identical","ideological","ill","illegal","imaginative","immediate","immense","imperial","implicit","important","impossible","impressed","impressive","improved","inadequate","inappropriate","inc","inclined","increased","increasing","incredible","independent","indirect","individual","industrial","inevitable","influential","informal","inherent","initial","injured","inland","inner","innocent","innovative","inquisitive","instant","institutional","insufficient","intact","integral","integrated","intellectual","intelligent","intense","intensive","interested","interesting","interim","interior","intermediate","internal","international","intimate","invisible","involved","irrelevant","isolated","itchy","jealous","jittery","joint","jolly","joyous","judicial","juicy","junior","just","keen","key","kind","known","labour","large","late","latin","lazy","leading","left","legal","legislative","legitimate","lengthy","lesser","level","lexical","liable","liberal","light","like","likely","limited","linear","linguistic","liquid","literary","little","live","lively","living","local","logical","lonely","long","loose","lost","loud","lovely","low","loyal","ltd","lucky","mad","magic","magnetic","magnificent","main","major","male","mammoth","managerial","managing","manual","many","marginal","marine","marked","married","marvellous","marxist","mass","massive","mathematical","mature","maximum","mean","meaningful","mechanical","medical","medieval","melodic","melted","mental","mere","metropolitan","mid","middle","mighty","mild","military","miniature","minimal","minimum","ministerial","minor","miserable","misleading","missing","misty","mixed","moaning","mobile","moderate","modern","modest","molecular","monetary","monthly","moral","motionless","muddy","multiple","mushy","musical","mute","mutual","mysterious","naked","narrow","nasty","national","native","natural","naughty","naval","near","nearby","neat","necessary","negative","neighbouring","nervous","net","neutral","new","nice","noble","noisy","normal","northern","nosy","notable","novel","nuclear","numerous","nursing","nutritious","nutty","obedient","objective","obliged","obnoxious","obvious","occasional","occupational","odd","official","ok","okay","old","olympic","only","open","operational","opposite","optimistic","oral","ordinary","organic","organisational","original","orthodox","other","outdoor","outer","outrageous","outside","outstanding","overall","overseas","overwhelming","painful","pale","panicky","parallel","parental","parliamentary","partial","particular","passing","passive","past","patient","payable","peaceful","peculiar","perfect","permanent","persistent","personal","petite","philosophical","physical","plain","planned","plastic","pleasant","pleased","poised","polite","political","poor","popular","positive","possible","potential","powerful","practical","precious","precise","preferred","pregnant","preliminary","premier","prepared","present","presidential","pretty","previous","prickly","primary","prime","primitive","principal","printed","prior","private","probable","productive","professional","profitable","profound","progressive","prominent","promising","proper","proposed","prospective","protective","protestant","proud","provincial","psychiatric","psychological","public","puny","pure","purring","puzzled","quaint","qualified","quarrelsome","querulous","quick","quickest","quiet","quintessential","quixotic","racial","radical","rainy","random","rapid","rare","raspy","rational","ratty","raw","ready","real","realistic","rear","reasonable","recent","reduced","redundant","regional","registered","regular","regulatory","related","relative","relaxed","relevant","reliable","relieved","religious","reluctant","remaining","remarkable","remote","renewed","representative","repulsive","required","resident","residential","resonant","respectable","respective","responsible","resulting","retail","retired","revolutionary","rich","ridiculous","right","rigid","ripe","rising","rival","roasted","robust","rolling","romantic","rotten","rough","round","royal","rubber","rude","ruling","running","rural","sacred","sad","safe","salty","satisfactory","satisfied","scared","scary","scattered","scientific","scornful","scrawny","screeching","secondary","secret","secure","select","selected","selective","selfish","semantic","senior","sensible","sensitive","separate","serious","severe","sexual","shaggy","shaky","shallow","shared","sharp","sheer","shiny","shivering","shocked","short","shrill","shy","sick","significant","silent","silky","silly","similar","simple","single","skilled","skinny","sleepy","slight","slim","slimy","slippery","slow","small","smart","smiling","smoggy","smooth","social","socialist","soft","solar","sole","solid","sophisticated","sore","sorry","sound","sour","southern","soviet","spare","sparkling","spatial","special","specific","specified","spectacular","spicy","spiritual","splendid","spontaneous","sporting","spotless","spotty","square","squealing","stable","stale","standard","static","statistical","statutory","steady","steep","sticky","stiff","still","stingy","stormy","straight","straightforward","strange","strategic","strict","striking","striped","strong","structural","stuck","stupid","subjective","subsequent","substantial","subtle","successful","successive","sudden","sufficient","suitable","sunny","super","superb","superior","supporting","supposed","supreme","sure","surprised","surprising","surrounding","surviving","suspicious","sweet","swift","symbolic","sympathetic","systematic","tall","tame","tart","tasteless","tasty","technical","technological","teenage","temporary","tender","tense","terrible","territorial","testy","then","theoretical","thick","thin","thirsty","thorough","thoughtful","thoughtless","thundering","tight","tiny","tired","top","tory","total","tough","toxic","traditional","tragic","tremendous","tricky","tropical","troubled","typical","ugliest","ugly","ultimate","unable","unacceptable","unaware","uncertain","unchanged","uncomfortable","unconscious","underground","underlying","unemployed","uneven","unexpected","unfair","unfortunate","unhappy","uniform","uninterested","unique","united","universal","unknown","unlikely","unnecessary","unpleasant","unsightly","unusual","unwilling","upper","upset","uptight","urban","urgent","used","useful","useless","usual","vague","valid","valuable","variable","varied","various","varying","vast","verbal","vertical","very","vicarious","vicious","victorious","violent","visible","visiting","visual","vital","vitreous","vivacious","vivid","vocal","vocational","voiceless","voluminous","voluntary","vulnerable","wandering","warm","wasteful","watery","weak","wealthy","weary","wee","weekly","weird","welcome","well","western","wet","whispering","whole","wicked","wide","widespread","wild","wilful","willing","willowy","wily","wise","wispy","wittering","witty","wonderful","wooden","working","worldwide","worried","worrying","worthwhile","worthy","written","wrong","xenacious","xenial","xenogeneic","xenophobic","xeric","xerothermic","yabbering","yammering","yappiest","yappy","yawning","yearling","yearning","yeasty","yelling","yelping","yielding","yodelling","young","youngest","youthful","ytterbic","yucky","yummy","zany","zealous","zeroth","zestful","zesty","zippy","zonal","zoophagous","zygomorphic","zygotic"],u5=["aardvark","aardwolf","albatross","alligator","alpaca","amphibian","anaconda","angelfish","anglerfish","ant","anteater","antelope","antlion","ape","aphid","armadillo","asp","baboon","badger","bandicoot","barnacle","barracuda","basilisk","bass","bat","bear","beaver","bedbug","bee","beetle","bird","bison","blackbird","boa","boar","bobcat","bobolink","bonobo","booby","bovid","bug","butterfly","buzzard","camel","canid","canidae","capybara","cardinal","caribou","carp","cat","caterpillar","catfish","catshark","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","cicada","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragon","dragonfly","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","felidae","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","galliform","gamefowl","gayal","gazelle","gecko","gerbil","gibbon","giraffe","goat","goldfish","goose","gopher","gorilla","grasshopper","grouse","guan","guanaco","guineafowl","gull","guppy","haddock","halibut","hamster","hare","harrier","hawk","hedgehog","heron","herring","hippopotamus","hookworm","hornet","horse","hoverfly","hummingbird","hyena","iguana","impala","jackal","jaguar","jay","jellyfish","junglefowl","kangaroo","kingfisher","kite","kiwi","koala","koi","krill","ladybug","lamprey","landfowl","lark","leech","lemming","lemur","leopard","leopon","limpet","lion","lizard","llama","lobster","locust","loon","louse","lungfish","lynx","macaw","mackerel","magpie","mammal","manatee","mandrill","marlin","marmoset","marmot","marsupial","marten","mastodon","meadowlark","meerkat","mink","minnow","mite","mockingbird","mole","mollusk","mongoose","monkey","moose","mosquito","moth","mouse","mule","muskox","narwhal","newt","nightingale","ocelot","octopus","opossum","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","parrotfish","partridge","peacock","peafowl","pelican","penguin","perch","pheasant","pig","pigeon","pike","pinniped","piranha","planarian","platypus","pony","porcupine","porpoise","possum","prawn","primate","ptarmigan","puffin","puma","python","quail","quelea","quokka","rabbit","raccoon","rat","rattlesnake","raven","reindeer","reptile","rhinoceros","roadrunner","rodent","rook","rooster","roundworm","sailfish","salamander","salmon","sawfish","scallop","scorpion","seahorse","shark","sheep","shrew","shrimp","silkworm","silverfish","skink","skunk","sloth","slug","smelt","snail","snake","snipe","sole","sparrow","spider","spoonbill","squid","squirrel","starfish","stingray","stoat","stork","sturgeon","swallow","swan","swift","swordfish","swordtail","tahr","takin","tapir","tarantula","tarsier","termite","tern","thrush","tick","tiger","tiglon","toad","tortoise","toucan","trout","tuna","turkey","turtle","tyrannosaurus","unicorn","urial","vicuna","viper","vole","vulture","wallaby","walrus","warbler","wasp","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra"];const Uu=/^[a-z]{2,15}-[a-z]{2,15}(-[0-9]+)?$/,Wu=/^[a-z]{2,15}$/,Gu=c5.filter(t=>Wu.test(t)),ju=u5.filter(t=>Wu.test(t));function I7(){return l5({dictionaries:[Gu,ju],separator:"-",style:"lowerCase",length:2})}function z7(t,e){return`${t}-${e}`}function h5(t){const e=t.match(/^([a-z]{2,15}-[a-z]{2,15})(?:-[0-9]+)?$/);return e?e[1]:t}const Fl=new Set(Gu),Hl=new Set(ju),d5=new Set;function R7(t){return!t||typeof t!="string"?!1:Uu.test(t)||/^[a-z]{2,15}-[a-z]{2,15}-[a-z0-9]{4}$/.test(t)?!0:/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(t)}function D7(t){if(!t||typeof t!="string")return!1;if(d5.has(t))return!0;if(Uu.test(t)){const n=h5(t).split("-");if(n.length===2){const[a,i]=n;if(Fl.has(a)&&Hl.has(i))return!0}}if(/^[a-z]{2,15}-[a-z]{2,15}-[a-z0-9]{4}$/.test(t)){const r=t.split("-");if(r.length===3){const[n,a]=r;if(Fl.has(n)&&Hl.has(a))return!0}}return!1}const N7=E.createSelector(t=>qr.select(t)?.capabilities.sessionImport===1),P7=E.createSelector(t=>{const e=t.importableSessions?.sessions;return e?ve(e):[]}),_7=E.createSelector(t=>{const e=t.importableSessions?.providers;return e?ve(e):[]}),L7=E.createSelector(t=>t.importableSessions?.status??"idle"),p5=Oi("ContextAPI");function O7(t){return t.some(e=>e.placementStatus==="placing"||e.placementStatus==="failed")}async function Ul(t,e,r){return p5.debug("Placing attachment",{workspaceId:t,fileName:e,viaSourcePath:r.sourcePath!==void 0,keyed:r.idempotencyKey!==void 0}),await wn("file.placeAttachment",{workspaceId:t,fileName:e,...r.data!==void 0?{data:r.data}:{},...r.sourcePath!==void 0?{sourcePath:r.sourcePath}:{},...r.mimeType!==void 0&&r.mimeType!==""?{mimeType:r.mimeType}:{},...r.idempotencyKey!==void 0?{idempotencyKey:r.idempotencyKey}:{},...r.rawScreenshot!==void 0?{rawScreenshot:r.rawScreenshot}:{}})}async function m5(t,e,r,n,a={}){return await wn("file.attachmentUpload.begin",{workspaceId:t,fileName:e,sizeBytes:r,sha256:n,...a.mimeType!==void 0&&a.mimeType!==""?{mimeType:a.mimeType}:{},...a.idempotencyKey!==void 0?{idempotencyKey:a.idempotencyKey}:{},...a.rawScreenshot!==void 0?{rawScreenshot:a.rawScreenshot}:{}})}const Vu=300*1e3;async function f5(t,e,r,n){return await wn("file.attachmentUpload.chunk",{uploadId:t,seq:e,data:r,...n!==void 0?{workspaceId:n}:{}},{timeoutMs:Vu})}async function g5(t,e){return await wn("file.attachmentUpload.commit",{uploadId:t,...e!==void 0?{workspaceId:e}:{}},{timeoutMs:Vu})}async function v5(t,e){return await wn("file.attachmentUpload.abort",{uploadId:t,...e!==void 0?{workspaceId:e}:{}})}async function b5(t){const e=typeof t=="string"?{attachmentId:t}:t.attachmentId!==void 0?{workspaceId:t.workspaceId,attachmentId:t.attachmentId}:{workspaceId:t.workspaceId,idempotencyKey:t.idempotencyKey};return await wn("file.getAttachmentInfo",e)}async function $7(t,e,r){return await je("file:download-attachment",{workspaceId:t,path:e,fileName:r})}const Ku=25*1024*1024,Wl=1024*1024*1024,y5=16*1024*1024,Xu="attachment upload cancelled";function w5(t,e){return e?.aborted===!0||t instanceof Error&&t.message===Xu}function B0(t){if(t?.aborted)throw new Error(Xu)}function k5(){return!G1.select(E.state)}function x5(t){return rc(t,9,13)}function Yu(){return x5(E.state?.daemonHealth?.stats?.protocolVersion)}function B7(t){if(Yu())return t??crypto.randomUUID()}function Zu(t){if(!t||typeof t!="object")return!1;const{rpcCode:e,code:r}=t;return e===-32602||r==="INVALID_PARAMS"}function S5(t){return Zu(t)&&/already committed/i.test(String(t.message??""))}function A5(t){return{ok:!0,path:t.path,fileName:t.fileName,size:t.size,attachmentId:t.attachmentId,...t.mimeType!==void 0?{mimeType:t.mimeType}:{},uploadedAt:t.uploadedAt,replayed:!0,...t.rawScreenshot!==void 0?{rawScreenshot:t.rawScreenshot}:{}}}async function Pi(t,e,r=b5){try{return A5(await r({workspaceId:t,idempotencyKey:e}))}catch{return}}function Qu(t,e,r){return e!==void 0&&!Zu(t)&&!w5(t,r)}async function Gl(t,e,r,n,a=()=>!0){try{return lt(a),await n()}catch(i){if(lt(a),Qu(i,e,r)){const s=await Pi(t,e);if(s)return s}throw i}}const Ju="file:read returned an unexpected response",ys="file:read failed";function ws(t){if(!t||typeof t!="object"||!("success"in t))throw new Error(Ju);if(!t.success||t.data===void 0)throw new Error(t.error?.message??ys);return t.data}async function T5(t){const e=await je("file:read",{path:t,encoding:"base64",maxSize:Ku,truncateIfLarge:!1}),r=ws(e);if(r.content===void 0)throw new Error(e.error?.message??ys);return r.content}async function e1(t,e,r){const n=await je("file:read-chunk",{path:t,offset:e,length:r});return ws(n)}async function E5(t){const{size:e}=await e1(t,0,1);return e}async function C5(t){const e=await je("file:hash",{path:t});return ws(e).sha256}const M5=new Set(["Internal error","Backend request failed",Ju,ys]);async function q7(t,e,r,n,a,i=()=>!0){lt(i);const s=Yu()?r.idempotencyKey:void 0,o=s!==void 0?{idempotencyKey:s}:{};if(!k5())return Gl(t,s,a,()=>Ul(t,e,{sourcePath:r.sourcePath,mimeType:r.mimeType,...o}),i);const c=await E5(r.sourcePath);if(lt(i),c>Wl)throw new Error(ie.chat_attachmentPlacement_tooLargeRemote_error({name:e,maxGb:Math.round(Wl/(1024*1024*1024))}));if(c>Ku)return I5(t,e,{...r,idempotencyKey:s},c,n,a,i);const h=await T5(r.sourcePath);return lt(i),B0(a),Gl(t,s,a,()=>Ul(t,e,{data:h,mimeType:r.mimeType,...o}),i)}async function I5(t,e,r,n,a,i,s=()=>!0){lt(s);const o=await C5(r.sourcePath);lt(s),B0(i);let c,h;try{({uploadId:c,maxChunkBytes:h}=await m5(t,e,n,o,{mimeType:r.mimeType,...r.idempotencyKey!==void 0?{idempotencyKey:r.idempotencyKey}:{}}))}catch(w){if(lt(s),r.idempotencyKey!==void 0&&S5(w)){const A=await Pi(t,r.idempotencyKey);if(A)return A}throw w}const d=Math.min(y5,h),v=Math.ceil(n/d);let m=!1;try{for(let w=0;w<v;w++){lt(s),B0(i);const{content:A}=await e1(r.sourcePath,w*d,d);lt(s),await f5(c,w,A,t),lt(s),a?.((w+1)/v)}return B0(i),lt(s),m=!0,await g5(c,t)}catch(w){if(lt(s),m&&Qu(w,r.idempotencyKey,i)){const A=await Pi(t,r.idempotencyKey);if(A)return A}throw lt(s),await v5(c,t).catch(()=>{}),w}}function F7(t){if(!t||typeof t!="object")return;const e=t.data;if(e&&typeof e=="object"){const n=e.detail;if(typeof n=="string"&&n.trim().length>0)return n.trim()}const r=t.message;if(typeof r=="string"&&r.trim().length>0&&!M5.has(r.trim()))return r.trim()}function lt(t){if(!t())throw new DOMException("Obsolete attachment submission","AbortError")}function t1(t){const e=t?.split(";")[0].trim().toLowerCase()??"";return e==="image/jpg"?"image/jpeg":e}function H7(t){return["image/png","image/jpeg","image/gif","image/webp"].includes(t1(t))}const z5={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/avif":"avif","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","image/heif":"heif","image/jxl":"jxl"};function U7(t,e){const r=z5[t1(t)]??"bin";return`${e}.${r}`}const R5=Oi("InAppFileInputs");function D5(t=globalThis.window){return t?.electronAPI?.preferInAppPicker===!0}function N5(t){return typeof HTMLInputElement<"u"&&t instanceof HTMLInputElement&&t.type==="file"}const r1=new WeakMap;function W7(t,e=globalThis.window){let r="";try{r=e?.electronAPI?.getPathForFile?.(t)??""}catch{r=""}return r||r1.get(t)||""}function P5(t){const e=new DataTransfer;for(const r of t)e.items.add(new File([r.data],r.name,{type:r.type}));return e.files}async function _5(t,e){const r={accept:t.accept||void 0,multiple:t.multiple},n=await e.invoke(th.IN_APP_FILE_DIALOG.PICK_FILES,r);return!Array.isArray(n)||n.length===0?(t.dispatchEvent(new Event("cancel",{bubbles:!0})),!1):(t.files=P5(n),Array.from(t.files??[],(a,i)=>{const s=n[i]?.path;s&&r1.set(a,s)}),t.dispatchEvent(new Event("input",{bubbles:!0})),t.dispatchEvent(new Event("change",{bubbles:!0})),!0)}function G7(t=globalThis.window){if(!t||!D5(t))return()=>{};const e=t.electronAPI;let r=!1;const n=a=>{const i=a.target;!N5(i)||i.disabled||(a.preventDefault(),!r&&(r=!0,_5(i,e).catch(s=>{R5.warn("in-app picker failed",{error:s instanceof Error?s.message:String(s)})}).finally(()=>{r=!1})))};return t.addEventListener("click",n,!0),()=>t.removeEventListener("click",n,!0)}let L5=0;const ks=new WeakSet;function j7(t){const e=E.dispatch,r=E.state.connections.windowBackendId,n=si.select(E.state,t.id);if(!n||E.state.workspace.pendingDeletions[t.id])return null;const a=`operation-${++L5}`;let i=!1;const s=()=>{try{return E.dispatch===e&&E.state.connections.windowBackendId===r}catch{return!1}},o=()=>s()&&E.state.workspace.deletionTokens[t.id]===a,c=()=>s()&&Vt.select(E.state)===n&&(i?o()&&E.state.workspace.invalidatedDeletions[t.id]!==a&&E.state.workspace.terminalDeletions[t.id]!==a:si.select(E.state,t.id)===n),h={workspaceId:t.id,current:c,terminal(){return!i||!o()||Vt.select(E.state)!==n||E.state.workspace.terminalDeletions[t.id]!==a?null:E.state.workspace.invalidatedDeletions[t.id]===a?"denied":"removed"},begin(d=!0){return i||!c()||E.state.workspace.pendingDeletions[t.id]?!1:(e(ah(t.id,a)),d&&e(ih(t.id)),i=!0,c())},restore(){c()&&(e(oi(t.id,a)),e(nh(t)))},expire(){o()&&e(oi(t.id,a))}};return ks.add(h),h}function jl(t,e){return ks.has(t)&&t.workspaceId===e&&t.current()}function O5(t,e){return ks.has(t)&&t.workspaceId===e&&t.terminal()==="removed"}function V7(t){const e=E.dispatch,r=E.state.connections.windowBackendId,n=E.state.workspace.deletionTokens[t];return()=>{try{n&&E.dispatch===e&&E.state.connections.windowBackendId===r&&e(oi(t,n))}catch{}}}function zr(t,e){const r=()=>t===void 0?Xl.select(E.state)?Vt.select(E.state):null:e?j1.select(E.state,t,e):si.select(E.state,t),n=E.dispatch,a=r();return()=>{try{return E.dispatch===n&&a!==null&&a===r()}catch{return!1}}}const ot=()=>({ok:!1,error:ie.workspace_client_accessChanged_error()}),lr=new vn("WorkspaceClient"),$5=100;function Pn(t){return{...t,path:t.path?.replaceAll("\\","/"),repositoryPath:t.repositoryPath?.replaceAll("\\","/"),worktreePath:t.worktreePath?.replaceAll("\\","/")}}class B5{constructor(){le(this,"pendingRequests",new Map);le(this,"cache",new Map);le(this,"CACHE_TTL",5e3);le(this,"mutationCounter",0)}getCacheKey(e,r){return`${e}:${JSON.stringify(r||{})}`}pruneExpiredCacheEntries(e=Date.now()){for(const[r,n]of this.cache)e-n.timestamp>=this.CACHE_TTL&&this.cache.delete(r)}setCacheEntry(e,r){for(this.pruneExpiredCacheEntries(),this.cache.delete(e),this.cache.set(e,{data:r,timestamp:Date.now()});this.cache.size>$5;){const n=this.cache.keys().next().value;if(n===void 0)break;this.cache.delete(n)}}shouldCacheResponse(e){return e!==Er.LIST&&(e.includes(":get")||e.includes(":list"))}async invoke(e,r){try{const n=this.mutationCounter,a=this.getCacheKey(e,r)+(e===Er.LIST?JSON.stringify([E.state.connections.windowBackendId,Vt.select(E.state)]):"");this.pruneExpiredCacheEntries();const i=this.pendingRequests.get(a);if(i)return lr.debug(`[WorkspaceClient] Reusing pending request for ${e}`),i;if(this.shouldCacheResponse(e)){const o=this.cache.get(a);if(o&&Date.now()-o.timestamp<this.CACHE_TTL)return lr.debug(`[WorkspaceClient] Using cached response for ${e}`),{ok:!0,data:o.data};o&&this.cache.delete(a)}const s=(async()=>{if(typeof window<"u"&&window.electronAPI){let o=r;if(r!==void 0)try{o=JSON.parse(JSON.stringify(r))}catch(d){if(lr.error(`[WorkspaceClient] Data serialization failed for ${e}:`,{error:d,dataKeys:r?Object.keys(r):[]}),r&&typeof r=="object")for(const[v,m]of Object.entries(r))try{JSON.stringify(m)}catch{lr.error(`[WorkspaceClient] Non-serializable field: ${v}`,{type:typeof m,constructor:m?.constructor?.name})}throw new Error(`Data serialization failed: ${d instanceof Error?d.message:"Unknown error"}`)}const c=await Qs(e,o),h=this.normalizeResponse(c);return h.ok&&this.shouldCacheResponse(e)&&n===this.mutationCounter&&this.setCacheEntry(a,h.data),h}return{ok:!1,error:"IPC not available"}})();this.pendingRequests.set(a,s);try{return await s}finally{this.pendingRequests.delete(a)}}catch(n){return lr.error(`[WorkspaceClient] IPC error for ${e}:`,n),{ok:!1,error:n instanceof Error?n.message:"IPC call failed"}}}clearCache(e){if(this.mutationCounter++,e){for(const[r]of this.cache)r.includes(e)&&this.cache.delete(r);for(const[r]of this.pendingRequests)r.includes(e)&&this.pendingRequests.delete(r)}else this.cache.clear(),this.pendingRequests.clear()}normalizeResponse(e){return e==null?{ok:!1,error:"No response received"}:"ok"in e?e.ok?{ok:!0,data:e.data}:{ok:!1,error:e.error||"Unknown error"}:"success"in e?e.success?{ok:!0,data:e.data}:{ok:!1,error:e.error||"Unknown error"}:{ok:!1,error:"Invalid response format"}}async list(e){const r=await this.invoke(Er.LIST,{lite:e?.lite});return r.ok?r.data&&"workspaces"in r.data?{ok:!0,data:r.data.workspaces.map(Pn)}:{ok:!0,data:r.data.map(Pn),complete:!0}:r}async create(e){const r=e.initialAgent;lr.info(`[WorkspaceClient] create called: title=${e.title}, hasInitialAgent=${!!r}, specialist=${r?.specialist}, model=${r?.model}, keys=${r?Object.keys(r).join(","):"none"}`);const n=zr();if(!n())return ot();const a=await Tr.workspaces.create(e);if(!n())return ot();if(lr.info("[WorkspaceClient] create result",{success:a.success,scope:e.scope,initialAgentId:a.success?a.initialAgent?.id:void 0,error:a.success?void 0:a.error}),a.success&&a.workspace)return this.clearCache(),{ok:!0,data:{workspace:Pn(a.workspace),initialAgent:a.initialAgent,...a.proposalOrigin?{proposalOrigin:a.proposalOrigin}:{}}};const i=a.error||ie.workspace_client_createFailed_error();return a.errorCode?{ok:!1,error:i,errorCode:a.errorCode,...a.launchFailure?{launchFailure:a.launchFailure}:{},...a.baseRefreshFailure?{baseRefreshFailure:a.baseRefreshFailure}:{}}:{ok:!1,error:i}}async open(e){const r=await this.invoke(Er.OPEN,{id:e});return r.ok?{ok:!0,data:Pn(r.data)}:r}async update(e){const r=zr(e.id,Object.keys(e));if(!r())return ot();const n=await Tr.workspaces.update(e);return r()?n.success&&n.workspace?(this.clearCache(e.id),this.clearCache(),{ok:!0,data:Pn(n.workspace)}):{ok:!1,error:n.error||ie.workspace_client_updateFailed_error()}:ot()}async delete(e,r,n){const a=n?()=>jl(n,e):zr(e);if(!a())return{...ot(),obsolete:!0};const i=await Tr.workspaces.delete(e,r);return!a()&&!(n&&O5(n,e))?{...ot(),obsolete:!0}:i.success?(this.clearCache(e),this.clearCache(),i.scheduled&&i.deleteAt?{ok:!0,data:{scheduled:!0,deleteAt:i.deleteAt}}:{ok:!0,data:void 0}):{ok:!1,error:i.error||ie.workspace_client_deleteFailed_error()}}async cancelDelete(e,r){const n=r?()=>jl(r,e):zr(e);if(!n())return{...ot(),obsolete:!0};const a=await Tr.workspaces.cancelDelete(e);return n()?a.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:{cancelled:a.cancelled===!0}}):{ok:!1,error:a.error||ie.workspace_client_cancelDeleteFailed_error()}:{...ot(),obsolete:!0}}async archive(e){const r=zr(e);if(!r())return ot();const n=await Tr.workspaces.archive(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:void 0}):{ok:!1,error:n.error||ie.workspace_client_archiveFailed_error()}:ot()}async unarchive(e){const r=zr(e);if(!r())return ot();const n=await Tr.workspaces.unarchive(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:void 0}):{ok:!1,error:n.error||ie.workspace_client_unarchiveFailed_error()}:ot()}async retire(e){const r=zr(e);if(!r())return ot();const n=await Tr.workspaces.retire(e);return r()?n.success?(this.clearCache(e),this.clearCache(),{ok:!0,data:n.workspace}):{ok:!1,error:n.error||ie.workspace_ops_purgeFailed_error(),...n.errorCode?{errorCode:n.errorCode}:{}}:ot()}async invokeFresh(e,r){try{if(typeof window<"u"&&window.electronAPI){const n=await Qs(e,r);return this.normalizeResponse(n)}return{ok:!1,error:"IPC not available"}}catch(n){return lr.error(`[WorkspaceClient] IPC error for ${e}:`,n),{ok:!1,error:n instanceof Error?n.message:"IPC call failed"}}}async getDiffSummary(e){return this.invokeFresh(Er.GET_DIFF_SUMMARY,{workspaceId:e})}async getGitSummary(e){return this.invokeFresh(Er.GET_GIT_SUMMARY,{workspaceId:e})}async getTasks(e){return this.invokeFresh(Er.GET_TASKS,{workspaceId:e})}}const K7=new B5;function Vl(t,e){return{key:t.id,confirmedId:t.id,confirmed:t,content:t.content,messageMetadata:t.messageMetadata,imageBlocks:[...t.imageBlocks??[]],fileBlocks:[...t.fileBlocks??[]],deliveryGroups:t.deliveryGroups,contextItems:[...t.contextItems??[]],contributions:[],blocksMutations:e}}function Kl(t){return!t.imageBlocks?.length&&!t.fileBlocks?.length}function n1(t,e){const r=t?.supported===!0,n=r&&(t.refreshNeeded||sh(t)),a=e.map(k=>Vl(k,n));if(!t)return{conversation:[],processing:[],queue:a};const i=new Set(ve(t.seeds).flatMap(k=>k0(k,t.scope.principalId))),s=ve(t.submissions).filter(k=>!i.has(k.id)),o=new Set(e.flatMap(k=>k0(k,t.scope.principalId))),c=ve(t.processing).filter(k=>!k0(k,t.scope.principalId).some(I=>o.has(I))),h=s.filter(k=>k.destination==="conversation");if(!r)return{conversation:h,processing:c,queue:a};for(const k of ve(t.seeds)){const I=a.findIndex(K=>K.confirmedId===k.id),R=Vl(k,!0),Z=k0(k,t.scope.principalId);R.contributions=ve(t.submissions).filter(K=>Z.includes(K.id)),I>=0?(R.confirmed=a[I].confirmed,a[I]=R):(R.confirmedId=void 0,R.confirmed=void 0,a.push(R))}const d=e.filter(k=>k.mergeEligible===!0),v=!n&&d.length===1&&d[0].author?.principalId===t.scope.principalId&&d[0].submissionIds?.length&&!d[0].recoverySources?d[0].id:void 0;let m=v?a.find(k=>k.confirmedId===v):void 0;for(const k of s.filter(I=>I.destination==="queue")){const I=m&&Kl(m)&&Kl(k)?m:void 0;if(I)I.content=[I.content,k.content].filter(Boolean).join(`
479
479
 
480
- `),I.imageBlocks.push(...k.imageBlocks??[]),I.fileBlocks.push(...k.fileBlocks??[]),I.contextItems.push(...k.contextItems??[]),I.contributions.push(k),I.blocksMutations=!0,m=I;else{const R={key:k.id,content:k.content,messageMetadata:k.messageMetadata,imageBlocks:[...k.imageBlocks??[]],fileBlocks:[...k.fileBlocks??[]],contextItems:[...k.contextItems??[]],contributions:[k],blocksMutations:!0};a.push(R),n||(m=R)}}const w=new Map(ve(t.submissions).map((k,I)=>[k.id,I])),A=k=>Math.min(...k.contributions.map(I=>w.get(I.id)??1/0)),C=a.filter(k=>!k.confirmedId).sort((k,I)=>A(k)-A(I));let M=0;for(let k=0;k<a.length;k+=1)a[k].confirmedId||(a[k]=C[M++]);return{conversation:h,processing:c,queue:a}}function B5(t,e){return t.some(r=>r.blocksMutations&&(!r.confirmedId||e===void 0||e===r.confirmedId||!!r.confirmed?.editingMessageId&&e===r.confirmed.editingMessageId))}const oa=E.createSelector((t,e)=>{const r=t.pendingSubmissions?.byAgentId[e.agentId];if(!r||!sh(r.scope,e)||j1.select(t,e.workspaceId)!==e.participation||qr.select(t)?.principal.id!==e.principalId)return;const n=t.agentSessions?.byAgentId[e.agentId]?.workspaceId;return n!==void 0&&n!==e.workspaceId?void 0:r}),q5=E.createSelector((t,e)=>n1(oa.select(t,e),X0.select(t,e.agentId,e.workspaceId))),K7=E.createSelector(t=>t.pendingSubmissions),X7=E.createSelector((t,e)=>{const r=oa.select(t,e.scope);return!!r&&(!!xe(r.operations,e.id)||!!xe(r.submissions,e.id))}),F5=E.createSelector((t,e,r)=>{const n=t.pendingSubmissions?.byAgentId[e]?.scope;return n?.workspaceId===r?q5.select(t,n):n1(void 0,X0.select(t,e,r))}),Y7=E.createSelector((t,e)=>{const r=oa.select(t,e.scope);return!!r&&xe(r.operations,e.id)?.observed===!0}),Z7=E.createSelector((t,e,r,n)=>B5(F5.select(t,e,r).queue,n));function xs(t,e,r){const n=t.pendingSubmissions?.byAgentId[e]?.scope,a=n?oa.select(t,n):void 0;return a?[...ve(a.submissions),...ve(a.processing),...ve(a.tombstones).filter(i=>i.reason==="history"||i.reason==="processing")].some(i=>bh({metadata:i.messageMetadata}).includes(r)):!1}function H5(t,e,r,n=!1){const a=V1.select(t,e),i=X0.select(t,e),s=t.agentSessions?.byAgentId[e],o=$i(s?.metadata?.pendingQuestionsMessageId),c=o.kind==="set"?r.find(w=>w.id===o.messageId)??_i.select(t,e,o.messageId):void 0,h=t.chatState?.byAgentId[e]?.pendingQuestionRecovery,d=o.kind==="set"&&!c&&h?.messageId===o.messageId&&h.status==="found"&&h.questions&&h.questions.length>0?{messageId:o.messageId,questions:h.questions}:null,v=o.kind==="set"&&c&&!r.includes(c)?[c,...r]:r,m=d?n||nc(r,d.messageId)||ac(i,d.messageId)?null:d:vh(v,a,n,o.kind==="set"?o.messageId:o.kind==="cleared"?"":void 0,i);return!m||xs(t,e,m.messageId)||ic(s?.metadata,m.messageId)?null:m}function U5(t){return t.role==="assistant"&&t.provisional!==!0&&t.isStreaming!==!0&&(t.contentBlocks??[]).some(e=>yh(e)!==null)}function Q7(t,e,r){if(H5(t,e,r))return!0;const n=t.agentSessions?.byAgentId[e],a=$i(n?.metadata?.pendingQuestionsMessageId);if(a.kind!=="set"||xs(t,e,a.messageId)||ic(n?.metadata,a.messageId)||nc(r,a.messageId))return!1;const i=X0.select(t,e);if(ac(i,a.messageId))return!1;const s=r.find(h=>h.id===a.messageId)??_i.select(t,e,a.messageId);if(s)return!U5(s);const o=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;return!(o?.messageId===a.messageId&&o.status==="found"&&!!o.questions&&o.questions.length>0)}function J7(t,e){const r=$i(t.agentSessions?.byAgentId[e]?.metadata?.pendingQuestionsMessageId);if(r.kind!=="set"||xs(t,e,r.messageId)||_i.select(t,e,r.messageId))return null;const n=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;if(n?.messageId===r.messageId){const a=n.status==="found"&&!!n.questions&&n.questions.length>0;return{messageId:r.messageId,shouldRequest:!1,loading:!a}}return{messageId:r.messageId,shouldRequest:!0,loading:!0}}const W5=E.createSelector(t=>t.permission.requests),G5=E.createSelector(t=>ve(W5.select(t))),j5=E.createSelector((t,e)=>G5.select(t).filter(r=>r.sessionId===e)),eg=E.createSelector((t,e)=>j5.select(t,e).length),tg=E.createSelector(t=>{const e=Ql.select(t),r=e.actionContext;if(!r||!K1.select(t,t.connections.windowBackendId))return null;const n=ve(t.workspace.workspaces).filter(a=>Jl(e,a.id,()=>a)!==null).map(a=>a.id).sort();return JSON.stringify([r,n])}),rg=E.createSelector(t=>{const e=Ql.select(t),r=new Map,n=a=>{let i=r.get(a);if(!i){const s=()=>xe(t.workspace.workspaces,a);i=[Jl(e,a,s),X1(e,a,s)],r.set(a,i)}return i};return JSON.stringify(Object.values(t.agentSessions.byAgentId).flatMap(a=>a.workspaceId?[[a.id,a.workspaceId,...n(a.workspaceId)]]:[]).sort((a,i)=>a[0].localeCompare(i[0])))}),ng=E.createSelector((t,e,r)=>{const n=t.agentMutationUi.byWorkspaceId[e],a=n?xe(n.consumers,r):void 0;return a&&!a.consumed?{...a,workspaceId:e}:void 0});function ag(t){if(!t)return!0;const e=t.trim().toLowerCase();return e==="new agent"||e==="orchestrator"||e==="assistant"||e.startsWith("thread ")||e.startsWith("workspace agent")||/^chat \d{1,2}-\d{2} (am|pm)$/i.test(e)}function ig(t){return/^agent-[a-f0-9-]{36}$/i.test(t)}const sg=E.createSelector(t=>t.uiLayout.lineWrapping),og=E.createSelector(t=>t.uiLayout.foldUnchanged),lg=E.createSelector(t=>t.uiLayout.diffSideBySide),cg=E.createSelector(t=>t.uiLayout.diffIndicators),ug=E.createSelector(t=>t.uiLayout.sidebarWidth),hg=E.createSelector(t=>t.uiLayout.sidebarExpandedWidth),dg=E.createSelector(t=>t.uiLayout.sidebarCollapsed),pg=E.createSelector((t,e,r)=>{const n=t.uiLayout.panelVisibility.byWorkspaceId[e];return n?n[r]:oh[r]}),mg=E.createSelector(t=>t.uiLayout.spacesSidebarWidth),fg=E.createSelector(t=>t.uiLayout.spacesSidebarCollapsed),gg=E.createSelector(t=>t.uiLayout.tabbedSidebarPinned),vg=E.createSelector(t=>t.uiLayout.sidebarSide),bg=E.createSelector((t,e)=>t.uiLayout.resizablePanelSizes[e]),yg=E.createSelector((t,e)=>t.uiLayout.hydratedResizablePanelSizes[e]===!0),Ss=E.createSelector((t,e)=>t.skills.byWorkspaceId[e]??lh),wg=E.createSelector((t,e)=>Ss.select(t,e).skills),kg=E.createSelector((t,e)=>Ss.select(t,e).loading),xg=E.createSelector((t,e)=>Ss.select(t,e).error),Sg=E.createSelector((t,e)=>t.skills.byAgentId?.[e]??ch),Ag=E.createSelector((t,e)=>!!t.skills.byAgentId?.[e]),V5=E.createSelector(t=>qr.select(t)?.capabilities.remoteAgentSkills===1),Tg=E.createSelector((t,e)=>{if(!e||!V5.select(t))return;const r=t.agentSessions?.byAgentId[e];if(r?.nodeId)return r.nodeName??ie.chat_slashSkillSuggestionList_unnamedMachine_label()}),Eg=E.createSelector((t,e)=>t.agentSessions?.byAgentId[e]?.nodeState);export{b3 as $,E2 as A,u5 as B,q7 as C,Xf as D,g6 as E,f6 as F,pt as G,M7 as H,v5 as I,X3 as J,Eh as K,y3 as L,Ku as M,Zf as N,Z3 as O,u6 as P,T7 as Q,Q3 as R,qi as S,f3 as T,b5 as U,m3 as V,g3 as W,sc as X,x6 as Y,e6 as Z,J3 as _,g5 as a,d7 as a$,E7 as a0,S7 as a1,L7 as a2,E6 as a3,H7 as a4,y6 as a5,W7 as a6,b6 as a7,rf as a8,h6 as a9,$7 as aA,Sc as aB,L6 as aC,R6 as aD,bu as aE,Cu as aF,k6 as aG,C7 as aH,Ul as aI,B7 as aJ,Oh as aK,R5 as aL,S3 as aM,T6 as aN,A6 as aO,n1 as aP,p4 as aQ,ps as aR,B5 as aS,Hh as aT,I6 as aU,Pi as aV,C6 as aW,af as aX,Hn as aY,c6 as aZ,ng as a_,x5 as aa,v3 as ab,r6 as ac,a6 as ad,n6 as ae,ag as af,_6 as ag,eo as ah,y5 as ai,Fu as aj,w5 as ak,F7 as al,k7 as am,z7 as an,tf as ao,R7 as ap,k3 as aq,l6 as ar,p6 as as,m6 as at,ig as au,o6 as av,w6 as aw,w3 as ax,Mh as ay,Da as az,i6 as b,K7 as b$,Ag as b0,Tg as b1,Eg as b2,Sg as b3,F5 as b4,p7 as b5,T3 as b6,cg as b7,lg as b8,V2 as b9,Y2 as bA,U2 as bB,V6 as bC,W6 as bD,Q6 as bE,q6 as bF,Bu as bG,$6 as bH,m7 as bI,n5 as bJ,F6 as bK,K6 as bL,O6 as bM,og as bN,P7 as bO,N7 as bP,_7 as bQ,dg as bR,V3 as bS,sg as bT,W3 as bU,a5 as bV,g7 as bW,j3 as bX,pg as bY,eg as bZ,oa as b_,t7 as ba,j2 as bb,G2 as bc,e7 as bd,W2 as be,n7 as bf,X6 as bg,Z6 as bh,X2 as bi,n0 as bj,Z2 as bk,G6 as bl,$t as bm,H6 as bn,U6 as bo,r0 as bp,j6 as bq,K2 as br,a7 as bs,qu as bt,Y6 as bu,H2 as bv,F2 as bw,B6 as bx,J6 as by,r7 as bz,I7 as c,wt as c$,rg as c0,tg as c1,G5 as c2,W5 as c3,o7 as c4,Q2 as c5,f7 as c6,v7 as c7,y7 as c8,b7 as c9,D3 as cA,N3 as cB,q3 as cC,G3 as cD,zh as cE,A3 as cF,C3 as cG,_3 as cH,E3 as cI,B3 as cJ,R3 as cK,z3 as cL,O3 as cM,P3 as cN,c7 as cO,t5 as cP,h7 as cQ,u7 as cR,m5 as cS,Qu as cT,M6 as cU,U7 as cV,Qd as cW,K3 as cX,B2 as cY,d6 as cZ,Bi as c_,i7 as ca,s7 as cb,l7 as cc,Z7 as cd,bg as ce,yg as cf,D7 as cg,hg as ch,vg as ci,ug as cj,wg as ck,xg as cl,kg as cm,fg as cn,mg as co,X7 as cp,Y7 as cq,gg as cr,Nt as cs,F3 as ct,H3 as cu,U3 as cv,L3 as cw,$3 as cx,M3 as cy,I3 as cz,lt as d,S6 as d0,v6 as d1,gs as d2,V7 as d3,kl as d4,D6 as d5,z6 as d6,ke as d7,p5 as e,w7 as f,N6 as g,t6 as h,A7 as i,t1 as j,j7 as k,G7 as l,P6 as m,f5 as n,s6 as o,Y3 as p,f4 as q,Mu as r,Ra as s,x3 as t,d2 as u,Q7 as v,J7 as w,H5 as x,O7 as y,x7 as z};
480
+ `),I.imageBlocks.push(...k.imageBlocks??[]),I.fileBlocks.push(...k.fileBlocks??[]),I.contextItems.push(...k.contextItems??[]),I.contributions.push(k),I.blocksMutations=!0,m=I;else{const R={key:k.id,content:k.content,messageMetadata:k.messageMetadata,imageBlocks:[...k.imageBlocks??[]],fileBlocks:[...k.fileBlocks??[]],contextItems:[...k.contextItems??[]],contributions:[k],blocksMutations:!0};a.push(R),n||(m=R)}}const w=new Map(ve(t.submissions).map((k,I)=>[k.id,I])),A=k=>Math.min(...k.contributions.map(I=>w.get(I.id)??1/0)),C=a.filter(k=>!k.confirmedId).sort((k,I)=>A(k)-A(I));let M=0;for(let k=0;k<a.length;k+=1)a[k].confirmedId||(a[k]=C[M++]);return{conversation:h,processing:c,queue:a}}function q5(t,e){return t.some(r=>r.blocksMutations&&(!r.confirmedId||e===void 0||e===r.confirmedId||!!r.confirmed?.editingMessageId&&e===r.confirmed.editingMessageId))}const oa=E.createSelector((t,e)=>{const r=t.pendingSubmissions?.byAgentId[e.agentId];if(!r||!oh(r.scope,e)||V1.select(t,e.workspaceId)!==e.participation||qr.select(t)?.principal.id!==e.principalId)return;const n=t.agentSessions?.byAgentId[e.agentId]?.workspaceId;return n!==void 0&&n!==e.workspaceId?void 0:r}),F5=E.createSelector((t,e)=>n1(oa.select(t,e),X0.select(t,e.agentId,e.workspaceId))),X7=E.createSelector(t=>t.pendingSubmissions),Y7=E.createSelector((t,e)=>{const r=oa.select(t,e.scope);return!!r&&(!!xe(r.operations,e.id)||!!xe(r.submissions,e.id))}),H5=E.createSelector((t,e,r)=>{const n=t.pendingSubmissions?.byAgentId[e]?.scope;return n?.workspaceId===r?F5.select(t,n):n1(void 0,X0.select(t,e,r))}),Z7=E.createSelector((t,e)=>{const r=oa.select(t,e.scope);return!!r&&xe(r.operations,e.id)?.observed===!0}),Q7=E.createSelector((t,e,r,n)=>q5(H5.select(t,e,r).queue,n));function xs(t,e,r){const n=t.pendingSubmissions?.byAgentId[e]?.scope,a=n?oa.select(t,n):void 0;return a?[...ve(a.submissions),...ve(a.processing),...ve(a.tombstones).filter(i=>i.reason==="history"||i.reason==="processing")].some(i=>yh({metadata:i.messageMetadata}).includes(r)):!1}function U5(t,e,r,n=!1){const a=K1.select(t,e),i=X0.select(t,e),s=t.agentSessions?.byAgentId[e],o=$i(s?.metadata?.pendingQuestionsMessageId),c=o.kind==="set"?r.find(w=>w.id===o.messageId)??_i.select(t,e,o.messageId):void 0,h=t.chatState?.byAgentId[e]?.pendingQuestionRecovery,d=o.kind==="set"&&!c&&h?.messageId===o.messageId&&h.status==="found"&&h.questions&&h.questions.length>0?{messageId:o.messageId,questions:h.questions}:null,v=o.kind==="set"&&c&&!r.includes(c)?[c,...r]:r,m=d?n||nc(r,d.messageId)||ac(i,d.messageId)?null:d:bh(v,a,n,o.kind==="set"?o.messageId:o.kind==="cleared"?"":void 0,i);return!m||xs(t,e,m.messageId)||ic(s?.metadata,m.messageId)?null:m}function W5(t){return t.role==="assistant"&&t.provisional!==!0&&t.isStreaming!==!0&&(t.contentBlocks??[]).some(e=>wh(e)!==null)}function J7(t,e,r){if(U5(t,e,r))return!0;const n=t.agentSessions?.byAgentId[e],a=$i(n?.metadata?.pendingQuestionsMessageId);if(a.kind!=="set"||xs(t,e,a.messageId)||ic(n?.metadata,a.messageId)||nc(r,a.messageId))return!1;const i=X0.select(t,e);if(ac(i,a.messageId))return!1;const s=r.find(h=>h.id===a.messageId)??_i.select(t,e,a.messageId);if(s)return!W5(s);const o=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;return!(o?.messageId===a.messageId&&o.status==="found"&&!!o.questions&&o.questions.length>0)}function eg(t,e){const r=$i(t.agentSessions?.byAgentId[e]?.metadata?.pendingQuestionsMessageId);if(r.kind!=="set"||xs(t,e,r.messageId)||_i.select(t,e,r.messageId))return null;const n=t.chatState?.byAgentId[e]?.pendingQuestionRecovery;if(n?.messageId===r.messageId){const a=n.status==="found"&&!!n.questions&&n.questions.length>0;return{messageId:r.messageId,shouldRequest:!1,loading:!a}}return{messageId:r.messageId,shouldRequest:!0,loading:!0}}const G5=E.createSelector(t=>t.permission.requests),j5=E.createSelector(t=>ve(G5.select(t))),V5=E.createSelector((t,e)=>j5.select(t).filter(r=>r.sessionId===e)),tg=E.createSelector((t,e)=>V5.select(t,e).length),a1=t=>X1.select(t,t.connections.windowBackendId),rg=E.createSelector(t=>{const e=Vt.select(t);return e&&a1(t)?e:null}),ng=E.createSelector(t=>{const e=Ql.select(t),r=e.actionContext;if(!r||!a1(t))return null;const n=ve(t.workspace.workspaces).filter(a=>Jl(e,a.id,()=>a)!==null).map(a=>a.id).sort();return JSON.stringify([r,n])}),ag=E.createSelector(t=>{const e=Ql.select(t),r=new Map,n=a=>{let i=r.get(a);if(!i){const s=()=>xe(t.workspace.workspaces,a);i=[Jl(e,a,s),Y1(e,a,s)],r.set(a,i)}return i};return JSON.stringify(Object.values(t.agentSessions.byAgentId).flatMap(a=>a.workspaceId?[[a.id,a.workspaceId,...n(a.workspaceId)]]:[]).sort((a,i)=>a[0].localeCompare(i[0])))}),ig=E.createSelector((t,e,r)=>{const n=t.agentMutationUi.byWorkspaceId[e],a=n?xe(n.consumers,r):void 0;return a&&!a.consumed?{...a,workspaceId:e}:void 0});function sg(t){if(!t)return!0;const e=t.trim().toLowerCase();return e==="new agent"||e==="orchestrator"||e==="assistant"||e.startsWith("thread ")||e.startsWith("workspace agent")||/^chat \d{1,2}-\d{2} (am|pm)$/i.test(e)}function og(t){return/^agent-[a-f0-9-]{36}$/i.test(t)}const lg=E.createSelector(t=>t.uiLayout.lineWrapping),cg=E.createSelector(t=>t.uiLayout.foldUnchanged),ug=E.createSelector(t=>t.uiLayout.diffSideBySide),hg=E.createSelector(t=>t.uiLayout.diffIndicators),dg=E.createSelector(t=>t.uiLayout.sidebarWidth),pg=E.createSelector(t=>t.uiLayout.sidebarExpandedWidth),mg=E.createSelector(t=>t.uiLayout.sidebarCollapsed),fg=E.createSelector((t,e,r)=>{const n=t.uiLayout.panelVisibility.byWorkspaceId[e];return n?n[r]:lh[r]}),gg=E.createSelector(t=>t.uiLayout.spacesSidebarWidth),vg=E.createSelector(t=>t.uiLayout.spacesSidebarCollapsed),bg=E.createSelector(t=>t.uiLayout.tabbedSidebarPinned),yg=E.createSelector(t=>t.uiLayout.sidebarSide),wg=E.createSelector((t,e)=>t.uiLayout.resizablePanelSizes[e]),kg=E.createSelector((t,e)=>t.uiLayout.hydratedResizablePanelSizes[e]===!0),Ss=E.createSelector((t,e)=>t.skills.byWorkspaceId[e]??ch),xg=E.createSelector((t,e)=>Ss.select(t,e).skills),Sg=E.createSelector((t,e)=>Ss.select(t,e).loading),Ag=E.createSelector((t,e)=>Ss.select(t,e).error),Tg=E.createSelector((t,e)=>t.skills.byAgentId?.[e]??uh),Eg=E.createSelector((t,e)=>!!t.skills.byAgentId?.[e]),K5=E.createSelector(t=>qr.select(t)?.capabilities.remoteAgentSkills===1),Cg=E.createSelector((t,e)=>{if(!e||!K5.select(t))return;const r=t.agentSessions?.byAgentId[e];if(r?.nodeId)return r.nodeName??ie.chat_slashSkillSuggestionList_unnamedMachine_label()}),Mg=E.createSelector((t,e)=>t.agentSessions?.byAgentId[e]?.nodeState);export{y3 as $,C2 as A,h5 as B,F7 as C,Yf as D,v6 as E,g6 as F,pt as G,I7 as H,b5 as I,Y3 as J,Ch as K,w3 as L,Ku as M,Qf as N,Q3 as O,h6 as P,E7 as Q,J3 as R,qi as S,g3 as T,y5 as U,f3 as V,v3 as W,sc as X,S6 as Y,t6 as Z,e6 as _,v5 as a,p7 as a$,C7 as a0,A7 as a1,O7 as a2,C6 as a3,U7 as a4,w6 as a5,G7 as a6,y6 as a7,nf as a8,d6 as a9,B7 as aA,Sc as aB,O6 as aC,D6 as aD,bu as aE,Cu as aF,x6 as aG,M7 as aH,Ul as aI,q7 as aJ,$h as aK,D5 as aL,A3 as aM,E6 as aN,T6 as aO,n1 as aP,m4 as aQ,ps as aR,q5 as aS,Uh as aT,z6 as aU,Pi as aV,M6 as aW,sf as aX,Hn as aY,u6 as aZ,ig as a_,S5 as aa,b3 as ab,n6 as ac,i6 as ad,a6 as ae,sg as af,L6 as ag,eo as ah,w5 as ai,Fu as aj,k5 as ak,H7 as al,x7 as am,R7 as an,rf as ao,D7 as ap,x3 as aq,c6 as ar,m6 as as,f6 as at,og as au,l6 as av,k6 as aw,k3 as ax,Ih as ay,Da as az,s6 as b,X7 as b$,Eg as b0,Cg as b1,Mg as b2,Tg as b3,H5 as b4,m7 as b5,E3 as b6,hg as b7,ug as b8,K2 as b9,Z2 as bA,W2 as bB,K6 as bC,G6 as bD,J6 as bE,F6 as bF,Bu as bG,B6 as bH,f7 as bI,a5 as bJ,H6 as bK,X6 as bL,$6 as bM,cg as bN,_7 as bO,P7 as bP,L7 as bQ,mg as bR,K3 as bS,lg as bT,G3 as bU,i5 as bV,v7 as bW,V3 as bX,fg as bY,tg as bZ,oa as b_,r7 as ba,V2 as bb,j2 as bc,t7 as bd,G2 as be,a7 as bf,Y6 as bg,Q6 as bh,Y2 as bi,n0 as bj,Q2 as bk,j6 as bl,$t as bm,U6 as bn,W6 as bo,r0 as bp,V6 as bq,X2 as br,i7 as bs,qu as bt,Z6 as bu,U2 as bv,H2 as bw,q6 as bx,e7 as by,n7 as bz,z7 as c,Bi as c$,rg as c0,ag as c1,ng as c2,j5 as c3,G5 as c4,l7 as c5,J2 as c6,g7 as c7,b7 as c8,w7 as c9,z3 as cA,N3 as cB,P3 as cC,F3 as cD,j3 as cE,Rh as cF,T3 as cG,M3 as cH,L3 as cI,C3 as cJ,q3 as cK,D3 as cL,R3 as cM,$3 as cN,_3 as cO,u7 as cP,r5 as cQ,d7 as cR,h7 as cS,f5 as cT,Qu as cU,I6 as cV,W7 as cW,Jd as cX,X3 as cY,q2 as cZ,p6 as c_,y7 as ca,s7 as cb,o7 as cc,c7 as cd,Q7 as ce,wg as cf,kg as cg,N7 as ch,pg as ci,yg as cj,dg as ck,xg as cl,Ag as cm,Sg as cn,vg as co,gg as cp,Y7 as cq,Z7 as cr,bg as cs,Nt as ct,H3 as cu,U3 as cv,W3 as cw,O3 as cx,B3 as cy,I3 as cz,lt as d,wt as d0,A6 as d1,b6 as d2,gs as d3,K7 as d4,kl as d5,N6 as d6,R6 as d7,ke as d8,m5 as e,k7 as f,P6 as g,r6 as h,T7 as i,t1 as j,V7 as k,j7 as l,_6 as m,g5 as n,o6 as o,Z3 as p,g4 as q,Mu as r,Ra as s,S3 as t,p2 as u,J7 as v,eg as w,U5 as x,$7 as y,S7 as z};